UNPKG

plotly.js

Version:

The open source javascript graphing library that powers plotly

149 lines • 1.5 MB
/**
* plotly.js (cartesian - minified) v4.1.1
* Copyright 2012-2026, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
(
 function(root, factory) {
  if (typeof module === "object" && module.exports) {
   module.exports = factory();
  } else {
   root.moduleName = factory();
  }
} (typeof self !== "undefined" ? self : this, () => {
"use strict";var Plotly=(()=>{var D0e=Object.create;var Vv=Object.defineProperty,E0e=Object.defineProperties,P0e=Object.getOwnPropertyDescriptor,R0e=Object.getOwnPropertyDescriptors,F0e=Object.getOwnPropertyNames,iS=Object.getOwnPropertySymbols,z0e=Object.getPrototypeOf,lS=Object.prototype.hasOwnProperty,N0e=Object.prototype.propertyIsEnumerable;var oS=(e,r,t)=>r in e?Vv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,wt=(e,r)=>{for(var t in r||(r={}))lS.call(r,t)&&oS(e,t,r[t]);if(iS)for(var t of iS(r))N0e.call(r,t)&&oS(e,t,r[t]);return e},Ut=(e,r)=>E0e(e,R0e(r));var h0=(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}},d0=(e,r)=>{for(var t in r)Vv(e,t,{get:r[t],enumerable:!0})},sS=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of F0e(r))!lS.call(e,n)&&n!==t&&Vv(e,n,{get:()=>r[n],enumerable:!(a=P0e(r,n))||a.enumerable});return e};var cs=(e,r,t)=>(t=e!=null?D0e(z0e(e)):{},sS(r||!e||!e.__esModule?Vv(t,"default",{value:e,enumerable:!0}):t,e)),un=e=>sS(Vv({},"__esModule",{value:!0}),e);var jv=z(uS=>{"use strict";uS.version="4.1.1"});var cS=z((fS,T1)=>{(function(r,t,a){t[r]=t[r]||a(),typeof T1!="undefined"&&T1.exports&&(T1.exports=t[r])})("Promise",typeof window!="undefined"?window:fS,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,A){this.fn=k,this.self=A,this.next=void 0}return{add:function(A,q){x=new _(A,q),w?w.next=x:T=x,w=x,x=void 0},drain:function(){var A=T;for(T=w=t=void 0;A;)A.fn.call(A.self),A=A.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(A){b.resolve(T[A]).then(function(C){w(A,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 y(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 m=r({},"constructor",y,!1);return y.prototype=m,r(m,"__NPO__",0,!1),r(y,"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(y,"reject",function(T){return new this(function(x,_){if(typeof x!="function"||typeof _!="function")throw TypeError("Not a function");_(T)})}),r(y,"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 A=T.length,q=Array(A),C=0;v(w,T,function(P,R){q[P]=R,++C===A&&_(q)},k)})}),r(y,"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)})}),y})});var Er=z((EHe,A1)=>{(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 M=g.length,S=new Array(M);M--;)S[M]=g[M];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,M){l.call(this,g,M+"")},o.setAttributeNS=function(g,M,S){s.call(this,g,M,S+"")},u.setProperty=function(g,M,S){f.call(this,g,M+"",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 M=-1,S=h.length,L,D;if(arguments.length===1){for(;++M<S;)if((D=h[M])!=null&&D>=D){L=D;break}for(;++M<S;)(D=h[M])!=null&&L>D&&(L=D)}else{for(;++M<S;)if((D=g.call(h,h[M],M))!=null&&D>=D){L=D;break}for(;++M<S;)(D=g.call(h,h[M],M))!=null&&L>D&&(L=D)}return L},e.max=function(h,g){var M=-1,S=h.length,L,D;if(arguments.length===1){for(;++M<S;)if((D=h[M])!=null&&D>=D){L=D;break}for(;++M<S;)(D=h[M])!=null&&D>L&&(L=D)}else{for(;++M<S;)if((D=g.call(h,h[M],M))!=null&&D>=D){L=D;break}for(;++M<S;)(D=g.call(h,h[M],M))!=null&&D>L&&(L=D)}return L},e.extent=function(h,g){var M=-1,S=h.length,L,D,B;if(arguments.length===1){for(;++M<S;)if((D=h[M])!=null&&D>=D){L=B=D;break}for(;++M<S;)(D=h[M])!=null&&(L>D&&(L=D),B<D&&(B=D))}else{for(;++M<S;)if((D=g.call(h,h[M],M))!=null&&D>=D){L=B=D;break}for(;++M<S;)(D=g.call(h,h[M],M))!=null&&(L>D&&(L=D),B<D&&(B=D))}return[L,B]};function v(h){return h===null?NaN:+h}function d(h){return!isNaN(h)}e.sum=function(h,g){var M=0,S=h.length,L,D=-1;if(arguments.length===1)for(;++D<S;)d(L=+h[D])&&(M+=L);else for(;++D<S;)d(L=+g.call(h,h[D],D))&&(M+=L);return M},e.mean=function(h,g){var M=0,S=h.length,L,D=-1,B=S;if(arguments.length===1)for(;++D<S;)d(L=v(h[D]))?M+=L:--B;else for(;++D<S;)d(L=v(g.call(h,h[D],D)))?M+=L:--B;if(B)return M/B},e.quantile=function(h,g){var M=(h.length-1)*g+1,S=Math.floor(M),L=+h[S-1],D=M-S;return D?L+D*(h[S]-L):L},e.median=function(h,g){var M=[],S=h.length,L,D=-1;if(arguments.length===1)for(;++D<S;)d(L=v(h[D]))&&M.push(L);else for(;++D<S;)d(L=v(g.call(h,h[D],D)))&&M.push(L);if(M.length)return e.quantile(M.sort(c),.5)},e.variance=function(h,g){var M=h.length,S=0,L,D,B=0,F=-1,H=0;if(arguments.length===1)for(;++F<M;)d(L=v(h[F]))&&(D=L-S,S+=D/++H,B+=D*(L-S));else for(;++F<M;)d(L=v(g.call(h,h[F],F)))&&(D=L-S,S+=D/++H,B+=D*(L-S));if(H>1)return B/(H-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,M,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var D=S+L>>>1;h(g[D],M)<0?S=D+1:L=D}return S},right:function(g,M,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var D=S+L>>>1;h(g[D],M)>0?L=D:S=D+1}return S}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(h){return p(h.length===1?function(g,M){return c(h(g),M)}:h)},e.shuffle=function(h,g,M){(S=arguments.length)<3&&(M=h.length,S<2&&(g=0));for(var S=M-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 M=g.length,S=new Array(M);M--;)S[M]=h[g[M]];return S},e.pairs=function(h){for(var g=0,M=h.length-1,S,L=h[0],D=new Array(M<0?0:M);g<M;)D[g]=[S=L,L=h[++g]];return D},e.transpose=function(h){if(!(D=h.length))return[];for(var g=-1,M=e.min(h,m),S=new Array(M);++g<M;)for(var L=-1,D,B=S[g]=new Array(D);++L<D;)B[L]=h[L][g];return S};function m(h){return h.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(h){var g=[];for(var M in h)g.push(M);return g},e.values=function(h){var g=[];for(var M in h)g.push(h[M]);return g},e.entries=function(h){var g=[];for(var M in h)g.push({key:M,value:h[M]});return g},e.merge=function(h){for(var g=h.length,M,S=-1,L=0,D,B;++S<g;)L+=h[S].length;for(D=new Array(L);--g>=0;)for(B=h[g],M=B.length;--M>=0;)D[--L]=B[M];return D};var b=Math.abs;e.range=function(h,g,M){if(arguments.length<3&&(M=1,arguments.length<2&&(g=h,h=0)),(g-h)/M===1/0)throw new Error("infinite range");var S=[],L=T(b(M)),D=-1,B;if(h*=L,g*=L,M*=L,M<0)for(;(B=h+M*++D)>g;)S.push(B/L);else for(;(B=h+M*++D)<g;)S.push(B/L);return S};function T(h){for(var g=1;h*g%1;)g*=10;return g}function w(h,g){for(var M in g)Object.defineProperty(h.prototype,M,{value:g[M],enumerable:!1})}e.map=function(h,g){var M=new x;if(h instanceof x)h.forEach(function(F,H){M.set(F,H)});else if(Array.isArray(h)){var S=-1,L=h.length,D;if(arguments.length===1)for(;++S<L;)M.set(S,h[S]);else for(;++S<L;)M.set(g.call(h,D=h[S],S),D)}else for(var B in h)M.set(B,h[B]);return M};function x(){this._=Object.create(null)}var _="__proto__",k="\0";w(x,{has:C,get:function(h){return this._[A(h)]},set:function(h,g){return this._[A(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:N,forEach:function(h){for(var g in this._)h.call(this,q(g),this._[g])}});function A(h){return(h+="")===_||h[0]===k?k+h:h}function q(h){return(h+="")[0]===k?h.slice(1):h}function C(h){return A(h)in this._}function E(h){return(h=A(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 N(){for(var h in this._)return!1;return!0}e.nest=function(){var h={},g=[],M=[],S,L;function D(F,H,X){if(X>=g.length)return L?L.call(h,H):S?H.sort(S):H;for(var Z=-1,K=H.length,Q=g[X++],pe,we,ee,le=new x,ve;++Z<K;)(ve=le.get(pe=Q(we=H[Z])))?ve.push(we):le.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)}),le.forEach(ee),we}function B(F,H){if(H>=g.length)return F;var X=[],Z=M[H++];return F.forEach(function(K,Q){X.push({key:K,values:B(Q,H)})}),Z?X.sort(function(K,Q){return Z(K.key,Q.key)}):X}return h.map=function(F,H){return D(H,F,0)},h.entries=function(F){return B(D(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return M[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 M=0,S=h.length;M<S;++M)g.add(h[M]);return g};function I(){this._=Object.create(null)}w(I,{has:C,add:function(h){return this._[A(h+="")]=!0,h},remove:E,values:P,size:R,empty:N,forEach:function(h){for(var g in this._)h.call(this,q(g))}}),e.behavior={};function O(h){return h}e.rebind=function(h,g){for(var M=1,S=arguments.length,L;++M<S;)h[L=arguments[M]]=U(h,g,g[L]);return h};function U(h,g,M){return function(){var S=M.apply(g,arguments);return S===g?h:S}}function Y(h,g){if(g in h)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var M=0,S=G.length;M<S;++M){var L=G[M]+g;if(L in h)return L}}var G=["webkit","ms","moz","Moz","o","O"];function V(){}e.dispatch=function(){for(var h=new W,g=-1,M=arguments.length;++g<M;)h[arguments[g]]=j(h);return h};function W(){}W.prototype.on=function(h,g){var M=h.indexOf("."),S="";if(M>=0&&(S=h.slice(M+1),h=h.slice(0,M)),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 j(h){var g=[],M=new x;function S(){for(var L=g,D=-1,B=L.length,F;++D<B;)(F=L[D].on)&&F.apply(this,arguments);return h}return S.on=function(L,D){var B=M.get(L),F;return arguments.length<2?B&&B.on:(B&&(B.on=null,g=g.slice(0,F=g.indexOf(B)).concat(g.slice(F+1)),M.remove(L)),D&&g.push(M.set(L,{on:D})),h)},S}e.event=null;function J(){e.event.preventDefault()}function te(){for(var h=e.event,g;g=h.sourceEvent;)h=g;return h}function ae(h){for(var g=new W,M=0,S=arguments.length;++M<S;)g[arguments[M]]=j(g);return g.of=function(L,D){return function(B){try{var F=B.sourceEvent=e.event;B.target=h,e.event=B,g[B.type].apply(L,D)}finally{e.event=F}}},g}e.requote=function(h){return h.replace(se,"\\$&")};var se=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,$={}.__proto__?function(h,g){h.__proto__=g}:function(h,g){for(var M in g)h[M]=g[M]};function fe(h){return $(h,oe),h}var ie=function(h,g){return g.querySelector(h)},ue=function(h,g){return g.querySelectorAll(h)},ce=function(h,g){var M=h.matches||h[Y(h,"matchesSelector")];return ce=function(S,L){return M.call(S,L)},ce(h,g)};typeof Sizzle=="function"&&(ie=function(h,g){return Sizzle(h,g)[0]||null},ue=Sizzle,ce=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var oe=e.selection.prototype=[];oe.select=function(h){var g=[],M,S,L,D;h=be(h);for(var B=-1,F=this.length;++B<F;){g.push(M=[]),M.parentNode=(L=this[B]).parentNode;for(var H=-1,X=L.length;++H<X;)(D=L[H])?(M.push(S=h.call(D,D.__data__,H,B)),S&&"__data__"in D&&(S.__data__=D.__data__)):M.push(null)}return fe(g)};function be(h){return typeof h=="function"?h:function(){return ie(h,this)}}oe.selectAll=function(h){var g=[],M,S;h=Re(h);for(var L=-1,D=this.length;++L<D;)for(var B=this[L],F=-1,H=B.length;++F<H;)(S=B[F])&&(g.push(M=t(h.call(S,S.__data__,F,L))),M.parentNode=S);return fe(g)};function Re(h){return typeof h=="function"?h:function(){return ue(h,this)}}var ye="http://www.w3.org/1999/xhtml",Ce={svg:"http://www.w3.org/2000/svg",xhtml:ye,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(":"),M=h;return g>=0&&(M=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),Ce.hasOwnProperty(M)?{space:Ce[M],local:h}:h}},oe.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var M=this.node();return h=e.ns.qualify(h),h.local?M.getAttributeNS(h.space,h.local):M.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 M(){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 B(){var H=g.apply(this,arguments);H==null?this.removeAttribute(h):this.setAttribute(h,H)}function F(){var H=g.apply(this,arguments);H==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,H)}return g==null?h.local?S:M:typeof g=="function"?h.local?F:B: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 M=this.node(),S=(h=Ne(h)).length,L=-1;if(g=M.classList){for(;++L<S;)if(!g.contains(h[L]))return!1}else for(g=M.getAttribute("class");++L<S;)if(!De(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 De(h){return new RegExp("(?:^|\\s+)"+e.requote(h)+"(?:\\s+|$)","g")}function Ne(h){return(h+"").trim().split(/^|\s+/)}function qe(h,g){h=Ne(h).map(Xe);var M=h.length;function S(){for(var D=-1;++D<M;)h[D](this,g)}function L(){for(var D=-1,B=g.apply(this,arguments);++D<M;)h[D](this,B)}return typeof g=="function"?L:S}function Xe(h){var g=De(h);return function(M,S){if(L=M.classList)return S?L.add(h):L.remove(h);var L=M.getAttribute("class")||"";S?(g.lastIndex=0,g.test(L)||M.setAttribute("class",Le(L+" "+h))):M.setAttribute("class",Le(L.replace(g," ")))}}oe.style=function(h,g,M){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g="");for(M in h)this.each($e(M,h[M],g));return this}if(S<2){var L=this.node();return i(L).getComputedStyle(L,null).getPropertyValue(h)}M=""}return this.each($e(h,g,M))};function $e(h,g,M){function S(){this.style.removeProperty(h)}function L(){this.style.setProperty(h,g,M)}function D(){var B=g.apply(this,arguments);B==null?this.style.removeProperty(h):this.style.setProperty(h,B,M)}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(We(g,h[g]));return this}return this.each(We(h,g))};function We(h,g){function M(){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?M: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=Se(h),this.select(function(){return this.appendChild(h.apply(this,arguments))})};function Se(h){function g(){var S=this.ownerDocument,L=this.namespaceURI;return L===ye&&S.documentElement.namespaceURI===ye?S.createElement(h):S.createElementNS(L,h)}function M(){return this.ownerDocument.createElementNS(h.space,h.local)}return typeof h=="function"?h:(h=e.ns.qualify(h)).local?M:g}oe.insert=function(h,g){return h=Se(h),g=be(g),this.select(function(){return this.insertBefore(h.apply(this,arguments),g.apply(this,arguments)||null)})},oe.remove=function(){return this.each(Fe)};function Fe(){var h=this.parentNode;h&&h.removeChild(this)}oe.data=function(h,g){var M=-1,S=this.length,L,D;if(!arguments.length){for(h=new Array(S=(L=this[0]).length);++M<S;)(D=L[M])&&(h[M]=D.__data__);return h}function B(Z,K){var Q,pe=Z.length,we=K.length,ee=Math.min(pe,we),le=new Array(we),ve=new Array(we),_e=new Array(pe),Te,he;if(g){var Ye=new x,or=new Array(pe),hr;for(Q=-1;++Q<pe;)(Te=Z[Q])&&(Ye.has(hr=g.call(Te,Te.__data__,Q))?_e[Q]=Te:Ye.set(hr,Te),or[Q]=hr);for(Q=-1;++Q<we;)(Te=Ye.get(hr=g.call(K,he=K[Q],Q)))?Te!==!0&&(le[Q]=Te,Te.__data__=he):ve[Q]=Qe(he),Ye.set(hr,!0);for(Q=-1;++Q<pe;)Q in or&&Ye.get(or[Q])!==!0&&(_e[Q]=Z[Q])}else{for(Q=-1;++Q<ee;)Te=Z[Q],he=K[Q],Te?(Te.__data__=he,le[Q]=Te):ve[Q]=Qe(he);for(;Q<we;++Q)ve[Q]=Qe(K[Q]);for(;Q<pe;++Q)_e[Q]=Z[Q]}ve.update=le,ve.parentNode=le.parentNode=_e.parentNode=Z.parentNode,F.push(ve),H.push(le),X.push(_e)}var F=cr([]),H=fe([]),X=fe([]);if(typeof h=="function")for(;++M<S;)B(L=this[M],h.call(L,L.parentNode.__data__,M));else for(;++M<S;)B(L=this[M],h);return H.enter=function(){return F},H.exit=function(){return X},H};function Qe(h){return{__data__:h}}oe.datum=function(h){return arguments.length?this.property("__data__",h):this.property("__data__")},oe.filter=function(h){var g=[],M,S,L;typeof h!="function"&&(h=re(h));for(var D=0,B=this.length;D<B;D++){g.push(M=[]),M.parentNode=(S=this[D]).parentNode;for(var F=0,H=S.length;F<H;F++)(L=S[F])&&h.call(L,L.__data__,F,D)&&M.push(L)}return fe(g)};function re(h){return function(){return ce(this,h)}}oe.order=function(){for(var h=-1,g=this.length;++h<g;)for(var M=this[h],S=M.length-1,L=M[S],D;--S>=0;)(D=M[S])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},oe.sort=function(h){h=xe.apply(this,arguments);for(var g=-1,M=this.length;++g<M;)this[g].sort(h);return this.order()};function xe(h){return arguments.length||(h=c),function(g,M){return g&&M?h(g.__data__,M.__data__):!g-!M}}oe.each=function(h){return Ge(this,function(g,M,S){h.call(g,g.__data__,M,S)})};function Ge(h,g){for(var M=0,S=h.length;M<S;M++)for(var L=h[M],D=0,B=L.length,F;D<B;D++)(F=L[D])&&g(F,D,M);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 M=this[h],S=0,L=M.length;S<L;S++){var D=M[S];if(D)return D}return null},oe.size=function(){var h=0;return Ge(this,function(){++h}),h};function cr(h){return $(h,Pe),h}var Pe=[];e.selection.enter=cr,e.selection.enter.prototype=Pe,Pe.append=oe.append,Pe.empty=oe.empty,Pe.node=oe.node,Pe.call=oe.call,Pe.size=oe.size,Pe.select=function(h){for(var g=[],M,S,L,D,B,F=-1,H=this.length;++F<H;){L=(D=this[F]).update,g.push(M=[]),M.parentNode=D.parentNode;for(var X=-1,Z=D.length;++X<Z;)(B=D[X])?(M.push(L[X]=S=h.call(D.parentNode,B.__data__,X,F)),S.__data__=B.__data__):M.push(null)}return fe(g)},Pe.insert=function(h,g){return arguments.length<2&&(g=me(this)),oe.insert.call(this,h,g)};function me(h){var g,M;return function(S,L,D){var B=h[D].update,F=B.length,H;for(D!=M&&(M=D,g=0),L>=g&&(g=L+1);!(H=B[g])&&++g<F;);return H}}e.select=function(h){var g;return typeof h=="string"?(g=[ie(h,a)],g.parentNode=a.documentElement):(g=[h],g.parentNode=n(h)),fe([g])},e.selectAll=function(h){var g;return typeof h=="string"?(g=t(ue(h,a)),g.parentNode=a.documentElement):(g=t(h),g.parentNode=null),fe([g])},oe.on=function(h,g,M){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g=!1);for(M in h)this.each(Ae(M,h[M],g));return this}if(S<2)return(S=this.node()["__on"+h])&&S._;M=!1}return this.each(Ae(h,g,M))};function Ae(h,g,M){var S="__on"+h,L=h.indexOf("."),D=Ze;L>0&&(h=h.slice(0,L));var B=He.get(h);B&&(h=B,D=Be);function F(){var Z=this[S];Z&&(this.removeEventListener(h,Z,Z.$),delete this[S])}function H(){var Z=D(g,t(arguments));F.call(this),this.addEventListener(h,this[S]=Z,Z.$=M),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?H:F:g?V:X}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(h){"on"+h in a&&He.remove(h)});function Ze(h,g){return function(M){var S=e.event;e.event=M,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function Be(h,g){var M=Ze(h,g);return function(S){var L=this,D=S.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&M.call(L,S)}}var je,tr=0;function ir(h){var g=".dragsuppress-"+ ++tr,M="click"+g,S=e.select(i(h)).on("touchmove"+g,J).on("dragstart"+g,J).on("selectstart"+g,J);if(je==null&&(je="onselectstart"in h?!1:Y(h.style,"userSelect")),je){var L=n(h).style,D=L[je];L[je]="none"}return function(B){if(S.on(g,null),je&&(L[je]=D),B){var F=function(){S.on(M,null)};S.on(M,function(){J(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Ee(h,te())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ee(h,g){g.changedTouches&&(g=g.changedTouches[0]);var M=h.ownerSVGElement||h;if(M.createSVGPoint){var S=M.createSVGPoint();if(lr<0){var L=i(h);if(L.scrollX||L.scrollY){M=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=M[0][0].getScreenCTM();lr=!(D.f||D.e),M.remove()}}return lr?(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 B=h.getBoundingClientRect();return[g.clientX-B.left-h.clientLeft,g.clientY-B.top-h.clientTop]}e.touch=function(h,g,M){if(arguments.length<3&&(M=g,g=te().changedTouches),g){for(var S=0,L=g.length,D;S<L;++S)if((D=g[S]).identifier===M)return Ee(h,D)}},e.behavior.drag=function(){var h=ae(L,"drag","dragstart","dragend"),g=null,M=D(V,e.mouse,i,"mousemove","mouseup"),S=D(Je,e.touch,O,"touchmove","touchend");function L(){this.on("mousedown.drag",M).on("touchstart.drag",S)}function D(B,F,H,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,le=B(),ve=".drag"+(le==null?"":"-"+le),_e,Te=e.select(H(Q)).on(X+ve,or).on(Z+ve,hr),he=ir(Q),Ye=F(pe,le);g?(_e=g.apply(K,arguments),_e=[_e.x-Ye[0],_e.y-Ye[1]]):_e=[0,0],we({type:"dragstart"});function or(){var fr=F(pe,le),br,xr;fr&&(br=fr[0]-Ye[0],xr=fr[1]-Ye[1],ee|=br|xr,Ye=fr,we({type:"drag",x:fr[0]+_e[0],y:fr[1]+_e[1],dx:br,dy:xr}))}function hr(){F(pe,le)&&(Te.on(X+ve,null).on(Z+ve,null),he(ee),we({type:"dragend"}))}}}return L.origin=function(B){return arguments.length?(g=B,L):g},e.rebind(L,h,"on")};function Je(){return e.event.changedTouches[0].identifier}e.touches=function(h,g){return arguments.length<2&&(g=te().touches),g?t(g).map(function(M){var S=Ee(h,M);return S.identifier=M.identifier,S}):[]};var Ie=1e-6,pr=Ie*Ie,mr=Math.PI,sr=2*mr,yr=sr-Ie,ne=mr/2,ge=mr/180,ze=180/mr;function Oe(h){return h>0?1:h<0?-1:0}function Jr(h,g,M){return(g[0]-h[0])*(M[1]-h[1])-(g[1]-h[1])*(M[0]-h[0])}function Kr(h){return h>1?0:h<-1?mr:Math.acos(h)}function mt(h){return h>1?ne:h<-1?-ne:Math.asin(h)}function yt(h){return((h=Math.exp(h))-1/h)/2}function Lt(h){return((h=Math.exp(h))+1/h)/2}function Qt(h){return((h=Math.exp(2*h))-1)/(h+1)}function Va(h){return(h=Math.sin(h/2))*h}var ea=Math.SQRT2,ja=2,ln=4;e.interpolateZoom=function(h,g){var M=h[0],S=h[1],L=h[2],D=g[0],B=g[1],F=g[2],H=D-M,X=B-S,Z=H*H+X*X,K,Q;if(Z<pr)Q=Math.log(F/L)/ea,K=function(_e){return[M+_e*H,S+_e*X,L*Math.exp(ea*_e*Q)]};else{var pe=Math.sqrt(Z),we=(F*F-L*L+ln*Z)/(2*L*ja*pe),ee=(F*F-L*L-ln*Z)/(2*F*ja*pe),le=Math.log(Math.sqrt(we*we+1)-we),ve=Math.log(Math.sqrt(ee*ee+1)-ee);Q=(ve-le)/ea,K=function(_e){var Te=_e*Q,he=Lt(le),Ye=L/(ja*pe)*(he*Qt(ea*Te+le)-yt(le));return[M+Ye*H,S+Ye*X,L*he/Lt(ea*Te+le)]}}return K.duration=Q*1e3,K},e.behavior.zoom=function(){var h={x:0,y:0,k:1},g,M,S,L=[960,500],D=oa,B=250,F=0,H="mousedown.zoom",X="mousemove.zoom",Z="mouseup.zoom",K,Q="touchstart.zoom",pe,we=ae(Te,"zoomstart","zoom","zoomend"),ee,le,ve,_e;_t||(_t="onwheel"in a?(vr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(vr=function(){return e.event.wheelDelta},"mousewheel"):(vr=function(){return-e.event.detail},"MozMousePixelScroll"));function Te(ar){ar.on(H,Dr).on(_t+".zoom",sa).on("dblclick.zoom",gt).on(Q,it)}Te.event=function(ar){ar.each(function(){var Nr=we.of(this,arguments),Br=h;_u?e.select(this).transition().each("start.zoom",function(){h=this.__chart__||{x:0,y:0,k:1},xr(Nr)}).tween("zoom:zoom",function(){var ot=L[0],Xt=L[1],Ma=M?M[0]:ot/2,$a=M?M[1]:Xt/2,bn=e.interpolateZoom([(Ma-h.x)/h.k,($a-h.y)/h.k,ot/h.k],[(Ma-Br.x)/Br.k,($a-Br.y)/Br.k,ot/Br.k]);return function(Fn){var xn=bn(Fn),Gn=ot/xn[2];this.__chart__=h={x:Ma-xn[0]*Gn,y:$a-xn[1]*Gn,k:Gn},zr(Nr)}}).each("interrupt.zoom",function(){wr(Nr)}).each("end.zoom",function(){wr(Nr)}):(this.__chart__=h,xr(Nr),zr(Nr),wr(Nr))})},Te.translate=function(ar){return arguments.length?(h={x:+ar[0],y:+ar[1],k:h.k},br(),Te):[h.x,h.y]},Te.scale=function(ar){return arguments.length?(h={x:h.x,y:h.y,k:null},or(+ar),br(),Te):h.k},Te.scaleExtent=function(ar){return arguments.length?(D=ar==null?oa:[+ar[0],+ar[1]],Te):D},Te.center=function(ar){return arguments.length?(S=ar&&[+ar[0],+ar[1]],Te):S},Te.size=function(ar){return arguments.length?(L=ar&&[+ar[0],+ar[1]],Te):L},Te.duration=function(ar){return arguments.length?(B=+ar,Te):B},Te.x=function(ar){return arguments.length?(le=ar,ee=ar.copy(),h={x:0,y:0,k:1},Te):le},Te.y=function(ar){return arguments.length?(_e=ar,ve=ar.copy(),h={x:0,y:0,k:1},Te):_e};function he(ar){return[(ar[0]-h.x)/h.k,(ar[1]-h.y)/h.k]}function Ye(ar){return[ar[0]*h.k+h.x,ar[1]*h.k+h.y]}function or(ar){h.k=Math.max(D[0],Math.min(D[1],ar))}function hr(ar,Nr){Nr=Ye(Nr),h.x+=ar[0]-Nr[0],h.y+=ar[1]-Nr[1]}function fr(ar,Nr,Br,ot){ar.__chart__={x:h.x,y:h.y,k:h.k},or(Math.pow(2,ot)),hr(M=Nr,Br),ar=e.select(ar),B>0&&(ar=ar.transition().duration(B)),ar.call(Te.event)}function br(){le&&le.domain(ee.range().map(function(ar){return(ar-h.x)/h.k}).map(ee.invert)),_e&&_e.domain(ve.range().map(function(ar){return(ar-h.y)/h.k}).map(ve.invert))}function xr(ar){F++||ar({type:"zoomstart"})}function zr(ar){br(),ar({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function wr(ar){--F||(ar({type:"zoomend"}),M=null)}function Dr(){var ar=this,Nr=we.of(ar,arguments),Br=0,ot=e.select(i(ar)).on(X,$a).on(Z,bn),Xt=he(e.mouse(ar)),Ma=ir(ar);b1.call(ar),xr(Nr);function $a(){Br=1,hr(e.mouse(ar),Xt),zr(Nr)}function bn(){ot.on(X,null).on(Z,null),Ma(Br),wr(Nr)}}function it(){var ar=this,Nr=we.of(ar,arguments),Br={},ot=0,Xt,Ma=".zoom-"+e.event.changedTouches[0].identifier,$a="touchmove"+Ma,bn="touchend"+Ma,Fn=[],xn=e.select(ar),Gn=ir(ar);Yn(),xr(Nr),xn.on(H,null).on(Q,Yn);function sn(){var go=e.touches(ar);return Xt=h.k,go.forEach(function(Ja){Ja.identifier in Br&&(Br[Ja.identifier]=he(Ja))}),go}function Yn(){var go=e.event.target;e.select(go).on($a,wu).on(bn,C0e),Fn.push(go);for(var Ja=e.event.changedTouches,Ci=0,Xo=Ja.length;Ci<Xo;++Ci)Br[Ja[Ci].identifier]=null;var Di=sn(),v0=Date.now();if(Di.length===1){if(v0-pe<500){var Tu=Di[0];fr(ar,Tu,Br[Tu.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),J()}pe=v0}else if(Di.length>1){var Tu=Di[0],fs=Di[1],w1=Tu[0]-fs[0],nS=Tu[1]-fs[1];ot=w1*w1+nS*nS}}function wu(){var go=e.touches(ar),Ja,Ci,Xo,Di;b1.call(ar);for(var v0=0,Tu=go.length;v0<Tu;++v0,Di=null)if(Xo=go[v0],Di=Br[Xo.identifier]){if(Ci)break;Ja=Xo,Ci=Di}if(Di){var fs=(fs=Xo[0]-Ja[0])*fs+(fs=Xo[1]-Ja[1])*fs,w1=ot&&Math.sqrt(fs/ot);Ja=[(Ja[0]+Xo[0])/2,(Ja[1]+Xo[1])/2],Ci=[(Ci[0]+Di[0])/2,(Ci[1]+Di[1])/2],or(w1*Xt)}pe=null,hr(Ja,Ci),zr(Nr)}function C0e(){if(e.event.touches.length){for(var go=e.event.changedTouches,Ja=0,Ci=go.length;Ja<Ci;++Ja)delete Br[go[Ja].identifier];for(var Xo in Br)return void sn()}e.selectAll(Fn).on(Ma,null),xn.on(H,Dr).on(Q,it),Gn(),wr(Nr)}}function sa(){var ar=we.of(this,arguments);K?clearTimeout(K):(b1.call(this),g=he(M=S||e.mouse(this)),xr(ar)),K=setTimeout(function(){K=null,wr(ar)},50),J(),or(Math.pow(2,vr()*.002)*h.k),hr(M,g),zr(ar)}function gt(){var ar=e.mouse(this),Nr=Math.log(h.k)/Math.LN2;fr(this,ar,he(ar),e.event.shiftKey?Math.ceil(Nr)-1:Math.floor(Nr)+1)}return e.rebind(Te,we,"on")};var oa=[0,1/0],vr,_t;e.color=Yr;function Yr(){}Yr.prototype.toString=function(){return this.rgb()+""},e.hsl=vt;function vt(h,g,M){return this instanceof vt?(this.h=+h,this.s=+g,void(this.l=+M)):arguments.length<2?h instanceof vt?new vt(h.h,h.s,h.l):r1(""+h,t1,vt):new vt(h,g,M)}var Rt=vt.prototype=new Yr;Rt.brighter=function(h){return h=Math.pow(.7,arguments.length?h:1),new vt(this.h,this.s,this.l/h)},Rt.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new vt(this.h,this.s,h*this.l)},Rt.rgb=function(){return Mt(this.h,this.s,this.l)};function Mt(h,g,M){var S,L;h=isNaN(h)?0:(h%=360)<0?h+360:h,g=isNaN(g)||g<0?0:g>1?1:g,M=M<0?0:M>1?1:M,L=M<=.5?M*(1+g):M+g-M*g,S=2*M-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 B(F){return Math.round(D(F)*255)}return new la(B(h+120),B(h),B(h-120))}e.hcl=nt;function nt(h,g,M){return this instanceof nt?(this.h=+h,this.c=+g,void(this.l=+M)):arguments.length<2?h instanceof nt?new nt(h.h,h.c,h.l):h instanceof Vt?n0(h.l,h.a,h.b):n0((h=a1((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new nt(h,g,M)}var ra=nt.prototype=new Yr;ra.brighter=function(h){return new nt(this.h,this.c,Math.min(100,this.l+Ct*(arguments.length?h:1)))},ra.darker=function(h){return new nt(this.h,this.c,Math.max(0,this.l-Ct*(arguments.length?h:1)))},ra.rgb=function(){return En(this.h,this.c,this.l).rgb()};function En(h,g,M){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Vt(M,Math.cos(h*=ge)*g,Math.sin(h)*g)}e.lab=Vt;function Vt(h,g,M){return this instanceof Vt?(this.l=+h,this.a=+g,void(this.b=+M)):arguments.length<2?h instanceof Vt?new Vt(h.l,h.a,h.b):h instanceof nt?En(h.h,h.c,h.l):a1((h=la(h)).r,h.g,h.b):new Vt(h,g,M)}var Ct=18,ta=.95047,aa=1,ht=1.08883,Wa=Vt.prototype=new Yr;Wa.brighter=function(h){return new Vt(Math.min(100,this.l+Ct*(arguments.length?h:1)),this.a,this.b)},Wa.darker=function(h){return new Vt(Math.max(0,this.l-Ct*(arguments.length?h:1)),this.a,this.b)},Wa.rgb=function(){return Ht(this.l,this.a,this.b)};function Ht(h,g,M){var S=(h+16)/116,L=S+g/500,D=S-M/200;return L=Pn(L)*ta,S=Pn(S)*aa,D=Pn(D)*ht,new la(li(3.2404542*L-1.5371385*S-.4985314*D),li(-.969266*L+1.8760108*S+.041556*D),li(.0556434*L-.2040259*S+1.0572252*D))}function n0(h,g,M){return h>0?new nt(Math.atan2(M,g)*ze,Math.sqrt(g*g+M*M),h):new nt(NaN,NaN,h)}function Pn(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function mo(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function li(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=la;function la(h,g,M){return this instanceof la?(this.r=~~h,this.g=~~g,void(this.b=~~M)):arguments.length<2?h instanceof la?new la(h.r,h.g,h.b):r1(""+h,la,Mt):new la(h,g,M)}function i0(h){return new la(h>>16,h>>8&255,h&255)}function ls(h){return i0(h)+""}var Rn=la.prototype=new Yr;Rn.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,M=this.g,S=this.b,L=30;return!g&&!M&&!S?new la(L,L,L):(g&&g<L&&(g=L),M&&M<L&&(M=L),S&&S<L&&(S=L),new la(Math.min(255,g/h),Math.min(255,M/h),Math.min(255,S/h)))},Rn.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new la(h*this.r,h*this.g,h*this.b)},Rn.hsl=function(){return t1(this.r,this.g,this.b)},Rn.toString=function(){return"#"+ss(this.r)+ss(this.g)+ss(this.b)};function ss(h){return h<16?"0"+Math.max(0,h).toString(16):Math.min(255,h).toString(16)}function r1(h,g,M){var S=0,L=0,D=0,B,F,H;if(B=/([a-z]+)\((.*)\)/.exec(h=h.toLowerCase()),B)switch(F=B[2].split(","),B[1]){case"hsl":return M(parseFloat(F[0]),parseFloat(F[1])/100,parseFloat(F[2])/100);case"rgb":return g(Fv(F[0]),Fv(F[1]),Fv(F[2]))}return(H=Mr.get(h))?g(H.r,H.g,H.b):(h!=null&&h.charAt(0)==="#"&&!isNaN(H=parseInt(h.slice(1),16))&&(h.length===4?(S=(H&3840)>>4,S=S>>4|S,L=H&240,L=L>>4|L,D=H&15,D=D<<4|D):h.length===7&&(S=(H&16711680)>>16,L=(H&65280)>>8,D=H&255)),g(S,L,D))}function t1(h,g,M){var S=Math.min(h/=255,g/=255,M/=255),L=Math.max(h,g,M),D=L-S,B,F,H=(L+S)/2;return D?(F=H<.5?D/(L+S):D/(2-L-S),h==L?B=(g-M)/D+(g<M?6:0):g==L?B=(M-h)/D+2:B=(h-g)/D+4,B*=60):(B=NaN,F=H>0&&H<1?0:B),new vt(B,F,H)}function a1(h,g,M){h=Rv(h),g=Rv(g),M=Rv(M);var S=mo((.4124564*h+.3575761*g+.1804375*M)/ta),L=mo((.2126729*h+.7151522*g+.072175*M)/aa),D=mo((.0193339*h+.119192*g+.9503041*M)/ht);return Vt(116*L-16,500*(S-L),200*(L-D))}function Rv(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Fv(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Mr=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});Mr.forEach(function(h,g){Mr.set(h,i0(g))});function Ar(h){return typeof h=="function"?h:function(){return h}}e.functor=Ar,e.xhr=dt(O);function dt(h){return function(g,M,S){return arguments.length===2&&typeof M=="function"&&(S=M,M=null),ur(g,M,h,S)}}function ur(h,g,M,S){var L={},D=e.dispatch("beforesend","progress","load","error"),B={},F=new XMLHttpRequest,H=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&&Ft(F)||Z>=200&&Z<300||Z===304){try{K=M.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?B[Z]:(K==null?delete B[Z]:B[Z]=K+"",L)},L.mimeType=function(Z){return arguments.length?(g=Z==null?null:Z+"",L):g},L.responseType=function(Z){return arguments.length?(H=Z,L):H},L.response=function(Z){return M=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 B)&&(B.accept=g+",*/*"),F.setRequestHeader)for(var pe in B)F.setRequestHeader(pe,B[pe]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),H!=null&&(F.responseType=H),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(gn(S))}function gn(h){return h.length===1?function(g,M){h(g==null?M:null)}:h}function Ft(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var M=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:B(Z),K);return Q.row=function(pe){return arguments.length?Q.response((Z=pe)==null?D:B(pe)):Z},Q}function D(X){return L.parse(X.responseText)}function B(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 le={},ve=Q.length,_e=0;_e<ve;++_e)le[Q[_e]]=ee[_e];return le};K=Z?function(ee,le){return Z(we(ee),le)}:we})},L.parseRows=function(X,Z){var K={},Q={},pe=[],we=X.length,ee=0,le=0,ve,_e;function Te(){if(ee>=we)return Q;if(_e)return _e=!1,K;var Ye=ee;if(X.charCodeAt(Ye)===34){for(var or=Ye;or++<we;)if(X.charCodeAt(or)===34){if(X.charCodeAt(or+1)!==34)break;++or}ee=or+2;var hr=X.charCodeAt(or+1);return hr===13?(_e=!0,X.charCodeAt(or+2)===10&&++ee):hr===10&&(_e=!0),X.slice(Ye+1,or).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(Ye,ee-fr)}return X.slice(Ye)}for(;(ve=Te())!==Q;){for(var he=[];ve!==K&&ve!==Q;)he.push(ve),ve=Te();Z&&(he=Z(he,le++))==null||pe.push(he)}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(H).join(h)].concat(X.map(function(Q){return K.map(function(pe){return H(Q[pe])}).join(h)})).join(`
`)},L.formatRows=function(X){return X.map(F).join(`
`)};function F(X){return X.map(H).join(h)}function H(X){return M.test(X)?'"'+X.replace(/\"/g,'""')+'"':X}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv("	","text/tab-separated-values");var Xa,Za,qi,gu,YM=this[Y(this,"requestAnimationFrame")]||function(h){setTimeout(h,17)};e.timer=function(){n1.apply(this,arguments)};function n1(h,g,M){var S=arguments.length;S<2&&(g=0),S<3&&(M=Date.now());var L=M+g,D={c:h,t:L,n:null};return Za?Za.n=D:Xa=D,Za=D,qi||(gu=clearTimeout(gu),qi=1,YM(p5)),D}function p5(){var h=VM(),g=jM()-h;g>24?(isFinite(g)&&(clearTimeout(gu),gu=setTimeout(p5,g)),qi=0):(qi=1,YM(p5))}e.timer.flush=function(){VM(),jM()};function VM(){for(var h=Date.now(),g=Xa;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function jM(){for(var h,g=Xa,M=1/0;g;)g.c?(g.t<M&&(M=g.t),g=(h=g).n):g=h?h.n=g.n:Xa=g.n;return Za=h,M}e.round=function(h,g){return g?Math.round(h*(g=Math.pow(10,g)))/g:Math.round(h)},e.geom={};function o0(h){return h[0]}function zv(h){return h[1]}e.geom.hull=function(h){var g=o0,M=zv;if(arguments.length)return S(h);function S(L){if(L.length<3)return[];var D=Ar(g),B=Ar(M),F,H=L.length,X=[],Z=[];for(F=0;F<H;F++)X.push([+D.call(this,L[F],F),+B.call(this,L[F],F),F]);for(X.sort(Pue),F=0;F<H;F++)Z.push([X[F][0],-X[F][1]]);var K=WM(X),Q=WM(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?(M=L,S):M},S};function WM(h){for(var g=h.length,M=[0,1],S=2,L=2;L<g;L++){for(;S>1&&Jr(h[M[S-2]],h[M[S-1]],h[L])<=0;)--S;M[S++]=L}return M.slice(0,S)}function Pue(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return $(h,i1),h};var i1=e.geom.polygon.prototype=[];i1.area=function(){for(var h=-1,g=this.length,M,S=this[g-1],L=0;++h<g;)M=S,S=this[h],L+=M[1]*S[0]-M[0]*S[1];return L*.5},i1.centroid=function(h){var g=-1,M=this.length,S=0,L=0,D,B=this[M-1],F;for(arguments.length||(h=-1/(6*this.area()));++g<M;)D=B,B=this[g],F=D[0]*B[1]-B[0]*D[1],S+=(D[0]+B[0])*F,L+=(D[1]+B[1])*F;return[S*h,L*h]},i1.clip=function(h){for(var g,M=XM(h),S=-1,L=this.length-XM(this),D,B,F=this[L-1],H,X,Z;++S<L;){for(g=h.slice(),h.length=0,H=this[S],X=g[(B=g.length-M)-1],D=-1;++D<B;)Z=g[D],m5(Z,F,H)?(m5(X,F,H)||h.push(y5(X,Z,F,H)),h.push(Z)):m5(X,F,H)&&h.push(y5(X,Z,F,H)),X=Z;M&&h.push(h[0]),F=H}return h};function m5(h,g,M){return(M[0]-g[0])*(h[1]-g[1])<(M[1]-g[1])*(h[0]-g[0])}function y5(h,g,M,S){var L=h[0],D=M[0],B=g[0]-L,F=S[0]-D,H=h[1],X=M[1],Z=g[1]-H,K=S[1]-X,Q=(F*(H-X)-K*(L-D))/(K*B-F*Z);return[L+Q*B,H+Q*Z]}function XM(h){var g=h[0],M=h[h.length-1];return!(g[0]-M[0]||g[1]-M[1])}var l0,bu,s0,ZM=[],g5,Nv,$M=[];function Rue(){s1(this),this.edge=this.site=this.circle=null}function JM(h){var g=ZM.pop()||new Rue;return g.site=h,g}function b5(h){f0(h),s0.remove(h),ZM.push(h),s1(h)}function Fue(h){var g=h.circle,M=g.x,S=g.cy,L={x:M,y:S},D=h.P,B=h.N,F=[h];b5(h);for(var H=D;H.circle&&b(M-H.circle.x)<Ie&&b(S-H.circle.cy)<Ie;)D=H.P,F.unshift(H),b5(H),H=D;F.unshift(H),f0(H);for(var X=B;X.circle&&b(M-X.circle.x)<Ie&&b(S-X.circle.cy)<Ie;)B=X.N,F.push(X),b5(X),X=B;F.push(X),f0(X);var Z=F.length,K;for(K=1;K<Z;++K)X=F[K],H=F[K-1],o1(X.edge,H.site,X.site,L);H=F[0],X=F[Z-1],X.edge=Iv(H.site,X.site,null,L),u0(H),u0(X)}function zue(h){for(var g=h.x,M=h.y,S,L,D,B,F=s0._;F;)if(D=KM(F,M)-g,D>Ie)F=F.L;else if(B=g-Nue(F,M),B>Ie){if(!F.R){S=F;break}F=F.R}else{D>-Ie?(S=F.P,L=F):B>-Ie?(S=F,L=F.N):S=L=F;break}var H=JM(h);if(s0.insert(S,H),!(!S&&!L)){if(S===L){f0(S),L=JM(S.site),s0.insert(H,L),H.edge=L.edge=Iv(S.site,H.site),u0(S),u0(L);return}if(!L){H.edge=Iv(S.site,H.site);return}f0(S),f0(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,le=we.y-K,ve=2*(Q*le-pe*ee),_e=Q*Q+pe*pe,Te=ee*ee+le*le,he={x:(le*_e-pe*Te)/ve+Z,y:(Q*Te-ee*_e)/ve+K};o1(L.edge,X,we,he),H.edge=Iv(X,h,null,he),L.edge=Iv(h,we,null,he),u0(S),u0(L)}}function KM(h,g){var M=h.site,S=M.x,L=M.y,D=L-g;if(!D)return S;var B=h.P;if(!B)return-1/0;M=B.site;var F=M.x,H=M.y,X=H-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)-H+X/2+L-D/2)))/K+S:(S+F)/2}function Nue(h,g){var M=h.N;if(M)return KM(M,g);var S=h.site;return S.y===g?S.x:1/0}function QM(h){this.site=h,this.edges=[]}QM.prototype.prepare=function(){for(var h=this.edges,g=h.length,M;g--;)M=h[g].edge,(!M.b||!M.a)&&h.splice(g,1);return h.sort(ek),h.length};function Iue(h){for(var g=h[0][0],M=h[1][0],S=h[0][1],L=h[1][1],D,B,F,H,X=bu,Z=X.length,K,Q,pe,we,ee,le;Z--;)if(K=X[Z],!(!K||!K.prepare()))for(pe=K.edges,we=pe.length,Q=0;Q<we;)le=pe[Q].end(),F=le.x,H=le.y,ee=pe[++Q%we].start(),D=ee.x,B=ee.y,(b(F-D)>Ie||b(H-B)>Ie)&&(pe.splice(Q,0,new l1(Gue(K.site,le,b(F-g)<Ie&&L-H>Ie?{x:g,y:b(D-g)<Ie?B:L}:b(H-L)<Ie&&M-F>Ie?{x:b(B-L)<Ie?D:M,y:L}:b(F-M)<Ie&&H-S>Ie?{x:M,y:b(D-M)<Ie?B:S}:b(H-S)<Ie&&F-g>Ie?{x:b(B-S)<Ie?D:g,y:S}:null),K.site,null)),++we)}function ek(h,g){return g.angle-h.angle}function Bue(){s1(this),this.x=this.y=this.arc=this.site=this.cy=null}function u0(h){var g=h.P,M=h.N;if(!(!g||!M)){var S=g.site,L=h.site,D=M.site;if(S!==D){var B=L.x,F=L.y,H=S.x-B,X=S.y-F,Z=D.x-B,le=D.y-F,K=2*(H*le-X*Z);if(!(K>=-pr)){var Q=H*H+X*X,pe=Z*Z+le*le,we=(le*Q-X*pe)/K,ee=(H*pe-Z*Q)/K,le=ee+F,ve=$M.pop()||new Bue;ve.arc=h,ve.site=L,ve.x=we+B,ve.y=le+Math.sqrt(we*we+ee*ee),ve.cy=le,h.circle=ve;for(var _e=null,Te=Nv._;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}Nv.insert(_e,ve),_e||(g5=ve)}}}}function f0(h){var g=h.circle;g&&(g.P||(g5=g.N),Nv.remove(g),$M.push(g),s1(g),h.circle=null)}function Oue(h,g,M,S){return function(L){var D=L.a,B=L.b,F=D.x,H=D.y,X=B.x,Z=B.y,K=0,Q=1,pe=X-F,we=Z-H,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=M-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-H,!(!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-H,!(!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:H+K*we}),Q<1&&(L.b={x:F+Q*pe,y:H+Q*we}),L}}}}}}function Hue(h){for(var g=l0,M=Oue(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,L;S--;)L=g[S],(!Uue(L,h)||!M(L)||b(L.a.x-L.b.x)<Ie&&b(L.a.y-L.b.y)<Ie)&&(L.a=L.b=null,g.splice(S,1))}function Uue(h,g){var M=h.b;if(M)return!0;var S=h.a,L=g[0][0],D=g[1][0],B=g[0][1],F=g[1][1],H=h.l,X=h.r,Z=H.x,K=H.y,Q=X.x,pe=X.y,we=(Z+Q)/2,ee=(K+pe)/2,le,ve;if(pe===K){if(we<L||we>=D)return;if(Z>Q){if(!S)S={x:we,y:B};else if(S.y>=F)return;M={x:we,y:F}}else{if(!S)S={x:we,y:F};else if(S.y<B)return;M={x:we,y:B}}}else if(le=(Z-Q)/(pe-K),ve=ee-le*we,le<-1||le>1)if(Z>Q){if(!S)S={x:(B-ve)/le,y:B};else if(S.y>=F)return;M={x:(F-ve)/le,y:F}}else{if(!S)S={x:(F-ve)/le,y:F};else if(S.y<B)return;M={x:(B-ve)/le,y:B}}else if(K<pe){if(!S)S={x:L,y:le*L+ve};else if(S.x>=D)return;M={x:D,y:le*D+ve}}else{if(!S)S={x:D,y:le*D+ve};else if(S.x<L)return;M={x:L,y:le*L+ve}}return h.a=S,h.b=M,!0}function rk(h,g){this.l=h,this.r=g,this.a=this.b=null}function Iv(h,g,M,S){var L=new rk(h,g);return l0.push(L),M&&o1(L,h,g,M),S&&o1(L,g,h,S),bu[h.i].edges.push(new l1(L,h,g)),bu[g.i].edges.push(new l1(L,g,h)),L}function Gue(h,g,M){var S=new rk(h,null);return S.a=g,S.b=M,l0.push(S),S}function o1(h,g,M,S){!h.a&&!h.b?(h.a=S,h.l=g,h.r=M):h.l===M?h.b=S:h.a=S}function l1(h,g,M){var S=h.a,L=h.b;this.edge=h,this.site=g,this.angle=M?Math.atan2(M.y-g.y,M.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)}l1.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 x5(){this._=null}function s1(h){h.U=h.C=h.L=h.R=h.P=h.N=null}x5.prototype={insert:function(h,g){var M,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;M=h}else this._?(h=tk(this._),g.P=null,g.N=h,h.P=h.L=g,M=h):(g.P=g.N=null,this._=g,M=null);for(g.L=g.R=null,g.U=M,g.C=!0,h=g;M&&M.C;)S=M.U,M===S.L?(L=S.R,L&&L.C?(M.C=L.C=!1,S.C=!0,h=S):(h===M.R&&(Bv(this,M),h=M,M=h.U),M.C=!1,S.C=!0,Ov(this,S))):(L=S.L,L&&L.C?(M.C=L.C=!1,S.C=!0,h=S):(h===M.L&&(Ov(this,M),h=M,M=h.U),M.C=!1,S.C=!0,Bv(this,S))),M=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,M,S=h.L,L=h.R,D,B;if(S?L?D=tk(L):D=S:D=L,g?g.L===h?g.L=D:g.R=D:this._=D,S&&L?(B=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)):(B=h.C,h=D),h&&(h.U=g),!B){if(h&&h.C){h.C=!1;return}do{if(h===this._)break;if(h===g.L){if(M=g.R,M.C&&(M.C=!1,g.C=!0,Bv(this,g),M=g.R),M.L&&M.L.C||M.R&&M.R.C){(!M.R||!M.R.C)&&(M.L.C=!1,M.C=!0,Ov(this,M),M=g.R),M.C=g.C,g.C=M.R.C=!1,Bv(this,g),h=this._;break}}else if(M=g.L,M.C&&(M.C=!1,g.C=!0,Ov(this,g),M=g.L),M.L&&M.L.C||M.R&&M.R.C){(!M.L||!M.L.C)&&(M.R.C=!1,M.C=!0,Bv(this,M),M=g.L),M.C=g.C,g.C=M.L.C=!1,Ov(this,g),h=this._;break}M.C=!0,h=g,g=g.U}while(!h.C);h&&(h.C=!1)}}};function Bv(h,g){var M=g,S=g.R,L=M.U;L?L.L===M?L.L=S:L.R=S:h._=S,S.U=L,M.U=S,M.R=S.L,M.R&&(M.R.U=M),S.L=M}function Ov(h,g){var M=g,S=g.L,L=M.U;L?L.L===M?L.L=S:L.R=S:h._=S,S.U=L,M.U=S,M.L=S.R,M.L&&(M.L.U=M),S.R=M}function tk(h){for(;h.L;)h=h.L;return h}function _5(h,g){var M=h.sort(Yue).pop(),S,L,D;for(l0=[],bu=new Array(h.length),s0=new x5,Nv=new x5;;)if(D=g5,M&&(!D||M.y<D.y||M.y===D.y&&M.x<D.x))(M.x!==S||M.y!==L)&&(bu[M.i]=new QM(M),zue(M),S=M.x,L=M.y),M=h.pop();else if(D)Fue(D.arc);else break;g&&(Hue(g),Iue(g));var B={cells:bu,edges:l0};return s0=Nv=l0=bu=null,B}function Yue(h,g){return g.y-h.y||g.x-h.x}e.geom.voronoi=function(h){var g=o0,M=zv,S=g,L=M,D=u1;if(h)return B(h);function B(H){var X=new Array(H.length),Z=D[0][0],K=D[0][1],Q=D[1][0],pe=D[1][1];return _5(F(H),D).cells.forEach(function(we,ee){var le=we.edges,ve=we.site,_e=X[ee]=le.length?le.map(function(Te){var he=Te.start();return[he.x,he.y]}):ve.x>=Z&&ve.x<=Q&&ve.y>=K&&ve.y<=pe?[[Z,pe],[Q,pe],[Q,K],[Z,K]]:[];_e.point=H[ee]}),X}function F(H){return H.map(function(X,Z){return{x:Math.round(S(X,Z)/Ie)*Ie,y:Math.round(L(X,Z)/Ie)*Ie,i:Z}})}return B.links=function(H){return _5(F(H)).edges.filter(function(X){return X.l&&X.r}).map(function(X){return{source:H[X.l.i],target:H[X.r.i]}})},B.triangles=function(H){var X=[];return _5(F(H)).cells.forEach(function(Z,K){for(var Q=Z.site,pe=Z.edges.sort(ek),we=-1,ee=pe.length,le,ve,_e=pe[ee-1].edge,Te=_e.l===Q?_e.r:_e.l;++we<ee;)le=_e,ve=Te,_e=pe[we].edge,Te=_e.l===Q?_e.r:_e.l,K<ve.i&&K<Te.i&&Vue(Q,ve,Te)<0&&X.push([H[K],H[ve.i],H[Te.i]])}),X},B.x=function(H){return arguments.length?(S=Ar(g=H),B):g},B.y=function(H){return arguments.length?(L=Ar(M=H),B):M},B.clipExtent=function(H){return arguments.length?(D=H==null?u1:H,B):D===u1?null:D},B.size=function(H){return arguments.length?B.clipExtent(H&&[[0,0],H]):D===u1?null:D&&D[1]},B};var u1=[[-1e6,-1e6],[1e6,1e6]];function Vue(h,g,M){return(h.x-M.x)*(g.y-h.y)-(h.x-g.x)*(M.y-h.y)}e.geom.delaunay=function(h){return e.geom.voronoi().triangles(h)},e.geom.quadtree=function(h,g,M,S,L){var D=o0,B=zv,F;if(F=arguments.length)return D=jue,B=Wue,F===3&&(L=M,S=g,M=g=0),H(h);function H(X){var Z,K=Ar(D),Q=Ar(B),pe,we,ee,le,ve,_e,Te,he;if(g!=null)ve=g,_e=M,Te=S,he=L;else if(Te=he=-(ve=_e=1/0),pe=[],we=[],le=X.length,F)for(ee=0;ee<le;++ee)Z=X[ee],Z.x<ve&&(ve=Z.x),Z.y<_e&&(_e=Z.y),Z.x>Te&&(Te=Z.x),Z.y>he&&(he=Z.y),pe.push(Z.x),we.push(Z.y);else for(ee=0;ee<le;++ee){var Ye=+K(Z=X[ee],ee),or=+Q(Z,ee);Ye<ve&&(ve=Ye),or<_e&&(_e=or),Ye>Te&&(Te=Ye),or>he&&(he=or),pe.push(Ye),we.push(or)}var hr=Te-ve,fr=he-_e;hr>fr?he=_e+hr:Te=ve+fr;function br(wr,Dr,it,sa,gt,ar,Nr,Br){if(!(isNaN(it)||isNaN(sa)))if(wr.leaf){var ot=wr.x,Xt=wr.y;if(ot!=null)if(b(ot-it)+b(Xt-sa)<.01)xr(wr,Dr,it,sa,gt,ar,Nr,Br);else{var Ma=wr.point;wr.x=wr.y=wr.point=null,xr(wr,Ma,ot,Xt,gt,ar,Nr,Br),xr(wr,Dr,it,sa,gt,ar,Nr,Br)}else wr.x=it,wr.y=sa,wr.point=Dr}else xr(wr,Dr,it,sa,gt,ar,Nr,Br)}function xr(wr,Dr,it,sa,gt,ar,Nr,Br){var ot=(gt+Nr)*.5,Xt=(ar+Br)*.5,Ma=it>=ot,$a=sa>=Xt,bn=$a<<1|Ma;wr.leaf=!1,wr=wr.nodes[bn]||(wr.nodes[bn]=ak()),Ma?gt=ot:Nr=ot,$a?ar=Xt:Br=Xt,br(wr,Dr,it,sa,gt,ar,Nr,Br)}var zr=ak();if(zr.add=function(wr){br(zr,wr,+K(wr,++ee),+Q(wr,ee),ve,_e,Te,he)},zr.visit=function(wr){Hv(wr,zr,ve,_e,Te,he)},zr.find=function(wr){return Xue(zr,wr[0],wr[1],ve,_e,Te,he)},ee=-1,g==null){for(;++ee<le;)br(zr,X[ee],pe[ee],we[ee],ve,_e,Te,he);--ee}else X.forEach(zr.add);return pe=we=X=Z=null,zr}return H.x=function(X){return arguments.length?(D=X,H):D},H.y=function(X){return arguments.length?(B=X,H):B},H.extent=function(X){return arguments.length?(X==null?g=M=S=L=null:(g=+X[0][0],M=+X[0][1],S=+X[1][0],L=+X[1][1]),H):g==null?null:[[g,M],[S,L]]},H.size=function(X){return arguments.length?(X==null?g=M=S=L=null:(g=M=0,S=+X[0],L=+X[1]),H):g==null?null:[S-g,L-M]},H};function jue(h){return h.x}function Wue(h){return h.y}function ak(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Hv(h,g,M,S,L,D){if(!h(g,M,S,L,D)){var B=(M+L)*.5,F=(S+D)*.5,H=g.nodes;H[0]&&Hv(h,H[0],M,S,B,F),H[1]&&Hv(h,H[1],B,S,L,F),H[2]&&Hv(h,H[2],M,F,B,D),H[3]&&Hv(h,H[3],B,F,L,D)}}function Xue(h,g,M,S,L,D,B){var F=1/0,H;return(function X(Z,K,Q,pe,we){if(!(K>D||Q>B||pe<S||we<L)){if(ee=Z.point){var ee,le=g-Z.x,ve=M-Z.y,_e=le*le+ve*ve;if(_e<F){var Te=Math.sqrt(F=_e);S=g-Te,L=M-Te,D=g+Te,B=M+Te,H=ee}}for(var he=Z.nodes,Ye=(K+pe)*.5,or=(Q+we)*.5,hr=g>=Ye,fr=M>=or,br=fr<<1|hr,xr=br+4;br<xr;++br)if(Z=he[br&3])switch(br&3){case 0:X(Z,K,Q,Ye,or);break;case 1:X(Z,Ye,Q,pe,or);break;case 2:X(Z,K,or,Ye,we);break;case 3:X(Z,Ye,or,pe,we);break}}})(h,S,L,D,B),H}e.interpolateRgb=w5;function w5(h,g){h=e.rgb(h),g=e.rgb(g);var M=h.r,S=h.g,L=h.b,D=g.r-M,B=g.g-S,F=g.b-L;return function(H){return"#"+ss(Math.round(M+D*H))+ss(Math.round(S+B*H))+ss(Math.round(L+F*H))}}e.interpolateObject=nk;function nk(h,g){var M={},S={},L;for(L in h)L in g?M[L]=xu(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 M)S[L]=M[L](D);return S}}e.interpolateNumber=Ll;function Ll(h,g){return h=+h,g=+g,function(M){return h*(1-M)+g*M}}e.interpolateString=ik;function ik(h,g){var M=T5.lastIndex=A5.lastIndex=0,S,L,D,B=-1,F=[],H=[];for(h=h+"",g=g+"";(S=T5.exec(h))&&(L=A5.exec(g));)(D=L.index)>M&&(D=g.slice(M,D),F[B]?F[B]+=D:F[++B]=D),(S=S[0])===(L=L[0])?F[B]?F[B]+=L:F[++B]=L:(F[++B]=null,H.push({i:B,x:Ll(S,L)})),M=A5.lastIndex;return M<g.length&&(D=g.slice(M),F[B]?F[B]+=D:F[++B]=D),F.length<2?H[0]?(g=H[0].x,function(X){return g(X)+""}):function(){return g}:(g=H.length,function(X){for(var Z=0,K;Z<g;++Z)F[(K=H[Z]).i]=K.x(X);return F.join("")})}var T5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,A5=new RegExp(T5.source,"g");e.interpolate=xu;function xu(h,g){for(var M=e.interpolators.length,S;--M>=0&&!(S=e.interpolators[M](h,g)););return S}e.interpolators=[function(h,g){var M=typeof g;return(M==="string"?Mr.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?w5:ik:g instanceof Yr?w5:Array.isArray(g)?f1:M==="object"&&isNaN(g)?nk:Ll)(h,g)}],e.interpolateArray=f1;function f1(h,g){var M=[],S=[],L=h.length,D=g.length,B=Math.min(h.length,g.length),F;for(F=0;F<B;++F)M.push(xu(h[F],g[F]));for(;F<L;++F)S[F]=h[F];for(;F<D;++F)S[F]=g[F];return function(H){for(F=0;F<B;++F)S[F]=M[F](H);return S}}var ok=function(){return O},Zue=e.map({linear:ok,poly:rfe,quad:function(){return Kue},cubic:function(){return Que},sin:function(){return tfe},exp:function(){return afe},circle:function(){return nfe},elastic:ife,back:ofe,bounce:function(){return lfe}}),$ue=e.map({in:O,out:lk,"in-out":sk,"out-in":function(h){return sk(lk(h))}});e.ease=function(h){var g=h.indexOf("-"),M=g>=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return M=Zue.get(M)||ok,S=$ue.get(S)||O,Jue(S(M.apply(null,r.call(arguments,1))))};function Jue(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function lk(h){return function(g){return 1-h(1-g)}}function sk(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function Kue(h){return h*h}function Que(h){return h*h*h}function efe(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,M=g*h;return 4*(h<.5?M:3*(h-g)+M-.75)}function rfe(h){return function(g){return Math.pow(g,h)}}function tfe(h){return 1-Math.cos(h*ne)}function afe(h){return Math.pow(2,10*(h-1))}function nfe(h){return 1-Math.sqrt(1-h*h)}function ife(h,g){var M;return arguments.length<2&&(g=.45),arguments.length?M=g/sr*Math.asin(1/h):(h=1,M=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-M)*sr/g)}}function ofe(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=sfe;function sfe(h,g){h=e.hcl(h),g=e.hcl(g);var M=h.h,S=h.c,L=h.l,D=g.h-M,B=g.c-S,F=g.l-L;return isNaN(B)&&(B=0,S=isNaN(S)?g.c:S),isNaN(D)?(D=0,M=isNaN(M)?g.h:M):D>180?D-=360:D<-180&&(D+=360),function(H){return En(M+D*H,S+B*H,L+F*H)+""}}e.interpolateHsl=ufe;function ufe(h,g){h=e.hsl(h),g=e.hsl(g);var M=h.h,S=h.s,L=h.l,D=g.h-M,B=g.s-S,F=g.l-L;return isNaN(B)&&(B=0,S=isNaN(S)?g.s:S),isNaN(D)?(D=0,M=isNaN(M)?g.h:M):D>180?D-=360:D<-180&&(D+=360),function(H){return Mt(M+D*H,S+B*H,L+F*H)+""}}e.interpolateLab=ffe;function ffe(h,g){h=e.lab(h),g=e.lab(g);var M=h.l,S=h.a,L=h.b,D=g.l-M,B=g.a-S,F=g.b-L;return function(H){return Ht(M+D*H,S+B*H,L+F*H)+""}}e.interpolateRound=uk;function uk(h,g){return g-=h,function(M){return Math.round(h+g*M)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(M){if(M!=null){g.setAttribute("transform",M);var S=g.transform.baseVal.consolidate()}return new fk(S?S.matrix:vfe)})(h)};function fk(h){var g=[h.a,h.b],M=[h.c,h.d],S=vk(g),L=ck(g,M),D=vk(cfe(M,g,-L))||0;g[0]*M[1]<M[0]*g[1]&&(g[0]*=-1,g[1]*=-1,S*=-1,L*=-1),this.rotate=(S?Math.atan2(g[1],g[0]):Math.atan2(-M[0],M[1]))*ze,this.translate=[h.e,h.f],this.scale=[S,D],this.skew=D?Math.atan2(L,D)*ze:0}fk.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function ck(h,g){return h[0]*g[0]+h[1]*g[1]}function vk(h){var g=Math.sqrt(ck(h,h));return g&&(h[0]/=g,h[1]/=g),g}function cfe(h,g,M){return h[0]+=M*g[0],h[1]+=M*g[1],h}var vfe={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=hk;function c0(h){return h.length?h.pop()+",":""}function hfe(h,g,M,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=M.push("translate(",null,",",null,")");S.push({i:L-4,x:Ll(h[0],g[0])},{i:L-2,x:Ll(h[1],g[1])})}else(g[0]||g[1])&&M.push("translate("+g+")")}function dfe(h,g,M,S){h!==g?(h-g>180?g+=360:g-h>180&&(h+=360),S.push({i:M.push(c0(M)+"rotate(",null,")")-2,x:Ll(h,g)})):g&&M.push(c0(M)+"rotate("+g+")")}function pfe(h,g,M,S){h!==g?S.push({i:M.push(c0(M)+"skewX(",null,")")-2,x:Ll(h,g)}):g&&M.push(c0(M)+"skewX("+g+")")}function mfe(h,g,M,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=M.push(c0(M)+"scale(",null,",",null,")");S.push({i:L-4,x:Ll(h[0],g[0])},{i:L-2,x:Ll(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&M.push(c0(M)+"scale("+g+")")}function hk(h,g){var M=[],S=[];return h=e.transform(h),g=e.transform(g),hfe(h.translate,g.translate,M,S),dfe(h.rotate,g.rotate,M,S),pfe(h.skew,g.skew,M,S),mfe(h.scale,g.scale,M,S),h=g=null,function(L){for(var D=-1,B=S.length,F;++D<B;)M[(F=S[D]).i]=F.x(L);return M.join("")}}function yfe(h,g){return g=(g-=h=+h)||1/g,function(M){return(M-h)/g}}function gfe(h,g){return g=(g-=h=+h)||1/g,function(M){return Math.max(0,Math.min(1,(M-h)/g))}}e.layout={},e.layout.bundle=function(){return function(h){for(var g=[],M=-1,S=h.length;++M<S;)g.push(bfe(h[M]));return g}};function bfe(h){for(var g=h.source,M=h.target,S=xfe(g,M),L=[g];g!==S;)g=g.parent,L.push(g);for(var D=L.length;M!==S;)L.splice(D,0,M),M=M.parent;return L}function dk(h){for(var g=[],M=h.parent;M!=null;)g.push(h),h=M,M=M.parent;return g.push(h),g}function xfe(h,g){if(h===g)return h;for(var M=dk(h),S=dk(g),L=M.pop(),D=S.pop(),B=null;L===D;)B=L,L=M.pop(),D=S.pop();return B}e.layout.chord=function(){var h={},g,M,S,L,D=0,B,F,H;function X(){var K={},Q=[],pe=e.range(L),we=[],ee,le,ve,_e,Te;for(g=[],M=[],ee=0,_e=-1;++_e<L;){for(le=0,Te=-1;++Te<L;)le+=S[_e][Te];Q.push(le),we.push(e.range(L)),ee+=le}for(B&&pe.sort(function(zr,wr){return B(Q[zr],Q[wr])}),F&&we.forEach(function(zr,wr){zr.sort(function(Dr,it){return F(S[wr][Dr],S[wr][it])})}),ee=(sr-D*L)/ee,le=0,_e=-1;++_e<L;){for(ve=le,Te=-1;++Te<L;){var he=pe[_e],Ye=we[he][Te],or=S[he][Ye],hr=le,fr=le+=or*ee;K[he+"-"+Ye]={index:he,subindex:Ye,startAngle:hr,endAngle:fr,value:or}}M[he]={index:he,startAngle:ve,endAngle:le,value:Q[he]},le+=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})}H&&Z()}function Z(){g.sort(function(K,Q){return H((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=M=null,h):S},h.padding=function(K){return arguments.length?(D=K,g=M=null,h):D},h.sortGroups=function(K){return arguments.length?(B=K,g=M=null,h):B},h.sortSubgroups=function(K){return arguments.length?(F=K,g=null,h):F},h.sortChords=function(K){return arguments.length?(H=K,g&&Z(),h):H},h.chords=function(){return g||X(),g},h.groups=function(){return M||X(),M},h},e.layout.force=function(){var h={},g=e.dispatch("start","tick","end"),M,S=[1,1],L,D,B=.9,F=Mfe,H=kfe,X=-30,Z=Sfe,K=.1,Q=.64,pe=[],we=[],ee,le,ve;function _e(he){return function(Ye,or,hr,fr){if(Ye.point!==he){var br=Ye.cx-he.x,xr=Ye.cy-he.y,zr=fr-or,wr=br*br+xr*xr;if(zr*zr/Q<wr){if(wr<Z){var Dr=Ye.charge/wr;he.px-=br*Dr,he.py-=xr*Dr}return!0}if(Ye.point&&wr&&wr<Z){var Dr=Ye.pointCharge/wr;he.px-=br*Dr,he.py-=xr*Dr}}return!Ye.charge}}h.tick=function(){if((D*=.99)<.005)return M=null,g.end({type:"end",alpha:D=0}),!0;var he=pe.length,Ye=we.length,or,hr,fr,br,xr,zr,wr,Dr,it;for(hr=0;hr<Ye;++hr)fr=we[hr],br=fr.source,xr=fr.target,Dr=xr.x-br.x,it=xr.y-br.y,(zr=Dr*Dr+it*it)&&(zr=D*le[hr]*((zr=Math.sqrt(zr))-ee[hr])/zr,Dr*=zr,it*=zr,xr.x-=Dr*(wr=br.weight+xr.weight?br.weight/(br.weight+xr.weight):.5),xr.y-=it*wr,br.x+=Dr*(wr=1-wr),br.y+=it*wr);if((wr=D*K)&&(Dr=S[0]/2,it=S[1]/2,hr=-1,wr))for(;++hr<he;)fr=pe[hr],fr.x+=(Dr-fr.x)*wr,fr.y+=(it-fr.y)*wr;if(X)for(pk(or=e.geom.quadtree(pe),D,ve),hr=-1;++hr<he;)(fr=pe[hr]).fixed||or.visit(_e(fr));for(hr=-1;++hr<he;)fr=pe[hr],fr.fixed?(fr.x=fr.px,fr.y=fr.py):(fr.x-=(fr.px-(fr.px=fr.x))*B,fr.y-=(fr.py-(fr.py=fr.y))*B);g.tick({type:"tick",alpha:D})},h.nodes=function(he){return arguments.length?(pe=he,h):pe},h.links=function(he){return arguments.length?(we=he,h):we},h.size=function(he){return arguments.length?(S=he,h):S},h.linkDistance=function(he){return arguments.length?(F=typeof he=="function"?he:+he,h):F},h.distance=h.linkDistance,h.linkStrength=function(he){return arguments.length?(H=typeof he=="function"?he:+he,h):H},h.friction=function(he){return arguments.length?(B=+he,h):B},h.charge=function(he){return arguments.length?(X=typeof he=="function"?he:+he,h):X},h.chargeDistance=function(he){return arguments.length?(Z=he*he,h):Math.sqrt(Z)},h.gravity=function(he){return arguments.length?(K=+he,h):K},h.theta=function(he){return arguments.length?(Q=he*he,h):Math.sqrt(Q)},h.alpha=function(he){return arguments.length?(he=+he,D?he>0?D=he:(M.c=null,M.t=NaN,M=null,g.end({type:"end",alpha:D=0})):he>0&&(g.start({type:"start",alpha:D=he}),M=n1(h.tick)),h):D},h.start=function(){var he,Ye=pe.length,or=we.length,hr=S[0],fr=S[1],br,xr;for(he=0;he<Ye;++he)(xr=pe[he]).index=he,xr.weight=0;for(he=0;he<or;++he)xr=we[he],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(he=0;he<Ye;++he)xr=pe[he],isNaN(xr.x)&&(xr.x=zr("x",hr)),isNaN(xr.y)&&(xr.y=zr("y",fr)),isNaN(xr.px)&&(xr.px=xr.x),isNaN(xr.py)&&(xr.py=xr.y);if(ee=[],typeof F=="function")for(he=0;he<or;++he)ee[he]=+F.call(this,we[he],he);else for(he=0;he<or;++he)ee[he]=F;if(le=[],typeof H=="function")for(he=0;he<or;++he)le[he]=+H.call(this,we[he],he);else for(he=0;he<or;++he)le[he]=H;if(ve=[],typeof X=="function")for(he=0;he<Ye;++he)ve[he]=+X.call(this,pe[he],he);else for(he=0;he<Ye;++he)ve[he]=X;function zr(wr,Dr){if(!br){for(br=new Array(Ye),gt=0;gt<Ye;++gt)br[gt]=[];for(gt=0;gt<or;++gt){var it=we[gt];br[it.source.index].push(it.target),br[it.target.index].push(it.source)}}for(var sa=br[he],gt=-1,ar=sa.length,Nr;++gt<ar;)if(!isNaN(Nr=sa[gt][wr]))return Nr;return Math.random()*Dr}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(O).on("dragstart.force",_fe).on("drag.force",Te).on("dragend.force",wfe)),!arguments.length)return L;this.on("mouseover.force",Tfe).on("mouseout.force",Afe).call(L)};function Te(he){he.px=e.event.x,he.py=e.event.y,h.resume()}return e.rebind(h,g,"on")};function _fe(h){h.fixed|=2}function wfe(h){h.fixed&=-7}function Tfe(h){h.fixed|=4,h.px=h.x,h.py=h.y}function Afe(h){h.fixed&=-5}function pk(h,g,M){var S=0,L=0;if(h.charge=0,!h.leaf)for(var D=h.nodes,B=D.length,F=-1,H;++F<B;)H=D[F],H!=null&&(pk(H,g,M),h.charge+=H.charge,S+=H.charge*H.cx,L+=H.charge*H.cy);if(h.point){h.leaf||(h.point.x+=Math.random()-.5,h.point.y+=Math.random()-.5);var X=g*M[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 Mfe=20,kfe=1,Sfe=1/0;e.layout.hierarchy=function(){var h=Cfe,g=qfe,M=Lfe;function S(L){var D=[L],B=[],F;for(L.depth=0;(F=D.pop())!=null;)if(B.push(F),(X=g.call(S,F,F.depth))&&(H=X.length)){for(var H,X,Z;--H>=0;)D.push(Z=X[H]),Z.parent=F,Z.depth=F.depth+1;M&&(F.value=0),F.children=X}else M&&(F.value=+M.call(S,F,F.depth)||0),delete F.children;return Wo(L,function(K){var Q,pe;h&&(Q=K.children)&&Q.sort(h),M&&(pe=K.parent)&&(pe.value+=K.value)}),B}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?(M=L,S):M},S.revalue=function(L){return M&&(Gv(L,function(D){D.children&&(D.value=0)}),Wo(L,function(D){var B;D.children||(D.value=+M.call(S,D,D.depth)||0),(B=D.parent)&&(B.value+=D.value)})),L},S};function Uv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Dfe,h}function Gv(h,g){for(var M=[h];(h=M.pop())!=null;)if(g(h),(L=h.children)&&(S=L.length))for(var S,L;--S>=0;)M.push(L[S])}function Wo(h,g){for(var M=[h],S=[];(h=M.pop())!=null;)if(S.push(h),(B=h.children)&&(D=B.length))for(var L=-1,D,B;++L<D;)M.push(B[L]);for(;(h=S.pop())!=null;)g(h)}function qfe(h){return h.children}function Lfe(h){return h.value}function Cfe(h,g){return g.value-h.value}function Dfe(h){return e.merge(h.map(function(g){return(g.children||[]).map(function(M){return{source:g,target:M}})}))}e.layout.partition=function(){var h=e.layout.hierarchy(),g=[1,1];function M(D,B,F,H){var X=D.children;if(D.x=B,D.y=D.depth*H,D.dx=F,D.dy=H,X&&(K=X.length)){var Z=-1,K,Q,pe;for(F=D.value?F/D.value:0;++Z<K;)M(Q=X[Z],B,pe=Q.value*F,H),B+=pe}}function S(D){var B=D.children,F=0;if(B&&(X=B.length))for(var H=-1,X;++H<X;)F=Math.max(F,S(B[H]));return 1+F}function L(D,B){var F=h.call(this,D,B);return M(F[0],0,g[0],g[1]/S(F[0])),F}return L.size=function(D){return arguments.length?(g=D,L):g},Uv(L,h)},e.layout.pie=function(){var h=Number,g=mk,M=0,S=sr,L=0;function D(B){var F=B.length,H=B.map(function(_e,Te){return+h.call(D,_e,Te)}),X=+(typeof M=="function"?M.apply(this,arguments):M),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(H),we=pe?(Z-F*Q)/pe:0,ee=e.range(F),le=[],ve;return g!=null&&ee.sort(g===mk?function(_e,Te){return H[Te]-H[_e]}:function(_e,Te){return g(B[_e],B[Te])}),ee.forEach(function(_e){le[_e]={data:B[_e],value:ve=H[_e],startAngle:X,endAngle:X+=ve*we+Q,padAngle:K}}),le}return D.value=function(B){return arguments.length?(h=B,D):h},D.sort=function(B){return arguments.length?(g=B,D):g},D.startAngle=function(B){return arguments.length?(M=B,D):M},D.endAngle=function(B){return arguments.length?(S=B,D):S},D.padAngle=function(B){return arguments.length?(L=B,D):L},D};var mk={};e.layout.stack=function(){var h=O,g=M5,M=k5,S=Rfe,L=Efe,D=Pfe;function B(F,H){if(!(we=F.length))return F;var X=F.map(function(_e,Te){return h.call(B,_e,Te)}),Z=X.map(function(_e){return _e.map(function(Te,he){return[L.call(B,Te,he),D.call(B,Te,he)]})}),K=g.call(B,Z,H);X=e.permute(X,K),Z=e.permute(Z,K);var Q=M.call(B,Z,H),pe=X[0].length,we,ee,le,ve;for(le=0;le<pe;++le)for(S.call(B,X[0][le],ve=Q[le],Z[0][le][1]),ee=1;ee<we;++ee)S.call(B,X[ee][le],ve+=Z[ee-1][le][1],Z[ee][le][1]);return F}return B.values=function(F){return arguments.length?(h=F,B):h},B.order=function(F){return arguments.length?(g=typeof F=="function"?F:Ffe.get(F)||M5,B):g},B.offset=function(F){return arguments.length?(M=typeof F=="function"?F:zfe.get(F)||k5,B):M},B.x=function(F){return arguments.length?(L=F,B):L},B.y=function(F){return arguments.length?(D=F,B):D},B.out=function(F){return arguments.length?(S=F,B):S},B};function Efe(h){return h.x}function Pfe(h){return h.y}function Rfe(h,g,M){h.y0=g,h.y=M}var Ffe=e.map({"inside-out":function(h){var g=h.length,M,S,L=h.map(Nfe),D=h.map(Ife),B=e.range(g).sort(function(K,Q){return L[K]-L[Q]}),F=0,H=0,X=[],Z=[];for(M=0;M<g;++M)S=B[M],F<H?(F+=D[S],X.push(S)):(H+=D[S],Z.push(S));return Z.reverse().concat(X)},reverse:function(h){return e.range(h.length).reverse()},default:M5}),zfe=e.map({silhouette:function(h){var g=h.length,M=h[0].length,S=[],L=0,D,B,F,H=[];for(B=0;B<M;++B){for(D=0,F=0;D<g;D++)F+=h[D][B][1];F>L&&(L=F),S.push(F)}for(B=0;B<M;++B)H[B]=(L-S[B])/2;return H},wiggle:function(h){var g=h.length,M=h[0],S=M.length,L,D,B,F,H,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,H=0,Z=M[D][0]-M[D-1][0];L<g;++L){for(B=0,X=(h[L][D][1]-h[L][D-1][1])/(2*Z);B<L;++B)X+=(h[B][D][1]-h[B][D-1][1])/Z;H+=X*h[L][D][1]}pe[D]=K-=F?H/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,M=h[0].length,S=1/g,L,D,B,F=[];for(D=0;D<M;++D){for(L=0,B=0;L<g;L++)B+=h[L][D][1];if(B)for(L=0;L<g;L++)h[L][D][1]/=B;else for(L=0;L<g;L++)h[L][D][1]=S}for(D=0;D<M;++D)F[D]=0;return F},zero:k5});function M5(h){return e.range(h.length)}function k5(h){for(var g=-1,M=h[0].length,S=[];++g<M;)S[g]=0;return S}function Nfe(h){for(var g=1,M=0,S=h[0][1],L,D=h.length;g<D;++g)(L=h[g][1])>S&&(M=g,S=L);return M}function Ife(h){return h.reduce(Bfe,0)}function Bfe(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,M=Hfe,S=Ofe;function L(D,Q){for(var F=[],H=D.map(g,this),X=M.call(this,H,Q),Z=S.call(this,X,H,Q),K,Q=-1,pe=H.length,we=Z.length-1,ee=h?1:1/pe,le;++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;)le=H[Q],le>=X[0]&&le<=X[1]&&(K=F[e.bisect(Z,le,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?(M=Ar(D),L):M},L.bins=function(D){return arguments.length?(S=typeof D=="number"?function(B){return yk(B,D)}:Ar(D),L):S},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function Ofe(h,g){return yk(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function yk(h,g){for(var M=-1,S=+h[0],L=(h[1]-S)/g,D=[];++M<=g;)D[M]=L*M+S;return D}function Hfe(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(Ufe),g=0,M=[1,1],S;function L(D,B){var F=h.call(this,D,B),H=F[0],X=M[0],Z=M[1],K=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(H.x=H.y=0,Wo(H,function(pe){pe.r=+K(pe.value)}),Wo(H,xk),g){var Q=g*(S?1:Math.max(2*H.r/X,2*H.r/Z))/2;Wo(H,function(pe){pe.r+=Q}),Wo(H,xk),Wo(H,function(pe){pe.r-=Q})}return _k(H,X/2,Z/2,S?1:1/Math.max(2*H.r/X,2*H.r/Z)),F}return L.size=function(D){return arguments.length?(M=D,L):M},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},Uv(L,h)};function Ufe(h,g){return h.value-g.value}function S5(h,g){var M=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=M,M._pack_prev=g}function gk(h,g){h._pack_next=g,g._pack_prev=h}function bk(h,g){var M=g.x-h.x,S=g.y-h.y,L=h.r+g.r;return .999*L*L>M*M+S*S}function xk(h){if(!(g=h.children)||!(Q=g.length))return;var g,M=1/0,S=-1/0,L=1/0,D=-1/0,B,F,H,X,Z,K,Q;function pe(he){M=Math.min(he.x-he.r,M),S=Math.max(he.x+he.r,S),L=Math.min(he.y-he.r,L),D=Math.max(he.y+he.r,D)}if(g.forEach(Gfe),B=g[0],B.x=-B.r,B.y=0,pe(B),Q>1&&(F=g[1],F.x=F.r,F.y=0,pe(F),Q>2))for(H=g[2],wk(B,F,H),pe(H),S5(B,H),B._pack_prev=H,S5(H,F),F=B._pack_next,X=3;X<Q;X++){wk(B,F,H=g[X]);var we=0,ee=1,le=1;for(Z=F._pack_next;Z!==F;Z=Z._pack_next,ee++)if(bk(Z,H)){we=1;break}if(we==1)for(K=B._pack_prev;K!==Z._pack_prev&&!bk(K,H);K=K._pack_prev,le++);we?(ee<le||ee==le&&F.r<B.r?gk(B,F=Z):gk(B=K,F),X--):(S5(B,H),F=H,pe(H))}var ve=(M+S)/2,_e=(L+D)/2,Te=0;for(X=0;X<Q;X++)H=g[X],H.x-=ve,H.y-=_e,Te=Math.max(Te,H.r+Math.sqrt(H.x*H.x+H.y*H.y));h.r=Te,g.forEach(Yfe)}function Gfe(h){h._pack_next=h._pack_prev=h}function Yfe(h){delete h._pack_next,delete h._pack_prev}function _k(h,g,M,S){var L=h.children;if(h.x=g+=S*h.x,h.y=M+=S*h.y,h.r*=S,L)for(var D=-1,B=L.length;++D<B;)_k(L[D],g,M,S)}function wk(h,g,M){var S=h.r+M.r,L=g.x-h.x,D=g.y-h.y;if(S&&(L||D)){var B=g.r+M.r,F=L*L+D*D;B*=B,S*=S;var H=.5+(S-B)/(2*F),X=Math.sqrt(Math.max(0,2*B*(S+F)-(S-=F)*S-B*B))/(2*F);M.x=h.x+H*L+X*D,M.y=h.y+H*D-X*L}else M.x=h.x+S,M.y=h.y}e.layout.tree=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Tk,M=[1,1],S=null;function L(Z,K){var Q=h.call(this,Z,K),pe=Q[0],we=D(pe);if(Wo(we,B),we.parent.m=-we.z,Gv(we,F),S)Gv(pe,X);else{var ee=pe,le=pe,ve=pe;Gv(pe,function(Ye){Ye.x<ee.x&&(ee=Ye),Ye.x>le.x&&(le=Ye),Ye.depth>ve.depth&&(ve=Ye)});var _e=g(ee,le)/2-ee.x,Te=M[0]/(le.x+g(le,ee)/2+_e),he=M[1]/(ve.depth||1);Gv(pe,function(Ye){Ye.x=(Ye.x+_e)*Te,Ye.y=Ye.depth*he})}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,le=0,ve=we.length;le<ve;++le)Q.push((we[le]=ee={_:we[le],parent:pe,children:(ee=we[le].children)&&ee.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:le}).a=ee);return K.children[0]}function B(Z){var K=Z.children,Q=Z.parent.children,pe=Z.i?Q[Z.i-1]:null;if(K.length){jfe(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=H(Z,pe,Z.parent.A||Q[0])}function F(Z){Z._.x=Z.z+Z.parent.m,Z.m+=Z.parent.m}function H(Z,K,Q){if(K){for(var pe=Z,we=Z,ee=K,le=pe.parent.children[0],ve=pe.m,_e=we.m,Te=ee.m,he=le.m,Ye;ee=L5(ee),pe=q5(pe),ee&&pe;)le=q5(le),we=L5(we),we.a=Z,Ye=ee.z+Te-pe.z-ve+g(ee._,pe._),Ye>0&&(Vfe(Wfe(ee,Z,Q),Z,Ye),ve+=Ye,_e+=Ye),Te+=ee.m,ve+=pe.m,he+=le.m,_e+=we.m;ee&&!L5(we)&&(we.t=ee,we.m+=Te-_e),pe&&!q5(le)&&(le.t=pe,le.m+=ve-he,Q=Z)}return Q}function X(Z){Z.x*=M[0],Z.y=Z.depth*M[1]}return L.separation=function(Z){return arguments.length?(g=Z,L):g},L.size=function(Z){return arguments.length?(S=(M=Z)==null?X:null,L):S?null:M},L.nodeSize=function(Z){return arguments.length?(S=(M=Z)==null?null:X,L):S?M:null},Uv(L,h)};function Tk(h,g){return h.parent==g.parent?1:2}function q5(h){var g=h.children;return g.length?g[0]:h.t}function L5(h){var g=h.children,M;return(M=g.length)?g[M-1]:h.t}function Vfe(h,g,M){var S=M/(g.i-h.i);g.c-=S,g.s+=M,h.c+=S,g.z+=M,g.m+=M}function jfe(h){for(var g=0,M=0,S=h.children,L=S.length,D;--L>=0;)D=S[L],D.z+=g,D.m+=g,g+=D.s+(M+=D.c)}function Wfe(h,g,M){return h.a.parent===g.parent?h.a:M}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Tk,M=[1,1],S=!1;function L(D,B){var F=h.call(this,D,B),H=F[0],X,Z=0;Wo(H,function(ee){var le=ee.children;le&&le.length?(ee.x=Zfe(le),ee.y=Xfe(le)):(ee.x=X?Z+=g(ee,X):0,ee.y=0,X=ee)});var K=Ak(H),Q=Mk(H),pe=K.x-g(K,Q)/2,we=Q.x+g(Q,K)/2;return Wo(H,S?function(ee){ee.x=(ee.x-H.x)*M[0],ee.y=(H.y-ee.y)*M[1]}:function(ee){ee.x=(ee.x-pe)/(we-pe)*M[0],ee.y=(1-(H.y?ee.y/H.y:1))*M[1]}),F}return L.separation=function(D){return arguments.length?(g=D,L):g},L.size=function(D){return arguments.length?(S=(M=D)==null,L):S?null:M},L.nodeSize=function(D){return arguments.length?(S=(M=D)!=null,L):S?M:null},Uv(L,h)};function Xfe(h){return 1+e.max(h,function(g){return g.y})}function Zfe(h){return h.reduce(function(g,M){return g+M.x},0)/h.length}function Ak(h){var g=h.children;return g&&g.length?Ak(g[0]):h}function Mk(h){var g=h.children,M;return g&&(M=g.length)?Mk(g[M-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,M=[1,1],S=null,L=C5,D=!1,B,F="squarify",H=.5*(1+Math.sqrt(5));function X(ee,le){for(var ve=-1,_e=ee.length,Te,he;++ve<_e;)he=(Te=ee[ve]).value*(le<0?0:le),Te.area=isNaN(he)||he<=0?0:he}function Z(ee){var le=ee.children;if(le&&le.length){var ve=L(ee),_e=[],Te=le.slice(),he,Ye=1/0,or,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(he=Te[fr-1]),_e.area+=he.area,F!=="squarify"||(or=Q(_e,hr))<=Ye?(Te.pop(),Ye=or):(_e.area-=_e.pop().area,pe(_e,hr,ve,!1),hr=Math.min(ve.dx,ve.dy),_e.length=_e.area=0,Ye=1/0);_e.length&&(pe(_e,hr,ve,!0),_e.length=_e.area=0),le.forEach(Z)}}function K(ee){var le=ee.children;if(le&&le.length){var ve=L(ee),_e=le.slice(),Te,he=[];for(X(_e,ve.dx*ve.dy/ee.value),he.area=0;Te=_e.pop();)he.push(Te),he.area+=Te.area,Te.z!=null&&(pe(he,Te.z?ve.dx:ve.dy,ve,!_e.length),he.length=he.area=0);le.forEach(K)}}function Q(ee,le){for(var ve=ee.area,_e,Te=0,he=1/0,Ye=-1,or=ee.length;++Ye<or;)(_e=ee[Ye].area)&&(_e<he&&(he=_e),_e>Te&&(Te=_e));return ve*=ve,le*=le,ve?Math.max(le*Te*H/ve,ve/(le*he*H)):1/0}function pe(ee,le,ve,_e){var Te=-1,he=ee.length,Ye=ve.x,or=ve.y,hr=le?g(ee.area/le):0,fr;if(le==ve.dx){for((_e||hr>ve.dy)&&(hr=ve.dy);++Te<he;)fr=ee[Te],fr.x=Ye,fr.y=or,fr.dy=hr,Ye+=fr.dx=Math.min(ve.x+ve.dx-Ye,hr?g(fr.area/hr):0);fr.z=!0,fr.dx+=ve.x+ve.dx-Ye,ve.y+=hr,ve.dy-=hr}else{for((_e||hr>ve.dx)&&(hr=ve.dx);++Te<he;)fr=ee[Te],fr.x=Ye,fr.y=or,fr.dx=hr,or+=fr.dy=Math.min(ve.y+ve.dy-or,hr?g(fr.area/hr):0);fr.z=!1,fr.dy+=ve.y+ve.dy-or,ve.x+=hr,ve.dx-=hr}}function we(ee){var le=B||h(ee),ve=le[0];return ve.x=ve.y=0,ve.value?(ve.dx=M[0],ve.dy=M[1]):ve.dx=ve.dy=0,B&&h.revalue(ve),X([ve],ve.dx*ve.dy/ve.value),(B?K:Z)(ve),D&&(B=le),le}return we.size=function(ee){return arguments.length?(M=ee,we):M},we.padding=function(ee){if(!arguments.length)return S;function le(Te){var he=ee.call(we,Te,Te.depth);return he==null?C5(Te):kk(Te,typeof he=="number"?[he,he,he,he]:he)}function ve(Te){return kk(Te,ee)}var _e;return L=(S=ee)==null?C5:(_e=typeof ee)=="function"?le:(_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,B=null,we):D},we.ratio=function(ee){return arguments.length?(H=ee,we):H},we.mode=function(ee){return arguments.length?(F=ee+"",we):F},Uv(we,h)};function C5(h){return{x:h.x,y:h.y,dx:h.dx,dy:h.dy}}function kk(h,g){var M=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&&(M+=L/2,L=0),D<0&&(S+=D/2,D=0),{x:M,y:S,dx:L,dy:D}}e.random={normal:function(h,g){var M=arguments.length;return M<2&&(g=1),M<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,M=0;M<h;M++)g+=Math.random();return g}}},e.scale={};function c1(h){var g=h[0],M=h[h.length-1];return g<M?[g,M]:[M,g]}function v1(h){return h.rangeExtent?h.rangeExtent():c1(h.range())}function $fe(h,g,M,S){var L=M(h[0],h[1]),D=S(g[0],g[1]);return function(B){return D(L(B))}}function D5(h,g){var M=0,S=h.length-1,L=h[M],D=h[S],B;return D<L&&(B=M,M=S,S=B,B=L,L=D,D=B),h[M]=g.floor(L),h[S]=g.ceil(D),h}function Sk(h){return h?{floor:function(g){return Math.floor(g/h)*h},ceil:function(g){return Math.ceil(g/h)*h}}:Jfe}var Jfe={floor:O,ceil:O};function Kfe(h,g,M,S){var L=[],D=[],B=0,F=Math.min(h.length,g.length)-1;for(h[F]<h[0]&&(h=h.slice().reverse(),g=g.slice().reverse());++B<=F;)L.push(M(h[B-1],h[B])),D.push(S(g[B-1],g[B]));return function(H){var X=e.bisect(h,H,1,F)-1;return D[X](L[X](H))}}e.scale.linear=function(){return qk([0,1],[0,1],xu,!1)};function qk(h,g,M,S){var L,D;function B(){var H=Math.min(h.length,g.length)>2?Kfe:$fe,X=S?gfe:yfe;return L=H(h,g,X,M),D=H(g,h,X,xu),F}function F(H){return L(H)}return F.invert=function(H){return D(H)},F.domain=function(H){return arguments.length?(h=H.map(Number),B()):h},F.range=function(H){return arguments.length?(g=H,B()):g},F.rangeRound=function(H){return F.range(H).interpolate(uk)},F.clamp=function(H){return arguments.length?(S=H,B()):S},F.interpolate=function(H){return arguments.length?(M=H,B()):M},F.ticks=function(H){return P5(h,H)},F.tickFormat=function(H,X){return d3_scale_linearTickFormat(h,H,X)},F.nice=function(H){return Ck(h,H),B()},F.copy=function(){return qk(h,g,M,S)},B()}function Lk(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function Ck(h,g){return D5(h,Sk(E5(h,g)[2])),D5(h,Sk(E5(h,g)[2])),h}function E5(h,g){g==null&&(g=10);var M=c1(h),S=M[1]-M[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),M[0]=Math.ceil(M[0]/L)*L,M[1]=Math.floor(M[1]/L)*L+L*.5,M[2]=L,M}function P5(h,g){return e.range.apply(e,E5(h,g))}var Qfe={s:1,g:1,p:1,r:1,e:1};function Dk(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function LHe(h,g){var M=Dk(g[2]);return h in Qfe?Math.abs(M-Dk(Math.max(b(g[0]),b(g[1]))))+ +(h!=="e"):M-(h==="%")*2}e.scale.log=function(){return Ek(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Ek(h,g,M,S){function L(F){return(M?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function D(F){return M?Math.pow(g,F):-Math.pow(g,-F)}function B(F){return h(L(F))}return B.invert=function(F){return D(h.invert(F))},B.domain=function(F){return arguments.length?(M=F[0]>=0,h.domain((S=F.map(Number)).map(L)),B):S},B.base=function(F){return arguments.length?(g=+F,h.domain(S.map(L)),B):g},B.nice=function(){var F=D5(S.map(L),M?Math:e0e);return h.domain(F),S=F.map(D),B},B.ticks=function(){var F=c1(S),H=[],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(M){for(;K<Q;K++)for(var we=1;we<pe;we++)H.push(D(K)*we);H.push(D(K))}else for(H.push(D(K));K++<Q;)for(var we=pe-1;we>0;we--)H.push(D(K)*we);for(K=0;H[K]<X;K++);for(Q=H.length;H[Q-1]>Z;Q--);H=H.slice(K,Q)}return H},B.copy=function(){return Ek(h.copy(),g,M,S)},Lk(B,h)}var e0e={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return Pk(e.scale.linear(),1,[0,1])};function Pk(h,g,M){var S=h1(g),L=h1(1/g);function D(B){return h(S(B))}return D.invert=function(B){return L(h.invert(B))},D.domain=function(B){return arguments.length?(h.domain((M=B.map(Number)).map(S)),D):M},D.ticks=function(B){return P5(M,B)},D.tickFormat=function(B,F){return d3_scale_linearTickFormat(M,B,F)},D.nice=function(B){return D.domain(Ck(M,B))},D.exponent=function(B){return arguments.length?(S=h1(g=B),L=h1(1/g),h.domain(M.map(S)),D):g},D.copy=function(){return Pk(h.copy(),g,M)},Lk(D,h)}function h1(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 Rk([],{t:"range",a:[[]]})};function Rk(h,g){var M,S,L;function D(F){return S[((M.get(F)||(g.t==="range"?M.set(F,h.push(F)):NaN))-1)%S.length]}function B(F,H){return e.range(h.length).map(function(X){return F+H*X})}return D.domain=function(F){if(!arguments.length)return h;h=[],M=new x;for(var H=-1,X=F.length,Z;++H<X;)M.has(Z=F[H])||M.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,H){arguments.length<2&&(H=0);var X=F[0],Z=F[1],K=h.length<2?(X=(X+Z)/2,0):(Z-X)/(h.length-1+H);return S=B(X+K*H/2,K),L=0,g={t:"rangePoints",a:arguments},D},D.rangeRoundPoints=function(F,H){arguments.length<2&&(H=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+H)|0;return S=B(X+Math.round(K*H/2+(Z-X-(h.length-1+H)*K)/2),K),L=0,g={t:"rangeRoundPoints",a:arguments},D},D.rangeBands=function(F,H,X){arguments.length<2&&(H=0),arguments.length<3&&(X=H);var Z=F[1]<F[0],K=F[Z-0],Q=F[1-Z],pe=(Q-K)/(h.length-H+2*X);return S=B(K+pe*X,pe),Z&&S.reverse(),L=pe*(1-H),g={t:"rangeBands",a:arguments},D},D.rangeRoundBands=function(F,H,X){arguments.length<2&&(H=0),arguments.length<3&&(X=H);var Z=F[1]<F[0],K=F[Z-0],Q=F[1-Z],pe=Math.floor((Q-K)/(h.length-H+2*X));return S=B(K+Math.round((Q-K-(h.length-H)*pe)/2),pe),Z&&S.reverse(),L=Math.round(pe*(1-H)),g={t:"rangeRoundBands",a:arguments},D},D.rangeBand=function(){return L},D.rangeExtent=function(){return c1(g.a[0])},D.copy=function(){return Rk(h,g)},D.domain(h)}e.scale.category10=function(){return e.scale.ordinal().range(r0e)},e.scale.category20=function(){return e.scale.ordinal().range(t0e)},e.scale.category20b=function(){return e.scale.ordinal().range(a0e)},e.scale.category20c=function(){return e.scale.ordinal().range(n0e)};var r0e=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ls),t0e=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ls),a0e=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ls),n0e=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ls);e.scale.quantile=function(){return Fk([],[])};function Fk(h,g){var M;function S(){var D=0,B=g.length;for(M=[];++D<B;)M[D-1]=e.quantile(h,D/B);return L}function L(D){if(!isNaN(D=+D))return g[e.bisect(M,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 M},L.invertExtent=function(D){return D=g.indexOf(D),D<0?[NaN,NaN]:[D>0?M[D-1]:h[0],D<M.length?M[D]:h[h.length-1]]},L.copy=function(){return Fk(h,g)},S()}e.scale.quantize=function(){return zk(0,1,[0,1])};function zk(h,g,M){var S,L;function D(F){return M[Math.max(0,Math.min(L,Math.floor(S*(F-h))))]}function B(){return S=M.length/(g-h),L=M.length-1,D}return D.domain=function(F){return arguments.length?(h=+F[0],g=+F[F.length-1],B()):[h,g]},D.range=function(F){return arguments.length?(M=F,B()):M},D.invertExtent=function(F){return F=M.indexOf(F),F=F<0?NaN:F/S+h,[F,F+1/S]},D.copy=function(){return zk(h,g,M)},B()}e.scale.threshold=function(){return Nk([.5],[0,1])};function Nk(h,g){function M(S){if(S<=S)return g[e.bisect(h,S)]}return M.domain=function(S){return arguments.length?(h=S,M):h},M.range=function(S){return arguments.length?(g=S,M):g},M.invertExtent=function(S){return S=g.indexOf(S),[h[S-1],h[S]]},M.copy=function(){return Nk(h,g)},M}e.scale.identity=function(){return Ik([0,1])};function Ik(h){function g(M){return+M}return g.invert=g,g.domain=g.range=function(M){return arguments.length?(h=M.map(g),g):h},g.ticks=function(M){return P5(h,M)},g.tickFormat=function(M,S){return d3_scale_linearTickFormat(h,M,S)},g.copy=function(){return Ik(h)},g}e.svg={};function i0e(){return 0}e.svg.arc=function(){var h=o0e,g=l0e,M=i0e,S=d1,L=Bk,D=Ok,B=s0e;function F(){var X=Math.max(0,+h.apply(this,arguments)),Z=Math.max(0,+g.apply(this,arguments)),K=L.apply(this,arguments)-ne,Q=D.apply(this,arguments)-ne,pe=Math.abs(Q-K),we=K>Q?0:1;if(Z<X&&(ee=Z,Z=X,X=ee),pe>=yr)return H(Z,we)+(X?H(X,1-we):"")+"Z";var ee,le,ve,_e,Te=0,he=0,Ye,or,hr,fr,br,xr,zr,wr,Dr=[];if((_e=(+B.apply(this,arguments)||0)/2)&&(ve=S===d1?Math.sqrt(X*X+Z*Z):+S.apply(this,arguments),we||(he*=-1),Z&&(he=mt(ve/Z*Math.sin(_e))),X&&(Te=mt(ve/X*Math.sin(_e)))),Z){Ye=Z*Math.cos(K+he),or=Z*Math.sin(K+he),hr=Z*Math.cos(Q-he),fr=Z*Math.sin(Q-he);var it=Math.abs(Q-K-2*he)<=mr?0:1;if(he&&p1(Ye,or,hr,fr)===we^it){var sa=(K+Q)/2;Ye=Z*Math.cos(sa),or=Z*Math.sin(sa),hr=fr=null}}else Ye=or=0;if(X){br=X*Math.cos(Q-Te),xr=X*Math.sin(Q-Te),zr=X*Math.cos(K+Te),wr=X*Math.sin(K+Te);var gt=Math.abs(K-Q+2*Te)<=mr?0:1;if(Te&&p1(br,xr,zr,wr)===1-we^gt){var ar=(K+Q)/2;br=X*Math.cos(ar),xr=X*Math.sin(ar),zr=wr=null}}else br=xr=0;if(pe>Ie&&(ee=Math.min(Math.abs(Z-X)/2,+M.apply(this,arguments)))>.001){le=X<Z^we?0:1;var Nr=ee,Br=ee;if(pe<mr){var ot=zr==null?[br,xr]:hr==null?[Ye,or]:y5([Ye,or],[zr,wr],[hr,fr],[br,xr]),Xt=Ye-ot[0],Ma=or-ot[1],$a=hr-ot[0],bn=fr-ot[1],Fn=1/Math.sin(Math.acos((Xt*$a+Ma*bn)/(Math.sqrt(Xt*Xt+Ma*Ma)*Math.sqrt($a*$a+bn*bn)))/2),xn=Math.sqrt(ot[0]*ot[0]+ot[1]*ot[1]);Br=Math.min(ee,(X-xn)/(Fn-1)),Nr=Math.min(ee,(Z-xn)/(Fn+1))}if(hr!=null){var Gn=m1(zr==null?[br,xr]:[zr,wr],[Ye,or],Z,Nr,we),sn=m1([hr,fr],[br,xr],Z,Nr,we);ee===Nr?Dr.push("M",Gn[0],"A",Nr,",",Nr," 0 0,",le," ",Gn[1],"A",Z,",",Z," 0 ",1-we^p1(Gn[1][0],Gn[1][1],sn[1][0],sn[1][1]),",",we," ",sn[1],"A",Nr,",",Nr," 0 0,",le," ",sn[0]):Dr.push("M",Gn[0],"A",Nr,",",Nr," 0 1,",le," ",sn[0])}else Dr.push("M",Ye,",",or);if(zr!=null){var Yn=m1([Ye,or],[zr,wr],X,-Br,we),wu=m1([br,xr],hr==null?[Ye,or]:[hr,fr],X,-Br,we);ee===Br?Dr.push("L",wu[0],"A",Br,",",Br," 0 0,",le," ",wu[1],"A",X,",",X," 0 ",we^p1(wu[1][0],wu[1][1],Yn[1][0],Yn[1][1]),",",1-we," ",Yn[1],"A",Br,",",Br," 0 0,",le," ",Yn[0]):Dr.push("L",wu[0],"A",Br,",",Br," 0 0,",le," ",Yn[0])}else Dr.push("L",br,",",xr)}else Dr.push("M",Ye,",",or),hr!=null&&Dr.push("A",Z,",",Z," 0 ",it,",",we," ",hr,",",fr),Dr.push("L",br,",",xr),zr!=null&&Dr.push("A",X,",",X," 0 ",gt,",",1-we," ",zr,",",wr);return Dr.push("Z"),Dr.join("")}function H(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=Ar(X),F):h},F.outerRadius=function(X){return arguments.length?(g=Ar(X),F):g},F.cornerRadius=function(X){return arguments.length?(M=Ar(X),F):M},F.padRadius=function(X){return arguments.length?(S=X==d1?d1:Ar(X),F):S},F.startAngle=function(X){return arguments.length?(L=Ar(X),F):L},F.endAngle=function(X){return arguments.length?(D=Ar(X),F):D},F.padAngle=function(X){return arguments.length?(B=Ar(X),F):B},F.centroid=function(){var X=(+h.apply(this,arguments)+ +g.apply(this,arguments))/2,Z=(+L.apply(this,arguments)+ +D.apply(this,arguments))/2-ne;return[Math.cos(Z)*X,Math.sin(Z)*X]},F};var d1="auto";function o0e(h){return h.innerRadius}function l0e(h){return h.outerRadius}function Bk(h){return h.startAngle}function Ok(h){return h.endAngle}function s0e(h){return h&&h.padAngle}function p1(h,g,M,S){return(h-M)*g-(g-S)*h>0?0:1}function m1(h,g,M,S,L){var D=h[0]-g[0],B=h[1]-g[1],F=(L?S:-S)/Math.sqrt(D*D+B*B),H=F*B,X=-F*D,Z=h[0]+H,K=h[1]+X,Q=g[0]+H,pe=g[1]+X,we=(Z+Q)/2,ee=(K+pe)/2,le=Q-Z,ve=pe-K,_e=le*le+ve*ve,Te=M-S,he=Z*pe-Q*K,Ye=(ve<0?-1:1)*Math.sqrt(Math.max(0,Te*Te*_e-he*he)),or=(he*ve-le*Ye)/_e,hr=(-he*le-ve*Ye)/_e,fr=(he*ve+le*Ye)/_e,br=(-he*le+ve*Ye)/_e,xr=or-we,zr=hr-ee,wr=fr-we,Dr=br-ee;return xr*xr+zr*zr>wr*wr+Dr*Dr&&(or=fr,hr=br),[[or-H,hr-X],[or*M/Te,hr*M/Te]]}function Hk(){return!0}function Uk(h){var g=o0,M=zv,S=Hk,L=yo,D=L.key,B=.7;function F(H){var X=[],Z=[],K=-1,Q=H.length,pe,we=Ar(g),ee=Ar(M);function le(){X.push("M",L(h(Z),B))}for(;++K<Q;)S.call(this,pe=H[K],K)?Z.push([+we.call(this,pe,K),+ee.call(this,pe,K)]):Z.length&&(le(),Z=[]);return Z.length&&le(),X.length?X.join(""):null}return F.x=function(H){return arguments.length?(g=H,F):g},F.y=function(H){return arguments.length?(M=H,F):M},F.defined=function(H){return arguments.length?(S=H,F):S},F.interpolate=function(H){return arguments.length?(typeof H=="function"?D=L=H:D=(L=R5.get(H)||yo).key,F):D},F.tension=function(H){return arguments.length?(B=H,F):B},F}e.svg.line=function(){return Uk(O)};var R5=e.map({linear:yo,"linear-closed":Gk,step:u0e,"step-before":F5,"step-after":z5,basis:Yk,"basis-open":h0e,"basis-closed":d0e,bundle:p0e,cardinal:v0e,"cardinal-open":f0e,"cardinal-closed":c0e,monotone:g0e});R5.forEach(function(h,g){g.key=h,g.closed=/-closed$/.test(h)});function yo(h){return h.length>1?h.join("L"):h+"Z"}function Gk(h){return h.join("L")+"Z"}function u0e(h){for(var g=0,M=h.length,S=h[0],L=[S[0],",",S[1]];++g<M;)L.push("H",(S[0]+(S=h[g])[0])/2,"V",S[1]);return M>1&&L.push("H",S[0]),L.join("")}function F5(h){for(var g=0,M=h.length,S=h[0],L=[S[0],",",S[1]];++g<M;)L.push("V",(S=h[g])[1],"H",S[0]);return L.join("")}function z5(h){for(var g=0,M=h.length,S=h[0],L=[S[0],",",S[1]];++g<M;)L.push("H",(S=h[g])[0],"V",S[1]);return L.join("")}function f0e(h,g){return h.length<4?yo(h):h[1]+y1(h.slice(1,-1),N5(h,g))}function c0e(h,g){return h.length<3?Gk(h):h[0]+y1((h.push(h[0]),h),N5([h[h.length-2]].concat(h,[h[1]]),g))}function v0e(h,g){return h.length<3?yo(h):h[0]+y1(h,N5(h,g))}function y1(h,g){if(g.length<1||h.length!=g.length&&h.length!=g.length+2)return yo(h);var M=h.length!=g.length,S="",L=h[0],D=h[1],B=g[0],F=B,H=1;if(M&&(S+="Q"+(D[0]-B[0]*2/3)+","+(D[1]-B[1]*2/3)+","+D[0]+","+D[1],L=h[1],H=2),g.length>1){F=g[1],D=h[H],H++,S+="C"+(L[0]+B[0])+","+(L[1]+B[1])+","+(D[0]-F[0])+","+(D[1]-F[1])+","+D[0]+","+D[1];for(var X=2;X<g.length;X++,H++)D=h[H],F=g[X],S+="S"+(D[0]-F[0])+","+(D[1]-F[1])+","+D[0]+","+D[1]}if(M){var Z=h[H];S+="Q"+(D[0]+F[0]*2/3)+","+(D[1]+F[1]*2/3)+","+Z[0]+","+Z[1]}return S}function N5(h,g){for(var M=[],S=(1-g)/2,L,D=h[0],B=h[1],F=1,H=h.length;++F<H;)L=D,D=B,B=h[F],M.push([S*(B[0]-L[0]),S*(B[1]-L[1])]);return M}function Yk(h){if(h.length<3)return yo(h);var g=1,M=h.length,S=h[0],L=S[0],D=S[1],B=[L,L,L,(S=h[1])[0]],F=[D,D,D,S[1]],H=[L,",",D,"L",Li(us,B),",",Li(us,F)];for(h.push(h[M-1]);++g<=M;)S=h[g],B.shift(),B.push(S[0]),F.shift(),F.push(S[1]),I5(H,B,F);return h.pop(),H.push("L",S),H.join("")}function h0e(h){if(h.length<4)return yo(h);for(var g=[],M=-1,S=h.length,L,D=[0],B=[0];++M<3;)L=h[M],D.push(L[0]),B.push(L[1]);for(g.push(Li(us,D)+","+Li(us,B)),--M;++M<S;)L=h[M],D.shift(),D.push(L[0]),B.shift(),B.push(L[1]),I5(g,D,B);return g.join("")}function d0e(h){for(var g,M=-1,S=h.length,L=S+4,D,B=[],F=[];++M<4;)D=h[M%S],B.push(D[0]),F.push(D[1]);for(g=[Li(us,B),",",Li(us,F)],--M;++M<L;)D=h[M%S],B.shift(),B.push(D[0]),F.shift(),F.push(D[1]),I5(g,B,F);return g.join("")}function p0e(h,g){var M=h.length-1;if(M)for(var S=h[0][0],L=h[0][1],D=h[M][0]-S,B=h[M][1]-L,F=-1,H,X;++F<=M;)H=h[F],X=F/M,H[0]=g*H[0]+(1-g)*(S+X*D),H[1]=g*H[1]+(1-g)*(L+X*B);return Yk(h)}function Li(h,g){return h[0]*g[0]+h[1]*g[1]+h[2]*g[2]+h[3]*g[3]}var Vk=[0,2/3,1/3,0],jk=[0,1/3,2/3,0],us=[0,1/6,2/3,1/6];function I5(h,g,M){h.push("C",Li(Vk,g),",",Li(Vk,M),",",Li(jk,g),",",Li(jk,M),",",Li(us,g),",",Li(us,M))}function B5(h,g){return(g[1]-h[1])/(g[0]-h[0])}function m0e(h){for(var g=0,M=h.length-1,S=[],L=h[0],D=h[1],B=S[0]=B5(L,D);++g<M;)S[g]=(B+(B=B5(L=D,D=h[g+1])))/2;return S[g]=B,S}function y0e(h){for(var g=[],M,S,L,D,B=m0e(h),F=-1,H=h.length-1;++F<H;)M=B5(h[F],h[F+1]),b(M)<Ie?B[F]=B[F+1]=0:(S=B[F]/M,L=B[F+1]/M,D=S*S+L*L,D>9&&(D=M*3/Math.sqrt(D),B[F]=D*S,B[F+1]=D*L));for(F=-1;++F<=H;)D=(h[Math.min(H,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+B[F]*B[F])),g.push([D||0,B[F]*D||0]);return g}function g0e(h){return h.length<3?yo(h):h[0]+y1(h,y0e(h))}e.svg.line.radial=function(){var h=Uk(Wk);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function Wk(h){for(var g,M=-1,S=h.length,L,D;++M<S;)g=h[M],L=g[0],D=g[1]-ne,g[0]=L*Math.cos(D),g[1]=L*Math.sin(D);return h}function Xk(h){var g=o0,M=o0,S=0,L=zv,D=Hk,B=yo,F=B.key,H=B,X="L",Z=.7;function K(Q){var pe=[],we=[],ee=[],le=-1,ve=Q.length,_e,Te=Ar(g),he=Ar(S),Ye=g===M?function(){return hr}:Ar(M),or=S===L?function(){return fr}:Ar(L),hr,fr;function br(){pe.push("M",B(h(ee),Z),X,H(h(we.reverse()),Z),"Z")}for(;++le<ve;)D.call(this,_e=Q[le],le)?(we.push([hr=+Te.call(this,_e,le),fr=+he.call(this,_e,le)]),ee.push([+Ye.call(this,_e,le),+or.call(this,_e,le)])):we.length&&(br(),we=[],ee=[]);return we.length&&br(),pe.length?pe.join(""):null}return K.x=function(Q){return arguments.length?(g=M=Q,K):M},K.x0=function(Q){return arguments.length?(g=Q,K):g},K.x1=function(Q){return arguments.length?(M=Q,K):M},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=B=Q:F=(B=R5.get(Q)||yo).key,H=B.reverse||B,X=B.closed?"M":"L",K):F},K.tension=function(Q){return arguments.length?(Z=Q,K):Z},K}F5.reverse=z5,z5.reverse=F5,e.svg.area=function(){return Xk(O)},e.svg.area.radial=function(){var h=Xk(Wk);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 Zk(h){return h.source}function $k(h){return h.target}e.svg.chord=function(){var h=Zk,g=$k,M=b0e,S=Bk,L=Ok;function D(Z,K){var Q=B(this,h,Z,K),pe=B(this,g,Z,K);return"M"+Q.p0+H(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)+H(pe.r,pe.p1,pe.a1-pe.a0)+X(pe.r,pe.p1,Q.r,Q.p0))+"Z"}function B(Z,K,Q,pe){var we=K.call(Z,Q,pe),ee=M.call(Z,we,pe),le=S.call(Z,we,pe)-ne,ve=L.call(Z,we,pe)-ne;return{r:ee,a0:le,a1:ve,p0:[ee*Math.cos(le),ee*Math.sin(le)],p1:[ee*Math.cos(ve),ee*Math.sin(ve)]}}function F(Z,K){return Z.a0==K.a0&&Z.a1==K.a1}function H(Z,K,Q){return"A"+Z+","+Z+" 0 "+ +(Q>mr)+",1 "+K}function X(Z,K,Q,pe){return"Q 0,0 "+pe}return D.radius=function(Z){return arguments.length?(M=Ar(Z),D):M},D.source=function(Z){return arguments.length?(h=Ar(Z),D):h},D.target=function(Z){return arguments.length?(g=Ar(Z),D):g},D.startAngle=function(Z){return arguments.length?(S=Ar(Z),D):S},D.endAngle=function(Z){return arguments.length?(L=Ar(Z),D):L},D};function b0e(h){return h.radius}e.svg.diagonal=function(){var h=Zk,g=$k,M=Jk;function S(L,D){var B=h.call(this,L,D),F=g.call(this,L,D),H=(B.y+F.y)/2,X=[B,{x:B.x,y:H},{x:F.x,y:H},F];return X=X.map(M),"M"+X[0]+"C"+X[1]+" "+X[2]+" "+X[3]}return S.source=function(L){return arguments.length?(h=Ar(L),S):h},S.target=function(L){return arguments.length?(g=Ar(L),S):g},S.projection=function(L){return arguments.length?(M=L,S):M},S};function Jk(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=Jk,M=h.projection;return h.projection=function(S){return arguments.length?M(x0e(g=S)):g},h};function x0e(h){return function(){var g=h.apply(this,arguments),M=g[0],S=g[1]-ne;return[M*Math.cos(S),M*Math.sin(S)]}}e.svg.symbol=function(){var h=w0e,g=_0e;function M(S,L){return(Qk.get(h.call(this,S,L))||Kk)(g.call(this,S,L))}return M.type=function(S){return arguments.length?(h=Ar(S),M):h},M.size=function(S){return arguments.length?(g=Ar(S),M):g},M};function _0e(){return 64}function w0e(){return"circle"}function Kk(h){var g=Math.sqrt(h/mr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var Qk=e.map({circle:Kk,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*eS)),M=g*eS;return"M0,"+-g+"L"+M+",0 0,"+g+" "+-M+",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/g1),M=g*g1/2;return"M0,"+M+"L"+g+","+-M+" "+-g+","+-M+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/g1),M=g*g1/2;return"M0,"+-M+"L"+g+","+M+" "+-g+","+M+"Z"}});e.svg.symbolTypes=Qk.keys();var g1=Math.sqrt(3),eS=Math.tan(30*ge);oe.transition=function(h){for(var g=_u||++tS,M=H5(h),S=[],L,D,B=x1||{time:Date.now(),ease:efe,delay:0,duration:250},F=-1,H=this.length;++F<H;){S.push(L=[]);for(var X=this[F],Z=-1,K=X.length;++Z<K;)(D=X[Z])&&_1(D,Z,M,g,B),L.push(D)}return Yv(S,M,g)},oe.interrupt=function(h){return this.each(h==null?b1:rS(H5(h)))};var b1=rS(H5());function rS(h){return function(){var g,M,S;(g=this[h])&&(S=g[M=g.active])&&(S.timer.c=null,S.timer.t=NaN,--g.count?delete g[M]:delete this[h],g.active+=.5,S.event&&S.event.interrupt.call(this,this.__data__,S.index))}}function Yv(h,g,M){return $(h,Aa),h.namespace=g,h.id=M,h}var Aa=[],tS=0,_u,x1;Aa.call=oe.call,Aa.empty=oe.empty,Aa.node=oe.node,Aa.size=oe.size,e.transition=function(h,g){return h&&h.transition?_u?h.transition(g):h:e.selection().transition(h)},e.transition.prototype=Aa,Aa.select=function(h){var g=this.id,M=this.namespace,S=[],L,D,B;h=be(h);for(var F=-1,H=this.length;++F<H;){S.push(L=[]);for(var X=this[F],Z=-1,K=X.length;++Z<K;)(B=X[Z])&&(D=h.call(B,B.__data__,Z,F))?("__data__"in B&&(D.__data__=B.__data__),_1(D,Z,M,g,B[M][g]),L.push(D)):L.push(null)}return Yv(S,M,g)},Aa.selectAll=function(h){var g=this.id,M=this.namespace,S=[],L,D,B,F,H;h=Re(h);for(var X=-1,Z=this.length;++X<Z;)for(var K=this[X],Q=-1,pe=K.length;++Q<pe;)if(B=K[Q]){H=B[M][g],D=h.call(B,B.__data__,Q,X),S.push(L=[]);for(var we=-1,ee=D.length;++we<ee;)(F=D[we])&&_1(F,we,M,g,H),L.push(F)}return Yv(S,M,g)},Aa.filter=function(h){var g=[],M,S,L;typeof h!="function"&&(h=re(h));for(var D=0,B=this.length;D<B;D++){g.push(M=[]);for(var S=this[D],F=0,H=S.length;F<H;F++)(L=S[F])&&h.call(L,L.__data__,F,D)&&M.push(L)}return Yv(g,this.namespace,this.id)},Aa.tween=function(h,g){var M=this.id,S=this.namespace;return arguments.length<2?this.node()[S][M].tween.get(h):Ge(this,g==null?function(L){L[S][M].tween.remove(h)}:function(L){L[S][M].tween.set(h,g)})};function O5(h,g,M,S){var L=h.id,D=h.namespace;return Ge(h,typeof M=="function"?function(B,F,H){B[D][L].tween.set(g,S(M.call(B,B.__data__,F,H)))}:(M=S(M),function(B){B[D][L].tween.set(g,M)}))}Aa.attr=function(h,g){if(arguments.length<2){for(g in h)this.attr(g,h[g]);return this}var M=h=="transform"?hk:xu,S=e.ns.qualify(h);function L(){this.removeAttribute(S)}function D(){this.removeAttributeNS(S.space,S.local)}function B(H){return H==null?L:(H+="",function(){var X=this.getAttribute(S),Z;return X!==H&&(Z=M(X,H),function(K){this.setAttribute(S,Z(K))})})}function F(H){return H==null?D:(H+="",function(){var X=this.getAttributeNS(S.space,S.local),Z;return X!==H&&(Z=M(X,H),function(K){this.setAttributeNS(S.space,S.local,Z(K))})})}return O5(this,"attr."+h,g,S.local?F:B)},Aa.attrTween=function(h,g){var M=e.ns.qualify(h);function S(D,B){var F=g.call(this,D,B,this.getAttribute(M));return F&&function(H){this.setAttribute(M,F(H))}}function L(D,B){var F=g.call(this,D,B,this.getAttributeNS(M.space,M.local));return F&&function(H){this.setAttributeNS(M.space,M.local,F(H))}}return this.tween("attr."+h,M.local?L:S)},Aa.style=function(h,g,M){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g="");for(M in h)this.style(M,h[M],g);return this}M=""}function L(){this.style.removeProperty(h)}function D(B){return B==null?L:(B+="",function(){var F=i(this).getComputedStyle(this,null).getPropertyValue(h),H;return F!==B&&(H=xu(F,B),function(X){this.style.setProperty(h,H(X),M)})})}return O5(this,"style."+h,g,D)},Aa.styleTween=function(h,g,M){arguments.length<3&&(M="");function S(L,D){var B=g.call(this,L,D,i(this).getComputedStyle(this,null).getPropertyValue(h));return B&&function(F){this.style.setProperty(h,B(F),M)}}return this.tween("style."+h,S)},Aa.text=function(h){return O5(this,"text",h,T0e)};function T0e(h){return h==null&&(h=""),function(){this.textContent=h}}Aa.remove=function(){var h=this.namespace;return this.each("end.transition",function(){var g;this[h].count<2&&(g=this.parentNode)&&g.removeChild(this)})},Aa.ease=function(h){var g=this.id,M=this.namespace;return arguments.length<1?this.node()[M][g].ease:(typeof h!="function"&&(h=e.ease.apply(e,arguments)),Ge(this,function(S){S[M][g].ease=h}))},Aa.delay=function(h){var g=this.id,M=this.namespace;return arguments.length<1?this.node()[M][g].delay:Ge(this,typeof h=="function"?function(S,L,D){S[M][g].delay=+h.call(S,S.__data__,L,D)}:(h=+h,function(S){S[M][g].delay=h}))},Aa.duration=function(h){var g=this.id,M=this.namespace;return arguments.length<1?this.node()[M][g].duration:Ge(this,typeof h=="function"?function(S,L,D){S[M][g].duration=Math.max(1,h.call(S,S.__data__,L,D))}:(h=Math.max(1,h),function(S){S[M][g].duration=h}))},Aa.each=function(h,g){var M=this.id,S=this.namespace;if(arguments.length<2){var L=x1,D=_u;try{_u=M,Ge(this,function(B,F,H){x1=B[S][M],h.call(B,B.__data__,F,H)})}finally{x1=L,_u=D}}else Ge(this,function(B){var F=B[S][M];(F.event||(F.event=e.dispatch("start","end","interrupt"))).on(h,g)});return this},Aa.transition=function(){for(var h=this.id,g=++tS,M=this.namespace,S=[],L,D,B,F,H=0,X=this.length;H<X;H++){S.push(L=[]);for(var D=this[H],Z=0,K=D.length;Z<K;Z++)(B=D[Z])&&(F=B[M][h],_1(B,Z,M,g,{time:F.time,ease:F.ease,delay:F.delay+F.duration,duration:F.duration})),L.push(B)}return Yv(S,M,g)};function H5(h){return h==null?"__transition__":"__transition_"+h+"__"}function _1(h,g,M,S,L){var D=h[M]||(h[M]={active:0,count:0}),B=D[S],F,H,X,Z,K;function Q(ee){var le=B.delay;if(H.t=le+F,le<=ee)return pe(ee-le);H.c=pe}function pe(ee){var le=D.active,ve=D[le];ve&&(ve.timer.c=null,ve.timer.t=NaN,--D.count,delete D[le],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]}H.c=we,n1(function(){return H.c&&we(ee||1)&&(H.c=null,H.t=NaN),1},0,F),D.active=S,B.event&&B.event.start.call(h,h.__data__,g),K=[],B.tween.forEach(function(he,Ye){(Ye=Ye.call(h,h.__data__,g))&&K.push(Ye)}),Z=B.ease,X=B.duration}function we(ee){for(var le=ee/X,ve=Z(le),_e=K.length;_e>0;)K[--_e].call(h,ve);if(le>=1)return B.event&&B.event.end.call(h,h.__data__,g),--D.count?delete D[S]:delete h[M],1}B||(F=L.time,H=n1(Q,0,F),B=D[S]={tween:new x,time:F,timer:H,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=aS,M=6,S=6,L=3,D=[10],B=null,F;function H(X){X.each(function(){var Z=e.select(this),K=this.__chart__||h,Q=this.__chart__=h.copy(),pe=B==null?Q.ticks?Q.ticks.apply(Q,D):Q.domain():B,we=F==null?Q.tickFormat?Q.tickFormat.apply(Q,D):O:F,ee=Z.selectAll(".tick").data(pe,Q),le=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",Ie),ve=e.transition(ee.exit()).style("opacity",Ie).remove(),_e=e.transition(ee.order()).style("opacity",1),Te=Math.max(M,0)+L,he,Ye=v1(Q),or=Z.selectAll(".domain").data([0]),hr=(or.enter().append("path").attr("class","domain"),e.transition(or));le.append("line"),le.append("text");var fr=le.select("line"),br=_e.select("line"),xr=ee.select("text").text(we),zr=le.select("text"),wr=_e.select("text"),Dr=g==="top"||g==="left"?-1:1,it,sa,gt,ar;if(g==="bottom"||g==="top"?(he=M0e,it="x",gt="y",sa="x2",ar="y2",xr.attr("dy",Dr<0?"0em":".71em").style("text-anchor","middle"),hr.attr("d","M"+Ye[0]+","+Dr*S+"V0H"+Ye[1]+"V"+Dr*S)):(he=k0e,it="y",gt="x",sa="y2",ar="x2",xr.attr("dy",".32em").style("text-anchor",Dr<0?"end":"start"),hr.attr("d","M"+Dr*S+","+Ye[0]+"H0V"+Ye[1]+"H"+Dr*S)),fr.attr(ar,Dr*M),zr.attr(gt,Dr*Te),br.attr(sa,0).attr(ar,Dr*M),wr.attr(it,0).attr(gt,Dr*Te),Q.rangeBand){var Nr=Q,Br=Nr.rangeBand()/2;K=Q=function(ot){return Nr(ot)+Br}}else K.rangeBand?K=Q:ve.call(he,Q,K);le.call(he,K,Q),_e.call(he,Q,Q)})}return H.scale=function(X){return arguments.length?(h=X,H):h},H.orient=function(X){return arguments.length?(g=X in A0e?X+"":aS,H):g},H.ticks=function(){return arguments.length?(D=t(arguments),H):D},H.tickValues=function(X){return arguments.length?(B=X,H):B},H.tickFormat=function(X){return arguments.length?(F=X,H):F},H.tickSize=function(X){var Z=arguments.length;return Z?(M=+X,S=+arguments[Z-1],H):M},H.innerTickSize=function(X){return arguments.length?(M=+X,H):M},H.outerTickSize=function(X){return arguments.length?(S=+X,H):S},H.tickPadding=function(X){return arguments.length?(L=+X,H):L},H.tickSubdivide=function(){return arguments.length&&H},H};var aS="bottom",A0e={top:1,right:1,bottom:1,left:1};function M0e(h,g,M){h.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:M(S))+",0)"})}function k0e(h,g,M){h.attr("transform",function(S){var L=g(S);return"translate(0,"+(isFinite(L)?L:M(S))+")"})}e.svg.brush=function(){var h=ae(Z,"brushstart","brush","brushend"),g=null,M=null,S=[0,0],L=[0,0],D,B,F=!0,H=!0,X=U5[0];function Z(ee){ee.each(function(){var le=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=le.selectAll(".background").data([0]);ve.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),le.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var _e=le.selectAll(".resize").data(X,O);_e.exit().remove(),_e.enter().append("g").attr("class",function(or){return"resize "+or}).style("cursor",function(or){return S0e[or]}).append("rect").attr("x",function(or){return/[ew]$/.test(or)?-3:null}).attr("y",function(or){return/^[ns]/.test(or)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),_e.style("display",Z.empty()?"none":null);var Te=e.transition(le),he=e.transition(ve),Ye;g&&(Ye=v1(g),he.attr("x",Ye[0]).attr("width",Ye[1]-Ye[0]),Q(Te)),M&&(Ye=v1(M),he.attr("y",Ye[0]).attr("height",Ye[1]-Ye[0]),pe(Te)),K(Te)})}Z.event=function(ee){ee.each(function(){var le=h.of(this,arguments),ve={x:S,y:L,i:D,j:B},_e=this.__chart__||ve;this.__chart__=ve,_u?e.select(this).transition().each("start.brush",function(){D=_e.i,B=_e.j,S=_e.x,L=_e.y,le({type:"brushstart"})}).tween("brush:brush",function(){var Te=f1(S,ve.x),he=f1(L,ve.y);return D=B=null,function(Ye){S=ve.x=Te(Ye),L=ve.y=he(Ye),le({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=ve.i,B=ve.j,le({type:"brush",mode:"resize"}),le({type:"brushend"})}):(le({type:"brushstart"}),le({type:"brush",mode:"resize"}),le({type:"brushend"}))})};function K(ee){ee.selectAll(".resize").attr("transform",function(le){return"translate("+S[+/e$/.test(le)]+","+L[+/^s/.test(le)]+")"})}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,le=e.select(e.event.target),ve=h.of(ee,arguments),_e=e.select(ee),Te=le.datum(),he=!/^(n|s)$/.test(Te)&&g,Ye=!/^(e|w)$/.test(Te)&&M,or=le.classed("extent"),hr=ir(ee),fr,br=e.mouse(ee),xr,zr=e.select(i(ee)).on("keydown.brush",it).on("keyup.brush",sa);if(e.event.changedTouches?zr.on("touchmove.brush",gt).on("touchend.brush",Nr):zr.on("mousemove.brush",gt).on("mouseup.brush",Nr),_e.interrupt().selectAll("*").interrupt(),or)br[0]=S[0]-br[0],br[1]=L[0]-br[1];else if(Te){var wr=+/w$/.test(Te),Dr=+/^n/.test(Te);xr=[S[1-wr]-br[0],L[1-Dr]-br[1]],br[0]=S[wr],br[1]=L[Dr]}else e.event.altKey&&(fr=br.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",le.style("cursor")),ve({type:"brushstart"}),gt();function it(){e.event.keyCode==32&&(or||(fr=null,br[0]-=S[1],br[1]-=L[1],or=2),J())}function sa(){e.event.keyCode==32&&or==2&&(br[0]+=S[1],br[1]+=L[1],or=0,J())}function gt(){var Br=e.mouse(ee),ot=!1;xr&&(Br[0]+=xr[0],Br[1]+=xr[1]),or||(e.event.altKey?(fr||(fr=[(S[0]+S[1])/2,(L[0]+L[1])/2]),br[0]=S[+(Br[0]<fr[0])],br[1]=L[+(Br[1]<fr[1])]):fr=null),he&&ar(Br,g,0)&&(Q(_e),ot=!0),Ye&&ar(Br,M,1)&&(pe(_e),ot=!0),ot&&(K(_e),ve({type:"brush",mode:or?"move":"resize"}))}function ar(Br,ot,Xt){var Ma=v1(ot),$a=Ma[0],bn=Ma[1],Fn=br[Xt],xn=Xt?L:S,Gn=xn[1]-xn[0],sn,Yn;if(or&&($a-=Fn,bn-=Gn+Fn),sn=(Xt?H:F)?Math.max($a,Math.min(bn,Br[Xt])):Br[Xt],or?Yn=(sn+=Fn)+Gn:(fr&&(Fn=Math.max($a,Math.min(bn,2*fr[Xt]-sn))),Fn<sn?(Yn=sn,sn=Fn):Yn=Fn),xn[0]!=sn||xn[1]!=Yn)return Xt?B=null:D=null,xn[0]=sn,xn[1]=Yn,!0}function Nr(){gt(),_e.style("pointer-events","all").selectAll(".resize").style("display",Z.empty()?"none":null),e.select("body").style("cursor",null),zr.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=U5[!g<<1|!M],Z):g},Z.y=function(ee){return arguments.length?(M=ee,X=U5[!g<<1|!M],Z):M},Z.clamp=function(ee){return arguments.length?(g&&M?(F=!!ee[0],H=!!ee[1]):g?F=!!ee:M&&(H=!!ee),Z):g&&M?[F,H]:g?F:M?H:null},Z.extent=function(ee){var le,ve,_e,Te,he;return arguments.length?(g&&(le=ee[0],ve=ee[1],M&&(le=le[0],ve=ve[0]),D=[le,ve],g.invert&&(le=g(le),ve=g(ve)),ve<le&&(he=le,le=ve,ve=he),(le!=S[0]||ve!=S[1])&&(S=[le,ve])),M&&(_e=ee[0],Te=ee[1],g&&(_e=_e[1],Te=Te[1]),B=[_e,Te],M.invert&&(_e=M(_e),Te=M(Te)),Te<_e&&(he=_e,_e=Te,Te=he),(_e!=L[0]||Te!=L[1])&&(L=[_e,Te])),Z):(g&&(D?(le=D[0],ve=D[1]):(le=S[0],ve=S[1],g.invert&&(le=g.invert(le),ve=g.invert(ve)),ve<le&&(he=le,le=ve,ve=he))),M&&(B?(_e=B[0],Te=B[1]):(_e=L[0],Te=L[1],M.invert&&(_e=M.invert(_e),Te=M.invert(Te)),Te<_e&&(he=_e,_e=Te,Te=he))),g&&M?[[le,_e],[ve,Te]]:g?[le,ve]:M&&[_e,Te])},Z.clear=function(){return Z.empty()||(S=[0,0],L=[0,0],D=B=null),Z},Z.empty=function(){return!!g&&S[0]==S[1]||!!M&&L[0]==L[1]},e.rebind(Z,h,"on")};var S0e={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},U5=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=dt(function(h){return h.responseText}),e.json=function(h,g){return ur(h,"application/json",q0e,g)};function q0e(h){return JSON.parse(h.responseText)}e.html=function(h,g){return ur(h,"text/html",L0e,g)};function L0e(h){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(h.responseText)}e.xml=dt(function(h){return h.responseXML}),typeof A1=="object"&&A1.exports?A1.exports=e:this.d3=e}).apply(self)});var G5=z((M1,vS)=>{(function(e,r){typeof M1=="object"&&typeof vS!="undefined"?r(M1):(e=e||self,r(e.d3=e.d3||{}))})(M1,function(e){"use strict";var r=new Date,t=new Date;function a(re,xe,Ge,cr){function Pe(me){return re(me=arguments.length===0?new Date:new Date(+me)),me}return Pe.floor=function(me){return re(me=new Date(+me)),me},Pe.ceil=function(me){return re(me=new Date(me-1)),xe(me,1),re(me),me},Pe.round=function(me){var Ae=Pe(me),He=Pe.ceil(me);return me-Ae<He-me?Ae:He},Pe.offset=function(me,Ae){return xe(me=new Date(+me),Ae==null?1:Math.floor(Ae)),me},Pe.range=function(me,Ae,He){var Ze=[],Be;if(me=Pe.ceil(me),He=He==null?1:Math.floor(He),!(me<Ae)||!(He>0))return Ze;do Ze.push(Be=new Date(+me)),xe(me,He),re(me);while(Be<me&&me<Ae);return Ze},Pe.filter=function(me){return a(function(Ae){if(Ae>=Ae)for(;re(Ae),!me(Ae);)Ae.setTime(Ae-1)},function(Ae,He){if(Ae>=Ae)if(He<0)for(;++He<=0;)for(;xe(Ae,-1),!me(Ae););else for(;--He>=0;)for(;xe(Ae,1),!me(Ae););})},Ge&&(Pe.count=function(me,Ae){return r.setTime(+me),t.setTime(+Ae),re(r),re(t),Math.floor(Ge(r,t))},Pe.every=function(me){return me=Math.floor(me),!isFinite(me)||!(me>0)?null:me>1?Pe.filter(cr?function(Ae){return cr(Ae)%me===0}:function(Ae){return Pe.count(0,Ae)%me===0}):Pe}),Pe}var n=a(function(){},function(re,xe){re.setTime(+re+xe)},function(re,xe){return xe-re});n.every=function(re){return re=Math.floor(re),!isFinite(re)||!(re>0)?null:re>1?a(function(xe){xe.setTime(Math.floor(xe/re)*re)},function(xe,Ge){xe.setTime(+xe+Ge*re)},function(xe,Ge){return(Ge-xe)/re}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(re){re.setTime(re-re.getMilliseconds())},function(re,xe){re.setTime(+re+xe*o)},function(re,xe){return(xe-re)/o},function(re){return re.getUTCSeconds()}),v=c.range,d=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o)},function(re,xe){re.setTime(+re+xe*l)},function(re,xe){return(xe-re)/l},function(re){return re.getMinutes()}),p=d.range,y=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o-re.getMinutes()*l)},function(re,xe){re.setTime(+re+xe*s)},function(re,xe){return(xe-re)/s},function(re){return re.getHours()}),m=y.range,b=a(function(re){re.setHours(0,0,0,0)},function(re,xe){re.setDate(re.getDate()+xe)},function(re,xe){return(xe-re-(xe.getTimezoneOffset()-re.getTimezoneOffset())*l)/u},function(re){return re.getDate()-1}),T=b.range;function w(re){return a(function(xe){xe.setDate(xe.getDate()-(xe.getDay()+7-re)%7),xe.setHours(0,0,0,0)},function(xe,Ge){xe.setDate(xe.getDate()+Ge*7)},function(xe,Ge){return(Ge-xe-(Ge.getTimezoneOffset()-xe.getTimezoneOffset())*l)/f})}var x=w(0),_=w(1),k=w(2),A=w(3),q=w(4),C=w(5),E=w(6),P=x.range,R=_.range,N=k.range,I=A.range,O=q.range,U=C.range,Y=E.range,G=a(function(re){re.setDate(1),re.setHours(0,0,0,0)},function(re,xe){re.setMonth(re.getMonth()+xe)},function(re,xe){return xe.getMonth()-re.getMonth()+(xe.getFullYear()-re.getFullYear())*12},function(re){return re.getMonth()}),V=G.range,W=a(function(re){re.setMonth(0,1),re.setHours(0,0,0,0)},function(re,xe){re.setFullYear(re.getFullYear()+xe)},function(re,xe){return xe.getFullYear()-re.getFullYear()},function(re){return re.getFullYear()});W.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(xe){xe.setFullYear(Math.floor(xe.getFullYear()/re)*re),xe.setMonth(0,1),xe.setHours(0,0,0,0)},function(xe,Ge){xe.setFullYear(xe.getFullYear()+Ge*re)})};var j=W.range,J=a(function(re){re.setUTCSeconds(0,0)},function(re,xe){re.setTime(+re+xe*l)},function(re,xe){return(xe-re)/l},function(re){return re.getUTCMinutes()}),te=J.range,ae=a(function(re){re.setUTCMinutes(0,0,0)},function(re,xe){re.setTime(+re+xe*s)},function(re,xe){return(xe-re)/s},function(re){return re.getUTCHours()}),se=ae.range,$=a(function(re){re.setUTCHours(0,0,0,0)},function(re,xe){re.setUTCDate(re.getUTCDate()+xe)},function(re,xe){return(xe-re)/u},function(re){return re.getUTCDate()-1}),fe=$.range;function ie(re){return a(function(xe){xe.setUTCDate(xe.getUTCDate()-(xe.getUTCDay()+7-re)%7),xe.setUTCHours(0,0,0,0)},function(xe,Ge){xe.setUTCDate(xe.getUTCDate()+Ge*7)},function(xe,Ge){return(Ge-xe)/f})}var ue=ie(0),ce=ie(1),oe=ie(2),be=ie(3),Re=ie(4),ye=ie(5),Ce=ie(6),Me=ue.range,Le=ce.range,De=oe.range,Ne=be.range,qe=Re.range,Xe=ye.range,$e=Ce.range,We=a(function(re){re.setUTCDate(1),re.setUTCHours(0,0,0,0)},function(re,xe){re.setUTCMonth(re.getUTCMonth()+xe)},function(re,xe){return xe.getUTCMonth()-re.getUTCMonth()+(xe.getUTCFullYear()-re.getUTCFullYear())*12},function(re){return re.getUTCMonth()}),Se=We.range,Fe=a(function(re){re.setUTCMonth(0,1),re.setUTCHours(0,0,0,0)},function(re,xe){re.setUTCFullYear(re.getUTCFullYear()+xe)},function(re,xe){return xe.getUTCFullYear()-re.getUTCFullYear()},function(re){return re.getUTCFullYear()});Fe.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(xe){xe.setUTCFullYear(Math.floor(xe.getUTCFullYear()/re)*re),xe.setUTCMonth(0,1),xe.setUTCHours(0,0,0,0)},function(xe,Ge){xe.setUTCFullYear(xe.getUTCFullYear()+Ge*re)})};var Qe=Fe.range;e.timeDay=b,e.timeDays=T,e.timeFriday=C,e.timeFridays=U,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=_,e.timeMondays=R,e.timeMonth=G,e.timeMonths=V,e.timeSaturday=E,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=P,e.timeThursday=q,e.timeThursdays=O,e.timeTuesday=k,e.timeTuesdays=N,e.timeWednesday=A,e.timeWednesdays=I,e.timeWeek=x,e.timeWeeks=P,e.timeYear=W,e.timeYears=j,e.utcDay=$,e.utcDays=fe,e.utcFriday=ye,e.utcFridays=Xe,e.utcHour=ae,e.utcHours=se,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=J,e.utcMinutes=te,e.utcMonday=ce,e.utcMondays=Le,e.utcMonth=We,e.utcMonths=Se,e.utcSaturday=Ce,e.utcSaturdays=$e,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ue,e.utcSundays=Me,e.utcThursday=Re,e.utcThursdays=qe,e.utcTuesday=oe,e.utcTuesdays=De,e.utcWednesday=be,e.utcWednesdays=Ne,e.utcWeek=ue,e.utcWeeks=Me,e.utcYear=Fe,e.utcYears=Qe,Object.defineProperty(e,"__esModule",{value:!0})})});var p0=z((k1,hS)=>{(function(e,r){typeof k1=="object"&&typeof hS!="undefined"?r(k1,G5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(k1,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var ge=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return ge.setFullYear(ne.y),ge}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var ge=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return ge.setUTCFullYear(ne.y),ge}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,ge,ze){return{y:ne,m:ge,d:ze,H:0,M:0,S:0,L:0}}function i(ne){var ge=ne.dateTime,ze=ne.date,Oe=ne.time,Jr=ne.periods,Kr=ne.days,mt=ne.shortDays,yt=ne.months,Lt=ne.shortMonths,Qt=v(Jr),Va=d(Jr),ea=v(Kr),ja=d(Kr),ln=v(mt),oa=d(mt),vr=v(yt),_t=d(yt),Yr=v(Lt),vt=d(Lt),Rt={a:mo,A:li,b:la,B:i0,c:null,d:G,e:G,f:te,g:ye,G:Me,H:V,I:W,j,L:J,m:ae,M:se,p:ls,q:Rn,Q:ir,s:lr,S:$,u:fe,U:ie,V:ce,w:oe,W:be,x:null,X:null,y:Re,Y:Ce,Z:Le,"%":tr},Mt={a:ss,A:r1,b:t1,B:a1,c:null,d:De,e:De,f:We,g:He,G:Be,H:Ne,I:qe,j:Xe,L:$e,m:Se,M:Fe,p:Rv,q:Fv,Q:ir,s:lr,S:Qe,u:re,U:xe,V:cr,w:Pe,W:me,x:null,X:null,y:Ae,Y:Ze,Z:je,"%":tr},nt={a:ta,A:aa,b:ht,B:Wa,c:Ht,d:q,e:q,f:I,g:x,G:w,H:E,I:E,j:C,L:N,m:A,M:P,p:Ct,q:k,Q:U,s:Y,S:R,u:y,U:m,V:b,w:p,W:T,x:n0,X:Pn,y:x,Y:w,Z:_,"%":O};Rt.x=ra(ze,Rt),Rt.X=ra(Oe,Rt),Rt.c=ra(ge,Rt),Mt.x=ra(ze,Mt),Mt.X=ra(Oe,Mt),Mt.c=ra(ge,Mt);function ra(Mr,Ar){return function(dt){var ur=[],gn=-1,Ft=0,Xa=Mr.length,Za,qi,gu;for(dt instanceof Date||(dt=new Date(+dt));++gn<Xa;)Mr.charCodeAt(gn)===37&&(ur.push(Mr.slice(Ft,gn)),(qi=o[Za=Mr.charAt(++gn)])!=null?Za=Mr.charAt(++gn):qi=Za==="e"?" ":"0",(gu=Ar[Za])&&(Za=gu(dt,qi)),ur.push(Za),Ft=gn+1);return ur.push(Mr.slice(Ft,gn)),ur.join("")}}function En(Mr,Ar){return function(dt){var ur=n(1900,void 0,1),gn=Vt(ur,Mr,dt+="",0),Ft,Xa;if(gn!=dt.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(Ar&&!("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?(Ft=a(n(ur.y,0,1)),Xa=Ft.getUTCDay(),Ft=Xa>4||Xa===0?r.utcMonday.ceil(Ft):r.utcMonday(Ft),Ft=r.utcDay.offset(Ft,(ur.V-1)*7),ur.y=Ft.getUTCFullYear(),ur.m=Ft.getUTCMonth(),ur.d=Ft.getUTCDate()+(ur.w+6)%7):(Ft=t(n(ur.y,0,1)),Xa=Ft.getDay(),Ft=Xa>4||Xa===0?r.timeMonday.ceil(Ft):r.timeMonday(Ft),Ft=r.timeDay.offset(Ft,(ur.V-1)*7),ur.y=Ft.getFullYear(),ur.m=Ft.getMonth(),ur.d=Ft.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),Xa="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-(Xa+5)%7:ur.w+ur.U*7-(Xa+6)%7);return"Z"in ur?(ur.H+=ur.Z/100|0,ur.M+=ur.Z%100,a(ur)):t(ur)}}function Vt(Mr,Ar,dt,ur){for(var gn=0,Ft=Ar.length,Xa=dt.length,Za,qi;gn<Ft;){if(ur>=Xa)return-1;if(Za=Ar.charCodeAt(gn++),Za===37){if(Za=Ar.charAt(gn++),qi=nt[Za in o?Ar.charAt(gn++):Za],!qi||(ur=qi(Mr,dt,ur))<0)return-1}else if(Za!=dt.charCodeAt(ur++))return-1}return ur}function Ct(Mr,Ar,dt){var ur=Qt.exec(Ar.slice(dt));return ur?(Mr.p=Va[ur[0].toLowerCase()],dt+ur[0].length):-1}function ta(Mr,Ar,dt){var ur=ln.exec(Ar.slice(dt));return ur?(Mr.w=oa[ur[0].toLowerCase()],dt+ur[0].length):-1}function aa(Mr,Ar,dt){var ur=ea.exec(Ar.slice(dt));return ur?(Mr.w=ja[ur[0].toLowerCase()],dt+ur[0].length):-1}function ht(Mr,Ar,dt){var ur=Yr.exec(Ar.slice(dt));return ur?(Mr.m=vt[ur[0].toLowerCase()],dt+ur[0].length):-1}function Wa(Mr,Ar,dt){var ur=vr.exec(Ar.slice(dt));return ur?(Mr.m=_t[ur[0].toLowerCase()],dt+ur[0].length):-1}function Ht(Mr,Ar,dt){return Vt(Mr,ge,Ar,dt)}function n0(Mr,Ar,dt){return Vt(Mr,ze,Ar,dt)}function Pn(Mr,Ar,dt){return Vt(Mr,Oe,Ar,dt)}function mo(Mr){return mt[Mr.getDay()]}function li(Mr){return Kr[Mr.getDay()]}function la(Mr){return Lt[Mr.getMonth()]}function i0(Mr){return yt[Mr.getMonth()]}function ls(Mr){return Jr[+(Mr.getHours()>=12)]}function Rn(Mr){return 1+~~(Mr.getMonth()/3)}function ss(Mr){return mt[Mr.getUTCDay()]}function r1(Mr){return Kr[Mr.getUTCDay()]}function t1(Mr){return Lt[Mr.getUTCMonth()]}function a1(Mr){return yt[Mr.getUTCMonth()]}function Rv(Mr){return Jr[+(Mr.getUTCHours()>=12)]}function Fv(Mr){return 1+~~(Mr.getUTCMonth()/3)}return{format:function(Mr){var Ar=ra(Mr+="",Rt);return Ar.toString=function(){return Mr},Ar},parse:function(Mr){var Ar=En(Mr+="",!1);return Ar.toString=function(){return Mr},Ar},utcFormat:function(Mr){var Ar=ra(Mr+="",Mt);return Ar.toString=function(){return Mr},Ar},utcParse:function(Mr){var Ar=En(Mr+="",!0);return Ar.toString=function(){return Mr},Ar}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,ge,ze){var Oe=ne<0?"-":"",Jr=(Oe?-ne:ne)+"",Kr=Jr.length;return Oe+(Kr<ze?new Array(ze-Kr+1).join(ge)+Jr:Jr)}function c(ne){return ne.replace(u,"\\$&")}function v(ne){return new RegExp("^(?:"+ne.map(c).join("|")+")","i")}function d(ne){for(var ge={},ze=-1,Oe=ne.length;++ze<Oe;)ge[ne[ze].toLowerCase()]=ze;return ge}function p(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+1));return Oe?(ne.w=+Oe[0],ze+Oe[0].length):-1}function y(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+1));return Oe?(ne.u=+Oe[0],ze+Oe[0].length):-1}function m(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+2));return Oe?(ne.U=+Oe[0],ze+Oe[0].length):-1}function b(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+2));return Oe?(ne.V=+Oe[0],ze+Oe[0].length):-1}function T(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+2));return Oe?(ne.W=+Oe[0],ze+Oe[0].length):-1}function w(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+4));return Oe?(ne.y=+Oe[0],ze+Oe[0].length):-1}function x(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+2));return Oe?(ne.y=+Oe[0]+(+Oe[0]>68?1900:2e3),ze+Oe[0].length):-1}function _(ne,ge,ze){var Oe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ge.slice(ze,ze+6));return Oe?(ne.Z=Oe[1]?0:-(Oe[2]+(Oe[3]||"00")),ze+Oe[0].length):-1}function k(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+1));return Oe?(ne.q=Oe[0]*3-3,ze+Oe[0].length):-1}function A(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+2));return Oe?(ne.m=Oe[0]-1,ze+Oe[0].length):-1}function q(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+2));return Oe?(ne.d=+Oe[0],ze+Oe[0].length):-1}function C(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+3));return Oe?(ne.m=0,ne.d=+Oe[0],ze+Oe[0].length):-1}function E(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+2));return Oe?(ne.H=+Oe[0],ze+Oe[0].length):-1}function P(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+2));return Oe?(ne.M=+Oe[0],ze+Oe[0].length):-1}function R(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+2));return Oe?(ne.S=+Oe[0],ze+Oe[0].length):-1}function N(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+3));return Oe?(ne.L=+Oe[0],ze+Oe[0].length):-1}function I(ne,ge,ze){var Oe=l.exec(ge.slice(ze,ze+6));return Oe?(ne.L=Math.floor(Oe[0]/1e3),ze+Oe[0].length):-1}function O(ne,ge,ze){var Oe=s.exec(ge.slice(ze,ze+1));return Oe?ze+Oe[0].length:-1}function U(ne,ge,ze){var Oe=l.exec(ge.slice(ze));return Oe?(ne.Q=+Oe[0],ze+Oe[0].length):-1}function Y(ne,ge,ze){var Oe=l.exec(ge.slice(ze));return Oe?(ne.s=+Oe[0],ze+Oe[0].length):-1}function G(ne,ge){return f(ne.getDate(),ge,2)}function V(ne,ge){return f(ne.getHours(),ge,2)}function W(ne,ge){return f(ne.getHours()%12||12,ge,2)}function j(ne,ge){return f(1+r.timeDay.count(r.timeYear(ne),ne),ge,3)}function J(ne,ge){return f(ne.getMilliseconds(),ge,3)}function te(ne,ge){return J(ne,ge)+"000"}function ae(ne,ge){return f(ne.getMonth()+1,ge,2)}function se(ne,ge){return f(ne.getMinutes(),ge,2)}function $(ne,ge){return f(ne.getSeconds(),ge,2)}function fe(ne){var ge=ne.getDay();return ge===0?7:ge}function ie(ne,ge){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),ge,2)}function ue(ne){var ge=ne.getDay();return ge>=4||ge===0?r.timeThursday(ne):r.timeThursday.ceil(ne)}function ce(ne,ge){return ne=ue(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),ge,2)}function oe(ne){return ne.getDay()}function be(ne,ge){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),ge,2)}function Re(ne,ge){return f(ne.getFullYear()%100,ge,2)}function ye(ne,ge){return ne=ue(ne),f(ne.getFullYear()%100,ge,2)}function Ce(ne,ge){return f(ne.getFullYear()%1e4,ge,4)}function Me(ne,ge){var ze=ne.getDay();return ne=ze>=4||ze===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(ne.getFullYear()%1e4,ge,4)}function Le(ne){var ge=ne.getTimezoneOffset();return(ge>0?"-":(ge*=-1,"+"))+f(ge/60|0,"0",2)+f(ge%60,"0",2)}function De(ne,ge){return f(ne.getUTCDate(),ge,2)}function Ne(ne,ge){return f(ne.getUTCHours(),ge,2)}function qe(ne,ge){return f(ne.getUTCHours()%12||12,ge,2)}function Xe(ne,ge){return f(1+r.utcDay.count(r.utcYear(ne),ne),ge,3)}function $e(ne,ge){return f(ne.getUTCMilliseconds(),ge,3)}function We(ne,ge){return $e(ne,ge)+"000"}function Se(ne,ge){return f(ne.getUTCMonth()+1,ge,2)}function Fe(ne,ge){return f(ne.getUTCMinutes(),ge,2)}function Qe(ne,ge){return f(ne.getUTCSeconds(),ge,2)}function re(ne){var ge=ne.getUTCDay();return ge===0?7:ge}function xe(ne,ge){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),ge,2)}function Ge(ne){var ge=ne.getUTCDay();return ge>=4||ge===0?r.utcThursday(ne):r.utcThursday.ceil(ne)}function cr(ne,ge){return ne=Ge(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),ge,2)}function Pe(ne){return ne.getUTCDay()}function me(ne,ge){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),ge,2)}function Ae(ne,ge){return f(ne.getUTCFullYear()%100,ge,2)}function He(ne,ge){return ne=Ge(ne),f(ne.getUTCFullYear()%100,ge,2)}function Ze(ne,ge){return f(ne.getUTCFullYear()%1e4,ge,4)}function Be(ne,ge){var ze=ne.getUTCDay();return ne=ze>=4||ze===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(ne.getUTCFullYear()%1e4,ge,4)}function je(){return"+0000"}function tr(){return"%"}function ir(ne){return+ne}function lr(ne){return Math.floor(+ne/1e3)}var Ee;Je({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 Je(ne){return Ee=i(ne),e.timeFormat=Ee.format,e.timeParse=Ee.parse,e.utcFormat=Ee.utcFormat,e.utcParse=Ee.utcParse,Ee}var Ie="%Y-%m-%dT%H:%M:%S.%LZ";function pr(ne){return ne.toISOString()}var mr=Date.prototype.toISOString?pr:e.utcFormat(Ie);function sr(ne){var ge=new Date(ne);return isNaN(ge)?null:ge}var yr=+new Date("2000-01-01T00:00:00.000Z")?sr:e.utcParse(Ie);e.isoFormat=mr,e.isoParse=yr,e.timeFormatDefaultLocale=Je,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Y5=z((S1,dS)=>{(function(e,r){typeof S1=="object"&&typeof dS!="undefined"?r(S1):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(S1,(function(e){"use strict";function r(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function t(A,q){if((C=(A=q?A.toExponential(q-1):A.toExponential()).indexOf("e"))<0)return null;var C,E=A.slice(0,C);return[E.length>1?E[0]+E.slice(2):E,+A.slice(C+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,q){return function(C,E){for(var P=C.length,R=[],N=0,I=A[0],O=0;P>0&&I>0&&(O+I+1>E&&(I=Math.max(1,E-O)),R.push(C.substring(P-=I,P+I)),!((O+=I+1)>E));)I=A[N=(N+1)%A.length];return R.reverse().join(q)}}function i(A){return function(q){return q.replace(/[0-9]/g,function(C){return A[+C]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(A){if(!(q=o.exec(A)))throw new Error("invalid format: "+A);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(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.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(A){e:for(var q=A.length,C=1,E=-1,P;C<q;++C)switch(A[C]){case".":E=P=C;break;case"0":E===0&&(E=C),P=C;break;default:if(!+A[C])break e;E>0&&(E=0);break}return E>0?A.slice(0,E)+A.slice(P+1):A}var f;function c(A,q){var C=t(A,q);if(!C)return A+"";var E=C[0],P=C[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,N=E.length;return R===N?E:R>N?E+new Array(R-N+1).join("0"):R>0?E.slice(0,R)+"."+E.slice(R):"0."+new Array(1-R).join("0")+t(A,Math.max(0,q+R-1))[0]}function v(A,q){var C=t(A,q);if(!C)return A+"";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(A,q){return(A*100).toFixed(q)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,q){return A.toExponential(q)},f:function(A,q){return A.toFixed(q)},g:function(A,q){return A.toPrecision(q)},o:function(A){return Math.round(A).toString(8)},p:function(A,q){return v(A*100,q)},r:v,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function p(A){return A}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(A){var q=A.grouping===void 0||A.thousands===void 0?p:n(y.call(A.grouping,Number),A.thousands+""),C=A.currency===void 0?"":A.currency[0]+"",E=A.currency===void 0?"":A.currency[1]+"",P=A.decimal===void 0?".":A.decimal+"",R=A.numerals===void 0?p:i(y.call(A.numerals,String)),N=A.percent===void 0?"%":A.percent+"",I=A.minus===void 0?"-":A.minus+"",O=A.nan===void 0?"NaN":A.nan+"";function U(G){G=l(G);var V=G.fill,W=G.align,j=G.sign,J=G.symbol,te=G.zero,ae=G.width,se=G.comma,$=G.precision,fe=G.trim,ie=G.type;ie==="n"?(se=!0,ie="g"):d[ie]||($===void 0&&($=12),fe=!0,ie="g"),(te||V==="0"&&W==="=")&&(te=!0,V="0",W="=");var ue=J==="$"?C:J==="#"&&/[boxX]/.test(ie)?"0"+ie.toLowerCase():"",ce=J==="$"?E:/[%p]/.test(ie)?N:"",oe=d[ie],be=/[defgprs%]/.test(ie);$=$===void 0?6:/[gprs]/.test(ie)?Math.max(1,Math.min(21,$)):Math.max(0,Math.min(20,$));function Re(ye){var Ce=ue,Me=ce,Le,De,Ne;if(ie==="c")Me=oe(ye)+Me,ye="";else{ye=+ye;var qe=ye<0||1/ye<0;if(ye=isNaN(ye)?O:oe(Math.abs(ye),$),fe&&(ye=u(ye)),qe&&+ye==0&&j!=="+"&&(qe=!1),Ce=(qe?j==="("?j:I:j==="-"||j==="("?"":j)+Ce,Me=(ie==="s"?m[8+f/3]:"")+Me+(qe&&j==="("?")":""),be){for(Le=-1,De=ye.length;++Le<De;)if(Ne=ye.charCodeAt(Le),48>Ne||Ne>57){Me=(Ne===46?P+ye.slice(Le+1):ye.slice(Le))+Me,ye=ye.slice(0,Le);break}}}se&&!te&&(ye=q(ye,1/0));var Xe=Ce.length+ye.length+Me.length,$e=Xe<ae?new Array(ae-Xe+1).join(V):"";switch(se&&te&&(ye=q($e+ye,$e.length?ae-Me.length:1/0),$e=""),W){case"<":ye=Ce+ye+Me+$e;break;case"=":ye=Ce+$e+ye+Me;break;case"^":ye=$e.slice(0,Xe=$e.length>>1)+Ce+ye+Me+$e.slice(Xe);break;default:ye=$e+Ce+ye+Me;break}return R(ye)}return Re.toString=function(){return G+""},Re}function Y(G,V){var W=U((G=l(G),G.type="f",G)),j=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,J=Math.pow(10,-j),te=m[8+j/3];return function(ae){return W(J*ae)+te}}return{format:U,formatPrefix:Y}}var T;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(A){return T=b(A),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function x(A){return Math.max(0,-a(Math.abs(A)))}function _(A,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(A)))}function k(A,q){return A=Math.abs(A),q=Math.abs(q)-A,Math.max(0,a(q)-a(A))+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 mS=z((PHe,pS)=>{"use strict";pS.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 Ir=z((RHe,yS)=>{"use strict";var I0e=mS();yS.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 Gt=z((FHe,gS)=>{"use strict";gS.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var V5=z((q1,bS)=>{(function(e,r){typeof q1=="object"&&typeof bS!="undefined"?r(q1):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(q1,(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 y=new ArrayBuffer(l),m=new Uint8Array(y);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)],m[f++]=c<<2|v>>4,m[f++]=(v&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Au=z((zHe,xS)=>{"use strict";xS.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 Vn=z(bo=>{"use strict";var B0e=V5().decode,O0e=Au(),j5=Array.isArray,H0e=ArrayBuffer,U0e=DataView;function _S(e){return H0e.isView(e)&&!(e instanceof U0e)}bo.isTypedArray=_S;function L1(e){return j5(e)||_S(e)}bo.isArrayOrTypedArray=L1;function G0e(e){return!L1(e[0])}bo.isArray1D=G0e;bo.ensureArray=function(e,r){return j5(e)||(e=[]),e.length=r,e};var Oa={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};Oa.uint8c=Oa.u1c;Oa.uint8=Oa.u1;Oa.int8=Oa.i1;Oa.uint16=Oa.u2;Oa.int16=Oa.i2;Oa.uint32=Oa.u4;Oa.int32=Oa.i4;Oa.float32=Oa.f4;Oa.float64=Oa.f8;function W5(e){return e.constructor===ArrayBuffer}bo.isArrayBuffer=W5;bo.decodeTypedArraySpec=function(e){var r=[],t=Y0e(e),a=t.dtype,n=Oa[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;W5(o)||(o=B0e(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],y=0;y<p;y++)for(r[y]=[],f=0;f<u;f++)r[y][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};bo.isTypedArraySpec=function(e){return O0e(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||W5(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function Y0e(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}bo.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),j5(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};bo.maxRowLength=function(e){return wS(e,Math.max,0)};bo.minRowLength=function(e){return wS(e,Math.min,1/0)};function wS(e,r,t){if(L1(e))if(L1(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 C1=z((IHe,SS)=>{"use strict";var TS=Ir(),Z5=Vn().isArrayOrTypedArray;SS.exports=function(r,t){if(TS(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"?X0e(r,t,a):{set:MS(r,a,t),get:AS(r,a),astr:t,parts:a,obj:r}};function AS(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]=AS(a[s],r.slice(l+1))(t),o[s]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof n=="number"&&!Z5(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 V0e=/(^|\.)args\[/;function X5(e,r){return e===void 0||e===null&&!r.match(V0e)}function MS(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"&&!Z5(n))throw"array index but container is not an array";if(s===-1){if(l=!W0e(n,r.slice(u+1),a,t),l)break;return}if(!kS(n,s,r[u+1],l))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=j0e(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 j0e(e,r){var t=r;return TS(r)?t="["+r+"]":e&&(t="."+r),e+t}function W0e(e,r,t,a){var n=Z5(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),kS(e,f,u,s)&&MS(e[f],r,a.replace("-1",f))(o);return i}function kS(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function X0e(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var DS=z((BHe,CS)=>{"use strict";var m0=C1(),Z0e=/^\w*$/,$0e=0,qS=1,D1=2,LS=3,Mu=4;CS.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=m0(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=Z0e.test(n),c={set:function(v,d){var p=d===null?Mu:$0e;if(!o){if(!l||p===Mu)return;o=[],l.set(o)}var y=u[v];if(y===void 0){if(p===Mu)return;p=p|LS,y=o.length,u[v]=y}else d!==(f?o[y][n]:m0(o[y],n).get())&&(p=p|D1);var m=o[y]=o[y]||{};return m[a]=v,f?m[n]=d:m0(m,n).set(d),d!==null&&(p=p&~Mu),s[y]=s[y]|p,c},get:function(v){if(o){var d=u[v];if(d!==void 0)return f?o[d][n]:m0(o[d],n).get()}},rename:function(v,d){var p=u[v];return p===void 0||(s[p]=s[p]|qS,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]|D1,c.set(v,null);if(f){for(i=d;i<o.length;i++)s[i]=s[i]|LS;for(i=d;i<o.length;i++)u[o[i][a]]--;o.splice(d,1),delete u[v]}else m0(p,n).set(null),s[d]=s[d]|D1|Mu;return c},constructUpdate:function(){for(var v,d,p={},y=Object.keys(s),m=0;m<y.length;m++)d=y[m],v=t+"["+d+"]",o[d]?(s[d]&qS&&(p[v+"."+a]=o[d][a]),s[d]&D1&&(f?p[v+"."+n]=s[d]&Mu?null:o[d][n]:p[v+"."+n]=s[d]&Mu?null:m0(o[d],n).get())):p[v]=null;return p}};return c}});var PS=z((OHe,ES)=>{"use strict";var J0e=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,K0e=/^[^\.\[\]]+$/;ES.exports=function(e,r){for(;r;){var t=e.match(J0e);if(t)e=t[1];else if(e.match(K0e))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 E1=z((HHe,RS)=>{"use strict";var Q0e=Ir();RS.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 Q0e(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var NS=z((UHe,zS)=>{"use strict";var FS=Vn().isArrayOrTypedArray,Wv=Au();zS.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(FS(n)&&FS(i)&&Wv(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]&&Wv(n[l])&&Wv(i[l])&&e(i[l],n[l])}else Wv(n)&&Wv(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var y0={};d0(y0,{mod:()=>ece,modHalf:()=>rce});function ece(e,r){let t=e%r;return t<0?t+r:t}function rce(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var g0=h0(()=>{"use strict"});var At=z($v=>{"use strict";var IS=Au(),Xv=Array.isArray;function tce(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}$v.extendFlat=function(...e){return Zv(e,!1,!1,!1)};$v.extendDeep=function(...e){return Zv(e,!0,!1,!1)};$v.extendDeepAll=function(...e){return Zv(e,!0,!0,!1)};$v.extendDeepNoArrays=function(...e){return Zv(e,!0,!1,!0)};function Zv(e,r,t,a){var n=e[0],i=e.length,o,l,s,u,f,c,v;if(i===2&&Xv(n)&&Xv(e[1])&&n.length===0){if(v=tce(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=n[l],u=o[l],a&&Xv(u)?n[l]=u:r&&u&&(IS(u)||(f=Xv(u)))?(f?(f=!1,c=s&&Xv(s)?s:[]):c=s&&IS(s)?s:{},n[l]=Zv([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[l]=u)}return n}});var ka=z((YHe,BS)=>{"use strict";BS.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 Jv=z((VHe,OS)=>{"use strict";OS.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var b0=z((jHe,GS)=>{"use strict";var HS=Jv(),US=ka(),$5=US({editType:"none"});$5.family.dflt=HS.HOVERFONT;$5.size.dflt=HS.HOVERFONTSIZE;GS.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:$5,grouptitlefont:US({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 P1=z((WHe,YS)=>{"use strict";var ace=ka(),Kv=b0().hoverlabel,Qv=At().extendFlat;YS.exports={hoverlabel:{bgcolor:Qv({},Kv.bgcolor,{arrayOk:!0}),bordercolor:Qv({},Kv.bordercolor,{arrayOk:!0}),font:ace({arrayOk:!0,editType:"none"}),align:Qv({},Kv.align,{arrayOk:!0}),namelength:Qv({},Kv.namelength,{arrayOk:!0}),showarrow:Qv({},Kv.showarrow),editType:"none"}}});var zn=z((XHe,VS)=>{"use strict";var nce=ka(),ice=P1();VS.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:nce({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:ice.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var NL=z((rUe,zL)=>{var Ux=Object.defineProperty,oce=Object.getOwnPropertyDescriptor,lce=Object.getOwnPropertyNames,sce=Object.prototype.hasOwnProperty,uce=(e,r)=>{for(var t in r)Ux(e,t,{get:r[t],enumerable:!0})},fce=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of lce(r))!sce.call(e,n)&&n!==t&&Ux(e,n,{get:()=>r[n],enumerable:!(a=oce(r,n))||a.enumerable});return e},cce=e=>fce(Ux({},"__esModule",{value:!0}),e),rq={};uce(rq,{a98:()=>t2e,average:()=>lve,averageAngle:()=>Jo,averageNumber:()=>gq,blend:()=>ode,blerp:()=>wx,clampChroma:()=>kde,clampGamut:()=>p_,clampRgb:()=>Mde,colorsNamed:()=>aq,convertA98ToXyz65:()=>Tx,convertCubehelixToRgb:()=>mq,convertDlchToLab65:()=>U1,convertHsiToRgb:()=>kq,convertHslToRgb:()=>Lq,convertHsvToRgb:()=>Xx,convertHwbToRgb:()=>Pq,convertItpToXyz65:()=>Mx,convertJabToJch:()=>Sx,convertJabToRgb:()=>e_,convertJabToXyz65:()=>Kx,convertJchToJab:()=>qx,convertLab65ToDlch:()=>G1,convertLab65ToRgb:()=>lh,convertLab65ToXyz65:()=>Vx,convertLabToLch:()=>Cl,convertLabToRgb:()=>t_,convertLabToXyz50:()=>Q1,convertLchToLab:()=>Dl,convertLchuvToLuv:()=>i_,convertLrgbToOklab:()=>o_,convertLrgbToRgb:()=>Eu,convertLuvToLchuv:()=>n_,convertLuvToXyz50:()=>V1,convertOkhslToOklab:()=>Dx,convertOkhsvToOklab:()=>Px,convertOklabToLrgb:()=>S0,convertOklabToOkhsl:()=>Cx,convertOklabToOkhsv:()=>Ex,convertOklabToRgb:()=>fh,convertP3ToXyz65:()=>Rx,convertProphotoToXyz50:()=>Nx,convertRec2020ToXyz65:()=>Bx,convertRgbToCubehelix:()=>pq,convertRgbToHsi:()=>Sq,convertRgbToHsl:()=>Cq,convertRgbToHsv:()=>Zx,convertRgbToHwb:()=>Rq,convertRgbToJab:()=>Qx,convertRgbToLab:()=>a_,convertRgbToLab65:()=>sh,convertRgbToLrgb:()=>Du,convertRgbToOklab:()=>uh,convertRgbToXyb:()=>sL,convertRgbToXyz50:()=>k0,convertRgbToXyz65:()=>vs,convertRgbToYiq:()=>pL,convertXybToRgb:()=>uL,convertXyz50ToLab:()=>ep,convertXyz50ToLuv:()=>Y1,convertXyz50ToProphoto:()=>zx,convertXyz50ToRgb:()=>M0,convertXyz50ToXyz65:()=>hL,convertXyz65ToA98:()=>Ax,convertXyz65ToItp:()=>kx,convertXyz65ToJab:()=>Jx,convertXyz65ToLab65:()=>jx,convertXyz65ToP3:()=>Fx,convertXyz65ToRec2020:()=>Ix,convertXyz65ToRgb:()=>hs,convertXyz65ToXyz50:()=>vL,convertYiqToRgb:()=>mL,converter:()=>zt,cubehelix:()=>a2e,differenceCie76:()=>eve,differenceCie94:()=>rve,differenceCiede2000:()=>tve,differenceCmc:()=>ave,differenceEuclidean:()=>A0,differenceHueChroma:()=>oh,differenceHueNaive:()=>yq,differenceHueSaturation:()=>ih,differenceHyab:()=>nve,differenceItp:()=>ove,differenceKotsarenkoRamos:()=>ive,displayable:()=>d_,dlab:()=>n2e,dlch:()=>i2e,easingGamma:()=>DL,easingInOutSine:()=>e2e,easingMidpoint:()=>AL,easingSmootherstep:()=>Kde,easingSmoothstep:()=>Zde,easingSmoothstepInverse:()=>$de,filterBrightness:()=>Fde,filterContrast:()=>zde,filterDeficiencyDeuter:()=>Wde,filterDeficiencyProt:()=>jde,filterDeficiencyTrit:()=>Xde,filterGrayscale:()=>Bde,filterHueRotate:()=>Hde,filterInvert:()=>Ode,filterSaturate:()=>Ide,filterSepia:()=>Nde,fixupAlpha:()=>Ra,fixupHueDecreasing:()=>Zce,fixupHueIncreasing:()=>Xce,fixupHueLonger:()=>Wce,fixupHueShorter:()=>$o,formatCss:()=>Qhe,formatHex:()=>ede,formatHex8:()=>rde,formatHsl:()=>ade,formatRgb:()=>tde,getMode:()=>_n,hsi:()=>o2e,hsl:()=>l2e,hsv:()=>s2e,hwb:()=>u2e,inGamut:()=>ap,interpolate:()=>pde,interpolateWith:()=>kL,interpolateWithPremultipliedAlpha:()=>mde,interpolatorLinear:()=>_r,interpolatorPiecewise:()=>hq,interpolatorSplineBasis:()=>qL,interpolatorSplineBasisClosed:()=>LL,interpolatorSplineMonotone:()=>bde,interpolatorSplineMonotone2:()=>xde,interpolatorSplineMonotoneClosed:()=>_de,interpolatorSplineNatural:()=>yde,interpolatorSplineNaturalClosed:()=>gde,itp:()=>f2e,jab:()=>c2e,jch:()=>v2e,lab:()=>h2e,lab65:()=>d2e,lch:()=>p2e,lch65:()=>m2e,lchuv:()=>y2e,lerp:()=>Su,lrgb:()=>g2e,luv:()=>b2e,mapAlphaDivide:()=>TL,mapAlphaMultiply:()=>wL,mapTransferGamma:()=>cde,mapTransferLinear:()=>c_,mapper:()=>ch,modeA98:()=>dq,modeCubehelix:()=>bq,modeDlab:()=>Aq,modeDlch:()=>Mq,modeHsi:()=>qq,modeHsl:()=>Wx,modeHsv:()=>$x,modeHwb:()=>zq,modeItp:()=>Bq,modeJab:()=>Oq,modeJch:()=>Hq,modeLab:()=>rp,modeLab65:()=>Gq,modeLch:()=>tp,modeLch65:()=>Vq,modeLchuv:()=>Xq,modeLrgb:()=>Zq,modeLuv:()=>$q,modeOkhsl:()=>Kq,modeOkhsv:()=>Qq,modeOklab:()=>rL,modeOklch:()=>aL,modeP3:()=>nL,modeProphoto:()=>iL,modeRec2020:()=>oL,modeRgb:()=>Cu,modeXyb:()=>fL,modeXyz50:()=>cL,modeXyz65:()=>dL,modeYiq:()=>yL,nearest:()=>Lde,okhsl:()=>x2e,okhsv:()=>_2e,oklab:()=>w2e,oklch:()=>T2e,p3:()=>A2e,parse:()=>fq,parseHex:()=>iq,parseHsl:()=>Eq,parseHslLegacy:()=>Dq,parseHwb:()=>Fq,parseLab:()=>Uq,parseLch:()=>Yq,parseNamed:()=>nq,parseOklab:()=>eL,parseOklch:()=>tL,parseRgb:()=>cq,parseRgbLegacy:()=>oq,parseTransparent:()=>vq,prophoto:()=>M2e,random:()=>fde,rec2020:()=>k2e,removeParser:()=>Mce,rgb:()=>S2e,round:()=>gL,samples:()=>Ade,serializeHex:()=>f_,serializeHex8:()=>bL,serializeHsl:()=>_L,serializeRgb:()=>xL,toGamut:()=>Sde,trilerp:()=>zce,unlerp:()=>Fce,useMode:()=>kt,useParser:()=>sq,wcagContrast:()=>r2e,wcagLuminance:()=>Hx,xyb:()=>q2e,xyz50:()=>L2e,xyz65:()=>C2e,yiq:()=>D2e});zL.exports=cce(rq);var vce=(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}}},tq=vce,hce={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},aq=hce,dce=e=>tq(aq[e.toLowerCase()],6),nq=dce,pce=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,mce=e=>{let r;return(r=e.match(pce))?tq(parseInt(r[1],16),r[1].length):void 0},iq=mce,jn="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",ZHe=`(?:${jn}|none)`,th=`${jn}%`,$He=`(?:${jn}%|none)`,Gx=`(?:${jn}%|${jn})`,yce=`(?:${jn}%|${jn}|none)`,gce=`(?:${jn}(deg|grad|rad|turn)|${jn})`,JHe=`(?:${jn}(deg|grad|rad|turn)|${jn}|none)`,w0="\\s*,\\s*",KHe=new RegExp("^"+yce+"$"),bce=new RegExp(`^rgba?\\(\\s*${jn}${w0}${jn}${w0}${jn}\\s*(?:,\\s*${Gx}\\s*)?\\)$`),xce=new RegExp(`^rgba?\\(\\s*${th}${w0}${th}${w0}${th}\\s*(?:,\\s*${Gx}\\s*)?\\)$`),_ce=e=>{let r={mode:"rgb"},t;if(t=e.match(bce))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(xce))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},oq=_ce,wce=(e,r)=>e===void 0?void 0:typeof e!="object"?fq(e):e.mode!==void 0?e:r?Ut(wt({},e),{mode:r}):void 0,xo=wce,Tce=(e="rgb")=>r=>(r=xo(r,e))!==void 0?r.mode===e?r:Zo[r.mode][e]?Zo[r.mode][e](r):e==="rgb"?Zo[r.mode].rgb(r):Zo.rgb[e](Zo[r.mode].rgb(r)):void 0,zt=Tce,Zo={},lq={},T0=[],Yx={},Ace=e=>e,kt=e=>(Zo[e.mode]=wt(wt({},Zo[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Zo[r]||(Zo[r]={}),Zo[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=Ace)}),lq[e.mode]=e,(e.parse||[]).forEach(r=>{sq(r,e.mode)}),zt(e.mode)),_n=e=>lq[e],sq=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");Yx[e]=r}else typeof e=="function"&&T0.indexOf(e)<0&&T0.push(e)},Mce=e=>{if(typeof e=="string")delete Yx[e];else if(typeof e=="function"){let r=T0.indexOf(e);r>0&&T0.splice(r,1)}},xx=/[^\x00-\x7F]|[a-zA-Z_]/,kce=/[^\x00-\x7F]|[-\w]/,dr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Hr=0;function R1(e){let r=e[Hr],t=e[Hr+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Hr+2]):r==="."?/\d/.test(t):/\d/.test(r)}function _x(e){if(Hr>=e.length)return!1;let r=e[Hr];if(xx.test(r))return!0;if(r==="-"){if(e.length-Hr<2)return!1;let t=e[Hr+1];return!!(t==="-"||xx.test(t))}return!1}var Sce={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function eh(e){let r="";if((e[Hr]==="-"||e[Hr]==="+")&&(r+=e[Hr++]),r+=F1(e),e[Hr]==="."&&/\d/.test(e[Hr+1])&&(r+=e[Hr++]+F1(e)),(e[Hr]==="e"||e[Hr]==="E")&&((e[Hr+1]==="-"||e[Hr+1]==="+")&&/\d/.test(e[Hr+2])?r+=e[Hr++]+e[Hr++]+F1(e):/\d/.test(e[Hr+1])&&(r+=e[Hr++]+F1(e))),_x(e)){let t=I1(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:dr.Hue,value:r*Sce[t]}:void 0}return e[Hr]==="%"?(Hr++,{type:dr.Percentage,value:+r}):{type:dr.Number,value:+r}}function F1(e){let r="";for(;/\d/.test(e[Hr]);)r+=e[Hr++];return r}function I1(e){let r="";for(;Hr<e.length&&kce.test(e[Hr]);)r+=e[Hr++];return r}function qce(e){let r=I1(e);return e[Hr]==="("?(Hr++,{type:dr.Function,value:r}):r==="none"?{type:dr.None,value:void 0}:{type:dr.Ident,value:r}}function Lce(e=""){let r=e.trim(),t=[],a;for(Hr=0;Hr<r.length;){if(a=r[Hr++],a===`
`||a==="	"||a===" "){for(;Hr<r.length&&(r[Hr]===`
`||r[Hr]==="	"||r[Hr]===" ");)Hr++;continue}if(a===",")return;if(a===")"){t.push({type:dr.ParenClose});continue}if(a==="+"){if(Hr--,R1(r)){t.push(eh(r));continue}return}if(a==="-"){if(Hr--,R1(r)){t.push(eh(r));continue}if(_x(r)){t.push({type:dr.Ident,value:I1(r)});continue}return}if(a==="."){if(Hr--,R1(r)){t.push(eh(r));continue}return}if(a==="/"){for(;Hr<r.length&&(r[Hr]===`
`||r[Hr]==="	"||r[Hr]===" ");)Hr++;let n;if(R1(r)&&(n=eh(r),n.type!==dr.Hue)){t.push({type:dr.Alpha,value:n});continue}if(_x(r)&&I1(r)==="none"){t.push({type:dr.Alpha,value:{type:dr.None,value:void 0}});continue}return}if(/\d/.test(a)){Hr--,t.push(eh(r));continue}if(xx.test(a)){Hr--,t.push(qce(r));continue}return}return t}function Cce(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=Yx[r.value];if(!t)return;let a={mode:t},n=uq(e,!1);if(!n)return;let i=_n(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 uq(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 Dce(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==dr.Function)return;let a=uq(e,r);if(a)return a.unshift(t.value),a}var Ece=e=>{if(typeof e!="string")return;let r=Lce(e),t=r?Dce(r,!0):void 0,a,n=0,i=T0.length;for(;n<i;)if((a=T0[n++](e,t))!==void 0)return a;return r?Cce(r):void 0},fq=Ece;function Pce(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 cq=Pce,Rce=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,vq=Rce,Su=(e,r,t)=>e+t*(r-e),Fce=(e,r,t)=>(t-e)/(r-e),wx=(e,r,t,a,n,i)=>Su(Su(e,r,n),Su(t,a,n),i),zce=(e,r,t,a,n,i,o,l,s,u,f)=>Su(wx(e,r,t,a,s,u),wx(n,i,o,l,s,u),f),Nce=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},hq=e=>r=>{let t=Nce(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)}},_r=hq(Su),Ra=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},Ice={mode:"rgb",channels:["r","g","b","alpha"],parse:[cq,iq,oq,nq,vq,"srgb"],serialize:"srgb",interpolate:{r:_r,g:_r,b:_r,alpha:{use:_r,fixup:Ra}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Cu=Ice,J5=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),Bce=e=>{let r=J5(e.r),t=J5(e.g),a=J5(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},Tx=Bce,K5=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),Oce=({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:K5(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:K5(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:K5(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},Ax=Oce,Q5=(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)},Hce=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:Q5(e),g:Q5(r),b:Q5(t)};return a!==void 0&&(n.alpha=a),n},Du=Hce,Uce=e=>{let{r,g:t,b:a,alpha:n}=Du(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},vs=Uce,ex=(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},Gce=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:ex(e),g:ex(r),b:ex(t)};return a!==void 0&&(i.alpha=a),i},Eu=Gce,Yce=({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=Eu({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},hs=Yce,Vce=Ut(wt({},Cu),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Ax(vs(e)),xyz65:Ax},toMode:{rgb:e=>hs(Tx(e)),xyz65:Tx}}),dq=Vce,jce=e=>(e=e%360)<0?e+360:e,fn=jce,W1=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=fn(t);return a===0||e[a-1]===void 0?i:r(i-fn(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),[]),$o=e=>W1(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),Wce=e=>W1(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),Xce=e=>W1(e,r=>r>=0?r:r+360),Zce=e=>W1(e,r=>r<=0?r:r-360),Ka=[-.14861,1.78277,-.29227,-.90649,1.97294,0],$ce=Math.PI/180,Jce=180/Math.PI,jS=Ka[3]*Ka[4],WS=Ka[1]*Ka[4],XS=Ka[1]*Ka[2]-Ka[0]*Ka[3],Kce=({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=(XS*t+e*jS-r*WS)/(XS+jS-WS),i=t-n,o=(Ka[4]*(r-n)-Ka[2]*i)/Ka[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(Ka[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*Jce-120),a!==void 0&&(l.alpha=a),l},pq=Kce,Qce=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*$ce,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*(Ka[0]*o+Ka[1]*l),n.g=t+i*(Ka[2]*o+Ka[3]*l),n.b=t+i*(Ka[4]*o+Ka[5]*l),a!==void 0&&(n.alpha=a),n},mq=Qce,ih=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=fn(e.h),a=fn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},yq=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=fn(e.h),a=fn(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},oh=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=fn(e.h),a=fn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},A0=(e="rgb",r=[1,1,1,0])=>{let t=_n(e),a=t.channels,n=t.difference,i=zt(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))}},eve=()=>A0("lab65"),rve=(e=1,r=.045,t=.015)=>{let a=zt("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,y=Math.sqrt(d*d+p*p),m=Math.pow(s-v,2),b=Math.pow(c-y,2),T=Math.pow(u-d,2)+Math.pow(f-p,2)-b;return Math.sqrt(m/Math.pow(e,2)+b/Math.pow(1+r*c,2)+T/Math.pow(1+t*c,2))}},tve=(e=1,r=1,t=1)=>{let a=zt("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,y=Math.sqrt(d*d+p*p),m=(c+y)/2,b=.5*(1-Math.sqrt(Math.pow(m,7)/(Math.pow(m,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 A=Math.abs(w)+Math.abs(p)===0?0:Math.atan2(p,w);A+=(A<0)*2*Math.PI;let q=v-s,C=_-x,E=x*_===0?0:A-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,N=(x+_)/2,I;x*_===0?I=k+A:(I=(k+A)/2,I-=(Math.abs(k-A)>Math.PI)*Math.PI,I+=(I<0)*2*Math.PI);let O=Math.pow(R-50,2),U=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),Y=1+.015*O/Math.sqrt(20+O),G=1+.045*N,V=1+.015*N*U,W=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),j=2*Math.sqrt(Math.pow(N,7)/(Math.pow(N,7)+Math.pow(25,7))),J=-1*Math.sin(2*W)*j;return Math.sqrt(Math.pow(q/(e*Y),2)+Math.pow(C/(r*G),2)+Math.pow(P/(t*V),2)+J*C/(r*G)*P/(t*V))}},ave=(e=1,r=1)=>{let t=zt("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,y=Math.sqrt(d*d+p*p),m=Math.pow(o-v,2),b=Math.pow(u-y,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,A=k*(w*x+1-w);return Math.sqrt(m/Math.pow(e*_,2)+b/Math.pow(r*k,2)+T/Math.pow(A,2))}},nve=()=>{let e=zt("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)}},ive=()=>A0("yiq",[.5053,.299,.1957]),ove=()=>A0("itp",[518400,129600,518400]),Jo=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},gq=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},rx=e=>typeof e=="function";function lve(e,r="rgb",t){let a=_n(r),n=e.map(zt(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;rx(t)?s=t:t&&rx(t[o])?s=t[o]:a.average&&rx(a.average[o])?s=a.average[o]:s=gq,i[o]=s(l,o)}return i},{mode:r})}var sve={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:pq},toMode:{rgb:mq},interpolate:{h:{use:_r,fixup:$o},s:_r,l:_r,alpha:{use:_r,fixup:Ra}},difference:{h:ih},average:{h:Jo}},bq=sve,uve=({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=fn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},Cl=uve,fve=({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},Dl=fve,xq=Math.pow(29,3)/Math.pow(3,3),_q=Math.pow(6,3)/Math.pow(29,3),Pa={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},_0={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},QHe=Math.pow(29,3)/Math.pow(3,3),eUe=Math.pow(6,3)/Math.pow(29,3),tx=e=>Math.pow(e,3)>_q?Math.pow(e,3):(116*e-16)/xq,cve=({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:tx(i)*_0.X,y:tx(n)*_0.Y,z:tx(o)*_0.Z};return a!==void 0&&(l.alpha=a),l},Vx=cve,vve=e=>hs(Vx(e)),lh=vve,ax=e=>e>_q?Math.cbrt(e):(xq*e+16)/116,hve=({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=ax(e/_0.X),i=ax(r/_0.Y),o=ax(t/_0.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},jx=hve,dve=e=>{let r=jx(vs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},sh=dve,B1=1,wq=1,nh=26/180*Math.PI,O1=Math.cos(nh),H1=Math.sin(nh),Tq=100/Math.log(139/100),pve=({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*B1/Tq)-1)/.0039},i=(Math.exp(.0435*r*wq*B1)-1)/.075,o=i*Math.cos(t/180*Math.PI-nh),l=i*Math.sin(t/180*Math.PI-nh);return n.a=o*O1-l/.83*H1,n.b=o*H1+l/.83*O1,a!==void 0&&(n.alpha=a),n},U1=pve,mve=({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*O1+t*H1,i=.83*(t*O1-r*H1),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:Tq/B1*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*wq*B1)};return l.c&&(l.h=fn((Math.atan2(i,n)+nh)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},G1=mve,ZS=e=>U1(Cl(e,"dlch")),$S=e=>Dl(G1(e),"dlab"),yve={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:ZS,rgb:e=>lh(ZS(e))},fromMode:{lab65:$S,rgb:e=>$S(sh(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:_r,a:_r,b:_r,alpha:{use:_r,fixup:Ra}}},Aq=yve,gve={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:U1,dlab:e=>Dl(e,"dlab"),rgb:e=>lh(U1(e))},fromMode:{lab65:G1,dlab:e=>Cl(e,"dlch"),rgb:e=>G1(sh(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:_r,c:_r,h:{use:_r,fixup:$o},alpha:{use:_r,fixup:Ra}},difference:{h:oh},average:{h:Jo}},Mq=gve;function kq({h:e,s:r,i:t,alpha:a}){e=fn(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 Sq({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 bve={mode:"hsi",toMode:{rgb:kq},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Sq},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:_r,fixup:$o},s:_r,i:_r,alpha:{use:_r,fixup:Ra}},difference:{h:ih},average:{h:Jo}},qq=bve;function Lq({h:e,s:r,l:t,alpha:a}){e=fn(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 Cq({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 xve=(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}},_ve=xve,wve=new RegExp(`^hsla?\\(\\s*${gce}${w0}${th}${w0}${th}\\s*(?:,\\s*${Gx}\\s*)?\\)$`),Tve=e=>{let r=e.match(wve);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=_ve(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},Dq=Tve;function Ave(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 Eq=Ave,Mve={mode:"hsl",toMode:{rgb:Lq},fromMode:{rgb:Cq},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Eq,Dq],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:$o},s:_r,l:_r,alpha:{use:_r,fixup:Ra}},difference:{h:ih},average:{h:Jo}},Wx=Mve;function Xx({h:e,s:r,v:t,alpha:a}){e=fn(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 Zx({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 kve={mode:"hsv",toMode:{rgb:Xx},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:Zx},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:_r,fixup:$o},s:_r,v:_r,alpha:{use:_r,fixup:Ra}},difference:{h:ih},average:{h:Jo}},$x=kve;function Pq({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 Xx({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function Rq(e){let r=Zx(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 Sve(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 Fq=Sve,qve={mode:"hwb",toMode:{rgb:Pq},fromMode:{rgb:Rq},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Fq],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:$o},w:_r,b:_r,alpha:{use:_r,fixup:Ra}},difference:{h:yq},average:{h:Jo}},zq=qve,Nq=203,X1=.1593017578125,Iq=78.84375,Z1=.8359375,$1=18.8515625,J1=18.6875;function nx(e){if(e<0)return 0;let r=Math.pow(e,1/Iq);return 1e4*Math.pow(Math.max(0,r-Z1)/($1-J1*r),1/X1)}function ix(e){if(e<0)return 0;let r=Math.pow(e/1e4,X1);return Math.pow((Z1+$1*r)/(1+J1*r),Iq)}var ox=e=>Math.max(e/Nq,0),Lve=({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=nx(e+.008609037037932761*r+.11102962500302593*t),i=nx(e-.00860903703793275*r-.11102962500302599*t),o=nx(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:ox(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:ox(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:ox(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},Mx=Lve,lx=(e=0)=>Math.max(e*Nq,0),Cve=({x:e,y:r,z:t,alpha:a})=>{let n=lx(e),i=lx(r),o=lx(t),l=ix(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=ix(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=ix(.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},kx=Cve,Dve={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Mx,rgb:e=>hs(Mx(e))},fromMode:{xyz65:kx,rgb:e=>kx(vs(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:_r,t:_r,p:_r,alpha:{use:_r,fixup:Ra}}},Bq=Dve,Eve=134.03437499999998,Pve=16295499532821565e-27,sx=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,X1);return Math.pow((Z1+$1*r)/(1+J1*r),Eve)},ux=(e=0)=>Math.max(e*203,0),Rve=({x:e,y:r,z:t,alpha:a})=>{e=ux(e),r=ux(r),t=ux(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=sx(.41478972*n+.579999*i+.014648*t),l=sx(-.20151*n+1.120649*i+.0531008*t),s=sx(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-Pve,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},Jx=Rve,Fve=134.03437499999998,JS=16295499532821565e-27,fx=e=>{if(e<0)return 0;let r=Math.pow(e,1/Fve);return 1e4*Math.pow((Z1-r)/(J1*r-$1),1/X1)},cx=e=>e/203,zve=({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+JS)/(.44+.56*(e+JS)),i=fx(n+.13860504*r+.058047316*t),o=fx(n-.13860504*r-.058047316*t),l=fx(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:cx(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:cx(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:cx(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},Kx=zve,Nve=e=>{let r=Jx(vs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Qx=Nve,Ive=e=>hs(Kx(e)),e_=Ive,Bve={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Qx,xyz65:Jx},toMode:{rgb:e_,xyz65:Kx},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:_r,a:_r,b:_r,alpha:{use:_r,fixup:Ra}}},Oq=Bve,Ove=({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=fn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},Sx=Ove,Hve=({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},qx=Hve,Uve={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:qx,rgb:e=>e_(qx(e))},fromMode:{rgb:e=>Sx(Qx(e)),jab:Sx},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:_r,fixup:$o},c:_r,j:_r,alpha:{use:_r,fixup:Ra}},difference:{h:oh},average:{h:Jo}},Hq=Uve,K1=Math.pow(29,3)/Math.pow(3,3),r_=Math.pow(6,3)/Math.pow(29,3),vx=e=>Math.pow(e,3)>r_?Math.pow(e,3):(116*e-16)/K1,Gve=({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:vx(i)*Pa.X,y:vx(n)*Pa.Y,z:vx(o)*Pa.Z};return a!==void 0&&(l.alpha=a),l},Q1=Gve,Yve=({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=Eu({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},M0=Yve,Vve=e=>M0(Q1(e)),t_=Vve,jve=e=>{let{r,g:t,b:a,alpha:n}=Du(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},k0=jve,hx=e=>e>r_?Math.cbrt(e):(K1*e+16)/116,Wve=({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=hx(e/Pa.X),i=hx(r/Pa.Y),o=hx(t/Pa.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},ep=Wve,Xve=e=>{let r=ep(k0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},a_=Xve;function Zve(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 Uq=Zve,$ve={mode:"lab",toMode:{xyz50:Q1,rgb:t_},fromMode:{xyz50:ep,rgb:a_},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Uq],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:_r,a:_r,b:_r,alpha:{use:_r,fixup:Ra}}},rp=$ve,Jve=Ut(wt({},rp),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Vx,rgb:lh},fromMode:{xyz65:jx,rgb:sh},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Gq=Jve;function Kve(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 Yq=Kve,Qve={mode:"lch",toMode:{lab:Dl,rgb:e=>t_(Dl(e))},fromMode:{rgb:e=>Cl(a_(e)),lab:Cl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Yq],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:$o},c:_r,l:_r,alpha:{use:_r,fixup:Ra}},difference:{h:oh},average:{h:Jo}},tp=Qve,ehe=Ut(wt({},tp),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Dl(e,"lab65"),rgb:e=>lh(Dl(e,"lab65"))},fromMode:{rgb:e=>Cl(sh(e),"lch65"),lab65:e=>Cl(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Vq=ehe,rhe=({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=fn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},n_=rhe,the=({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},i_=the,jq=(e,r,t)=>4*e/(e+15*r+3*t),Wq=(e,r,t)=>9*r/(e+15*r+3*t),ahe=jq(Pa.X,Pa.Y,Pa.Z),nhe=Wq(Pa.X,Pa.Y,Pa.Z),ihe=e=>e<=r_?K1*e:116*Math.cbrt(e)-16,ohe=({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=ihe(r/Pa.Y),i=jq(e,r,t),o=Wq(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-ahe),o=13*n*(o-nhe));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},Y1=ohe,lhe=(e,r,t)=>4*e/(e+15*r+3*t),she=(e,r,t)=>9*r/(e+15*r+3*t),uhe=lhe(Pa.X,Pa.Y,Pa.Z),fhe=she(Pa.X,Pa.Y,Pa.Z),che=({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)+uhe,i=t/(13*e)+fhe,o=Pa.Y*(e<=8?e/K1: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},V1=che,vhe=e=>n_(Y1(k0(e))),hhe=e=>M0(V1(i_(e))),dhe={mode:"lchuv",toMode:{luv:i_,rgb:hhe},fromMode:{rgb:vhe,luv:n_},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:_r,fixup:$o},c:_r,l:_r,alpha:{use:_r,fixup:Ra}},difference:{h:oh},average:{h:Jo}},Xq=dhe,phe=Ut(wt({},Cu),{mode:"lrgb",toMode:{rgb:Eu},fromMode:{rgb:Du},parse:["srgb-linear"],serialize:"srgb-linear"}),Zq=phe,mhe={mode:"luv",toMode:{xyz50:V1,rgb:e=>M0(V1(e))},fromMode:{xyz50:Y1,rgb:e=>Y1(k0(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:_r,u:_r,v:_r,alpha:{use:_r,fixup:Ra}}},$q=mhe,yhe=({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},o_=yhe,ghe=e=>{let r=o_(Du(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},uh=ghe,bhe=({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},S0=bhe,xhe=e=>Eu(S0(e)),fh=xhe;function Lx(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function j1(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function _he(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,y=1+f*v,m=1+f*d,b=p*p*p,T=y*y*y,w=m*m*m,x=3*c*p*p,_=3*v*y*y,k=3*d*m*m,A=6*c*c*p,q=6*v*v*y,C=6*d*d*m,E=l*b+s*T+u*w,P=l*x+s*_+u*k,R=l*A+s*q+u*C;f=f-E*P/(P*P-.5*E*R)}return f}function l_(e,r){let t=_he(e,r),a=S0({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 whe(e,r,t,a,n,i=null){i||(i=l_(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 y=n*(1-o)+o*t,m=o*a,b=y+m*u,T=y+m*f,w=y+m*c,x=b*b*b,_=T*T*T,k=w*w*w,A=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,N=4.0767416621*x-3.3077115913*_+.2309699292*k-1,I=4.0767416621*A-3.3077115913*q+.2309699292*C,O=4.0767416621*E-3.3077115913*P+.2309699292*R,U=I/(I*I-.5*N*O),Y=-N*U,G=-1.2684380046*x+2.6097574011*_-.3413193965*k-1,V=-1.2684380046*A+2.6097574011*q-.3413193965*C,W=-1.2684380046*E+2.6097574011*P-.3413193965*R,j=V/(V*V-.5*G*W),J=-G*j,te=-.0041960863*x-.7034186147*_+1.707614701*k-1,ae=-.0041960863*A-.7034186147*q+1.707614701*C,se=-.0041960863*E-.7034186147*P+1.707614701*R,$=ae/(ae*ae-.5*te*se),fe=-te*$;Y=U>=0?Y:1e6,J=j>=0?J:1e6,fe=$>=0?fe:1e6,o+=Math.min(Y,Math.min(J,fe))}}}return o}function s_(e,r,t=null){t||(t=l_(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function Jq(e,r,t){let a=l_(r,t),n=whe(r,t,e,1,e,a),i=s_(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 Cx(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:Lx(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]=Jq(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=fn(Math.atan2(a,t)*180/Math.PI)),n}function Dx(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:j1(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]=Jq(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 The=Ut(wt({},Wx),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Cx,rgb:e=>Cx(uh(e))},toMode:{oklab:Dx,rgb:e=>fh(Dx(e))}}),Kq=The;function Ex(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]=s_(i,o),u=.5,f=1-u/l,c=s/(n+r*s),v=c*r,d=c*n,p=j1(v),y=d*p/v,m=S0({l:p,a:i*y,b:o*y}),b=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));r=r/b,n=n/b*Lx(r)/r,r=Lx(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=fn(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(T.alpha=e.alpha),T}function Px(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]=s_(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=j1(c),p=v*d/c,y=S0({l:d,a:i*p,b:o*p}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0)),b=j1(n*c),T=v*b/c;return r.l=b*m,r.a=T*i*m,r.b=T*o*m,r}var Ahe=Ut(wt({},$x),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Ex,rgb:e=>Ex(uh(e))},toMode:{oklab:Px,rgb:e=>fh(Px(e))}}),Qq=Ahe;function Mhe(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 eL=Mhe,khe=Ut(wt({},rp),{mode:"oklab",toMode:{lrgb:S0,rgb:fh},fromMode:{lrgb:o_,rgb:uh},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[eL],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}`:""})`}),rL=khe;function She(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 tL=She,qhe=Ut(wt({},tp),{mode:"oklch",toMode:{oklab:e=>Dl(e,"oklab"),rgb:e=>fh(Dl(e,"oklab"))},fromMode:{rgb:e=>Cl(uh(e),"oklch"),oklab:e=>Cl(e,"oklch")},parse:[tL],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]}}),aL=qhe,Lhe=e=>{let{r,g:t,b:a,alpha:n}=Du(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},Rx=Lhe,Che=({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=Eu({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},Fx=Che,Dhe=Ut(wt({},Cu),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>Fx(vs(e)),xyz65:Fx},toMode:{rgb:e=>hs(Rx(e)),xyz65:Rx}}),nL=Dhe,dx=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},Ehe=({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:dx(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:dx(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:dx(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},zx=Ehe,px=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},Phe=e=>{let r=px(e.r),t=px(e.g),a=px(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},Nx=Phe,Rhe=Ut(wt({},Cu),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:zx,rgb:e=>zx(k0(e))},toMode:{xyz50:Nx,rgb:e=>M0(Nx(e))}}),iL=Rhe,KS=1.09929682680944,Fhe=.018053968510807,mx=e=>{let r=Math.abs(e);return r>Fhe?(Math.sign(e)||1)*(KS*Math.pow(r,.45)-(KS-1)):4.5*e},zhe=({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:mx(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:mx(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:mx(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},Ix=zhe,QS=1.09929682680944,Nhe=.018053968510807,yx=(e=0)=>{let r=Math.abs(e);return r<Nhe*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+QS-1)/QS,1/.45)},Ihe=e=>{let r=yx(e.r),t=yx(e.g),a=yx(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},Bx=Ihe,Bhe=Ut(wt({},Cu),{mode:"rec2020",fromMode:{xyz65:Ix,rgb:e=>Ix(vs(e))},toMode:{xyz65:Bx,rgb:e=>hs(Bx(e))},parse:["rec2020"],serialize:"rec2020"}),oL=Bhe,qu=.0037930732552754493,lL=Math.cbrt(qu),gx=e=>Math.cbrt(e)-lL,Ohe=e=>{let{r,g:t,b:a,alpha:n}=Du(e),i=gx(.3*r+.622*t+.078*a+qu),o=gx(.23*r+.692*t+.078*a+qu),l=gx(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+qu),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},sL=Ohe,bx=e=>Math.pow(e+lL,3),Hhe=({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=bx(e+r)-qu,i=bx(r-e)-qu,o=bx(t+r)-qu,l=Eu({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},uL=Hhe,Uhe={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:uL},fromMode:{rgb:sL},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:_r,y:_r,b:_r,alpha:{use:_r,fixup:Ra}}},fL=Uhe,Ghe={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:M0,lab:ep},fromMode:{rgb:k0,lab:Q1},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:_r,y:_r,z:_r,alpha:{use:_r,fixup:Ra}}},cL=Ghe,Yhe=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},vL=Yhe,Vhe=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},hL=Vhe,jhe={mode:"xyz65",toMode:{rgb:hs,xyz50:vL},fromMode:{rgb:vs,xyz50:hL},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:_r,y:_r,z:_r,alpha:{use:_r,fixup:Ra}}},dL=jhe,Whe=({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},pL=Whe,Xhe=({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},mL=Xhe,Zhe={mode:"yiq",toMode:{rgb:mL},fromMode:{rgb:pL},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:_r,i:_r,q:_r,alpha:{use:_r,fixup:Ra}}},yL=Zhe,$he=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,Jhe=(e=4)=>r=>typeof r=="number"?$he(r,e):r,gL=Jhe,rh=gL(2),ah=e=>Math.max(0,Math.min(1,e||0)),Lu=e=>Math.round(ah(e)*255),u_=zt("rgb"),Khe=zt("hsl"),f_=e=>{if(e===void 0)return;let r=Lu(e.r),t=Lu(e.g),a=Lu(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},bL=e=>{if(e===void 0)return;let r=Lu(e.alpha!==void 0?e.alpha:1);return f_(e)+(256|r).toString(16).slice(1)},xL=e=>{if(e===void 0)return;let r=Lu(e.r),t=Lu(e.g),a=Lu(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${rh(ah(e.alpha))})`},_L=e=>{if(e===void 0)return;let r=rh(e.h||0),t=rh(ah(e.s)*100)+"%",a=rh(ah(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${rh(ah(e.alpha))})`},Qhe=e=>{let r=xo(e);if(!r)return;let t=_n(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)},ede=e=>f_(u_(e)),rde=e=>bL(u_(e)),tde=e=>xL(u_(e)),ade=e=>_L(Khe(e)),nde={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},ide=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:nde[r],n=zt(t),i=_n(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})})},ode=ide,lde=([e,r])=>e+Math.random()*(r-e),sde=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),ude=(e="rgb",r={})=>{let t=_n(e),a=sde(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=lde(a[i]||t.ranges[i])),n),{mode:e})},fde=ude,ch=(e,r="rgb",t=!1)=>{let a=r?_n(r).channels:null,n=r?zt(r):xo;return i=>{let o=n(i);if(!o)return;let l=(a||_n(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=xo(i);return s&&s.mode!==l.mode?zt(s.mode)(l):l}},wL=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,TL=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,c_=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,cde=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,vde=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},hde=vde,dde=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),AL=dde,z1=e=>typeof e=="function",ku=e=>e&&typeof e=="object",eq=e=>typeof e=="number",ML=(e,r="rgb",t,a)=>{let n=_n(r),i=zt(r),o=[],l=[],s={};e.forEach(v=>{Array.isArray(v)?(o.push(i(v[0])),l.push(v[1])):eq(v)||z1(v)?s[l.length]=v:(o.push(i(v)),l.push(void 0))}),hde(l);let u=n.channels.reduce((v,d)=>{let p;return ku(t)&&ku(t[d])&&t[d].fixup?p=t[d].fixup:ku(n.interpolate[d])&&n.interpolate[d].fixup?p=n.interpolate[d].fixup:p=y=>y,v[d]=p(o.map(y=>y[d])),v},{});if(a){let v=o.map((d,p)=>n.channels.reduce((y,m)=>(y[m]=u[m][p],y),{mode:r}));u=n.channels.reduce((d,p)=>(d[p]=v.map(y=>{let m=a(y[p],p,y,r);return isNaN(m)?void 0:m}),d),{})}let f=n.channels.reduce((v,d)=>{let p;return z1(t)?p=t:ku(t)&&z1(t[d])?p=t[d]:ku(t)&&ku(t[d])&&t[d].use?p=t[d].use:z1(n.interpolate[d])?p=n.interpolate[d]:ku(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],y=l[d]-p,m=(v-p)/y,b=s[d]||s[0];b!==void 0&&(eq(b)&&(b=AL((b-p)/y)),m=b(m));let T=(d-1+m)/c;return n.channels.reduce((w,x)=>{let _=f[x](T);return _!==void 0&&(w[x]=_),w},{mode:r})}},pde=(e,r="rgb",t)=>ML(e,r,t),kL=(e,r)=>(t,a="rgb",n)=>{let i=r?ch(r,a):void 0,o=ML(t,a,n,e);return i?l=>i(o(l)):o},mde=kL(wL,TL),N1=(e,r)=>(e+r)%r,SL=(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},qL=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return SL(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)},LL=e=>r=>{let t=e.length-1,a=Math.floor(r*t);return SL(e[N1(a-1,e.length)],e[N1(a,e.length)],e[N1(a+1,e.length)],e[N1(a+2,e.length)],(r-a/t)*t)},CL=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},yde=e=>qL(CL(e)),gde=e=>LL(CL(e)),x0=Math.sign,Ox=Math.min,si=Math.abs,v_=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?(x0(t[i-1])+x0(t[i]))*Ox(si(t[i-1]),si(t[i]),.5*si(a[i])):void 0);return[t,a,n]},h_=(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]}},bde=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,,a]=v_(e);return a[0]=t[0],a[r]=t[r-1],h_(e,a,t)},xde=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,a,n]=v_(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:si(a[0])>2*si(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:si(a[r])>2*si(t[r-1])?2*t[r-1]:a[r],h_(e,n,t)},_de=e=>{let r=e.length-1,[t,a,n]=v_(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]=(x0(i)+x0(t[0]))*Ox(si(i),si(t[0]),.5*si(a[0])),n[r]=(x0(t[r-1])+x0(o))*Ox(si(t[r-1]),si(o),.5*si(a[r])),h_(e,n,t)},wde=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),DL=wde,Tde=(e=2,r=1)=>{let t=DL(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},Ade=Tde,EL=zt("rgb"),PL=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},RL=e=>PL(EL(e)),FL=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 d_(e){return FL(EL(e))}function ap(e="rgb"){let{gamut:r}=_n(e);if(!r)return a=>!0;let t=zt(typeof r=="string"?r:e);return a=>FL(t(a))}function Mde(e){return e=xo(e),e===void 0||d_(e)?e:zt(e.mode)(RL(e))}function p_(e="rgb"){let{gamut:r}=_n(e);if(!r)return i=>xo(i);let t=typeof r=="string"?r:e,a=zt(t),n=ap(t);return i=>{let o=xo(i);if(!o)return;let l=a(o);if(n(l))return o;let s=PL(l);return o.mode===s.mode?s:zt(o.mode)(s)}}function kde(e,r="lch",t="rgb"){e=xo(e);let a=t==="rgb"?d_:ap(t),n=t==="rgb"?RL:p_(t);if(e===void 0||a(e))return e;let i=zt(e.mode);e=zt(r)(e);let o=Ut(wt({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=_n(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:Ut(wt({},o),{c}))}function Sde(e="rgb",r="oklch",t=A0("oklch"),a=.02){let n=zt(e),i=_n(e);if(!i.gamut)return f=>n(f);let o=ap(e),l=p_(e),s=zt(r),{ranges:u}=_n(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=xo(f),f===void 0)return;let c=wt({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let m=Ut(wt({},i.white),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(c.l<=u.l[0]){let m=Ut(wt({},i.black),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(o(c))return n(c);let v=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,y=l(c);for(;d-v>p;)c.c=(v+d)*.5,y=l(c),o(c)||t&&a>0&&t(c,y)<=a?v=c.c:d=c.c;return n(o(c)?c:y)}}var qde=(e,r=A0(),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]))},Lde=qde,m_=e=>Math.max(e,0),y_=e=>Math.max(Math.min(e,1),0),Cde=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),Dde=e=>{let r=1-y_(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]},Ede=e=>{let r=m_(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]},Pde=e=>{let r=1-y_(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]},Rde=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]},np=(e,r,t=!1)=>{let a=zt(r),n=_n(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=xo(i);return f&&l.mode!==f.mode?zt(f.mode)(l):l}},Fde=(e=1,r="rgb")=>{let t=m_(e);return ch(c_(t),r,!0)},zde=(e=1,r="rgb")=>{let t=m_(e);return ch(c_(t,(1-t)/2),r,!0)},Nde=(e=1,r="rgb")=>np(Dde(e),r,!0),Ide=(e=1,r="rgb")=>np(Ede(e),r,!0),Bde=(e=1,r="rgb")=>np(Pde(e),r,!0),Ode=(e=1,r="rgb")=>{let t=y_(e);return ch((a,n)=>n==="alpha"?a:Cde(t,1-t,a),r,!0)},Hde=(e=0,r="rgb")=>np(Rde(e),r,!0),Ude=zt("rgb"),Gde=[[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]],Yde=[[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]],Vde=[[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]],g_=(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)=>Su(i[s],o[s],n))}return o=>{let l=xo(o);if(l===void 0)return;let{r:s,g:u,b:f}=Ude(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),zt(l.mode)(c)}},jde=(e=1)=>g_(Gde,e),Wde=(e=1)=>g_(Yde,e),Xde=(e=1)=>g_(Vde,e),Zde=e=>e*e*(3-2*e),$de=e=>.5-Math.sin(Math.asin(1-2*e)/3),Jde=e=>e*e*e*(e*(e*6-15)+10),Kde=Jde,Qde=e=>(1-Math.cos(e*Math.PI))/2,e2e=Qde;function Hx(e){let r=zt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function r2e(e,r){let t=Hx(e),a=Hx(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var t2e=kt(dq),a2e=kt(bq),n2e=kt(Aq),i2e=kt(Mq),o2e=kt(qq),l2e=kt(Wx),s2e=kt($x),u2e=kt(zq),f2e=kt(Bq),c2e=kt(Oq),v2e=kt(Hq),h2e=kt(rp),d2e=kt(Gq),p2e=kt(tp),m2e=kt(Vq),y2e=kt(Xq),g2e=kt(Zq),b2e=kt($q),x2e=kt(Kq),_2e=kt(Qq),w2e=kt(rL),T2e=kt(aL),A2e=kt(nL),M2e=kt(iL),k2e=kt(oL),S2e=kt(Cu),q2e=kt(fL),L2e=kt(cL),C2e=kt(dL),D2e=kt(yL)});var ds=z((aUe,HL)=>{"use strict";var IL={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},BL={};function OL(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),OL(a,r[t]))}}OL(IL,BL);HL.exports={configAttributes:IL,dfltConfig:BL}});var x_=z((nUe,UL)=>{"use strict";var b_=Er(),E2e=Ir(),vh=[];UL.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||vh.indexOf(e)!==-1)return;vh.push(e);var a=1e3;E2e(r)?a=r:r==="long"&&(a=3e3);var n=b_.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(vh);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=vh.indexOf(u);f!==-1&&vh.splice(f,1),b_.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=b_.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 ps=z((iUe,GL)=>{"use strict";var q0=ds().dfltConfig,__=x_(),w_=GL.exports={};w_.log=function(){var e;if(q0.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(q0.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);__(t.join("<br>"),"long")}};w_.warn=function(){var e;if(q0.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(q0.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);__(t.join("<br>"),"stick")}};w_.error=function(){var e;if(q0.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(q0.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);__(t.join("<br>"),"stick")}}});var Ei=z(Pu=>{"use strict";Pu.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Pu.defaultLine="#444";Pu.lightLine="#eee";Pu.background="#fff";Pu.borderLine="#BEC8D9";Pu.lightFraction=1e3/11});var Sr=z((lUe,KL)=>{"use strict";var{converter:YL,formatHex:P2e,formatRgb:R2e,wcagContrast:F2e,wcagLuminance:z2e}=NL(),{isArrayOrTypedArray:VL}=Vn(),{warn:N2e}=ps(),{background:dh,defaultLine:M_,defaults:I2e,lightLine:B2e}=Ei(),jL=YL("rgb"),O2e=YL("hsl"),WL=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return jL(r)}catch(t){return}},wn=e=>e>0?e>1?1:e:0,H2e={mode:"rgb",r:0,g:0,b:0,alpha:1},T_=e=>Math.round(e*255e6)/255e6,XL=e=>Ut(wt({},e),{r:T_(e.r),g:T_(e.g),b:T_(e.b)}),ui=e=>R2e(XL(e)),U2e=e=>P2e(XL(e)),G2e=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:VL(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}`},Zt=(e,r)=>{var a;let t=WL(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&N2e(`Invalid color specifier: ${G2e(e)}. Defaulting to "#000"`),H2e)},hh=e=>ui(Ut(wt({},Zt(e)),{alpha:1})),Y2e=e=>e?Zt(e).alpha:0,ZL=e=>VL(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),V2e=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}},j2e=(e,r)=>{let t=ZL(e)?V2e(e):Zt(e,!0),a=[wn(t.r),wn(t.g),wn(t.b),wn(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},W2e=(e,r)=>ui(Ut(wt({},Zt(e)),{alpha:wn(r)})),$L=(e,r)=>{let t=Zt(e),a=t.alpha;if(a===1)return ui(t);let n=Zt(r||dh),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return ui({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},X2e=(e,r,t)=>{let a=Zt(e),n=Zt(r),i=(o,l)=>t*o+(1-t)*l;return ui({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},A_=(e,r)=>{let t=Zt(e),a=O2e(t)||{mode:"hsl",h:0,s:0,l:0};return ui(jL(Ut(wt({},a),{l:wn((a.l*100+r)/100),alpha:t.alpha})))},ip=(e,r)=>F2e(Zt(e),Zt(r)),JL=e=>ip(e,dh)>ip(e,M_),Z2e=ui(Zt(dh)),$2e=ui(Zt(M_)),J2e=(e,r,t)=>(Zt(e).alpha!==1&&(e=$L(e,dh)),JL(e)?r?A_(e,r):Z2e:t?A_(e,-t):$2e),K2e=(e,r)=>{e.style({stroke:hh(r),"stroke-opacity":Zt(r).alpha})},Q2e=(e,r)=>{e.style({fill:hh(r),"fill-opacity":Zt(r).alpha})},e1e=(e,r)=>!!(e&&r&&hh(e)===hh(r)),r1e=e=>WL(e)!==void 0,t1e=(e,r)=>{r=r===0?0:r||10;let t=Zt(e),a=r/100;return ui(Ut(wt({},t),{r:wn(t.r+a),g:wn(t.g+a),b:wn(t.b+a)}))},a1e=(e,r,t)=>{let a=Zt(e),n=Zt(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 ui({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})},n1e=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=ip(e,n);i>a&&(a=i,t=ui(Zt(n)))}return t},i1e=e=>ui(Zt(e)),o1e=e=>U2e(Zt(e)).toUpperCase(),l1e=e=>{let r=Zt(e);return[wn(r.r)*255,wn(r.g)*255,wn(r.b)*255,wn(r.alpha)]},s1e=([e,r,t,a])=>ui({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),u1e=e=>{let r=Zt(e);return z2e({mode:"rgb",r:wn(r.r),g:wn(r.g),b:wn(r.b)})};KL.exports={addOpacity:W2e,adjustLightness:A_,background:dh,brighten:t1e,combine:$L,contrast:J2e,defaultLine:M_,defaults:I2e,equals:e1e,fill:Q2e,hexString:o1e,interpolate:X2e,isChannelArray:ZL,isDark:JL,isValid:r1e,lightLine:B2e,luminosity:u1e,mix:a1e,mostReadable:n1e,normalize:j2e,opacity:Y2e,parse:Zt,rgb:hh,rgbaArray:l1e,rgbaArrayToString:s1e,rgbaString:i1e,stroke:K2e,wcagContrast:ip}});var Ru=z((uUe,rC)=>{"use strict";var f1e=Sr(),op={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)"]]},QL=op.RdBu;function c1e(e,r){if(r||(r=QL),!e)return r;function t(){try{e=op[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),eC(e)?e:r}function eC(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||!f1e.isValid(a[1]))return!1;r=+a[0]}return!0}function v1e(e){return op[e]!==void 0?!0:eC(e)}rC.exports={scales:op,defaultScale:QL,get:c1e,isValid:v1e}});var lp=z((fUe,tC)=>{"use strict";tC.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var L0={};d0(L0,{counter:()=>h1e});function h1e(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+k_+"y"+k_+n):new RegExp(i+e+k_+n)}var k_,C0=h0(()=>{"use strict";k_="([2-9]|[1-9][0-9]+)?"});var iC=z(Wn=>{"use strict";var S_=Ir(),aC=At().extendFlat,d1e=zn(),p1e=Ru(),q_=Sr(),m1e=lp().DESELECTDIM,D0=C1(),nC=(C0(),un(L0)).counter,y1e=(g0(),un(y0)).modHalf,_o=Vn().isArrayOrTypedArray,ms=Vn().isTypedArraySpec,ys=Vn().decodeTypedArraySpec;Wn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(_o(e)?e:ms(e)?ys(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){ms(e)&&(e=ys(e)),!S_(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}ms(e)&&(e=ys(e)),e%1||!S_(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){ms(e)&&(e=ys(e)),q_.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=>q_.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(p1e.get(e,t))}},angle:{coerceFunction:function(e,r,t){ms(e)&&(e=ys(e)),e==="auto"?r.set("auto"):S_(e)?r.set(y1e(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||nC(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&_o(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:!!nC(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(ms(e)?ys(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(T,w,x){var _,k={set:function(A){_=A}};return x===void 0&&(x=w.dflt),Wn.valObjectMeta[w.valType].coerceFunction(T,k,x,w),_}if(ms(e)&&(e=ys(e)),!_o(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&_o(e[0]),o=a.items,l=[],s=Array.isArray(o),u=s&&i&&_o(o[0]),f=i&&s&&!u,c=s&&!f?o.length:e.length,v,d,p,y,m,b;if(t=Array.isArray(t)?t:[],i)for(v=0;v<c;v++)for(l[v]=[],p=_o(e[v])?e[v]:[],f?m=o.length:s?m=o[v].length:m=p.length,d=0;d<m;d++)f?y=o[d]:s?y=o[v][d]:y=o,b=n(p[d],y,(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(!_o(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(!_o(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!sp(e[i][o],a?t[i][o]:t))return!1}else if(!sp(e[i],a?t[i]:t))return!1;return!0}}};Wn.coerce=function(e,r,t,a,n){var i=D0(t,a).get(),o=D0(e,a),l=D0(r,a),s=o.get(),u=r._template;if(s===void 0&&u&&(s=D0(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(_o(s))return l.set(s),s;if(ms(s))return s=ys(s),l.set(s),s}var f=Wn.valObjectMeta[i.valType].coerceFunction;f(s,l,n,i);var c=l.get();return u&&c===n&&!sp(s,i)&&(s=D0(u,a).get(),f(s,l,n,i),c=l.get()),c};Wn.coerce2=function(e,r,t,a,n){var i=D0(e,a),o=Wn.coerce(e,r,t,a,n),l=i.get();return l!=null?o:!1};Wn.coerceFont=function(e,r,t,a){a||(a={}),t=aC({},t),t=aC(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};Wn.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?q_.contrast(s):t)}e(r+".fgopacity",l?.5:1)}};Wn.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:d1e,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 Wn.coerce(e,r,n,"hoverinfo",o)};Wn.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!_o(t)&&!e.selected&&!e.unselected&&(a=t,n=m1e*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function sp(e,r){var t=Wn.valObjectMeta[r.valType];if(r.arrayOk&&_o(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}Wn.validate=sp});var up=z((vUe,oC)=>{"use strict";oC.exports=function(){}});var L_=z((hUe,lC)=>{"use strict";lC.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 uC=z((dUe,sC)=>{sC.exports=g1e;function g1e(){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 cC=z((pUe,fC)=>{fC.exports=b1e;function b1e(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 hC=z((mUe,vC)=>{vC.exports=x1e;function x1e(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 C_=z((yUe,dC)=>{dC.exports=_1e;function _1e(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 mC=z((gUe,pC)=>{pC.exports=w1e;function w1e(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 gC=z((bUe,yC)=>{yC.exports=T1e;function T1e(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],y=r[13],m=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,A=n*u-i*s,q=f*y-c*p,C=f*m-v*p,E=f*b-d*p,P=c*m-v*y,R=c*b-d*y,N=v*b-d*m,I=T*N-w*R+x*P+_*E-k*C+A*q;return I?(I=1/I,e[0]=(l*N-s*R+u*P)*I,e[1]=(n*R-a*N-i*P)*I,e[2]=(y*A-m*k+b*_)*I,e[3]=(v*k-c*A-d*_)*I,e[4]=(s*E-o*N-u*C)*I,e[5]=(t*N-n*E+i*C)*I,e[6]=(m*x-p*A-b*w)*I,e[7]=(f*A-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-y*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]=(y*w-p*_-m*T)*I,e[15]=(f*_-c*w+v*T)*I,e):null}});var xC=z((xUe,bC)=>{bC.exports=A1e;function A1e(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],y=r[13],m=r[14],b=r[15];return e[0]=l*(v*b-d*m)-c*(s*b-u*m)+y*(s*d-u*v),e[1]=-(a*(v*b-d*m)-c*(n*b-i*m)+y*(n*d-i*v)),e[2]=a*(s*b-u*m)-l*(n*b-i*m)+y*(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*m)-f*(s*b-u*m)+p*(s*d-u*v)),e[5]=t*(v*b-d*m)-f*(n*b-i*m)+p*(n*d-i*v),e[6]=-(t*(s*b-u*m)-o*(n*b-i*m)+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*y)-f*(l*b-u*y)+p*(l*d-u*c),e[9]=-(t*(c*b-d*y)-f*(a*b-i*y)+p*(a*d-i*c)),e[10]=t*(l*b-u*y)-o*(a*b-i*y)+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*m-v*y)-f*(l*m-s*y)+p*(l*v-s*c)),e[13]=t*(c*m-v*y)-f*(a*m-n*y)+p*(a*v-n*c),e[14]=-(t*(l*m-s*y)-o*(a*m-n*y)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var wC=z((_Ue,_C)=>{_C.exports=M1e;function M1e(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],y=e[14],m=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,A=u*p-f*d,q=u*y-c*d,C=u*m-v*d,E=f*y-c*p,P=f*m-v*p,R=c*m-v*y;return b*R-T*P+w*E+x*C-_*q+k*A}});var AC=z((wUe,TC)=>{TC.exports=k1e;function k1e(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],y=r[12],m=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*y,e[1]=w*n+x*s+_*v+k*m,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*y,e[5]=w*n+x*s+_*v+k*m,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*y,e[9]=w*n+x*s+_*v+k*m,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*y,e[13]=w*n+x*s+_*v+k*m,e[14]=w*i+x*u+_*d+k*b,e[15]=w*o+x*f+_*p+k*T,e}});var kC=z((TUe,MC)=>{MC.exports=S1e;function S1e(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,y,m,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],y=r[9],m=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]=y,e[10]=m,e[11]=b,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+y*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var qC=z((AUe,SC)=>{SC.exports=q1e;function q1e(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 CC=z((MUe,LC)=>{LC.exports=L1e;function L1e(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,y,m,b,T,w,x,_,k,A,q,C,E,P,R,N,I,O;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],y=r[4],m=r[5],b=r[6],T=r[7],w=r[8],x=r[9],_=r[10],k=r[11],A=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,N=n*o*f+i*s,I=i*o*f-n*s,O=o*o*f+u,e[0]=c*A+y*q+w*C,e[1]=v*A+m*q+x*C,e[2]=d*A+b*q+_*C,e[3]=p*A+T*q+k*C,e[4]=c*E+y*P+w*R,e[5]=v*E+m*P+x*R,e[6]=d*E+b*P+_*R,e[7]=p*E+T*P+k*R,e[8]=c*N+y*I+w*O,e[9]=v*N+m*I+x*O,e[10]=d*N+b*I+_*O,e[11]=p*N+T*I+k*O,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var EC=z((kUe,DC)=>{DC.exports=C1e;function C1e(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 RC=z((SUe,PC)=>{PC.exports=D1e;function D1e(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 zC=z((qUe,FC)=>{FC.exports=E1e;function E1e(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 IC=z((LUe,NC)=>{NC.exports=P1e;function P1e(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 OC=z((CUe,BC)=>{BC.exports=R1e;function R1e(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,y=i*u,m=o*l,b=o*s,T=o*u;return e[0]=1-(d+y),e[1]=c+T,e[2]=v-b,e[3]=0,e[4]=c-T,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,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 UC=z((DUe,HC)=>{HC.exports=F1e;function F1e(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 YC=z((EUe,GC)=>{GC.exports=z1e;function z1e(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 jC=z((PUe,VC)=>{VC.exports=N1e;function N1e(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 XC=z((RUe,WC)=>{WC.exports=I1e;function I1e(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 $C=z((FUe,ZC)=>{ZC.exports=B1e;function B1e(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 KC=z((zUe,JC)=>{JC.exports=O1e;function O1e(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,y=i*o,m=i*l,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=v-m,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+y,e[7]=0,e[8]=v+m,e[9]=d-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var eD=z((NUe,QC)=>{QC.exports=H1e;function H1e(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 tD=z((IUe,rD)=>{rD.exports=U1e;function U1e(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 nD=z((BUe,aD)=>{aD.exports=G1e;function G1e(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 oD=z((OUe,iD)=>{iD.exports=Y1e;function Y1e(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 sD=z((HUe,lD)=>{var V1e=C_();lD.exports=j1e;function j1e(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],y=r[1],m=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(y-_)<1e-6&&Math.abs(m-k)<1e-6?V1e(e):(f=p-x,c=y-_,v=m-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*y+o*m),e[13]=-(l*p+s*y+u*m),e[14]=-(f*p+c*y+v*m),e[15]=1,e)}});var fD=z((UUe,uD)=>{uD.exports=W1e;function W1e(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 D_=z((GUe,cD)=>{cD.exports={create:uC(),clone:cC(),copy:hC(),identity:C_(),transpose:mC(),invert:gC(),adjoint:xC(),determinant:wC(),multiply:AC(),translate:kC(),scale:qC(),rotate:CC(),rotateX:EC(),rotateY:RC(),rotateZ:zC(),fromRotation:IC(),fromRotationTranslation:OC(),fromScaling:UC(),fromTranslation:YC(),fromXRotation:jC(),fromYRotation:XC(),fromZRotation:$C(),fromQuat:KC(),frustum:eD(),perspective:tD(),perspectiveFromFieldOfView:nD(),ortho:oD(),lookAt:sD(),str:fD()}});var fp=z(ua=>{"use strict";var X1e=D_();ua.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};ua.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};ua.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]=ua.dot(e[n],r);else if(r[0].length){var i=ua.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=ua.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};ua.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};ua.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]]};ua.rotationXYMatrix=function(e,r,t){return ua.dot(ua.dot(ua.translationMatrix(r,t),ua.rotationMatrix(e)),ua.translationMatrix(-r,-t))};ua.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return ua.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};ua.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 ua.dot(e,[t[0],t[1],1]).slice(0,2)}};ua.apply2DTransform2=function(e){var r=ua.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};ua.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]};ua.inverseTransformMatrix=function(e){var r=[];return X1e.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 ph=z((VUe,yD)=>{"use strict";var Z1e=Er(),vD=ps(),$1e=fp(),J1e=D_();function K1e(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 Q1e(e){var r=Z1e.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function hD(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function epe(e,r){dD("global",e,r)}function dD(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):vD.warn("addStyleRule failed"):vD.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function rpe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&hD(t)}function tpe(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.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function ape(e){var r=mD(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=pD(a);if(n){var i=$1e.convertCssMatrix(n);t=J1e.multiply(t,t,i)}}),t}function pD(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 mD(e){for(var r=[];npe(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function npe(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function ipe(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}yD.exports={getGraphDiv:K1e,isPlotDiv:Q1e,removeElement:hD,addStyleRule:epe,addRelatedStyleRule:dD,deleteRelatedStyleRule:rpe,setStyleOnHover:tpe,getFullTransformMatrix:ape,getElementTransformMatrix:pD,getElementAndAncestors:mD,equalDomRects:ipe}});var mh=z((jUe,gD)=>{"use strict";gD.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 wo=z((WUe,MD)=>{"use strict";var xD=At().extendFlat,ope=Au(),_D={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},wD={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},lpe=_D.flags.slice().concat(["fullReplot"]),spe=wD.flags.slice().concat("layoutReplot");MD.exports={traces:_D,layout:wD,traceFlags:function(){return bD(lpe)},layoutFlags:function(){return bD(spe)},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:TD};function bD(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function TD(e,r,t){var a=xD({},e);for(var n in a){var i=a[n];ope(i)&&(a[n]=AD(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function AD(e,r,t,a){if(e.valType){var n=xD({},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]=AD(e.items[i],r,"from-root")}return n}else return TD(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var Pi=z(E_=>{"use strict";E_.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};E_.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 P_=z((ZUe,kD)=>{"use strict";kD.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var fi=z(E0=>{"use strict";var{DATE_FORMAT_LINK:upe,FORMAT_LINK:fpe}=P_(),cpe=["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 vpe({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}".`,fpe,"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}".`,upe,"for details on the date formatting syntax.",cpe].join(" ")}E0.templateFormatStringDescription=vpe;E0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>wt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});E0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>wt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});E0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});E0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var hp=z((KUe,ED)=>{"use strict";function gs(e,r){return r?r.d2l(e):e}function SD(e,r){return r?r.l2d(e):e}function hpe(e){return e.x0}function dpe(e){return e.x1}function ppe(e){return e.y0}function mpe(e){return e.y1}function qD(e){return e.x0shift||0}function LD(e){return e.x1shift||0}function CD(e){return e.y0shift||0}function DD(e){return e.y1shift||0}function cp(e,r){return gs(e.x1,r)+LD(e)-gs(e.x0,r)-qD(e)}function vp(e,r,t){return gs(e.y1,t)+DD(e)-gs(e.y0,t)-CD(e)}function ype(e,r){return Math.abs(cp(e,r))}function gpe(e,r,t){return Math.abs(vp(e,r,t))}function bpe(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(cp(e,r),2)+Math.pow(vp(e,r,t),2))}function xpe(e,r){return SD((gs(e.x1,r)+LD(e)+gs(e.x0,r)+qD(e))/2,r)}function _pe(e,r,t){return SD((gs(e.y1,t)+DD(e)+gs(e.y0,t)+CD(e))/2,t)}function wpe(e,r,t){return e.type!=="line"?void 0:vp(e,r,t)/cp(e,r)}var Tpe=["x0","x1","y0","y1","dy","height","ycenter"],Ape=["x0","x1","y0","y1","dx","width","xcenter"];ED.exports={x0:hpe,x1:dpe,y0:ppe,y1:mpe,slope:wpe,dx:cp,dy:vp,width:ype,height:gpe,length:bpe,xcenter:xpe,ycenter:_pe,simpleXVariables:Tpe,simpleYVariables:Ape}});var FD=z((QUe,RD)=>{"use strict";var Mpe=wo().overrideAll,Fu=zn(),PD=ka(),kpe=Pi().dash,bs=At().extendFlat,{shapeTexttemplateAttrs:Spe,templatefallbackAttrs:qpe}=fi(),Lpe=hp();RD.exports=Mpe({newshape:{visible:bs({},Fu.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:bs({},Fu.legend,{}),legendgroup:bs({},Fu.legendgroup,{}),legendgrouptitle:{text:bs({},Fu.legendgrouptitle.text,{}),font:PD({})},legendrank:bs({},Fu.legendrank,{}),legendwidth:bs({},Fu.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:bs({},kpe,{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:bs({},Fu.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Spe({newshape:!0},{keys:Object.keys(Lpe)}),texttemplatefallback:qpe({editType:"arraydraw"}),font:PD({}),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 ND=z((eGe,zD)=>{"use strict";var Cpe=Pi().dash,Dpe=At().extendFlat;zD.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:Dpe({},Cpe,{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 dp=z((rGe,ID)=>{"use strict";ID.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 P0=z((tGe,UD)=>{"use strict";var R_=ka(),Epe=mh(),pp=Ei(),BD=FD(),OD=ND(),Ppe=dp(),HD=At().extendFlat,mp=R_({editType:"calc"});mp.family.dflt='"Open Sans", verdana, arial, sans-serif';mp.size.dflt=12;mp.color.dflt=pp.defaultLine;UD.exports={font:mp,title:{text:{valType:"string",editType:"layoutstyle"},font:R_({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:R_({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:HD(Ppe({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:pp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:pp.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:pp.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:BD.newshape,activeshape:BD.activeshape,newselection:OD.newselection,activeselection:OD.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:HD({},Epe.transition,{editType:"none"})}});var GD=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)}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Tr=z(Vr=>{"use strict";var F_=ps(),YD=up(),VD=L_(),iGe=ph().addStyleRule,jD=At(),Rpe=zn(),Fpe=P0(),zpe=jD.extendFlat,z_=jD.extendDeepAll;Vr.modules={};Vr.allCategories={};Vr.allTypes=[];Vr.subplotsRegistry={};Vr.componentsRegistry={};Vr.layoutArrayContainers=[];Vr.layoutArrayRegexes=[];Vr.traceLayoutAttributes={};Vr.localeRegistry={};Vr.apiMethodRegistry={};Vr.collectableSubplotTypes=null;Vr.register=function(r){if(Vr.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":Npe(a);break;case"component":Bpe(a);break;case"locale":Ope(a);break;case"apiMethod":var n=a.name;Vr.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};Vr.getModule=function(e){var r=Vr.modules[$D(e)];return r?r._module:!1};Vr.traceIs=function(e,r){if(e=$D(e),e==="various")return!1;var t=Vr.modules[e];return t||(e&&F_.log("Unrecognized trace type "+e+"."),t=Vr.modules[Rpe.type.dflt]),!!t.categories[r]};Vr.getComponentMethod=function(e,r){var t=Vr.componentsRegistry[e];return t&&t[r]||YD};Vr.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Vr.apiMethodRegistry[e].apply(null,r)};function Npe(e){var r=e.name,t=e.categories,a=e.meta;if(Vr.modules[r]){F_.log("Type "+r+" already registered");return}Vr.subplotsRegistry[e.basePlotModule.name]||Ipe(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,Vr.allCategories[t[i]]=!0;Vr.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(Vr.modules[r].meta=a),Vr.allTypes.push(r);for(var o in Vr.componentsRegistry)XD(o,r);e.layoutAttributes&&zpe(Vr.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,s=l.name;s==="map"&&GD(),(s==="geo"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function Ipe(e){var r=e.name;if(Vr.subplotsRegistry[r]){F_.log("Plot type "+r+" already registered.");return}WD(e),Vr.subplotsRegistry[r]=e;for(var t in Vr.componentsRegistry)ZD(t,e.name)}function Bpe(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;Vr.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&VD(Vr.layoutArrayContainers,r),WD(e));for(var t in Vr.modules)XD(r,t);for(var a in Vr.subplotsRegistry)ZD(r,a);e.schema&&e.schema.layout&&z_(Fpe,e.schema.layout)}function Ope(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=Vr.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 WD(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)VD(Vr.layoutArrayRegexes,r[t])}}function XD(e,r){var t=Vr.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&z_(Vr.modules[r]._module.attributes,a)}}function ZD(e,r){var t=Vr.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=Vr.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&&z_(n,o)}}function $D(e){return typeof e=="object"&&(e=e.type),e}});var iE=z(fa=>{"use strict";var Hpe=p0().timeFormat,aE=Ir(),N_=ps(),_s=(g0(),un(y0)).mod,z0=Gt(),Ri=z0.BADNUM,Xn=z0.ONEDAY,yh=z0.ONEHOUR,xs=z0.ONEMIN,F0=z0.ONESEC,gh=z0.EPOCHJD,El=Tr(),JD=p0().utcFormat,Upe=/^\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,Gpe=/^\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,KD=new Date().getFullYear()-70;function Pl(e){return e&&El.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}fa.dateTick0=function(e,r){var t=Ype(e,!!r);if(r<2)return t;var a=fa.dateTime2ms(t,e);return a+=Xn*(r-1),fa.ms2DateTime(a,0,e)};function Ype(e,r){return Pl(e)?r?El.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:El.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}fa.dfltRange=function(e){return Pl(e)?El.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};fa.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var gp,bp;fa.dateTime2ms=function(e,r){if(fa.isJSDate(e)){var t=e.getTimezoneOffset()*xs,a=(e.getUTCMinutes()-e.getMinutes())*xs+(e.getUTCSeconds()-e.getSeconds())*F0+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*xs;t=t-n/2+_s(a-t+n/2,n)}return e=Number(e)-t,e>=gp&&e<=bp?e:Ri}if(typeof e!="string"&&typeof e!="number")return Ri;e=String(e);var i=Pl(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?Gpe:Upe);if(!s)return Ri;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 Ri;u=Number(u);var y;try{var m=El.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,b),c)}else y=m.newDate(u,Number(f),c)}catch(w){return Ri}return y?(y.toJD()-gh)*Xn+v*yh+d*xs+p*F0:Ri}u.length===2?u=(Number(u)+2e3-KD)%100+KD: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?Ri:T.getTime()+p*F0};gp=fa.MIN_MS=fa.dateTime2ms("-9999");bp=fa.MAX_MS=fa.dateTime2ms("9999-12-31 23:59:59.9999");fa.isDateTime=function(e,r){return fa.dateTime2ms(e,r)!==Ri};function R0(e,r){return String(e+Math.pow(10,r)).slice(1)}var yp=90*Xn,QD=3*yh,eE=5*xs;fa.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=gp&&e<=bp))return Ri;r||(r=0);var a=Math.floor(_s(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(Pl(t)){var c=Math.floor(n/Xn)+gh,v=Math.floor(_s(e,Xn));try{i=El.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=JD("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<yp?Math.floor(v/yh):0,l=r<yp?Math.floor(v%yh/xs):0,s=r<QD?Math.floor(v%xs/F0):0,u=r<eE?v%F0*10+a:0}else f=new Date(n),i=JD("%Y-%m-%d")(f),o=r<yp?f.getUTCHours():0,l=r<yp?f.getUTCMinutes():0,s=r<QD?f.getUTCSeconds():0,u=r<eE?f.getUTCMilliseconds()*10+a:0;return nE(i,o,l,s,u)};fa.ms2DateTimeLocal=function(e){if(!(e>=gp+Xn&&e<=bp-Xn))return Ri;var r=Math.floor(_s(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Hpe("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return nE(a,n,i,o,l)};function nE(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+R0(r,2)+":"+R0(t,2),(a||n)&&(e+=":"+R0(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+R0(n,i)}return e}fa.cleanDate=function(e,r,t){if(e===Ri)return r;if(fa.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Pl(t))return N_.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=fa.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!fa.isDateTime(e,t))return N_.error("unrecognized date",e),r;return e};var Vpe=/%\d?f/g,jpe=/%h/g,Wpe={1:"1",2:"1",3:"2",4:"2"};function rE(e,r,t,a){e=e.replace(Vpe,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(jpe,function(){return Wpe[t("%q")(n)]}),Pl(a))try{e=El.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Xpe=[59,59.9,59.99,59.999,59.9999];function Zpe(e,r){var t=_s(e+.05,Xn),a=R0(Math.floor(t/yh),2)+":"+R0(_s(Math.floor(t/xs),60),2);if(r!=="M"){aE(r)||(r=0);var n=Math.min(_s(e/F0,60),Xpe[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}fa.formatDate=function(e,r,t,a,n,i){if(n=Pl(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 Zpe(e,t)+`
`+rE(i.dayMonthYear,e,a,n);return rE(r,e,a,n)};var tE=3*Xn;fa.incrementMonth=function(e,r,t){t=Pl(t)&&t;var a=_s(e,Xn);if(e=Math.round(e-a),t)try{var n=Math.round(e/Xn)+gh,i=El.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-gh)*Xn+a}catch(s){N_.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+tE);return l.setUTCMonth(l.getUTCMonth()+r)+a-tE};fa.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Pl(r)&&El.getComponentMethod("calendars","getCal")(r),u=0;u<e.length;u++){if(l=e[u],!aE(l)){i++;continue}if(!(l%Xn))if(s)try{o=s.fromJD(l/Xn+gh),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 I_=z((sGe,oE)=>{"use strict";oE.exports=function(r){return r}});var O_=z(Rl=>{"use strict";var $pe=Ir(),Jpe=ps(),Kpe=I_(),Qpe=Gt().BADNUM,B_=1e-9;Rl.findBin=function(e,r,t){if($pe(r.start))return t?Math.ceil((e-r.start)/r.size-B_)-1:Math.floor((e-r.start)/r.size+B_);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?eme:rme:s=t?ame:tme,e+=o*B_*(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&&Jpe.log("Long binary search..."),a-1};function eme(e,r){return e<r}function rme(e,r){return e<=r}function tme(e,r){return e>r}function ame(e,r){return e>=r}Rl.sorterAsc=function(e,r){return e-r};Rl.sorterDes=function(e,r){return r-e};Rl.distinctVals=function(e){var r=e.slice();r.sort(Rl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Qpe;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}};Rl.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]};Rl.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()};Rl.findIndexOfMin=function(e,r){r=r||Kpe;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 H_={};d0(H_,{default:()=>ime});function nme(e){return Object.keys(e).sort()}var ime,U_=h0(()=>{"use strict";ime=nme});var lE=z(ca=>{"use strict";var bh=Ir(),ome=Vn().isArrayOrTypedArray;ca.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),bh(r)||(r=!1),ome(t[0])){for(i=new Array(a),n=0;n<a;n++)i[n]=ca.aggNums(e,r,t[n]);t=i}for(n=0;n<a;n++)bh(r)?bh(t[n])&&(r=e(+r,+t[n])):r=t[n];return r};ca.len=function(e){return ca.aggNums(function(r){return r+1},0,e)};ca.mean=function(e,r){return r||(r=ca.len(e)),ca.aggNums(function(t,a){return t+a},0,e)/r};ca.geometricMean=function(e,r){return r||(r=ca.len(e)),Math.pow(ca.aggNums(function(t,a){return t*a},1,e),1/r)};ca.midRange=function(e){if(!(e===void 0||e.length===0))return(ca.aggNums(Math.max,null,e)+ca.aggNums(Math.min,null,e))/2};ca.variance=function(e,r,t){return r||(r=ca.len(e)),bh(t)||(t=ca.mean(e,r)),ca.aggNums(function(a,n){return a+Math.pow(n-t,2)},0,e)/r};ca.stdev=function(e,r,t){return Math.sqrt(ca.variance(e,r,t))};ca.median=function(e){var r=e.slice().sort();return ca.interp(r,.5)};ca.interp=function(e,r){if(!bh(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 vE=z((cGe,cE)=>{"use strict";var sE=(g0(),un(y0)),G_=sE.mod,lme=sE.modHalf,xh=Math.PI,ws=2*xh;function sme(e){return e/180*xh}function ume(e){return e/xh*180}function Y_(e){return Math.abs(e[1]-e[0])>ws-1e-14}function uE(e,r){return lme(r-e,ws)}function fme(e,r){return Math.abs(uE(e,r))}function fE(e,r){if(Y_(r))return!0;var t,a;r[0]<r[1]?(t=r[0],a=r[1]):(t=r[1],a=r[0]),t=G_(t,ws),a=G_(a,ws),t>a&&(a+=ws);var n=G_(e,ws),i=n+ws;return n>=t&&n<=a||i>=t&&i<=a}function cme(e,r,t,a){if(!fE(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 V_(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=Y_([t,a]),s,u,f,c,v;l?(s=0,u=xh,f=ws):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)<=xh?0:1;function y(b,T,w){return"A"+[b,b]+" "+[0,p,w]+" "+d(b,T)}var m;return l?c===null?m="M"+d(v,s)+y(v,u,0)+y(v,f,0)+"Z":m="M"+d(c,s)+y(c,u,0)+y(c,f,0)+"ZM"+d(v,s)+y(v,u,1)+y(v,f,1)+"Z":c===null?(m="M"+d(v,s)+y(v,f,0),o&&(m+="L0,0Z")):m="M"+d(c,s)+"L"+d(v,s)+y(v,f,0)+"L"+d(c,f)+y(c,s,1)+"Z",m}function vme(e,r,t,a,n){return V_(null,e,r,t,a,n,0)}function hme(e,r,t,a,n){return V_(null,e,r,t,a,n,1)}function dme(e,r,t,a,n,i){return V_(e,r,t,a,n,i,1)}cE.exports={deg2rad:sme,rad2deg:ume,angleDelta:uE,angleDist:fme,isFullCircle:Y_,isAngleInsideSector:fE,isPtInsideSector:cme,pathArc:vme,pathSector:hme,pathAnnulus:dme}});var hE=z(zu=>{"use strict";zu.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};zu.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};zu.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};zu.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};zu.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};zu.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var mE=z(Nu=>{"use strict";var j_=(g0(),un(y0)).mod;Nu.segmentsIntersect=pE;function pE(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 y=(u*d-f*v)/p,m=(u*c-s*v)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}Nu.segmentDistance=function(r,t,a,n,i,o,l,s){if(pE(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,y=Math.min(xp(u,f,d,i-r,o-t),xp(u,f,d,l-r,s-t),xp(c,v,p,r-i,t-o),xp(c,v,p,a-i,n-o));return Math.sqrt(y)};function xp(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 _p,W_,dE;Nu.getTextLocation=function(r,t,a,n){if((r!==W_||n!==dE)&&(_p={},W_=r,dE=n),_p[a])return _p[a];var i=r.getPointAtLength(j_(a-n/2,t)),o=r.getPointAtLength(j_(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(j_(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 _p[a]=c,c};Nu.clearLocationCache=function(){W_=null};Nu.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(y){var m=r.getPointAtLength(y);y===0?c=m:y===u&&(v=m);var b=m.x<n?n-m.x:m.x>i?m.x-i:0,T=m.y<o?o-m.y:m.y>l?m.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}};Nu.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 wp=z(_h=>{"use strict";var Fl={};_h.throttle=function(r,t,a){var n=Fl[r],i=Date.now();if(!n){for(var o in Fl)Fl[o].ts<i-6e4&&delete Fl[o];n=Fl[r]={ts:0,timer:null}}yE(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)};_h.done=function(e){var r=Fl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};_h.clear=function(e){if(e)yE(Fl[e]),delete Fl[e];else for(var r in Fl)_h.clear(r)};function yE(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var bE=z((pGe,gE)=>{"use strict";gE.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var xE=z((mGe,Tp)=>{"use strict";Tp.exports=X_;Tp.exports.isMobile=X_;Tp.exports.default=X_;var pme=/(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,mme=/CrOS/,yme=/android|ipad|playbook|silk/i;function X_(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=pme.test(r)&&!mme.test(r)||!!e.tablet&&yme.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var wE=z((yGe,_E)=>{"use strict";var gme=Ir(),bme=xE();_E.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=xme(),typeof t!="string")return!0;var a=bme({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(gme(u)&&(u=+u),u>=13)return!0}}}return a};function xme(){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 AE=z((gGe,TE)=>{"use strict";var _me=Er();TE.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]=_me.select(this)}),n}});var kE=z((bGe,ME)=>{"use strict";var wme=Tr();ME.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=wme.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var qE=z((xGe,SE)=>{"use strict";SE.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 CE=z((_Ge,LE)=>{"use strict";LE.exports=function(r){for(var t=Mme(r)?Ame:Tme,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function Tme(e){return e.visible===!0}function Ame(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function Mme(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var EE=z((wGe,DE)=>{"use strict";DE.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 FE={};d0(FE,{default:()=>qme});function Sme(e){return typeof e=="string"&&(e=e.replace(kme,"")),(0,PE.default)(e)?Number(e):RE.BADNUM}var PE,RE,kme,qme,zE=h0(()=>{"use strict";PE=cs(Ir()),RE=cs(Gt()),kme=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;qme=Sme});var BE=z((TGe,IE)=>{"use strict";var Lme=/<[^>]*>/g,Cme=/[\p{S}\p{P}]/gu,Dme=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,Eme=/�/g,Pme=/\s+/g,Ap="-",NE=Ap.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Rme=new RegExp(NE+"{3,}","g"),Fme=new RegExp(NE+"$","g"),zme=60;function Nme(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}IE.exports=function(r,t=zme){var a=Nme(r!=null?r:"").replace(Eme,"").replace(Lme," ").replace(Cme,n=>n===Ap?n:"").toLowerCase().trim().replace(Pme,Ap).replace(Dme,"").replace(Rme,Ap);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(Fme,"")}});var ke=z((AGe,JE)=>{"use strict";var wh=Er(),Ime=p0().utcFormat,Bme=Y5().format,VE=Ir(),jE=Gt(),WE=jE.FP_SAFE,Ome=-WE,OE=jE.BADNUM,de=JE.exports={};de.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 HE={};de.warnBadFormat=function(e){var r=String(e);HE[r]||(HE[r]=1,de.warn('encountered bad format: "'+r+'"'))};de.noFormat=function(e){return String(e)};de.numberFormat=function(e){var r;try{r=Bme(de.adjustFormat(e))}catch(t){return de.warnBadFormat(e),de.noFormat}return r};de.nestedProperty=C1();de.keyedContainer=DS();de.relativeAttr=PS();de.isPlainObject=Au();de.toLogRange=E1();de.relinkPrivateKeys=NS();var Ts=Vn();de.isArrayBuffer=Ts.isArrayBuffer;de.isTypedArray=Ts.isTypedArray;de.isArrayOrTypedArray=Ts.isArrayOrTypedArray;de.isArray1D=Ts.isArray1D;de.ensureArray=Ts.ensureArray;de.concat=Ts.concat;de.maxRowLength=Ts.maxRowLength;de.minRowLength=Ts.minRowLength;var XE=(g0(),un(y0));de.mod=XE.mod;de.modHalf=XE.modHalf;var As=iC();de.valObjectMeta=As.valObjectMeta;de.coerce=As.coerce;de.coerce2=As.coerce2;de.coerceFont=As.coerceFont;de.coercePattern=As.coercePattern;de.coerceHoverinfo=As.coerceHoverinfo;de.coerceSelectionMarkerOpacity=As.coerceSelectionMarkerOpacity;de.validate=As.validate;var ci=iE();de.dateTime2ms=ci.dateTime2ms;de.isDateTime=ci.isDateTime;de.ms2DateTime=ci.ms2DateTime;de.ms2DateTimeLocal=ci.ms2DateTimeLocal;de.cleanDate=ci.cleanDate;de.isJSDate=ci.isJSDate;de.formatDate=ci.formatDate;de.incrementMonth=ci.incrementMonth;de.dateTick0=ci.dateTick0;de.dfltRange=ci.dfltRange;de.findExactDates=ci.findExactDates;de.MIN_MS=ci.MIN_MS;de.MAX_MS=ci.MAX_MS;var Iu=O_();de.findBin=Iu.findBin;de.sorterAsc=Iu.sorterAsc;de.sorterDes=Iu.sorterDes;de.distinctVals=Iu.distinctVals;de.roundUp=Iu.roundUp;de.sort=Iu.sort;de.findIndexOfMin=Iu.findIndexOfMin;de.sortObjectKeys=(U_(),un(H_)).default;var zl=lE();de.aggNums=zl.aggNums;de.len=zl.len;de.mean=zl.mean;de.geometricMean=zl.geometricMean;de.median=zl.median;de.midRange=zl.midRange;de.variance=zl.variance;de.stdev=zl.stdev;de.interp=zl.interp;var To=fp();de.init2dArray=To.init2dArray;de.transposeRagged=To.transposeRagged;de.dot=To.dot;de.translationMatrix=To.translationMatrix;de.rotationMatrix=To.rotationMatrix;de.rotationXYMatrix=To.rotationXYMatrix;de.apply3DTransform=To.apply3DTransform;de.apply2DTransform=To.apply2DTransform;de.apply2DTransform2=To.apply2DTransform2;de.convertCssMatrix=To.convertCssMatrix;de.inverseTransformMatrix=To.inverseTransformMatrix;var Ko=vE();de.deg2rad=Ko.deg2rad;de.rad2deg=Ko.rad2deg;de.angleDelta=Ko.angleDelta;de.angleDist=Ko.angleDist;de.isFullCircle=Ko.isFullCircle;de.isAngleInsideSector=Ko.isAngleInsideSector;de.isPtInsideSector=Ko.isPtInsideSector;de.pathArc=Ko.pathArc;de.pathSector=Ko.pathSector;de.pathAnnulus=Ko.pathAnnulus;var I0=hE();de.isLeftAnchor=I0.isLeftAnchor;de.isCenterAnchor=I0.isCenterAnchor;de.isRightAnchor=I0.isRightAnchor;de.isTopAnchor=I0.isTopAnchor;de.isMiddleAnchor=I0.isMiddleAnchor;de.isBottomAnchor=I0.isBottomAnchor;var B0=mE();de.segmentsIntersect=B0.segmentsIntersect;de.segmentDistance=B0.segmentDistance;de.getTextLocation=B0.getTextLocation;de.clearLocationCache=B0.clearLocationCache;de.getVisibleSegment=B0.getVisibleSegment;de.findPointOnPath=B0.findPointOnPath;var Sp=At();de.extendFlat=Sp.extendFlat;de.extendDeep=Sp.extendDeep;de.extendDeepAll=Sp.extendDeepAll;de.extendDeepNoArrays=Sp.extendDeepNoArrays;var Z_=ps();de.log=Z_.log;de.warn=Z_.warn;de.error=Z_.error;var Hme=(C0(),un(L0));de.counterRegex=Hme.counter;var $_=wp();de.throttle=$_.throttle;de.throttleDone=$_.done;de.clearThrottle=$_.clear;var Ao=ph();de.getGraphDiv=Ao.getGraphDiv;de.isPlotDiv=Ao.isPlotDiv;de.removeElement=Ao.removeElement;de.addStyleRule=Ao.addStyleRule;de.addRelatedStyleRule=Ao.addRelatedStyleRule;de.deleteRelatedStyleRule=Ao.deleteRelatedStyleRule;de.setStyleOnHover=Ao.setStyleOnHover;de.getFullTransformMatrix=Ao.getFullTransformMatrix;de.getElementTransformMatrix=Ao.getElementTransformMatrix;de.getElementAndAncestors=Ao.getElementAndAncestors;de.equalDomRects=Ao.equalDomRects;de.clearResponsive=bE();de.preserveDrawingBuffer=wE();de.makeTraceGroups=AE();de._=kE();de.notifier=x_();de.filterUnique=qE();de.filterVisible=CE();de.pushUnique=L_();de.increment=EE();de.cleanNumber=(zE(),un(FE)).default;de.slugify=BE();de.ensureNumber=function(r){return VE(r)?(r=Number(r),r>WE||r<Ome?OE:r):OE};de.isIndex=function(e,r){return r!==void 0&&e>=r?!1:VE(e)&&e>=0&&e%1===0};de.noop=up();de.identity=I_();de.repeat=function(e,r){for(var t=new Array(r),a=0;a<r;a++)t[a]=e;return t};de.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=de.nestedProperty(e,i.replace("?",t)),l=de.nestedProperty(e,i.replace("?",a)),s=o.get();o.set(l.get()),l.set(s)}};de.raiseToTop=function(r){r.parentNode.appendChild(r)};de.cancelTransition=function(e){return e.transition().duration(0)};de.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};de.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};de.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};de.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?(de.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};de.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};de.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};de.syncOrAsync=function(e,r,t){var a,n;function i(){return de.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)};de.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};de.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]]}};de.mergeArray=function(e,r,t,a){var n=typeof a=="function";if(de.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}};de.mergeArrayCastPositive=function(e,r,t){return de.mergeArray(e,r,t,function(a){var n=+a;return isFinite(n)&&n>0?n:0})};de.fillArray=function(e,r,t,a){if(a=a||de.identity,de.isArrayOrTypedArray(e))for(var n=0;n<r.length;n++)r[n][t]=a(e[n])};de.castOption=function(e,r,t,a){a=a||de.identity;var n=de.nestedProperty(e,t).get();return de.isArrayOrTypedArray(n)?Array.isArray(r)&&de.isArrayOrTypedArray(n[r[0]])?a(n[r[0]][r[1]]):a(n[r]):n};de.extractOption=function(e,r,t,a){if(t in e)return e[t];var n=de.nestedProperty(r,a).get();if(!Array.isArray(n))return n};de.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(de.isIndex(o)||de.isArrayOrTypedArray(o)&&de.isIndex(o[0])&&de.isIndex(o[1])){var l=o,s=t?t[l]:l;n(s)&&(e[s].selected=1)}}};de.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var a=de.nestedProperty(e,t).get();return de.isArrayOrTypedArray(a)?a:!1}else if(de.isArrayOrTypedArray(t))return t;return!1};function ZE(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):de.isTypedArray(s)?n===-1?a[l]=s.subarray():a[l]=s.subarray(0,n):s&&typeof s=="object"?a[l]=ZE(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}de.minExtend=ZE;de.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};de.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var Ume=/Version\/[\d\.]+.*Safari/;de.isSafari=function(){return Ume.test(window.navigator.userAgent)};var Gme=/iPad|iPhone|iPod/;de.isIOS=function(){return Gme.test(window.navigator.userAgent)};var Yme=/Macintosh.+AppleWebKit.+Gecko\)$/;de.isMacWKWebView=()=>Yme.test(window.navigator.userAgent);var Vme=/Firefox\/(\d+)\.\d+/;de.getFirefoxVersion=function(){var e=Vme.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};de.isD3Selection=function(e){return e instanceof wh.selection};de.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};de.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};de.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 jme=/^([^\[\.]+)\.(.+)?/,Wme=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Mp(e){return e.slice(0,2)==="__"}de.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(jme)){if(n=e[t],a=r[1],Mp(a))continue;delete e[t],e[a]=de.extendDeepNoArrays(e[a]||{},de.objectFromPath(t,de.expandObjectPaths(n))[a])}else if(r=t.match(Wme)){if(n=e[t],a=r[1],Mp(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]||{},de.extendDeepNoArrays(o,de.objectFromPath(l,de.expandObjectPaths(n)));else{if(Mp(a))continue;e[a][i]=de.expandObjectPaths(n)}}else{if(Mp(t))continue;e[t]=de.expandObjectPaths(e[t])}}return e};de.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};de.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var $E=/^\w*$/;de.templateString=function(e,r){var t={};return e.replace(de.TEMPLATE_STRING_REGEX,function(a,n){var i;return $E.test(n)?i=r[n]:(t[n]=t[n]||de.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Xme={max:10,count:0,name:"hovertemplate"};de.hovertemplateString=e=>J_(Ut(wt({},e),{opts:Xme}));var Zme={max:10,count:0,name:"texttemplate"};de.texttemplateString=e=>J_(Ut(wt({},e),{opts:Zme}));var $me=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Jme(e){var r=e.match($me);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Kme={max:10,count:0,name:"texttemplate",parseMultDiv:!0};de.texttemplateStringForShapes=e=>J_(Ut(wt({},e),{opts:Kme}));var UE=/^[:|\|]/;function J_({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(de.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,y=null;if(n.parseMultDiv){var m=Jme(l);l=m.key,p=m.op,y=m.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($E.test(l)||(b=de.nestedProperty(_,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:_,max:k,name:A}=n,q=t===!1?o:t;return _<k&&de.warn([`Variable '${l}' in ${A} could not be found!`,"Please verify that the template is correct.",`Using value: '${q}'.`].join(" ")),_===k&&de.warn(`Too many '${A}' warnings - additional warnings will be suppressed.`),n.count++,q}if(p==="*"&&(b*=y),p==="/"&&(b/=y),s){var T;if(s[0]===":"&&(T=r?r.numberFormat:de.numberFormat,b!==""&&(b=T(s.replace(UE,""))(b))),s[0]==="|"){T=r?r.timeFormat:Ime;var w=de.dateTime2ms(b);b=de.formatDate(w,s.replace(UE,""),!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 kp=48,GE=57;de.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>=kp&&o<=GE,u=l>=kp&&l<=GE;if(s&&(a=10*a+o-kp),u&&(n=10*n+l-kp),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var N0=2e9;de.seedPseudoRandom=function(){N0=2e9};de.pseudoRandom=function(){var e=N0;return N0=(69069*N0+1)%4294967296,Math.abs(N0-e)<429496729?de.pseudoRandom():N0/4294967296};de.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=de.extractOption(e,r,"htx","hovertext");if(de.isValidTextValue(n))return a(n);var i=de.extractOption(e,r,"tx","text");if(de.isValidTextValue(i))return a(i)};de.isValidTextValue=function(e){return e||e===0};de.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};de.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};de.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};de.strRotate=function(e){return e?"rotate("+e+")":""};de.strScale=function(e){return e!==1?"scale("+e+")":""};de.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,de.strTranslate(n-u*(t+o),i-u*(a+l))+de.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};de.setTransormAndDisplay=function(e,r){e.attr("transform",de.getTextTransform(r)),e.style("display",r.scale?null:"none")};de.ensureUniformFontSize=function(e,r){var t=de.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};de.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)};de.bigFont=function(e){return Math.round(1.2*e)};var YE=de.getFirefoxVersion(),Qme=YE!==null&&YE<86;de.getPositionFromD3Event=function(){return Qme?[wh.event.layerX,wh.event.layerY]:[wh.event.offsetX,wh.event.offsetY]}});var eP=z(()=>{"use strict";var eye=ke(),KE={"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(K_ in KE)QE=K_.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),eye.addStyleRule(QE,KE[K_]);var QE,K_});var Q_=z((qGe,rP)=>{rP.exports=!0});var r4=z((LGe,tP)=>{"use strict";var rye=Q_(),e4;typeof window.matchMedia=="function"?e4=!window.matchMedia("(hover: none)").matches:e4=rye;tP.exports=e4});var Bu=z((CGe,t4)=>{"use strict";var O0=typeof Reflect=="object"?Reflect:null,aP=O0&&typeof O0.apply=="function"?O0.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},qp;O0&&typeof O0.ownKeys=="function"?qp=O0.ownKeys:Object.getOwnPropertySymbols?qp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:qp=function(r){return Object.getOwnPropertyNames(r)};function tye(e){console&&console.warn&&console.warn(e)}var iP=Number.isNaN||function(r){return r!==r};function Nt(){Nt.init.call(this)}t4.exports=Nt;t4.exports.once=oye;Nt.EventEmitter=Nt;Nt.prototype._events=void 0;Nt.prototype._eventsCount=0;Nt.prototype._maxListeners=void 0;var nP=10;function Lp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Nt,"defaultMaxListeners",{enumerable:!0,get:function(){return nP},set:function(e){if(typeof e!="number"||e<0||iP(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");nP=e}});Nt.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};Nt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||iP(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?Nt.defaultMaxListeners:e._maxListeners}Nt.prototype.getMaxListeners=function(){return oP(this)};Nt.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")aP(s,this,t);else for(var u=s.length,f=cP(s,u),a=0;a<u;++a)aP(f[a],this,t);return!0};function lP(e,r,t,a){var n,i,o;if(Lp(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,tye(l)}return e}Nt.prototype.addListener=function(r,t){return lP(this,r,t,!1)};Nt.prototype.on=Nt.prototype.addListener;Nt.prototype.prependListener=function(r,t){return lP(this,r,t,!0)};function aye(){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 sP(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=aye.bind(a);return n.listener=t,a.wrapFn=n,n}Nt.prototype.once=function(r,t){return Lp(t),this.on(r,sP(this,r,t)),this};Nt.prototype.prependOnceListener=function(r,t){return Lp(t),this.prependListener(r,sP(this,r,t)),this};Nt.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Lp(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():nye(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Nt.prototype.off=Nt.prototype.removeListener;Nt.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 uP(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?iye(n):cP(n,n.length)}Nt.prototype.listeners=function(r){return uP(this,r,!0)};Nt.prototype.rawListeners=function(r){return uP(this,r,!1)};Nt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):fP.call(e,r)};Nt.prototype.listenerCount=fP;function fP(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}Nt.prototype.eventNames=function(){return this._eventsCount>0?qp(this._events):[]};function cP(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function nye(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function iye(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function oye(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))}vP(e,r,i,{once:!0}),r!=="error"&&lye(e,n,{once:!0})})}function lye(e,r,t){typeof e.on=="function"&&vP(e,"error",r,t)}function vP(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 Th=z((DGe,hP)=>{"use strict";var a4=Bu().EventEmitter,sye={init:function(e){if(e._ev instanceof a4)return e;var r=new a4,t=new a4;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}};hP.exports=sye});var mP=z((EGe,pP)=>{"use strict";var dP=ke(),uye=ds().dfltConfig;function fye(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)?dP.extendDeep([],a):dP.extendDeepAll({},a):t[n]=a;return t}var Nl={};Nl.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>uye.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Nl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Nl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Nl.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++)Nl.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};Nl.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++)Nl.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};Nl.plotDo=function(e,r,t){e.autoplay=!0,t=fye(e,t),r.apply(null,t)};pP.exports=Nl});var n4=z((PGe,yP)=>{"use strict";yP.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var G0=z(Sa=>{"use strict";var Fi=Tr(),Ah=ke(),Dp=zn(),i4=P0(),cye=n4(),vye=mh(),hye=ds().configAttributes,gP=wo(),Mo=Ah.extendDeepAll,H0=Ah.isPlainObject,dye=Ah.isArrayOrTypedArray,Ep=Ah.nestedProperty,pye=Ah.valObjectMeta,o4="_isSubplotObj",Pp="_isLinkedToArray",mye="_arrayAttrRegexps",xP="_deprecated",l4=[o4,Pp,mye,xP];Sa.IS_SUBPLOT_OBJ=o4;Sa.IS_LINKED_TO_ARRAY=Pp;Sa.DEPRECATED=xP;Sa.UNDERSCORE_ATTRS=l4;Sa.get=function(){var e={};return Fi.allTypes.forEach(function(r){e[r]=gye(r)}),{defs:{valObjects:pye,metaKeys:l4.concat(["description","role","editType","impliedEdits"]),editType:{traces:gP.traces,layout:gP.layout},impliedEdits:{}},traces:e,layout:bye(),frames:xye(),animation:U0(vye),config:U0(hye)}};Sa.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(l4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!Sa.isValObject(o)&&H0(o)&&i!=="impliedEdits"&&Sa.crawl(o,r,n+1,l)}})};Sa.isValObject=function(e){return e&&e.valType!==void 0};Sa.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)dye(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d<c.length;d++)H0(c[d])&&l(c[d],u+1,v+"["+d+"].")}else H0(c)&&l(c,u+1,v+".")}return n=e,i="",Sa.crawl(Dp,o),e._module&&e._module.attributes&&Sa.crawl(e._module.attributes,o),r};Sa.getTraceValObject=function(e,r){var t=r[0],a=1,n,i,o=e._module;if(o||(o=(Fi.modules[e.type||Dp.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=Dp[t]),_P(i,r,a)};Sa.getLayoutValObject=function(e,r){var t=yye(e,r[0]);return _P(t,r,1)};function yye(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 Fi.componentsRegistry){if(n=Fi.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 i4?i4[r]:!1}function _P(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(Cp(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(H0(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!Cp(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!Cp(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(!Cp(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Cp(e){return e===Math.round(e)&&e>=0}function gye(e){var r,t;r=Fi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Mo({},Dp),i=Mo({},r.attributes);Sa.crawl(i,function(s,u,f,c,v){Ep(n,v).set(void 0),s===void 0&&Ep(i,v).set(void 0)}),Mo(a,n),Fi.traceIs(e,"noOpacity")&&delete a.opacity,Fi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Fi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Mo(a,i),t.attributes&&Mo(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:U0(a)};if(r.layoutAttributes){var l={};Mo(l,r.layoutAttributes),o.layoutAttributes=U0(l)}return r.animatable||Sa.crawl(o,function(s){Sa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function bye(){var e={},r,t;Mo(e,i4);for(r in Fi.subplotsRegistry)if(t=Fi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)bP(e,t,t.attr[a]);else{var n=t.attr==="subplot"?t.name:t.attr;bP(e,t,n)}for(r in Fi.componentsRegistry){t=Fi.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"?Mo(e,t.layoutAttributes):t.layoutAttributes&&Aye(e,t.layoutAttributes,t.name)}return{layoutAttributes:U0(e)}}function xye(){var e={frames:Mo({},cye)};return U0(e),e.frames}function U0(e){return _ye(e),wye(e),Tye(e),e}function _ye(e){function r(t,a,n){!Sa.isValObject(t)&&H0(t)&&(t.role="object")}Sa.crawl(e,r)}function wye(e){function r(t,a,n){if(t){var i=t[Pp];i&&(delete t[Pp],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}Sa.crawl(e,r)}function Tye(e){function r(t){for(var a in t)if(H0(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 bP(e,r,t){var a=Ep(e,t),n=Mo({},r.layoutAttributes);n[o4]=!0,a.set(n)}function Aye(e,r,t){var a=Ep(e,t);a.set(Mo(a.get()||{},r))}});var St=z(Ou=>{"use strict";var Y0=ke(),Mye=zn(),Ms="templateitemname",s4={name:{valType:"string",editType:"none"}};s4[Ms]={valType:"string",editType:"calc"};Ou.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=s4.name,r[Ms]=s4[Ms],r};Ou.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=Y0.coerce(i,{},Mye,"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}};Ou.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Y0.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Ou.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[TP(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[Ms]=u[Ms];if(!wP(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(wP(v)&&!o[v]){var d={_template:c,name:v,_input:{_templateitemname:v}};d[Ms]=c[Ms],u.push(d),o[v]=1}}return u}return{newItem:l,defaultItems:s}};function wP(e){return e&&typeof e=="string"}function TP(e){var r=e.length-1;return e.charAt(r)!=="s"&&Y0.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}Ou.arrayDefaultKey=TP;Ou.arrayEditor=function(e,r,t){var a=(Y0.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][Ms]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Y0.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 y=c();for(var m in y)Y0.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var qa=z((zGe,AP)=>{"use strict";var Mh=(C0(),un(L0)).counter;AP.exports={idRegex:{x:Mh("x","( domain)?"),y:Mh("y","( domain)?")},attrRegex:Mh("[xy]axis"),xAxisMatch:Mh("xaxis"),yAxisMatch:Mh("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var ba=z(Zn=>{"use strict";var kye=Tr(),u4=qa();Zn.id2name=function(r){if(!(typeof r!="string"||!r.match(u4.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Zn.name2id=function(r){if(r.match(u4.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Zn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(u4.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":"")}};Zn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Zn.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};Zn.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)};Zn.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[Zn.id2name(r)]};Zn.getFromTrace=function(e,r,t){var a=e._fullLayout,n=null;if(kye.traceIs(r,"gl3d")){var i=r.scene;i.slice(0,5)==="scene"&&(n=a[i][t+"axis"])}else n=Zn.getFromId(e,r[t+"axis"]||t);return n};Zn.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)};Zn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function MP(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}Zn.isLinked=function(e,r){return MP(r,e._axisMatchGroups)||MP(r,e._axisConstraintGroups)}});var ks=z((IGe,kP)=>{"use strict";function Sye(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function qye(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}kP.exports={clearOutlineControllers:Sye,clearOutline:qye}});var Rp=z((BGe,SP)=>{"use strict";SP.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Np=z(zp=>{"use strict";var Fp=Tr(),OGe=qa().SUBPLOT_PATTERN;zp.getSubplotCalcData=function(e,r,t){var a=Fp.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};zp.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=Fp.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]};zp.getSubplotData=function(r,t,a){if(!Fp.subplotsRegistry[t])return[];for(var n=Fp.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 DP=z(Hu=>{"use strict";var Lye=Tr(),V0=ke();Hu.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Hu.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){qP(e,o,n.cache),n.check=function(){if(i){var f=qP(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 V0.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};Hu.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=Hu.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 qP(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=V0.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}}Hu.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var a=Lye.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 V0.warn("API call to Plotly."+r+" rejected.",o),Promise.reject(o)})};Hu.computeAPICommandBindings=function(e,r,t){var a;switch(Array.isArray(t)||(t=[]),r){case"restyle":a=CP(e,t);break;case"relayout":a=LP(e,t);break;case"update":a=CP(e,[t[0],t[2]]).concat(LP(e,[t[1]]));break;case"animate":a=Cye(e,t);break;default:a=[]}return a};function Cye(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 LP(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if(V0.isPlainObject(a))n=a;else return t;return f4(n,function(i,o,l){t.push({type:"layout",prop:i,value:l})},"",0),t}function CP(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(V0.isPlainObject(a))i=a,t===void 0&&(t=n);else return o;return t===void 0&&(t=null),f4(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 y=0;y<f.length;y++)c[y]=p}c.length=Math.min(f.length,c.length)}o.push({type:"data",prop:l,traces:f,value:c})},"",0),o}function f4(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var o=t+(a>0?".":"")+n;V0.isPlainObject(i)?f4(i,r,o,a+1):r(o,n,i)}})}});var va=z((YGe,HP)=>{"use strict";var GGe=Er(),Dye=p0().timeFormatLocale,Eye=Y5().formatLocale,kh=Ir(),Pye=V5(),Rye=jv().version,Qr=Tr(),Fye=G0(),zye=St(),gr=ke(),Nye=Sr(),EP=Gt().BADNUM,$n=ba(),Iye=ks().clearOutline,Bye=Rp(),c4=mh(),Oye=n4(),Hye=Np().getModuleCalcData,PP=gr.relinkPrivateKeys,Uu=gr._,er=HP.exports={};gr.extendFlat(er,Qr);er.attributes=zn();er.attributes.type.values=er.allTypes;er.fontAttrs=ka();er.layoutAttributes=P0();var Bp=DP();er.executeAPICommand=Bp.executeAPICommand;er.computeAPICommandBindings=Bp.computeAPICommandBindings;er.manageCommandObserver=Bp.manageCommandObserver;er.hasSimpleAPICommandBindings=Bp.hasSimpleAPICommandBindings;er.redrawText=function(e){return e=gr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Qr.getComponentMethod("annotations","draw")(e),Qr.getComponentMethod("legend","draw")(e),Qr.getComponentMethod("colorbar","draw")(e),r(er.previousPromises(e)))},300)})};er.resize=function(e){e=gr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||gr.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||gr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Qr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};er.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};er.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=er.graphJson(e,!1,"object");a.version=Rye;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 Uye=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Gye=["year","month","dayMonth","dayMonthYear"];er.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||er.createTransitionData(e),n._dfltTitle={plot:Uu(e,"Click to enter Plot title"),subtitle:Uu(e,"Click to enter Plot subtitle"),x:Uu(e,"Click to enter X axis title"),y:Uu(e,"Click to enter Y axis title"),colorbar:Uu(e,"Click to enter Colorscale title"),annotation:Uu(e,"new text")},n._traceWord=Uu(e,"trace");var v=RP(e,Uye);if(a._initialAutoSizeIsDone){var d=a.width,p=a.height;er.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),er.sanitizeMargins(n)}else{er.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,b=f.autosizable,T=y&&(m||b);T?er.plotAutoSize(e,i,n):y&&er.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=jye(v,n.separators),n._extraFormat=RP(e,Gye),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=Vye(),x=n._splomAxes={x:{},y:{}},_=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Yye(o,s),er.supplyDataDefaults(s,l,i,n);var k=Object.keys(x.x),A=Object.keys(x.y);if(k.length>1&&A.length>1){for(Qr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c<k.length;c++)gr.pushUnique(w.xaxis,k[c]);for(c=0;c<A.length;c++)gr.pushUnique(w.yaxis,A[c]);for(var q in _)gr.pushUnique(w.cartesian,q)}if(n._has=er._hasPlotType.bind(n),o.length===l.length)for(c=0;c<l.length;c++)PP(l[c],o[c]);er.supplyLayoutModuleDefaults(i,n,l,e._transitionData);var C=n._visibleModules,E=[];for(c=0;c<C.length;c++){var P=C[c].crossTraceDefaults;P&&gr.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&&A.length>15&&n.shapes.length===0&&n.images.length===0,er.linkSubplots(l,n,o,a),er.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),N=!!(n._has&&n._has("cartesian")),I=R,O=N;I&&!O?a._bgLayer.remove():O&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Iye({_fullLayout:a}),Wye(l,n),PP(n,a),Qr.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var U=n._tracePreGUI,Y={},G;for(G in U)Y[G]="old";for(c=0;c<l.length;c++)G=l[c].uid,Y[G]||(U[G]={}),Y[G]="new";for(G in Y)Y[G]==="old"&&delete U[G];NP(n),Qr.getComponentMethod("rangeslider","makeData")(n),!t&&u.length===l.length&&er.supplyDefaultsUpdateCalc(u,l)};er.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 Yye(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(gr.randstr(o),a))}return i}function Vye(){var e=Qr.collectableSubplotTypes,r={},t,a;if(!e){e=[];var n=Qr.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++)gr.pushUnique(e,l[a])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function RP(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=Qr.localeRegistry}var f=t.split("-")[0];if(a||f===t)break;t=f}return a||i(Qr.localeRegistry.en.format),n}function jye(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=Eye(e).format(gr.adjustFormat(t))}catch(a){return gr.warnBadFormat(t),gr.noFormat}return t},timeFormat:Dye(e).utcFormat}}function Wye(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)}er.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=[])};er._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=Qr.modules[n];if(i&&i.categories[e])return!0}return!1};er.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()}};er.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=$n.getFromId(u,c,"x"),p=$n.getFromId(u,c,"y"),y;for(v?y=l[c]=v:(y=l[c]={},y.id=c),d._counterAxes.push(p._id),p._counterAxes.push(d._id),d._subplotsWith.push(c),p._subplotsWith.push(c),y.xaxis=d,y.yaxis=p,y._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var m=e[i];if(m.xaxis===y.xaxis._id&&m.yaxis===y.yaxis._id&&m.cliponaxis===!1){y._hasClipOnAxisFalse=!0;break}}}var b=$n.list(u,null,!0),T;for(n=0;n<b.length;n++){T=b[n];var w=null;T.overlaying&&(w=$n.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:$n.getFromId(u,T.anchor)}for(n=0;n<b.length;n++)if(T=b[n],T._counterAxes.sort($n.idSort),T._subplotsWith.sort(gr.subplotSort),T._mainSubplot=Xye(T,r),T._counterAxes.length&&(T.spikemode&&T.spikemode.indexOf("across")!==-1||T.automargin&&T.mirror&&T.anchor!=="free"||Qr.getComponentMethod("rangeslider","isVisible")(T))){var x=1,_=0;for(i=0;i<T._counterAxes.length;i++){var k=$n.getFromId(u,T._counterAxes[i]);x=Math.min(x,k.domain[0]),_=Math.max(_,k.domain[1])}x<_&&(T._counterDomainMin=x,T._counterDomainMax=_)}};function Xye(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=$n.getFromId(t,f);if(l&&v.overlaying===l){i=c;break}}}return i||o}er.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&&(gr.pushUnique(n,w),T.visible===!0&&gr.pushUnique(i,w),gr.pushUnique(o,T._module.basePlotModule),l++,T._input.visible!==!1&&s++)}var d={},p=[],y=(t.template||{}).data||{},m=zye.traceTemplater(y);for(u=0;u<e.length;u++)c=e[u],f=m.newTrace(c),f.uid=a._traceUids[u],er.supplyTraceDefaults(c,f,s,a,u),f.index=u,f._input=c,v(f),Qr.traceIs(f,"carpetAxis")&&(d[f.carpet]=f),Qr.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}};er.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function a(n,i){return gr.coerce(e||{},t,c4,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]=er.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=er.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=er.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=er.supplyAnimationTransitionDefaults(e.transition||{});return t};er.supplyAnimationFrameDefaults=function(e){var r={};function t(a,n){return gr.coerce(e||{},r,c4.frame,a,n)}return t("duration"),t("redraw"),r};er.supplyAnimationTransitionDefaults=function(e){var r={};function t(a,n){return gr.coerce(e||{},r,c4.transition,a,n)}return t("duration"),t("easing"),r};er.supplyFrameDefaults=function(e){var r={};function t(a,n){return gr.coerce(e,r,Oye,a,n)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};er.supplyTraceDefaults=function(e,r,t,a,n){var i=a.colorway||Nye.defaults,o=i[t%i.length],l;function s(w,x){return gr.coerce(e,r,er.attributes,w,x)}var u=s("visible");s("type"),s("name",a._traceWord+" "+n),s("uirevision",a.uirevision);var f=er.getModule(r);if(r._module=f,f){var c=f.basePlotModule,v=c.attr,d=c.attributes;if(v&&d){var p=a._subplots,y="";if(Array.isArray(v))for(l=0;l<v.length;l++){var m=v[l],b=gr.coerce(e,r,d,m);p[m]&&gr.pushUnique(p[m],b),y+=b}else y=gr.coerce(e,r,d,v);p[c.name]&&gr.pushUnique(p[c.name],y)}}if(u&&(s("customdata"),s("ids"),s("meta"),Qr.traceIs(r,"showLegend")?(gr.coerce(e,r,f.attributes.showlegend?f.attributes:er.attributes,"showlegend"),gr.coerce(e,r,f.attributes.legend?f.attributes:er.attributes,"legend"),s("legendwidth"),s("legendgroup"),s("legendgrouptitle.text"),gr.coerce(e,r,f.attributes.legend?f.attributes:er.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,o,a),Qr.traceIs(r,"noOpacity")||s("opacity"),Qr.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),Qr.traceIs(r,"noHover")||(r.hovertemplate||gr.coerceHoverinfo(e,r,a),r.type!=="parcats"&&Qr.getComponentMethod("fx","supplyDefaults")(e,r,o,a)),f&&f.selectPoints)){var T=s("selectedpoints");gr.isTypedArray(T)&&(r.selectedpoints=Array.from(T))}return r};er.supplyLayoutGlobalDefaults=function(e,r,t){function a(c,v){return gr.coerce(e,r,er.layoutAttributes,c,v)}var n=e.template;gr.isPlainObject(n)&&(r.template=n,r._template=n.layout,r._dataTemplate=n.data),a("autotypenumbers");var i=gr.coerceFont(a,"font"),o=i.size;gr.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),gr.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&&er.sanitizeMargins(r),Qr.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),Qr.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),Qr.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,a),Qr.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,a),a("meta"),gr.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),Qr.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),Qr.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,a),gr.coerce(e,r,Bye,"scattermode")};function Ip(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}er.plotAutoSize=function(r,t,a){var n=r._context||{},i=n.frameMargins,o,l,s=gr.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=Ip(u.width)||Ip(u.maxWidth)||a.width,l=Ip(u.height)||Ip(u.maxHeight)||a.height,kh(i)&&i>0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=er.layoutAttributes.width.min,v=er.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}),er.sanitizeMargins(a)};er.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Qr.componentsRegistry,i=r._basePlotModules,o,l,s,u=Qr.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Qr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(gr.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)};er.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)),gr.clearThrottle(),gr.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()};er.style=function(e){var r=e._fullLayout._visibleModules,t=[],a;for(a=0;a<r.length;a++){var n=r[a];n.style&&gr.pushUnique(t,n.style)}for(a=0;a<t.length;a++)t[a](e)};er.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))}};er.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};er.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function NP(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 IP=2,BP=2;er.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=gr.constrain(n-o.l-o.r,IP,l),f=gr.constrain(i-o.t-o.b,BP,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 y=t.pad;if(y===void 0&&(y=Math.min(12,o.l,o.r,o.t,o.b)),c){var m=(t.l+t.r)/c;m>1&&(t.l/=m,t.r/=m)}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+y},r:{val:w,size:t.r+y},b:{val:_,size:t.b+y},t:{val:x,size:t.t+y}},p[r]=1}if(!a._replotting)return er.doAutoMargin(e)}};function Zye(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=$n.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}er.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),NP(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=gr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];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 A in v)A!=="base"&&kh(v[A][_].size)&&(k=v[A][_].size>k?v[A][_].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,N=E.size,I=P.val,O=P.size,U=t-o.r-o.l,Y=a-o.t-o.b;for(var G in v){if(kh(N)&&v[G].r){var V=v[G].r.val,W=v[G].r.size;if(V>R){var j=(N*V+(W-U)*R)/(V-R),J=(W*(1-R)+(N-U)*(1-V))/(V-R);j+J>s+u&&(s=j,u=J)}}if(kh(O)&&v[G].t){var te=v[G].t.val,ae=v[G].t.size;if(te>I){var se=(O*te+(ae-Y)*I)/(te-I),$=(ae*(1-I)+(O-Y)*(1-te))/(te-I);se+$>c+f&&(c=se,f=$)}}}}}var fe=gr.constrain(t-i.l-i.r,IP,p),ie=gr.constrain(a-i.t-i.b,BP,y),ue=Math.max(0,t-fe),ce=Math.max(0,a-ie);if(ue){var oe=(s+u)/ue;oe>1&&(s/=oe,u/=oe)}if(ce){var be=(c+f)/ce;be>1&&(c/=be,f/=be)}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&&(er.didMarginChange(l,n)||Zye(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Re=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<Re)return Qr.call("_doPlot",e);r._size=l,gr.warn("Too many auto-margin redraws.")}$ye(e)};function $ye(e){var r=$n.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a<r.length;a++){var n=r[a][t];n&&n()}})}var FP=["l","r","t","b","p","w","h"];er.didMarginChange=function(e,r){for(var t=0;t<FP.length;t++){var a=FP[t],n=e[a],i=r[a];if(!kh(n)||Math.abs(i-n)>1)return!0}return!1};er.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&er.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(gr.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),y=gr.isTypedArray(c);if((p||y)&&c.dtype&&c.shape){var m=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:gr.isArrayBuffer(m)?Pye.encode(m):m},v)}return p?c.map(function(b){return s(b,v)}):y?gr.simpleMap(c,gr.identity):gr.isJSDate(c)?gr.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)};er.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()};er.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=er.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]=er.extendTrace(f.data[o],l.data[a]))}return f};er.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)}};er.extendObjectWithContainers=function(e,r,t){var a,n,i,o,l,s,u,f,c=gr.extendDeepNoArrays({},r||{}),v=gr.expandObjectPaths(c),d={};if(t&&t.length)for(i=0;i<t.length;i++)a=gr.nestedProperty(v,t[i]),n=a.get(),n===void 0?gr.nestedProperty(d,t[i]).set(null):(a.set(null),gr.nestedProperty(d,t[i]).set(n));if(e=gr.extendDeepNoArrays(e||{},v),t&&t.length){for(i=0;i<t.length;i++)if(l=gr.nestedProperty(d,t[i]),u=l.get(),!!u){for(s=gr.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]=er.extendObjectWithContainers(f[o],p)}s.set(f)}}return e};er.dataArrayContainers=["dimensions"];er.layoutArrayContainers=Qr.layoutArrayContainers;er.extendTrace=function(e,r){return er.extendObjectWithContainers(e,r,er.dataArrayContainers)};er.extendLayout=function(e,r){return er.extendObjectWithContainers(e,r,er.layoutArrayContainers)};er.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 y=p.basePlotModule.name;l[y]||(l[y]=[]),l[y].push(v)}e.data[f[c]]=er.extendTrace(e.data[f[c]],r[c])}}var m=gr.expandObjectPaths(gr.extendDeepNoArrays({},t)),b=/^[xy]axis[0-9]*$/;for(var T in m)b.test(T)&&delete m[T].range;er.extendLayout(e.layout,m),delete e.calcdata,er.supplyDefaults(e),er.doCalcdata(e);var w=gr.expandObjectPaths(t);if(w){var x=e._fullLayout._plots;for(var _ in x){var k=x[_],A=k.xaxis,q=k.yaxis,C=A.range.slice(),E=q.range.slice(),P=null,R=null,N=null,I=null;Array.isArray(w[A._name+".range"])?P=w[A._name+".range"].slice():Array.isArray((w[A._name]||{}).range)&&(P=w[A._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&&(A.r2l(C[0])!==A.r2l(P[0])||A.r2l(C[1])!==A.r2l(P[1]))&&(N={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}),(N||I)&&s.push(gr.extendFlat({plotinfo:k},N,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=gr.extendFlat({},i),f.duration=0,delete l.cartesian):f=i;for(var p in l){var y=l[p],m=e._fullData[y[0]]._module;m.basePlotModule.plot(e,y,f,u)}},OP(e,i,o)};er.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(),y=c.range.slice(),m=v.range.slice();c.setScale(),v.setScale();var b=null,T=null;(c.r2l(d[0])!==c.r2l(y[0])||c.r2l(d[1])!==c.r2l(y[1]))&&(b={xr0:d,xr1:y}),(v.r2l(p[0])!==v.r2l(m[0])||v.r2l(p[1])!==v.r2l(m[1]))&&(T={yr0:p,yr1:m}),(b||T)&&l.push(gr.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,y=[],m=0;m<u.length;m++)y.push(m);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=gr.extendFlat({},i,{duration:0}),p=y,d=i,setTimeout(b,i.duration),T()):(v=i,p=null,d=gr.extendFlat({},i,{duration:0}),setTimeout(T,v.duration),b()):l.length?(v=i,b()):r.anim&&(p=y,d=i,T())},OP(e,i,o)};function OP(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 Qr.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 Qr.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=[er.previousPromises,s,t.prepareFn,er.rehover,er.reselect,o],f=gr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}er.doCalcdata=function(e,r){var t=$n.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=Fye.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(y,m){if(i=a[y],o=i._module,!!o.isContainer===m){var b=[];i.visible===!0&&i._length!==0&&o&&o.calc&&(b=o.calc(e,i)),(!Array.isArray(b)||!b[0])&&(b=[{x:EP,y:EP}]),b[0].t||(b[0].t={}),b[0].trace=i,s[y]=b}}for(Qye(t,a,n),l=0;l<a.length;l++)d(l,!0);for(l=0;l<a.length;l++)d(l,!1);zP(e);var p=Kye(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);zP(e)}Qr.getComponentMethod("fx","calc")(e),Qr.getComponentMethod("errorbars","calc")(e)};var Jye=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function Kye(e,r){var t=[],a,n,i,o,l;function s(G,V,W){var j=V._id.charAt(0);if(G==="histogram2dcontour"){var J=V._counterAxes[0],te=$n.getFromId(r,J),ae=j==="x"||J==="x"&&te.type==="category",se=j==="y"||J==="y"&&te.type==="category";return function($,fe){return $===0||fe===0||ae&&$===W[fe].length-1||se&&fe===W.length-1?-1:(j==="y"?fe:$)-1}}else return function($,fe){return j==="y"?fe:$}}var u={min:function(G){return gr.aggNums(Math.min,null,G)},max:function(G){return gr.aggNums(Math.max,null,G)},sum:function(G){return gr.aggNums(function(V,W){return V+W},null,G)},total:function(G){return gr.aggNums(function(V,W){return V+W},null,G)},mean:function(G){return gr.mean(G)},"geometric mean":function(G){return gr.geometricMean(G)},median:function(G){return gr.median(G)}};function f(G,V){return G[1]-V[1]}function c(G,V){return V[1]-G[1]}for(a=0;a<e.length;a++){var v=e[a];if(v.type==="category"){var d=v.categoryorder.match(Jye);if(d){var p=d[1],y=d[2],m=v._id.charAt(0),b=m==="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;Qr.traceIs(x,"histogram")&&(delete x._xautoBinFinished,delete x._yautoBinFinished);var k=_==="splom",A=_==="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 N=x._diag[R][0];N&&(v=r._fullLayout[$n.id2name(N)])}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 O=C.trace.dimensions[l];T[E][1].push(O.values[o])}}else if(A){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 U=s(x.type,v,P);for(o=0;o<P.length;o++)for(l=0;l<P[o].length;l++)E=U(l,o),E+1&&T[E][1].push(P[o][l])}else{if(E=C.p,E===void 0&&(E=C[m]),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 Y=[];for(n=0;n<T.length;n++)Y.push([T[n][0],u[p](T[n][1])]);Y.sort(y==="descending"?c:f),v._categoriesAggregatedValue=Y,v._initialCategories=Y.map(function(G){return G[0]}),t=t.concat(v.sortByInitialCategories())}}}return t}function Qye(e,r,t){var a={};function n(s){s.clearCalc(),s.type==="multicategory"&&s.setupMultiCategory(r),a[s._id]=1}gr.simpleMap(e,n);for(var i=t._axisMatchGroups||[],o=0;o<i.length;o++)for(var l in i[o])a[l]||n(t[$n.id2name(l)])}function zP(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]?gr.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)}}er.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};er.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};er.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);Qr.getComponentMethod("selections","reselect")(e,n)};er.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,gr.filterVisible(d),a)}r.traceHash=i};er.plotBasePlot=function(e,r,t,a,n){var i=Qr.getModule(e),o=Hye(r.calcdata,i)[0];i.plot(r,o,a,n)};er.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 Il=z(Gu=>{"use strict";Gu.xmlns="http://www.w3.org/2000/xmlns/";Gu.svg="http://www.w3.org/2000/svg";Gu.xlink="http://www.w3.org/1999/xlink";Gu.svgAttrs={xmlns:Gu.svg,"xmlns:xlink":Gu.xlink}});var Qa=z((jGe,UP)=>{"use strict";UP.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Ca=z(vi=>{"use strict";var La=Er(),zi=ke(),ege=zi.strTranslate,v4=Il(),rge=Qa().LINE_SPACING,tge=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,XP=e=>e?e.match(tge):null;vi.matchTex=XP;vi.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&XP(a);n&&!oge()&&(n=null);var i=La.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=mge(e.node(),a);s&&e.style("pointer-events","all"),vi.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");lge(n[2],f,function(v,d,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var y=v&&v.select("svg");if(!y||!y.node()){l(),s();return}e.style("display","none");var m=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(y.node()),d&&d.node()&&y.node().insertBefore(d.node().cloneNode(!0),y.node().firstChild);var b=p.width,T=p.height;y.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=y.select("g");x.attr({fill:w,stroke:w});var _=x.node().getBoundingClientRect(),k=_.width,A=_.height;(k>b||A>T)&&(y.style("overflow","hidden"),_=y.node().getBoundingClientRect(),k=_.width,A=_.height);var q=+e.attr("x"),C=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,P=-E/4;o[0]==="y"?m.attr({transform:"rotate("+[-90,q,C]+")"+ege(-k/2,P-A/2)}):o[0]==="l"?C=P-A/2:o[0]==="a"&&o.indexOf("atitle")!==0?(q=0,C=P):(q=q-k*(c==="middle"?.5:c==="end"?1:0),C=C+P-A/2),y.attr({x:q,y:C}),t&&t.call(e,m),s(m)})})):l(),e};var age=/(<|&lt;|&#60;)/g,nge=/(>|&gt;|&#62;)/g;function ige(e){return e.replace(age,"\\lt ").replace(nge,"\\gt ")}var h4=null,ZP=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,GP=!1,YP=!1;function oge(){let e=ZP();return e===3||e===4?!0:(e===null?GP||(GP=!0,zi.warn("MathJax is not loaded. Math equations will not be rendered.")):YP||(YP=!0,zi.warn("Unsupported MathJax version:",MathJax.version)),!1)}function lge(e,r,t){let a=ZP();var n;let i=function(){if(!h4){let u=MathJax._.output.svg_ts.SVG,f=zi.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=zi.extendFlat({},f.linebreaks,{inline:!1})),h4=MathJax._.mathjax.mathjax.document(document,zi.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+zi.randstr({},64);n=La.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=ige(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return h4.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)zi.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=>{zi.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var $P={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"},sge={sub:"0.3em",sup:"-0.6em"},uge={sub:"-0.21em",sup:"0.42em"},VP="\u200B",jP=["http:","https:","mailto:","",void 0,":"],JP=vi.NEWLINES=/(\r\n?|\n)/g,p4=/(<[^<>]*>)/,m4=/<(\/?)([^ >]*)(\s+(.*))?>/i,fge=/<br(\s+.*)?>/i;vi.BR_TAG_ALL=/<br(\s+.*)?>/gi;var KP=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,QP=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,eR=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,cge=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Yu(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Op(a)}var vge=/(^|;)\s*color:/;vi.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(p4),l=[],s="",u=0,f=0;f<o.length;f++){var c=o[f],v=c.match(m4),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 y=t-u;s&&(s!=="br"||y<=i||p<=i)&&l.pop(),t>i?l.push(c.slice(0,Math.max(0,y-i))+n):l.push(c.slice(0,y));break}s=""}}return l.join("")};var hge={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},dge=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Op(e){return e.replace(dge,function(r,t){var a;return t.charAt(0)==="#"?a=pge(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=hge[t],a||r})}vi.convertEntities=Op;function pge(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 mge(e,r){r=r.replace(JP," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(v4.svg,"tspan");La.select(k).attr({class:"line",dy:i*rge+"em"}),e.appendChild(k),n=k;var A=a;if(a=[{node:k}],A.length>1)for(var q=1;q<A.length;q++)l(A[q])}function l(k){var A=k.type,q={},C;if(A==="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 N=document.createElementNS(v4.svg,C);if(A==="sup"||A==="sub"){s(n,VP),n.appendChild(N);var I=document.createElementNS(v4.svg,"tspan");s(I,VP),La.select(I).attr("dy",uge[A]),q.dy=sge[A],n.appendChild(N),n.appendChild(I)}else n.appendChild(N);La.select(N).attr(q),n=k.node=N,a.push(k)}function s(k,A){k.appendChild(document.createTextNode(A))}function u(k){if(a.length===1){zi.log("Ignoring unexpected end tag </"+k+">.",r);return}var A=a.pop();k!==A.type&&zi.log("Start tag <"+A.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=fge.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(p4),v=0;v<c.length;v++){var d=c[v],p=d.match(m4),y=p&&p[2].toLowerCase(),m=$P[y];if(y==="br")o();else if(m===void 0)s(n,Op(d));else if(p[1])u(y);else{var b=p[4],T={type:y},w=Yu(b,KP);if(w?(w=w.replace(vge,"$1 fill:"),m&&(w+=";"+m)):m&&(w=m),w&&(T.style=w),y==="a"){t=!0;var x=Yu(b,QP);if(x){var _=rR(x);_&&(T.href=_,T.target=Yu(b,eR)||"_blank",T.popup=Yu(b,cge))}}l(T)}}return t}function rR(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 jP.indexOf(n)!==-1&&jP.indexOf(i)!==-1?r:""}vi.sanitizeHTML=function(r){r=r.replace(JP," ");for(var t=document.createElement("p"),a=t,n=[],i=r.split(p4),o=0;o<i.length;o++){var l=i[o],s=l.match(m4),u=s&&s[2].toLowerCase();if(u in $P)if(s[1])n.length&&(a=n.pop());else{var f=s[4],c=Yu(f,KP),v=c?{style:c}:{};if(u==="a"){var d=Yu(f,QP);if(d){var p=rR(d);if(p){v.href=p;var y=Yu(f,eR);y&&(v.target=y)}}}var m=document.createElement(u);a.appendChild(m),La.select(m).attr(v),a=m,n.push(m)}else a.appendChild(document.createTextNode(Op(l)))}var b="innerHTML";return t[b]};vi.lineCount=function(r){return r.selectAll("tspan.line").size()||1};vi.positionText=function(r,t,a){return r.each(function(){var n=La.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 WP(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=zi.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 d4="1px ";vi.makeTextShadow=function(e){var r=d4,t=d4,a=d4;return r+t+a+e+", -"+r+"-"+t+a+e+", "+r+"-"+t+a+e+", -"+r+t+a+e};vi.makeEditable=function(e,r){var t=r.gd,a=r.delegate,n=La.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&&La.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=La.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(WP(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var y=La.select(this).attr("class"),m;y?m="."+y.split(" ")[0]+"-math-group":m="[class*=-math-group]",m&&La.select(e.node().parentNode).select(m).style({opacity:0});var b=this.textContent;La.select(this).transition().duration(0).remove(),La.select(document).on("mouseup",null),n.edit.call(e,b)}).on("focus",function(){var y=this;t._editing=!0,La.select(document).on("mouseup",function(){if(La.event.target===y)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){La.event.which===27?(t._editing=!1,e.style({opacity:1}),La.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),n.cancel.call(e,this.textContent)):(n.input.call(e,this.textContent),La.select(this).call(WP(e,f,r)))}).on("keydown",function(){La.event.which===13&&this.blur()}).call(l)}return r.immediate?o():i.on("click",o),La.rebind(e,n,"on")}});var hi=z((XGe,lR)=>{"use strict";var yge=Er(),qh=Ir(),Hp=ke(),Vu=Sr(),gge=Ru().isValid;function bge(e,r,t){var a=r?Hp.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Hp.isArrayOrTypedArray(n)){for(var o=0;o<n.length;o++)if(qh(n[o])){i=!0;break}}return Hp.isPlainObject(a)&&(i||a.showscale===!0||qh(a.cmin)&&qh(a.cmax)||gge(a.colorscale)||Hp.isPlainObject(a.colorbar))}var tR=["showscale","autocolorscale","colorscale","reversescale","colorbar"],Sh=["min","max","mid","auto"];function aR(e){var r=e._colorAx,t=r||e,a={},n,i,o;for(i=0;i<tR.length;i++)o=tR[i],a[o]=t[o];if(r)for(n="c",i=0;i<Sh.length;i++)o=Sh[i],a[o]=t["c"+o];else{var l;for(i=0;i<Sh.length;i++){if(o=Sh[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=Sh.indexOf(s)!==-1?n+s:s;t[f]=t["_"+f]=u},a}function nR(e){for(var r=aR(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 oR(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]=Vu.rgbaArray(a[o]);var l=yge.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 Vu.rgbaArrayToString(l(c))}:u?f=function(c){return qh(c)?l(c):Vu.isValid(c)?c:Vu.defaultLine}:f=function(c){return qh(c)?Vu.rgbaArrayToString(l(c)):Vu.isValid(c)?c:Vu.defaultLine},f.domain=l.domain,f.range=function(){return a},f}function xge(e,r){return oR(nR(e),r)}lR.exports={hasColorscale:bge,extractOpts:aR,extractScale:nR,flipScale:iR,makeColorScaleFunc:oR,makeColorScaleFuncFromTrace:xge}});var ko=z((ZGe,fR)=>{"use strict";var sR=P_(),_ge=sR.FORMAT_LINK,wge=sR.DATE_FORMAT_LINK;function Tge(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?y4:uR)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function y4(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: "+_ge+"."].join(" ")}function uR(e,r){return y4(e,r)+[" And for dates see: "+wge+".","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(" ")}fR.exports={axisHoverFormat:Tge,descriptionOnlyNumbers:y4,descriptionWithDates:uR}});var Ni=z((JGe,SR)=>{"use strict";var cR=ka(),j0=Ei(),kR=Pi().dash,b4=At().extendFlat,vR=St().templatedArray,$Ge=fi().templateFormatStringDescription,hR=ko().descriptionWithDates,Age=Gt().ONEDAY,Qo=qa(),Mge=Qo.HOUR_PATTERN,kge=Qo.WEEKDAY_PATTERN,g4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Sge=b4({},g4,{values:g4.values.slice().concat(["sync"])});function dR(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var pR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},mR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},yR={valType:"data_array",editType:"ticks"},gR={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function bR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function xR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var _R={valType:"color",dflt:j0.defaultLine,editType:"ticks"},wR={valType:"color",dflt:j0.lightLine,editType:"ticks"};function TR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var AR=b4({},kR,{editType:"ticks"}),MR={valType:"boolean",editType:"ticks"};SR.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:j0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:cR({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:[Qo.idRegex.x.toString(),Qo.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:[Qo.idRegex.x.toString(),Qo.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:[kge,Mge,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Age},editType:"calc"}),tickmode:Sge,nticks:dR(),tick0:pR,dtick:mR,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:yR,ticktext:{valType:"data_array",editType:"ticks"},ticks:gR,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:bR(),tickwidth:xR(),tickcolor:_R,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:b4({},kR,{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:cR({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:hR("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:hR("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:j0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:MR,gridcolor:wR,gridwidth:TR(),griddash:AR,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:j0.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:j0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Qo.idRegex.x.toString(),Qo.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Qo.idRegex.x.toString(),Qo.idRegex.y.toString()],editType:"plot"},minor:{tickmode:g4,nticks:dR("minor"),tick0:pR,dtick:mR,tickvals:yR,ticks:gR,ticklen:bR("minor"),tickwidth:xR("minor"),tickcolor:_R,gridcolor:wR,gridwidth:TR("minor"),griddash:AR,showgrid:MR,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Up=z((KGe,CR)=>{"use strict";var It=Ni(),qR=ka(),LR=At().extendFlat,qge=wo().overrideAll;CR.exports=qge({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:It.linecolor,outlinewidth:It.linewidth,bordercolor:It.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:It.minor.tickmode,nticks:It.nticks,tick0:It.tick0,dtick:It.dtick,tickvals:It.tickvals,ticktext:It.ticktext,ticks:LR({},It.ticks,{dflt:""}),ticklabeloverflow:LR({},It.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:It.ticklen,tickwidth:It.tickwidth,tickcolor:It.tickcolor,ticklabelstep:It.ticklabelstep,showticklabels:It.showticklabels,labelalias:It.labelalias,tickfont:qR({description:"Sets the color bar's tick label font"}),tickangle:It.tickangle,tickformat:It.tickformat,tickformatstops:It.tickformatstops,tickprefix:It.tickprefix,showtickprefix:It.showtickprefix,ticksuffix:It.ticksuffix,showticksuffix:It.showticksuffix,separatethousands:It.separatethousands,exponentformat:It.exponentformat,minexponent:It.minexponent,showexponent:It.showexponent,title:{text:{valType:"string"},font:qR({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var el=z((eYe,ER)=>{"use strict";var Lge=Up(),Cge=(C0(),un(L0)).counter,Dge=(U_(),un(H_)).default,DR=Ru().scales,QGe=Dge(DR);function Gp(e){return"`"+e+"`"}ER.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"?DR[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 "+Gp(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",b=Gp(u+d),T=Gp(u+p),w=Gp(u+y),x=T+" and "+w,_={};_[p]=_[y]=void 0;var k={};k[d]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(A.color.anim=!0)),A[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:_},A[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:_},A.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(A.showscale={valType:"boolean",dflt:o,editType:"calc"},A.colorbar=Lge),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:Cge("coloraxis"),dflt:null,editType:"calc"}),A}});var _4=z((rYe,PR)=>{"use strict";var Ege=At().extendFlat,Pge=el(),x4=Ru().scales;PR.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:x4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:x4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:x4.RdBu,editType:"calc"}},coloraxis:Ege({_isSubplotObj:!0,editType:"calc"},Pge("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var w4=z((tYe,RR)=>{"use strict";var Rge=ke();RR.exports=function(r){return Rge.isPlainObject(r.colorbar)}});var M4=z(A4=>{"use strict";var T4=Ir(),FR=ke(),zR=Gt(),Fge=zR.ONEDAY,zge=zR.ONEWEEK;A4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Fge:1;if(!e)return i;if(T4(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=T4(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};A4.tick0=function(e,r,t,a){if(r==="date")return FR.cleanDate(e,FR.dateTick0(t,a%zge===0?1:0));if(!(a==="D1"||a==="D2"))return T4(e)?Number(e):0}});var Yp=z((nYe,IR)=>{"use strict";var NR=M4(),Nge=ke().isArrayOrTypedArray,Ige=Vn().isTypedArraySpec,Bge=Vn().decodeTypedArraySpec;IR.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 Ige(_)&&(_=Bge(_)),_!==void 0?_:(s._template||{})[x]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=f("overlaying"),y=n==="category"||n==="multicategory",m;Nge(d)?m="array":v?m="linear":p&&!y?m="sync":m="auto";var b=a(u+"tickmode",m);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var T=s.dtick=NR.dtick(v,n);s.tick0=NR.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 Vp=z((iYe,OR)=>{"use strict";var k4=ke(),BR=Ni();OR.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?BR.minor:BR,u=i?"minor.":"",f=k4.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=k4.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=k4.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 S4=z((oYe,HR)=>{"use strict";HR.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 So=z((lYe,UR)=>{"use strict";var jp=ke(),Oge=St();UR.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=jp.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Oge.arrayTemplater(t,n,i),f,c;for(f=0;f<l.length;f++){var v=l[f];jp.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(jp.isArrayOrTypedArray(o)){var p=Math.min(o.length,s.length);for(f=0;f<p;f++)jp.relinkPrivateKeys(s[f],o[f])}return s}});var Wp=z((sYe,YR)=>{"use strict";var q4=ke(),Hge=Sr().contrast,GR=Ni(),Uge=S4(),Gge=So();YR.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");q4.isPlainObject(o)||delete t.labelalias;var l=Uge(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?Hge(i.bgColor):f&&f!==GR.color.dflt?f:u.color;if(q4.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");Gge(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Yge}),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 Yge(e,r){function t(n,i){return q4.coerce(e,r,GR.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var Xp=z((uYe,VR)=>{"use strict";var Vge=S4();VR.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Vge(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var L4=z((fYe,jR)=>{"use strict";var Ss=ke(),jge=St(),Wge=Yp(),Xge=Vp(),Zge=Wp(),$ge=Xp(),Jge=Up();jR.exports=function(r,t,a){var n=jge.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return Ss.coerce(i,n,Jge,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"),y=o("xref"),m=p==="paper",b=y==="paper",T,w,x,_="left";c?(x="middle",_=b?"left":"right",T=b?1.02:1,w=.5):(x=m?"bottom":"top",_="center",T=.5,w=m?1.02:1),Ss.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:T}},"x"),Ss.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:w}},"y"),o("xanchor",_),o("xpad"),o("yanchor",x),o("ypad"),Ss.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Ss.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"),Wge(i,n,o,"linear");var A=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};k.indexOf("inside")!==-1&&(q.bgColor="black"),$ge(i,n,o,"linear",q),Zge(i,n,o,"linear",q),Xge(i,n,o,"linear",q),o("title.text",a._dfltTitle.colorbar);var C=n.showticklabels?n.tickfont:A,E=Ss.extendFlat({},A,{family:C.family,size:Ss.bigFont(C.size)});Ss.coerceFont(o,"title.font",E),o("title.side",c?"top":"right")}});var Bl=z((cYe,ZR)=>{"use strict";var WR=Ir(),D4=ke(),Kge=w4(),Qge=L4(),XR=Ru().isValid,e3e=Tr().traceIs;function C4(e,r){var t=r.slice(0,r.length-1);return r?D4.nestedProperty(e,t).get()||{}:e}ZR.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=C4(r,o),f=C4(t,o),c=C4(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 y=e3e(t,"contour")&&D4.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,D4.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[v]];return}}var b=u[l+"min"],T=u[l+"max"],w=WR(b)&&WR(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,A;if(_!==void 0&&(A=!XR(_)),k!==void 0&&(A=!XR(k)),n(o+"autocolorscale",A),n(o+"colorscale"),n(o+"reversescale"),o!=="marker.line."){var q;o&&s&&(q=Kge(u));var C=n(o+"showscale",q);C&&(o&&c&&(f._template=c),Qge(u,f,a))}}});var QR=z((vYe,KR)=>{"use strict";var $R=ke(),r3e=St(),JR=_4(),t3e=Bl();KR.exports=function(r,t){function a(c,v){return $R.coerce(r,t,JR,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return $R.coerce(i,o,JR.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=r3e.newContainer(t,s,"coloraxis"),o._name=s,t3e(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 rF=z((hYe,eF)=>{"use strict";var a3e=ke(),n3e=hi().hasColorscale,i3e=hi().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?a3e.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=i3e(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);n3e(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 W0=z((dYe,aF)=>{"use strict";var tF=Ir(),E4=ke(),o3e=hi().extractOpts;aF.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?E4.nestedProperty(t,o).get():t,s=o3e(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return E4.aggNums(Math.min,null,i)},p=function(){return E4.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&tF(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&tF(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 y;f*c<0?y=n.colorscale.diverging:f>=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var rl=z((pYe,nF)=>{"use strict";var Zp=Ru(),X0=hi();nF.exports={moduleType:"component",name:"colorscale",attributes:el(),layoutAttributes:_4(),supplyLayoutDefaults:QR(),handleDefaults:Bl(),crossTraceDefaults:rF(),calc:W0(),scales:Zp.scales,defaultScale:Zp.defaultScale,getScale:Zp.get,isValidScale:Zp.isValid,hasColorscale:X0.hasColorscale,extractOpts:X0.extractOpts,extractScale:X0.extractScale,flipScale:X0.flipScale,makeColorScaleFunc:X0.makeColorScaleFunc,makeColorScaleFuncFromTrace:X0.makeColorScaleFuncFromTrace}});var Jn=z((mYe,oF)=>{"use strict";var iF=ke(),l3e=Vn().isTypedArraySpec;oF.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 iF.isPlainObject(r)&&(iF.isArrayOrTypedArray(r.size)||l3e(r.size))}}});var sF=z((yYe,lF)=>{"use strict";var s3e=Ir();lF.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 s3e(s)&&s>0?Math.max(s,i):0}}});var qo=z(en=>{"use strict";var Lh=ke();en.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};en.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(en.getSubplot(e))!==-1};en.flat=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=r;return t};en.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};en.c2dApply=function(e,r){e.length!==r.length&&Lh.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};en.getDistanceFunction=function(e,r,t,a){return e==="closest"?a||en.quadrature(r,t):e.charAt(0)==="x"?r:t};en.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};en.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};en.quadrature=function(e,r){return function(t){var a=e(t),n=r(t);return Math.sqrt(a*a+n*n)}};en.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)),en.appendArrayPointValue(n,r,a),n};en.appendArrayPointValue=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=uF(i);if(e[o]===void 0){var l=Lh.nestedProperty(r,i).get(),s=fF(l,t);s!==void 0&&(e[o]=s)}}};en.appendArrayMultiPointValues=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=uF(i);if(e[o]===void 0){for(var l=Lh.nestedProperty(r,i).get(),s=new Array(t.length),u=0;u<t.length;u++)s[u]=fF(l,t[u]);e[o]=s}}};var u3e={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function uF(e){return u3e[e]||e}function fF(e,r){if(Array.isArray(r)){if(Lh.isArrayOrTypedArray(e)&&Lh.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var f3e={x:!0,y:!0},c3e={"x unified":!0,"y unified":!0};en.isUnifiedHover=function(e){return typeof e!="string"?!1:!!c3e[e]};en.isXYhover=function(e){return typeof e!="string"?!1:!!f3e[e]}});var R4=z((bYe,cF)=>{var P4={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},v3e=/([astvzqmhlc])([^astvzqmhlc]*)/gi,h3e=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function d3e(e){let r=[];return e.replace(v3e,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=p3e(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===P4[i])return r.push([o,...l]),"";if(l.length<P4[i])throw new Error("malformed path data");r.push([o,...l.splice(0,P4[i])])}}),r}function p3e(e){let r=e.match(h3e);return r?r.map(Number):[]}cF.exports=d3e});var gF=z((xYe,yF)=>{"use strict";var m3e=R4(),Ke=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Pr="M0,0Z",vF=Math.sqrt(2),qs=Math.sqrt(3),F4=Math.PI,z4=Math.cos,N4=Math.sin;yF.exports={circle:{n:0,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Fr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return Fr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.3,2);return Fr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*.4,2),n=Ke(e*1.2,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*.8/vF,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Fr(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(Rr(r))return Pr;var a=Ke(e*2/qs,2),n=Ke(e/2,2),i=Ke(e,2);return Fr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*2/qs,2),n=Ke(e/2,2),i=Ke(e,2);return Fr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*2/qs,2),n=Ke(e/2,2),i=Ke(e,2);return Fr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*2/qs,2),n=Ke(e/2,2),i=Ke(e,2);return Fr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*.6,2),n=Ke(e*1.2,2);return Fr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*.6,2),n=Ke(e*1.2,2);return Fr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*.6,2),n=Ke(e*1.2,2);return Fr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*.6,2),n=Ke(e*1.2,2);return Fr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*.951,2),n=Ke(e*.588,2),i=Ke(-e,2),o=Ke(e*-.309,2),l=Ke(e*.809,2);return Fr(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(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e/2,2),i=Ke(e*qs/2,2);return Fr(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(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e/2,2),i=Ke(e*qs/2,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*.924,2),n=Ke(e*.383,2);return Fr(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(Rr(r))return Pr;var a=e*1.4,n=Ke(a*.225,2),i=Ke(a*.951,2),o=Ke(a*.363,2),l=Ke(a*.588,2),s=Ke(-a,2),u=Ke(a*-.309,2),f=Ke(a*.118,2),c=Ke(a*.809,2),v=Ke(a*.382,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*.66,2),n=Ke(e*.38,2),i=Ke(e*.76,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*qs*.8,2),n=Ke(e*.8,2),i=Ke(e*1.6,2),o=Ke(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Fr(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(Rr(r))return Pr;var a=Ke(e*qs*.8,2),n=Ke(e*.8,2),i=Ke(e*1.6,2),o=Ke(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Fr(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(Rr(r))return Pr;var a=Ke(e*1.1,2),n=Ke(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Fr(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(Rr(r))return Pr;var a=Ke(e*1.4,2),n=Ke(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Fr(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(Rr(r))return Pr;var a=Ke(e*.7,2),n=Ke(e*1.4,2);return Fr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.4,2),n=Ke(e*.7,2);return Fr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return Fr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return Fr(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(Rr(r))return Pr;var a=Ke(e,2);return Fr(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(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e/vF,2);return Fr(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(Rr(r))return Pr;var a=Ke(e,2);return Fr(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(Rr(r))return Pr;var a=Ke(e,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*1.3,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*1.3,2),n=Ke(e*.65,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*1.4,2);return Fr(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(Rr(r))return Pr;var a=Ke(e,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*1.2,2),n=Ke(e*.85,2);return Fr(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(Rr(r))return Pr;var a=Ke(e/2,2),n=Ke(e,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*1.2,2),n=Ke(e*1.6,2),i=Ke(e*.8,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*1.2,2),n=Ke(e*1.6,2),i=Ke(e*.8,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*1.2,2),n=Ke(e*1.6,2),i=Ke(e*.8,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*1.2,2),n=Ke(e*1.6,2),i=Ke(e*.8,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*1.4,2);return Fr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.4,2);return Fr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return Fr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return Fr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e*2,2);return Fr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e*2,2);return Fr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*2,2),n=Ke(e,2);return Fr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*2,2),n=Ke(e,2);return Fr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e*2,2);return Fr(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(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e*2,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*2,2),n=Ke(e,2);return Fr(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(Rr(r))return Pr;var a=Ke(e*2,2),n=Ke(e,2);return Fr(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(Rr(r))return Pr;var a=F4/2.5,n=2*e*z4(a),i=2*e*N4(a);return Fr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Rr(r))return Pr;var a=F4/4,n=2*e*z4(a),i=2*e*N4(a);return Fr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Rr(e){return e===null}var hF,dF,pF,mF;function Fr(e,r,t){if((!e||e%360===0)&&!r)return t;if(pF===e&&mF===r&&hF===t)return dF;pF=e,mF=r,hF=t;function a(m,b){var T=z4(m),w=N4(m),x=b[0],_=b[1]+(r||0);return[x*T-_*w,x*w+_*T]}for(var n=e/180*F4,i=0,o=0,l=m3e(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 y=a(n,[i,o]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=y[0],f[2]=y[1]),f[0]=c,s+=f[0]+f.slice(1).join(",")}return dF=s,s}});var Zr=z((_Ye,IF)=>{"use strict";var Fa=Er(),bt=ke(),y3e=bt.numberFormat,Ls=Ir(),Jp=Tr(),Da=Sr(),g3e=rl(),Dh=bt.strTranslate,Kp=Ca(),b3e=Il(),x3e=Qa(),_3e=x3e.LINE_SPACING,qF=lp().DESELECTDIM,w3e=Jn(),T3e=sF(),A3e=qo().appendArrayPointValue,rr=IF.exports={};rr.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(Da.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",I4(k3e(f))),s&&e.style("text-shadow",s==="auto"?Kp.makeTextShadow(Da.contrast(i)):I4(s)),u&&e.style("text-decoration-line",I4(S3e(u)))};function I4(e){return e==="none"?void 0:e}var M3e={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function k3e(e){return M3e[e]}function S3e(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}rr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};rr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};rr.setRect=function(e,r,t,a,n){e.call(rr.setPosition,r,t).call(rr.setSize,a,n)};rr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Ls(n)&&Ls(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Dh(n,i));else return!1;return!0};rr.translatePoints=function(e,r,t){e.each(function(a){var n=Fa.select(this);rr.translatePoint(a,n,r,t)})};rr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};rr.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=Jp.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){rr.hideOutsideRangePoint(u,Fa.select(this),t,a,o,l)})})}};rr.crispRound=function(e,r,t){return!r||!Ls(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};rr.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||"";Da.stroke(r,a||i.color),rr.dashLine(r,l,o)};rr.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||"";Fa.select(this).call(Da.stroke,t||i.color).call(rr.dashLine,l,o)})};rr.dashLine=function(e,r,t){t=+t||0,r=rr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};rr.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 LF(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=rr.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;rr.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,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),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(EF,t,y,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(rr.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Da.fill,r.fillcolor)}rr.singleFillStyle=function(e,r){var t=Fa.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};LF(e,n,r,!1)};rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Fa.select(this);a[0].trace&&LF(n,a[0].trace,r,t)})};var bF=gF();rr.symbolNames=[];rr.symbolFuncs=[];rr.symbolBackOffs=[];rr.symbolNeedLines={};rr.symbolNoDot={};rr.symbolNoFill={};rr.symbolList=[];Object.keys(bF).forEach(function(e){var r=bF[e],t=r.n;rr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),rr.symbolNames[t]=e,rr.symbolFuncs[t]=r.f,rr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(rr.symbolNeedLines[t]=!0),r.noDot?rr.symbolNoDot[t]=!0:rr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(rr.symbolNoFill[t]=!0)});var q3e=rr.symbolNames.length,L3e="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";rr.symbolNumber=function(e){if(Ls(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=rr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=q3e||e>=400?0:Math.floor(Math.max(e,0))};function CF(e,r,t,a){var n=e%100;return rr.symbolFuncs[n](r,t,a)+(e>=200?L3e:"")}var xF=y3e("~f"),DF={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}};rr.gradient=function(e,r,t,a,n,i){var o=DF[a];return EF(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function EF(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]=[xF((1-n[d][0])*100),n[d][1]]:v[d]=[xF(n[d][0]*100),n[d][1]];var p=r._fullLayout,y="g"+p._uid+"-"+t,m=p._defs.select(".gradients").selectAll("#"+y).data([a+v.join(";")],bt.identity);m.exit().remove(),m.enter().append(c.node).each(function(){var b=Fa.select(this);c.attrs&&b.attr(c.attrs),b.attr("id",y);var T=b.selectAll("stop").data(v);T.exit().remove(),T.enter().append("stop"),T.each(function(w){Fa.select(this).attr({offset:w[0]+"%","stop-color":Da.rgb(w[1]),"stop-opacity":Da.parse(w[1]).alpha})})}),e.style(i,G4(y,r)).style(i+"-opacity",null),e.classed("gradient_filled",!0)}rr.pattern=function(e,r,t,a,n,i,o,l,s,u,f,c){var v=r==="legend";l&&(s==="overlay"?(u=l,f=Da.contrast(u)):(u=void 0,f=l));var d=t._fullLayout,p="p"+d._uid+"-"+a,y,m,b=function(R,N,I,O,U){return O+(U-O)*(R-N)/(I-N)},T,w,x,_,k={},A=Da.rgb(f),q=Da.parse(f).alpha,C=c*q;switch(n){case"/":y=i*Math.sqrt(2),m=i*Math.sqrt(2),T="M-"+y/4+","+m/4+"l"+y/2+",-"+m/2+"M0,"+m+"L"+y+",0M"+y/4*3+","+m/4*5+"l"+y/2+",-"+m/2,w=o*i,_="path",k={d:T,opacity:C,stroke:A,"stroke-width":w+"px"};break;case"\\":y=i*Math.sqrt(2),m=i*Math.sqrt(2),T="M"+y/4*3+",-"+m/4+"l"+y/2+","+m/2+"M0,0L"+y+","+m+"M-"+y/4+","+m/4*3+"l"+y/2+","+m/2,w=o*i,_="path",k={d:T,opacity:C,stroke:A,"stroke-width":w+"px"};break;case"x":y=i*Math.sqrt(2),m=i*Math.sqrt(2),T="M-"+y/4+","+m/4+"l"+y/2+",-"+m/2+"M0,"+m+"L"+y+",0M"+y/4*3+","+m/4*5+"l"+y/2+",-"+m/2+"M"+y/4*3+",-"+m/4+"l"+y/2+","+m/2+"M0,0L"+y+","+m+"M-"+y/4+","+m/4*3+"l"+y/2+","+m/2,w=i-i*Math.sqrt(1-o),_="path",k={d:T,opacity:C,stroke:A,"stroke-width":w+"px"};break;case"|":y=i,m=i,_="path",T="M"+y/2+",0L"+y/2+","+m,w=o*i,_="path",k={d:T,opacity:C,stroke:A,"stroke-width":w+"px"};break;case"-":y=i,m=i,_="path",T="M0,"+m/2+"L"+y+","+m/2,w=o*i,_="path",k={d:T,opacity:C,stroke:A,"stroke-width":w+"px"};break;case"+":y=i,m=i,_="path",T="M"+y/2+",0L"+y/2+","+m+"M0,"+m/2+"L"+y+","+m/2,w=i-i*Math.sqrt(1-o),_="path",k={d:T,opacity:C,stroke:A,"stroke-width":w+"px"};break;case".":y=i,m=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:y/2,cy:m/2,r:x,opacity:C,fill:A};break;default:y=i,m=i,_="path",k={d:n,opacity:C,fill:A};break}var E=[n||"noSh",u||"noBg",f||"noFg",i,o].join(";"),P=d._defs.select(".patterns").selectAll("#"+p).data([E],bt.identity);P.exit().remove(),P.enter().append("pattern").each(function(){var R=Fa.select(this);if(R.attr({id:p,width:y+"px",height:m+"px",patternUnits:"userSpaceOnUse",patternTransform:v?"scale(0.8)":""}),u){var N=Da.rgb(u),I=Da.parse(u).alpha,O=R.selectAll("rect").data([0]);O.exit().remove(),O.enter().append("rect").attr({width:y+"px",height:m+"px",fill:N,"fill-opacity":I})}var U=R.selectAll(_).data([0]);U.exit().remove(),U.enter().append(_).attr(k)}),e.style("fill",G4(p,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};rr.initGradients=function(e){var r=e._fullLayout,t=bt.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),Fa.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};rr.initPatterns=function(e){var r=e._fullLayout,t=bt.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),Fa.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};rr.getPatternAttr=function(e,r,t){return e&&bt.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};rr.pointStyle=function(e,r,t,a){if(e.size()){var n=rr.makePointStyleFns(r);e.each(function(i){rr.singlePointStyle(i,Fa.select(this),r,n,t,a)})}};rr.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=rr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=V4(e,t),c=Y4(e,t);r.attr("d",CF(u,s,f,c))}var v=!1,d,p,y;if(e.so)y=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):bt.isArrayOrTypedArray(l.color)?p=Da.defaultLine:p=l.color,bt.isArrayOrTypedArray(o.color)&&(d=Da.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&&rr.dashLine(r,b,y),e.om)r.call(Da.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var T=o.gradient,w=e.mgt;w?v=!0:w=T&&T.type,bt.isArrayOrTypedArray(w)&&(w=w[0],DF[w]||(w=0));var x=o.pattern,_=rr.getPatternAttr,k=x&&(_(x.shape,e.i,"")||_(x.path,e.i,""));if(w&&w!=="none"){var A=e.mgc;A?v=!0:A=T.color;var q=t.uid;v&&(q+="-"+e.i),rr.gradient(r,n,q,w,[[0,A],[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),N=x.fgopacity,I=_(x.size,e.i,8),O=_(x.solidity,e.i,.3);C=C||e.mcc||bt.isArrayOrTypedArray(x.shape)||bt.isArrayOrTypedArray(x.path)||bt.isArrayOrTypedArray(x.bgcolor)||bt.isArrayOrTypedArray(x.fgcolor)||bt.isArrayOrTypedArray(x.size)||bt.isArrayOrTypedArray(x.solidity);var U=t.uid;C&&(U+="-"+e.i),rr.pattern(r,"point",n,U,k,I,O,e.mcc,x.fillmode,R,P,N)}else bt.isArrayOrTypedArray(d)?Da.fill(r,d[e.i]):Da.fill(r,d);y&&Da.stroke(r,p)}};rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=rr.tryColorscale(t,""),r.lineScale=rr.tryColorscale(t,"line"),Jp.traceIs(e,"symbols")&&(r.ms2mrc=w3e.isBubble(e)?T3e(e):function(){return(t.size||6)/2}),e.selectedpoints&&bt.extendFlat(r,rr.makeSelectedPointStyleFns(e)),r};rr.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;(bt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(x){var _=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:_:c?u:qF*_});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 y=n.size,m=i.size,b=o.size,T=m!==void 0,w=b!==void 0;return Jp.traceIs(e,"symbols")&&(T||w)&&(r.selectedSizeFn=function(x){var _=x.mrc||y/2;return x.selected?T?m/2:_:w?b/2:_}),r};rr.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:Da.addOpacity(c,qF))},r};rr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.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){Da.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",CF(rr.symbolNumber(l),s,V4(o,r),Y4(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=Fa.select(this),l=0;l<n.length;l++)n[l](o,i)})}};rr.tryColorscale=function(e,r){var t=r?bt.nestedProperty(e,r).get():e;if(t){var a=t.color;if((t.colorscale||t._colorAx)&&bt.isArrayOrTypedArray(a))return g3e.makeColorScaleFuncFromTrace(t)}return bt.identity};var B4={start:1,end:-1,middle:0,bottom:1,top:-1};function PF(e,r,t,a,n){var i=Fa.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=(Kp.lineCount(e)-1)*_3e+1,f=B4[l]*s,c=t*.75+B4[o]*s+(B4[o]-1)*u*t/2;e.attr("text-anchor",l),n||i.attr("transform",Dh(f,c))}function RF(e,r){var t=e.ts||r.textfont.size;return Ls(t)&&t>0?t:0}rr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=rr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=Fa.select(this),u=i?bt.extractOption(l,r,"txt","texttemplate"):bt.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={};A3e(v,r,l.i),u=bt.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=RF(l,r),y=a?a(l):l.tc||r.textfont.color;s.call(rr.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:y}).text(u).call(Kp.convertToTspans,t).call(PF,d,p,l.mrc)})}};rr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Fa.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=RF(a,r);Da.fill(n,i);var s=Jp.traceIs(r,"bar-like");PF(n,o,l,a.mrc2||a.mrc,s)})}};var _F=.5;rr.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($p(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};rr.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],a=e.length-1,n=[$p(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push($p(e[i-1],e[i],e[i+1],r));for(n.push($p(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 FF,zF;function Z0(e,r,t){return t&&(e=NF(e)),r?Xu(e[1]):Wu(e[0])}function Wu(e){var r=Fa.round(e,2);return FF=r,r}function Xu(e){var r=Fa.round(e,2);return zF=r,r}function $p(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,_F/2),u=Math.pow(o*o+l*l,_F/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[[Wu(r[0]+(v&&f/v)),Xu(r[1]+(v&&c/v))],[Wu(r[0]-(d&&f/d)),Xu(r[1]-(d&&c/d))]]}var C3e={hv:function(e,r,t){return"H"+Wu(r[0])+"V"+Z0(r,1,t)},vh:function(e,r,t){return"V"+Xu(r[1])+"H"+Z0(r,0,t)},hvh:function(e,r,t){return"H"+Wu((e[0]+r[0])/2)+"V"+Xu(r[1])+"H"+Z0(r,0,t)},vhv:function(e,r,t){return"V"+Xu((e[1]+r[1])/2)+"H"+Wu(r[0])+"V"+Z0(r,1,t)}},D3e=function(e,r,t){return"L"+Z0(r,0,t)+","+Z0(r,1,t)};rr.steps=function(e){var r=C3e[e]||D3e;return function(t){for(var a="M"+Wu(t[0][0])+","+Xu(t[0][1]),n=t.length,i=1;i<n;i++)a+=r(t[i-1],t[i],i===n-1);return a}};function NF(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=bt.isArrayOrTypedArray(t),l=e,s=r?r[0]:FF||0,u=r?r[1]:zF||0,f=l[0],c=l[1],v=f-s,d=c-u,p=Math.atan2(d,v),y=o?t[i]:t;if(y==="auto"){var m=l.i;a.type==="scatter"&&m--;var b=l.marker,T=b.symbol;bt.isArrayOrTypedArray(T)&&(T=T[m]);var w=b.size;bt.isArrayOrTypedArray(w)&&(w=w[m]),y=b?rr.symbolBackOffs[rr.symbolNumber(T)]*w:0,y+=rr.getMarkerStandoff(n[m],a)||0}var x=f-y*Math.cos(p),_=c-y*Math.sin(p);(x<=f&&x>=s||x>=f&&x<=s)&&(_<=c&&_>=u||_>=c&&_<=u)&&(e=[x,_])}return e}rr.applyBackoff=NF;rr.makeTester=function(){var e=bt.ensureSingleById(Fa.select("body"),"svg","js-plotly-tester",function(t){t.attr(b3e.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=bt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});rr.tester=e,rr.testref=r};rr.savedBBoxes={};var O4=0,E3e=1e4;rr.bBox=function(e,r,t){t||(t=wF(e));var a;if(t){if(a=rr.savedBBoxes[t],a)return bt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=wF(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=rr.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=rr.savedBBoxes[t],a)return bt.extendFlat({},a)}}var u,f;r?u=e:(f=rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Fa.select(u).attr("transform",null).call(Kp.positionText,0,0);var c=u.getBoundingClientRect(),v=rr.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 O4>=E3e&&(rr.savedBBoxes={},O4=0),t&&(rr.savedBBoxes[t]=d),O4++,bt.extendFlat({},d)};function wF(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}rr.setClipUrl=function(e,r,t){e.attr("clip-path",G4(r,t))};function G4(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}rr.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}};rr.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+=Dh(r,t),o=o.trim(),e[i]("transform",o),o};rr.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}};rr.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 P3e=/\s*sc.*/;rr.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(P3e,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var R3e=/translate\([^)]*\)\s*$/;rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Fa.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(R3e);r===1&&t===1?a=[]:a=[Dh(o,l),"scale("+r+","+t+")",Dh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Y4(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}rr.getMarkerStandoff=Y4;var Ch=Math.atan2,ju=Math.cos,$0=Math.sin;function TF(e,r){var t=r[0],a=r[1];return[t*ju(e)-a*$0(e),t*$0(e)+a*ju(e)]}var AF,MF,kF,SF,H4,U4;function V4(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Ls(t)||bt.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=Ch(v[1]-n,v[0]-a),p=Ch(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=u/180*Math.PI,b=f/180*Math.PI,T=AF/180*Math.PI,w=MF/180*Math.PI,x=T-m,_=ju(w)*$0(x),k=$0(w)*ju(b)-ju(w)*$0(b)*ju(x);y=-Ch(_,k)-Math.PI,AF=u,MF=f}var A=TF(d,[ju(y),0]),q=TF(p,[$0(y),0]);t=Ch(A[1]+q[1],A[0]+q[0])/Math.PI*180,i==="previous"&&!(U4===r.uid&&e.i===H4+1)&&(t=null)}if(i==="previous"&&!r._geo)if(U4===r.uid&&e.i===H4+1&&Ls(a)&&Ls(n)){var C=a-kF,E=n-SF,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(E=0),R==="v"&&(C=0),t+=Ch(E,C)/Math.PI*180+90}else t=null}return kF=a,SF=n,H4=e.i,U4=r.uid,t}rr.getMarkerAngle=V4});var Q0=z((wYe,UF)=>{"use strict";var J0=Er(),F3e=Ir(),z3e=va(),j4=Tr(),Zu=ke(),BF=Zu.strTranslate,Qp=Zr(),em=Sr(),K0=Ca(),OF=lp(),N3e=Qa().OPPOSITE_SIDE,HF=/ [XY][0-9]* /,W4=1.6,X4=1.6;function I3e(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(),y=!1,m=d&&d.font?d.font:{},b=m.family,T=m.size,w=m.color,x=m.weight,_=m.style,k=m.variant,A=m.textcase,q=m.lineposition,C=m.shadow,E=t.subtitlePropName,P=!!E,R=t.subtitlePlaceholder,N=(n.title||{}).subtitle||{text:"",font:{}},I=(N.text||"").trim(),O=!1,U=1,Y=N.font,G=Y.family,V=Y.size,W=Y.color,j=Y.weight,J=Y.style,te=Y.variant,ae=Y.textcase,se=Y.lineposition,$=Y.shadow,fe;i==="title.text"?fe="titleText":i.indexOf("axis")!==-1?fe="axisTitleText":i.indexOf("colorbar")!==-1&&(fe="colorbarTitleText");var ie=e._context.edits[fe];function ue($e,We){return $e===void 0||We===void 0?!1:$e.replace(HF," % ")===We.replace(HF," % ")}p===""?v=0:ue(p,o)&&(ie||(p=""),v=.2,y=!0),P&&(I===""?U=0:ue(I,R)&&(ie||(I=""),U=.2,O=!0)),t._meta?p=Zu.templateString(p,t._meta):a._meta&&(p=Zu.templateString(p,a._meta));var ce=p||I||ie,oe;c||(c=Zu.ensureSingle(a._infolayer,"g","g-"+r),oe=a._hColorbarMoveTitle);var be=c.selectAll("text."+r).data(ce?[0]:[]);be.enter().append("text"),be.text(p).attr("class",r),be.exit().remove();var Re=null,ye=r+"-subtitle",Ce=I||ie;if(P&&(Re=c.selectAll("text."+ye).data(Ce?[0]:[]),Re.enter().append("text"),Re.text(I).attr("class",ye),Re.exit().remove()),!ce)return c;function Me($e,We){Zu.syncOrAsync([Le,De],{title:$e,subtitle:We})}function Le($e){var We=$e.title,Se=$e.subtitle,Fe;!f&&oe&&(f={}),f?(Fe="",f.rotate&&(Fe+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||oe)&&(Fe+=BF(0,(f.offset||0)-(oe||0)))):Fe=null,We.attr("transform",Fe);function Qe(me){if(me){var Ae=J0.select(me.node().parentNode).select("."+ye);if(!Ae.empty()){var He=me.node().getBBox();if(He.height){var Ze=He.y+He.height+W4*V;Ae.attr("y",Ze)}}}}if(We.style("opacity",v*em.opacity(w)).call(Qp.font,{color:em.rgb(w),size:J0.round(T,2),family:b,weight:x,style:_,variant:k,textcase:A,shadow:C,lineposition:q}).attr(u).call(K0.convertToTspans,e,Qe),Se&&!Se.empty()){var re=c.select("."+r+"-math-group"),xe=We.node().getBBox(),Ge=re.node()?re.node().getBBox():void 0,cr=Ge?Ge.y+Ge.height+W4*V:xe.y+xe.height+X4*V,Pe=Zu.extendFlat({},u,{y:cr});Se.attr("transform",Fe),Se.style("opacity",U*em.opacity(W)).call(Qp.font,{color:em.rgb(W),size:J0.round(V,2),family:G,weight:j,style:J,variant:te,textcase:ae,shadow:$,lineposition:se}).attr(Pe).call(K0.convertToTspans,e)}return z3e.previousPromises(e)}function De($e){var We=$e.title,Se=J0.select(We.node().parentNode);if(s&&s.selection&&s.side&&p){Se.attr("transform",null);var Fe=N3e[s.side],Qe=s.side==="left"||s.side==="top"?-1:1,re=F3e(s.pad)?s.pad:2,xe=Qp.bBox(Se.node()),Ge={t:0,b:0,l:0,r:0},cr=e._fullLayout._reservedMargin;for(var Pe in cr)for(var me in cr[Pe]){var Ae=cr[Pe][me];Ge[me]=Math.max(Ge[me],Ae)}var He={left:Ge.l,top:Ge.t,right:a.width-Ge.r,bottom:a.height-Ge.b},Ze=s.maxShift||Qe*(He[s.side]-xe[s.side]),Be=0;if(Ze<0)Be=Ze;else{var je=s.offsetLeft||0,tr=s.offsetTop||0;xe.left-=je,xe.right-=je,xe.top-=tr,xe.bottom-=tr,s.selection.each(function(){var lr=Qp.bBox(this);Zu.bBoxIntersect(xe,lr,re)&&(Be=Math.max(Be,Qe*(lr[s.side]-xe[Fe])+re))}),Be=Math.min(Ze,Be),n._titleScoot=Math.abs(Be)}if(Be>0||Ze<0){var ir={left:[-Be,0],right:[Be,0],top:[0,-Be],bottom:[0,Be]}[s.side];Se.attr("transform",BF(ir[0],ir[1]))}}}be.call(Me,Re);function Ne($e,We){$e.text(We).on("mouseover.opacity",function(){J0.select(this).transition().duration(OF.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){J0.select(this).transition().duration(OF.HIDE_PLACEHOLDER).style("opacity",0)})}if(ie&&(p?be.on(".opacity",null):(Ne(be,o),y=!0),be.call(K0.makeEditable,{gd:e}).on("edit",function($e){l!==void 0?j4.call("_guiRestyle",e,i,$e,l):j4.call("_guiRelayout",e,i,$e)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function($e){this.text($e||" ").call(K0.positionText,u.x,u.y)}),P)){if(P&&!p){var qe=be.node().getBBox(),Xe=qe.y+qe.height+X4*V;Re.attr("y",Xe)}I?Re.on(".opacity",null):(Ne(Re,R),O=!0),Re.call(K0.makeEditable,{gd:e}).on("edit",function($e){j4.call("_guiRelayout",e,"title.subtitle.text",$e)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function($e){this.text($e||" ").call(K0.positionText,Re.attr("x"),Re.attr("y"))})}return be.classed("js-placeholder",y),Re&&!Re.empty()&&Re.classed("js-placeholder",O),c}UF.exports={draw:I3e,SUBTITLE_PADDING_EM:X4,SUBTITLE_PADDING_MATHJAX_EM:W4}});var ec=z((TYe,WF)=>{"use strict";var B3e=Er(),O3e=p0().utcFormat,qt=ke(),H3e=qt.numberFormat,tl=Ir(),Cs=qt.cleanNumber,U3e=qt.ms2DateTime,GF=qt.dateTime2ms,al=qt.ensureNumber,YF=qt.isArrayOrTypedArray,Ds=Gt(),rm=Ds.FP_SAFE,Lo=Ds.BADNUM,G3e=Ds.LOG_CLIP,Y3e=Ds.ONEWEEK,tm=Ds.ONEDAY,am=Ds.ONEHOUR,VF=Ds.ONEMIN,jF=Ds.ONESEC,nm=ba(),lm=qa(),im=lm.HOUR_PATTERN,om=lm.WEEKDAY_PATTERN;function Eh(e){return Math.pow(10,e)}function Z4(e){return e!=null}WF.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],A=r.range[1];return .5*(k+A-2*G3e*Math.abs(k-A))}else return Lo}function o(x,_,k,A){if((A||{}).msUTC&&tl(x))return+x;var q=GF(x,k||r.calendar);if(q===Lo)if(tl(x)){x=+x;var C=Math.floor(qt.mod(x+.05,1)*10),E=Math.round(x-C/10);q=GF(new Date(E))+C/10}else return Lo;return q}function l(x,_,k){return U3e(x,_,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(Z4(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 Lo}function f(x,_){for(var k=new Array(_),A=0;A<_;A++){var q=(x[0]||[])[A],C=(x[1]||[])[A];k[A]=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(tl(x))return+x}function d(x){return tl(x)?+x:c(x)}function p(x,_,k){return B3e.round(k+_*x,2)}function y(x,_,k){return(x-k)/_}var m=function(_){return tl(_)?p(_,r._m,r._b):Lo},b=function(x){return y(x,r._m,r._b)};if(r.rangebreaks){var T=n==="y";m=function(x){if(!tl(x))return Lo;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 A=k?-1:1,q=A*x,C=0,E=0;E<_;E++){var P=A*r._rangebreaks[E].min,R=A*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 N=r._B[C]||0;return isFinite(N)?p(x,r._m2,N):0},b=function(x){var _=r._rangebreaks.length;if(!_)return y(x,r._m,r._b);for(var k=0,A=0;A<_&&!(x<r._rangebreaks[A].pmin);A++)x>r._rangebreaks[A].pmax&&(k=A+1);return y(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:al,r.l2c=r.type==="log"?Eh:al,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,_){return m(i(x,_))}:m,r.p2c=r.type==="log"?function(x){return Eh(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Cs,r.c2d=r.c2r=r.l2d=r.l2r=al,r.d2p=r.r2p=function(x){return r.l2p(Cs(x))},r.p2d=r.p2r=b,r.cleanPos=al):r.type==="log"?(r.d2r=r.d2l=function(x,_){return i(Cs(x),_)},r.r2d=r.r2c=function(x){return Eh(Cs(x))},r.d2c=r.r2l=Cs,r.c2d=r.l2r=al,r.c2r=i,r.l2d=Eh,r.d2p=function(x,_){return r.l2p(r.d2r(x,_))},r.p2d=function(x){return Eh(b(x))},r.r2p=function(x){return r.l2p(Cs(x))},r.p2r=b,r.cleanPos=al):r.type==="date"?(r.d2r=r.r2d=qt.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 qt.cleanDate(x,Lo,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=al,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:al(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=al,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:al(x)},r.setupMultiCategory=function(x){var _=r._traceIndices,k,A,q=r._matchGroup;if(q&&r._categories.length===0){for(var C in q)if(C!==a){var E=t[nm.id2name(C)];_=_.concat(E._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;k<_.length;k++){var N=x[_[k]];if(n in N){var I=N[n],O=N._length||qt.minRowLength(I);if(YF(I[0])&&YF(I[1]))for(A=0;A<O;A++){var U=I[0][A],Y=I[1][A];Z4(U)&&Z4(Y)&&(R.push([U,Y]),U in P[0][1]||(P[0][1][U]=P[0][0]++),Y in P[1][1]||(P[1][1][Y]=P[1][0]++))}}}for(R.sort(function(G,V){var W=P[0][1],j=W[G[0]]-W[V[0]];if(j)return j;var J=P[1][1];return J[G[1]]-J[V[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 A=qt.nestedProperty(r,x).get(),q=qt.simpleMap(A,r.r2l),C=q[1]<q[0];C&&q.reverse();var E=qt.simpleMap([_,k],r.r2l);if(_!==void 0&&q[0]<E[0]&&(A[C?1:0]=_,q[0]=E[0]),k!==void 0&&q[1]>E[1]&&(A[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])),A[C?0:1]=r.l2r(P)}else k!==void 0&&(A[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=qt.nestedProperty(r,x).get(),A,q;if(r.type==="date"?q=qt.dfltRange(r.calendar):n==="y"?q=lm.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=_.dfltRange||lm.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!k||k.length!==2){qt.nestedProperty(r,x).set(q);return}var C=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=qt.cleanDate(k[0],Lo,r.calendar),k[1]=qt.cleanDate(k[1],Lo,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!qt.isDateTime(k[A],r.calendar)){r[x]=q;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=qt.constrain(r.r2l(k[0]),qt.MIN_MS+1e3,qt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!tl(k[A]))if(!(C||E)&&tl(k[1-A]))k[A]=k[1-A]*(A?10:.1);else{r[x]=q;break}if(k[A]<-rm?k[A]=-rm:k[A]>rm&&(k[A]=rm),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=nm.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var A=x&&r._r?"_r":"range",q=r.calendar;r.cleanRange(A);var C=r.r2l(r[A][0],q),E=r.r2l(r[A][1],q),P=n==="y";if(P?(r._offset=_.t+(1-r.domain[1])*_.h,r._length=_.h*(r.domain[1]-r.domain[0]),r._m=r._length/(C-E),r._b=-r._m*E):(r._offset=_.l+r.domain[0]*_.w,r._length=_.w*(r.domain[1]-r.domain[0]),r._m=r._length/(E-C),r._b=-r._m*C),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,N;if(r._rangebreaks=r.locateBreaks(Math.min(C,E),Math.max(C,E)),r._rangebreaks.length){for(R=0;R<r._rangebreaks.length;R++)N=r._rangebreaks[R],r._lBreaks+=Math.abs(N.max-N.min);var I=P;C>E&&(I=!I),I&&r._rangebreaks.reverse();var O=I?-1:1;for(r._m2=O*r._length/(Math.abs(E-C)-r._lBreaks),r._B.push(-r._m2*(P?E:C)),R=0;R<r._rangebreaks.length;R++)N=r._rangebreaks[R],r._B.push(r._B[r._B.length-1]-O*r._m2*(N.max-N.min));for(R=0;R<r._rangebreaks.length;R++)N=r._rangebreaks[R],N.pmin=m(N.min),N.pmax=m(N.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,A,q,C,E;_._cachedPatterns||(_._cachedPatterns=_.map(function(W){return W.enabled&&W.bounds?qt.simpleMap(W.bounds,W.pattern?Cs:r.d2c):null})),_._cachedValues||(_._cachedValues=_.map(function(W){return W.enabled&&W.values?qt.simpleMap(W.values,r.d2c).sort(qt.sorterAsc):null}));for(var P=0;P<_.length;P++){var R=_[P];if(R.enabled){if(R.bounds){var N=R.pattern;switch(k=_._cachedPatterns[P],A=k[0],q=k[1],N){case om:E=new Date(x),C=E.getUTCDay(),A>q&&(q+=7,C<A&&(C+=7));break;case im:E=new Date(x);var I=E.getUTCHours(),O=E.getUTCMinutes(),U=E.getUTCSeconds(),Y=E.getUTCMilliseconds();C=I+(O/60+U/3600+Y/36e5),A>q&&(q+=24,C<A&&(C+=24));break;case"":C=x;break}if(C>=A&&C<q)return Lo}else for(var G=_._cachedValues[P],V=0;V<G.length;V++)if(A=G[V],q=A+R.dvalue,x>=A&&x<q)return Lo}}return x},r.locateBreaks=function(x,_){var k,A,q,C,E=[];if(!r.rangebreaks)return E;var P=r.rangebreaks.slice().sort(function(J,te){return J.pattern===om&&te.pattern===im?-1:te.pattern===om&&J.pattern===im?1:0}),R=function(J,te){if(J=qt.constrain(J,x,_),te=qt.constrain(te,x,_),J!==te){for(var ae=!0,se=0;se<E.length;se++){var $=E[se];J<$.max&&te>=$.min&&(J<$.min&&($.min=J),te>$.max&&($.max=te),ae=!1)}ae&&E.push({min:J,max:te})}};for(k=0;k<P.length;k++){var N=P[k];if(N.enabled)if(N.bounds){var I=x,O=_;N.pattern&&(I=Math.floor(I)),A=qt.simpleMap(N.bounds,N.pattern?Cs:r.r2l),q=A[0],C=A[1];var U=new Date(I),Y,G;switch(N.pattern){case om:G=Y3e,Y=((C<q?7:0)+(C-q))*tm,I+=q*tm-(U.getUTCDay()*tm+U.getUTCHours()*am+U.getUTCMinutes()*VF+U.getUTCSeconds()*jF+U.getUTCMilliseconds());break;case im:G=tm,Y=((C<q?24:0)+(C-q))*am,I+=q*am-(U.getUTCHours()*am+U.getUTCMinutes()*VF+U.getUTCSeconds()*jF+U.getUTCMilliseconds());break;default:I=Math.min(A[0],A[1]),O=Math.max(A[0],A[1]),G=O-I,Y=G}for(var V=I;V<O;V+=G)R(V,V+Y)}else for(var W=qt.simpleMap(N.values,r.d2c),j=0;j<W.length;j++)q=W[j],C=q+N.dvalue,R(q,C)}return E.sort(function(J,te){return J.min-te.min}),E},r.makeCalcdata=function(x,_,k){var A,q,C,E,P=r.type,R=P==="date"&&x[_+"calendar"];if(_ in x){if(A=x[_],E=x._length||qt.minRowLength(A),qt.isTypedArray(A)&&(P==="linear"||P==="log")){if(E===A.length)return A;if(A.subarray)return A.subarray(0,E)}if(P==="multicategory")return f(A,E);for(q=new Array(E),C=0;C<E;C++)q[C]=r.d2c(A[C],0,R,k)}else{var N=_+"0"in x?r.d2c(x[_+"0"],0,R):0,I=x["d"+_]?Number(x["d"+_]):1;for(A=x[{x:"y",y:"x"}[_]],E=x._length||A.length,q=new Array(E),C=0;C<E;C++)q[C]=N+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||tl(r.r2l(x[0])))&&(_&&x[1]===null||tl(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,_),A=r.r2l(r.range[0]),q=r.r2l(r.range[1]);return A<q?A<=k&&k<=q:q<=k&&k<=A},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var x=r._matchGroup;if(x){var _=null,k=null;for(var A in x){var q=t[nm.id2name(A)];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 A in k)if(a!==A){var q=t[nm.id2name(A)];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:O3e,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=w?w.numberFormat:H3e,delete r._minDtick,delete r._forceTick0}});var um=z((AYe,JF)=>{"use strict";var XF=Ir(),$4=ke(),V3e=Gt().BADNUM,sm=$4.isArrayOrTypedArray,j3e=$4.isDateTime,W3e=$4.cleanNumber,ZF=Math.round;JF.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(sm(n)&&!n.length)return"-";if(!i&&K3e(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;l<n.length;l++)if(sm(n[l]))for(var s=0;s<n[l].length;s++)o.push(n[l][s]);n=o}if($3e(n,t))return"date";var u=a.autotypenumbers!=="strict";return J3e(n,u)?"category":Z3e(n,u)?"linear":"-"};function X3e(e,r){return r?XF(e):typeof e=="number"}function Z3e(e,r){for(var t=e.length,a=0;a<t;a++)if(X3e(e[a],r))return!0;return!1}function $3e(e,r){for(var t=e.length,a=$F(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=ZF(l),u=e[s],f=String(u);o[f]||(o[f]=1,j3e(u,r)&&n++,XF(u)&&i++)}return n>i*2}function $F(e){return Math.max(1,(e-1)/1e3)}function J3e(e,r){for(var t=e.length,a=$F(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=ZF(l),u=e[s],f=String(u);if(!o[f]){o[f]=1;var c=typeof u;c==="boolean"?i++:(r?W3e(u)!==V3e:c==="number")?n++:c==="string"&&i++}}return i>n*2}function K3e(e){return sm(e[0])&&sm(e[1])}});var Ph=z((MYe,iz)=>{"use strict";var Q3e=Er(),rz=Ir(),Es=ke(),fm=Gt().FP_SAFE,ebe=Tr(),rbe=Zr(),tz=ba(),tbe=tz.getFromId,abe=tz.isLinked;iz.exports={applyAutorangeOptions:nz,getAutoRange:J4,makePadFn:K4,doAutoRange:ibe,findExtremes:obe,concatExtremes:r6};function J4(e,r){var t,a,n=[],i=e._fullLayout,o=K4(i,r,0),l=K4(i,r,1),s=r6(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Es.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 y=Es.simpleMap(r.range,r.r2l);p=y[1]<y[0]}r.autorange==="reversed"&&(r.autorange=!0);var m=r.rangemode,b=m==="tozero",T=m==="nonnegative",w=r._length,x=w/10,_=0,k,A,q,C,E,P;for(t=0;t<u.length;t++)for(k=u[t],a=0;a<f.length;a++)A=f[a],P=A.val-k.val-KF(r,k.val,A.val),P>0&&(E=w-o(k)-l(A),E>x?P/E>_&&(q=k,C=A,_=P/E):P/w>_&&(q={val:k.val,nopad:1},C={val:A.val,nopad:1},_=P/w));function R(Y,G){return Math.max(Y,l(G))}if(c===v){var N=c-1,I=c+1;if(b)if(c===0)n=[0,1];else{var O=(c>0?f:u).reduce(R,0),U=c/(1-Math.min(.5,O/w));n=c>0?[0,U]:[U,0]}else T?n=[Math.max(0,N),Math.max(1,I)]:n=[N,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-KF(r,k.val,A.val))/(w-o(q)-l(C)),n=[q.val-_*o(q),C.val+_*l(C)];return n=nz(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Es.simpleMap(n,r.l2r||Number)}function KF(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 K4(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=Es.simpleMap(r.range,r.r2l);i=o[1]<o[0]}i&&(t=!t)}var l=0;return abe(e,r._id)||(l=nbe(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 QF=3;function nbe(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=Es.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=Q3e.select(this),x=w.select(".text-math-group");x.empty()&&(T.bb=rbe.bBox(w.node()))})}for(var d=0;d<l._vals.length;d++){var p=l._vals[d],y=p.bb;if(y){var m=2*QF+y.width,b=2*QF+y.height;a=Math.max(a,n?Math.max(m*u,b*f):Math.max(b*u,m*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(a+=l.ticklen||0)}}}return a}function r6(e,r,t){var a=r._id,n=e._fullData,i=e._fullLayout,o=[],l=[],s,u,f;function c(m,b){for(s=0;s<b.length;s++){var T=m[b[s]],w=(T._extremes||{})[a];if(T.visible===!0&&w){for(u=0;u<w.min.length;u++)f=w.min[u],Q4(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=tbe(e,v),p=r6(e,d,!0),y=r._length/d._length;for(u=0;u<p.min.length;u++)f=p.min[u],Q4(o,f.val,f.pad*y,{extrapad:f.extrapad});for(u=0;u<p.max.length;u++)f=p.max[u],e6(l,f.val,f.pad*y,{extrapad:f.extrapad})}}return{min:o,max:l}}function ibe(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():J4(e,r),r._r=r.range.slice(),r._rl=Es.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,ebe.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=J4(e,r)),i._input.rangeslider[r._name]=Es.extendFlat({},o)}}function obe(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,y,m,b,T,w;function x(R){if(Array.isArray(R))return u=!0,function(I){return Math.max(Number(R[I]||0),0)};var N=Math.max(Number(R||0),0);return function(){return N}}var _=x((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=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<fm&&(w=v);else for(c=0;c<i;c++)v=r[c],v<T&&v>-fm&&(T=v),v>w&&v<fm&&(w=v);r=[T,w],i=2}var C={tozero:l,extrapad:o};function E(R){d=r[R],rz(d)&&(m=_(R),b=k(R),f?(p=e.c2l(d)-q(R),y=e.c2l(d)+A(R)):(T=d-q(R),w=d+A(R),s&&T<w/10&&(T=w/10),p=e.c2l(T),y=e.c2l(w)),l&&(p=Math.min(0,p),y=Math.max(0,y)),ez(p)&&Q4(a,p,b,C),ez(y)&&e6(n,y,m,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 Q4(e,r,t,a){az(e,r,t,a,lbe)}function e6(e,r,t,a){az(e,r,t,a,sbe)}function az(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 rz(e)&&Math.abs(e)<fm}function lbe(e,r){return e<=r}function sbe(e,r){return e>=r}function ube(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&cm(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&cm(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function fbe(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&cm(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&cm(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function cm(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function nz(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);Es.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=ube(t,r),a=fbe(a,r),[t,a]}});var Gr=z((SYe,qz)=>{"use strict";var Ii=Er(),ha=Ir(),rc=va(),Fh=Tr(),kr=ke(),tc=kr.strTranslate,$u=Ca(),cbe=Q0(),zh=Sr(),di=Zr(),vbe=Ni(),oz=M4(),kYe=qa(),rn=Gt(),hbe=rn.ONEMAXYEAR,dm=rn.ONEAVGYEAR,pm=rn.ONEMINYEAR,dbe=rn.ONEMAXQUARTER,i6=rn.ONEAVGQUARTER,mm=rn.ONEMINQUARTER,pbe=rn.ONEMAXMONTH,ac=rn.ONEAVGMONTH,ym=rn.ONEMINMONTH,pi=rn.ONEWEEK,Tn=rn.ONEDAY,Ps=Tn/2,il=rn.ONEHOUR,Nh=rn.ONEMIN,gm=rn.ONESEC,mbe=rn.ONEMILLI,ybe=rn.ONEMICROSEC,Ju=rn.MINUS_SIGN,xm=rn.BADNUM,o6={K:"zeroline"},l6={K:"gridline",L:"path"},s6={K:"minor-gridline",L:"path"},yz={K:"tick",L:"path"},lz={K:"tick",L:"text"},sz={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},_m=Qa(),Rh=_m.MID_SHIFT,Ku=_m.CAP_SHIFT,Ih=_m.LINE_SPACING,gbe=_m.OPPOSITE_SIDE,bm=3,Ue=qz.exports={};Ue.setConvert=ec();var bbe=um(),ol=ba(),xbe=ol.idSort,_be=ol.isLinked;Ue.id2name=ol.id2name;Ue.name2id=ol.name2id;Ue.cleanId=ol.cleanId;Ue.list=ol.list;Ue.listIds=ol.listIds;Ue.getFromId=ol.getFromId;Ue.getFromTrace=ol.getFromTrace;var gz=Ph();Ue.getAutoRange=gz.getAutoRange;Ue.findExtremes=gz.findExtremes;var wbe=1e-4;function v6(e){var r=(e[1]-e[0])*wbe;return[e[0]-r,e[1]+r]}function Tbe(e,r,t){if(![t,e,r].every(ha)||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}Ue.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},kr.coerce(e,r,u,s)};Ue.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?(kr.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length<o&&(kr.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]=ol.cleanId(f[c],l,!0)||f[c],s.includes(f[c])||(f[c]=n);return r[u]=f,f};Ue.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ue.coercePosition=function(e,r,t,a,n,i){var o,l,s=Ue.getRefType(a);if(s!=="range")o=kr.ensureNumber,l=t(n,i);else{var u=Ue.getFromId(r,a);i=u.fraction2r(i),l=t(n,i),o=u.cleanPos}e[n]=o(l)};Ue.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?kr.ensureNumber:Ue.getFromId(r,t).cleanPos;return a(e)};Ue.redrawComponents=function(e,r){r=r||Ue.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=Fh.getComponentMethod(n,i),u={},f=0;f<r.length;f++)for(var c=t[Ue.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 Abe=Ue.getDataConversions=function(e,r,t,a){var n,i=t==="x"||t==="y"||t==="z"?t:a;if(kr.isArrayOrTypedArray(i)){if(n={type:bbe(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},Ue.setConvert(n),n.type==="category")for(var o=0;o<a.length;o++)n.d2c(a[o])}else n=Ue.getFromTrace(e,r,i);return n?{d2c:n.d2c,c2d:n.c2d}:i==="ids"?{d2c:fz,c2d:fz}:{d2c:uz,c2d:uz}};function uz(e){return+e}function fz(e){return String(e)}Ue.getDataToCoordFunc=function(e,r,t,a){return Abe(e,r,t,a).d2c};Ue.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};Ue.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))};Ue.saveRangeInitial=function(e,r){for(var t=Ue.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};Ue.saveShowSpikeInitial=function(e,r){for(var t=Ue.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};Ue.autoBin=function(e,r,t,a,n,i){var o=kr.aggNums(Math.min,null,e),l=kr.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:kr.simpleMap([o,l],r.c2r,0,n),calendar:n},Ue.setConvert(s),i=i&&oz.dtick(i,s.type),i)s.dtick=i,s.tick0=oz.tick0(void 0,s.type,n);else{var u;if(t)u=(l-o)/t;else{var f=kr.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),v=c*kr.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);u=Math.max(v,2*kr.stdev(e)/Math.pow(e.length,a?.25:.4)),ha(u)||(u=1)}Ue.autoTicks(s,u)}var d=s.dtick,p=Ue.tickIncrement(Ue.tickFirst(s),d,"reverse",n),y,m;if(typeof d=="number")p=Mbe(p,e,s,o,l),m=1+Math.floor((l-p)/d),y=p+m*d;else for(s.dtick.charAt(0)==="M"&&(p=kbe(p,e,d,o,n)),y=p,m=0;y<=l;)y=Ue.tickIncrement(y,d,!1,n),m++;return{start:r.c2r(p,0,n),end:r.c2r(y,0,n),size:d,_dataSpan:l-o}};function Mbe(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++:ha(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 kbe(e,r,t,a,n){var i=kr.findExactDates(r,n),o=.8;if(i.exactDays>o){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=Ue.tickIncrement(e,"M6","reverse")+Tn*1.5:i.exactMonths>o?e=Ue.tickIncrement(e,"M1","reverse")+Tn*15.5:e-=Ps;var s=Ue.tickIncrement(e,t);if(s<=a)return s}return e}Ue.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&ha(r._tmin),n;if(a){var i=Ue.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=kr.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=kr.simpleMap(n,r.l2r),e._isMinor=!0,Ue.prepTicks(e,t),a){var l=ha(r.dtick),s=ha(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?t6(u,f)?u===2*pi&&f===2*Tn&&(e.dtick=pi):u===2*pi&&f===3*Tn?e.dtick=pi:u===pi&&!(r._input.minor||{}).nticks?e.dtick=Tn:cz(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":t6(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"?t6(u,f)||(e.dtick=cz(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)};function t6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function cz(e,r){return Math.abs(e/r-1)<.001}Ue.prepTicks=function(e,r){var t=kr.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?kr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=kr.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,Ue.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"&&Sbe(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),wz(e)};function a6(e){return+e.substring(1)}function Sbe(e){var r;function t(){return!(ha(e.dtick)||e.dtick.charAt(0)!=="M")}var a=t(),n=Ue.getTickFormat(e);if(n){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(n)||(/%[HI]/.test(n)?(r=il,i&&!a&&e.dtick<il&&(e.dtick=il)):/%p/.test(n)?(r=Ps,i&&!a&&e.dtick<Ps&&(e.dtick=Ps)):/%[Aadejuwx]/.test(n)?(r=Tn,i&&!a&&e.dtick<Tn&&(e.dtick=Tn)):/%[UVW]/.test(n)?(r=pi,i&&!a&&e.dtick<pi&&(e.dtick=pi)):/%[Bbm]/.test(n)?(r=ac,i&&(a?a6(e.dtick)<1:e.dtick<ym)&&(e.dtick="M1")):/%[q]/.test(n)?(r=i6,i&&(a?a6(e.dtick)<3:e.dtick<mm)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=dm,i&&(a?a6(e.dtick)<12:e.dtick<pm)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function qbe(e,r,t){for(var a=0;a<e.length;a++){var n=e[a].value,i=a,o=a+1;a<e.length-1?(i=a,o=a+1):a>0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=pm?u>=pm&&u<=hbe?c=u:c=dm:t===i6&&f>=mm?u>=mm&&u<=dbe?c=u:c=i6:f>=ym?u>=ym&&u<=pbe?c=u:c=ac:t===pi&&f>=pi?c=pi:f>=Tn?c=Tn:t===Ps&&f>=Ps?c=Ps:t===il&&f>=il&&(c=il);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;m<p;m++){var b=(m+.5)/p;r.maskBreaks(n*(1-b)+b*d)!==xm&&y++}c*=y/p,c||(e[a].drop=!0),v&&u>pi&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ue.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||kr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=kr.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=[],y=[],m=[],b=[],T=[],w=r.minor&&(r.minor.ticks||r.minor.showgrid),x=w||s,_=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 A=_?r:kr.extendFlat({},r,x?r.minor:{minor:{}});if(k?Ue.prepMinorTicks(A,r,t):Ue.prepTicks(A,t),A.tickmode==="array"){_?(m=[],p=vz(r,!k)):(b=[],y=vz(r,!k));continue}if(A.tickmode==="sync"){m=[],p=Lbe(r);continue}var q=v6(u),C=q[0],E=q[1],P=ha(A.dtick),R=a==="log"&&!(P||A.dtick.charAt(0)==="L"),N=Ue.tickFirst(A,t);if(_){if(r._tmin=N,N<C!==f)break;(a==="category"||a==="multicategory")&&(E=f?Math.max(-.5,E):Math.min(r._categories.length-.5,E))}var I=null,O=N,U;if(_){var Y;P?Y=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(Y=ac*r.dtick.substring(1)):Y=r._roughDTick,U=Math.round((r.r2l(O)-r.r2l(r.tick0))/Y)-1}var G=A.dtick,V=a==="linear"?A.r2l(A.tick0):void 0;for(A.rangebreaks&&A._tick0Init!==A.tick0&&(O=n6(O,r),f||(O=Ue.tickIncrement(O,G,!f,n))),(_||s)&&o&&(O=Ue.tickIncrement(O,G,!f,n),_&&U--);f?O>=E:O<=E;O=Ue.tickIncrement(O,G,f,n)){if(_&&U++,A.rangebreaks&&!f){if(O<C)continue;if(A.maskBreaks(O)===xm&&n6(O,A)>=v)break}if(m.length>d||O===I)break;I=O;var W={value:Tbe(O,V,G)};_?(O===N&&(W.first=!0),R&&O!==(O|0)&&(W.simpleLabel=!0),i>1&&U%i&&(W.skipLabel=!0),m.push(W)):(W.minor=!0,b.push(W))}}if(!b||b.length<3)s=!1;else{var j=(b[2].value-b[1].value)*(l?-1:1);e5e(j,r.tickformat)||(s=!1,b=b.slice(1))}if(!s)T=m;else{var J=m.concat(b);o&&m.length&&(J=J.slice(1)),J=J.sort(function(We,Se){return We.value-Se.value}).filter(function(We,Se,Fe){return Se===0||We.value!==Fe[Se-1].value});var te=J.map(function(We,Se){return We.minor===void 0&&!We.skipLabel?Se:null}).filter(function(We){return We!==null});te.forEach(function(We){s.map(function(Se){var Fe=We+Se;Fe>=0&&Fe<J.length&&kr.pushUnique(T,J[Fe])})}),m.forEach(function(We){We.skipLabel=T.indexOf(We)===-1})}if(w){var ae=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!ae){for(var se=m.map(function(We){return We.value}),$=[],fe=0;fe<b.length;fe++){var ie=b[fe],ue=ie.value;if(se.indexOf(ue)===-1){for(var ce=!1,oe=0;!ce&&oe<m.length;oe++)1e7+m[oe].value===1e7+ue&&(ce=!0);ce||$.push(ie)}}b=$}}o&&qbe(T,r,r._definedDelta);var be;if(r.rangebreaks){var Re=r._id.charAt(0)==="y",ye=1;r.tickmode==="auto"&&(ye=r.tickfont?r.tickfont.size:12);var Ce=NaN;for(be=m.length-1;be>-1;be--){if(m[be].drop){m.splice(be,1);continue}m[be].value=n6(m[be].value,r);var Me=r.c2p(m[be].value);(Re?Ce>Me-ye:Ce<Me+ye)?m.splice(f?be+1:be,1):Ce=Me}}m6(r)&&Math.abs(u[1]-u[0])===360&&m.pop(),r._tmax=(m[m.length-1]||{}).value,m.length&&(m[m.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var Le,De=function(We){We.text="",r._prevDateHead=Le};m=m.concat(b);function Ne(We,Se){var Fe=Ue.tickText(We,Se.value,!1,Se.simpleLabel,{first:Se.first,last:Se.last}),Qe=Se.periodX;return Qe!==void 0&&(Fe.periodX=Qe,(Qe>v||Qe<c)&&(Qe>v&&(Fe.periodX=v),Qe<c&&(Fe.periodX=c),De(Fe))),Fe}var qe;for(be=0;be<m.length;be++){var Xe=m[be].minor,$e=m[be].value;Xe?(s&&T.indexOf(m[be])!==-1?qe=Ne(r,m[be]):qe={x:$e},qe.minor=!0,y.push(qe)):(Le=r._prevDateHead,qe=Ne(r,m[be]),m[be].skipLabel&&De(qe),p.push(qe))}return o&&s&&y.length&&(y[0].noTick=!0),p=p.concat(y),r._inCalcTicks=!1,o&&p.length&&(p[0].noTick=!0),p};function bz(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==xm})),r}function Lbe(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=Ue.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=bz(e,t),t}function vz(e,r){var t=kr.simpleMap(e.range,e.r2l),a=v6(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){kr.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 y=0;y<u.length;y++){var m=o(u[y]);if(m>n&&m<i){var b=Ue.tickText(e,m,!1,String(f[y]),{first:y===c,last:y===v});s&&(b.minor=!0,b.text=""),l.push(b)}}}}return l=bz(e,l),l}var vm=[2,5,10],hz=[1,2,3,6,12],dz=[1,2,5,10,15,30],Cbe=[1,2,3,7,14],xz=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],_z=[-.301,0,.301,.699,1],Dbe=[15,30,45,90,180];function nl(e,r,t){return r*kr.roundUp(e/r,t)}Ue.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=kr.dateTick0(e.calendar,0);var i=2*r;if(i>dm)r/=dm,a=n(10),e.dtick="M"+12*nl(r,a,vm);else if(i>ac)r/=ac,e.dtick="M"+nl(r,1,hz);else if(i>Tn){if(e.dtick=nl(r,Tn,e._hasDayOfWeekBreaks?[1,2,7,14]:Cbe),!t){var o=Ue.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=kr.dateTick0(e.calendar,2):e.tick0=kr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>il?e.dtick=nl(r,il,hz):i>Nh?e.dtick=nl(r,Nh,dz):i>gm?e.dtick=nl(r,gm,dz):(a=n(10),e.dtick=nl(r,a,vm))}else if(e.type==="log"){e.tick0=0;var s=kr.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"+nl(r,a,vm)}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))):m6(e)?(e.tick0=0,a=1,e.dtick=nl(r,a,Dbe)):(e.tick0=0,a=n(10),e.dtick=nl(r,a,vm));if(e.dtick===0&&(e.dtick=1),!ha(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function wz(e){var r=e.dtick;if(e._tickexponent=0,!ha(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>=Tn&&n<=10||r>=Tn*15)e._tickround="d";else if(r>=Nh&&n<=16||r>=il)e._tickround="M";else if(r>=gm&&n<=19||r>=Nh)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(ha(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ha(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&&(nc(e.exponentformat)&&e.exponentformat!=="SI extended"&&!h6(s)||nc(e.exponentformat)&&e.exponentformat==="SI extended"&&!d6(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ue.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(ha(r))return kr.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return kr.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?_z:xz,s=e+n*.01,u=kr.roundUp(kr.mod(s,1),l,t);return Math.floor(s)+Math.log(Ii.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ue.tickFirst=function(e,r){var t=e.r2l||Number,a=kr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]<a[0],i=n?Math.floor:Math.ceil,o=v6(a)[0],l=e.dtick,s=t(e.tick0);if(ha(l)){var u=i((o-s)/l)*l+s;return(e.type==="category"||e.type==="multicategory")&&(u=kr.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,y,m;v<10;){if(p=Ue.tickIncrement(d,l,n,e.calendar),(p-o)*(d-o)<=0)return n?Math.min(d,p):Math.max(d,p);y=(o-(d+p)/2)/(p-d),m=f+(Math.abs(Math.round(y))||1)*c,d=Ue.tickIncrement(d,m,y<0?!n:n,e.calendar),v++}return kr.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"?_z:xz,T=kr.roundUp(kr.mod(o,1),b,n);return Math.floor(o)+Math.log(Ii.round(Math.pow(10,T),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};Ue.tickText=function(e,r,t,a,n){var i=!!(n!=null&&n.first),o=!!(n!=null&&n.last),l=Tz(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&&kr.isArrayOrTypedArray(e.ticktext)){var p=kr.simpleMap(e.range,e.r2l),y=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[v]))<y);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 m(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"&&m(e.showexponent)?"hide":"";if(f==="date"?Ebe(e,l,t,u):f==="log"?Pbe(e,l,t,u,b):f==="category"?Rbe(e,l):f==="multicategory"?Fbe(e,l,t):m6(e)?Nbe(e,l,t,u,b):zbe(e,l,t,u,b),a||(e.tickprefix&&!m(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!m(e.showticksuffix)&&(l.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(l.text)){var 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};Ue.hoverLabelText=function(e,r,t){t&&(e=kr.extendFlat({},e,{hoverformat:t}));var a=kr.isArrayOrTypedArray(r)?r[0]:r,n=kr.isArrayOrTypedArray(r)?r[1]:void 0;if(n!==void 0&&n!==a)return Ue.hoverLabelText(e,a,t)+" - "+Ue.hoverLabelText(e,n,t);var i=e.type==="log"&&a<=0,o=Ue.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":Ju+o:o};function Tz(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 Ebe(e,r,t,a){var n=e._tickround,i=t&&e.hoverformat||Ue.getTickFormat(e);a=!i&&a,a&&(ha(n)?n=4:n={y:"m",m:"d",d:"M",M:"S",S:4}[n]);var o=kr.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=Oh(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="<br> ")}r.text=o}function Pbe(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=Bh(Math.pow(10,o),e,n,a);else if(ha(i)||s==="D"&&(e.minorloglabels==="complete"||kr.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(kr.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"||nc(p)&&p!=="SI extended"&&h6(v)||nc(p)&&p==="SI extended"&&d6(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?"":Ju)+d+"</sup>"),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":Ju)+d:(r.text=Bh(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,kr.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="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 Rbe(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Fbe(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 zbe(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Bh(r.x,e,n,a)}function Nbe(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Ibe(i);if(o[1]>=100)r.text=Bh(kr.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=Ju+r.text)}}}else r.text=Bh(r.x,e,n,a)}function Ibe(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 Az=["f","p","n","\u03BC","m","","k","M","G","T"],Bbe=["q","r","y","z","a",...Az,"P","E","Z","Y","R","Q"],nc=e=>["SI","SI extended","B"].includes(e);function h6(e){return e>14||e<-15}function d6(e){return e>32||e<-30}function Obe(e,r){return nc(r)?!!(r==="SI extended"&&d6(e)||r!=="SI extended"&&h6(e)):!1}function Bh(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Ue.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ha(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};wz(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,Ju);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=kr.numSeparate(e,r._separators,u)}if(l&&o!=="hide"){Obe(l,o)&&(o="power");var v;l<0?v=Ju+-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":nc(o)&&(e+=o==="SI extended"?Bbe[l/3+10]:Az[l/3+5])}return n?Ju+e:e}Ue.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*ac}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};Ue.getSubplots=function(e,r){var t=e._fullLayout._subplots,a=t.cartesian.concat(t.gl2d||[]),n=r?Ue.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};Ue.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};Ue.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=Ue.list(e,"x",!0),i=Ue.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){Ii.select(this).select("rect").attr({x:f.x._offset||0,y:f.y._offset||0,width:f.x._length||1,height:f.y._length||1})})}};Ue.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"?Ue.listIds(e):r,i=Ue.list(e),o=i.filter(function(s){return s.autoshift}).map(function(s){return s.overlaying});n.map(function(s){var u=Ue.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 kr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ue.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=Ue.drawOne(e,u,t);return u._shiftPusher&&c6(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=kr.simpleMap(u._r,u.r2l),f}}}))};Ue.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=Ue.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),c6(r,p,a,!0),c6(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Qbe(r,a));var y=v[f+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,T=r._mainMirrorPosition,w=r._vals=Ue.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 Xe=u+(qe||"tick");return _[Xe]||(_[Xe]=Ybe(r,Xe,b)),_[Xe]}if(r.visible){var A=Ue.makeTransTickFn(r),q=Ue.makeTransTickLabelFn(r),C,E,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var N=Hbe(r,w);E=Ue.clipEnds(r,N),C=P?E:N}else E=Ue.clipEnds(r,w),C=P&&r.ticklabelmode!=="period"?E:w;var I=r._gridVals=E,O=Gbe(r,w);if(!s._hasOnlyLargeSploms){var U=r._subplotsWith,Y={};for(i=0;i<U.length;i++){o=U[i],l=s._plots[o];var G=l[c+"axis"],V=G._mainAxis._id;if(!Y[V]){Y[V]=1;var W=f==="x"?"M0,"+G._offset+"v"+G._length:"M"+G._offset+",0h"+G._length;Ue.drawGrid(e,r,{vals:I,counterAxis:G,layer:l.gridlayer.select("."+u),minorLayer:l.minorGridlayer.select("."+u),path:W,transFn:A}),Ue.drawZeroLine(e,r,{counterAxis:G,layer:d?l.zerolinelayerAbove:l.zerolinelayer,path:W,transFn:A})}}}var j,J=Ue.getTickSigns(r),te=Ue.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var ae=Ue.makeTickPath(r,b,J[2]),se=Ue.makeTickPath(r,b,te[2],{minor:!0}),$,fe,ie,ue;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?($=Ue.makeTickPath(r,T,J[3]),fe=Ue.makeTickPath(r,T,te[3],{minor:!0}),ie=ae+$,ue=se+fe):($="",fe="",ie=ae,ue=se),r.showdividers&&R&&r.tickson==="boundaries"){var ce={};for(i=0;i<O.length;i++)ce[O[i].x]=1;j=function(qe){return ce[qe.x]?$:ie}}else j=function(qe){return qe.minor?ue:ie}}if(Ue.drawTicks(e,r,{vals:C,layer:y,path:j,transFn:A}),r.mirror==="allticks"){var oe=Object.keys(r._linepositions||{});for(i=0;i<oe.length;i++){o=oe[i],l=s._plots[o];var be=r._linepositions[o]||[],Re=be[0],ye=be[1],Ce=be[2],Me=Ue.makeTickPath(r,Re,Ce?J[0]:te[0],{minor:Ce})+Ue.makeTickPath(r,ye,Ce?J[1]:te[1],{minor:Ce});Ue.drawTicks(e,r,{vals:C,layer:l[f+"axislayer"],path:Me,transFn:A})}}var Le=[];if(Le.push(function(){return Ue.drawLabels(e,r,{vals:w,layer:y,plotinfo:l,transFn:q,labelFns:Ue.makeLabelFns(r,b)})}),r.type==="multicategory"){var De={x:2,y:10}[f];Le.push(function(){var qe={x:"height",y:"width"}[f],Xe=k()[qe]+De+(r._tickAngles[u+"tick"]?r.tickfont.size*Ih:0);return Ue.drawLabels(e,r,{vals:Ube(r,w),layer:y,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:A,labelFns:Ue.makeLabelFns(r,b+Xe*J[4])})}),Le.push(function(){return r._depth=J[4]*(k("tick2")[r.side]-b),jbe(e,r,{vals:O,layer:y,path:Ue.makeTickPath(r,b,J[4],{len:r._depth}),transFn:A})})}else r.title.hasOwnProperty("standoff")&&Le.push(function(){r._depth=J[4]*(k()[r.side]-b)});var Ne=Fh.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(Ne&&r.side==="bottom")&&Le.push(function(){return Wbe(e,r)}),Le.push(function(){var qe=r.side.charAt(0),Xe=gbe[r.side].charAt(0),$e=Ue.getPxPosition(e,r),We=R?r.ticklen:0,Se,Fe,Qe,re;(r.automargin||Ne||r._shiftPusher)&&(r.type==="multicategory"?Se=k("tick2"):(Se=k(),f==="x"&&qe==="b"&&(r._depth=Math.max(Se.width>0?Se.bottom-$e:0,We))));var xe=0,Ge=0;if(r._shiftPusher&&(xe=Math.max(We,Se.height>0?qe==="l"?$e-Se.left:Se.right-$e:0),r.title.text!==s._dfltTitle[f]&&(Ge=(r._titleStandoff||0)+(r._titleScoot||0),qe==="l"&&(Ge+=mz(r))),r._fullDepth=Math.max(xe,Ge)),r.automargin){Fe={x:0,y:0,r:0,l:0,t:0,b:0};var cr=[0,1],Pe=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(qe==="b"?Fe[qe]=r._depth:(Fe[qe]=r._depth=Math.max(Se.width>0?$e-Se.top:0,We),cr.reverse()),Se.width>0){var me=Se.right-(r._offset+r._length);me>0&&(Fe.xr=1,Fe.r=me);var Ae=r._offset-Se.left;Ae>0&&(Fe.xl=0,Fe.l=Ae)}}else if(qe==="l"?(r._depth=Math.max(Se.height>0?$e-Se.left:0,We),Fe[qe]=r._depth-Pe):(r._depth=Math.max(Se.height>0?Se.right-$e:0,We),Fe[qe]=r._depth+Pe,cr.reverse()),Se.height>0){var He=Se.bottom-(r._offset+r._length);He>0&&(Fe.yb=0,Fe.b=He);var Ze=r._offset-Se.top;Ze>0&&(Fe.yt=1,Fe.t=Ze)}Fe[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[cr[0]],r.title.text!==s._dfltTitle[f]&&(Fe[qe]+=mz(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Qe={x:0,y:0,r:0,l:0,t:0,b:0},Qe[Xe]=r.linewidth,r.mirror&&r.mirror!==!0&&(Qe[Xe]+=We),r.mirror===!0||r.mirror==="ticks"?Qe[c]=r._anchorAxis.domain[cr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Qe[c]=[r._counterDomainMin,r._counterDomainMax][cr[1]]))}Ne&&(re=Fh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(pz(Fe,r.automargin),pz(Qe,r.automargin)),rc.autoMargin(e,p6(r),Fe),rc.autoMargin(e,kz(r),Qe),rc.autoMargin(e,Sz(r),re)}),kr.syncOrAsync(Le)}};function pz(e,r){if(e){var t=Object.keys(sz).reduce(function(a,n){return r.indexOf(n)!==-1&&sz[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 Hbe(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(kr.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 Ube(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(Tz(e,kr.interp(a[o],.5),o));return t}function Gbe(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(kr.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 Ybe(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=f6(this);if(s.node().style.display!=="none"){var u=di.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=Ue.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}}Ue.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};Ue.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return tc(e._offset+e.l2p(r.x),0)}:function(r){return tc(0,e._offset+e.l2p(r.x))}};Ue.makeTransTickLabelFn=function(e){var r=Vbe(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 tc(n+e._offset+e.l2p(u6(v))+t,i+a)}:function(v){return tc(i+a,n+e._offset+e.l2p(u6(v))+t)}};function u6(e){return e.periodX!==void 0?e.periodX:e.x}function Vbe(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=bm,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*Ku,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=bm),s&&f==="top"&&(v-=d*(1-Ku)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Ue.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};Ue.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(N){return a.indexOf(N)!==-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,y=v?e.ticklen:0;if(c?y*=-1:f&&(y=0),v&&(d+=y,t)){var m=kr.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}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,A=e.side,q=e._id.charAt(0),C=e.tickangle,E;if(q==="x")E=!c&&A==="bottom"||c&&A==="top",_=E?1:-1,c&&(_*=-1),T=p*_,w=r+d*_,x=E?1:-.2,Math.abs(C)===90&&(c?x+=Rh:C===-90&&A==="bottom"?x=Ku:C===90&&A==="top"?x=Rh:x=.5,k=Rh/2*(C/90)),b.xFn=function(N){return N.dx+T+k*N.fontSize},b.yFn=function(N){return N.dy+w+N.fontSize*x},b.anchorFn=function(N,I){if(f){if(l)return"end";if(s)return"start"}return!ha(I)||I===0||I===180?"middle":I*_<0!==c?"end":"start"},b.heightFn=function(N,I,O){return I<-60||I>60?-.5*O:e.side==="top"!==c?-O:0};else if(q==="y"){if(E=!c&&A==="left"||c&&A==="right",_=E?1:-1,c&&(_*=-1),T=d,w=p*_,x=0,!c&&Math.abs(C)===90&&(C===-90&&A==="left"||C===90&&A==="right"?x=Ku:x=.5),c){var P=ha(C)?+C:0;if(P!==0){var R=kr.deg2rad(P);k=Math.abs(Math.sin(R))*Ku*_,x=0}}b.xFn=function(N){return N.dx+r-(T+N.fontSize*x)*_+k*N.fontSize},b.yFn=function(N){return N.dy+w+N.fontSize*Rh},b.anchorFn=function(N,I){return ha(I)&&Math.abs(I)===90?"middle":E?"end":"start"},b.heightFn=function(N,I,O){return e.side==="right"&&(I*=-1),I<-30?-O:I<30?-.5*O:0}}return b};function wm(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ue.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,wm);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return zh.stroke(Ii.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return di.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Tm(r,[yz]),i.attr("transform",t.transFn)};Ue.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&&Ue.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=di.crispRound(e,r.gridwidth,1);for(var c=n?di.crispRound(e,r.minor.gridwidth,1):0,v=t.layer,d=t.minorLayer,p=1;p>=0;p--){var y=p?v:d;if(y){var m=y.selectAll("path."+a).data(p?o:i,wm);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return zh.stroke(Ii.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return di.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"&&m.attr("d",t.path)}}Tm(r,[l6,s6])}};Ue.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ue.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 xbe(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(zh.stroke,r.zerolinecolor||zh.defaultLine).style("stroke-width",di.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Tm(r,[o6])};Ue.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(V){return V.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],wm),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(V){var W=Ii.select(this),j=e._promises.length;W.call($u.positionText,s.xFn(V),s.yFn(V)).call(di.font,{family:V.font,size:V.fontSize,color:V.fontColor,weight:V.fontWeight,style:V.fontStyle,variant:V.fontVariant,textcase:V.fontTextcase,lineposition:V.fontLineposition,shadow:V.fontShadow}).text(V.text).call($u.convertToTspans,e),e._promises[j]?v.push(e._promises.pop().then(function(){d(W,u)})):d(W,u)}),Tm(r,[lz]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(V){Ii.select(this).select("text").call($u.positionText,s.xFn(V),s.yFn(V))});function d(V,W){V.each(function(j){var J=Ii.select(this),te=J.select(".text-math-group"),ae=s.anchorFn(j,W),se=t.transFn.call(J.node(),j)+(ha(W)&&+W!=0?" rotate("+W+","+s.xFn(j)+","+(s.yFn(j)-j.fontSize/2)+")":""),$=$u.lineCount(J),fe=Ih*j.fontSize,ie=s.heightFn(j,ha(W)?+W:0,($-1)*fe);if(ie&&(se+=tc(0,ie)),te.empty()){var ue=J.select("text");ue.attr({transform:se,"text-anchor":ae}),ue.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ce=di.bBox(te.node()).width,oe=ce*{end:-.5,start:.5}[ae];te.attr("transform",se+tc(oe,0))}})}r._adjustTickLabelsOverflow=function(){var V=r.ticklabeloverflow;if(!(!V||V==="allow")){var W=V.indexOf("hide")!==-1,j=r._id.charAt(0)==="x",J=0,te=j?e._fullLayout.width:e._fullLayout.height;if(V.indexOf("domain")!==-1){var ae=kr.simpleMap(r.range,r.r2l);J=r.l2p(ae[0])+r._offset,te=r.l2p(ae[1])+r._offset}var se=Math.min(J,te),$=Math.max(J,te),fe=r.side,ie=1/0,ue=-1/0;c.each(function(Re){var ye=Ii.select(this),Ce=ye.select(".text-math-group");if(Ce.empty()){var Me=di.bBox(ye.node()),Le=0;j?(Me.right>$||Me.left<se)&&(Le=1):(Me.bottom>$||Me.top+(r.tickangle?0:Re.fontSize/4)<se)&&(Le=1);var De=ye.select("text");Le?W&&De.style("display","none"):De.node().style.display!=="none"&&(De.style("display",null),fe==="bottom"||fe==="right"?ie=Math.min(ie,j?Me.top:Me.left):ie=-1/0,fe==="top"||fe==="left"?ue=Math.max(ue,j?Me.bottom:Me.right):ue=1/0)}});for(var ce in a._plots){var oe=a._plots[ce];if(!(r._id!==oe.xaxis._id&&r._id!==oe.yaxis._id)){var be=j?oe.yaxis:oe.xaxis;be&&(be["_visibleLabelMin_"+r._id]=ie,be["_visibleLabelMax_"+r._id]=ue)}}}},r._hideCounterAxisInsideTickLabels=function(V){var W=r._id.charAt(0)==="x",j=[];for(var J in a._plots){var te=a._plots[J];r._id!==te.xaxis._id&&r._id!==te.yaxis._id||j.push(W?te.yaxis:te.xaxis)}j.forEach(function(ae,se){ae&&Oh(ae)&&(V||[o6,s6,l6,yz,lz]).forEach(function($){var fe=$.K==="tick"&&$.L==="text"&&r.ticklabelmode==="period",ie=a._plots[r._mainSubplot],ue;if($.K===o6.K){var ce=i?ie.zerolinelayerAbove:ie.zerolinelayer;ue=ce.selectAll("."+r._id+"zl")}else $.K===s6.K?ue=ie.minorGridlayer.selectAll("."+r._id):$.K===l6.K?ue=ie.gridlayer.selectAll("."+r._id):ue=ie[r._id.charAt(0)+"axislayer"];ue.each(function(){var oe=Ii.select(this);$.L&&(oe=oe.selectAll($.L)),oe.each(function(be){var Re=r.l2p(fe?u6(be):be.x)+r._offset,ye=Ii.select(this);Re<r["_visibleLabelMax_"+ae._id]&&Re>r["_visibleLabelMin_"+ae._id]?ye.style("display","none"):$.K==="tick"&&!se&&ye.node().style.display!=="none"&&ye.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var y=null;function m(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var V=0,W=[],j,J=1;c.each(function(Fe){V=Math.max(V,Fe.fontSize);var Qe=r.l2p(Fe.x),re=f6(this),xe=di.bBox(re.node());J=Math.max(J,$u.lineCount(re)),W.push({top:0,bottom:10,height:10,left:Qe-xe.width/2,right:Qe+xe.width/2+2,width:xe.width+2})});var te=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ae=l.length,se=Math.abs((l[ae-1].x-l[0].x)*r._m)/(ae-1),$=te?se/2:se,fe=te?r.ticklen:V*1.25*J,ie=Math.sqrt(Math.pow($,2)+Math.pow(fe,2)),ue=$/ie,ce=r.autotickangles.map(function(Fe){return Fe*Math.PI/180}),oe=ce.find(function(Fe){return Math.abs(Math.cos(Fe))<=ue});oe===void 0&&(oe=ce.reduce(function(Fe,Qe){return Math.abs(Math.cos(Fe))<Math.abs(Math.cos(Qe))?Fe:Qe},ce[0]));var be=oe*(180/Math.PI);if(te){var Re=2;for(r.ticks&&(Re+=r.tickwidth/2),j=0;j<W.length;j++){var ye=l[j].xbnd,Ce=W[j];if(ye[0]!==null&&Ce.left-r.l2p(ye[0])<Re||ye[1]!==null&&r.l2p(ye[1])-Ce.right<Re){y=be;break}}}else{var Me=r.ticklabelposition||"",Le=r.tickson||"",De=function(Fe){return Me.indexOf(Fe)!==-1},Ne=De("top"),qe=De("left"),Xe=De("right"),$e=De("bottom"),We=Le!=="boundaries"&&($e||qe||Ne||Xe),Se=We?(r.tickwidth||0)+2*bm:0;for(j=0;j<W.length-1;j++)if(kr.bBoxIntersect(W[j],W[j+1],Se)){y=be;break}}y&&d(c,y)}}r._selections&&(r._selections[o]=c);var b=[p];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(y=f,b.push(function(){d(c,f)})):b.push(m),r._tickAngles&&b.push(function(){r._tickAngles[o]=y===null?ha(u)?u:0:y});var T=function(){var V=0,W=0;return c.each(function(j,J){var te=f6(this),ae=te.select(".text-math-group");if(ae.empty()){var se;r._vals[J]&&(se=r._vals[J].bb||di.bBox(te.node()),r._vals[J].bb=se),V=Math.max(V,se.width),W=Math.max(W,se.height)}}),{labelsMaxW:V,labelsMaxH:W}},w=r._anchorAxis;if(w&&(w.autorange||w.insiderange)&&Oh(r)&&!_be(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*bm,r.ticklabelposition==="inside"&&(_+=r.ticklen||0);var k=r.side==="right"||r.side==="top"?1:-1,A=k===1?1:0,q=k===1?0:1,C=[];C[q]=w.range[q];var E=w.range,P=w.r2p(E[A]),R=w.r2p(E[q]),N=a._insideTickLabelsUpdaterange[w._name+".range"];if(N){var I=w.r2p(N[A]),O=w.r2p(N[q]),U=k*(r._id.charAt(0)==="y"?1:-1);U*P<U*I&&(P=I,C[A]=E[A]=N[A]),U*R>U*O&&(R=O,C[q]=E[q]=N[q])}var Y=Math.abs(R-P);Y-_>0?(Y-=_,_*=1+_/Y):_=0,r._id.charAt(0)!=="y"&&(_=-_),C[A]=w.p2r(w.r2p(E[A])+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 G=kr.syncOrAsync(b);return G&&G.then&&e._promises.push(G),G};function jbe(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,wm);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(zh.stroke,r.dividercolor).style("stroke-width",di.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ue.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 mz(e){var r=e.title.font.size,t=(e.title.text.match($u.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Ku+t*Ih):t?r*(t+1)*Ih:r}function Wbe(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match($u.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*Ku:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Rh+l*Ih));else{var s=Oh(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=Ue.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 y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=di.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,cbe.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"}})}Ue.shouldShowZeroLine=function(e,r,t){var a=kr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===xm)&&(Mz(r,0)||!Xbe(e,r,t,a)||Zbe(e,r))};Ue.clipEnds=function(e,r){return r.filter(function(t){return Mz(e,t.x)})};function Mz(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function Xbe(e,r,t,a){var n=t._mainAxis;if(!n)return;var i=e._fullLayout,o=r._id.charAt(0),l=Ue.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 y=Math.max((p.linewidth+r.zerolinewidth)/2,1);function m(w){return typeof w=="number"&&Math.abs(w-s)<y}if(m(p._mainLinePosition)||m(p._mainMirrorPosition))return!0;var b=p._linepositions||{};for(var T in b)if(m(b[T][0])||m(b[T][1]))return!0}var f=i._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return u(t,s);for(var c=Ue.list(e,l),v=0;v<c.length;v++){var d=c[v];if(d._mainAxis===n&&u(d,s))return!0}}function Zbe(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&&(Fh.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 f6(e){var r=Ii.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}Ue.allowAutoMargin=function(e){for(var r=Ue.list(e,"",!0),t=0;t<r.length;t++){var a=r[t];a.automargin&&(rc.allowAutoMargin(e,p6(a)),a.mirror&&rc.allowAutoMargin(e,kz(a))),Fh.getComponentMethod("rangeslider","isVisible")(a)&&rc.allowAutoMargin(e,Sz(a))}};function p6(e){return e._id+".automargin"}function kz(e){return p6(e)+".mirror"}function Sz(e){return e._id+".rangeslider"}Ue.swap=function(e,r){for(var t=$be(e,r),a=0;a<t.length;a++)Jbe(e,t[a].x,t[a].y)};function $be(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]],hm(s.x,u.x),hm(s.y,u.y);hm(s.x,[o]),hm(s.y,[l])}}return t}function hm(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function Jbe(e,r,t){var a=[],n=[],i=e.layout,o,l;for(o=0;o<r.length;o++)a.push(Ue.getFromId(e,r[o]));for(o=0;o<t.length;o++)n.push(Ue.getFromId(e,t[o]));var s=Object.keys(vbe),u=["anchor","domain","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,y=!1,m=!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?y=!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?m=!0:n[l][c]!==d&&(p=!1)}p&&(y&&(i[a[0]._name].type="linear"),m&&(i[n[0]._name].type="linear"),Kbe(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&&kr.swapAttrs(i.annotations[o],["?"])}}function Kbe(e,r,t,a,n){var i=kr.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 m6(e){return e._id==="angularaxis"}function n6(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 Oh(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function Tm(e,r){Oh(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function c6(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 Qbe(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function e5e(e,r){return/%f/.test(r)?e>=ybe:/%L/.test(r)?e>=mbe:/%[SX]/.test(r)?e>=gm:/%M/.test(r)?e>=Nh:/%[HI]/.test(r)?e>=il:/%p/.test(r)?e>=Ps:/%[Aadejuwx]/.test(r)?e>=Tn:/%[UVW]/.test(r)?e>=pi:/%[Bbm]/.test(r)?e>=ym:/%[q]/.test(r)?e>=mm:/%[Yy]/.test(r)?e>=pm:!0}});var Cz=z((qYe,Lz)=>{"use strict";Lz.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 y6=z((LYe,Dz)=>{"use strict";var r5e=Cz();Dz.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&&(r5e(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var Pz=z((CYe,Ez)=>{var t5e={left:0,top:0};Ez.exports=a5e;function a5e(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=n5e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function n5e(e){return e===window||e===document||e===document.body?t5e:e.getBoundingClientRect()}});var g6=z((DYe,Rz)=>{"use strict";var i5e=Q_();function o5e(){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}Rz.exports=i5e&&o5e()});var zz=z((EYe,Fz)=>{"use strict";Fz.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 Bz=z((PYe,Iz)=>{"use strict";var Nz=ke(),l5e=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Iz.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=Nz.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=Nz.constrain(Math.floor(t*3),0,2),l5e[t][r]}});var Hz=z((RYe,Oz)=>{"use strict";var s5e=Th(),u5e=wp(),f5e=ph().getGraphDiv,c5e=Jv(),b6=Oz.exports={};b6.wrapped=function(e,r,t){var i;e=f5e(e),e._fullLayout&&u5e.clear(e._fullLayout._uid+c5e.HOVERID);let a=e._hoverdata;b6.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:[]}))};b6.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&s5e.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 Bi=z((FYe,Vz)=>{"use strict";var v5e=Pz(),x6=r4(),h5e=g6(),d5e=ke().removeElement,p5e=qa(),Qu=Vz.exports={};Qu.align=zz();Qu.getCursor=Bz();var Gz=Hz();Qu.unhover=Gz.wrapped;Qu.unhoverRaw=Gz.raw;Qu.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=m,h5e?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(w,x,_){return Math.abs(w)<_&&(w=0),Math.abs(x)<_&&(x=0),[w,x]}var y=r.clampFn||p;function m(w){t._dragged=!1,t._dragging=!0;var x=Uz(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),x6&&!d?(f=Yz(),f.style.cursor=window.getComputedStyle(i).cursor):x6||(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=Uz(w),_=r.minDrag||p5e.MINDRAG,k=y(x[0]-o,x[1]-l,_),A=k[0],q=k[1];(A||q)&&(t._dragged=!0,Qu.unhover(t,w)),t._dragged&&r.moveFn&&!d&&(t._dragdata={element:i,dx:A,dy:q},r.moveFn(A,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),x6?d5e(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 Yz(){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}Qu.coverSlip=Yz;function Uz(e){return v5e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Rs=z((zYe,jz)=>{"use strict";jz.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 Zz=z((NYe,Xz)=>{"use strict";var _6=Rs(),Hh="data-savedcursor",Wz="!!";Xz.exports=function(r,t){var a=r.attr(Hh);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(Hh,o.slice(7)).classed(o,!1)}r.attr(Hh)||r.attr(Hh,Wz)}_6(r,t)}else a&&(r.attr(Hh,null),a===Wz?_6(r):_6(r,a))}});var T6=z((IYe,$z)=>{"use strict";var w6=ka(),m5e=Ei();$z.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:m5e.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:w6({editType:"legend"}),grouptitlefont:w6({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:w6({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Gh=z(Uh=>{"use strict";Uh.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Uh.isVertical=function(r){return r.orientation!=="h"};Uh.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Uh.getId=function(r){return r._id||"legend"}});var M6=z((OYe,Jz)=>{"use strict";var Am=Tr(),mi=ke(),y5e=St(),g5e=zn(),b5e=T6(),x5e=P0(),A6=Gh();function _5e(e,r,t,a,n){var i=r[e]||{},o=y5e.newContainer(t,e);function l(W,j){return mi.coerce(i,o,b5e,W,j)}var s=mi.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(W,j){var J=f._input,te=f;return mi.coerce(J,te,g5e,W,j)},v=t.font||{},d=mi.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,y=!1,m="normal",b=(t.shapes||[]).filter(function(W){return W.showlegend});function T(W){return Am.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 j=0;j<W._length;j++){var J=(Array.isArray(W.legend)?W.legend[j]:W.legend)||"legend";J===e&&((Array.isArray(W.showlegend)?W.showlegend[j]:W.showlegend)||W._dfltShowLegend)&&(y=!0,p++)}if(e==="legend"&&W._length>W.legend.length)for(var te=W.legend.length;te<W._length;te++)y=!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&&(y=!0,(!_&&Am.traceIs(f,"pie-like")||f._input.showlegend===!0)&&p++),mi.coerceFont(c,"legendgrouptitle.font",d)),(!_&&Am.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(m=A6.isGrouped({traceorder:m})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(m=A6.isReversed({traceorder:m})?"reversed+grouped":"grouped")}var k=mi.coerce(r,t,x5e,"showlegend",t.showlegend||y&&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 A=l("orientation"),q=l("yref"),C=l("xref"),E=A==="h",P=q==="paper",R=C==="paper",N,I,O,U="left";E?(N=0,Am.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(I=1.1,O="bottom"):(I=1,O="top"):P?(I=-.1,O="top"):(I=0,O="bottom")):(I=1,O="auto",R?N=1.02:(N=1,U="right")),mi.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:N}},"x"),mi.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:I}},"y"),l("traceorder",m),A6.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick");let Y=l("groupclick");l("groupdoubleclick",Y),l("xanchor",U),l("yanchor",O),l("maxheight"),l("valign"),mi.noneOrAll(i,o,["x","y"]);var G=l("title.text");if(G){l("title.side",E?"left":"top");var V=mi.extendFlat({},s,{size:mi.bigFont(s.size)});mi.coerceFont(l,"title.font",V);let W=n>1;l("titleclick",W?"toggle":!1),l("titledoubleclick",W?"toggleothers":!1)}}Jz.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):mi.pushUnique(u,i[n].legend);for(t._legends=[],n=0;n<u.length;n++){var f=u[n];_5e(f,r,t,i,u.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var q6=z(S6=>{"use strict";var Fs=Tr(),k6=ke(),w5e=k6.pushUnique,T5e=Gh(),Kz=!0;S6.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"&&Kz&&t.data&&t._context.showTips&&(k6.notifier(k6._(t,"Double-click on legend to isolate one trace"),"long",t),Kz=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let v=(o.shapes||[]).filter(De=>De.showlegend||De.legendgroup);var d=c.concat(v),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var y=p.legendgroup,m,b,T,w,x,_,k={},A=[],q=[],C=[];function E(De,Ne){var qe=A.indexOf(De),Xe=k.visible;return Xe||(Xe=k.visible=[]),A.indexOf(De)===-1&&(A.push(De),qe=A.length-1),Xe[qe]=Ne,qe}var P=(o.shapes||[]).map(function(De){return De._input}),R=!1;function N(De,Ne){P[De].visible=Ne,R=!0}function I(De,Ne){if(!(l.groupTitle&&!u)){var qe=De._isShape,Xe=De.index;Xe===void 0&&(Xe=De._index);var $e=De.visible===!1?!1:Ne;qe?N(Xe,$e):E(Xe,$e)}}var O=p.legend;if(!p._isShape&&Fs.traceIs(p,"pie-like")){var U=l.label,Y=f.indexOf(U);if(n==="toggle")Y===-1?f.push(U):f.splice(Y,1);else if(n==="toggleothers"){var G=Y!==-1,V=[];for(m=0;m<t.calcdata.length;m++){var W=t.calcdata[m];for(b=0;b<W.length;b++){var j=W[b],J=j.label;O===W[0].trace.legend&&U!==J&&(f.indexOf(J)===-1&&(G=!0),w5e(f,J),V.push(J))}}if(!G)for(var te=0;te<V.length;te++){var ae=f.indexOf(V[te]);ae!==-1&&f.splice(ae,1)}}Fs.call("_guiRelayout",t,"hiddenlabels",f)}else{var se=y&&y.length,$=[],fe;if(se)for(m=0;m<d.length;m++)fe=d[m],fe.visible&&fe.legendgroup===y&&$.push(m);if(n==="toggle"){var ie;switch(p.visible){case!0:ie="legendonly";break;case!1:ie=!1;break;case"legendonly":ie=!0;break}if(se)if(u)for(m=0;m<d.length;m++){var ue=d[m];ue.visible!==!1&&ue.legendgroup===y&&I(ue,ie)}else I(p,ie);else I(p,ie)}else if(n==="toggleothers"){var ce,oe,be,Re,ye,Ce=!0;let De=se&&u;for(m=0;m<d.length;m++)if(ye=d[m],ce=ye===p,be=ye.showlegend!==!0,!(ce||be)&&(oe=De&&ye.legendgroup===y,!oe&&ye.legend===O&&ye.visible===!0&&!Fs.traceIs(ye,"notLegendIsolatable"))){Ce=!1;break}for(m=0;m<d.length;m++)if(ye=d[m],!(ye.visible===!1||ye.legend!==O)&&!Fs.traceIs(ye,"notLegendIsolatable"))switch(p.visible){case"legendonly":I(ye,!0);break;case!0:Re=Ce?!0:"legendonly",ce=ye===p,be=ye.showlegend!==!0&&!ye.legendgroup,oe=ce||De&&ye.legendgroup===y,I(ye,oe||be?!0:Re);break}}for(m=0;m<q.length;m++)if(T=q[m],!!T){var Me=T.constructUpdate(),Le=Object.keys(Me);for(b=0;b<Le.length;b++)w=Le[b],_=k[w]=k[w]||[],_[C[m]]=Me[w]}for(x=Object.keys(k),m=0;m<x.length;m++)for(w=x[m],b=0;b<A.length;b++)k[w].hasOwnProperty(b)||(k[w][b]=void 0);R?Fs.call("_guiUpdate",t,k,{shapes:P},A):Fs.call("_guiRestyle",t,k,A)}};S6.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,o=T5e.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 y=!1,m=0;m<s.length;m++){let b=s[m],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,y=!0):(d.push(b.index),v.visible.push(x)))}y?Fs.call("_guiUpdate",r,v,{shapes:p},d):d.length&&Fs.call("_guiRestyle",r,v,d)}});var L6=z((UYe,Qz)=>{"use strict";Qz.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var tN=z((GYe,rN)=>{"use strict";var{isArrayOrTypedArray:C6}=Vn(),eN=Tr(),D6=Gh();rN.exports=function(r,t,a){var n=t._inHover,i=D6.isGrouped(t),o=D6.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function y(W,j,J){if(t.visible!==!1&&!(a&&W!==t._id))if(j===""||!D6.isGrouped(t)){var te="~~i"+c;s.push(te),l[te]=[J],c++}else s.indexOf(j)===-1?(s.push(j),u=!0,l[j]=[J]):l[j].push(J)}for(d=0;d<r.length;d++){var m=r[d],b=m[0],T=b.trace,w=T.legend,x=T.legendgroup;if(!(!n&&(!T.visible||!T.showlegend)))if(eN.traceIs(T,"pie-like")){var _=Array.isArray(T.legend),k=Array.isArray(T.showlegend);for(f[x]||(f[x]={}),p=0;p<m.length;p++)if(!(k&&T.showlegend[m[p].i]===!1)){_&&(w=T.legend[m[p].i]||"legend");var A=m[p].label;f[x][A]||(y(w,x,{label:A,color:m[p].color,i:m[p].i,trace:T,pts:m[p].pts}),f[x][A]=!0,v=Math.max(v,(A||"").length))}}else y(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,N=C6(R)?Math.min(R):R;P>N&&(P=N)}C[d][0]._groupMinRank=P,C[d][0]._preGroupSort=d}var I=function(W,j){return W[0]._groupMinRank-j[0]._groupMinRank||W[0]._preGroupSort-j[0]._preGroupSort},O=function(W,j){var J=C6(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank,te=C6(j.trace.legendrank)?j.trace.legendrank[j.i]:j.trace.legendrank;return J-te||W._preSort-j._preSort};for(C.forEach(function(W,j){W[0]._preGroupSort=j}),C.sort(I),d=0;d<C.length;d++){C[d].forEach(function(W,j){W._preSort=j}),C[d].sort(O);var U=C[d][0].trace,Y=null;for(p=0;p<C[d].length;p++){var G=C[d][p].trace.legendgrouptitle;if(G&&G.text){Y=G,n&&(G.font=t._groupTitleFont);break}}if(o&&C[d].reverse(),Y){var V=!1;for(p=0;p<C[d].length;p++)if(eN.traceIs(C[d][p].trace,"pie-like")){V=!0;break}C[d].unshift({i:-1,groupTitle:Y,noClick:V,trace:{showlegend:U.showlegend,legendgroup:U.legendgroup,legend:U.legend,visible:t.groupclick==="toggleitem"?!0:U.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 km=z(ef=>{"use strict";var Mm=ke();function aN(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}ef.formatPiePercent=function(r,t){var a=aN((r*100).toPrecision(3));return Mm.numSeparate(a,t)+"%"};ef.formatPieValue=function(r,t){var a=aN(r.toPrecision(10));return Mm.numSeparate(a,t)};ef.getFirstFilled=function(r,t){if(Mm.isArrayOrTypedArray(r))for(var a=0;a<t.length;a++){var n=r[t[a]];if(n||n===0||n==="")return n}};ef.castOption=function(r,t){if(Mm.isArrayOrTypedArray(r))return ef.getFirstFilled(r,t);if(r)return r};ef.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var iN=z((VYe,nN)=>{"use strict";var A5e=Zr(),M5e=Sr();nN.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?A5e.pointStyle(r,a,n,t):M5e.fill(r,t.color)}});var Sm=z((jYe,sN)=>{"use strict";var oN=Sr(),lN=km().castOption,k5e=iN();sN.exports=function(r,t,a,n){var i=a.marker.line,o=lN(i.color,t.pts)||oN.defaultLine,l=lN(i.width,t.pts)||0;r.call(k5e,t,a,n).style("stroke-width",l).call(oN.stroke,o)}});var F6=z((WYe,dN)=>{"use strict";var An=Er(),E6=Tr(),cn=ke(),uN=cn.strTranslate,yi=Zr(),Oi=Sr(),P6=hi().extractOpts,qm=Jn(),S5e=Sm(),q5e=km().castOption,L5e=L6(),fN=12,cN=5,rf=2,C5e=10,ic=5;dN.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+L5e.itemGap*2)/2,s=uN(l,0),u=function(A,q,C,E){var P;if(A+1)P=A;else if(q&&q.width>0)P=q.width;else return 0;return i?E:Math.min(P,C)};r.each(function(A){var q=An.select(this),C=cn.ensureSingle(q,"g","layers");C.style("opacity",A[0].trace.opacity);var E=a.indentation,P=a.valign,R=A[0].lineHeight,N=A[0].height;if(P==="middle"&&E===0||!R||!N)C.attr("transform",null);else{var I={top:1,bottom:-1}[P],O=I*(.5*(R-N+3))||0,U=a.indentation;C.attr("transform",uN(U,O))}var Y=C.selectAll("g.legendfill").data([A]);Y.enter().append("g").classed("legendfill",!0);var G=C.selectAll("g.legendlines").data([A]);G.enter().append("g").classed("legendlines",!0);var V=C.selectAll("g.legendsymbols").data([A]);V.enter().append("g").classed("legendsymbols",!0),V.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(d).each(m).each(x).each(w).each(f).each(c).each(b).each(T);function f(A){var q=vN(A),C=q.showFill,E=q.showLine,P=q.showGradientLine,R=q.showGradientFill,N=q.anyFill,I=q.anyLine,O=A[0],U=O.trace,Y,G,V=P6(U),W=V.colorscale,j=V.reversescale,J=function(ue){if(ue.size())if(C)yi.fillGroupStyle(ue,t,!0);else{var ce="legendfill-"+U.uid;yi.gradient(ue,t,ce,R6(j),W,"fill")}},te=function(ue){if(ue.size()){var ce="legendline-"+U.uid;yi.lineGroupStyle(ue),yi.gradient(ue,t,ce,R6(j),W,"stroke")}},ae=qm.hasMarkers(U)||!N?"M5,0":I?"M5,-2":"M5,-3",se=An.select(this),$=se.select(".legendfill").selectAll("path").data(C||R?[A]:[]);if($.enter().append("path").classed("js-fill",!0),$.exit().remove(),$.attr("d",ae+"h"+o+"v6h-"+o+"z").call(J),E||P){var fe=u(void 0,U.line,C5e,cN);G=cn.minExtend(U,{line:{width:fe}}),Y=[cn.minExtend(O,{trace:G})]}var ie=se.select(".legendlines").selectAll("path").data(E||P?[Y]:[]);ie.enter().append("path").classed("js-line",!0),ie.exit().remove(),ie.attr("d",ae+(P?"l"+o+",0.0001":"h"+o)).call(E?yi.lineGroupStyle:te)}function c(A){var q=vN(A),C=q.anyFill,E=q.anyLine,P=q.showLine,R=q.showMarker,N=A[0],I=N.trace,O=!R&&!E&&!C&&qm.hasText(I),U,Y;function G(fe,ie,ue,ce){var oe=cn.nestedProperty(I,fe).get(),be=cn.isArrayOrTypedArray(oe)&&ie?ie(oe):oe;if(i&&be&&ce!==void 0&&(be=ce),ue){if(be<ue[0])return ue[0];if(be>ue[1])return ue[1]}return be}function V(fe){return N._distinct&&N.index&&fe[N.index]?fe[N.index]:fe[0]}if(R||O||P){var W={},j={};if(R){W.mc=G("marker.color",V);var J=I.type==="scattermap";W.mx=J?"circle":G("marker.symbol",V),W.mo=G("marker.opacity",cn.mean,[.2,1]),W.mlc=G("marker.line.color",V),W.mlw=G("marker.line.width",cn.mean,[0,5],rf),W.mld=G("marker.line.dash",V),j.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var te=G("marker.size",cn.mean,[2,16],fN);W.ms=te,j.marker.size=te}P&&(j.line={width:G("line.width",V,[0,10],cN)}),O&&(W.tx="Aa",W.tp=G("textposition",V),W.ts=10,W.tc=G("textfont.color",V),W.tf=G("textfont.family",V),W.tw=G("textfont.weight",V),W.ty=G("textfont.style",V),W.tv=G("textfont.variant",V),W.tC=G("textfont.textcase",V),W.tE=G("textfont.lineposition",V),W.tS=G("textfont.shadow",V)),U=[cn.minExtend(N,W)],Y=cn.minExtend(I,j),Y.selectedpoints=null,Y.texttemplate=null}var ae=An.select(this).select("g.legendpoints"),se=ae.selectAll("path.scatterpts").data(R?U:[]);se.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),se.exit().remove(),se.call(yi.pointStyle,Y,t),R&&(U[0].mrc=3);var $=ae.selectAll("g.pointtext").data(O?U:[]);$.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),$.exit().remove(),$.selectAll("text").call(yi.textPointStyle,Y,t)}function v(A){var q=A[0].trace,C=q.type==="waterfall";if(A[0]._distinct&&C){var E=A[0].trace[A[0].dir].marker;return A[0].mc=E.color,A[0].mlw=E.line.width,A[0].mlc=E.line.color,y(A,this,"waterfall")}var P=[];q.visible&&C&&(P=A[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 R=An.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N){var I=An.select(this),O=q[N[0]].marker,U=u(void 0,O.line,ic,rf);I.attr("d",N[1]).style("stroke-width",U+"px").call(Oi.fill,O.color),U&&I.call(Oi.stroke,O.line.color)})}function d(A){y(A,this)}function p(A){y(A,this,"funnel")}function y(A,q,C){var E=A[0].trace,P=E.marker||{},R=P.line||{},N=P.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",I=C?E.visible&&E.type===C:E6.traceIs(E,"bar"),O=An.select(q).select("g.legendpoints").selectAll("path.legend"+C).data(I?[A]:[]);O.enter().append("path").classed("legend"+C,!0).attr("d",N).attr("transform",s),O.exit().remove(),O.each(function(U){var Y=An.select(this),G=U[0],V=u(G.mlw,P.line,ic,rf);Y.style("stroke-width",V+"px");var W=G.mcc;if(!a._inHover&&"mc"in G){var j=P6(P),J=j.mid;J===void 0&&(J=(j.max+j.min)/2),W=yi.tryColorscale(P,"")(J)}var te=W||G.mc||P.color,ae=P.pattern,se=yi.getPatternAttr,$=ae&&(se(ae.shape,0,"")||se(ae.path,0,""));if($){var fe=se(ae.bgcolor,0,null),ie=se(ae.fgcolor,0,null),ue=ae.fgopacity,ce=hN(ae.size,8,10),oe=hN(ae.solidity,.5,1),be="legend-"+E.uid;Y.call(yi.pattern,"legend",t,be,$,ce,oe,W,ae.fillmode,fe,ie,ue)}else Y.call(Oi.fill,te);V&&Oi.stroke(Y,G.mlc||R.color)})}function m(A){var q=A[0].trace,C=An.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&E6.traceIs(q,"box-violin")?[A]:[]);C.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),C.exit().remove(),C.each(function(){var E=An.select(this);if((q.boxpoints==="all"||q.points==="all")&&Oi.opacity(q.fillcolor)===0&&Oi.opacity((q.line||{}).color)===0){var P=cn.minExtend(q,{marker:{size:i?fN:cn.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});C.call(yi.pointStyle,P,t)}else{var R=u(void 0,q.line,ic,rf);E.style("stroke-width",R+"px").call(Oi.fill,q.fillcolor),R&&Oi.stroke(E,q.line.color)}})}function b(A){var q=A[0].trace,C=An.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[A,A]:[]);C.enter().append("path").classed("legendcandle",!0).attr("d",function(E,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(E,P){var R=An.select(this),N=q[P?"increasing":"decreasing"],I=u(void 0,N.line,ic,rf);R.style("stroke-width",I+"px").call(Oi.fill,N.fillcolor),I&&Oi.stroke(R,N.line.color)})}function T(A){var q=A[0].trace,C=An.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[A,A]:[]);C.enter().append("path").classed("legendohlc",!0).attr("d",function(E,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(E,P){var R=An.select(this),N=q[P?"increasing":"decreasing"],I=u(void 0,N.line,ic,rf);R.style("fill","none").call(yi.dashLine,N.line.dash,I),I&&Oi.stroke(R,N.line.color)})}function w(A){_(A,this,"pie")}function x(A){_(A,this,"funnelarea")}function _(A,q,C){var E=A[0],P=E.trace,R=C?P.visible&&P.type===C:E6.traceIs(P,C),N=An.select(q).select("g.legendpoints").selectAll("path.legend"+C).data(R?[A]:[]);if(N.enter().append("path").classed("legend"+C,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),N.exit().remove(),N.size()){var I=P.marker||{},O=u(q5e(I.line.width,E.pts),I.line,ic,rf),U="pieLike",Y=cn.minExtend(P,{marker:{line:{width:O}}},U),G=cn.minExtend(E,{trace:Y},U);S5e(N,G,Y,t)}}function k(A){var q=A[0].trace,C,E=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],C=!0;break;case"choropleth":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],C=!0;break;case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],C="radial";break;case"cone":E=[["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"]],C=!1;break;case"streamtube":E=[["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"]],C=!1;break;case"surface":E=[["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"]],C=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],C=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],C=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],C=!1;break}var P=An.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,N){var I=An.select(this),O=P6(q),U=O.colorscale,Y=O.reversescale,G=function(J){if(J.size()){var te="legendfill-"+q.uid;yi.gradient(J,t,te,R6(Y,C==="radial"),U,"fill")}},V;if(U){if(!C){var j=U.length;V=N===0?U[Y?j-1:0][1]:N===1?U[Y?0:j-1][1]:U[Math.floor((j-1)/2)][1]}}else{var W=q.vertexcolor||q.facecolor||q.color;V=cn.isArrayOrTypedArray(W)?W[N]||W[0]:W}I.attr("d",R[0]),V?I.call(Oi.fill,V):I.call(G)})}};function R6(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function vN(e){var r=e[0].trace,t=r.contours,a=qm.hasLines(r)||r.visible&&r.type==="quiver",n=qm.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 hN(e,r,t){return e&&cn.isArrayOrTypedArray(e)?r:e>t?t:e}});var B6=z((XYe,TN)=>{"use strict";var Nn=Er(),da=ke(),N6=va(),tf=Tr(),Dm=Th(),z6=Bi(),pa=Zr(),Yh=Sr(),af=Ca(),pN=q6().handleItemClick,mN=q6().handleTitleClick,xa=L6(),I6=Qa(),_N=I6.LINE_SPACING,lc=I6.FROM_TL,yN=I6.FROM_BR,gN=tN(),D5e=F6(),sc=Gh(),oc=1,E5e=/^legend[0-9]*$/;TN.exports=function(r,t){if(t)bN(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Nn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(E5e)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o<n.length;o++){var l=n[o],s=r._fullLayout[l];bN(r,s)}}};function P5e(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*_N,i=0,o=e.node(),l=pa.bBox(o).width;r.title.side==="top center"?i=.5*(r._width-2*t-2*xa.titlePad-l):r.title.side==="top right"&&(i=r._width-2*t-2*xa.titlePad-l),af.positionText(e,t+xa.titlePad+i,t+n)}}function bN(e,r){var t=r||{},a=e._fullLayout,n=sc.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=gN(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&&gN(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(),N6.autoMargin(e,n);var y=da.ensureSingle(o,"g",n,function(q){l||q.attr("pointer-events","all")}),m=da.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),b=da.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});b.call(Yh.stroke,t.bordercolor).call(Yh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=da.ensureSingle(y,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=da.ensureSingle(T,"text",n+"titletext"),x.attr("text-anchor","start").call(pa.font,w.font).text(w.text),Cm(x,T,e,t,oc),!l&&(t.titleclick||t.titledoubleclick)&&z5e(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var _=da.ensureSingle(y,"rect","scrollbar",function(q){q.attr(xa.scrollBarEnterAttrs).call(Yh.fill,xa.scrollBarColor)}),k=T.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var A=k.selectAll("g.traces").data(da.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.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 tf.traceIs(E,"pie-like")?p.indexOf(q[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){Nn.select(this).call(R5e,e,t)}).call(D5e,e,t).each(function(q){l||q[0].groupTitle&&t.groupclick==="toggleitem"||Nn.select(this).call(F5e,e,n)}),da.syncOrAsync([N6.previousPromises,function(){return B5e(e,k,A,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 De=Le.legend||"legend";var Ne=Array.isArray(De)?De.includes(n):De===n;return Ne&&Le.visible===!0});x.style("opacity",Me?1:.5)}if(!l){var R,N;E?R=q.l+q.w*t.x-lc[Em(t)]*t._width:R=a.width*t.x-lc[Em(t)]*t._width,P?N=q.t+q.h*(1-t.y)-lc[Pm(t)]*t._effHeight:N=a.height*(1-t.y)-lc[Pm(t)]*t._effHeight;var I=O5e(e,n,R,N);if(I)return;if(a.margin.autoexpand){var O=R,U=N;R=E?da.constrain(R,0,a.width-t._width):O,N=P?da.constrain(N,0,a.height-t._effHeight):U,R!==O&&da.log("Constrain "+n+".x to make legend fit inside graph"),N!==U&&da.log("Constrain "+n+".y to make legend fit inside graph")}pa.setTranslate(y,R,N)}if(_.on(".drag",null),y.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;l&&(Y=t._height),b.attr({width:t._width-C,height:Y-C,x:C/2,y:C/2}),pa.setTranslate(T,0,0),m.select("rect").attr({width:t._width-2*C,height:Y-2*C,x:C,y:C}),pa.setClipUrl(T,i,e),pa.setRect(_,0,0,0,0),delete t._scrollY}else{var G=Math.max(xa.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),V=t._effHeight-G-2*xa.scrollBarMargin,W=t._height-t._effHeight,j=V/W,J=Math.min(t._scrollY||0,W);b.attr({width:t._width-2*C+xa.scrollBarWidth+xa.scrollBarMargin,height:t._effHeight-C,x:C/2,y:C/2}),m.select("rect").attr({width:t._width-2*C+xa.scrollBarWidth+xa.scrollBarMargin,height:t._effHeight-2*C,x:C,y:C+J}),pa.setClipUrl(T,i,e),ce(J,G,j),y.on("wheel",function(){J=da.constrain(t._scrollY+Nn.event.deltaY/W*V,0,W),ce(J,G,j),J!==0&&J!==W&&Nn.event.preventDefault()});var te,ae,se,$=function(Ce,Me,Le){var De=(Le-Me)/j+Ce;return da.constrain(De,0,W)},fe=function(Ce,Me,Le){var De=(Me-Le)/j+Ce;return da.constrain(De,0,W)},ie=Nn.behavior.drag().on("dragstart",function(){var Ce=Nn.event.sourceEvent;Ce.type==="touchstart"?te=Ce.changedTouches[0].clientY:te=Ce.clientY,se=J}).on("drag",function(){var Ce=Nn.event.sourceEvent;Ce.buttons===2||Ce.ctrlKey||(Ce.type==="touchmove"?ae=Ce.changedTouches[0].clientY:ae=Ce.clientY,J=$(se,te,ae),ce(J,G,j))});_.call(ie);var ue=Nn.behavior.drag().on("dragstart",function(){var Ce=Nn.event.sourceEvent;Ce.type==="touchstart"&&(te=Ce.changedTouches[0].clientY,se=J)}).on("drag",function(){var Ce=Nn.event.sourceEvent;Ce.type==="touchmove"&&(ae=Ce.changedTouches[0].clientY,J=fe(se,te,ae),ce(J,G,j))});T.call(ue)}function ce(Ce,Me,Le){t._scrollY=e._fullLayout[n]._scrollY=Ce,pa.setTranslate(T,0,-Ce),pa.setRect(_,t._width,xa.scrollBarMargin+Ce*Le,xa.scrollBarWidth,Me),m.select("rect").attr("y",C+Ce)}if(e._context.edits.legendPosition){var oe,be,Re,ye;y.classed("cursor-move",!0),z6.init({element:y.node(),gd:e,prepFn:function(Ce){if(Ce.target!==_.node()){var Me=pa.getTranslate(y);Re=Me.x,ye=Me.y}},moveFn:function(Ce,Me){if(Re!==void 0&&ye!==void 0){var Le=Re+Ce,De=ye+Me;pa.setTranslate(y,Le,De),oe=z6.align(Le,t._width,q.l,q.l+q.w,t.xanchor),be=z6.align(De+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(oe!==void 0&&be!==void 0){var Ce={};Ce[n+".x"]=oe,Ce[n+".y"]=be,tf.call("_guiRelayout",e,Ce)}},clickFn:function(Ce,Me){var Le=o.selectAll("g.traces").filter(function(){var De=this.getBoundingClientRect();return Me.clientX>=De.left&&Me.clientX<=De.right&&Me.clientY>=De.top&&Me.clientY<=De.bottom});Le.size()>0&&wN(e,t,Le,Ce,Me)}})}}],e)}}function Lm(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 wN(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),tf.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=Dm.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&pN(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Dm.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&pN(t,e,r,s,a)}}function R5e(e,r,t){var a=sc.getId(t),n=e.data()[0][0],i=n.trace,o=tf.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=da.templateString(u,i._meta))));var c=da.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(pa.font,f).text(l?xN(u,s):u);var v=t.indentation+t.itemwidth+xa.itemGap*2;af.positionText(c,v,0),l?c.call(af.makeEditable,{gd:r,text:u}).call(Cm,e,r,t).on("edit",function(d){this.text(xN(d,s)).call(Cm,e,r,t);var p={};return p.name=d,n.trace._isShape?tf.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):tf.call("_guiRestyle",r,p,i.index)}):Cm(c,e,r,t)}function xN(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 F5e(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=da.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Yh.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)),wN(r,l,e,i,Nn.event)}}))}function z5e(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&tf.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=da.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Yh.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:Nn.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(Dm.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&mN(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Dm.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&mN(r,t,t.titledoubleclick))}))}function Cm(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),af.convertToTspans(e,t,function(){N5e(r,t,a,n)})}function N5e(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=sc.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===oc?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*_N,v,d;if(l){var p=pa.bBox(l);v=p.height,d=p.width,a===oc?pa.setTranslate(o,u,u+v*.75):pa.setTranslate(o,0,v*.25)}else{var y="."+s+(a===oc?"title":"")+"text",m=e.select(y),b=af.lineCount(m),T=m.node();if(v=c*b,d=T?pa.bBox(T).width:0,a===oc)t.title.side==="left"&&(d+=xa.itemGap*2),af.positionText(m,u+xa.titlePad,u+c);else{var w=xa.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=xa.itemGap,d-=t.indentation+t.itemwidth),af.positionText(m,w,-c*((b-1)/2-.3))}}a===oc?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function I5e(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 B5e(e,r,t,a,n){var i=e._fullLayout,o=sc.getId(a);a||(a=i[o]);var l=i._size,s=sc.isVertical(a),u=sc.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=xa.itemGap,p=a.indentation+a.itemwidth+d*2,y=2*(c+d),m=Pm(a),b=a.y<0||a.y===0&&m==="top",T=a.y>1||a.y===1&&m==="bottom",w=a.tracegroupgap,x={};let{orientation:_,yref:k}=a,{maxheight:A}=a,q=b||T||_!=="v"||k!=="paper";A||(A=q?.5:1);let C=q?i.height:l.h;a._maxHeight=Math.max(A>1?A:A*C,30);var E=0;a._width=0,a._height=0;var P=I5e(a);if(s)t.each(function(Ce){var Me=Ce[0].height;pa.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+=y,u&&(r.each(function(Ce,Me){pa.setTranslate(this,0,Me*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=Em(a),N=a.x<0||a.x===0&&R==="right",I=a.x>1||a.x===1&&R==="left",O=T||b,U=i.width/2;a._maxWidth=Math.max(N?O&&R==="left"?l.l+l.w:U:I?O&&R==="right"?l.r+l.w:U:l.w,2*p);var Y=0,G=0;t.each(function(Ce){var Me=Lm(Ce,a,p);Y=Math.max(Y,Me),G+=Me}),E=null;var V=0;if(u){var W=0,j=0,J=0;r.each(function(){var Ce=0,Me=0;Nn.select(this).selectAll("g.traces").each(function(De){var Ne=Lm(De,a,p),qe=De[0].height;pa.setTranslate(this,P[0],P[1]+c+d+qe/2+Me),Me+=qe,Ce=Math.max(Ce,Ne),x[De[0].trace.legendgroup]=Ce});var Le=Ce+d;j>0&&Le+c+j>a._maxWidth?(V=Math.max(V,j),j=0,J+=W+w,W=Me):W=Math.max(W,Me),pa.setTranslate(this,j,J),j+=Le}),a._width=Math.max(V,j)+c,a._height=J+W+y}else{var te=t.size(),ae=G+v+(te-1)*d<a._maxWidth,se=0,$=0,fe=0,ie=0;t.each(function(Ce){var Me=Ce[0].height,Le=Lm(Ce,a,p,u),De=ae?Le:Y;f||(De+=d),De+c+$-d>=a._maxWidth&&(V=Math.max(V,ie),$=0,fe+=se,a._height+=se,se=0),pa.setTranslate(this,P[0]+c+$,P[1]+c+fe+Me/2+d),ie=$+Le+d,$+=De,se=Math.max(se,Me)}),ae?(a._width=$+v,a._height=se+y):(a._width=Math.max(V,ie)+v,a._height+=se+y)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+xa.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+xa.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ue=e._context.edits,ce=ue.legendText||ue.legendPosition;t.each(function(Ce){var Me=Nn.select(this).select("."+o+"toggle"),Le=Ce[0].height,De=Ce[0].trace.legendgroup,Ne=Lm(Ce,a,p);u&&De!==""&&(Ne=x[De]);var qe=ce?p:E||Ne;!s&&!f&&(qe+=d/2),pa.setRect(Me,0,-Le/2,qe,Le)});var oe=n.select("."+o+"titletext");oe.node()&&P5e(oe,a,c);var be=n.select("."+o+"titletoggle");if(be.size()&&oe.node()){var Re=oe.attr("x")||0,ye=xa.titlePad;pa.setRect(be,Re-ye,c,a._titleWidth+2*ye,a._titleHeight+2*ye)}}function O5e(e,r,t,a){var n=e._fullLayout,i=n[r],o=Em(i),l=Pm(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 N6.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*lc[o],r:i._width*yN[o],b:i._effHeight*yN[l],t:i._effHeight*lc[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 Em(e){return da.isRightAnchor(e)?"right":da.isCenterAnchor(e)?"center":"left"}function Pm(e){return da.isBottomAnchor(e)?"bottom":da.isMiddleAnchor(e)?"middle":"top"}});var G6=z(U6=>{"use strict";var nf=Er(),Ol=Ir(),$t=ke(),H5e=$t.pushUnique,O6=$t.strTranslate,U5e=$t.strRotate,G5e=Th(),Hi=Ca(),Y5e=Zz(),ll=Zr(),_a=Sr(),Rm=Bi(),sl=Gr(),V5e=qa().zindexSeparator,fc=Tr(),gi=qo(),of=Jv(),j5e=M6(),W5e=B6(),DN=of.YANGLE,H6=Math.PI*DN/180,X5e=1/Math.sin(H6),Z5e=Math.cos(H6),$5e=Math.sin(H6),Bt=of.HOVERARROWSIZE,Wr=of.HOVERTEXTPAD,AN={box:!0,ohlc:!0,violin:!0,candlestick:!0},J5e={scatter:!0,scattergl:!0,splom:!0};function MN(e,r){return e.distance-r.distance}U6.hover=function(r,t,a,n){r=$t.getGraphDiv(r);var i=t.target;$t.throttle(r._fullLayout._uid+of.HOVERID,of.HOVERMINTIME,function(){K5e(r,t,a,n,i)})};U6.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=zN(n),o=NN(n),l=r.map(function(m){var b=m._x0||m.x0||m.x||0,T=m._x1||m.x1||m.x||0,w=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,_=m.eventData;if(_){var k=Math.min(b,T),A=Math.max(b,T),q=Math.min(w,x),C=Math.max(w,x),E=m.trace;if(fc.traceIs(E,"gl3d")){var P=n._fullLayout[E.scene]._scene.container,R=P.offsetLeft,N=P.offsetTop;k+=R,A+=R,q+=N,C+=N}_.bbox={x0:k+o,x1:A+o,y0:q+i,y1:C+i},_.xPixel=(b+T)/2,_.yPixel=(w+x)/2,t.inOut_bbox&&t.inOut_bbox.push(_.bbox)}else _=!1;return{color:m.color||_a.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:_}}),s=!1,u=PN(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_a.background,container:nf.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,d=0;f.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var T=m.y0-m.by/2;T-c<v?m.offset=v-T+c:m.offset=0,v=T+m.by+m.offset,b===t.anchorIndex&&(d=m.offset)}).each(function(m){m.offset-=d});var p=n._fullLayout._invScaleX,y=n._fullLayout._invScaleY;return FN(f,s,p,y),a?f:f.node()};function K5e(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(V5e)[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=r.hovermode||l.hovermode,d=(v||"").charAt(0)==="x",p=(v||"").charAt(0)==="y",y,m;if(c&&(d||p)&&s==="axis"){for(var b=i.length,T=0;T<b;T++)if(o=i[T],u[o]){y=sl.getFromId(e,o,"x"),m=sl.getFromId(e,o,"y");var w=(d?y:m)._subplotsWith;if(w&&w.length)for(var x=0;x<w.length;x++)H5e(i,w[x])}}if(f&&s!=="single"){var _=f.overlays.map(function(vr){return vr.id});i=i.concat(_)}for(var k=i.length,A=new Array(k),q=new Array(k),C=!1,E=0;E<k;E++)if(o=i[E],u[o])C=!0,A[E]=u[o].xaxis,q[E]=u[o].yaxis;else if(l[o]&&l[o]._subplot){var P=l[o]._subplot;A[E]=P.xaxis,q[E]=P.yaxis}else{$t.warn("Unrecognized subplot: "+o);return}if(v&&!C&&(v="closest"),["x","y","closest","x unified","y unified"].indexOf(v)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return Rm.unhoverRaw(e,r);var R=l.hoverdistance;R===-1&&(R=1/0);var N=l.spikedistance;N===-1&&(N=1/0);var I=[],O=[],U,Y,G,V,W,j,J,te,ae,se,$,fe,ie,ue={hLinePoint:null,vLinePoint:null},ce=!1;if(Array.isArray(r))for(v="array",G=0;G<r.length;G++)W=e.calcdata[r[G].curveNumber||0],W&&(j=W[0].trace,W[0].trace.hoverinfo!=="skip"&&(O.push(W),j.orientation==="h"&&(ce=!0)));else{var oe=e.calcdata.slice();for(oe.sort(function(vr,_t){var Yr=vr[0].trace.zorder||0,vt=_t[0].trace.zorder||0;return Yr-vt}),V=0;V<oe.length;V++)W=oe[V],j=W[0].trace,j.hoverinfo!=="skip"&&gi.isTraceInSubplots(j,i)&&(O.push(W),j.orientation==="h"&&(ce=!0));var be=!n,Re,ye;if(be)"xpx"in r?Re=r.xpx:Re=A[0]._length/2,"ypx"in r?ye=r.ypx:ye=q[0]._length/2;else{if(G5e.triggerHandler(e,"plotly_beforehover",r)===!1)return;var Ce=n.getBoundingClientRect();Re=r.clientX-Ce.left,ye=r.clientY-Ce.top,l._calcInverseTransform(e);var Me=$t.apply3DTransform(l._invTransform)(Re,ye);if(Re=Me[0],ye=Me[1],Re<0||Re>A[0]._length||ye<0||ye>q[0]._length)return Rm.unhoverRaw(e,r)}if(r.pointerX=Re+A[0]._offset,r.pointerY=ye+q[0]._offset,"xval"in r?U=gi.flat(i,r.xval):U=gi.p2c(A,Re),"yval"in r?Y=gi.flat(i,r.yval):Y=gi.p2c(q,ye),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Ol(U[0])||!Ol(Y[0]))return $t.warn("Fx.hover failed",r,e),Rm.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=U,e._hoverYVals=Y,e._hoverXAxes=A,e._hoverYAxes=q);var Le=1/0;function De(vr,_t){for(V=0;V<O.length;V++)if(W=O[V],!(!W||!W[0]||!W[0].trace)&&(j=W[0].trace,!(j.visible!==!0||j._length===0)&&["carpet","contourcarpet"].indexOf(j._module.name)===-1)){if(ae=v,gi.isUnifiedHover(ae)&&(ae=ae.charAt(0)),j.type==="splom"?(te=0,J=i[te]):(J=gi.getSubplot(j),te=i.indexOf(J)),fe={cd:W,trace:j,xa:A[te],ya:q[te],maxHoverDistance:R,maxSpikeDistance:N,index:!1,distance:Math.min(Le,R),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:_a.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[J]&&(fe.subplot=l[J]._subplot),l._splomScenes&&l._splomScenes[j.uid]&&(fe.scene=l._splomScenes[j.uid]),ae==="array"){var Yr=r[V];if("pointNumber"in Yr){let aa=W[Yr.pointNumber];aa&&(fe.index=Yr.pointNumber,aa.lonlat?(se=aa.lonlat[0],$=aa.lonlat[1]):(se=aa.x,$=aa.y)),ae="closest"}else ae="","xval"in Yr&&(se=Yr.xval,ae="x"),"yval"in Yr&&($=Yr.yval,ae=ae?"closest":"y")}else vr!==void 0&&_t!==void 0?(se=vr,$=_t):(se=U[te],$=Y[te]);if(ie=I.length,R!==0)if(j._module&&j._module.hoverPoints){var vt=j._module.hoverPoints(fe,se,$,ae,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:s,gd:e});if(vt)for(var Rt,Mt=0;Mt<vt.length;Mt++)Rt=vt[Mt],Ol(Rt.x0)&&Ol(Rt.y0)&&I.push(txe(Rt,v))}else $t.log("Unrecognized trace type in hover:",j);if(v==="closest"&&I.length>ie&&(I.splice(0,ie),Le=I[0].distance),c&&N!==0&&I.length===0){fe.distance=N,fe.index=!1;var nt=j._module.hoverPoints(fe,se,$,"closest",{hoverLayer:l._hoverlayer});if(nt&&(nt=nt.filter(function(aa){return aa.spikeDistance<=N})),nt&&nt.length){var ra,En=nt.filter(function(aa){return aa.xa.showspikes&&aa.xa.spikesnap!=="hovered data"});if(En.length){var Vt=En[0];Ol(Vt.x0)&&Ol(Vt.y0)&&(ra=qe(Vt),(!ue.vLinePoint||ue.vLinePoint.spikeDistance>ra.spikeDistance)&&(ue.vLinePoint=ra))}var Ct=nt.filter(function(aa){return aa.ya.showspikes&&aa.ya.spikesnap!=="hovered data"});if(Ct.length){var ta=Ct[0];Ol(ta.x0)&&Ol(ta.y0)&&(ra=qe(ta),(!ue.hLinePoint||ue.hLinePoint.spikeDistance>ra.spikeDistance)&&(ue.hLinePoint=ra))}}}}}De();function Ne(vr,_t,Yr){for(var vt=null,Rt=1/0,Mt,nt=0;nt<vr.length;nt++)y&&y._id!==vr[nt].xa._id||m&&m._id!==vr[nt].ya._id||(Mt=vr[nt].spikeDistance,Yr&&nt===0&&(Mt=-1/0),Mt<=Rt&&Mt<=_t&&(vt=vr[nt],Rt=Mt));return vt}function qe(vr){return vr?{xa:vr.xa,ya:vr.ya,x:vr.xSpike!==void 0?vr.xSpike:(vr.x0+vr.x1)/2,y:vr.ySpike!==void 0?vr.ySpike:(vr.y0+vr.y1)/2,distance:vr.distance,spikeDistance:vr.spikeDistance,curveNumber:vr.trace.index,color:vr.color,pointNumber:vr.index}:null}var Xe={fullLayout:l,container:l._hoverlayer,event:r},$e=e._spikepoints,We={vLinePoint:ue.vLinePoint,hLinePoint:ue.hLinePoint};e._spikepoints=We;var Se=function(){var vr=I.filter(function(Yr){return y&&y._id===Yr.xa._id&&m&&m._id===Yr.ya._id}),_t=I.filter(function(Yr){return!(y&&y._id===Yr.xa._id&&m&&m._id===Yr.ya._id)});vr.sort(MN),_t.sort(MN),I=vr.concat(_t),I=nxe(I,v)};Se();var Fe=v.charAt(0),Qe=(Fe==="x"||Fe==="y")&&I[0]&&J5e[I[0].trace.type];if(c&&N!==0&&I.length!==0){var re=I.filter(function(vr){return vr.ya.showspikes}),xe=Ne(re,N,Qe);ue.hLinePoint=qe(xe);var Ge=I.filter(function(vr){return vr.xa.showspikes}),cr=Ne(Ge,N,Qe);ue.vLinePoint=qe(cr)}if(I.length===0){var Pe=Rm.unhoverRaw(e,r);if(c&&(ue.hLinePoint!==null||ue.vLinePoint!==null)&&qN($e)&&SN(e,ue,Xe),l.hoveranywhere&&!a&&n){var me=e._hoverdata;me&&me.length&&(e.emit("plotly_unhover",{event:r,points:me}),e._hoverdata=[]),oa([]),e._hoverAnywhereActive=!0}return Pe}if(c&&qN($e)&&SN(e,ue,Xe),gi.isXYhover(ae)&&I[0].length!==0&&I[0].trace.type!=="splom"){var Ae=I[0];AN[Ae.trace.type]?I=I.filter(vr=>vr.trace.index===Ae.trace.index):I=[Ae];var He=I.length,Ze=CN("x",Ae,l),Be=CN("y",Ae,l);De(Ze,Be);var je=[],tr={},ir=0,lr=function(vr){var _t=AN[vr.trace.type]?EN(vr):vr.trace.index;if(!tr[_t])ir++,tr[_t]=ir,je.push(vr);else{var Yr=tr[_t]-1,vt=je[Yr];Yr>0&&Math.abs(vr.distance)<Math.abs(vt.distance)&&(je[Yr]=vr)}},Ee;for(Ee=0;Ee<He;Ee++)lr(I[Ee]);for(Ee=I.length-1;Ee>He-1;Ee--)lr(I[Ee]);I=je,Se()}var Je=e._hoverdata,Ie=[],pr=zN(e),mr=NN(e);for(let vr of I){var sr=gi.makeEventData(vr,vr.trace,vr.cd);if(vr.hovertemplate!==!1){var yr=!1;vr.cd[vr.index]&&vr.cd[vr.index].ht&&(yr=vr.cd[vr.index].ht),vr.hovertemplate=yr||vr.trace.hovertemplate||!1}if(vr.xa&&vr.ya){var ne=vr.x0+vr.xa._offset,ge=vr.x1+vr.xa._offset,ze=vr.y0+vr.ya._offset,Oe=vr.y1+vr.ya._offset,Jr=Math.min(ne,ge),Kr=Math.max(ne,ge),mt=Math.min(ze,Oe),yt=Math.max(ze,Oe);sr.bbox={x0:Jr+mr,x1:Kr+mr,y0:mt+pr,y1:yt+pr},sr.xPixel=(ne+ge)/2,sr.yPixel=(ze+Oe)/2}vr.eventData=[sr],Ie.push(sr)}e._hoverdata=Ie;var Lt=v==="y"&&(O.length>1||I.length>1)||v==="closest"&&ce&&I.length>1,Qt=_a.combine(l.plot_bgcolor||_a.background,l.paper_bgcolor),Va=PN(I,{gd:e,hovermode:v,rotateLabels:Lt,bgColor:Qt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),ea=Va.hoverLabels;if(gi.isUnifiedHover(v)||(exe(ea,Lt,l,Va.commonLabelBoundingBox),FN(ea,Lt,l._invScaleX,l._invScaleY)),n&&n.tagName){var ja=fc.getComponentMethod("annotations","hasClickToShow")(e,Ie);Y5e(nf.select(n),ja?"pointer":"")}var ln=axe(e,r,Je);if(!n||a||!ln&&!l.hoveranywhere)return;Je&&ln&&e.emit("plotly_unhover",{event:r,points:Je}),oa(e._hoverdata);function oa(vr){e.emit("plotly_hover",{event:r,points:vr,xaxes:A,yaxes:q,xvals:gi.c2dApply(A,U),yvals:gi.c2dApply(q,Y),xPixel:r.pointerX,yPixel:r.pointerY})}}function EN(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 Q5e=/<extra>([\s\S]*)<\/extra>/;function PN(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=r.fontFamily||of.HOVERFONT,c=r.fontSize||of.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,T=e[0],w=T.xa,x=T.ya,_=n.charAt(0),k=_+"Label",A=T[k];if(A===void 0&&w.type==="multicategory")for(var q=0;q<e.length&&(A=e[q][k],A===void 0);q++);var C=uc(t,s),E=C.top,P=C.width,R=C.height,N=A!==void 0&&T.distance<=r.hoverdistance&&(n==="x"||n==="y");if(N){var I=!0,O,U;for(O=0;O<e.length;O++)if(I&&e[O].zLabel===void 0&&(I=!1),U=e[O].hoverinfo||e[O].trace.hoverinfo,U){var Y=Array.isArray(U)?U:U.split("+");if(Y.indexOf("all")===-1&&Y.indexOf(n)===-1){N=!1;break}}I&&(N=!1)}var G=l.selectAll("g.axistext").data(N?[0]:[]);G.enter().append("g").classed("axistext",!0),G.exit().remove();var V={minX:0,maxX:0,minY:0,maxY:0};if(G.each(function(){var Pe=nf.select(this),me=$t.ensureSingle(Pe,"path","",function(mt){mt.style({"stroke-width":"1px"})}),Ae=$t.ensureSingle(Pe,"text","",function(mt){mt.attr("data-notex",1)}),He=u.bgcolor||_a.defaultLine,Ze=u.bordercolor||_a.contrast(He),Be=_a.contrast(He),je=u.font,tr={weight:je.weight||v,style:je.style||d,variant:je.variant||p,textcase:je.textcase||y,lineposition:je.lineposition||m,shadow:je.shadow||b,family:je.family||f,size:je.size||c,color:je.color||Be};me.style({fill:He,stroke:Ze}),Ae.text(A).call(ll.font,tr).call(Hi.positionText,0,0).call(Hi.convertToTspans,t),Pe.attr("transform","");var ir=uc(t,Ae.node()),lr,Ee;if(n==="x"){var Je=w.side==="top"?"-":"";Ae.attr("text-anchor","middle").call(Hi.positionText,0,w.side==="top"?E-ir.bottom-Bt-Wr:E-ir.top+Bt+Wr),lr=w._offset+(T.x0+T.x1)/2,Ee=x._offset+(w.side==="top"?0:x._length);var Ie=ir.width/2+Wr,pr=lr;lr<Ie?pr=Ie:lr>a.width-Ie&&(pr=a.width-Ie),me.attr("d","M"+(lr-pr)+",0L"+(lr-pr+Bt)+","+Je+Bt+"H"+Ie+"v"+Je+(Wr*2+ir.height)+"H"+-Ie+"V"+Je+Bt+"H"+(lr-pr-Bt)+"Z"),lr=pr,V.minX=lr-Ie,V.maxX=lr+Ie,w.side==="top"?(V.minY=Ee-(Wr*2+ir.height),V.maxY=Ee-Wr):(V.minY=Ee+Wr,V.maxY=Ee+(Wr*2+ir.height))}else{var mr,sr,yr;x.side==="right"?(mr="start",sr=1,yr="",lr=w._offset+w._length):(mr="end",sr=-1,yr="-",lr=w._offset),Ee=x._offset+(T.y0+T.y1)/2,Ae.attr("text-anchor",mr),me.attr("d","M0,0L"+yr+Bt+","+Bt+"V"+(Wr+ir.height/2)+"h"+yr+(Wr*2+ir.width)+"V-"+(Wr+ir.height/2)+"H"+yr+Bt+"V-"+Bt+"Z"),V.minY=Ee-(Wr+ir.height/2),V.maxY=Ee+(Wr+ir.height/2),x.side==="right"?(V.minX=lr+Bt,V.maxX=lr+Bt+(Wr*2+ir.width)):(V.minX=lr-Bt-(Wr*2+ir.width),V.maxX=lr-Bt);var ne=ir.height/2,ge=E-ir.top-ne,ze="clip"+a._uid+"commonlabel"+x._id,Oe;if(lr<ir.width+2*Wr+Bt){Oe="M-"+(Bt+Wr)+"-"+ne+"h-"+(ir.width-Wr)+"V"+ne+"h"+(ir.width-Wr)+"Z";var Jr=ir.width-lr+Wr;Hi.positionText(Ae,Jr,ge),mr==="end"&&Ae.selectAll("tspan").each(function(){var mt=nf.select(this),yt=ll.tester.append("text").text(mt.text()).call(ll.font,tr),Lt=uc(t,yt.node());Math.round(Lt.width)<Math.round(ir.width)&&mt.attr("x",Jr-Lt.width),yt.remove()})}else Hi.positionText(Ae,sr*(Wr+Bt),ge),Oe=null;var Kr=a._topclips.selectAll("#"+ze).data(Oe?[0]:[]);Kr.enter().append("clipPath").attr("id",ze).append("path"),Kr.exit().remove(),Kr.select("path").attr("d",Oe),ll.setClipUrl(Ae,Oe?ze:null,t)}Pe.attr("transform",O6(lr,Ee))}),gi.isUnifiedHover(n)){l.selectAll("g.hovertext").remove();let Pe=e.filter(me=>me.hoverinfo!=="none");if(Pe.length===0)return[];var W=a.hoverlabel,j=W.font,J=Pe[0],te=((n==="x unified"?J.xa:J.ya).unifiedhovertitle||{}).text,ae=te?$t.hovertemplateString({data:n==="x unified"?[{xa:J.xa,x:J.xVal}]:[{ya:J.ya,y:J.yVal}],fallback:J.trace.hovertemplatefallback,locale:a._d3locale,template:te}):A,se={showlegend:!0,legend:{title:{text:ae,font:j},font:j,bgcolor:W.bgcolor,bordercolor:W.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},$={font:j};j5e(se,$,t._fullData);var fe=$.legend;fe.entries=[];for(var ie=0;ie<Pe.length;ie++){var ue=Pe[ie];if(ue.hoverinfo!=="none"){var ce=kN(ue,!0,n,a,A),oe=ce[0],be=ce[1];ue.name=be,be!==""?ue.text=be+" : "+oe:ue.text=oe;var Re=ue.cd[ue.index];Re&&(Re.mc&&(ue.mc=Re.mc),Re.mcc&&(ue.mc=Re.mcc),Re.mlc&&(ue.mlc=Re.mlc),Re.mlcc&&(ue.mlc=Re.mlcc),Re.mlw&&(ue.mlw=Re.mlw),Re.mrc&&(ue.mrc=Re.mrc),Re.dir&&(ue.dir=Re.dir)),ue._distinct=!0,fe.entries.push([ue])}}fe.entries.sort(function(me,Ae){var He=a.hoversort;if(He==="value descending"||He==="value ascending"){var Ze=n.charAt(0)==="x"?"y":"x",Be=me[0][Ze+"LabelVal"],je=Ae[0][Ze+"LabelVal"];if(Be!==je)return He==="value descending"?je-Be:Be-je}return me[0].trace.index-Ae[0].trace.index}),fe.layer=l,fe._inHover=!0,fe._groupTitleFont=W.grouptitlefont,W5e(t,fe);var ye=l.select("g.legend"),Ce=uc(t,ye.node()),Me=Ce.width+2*Wr,Le=Ce.height+2*Wr,De=Pe[0],Ne=(De.x0+De.x1)/2,qe=(De.y0+De.y1)/2,Xe=!(fc.traceIs(De.trace,"bar-like")||fc.traceIs(De.trace,"box-violin")),$e,We;_==="y"?Xe?(We=qe-Wr,$e=qe+Wr):(We=Math.min.apply(null,Pe.map(function(me){return Math.min(me.y0,me.y1)})),$e=Math.max.apply(null,Pe.map(function(me){return Math.max(me.y0,me.y1)}))):We=$e=$t.mean(Pe.map(function(me){return(me.y0+me.y1)/2}))-Le/2;var Se,Fe;_==="x"?Xe?(Se=Ne+Wr,Fe=Ne-Wr):(Se=Math.max.apply(null,Pe.map(function(me){return Math.max(me.x0,me.x1)})),Fe=Math.min.apply(null,Pe.map(function(me){return Math.min(me.x0,me.x1)}))):Se=Fe=$t.mean(Pe.map(function(me){return(me.x0+me.x1)/2}))-Me/2;var Qe=w._offset,re=x._offset;$e+=re,Se+=Qe,Fe+=Qe-Me,We+=re-Le;var xe,Ge;return Se+Me<P&&Se>=0?xe=Se:Fe+Me<P&&Fe>=0?xe=Fe:Qe+Me<P?xe=Qe:Se-Ne<Ne-Fe+Me?xe=P-Me:xe=0,xe+=Wr,$e+Le<R&&$e>=0?Ge=$e:We+Le<R&&We>=0?Ge=We:re+Le<R?Ge=re:$e-qe<qe-We+Le?Ge=R-Le:Ge=0,Ge+=Wr,ye.attr("transform",O6(xe-1,Ge-1)),ye}var cr=l.selectAll("g.hovertext").data(e,function(Pe){return EN(Pe)});return cr.enter().append("g").classed("hovertext",!0).each(function(){var Pe=nf.select(this);Pe.append("rect").call(_a.fill,_a.addOpacity(o,.8)),Pe.append("text").classed("name",!0),Pe.append("path").style("stroke-width","1px"),Pe.append("text").classed("nums",!0).call(ll.font,{weight:v,style:d,variant:p,textcase:y,lineposition:m,shadow:b,family:f,size:c})}),cr.exit().remove(),cr.each(function(Pe){var me=nf.select(this).attr("transform",""),Ae=Pe.color;Array.isArray(Ae)&&(Ae=Ae[Pe.eventData[0].pointNumber]);var He=Pe.bgcolor||Ae,Ze=_a.combine(_a.opacity(He)?He:_a.defaultLine,o),Be=_a.combine(_a.opacity(Ae)?Ae:_a.defaultLine,o),je=Pe.borderColor||_a.contrast(Ze),tr=kN(Pe,N,n,a,A,me),ir=tr[0],lr=tr[1],Ee=me.select("text.nums").call(ll.font,{family:Pe.fontFamily||f,size:Pe.fontSize||c,color:Pe.fontColor||je,weight:Pe.fontWeight||v,style:Pe.fontStyle||d,variant:Pe.fontVariant||p,textcase:Pe.fontTextcase||y,lineposition:Pe.fontLineposition||m,shadow:Pe.fontShadow||b}).text(ir).attr("data-notex",1).call(Hi.positionText,0,0).call(Hi.convertToTspans,t),Je=me.select("text.name"),Ie=0,pr=0;if(lr&&lr!==ir){Je.call(ll.font,{family:Pe.fontFamily||f,size:Pe.fontSize||c,color:Be,weight:Pe.fontWeight||v,style:Pe.fontStyle||d,variant:Pe.fontVariant||p,textcase:Pe.fontTextcase||y,lineposition:Pe.fontLineposition||m,shadow:Pe.fontShadow||b}).text(lr).attr("data-notex",1).call(Hi.positionText,0,0).call(Hi.convertToTspans,t);var mr=uc(t,Je.node());Ie=mr.width+2*Wr,pr=mr.height+2*Wr}else Je.remove(),me.select("rect").remove();me.select("path").style({fill:Ze,stroke:je});var sr=Pe.xa._offset+(Pe.x0+Pe.x1)/2,yr=Pe.ya._offset+(Pe.y0+Pe.y1)/2,ne=Math.abs(Pe.x1-Pe.x0),ge=Math.abs(Pe.y1-Pe.y0),ze=uc(t,Ee.node()),Oe=ze.width/a._invScaleX,Jr=ze.height/a._invScaleY;Pe.ty0=(E-ze.top)/a._invScaleY,Pe.bx=Oe+2*Wr,Pe.by=Math.max(Jr+2*Wr,pr),Pe.anchor="start",Pe.txwidth=Oe,Pe.tx2width=Ie,Pe.offset=0;var Kr=(Oe+Bt+Wr+Ie)*a._invScaleX,mt,yt;if(i)Pe.pos=sr,mt=yr+ge/2+Kr<=R,yt=yr-ge/2-Kr>=0,(Pe.idealAlign==="top"||!mt)&&yt?(yr-=ge/2,Pe.anchor="end"):mt?(yr+=ge/2,Pe.anchor="start"):Pe.anchor="middle",Pe.crossPos=yr;else{if(Pe.pos=yr,mt=sr+ne/2+Kr<=P,yt=sr-ne/2-Kr>=0,(Pe.idealAlign==="left"||!mt)&&yt)sr-=ne/2,Pe.anchor="end";else if(mt)sr+=ne/2,Pe.anchor="start";else{Pe.anchor="middle";var Lt=Kr/2,Qt=sr+Lt-P,Va=sr-Lt;Qt>0&&(sr-=Qt),Va<0&&(sr+=-Va)}Pe.crossPos=sr}Ee.attr("text-anchor",Pe.anchor),Ie&&Je.attr("text-anchor",Pe.anchor),me.attr("transform",O6(sr,yr)+(i?U5e(DN):""))}),{hoverLabels:cr,commonLabelBoundingBox:V}}function kN(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=$t.templateString(e.name,e.trace._meta)),o=LN(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=$t.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(Q5e,(p,y)=>(o=LN(y,e.nameLength),""))}return[l,o]}function exe(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,y=function(U){return U*t._invScaleX},m=function(U){return U*t._invScaleY};e.each(function(U){var Y=U[n],G=U[i],V=Y._id.charAt(0)==="x",W=Y.range;f===0&&W&&W[0]>W[1]!==V&&(l=-1);var j=0,J=V?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var te=RN(U,r),ae=U.anchor,se=ae==="end"?-1:1,$,fe;if(ae==="middle")$=U.crossPos+(V?m(te.y-U.by/2):y(U.bx/2+U.tx2width/2)),fe=$+(V?m(U.by):y(U.bx));else if(V)$=U.crossPos+m(Bt+te.y)-m(U.by/2-Bt),fe=$+m(U.by);else{var ie=y(se*Bt+te.x),ue=ie+y(se*U.bx);$=U.crossPos+Math.min(ie,ue),fe=U.crossPos+Math.max(ie,ue)}V?d!==void 0&&p!==void 0&&Math.min(fe,p)-Math.max($,d)>1&&(G.side==="left"?(j=G._mainLinePosition,J=t.width):J=G._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(fe,v)-Math.max($,c)>1&&(G.side==="top"?(j=G._mainLinePosition,J=t.height):J=G._mainLinePosition)}u[f++]=[{datum:U,traceIndex:U.trace.index,dp:0,pos:U.pos,posref:U.posref,size:U.by*(V?X5e:1)/2,pmin:j,pmax:J}]}),u.sort(function(U,Y){return U[0].posref-Y[0].posref||l*(Y[0].traceIndex-U[0].traceIndex)});var b,T,w,x,_,k,A;function q(U){var Y=U[0],G=U[U.length-1];if(T=Y.pmin-Y.pos-Y.dp+Y.size,w=G.pos+G.dp+G.size-Y.pmax,T>.01){for(_=U.length-1;_>=0;_--)U[_].dp+=T;b=!1}if(!(w<.01)){if(T<-.01){for(_=U.length-1;_>=0;_--)U[_].dp-=w;b=!1}if(b){var V=0;for(x=0;x<U.length;x++)k=U[x],k.pos+k.dp+k.size>Y.pmax&&V++;for(x=U.length-1;x>=0&&!(V<=0);x--)k=U[x],k.pos>Y.pmax-1&&(k.del=!0,V--);for(x=0;x<U.length&&!(V<=0);x++)if(k=U[x],k.pos<Y.pmin+1)for(k.del=!0,V--,w=k.size*2,_=U.length-1;_>=0;_--)U[_].dp-=w;for(x=U.length-1;x>=0&&!(V<=0);x--)k=U[x],k.pos+k.dp+k.size>Y.pmax&&(k.del=!0,V--)}}}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),A=0,_=C.length-1;_>=0;_--)A+=C[_].dp;for(w=A/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 N=u[x];for(_=N.length-1;_>=0;_--){var I=N[_],O=I.datum;O.offset=I.dp,O.del=I.del}}}function RN(e,r){var t=0,a=e.offset;return r&&(a*=-$5e,t=e.offset*Z5e),{x:t,y:a}}function rxe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Bt+Wr),a=t+r*(e.txwidth+Wr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Wr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function FN(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=nf.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=rxe(o),v=RN(o,r),d=v.x,p=v.y,y=u==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;y?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":m?b="M0,0L"+n(f*Bt+d)+","+i(Bt+p)+"v"+i(o.by/2-Bt)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Bt+d)+"V"+i(p-Bt)+"Z":b="M"+n(f*Bt+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+Wr,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=y?-o.bx/2-o.tx2width/2+Wr:-o.bx-Wr):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=y?o.bx/2-o.tx2width/2-Wr:o.bx+Wr)),s.call(Hi.positionText,n(T),i(w)),o.tx2width&&(l.select("text.name").call(Hi.positionText,n(c.text2ShiftX+c.alignShift*Wr+d),i(p+o.ty0-o.by/2+Wr)),l.select("rect").call(ll.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 txe(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Ol(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=$t.castOption(n,t,v);return o(p)?p:$t.extractOption({},a,"",d)}:function(v,d){return $t.extractOption(i,a,v,d)};function s(v,d,p){var y=l(d,p);o(y)&&(e[v]=y)}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=$t.constrain(e.x0,0,e.xa._length),e.x1=$t.constrain(e.x1,0,e.xa._length),e.y0=$t.constrain(e.y0,0,e.ya._length),e.y1=$t.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:sl.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:sl.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=sl.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+sl.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=sl.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+sl.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 SN(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=_a.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var y=f.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var m=_a.wcagContrast(v.color,c)<1.5?_a.contrast(c):v.color,b=f.spikemode,T=f.spikethickness,w=f.spikecolor||m,x=sl.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){var A=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),q=Math.max(q,f.position)),_=i.l+A*i.w,k=i.l+q*i.w}a.insert("line",":first-child").attr({x1:_,x2:k,y1:p,y2:p,"stroke-width":T,stroke:w,"stroke-dasharray":ll.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 C=r.vLinePoint,E,P;u=C&&C.xa,f=C&&C.ya;var R=u.spikesnap;R==="cursor"?(E=o.pointerX,P=o.pointerY):(E=u._offset+C.x,P=f._offset+C.y);var N=_a.wcagContrast(C.color,c)<1.5?_a.contrast(c):C.color,I=u.spikemode,O=u.spikethickness,U=u.spikecolor||N,Y=sl.getPxPosition(e,u),G,V;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(G=Y,V=P),I.indexOf("across")!==-1){var W=u._counterDomainMin,j=u._counterDomainMax;u.anchor==="free"&&(W=Math.min(W,u.position),j=Math.max(j,u.position)),G=i.t+(1-j)*i.h,V=i.t+(1-W)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:G,y2:V,"stroke-width":O,stroke:U,"stroke-dasharray":ll.dashStyle(u.spikedash,O)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:G,y2:V,"stroke-width":O+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:Y-(u.side!=="top"?O:-O),r:O,fill:U}).classed("spikeline",!0)}}}function axe(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 qN(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function LN(e,r){return Hi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function nxe(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o<e.length;o++){var l=e[o];fc.traceIs(l.trace,"bar-like")||fc.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 CN(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 zN=e=>e.offsetTop+e.clientTop,NN=e=>e.offsetLeft+e.clientLeft;function uc(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=$t.apply3DTransform(t._invTransform)(n,i),u=$t.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 Fm=z(($Ye,IN)=>{"use strict";var ixe=ke(),oxe=Sr(),lxe=qo().isUnifiedHover;IN.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&&lxe(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=oxe.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),ixe.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var ON=z((JYe,BN)=>{"use strict";var sxe=ke(),uxe=Fm(),fxe=b0();BN.exports=function(r,t){function a(n,i){return sxe.coerce(r,t,fxe,n,i)}uxe(r,t,a)}});var GN=z((KYe,UN)=>{"use strict";var HN=ke(),cxe=P1(),vxe=Fm();UN.exports=function(r,t,a,n){function i(l,s){return HN.coerce(r,t,cxe,l,s)}var o=HN.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),vxe(r,t,i,o)}});var Y6=z((QYe,YN)=>{"use strict";var hxe=ke(),dxe=b0();YN.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:hxe.coerce(r,t,dxe,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var WN=z((eVe,jN)=>{"use strict";var VN=ke(),pxe=b0(),mxe=Y6(),yxe=Fm();jN.exports=function(r,t){function a(u,f){return VN.coerce(r,t,pxe,u,f)}var n=mxe(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"),yxe(r,t,a),VN.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var $N=z((rVe,ZN)=>{"use strict";var V6=ke(),XN=Tr();ZN.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return V6.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i<t.length;i++){var o=t[i],l=o[0].trace;if(!XN.traceIs(l,"pie-like")){var s=XN.traceIs(l,"2dMap")?gxe:V6.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 gxe(e,r,t,a){a=a||V6.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var QN=z((tVe,KN)=>{"use strict";var bxe=Tr(),JN=qo(),xxe=G6().hover;KN.exports=function(r,t,a){var n=bxe.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&xxe(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&&JN.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&JN.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 In=z((aVe,tI)=>{"use strict";var _xe=Er(),zm=ke(),wxe=Bi(),Vh=qo(),eI=b0(),rI=G6();tI.exports={moduleType:"component",name:"fx",constants:Jv(),schema:{layout:eI},attributes:P1(),layoutAttributes:eI,supplyLayoutGlobalDefaults:ON(),supplyDefaults:GN(),supplyLayoutDefaults:WN(),calc:$N(),getDistanceFunction:Vh.getDistanceFunction,getClosest:Vh.getClosest,inbox:Vh.inbox,quadrature:Vh.quadrature,appendArrayPointValue:Vh.appendArrayPointValue,castHoverOption:Axe,castHoverinfo:Mxe,hover:rI.hover,unhover:wxe.unhover,loneHover:rI.loneHover,loneUnhover:Txe,click:QN()};function Txe(e){var r=zm.isD3Selection(e)?e:_xe.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Axe(e,r,t){return zm.castOption(e,r,"hoverlabel."+t)}function Mxe(e,r,t){function a(n){return zm.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return zm.castOption(e,t,"hoverinfo",a)}});var lf=z(Hl=>{"use strict";Hl.selectMode=function(e){return e==="lasso"||e==="select"};Hl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Hl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Hl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Hl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Hl.selectingOrDrawing=function(e){return Hl.freeMode(e)||Hl.rectMode(e)}});var Nm=z((iVe,aI)=>{"use strict";aI.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 Im=z((oVe,nI)=>{"use strict";nI.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 Om=z((lVe,iI)=>{"use strict";var Bm=32;iI.exports={CIRCLE_SIDES:Bm,i000:0,i090:Bm/4,i180:Bm/2,i270:Bm/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var Hm=z((sVe,lI)=>{"use strict";var kxe=ke().strTranslate;function oI(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 Sxe(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 qxe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return oI(e,t[r])}}function Lxe(e){return kxe(e.xaxis._offset,e.yaxis._offset)}lI.exports={p2r:oI,r2p:Sxe,axValue:qxe,getTransform:Lxe}});var zs=z(Ul=>{"use strict";var Cxe=R4(),fI=Om(),cc=fI.CIRCLE_SIDES,j6=fI.SQRT2,cI=Hm(),sI=cI.p2r,uI=cI.r2p,Dxe=[0,3,4,5,6,1,2],Exe=[0,3,4,1,2];Ul.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=Exe[s]:o==="C"&&(u=Dxe[s]),t+=e[a][i][u],s>0&&s<l-1&&(t+=",")}}return t};Ul.readPaths=function(e,r,t,a){var n=Cxe(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 y=[],m,b,T,w,x=n[p][0],_=x;switch(x){case"M":l(),u=+n[p][1],f=+n[p][2],y.push([_,u,f]),d();break;case"Q":case"S":m=+n[p][1],T=+n[p][2],u=+n[p][3],f=+n[p][4],y.push([_,u,f,m,T]);break;case"C":m=+n[p][1],T=+n[p][2],b=+n[p][3],w=+n[p][4],u=+n[p][5],f=+n[p][6],y.push([_,u,f,m,T,b,w]);break;case"T":case"L":u=+n[p][1],f=+n[p][2],y.push([_,u,f]);break;case"H":_="L",u=+n[p][1],y.push([_,u,f]);break;case"V":_="L",f=+n[p][1],y.push([_,u,f]);break;case"A":_="L";var k=+n[p][1],A=+n[p][2];+n[p][4]||(k=-k,A=-A);var q=u-k,C=f;for(s=1;s<=cc/2;s++){var E=2*Math.PI*s/cc;y.push([_,q+k*Math.cos(E),C+A*Math.sin(E)])}break;case"Z":(u!==c||f!==v)&&(u=c,f=v,y.push([_,u,f]));break}for(var P=(t||{}).domain,R=r._fullLayout._size,N=t&&t.xsizemode==="pixel",I=t&&t.ysizemode==="pixel",O=a===!1,U=0;U<y.length;U++){for(s=0;s+2<7;s+=2){var Y=y[U][s+1],G=y[U][s+2];Y===void 0||G===void 0||(u=Y,f=G,t&&(t.xaxis&&t.xaxis.p2r?(O&&(Y-=t.xaxis._offset),N?Y=uI(t.xaxis,t.xanchor)+Y:Y=sI(t.xaxis,Y)):(O&&(Y-=R.l),P?Y=P.x[0]+Y/R.w:Y=Y/R.w),t.yaxis&&t.yaxis.p2r?(O&&(G-=t.yaxis._offset),I?G=uI(t.yaxis,t.yanchor)-G:G=sI(t.yaxis,G)):(O&&(G-=R.t),P?G=P.y[1]-G/R.h:G=1-G/R.h)),y[U][s+1]=Y,y[U][s+2]=G)}i[o].push(y[U].slice())}}return i};function jh(e,r){return Math.abs(e-r)<=1e-6}function Um(e,r){var t=r[1]-e[1],a=r[2]-e[2];return Math.sqrt(t*t+a*a)}Ul.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(!jh(a,n))return!1;var i=e[0][t]-e[3][t],o=e[1][t]-e[2][t];if(!jh(i,o))return!1}return!jh(e[0][1],e[1][1])&&!jh(e[0][1],e[3][1])?!1:!!(Um(e[0],e[1])*Um(e[0],e[3]))};Ul.pointsOnEllipse=function(e){var r=e.length;if(r!==cc+1)return!1;r=cc;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!jh(Um(e[t],e[i]),Um(e[a],e[n])))return!1}return!0};Ul.handleEllipse=function(e,r,t){if(!e)return[r,t];var a=Ul.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/j6),l||(l=o=o/j6);for(var s=[],u=0;u<cc;u++){var f=u*2*Math.PI/cc;s.push([n+o*Math.cos(f),i+l*Math.sin(f)])}return s};Ul.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=j6;return i*=u,o*=u,{x0:l-i,y0:s-o,x1:l+i,y1:s+o}};Ul.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 Vm=z((fVe,xI)=>{"use strict";var vI=ba(),yI=lf(),Pxe=yI.drawMode,Rxe=yI.openMode,vc=Om(),hI=vc.i000,dI=vc.i090,pI=vc.i180,mI=vc.i270,Fxe=vc.cos45,zxe=vc.sin45,gI=Hm(),Gm=gI.p2r,Ns=gI.r2p,Nxe=ks(),Ixe=Nxe.clearOutline,Ym=zs(),Bxe=Ym.readPaths,Oxe=Ym.writePaths,Hxe=Ym.ellipseOver,Uxe=Ym.fixDatesForPaths;function Gxe(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(!Pxe(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=bI(e,r,i);Ixe(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 y=u;switch(p.type){case"line":case"rect":case"circle":var m=vI.getFromId(a,p.xref);p.xref.charAt(0)==="x"&&m.type.includes("category")?(c("x0",y.x0-(p.x0shift||0)),c("x1",y.x1-(p.x1shift||0))):(c("x0",y.x0),c("x1",y.x1));var b=vI.getFromId(a,p.yref);p.yref.charAt(0)==="y"&&b.type.includes("category")?(c("y0",y.y0-(p.y0shift||0)),c("y1",y.y1-(p.y1shift||0))):(c("y0",y.y0),c("y1",y.y1));break;case"path":c("path",y.path);break}}}return n===void 0?(v.push(u),v):f?f.getUpdateObj():{}}}}function bI(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=Rxe(t),p=Bxe(i,n,l,s),y={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||(y.fillcolor=o.fillcolor,y.fillrule=o.fillrule);var m;if(p.length===1&&(m=p[0]),m&&m.length===5&&t==="drawrect")y.type="rect",y.x0=m[0][1],y.y0=m[0][2],y.x1=m[2][1],y.y1=m[2][2];else if(m&&t==="drawline")y.type="line",y.x0=m[0][1],y.y0=m[0][2],y.x1=m[1][1],y.y1=m[1][2];else if(m&&t==="drawcircle"){y.type="circle";var b=m[hI][1],T=m[dI][1],w=m[pI][1],x=m[mI][1],_=m[hI][2],k=m[dI][2],A=m[pI][2],q=m[mI][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=Ns(l.xaxis,b),T=Ns(l.xaxis,T),w=Ns(l.xaxis,w),x=Ns(l.xaxis,x)),E&&(_=Ns(l.yaxis,_),k=Ns(l.yaxis,k),A=Ns(l.yaxis,A),q=Ns(l.yaxis,q));var P=(T+x)/2,R=(_+A)/2,N=(x-T+w-b)/2,I=(q-k+A-_)/2,O=Hxe({x0:P,y0:R,x1:P+N*Fxe,y1:R+I*zxe});C&&(O.x0=Gm(l.xaxis,O.x0),O.x1=Gm(l.xaxis,O.x1)),E&&(O.y0=Gm(l.yaxis,O.y0),O.y1=Gm(l.yaxis,O.y1)),y.x0=O.x0,y.y0=O.y0,y.x1=O.x1,y.y1=O.y1}else y.type="path",u&&f&&Uxe(p,u,f),y.path=Oxe(p),m=null;return y}xI.exports={newShapes:Gxe,createShapeObj:bI}});var X6=z((cVe,_I)=>{"use strict";var Yxe=lf(),Vxe=Yxe.selectMode,jxe=ks(),Wxe=jxe.clearOutline,W6=zs(),Xxe=W6.readPaths,Zxe=W6.writePaths,$xe=W6.fixDatesForPaths;_I.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(!Vxe(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=Xxe(n,i,l,f),y={xref:s._id,yref:u._id,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}},m;p.length===1&&(m=p[0]),m&&m.length===5&&c==="select"?(y.type="rect",y.x0=m[0][1],y.y0=m[0][2],y.x1=m[2][1],y.y1=m[2][2]):(y.type="path",s&&u&&$xe(p,s,u),y.path=Zxe(p),m=null),Wxe(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=y;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(y),w):b?b.getUpdateObj():{}}}}});var Wh=z((vVe,wI)=>{"use strict";wI.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Bs=z(Ha=>{"use strict";var fl=Wh(),TI=ke(),Is=Gr();Ha.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Ha.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Ha.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Ha.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Ha.extractPathCoords=function(e,r,t){var a=[],n=e.match(fl.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(fl.paramRE);if(!(!l||l.length<o)){var s=l[o],u=t?s:TI.cleanNumber(s);a.push(u)}}}),a};Ha.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let a=r.match(fl.segmentRE);if(!a)return 0;let n=t==="x"?fl.paramIsX:fl.paramIsY;return a.reduce((i,o)=>{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Ha.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=Ha.shapePositionToRange(r);o=function(s){var u=ul(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Ha.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};Ha.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=Ha.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};Ha.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Ha.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}};Ha.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}};Ha.getPathString=function(e,r){let t=r.type,a=Is.getRefType(r.xref),n=Is.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,y,m,b;function T(E,P,R,N){var I;if(E)if(P==="domain")N?I=function(O){return E._offset+E._length*(1-O)}:I=function(O){return E._offset+E._length*O};else{let O=Ha.shapePositionToRange(E);I=function(U){return E._offset+E.r2p(O(U,!0))},R==="path"&&E.type==="date"&&(I=Ha.decodeDate(I))}else N?I=function(O){return i.t+i.h*(1-O)}:I=function(O){return i.l+i.w*O};return I}if(a==="array"?(v=[],o=r.xref.map(function(E){return Is.getFromId(e,E)}),v=r.xref.map(function(E,P){return T(o[P],Is.getRefType(E),t,!1)})):(o=Is.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(E){return Is.getFromId(e,E)}),d=r.yref.map(function(E,P){return T(l[P],Is.getRefType(E),t,!0)})):(l=Is.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return Jxe(r,v,d);if(a==="array")s=ul(o[0],r.x0shift),u=ul(o[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+u;else if(s=ul(o,r.x0shift),u=ul(o,r.x1shift),r.xsizemode==="pixel"){let E=v(r.xanchor);p=E+r.x0+s,y=E+r.x1+u}else p=v(r.x0)+s,y=v(r.x1)+u;if(n==="array")f=ul(l[0],r.y0shift),c=ul(l[1],r.y1shift),m=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=ul(l,r.y0shift),c=ul(l,r.y1shift),r.ysizemode==="pixel"){let E=d(r.yanchor);m=E-r.y0+f,b=E-r.y1+c}else m=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+p+","+m+"L"+y+","+b;if(t==="rect")return"M"+p+","+m+"H"+y+"V"+b+"H"+p+"Z";var w=(p+y)/2,x=(m+b)/2,_=Math.abs(w-p),k=Math.abs(x-m),A="A"+_+","+k,q=w+_+","+x,C=w+","+(x-k);return"M"+q+A+" 0 1,1 "+C+A+" 0 0,1 "+q+"Z"};function Jxe(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(fl.segmentRE,function(v){var d=0,p=v.charAt(0),y=fl.paramIsX[p],m=fl.paramIsY[p],b=fl.numParams[p];let T=y.drawn!==void 0,w=m.drawn!==void 0,x=s?r[f]:r,_=u?t[c]:t;var k=v.slice(1).replace(fl.paramRE,function(A){return y[d]?n==="pixel"?A=x(o)+Number(A):A=x(A):m[d]&&(i==="pixel"?A=_(l)-Number(A):A=_(A)),d++,d>b&&(A="X"),A});return d>b&&(k=k.replace(/[\s,]*X.*/,""),TI.log("Ignoring extra params in segment "+v)),T&&f++,w&&c++,p+k})}Ha.getPixelShift=ul;function ul(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 Z6=z((dVe,kI)=>{"use strict";var Kxe=ke(),cl=Gr(),AI=Ca(),MI=Zr(),Qxe=zs().readPaths,sf=Bs(),e_e=sf.getPathString,Xh=hp(),r_e=Qa().FROM_TL;kI.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=cl.getFromId(r,a.xref),s=cl.getFromId(r,a.yref);let j=Array.isArray(a.xref),J=Array.isArray(a.yref);for(var u in Xh){var f=typeof Xh[u]=="function",c=!j||Xh.simpleXVariables.includes(u),v=!J||Xh.simpleYVariables.includes(u);if(f&&c&&v){var d=Xh[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=Kxe.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},y=a.label.font,m={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),T=b.append("text").attr(m).classed("shape-label-text",!0).text(i),w,x,_,k;if(a.path){var A=e_e(r,a),q=Qxe(A,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 N=P[R],I=P[R+1];w=Math.min(w,N),x=Math.max(x,N),_=Math.min(_,I),k=Math.max(k,I)}}else{let j=Array.isArray(a.xref),J=Array.isArray(a.yref),te=cl.getFromId(r,j?a.xref[0]:a.xref),ae=cl.getFromId(r,j?a.xref[1]:a.xref),se=cl.getFromId(r,J?a.yref[0]:a.yref),$=cl.getFromId(r,J?a.yref[1]:a.yref),fe=cl.getRefType(j?a.xref[0]:a.xref),ie=cl.getRefType(j?a.xref[1]:a.xref),ue=cl.getRefType(J?a.yref[0]:a.yref),ce=cl.getRefType(J?a.yref[1]:a.yref),oe=(Re,ye,Ce,Me)=>sf.getDataToPixel(r,Ce,ye,!1,Me)(Re),be=(Re,ye,Ce,Me)=>sf.getDataToPixel(r,Ce,ye,!0,Me)(Re);if(a.xsizemode==="pixel"){let Re=oe(a.xanchor,void 0,te,fe),ye=sf.getPixelShift(te,a.x0shift),Ce=sf.getPixelShift(te,a.x1shift);w=Re+a.x0+ye,x=Re+a.x1+Ce}else w=oe(a.x0,a.x0shift,te,fe),x=oe(a.x1,a.x1shift,ae,ie);if(a.ysizemode==="pixel"){let Re=be(a.yanchor,void 0,se,ue),ye=sf.getPixelShift(se,a.y0shift),Ce=sf.getPixelShift(se,a.y1shift);_=Re-a.y0+ye,k=Re-a.y1+Ce}else _=be(a.y0,a.y0shift,se,ue),k=be(a.y1,a.y1shift,$,ce)}var O=a.label.textangle;O==="auto"&&(a.type==="line"?O=t_e(w,_,x,k):O=0),T.call(function(j){return j.call(MI.font,y).attr({}),AI.convertToTspans(j,r),j});var U=MI.bBox(T.node()),Y=a_e(w,_,x,k,a,O,U),G=Y.textx,V=Y.texty,W=Y.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[W],y:V,x:G,transform:"rotate("+O+","+G+","+V+")"}).call(AI.positionText,G,V)}};function t_e(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 a_e(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,y=n.label.yanchor,m,b,T,w;if(f==="line"){l==="start"?(m=e,b=r):l==="end"?(m=t,b=a):(m=(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=_[y];T=-u*v*k,w=u*d*k}else{var A=x[p],q=_[y];T=u*A,w=u*q}m=m+T,b=b+w}else T=u+3,l.indexOf("right")!==-1?(m=Math.max(e,t)-T,p==="auto"&&(p="right")):l.indexOf("left")!==-1?(m=Math.min(e,t)+T,p==="auto"&&(p="left")):(m=(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,y==="bottom"?b=b-w:y==="top"&&(b=b+w);var C=r_e[y],E=n.label.font.size,P=o.height,R=(P*C-E)*v,N=-(P*C-E)*d;return{textx:m+R,texty:b+N,xanchor:p}}});var Xm=z((pVe,RI)=>{"use strict";var n_e=ke(),i_e=n_e.strTranslate,SI=Bi(),CI=lf(),o_e=CI.drawMode,DI=CI.selectMode,EI=Tr(),qI=Sr(),Wm=Om(),l_e=Wm.i000,s_e=Wm.i090,u_e=Wm.i180,f_e=Wm.i270,c_e=ks(),PI=c_e.clearOutlineControllers,J6=zs(),jm=J6.pointsOnRectangle,$6=J6.pointsOnEllipse,v_e=J6.writePaths,h_e=Vm().newShapes,d_e=Vm().createShapeObj,p_e=X6(),m_e=Z6();RI.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),($6(r[0])||a.hasText)&&l({redrawing:!0})}function l(Y){var G={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,G=h_e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,G=p_e(t,a),i._fullLayout._reselect=!0),Object.keys(G).length&&EI.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,G)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=o_e(f),v=DI(f);(c||v)&&(i._fullLayout._outlining=!0),PI(i),t.attr("d",v_e(r));var d,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=y_e([],r);var T=u.append("g").attr("class","outline-controllers");E(T),U()}if(c&&a.hasText){var w=u.select(".label-temp"),x=d_e(t,a,a.dragmode);m_e(i,"label-temp",x,w)}function _(Y){y=+Y.srcElement.getAttribute("data-i"),m=+Y.srcElement.getAttribute("data-j"),d[y][m].moveFn=k}function k(Y,G){if(r.length){var V=b[y][m][1],W=b[y][m][2],j=r[y],J=j.length;if(jm(j)){var te=Y,ae=G;if(a.isActiveSelection){var se=LI(j,m);se[1]===j[m][1]?ae=0:te=0}for(var $=0;$<J;$++)if($!==m){var fe=j[$];fe[1]===j[m][1]&&(fe[1]=V+te),fe[2]===j[m][2]&&(fe[2]=W+ae)}if(j[m][1]=V+te,j[m][2]=W+ae,!jm(j))for(var ie=0;ie<J;ie++)for(var ue=0;ue<j[ie].length;ue++)j[ie][ue]=b[y][ie][ue]}else j[m][1]=V+Y,j[m][2]=W+G;o()}}function A(){l()}function q(){if(r.length&&r[y]&&r[y].length){for(var Y=[],G=0;G<r[y].length;G++)G!==m&&Y.push(r[y][G]);Y.length>1&&!(Y.length===2&&Y[1][0]==="Z")&&(m===0&&(Y[0][0]="M"),r[y]=Y,o(),l())}}function C(Y,G){if(Y===2){y=+G.srcElement.getAttribute("data-i"),m=+G.srcElement.getAttribute("data-j");var V=r[y];!jm(V)&&!$6(V)&&q()}}function E(Y){d=[];for(var G=0;G<r.length;G++){var V=r[G],W=jm(V),j=!W&&$6(V);d[G]=[];for(var J=V.length,te=0;te<J;te++)if(V[te][0]!=="Z"&&!(j&&te!==l_e&&te!==s_e&&te!==u_e&&te!==f_e)){var ae=W&&a.isActiveSelection,se;ae&&(se=LI(V,te));var $=V[te][1],fe=V[te][2],ie=Y.append(ae?"rect":"circle").attr("data-i",G).attr("data-j",te).style({fill:qI.background,stroke:qI.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(ae){var ue=se[1]-$,ce=se[2]-fe,oe=ce?5:Math.max(Math.min(25,Math.abs(ue)-5),5),be=ue?5:Math.max(Math.min(25,Math.abs(ce)-5),5);ie.classed(ce?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",oe).attr("height",be).attr("x",$-oe/2).attr("y",fe-be/2).attr("transform",i_e(ue/2,ce/2))}else ie.classed("cursor-grab",!0).attr("r",5).attr("cx",$).attr("cy",fe);d[G][te]={element:ie.node(),gd:i,prepFn:_,doneFn:A,clickFn:C},SI.init(d[G][te])}}}function P(Y,G){if(r.length)for(var V=0;V<r.length;V++)for(var W=0;W<r[V].length;W++)for(var j=0;j+2<r[V][W].length;j+=2)r[V][W][j+1]=b[V][W][j+1]+Y,r[V][W][j+2]=b[V][W][j+2]+G}function R(Y,G){P(Y,G),o()}function N(Y){y=+Y.srcElement.getAttribute("data-i"),y||(y=0),p[y].moveFn=R}function I(){l()}function O(Y){Y===2&&g_e(i)}function U(){if(p=[],!!r.length){var Y=0;p[Y]={element:t[0][0],gd:i,prepFn:N,doneFn:I,clickFn:O},SI.init(p[Y])}}};function y_e(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 LI(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 g_e(e){if(DI(e._fullLayout.dragmode)){PI(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},EI.call("_guiRelayout",e,{selections:a})}}}});var Qm=z((mVe,YI)=>{"use strict";var b_e=Er(),OI=Tr(),Q6=ke(),uf=Gr(),x_e=zs().readPaths,__e=Xm(),$m=Z6(),HI=ks().clearOutlineControllers,K6=Sr(),Jm=Zr(),w_e=St().arrayEditor,FI=Bi(),zI=In(),NI=Rs(),ff=Wh(),Kn=Bs(),e7=Kn.getPathString;YI.exports={draw:r7,drawOne:UI,eraseActiveShape:S_e,drawLabel:$m};function r7(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&&UI(e,n)}function Zm(e){return!!e._fullLayout._outlining}function Km(e){return!e._context.edits.shapePosition}function UI(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=Kn.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=e7(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,y=a.line.dash;!p&&a.editable===!0&&(p=5,y="solid");var m=u[u.length-1]!=="Z",b=Km(e)&&a.editable&&e._fullLayout._activeShapeIndex===r;b&&(v=m?"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(K6.stroke,d).call(K6.fill,v).call(Jm.dashLine,y,p);GI(T,e,a),$m(e,r,a,T);var x;if((b||e._context.edits.shapePosition)&&(x=w_e(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=x_e(u,e);__e(k,w,_)}else e._context.edits.shapePosition?M_e(e,w,a,r,s,x):a.editable===!0&&w.style("pointer-events",m||K6.opacity(v)*c<=.5?"stroke":"all");w.node().addEventListener("click",function(){return k_e(e,w)}),T_e(e,w,n)}}function T_e(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&&zI.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&zI.click(e,o,t.id)}})}function GI(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=A_e(r,a,n);Q6.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),Jm.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");Jm.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function A_e(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(v=>uf.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 M_e(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,y,m,b,T,w,x,_,k,A,q,C,E,P,R=b_e.select(r.node().parentNode),N=uf.getFromId(e,t.xref),I=uf.getRefType(t.xref),O=uf.getFromId(e,t.yref),U=uf.getRefType(t.yref),Y=t.x0shift,G=t.x1shift,V=t.y0shift,W=t.y1shift,j=function(Ne,qe){var Xe=Kn.getDataToPixel(e,N,qe,!1,I);return Xe(Ne)},J=function(Ne,qe){var Xe=Kn.getDataToPixel(e,O,qe,!0,U);return Xe(Ne)},te=Kn.getPixelToData(e,N,!1,I),ae=Kn.getPixelToData(e,O,!0,U),se=ie(),$={element:se.node(),gd:e,prepFn:oe,doneFn:be,clickFn:Re},fe;FI.init($),se.node().onmousemove=ce;function ie(){return f?ue():r}function ue(){var Ne=10,qe=Math.max(t.line.width,Ne),Xe=n.append("g").attr("data-index",a).attr("drag-helper",!0);Xe.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":qe,"stroke-opacity":"0"});var $e={"fill-opacity":"0"},We=Math.max(qe/2,Ne);return Xe.append("circle").attr({"data-line-point":"start-point",cx:s?j(t.xanchor)+t.x0:j(t.x0,Y),cy:u?J(t.yanchor)-t.y0:J(t.y0,V),r:We}).style($e).classed("cursor-grab",!0),Xe.append("circle").attr({"data-line-point":"end-point",cx:s?j(t.xanchor)+t.x1:j(t.x1,G),cy:u?J(t.yanchor)-t.y1:J(t.y1,W),r:We}).style($e).classed("cursor-grab",!0),Xe}function ce(Ne){if(Zm(e)){fe=null;return}if(f)Ne.target.tagName==="path"?fe="move":fe=Ne.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var qe=$.element.getBoundingClientRect(),Xe=qe.right-qe.left,$e=qe.bottom-qe.top,We=Ne.clientX-qe.left,Se=Ne.clientY-qe.top,Fe=!c&&Xe>o&&$e>l&&!Ne.shiftKey?FI.getCursor(We/Xe,1-Se/$e):"move";NI(r,Fe),fe=Fe.split("-")[0]}}function oe(Ne){Zm(e)||(s&&(b=j(t.xanchor)),u&&(T=J(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:j(t.x0),p=u?t.y0:J(t.y0),y=s?t.x1:j(t.x1),m=u?t.y1:J(t.y1)),d<y?(_=d,C="x0",k=y,E="x1"):(_=y,C="x1",k=d,E="x0"),!u&&p<m||u&&p>m?(w=p,A="y0",x=m,q="y1"):(w=m,A="y1",x=p,q="y0"),ce(Ne),Me(n,t),De(r,t,e),$.moveFn=fe==="move"?ye:Ce,$.altKey=Ne.altKey)}function be(){Zm(e)||(NI(r),Le(n),GI(r,e,t),OI.call("_guiRelayout",e,i.getUpdateObj()))}function Re(){Zm(e)||Le(n)}function ye(Ne,qe){if(t.type==="path"){var Xe=function(Se){return Se},$e=Xe,We=Xe;s?v("xanchor",t.xanchor=te(b+Ne)):($e=function(Fe){return te(j(Fe)+Ne)},N&&N.type==="date"&&($e=Kn.encodeDate($e))),u?v("yanchor",t.yanchor=ae(T+qe)):(We=function(Fe){return ae(J(Fe)+qe)},O&&O.type==="date"&&(We=Kn.encodeDate(We))),v("path",t.path=II(P,$e,We))}else s?v("xanchor",t.xanchor=te(b+Ne)):(v("x0",t.x0=te(d+Ne)),v("x1",t.x1=te(y+Ne))),u?v("yanchor",t.yanchor=ae(T+qe)):(v("y0",t.y0=ae(p+qe)),v("y1",t.y1=ae(m+qe)));r.attr("d",e7(e,t)),Me(n,t),$m(e,a,t,R)}function Ce(Ne,qe){if(c){var Xe=function(je){return je},$e=Xe,We=Xe;s?v("xanchor",t.xanchor=te(b+Ne)):($e=function(tr){return te(j(tr)+Ne)},N&&N.type==="date"&&($e=Kn.encodeDate($e))),u?v("yanchor",t.yanchor=ae(T+qe)):(We=function(tr){return ae(J(tr)+qe)},O&&O.type==="date"&&(We=Kn.encodeDate(We))),v("path",t.path=II(P,$e,We))}else if(f){if(fe==="resize-over-start-point"){var Se=d+Ne,Fe=u?p-qe:p+qe;v("x0",t.x0=s?Se:te(Se)),v("y0",t.y0=u?Fe:ae(Fe))}else if(fe==="resize-over-end-point"){var Qe=y+Ne,re=u?m-qe:m+qe;v("x1",t.x1=s?Qe:te(Qe)),v("y1",t.y1=u?re:ae(re))}}else{var xe=function(je){return fe.indexOf(je)!==-1},Ge=xe("n"),cr=xe("s"),Pe=xe("w"),me=xe("e"),Ae=Ge?w+qe:w,He=cr?x+qe:x,Ze=Pe?_+Ne:_,Be=me?k+Ne:k;u&&(Ge&&(Ae=w-qe),cr&&(He=x-qe)),(!u&&He-Ae>l||u&&Ae-He>l)&&(v(A,t[A]=u?Ae:ae(Ae)),v(q,t[q]=u?He:ae(He))),Be-Ze>o&&(v(C,t[C]=s?Ze:te(Ze)),v(E,t[E]=s?Be:te(Be)))}r.attr("d",e7(e,t)),Me(n,t),$m(e,a,t,R)}function Me(Ne,qe){(s||u)&&Xe();function Xe(){var $e=qe.type!=="path",We=Ne.selectAll(".visual-cue").data([0]),Se=1;We.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Se}).classed("visual-cue",!0);var Fe=j(s?qe.xanchor:Q6.midRange($e?[qe.x0,qe.x1]:Kn.extractPathCoords(qe.path,ff.paramIsX))),Qe=J(u?qe.yanchor:Q6.midRange($e?[qe.y0,qe.y1]:Kn.extractPathCoords(qe.path,ff.paramIsY)));if(Fe=Kn.roundPositionForSharpStrokeRendering(Fe,Se),Qe=Kn.roundPositionForSharpStrokeRendering(Qe,Se),s&&u){var re="M"+(Fe-1-Se)+","+(Qe-1-Se)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";We.attr("d",re)}else if(s){var xe="M"+(Fe-1-Se)+","+(Qe-9-Se)+"v18 h2 v-18 Z";We.attr("d",xe)}else{var Ge="M"+(Fe-9-Se)+","+(Qe-1-Se)+"h18 v2 h-18 Z";We.attr("d",Ge)}}}function Le(Ne){Ne.selectAll(".visual-cue").remove()}function De(Ne,qe,Xe){var $e=qe.xref,We=qe.yref,Se=uf.getFromId(Xe,$e),Fe=uf.getFromId(Xe,We),Qe="";$e!=="paper"&&!Se.autorange&&(Qe+=$e),We!=="paper"&&!Fe.autorange&&(Qe+=We),Jm.setClipUrl(Ne,Qe?"clip"+Xe._fullLayout._uid+Qe:null,Xe)}}function II(e,r,t){return e.replace(ff.segmentRE,function(a){var n=0,i=a.charAt(0),o=ff.paramIsX[i],l=ff.paramIsY[i],s=ff.numParams[i],u=a.slice(1).replace(ff.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function k_e(e,r){if(Km(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){BI(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=BI,r7(e)}}}function BI(e){if(Km(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(HI(e),delete e._fullLayout._activeShapeIndex,r7(e))}}function S_e(e){if(Km(e)){HI(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,OI.call("_guiRelayout",e,{shapes:a})}}}});var jI=z((yVe,VI)=>{"use strict";var hc=ke()._,q_e=function(e){return{DIALOG_TITLE:hc(e,"Share chart"),DIALOG_MESSAGE_CLOUD:hc(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:hc(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:hc(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:hc(e,"Cancel"),DIALOG_CONFIRM:hc(e,"Share")}};VI.exports=q_e});var ZI=z((gVe,XI)=>{"use strict";var WI=Er(),{dfltConfig:L_e}=ds(),C_e=jI(),D_e=(e,r,t,a,n)=>{let i=C_e(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===L_e.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)},E_e=(e,r,t)=>{let a=WI.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",()=>{WI.event.target===n.node()&&i()}),D_e(e,n,r,()=>{i(),t()},i)};XI.exports=E_e});var n7=z((bVe,tB)=>{"use strict";var bi=Tr(),P_e=va(),JI=ba(),et=Im(),R_e=Qm().eraseActiveShape,F_e=ZI(),dc=ke(),Xr=dc._,rt=tB.exports={};rt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Xr(e,"Download plot as a PNG"):Xr(e,"Download plot")},icon:et.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};dc.notifier(Xr(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])}),bi.call("downloadImage",e,t).then(function(a){dc.notifier(Xr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){dc.notifier(Xr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};rt.downloadJson={name:"downloadJson",title:function(e){return Xr(e,"Download plot as JSON")},icon:et.curlybraces,click:function(e){bi.call("downloadImage",e,{format:"full-json"}).then(function(r){dc.notifier(Xr(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){dc.notifier(Xr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};rt.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Xr(e,"Share chart...")},icon:et.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}F_e(e,r,function(){P_e.sendDataToCloud(e,r)})}};rt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Xr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:et.zoombox,click:Mn};rt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Xr(e,"Pan")},attr:"dragmode",val:"pan",icon:et.pan,click:Mn};rt.select2d={name:"select2d",_cat:"select",title:function(e){return Xr(e,"Box Select")},attr:"dragmode",val:"select",icon:et.selectbox,click:Mn};rt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Xr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:et.lasso,click:Mn};rt.drawclosedpath={name:"drawclosedpath",title:function(e){return Xr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:et.drawclosedpath,click:Mn};rt.drawopenpath={name:"drawopenpath",title:function(e){return Xr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:et.drawopenpath,click:Mn};rt.drawline={name:"drawline",title:function(e){return Xr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:et.drawline,click:Mn};rt.drawrect={name:"drawrect",title:function(e){return Xr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:et.drawrect,click:Mn};rt.drawcircle={name:"drawcircle",title:function(e){return Xr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:et.drawcircle,click:Mn};rt.eraseshape={name:"eraseshape",title:function(e){return Xr(e,"Erase active shape")},icon:et.eraseshape,click:R_e};rt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Xr(e,"Zoom in")},attr:"zoom",val:"in",icon:et.zoom_plus,click:Mn};rt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Xr(e,"Zoom out")},attr:"zoom",val:"out",icon:et.zoom_minus,click:Mn};rt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Xr(e,"Autoscale")},attr:"zoom",val:"auto",icon:et.autoscale,click:Mn};rt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Xr(e,"Reset axes")},attr:"zoom",val:"reset",icon:et.home,click:Mn};rt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Xr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:et.tooltip_basic,gravity:"ne",click:Mn};rt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Xr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:et.tooltip_compare,gravity:"ne",click:Mn};function Mn(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=JI.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,y;for(f=0;f<l.length;f++)if(u=l[f],y=u.modebardisable==="none"||u.modebardisable.indexOf(n==="auto"||n==="reset"?"autoscale":"zoominout")===-1,y&&!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 m=[u.r2l(u.range[0]),u.r2l(u.range[1])],b=[v*m[0]+d*m[1],v*m[1]+d*m[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,bi.call("_guiRelayout",e,o)}rt.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return Xr(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:et.zoombox,click:ry};rt.pan3d={name:"pan3d",_cat:"pan",title:function(e){return Xr(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:et.pan,click:ry};rt.orbitRotation={name:"orbitRotation",title:function(e){return Xr(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:et["3d_rotate"],click:ry};rt.tableRotation={name:"tableRotation",title:function(e){return Xr(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:et["z-axis"],click:ry};function ry(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,bi.call("_guiRelayout",e,o)}rt.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return Xr(e,"Reset camera to default")},attr:"resetDefault",icon:et.home,click:t7};rt.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return Xr(e,"Reset camera to last save")},attr:"resetLastSave",icon:et.movie,click:t7};function t7(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,y;n?(s[c+".up"]=p.viewInitial.up,s[c+".eye"]=p.viewInitial.eye,s[c+".center"]=p.viewInitial.center,y=!0):i&&(s[c+".up"]=null,s[c+".eye"]=null,s[c+".center"]=null,y=!0),y&&(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)}bi.call("_guiRelayout",e,s)}rt.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return Xr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:et.tooltip_basic,gravity:"ne",click:z_e};function KI(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],y=f+"."+p+".showspikes";s[y]=!1,l[y]=c[p].showspikes}}t._previousVal=l}return s}function z_e(e,r){var t=KI(e,r);bi.call("_guiRelayout",e,t)}rt.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return Xr(e,"Zoom in")},attr:"zoom",val:"in",icon:et.zoom_plus,click:a7};rt.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return Xr(e,"Zoom out")},attr:"zoom",val:"out",icon:et.zoom_minus,click:a7};rt.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return Xr(e,"Reset")},attr:"reset",val:null,icon:et.autoscale,click:a7};rt.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return Xr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:et.tooltip_basic,gravity:"ne",click:eB};var $I=2;function a7(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),[y,m]=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"?$I*v:1/$I*v;_>x?_=x:_<w&&(_=w),_!==v&&bi.call("_guiRelayout",e,{[s+".projection.scale"]:_,[s+".projection.rotation.lon"]:d,[s+".projection.rotation.lat"]:p,[s+".center.lon"]:y,[s+".center.lat"]:m,[s+".fitbounds"]:!1})}}a==="reset"&&ey(e,"geo")}rt.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Xr(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:et.tooltip_basic,gravity:"ne",click:eB};function QI(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function eB(e){var r=QI(e);bi.call("_guiRelayout",e,"hovermode",r)}rt.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Xr(e,"Reset view")},icon:et.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())}bi.call("restyle",e,r)}};rt.toggleHover={name:"toggleHover",title:function(e){return Xr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:et.tooltip_basic,gravity:"ne",click:function(e,r){var t=KI(e,r);t.hovermode=QI(e),bi.call("_guiRelayout",e,t)}};rt.resetViews={name:"resetViews",title:function(e){return Xr(e,"Reset views")},icon:et.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),Mn(e,r),t.setAttribute("data-attr","resetLastSave"),t7(e,r),ey(e,"geo"),ey(e,"map")}};rt.toggleSpikelines={name:"toggleSpikelines",title:function(e){return Xr(e,"Toggle Spike Lines")},icon:et.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",bi.call("_guiRelayout",e,N_e(e))}};function N_e(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=JI.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}rt.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return Xr(e,"Reset view")},attr:"reset",icon:et.home,click:function(e){ey(e,"map")}};rt.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return Xr(e,"Zoom in")},attr:"zoom",val:"in",icon:et.zoom_plus,click:rB};rt.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return Xr(e,"Zoom out")},attr:"zoom",val:"out",icon:et.zoom_minus,click:rB};function rB(e,r){I_e(e,r,"map")}function I_e(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}bi.call("_guiRelayout",e,s)}function ey(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]}bi.call("_guiRelayout",e,n)}});var i7=z((xVe,oB)=>{"use strict";var aB=n7(),B_e=Object.keys(aB),nB=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],iB=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(nB,["downloadJson"]),pc=[],O_e=function(e){if(iB.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();pc.indexOf(r)===-1&&pc.push(r),pc.indexOf(t)===-1&&pc.push(t)}};B_e.forEach(function(e){O_e(aB[e])});pc.sort();oB.exports={DRAW_MODES:nB,backButtons:iB,foreButtons:pc}});var l7={};d0(l7,{default:()=>U_e});var o7,H_e,U_e,s7=h0(()=>{"use strict";o7=cs(i7()),H_e={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(" ")}},U_e=H_e});var sB=z((_Ve,lB)=>{"use strict";var G_e=ke(),Zh=Sr(),Y_e=St(),V_e=(s7(),un(l7)).default;lB.exports=function(r,t){var a=r.modebar||{},n=Y_e.newContainer(t,"modebar");function i(l,s){return G_e.coerce(a,n,V_e,l,s)}i("orientation"),i("bgcolor",Zh.addOpacity(t.paper_bgcolor,.5));var o=Zh.contrast(Zh.rgb(t.modebar.bgcolor));i("color",Zh.addOpacity(o,.3)),i("activecolor",Zh.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var vB=z((wVe,cB)=>{"use strict";var u7=Er(),j_e=Ir(),ty=ke(),uB=Im(),W_e=jv().version,X_e=new DOMParser;function fB(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var vl=fB.prototype;vl.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(),ty.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};vl.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)})};vl.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};vl.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&&u7.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||uB.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};vl.createIcon=function(e){var r=j_e(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=X_e.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};vl.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=u7.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:ty.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};vl.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 Z_e(e){return e+" (v"+W_e+")"}vl.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Z_e(ty._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(uB.newplotlylogo)),e.appendChild(r),e};vl.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};vl.destroy=function(){ty.removeElement(this.container.querySelector(".modebar"))};function $_e(e,r){var t=e._fullLayout,a=new fB({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&u7.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}cB.exports=$_e});var pB=z((TVe,dB)=>{"use strict";var J_e=ba(),hB=Jn(),f7=Tr(),K_e=qo().isUnifiedHover,Q_e=vB(),ay=n7(),e4e=i7().DRAW_MODES,r4e=ke().extendDeep;dB.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=l4e(i):!a.displayModeBar&&a.watermark?o=[]:o=t4e(r),n?n.update(r,o):t._modeBar=Q_e(r,o)};function t4e(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(G,V){if(typeof V=="string"){if(V.toLowerCase()===G.toLowerCase())return!0}else{var W=V.name,j=V._cat||V.name;if(W===G||j===G.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(G){for(var V=0;V<a.modeBarButtonsToRemove.length;V++)if(n(G,a.modeBarButtonsToRemove[V]))return!1;return!0})),s=a.modeBarButtonsToRemove.concat(o.filter(function(G){for(var V=0;V<a.modeBarButtonsToAdd.length;V++)if(n(G,a.modeBarButtonsToAdd[V]))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"),y=r._has("map"),m=r._has("polar"),b=r._has("smith"),T=r._has("sankey"),w=a4e(r),x=K_e(r.hovermode),_=[];function k(G){if(G.length){for(var V=[],W=0;W<G.length;W++){for(var j=G[W],J=ay[j],te=J.name.toLowerCase(),ae=(J._cat||J.name).toLowerCase(),se=!1,$=0;$<s.length;$++){var fe=s[$].toLowerCase();if(fe===te||fe===ae){se=!0;break}}se||V.push(ay[j])}_.push(V)}}var A=!1,q=[],C=[],E=[],P=[];(u||v||d||p)+c+f+y+m+b>1?(C=["toggleHover"],E=["resetViews"]):c?(q=["zoomInGeo","zoomOutGeo"],C=["hoverClosestGeo"],E=["resetGeo"]):f?(C=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(q=["zoomInMap","zoomOutMap"],C=["toggleHover"],E=["resetViewMap"]):v?C=["hoverClosestPie"]:T?(C=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):C=["toggleHover"],u&&C.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(i4e(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"]:y||c?P=["pan2d"]:m&&(P=["zoom2d"]),n4e(t)&&P.push("select2d","lasso2d");var R=[],N=function(G){R.indexOf(G)===-1&&C.indexOf(G)!==-1&&R.push(G)};if(Array.isArray(l)){for(var I=[],O=0;O<l.length;O++){var U=l[O];typeof U=="string"?(U=U.toLowerCase(),e4e.indexOf(U)!==-1?(r._has("map")||r._has("cartesian"))&&P.push(U):U==="togglespikelines"?N("toggleSpikelines"):U==="togglehover"?N("toggleHover"):U==="hovercompare"?N("hoverCompareCartesian"):U==="hoverclosest"?(N("hoverClosestCartesian"),N("hoverClosestGeo"),N("hoverClosest3d"),N("hoverClosestPie")):U==="v1hovermode"?(N("hoverClosestCartesian"),N("hoverCompareCartesian"),N("hoverClosestGeo"),N("hoverClosest3d"),N("hoverClosestPie")):U==="downloadjson"&&(A=!0)):I.push(U)}l=I}var Y=["toImage"];return A&&Y.push("downloadJson"),a.showSendToCloud&&Y.push("sendChartToCloud"),k(Y),k(P),k(q.concat(E)),k(R),o4e(_,l)}function a4e(e){for(var r=J_e.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 n4e(e){for(var r=!1,t=0;t<e.length&&!r;t++){var a=e[t];!a._module||!a._module.selectPoints||(f7.traceIs(a,"scatter-like")&&a.type!=="quiver"?(hB.hasMarkers(a)||hB.hasText(a))&&(r=!0):f7.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function i4e(e){for(var r=0;r<e.length;r++)if(!f7.traceIs(e[r],"noHover"))return!1;return!0}function o4e(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 l4e(e){for(var r=r4e([],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(ay[i]!==void 0)r[t][n]=ay[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var c7=z((AVe,mB)=>{"use strict";mB.exports={moduleType:"component",name:"modebar",layoutAttributes:(s7(),un(l7)).default,supplyLayoutDefaults:sB(),manage:pB()}});var v7=z((MVe,yB)=>{"use strict";var s4e=Qa().FROM_BL;yB.exports=function(r,t,a){a===void 0&&(a=s4e[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 vf=z($h=>{"use strict";var cf=ke(),h7=Ph(),Co=ba().id2name,u4e=Ni(),gB=v7(),f4e=ec(),c4e=Gt().ALMOST_EQUAL,v4e=Qa().FROM_BL;$h.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=Co(a[l]),c=e[f],v=r[f],h4e(c,v,{axIds:a,layoutOut:r,hasImage:n[f]});function y(q,C){for(l=0;l<q.length;l++){s=q[l];for(u in s)r[Co(u)][C]=s}}for(y(o,"_matchGroup"),l=0;l<i.length;l++){s=i[l];for(u in s)if(v=r[Co(u)],v.fixedrange){for(var m in s){var b=Co(m);(e[b]||{}).fixedrange===!1&&cf.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[Co(u)],v._matchGroup&&Object.keys(v._matchGroup).length===Object.keys(s).length&&(i.splice(l,1),l--);break}l++}y(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 A;for(u in s)if(f=Co(u),c=e[f],v=r[f],d in v){if(!v.matches&&(A=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 A&&(p=A[d]),p!==null)for(u in s)v=r[Co(u)],v[d]=d==="range"?p.slice():p,d==="rangebreaks"&&(v._hasDayOfWeekBreaks=x,f4e(v,r))}}};function h4e(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,N){return cf.coerce(e,r,u4e,R,N)}d("constrain",i?"domain":"range"),cf.coerce(e,r,{constraintoward:{valType:"enumerated",values:v?["left","center","right"]:["bottom","middle","top"],dflt:v?"center":"middle"}},"constraintoward");var p=r.type,y,m,b=[];for(y=0;y<a.length;y++)if(m=a[y],m!==c){var T=n[Co(m)];T.type===p&&b.push(m)}var w=_B(o,c);if(w){var x=[];for(y=0;y<b.length;y++)m=b[y],w[m]||x.push(m);b=x}var _=b.length,k,A;_&&(e.matches||f.matches)&&(k=cf.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)&&(A=cf.coerce(e,r,{scaleanchor:{valType:"enumerated",values:b.concat([!1])}},"scaleanchor",q)),k){r._matchGroup=d7(l,c,k,1);var C=n[Co(k)],E=bB(n,r)/bB(n,C);v!==(k.charAt(0)==="x")&&(E=(v?"x":"y")+E),d7(o,c,k,E)}else e.matches&&a.indexOf(e.matches)!==-1&&cf.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(A){var P=d("scaleratio");P||(P=r.scaleratio=1),d7(o,c,A,P)}else e.scaleanchor&&a.indexOf(e.scaleanchor)!==-1&&cf.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 bB(e,r){var t=r.domain;return t||(t=e[Co(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 d7(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]=p7(c,p7(a,u[l]));e.splice(s,1);return}if(a!==1)for(i=0;i<f.length;i++){var v=f[i];u[v]=p7(a,u[v])}u[t]=1}function p7(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 d4e(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}$h.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=d4e(a[n],t);var v=Object.keys(o),d=1/0,p=0,y=1/0,m={},b={},T=!1;for(i=0;i<v.length;i++)l=v[i],b[l]=s=t[Co(l)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),m[l]=u=Math.abs(s._m)/o[l],d=Math.min(d,u),(s.constrain==="domain"||!s._constraintShrinkable)&&(y=Math.min(y,u)),delete s._constraintShrinkable,p=Math.max(p,u),s.constrain==="domain"&&(T=!0);if(!(d>c4e*p&&!T)){for(i=0;i<v.length;i++)if(l=v[i],u=m[l],s=b[l],f=s.constrain,u!==y||f==="domain")if(c=u/y,f==="range")gB(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(),gB(s,c);continue}if(_<1&&(s.range=s._input.range=s._inputRange.slice(),c*=_),s.autorange){var k=s.r2l(s.range[0]),A=s.r2l(s.range[1]),q=(k+A)/2,C=q,E=q,P=Math.abs(A-q),R=q-P*c*1.0001,N=q+P*c*1.0001,I=h7.makePadFn(t,s,0),O=h7.makePadFn(t,s,1);xB(s,c);var U=Math.abs(s._m),Y=h7.concatExtremes(r,s),G=Y.min,V=Y.max,W,j;for(j=0;j<G.length;j++)W=G[j].val-I(G[j])/U,W>R&&W<C&&(C=W);for(j=0;j<V.length;j++)W=V[j].val+O(V[j])/U,W<N&&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<A?[C,E]:[E,C]}xB(s,c)}}}};$h.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};$h.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 xB(e,r){var t=e._inputDomain,a=v4e[e.constraintoward],n=t[0]+(t[1]-t[0])*a;e.domain=e._input.domain=[n+(t[0]-n)/r,n+(t[1]-n)/r],e.setScale()}});var oy=z(za=>{"use strict";var iy=Er(),kn=Tr(),xi=va(),Ui=ke(),m7=Ca(),y7=Nm(),Jh=Sr(),mc=Zr(),wB=Q0(),SB=c7(),Kh=Gr(),Gl=Qa(),qB=vf(),p4e=qB.enforce,m4e=qB.clean,TB=Ph().doAutoRange,LB="start",y4e="middle",CB="end",g4e=qa().zindexSeparator;za.layoutStyles=function(e){return Ui.syncOrAsync([xi.doAutoMargin,x4e],e)};function b4e(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 x4e(e){var r=e._fullLayout,t=r._size,a=t.p,n=Kh.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(mc.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),za.drawMainTitle(e),SB.manage(e),!r._has("cartesian"))return xi.previousPromises(e);function c(oe,be,Re){var ye=oe._lw/2;if(oe._id.charAt(0)==="x"){if(be){if(Re==="top")return be._offset-a-ye}else return t.t+t.h*(1-(oe.position||0))+ye%1;return be._offset+be._length+a+ye}if(be){if(Re==="right")return be._offset+be._length+a+ye}else return t.l+t.w*(oe.position||0)+ye%1;return be._offset-a-ye}for(i=0;i<n.length;i++){s=n[i];var v=s._anchorAxis;s._linepositions={},s._lw=mc.crispRound(e,s.linewidth,1),s._mainLinePosition=c(s,v,s.side),s._mainMirrorPosition=s.mirror&&v?c(s,v,Gl.OPPOSITE_SIDE[s.side]):null}var d=[],p=[],y=[],m=Jh.opacity(r.paper_bgcolor)===1&&Jh.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(b4e(b,T,y)&&o.indexOf(g4e)===-1){var x=w.node(),_=l.bg=Ui.ensureSingle(w,"rect","bg");x.insertBefore(_.node(),x.childNodes[0]),p.push(o)}else w.select("rect.bg").remove(),y.push([b,T]),m||(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=iy.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(mc.setRect,u._offset-a,f._offset-a,u._length+2*a,f._length+2*a).call(Jh.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 A=l.clipId="clip"+r._uid+o+"plot",q=Ui.ensureSingleById(r._clips,"clipPath",A,function(oe){oe.classed("plotclip",!0).append("rect")});l.clipRect=q.select("rect").attr({width:u._length,height:f._length}),mc.setTranslate(l.plot,u._offset,f._offset);var C,E;l._hasClipOnAxisFalse?(C=null,E=A):(C=A,E=null),mc.setClipUrl(l.plot,C,e),l.layerClipId=E}var P,R,N,I,O,U,Y,G,V,W,j,J,te;function ae(oe){return"M"+P+","+oe+"H"+R}function se(oe){return"M"+u._offset+","+oe+"h"+u._length}function $(oe){return"M"+oe+","+G+"V"+Y}function fe(oe){return f._shift!==void 0&&(oe+=f._shift),"M"+oe+","+f._offset+"v"+f._length}function ie(oe,be,Re){if(!oe.showline||o!==oe._mainSubplot)return"";if(!oe._anchorAxis)return Re(oe._mainLinePosition);var ye=be(oe._mainLinePosition);return oe.mirror&&(ye+=be(oe._mainMirrorPosition)),ye}for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var ue="M0,0";AB(u,o)&&(O=ny(u,"left",f,n),P=u._offset-(O?a+O:0),U=ny(u,"right",f,n),R=u._offset+u._length+(U?a+U:0),N=c(u,f,"bottom"),I=c(u,f,"top"),te=!u._anchorAxis||o!==u._mainSubplot,te&&(u.mirror==="allticks"||u.mirror==="all")&&(u._linepositions[o]=[N,I]),ue=ie(u,ae,se),te&&u.showline&&(u.mirror==="all"||u.mirror==="allticks")&&(ue+=ae(N)+ae(I)),l.xlines.style("stroke-width",u._lw+"px").call(Jh.stroke,u.showline?u.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",ue);var ce="M0,0";AB(f,o)&&(j=ny(f,"bottom",u,n),Y=f._offset+f._length+(j?a:0),J=ny(f,"top",u,n),G=f._offset-(J?a:0),V=c(f,u,"left"),W=c(f,u,"right"),te=!f._anchorAxis||o!==f._mainSubplot,te&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[o]=[V,W]),ce=ie(f,$,fe),te&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(ce+=$(V)+$(W)),l.ylines.style("stroke-width",f._lw+"px").call(Jh.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ce)}return Kh.makeClipPaths(e),xi.previousPromises(e)}function AB(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function MB(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=Gl.FROM_BL[r];return t.side===r?a.domain[n]===e.domain[n]:t.mirror&&a.domain[1-n]===e.domain[1-n]}function ny(e,r,t,a){if(MB(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&MB(e,r,i))return i._lw}return 0}za.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=S4e(t),n=q4e(t),i=k4e(t,n),o=M4e(t,a);if(wB.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=iy.select(e).selectAll(".gtitle"),s=mc.bBox(iy.select(e).selectAll(".g-gtitle").node()).height,u=T4e(e,r,s);if(u>0){A4e(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:kB(r.yanchor)}).call(m7.positionText,o,i);var f=(r.text.match(m7.BR_TAG_ALL)||[]).length;if(f){var c=Gl.LINE_SPACING*f+Gl.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=iy.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+wB.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:kB(r.yanchor)}).call(m7.positionText,o,y)}}}};function _4e(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Ui.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return Ui.isTopAnchor(r)&&t==="t"||Ui.isBottomAnchor(r)&&t==="b"?!1:l<n}function w4e(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 T4e(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=w4e(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function A4e(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"&&_4e(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),xi.allowAutoMargin(e,n),xi.autoMargin(e,n,l)}function M4e(e,r){var t=e.title,a=e._size,n=0;return r===LB?n=t.pad.l:r===CB&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function k4e(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Gl.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 kB(e){return e==="top"?Gl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Gl.MID_SHIFT+"em"}function S4e(e){var r=e.title,t=y4e;return Ui.isRightAnchor(r)?t=CB:Ui.isLeftAnchor(r)&&(t=LB),t}function q4e(e){var r=e.title,t="0em";return Ui.isTopAnchor(r)?t=Gl.CAP_SHIFT+"em":Ui.isMiddleAnchor(r)&&(t=Gl.MID_SHIFT+"em"),t}za.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)}y7(e),za.redrawReglTraces(e)}return xi.style(e),kn.getComponentMethod("legend","draw")(e),xi.previousPromises(e)};za.doColorBars=function(e){return kn.getComponentMethod("colorbar","draw")(e),xi.previousPromises(e)};za.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,kn.call("_doPlot",e,"",r)};za.doLegend=function(e){return kn.getComponentMethod("legend","draw")(e),xi.previousPromises(e)};za.doTicksRelayout=function(e){var r=Kh.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(kn.subplotsRegistry.splom.updateGrid(e),y7(e),za.redrawReglTraces(e)),za.drawMainTitle(e),Promise.resolve(r).then(function(){return xi.previousPromises(e)})};za.doModeBar=function(e){var r=e._fullLayout;SB.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return xi.previousPromises(e)};za.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)}};za.drawData=function(e){var r=e._fullLayout;y7(e);for(var t=r._basePlotModules,a=0;a<t.length;a++)t[a].plot(e);return za.redrawReglTraces(e),xi.style(e),kn.getComponentMethod("selections","draw")(e),kn.getComponentMethod("shapes","draw")(e),kn.getComponentMethod("annotations","draw")(e),kn.getComponentMethod("images","draw")(e),r._replotting=!1,xi.previousPromises(e)};za.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"?Ui.pushUnique(a,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&Ui.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()}};za.doAutoRangeAndConstraints=function(e){for(var r=Kh.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,m4e(e,t),TB(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=Kh.getFromId(e,o);TB(e,l,t.range),a[o]=1}}p4e(e)};za.finalDraw=function(e){kn.getComponentMethod("rangeslider","draw")(e),kn.getComponentMethod("rangeselector","draw")(e)};za.drawMarginPushers=function(e){kn.getComponentMethod("legend","draw")(e),kn.getComponentMethod("rangeselector","draw")(e),kn.getComponentMethod("sliders","draw")(e),kn.getComponentMethod("updatemenus","draw")(e),kn.getComponentMethod("colorbar","draw")(e)}});var x7=z((qVe,FB)=>{"use strict";var L4e=zs().readPaths,C4e=Xm(),DB=ks().clearOutlineControllers,g7=Sr(),EB=Zr(),D4e=St().arrayEditor,PB=Bs(),E4e=PB.getPathString;FB.exports={draw:ly,drawOne:RB,activateLastSelection:F4e};function ly(e){var r=e._fullLayout;DB(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++)RB(e,n)}function sy(e){return e._context.editSelection}function RB(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=PB.makeSelectionsOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input)return;i(e._fullLayout._selectionLayer);function i(o){var l=E4e(e,a),s={"data-index":r,"fill-rule":"evenodd",d:l},u=a.opacity,f="rgba(0,0,0,0)",c=a.line.color||g7.contrast(e._fullLayout.plot_bgcolor),v=a.line.width,d=a.line.dash;v||(v=5,d="solid");var p=sy(e)&&e._fullLayout._activeSelectionIndex===r;p&&(f=e._fullLayout.activeselection.fillcolor,u=e._fullLayout.activeselection.opacity);for(var y=[],m=1;m>=0;m--){var b=o.append("path").attr(s).style("opacity",m?.1:u).call(g7.stroke,c).call(g7.fill,f).call(EB.dashLine,m?"solid":d,m?4+v:v);if(P4e(b,e,a),p){var T=D4e(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=L4e(l,e);C4e(x,b,w)}else b.style("pointer-events",m?"all":"none");y[m]=b}var _=y[0],k=y[1];k.node().addEventListener("click",function(){return R4e(e,_)})}}function P4e(e,r,t){var a=t.xref+t.yref;EB.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function R4e(e,r){if(sy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){b7(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=b7,ly(e)}}}function F4e(e){if(sy(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=b7,ly(e)}}function b7(e){if(sy(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(DB(e),delete e._fullLayout._activeSelectionIndex,ly(e))}}});var NB=z((LVe,zB)=>{function z4e(){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}zB.exports=z4e});var BB=z((CVe,IB)=>{function N4e(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,y={alongA:0,alongB:0,pt:[t[0]+d*o,t[1]+d*l]};return d<=-e?y.alongA=-2:d<e?y.alongA=-1:d-1<=-e?y.alongA=0:d-1<e?y.alongA=1:y.alongA=2,p<=-e?y.alongB=-2:p<e?y.alongB=-1:p-1<=-e?y.alongB=0:p-1<e?y.alongB=1:y.alongB=2,y},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}IB.exports=N4e});var HB=z((DVe,OB)=>{var I4e={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}};OB.exports=I4e});var GB=z((EVe,UB)=>{var Qh=HB();function B4e(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=Qh.create();function o(p,y,m,b,T,w){var x=r.pointsCompare(y,T);return x!==0?x:r.pointsSame(m,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?T:w,b?w:T)?1:-1}function l(p,y){i.insertBefore(p,function(m){var b=o(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,y){var m=Qh.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return l(m,p.end),m}function u(p,y,m){var b=Qh.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=b,l(b,p.pt)}function f(p,y){var m=s(p,y);return u(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,l(p.other,p.pt)}function v(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),f(m,p.primary)}function d(p,y){var m=Qh.create();function b(O,U){var Y=O.seg.start,G=O.seg.end,V=U.seg.start,W=U.seg.end;return r.pointsCollinear(Y,V,W)?r.pointsCollinear(G,V,W)||r.pointAboveOrOnLine(G,V,W)?1:-1:r.pointAboveOrOnLine(Y,V,W)?1:-1}function T(O){return m.findTransition(function(U){var Y=b(O,U.ev);return Y>0})}function w(O,U){var Y=O.seg,G=U.seg,V=Y.start,W=Y.end,j=G.start,J=G.end;t&&t.checkIntersection(Y,G);var te=r.linesIntersect(V,W,j,J);if(te===!1){if(!r.pointsCollinear(V,W,j)||r.pointsSame(V,J)||r.pointsSame(W,j))return!1;var ae=r.pointsSame(V,j),se=r.pointsSame(W,J);if(ae&&se)return U;var $=!ae&&r.pointBetween(V,j,J),fe=!se&&r.pointBetween(W,j,J);if(ae)return fe?v(U,W):v(O,J),U;$&&(se||(fe?v(U,W):v(O,J)),v(U,V))}else te.alongA===0&&(te.alongB===-1?v(O,j):te.alongB===0?v(O,te.pt):te.alongB===1&&v(O,J)),te.alongB===0&&(te.alongA===-1?v(U,V):te.alongA===0?v(U,te.pt):te.alongA===1&&v(U,W));return!1}for(var x=[];!i.isEmpty();){var _=i.getHead();if(t&&t.vert(_.pt[0]),_.isStart){let O=function(){if(A){var U=w(_,A);if(U)return U}return q?w(_,q):!1};var I=O;t&&t.segmentNew(_.seg,_.primary);var k=T(_),A=k.before?k.before.ev:null,q=k.after?k.after.ev:null;t&&t.tempStatus(_.seg,A?A.seg:!1,q?q.seg:!1);var C=O();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?y:p,_.seg.otherFill={above:P,below:P}}t&&t.status(_.seg,A?A.seg:!1,q?q.seg:!1),_.other.status=k.insert(Qh.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(m.exists(R.prev)&&m.exists(R.next)&&w(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!_.primary){var N=_.seg.myFill;_.seg.myFill=_.seg.otherFill,_.seg.otherFill=N}x.push(_.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var y,m=p[p.length-1],b=0;b<p.length;b++){y=m,m=p[b];var T=r.pointsCompare(y,m);T!==0&&f(a(T<0?y:m,T<0?m:y),!0)}},calculate:function(p){return d(p,!1)}}:{calculate:function(p,y,m,b){return p.forEach(function(T){f(n(T.start,T.end,T),!0)}),m.forEach(function(T){f(n(T.start,T.end,T),!1)}),d(y,b)}}}UB.exports=B4e});var VB=z((PVe,YB)=>{function O4e(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,O,U){return f.index=I,f.matches_head=O,f.matches_pt1=U,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v<a.length;v++){var d=a[v],p=d[0],y=d[1],m=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(m,o)){if(c(v,!1,!0))break}else if(r.pointsSame(m,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],A=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(A,w)){a.splice(T,1),r.pointsCollinear(q,A,_)&&(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,O){var U=a[I],Y=a[O],G=U[U.length-1],V=U[U.length-2],W=Y[0],j=Y[1];r.pointsCollinear(V,G,W)&&(t&&t.chainRemoveTail(I,G),U.pop(),G=V),r.pointsCollinear(G,W,j)&&(t&&t.chainRemoveHead(O,W),Y.shift()),t&&t.chainJoin(I,O),a[I]=U.concat(Y),a.splice(O,1)}var P=s.index,R=u.index;t&&t.chainConnect(P,R);var N=a[P].length<a[R].length;s.matches_head?u.matches_head?N?(C(P),E(P,R)):(C(R),E(R,P)):E(R,P):u.matches_head?E(P,R):N?(C(P),E(R,P)):(C(R),E(P,R))}),n}YB.exports=O4e});var WB=z((RVe,jB)=>{function ed(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 H4e={union:function(e,r){return ed(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ed(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ed(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ed(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ed(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};jB.exports=H4e});var ZB=z((FVe,XB)=>{var U4e={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 y=0;y<d.children.length;y++){var m=d.children[y];if(a(p,m.region)){o(m,p);return}}for(var b=n(p),y=0;y<d.children.length;y++){var m=d.children[y];a(m.region,p)&&(b.children.push(m),d.children.splice(y,1),y--)}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 y=0,m=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,_]),y+=_*m-x*b,m=x,b=_}var k=y<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 y=0;y<d.children.length;y++)p.push(v(d.children[y]))}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}}};XB.exports=U4e});var QB=z((zVe,KB)=>{var G4e=NB(),Y4e=BB(),$B=GB(),V4e=VB(),rd=WB(),JB=ZB(),Gi=!1,td=Y4e(),Qn;Qn={buildLog:function(e){return e===!0?Gi=G4e():e===!1&&(Gi=!1),Gi===!1?!1:Gi.list},epsilon:function(e){return td.epsilon(e)},segments:function(e){var r=$B(!0,td,Gi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=$B(!1,td,Gi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:rd.union(e.combined,Gi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:rd.intersect(e.combined,Gi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:rd.difference(e.combined,Gi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:rd.differenceRev(e.combined,Gi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:rd.xor(e.combined,Gi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:V4e(e.segments,td,Gi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return JB.toPolygon(Qn,e)},polygonToGeoJSON:function(e){return JB.fromPolygon(Qn,td,e)},union:function(e,r){return ad(e,r,Qn.selectUnion)},intersect:function(e,r){return ad(e,r,Qn.selectIntersect)},difference:function(e,r){return ad(e,r,Qn.selectDifference)},differenceRev:function(e,r){return ad(e,r,Qn.selectDifferenceRev)},xor:function(e,r){return ad(e,r,Qn.selectXor)}};function ad(e,r,t){var a=Qn.segments(e),n=Qn.segments(r),i=Qn.combine(a,n),o=t(i);return Qn.polygon(o)}typeof window=="object"&&(window.PolyBool=Qn);KB.exports=Qn});var rO=z((NVe,eO)=>{eO.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],y=v>o!=p>o&&i<(d-c)*(o-v)/(p-v)+c;y&&(l=!l)}return l}});var w7=z((IVe,tO)=>{"use strict";var _7=fp().dot,uy=Gt().BADNUM,fy=tO.exports={};fy.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,y){var m=p[0],b=p[1];return!(m===uy||m<a||m>n||b===uy||b<i||b>o||y&&u(p))}function c(p,y){var m=p[0],b=p[1];if(m===uy||m<a||m>n||b===uy||b<i||b>o)return!1;var T=t.length,w=t[0][0],x=t[0][1],_=0,k,A,q,C,E;for(k=1;k<T;k++)if(A=w,q=x,w=t[k][0],x=t[k][1],C=Math.min(A,w),!(m<C||m>Math.max(A,w)||b>Math.max(q,x)))if(b<Math.min(q,x))m!==C&&_++;else{if(w===A?E=b:E=q+(m-A)*(x-q)/(w-A),b===E)return!(k===1&&y);b<=E&&m!==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}};fy.isSegmentBent=function(r,t,a,n){var i=r[t],o=[r[a][0]-i[0],r[a][1]-i[1]],l=_7(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=_7(c,o),v<0||v>l||Math.abs(_7(c,u))>n)return!0;return!1};fy.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||fy.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 nO=z((BVe,aO)=>{"use strict";aO.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var kO=z((OVe,MO)=>{"use strict";var iO=QB(),j4e=rO(),od=Tr(),W4e=Zr().dashStyle,nd=Sr(),X4e=In(),Z4e=qo().makeEventData,cd=lf(),$4e=cd.freeMode,J4e=cd.rectMode,ld=cd.drawMode,k7=cd.openMode,S7=cd.selectMode,oO=Bs(),lO=Wh(),vO=Xm(),hO=ks().clearOutline,dO=zs(),T7=dO.handleEllipse,K4e=dO.readPaths,Q4e=Vm().newShapes,e6e=X6(),r6e=x7().activateLastSelection,vy=ke(),t6e=vy.sorterAsc,pO=w7(),id=wp(),Yi=ba().getFromId,a6e=Nm(),n6e=oy().redrawReglTraces,hy=nO(),hl=hy.MINSELECT,i6e=pO.filter,q7=pO.tester,L7=Hm(),sO=L7.p2r,o6e=L7.axValue,l6e=L7.getTransform;function C7(e){return e.subplot!==void 0}function s6e(e,r,t,a,n){var i=!C7(a),o=$4e(n),l=J4e(n),s=k7(n),u=ld(n),f=S7(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,b=y._zoomlayer,T=a.element.getBoundingClientRect(),w=a.plotinfo,x=l6e(w),_=r-T.left,k=t-T.top;y._calcInverseTransform(p);var A=vy.apply3DTransform(y._invTransform)(_,k);_=A[0],k=A[1];var q=y._invScaleX,C=y._invScaleY,E=_,P=k,R="M"+_+","+k,N=a.xaxes[0],I=a.yaxes[0],O=N._length,U=I._length,Y=e.altKey&&!(ld(n)&&s),G,V,W,j,J,te,ae;yO(e,p,a),o&&(G=i6e([[_,k]],hy.BENDPX));var se=b.selectAll("path.select-outline-"+w.id).data([1]),$=u?y.newshape:y.newselection;u&&(a.hasText=$.label.text||$.label.texttemplate);var fe=u&&!s?$.fillcolor:"rgba(0,0,0,0)",ie=$.line.color||(i?nd.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");se.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?$.opacity/2:1,"stroke-dasharray":W4e($.line.dash,$.line.width),"stroke-width":$.line.width+"px","shape-rendering":"crispEdges"}).call(nd.stroke,ie).call(nd.fill,fe).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",R+"Z");var ue=b.append("path").attr("class","zoombox-corners").style({fill:nd.background,stroke:nd.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var ce=b.select(".label-temp");ce.empty()&&(ce=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var oe=y._uid+hy.SELECTID,be=[],Re=dy(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ce=N._id,Me=I._id;wO(p,Ce,Me,Re);for(var Le=(p.layout||{}).selections||[],De=[],Ne=!1,qe=0;qe<Le.length;qe++){var Xe=y.selections[qe];!Xe||Xe.xref!==Ce||Xe.yref!==Me?De.push(Le[qe]):Ne=!0}Ne&&(p._fullLayout._noEmitSelectedAtStart=!0,od.call("_guiRelayout",p,{selections:De}))}});var ye=w6e(a);a.moveFn=function(Ce,Me){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),E=Math.max(0,Math.min(O,q*Ce+_)),P=Math.max(0,Math.min(U,C*Me+k));var Le=Math.abs(E-_),De=Math.abs(P-k);if(l){var Ne,qe,Xe;if(f){var $e=y.selectdirection;switch($e==="any"?De<Math.min(Le*.6,hl)?Ne="h":Le<Math.min(De*.6,hl)?Ne="v":Ne="d":Ne=$e,Ne){case"h":qe=v?U/2:0,Xe=U;break;case"v":qe=v?O/2:0,Xe=O;break}}if(u)switch(y.newshape.drawdirection){case"vertical":Ne="h",qe=v?U/2:0,Xe=U;break;case"horizontal":Ne="v",qe=v?O/2:0,Xe=O;break;case"ortho":Le<De?(Ne="h",qe=k,Xe=P):(Ne="v",qe=_,Xe=E);break;default:Ne="d"}Ne==="h"?(j=d?T7(v,[E,qe],[E,Xe]):[[_,qe],[_,Xe],[E,Xe],[E,qe]],j.xmin=d?E:Math.min(_,E),j.xmax=d?E:Math.max(_,E),j.ymin=Math.min(qe,Xe),j.ymax=Math.max(qe,Xe),ue.attr("d","M"+j.xmin+","+(k-hl)+"h-4v"+2*hl+"h4ZM"+(j.xmax-1)+","+(k-hl)+"h4v"+2*hl+"h-4Z")):Ne==="v"?(j=d?T7(v,[qe,P],[Xe,P]):[[qe,k],[qe,P],[Xe,P],[Xe,k]],j.xmin=Math.min(qe,Xe),j.xmax=Math.max(qe,Xe),j.ymin=d?P:Math.min(k,P),j.ymax=d?P:Math.max(k,P),ue.attr("d","M"+(_-hl)+","+j.ymin+"v-4h"+2*hl+"v4ZM"+(_-hl)+","+(j.ymax-1)+"v4h"+2*hl+"v-4Z")):Ne==="d"&&(j=d?T7(v,[_,k],[E,P]):[[_,k],[_,P],[E,P],[E,k]],j.xmin=Math.min(_,E),j.xmax=Math.max(_,E),j.ymin=Math.min(k,P),j.ymax=Math.max(k,P),ue.attr("d","M0,0Z"))}else o&&(G.addPt([E,P]),j=G.filtered);if(a.selectionDefs&&a.selectionDefs.length?(W=gO(a.mergedPolygons,j,Y),j.subtract=Y,V=D7(a.selectionDefs.concat([j]))):(W=[j],V=q7(j)),vO(xO(W,s),se,a),f){var We=M7(p,!1),Se=We.eventData?We.eventData.points.slice():[];We=M7(p,!1,V,Re,a),V=We.selectionTesters,ae=We.eventData;var Fe;G?Fe=G.filtered:Fe=TO(W),id.throttle(oe,hy.SELECTDELAY,function(){be=_O(V,Re);for(var Qe=be.slice(),re=0;re<Se.length;re++){for(var xe=Se[re],Ge=!1,cr=0;cr<Qe.length;cr++)if(Qe[cr].curveNumber===xe.curveNumber&&Qe[cr].pointNumber===xe.pointNumber){Ge=!0;break}Ge||Qe.push(xe)}Qe.length&&(ae||(ae={}),ae.points=Qe),ye(ae,Fe),T6e(p,ae)})}},a.clickFn=function(Ce,Me){if(ue.remove(),p._fullLayout._activeShapeIndex>=0){p._fullLayout._deactivateShape(p);return}if(!u){var Le=y.clickmode;id.done(oe).then(function(){if(id.clear(oe),Ce===2){for(se.remove(),J=0;J<Re.length;J++)te=Re[J],te._module.selectPoints(te,!1);if(ud(p,Re),sd(a),P7(p),Re.length){var De=Re[0].xaxis,Ne=Re[0].yaxis;if(De&&Ne){for(var qe=[],Xe=p._fullLayout.selections,$e=0;$e<Xe.length;$e++){var We=Xe[$e];We&&(We.xref!==De._id||We.yref!==Ne._id)&&qe.push(We)}qe.length<Xe.length&&(p._fullLayout._noEmitSelectedAtStart=!0,od.call("_guiRelayout",p,{selections:qe}))}}}else Le.indexOf("select")>-1&&mO(Me,p,a.xaxes,a.yaxes,a.subplot,a,se),Le==="event"&&fd(p,void 0);X4e.click(p,Me,w.id)}).catch(vy.error)}},a.doneFn=function(){ue.remove(),id.done(oe).then(function(){id.clear(oe),!m&&j&&a.selectionDefs&&(j.subtract=Y,a.selectionDefs.push(j),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,W)),(m||u)&&sd(a,m),a.doneFnCompleted&&a.doneFnCompleted(be),f&&fd(p,ae)}).catch(vy.error)}}function mO(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,y,m,b,T,w,x,_;if(h6e(l)){yO(e,r,i),v=dy(r,t,a,n);var k=d6e(l,v),A=k.pointNumbers.length>0;if(A?p6e(v,k):m6e(v)&&(T=fO(k))){for(o&&o.remove(),_=0;_<v.length;_++)d=v[_],d._module.selectPoints(d,!1);ud(r,v),sd(i),f&&P7(r)}else{w=e.shiftKey&&(T!==void 0?T:fO(k)),p=u6e(k.pointNumber,k.searchInfo,w);var q=i.selectionDefs.concat([p]);for(y=D7(q,y),_=0;_<v.length;_++)if(m=v[_]._module.selectPoints(v[_],y),b=bO(m,v[_]),c.length)for(var C=0;C<b.length;C++)c.push(b[C]);else c=b;if(x={points:c},ud(r,v,x),p&&i&&i.selectionDefs.push(p),o){var E=i.mergedPolygons,P=k7(i.dragmode);vO(xO(E,P),o,i)}f&&fd(r,x)}}}function u6e(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function A7(e){return"pointNumber"in e&&"searchInfo"in e}function f6e(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 D7(e){if(!e.length)return;for(var r=[],t=A7(e[0])?0:e[0][0][0],a=t,n=A7(e[0])?0:e[0][0][1],i=n,o=0;o<e.length;o++)if(A7(e[o]))r.push(f6e(e[o]));else{var l=q7(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 yO(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)&&!(ld(i)&&k7(i));o&&l&&n.selection&&n.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=n.selection.selectionDefs,t.mergedPolygons=n.selection.mergedPolygons):(!l||!n.selection)&&sd(t),o||(hO(r),a._lastSelectedSubplot=n.id)}function c6e(e){return e._fullLayout._activeShapeIndex>=0}function v6e(e){return e._fullLayout._activeSelectionIndex>=0}function sd(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;c6e(n)&&n._fullLayout._deactivateShape(n),v6e(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=ld(t),s=S7(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Q4e(u,e)),f&&od.call("_guiRelayout",n,{shapes:f});var c;s&&!C7(e)&&(c=e6e(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,od.call("_guiRelayout",n,{selections:c}).then(function(){r&&r6e(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function uO(e){return e._id}function dy(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(uO),o=t.map(uO),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(C7({subplot:a})&&(s.subplot===a||s.geo===a))n.push(cy(s._module,l,r[0],t[0]));else if(s.type==="splom"){if(s._xaxes[i[0]]&&s._yaxes[o[0]]){var f=cy(s._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[s.uid],n.push(f)}}else if(s.type==="sankey"){var c=cy(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(cy(s._module,l,Yi(e,s.xaxis),Yi(e,s.yaxis)))}return n}function cy(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function h6e(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function d6e(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 fO(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 p6e(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 m6e(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 ud(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;y6e(e,r)}function y6e(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;od.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&&(a6e(e),n6e(e))}function gO(e,r,t){for(var a=t?iO.difference:iO.union,n=a({regions:e},{regions:[r]}),i=n.regions.reverse(),o=0;o<i.length;o++){var l=i[o];l.subtract=E7(l,i.slice(0,o))}return i}function bO(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=Z4e(e[n],a,t);return e}function xO(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=bO(i,l),t=t.concat(a)}return t}function M7(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=cO(e),v=e._fullLayout;if(o){var d=v._zoomlayer,p=v.dragmode,y=ld(p),m=S7(p);if(y||m){var b=Yi(e,l,"x"),T=Yi(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=K4e(_,e,o),A=[],q=0;q<k.length;q++){for(var C=k[q],E=[],P=0;P<C.length;P++)E.push([Os(b,C[P][1]),Os(T,C[P][2])]);E.xref=l,E.yref=s,E.subtract=E7(E,A),A.push(E)}c=c.concat(A)}}}}var R=l&&s?[l+s]:v._subplots.cartesian;g6e(e);for(var N={},I=0;I<R.length;I++){var O=R[I],U=O.indexOf("y"),Y=O.slice(0,U),G=O.slice(U),V=l&&s?t:void 0;if(V=x6e(c,Y,G,V),V){var W=a;if(!i){var j=Yi(e,Y,"x"),J=Yi(e,G,"y");W=dy(e,[j],[J],O);for(var te=0;te<W.length;te++){var ae=W[te],se=ae.cd[0],$=se.trace;if(ae._module.name==="scattergl"&&!se.t.xpx){var fe=$.x,ie=$.y,ue=$._length;se.t.xpx=[],se.t.ypx=[];for(var ce=0;ce<ue;ce++)se.t.xpx[ce]=j.c2p(fe[ce]),se.t.ypx[ce]=J.c2p(ie[ce])}ae._module.name==="splom"&&(N[$.uid]||(N[$.uid]=!0))}}var oe=_O(V,W);u=u.concat(oe),f=f.concat(W)}}var be={points:u};ud(e,f,be);var Re=v.clickmode,ye=Re.indexOf("event")>-1&&r;if(!o&&r){var Ce=cO(e,!0);if(Ce.length){var Me=Ce[0].xref,Le=Ce[0].yref;if(Me&&Le){var De=TO(Ce),Ne=AO([Yi(e,Me,"x"),Yi(e,Le,"y")]);Ne(be,De)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ye&&fd(e,be),v._reselect=!1}if(!o&&v._deselect){var qe=v._deselect;l=qe.xref,s=qe.yref,b6e(l,s,f)||wO(e,l,s,a),ye&&(be.points.length?fd(e,be):P7(e)),v._deselect=!1}return{eventData:be,selectionTesters:t}}function g6e(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 b6e(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 wO(e,r,t,a){a=dy(e,[Yi(e,r,"x")],[Yi(e,t,"y")],r+t);for(var n=0;n<a.length;n++){var i=a[n];i._module.selectPoints(i,!1)}ud(e,a)}function x6e(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=gO(n,o,l),a=D7(n)}else n=[o],a=q7(o)}return a}function cO(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=Yi(e,s,"x"),c=Yi(e,u,"y"),v,d,p,y,m;if(l.type==="rect"){m=[];var b=Os(f,l.x0),T=Os(f,l.x1),w=Os(c,l.y0),x=Os(c,l.y1);m=[[b,w],[b,x],[T,x],[T,w]],v=Math.min(b,T),d=Math.max(b,T),p=Math.min(w,x),y=Math.max(w,x),m.xmin=v,m.xmax=d,m.ymin=p,m.ymax=y,m.xref=s,m.yref=u,m.subtract=!1,m.isRect=!0,t.push(m)}else if(l.type==="path")for(var _=l.path.split("Z"),k=[],A=0;A<_.length;A++){var q=_[A];if(q){q+="Z";var C=oO.extractPathCoords(q,lO.paramIsX,"raw"),E=oO.extractPathCoords(q,lO.paramIsY,"raw");v=1/0,d=-1/0,p=1/0,y=-1/0,m=[];for(var P=0;P<C.length;P++){var R=Os(f,C[P]),N=Os(c,E[P]);m.push([R,N]),v=Math.min(R,v),d=Math.max(R,d),p=Math.min(N,p),y=Math.max(N,y)}m.xmin=v,m.xmax=d,m.ymin=p,m.ymax=y,m.xref=s,m.yref=u,m.subtract=E7(m,k),k.push(m),t.push(m)}}}}return t}function E7(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(j4e(e[i],n)){t=!t;break}return t}function Os(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function TO(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 _6e(t)}function _6e(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 AO(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]=[sO(o,u),sO(o,f)].sort(t6e))}else n||(n={}),n[l]=t.map(o6e(o))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function w6e(e){var r=e.plotinfo;return r.fillRangeItems||AO(e.xaxes.concat(e.yaxes))}function T6e(e,r){e.emit("plotly_selecting",r)}function fd(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function P7(e){e.emit("plotly_deselect",null)}MO.exports={reselect:M7,prepSelect:s6e,clearOutline:hO,clearSelectionsCache:sd,selectOnClick:mO}});var R7=z((HVe,SO)=>{"use strict";SO.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 vd=z((UVe,qO)=>{"use strict";qO.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e,"axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var yc=z((YVe,DO)=>{"use strict";var LO=R7(),CO=ka(),py=qa(),A6e=St().templatedArray,GVe=vd();DO.exports=A6e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:CO({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:LO.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:LO.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",py.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",py.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",py.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",py.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:CO({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var hd=z((VVe,EO)=>{"use strict";EO.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var my=z((jVe,PO)=>{"use strict";PO.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Vi=z((WVe,HO)=>{"use strict";var RO=ko().axisHoverFormat,{hovertemplateAttrs:M6e,texttemplateAttrs:k6e,templatefallbackAttrs:FO}=fi(),zO=el(),S6e=ka(),NO=Pi().dash,q6e=Pi().pattern,L6e=Zr(),C6e=hd(),dd=At().extendFlat,D6e=my();function IO(e){return{valType:"any",dflt:0,editType:"calc"}}function BO(e){return{valType:"any",editType:"calc"}}function OO(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}HO.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:IO("x"),yperiod:IO("y"),xperiod0:BO("x0"),yperiod0:BO("y0"),xperiodalignment:OO("x"),yperiodalignment:OO("y"),xhoverformat:RO("x"),yhoverformat:RO("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:k6e(),texttemplatefallback:FO({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:M6e({},{keys:C6e.eventDataKeys}),hovertemplatefallback:FO(),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:dd({},NO,{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:D6e(!0),fillgradient:dd({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:q6e,marker:dd({symbol:{valType:"enumerated",values:L6e.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:dd({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:dd({},NO,{arrayOk:!0}),editType:"calc"},zO("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"},zO("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:S6e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var F7=z((ZVe,YO)=>{"use strict";var UO=yc(),GO=Vi().line,E6e=Pi().dash,yy=At().extendFlat,P6e=wo().overrideAll,R6e=St().templatedArray,XVe=vd();YO.exports=P6e(R6e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:yy({},UO.xref,{}),yref:yy({},UO.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:GO.color,width:yy({},GO.width,{min:1,dflt:1}),dash:yy({},E6e,{dflt:"dot"})}}),"arraydraw","from-root")});var XO=z(($Ve,WO)=>{"use strict";var VO=ke(),gy=Gr(),F6e=So(),z6e=F7(),jO=Bs();WO.exports=function(r,t){F6e(r,t,{name:"selections",handleItemDefaults:N6e});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 N6e(e,r,t){function a(k,A){return VO.coerce(e,r,z6e,k,A)}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,y=gy.coerceRef(e,r,c,f);if(v=gy.getFromId(c,y),v._selectionIndices.push(r._index),p=jO.rangeToShapePosition(v),d=jO.shapePositionToRange(v),l){var m=f+"0",b=f+"1",T=e[m],w=e[b];e[m]=d(e[m],!0),e[b]=d(e[b],!0),gy.coercePosition(r,c,a,y,m),gy.coercePosition(r,c,a,y,b);var x=r[m],_=r[b];x!==void 0&&_!==void 0&&(r[m]=p(x),r[b]=p(_),e[m]=T,e[b]=w)}}l&&VO.noneOrAll(e,r,["x0","x1","y0","y1"])}});var $O=z((JVe,ZO)=>{"use strict";ZO.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 pd=z((KVe,QO)=>{"use strict";var I6e=Tr(),JO=ke(),KO=ba();QO.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=I6e.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(JO.isPlainObject(p)){var y=KO.cleanId(p.xref,"x",!1),m=KO.cleanId(p.yref,"y",!1),b=l.x.test(y),T=l.y.test(m);if(b||T){v||JO.pushUnique(n._basePlotModules,o);var w=!1;b&&u.indexOf(y)===-1&&(u.push(y),w=!0),T&&f.indexOf(m)===-1&&(f.push(m),w=!0),w&&b&&T&&c.push(y+m)}}}}}});var dl=z((QVe,rH)=>{"use strict";var eH=x7(),md=kO();rH.exports={moduleType:"component",name:"selections",layoutAttributes:F7(),supplyLayoutDefaults:XO(),supplyDrawNewSelectionDefaults:$O(),includeBasePlot:pd()("selections"),draw:eH.draw,drawOne:eH.drawOne,reselect:md.reselect,prepSelect:md.prepSelect,clearOutline:md.clearOutline,clearSelectionsCache:md.clearSelectionsCache,selectOnClick:md.selectOnClick}});var _H=z((eje,xH)=>{"use strict";var H7=Er(),ji=ke(),tH=ji.numberFormat,B6e=g6(),by=Tr(),fH=ji.strTranslate,O6e=Ca(),N7=Sr(),Hs=Zr(),H6e=In(),aH=Gr(),U6e=Rs(),G6e=Bi(),cH=lf(),xy=cH.selectingOrDrawing,Y6e=cH.freeMode,V6e=Qa().FROM_TL,j6e=Nm(),W6e=oy().redrawReglTraces,X6e=va(),I7=ba().getFromId,Z6e=dl().prepSelect,$6e=dl().clearOutline,J6e=dl().selectOnClick,z7=v7(),U7=qa(),nH=U7.MINDRAG,Bn=U7.MINZOOM,iH=!0;function K6e(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,y,m,b,T,w,x,_,k,A,q,C,E,P,R,N,I,O,U,Y;t+=r.yaxis._shift;function G(){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 me=r.overlays,Ae=0;Ae<me.length;Ae++){var He=me[Ae].xaxis;d[He._id]=He;var Ze=me[Ae].yaxis;p[Ze._id]=Ze}y=uH(d),m=uH(p),A=oH(y,l),q=oH(m,o),C=!q&&!A,k=sH(e,e._fullLayout._axisMatchGroups,d,p),_=sH(e,e._fullLayout._axisConstraintGroups,d,p,k);var Be=_.isSubplotConstrained||k.isSubplotConstrained;E=l||Be,P=o||Be;var je=e._fullLayout;R=je._has("scattergl"),N=je._has("splom"),I=je._has("svg")}G();var V=r7e(q+A,e._fullLayout.dragmode,u),W=hH(r,o+l+"drag",V,t,a,n,i);if(C&&!u)return W.onmousedown=null,W.style.pointerEvents="none",W;var j={element:W,gd:e,plotinfo:r};j.prepFn=function(me,Ae,He){var Ze=j.dragmode,Be=e._fullLayout.dragmode;Be!==Ze&&(j.dragmode=Be),G(),U=e._fullLayout._invScaleX,Y=e._fullLayout._invScaleY,C||(u?me.shiftKey?Be==="pan"?Be="zoom":xy(Be)||(Be="pan"):me.ctrlKey&&(Be="pan"):Be="pan"),Y6e(Be)?j.minDrag=1:j.minDrag=void 0,xy(Be)?(j.xaxes=y,j.yaxes=m,Z6e(me,Ae,He,j,Be)):(j.clickFn=te,xy(Ze)&&J(),C||(Be==="zoom"?(j.moveFn=Ce,j.doneFn=Le,j.minDrag=1,ye(me,Ae,He)):Be==="pan"&&(j.moveFn=We,j.doneFn=re))),e._fullLayout._redrag=function(){var je=e._dragdata;if(je&&je.element===W){var tr=e._fullLayout.dragmode;xy(tr)||(G(),xe([0,0,w,x]),j.moveFn(je.dx,je.dy))}}};function J(){j.plotinfo.selection=!1,$6e(e)}function te(me,Ae){var He=j.gd;if(He._fullLayout._activeShapeIndex>=0){He._fullLayout._deactivateShape(He);return}var Ze=He._fullLayout.clickmode;if(O7(He),me===2&&!f&&Qe(),u)Ze.indexOf("select")>-1&&J6e(Ae,He,y,m,r.id,j),Ze.indexOf("event")>-1&&H6e.click(He,Ae,r.id);else if(me===1&&f){var Be=o?v:c,je=o==="s"||l==="w"?0:1,tr=Be._name+".range["+je+"]",ir=Q6e(Be,je),lr="left",Ee="middle";if(Be.fixedrange)return;o?(Ee=o==="n"?"top":"bottom",Be.side==="right"&&(lr="right")):l==="e"&&(lr="right"),He._context.showAxisRangeEntryBoxes&&H7.select(W).call(O6e.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(ir),fill:Be.tickfont?Be.tickfont.color:"#444",horizontalAlign:lr,verticalAlign:Ee}).on("edit",function(Je){var Ie=Be.d2r(Je);Ie!==void 0&&by.call("_guiRelayout",He,tr,Ie)})}}G6e.init(j);var ae,se,$,fe,ie,ue,ce,oe,be,Re;function ye(me,Ae,He){var Ze=W.getBoundingClientRect();ae=Ae-Ze.left,se=He-Ze.top,e._fullLayout._calcInverseTransform(e);var Be=ji.apply3DTransform(e._fullLayout._invTransform)(ae,se);ae=Be[0],se=Be[1],$={l:ae,r:ae,w:0,t:se,b:se,h:0},fe=e._hmpixcount?e._hmlumcount/e._hmpixcount:N7.luminosity(e._fullLayout.plot_bgcolor),ie="M0,0H"+w+"V"+x+"H0V0",ue=!1,ce="xy",Re=!1,oe=dH(s,fe,b,T,ie),be=pH(s,b,T)}function Ce(me,Ae){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(w,U*me+ae)),Ze=Math.max(0,Math.min(x,Y*Ae+se)),Be=Math.abs(He-ae),je=Math.abs(Ze-se);$.l=Math.min(ae,He),$.r=Math.max(ae,He),$.t=Math.min(se,Ze),$.b=Math.max(se,Ze);function tr(){ce="",$.r=$.l,$.t=$.b,be.attr("d","M0,0Z")}if(_.isSubplotConstrained)Be>Bn||je>Bn?(ce="xy",Be/w>je/x?(je=Be*x/w,se>Ze?$.t=se-je:$.b=se+je):(Be=je*w/x,ae>He?$.l=ae-Be:$.r=ae+Be),be.attr("d",_y($))):tr();else if(k.isSubplotConstrained)if(Be>Bn||je>Bn){ce="xy";var ir=Math.min($.l/w,(x-$.b)/x),lr=Math.max($.r/w,(x-$.t)/x);$.l=ir*w,$.r=lr*w,$.b=(1-ir)*x,$.t=(1-lr)*x,be.attr("d",_y($))}else tr();else!q||je<Math.min(Math.max(Be*.6,nH),Bn)?Be<nH||!A?tr():($.t=0,$.b=x,ce="x",be.attr("d",t7e($,se))):!A||Be<Math.min(je*.6,Bn)?($.l=0,$.r=w,ce="y",be.attr("d",a7e($,ae))):(ce="xy",be.attr("d",_y($)));$.w=$.r-$.l,$.h=$.b-$.t,ce&&(Re=!0),e._dragged=Re,mH(oe,be,$,ie,ue,fe),Me(),e.emit("plotly_relayouting",O),ue=!0}function Me(){O={},(ce==="xy"||ce==="x")&&(B7(y,$.l/w,$.r/w,O,_.xaxes),Se("x",O)),(ce==="xy"||ce==="y")&&(B7(m,(x-$.b)/x,(x-$.t)/x,O,_.yaxes),Se("y",O))}function Le(){Me(),O7(e),re(),gH(e)}var De=[0,0,w,x],Ne=null,qe=U7.REDRAWDELAY,Xe=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function $e(me){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(J(),e._transitioningWithDuration){me.preventDefault(),me.stopPropagation();return}G(),clearTimeout(Ne);var Ae=-me.deltaY;if(isFinite(Ae)||(Ae=me.wheelDelta/10),!isFinite(Ae)){ji.log("Did not find wheel motion attributes: ",me);return}e._fullLayout._replotting=!0;var He=Math.exp(-Math.min(Math.max(Ae,-20),20)/200),Ze=Xe.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Be=(me.clientX-Ze.left)/Ze.width,je=(Ze.bottom-me.clientY)/Ze.height,tr;function ir(lr,Ee,Je){if(lr.fixedrange)return;var Ie=ji.simpleMap(lr.range,lr.r2l),pr=Ie[0]+(Ie[1]-Ie[0])*Ee;function mr(sr){return lr.l2r(pr+(sr-pr)*Je)}lr.range=Ie.map(mr)}if(E){for(l||(Be=.5),tr=0;tr<y.length;tr++)ir(y[tr],Be,He);Se("x"),De[2]*=He,De[0]+=De[2]*Be*(1/He-1)}if(P){for(o||(je=.5),tr=0;tr<m.length;tr++)ir(m[tr],je,He);Se("y"),De[3]*=He,De[1]+=De[3]*(1-je)*(1/He-1)}xe(De),Fe(),e.emit("plotly_relayouting",O),Ne=setTimeout(function(){e._fullLayout&&(De=[0,0,w,x],re())},qe),me.preventDefault()}o.length*l.length!==1&&bH(W,$e);function We(me,Ae){if(me=me*U,Ae=Ae*Y,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,A==="ew"||q==="ns"){var He=A?-me:0,Ze=q?-Ae:0;if(k.isSubplotConstrained){if(A&&q){var Be=(me/w-Ae/x)/2;me=Be*w,Ae=-Be*x,He=-me,Ze=-Ae}q?He=-Ze*w/x:Ze=-He*x/w}A&&(lH(y,me),Se("x")),q&&(lH(m,Ae),Se("y")),xe([He,Ze,w,x]),Fe(),e.emit("plotly_relayouting",O);return}function je(mr,sr,yr){for(var ne=1-sr,ge,ze,Oe=0;Oe<mr.length;Oe++){var Jr=mr[Oe];if(!Jr.fixedrange){ge=Jr,ze=Jr._rl[ne]+(Jr._rl[sr]-Jr._rl[ne])/e7e(yr/Jr._length);var Kr=Jr.l2r(ze);Kr!==!1&&Kr!==void 0&&(Jr.range[sr]=Kr)}}return ge._length*(ge._rl[sr]-ze)/(ge._rl[sr]-ge._rl[ne])}var tr=A==="w"==(q==="n")?1:-1;if(A&&q&&(_.isSubplotConstrained||k.isSubplotConstrained)){var ir=(me/w+tr*Ae/x)/2;me=ir*w,Ae=tr*ir*x}var lr,Ee;if(A==="w"?me=je(y,0,me):A==="e"?me=je(y,1,-me):A||(me=0),q==="n"?Ae=je(m,1,Ae):q==="s"?Ae=je(m,0,-Ae):q||(Ae=0),lr=A==="w"?me:0,Ee=q==="n"?Ae:0,_.isSubplotConstrained&&!k.isSubplotConstrained||k.isSubplotConstrained&&A&&q&&tr>0){var Je;if(k.isSubplotConstrained||!A&&q.length===1){for(Je=0;Je<y.length;Je++)y[Je].range=y[Je]._r.slice(),z7(y[Je],1-Ae/x);me=Ae*w/x,lr=me/2}if(k.isSubplotConstrained||!q&&A.length===1){for(Je=0;Je<m.length;Je++)m[Je].range=m[Je]._r.slice(),z7(m[Je],1-me/w);Ae=me*x/w,Ee=Ae/2}}(!k.isSubplotConstrained||!q)&&Se("x"),(!k.isSubplotConstrained||!A)&&Se("y");var Ie=w-me,pr=x-Ae;k.isSubplotConstrained&&!(A&&q)&&(A?(Ee=lr?0:me*x/w,pr=Ie*x/w):(lr=Ee?0:Ae*w/x,Ie=pr*w/x)),xe([lr,Ee,Ie,pr]),Fe(),e.emit("plotly_relayouting",O)}function Se(me,Ae){for(var He=k.isSubplotConstrained?{x:m,y}[me]:k[me+"axes"],Ze=k.isSubplotConstrained?{x:y,y:m}[me]:[],Be=0;Be<He.length;Be++){var je=He[Be],tr=je._id,ir=k.xLinks[tr]||k.yLinks[tr],lr=Ze[0]||d[ir]||p[ir];lr&&(Ae?(Ae[je._name+".range[0]"]=Ae[lr._name+".range[0]"],Ae[je._name+".range[1]"]=Ae[lr._name+".range[1]"]):je.range=lr.range.slice())}}function Fe(){var me=[],Ae;function He(tr){for(Ae=0;Ae<tr.length;Ae++)tr[Ae].fixedrange||me.push(tr[Ae]._id)}function Ze(tr,ir){for(Ae=0;Ae<tr.length;Ae++){var lr=tr[Ae],Ee=lr[ir],Je=Ee._id;!lr.fixedrange&&Ee.tickmode==="sync"&&!me.includes(Je)&&me.push(Je)}}for(E&&(He(y),He(_.xaxes),He(k.xaxes),Ze(r.overlays,"xaxis")),P&&(He(m),He(_.yaxes),He(k.yaxes),Ze(r.overlays,"yaxis")),O={},Ae=0;Ae<me.length;Ae++){var Be=me[Ae],je=I7(e,Be);aH.drawOne(e,je,{skipTitle:!0}),O[je._name+".range[0]"]=je.range[0],O[je._name+".range[1]"]=je.range[1]}aH.redrawComponents(e,me)}function Qe(){if(!e._transitioningWithDuration){var me=e._context.doubleClick,Ae=[];A&&(Ae=Ae.concat(y)),q&&(Ae=Ae.concat(m)),k.xaxes&&(Ae=Ae.concat(k.xaxes)),k.yaxes&&(Ae=Ae.concat(k.yaxes));var He={},Ze,Be;if(me==="reset+autosize")for(me="autosize",Be=0;Be<Ae.length;Be++){Ze=Ae[Be];var je=Ze._rangeInitial0,tr=Ze._rangeInitial1,ir=je!==void 0||tr!==void 0;if(ir&&(je!==void 0&&je!==Ze.range[0]||tr!==void 0&&tr!==Ze.range[1])||!ir&&Ze.autorange!==!0){me="reset";break}}if(me==="autosize")for(Be=0;Be<Ae.length;Be++)Ze=Ae[Be],Ze.fixedrange||(He[Ze._name+".autorange"]=!0);else if(me==="reset"){for((A||_.isSubplotConstrained)&&(Ae=Ae.concat(_.xaxes)),q&&!_.isSubplotConstrained&&(Ae=Ae.concat(_.yaxes)),_.isSubplotConstrained&&(A?q||(Ae=Ae.concat(m)):Ae=Ae.concat(y)),Be=0;Be<Ae.length;Be++)if(Ze=Ae[Be],!Ze.fixedrange){var lr=Ze._name,Ee=Ze._autorangeInitial;Ze._rangeInitial0===void 0&&Ze._rangeInitial1===void 0?He[lr+".autorange"]=!0:Ze._rangeInitial0===void 0?(He[lr+".autorange"]=Ee,He[lr+".range"]=[null,Ze._rangeInitial1]):Ze._rangeInitial1===void 0?(He[lr+".range"]=[Ze._rangeInitial0,null],He[lr+".autorange"]=Ee):He[lr+".range"]=[Ze._rangeInitial0,Ze._rangeInitial1]}}e.emit("plotly_doubleclick",null),by.call("_guiRelayout",e,He)}}function re(){xe([0,0,w,x]),ji.syncOrAsync([X6e.previousPromises,function(){e._fullLayout._replotting=!1,by.call("_guiRelayout",e,O)}],e)}function xe(me){var Ae=e._fullLayout,He=Ae._plots,Ze=Ae._subplots.cartesian,Be,je,tr,ir;if(N&&by.subplotsRegistry.splom.drag(e),R){for(Be=0;Be<Ze.length;Be++)if(je=He[Ze[Be]],tr=je.xaxis,ir=je.yaxis,je._scene){tr.limitRange&&tr.limitRange(),ir.limitRange&&ir.limitRange();var lr=ji.simpleMap(tr.range,tr.r2l),Ee=ji.simpleMap(ir.range,ir.r2l);je._scene.update({range:[lr[0],Ee[0],lr[1],Ee[1]]})}}if((N||R)&&(j6e(e),W6e(e)),I){var Je=me[2]/c._length,Ie=me[3]/v._length;for(Be=0;Be<Ze.length;Be++){je=He[Ze[Be]],tr=je.xaxis,ir=je.yaxis;var pr=(E||k.isSubplotConstrained)&&!tr.fixedrange&&d[tr._id],mr=(P||k.isSubplotConstrained)&&!ir.fixedrange&&p[ir._id],sr,yr,ne,ge;if(pr?(sr=Je,ne=l||k.isSubplotConstrained?me[0]:Pe(tr,sr)):k.xaHash[tr._id]?(sr=Je,ne=me[0]*tr._length/c._length):k.yaHash[tr._id]?(sr=Ie,ne=q==="ns"?-me[1]*tr._length/v._length:Pe(tr,sr,{n:"top",s:"bottom"}[q])):(sr=Ge(tr,Je,Ie),ne=cr(tr,sr)),sr>1&&(tr.maxallowed!==void 0&&E===(tr.range[0]<tr.range[1]?"e":"w")||tr.minallowed!==void 0&&E===(tr.range[0]<tr.range[1]?"w":"e"))&&(sr=1,ne=0),mr?(yr=Ie,ge=o||k.isSubplotConstrained?me[1]:Pe(ir,yr)):k.yaHash[ir._id]?(yr=Ie,ge=me[1]*ir._length/v._length):k.xaHash[ir._id]?(yr=Je,ge=A==="ew"?-me[0]*ir._length/c._length:Pe(ir,yr,{e:"right",w:"left"}[A])):(yr=Ge(ir,Je,Ie),ge=cr(ir,yr)),yr>1&&(ir.maxallowed!==void 0&&P===(ir.range[0]<ir.range[1]?"n":"s")||ir.minallowed!==void 0&&P===(ir.range[0]<ir.range[1]?"s":"n"))&&(yr=1,ge=0),!(!sr&&!yr)){sr||(sr=1),yr||(yr=1);var ze=tr._offset-ne/sr,Oe=ir._offset-ge/yr;je.clipRect.call(Hs.setTranslate,ne,ge).call(Hs.setScale,sr,yr),je.plot.call(Hs.setTranslate,ze,Oe).call(Hs.setScale,1/sr,1/yr),(sr!==je.xScaleFactor||yr!==je.yScaleFactor)&&(Hs.setPointGroupScale(je.zoomScalePts,sr,yr),Hs.setTextPointsScale(je.zoomScaleTxt,sr,yr)),Hs.hideOutsideRangePoints(je.clipOnAxisFalseTraces,je),je.xScaleFactor=sr,je.yScaleFactor=yr}}}}function Ge(me,Ae,He){return me.fixedrange?0:E&&_.xaHash[me._id]?Ae:P&&(_.isSubplotConstrained?_.xaHash:_.yaHash)[me._id]?He:0}function cr(me,Ae){return Ae?(me.range=me._r.slice(),z7(me,Ae),Pe(me,Ae)):0}function Pe(me,Ae,He){return me._length*(1-Ae)*V6e[He||me.constraintoward||"middle"]}return W}function vH(e,r,t,a){var n=ji.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(U6e,a),n.node()}function hH(e,r,t,a,n,i,o){var l=vH(e,"rect",r,t);return H7.select(l).call(Hs.setRect,a,n,i,o),l}function oH(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function Q6e(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,tH("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,tH("."+String(n)+"g")(t))}function B7(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;B7(n,v,1-v,a,[])}}function lH(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 e7e(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function r7e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function dH(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",fH(t,a)).attr("d",n+"Z")}function pH(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:N7.background,stroke:N7.defaultLine,"stroke-width":1,opacity:0}).attr("transform",fH(r,t)).attr("d","M0,0Z")}function mH(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 O7(e){H7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function gH(e){iH&&e.data&&e._context.showTips&&(ji.notifier(ji._(e,"Double-click to zoom back out"),"long",e),iH=!1)}function t7e(e,r){return"M"+(e.l-.5)+","+(r-Bn-.5)+"h-3v"+(2*Bn+1)+"h3ZM"+(e.r+.5)+","+(r-Bn-.5)+"h3v"+(2*Bn+1)+"h-3Z"}function a7e(e,r){return"M"+(r-Bn-.5)+","+(e.t-.5)+"v-3h"+(2*Bn+1)+"v3ZM"+(r-Bn-.5)+","+(e.b+.5)+"v3h"+(2*Bn+1)+"v-3Z"}function _y(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Bn)/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 sH(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 y=r[p];for(s in t)if(y[s]){for(f in y)!(n&&(v[f]||d[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(o[f]=s);for(u in a)!(n&&(v[u]||d[u]))&&y[u]&&(i=!0)}for(u in a)if(y[u])for(c in y)!(n&&(v[c]||d[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(l[c]=u)}i&&(ji.extendFlat(o,l),l={});var m={},b=[];for(f in o){var T=I7(e,f);b.push(T),m[T._id]=T}var w={},x=[];for(c in l){var _=I7(e,c);x.push(_),w[_._id]=_}return{xaHash:m,yaHash:w,xaxes:b,yaxes:x,xLinks:o,yLinks:l,isSubplotConstrained:i}}function bH(e,r){if(!B6e)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 uH(e){var r=[];for(var t in e)r.push(e[t]);return r}xH.exports={makeDragBox:K6e,makeDragger:vH,makeRectDragger:hH,makeZoombox:dH,makeCorners:pH,updateZoombox:mH,xyCorners:_y,transitionZoombox:yH,removeZoombox:O7,showDoubleClickNotifier:gH,attachWheelEventHandler:bH}});var G7=z(Ty=>{"use strict";var n7e=Er(),wy=In(),i7e=Bi(),o7e=Rs(),Do=_H().makeDragBox,Na=qa().DRAGGERSIZE;Ty.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){n7e.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=Do(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]&&wy.hover(r,v,i)},wy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,i7e.unhover(r,v))},r._context.showAxisDragHandles&&(Do(r,o,l._offset-Na,s._offset-Na,Na,Na,"n","w"),Do(r,o,l._offset+l._length,s._offset-Na,Na,Na,"n","e"),Do(r,o,l._offset-Na,s._offset+s._length,Na,Na,"s","w"),Do(r,o,l._offset+l._length,s._offset+s._length,Na,Na,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Na),Do(r,o,l._offset+l._length*.1,f,l._length*.8,Na,"","ew"),Do(r,o,l._offset,f,l._length*.1,Na,"","w"),Do(r,o,l._offset+l._length*.9,f,l._length*.1,Na,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Na),Do(r,o,c,s._offset+s._length*.1,Na,s._length*.8,"ns",""),Do(r,o,c,s._offset+s._length*.9,Na,s._length*.1,"s",""),Do(r,o,c,s._offset,Na,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,wy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,wy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Ty.updateFx(r)}};Ty.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";o7e(r._draggers,t)}});var AH=z((tje,TH)=>{"use strict";var wH=Tr();TH.exports=function(r){for(var t=wH.layoutArrayContainers,a=wH.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 kH=z(gd=>{"use strict";var l7e=Au(),Y7=up(),yd=ps(),s7e=O_().sorterAsc,V7=Tr();gd.containerArrayMatch=AH();var u7e=gd.isAddVal=function(r){return r==="add"||l7e(r)},MH=gd.isRemoveVal=function(r){return r===null||r==="remove"};gd.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=V7.getComponentMethod(o,"supplyLayoutDefaults"),s=V7.getComponentMethod(o,"draw"),u=V7.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===Y7||s===Y7,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&yd.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(MH(d))t.set(null);else if(Array.isArray(d))t.set(d);else return yd.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(s7e),y=t.get(),m=y||[],b=i(v,o).get(),T=[],w=-1,x=m.length,_,k,A,q,C,E,P,R;for(_=0;_<p.length;_++){if(A=p[_],q=a[A],C=Object.keys(q),E=q[""],P=u7e(E),A<0||A>m.length-(P?0:1)){yd.warn("index out of range",o,A);continue}if(E!==void 0)C.length>1&&yd.warn("Insertion & removal are incompatible with edits to the same index.",o,A),MH(E)?T.push(A):P?(E==="add"&&(E={}),m.splice(A,0,E),b&&b.splice(A,0,{})):yd.warn("Unrecognized full object edit value",o,A,E),w===-1&&(w=A);else for(k=0;k<C.length;k++)R=o+"["+A+"].",i(m[A],C[k],R).set(q[C[k]])}for(_=T.length-1;_>=0;_--)m.splice(T[_],1),b&&b.splice(T[_],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(l(c,v),u!==Y7){var N;if(w===-1)N=p;else{for(x=Math.max(m.length,x),N=[],_=0;_<p.length&&(A=p[_],!(A>=w));_++)N.push(A);for(_=w;_<x;_++)N.push(_)}for(_=0;_<N.length;_++)u(r,N[_])}else s(r);return!0}});var PH=z(Wi=>{"use strict";var CH=Ir(),DH=Tr(),Sn=ke(),bd=va(),EH=ba(),xd=EH.cleanId,f7e=EH.getFromTrace,j7=DH.traceIs,c7e=["x","y","z"];Wi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Sn.log("Clearing previous rejected promises from queue."),e._promises=[]};Wi.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=(bd.subplotsRegistry.cartesian||{}).attrRegex,n=(bd.subplotsRegistry.polar||{}).attrRegex,i=(bd.subplotsRegistry.ternary||{}).attrRegex,o=(bd.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=xd(u.anchor)),u.overlaying&&(u.overlaying=xd(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,Ay(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];Sn.isPlainObject(c)&&(gc(c,"xref"),gc(c,"yref"))}var v=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<v;r++){var d=e.shapes[r];Sn.isPlainObject(d)&&(gc(d,"xref",!0),gc(d,"yref",!0))}var p=Array.isArray(e.images)?e.images.length:0;for(r=0;r<p;r++){var y=e.images[r];Sn.isPlainObject(y)&&(gc(y,"xref"),gc(y,"yref"))}var m=e.legend;return m&&(m.x>3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Wi.cleanLayout(e.template.layout),e};function gc(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=xd(a,n,!0))}Wi.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"&&Wi.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=xd(t.xaxis,"x")),t.yaxis&&(t.yaxis=xd(t.yaxis,"y")),j7(t,"gl3d")&&t.scene&&(t.scene=bd.subplotsRegistry.gl3d.cleanId(t.scene)),!j7(t,"pie-like")&&!j7(t,"bar-like"))if(Array.isArray(t.textposition))for(a=0;a<t.textposition.length;a++)t.textposition[a]=qH(t.textposition[a]);else t.textposition&&(t.textposition=qH(t.textposition));var n=DH.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"&&Sn.isPlainObject(t.contours)){var l=["x","y","z"];for(a=0;a<l.length;a++){var s=t.contours[l[a]];Sn.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=SH(t.increasing),v=SH(t.decreasing);if(c!==!1&&v!==!1){var d=v7e(c,v,u,f);d&&(t.name=d)}else(c||v)&&!t.name&&(t.name=c||v)}Ay(t,"line")&&delete t.line,"marker"in t&&(Ay(t.marker,"line")&&delete t.marker.line,Ay(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function SH(e){if(!Sn.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function v7e(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 qH(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 Ay(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}Wi.swapXYData=function(e){var r;if(Sn.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);Sn.swapAttrs(e,["error_?.copy_ystyle"]),a&&Sn.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("+")}};Wi.coerceTraceIndices=function(e,r){if(CH(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++)Sn.isIndex(r[a],e.data.length)?t.push(r[a]):Sn.warn("trace index (",r[a],") is not a number or is out of bounds");return t}return r};Wi.manageArrayContainers=function(e,r,t){var a=e.obj,n=e.parts,i=n.length,o=n[i-1],l=CH(o);if(l&&r===null){var s=n.slice(0,i-1).join("."),u=Sn.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 h7e=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function LH(e){var r=e.search(h7e);if(r>0)return e.slice(0,r)}Wi.hasParent=function(e,r){for(var t=LH(r);t;){if(t in e)return!0;t=LH(t)}return!1};Wi.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=f7e(e,n,c7e[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&&Sn.nestedProperty(e.layout,u).set(null)}}};var W7=(e,r)=>{let t=(...a)=>a.every(n=>Sn.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)?W7(n,i):!1))return!1}return!0}else if([e,r].every(a=>Sn.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)?W7(n,i):!1))return!1}return!0}return!1};Wi.collectionsAreEqual=W7});var Q7=z($r=>{"use strict";var Sy=Er(),d7e=Ir(),p7e=r4(),nr=ke(),Dt=nr.nestedProperty,$7=Th(),On=mP(),Xi=Tr(),Ry=G0(),Lr=va(),qn=Gr(),m7e=y6(),y7e=Ni(),X7=Zr(),g7e=Sr(),b7e=G7().initInteractions,x7e=Il(),_7e=dl().clearOutline,IH=ds().dfltConfig,My=kH(),ma=PH(),pt=oy(),Us=wo(),w7e=qa().AX_NAME_PATTERN,Z7=0,RH=5;function T7e(e,r,t,a){var n;if(e=nr.getGraphDiv(e),$7.init(e),nr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=$7.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!nr.isPlotDiv(e)&&nr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return $r.addFrames(e,n)}OH(e,a),t||(t={}),Sy.select(e).classed("js-plotly-plot",!0),X7.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)),Lr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(j7e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),X7.initGradients(e),X7.initPatterns(e),s&&qn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Lr.doCalcdata(e);for(var v=0;v<e.calcdata.length;v++)e.calcdata[v][0].trace=e._fullData[v];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){nr.isHidden(e)||Lr.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):nr.clearResponsive(e);var d=nr.extendFlat({},u._size),p=0;function y(){for(var A=u._basePlotModules,q=0;q<A.length;q++)A[q].drawFramework&&A[q].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(R){return R.key}),u._glcanvas.enter().append("canvas").attr("class",function(R){return"gl-canvas gl-canvas-"+R.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var C=e._context.plotGlPixelRatio;if(u._glcanvas){u._glcanvas.attr("width",u.width*C).attr("height",u.height*C).style("width",u.width+"px").style("height",u.height+"px");var E=u._glcanvas.data()[0].regl;if(E&&(Math.floor(u.width*C)!==E._gl.drawingBufferWidth||Math.floor(u.height*C)!==E._gl.drawingBufferHeight)){var P="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(p)nr.error(P);else return nr.log(P+" Clearing graph and plotting again."),Lr.cleanPlot([],{},e._fullData,u),Lr.supplyDefaults(e),u=e._fullLayout,Lr.doCalcdata(e),p++,y()}}return u.modebar.orientation==="h"?u._modebardiv.style("height",null).style("width","100%"):u._modebardiv.style("width",null).style("height",u.height+"px"),Lr.previousPromises(e)}function m(){if(Lr.clearAutoMarginIds(e),pt.drawMarginPushers(e),qn.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&Lr.allowAutoMargin(e,"title.automargin"),u._has("pie"))for(var A=e._fullData,q=0;q<A.length;q++){var C=A[q];C.type==="pie"&&C.automargin&&Lr.allowAutoMargin(e,"pie."+C.uid+".automargin")}return Lr.doAutoMargin(e),Lr.previousPromises(e)}function b(){if(Lr.didMarginChange(d,u._size))return nr.syncOrAsync([m,pt.layoutStyles],e)}function T(){if(!c){w();return}return nr.syncOrAsync([Xi.getComponentMethod("shapes","calcAutorange"),Xi.getComponentMethod("annotations","calcAutorange"),w],e)}function w(){e._transitioning||(pt.doAutoRangeAndConstraints(e),s&&qn.saveRangeInitial(e),Xi.getComponentMethod("rangeslider","calcAutorange")(e))}function x(){return qn.draw(e,s?"":"redraw")}var _=[Lr.previousPromises,l,y,m,b];f&&_.push(T),_.push(pt.layoutStyles),f&&_.push(x,function(q){var C=q._fullLayout._insideTickLabelsUpdaterange;if(C)return q._fullLayout._insideTickLabelsUpdaterange=void 0,_d(q,C).then(function(){qn.saveRangeInitial(q,!0)})}),_.push(pt.drawData,pt.finalDraw,b7e,Lr.rehover,Lr.redrag,Lr.reselect,Lr.doAutoMargin,Lr.previousPromises);var k=nr.syncOrAsync(_,e);return(!k||!k.then)&&(k=Promise.resolve()),k.then(function(){return wd(e),e})}function wd(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function A7e(e){return nr.extendFlat(IH,e)}function BH(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){nr.error(t)}}function M7e(e,r){var t=g7e.combine(r,"white");BH(e,t)}function OH(e,r){if(!e._context){e._context=nr.extendDeep({},IH);var t=Sy.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]=M7e: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"&&!p7e&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=BH),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 k7e(e){if(e=nr.getGraphDiv(e),!nr.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,$r._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function S7e(e,r,t,a){return e=nr.getGraphDiv(e),Lr.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),Lr.purge(e),$r._doPlot(e,r,t,a)}function qy(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 Ly(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 HH(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]),Ly(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Ly(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function q7e(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 L7e(e,r,t,a){var n=nr.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!nr.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");Ly(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 C7e(e,r,t,a){var n=nr.isPlainObject(a),i=[],o,l,s,u,f;Array.isArray(t)||(t=[t]),t=qy(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=Dt(o,c),l=s.get(),u=r[c][v],!nr.isArrayOrTypedArray(u))throw new Error("attribute: "+c+" index: "+v+" must be an array");if(!nr.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,d7e(f)||(f=-1),i.push({prop:s,target:l,insert:u,maxp:Math.floor(f)})}return i}function UH(e,r,t,a,n){L7e(e,r,t,a);for(var i=C7e(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 GH(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function YH(e,r,t,a){e=nr.getGraphDiv(e);function n(s,u,f){var c,v;if(nr.isTypedArray(s))if(f<0){var d=new s.constructor(0),p=GH(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 y=u.length-f;c.set(u.subarray(y)),v.set(s),v.set(u.subarray(0,y),s.length)}else{var m=f-u.length,b=s.length-m;c.set(s.subarray(b)),c.set(u,m),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=UH(e,r,t,a,n),o=$r.redraw(e),l=[e,i.update,t,i.maxPoints];return On.add(e,$r.prependTraces,l,YH,arguments),o}function VH(e,r,t,a){e=nr.getGraphDiv(e);function n(s,u,f){var c,v;if(nr.isTypedArray(s))if(f<=0){var d=new s.constructor(0),p=GH(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 y=u.length-f;c.set(u.subarray(0,y)),v.set(u.subarray(y)),v.set(s,y)}else{var m=f-u.length;c.set(u),c.set(s.subarray(0,m),u.length),v.set(s.subarray(m))}else c=u.concat(s),v=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,v]}var i=UH(e,r,t,a,n),o=$r.redraw(e),l=[e,i.update,t,i.maxPoints];return On.add(e,$r.extendTraces,l,VH,arguments),o}function jH(e,r,t){e=nr.getGraphDiv(e);var a=[],n=$r.deleteTraces,i=jH,o=[e,a],l=[e,r],s,u;for(q7e(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return nr.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=$r.redraw(e),On.add(e,n,o,i,l),u;Array.isArray(t)||(t=[t]);try{HH(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return On.startSequence(e),On.add(e,n,o,i,l),u=$r.moveTraces(e,a,t),On.stopSequence(e),u}function WH(e,r){e=nr.getGraphDiv(e);var t=[],a=$r.addTraces,n=WH,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]),Ly(e,r,"indices"),r=qy(r,e.data.length-1),r.sort(nr.sorterDes),l=0;l<r.length;l+=1)s=e.data.splice(r[l],1)[0],t.push(s);var u=$r.redraw(e);return On.add(e,a,i,n,o),u}function J7(e,r,t){e=nr.getGraphDiv(e);var a=[],n=[],i=J7,o=J7,l=[e,t,r],s=[e,r,t],u;if(HH(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=qy(r,e.data.length-1),t=qy(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=$r.redraw(e);return On.add(e,i,l,o,s),f}function Cy(e,r,t,a){e=nr.getGraphDiv(e),ma.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(nr.isPlainObject(r))n=nr.extendFlat({},r),a===void 0&&(a=t);else return nr.warn("Restyle fail.",r,t,a),Promise.reject();Object.keys(n).length&&(e.changed=!0);var i=ma.coerceTraceIndices(e,a),o=XH(e,n,i),l=o.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&ma.clearAxisTypes(e,i,{});var s=[];l.fullReplot?s.push($r._doPlot):(s.push(Lr.previousPromises),Lr.supplyDefaults(e),l.markerSize&&(Lr.doCalcdata(e),Fy(s)),l.style&&s.push(pt.doTraceStyle),l.colorbars&&s.push(pt.doColorBars),s.push(wd)),s.push(Lr.rehover,Lr.redrag,Lr.reselect),On.add(e,Cy,[e,o.undoit,o.traces],Cy,[e,o.redoit,o.traces]);var u=nr.syncOrAsync(s,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e.emit("plotly_restyle",o.eventData),e})}function Yl(e){return e===void 0?null:e}function ky(e,r){return r?function(t,a,n){var i=Dt(t,a),o=i.set;return i.set=function(l){var s=(n||"")+a;Dy(s,i.get(),l,e),o(l)},i}:Dt}function Dy(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++)Dy(e+"["+l+"]",n[l],i[l],a);else if(nr.isPlainObject(r)||nr.isPlainObject(t)){var s=nr.isPlainObject(r)?r:{},u=nr.isPlainObject(t)?t:{},f=nr.extendFlat({},s,u);for(var c in f)Dy(e+"."+c,s[c],u[c],a)}else a[e]===void 0&&(a[e]=Yl(r))}function D7e(e,r,t){for(var a in t){var n=Dt(e,a);Dy(a,n.get(),t[a],r)}}function XH(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,o=a._guiEditing,l=ky(a._preGUI,o),s=nr.extendDeepAll({},r),u,f=Us.traceFlags(),c={},v={},d;function p(){return t.map(function(){})}function y(oe){var be=qn.id2name(oe);d.indexOf(be)===-1&&d.push(be)}function m(oe){return"LAYOUT"+oe+".autorange"}function b(oe){return"LAYOUT"+oe+".range"}function T(oe,be,Re){if(Array.isArray(oe)){oe.forEach(function(Le){T(Le,be,Re)});return}if(!(oe in r||ma.hasParent(r,oe))){var ye;if(oe.slice(0,6)==="LAYOUT")ye=l(e.layout,oe.replace("LAYOUT",""));else{var Ce=t[Re],Me=a._tracePreGUI[n[Ce].uid];ye=ky(Me,o)(i[Ce],oe)}oe in v||(v[oe]=p()),v[oe][Re]===void 0&&(v[oe][Re]=Yl(ye.get())),be!==void 0&&ye.set(be)}}function w(oe){return function(be){return n[be][oe]}}function x(oe){return function(be,Re){return be===!1?n[t[Re]][oe]:null}}for(var _ in r){if(ma.hasParent(r,_))throw new Error("cannot set "+_+" and a parent attribute simultaneously");var k=r[_],A,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[_]=[Yl(C.get())],C.set(Array.isArray(k)?k[0]:k),f.calc=!0;continue}for(v[_]=p(),u=0;u<t.length;u++){A=i[t[u]],q=n[t[u]];var N=a._tracePreGUI[q.uid];if(C=ky(N,o)(A,_),E=C.get(),P=Array.isArray(k)?k[u%k.length]:k,P!==void 0){var I=C.parts[C.parts.length-1],O=_.slice(0,_.length-I.length-1),U=O?O+".":"",Y=O?Dt(q,O).get():q;if(R=Ry.getTraceValObject(q,C.parts),R&&R.impliedEdits&&P!==null)for(var G in R.impliedEdits)T(nr.relativeAttr(_,G),R.impliedEdits[G],u);else if((I==="thicknessmode"||I==="lenmode")&&E!==P&&(P==="fraction"||P==="pixels")&&Y){var V=a._size,W=Y.orient,j=W==="top"||W==="bottom";if(I==="thicknessmode"){var J=j?V.h:V.w;T(U+"thickness",Y.thickness*(P==="fraction"?1/J:J),u)}else{var te=j?V.w:V.h;T(U+"len",Y.len*(P==="fraction"?1/te:te),u)}}else if(_==="type"&&(P==="pie"!=(E==="pie")||P==="funnelarea"!=(E==="funnelarea"))){var ae="x",se="y";(P==="bar"||E==="bar")&&A.orientation==="h"&&(ae="y",se="x"),nr.swapAttrs(A,["?"],"labels",ae),nr.swapAttrs(A,["d?","?0"],"label",ae),nr.swapAttrs(A,["?"],"values",se),E==="pie"||E==="funnelarea"?(Dt(A,"marker.color").set(Dt(A,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):Xi.traceIs(A,"cartesian")&&Dt(A,"marker.colors").set(Dt(A,"marker.color").get())}v[_][u]=Yl(E);var $=["swapxy","swapxyaxes","orientation","orientationaxes"];if($.indexOf(_)!==-1){if(_==="orientation"){C.set(P);var fe=A.x&&!A.y?"h":"v";if((C.get()||fe)===q.orientation)continue}else _==="orientationaxes"&&(A.orientation={v:"h",h:"v"}[q.orientation]);ma.swapXYData(A),f.calc=f.clearAxisTypes=!0}else Lr.dataArrayContainers.indexOf(C.parts[0])!==-1?(ma.manageArrayContainers(C,P,v),f.calc=!0):(R?R.arrayOk&&!Xi.traceIs(q,"regl")&&(nr.isArrayOrTypedArray(P)||nr.isArrayOrTypedArray(E))?f.calc=!0:Us.update(f,R):f.calc=!0,C.set(P))}}if(["swapxyaxes","orientationaxes"].indexOf(_)!==-1&&qn.swap(e,t),_==="orientationaxes"){var ie=Dt(e.layout,"hovermode"),ue=ie.get();ue==="x"?ie.set("y"):ue==="y"?ie.set("x"):ue==="x unified"?ie.set("y unified"):ue==="y unified"&&ie.set("x unified")}if(["orientation","type"].indexOf(_)!==-1){for(d=[],u=0;u<t.length;u++){var ce=i[t[u]];Xi.traceIs(ce,"cartesian")&&(y(ce.xaxis||"x"),y(ce.yaxis||"y"))}T(d.map(m),!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:nr.extendDeepNoArrays([],[s,t])}}function _d(e,r,t){e=nr.getGraphDiv(e),ma.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(nr.isPlainObject(r))a=nr.extendFlat({},r);else return nr.warn("Relayout fail.",r,t),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=KH(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var o=[Lr.previousPromises];i.layoutReplot?o.push(pt.layoutReplot):Object.keys(a).length&&(ZH(e,i,n)||Lr.supplyDefaults(e),i.legend&&o.push(pt.doLegend),i.layoutstyle&&o.push(pt.layoutStyles),i.axrange&&Fy(o,n.rangesAltered),i.ticks&&o.push(pt.doTicksRelayout),i.modebar&&o.push(pt.doModeBar),i.camera&&o.push(pt.doCamera),i.colorbars&&o.push(pt.doColorBars),o.push(wd)),o.push(Lr.rehover,Lr.redrag,Lr.reselect),On.add(e,_d,[e,n.undoit],_d,[e,n.redoit]);var l=nr.syncOrAsync(o,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function ZH(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 nr.coerce(i,o,y7e,d,p)},s={};for(var u in t.rangesAltered){var f=qn.id2name(u);if(i=e.layout[f],o=a[f],m7e(i,o,l,s),o._matchGroup){for(var c in o._matchGroup)if(c!==u){var v=a[qn.id2name(c)];v.autorange=o.autorange,v.range=o.range.slice(),v._input.range=o.range.slice()}}}return!0}function Fy(e,r){var t=r?function(a){var n=[],i=!0;for(var o in r){var l=qn.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 qn.draw(a,n,{skipTitle:i})}:function(a){return qn.draw(a,"redraw")};e.push(_7e,pt.doAutoRangeAndConstraints,t,pt.drawData,pt.finalDraw)}var $H=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,JH=/^[xyz]axis[0-9]*\.autorange$/,E7e=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function KH(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=ky(a._preGUI,n),o=Object.keys(r),l=qn.list(e),s=nr.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+".":"",y=o[c].replace("allaxes",p+l[v]._name);r[y]||(r[y]=r[o[c]])}delete r[o[c]]}var m=Us.layoutFlags(),b={},T={};function w(Le,De){if(Array.isArray(Le)){Le.forEach(function(qe){w(qe,De)});return}if(!(Le in r||ma.hasParent(r,Le))){var Ne=i(t,Le);Le in T||(T[Le]=Yl(Ne.get())),De!==void 0&&Ne.set(De)}}var x={},_;function k(Le){var De=qn.name2id(Le.split(".")[0]);return x[De]=1,De}for(var A in r){if(ma.hasParent(r,A))throw new Error("cannot set "+A+" and a parent attribute simultaneously");for(var q=i(t,A),C=r[A],E=q.parts.length,P=E-1;P>0&&typeof q.parts[P]!="string";)P--;var R=q.parts[P],N=q.parts[P-1]+"."+R,I=q.parts.slice(0,P).join("."),O=Dt(e.layout,I).get(),U=Dt(a,I).get(),Y=q.get();if(C!==void 0){b[A]=C,T[A]=R==="reverse"?C:Yl(Y);var G=Ry.getLayoutValObject(a,q.parts);if(G&&G.impliedEdits&&C!==null)for(var V in G.impliedEdits)w(nr.relativeAttr(A,V),G.impliedEdits[V]);if(["width","height"].indexOf(A)!==-1)if(C){w("autosize",null);var W=A==="height"?"width":"height";w(W,a[W])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")w("width",C?null:a.width),w("height",C?null:a.height);else if(N.match($H))k(N),Dt(a,I+"._inputRange").set(null);else if(N.match(JH)){k(N),Dt(a,I+"._inputRange").set(null);var j=Dt(a,I).get();j._inputDomain&&(j._input.domain=j._inputDomain.slice())}else N.match(E7e)&&Dt(a,I+"._inputDomain").set(null);if(R==="type"){_=O;var J=U.type==="linear"&&C==="log",te=U.type==="log"&&C==="linear";if(J||te){if(!_||!_.range)w(I+".autorange",!0);else if(U.autorange)J&&(_.range=_.range[1]>_.range[0]?[1,2]:[2,1]);else{var ae=_.range[0],se=_.range[1];J?(ae<=0&&se<=0&&w(I+".autorange",!0),ae<=0?ae=se/1e6:se<=0&&(se=ae/1e6),w(I+".range[0]",Math.log(ae)/Math.LN10),w(I+".range[1]",Math.log(se)/Math.LN10)):(w(I+".range[0]",Math.pow(10,ae)),w(I+".range[1]",Math.pow(10,se)))}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"],Xi.getComponentMethod("annotations","convertCoords")(e,U,C,w),Xi.getComponentMethod("images","convertCoords")(e,U,C,w)}else w(I+".autorange",!0),w(I+".range",null);Dt(a,I+"._inputRange").set(null)}else if(R.match(w7e)){var $=Dt(a,A).get(),fe=(C||{}).type;(!fe||fe==="-")&&(fe="linear"),Xi.getComponentMethod("annotations","convertCoords")(e,$,fe,w),Xi.getComponentMethod("images","convertCoords")(e,$,fe,w)}var ie=My.containerArrayMatch(A);if(ie){f=ie.array,c=ie.index;var ue=ie.property,ce=G||{editType:"calc"};c!==""&&ue===""&&(My.isAddVal(C)?T[A]=null:My.isRemoveVal(C)?T[A]=(Dt(t,f).get()||[])[c]:nr.warn("unrecognized full object value",r)),Us.update(m,ce),u[f]||(u[f]={});var oe=u[f][c];oe||(oe=u[f][c]={}),oe[ue]=C,delete r[A]}else R==="reverse"?(O.range?O.range.reverse():(w(I+".autorange",!0),O.range=[1,0]),U.autorange?m.calc=!0:m.plot=!0):(A==="dragmode"&&(C===!1&&Y!==!1||C!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(C==="lasso"||C==="select")&&!(Y==="lasso"||Y==="select")?m.plot=!0:G?Us.update(m,G):m.calc=!0,q.set(C))}}for(f in u){var be=My.applyContainerArrayChanges(e,i(t,f),u[f],m,i);be||(m.plot=!0)}for(var Re in x){_=qn.getFromId(e,Re);var ye=_&&_._constraintGroup;if(ye){m.calc=!0;for(var Ce in ye)x[Ce]||(qn.getFromId(e,Ce)._constraintShrinkable=!0)}}(QH(e)||r.height||r.width)&&(m.plot=!0);var Me=a.shapes;for(c=0;c<Me.length;c++)if(Me[c].showlegend){m.calc=!0;break}return(m.plot||m.calc)&&(m.layoutReplot=!0),{flags:m,rangesAltered:x,undoit:T,redoit:b,eventData:s}}function QH(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&Lr.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function Ey(e,r,t,a){e=nr.getGraphDiv(e),ma.clearPromiseQueue(e),nr.isPlainObject(r)||(r={}),nr.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=ma.coerceTraceIndices(e,a),i=XH(e,nr.extendFlat({},r),n),o=i.flags,l=KH(e,nr.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(pt.layoutReplot):o.fullReplot?u.push($r._doPlot):(u.push(Lr.previousPromises),ZH(e,s,l)||Lr.supplyDefaults(e),o.style&&u.push(pt.doTraceStyle),(o.colorbars||s.colorbars)&&u.push(pt.doColorBars),s.legend&&u.push(pt.doLegend),s.layoutstyle&&u.push(pt.layoutStyles),s.axrange&&Fy(u,l.rangesAltered),s.ticks&&u.push(pt.doTicksRelayout),s.modebar&&u.push(pt.doModeBar),s.camera&&u.push(pt.doCamera),u.push(wd)),u.push(Lr.rehover,Lr.redrag,Lr.reselect),On.add(e,Ey,[e,i.undoit,l.undoit,i.traces],Ey,[e,i.redoit,l.redoit,i.traces]);var f=nr.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 K7(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var P7e=[{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"}],R7e=[{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 FH(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 zH(e,r){var t=Dt(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=Dt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function F7e(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function z7e(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 NH(e,r){var t=nr.isPlainObject(e),a=Array.isArray(e);return t||a?(t&&nr.isPlainObject(r)||a&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function N7e(e,r,t,a){var n=a._preGUI,i,o,l,s,u,f,c,v,d,p,y=[],m={},b={};for(i in n){if(u=FH(i,P7e),u){if(d=u.head,p=u.tail,o=u.attr||d+".uirevision",l=Dt(a,o).get(),s=l&&zH(o,r),s&&s===l){if(f=n[i],f===null&&(f=void 0),c=Dt(r,i),v=c.get(),NH(v,f)){v===void 0&&p==="autorange"&&y.push(d),c.set(Yl(Dt(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 m)){var _=Dt(r,d).get();m[d]=_&&(_.autorange||_.autorange!==!1&&(!_.range||_.range.length!==2))}if(m[d]){c.set(Yl(Dt(a,i).get()));continue}}}}}else nr.warn("unrecognized GUI edit: "+i);delete n[i],u&&u.tail.slice(0,6)==="range["&&(b[u.head]=1)}for(var k=0;k<y.length;k++){var A=y[k];if(b[A]){var q=Dt(r,A).get();q&&delete q.autorange}}var C=a._tracePreGUI;for(var E in C){var P=C[E],R=null,N;for(i in P){if(!R){var I=F7e(E,t);if(I<0){delete C[E];break}N=t[I];var O=z7e(E,e,N.index);if(O<0){delete C[E];break}R=e[O]}if(u=FH(i,R7e),u){if(u.attr?(l=Dt(a,u.attr).get(),s=l&&zH(u.attr,r)):(l=N.uirevision,s=R.uirevision,s===void 0&&(s=r.uirevision)),s&&s===l&&(f=P[i],f===null&&(f=void 0),c=Dt(R,i),v=c.get(),NH(v,f))){c.set(Yl(Dt(N,i).get()));continue}}else nr.warn("unrecognized GUI edit: "+i+" in trace uid "+E);delete P[i]}}}function I7e(e,r,t,a){var n,i;function o(){return $r.addFrames(e,n)}e=nr.getGraphDiv(e),ma.clearPromiseQueue(e);var l=e._fullData,s=e._fullLayout;if(!nr.isPlotDiv(e)||!l||!s)i=$r.newPlot(e,r,t,a);else{if(nr.isPlainObject(r)){var u=r;r=u.data,t=u.layout,a=u.config,n=u.frames}var f=!1;if(a){let N=nr.extendDeepAll({},e._context);e._context=void 0,OH(e,a),f=!ma.collectionsAreEqual(N,e._context)}if(f){let N=e._ev.eventNames().map(I=>[I,e._ev.listeners(I)]);i=$r.newPlot(e,r,t,a).then(()=>{for(let[I,O]of N)O.forEach(U=>e.on(I,U));return $r.react(e,r,t,a)})}else{e.data=r||[],ma.cleanData(e.data),e.layout=t||{},ma.cleanLayout(e.layout),N7e(e.data,e.layout,l,s),Lr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,y=O7e(e,s,v,d,p),m=y.newDataRevision,b=B7e(e,l,c,d,p,m);if(QH(e)&&(y.layoutReplot=!0),b.calc||y.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 Lr.supplyDefaultsUpdateCalc(e.calcdata,c);var A=[];if(n&&(e._transitionData={},Lr.createTransitionData(e),A.push(o)),v.transition&&(b.anim||y.anim))y.ticks&&A.push(pt.doTicksRelayout),Lr.doCalcdata(e),pt.doAutoRangeAndConstraints(e),A.push(function(){return Lr.transitionFromReact(e,b,y,s)});else if(b.fullReplot||y.layoutReplot)e._fullLayout._skipDefaults=!0,A.push($r._doPlot);else{for(var q in y.arrays){var C=y.arrays[q];if(C.length){var E=Xi.getComponentMethod(q,"drawOne");if(E!==nr.noop)for(var P=0;P<C.length;P++)E(e,C[P]);else{var R=Xi.getComponentMethod(q,"draw");if(R===nr.noop)throw new Error("cannot draw components: "+q);R(e)}}}A.push(Lr.previousPromises),b.style&&A.push(pt.doTraceStyle),(b.colorbars||y.colorbars)&&A.push(pt.doColorBars),y.legend&&A.push(pt.doLegend),y.layoutstyle&&A.push(pt.layoutStyles),y.axrange&&Fy(A),y.ticks&&A.push(pt.doTicksRelayout),y.modebar&&A.push(pt.doModeBar),y.camera&&A.push(pt.doCamera),A.push(wd)}A.push(Lr.rehover,Lr.redrag,Lr.reselect),i=nr.syncOrAsync(A,e),(!i||!i.then)&&(i=Promise.resolve(e))}}return i.then(()=>(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function B7e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=Us.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=Ry.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,Py(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 O7e(e,r,t,a,n){var i=Us.layoutFlags();i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0;function o(v){return Ry.getLayoutValObject(t,v)}for(var l in t)if(!(!l.startsWith("xaxis")&&!l.startsWith("yaxis"))&&r[l]){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))}var c={getValObject:o,flags:i,immutable:a,transition:n,gd:e};return Py(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 Py(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){nr.pushUnique(s.arrays[f],c);return}Us.update(s,n),I!=="none"&&s.nChanges++,a.transition&&n.anim&&s.nChangesAnim++,($H.test(o)||JH.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],y=r[i],m=t.concat(i);if(o=m.join("."),!(i.charAt(0)==="_"||typeof p=="function"||p===y)){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(m),!!n&&!(n._compareAsJSON&&JSON.stringify(p)===JSON.stringify(y)))){var T=n.valType,w,x=d(n),_=Array.isArray(p),k=Array.isArray(y);if(_&&k){var A="_input_"+i,q=e[A],C=r[A];if(Array.isArray(q)&&q===C)continue}if(y===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,y.length),N=Math.max(p.length,y.length);if(R!==N)if(n.editType==="arraydraw")P=!0;else{v();continue}for(w=0;w<R;w++)Py(p[w],y[w],m.concat(w),nr.extendFlat({inArray:i,arrayIndex:w},a));if(P)for(w=R;w<N;w++)E.push(w)}else!T&&nr.isPlainObject(p)?Py(p,y,m,a):x?_&&k?(u&&(s.calc=!0),(u||a.newDataRevision)&&v()):_!==k?s.calc=!0:v():_&&k?(p.length!==y.length||String(p)!==String(y))&&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 H7e(e,r,t){if(e=nr.getGraphDiv(e),!nr.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=Lr.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 N=0;N<R.length;N++){var I;R[N].type==="byname"?I=Lr.computeFrame(e,R[N].name):I=R[N].data;var O=l(N),U=o(N);U.duration=Math.min(U.duration,O.duration);var Y={frame:I,name:R[N].name,frameOpts:O,transitionOpts:U};N===R.length-1&&(Y.onComplete=s(u,2),Y.onInterrupt=f),a._frameQueue.push(Y)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||y()}}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 N=R.name?R.name.toString():null;e._fullLayout._currentFrame=N,a._lastFrameAt=Date.now(),a._timeToNext=R.frameOpts.duration,Lr.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:N,frame:R.frame,animation:{frame:R.frameOpts,transition:R.transitionOpts}})}else d()}function y(){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 m=0;function b(R){return Array.isArray(n)?m>=n.length?R.transitionOpts=n[m]:R.transitionOpts=n[0]:R.transitionOpts=n,m++,R}var T,w,x=[],_=r==null,k=Array.isArray(r),A=!_&&!k&&nr.isPlainObject(r);if(A)x.push({type:"object",data:b(nr.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})})):nr.isPlainObject(q)&&x.push({type:"object",data:b(nr.extendFlat({},q))})}for(T=0;T<x.length;T++)if(w=x[T],w.type==="byname"&&!a._frameHash[w.data.name]){nr.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 U7e(e,r,t){if(e=nr.getGraphDiv(e),r==null)return Promise.resolve();if(!nr.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(nr.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&Z7<RH&&(Z7++,nr.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.'),Z7===RH&&nr.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:Lr.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:u+a})}f.sort(function(A,q){return A.index>q.index?-1:A.index<q.index?1:0});var m=[],b=[],T=l.length;for(a=f.length-1;a>=0;a--){if(n=f[a].frame,typeof n.name=="number"&&nr.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++);m.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)),m.push({type:"insert",index:o,value:n}),b.unshift({type:"delete",index:o}),T++}var w=Lr.modifyFrames,x=Lr.modifyFrames,_=[e,b],k=[e,m];return On&&On.add(e,w,_,x,k),Lr.modifyFrames(e,m)}function G7e(e,r){if(e=nr.getGraphDiv(e),!nr.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=Lr.modifyFrames,s=Lr.modifyFrames,u=[e,o],f=[e,i];return On&&On.add(e,l,u,s,f),Lr.modifyFrames(e,i)}function Y7e(e){e=nr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Lr.cleanPlot([],{},t,r),Lr.purge(e),$7.purge(e),r._container&&r._container.remove(),delete e._context,e}function V7e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!nr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=nr.inverseTransformMatrix(nr.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 j7e(e){var r=Sy.select(e),t=e._fullLayout;if(t._calcInverseTransform=V7e,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={};Sy.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=nr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(x7e.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")}$r.animate=H7e;$r.addFrames=U7e;$r.deleteFrames=G7e;$r.addTraces=jH;$r.deleteTraces=WH;$r.extendTraces=YH;$r.moveTraces=J7;$r.prependTraces=VH;$r.newPlot=S7e;$r._doPlot=T7e;$r.purge=Y7e;$r.react=I7e;$r.redraw=k7e;$r.relayout=_d;$r.restyle=Cy;$r.setPlotConfig=A7e;$r.update=Ey;$r._guiRelayout=K7(_d);$r._guiRestyle=K7(Cy);$r._guiUpdate=K7(Ey);$r._storeDirectGUIEdit=D7e});var Vl=z(Zi=>{"use strict";var W7e=Tr();Zi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};Zi.getRedrawFunc=function(e){return function(){W7e.getComponentMethod("colorbar","draw")(e)}};Zi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Zi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var eU=window.URL||window.webkitURL;Zi.createObjectURL=function(e){return eU.createObjectURL(e)};Zi.revokeObjectURL=function(e){return eU.revokeObjectURL(e)};Zi.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=X7e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Zi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};Zi.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};Zi.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 X7e(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}Zi.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var zy=z((uje,rU)=>{"use strict";var rw=Er(),lje=ke(),Z7e=Zr(),$7e=Sr(),sje=Il(),ew=/"/g,hf="TOBESTRIPPED",J7e=new RegExp(`("${hf})|(${hf}")|(&quot;${hf})|(${hf}&quot;)`,"g"),K7e=["&amp;","&#38;","&#x26;","&quot;","&#34;","&#x22;","&apos;","&#39;","&#x27;"],Q7e=["&lt;","&#60;","&#x3c;"],ewe=["&gt;","&#62;","&#x3e;"];function rwe(e){let r=rw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return K7e.includes(n)?a:Q7e.includes(n)?"&#60;":ewe.includes(n)?"&#62;":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function twe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")}rU.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(Z7e.setRect,0,0,l,s).call($7e.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 m=rw.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){m.remove();return}else m.style({visibility:null,display:null});var b=this.style.fontFamily;b&&b.indexOf('"')!==-1&&m.style("font-family",b.replace(ew,hf));var T=this.style.fontWeight;T&&(T==="normal"||T==="400")&&m.style("font-weight",void 0);var w=this.style.fontStyle;w&&w==="normal"&&m.style("font-style",void 0);var x=this.style.fontVariant;x&&x==="normal"&&m.style("font-variant",void 0)}),i.selectAll(".gradient_filled,.pattern_filled").each(function(){var m=rw.select(this),b=this.style.fill;b&&b.indexOf("url(")!==-1&&m.style("fill",b.replace(ew,hf));var T=this.style.stroke;T&&T.indexOf("url(")!==-1&&m.style("stroke",T.replace(ew,hf))}),(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 y=new window.XMLSerializer().serializeToString(i.node());return y=rwe(y),y=twe(y),y=y.replace(J7e,"'"),y}});var Ny=z((fje,tU)=>{"use strict";var awe=ke(),nwe=Bu().EventEmitter,Td=Vl();function iwe(e){var r=e.emitter||new nwe,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}),y=new i,m,b;l==="svg"||awe.isSafari()?b=Td.encodeSVG(o):(m=Td.createBlob(o,"svg"),b=Td.createObjectURL(m)),s.width=v,s.height=d,y.onload=function(){var T;switch(m=null,Td.revokeObjectURL(b),l!=="svg"&&p.drawImage(y,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)},y.onerror=function(T){if(m=null,Td.revokeObjectURL(b),n(T),!e.promise)return r.emit("error",T)},y.src=b});return e.promise?t:r}tU.exports=iwe});var aw=z((cje,iU)=>{"use strict";var aU=Ir(),nU=Q7(),owe=va(),pl=ke(),Ad=Vl(),lwe=zy(),swe=Ny(),uwe=jv().version,tw={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function fwe(e,r){r=r||{};var t,a,n,i;pl.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=pl.getGraphDiv(e),t=pl.extendDeep([],e.data),a=pl.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||pl.validate(r[k],tw[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 "+pl.join2(tw.format.values,", "," or ")+".");var l={};function s(k,A){return pl.coerce(r,l,tw,k,A)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=pl.extendFlat({},a);f?m.width=f:r.width===null&&aU(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&aU(i.height)&&(m.height=i.height);var b=pl.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=Ad.getRedrawFunc(y);function w(){return new Promise(function(k){setTimeout(k,Ad.getDelay(y._fullLayout))})}function x(){return new Promise(function(k,A){var q=lwe(y,u,v),C=y._fullLayout.width,E=y._fullLayout.height;function P(){nU.purge(y),document.body.removeChild(y)}if(u==="full-json"){var R=owe.graphJson(y,!1,"object",!0,!0);return R.version=uwe,R=JSON.stringify(R),P(),k(p?R:Ad.encodeJSON(R))}if(P(),u==="svg")return k(p?q:Ad.encodeSVG(q));var N=document.createElement("canvas");N.id=pl.randstr(),swe({format:u,width:C,height:E,scale:v,canvas:N,svg:q,promise:!0}).then(k).catch(A)})}function _(k){return p?k.replace(Ad.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,A){nU.newPlot(y,t,m,b).then(T).then(w).then(x).then(function(q){k(_(q))}).catch(function(q){A(q)})})}iU.exports=fwe});var sU=z((vje,lU)=>{"use strict";var $i=ke(),cwe=va(),vwe=G0(),hwe=ds().dfltConfig,Eo=$i.isPlainObject,pf=Array.isArray,nw=$i.isArrayOrTypedArray;lU.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=vwe.get(),n=[],i={_context:$i.extendFlat({},hwe)},o,l;pf(r)?(i.data=$i.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Ia("array","data"))),Eo(t)?(i.layout=$i.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Ia("object","layout"))),cwe.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;f<u;f++){var c=o[f],v=["data",f];if(!Eo(c)){n.push(Ia("object",v));continue}var d=s[f],p=d.type,y=a.traces[p].attributes;y.type={valType:"enumerated",values:[p]},d.visible===!1&&c.visible!==!1&&n.push(Ia("invisible",v)),Iy(c,d,y,n,v)}var m=i._fullLayout,b=dwe(a,s);return Iy(l,m,b,n,"layout"),n.length===0?void 0:n};function Iy(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=ywe(t,s),d=(v||{}).valType,p=d==="info_array",y=d==="colorscale",m=(v||{}).items;if(!mwe(t,s))a.push(Ia("schema",n,u));else if(Eo(f)&&Eo(c)&&d!=="any")Iy(f,c,v,a,n,u);else if(p&&pf(f)){f.length>c.length&&a.push(Ia("unused",n,u.concat(c.length)));var b=c.length,T=Array.isArray(m);T&&(b=Math.min(b,m.length));var w,x,_,k,A;if(v.dimensions===2)for(x=0;x<b;x++)if(pf(f[x])){f[x].length>c[x].length&&a.push(Ia("unused",n,u.concat(x,c[x].length)));var q=c[x].length;for(w=0;w<(T?Math.min(q,m[x].length):q);w++)_=T?m[x][w]:m,k=f[x][w],A=c[x][w],$i.validate(k,_)?A!==k&&A!==+k&&a.push(Ia("dynamic",n,u.concat(x,w),k,A)):a.push(Ia("value",n,u.concat(x,w),k))}else a.push(Ia("array",n,u.concat(x),f[x]));else for(x=0;x<b;x++)_=T?m[x]:m,k=f[x],A=c[x],$i.validate(k,_)?A!==k&&A!==+k&&a.push(Ia("dynamic",n,u.concat(x),k,A)):a.push(Ia("value",n,u.concat(x),k))}else if(v.items&&!p&&pf(f)){var C=m[Object.keys(m)[0]],E=[],P,R;for(P=0;P<c.length;P++){var N=c[P]._index||P;if(R=u.slice(),R.push(N),Eo(f[N])&&Eo(c[P])){E.push(N);var I=f[N],O=c[P];Eo(I)&&I.visible!==!1&&O.visible===!1?a.push(Ia("invisible",n,R)):Iy(I,O,C,a,n,R)}}for(P=0;P<f.length;P++)R=u.slice(),R.push(P),Eo(f[P])?E.indexOf(P)===-1&&a.push(Ia("unused",n,R)):a.push(Ia("object",n,R,f[P]))}else!Eo(f)&&Eo(c)?a.push(Ia("object",n,u,f)):!nw(f)&&nw(c)&&!p&&!y?a.push(Ia("array",n,u,f)):s in r?$i.validate(f,v)?v.valType==="enumerated"&&(v.coerceNumber&&f!==+c||!nw(f)&&f!==c||String(f)!==String(c))&&a.push(Ia("dynamic",n,u,f,c)):a.push(Ia("value",n,u,f)):a.push(Ia("unused",n,u,f))}return a}function dwe(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?$i.extendFlat(t[i.attributes.subplot.dflt],o):$i.extendFlat(t,o))}return t}var pwe={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=df(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=df(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return df(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var a=Eo(t)?"container":"key";return df(e)+a+" "+r+" did not get coerced"},dynamic:function(e,r,t,a){return[df(e)+"key",r,"(set to '"+t+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?df(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[df(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function df(e){return pf(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Ia(e,r,t,a,n){t=t||"";var i,o;pf(r)?(i=r[0],o=r[1]):(i=r,o=null);var l=bwe(t),s=pwe[e](r,l,a,n);return $i.log(s),{code:e,container:i,trace:o,path:t,astr:l,msg:s}}function mwe(e,r){var t=oU(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function ywe(e,r){if(r in e)return e[r];var t=oU(r);return e[t.keyMinusId]}var gwe=$i.counterRegex("([a-z]+)");function oU(e){var r=e.match(gwe);return{keyMinusId:r&&r[1],id:r&&r[2]}}function bwe(e){if(!pf(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 fU=z((hje,uU)=>{"use strict";var xwe=ke(),By=Vl();function _we(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=By.createBlob(e,t),u=By.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),By.revokeObjectURL(u),s=null,o(r);if(xwe.isSafari()){var f=t==="svg"?",":";base64,";return By.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}uU.exports=_we});var iw=z((dje,dU)=>{"use strict";var Oy=ke(),cU=Ca(),wwe=aw(),Twe=fU(),vU=Vl(),hU=40;function Awe(e,r){var t;return Oy.isPlainObject(e)||(t=Oy.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=wwe(e,r),o=r.filename||e.fn;if(!o){let s=vU.getPlotTitle(e);if(s&&!cU.matchTex(s))o=Oy.slugify(s,hU);else{let u=vU.getPlotSubtitle(e);u&&!cU.matchTex(u)&&(o=Oy.slugify(u,hU))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),Twe(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}dU.exports=Awe});var bU=z(ow=>{"use strict";var ei=ke(),ri=ei.isPlainObject,pU=G0(),mU=va(),Mwe=zn(),yU=St(),gU=ds().dfltConfig;ow.makeTemplate=function(e){e=ei.isPlainObject(e)?e:ei.getGraphDiv(e),e=ei.extendDeep({_context:gU},{data:e.data,layout:e.layout}),mU.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={};Md(d,p,Swe.bind(null,d));var y=ei.coerce(d,{},Mwe,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),Md(t,a.layout,kwe.bind(null,t)),delete a.layout.template;var n=t.template;if(ri(n)){var i=n.layout,o,l,s,u,f,c;ri(i)&&Hy(i,a.layout);var v=n.data;if(ri(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++)Hy(s[o%u],f[o]);for(o=c;o<u;o++)f.push(ei.extendDeep({},s[o]))}for(l in v)l in a.data||(a.data[l]=ei.extendDeep([],v[l]))}}return a};function Hy(e,r){e=ei.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,v){if(ri(c)&&ri(f))Hy(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],y=d.newItem(p)._template;y&&Hy(y,p)}var m=d.defaultItems();for(n=0;n<m.length;n++)c.push(m[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,Uy(o)===o)for(var s in r){var u=Uy(s);s!==u&&u===o&&!(s in e)&&i(l,r[s],o)}}}function Uy(e){return e.replace(/[0-9]+$/,"")}function Md(e,r,t,a,n){var i=n&&t(n);for(var o in e){var l=e[o],s=Ji(e,o,a),u=Ji(e,o,n),f=t(u);if(!f){var c=Uy(o);c!==o&&(u=Ji(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&&ri(l))Md(l,r,t,s,u);else if(f._isLinkedToArray&&Array.isArray(l))for(var v=!1,d=0,p={},y=0;y<l.length;y++){var m=l[y];if(ri(m)){var b=m.name;if(b)p[b]||(Md(m,r,t,Ji(l,d,s),Ji(l,d,u)),d++,p[b]=1);else if(!v){var T=yU.arrayDefaultKey(o),w=Ji(e,T,a),x=Ji(l,d,s);Md(m,r,t,x,Ji(l,d,u));var _=ei.nestedProperty(r,x),k=ei.nestedProperty(r,w);k.set(_.get()),_.set(null),v=!0}}}else{var A=ei.nestedProperty(r,s);A.set(l)}}}function kwe(e,r){return pU.getLayoutValObject(e,ei.nestedProperty({},r).parts)}function Swe(e,r){return pU.getTraceValObject(e,ei.nestedProperty({},r).parts)}function Ji(e,r,t){var a;return t?Array.isArray(e)?a=t+"["+r+"]":a=t+"."+r:a=r,a}ow.validateTemplate=function(e,r){var t=ei.extendDeep({},{_context:gU,data:e.data,layout:e.layout}),a=t.layout||{};ri(r)||(r=a.template||{});var n=r.layout,i=r.data,o=[];t.layout=a,t.layout.template=r,mU.supplyDefaults(t);var l=t._fullLayout,s=t._fullData,u={};function f(w,x){for(var _ in w)if(_.charAt(0)!=="_"&&ri(w[_])){var k=Uy(_),A=[],q;for(q=0;q<x.length;q++)A.push(Ji(w,_,x[q])),k!==_&&A.push(Ji(w,k,x[q]));for(q=0;q<A.length;q++)u[A[q]]=1;f(w[_],A)}}function c(w,x){for(var _ in w)if(_.indexOf("defaults")===-1&&ri(w[_])){var k=Ji(w,_,x);u[k]?c(w[_],k):o.push({code:"unused",path:k})}}if(ri(n)?(f(l,["layout"]),c(n,"layout")):o.push({code:"layout"}),!ri(i))o.push({code:"data"});else{for(var v={},d,p=0;p<s.length;p++){var y=s[p];d=y.type,v[d]=(v[d]||0)+1,y._template||o.push({code:"missing",index:y.index,traceType:d})}for(d in i){var m=i[d].length,b=v[d]||0;m>b?o.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function T(w,x){for(var _ in w)if(_.charAt(0)!=="_"){var k=w[_],A=Ji(w,_,x);ri(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:A,templateitemname:k.templateitemname}),T(k,A)):Array.isArray(k)&&qwe(k)&&T(k,A)}}if(T({data:s,layout:l},""),o.length)return o.map(Lwe)};function qwe(e){for(var r=0;r<e.length;r++)if(ri(e[r]))return!0}function Lwe(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 _U=z(Ot=>{"use strict";var Ea=Q7();Ot._doPlot=Ea._doPlot;Ot.newPlot=Ea.newPlot;Ot.restyle=Ea.restyle;Ot.relayout=Ea.relayout;Ot.redraw=Ea.redraw;Ot.update=Ea.update;Ot._guiRestyle=Ea._guiRestyle;Ot._guiRelayout=Ea._guiRelayout;Ot._guiUpdate=Ea._guiUpdate;Ot._storeDirectGUIEdit=Ea._storeDirectGUIEdit;Ot.react=Ea.react;Ot.extendTraces=Ea.extendTraces;Ot.prependTraces=Ea.prependTraces;Ot.addTraces=Ea.addTraces;Ot.deleteTraces=Ea.deleteTraces;Ot.moveTraces=Ea.moveTraces;Ot.purge=Ea.purge;Ot.addFrames=Ea.addFrames;Ot.deleteFrames=Ea.deleteFrames;Ot.animate=Ea.animate;Ot.setPlotConfig=Ea.setPlotConfig;var Cwe=ph().getGraphDiv,Dwe=Qm().eraseActiveShape;Ot.deleteActiveShape=function(e){return Dwe(Cwe(e))};Ot.toImage=aw();Ot.validate=sU();Ot.downloadImage=iw();var xU=bU();Ot.makeTemplate=xU.makeTemplate;Ot.validateTemplate=xU.validateTemplate});var sw=z((yje,wU)=>{"use strict";var lw=ke(),Ewe=Tr();wU.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=Ewe.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=lw.minRowLength(i);o?l=Math.min(u,lw.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=lw.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var bc=z((gje,MU)=>{"use strict";var TU=ke().dateTick0,Pwe=Gt(),Rwe=Pwe.ONEWEEK;function AU(e,r){return e%Rwe===0?TU(r,1):TU(r,0)}MU.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",AU(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",AU(l,t.ycalendar)),n("yperiodalignment"))}}});var qU=z((bje,SU)=>{"use strict";var kU=["orientation","groupnorm","stackgaps"];SU.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<kU.length;v++){var d=kU[v],p=d+"Found";if(!u[p]){var y=r[d]!==void 0,m=d==="orientation";if((y||f)&&(u[d]=n(d,c[d]),m&&(u.fillDflt=u[d]==="h"?"tonextx":"tonexty"),y&&(u[p]=!0,!f&&(delete u.traces[0][d],m))))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((xje,EU)=>{"use strict";var LU=Sr(),CU=hi().hasColorscale,DU=Bl(),Fwe=Jn();EU.exports=function(r,t,a,n,i,o={}){var l=Fwe.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),CU(r,"marker")&&DU(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=LU.background:u=LU.defaultLine,i("marker.line.color",u),CU(r,"marker.line")&&DU(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 fw=z((_je,PU)=>{"use strict";var zwe=ke().isArrayOrTypedArray,Nwe=hi().hasColorscale,Iwe=Bl();PU.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),Nwe(r,"line"))Iwe(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(zwe(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var cw=z((wje,RU)=>{"use strict";RU.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var vw=z((Tje,FU)=>{"use strict";var Bwe=ke();FU.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Bwe.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var hw=z((Aje,NU)=>{"use strict";var Gy=Sr(),zU=ke().isArrayOrTypedArray;function Owe(e){for(var r=Gy.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=Gy.interpolate(e[t-1][1],e[t][1],.5);r=Gy.interpolate(r,a,e[t-1][0]/e[t][0])}return r}NU.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&&!zU(l)?o=l:s&&!zU(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=Owe(c))}}n("fillcolor",Gy.addOpacity((t.line||{}).color||o||u||a,.5))}});var HU=z((Mje,OU)=>{"use strict";var IU=ke(),Hwe=Tr(),Uwe=Vi(),Gwe=hd(),xc=Jn(),Ywe=sw(),Vwe=bc(),jwe=qU(),Wwe=uw(),Xwe=fw(),BU=cw(),Zwe=vw(),$we=hw(),Jwe=ke().coercePattern;OU.exports=function(r,t,a,n){function i(d,p){return IU.coerce(r,t,Uwe,d,p)}var o=Ywe(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Vwe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=jwe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o<Gwe.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),xc.hasMarkers(t)&&Wwe(r,t,a,n,i,{gradient:!0}),xc.hasLines(t)&&(Xwe(r,t,a,n,i,{backoff:!0}),BU(r,t,i),i("connectgaps"),i("line.simplify")),xc.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),Zwe(r,t,n,i));var u=[];(xc.hasMarkers(t)||xc.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&($we(r,t,a,i,{moduleHasFillgradient:!0}),xc.hasLines(t)||BU(r,t,i),Jwe(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=Hwe.getComponentMethod("errorbars","supplyDefaults");v(r,t,f||c||a,{axis:"y"}),v(r,t,f||c||a,{axis:"x",inherit:"y"}),IU.coerceSelectionMarkerOpacity(t,i)}}});var kd=z((kje,UU)=>{"use strict";var Kwe=vf().getAxisGroup;UU.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Kwe(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,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var YU=z((Sje,GU)=>{"use strict";var Qwe=ke(),e8e=kd(),r8e=Vi();GU.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return Qwe.coerce(n._input,n,r8e,v)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,e8e(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 jU=z((qje,VU)=>{"use strict";var t8e=ke(),a8e=Rp();VU.exports=function(e,r){function t(n,i){return t8e.coerce(e,r,a8e,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var _c=z((Lje,XU)=>{"use strict";var n8e=Ir(),WU=ke(),i8e=WU.dateTime2ms,Yy=WU.incrementMonth,o8e=Gt(),l8e=o8e.ONEAVGMONTH;XU.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(n8e(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=i8e(v,u)||0,p=[],y=[],m=[],b=n.length,T=0;T<b;T++){var w=n[T],x,_,k;if(l){for(x=Math.round((w-d)/(l*l8e)),k=Yy(d,l*x,u);k>w;)k=Yy(k,-l,u);for(;k<=w;)k=Yy(k,l,u);_=Yy(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,y[T]=_,m[T]=k}return{vals:p,starts:y,ends:m}}});var mw=z((Cje,$U)=>{"use strict";var dw=hi().hasColorscale,pw=W0(),ZU=Jn();$U.exports=function(r,t){ZU.hasLines(t)&&dw(t,"line")&&pw(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),ZU.hasMarkers(t)&&(dw(t,"marker")&&pw(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),dw(t,"marker.line")&&pw(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Vy=z((Dje,JU)=>{"use strict";var Jt=ke();JU.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Jt.mergeArray(t.text,r,"tx"),Jt.mergeArray(t.texttemplate,r,"txt"),Jt.mergeArray(t.hovertext,r,"htx"),Jt.mergeArray(t.customdata,r,"data"),Jt.mergeArray(t.textposition,r,"tp"),t.textfont&&(Jt.mergeArrayCastPositive(t.textfont.size,r,"ts"),Jt.mergeArray(t.textfont.color,r,"tc"),Jt.mergeArray(t.textfont.family,r,"tf"),Jt.mergeArray(t.textfont.weight,r,"tw"),Jt.mergeArray(t.textfont.style,r,"ty"),Jt.mergeArray(t.textfont.variant,r,"tv"),Jt.mergeArray(t.textfont.textcase,r,"tC"),Jt.mergeArray(t.textfont.lineposition,r,"tE"),Jt.mergeArray(t.textfont.shadow,r,"tS"));var n=t.marker;if(n){Jt.mergeArrayCastPositive(n.size,r,"ms"),Jt.mergeArrayCastPositive(n.opacity,r,"mo"),Jt.mergeArray(n.symbol,r,"mx"),Jt.mergeArray(n.angle,r,"ma"),Jt.mergeArray(n.standoff,r,"mf"),Jt.mergeArray(n.color,r,"mc");var i=n.line;n.line&&(Jt.mergeArray(i.color,r,"mlc"),Jt.mergeArrayCastPositive(i.width,r,"mlw"),Jt.mergeArray(i.dash,r,"mld"));var o=n.gradient;o&&o.type!=="none"&&(Jt.mergeArray(o.type,r,"mgt"),Jt.mergeArray(o.color,r,"mgc"))}}});var jy=z((Eje,QU)=>{"use strict";var KU=ke();QU.exports=function(r,t){KU.isArrayOrTypedArray(t.selectedpoints)&&KU.tagSelected(r,t)}});var Wy=z((Pje,oG)=>{"use strict";var eG=Ir(),gw=ke(),Sd=Gr(),rG=_c(),yw=Gt().BADNUM,bw=Jn(),s8e=mw(),u8e=Vy(),f8e=jy();function c8e(e,r){var t=e._fullLayout,a=r._xA=Sd.getFromId(e,r.xaxis||"x","x"),n=r._yA=Sd.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=rG(r,a,"x",i),s=rG(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=xw(r,t,a,n),y=!1,m,b,T,w,x,_;nG(t,r);var k="x",A="y",q;if(p)gw.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(A="s",q="x"):(k="s",q="y"),x=p.stackgaps==="interpolate";else{var C=aG(r,c);tG(e,r,a,n,u,f,C)}var E=!!r.xperiodalignment,P=!!r.yperiodalignment;for(b=0;b<c;b++){var R=v[b]={},N=eG(u[b]),I=eG(f[b]);N&&I?(R[k]=u[b],R[A]=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&&(m?N:I)?(R[q]=m?u[b]:f[b],R.gap=!0,x?(R.s=yw,y=!0):R.s=0):R[k]=R[A]=yw,d&&(R.id=String(d[b]))}if(u8e(v,r),s8e(e,r),f8e(v,r),p){for(b=0;b<v.length;)v[b][q]===yw?v.splice(b,1):b++;if(gw.sort(v,function(G,V){return G[q]-V[q]||G.i-V.i}),y){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 O=v[b-1][q],U=v[b-1].s,Y=(v[T].s-U)/(v[T][q]-O);b<T;)v[b].s=U+(v[b][q]-O)*Y,b++}}}return v}function tG(e,r,t,a,n,i,o){var l=r._length,s=e._fullLayout,u=t._id,f=a._id,c=s._firstScatter[iG(r)]===r.uid,v=(xw(r,s,t,a)||{}).orientation,d=r.fill;t._minDtick=0,a._minDtick=0;var p={padded:!0},y={padded:!0};o&&(p.ppad=y.ppad=o);var m=l<2||n[0]!==n[l-1]||i[0]!==i[l-1];m&&(d==="tozerox"||d==="tonextx"&&(c||v==="h"))?p.tozero=!0:!(r.error_y||{}).visible&&(d==="tonexty"||d==="tozeroy"||!bw.hasMarkers(r)&&!bw.hasText(r))&&(p.padded=!1,p.ppad=0),m&&(d==="tozeroy"||d==="tonexty"&&(c||v==="v"))?y.tozero=!0:(d==="tonextx"||d==="tozerox")&&(y.padded=!1),u&&(r._extremes[u]=Sd.findExtremes(t,n,p)),f&&(r._extremes[f]=Sd.findExtremes(a,i,y))}function aG(e,r){if(bw.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)},gw.isArrayOrTypedArray(t.size)){var i={type:"linear"};Sd.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 nG(e,r){var t=iG(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function iG(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function xw(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}}oG.exports={calc:c8e,calcMarkerSize:aG,calcAxisExpansion:tG,setFirstScatter:nG,getStackOpts:xw}});var sG=z((Rje,lG)=>{"use strict";lG.exports=Xy;var v8e=ke().distinctVals;function Xy(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=v8e(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={}}Xy.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};Xy.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};Xy.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 qd=z((Fje,uG)=>{"use strict";uG.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var $y=z((zje,hG)=>{"use strict";var Ki=Ir(),{isArrayOrTypedArray:jl}=ke(),{BADNUM:wc}=Gt(),h8e=Tr(),Ld=Gr(),{getAxisGroup:d8e}=vf(),Zy=sG(),{TEXTPAD:p8e}=qd(),{LINE_SPACING:m8e}=Qa(),{BR_TAG_ALL:y8e}=Ca();function g8e(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&&h8e.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};ww(e,t,a,s,d),ww(e,a,t,l,d)}function ww(e,r,t,a,n){if(a.length){var i,o,l,s,u;switch(_8e(t,a),n.mode){case"overlay":_w(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&&w8e(e,r,t,o,n),i.length&&_w(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);x8e(o),o.length&&T8e(e,r,t,o,n),i.length&&_w(e,r,t,i,n);break}b8e(a),L8e(a,r)}}function b8e(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=Ki(i)?+i:+i.slice(0,-1),l=Ki(i)?"px":"%",n.cornerradiusvalue=o,n.cornerradiusform=l))}function x8e(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=Ki(i)?+i:+i.slice(0,-1),l=Ki(i)?"px":"%",r=0;r<e.length;r++)t=e[r],n=t[0].t,n.cornerradiusvalue=o,n.cornerradiusform=l}}function _8e(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(jl(o)){for(a=0;a<Math.min(o.length,n.length);a++)l=u(o[a],0,s),Ki(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=Ki(l);for(l=f?l:0,a=0;a<n.length;a++)n[a].b=l,f&&(n[a].hasB=1)}}}function _w(e,r,t,a,n){for(var i=0;i<a.length;i++){var o=a[i],l=new Zy([o],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});Tw(e,r,l,n),n.norm?(vG(l),Aw(t,l,n)):cG(t,l)}}function w8e(e,r,t,a,n){var i=new Zy(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});Tw(e,r,i,n),S8e(i,r),n.norm?(vG(i),Aw(t,i,n)):cG(t,i)}function T8e(e,r,t,a,n){var i=new Zy(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});Tw(e,r,i,n),k8e(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!==wc){var c=f.b+f.s===i.get(f.p,s,f.s);c&&(f._outmost=!0)}}n.norm&&Aw(t,i,n)}function Tw(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,y;if(r._id==="angularaxis")v=c,d=v*(1-(a.groupgap||0)),p=-d/2;else{var m=d8e(n,r._id)+s[0][0].trace.orientation;y=n._alignmentOpts[m]||{}}for(var b=0;b<u;b++){var T=s[b],w=T[0].trace;if(r._id!=="angularaxis"){var x=y[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,A8e(t),M8e(r,t),r._id==="angularaxis"?fG(r,t):fG(r,t,f)}function A8e(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(jl(s)){for(f=Array.prototype.slice.call(s,0,n.length),a=0;a<f.length;a++)Ki(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(jl(c)){var d=Array.prototype.slice.call(c,0,n.length);for(a=0;a<d.length;a++)Ki(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 M8e(e,r){for(var t=r.traces,a=Tc(e),n=0;n<t.length;n++)for(var i=t[n],o=i[0].t,l=o.poffset,s=jl(l),u=o.barwidth,f=jl(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 fG(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;Ld.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 y=s.t,m=y.poffset,b=y.barwidth,T=jl(m),w=jl(b);for(p=0;p<l.length;p++){c=l[p];var x=T?m[p]:m,_=w?b[p]:b;v=c.p+x,d=v+_,f.push(v,d)}}u._extremes[e._id]=Ld.findExtremes(e,f,{padded:!1})}}function cG(e,r){for(var t=r.traces,a=Tc(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:y,ppadplus:m}=Mw(o,i);o._extremes[e._id]=Ld.findExtremes(e,u,{tozero:f,padded:!0,ppadplus:m,ppadminus:y})}}function k8e(e,r,t){var a=Tc(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!==wc&&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!==wc){var d;l?d=f.s:d=f.s+f.b;var p=r.put(f.p,c,d),y=p+d;f.b=p,f[a]=y,t.norm||(v.push(y),f.hasB&&v.push(p))}if(!t.norm){let{ppadminus:m,ppadplus:b}=Mw(o,i);o._extremes[e._id]=Ld.findExtremes(e,v,{tozero:!0,padded:!0,ppadplus:b,ppadminus:m})}}}function vG(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!==wc&&e.put(o.p,n,o.b+o.s)}}function S8e(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 Zy([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<n.length;s++){var u=n[s];if(u.p!==wc){var f=l.put(u.p,o,u.b+u.s);f&&(u.b=f)}}}}function Aw(e,r,t){var a=r.traces,n=Tc(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 Ki(e.c2l(k))&&(k<l-o||k>s+o||!Ki(l))}for(var f=0;f<a.length;f++){for(var c=a[f],v=c[0].t.offsetindex,d=c[0].trace,p=[],y=!1,m=!1,b=0;b<c.length;b++){var T=c[b];if(T.s!==wc){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(_),m=m||u(_),T.hasB&&(p.push(x),m=m||u(x)),(!T.hasB||!T.b)&&(y=!0)}}let{ppadminus:k,ppadplus:A}=Mw(d,c);d._extremes[e._id]=Ld.findExtremes(e,p,{tozero:y,padded:m,ppadplus:A,ppadminus:k})}}function Mw(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(y8e)||[]).length+1};var t;e.texttemplate?t=a(e.texttemplate):t=jl(e.text)?Math.max(...e.text.map(i=>a(i))):a(e.text);let n=e.outsidetextfont.size*m8e*t+p8e;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 q8e(e,r,t,a){for(var n=Tc(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 L8e(e,r){var t=Tc(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;Ki(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 y=o[0].t.poffset,m=jl(y);for(i=0;i<o.length;i++){var b=o[i],T=b[t]-b.w/2;if(Ki(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+(m?y[i]:y),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,A=b[t];v[A]=A in v?Math.min(v[A],_):_,d[A]=A in d?Math.max(d[A],k):k}}}p&&q8e(e,v,d,r)}function Tc(e){return e._id.charAt(0)}hG.exports={crossTraceCalc:g8e,setGroupPositions:ww}});var yG=z((Nje,mG)=>{"use strict";var dG=Wy(),pG=$y().setGroupPositions;function C8e(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};pG(e,t,a,s,c),pG(e,a,t,l,c)}mG.exports=function(r,t){r._fullLayout.scattermode==="group"&&C8e(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,y,m,b,T,w,x,_,k;for(var A in o){b=o[A];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++)kw(v,u,C[f],s,k,T,x),u++;if(p!==C[f]){for(c=0;c<s;c++)kw(l[q[c]],f,p,c,k,T,x);C.splice(f,0,p)}f++}for(;f<C.length;f++)kw(v,u,C[f],s,k,T,x),u++}var E=C.length;for(u=0;u<d.length;u++){for(y=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,y+=v[u].s,v[u][_]=y;if(w)for(m=(w==="fraction"?y:y/100)||1,s=0;s<q.length;s++){var P=l[q[s]][u];P[_]/=m,P.sNorm=P.s/m}}for(s=0;s<q.length;s++){v=l[q[s]];var R=v[0].trace,N=dG.calcMarkerSize(R,R._rawLength),I=Array.isArray(N);if(N&&k[s]||I){var O=N;for(N=new Array(E),u=0;u<E;u++)N[u]=v[u].gap?0:I?O[v[u].i]:O}var U=new Array(E),Y=new Array(E);for(u=0;u<E;u++)U[u]=v[u].x,Y[u]=v[u].y;dG.calcAxisExpansion(r,R,a,n,U,Y,N),v[0].t.orientation=b.orientation}}}}};function kw(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=D8e(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 D8e(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 qw=z((Ije,TG)=>{"use strict";var E8e=Zr(),_G=Gt(),Cd=_G.BADNUM,wG=_G.LOG_CLIP,gG=wG+.5,bG=wG-.5,Jy=ke(),P8e=Jy.segmentsIntersect,xG=Jy.constrain,Sw=hd();TG.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,y=p==="linear",m=a.fill&&a.fill!=="none",b=[],T=Sw.minTolerance,w=r.length,x=new Array(w),_=0,k,A,q,C,E,P,R,N,I,O,U,Y,G,V,W,j;function J(Ee){var Je=r[Ee];if(!Je)return!1;var Ie=t.linearized?n.l2p(Je.x):n.c2p(Je.x),pr=t.linearized?i.l2p(Je.y):i.c2p(Je.y);if(Ie===Cd){if(o&&(Ie=n.c2p(Je.x,!0)),Ie===Cd)return!1;l&&pr===Cd&&(Ie*=Math.abs(n._m*u*(n._m>0?gG:bG)/(i._m*s*(i._m>0?gG:bG)))),Ie*=1e3}if(pr===Cd){if(l&&(pr=i.c2p(Je.y,!0)),pr===Cd)return!1;pr*=1e3}return[Ie,pr]}function te(Ee,Je,Ie,pr){var mr=Ie-Ee,sr=pr-Je,yr=.5-Ee,ne=.5-Je,ge=mr*mr+sr*sr,ze=mr*yr+sr*ne;if(ze>0&&ze<ge){var Oe=yr*sr-ne*mr;if(Oe*Oe<ge)return!0}}var ae,se;function $(Ee,Je){var Ie=Ee[0]/s,pr=Ee[1]/u,mr=Math.max(0,-Ie,Ie-1,-pr,pr-1);return mr&&ae!==void 0&&te(Ie,pr,ae,se)&&(mr=0),mr&&Je&&te(Ie,pr,Je[0]/s,Je[1]/u)&&(mr=0),(1+Sw.toleranceGrowth*mr)*d}function fe(Ee,Je){var Ie=Ee[0]-Je[0],pr=Ee[1]-Je[1];return Math.sqrt(Ie*Ie+pr*pr)}var ie=Sw.maxScreensAway,ue=-s*ie,ce=s*(1+ie),oe=-u*ie,be=u*(1+ie),Re=[[ue,oe,ce,oe],[ce,oe,ce,be],[ce,be,ue,be],[ue,be,ue,oe]],ye,Ce,Me,Le,De,Ne;function qe(Ee,Je){for(var Ie=[],pr=0,mr=0;mr<4;mr++){var sr=Re[mr],yr=P8e(Ee[0],Ee[1],Je[0],Je[1],sr[0],sr[1],sr[2],sr[3]);yr&&(!pr||Math.abs(yr.x-Ie[0][0])>1||Math.abs(yr.y-Ie[0][1])>1)&&(yr=[yr.x,yr.y],pr&&fe(yr,Ee)<fe(Ie[0],Ee)?Ie.unshift(yr):Ie.push(yr),pr++)}return Ie}function Xe(Ee){if(Ee[0]<ue||Ee[0]>ce||Ee[1]<oe||Ee[1]>be)return[xG(Ee[0],ue,ce),xG(Ee[1],oe,be)]}function $e(Ee,Je){if(Ee[0]===Je[0]&&(Ee[0]===ue||Ee[0]===ce)||Ee[1]===Je[1]&&(Ee[1]===oe||Ee[1]===be))return!0}function We(Ee,Je){var Ie=[],pr=Xe(Ee),mr=Xe(Je);return pr&&mr&&$e(pr,mr)||(pr&&Ie.push(pr),mr&&Ie.push(mr)),Ie}function Se(Ee,Je,Ie){return function(pr,mr){var sr=Xe(pr),yr=Xe(mr),ne=[];if(sr&&yr&&$e(sr,yr))return ne;sr&&ne.push(sr),yr&&ne.push(yr);var ge=2*Jy.constrain((pr[Ee]+mr[Ee])/2,Je,Ie)-((sr||pr)[Ee]+(yr||mr)[Ee]);if(ge){var ze;sr&&yr?ze=ge>0==sr[Ee]>yr[Ee]?sr:yr:ze=sr||yr,ze[Ee]+=ge}return ne}}var Fe;p==="linear"||p==="spline"?Fe=qe:p==="hv"||p==="vh"?Fe=We:p==="hvh"?Fe=Se(0,ue,ce):p==="vhv"&&(Fe=Se(1,oe,be));function Qe(Ee,Je){var Ie=Je[0]-Ee[0],pr=(Je[1]-Ee[1])/Ie,mr=(Ee[1]*Je[0]-Je[1]*Ee[0])/Ie;return mr>0?[pr>0?ue:ce,be]:[pr>0?ce:ue,oe]}function re(Ee){var Je=Ee[0],Ie=Ee[1],pr=Je===x[_-1][0],mr=Ie===x[_-1][1];if(!(pr&&mr))if(_>1){var sr=Je===x[_-2][0],yr=Ie===x[_-2][1];pr&&(Je===ue||Je===ce)&&sr?yr?_--:x[_-1]=Ee:mr&&(Ie===oe||Ie===be)&&yr?sr?_--:x[_-1]=Ee:x[_++]=Ee}else x[_++]=Ee}function xe(Ee){x[_-1][0]!==Ee[0]&&x[_-1][1]!==Ee[1]&&re([Me,Le]),re(Ee),De=null,Me=Le=0}var Ge=Jy.isArrayOrTypedArray(c);function cr(Ee){if(Ee&&f&&(Ee.i=k,Ee.d=r,Ee.trace=a,Ee.marker=Ge?c[Ee.i]:c,Ee.backoff=f),ae=Ee[0]/s,se=Ee[1]/u,ye=Ee[0]<ue?ue:Ee[0]>ce?ce:0,Ce=Ee[1]<oe?oe:Ee[1]>be?be:0,ye||Ce){if(!_)x[_++]=[ye||Ee[0],Ce||Ee[1]];else if(De){var Je=Fe(De,Ee);Je.length>1&&(xe(Je[0]),x[_++]=Je[1])}else Ne=Fe(x[_-1],Ee)[0],x[_++]=Ne;var Ie=x[_-1];ye&&Ce&&(Ie[0]!==ye||Ie[1]!==Ce)?(De&&(Me!==ye&&Le!==Ce?re(Me&&Le?Qe(De,Ee):[Me||ye,Le||Ce]):Me&&Le&&re([Me,Le])),re([ye,Ce])):Me-ye&&Le-Ce&&re([ye||Me,Ce||Le]),De=Ee,Me=ye,Le=Ce}else De&&xe(Fe(De,Ee)[0]),x[_++]=Ee}for(k=0;k<w;k++)if(A=J(k),!!A){for(_=0,De=null,cr(A),k++;k<w;k++){if(C=J(k),!C){if(v)continue;break}if(!y||!t.simplify){cr(C);continue}var Pe=J(k+1);if(O=fe(C,A),!(!(m&&(_===0||_===w-1))&&O<$(C,Pe)*T)){for(N=[(C[0]-A[0])/O,(C[1]-A[1])/O],E=A,U=O,Y=V=W=0,R=!1,q=C,k++;k<r.length;k++){if(P=Pe,Pe=J(k+1),!P){if(v)continue;break}if(I=[P[0]-A[0],P[1]-A[1]],j=I[0]*N[1]-I[1]*N[0],V=Math.min(V,j),W=Math.max(W,j),W-V>$(P,Pe))break;q=P,G=I[0]*N[0]+I[1]*N[1],G>U?(U=G,C=P,R=!1):G<Y&&(Y=G,E=P,R=!0)}if(R?(cr(C),q!==E&&cr(E)):(E!==A&&cr(E),q!==C&&cr(C)),cr(q),k>=r.length||!P)break;cr(P),A=P}}De&&re([Me||De[0],Le||De[1]]),b.push(x.slice(0,_))}var me=p.slice(p.length-1);if(f&&me!=="h"&&me!=="v"){for(var Ae=!1,He=-1,Ze=[],Be=0;Be<b.length;Be++)for(var je=0;je<b[Be].length-1;je++){var tr=b[Be][je],ir=b[Be][je+1],lr=E8e.applyBackoff(ir,tr);(lr[0]!==ir[0]||lr[1]!==ir[1])&&(Ae=!0),Ze[He+1]||(He++,Ze[He]=[tr,[lr[0],lr[1]]])}return Ae?Ze:b}return b}});var kG=z((Bje,MG)=>{"use strict";var AG={tonextx:1,tonexty:1,tonext:1};MG.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 AG&&d>=0?s=d:(s=d=v,v++),s<c&&(f=!0),n._groupIndex=c=s;var p=a.slice();f&&p.sort(function(m,b){var T=m[0].trace,w=b[0].trace;return T._groupIndex-w._groupIndex||T.index-w.index});var y={};for(i=0;i<p.length;i++)n=p[i][0].trace,o=n.stackgroup||"",n.visible===!0?(n._nexttrace=null,n.fill in AG&&(l=y[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),y[o]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return p}});var Lw=z((Oje,LG)=>{"use strict";var Po=Er(),R8e=Tr(),Dd=ke(),Ac=Dd.ensureSingle,qG=Dd.identity,na=Zr(),Mc=Jn(),F8e=qw(),z8e=kG(),Ky=w7().tester;LG.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=z8e(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(),N8e(r,l,t),f){o&&(s=o());var v=Po.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){SG(r,p,t,d,c,this,i)})})}else l.each(function(d,p){SG(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function N8e(e,r,t){r.each(function(a){var n=Ac(Po.select(this),"g","fills");na.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,qG);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Ac(Po.select(this),"path","js-fill")})})}function SG(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;I8e(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Se){return u?Se.transition():Se}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,y=Po.select(i),m=Ac(y,"g","errorbars"),b=Ac(y,"g","lines"),T=Ac(y,"g","points"),w=Ac(y,"g","text");if(R8e.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;f(y).style("opacity",d.opacity);var x,_,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var A,q;k==="y"?(A=1,q=v.c2p(0,!0)):k==="x"&&(A=0,q=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var C="",E=[],P=d._prevtrace,R=null,N=null;P&&(C=P._prevRevpath||"",_=P._nextFill,E=P._ownPolygons,R=P._fillsegments,N=P._fillElement);var I,O,U="",Y="",G,V,W,j,J,te,ae=[];d._polygons=[];var se=[],$=[],fe=Dd.noop;if(x=d._ownFill,Mc.hasLines(d)||d.fill!=="none"){_&&_.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(G=na.steps(p.shape),V=na.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?G=V=function(Se){var Fe=Se[Se.length-1];return Se.length>1&&Se[0][0]===Fe[0]&&Se[0][1]===Fe[1]?na.smoothclosed(Se.slice(1),p.smoothing):na.smoothopen(Se,p.smoothing)}:G=V=function(Se){return"M"+Se.join("L")},W=function(Se){return V(Se.reverse())},$=F8e(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}),se=new Array($.length);var ie=0;for(s=0;s<$.length;s++){var ue,ce=$[s];!ue||!k?(ue=ce.slice(),se[ie]=ue,ie++):ue.push.apply(ue,ce)}d._fillElement=null,d._fillExclusionElement=N,d._fillsegments=se.slice(0,ie),se=d._fillsegments,$.length&&(j=$[0][0].slice(),J=$[$.length-1],te=J[J.length-1].slice()),fe=function(Se){return function(Fe){if(I=G(Fe),O=W(Fe),U?k?(U+="L"+I.slice(1),Y=O+("L"+Y.slice(1))):(U+="Z"+I,Y=O+"Z"+Y):(U=I,Y=O),Mc.hasLines(d)){var Qe=Po.select(this);if(Qe.datum(a),Se)f(Qe.style("opacity",0).attr("d",I).call(na.lineGroupStyle)).style("opacity",1);else{var re=f(Qe);re.attr("d",I),na.singleLineStyle(a,re)}}}}}var oe=b.selectAll(".js-line").data($);f(oe.exit()).style("opacity",0).remove(),oe.each(fe(!1)),oe.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(na.lineGroupStyle).each(fe(!0)),na.setClipUrl(oe,t.layerClipId,e);function be(Se){f(Se).attr("d","M0,0Z")}var Re=function(){var Se=new Array(se.length);for(s=0;s<se.length;s++)Se[s]=Ky(se[s]);return Se},ye=function(Se){var Fe,Qe;if(!Se||Se.length===0)for(Fe=new Array(se.length),Qe=0;Qe<se.length;Qe++){var re=se[Qe][0].slice(),xe=se[Qe][se[Qe].length-1].slice();re[A]=xe[A]=q;var Ge=[xe,re],cr=Ge.concat(se[Qe]);Fe[Qe]=Ky(cr)}else{for(Fe=new Array(Se.length-1+se.length),Qe=0;Qe<Se.length-1;Qe++)Fe[Qe]=Ky(Se[Qe]);var Pe=Se[Se.length-1].slice();for(Pe.reverse(),Qe=0;Qe<se.length;Qe++)Fe[Se.length-1+Qe]=Ky(se[Qe].concat(Pe))}return Fe};$.length?(x?(x.datum(a),j&&te&&(k?(j[A]=te[A]=q,f(x).attr("d","M"+te+"L"+j+"L"+U.slice(1)).call(na.singleFillStyle,e),ae=ye(null)):(f(x).attr("d",U+"Z").call(na.singleFillStyle,e),ae=Re())),d._polygons=ae,d._fillElement=x):_&&(d.fill.slice(0,6)==="tonext"&&U&&C?(d.fill==="tonext"?(f(_).attr("d",U+"Z"+C+"Z").call(na.singleFillStyle,e),ae=Re(),d._polygons=ae.concat(E)):(f(_).attr("d",U+"L"+C.slice(1)+"Z").call(na.singleFillStyle,e),ae=ye(R),d._polygons=ae),d._fillElement=_):be(_)),d._prevRevpath=Y):(x?be(x):_&&be(_),d._prevRevpath=null),d._ownPolygons=ae;function Ce(Se){return Se.filter(function(Fe){return!Fe.gap&&Fe.vis})}function Me(Se){return Se.filter(function(Fe){return Fe.vis})}function Le(Se){return Se.filter(function(Fe){return!Fe.gap})}function De(Se){return Se.id}function Ne(Se){if(Se.ids)return De}function qe(){return!1}function Xe(Se,Fe,Qe){var re,xe,Ge,cr=Qe[0].trace,Pe=Mc.hasMarkers(cr),me=Mc.hasText(cr),Ae=Ne(cr),He=qe,Ze=qe;if(Pe||me){var Be=qG,je=cr.stackgroup,tr=je&&e._fullLayout._scatterStackOpts[c._id+v._id][je].stackgaps==="infer zero";cr.marker.maxdisplayed||cr._needsCull?Be=tr?Me:Ce:je&&!tr&&(Be=Le),Pe&&(He=Be),me&&(Ze=Be)}xe=Se.selectAll("path.point"),re=xe.data(He,Ae);var ir=re.enter().append("path").classed("point",!0);u&&ir.call(na.pointStyle,cr,e).call(na.translatePoints,c,v).style("opacity",0).transition().style("opacity",1),re.order();var lr;Pe&&(lr=na.makePointStyleFns(cr)),re.each(function(Ee){var Je=Po.select(this),Ie=f(Je);Ge=na.translatePoint(Ee,Ie,c,v),Ge?(na.singlePointStyle(Ee,Ie,cr,lr,e),t.layerClipId&&na.hideOutsideRangePoint(Ee,Ie,c,v,cr.xcalendar,cr.ycalendar),cr.customdata&&Je.classed("plotly-customdata",Ee.data!==null&&Ee.data!==void 0)):Ie.remove()}),u?re.exit().transition().style("opacity",0).remove():re.exit().remove(),xe=Fe.selectAll("g"),re=xe.data(Ze,Ae),re.enter().append("g").classed("textpoint",!0).append("text"),re.order(),re.each(function(Ee){var Je=Po.select(this),Ie=f(Je.select("text"));Ge=na.translatePoint(Ee,Ie,c,v),Ge?t.layerClipId&&na.hideOutsideRangePoint(Ee,Je,c,v,cr.xcalendar,cr.ycalendar):Je.remove()}),re.selectAll("text").call(na.textPointStyle,cr,e).each(function(Ee){var Je=c.c2p(Ee.x),Ie=v.c2p(Ee.y);Po.select(this).selectAll("tspan.line").each(function(){f(Po.select(this)).attr({x:Je,y:Ie})})}),re.exit().remove()}T.datum(a),w.datum(a),Xe(T,w,a);var $e=d.cliponaxis===!1,We=$e?null:t.layerClipId;na.setClipUrl(T,We,e),na.setClipUrl(w,We,e)}function I8e(e,r,t,a,n){var i=t.xaxis,o=t.yaxis,l=Po.extent(Dd.simpleMap(i.range,i.r2c)),s=Po.extent(Dd.simpleMap(o.range,o.r2c)),u=a[0].trace;if(Mc.hasMarkers(u)){var f=u.marker.maxdisplayed;if(f!==0){var c=a.filter(function(y){return y.x>=l[0]&&y.x<=l[1]&&y.y>=s[0]&&y.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(y,m){var b=y[0].trace;Mc.hasMarkers(b)&&b.marker.maxdisplayed>0&&m<r&&d++});var p=Math.round(d*v/3+Math.floor(d/3)*v/7.1);a.forEach(function(y){delete y.vis}),c.forEach(function(y,m){Math.round((m+p)%v)===0&&(y.vis=!0)})}}}});var Ed=z((Hje,CG)=>{"use strict";CG.exports={container:"marker",min:"cmin",max:"cmax"}});var Cw=z((Uje,DG)=>{"use strict";var Qy=Gr();DG.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Qy.getFromTrace(i,t,"x"),l=Qy.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=Qy.tickText(o,o.c2l(s),!0).text,n.yLabel=Qy.tickText(l,l.c2l(u),!0).text,n}});var mf=z((Gje,EG)=>{"use strict";var Dw=Er(),kc=Zr(),B8e=Tr();function O8e(e){var r=Dw.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=Dw.select(this),n=t.trace||t[0].trace;Ew(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Dw.select(this),n=t.trace||t[0].trace;Pw(a,n,e)}),r.selectAll("g.trace path.js-line").call(kc.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(kc.fillGroupStyle,e,!1),B8e.getComponentMethod("errorbars","style")(r)}function Ew(e,r,t){kc.pointStyle(e.selectAll("path.point"),r,t)}function Pw(e,r,t){kc.textPointStyle(e.selectAll("text"),r,t)}function H8e(e,r,t){var a=r[0].trace;a.selectedpoints?(kc.selectedPointStyle(t.selectAll("path.point"),a),kc.selectedTextStyle(t.selectAll("text"),a)):(Ew(t,a,e),Pw(t,a,e))}EG.exports={style:O8e,stylePoints:Ew,styleText:Pw,styleOnSelect:H8e}});var RG=z((Yje,PG)=>{"use strict";var Sc=Sr(),U8e=Jn();PG.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Sc.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&&Sc.opacity(i)?i:o&&Sc.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Sc.opacity(n)<.3?Sc.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Sc.opacity(a)&&U8e.hasLines(r)&&r.line.width?a:r.fillcolor)}});var Fw=z((Vje,zG)=>{"use strict";var eg=ke(),FG=In(),G8e=Tr(),Y8e=RG(),Rw=Sr(),V8e=eg.fillText;zG.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,y=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(Y){if(p){var G=l.c2p(Y.xStart),V=l.c2p(Y.xEnd);return u>=Math.min(G,V)&&u<=Math.max(G,V)?0:1/0}var W=Math.max(3,Y.mrc||0),j=1-1/W,J=Math.abs(l.c2p(Y.x)-u);return J<W?j*J/W:J-W+j},b=function(Y){if(y){var G=s.c2p(Y.yStart),V=s.c2p(Y.yEnd);return f>=Math.min(G,V)&&f<=Math.max(G,V)?0:1/0}var W=Math.max(3,Y.mrc||0),j=1-1/W,J=Math.abs(s.c2p(Y.y)-f);return J<W?j*J/W:J-W+j},T=function(Y){var G=Math.max(d,Y.mrc||0),V=l.c2p(Y.x)-u,W=s.c2p(Y.y)-f;return Math.max(Math.sqrt(V*V+W*W)-G,1-d/G)},w=FG.getDistanceFunction(n,m,b,T);if(FG.getClosest(i,w,r),r.index!==!1){var x=i[r.index],_=l.c2p(x.x,!0),k=s.c2p(x.y,!0),A=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 eg.extendFlat(r,{color:Y8e(o,x),x0:_-A,x1:_+A,xLabelVal:E,y0:k-A,y1:k+A,yLabelVal:P,spikeDistance:T(x),hovertemplate:o.hovertemplate}),V8e(x,o,r),G8e.getComponentMethod("errorbars","hoverInfo")(x,o,r),[r]}}function R(Y){if(!Y)return!1;var G=Y.node();try{var V=new DOMPoint(c[0],c[1]);return G.isPointInFill(V)}catch(j){var W=G.ownerSVGElement.createSVGPoint();return W.x=c[0],W.y=c[1],G.isPointInFill(W)}}function N(Y){var G,V=[],W=1/0,j=-1/0,J=1/0,te=-1/0,ae;for(G=0;G<Y.length;G++){var se=Y[G];se.contains(c)&&(V.push(se),J=Math.min(J,se.ymin),te=Math.max(te,se.ymax))}if(V.length===0)return null;J=Math.max(J,0),te=Math.min(te,s._length),ae=(J+te)/2;var $,fe,ie,ue,ce,oe,be;for(G=0;G<V.length;G++)for(fe=V[G].pts,$=1;$<fe.length;$++)oe=fe[$-1][1],be=fe[$][1],oe>ae!=be>=ae&&(ue=fe[$-1][0],ce=fe[$][0],be-oe&&(ie=ue+(ce-ue)*(ae-oe)/(be-oe),W=Math.min(W,ie),j=Math.max(j,ie)));return W=Math.max(W,0),j=Math.min(j,l._length),{x0:W,x1:j,y0:ae,y1:ae}}if(v.indexOf("fills")!==-1&&o._fillElement){var I=R(o._fillElement)&&!R(o._fillExclusionElement);if(I){var O=N(o._polygons);O===null&&(O={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var U=Rw.defaultLine;return Rw.opacity(o.fillcolor)?U=o.fillcolor:Rw.opacity((o.line||{}).color)&&(U=o.line.color),eg.extendFlat(r,{distance:r.maxHoverDistance,x0:O.x0,x1:O.x1,y0:O.y0,y1:O.y1,color:U,hovertemplate:!1}),delete r.index,o.text&&!eg.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var zw=z((jje,IG)=>{"use strict";var NG=Jn();IG.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&&!NG.hasMarkers(l)&&!NG.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 OG=z((Wje,BG)=>{"use strict";BG.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var YG=z((Xje,GG)=>{"use strict";var rg=Tr().traceIs,Nw=um();GG.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(j8e(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function j8e(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=W8e(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:!rg(i,"cartesian")||rg(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,UG(i,a)){var u=HG(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!rg(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=Nw(f,l,s)}else if(i.type==="splom"){var v=i.dimensions,d=v[i._axesDim[t]];d.visible&&(e.type=Nw(d.values,l,s))}else e.type=Nw(i[a]||[i[a+"0"]],l,s)}}}function W8e(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(UG(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function HG(e){return{v:"x",h:"y"}[e.orientation||"v"]}function UG(e,r){var t=HG(e),a=rg(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var jG=z((Zje,VG)=>{"use strict";var X8e=Vn().isTypedArraySpec;function Z8e(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)}VG.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,o=Array.isArray(i)&&i.length>0||X8e(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=Z8e(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var Iw=z(($je,XG)=>{"use strict";var WG=Sr(),$8e=Ei(),J8e=ke();XG.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(q,C){return J8e.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=WG.mix(i,n.bgColor,n.blend||$8e.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 y=WG.mix(t.gridcolor,n.bgColor,67),m=o("minor.gridcolor",y),b=o("minor.gridwidth",t.gridwidth||1),T=o("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!m||!!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"),A=a("zeroline",n.showGrid||!!_||!!k);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var Ow=z((Jje,eY)=>{"use strict";var ZG=Ir(),K8e=Tr(),Pd=ke(),Q8e=St(),e9e=So(),Bw=Ni(),$G=Yp(),JG=Vp(),r9e=Wp(),t9e=Xp(),a9e=jG(),n9e=Iw(),i9e=y6(),KG=ec(),tg=qa().WEEKDAY_PATTERN,o9e=qa().HOUR_PATTERN;eY.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=K8e.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=Pd.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"),KG(t,i),i9e(r,t,a,n),a9e(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==Bw.color.dflt?y:l.color,b=s.label||i._dfltTitle[o];if(t9e(r,t,a,c,n),!u)return t;a("title.text",b),Pd.coerceFont(a,"title.font",l,{overrideDflt:{size:Pd.bigFont(l.size),color:m}}),$G(r,t,a,c);var T=n.hasMinor;if(T&&(Q8e.newContainer(t,"minor"),$G(r,t,a,c,{isMinor:!0})),r9e(r,t,a,c,n),JG(r,t,a,n),T){var w=n.isMinor;n.isMinor=!0,JG(r,t,a,n),n.isMinor=w}n9e(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:Bw}),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(e9e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:l9e}),!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(KG(t,i),i._has("scattergl")||i._has("splom"))for(var A=0;A<n.data.length;A++){var q=n.data[A];(q.type==="scattergl"||q.type==="splom")&&(q.visible=!1,Pd.warn(q.type+" traces do not work on axes with rangebreaks. Setting trace "+q.index+" to `visible: false`."))}}return t};function l9e(e,r,t){function a(v,d){return Pd.coerce(e,r,Bw.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=QG(i[l]),s){o=tg;break}}var u=a("pattern",o);if(u===tg)for(l=0;l<2;l++)s=QG(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(!ZG(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 o9e:if(!ZG(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 s9e={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function QG(e){if(typeof e=="string")return s9e[e.slice(0,3).toLowerCase()]}});var Hw=z((Kje,rY)=>{"use strict";var u9e=Ir(),ag=ke();rY.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,y;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||(u9e(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=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(m==="free"){if(l==="y"){var T=a("autoshift");T&&(d=b==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);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),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var fY=z((Qje,uY)=>{"use strict";var yf=ke(),tY=Sr(),f9e=qo().isUnifiedHover,c9e=Y6(),aY=St(),v9e=P0(),nY=Ni(),h9e=YG(),iY=Ow(),d9e=vf(),oY=Hw(),Gw=ba(),ml=Gw.id2name,lY=Gw.name2id,p9e=qa().AX_ID_PATTERN,sY=Tr(),ng=sY.traceIs,Uw=sY.getComponentMethod;function ig(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}uY.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},y,m;for(y=0;y<a.length;y++){var b=a[y];if(ng(b,"cartesian")){var T;if(b.xaxis)T=ml(b.xaxis),ig(i,T,b);else if(b.xaxes)for(m=0;m<b.xaxes.length;m++)ig(i,ml(b.xaxes[m]),b);var w;if(b.yaxis)w=ml(b.yaxis),ig(i,w,b);else if(b.yaxes)for(m=0;m<b.yaxes.length;m++)ig(i,ml(b.yaxes[m]),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),(!ng(b,"carpet")||b.type==="carpet"&&!b._cheater)&&T&&(s[T]=!0)),b.type==="carpet"&&b._cheater&&T&&(o[T]=!0),ng(b,"2dMap")&&(d[T]=!0,d[w]=!0),ng(b,"oriented")){var x=b.orientation==="h"?w:T;p[x]=!0}}}var _=t._subplots,k=_.xaxis,A=_.yaxis,q=yf.simpleMap(k,ml),C=yf.simpleMap(A,ml),E=q.concat(C),P=tY.background;k.length&&A.length&&(P=yf.coerce(r,t,v9e,"plot_bgcolor"));var R=tY.combine(P,t.paper_bgcolor),N,I,O,U,Y;function G(){var xe=i[N]||[];Y._traceIndices=xe.map(function(Ge){return Ge.index}),Y._annIndices=[],Y._shapeIndices=[],Y._selectionIndices=[],Y._imgIndices=[],Y._subplotsWith=[],Y._counterAxes=[],Y._name=Y._attr=N,Y._id=I}function V(xe,Ge){return yf.coerce(U,Y,nY,xe,Ge)}function W(xe,Ge){return yf.coerce2(U,Y,nY,xe,Ge)}function j(xe){return xe==="x"?A:k}function J(xe,Ge){for(var cr=xe==="x"?q:C,Pe=[],me=0;me<cr.length;me++){var Ae=cr[me];Ae!==Ge&&!(r[Ae]||{}).overlaying&&Pe.push(lY(Ae))}return Pe}var te={x:j("x"),y:j("y")},ae=te.x.concat(te.y),se={},$=[];function fe(){var xe=U.matches;p9e.test(xe)&&ae.indexOf(xe)===-1&&(se[xe]=U.type,$=Object.keys(se))}var ie=c9e(r,t),ue=f9e(ie);for(y=0;y<E.length;y++){N=E[y],I=lY(N),O=N.charAt(0),yf.isPlainObject(r[N])||(r[N]={}),U=r[N],Y=aY.newContainer(t,N,O+"axis"),G();var ce=O==="x"&&!s[N]&&o[N]||O==="y"&&!u[N]&&l[N],oe=O==="y"&&(!f[N]&&c[N]||v[N]),be={hasMinor:!0,letter:O,font:t.font,outerTicks:d[N],showGrid:!p[N],data:i[N]||[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:ce,reverseDflt:oe,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[O]||{})[I],noAutotickangles:O==="y"};V("uirevision",t.uirevision),h9e(U,Y,V,be),iY(U,Y,V,be,t);var Re=ue&&O===ie.charAt(0),ye=W("spikecolor",ue?Y.color:void 0),Ce=W("spikethickness",ue?1.5:void 0),Me=W("spikedash",ue?"dot":void 0),Le=W("spikemode",ue?"across":void 0),De=W("spikesnap"),Ne=V("showspikes",!!Re||!!ye||!!Ce||!!Me||!!Le||!!De);Ne||(delete Y.spikecolor,delete Y.spikethickness,delete Y.spikedash,delete Y.spikemode,delete Y.spikesnap);var qe=ml(U.overlaying),Xe=[0,1];if(t[qe]!==void 0){var $e=ml(t[qe].anchor);t[$e]!==void 0&&(Xe=t[$e].domain)}oY(U,Y,V,{letter:O,counterAxes:te[O],overlayableAxes:J(O,N),grid:t.grid,overlayingDomain:Xe}),V("title.standoff"),fe(),Y._input=U}for(y=0;y<$.length;){I=$[y++],N=ml(I),O=N.charAt(0),yf.isPlainObject(r[N])||(r[N]={}),U=r[N],Y=aY.newContainer(t,N,O+"axis"),G();var We={letter:O,font:t.font,outerTicks:d[N],showGrid:!p[N],data:[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[O]||{})[I]};V("uirevision",t.uirevision),Y.type=se[I]||"linear",iY(U,Y,V,We,t),oY(U,Y,V,{letter:O,counterAxes:te[O],overlayableAxes:J(O,N),grid:t.grid}),V("fixedrange"),V("modebardisable"),fe(),Y._input=U}var Se=Uw("rangeslider","handleDefaults"),Fe=Uw("rangeselector","handleDefaults");for(y=0;y<q.length;y++)N=q[y],U=r[N],Y=t[N],Se(r,t,N),Y.type==="date"&&Fe(U,Y,t,C,Y.calendar),V("fixedrange"),V("modebardisable");for(y=0;y<C.length;y++){N=C[y],U=r[N],Y=t[N];var Qe=t[ml(Y.anchor)],re=Uw("rangeslider","isVisible")(Qe);V("fixedrange",re),V("modebardisable")}d9e.handleDefaults(r,t,{axIds:ae.concat($).sort(Gw.idSort),axHasImage:v})}});var hY=z((eWe,vY)=>{"use strict";var m9e=Er(),cY=Tr(),og=ke(),_i=Zr(),lg=Gr();vY.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){lg.redrawComponents(r);return}function o(m){var b=m.xaxis,T=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(_i.setTranslate,0,0).call(_i.setScale,1,1),m.plot.call(_i.setTranslate,b._offset,T._offset).call(_i.setScale,1,1);var w=m.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(_i.setPointGroupScale,1,1),w.selectAll(".textpoint").call(_i.setTextPointsScale,1,1),w.call(_i.hideOutsideRangePoints,m)}function l(m,b){var T=m.plotinfo,w=T.xaxis,x=T.yaxis,_=w._length,k=x._length,A=!!m.xr1,q=!!m.yr1,C=[];if(A){var E=og.simpleMap(m.xr0,w.r2l),P=og.simpleMap(m.xr1,w.r2l),R=E[1]-E[0],N=P[1]-P[0];C[0]=(E[0]*(1-b)+b*P[0]-E[0])/(E[1]-E[0])*_,C[2]=_*(1-b+b*N/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=og.simpleMap(m.yr0,x.r2l),O=og.simpleMap(m.yr1,x.r2l),U=I[1]-I[0],Y=O[1]-O[0];C[1]=(I[1]*(1-b)+b*O[1]-I[1])/(I[0]-I[1])*k,C[3]=k*(1-b+b*Y/U),x.range[0]=w.l2r(I[0]*(1-b)+b*O[0]),x.range[1]=x.l2r(I[1]*(1-b)+b*O[1])}else C[1]=0,C[3]=k;lg.drawOne(r,w,{skipTitle:!0}),lg.drawOne(r,x,{skipTitle:!0}),lg.redrawComponents(r,[w._id,x._id]);var G=A?_/C[2]:1,V=q?k/C[3]:1,W=A?C[0]:0,j=q?C[1]:0,J=A?C[0]/C[2]*_:0,te=q?C[1]/C[3]*k:0,ae=w._offset-J,se=x._offset-te;T.clipRect.call(_i.setTranslate,W,j).call(_i.setScale,1/G,1/V),T.plot.call(_i.setTranslate,ae,se).call(_i.setScale,G,V),_i.setPointGroupScale(T.zoomScalePts,1/G,1/V),_i.setTextPointsScale(T.zoomScaleTxt,1/G,1/V)}var s;n&&(s=n());function u(){for(var m={},b=0;b<t.length;b++){var T=t[b],w=T.plotinfo.xaxis,x=T.plotinfo.yaxis;T.xr1&&(m[w._name+".range"]=T.xr1.slice()),T.yr1&&(m[x._name+".range"]=T.yr1.slice())}return s&&s(),cY.call("relayout",r,m).then(function(){for(var _=0;_<t.length;_++)o(t[_].plotinfo)})}function f(){for(var m={},b=0;b<t.length;b++){var T=t[b],w=T.plotinfo.xaxis,x=T.plotinfo.yaxis;T.xr0&&(m[w._name+".range"]=T.xr0.slice()),T.yr0&&(m[x._name+".range"]=T.yr0.slice())}return cY.call("relayout",r,m).then(function(){for(var _=0;_<t.length;_++)o(t[_].plotinfo)})}var c,v,d,p=m9e.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,f()});function y(){v=Date.now();for(var m=Math.min(1,(v-c)/a.duration),b=p(m),T=0;T<t.length;T++)l(t[T],b);v-c>a.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var Qi=z(vn=>{"use strict";var ug=Er(),dY=Tr(),gf=ke(),y9e=va(),g9e=Zr(),pY=Np().getModuleCalcData,Gs=ba(),Ro=qa(),b9e=Il(),tt=gf.ensureSingle;function sg(e,r,t){return gf.ensureSingle(e,r,t,function(a){a.datum(t)})}var bf=Ro.zindexSeparator;vn.name="cartesian";vn.attr=["xaxis","yaxis"];vn.idRoot=["x","y"];vn.idRegex=Ro.idRegex;vn.attrRegex=Ro.attrRegex;vn.attributes=OG();vn.layoutAttributes=Ni();vn.supplyLayoutDefaults=fY();vn.transitionAxes=hY();vn.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[Gs.id2name(f)]||{}).anchor,Ro.idRegex.y.test(c)||(c="y"),i.push(f+c),o.push(f+c),s[c]||(s[c]=1,gf.pushUnique(n,c)));for(u=0;u<n.length;u++)c=n[u],s[c]||(f=(e[Gs.id2name(c)]||{}).anchor,Ro.idRegex.x.test(f)||(f="x"),i.push(f+c),o.push(f+c),l[f]||(l[f]=1,gf.pushUnique(a,f)));if(!o.length){f="",c="";for(var d in e)if(Ro.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?Gs.name2id(f):"x",c=c?Gs.name2id(c):"y",a.push(f),n.push(c),i.push(f+c)}};vn.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(bf)!==-1)continue;d+=bf+(u+1),v=gf.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m<o.length;m++){var b=o[m],T=b[0].trace;f===(T.zorder||0)&&T.xaxis+T.yaxis===c&&((r.indexOf(T.index)!==-1||T.carpet)&&(y&&y[0].trace.xaxis+y[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(T.fill)!==-1&&p.indexOf(y)===-1&&p.push(y),p.push(b)),y=b)}mY(e,v,p,t,a)}}};function mY(e,r,t,a,n){for(var i=Ro.traceLayerClasses,o=e._fullLayout,l=o._zindices,s=o._modules,u,f,c,v=[],d=[],p=0;p<l.length;p++)for(var y=l[p],m=0;m<s.length;m++){u=s[m];var b=u.name,T=dY.modules[b].categories;if(T.svg){var w=u.layerName||b+"layer",x=w+(p?Number(p)+1:""),_=u.plot;f=pY(t,_,y),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=ug.select(this),E=q.className;q.plotMethod(e,r,q.cdModule,C,a,n),Ro.clipOnAxisFalseQuery.indexOf("."+E)===-1&&g9e.setClipUrl(C,r.layerClipId,e)}),o._has("scattergl")&&(u=dY.getModule("scattergl"),c=pY(t,u)[0],u.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Ro.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),d.length)){var A=r.plot.selectAll(d.join(",")).selectAll(".trace");r.zoomScalePts=A.selectAll("path.point"),r.zoomScaleTxt=A.selectAll(".textpoint")}}vn.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=Gs.listIds({_fullLayout:a});for(s=0;s<v.length;s++){var d=v[s];r[Gs.id2name(d)]||a._infolayer.selectAll(".g-"+d+"title").remove()}}var p=a._has&&a._has("cartesian"),y=r._has&&r._has("cartesian");if(p&&!y)gY(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 m=o.cartesian[s];if(m.indexOf(bf)===-1&&!i[m]){var b="."+m+",."+m+"-x,."+m+"-y";a._cartesianlayer.selectAll(b).remove(),bY(m,a)}}};vn.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(gf.sorterAsc);s.length||(s=[0]),r._zindices=s;var u=x9e(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]+=bf+(v+1);c=c.concat(d)}var p=r._cartesianlayer.selectAll(".subplot").data(c,String);p.enter().append("g").attr("class",function(y){return"subplot "+y[0]}),p.order(),p.exit().call(gY,r),p.each(function(y){var m=y[0],b=m.indexOf(bf),T=b!==-1,w=T?m.slice(0,b):m,x=r._plots[m];x||(x=gf.extendFlat({},r._plots[w]),x&&(x.id=m,r._plots[m]=x,r._subplots.cartesian.push(m))),x&&(x.plotgroup=ug.select(this),yY(e,x),T||(x.draglayer=tt(r._draggers,"g",m)))})};vn.rangePlot=function(e,r,t){yY(e,r),mY(e,r,t),y9e.style(e)};function x9e(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,y=d._id+p._id,m=r._plots[y];s.overlays=[],y!==l&&m?(s.mainplot=y,s.mainplotinfo=m,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&&(_+=bf+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 yY(e,r){var t=e._fullLayout,a=r.plotgroup,n=r.id,i=n.indexOf(bf),o=i!==-1,l=Ro.layerValue2layerClass[r.xaxis.layer],s=Ro.layerValue2layerClass[r.yaxis.layer],u=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=tt(a,"path","xlines-above"),r.ylines=tt(a,"path","ylines-above"),r.xaxislayer=tt(a,"g","xaxislayer-above"),r.yaxislayer=tt(a,"g","yaxislayer-above");else{if(!o){var v=tt(a,"g","layer-subplot");r.shapelayer=tt(v,"g","shapelayer"),r.imagelayer=tt(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=tt(a,"g","minor-gridlayer"),r.gridlayer=tt(a,"g","gridlayer"),r.zerolinelayer=tt(a,"g","zerolinelayer"));var d=tt(a,"g","layer-between");r.shapelayerBetween=tt(d,"g","shapelayer"),r.imagelayerBetween=tt(d,"g","imagelayer"),tt(a,"path","xlines-below"),tt(a,"path","ylines-below"),r.overlinesBelow=tt(a,"g","overlines-below"),tt(a,"g","xaxislayer-below"),tt(a,"g","yaxislayer-below"),r.overaxesBelow=tt(a,"g","overaxes-below")}r.overplot=tt(a,"g","overplot"),r.plot=tt(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=tt(a,"g","zerolinelayer-above"),o||(r.xlines=tt(a,"path","xlines-above"),r.ylines=tt(a,"path","ylines-above"),r.overlinesAbove=tt(a,"g","overlines-above"),tt(a,"g","xaxislayer-above"),tt(a,"g","yaxislayer-above"),r.overaxesAbove=tt(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,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,tt(c.overlinesBelow,"path",y),tt(c.overlinesBelow,"path",m),tt(c.overaxesBelow,"g",y),tt(c.overaxesBelow,"g",m),r.plot=tt(c.overplot,"g",n),tt(c.overlinesAbove,"path",y),tt(c.overlinesAbove,"path",m),tt(c.overaxesAbove,"g",y),tt(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(u||(sg(r.minorGridlayer,"g",r.xaxis._id),sg(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(Gs.idSort),sg(r.gridlayer,"g",r.xaxis._id),sg(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(Gs.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function gY(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=ug.select(this);f.remove(),bY(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 bY(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}vn.toSVG=function(e){var r=e._fullLayout._glimages,t=ug.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:b9e.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n)};vn.updateFx=G7().updateFx});var _Y=z((tWe,xY)=>{"use strict";var fg=Jn();xY.exports={hasLines:fg.hasLines,hasMarkers:fg.hasMarkers,hasText:fg.hasText,isBubble:fg.isBubble,attributes:Vi(),layoutAttributes:Rp(),supplyDefaults:HU(),crossTraceDefaults:YU(),supplyLayoutDefaults:jU(),calc:Wy().calc,crossTraceCalc:yG(),arraysToCalcdata:Vy(),plot:Lw(),colorbar:Ed(),formatLabels:Cw(),style:mf().style,styleOnSelect:mf().styleOnSelect,hoverPoints:Fw(),selectPoints:zw(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Qi(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var AY=z((aWe,TY)=>{"use strict";var _9e=Er(),w9e=Sr(),wY=R7(),Yw=ke(),T9e=Yw.strScale,A9e=Yw.strRotate,M9e=Yw.strTranslate;TY.exports=function(r,t,a){var n=r.node(),i=wY[a.arrowhead||0],o=wY[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,y,m;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(y=Math.atan2(T,b),m=y+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(y),x=c*Math.sin(y);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(y),k=v*Math.sin(y);d.x-=_,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),q="";if(A<c+v){I();return}var C=n.getPointAtLength(0),E=n.getPointAtLength(.1);y=Math.atan2(C.y-E.y,C.x-E.x),d=n.getPointAtLength(Math.min(v,A)),q="0px,"+v+"px,";var P=n.getPointAtLength(A),R=n.getPointAtLength(A-.1);m=Math.atan2(P.y-R.y,P.x-R.x),p=n.getPointAtLength(Math.max(0,A-c));var N=q?v+c:c;q+=A-N+"px,"+A+"px",r.style("stroke-dasharray",q)}function I(){r.style("stroke-dasharray","0px,100px")}function O(U,Y,G,V){U.path&&(U.noRotate&&(G=0),_9e.select(n.parentNode).append("path").attr({class:r.attr("class"),d:U.path,transform:M9e(Y.x,Y.y)+A9e(G*180/Math.PI)+T9e(V)}).style({fill:w9e.rgb(a.arrowcolor),"stroke-width":0}))}u&&O(o,d,y,s),f&&O(i,p,m,l)}});var cg=z((nWe,LY)=>{"use strict";var MY=Er(),Vw=Tr(),k9e=va(),Vs=ke(),jw=Vs.strTranslate,Fd=Gr(),xf=Sr(),Wl=Zr(),kY=In(),Ww=Ca(),Xw=Rs(),Rd=Bi(),S9e=St().arrayEditor,q9e=AY();LY.exports={draw:L9e,drawOne:SY,drawRaw:qY};function L9e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&SY(e,t);return k9e.previousPromises(e)}function SY(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=Fd.getFromId(e,a.xref),i=Fd.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),qY(e,a,r,!1,n,i)}function Ys(e,r,t,a,n){var i=n[t],o=n[t+"ref"],l=t.indexOf("y")!==-1,s=Fd.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 qY(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=S9e(e.layout,f,r),v=c.modifyBase,d=c.modifyItem,p=c.getUpdateObj;o._infolayer.selectAll("."+u+'[data-index="'+t+'"]').remove();var y="clip"+o._uid+"_ann"+t;if(!r._input||r.visible===!1){MY.selectAll("#"+y).remove();return}var m={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(V){var W={index:t,annotation:r._input,fullAnnotation:r,event:V};return a&&(W.subplotId=a),W}var A=w.append("g").style("pointer-events",_?"all":null).call(Xw,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",k(MY.event))});r.hovertext&&A.on("mouseover",function(){var V=r.hoverlabel,W=V.font,j=this.getBoundingClientRect(),J=e.getBoundingClientRect();kY.loneHover({x0:j.left-J.left,x1:j.right-J.left,y:(j.top+j.bottom)/2-J.top,text:r.hovertext,color:V.bgcolor,borderColor:V.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=A.append("rect").attr("class","bg").style("stroke-width",q+"px").call(xf.stroke,r.bordercolor).call(xf.fill,r.bgcolor),R=r.width||r.height,N=o._topclips.selectAll("#"+y).data(R?[0]:[]);N.enter().append("clipPath").classed("annclip",!0).attr("id",y).append("rect"),N.exit().remove();var I=r.font,O=o._meta?Vs.templateString(r.text,o._meta):r.text,U=A.append("text").classed("annotation-text",!0).text(O);function Y(V){return V.call(Wl.font,I).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),Ww.convertToTspans(V,e,G),V}function G(){var V=U.selectAll("a");if(V.size()===1&&V.text()===U.text()){var W=A.insert("a",":first-child").attr({"xlink:xlink:href":V.attr("xlink:href"),"xlink:xlink:show":V.attr("xlink:show")}).style({cursor:"pointer"});W.node().appendChild(P.node())}var j=A.select(".annotation-text-math-group"),J=!j.empty(),te=Wl.bBox((J?j:U).node()),ae=te.width,se=te.height,$=r.width||ae,fe=r.height||se,ie=Math.round($+2*E),ue=Math.round(fe+2*E);function ce(pr,mr){return mr==="auto"&&(pr<1/3?mr="left":pr>2/3?mr="right":mr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[mr]}for(var oe=!1,be=["x","y"],Re=0;Re<be.length;Re++){var ye=be[Re],Ce=r[ye+"ref"]||ye,Me=r["a"+ye+"ref"],Le={x:n,y:i}[ye],De=(b+(ye==="x"?0:-90))*Math.PI/180,Ne=ie*Math.cos(De),qe=ue*Math.sin(De),Xe=Math.abs(Ne)+Math.abs(qe),$e=r[ye+"anchor"],We=r[ye+"shift"]*(ye==="x"?1:-1),Se=m[ye],Fe,Qe,re,xe,Ge,cr=Fd.getRefType(Ce);if(Le&&cr!=="domain"){var Pe=Le.r2fraction(r[ye]);(Pe<0||Pe>1)&&(Me===Ce?(Pe=Le.r2fraction(r["a"+ye]),(Pe<0||Pe>1)&&(oe=!0)):oe=!0),Fe=Le._offset+Le.r2p(r[ye]),xe=.5}else{var me=cr==="domain";ye==="x"?(re=r[ye],Fe=me?Le._offset+Le._length*re:Fe=l.l+l.w*re):(re=1-r[ye],Fe=me?Le._offset+Le._length*re:Fe=l.t+l.h*re),xe=r.showarrow?.5:re}if(r.showarrow){Se.head=Fe;var Ae=r["a"+ye];if(Ge=Ne*ce(.5,r.xanchor)-qe*ce(.5,r.yanchor),Me===Ce){var He=Fd.getRefType(Me);He==="domain"?(ye==="y"&&(Ae=1-Ae),Se.tail=Le._offset+Le._length*Ae):He==="paper"?ye==="y"?(Ae=1-Ae,Se.tail=l.t+l.h*Ae):Se.tail=l.l+l.w*Ae:Se.tail=Le._offset+Le.r2p(Ae),Qe=Ge}else Se.tail=Fe+Ae,Qe=Ge+Ae;Se.text=Se.tail+Ge;var Ze=o[ye==="x"?"width":"height"];if(Ce==="paper"&&(Se.head=Vs.constrain(Se.head,1,Ze-1)),Me==="pixel"){var Be=-Math.max(Se.tail-3,Se.text),je=Math.min(Se.tail+3,Se.text)-Ze;Be>0?(Se.tail+=Be,Se.text+=Be):je>0&&(Se.tail-=je,Se.text-=je)}Se.tail+=We,Se.head+=We}else Ge=Xe*ce(xe,$e),Qe=Ge,Se.text=Fe+Ge;Se.text+=We,Ge+=We,Qe+=We,r["_"+ye+"padplus"]=Xe/2+Qe,r["_"+ye+"padminus"]=Xe/2-Qe,r["_"+ye+"size"]=Xe,r["_"+ye+"shift"]=Ge}if(oe){A.remove();return}var tr=0,ir=0;if(r.align!=="left"&&(tr=($-ae)*(r.align==="center"?.5:1)),r.valign!=="top"&&(ir=(fe-se)*(r.valign==="middle"?.5:1)),J)j.select("svg").attr({x:E+tr-1,y:E+ir}).call(Wl.setClipUrl,R?y:null,e);else{var lr=E+ir-te.top,Ee=E+tr-te.left;U.call(Ww.positionText,Ee,lr).call(Wl.setClipUrl,R?y:null,e)}N.select("rect").call(Wl.setRect,E,E,$,fe),P.call(Wl.setRect,q/2,q/2,ie-q,ue-q),A.call(Wl.setTranslate,Math.round(m.x.text-ie/2),Math.round(m.y.text-ue/2)),w.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var Je=function(pr,mr){T.selectAll(".annotation-arrow-g").remove();var sr=m.x.head,yr=m.y.head,ne=m.x.tail+pr,ge=m.y.tail+mr,ze=m.x.text+pr,Oe=m.y.text+mr,Jr=Vs.rotationXYMatrix(b,ze,Oe),Kr=Vs.apply2DTransform(Jr),mt=Vs.apply2DTransform2(Jr),yt=+P.attr("width"),Lt=+P.attr("height"),Qt=ze-.5*yt,Va=Qt+yt,ea=Oe-.5*Lt,ja=ea+Lt,ln=[[Qt,ea,Qt,ja],[Qt,ja,Va,ja],[Va,ja,Va,ea],[Va,ea,Qt,ea]].map(mt);if(!ln.reduce(function(Ct,ta){return Ct^!!Vs.segmentsIntersect(sr,yr,sr+1e6,yr+1e6,ta[0],ta[1],ta[2],ta[3])},!1)){ln.forEach(function(Ct){var ta=Vs.segmentsIntersect(ne,ge,sr,yr,Ct[0],Ct[1],Ct[2],Ct[3]);ta&&(ne=ta.x,ge=ta.y)});var oa=r.arrowwidth,vr=r.arrowcolor,_t=r.arrowside,Yr=T.append("g").style({opacity:xf.opacity(vr)}).classed("annotation-arrow-g",!0),vt=Yr.append("path").attr("d","M"+ne+","+ge+"L"+sr+","+yr).style("stroke-width",oa+"px").call(xf.stroke,xf.rgb(vr));if(q9e(vt,_t,r),s.annotationPosition&&vt.node().parentNode&&!a){var Rt=sr,Mt=yr;if(r.standoff){var nt=Math.sqrt(Math.pow(sr-ne,2)+Math.pow(yr-ge,2));Rt+=r.standoff*(ne-sr)/nt,Mt+=r.standoff*(ge-yr)/nt}var ra=Yr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ne-Rt)+","+(ge-Mt),transform:jw(Rt,Mt)}).style("stroke-width",oa+6+"px").call(xf.stroke,"rgba(0,0,0,0)").call(xf.fill,"rgba(0,0,0,0)"),En,Vt;Rd.init({element:ra.node(),gd:e,prepFn:function(){var Ct=Wl.getTranslate(A);En=Ct.x,Vt=Ct.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Ct,ta){var aa=Kr(En,Vt),ht=aa[0]+Ct,Wa=aa[1]+ta;A.call(Wl.setTranslate,ht,Wa),d("x",Ys(n,Ct,"x",l,r)),d("y",Ys(i,ta,"y",l,r)),r.axref===r.xref&&d("ax",Ys(n,Ct,"ax",l,r)),r.ayref===r.yref&&d("ay",Ys(i,ta,"ay",l,r)),Yr.attr("transform",jw(Ct,ta)),w.attr({transform:"rotate("+b+","+ht+","+Wa+")"})},doneFn:function(){Vw.call("_guiRelayout",e,p());var Ct=document.querySelector(".js-notes-box-panel");Ct&&Ct.redraw(Ct.selectedObj)}})}}};if(r.showarrow&&Je(0,0),x){var Ie;Rd.init({element:A.node(),gd:e,prepFn:function(){Ie=w.attr("transform")},moveFn:function(pr,mr){var sr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Ys(n,pr,"ax",l,r)):d("ax",r.ax+pr),r.ayref===r.yref?d("ay",Ys(i,mr,"ay",l.w,r)):d("ay",r.ay+mr),Je(pr,mr);else{if(a)return;var yr,ne;if(n)yr=Ys(n,pr,"x",l,r);else{var ge=r._xsize/l.w,ze=r.x+(r._xshift-r.xshift)/l.w-ge/2;yr=Rd.align(ze+pr/l.w,ge,0,1,r.xanchor)}if(i)ne=Ys(i,mr,"y",l,r);else{var Oe=r._ysize/l.h,Jr=r.y-(r._yshift+r.yshift)/l.h-Oe/2;ne=Rd.align(Jr-mr/l.h,Oe,0,1,r.yanchor)}d("x",yr),d("y",ne),(!n||!i)&&(sr=Rd.getCursor(n?.5:yr,i?.5:ne,r.xanchor,r.yanchor))}w.attr({transform:jw(pr,mr)+Ie}),Xw(A,sr)},clickFn:function(pr,mr){r.captureevents&&e.emit("plotly_clickannotation",k(mr))},doneFn:function(){Xw(A),Vw.call("_guiRelayout",e,p());var pr=document.querySelector(".js-notes-box-panel");pr&&pr.redraw(pr.selectedObj)}})}}s.annotationText?U.call(Ww.makeEditable,{delegate:A,gd:e}).call(Y).on("edit",function(V){r.text=V,this.call(Y),d("text",V),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),Vw.call("_guiRelayout",e,p())}):U.call(Y)}});var FY=z((iWe,RY)=>{"use strict";var CY=ke(),C9e=Tr(),DY=St().arrayEditor;RY.exports={hasClickToShow:D9e,onClick:E9e};function D9e(e,r){var t=PY(e,r);return t.on.length>0||t.explicitOff.length>0}function E9e(e,r){var t=PY(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=DY(e.layout,"annotations",o[a[l]]),s.modifyItem("visible",!0),CY.extendFlat(i,s.getUpdateObj());for(l=0;l<n.length;l++)s=DY(e.layout,"annotations",o[n[l]]),s.modifyItem("visible",!1),CY.extendFlat(i,s.getUpdateObj());return C9e.call("update",e,{},i)}}function PY(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)===EY(u._xclick,v)&&d.d2r(c.y)===EY(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 EY(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var $w=z((oWe,zY)=>{"use strict";var Zw=ke(),qc=Sr();zY.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=qc.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),Zw.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:qc.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(qc.opacity(i)?qc.rgb(i):qc.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||qc.contrast(m)),T=Zw.extendFlat({},y.font);T.color||(T.color=b),Zw.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var IY=z((lWe,NY)=>{"use strict";var Jw=ke(),_f=Gr(),P9e=So(),R9e=$w(),F9e=yc();NY.exports=function(r,t){P9e(r,t,{name:"annotations",handleItemDefaults:z9e})};function z9e(e,r,t){function a(w,x){return Jw.coerce(e,r,F9e,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){R9e(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=_f.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=_f.getFromId(u,v);d._annIndices.push(r._index)}if(_f.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,y=_f.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;_f.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(Jw.noneOrAll(e,r,["x","y"]),o&&Jw.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),T=a("yclick");r._xclick=b===void 0?r.x:_f.cleanPosition(b,u,r.xref),r._yclick=T===void 0?r.y:_f.cleanPosition(T,u,r.yref)}}}});var HY=z((sWe,OY)=>{"use strict";var Kw=ke(),wf=Gr(),N9e=cg().draw;OY.exports=function(r){var t=r._fullLayout,a=Kw.filterVisible(t.annotations);if(a.length&&r._fullData.length)return Kw.syncOrAsync([N9e,I9e],r)};function I9e(e){var r=e._fullLayout;Kw.filterVisible(r.annotations).forEach(function(t){var a=wf.getFromId(e,t.xref),n=wf.getFromId(e,t.yref),i=wf.getRefType(t.xref),o=wf.getRefType(t.yref);t._extremes={},i==="range"&&BY(t,a),o==="range"&&BY(t,n)})}function BY(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,y=p+f,m=p-f,b;if(l===o){var T=wf.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),w=wf.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});b={min:[T.min[0],w.min[0]],max:[T.max[0],w.max[0]]}}else y=i?y+i:y,m=i?m-i:m,b=wf.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=b}});var GY=z((uWe,UY)=>{"use strict";var B9e=Ir(),O9e=E1();UY.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],y=null;i?y=O9e(p,t.range):y=Math.pow(10,p),B9e(y)||(y=null),n(f+d,y)}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 jY=z((fWe,VY)=>{"use strict";var Qw=cg(),YY=FY();VY.exports={moduleType:"component",name:"annotations",layoutAttributes:yc(),supplyLayoutDefaults:IY(),includeBasePlot:pd()("annotations"),calcAutorange:HY(),draw:Qw.draw,drawOne:Qw.drawOne,drawRaw:Qw.drawRaw,hasClickToShow:YY.hasClickToShow,onClick:YY.onClick,convertCoords:GY()}});var vg=z((cWe,WY)=>{"use strict";var Et=yc(),H9e=wo().overrideAll,U9e=St().templatedArray;WY.exports=H9e(U9e("annotation",{visible:Et.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Et.xanchor,xshift:Et.xshift,yanchor:Et.yanchor,yshift:Et.yshift,text:Et.text,textangle:Et.textangle,font:Et.font,width:Et.width,height:Et.height,opacity:Et.opacity,align:Et.align,valign:Et.valign,bgcolor:Et.bgcolor,bordercolor:Et.bordercolor,borderpad:Et.borderpad,borderwidth:Et.borderwidth,showarrow:Et.showarrow,arrowcolor:Et.arrowcolor,arrowhead:Et.arrowhead,startarrowhead:Et.startarrowhead,arrowside:Et.arrowside,arrowsize:Et.arrowsize,startarrowsize:Et.startarrowsize,arrowwidth:Et.arrowwidth,standoff:Et.standoff,startstandoff:Et.startstandoff,hovertext:Et.hovertext,hoverlabel:Et.hoverlabel,captureevents:Et.captureevents}),"calc","from-root")});var ZY=z((vWe,XY)=>{"use strict";var e8=ke(),G9e=Gr(),Y9e=So(),V9e=$w(),j9e=vg();XY.exports=function(r,t,a){Y9e(r,t,{name:"annotations",handleItemDefaults:W9e,fullLayout:a.fullLayout})};function W9e(e,r,t,a){function n(l,s){return e8.coerce(e,r,j9e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],G9e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(V9e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),e8.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),e8.noneOrAll(e,r,["ax","ay"])))}});var QY=z((hWe,KY)=>{"use strict";var $Y=ke(),JY=Gr();KY.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)X9e(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function X9e(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={},$Y.extendFlat(e._xa,i),JY.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={},$Y.extendFlat(e._ya,i),JY.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 rV=z((dWe,eV)=>{"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 Z9e(e,r){var t=r8(e.projection,r8(e.view,r8(e.model,[r[0],r[1],r[2],1])));return t}eV.exports=Z9e});var aV=z((pWe,tV)=>{"use strict";var $9e=cg().drawRaw,J9e=rV(),K9e=["x","y","z"];tV.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=K9e[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=J9e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),$9e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var oV=z((mWe,iV)=>{"use strict";var Q9e=Tr(),nV=ke();iV.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:vg()}}},layoutAttributes:vg(),handleDefaults:ZY(),includeBasePlot:eTe,convert:QY(),draw:aV()};function eTe(e,r){var t=Q9e.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&&(nV.pushUnique(r._basePlotModules,t),nV.pushUnique(r._subplots.gl3d,o))}}});var t8=z((bWe,fV)=>{"use strict";var yWe=qa(),lV=ka(),sV=Vi().line,rTe=Pi().dash,Fo=At().extendFlat,tTe=St().templatedArray,gWe=vd(),Lc=zn(),uV=yc(),{shapeTexttemplateAttrs:aTe,templatefallbackAttrs:nTe}=fi(),iTe=hp();fV.exports=tTe("shape",{visible:Fo({},Lc.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Fo({},Lc.legend,{editType:"calc+arraydraw"}),legendgroup:Fo({},Lc.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Fo({},Lc.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:lV({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Fo({},Lc.legendrank,{editType:"calc+arraydraw"}),legendwidth:Fo({},Lc.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:Fo({},uV.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:Fo({},uV.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:Fo({},sV.color,{editType:"arraydraw"}),width:Fo({},sV.width,{editType:"calc+arraydraw"}),dash:Fo({},rTe,{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:aTe({},{keys:Object.keys(iTe)}),texttemplatefallback:nTe({editType:"arraydraw"}),font:lV({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 vV=z((xWe,cV)=>{"use strict";var Cc=ke(),wi=Gr(),oTe=So(),lTe=t8(),zd=Bs();cV.exports=function(r,t){oTe(r,t,{name:"shapes",handleItemDefaults:uTe})};function sTe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function uTe(e,r,t){function a(w,x){return Cc.coerce(e,r,lTe,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"),Cc.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},A,q,C,E;let P=w+"ref",R=e[P];if(Array.isArray(R)&&R.length>0){let N=zd.countDefiningCoords(s,o,w);E=wi.coerceRefArray(e,r,k,w,void 0,"paper",N),r["_"+w+"refArray"]=!0}else E=wi.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(N){wi.getRefType(N)==="range"&&(A=wi.getFromId(k,N),A&&A._shapeIndices.indexOf(r._index)===-1&&A._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(N){let I=E[N];wi.getRefType(I)==="range"?(A=wi.getFromId(k,I),q=zd.shapePositionToRange(A),C=zd.rangeToShapePosition(A),(A.type==="category"||A.type==="multicategory")&&a(w+N+"shift")):q=C=Cc.identity;let U=w+N,Y=e[U];if(e[U]=q(e[U],!0),_==="pixel"?a(U,p[N]):wi.coercePosition(r,k,a,I,U,d[N]),r[U]=C(r[U]),e[U]=Y,N===0&&_==="pixel"){let G=e[x];e[x]=q(e[x],!0),wi.coercePosition(r,k,a,I,x,.25),r[x]=C(r[x]),e[x]=G}});else{if(wi.getRefType(E)==="range"?(A=wi.getFromId(k,E),A._shapeIndices.push(r._index),C=zd.rangeToShapePosition(A),q=zd.shapePositionToRange(A),u&&(A.type==="category"||A.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):q=C=Cc.identity,u){let I=w+"0",O=w+"1",U=e[I],Y=e[O];e[I]=q(e[I],!0),e[O]=q(e[O],!0),_==="pixel"?(a(I,p[0]),a(O,p[1])):(wi.coercePosition(r,k,a,E,I,d[0]),wi.coercePosition(r,k,a,E,O,d[1])),r[I]=C(r[I]),r[O]=C(r[O]),e[I]=U,e[O]=Y}if(_==="pixel"){let I=e[x];e[x]=q(e[x],!0),wi.coercePosition(r,k,a,E,x,.25),r[x]=C(r[x]),e[x]=I}}}),u&&Cc.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",m,b;if(u&&(m=a("label.texttemplate"),a("label.texttemplatefallback")),m||(b=a("label.text")),b||m){a("label.textangle");var T=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",sTe(y,T)),a("label.padding"),Cc.coerceFont(a,"label.font",t.font)}}});var pV=z((_We,dV)=>{"use strict";var fTe=Sr(),hV=ke();function cTe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}dV.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"),hV.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",fTe.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",cTe(o,u)),a("newshape.label.padding"),hV.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var wV=z((wWe,_V)=>{"use strict";var a8=ke(),eo=Gr(),yl=Wh(),n8=Bs();_V.exports=function(r){var t=r._fullLayout,a=a8.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=eo.getRefType(i.xref),u=eo.getRefType(i.yref);if(s==="array"){let f=mV(r,i,"x");Object.entries(f).forEach(([c,v])=>{o=eo.getFromId(r,c),i._extremes[o._id]=eo.findExtremes(o,v,yV(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=eo.getFromId(r,i.xref),l=bV(o,i,yl.paramIsX),l&&(i._extremes[o._id]=eo.findExtremes(o,l,yV(i))));if(u==="array"){let f=mV(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=eo.getFromId(r,c),i._extremes[o._id]=eo.findExtremes(o,v,gV(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=eo.getFromId(r,i.yref),l=bV(o,i,yl.paramIsY),l&&(i._extremes[o._id]=eo.findExtremes(o,l,gV(i))))}};function mV(e,r,t){let a=r[t+"ref"],n=t==="x"?yl.paramIsX:yl.paramIsY;function i(c,v){c==="paper"||eo.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(yl.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 y=v.slice(1).match(yl.paramRE);y&&y.length>p&&(i(a[l],y[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let v=eo.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 yV(e){return xV(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function gV(e){return xV(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function xV(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?n8.extractPathCoords(n,i?yl.paramIsY:yl.paramIsX):[t,a],u=a8.aggNums(Math.max,null,s),f=a8.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 bV(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(yl.segmentRE),p,y,m,b,T;for(e.type==="date"&&(u=n8.decodeDate(u)),p=0;p<d.length;p++)y=d[p],m=t[y.charAt(0)].drawn,m!==void 0&&(b=d[p].slice(1).match(yl.paramRE),!(!b||b.length<m)&&(T=u(b[m]),T<c&&(c=T),T>v&&(v=T)));if(v>=c)return[c,v]}}});var MV=z((TWe,AV)=>{"use strict";var TV=Qm();AV.exports={moduleType:"component",name:"shapes",layoutAttributes:t8(),supplyLayoutDefaults:vV(),supplyDrawNewShapeDefaults:pV(),includeBasePlot:pd()("shapes"),calcAutorange:wV(),draw:TV.draw,drawOne:TV.drawOne}});var i8=z((MWe,SV)=>{"use strict";var kV=qa(),vTe=St().templatedArray,AWe=vd();SV.exports=vTe("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 LV=z((kWe,qV)=>{"use strict";var hTe=ke(),o8=Gr(),dTe=So(),pTe=i8(),mTe="images";qV.exports=function(r,t){var a={name:mTe,handleItemDefaults:yTe};dTe(r,t,a)};function yTe(e,r,t){function a(v,d){return hTe.coerce(e,r,pTe,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=o8.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=o8.getFromId(o,f);c._imgIndices.push(r._index)}o8.coercePosition(r,o,a,f,u,0)}return r}});var PV=z((SWe,EV)=>{"use strict";var CV=Er(),gTe=Zr(),Dc=Gr(),DV=ba(),bTe=Il();EV.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=DV.ref2id(s.xref)+DV.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 _=CV.select(this);if(this._imgSrc!==x.source)if(_.attr("xmlns",bTe.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(A){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),A()},_.on("error",C),q.src=x.source,this._imgSrc=x.source;function C(){_.remove(),A()}}.bind(this));r._promises.push(k)}}function v(x){var _=CV.select(this),k=Dc.getFromId(r,x.xref),A=Dc.getFromId(r,x.yref),q=Dc.getRefType(x.xref)==="domain",C=Dc.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,A!==void 0?R=typeof x.yref=="string"&&C?A._length*x.sizey:Math.abs(A.l2p(x.sizey)-A.l2p(0)):R=x.sizey*E.h;var N=P*f.x[x.xanchor].offset,I=R*f.y[x.yanchor].offset,O=f.x[x.xanchor].sizing+f.y[x.yanchor].sizing,U,Y;switch(k!==void 0?U=typeof x.xref=="string"&&q?k._length*x.x+k._offset:k.r2p(x.x)+k._offset:U=x.x*E.w+E.l,U+=N,A!==void 0?Y=typeof x.yref=="string"&&C?A._length*(1-x.y)+A._offset:A.r2p(x.y)+A._offset:Y=E.h-x.y*E.h+E.t,Y+=I,x.sizing){case"fill":O+=" slice";break;case"stretch":O="none";break}_.attr({x:U,y:Y,width:P,height:R,preserveAspectRatio:O,opacity:x.opacity});var G=k&&Dc.getRefType(x.xref)!=="domain"?k._id:"",V=A&&Dc.getRefType(x.yref)!=="domain"?A._id:"",W=G+V;gTe.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 y=t._imageLowerLayer.selectAll("image").data(i,d),m=t._imageUpperLayer.selectAll("image").data(a,d);y.enter().append("image"),m.enter().append("image"),y.exit().remove(),m.exit().remove(),y.each(function(x){c.bind(this)(x),v.bind(this)(x)}),m.each(function(x){c.bind(this)(x),v.bind(this)(x)}),y.sort(p),m.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 zV=z((qWe,FV)=>{"use strict";var RV=Ir(),xTe=E1();FV.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,y=null;if(i){p=xTe(v,t.range);var m=d/Math.pow(10,p)/2;y=2*Math.log(m+Math.sqrt(1+m*m))/Math.LN10}else p=Math.pow(10,v),y=p*(Math.pow(10,d/2)-Math.pow(10,-d/2));RV(p)?RV(y)||(y=null):(p=null,y=null),n(f+s,p),n(f+"size"+s,y)}}}});var IV=z((LWe,NV)=>{"use strict";NV.exports={moduleType:"component",name:"images",layoutAttributes:i8(),supplyLayoutDefaults:LV(),includeBasePlot:pd()("images"),draw:PV(),convertCoords:zV()}});var hg=z((CWe,BV)=>{"use strict";BV.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:"  "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var l8=z((DWe,HV)=>{"use strict";var _Te=ka(),wTe=Ei(),TTe=At().extendFlat,ATe=wo().overrideAll,MTe=dp(),OV=St().templatedArray,kTe=OV("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}});HV.exports=ATe(OV("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:kTe,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:TTe(MTe({editType:"arraydraw"}),{}),font:_Te({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:wTe.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var VV=z((EWe,YV)=>{"use strict";var dg=ke(),UV=So(),GV=l8(),STe=hg(),qTe=STe.name,LTe=GV.buttons;YV.exports=function(r,t){var a={name:qTe,handleItemDefaults:CTe};UV(r,t,a)};function CTe(e,r,t){function a(o,l){return dg.coerce(e,r,GV,o,l)}var n=UV(e,r,{name:"buttons",handleItemDefaults:DTe}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),dg.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),dg.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function DTe(e,r){function t(n,i){return dg.coerce(e,r,LTe,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 XV=z((PWe,WV)=>{"use strict";WV.exports=jt;var zo=Er(),jV=Sr(),Ec=Zr(),pg=ke();function jt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}jt.barWidth=2;jt.barLength=20;jt.barRadius=2;jt.barPad=1;jt.barColor="#808BA4";jt.prototype.enable=function(r,t,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",y=c==="up",m=s,b=f,T,w,x,_;!v&&!d&&!p&&!y&&(this.position.direction="down",v=!0);var k=v||y;k?(T=l,w=T+m,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+m,T=Math.max(w-m,0),m=w-T):(T=l,w=Math.min(T+m,i),m=w-T)),this._box={l:T,t:x,w:m,h:b};var A=s>m,q=jt.barLength+2*jt.barPad,C=jt.barWidth+2*jt.barPad,E=l,P=u+f;P+C>o&&(P=o-C);var R=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(jV.fill,jt.barColor),A?(this.hbar=R.attr({rx:jt.barRadius,ry:jt.barRadius,x:E,y:P,width:q,height:C}),this._hbarXMin=E+q/2,this._hbarTranslateMax=m-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var N=f>b,I=jt.barWidth+2*jt.barPad,O=jt.barLength+2*jt.barPad,U=l+s,Y=u;U+I>i&&(U=i-I);var G=this.container.selectAll("rect.scrollbar-vertical").data(N?[0]:[]);G.exit().on(".drag",null).remove(),G.enter().append("rect").classed("scrollbar-vertical",!0).call(jV.fill,jt.barColor),N?(this.vbar=G.attr({rx:jt.barRadius,ry:jt.barRadius,x:U,y:Y,width:I,height:O}),this._vbarYMin=Y+O/2,this._vbarTranslateMax=b-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,W=T-.5,j=N?w+I+.5:w+.5,J=x-.5,te=A?_+C+.5:_+.5,ae=n._topdefs.selectAll("#"+V).data(A||N?[0]:[]);if(ae.exit().remove(),ae.enter().append("clipPath").attr("id",V).append("rect"),A||N?(this._clipRect=ae.select("rect").attr({x:Math.floor(W),y:Math.floor(J),width:Math.ceil(j)-Math.floor(W),height:Math.ceil(te)-Math.floor(J)}),this.container.call(Ec.setClipUrl,V,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(Ec.setClipUrl,null),delete this._clipRect),A||N){var se=zo.behavior.drag().on("dragstart",function(){zo.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(se);var $=zo.behavior.drag().on("dragstart",function(){zo.event.sourceEvent.preventDefault(),zo.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call($),N&&this.vbar.on(".drag",null).call($)}this.setTranslate(t,a)};jt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Ec.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};jt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=zo.event.dx),this.vbar&&(t-=zo.event.dy),this.setTranslate(r,t)};jt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=zo.event.deltaY),this.vbar&&(t+=zo.event.deltaY),this.setTranslate(r,t)};jt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=pg.constrain(zo.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=pg.constrain(zo.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};jt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=pg.constrain(r||0,0,a),t=pg.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Ec.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(Ec.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Ec.setTranslate,r,t+o*this._vbarTranslateMax)}}});var nj=z((RWe,aj)=>{"use strict";var Pc=Er(),Nd=va(),Id=Sr(),Rc=Zr(),Ti=ke(),mg=Ca(),ETe=St().arrayEditor,$V=Qa().LINE_SPACING,qr=hg(),PTe=XV();aj.exports=function(r){var t=r._fullLayout,a=Ti.filterVisible(t[qr.name]);function n(v){Nd.autoMargin(r,rj(v))}var i=t._menulayer.selectAll("g."+qr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(qr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Pc.select(this).selectAll("g."+qr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+qr.headerGroupClassName).data(a,RTe);o.enter().append("g").classed(qr.headerGroupClassName,!0);for(var l=Ti.ensureSingle(i,"g",qr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s<a.length;s++){var u=a[s];OTe(r,u)}var f="updatemenus"+t._uid,c=new PTe(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=Pc.select(this),p=v.type==="dropdown"?l:null;Nd.manageCommandObserver(r,v,v.buttons,function(y){s8(r,v,v.buttons[y.index],d,p,c,y.index,!0)}),v.type==="dropdown"?(KV(r,d,l,c,v),JV(l,v)&&Bd(r,d,l,c,v)):Bd(r,d,null,null,v)})}};function RTe(e){return e._index}function FTe(e){return+e.attr(qr.menuIndexAttrName)==-1}function JV(e,r){return+e.attr(qr.menuIndexAttrName)===r._index}function s8(e,r,t,a,n,i,o,l){r.active=o,ETe(e.layout,qr.name,r).applyUpdate("active",o),r.type==="buttons"?Bd(e,a,null,null,r):r.type==="dropdown"&&(n.attr(qr.menuIndexAttrName,"-1"),KV(e,a,n,i,r),l||Bd(e,a,n,i,r))}function KV(e,r,t,a,n){var i=Ti.ensureSingle(r,"g",qr.headerClassName,function(v){v.style("pointer-events","all")}),o=n._dims,l=n.active,s=n.buttons[l]||qr.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(f8,n,s,e).call(tj,n,u,f);var c=Ti.ensureSingle(r,"text",qr.headerArrowClassName,function(v){v.attr("text-anchor","end").call(Rc.font,n.font).text(qr.arrowSymbol[n.direction])});c.attr({x:o.headerWidth-qr.arrowOffsetX+n.pad.l,y:o.headerHeight/2+qr.textOffsetY+n.pad.t}),i.on("click",function(){t.call(u8,String(JV(t,n)?-1:n._index)),Bd(e,r,t,a,n)}),i.on("mouseover",function(){i.call(QV)}),i.on("mouseout",function(){i.call(ej,n)}),Rc.setTranslate(r,o.lx,o.ly)}function Bd(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!FTe(t)||n.type==="buttons"?n.buttons:[],o=n.type==="dropdown"?qr.dropdownButtonClassName:qr.buttonClassName,l=t.selectAll("g."+o).data(Ti.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+qr.gapButtonHeader:f=v.headerWidth+qr.gapButtonHeader),n.type==="dropdown"&&n.direction==="up"&&(c=-qr.gapButtonHeader+qr.gapButton-v.openHeight),n.type==="dropdown"&&n.direction==="left"&&(f=-qr.gapButtonHeader+qr.gapButton-v.openWidth);var p={x:v.lx+f+n.pad.l,y:v.ly+c+n.pad.t,yPad:qr.gapButton,xPad:qr.gapButton,index:0},y={l:p.x+n.borderwidth,t:p.y+n.borderwidth};l.each(function(m,b){var T=Pc.select(this);T.call(f8,n,m,e).call(tj,n,p),T.on("click",function(){Pc.event.defaultPrevented||(m.execute&&(m.args2&&n.active===b?(s8(e,n,m,r,t,a,-1),Nd.executeAPICommand(e,m.method,m.args2)):(s8(e,n,m,r,t,a,b),Nd.executeAPICommand(e,m.method,m.args))),e.emit("plotly_buttonclicked",{menu:n,button:m,active:n.active}))}),T.on("mouseover",function(){T.call(QV)}),T.on("mouseout",function(){T.call(ej,n),l.call(ZV,n)})}),l.call(ZV,n),d?(y.w=Math.max(v.openWidth,v.headerWidth),y.h=p.y-y.t):(y.w=p.x-y.l,y.h=Math.max(v.openHeight,v.headerHeight)),y.direction=n.direction,a&&(l.size()?zTe(e,r,t,a,n,y):NTe(a))}function zTe(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]+qr.gapButton;else for(f=0,v=0;v<u;v++)f+=s.widths[v]+qr.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 NTe(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 f8(e,r,t,a){e.call(ITe,r).call(BTe,r,t,a)}function ITe(e,r){var t=Ti.ensureSingle(e,"rect",qr.itemRectClassName,function(a){a.attr({rx:qr.rx,ry:qr.ry,"shape-rendering":"crispEdges"})});t.call(Id.stroke,r.bordercolor).call(Id.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function BTe(e,r,t,a){var n=Ti.ensureSingle(e,"text",qr.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),i=t.label,o=a._fullLayout._meta;o&&(i=Ti.templateString(i,o)),n.call(Rc.font,r.font).text(i).call(mg.convertToTspans,a)}function ZV(e,r){var t=r.active;e.each(function(a,n){var i=Pc.select(this);n===t&&r.showactive&&i.select("rect."+qr.itemRectClassName).call(Id.fill,qr.activeColor)})}function QV(e){e.select("rect."+qr.itemRectClassName).call(Id.fill,qr.hoverColor)}function ej(e,r){e.select("rect."+qr.itemRectClassName).call(Id.fill,r.bgcolor)}function OTe(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=Rc.tester.selectAll("g."+qr.dropdownButtonClassName).data(Ti.filterVisible(r.buttons));a.enter().append("g").classed(qr.dropdownButtonClassName,!0);var n=["up","down"].indexOf(r.direction)!==-1;a.each(function(f,c){var v=Pc.select(this);v.call(f8,r,f,e);var d=v.select("."+qr.itemTextClassName),p=d.node()&&Rc.bBox(d.node()).width,y=Math.max(p+qr.textPadX,qr.minWidth),m=r.font.size*$V,b=mg.lineCount(d),T=Math.max(m*b,qr.minHeight)+qr.textOffsetY;T=Math.ceil(T),y=Math.ceil(y),t.widths[c]=y,t.heights[c]=T,t.height1=Math.max(t.height1,T),t.width1=Math.max(t.width1,y),n?(t.totalWidth=Math.max(t.totalWidth,y),t.openWidth=t.totalWidth,t.totalHeight+=T+qr.gapButton,t.openHeight+=T+qr.gapButton):(t.totalWidth+=y+qr.gapButton,t.openWidth+=y+qr.gapButton,t.totalHeight=Math.max(t.totalHeight,T),t.openHeight=t.totalHeight)}),n?t.totalHeight-=qr.gapButton:t.totalWidth-=qr.gapButton,t.headerWidth=t.width1+qr.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(n?(t.width1+=qr.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=qr.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";Ti.isRightAnchor(r)&&(t.lx-=i,s="right"),Ti.isCenterAnchor(r)&&(t.lx-=i/2,s="center");var u="top";Ti.isBottomAnchor(r)&&(t.ly-=o,u="bottom"),Ti.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),Nd.autoMargin(e,rj(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 rj(e){return qr.autoMarginIdRoot+e._index}function tj(e,r,t,a){a=a||{};var n=e.select("."+qr.itemRectClassName),i=e.select("."+qr.itemTextClassName),o=r.borderwidth,l=t.index,s=r._dims;Rc.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*$V,v=mg.lineCount(i),d=(v-1)*c/2;mg.positionText(i,qr.textOffsetX,f/2-d+qr.textOffsetY),u?t.y+=s.heights[l]+t.yPad:t.x+=s.widths[l]+t.xPad,t.index++}function u8(e,r){e.attr(qr.menuIndexAttrName,r||"-1").selectAll("g."+qr.dropdownButtonClassName).remove()}});var oj=z((FWe,ij)=>{"use strict";var HTe=hg();ij.exports={moduleType:"component",name:HTe.name,layoutAttributes:l8(),supplyLayoutDefaults:VV(),draw:nj()}});var Od=z((zWe,lj)=>{"use strict";lj.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var c8=z((NWe,fj)=>{"use strict";var sj=ka(),UTe=dp(),GTe=At().extendDeepAll,YTe=wo().overrideAll,VTe=mh(),uj=St().templatedArray,Tf=Od(),jTe=uj("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}});fj.exports=YTe(uj("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:jTe,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:GTe(UTe({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:VTe.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:sj({})},font:sj({}),activebgcolor:{valType:"color",dflt:Tf.gripBgActiveColor},bgcolor:{valType:"color",dflt:Tf.railBgColor},bordercolor:{valType:"color",dflt:Tf.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Tf.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Tf.tickLength},tickcolor:{valType:"color",dflt:Tf.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Tf.minorTickLength}}),"arraydraw","from-root")});var dj=z((IWe,hj)=>{"use strict";var Fc=ke(),cj=So(),vj=c8(),WTe=Od(),XTe=WTe.name,ZTe=vj.steps;hj.exports=function(r,t){cj(r,t,{name:XTe,handleItemDefaults:$Te})};function $Te(e,r,t){function a(c,v){return Fc.coerce(e,r,vj,c,v)}for(var n=cj(e,r,{name:"steps",handleItemDefaults:JTe}),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=Fc.filterVisible(n),u=a("active");(n[u]||{}).visible||(r.active=s[0]._index),a("x"),a("y"),Fc.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"),Fc.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),Fc.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 JTe(e,r){function t(i,o){return Fc.coerce(e,r,ZTe,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 Aj=z((BWe,Tj)=>{"use strict";var No=Er(),yg=va(),js=Sr(),Io=Zr(),Ai=ke(),KTe=Ai.strTranslate,Hd=Ca(),QTe=St().arrayEditor,Or=Od(),d8=Qa(),yj=d8.LINE_SPACING,v8=d8.FROM_TL,h8=d8.FROM_BR;Tj.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=eAe(a,r),i=a._infolayer.selectAll("g."+Or.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Or.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),yg.autoMargin(r,gj(f))}if(i.exit().each(function(){No.select(this).selectAll("g."+Or.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Or.groupClassName).data(n,rAe);l.enter().append("g").classed(Or.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s<n.length;s++){var u=n[s];tAe(r,u)}l.each(function(f){var c=No.select(this);lAe(f),yg.manageCommandObserver(r,f,f._visibleSteps,function(v){var d=c.data()[0];d.active!==v.index&&(d._dragging||xj(r,c,d,v.index,!1,!0))}),aAe(r,No.select(this),f)})}};function gj(e){return Or.autoMarginIdRoot+e._index}function eAe(e,r){for(var t=e[Or.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function rAe(e){return e._index}function tAe(e,r){var t=Io.tester.selectAll("g."+Or.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Or.labelGroupClass,!0);var a=0,n=0;t.each(function(p){var y=No.select(this),m=bj(y,{step:p},r),b=m.node();if(b){var T=Io.bBox(b);n=Math.max(n,T.height),a=Math.max(a,T.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(Or.railWidth,Or.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*Or.stepInset,s=l/(r._stepCount-1),u=a+Or.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=Io.tester.append("g");t.each(function(p){var y=gg(f,r,p.label),m=y.node()&&Io.bBox(y.node())||{width:0,height:0},b=Hd.lineCount(y);i.currentValueMaxWidth=Math.max(i.currentValueMaxWidth,Math.ceil(m.width)),i.currentValueHeight=Math.max(i.currentValueHeight,Math.ceil(m.height)),i.currentValueMaxLines=Math.max(i.currentValueMaxLines,b)}),i.currentValueTotalHeight=i.currentValueHeight+r.currentvalue.offset,f.remove()}i.height=i.currentValueTotalHeight+Or.tickOffset+r.ticklen+Or.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";Ai.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),Ai.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var v="top";Ai.isBottomAnchor(r)&&(i.ly-=i.height,v="bottom"),Ai.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*h8[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*h8[c]):(d.x=r.x,d.l=i.outerLength*v8[c],d.r=i.outerLength*h8[c]),yg.autoMargin(e,gj(r),d)}function aAe(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(gg,t).call(uAe,t).call(iAe,t).call(oAe,t).call(sAe,e,t).call(nAe,e,t);var a=t._dims;Io.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(wj,t,!1),r.call(gg,t)}function gg(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-Or.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=Or.currentValueInset,i="left"}var o=Ai.ensureSingle(e,"text",Or.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=Ai.templateString(s,u)),l+=s}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),o.call(Io.font,r.currentvalue.font).text(l).call(Hd.convertToTspans,r._gd);var f=Hd.lineCount(o),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*yj;return Hd.positionText(o,n,c),o}}function nAe(e,r,t){var a=Ai.ensureSingle(e,"rect",Or.gripRectClass,function(n){n.call(_j,r,e,t).style("pointer-events","all")});a.attr({width:Or.gripWidth,height:Or.gripHeight,rx:Or.gripRadius,ry:Or.gripRadius}).call(js.stroke,t.bordercolor).call(js.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function bj(e,r,t){var a=Ai.ensureSingle(e,"text",Or.labelClass,function(o){o.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=Ai.templateString(n,i)),a.call(Io.font,t.font).text(n).call(Hd.convertToTspans,t._gd),a}function iAe(e,r){var t=Ai.ensureSingle(e,"g",Or.labelsClass),a=r._dims,n=t.selectAll("g."+Or.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(Or.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var o=No.select(this);o.call(bj,i,r),Io.setTranslate(o,p8(r,i.fraction),Or.tickOffset+r.ticklen+r.font.size*yj+Or.labelOffset+a.currentValueTotalHeight)})}function pj(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),o=t._visibleSteps[i]._index;o!==t.active&&xj(e,r,t,o,!0,n)}function xj(e,r,t,a,n,i){var o=t.active;t.active=a,QTe(e.layout,Or.name,t).applyUpdate("active",a);var l=t.steps[t.active];r.call(wj,t,i),r.call(gg,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&&yg.executeAPICommand(e,s.method,s.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function _j(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=No.select(r);function i(){return t.data()[0]}function o(){var l=i();r.emit("plotly_sliderstart",{slider:l});var s=t.select("."+Or.gripRectClass);No.event.stopPropagation(),No.event.preventDefault(),s.call(js.fill,l.activebgcolor);var u=mj(l,No.mouse(a)[0]);pj(r,t,l,u,!0),l._dragging=!0;function f(){var v=i(),d=mj(v,No.mouse(a)[0]);pj(r,t,v,d,!1)}n.on("mousemove",f),n.on("touchmove",f);function c(){var v=i();v._dragging=!1,s.call(js.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 oAe(e,r){var t=e.selectAll("rect."+Or.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(Or.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=No.select(this);l.attr({height:o?r.ticklen:r.minorticklen}).call(js.fill,r.tickcolor),Io.setTranslate(l,p8(r,i/(r._stepCount-1))-.5*r.tickwidth,(o?Or.tickOffset:Or.minorTickOffset)+a.currentValueTotalHeight)})}function lAe(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 wj(e,r,t){for(var a=e.select("rect."+Or.gripRectClass),n=0,i=0;i<r._stepCount;i++)if(r._visibleSteps[i]._index===r.active){n=i;break}var o=p8(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",KTe(o-Or.gripWidth*.5,r._dims.currentValueTotalHeight))}}function p8(e,r){var t=e._dims;return t.inputAreaStart+Or.stepInset+(t.inputAreaLength-2*Or.stepInset)*Math.min(1,Math.max(0,r))}function mj(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Or.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Or.stepInset-2*t.inputAreaStart)))}function sAe(e,r,t){var a=t._dims,n=Ai.ensureSingle(e,"rect",Or.railTouchRectClass,function(i){i.call(_j,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Or.tickOffset+t.ticklen+a.labelHeight)}).call(js.fill,t.bgcolor).attr("opacity",0),Io.setTranslate(n,0,a.currentValueTotalHeight)}function uAe(e,r){var t=r._dims,a=t.inputAreaLength-Or.railInset*2,n=Ai.ensureSingle(e,"rect",Or.railRectClass);n.attr({width:a,height:Or.railWidth,rx:Or.railRadius,ry:Or.railRadius,"shape-rendering":"crispEdges"}).call(js.stroke,r.bordercolor).call(js.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Io.setTranslate(n,Or.railInset,(t.inputAreaWidth-Or.railWidth)*.5+t.currentValueTotalHeight)}});var kj=z((OWe,Mj)=>{"use strict";var fAe=Od();Mj.exports={moduleType:"component",name:fAe.name,layoutAttributes:c8(),supplyLayoutDefaults:dj(),draw:Aj()}});var bg=z((HWe,qj)=>{"use strict";var Sj=Ei();qj.exports={bgcolor:{valType:"color",dflt:Sj.background,editType:"plot"},bordercolor:{valType:"color",dflt:Sj.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 m8=z((UWe,Lj)=>{"use strict";Lj.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 xg=z((GWe,Cj)=>{"use strict";Cj.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Pj=z(wg=>{"use strict";var cAe=ba(),vAe=Ca(),Dj=xg(),hAe=Qa().LINE_SPACING,_g=Dj.name;function Ej(e){var r=e&&e[_g];return r&&r.visible}wg.isVisible=Ej;wg.makeData=function(e){for(var r=cAe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(Ej(i)){a.push(i);var o=i[_g];o._id=_g+i._id,o._height=(e.height-t.b-t.t)*o.thickness,o._offsetShift=Math.floor(o.borderwidth/2)}}e._rangeSliderData=a};wg.autoMarginOpts=function(e,r){var t=e._fullLayout,a=r[_g],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(vAe.BR_TAG_ALL)||[]).length;o+=l*r.title.font.size*hAe}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,o),pad:Dj.extraPad+a._offsetShift*2}}});var Nj=z((VWe,zj)=>{"use strict";var Tg=ke(),Rj=St(),Fj=ba(),dAe=bg(),pAe=m8();zj.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Tg.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=Rj.newContainer(i,"rangeslider");function s(_,k){return Tg.coerce(o,l,dAe,_,k)}var u,f;function c(_,k){return Tg.coerce(u,f,pAe,_,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")))===Fj.name2id(a)}).map(function(_){return _.slice(_.indexOf("y"),_.length)}),y=Tg.simpleMap(p,Fj.id2name),m=0;m<y.length;m++){var b=y[m];u=o[b]||{},f=Rj.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 Bj=z((jWe,Ij)=>{"use strict";var mAe=ba().list,yAe=Ph().getAutoRange,gAe=xg();Ij.exports=function(r){for(var t=mAe(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[gAe.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=yAe(r,n))}}});var Gj=z((WWe,Uj)=>{"use strict";var Ag=Er(),bAe=Tr(),xAe=va(),ia=ke(),Mg=ia.strTranslate,Hj=Zr(),Ws=Sr(),_Ae=Q0(),wAe=Qi(),y8=ba(),TAe=Bi(),AAe=Rs(),jr=xg();Uj.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a<t.length;a++){var n=t[a][jr.name];n._clipId=n._id+"-"+r._uid}function i(l){return l._name}var o=r._infolayer.selectAll("g."+jr.containerClassName).data(t,i);o.exit().each(function(l){var s=l[jr.name];r._topdefs.select("#"+s._clipId).remove()}).remove(),t.length!==0&&(o.enter().append("g").classed(jr.containerClassName,!0).attr("pointer-events","all"),o.each(function(l){var s=Ag.select(this),u=l[jr.name],f=r[y8.id2name(l.anchor)],c=u[y8.id2name(l.anchor)];if(u.range){var v=ia.simpleMap(u.range,l.r2l),d=ia.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=ia.simpleMap(p,l.l2r)}l.cleanRange("rangeslider.range");var y=r._size,m=l.domain;u._width=y.w*(m[1]-m[0]);var b=Math.round(y.l+y.w*m[0]),T=Math.round(y.t+y.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+u._offsetShift+jr.extraPad);s.attr("transform",Mg(b,T)),u._rl=ia.simpleMap(u.range,l.r2l);var w=u._rl[0],x=u._rl[1],_=x-w;if(u.p2d=function(O){return O/u._width*_+w},u.d2p=function(O){return(O-w)/_*u._width},l.rangebreaks){var k=l.locateBreaks(w,x);if(k.length){var A,q,C=0;for(A=0;A<k.length;A++)q=k[A],C+=q.max-q.min;var E=u._width/(x-w-C),P=[-E*w];for(A=0;A<k.length;A++)q=k[A],P.push(P[P.length-1]-E*(q.max-q.min));for(u.d2p=function(O){for(var U=P[0],Y=0;Y<k.length;Y++){var G=k[Y];if(O>=G.max)U=P[Y+1];else if(O<G.min)break}return U+E*O},A=0;A<k.length;A++)q=k[A],q.pmin=u.d2p(q.min),q.pmax=u.d2p(q.max);u.p2d=function(O){for(var U=P[0],Y=0;Y<k.length;Y++){var G=k[Y];if(O>=G.pmax)U=P[Y+1];else if(O<G.pmin)break}return(O-U)/E}}}if(c.rangemode!=="match"){var R=f.r2l(c.range[0]),N=f.r2l(c.range[1]),I=N-R;u.d2pOppAxis=function(O){return(O-R)/I*u._height}}s.call(qAe,e,l,u).call(LAe,e,l,u).call(CAe,e,l,u).call(EAe,e,l,u,c).call(PAe,e,l,u).call(RAe,e,l,u),MAe(s,e,l,u),SAe(s,e,l,u,f,c),l.side==="bottom"&&_Ae.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:T+u._height+u._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function Oj(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function MAe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+jr.slideBoxClassName).node(),i=e.select("rect."+jr.grabAreaMinClassName).node(),o=e.select("rect."+jr.grabAreaMaxClassName).node();function l(){var s=Ag.event,u=s.target,f=Oj(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=TAe.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var T=Oj(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 A=_;_=x,x=A}a._pixelMin=x,a._pixelMax=_,AAe(Ag.select(p),k),kAe(e,r,t,a)}function m(){p.removeEventListener("mousemove",y),p.removeEventListener("mouseup",m),this.removeEventListener("touchmove",y),this.removeEventListener("touchend",m),ia.removeElement(p)}}e.on("mousedown",l),e.on("touchstart",l)}function kAe(e,r,t,a){function n(l){return t.l2r(ia.constrain(l,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),o=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){bAe.call("_guiRelayout",r,t._name+".range",[i,o])})}function SAe(e,r,t,a,n,i){var o=jr.handleWidth/2;function l(b){return ia.constrain(b,0,a._width)}function s(b){return ia.constrain(b,0,a._height)}function u(b){return ia.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."+jr.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+jr.maskMinClassName).attr("width",f),e.select("rect."+jr.maskMaxClassName).attr("x",c).attr("width",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."+jr.maskMinOppAxisClassName).attr("x",f).attr("height",v).attr("width",c-f),e.select("rect."+jr.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",a._height-d).attr("width",c-f),e.select("rect."+jr.slideBoxClassName).attr("y",v).attr("height",d-v)}var p=.5,y=Math.round(u(f-o))-p,m=Math.round(u(c-o))+p;e.select("g."+jr.grabberMinClassName).attr("transform",Mg(y,p)),e.select("g."+jr.grabberMaxClassName).attr("transform",Mg(m,p))}function qAe(e,r,t,a){var n=ia.ensureSingle(e,"rect",jr.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=Hj.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:Mg(o,o),"stroke-width":l}).call(Ws.stroke,a.bordercolor).call(Ws.fill,a.bgcolor)}function LAe(e,r,t,a){var n=r._fullLayout,i=ia.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 CAe(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+jr.rangePlotClassName).data(t._subplotsWith,ia.identity);i.enter().append("g").attr("class",function(l){return jr.rangePlotClassName+" "+l}).call(Hj.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=Ag.select(this),f=s===0,c=y8.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),xAe.supplyDefaults(p);var y=p._fullLayout.xaxis,m=p._fullLayout[v];y.clearCalc(),y.setScale(),m.clearCalc(),m.setScale();var b={id:l,plotgroup:u,xaxis:y,yaxis:m,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),wAe.rangePlot(r,b,DAe(n,l))})}function DAe(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 EAe(e,r,t,a,n){var i=ia.ensureSingle(e,"rect",jr.maskMinClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})});i.attr("height",a._height).call(Ws.fill,jr.maskColor);var o=ia.ensureSingle(e,"rect",jr.maskMaxClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});if(o.attr("height",a._height).call(Ws.fill,jr.maskColor),n.rangemode!=="match"){var l=ia.ensureSingle(e,"rect",jr.maskMinOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",a._width).call(Ws.fill,jr.maskOppAxisColor);var s=ia.ensureSingle(e,"rect",jr.maskMaxOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});s.attr("width",a._width).style("border-top",jr.maskOppBorder).call(Ws.fill,jr.maskOppAxisColor)}}function PAe(e,r,t,a){if(!r._context.staticPlot){var n=ia.ensureSingle(e,"rect",jr.slideBoxClassName,function(i){i.attr({y:0,cursor:jr.slideBoxCursor,"shape-rendering":"crispEdges"})});n.attr({height:a._height,fill:jr.slideBoxFill})}}function RAe(e,r,t,a){var n=ia.ensureSingle(e,"g",jr.grabberMinClassName),i=ia.ensureSingle(e,"g",jr.grabberMaxClassName),o={x:0,width:jr.handleWidth,rx:jr.handleRadius,fill:Ws.background,stroke:Ws.defaultLine,"stroke-width":jr.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(a._height/4),height:Math.round(a._height/2)},s=ia.ensureSingle(n,"rect",jr.handleMinClassName,function(d){d.attr(o)});s.attr(l);var u=ia.ensureSingle(i,"rect",jr.handleMaxClassName,function(d){d.attr(o)});u.attr(l);var f={width:jr.grabAreaWidth,x:0,y:0,fill:jr.grabAreaFill,cursor:r._context.staticPlot?void 0:jr.grabAreaCursor},c=ia.ensureSingle(n,"rect",jr.grabAreaMinClassName,function(d){d.attr(f)});c.attr("height",a._height);var v=ia.ensureSingle(i,"rect",jr.grabAreaMaxClassName,function(d){d.attr(f)});v.attr("height",a._height)}});var Vj=z((XWe,Yj)=>{"use strict";var FAe=ke(),zAe=bg(),NAe=m8(),g8=Pj();Yj.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:FAe.extendFlat({},zAe,{yaxis:NAe})}}},layoutAttributes:bg(),handleDefaults:Nj(),calcAutorange:Bj(),draw:Gj(),isVisible:g8.isVisible,makeData:g8.makeData,autoMarginOpts:g8.autoMarginOpts}});var kg=z((ZWe,Wj)=>{"use strict";var IAe=ka(),jj=Ei(),BAe=St().templatedArray,OAe=BAe("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"});Wj.exports={visible:{valType:"boolean",editType:"plot"},buttons:OAe,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:IAe({editType:"plot"}),bgcolor:{valType:"color",dflt:jj.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:jj.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var b8=z(($We,Xj)=>{"use strict";Xj.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Jj=z((JWe,$j)=>{"use strict";var Sg=ke(),HAe=Sr(),UAe=St(),GAe=So(),Zj=kg(),x8=b8();$j.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=UAe.newContainer(t,"rangeselector");function s(d,p){return Sg.coerce(o,l,Zj,d,p)}var u=GAe(o,l,{name:"buttons",handleItemDefaults:YAe,calendar:i}),f=s("visible",u.length>0);if(f){var c=VAe(t,a,n);s("x",c[0]),s("y",c[1]),Sg.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Sg.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",HAe.contrast(v,x8.lightAmount,x8.darkAmount)),s("bordercolor"),s("borderwidth")}};function YAe(e,r,t,a){var n=a.calendar;function i(s,u){return Sg.coerce(e,r,Zj.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 VAe(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+x8.yPad]}});var Qj=z((KWe,Kj)=>{"use strict";var jAe=G5(),WAe=ke().titleCase;Kj.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=XAe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function XAe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=jAe["utc"+WAe(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((QWe,oW)=>{"use strict";var Lg=Er(),ZAe=Tr(),$Ae=va(),eW=Sr(),iW=Zr(),Xl=ke(),rW=Xl.strTranslate,qg=Ca(),JAe=ba(),T8=Qa(),tW=T8.LINE_SPACING,aW=T8.FROM_TL,nW=T8.FROM_BR,w8=b8(),KAe=Qj();oW.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(QAe(r),eMe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Lg.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Xl.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Lg.select(this),c=KAe(o,u);u._isActive=rMe(o,u,c),f.call(_8,l,u),f.call(aMe,l,u,r),f.on("click",function(){r._dragged||ZAe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(_8,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(_8,l,u)})}),iMe(r,s,l,o._name,i)})};function QAe(e){for(var r=JAe.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 eMe(e){return e._id}function rMe(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 _8(e,r,t){var a=Xl.ensureSingle(e,"rect","selector-rect",function(n){n.attr("shape-rendering","crispEdges")});a.attr({rx:w8.rx,ry:w8.ry}),a.call(eW.stroke,r.bordercolor).call(eW.fill,tMe(r,t)).style("stroke-width",r.borderwidth+"px")}function tMe(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function aMe(e,r,t,a){function n(o){qg.convertToTspans(o,a)}var i=Xl.ensureSingle(e,"text","selector-text",function(o){o.attr("text-anchor","middle")});i.call(iW.font,r.font).text(nMe(t,a._fullLayout._meta)).call(n)}function nMe(e,r){return e.label?r?Xl.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function iMe(e,r,t,a,n){var i=0,o=0,l=t.borderwidth;r.each(function(){var d=Lg.select(this),p=d.select(".selector-text"),y=t.font.size*tW,m=Math.max(y*qg.lineCount(p),16)+3;o=Math.max(o,m)}),r.each(function(){var d=Lg.select(this),p=d.select(".selector-rect"),y=d.select(".selector-text"),m=y.node()&&iW.bBox(y.node()).width,b=t.font.size*tW,T=qg.lineCount(y),w=Math.max(m+10,w8.minButtonWidth);d.attr("transform",rW(l+i,l)),p.attr({x:0,y:0,width:w,height:o}),qg.positionText(y,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";Xl.isRightAnchor(t)&&(u-=i,c="right"),Xl.isCenterAnchor(t)&&(u-=i/2,c="center");var v="top";Xl.isBottomAnchor(t)&&(f-=o,v="bottom"),Xl.isMiddleAnchor(t)&&(f-=o/2,v="middle"),i=Math.ceil(i),o=Math.ceil(o),u=Math.round(u),f=Math.round(f),$Ae.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*aW[c],r:i*nW[c],b:o*nW[v],t:o*aW[v]}),n.attr("transform",rW(u,f))}});var uW=z((eXe,sW)=>{"use strict";sW.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:kg()}}},layoutAttributes:kg(),handleDefaults:Jj(),draw:lW()}});var zc=z(A8=>{"use strict";var fW=At().extendFlat;A8.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:fW({},t,{}),y:fW({},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};A8.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 pW=z((tXe,dW)=>{"use strict";var oMe=ke(),lMe=(C0(),un(L0)).counter,sMe=zc().attributes,cW=qa().idRegex,uMe=St(),M8={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:[lMe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[cW.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[cW.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:sMe({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 Cg(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 fMe(e,r){var t=e.grid||{},a=Cg(r,t,"x"),n=Cg(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=uMe.newContainer(r,"grid");function v(k,A){return oMe.coerce(t,c,M8,k,A)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var y=v("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),b=m==="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:vW("x",v,T,x,p),y:vW("y",v,w,_,d,b)}}function vW(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 cMe(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,y,m=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(y=d.indexOf("y"),c=d.slice(0,y),v=d.slice(y),m[c]!==void 0&&m[c]!==f||m[v]!==void 0&&m[v]!==u)continue;w[f]=d,m[c]=f,m[v]=u}}}else{var _=Cg(r,a,"x"),k=Cg(r,a,"y");t.xaxes=hW(_,n.xaxis,l,m,"x"),t.yaxes=hW(k,n.yaxis,o,m,"y")}var A=t._anchors={},q=t.roworder==="top to bottom";for(var C in m){var E=C.charAt(0),P=t[E+"side"],R,N,I;if(P.length<8)A[C]="free";else if(E==="x"){if(P.charAt(0)==="t"===q?(R=0,N=1,I=o):(R=o-1,N=-1,I=-1),i){var O=m[C];for(u=R;u!==I;u+=N)if(d=p[u][O],!!d&&(y=d.indexOf("y"),d.slice(0,y)===C)){A[C]=d.slice(y);break}}else for(u=R;u!==I;u+=N)if(v=t.yaxes[u],n.cartesian.indexOf(C+v)!==-1){A[C]=v;break}}else if(P.charAt(0)==="l"?(R=0,N=1,I=l):(R=l-1,N=-1,I=-1),i){var U=m[C];for(u=R;u!==I;u+=N)if(d=p[U][u],!!d&&(y=d.indexOf("y"),d.slice(y)===C)){A[C]=d.slice(0,y);break}}else for(u=R;u!==I;u+=N)if(c=t.xaxes[u],n.cartesian.indexOf(c+C)!==-1){A[C]=c;break}}}}function hW(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}dW.exports={moduleType:"component",name:"grid",schema:{layout:{grid:M8}},layoutAttributes:M8,sizeDefaults:fMe,contentDefaults:cMe}});var k8=z((aXe,mW)=>{"use strict";mW.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 bW=z((nXe,gW)=>{"use strict";var yW=Ir(),vMe=Tr(),hMe=ke(),dMe=St(),pMe=k8();gW.exports=function(e,r,t,a){var n="error_"+a.axis,i=dMe.newContainer(r,n),o=e[n]||{};function l(p,y){return hMe.coerce(o,i,pMe,p,y)}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||yW(o.thickness)||yW(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",vMe.traceIs(r,"gl3d")?0:4))}}});var S8=z((iXe,_W)=>{"use strict";_W.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=xW(t,r.value),l=xW(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 xW(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 AW=z((oXe,TW)=>{"use strict";var q8=Ir(),mMe=Tr(),L8=Gr(),yMe=ke(),gMe=S8();TW.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&&mMe.traceIs(i,"errorBarsOK")){var o=L8.getFromId(r,i.xaxis),l=L8.getFromId(r,i.yaxis);wW(n,i,o,"x"),wW(n,i,l,"y")}}};function wW(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,o=[];if(i){for(var l=gMe(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(q8(t.c2l(c))){var v=l(c,f);if(q8(v[0])&&q8(v[1])){var d=u[a+"s"]=c-v[0],p=u[a+"h"]=c+v[1];o.push(d,p)}}}var y=t._id,m=r._extremes[y],b=L8.findExtremes(t,o,yMe.extendFlat({tozero:m.opts.tozero},{padded:!0}));m.min=m.min.concat(b.min),m.max=m.max.concat(b.max)}}});var SW=z((lXe,kW)=>{"use strict";var MW=Er(),Xs=Ir(),bMe=Zr(),xMe=Jn();kW.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 y=xMe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var m=MW.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){v.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),bMe.setClipUrl(m,a.layerClipId,r),m.each(function(T){var w=MW.select(this),x=_Me(T,o,l);if(!(y&&!T.vis)){var _,k=w.select("path.yerror");if(d.visible&&Xs(x.x)&&Xs(x.yh)&&Xs(x.ys)){var A=d.width;_="M"+(x.x-A)+","+x.yh+"h"+2*A+"m-"+A+",0V"+x.ys,x.noYS||(_+="m-"+A+",0h"+2*A),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&&Xs(x.y)&&Xs(x.xh)&&Xs(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 _Me(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),Xs(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),Xs(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var CW=z((sXe,LW)=>{"use strict";var wMe=Er(),qW=Sr();LW.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=wMe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(qW.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(qW.stroke,i.color)})}});var PW=z((uXe,EW)=>{"use strict";var Ud=ke(),DW=wo().overrideAll,Gd=k8(),Af={error_x:Ud.extendFlat({},Gd),error_y:Ud.extendFlat({},Gd)};delete Af.error_x.copy_zstyle;delete Af.error_y.copy_zstyle;delete Af.error_y.copy_ystyle;var Yd={error_x:Ud.extendFlat({},Gd),error_y:Ud.extendFlat({},Gd),error_z:Ud.extendFlat({},Gd)};delete Yd.error_x.copy_ystyle;delete Yd.error_y.copy_ystyle;delete Yd.error_z.copy_ystyle;delete Yd.error_z.copy_zstyle;EW.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Af,bar:Af,histogram:Af,scatter3d:DW(Yd,"calc","nested"),scattergl:DW(Af,"calc","nested")}},supplyDefaults:bW(),calc:AW(),makeComputeError:S8(),plot:SW(),style:CW(),hoverInfo:TMe};function TMe(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 FW=z((fXe,RW)=>{"use strict";RW.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var GW=z((cXe,UW)=>{"use strict";var Zs=Er(),Eg=va(),zW=Tr(),Zl=Gr(),Dg=Bi(),ro=ke(),Oo=ro.strTranslate,HW=At().extendFlat,C8=Rs(),Bo=Zr(),Nc=Sr(),AMe=Q0(),MMe=Ca(),kMe=hi().flipScale,SMe=Ow(),qMe=Hw(),LMe=Ni(),E8=Qa(),NW=E8.LINE_SPACING,IW=E8.FROM_TL,BW=E8.FROM_BR,Yt=FW().cn;function CMe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Yt.colorbar).data(DMe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Yt.colorbar,!0),t.each(function(a){var n=Zs.select(this);ro.ensureSingle(n,"rect",Yt.cbbg),ro.ensureSingle(n,"g",Yt.cbfills),ro.ensureSingle(n,"g",Yt.cblines),ro.ensureSingle(n,"g",Yt.cbaxis,function(o){o.classed(Yt.crisp,!0)}),ro.ensureSingle(n,"g",Yt.cbtitleunshift,function(o){o.append("g").classed(Yt.cbtitle,!0)}),ro.ensureSingle(n,"rect",Yt.cboutline);var i=EMe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&PMe(n,a,e)}),t.exit().each(function(a){Eg.autoMargin(e,a._id)}).remove(),t.order()}function DMe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(w){return HW(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?kMe(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],y=0;y<p.length;y++){l=p[y];var m=l.container;i=m?o[m]:o,i&&i.showscale&&(n=s(i.colorbar),n._id="cb"+o.uid+(d&&m?"-"+m:""),n._traceIndex=o.index,n._propPrefix=(m?m+".":"")+"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 D8=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],OW=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function EMe(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,y=r.x,m=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,A=r.title,q=A.side,C=r._zrange||Zs.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,N=RMe(t,r,C),I=N.fill,O=N.line,U=Math.round(o*(l==="fraction"?a?x.w:x.h:1)),Y=U/(a?x.w:x.h),G=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),V=G/(a?x.h:x.w),W=T?x.w:t._fullLayout.width,j=b?x.h:t._fullLayout.height,J=Math.round(a?y*W+d:m*j+p),te={center:.5,right:1}[c]||0,ae={top:1,middle:.5}[v]||0,se=a?y-te*Y:m-ae*Y,$=a?m-ae*V:y-te*V,fe=Math.round(a?j*(1-$):W*$);r._lenFrac=V,r._thickFrac=Y,r._uFrac=se,r._vFrac=$;var ie=r._axis=FMe(t,r,C);ie.position=Y+(a?y+d/x.w:m+p/x.h);var ue=["top","bottom"].indexOf(q)!==-1;if(a&&ue&&(ie.title.side=q,ie.titlex=y+d/x.w,ie.titley=$+(A.side==="top"?V-p/x.h:p/x.h)),!a&&!ue&&(ie.title.side=q,ie.titley=m+p/x.h,ie.titlex=$+d/x.w),k.color&&r.tickmode==="auto"){ie.tickmode="linear",ie.tick0=R.start;var ce=R.size,oe=ro.constrain(G/50,4,15)+1,be=(C[1]-C[0])/((r.nticks||oe)*ce);if(be>1){var Re=Math.pow(10,Math.floor(Math.log(be)/Math.LN10));ce*=Re*ro.roundUp(be/Re,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(ie.tick0=0)}ie.dtick=ce}var ye=a?p/x.h:d/x.w;ie.domain=OW(D8([$,$+V],ye),ye),ie.setScale(),e.attr("transform",Oo(Math.round(x.l),Math.round(x.t)));var Ce=e.select("."+Yt.cbtitleunshift).attr("transform",Oo(-Math.round(x.l),-Math.round(x.t))),Me=ie.ticklabelposition,Le=ie.title.font.size,De=e.select("."+Yt.cbaxis),Ne,qe=0,Xe=0;function $e(re,xe){var Ge={propContainer:ie,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+Yt.cbtitle)},cr=re.charAt(0)==="h"?re.slice(1):"h"+re;e.selectAll("."+cr+",."+cr+"-math-group").remove(),AMe.draw(t,re,HW(Ge,xe||{}))}function We(){if(a&&ue||!a&&!ue){var re,xe;q==="top"&&(re=d+x.l+W*y,xe=p+x.t+j*(1-$-V)+3+Le*.75),q==="bottom"&&(re=d+x.l+W*y,xe=p+x.t+j*(1-$)-3-Le*.25),q==="right"&&(xe=p+x.t+j*m+3+Le*.75,re=d+x.l+W*$),$e(ie._id+"title",{attributes:{x:re,y:xe,"text-anchor":a?"start":"middle"}})}}function Se(){if(a&&!ue||!a&&ue){var re=ie.position||0,xe=ie._offset+ie._length/2,Ge,cr;if(q==="right")cr=xe,Ge=x.l+W*re+10+Le*(ie.showticklabels?1:.5);else if(Ge=xe,q==="bottom"&&(cr=x.t+j*re+10+(Me.indexOf("inside")===-1?ie.tickfont.size:0)+(ie.ticks!=="inside"&&r.ticklen||0)),q==="top"){var Pe=A.text.split("<br>").length;cr=x.t+j*re+10-U-NW*Le*Pe}$e((a?"h":"v")+ie._id+"title",{avoid:{selection:Zs.select(t).selectAll("g."+ie._id+"tick"),side:q,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:Ge,y:cr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Fe(){if(!a&&!ue||a&&ue){var re=e.select("."+Yt.cbtitle),xe=re.select("text"),Ge=[-s/2,s/2],cr=re.select(".h"+ie._id+"title-math-group").node(),Pe=15.6;xe.node()&&(Pe=parseInt(xe.node().style.fontSize,10)*NW);var me;if(cr?(me=Bo.bBox(cr),Xe=me.width,qe=me.height,qe>Pe&&(Ge[1]-=(qe-Pe)/2)):xe.node()&&!xe.classed(Yt.jsPlaceholder)&&(me=Bo.bBox(xe.node()),Xe=me.width,qe=me.height),a){if(qe){if(qe+=5,q==="top")ie.domain=OW(ie.domain,qe/x.h),Ge[1]*=-1;else{ie.domain=D8(ie.domain,qe/x.h);var Ae=MMe.lineCount(xe);Ge[1]+=(1-Ae)*Pe}re.attr("transform",Oo(Ge[0],Ge[1])),ie.setScale()}}else Xe&&(q==="right"&&(ie.domain=D8(ie.domain,(Xe+Le/2)/x.w)),re.attr("transform",Oo(Ge[0],Ge[1])),ie.setScale())}e.selectAll("."+Yt.cbfills+",."+Yt.cblines).attr("transform",a?Oo(0,Math.round(x.h*(1-ie.domain[1]))):Oo(Math.round(x.w*ie.domain[0]),0)),De.attr("transform",a?Oo(0,Math.round(-x.t)):Oo(Math.round(-x.l),0));var He=e.select("."+Yt.cbfills).selectAll("rect."+Yt.cbfill).attr("style","").data(I);He.enter().append("rect").classed(Yt.cbfill,!0).attr("style",""),He.exit().remove();var Ze=C.map(ie.c2p).map(Math.round).sort(function(lr,Ee){return lr-Ee});He.each(function(lr,Ee){var Je=[Ee===0?C[0]:(I[Ee]+I[Ee-1])/2,Ee===I.length-1?C[1]:(I[Ee]+I[Ee+1])/2].map(ie.c2p).map(Math.round);a&&(Je[1]=ro.constrain(Je[1]+(Je[1]>Je[0])?1:-1,Ze[0],Ze[1]));var Ie=Zs.select(this).attr(a?"x":"y",J).attr(a?"y":"x",Zs.min(Je)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(Zs.max(Je)-Zs.min(Je),2));if(r._fillgradient)Bo.gradient(Ie,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var pr=P(lr).replace("e-","");Ie.attr("fill",Nc.hexString(pr))}});var Be=e.select("."+Yt.cblines).selectAll("path."+Yt.cbline).data(k.color&&k.width?O:[]);Be.enter().append("path").classed(Yt.cbline,!0),Be.exit().remove(),Be.each(function(lr){var Ee=J,Je=Math.round(ie.c2p(lr))+k.width/2%1;Zs.select(this).attr("d","M"+(a?Ee+","+Je:Je+","+Ee)+(a?"h":"v")+U).call(Bo.lineGroupStyle,k.width,E(lr),k.dash)}),De.selectAll("g."+ie._id+"tick,path").remove();var je=J+U+(s||0)/2-(r.ticks==="outside"?1:0),tr=Zl.calcTicks(ie),ir=Zl.getTickSigns(ie)[2];return Zl.drawTicks(t,ie,{vals:ie.ticks==="inside"?Zl.clipEnds(ie,tr):tr,layer:De,path:Zl.makeTickPath(ie,je,ir),transFn:Zl.makeTransTickFn(ie)}),Zl.drawLabels(t,ie,{vals:tr,layer:De,transFn:Zl.makeTransTickLabelFn(ie),labelFns:Zl.makeLabelFns(ie,je)})}function Qe(){var re,xe=U+s/2;Me.indexOf("inside")===-1&&(re=Bo.bBox(De.node()),xe+=a?re.width:re.height),Ne=Ce.select("text");var Ge=0,cr=a&&q==="top",Pe=!a&&q==="right",me=0;if(Ne.node()&&!Ne.classed(Yt.jsPlaceholder)){var Ae,He=Ce.select(".h"+ie._id+"title-math-group").node();He&&(a&&ue||!a&&!ue)?(re=Bo.bBox(He),Ge=re.width,Ae=re.height):(re=Bo.bBox(Ce.node()),Ge=re.right-x.l-(a?J:fe),Ae=re.bottom-x.t-(a?fe:J),!a&&q==="top"&&(xe+=re.height,me=re.height)),Pe&&(Ne.attr("transform",Oo(Ge/2+Le/2,0)),Ge*=2),xe=Math.max(xe,a?Ge:Ae)}var Ze=(a?d:p)*2+xe+u+s/2,Be=0;!a&&A.text&&v==="bottom"&&m<=0&&(Be=Ze/2,Ze+=Be,me+=Be),w._hColorbarMoveTitle=Be,w._hColorbarMoveCBTitle=me;var je=u+s,tr=(a?J:fe)-je/2-(a?d:0),ir=(a?fe:J)-(a?G:p+me-Be);e.select("."+Yt.cbbg).attr("x",tr).attr("y",ir).attr(a?"width":"height",Math.max(Ze-Be,2)).attr(a?"height":"width",Math.max(G+je,2)).call(Nc.fill,f).call(Nc.stroke,r.bordercolor).style("stroke-width",u);var lr=Pe?Math.max(Ge-10,0):0;e.selectAll("."+Yt.cboutline).attr("x",(a?J:fe+d)+lr).attr("y",(a?fe+p-G:J)+(cr?qe:0)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(G-(a?2*p+qe:2*d+lr),2)).call(Nc.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ee=a?te*Ze:0,Je=a?0:(1-ae)*Ze-me;if(Ee=T?x.l-Ee:-Ee,Je=b?x.t-Je:-Je,e.attr("transform",Oo(Ee,Je)),!a&&(u||Nc.opacity(f)&&!Nc.equals(w.paper_bgcolor,f))){var Ie=De.selectAll("text"),pr=Ie[0].length,mr=e.select("."+Yt.cbbg).node(),sr=Bo.bBox(mr),yr=Bo.getTranslate(e),ne=2;Ie.each(function(Va,ea){var ja=0,ln=pr-1;if(ea===ja||ea===ln){var oa=Bo.bBox(this),vr=Bo.getTranslate(this),_t;if(ea===ln){var Yr=oa.right+vr.x,vt=sr.right+yr.x+fe-u-ne+y;_t=vt-Yr,_t>0&&(_t=0)}else if(ea===ja){var Rt=oa.left+vr.x,Mt=sr.left+yr.x+fe+u+ne;_t=Mt-Rt,_t<0&&(_t=0)}_t&&(pr<3?this.setAttribute("transform","translate("+_t+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ge={},ze=IW[c],Oe=BW[c],Jr=IW[v],Kr=BW[v],mt=Ze-U;a?(i==="pixels"?(ge.y=m,ge.t=G*Jr,ge.b=G*Kr):(ge.t=ge.b=0,ge.yt=m+n*Jr,ge.yb=m-n*Kr),l==="pixels"?(ge.x=y,ge.l=Ze*ze,ge.r=Ze*Oe):(ge.l=mt*ze,ge.r=mt*Oe,ge.xl=y-o*ze,ge.xr=y+o*Oe)):(i==="pixels"?(ge.x=y,ge.l=G*ze,ge.r=G*Oe):(ge.l=ge.r=0,ge.xl=y+n*ze,ge.xr=y-n*Oe),l==="pixels"?(ge.y=1-m,ge.t=Ze*Jr,ge.b=Ze*Kr):(ge.t=mt*Jr,ge.b=mt*Kr,ge.yt=m-o*Jr,ge.yb=m+o*Kr));var yt=r.y<.5?"b":"t",Lt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Qt={r:w.width-tr-Ee,l:tr+ge.r,b:w.height-ir-Je,t:ir+ge.b};T&&b?Eg.autoMargin(t,r._id,ge):T?t._fullLayout._reservedMargin[r._id][yt]=Qt[yt]:b||a?t._fullLayout._reservedMargin[r._id][Lt]=Qt[Lt]:t._fullLayout._reservedMargin[r._id][yt]=Qt[yt]}return ro.syncOrAsync([Eg.previousPromises,We,Fe,Se,Eg.previousPromises,Qe],t)}function PMe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;Dg.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),C8(e)},moveFn:function(u,f){e.attr("transform",o+Oo(u,f)),l=Dg.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Dg.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Dg.getCursor(l,s,r.xanchor,r.yanchor);C8(e,c)},doneFn:function(){if(C8(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?zW.call("_guiRestyle",t,u,r._traceIndex):zW.call("_guiRelayout",t,u)}}})}function RMe(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 FMe(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 ro.coerce(i,l,LMe,f,c)}return SMe(i,l,u,s,a),qMe(i,l,u,s),l}UW.exports={draw:CMe}});var VW=z((vXe,YW)=>{"use strict";YW.exports={moduleType:"component",name:"colorbar",attributes:Up(),supplyDefaults:L4(),draw:GW().draw,hasColorbar:w4()}});var WW=z((hXe,jW)=>{"use strict";jW.exports={moduleType:"component",name:"legend",layoutAttributes:T6(),supplyLayoutDefaults:M6(),draw:B6(),style:F6()}});var ZW=z((dXe,XW)=>{"use strict";XW.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 JW=z((pXe,$W)=>{"use strict";$W.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var R8=z((mXe,rX)=>{"use strict";var zMe=Tr(),eX=ke(),P8=eX.extendFlat,KW=eX.extendDeep;function QW(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 NMe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}rX.exports=function(r,t){var a,n=r.data,i=r.layout,o=KW([],n),l=KW({},i,QW(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++)NMe(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),zMe.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(m){return m.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={}),P8(d.xaxis,v),P8(d.yaxis,v),P8(d.zaxis,v),d._scene=null}}var p=document.createElement("div");t.tileClass&&(p.className=t.tileClass);var y={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"&&(y.config.setBackground=t.setBackground||"opaque"),y.gd.defaultLayout=QW(t.tileClass),y}});var nX=z((yXe,aX)=>{"use strict";var IMe=Bu().EventEmitter,BMe=Tr(),OMe=ke(),tX=Vl(),HMe=R8(),UMe=zy(),GMe=Ny();function YMe(e,r){var t=new IMe,a=HMe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=tX.getDelay(n._fullLayout);setTimeout(function(){var s=UMe(n),u=document.createElement("canvas");u.id=OMe.randstr(),t=GMe({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=tX.getRedrawFunc(n);return BMe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}aX.exports=YMe});var lX=z((gXe,oX)=>{"use strict";var iX=Vl(),VMe={getDelay:iX.getDelay,getRedrawFunc:iX.getRedrawFunc,clone:R8(),toSVG:zy(),svgToImg:Ny(),toImage:nX(),downloadImage:iw()};oX.exports=VMe});var uX=z($l=>{"use strict";$l.version=jv().version;cS();eP();var jMe=Tr(),Vd=$l.register=jMe.register,z8=_U(),sX=Object.keys(z8);for(Pg=0;Pg<sX.length;Pg++)Ic=sX[Pg],Ic.charAt(0)!=="_"&&($l[Ic]=z8[Ic]),Vd({moduleType:"apiMethod",name:Ic,fn:z8[Ic]});var Ic,Pg;Vd(_Y());Vd([jY(),oV(),dl(),MV(),IV(),oj(),kj(),Vj(),uW(),pW(),PW(),rl(),VW(),WW(),In(),c7()]);Vd([ZW(),JW()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(Vd(window.PlotlyLocales),delete window.PlotlyLocales);$l.Icons=Im();var Rg=In(),F8=va();$l.Plots={resize:F8.resize,graphJson:F8.graphJson,sendDataToCloud:F8.sendDataToCloud};$l.Fx={hover:Rg.hover,unhover:Rg.unhover,loneHover:Rg.loneHover,loneUnhover:Rg.loneUnhover};$l.Snapshot=lX();$l.PlotSchema=G0()});var cX=z((xXe,fX)=>{"use strict";fX.exports=uX()});var kf=z((_Xe,mX)=>{"use strict";var Kt=Vi(),vX=ko().axisHoverFormat,{hovertemplateAttrs:WMe,texttemplateAttrs:XMe,templatefallbackAttrs:hX}=fi(),pX=el(),ZMe=ka(),dX=qd(),$Me=Pi().pattern,Mf=At().extendFlat,N8=ZMe({editType:"calc",arrayOk:!0,colorEditType:"style"}),JMe=Kt.marker,KMe=JMe.line,QMe=Mf({},KMe.width,{dflt:0}),eke=Mf({width:QMe,editType:"calc"},pX("marker.line")),rke=Mf({line:eke,editType:"calc"},pX("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:$Me,cornerradius:{valType:"any",editType:"calc"}});mX.exports={x:Kt.x,x0:Kt.x0,dx:Kt.dx,y:Kt.y,y0:Kt.y0,dy:Kt.dy,xperiod:Kt.xperiod,yperiod:Kt.yperiod,xperiod0:Kt.xperiod0,yperiod0:Kt.yperiod0,xperiodalignment:Kt.xperiodalignment,yperiodalignment:Kt.yperiodalignment,xhoverformat:vX("x"),yhoverformat:vX("y"),text:Kt.text,texttemplate:XMe({editType:"plot"},{keys:dX.eventDataKeys}),texttemplatefallback:hX({editType:"plot"}),hovertext:Kt.hovertext,hovertemplate:WMe({},{keys:dX.eventDataKeys}),hovertemplatefallback:hX(),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:Mf({},N8,{}),insidetextfont:Mf({},N8,{}),outsidetextfont:Mf({},N8,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Mf({},Kt.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:rke,offsetgroup:Kt.offsetgroup,alignmentgroup:Kt.alignmentgroup,selected:{marker:{opacity:Kt.selected.marker.opacity,color:Kt.selected.marker.color,editType:"style"},textfont:Kt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Kt.unselected.marker.opacity,color:Kt.unselected.marker.color,editType:"style"},textfont:Kt.unselected.textfont,editType:"style"},zorder:Kt.zorder}});var Fg=z((wXe,yX)=>{"use strict";yX.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 I8=z((TXe,xX)=>{"use strict";var tke=Sr(),gX=hi().hasColorscale,bX=Bl(),ake=ke().coercePattern;xX.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=gX(r,"marker");l&&bX(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",tke.defaultLine),gX(r,"marker.line")&&bX(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),ake(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var Sf=z((AXe,kX)=>{"use strict";var _X=Ir(),Bc=ke(),wX=Sr(),nke=Tr(),ike=sw(),oke=bc(),lke=I8(),ske=kd(),TX=kf(),zg=Bc.coerceFont;function uke(e,r,t,a){function n(u,f){return Bc.coerce(e,r,TX,u,f)}var i=ike(e,r,a,n);if(!i){r.visible=!1;return}oke(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");MX(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),lke(e,r,n,t,a);var l=(r.marker.line||{}).color,s=nke.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||wX.defaultLine,{axis:"y"}),s(e,r,l||wX.defaultLine,{axis:"x",inherit:"y"}),Bc.coerceSelectionMarkerOpacity(r,n)}function fke(e,r){var t,a;function n(l,s){return Bc.coerce(a._input,a,TX,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=AX(o)),ske(t,a,r,n,r.barmode)}}function AX(e){if(_X(e)){if(e=+e,e>=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&_X(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function MX(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",y=d||n==="outside";if(p||y){var m=zg(a,"textfont",t.font),b=Bc.extendFlat({},m),T=e.textfont&&e.textfont.color,w=!T;if(w&&delete b.color,zg(a,"insidetextfont",b),v){var x=Bc.extendFlat({},m);w&&delete x.color,zg(a,"pathbar.textfont",x)}y&&zg(a,"outsidetextfont",m),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")}kX.exports={supplyDefaults:uke,crossTraceDefaults:fke,handleText:MX,validateCornerradius:AX}});var B8=z((MXe,SX)=>{"use strict";var cke=Tr(),vke=Gr(),hke=ke(),dke=Fg(),pke=Sf().validateCornerradius;SX.exports=function(e,r,t){function a(y,m){return hke.coerce(e,r,dke,y,m)}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(cke.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=vke.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=pke(p)}});var Ng=z((kXe,qX)=>{"use strict";var Oc=ke();qX.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Oc.mergeArray(t.text,r,"tx"),Oc.mergeArray(t.hovertext,r,"htx");var n=t.marker;if(n){Oc.mergeArray(n.opacity,r,"mo",!0),Oc.mergeArray(n.color,r,"mc");var i=n.line;i&&(Oc.mergeArray(i.color,r,"mlc"),Oc.mergeArrayCastPositive(i.width,r,"mlw"))}}});var RX=z((SXe,PX)=>{"use strict";var LX=Gr(),CX=_c(),DX=hi().hasColorscale,EX=W0(),mke=Ng(),yke=jy();PX.exports=function(r,t){var a=LX.getFromId(r,t.xaxis||"x"),n=LX.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=CX(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=CX(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 DX(t,"marker")&&EX(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),DX(t,"marker.line")&&EX(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),mke(d,t),yke(d,t),d}});var jd=z((qXe,zX)=>{"use strict";var gke=Er(),bke=ke();function xke(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=gke.select(this).select("text");bke.setTransormAndDisplay(u,s)}})}}function _ke(e,r,t){if(t.uniformtext.mode){var a=FX(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 wke(e,r){var t=FX(e);r[t]=void 0}function FX(e){return"_"+e+"Text_minsize"}zX.exports={recordMinTextSize:_ke,clearMinTextSize:wke,resizeText:xke}});var Ig=z(qf=>{"use strict";var Tke=Sr(),Ake=Ir(),NX=ke().isArrayOrTypedArray;qf.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};qf.coerceNumber=function(e,r,t){if(Ake(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};qf.coerceColor=function(e,r,t){return Tke.isValid(r)?r:t!==void 0?t:e.dflt};qf.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};qf.getValue=function(e,r){var t;return NX(e)?r<e.length&&(t=e[r]):t=e,t};qf.getLineWidth=function(e,r){var t=0<r.mlw?r.mlw:NX(e.marker.line.width)?0:e.marker.line.width;return t}});var Hc=z((CXe,XX)=>{"use strict";var Wd=Er(),Mke=Sr(),Xd=Zr(),IX=ke(),BX=Tr(),OX=jd().resizeText,O8=kf(),kke=O8.textfont,Ske=O8.insidetextfont,qke=O8.outsidetextfont,tn=Ig();function Lke(e){var r=Wd.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");OX(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)&&Wd.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=Wd.select(this),o=n[0].trace;HX(i,o,e)}),BX.getComponentMethod("errorbars","style")(r)}function HX(e,r,t){Xd.pointStyle(e.selectAll("path"),r,t),UX(e,r,t)}function UX(e,r,t){e.selectAll("text").each(function(a){var n=Wd.select(this),i=IX.ensureUniformFontSize(t,GX(n,a,r,t));Xd.font(n,i)})}function Cke(e,r,t){var a=r[0].trace;a.selectedpoints?Dke(t,a,e):(HX(t,a,e),BX.getComponentMethod("errorbars","style")(t))}function Dke(e,r,t){Xd.selectedPointStyle(e.selectAll("path"),r),Eke(e.selectAll("text"),r,t)}function Eke(e,r,t){e.each(function(a){var n=Wd.select(this),i;if(a.selected){i=IX.ensureUniformFontSize(t,GX(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),Xd.font(n,i)}else Xd.selectedTextStyle(n,r)})}function GX(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=WX(r,t);i=VX(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=jX(t,r.i,n));return i}function YX(e,r,t){return H8(kke,e.textfont,r,t)}function VX(e,r,t,a){var n=YX(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:Mke.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}),H8(Ske,e.insidetextfont,r,n)}function jX(e,r,t){var a=YX(e,r,t);return H8(qke,e.outsidetextfont,r,a)}function H8(e,r,t,a){r=r||{};var n=tn.getValue(r.family,t),i=tn.getValue(r.size,t),o=tn.getValue(r.color,t),l=tn.getValue(r.weight,t),s=tn.getValue(r.style,t),u=tn.getValue(r.variant,t),f=tn.getValue(r.textcase,t),c=tn.getValue(r.lineposition,t),v=tn.getValue(r.shadow,t);return{family:tn.coerceString(e.family,n,a.family),size:tn.coerceNumber(e.size,i,a.size),color:tn.coerceColor(e.color,o,a.color),weight:tn.coerceString(e.weight,l,a.weight),style:tn.coerceString(e.style,s,a.style),variant:tn.coerceString(e.variant,u,a.variant),textcase:tn.coerceString(e.variant,f,a.textcase),lineposition:tn.coerceString(e.variant,c,a.lineposition),shadow:tn.coerceString(e.variant,v,a.shadow)}}function WX(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}XX.exports={style:Lke,styleTextPoints:UX,styleOnSelect:Cke,getInsideTextFont:VX,getOutsideTextFont:jX,getBarColor:WX,resizeText:OX}});var Y8=z((DXe,tZ)=>{"use strict";var Bg=Er(),Og=Ir(),Ua=ke(),Pke=Ca(),Rke=Sr(),$s=Zr(),Fke=Tr(),Hg=Gr().tickText,ZX=jd(),zke=ZX.recordMinTextSize,Nke=ZX.clearMinTextSize,U8=Hc(),Uc=Ig(),Ike=qd(),$X=kf(),Bke=$X.text,Oke=$X.textposition,Hke=qo().appendArrayPointValue,Ln=Ike.TEXTPAD;function Uke(e){return e.id}function Gke(e){if(e.ids)return Uke}function G8(e){return(e>0)-(e<0)}function Ho(e,r){return e<r?1:-1}function Yke(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 JX(e,r,t,a){if(!r.uniformtext.mode&&KX(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 KX(e){return e&&e.duration>0}function Vke(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},Nke("bar",s));var f=Ua.makeTraceGroups(a,t,"trace bars").each(function(c){var v=Bg.select(this),d=c[0].trace,p=c[0].t,y=d.type==="waterfall",m=d.type==="funnel",b=d.type==="histogram",T=d.type==="bar",w=T||m,x=0;y&&d.connector.visible&&d.connector.mode==="between"&&(x=d.connector.line.width/2);var _=d.orientation==="h",k=KX(n),A=Ua.ensureSingle(v,"g","points"),q=Gke(d),C=A.selectAll("g.point").data(Ua.identity,q);C.enter().append("g").classed("point",!0),C.exit().remove(),C.each(function(P,R){var N=Bg.select(this),I=Yke(P,o,l,_),O=I[0][0],U=I[0][1],Y=I[1][0],G=I[1][1],V=(_?U-O:G-Y)===0;V&&w&&Uc.getLineWidth(d,P)&&(V=!1),V||(V=!Og(O)||!Og(U)||!Og(Y)||!Og(G)),P.isBlank=V,V&&(_?U=O:G=Y),x&&!V&&(_?(O-=Ho(O,U)*x,U+=Ho(O,U)*x):(Y-=Ho(Y,G)*x,G+=Ho(Y,G)*x));var W,j;if(d.type==="waterfall"){if(!V){var J=d[P.dir].marker;W=J.line.width,j=J.color}}else W=Uc.getLineWidth(d,P),j=P.mc||d.marker.color;function te(re){var xe=Bg.round(W/2%1,2);return n.gap===0&&n.groupgap===0?Bg.round(Math.round(re)-xe,2):re}function ae(re,xe,Ge){return Ge&&re===xe?re:Math.abs(re-xe)>=2?te(re):re>xe?Math.ceil(re):Math.floor(re)}var se=Rke.opacity(j),$=se<1||W>.01?te:ae;e._context.staticPlot||(O=$(O,U,_),U=$(U,O,_),Y=$(Y,G,!_),G=$(G,Y,!_));var fe=_?o.c2p:l.c2p,ie;P.s0>0?ie=P._sMax:P.s0<0?ie=P._sMin:ie=P.s1>0?P._sMax:P._sMin;function ue(re,xe){if(!re)return 0;var Ge=Math.abs(_?G-Y:U-O),cr=Math.abs(_?U-O:G-Y),Pe=$(Math.abs(fe(ie,!0)-fe(0,!0))),me=P.hasB?Math.min(Ge/2,cr/2):Math.min(Ge/2,Pe),Ae;if(xe==="%"){var He=Math.min(50,re);Ae=Ge*(He/100)}else Ae=re;return $(Math.max(Math.min(Ae,me),0))}var ce=T||b?ue(p.cornerradiusvalue,p.cornerradiusform):0,oe,be,Re="M"+O+","+Y+"V"+G+"H"+U+"V"+Y+"Z",ye=0;if(ce&&P.s){var Ce=G8(P.s0)===0||G8(P.s)===G8(P.s0)?P.s1:P.s0;if(ye=$(P.hasB?0:Math.abs(fe(ie,!0)-fe(Ce,!0))),ye<ce){var Me=Ho(O,U),Le=Ho(Y,G),De=Me===-Le?1:0;if(_)if(P.hasB)oe="M"+(O+ce*Me)+","+Y+"A "+ce+","+ce+" 0 0 "+De+" "+O+","+(Y+ce*Le)+"V"+(G-ce*Le)+"A "+ce+","+ce+" 0 0 "+De+" "+(O+ce*Me)+","+G+"H"+(U-ce*Me)+"A "+ce+","+ce+" 0 0 "+De+" "+U+","+(G-ce*Le)+"V"+(Y+ce*Le)+"A "+ce+","+ce+" 0 0 "+De+" "+(U-ce*Me)+","+Y+"Z";else{be=Math.abs(U-O)+ye;var Ne=be<ce?ce-Math.sqrt(be*(2*ce-be)):0,qe=ye>0?Math.sqrt(ye*(2*ce-ye)):0,Xe=Me>0?Math.max:Math.min;oe="M"+O+","+Y+"V"+(G-Ne*Le)+"H"+Xe(U-(ce-ye)*Me,O)+"A "+ce+","+ce+" 0 0 "+De+" "+U+","+(G-ce*Le-qe)+"V"+(Y+ce*Le+qe)+"A "+ce+","+ce+" 0 0 "+De+" "+Xe(U-(ce-ye)*Me,O)+","+(Y+Ne*Le)+"Z"}else if(P.hasB)oe="M"+(O+ce*Me)+","+Y+"A "+ce+","+ce+" 0 0 "+De+" "+O+","+(Y+ce*Le)+"V"+(G-ce*Le)+"A "+ce+","+ce+" 0 0 "+De+" "+(O+ce*Me)+","+G+"H"+(U-ce*Me)+"A "+ce+","+ce+" 0 0 "+De+" "+U+","+(G-ce*Le)+"V"+(Y+ce*Le)+"A "+ce+","+ce+" 0 0 "+De+" "+(U-ce*Me)+","+Y+"Z";else{be=Math.abs(G-Y)+ye;var $e=be<ce?ce-Math.sqrt(be*(2*ce-be)):0,We=ye>0?Math.sqrt(ye*(2*ce-ye)):0,Se=Le>0?Math.max:Math.min;oe="M"+(O+$e*Me)+","+Y+"V"+Se(G-(ce-ye)*Le,Y)+"A "+ce+","+ce+" 0 0 "+De+" "+(O+ce*Me-We)+","+G+"H"+(U-ce*Me+We)+"A "+ce+","+ce+" 0 0 "+De+" "+(U-$e*Me)+","+Se(G-(ce-ye)*Le,Y)+"V"+Y+"Z"}}else oe=Re}else oe=Re;var Fe=JX(Ua.ensureSingle(N,"path"),s,n,i);if(Fe.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((U-O)*(G-Y))||V&&e._context.staticPlot?"M0,0Z":oe).call($s.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Qe=$s.makePointStyleFns(d);$s.singlePointStyle(P,Fe,d,Qe,e)}jke(e,r,N,c,R,O,U,Y,G,ce,ye,n,i),r.layerClipId&&$s.hideOutsideRangePoint(P,N.select("text"),o,l,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;$s.setClipUrl(v,E?null:r.layerClipId,e)});Fke.getComponentMethod("errorbars","plot")(e,f,r,n)}function jke(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,y=e._fullLayout,m;function b(Re,ye,Ce){var Me=Ua.ensureSingle(Re,"text").text(ye).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call($s.font,Ce).call(Pke.convertToTspans,e);return Me}var T=a[0].trace,w=T.orientation==="h",x=Jke(a,w,d,p),_=Zke(y,a,n,d,p);m=$ke(T,n);var k=c.mode==="stack"||c.mode==="relative",A=a[n],q=!k||A._outmost,C=A.hasB,E=u&&u-f>Ln;if(!_||m==="none"||(A.isBlank||i===o||l===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var P=y.font,R=U8.getBarColor(a[n],T),N=U8.getInsideTextFont(T,n,P,R),I=U8.getOutsideTextFont(T,n,P),O=T.insidetextanchor||"end",U=t.datum();w?d.type==="log"&&U.s0<=0&&(d.range[0]<d.range[1]?i=0:i=d._length):p.type==="log"&&U.s0<=0&&(p.range[0]<p.range[1]?l=p._length:l=0);var Y=Math.abs(o-i),G=Math.abs(s-l),V=Y-2*Ln,W=G-2*Ln,j,J,te,ae,se;if(m==="outside"&&!q&&!A.hasB&&(m="inside"),m==="auto")if(q){m="inside",se=Ua.ensureUniformFontSize(e,N),j=b(t,_,se),J=$s.bBox(j.node()),te=J.width,ae=J.height;var $=te>0&&ae>0,fe;E?C?fe=Lf(V-2*u,W,te,ae,w)||Lf(V,W-2*u,te,ae,w):w?fe=Lf(V-(u-f),W,te,ae,w)||Lf(V,W-2*(u-f),te,ae,w):fe=Lf(V,W-(u-f),te,ae,w)||Lf(V-2*(u-f),W,te,ae,w):fe=Lf(V,W,te,ae,w),$&&fe?m="inside":(m="outside",j.remove(),j=null)}else m="inside";if(!j){se=Ua.ensureUniformFontSize(e,m==="outside"?I:N),j=b(t,_,se);var ie=j.attr("transform");if(j.attr("transform",""),J=$s.bBox(j.node()),te=J.width,ae=J.height,j.attr("transform",ie),te<=0||ae<=0){j.remove();return}}var ue=T.textangle,ce,oe;m==="outside"?(oe=T.constraintext==="both"||T.constraintext==="outside",ce=Xke(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ue,zeroBarDir:x})):(oe=T.constraintext==="both"||T.constraintext==="inside",ce=rZ(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ue,anchor:O,hasB:C,r:u,overhead:f})),ce.fontSize=se.size,zke(T.type==="histogram"?"bar":T.type,ce,y),A.transform=ce;var be=JX(j,y,c,v);Ua.setTransormAndDisplay(be,ce)}function Lf(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 QX(e){return e==="auto"?0:e}function eZ(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 rZ(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,y=i.hasB,m=i.r,b=i.overhead,T=n.width,w=n.height,x=Math.abs(r-e),_=Math.abs(a-t),k=x>2*Ln&&_>2*Ln?Ln:0;x-=2*k,_-=2*k;var A=QX(s);s==="auto"&&!(T<=x&&w<=_)&&(T>x||w>_)&&(!(T>_||w>x)||T<w!=x<_)&&(A+=90);var q=eZ(n,A),C,E;if(m&&m-b>Ln){var P=Wke(e,r,t,a,q,m,b,o,y);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,N=(n.top+n.bottom)/2,I=(e+Ln)*p+(r-Ln)*d,O=(t+a)/2,U=0,Y=0;if(c||f){var G=(o?q.x:q.y)/2;m&&(f||y)&&(k+=E);var V=o?Ho(e,r):Ho(t,a);o?c?(I=e+V*k,U=-V*G):(I=r-V*k,U=V*G):c?(O=t+V*k,Y=-V*G):(O=a-V*k,Y=V*G)}return{textX:R,textY:N,targetX:I,targetY:O,anchorX:U,anchorY:Y,scale:C,rotate:A}}function Wke(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*Ln),f=Math.max(0,Math.abs(a-t)-2*Ln),c=i-Ln,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,y,m,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?(y=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,T=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,m=-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=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):(y=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,T=(-m+Math.sqrt(m*m-4*y*b))/(2*y)),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 Xke(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*Ln?Ln:0:d=c>2*Ln?Ln:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var y=QX(s),m=eZ(n,y),b=(o?m.x:m.y)/2,T=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,_=(t+a)/2,k=0,A=0,q;return(o?e===r:t===a)&&i.zeroBarDir?q=i.zeroBarDir:q=o?Ho(r,e):Ho(t,a),o?(x=r-q*d,k=q*b):(_=a+q*d,A=-q*b),{textX:T,textY:w,targetX:x,targetY:_,anchorX:k,anchorY:A,scale:p,rotate:y}}function Zke(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=Kke(e,r,t,a,n):i.textinfo?l=Qke(r,t,a,n):l=Uc.getValue(i.text,t),Uc.coerceString(Bke,l)}function $ke(e,r){var t=Uc.getValue(e.textposition,r);return Uc.coerceEnumerated(Oke,t)}function Jke(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=-Ho(s.range[0],s.range[1]);return i?n?0:-u:u}function Kke(e,r,t,a,n){var i=r[0].trace,o=Ua.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 y(k){return Hg(v,v.c2l(k),!0).text}function m(k){return Hg(p,p.c2l(k),!0).text}var b=r[t],T={};T.label=b.p,T.labelLabel=T[c+"Label"]=y(b.p);var w=Ua.castOption(i,b.i,"text");(w===0||w)&&(T.text=w),T.value=b.s,T.valueLabel=T[d+"Label"]=m(b.s);var x={};Hke(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=m(T.delta),T.final=b.v,T.finalLabel=m(T.final),T.initial=T.final-T.delta,T.initialLabel=m(T.initial)),u&&(T.value=b.s,T.valueLabel=m(T.value),T.percentInitial=b.begR,T.percentInitialLabel=Ua.formatPercent(b.begR),T.percentPrevious=b.difR,T.percentPreviousLabel=Ua.formatPercent(b.difR),T.percentTotal=b.sumR,T.percenTotalLabel=Ua.formatPercent(b.sumR));var _=Ua.castOption(i,b.i,"customdata");return _&&(T.customdata=_),Ua.texttemplateString({data:[x,T,i._meta],fallback:i.texttemplatefallback,labels:T,locale:e._d3locale,template:o})}function Qke(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 Hg(k,_,!0).text}function u(_){var k=i?t:a;return Hg(k,+_,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,y=function(_){return v.indexOf(_)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(p=Ua.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var m=+c.rawS||c.s,b=c.v,T=b-m;y("initial")&&d.push(u(T)),y("delta")&&d.push(u(m)),y("final")&&d.push(u(b))}if(l){y("value")&&d.push(u(c.s));var w=0;y("percent initial")&&w++,y("percent previous")&&w++,y("percent total")&&w++;var x=w>1;y("percent initial")&&(p=Ua.formatPercent(c.begR),x&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=Ua.formatPercent(c.difR),x&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=Ua.formatPercent(c.sumR),x&&(p+=" of total"),d.push(p))}return d.join("<br>")}tZ.exports={plot:Vke,toMoveInsideBar:rZ}});var j8=z((EXe,oZ)=>{"use strict";var Zd=In(),eSe=Tr(),aZ=Sr(),rSe=ke().fillText,tSe=Ig().getLineWidth,V8=Gr().hoverLabelText,aSe=Gt().BADNUM;function nSe(e,r,t,a,n){var i=nZ(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=iZ(l,s),eSe.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function nZ(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,y,m,b,T;o.orientation==="h"?(v=t,d=r,p="y",y="x",m=O,b=R):(v=r,d=t,p="x",y="y",b=O,m=R);var w=o[p+"period"],x=s||w;function _($){return A($,-1)}function k($){return A($,1)}function A($,fe){var ie=$.w;return $[p]+fe*ie/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($,fe,ie){return n.finiteRange&&(ie=0),Zd.inbox($-v,fe-v,ie+Math.min(1,Math.abs(fe-$)/T)-1)}function R($){return P(C($),E($),f)}function N($){return P(_($),k($),c)}function I($){var fe=$[y];if(u){var ie=Math.abs($.rawS)||0;d>0?fe+=ie:d<0&&(fe-=ie)}return fe}function O($){var fe=d,ie=$.b,ue=I($);return Zd.inbox(ie-fe,ue-fe,f+(ue-fe)/(ue-ie)-1)}function U($){var fe=d,ie=$.b,ue=I($);return Zd.inbox(ie-fe,ue-fe,c+(ue-fe)/(ue-ie)-1)}var Y=e[p+"a"],G=e[y+"a"];T=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function V($){return(m($)+b($))/2}var W=Zd.getDistanceFunction(a,m,b,V);if(Zd.getClosest(i,W,e),e.index!==!1&&i[e.index].p!==aSe){x||(C=function($){return Math.min(_($),$.p-l.bargroupwidth/2)},E=function($){return Math.max(k($),$.p+l.bargroupwidth/2)});var j=e.index,J=i[j],te=o.base?J.b+J.s:J.s;e[y+"0"]=e[y+"1"]=G.c2p(J[y],!0),e[y+"LabelVal"]=te;var ae=l.extents[l.extents.round(J.p)];e[p+"0"]=Y.c2p(s?C(J):ae[0],!0),e[p+"1"]=Y.c2p(s?E(J):ae[1],!0);var se=J.orig_p!==void 0;return e[p+"LabelVal"]=se?J.orig_p:J.p,e.labelLabel=V8(Y,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=V8(G,e[y+"LabelVal"],o[y+"hoverformat"]),e.baseLabel=V8(G,J.b,o[y+"hoverformat"]),e.spikeDistance=(U(J)+N(J))/2,e[p+"Spike"]=Y.c2p(J.p,!0),rSe(J,o,e),e.hovertemplate=o.hovertemplate,e}}function iZ(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=tSe(e,r);if(aZ.opacity(t))return t;if(aZ.opacity(a)&&n)return a}oZ.exports={hoverPoints:nSe,hoverOnBars:nZ,getTraceColor:iZ}});var sZ=z((PXe,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 W8=z((RXe,uZ)=>{"use strict";uZ.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:iSe(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 iSe(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 cZ=z((FXe,fZ)=>{"use strict";fZ.exports={attributes:kf(),layoutAttributes:Fg(),supplyDefaults:Sf().supplyDefaults,crossTraceDefaults:Sf().crossTraceDefaults,supplyLayoutDefaults:B8(),calc:RX(),crossTraceCalc:$y().crossTraceCalc,colorbar:Ed(),arraysToCalcdata:Ng(),plot:Y8().plot,style:Hc().style,styleOnSelect:Hc().styleOnSelect,hoverPoints:j8().hoverPoints,eventData:sZ(),selectPoints:W8(),moduleType:"trace",name:"bar",basePlotModule:Qi(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var hZ=z((zXe,vZ)=>{"use strict";vZ.exports=cZ()});var Ug=z((NXe,yZ)=>{"use strict";var oSe=my(),to=Vi(),dZ=kf(),lSe=Ei(),pZ=ko().axisHoverFormat,{hovertemplateAttrs:sSe,templatefallbackAttrs:uSe}=fi(),Jl=At().extendFlat,Gc=to.marker,mZ=Gc.line;yZ.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:to.xperiod,yperiod:to.yperiod,xperiod0:to.xperiod0,yperiod0:to.yperiod0,xperiodalignment:to.xperiodalignment,yperiodalignment:to.yperiodalignment,xhoverformat:pZ("x"),yhoverformat:pZ("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:Jl({},Gc.symbol,{arrayOk:!1,editType:"plot"}),opacity:Jl({},Gc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Jl({},Gc.angle,{arrayOk:!1,editType:"calc"}),size:Jl({},Gc.size,{arrayOk:!1,editType:"calc"}),color:Jl({},Gc.color,{arrayOk:!1,editType:"style"}),line:{color:Jl({},mZ.color,{arrayOk:!1,dflt:lSe.defaultLine,editType:"style"}),width:Jl({},mZ.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:oSe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:dZ.offsetgroup,alignmentgroup:dZ.alignmentgroup,selected:{marker:to.selected.marker,editType:"style"},unselected:{marker:to.unselected.marker,editType:"style"},text:Jl({},to.text,{}),hovertext:Jl({},to.hovertext,{}),hovertemplate:sSe({}),hovertemplatefallback:uSe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:to.zorder}});var Gg=z((IXe,gZ)=>{"use strict";gZ.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 Jd=z((BXe,wZ)=>{"use strict";var ao=ke(),fSe=Tr(),cSe=Sr(),vSe=bc(),hSe=kd(),bZ=um(),$d=Ug();function dSe(e,r,t,a){function n(p,y){return ao.coerce(e,r,$d,p,y)}if(xZ(e,r,n,a),r.visible!==!1){vSe(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",cSe.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 ao.validate(e.notchwidth,$d.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),_Z(e,r,n,{prefix:"box"}),n("zorder")}}function xZ(e,r,t,a){function n(E){var P=0;return E&&E.length&&(P+=1,ao.isArrayOrTypedArray(E[0])&&E[0].length&&(P+=1)),P}function i(E){return ao.validate(e[E],$d[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(ao.minRowLength(u),ao.minRowLength(f),ao.minRowLength(c))}else r._hasPreCompStats=!1;var v=n(o),d=n(l),p=v&&ao.minRowLength(o),y=d&&ao.minRowLength(l),m=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,y);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,y,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,A;for(A=0;A<l.length;A++)if(bZ(l[A],m,b)==="category"){k=!0;break}if(k)T="v",w=Math.min(s,y,o.length);else{for(A=0;A<o.length;A++)if(bZ(o[A],m,b)==="category"){k=!0;break}k?(T="h",w=Math.min(s,l.length,p)):(T="v",w=Math.min(s,y,o.length))}break}else v>0?(T="v",d>0?w=Math.min(y,p):w=Math.min(p)):d>0?(T="h",w=Math.min(y)):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=fSe.getComponentMethod("calendars","handleTraceDefaults");C(e,r,["x","y"],a)}function _Z(e,r,t,a){var n=a.prefix,i=ao.coerce2(e,r,$d,"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")),ao.coerceSelectionMarkerOpacity(r,t)}function pSe(e,r){var t,a;function n(s){return ao.coerce(a._input,a,$d,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"&&hSe(t,a,r,n,l)}}}wZ.exports={supplyDefaults:dSe,crossTraceDefaults:pSe,handleSampleDefaults:xZ,handlePointsDefaults:_Z}});var X8=z((OXe,AZ)=>{"use strict";var mSe=Tr(),ySe=ke(),gSe=Gg();function TZ(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l<t.length;l++){var s=t[l];if(mSe.traceIs(s,i)){o=!0;break}}o&&(a(n+"mode"),a(n+"gap"),a(n+"groupgap"))}function bSe(e,r,t){function a(n,i){return ySe.coerce(e,r,gSe,n,i)}TZ(e,r,t,a,"box")}AZ.exports={supplyLayoutDefaults:bSe,_supply:TZ}});var J8=z((HXe,PZ)=>{"use strict";var $8=Ir(),Yg=Gr(),xSe=_c(),ya=ke(),Mi=Gt().BADNUM,Kl=ya._;PZ.exports=function(r,t){var a=r._fullLayout,n=Yg.getFromId(r,t.xaxis||"x"),i=Yg.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 y=_Se(t,d,v,a[l]),m=y[0],b=y[1],T=ya.distinctVals(m,v),w=T.vals,x=T.minDiff/2,_,k,A,q,C,E,P=(t.boxpoints||t.points)==="all"?ya.identity:function(De){return De.v<_.lf||De.v>_.uf};if(t._hasPreCompStats){var R=t[c],N=function(De){return f.d2c((t[De]||[])[s])},I=1/0,O=-1/0;for(s=0;s<t._length;s++){var U=m[s];if($8(U)){if(_={},_.pos=_[d]=U,p&&b&&(_.orig_p=b[s]),_.q1=N("q1"),_.med=N("median"),_.q3=N("q3"),k=[],R&&ya.isArrayOrTypedArray(R[s]))for(u=0;u<R[s].length;u++)E=f.d2c(R[s][u]),E!==Mi&&(C={v:E,i:[s,u]},MZ(C,t,[s,u]),k.push(C));if(_.pts=k.sort(kZ),A=_[c]=k.map(SZ),q=A.length,_.med!==Mi&&_.q1!==Mi&&_.q3!==Mi&&_.med>=_.q1&&_.q3>=_.med){var Y=N("lowerfence");_.lf=Y!==Mi&&Y<=_.q1?Y:qZ(_,A,q);var G=N("upperfence");_.uf=G!==Mi&&G>=_.q3?G:LZ(_,A,q);var V=N("mean");_.mean=V!==Mi?V:q?ya.mean(A,q):(_.q1+_.q3)/2;var W=N("sd");_.sd=V!==Mi&&W>=0?W:q?ya.stdev(A,q,_.mean):_.q3-_.q1,_.lo=CZ(_),_.uo=DZ(_);var j=N("notchspan");j=j!==Mi&&j>0?j:EZ(_,q),_.ln=_.med-j,_.un=_.med+j;var J=_.lf,te=_.uf;t.boxpoints&&A.length&&(J=Math.min(J,A[0]),te=Math.max(te,A[q-1])),t.notched&&(J=Math.min(J,_.ln),te=Math.max(te,_.un)),_.min=J,_.max=te}else{ya.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+_.q1,"median = "+_.med,"q3 = "+_.q3].join(`
`));var ae;_.med!==Mi?ae=_.med:_.q1!==Mi?_.q3!==Mi?ae=(_.q1+_.q3)/2:ae=_.q1:_.q3!==Mi?ae=_.q3:ae=0,_.med=ae,_.q1=_.q3=ae,_.lf=_.uf=ae,_.mean=_.sd=ae,_.ln=_.un=ae,_.min=_.max=ae}I=Math.min(I,_.min),O=Math.max(O,_.max),_.pts2=k.filter(P),o.push(_)}}t._extremes[f._id]=Yg.findExtremes(f,[I,O],{padded:!0})}else{var se=f.makeCalcdata(t,c),$=wSe(w,x),fe=w.length,ie=TSe(fe);for(s=0;s<t._length;s++)if(E=se[s],!!$8(E)){var ue=ya.findBin(m[s],$);ue>=0&&ue<fe&&(C={v:E,i:s},MZ(C,t,s),ie[ue].push(C))}var ce=1/0,oe=-1/0,be=t.quartilemethod,Re=be==="exclusive",ye=be==="inclusive";for(s=0;s<fe;s++)if(ie[s].length>0){if(_={},_.pos=_[d]=w[s],k=_.pts=ie[s].sort(kZ),A=_[c]=k.map(SZ),q=A.length,_.min=A[0],_.max=A[q-1],_.mean=ya.mean(A,q),_.sd=ya.stdev(A,q,_.mean)*t.sdmultiple,_.med=ya.interp(A,.5),q%2&&(Re||ye)){var Ce,Me;Re?(Ce=A.slice(0,q/2),Me=A.slice(q/2+1)):ye&&(Ce=A.slice(0,q/2+1),Me=A.slice(q/2)),_.q1=ya.interp(Ce,.5),_.q3=ya.interp(Me,.5)}else _.q1=ya.interp(A,.25),_.q3=ya.interp(A,.75);_.lf=qZ(_,A,q),_.uf=LZ(_,A,q),_.lo=CZ(_),_.uo=DZ(_);var Le=EZ(_,q);_.ln=_.med-Le,_.un=_.med+Le,ce=Math.min(ce,_.ln),oe=Math.max(oe,_.un),_.pts2=k.filter(P),o.push(_)}t.notched&&ya.isTypedArray(se)&&(se=Array.from(se)),t._extremes[f._id]=Yg.findExtremes(f,t.notched?se.concat([ce,oe]):se,{padded:!0})}return ASe(o,t),o.length>0?(o[0].t={num:a[l],dPos:x,posLetter:d,valLetter:c,labels:{med:Kl(r,"median:"),min:Kl(r,"min:"),q1:Kl(r,"q1:"),q3:Kl(r,"q3:"),max:Kl(r,"max:"),mean:t.boxmean==="sd"||t.sizemode==="sd"?Kl(r,"mean \xB1 \u03C3:").replace("\u03C3",t.sdmultiple===1?"\u03C3":t.sdmultiple+"\u03C3"):Kl(r,"mean:"),lf:Kl(r,"lower fence:"),uf:Kl(r,"upper fence:")}},a[l]++,o):[{t:{empty:!0}}]};function _Se(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=xSe(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||$8(e.name)&&["linear","log"].indexOf(t.type)!==-1||ya.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 wSe(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 TSe(e){for(var r=new Array(e),t=0;t<e;t++)r[t]=[];return r}var Z8={text:"tx",hovertext:"htx"};function MZ(e,r,t){for(var a in Z8)ya.isArrayOrTypedArray(r[a])&&(Array.isArray(t)?ya.isArrayOrTypedArray(r[a][t[0]])&&(e[Z8[a]]=r[a][t[0]][t[1]]):e[Z8[a]]=r[a][t])}function ASe(e,r){if(ya.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;ya.tagSelected(a,r,n)}}function kZ(e,r){return e.v-r.v}function SZ(e){return e.v}function qZ(e,r,t){return t===0?e.q1:Math.min(e.q1,r[Math.min(ya.findBin(2.5*e.q1-1.5*e.q3,r,!0)+1,t-1)])}function LZ(e,r,t){return t===0?e.q3:Math.max(e.q3,r[Math.max(ya.findBin(2.5*e.q3-1.5*e.q1,r),0)])}function CZ(e){return 4*e.q1-3*e.q3}function DZ(e){return 4*e.q3-3*e.q1}function EZ(e,r){return r===0?0:1.57*(e.q3-e.q1)/Math.sqrt(r)}});var K8=z((UXe,NZ)=>{"use strict";var RZ=Gr(),MSe=ke(),kSe=vf().getAxisGroup,FZ=["v","h"];function SSe(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i<FZ.length;i++){for(var o=FZ[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)}zZ("box",e,s,l)}}function zZ(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=MSe.distinctVals(c);(a.type==="category"||a.type==="multicategory")&&(d.minDiff=1);var p=d.minDiff/2;RZ.minDtick(a,d.minDiff,d.vals[0],!0);var y=e==="violin"?"_numViolins":"_numBoxes",m=i[y],b=i[e+"mode"]==="group"&&m>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,A=x.side,q,C,E,P;if(k)q=C=P=k/2,E=0;else if(q=p,b){var R=kSe(i,a._id)+x.orientation,N=i._alignmentOpts[R]||{},I=N[x.alignmentgroup]||{},O=Object.keys(I.offsetGroups||{}).length,U=O||m,Y=O?x._offsetIndex:_.num;C=q*T*w/U,E=2*q*(-.5+(Y+.5)/U)*T,P=q*T/U}else C=q*T*w,E=0,P=q;_.dPos=q,_.bPos=E,_.bdPos=C,_.wHover=P;var G,V,W=E+C,j,J,te,ae,se,$,fe=!!k,ie=(x.boxpoints||x.points)&&v>0;if(A==="positive"?(G=q*(k?1:.5),j=W,V=j=E):A==="negative"?(G=j=E,V=q*(k?1:.5),J=W):(G=V=q,j=J=W),ie){var ue=x.pointpos,ce=x.jitter,oe=x.marker.size/2,be=0;ue+ce>=0&&(be=W*(ue+ce),be>G?(fe=!0,se=oe,te=be):be>j&&(se=oe,te=G)),be<=G&&(te=G);var Re=0;ue-ce<=0&&(Re=-W*(ue-ce),Re>V?(fe=!0,$=oe,ae=Re):Re>J&&($=oe,ae=V)),Re<=V&&(ae=V)}else te=G,ae=V;var ye=new Array(f.length);for(u=0;u<f.length;u++)ye[u]=f[u].pos;x._extremes[o]=RZ.findExtremes(a,ye,{padded:fe,vpadminus:ae,vpadplus:te,vpadLinearized:!0,ppadminus:{x:$,y:se}[l],ppadplus:{x:se,y:$}[l]})}}}NZ.exports={crossTraceCalc:SSe,setPositionOffset:zZ}});var Q8=z((GXe,UZ)=>{"use strict";var Yc=Er(),Cf=ke(),qSe=Zr(),IZ=5,LSe=.01;function CSe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Cf.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Yc.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),BZ(s,{pos:v,val:d},c,f,n),OZ(s,{x:i,y:o},c,f),HZ(s,{pos:v,val:d},c,f)})}function BZ(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,y=p?1-2*t.notchwidth:1,m,b;Array.isArray(a.bdPos)?(m=a.bdPos[0],b=a.bdPos[1]):(m=a.bdPos,b=a.bdPos);var T=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Cf.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 Yc.select(this).attr("d","M0,0Z");var x=l.c2l(w.pos+u,!0),_=l.l2p(x-m)+c,k=l.l2p(x+b)+c,A=s?(_+k)/2:l.l2p(x)+c,q=t.whiskerwidth,C=s?_*q+(1-q)*A:l.l2p(x-f)+c,E=s?k*q+(1-q)*A:l.l2p(x+f)+c,P=l.l2p(x-m*y)+c,R=l.l2p(x+b*y)+c,N=t.sizemode==="sd",I=o.c2p(N?w.mean-w.sd:w.q1,!0),O=N?o.c2p(w.mean+w.sd,!0):o.c2p(w.q3,!0),U=Cf.constrain(N?o.c2p(w.mean,!0):o.c2p(w.med,!0),Math.min(I,O)+1,Math.max(I,O)-1),Y=w.lf===void 0||t.boxpoints===!1||N,G=o.c2p(Y?w.min:w.lf,!0),V=o.c2p(Y?w.max:w.uf,!0),W=o.c2p(w.ln,!0),j=o.c2p(w.un,!0);i?Yc.select(this).attr("d","M"+U+","+P+"V"+R+"M"+I+","+_+"V"+k+(p?"H"+W+"L"+U+","+R+"L"+j+","+k:"")+"H"+O+"V"+_+(p?"H"+j+"L"+U+","+P+"L"+W+","+_:"")+"Z"+(d?"M"+I+","+A+"H"+G+"M"+O+","+A+"H"+V+(v===0?"":"M"+G+","+C+"V"+E+"M"+V+","+C+"V"+E):"")):Yc.select(this).attr("d","M"+P+","+U+"H"+R+"M"+_+","+I+"H"+k+(p?"V"+W+"L"+R+","+U+"L"+k+","+j:"")+"V"+O+"H"+_+(p?"V"+j+"L"+P+","+U+"L"+_+","+W:"")+"Z"+(d?"M"+A+","+I+"V"+G+"M"+A+","+O+"V"+V+(v===0?"":"M"+C+","+G+"H"+E+"M"+C+","+V+"H"+E):""))})}function OZ(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Cf.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,y=Math.max((v.max-v.min)/10,v.q3-v.q1),m=y*1e-9,b=y*LSe,T=[],w=0,x;if(t.jitter){if(y===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-IZ),k=p[_].v,A=Math.min(p.length-1,d+IZ),q=p[A].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*(A-_)/(q-k+m))||0;C=Cf.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]*(Cf.pseudoRandom()-.5):0,N=v.pos+l+o*(t.pointpos+R);t.orientation==="h"?(E.y=N,E.x=P):(E.x=N,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(qSe.translatePoints,n,i)}function HZ(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?Cf.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),y=i.l2p(p-f)+s,m=i.l2p(p+c)+s,b=o?(y+m)/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"?Yc.select(this).attr("d","M"+T+","+y+"V"+m+(u==="sd"?"m0,0L"+w+","+b+"L"+T+","+y+"L"+x+","+b+"Z":"")):Yc.select(this).attr("d","M"+y+","+T+"H"+m+(u==="sd"?"m0,0L"+b+","+w+"L"+y+","+T+"L"+b+","+x+"Z":""))})}UZ.exports={plot:CSe,plotBoxAndWhiskers:BZ,plotPoints:OZ,plotBoxMean:HZ}});var a9=z((YXe,GZ)=>{"use strict";var e9=Er(),r9=Sr(),t9=Zr();function DSe(e,r,t){var a=t||e9.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=e9.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(r9.stroke,d).call(r9.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=e9.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(r9.stroke,o.line.color);var f=i.selectAll("path.point");t9.pointStyle(f,o,e)}})}function ESe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?t9.selectedPointStyle(n,a):t9.pointStyle(n,a,e)}GZ.exports={style:DSe,styleOnSelect:ESe}});var i9=z((VXe,WZ)=>{"use strict";var PSe=Gr(),n9=ke(),Js=In(),YZ=Sr(),RSe=n9.fillText;function FSe(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(VZ(e,r,t,a))),o.indexOf("points")!==-1&&(s=jZ(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function VZ(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,y,m,b,T,w,x,_=s.bdPos,k,A,q=s.wHover,C=function(oe){return v.c2l(oe.pos)+s.bPos-v.c2l(y)};u&&l.side!=="both"?(l.side==="positive"&&(T=function(oe){var be=C(oe);return Js.inbox(be,be+q,w)},k=_,A=0),l.side==="negative"&&(T=function(oe){var be=C(oe);return Js.inbox(be-q,be,w)},k=0,A=_)):(T=function(oe){var be=C(oe);return Js.inbox(be-q,be+q,w)},k=A=_);var E;u?E=function(oe){return Js.inbox(oe.span[0]-p,oe.span[1]-p,w)}:E=function(oe){return Js.inbox(oe.min-p,oe.max-p,w)},l.orientation==="h"?(p=r,y=t,m=E,b=T,f="y",v=o,c="x",d=i):(p=t,y=r,m=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(m(oe)+b(oe))/2}var N=Js.getDistanceFunction(a,m,b,R);if(Js.getClosest(n,N,e),e.index===!1)return[];var I=n[e.index],O=l.line.color,U=(l.marker||{}).color;YZ.opacity(O)&&l.line.width?e.color=O:YZ.opacity(U)&&l.boxpoints?e.color=U:e.color=l.fillcolor,e[f+"0"]=v.c2p(I.pos+s.bPos-A,!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 Y=f+"Spike";e.spikeDistance=R(I)*x/w,e[Y]=v.c2p(I.pos,!0);var G=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,V=l.boxpoints||l.points,W=V&&G?["max","uf","q3","med","mean","q1","lf","min"]:V&&!G?["max","uf","q3","med","q1","lf","min"]:!V&&G?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],j=d.range[1]<d.range[0];l.orientation===(j?"v":"h")&&W.reverse();for(var J=e.spikeDistance,te=e[Y],ae=[],se=0;se<W.length;se++){var $=W[se];if($ in I){var fe=I[$],ie=d.c2p(fe,!0),ue=n9.extendFlat({},e);ue.attr=$,ue[c+"0"]=ue[c+"1"]=ie,ue[c+"LabelVal"]=fe,ue[c+"Label"]=(s.labels?s.labels[$]+" ":"")+PSe.hoverLabelText(d,fe,l[c+"hoverformat"]),ue.hoverOnBox=!0,$==="mean"&&"sd"in I&&(l.boxmean==="sd"||l.sizemode==="sd")&&(ue[c+"err"]=I.sd),ue.hovertemplate=!1,ae.push(ue)}}e.name="",e.spikeDistance=void 0,e[Y]=void 0;for(var ce=0;ce<ae.length;ce++)ae[ce].attr!=="med"?(ae[ce].name="",ae[ce].spikeDistance=void 0,ae[ce][Y]=void 0):(ae[ce].spikeDistance=J,ae[ce][Y]=te);return ae}function jZ(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=Js.quadrature(f,c),d=!1,p,y,m=0;m<a.length;m++){p=a[m];for(var b=0;b<(p.pts||[]).length;b++){y=p.pts[b];var T=v(y);T<=e.distance&&(e.distance=T,d=[m,b])}}if(!d)return!1;p=a[d[0]],y=p.pts[d[1]];var w=n.c2p(y.x,!0),x=i.c2p(y.y,!0),_=y.mrc||1;u=n9.extendFlat({},e,{index:y.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,A=k!==void 0?k:p.pos,q;o.orientation==="h"?(q=i,u.xLabelVal=y.x,u.yLabelVal=A):(q=n,u.xLabelVal=A,u.yLabelVal=y.y);var C=q._id.charAt(0);return u[C+"Spike"]=q.c2p(p.pos,!0),RSe(y,o,u),u}WZ.exports={hoverPoints:FSe,hoverOnBoxes:VZ,hoverOnPoints:jZ}});var ZZ=z((jXe,XZ)=>{"use strict";XZ.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((WXe,$Z)=>{"use strict";$Z.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 KZ=z((XXe,JZ)=>{"use strict";JZ.exports={attributes:Ug(),layoutAttributes:Gg(),supplyDefaults:Jd().supplyDefaults,crossTraceDefaults:Jd().crossTraceDefaults,supplyLayoutDefaults:X8().supplyLayoutDefaults,calc:J8(),crossTraceCalc:K8().crossTraceCalc,plot:Q8().plot,style:a9().style,styleOnSelect:a9().styleOnSelect,hoverPoints:i9().hoverPoints,eventData:ZZ(),selectPoints:o9(),moduleType:"trace",name:"box",basePlotModule:Qi(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var e$=z((ZXe,QZ)=>{"use strict";QZ.exports=KZ()});var Kd=z(($Xe,t$)=>{"use strict";var zSe=el(),{extendFlat:ti}=At(),NSe=zn(),{axisHoverFormat:l9}=ko(),ISe=ka(),{hovertemplateAttrs:BSe,templatefallbackAttrs:r$,texttemplateAttrs:OSe}=fi(),ki=Vi();t$.exports=ti({z:{valType:"data_array",editType:"calc"},x:ti({},ki.x,{impliedEdits:{xtype:"array"}}),x0:ti({},ki.x0,{impliedEdits:{xtype:"scaled"}}),dx:ti({},ki.dx,{impliedEdits:{xtype:"scaled"}}),y:ti({},ki.y,{impliedEdits:{ytype:"array"}}),y0:ti({},ki.y0,{impliedEdits:{ytype:"scaled"}}),dy:ti({},ki.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:ti({},ki.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:ti({},ki.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:ti({},ki.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:ti({},ki.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:ti({},ki.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:ti({},ki.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:l9("x"),yhoverformat:l9("y"),zhoverformat:l9("z",1),hovertemplate:BSe(),hovertemplatefallback:r$(),texttemplate:OSe({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:r$({editType:"plot"}),textfont:ISe({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:ti({},NSe.showlegend,{dflt:!1}),zorder:ki.zorder},zSe("",{cLetter:"z",autoColorDflt:!1}))});var s9=z((JXe,n$)=>{"use strict";var HSe=Ir(),Vg=ke(),USe=Tr();n$.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(Vg.isArray1D(l)){s=a(i),u=a(o);var f=Vg.minRowLength(s),c=Vg.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=a$(i,a),u=a$(o,a),!GSe(l))return 0;a("transpose"),t._length=null}var v=USe.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function a$(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function GSe(e){for(var r=!0,t=!1,a=!1,n,i=0;i<e.length;i++){if(n=e[i],!Vg.isArrayOrTypedArray(n)){r=!1;break}n.length>0&&(t=!0);for(var o=0;o<n.length;o++)if(HSe(n[o])){a=!0;break}}return r&&t&&a}});var Qd=z((KXe,o$)=>{"use strict";var i$=ke();o$.exports=function(r,t){r("texttemplate"),r("texttemplatefallback");var a=i$.extendFlat({},t.font,{color:"auto",size:"auto"});i$.coerceFont(r,"textfont",a)}});var u9=z((QXe,l$)=>{"use strict";l$.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var f$=z((eZe,u$)=>{"use strict";var s$=ke(),YSe=s9(),VSe=Qd(),jSe=bc(),WSe=u9(),XSe=Bl(),ZSe=Kd();u$.exports=function(r,t,a,n){function i(l,s){return s$.coerce(r,t,ZSe,l,s)}var o=YSe(r,t,i,n);if(!o){t.visible=!1;return}jSe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),VSe(i,n),WSe(r,t,i,n),i("hoverongaps"),i("connectgaps",s$.isArray1D(t.z)&&t.zsmooth!==!1),XSe(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var f9=z((rZe,c$)=>{"use strict";var Vc=Ir();c$.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Vc(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Vc(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Vc(n))if(n=Number(n),Vc(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(Vc(n))if(n=Number(n),Vc(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 c9=z((tZe,v$)=>{"use strict";v$.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 v9=z((aZe,h$)=>{"use strict";h$.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 h9=z((nZe,_$)=>{"use strict";var jc=Gt(),Df=jc.ONEAVGYEAR,d$=jc.ONEAVGMONTH,Wg=jc.ONEDAY,p$=jc.ONEHOUR,m$=jc.ONEMIN,y$=jc.ONESEC,g$=Gr().tickIncrement;_$.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(jg(u+l,u+s,n,i),jg(f+l,f+s,n,i)),v=Math.min(jg(u+o,u+l,n,i),jg(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>Wg){var y=d===Df?1:6,m=d===Df?"M12":"M1";return function(b,T){var w=n.c2d(b,Df,i),x=w.indexOf("-",y);x>0&&(w=w.slice(0,x));var _=n.d2c(w,0,i);if(_<b){var k=g$(_,m,!1,i);(_+k)/2<b+r&&(_=k)}return T&&p?g$(_,m,!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 jg(e,r,t,a){if(e*r<=0)return 1/0;for(var n=Math.abs(r-e),i=t.type==="date",o=b$(n,i),l=0;l<10;l++){var s=b$(o*80,i);if(o===s)break;if($Se(s,e,r,i,t,a))o=s;else break}return o}function b$(e,r){return r&&e>y$?e>Wg?e>Df*1.1?Df:e>d$*1.1?d$:Wg:e>p$?p$:e>m$?m$:y$:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function $Se(e,r,t,a,n,i){if(a&&e>Wg){var o=x$(r,n,i),l=x$(t,n,i),s=e===Df?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function x$(e,r,t){var a=r.c2d(e,Df,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var m9=z((iZe,k$)=>{"use strict";var d9=Ir(),Cn=ke(),w$=Tr(),no=Gr(),{hasColorscale:T$}=hi(),A$=W0(),JSe=Ng(),M$=f9(),KSe=c9(),QSe=v9(),eqe=h9();function rqe(e,r){var t=[],a=[],n=r.orientation==="h",i=no.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=p9(e,r,i,o),v=c[0],d=c[1],p=typeof v.size=="string",y=[],m=p?y:v,b=[],T=[],w=[],x=0,_=r.histnorm,k=r.histfunc,A=_.indexOf("density")!==-1,q,C,E;u.enabled&&A&&(_=_.replace(/ ?density$/,""),A=!1);var P=k==="max"||k==="min",R=P?null:0,N=M$.count,I=KSe[_],O=!1,U=function(be){return i.r2c(be,0,s)},Y;for(Cn.isArrayOrTypedArray(r[l])&&k!=="count"&&(Y=r[l],O=k==="avg",N=M$[k]),f=U(v.start),C=U(v.end)+(f-no.tickIncrement(f,v.size,!1,s))/1e6;f<C&&t.length<1e6&&(q=no.tickIncrement(f,v.size,!1,s),t.push((f+q)/2),a.push(R),w.push([]),y.push(f),A&&b.push(1/(q-f)),O&&T.push(0),!(q<=f));)f=q;y.push(f),!p&&i.type==="date"&&(m={start:U(m.start),end:U(m.end),size:m.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var G=r["_"+o+"bingroup"],V={leftGap:1/0,rightGap:1/0};G&&(e._fullLayout._roundFnOpts[G]||(e._fullLayout._roundFnOpts[G]=V),V=e._fullLayout._roundFnOpts[G]);var W=a.length,j=!0,J=V.leftGap,te=V.rightGap,ae={};for(f=0;f<d.length;f++){var se=d[f];E=Cn.findBin(se,m),E>=0&&E<W&&(x+=N(E,f,a,Y,T),j&&w[E].length&&se!==d[w[E][0]]&&(j=!1),w[E].push(f),ae[f]=E,J=Math.min(J,se-y[E]),te=Math.min(te,y[E+1]-se))}V.leftGap=J,V.rightGap=te;var $;j||($=function(be,Re){return function(){var ye=e._fullLayout._roundFnOpts[G];return eqe(ye.leftGap,ye.rightGap,y,i,s)(be,Re)}}),O&&(x=QSe(a,T)),I&&I(a,x,b),u.enabled&&nqe(a,u.direction,u.currentbin);var fe=Math.min(t.length,a.length),ie=[],ue=0,ce=fe-1;for(f=0;f<fe;f++)if(a[f]){ue=f;break}for(f=fe-1;f>=ue;f--)if(a[f]){ce=f;break}for(f=ue;f<=ce;f++)if(d9(t[f])&&d9(a[f])){var oe={p:t[f],s:a[f],b:0};u.enabled||(oe.pts=w[f],j?oe.ph0=oe.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,oe.ph0=$(y[f]),oe.ph1=$(y[f+1],!0))),ie.push(oe)}return ie.length===1&&(ie[0].width1=no.tickIncrement(ie[0].p,v.size,!1,s)-ie[0].p),T$(r,"marker")&&A$(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),T$(r,"marker.line")&&A$(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),JSe(ie,r),Cn.isArrayOrTypedArray(r.selectedpoints)&&Cn.tagSelected(ie,r,ae),ie}function p9(e,r,t,a,n){var se;var i=a+"bins",o=e._fullLayout,l=r["_"+a+"bingroup"],s=o._histogramBinOpts[l],u=o.barmode==="overlay",f,c,v,d,p,y,m,b=function($){return t.r2c($,0,d)},T=function($){return t.c2r($,0,d)},w=t.type==="date"?function($){return $||$===0?Cn.cleanDate($,null,d):null}:function($){return d9($)?Number($):null};function x($,fe,ie){fe[$+"Found"]?(fe[$]=w(fe[$]),fe[$]===null&&(fe[$]=ie[$])):(y[$]=fe[$]=ie[$],Cn.nestedProperty(c[0],i+"."+$).set(ie[$]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var _=[],k=!0,A=!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),_=Cn.concat(_,p),delete v["_"+a+"autoBinFinished"],r.visible===!0&&(k?k=!1:(delete v._autoBin,v["_"+a+"autoBinFinished"]=1),w$.traceIs(v,"2dMap")&&(A=!0),v.type==="histogram2dcontour"&&(q=!0))}d=c[0][a+"calendar"];var E=no.autoBin(_,t,s.nbins,A,d,s.sizeFound&&s.size),P=c[0]._autoBin={};if(y=P[s.dirs[0]]={},q&&(s.size||(E.start=T(no.tickIncrement(b(E.start),E.size,!0,d))),s.end===void 0&&(E.end=T(no.tickIncrement(b(E.end),E.size,!1,d)))),u&&!w$.traceIs(r,"2dMap")&&E._dataSpan===0&&t.type!=="category"&&t.type!=="multicategory"&&r.bingroup===""&&!((se=r._input[i])!=null&&se.size)){if(n)return[E,p,!0];E=tqe(e,r,t,a,i)}m=v.cumulative||{},m.enabled&&m.currentbin!=="include"&&(m.direction==="decreasing"?E.start=T(no.tickIncrement(b(E.start),E.size,!0,d)):E.end=T(no.tickIncrement(b(E.end),E.size,!1,d))),s.size=E.size,s.sizeFound||(y.size=E.size,Cn.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]||{},N=Cn.extendFlat({},s),I=s.start,O=t.r2l(R.start),U=O!==void 0;if((s.startFound||U)&&O!==t.r2l(I)){var Y=U?O:Cn.aggNums(Math.min,null,p),G={type:t.type==="category"||t.type==="multicategory"?"linear":t.type,r2l:t.r2l,dtick:s.size,tick0:I,calendar:d,range:[Y,no.tickIncrement(Y,s.size,!1,d)].map(t.l2r)},V=no.tickFirst(G);V>t.r2l(Y)&&(V=no.tickIncrement(V,s.size,!0,d)),N.start=t.l2r(V),U||Cn.nestedProperty(r,i+".start").set(N.start)}var W=s.end,j=t.r2l(R.end),J=j!==void 0;if((s.endFound||J)&&j!==t.r2l(W)){var te=J?j:Cn.aggNums(Math.max,null,p);N.end=t.l2r(te),J||Cn.nestedProperty(r,i+".start").set(N.end)}var ae="autobin"+a;return r._input[ae]===!1&&(r._input[i]=Cn.extendFlat({},r[i]||{}),delete r._input[ae],delete r[ae]),[N,p]}function tqe(e,r,t,a,n){var i=e._fullLayout,o=aqe(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=p9(e,c,t,a,!0),p=d[0],y=d[2];c["_"+a+"autoBinFinished"]=1,c["_"+a+"pos0"]=d[1],y?u.push(c):s=Math.min(s,p.size)}var m=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){m[f]=b[T];break}for(isFinite(s)||(s=Cn.distinctVals(m).minDiff),f=0;f<u.length;f++){c=u[f];var w=c[a+"calendar"],x={start:t.c2r(m[f]-s/2,0,w),end:t.c2r(m[f]+s/2,0,w),size:s};c._input[n]=c[n]=x,v=i._histogramBinOpts[c["_"+a+"bingroup"]],v&&Cn.extendFlat(v,x)}return r[n]}function aqe(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 nqe(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())}}k$.exports={calc:rqe,calcAllAutoBins:p9}});var R$=z((oZe,P$)=>{"use strict";var S$=ke(),Wc=Gr(),q$=f9(),iqe=c9(),oqe=v9(),lqe=h9(),L$=m9().calcAllAutoBins;P$.exports=function(r,t){var a=Wc.getFromId(r,t.xaxis),n=Wc.getFromId(r,t.yaxis),i=t.xcalendar,o=t.ycalendar,l=function(me){return a.r2c(me,0,i)},s=function(me){return n.r2c(me,0,o)},u=function(me){return a.c2r(me,0,i)},f=function(me){return n.c2r(me,0,o)},c,v,d,p,y=L$(r,t,a,"x"),m=y[0],b=y[1],T=L$(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=[],A=[],q=[],C=typeof m.size=="string",E=typeof w.size=="string",P=[],R=[],N=C?P:m,I=E?R:w,O=0,U=[],Y=[],G=t.histnorm,V=t.histfunc,W=G.indexOf("density")!==-1,j=V==="max"||V==="min",J=j?null:0,te=q$.count,ae=iqe[G],se=!1,$=[],fe=[],ie="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";ie&&V!=="count"&&(se=V==="avg",te=q$[V]);var ue=m.size,ce=l(m.start),oe=l(m.end)+(ce-Wc.tickIncrement(ce,ue,!1,i))/1e6;for(c=ce;c<oe;c=Wc.tickIncrement(c,ue,!1,i))A.push(J),P.push(c),se&&q.push(0);P.push(c);var be=A.length,Re=(c-ce)/be,ye=u(ce+Re/2),Ce=w.size,Me=s(w.start),Le=s(w.end)+(Me-Wc.tickIncrement(Me,Ce,!1,o))/1e6;for(c=Me;c<Le;c=Wc.tickIncrement(c,Ce,!1,o)){k.push(A.slice()),R.push(c);var De=new Array(be);for(v=0;v<be;v++)De[v]=[];Y.push(De),se&&U.push(q.slice())}R.push(c);var Ne=k.length,qe=(c-Me)/Ne,Xe=f(Me+qe/2);W&&($=C$(A.length,N,Re,C),fe=C$(k.length,I,qe,E)),!C&&a.type==="date"&&(N=D$(l,N)),!E&&n.type==="date"&&(I=D$(s,I));var $e=!0,We=!0,Se=new Array(be),Fe=new Array(Ne),Qe=1/0,re=1/0,xe=1/0,Ge=1/0;for(c=0;c<_;c++){var cr=b[c],Pe=x[c];d=S$.findBin(cr,N),p=S$.findBin(Pe,I),d>=0&&d<be&&p>=0&&p<Ne&&(O+=te(d,c,k[p],ie,U[p]),Y[p][d].push(c),$e&&(Se[d]===void 0?Se[d]=cr:Se[d]!==cr&&($e=!1)),We&&(Fe[p]===void 0?Fe[p]=Pe:Fe[p]!==Pe&&(We=!1)),Qe=Math.min(Qe,cr-P[d]),re=Math.min(re,P[d+1]-cr),xe=Math.min(xe,Pe-R[p]),Ge=Math.min(Ge,R[p+1]-Pe))}if(se)for(p=0;p<Ne;p++)O+=oqe(k[p],U[p]);if(ae)for(p=0;p<Ne;p++)ae(k[p],O,$,fe[p]);return{x:b,xRanges:E$(P,$e&&Se,Qe,re,a,i),x0:ye,dx:Re,y:x,yRanges:E$(R,We&&Fe,xe,Ge,n,o),y0:Xe,dy:qe,z:k,pts:Y}};function C$(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 D$(e,r){return{start:e(r.start),end:e(r.end),size:r.size}}function E$(e,r,t,a,n,i){var o,l=e.length-1,s=new Array(l),u=lqe(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 I$=z((lZe,N$)=>{"use strict";var gl=ke(),F$=Gt().BADNUM,z$=_c();N$.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=z$(r,t,n,s).vals,u=z$(r,a,i,u).vals;var f=r.text,c=f!==void 0&&gl.isArray1D(f),v=r.hovertext,d=v!==void 0&&gl.isArray1D(v),p,y,m=gl.distinctVals(s),b=m.vals,T=gl.distinctVals(u),w=T.vals,x=[],_,k,A=w.length,q=b.length;for(p=0;p<o.length;p++)x[p]=gl.init2dArray(A,q);c&&(_=gl.init2dArray(A,q)),d&&(k=gl.init2dArray(A,q));var C=gl.init2dArray(A,q);for(p=0;p<l;p++)if(s[p]!==F$&&u[p]!==F$){var E=gl.findBin(s[p]+m.minDiff/2,b),P=gl.findBin(u[p]+T.minDiff/2,w);for(y=0;y<o.length;y++){var R=o[y],N=r[R],I=x[y];I[P][E]=N[p],C[P][E]=p}c&&(_[P][E]=f[p]),d&&(k[P][E]=v[p])}for(r["_"+n]=b,r["_"+i]=w,y=0;y<o.length;y++)r["_"+o[y]]=x[y];c&&(r._text=_),d&&(r._hovertext=k),t&&t.type==="category"&&(r["_"+n+"CategoryMap"]=b.map(function(O){return t._categories[O]})),a&&a.type==="category"&&(r["_"+i+"CategoryMap"]=w.map(function(O){return a._categories[O]})),r._after2before=C}});var O$=z((sZe,B$)=>{"use strict";var sqe=Ir(),uqe=ke(),Xg=Gt().BADNUM;B$.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(b){if(sqe(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===Xg||w===Xg?Xg: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:Xg}}else return uqe.identity}var p=d(a),y=d(n);n&&n.type==="category"&&(i=n._categories.length);var m=new Array(i);for(u=0;u<i;u++)for(a&&a.type==="category"?o=a._categories.length:o=l(r,u),m[u]=new Array(o),f=0;f<o;f++)m[u][f]=c(v(r,y(u),p(f)));return m}});var Y$=z((uZe,G$)=>{"use strict";var fqe=ke(),H$=.01,cqe=[[-1,0],[1,0],[0,-1],[0,1]];function vqe(e){return .5-.25*Math.min(1,e*.5)}G$.exports=function(r,t){var a=1,n;for(U$(r,t),n=0;n<t.length&&!(t[n][2]<4);n++);for(t=t.slice(n),n=0;n<100&&a>H$;n++)a=U$(r,t,vqe(a));return a>H$&&fqe.log("interp2d didn't converge quickly",a),r};function U$(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,y,m;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=cqe[s],f=e[i+u[0]],f&&(c=f[o+u[1]],c!==void 0&&(d===0?y=m=c:(y=Math.min(y,c),m=Math.max(m,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,m>y&&(a=Math.max(a,Math.abs(e[i][o]-p)/(m-y))))}return a}});var j$=z((fZe,V$)=>{"use strict";var hqe=ke().maxRowLength;V$.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=hqe(r),u,f,c,v,d,p,y,m;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(y={},m=!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&&(y[v]=[f,c,p],n.splice(d,1),m=!0);if(!m)throw"findEmpties iterated with no new neighbors";for(v in y)a[v]=y[v],t.push(y[v])}return t.sort(function(b,T){return T[2]-b[2]})}});var $$=z((cZe,Z$)=>{"use strict";var W$=Tr(),X$=ke().isArrayOrTypedArray;Z$.exports=function(r,t,a,n,i,o){var l=[],s=W$.traceIs(r,"contour"),u=W$.traceIs(r,"histogram"),f,c,v,d=X$(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 y=l[l.length-1],m;if(o.type==="log")for(m=y/l[l.length-2],v=p;v<i;v++)y*=m,l.push(y);else for(m=y-l[l.length-2],v=p;v<i;v++)y+=m,l.push(y)}}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(X$(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 Jg=z((vZe,eJ)=>{"use strict";var J$=Tr(),y9=ke(),Zg=Gr(),K$=_c(),dqe=R$(),pqe=W0(),mqe=I$(),yqe=O$(),gqe=Y$(),bqe=j$(),$g=$$(),g9=Gt().BADNUM;eJ.exports=function(r,t){var a=Zg.getFromId(r,t.xaxis||"x"),n=Zg.getFromId(r,t.yaxis||"y"),i=J$.traceIs(t,"contour"),o=J$.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,y,m,b,T;if(a._minDtick=0,n._minDtick=0,o)T=dqe(r,t),c=T.orig_x,s=T.x,u=T.x0,f=T.dx,y=T.orig_y,v=T.y,d=T.y0,p=T.dy,m=T.z;else{var w=t.z;y9.isArray1D(w)?(mqe(t,a,n,"x","y",["z"]),s=t._x,v=t._y,w=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],y=t.y?n.makeCalcdata(t,"y"):[],s=K$(t,a,"x",c).vals,v=K$(t,n,"y",y).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,m=yqe(w,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(m=xqe(s,v,m),o||(s=Q$(s),v=Q$(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=bqe(m),gqe(m,t._emptypoints));function x(N){l=t._input.zsmooth=t.zsmooth=!1,y9.warn('cannot use zsmooth: "fast": '+N)}function _(N){if(N.length>1){var I=(N[N.length-1]-N[0])/(N.length-1),O=Math.abs(I/100);for(b=0;b<N.length-1;b++)if(Math.abs(N[b+1]-N[b]-I)>O)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=y9.maxRowLength(m),A=t.xtype==="scaled"?"":s,q=$g(t,A,u,f,k,a),C=t.ytype==="scaled"?"":v,E=$g(t,C,d,p,m.length,n);t._extremes[a._id]=Zg.findExtremes(a,q),t._extremes[n._id]=Zg.findExtremes(n,E);var P={x:q,y:E,z:m,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&y&&(P.orig_y=y),A&&A.length===q.length-1&&(P.xCenter=A),C&&C.length===E.length-1&&(P.yCenter=C),o&&(P.xRanges=T.xRanges,P.yRanges=T.yRanges,P.pts=T.pts),i||pqe(r,t,{vals:m,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=$g(R,A,u,f,k,a),P.yfill=$g(R,C,d,p,m.length,n)}return[P]};function Q$(e){for(var r=[],t=e.length,a=0;a<t;a++){var n=e[a];n!==g9&&r.push(n)}return r}function xqe(e,r,t){for(var a=[],n=-1,i=0;i<t.length;i++)if(r[i]!==g9){n++,a[n]=[];for(var o=0;o<t[i].length;o++)e[o]!==g9&&a[n].push(t[i][o])}return a}});var Qg=z(Kg=>{"use strict";Kg.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];Kg.STYLE=Kg.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var x9=z((dZe,tJ)=>{"use strict";var rJ=Qg(),_qe=Zr(),b9=ke(),Xc=null;function wqe(){if(Xc!==null)return Xc;Xc=!1;var e=b9.isSafari()||b9.isMacWKWebView()||b9.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(rJ.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Xc=r.some(function(o){return t.apply(null,o)});else{var a=_qe.tester.append("image").attr("style",rJ.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Xc=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Xc}tJ.exports=wqe});var e3=z((pZe,vJ)=>{"use strict";var aJ=Er(),Tqe=Tr(),Aqe=Zr(),Mqe=Gr(),io=ke(),nJ=Ca(),kqe=Cw(),iJ=Sr(),Sqe=rl().extractOpts,qqe=rl().makeColorScaleFuncFromTrace,Lqe=Il(),Cqe=Qa(),_9=Cqe.LINE_SPACING,Dqe=x9(),Eqe=Qg().STYLE,fJ="heatmap-label";function cJ(e){return e.selectAll("g."+fJ)}function oJ(e){cJ(e).remove()}vJ.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;io.makeTraceGroups(a,t,"hm").each(function(o){var l=aJ.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,y=s.xCenter,m=s.yCenter,b=Tqe.traceIs(u,"contour"),T=b?"best":u.zsmooth,w=v.length,x=io.maxRowLength(v),_=!1,k=!1,A,q,C,E,P,R,N,I;for(R=0;A===void 0&&R<d.length-1;)A=n.c2p(d[R]),R++;for(R=d.length-1;q===void 0&&R>0;)q=n.c2p(d[R]),R--;for(q<A&&(C=q,q=A,A=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&&(y=d,m=p,d=s.xfill,p=s.yfill);var O="default";if(T?O=T==="best"?"smooth":"fast":u._islinear&&f===0&&c===0&&Dqe()&&(O="fast"),O!=="fast"){var U=T==="best"?0:.5;A=Math.max(-U*n._length,A),q=Math.min((1+U)*n._length,q),E=Math.max(-U*i._length,E),P=Math.min((1+U)*i._length,P)}var Y=Math.round(q-A),G=Math.round(P-E),V=A>=n._length||q<=0||E>=i._length||P<=0;if(V){var W=l.selectAll("image").data([]);W.exit().remove(),oJ(l);return}var j,J;O==="fast"?(j=x,J=w):(j=Y,J=G);var te=document.createElement("canvas");te.width=j,te.height=J;var ae=te.getContext("2d",{willReadFrequently:!0}),se=qqe(u,{noNumericCheck:!0,returnArray:!0}),$,fe;O==="fast"?($=_?function(ht){return x-1-ht}:io.identity,fe=k?function(ht){return w-1-ht}:io.identity):($=function(ht){return io.constrain(Math.round(n.c2p(d[ht])-A),0,Y)},fe=function(ht){return io.constrain(Math.round(i.c2p(p[ht])-E),0,G)});var ie=fe(0),ue=[ie,ie],ce=_?0:1,oe=k?0:1,be=0,Re=0,ye=0,Ce=0,Me,Le,De,Ne,qe;function Xe(ht,Wa=0){if(ht===void 0)return[0,0,0,0];var Ht=se(ht);return Ht[0]=Math.round(Ht[0]),Ht[1]=Math.round(Ht[1]),Ht[2]=Math.round(Ht[2]),be+=Wa,Re+=Ht[0]*Wa,ye+=Ht[1]*Wa,Ce+=Ht[2]*Wa,Ht}function $e(ht,Wa,Ht,n0){var Pn=ht[Ht.bin0];if(Pn===void 0)return Xe(void 0,1);var mo=ht[Ht.bin1],li=Wa[Ht.bin0],la=Wa[Ht.bin1],i0=mo-Pn||0,ls=li-Pn||0,Rn;return mo===void 0?la===void 0?Rn=0:li===void 0?Rn=2*(la-Pn):Rn=(2*la-li-Pn)*2/3:la===void 0?li===void 0?Rn=0:Rn=(2*Pn-mo-li)*2/3:li===void 0?Rn=(2*la-mo-Pn)*2/3:Rn=la+Pn-mo-li,Xe(Pn+Ht.frac*i0+n0.frac*(ls+Ht.frac*Rn))}if(O!=="default"){var We=0,Se;try{Se=new Uint8Array(j*J*4)}catch(ht){Se=new Array(j*J*4)}if(O==="smooth"){var Fe=y||d,Qe=m||p,re=new Array(Fe.length),xe=new Array(Qe.length),Ge=new Array(Y),cr=y?sJ:lJ,Pe=m?sJ:lJ,me,Ae,He;for(R=0;R<Fe.length;R++)re[R]=Math.round(n.c2p(Fe[R])-A);for(R=0;R<Qe.length;R++)xe[R]=Math.round(i.c2p(Qe[R])-E);for(R=0;R<Y;R++)Ge[R]=cr(R,re);for(N=0;N<G;N++)for(me=Pe(N,xe),Ae=v[me.bin0],He=v[me.bin1],R=0;R<Y;R++,We+=4)qe=$e(Ae,He,Ge[R],me),uJ(Se,We,qe)}else for(N=0;N<w;N++)for(Ne=v[N],ue=fe(N),R=0;R<x;R++)qe=Xe(Ne[R],1),We=(ue*x+$(R))*4,uJ(Se,We,qe);var Ze=ae.createImageData(j,J);try{Ze.data.set(Se)}catch(ht){var Be=Ze.data,je=Be.length;for(N=0;N<je;N++)Be[N]=Se[N]}ae.putImageData(Ze,0,0)}else{var tr=Math.floor(f/2),ir=Math.floor(c/2);for(N=0;N<w;N++)if(Ne=v[N],ue.reverse(),ue[oe]=fe(N+1),!(ue[0]===ue[1]||ue[0]===void 0||ue[1]===void 0))for(Le=$(0),Me=[Le,Le],R=0;R<x;R++)Me.reverse(),Me[ce]=$(R+1),!(Me[0]===Me[1]||Me[0]===void 0||Me[1]===void 0)&&(De=Ne[R],qe=Xe(De,(Me[1]-Me[0])*(ue[1]-ue[0])),ae.fillStyle="rgba("+qe.join(",")+")",ae.fillRect(Me[0]+tr,ue[0]+ir,Me[1]-Me[0]-f,ue[1]-ue[0]-c))}if(be){Re=Math.round(Re/be),ye=Math.round(ye/be),Ce=Math.round(Ce/be);let ht=`rgb(${Re}, ${ye}, ${Ce})`;e._hmpixcount=(e._hmpixcount||0)+be,e._hmlumcount=(e._hmlumcount||0)+be*iJ.luminosity(ht)}var lr=l.selectAll("image").data(o);lr.enter().append("svg:image").attr({xmlns:Lqe.svg,preserveAspectRatio:"none"}),lr.attr({height:G,width:Y,x:A,y:E,"xlink:href":te.toDataURL("image/png")}),O==="fast"&&!T&&lr.attr("style",Eqe),oJ(l);var Ee=u.texttemplate;if(Ee){var Je=Sqe(u),Ie={type:"linear",range:[Je.min,Je.max],_separators:n._separators,_numFormat:n._numFormat},pr=u.type==="histogram2dcontour",mr=u.type==="contour",sr=mr?1:0,yr=mr?w-1:w,ne=mr?1:0,ge=mr?x-1:x,ze=[];for(R=sr;R<yr;R++){var Oe;if(mr)Oe=s.y[R];else if(pr){if(R===0||R===w-1)continue;Oe=s.y[R]}else if(s.yCenter)Oe=s.yCenter[R];else{if(R+1===w&&s.y[R+1]===void 0)continue;Oe=(s.y[R]+s.y[R+1])/2}var Jr=Math.round(i.c2p(Oe));if(!(0>Jr||Jr>i._length))for(N=ne;N<ge;N++){var Kr;if(mr)Kr=s.x[N];else if(pr){if(N===0||N===x-1)continue;Kr=s.x[N]}else if(s.xCenter)Kr=s.xCenter[N];else{if(N+1===x&&s.x[N+1]===void 0)continue;Kr=(s.x[N]+s.x[N+1])/2}var mt=Math.round(n.c2p(Kr));if(!(0>mt||mt>n._length)){var yt=kqe({x:Kr,y:Oe},u,e._fullLayout);yt.x=Kr,yt.y=Oe;var Lt=s.z[R][N];Lt===void 0?(yt.z="",yt.zLabel=""):(yt.z=Lt,yt.zLabel=Mqe.tickText(Ie,Lt,"hover").text);var Qt=s.text&&s.text[R]&&s.text[R][N];(Qt===void 0||Qt===!1)&&(Qt=""),yt.text=Qt;var Va=io.texttemplateString({data:[yt,u._meta],fallback:u.texttemplatefallback,labels:yt,locale:e._fullLayout._d3locale,template:Ee});if(Va){var ea=Va.split("<br>"),ja=ea.length,ln=0;for(I=0;I<ja;I++)ln=Math.max(ln,ea[I].length);ze.push({l:ja,c:ln,t:Va,x:mt,y:Jr,z:Lt})}}}}var oa=u.textfont,vr=oa.size,_t=e._fullLayout.font.size;if(!vr||vr==="auto"){var Yr=1/0,vt=1/0,Rt=0,Mt=0;for(I=0;I<ze.length;I++){var nt=ze[I];if(Rt=Math.max(Rt,nt.l),Mt=Math.max(Mt,nt.c),I<ze.length-1){var ra=ze[I+1],En=Math.abs(ra.x-nt.x),Vt=Math.abs(ra.y-nt.y);En&&(Yr=Math.min(Yr,En)),Vt&&(vt=Math.min(vt,Vt))}}!isFinite(Yr)||!isFinite(vt)?vr=_t:(Yr-=f,vt-=c,Yr/=Mt,vt/=Rt,Yr/=_9/2,vt/=_9,vr=Math.min(Math.floor(Yr),Math.floor(vt),_t))}if(vr<=0||!isFinite(vr))return;var Ct=function(ht){return ht.x},ta=function(ht){return ht.y-vr*(ht.l*_9/2-1)},aa=cJ(l).data(ze);aa.enter().append("g").classed(fJ,1).append("text").attr("text-anchor","middle").each(function(ht){var Wa=aJ.select(this),Ht=oa.color;(!Ht||Ht==="auto")&&(Ht=iJ.contrast(ht.z===void 0?e._fullLayout.plot_bgcolor:`rgba(${se(ht.z).map(Math.round).join()})`)),Wa.attr("data-notex",1).call(nJ.positionText,Ct(ht),ta(ht)).call(Aqe.font,{family:oa.family,size:vr,color:Ht,weight:oa.weight,style:oa.style,variant:oa.variant,textcase:oa.textcase,lineposition:oa.lineposition,shadow:oa.shadow}).text(ht.t).call(nJ.convertToTspans,e)})}})};function lJ(e,r){var t=r.length-2,a=io.constrain(io.findBin(e,r),0,t),n=r[a],i=r[a+1],o=io.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 sJ(e,r){var t=r.length-1,a=io.constrain(io.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 uJ(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 w9=z((mZe,hJ)=>{"use strict";hJ.exports={min:"zmin",max:"zmax"}});var r3=z((yZe,dJ)=>{"use strict";var Pqe=Er();dJ.exports=function(r){Pqe.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var a3=z((gZe,mJ)=>{"use strict";var pJ=In(),e2=ke(),t3=e2.isArrayOrTypedArray,Rqe=Gr(),Fqe=rl().extractOpts;mJ.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,y=l.yCenter,m=l.zmask,b=s.zhoverformat,T=c,w=v,x,_,k,A;if(r.index!==!1){try{k=Math.round(r.index[1]),A=Math.round(r.index[0])}catch(W){e2.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||A<0||A>d.length)return}else{if(pJ.inbox(t-c[0],t-c[c.length-1],0)>0||pJ.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,e2.findBin(t,T))),A=Math.max(0,Math.min(w.length-2,e2.findBin(a,w)))}var C=u.c2p(c[k]),E=u.c2p(c[k+1]),P=f.c2p(v[A]),R=f.c2p(v[A+1]),N,I;o?(N=l.orig_x||c,I=l.orig_y||v,E=C,x=N[k],R=P,_=I[A]):(N=l.orig_x||p||c,I=l.orig_y||y||v,x=p?N[k]:(N[k]+N[k+1])/2,_=y?I[A]:(I[A]+I[A+1])/2,u&&u.type==="category"&&(x=c[k]),f&&f.type==="category"&&(_=v[A]),s.zsmooth&&(C=E=u.c2p(x),P=R=f.c2p(_)));var O=d[A][k];if(m&&!m[A][k]&&(O=void 0),!(O===void 0&&!s.hoverongaps)){var U;t3(l.hovertext)&&t3(l.hovertext[A])?U=l.hovertext[A][k]:t3(l.text)&&t3(l.text[A])&&(U=l.text[A][k]);var Y=Fqe(s),G={type:"linear",range:[Y.min,Y.max],hoverformat:b,_separators:u._separators,_numFormat:u._numFormat},V=Rqe.tickText(G,O,"hover").text;return[e2.extendFlat(r,{index:s._after2before?s._after2before[A][k]:[A,k],distance:r.maxHoverDistance,spikeDistance:r.maxSpikeDistance,x0:C,x1:E,y0:P,y1:R,xLabelVal:x,yLabelVal:_,zLabelVal:O,zLabel:V,text:U})]}}});var gJ=z((bZe,yJ)=>{"use strict";yJ.exports={attributes:Kd(),supplyDefaults:f$(),calc:Jg(),plot:e3(),colorbar:w9(),style:r3(),hoverPoints:a3(),moduleType:"trace",name:"heatmap",basePlotModule:Qi(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var xJ=z((xZe,bJ)=>{"use strict";bJ.exports=gJ()});var T9=z((_Ze,_J)=>{"use strict";_J.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var TJ=z((wZe,wJ)=>{"use strict";wJ.exports={eventDataKeys:["binNumber"]}});var n3=z((TZe,SJ)=>{"use strict";var ai=kf(),AJ=ko().axisHoverFormat,{hovertemplateAttrs:zqe,texttemplateAttrs:Nqe,templatefallbackAttrs:MJ}=fi(),A9=ka(),kJ=T9(),Iqe=TJ(),M9=At().extendFlat;SJ.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:AJ("x"),yhoverformat:AJ("y"),text:M9({},ai.text,{}),hovertext:M9({},ai.hovertext,{}),orientation:ai.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:kJ("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:kJ("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:zqe({},{keys:Iqe.eventDataKeys}),hovertemplatefallback:MJ(),texttemplate:Nqe({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:MJ({editType:"plot"}),textposition:M9({},ai.textposition,{arrayOk:!1}),textfont:A9({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:A9({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:A9({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:ai.insidetextanchor,textangle:ai.textangle,cliponaxis:ai.cliponaxis,constraintext:ai.constraintext,marker:ai.marker,offsetgroup:ai.offsetgroup,alignmentgroup:ai.alignmentgroup,selected:ai.selected,unselected:ai.unselected,zorder:ai.zorder}});var DJ=z((AZe,CJ)=>{"use strict";var qJ=Tr(),r2=ke(),LJ=Sr(),Bqe=Sf().handleText,Oqe=I8(),Hqe=n3();CJ.exports=function(r,t,a,n){function i(T,w){return r2.coerce(r,t,Hqe,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");Bqe(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(r2.minRowLength(o)&&r2.minRowLength(l)):r2.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=qJ.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[v];y&&i("histfunc"),i("histnorm"),i("autobin"+c),Oqe(r,t,i,a,n),r2.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,b=qJ.getComponentMethod("errorbars","supplyDefaults");b(r,t,m||LJ.defaultLine,{axis:"y"}),b(r,t,m||LJ.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var o3=z((MZe,RJ)=>{"use strict";var t2=ke(),Uqe=ba(),i3=Tr().traceIs,Gqe=kd(),Yqe=Sf().validateCornerradius,EJ=t2.nestedProperty,k9=vf().getAxisGroup,PJ=[{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"}],Vqe=["x","y"];RJ.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(O,U){return t2.coerce(l._input,l,l._module.attributes,O,U)}function y(O){return O.orientation==="v"?"x":"y"}function m(O,U){var Y=Uqe.getFromTrace({_fullLayout:t},O,U);return Y.type}function b(O,U,Y){var G=O.uid+"__"+Y;U||(U=G);var V=m(O,Y),W=O[Y+"calendar"]||"",j=a[U],J=!0;j&&(V===j.axType&&W===j.calendar?(J=!1,j.traces.push(O),j.dirs.push(Y)):(U=G,V!==j.axType&&t2.warn(["Attempted to group the bins of trace",O.index,"set on a","type:"+V,"axis","with bins on","type:"+j.axType,"axis."].join(" ")),W!==j.calendar&&t2.warn(["Attempted to group the bins of trace",O.index,"set with a",W,"calendar","with bins",j.calendar?"on a "+j.calendar+" calendar":"w/o a set calendar"].join(" ")))),J&&(a[U]={traces:[O],dirs:[Y],axType:V,calendar:O[Y+"calendar"]||""}),O["_"+Y+"bingroup"]=U}for(c=0;c<r.length;c++)if(l=r[c],i3(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=Yqe(T))}i3(l,"2dMap")||Gqe(l._input,l,t,p,t.barmode)}var w=t._alignmentOpts||{};for(c=0;c<n.length;c++){if(l=n[c],u="",!i3(l,"2dMap")){if(f=y(l),t.barmode==="group"&&l.alignmentgroup){var x=l[f+"axis"],_=k9(t,x)+l.orientation;(w[_]||{})[l.alignmentgroup]&&(u=_)}!u&&t.barmode!=="overlay"&&(u=k9(t,l.xaxis)+k9(t,l.yaxis)+y(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 A=l._input.bingroup;A&&A!==u&&t2.warn(["Trace",l.index,"must match","within bingroup",u+".","Ignoring its bingroup:",A,"setting."].join(" ")),l.bingroup=u,b(l,u,y(l))}}for(c=0;c<o.length;c++){l=o[c];var q=p("bingroup");if(i3(l,"2dMap"))for(d=0;d<2;d++){f=Vqe[d];var C=p(f+"bingroup",q?q+"__"+f:null);b(l,C,f)}else b(l,q,y(l))}for(u in a){var E=a[u];for(s=E.traces,v=0;v<PJ.length;v++){var P=PJ[v],R=P.name,N,I;if(!(R==="nbins"&&E.sizeFound)){for(c=0;c<s.length;c++){if(l=s[c],f=E.dirs[c],N=P.aStr[f],EJ(l._input,N).get()!==void 0){E[R]=p(N),E[R+"Found"]=!0;break}I=(l._autoBin||{})[f]||{},I[R]&&EJ(l,N).set(I[R])}if(R==="start"||R==="end")for(;c<s.length;c++)l=s[c],l["_"+f+"bingroup"]&&(I=(l._autoBin||{})[f]||{},p(N,I[R]));R==="nbins"&&!E.sizeFound&&!E.nbinsFound&&(l=s[0],E[R]=p(N))}}}}});var zJ=z((kZe,FJ)=>{"use strict";var jqe=j8().hoverPoints,Wqe=Gr().hoverLabelText;FJ.exports=function(r,t,a,n,i){var o=jqe(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"]=Wqe(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var S9=z((SZe,NJ)=>{"use strict";NJ.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 BJ=z((qZe,IJ)=>{"use strict";IJ.exports={attributes:n3(),layoutAttributes:Fg(),supplyDefaults:DJ(),crossTraceDefaults:o3(),supplyLayoutDefaults:B8(),calc:m9().calc,crossTraceCalc:$y().crossTraceCalc,plot:Y8().plot,layerName:"barlayer",style:Hc().style,styleOnSelect:Hc().styleOnSelect,colorbar:Ed(),hoverPoints:zJ(),selectPoints:W8(),eventData:S9(),moduleType:"trace",name:"histogram",basePlotModule:Qi(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var HJ=z((LZe,OJ)=>{"use strict";OJ.exports=BJ()});var s3=z((CZe,YJ)=>{"use strict";var Uo=n3(),UJ=T9(),l3=Kd(),Xqe=zn(),q9=ko().axisHoverFormat,{hovertemplateAttrs:Zqe,texttemplateAttrs:$qe,templatefallbackAttrs:GJ}=fi(),Jqe=el(),a2=At().extendFlat;YJ.exports=a2({x:Uo.x,y:Uo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Uo.histnorm,histfunc:Uo.histfunc,nbinsx:Uo.nbinsx,xbins:UJ("x"),nbinsy:Uo.nbinsy,ybins:UJ("y"),autobinx:Uo.autobinx,autobiny:Uo.autobiny,bingroup:a2({},Uo.bingroup,{}),xbingroup:a2({},Uo.bingroup,{}),ybingroup:a2({},Uo.bingroup,{}),xgap:l3.xgap,ygap:l3.ygap,zsmooth:l3.zsmooth,xhoverformat:q9("x"),yhoverformat:q9("y"),zhoverformat:q9("z",1),hovertemplate:Zqe({},{keys:["z"]}),hovertemplatefallback:GJ(),texttemplate:$qe({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:GJ({editType:"plot"}),textfont:l3.textfont,showlegend:a2({},Xqe.showlegend,{dflt:!1})},Jqe("",{cLetter:"z",autoColorDflt:!1}))});var L9=z((DZe,jJ)=>{"use strict";var Kqe=Tr(),VJ=ke();jJ.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=VJ.minRowLength(i),s=VJ.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=Kqe.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 XJ=z((EZe,WJ)=>{"use strict";var Qqe=ke(),eLe=L9(),rLe=u9(),tLe=Bl(),aLe=Qd(),nLe=s3();WJ.exports=function(r,t,a,n){function i(o,l){return Qqe.coerce(r,t,nLe,o,l)}eLe(r,t,i,n),t.visible!==!1&&(rLe(r,t,i,n),tLe(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),i("hovertemplatefallback"),aLe(i,n),i("xhoverformat"),i("yhoverformat"))}});var JJ=z((PZe,$J)=>{"use strict";var iLe=a3(),ZJ=Gr().hoverLabelText;$J.exports=function(r,t,a,n,i){var o=iLe(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=ZJ(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=ZJ(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var QJ=z((RZe,KJ)=>{"use strict";KJ.exports={attributes:s3(),supplyDefaults:XJ(),crossTraceDefaults:o3(),calc:Jg(),plot:e3(),layerName:"heatmaplayer",colorbar:w9(),style:r3(),hoverPoints:JJ(),eventData:S9(),moduleType:"trace",name:"histogram2d",basePlotModule:Qi(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var rK=z((FZe,eK)=>{"use strict";eK.exports=QJ()});var u3=z((zZe,tK)=>{"use strict";tK.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var c3=z((NZe,oK)=>{"use strict";var ga=Kd(),f3=Vi(),nK=ko(),C9=nK.axisHoverFormat,oLe=nK.descriptionOnlyNumbers,lLe=el(),sLe=Pi().dash,uLe=ka(),Zc=At().extendFlat,iK=u3(),fLe=iK.COMPARISON_OPS2,cLe=iK.INTERVAL_OPS,aK=f3.line;oK.exports=Zc({z:ga.z,x:ga.x,x0:ga.x0,dx:ga.dx,y:ga.y,y0:ga.y0,dy:ga.dy,xperiod:ga.xperiod,yperiod:ga.yperiod,xperiod0:f3.xperiod0,yperiod0:f3.yperiod0,xperiodalignment:ga.xperiodalignment,yperiodalignment:ga.yperiodalignment,text:ga.text,hovertext:ga.hovertext,transpose:ga.transpose,xtype:ga.xtype,ytype:ga.ytype,xhoverformat:C9("x"),yhoverformat:C9("y"),zhoverformat:C9("z",1),hovertemplate:ga.hovertemplate,hovertemplatefallback:ga.hovertemplatefallback,texttemplate:Zc({},ga.texttemplate,{}),texttemplatefallback:ga.texttemplatefallback,textfont:Zc({},ga.textfont,{}),hoverongaps:ga.hoverongaps,connectgaps:Zc({},ga.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:uLe({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:oLe("contour label")},operation:{valType:"enumerated",values:[].concat(fLe).concat(cLe),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:Zc({},aK.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:sLe,smoothing:Zc({},aK.smoothing,{}),editType:"plot"},zorder:f3.zorder},lLe("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var E9=z((IZe,sK)=>{"use strict";var hn=s3(),bl=c3(),vLe=el(),D9=ko().axisHoverFormat,lK=At().extendFlat;sK.exports=lK({x:hn.x,y:hn.y,z:hn.z,marker:hn.marker,histnorm:hn.histnorm,histfunc:hn.histfunc,nbinsx:hn.nbinsx,xbins:hn.xbins,nbinsy:hn.nbinsy,ybins:hn.ybins,autobinx:hn.autobinx,autobiny:hn.autobiny,bingroup:hn.bingroup,xbingroup:hn.xbingroup,ybingroup:hn.ybingroup,autocontour:bl.autocontour,ncontours:bl.ncontours,contours:bl.contours,line:{color:bl.line.color,width:lK({},bl.line.width,{dflt:.5}),dash:bl.line.dash,smoothing:bl.line.smoothing,editType:"plot"},xhoverformat:D9("x"),yhoverformat:D9("y"),zhoverformat:D9("z",1),hovertemplate:hn.hovertemplate,hovertemplatefallback:hn.hovertemplatefallback,texttemplate:bl.texttemplate,texttemplatefallback:bl.texttemplatefallback,textfont:bl.textfont},vLe("",{cLetter:"z",editTypeOverride:"calc"}))});var P9=z((BZe,uK)=>{"use strict";uK.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 R9=z((OZe,fK)=>{"use strict";var hLe=ke();fK.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;hLe.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var F9=z((HZe,cK)=>{"use strict";var dLe=Bl(),pLe=R9();cK.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,dLe(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),pLe(a,n,s,i)}});var pK=z((UZe,dK)=>{"use strict";var vK=ke(),mLe=L9(),yLe=P9(),gLe=F9(),bLe=Qd(),hK=E9();dK.exports=function(r,t,a,n){function i(l,s){return vK.coerce(r,t,hK,l,s)}function o(l){return vK.coerce2(r,t,hK,l)}mLe(r,t,i,n),t.visible!==!1&&(yLe(r,t,i,o),gLe(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),i("hovertemplatefallback"),t.contours&&t.contours.coloring==="heatmap"&&bLe(i,n))}});var gK=z((GZe,yK)=>{"use strict";var N9=Gr(),z9=ke();yK.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=z9.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=z9.aggNums(Math.max,null,t));var o=mK(n,i,r.ncontours);a.size=o.dtick,a.start=N9.tickFirst(o),o.range.reverse(),a.end=N9.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={}),z9.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=mK(l,s,r.ncontours).dtick,u.size=a.size=f}}};function mK(e,r,t){var a={type:"linear",range:[e,r]};return N9.autoTicks(a,(r-e)/(t||15)),a}});var n2=z((YZe,bK)=>{"use strict";bK.exports=function(r){return r.end+r.size/1e6}});var I9=z((VZe,_K)=>{"use strict";var xK=rl(),xLe=Jg(),_Le=gK(),wLe=n2();_K.exports=function(r,t){var a=xLe(r,t),n=a[0].z;_Le(t,n);var i=t.contours,o=xK.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=wLe(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 xK.calc(r,t,{vals:l,cLetter:"z"}),a}});var v3=z((jZe,wK)=>{"use strict";wK.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var AK=z((WZe,TK)=>{"use strict";var h3=v3();TK.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(h3.BOTTOMSTART)),l===a-2&&(u=u.concat(h3.TOPSTART)),o=0;o<n-1;o++)for(s=u.slice(),o===0&&(s=s.concat(h3.LEFTSTART)),o===n-2&&(s=s.concat(h3.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=TLe(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 TLe(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 qK=z((XZe,SK)=>{"use strict";var d3=ke(),$c=v3();SK.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],MK(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),MK(l,i,void 0,t,a);n===1e4&&d3.log("Infinite loop in contour?")}};function i2(e,r,t,a){return Math.abs(e[0]-r[0])<t&&Math.abs(e[1]-r[1])<a}function ALe(e,r){var t=e[2]-r[2],a=e[3]-r[3];return Math.sqrt(t*t+a*a)}function MK(e,r,t,a,n){var i=r.join(","),o=e.crossings[i],l=MLe(o,t,r),s=[kK(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=$c.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=$c.SADDLEREMAINDER[o]):delete e.crossings[i],l=$c.NEWDELTA[o],!l){d3.log("Found bad marching index:",o,r,e.level);break}s.push(kK(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),i2(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),y=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(y||t&&p)break;o=e.crossings[i]}d===1e4&&d3.log("Infinite loop in contour?");var m=i2(s[0],s[s.length-1],a,n),b=0,T=.2*e.smoothing,w=[],x=0,_,k,A,q,C,E,P,R,N,I,O;for(d=1;d<s.length;d++)P=ALe(s[d],s[d-1]),b+=P,w.push(P);var U=b/w.length*T;function Y(W){return s[W%s.length]}for(d=s.length-2;d>=x;d--)if(_=w[d],_<U){for(A=0,k=d-1;k>=x&&_+w[k]<U;k--)_+=w[k];if(m&&d===s.length-2)for(A=0;A<k&&_+w[A]<U;A++)_+=w[A];C=d-k+A+1,E=Math.floor((d+k+A+2)/2),!m&&d===s.length-2?q=s[s.length-1]:!m&&k===-1?q=s[0]:C%2?q=Y(E):q=[(Y(E)[0]+Y(E+1)[0])/2,(Y(E)[1]+Y(E+1)[1])/2],s.splice(k+1,d-k+1,q),d=k+1,A&&(x=A),m&&(d===s.length-2?s[A]=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(m)s.pop(),e.paths.push(s);else{t||d3.log("Unclosed interior contour?",e.level,c.join(","),s.join("L"));var G=!1;for(R=0;R<e.edgepaths.length;R++)if(I=e.edgepaths[R],!G&&i2(I[0],s[s.length-1],a,n)){s.pop(),G=!0;var V=!1;for(N=0;N<e.edgepaths.length;N++)if(O=e.edgepaths[N],i2(O[O.length-1],s[0],a,n)){V=!0,s.shift(),e.edgepaths.splice(R,1),N===R?e.paths.push(s.concat(O)):(N>R&&N--,e.edgepaths[N]=O.concat(s,I));break}V||(e.edgepaths[R]=s.concat(I))}for(R=0;R<e.edgepaths.length&&!G;R++)I=e.edgepaths[R],i2(I[I.length-1],s[0],a,n)&&(s.shift(),e.edgepaths[R]=I.concat(s),G=!0);G||e.edgepaths.push(s)}}function MLe(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:$c.BOTTOMSTART.indexOf(e)!==-1?n=1:$c.LEFTSTART.indexOf(e)!==-1?a=1:$c.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function kK(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 EK=z((ZZe,DK)=>{"use strict";var B9=u3(),kLe=Ir();DK.exports={"[]":LK("[]"),"][":LK("]["),">":O9(">"),"<":O9("<"),"=":O9("=")};function CK(e,r){var t=Array.isArray(r),a;function n(i){return kLe(i)?+i:null}return B9.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):B9.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:B9.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function LK(e){return function(r){r=CK(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 O9(e){return function(r){return r=CK(e,r),{start:r,end:1/0,size:1/0}}}});var FK=z(($Ze,RK)=>{"use strict";var PK=ke(),SLe=EK(),qLe=n2();RK.exports=function(r,t,a){for(var n=r.type==="constraint"?SLe[r._operation](r.value):r,i=n.size,o=[],l=qLe(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(PK.extendFlat({level:f,crossings:{},starts:[],edgepaths:[],paths:[],z:a.z,smoothing:a.trace.line.smoothing},u)),o.length>1e3){PK.warn("Too many contours, clipping at 1000",r);break}return o}});var IK=z((JZe,NK)=>{"use strict";var Jc=ke();NK.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&&Jc.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&&Jc.warn("Contour data invalid for the specified inequality range operation."),a=zK(e[0]),n=zK(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 zK(e){return Jc.extendFlat({},e,{edgepaths:Jc.extendDeep([],e.edgepaths),paths:Jc.extendDeep([],e.paths),starts:Jc.extendDeep([],e.starts)})}});var OK=z((KZe,BK)=>{"use strict";BK.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 H9=z(Dn=>{"use strict";var l2=Er(),Ga=ke(),Ql=Zr(),LLe=rl(),GK=Ca(),HK=Gr(),UK=ec(),CLe=e3(),YK=AK(),VK=qK(),DLe=FK(),ELe=IK(),jK=OK(),o2=v3(),xl=o2.LABELOPTIMIZER;Dn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Ga.makeTraceGroups(n,a,"contour").each(function(l){var s=l2.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=DLe(d,t,u),y=Ga.ensureSingle(s,"g","heatmapcoloring"),m=[];d.coloring==="heatmap"&&(m=[l]),CLe(r,t,m,y),YK(p),VK(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=ELe(p,d._operation)),PLe(s,_,d),RLe(s,k,_,d),FLe(s,p,r,u,d),NLe(s,t,r,u,_)})};function PLe(e,r,t){var a=Ga.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 RLe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&jK(r,a);var o=Ga.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:"")+WK(s,t);u?l2.select(this).attr("d",u).style("stroke","none"):l2.select(this).remove()})}function WK(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 y(b){return Math.abs(b[0]-r[2][0])<.01}for(;n.length;){for(c=Ql.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){Ga.log("Missing end?",a,e);break}for(v(o)&&!y(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:y(o)&&(l=r[2]),f=0;f<e.edgepaths.length;f++){var m=e.edgepaths[f][0];Math.abs(o[0]-l[0])<.01?Math.abs(o[0]-m[0])<.01&&(m[1]-o[1])*(l[1]-m[1])>=0&&(l=m,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-m[1])<.01&&(m[0]-o[0])*(l[0]-m[0])>=0&&(l=m,u=f):Ga.log("endpt to newendpt is not vert. or horz.",o,l,m)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){Ga.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+=Ql.smoothclosed(e.paths[a],e.smoothing);return t}function FLe(e,r,t,a,n){var i=t._context.staticPlot,o=Ga.ensureSingle(e,"g","contourlines"),l=n.showlines!==!1,s=n.showlabels,u=l&&s,f=Dn.createLines(o,l||s,r,i),c=Dn.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=[];Ga.clearLocationCache();var y=Dn.labelFormatter(t,a),m=Ql.tester.append("text").attr("data-notex",1).call(Ql.font,n.labelfont),b=r[0].xaxis,T=r[0].yaxis,w=b._length,x=T._length,_=b.range,k=T.range,A=Ga.aggNums(Math.min,null,a.x),q=Ga.aggNums(Math.max,null,a.x),C=Ga.aggNums(Math.min,null,a.y),E=Ga.aggNums(Math.max,null,a.y),P=Math.max(b.c2p(A,!0),0),R=Math.min(b.c2p(q,!0),w),N=Math.max(T.c2p(E,!0),0),I=Math.min(T.c2p(C,!0),x),O={};_[0]<_[1]?(O.left=P,O.right=R):(O.left=R,O.right=P),k[0]<k[1]?(O.top=N,O.bottom=I):(O.top=I,O.bottom=N),O.middle=(O.top+O.bottom)/2,O.center=(O.left+O.right)/2,d.push([[O.left,O.top],[O.right,O.top],[O.right,O.bottom],[O.left,O.bottom]]);var U=Math.sqrt(w*w+x*x),Y=o2.LABELDISTANCE*U/Math.max(1,r.length/o2.LABELINCREASE);f.each(function(G){var V=Dn.calcTextOpts(G.level,y,m,t);l2.select(this).selectAll("path").each(function(){var W=this,j=Ga.getVisibleSegment(W,O,V.height/2);if(j&&!(j.len<(V.width+V.height)*o2.LABELMIN))for(var J=Math.min(Math.ceil(j.len/Y),o2.LABELMAX),te=0;te<J;te++){var ae=Dn.findBestTextLocation(W,j,V,p,O);if(!ae)break;Dn.addLabelData(ae,V,p,d)}})}),m.remove(),Dn.drawLabels(v,p,t,c,u?d:null)}s&&!l&&f.remove()}Dn.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 Ql.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 Ql.smoothclosed(s,n)}).style("stroke-miterlimit",1).style("vector-effect",a?"none":"non-scaling-stroke")}return i};Dn.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),Ql.setClipUrl(e,i,t),o};Dn.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,UK(i,t);else{var o=LLe.extractOpts(a);if(o&&o.colorbar&&o.colorbar._axis)i=o.colorbar._axis;else{if(n.type==="constraint"){var l=n.value;Ga.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),UK(i,t),HK.prepTicks(i),i._tmin=null,i._tmax=null}}return function(s){return HK.tickText(i,s).text}};Dn.calcTextOpts=function(e,r,t,a){var n=r(e);t.text(n).call(GK.convertToTspans,a);var i=t.node(),o=Ql.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}};Dn.findBestTextLocation=function(e,r,t,a,n){var i=t.width,o,l,s,u,f;r.isClosed?(l=r.len/xl.INITIALSEARCHPOINTS,o=r.min+l/2,s=r.max):(l=(r.len-i)/(xl.INITIALSEARCHPOINTS+1),o=r.min+l+i/2,s=r.max-(l+i)/2);for(var c=1/0,v=0;v<xl.ITERATIONS;v++){for(var d=o;d<s;d+=l){var p=Ga.getTextLocation(e,r.total,d,i),y=zLe(p,t,a,n);y<c&&(c=y,f=p,u=d)}if(c>xl.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=xl.MAXCOST)return f};function zLe(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=xl.EDGECOST*(1/(c-1)+1/(v-1));d+=xl.ANGLECOST*s*s;for(var p=o-u,y=l-f,m=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=Ga.segmentDistance(p,y,m,b,w.x-x,w.y-_,w.x+x,w.y+_)*2/(r.height+w.height),A=w.level===r.level,q=A?xl.SAMELEVELDISTANCE:1;if(k<=q)return 1/0;var C=xl.NEIGHBORCOST*(A?xl.SAMELEVELFACTOR:1);d+=C/(k-q)}return d}Dn.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,y){return[l+p*c-y*f,s+p*f+y*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)};Dn.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;l2.select(this).text(u.text).attr({x:f,y:c,transform:"rotate("+180*u.theta/Math.PI+" "+f+" "+c+")"}).call(GK.convertToTspans,t)}),n){for(var o="",l=0;l<n.length;l++)o+="M"+n[l].join("L")+"Z";var s=Ga.ensureSingle(a,"path","");s.attr("d",o)}};function NLe(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:ILe(a),smoothing:0};YK([u]),VK([u]),jK([u],{type:"levels"});var f=Ga.ensureSingle(s,"path","");f.attr("d",(u.prefixBoundary?"M"+n.join("L")+"Z":"")+WK(u,n))}else l=null;Ql.setClipUrl(e,l,t)}function ILe(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 G9=z((e$e,XK)=>{"use strict";var BLe=Er(),U9=rl(),OLe=n2();XK.exports=function(r){var t=r.contours,a=t.start,n=OLe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=U9.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?U9.flipScale(s.colorscale):s.colorscale,f=u.length,c=new Array(f),v=new Array(f),d,p,y=s.min,m=s.max;if(t.coloring==="heatmap"){for(p=0;p<f;p++)d=u[p],c[p]=d[0]*(m-y)+y,v[p]=d[1];var b=BLe.extent([y,m,t.start,t.start+i*(o-1)]),T=b[y<m?0:1],w=b[y<m?1:0];T!==y&&(c.splice(0,0,T),v.splice(0,0,v[0])),w!==m&&(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<=y||n>=m)&&(a<=y&&(a=y),n>=m&&(n=m),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]>y&&(c.unshift(y),v.unshift(v[0])),c[c.length-1]<m&&(c.push(m),v.push(v[v.length-1])))}return U9.makeColorScaleFunc({domain:c,range:v},{noNumericCheck:!0})}});var Y9=z((r$e,$K)=>{"use strict";var p3=Er(),ZK=Zr(),HLe=r3(),ULe=G9();$K.exports=function(r){var t=p3.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=p3.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?ULe(i):null;n.selectAll("g.contourlevel").each(function(m){p3.select(this).selectAll("path").call(ZK.lineGroupStyle,l.width,c?d(m.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(m){ZK.font(p3.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(m.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var y;n.selectAll("g.contourfill path").style("fill",function(m){return y===void 0&&(y=m.level),d(m.level+.5*s)}),y===void 0&&(y=u),n.selectAll("g.contourbg path").style("fill",d(y-.5*s))}}),HLe(r)}});var V9=z((t$e,KK)=>{"use strict";var JK=rl(),GLe=G9(),YLe=n2();function VLe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=GLe(r,{isColorbar:!0});if(o==="heatmap"){var s=JK.extractOpts(r);t._fillgradient=s.reversescale?JK.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:YLe(a),size:i}}KK.exports={min:"zmin",max:"zmax",calc:VLe}});var j9=z((a$e,QK)=>{"use strict";var m3=Sr(),jLe=a3();QK.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=jLe(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&m3.opacity(s.fillcolor)?l.color=m3.addOpacity(s.fillcolor,1):s.contours.showlines&&m3.opacity(s.line.color)&&(l.color=m3.addOpacity(s.line.color,1)))}),o}});var rQ=z((n$e,eQ)=>{"use strict";eQ.exports={attributes:E9(),supplyDefaults:pK(),crossTraceDefaults:o3(),calc:I9(),plot:H9().plot,layerName:"contourlayer",style:Y9(),colorbar:V9(),hoverPoints:j9(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Qi(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var aQ=z((i$e,tQ)=>{"use strict";tQ.exports=rQ()});var fQ=z((o$e,uQ)=>{"use strict";var nQ=Ir(),WLe=R9(),lQ=Sr(),iQ=lQ.addOpacity,XLe=lQ.opacity,sQ=u3(),oQ=ke().isArrayOrTypedArray,ZLe=sQ.CONSTRAINT_REDUCTION,$Le=sQ.COMPARISON_OPS2;uQ.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=ZLe[c],JLe(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",iQ((r.line||{}).color||i,.5))),s){var v=f&&XLe(f)?iQ(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),WLe(a,n,u,o)};function JLe(e,r){var t;$Le.indexOf(r.operation)===-1?(e("contours.value",[0,1]),oQ(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])]:nQ(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),nQ(r.value)||(oQ(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var hQ=z((l$e,vQ)=>{"use strict";var W9=ke(),KLe=s9(),QLe=bc(),eCe=fQ(),rCe=P9(),tCe=F9(),aCe=Qd(),cQ=c3();vQ.exports=function(r,t,a,n){function i(u,f){return W9.coerce(r,t,cQ,u,f)}function o(u){return W9.coerce2(r,t,cQ,u)}var l=KLe(r,t,i,n);if(!l){t.visible=!1;return}QLe(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",W9.isArray1D(t.z)),s?eCe(r,t,i,n,a):(rCe(r,t,i,o),tCe(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&aCe(i,n),i("zorder")}});var pQ=z((s$e,dQ)=>{"use strict";dQ.exports={attributes:c3(),supplyDefaults:hQ(),calc:I9(),plot:H9().plot,style:Y9(),colorbar:V9(),hoverPoints:j9(),moduleType:"trace",name:"contour",basePlotModule:Qi(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var yQ=z((u$e,mQ)=>{"use strict";mQ.exports=pQ()});var X9=z((f$e,_Q)=>{"use strict";var{hovertemplateAttrs:nCe,texttemplateAttrs:iCe,templatefallbackAttrs:gQ}=fi(),oCe=my(),Si=Vi(),lCe=zn(),bQ=el(),sCe=Pi().dash,Ks=At().extendFlat,oo=Si.marker,s2=Si.line,xQ=oo.line;_Q.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:Ks({},Si.mode,{dflt:"markers"}),text:Ks({},Si.text,{}),texttemplate:iCe({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:gQ({editType:"plot"}),hovertext:Ks({},Si.hovertext,{}),line:{color:s2.color,width:s2.width,dash:sCe,backoff:s2.backoff,shape:Ks({},s2.shape,{values:["linear","spline"]}),smoothing:s2.smoothing,editType:"calc"},connectgaps:Si.connectgaps,cliponaxis:Si.cliponaxis,fill:Ks({},Si.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:oCe(),marker:Ks({symbol:oo.symbol,opacity:oo.opacity,angle:oo.angle,angleref:oo.angleref,standoff:oo.standoff,maxdisplayed:oo.maxdisplayed,size:oo.size,sizeref:oo.sizeref,sizemin:oo.sizemin,sizemode:oo.sizemode,line:Ks({width:xQ.width,dash:xQ.dash,editType:"calc"},bQ("marker.line")),gradient:oo.gradient,editType:"calc"},bQ("marker")),textfont:Si.textfont,textposition:Si.textposition,selected:Si.selected,unselected:Si.unselected,hoverinfo:Ks({},lCe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:Si.hoveron,hovertemplate:nCe(),hovertemplatefallback:gQ()}});var MQ=z((c$e,AQ)=>{"use strict";var wQ=ke(),uCe=hd(),Kc=Jn(),fCe=uw(),cCe=fw(),TQ=cw(),vCe=vw(),hCe=hw(),dCe=X9();AQ.exports=function(r,t,a,n){function i(v,d){return wQ.coerce(r,t,dCe,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<uCe.PTS_LINESONLY?"lines+markers":"lines";i("mode",f),Kc.hasMarkers(t)&&fCe(r,t,a,n,i,{gradient:!0}),Kc.hasLines(t)&&(cCe(r,t,a,n,i,{backoff:!0}),TQ(r,t,i),i("connectgaps")),Kc.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),vCe(r,t,n,i));var c=[];(Kc.hasMarkers(t)||Kc.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),c.push("points")),i("fill"),t.fill!=="none"&&(hCe(r,t,a,i),Kc.hasLines(t)||TQ(r,t,i)),(t.fill==="tonext"||t.fill==="toself")&&c.push("fills"),i("hoveron",c.join("+")||"points"),wQ.coerceSelectionMarkerOpacity(t,i)}});var SQ=z((v$e,kQ)=>{"use strict";var Z9=Gr();kQ.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=Z9.tickText(i.aaxis,r.a,!0).text,n.bLabel=Z9.tickText(i.baxis,r.b,!0).text,n.cLabel=Z9.tickText(i.caxis,r.c,!0).text,n}});var DQ=z((h$e,CQ)=>{"use strict";var $9=Ir(),pCe=mw(),mCe=Vy(),yCe=jy(),gCe=Wy().calcMarkerSize,qQ=["a","b","c"],LQ={a:["b","c"],b:["a","c"],c:["a","b"]};CQ.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<qQ.length;s++)if(f=qQ[s],!o[f]){for(v=o[LQ[f][0]],d=o[LQ[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,y=new Array(p),m,b,T,w,x,_;for(s=0;s<p;s++)m=o.a[s],b=o.b[s],T=o.c[s],$9(m)&&$9(b)&&$9(T)?(m=+m,b=+b,T=+T,w=n/(m+b+T),w!==1&&(m*=w,b*=w,T*=w),_=m,x=T-b,y[s]={x,y:_,a:m,b,c:T},l&&(y[s].id=l[s])):y[s]={x:!1,y:!1};return gCe(t,p),pCe(r,t),mCe(y,t),yCe(y,t),y}});var PQ=z((d$e,EQ)=>{"use strict";var bCe=Lw();EQ.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)}bCe(r,l,a,s)}});var FQ=z((p$e,RQ)=>{"use strict";var xCe=Fw();RQ.exports=function(r,t,a,n){var i=xCe(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 y=v._module.formatLabels(c,v,p);o.aLabel=y.aLabel,o.bLabel=y.bLabel,o.cLabel=y.cLabel;var m=c.hi||v.hoverinfo,b=[];function T(x,_){b.push(x._hovertitle+": "+_)}if(!v.hovertemplate){var w=m.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 NQ=z((m$e,zQ)=>{"use strict";zQ.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 XQ=z((y$e,WQ)=>{"use strict";var GQ=Er(),J9=Tr(),es=ke(),_l=es.strTranslate,y3=es._,Ef=Sr(),g3=Zr(),u2=ec(),K9=At().extendFlat,_Ce=va(),Qs=Gr(),IQ=Bi(),BQ=In(),YQ=lf(),OQ=YQ.freeMode,wCe=YQ.rectMode,Q9=Q0(),TCe=dl().prepSelect,ACe=dl().selectOnClick,MCe=dl().clearOutline,kCe=dl().clearSelectionsCache,VQ=qa();function jQ(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}WQ.exports=jQ;var wl=jQ.prototype;wl.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};wl.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),_Ce.generalUpdatePerTraceModule(t.graphDiv,t,e,a),t.layers.plotbg.select("path").call(Ef.fill,a.bgcolor)};wl.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=es.ensureSingleById(e._clips,"clipPath",n,function(o){o.append("path").attr("d","M0,0Z")}),r.clipDefRelative=es.ensureSingleById(e._clips,"clipPath",i,function(o){o.append("path").attr("d","M0,0Z")}),r.plotContainer=es.ensureSingle(r.container,"g",r.id),r.updateLayers(a),g3.setClipUrl(r.layers.backplot,n,t),g3.setClipUrl(r.layers.grids,n,t)};wl.updateFx=function(e){e._ternarylayer.selectAll("g.toplevel").style("cursor",e.dragmode==="pan"?"move":"crosshair")};wl.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=GQ.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 Qc=Math.sqrt(4/3);wl.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,y,m,b,T,w;s>Qc*u?(b=u,m=b*Qc):(m=s,b=m/Qc),T=o*m/s,w=l*b/u,p=r.l+r.w*n-m/2,y=r.t+r.h*(1-i)-b/2,t.x0=p,t.y0=y,t.w=m,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"},u2(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"},u2(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var x=t.yaxis.domain[0],_=t.aaxis=K9({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[x,x+w*Qc],anchor:"free",position:0,_id:"y",_length:m});u2(_,t.graphDiv._fullLayout),_.setScale();var k=t.baxis=K9({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:m});u2(k,t.graphDiv._fullLayout),k.setScale();var A=t.caxis=K9({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[x,x+w*Qc],anchor:"free",position:0,_id:"y",_length:m});u2(A,t.graphDiv._fullLayout),A.setScale();var q="M"+p+","+(y+b)+"h"+m+"l-"+m/2+",-"+b+"Z";t.clipDef.select("path").attr("d",q),t.layers.plotbg.select("path").attr("d",q);var C="M0,"+b+"h"+m+"l-"+m/2+",-"+b+"Z";t.clipDefRelative.select("path").attr("d",C);var E=_l(p,y);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",E),t.clipDefRelative.select("path").attr("transform",null);var P=_l(p-k._offset,y+b);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=_l(p+m/2,y)+"rotate(30)"+_l(0,-_._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var N=_l(p+m/2,y)+"rotate(-30)"+_l(0,-A._offset);t.layers.caxis.attr("transform",N),t.layers.cgrid.attr("transform",N),t.drawAxes(!0),t.layers.aline.select("path").attr("d",_.showline?"M"+p+","+(y+b)+"l"+m/2+",-"+b:"M0,0").call(Ef.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(y+b)+"h"+m:"M0,0").call(Ef.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",A.showline?"M"+(p+m/2)+","+y+"l"+m/2+","+b:"M0,0").call(Ef.stroke,A.linecolor||"#000").style("stroke-width",(A.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),g3.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};wl.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"]=Q9.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title.text",placeholder:y3(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"]=Q9.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title.text",placeholder:y3(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"]=Q9.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title.text",placeholder:y3(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"}})}};wl.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=SCe(e);r[s]!==u&&(o.selectAll("."+i+"tick").remove(),r[s]=u),e.setScale();var f=Qs.calcTicks(e),c=Qs.clipEnds(e,f),v=Qs.makeTransTickFn(e),d=Qs.getTickSigns(e)[2],p=es.deg2rad(l),y=d*(e.linewidth||1)/2,m=d*e.ticklen,b=r.w,T=r.h,w=n==="b"?"M0,"+y+"l"+Math.sin(p)*m+","+Math.cos(p)*m:"M"+y+",0l"+Math.cos(p)*m+","+-Math.sin(p)*m,x={a:"M0,0l"+T+",-"+b/2,b:"M0,0l-"+b/2+",-"+T,c:"M0,0l-"+T+","+b/2}[n];Qs.drawTicks(t,e,{vals:e.ticks==="inside"?c:f,layer:o,path:w,transFn:v,crisp:!1}),Qs.drawGrid(t,e,{vals:c,layer:r.layers[n+"grid"],path:x,transFn:v,crisp:!1}),Qs.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:Qs.makeLabelFns(e,0,l)})};function SCe(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Ba=VQ.MINZOOM/2+.87,qCe="m-0.87,.5h"+Ba+"v3h-"+(Ba+5.2)+"l"+(Ba/2+2.6)+",-"+(Ba*.87+4.5)+"l2.6,1.5l-"+Ba/2+","+Ba*.87+"Z",LCe="m0.87,.5h-"+Ba+"v3h"+(Ba+5.2)+"l-"+(Ba/2+2.6)+",-"+(Ba*.87+4.5)+"l-2.6,1.5l"+Ba/2+","+Ba*.87+"Z",CCe="m0,1l"+Ba/2+","+Ba*.87+"l2.6,-1.5l-"+(Ba/2+2.6)+",-"+(Ba*.87+4.5)+"l-"+(Ba/2+2.6)+","+(Ba*.87+4.5)+"l2.6,1.5l"+Ba/2+",-"+Ba*.87+"Z",DCe="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",HQ=!0;wl.clearOutline=function(){kCe(this.dragOptions),MCe(this.dragOptions.gd)};wl.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,N){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;OQ(I)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,I==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=b,e.dragOptions.doneFn=A,T(P,R,N)):I==="pan"?(e.dragOptions.moveFn=C,e.dragOptions.clickFn=b,e.dragOptions.doneFn=E,q(),e.clearOutline(t)):(wCe(I)||OQ(I))&&TCe(P,R,N,e.dragOptions,I)}};var o,l,s,u,f,c,v,d,p,y;function m(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 N=t._fullLayout.clickmode;UQ(t),P===2&&(t.emit("plotly_doubleclick",null),J9.call("_guiRelayout",t,m({a:0,b:0,c:0}))),N.indexOf("select")>-1&&P===1&&ACe(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),N.indexOf("event")>-1&&BQ.click(t,R,e.id)}function T(P,R,N){var I=r.getBoundingClientRect();o=R-I.left,l=N-I.top,t._fullLayout._calcInverseTransform(t);var O=t._fullLayout._invTransform,U=es.apply3DTransform(O)(o,l);o=U[0],l=U[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=Ef.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",_l(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),y=a.append("path").attr("class","zoombox-corners").attr("transform",_l(e.x0,e.y0)).style({fill:Ef.background,stroke:Ef.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 N=o+P*n,I=l+R*i,O=Math.max(0,Math.min(1,w(o,l),w(N,I))),U=Math.max(0,Math.min(1,x(o,l),x(N,I))),Y=Math.max(0,Math.min(1,_(o,l),_(N,I))),G=(O/2+Y)*e.w,V=(1-O/2-U)*e.w,W=(G+V)/2,j=V-G,J=(1-O)*e.h,te=J-j/Qc;j<VQ.MINZOOM?(f=s,p.attr("d",v),y.attr("d","M0,0Z")):(f={a:s.a+O*u,b:s.b+U*u,c:s.c+Y*u},p.attr("d",v+"M"+G+","+J+"H"+V+"L"+W+","+te+"L"+G+","+J+"Z"),y.attr("d","M"+o+","+l+DCe+"M"+G+","+J+qCe+"M"+V+","+J+LCe+"M"+W+","+te+CCe)),d||(p.transition().style("fill",c>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),y.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",m(f))}function A(){UQ(t),f!==s&&(J9.call("_guiRelayout",t,m(f)),HQ&&t.data&&t._context.showTips&&(es.notifier(y3(t,"Double-click to zoom back out"),"long",t),HQ=!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 N=P/e.xaxis._m,I=R/e.yaxis._m;f={a:s.a-I,b:s.b+(N+I)/2,c:s.c-(N-I)/2};var O=[f.a,f.b,f.c].sort(es.sorterAsc),U={a:O.indexOf(f.a),b:O.indexOf(f.b),c:O.indexOf(f.c)};O[0]<0&&(O[1]+O[0]/2<0?(O[2]+=O[0]+O[1],O[0]=O[1]=0):(O[2]+=O[0]/2,O[1]+=O[0]/2,O[0]=0),f={a:O[U.a],b:O[U.b],c:O[U.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var Y=_l(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Y);var G=_l(-P,-R);e.clipDefRelative.select("path").attr("transform",G),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(g3.hideOutsideRangePoints,e),t.emit("plotly_relayouting",m(f))}function E(){J9.call("_guiRelayout",t,m(f))}r.onmousemove=function(P){BQ.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||IQ.unhover(t,P)},IQ.init(this.dragOptions)};function UQ(e){GQ.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var tT=z((g$e,ZQ)=>{"use strict";var ECe=Ei(),PCe=zc().attributes,lt=Ni(),RCe=wo().overrideAll,eT=At().extendFlat,rT={title:{text:lt.title.text,font:lt.title.font},color:lt.color,tickmode:lt.minor.tickmode,nticks:eT({},lt.nticks,{dflt:6,min:1}),tick0:lt.tick0,dtick:lt.dtick,tickvals:lt.tickvals,ticktext:lt.ticktext,ticks:lt.ticks,ticklen:lt.ticklen,tickwidth:lt.tickwidth,tickcolor:lt.tickcolor,ticklabelstep:lt.ticklabelstep,showticklabels:lt.showticklabels,labelalias:lt.labelalias,showtickprefix:lt.showtickprefix,tickprefix:lt.tickprefix,showticksuffix:lt.showticksuffix,ticksuffix:lt.ticksuffix,showexponent:lt.showexponent,exponentformat:lt.exponentformat,minexponent:lt.minexponent,separatethousands:lt.separatethousands,tickfont:lt.tickfont,tickangle:lt.tickangle,tickformat:lt.tickformat,tickformatstops:lt.tickformatstops,hoverformat:lt.hoverformat,showline:eT({},lt.showline,{dflt:!0}),linecolor:lt.linecolor,linewidth:lt.linewidth,showgrid:eT({},lt.showgrid,{dflt:!0}),gridcolor:lt.gridcolor,gridwidth:lt.gridwidth,griddash:lt.griddash,layer:lt.layer,min:{valType:"number",dflt:0,min:0}},b3=ZQ.exports=RCe({domain:PCe({name:"ternary"}),bgcolor:{valType:"color",dflt:ECe.background},sum:{valType:"number",dflt:1,min:0},aaxis:rT,baxis:rT,caxis:rT},"plot","from-root");b3.uirevision={valType:"any",editType:"none"};b3.aaxis.uirevision=b3.baxis.uirevision=b3.caxis.uirevision={valType:"any",editType:"none"}});var JQ=z((b$e,$Q)=>{"use strict";var FCe=ke(),zCe=St(),NCe=zc().defaults;$Q.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 FCe.coerce(v,d,o,T,w)}for(var y=0;y<f;y++){var m=u[y];r[m]?v=r[m]:v=r[m]={},d=zCe.newContainer(t,m,c),n.noUirevision||p("uirevision",t.uirevision);var b={};b[s]=[y/f,(y+1)/f],NCe(d,t,p,b),n.id=m,l(v,d,p,n)}}});var ree=z((x$e,eee)=>{"use strict";var ICe=Sr(),BCe=St(),x3=ke(),OCe=JQ(),HCe=Wp(),UCe=Xp(),GCe=Vp(),YCe=Yp(),VCe=Iw(),QQ=tT(),KQ=["aaxis","baxis","caxis"];eee.exports=function(r,t,a){OCe(r,t,a,{type:"ternary",attributes:QQ,handleDefaults:jCe,font:t.font,paper_bgcolor:t.paper_bgcolor})};function jCe(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=ICe.combine(n,a.paper_bgcolor);for(var o,l,s,u=0;u<KQ.length;u++)o=KQ[u],l=e[o]||{},s=BCe.newContainer(r,o),s._name=o,WCe(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 WCe(e,r,t,a){var n=QQ[r._name];function i(d,p){return x3.coerce(e,r,n,d,p)}i("uirevision",a.uirevision),r.type="linear";var o=i("color"),l=o!==n.color.dflt?o:t.font.color,s=r._name,u=s.charAt(0).toUpperCase(),f="Component "+u,c=i("title.text",f);r._hovertitle=c===f?c:u,x3.coerceFont(i,"title.font",t.font,{overrideDflt:{size:x3.bigFont(t.font.size),color:l}}),i("min"),YCe(e,r,i,"linear"),UCe(e,r,i,"linear"),HCe(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),GCe(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(x3.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),VCe(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var tee=z(lo=>{"use strict";var XCe=XQ(),ZCe=Np().getSubplotCalcData,$Ce=ke().counterRegex,ev="ternary";lo.name=ev;var JCe=lo.attr="subplot";lo.idRoot=ev;lo.idRegex=lo.attrRegex=$Ce(ev);var KCe=lo.attributes={};KCe[JCe]={valType:"subplotid",dflt:"ternary",editType:"calc"};lo.layoutAttributes=tT();lo.supplyLayoutDefaults=ree();lo.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[ev],i=0;i<n.length;i++){var o=n[i],l=ZCe(a,ev,o),s=t[o]._subplot;s||(s=new XCe({id:o,graphDiv:r,container:t._ternarylayer.node()},t),t[o]._subplot=s),s.plot(l,t,r._promises)}};lo.clean=function(e,r,t,a){for(var n=a._subplots[ev]||[],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())}};lo.updateFx=function(e){var r=e._fullLayout;r._ternarylayer.selectAll("g.toplevel").style("cursor",r.dragmode==="pan"?"move":"crosshair")}});var nee=z((w$e,aee)=>{"use strict";aee.exports={attributes:X9(),supplyDefaults:MQ(),colorbar:Ed(),formatLabels:SQ(),calc:DQ(),plot:PQ(),style:mf().style,styleOnSelect:mf().styleOnSelect,hoverPoints:FQ(),selectPoints:zw(),eventData:NQ(),moduleType:"trace",name:"scatterternary",basePlotModule:tee(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var oee=z((T$e,iee)=>{"use strict";iee.exports=nee()});var aT=z((A$e,see)=>{"use strict";var wa=Ug(),rv=At().extendFlat,lee=ko().axisHoverFormat;see.exports={y:wa.y,x:wa.x,x0:wa.x0,y0:wa.y0,xhoverformat:lee("x"),yhoverformat:lee("y"),name:rv({},wa.name,{}),orientation:rv({},wa.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:wa.fillcolor,points:rv({},wa.boxpoints,{}),jitter:rv({},wa.jitter,{}),pointpos:rv({},wa.pointpos,{}),width:rv({},wa.width,{}),marker:wa.marker,text:wa.text,hovertext:wa.hovertext,hovertemplate:wa.hovertemplate,hovertemplatefallback:wa.hovertemplatefallback,quartilemethod:wa.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:wa.offsetgroup,alignmentgroup:wa.alignmentgroup,selected:wa.selected,unselected:wa.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:wa.zorder}});var oT=z((M$e,uee)=>{"use strict";var nT=Gg(),iT=ke().extendFlat;uee.exports={violinmode:iT({},nT.boxmode,{}),violingap:iT({},nT.boxgap,{}),violingroupgap:iT({},nT.boxgroupgap,{})}});var dee=z((k$e,hee)=>{"use strict";var fee=ke(),QCe=Sr(),cee=Jd(),vee=aT();hee.exports=function(r,t,a,n){function i(_,k){return fee.coerce(r,t,vee,_,k)}function o(_,k){return fee.coerce2(r,t,vee,_,k)}if(cee.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",QCe.addOpacity(t.line.color,.5));cee.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),y=o("box.line.color",f),m=o("box.line.width",c),b=i("box.visible",!!(d||p||y||m));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 mee=z((S$e,pee)=>{"use strict";var eDe=ke(),rDe=oT(),tDe=X8();pee.exports=function(r,t,a){function n(i,o){return eDe.coerce(r,t,rDe,i,o)}tDe._supply(r,t,a,n,"violin")}});var _3=z(Pf=>{"use strict";var aDe=ke(),nDe={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Pf.makeKDE=function(e,r,t){var a=t.length,n=nDe.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}};Pf.getPositionOnKdePath=function(e,r,t){var a,n;r.orientation==="h"?(a="y",n="x"):(a="x",n="y");var i=aDe.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]};Pf.getKdeValue=function(e,r,t){var a=e.pts.map(Pf.extractVal),n=Pf.makeKDE(e,r,a);return n(t)/e.posDensityScale};Pf.extractVal=function(e){return e.v}});var bee=z((L$e,gee)=>{"use strict";var lT=ke(),sT=Gr(),iDe=J8(),yee=_3(),oDe=Gt().BADNUM;gee.exports=function(r,t){var a=iDe(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=sT.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(yee.extractVal),d=c.bandwidth=sDe(t,c,v),p=c.span=uDe(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 y=p[1]-p[0],m=Math.ceil(y/(d/3)),b=y/m;if(!isFinite(b)||!isFinite(m))return lT.error("Something went wrong with computing the violin span"),a[0].t.empty=!0,a;var T=yee.makeKDE(c,t,v);c.density=new Array(m+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=sT.findExtremes(i,[o,l],{padded:!0});if(t._extremes[i._id]=k,t.width)a[0].t.maxKDE=s;else{var A=n._violinScaleGroupStats,q=t.scalegroup,C=A[q];C?(C.maxKDE=Math.max(C.maxKDE,s),C.maxCount=Math.max(C.maxCount,u)):A[q]={maxKDE:s,maxCount:u}}return a[0].t.labels.kde=lT._(r,"kde:"),a};function lDe(e,r,t){var a=Math.min(r,t/1.349);return 1.059*a*Math.pow(e,-.2)}function sDe(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=lT.stdev(t,n-1,r.mean);return Math.max(lDe(n,i,r.q3-r.q1),a/100)}function uDe(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===oDe?l[c]:d}n==="soft"?s=l:n==="hard"?s=o:s=[u(0),u(1)];var f={type:"linear",range:s};return sT.setConvert(f),f.cleanRange(),s}});var wee=z((C$e,_ee)=>{"use strict";var fDe=K8().setPositionOffset,xee=["v","h"];_ee.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o<xee.length;o++){for(var l=xee[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)}fDe("violin",r,u,s)}}});var Aee=z((D$e,Tee)=>{"use strict";var uT=Er(),fT=ke(),cDe=Zr(),cT=Q8(),vDe=qw(),hDe=_3();Tee.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=vDe(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return cDe.smoothopen(v[0],1)}fT.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 y=d.bPos,m=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(fT.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(I){var O=uT.select(this),U=I.density,Y=U.length,G=T.c2l(I.pos+y,!0),V=T.l2p(G),W;if(p.width)W=d.maxKDE/m;else{var j=o._violinScaleGroupStats[p.scalegroup];W=p.scalemode==="count"?j.maxKDE/m*(j.maxCount/I.pts.length):j.maxKDE/m}var J,te,ae,se,$,fe,ie;if(x){for(fe=new Array(Y),se=0;se<Y;se++)ie=fe[se]={},ie[d.posLetter]=G+U[se].v/W,ie[d.valLetter]=b.c2l(U[se].t,!0);J=u(fe,p)}if(_){for(fe=new Array(Y),$=0,se=Y-1;$<Y;$++,se--)ie=fe[$]={},ie[d.posLetter]=G-U[se].v/W,ie[d.valLetter]=b.c2l(U[se].t,!0);te=u(fe,p)}if(w)ae=J+"L"+te.slice(1)+"Z";else{var ue=[V,b.c2p(U[0].t)],ce=[V,b.c2p(U[Y-1].t)];p.orientation==="h"&&(ue.reverse(),ce.reverse()),x?ae="M"+ue+"L"+J.slice(1)+"L"+ce:ae="M"+ce+"L"+te.slice(1)+"L"+ue}O.attr("d",ae),I.posCenterPx=V,I.posDensityScale=W*m,I.path=O.node(),I.pathLength=I.path.getTotalLength()/(w?2:1)});var A=p.box,q=A.width,C=(A.line||{}).width,E,P;w?(E=m*q,P=0):x?(E=[0,m*q/2],P=C*{x:1,y:-1}[d.posLetter]):(E=[m*q/2,0],P=C*{x:-1,y:1}[d.posLetter]),cT.plotBoxAndWhiskers(c,{pos:T,val:b},p,{bPos:y,bdPos:E,bPosPxOffset:P}),cT.plotBoxMean(c,{pos:T,val:b},p,{bPos:y,bdPos:E,bPosPxOffset:P});var R;!p.box.visible&&p.meanline.visible&&(R=fT.identity);var N=c.selectAll("path.meanline").data(R||[]);N.enter().append("path").attr("class","meanline").style("fill","none").style("vector-effect",i?"none":"non-scaling-stroke"),N.exit().remove(),N.each(function(I){var O=b.c2p(I.mean,!0),U=hDe.getPositionOnKdePath(I,p,O);uT.select(this).attr("d",p.orientation==="h"?"M"+O+","+U[0]+"V"+U[1]:"M"+U[0]+","+O+"H"+U[1])}),cT.plotPoints(c,{x:l,y:s},p,d)})}});var See=z((E$e,kee)=>{"use strict";var Mee=Er(),tv=Sr(),dDe=mf().stylePoints;kee.exports=function(r){var t=Mee.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=Mee.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(tv.stroke,n.line.color).call(tv.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(tv.stroke,l.color).call(tv.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(tv.stroke,s.color),i.selectAll("path.meanline").style(f).call(tv.stroke,s.color),dDe(i,n,r)})}});var Dee=z((P$e,Cee)=>{"use strict";var pDe=Sr(),vT=ke(),mDe=Gr(),qee=i9(),Lee=_3();Cee.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 y=qee.hoverOnBoxes(r,t,a,n);if(c&&y.length>0){var m=r.xa,b=r.ya,T,w,x,_,k;s.orientation==="h"?(k=t,T="y",x=b,w="x",_=m):(k=a,T="x",x=m,w="y",_=b);var A=l[r.index];if(k>=A.span[0]&&k<=A.span[1]){var q=vT.extendFlat({},r),C=_.c2p(k,!0),E=Lee.getKdeValue(A,s,k),P=Lee.getPositionOnKdePath(A,s,C),R=x._offset,N=x._length;q[T+"0"]=P[0],q[T+"1"]=P[1],q[w+"0"]=q[w+"1"]=C,q[w+"Label"]=w+": "+mDe.hoverLabelText(_,k,s[w+"hoverformat"])+", "+l[0].t.labels.kde+" "+E.toFixed(3);for(var I=0,O=0;O<y.length;O++)if(y[O].attr==="med"){I=O;break}q.spikeDistance=y[I].spikeDistance;var U=T+"Spike";q[U]=y[I][U],y[I].spikeDistance=void 0,y[I][U]=void 0,q.hovertemplate=!1,v.push(q),p={},p[T+"1"]=vT.constrain(R+P[0],R,R+N),p[T+"2"]=vT.constrain(R+P[1],R,R+N),p[w+"1"]=p[w+"2"]=_._offset+C}}f&&(v=v.concat(y))}u.indexOf("points")!==-1&&(d=qee.hoverOnPoints(r,t,a));var Y=o.selectAll(".violinline-"+s.uid).data(p?[0]:[]);return Y.enter().append("line").classed("violinline-"+s.uid,!0).attr("stroke-width",1.5),Y.exit().remove(),Y.attr(p).call(pDe.stroke,r.color),n==="closest"?d?[d]:v:(d&&v.push(d),v)}});var Pee=z((R$e,Eee)=>{"use strict";Eee.exports={attributes:aT(),layoutAttributes:oT(),supplyDefaults:dee(),crossTraceDefaults:Jd().crossTraceDefaults,supplyLayoutDefaults:mee(),calc:bee(),crossTraceCalc:wee(),plot:Aee(),style:See(),styleOnSelect:mf().styleOnSelect,hoverPoints:Dee(),selectPoints:o9(),moduleType:"trace",name:"violin",basePlotModule:Qi(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Fee=z((F$e,Ree)=>{"use strict";Ree.exports=Pee()});var av=z((z$e,zee)=>{"use strict";zee.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return 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:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var 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:function(e){var r=e.slice(0,4);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%",""]}}}});var hT={};d0(hT,{default:()=>gDe});var Nee,Iee,w3,Bee,Oee,Hee,Uee,Gee,yDe,gDe,dT=h0(()=>{"use strict";Nee=cs(At()),Iee=cs(zn()),w3=cs(fi()),Bee=cs(Vi()),Oee=cs(av()),Hee=["rgb","rgba","rgba256","hsl","hsla"],Uee=[],Gee=[];for(let e of Hee){let r=Oee.colormodel[e];Uee.push(`For the \`${e}\` colormodel, it is [${(r.zminDflt||r.min).join(", ")}].`),Gee.push(`For the \`${e}\` colormodel, it is [${(r.zmaxDflt||r.max).join(", ")}].`)}yDe={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:Hee,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.",Uee.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.",Gee.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,Nee.extendFlat)({},Iee.default.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:(0,w3.hovertemplateAttrs)({},{keys:["z","color","colormodel"]}),hovertemplatefallback:(0,w3.templatefallbackAttrs)(),zorder:Bee.zorder},gDe=yDe});var jee=z((N$e,Vee)=>{"use strict";var bDe=ke(),xDe=(dT(),un(hT)).default,Yee=av(),_De=Vl().IMAGE_URL_PREFIX;Vee.exports=function(r,t){function a(o,l){return bDe.coerce(r,t,xDe,o,l)}a("source"),t.source&&!t.source.match(_De)&&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=Yee.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=Yee.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 rs=z((I$e,pT)=>{typeof Object.create=="function"?pT.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:pT.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 mT=z((B$e,Wee)=>{Wee.exports=Bu().EventEmitter});var $ee=z(T3=>{"use strict";T3.byteLength=TDe;T3.toByteArray=MDe;T3.fromByteArray=qDe;var Tl=[],so=[],wDe=typeof Uint8Array!="undefined"?Uint8Array:Array,yT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Rf=0,Xee=yT.length;Rf<Xee;++Rf)Tl[Rf]=yT[Rf],so[yT.charCodeAt(Rf)]=Rf;var Rf,Xee;so[45]=62;so[95]=63;function Zee(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 TDe(e){var r=Zee(e),t=r[0],a=r[1];return(t+a)*3/4-a}function ADe(e,r,t){return(r+t)*3/4-t}function MDe(e){var r,t=Zee(e),a=t[0],n=t[1],i=new wDe(ADe(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s<l;s+=4)r=so[e.charCodeAt(s)]<<18|so[e.charCodeAt(s+1)]<<12|so[e.charCodeAt(s+2)]<<6|so[e.charCodeAt(s+3)],i[o++]=r>>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=so[e.charCodeAt(s)]<<2|so[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=so[e.charCodeAt(s)]<<10|so[e.charCodeAt(s+1)]<<4|so[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function kDe(e){return Tl[e>>18&63]+Tl[e>>12&63]+Tl[e>>6&63]+Tl[e&63]}function SDe(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(kDe(a));return n.join("")}function qDe(e){for(var r,t=e.length,a=t%3,n=[],i=16383,o=0,l=t-a;o<l;o+=i)n.push(SDe(e,o,o+i>l?l:o+i));return a===1?(r=e[t-1],n.push(Tl[r>>2]+Tl[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Tl[r>>10]+Tl[r>>4&63]+Tl[r<<2&63]+"=")),n.join("")}});var Jee=z(gT=>{gT.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)};gT.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,y=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]|=y*128}});var sv=z(lv=>{"use strict";var bT=$ee(),iv=Jee(),Kee=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;lv.Buffer=Ve;lv.SlowBuffer=RDe;lv.INSPECT_MAX_BYTES=50;var A3=2147483647;lv.kMaxLength=A3;Ve.TYPED_ARRAY_SUPPORT=LDe();!Ve.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 LDe(){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(Ve.prototype,"parent",{enumerable:!0,get:function(){if(Ve.isBuffer(this))return this.buffer}});Object.defineProperty(Ve.prototype,"offset",{enumerable:!0,get:function(){if(Ve.isBuffer(this))return this.byteOffset}});function ts(e){if(e>A3)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,Ve.prototype),r}function Ve(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 TT(e)}return tre(e,r,t)}Ve.poolSize=8192;function tre(e,r,t){if(typeof e=="string")return DDe(e,r);if(ArrayBuffer.isView(e))return EDe(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(Al(e,ArrayBuffer)||e&&Al(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Al(e,SharedArrayBuffer)||e&&Al(e.buffer,SharedArrayBuffer)))return _T(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 Ve.from(a,r,t);let n=PDe(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Ve.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)}Ve.from=function(e,r,t){return tre(e,r,t)};Object.setPrototypeOf(Ve.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ve,Uint8Array);function are(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 CDe(e,r,t){return are(e),e<=0?ts(e):r!==void 0?typeof t=="string"?ts(e).fill(r,t):ts(e).fill(r):ts(e)}Ve.alloc=function(e,r,t){return CDe(e,r,t)};function TT(e){return are(e),ts(e<0?0:AT(e)|0)}Ve.allocUnsafe=function(e){return TT(e)};Ve.allocUnsafeSlow=function(e){return TT(e)};function DDe(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Ve.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=nre(e,r)|0,a=ts(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function xT(e){let r=e.length<0?0:AT(e.length)|0,t=ts(r);for(let a=0;a<r;a+=1)t[a]=e[a]&255;return t}function EDe(e){if(Al(e,Uint8Array)){let r=new Uint8Array(e);return _T(r.buffer,r.byteOffset,r.byteLength)}return xT(e)}function _T(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,Ve.prototype),a}function PDe(e){if(Ve.isBuffer(e)){let r=AT(e.length)|0,t=ts(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||kT(e.length)?ts(0):xT(e);if(e.type==="Buffer"&&Array.isArray(e.data))return xT(e.data)}function AT(e){if(e>=A3)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A3.toString(16)+" bytes");return e|0}function RDe(e){return+e!=e&&(e=0),Ve.alloc(+e)}Ve.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==Ve.prototype};Ve.compare=function(r,t){if(Al(r,Uint8Array)&&(r=Ve.from(r,r.offset,r.byteLength)),Al(t,Uint8Array)&&(t=Ve.from(t,t.offset,t.byteLength)),!Ve.isBuffer(r)||!Ve.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};Ve.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}};Ve.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return Ve.alloc(0);let a;if(t===void 0)for(t=0,a=0;a<r.length;++a)t+=r[a].length;let n=Ve.allocUnsafe(t),i=0;for(a=0;a<r.length;++a){let o=r[a];if(Al(o,Uint8Array))i+o.length>n.length?(Ve.isBuffer(o)||(o=Ve.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(Ve.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function nre(e,r){if(Ve.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Al(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 wT(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return hre(e).length;default:if(n)return a?-1:wT(e).length;r=(""+r).toLowerCase(),n=!0}}Ve.byteLength=nre;function FDe(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 VDe(this,r,t);case"utf8":case"utf-8":return ore(this,r,t);case"ascii":return GDe(this,r,t);case"latin1":case"binary":return YDe(this,r,t);case"base64":return HDe(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jDe(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}Ve.prototype._isBuffer=!0;function Ff(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}Ve.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)Ff(this,t,t+1);return this};Ve.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)Ff(this,t,t+3),Ff(this,t+1,t+2);return this};Ve.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)Ff(this,t,t+7),Ff(this,t+1,t+6),Ff(this,t+2,t+5),Ff(this,t+3,t+4);return this};Ve.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?ore(this,0,r):FDe.apply(this,arguments)};Ve.prototype.toLocaleString=Ve.prototype.toString;Ve.prototype.equals=function(r){if(!Ve.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:Ve.compare(this,r)===0};Ve.prototype.inspect=function(){let r="",t=lv.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};Kee&&(Ve.prototype[Kee]=Ve.prototype.inspect);Ve.prototype.compare=function(r,t,a,n,i){if(Al(r,Uint8Array)&&(r=Ve.from(r,r.offset,r.byteLength)),!Ve.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 ire(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,kT(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=Ve.from(r,a)),Ve.isBuffer(r))return r.length===0?-1:Qee(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):Qee(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function Qee(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}Ve.prototype.includes=function(r,t,a){return this.indexOf(r,t,a)!==-1};Ve.prototype.indexOf=function(r,t,a){return ire(this,r,t,a,!0)};Ve.prototype.lastIndexOf=function(r,t,a){return ire(this,r,t,a,!1)};function zDe(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(kT(l))return o;e[t+o]=l}return o}function NDe(e,r,t,a){return M3(wT(r,e.length-t),e,t,a)}function IDe(e,r,t,a){return M3($De(r),e,t,a)}function BDe(e,r,t,a){return M3(hre(r),e,t,a)}function ODe(e,r,t,a){return M3(JDe(r,e.length-t),e,t,a)}Ve.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 zDe(this,r,t,a);case"utf8":case"utf-8":return NDe(this,r,t,a);case"ascii":case"latin1":case"binary":return IDe(this,r,t,a);case"base64":return BDe(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ODe(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};Ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function HDe(e,r,t){return r===0&&t===e.length?bT.fromByteArray(e):bT.fromByteArray(e.slice(r,t))}function ore(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 UDe(a)}var ere=4096;function UDe(e){let r=e.length;if(r<=ere)return String.fromCharCode.apply(String,e);let t="",a=0;for(;a<r;)t+=String.fromCharCode.apply(String,e.slice(a,a+=ere));return t}function GDe(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 YDe(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 VDe(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+=KDe[e[i]];return n}function jDe(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}Ve.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,Ve.prototype),n};function an(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")}Ve.prototype.readUintLE=Ve.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||an(r,t,this.length);let n=this[r],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[r+o]*i;return n};Ve.prototype.readUintBE=Ve.prototype.readUIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||an(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};Ve.prototype.readUint8=Ve.prototype.readUInt8=function(r,t){return r=r>>>0,t||an(r,1,this.length),this[r]};Ve.prototype.readUint16LE=Ve.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||an(r,2,this.length),this[r]|this[r+1]<<8};Ve.prototype.readUint16BE=Ve.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||an(r,2,this.length),this[r]<<8|this[r+1]};Ve.prototype.readUint32LE=Ve.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||an(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Ve.prototype.readUint32BE=Ve.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||an(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Ve.prototype.readBigUInt64LE=eu(function(r){r=r>>>0,ov(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&f2(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))});Ve.prototype.readBigUInt64BE=eu(function(r){r=r>>>0,ov(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&f2(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)});Ve.prototype.readIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||an(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};Ve.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||an(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};Ve.prototype.readInt8=function(r,t){return r=r>>>0,t||an(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};Ve.prototype.readInt16LE=function(r,t){r=r>>>0,t||an(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};Ve.prototype.readInt16BE=function(r,t){r=r>>>0,t||an(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};Ve.prototype.readInt32LE=function(r,t){return r=r>>>0,t||an(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Ve.prototype.readInt32BE=function(r,t){return r=r>>>0,t||an(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Ve.prototype.readBigInt64LE=eu(function(r){r=r>>>0,ov(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&f2(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)});Ve.prototype.readBigInt64BE=eu(function(r){r=r>>>0,ov(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&f2(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)});Ve.prototype.readFloatLE=function(r,t){return r=r>>>0,t||an(r,4,this.length),iv.read(this,r,!0,23,4)};Ve.prototype.readFloatBE=function(r,t){return r=r>>>0,t||an(r,4,this.length),iv.read(this,r,!1,23,4)};Ve.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||an(r,8,this.length),iv.read(this,r,!0,52,8)};Ve.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||an(r,8,this.length),iv.read(this,r,!1,52,8)};function ni(e,r,t,a,n,i){if(!Ve.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")}Ve.prototype.writeUintLE=Ve.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;ni(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};Ve.prototype.writeUintBE=Ve.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;ni(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};Ve.prototype.writeUint8=Ve.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||ni(this,r,t,1,255,0),this[t]=r&255,t+1};Ve.prototype.writeUint16LE=Ve.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||ni(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};Ve.prototype.writeUint16BE=Ve.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||ni(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};Ve.prototype.writeUint32LE=Ve.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||ni(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};Ve.prototype.writeUint32BE=Ve.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||ni(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 lre(e,r,t,a,n){vre(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 sre(e,r,t,a,n){vre(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}Ve.prototype.writeBigUInt64LE=eu(function(r,t=0){return lre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Ve.prototype.writeBigUInt64BE=eu(function(r,t=0){return sre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Ve.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);ni(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};Ve.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);ni(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};Ve.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||ni(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};Ve.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||ni(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};Ve.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||ni(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};Ve.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||ni(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};Ve.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||ni(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};Ve.prototype.writeBigInt64LE=eu(function(r,t=0){return lre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Ve.prototype.writeBigInt64BE=eu(function(r,t=0){return sre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ure(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 fre(e,r,t,a,n){return r=+r,t=t>>>0,n||ure(e,r,t,4,34028234663852886e22,-34028234663852886e22),iv.write(e,r,t,a,23,4),t+4}Ve.prototype.writeFloatLE=function(r,t,a){return fre(this,r,t,!0,a)};Ve.prototype.writeFloatBE=function(r,t,a){return fre(this,r,t,!1,a)};function cre(e,r,t,a,n){return r=+r,t=t>>>0,n||ure(e,r,t,8,17976931348623157e292,-17976931348623157e292),iv.write(e,r,t,a,52,8),t+8}Ve.prototype.writeDoubleLE=function(r,t,a){return cre(this,r,t,!0,a)};Ve.prototype.writeDoubleBE=function(r,t,a){return cre(this,r,t,!1,a)};Ve.prototype.copy=function(r,t,a,n){if(!Ve.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};Ve.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"&&!Ve.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=Ve.isBuffer(r)?r:Ve.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 nv={};function MT(e,r,t){nv[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}`}}}MT("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);MT("ERR_INVALID_ARG_TYPE",function(e,r){return`The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError);MT("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=rre(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=rre(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function rre(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 WDe(e,r,t){ov(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&f2(r,e.length-(t+1))}function vre(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 nv.ERR_OUT_OF_RANGE("value",l,e)}WDe(a,n,i)}function ov(e,r){if(typeof e!="number")throw new nv.ERR_INVALID_ARG_TYPE(r,"number",e)}function f2(e,r,t){throw Math.floor(e)!==e?(ov(e,t),new nv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new nv.ERR_BUFFER_OUT_OF_BOUNDS:new nv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var XDe=/[^+/0-9A-Za-z-_]/g;function ZDe(e){if(e=e.split("=")[0],e=e.trim().replace(XDe,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function wT(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 $De(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function JDe(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 hre(e){return bT.toByteArray(ZDe(e))}function M3(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 Al(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function kT(e){return e!==e}var KDe=(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 eu(e){return typeof BigInt=="undefined"?QDe:e}function QDe(){throw new Error("BigInt not supported")}});var k3=z((Y$e,dre)=>{"use strict";dre.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 c2=z((V$e,pre)=>{"use strict";var eEe=k3();pre.exports=function(){return eEe()&&!!Symbol.toStringTag}});var S3=z((j$e,mre)=>{"use strict";mre.exports=Object});var gre=z((W$e,yre)=>{"use strict";yre.exports=Error});var xre=z((X$e,bre)=>{"use strict";bre.exports=EvalError});var wre=z((Z$e,_re)=>{"use strict";_re.exports=RangeError});var Are=z(($$e,Tre)=>{"use strict";Tre.exports=ReferenceError});var ST=z((J$e,Mre)=>{"use strict";Mre.exports=SyntaxError});var uv=z((K$e,kre)=>{"use strict";kre.exports=TypeError});var qre=z((Q$e,Sre)=>{"use strict";Sre.exports=URIError});var Cre=z((eJe,Lre)=>{"use strict";Lre.exports=Math.abs});var Ere=z((rJe,Dre)=>{"use strict";Dre.exports=Math.floor});var Rre=z((tJe,Pre)=>{"use strict";Pre.exports=Math.max});var zre=z((aJe,Fre)=>{"use strict";Fre.exports=Math.min});var Ire=z((nJe,Nre)=>{"use strict";Nre.exports=Math.pow});var Ore=z((iJe,Bre)=>{"use strict";Bre.exports=Math.round});var Ure=z((oJe,Hre)=>{"use strict";Hre.exports=Number.isNaN||function(r){return r!==r}});var Yre=z((lJe,Gre)=>{"use strict";var rEe=Ure();Gre.exports=function(r){return rEe(r)||r===0?r:r<0?-1:1}});var jre=z((sJe,Vre)=>{"use strict";Vre.exports=Object.getOwnPropertyDescriptor});var zf=z((uJe,Wre)=>{"use strict";var q3=jre();if(q3)try{q3([],"length")}catch(e){q3=null}Wre.exports=q3});var v2=z((fJe,Xre)=>{"use strict";var L3=Object.defineProperty||!1;if(L3)try{L3({},"a",{value:1})}catch(e){L3=!1}Xre.exports=L3});var Jre=z((cJe,$re)=>{"use strict";var Zre=typeof Symbol!="undefined"&&Symbol,tEe=k3();$re.exports=function(){return typeof Zre!="function"||typeof Symbol!="function"||typeof Zre("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:tEe()}});var qT=z((vJe,Kre)=>{"use strict";Kre.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var LT=z((hJe,Qre)=>{"use strict";var aEe=S3();Qre.exports=aEe.getPrototypeOf||null});var tte=z((dJe,rte)=>{"use strict";var nEe="Function.prototype.bind called on incompatible ",iEe=Object.prototype.toString,oEe=Math.max,lEe="[object Function]",ete=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},sEe=function(r,t){for(var a=[],n=t||0,i=0;n<r.length;n+=1,i+=1)a[i]=r[n];return a},uEe=function(e,r){for(var t="",a=0;a<e.length;a+=1)t+=e[a],a+1<e.length&&(t+=r);return t};rte.exports=function(r){var t=this;if(typeof t!="function"||iEe.apply(t)!==lEe)throw new TypeError(nEe+t);for(var a=sEe(arguments,1),n,i=function(){if(this instanceof n){var f=t.apply(this,ete(a,arguments));return Object(f)===f?f:this}return t.apply(r,ete(a,arguments))},o=oEe(0,t.length-a.length),l=[],s=0;s<o;s++)l[s]="$"+s;if(n=Function("binder","return function ("+uEe(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 fv=z((pJe,ate)=>{"use strict";var fEe=tte();ate.exports=Function.prototype.bind||fEe});var C3=z((mJe,nte)=>{"use strict";nte.exports=Function.prototype.call});var D3=z((yJe,ite)=>{"use strict";ite.exports=Function.prototype.apply});var lte=z((gJe,ote)=>{"use strict";ote.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var CT=z((bJe,ste)=>{"use strict";var cEe=fv(),vEe=D3(),hEe=C3(),dEe=lte();ste.exports=dEe||cEe.call(hEe,vEe)});var E3=z((xJe,ute)=>{"use strict";var pEe=fv(),mEe=uv(),yEe=C3(),gEe=CT();ute.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new mEe("a function is required");return gEe(pEe,yEe,r)}});var pte=z((_Je,dte)=>{"use strict";var bEe=E3(),fte=zf(),vte;try{vte=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var DT=!!vte&&fte&&fte(Object.prototype,"__proto__"),hte=Object,cte=hte.getPrototypeOf;dte.exports=DT&&typeof DT.get=="function"?bEe([DT.get]):typeof cte=="function"?function(r){return cte(r==null?r:hte(r))}:!1});var P3=z((wJe,bte)=>{"use strict";var mte=qT(),yte=LT(),gte=pte();bte.exports=mte?function(r){return mte(r)}:yte?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return yte(r)}:gte?function(r){return gte(r)}:null});var ET=z((TJe,xte)=>{"use strict";var xEe=Function.prototype.call,_Ee=Object.prototype.hasOwnProperty,wEe=fv();xte.exports=wEe.call(xEe,_Ee)});var z3=z((AJe,kte)=>{"use strict";var st,TEe=S3(),AEe=gre(),MEe=xre(),kEe=wre(),SEe=Are(),dv=ST(),hv=uv(),qEe=qre(),LEe=Cre(),CEe=Ere(),DEe=Rre(),EEe=zre(),PEe=Ire(),REe=Ore(),FEe=Yre(),Ate=Function,PT=function(e){try{return Ate('"use strict"; return ('+e+").constructor;")()}catch(r){}},h2=zf(),zEe=v2(),RT=function(){throw new hv},NEe=h2?(function(){try{return arguments.callee,RT}catch(e){try{return h2(arguments,"callee").get}catch(r){return RT}}})():RT,cv=Jre()(),nn=P3(),IEe=LT(),BEe=qT(),Mte=D3(),d2=C3(),vv={},OEe=typeof Uint8Array=="undefined"||!nn?st:nn(Uint8Array),Nf={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?st:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?st:ArrayBuffer,"%ArrayIteratorPrototype%":cv&&nn?nn([][Symbol.iterator]()):st,"%AsyncFromSyncIteratorPrototype%":st,"%AsyncFunction%":vv,"%AsyncGenerator%":vv,"%AsyncGeneratorFunction%":vv,"%AsyncIteratorPrototype%":vv,"%Atomics%":typeof Atomics=="undefined"?st:Atomics,"%BigInt%":typeof BigInt=="undefined"?st:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?st:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?st:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?st:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":AEe,"%eval%":eval,"%EvalError%":MEe,"%Float16Array%":typeof Float16Array=="undefined"?st:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?st:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?st:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?st:FinalizationRegistry,"%Function%":Ate,"%GeneratorFunction%":vv,"%Int8Array%":typeof Int8Array=="undefined"?st:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?st:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?st:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cv&&nn?nn(nn([][Symbol.iterator]())):st,"%JSON%":typeof JSON=="object"?JSON:st,"%Map%":typeof Map=="undefined"?st:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!cv||!nn?st:nn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":TEe,"%Object.getOwnPropertyDescriptor%":h2,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?st:Promise,"%Proxy%":typeof Proxy=="undefined"?st:Proxy,"%RangeError%":kEe,"%ReferenceError%":SEe,"%Reflect%":typeof Reflect=="undefined"?st:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?st:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!cv||!nn?st:nn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?st:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cv&&nn?nn(""[Symbol.iterator]()):st,"%Symbol%":cv?Symbol:st,"%SyntaxError%":dv,"%ThrowTypeError%":NEe,"%TypedArray%":OEe,"%TypeError%":hv,"%Uint8Array%":typeof Uint8Array=="undefined"?st:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?st:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?st:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?st:Uint32Array,"%URIError%":qEe,"%WeakMap%":typeof WeakMap=="undefined"?st:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?st:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?st:WeakSet,"%Function.prototype.call%":d2,"%Function.prototype.apply%":Mte,"%Object.defineProperty%":zEe,"%Object.getPrototypeOf%":IEe,"%Math.abs%":LEe,"%Math.floor%":CEe,"%Math.max%":DEe,"%Math.min%":EEe,"%Math.pow%":PEe,"%Math.round%":REe,"%Math.sign%":FEe,"%Reflect.getPrototypeOf%":BEe};if(nn)try{null.error}catch(e){_te=nn(nn(e)),Nf["%Error.prototype%"]=_te}var _te,HEe=function e(r){var t;if(r==="%AsyncFunction%")t=PT("async function () {}");else if(r==="%GeneratorFunction%")t=PT("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=PT("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&nn&&(t=nn(n.prototype))}return Nf[r]=t,t},wte={__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"]},p2=fv(),R3=ET(),UEe=p2.call(d2,Array.prototype.concat),GEe=p2.call(Mte,Array.prototype.splice),Tte=p2.call(d2,String.prototype.replace),F3=p2.call(d2,String.prototype.slice),YEe=p2.call(d2,RegExp.prototype.exec),VEe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,jEe=/\\(\\)?/g,WEe=function(r){var t=F3(r,0,1),a=F3(r,-1);if(t==="%"&&a!=="%")throw new dv("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new dv("invalid intrinsic syntax, expected opening `%`");var n=[];return Tte(r,VEe,function(i,o,l,s){n[n.length]=l?Tte(s,jEe,"$1"):o||i}),n},XEe=function(r,t){var a=r,n;if(R3(wte,a)&&(n=wte[a],a="%"+n[0]+"%"),R3(Nf,a)){var i=Nf[a];if(i===vv&&(i=HEe(a)),typeof i=="undefined"&&!t)throw new hv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new dv("intrinsic "+r+" does not exist!")};kte.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new hv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new hv('"allowMissing" argument must be a boolean');if(YEe(/^%?[^%]*%?$/,r)===null)throw new dv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=WEe(r),n=a.length>0?a[0]:"",i=XEe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],GEe(a,UEe([0,1],u)));for(var f=1,c=!0;f<a.length;f+=1){var v=a[f],d=F3(v,0,1),p=F3(v,-1);if((d==='"'||d==="'"||d==="`"||p==='"'||p==="'"||p==="`")&&d!==p)throw new dv("property names with quotes must have matching quotes");if((v==="constructor"||!c)&&(s=!0),n+="."+v,o="%"+n+"%",R3(Nf,o))l=Nf[o];else if(l!=null){if(!(v in l)){if(!t)throw new hv("base intrinsic for "+r+" exists, but the property is not available.");return}if(h2&&f+1>=a.length){var y=h2(l,v);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[v]}else c=R3(l,v),l=l[v];c&&!s&&(Nf[o]=l)}}return l}});var If=z((MJe,Lte)=>{"use strict";var Ste=z3(),qte=E3(),ZEe=qte([Ste("%String.prototype.indexOf%")]);Lte.exports=function(r,t){var a=Ste(r,!!t);return typeof a=="function"&&ZEe(r,".prototype.")>-1?qte([a]):a}});var Ete=z((kJe,Dte)=>{"use strict";var $Ee=c2()(),JEe=If(),FT=JEe("Object.prototype.toString"),N3=function(r){return $Ee&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:FT(r)==="[object Arguments]"},Cte=function(r){return N3(r)?!0:r!==null&&typeof r=="object"&&"length"in r&&typeof r.length=="number"&&r.length>=0&&FT(r)!=="[object Array]"&&"callee"in r&&FT(r.callee)==="[object Function]"},KEe=(function(){return N3(arguments)})();N3.isLegacyArguments=Cte;Dte.exports=KEe?N3:Cte});var Ite=z((SJe,Nte)=>{"use strict";var Pte=If(),QEe=c2()(),ePe=ET(),rPe=zf(),IT;QEe?(Rte=Pte("RegExp.prototype.exec"),zT={},I3=function(){throw zT},NT={toString:I3,valueOf:I3},typeof Symbol.toPrimitive=="symbol"&&(NT[Symbol.toPrimitive]=I3),IT=function(r){if(!r||typeof r!="object")return!1;var t=rPe(r,"lastIndex"),a=t&&ePe(t,"value");if(!a)return!1;try{Rte(r,NT)}catch(n){return n===zT}}):(Fte=Pte("Object.prototype.toString"),zte="[object RegExp]",IT=function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:Fte(r)===zte});var Rte,zT,I3,NT,Fte,zte;Nte.exports=IT});var Ote=z((qJe,Bte)=>{"use strict";var tPe=If(),aPe=Ite(),nPe=tPe("RegExp.prototype.exec"),iPe=uv();Bte.exports=function(r){if(!aPe(r))throw new iPe("`regex` must be a RegExp");return function(a){return nPe(r,a)!==null}}});var Ute=z((LJe,Hte)=>{"use strict";var oPe=function*(){}.constructor;Hte.exports=()=>oPe});var jte=z((CJe,Vte)=>{"use strict";var Yte=If(),lPe=Ote(),sPe=lPe(/^\s*(?:function)?\*/),uPe=c2()(),Gte=P3(),fPe=Yte("Object.prototype.toString"),cPe=Yte("Function.prototype.toString"),vPe=Ute();Vte.exports=function(r){if(typeof r!="function")return!1;if(sPe(cPe(r)))return!0;if(!uPe){var t=fPe(r);return t==="[object GeneratorFunction]"}if(!Gte)return!1;var a=vPe();return a&&Gte(r)===a.prototype}});var $te=z((DJe,Zte)=>{"use strict";var Xte=Function.prototype.toString,pv=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,OT,B3;if(typeof pv=="function"&&typeof Object.defineProperty=="function")try{OT=Object.defineProperty({},"length",{get:function(){throw B3}}),B3={},pv(function(){throw 42},null,OT)}catch(e){e!==B3&&(pv=null)}else pv=null;var hPe=/^\s*class\b/,HT=function(r){try{var t=Xte.call(r);return hPe.test(t)}catch(a){return!1}},BT=function(r){try{return HT(r)?!1:(Xte.call(r),!0)}catch(t){return!1}},O3=Object.prototype.toString,dPe="[object Object]",pPe="[object Function]",mPe="[object GeneratorFunction]",yPe="[object HTMLAllCollection]",gPe="[object HTML document.all class]",bPe="[object HTMLCollection]",xPe=typeof Symbol=="function"&&!!Symbol.toStringTag,_Pe=!(0 in[,]),UT=function(){return!1};typeof document=="object"&&(Wte=document.all,O3.call(Wte)===O3.call(document.all)&&(UT=function(r){if((_Pe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=O3.call(r);return(t===yPe||t===gPe||t===bPe||t===dPe)&&r("")==null}catch(a){}return!1}));var Wte;Zte.exports=pv?function(r){if(UT(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{pv(r,null,OT)}catch(t){if(t!==B3)return!1}return!HT(r)&&BT(r)}:function(r){if(UT(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(xPe)return BT(r);if(HT(r))return!1;var t=O3.call(r);return t!==pPe&&t!==mPe&&!/^\[object HTML/.test(t)?!1:BT(r)}});var Qte=z((EJe,Kte)=>{"use strict";var wPe=$te(),TPe=Object.prototype.toString,Jte=Object.prototype.hasOwnProperty,APe=function(r,t,a){for(var n=0,i=r.length;n<i;n++)Jte.call(r,n)&&(a==null?t(r[n],n,r):t.call(a,r[n],n,r))},MPe=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)},kPe=function(r,t,a){for(var n in r)Jte.call(r,n)&&(a==null?t(r[n],n,r):t.call(a,r[n],n,r))};function SPe(e){return TPe.call(e)==="[object Array]"}Kte.exports=function(r,t,a){if(!wPe(t))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=a),SPe(r)?APe(r,t,n):typeof r=="string"?MPe(r,t,n):kPe(r,t,n)}});var rae=z((PJe,eae)=>{"use strict";eae.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var aae=z((RJe,tae)=>{"use strict";var GT=rae(),qPe=typeof globalThis=="undefined"?window:globalThis;tae.exports=function(){for(var r=[],t=0;t<GT.length;t++)typeof qPe[GT[t]]=="function"&&(r[r.length]=GT[t]);return r}});var YT=z((FJe,oae)=>{"use strict";var nae=v2(),LPe=ST(),mv=uv(),iae=zf();oae.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new mv("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new mv("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mv("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mv("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mv("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mv("`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=!!iae&&iae(r,t);if(nae)nae(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 LPe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var jT=z((zJe,sae)=>{"use strict";var VT=v2(),lae=function(){return!!VT};lae.hasArrayLengthDefineBug=function(){if(!VT)return null;try{return VT([],"length",{value:1}).length!==1}catch(r){return!0}};sae.exports=lae});var hae=z((NJe,vae)=>{"use strict";var CPe=z3(),uae=YT(),DPe=jT()(),fae=zf(),cae=uv(),EPe=CPe("%Math.floor%");vae.exports=function(r,t){if(typeof r!="function")throw new cae("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||EPe(t)!==t)throw new cae("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&fae){var o=fae(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(DPe?uae(r,"length",t,!0,!0):uae(r,"length",t)),r}});var pae=z((IJe,dae)=>{"use strict";var PPe=fv(),RPe=D3(),FPe=CT();dae.exports=function(){return FPe(PPe,RPe,arguments)}});var m2=z((BJe,H3)=>{"use strict";var zPe=hae(),mae=v2(),NPe=E3(),yae=pae();H3.exports=function(r){var t=NPe(arguments),a=1+r.length-(arguments.length-1);return zPe(t,a>0?a:0,!0)};mae?mae(H3.exports,"apply",{value:yae}):H3.exports.apply=yae});var $T=z((OJe,_ae)=>{"use strict";var Y3=Qte(),IPe=aae(),gae=m2(),XT=If(),G3=zf(),U3=P3(),BPe=XT("Object.prototype.toString"),xae=c2()(),bae=typeof globalThis=="undefined"?window:globalThis,WT=IPe(),ZT=XT("String.prototype.slice"),OPe=XT("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a<r.length;a+=1)if(r[a]===t)return a;return-1},V3={__proto__:null};xae&&G3&&U3?Y3(WT,function(e){var r=new bae[e];if(Symbol.toStringTag in r&&U3){var t=U3(r),a=G3(t,Symbol.toStringTag);if(!a&&t){var n=U3(t);a=G3(n,Symbol.toStringTag)}if(a&&a.get){var i=gae(a.get);V3["$"+e]=i}}}):Y3(WT,function(e){var r=new bae[e],t=r.slice||r.set;if(t){var a=gae(t);V3["$"+e]=a}});function HPe(e){var r=!1;return Y3(V3,function(t,a){if(!r)try{"$"+t(e)===a&&(r=ZT(a,1))}catch(n){}}),r}function UPe(e){var r=!1;return Y3(V3,function(t,a){if(!r)try{t(e),r=ZT(a,1)}catch(n){}}),r}function GPe(e){return OPe(WT,e)>-1}_ae.exports=function(r){if(!r||typeof r!="object")return!1;if(!xae){var t=ZT(BPe(r),8,-1);return GPe(t)?t:t!=="Object"?!1:UPe(r)}return G3?HPe(r):null}});var Tae=z((HJe,wae)=>{"use strict";var YPe=$T();wae.exports=function(r){return!!YPe(r)}});var QT=z(ut=>{"use strict";var VPe=Ete(),jPe=jte(),Go=$T(),Aae=Tae();function yv(e){return e.call.bind(e)}var Mae=typeof BigInt!="undefined",kae=typeof Symbol!="undefined",uo=yv(Object.prototype.toString),WPe=yv(Number.prototype.valueOf),XPe=yv(String.prototype.valueOf),ZPe=yv(Boolean.prototype.valueOf);Mae&&(Sae=yv(BigInt.prototype.valueOf));var Sae;kae&&(qae=yv(Symbol.prototype.valueOf));var qae;function g2(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}ut.isArgumentsObject=VPe;ut.isGeneratorFunction=jPe;ut.isTypedArray=Aae;function $Pe(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}ut.isPromise=$Pe;function JPe(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Aae(e)||Cae(e)}ut.isArrayBufferView=JPe;function KPe(e){return Go(e)==="Uint8Array"}ut.isUint8Array=KPe;function QPe(e){return Go(e)==="Uint8ClampedArray"}ut.isUint8ClampedArray=QPe;function eRe(e){return Go(e)==="Uint16Array"}ut.isUint16Array=eRe;function rRe(e){return Go(e)==="Uint32Array"}ut.isUint32Array=rRe;function tRe(e){return Go(e)==="Int8Array"}ut.isInt8Array=tRe;function aRe(e){return Go(e)==="Int16Array"}ut.isInt16Array=aRe;function nRe(e){return Go(e)==="Int32Array"}ut.isInt32Array=nRe;function iRe(e){return Go(e)==="Float32Array"}ut.isFloat32Array=iRe;function oRe(e){return Go(e)==="Float64Array"}ut.isFloat64Array=oRe;function lRe(e){return Go(e)==="BigInt64Array"}ut.isBigInt64Array=lRe;function sRe(e){return Go(e)==="BigUint64Array"}ut.isBigUint64Array=sRe;function j3(e){return uo(e)==="[object Map]"}j3.working=typeof Map!="undefined"&&j3(new Map);function uRe(e){return typeof Map=="undefined"?!1:j3.working?j3(e):e instanceof Map}ut.isMap=uRe;function W3(e){return uo(e)==="[object Set]"}W3.working=typeof Set!="undefined"&&W3(new Set);function fRe(e){return typeof Set=="undefined"?!1:W3.working?W3(e):e instanceof Set}ut.isSet=fRe;function X3(e){return uo(e)==="[object WeakMap]"}X3.working=typeof WeakMap!="undefined"&&X3(new WeakMap);function cRe(e){return typeof WeakMap=="undefined"?!1:X3.working?X3(e):e instanceof WeakMap}ut.isWeakMap=cRe;function KT(e){return uo(e)==="[object WeakSet]"}KT.working=typeof WeakSet!="undefined"&&KT(new WeakSet);function vRe(e){return KT(e)}ut.isWeakSet=vRe;function Z3(e){return uo(e)==="[object ArrayBuffer]"}Z3.working=typeof ArrayBuffer!="undefined"&&Z3(new ArrayBuffer);function Lae(e){return typeof ArrayBuffer=="undefined"?!1:Z3.working?Z3(e):e instanceof ArrayBuffer}ut.isArrayBuffer=Lae;function $3(e){return uo(e)==="[object DataView]"}$3.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&$3(new DataView(new ArrayBuffer(1),0,1));function Cae(e){return typeof DataView=="undefined"?!1:$3.working?$3(e):e instanceof DataView}ut.isDataView=Cae;var JT=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function y2(e){return uo(e)==="[object SharedArrayBuffer]"}function Dae(e){return typeof JT=="undefined"?!1:(typeof y2.working=="undefined"&&(y2.working=y2(new JT)),y2.working?y2(e):e instanceof JT)}ut.isSharedArrayBuffer=Dae;function hRe(e){return uo(e)==="[object AsyncFunction]"}ut.isAsyncFunction=hRe;function dRe(e){return uo(e)==="[object Map Iterator]"}ut.isMapIterator=dRe;function pRe(e){return uo(e)==="[object Set Iterator]"}ut.isSetIterator=pRe;function mRe(e){return uo(e)==="[object Generator]"}ut.isGeneratorObject=mRe;function yRe(e){return uo(e)==="[object WebAssembly.Module]"}ut.isWebAssemblyCompiledModule=yRe;function Eae(e){return g2(e,WPe)}ut.isNumberObject=Eae;function Pae(e){return g2(e,XPe)}ut.isStringObject=Pae;function Rae(e){return g2(e,ZPe)}ut.isBooleanObject=Rae;function Fae(e){return Mae&&g2(e,Sae)}ut.isBigIntObject=Fae;function zae(e){return kae&&g2(e,qae)}ut.isSymbolObject=zae;function gRe(e){return Eae(e)||Pae(e)||Rae(e)||Fae(e)||zae(e)}ut.isBoxedPrimitive=gRe;function bRe(e){return typeof Uint8Array!="undefined"&&(Lae(e)||Dae(e))}ut.isAnyArrayBuffer=bRe;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ut,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var eA=z((GJe,Nae)=>{Nae.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var oA=z(ft=>{var Iae=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},xRe=/%[sdj%]/g;ft.format=function(e){if(!ab(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(ru(arguments[t]));return r.join(" ")}for(var t=1,a=arguments,n=a.length,i=String(e).replace(xRe,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])tb(o)||!gv(o)?i+=" "+o:i+=" "+ru(o);return i};ft.deprecate=function(e,r){if(typeof process!="undefined"&&process.noDeprecation===!0)return e;if(typeof process=="undefined")return function(){return ft.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 J3={},Bae=/^$/;K3="false",K3=K3.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Bae=new RegExp("^"+K3+"$","i");var K3;ft.debuglog=function(e){if(e=e.toUpperCase(),!J3[e])if(Bae.test(e)){var r=process.pid;J3[e]=function(){var t=ft.format.apply(ft,arguments);console.error("%s %d: %s",e,r,t)}}else J3[e]=function(){};return J3[e]};function ru(e,r){var t={seen:[],stylize:wRe};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),nA(r)?t.showHidden=r:r&&ft._extend(t,r),Of(t.showHidden)&&(t.showHidden=!1),Of(t.depth)&&(t.depth=2),Of(t.colors)&&(t.colors=!1),Of(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=_Re),eb(t,e,t.depth)}ft.inspect=ru;ru.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]};ru.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function _Re(e,r){var t=ru.styles[r];return t?"\x1B["+ru.colors[t][0]+"m"+e+"\x1B["+ru.colors[t][1]+"m":e}function wRe(e,r){return e}function TRe(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function eb(e,r,t){if(e.customInspect&&r&&Q3(r.inspect)&&r.inspect!==ft.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return ab(a)||(a=eb(e,a,t)),a}var n=ARe(e,r);if(n)return n;var i=Object.keys(r),o=TRe(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),x2(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return rA(r);if(i.length===0){if(Q3(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(b2(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(rb(r))return e.stylize(Date.prototype.toString.call(r),"date");if(x2(r))return rA(r)}var s="",u=!1,f=["{","}"];if(Oae(r)&&(u=!0,f=["[","]"]),Q3(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(b2(r)&&(s=" "+RegExp.prototype.toString.call(r)),rb(r)&&(s=" "+Date.prototype.toUTCString.call(r)),x2(r)&&(s=" "+rA(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return b2(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=MRe(e,r,t,o,i):v=i.map(function(d){return aA(e,r,t,o,d,u)}),e.seen.pop(),kRe(v,s,f)}function ARe(e,r){if(Of(r))return e.stylize("undefined","undefined");if(ab(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Hae(r))return e.stylize(""+r,"number");if(nA(r))return e.stylize(""+r,"boolean");if(tb(r))return e.stylize("null","null")}function rA(e){return"["+Error.prototype.toString.call(e)+"]"}function MRe(e,r,t,a,n){for(var i=[],o=0,l=r.length;o<l;++o)Uae(r,String(o))?i.push(aA(e,r,t,a,String(o),!0)):i.push("");return n.forEach(function(s){s.match(/^\d+$/)||i.push(aA(e,r,t,a,s,!0))}),i}function aA(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")),Uae(a,n)||(o="["+n+"]"),l||(e.seen.indexOf(s.value)<0?(tb(t)?l=eb(e,s.value,null):l=eb(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")),Of(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 kRe(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]}ft.types=QT();function Oae(e){return Array.isArray(e)}ft.isArray=Oae;function nA(e){return typeof e=="boolean"}ft.isBoolean=nA;function tb(e){return e===null}ft.isNull=tb;function SRe(e){return e==null}ft.isNullOrUndefined=SRe;function Hae(e){return typeof e=="number"}ft.isNumber=Hae;function ab(e){return typeof e=="string"}ft.isString=ab;function qRe(e){return typeof e=="symbol"}ft.isSymbol=qRe;function Of(e){return e===void 0}ft.isUndefined=Of;function b2(e){return gv(e)&&iA(e)==="[object RegExp]"}ft.isRegExp=b2;ft.types.isRegExp=b2;function gv(e){return typeof e=="object"&&e!==null}ft.isObject=gv;function rb(e){return gv(e)&&iA(e)==="[object Date]"}ft.isDate=rb;ft.types.isDate=rb;function x2(e){return gv(e)&&(iA(e)==="[object Error]"||e instanceof Error)}ft.isError=x2;ft.types.isNativeError=x2;function Q3(e){return typeof e=="function"}ft.isFunction=Q3;function LRe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ft.isPrimitive=LRe;ft.isBuffer=eA();function iA(e){return Object.prototype.toString.call(e)}function tA(e){return e<10?"0"+e.toString(10):e.toString(10)}var CRe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function DRe(){var e=new Date,r=[tA(e.getHours()),tA(e.getMinutes()),tA(e.getSeconds())].join(":");return[e.getDate(),CRe[e.getMonth()],r].join(" ")}ft.log=function(){console.log("%s - %s",DRe(),ft.format.apply(ft,arguments))};ft.inherits=rs();ft._extend=function(e,r){if(!r||!gv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function Uae(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Bf=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ft.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(Bf&&r[Bf]){var t=r[Bf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Bf,{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)),Bf&&Object.defineProperty(t,Bf,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Iae(r))};ft.promisify.custom=Bf;function ERe(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return r(e)}function PRe(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(ERe.bind(null,l,o))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,Iae(e)),r}ft.callbackify=PRe});var Xae=z((VJe,Wae)=>{"use strict";function Gae(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 Yae(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Gae(Object(t),!0).forEach(function(a){RRe(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Gae(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function RRe(e,r,t){return r=jae(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function FRe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Vae(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,jae(a.key),a)}}function zRe(e,r,t){return r&&Vae(e.prototype,r),t&&Vae(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jae(e){var r=NRe(e,"string");return typeof r=="symbol"?r:String(r)}function NRe(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 IRe=sv(),nb=IRe.Buffer,BRe=oA(),lA=BRe.inspect,ORe=lA&&lA.custom||"inspect";function HRe(e,r,t){nb.prototype.copy.call(e,r,t)}Wae.exports=(function(){function e(){FRe(this,e),this.head=null,this.tail=null,this.length=0}return zRe(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 nb.alloc(0);for(var a=nb.allocUnsafe(t>>>0),n=this.head,i=0;n;)HRe(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=nb.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:ORe,value:function(t,a){return lA(this,Yae(Yae({},a),{},{depth:0,customInspect:!1}))}}]),e})()});var uA=z((jJe,$ae)=>{"use strict";function URe(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(sA,this,e)):process.nextTick(sA,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(ib,t):(t._writableState.errorEmitted=!0,process.nextTick(Zae,t,i)):process.nextTick(Zae,t,i):r?(process.nextTick(ib,t),r(i)):process.nextTick(ib,t)}),this)}function Zae(e,r){sA(e,r),ib(e)}function ib(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function GRe(){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 sA(e,r){e.emit("error",r)}function YRe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}$ae.exports={destroy:URe,undestroy:GRe,errorOrDestroy:YRe}});var Hf=z((WJe,Qae)=>{"use strict";function VRe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var Kae={};function fo(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=(function(i){VRe(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,Kae[e]=n}function Jae(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 jRe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function WRe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function XRe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}fo("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);fo("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&jRe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(WRe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(Jae(r,"type"));else{var i=XRe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(Jae(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);fo("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");fo("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});fo("ERR_STREAM_PREMATURE_CLOSE","Premature close");fo("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});fo("ERR_MULTIPLE_CALLBACK","Callback called multiple times");fo("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");fo("ERR_STREAM_WRITE_AFTER_END","write after end");fo("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);fo("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);fo("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Qae.exports.codes=Kae});var fA=z((XJe,ene)=>{"use strict";var ZRe=Hf().codes.ERR_INVALID_OPT_VALUE;function $Re(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function JRe(e,r,t,a){var n=$Re(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new ZRe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}ene.exports={getHighWaterMark:JRe}});var tne=z((ZJe,rne)=>{rne.exports=KRe;function KRe(e,r){if(cA("noDeprecation"))return e;var t=!1;function a(){if(!t){if(cA("throwDeprecation"))throw new Error(r);cA("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function cA(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 dA=z(($Je,sne)=>{"use strict";sne.exports=Ta;function nne(e){var r=this;this.next=null,this.entry=null,this.finish=function(){MFe(r,e)}}var bv;Ta.WritableState=w2;var QRe={deprecate:tne()},ine=mT(),lb=sv().Buffer,eFe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function rFe(e){return lb.from(e)}function tFe(e){return lb.isBuffer(e)||e instanceof eFe}var hA=uA(),aFe=fA(),nFe=aFe.getHighWaterMark,tu=Hf().codes,iFe=tu.ERR_INVALID_ARG_TYPE,oFe=tu.ERR_METHOD_NOT_IMPLEMENTED,lFe=tu.ERR_MULTIPLE_CALLBACK,sFe=tu.ERR_STREAM_CANNOT_PIPE,uFe=tu.ERR_STREAM_DESTROYED,fFe=tu.ERR_STREAM_NULL_VALUES,cFe=tu.ERR_STREAM_WRITE_AFTER_END,vFe=tu.ERR_UNKNOWN_ENCODING,xv=hA.errorOrDestroy;rs()(Ta,ine);function hFe(){}function w2(e,r,t){bv=bv||Uf(),e=e||{},typeof t!="boolean"&&(t=r instanceof bv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=nFe(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){xFe(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 nne(this)}w2.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(w2.prototype,"buffer",{get:QRe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var ob;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ob=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ta,Symbol.hasInstance,{value:function(r){return ob.call(this,r)?!0:this!==Ta?!1:r&&r._writableState instanceof w2}})):ob=function(r){return r instanceof this};function Ta(e){bv=bv||Uf();var r=this instanceof bv;if(!r&&!ob.call(Ta,this))return new Ta(e);this._writableState=new w2(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)),ine.call(this)}Ta.prototype.pipe=function(){xv(this,new sFe)};function dFe(e,r){var t=new cFe;xv(e,t),process.nextTick(r,t)}function pFe(e,r,t,a){var n;return t===null?n=new fFe:typeof t!="string"&&!r.objectMode&&(n=new iFe("chunk",["string","Buffer"],t)),n?(xv(e,n),process.nextTick(a,n),!1):!0}Ta.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&tFe(e);return i&&!lb.isBuffer(e)&&(e=rFe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=hFe),a.ending?dFe(this,t):(i||pFe(this,a,e,t))&&(a.pendingcb++,n=yFe(this,a,i,e,r,t)),n};Ta.prototype.cork=function(){this._writableState.corked++};Ta.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&one(this,e))};Ta.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 vFe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(Ta.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function mFe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=lb.from(r,t)),r}Object.defineProperty(Ta.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function yFe(e,r,t,a,n,i){if(!t){var o=mFe(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 vA(e,r,!1,l,a,n,i);return s}function vA(e,r,t,a,n,i,o){r.writelen=a,r.writecb=o,r.writing=!0,r.sync=!0,r.destroyed?r.onwrite(new uFe("write")):t?e._writev(n,r.onwrite):e._write(n,i,r.onwrite),r.sync=!1}function gFe(e,r,t,a,n){--r.pendingcb,t?(process.nextTick(n,a),process.nextTick(_2,e,r),e._writableState.errorEmitted=!0,xv(e,a)):(n(a),e._writableState.errorEmitted=!0,xv(e,a),_2(e,r))}function bFe(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function xFe(e,r){var t=e._writableState,a=t.sync,n=t.writecb;if(typeof n!="function")throw new lFe;if(bFe(t),r)gFe(e,t,a,r,n);else{var i=lne(t)||e.destroyed;!i&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&one(e,t),a?process.nextTick(ane,e,t,i,n):ane(e,t,i,n)}}function ane(e,r,t,a){t||_Fe(e,r),r.pendingcb--,a(),_2(e,r)}function _Fe(e,r){r.length===0&&r.needDrain&&(r.needDrain=!1,e.emit("drain"))}function one(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,vA(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 nne(r),r.bufferedRequestCount=0}else{for(;t;){var s=t.chunk,u=t.encoding,f=t.callback,c=r.objectMode?1:s.length;if(vA(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}Ta.prototype._write=function(e,r,t){t(new oFe("_write()"))};Ta.prototype._writev=null;Ta.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||AFe(this,a,t),this};Object.defineProperty(Ta.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function lne(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function wFe(e,r){e._final(function(t){r.pendingcb--,t&&xv(e,t),r.prefinished=!0,e.emit("prefinish"),_2(e,r)})}function TFe(e,r){!r.prefinished&&!r.finalCalled&&(typeof e._final=="function"&&!r.destroyed?(r.pendingcb++,r.finalCalled=!0,process.nextTick(wFe,e,r)):(r.prefinished=!0,e.emit("prefinish")))}function _2(e,r){var t=lne(r);if(t&&(TFe(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 AFe(e,r,t){r.ending=!0,_2(e,r),t&&(r.finished?process.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1}function MFe(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(Ta.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(r){this._writableState&&(this._writableState.destroyed=r)}});Ta.prototype.destroy=hA.destroy;Ta.prototype._undestroy=hA.undestroy;Ta.prototype._destroy=function(e,r){r(e)}});var Uf=z((JJe,fne)=>{"use strict";var kFe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};fne.exports=Ml;var une=yA(),mA=dA();rs()(Ml,une);for(pA=kFe(mA.prototype),sb=0;sb<pA.length;sb++)ub=pA[sb],Ml.prototype[ub]||(Ml.prototype[ub]=mA.prototype[ub]);var pA,ub,sb;function Ml(e){if(!(this instanceof Ml))return new Ml(e);une.call(this,e),mA.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",SFe)))}Object.defineProperty(Ml.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ml.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ml.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function SFe(){this._writableState.ended||process.nextTick(qFe,this)}function qFe(e){e.end()}Object.defineProperty(Ml.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 hne=z((gA,vne)=>{var fb=sv(),kl=fb.Buffer;function cne(e,r){for(var t in e)r[t]=e[t]}kl.from&&kl.alloc&&kl.allocUnsafe&&kl.allocUnsafeSlow?vne.exports=fb:(cne(fb,gA),gA.Buffer=Gf);function Gf(e,r,t){return kl(e,r,t)}Gf.prototype=Object.create(kl.prototype);cne(kl,Gf);Gf.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return kl(e,r,t)};Gf.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=kl(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};Gf.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return kl(e)};Gf.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return fb.SlowBuffer(e)}});var _A=z(pne=>{"use strict";var xA=hne().Buffer,dne=xA.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 LFe(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 CFe(e){var r=LFe(e);if(typeof r!="string"&&(xA.isEncoding===dne||!dne(e)))throw new Error("Unknown encoding: "+e);return r||e}pne.StringDecoder=T2;function T2(e){this.encoding=CFe(e);var r;switch(this.encoding){case"utf16le":this.text=zFe,this.end=NFe,r=4;break;case"utf8":this.fillLast=PFe,r=4;break;case"base64":this.text=IFe,this.end=BFe,r=3;break;default:this.write=OFe,this.end=HFe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=xA.allocUnsafe(r)}T2.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||""};T2.prototype.end=FFe;T2.prototype.text=RFe;T2.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 bA(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function DFe(e,r,t){var a=r.length-1;if(a<t)return 0;var n=bA(r[a]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--a<t||n===-2?0:(n=bA(r[a]),n>=0?(n>0&&(e.lastNeed=n-2),n):--a<t||n===-2?0:(n=bA(r[a]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function EFe(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 PFe(e){var r=this.lastTotal-this.lastNeed,t=EFe(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 RFe(e,r){var t=DFe(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 FFe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function zFe(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 NFe(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 IFe(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 BFe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function OFe(e){return e.toString(this.encoding)}function HFe(e){return e&&e.length?this.write(e):""}});var cb=z((QJe,gne)=>{"use strict";var mne=Hf().codes.ERR_STREAM_PREMATURE_CLOSE;function UFe(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 GFe(){}function YFe(e){return e.setHeader&&typeof e.abort=="function"}function yne(e,r,t){if(typeof r=="function")return yne(e,null,r);r||(r={}),t=UFe(t||GFe);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 mne),t.call(e,p);if(n&&!o)return(!e._writableState||!e._writableState.ended)&&(p=new mne),t.call(e,p)},v=function(){e.req.on("finish",l)};return YFe(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)}}gne.exports=yne});var xne=z((eKe,bne)=>{"use strict";var vb;function au(e,r,t){return r=VFe(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function VFe(e){var r=jFe(e,"string");return typeof r=="symbol"?r:String(r)}function jFe(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 WFe=cb(),nu=Symbol("lastResolve"),Yf=Symbol("lastReject"),A2=Symbol("error"),hb=Symbol("ended"),Vf=Symbol("lastPromise"),wA=Symbol("handlePromise"),jf=Symbol("stream");function iu(e,r){return{value:e,done:r}}function XFe(e){var r=e[nu];if(r!==null){var t=e[jf].read();t!==null&&(e[Vf]=null,e[nu]=null,e[Yf]=null,r(iu(t,!1)))}}function ZFe(e){process.nextTick(XFe,e)}function $Fe(e,r){return function(t,a){e.then(function(){if(r[hb]){t(iu(void 0,!0));return}r[wA](t,a)},a)}}var JFe=Object.getPrototypeOf(function(){}),KFe=Object.setPrototypeOf((vb={get stream(){return this[jf]},next:function(){var r=this,t=this[A2];if(t!==null)return Promise.reject(t);if(this[hb])return Promise.resolve(iu(void 0,!0));if(this[jf].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[A2]?l(r[A2]):o(iu(void 0,!0))})});var a=this[Vf],n;if(a)n=new Promise($Fe(a,this));else{var i=this[jf].read();if(i!==null)return Promise.resolve(iu(i,!1));n=new Promise(this[wA])}return this[Vf]=n,n}},au(vb,Symbol.asyncIterator,function(){return this}),au(vb,"return",function(){var r=this;return new Promise(function(t,a){r[jf].destroy(null,function(n){if(n){a(n);return}t(iu(void 0,!0))})})}),vb),JFe),QFe=function(r){var t,a=Object.create(KFe,(t={},au(t,jf,{value:r,writable:!0}),au(t,nu,{value:null,writable:!0}),au(t,Yf,{value:null,writable:!0}),au(t,A2,{value:null,writable:!0}),au(t,hb,{value:r._readableState.endEmitted,writable:!0}),au(t,wA,{value:function(i,o){var l=a[jf].read();l?(a[Vf]=null,a[nu]=null,a[Yf]=null,i(iu(l,!1))):(a[nu]=i,a[Yf]=o)},writable:!0}),t));return a[Vf]=null,WFe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[Yf];i!==null&&(a[Vf]=null,a[nu]=null,a[Yf]=null,i(n)),a[A2]=n;return}var o=a[nu];o!==null&&(a[Vf]=null,a[nu]=null,a[Yf]=null,o(iu(void 0,!0))),a[hb]=!0}),r.on("readable",ZFe.bind(null,a)),a};bne.exports=QFe});var wne=z((rKe,_ne)=>{_ne.exports=function(){throw new Error("Readable.from is not available in the browser")}});var yA=z((aKe,Ene)=>{"use strict";Ene.exports=Tt;var _v;Tt.ReadableState=kne;var tKe=Bu().EventEmitter,Mne=function(r,t){return r.listeners(t).length},k2=mT(),db=sv().Buffer,eze=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function rze(e){return db.from(e)}function tze(e){return db.isBuffer(e)||e instanceof eze}var TA=oA(),at;TA&&TA.debuglog?at=TA.debuglog("stream"):at=function(){};var aze=Xae(),CA=uA(),nze=fA(),ize=nze.getHighWaterMark,pb=Hf().codes,oze=pb.ERR_INVALID_ARG_TYPE,lze=pb.ERR_STREAM_PUSH_AFTER_EOF,sze=pb.ERR_METHOD_NOT_IMPLEMENTED,uze=pb.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,wv,AA,MA;rs()(Tt,k2);var M2=CA.errorOrDestroy,kA=["error","close","destroy","pause","resume"];function fze(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 kne(e,r,t){_v=_v||Uf(),e=e||{},typeof t!="boolean"&&(t=r instanceof _v),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=ize(this,e,"readableHighWaterMark",t),this.buffer=new aze,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&&(wv||(wv=_A().StringDecoder),this.decoder=new wv(e.encoding),this.encoding=e.encoding)}function Tt(e){if(_v=_v||Uf(),!(this instanceof Tt))return new Tt(e);var r=this instanceof _v;this._readableState=new kne(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),k2.call(this)}Object.defineProperty(Tt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});Tt.prototype.destroy=CA.destroy;Tt.prototype._undestroy=CA.undestroy;Tt.prototype._destroy=function(e,r){r(e)};Tt.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=db.from(e,r),r=""),a=!0),Sne(this,e,r,!1,a)};Tt.prototype.unshift=function(e){return Sne(this,e,null,!0,!1)};function Sne(e,r,t,a,n){at("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,hze(e,i);else{var o;if(n||(o=cze(i,r)),o)M2(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==db.prototype&&(r=rze(r)),a)i.endEmitted?M2(e,new uze):SA(e,i,r,!0);else if(i.ended)M2(e,new lze);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?SA(e,i,r,!1):LA(e,i)):SA(e,i,r,!1)}else a||(i.reading=!1,LA(e,i))}return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function SA(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&&mb(e)),LA(e,r)}function cze(e,r){var t;return!tze(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(t=new oze("chunk",["string","Buffer","Uint8Array"],r)),t}Tt.prototype.isPaused=function(){return this._readableState.flowing===!1};Tt.prototype.setEncoding=function(e){wv||(wv=_A().StringDecoder);var r=new wv(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 Tne=1073741824;function vze(e){return e>=Tne?e=Tne:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Ane(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=vze(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}Tt.prototype.read=function(e){at("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 at("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?qA(this):mb(this),null;if(e=Ane(e,r),e===0&&r.ended)return r.length===0&&qA(this),null;var a=r.needReadable;at("need readable",a),(r.length===0||r.length-e<r.highWaterMark)&&(a=!0,at("length less than watermark",a)),r.ended||r.reading?(a=!1,at("reading or ended",a)):a&&(at("do read"),r.reading=!0,r.sync=!0,r.length===0&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=Ane(t,r)));var n;return e>0?n=Cne(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&&qA(this)),n!==null&&this.emit("data",n),n};function hze(e,r){if(at("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?mb(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,qne(e)))}}function mb(e){var r=e._readableState;at("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(at("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(qne,e))}function qne(e){var r=e._readableState;at("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,DA(e)}function LA(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(dze,e,r))}function dze(e,r){for(;!r.reading&&!r.ended&&(r.length<r.highWaterMark||r.flowing&&r.length===0);){var t=r.length;if(at("maybeReadMore read 0"),e.read(0),t===r.length)break}r.readingMore=!1}Tt.prototype._read=function(e){M2(this,new sze("_read()"))};Tt.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,at("pipe count=%d opts=%j",a.pipesCount,r);var n=(!r||r.end!==!1)&&e!==process.stdout&&e!==process.stderr,i=n?l:y;a.endEmitted?process.nextTick(i):t.once("end",i),e.on("unpipe",o);function o(m,b){at("onunpipe"),m===t&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function l(){at("onend"),e.end()}var s=pze(t);e.on("drain",s);var u=!1;function f(){at("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",y),t.removeListener("data",c),u=!0,a.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&s()}t.on("data",c);function c(m){at("ondata");var b=e.write(m);at("dest.write",b),b===!1&&((a.pipesCount===1&&a.pipes===e||a.pipesCount>1&&Dne(a.pipes,e)!==-1)&&!u&&(at("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(m){at("onerror",m),y(),e.removeListener("error",v),Mne(e,"error")===0&&M2(e,m)}fze(e,"error",v);function d(){e.removeListener("finish",p),y()}e.once("close",d);function p(){at("onfinish"),e.removeListener("close",d),y()}e.once("finish",p);function y(){at("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(at("pipe resume"),t.resume()),e};function pze(e){return function(){var t=e._readableState;at("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Mne(e,"data")&&(t.flowing=!0,DA(e))}}Tt.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=Dne(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)};Tt.prototype.on=function(e,r){var t=k2.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,at("on readable",a.length,a.reading),a.length?mb(this):a.reading||process.nextTick(mze,this)),t};Tt.prototype.addListener=Tt.prototype.on;Tt.prototype.removeListener=function(e,r){var t=k2.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(Lne,this),t};Tt.prototype.removeAllListeners=function(e){var r=k2.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Lne,this),r};function Lne(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 mze(e){at("readable nexttick read 0"),e.read(0)}Tt.prototype.resume=function(){var e=this._readableState;return e.flowing||(at("resume"),e.flowing=!e.readableListening,yze(this,e)),e.paused=!1,this};function yze(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(gze,e,r))}function gze(e,r){at("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),DA(e),r.flowing&&!r.reading&&e.read(0)}Tt.prototype.pause=function(){return at("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(at("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function DA(e){var r=e._readableState;for(at("flow",r.flowing);r.flowing&&e.read()!==null;);}Tt.prototype.wrap=function(e){var r=this,t=this._readableState,a=!1;e.on("end",function(){if(at("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(at("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<kA.length;i++)e.on(kA[i],this.emit.bind(this,kA[i]));return this._read=function(o){at("wrapped _read",o),a&&(a=!1,e.resume())},this};typeof Symbol=="function"&&(Tt.prototype[Symbol.asyncIterator]=function(){return AA===void 0&&(AA=xne()),AA(this)});Object.defineProperty(Tt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Tt.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Tt.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(r){this._readableState&&(this._readableState.flowing=r)}});Tt._fromList=Cne;Object.defineProperty(Tt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Cne(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 qA(e){var r=e._readableState;at("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(bze,r,e))}function bze(e,r){if(at("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"&&(Tt.from=function(e,r){return MA===void 0&&(MA=wne()),MA(Tt,e,r)});function Dne(e,r){for(var t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1}});var EA=z((nKe,Rne)=>{"use strict";Rne.exports=as;var yb=Hf().codes,xze=yb.ERR_METHOD_NOT_IMPLEMENTED,_ze=yb.ERR_MULTIPLE_CALLBACK,wze=yb.ERR_TRANSFORM_ALREADY_TRANSFORMING,Tze=yb.ERR_TRANSFORM_WITH_LENGTH_0,gb=Uf();rs()(as,gb);function Aze(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new _ze);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 as(e){if(!(this instanceof as))return new as(e);gb.call(this,e),this._transformState={afterTransform:Aze.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",Mze)}function Mze(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(r,t){Pne(e,r,t)}):Pne(this,null,null)}as.prototype.push=function(e,r){return this._transformState.needTransform=!1,gb.prototype.push.call(this,e,r)};as.prototype._transform=function(e,r,t){t(new xze("_transform()"))};as.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)}};as.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};as.prototype._destroy=function(e,r){gb.prototype._destroy.call(this,e,function(t){r(t)})};function Pne(e,r,t){if(r)return e.emit("error",r);if(t!=null&&e.push(t),e._writableState.length)throw new Tze;if(e._transformState.transforming)throw new wze;return e.push(null)}});var Nne=z((iKe,zne)=>{"use strict";zne.exports=S2;var Fne=EA();rs()(S2,Fne);function S2(e){if(!(this instanceof S2))return new S2(e);Fne.call(this,e)}S2.prototype._transform=function(e,r,t){t(null,e)}});var Une=z((oKe,Hne)=>{"use strict";var PA;function kze(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var One=Hf().codes,Sze=One.ERR_MISSING_ARGS,qze=One.ERR_STREAM_DESTROYED;function Ine(e){if(e)throw e}function Lze(e){return e.setHeader&&typeof e.abort=="function"}function Cze(e,r,t,a){a=kze(a);var n=!1;e.on("close",function(){n=!0}),PA===void 0&&(PA=cb()),PA(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,Lze(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new qze("pipe"))}}}function Bne(e){e()}function Dze(e,r){return e.pipe(r)}function Eze(e){return!e.length||typeof e[e.length-1]!="function"?Ine:e.pop()}function Pze(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=Eze(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new Sze("streams");var n,i=r.map(function(o,l){var s=l<r.length-1,u=l>0;return Cze(o,s,u,function(f){n||(n=f),f&&i.forEach(Bne),!s&&(i.forEach(Bne),a(n))})});return r.reduce(Dze)}Hne.exports=Pze});var Yne=z((lKe,Gne)=>{Gne.exports=co;var RA=Bu().EventEmitter,Rze=rs();Rze(co,RA);co.Readable=yA();co.Writable=dA();co.Duplex=Uf();co.Transform=EA();co.PassThrough=Nne();co.finished=cb();co.pipeline=Une();co.Stream=co;function co(){RA.call(this)}co.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(),RA.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 Av=z(ct=>{var Vne=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},Fze=/%[sdj%]/g;ct.format=function(e){if(!Mb(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(ou(arguments[t]));return r.join(" ")}for(var t=1,a=arguments,n=a.length,i=String(e).replace(Fze,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])Ab(o)||!Tv(o)?i+=" "+o:i+=" "+ou(o);return i};ct.deprecate=function(e,r){if(typeof process!="undefined"&&process.noDeprecation===!0)return e;if(typeof process=="undefined")return function(){return ct.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 bb={},jne=/^$/;xb="false",xb=xb.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),jne=new RegExp("^"+xb+"$","i");var xb;ct.debuglog=function(e){if(e=e.toUpperCase(),!bb[e])if(jne.test(e)){var r=process.pid;bb[e]=function(){var t=ct.format.apply(ct,arguments);console.error("%s %d: %s",e,r,t)}}else bb[e]=function(){};return bb[e]};function ou(e,r){var t={seen:[],stylize:Nze};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),IA(r)?t.showHidden=r:r&&ct._extend(t,r),Xf(t.showHidden)&&(t.showHidden=!1),Xf(t.depth)&&(t.depth=2),Xf(t.colors)&&(t.colors=!1),Xf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=zze),wb(t,e,t.depth)}ct.inspect=ou;ou.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]};ou.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function zze(e,r){var t=ou.styles[r];return t?"\x1B["+ou.colors[t][0]+"m"+e+"\x1B["+ou.colors[t][1]+"m":e}function Nze(e,r){return e}function Ize(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function wb(e,r,t){if(e.customInspect&&r&&_b(r.inspect)&&r.inspect!==ct.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Mb(a)||(a=wb(e,a,t)),a}var n=Bze(e,r);if(n)return n;var i=Object.keys(r),o=Ize(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),L2(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return FA(r);if(i.length===0){if(_b(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(q2(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Tb(r))return e.stylize(Date.prototype.toString.call(r),"date");if(L2(r))return FA(r)}var s="",u=!1,f=["{","}"];if(Wne(r)&&(u=!0,f=["[","]"]),_b(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(q2(r)&&(s=" "+RegExp.prototype.toString.call(r)),Tb(r)&&(s=" "+Date.prototype.toUTCString.call(r)),L2(r)&&(s=" "+FA(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return q2(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=Oze(e,r,t,o,i):v=i.map(function(d){return NA(e,r,t,o,d,u)}),e.seen.pop(),Hze(v,s,f)}function Bze(e,r){if(Xf(r))return e.stylize("undefined","undefined");if(Mb(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Xne(r))return e.stylize(""+r,"number");if(IA(r))return e.stylize(""+r,"boolean");if(Ab(r))return e.stylize("null","null")}function FA(e){return"["+Error.prototype.toString.call(e)+"]"}function Oze(e,r,t,a,n){for(var i=[],o=0,l=r.length;o<l;++o)Zne(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")),Zne(a,n)||(o="["+n+"]"),l||(e.seen.indexOf(s.value)<0?(Ab(t)?l=wb(e,s.value,null):l=wb(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")),Xf(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 Hze(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]}ct.types=QT();function Wne(e){return Array.isArray(e)}ct.isArray=Wne;function IA(e){return typeof e=="boolean"}ct.isBoolean=IA;function Ab(e){return e===null}ct.isNull=Ab;function Uze(e){return e==null}ct.isNullOrUndefined=Uze;function Xne(e){return typeof e=="number"}ct.isNumber=Xne;function Mb(e){return typeof e=="string"}ct.isString=Mb;function Gze(e){return typeof e=="symbol"}ct.isSymbol=Gze;function Xf(e){return e===void 0}ct.isUndefined=Xf;function q2(e){return Tv(e)&&BA(e)==="[object RegExp]"}ct.isRegExp=q2;ct.types.isRegExp=q2;function Tv(e){return typeof e=="object"&&e!==null}ct.isObject=Tv;function Tb(e){return Tv(e)&&BA(e)==="[object Date]"}ct.isDate=Tb;ct.types.isDate=Tb;function L2(e){return Tv(e)&&(BA(e)==="[object Error]"||e instanceof Error)}ct.isError=L2;ct.types.isNativeError=L2;function _b(e){return typeof e=="function"}ct.isFunction=_b;function Yze(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ct.isPrimitive=Yze;ct.isBuffer=eA();function BA(e){return Object.prototype.toString.call(e)}function zA(e){return e<10?"0"+e.toString(10):e.toString(10)}var Vze=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function jze(){var e=new Date,r=[zA(e.getHours()),zA(e.getMinutes()),zA(e.getSeconds())].join(":");return[e.getDate(),Vze[e.getMonth()],r].join(" ")}ct.log=function(){console.log("%s - %s",jze(),ct.format.apply(ct,arguments))};ct.inherits=rs();ct._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 Zne(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Wf=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ct.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(Wf&&r[Wf]){var t=r[Wf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Wf,{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)),Wf&&Object.defineProperty(t,Wf,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Vne(r))};ct.promisify.custom=Wf;function Wze(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return r(e)}function Xze(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(Wze.bind(null,l,o))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,Vne(e)),r}ct.callbackify=Xze});var UA=z((uKe,Qne)=>{"use strict";function lu(e){"@babel/helpers - typeof";return lu=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},lu(e)}function $ne(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,$ze(a.key),a)}}function Zze(e,r,t){return r&&$ne(e.prototype,r),t&&$ne(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ze(e){var r=Jze(e,"string");return lu(r)==="symbol"?r:String(r)}function Jze(e,r){if(lu(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(lu(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Kze(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Qze(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&&HA(e,r)}function HA(e,r){return HA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},HA(e,r)}function eNe(e){var r=aNe();return function(){var a=kb(e),n;if(r){var i=kb(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return rNe(this,n)}}function rNe(e,r){if(r&&(lu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tNe(e)}function tNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aNe(){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 kb(e){return kb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kb(e)}var Kne={},Mv,OA;function C2(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=(function(i){Qze(l,i);var o=eNe(l);function l(s,u,f){var c;return Kze(this,l),c=o.call(this,a(s,u,f)),c.code=e,c}return Zze(l)})(t);Kne[e]=n}function Jne(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 nNe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function iNe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function oNe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}C2("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);C2("ERR_INVALID_ARG_TYPE",function(e,r,t){Mv===void 0&&(Mv=Sb()),Mv(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&nNe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(iNe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(Jne(r,"type"));else{var i=oNe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(Jne(r,"type"))}return n+=". Received type ".concat(lu(t)),n},TypeError);C2("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";OA===void 0&&(OA=Av());var a=OA.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);C2("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(lu(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);C2("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];Mv===void 0&&(Mv=Sb()),Mv(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);Qne.exports.codes=Kne});var uie=z((fKe,sie)=>{"use strict";function eie(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 rie(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?eie(Object(t),!0).forEach(function(a){lNe(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eie(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function lNe(e,r,t){return r=iie(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function sNe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function tie(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,iie(a.key),a)}}function uNe(e,r,t){return r&&tie(e.prototype,r),t&&tie(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iie(e){var r=fNe(e,"string");return ii(r)==="symbol"?r:String(r)}function fNe(e,r){if(ii(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(ii(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function cNe(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&&R2(e,r)}function vNe(e){var r=lie();return function(){var a=F2(e),n;if(r){var i=F2(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return oie(this,n)}}function oie(e,r){if(r&&(ii(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GA(e)}function GA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YA(e){var r=typeof Map=="function"?new Map:void 0;return YA=function(a){if(a===null||!hNe(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 qb(a,arguments,F2(this).constructor)}return n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),R2(n,a)},YA(e)}function qb(e,r,t){return lie()?qb=Reflect.construct.bind():qb=function(n,i,o){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(n,l),u=new s;return o&&R2(u,o.prototype),u},qb.apply(null,arguments)}function lie(){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 hNe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function R2(e,r){return R2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},R2(e,r)}function F2(e){return F2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},F2(e)}function ii(e){"@babel/helpers - typeof";return ii=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},ii(e)}var dNe=Av(),VA=dNe.inspect,pNe=UA(),mNe=pNe.codes.ERR_INVALID_ARG_TYPE;function aie(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function yNe(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 Yo="",D2="",E2="",dn="",Zf={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:"},gNe=10;function nie(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 P2(e){return VA(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function bNe(e,r,t){var a="",n="",i=0,o="",l=!1,s=P2(e),u=s.split(`
`),f=P2(r).split(`
`),c=0,v="";if(t==="strictEqual"&&ii(e)==="object"&&ii(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<=gNe){if((ii(e)!=="object"||e===null)&&(ii(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(Zf[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(yNe(" ",c),"^"),c=0)}}}for(var y=u[u.length-1],m=f[f.length-1];y===m&&(c++<2?o=`
  `.concat(y).concat(o):a=y,u.pop(),f.pop(),!(u.length===0||f.length===0));)y=u[u.length-1],m=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(Yo,"...").concat(dn);T.length>27;)T.pop();return"".concat(Zf.notIdentical,`

`).concat(T.join(`
`),`
`)}c>3&&(o=`
`.concat(Yo,"...").concat(dn).concat(o),l=!0),a!==""&&(o=`
  `.concat(a).concat(o),a="");var w=0,x=Zf[t]+`
`.concat(D2,"+ actual").concat(dn," ").concat(E2,"- expected").concat(dn),_=" ".concat(Yo,"...").concat(dn," 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(Yo,"...").concat(dn),l=!0):k>3&&(n+=`
  `.concat(f[c-2]),w++),n+=`
  `.concat(f[c-1]),w++),i=c,a+=`
`.concat(E2,"-").concat(dn," ").concat(f[c]),w++;else if(f.length<c+1)k>1&&c>2&&(k>4?(n+=`
`.concat(Yo,"...").concat(dn),l=!0):k>3&&(n+=`
  `.concat(u[c-2]),w++),n+=`
  `.concat(u[c-1]),w++),i=c,n+=`
`.concat(D2,"+").concat(dn," ").concat(u[c]),w++;else{var A=f[c],q=u[c],C=q!==A&&(!aie(q,",")||q.slice(0,-1)!==A);C&&aie(A,",")&&A.slice(0,-1)===q&&(C=!1,q+=","),C?(k>1&&c>2&&(k>4?(n+=`
`.concat(Yo,"...").concat(dn),l=!0):k>3&&(n+=`
  `.concat(u[c-2]),w++),n+=`
  `.concat(u[c-1]),w++),i=c,n+=`
`.concat(D2,"+").concat(dn," ").concat(q),a+=`
`.concat(E2,"-").concat(dn," ").concat(A),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(Yo,"...").concat(dn).concat(a,`
`)+"".concat(Yo,"...").concat(dn)}return"".concat(x).concat(l?_:"",`
`).concat(n).concat(a).concat(o).concat(v)}var xNe=(function(e,r){cNe(a,e);var t=vNe(a);function a(n){var i;if(sNe(this,a),ii(n)!=="object"||n===null)throw new mNe("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?(Yo="\x1B[34m",D2="\x1B[32m",dn="\x1B[39m",E2="\x1B[31m"):(Yo="",D2="",dn="",E2="")),ii(u)==="object"&&u!==null&&ii(f)==="object"&&f!==null&&"stack"in u&&u instanceof Error&&"stack"in f&&f instanceof Error&&(u=nie(u),f=nie(f)),l==="deepStrictEqual"||l==="strictEqual")i=t.call(this,bNe(u,f,l));else if(l==="notDeepStrictEqual"||l==="notStrictEqual"){var v=Zf[l],d=P2(u).split(`
`);if(l==="notStrictEqual"&&ii(u)==="object"&&u!==null&&(v=Zf.notStrictEqualObject),d.length>30)for(d[26]="".concat(Yo,"...").concat(dn);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=P2(u),y="",m=Zf[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(Zf[l],`

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

`).concat(p,`

should equal

`):y=" ".concat(l," ").concat(y)),i=t.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(GA(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(GA(i),s),i.stack,i.name="AssertionError",oie(i)}return uNe(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return VA(this,rie(rie({},o),{},{customInspect:!1,depth:0}))}}]),a})(YA(Error),VA.custom);sie.exports=xNe});var jA=z((cKe,cie)=>{"use strict";var fie=Object.prototype.toString;cie.exports=function(r){var t=fie.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&fie.call(r.callee)==="[object Function]"),a}});var xie=z((vKe,bie)=>{"use strict";var gie;Object.keys||(z2=Object.prototype.hasOwnProperty,WA=Object.prototype.toString,vie=jA(),XA=Object.prototype.propertyIsEnumerable,hie=!XA.call({toString:null},"toString"),die=XA.call(function(){},"prototype"),N2=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Lb=function(e){var r=e.constructor;return r&&r.prototype===e},pie={$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},mie=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!pie["$"+e]&&z2.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Lb(window[e])}catch(r){return!0}}catch(r){return!0}return!1})(),yie=function(e){if(typeof window=="undefined"||!mie)return Lb(e);try{return Lb(e)}catch(r){return!1}},gie=function(r){var t=r!==null&&typeof r=="object",a=WA.call(r)==="[object Function]",n=vie(r),i=t&&WA.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=die&&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(hie)for(var c=yie(r),v=0;v<N2.length;++v)!(c&&N2[v]==="constructor")&&z2.call(r,N2[v])&&o.push(N2[v]);return o});var z2,WA,vie,XA,hie,die,N2,Lb,pie,mie,yie;bie.exports=gie});var ZA=z((hKe,Tie)=>{"use strict";var _Ne=Array.prototype.slice,wNe=jA(),_ie=Object.keys,Cb=_ie?function(r){return _ie(r)}:xie(),wie=Object.keys;Cb.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 wNe(a)?wie(_Ne.call(a)):wie(a)})}else Object.keys=Cb;return Object.keys||Cb};Tie.exports=Cb});var qie=z((dKe,Sie)=>{"use strict";var TNe=ZA(),Mie=k3()(),kie=If(),Db=S3(),ANe=kie("Array.prototype.push"),Aie=kie("Object.prototype.propertyIsEnumerable"),MNe=Mie?Db.getOwnPropertySymbols:null;Sie.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=Db(r);if(arguments.length===1)return a;for(var n=1;n<arguments.length;++n){var i=Db(arguments[n]),o=TNe(i),l=Mie&&(Db.getOwnPropertySymbols||MNe);if(l)for(var s=l(i),u=0;u<s.length;++u){var f=s[u];Aie(i,f)&&ANe(o,f)}for(var c=0;c<o.length;++c){var v=o[c];if(Aie(i,v)){var d=i[v];a[v]=d}}}return a}});var Cie=z((pKe,Lie)=>{"use strict";var $A=qie(),kNe=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},SNe=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};Lie.exports=function(){return!Object.assign||kNe()||SNe()?$A:Object.assign}});var JA=z((mKe,Eie)=>{"use strict";var Die=function(e){return e!==e};Eie.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||Die(r)&&Die(t))}});var Eb=z((yKe,Pie)=>{"use strict";var qNe=JA();Pie.exports=function(){return typeof Object.is=="function"?Object.is:qNe}});var Nie=z((gKe,zie)=>{"use strict";var Rie=z3(),Fie=m2(),LNe=Fie(Rie("String.prototype.indexOf"));zie.exports=function(r,t){var a=Rie(r,!!t);return typeof a=="function"&&LNe(r,".prototype.")>-1?Fie(a):a}});var I2=z((bKe,Hie)=>{"use strict";var CNe=ZA(),DNe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ENe=Object.prototype.toString,PNe=Array.prototype.concat,Iie=YT(),RNe=function(e){return typeof e=="function"&&ENe.call(e)==="[object Function]"},Bie=jT()(),FNe=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!RNe(a)||!a())return}Bie?Iie(e,r,t,!0):Iie(e,r,t)},Oie=function(e,r){var t=arguments.length>2?arguments[2]:{},a=CNe(r);DNe&&(a=PNe.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n<a.length;n+=1)FNe(e,a[n],r[a[n]],t[a[n]])};Oie.supportsDescriptors=!!Bie;Hie.exports=Oie});var Gie=z((xKe,Uie)=>{"use strict";var zNe=Eb(),NNe=I2();Uie.exports=function(){var r=zNe();return NNe(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var Wie=z((_Ke,jie)=>{"use strict";var INe=I2(),BNe=m2(),ONe=JA(),Yie=Eb(),HNe=Gie(),Vie=BNe(Yie(),Object);INe(Vie,{getPolyfill:Yie,implementation:ONe,shim:HNe});jie.exports=Vie});var KA=z((wKe,Xie)=>{"use strict";Xie.exports=function(r){return r!==r}});var QA=z((TKe,Zie)=>{"use strict";var UNe=KA();Zie.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:UNe}});var Jie=z((AKe,$ie)=>{"use strict";var GNe=I2(),YNe=QA();$ie.exports=function(){var r=YNe();return GNe(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var roe=z((MKe,eoe)=>{"use strict";var VNe=m2(),jNe=I2(),WNe=KA(),Kie=QA(),XNe=Jie(),Qie=VNe(Kie(),Number);jNe(Qie,{getPolyfill:Kie,implementation:WNe,shim:XNe});eoe.exports=Qie});var _oe=z((kKe,xoe)=>{"use strict";function toe(e,r){return KNe(e)||JNe(e,r)||$Ne(e,r)||ZNe()}function ZNe(){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 $Ne(e,r){if(e){if(typeof e=="string")return aoe(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 aoe(e,r)}}function aoe(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 JNe(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 KNe(e){if(Array.isArray(e))return e}function vo(e){"@babel/helpers - typeof";return vo=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},vo(e)}var QNe=/a/g.flags!==void 0,Bb=function(r){var t=[];return r.forEach(function(a){return t.push(a)}),t},noe=function(r){var t=[];return r.forEach(function(a,n){return t.push([n,a])}),t},poe=Object.is?Object.is:Wie(),Nb=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},eM=Number.isNaN?Number.isNaN:roe();function tM(e){return e.call.bind(e)}var O2=tM(Object.prototype.hasOwnProperty),Ib=tM(Object.prototype.propertyIsEnumerable),ioe=tM(Object.prototype.toString),Hn=Av().types,eIe=Hn.isAnyArrayBuffer,rIe=Hn.isArrayBufferView,ooe=Hn.isDate,Pb=Hn.isMap,loe=Hn.isRegExp,Rb=Hn.isSet,tIe=Hn.isNativeError,aIe=Hn.isBoxedPrimitive,soe=Hn.isNumberObject,uoe=Hn.isStringObject,foe=Hn.isBooleanObject,coe=Hn.isBigIntObject,nIe=Hn.isSymbolObject,iIe=Hn.isFloat32Array,oIe=Hn.isFloat64Array;function lIe(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 Fb(e){return Object.keys(e).filter(lIe).concat(Nb(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function moe(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 zb=void 0,sIe=!0,uIe=!1,rM=0,aM=1,yoe=2,goe=3;function fIe(e,r){return QNe?e.source===r.source&&e.flags===r.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(r)}function cIe(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 vIe(e,r){return e.byteLength!==r.byteLength?!1:moe(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(r.buffer,r.byteOffset,r.byteLength))===0}function hIe(e,r){return e.byteLength===r.byteLength&&moe(new Uint8Array(e),new Uint8Array(r))===0}function dIe(e,r){return soe(e)?soe(r)&&poe(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(r)):uoe(e)?uoe(r)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(r):foe(e)?foe(r)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(r):coe(e)?coe(r)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(r):nIe(r)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(r)}function ho(e,r,t,a){if(e===r)return e!==0?!0:t?poe(e,r):!0;if(t){if(vo(e)!=="object")return typeof e=="number"&&eM(e)&&eM(r);if(vo(r)!=="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1}else{if(e===null||vo(e)!=="object")return r===null||vo(r)!=="object"?e==r:!1;if(r===null||vo(r)!=="object")return!1}var n=ioe(e),i=ioe(r);if(n!==i)return!1;if(Array.isArray(e)){if(e.length!==r.length)return!1;var o=Fb(e,zb),l=Fb(r,zb);return o.length!==l.length?!1:B2(e,r,t,a,aM,o)}if(n==="[object Object]"&&(!Pb(e)&&Pb(r)||!Rb(e)&&Rb(r)))return!1;if(ooe(e)){if(!ooe(r)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(r))return!1}else if(loe(e)){if(!loe(r)||!fIe(e,r))return!1}else if(tIe(e)||e instanceof Error){if(e.message!==r.message||e.name!==r.name)return!1}else if(rIe(e)){if(!t&&(iIe(e)||oIe(e))){if(!cIe(e,r))return!1}else if(!vIe(e,r))return!1;var s=Fb(e,zb),u=Fb(r,zb);return s.length!==u.length?!1:B2(e,r,t,a,rM,s)}else{if(Rb(e))return!Rb(r)||e.size!==r.size?!1:B2(e,r,t,a,yoe);if(Pb(e))return!Pb(r)||e.size!==r.size?!1:B2(e,r,t,a,goe);if(eIe(e)){if(!hIe(e,r))return!1}else if(aIe(e)&&!dIe(e,r))return!1}return B2(e,r,t,a,rM)}function voe(e,r){return r.filter(function(t){return Ib(e,t)})}function B2(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(!O2(r,i[l]))return!1;if(t&&arguments.length===5){var s=Nb(e);if(s.length!==0){var u=0;for(l=0;l<s.length;l++){var f=s[l];if(Ib(e,f)){if(!Ib(r,f))return!1;i.push(f),u++}else if(Ib(r,f))return!1}var c=Nb(r);if(s.length!==c.length&&voe(r,c).length!==u)return!1}else{var v=Nb(r);if(v.length!==0&&voe(r,v).length!==0)return!1}}if(i.length===0&&(n===rM||n===aM&&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 y=bIe(e,r,t,i,a,n);return a.val1.delete(e),a.val2.delete(r),y}function hoe(e,r,t,a){for(var n=Bb(e),i=0;i<n.length;i++){var o=n[i];if(ho(r,o,t,a))return e.delete(o),!0}return!1}function boe(e){switch(vo(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(eM(e))return!1}return!0}function pIe(e,r,t){var a=boe(t);return a!=null?a:r.has(a)&&!e.has(a)}function mIe(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)||!ho(a,o,!1,n)?!1:!e.has(i)&&ho(a,o,!1,n)}function yIe(e,r,t,a){for(var n=null,i=Bb(e),o=0;o<i.length;o++){var l=i[o];if(vo(l)==="object"&&l!==null)n===null&&(n=new Set),n.add(l);else if(!r.has(l)){if(t||!pIe(e,r,l))return!1;n===null&&(n=new Set),n.add(l)}}if(n!==null){for(var s=Bb(r),u=0;u<s.length;u++){var f=s[u];if(vo(f)==="object"&&f!==null){if(!hoe(n,f,t,a))return!1}else if(!t&&!e.has(f)&&!hoe(n,f,t,a))return!1}return n.size===0}return!0}function doe(e,r,t,a,n,i){for(var o=Bb(e),l=0;l<o.length;l++){var s=o[l];if(ho(t,s,n,i)&&ho(a,r.get(s),n,i))return e.delete(s),!0}return!1}function gIe(e,r,t,a){for(var n=null,i=noe(e),o=0;o<i.length;o++){var l=toe(i[o],2),s=l[0],u=l[1];if(vo(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)||!ho(u,f,t,a)){if(t||!mIe(e,r,s,u,a))return!1;n===null&&(n=new Set),n.add(s)}}}if(n!==null){for(var c=noe(r),v=0;v<c.length;v++){var d=toe(c[v],2),p=d[0],y=d[1];if(vo(p)==="object"&&p!==null){if(!doe(n,e,p,y,t,a))return!1}else if(!t&&(!e.has(p)||!ho(e.get(p),y,!1,a))&&!doe(n,e,p,y,!1,a))return!1}return n.size===0}return!0}function bIe(e,r,t,a,n,i){var o=0;if(i===yoe){if(!yIe(e,r,t,n))return!1}else if(i===goe){if(!gIe(e,r,t,n))return!1}else if(i===aM)for(;o<e.length;o++)if(O2(e,o)){if(!O2(r,o)||!ho(e[o],r[o],t,n))return!1}else{if(O2(r,o))return!1;for(var l=Object.keys(e);o<l.length;o++){var s=l[o];if(!O2(r,s)||!ho(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(!ho(e[u],r[u],t,n))return!1}return!0}function xIe(e,r){return ho(e,r,uIe)}function _Ie(e,r){return ho(e,r,sIe)}xoe.exports={isDeepEqual:xIe,isDeepStrictEqual:_Ie}});var Sb=z((SKe,Boe)=>{"use strict";function Vo(e){"@babel/helpers - typeof";return Vo=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},Vo(e)}function woe(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,TIe(a.key),a)}}function wIe(e,r,t){return r&&woe(e.prototype,r),t&&woe(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TIe(e){var r=AIe(e,"string");return Vo(r)==="symbol"?r:String(r)}function AIe(e,r){if(Vo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(Vo(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function MIe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var kIe=UA(),H2=kIe.codes,Toe=H2.ERR_AMBIGUOUS_ARGUMENT,kv=H2.ERR_INVALID_ARG_TYPE,SIe=H2.ERR_INVALID_ARG_VALUE,qIe=H2.ERR_INVALID_RETURN_VALUE,uu=H2.ERR_MISSING_ARGS,fu=uie(),LIe=Av(),Ob=LIe.inspect,Soe=Av().types,CIe=Soe.isPromise,Hb=Soe.isRegExp,DIe=Cie()(),qoe=Eb()(),Ub=Nie()("RegExp.prototype.test"),su,Gb;function U2(){var e=_oe();su=e.isDeepEqual,Gb=e.isDeepStrictEqual}var Aoe=!1,Wt=Boe.exports=nM,Yb={};function jo(e){throw e.message instanceof Error?e.message:new fu(e)}function Loe(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(Aoe===!1){Aoe=!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||Loe};t!==void 0&&(s.message=t);var u=new fu(s);throw o&&(u.message=o,u.generatedMessage=!0),u}Wt.fail=Loe;Wt.AssertionError=fu;function Coe(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 fu({actual:t,expected:!0,message:a,operator:"==",stackStartFn:e});throw i.generatedMessage=n,i}}function nM(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];Coe.apply(void 0,[nM,r.length].concat(r))}Wt.ok=nM;Wt.equal=function e(r,t,a){if(arguments.length<2)throw new uu("actual","expected");r!=t&&jo({actual:r,expected:t,message:a,operator:"==",stackStartFn:e})};Wt.notEqual=function e(r,t,a){if(arguments.length<2)throw new uu("actual","expected");r==t&&jo({actual:r,expected:t,message:a,operator:"!=",stackStartFn:e})};Wt.deepEqual=function e(r,t,a){if(arguments.length<2)throw new uu("actual","expected");su===void 0&&U2(),su(r,t)||jo({actual:r,expected:t,message:a,operator:"deepEqual",stackStartFn:e})};Wt.notDeepEqual=function e(r,t,a){if(arguments.length<2)throw new uu("actual","expected");su===void 0&&U2(),su(r,t)&&jo({actual:r,expected:t,message:a,operator:"notDeepEqual",stackStartFn:e})};Wt.deepStrictEqual=function e(r,t,a){if(arguments.length<2)throw new uu("actual","expected");su===void 0&&U2(),Gb(r,t)||jo({actual:r,expected:t,message:a,operator:"deepStrictEqual",stackStartFn:e})};Wt.notDeepStrictEqual=Doe;function Doe(e,r,t){if(arguments.length<2)throw new uu("actual","expected");su===void 0&&U2(),Gb(e,r)&&jo({actual:e,expected:r,message:t,operator:"notDeepStrictEqual",stackStartFn:Doe})}Wt.strictEqual=function e(r,t,a){if(arguments.length<2)throw new uu("actual","expected");qoe(r,t)||jo({actual:r,expected:t,message:a,operator:"strictEqual",stackStartFn:e})};Wt.notStrictEqual=function e(r,t,a){if(arguments.length<2)throw new uu("actual","expected");qoe(r,t)&&jo({actual:r,expected:t,message:a,operator:"notStrictEqual",stackStartFn:e})};var Moe=wIe(function e(r,t,a){var n=this;MIe(this,e),t.forEach(function(i){i in r&&(a!==void 0&&typeof a[i]=="string"&&Hb(r[i])&&Ub(r[i],a[i])?n[i]=a[i]:n[i]=r[i])})});function EIe(e,r,t,a,n,i){if(!(t in e)||!Gb(e[t],r[t])){if(!a){var o=new Moe(e,n),l=new Moe(r,n,e),s=new fu({actual:o,expected:l,operator:"deepStrictEqual",stackStartFn:i});throw s.actual=e,s.expected=r,s.operator=i.name,s}jo({actual:e,expected:r,message:a,operator:i.name,stackStartFn:i})}}function Eoe(e,r,t,a){if(typeof r!="function"){if(Hb(r))return Ub(r,e);if(arguments.length===2)throw new kv("expected",["Function","RegExp"],r);if(Vo(e)!=="object"||e===null){var n=new fu({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 SIe("error",r,"may not be an empty object");return su===void 0&&U2(),i.forEach(function(o){typeof e[o]=="string"&&Hb(r[o])&&Ub(r[o],e[o])||EIe(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 Poe(e){if(typeof e!="function")throw new kv("fn","Function",e);try{e()}catch(r){return r}return Yb}function koe(e){return CIe(e)||e!==null&&Vo(e)==="object"&&typeof e.then=="function"&&typeof e.catch=="function"}function Roe(e){return Promise.resolve().then(function(){var r;if(typeof e=="function"){if(r=e(),!koe(r))throw new qIe("instance of Promise","promiseFn",r)}else if(koe(e))r=e;else throw new kv("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return r}).then(function(){return Yb}).catch(function(t){return t})})}function Foe(e,r,t,a){if(typeof t=="string"){if(arguments.length===4)throw new kv("error",["Object","Error","Function","RegExp"],t);if(Vo(r)==="object"&&r!==null){if(r.message===t)throw new Toe("error/message",'The error message "'.concat(r.message,'" is identical to the message.'))}else if(r===t)throw new Toe("error/message",'The error "'.concat(r,'" is identical to the message.'));a=t,t=void 0}else if(t!=null&&Vo(t)!=="object"&&typeof t!="function")throw new kv("error",["Object","Error","Function","RegExp"],t);if(r===Yb){var n="";t&&t.name&&(n+=" (".concat(t.name,")")),n+=a?": ".concat(a):".";var i=e.name==="rejects"?"rejection":"exception";jo({actual:void 0,expected:t,operator:e.name,message:"Missing expected ".concat(i).concat(n),stackStartFn:e})}if(t&&!Eoe(r,t,a,e))throw r}function zoe(e,r,t,a){if(r!==Yb){if(typeof t=="string"&&(a=t,t=void 0),!t||Eoe(r,t)){var n=a?": ".concat(a):".",i=e.name==="doesNotReject"?"rejection":"exception";jo({actual:r,expected:t,operator:e.name,message:"Got unwanted ".concat(i).concat(n,`
`)+'Actual message: "'.concat(r&&r.message,'"'),stackStartFn:e})}throw r}}Wt.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];Foe.apply(void 0,[e,Poe(r)].concat(a))};Wt.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 Roe(r).then(function(i){return Foe.apply(void 0,[e,i].concat(a))})};Wt.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];zoe.apply(void 0,[e,Poe(r)].concat(a))};Wt.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 Roe(r).then(function(i){return zoe.apply(void 0,[e,i].concat(a))})};Wt.ifError=function e(r){if(r!=null){var t="ifError got unwanted exception: ";Vo(r)==="object"&&typeof r.message=="string"?r.message.length===0&&r.constructor?t+=r.constructor.name:t+=r.message:t+=Ob(r);var a=new fu({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 Noe(e,r,t,a,n){if(!Hb(r))throw new kv("regexp","RegExp",r);var i=n==="match";if(typeof e!="string"||Ub(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(Vo(e)," (").concat(Ob(e),")"):(i?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(Ob(r),`. Input:

`).concat(Ob(e),`
`));var l=new fu({actual:e,expected:r,message:t,operator:n,stackStartFn:a});throw l.generatedMessage=o,l}}Wt.match=function e(r,t,a){Noe(r,t,a,e,"match")};Wt.doesNotMatch=function e(r,t,a){Noe(r,t,a,e,"doesNotMatch")};function Ioe(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];Coe.apply(void 0,[Ioe,r.length].concat(r))}Wt.strict=DIe(Ioe,Wt,{equal:Wt.strictEqual,deepEqual:Wt.deepStrictEqual,notEqual:Wt.notStrictEqual,notDeepEqual:Wt.notDeepStrictEqual});Wt.strict.strict=Wt.strict});var Hoe=z((qKe,Ooe)=>{var G2=1e3,Y2=G2*60,V2=Y2*60,j2=V2*24,PIe=j2*365.25;Ooe.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return RIe(e);if(t==="number"&&isNaN(e)===!1)return r.long?zIe(e):FIe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function RIe(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*PIe;case"days":case"day":case"d":return t*j2;case"hours":case"hour":case"hrs":case"hr":case"h":return t*V2;case"minutes":case"minute":case"mins":case"min":case"m":return t*Y2;case"seconds":case"second":case"secs":case"sec":case"s":return t*G2;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function FIe(e){return e>=j2?Math.round(e/j2)+"d":e>=V2?Math.round(e/V2)+"h":e>=Y2?Math.round(e/Y2)+"m":e>=G2?Math.round(e/G2)+"s":e+"ms"}function zIe(e){return Vb(e,j2,"day")||Vb(e,V2,"hour")||Vb(e,Y2,"minute")||Vb(e,G2,"second")||e+" ms"}function Vb(e,r,t){if(!(e<r))return e<r*1.5?Math.floor(e/r)+" "+t:Math.ceil(e/r)+" "+t+"s"}});var Goe=z((Pt,Uoe)=>{Pt=Uoe.exports=oM.debug=oM.default=oM;Pt.coerce=HIe;Pt.disable=BIe;Pt.enable=IIe;Pt.enabled=OIe;Pt.humanize=Hoe();Pt.names=[];Pt.skips=[];Pt.formatters={};var iM;function NIe(e){var r=0,t;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return Pt.colors[Math.abs(r)%Pt.colors.length]}function oM(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(iM||a);t.diff=n,t.prev=iM,t.curr=a,iM=a;for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];i[0]=Pt.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=Pt.formatters[f];if(typeof c=="function"){var v=i[l];u=c.call(t,v),i.splice(l,1),l--}return u}),Pt.formatArgs.call(t,i);var s=r.log||Pt.log||console.log.bind(console);s.apply(t,i)}}return r.namespace=e,r.enabled=Pt.enabled(e),r.useColors=Pt.useColors(),r.color=NIe(e),typeof Pt.init=="function"&&Pt.init(r),r}function IIe(e){Pt.save(e),Pt.names=[],Pt.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]==="-"?Pt.skips.push(new RegExp("^"+e.substr(1)+"$")):Pt.names.push(new RegExp("^"+e+"$")))}function BIe(){Pt.enable("")}function OIe(e){var r,t;for(r=0,t=Pt.skips.length;r<t;r++)if(Pt.skips[r].test(e))return!1;for(r=0,t=Pt.names.length;r<t;r++)if(Pt.names[r].test(e))return!0;return!1}function HIe(e){return e instanceof Error?e.stack||e.message:e}});var joe=z((Un,Voe)=>{Un=Voe.exports=Goe();Un.log=YIe;Un.formatArgs=GIe;Un.save=VIe;Un.load=Yoe;Un.useColors=UIe;Un.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:jIe();Un.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function UIe(){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+)/)}Un.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function GIe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+Un.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 YIe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function VIe(e){try{e==null?Un.storage.removeItem("debug"):Un.storage.debug=e}catch(r){}}function Yoe(){var e;try{e=Un.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}Un.enable(Yoe());function jIe(){try{return window.localStorage}catch(e){}}});var ele=z((LKe,Qoe)=>{var Sv=Sb(),cu=joe()("stream-parser");Qoe.exports=XIe;var Xoe=-1,jb=0,WIe=1,Zoe=2;function XIe(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");cu("extending Parser into stream"),e._bytes=ZIe,e._skipBytes=$Ie,r&&(e._passthrough=JIe),r?e._transform=QIe:e._write=KIe}function W2(e){cu("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=Xoe,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function ZIe(e,r){Sv(!this._parserCallback,'there is already a "callback" set!'),Sv(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||W2(this),cu("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=jb}function $Ie(e,r){Sv(!this._parserCallback,'there is already a "callback" set!'),Sv(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||W2(this),cu("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=WIe}function JIe(e,r){Sv(!this._parserCallback,'There is already a "callback" set!'),Sv(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||W2(this),cu("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=Zoe}function KIe(e,r,t){this._parserInit||W2(this),cu("write(%o bytes)",e.length),typeof r=="function"&&(t=r),Joe(this,e,null,t)}function QIe(e,r,t){this._parserInit||W2(this),cu("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),Joe(this,e,r,t)}function $oe(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return Woe(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return Woe(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return $oe(e,r.slice(n.length),t,a)}})}}function Woe(e,r,t,a){if(e._parserBytesLeft-=r.length,cu("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===jb?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===Zoe&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===jb&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==jb&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=Xoe,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(Koe(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var Joe=Koe($oe);function Koe(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var xt=z(pn=>{"use strict";var rle=Yne().Transform,eBe=ele();function X2(){rle.call(this,{readableObjectMode:!0})}X2.prototype=Object.create(rle.prototype);X2.prototype.constructor=X2;eBe(X2.prototype);pn.ParserStream=X2;pn.sliceEq=function(e,r,t){for(var a=r,n=0;n<t.length;)if(e[a++]!==t[n++])return!1;return!0};pn.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};pn.readUInt16LE=function(e,r){return e[r]|e[r+1]<<8};pn.readUInt16BE=function(e,r){return e[r]<<8|e[r+1]};pn.readInt16LE=function(e,r){return pn.readUInt16LE(e,r)<<16>>16};pn.readInt16BE=function(e,r){return pn.readUInt16BE(e,r)<<16>>16};pn.readUInt32LE=function(e,r){return(e[r]|e[r+1]<<8|e[r+2]<<16)+e[r+3]*16777216};pn.readUInt32BE=function(e,r){return e[r]*16777216+(e[r+1]<<16|e[r+2]<<8|e[r+3])};pn.readInt32LE=function(e,r){return pn.readUInt32LE(e,r)|0};pn.readInt32BE=function(e,r){return pn.readUInt32BE(e,r)|0};function Wb(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)}Wb.prototype=Object.create(Error.prototype);Wb.prototype.constructor=Wb;pn.ProbeError=Wb});var tle=z((DKe,Xb)=>{"use strict";var qv=xt().readUInt16BE,sM=xt().readUInt32BE;function Z2(e,r){if(e.length<4+r)return null;var t=sM(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}}Xb.exports.unbox=Z2;function rBe(e,r){for(var t=0;;){var a=Z2(e,t);if(!a)break;switch(a.boxtype){case"ispe":r.sizes.push({width:sM(a.data,4),height:sM(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 lM(e,r,t){for(var a=0,n=0;n<t;n++)a=a*256+(e[r+n]||0);return a}function tBe(e,r){for(var t=e[4]>>4&15,a=e[4]&15,n=e[5]>>4&15,i=qv(e,6),o=8,l=0;l<i;l++){var s=qv(e,o);o+=2;var u=qv(e,o);o+=2;var f=lM(e,o,n);o+=n;var c=qv(e,o);if(o+=2,u===0&&c===1){var v=lM(e,o,t),d=lM(e,o+t,a);r.item_loc[s]={length:d,offset:v+f}}o+=c*(t+a)}}function aBe(e,r){for(var t=qv(e,4),a=6,n=0;n<t;n++){var i=Z2(e,a);if(!i)break;if(i.boxtype==="infe"){for(var o=qv(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 nBe(e,r){for(var t=0;;){var a=Z2(e,t);if(!a)break;a.boxtype==="ipco"&&rBe(a.data,r),t=a.end}}function iBe(e,r){for(var t=4;;){var a=Z2(e,t);if(!a)break;a.boxtype==="iprp"&&nBe(a.data,r),a.boxtype==="iloc"&&tBe(a.data,r),a.boxtype==="iinf"&&aBe(a.data,r),t=a.end}}function oBe(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}Xb.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(iBe(e,r),!!r.sizes.length){var t=oBe(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}}};Xb.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 $b=z((EKe,uM)=>{"use strict";function Zb(e,r){var t=new Error(e);return t.code=r,t}function lBe(e){try{return decodeURIComponent(escape(e))}catch(r){return e}}function ns(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 Zb("invalid TIFF signature","EBADDATA");this.big_endian=a[0]==="M"}ns.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)}};ns.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw Zb("unexpected EOF","EBADDATA");return this.big_endian?r[e]*256+r[e+1]:r[e]+r[e+1]*256};ns.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw Zb("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};ns.prototype.is_subifd_link=function(e,r){return e===0&&r===34665||e===0&&r===34853||e===34665&&r===40965};ns.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}};ns.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}};ns.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 Zb("unexpected EOF","EBADDATA");for(var v=[],d=f,p=0;p<l;p++,d+=s){var y=this.exif_format_read(o,d);if(y===null){v=null;break}v.push(y)}Array.isArray(v)&&o===2&&(v=lBe(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 m={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(m)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};uM.exports.ExifParser=ns;uM.exports.get_orientation=function(e){var r=0;try{return new ns(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 nle=z((PKe,ale)=>{"use strict";var sBe=xt().str2arr,uBe=xt().sliceEq,fBe=xt().readUInt32BE,Jb=tle(),cBe=$b(),vBe=sBe("ftyp");ale.exports=function(e){if(uBe(e,4,vBe)){var r=Jb.unbox(e,0);if(r){var t=Jb.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=Jb.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=Jb.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=fBe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=cBe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var sle=z((RKe,lle)=>{"use strict";var hBe=xt().str2arr,dBe=xt().sliceEq,ile=xt().readInt16LE,ole=xt().readInt32LE,pBe=xt().readUInt32LE,mBe=hBe("BM");lle.exports=function(e){if(!(e.length<26)&&dBe(e,0,mBe)){var r,t,a=pBe(e,14);if(a===12)t=ile(e,18),r=ile(e,20);else if(a>12)t=ole(e,18),r=ole(e,22);else return;return{width:t,height:Math.abs(r),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var hle=z((FKe,vle)=>{"use strict";var cle=xt().str2arr,ule=xt().sliceEq,fle=xt().readUInt16LE,yBe=cle("GIF87a"),gBe=cle("GIF89a");vle.exports=function(e){if(!(e.length<10)&&!(!ule(e,0,yBe)&&!ule(e,0,gBe)))return{width:fle(e,6),height:fle(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var ple=z((zKe,dle)=>{"use strict";var fM=xt().readUInt16LE,bBe=0,xBe=1,cM=16;dle.exports=function(e){var r=fM(e,0),t=fM(e,2),a=fM(e,4);if(!(r!==bBe||t!==xBe||!a)&&!(e.length<6+a*cM)){for(var n=[],i={width:0,height:0},o=0;o<a;o++){var l=e[6+cM*o]||256,s=e[6+cM*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 yle=z((NKe,mle)=>{"use strict";var vM=xt().readUInt16BE,_Be=xt().str2arr,wBe=xt().sliceEq,TBe=$b(),ABe=_Be("Exif\0\0");mle.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=vM(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&wBe(e,r,ABe)&&(n=TBe.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:vM(e,r+3),height:vM(e,r+1),type:"jpg",mime:"image/jpeg",wUnits:"px",hUnits:"px"};return n>0&&(i.orientation=n),i}r+=a}}});var wle=z((IKe,_le)=>{"use strict";var xle=xt().str2arr,gle=xt().sliceEq,ble=xt().readUInt32BE,MBe=xle(`\x89PNG\r

`),kBe=xle("IHDR");_le.exports=function(e){if(!(e.length<24)&&gle(e,0,MBe)&&gle(e,12,kBe))return{width:ble(e,16),height:ble(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var Mle=z((BKe,Ale)=>{"use strict";var SBe=xt().str2arr,qBe=xt().sliceEq,Tle=xt().readUInt32BE,LBe=SBe("8BPS\0");Ale.exports=function(e){if(!(e.length<22)&&qBe(e,0,LBe))return{width:Tle(e,18),height:Tle(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var qle=z((OKe,Sle)=>{"use strict";function CBe(e){return e===32||e===9||e===13||e===10}function Lv(e){return typeof e=="number"&&isFinite(e)&&e>0}function DBe(e){var r=0,t=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(r=3);r<t&&CBe(e[r]);)r++;return r===t?!1:e[r]===60}var EBe=/<[-_.:a-zA-Z0-9][^>]*>/,PBe=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,RBe=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,FBe=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,zBe=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,kle=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function NBe(e){var r=e.match(RBe),t=e.match(FBe),a=e.match(zBe);return{width:r&&(r[1]||r[2]),height:t&&(t[1]||t[2]),viewbox:a&&(a[1]||a[2])}}function Sl(e){return kle.test(e)?e.match(kle)[0]:"px"}Sle.exports=function(e){if(DBe(e)){for(var r="",t=0;t<e.length;t++)r+=String.fromCharCode(e[t]);var a=(r.match(EBe)||[""])[0];if(PBe.test(a)){var n=NBe(a),i=parseFloat(n.width),o=parseFloat(n.height);if(n.width&&n.height)return!Lv(i)||!Lv(o)?void 0:{width:i,height:o,type:"svg",mime:"image/svg+xml",wUnits:Sl(n.width),hUnits:Sl(n.height)};var l=(n.viewbox||"").split(" "),s={width:l[2],height:l[3]},u=parseFloat(s.width),f=parseFloat(s.height);if(!(!Lv(u)||!Lv(f))&&Sl(s.width)===Sl(s.height)){var c=u/f;return n.width?Lv(i)?{width:i,height:i/c,type:"svg",mime:"image/svg+xml",wUnits:Sl(n.width),hUnits:Sl(n.width)}:void 0:n.height?Lv(o)?{width:o*c,height:o,type:"svg",mime:"image/svg+xml",wUnits:Sl(n.height),hUnits:Sl(n.height)}:void 0:{width:u,height:f,type:"svg",mime:"image/svg+xml",wUnits:Sl(s.width),hUnits:Sl(s.height)}}}}}});var Ple=z((HKe,Ele)=>{"use strict";var Dle=xt().str2arr,Lle=xt().sliceEq,IBe=xt().readUInt16LE,BBe=xt().readUInt16BE,OBe=xt().readUInt32LE,HBe=xt().readUInt32BE,UBe=Dle("II*\0"),GBe=Dle("MM\0*");function Kb(e,r,t){return t?BBe(e,r):IBe(e,r)}function hM(e,r,t){return t?HBe(e,r):OBe(e,r)}function Cle(e,r,t){var a=Kb(e,r+2,t),n=hM(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?Kb(e,r+8,t):hM(e,r+8,t)}Ele.exports=function(e){if(!(e.length<8)&&!(!Lle(e,0,UBe)&&!Lle(e,0,GBe))){var r=e[0]===77,t=hM(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=Kb(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=Kb(e,a+i,r),s===256?o=Cle(e,a+i,r):s===257&&(l=Cle(e,a+i,r));if(o&&l)return{width:o,height:l,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}}}}}}});var Ile=z((UKe,Nle)=>{"use strict";var zle=xt().str2arr,Rle=xt().sliceEq,Fle=xt().readUInt16LE,dM=xt().readUInt32LE,YBe=$b(),VBe=zle("RIFF"),jBe=zle("WEBP");function WBe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:Fle(e,r+6)&16383,height:Fle(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function XBe(e,r){if(e[r]===47){var t=dM(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function ZBe(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"}}Nle.exports=function(e){if(!(e.length<16)&&!(!Rle(e,0,VBe)||!Rle(e,8,jBe))){var r=12,t=null,a=0,n=dM(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=dM(e,r+4);i==="VP8 "&&o>=10?t=t||WBe(e,r+8):i==="VP8L"&&o>=5?t=t||XBe(e,r+8):i==="VP8X"&&o>=10?t=t||ZBe(e,r+8):i==="EXIF"&&(a=YBe.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 Ole=z((GKe,Ble)=>{"use strict";Ble.exports={avif:nle(),bmp:sle(),gif:hle(),ico:ple(),jpeg:yle(),png:wle(),psd:Mle(),svg:qle(),tiff:Ple(),webp:Ile()}});var Hle=z((YKe,mM)=>{"use strict";var pM=Ole();function $Be(e){for(var r=Object.keys(pM),t=0;t<r.length;t++){var a=pM[r[t]](e);if(a)return a.width>0&&a.height>0?a:null}return null}mM.exports=function(r){return $Be(r)};mM.exports.parsers=pM});var Gle=z(Ule=>{"use strict";var JBe=Hle(),KBe=Vl().IMAGE_URL_PREFIX,QBe=sv().Buffer;Ule.getImageSize=function(e){var r=e.replace(KBe,""),t=new QBe(r,"base64");return JBe(t)}});var jle=z((jKe,Vle)=>{"use strict";var Yle=ke(),eOe=av(),rOe=Ir(),Qb=Gr(),tOe=ke().maxRowLength,aOe=Gle().getImageSize;Vle.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=tOe(t.z);else if(t._hasSource){var i=aOe(t.source);a=i.height,n=i.width}var o=Qb.getFromId(r,t.xaxis||"x"),l=Qb.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]=Qb.findExtremes(o,c),t._extremes[l._id]=Qb.findExtremes(l,v),t._scaler=oOe(t);var d={x0:s,y0:u,z:t.z,w:n,h:a};return[d]};function nOe(e,r,t,a){return function(n){return Yle.constrain((n-e)*r,t,a)}}function iOe(e,r){return function(t){return Yle.constrain(t,e,r)}}function oOe(e){var r=eOe.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(nOe(e.zmin[n],(r.max[n]-r.min[n])/(e.zmax[n]-e.zmin[n]),r.min[n],r.max[n])):e._sArray.push(iOe(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(!rOe(s))return!1;o[l]=e._sArray[l](s)}return o}}});var Zle=z((WKe,Xle)=>{"use strict";var lOe=Er(),$f=ke(),Wle=$f.strTranslate,sOe=Il(),uOe=av(),fOe=x9(),cOe=Qg().STYLE;Xle.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&fOe();$f.makeTraceGroups(n,a,"im").each(function(s){var u=lOe.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,y=f.y0,m=f.w,b=f.h,T=c.dx,w=c.dy,x,_,k,A,q,C;for(C=0;x===void 0&&C<m;)x=i.c2p(p+C*T),C++;for(C=m;_===void 0&&C>0;)_=i.c2p(p+C*T),C--;for(C=0;A===void 0&&C<b;)A=o.c2p(y+C*w),C++;for(C=b;q===void 0&&C>0;)q=o.c2p(y+C*w),C--;if(_<x&&(k=_,_=x,x=k),q<A&&(k=A,A=q,q=k),!v){var E=.5;x=Math.max(-E*i._length,x),_=Math.min((1+E)*i._length,_),A=Math.max(-E*o._length,A),q=Math.min((1+E)*o._length,q)}var P=Math.round(_-x),R=Math.round(q-A),N=P<=0||R<=0;if(N){var I=u.selectAll("image").data([]);I.exit().remove();return}function O(se){var $=document.createElement("canvas");$.width=P,$.height=R;var fe=$.getContext("2d",{willReadFrequently:!0}),ie=function(Ne){return $f.constrain(Math.round(i.c2p(p+Ne*T)-x),0,P)},ue=function(Ne){return $f.constrain(Math.round(o.c2p(y+Ne*w)-A),0,R)},ce=uOe.colormodel[c.colormodel],oe=ce.colormodel||c.colormodel,be=ce.fmt,Re;for(C=0;C<f.w;C++){var ye=ie(C),Ce=ie(C+1);if(!(Ce===ye||isNaN(Ce)||isNaN(ye)))for(var Me=0;Me<f.h;Me++){var Le=ue(Me),De=ue(Me+1);De===Le||isNaN(De)||isNaN(Le)||!se(C,Me)||(Re=c._scaler(se(C,Me)),Re?fe.fillStyle=oe+"("+be(Re).join(",")+")":fe.fillStyle="rgba(0,0,0,0)",fe.fillRect(ye,Le,Ce-ye,De-Le))}}return $}var U=u.selectAll("image").data([s]);U.enter().append("svg:image").attr({xmlns:sOe.svg,preserveAspectRatio:"none"}),U.exit().remove();var Y=c.zsmooth===!1?cOe:"";if(v){var G=$f.simpleMap(i.range,i.r2l),V=$f.simpleMap(o.range,o.r2l),W=G[1]<G[0],j=V[1]>V[0];if(W||j){var J=x+P/2,te=A+R/2;Y+="transform:"+Wle(J+"px",te+"px")+"scale("+(W?-1:1)+","+(j?-1:1)+")"+Wle(-J+"px",-te+"px")+";"}}U.attr("style",Y);var ae=new Promise(function(se){if(c._hasZ)se();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===m&&c._canvas.el.height===b&&c._canvas.source===c.source)se();else{var $=document.createElement("canvas");$.width=m,$.height=b;var fe=$.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var ie=c._image;ie.onload=function(){fe.drawImage(ie,0,0),c._canvas={el:$,source:c.source},se()},ie.setAttribute("src",c.source)}}).then(function(){var se,$;if(c._hasZ)$=O(function(ue,ce){var oe=d[ce][ue];return $f.isTypedArray(oe)&&(oe=Array.from(oe)),oe}),se=$.toDataURL("image/png");else if(c._hasSource)if(v)se=c.source;else{var fe=c._canvas.el.getContext("2d",{willReadFrequently:!0}),ie=fe.getImageData(0,0,m,b).data;$=O(function(ue,ce){var oe=4*(ce*m+ue);return[ie[oe],ie[oe+1],ie[oe+2],ie[oe+3]]}),se=$.toDataURL("image/png")}U.attr({"xlink:href":se,height:R,width:P,x,y:A})});r._promises.push(ae)})}});var Jle=z((XKe,$le)=>{"use strict";var vOe=Er();$le.exports=function(r){vOe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var rse=z((ZKe,ese)=>{"use strict";var Kle=In(),Qle=ke(),e5=Qle.isArrayOrTypedArray,hOe=av();ese.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(Kle.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||Kle.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=hOe.colormodel[i.colormodel],y=p.colormodel||i.colormodel,m=y.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(", ")),m===4&&w.push(", "+b[3]+T[3]),w.push("]"),w=w.join(""),r.extraText=y.toUpperCase()+": "+w);var x;e5(i.hovertext)&&e5(i.hovertext[u])?x=i.hovertext[u][s]:e5(i.text)&&e5(i.text[u])&&(x=i.text[u][s]);var _=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,A=n.y0+(u+.5)*i.dy,q="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[Qle.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:A,yLabelVal:A,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 ase=z(($Ke,tse)=>{"use strict";tse.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 ise=z((JKe,nse)=>{"use strict";nse.exports={attributes:(dT(),un(hT)).default,supplyDefaults:jee(),calc:jle(),plot:Zle(),style:Jle(),hoverPoints:rse(),eventData:ase(),moduleType:"trace",name:"image",basePlotModule:Qi(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var lse=z((KKe,ose)=>{"use strict";ose.exports=ise()});var yM=z((QKe,use)=>{"use strict";var r5=zn(),dOe=zc().attributes,pOe=ka(),mOe=Ei(),{hovertemplateAttrs:yOe,texttemplateAttrs:gOe,templatefallbackAttrs:sse}=fi(),vu=At().extendFlat,bOe=Pi().pattern,t5=pOe({editType:"plot",arrayOk:!0,colorEditType:"plot"});use.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:mOe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:bOe,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:vu({},r5.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:yOe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:sse(),texttemplate:gOe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:sse({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:vu({},t5,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:vu({},t5,{}),outsidetextfont:vu({},t5,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:vu({},r5.showlegend,{arrayOk:!0}),legend:vu({},r5.legend,{arrayOk:!0}),legendrank:vu({},r5.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:vu({},t5,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:dOe({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 hse=z((eQe,vse)=>{"use strict";var xOe=Ir(),$2=ke(),_Oe=yM(),wOe=zc().defaults,TOe=Sf().handleText,AOe=ke().coercePattern;function fse(e,r){var t=$2.isArrayOrTypedArray(e),a=$2.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(xOe(l)&&l>0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function cse(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");AOe(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 MOe(e,r,t,a){function n(T,w){return $2.coerce(e,r,_Oe,T,w)}var i=n("labels"),o=n("values"),l=fse(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,cse(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",$2.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");TOe(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");wOe(r,a,n);var y=n("hole"),m=n("title.text");if(m){var b=n("title.position",y?"middle center":"top center");!y&&b==="middle center"&&(r.title.position="top center"),$2.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}vse.exports={handleLabelsAndValues:fse,handleMarkerDefaults:cse,supplyDefaults:MOe}});var gM=z((rQe,dse)=>{"use strict";dse.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var mse=z((tQe,pse)=>{"use strict";var kOe=ke(),SOe=gM();pse.exports=function(r,t){function a(n,i){return kOe.coerce(r,t,SOe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var bM=z((aQe,bse)=>{"use strict";var qOe=Ir(),Cv=Sr(),LOe={};function COe(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=yse(a["_"+r.type+"colormap"]),p=0,y=!1;for(f=0;f<s;f++){var m,b,T;if(u){if(m=l[f],!qOe(m))continue;m=+m}else m=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+=m),t.push({v:m,label:b,color:d(o[f],b),i:f,pts:[f],hidden:T})):(y=!0,c=t[w],c.v+=m,c.pts.push(f),c.hidden||(p+=m),c.color===!1&&o[f]&&(c.color=d(o[f],b)))}t=t.filter(function(_){return _.v>=0});var x=r.type==="funnelarea"?y:r.sort;return x&&t.sort(function(_,k){return k.v-_.v}),t[0]&&(t[0].vTotal=p),t}function yse(e){return function(t,a){if(!t||!Cv.isValid(t))return!1;let n=Cv.rgbaString(t);return e[a]||(e[a]=n),n}}function DOe(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=gse(i,LOe));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 gse(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(Cv.hexString(Cv.adjustLightness(e[t],20)));for(t=0;t<e.length;t++)n.push(Cv.hexString(Cv.adjustLightness(e[t],-20)));r[a]=n}return n}bse.exports={calc:COe,crossTraceCalc:DOe,makePullColorFn:yse,generateExtendedColors:gse}});var _se=z((nQe,xse)=>{"use strict";var EOe=qo().appendArrayMultiPointValues;xse.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]),EOe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var Gse=z((iQe,Use)=>{"use strict";var oi=Er(),POe=va(),a5=In(),Sse=Sr(),is=Zr(),on=ke(),ROe=on.strScale,wse=on.strTranslate,xM=Ca(),qse=jd(),FOe=qse.recordMinTextSize,zOe=qse.clearMinTextSize,Lse=qd().TEXTPAD,Cr=km(),n5=_se(),Tse=ke().isValidTextValue;function NOe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;zOe("pie",a),Ese(r,e),Bse(r,n);var i=on.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=oi.select(this),s=o[0],u=s.trace;jOe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=oi.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){oi.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,A=s.cy,q=oi.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(Cse,e,o),u.pull){var E=+Cr.castOption(u.pull,x.pts)||0;E>0&&(k+=E*x.pxmid[0],A+=E*x.pxmid[1])}x.cxFinal=k,x.cyFinal=A;function P(G,V,W,j){var J=j*(V[0]-G[0]),te=j*(V[1]-G[1]);return"a"+j*s.r+","+j*s.r+" 0 "+x.largeArc+(W?" 1 ":" 0 ")+J+","+te}var R=u.hole;if(x.v===s.vTotal){var N="M"+(k+x.px0[0])+","+(A+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])+","+(A+R*x.px0[1])+P(x.px0,x.pxmid,!1,R)+P(x.pxmid,x.px0,!1,R)+"Z"+N):C.attr("d",N)}else{var I=P(x.px0,x.px1,!0,1);if(R){var O=1-R;C.attr("d","M"+(k+R*x.px1[0])+","+(A+R*x.px1[1])+P(x.px1,x.px0,!1,R)+"l"+O*x.px0[0]+","+O*x.px0[1]+I+"Z")}else C.attr("d","M"+k+","+A+"l"+x.px0[0]+","+x.px0[1]+I+"Z")}Ose(e,x,s);var U=Cr.castOption(u.textposition,x.pts),Y=q.selectAll("g.slicetext").data(x.text&&U!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var G=on.ensureSingle(oi.select(this),"text","",function($){$.attr("data-notex",1)}),V=on.ensureUniformFontSize(e,U==="outside"?BOe(u,x,a.font):Dse(u,x,a.font));G.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(is.font,V).call(xM.convertToTspans,e);var W=is.bBox(G.node()),j;if(U==="outside")j=kse(W,x);else if(j=Pse(W,x,s),U==="auto"&&j.scale<1){var J=on.ensureUniformFontSize(e,u.outsidetextfont);G.call(is.font,J),W=is.bBox(G.node()),j=kse(W,x)}var te=j.textPosAngle,ae=te===void 0?x.pxmid:i5(s.r,te);if(j.targetX=k+ae[0]*j.rCenter+(j.x||0),j.targetY=A+ae[1]*j.rCenter+(j.y||0),Hse(j,W),j.outside){var se=j.targetY;x.yLabelMin=se-W.height/2,x.yLabelMid=se,x.yLabelMax=se+W.height/2,x.labelExtraX=0,x.labelExtraY=0,v=!0}j.fontSize=V.size,FOe(u.type,j,a),o[_].transform=j,on.setTransormAndDisplay(G,j)})});var d=oi.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=on.ensureSingle(oi.select(this),"text","",function(A){A.attr("data-notex",1)}),_=u.title.text;u._meta&&(_=on.templateString(_,u._meta)),x.text(_).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(is.font,u.title.font).call(xM.convertToTspans,e);var k;u.title.position==="middle center"?k=UOe(s):k=Nse(s,n),x.attr("transform",wse(k.x,k.y)+ROe(Math.min(1,k.scale))+wse(k.tx,k.ty))}),v&&YOe(c,u),IOe(f,u),v&&u.automargin){var p=is.bBox(l.node()),y=u.domain,m=n.w*(y.x[1]-y.x[0]),b=n.h*(y.y[1]-y.y[0]),T=(.5*m-s.r)/n.w,w=(.5*b-s.r)/n.h;POe.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-T,xr:y.x[1]+T,yb:y.y[0]-w,yt:y.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=oi.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function IOe(e,r){e.each(function(t){var a=oi.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,on.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;on.ensureSingle(a,"path","textline").call(Sse.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function Cse(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=a5.castHoverinfo({hoverinfo:[Cr.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),y=u.separators,m=[];if(c&&c.indexOf("label")!==-1&&m.push(s.label),s.text=Cr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;on.isValidTextValue(b)&&m.push(b)}s.value=s.v,s.valueLabel=Cr.formatPieValue(s.v,y),c&&c.indexOf("value")!==-1&&m.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Cr.formatPiePercent(s.percent,y),c&&c.indexOf("percent")!==-1&&m.push(s.percentLabel);var T=f.hoverlabel,w=T.font,x=[];a5.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:m.join("<br>"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Cr.castOption(T.bgcolor,s.pts)||s.color,borderColor:Cr.castOption(T.bordercolor,s.pts),fontFamily:Cr.castOption(w.family,s.pts),fontSize:Cr.castOption(w.size,s.pts),fontColor:Cr.castOption(w.color,s.pts),nameLength:Cr.castOption(T.namelength,s.pts),textAlign:Cr.castOption(T.align,s.pts),hovertemplate:Cr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[n5(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:[n5(s,f)],event:oi.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=oi.select(this).datum();o._hasHoverEvent&&(s.originalEvent=oi.event,r.emit("plotly_unhover",{points:[n5(c,f)],event:oi.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(a5.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=[n5(s,f)],a5.click(r,oi.event))})}function BOe(e,r,t){var a=Cr.castOption(e.outsidetextfont.color,r.pts)||Cr.castOption(e.textfont.color,r.pts)||t.color,n=Cr.castOption(e.outsidetextfont.family,r.pts)||Cr.castOption(e.textfont.family,r.pts)||t.family,i=Cr.castOption(e.outsidetextfont.size,r.pts)||Cr.castOption(e.textfont.size,r.pts)||t.size,o=Cr.castOption(e.outsidetextfont.weight,r.pts)||Cr.castOption(e.textfont.weight,r.pts)||t.weight,l=Cr.castOption(e.outsidetextfont.style,r.pts)||Cr.castOption(e.textfont.style,r.pts)||t.style,s=Cr.castOption(e.outsidetextfont.variant,r.pts)||Cr.castOption(e.textfont.variant,r.pts)||t.variant,u=Cr.castOption(e.outsidetextfont.textcase,r.pts)||Cr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Cr.castOption(e.outsidetextfont.lineposition,r.pts)||Cr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Cr.castOption(e.outsidetextfont.shadow,r.pts)||Cr.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 Dse(e,r,t){var a=Cr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Cr.castOption(e._input.textfont.color,r.pts));var n=Cr.castOption(e.insidetextfont.family,r.pts)||Cr.castOption(e.textfont.family,r.pts)||t.family,i=Cr.castOption(e.insidetextfont.size,r.pts)||Cr.castOption(e.textfont.size,r.pts)||t.size,o=Cr.castOption(e.insidetextfont.weight,r.pts)||Cr.castOption(e.textfont.weight,r.pts)||t.weight,l=Cr.castOption(e.insidetextfont.style,r.pts)||Cr.castOption(e.textfont.style,r.pts)||t.style,s=Cr.castOption(e.insidetextfont.variant,r.pts)||Cr.castOption(e.textfont.variant,r.pts)||t.variant,u=Cr.castOption(e.insidetextfont.textcase,r.pts)||Cr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Cr.castOption(e.insidetextfont.lineposition,r.pts)||Cr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Cr.castOption(e.insidetextfont.shadow,r.pts)||Cr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||Sse.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Ese(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=on.templateString(i,a._meta));var o=is.tester.append("text").attr("data-notex",1).text(i).call(is.font,a.title.font).call(xM.convertToTspans,r),l=is.bBox(o.node(),!0);t.titleBox={width:l.width,height:l.height},o.remove()}}function Pse(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",y=[],m;if(!p){var b=function(q,C){if(OOe(r,q)){var E=Math.abs(q-r.startangle),P=Math.abs(q-r.stopangle),R=E<P?E:P;C==="tan"?m=Mse(e,a,o,R,0):m=Ase(e,a,o,R,Math.PI/2),m.textPosAngle=q,y.push(m)}},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(m={scale:n*a*2/w,rCenter:1-n,rotate:0},m.textPosAngle=(r.startangle+r.stopangle)/2,m.scale>=1)return m;y.push(m)}(p||d)&&(m=Ase(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||v)&&(m=Mse(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m));for(var x=0,_=0,k=0;k<y.length;k++){var A=y[k].scale;if(_<A&&(_=A,x=k),!p&&_>=1)break}return y[x]}function OOe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t<r&&r<a}function Ase(e,r,t,a,n){r=Math.max(0,r-2*Lse);var i=e.width/e.height,o=zse(i,a,r,t);return{scale:o*2/e.height,rCenter:Rse(i,o/r),rotate:Fse(n)}}function Mse(e,r,t,a,n){r=Math.max(0,r-2*Lse);var i=e.height/e.width,o=zse(i,a,r,t);return{scale:o*2/e.width,rCenter:Rse(i,o/r),rotate:Fse(n+Math.PI/2)}}function Rse(e,r){return Math.cos(r)-e*r}function Fse(e){return(180/Math.PI*e+720)%180-90}function zse(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 HOe(e,r){return e.v===r.vTotal&&!r.trace.hole?1:Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2)}function kse(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 UOe(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 Nse(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=Ise(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=GOe(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=_M(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function GOe(e,r){return e/(r===void 0?1:r)}function _M(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 Ise(e){var r=e.pull;if(!r)return 0;var t;if(on.isArrayOrTypedArray(r))for(r=0,t=0;t<e.pull.length;t++)e.pull[t]>r&&(r=e.pull[t]);return r}function YOe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,p;function y(w,x){return w.pxmid[1]-x.pxmid[1]}function m(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,A=a?w.yLabelMax:w.yLabelMin,q=w.cyFinal+o(w.px0[1],w.px1[1]),C=_-k,E,P,R,N,I,O;if(C*s>0&&(w.labelExtraY=C),!!on.isArrayOrTypedArray(r.pull))for(P=0;P<c.length;P++)R=c[P],!(R===w||(Cr.castOption(r.pull,w.pts)||0)>=(Cr.castOption(r.pull,R.pts)||0))&&((w.pxmid[1]-R.pxmid[1])*s>0?(N=R.cyFinal+o(R.px0[1],R.px1[1]),C=N-k-w.labelExtraY,C*s>0&&(w.labelExtraY+=C)):(A+w.labelExtraY-q)*s>0&&(E=3*l*Math.abs(P-c.indexOf(w)),I=R.cxFinal+i(R.px0[0],R.px1[0]),O=I+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,O*l>0&&(w.labelExtraX+=O)))}for(a=0;a<2;a++)for(n=a?y:m,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 Bse(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-=_M(n,r));var u=l/2,f=s/2;i.type==="funnelarea"&&!i.scalegroup&&(f/=i.aspectratio),n.r=Math.min(u,f)/(1+Ise(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-=_M(n,r)),i.scalegroup&&t.indexOf(i.scalegroup)===-1&&t.push(i.scalegroup)}VOe(e,t)}function VOe(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 jOe(e){var r=e[0],t=r.r,a=r.trace,n=Cr.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=i5(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=i5(t,n),u.midangle=n,n+=i*u.v/2,f=i5(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=HOe(u,r))}function i5(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function Ose(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 y=Cr.getFirstFilled(n.text,r.pts);Tse(y)&&p.push(y)}c&&p.push(Cr.formatPieValue(r.v,d)),v&&p.push(Cr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("<br>")}function m(x){return{label:x.label,value:x.v,valueLabel:Cr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Cr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:on.castOption(n,x.i,"customdata")}}if(i){var b=on.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var T=m(r),w=Cr.getFirstFilled(n.text,r.pts);(Tse(w)||w==="")&&(T.text=w),r.text=on.texttemplateString({data:[T,n._meta],fallback:n.texttemplatefallback,labels:T,locale:e._fullLayout._d3locale,template:b})}}}function Hse(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}Use.exports={plot:NOe,formatSliceLabel:Ose,transformInsideText:Pse,determineInsideTextFont:Dse,positionTitleOutside:Nse,prerenderTitles:Ese,layoutAreas:Bse,attachFxHandlers:Cse,computeTransform:Hse}});var jse=z((oQe,Vse)=>{"use strict";var Yse=Er(),WOe=Sm(),XOe=jd().resizeText;Vse.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");XOe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=Yse.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){Yse.select(this).call(WOe,l,i,r)})})}});var Xse=z(Dv=>{"use strict";var Wse=va();Dv.name="pie";Dv.plot=function(e,r,t,a){Wse.plotBasePlot(Dv.name,e,r,t,a)};Dv.clean=function(e,r,t,a){Wse.cleanBasePlot(Dv.name,e,r,t,a)}});var $se=z((sQe,Zse)=>{"use strict";Zse.exports={attributes:yM(),supplyDefaults:hse().supplyDefaults,supplyLayoutDefaults:mse(),layoutAttributes:gM(),calc:bM().calc,crossTraceCalc:bM().crossTraceCalc,plot:Gse().plot,style:jse(),styleOne:Sm(),moduleType:"trace",name:"pie",basePlotModule:Xse(),categories:["pie-like","pie","showLegend"],meta:{}}});var Kse=z((uQe,Jse)=>{"use strict";Jse.exports=$se()});var mn=z((fQe,eue)=>{"use strict";var Qse=Object.getOwnPropertySymbols,ZOe=Object.prototype.hasOwnProperty,$Oe=Object.prototype.propertyIsEnumerable;function JOe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function KOe(){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}}eue.exports=KOe()?Object.assign:function(e,r){for(var t,a=JOe(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var o in t)ZOe.call(t,o)&&(a[o]=t[o]);if(Qse){n=Qse(t);for(var l=0;l<n.length;l++)$Oe.call(t,n[l])&&(a[n[l]]=t[n[l]])}}return a}});var yn=z((cQe,tue)=>{var l5=mn();function rue(){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={}}l5(rue.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 wM(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(Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o5(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}l5(wM.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(Ur.local.invalidDate||Ur.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(Ur.local.differentCalendars||Ur.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?"-":"")+o5(Math.abs(this.year()),4)+"-"+o5(this.month(),2)+"-"+o5(this.day(),2)}});function TM(){this.shortYearCutoff="+10"}l5(TM.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new wM(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ur.local.invalidYear||Ur.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,Ur.local.invalidYear||Ur.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+o5(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ur.local.invalidYear||Ur.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Ur.local.invalidMonth||Ur.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,Ur.local.invalidMonth||Ur.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ur.local.invalidYear||Ur.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Ur.local.invalidDate||Ur.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,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Ur.local.invalidDate||Ur.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,Ur.local.invalidDate||Ur.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,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate);return Ur.instance().fromJD(this.toJD(a)).toJSDate()},fromJSDate:function(e){return this.fromJD(Ur.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,a){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Ur.local.differentCalendars||Ur.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 AM(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}AM.prototype=new TM;l5(AM.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,Ur.local.invalidYear||Ur.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,Ur.local.invalidMonth||Ur.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,Ur.local.invalidDate||Ur.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,Ur.local.invalidDate||Ur.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 Ur=tue.exports=new rue;Ur.cdate=wM;Ur.baseCalendar=TM;Ur.calendars.gregorian=AM});var aue=z(()=>{var MM=mn(),Ya=yn();MM(Ya.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"});Ya.local=Ya.regionalOptions[""];MM(Ya.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});MM(Ya.baseCalendar.prototype,{UNIX_EPOCH:Ya.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Ya.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 Ya.local.invalidFormat||Ya.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,A){var q=""+_;if(u(x,A))for(;q.length<k;)q="0"+q;return q},c=function(x,_,k,A){return u(x)?A[_]:k[_]},v=this,d=function(x){return typeof i=="function"?i.call(v,x,u("m")):m(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]},y=this.local.digits,m=function(x){return t.localNumbers&&y?y(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+=m(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 Ya.local.invalidArguments||Ya.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,y=!1,m=!1,b=function(R,N){for(var I=1;C+I<e.length&&e.charAt(C+I)===R;)I++;return C+=I-1,Math.floor(I/(N||1))>1},T=function(R,N){var I=b(R,N),O=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],U=new RegExp("^-?\\d{1,"+O+"}"),Y=r.substring(q).match(U);if(!Y)throw(Ya.local.missingNumberAt||Ya.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=Y[0].length,parseInt(Y[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,N,I,O){for(var U=b(R,O)?I:N,Y=0;Y<U.length;Y++)if(r.substr(q,U[Y].length).toLowerCase()===U[Y].toLowerCase())return q+=U[Y].length,Y+w.minMonth;throw(Ya.local.unknownNameAt||Ya.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)},A=function(){if(r.charAt(q)!==e.charAt(C))throw(Ya.local.unexpectedLiteralAt||Ya.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,q);q++},q=0,C=0;C<e.length;C++)if(m)e.charAt(C)==="'"&&!b("'")?m=!1:A();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;y=!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("'")?A():m=!0;break;default:A()}if(q<r.length)throw Ya.local.unexpectedText||Ya.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&y&&(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 nue=z(()=>{var hu=yn(),QOe=mn(),kM=hu.instance();function s5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}s5.prototype=new hu.baseCalendar;QOe(s5.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(rHe);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(tHe);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(aHe);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 hu.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 hu.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=du[e-du[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,hu.local.invalidyear),n=pu[a-pu[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=kM.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=du[e-du[0]],a=t>>13,n=a?12:11;if(r>n)throw hu.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,hu.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=iHe(e,i,t,n);return kM.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=kM.fromJD(e),t=nHe(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(eHe),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(s5.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 eHe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,rHe=/^\d?\d[iI]?/m,tHe=/^闰?十?[一二三四五六七八九]?月/m,aHe=/^闰?十?[一二三四五六七八九]?/m;hu.calendars.chinese=s5;var du=[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],pu=[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 nHe(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=pu[n.year-pu[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=pu[i.year-pu[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,y=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var b=du[i.year-du[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 iHe(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=du[o.year-du[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var y=0;y<p;y++){var m=v&1<<12-y?30:29;c+=m}var b=pu[o.year-pu[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 iue=z(()=>{var Jf=yn(),oHe=mn();function SM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SM.prototype=new Jf.baseCalendar;oHe(SM.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,Jf.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,Jf.local.invalidYear||Jf.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,Jf.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,Jf.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)}});Jf.calendars.coptic=SM});var oue=z(()=>{var os=yn(),lHe=mn();function qM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qM.prototype=new os.baseCalendar;lHe(qM.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,os.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,os.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,os.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,os.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,os.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,os.local.invalidDate);return{century:sHe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,os.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 sHe={20:"Fruitbat",21:"Anchovy"};os.calendars.discworld=qM});var lue=z(()=>{var Kf=yn(),uHe=mn();function LM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LM.prototype=new Kf.baseCalendar;uHe(LM.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,Kf.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,Kf.local.invalidYear||Kf.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,Kf.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,Kf.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)}});Kf.calendars.ethiopian=LM});var sue=z(()=>{var mu=yn(),fHe=mn();function CM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CM.prototype=new mu.baseCalendar;fHe(CM.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,mu.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,u5(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mu.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,mu.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,mu.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&u5(this.daysInYear(e),10)===5?30:r===9&&u5(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,mu.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,mu.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 u5(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 u5(e,r){return e-r*Math.floor(e/r)}mu.calendars.hebrew=CM});var uue=z(()=>{var J2=yn(),cHe=mn();function DM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DM.prototype=new J2.baseCalendar;cHe(DM.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,J2.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,J2.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,J2.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)}});J2.calendars.islamic=DM});var fue=z(()=>{var K2=yn(),vHe=mn();function EM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EM.prototype=new K2.baseCalendar;vHe(EM.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,K2.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,K2.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,K2.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)}});K2.calendars.julian=EM});var vue=z(()=>{var po=yn(),hHe=mn();function RM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RM.prototype=new po.baseCalendar;hHe(RM.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,po.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,po.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,po.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,po.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,po.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,po.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,po.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,po.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,po.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=PM(e+8+340,365);return[Math.floor(r/20)+1,PM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[cue(e+20,20),cue(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,po.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 PM(e,r){return e-r*Math.floor(e/r)}function cue(e,r){return PM(e-1,r)+1}po.calendars.mayan=RM});var due=z(()=>{var Qf=yn(),dHe=mn();function FM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}FM.prototype=new Qf.baseCalendar;var hue=Qf.instance("gregorian");dHe(FM.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,Qf.local.invalidYear||Qf.regionalOptions[""].invalidYear);return hue.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,Qf.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,Qf.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+hue.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)}});Qf.calendars.nanakshahi=FM});var pue=z(()=>{var e0=yn(),pHe=mn();function zM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zM.prototype=new e0.baseCalendar;pHe(zM.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,e0.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,e0.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,e0.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e0.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=e0.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]}});e0.calendars.nepali=zM});var mue=z(()=>{var Ev=yn(),mHe=mn();function c5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function f5(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}c5.prototype=new Ev.baseCalendar;mHe(c5.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,Ev.local.invalidYear);return f5(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,Ev.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,Ev.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i<e;i++)f5(i)&&n++;else if(e<0)for(var i=e;i<0;i++)f5(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,f5(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)}});Ev.calendars.persian=c5;Ev.calendars.jalali=c5});var yue=z(()=>{var r0=yn(),yHe=mn(),v5=r0.instance();function NM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}NM.prototype=new r0.baseCalendar;yHe(NM.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,r0.local.invalidYear),t=this._t2gYear(r.year());return v5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,r0.local.invalidYear),n=this._t2gYear(a.year());return v5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,r0.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,r0.local.invalidDate),n=this._t2gYear(a.year());return v5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=v5.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)}});r0.calendars.taiwan=NM});var gue=z(()=>{var t0=yn(),gHe=mn(),h5=t0.instance();function IM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IM.prototype=new t0.baseCalendar;gHe(IM.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,t0.local.invalidYear),t=this._t2gYear(r.year());return h5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,t0.local.invalidYear),n=this._t2gYear(a.year());return h5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,t0.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,t0.local.invalidDate),n=this._t2gYear(a.year());return h5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=h5.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)}});t0.calendars.thai=IM});var bue=z(()=>{var a0=yn(),bHe=mn();function BM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BM.prototype=new a0.baseCalendar;bHe(BM.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,a0.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,a0.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;i<yu.length;i++){if(yu[i]>a)return yu[n]-yu[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,a0.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+yu[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;a<yu.length&&!(yu[a]>r);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-yu[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=a0.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=a0.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});a0.calendars.ummalqura=BM;var yu=[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 _ue=z((UQe,xue)=>{"use strict";xue.exports=yn();aue();nue();iue();oue();lue();sue();uue();fue();vue();due();pue();mue();yue();gue();bue()});var que=z((GQe,Sue)=>{"use strict";var Tue=_ue(),Q2=ke(),Aue=Gt(),xHe=Aue.EPOCHJD,_He=Aue.ONEDAY,UM={valType:"enumerated",values:Q2.sortObjectKeys(Tue.calendars),editType:"calc",dflt:"gregorian"},Mue=function(e,r,t,a){var n={};return n[t]=UM,Q2.coerce(e,r,n,t,a)},wHe=function(e,r,t,a){for(var n=0;n<t.length;n++)Mue(e,r,t[n]+"calendar",a.calendar)},THe={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"},AHe={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"},MHe={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"]},d5="##",kHe={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:d5,w:d5,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function SHe(e,r,t){for(var a=Math.floor((r+.05)/_He)+xHe,n=kue(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=kHe[l],u?(u===d5?f=d5:f=n.formatDate(u[o]),e=e.slice(0,i)+f+e.slice(i+s),i+=f.length):i+=s;return e}var wue={};function kue(e){var r=wue[e];return r||(r=wue[e]=Tue.instance(e),r)}function e1(e){return Q2.extendFlat({},UM,{description:e})}function GM(e){return"Sets the calendar system to use with `"+e+"` date data."}var HM={xcalendar:e1(GM("x"))},ql=Q2.extendFlat({},HM,{ycalendar:e1(GM("y"))}),OM=Q2.extendFlat({},ql,{zcalendar:e1(GM("z"))}),Pv=e1(["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(" "));Sue.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:ql,bar:ql,box:ql,heatmap:ql,contour:ql,histogram:ql,histogram2d:ql,histogram2dcontour:ql,scatter3d:OM,surface:OM,mesh3d:OM,scattergl:ql,ohlc:HM,candlestick:HM},layout:{calendar:e1(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:Pv},yaxis:{calendar:Pv},scene:{xaxis:{calendar:Pv},yaxis:{calendar:Pv},zaxis:{calendar:Pv}},polar:{radialaxis:{calendar:Pv}}}},layoutAttributes:UM,handleDefaults:Mue,handleTraceDefaults:wHe,CANONICAL_SUNDAY:AHe,CANONICAL_TICK:THe,DFLTRANGE:MHe,getCal:kue,worldCalFmt:SHe}});var Cue=z((YQe,Lue)=>{"use strict";Lue.exports=que()});var qHe=z((VQe,Eue)=>{var Due=cX();Due.register([hZ(),e$(),xJ(),HJ(),rK(),aQ(),yQ(),oee(),Fee(),lse(),Kse(),Cue()]);Eue.exports=Due});return qHe();})();
/*! 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;
}));