plotly.js
Version:
The open source javascript graphing library that powers plotly
149 lines • 1.48 MB
JavaScript
/**
* plotly.js (cartesian - minified) v4.0.0
* Copyright 2012-2026, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
(
function(root, factory) {
if (typeof module === "object" && module.exports) {
module.exports = factory();
} else {
root.moduleName = factory();
}
} (typeof self !== "undefined" ? self : this, () => {
"use strict";var Plotly=(()=>{var Cce=Object.create;var Y0=Object.defineProperty,Ece=Object.defineProperties,Dce=Object.getOwnPropertyDescriptor,Pce=Object.getOwnPropertyDescriptors,Rce=Object.getOwnPropertyNames,iS=Object.getOwnPropertySymbols,zce=Object.getPrototypeOf,lS=Object.prototype.hasOwnProperty,Nce=Object.prototype.propertyIsEnumerable;var oS=(e,r,t)=>r in e?Y0(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))Nce.call(r,t)&&oS(e,t,r[t]);return e},Ut=(e,r)=>Ece(e,Pce(r));var hc=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var N=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},dc=(e,r)=>{for(var t in r)Y0(e,t,{get:r[t],enumerable:!0})},sS=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Rce(r))!lS.call(e,n)&&n!==t&&Y0(e,n,{get:()=>r[n],enumerable:!(a=Dce(r,n))||a.enumerable});return e};var cs=(e,r,t)=>(t=e!=null?Cce(zce(e)):{},sS(r||!e||!e.__esModule?Y0(t,"default",{value:e,enumerable:!0}):t,e)),un=e=>sS(Y0({},"__esModule",{value:!0}),e);var V0=N(uS=>{"use strict";uS.version="4.0.0"});var cS=N((fS,wp)=>{(function(r,t,a){t[r]=t[r]||a(),typeof wp!="undefined"&&wp.exports&&(wp.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,b,_){return Object.defineProperty(T,w,{value:b,writable:!0,configurable:_!==!1})}}catch(x){r=function(w,b,_){return w[b]=_,w}}a=(function(){var T,w,b;function _(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,q){b=new _(M,q),w?w.next=b:T=b,w=b,b=void 0},drain:function(){var M=T;for(T=w=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(x,T){a.add(x,T),t||(t=i(a.drain))}function l(x){var T,w=typeof x;return x!=null&&(w=="object"||w=="function")&&(T=x.then),typeof T=="function"?T:!1}function s(){for(var x=0;x<this.chain.length;x++)u(this,this.state===1?this.chain[x].success:this.chain[x].failure,this.chain[x]);this.chain.length=0}function u(x,T,w){var b,_;try{T===!1?w.reject(x.msg):(T===!0?b=x.msg:b=T.call(void 0,x.msg),b===w.promise?w.reject(TypeError("Promise-chain cycle")):(_=l(b))?_.call(b,w.resolve,w.reject):w.resolve(b))}catch(k){w.reject(k)}}function f(x){var T,w=this;if(!w.triggered){w.triggered=!0,w.def&&(w=w.def);try{(T=l(x))?o(function(){var b=new d(w);try{T.call(x,function(){f.apply(b,arguments)},function(){c.apply(b,arguments)})}catch(_){c.call(b,_)}}):(w.msg=x,w.state=1,w.chain.length>0&&o(s,w))}catch(b){c.call(new d(w),b)}}}function c(x){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=x,T.state=2,T.chain.length>0&&o(s,T))}function v(x,T,w,b){for(var _=0;_<T.length;_++)(function(M){x.resolve(T[M]).then(function(C){w(M,C)},b)})(_)}function d(x){this.def=x,this.triggered=!1}function p(x){this.promise=x,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(x){if(typeof x!="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(b,_){var k={success:typeof b=="function"?b:!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(b){return this.then(void 0,b)};try{x.call(void 0,function(b){f.call(T,b)},function(b){c.call(T,b)})}catch(w){c.call(T,w)}}var y=r({},"constructor",m,!1);return m.prototype=y,r(y,"__NPO__",0,!1),r(m,"resolve",function(T){var w=this;return T&&typeof T=="object"&&T.__NPO__===1?T:new w(function(_,k){if(typeof _!="function"||typeof k!="function")throw TypeError("Not a function");_(T)})}),r(m,"reject",function(T){return new this(function(b,_){if(typeof b!="function"||typeof _!="function")throw TypeError("Not a function");_(T)})}),r(m,"all",function(T){var w=this;return n.call(T)!="[object Array]"?w.reject(TypeError("Not an array")):T.length===0?w.resolve([]):new w(function(_,k){if(typeof _!="function"||typeof k!="function")throw TypeError("Not a function");var M=T.length,q=Array(M),C=0;v(w,T,function(P,R){q[P]=R,++C===M&&_(q)},k)})}),r(m,"race",function(T){var w=this;return n.call(T)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(_,k){if(typeof _!="function"||typeof k!="function")throw TypeError("Not a function");v(w,T,function(q,C){_(C)},k)})}),m})});var Dr=N((EHe,Tp)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,S=new Array(A);A--;)S[A]=g[A];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,S){s.call(this,g,A,S+"")},u.setProperty=function(g,A,S){f.call(this,g,A+"",S)}}e.ascending=c;function c(h,g){return h<g?-1:h>g?1:h>=g?0:NaN}e.descending=function(h,g){return g<h?-1:g>h?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,S=h.length,L,E;if(arguments.length===1){for(;++A<S;)if((E=h[A])!=null&&E>=E){L=E;break}for(;++A<S;)(E=h[A])!=null&&L>E&&(L=E)}else{for(;++A<S;)if((E=g.call(h,h[A],A))!=null&&E>=E){L=E;break}for(;++A<S;)(E=g.call(h,h[A],A))!=null&&L>E&&(L=E)}return L},e.max=function(h,g){var A=-1,S=h.length,L,E;if(arguments.length===1){for(;++A<S;)if((E=h[A])!=null&&E>=E){L=E;break}for(;++A<S;)(E=h[A])!=null&&E>L&&(L=E)}else{for(;++A<S;)if((E=g.call(h,h[A],A))!=null&&E>=E){L=E;break}for(;++A<S;)(E=g.call(h,h[A],A))!=null&&E>L&&(L=E)}return L},e.extent=function(h,g){var A=-1,S=h.length,L,E,O;if(arguments.length===1){for(;++A<S;)if((E=h[A])!=null&&E>=E){L=O=E;break}for(;++A<S;)(E=h[A])!=null&&(L>E&&(L=E),O<E&&(O=E))}else{for(;++A<S;)if((E=g.call(h,h[A],A))!=null&&E>=E){L=O=E;break}for(;++A<S;)(E=g.call(h,h[A],A))!=null&&(L>E&&(L=E),O<E&&(O=E))}return[L,O]};function v(h){return h===null?NaN:+h}function d(h){return!isNaN(h)}e.sum=function(h,g){var A=0,S=h.length,L,E=-1;if(arguments.length===1)for(;++E<S;)d(L=+h[E])&&(A+=L);else for(;++E<S;)d(L=+g.call(h,h[E],E))&&(A+=L);return A},e.mean=function(h,g){var A=0,S=h.length,L,E=-1,O=S;if(arguments.length===1)for(;++E<S;)d(L=v(h[E]))?A+=L:--O;else for(;++E<S;)d(L=v(g.call(h,h[E],E)))?A+=L:--O;if(O)return A/O},e.quantile=function(h,g){var A=(h.length-1)*g+1,S=Math.floor(A),L=+h[S-1],E=A-S;return E?L+E*(h[S]-L):L},e.median=function(h,g){var A=[],S=h.length,L,E=-1;if(arguments.length===1)for(;++E<S;)d(L=v(h[E]))&&A.push(L);else for(;++E<S;)d(L=v(g.call(h,h[E],E)))&&A.push(L);if(A.length)return e.quantile(A.sort(c),.5)},e.variance=function(h,g){var A=h.length,S=0,L,E,O=0,z=-1,H=0;if(arguments.length===1)for(;++z<A;)d(L=v(h[z]))&&(E=L-S,S+=E/++H,O+=E*(L-S));else for(;++z<A;)d(L=v(g.call(h,h[z],z)))&&(E=L-S,S+=E/++H,O+=E*(L-S));if(H>1)return O/(H-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var E=S+L>>>1;h(g[E],A)<0?S=E+1:L=E}return S},right:function(g,A,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var E=S+L>>>1;h(g[E],A)>0?L=E:S=E+1}return S}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(S=arguments.length)<3&&(A=h.length,S<2&&(g=0));for(var S=A-g,L,E;S;)E=Math.random()*S--|0,L=h[S+g],h[S+g]=h[E+g],h[E+g]=L;return h},e.permute=function(h,g){for(var A=g.length,S=new Array(A);A--;)S[A]=h[g[A]];return S},e.pairs=function(h){for(var g=0,A=h.length-1,S,L=h[0],E=new Array(A<0?0:A);g<A;)E[g]=[S=L,L=h[++g]];return E},e.transpose=function(h){if(!(E=h.length))return[];for(var g=-1,A=e.min(h,y),S=new Array(A);++g<A;)for(var L=-1,E,O=S[g]=new Array(E);++L<E;)O[L]=h[L][g];return S};function y(h){return h.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(h){var g=[];for(var A in h)g.push(A);return g},e.values=function(h){var g=[];for(var A in h)g.push(h[A]);return g},e.entries=function(h){var g=[];for(var A in h)g.push({key:A,value:h[A]});return g},e.merge=function(h){for(var g=h.length,A,S=-1,L=0,E,O;++S<g;)L+=h[S].length;for(E=new Array(L);--g>=0;)for(O=h[g],A=O.length;--A>=0;)E[--L]=O[A];return E};var x=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var S=[],L=T(x(A)),E=-1,O;if(h*=L,g*=L,A*=L,A<0)for(;(O=h+A*++E)>g;)S.push(O/L);else for(;(O=h+A*++E)<g;)S.push(O/L);return S};function T(h){for(var g=1;h*g%1;)g*=10;return g}function w(h,g){for(var A in g)Object.defineProperty(h.prototype,A,{value:g[A],enumerable:!1})}e.map=function(h,g){var A=new b;if(h instanceof b)h.forEach(function(z,H){A.set(z,H)});else if(Array.isArray(h)){var S=-1,L=h.length,E;if(arguments.length===1)for(;++S<L;)A.set(S,h[S]);else for(;++S<L;)A.set(g.call(h,E=h[S],S),E)}else for(var O in h)A.set(O,h[O]);return A};function b(){this._=Object.create(null)}var _="__proto__",k="\0";w(b,{has:C,get:function(h){return this._[M(h)]},set:function(h,g){return this._[M(h)]=g},remove:D,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:I,forEach:function(h){for(var g in this._)h.call(this,q(g),this._[g])}});function M(h){return(h+="")===_||h[0]===k?k+h:h}function q(h){return(h+="")[0]===k?h.slice(1):h}function C(h){return M(h)in this._}function D(h){return(h=M(h))in this._&&delete this._[h]}function P(){var h=[];for(var g in this._)h.push(q(g));return h}function R(){var h=0;for(var g in this._)++h;return h}function I(){for(var h in this._)return!1;return!0}e.nest=function(){var h={},g=[],A=[],S,L;function E(z,H,W){if(W>=g.length)return L?L.call(h,H):S?H.sort(S):H;for(var Z=-1,K=H.length,Q=g[W++],pe,we,ee,le=new b,ve;++Z<K;)(ve=le.get(pe=Q(we=H[Z])))?ve.push(we):le.set(pe,[we]);return z?(we=z(),ee=function(xe,Te){we.set(xe,E(z,Te,W))}):(we={},ee=function(xe,Te){we[xe]=E(z,Te,W)}),le.forEach(ee),we}function O(z,H){if(H>=g.length)return z;var W=[],Z=A[H++];return z.forEach(function(K,Q){W.push({key:K,values:O(Q,H)})}),Z?W.sort(function(K,Q){return Z(K.key,Q.key)}):W}return h.map=function(z,H){return E(H,z,0)},h.entries=function(z){return O(E(e.map,z,0),0)},h.key=function(z){return g.push(z),h},h.sortKeys=function(z){return A[g.length-1]=z,h},h.sortValues=function(z){return S=z,h},h.rollup=function(z){return L=z,h},h},e.set=function(h){var g=new F;if(h)for(var A=0,S=h.length;A<S;++A)g.add(h[A]);return g};function F(){this._=Object.create(null)}w(F,{has:C,add:function(h){return this._[M(h+="")]=!0,h},remove:D,values:P,size:R,empty:I,forEach:function(h){for(var g in this._)h.call(this,q(g))}}),e.behavior={};function B(h){return h}e.rebind=function(h,g){for(var A=1,S=arguments.length,L;++A<S;)h[L=arguments[A]]=U(h,g,g[L]);return h};function U(h,g,A){return function(){var S=A.apply(g,arguments);return S===g?h:S}}function G(h,g){if(g in h)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var A=0,S=V.length;A<S;++A){var L=V[A]+g;if(L in h)return L}}var V=["webkit","ms","moz","Moz","o","O"];function Y(){}e.dispatch=function(){for(var h=new X,g=-1,A=arguments.length;++g<A;)h[arguments[g]]=j(h);return h};function X(){}X.prototype.on=function(h,g){var A=h.indexOf("."),S="";if(A>=0&&(S=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(S):this[h].on(S,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(S,null);return this}};function j(h){var g=[],A=new b;function S(){for(var L=g,E=-1,O=L.length,z;++E<O;)(z=L[E].on)&&z.apply(this,arguments);return h}return S.on=function(L,E){var O=A.get(L),z;return arguments.length<2?O&&O.on:(O&&(O.on=null,g=g.slice(0,z=g.indexOf(O)).concat(g.slice(z+1)),A.remove(L)),E&&g.push(A.set(L,{on:E})),h)},S}e.event=null;function J(){e.event.preventDefault()}function ae(){for(var h=e.event,g;g=h.sourceEvent;)h=g;return h}function te(h){for(var g=new X,A=0,S=arguments.length;++A<S;)g[arguments[A]]=j(g);return g.of=function(L,E){return function(O){try{var z=O.sourceEvent=e.event;O.target=h,e.event=O,g[O.type].apply(L,E)}finally{e.event=z}}},g}e.requote=function(h){return h.replace(se,"\\$&")};var se=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,$={}.__proto__?function(h,g){h.__proto__=g}:function(h,g){for(var A in g)h[A]=g[A]};function fe(h){return $(h,ie),h}var oe=function(h,g){return g.querySelector(h)},ue=function(h,g){return g.querySelectorAll(h)},ce=function(h,g){var A=h.matches||h[G(h,"matchesSelector")];return ce=function(S,L){return A.call(S,L)},ce(h,g)};typeof Sizzle=="function"&&(oe=function(h,g){return Sizzle(h,g)[0]||null},ue=Sizzle,ce=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var ie=e.selection.prototype=[];ie.select=function(h){var g=[],A,S,L,E;h=ge(h);for(var O=-1,z=this.length;++O<z;){g.push(A=[]),A.parentNode=(L=this[O]).parentNode;for(var H=-1,W=L.length;++H<W;)(E=L[H])?(A.push(S=h.call(E,E.__data__,H,O)),S&&"__data__"in E&&(S.__data__=E.__data__)):A.push(null)}return fe(g)};function ge(h){return typeof h=="function"?h:function(){return oe(h,this)}}ie.selectAll=function(h){var g=[],A,S;h=Ce(h);for(var L=-1,E=this.length;++L<E;)for(var O=this[L],z=-1,H=O.length;++z<H;)(S=O[z])&&(g.push(A=t(h.call(S,S.__data__,z,L))),A.parentNode=S);return fe(g)};function Ce(h){return typeof h=="function"?h:function(){return ue(h,this)}}var _e="http://www.w3.org/1999/xhtml",Ee={svg:"http://www.w3.org/2000/svg",xhtml:_e,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:Ee,qualify:function(h){var g=h.indexOf(":"),A=h;return g>=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),Ee.hasOwnProperty(A)?{space:Ee[A],local:h}:h}},ie.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(Ae(g,h[g]));return this}return this.each(Ae(h,g))};function Ae(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function S(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function E(){this.setAttributeNS(h.space,h.local,g)}function O(){var H=g.apply(this,arguments);H==null?this.removeAttribute(h):this.setAttribute(h,H)}function z(){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:A:typeof g=="function"?h.local?z:O:h.local?E:L}function Se(h){return h.trim().replace(/\s+/g," ")}ie.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),S=(h=Ie(h)).length,L=-1;if(g=A.classList){for(;++L<S;)if(!g.contains(h[L]))return!1}else for(g=A.getAttribute("class");++L<S;)if(!Re(h[L]).test(g))return!1;return!0}for(g in h)this.each(Le(g,h[g]));return this}return this.each(Le(h,g))};function Re(h){return new RegExp("(?:^|\\s+)"+e.requote(h)+"(?:\\s+|$)","g")}function Ie(h){return(h+"").trim().split(/^|\s+/)}function Le(h,g){h=Ie(h).map(Ze);var A=h.length;function S(){for(var E=-1;++E<A;)h[E](this,g)}function L(){for(var E=-1,O=g.apply(this,arguments);++E<A;)h[E](this,O)}return typeof g=="function"?L:S}function Ze(h){var g=Re(h);return function(A,S){if(L=A.classList)return S?L.add(h):L.remove(h);var L=A.getAttribute("class")||"";S?(g.lastIndex=0,g.test(L)||A.setAttribute("class",Se(L+" "+h))):A.setAttribute("class",Se(L.replace(g," ")))}}ie.style=function(h,g,A){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g="");for(A in h)this.each(Je(A,h[A],g));return this}if(S<2){var L=this.node();return i(L).getComputedStyle(L,null).getPropertyValue(h)}A=""}return this.each(Je(h,g,A))};function Je(h,g,A){function S(){this.style.removeProperty(h)}function L(){this.style.setProperty(h,g,A)}function E(){var O=g.apply(this,arguments);O==null?this.style.removeProperty(h):this.style.setProperty(h,O,A)}return g==null?S:typeof g=="function"?E:L}ie.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 A(){delete this[h]}function S(){this[h]=g}function L(){var E=g.apply(this,arguments);E==null?delete this[h]:this[h]=E}return g==null?A:typeof g=="function"?L:S}ie.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},ie.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},ie.append=function(h){return h=qe(h),this.select(function(){return this.appendChild(h.apply(this,arguments))})};function qe(h){function g(){var S=this.ownerDocument,L=this.namespaceURI;return L===_e&&S.documentElement.namespaceURI===_e?S.createElement(h):S.createElementNS(L,h)}function A(){return this.ownerDocument.createElementNS(h.space,h.local)}return typeof h=="function"?h:(h=e.ns.qualify(h)).local?A:g}ie.insert=function(h,g){return h=qe(h),g=ge(g),this.select(function(){return this.insertBefore(h.apply(this,arguments),g.apply(this,arguments)||null)})},ie.remove=function(){return this.each(ze)};function ze(){var h=this.parentNode;h&&h.removeChild(this)}ie.data=function(h,g){var A=-1,S=this.length,L,E;if(!arguments.length){for(h=new Array(S=(L=this[0]).length);++A<S;)(E=L[A])&&(h[A]=E.__data__);return h}function O(Z,K){var Q,pe=Z.length,we=K.length,ee=Math.min(pe,we),le=new Array(we),ve=new Array(we),xe=new Array(pe),Te,he;if(g){var Ye=new b,or=new Array(pe),hr;for(Q=-1;++Q<pe;)(Te=Z[Q])&&(Ye.has(hr=g.call(Te,Te.__data__,Q))?xe[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&&(xe[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)xe[Q]=Z[Q]}ve.update=le,ve.parentNode=le.parentNode=xe.parentNode=Z.parentNode,z.push(ve),H.push(le),W.push(xe)}var z=cr([]),H=fe([]),W=fe([]);if(typeof h=="function")for(;++A<S;)O(L=this[A],h.call(L,L.parentNode.__data__,A));else for(;++A<S;)O(L=this[A],h);return H.enter=function(){return z},H.exit=function(){return W},H};function Qe(h){return{__data__:h}}ie.datum=function(h){return arguments.length?this.property("__data__",h):this.property("__data__")},ie.filter=function(h){var g=[],A,S,L;typeof h!="function"&&(h=re(h));for(var E=0,O=this.length;E<O;E++){g.push(A=[]),A.parentNode=(S=this[E]).parentNode;for(var z=0,H=S.length;z<H;z++)(L=S[z])&&h.call(L,L.__data__,z,E)&&A.push(L)}return fe(g)};function re(h){return function(){return ce(this,h)}}ie.order=function(){for(var h=-1,g=this.length;++h<g;)for(var A=this[h],S=A.length-1,L=A[S],E;--S>=0;)(E=A[S])&&(L&&L!==E.nextSibling&&L.parentNode.insertBefore(E,L),L=E);return this},ie.sort=function(h){h=be.apply(this,arguments);for(var g=-1,A=this.length;++g<A;)this[g].sort(h);return this.order()};function be(h){return arguments.length||(h=c),function(g,A){return g&&A?h(g.__data__,A.__data__):!g-!A}}ie.each=function(h){return Ge(this,function(g,A,S){h.call(g,g.__data__,A,S)})};function Ge(h,g){for(var A=0,S=h.length;A<S;A++)for(var L=h[A],E=0,O=L.length,z;E<O;E++)(z=L[E])&&g(z,E,A);return h}ie.call=function(h){var g=t(arguments);return h.apply(g[0]=this,g),this},ie.empty=function(){return!this.node()},ie.node=function(){for(var h=0,g=this.length;h<g;h++)for(var A=this[h],S=0,L=A.length;S<L;S++){var E=A[S];if(E)return E}return null},ie.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=ie.append,Pe.empty=ie.empty,Pe.node=ie.node,Pe.call=ie.call,Pe.size=ie.size,Pe.select=function(h){for(var g=[],A,S,L,E,O,z=-1,H=this.length;++z<H;){L=(E=this[z]).update,g.push(A=[]),A.parentNode=E.parentNode;for(var W=-1,Z=E.length;++W<Z;)(O=E[W])?(A.push(L[W]=S=h.call(E.parentNode,O.__data__,W,z)),S.__data__=O.__data__):A.push(null)}return fe(g)},Pe.insert=function(h,g){return arguments.length<2&&(g=me(this)),ie.insert.call(this,h,g)};function me(h){var g,A;return function(S,L,E){var O=h[E].update,z=O.length,H;for(E!=A&&(A=E,g=0),L>=g&&(g=L+1);!(H=O[g])&&++g<z;);return H}}e.select=function(h){var g;return typeof h=="string"?(g=[oe(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])},ie.on=function(h,g,A){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g=!1);for(A in h)this.each(Me(A,h[A],g));return this}if(S<2)return(S=this.node()["__on"+h])&&S._;A=!1}return this.each(Me(h,g,A))};function Me(h,g,A){var S="__on"+h,L=h.indexOf("."),E=Xe;L>0&&(h=h.slice(0,L));var O=He.get(h);O&&(h=O,E=Oe);function z(){var Z=this[S];Z&&(this.removeEventListener(h,Z,Z.$),delete this[S])}function H(){var Z=E(g,t(arguments));z.call(this),this.addEventListener(h,this[S]=Z,Z.$=A),Z._=g}function W(){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:z:g?Y:W}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(h){"on"+h in a&&He.remove(h)});function Xe(h,g){return function(A){var S=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function Oe(h,g){var A=Xe(h,g);return function(S){var L=this,E=S.relatedTarget;(!E||E!==L&&!(E.compareDocumentPosition(L)&8))&&A.call(L,S)}}var je,tr=0;function ir(h){var g=".dragsuppress-"+ ++tr,A="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:G(h.style,"userSelect")),je){var L=n(h).style,E=L[je];L[je]="none"}return function(O){if(S.on(g,null),je&&(L[je]=E),O){var z=function(){S.on(A,null)};S.on(A,function(){J(),z()},!0),setTimeout(z,0)}}}e.mouse=function(h){return De(h,ae())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function De(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var S=A.createSVGPoint();if(lr<0){var L=i(h);if(L.scrollX||L.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var E=A[0][0].getScreenCTM();lr=!(E.f||E.e),A.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 O=h.getBoundingClientRect();return[g.clientX-O.left-h.clientLeft,g.clientY-O.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=ae().changedTouches),g){for(var S=0,L=g.length,E;S<L;++S)if((E=g[S]).identifier===A)return De(h,E)}},e.behavior.drag=function(){var h=te(L,"drag","dragstart","dragend"),g=null,A=E(Y,e.mouse,i,"mousemove","mouseup"),S=E($e,e.touch,B,"touchmove","touchend");function L(){this.on("mousedown.drag",A).on("touchstart.drag",S)}function E(O,z,H,W,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=O(),ve=".drag"+(le==null?"":"-"+le),xe,Te=e.select(H(Q)).on(W+ve,or).on(Z+ve,hr),he=ir(Q),Ye=z(pe,le);g?(xe=g.apply(K,arguments),xe=[xe.x-Ye[0],xe.y-Ye[1]]):xe=[0,0],we({type:"dragstart"});function or(){var fr=z(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]+xe[0],y:fr[1]+xe[1],dx:br,dy:xr}))}function hr(){z(pe,le)&&(Te.on(W+ve,null).on(Z+ve,null),he(ee),we({type:"dragend"}))}}}return L.origin=function(O){return arguments.length?(g=O,L):g},e.rebind(L,h,"on")};function $e(){return e.event.changedTouches[0].identifier}e.touches=function(h,g){return arguments.length<2&&(g=ae().touches),g?t(g).map(function(A){var S=De(h,A);return S.identifier=A.identifier,S}):[]};var Fe=1e-6,pr=Fe*Fe,mr=Math.PI,sr=2*mr,yr=sr-Fe,ne=mr/2,ye=mr/180,Ne=180/mr;function Be(h){return h>0?1:h<0?-1:0}function $r(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[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 A=h[0],S=h[1],L=h[2],E=g[0],O=g[1],z=g[2],H=E-A,W=O-S,Z=H*H+W*W,K,Q;if(Z<pr)Q=Math.log(z/L)/ea,K=function(xe){return[A+xe*H,S+xe*W,L*Math.exp(ea*xe*Q)]};else{var pe=Math.sqrt(Z),we=(z*z-L*L+ln*Z)/(2*L*ja*pe),ee=(z*z-L*L-ln*Z)/(2*z*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(xe){var Te=xe*Q,he=Lt(le),Ye=L/(ja*pe)*(he*Qt(ea*Te+le)-yt(le));return[A+Ye*H,S+Ye*W,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,A,S,L=[960,500],E=oa,O=250,z=0,H="mousedown.zoom",W="mousemove.zoom",Z="mouseup.zoom",K,Q="touchstart.zoom",pe,we=te(Te,"zoomstart","zoom","zoomend"),ee,le,ve,xe;_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,Er).on(_t+".zoom",sa).on("dblclick.zoom",gt).on(Q,at)}Te.event=function(ar){ar.each(function(){var Ir=we.of(this,arguments),Or=h;_u?e.select(this).transition().each("start.zoom",function(){h=this.__chart__||{x:0,y:0,k:1},xr(Ir)}).tween("zoom:zoom",function(){var nt=L[0],Xt=L[1],Aa=A?A[0]:nt/2,$a=A?A[1]:Xt/2,bn=e.interpolateZoom([(Aa-h.x)/h.k,($a-h.y)/h.k,nt/h.k],[(Aa-Or.x)/Or.k,($a-Or.y)/Or.k,nt/Or.k]);return function(zn){var xn=bn(zn),Gn=nt/xn[2];this.__chart__=h={x:Aa-xn[0]*Gn,y:$a-xn[1]*Gn,k:Gn},Nr(Ir)}}).each("interrupt.zoom",function(){wr(Ir)}).each("end.zoom",function(){wr(Ir)}):(this.__chart__=h,xr(Ir),Nr(Ir),wr(Ir))})},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?(E=ar==null?oa:[+ar[0],+ar[1]],Te):E},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?(O=+ar,Te):O},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?(xe=ar,ve=ar.copy(),h={x:0,y:0,k:1},Te):xe};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(E[0],Math.min(E[1],ar))}function hr(ar,Ir){Ir=Ye(Ir),h.x+=ar[0]-Ir[0],h.y+=ar[1]-Ir[1]}function fr(ar,Ir,Or,nt){ar.__chart__={x:h.x,y:h.y,k:h.k},or(Math.pow(2,nt)),hr(A=Ir,Or),ar=e.select(ar),O>0&&(ar=ar.transition().duration(O)),ar.call(Te.event)}function br(){le&&le.domain(ee.range().map(function(ar){return(ar-h.x)/h.k}).map(ee.invert)),xe&&xe.domain(ve.range().map(function(ar){return(ar-h.y)/h.k}).map(ve.invert))}function xr(ar){z++||ar({type:"zoomstart"})}function Nr(ar){br(),ar({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function wr(ar){--z||(ar({type:"zoomend"}),A=null)}function Er(){var ar=this,Ir=we.of(ar,arguments),Or=0,nt=e.select(i(ar)).on(W,$a).on(Z,bn),Xt=he(e.mouse(ar)),Aa=ir(ar);gp.call(ar),xr(Ir);function $a(){Or=1,hr(e.mouse(ar),Xt),Nr(Ir)}function bn(){nt.on(W,null).on(Z,null),Aa(Or),wr(Ir)}}function at(){var ar=this,Ir=we.of(ar,arguments),Or={},nt=0,Xt,Aa=".zoom-"+e.event.changedTouches[0].identifier,$a="touchmove"+Aa,bn="touchend"+Aa,zn=[],xn=e.select(ar),Gn=ir(ar);Yn(),xr(Ir),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 Or&&(Or[Ja.identifier]=he(Ja))}),go}function Yn(){var go=e.event.target;e.select(go).on($a,wu).on(bn,Lce),zn.push(go);for(var Ja=e.event.changedTouches,Li=0,Xo=Ja.length;Li<Xo;++Li)Or[Ja[Li].identifier]=null;var Ci=sn(),vc=Date.now();if(Ci.length===1){if(vc-pe<500){var Tu=Ci[0];fr(ar,Tu,Or[Tu.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),J()}pe=vc}else if(Ci.length>1){var Tu=Ci[0],fs=Ci[1],_p=Tu[0]-fs[0],nS=Tu[1]-fs[1];nt=_p*_p+nS*nS}}function wu(){var go=e.touches(ar),Ja,Li,Xo,Ci;gp.call(ar);for(var vc=0,Tu=go.length;vc<Tu;++vc,Ci=null)if(Xo=go[vc],Ci=Or[Xo.identifier]){if(Li)break;Ja=Xo,Li=Ci}if(Ci){var fs=(fs=Xo[0]-Ja[0])*fs+(fs=Xo[1]-Ja[1])*fs,_p=nt&&Math.sqrt(fs/nt);Ja=[(Ja[0]+Xo[0])/2,(Ja[1]+Xo[1])/2],Li=[(Li[0]+Ci[0])/2,(Li[1]+Ci[1])/2],or(_p*Xt)}pe=null,hr(Ja,Li),Nr(Ir)}function Lce(){if(e.event.touches.length){for(var go=e.event.changedTouches,Ja=0,Li=go.length;Ja<Li;++Ja)delete Or[go[Ja].identifier];for(var Xo in Or)return void sn()}e.selectAll(zn).on(Aa,null),xn.on(H,Er).on(Q,at),Gn(),wr(Ir)}}function sa(){var ar=we.of(this,arguments);K?clearTimeout(K):(gp.call(this),g=he(A=S||e.mouse(this)),xr(ar)),K=setTimeout(function(){K=null,wr(ar)},50),J(),or(Math.pow(2,vr()*.002)*h.k),hr(A,g),Nr(ar)}function gt(){var ar=e.mouse(this),Ir=Math.log(h.k)/Math.LN2;fr(this,ar,he(ar),e.event.shiftKey?Math.ceil(Ir)-1:Math.floor(Ir)+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,A){return this instanceof vt?(this.h=+h,this.s=+g,void(this.l=+A)):arguments.length<2?h instanceof vt?new vt(h.h,h.s,h.l):ep(""+h,rp,vt):new vt(h,g,A)}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 At(this.h,this.s,this.l)};function At(h,g,A){var S,L;h=isNaN(h)?0:(h%=360)<0?h+360:h,g=isNaN(g)||g<0?0:g>1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,S=2*A-L;function E(z){return z>360?z-=360:z<0&&(z+=360),z<60?S+(L-S)*z/60:z<180?L:z<240?S+(L-S)*(240-z)/60:S}function O(z){return Math.round(E(z)*255)}return new la(O(h+120),O(h),O(h-120))}e.hcl=tt;function tt(h,g,A){return this instanceof tt?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof tt?new tt(h.h,h.c,h.l):h instanceof Vt?nc(h.l,h.a,h.b):nc((h=tp((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new tt(h,g,A)}var ra=tt.prototype=new Yr;ra.brighter=function(h){return new tt(this.h,this.c,Math.min(100,this.l+Ct*(arguments.length?h:1)))},ra.darker=function(h){return new tt(this.h,this.c,Math.max(0,this.l-Ct*(arguments.length?h:1)))},ra.rgb=function(){return Dn(this.h,this.c,this.l).rgb()};function Dn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Vt(A,Math.cos(h*=ye)*g,Math.sin(h)*g)}e.lab=Vt;function Vt(h,g,A){return this instanceof Vt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Vt?new Vt(h.l,h.a,h.b):h instanceof tt?Dn(h.h,h.c,h.l):tp((h=la(h)).r,h.g,h.b):new Vt(h,g,A)}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,A){var S=(h+16)/116,L=S+g/500,E=S-A/200;return L=Pn(L)*ta,S=Pn(S)*aa,E=Pn(E)*ht,new la(li(3.2404542*L-1.5371385*S-.4985314*E),li(-.969266*L+1.8760108*S+.041556*E),li(.0556434*L-.2040259*S+1.0572252*E))}function nc(h,g,A){return h>0?new tt(Math.atan2(A,g)*Ne,Math.sqrt(g*g+A*A),h):new tt(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,A){return this instanceof la?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof la?new la(h.r,h.g,h.b):ep(""+h,la,At):new la(h,g,A)}function ic(h){return new la(h>>16,h>>8&255,h&255)}function ls(h){return ic(h)+""}var Rn=la.prototype=new Yr;Rn.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,S=this.b,L=30;return!g&&!A&&!S?new la(L,L,L):(g&&g<L&&(g=L),A&&A<L&&(A=L),S&&S<L&&(S=L),new la(Math.min(255,g/h),Math.min(255,A/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 rp(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 ep(h,g,A){var S=0,L=0,E=0,O,z,H;if(O=/([a-z]+)\((.*)\)/.exec(h=h.toLowerCase()),O)switch(z=O[2].split(","),O[1]){case"hsl":return A(parseFloat(z[0]),parseFloat(z[1])/100,parseFloat(z[2])/100);case"rgb":return g(R0(z[0]),R0(z[1]),R0(z[2]))}return(H=Ar.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,E=H&15,E=E<<4|E):h.length===7&&(S=(H&16711680)>>16,L=(H&65280)>>8,E=H&255)),g(S,L,E))}function rp(h,g,A){var S=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),E=L-S,O,z,H=(L+S)/2;return E?(z=H<.5?E/(L+S):E/(2-L-S),h==L?O=(g-A)/E+(g<A?6:0):g==L?O=(A-h)/E+2:O=(h-g)/E+4,O*=60):(O=NaN,z=H>0&&H<1?0:O),new vt(O,z,H)}function tp(h,g,A){h=P0(h),g=P0(g),A=P0(A);var S=mo((.4124564*h+.3575761*g+.1804375*A)/ta),L=mo((.2126729*h+.7151522*g+.072175*A)/aa),E=mo((.0193339*h+.119192*g+.9503041*A)/ht);return Vt(116*L-16,500*(S-L),200*(L-E))}function P0(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function R0(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Ar=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Ar.forEach(function(h,g){Ar.set(h,ic(g))});function Mr(h){return typeof h=="function"?h:function(){return h}}e.functor=Mr,e.xhr=dt(B);function dt(h){return function(g,A,S){return arguments.length===2&&typeof A=="function"&&(S=A,A=null),ur(g,A,h,S)}}function ur(h,g,A,S){var L={},E=e.dispatch("beforesend","progress","load","error"),O={},z=new XMLHttpRequest,H=null;self.XDomainRequest&&!("withCredentials"in z)&&/^(http(s)?:)?\/\//.test(h)&&(z=new XDomainRequest),"onload"in z?z.onload=z.onerror=W:z.onreadystatechange=function(){z.readyState>3&&W()};function W(){var Z=z.status,K;if(!Z&&zt(z)||Z>=200&&Z<300||Z===304){try{K=A.call(L,z)}catch(Q){E.error.call(L,Q);return}E.load.call(L,K)}else E.error.call(L,z)}return z.onprogress=function(Z){var K=e.event;e.event=Z;try{E.progress.call(L,z)}finally{e.event=K}},L.header=function(Z,K){return Z=(Z+"").toLowerCase(),arguments.length<2?O[Z]:(K==null?delete O[Z]:O[Z]=K+"",L)},L.mimeType=function(Z){return arguments.length?(g=Z==null?null:Z+"",L):g},L.responseType=function(Z){return arguments.length?(H=Z,L):H},L.response=function(Z){return A=Z,L},["get","post"].forEach(function(Z){L[Z]=function(){return L.send.apply(L,[Z].concat(t(arguments)))}}),L.send=function(Z,K,Q){if(arguments.length===2&&typeof K=="function"&&(Q=K,K=null),z.open(Z,h,!0),g!=null&&!("accept"in O)&&(O.accept=g+",*/*"),z.setRequestHeader)for(var pe in O)z.setRequestHeader(pe,O[pe]);return g!=null&&z.overrideMimeType&&z.overrideMimeType(g),H!=null&&(z.responseType=H),Q!=null&&L.on("error",Q).on("load",function(we){Q(null,we)}),E.beforesend.call(L,z),z.send(K==null?null:K),L},L.abort=function(){return z.abort(),L},e.rebind(L,E,"on"),S==null?L:L.get(gn(S))}function gn(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function zt(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+`
]`),S=h.charCodeAt(0);function L(W,Z,K){arguments.length<3&&(K=Z,Z=null);var Q=ur(W,g,Z==null?E:O(Z),K);return Q.row=function(pe){return arguments.length?Q.response((Z=pe)==null?E:O(pe)):Z},Q}function E(W){return L.parse(W.responseText)}function O(W){return function(Z){return L.parse(Z.responseText,W)}}L.parse=function(W,Z){var K;return L.parseRows(W,function(Q,pe){if(K)return K(Q,pe-1);var we=function(ee){for(var le={},ve=Q.length,xe=0;xe<ve;++xe)le[Q[xe]]=ee[xe];return le};K=Z?function(ee,le){return Z(we(ee),le)}:we})},L.parseRows=function(W,Z){var K={},Q={},pe=[],we=W.length,ee=0,le=0,ve,xe;function Te(){if(ee>=we)return Q;if(xe)return xe=!1,K;var Ye=ee;if(W.charCodeAt(Ye)===34){for(var or=Ye;or++<we;)if(W.charCodeAt(or)===34){if(W.charCodeAt(or+1)!==34)break;++or}ee=or+2;var hr=W.charCodeAt(or+1);return hr===13?(xe=!0,W.charCodeAt(or+2)===10&&++ee):hr===10&&(xe=!0),W.slice(Ye+1,or).replace(/""/g,'"')}for(;ee<we;){var hr=W.charCodeAt(ee++),fr=1;if(hr===10)xe=!0;else if(hr===13)xe=!0,W.charCodeAt(ee)===10&&(++ee,++fr);else if(hr!==S)continue;return W.slice(Ye,ee-fr)}return W.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(W){if(Array.isArray(W[0]))return L.formatRows(W);var Z=new F,K=[];return W.forEach(function(Q){for(var pe in Q)Z.has(pe)||K.push(Z.add(pe))}),[K.map(H).join(h)].concat(W.map(function(Q){return K.map(function(pe){return H(Q[pe])}).join(h)})).join(`
`)},L.formatRows=function(W){return W.map(z).join(`
`)};function z(W){return W.map(H).join(h)}function H(W){return A.test(W)?'"'+W.replace(/\"/g,'""')+'"':W}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Xa,Za,Si,gu,YA=this[G(this,"requestAnimationFrame")]||function(h){setTimeout(h,17)};e.timer=function(){ap.apply(this,arguments)};function ap(h,g,A){var S=arguments.length;S<2&&(g=0),S<3&&(A=Date.now());var L=A+g,E={c:h,t:L,n:null};return Za?Za.n=E:Xa=E,Za=E,Si||(gu=clearTimeout(gu),Si=1,YA(p5)),E}function p5(){var h=VA(),g=jA()-h;g>24?(isFinite(g)&&(clearTimeout(gu),gu=setTimeout(p5,g)),Si=0):(Si=1,YA(p5))}e.timer.flush=function(){VA(),jA()};function VA(){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 jA(){for(var h,g=Xa,A=1/0;g;)g.c?(g.t<A&&(A=g.t),g=(h=g).n):g=h?h.n=g.n:Xa=g.n;return Za=h,A}e.round=function(h,g){return g?Math.round(h*(g=Math.pow(10,g)))/g:Math.round(h)},e.geom={};function oc(h){return h[0]}function z0(h){return h[1]}e.geom.hull=function(h){var g=oc,A=z0;if(arguments.length)return S(h);function S(L){if(L.length<3)return[];var E=Mr(g),O=Mr(A),z,H=L.length,W=[],Z=[];for(z=0;z<H;z++)W.push([+E.call(this,L[z],z),+O.call(this,L[z],z),z]);for(W.sort(Due),z=0;z<H;z++)Z.push([W[z][0],-W[z][1]]);var K=WA(W),Q=WA(Z),pe=Q[0]===K[0],we=Q[Q.length-1]===K[K.length-1],ee=[];for(z=K.length-1;z>=0;--z)ee.push(L[W[K[z]][2]]);for(z=+pe;z<Q.length-we;++z)ee.push(L[W[Q[z]][2]]);return ee}return S.x=function(L){return arguments.length?(g=L,S):g},S.y=function(L){return arguments.length?(A=L,S):A},S};function WA(h){for(var g=h.length,A=[0,1],S=2,L=2;L<g;L++){for(;S>1&&$r(h[A[S-2]],h[A[S-1]],h[L])<=0;)--S;A[S++]=L}return A.slice(0,S)}function Due(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return $(h,np),h};var np=e.geom.polygon.prototype=[];np.area=function(){for(var h=-1,g=this.length,A,S=this[g-1],L=0;++h<g;)A=S,S=this[h],L+=A[1]*S[0]-A[0]*S[1];return L*.5},np.centroid=function(h){var g=-1,A=this.length,S=0,L=0,E,O=this[A-1],z;for(arguments.length||(h=-1/(6*this.area()));++g<A;)E=O,O=this[g],z=E[0]*O[1]-O[0]*E[1],S+=(E[0]+O[0])*z,L+=(E[1]+O[1])*z;return[S*h,L*h]},np.clip=function(h){for(var g,A=XA(h),S=-1,L=this.length-XA(this),E,O,z=this[L-1],H,W,Z;++S<L;){for(g=h.slice(),h.length=0,H=this[S],W=g[(O=g.length-A)-1],E=-1;++E<O;)Z=g[E],m5(Z,z,H)?(m5(W,z,H)||h.push(y5(W,Z,z,H)),h.push(Z)):m5(W,z,H)&&h.push(y5(W,Z,z,H)),W=Z;A&&h.push(h[0]),z=H}return h};function m5(h,g,A){return(A[0]-g[0])*(h[1]-g[1])<(A[1]-g[1])*(h[0]-g[0])}function y5(h,g,A,S){var L=h[0],E=A[0],O=g[0]-L,z=S[0]-E,H=h[1],W=A[1],Z=g[1]-H,K=S[1]-W,Q=(z*(H-W)-K*(L-E))/(K*O-z*Z);return[L+Q*O,H+Q*Z]}function XA(h){var g=h[0],A=h[h.length-1];return!(g[0]-A[0]||g[1]-A[1])}var lc,bu,sc,ZA=[],g5,N0,$A=[];function Pue(){lp(this),this.edge=this.site=this.circle=null}function JA(h){var g=ZA.pop()||new Pue;return g.site=h,g}function b5(h){fc(h),sc.remove(h),ZA.push(h),lp(h)}function Rue(h){var g=h.circle,A=g.x,S=g.cy,L={x:A,y:S},E=h.P,O=h.N,z=[h];b5(h);for(var H=E;H.circle&&x(A-H.circle.x)<Fe&&x(S-H.circle.cy)<Fe;)E=H.P,z.unshift(H),b5(H),H=E;z.unshift(H),fc(H);for(var W=O;W.circle&&x(A-W.circle.x)<Fe&&x(S-W.circle.cy)<Fe;)O=W.N,z.push(W),b5(W),W=O;z.push(W),fc(W);var Z=z.length,K;for(K=1;K<Z;++K)W=z[K],H=z[K-1],ip(W.edge,H.site,W.site,L);H=z[0],W=z[Z-1],W.edge=I0(H.site,W.site,null,L),uc(H),uc(W)}function zue(h){for(var g=h.x,A=h.y,S,L,E,O,z=sc._;z;)if(E=KA(z,A)-g,E>Fe)z=z.L;else if(O=g-Nue(z,A),O>Fe){if(!z.R){S=z;break}z=z.R}else{E>-Fe?(S=z.P,L=z):O>-Fe?(S=z,L=z.N):S=L=z;break}var H=JA(h);if(sc.insert(S,H),!(!S&&!L)){if(S===L){fc(S),L=JA(S.site),sc.insert(H,L),H.edge=L.edge=I0(S.site,H.site),uc(S),uc(L);return}if(!L){H.edge=I0(S.site,H.site);return}fc(S),fc(L);var W=S.site,Z=W.x,K=W.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),xe=Q*Q+pe*pe,Te=ee*ee+le*le,he={x:(le*xe-pe*Te)/ve+Z,y:(Q*Te-ee*xe)/ve+K};ip(L.edge,W,we,he),H.edge=I0(W,h,null,he),L.edge=I0(h,we,null,he),uc(S),uc(L)}}function KA(h,g){var A=h.site,S=A.x,L=A.y,E=L-g;if(!E)return S;var O=h.P;if(!O)return-1/0;A=O.site;var z=A.x,H=A.y,W=H-g;if(!W)return z;var Z=z-S,K=1/E-1/W,Q=Z/W;return K?(-Q+Math.sqrt(Q*Q-2*K*(Z*Z/(-2*W)-H+W/2+L-E/2)))/K+S:(S+z)/2}function Nue(h,g){var A=h.N;if(A)return KA(A,g);var S=h.site;return S.y===g?S.x:1/0}function QA(h){this.site=h,this.edges=[]}QA.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort(ek),h.length};function Iue(h){for(var g=h[0][0],A=h[1][0],S=h[0][1],L=h[1][1],E,O,z,H,W=bu,Z=W.length,K,Q,pe,we,ee,le;Z--;)if(K=W[Z],!(!K||!K.prepare()))for(pe=K.edges,we=pe.length,Q=0;Q<we;)le=pe[Q].end(),z=le.x,H=le.y,ee=pe[++Q%we].start(),E=ee.x,O=ee.y,(x(z-E)>Fe||x(H-O)>Fe)&&(pe.splice(Q,0,new op(Uue(K.site,le,x(z-g)<Fe&&L-H>Fe?{x:g,y:x(E-g)<Fe?O:L}:x(H-L)<Fe&&A-z>Fe?{x:x(O-L)<Fe?E:A,y:L}:x(z-A)<Fe&&H-S>Fe?{x:A,y:x(E-A)<Fe?O:S}:x(H-S)<Fe&&z-g>Fe?{x:x(O-S)<Fe?E:g,y:S}:null),K.site,null)),++we)}function ek(h,g){return g.angle-h.angle}function Fue(){lp(this),this.x=this.y=this.arc=this.site=this.cy=null}function uc(h){var g=h.P,A=h.N;if(!(!g||!A)){var S=g.site,L=h.site,E=A.site;if(S!==E){var O=L.x,z=L.y,H=S.x-O,W=S.y-z,Z=E.x-O,le=E.y-z,K=2*(H*le-W*Z);if(!(K>=-pr)){var Q=H*H+W*W,pe=Z*Z+le*le,we=(le*Q-W*pe)/K,ee=(H*pe-Z*Q)/K,le=ee+z,ve=$A.pop()||new Fue;ve.arc=h,ve.site=L,ve.x=we+O,ve.y=le+Math.sqrt(we*we+ee*ee),ve.cy=le,h.circle=ve;for(var xe=null,Te=N0._;Te;)if(ve.y<Te.y||ve.y===Te.y&&ve.x<=Te.x)if(Te.L)Te=Te.L;else{xe=Te.P;break}else if(Te.R)Te=Te.R;else{xe=Te;break}N0.insert(xe,ve),xe||(g5=ve)}}}}function fc(h){var g=h.circle;g&&(g.P||(g5=g.N),N0.remove(g),$A.push(g),lp(g),h.circle=null)}function Oue(h,g,A,S){return function(L){var E=L.a,O=L.b,z=E.x,H=E.y,W=O.x,Z=O.y,K=0,Q=1,pe=W-z,we=Z-H,ee;if(ee=h-z,!(!pe&&ee>0)){if(ee/=pe,pe<0){if(ee<K)return;ee<Q&&(Q=ee)}else if(pe>0){if(ee>Q)return;ee>K&&(K=ee)}if(ee=A-z,!(!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:z+K*pe,y:H+K*we}),Q<1&&(L.b={x:z+Q*pe,y:H+Q*we}),L}}}}}}function Bue(h){for(var g=lc,A=Oue(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,L;S--;)L=g[S],(!Hue(L,h)||!A(L)||x(L.a.x-L.b.x)<Fe&&x(L.a.y-L.b.y)<Fe)&&(L.a=L.b=null,g.splice(S,1))}function Hue(h,g){var A=h.b;if(A)return!0;var S=h.a,L=g[0][0],E=g[1][0],O=g[0][1],z=g[1][1],H=h.l,W=h.r,Z=H.x,K=H.y,Q=W.x,pe=W.y,we=(Z+Q)/2,ee=(K+pe)/2,le,ve;if(pe===K){if(we<L||we>=E)return;if(Z>Q){if(!S)S={x:we,y:O};else if(S.y>=z)return;A={x:we,y:z}}else{if(!S)S={x:we,y:z};else if(S.y<O)return;A={x:we,y:O}}}else if(le=(Z-Q)/(pe-K),ve=ee-le*we,le<-1||le>1)if(Z>Q){if(!S)S={x:(O-ve)/le,y:O};else if(S.y>=z)return;A={x:(z-ve)/le,y:z}}else{if(!S)S={x:(z-ve)/le,y:z};else if(S.y<O)return;A={x:(O-ve)/le,y:O}}else if(K<pe){if(!S)S={x:L,y:le*L+ve};else if(S.x>=E)return;A={x:E,y:le*E+ve}}else{if(!S)S={x:E,y:le*E+ve};else if(S.x<L)return;A={x:L,y:le*L+ve}}return h.a=S,h.b=A,!0}function rk(h,g){this.l=h,this.r=g,this.a=this.b=null}function I0(h,g,A,S){var L=new rk(h,g);return lc.push(L),A&&ip(L,h,g,A),S&&ip(L,g,h,S),bu[h.i].edges.push(new op(L,h,g)),bu[g.i].edges.push(new op(L,g,h)),L}function Uue(h,g,A){var S=new rk(h,null);return S.a=g,S.b=A,lc.push(S),S}function ip(h,g,A,S){!h.a&&!h.b?(h.a=S,h.l=g,h.r=A):h.l===A?h.b=S:h.a=S}function op(h,g,A){var S=h.a,L=h.b;this.edge=h,this.site=g,this.angle=A?Math.atan2(A.y-g.y,A.x-g.x):h.l===g?Math.atan2(L.x-S.x,S.y-L.y):Math.atan2(S.x-L.x,L.y-S.y)}op.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 lp(h){h.U=h.C=h.L=h.R=h.P=h.N=null}x5.prototype={insert:function(h,g){var A,S,L;if(h){if(g.P=h,g.N=h.N,h.N&&(h.N.P=g),h.N=g,h.R){for(h=h.R;h.L;)h=h.L;h.L=g}else h.R=g;A=h}else this._?(h=tk(this._),g.P=null,g.N=h,h.P=h.L=g,A=h):(g.P=g.N=null,this._=g,A=null);for(g.L=g.R=null,g.U=A,g.C=!0,h=g;A&&A.C;)S=A.U,A===S.L?(L=S.R,L&&L.C?(A.C=L.C=!1,S.C=!0,h=S):(h===A.R&&(F0(this,A),h=A,A=h.U),A.C=!1,S.C=!0,O0(this,S))):(L=S.L,L&&L.C?(A.C=L.C=!1,S.C=!0,h=S):(h===A.L&&(O0(this,A),h=A,A=h.U),A.C=!1,S.C=!0,F0(this,S))),A=h.U;this._.C=!1},remove:function(h){h.N&&(h.N.P=h.P),h.P&&(h.P.N=h.N),h.N=h.P=null;var g=h.U,A,S=h.L,L=h.R,E,O;if(S?L?E=tk(L):E=S:E=L,g?g.L===h?g.L=E:g.R=E:this._=E,S&&L?(O=E.C,E.C=h.C,E.L=S,S.U=E,E!==L?(g=E.U,E.U=h.U,h=E.R,g.L=h,E.R=L,L.U=E):(E.U=g,g=E,h=E.R)):(O=h.C,h=E),h&&(h.U=g),!O){if(h&&h.C){h.C=!1;return}do{if(h===this._)break;if(h===g.L){if(A=g.R,A.C&&(A.C=!1,g.C=!0,F0(this,g),A=g.R),A.L&&A.L.C||A.R&&A.R.C){(!A.R||!A.R.C)&&(A.L.C=!1,A.C=!0,O0(this,A),A=g.R),A.C=g.C,g.C=A.R.C=!1,F0(this,g),h=this._;break}}else if(A=g.L,A.C&&(A.C=!1,g.C=!0,O0(this,g),A=g.L),A.L&&A.L.C||A.R&&A.R.C){(!A.L||!A.L.C)&&(A.R.C=!1,A.C=!0,F0(this,A),A=g.L),A.C=g.C,g.C=A.L.C=!1,O0(this,g),h=this._;break}A.C=!0,h=g,g=g.U}while(!h.C);h&&(h.C=!1)}}};function F0(h,g){var A=g,S=g.R,L=A.U;L?L.L===A?L.L=S:L.R=S:h._=S,S.U=L,A.U=S,A.R=S.L,A.R&&(A.R.U=A),S.L=A}function O0(h,g){var A=g,S=g.L,L=A.U;L?L.L===A?L.L=S:L.R=S:h._=S,S.U=L,A.U=S,A.L=S.R,A.L&&(A.L.U=A),S.R=A}function tk(h){for(;h.L;)h=h.L;return h}function _5(h,g){var A=h.sort(Gue).pop(),S,L,E;for(lc=[],bu=new Array(h.length),sc=new x5,N0=new x5;;)if(E=g5,A&&(!E||A.y<E.y||A.y===E.y&&A.x<E.x))(A.x!==S||A.y!==L)&&(bu[A.i]=new QA(A),zue(A),S=A.x,L=A.y),A=h.pop();else if(E)Rue(E.arc);else break;g&&(Bue(g),Iue(g));var O={cells:bu,edges:lc};return sc=N0=lc=bu=null,O}function Gue(h,g){return g.y-h.y||g.x-h.x}e.geom.voronoi=function(h){var g=oc,A=z0,S=g,L=A,E=sp;if(h)return O(h);function O(H){var W=new Array(H.length),Z=E[0][0],K=E[0][1],Q=E[1][0],pe=E[1][1];return _5(z(H),E).cells.forEach(function(we,ee){var le=we.edges,ve=we.site,xe=W[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]]:[];xe.point=H[ee]}),W}function z(H){return H.map(function(W,Z){return{x:Math.round(S(W,Z)/Fe)*Fe,y:Math.round(L(W,Z)/Fe)*Fe,i:Z}})}return O.links=function(H){return _5(z(H)).edges.filter(function(W){return W.l&&W.r}).map(function(W){return{source:H[W.l.i],target:H[W.r.i]}})},O.triangles=function(H){var W=[];return _5(z(H)).cells.forEach(function(Z,K){for(var Q=Z.site,pe=Z.edges.sort(ek),we=-1,ee=pe.length,le,ve,xe=pe[ee-1].edge,Te=xe.l===Q?xe.r:xe.l;++we<ee;)le=xe,ve=Te,xe=pe[we].edge,Te=xe.l===Q?xe.r:xe.l,K<ve.i&&K<Te.i&&Yue(Q,ve,Te)<0&&W.push([H[K],H[ve.i],H[Te.i]])}),W},O.x=function(H){return arguments.length?(S=Mr(g=H),O):g},O.y=function(H){return arguments.length?(L=Mr(A=H),O):A},O.clipExtent=function(H){return arguments.length?(E=H==null?sp:H,O):E===sp?null:E},O.size=function(H){return arguments.length?O.clipExtent(H&&[[0,0],H]):E===sp?null:E&&E[1]},O};var sp=[[-1e6,-1e6],[1e6,1e6]];function Yue(h,g,A){return(h.x-A.x)*(g.y-h.y)-(h.x-g.x)*(A.y-h.y)}e.geom.delaunay=function(h){return e.geom.voronoi().triangles(h)},e.geom.quadtree=function(h,g,A,S,L){var E=oc,O=z0,z;if(z=arguments.length)return E=Vue,O=jue,z===3&&(L=A,S=g,A=g=0),H(h);function H(W){var Z,K=Mr(E),Q=Mr(O),pe,we,ee,le,ve,xe,Te,he;if(g!=null)ve=g,xe=A,Te=S,he=L;else if(Te=he=-(ve=xe=1/0),pe=[],we=[],le=W.length,z)for(ee=0;ee<le;++ee)Z=W[ee],Z.x<ve&&(ve=Z.x),Z.y<xe&&(xe=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=W[ee],ee),or=+Q(Z,ee);Ye<ve&&(ve=Ye),or<xe&&(xe=or),Ye>Te&&(Te=Ye),or>he&&(he=or),pe.push(Ye),we.push(or)}var hr=Te-ve,fr=he-xe;hr>fr?he=xe+hr:Te=ve+fr;function br(wr,Er,at,sa,gt,ar,Ir,Or){if(!(isNaN(at)||isNaN(sa)))if(wr.leaf){var nt=wr.x,Xt=wr.y;if(nt!=null)if(x(nt-at)+x(Xt-sa)<.01)xr(wr,Er,at,sa,gt,ar,Ir,Or);else{var Aa=wr.point;wr.x=wr.y=wr.point=null,xr(wr,Aa,nt,Xt,gt,ar,Ir,Or),xr(wr,Er,at,sa,gt,ar,Ir,Or)}else wr.x=at,wr.y=sa,wr.point=Er}else xr(wr,Er,at,sa,gt,ar,Ir,Or)}function xr(wr,Er,at,sa,gt,ar,Ir,Or){var nt=(gt+Ir)*.5,Xt=(ar+Or)*.5,Aa=at>=nt,$a=sa>=Xt,bn=$a<<1|Aa;wr.leaf=!1,wr=wr.nodes[bn]||(wr.nodes[bn]=ak()),Aa?gt=nt:Ir=nt,$a?ar=Xt:Or=Xt,br(wr,Er,at,sa,gt,ar,Ir,Or)}var Nr=ak();if(Nr.add=function(wr){br(Nr,wr,+K(wr,++ee),+Q(wr,ee),ve,xe,Te,he)},Nr.visit=function(wr){B0(wr,Nr,ve,xe,Te,he)},Nr.find=function(wr){return Wue(Nr,wr[0],wr[1],ve,xe,Te,he)},ee=-1,g==null){for(;++ee<le;)br(Nr,W[ee],pe[ee],we[ee],ve,xe,Te,he);--ee}else W.forEach(Nr.add);return pe=we=W=Z=null,Nr}return H.x=function(W){return arguments.length?(E=W,H):E},H.y=function(W){return arguments.length?(O=W,H):O},H.extent=function(W){return arguments.length?(W==null?g=A=S=L=null:(g=+W[0][0],A=+W[0][1],S=+W[1][0],L=+W[1][1]),H):g==null?null:[[g,A],[S,L]]},H.size=function(W){return arguments.length?(W==null?g=A=S=L=null:(g=A=0,S=+W[0],L=+W[1]),H):g==null?null:[S-g,L-A]},H};function Vue(h){return h.x}function jue(h){return h.y}function ak(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function B0(h,g,A,S,L,E){if(!h(g,A,S,L,E)){var O=(A+L)*.5,z=(S+E)*.5,H=g.nodes;H[0]&&B0(h,H[0],A,S,O,z),H[1]&&B0(h,H[1],O,S,L,z),H[2]&&B0(h,H[2],A,z,O,E),H[3]&&B0(h,H[3],O,z,L,E)}}function Wue(h,g,A,S,L,E,O){var z=1/0,H;return(function W(Z,K,Q,pe,we){if(!(K>E||Q>O||pe<S||we<L)){if(ee=Z.point){var ee,le=g-Z.x,ve=A-Z.y,xe=le*le+ve*ve;if(xe<z){var Te=Math.sqrt(z=xe);S=g-Te,L=A-Te,E=g+Te,O=A+Te,H=ee}}for(var he=Z.nodes,Ye=(K+pe)*.5,or=(Q+we)*.5,hr=g>=Ye,fr=A>=or,br=fr<<1|hr,xr=br+4;br<xr;++br)if(Z=he[br&3])switch(br&3){case 0:W(Z,K,Q,Ye,or);break;case 1:W(Z,Ye,Q,pe,or);break;case 2:W(Z,K,or,Ye,we);break;case 3:W(Z,Ye,or,pe,we);break}}})(h,S,L,E,O),H}e.interpolateRgb=w5;function w5(h,g){h=e.rgb(h),g=e.rgb(g);var A=h.r,S=h.g,L=h.b,E=g.r-A,O=g.g-S,z=g.b-L;return function(H){return"#"+ss(Math.round(A+E*H))+ss(Math.round(S+O*H))+ss(Math.round(L+z*H))}}e.interpolateObject=nk;function nk(h,g){var A={},S={},L;for(L in h)L in g?A[L]=xu(h[L],g[L]):S[L]=h[L];for(L in g)L in h||(S[L]=g[L]);return function(E){for(L in A)S[L]=A[L](E);return S}}e.interpolateNumber=Ll;function Ll(h,g){return h=+h,g=+g,function(A){return h*(1-A)+g*A}}e.interpolateString=ik;function ik(h,g){var A=T5.lastIndex=M5.lastIndex=0,S,L,E,O=-1,z=[],H=[];for(h=h+"",g=g+"";(S=T5.exec(h))&&(L=M5.exec(g));)(E=L.index)>A&&(E=g.slice(A,E),z[O]?z[O]+=E:z[++O]=E),(S=S[0])===(L=L[0])?z[O]?z[O]+=L:z[++O]=L:(z[++O]=null,H.push({i:O,x:Ll(S,L)})),A=M5.lastIndex;return A<g.length&&(E=g.slice(A),z[O]?z[O]+=E:z[++O]=E),z.length<2?H[0]?(g=H[0].x,function(W){return g(W)+""}):function(){return g}:(g=H.length,function(W){for(var Z=0,K;Z<g;++Z)z[(K=H[Z]).i]=K.x(W);return z.join("")})}var T5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,M5=new RegExp(T5.source,"g");e.interpolate=xu;function xu(h,g){for(var A=e.interpolators.length,S;--A>=0&&!(S=e.interpolators[A](h,g)););return S}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?Ar.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?w5:ik:g instanceof Yr?w5:Array.isArray(g)?up:A==="object"&&isNaN(g)?nk:Ll)(h,g)}],e.interpolateArray=up;function up(h,g){var A=[],S=[],L=h.length,E=g.length,O=Math.min(h.length,g.length),z;for(z=0;z<O;++z)A.push(xu(h[z],g[z]));for(;z<L;++z)S[z]=h[z];for(;z<E;++z)S[z]=g[z];return function(H){for(z=0;z<O;++z)S[z]=A[z](H);return S}}var ok=function(){return B},Xue=e.map({linear:ok,poly:efe,quad:function(){return Jue},cubic:function(){return Kue},sin:function(){return rfe},exp:function(){return tfe},circle:function(){return afe},elastic:nfe,back:ife,bounce:function(){return ofe}}),Zue=e.map({in:B,out:lk,"in-out":sk,"out-in":function(h){return sk(lk(h))}});e.ease=function(h){var g=h.indexOf("-"),A=g>=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return A=Xue.get(A)||ok,S=Zue.get(S)||B,$ue(S(A.apply(null,r.call(arguments,1))))};function $ue(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 Jue(h){return h*h}function Kue(h){return h*h*h}function Que(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function efe(h){return function(g){return Math.pow(g,h)}}function rfe(h){return 1-Math.cos(h*ne)}function tfe(h){return Math.pow(2,10*(h-1))}function afe(h){return 1-Math.sqrt(1-h*h)}function nfe(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/sr*Math.asin(1/h):(h=1,A=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-A)*sr/g)}}function ife(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function ofe(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=lfe;function lfe(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,S=h.c,L=h.l,E=g.h-A,O=g.c-S,z=g.l-L;return isNaN(O)&&(O=0,S=isNaN(S)?g.c:S),isNaN(E)?(E=0,A=isNaN(A)?g.h:A):E>180?E-=360:E<-180&&(E+=360),function(H){return Dn(A+E*H,S+O*H,L+z*H)+""}}e.interpolateHsl=sfe;function sfe(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,S=h.s,L=h.l,E=g.h-A,O=g.s-S,z=g.l-L;return isNaN(O)&&(O=0,S=isNaN(S)?g.s:S),isNaN(E)?(E=0,A=isNaN(A)?g.h:A):E>180?E-=360:E<-180&&(E+=360),function(H){return At(A+E*H,S+O*H,L+z*H)+""}}e.interpolateLab=ufe;function ufe(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,S=h.a,L=h.b,E=g.l-A,O=g.a-S,z=g.b-L;return function(H){return Ht(A+E*H,S+O*H,L+z*H)+""}}e.interpolateRound=uk;function uk(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var S=g.transform.baseVal.consolidate()}return new fk(S?S.matrix:cfe)})(h)};function fk(h){var g=[h.a,h.b],A=[h.c,h.d],S=vk(g),L=ck(g,A),E=vk(ffe(A,g,-L))||0;g[0]*A[1]<A[0]*g[1]&&(g[0]*=-1,g[1]*=-1,S*=-1,L*=-1),this.rotate=(S?Math.atan2(g[1],g[0]):Math.atan2(-A[0],A[1]))*Ne,this.translate=[h.e,h.f],this.scale=[S,E],this.skew=E?Math.atan2(L,E)*Ne: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 ffe(h,g,A){return h[0]+=A*g[0],h[1]+=A*g[1],h}var cfe={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=hk;function cc(h){return h.length?h.pop()+",":""}function vfe(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push("translate(",null,",",null,")");S.push({i:L-4,x:Ll(h[0],g[0])},{i:L-2,x:Ll(h[1],g[1])})}else(g[0]||g[1])&&A.push("translate("+g+")")}function hfe(h,g,A,S){h!==g?(h-g>180?g+=360:g-h>180&&(h+=360),S.push({i:A.push(cc(A)+"rotate(",null,")")-2,x:Ll(h,g)})):g&&A.push(cc(A)+"rotate("+g+")")}function dfe(h,g,A,S){h!==g?S.push({i:A.push(cc(A)+"skewX(",null,")")-2,x:Ll(h,g)}):g&&A.push(cc(A)+"skewX("+g+")")}function pfe(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(cc(A)+"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)&&A.push(cc(A)+"scale("+g+")")}function hk(h,g){var A=[],S=[];return h=e.transform(h),g=e.transform(g),vfe(h.translate,g.translate,A,S),hfe(h.rotate,g.rotate,A,S),dfe(h.skew,g.skew,A,S),pfe(h.scale,g.scale,A,S),h=g=null,function(L){for(var E=-1,O=S.length,z;++E<O;)A[(z=S[E]).i]=z.x(L);return A.join("")}}function mfe(h,g){return g=(g-=h=+h)||1/g,function(A){return(A-h)/g}}function yfe(h,g){return g=(g-=h=+h)||1/g,function(A){return Math.max(0,Math.min(1,(A-h)/g))}}e.layout={},e.layout.bundle=function(){return function(h){for(var g=[],A=-1,S=h.length;++A<S;)g.push(gfe(h[A]));return g}};function gfe(h){for(var g=h.source,A=h.target,S=bfe(g,A),L=[g];g!==S;)g=g.parent,L.push(g);for(var E=L.length;A!==S;)L.splice(E,0,A),A=A.parent;return L}function dk(h){for(var g=[],A=h.parent;A!=null;)g.push(h),h=A,A=A.parent;return g.push(h),g}function bfe(h,g){if(h===g)return h;for(var A=dk(h),S=dk(g),L=A.pop(),E=S.pop(),O=null;L===E;)O=L,L=A.pop(),E=S.pop();return O}e.layout.chord=function(){var h={},g,A,S,L,E=0,O,z,H;function W(){var K={},Q=[],pe=e.range(L),we=[],ee,le,ve,xe,Te;for(g=[],A=[],ee=0,xe=-1;++xe<L;){for(le=0,Te=-1;++Te<L;)le+=S[xe][Te];Q.push(le),we.push(e.range(L)),ee+=le}for(O&&pe.sort(function(Nr,wr){return O(Q[Nr],Q[wr])}),z&&we.forEach(function(Nr,wr){Nr.sort(function(Er,at){return z(S[wr][Er],S[wr][at])})}),ee=(sr-E*L)/ee,le=0,xe=-1;++xe<L;){for(ve=le,Te=-1;++Te<L;){var he=pe[xe],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}}A[he]={index:he,startAngle:ve,endAngle:le,value:Q[he]},le+=E}for(xe=-1;++xe<L;)for(Te=xe-1;++Te<L;){var br=K[xe+"-"+Te],xr=K[Te+"-"+xe];(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=A=null,h):S},h.padding=function(K){return arguments.length?(E=K,g=A=null,h):E},h.sortGroups=function(K){return arguments.length?(O=K,g=A=null,h):O},h.sortSubgroups=function(K){return arguments.length?(z=K,g=null,h):z},h.sortChords=function(K){return arguments.length?(H=K,g&&Z(),h):H},h.chords=function(){return g||W(),g},h.groups=function(){return A||W(),A},h},e.layout.force=function(){var h={},g=e.dispatch("start","tick","end"),A,S=[1,1],L,E,O=.9,z=Mfe,H=Afe,W=-30,Z=kfe,K=.1,Q=.64,pe=[],we=[],ee,le,ve;function xe(he){return function(Ye,or,hr,fr){if(Ye.point!==he){var br=Ye.cx-he.x,xr=Ye.cy-he.y,Nr=fr-or,wr=br*br+xr*xr;if(Nr*Nr/Q<wr){if(wr<Z){var Er=Ye.charge/wr;he.px-=br*Er,he.py-=xr*Er}return!0}if(Ye.point&&wr&&wr<Z){var Er=Ye.pointCharge/wr;he.px-=br*Er,he.py-=xr*Er}}return!Ye.charge}}h.tick=function(){if((E*=.99)<.005)return A=null,g.end({type:"end",alpha:E=0}),!0;var he=pe.length,Ye=we.length,or,hr,fr,br,xr,Nr,wr,Er,at;for(hr=0;hr<Ye;++hr)fr=we[hr],br=fr.source,xr=fr.target,Er=xr.x-br.x,at=xr.y-br.y,(Nr=Er*Er+at*at)&&(Nr=E*le[hr]*((Nr=Math.sqrt(Nr))-ee[hr])/Nr,Er*=Nr,at*=Nr,xr.x-=Er*(wr=br.weight+xr.weight?br.weight/(br.weight+xr.weight):.5),xr.y-=at*wr,br.x+=Er*(wr=1-wr),br.y+=at*wr);if((wr=E*K)&&(Er=S[0]/2,at=S[1]/2,hr=-1,wr))for(;++hr<he;)fr=pe[hr],fr.x+=(Er-fr.x)*wr,fr.y+=(at-fr.y)*wr;if(W)for(pk(or=e.geom.quadtree(pe),E,ve),hr=-1;++hr<he;)(fr=pe[hr]).fixed||or.visit(xe(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))*O,fr.y-=(fr.py-(fr.py=fr.y))*O);g.tick({type:"tick",alpha:E})},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?(z=typeof he=="function"?he:+he,h):z},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?(O=+he,h):O},h.charge=function(he){return arguments.length?(W=typeof he=="function"?he:+he,h):W},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,E?he>0?E=he:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:E=0})):he>0&&(g.start({type:"start",alpha:E=he}),A=ap(h.tick)),h):E},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=Nr("x",hr)),isNaN(xr.y)&&(xr.y=Nr("y",fr)),isNaN(xr.px)&&(xr.px=xr.x),isNaN(xr.py)&&(xr.py=xr.y);if(ee=[],typeof z=="function")for(he=0;he<or;++he)ee[he]=+z.call(this,we[he],he);else for(he=0;he<or;++he)ee[he]=z;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 W=="function")for(he=0;he<Ye;++he)ve[he]=+W.call(this,pe[he],he);else for(he=0;he<Ye;++he)ve[he]=W;function Nr(wr,Er){if(!br){for(br=new Array(Ye),gt=0;gt<Ye;++gt)br[gt]=[];for(gt=0;gt<or;++gt){var at=we[gt];br[at.source.index].push(at.target),br[at.target.index].push(at.source)}}for(var sa=br[he],gt=-1,ar=sa.length,Ir;++gt<ar;)if(!isNaN(Ir=sa[gt][wr]))return Ir;return Math.random()*Er}return h.resume()},h.resume=function(){return h.alpha(.1)},h.stop=function(){return h.alpha(0)},h.drag=function(){if(L||(L=e.behavior.drag().origin(B).on("dragstart.force",xfe).on("drag.force",Te).on("dragend.force",_fe)),!arguments.length)return L;this.on("mouseover.force",wfe).on("mouseout.force",Tfe).call(L)};function Te(he){he.px=e.event.x,he.py=e.event.y,h.resume()}return e.rebind(h,g,"on")};function xfe(h){h.fixed|=2}function _fe(h){h.fixed&=-7}function wfe(h){h.fixed|=4,h.px=h.x,h.py=h.y}function Tfe(h){h.fixed&=-5}function pk(h,g,A){var S=0,L=0;if(h.charge=0,!h.leaf)for(var E=h.nodes,O=E.length,z=-1,H;++z<O;)H=E[z],H!=null&&(pk(H,g,A),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 W=g*A[h.point.index];h.charge+=h.pointCharge=W,S+=W*h.point.x,L+=W*h.point.y}h.cx=S/h.charge,h.cy=L/h.charge}var Mfe=20,Afe=1,kfe=1/0;e.layout.hierarchy=function(){var h=Lfe,g=Sfe,A=qfe;function S(L){var E=[L],O=[],z;for(L.depth=0;(z=E.pop())!=null;)if(O.push(z),(W=g.call(S,z,z.depth))&&(H=W.length)){for(var H,W,Z;--H>=0;)E.push(Z=W[H]),Z.parent=z,Z.depth=z.depth+1;A&&(z.value=0),z.children=W}else A&&(z.value=+A.call(S,z,z.depth)||0),delete z.children;return Wo(L,function(K){var Q,pe;h&&(Q=K.children)&&Q.sort(h),A&&(pe=K.parent)&&(pe.value+=K.value)}),O}return S.sort=function(L){return arguments.length?(h=L,S):h},S.children=function(L){return arguments.length?(g=L,S):g},S.value=function(L){return arguments.length?(A=L,S):A},S.revalue=function(L){return A&&(U0(L,function(E){E.children&&(E.value=0)}),Wo(L,function(E){var O;E.children||(E.value=+A.call(S,E,E.depth)||0),(O=E.parent)&&(O.value+=E.value)})),L},S};function H0(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Cfe,h}function U0(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(S=L.length))for(var S,L;--S>=0;)A.push(L[S])}function Wo(h,g){for(var A=[h],S=[];(h=A.pop())!=null;)if(S.push(h),(O=h.children)&&(E=O.length))for(var L=-1,E,O;++L<E;)A.push(O[L]);for(;(h=S.pop())!=null;)g(h)}function Sfe(h){return h.children}function qfe(h){return h.value}function Lfe(h,g){return g.value-h.value}function Cfe(h){return e.merge(h.map(function(g){return(g.children||[]).map(function(A){return{source:g,target:A}})}))}e.layout.partition=function(){var h=e.layout.hierarchy(),g=[1,1];function A(E,O,z,H){var W=E.children;if(E.x=O,E.y=E.depth*H,E.dx=z,E.dy=H,W&&(K=W.length)){var Z=-1,K,Q,pe;for(z=E.value?z/E.value:0;++Z<K;)A(Q=W[Z],O,pe=Q.value*z,H),O+=pe}}function S(E){var O=E.children,z=0;if(O&&(W=O.length))for(var H=-1,W;++H<W;)z=Math.max(z,S(O[H]));return 1+z}function L(E,O){var z=h.call(this,E,O);return A(z[0],0,g[0],g[1]/S(z[0])),z}return L.size=function(E){return arguments.length?(g=E,L):g},H0(L,h)},e.layout.pie=function(){var h=Number,g=mk,A=0,S=sr,L=0;function E(O){var z=O.length,H=O.map(function(xe,Te){return+h.call(E,xe,Te)}),W=+(typeof A=="function"?A.apply(this,arguments):A),Z=(typeof S=="function"?S.apply(this,arguments):S)-W,K=Math.min(Math.abs(Z)/z,+(typeof L=="function"?L.apply(this,arguments):L)),Q=K*(Z<0?-1:1),pe=e.sum(H),we=pe?(Z-z*Q)/pe:0,ee=e.range(z),le=[],ve;return g!=null&&ee.sort(g===mk?function(xe,Te){return H[Te]-H[xe]}:function(xe,Te){return g(O[xe],O[Te])}),ee.forEach(function(xe){le[xe]={data:O[xe],value:ve=H[xe],startAngle:W,endAngle:W+=ve*we+Q,padAngle:K}}),le}return E.value=function(O){return arguments.length?(h=O,E):h},E.sort=function(O){return arguments.length?(g=O,E):g},E.startAngle=function(O){return arguments.length?(A=O,E):A},E.endAngle=function(O){return arguments.length?(S=O,E):S},E.padAngle=function(O){return arguments.length?(L=O,E):L},E};var mk={};e.layout.stack=function(){var h=B,g=A5,A=k5,S=Pfe,L=Efe,E=Dfe;function O(z,H){if(!(we=z.length))return z;var W=z.map(function(xe,Te){return h.call(O,xe,Te)}),Z=W.map(function(xe){return xe.map(function(Te,he){return[L.call(O,Te,he),E.call(O,Te,he)]})}),K=g.call(O,Z,H);W=e.permute(W,K),Z=e.permute(Z,K);var Q=A.call(O,Z,H),pe=W[0].length,we,ee,le,ve;for(le=0;le<pe;++le)for(S.call(O,W[0][le],ve=Q[le],Z[0][le][1]),ee=1;ee<we;++ee)S.call(O,W[ee][le],ve+=Z[ee-1][le][1],Z[ee][le][1]);return z}return O.values=function(z){return arguments.length?(h=z,O):h},O.order=function(z){return arguments.length?(g=typeof z=="function"?z:Rfe.get(z)||A5,O):g},O.offset=function(z){return arguments.length?(A=typeof z=="function"?z:zfe.get(z)||k5,O):A},O.x=function(z){return arguments.length?(L=z,O):L},O.y=function(z){return arguments.length?(E=z,O):E},O.out=function(z){return arguments.length?(S=z,O):S},O};function Efe(h){return h.x}function Dfe(h){return h.y}function Pfe(h,g,A){h.y0=g,h.y=A}var Rfe=e.map({"inside-out":function(h){var g=h.length,A,S,L=h.map(Nfe),E=h.map(Ife),O=e.range(g).sort(function(K,Q){return L[K]-L[Q]}),z=0,H=0,W=[],Z=[];for(A=0;A<g;++A)S=O[A],z<H?(z+=E[S],W.push(S)):(H+=E[S],Z.push(S));return Z.reverse().concat(W)},reverse:function(h){return e.range(h.length).reverse()},default:A5}),zfe=e.map({silhouette:function(h){var g=h.length,A=h[0].length,S=[],L=0,E,O,z,H=[];for(O=0;O<A;++O){for(E=0,z=0;E<g;E++)z+=h[E][O][1];z>L&&(L=z),S.push(z)}for(O=0;O<A;++O)H[O]=(L-S[O])/2;return H},wiggle:function(h){var g=h.length,A=h[0],S=A.length,L,E,O,z,H,W,Z,K,Q,pe=[];for(pe[0]=K=Q=0,E=1;E<S;++E){for(L=0,z=0;L<g;++L)z+=h[L][E][1];for(L=0,H=0,Z=A[E][0]-A[E-1][0];L<g;++L){for(O=0,W=(h[L][E][1]-h[L][E-1][1])/(2*Z);O<L;++O)W+=(h[O][E][1]-h[O][E-1][1])/Z;H+=W*h[L][E][1]}pe[E]=K-=z?H/z*Z:0,K<Q&&(Q=K)}for(E=0;E<S;++E)pe[E]-=Q;return pe},expand:function(h){var g=h.length,A=h[0].length,S=1/g,L,E,O,z=[];for(E=0;E<A;++E){for(L=0,O=0;L<g;L++)O+=h[L][E][1];if(O)for(L=0;L<g;L++)h[L][E][1]/=O;else for(L=0;L<g;L++)h[L][E][1]=S}for(E=0;E<A;++E)z[E]=0;return z},zero:k5});function A5(h){return e.range(h.length)}function k5(h){for(var g=-1,A=h[0].length,S=[];++g<A;)S[g]=0;return S}function Nfe(h){for(var g=1,A=0,S=h[0][1],L,E=h.length;g<E;++g)(L=h[g][1])>S&&(A=g,S=L);return A}function Ife(h){return h.reduce(Ffe,0)}function Ffe(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=Bfe,S=Ofe;function L(E,Q){for(var z=[],H=E.map(g,this),W=A.call(this,H,Q),Z=S.call(this,W,H,Q),K,Q=-1,pe=H.length,we=Z.length-1,ee=h?1:1/pe,le;++Q<we;)K=z[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>=W[0]&&le<=W[1]&&(K=z[e.bisect(Z,le,1,we)-1],K.y+=ee,K.push(E[Q]));return z}return L.value=function(E){return arguments.length?(g=E,L):g},L.range=function(E){return arguments.length?(A=Mr(E),L):A},L.bins=function(E){return arguments.length?(S=typeof E=="number"?function(O){return yk(O,E)}:Mr(E),L):S},L.frequency=function(E){return arguments.length?(h=!!E,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 A=-1,S=+h[0],L=(h[1]-S)/g,E=[];++A<=g;)E[A]=L*A+S;return E}function Bfe(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(Hfe),g=0,A=[1,1],S;function L(E,O){var z=h.call(this,E,O),H=z[0],W=A[0],Z=A[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/W,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,W/2,Z/2,S?1:1/Math.max(2*H.r/W,2*H.r/Z)),z}return L.size=function(E){return arguments.length?(A=E,L):A},L.radius=function(E){return arguments.length?(S=E==null||typeof E=="function"?E:+E,L):S},L.padding=function(E){return arguments.length?(g=+E,L):g},H0(L,h)};function Hfe(h,g){return h.value-g.value}function S5(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function gk(h,g){h._pack_next=g,g._pack_prev=h}function bk(h,g){var A=g.x-h.x,S=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+S*S}function xk(h){if(!(g=h.children)||!(Q=g.length))return;var g,A=1/0,S=-1/0,L=1/0,E=-1/0,O,z,H,W,Z,K,Q;function pe(he){A=Math.min(he.x-he.r,A),S=Math.max(he.x+he.r,S),L=Math.min(he.y-he.r,L),E=Math.max(he.y+he.r,E)}if(g.forEach(Ufe),O=g[0],O.x=-O.r,O.y=0,pe(O),Q>1&&(z=g[1],z.x=z.r,z.y=0,pe(z),Q>2))for(H=g[2],wk(O,z,H),pe(H),S5(O,H),O._pack_prev=H,S5(H,z),z=O._pack_next,W=3;W<Q;W++){wk(O,z,H=g[W]);var we=0,ee=1,le=1;for(Z=z._pack_next;Z!==z;Z=Z._pack_next,ee++)if(bk(Z,H)){we=1;break}if(we==1)for(K=O._pack_prev;K!==Z._pack_prev&&!bk(K,H);K=K._pack_prev,le++);we?(ee<le||ee==le&&z.r<O.r?gk(O,z=Z):gk(O=K,z),W--):(S5(O,H),z=H,pe(H))}var ve=(A+S)/2,xe=(L+E)/2,Te=0;for(W=0;W<Q;W++)H=g[W],H.x-=ve,H.y-=xe,Te=Math.max(Te,H.r+Math.sqrt(H.x*H.x+H.y*H.y));h.r=Te,g.forEach(Gfe)}function Ufe(h){h._pack_next=h._pack_prev=h}function Gfe(h){delete h._pack_next,delete h._pack_prev}function _k(h,g,A,S){var L=h.children;if(h.x=g+=S*h.x,h.y=A+=S*h.y,h.r*=S,L)for(var E=-1,O=L.length;++E<O;)_k(L[E],g,A,S)}function wk(h,g,A){var S=h.r+A.r,L=g.x-h.x,E=g.y-h.y;if(S&&(L||E)){var O=g.r+A.r,z=L*L+E*E;O*=O,S*=S;var H=.5+(S-O)/(2*z),W=Math.sqrt(Math.max(0,2*O*(S+z)-(S-=z)*S-O*O))/(2*z);A.x=h.x+H*L+W*E,A.y=h.y+H*E-W*L}else A.x=h.x+S,A.y=h.y}e.layout.tree=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Tk,A=[1,1],S=null;function L(Z,K){var Q=h.call(this,Z,K),pe=Q[0],we=E(pe);if(Wo(we,O),we.parent.m=-we.z,U0(we,z),S)U0(pe,W);else{var ee=pe,le=pe,ve=pe;U0(pe,function(Ye){Ye.x<ee.x&&(ee=Ye),Ye.x>le.x&&(le=Ye),Ye.depth>ve.depth&&(ve=Ye)});var xe=g(ee,le)/2-ee.x,Te=A[0]/(le.x+g(le,ee)/2+xe),he=A[1]/(ve.depth||1);U0(pe,function(Ye){Ye.x=(Ye.x+xe)*Te,Ye.y=Ye.depth*he})}return Q}function E(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 O(Z){var K=Z.children,Q=Z.parent.children,pe=Z.i?Q[Z.i-1]:null;if(K.length){Vfe(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 z(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,xe=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&&(Yfe(jfe(ee,Z,Q),Z,Ye),ve+=Ye,xe+=Ye),Te+=ee.m,ve+=pe.m,he+=le.m,xe+=we.m;ee&&!L5(we)&&(we.t=ee,we.m+=Te-xe),pe&&!q5(le)&&(le.t=pe,le.m+=ve-he,Q=Z)}return Q}function W(Z){Z.x*=A[0],Z.y=Z.depth*A[1]}return L.separation=function(Z){return arguments.length?(g=Z,L):g},L.size=function(Z){return arguments.length?(S=(A=Z)==null?W:null,L):S?null:A},L.nodeSize=function(Z){return arguments.length?(S=(A=Z)==null?null:W,L):S?A:null},H0(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,A;return(A=g.length)?g[A-1]:h.t}function Yfe(h,g,A){var S=A/(g.i-h.i);g.c-=S,g.s+=A,h.c+=S,g.z+=A,g.m+=A}function Vfe(h){for(var g=0,A=0,S=h.children,L=S.length,E;--L>=0;)E=S[L],E.z+=g,E.m+=g,g+=E.s+(A+=E.c)}function jfe(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Tk,A=[1,1],S=!1;function L(E,O){var z=h.call(this,E,O),H=z[0],W,Z=0;Wo(H,function(ee){var le=ee.children;le&&le.length?(ee.x=Xfe(le),ee.y=Wfe(le)):(ee.x=W?Z+=g(ee,W):0,ee.y=0,W=ee)});var K=Mk(H),Q=Ak(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)*A[0],ee.y=(H.y-ee.y)*A[1]}:function(ee){ee.x=(ee.x-pe)/(we-pe)*A[0],ee.y=(1-(H.y?ee.y/H.y:1))*A[1]}),z}return L.separation=function(E){return arguments.length?(g=E,L):g},L.size=function(E){return arguments.length?(S=(A=E)==null,L):S?null:A},L.nodeSize=function(E){return arguments.length?(S=(A=E)!=null,L):S?A:null},H0(L,h)};function Wfe(h){return 1+e.max(h,function(g){return g.y})}function Xfe(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function Mk(h){var g=h.children;return g&&g.length?Mk(g[0]):h}function Ak(h){var g=h.children,A;return g&&(A=g.length)?Ak(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],S=null,L=C5,E=!1,O,z="squarify",H=.5*(1+Math.sqrt(5));function W(ee,le){for(var ve=-1,xe=ee.length,Te,he;++ve<xe;)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),xe=[],Te=le.slice(),he,Ye=1/0,or,hr=z==="slice"?ve.dx:z==="dice"?ve.dy:z==="slice-dice"?ee.depth&1?ve.dy:ve.dx:Math.min(ve.dx,ve.dy),fr;for(W(Te,ve.dx*ve.dy/ee.value),xe.area=0;(fr=Te.length)>0;)xe.push(he=Te[fr-1]),xe.area+=he.area,z!=="squarify"||(or=Q(xe,hr))<=Ye?(Te.pop(),Ye=or):(xe.area-=xe.pop().area,pe(xe,hr,ve,!1),hr=Math.min(ve.dx,ve.dy),xe.length=xe.area=0,Ye=1/0);xe.length&&(pe(xe,hr,ve,!0),xe.length=xe.area=0),le.forEach(Z)}}function K(ee){var le=ee.children;if(le&&le.length){var ve=L(ee),xe=le.slice(),Te,he=[];for(W(xe,ve.dx*ve.dy/ee.value),he.area=0;Te=xe.pop();)he.push(Te),he.area+=Te.area,Te.z!=null&&(pe(he,Te.z?ve.dx:ve.dy,ve,!xe.length),he.length=he.area=0);le.forEach(K)}}function Q(ee,le){for(var ve=ee.area,xe,Te=0,he=1/0,Ye=-1,or=ee.length;++Ye<or;)(xe=ee[Ye].area)&&(xe<he&&(he=xe),xe>Te&&(Te=xe));return ve*=ve,le*=le,ve?Math.max(le*Te*H/ve,ve/(le*he*H)):1/0}function pe(ee,le,ve,xe){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((xe||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((xe||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=O||h(ee),ve=le[0];return ve.x=ve.y=0,ve.value?(ve.dx=A[0],ve.dy=A[1]):ve.dx=ve.dy=0,O&&h.revalue(ve),W([ve],ve.dx*ve.dy/ve.value),(O?K:Z)(ve),E&&(O=le),le}return we.size=function(ee){return arguments.length?(A=ee,we):A},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 xe;return L=(S=ee)==null?C5:(xe=typeof ee)=="function"?le:(xe==="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?(E=ee,O=null,we):E},we.ratio=function(ee){return arguments.length?(H=ee,we):H},we.mode=function(ee){return arguments.length?(z=ee+"",we):z},H0(we,h)};function C5(h){return{x:h.x,y:h.y,dx:h.dx,dy:h.dy}}function kk(h,g){var A=h.x+g[3],S=h.y+g[0],L=h.dx-g[1]-g[3],E=h.dy-g[0]-g[2];return L<0&&(A+=L/2,L=0),E<0&&(S+=E/2,E=0),{x:A,y:S,dx:L,dy:E}}e.random={normal:function(h,g){var A=arguments.length;return A<2&&(g=1),A<1&&(h=0),function(){var S,L,E;do S=Math.random()*2-1,L=Math.random()*2-1,E=S*S+L*L;while(!E||E>1);return h+g*S*Math.sqrt(-2*Math.log(E)/E)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A<h;A++)g+=Math.random();return g}}},e.scale={};function fp(h){var g=h[0],A=h[h.length-1];return g<A?[g,A]:[A,g]}function cp(h){return h.rangeExtent?h.rangeExtent():fp(h.range())}function Zfe(h,g,A,S){var L=A(h[0],h[1]),E=S(g[0],g[1]);return function(O){return E(L(O))}}function E5(h,g){var A=0,S=h.length-1,L=h[A],E=h[S],O;return E<L&&(O=A,A=S,S=O,O=L,L=E,E=O),h[A]=g.floor(L),h[S]=g.ceil(E),h}function Sk(h){return h?{floor:function(g){return Math.floor(g/h)*h},ceil:function(g){return Math.ceil(g/h)*h}}:$fe}var $fe={floor:B,ceil:B};function Jfe(h,g,A,S){var L=[],E=[],O=0,z=Math.min(h.length,g.length)-1;for(h[z]<h[0]&&(h=h.slice().reverse(),g=g.slice().reverse());++O<=z;)L.push(A(h[O-1],h[O])),E.push(S(g[O-1],g[O]));return function(H){var W=e.bisect(h,H,1,z)-1;return E[W](L[W](H))}}e.scale.linear=function(){return qk([0,1],[0,1],xu,!1)};function qk(h,g,A,S){var L,E;function O(){var H=Math.min(h.length,g.length)>2?Jfe:Zfe,W=S?yfe:mfe;return L=H(h,g,W,A),E=H(g,h,W,xu),z}function z(H){return L(H)}return z.invert=function(H){return E(H)},z.domain=function(H){return arguments.length?(h=H.map(Number),O()):h},z.range=function(H){return arguments.length?(g=H,O()):g},z.rangeRound=function(H){return z.range(H).interpolate(uk)},z.clamp=function(H){return arguments.length?(S=H,O()):S},z.interpolate=function(H){return arguments.length?(A=H,O()):A},z.ticks=function(H){return P5(h,H)},z.tickFormat=function(H,W){return d3_scale_linearTickFormat(h,H,W)},z.nice=function(H){return Ck(h,H),O()},z.copy=function(){return qk(h,g,A,S)},O()}function Lk(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function Ck(h,g){return E5(h,Sk(D5(h,g)[2])),E5(h,Sk(D5(h,g)[2])),h}function D5(h,g){g==null&&(g=10);var A=fp(h),S=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),E=g/S*L;return E<=.15?L*=10:E<=.35?L*=5:E<=.75&&(L*=2),A[0]=Math.ceil(A[0]/L)*L,A[1]=Math.floor(A[1]/L)*L+L*.5,A[2]=L,A}function P5(h,g){return e.range.apply(e,D5(h,g))}var Kfe={s:1,g:1,p:1,r:1,e:1};function Ek(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function qHe(h,g){var A=Ek(g[2]);return h in Kfe?Math.abs(A-Ek(Math.max(x(g[0]),x(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return Dk(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Dk(h,g,A,S){function L(z){return(A?Math.log(z<0?0:z):-Math.log(z>0?0:-z))/Math.log(g)}function E(z){return A?Math.pow(g,z):-Math.pow(g,-z)}function O(z){return h(L(z))}return O.invert=function(z){return E(h.invert(z))},O.domain=function(z){return arguments.length?(A=z[0]>=0,h.domain((S=z.map(Number)).map(L)),O):S},O.base=function(z){return arguments.length?(g=+z,h.domain(S.map(L)),O):g},O.nice=function(){var z=E5(S.map(L),A?Math:Qfe);return h.domain(z),S=z.map(E),O},O.ticks=function(){var z=fp(S),H=[],W=z[0],Z=z[1],K=Math.floor(L(W)),Q=Math.ceil(L(Z)),pe=g%1?2:g;if(isFinite(Q-K)){if(A){for(;K<Q;K++)for(var we=1;we<pe;we++)H.push(E(K)*we);H.push(E(K))}else for(H.push(E(K));K++<Q;)for(var we=pe-1;we>0;we--)H.push(E(K)*we);for(K=0;H[K]<W;K++);for(Q=H.length;H[Q-1]>Z;Q--);H=H.slice(K,Q)}return H},O.copy=function(){return Dk(h.copy(),g,A,S)},Lk(O,h)}var Qfe={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,A){var S=vp(g),L=vp(1/g);function E(O){return h(S(O))}return E.invert=function(O){return L(h.invert(O))},E.domain=function(O){return arguments.length?(h.domain((A=O.map(Number)).map(S)),E):A},E.ticks=function(O){return P5(A,O)},E.tickFormat=function(O,z){return d3_scale_linearTickFormat(A,O,z)},E.nice=function(O){return E.domain(Ck(A,O))},E.exponent=function(O){return arguments.length?(S=vp(g=O),L=vp(1/g),h.domain(A.map(S)),E):g},E.copy=function(){return Pk(h.copy(),g,A)},Lk(E,h)}function vp(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 A,S,L;function E(z){return S[((A.get(z)||(g.t==="range"?A.set(z,h.push(z)):NaN))-1)%S.length]}function O(z,H){return e.range(h.length).map(function(W){return z+H*W})}return E.domain=function(z){if(!arguments.length)return h;h=[],A=new b;for(var H=-1,W=z.length,Z;++H<W;)A.has(Z=z[H])||A.set(Z,h.push(Z));return E[g.t].apply(E,g.a)},E.range=function(z){return arguments.length?(S=z,L=0,g={t:"range",a:arguments},E):S},E.rangePoints=function(z,H){arguments.length<2&&(H=0);var W=z[0],Z=z[1],K=h.length<2?(W=(W+Z)/2,0):(Z-W)/(h.length-1+H);return S=O(W+K*H/2,K),L=0,g={t:"rangePoints",a:arguments},E},E.rangeRoundPoints=function(z,H){arguments.length<2&&(H=0);var W=z[0],Z=z[1],K=h.length<2?(W=Z=Math.round((W+Z)/2),0):(Z-W)/(h.length-1+H)|0;return S=O(W+Math.round(K*H/2+(Z-W-(h.length-1+H)*K)/2),K),L=0,g={t:"rangeRoundPoints",a:arguments},E},E.rangeBands=function(z,H,W){arguments.length<2&&(H=0),arguments.length<3&&(W=H);var Z=z[1]<z[0],K=z[Z-0],Q=z[1-Z],pe=(Q-K)/(h.length-H+2*W);return S=O(K+pe*W,pe),Z&&S.reverse(),L=pe*(1-H),g={t:"rangeBands",a:arguments},E},E.rangeRoundBands=function(z,H,W){arguments.length<2&&(H=0),arguments.length<3&&(W=H);var Z=z[1]<z[0],K=z[Z-0],Q=z[1-Z],pe=Math.floor((Q-K)/(h.length-H+2*W));return S=O(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},E},E.rangeBand=function(){return L},E.rangeExtent=function(){return fp(g.a[0])},E.copy=function(){return Rk(h,g)},E.domain(h)}e.scale.category10=function(){return e.scale.ordinal().range(ece)},e.scale.category20=function(){return e.scale.ordinal().range(rce)},e.scale.category20b=function(){return e.scale.ordinal().range(tce)},e.scale.category20c=function(){return e.scale.ordinal().range(ace)};var ece=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ls),rce=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ls),tce=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ls),ace=[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 zk([],[])};function zk(h,g){var A;function S(){var E=0,O=g.length;for(A=[];++E<O;)A[E-1]=e.quantile(h,E/O);return L}function L(E){if(!isNaN(E=+E))return g[e.bisect(A,E)]}return L.domain=function(E){return arguments.length?(h=E.map(v).filter(d).sort(c),S()):h},L.range=function(E){return arguments.length?(g=E,S()):g},L.quantiles=function(){return A},L.invertExtent=function(E){return E=g.indexOf(E),E<0?[NaN,NaN]:[E>0?A[E-1]:h[0],E<A.length?A[E]:h[h.length-1]]},L.copy=function(){return zk(h,g)},S()}e.scale.quantize=function(){return Nk(0,1,[0,1])};function Nk(h,g,A){var S,L;function E(z){return A[Math.max(0,Math.min(L,Math.floor(S*(z-h))))]}function O(){return S=A.length/(g-h),L=A.length-1,E}return E.domain=function(z){return arguments.length?(h=+z[0],g=+z[z.length-1],O()):[h,g]},E.range=function(z){return arguments.length?(A=z,O()):A},E.invertExtent=function(z){return z=A.indexOf(z),z=z<0?NaN:z/S+h,[z,z+1/S]},E.copy=function(){return Nk(h,g,A)},O()}e.scale.threshold=function(){return Ik([.5],[0,1])};function Ik(h,g){function A(S){if(S<=S)return g[e.bisect(h,S)]}return A.domain=function(S){return arguments.length?(h=S,A):h},A.range=function(S){return arguments.length?(g=S,A):g},A.invertExtent=function(S){return S=g.indexOf(S),[h[S-1],h[S]]},A.copy=function(){return Ik(h,g)},A}e.scale.identity=function(){return Fk([0,1])};function Fk(h){function g(A){return+A}return g.invert=g,g.domain=g.range=function(A){return arguments.length?(h=A.map(g),g):h},g.ticks=function(A){return P5(h,A)},g.tickFormat=function(A,S){return d3_scale_linearTickFormat(h,A,S)},g.copy=function(){return Fk(h)},g}e.svg={};function nce(){return 0}e.svg.arc=function(){var h=ice,g=oce,A=nce,S=hp,L=Ok,E=Bk,O=lce;function z(){var W=Math.max(0,+h.apply(this,arguments)),Z=Math.max(0,+g.apply(this,arguments)),K=L.apply(this,arguments)-ne,Q=E.apply(this,arguments)-ne,pe=Math.abs(Q-K),we=K>Q?0:1;if(Z<W&&(ee=Z,Z=W,W=ee),pe>=yr)return H(Z,we)+(W?H(W,1-we):"")+"Z";var ee,le,ve,xe,Te=0,he=0,Ye,or,hr,fr,br,xr,Nr,wr,Er=[];if((xe=(+O.apply(this,arguments)||0)/2)&&(ve=S===hp?Math.sqrt(W*W+Z*Z):+S.apply(this,arguments),we||(he*=-1),Z&&(he=mt(ve/Z*Math.sin(xe))),W&&(Te=mt(ve/W*Math.sin(xe)))),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 at=Math.abs(Q-K-2*he)<=mr?0:1;if(he&&dp(Ye,or,hr,fr)===we^at){var sa=(K+Q)/2;Ye=Z*Math.cos(sa),or=Z*Math.sin(sa),hr=fr=null}}else Ye=or=0;if(W){br=W*Math.cos(Q-Te),xr=W*Math.sin(Q-Te),Nr=W*Math.cos(K+Te),wr=W*Math.sin(K+Te);var gt=Math.abs(K-Q+2*Te)<=mr?0:1;if(Te&&dp(br,xr,Nr,wr)===1-we^gt){var ar=(K+Q)/2;br=W*Math.cos(ar),xr=W*Math.sin(ar),Nr=wr=null}}else br=xr=0;if(pe>Fe&&(ee=Math.min(Math.abs(Z-W)/2,+A.apply(this,arguments)))>.001){le=W<Z^we?0:1;var Ir=ee,Or=ee;if(pe<mr){var nt=Nr==null?[br,xr]:hr==null?[Ye,or]:y5([Ye,or],[Nr,wr],[hr,fr],[br,xr]),Xt=Ye-nt[0],Aa=or-nt[1],$a=hr-nt[0],bn=fr-nt[1],zn=1/Math.sin(Math.acos((Xt*$a+Aa*bn)/(Math.sqrt(Xt*Xt+Aa*Aa)*Math.sqrt($a*$a+bn*bn)))/2),xn=Math.sqrt(nt[0]*nt[0]+nt[1]*nt[1]);Or=Math.min(ee,(W-xn)/(zn-1)),Ir=Math.min(ee,(Z-xn)/(zn+1))}if(hr!=null){var Gn=pp(Nr==null?[br,xr]:[Nr,wr],[Ye,or],Z,Ir,we),sn=pp([hr,fr],[br,xr],Z,Ir,we);ee===Ir?Er.push("M",Gn[0],"A",Ir,",",Ir," 0 0,",le," ",Gn[1],"A",Z,",",Z," 0 ",1-we^dp(Gn[1][0],Gn[1][1],sn[1][0],sn[1][1]),",",we," ",sn[1],"A",Ir,",",Ir," 0 0,",le," ",sn[0]):Er.push("M",Gn[0],"A",Ir,",",Ir," 0 1,",le," ",sn[0])}else Er.push("M",Ye,",",or);if(Nr!=null){var Yn=pp([Ye,or],[Nr,wr],W,-Or,we),wu=pp([br,xr],hr==null?[Ye,or]:[hr,fr],W,-Or,we);ee===Or?Er.push("L",wu[0],"A",Or,",",Or," 0 0,",le," ",wu[1],"A",W,",",W," 0 ",we^dp(wu[1][0],wu[1][1],Yn[1][0],Yn[1][1]),",",1-we," ",Yn[1],"A",Or,",",Or," 0 0,",le," ",Yn[0]):Er.push("L",wu[0],"A",Or,",",Or," 0 0,",le," ",Yn[0])}else Er.push("L",br,",",xr)}else Er.push("M",Ye,",",or),hr!=null&&Er.push("A",Z,",",Z," 0 ",at,",",we," ",hr,",",fr),Er.push("L",br,",",xr),Nr!=null&&Er.push("A",W,",",W," 0 ",gt,",",1-we," ",Nr,",",wr);return Er.push("Z"),Er.join("")}function H(W,Z){return"M0,"+W+"A"+W+","+W+" 0 1,"+Z+" 0,"+-W+"A"+W+","+W+" 0 1,"+Z+" 0,"+W}return z.innerRadius=function(W){return arguments.length?(h=Mr(W),z):h},z.outerRadius=function(W){return arguments.length?(g=Mr(W),z):g},z.cornerRadius=function(W){return arguments.length?(A=Mr(W),z):A},z.padRadius=function(W){return arguments.length?(S=W==hp?hp:Mr(W),z):S},z.startAngle=function(W){return arguments.length?(L=Mr(W),z):L},z.endAngle=function(W){return arguments.length?(E=Mr(W),z):E},z.padAngle=function(W){return arguments.length?(O=Mr(W),z):O},z.centroid=function(){var W=(+h.apply(this,arguments)+ +g.apply(this,arguments))/2,Z=(+L.apply(this,arguments)+ +E.apply(this,arguments))/2-ne;return[Math.cos(Z)*W,Math.sin(Z)*W]},z};var hp="auto";function ice(h){return h.innerRadius}function oce(h){return h.outerRadius}function Ok(h){return h.startAngle}function Bk(h){return h.endAngle}function lce(h){return h&&h.padAngle}function dp(h,g,A,S){return(h-A)*g-(g-S)*h>0?0:1}function pp(h,g,A,S,L){var E=h[0]-g[0],O=h[1]-g[1],z=(L?S:-S)/Math.sqrt(E*E+O*O),H=z*O,W=-z*E,Z=h[0]+H,K=h[1]+W,Q=g[0]+H,pe=g[1]+W,we=(Z+Q)/2,ee=(K+pe)/2,le=Q-Z,ve=pe-K,xe=le*le+ve*ve,Te=A-S,he=Z*pe-Q*K,Ye=(ve<0?-1:1)*Math.sqrt(Math.max(0,Te*Te*xe-he*he)),or=(he*ve-le*Ye)/xe,hr=(-he*le-ve*Ye)/xe,fr=(he*ve+le*Ye)/xe,br=(-he*le+ve*Ye)/xe,xr=or-we,Nr=hr-ee,wr=fr-we,Er=br-ee;return xr*xr+Nr*Nr>wr*wr+Er*Er&&(or=fr,hr=br),[[or-H,hr-W],[or*A/Te,hr*A/Te]]}function Hk(){return!0}function Uk(h){var g=oc,A=z0,S=Hk,L=yo,E=L.key,O=.7;function z(H){var W=[],Z=[],K=-1,Q=H.length,pe,we=Mr(g),ee=Mr(A);function le(){W.push("M",L(h(Z),O))}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(),W.length?W.join(""):null}return z.x=function(H){return arguments.length?(g=H,z):g},z.y=function(H){return arguments.length?(A=H,z):A},z.defined=function(H){return arguments.length?(S=H,z):S},z.interpolate=function(H){return arguments.length?(typeof H=="function"?E=L=H:E=(L=R5.get(H)||yo).key,z):E},z.tension=function(H){return arguments.length?(O=H,z):O},z}e.svg.line=function(){return Uk(B)};var R5=e.map({linear:yo,"linear-closed":Gk,step:sce,"step-before":z5,"step-after":N5,basis:Yk,"basis-open":vce,"basis-closed":hce,bundle:dce,cardinal:cce,"cardinal-open":uce,"cardinal-closed":fce,monotone:yce});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 sce(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g<A;)L.push("H",(S[0]+(S=h[g])[0])/2,"V",S[1]);return A>1&&L.push("H",S[0]),L.join("")}function z5(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g<A;)L.push("V",(S=h[g])[1],"H",S[0]);return L.join("")}function N5(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g<A;)L.push("H",(S=h[g])[0],"V",S[1]);return L.join("")}function uce(h,g){return h.length<4?yo(h):h[1]+mp(h.slice(1,-1),I5(h,g))}function fce(h,g){return h.length<3?Gk(h):h[0]+mp((h.push(h[0]),h),I5([h[h.length-2]].concat(h,[h[1]]),g))}function cce(h,g){return h.length<3?yo(h):h[0]+mp(h,I5(h,g))}function mp(h,g){if(g.length<1||h.length!=g.length&&h.length!=g.length+2)return yo(h);var A=h.length!=g.length,S="",L=h[0],E=h[1],O=g[0],z=O,H=1;if(A&&(S+="Q"+(E[0]-O[0]*2/3)+","+(E[1]-O[1]*2/3)+","+E[0]+","+E[1],L=h[1],H=2),g.length>1){z=g[1],E=h[H],H++,S+="C"+(L[0]+O[0])+","+(L[1]+O[1])+","+(E[0]-z[0])+","+(E[1]-z[1])+","+E[0]+","+E[1];for(var W=2;W<g.length;W++,H++)E=h[H],z=g[W],S+="S"+(E[0]-z[0])+","+(E[1]-z[1])+","+E[0]+","+E[1]}if(A){var Z=h[H];S+="Q"+(E[0]+z[0]*2/3)+","+(E[1]+z[1]*2/3)+","+Z[0]+","+Z[1]}return S}function I5(h,g){for(var A=[],S=(1-g)/2,L,E=h[0],O=h[1],z=1,H=h.length;++z<H;)L=E,E=O,O=h[z],A.push([S*(O[0]-L[0]),S*(O[1]-L[1])]);return A}function Yk(h){if(h.length<3)return yo(h);var g=1,A=h.length,S=h[0],L=S[0],E=S[1],O=[L,L,L,(S=h[1])[0]],z=[E,E,E,S[1]],H=[L,",",E,"L",qi(us,O),",",qi(us,z)];for(h.push(h[A-1]);++g<=A;)S=h[g],O.shift(),O.push(S[0]),z.shift(),z.push(S[1]),F5(H,O,z);return h.pop(),H.push("L",S),H.join("")}function vce(h){if(h.length<4)return yo(h);for(var g=[],A=-1,S=h.length,L,E=[0],O=[0];++A<3;)L=h[A],E.push(L[0]),O.push(L[1]);for(g.push(qi(us,E)+","+qi(us,O)),--A;++A<S;)L=h[A],E.shift(),E.push(L[0]),O.shift(),O.push(L[1]),F5(g,E,O);return g.join("")}function hce(h){for(var g,A=-1,S=h.length,L=S+4,E,O=[],z=[];++A<4;)E=h[A%S],O.push(E[0]),z.push(E[1]);for(g=[qi(us,O),",",qi(us,z)],--A;++A<L;)E=h[A%S],O.shift(),O.push(E[0]),z.shift(),z.push(E[1]),F5(g,O,z);return g.join("")}function dce(h,g){var A=h.length-1;if(A)for(var S=h[0][0],L=h[0][1],E=h[A][0]-S,O=h[A][1]-L,z=-1,H,W;++z<=A;)H=h[z],W=z/A,H[0]=g*H[0]+(1-g)*(S+W*E),H[1]=g*H[1]+(1-g)*(L+W*O);return Yk(h)}function qi(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 F5(h,g,A){h.push("C",qi(Vk,g),",",qi(Vk,A),",",qi(jk,g),",",qi(jk,A),",",qi(us,g),",",qi(us,A))}function O5(h,g){return(g[1]-h[1])/(g[0]-h[0])}function pce(h){for(var g=0,A=h.length-1,S=[],L=h[0],E=h[1],O=S[0]=O5(L,E);++g<A;)S[g]=(O+(O=O5(L=E,E=h[g+1])))/2;return S[g]=O,S}function mce(h){for(var g=[],A,S,L,E,O=pce(h),z=-1,H=h.length-1;++z<H;)A=O5(h[z],h[z+1]),x(A)<Fe?O[z]=O[z+1]=0:(S=O[z]/A,L=O[z+1]/A,E=S*S+L*L,E>9&&(E=A*3/Math.sqrt(E),O[z]=E*S,O[z+1]=E*L));for(z=-1;++z<=H;)E=(h[Math.min(H,z+1)][0]-h[Math.max(0,z-1)][0])/(6*(1+O[z]*O[z])),g.push([E||0,O[z]*E||0]);return g}function yce(h){return h.length<3?yo(h):h[0]+mp(h,mce(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,A=-1,S=h.length,L,E;++A<S;)g=h[A],L=g[0],E=g[1]-ne,g[0]=L*Math.cos(E),g[1]=L*Math.sin(E);return h}function Xk(h){var g=oc,A=oc,S=0,L=z0,E=Hk,O=yo,z=O.key,H=O,W="L",Z=.7;function K(Q){var pe=[],we=[],ee=[],le=-1,ve=Q.length,xe,Te=Mr(g),he=Mr(S),Ye=g===A?function(){return hr}:Mr(A),or=S===L?function(){return fr}:Mr(L),hr,fr;function br(){pe.push("M",O(h(ee),Z),W,H(h(we.reverse()),Z),"Z")}for(;++le<ve;)E.call(this,xe=Q[le],le)?(we.push([hr=+Te.call(this,xe,le),fr=+he.call(this,xe,le)]),ee.push([+Ye.call(this,xe,le),+or.call(this,xe,le)])):we.length&&(br(),we=[],ee=[]);return we.length&&br(),pe.length?pe.join(""):null}return K.x=function(Q){return arguments.length?(g=A=Q,K):A},K.x0=function(Q){return arguments.length?(g=Q,K):g},K.x1=function(Q){return arguments.length?(A=Q,K):A},K.y=function(Q){return arguments.length?(S=L=Q,K):L},K.y0=function(Q){return arguments.length?(S=Q,K):S},K.y1=function(Q){return arguments.length?(L=Q,K):L},K.defined=function(Q){return arguments.length?(E=Q,K):E},K.interpolate=function(Q){return arguments.length?(typeof Q=="function"?z=O=Q:z=(O=R5.get(Q)||yo).key,H=O.reverse||O,W=O.closed?"M":"L",K):z},K.tension=function(Q){return arguments.length?(Z=Q,K):Z},K}z5.reverse=N5,N5.reverse=z5,e.svg.area=function(){return Xk(B)},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,A=gce,S=Ok,L=Bk;function E(Z,K){var Q=O(this,h,Z,K),pe=O(this,g,Z,K);return"M"+Q.p0+H(Q.r,Q.p1,Q.a1-Q.a0)+(z(Q,pe)?W(Q.r,Q.p1,Q.r,Q.p0):W(Q.r,Q.p1,pe.r,pe.p0)+H(pe.r,pe.p1,pe.a1-pe.a0)+W(pe.r,pe.p1,Q.r,Q.p0))+"Z"}function O(Z,K,Q,pe){var we=K.call(Z,Q,pe),ee=A.call(Z,we,pe),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 z(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 W(Z,K,Q,pe){return"Q 0,0 "+pe}return E.radius=function(Z){return arguments.length?(A=Mr(Z),E):A},E.source=function(Z){return arguments.length?(h=Mr(Z),E):h},E.target=function(Z){return arguments.length?(g=Mr(Z),E):g},E.startAngle=function(Z){return arguments.length?(S=Mr(Z),E):S},E.endAngle=function(Z){return arguments.length?(L=Mr(Z),E):L},E};function gce(h){return h.radius}e.svg.diagonal=function(){var h=Zk,g=$k,A=Jk;function S(L,E){var O=h.call(this,L,E),z=g.call(this,L,E),H=(O.y+z.y)/2,W=[O,{x:O.x,y:H},{x:z.x,y:H},z];return W=W.map(A),"M"+W[0]+"C"+W[1]+" "+W[2]+" "+W[3]}return S.source=function(L){return arguments.length?(h=Mr(L),S):h},S.target=function(L){return arguments.length?(g=Mr(L),S):g},S.projection=function(L){return arguments.length?(A=L,S):A},S};function Jk(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=Jk,A=h.projection;return h.projection=function(S){return arguments.length?A(bce(g=S)):g},h};function bce(h){return function(){var g=h.apply(this,arguments),A=g[0],S=g[1]-ne;return[A*Math.cos(S),A*Math.sin(S)]}}e.svg.symbol=function(){var h=_ce,g=xce;function A(S,L){return(Qk.get(h.call(this,S,L))||Kk)(g.call(this,S,L))}return A.type=function(S){return arguments.length?(h=Mr(S),A):h},A.size=function(S){return arguments.length?(g=Mr(S),A):g},A};function xce(){return 64}function _ce(){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)),A=g*eS;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/yp),A=g*yp/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/yp),A=g*yp/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=Qk.keys();var yp=Math.sqrt(3),eS=Math.tan(30*ye);ie.transition=function(h){for(var g=_u||++tS,A=H5(h),S=[],L,E,O=bp||{time:Date.now(),ease:Que,delay:0,duration:250},z=-1,H=this.length;++z<H;){S.push(L=[]);for(var W=this[z],Z=-1,K=W.length;++Z<K;)(E=W[Z])&&xp(E,Z,A,g,O),L.push(E)}return G0(S,A,g)},ie.interrupt=function(h){return this.each(h==null?gp:rS(H5(h)))};var gp=rS(H5());function rS(h){return function(){var g,A,S;(g=this[h])&&(S=g[A=g.active])&&(S.timer.c=null,S.timer.t=NaN,--g.count?delete g[A]:delete this[h],g.active+=.5,S.event&&S.event.interrupt.call(this,this.__data__,S.index))}}function G0(h,g,A){return $(h,Ma),h.namespace=g,h.id=A,h}var Ma=[],tS=0,_u,bp;Ma.call=ie.call,Ma.empty=ie.empty,Ma.node=ie.node,Ma.size=ie.size,e.transition=function(h,g){return h&&h.transition?_u?h.transition(g):h:e.selection().transition(h)},e.transition.prototype=Ma,Ma.select=function(h){var g=this.id,A=this.namespace,S=[],L,E,O;h=ge(h);for(var z=-1,H=this.length;++z<H;){S.push(L=[]);for(var W=this[z],Z=-1,K=W.length;++Z<K;)(O=W[Z])&&(E=h.call(O,O.__data__,Z,z))?("__data__"in O&&(E.__data__=O.__data__),xp(E,Z,A,g,O[A][g]),L.push(E)):L.push(null)}return G0(S,A,g)},Ma.selectAll=function(h){var g=this.id,A=this.namespace,S=[],L,E,O,z,H;h=Ce(h);for(var W=-1,Z=this.length;++W<Z;)for(var K=this[W],Q=-1,pe=K.length;++Q<pe;)if(O=K[Q]){H=O[A][g],E=h.call(O,O.__data__,Q,W),S.push(L=[]);for(var we=-1,ee=E.length;++we<ee;)(z=E[we])&&xp(z,we,A,g,H),L.push(z)}return G0(S,A,g)},Ma.filter=function(h){var g=[],A,S,L;typeof h!="function"&&(h=re(h));for(var E=0,O=this.length;E<O;E++){g.push(A=[]);for(var S=this[E],z=0,H=S.length;z<H;z++)(L=S[z])&&h.call(L,L.__data__,z,E)&&A.push(L)}return G0(g,this.namespace,this.id)},Ma.tween=function(h,g){var A=this.id,S=this.namespace;return arguments.length<2?this.node()[S][A].tween.get(h):Ge(this,g==null?function(L){L[S][A].tween.remove(h)}:function(L){L[S][A].tween.set(h,g)})};function B5(h,g,A,S){var L=h.id,E=h.namespace;return Ge(h,typeof A=="function"?function(O,z,H){O[E][L].tween.set(g,S(A.call(O,O.__data__,z,H)))}:(A=S(A),function(O){O[E][L].tween.set(g,A)}))}Ma.attr=function(h,g){if(arguments.length<2){for(g in h)this.attr(g,h[g]);return this}var A=h=="transform"?hk:xu,S=e.ns.qualify(h);function L(){this.removeAttribute(S)}function E(){this.removeAttributeNS(S.space,S.local)}function O(H){return H==null?L:(H+="",function(){var W=this.getAttribute(S),Z;return W!==H&&(Z=A(W,H),function(K){this.setAttribute(S,Z(K))})})}function z(H){return H==null?E:(H+="",function(){var W=this.getAttributeNS(S.space,S.local),Z;return W!==H&&(Z=A(W,H),function(K){this.setAttributeNS(S.space,S.local,Z(K))})})}return B5(this,"attr."+h,g,S.local?z:O)},Ma.attrTween=function(h,g){var A=e.ns.qualify(h);function S(E,O){var z=g.call(this,E,O,this.getAttribute(A));return z&&function(H){this.setAttribute(A,z(H))}}function L(E,O){var z=g.call(this,E,O,this.getAttributeNS(A.space,A.local));return z&&function(H){this.setAttributeNS(A.space,A.local,z(H))}}return this.tween("attr."+h,A.local?L:S)},Ma.style=function(h,g,A){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g="");for(A in h)this.style(A,h[A],g);return this}A=""}function L(){this.style.removeProperty(h)}function E(O){return O==null?L:(O+="",function(){var z=i(this).getComputedStyle(this,null).getPropertyValue(h),H;return z!==O&&(H=xu(z,O),function(W){this.style.setProperty(h,H(W),A)})})}return B5(this,"style."+h,g,E)},Ma.styleTween=function(h,g,A){arguments.length<3&&(A="");function S(L,E){var O=g.call(this,L,E,i(this).getComputedStyle(this,null).getPropertyValue(h));return O&&function(z){this.style.setProperty(h,O(z),A)}}return this.tween("style."+h,S)},Ma.text=function(h){return B5(this,"text",h,wce)};function wce(h){return h==null&&(h=""),function(){this.textContent=h}}Ma.remove=function(){var h=this.namespace;return this.each("end.transition",function(){var g;this[h].count<2&&(g=this.parentNode)&&g.removeChild(this)})},Ma.ease=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].ease:(typeof h!="function"&&(h=e.ease.apply(e,arguments)),Ge(this,function(S){S[A][g].ease=h}))},Ma.delay=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].delay:Ge(this,typeof h=="function"?function(S,L,E){S[A][g].delay=+h.call(S,S.__data__,L,E)}:(h=+h,function(S){S[A][g].delay=h}))},Ma.duration=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].duration:Ge(this,typeof h=="function"?function(S,L,E){S[A][g].duration=Math.max(1,h.call(S,S.__data__,L,E))}:(h=Math.max(1,h),function(S){S[A][g].duration=h}))},Ma.each=function(h,g){var A=this.id,S=this.namespace;if(arguments.length<2){var L=bp,E=_u;try{_u=A,Ge(this,function(O,z,H){bp=O[S][A],h.call(O,O.__data__,z,H)})}finally{bp=L,_u=E}}else Ge(this,function(O){var z=O[S][A];(z.event||(z.event=e.dispatch("start","end","interrupt"))).on(h,g)});return this},Ma.transition=function(){for(var h=this.id,g=++tS,A=this.namespace,S=[],L,E,O,z,H=0,W=this.length;H<W;H++){S.push(L=[]);for(var E=this[H],Z=0,K=E.length;Z<K;Z++)(O=E[Z])&&(z=O[A][h],xp(O,Z,A,g,{time:z.time,ease:z.ease,delay:z.delay+z.duration,duration:z.duration})),L.push(O)}return G0(S,A,g)};function H5(h){return h==null?"__transition__":"__transition_"+h+"__"}function xp(h,g,A,S,L){var E=h[A]||(h[A]={active:0,count:0}),O=E[S],z,H,W,Z,K;function Q(ee){var le=O.delay;if(H.t=le+z,le<=ee)return pe(ee-le);H.c=pe}function pe(ee){var le=E.active,ve=E[le];ve&&(ve.timer.c=null,ve.timer.t=NaN,--E.count,delete E[le],ve.event&&ve.event.interrupt.call(h,h.__data__,ve.index));for(var xe in E)if(+xe<S){var Te=E[xe];Te.timer.c=null,Te.timer.t=NaN,--E.count,delete E[xe]}H.c=we,ap(function(){return H.c&&we(ee||1)&&(H.c=null,H.t=NaN),1},0,z),E.active=S,O.event&&O.event.start.call(h,h.__data__,g),K=[],O.tween.forEach(function(he,Ye){(Ye=Ye.call(h,h.__data__,g))&&K.push(Ye)}),Z=O.ease,W=O.duration}function we(ee){for(var le=ee/W,ve=Z(le),xe=K.length;xe>0;)K[--xe].call(h,ve);if(le>=1)return O.event&&O.event.end.call(h,h.__data__,g),--E.count?delete E[S]:delete h[A],1}O||(z=L.time,H=ap(Q,0,z),O=E[S]={tween:new b,time:z,timer:H,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++E.count)}e.svg.axis=function(){var h=e.scale.linear(),g=aS,A=6,S=6,L=3,E=[10],O=null,z;function H(W){W.each(function(){var Z=e.select(this),K=this.__chart__||h,Q=this.__chart__=h.copy(),pe=O==null?Q.ticks?Q.ticks.apply(Q,E):Q.domain():O,we=z==null?Q.tickFormat?Q.tickFormat.apply(Q,E):B:z,ee=Z.selectAll(".tick").data(pe,Q),le=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",Fe),ve=e.transition(ee.exit()).style("opacity",Fe).remove(),xe=e.transition(ee.order()).style("opacity",1),Te=Math.max(A,0)+L,he,Ye=cp(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=xe.select("line"),xr=ee.select("text").text(we),Nr=le.select("text"),wr=xe.select("text"),Er=g==="top"||g==="left"?-1:1,at,sa,gt,ar;if(g==="bottom"||g==="top"?(he=Mce,at="x",gt="y",sa="x2",ar="y2",xr.attr("dy",Er<0?"0em":".71em").style("text-anchor","middle"),hr.attr("d","M"+Ye[0]+","+Er*S+"V0H"+Ye[1]+"V"+Er*S)):(he=Ace,at="y",gt="x",sa="y2",ar="x2",xr.attr("dy",".32em").style("text-anchor",Er<0?"end":"start"),hr.attr("d","M"+Er*S+","+Ye[0]+"H0V"+Ye[1]+"H"+Er*S)),fr.attr(ar,Er*A),Nr.attr(gt,Er*Te),br.attr(sa,0).attr(ar,Er*A),wr.attr(at,0).attr(gt,Er*Te),Q.rangeBand){var Ir=Q,Or=Ir.rangeBand()/2;K=Q=function(nt){return Ir(nt)+Or}}else K.rangeBand?K=Q:ve.call(he,Q,K);le.call(he,K,Q),xe.call(he,Q,Q)})}return H.scale=function(W){return arguments.length?(h=W,H):h},H.orient=function(W){return arguments.length?(g=W in Tce?W+"":aS,H):g},H.ticks=function(){return arguments.length?(E=t(arguments),H):E},H.tickValues=function(W){return arguments.length?(O=W,H):O},H.tickFormat=function(W){return arguments.length?(z=W,H):z},H.tickSize=function(W){var Z=arguments.length;return Z?(A=+W,S=+arguments[Z-1],H):A},H.innerTickSize=function(W){return arguments.length?(A=+W,H):A},H.outerTickSize=function(W){return arguments.length?(S=+W,H):S},H.tickPadding=function(W){return arguments.length?(L=+W,H):L},H.tickSubdivide=function(){return arguments.length&&H},H};var aS="bottom",Tce={top:1,right:1,bottom:1,left:1};function Mce(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:A(S))+",0)"})}function Ace(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate(0,"+(isFinite(L)?L:A(S))+")"})}e.svg.brush=function(){var h=te(Z,"brushstart","brush","brushend"),g=null,A=null,S=[0,0],L=[0,0],E,O,z=!0,H=!0,W=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 xe=le.selectAll(".resize").data(W,B);xe.exit().remove(),xe.enter().append("g").attr("class",function(or){return"resize "+or}).style("cursor",function(or){return kce[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"),xe.style("display",Z.empty()?"none":null);var Te=e.transition(le),he=e.transition(ve),Ye;g&&(Ye=cp(g),he.attr("x",Ye[0]).attr("width",Ye[1]-Ye[0]),Q(Te)),A&&(Ye=cp(A),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:E,j:O},xe=this.__chart__||ve;this.__chart__=ve,_u?e.select(this).transition().each("start.brush",function(){E=xe.i,O=xe.j,S=xe.x,L=xe.y,le({type:"brushstart"})}).tween("brush:brush",function(){var Te=up(S,ve.x),he=up(L,ve.y);return E=O=null,function(Ye){S=ve.x=Te(Ye),L=ve.y=he(Ye),le({type:"brush",mode:"resize"})}}).each("end.brush",function(){E=ve.i,O=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),xe=e.select(ee),Te=le.datum(),he=!/^(n|s)$/.test(Te)&&g,Ye=!/^(e|w)$/.test(Te)&&A,or=le.classed("extent"),hr=ir(ee),fr,br=e.mouse(ee),xr,Nr=e.select(i(ee)).on("keydown.brush",at).on("keyup.brush",sa);if(e.event.changedTouches?Nr.on("touchmove.brush",gt).on("touchend.brush",Ir):Nr.on("mousemove.brush",gt).on("mouseup.brush",Ir),xe.interrupt().selectAll("*").interrupt(),or)br[0]=S[0]-br[0],br[1]=L[0]-br[1];else if(Te){var wr=+/w$/.test(Te),Er=+/^n/.test(Te);xr=[S[1-wr]-br[0],L[1-Er]-br[1]],br[0]=S[wr],br[1]=L[Er]}else e.event.altKey&&(fr=br.slice());xe.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",le.style("cursor")),ve({type:"brushstart"}),gt();function at(){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 Or=e.mouse(ee),nt=!1;xr&&(Or[0]+=xr[0],Or[1]+=xr[1]),or||(e.event.altKey?(fr||(fr=[(S[0]+S[1])/2,(L[0]+L[1])/2]),br[0]=S[+(Or[0]<fr[0])],br[1]=L[+(Or[1]<fr[1])]):fr=null),he&&ar(Or,g,0)&&(Q(xe),nt=!0),Ye&&ar(Or,A,1)&&(pe(xe),nt=!0),nt&&(K(xe),ve({type:"brush",mode:or?"move":"resize"}))}function ar(Or,nt,Xt){var Aa=cp(nt),$a=Aa[0],bn=Aa[1],zn=br[Xt],xn=Xt?L:S,Gn=xn[1]-xn[0],sn,Yn;if(or&&($a-=zn,bn-=Gn+zn),sn=(Xt?H:z)?Math.max($a,Math.min(bn,Or[Xt])):Or[Xt],or?Yn=(sn+=zn)+Gn:(fr&&(zn=Math.max($a,Math.min(bn,2*fr[Xt]-sn))),zn<sn?(Yn=sn,sn=zn):Yn=zn),xn[0]!=sn||xn[1]!=Yn)return Xt?O=null:E=null,xn[0]=sn,xn[1]=Yn,!0}function Ir(){gt(),xe.style("pointer-events","all").selectAll(".resize").style("display",Z.empty()?"none":null),e.select("body").style("cursor",null),Nr.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),hr(),ve({type:"brushend"})}}return Z.x=function(ee){return arguments.length?(g=ee,W=U5[!g<<1|!A],Z):g},Z.y=function(ee){return arguments.length?(A=ee,W=U5[!g<<1|!A],Z):A},Z.clamp=function(ee){return arguments.length?(g&&A?(z=!!ee[0],H=!!ee[1]):g?z=!!ee:A&&(H=!!ee),Z):g&&A?[z,H]:g?z:A?H:null},Z.extent=function(ee){var le,ve,xe,Te,he;return arguments.length?(g&&(le=ee[0],ve=ee[1],A&&(le=le[0],ve=ve[0]),E=[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])),A&&(xe=ee[0],Te=ee[1],g&&(xe=xe[1],Te=Te[1]),O=[xe,Te],A.invert&&(xe=A(xe),Te=A(Te)),Te<xe&&(he=xe,xe=Te,Te=he),(xe!=L[0]||Te!=L[1])&&(L=[xe,Te])),Z):(g&&(E?(le=E[0],ve=E[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))),A&&(O?(xe=O[0],Te=O[1]):(xe=L[0],Te=L[1],A.invert&&(xe=A.invert(xe),Te=A.invert(Te)),Te<xe&&(he=xe,xe=Te,Te=he))),g&&A?[[le,xe],[ve,Te]]:g?[le,ve]:A&&[xe,Te])},Z.clear=function(){return Z.empty()||(S=[0,0],L=[0,0],E=O=null),Z},Z.empty=function(){return!!g&&S[0]==S[1]||!!A&&L[0]==L[1]},e.rebind(Z,h,"on")};var kce={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",Sce,g)};function Sce(h){return JSON.parse(h.responseText)}e.html=function(h,g){return ur(h,"text/html",qce,g)};function qce(h){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(h.responseText)}e.xml=dt(function(h){return h.responseXML}),typeof Tp=="object"&&Tp.exports?Tp.exports=e:this.d3=e}).apply(self)});var G5=N((Mp,vS)=>{(function(e,r){typeof Mp=="object"&&typeof vS!="undefined"?r(Mp):(e=e||self,r(e.d3=e.d3||{}))})(Mp,function(e){"use strict";var r=new Date,t=new Date;function a(re,be,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)),be(me,1),re(me),me},Pe.round=function(me){var Me=Pe(me),He=Pe.ceil(me);return me-Me<He-me?Me:He},Pe.offset=function(me,Me){return be(me=new Date(+me),Me==null?1:Math.floor(Me)),me},Pe.range=function(me,Me,He){var Xe=[],Oe;if(me=Pe.ceil(me),He=He==null?1:Math.floor(He),!(me<Me)||!(He>0))return Xe;do Xe.push(Oe=new Date(+me)),be(me,He),re(me);while(Oe<me&&me<Me);return Xe},Pe.filter=function(me){return a(function(Me){if(Me>=Me)for(;re(Me),!me(Me);)Me.setTime(Me-1)},function(Me,He){if(Me>=Me)if(He<0)for(;++He<=0;)for(;be(Me,-1),!me(Me););else for(;--He>=0;)for(;be(Me,1),!me(Me););})},Ge&&(Pe.count=function(me,Me){return r.setTime(+me),t.setTime(+Me),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(Me){return cr(Me)%me===0}:function(Me){return Pe.count(0,Me)%me===0}):Pe}),Pe}var n=a(function(){},function(re,be){re.setTime(+re+be)},function(re,be){return be-re});n.every=function(re){return re=Math.floor(re),!isFinite(re)||!(re>0)?null:re>1?a(function(be){be.setTime(Math.floor(be/re)*re)},function(be,Ge){be.setTime(+be+Ge*re)},function(be,Ge){return(Ge-be)/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,be){re.setTime(+re+be*o)},function(re,be){return(be-re)/o},function(re){return re.getUTCSeconds()}),v=c.range,d=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o)},function(re,be){re.setTime(+re+be*l)},function(re,be){return(be-re)/l},function(re){return re.getMinutes()}),p=d.range,m=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o-re.getMinutes()*l)},function(re,be){re.setTime(+re+be*s)},function(re,be){return(be-re)/s},function(re){return re.getHours()}),y=m.range,x=a(function(re){re.setHours(0,0,0,0)},function(re,be){re.setDate(re.getDate()+be)},function(re,be){return(be-re-(be.getTimezoneOffset()-re.getTimezoneOffset())*l)/u},function(re){return re.getDate()-1}),T=x.range;function w(re){return a(function(be){be.setDate(be.getDate()-(be.getDay()+7-re)%7),be.setHours(0,0,0,0)},function(be,Ge){be.setDate(be.getDate()+Ge*7)},function(be,Ge){return(Ge-be-(Ge.getTimezoneOffset()-be.getTimezoneOffset())*l)/f})}var b=w(0),_=w(1),k=w(2),M=w(3),q=w(4),C=w(5),D=w(6),P=b.range,R=_.range,I=k.range,F=M.range,B=q.range,U=C.range,G=D.range,V=a(function(re){re.setDate(1),re.setHours(0,0,0,0)},function(re,be){re.setMonth(re.getMonth()+be)},function(re,be){return be.getMonth()-re.getMonth()+(be.getFullYear()-re.getFullYear())*12},function(re){return re.getMonth()}),Y=V.range,X=a(function(re){re.setMonth(0,1),re.setHours(0,0,0,0)},function(re,be){re.setFullYear(re.getFullYear()+be)},function(re,be){return be.getFullYear()-re.getFullYear()},function(re){return re.getFullYear()});X.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(be){be.setFullYear(Math.floor(be.getFullYear()/re)*re),be.setMonth(0,1),be.setHours(0,0,0,0)},function(be,Ge){be.setFullYear(be.getFullYear()+Ge*re)})};var j=X.range,J=a(function(re){re.setUTCSeconds(0,0)},function(re,be){re.setTime(+re+be*l)},function(re,be){return(be-re)/l},function(re){return re.getUTCMinutes()}),ae=J.range,te=a(function(re){re.setUTCMinutes(0,0,0)},function(re,be){re.setTime(+re+be*s)},function(re,be){return(be-re)/s},function(re){return re.getUTCHours()}),se=te.range,$=a(function(re){re.setUTCHours(0,0,0,0)},function(re,be){re.setUTCDate(re.getUTCDate()+be)},function(re,be){return(be-re)/u},function(re){return re.getUTCDate()-1}),fe=$.range;function oe(re){return a(function(be){be.setUTCDate(be.getUTCDate()-(be.getUTCDay()+7-re)%7),be.setUTCHours(0,0,0,0)},function(be,Ge){be.setUTCDate(be.getUTCDate()+Ge*7)},function(be,Ge){return(Ge-be)/f})}var ue=oe(0),ce=oe(1),ie=oe(2),ge=oe(3),Ce=oe(4),_e=oe(5),Ee=oe(6),Ae=ue.range,Se=ce.range,Re=ie.range,Ie=ge.range,Le=Ce.range,Ze=_e.range,Je=Ee.range,We=a(function(re){re.setUTCDate(1),re.setUTCHours(0,0,0,0)},function(re,be){re.setUTCMonth(re.getUTCMonth()+be)},function(re,be){return be.getUTCMonth()-re.getUTCMonth()+(be.getUTCFullYear()-re.getUTCFullYear())*12},function(re){return re.getUTCMonth()}),qe=We.range,ze=a(function(re){re.setUTCMonth(0,1),re.setUTCHours(0,0,0,0)},function(re,be){re.setUTCFullYear(re.getUTCFullYear()+be)},function(re,be){return be.getUTCFullYear()-re.getUTCFullYear()},function(re){return re.getUTCFullYear()});ze.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(be){be.setUTCFullYear(Math.floor(be.getUTCFullYear()/re)*re),be.setUTCMonth(0,1),be.setUTCHours(0,0,0,0)},function(be,Ge){be.setUTCFullYear(be.getUTCFullYear()+Ge*re)})};var Qe=ze.range;e.timeDay=x,e.timeDays=T,e.timeFriday=C,e.timeFridays=U,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=_,e.timeMondays=R,e.timeMonth=V,e.timeMonths=Y,e.timeSaturday=D,e.timeSaturdays=G,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=b,e.timeSundays=P,e.timeThursday=q,e.timeThursdays=B,e.timeTuesday=k,e.timeTuesdays=I,e.timeWednesday=M,e.timeWednesdays=F,e.timeWeek=b,e.timeWeeks=P,e.timeYear=X,e.timeYears=j,e.utcDay=$,e.utcDays=fe,e.utcFriday=_e,e.utcFridays=Ze,e.utcHour=te,e.utcHours=se,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=J,e.utcMinutes=ae,e.utcMonday=ce,e.utcMondays=Se,e.utcMonth=We,e.utcMonths=qe,e.utcSaturday=Ee,e.utcSaturdays=Je,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ue,e.utcSundays=Ae,e.utcThursday=Ce,e.utcThursdays=Le,e.utcTuesday=ie,e.utcTuesdays=Re,e.utcWednesday=ge,e.utcWednesdays=Ie,e.utcWeek=ue,e.utcWeeks=Ae,e.utcYear=ze,e.utcYears=Qe,Object.defineProperty(e,"__esModule",{value:!0})})});var pc=N((Ap,hS)=>{(function(e,r){typeof Ap=="object"&&typeof hS!="undefined"?r(Ap,G5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Ap,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var ye=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return ye.setFullYear(ne.y),ye}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 ye=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return ye.setUTCFullYear(ne.y),ye}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,ye,Ne){return{y:ne,m:ye,d:Ne,H:0,M:0,S:0,L:0}}function i(ne){var ye=ne.dateTime,Ne=ne.date,Be=ne.time,$r=ne.periods,Kr=ne.days,mt=ne.shortDays,yt=ne.months,Lt=ne.shortMonths,Qt=v($r),Va=d($r),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:ic,c:null,d:V,e:V,f:ae,g:_e,G:Ae,H:Y,I:X,j,L:J,m:te,M:se,p:ls,q:Rn,Q:ir,s:lr,S:$,u:fe,U:oe,V:ce,w:ie,W:ge,x:null,X:null,y:Ce,Y:Ee,Z:Se,"%":tr},At={a:ss,A:ep,b:rp,B:tp,c:null,d:Re,e:Re,f:We,g:He,G:Oe,H:Ie,I:Le,j:Ze,L:Je,m:qe,M:ze,p:P0,q:R0,Q:ir,s:lr,S:Qe,u:re,U:be,V:cr,w:Pe,W:me,x:null,X:null,y:Me,Y:Xe,Z:je,"%":tr},tt={a:ta,A:aa,b:ht,B:Wa,c:Ht,d:q,e:q,f:F,g:b,G:w,H:D,I:D,j:C,L:I,m:M,M:P,p:Ct,q:k,Q:U,s:G,S:R,u:m,U:y,V:x,w:p,W:T,x:nc,X:Pn,y:b,Y:w,Z:_,"%":B};Rt.x=ra(Ne,Rt),Rt.X=ra(Be,Rt),Rt.c=ra(ye,Rt),At.x=ra(Ne,At),At.X=ra(Be,At),At.c=ra(ye,At);function ra(Ar,Mr){return function(dt){var ur=[],gn=-1,zt=0,Xa=Ar.length,Za,Si,gu;for(dt instanceof Date||(dt=new Date(+dt));++gn<Xa;)Ar.charCodeAt(gn)===37&&(ur.push(Ar.slice(zt,gn)),(Si=o[Za=Ar.charAt(++gn)])!=null?Za=Ar.charAt(++gn):Si=Za==="e"?" ":"0",(gu=Mr[Za])&&(Za=gu(dt,Si)),ur.push(Za),zt=gn+1);return ur.push(Ar.slice(zt,gn)),ur.join("")}}function Dn(Ar,Mr){return function(dt){var ur=n(1900,void 0,1),gn=Vt(ur,Ar,dt+="",0),zt,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(Mr&&!("Z"in ur)&&(ur.Z=0),"p"in ur&&(ur.H=ur.H%12+ur.p*12),ur.m===void 0&&(ur.m="q"in ur?ur.q:0),"V"in ur){if(ur.V<1||ur.V>53)return null;"w"in ur||(ur.w=1),"Z"in ur?(zt=a(n(ur.y,0,1)),Xa=zt.getUTCDay(),zt=Xa>4||Xa===0?r.utcMonday.ceil(zt):r.utcMonday(zt),zt=r.utcDay.offset(zt,(ur.V-1)*7),ur.y=zt.getUTCFullYear(),ur.m=zt.getUTCMonth(),ur.d=zt.getUTCDate()+(ur.w+6)%7):(zt=t(n(ur.y,0,1)),Xa=zt.getDay(),zt=Xa>4||Xa===0?r.timeMonday.ceil(zt):r.timeMonday(zt),zt=r.timeDay.offset(zt,(ur.V-1)*7),ur.y=zt.getFullYear(),ur.m=zt.getMonth(),ur.d=zt.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(Ar,Mr,dt,ur){for(var gn=0,zt=Mr.length,Xa=dt.length,Za,Si;gn<zt;){if(ur>=Xa)return-1;if(Za=Mr.charCodeAt(gn++),Za===37){if(Za=Mr.charAt(gn++),Si=tt[Za in o?Mr.charAt(gn++):Za],!Si||(ur=Si(Ar,dt,ur))<0)return-1}else if(Za!=dt.charCodeAt(ur++))return-1}return ur}function Ct(Ar,Mr,dt){var ur=Qt.exec(Mr.slice(dt));return ur?(Ar.p=Va[ur[0].toLowerCase()],dt+ur[0].length):-1}function ta(Ar,Mr,dt){var ur=ln.exec(Mr.slice(dt));return ur?(Ar.w=oa[ur[0].toLowerCase()],dt+ur[0].length):-1}function aa(Ar,Mr,dt){var ur=ea.exec(Mr.slice(dt));return ur?(Ar.w=ja[ur[0].toLowerCase()],dt+ur[0].length):-1}function ht(Ar,Mr,dt){var ur=Yr.exec(Mr.slice(dt));return ur?(Ar.m=vt[ur[0].toLowerCase()],dt+ur[0].length):-1}function Wa(Ar,Mr,dt){var ur=vr.exec(Mr.slice(dt));return ur?(Ar.m=_t[ur[0].toLowerCase()],dt+ur[0].length):-1}function Ht(Ar,Mr,dt){return Vt(Ar,ye,Mr,dt)}function nc(Ar,Mr,dt){return Vt(Ar,Ne,Mr,dt)}function Pn(Ar,Mr,dt){return Vt(Ar,Be,Mr,dt)}function mo(Ar){return mt[Ar.getDay()]}function li(Ar){return Kr[Ar.getDay()]}function la(Ar){return Lt[Ar.getMonth()]}function ic(Ar){return yt[Ar.getMonth()]}function ls(Ar){return $r[+(Ar.getHours()>=12)]}function Rn(Ar){return 1+~~(Ar.getMonth()/3)}function ss(Ar){return mt[Ar.getUTCDay()]}function ep(Ar){return Kr[Ar.getUTCDay()]}function rp(Ar){return Lt[Ar.getUTCMonth()]}function tp(Ar){return yt[Ar.getUTCMonth()]}function P0(Ar){return $r[+(Ar.getUTCHours()>=12)]}function R0(Ar){return 1+~~(Ar.getUTCMonth()/3)}return{format:function(Ar){var Mr=ra(Ar+="",Rt);return Mr.toString=function(){return Ar},Mr},parse:function(Ar){var Mr=Dn(Ar+="",!1);return Mr.toString=function(){return Ar},Mr},utcFormat:function(Ar){var Mr=ra(Ar+="",At);return Mr.toString=function(){return Ar},Mr},utcParse:function(Ar){var Mr=Dn(Ar+="",!0);return Mr.toString=function(){return Ar},Mr}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,ye,Ne){var Be=ne<0?"-":"",$r=(Be?-ne:ne)+"",Kr=$r.length;return Be+(Kr<Ne?new Array(Ne-Kr+1).join(ye)+$r:$r)}function c(ne){return ne.replace(u,"\\$&")}function v(ne){return new RegExp("^(?:"+ne.map(c).join("|")+")","i")}function d(ne){for(var ye={},Ne=-1,Be=ne.length;++Ne<Be;)ye[ne[Ne].toLowerCase()]=Ne;return ye}function p(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+1));return Be?(ne.w=+Be[0],Ne+Be[0].length):-1}function m(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+1));return Be?(ne.u=+Be[0],Ne+Be[0].length):-1}function y(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+2));return Be?(ne.U=+Be[0],Ne+Be[0].length):-1}function x(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+2));return Be?(ne.V=+Be[0],Ne+Be[0].length):-1}function T(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+2));return Be?(ne.W=+Be[0],Ne+Be[0].length):-1}function w(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+4));return Be?(ne.y=+Be[0],Ne+Be[0].length):-1}function b(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+2));return Be?(ne.y=+Be[0]+(+Be[0]>68?1900:2e3),Ne+Be[0].length):-1}function _(ne,ye,Ne){var Be=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ye.slice(Ne,Ne+6));return Be?(ne.Z=Be[1]?0:-(Be[2]+(Be[3]||"00")),Ne+Be[0].length):-1}function k(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+1));return Be?(ne.q=Be[0]*3-3,Ne+Be[0].length):-1}function M(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+2));return Be?(ne.m=Be[0]-1,Ne+Be[0].length):-1}function q(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+2));return Be?(ne.d=+Be[0],Ne+Be[0].length):-1}function C(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+3));return Be?(ne.m=0,ne.d=+Be[0],Ne+Be[0].length):-1}function D(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+2));return Be?(ne.H=+Be[0],Ne+Be[0].length):-1}function P(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+2));return Be?(ne.M=+Be[0],Ne+Be[0].length):-1}function R(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+2));return Be?(ne.S=+Be[0],Ne+Be[0].length):-1}function I(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+3));return Be?(ne.L=+Be[0],Ne+Be[0].length):-1}function F(ne,ye,Ne){var Be=l.exec(ye.slice(Ne,Ne+6));return Be?(ne.L=Math.floor(Be[0]/1e3),Ne+Be[0].length):-1}function B(ne,ye,Ne){var Be=s.exec(ye.slice(Ne,Ne+1));return Be?Ne+Be[0].length:-1}function U(ne,ye,Ne){var Be=l.exec(ye.slice(Ne));return Be?(ne.Q=+Be[0],Ne+Be[0].length):-1}function G(ne,ye,Ne){var Be=l.exec(ye.slice(Ne));return Be?(ne.s=+Be[0],Ne+Be[0].length):-1}function V(ne,ye){return f(ne.getDate(),ye,2)}function Y(ne,ye){return f(ne.getHours(),ye,2)}function X(ne,ye){return f(ne.getHours()%12||12,ye,2)}function j(ne,ye){return f(1+r.timeDay.count(r.timeYear(ne),ne),ye,3)}function J(ne,ye){return f(ne.getMilliseconds(),ye,3)}function ae(ne,ye){return J(ne,ye)+"000"}function te(ne,ye){return f(ne.getMonth()+1,ye,2)}function se(ne,ye){return f(ne.getMinutes(),ye,2)}function $(ne,ye){return f(ne.getSeconds(),ye,2)}function fe(ne){var ye=ne.getDay();return ye===0?7:ye}function oe(ne,ye){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),ye,2)}function ue(ne){var ye=ne.getDay();return ye>=4||ye===0?r.timeThursday(ne):r.timeThursday.ceil(ne)}function ce(ne,ye){return ne=ue(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),ye,2)}function ie(ne){return ne.getDay()}function ge(ne,ye){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),ye,2)}function Ce(ne,ye){return f(ne.getFullYear()%100,ye,2)}function _e(ne,ye){return ne=ue(ne),f(ne.getFullYear()%100,ye,2)}function Ee(ne,ye){return f(ne.getFullYear()%1e4,ye,4)}function Ae(ne,ye){var Ne=ne.getDay();return ne=Ne>=4||Ne===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(ne.getFullYear()%1e4,ye,4)}function Se(ne){var ye=ne.getTimezoneOffset();return(ye>0?"-":(ye*=-1,"+"))+f(ye/60|0,"0",2)+f(ye%60,"0",2)}function Re(ne,ye){return f(ne.getUTCDate(),ye,2)}function Ie(ne,ye){return f(ne.getUTCHours(),ye,2)}function Le(ne,ye){return f(ne.getUTCHours()%12||12,ye,2)}function Ze(ne,ye){return f(1+r.utcDay.count(r.utcYear(ne),ne),ye,3)}function Je(ne,ye){return f(ne.getUTCMilliseconds(),ye,3)}function We(ne,ye){return Je(ne,ye)+"000"}function qe(ne,ye){return f(ne.getUTCMonth()+1,ye,2)}function ze(ne,ye){return f(ne.getUTCMinutes(),ye,2)}function Qe(ne,ye){return f(ne.getUTCSeconds(),ye,2)}function re(ne){var ye=ne.getUTCDay();return ye===0?7:ye}function be(ne,ye){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),ye,2)}function Ge(ne){var ye=ne.getUTCDay();return ye>=4||ye===0?r.utcThursday(ne):r.utcThursday.ceil(ne)}function cr(ne,ye){return ne=Ge(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),ye,2)}function Pe(ne){return ne.getUTCDay()}function me(ne,ye){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),ye,2)}function Me(ne,ye){return f(ne.getUTCFullYear()%100,ye,2)}function He(ne,ye){return ne=Ge(ne),f(ne.getUTCFullYear()%100,ye,2)}function Xe(ne,ye){return f(ne.getUTCFullYear()%1e4,ye,4)}function Oe(ne,ye){var Ne=ne.getUTCDay();return ne=Ne>=4||Ne===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(ne.getUTCFullYear()%1e4,ye,4)}function je(){return"+0000"}function tr(){return"%"}function ir(ne){return+ne}function lr(ne){return Math.floor(+ne/1e3)}var De;$e({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 $e(ne){return De=i(ne),e.timeFormat=De.format,e.timeParse=De.parse,e.utcFormat=De.utcFormat,e.utcParse=De.utcParse,De}var Fe="%Y-%m-%dT%H:%M:%S.%LZ";function pr(ne){return ne.toISOString()}var mr=Date.prototype.toISOString?pr:e.utcFormat(Fe);function sr(ne){var ye=new Date(ne);return isNaN(ye)?null:ye}var yr=+new Date("2000-01-01T00:00:00.000Z")?sr:e.utcParse(Fe);e.isoFormat=mr,e.isoParse=yr,e.timeFormatDefaultLocale=$e,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Y5=N((kp,dS)=>{(function(e,r){typeof kp=="object"&&typeof dS!="undefined"?r(kp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(kp,(function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,q){if((C=(M=q?M.toExponential(q-1):M.toExponential()).indexOf("e"))<0)return null;var C,D=M.slice(0,C);return[D.length>1?D[0]+D.slice(2):D,+M.slice(C+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,q){return function(C,D){for(var P=C.length,R=[],I=0,F=M[0],B=0;P>0&&F>0&&(B+F+1>D&&(F=Math.max(1,D-B)),R.push(C.substring(P-=F,P+F)),!((B+=F+1)>D));)F=M[I=(I+1)%M.length];return R.reverse().join(q)}}function i(M){return function(q){return q.replace(/[0-9]/g,function(C){return M[+C]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(q=o.exec(M)))throw new Error("invalid format: "+M);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var q=M.length,C=1,D=-1,P;C<q;++C)switch(M[C]){case".":D=P=C;break;case"0":D===0&&(D=C),P=C;break;default:if(!+M[C])break e;D>0&&(D=0);break}return D>0?M.slice(0,D)+M.slice(P+1):M}var f;function c(M,q){var C=t(M,q);if(!C)return M+"";var D=C[0],P=C[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,I=D.length;return R===I?D:R>I?D+new Array(R-I+1).join("0"):R>0?D.slice(0,R)+"."+D.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,q+R-1))[0]}function v(M,q){var C=t(M,q);if(!C)return M+"";var D=C[0],P=C[1];return P<0?"0."+new Array(-P).join("0")+D:D.length>P+1?D.slice(0,P+1)+"."+D.slice(P+1):D+new Array(P-D.length+2).join("0")}var d={"%":function(M,q){return(M*100).toFixed(q)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,q){return M.toExponential(q)},f:function(M,q){return M.toFixed(q)},g:function(M,q){return M.toPrecision(q)},o:function(M){return Math.round(M).toString(8)},p:function(M,q){return v(M*100,q)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(M){var q=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),C=M.currency===void 0?"":M.currency[0]+"",D=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",R=M.numerals===void 0?p:i(m.call(M.numerals,String)),I=M.percent===void 0?"%":M.percent+"",F=M.minus===void 0?"-":M.minus+"",B=M.nan===void 0?"NaN":M.nan+"";function U(V){V=l(V);var Y=V.fill,X=V.align,j=V.sign,J=V.symbol,ae=V.zero,te=V.width,se=V.comma,$=V.precision,fe=V.trim,oe=V.type;oe==="n"?(se=!0,oe="g"):d[oe]||($===void 0&&($=12),fe=!0,oe="g"),(ae||Y==="0"&&X==="=")&&(ae=!0,Y="0",X="=");var ue=J==="$"?C:J==="#"&&/[boxX]/.test(oe)?"0"+oe.toLowerCase():"",ce=J==="$"?D:/[%p]/.test(oe)?I:"",ie=d[oe],ge=/[defgprs%]/.test(oe);$=$===void 0?6:/[gprs]/.test(oe)?Math.max(1,Math.min(21,$)):Math.max(0,Math.min(20,$));function Ce(_e){var Ee=ue,Ae=ce,Se,Re,Ie;if(oe==="c")Ae=ie(_e)+Ae,_e="";else{_e=+_e;var Le=_e<0||1/_e<0;if(_e=isNaN(_e)?B:ie(Math.abs(_e),$),fe&&(_e=u(_e)),Le&&+_e==0&&j!=="+"&&(Le=!1),Ee=(Le?j==="("?j:F:j==="-"||j==="("?"":j)+Ee,Ae=(oe==="s"?y[8+f/3]:"")+Ae+(Le&&j==="("?")":""),ge){for(Se=-1,Re=_e.length;++Se<Re;)if(Ie=_e.charCodeAt(Se),48>Ie||Ie>57){Ae=(Ie===46?P+_e.slice(Se+1):_e.slice(Se))+Ae,_e=_e.slice(0,Se);break}}}se&&!ae&&(_e=q(_e,1/0));var Ze=Ee.length+_e.length+Ae.length,Je=Ze<te?new Array(te-Ze+1).join(Y):"";switch(se&&ae&&(_e=q(Je+_e,Je.length?te-Ae.length:1/0),Je=""),X){case"<":_e=Ee+_e+Ae+Je;break;case"=":_e=Ee+Je+_e+Ae;break;case"^":_e=Je.slice(0,Ze=Je.length>>1)+Ee+_e+Ae+Je.slice(Ze);break;default:_e=Je+Ee+_e+Ae;break}return R(_e)}return Ce.toString=function(){return V+""},Ce}function G(V,Y){var X=U((V=l(V),V.type="f",V)),j=Math.max(-8,Math.min(8,Math.floor(a(Y)/3)))*3,J=Math.pow(10,-j),ae=y[8+j/3];return function(te){return X(J*te)+ae}}return{format:U,formatPrefix:G}}var T;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(M){return T=x(M),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function b(M){return Math.max(0,-a(Math.abs(M)))}function _(M,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(M)))}function k(M,q){return M=Math.abs(M),q=Math.abs(q)-M,Math.max(0,a(q)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=x,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=_,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var mS=N((DHe,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 Fr=N((PHe,yS)=>{"use strict";var Ice=mS();yS.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Ice(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Gt=N((RHe,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=N((Sp,bS)=>{(function(e,r){typeof Sp=="object"&&typeof bS!="undefined"?r(Sp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Sp,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a<r.length;a++)t[r.charCodeAt(a)]=a;var n=function(o){var l=new Uint8Array(o),s,u=l.length,f="";for(s=0;s<u;s+=3)f+=r[l[s]>>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),y=new Uint8Array(m);for(u=0;u<s;u+=4)c=t[o.charCodeAt(u)],v=t[o.charCodeAt(u+1)],d=t[o.charCodeAt(u+2)],p=t[o.charCodeAt(u+3)],y[f++]=c<<2|v>>4,y[f++]=(v&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Mu=N((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=N(bo=>{"use strict";var Fce=V5().decode,Oce=Mu(),j5=Array.isArray,Bce=ArrayBuffer,Hce=DataView;function _S(e){return Bce.isView(e)&&!(e instanceof Hce)}bo.isTypedArray=_S;function qp(e){return j5(e)||_S(e)}bo.isArrayOrTypedArray=qp;function Uce(e){return!qp(e[0])}bo.isArray1D=Uce;bo.ensureArray=function(e,r){return j5(e)||(e=[]),e.length=r,e};var Ba={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};Ba.uint8c=Ba.u1c;Ba.uint8=Ba.u1;Ba.int8=Ba.i1;Ba.uint16=Ba.u2;Ba.int16=Ba.i2;Ba.uint32=Ba.u4;Ba.int32=Ba.i4;Ba.float32=Ba.f4;Ba.float64=Ba.f8;function W5(e){return e.constructor===ArrayBuffer}bo.isArrayBuffer=W5;bo.decodeTypedArraySpec=function(e){var r=[],t=Gce(e),a=t.dtype,n=Ba[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;W5(o)||(o=Fce(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f<u;f++)r[f]=new n(o,d,c),d+=v;else if(s===3){u=+l[1];for(var p=+l[2],m=0;m<p;m++)for(r[m]=[],f=0;f<u;f++)r[m][f]=new n(o,d,c),d+=v}else throw new Error("ndim: "+s+'is not supported with the shape:"'+t.shape+'"');return r.bdata=t.bdata,r.dtype=t.dtype,r.shape=l.reverse().join(","),e._inputArray=r,r};bo.isTypedArraySpec=function(e){return Oce(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 Gce(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(qp(e))if(qp(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 Lp=N((IHe,SS)=>{"use strict";var TS=Fr(),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"?Wce(r,t,a):{set:AS(r,a,t),get:MS(r,a),astr:t,parts:a,obj:r}};function MS(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]=MS(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 Yce=/(^|\.)args\[/;function X5(e,r){return e===void 0||e===null&&!r.match(Yce)}function AS(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=!jce(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=Vce(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 Vce(e,r){var t=r;return TS(r)?t="["+r+"]":e&&(t="."+r),e+t}function jce(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)&&AS(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 Wce(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var ES=N((FHe,CS)=>{"use strict";var mc=Lp(),Xce=/^\w*$/,Zce=0,qS=1,Cp=2,LS=3,Au=4;CS.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=mc(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=Xce.test(n),c={set:function(v,d){var p=d===null?Au:Zce;if(!o){if(!l||p===Au)return;o=[],l.set(o)}var m=u[v];if(m===void 0){if(p===Au)return;p=p|LS,m=o.length,u[v]=m}else d!==(f?o[m][n]:mc(o[m],n).get())&&(p=p|Cp);var y=o[m]=o[m]||{};return y[a]=v,f?y[n]=d:mc(y,n).set(d),d!==null&&(p=p&~Au),s[m]=s[m]|p,c},get:function(v){if(o){var d=u[v];if(d!==void 0)return f?o[d][n]:mc(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]|Cp,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 mc(p,n).set(null),s[d]=s[d]|Cp|Au;return c},constructUpdate:function(){for(var v,d,p={},m=Object.keys(s),y=0;y<m.length;y++)d=m[y],v=t+"["+d+"]",o[d]?(s[d]&qS&&(p[v+"."+a]=o[d][a]),s[d]&Cp&&(f?p[v+"."+n]=s[d]&Au?null:o[d][n]:p[v+"."+n]=s[d]&Au?null:mc(o[d],n).get())):p[v]=null;return p}};return c}});var PS=N((OHe,DS)=>{"use strict";var $ce=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Jce=/^[^\.\[\]]+$/;DS.exports=function(e,r){for(;r;){var t=e.match($ce);if(t)e=t[1];else if(e.match(Jce))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 Ep=N((BHe,RS)=>{"use strict";var Kce=Fr();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 Kce(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var IS=N((HHe,NS)=>{"use strict";var zS=Vn().isArrayOrTypedArray,j0=Mu();NS.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(zS(n)&&zS(i)&&j0(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]&&j0(n[l])&&j0(i[l])&&e(i[l],n[l])}else j0(n)&&j0(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var yc={};dc(yc,{mod:()=>Qce,modHalf:()=>eve});function Qce(e,r){let t=e%r;return t<0?t+r:t}function eve(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var gc=hc(()=>{"use strict"});var Mt=N(Z0=>{"use strict";var FS=Mu(),W0=Array.isArray;function rve(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}Z0.extendFlat=function(...e){return X0(e,!1,!1,!1)};Z0.extendDeep=function(...e){return X0(e,!0,!1,!1)};Z0.extendDeepAll=function(...e){return X0(e,!0,!0,!1)};Z0.extendDeepNoArrays=function(...e){return X0(e,!0,!1,!0)};function X0(e,r,t,a){var n=e[0],i=e.length,o,l,s,u,f,c,v;if(i===2&&W0(n)&&W0(e[1])&&n.length===0){if(v=rve(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&&W0(u)?n[l]=u:r&&u&&(FS(u)||(f=W0(u)))?(f?(f=!1,c=s&&W0(s)?s:[]):c=s&&FS(s)?s:{},n[l]=X0([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[l]=u)}return n}});var ka=N((GHe,OS)=>{"use strict";OS.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 $0=N((YHe,BS)=>{"use strict";BS.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var bc=N((VHe,GS)=>{"use strict";var HS=$0(),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 Dp=N((jHe,YS)=>{"use strict";var tve=ka(),J0=bc().hoverlabel,K0=Mt().extendFlat;YS.exports={hoverlabel:{bgcolor:K0({},J0.bgcolor,{arrayOk:!0}),bordercolor:K0({},J0.bordercolor,{arrayOk:!0}),font:tve({arrayOk:!0,editType:"none"}),align:K0({},J0.align,{arrayOk:!0}),namelength:K0({},J0.namelength,{arrayOk:!0}),showarrow:K0({},J0.showarrow),editType:"none"}}});var Nn=N((WHe,VS)=>{"use strict";var ave=ka(),nve=Dp();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:ave({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:nve.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var IL=N((eUe,NL)=>{var Ux=Object.defineProperty,ive=Object.getOwnPropertyDescriptor,ove=Object.getOwnPropertyNames,lve=Object.prototype.hasOwnProperty,sve=(e,r)=>{for(var t in r)Ux(e,t,{get:r[t],enumerable:!0})},uve=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of ove(r))!lve.call(e,n)&&n!==t&&Ux(e,n,{get:()=>r[n],enumerable:!(a=ive(r,n))||a.enumerable});return e},fve=e=>uve(Ux({},"__esModule",{value:!0}),e),rq={};sve(rq,{a98:()=>r1e,average:()=>o0e,averageAngle:()=>Jo,averageNumber:()=>gq,blend:()=>ide,blerp:()=>wx,clampChroma:()=>Ade,clampGamut:()=>p_,clampRgb:()=>Mde,colorsNamed:()=>aq,convertA98ToXyz65:()=>Tx,convertCubehelixToRgb:()=>mq,convertDlchToLab65:()=>Hp,convertHsiToRgb:()=>kq,convertHslToRgb:()=>Lq,convertHsvToRgb:()=>Xx,convertHwbToRgb:()=>Pq,convertItpToXyz65:()=>Ax,convertJabToJch:()=>Sx,convertJabToRgb:()=>e_,convertJabToXyz65:()=>Kx,convertJchToJab:()=>qx,convertLab65ToDlch:()=>Up,convertLab65ToRgb:()=>oh,convertLab65ToXyz65:()=>Vx,convertLabToLch:()=>Cl,convertLabToRgb:()=>t_,convertLabToXyz50:()=>Kp,convertLchToLab:()=>El,convertLchuvToLuv:()=>i_,convertLrgbToOklab:()=>o_,convertLrgbToRgb:()=>Du,convertLuvToLchuv:()=>n_,convertLuvToXyz50:()=>Yp,convertOkhslToOklab:()=>Ex,convertOkhsvToOklab:()=>Px,convertOklabToLrgb:()=>Sc,convertOklabToOkhsl:()=>Cx,convertOklabToOkhsv:()=>Dx,convertOklabToRgb:()=>uh,convertP3ToXyz65:()=>Rx,convertProphotoToXyz50:()=>Ix,convertRec2020ToXyz65:()=>Ox,convertRgbToCubehelix:()=>pq,convertRgbToHsi:()=>Sq,convertRgbToHsl:()=>Cq,convertRgbToHsv:()=>Zx,convertRgbToHwb:()=>Rq,convertRgbToJab:()=>Qx,convertRgbToLab:()=>a_,convertRgbToLab65:()=>lh,convertRgbToLrgb:()=>Eu,convertRgbToOklab:()=>sh,convertRgbToXyb:()=>sL,convertRgbToXyz50:()=>kc,convertRgbToXyz65:()=>vs,convertRgbToYiq:()=>pL,convertXybToRgb:()=>uL,convertXyz50ToLab:()=>Qp,convertXyz50ToLuv:()=>Gp,convertXyz50ToProphoto:()=>Nx,convertXyz50ToRgb:()=>Ac,convertXyz50ToXyz65:()=>hL,convertXyz65ToA98:()=>Mx,convertXyz65ToItp:()=>kx,convertXyz65ToJab:()=>Jx,convertXyz65ToLab65:()=>jx,convertXyz65ToP3:()=>zx,convertXyz65ToRec2020:()=>Fx,convertXyz65ToRgb:()=>hs,convertXyz65ToXyz50:()=>vL,convertYiqToRgb:()=>mL,converter:()=>Nt,cubehelix:()=>t1e,differenceCie76:()=>Qve,differenceCie94:()=>e0e,differenceCiede2000:()=>r0e,differenceCmc:()=>t0e,differenceEuclidean:()=>Mc,differenceHueChroma:()=>ih,differenceHueNaive:()=>yq,differenceHueSaturation:()=>nh,differenceHyab:()=>a0e,differenceItp:()=>i0e,differenceKotsarenkoRamos:()=>n0e,displayable:()=>d_,dlab:()=>a1e,dlch:()=>n1e,easingGamma:()=>EL,easingInOutSine:()=>Qde,easingMidpoint:()=>ML,easingSmootherstep:()=>Jde,easingSmoothstep:()=>Xde,easingSmoothstepInverse:()=>Zde,filterBrightness:()=>Rde,filterContrast:()=>zde,filterDeficiencyDeuter:()=>jde,filterDeficiencyProt:()=>Vde,filterDeficiencyTrit:()=>Wde,filterGrayscale:()=>Fde,filterHueRotate:()=>Bde,filterInvert:()=>Ode,filterSaturate:()=>Ide,filterSepia:()=>Nde,fixupAlpha:()=>Ra,fixupHueDecreasing:()=>Xve,fixupHueIncreasing:()=>Wve,fixupHueLonger:()=>jve,fixupHueShorter:()=>$o,formatCss:()=>Khe,formatHex:()=>Qhe,formatHex8:()=>ede,formatHsl:()=>tde,formatRgb:()=>rde,getMode:()=>_n,hsi:()=>i1e,hsl:()=>o1e,hsv:()=>l1e,hwb:()=>s1e,inGamut:()=>tm,interpolate:()=>dde,interpolateWith:()=>kL,interpolateWithPremultipliedAlpha:()=>pde,interpolatorLinear:()=>_r,interpolatorPiecewise:()=>hq,interpolatorSplineBasis:()=>qL,interpolatorSplineBasisClosed:()=>LL,interpolatorSplineMonotone:()=>gde,interpolatorSplineMonotone2:()=>bde,interpolatorSplineMonotoneClosed:()=>xde,interpolatorSplineNatural:()=>mde,interpolatorSplineNaturalClosed:()=>yde,itp:()=>u1e,jab:()=>f1e,jch:()=>c1e,lab:()=>v1e,lab65:()=>h1e,lch:()=>d1e,lch65:()=>p1e,lchuv:()=>m1e,lerp:()=>Su,lrgb:()=>y1e,luv:()=>g1e,mapAlphaDivide:()=>TL,mapAlphaMultiply:()=>wL,mapTransferGamma:()=>fde,mapTransferLinear:()=>c_,mapper:()=>fh,modeA98:()=>dq,modeCubehelix:()=>bq,modeDlab:()=>Mq,modeDlch:()=>Aq,modeHsi:()=>qq,modeHsl:()=>Wx,modeHsv:()=>$x,modeHwb:()=>Nq,modeItp:()=>Oq,modeJab:()=>Bq,modeJch:()=>Hq,modeLab:()=>em,modeLab65:()=>Gq,modeLch:()=>rm,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:()=>qde,okhsl:()=>b1e,okhsv:()=>x1e,oklab:()=>_1e,oklch:()=>w1e,p3:()=>T1e,parse:()=>fq,parseHex:()=>iq,parseHsl:()=>Dq,parseHslLegacy:()=>Eq,parseHwb:()=>zq,parseLab:()=>Uq,parseLch:()=>Yq,parseNamed:()=>nq,parseOklab:()=>eL,parseOklch:()=>tL,parseRgb:()=>cq,parseRgbLegacy:()=>oq,parseTransparent:()=>vq,prophoto:()=>M1e,random:()=>ude,rec2020:()=>A1e,removeParser:()=>Mve,rgb:()=>k1e,round:()=>gL,samples:()=>Tde,serializeHex:()=>f_,serializeHex8:()=>bL,serializeHsl:()=>_L,serializeRgb:()=>xL,toGamut:()=>kde,trilerp:()=>zve,unlerp:()=>Rve,useMode:()=>kt,useParser:()=>sq,wcagContrast:()=>e1e,wcagLuminance:()=>Hx,xyb:()=>S1e,xyz50:()=>q1e,xyz65:()=>L1e,yiq:()=>C1e});NL.exports=fve(rq);var cve=(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=cve,vve={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=vve,hve=e=>tq(aq[e.toLowerCase()],6),nq=hve,dve=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,pve=e=>{let r;return(r=e.match(dve))?tq(parseInt(r[1],16),r[1].length):void 0},iq=pve,jn="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",XHe=`(?:${jn}|none)`,rh=`${jn}%`,ZHe=`(?:${jn}%|none)`,Gx=`(?:${jn}%|${jn})`,mve=`(?:${jn}%|${jn}|none)`,yve=`(?:${jn}(deg|grad|rad|turn)|${jn})`,$He=`(?:${jn}(deg|grad|rad|turn)|${jn}|none)`,wc="\\s*,\\s*",JHe=new RegExp("^"+mve+"$"),gve=new RegExp(`^rgba?\\(\\s*${jn}${wc}${jn}${wc}${jn}\\s*(?:,\\s*${Gx}\\s*)?\\)$`),bve=new RegExp(`^rgba?\\(\\s*${rh}${wc}${rh}${wc}${rh}\\s*(?:,\\s*${Gx}\\s*)?\\)$`),xve=e=>{let r={mode:"rgb"},t;if(t=e.match(gve))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(bve))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=xve,_ve=(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=_ve,wve=(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,Nt=wve,Zo={},lq={},Tc=[],Yx={},Tve=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=Tve)}),lq[e.mode]=e,(e.parse||[]).forEach(r=>{sq(r,e.mode)}),Nt(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"&&Tc.indexOf(e)<0&&Tc.push(e)},Mve=e=>{if(typeof e=="string")delete Yx[e];else if(typeof e=="function"){let r=Tc.indexOf(e);r>0&&Tc.splice(r,1)}},xx=/[^\x00-\x7F]|[a-zA-Z_]/,Ave=/[^\x00-\x7F]|[-\w]/,dr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Hr=0;function Pp(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 kve={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Q0(e){let r="";if((e[Hr]==="-"||e[Hr]==="+")&&(r+=e[Hr++]),r+=Rp(e),e[Hr]==="."&&/\d/.test(e[Hr+1])&&(r+=e[Hr++]+Rp(e)),(e[Hr]==="e"||e[Hr]==="E")&&((e[Hr+1]==="-"||e[Hr+1]==="+")&&/\d/.test(e[Hr+2])?r+=e[Hr++]+e[Hr++]+Rp(e):/\d/.test(e[Hr+1])&&(r+=e[Hr++]+Rp(e))),_x(e)){let t=Ip(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:dr.Hue,value:r*kve[t]}:void 0}return e[Hr]==="%"?(Hr++,{type:dr.Percentage,value:+r}):{type:dr.Number,value:+r}}function Rp(e){let r="";for(;/\d/.test(e[Hr]);)r+=e[Hr++];return r}function Ip(e){let r="";for(;Hr<e.length&&Ave.test(e[Hr]);)r+=e[Hr++];return r}function Sve(e){let r=Ip(e);return e[Hr]==="("?(Hr++,{type:dr.Function,value:r}):r==="none"?{type:dr.None,value:void 0}:{type:dr.Ident,value:r}}function qve(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--,Pp(r)){t.push(Q0(r));continue}return}if(a==="-"){if(Hr--,Pp(r)){t.push(Q0(r));continue}if(_x(r)){t.push({type:dr.Ident,value:Ip(r)});continue}return}if(a==="."){if(Hr--,Pp(r)){t.push(Q0(r));continue}return}if(a==="/"){for(;Hr<r.length&&(r[Hr]===`
`||r[Hr]===" "||r[Hr]===" ");)Hr++;let n;if(Pp(r)&&(n=Q0(r),n.type!==dr.Hue)){t.push({type:dr.Alpha,value:n});continue}if(_x(r)&&Ip(r)==="none"){t.push({type:dr.Alpha,value:{type:dr.None,value:void 0}});continue}return}if(/\d/.test(a)){Hr--,t.push(Q0(r));continue}if(xx.test(a)){Hr--,t.push(Sve(r));continue}return}return t}function Lve(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 Cve(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 Eve=e=>{if(typeof e!="string")return;let r=qve(e),t=r?Cve(r,!0):void 0,a,n=0,i=Tc.length;for(;n<i;)if((a=Tc[n++](e,t))!==void 0)return a;return r?Lve(r):void 0},fq=Eve;function Dve(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=Dve,Pve=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,vq=Pve,Su=(e,r,t)=>e+t*(r-e),Rve=(e,r,t)=>(t-e)/(r-e),wx=(e,r,t,a,n,i)=>Su(Su(e,r,n),Su(t,a,n),i),zve=(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),Nve=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=Nve(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},Ive={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=Ive,J5=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),Fve=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=Fve,K5=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),Ove=({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},Mx=Ove,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)},Bve=({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},Eu=Bve,Hve=e=>{let{r,g:t,b:a,alpha:n}=Eu(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=Hve,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},Uve=({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},Du=Uve,Gve=({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=Du({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=Gve,Yve=Ut(wt({},Cu),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Mx(vs(e)),xyz65:Mx},toMode:{rgb:e=>hs(Tx(e)),xyz65:Tx}}),dq=Yve,Vve=e=>(e=e%360)<0?e+360:e,fn=Vve,jp=(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=>jp(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),jve=e=>jp(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),Wve=e=>jp(e,r=>r>=0?r:r+360),Xve=e=>jp(e,r=>r<=0?r:r-360),Ka=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Zve=Math.PI/180,$ve=180/Math.PI,jS=Ka[3]*Ka[4],WS=Ka[1]*Ka[4],XS=Ka[1]*Ka[2]-Ka[0]*Ka[3],Jve=({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)*$ve-120),a!==void 0&&(l.alpha=a),l},pq=Jve,Kve=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Zve,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=Kve,nh=(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},ih=(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},Mc=(e="rgb",r=[1,1,1,0])=>{let t=_n(e),a=t.channels,n=t.difference,i=Nt(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))}},Qve=()=>Mc("lab65"),e0e=(e=1,r=.045,t=.015)=>{let a=Nt("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,m=Math.sqrt(d*d+p*p),y=Math.pow(s-v,2),x=Math.pow(c-m,2),T=Math.pow(u-d,2)+Math.pow(f-p,2)-x;return Math.sqrt(y/Math.pow(e,2)+x/Math.pow(1+r*c,2)+T/Math.pow(1+t*c,2))}},r0e=(e=1,r=1,t=1)=>{let a=Nt("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,m=Math.sqrt(d*d+p*p),y=(c+m)/2,x=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),T=u*(1+x),w=d*(1+x),b=Math.sqrt(T*T+f*f),_=Math.sqrt(w*w+p*p),k=Math.abs(T)+Math.abs(f)===0?0:Math.atan2(f,T);k+=(k<0)*2*Math.PI;let M=Math.abs(w)+Math.abs(p)===0?0:Math.atan2(p,w);M+=(M<0)*2*Math.PI;let q=v-s,C=_-b,D=b*_===0?0:M-k;D-=(D>Math.PI)*2*Math.PI,D+=(D<-Math.PI)*2*Math.PI;let P=2*Math.sqrt(b*_)*Math.sin(D/2),R=(s+v)/2,I=(b+_)/2,F;b*_===0?F=k+M:(F=(k+M)/2,F-=(Math.abs(k-M)>Math.PI)*Math.PI,F+=(F<0)*2*Math.PI);let B=Math.pow(R-50,2),U=1-.17*Math.cos(F-Math.PI/6)+.24*Math.cos(2*F)+.32*Math.cos(3*F+Math.PI/30)-.2*Math.cos(4*F-63*Math.PI/180),G=1+.015*B/Math.sqrt(20+B),V=1+.045*I,Y=1+.015*I*U,X=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*F-275)/25,2)),j=2*Math.sqrt(Math.pow(I,7)/(Math.pow(I,7)+Math.pow(25,7))),J=-1*Math.sin(2*X)*j;return Math.sqrt(Math.pow(q/(e*G),2)+Math.pow(C/(r*V),2)+Math.pow(P/(t*Y),2)+J*C/(r*V)*P/(t*Y))}},t0e=(e=1,r=1)=>{let t=Nt("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,s=i.b,u=Math.sqrt(l*l+s*s),f=Math.atan2(s,l);f=f+2*Math.PI*(f<0);let c=t(n),v=c.l,d=c.a,p=c.b,m=Math.sqrt(d*d+p*p),y=Math.pow(o-v,2),x=Math.pow(u-m,2),T=Math.pow(l-d,2)+Math.pow(s-p,2)-x,w=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),b=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),_=o<16?.511:.040975*o/(1+.01765*o),k=.0638*u/(1+.0131*u)+.638,M=k*(w*b+1-w);return Math.sqrt(y/Math.pow(e*_,2)+x/Math.pow(r*k,2)+T/Math.pow(M,2))}},a0e=()=>{let e=Nt("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)}},n0e=()=>Mc("yiq",[.5053,.299,.1957]),i0e=()=>Mc("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 o0e(e,r="rgb",t){let a=_n(r),n=e.map(Nt(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 l0e={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:nh},average:{h:Jo}},bq=l0e,s0e=({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=s0e,u0e=({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},El=u0e,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},_c={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},KHe=Math.pow(29,3)/Math.pow(3,3),QHe=Math.pow(6,3)/Math.pow(29,3),tx=e=>Math.pow(e,3)>_q?Math.pow(e,3):(116*e-16)/xq,f0e=({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)*_c.X,y:tx(n)*_c.Y,z:tx(o)*_c.Z};return a!==void 0&&(l.alpha=a),l},Vx=f0e,c0e=e=>hs(Vx(e)),oh=c0e,ax=e=>e>_q?Math.cbrt(e):(xq*e+16)/116,v0e=({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/_c.X),i=ax(r/_c.Y),o=ax(t/_c.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=v0e,h0e=e=>{let r=jx(vs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},lh=h0e,Fp=1,wq=1,ah=26/180*Math.PI,Op=Math.cos(ah),Bp=Math.sin(ah),Tq=100/Math.log(139/100),d0e=({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*Fp/Tq)-1)/.0039},i=(Math.exp(.0435*r*wq*Fp)-1)/.075,o=i*Math.cos(t/180*Math.PI-ah),l=i*Math.sin(t/180*Math.PI-ah);return n.a=o*Op-l/.83*Bp,n.b=o*Bp+l/.83*Op,a!==void 0&&(n.alpha=a),n},Hp=d0e,p0e=({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*Op+t*Bp,i=.83*(t*Op-r*Bp),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:Tq/Fp*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*wq*Fp)};return l.c&&(l.h=fn((Math.atan2(i,n)+ah)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Up=p0e,ZS=e=>Hp(Cl(e,"dlch")),$S=e=>El(Up(e),"dlab"),m0e={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:ZS,rgb:e=>oh(ZS(e))},fromMode:{lab65:$S,rgb:e=>$S(lh(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}}},Mq=m0e,y0e={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Hp,dlab:e=>El(e,"dlab"),rgb:e=>oh(Hp(e))},fromMode:{lab65:Up,dlab:e=>Cl(e,"dlch"),rgb:e=>Up(lh(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:ih},average:{h:Jo}},Aq=y0e;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 g0e={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:nh},average:{h:Jo}},qq=g0e;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 b0e=(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}},x0e=b0e,_0e=new RegExp(`^hsla?\\(\\s*${yve}${wc}${rh}${wc}${rh}\\s*(?:,\\s*${Gx}\\s*)?\\)$`),w0e=e=>{let r=e.match(_0e);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=x0e(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},Eq=w0e;function T0e(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 Dq=T0e,M0e={mode:"hsl",toMode:{rgb:Lq},fromMode:{rgb:Cq},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Dq,Eq],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:nh},average:{h:Jo}},Wx=M0e;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 A0e={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:nh},average:{h:Jo}},$x=A0e;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 k0e(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 zq=k0e,S0e={mode:"hwb",toMode:{rgb:Pq},fromMode:{rgb:Rq},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[zq],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}},Nq=S0e,Iq=203,Wp=.1593017578125,Fq=78.84375,Xp=.8359375,Zp=18.8515625,$p=18.6875;function nx(e){if(e<0)return 0;let r=Math.pow(e,1/Fq);return 1e4*Math.pow(Math.max(0,r-Xp)/(Zp-$p*r),1/Wp)}function ix(e){if(e<0)return 0;let r=Math.pow(e/1e4,Wp);return Math.pow((Xp+Zp*r)/(1+$p*r),Fq)}var ox=e=>Math.max(e/Iq,0),q0e=({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},Ax=q0e,lx=(e=0)=>Math.max(e*Iq,0),L0e=({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=L0e,C0e={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Ax,rgb:e=>hs(Ax(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}}},Oq=C0e,E0e=134.03437499999998,D0e=16295499532821565e-27,sx=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Wp);return Math.pow((Xp+Zp*r)/(1+$p*r),E0e)},ux=(e=0)=>Math.max(e*203,0),P0e=({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)-D0e,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=P0e,R0e=134.03437499999998,JS=16295499532821565e-27,fx=e=>{if(e<0)return 0;let r=Math.pow(e,1/R0e);return 1e4*Math.pow((Xp-r)/($p*r-Zp),1/Wp)},cx=e=>e/203,z0e=({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=z0e,N0e=e=>{let r=Jx(vs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Qx=N0e,I0e=e=>hs(Kx(e)),e_=I0e,F0e={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}}},Bq=F0e,O0e=({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=O0e,B0e=({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=B0e,H0e={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:ih},average:{h:Jo}},Hq=H0e,Jp=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)/Jp,U0e=({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},Kp=U0e,G0e=({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=Du({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},Ac=G0e,Y0e=e=>Ac(Kp(e)),t_=Y0e,V0e=e=>{let{r,g:t,b:a,alpha:n}=Eu(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},kc=V0e,hx=e=>e>r_?Math.cbrt(e):(Jp*e+16)/116,j0e=({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},Qp=j0e,W0e=e=>{let r=Qp(kc(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},a_=W0e;function X0e(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=X0e,Z0e={mode:"lab",toMode:{xyz50:Kp,rgb:t_},fromMode:{xyz50:Qp,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}}},em=Z0e,$0e=Ut(wt({},em),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Vx,rgb:oh},fromMode:{xyz65:jx,rgb:lh},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Gq=$0e;function J0e(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=J0e,K0e={mode:"lch",toMode:{lab:El,rgb:e=>t_(El(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:ih},average:{h:Jo}},rm=K0e,Q0e=Ut(wt({},rm),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>El(e,"lab65"),rgb:e=>oh(El(e,"lab65"))},fromMode:{rgb:e=>Cl(lh(e),"lch65"),lab65:e=>Cl(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Vq=Q0e,ehe=({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_=ehe,rhe=({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_=rhe,jq=(e,r,t)=>4*e/(e+15*r+3*t),Wq=(e,r,t)=>9*r/(e+15*r+3*t),the=jq(Pa.X,Pa.Y,Pa.Z),ahe=Wq(Pa.X,Pa.Y,Pa.Z),nhe=e=>e<=r_?Jp*e:116*Math.cbrt(e)-16,ihe=({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=nhe(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-the),o=13*n*(o-ahe));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},Gp=ihe,ohe=(e,r,t)=>4*e/(e+15*r+3*t),lhe=(e,r,t)=>9*r/(e+15*r+3*t),she=ohe(Pa.X,Pa.Y,Pa.Z),uhe=lhe(Pa.X,Pa.Y,Pa.Z),fhe=({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)+she,i=t/(13*e)+uhe,o=Pa.Y*(e<=8?e/Jp: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},Yp=fhe,che=e=>n_(Gp(kc(e))),vhe=e=>Ac(Yp(i_(e))),hhe={mode:"lchuv",toMode:{luv:i_,rgb:vhe},fromMode:{rgb:che,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:ih},average:{h:Jo}},Xq=hhe,dhe=Ut(wt({},Cu),{mode:"lrgb",toMode:{rgb:Du},fromMode:{rgb:Eu},parse:["srgb-linear"],serialize:"srgb-linear"}),Zq=dhe,phe={mode:"luv",toMode:{xyz50:Yp,rgb:e=>Ac(Yp(e))},fromMode:{xyz50:Gp,rgb:e=>Gp(kc(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=phe,mhe=({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_=mhe,yhe=e=>{let r=o_(Eu(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},sh=yhe,ghe=({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},Sc=ghe,bhe=e=>Du(Sc(e)),uh=bhe;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 Vp(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function xhe(e,r){let t,a,n,i,o,l,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,v=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let p=1+f*c,m=1+f*v,y=1+f*d,x=p*p*p,T=m*m*m,w=y*y*y,b=3*c*p*p,_=3*v*m*m,k=3*d*y*y,M=6*c*c*p,q=6*v*v*m,C=6*d*d*y,D=l*x+s*T+u*w,P=l*b+s*_+u*k,R=l*M+s*q+u*C;f=f-D*P/(P*P-.5*D*R)}return f}function l_(e,r){let t=xhe(e,r),a=Sc({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 _he(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 m=n*(1-o)+o*t,y=o*a,x=m+y*u,T=m+y*f,w=m+y*c,b=x*x*x,_=T*T*T,k=w*w*w,M=3*v*x*x,q=3*d*T*T,C=3*p*w*w,D=6*v*v*x,P=6*d*d*T,R=6*p*p*w,I=4.0767416621*b-3.3077115913*_+.2309699292*k-1,F=4.0767416621*M-3.3077115913*q+.2309699292*C,B=4.0767416621*D-3.3077115913*P+.2309699292*R,U=F/(F*F-.5*I*B),G=-I*U,V=-1.2684380046*b+2.6097574011*_-.3413193965*k-1,Y=-1.2684380046*M+2.6097574011*q-.3413193965*C,X=-1.2684380046*D+2.6097574011*P-.3413193965*R,j=Y/(Y*Y-.5*V*X),J=-V*j,ae=-.0041960863*b-.7034186147*_+1.707614701*k-1,te=-.0041960863*M-.7034186147*q+1.707614701*C,se=-.0041960863*D-.7034186147*P+1.707614701*R,$=te/(te*te-.5*ae*se),fe=-ae*$;G=U>=0?G:1e6,J=j>=0?J:1e6,fe=$>=0?fe:1e6,o+=Math.min(G,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=_he(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 Ex(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:Vp(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 whe=Ut(wt({},Wx),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Cx,rgb:e=>Cx(sh(e))},toMode:{oklab:Ex,rgb:e=>uh(Ex(e))}}),Kq=whe;function Dx(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=Vp(v),m=d*p/v,y=Sc({l:p,a:i*m,b:o*m}),x=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/x,n=n/x*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=Vp(c),p=v*d/c,m=Sc({l:d,a:i*p,b:o*p}),y=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),x=Vp(n*c),T=v*x/c;return r.l=x*y,r.a=T*i*y,r.b=T*o*y,r}var The=Ut(wt({},$x),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Dx,rgb:e=>Dx(sh(e))},toMode:{oklab:Px,rgb:e=>uh(Px(e))}}),Qq=The;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,Ahe=Ut(wt({},em),{mode:"oklab",toMode:{lrgb:Sc,rgb:uh},fromMode:{lrgb:o_,rgb:sh},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=Ahe;function khe(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=khe,She=Ut(wt({},rm),{mode:"oklch",toMode:{oklab:e=>El(e,"oklab"),rgb:e=>uh(El(e,"oklab"))},fromMode:{rgb:e=>Cl(sh(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=She,qhe=e=>{let{r,g:t,b:a,alpha:n}=Eu(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=qhe,Lhe=({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=Du({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},zx=Lhe,Che=Ut(wt({},Cu),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>zx(vs(e)),xyz65:zx},toMode:{rgb:e=>hs(Rx(e)),xyz65:Rx}}),nL=Che,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},Nx=Ehe,px=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},Dhe=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},Ix=Dhe,Phe=Ut(wt({},Cu),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Nx,rgb:e=>Nx(kc(e))},toMode:{xyz50:Ix,rgb:e=>Ac(Ix(e))}}),iL=Phe,KS=1.09929682680944,Rhe=.018053968510807,mx=e=>{let r=Math.abs(e);return r>Rhe?(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},Fx=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},Ox=Ihe,Fhe=Ut(wt({},Cu),{mode:"rec2020",fromMode:{xyz65:Fx,rgb:e=>Fx(vs(e))},toMode:{xyz65:Ox,rgb:e=>hs(Ox(e))},parse:["rec2020"],serialize:"rec2020"}),oL=Fhe,qu=.0037930732552754493,lL=Math.cbrt(qu),gx=e=>Math.cbrt(e)-lL,Ohe=e=>{let{r,g:t,b:a,alpha:n}=Eu(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),Bhe=({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=Du({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=Bhe,Hhe={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=Hhe,Uhe={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Ac,lab:Qp},fromMode:{rgb:kc,lab:Kp},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=Uhe,Ghe=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=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:"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=Yhe,Vhe={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=Vhe,jhe=({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=jhe,Whe=({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=Whe,Xhe={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=Xhe,Zhe=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,$he=(e=4)=>r=>typeof r=="number"?Zhe(r,e):r,gL=$he,eh=gL(2),th=e=>Math.max(0,Math.min(1,e||0)),Lu=e=>Math.round(th(e)*255),u_=Nt("rgb"),Jhe=Nt("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}, ${eh(th(e.alpha))})`},_L=e=>{if(e===void 0)return;let r=eh(e.h||0),t=eh(th(e.s)*100)+"%",a=eh(th(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${eh(th(e.alpha))})`},Khe=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)},Qhe=e=>f_(u_(e)),ede=e=>bL(u_(e)),rde=e=>xL(u_(e)),tde=e=>_L(Jhe(e)),ade={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},nde=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:ade[r],n=Nt(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})})},ide=nde,ode=([e,r])=>e+Math.random()*(r-e),lde=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),sde=(e="rgb",r={})=>{let t=_n(e),a=lde(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=ode(a[i]||t.ranges[i])),n),{mode:e})},ude=sde,fh=(e,r="rgb",t=!1)=>{let a=r?_n(r).channels:null,n=r?Nt(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?Nt(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,fde=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,cde=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},vde=cde,hde=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),ML=hde,zp=e=>typeof e=="function",ku=e=>e&&typeof e=="object",eq=e=>typeof e=="number",AL=(e,r="rgb",t,a)=>{let n=_n(r),i=Nt(r),o=[],l=[],s={};e.forEach(v=>{Array.isArray(v)?(o.push(i(v[0])),l.push(v[1])):eq(v)||zp(v)?s[l.length]=v:(o.push(i(v)),l.push(void 0))}),vde(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=m=>m,v[d]=p(o.map(m=>m[d])),v},{});if(a){let v=o.map((d,p)=>n.channels.reduce((m,y)=>(m[y]=u[y][p],m),{mode:r}));u=n.channels.reduce((d,p)=>(d[p]=v.map(m=>{let y=a(m[p],p,m,r);return isNaN(y)?void 0:y}),d),{})}let f=n.channels.reduce((v,d)=>{let p;return zp(t)?p=t:ku(t)&&zp(t[d])?p=t[d]:ku(t)&&ku(t[d])&&t[d].use?p=t[d].use:zp(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],m=l[d]-p,y=(v-p)/m,x=s[d]||s[0];x!==void 0&&(eq(x)&&(x=ML((x-p)/m)),y=x(y));let T=(d-1+y)/c;return n.channels.reduce((w,b)=>{let _=f[b](T);return _!==void 0&&(w[b]=_),w},{mode:r})}},dde=(e,r="rgb",t)=>AL(e,r,t),kL=(e,r)=>(t,a="rgb",n)=>{let i=r?fh(r,a):void 0,o=AL(t,a,n,e);return i?l=>i(o(l)):o},pde=kL(wL,TL),Np=(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[Np(a-1,e.length)],e[Np(a,e.length)],e[Np(a+1,e.length)],e[Np(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},mde=e=>qL(CL(e)),yde=e=>LL(CL(e)),xc=Math.sign,Bx=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?(xc(t[i-1])+xc(t[i]))*Bx(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]}},gde=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)},bde=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)},xde=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]=(xc(i)+xc(t[0]))*Bx(si(i),si(t[0]),.5*si(a[0])),n[r]=(xc(t[r-1])+xc(o))*Bx(si(t[r-1]),si(o),.5*si(a[r])),h_(e,n,t)},_de=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),EL=_de,wde=(e=2,r=1)=>{let t=EL(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},Tde=wde,DL=Nt("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(DL(e)),zL=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 zL(DL(e))}function tm(e="rgb"){let{gamut:r}=_n(e);if(!r)return a=>!0;let t=Nt(typeof r=="string"?r:e);return a=>zL(t(a))}function Mde(e){return e=xo(e),e===void 0||d_(e)?e:Nt(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=Nt(t),n=tm(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:Nt(o.mode)(s)}}function Ade(e,r="lch",t="rgb"){e=xo(e);let a=t==="rgb"?d_:tm(t),n=t==="rgb"?RL:p_(t);if(e===void 0||a(e))return e;let i=Nt(e.mode);e=Nt(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 kde(e="rgb",r="oklch",t=Mc("oklch"),a=.02){let n=Nt(e),i=_n(e);if(!i.gamut)return f=>n(f);let o=tm(e),l=p_(e),s=Nt(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 y=Ut(wt({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Ut(wt({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let v=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,m=l(c);for(;d-v>p;)c.c=(v+d)*.5,m=l(c),o(c)||t&&a>0&&t(c,m)<=a?v=c.c:d=c.c;return n(o(c)?c:m)}}var Sde=(e,r=Mc(),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]))},qde=Sde,m_=e=>Math.max(e,0),y_=e=>Math.max(Math.min(e,1),0),Lde=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),Cde=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]},Dde=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]},Pde=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]},am=(e,r,t=!1)=>{let a=Nt(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?Nt(f.mode)(l):l}},Rde=(e=1,r="rgb")=>{let t=m_(e);return fh(c_(t),r,!0)},zde=(e=1,r="rgb")=>{let t=m_(e);return fh(c_(t,(1-t)/2),r,!0)},Nde=(e=1,r="rgb")=>am(Cde(e),r,!0),Ide=(e=1,r="rgb")=>am(Ede(e),r,!0),Fde=(e=1,r="rgb")=>am(Dde(e),r,!0),Ode=(e=1,r="rgb")=>{let t=y_(e);return fh((a,n)=>n==="alpha"?a:Lde(t,1-t,a),r,!0)},Bde=(e=0,r="rgb")=>am(Pde(e),r,!0),Hde=Nt("rgb"),Ude=[[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]],Gde=[[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]],Yde=[[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}=Hde(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),Nt(l.mode)(c)}},Vde=(e=1)=>g_(Ude,e),jde=(e=1)=>g_(Gde,e),Wde=(e=1)=>g_(Yde,e),Xde=e=>e*e*(3-2*e),Zde=e=>.5-Math.sin(Math.asin(1-2*e)/3),$de=e=>e*e*e*(e*(e*6-15)+10),Jde=$de,Kde=e=>(1-Math.cos(e*Math.PI))/2,Qde=Kde;function Hx(e){let r=Nt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function e1e(e,r){let t=Hx(e),a=Hx(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var r1e=kt(dq),t1e=kt(bq),a1e=kt(Mq),n1e=kt(Aq),i1e=kt(qq),o1e=kt(Wx),l1e=kt($x),s1e=kt(Nq),u1e=kt(Oq),f1e=kt(Bq),c1e=kt(Hq),v1e=kt(em),h1e=kt(Gq),d1e=kt(rm),p1e=kt(Vq),m1e=kt(Xq),y1e=kt(Zq),g1e=kt($q),b1e=kt(Kq),x1e=kt(Qq),_1e=kt(rL),w1e=kt(aL),T1e=kt(nL),M1e=kt(iL),A1e=kt(oL),k1e=kt(Cu),S1e=kt(fL),q1e=kt(cL),L1e=kt(dL),C1e=kt(yL)});var ds=N((tUe,HL)=>{"use strict";var FL={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:300,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:{}}},OL={};function BL(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),BL(a,r[t]))}}BL(FL,OL);HL.exports={configAttributes:FL,dfltConfig:OL}});var x_=N((aUe,UL)=>{"use strict";var b_=Dr(),E1e=Fr(),ch=[];UL.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||ch.indexOf(e)!==-1)return;ch.push(e);var a=1e3;E1e(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(ch);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=ch.indexOf(u);f!==-1&&ch.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("×").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=N((nUe,GL)=>{"use strict";var qc=ds().dfltConfig,__=x_(),w_=GL.exports={};w_.log=function(){var e;if(qc.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(qc.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(qc.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(qc.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(qc.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(qc.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);__(t.join("<br>"),"stick")}}});var Ei=N(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=N((oUe,JL)=>{"use strict";var{converter:YL,formatHex:D1e,formatRgb:P1e,wcagContrast:R1e,wcagLuminance:z1e}=IL(),{isArrayOrTypedArray:N1e}=Vn(),{warn:I1e}=ps(),{background:hh,defaultLine:A_,defaults:F1e,lightLine:O1e}=Ei(),VL=YL("rgb"),B1e=YL("hsl"),jL=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return VL(r)}catch(t){return}},wn=e=>e>0?e>1?1:e:0,H1e={mode:"rgb",r:0,g:0,b:0,alpha:1},T_=e=>Math.round(e*255e6)/255e6,WL=e=>Ut(wt({},e),{r:T_(e.r),g:T_(e.g),b:T_(e.b)}),ui=e=>P1e(WL(e)),U1e=e=>D1e(WL(e)),Zt=(e,r)=>{var a;let t=jL(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&I1e(`Invalid color specifier: "${e}". Defaulting to "#000"`),H1e)},vh=e=>ui(Ut(wt({},Zt(e)),{alpha:1})),G1e=e=>e?Zt(e).alpha:0,XL=e=>N1e(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),Y1e=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}},V1e=(e,r)=>{let t=XL(e)?Y1e(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},j1e=(e,r)=>ui(Ut(wt({},Zt(e)),{alpha:wn(r)})),ZL=(e,r)=>{let t=Zt(e),a=t.alpha;if(a===1)return ui(t);let n=Zt(r||hh),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)})},W1e=(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)})},M_=(e,r)=>{let t=Zt(e),a=B1e(t)||{mode:"hsl",h:0,s:0,l:0};return ui(VL(Ut(wt({},a),{l:wn((a.l*100+r)/100),alpha:t.alpha})))},nm=(e,r)=>R1e(Zt(e),Zt(r)),$L=e=>nm(e,hh)>nm(e,A_),X1e=ui(Zt(hh)),Z1e=ui(Zt(A_)),$1e=(e,r,t)=>(Zt(e).alpha!==1&&(e=ZL(e,hh)),$L(e)?r?M_(e,r):X1e:t?M_(e,-t):Z1e),J1e=(e,r)=>{e.style({stroke:vh(r),"stroke-opacity":Zt(r).alpha})},K1e=(e,r)=>{e.style({fill:vh(r),"fill-opacity":Zt(r).alpha})},Q1e=(e,r)=>!!(e&&r&&vh(e)===vh(r)),epe=e=>jL(e)!==void 0,rpe=(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)}))},tpe=(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})},ape=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=nm(e,n);i>a&&(a=i,t=ui(Zt(n)))}return t},npe=e=>ui(Zt(e)),ipe=e=>U1e(Zt(e)).toUpperCase(),ope=e=>{let r=Zt(e);return[wn(r.r)*255,wn(r.g)*255,wn(r.b)*255,wn(r.alpha)]},lpe=([e,r,t,a])=>ui({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),spe=e=>{let r=Zt(e);return z1e({mode:"rgb",r:wn(r.r),g:wn(r.g),b:wn(r.b)})};JL.exports={addOpacity:j1e,adjustLightness:M_,background:hh,brighten:rpe,combine:ZL,contrast:$1e,defaultLine:A_,defaults:F1e,equals:Q1e,fill:K1e,hexString:ipe,interpolate:W1e,isChannelArray:XL,isDark:$L,isValid:epe,lightLine:O1e,luminosity:spe,mix:tpe,mostReadable:ape,normalize:V1e,opacity:G1e,parse:Zt,rgb:vh,rgbaArray:ope,rgbaArrayToString:lpe,rgbaString:npe,stroke:J1e,wcagContrast:nm}});var Ru=N((sUe,eC)=>{"use strict";var upe=Sr(),im={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)"]]},KL=im.RdBu;function fpe(e,r){if(r||(r=KL),!e)return r;function t(){try{e=im[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),QL(e)?e:r}function QL(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||!upe.isValid(a[1]))return!1;r=+a[0]}return!0}function cpe(e){return im[e]!==void 0?!0:QL(e)}eC.exports={scales:im,defaultScale:KL,get:fpe,isValid:cpe}});var om=N((uUe,rC)=>{"use strict";rC.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Lc={};dc(Lc,{counter:()=>vpe});function vpe(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_,Cc=hc(()=>{"use strict";k_="([2-9]|[1-9][0-9]+)?"});var nC=N(Wn=>{"use strict";var S_=Fr(),tC=Mt().extendFlat,hpe=Nn(),dpe=Ru(),q_=Sr(),ppe=om().DESELECTDIM,Ec=Lp(),aC=(Cc(),un(Lc)).counter,mpe=(gc(),un(yc)).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(dpe.get(e,t))}},angle:{coerceFunction:function(e,r,t){ms(e)&&(e=ys(e)),e==="auto"?r.set("auto"):S_(e)?r.set(mpe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||aC(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:!!aC(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,b){var _,k={set:function(M){_=M}};return b===void 0&&(b=w.dflt),Wn.valObjectMeta[w.valType].coerceFunction(T,k,b,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,m,y,x;if(t=Array.isArray(t)?t:[],i)for(v=0;v<c;v++)for(l[v]=[],p=_o(e[v])?e[v]:[],f?y=o.length:s?y=o[v].length:y=p.length,d=0;d<y;d++)f?m=o[d]:s?m=o[v][d]:m=o,x=n(p[d],m,(t[v]||[])[d]),x!==void 0&&(l[v][d]=x);else for(v=0;v<c;v++)x=n(e[v],s?o[v]:o,t[v]),x!==void 0&&(l[v]=x);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(!lm(e[i][o],a?t[i][o]:t))return!1}else if(!lm(e[i],a?t[i]:t))return!1;return!0}}};Wn.coerce=function(e,r,t,a,n){var i=Ec(t,a).get(),o=Ec(e,a),l=Ec(r,a),s=o.get(),u=r._template;if(s===void 0&&u&&(s=Ec(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&&!lm(s,i)&&(s=Ec(u,a).get(),f(s,l,n,i),c=l.get()),c};Wn.coerce2=function(e,r,t,a,n){var i=Ec(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=tC({},t),t=tC(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:hpe,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=ppe*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function lm(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=lm});var sm=N((cUe,iC)=>{"use strict";iC.exports=function(){}});var L_=N((vUe,oC)=>{"use strict";oC.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 sC=N((hUe,lC)=>{lC.exports=ype;function ype(){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 fC=N((dUe,uC)=>{uC.exports=gpe;function gpe(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 vC=N((pUe,cC)=>{cC.exports=bpe;function bpe(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_=N((mUe,hC)=>{hC.exports=xpe;function xpe(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 pC=N((yUe,dC)=>{dC.exports=_pe;function _pe(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 yC=N((gUe,mC)=>{mC.exports=wpe;function wpe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],x=r[15],T=t*l-a*o,w=t*s-n*o,b=t*u-i*o,_=a*s-n*l,k=a*u-i*l,M=n*u-i*s,q=f*m-c*p,C=f*y-v*p,D=f*x-d*p,P=c*y-v*m,R=c*x-d*m,I=v*x-d*y,F=T*I-w*R+b*P+_*D-k*C+M*q;return F?(F=1/F,e[0]=(l*I-s*R+u*P)*F,e[1]=(n*R-a*I-i*P)*F,e[2]=(m*M-y*k+x*_)*F,e[3]=(v*k-c*M-d*_)*F,e[4]=(s*D-o*I-u*C)*F,e[5]=(t*I-n*D+i*C)*F,e[6]=(y*b-p*M-x*w)*F,e[7]=(f*M-v*b+d*w)*F,e[8]=(o*R-l*D+u*q)*F,e[9]=(a*D-t*R-i*q)*F,e[10]=(p*k-m*b+x*T)*F,e[11]=(c*b-f*k-d*T)*F,e[12]=(l*C-o*P-s*q)*F,e[13]=(t*P-a*C+n*q)*F,e[14]=(m*w-p*_-y*T)*F,e[15]=(f*_-c*w+v*T)*F,e):null}});var bC=N((bUe,gC)=>{gC.exports=Tpe;function Tpe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],x=r[15];return e[0]=l*(v*x-d*y)-c*(s*x-u*y)+m*(s*d-u*v),e[1]=-(a*(v*x-d*y)-c*(n*x-i*y)+m*(n*d-i*v)),e[2]=a*(s*x-u*y)-l*(n*x-i*y)+m*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*x-d*y)-f*(s*x-u*y)+p*(s*d-u*v)),e[5]=t*(v*x-d*y)-f*(n*x-i*y)+p*(n*d-i*v),e[6]=-(t*(s*x-u*y)-o*(n*x-i*y)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*x-d*m)-f*(l*x-u*m)+p*(l*d-u*c),e[9]=-(t*(c*x-d*m)-f*(a*x-i*m)+p*(a*d-i*c)),e[10]=t*(l*x-u*m)-o*(a*x-i*m)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*y-v*m)-f*(l*y-s*m)+p*(l*v-s*c)),e[13]=t*(c*y-v*m)-f*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(l*y-s*m)-o*(a*y-n*m)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var _C=N((xUe,xC)=>{xC.exports=Mpe;function Mpe(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],m=e[14],y=e[15],x=r*o-t*i,T=r*l-a*i,w=r*s-n*i,b=t*l-a*o,_=t*s-n*o,k=a*s-n*l,M=u*p-f*d,q=u*m-c*d,C=u*y-v*d,D=f*m-c*p,P=f*y-v*p,R=c*y-v*m;return x*R-T*P+w*D+b*C-_*q+k*M}});var TC=N((_Ue,wC)=>{wC.exports=Ape;function Ape(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],m=r[12],y=r[13],x=r[14],T=r[15],w=t[0],b=t[1],_=t[2],k=t[3];return e[0]=w*a+b*l+_*c+k*m,e[1]=w*n+b*s+_*v+k*y,e[2]=w*i+b*u+_*d+k*x,e[3]=w*o+b*f+_*p+k*T,w=t[4],b=t[5],_=t[6],k=t[7],e[4]=w*a+b*l+_*c+k*m,e[5]=w*n+b*s+_*v+k*y,e[6]=w*i+b*u+_*d+k*x,e[7]=w*o+b*f+_*p+k*T,w=t[8],b=t[9],_=t[10],k=t[11],e[8]=w*a+b*l+_*c+k*m,e[9]=w*n+b*s+_*v+k*y,e[10]=w*i+b*u+_*d+k*x,e[11]=w*o+b*f+_*p+k*T,w=t[12],b=t[13],_=t[14],k=t[15],e[12]=w*a+b*l+_*c+k*m,e[13]=w*n+b*s+_*v+k*y,e[14]=w*i+b*u+_*d+k*x,e[15]=w*o+b*f+_*p+k*T,e}});var AC=N((wUe,MC)=>{MC.exports=kpe;function kpe(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,m,y,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],m=r[9],y=r[10],x=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=x,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=u*a+d*n+x*i+r[15]),e}});var SC=N((TUe,kC)=>{kC.exports=Spe;function Spe(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 LC=N((MUe,qC)=>{qC.exports=qpe;function qpe(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,m,y,x,T,w,b,_,k,M,q,C,D,P,R,I,F,B;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],m=r[4],y=r[5],x=r[6],T=r[7],w=r[8],b=r[9],_=r[10],k=r[11],M=n*n*f+u,q=i*n*f+o*s,C=o*n*f-i*s,D=n*i*f-o*s,P=i*i*f+u,R=o*i*f+n*s,I=n*o*f+i*s,F=i*o*f-n*s,B=o*o*f+u,e[0]=c*M+m*q+w*C,e[1]=v*M+y*q+b*C,e[2]=d*M+x*q+_*C,e[3]=p*M+T*q+k*C,e[4]=c*D+m*P+w*R,e[5]=v*D+y*P+b*R,e[6]=d*D+x*P+_*R,e[7]=p*D+T*P+k*R,e[8]=c*I+m*F+w*B,e[9]=v*I+y*F+b*B,e[10]=d*I+x*F+_*B,e[11]=p*I+T*F+k*B,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var EC=N((AUe,CC)=>{CC.exports=Lpe;function Lpe(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 PC=N((kUe,DC)=>{DC.exports=Cpe;function Cpe(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=N((SUe,RC)=>{RC.exports=Epe;function Epe(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=N((qUe,NC)=>{NC.exports=Dpe;function Dpe(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=N((LUe,FC)=>{FC.exports=Ppe;function Ppe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,m=i*u,y=o*l,x=o*s,T=o*u;return e[0]=1-(d+m),e[1]=c+T,e[2]=v-x,e[3]=0,e[4]=c-T,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=v+x,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var HC=N((CUe,BC)=>{BC.exports=Rpe;function Rpe(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 GC=N((EUe,UC)=>{UC.exports=zpe;function zpe(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 VC=N((DUe,YC)=>{YC.exports=Npe;function Npe(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 WC=N((PUe,jC)=>{jC.exports=Ipe;function Ipe(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 ZC=N((RUe,XC)=>{XC.exports=Fpe;function Fpe(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 JC=N((zUe,$C)=>{$C.exports=Ope;function Ope(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,m=i*o,y=i*l,x=i*s;return e[0]=1-c-p,e[1]=f+x,e[2]=v-y,e[3]=0,e[4]=f-x,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=v+y,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var QC=N((NUe,KC)=>{KC.exports=Bpe;function Bpe(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 rE=N((IUe,eE)=>{eE.exports=Hpe;function Hpe(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 aE=N((FUe,tE)=>{tE.exports=Upe;function Upe(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 iE=N((OUe,nE)=>{nE.exports=Gpe;function Gpe(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 lE=N((BUe,oE)=>{var Ype=C_();oE.exports=Vpe;function Vpe(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],m=r[1],y=r[2],x=a[0],T=a[1],w=a[2],b=t[0],_=t[1],k=t[2];return Math.abs(p-b)<1e-6&&Math.abs(m-_)<1e-6&&Math.abs(y-k)<1e-6?Ype(e):(f=p-b,c=m-_,v=y-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=T*v-w*c,i=w*f-x*v,o=x*c-T*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*m+o*y),e[13]=-(l*p+s*m+u*y),e[14]=-(f*p+c*m+v*y),e[15]=1,e)}});var uE=N((HUe,sE)=>{sE.exports=jpe;function jpe(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var E_=N((UUe,fE)=>{fE.exports={create:sC(),clone:fC(),copy:vC(),identity:C_(),transpose:pC(),invert:yC(),adjoint:bC(),determinant:_C(),multiply:TC(),translate:AC(),scale:SC(),rotate:LC(),rotateX:EC(),rotateY:PC(),rotateZ:zC(),fromRotation:IC(),fromRotationTranslation:OC(),fromScaling:HC(),fromTranslation:GC(),fromXRotation:VC(),fromYRotation:WC(),fromZRotation:ZC(),fromQuat:JC(),frustum:QC(),perspective:rE(),perspectiveFromFieldOfView:aE(),ortho:iE(),lookAt:lE(),str:uE()}});var um=N(ua=>{"use strict";var Wpe=E_();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 Wpe.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 dh=N((YUe,mE)=>{"use strict";var Xpe=Dr(),cE=ps(),Zpe=um(),$pe=E_();function Jpe(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 Kpe(e){var r=Xpe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function vE(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Qpe(e,r){hE("global",e,r)}function hE(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):cE.warn("addStyleRule failed"):cE.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function eme(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&vE(t)}function rme(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 tme(e){var r=pE(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=dE(a);if(n){var i=Zpe.convertCssMatrix(n);t=$pe.multiply(t,t,i)}}),t}function dE(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 pE(e){for(var r=[];ame(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function ame(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function nme(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}mE.exports={getGraphDiv:Jpe,isPlotDiv:Kpe,removeElement:vE,addStyleRule:Qpe,addRelatedStyleRule:hE,deleteRelatedStyleRule:eme,setStyleOnHover:rme,getFullTransformMatrix:tme,getElementTransformMatrix:dE,getElementAndAncestors:pE,equalDomRects:nme}});var ph=N((VUe,yE)=>{"use strict";yE.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=N((jUe,ME)=>{"use strict";var bE=Mt().extendFlat,ime=Mu(),xE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},_E={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},ome=xE.flags.slice().concat(["fullReplot"]),lme=_E.flags.slice().concat("layoutReplot");ME.exports={traces:xE,layout:_E,traceFlags:function(){return gE(ome)},layoutFlags:function(){return gE(lme)},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:wE};function gE(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function wE(e,r,t){var a=bE({},e);for(var n in a){var i=a[n];ime(i)&&(a[n]=TE(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function TE(e,r,t,a){if(e.valType){var n=bE({},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]=TE(e.items[i],r,"from-root")}return n}else return wE(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var Di=N(D_=>{"use strict";D_.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};D_.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_=N((XUe,AE)=>{"use strict";AE.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=N(Dc=>{"use strict";var{DATE_FORMAT_LINK:sme,FORMAT_LINK:ume}=P_(),fme=["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 cme({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}".`,ume,"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}".`,sme,"for details on the date formatting syntax.",fme].join(" ")}Dc.templateFormatStringDescription=cme;Dc.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>wt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Dc.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>wt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Dc.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Dc.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var vm=N((JUe,EE)=>{"use strict";function gs(e,r){return r?r.d2l(e):e}function kE(e,r){return r?r.l2d(e):e}function vme(e){return e.x0}function hme(e){return e.x1}function dme(e){return e.y0}function pme(e){return e.y1}function SE(e){return e.x0shift||0}function qE(e){return e.x1shift||0}function LE(e){return e.y0shift||0}function CE(e){return e.y1shift||0}function fm(e,r){return gs(e.x1,r)+qE(e)-gs(e.x0,r)-SE(e)}function cm(e,r,t){return gs(e.y1,t)+CE(e)-gs(e.y0,t)-LE(e)}function mme(e,r){return Math.abs(fm(e,r))}function yme(e,r,t){return Math.abs(cm(e,r,t))}function gme(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(fm(e,r),2)+Math.pow(cm(e,r,t),2))}function bme(e,r){return kE((gs(e.x1,r)+qE(e)+gs(e.x0,r)+SE(e))/2,r)}function xme(e,r,t){return kE((gs(e.y1,t)+CE(e)+gs(e.y0,t)+LE(e))/2,t)}function _me(e,r,t){return e.type!=="line"?void 0:cm(e,r,t)/fm(e,r)}var wme=["x0","x1","y0","y1","dy","height","ycenter"],Tme=["x0","x1","y0","y1","dx","width","xcenter"];EE.exports={x0:vme,x1:hme,y0:dme,y1:pme,slope:_me,dx:fm,dy:cm,width:mme,height:yme,length:gme,xcenter:bme,ycenter:xme,simpleXVariables:wme,simpleYVariables:Tme}});var RE=N((KUe,PE)=>{"use strict";var Mme=wo().overrideAll,zu=Nn(),DE=ka(),Ame=Di().dash,bs=Mt().extendFlat,{shapeTexttemplateAttrs:kme,templatefallbackAttrs:Sme}=fi(),qme=vm();PE.exports=Mme({newshape:{visible:bs({},zu.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:bs({},zu.legend,{}),legendgroup:bs({},zu.legendgroup,{}),legendgrouptitle:{text:bs({},zu.legendgrouptitle.text,{}),font:DE({})},legendrank:bs({},zu.legendrank,{}),legendwidth:bs({},zu.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:bs({},Ame,{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({},zu.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:kme({newshape:!0},{keys:Object.keys(qme)}),texttemplatefallback:Sme({editType:"arraydraw"}),font:DE({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var NE=N((QUe,zE)=>{"use strict";var Lme=Di().dash,Cme=Mt().extendFlat;zE.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:Cme({},Lme,{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 hm=N((eGe,IE)=>{"use strict";IE.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 Pc=N((rGe,HE)=>{"use strict";var R_=ka(),Eme=ph(),dm=Ei(),FE=RE(),OE=NE(),Dme=hm(),BE=Mt().extendFlat,pm=R_({editType:"calc"});pm.family.dflt='"Open Sans", verdana, arial, sans-serif';pm.size.dflt=12;pm.color.dflt=dm.defaultLine;HE.exports={font:pm,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:BE(Dme({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:dm.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:dm.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:dm.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:FE.newshape,activeshape:FE.activeshape,newselection:OE.newselection,activeselection:OE.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:BE({},Eme.transition,{editType:"none"})}});var UE=N(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",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{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width: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{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.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{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.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 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.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.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.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 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.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.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.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{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.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{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.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{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.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-left-color:#fff;border-right:none}[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{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.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{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;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{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Tr=N(Vr=>{"use strict";var z_=ps(),GE=sm(),YE=L_(),nGe=dh().addStyleRule,VE=Mt(),Pme=Nn(),Rme=Pc(),zme=VE.extendFlat,N_=VE.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":Nme(a);break;case"component":Fme(a);break;case"locale":Ome(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[ZE(e)];return r?r._module:!1};Vr.traceIs=function(e,r){if(e=ZE(e),e==="various")return!1;var t=Vr.modules[e];return t||(e&&z_.log("Unrecognized trace type "+e+"."),t=Vr.modules[Pme.type.dflt]),!!t.categories[r]};Vr.getComponentMethod=function(e,r){var t=Vr.componentsRegistry[e];return t&&t[r]||GE};Vr.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Vr.apiMethodRegistry[e].apply(null,r)};function Nme(e){var r=e.name,t=e.categories,a=e.meta;if(Vr.modules[r]){z_.log("Type "+r+" already registered");return}Vr.subplotsRegistry[e.basePlotModule.name]||Ime(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)WE(o,r);e.layoutAttributes&&zme(Vr.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,s=l.name;s==="map"&&UE(),(s==="geo"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function Ime(e){var r=e.name;if(Vr.subplotsRegistry[r]){z_.log("Plot type "+r+" already registered.");return}jE(e),Vr.subplotsRegistry[r]=e;for(var t in Vr.componentsRegistry)XE(t,e.name)}function Fme(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&&YE(Vr.layoutArrayContainers,r),jE(e));for(var t in Vr.modules)WE(r,t);for(var a in Vr.subplotsRegistry)XE(r,a);e.schema&&e.schema.layout&&N_(Rme,e.schema.layout)}function Ome(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 jE(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)YE(Vr.layoutArrayRegexes,r[t])}}function WE(e,r){var t=Vr.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&N_(Vr.modules[r]._module.attributes,a)}}function XE(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&&N_(n,o)}}function ZE(e){return typeof e=="object"&&(e=e.type),e}});var nD=N(fa=>{"use strict";var Bme=pc().timeFormat,tD=Fr(),I_=ps(),_s=(gc(),un(yc)).mod,Nc=Gt(),Pi=Nc.BADNUM,Xn=Nc.ONEDAY,mh=Nc.ONEHOUR,xs=Nc.ONEMIN,zc=Nc.ONESEC,yh=Nc.EPOCHJD,Dl=Tr(),$E=pc().utcFormat,Hme=/^\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,Ume=/^\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,JE=new Date().getFullYear()-70;function Pl(e){return e&&Dl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}fa.dateTick0=function(e,r){var t=Gme(e,!!r);if(r<2)return t;var a=fa.dateTime2ms(t,e);return a+=Xn*(r-1),fa.ms2DateTime(a,0,e)};function Gme(e,r){return Pl(e)?r?Dl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Dl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}fa.dfltRange=function(e){return Pl(e)?Dl.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 ym,gm;fa.dateTime2ms=function(e,r){if(fa.isJSDate(e)){var t=e.getTimezoneOffset()*xs,a=(e.getUTCMinutes()-e.getMinutes())*xs+(e.getUTCSeconds()-e.getSeconds())*zc+(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>=ym&&e<=gm?e:Pi}if(typeof e!="string"&&typeof e!="number")return Pi;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?Ume:Hme);if(!s)return Pi;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 Pi;u=Number(u);var m;try{var y=Dl.getComponentMethod("calendars","getCal")(r);if(l){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,x),c)}else m=y.newDate(u,Number(f),c)}catch(w){return Pi}return m?(m.toJD()-yh)*Xn+v*mh+d*xs+p*zc:Pi}u.length===2?u=(Number(u)+2e3-JE)%100+JE: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?Pi:T.getTime()+p*zc};ym=fa.MIN_MS=fa.dateTime2ms("-9999");gm=fa.MAX_MS=fa.dateTime2ms("9999-12-31 23:59:59.9999");fa.isDateTime=function(e,r){return fa.dateTime2ms(e,r)!==Pi};function Rc(e,r){return String(e+Math.pow(10,r)).slice(1)}var mm=90*Xn,KE=3*mh,QE=5*xs;fa.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=ym&&e<=gm))return Pi;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)+yh,v=Math.floor(_s(e,Xn));try{i=Dl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=$E("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<mm?Math.floor(v/mh):0,l=r<mm?Math.floor(v%mh/xs):0,s=r<KE?Math.floor(v%xs/zc):0,u=r<QE?v%zc*10+a:0}else f=new Date(n),i=$E("%Y-%m-%d")(f),o=r<mm?f.getUTCHours():0,l=r<mm?f.getUTCMinutes():0,s=r<KE?f.getUTCSeconds():0,u=r<QE?f.getUTCMilliseconds()*10+a:0;return aD(i,o,l,s,u)};fa.ms2DateTimeLocal=function(e){if(!(e>=ym+Xn&&e<=gm-Xn))return Pi;var r=Math.floor(_s(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Bme("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return aD(a,n,i,o,l)};function aD(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Rc(r,2)+":"+Rc(t,2),(a||n)&&(e+=":"+Rc(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Rc(n,i)}return e}fa.cleanDate=function(e,r,t){if(e===Pi)return r;if(fa.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Pl(t))return I_.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 I_.error("unrecognized date",e),r;return e};var Yme=/%\d?f/g,Vme=/%h/g,jme={1:"1",2:"1",3:"2",4:"2"};function eD(e,r,t,a){e=e.replace(Yme,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(Vme,function(){return jme[t("%q")(n)]}),Pl(a))try{e=Dl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Wme=[59,59.9,59.99,59.999,59.9999];function Xme(e,r){var t=_s(e+.05,Xn),a=Rc(Math.floor(t/mh),2)+":"+Rc(_s(Math.floor(t/xs),60),2);if(r!=="M"){tD(r)||(r=0);var n=Math.min(_s(e/zc,60),Wme[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 Xme(e,t)+`
`+eD(i.dayMonthYear,e,a,n);return eD(r,e,a,n)};var rD=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)+yh,i=Dl.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-yh)*Xn+a}catch(s){I_.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+rD);return l.setUTCMonth(l.getUTCMonth()+r)+a-rD};fa.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Pl(r)&&Dl.getComponentMethod("calendars","getCal")(r),u=0;u<e.length;u++){if(l=e[u],!tD(l)){i++;continue}if(!(l%Xn))if(s)try{o=s.fromJD(l/Xn+yh),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 F_=N((lGe,iD)=>{"use strict";iD.exports=function(r){return r}});var B_=N(Rl=>{"use strict";var Zme=Fr(),$me=ps(),Jme=F_(),Kme=Gt().BADNUM,O_=1e-9;Rl.findBin=function(e,r,t){if(Zme(r.start))return t?Math.ceil((e-r.start)/r.size-O_)-1:Math.floor((e-r.start)/r.size+O_);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?Qme:eye:s=t?tye:rye,e+=o*O_*(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&&$me.log("Long binary search..."),a-1};function Qme(e,r){return e<r}function eye(e,r){return e<=r}function rye(e,r){return e>r}function tye(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]===Kme;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||Jme;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_={};dc(H_,{default:()=>nye});function aye(e){return Object.keys(e).sort()}var nye,U_=hc(()=>{"use strict";nye=aye});var oD=N(ca=>{"use strict";var gh=Fr(),iye=Vn().isArrayOrTypedArray;ca.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),gh(r)||(r=!1),iye(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++)gh(r)?gh(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)),gh(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(!gh(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 cD=N((fGe,fD)=>{"use strict";var lD=(gc(),un(yc)),G_=lD.mod,oye=lD.modHalf,bh=Math.PI,ws=2*bh;function lye(e){return e/180*bh}function sye(e){return e/bh*180}function Y_(e){return Math.abs(e[1]-e[0])>ws-1e-14}function sD(e,r){return oye(r-e,ws)}function uye(e,r){return Math.abs(sD(e,r))}function uD(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 fye(e,r,t,a){if(!uD(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=bh,f=ws):t<a?(s=t,f=a):(s=a,f=t),e<r?(c=e,v=r):(c=r,v=e);function d(x,T){return[x*Math.cos(T)+n,i-x*Math.sin(T)]}var p=Math.abs(f-s)<=bh?0:1;function m(x,T,w){return"A"+[x,x]+" "+[0,p,w]+" "+d(x,T)}var y;return l?c===null?y="M"+d(v,s)+m(v,u,0)+m(v,f,0)+"Z":y="M"+d(c,s)+m(c,u,0)+m(c,f,0)+"ZM"+d(v,s)+m(v,u,1)+m(v,f,1)+"Z":c===null?(y="M"+d(v,s)+m(v,f,0),o&&(y+="L0,0Z")):y="M"+d(c,s)+"L"+d(v,s)+m(v,f,0)+"L"+d(c,f)+m(c,s,1)+"Z",y}function cye(e,r,t,a,n){return V_(null,e,r,t,a,n,0)}function vye(e,r,t,a,n){return V_(null,e,r,t,a,n,1)}function hye(e,r,t,a,n,i){return V_(e,r,t,a,n,i,1)}fD.exports={deg2rad:lye,rad2deg:sye,angleDelta:sD,angleDist:uye,isFullCircle:Y_,isAngleInsideSector:uD,isPtInsideSector:fye,pathArc:cye,pathSector:vye,pathAnnulus:hye}});var vD=N(Nu=>{"use strict";Nu.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Nu.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Nu.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Nu.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Nu.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Nu.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var pD=N(Iu=>{"use strict";var j_=(gc(),un(yc)).mod;Iu.segmentsIntersect=dD;function dD(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var m=(u*d-f*v)/p,y=(u*c-s*v)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}Iu.segmentDistance=function(r,t,a,n,i,o,l,s){if(dD(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,m=Math.min(bm(u,f,d,i-r,o-t),bm(u,f,d,l-r,s-t),bm(c,v,p,r-i,t-o),bm(c,v,p,a-i,n-o));return Math.sqrt(m)};function bm(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 xm,W_,hD;Iu.getTextLocation=function(r,t,a,n){if((r!==W_||n!==hD)&&(xm={},W_=r,hD=n),xm[a])return xm[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 xm[a]=c,c};Iu.clearLocationCache=function(){W_=null};Iu.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(v=y);var x=y.x<n?n-y.x:y.x>i?y.x-i:0,T=y.y<o?o-y.y:y.y>l?y.y-l:0;return Math.sqrt(x*x+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}};Iu.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 _m=N(xh=>{"use strict";var zl={};xh.throttle=function(r,t,a){var n=zl[r],i=Date.now();if(!n){for(var o in zl)zl[o].ts<i-6e4&&delete zl[o];n=zl[r]={ts:0,timer:null}}mD(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)};xh.done=function(e){var r=zl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};xh.clear=function(e){if(e)mD(zl[e]),delete zl[e];else for(var r in zl)xh.clear(r)};function mD(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var gD=N((dGe,yD)=>{"use strict";yD.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var bD=N((pGe,wm)=>{"use strict";wm.exports=X_;wm.exports.isMobile=X_;wm.exports.default=X_;var dye=/(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,pye=/CrOS/,mye=/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=dye.test(r)&&!pye.test(r)||!!e.tablet&&mye.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var _D=N((mGe,xD)=>{"use strict";var yye=Fr(),gye=bD();xD.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=bye(),typeof t!="string")return!0;var a=gye({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(yye(u)&&(u=+u),u>=13)return!0}}}return a};function bye(){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 TD=N((yGe,wD)=>{"use strict";var xye=Dr();wD.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]=xye.select(this)}),n}});var AD=N((gGe,MD)=>{"use strict";var _ye=Tr();MD.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=_ye.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var SD=N((bGe,kD)=>{"use strict";kD.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 LD=N((xGe,qD)=>{"use strict";qD.exports=function(r){for(var t=Mye(r)?Tye:wye,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function wye(e){return e.visible===!0}function Tye(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function Mye(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var ED=N((_Ge,CD)=>{"use strict";CD.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 RD={};dc(RD,{default:()=>Sye});function kye(e){return typeof e=="string"&&(e=e.replace(Aye,"")),(0,DD.default)(e)?Number(e):PD.BADNUM}var DD,PD,Aye,Sye,zD=hc(()=>{"use strict";DD=cs(Fr()),PD=cs(Gt()),Aye=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Sye=kye});var FD=N((wGe,ID)=>{"use strict";var qye=/<[^>]*>/g,Lye=/[\p{S}\p{P}]/gu,Cye=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,Eye=/�/g,Dye=/\s+/g,Tm="-",ND=Tm.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Pye=new RegExp(ND+"{3,}","g"),Rye=new RegExp(ND+"$","g"),zye=60;function Nye(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}ID.exports=function(r,t=zye){var a=Nye(r!=null?r:"").replace(Eye,"").replace(qye," ").replace(Lye,n=>n===Tm?n:"").toLowerCase().trim().replace(Dye,Tm).replace(Cye,"").replace(Pye,Tm);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(Rye,"")}});var ke=N((TGe,$D)=>{"use strict";var _h=Dr(),Iye=pc().utcFormat,Fye=Y5().format,YD=Fr(),VD=Gt(),jD=VD.FP_SAFE,Oye=-jD,OD=VD.BADNUM,de=$D.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 BD={};de.warnBadFormat=function(e){var r=String(e);BD[r]||(BD[r]=1,de.warn('encountered bad format: "'+r+'"'))};de.noFormat=function(e){return String(e)};de.numberFormat=function(e){var r;try{r=Fye(de.adjustFormat(e))}catch(t){return de.warnBadFormat(e),de.noFormat}return r};de.nestedProperty=Lp();de.keyedContainer=ES();de.relativeAttr=PS();de.isPlainObject=Mu();de.toLogRange=Ep();de.relinkPrivateKeys=IS();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 WD=(gc(),un(yc));de.mod=WD.mod;de.modHalf=WD.modHalf;var Ms=nC();de.valObjectMeta=Ms.valObjectMeta;de.coerce=Ms.coerce;de.coerce2=Ms.coerce2;de.coerceFont=Ms.coerceFont;de.coercePattern=Ms.coercePattern;de.coerceHoverinfo=Ms.coerceHoverinfo;de.coerceSelectionMarkerOpacity=Ms.coerceSelectionMarkerOpacity;de.validate=Ms.validate;var ci=nD();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 Fu=B_();de.findBin=Fu.findBin;de.sorterAsc=Fu.sorterAsc;de.sorterDes=Fu.sorterDes;de.distinctVals=Fu.distinctVals;de.roundUp=Fu.roundUp;de.sort=Fu.sort;de.findIndexOfMin=Fu.findIndexOfMin;de.sortObjectKeys=(U_(),un(H_)).default;var Nl=oD();de.aggNums=Nl.aggNums;de.len=Nl.len;de.mean=Nl.mean;de.geometricMean=Nl.geometricMean;de.median=Nl.median;de.midRange=Nl.midRange;de.variance=Nl.variance;de.stdev=Nl.stdev;de.interp=Nl.interp;var To=um();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=cD();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 Fc=vD();de.isLeftAnchor=Fc.isLeftAnchor;de.isCenterAnchor=Fc.isCenterAnchor;de.isRightAnchor=Fc.isRightAnchor;de.isTopAnchor=Fc.isTopAnchor;de.isMiddleAnchor=Fc.isMiddleAnchor;de.isBottomAnchor=Fc.isBottomAnchor;var Oc=pD();de.segmentsIntersect=Oc.segmentsIntersect;de.segmentDistance=Oc.segmentDistance;de.getTextLocation=Oc.getTextLocation;de.clearLocationCache=Oc.clearLocationCache;de.getVisibleSegment=Oc.getVisibleSegment;de.findPointOnPath=Oc.findPointOnPath;var km=Mt();de.extendFlat=km.extendFlat;de.extendDeep=km.extendDeep;de.extendDeepAll=km.extendDeepAll;de.extendDeepNoArrays=km.extendDeepNoArrays;var Z_=ps();de.log=Z_.log;de.warn=Z_.warn;de.error=Z_.error;var Bye=(Cc(),un(Lc));de.counterRegex=Bye.counter;var $_=_m();de.throttle=$_.throttle;de.throttleDone=$_.done;de.clearThrottle=$_.clear;var Mo=dh();de.getGraphDiv=Mo.getGraphDiv;de.isPlotDiv=Mo.isPlotDiv;de.removeElement=Mo.removeElement;de.addStyleRule=Mo.addStyleRule;de.addRelatedStyleRule=Mo.addRelatedStyleRule;de.deleteRelatedStyleRule=Mo.deleteRelatedStyleRule;de.setStyleOnHover=Mo.setStyleOnHover;de.getFullTransformMatrix=Mo.getFullTransformMatrix;de.getElementTransformMatrix=Mo.getElementTransformMatrix;de.getElementAndAncestors=Mo.getElementAndAncestors;de.equalDomRects=Mo.equalDomRects;de.clearResponsive=gD();de.preserveDrawingBuffer=_D();de.makeTraceGroups=TD();de._=AD();de.notifier=x_();de.filterUnique=SD();de.filterVisible=LD();de.pushUnique=L_();de.increment=ED();de.cleanNumber=(zD(),un(RD)).default;de.slugify=FD();de.ensureNumber=function(r){return YD(r)?(r=Number(r),r>jD||r<Oye?OD:r):OD};de.isIndex=function(e,r){return r!==void 0&&e>=r?!1:YD(e)&&e>=0&&e%1===0};de.noop=sm();de.identity=F_();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 XD(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]=XD(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=XD;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 Hye=/Version\/[\d\.]+.*Safari/;de.isSafari=function(){return Hye.test(window.navigator.userAgent)};var Uye=/iPad|iPhone|iPod/;de.isIOS=function(){return Uye.test(window.navigator.userAgent)};var Gye=/Macintosh.+AppleWebKit.+Gecko\)$/;de.isMacWKWebView=()=>Gye.test(window.navigator.userAgent);var Yye=/Firefox\/(\d+)\.\d+/;de.getFirefoxVersion=function(){var e=Yye.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 _h.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 Vye=/^([^\[\.]+)\.(.+)?/,jye=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Mm(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(Vye)){if(n=e[t],a=r[1],Mm(a))continue;delete e[t],e[a]=de.extendDeepNoArrays(e[a]||{},de.objectFromPath(t,de.expandObjectPaths(n))[a])}else if(r=t.match(jye)){if(n=e[t],a=r[1],Mm(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(Mm(a))continue;e[a][i]=de.expandObjectPaths(n)}}else{if(Mm(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 ZD=/^\w*$/;de.templateString=function(e,r){var t={};return e.replace(de.TEMPLATE_STRING_REGEX,function(a,n){var i;return ZD.test(n)?i=r[n]:(t[n]=t[n]||de.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Wye={max:10,count:0,name:"hovertemplate"};de.hovertemplateString=e=>J_(Ut(wt({},e),{opts:Wye}));var Xye={max:10,count:0,name:"texttemplate"};de.texttemplateString=e=>J_(Ut(wt({},e),{opts:Xye}));var Zye=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function $ye(e){var r=e.match(Zye);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Jye={max:10,count:0,name:"texttemplate",parseMultDiv:!0};de.texttemplateStringForShapes=e=>J_(Ut(wt({},e),{opts:Jye}));var HD=/^[:|\|]/;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,m=null;if(n.parseMultDiv){var y=$ye(l);l=y.key,p=y.op,m=y.number}let x;if(d){if(a[l]===void 0)return"";x=a[l]}else for(let _ of e)if(_){if(_.hasOwnProperty(l)){x=_[l];break}if(ZD.test(l)||(x=de.nestedProperty(_,l).get(!0)),x!==void 0)break}if(x===void 0){let{count:_,max:k,name:M}=n,q=t===!1?o:t;return _<k&&de.warn([`Variable '${l}' in ${M} could not be found!`,"Please verify that the template is correct.",`Using value: '${q}'.`].join(" ")),_===k&&de.warn(`Too many '${M}' warnings - additional warnings will be suppressed.`),n.count++,q}if(p==="*"&&(x*=m),p==="/"&&(x/=m),s){var T;if(s[0]===":"&&(T=r?r.numberFormat:de.numberFormat,x!==""&&(x=T(s.replace(HD,""))(x))),s[0]==="|"){T=r?r.timeFormat:Iye;var w=de.dateTime2ms(x);x=de.formatDate(w,s.replace(HD,""),!1,T)}}else{var b=l+"Label";a.hasOwnProperty(b)&&(x=a[b])}return d&&(x="("+x+")",(f||c)&&(x=" "+x),(v||c)&&(x=x+" ")),x})}var Am=48,UD=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>=Am&&o<=UD,u=l>=Am&&l<=UD;if(s&&(a=10*a+o-Am),u&&(n=10*n+l-Am),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Ic=2e9;de.seedPseudoRandom=function(){Ic=2e9};de.pseudoRandom=function(){var e=Ic;return Ic=(69069*Ic+1)%4294967296,Math.abs(Ic-e)<429496729?de.pseudoRandom():Ic/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 GD=de.getFirefoxVersion(),Kye=GD!==null&&GD<86;de.getPositionFromD3Event=function(){return Kye?[_h.event.layerX,_h.event.layerY]:[_h.event.offsetX,_h.event.offsetY]}});var QD=N(()=>{"use strict";var Qye=ke(),JD={"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 JD)KD=K_.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Qye.addStyleRule(KD,JD[K_]);var KD,K_});var Q_=N((SGe,eP)=>{eP.exports=!0});var r4=N((qGe,rP)=>{"use strict";var ege=Q_(),e4;typeof window.matchMedia=="function"?e4=!window.matchMedia("(hover: none)").matches:e4=ege;rP.exports=e4});var Ou=N((LGe,t4)=>{"use strict";var Bc=typeof Reflect=="object"?Reflect:null,tP=Bc&&typeof Bc.apply=="function"?Bc.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Sm;Bc&&typeof Bc.ownKeys=="function"?Sm=Bc.ownKeys:Object.getOwnPropertySymbols?Sm=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Sm=function(r){return Object.getOwnPropertyNames(r)};function rge(e){console&&console.warn&&console.warn(e)}var nP=Number.isNaN||function(r){return r!==r};function It(){It.init.call(this)}t4.exports=It;t4.exports.once=ige;It.EventEmitter=It;It.prototype._events=void 0;It.prototype._eventsCount=0;It.prototype._maxListeners=void 0;var aP=10;function qm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(It,"defaultMaxListeners",{enumerable:!0,get:function(){return aP},set:function(e){if(typeof e!="number"||e<0||nP(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");aP=e}});It.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};It.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||nP(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 iP(e){return e._maxListeners===void 0?It.defaultMaxListeners:e._maxListeners}It.prototype.getMaxListeners=function(){return iP(this)};It.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")tP(s,this,t);else for(var u=s.length,f=fP(s,u),a=0;a<u;++a)tP(f[a],this,t);return!0};function oP(e,r,t,a){var n,i,o;if(qm(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=iP(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,rge(l)}return e}It.prototype.addListener=function(r,t){return oP(this,r,t,!1)};It.prototype.on=It.prototype.addListener;It.prototype.prependListener=function(r,t){return oP(this,r,t,!0)};function tge(){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 lP(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=tge.bind(a);return n.listener=t,a.wrapFn=n,n}It.prototype.once=function(r,t){return qm(t),this.on(r,lP(this,r,t)),this};It.prototype.prependOnceListener=function(r,t){return qm(t),this.prependListener(r,lP(this,r,t)),this};It.prototype.removeListener=function(r,t){var a,n,i,o,l;if(qm(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():age(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};It.prototype.off=It.prototype.removeListener;It.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 sP(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?nge(n):fP(n,n.length)}It.prototype.listeners=function(r){return sP(this,r,!0)};It.prototype.rawListeners=function(r){return sP(this,r,!1)};It.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):uP.call(e,r)};It.prototype.listenerCount=uP;function uP(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}It.prototype.eventNames=function(){return this._eventsCount>0?Sm(this._events):[]};function fP(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function age(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function nge(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function ige(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))}cP(e,r,i,{once:!0}),r!=="error"&&oge(e,n,{once:!0})})}function oge(e,r,t){typeof e.on=="function"&&cP(e,"error",r,t)}function cP(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 wh=N((CGe,vP)=>{"use strict";var a4=Ou().EventEmitter,lge={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}};vP.exports=lge});var pP=N((EGe,dP)=>{"use strict";var hP=ke(),sge=ds().dfltConfig;function uge(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)?hP.extendDeep([],a):hP.extendDeepAll({},a):t[n]=a;return t}var Il={};Il.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>sge.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Il.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Il.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Il.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++)Il.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};Il.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++)Il.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};Il.plotDo=function(e,r,t){e.autoplay=!0,t=uge(e,t),r.apply(null,t)};dP.exports=Il});var n4=N((DGe,mP)=>{"use strict";mP.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Gc=N(Sa=>{"use strict";var Ri=Tr(),Th=ke(),Cm=Nn(),i4=Pc(),fge=n4(),cge=ph(),vge=ds().configAttributes,yP=wo(),Ao=Th.extendDeepAll,Hc=Th.isPlainObject,hge=Th.isArrayOrTypedArray,Em=Th.nestedProperty,dge=Th.valObjectMeta,o4="_isSubplotObj",Dm="_isLinkedToArray",pge="_arrayAttrRegexps",bP="_deprecated",l4=[o4,Dm,pge,bP];Sa.IS_SUBPLOT_OBJ=o4;Sa.IS_LINKED_TO_ARRAY=Dm;Sa.DEPRECATED=bP;Sa.UNDERSCORE_ATTRS=l4;Sa.get=function(){var e={};return Ri.allTypes.forEach(function(r){e[r]=yge(r)}),{defs:{valObjects:dge,metaKeys:l4.concat(["description","role","editType","impliedEdits"]),editType:{traces:yP.traces,layout:yP.layout},impliedEdits:{}},traces:e,layout:gge(),frames:bge(),animation:Uc(cge),config:Uc(vge)}};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)&&Hc(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)hge(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d<c.length;d++)Hc(c[d])&&l(c[d],u+1,v+"["+d+"].")}else Hc(c)&&l(c,u+1,v+".")}return n=e,i="",Sa.crawl(Cm,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=(Ri.modules[e.type||Cm.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=Cm[t]),xP(i,r,a)};Sa.getLayoutValObject=function(e,r){var t=mge(e,r[0]);return xP(t,r,1)};function mge(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 Ri.componentsRegistry){if(n=Ri.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 xP(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(Lm(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(Hc(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!Lm(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!Lm(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(!Lm(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Lm(e){return e===Math.round(e)&&e>=0}function yge(e){var r,t;r=Ri.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Ao({},Cm),i=Ao({},r.attributes);Sa.crawl(i,function(s,u,f,c,v){Em(n,v).set(void 0),s===void 0&&Em(i,v).set(void 0)}),Ao(a,n),Ri.traceIs(e,"noOpacity")&&delete a.opacity,Ri.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Ri.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Ao(a,i),t.attributes&&Ao(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Uc(a)};if(r.layoutAttributes){var l={};Ao(l,r.layoutAttributes),o.layoutAttributes=Uc(l)}return r.animatable||Sa.crawl(o,function(s){Sa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function gge(){var e={},r,t;Ao(e,i4);for(r in Ri.subplotsRegistry)if(t=Ri.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)gP(e,t,t.attr[a]);else{var n=t.attr==="subplot"?t.name:t.attr;gP(e,t,n)}for(r in Ri.componentsRegistry){t=Ri.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"?Ao(e,t.layoutAttributes):t.layoutAttributes&&Tge(e,t.layoutAttributes,t.name)}return{layoutAttributes:Uc(e)}}function bge(){var e={frames:Ao({},fge)};return Uc(e),e.frames}function Uc(e){return xge(e),_ge(e),wge(e),e}function xge(e){function r(t,a,n){!Sa.isValObject(t)&&Hc(t)&&(t.role="object")}Sa.crawl(e,r)}function _ge(e){function r(t,a,n){if(t){var i=t[Dm];i&&(delete t[Dm],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}Sa.crawl(e,r)}function wge(e){function r(t){for(var a in t)if(Hc(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 gP(e,r,t){var a=Em(e,t),n=Ao({},r.layoutAttributes);n[o4]=!0,a.set(n)}function Tge(e,r,t){var a=Em(e,t);a.set(Ao(a.get()||{},r))}});var St=N(Bu=>{"use strict";var Yc=ke(),Mge=Nn(),As="templateitemname",s4={name:{valType:"string",editType:"none"}};s4[As]={valType:"string",editType:"calc"};Bu.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=s4.name,r[As]=s4[As],r};Bu.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=Yc.coerce(i,{},Mge,"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}};Bu.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Yc.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Bu.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[wP(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[As]=u[As];if(!_P(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(_P(v)&&!o[v]){var d={_template:c,name:v,_input:{_templateitemname:v}};d[As]=c[As],u.push(d),o[v]=1}}return u}return{newItem:l,defaultItems:s}};function _P(e){return e&&typeof e=="string"}function wP(e){var r=e.length-1;return e.charAt(r)!=="s"&&Yc.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}Bu.arrayDefaultKey=wP;Bu.arrayEditor=function(e,r,t){var a=(Yc.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][As]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Yc.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var m=c();for(var y in m)Yc.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var qa=N((zGe,TP)=>{"use strict";var Mh=(Cc(),un(Lc)).counter;TP.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=N(Zn=>{"use strict";var Age=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(Age.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=N((IGe,AP)=>{"use strict";function kge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Sge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}AP.exports={clearOutlineControllers:kge,clearOutline:Sge}});var Pm=N((FGe,kP)=>{"use strict";kP.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Nm=N(zm=>{"use strict";var Rm=Tr(),OGe=qa().SUBPLOT_PATTERN;zm.getSubplotCalcData=function(e,r,t){var a=Rm.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};zm.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=Rm.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]};zm.getSubplotData=function(r,t,a){if(!Rm.subplotsRegistry[t])return[];for(var n=Rm.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 CP=N(Hu=>{"use strict";var qge=Tr(),Vc=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){SP(e,o,n.cache),n.check=function(){if(i){var f=SP(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 Vc.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 SP(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=Vc.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=qge.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 Vc.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=LP(e,t);break;case"relayout":a=qP(e,t);break;case"update":a=LP(e,[t[0],t[2]]).concat(qP(e,[t[1]]));break;case"animate":a=Lge(e,t);break;default:a=[]}return a};function Lge(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 qP(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if(Vc.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 LP(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(Vc.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 m=0;m<f.length;m++)c[m]=p}c.length=Math.min(f.length,c.length)}o.push({type:"data",prop:l,traces:f,value:c})},"",0),o}function f4(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var o=t+(a>0?".":"")+n;Vc.isPlainObject(i)?f4(i,r,o,a+1):r(o,n,i)}})}});var va=N((GGe,BP)=>{"use strict";var UGe=Dr(),Cge=pc().timeFormatLocale,Ege=Y5().formatLocale,Ah=Fr(),Dge=V5(),Pge=V0().version,Qr=Tr(),Rge=Gc(),zge=St(),gr=ke(),Nge=Sr(),EP=Gt().BADNUM,$n=ba(),Ige=ks().clearOutline,Fge=Pm(),c4=ph(),Oge=n4(),Bge=Nm().getModuleCalcData,DP=gr.relinkPrivateKeys,Uu=gr._,er=BP.exports={};gr.extendFlat(er,Qr);er.attributes=Nn();er.attributes.type.values=er.allTypes;er.fontAttrs=ka();er.layoutAttributes=Pc();var Fm=CP();er.executeAPICommand=Fm.executeAPICommand;er.computeAPICommandBindings=Fm.computeAPICommandBindings;er.manageCommandObserver=Fm.manageCommandObserver;er.hasSimpleAPICommandBindings=Fm.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=Pge;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 Hge=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Uge=["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=PP(e,Hge);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 m=!i.width||!i.height,y=n.autosize,x=f.autosizable,T=m&&(y||x);T?er.plotAutoSize(e,i,n):m&&er.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=Vge(v,n.separators),n._extraFormat=PP(e,Uge),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=Yge(),b=n._splomAxes={x:{},y:{}},_=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Gge(o,s),er.supplyDataDefaults(s,l,i,n);var k=Object.keys(b.x),M=Object.keys(b.y);if(k.length>1&&M.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<M.length;c++)gr.pushUnique(w.yaxis,M[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++)DP(l[c],o[c]);er.supplyLayoutModuleDefaults(i,n,l,e._transitionData);var C=n._visibleModules,D=[];for(c=0;c<C.length;c++){var P=C[c].crossTraceDefaults;P&&gr.pushUnique(D,P)}for(c=0;c<D.length;c++)D[c](l,n);n._hasOnlyLargeSploms=n._basePlotModules.length===1&&n._basePlotModules[0].name==="splom"&&k.length>15&&M.length>15&&n.shapes.length===0&&n.images.length===0,er.linkSubplots(l,n,o,a),er.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),F=R,B=I;F&&!B?a._bgLayer.remove():B&&!F&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Ige({_fullLayout:a}),jge(l,n),DP(n,a),Qr.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var U=n._tracePreGUI,G={},V;for(V in U)G[V]="old";for(c=0;c<l.length;c++)V=l[c].uid,G[V]||(U[V]={}),G[V]="new";for(V in G)G[V]==="old"&&delete U[V];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 Gge(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 Yge(){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 PP(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 Vge(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=Ege(e).format(gr.adjustFormat(t))}catch(a){return gr.warnBadFormat(t),gr.noFormat}return t},timeFormat:Cge(e).utcFormat}}function jge(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"),m;for(v?m=l[c]=v:(m=l[c]={},m.id=c),d._counterAxes.push(p._id),p._counterAxes.push(d._id),d._subplotsWith.push(c),p._subplotsWith.push(c),m.xaxis=d,m.yaxis=p,m._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var y=e[i];if(y.xaxis===m.xaxis._id&&y.yaxis===m.yaxis._id&&y.cliponaxis===!1){m._hasClipOnAxisFalse=!0;break}}}var x=$n.list(u,null,!0),T;for(n=0;n<x.length;n++){T=x[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<x.length;n++)if(T=x[n],T._counterAxes.sort($n.idSort),T._subplotsWith.sort(gr.subplotSort),T._mainSubplot=Wge(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 b=1,_=0;for(i=0;i<T._counterAxes.length;i++){var k=$n.getFromId(u,T._counterAxes[i]);b=Math.min(b,k.domain[0]),_=Math.max(_,k.domain[1])}b<_&&(T._counterDomainMin=b,T._counterDomainMax=_)}};function Wge(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=[],m=(t.template||{}).data||{},y=zge.traceTemplater(m);for(u=0;u<e.length;u++)c=e[u],f=y.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 x=d[f.carpet];if(f._carpet=x,!x||!x.visible){f.visible=!1;continue}f.xaxis=x.xaxis,f.yaxis=x.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,Oge,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||Nge.defaults,o=i[t%i.length],l;function s(w,b){return gr.coerce(e,r,er.attributes,w,b)}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,m="";if(Array.isArray(v))for(l=0;l<v.length;l++){var y=v[l],x=gr.coerce(e,r,d,y);p[y]&&gr.pushUnique(p[y],x),m+=x}else m=gr.coerce(e,r,d,v);p[c.name]&&gr.pushUnique(p[c.name],m)}}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,Fge,"scattermode")};function Im(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=Im(u.width)||Im(u.maxWidth)||a.width,l=Im(u.height)||Im(u.maxHeight)||a.height,Ah(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,FP=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,FP,s),c=Math.max(0,n-u),v=Math.max(0,i-f),d=a._pushmargin,p=a._pushmarginIds;if(o.autoexpand!==!1){if(!t)delete d[r],delete p[r];else{var m=t.pad;if(m===void 0&&(m=Math.min(12,o.l,o.r,o.t,o.b)),c){var y=(t.l+t.r)/c;y>1&&(t.l/=y,t.r/=y)}if(v){var x=(t.t+t.b)/v;x>1&&(t.t/=x,t.b/=x)}var T=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,_=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+m},r:{val:w,size:t.r+m},b:{val:_,size:t.b+m},t:{val:b,size:t.t+m}},p[r]=1}if(!a._replotting)return er.doAutoMargin(e)}};function Xge(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,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in v)d[y]||delete v[y];var x=e._fullLayout._reservedMargin;for(var T in x)for(var w in x[T]){var b=x[T][w];o[w]=Math.max(o[w],b)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var _ in o){var k=0;for(var M in v)M!=="base"&&Ah(v[M][_].size)&&(k=v[M][_].size>k?v[M][_].size:k);var q=Math.max(0,i[_]-k);o[_]=Math.max(0,o[_]-q)}for(var C in v){var D=v[C].l||{},P=v[C].b||{},R=D.val,I=D.size,F=P.val,B=P.size,U=t-o.r-o.l,G=a-o.t-o.b;for(var V in v){if(Ah(I)&&v[V].r){var Y=v[V].r.val,X=v[V].r.size;if(Y>R){var j=(I*Y+(X-U)*R)/(Y-R),J=(X*(1-R)+(I-U)*(1-Y))/(Y-R);j+J>s+u&&(s=j,u=J)}}if(Ah(B)&&v[V].t){var ae=v[V].t.val,te=v[V].t.size;if(ae>F){var se=(B*ae+(te-G)*F)/(ae-F),$=(te*(1-F)+(B-G)*(1-ae))/(ae-F);se+$>c+f&&(c=se,f=$)}}}}}var fe=gr.constrain(t-i.l-i.r,IP,p),oe=gr.constrain(a-i.t-i.b,FP,m),ue=Math.max(0,t-fe),ce=Math.max(0,a-oe);if(ue){var ie=(s+u)/ue;ie>1&&(s/=ie,u/=ie)}if(ce){var ge=(c+f)/ce;ge>1&&(c/=ge,f/=ge)}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)||Xge(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Ce=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<Ce)return Qr.call("_doPlot",e);r._size=l,gr.warn("Too many auto-margin redraws.")}Zge(e)};function Zge(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 RP=["l","r","t","b","p","w","h"];er.didMarginChange=function(e,r){for(var t=0;t<RP.length;t++){var a=RP[t],n=e[a],i=r[a];if(!Ah(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(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof c[x]=="function"){v&&(d[x]="_function");return}d[x]=s(c[x],v)}}),d}var p=Array.isArray(c),m=gr.isTypedArray(c);if((p||m)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:gr.isArrayBuffer(y)?Dge.encode(y):y},v)}return p?c.map(function(x){return s(x,v)}):m?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 m=p.basePlotModule.name;l[m]||(l[m]=[]),l[m].push(v)}e.data[f[c]]=er.extendTrace(e.data[f[c]],r[c])}}var y=gr.expandObjectPaths(gr.extendDeepNoArrays({},t)),x=/^[xy]axis[0-9]*$/;for(var T in y)x.test(T)&&delete y[T].range;er.extendLayout(e.layout,y),delete e.calcdata,er.supplyDefaults(e),er.doCalcdata(e);var w=gr.expandObjectPaths(t);if(w){var b=e._fullLayout._plots;for(var _ in b){var k=b[_],M=k.xaxis,q=k.yaxis,C=M.range.slice(),D=q.range.slice(),P=null,R=null,I=null,F=null;Array.isArray(w[M._name+".range"])?P=w[M._name+".range"].slice():Array.isArray((w[M._name]||{}).range)&&(P=w[M._name].range.slice()),Array.isArray(w[q._name+".range"])?R=w[q._name+".range"].slice():Array.isArray((w[q._name]||{}).range)&&(R=w[q._name].range.slice()),C&&P&&(M.r2l(C[0])!==M.r2l(P[0])||M.r2l(C[1])!==M.r2l(P[1]))&&(I={xr0:C,xr1:P}),D&&R&&(q.r2l(D[0])!==q.r2l(R[0])||q.r2l(D[1])!==q.r2l(R[1]))&&(F={yr0:D,yr1:R}),(I||F)&&s.push(gr.extendFlat({plotinfo:k},I,F))}}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 m=l[p],y=e._fullData[m[0]]._module;y.basePlotModule.plot(e,m,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(),m=c.range.slice(),y=v.range.slice();c.setScale(),v.setScale();var x=null,T=null;(c.r2l(d[0])!==c.r2l(m[0])||c.r2l(d[1])!==c.r2l(m[1]))&&(x={xr0:d,xr1:m}),(v.r2l(p[0])!==v.r2l(y[0])||v.r2l(p[1])!==v.r2l(y[1]))&&(T={yr0:p,yr1:y}),(x||T)&&l.push(gr.extendFlat({plotinfo:f},x,T))}return Promise.resolve()},o.runFn=function(s){for(var u=e._fullData,f=e._fullLayout,c=f._basePlotModules,v,d,p,m=[],y=0;y<u.length;y++)m.push(y);function x(){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=m,d=i,setTimeout(x,i.duration),T()):(v=i,p=null,d=gr.extendFlat({},i,{duration:0}),setTimeout(T,v.duration),x()):l.length?(v=i,x()):r.anim&&(p=m,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=Rge.findArrayAttributes(i),i._extremes={};var f=n._subplots.polar||[];for(l=0;l<f.length;l++)t.push(n[f[l]].radialaxis,n[f[l]].angularaxis);for(var c in n._colorAxes){var v=n[c];v.cauto!==!1&&(delete v.cmin,delete v.cmax)}function d(m,y){if(i=a[m],o=i._module,!!o.isContainer===y){var x=[];i.visible===!0&&i._length!==0&&o&&o.calc&&(x=o.calc(e,i)),(!Array.isArray(x)||!x[0])&&(x=[{x:EP,y:EP}]),x[0].t||(x[0].t={}),x[0].trace=i,s[m]=x}}for(Kge(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=Jge(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 $ge=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function Jge(e,r){var t=[],a,n,i,o,l;function s(V,Y,X){var j=Y._id.charAt(0);if(V==="histogram2dcontour"){var J=Y._counterAxes[0],ae=$n.getFromId(r,J),te=j==="x"||J==="x"&&ae.type==="category",se=j==="y"||J==="y"&&ae.type==="category";return function($,fe){return $===0||fe===0||te&&$===X[fe].length-1||se&&fe===X.length-1?-1:(j==="y"?fe:$)-1}}else return function($,fe){return j==="y"?fe:$}}var u={min:function(V){return gr.aggNums(Math.min,null,V)},max:function(V){return gr.aggNums(Math.max,null,V)},sum:function(V){return gr.aggNums(function(Y,X){return Y+X},null,V)},total:function(V){return gr.aggNums(function(Y,X){return Y+X},null,V)},mean:function(V){return gr.mean(V)},"geometric mean":function(V){return gr.geometricMean(V)},median:function(V){return gr.median(V)}};function f(V,Y){return V[1]-Y[1]}function c(V,Y){return Y[1]-V[1]}for(a=0;a<e.length;a++){var v=e[a];if(v.type==="category"){var d=v.categoryorder.match($ge);if(d){var p=d[1],m=d[2],y=v._id.charAt(0),x=y==="x",T=[];for(n=0;n<v._categories.length;n++)T.push([v._categories[n],[]]);for(n=0;n<v._traceIndices.length;n++){var w=v._traceIndices[n],b=r._fullData[w];if(b.visible===!0){var _=b.type;Qr.traceIs(b,"histogram")&&(delete b._xautoBinFinished,delete b._yautoBinFinished);var k=_==="splom",M=_==="scattergl",q=r.calcdata[w];for(i=0;i<q.length;i++){var C=q[i],D,P;if(k){var R=b._axesDim[v._id];if(!x){var I=b._diag[R][0];I&&(v=r._fullLayout[$n.id2name(I)])}var F=C.trace.dimensions[R].values;for(o=0;o<F.length;o++)for(D=v._categoriesMap[F[o]],l=0;l<C.trace.dimensions.length;l++)if(l!==R){var B=C.trace.dimensions[l];T[D][1].push(B.values[o])}}else if(M){for(o=0;o<C.t.x.length;o++)x?(D=C.t.x[o],P=C.t.y[o]):(D=C.t.y[o],P=C.t.x[o]),T[D][1].push(P);C.t&&C.t._scene&&delete C.t._scene.dirty}else if(C.hasOwnProperty("z")){P=C.z;var U=s(b.type,v,P);for(o=0;o<P.length;o++)for(l=0;l<P[o].length;l++)D=U(l,o),D+1&&T[D][1].push(P[o][l])}else{if(D=C.p,D===void 0&&(D=C[y]),isNaN(D)||D<0)continue;for(P=C.s,P===void 0&&(P=C.v),P===void 0&&(P=x?C.y:C.x),Array.isArray(P)||(P===void 0?P=[]:P=[P]),o=0;o<P.length;o++)T[D][1].push(P[o])}}}}v._categoriesValue=T;var G=[];for(n=0;n<T.length;n++)G.push([T[n][0],u[p](T[n][1])]);G.sort(m==="descending"?c:f),v._categoriesAggregatedValue=G,v._initialCategories=G.map(function(V){return V[0]}),t=t.concat(v.sortByInitialCategories())}}}return t}function Kge(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=Bge(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 Fl=N(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=N((VGe,HP)=>{"use strict";HP.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=N(vi=>{"use strict";var La=Dr(),zi=ke(),Qge=zi.strTranslate,v4=Fl(),e2e=Qa().LINE_SPACING,r2e=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,WP=e=>e?e.match(r2e):null;vi.matchTex=WP;vi.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&WP(a);n&&!i2e()&&(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=p2e(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");o2e(n[2],f,function(v,d,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),s();return}e.style("display","none");var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(m.node()),d&&d.node()&&m.node().insertBefore(d.node().cloneNode(!0),m.node().firstChild);var x=p.width,T=p.height;m.attr({class:o,height:T,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var w=e.node().style.fill||"black",b=m.select("g");b.attr({fill:w,stroke:w});var _=b.node().getBoundingClientRect(),k=_.width,M=_.height;(k>x||M>T)&&(m.style("overflow","hidden"),_=m.node().getBoundingClientRect(),k=_.width,M=_.height);var q=+e.attr("x"),C=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,P=-D/4;o[0]==="y"?y.attr({transform:"rotate("+[-90,q,C]+")"+Qge(-k/2,P-M/2)}):o[0]==="l"?C=P-M/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-M/2),m.attr({x:q,y:C}),t&&t.call(e,y),s(y)})})):l(),e};var t2e=/(<|<|<)/g,a2e=/(>|>|>)/g;function n2e(e){return e.replace(t2e,"\\lt ").replace(a2e,"\\gt ")}var h4=null,XP=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,UP=!1,GP=!1;function i2e(){let e=XP();return e===3||e===4?!0:(e===null?UP||(UP=!0,zi.warn("MathJax is not loaded. Math equations will not be rendered.")):GP||(GP=!0,zi.warn("Unsupported MathJax version:",MathJax.version)),!1)}function o2e(e,r,t){let a=XP();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=n2e(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 ZP={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"},l2e={sub:"0.3em",sup:"-0.6em"},s2e={sub:"-0.21em",sup:"0.42em"},YP="\u200B",VP=["http:","https:","mailto:","",void 0,":"],$P=vi.NEWLINES=/(\r\n?|\n)/g,p4=/(<[^<>]*>)/,m4=/<(\/?)([^ >]*)(\s+(.*))?>/i,u2e=/<br(\s+.*)?>/i;vi.BR_TAG_ALL=/<br(\s+.*)?>/gi;var JP=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,KP=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,QP=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,f2e=/(^|[\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&&Om(a)}var c2e=/(^|;)\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 m=t-u;s&&(s!=="br"||m<=i||p<=i)&&l.pop(),t>i?l.push(c.slice(0,Math.max(0,m-i))+n):l.push(c.slice(0,m));break}s=""}}return l.join("")};var v2e={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},h2e=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Om(e){return e.replace(h2e,function(r,t){var a;return t.charAt(0)==="#"?a=d2e(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=v2e[t],a||r})}vi.convertEntities=Om;function d2e(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 p2e(e,r){r=r.replace($P," ");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*e2e+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var q=1;q<M.length;q++)l(M[q])}function l(k){var M=k.type,q={},C;if(M==="a"){C="a";var D=k.target,P=k.href,R=k.popup;P&&(q={"xlink:xlink:show":D==="_blank"||D.charAt(0)!=="_"?"new":"replace",target:D,"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 I=document.createElementNS(v4.svg,C);if(M==="sup"||M==="sub"){s(n,YP),n.appendChild(I);var F=document.createElementNS(v4.svg,"tspan");s(F,YP),La.select(F).attr("dy",s2e[M]),q.dy=l2e[M],n.appendChild(I),n.appendChild(F)}else n.appendChild(I);La.select(I).attr(q),n=k.node=I,a.push(k)}function s(k,M){k.appendChild(document.createTextNode(M))}function u(k){if(a.length===1){zi.log("Ignoring unexpected end tag </"+k+">.",r);return}var M=a.pop();k!==M.type&&zi.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=u2e.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),m=p&&p[2].toLowerCase(),y=ZP[m];if(m==="br")o();else if(y===void 0)s(n,Om(d));else if(p[1])u(m);else{var x=p[4],T={type:m},w=Yu(x,JP);if(w?(w=w.replace(c2e,"$1 fill:"),y&&(w+=";"+y)):y&&(w=y),w&&(T.style=w),m==="a"){t=!0;var b=Yu(x,KP);if(b){var _=eR(b);_&&(T.href=_,T.target=Yu(x,QP)||"_blank",T.popup=Yu(x,f2e))}}l(T)}}return t}function eR(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 VP.indexOf(n)!==-1&&VP.indexOf(i)!==-1?r:""}vi.sanitizeHTML=function(r){r=r.replace($P," ");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 ZP)if(s[1])n.length&&(a=n.pop());else{var f=s[4],c=Yu(f,JP),v=c?{style:c}:{};if(u==="a"){var d=Yu(f,KP);if(d){var p=eR(d);if(p){v.href=p;var m=Yu(f,QP);m&&(v.target=m)}}}var y=document.createElement(u);a.appendChild(y),La.select(y).attr(v),a=y,n.push(y)}else a.appendChild(document.createTextNode(Om(l)))}var x="innerHTML";return t[x]};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 jP(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(jP(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var m=La.select(this).attr("class"),y;m?y="."+m.split(" ")[0]+"-math-group":y="[class*=-math-group]",y&&La.select(e.node().parentNode).select(y).style({opacity:0});var x=this.textContent;La.select(this).transition().duration(0).remove(),La.select(document).on("mouseup",null),n.edit.call(e,x)}).on("focus",function(){var m=this;t._editing=!0,La.select(document).on("mouseup",function(){if(La.event.target===m)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(jP(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=N((WGe,oR)=>{"use strict";var m2e=Dr(),Sh=Fr(),Bm=ke(),Vu=Sr(),y2e=Ru().isValid;function g2e(e,r,t){var a=r?Bm.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Bm.isArrayOrTypedArray(n)){for(var o=0;o<n.length;o++)if(Sh(n[o])){i=!0;break}}return Bm.isPlainObject(a)&&(i||a.showscale===!0||Sh(a.cmin)&&Sh(a.cmax)||y2e(a.colorscale)||Bm.isPlainObject(a.colorbar))}var rR=["showscale","autocolorscale","colorscale","reversescale","colorbar"],kh=["min","max","mid","auto"];function tR(e){var r=e._colorAx,t=r||e,a={},n,i,o;for(i=0;i<rR.length;i++)o=rR[i],a[o]=t[o];if(r)for(n="c",i=0;i<kh.length;i++)o=kh[i],a[o]=t["c"+o];else{var l;for(i=0;i<kh.length;i++){if(o=kh[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=kh.indexOf(s)!==-1?n+s:s;t[f]=t["_"+f]=u},a}function aR(e){for(var r=tR(e),t=r.min,a=r.max,n=r.reversescale?nR(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 nR(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 iR(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=m2e.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 Sh(c)?l(c):Vu.isValid(c)?c:Vu.defaultLine}:f=function(c){return Sh(c)?Vu.rgbaArrayToString(l(c)):Vu.isValid(c)?c:Vu.defaultLine},f.domain=l.domain,f.range=function(){return a},f}function b2e(e,r){return iR(aR(e),r)}oR.exports={hasColorscale:g2e,extractOpts:tR,extractScale:aR,flipScale:nR,makeColorScaleFunc:iR,makeColorScaleFuncFromTrace:b2e}});var ko=N((XGe,uR)=>{"use strict";var lR=P_(),x2e=lR.FORMAT_LINK,_2e=lR.DATE_FORMAT_LINK;function w2e(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?y4:sR)("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: "+x2e+"."].join(" ")}function sR(e,r){return y4(e,r)+[" And for dates see: "+_2e+".","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(" ")}uR.exports={axisHoverFormat:w2e,descriptionOnlyNumbers:y4,descriptionWithDates:sR}});var Ni=N(($Ge,kR)=>{"use strict";var fR=ka(),jc=Ei(),AR=Di().dash,b4=Mt().extendFlat,cR=St().templatedArray,ZGe=fi().templateFormatStringDescription,vR=ko().descriptionWithDates,T2e=Gt().ONEDAY,Qo=qa(),M2e=Qo.HOUR_PATTERN,A2e=Qo.WEEKDAY_PATTERN,g4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},k2e=b4({},g4,{values:g4.values.slice().concat(["sync"])});function hR(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var dR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},pR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},mR={valType:"data_array",editType:"ticks"},yR={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function gR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function bR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var xR={valType:"color",dflt:jc.defaultLine,editType:"ticks"},_R={valType:"color",dflt:jc.lightLine,editType:"ticks"};function wR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var TR=b4({},AR,{editType:"ticks"}),MR={valType:"boolean",editType:"ticks"};kR.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:jc.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:fR({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:cR("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:[A2e,M2e,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:T2e},editType:"calc"}),tickmode:k2e,nticks:hR(),tick0:dR,dtick:pR,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:mR,ticktext:{valType:"data_array",editType:"ticks"},ticks:yR,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:gR(),tickwidth:bR(),tickcolor:xR,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({},AR,{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:fR({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:vR("tick label")},tickformatstops:cR("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:vR("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:jc.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:MR,gridcolor:_R,gridwidth:wR(),griddash:TR,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:jc.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:jc.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:hR("minor"),tick0:dR,dtick:pR,tickvals:mR,ticks:yR,ticklen:gR("minor"),tickwidth:bR("minor"),tickcolor:xR,gridcolor:_R,gridwidth:wR("minor"),griddash:TR,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 Hm=N((JGe,LR)=>{"use strict";var Ft=Ni(),SR=ka(),qR=Mt().extendFlat,S2e=wo().overrideAll;LR.exports=S2e({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:Ft.linecolor,outlinewidth:Ft.linewidth,bordercolor:Ft.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Ft.minor.tickmode,nticks:Ft.nticks,tick0:Ft.tick0,dtick:Ft.dtick,tickvals:Ft.tickvals,ticktext:Ft.ticktext,ticks:qR({},Ft.ticks,{dflt:""}),ticklabeloverflow:qR({},Ft.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:Ft.ticklen,tickwidth:Ft.tickwidth,tickcolor:Ft.tickcolor,ticklabelstep:Ft.ticklabelstep,showticklabels:Ft.showticklabels,labelalias:Ft.labelalias,tickfont:SR({description:"Sets the color bar's tick label font"}),tickangle:Ft.tickangle,tickformat:Ft.tickformat,tickformatstops:Ft.tickformatstops,tickprefix:Ft.tickprefix,showtickprefix:Ft.showtickprefix,ticksuffix:Ft.ticksuffix,showticksuffix:Ft.showticksuffix,separatethousands:Ft.separatethousands,exponentformat:Ft.exponentformat,minexponent:Ft.minexponent,showexponent:Ft.showexponent,title:{text:{valType:"string"},font:SR({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var el=N((QGe,ER)=>{"use strict";var q2e=Hm(),L2e=(Cc(),un(Lc)).counter,C2e=(U_(),un(H_)).default,CR=Ru().scales,KGe=C2e(CR);function Um(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"?CR[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 "+Um(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",y=a+"mid",x=Um(u+d),T=Um(u+p),w=Um(u+m),b=T+" and "+w,_={};_[p]=_[m]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:_},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:_},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=q2e),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:L2e("coloraxis"),dflt:null,editType:"calc"}),M}});var _4=N((eYe,DR)=>{"use strict";var E2e=Mt().extendFlat,D2e=el(),x4=Ru().scales;DR.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:E2e({_isSubplotObj:!0,editType:"calc"},D2e("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var w4=N((rYe,PR)=>{"use strict";var P2e=ke();PR.exports=function(r){return P2e.isPlainObject(r.colorbar)}});var A4=N(M4=>{"use strict";var T4=Fr(),RR=ke(),zR=Gt(),R2e=zR.ONEDAY,z2e=zR.ONEWEEK;M4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?R2e: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};M4.tick0=function(e,r,t,a){if(r==="date")return RR.cleanDate(e,RR.dateTick0(t,a%z2e===0?1:0));if(!(a==="D1"||a==="D2"))return T4(e)?Number(e):0}});var Gm=N((aYe,IR)=>{"use strict";var NR=A4(),N2e=ke().isArrayOrTypedArray,I2e=Vn().isTypedArraySpec,F2e=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(b){var _=l[b];return I2e(_)&&(_=F2e(_)),_!==void 0?_:(s._template||{})[b]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",y;N2e(d)?y="array":v?y="linear":p&&!m?y="sync":y="auto";var x=a(u+"tickmode",y);if(x==="auto"||x==="sync")a(u+"nticks");else if(x==="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 Ym=N((nYe,OR)=>{"use strict";var k4=ke(),FR=Ni();OR.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?FR.minor:FR,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=N((iYe,BR)=>{"use strict";BR.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=N((oYe,HR)=>{"use strict";var Vm=ke(),O2e=St();HR.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=Vm.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=O2e.arrayTemplater(t,n,i),f,c;for(f=0;f<l.length;f++){var v=l[f];Vm.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(Vm.isArrayOrTypedArray(o)){var p=Math.min(o.length,s.length);for(f=0;f<p;f++)Vm.relinkPrivateKeys(s[f],o[f])}return s}});var jm=N((lYe,GR)=>{"use strict";var q4=ke(),B2e=Sr().contrast,UR=Ni(),H2e=S4(),U2e=So();GR.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");q4.isPlainObject(o)||delete t.labelalias;var l=H2e(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?B2e(i.bgColor):f&&f!==UR.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");U2e(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:G2e}),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 G2e(e,r){function t(n,i){return q4.coerce(e,r,UR.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var Wm=N((sYe,YR)=>{"use strict";var Y2e=S4();YR.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Y2e(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var L4=N((uYe,VR)=>{"use strict";var Ss=ke(),V2e=St(),j2e=Gm(),W2e=Ym(),X2e=jm(),Z2e=Wm(),$2e=Hm();VR.exports=function(r,t,a){var n=V2e.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return Ss.coerce(i,n,$2e,P,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),m=o("xref"),y=p==="paper",x=m==="paper",T,w,b,_="left";c?(b="middle",_=x?"left":"right",T=x?1.02:1,w=.5):(b=y?"bottom":"top",_="center",T=.5,w=y?1.02:1),Ss.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:T}},"x"),Ss.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:w}},"y"),o("xanchor",_),o("xpad"),o("yanchor",b),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"),j2e(i,n,o,"linear");var M=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(q.bgColor="black"),Z2e(i,n,o,"linear",q),X2e(i,n,o,"linear",q),W2e(i,n,o,"linear",q),o("title.text",a._dfltTitle.colorbar);var C=n.showticklabels?n.tickfont:M,D=Ss.extendFlat({},M,{family:C.family,size:Ss.bigFont(C.size)});Ss.coerceFont(o,"title.font",D),o("title.side",c?"top":"right")}});var Ol=N((fYe,XR)=>{"use strict";var jR=Fr(),E4=ke(),J2e=w4(),K2e=L4(),WR=Ru().isValid,Q2e=Tr().traceIs;function C4(e,r){var t=r.slice(0,r.length-1);return r?E4.nestedProperty(e,t).get()||{}:e}XR.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 m=Q2e(t,"contour")&&E4.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(v),y[0]!==m&&(y[0]=!1,E4.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[v]];return}}var x=u[l+"min"],T=u[l+"max"],w=jR(x)&&jR(T)&&x<T,b=n(o+l+"auto",!w);b?n(o+l+"mid"):(n(o+l+"min"),n(o+l+"max"));var _=u.colorscale,k=c.colorscale,M;if(_!==void 0&&(M=!WR(_)),k!==void 0&&(M=!WR(k)),n(o+"autocolorscale",M),n(o+"colorscale"),n(o+"reversescale"),o!=="marker.line."){var q;o&&s&&(q=J2e(u));var C=n(o+"showscale",q);C&&(o&&c&&(f._template=c),K2e(u,f,a))}}});var KR=N((cYe,JR)=>{"use strict";var ZR=ke(),e3e=St(),$R=_4(),r3e=Ol();JR.exports=function(r,t){function a(c,v){return ZR.coerce(r,t,$R,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return ZR.coerce(i,o,$R.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=e3e.newContainer(t,s,"coloraxis"),o._name=s,r3e(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 ez=N((vYe,QR)=>{"use strict";var t3e=ke(),a3e=hi().hasColorscale,n3e=hi().extractOpts;QR.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?t3e.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=n3e(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);a3e(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 Wc=N((hYe,tz)=>{"use strict";var rz=Fr(),D4=ke(),i3e=hi().extractOpts;tz.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?D4.nestedProperty(t,o).get():t,s=i3e(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return D4.aggNums(Math.min,null,i)},p=function(){return D4.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&rz(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&rz(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v<v-f&&(c=v+(v-f))),f===c&&(f-=.5,c+=.5),s._sync("min",f),s._sync("max",c),s.autocolorscale){var m;f*c<0?m=n.colorscale.diverging:f>=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var rl=N((dYe,az)=>{"use strict";var Xm=Ru(),Xc=hi();az.exports={moduleType:"component",name:"colorscale",attributes:el(),layoutAttributes:_4(),supplyLayoutDefaults:KR(),handleDefaults:Ol(),crossTraceDefaults:ez(),calc:Wc(),scales:Xm.scales,defaultScale:Xm.defaultScale,getScale:Xm.get,isValidScale:Xm.isValid,hasColorscale:Xc.hasColorscale,extractOpts:Xc.extractOpts,extractScale:Xc.extractScale,flipScale:Xc.flipScale,makeColorScaleFunc:Xc.makeColorScaleFunc,makeColorScaleFuncFromTrace:Xc.makeColorScaleFuncFromTrace}});var Jn=N((pYe,iz)=>{"use strict";var nz=ke(),o3e=Vn().isTypedArraySpec;iz.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 nz.isPlainObject(r)&&(nz.isArrayOrTypedArray(r.size)||o3e(r.size))}}});var lz=N((mYe,oz)=>{"use strict";var l3e=Fr();oz.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 l3e(s)&&s>0?Math.max(s,i):0}}});var qo=N(en=>{"use strict";var qh=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&&qh.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=sz(i);if(e[o]===void 0){var l=qh.nestedProperty(r,i).get(),s=uz(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=sz(i);if(e[o]===void 0){for(var l=qh.nestedProperty(r,i).get(),s=new Array(t.length),u=0;u<t.length;u++)s[u]=uz(l,t[u]);e[o]=s}}};var s3e={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function sz(e){return s3e[e]||e}function uz(e,r){if(Array.isArray(r)){if(qh.isArrayOrTypedArray(e)&&qh.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var u3e={x:!0,y:!0},f3e={"x unified":!0,"y unified":!0};en.isUnifiedHover=function(e){return typeof e!="string"?!1:!!f3e[e]};en.isXYhover=function(e){return typeof e!="string"?!1:!!u3e[e]}});var R4=N((gYe,fz)=>{var P4={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},c3e=/([astvzqmhlc])([^astvzqmhlc]*)/gi,v3e=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function h3e(e){let r=[];return e.replace(c3e,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=d3e(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 d3e(e){let r=e.match(v3e);return r?r.map(Number):[]}fz.exports=h3e});var yz=N((bYe,mz)=>{"use strict";var p3e=R4(),Ke=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Pr="M0,0Z",cz=Math.sqrt(2),qs=Math.sqrt(3),z4=Math.PI,N4=Math.cos,I4=Math.sin;mz.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?zr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return zr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.3,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*.4,2),n=Ke(e*1.2,2);return zr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*.8/cz,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return zr(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*2/qs,2),n=Ke(e/2,2),i=Ke(e,2);return zr(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 zr(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 zr(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 zr(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 zr(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 zr(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 zr(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 zr(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 zr(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e/2,2),i=Ke(e*qs/2,2);return zr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e/2,2),i=Ke(e*qs/2,2);return zr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*.924,2),n=Ke(e*.383,2);return zr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(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 zr(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*.66,2),n=Ke(e*.38,2),i=Ke(e*.76,2);return zr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(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 zr(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(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 zr(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.1,2),n=Ke(e*2,2),i="A "+n+","+n+" 0 0 1 ";return zr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(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 zr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*.7,2),n=Ke(e*1.4,2);return zr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.4,2),n=Ke(e*.7,2);return zr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return zr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return zr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e/cz,2);return zr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.3,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.3,2),n=Ke(e*.65,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.4,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.2,2),n=Ke(e*.85,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e/2,2),n=Ke(e,2);return zr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.2,2),n=Ke(e*1.6,2),i=Ke(e*.8,2);return zr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.2,2),n=Ke(e*1.6,2),i=Ke(e*.8,2);return zr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.2,2),n=Ke(e*1.6,2),i=Ke(e*.8,2);return zr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.2,2),n=Ke(e*1.6,2),i=Ke(e*.8,2);return zr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.4,2);return zr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*1.4,2);return zr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return zr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e*2,2);return zr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e*2,2);return zr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*2,2),n=Ke(e,2);return zr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*2,2),n=Ke(e,2);return zr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e*2,2);return zr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e,2),n=Ke(e*2,2);return zr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*2,2),n=Ke(e,2);return zr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Rr(r))return Pr;var a=Ke(e*2,2),n=Ke(e,2);return zr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Rr(r))return Pr;var a=z4/2.5,n=2*e*N4(a),i=2*e*I4(a);return zr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Rr(r))return Pr;var a=z4/4,n=2*e*N4(a),i=2*e*I4(a);return zr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Rr(e){return e===null}var vz,hz,dz,pz;function zr(e,r,t){if((!e||e%360===0)&&!r)return t;if(dz===e&&pz===r&&vz===t)return hz;dz=e,pz=r,vz=t;function a(y,x){var T=N4(y),w=I4(y),b=x[0],_=x[1]+(r||0);return[b*T-_*w,b*w+_*T]}for(var n=e/180*z4,i=0,o=0,l=p3e(t),s="",u=0;u<l.length;u++){var f=l[u],c=f[0],v=i,d=o;if(c==="M"||c==="L")i=+f[1],o=+f[2];else if(c==="m"||c==="l")i+=+f[1],o+=+f[2];else if(c==="H")i=+f[1];else if(c==="h")i+=+f[1];else if(c==="V")o=+f[1];else if(c==="v")o+=+f[1];else if(c==="A"){i=+f[1],o=+f[2];var p=a(n,[+f[6],+f[7]]);f[6]=p[0],f[7]=p[1],f[3]=+f[3]+e}(c==="H"||c==="V")&&(c="L"),(c==="h"||c==="v")&&(c="l"),(c==="m"||c==="l")&&(i-=v,o-=d);var m=a(n,[i,o]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=m[0],f[2]=m[1]),f[0]=c,s+=f[0]+f.slice(1).join(",")}return hz=s,s}});var Xr=N((xYe,Iz)=>{"use strict";var za=Dr(),bt=ke(),m3e=bt.numberFormat,Ls=Fr(),$m=Tr(),Ea=Sr(),y3e=rl(),Ch=bt.strTranslate,Jm=Ca(),g3e=Fl(),b3e=Qa(),x3e=b3e.LINE_SPACING,Sz=om().DESELECTDIM,_3e=Jn(),w3e=lz(),T3e=qo().appendArrayPointValue,rr=Iz.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(Ea.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",F4(A3e(f))),s&&e.style("text-shadow",s==="auto"?Jm.makeTextShadow(Ea.contrast(i)):F4(s)),u&&e.style("text-decoration-line",F4(k3e(u)))};function F4(e){return e==="none"?void 0:e}var M3e={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function A3e(e){return M3e[e]}function k3e(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",Ch(n,i));else return!1;return!0};rr.translatePoints=function(e,r,t){e.each(function(a){var n=za.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=$m.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){rr.hideOutsideRangePoint(u,za.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||"";Ea.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||"";za.select(this).call(Ea.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 qz(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,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,x;p==="horizontal"?(y={x:i.start,y:0},x={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},x={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(Ez,t,m,"linear",i.colorscale,"fill",y,x,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(rr.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Ea.fill,r.fillcolor)}rr.singleFillStyle=function(e,r){var t=za.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};qz(e,n,r,!1)};rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=za.select(this);a[0].trace&&qz(n,a[0].trace,r,t)})};var gz=yz();rr.symbolNames=[];rr.symbolFuncs=[];rr.symbolBackOffs=[];rr.symbolNeedLines={};rr.symbolNoDot={};rr.symbolNoFill={};rr.symbolList=[];Object.keys(gz).forEach(function(e){var r=gz[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 S3e=rr.symbolNames.length,q3e="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>=S3e||e>=400?0:Math.floor(Math.max(e,0))};function Lz(e,r,t,a){var n=e%100;return rr.symbolFuncs[n](r,t,a)+(e>=200?q3e:"")}var bz=m3e("~f"),Cz={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=Cz[a];return Ez(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function Ez(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]=[bz((1-n[d][0])*100),n[d][1]]:v[d]=[bz(n[d][0]*100),n[d][1]];var p=r._fullLayout,m="g"+p._uid+"-"+t,y=p._defs.select(".gradients").selectAll("#"+m).data([a+v.join(";")],bt.identity);y.exit().remove(),y.enter().append(c.node).each(function(){var x=za.select(this);c.attrs&&x.attr(c.attrs),x.attr("id",m);var T=x.selectAll("stop").data(v);T.exit().remove(),T.enter().append("stop"),T.each(function(w){za.select(this).attr({offset:w[0]+"%","stop-color":Ea.rgb(w[1]),"stop-opacity":Ea.parse(w[1]).alpha})})}),e.style(i,G4(m,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=Ea.contrast(u)):(u=void 0,f=l));var d=t._fullLayout,p="p"+d._uid+"-"+a,m,y,x=function(R,I,F,B,U){return B+(U-B)*(R-I)/(F-I)},T,w,b,_,k={},M=Ea.rgb(f),q=Ea.parse(f).alpha,C=c*q;switch(n){case"/":m=i*Math.sqrt(2),y=i*Math.sqrt(2),T="M-"+m/4+","+y/4+"l"+m/2+",-"+y/2+"M0,"+y+"L"+m+",0M"+m/4*3+","+y/4*5+"l"+m/2+",-"+y/2,w=o*i,_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case"\\":m=i*Math.sqrt(2),y=i*Math.sqrt(2),T="M"+m/4*3+",-"+y/4+"l"+m/2+","+y/2+"M0,0L"+m+","+y+"M-"+m/4+","+y/4*3+"l"+m/2+","+y/2,w=o*i,_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case"x":m=i*Math.sqrt(2),y=i*Math.sqrt(2),T="M-"+m/4+","+y/4+"l"+m/2+",-"+y/2+"M0,"+y+"L"+m+",0M"+m/4*3+","+y/4*5+"l"+m/2+",-"+y/2+"M"+m/4*3+",-"+y/4+"l"+m/2+","+y/2+"M0,0L"+m+","+y+"M-"+m/4+","+y/4*3+"l"+m/2+","+y/2,w=i-i*Math.sqrt(1-o),_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case"|":m=i,y=i,_="path",T="M"+m/2+",0L"+m/2+","+y,w=o*i,_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case"-":m=i,y=i,_="path",T="M0,"+y/2+"L"+m+","+y/2,w=o*i,_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case"+":m=i,y=i,_="path",T="M"+m/2+",0L"+m/2+","+y+"M0,"+y/2+"L"+m+","+y/2,w=i-i*Math.sqrt(1-o),_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case".":m=i,y=i,o<Math.PI/4?b=Math.sqrt(o*i*i/Math.PI):b=x(o,Math.PI/4,1,i/2,i/Math.sqrt(2)),_="circle",k={cx:m/2,cy:y/2,r:b,opacity:C,fill:M};break;default:m=i,y=i,_="path",k={d:n,opacity:C,fill:M};break}var D=[n||"noSh",u||"noBg",f||"noFg",i,o].join(";"),P=d._defs.select(".patterns").selectAll("#"+p).data([D],bt.identity);P.exit().remove(),P.enter().append("pattern").each(function(){var R=za.select(this);if(R.attr({id:p,width:m+"px",height:y+"px",patternUnits:"userSpaceOnUse",patternTransform:v?"scale(0.8)":""}),u){var I=Ea.rgb(u),F=Ea.parse(u).alpha,B=R.selectAll("rect").data([0]);B.exit().remove(),B.enter().append("rect").attr({width:m+"px",height:y+"px",fill:I,"fill-opacity":F})}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(),za.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(),za.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,za.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",Lz(u,s,f,c))}var v=!1,d,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):bt.isArrayOrTypedArray(l.color)?p=Ea.defaultLine:p=l.color,bt.isArrayOrTypedArray(o.color)&&(d=Ea.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 x=e.mld||(l||{}).dash;if(x&&rr.dashLine(r,x,m),e.om)r.call(Ea.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var T=o.gradient,w=e.mgt;w?v=!0:w=T&&T.type,bt.isArrayOrTypedArray(w)&&(w=w[0],Cz[w]||(w=0));var b=o.pattern,_=rr.getPatternAttr,k=b&&(_(b.shape,e.i,"")||_(b.path,e.i,""));if(w&&w!=="none"){var M=e.mgc;M?v=!0:M=T.color;var q=t.uid;v&&(q+="-"+e.i),rr.gradient(r,n,q,w,[[0,M],[1,d]],"fill")}else if(k){var C=!1,D=b.fgcolor;!D&&i&&i.color&&(D=i.color,C=!0);var P=_(D,e.i,i&&i.color||null),R=_(b.bgcolor,e.i,null),I=b.fgopacity,F=_(b.size,e.i,8),B=_(b.solidity,e.i,.3);C=C||e.mcc||bt.isArrayOrTypedArray(b.shape)||bt.isArrayOrTypedArray(b.path)||bt.isArrayOrTypedArray(b.bgcolor)||bt.isArrayOrTypedArray(b.fgcolor)||bt.isArrayOrTypedArray(b.size)||bt.isArrayOrTypedArray(b.solidity);var U=t.uid;C&&(U+="-"+e.i),rr.pattern(r,"point",n,U,k,F,B,e.mcc,b.fillmode,R,P,I)}else bt.isArrayOrTypedArray(d)?Ea.fill(r,d[e.i]):Ea.fill(r,d);m&&Ea.stroke(r,p)}};rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=rr.tryColorscale(t,""),r.lineScale=rr.tryColorscale(t,"line"),$m.traceIs(e,"symbols")&&(r.ms2mrc=_3e.isBubble(e)?w3e(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(b){var _=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:_:c?u:Sz*_});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(b){var _=b.mcc||v;return b.selected?d||_:p||_});var m=n.size,y=i.size,x=o.size,T=y!==void 0,w=x!==void 0;return $m.traceIs(e,"symbols")&&(T||w)&&(r.selectedSizeFn=function(b){var _=b.mrc||m/2;return b.selected?T?y/2:_:w?x/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:Ea.addOpacity(c,Sz))},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){Ea.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",Lz(rr.symbolNumber(l),s,V4(o,r),Y4(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=za.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 y3e.makeColorScaleFuncFromTrace(t)}return bt.identity};var O4={start:1,end:-1,middle:0,bottom:1,top:-1};function Dz(e,r,t,a,n){var i=za.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=(Jm.lineCount(e)-1)*x3e+1,f=O4[l]*s,c=t*.75+O4[o]*s+(O4[o]-1)*u*t/2;e.attr("text-anchor",l),n||i.attr("transform",Ch(f,c))}function Pz(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=za.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={};T3e(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=Pz(l,r),m=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:m}).text(u).call(Jm.convertToTspans,t).call(Dz,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=za.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=Pz(a,r);Ea.fill(n,i);var s=$m.traceIs(r,"bar-like");Dz(n,o,l,a.mrc2||a.mrc,s)})}};var xz=.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(Zm(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=[Zm(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push(Zm(e[i-1],e[i],e[i+1],r));for(n.push(Zm(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 Rz,zz;function Zc(e,r,t){return t&&(e=Nz(e)),r?Xu(e[1]):Wu(e[0])}function Wu(e){var r=za.round(e,2);return Rz=r,r}function Xu(e){var r=za.round(e,2);return zz=r,r}function Zm(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,xz/2),u=Math.pow(o*o+l*l,xz/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 L3e={hv:function(e,r,t){return"H"+Wu(r[0])+"V"+Zc(r,1,t)},vh:function(e,r,t){return"V"+Xu(r[1])+"H"+Zc(r,0,t)},hvh:function(e,r,t){return"H"+Wu((e[0]+r[0])/2)+"V"+Xu(r[1])+"H"+Zc(r,0,t)},vhv:function(e,r,t){return"V"+Xu((e[1]+r[1])/2)+"H"+Wu(r[0])+"V"+Zc(r,1,t)}},C3e=function(e,r,t){return"L"+Zc(r,0,t)+","+Zc(r,1,t)};rr.steps=function(e){var r=L3e[e]||C3e;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 Nz(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]:Rz||0,u=r?r[1]:zz||0,f=l[0],c=l[1],v=f-s,d=c-u,p=Math.atan2(d,v),m=o?t[i]:t;if(m==="auto"){var y=l.i;a.type==="scatter"&&y--;var x=l.marker,T=x.symbol;bt.isArrayOrTypedArray(T)&&(T=T[y]);var w=x.size;bt.isArrayOrTypedArray(w)&&(w=w[y]),m=x?rr.symbolBackOffs[rr.symbolNumber(T)]*w:0,m+=rr.getMarkerStandoff(n[y],a)||0}var b=f-m*Math.cos(p),_=c-m*Math.sin(p);(b<=f&&b>=s||b>=f&&b<=s)&&(_<=c&&_>=u||_>=c&&_<=u)&&(e=[b,_])}return e}rr.applyBackoff=Nz;rr.makeTester=function(){var e=bt.ensureSingleById(za.select("body"),"svg","js-plotly-tester",function(t){t.attr(g3e.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 B4=0,E3e=1e4;rr.bBox=function(e,r,t){t||(t=_z(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=_z(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)),za.select(u).attr("transform",null).call(Jm.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 B4>=E3e&&(rr.savedBBoxes={},B4=0),t&&(rr.savedBBoxes[t]=d),B4++,bt.extendFlat({},d)};function _z(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+=Ch(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 D3e=/\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(D3e,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var P3e=/translate\([^)]*\)\s*$/;rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=za.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(P3e);r===1&&t===1?a=[]:a=[Ch(o,l),"scale("+r+","+t+")",Ch(-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 Lh=Math.atan2,ju=Math.cos,$c=Math.sin;function wz(e,r){var t=r[0],a=r[1];return[t*ju(e)-a*$c(e),t*$c(e)+a*ju(e)]}var Tz,Mz,Az,kz,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=Lh(v[1]-n,v[0]-a),p=Lh(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,x=f/180*Math.PI,T=Tz/180*Math.PI,w=Mz/180*Math.PI,b=T-y,_=ju(w)*$c(b),k=$c(w)*ju(x)-ju(w)*$c(x)*ju(b);m=-Lh(_,k)-Math.PI,Tz=u,Mz=f}var M=wz(d,[ju(m),0]),q=wz(p,[$c(m),0]);t=Lh(M[1]+q[1],M[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-Az,D=n-kz,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(D=0),R==="v"&&(C=0),t+=Lh(D,C)/Math.PI*180+90}else t=null}return Az=a,kz=n,H4=e.i,U4=r.uid,t}rr.getMarkerAngle=V4});var Qc=N((_Ye,Hz)=>{"use strict";var Jc=Dr(),R3e=Fr(),z3e=va(),j4=Tr(),Zu=ke(),Fz=Zu.strTranslate,Km=Xr(),Qm=Sr(),Kc=Ca(),Oz=om(),N3e=Qa().OPPOSITE_SIDE,Bz=/ [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(),m=!1,y=d&&d.font?d.font:{},x=y.family,T=y.size,w=y.color,b=y.weight,_=y.style,k=y.variant,M=y.textcase,q=y.lineposition,C=y.shadow,D=t.subtitlePropName,P=!!D,R=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},F=(I.text||"").trim(),B=!1,U=1,G=I.font,V=G.family,Y=G.size,X=G.color,j=G.weight,J=G.style,ae=G.variant,te=G.textcase,se=G.lineposition,$=G.shadow,fe;i==="title.text"?fe="titleText":i.indexOf("axis")!==-1?fe="axisTitleText":i.indexOf("colorbar")!==-1&&(fe="colorbarTitleText");var oe=e._context.edits[fe];function ue(Je,We){return Je===void 0||We===void 0?!1:Je.replace(Bz," % ")===We.replace(Bz," % ")}p===""?v=0:ue(p,o)&&(oe||(p=""),v=.2,m=!0),P&&(F===""?U=0:ue(F,R)&&(oe||(F=""),U=.2,B=!0)),t._meta?p=Zu.templateString(p,t._meta):a._meta&&(p=Zu.templateString(p,a._meta));var ce=p||F||oe,ie;c||(c=Zu.ensureSingle(a._infolayer,"g","g-"+r),ie=a._hColorbarMoveTitle);var ge=c.selectAll("text."+r).data(ce?[0]:[]);ge.enter().append("text"),ge.text(p).attr("class",r),ge.exit().remove();var Ce=null,_e=r+"-subtitle",Ee=F||oe;if(P&&(Ce=c.selectAll("text."+_e).data(Ee?[0]:[]),Ce.enter().append("text"),Ce.text(F).attr("class",_e),Ce.exit().remove()),!ce)return c;function Ae(Je,We){Zu.syncOrAsync([Se,Re],{title:Je,subtitle:We})}function Se(Je){var We=Je.title,qe=Je.subtitle,ze;!f&&ie&&(f={}),f?(ze="",f.rotate&&(ze+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ie)&&(ze+=Fz(0,(f.offset||0)-(ie||0)))):ze=null,We.attr("transform",ze);function Qe(me){if(me){var Me=Jc.select(me.node().parentNode).select("."+_e);if(!Me.empty()){var He=me.node().getBBox();if(He.height){var Xe=He.y+He.height+W4*Y;Me.attr("y",Xe)}}}}if(We.style("opacity",v*Qm.opacity(w)).call(Km.font,{color:Qm.rgb(w),size:Jc.round(T,2),family:x,weight:b,style:_,variant:k,textcase:M,shadow:C,lineposition:q}).attr(u).call(Kc.convertToTspans,e,Qe),qe&&!qe.empty()){var re=c.select("."+r+"-math-group"),be=We.node().getBBox(),Ge=re.node()?re.node().getBBox():void 0,cr=Ge?Ge.y+Ge.height+W4*Y:be.y+be.height+X4*Y,Pe=Zu.extendFlat({},u,{y:cr});qe.attr("transform",ze),qe.style("opacity",U*Qm.opacity(X)).call(Km.font,{color:Qm.rgb(X),size:Jc.round(Y,2),family:V,weight:j,style:J,variant:ae,textcase:te,shadow:$,lineposition:se}).attr(Pe).call(Kc.convertToTspans,e)}return z3e.previousPromises(e)}function Re(Je){var We=Je.title,qe=Jc.select(We.node().parentNode);if(s&&s.selection&&s.side&&p){qe.attr("transform",null);var ze=N3e[s.side],Qe=s.side==="left"||s.side==="top"?-1:1,re=R3e(s.pad)?s.pad:2,be=Km.bBox(qe.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 Me=cr[Pe][me];Ge[me]=Math.max(Ge[me],Me)}var He={left:Ge.l,top:Ge.t,right:a.width-Ge.r,bottom:a.height-Ge.b},Xe=s.maxShift||Qe*(He[s.side]-be[s.side]),Oe=0;if(Xe<0)Oe=Xe;else{var je=s.offsetLeft||0,tr=s.offsetTop||0;be.left-=je,be.right-=je,be.top-=tr,be.bottom-=tr,s.selection.each(function(){var lr=Km.bBox(this);Zu.bBoxIntersect(be,lr,re)&&(Oe=Math.max(Oe,Qe*(lr[s.side]-be[ze])+re))}),Oe=Math.min(Xe,Oe),n._titleScoot=Math.abs(Oe)}if(Oe>0||Xe<0){var ir={left:[-Oe,0],right:[Oe,0],top:[0,-Oe],bottom:[0,Oe]}[s.side];qe.attr("transform",Fz(ir[0],ir[1]))}}}ge.call(Ae,Ce);function Ie(Je,We){Je.text(We).on("mouseover.opacity",function(){Jc.select(this).transition().duration(Oz.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Jc.select(this).transition().duration(Oz.HIDE_PLACEHOLDER).style("opacity",0)})}if(oe&&(p?ge.on(".opacity",null):(Ie(ge,o),m=!0),ge.call(Kc.makeEditable,{gd:e}).on("edit",function(Je){l!==void 0?j4.call("_guiRestyle",e,i,Je,l):j4.call("_guiRelayout",e,i,Je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ae)}).on("input",function(Je){this.text(Je||" ").call(Kc.positionText,u.x,u.y)}),P)){if(P&&!p){var Le=ge.node().getBBox(),Ze=Le.y+Le.height+X4*Y;Ce.attr("y",Ze)}F?Ce.on(".opacity",null):(Ie(Ce,R),B=!0),Ce.call(Kc.makeEditable,{gd:e}).on("edit",function(Je){j4.call("_guiRelayout",e,"title.subtitle.text",Je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ae)}).on("input",function(Je){this.text(Je||" ").call(Kc.positionText,Ce.attr("x"),Ce.attr("y"))})}return ge.classed("js-placeholder",m),Ce&&!Ce.empty()&&Ce.classed("js-placeholder",B),c}Hz.exports={draw:I3e,SUBTITLE_PADDING_EM:X4,SUBTITLE_PADDING_MATHJAX_EM:W4}});var ev=N((wYe,jz)=>{"use strict";var F3e=Dr(),O3e=pc().utcFormat,qt=ke(),B3e=qt.numberFormat,tl=Fr(),Cs=qt.cleanNumber,H3e=qt.ms2DateTime,Uz=qt.dateTime2ms,al=qt.ensureNumber,Gz=qt.isArrayOrTypedArray,Es=Gt(),ey=Es.FP_SAFE,Lo=Es.BADNUM,U3e=Es.LOG_CLIP,G3e=Es.ONEWEEK,ry=Es.ONEDAY,ty=Es.ONEHOUR,Yz=Es.ONEMIN,Vz=Es.ONESEC,ay=ba(),oy=qa(),ny=oy.HOUR_PATTERN,iy=oy.WEEKDAY_PATTERN;function Eh(e){return Math.pow(10,e)}function Z4(e){return e!=null}jz.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,_){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&_&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*U3e*Math.abs(k-M))}else return Lo}function o(b,_,k,M){if((M||{}).msUTC&&tl(b))return+b;var q=Uz(b,k||r.calendar);if(q===Lo)if(tl(b)){b=+b;var C=Math.floor(qt.mod(b+.05,1)*10),D=Math.round(b-C/10);q=Uz(new Date(D))+C/10}else return Lo;return q}function l(b,_,k){return H3e(b,_,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Z4(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var _=r._categories.length-1;return r._categoriesMap[b]=_,_}return Lo}function f(b,_){for(var k=new Array(_),M=0;M<_;M++){var q=(b[0]||[])[M],C=(b[1]||[])[M];k[M]=c([q,C])}return k}function c(b){if(r._categoriesMap)return r._categoriesMap[b]}function v(b){var _=c(b);if(_!==void 0)return _;if(tl(b))return+b}function d(b){return tl(b)?+b:c(b)}function p(b,_,k){return F3e.round(k+_*b,2)}function m(b,_,k){return(b-k)/_}var y=function(_){return tl(_)?p(_,r._m,r._b):Lo},x=function(b){return m(b,r._m,r._b)};if(r.rangebreaks){var T=n==="y";y=function(b){if(!tl(b))return Lo;var _=r._rangebreaks.length;if(!_)return p(b,r._m,r._b);var k=T;r.range[0]>r.range[1]&&(k=!k);for(var M=k?-1:1,q=M*b,C=0,D=0;D<_;D++){var P=M*r._rangebreaks[D].min,R=M*r._rangebreaks[D].max;if(q<P)break;if(q>R)C=D+1;else{C=q<(P+R)/2?D:D+1;break}}var I=r._B[C]||0;return isFinite(I)?p(b,r._m2,I):0},x=function(b){var _=r._rangebreaks.length;if(!_)return m(b,r._m,r._b);for(var k=0,M=0;M<_&&!(b<r._rangebreaks[M].pmin);M++)b>r._rangebreaks[M].pmax&&(k=M+1);return m(b,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:al,r.l2c=r.type==="log"?Eh:al,r.l2p=y,r.p2l=x,r.c2p=r.type==="log"?function(b,_){return y(i(b,_))}:y,r.p2c=r.type==="log"?function(b){return Eh(x(b))}:x,["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(b){return r.l2p(Cs(b))},r.p2d=r.p2r=x,r.cleanPos=al):r.type==="log"?(r.d2r=r.d2l=function(b,_){return i(Cs(b),_)},r.r2d=r.r2c=function(b){return Eh(Cs(b))},r.d2c=r.r2l=Cs,r.c2d=r.l2r=al,r.c2r=i,r.l2d=Eh,r.d2p=function(b,_){return r.l2p(r.d2r(b,_))},r.p2d=function(b){return Eh(x(b))},r.r2p=function(b){return r.l2p(Cs(b))},r.p2r=x,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(b,_,k){return r.l2p(o(b,0,k))},r.p2d=r.p2r=function(b,_,k){return l(x(b),_,k)},r.cleanPos=function(b){return qt.cleanDate(b,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(b){var _=d(b);return _!==void 0?_:r.fraction2r(.5)},r.l2r=r.c2r=al,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:al(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var _=v(b);return _!==void 0?_:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=al,r.r2l=v,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:al(b)},r.setupMultiCategory=function(b){var _=r._traceIndices,k,M,q=r._matchGroup;if(q&&r._categories.length===0){for(var C in q)if(C!==a){var D=t[ay.id2name(C)];_=_.concat(D._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;k<_.length;k++){var I=b[_[k]];if(n in I){var F=I[n],B=I._length||qt.minRowLength(F);if(Gz(F[0])&&Gz(F[1]))for(M=0;M<B;M++){var U=F[0][M],G=F[1][M];Z4(U)&&Z4(G)&&(R.push([U,G]),U in P[0][1]||(P[0][1][U]=P[0][0]++),G in P[1][1]||(P[1][1][G]=P[1][0]++))}}}for(R.sort(function(V,Y){var X=P[0][1],j=X[V[0]]-X[Y[0]];if(j)return j;var J=P[1][1];return J[V[1]]-J[Y[1]]}),k=0;k<R.length;k++)u(R[k])}),r.fraction2r=function(b){var _=r.r2l(r.range[0]),k=r.r2l(r.range[1]);return r.l2r(_+b*(k-_))},r.r2fraction=function(b){var _=r.r2l(r.range[0]),k=r.r2l(r.range[1]);return(r.r2l(b)-_)/(k-_)},r.limitRange=function(b){var _=r.minallowed,k=r.maxallowed;if(!(_===void 0&&k===void 0)){b||(b="range");var M=qt.nestedProperty(r,b).get(),q=qt.simpleMap(M,r.r2l),C=q[1]<q[0];C&&q.reverse();var D=qt.simpleMap([_,k],r.r2l);if(_!==void 0&&q[0]<D[0]&&(M[C?1:0]=_,q[0]=D[0]),k!==void 0&&q[1]>D[1]&&(M[C?0:1]=k,q[1]=D[1]),q[0]>=q[1])if(_!==void 0){var P=D[0]+1;k!==void 0&&(P=Math.min(P,D[1])),M[C?0:1]=r.l2r(P)}else k!==void 0&&(M[C?1:0]=r.l2r(D[1]-1))}},r.cleanRange=function(b,_){r._cleanRange(b,_),r.limitRange(b)},r._cleanRange=function(b,_){_||(_={}),b||(b="range");var k=qt.nestedProperty(r,b).get(),M,q;if(r.type==="date"?q=qt.dfltRange(r.calendar):n==="y"?q=oy.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=_.dfltRange||oy.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!k||k.length!==2){qt.nestedProperty(r,b).set(q);return}var C=k[0]===null,D=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)),M=0;M<2;M++)if(r.type==="date"){if(!qt.isDateTime(k[M],r.calendar)){r[b]=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[M]))if(!(C||D)&&tl(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=q;break}if(k[M]<-ey?k[M]=-ey:k[M]>ey&&(k[M]=ey),k[0]===k[1]){var R=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=R,k[1]+=R}}},r.setScale=function(b){var _=t._size;if(r.overlaying){var k=ay.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=b&&r._r?"_r":"range",q=r.calendar;r.cleanRange(M);var C=r.r2l(r[M][0],q),D=r.r2l(r[M][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-D),r._b=-r._m*D):(r._offset=_.l+r.domain[0]*_.w,r._length=_.w*(r.domain[1]-r.domain[0]),r._m=r._length/(D-C),r._b=-r._m*C),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,I;if(r._rangebreaks=r.locateBreaks(Math.min(C,D),Math.max(C,D)),r._rangebreaks.length){for(R=0;R<r._rangebreaks.length;R++)I=r._rangebreaks[R],r._lBreaks+=Math.abs(I.max-I.min);var F=P;C>D&&(F=!F),F&&r._rangebreaks.reverse();var B=F?-1:1;for(r._m2=B*r._length/(Math.abs(D-C)-r._lBreaks),r._B.push(-r._m2*(P?D:C)),R=0;R<r._rangebreaks.length;R++)I=r._rangebreaks[R],r._B.push(r._B[r._B.length-1]-B*r._m2*(I.max-I.min));for(R=0;R<r._rangebreaks.length;R++)I=r._rangebreaks[R],I.pmin=y(I.min),I.pmax=y(I.max)}}if(!isFinite(r._m)||!isFinite(r._b)||r._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},r.maskBreaks=function(b){var _=r.rangebreaks||[],k,M,q,C,D;_._cachedPatterns||(_._cachedPatterns=_.map(function(X){return X.enabled&&X.bounds?qt.simpleMap(X.bounds,X.pattern?Cs:r.d2c):null})),_._cachedValues||(_._cachedValues=_.map(function(X){return X.enabled&&X.values?qt.simpleMap(X.values,r.d2c).sort(qt.sorterAsc):null}));for(var P=0;P<_.length;P++){var R=_[P];if(R.enabled){if(R.bounds){var I=R.pattern;switch(k=_._cachedPatterns[P],M=k[0],q=k[1],I){case iy:D=new Date(b),C=D.getUTCDay(),M>q&&(q+=7,C<M&&(C+=7));break;case ny:D=new Date(b);var F=D.getUTCHours(),B=D.getUTCMinutes(),U=D.getUTCSeconds(),G=D.getUTCMilliseconds();C=F+(B/60+U/3600+G/36e5),M>q&&(q+=24,C<M&&(C+=24));break;case"":C=b;break}if(C>=M&&C<q)return Lo}else for(var V=_._cachedValues[P],Y=0;Y<V.length;Y++)if(M=V[Y],q=M+R.dvalue,b>=M&&b<q)return Lo}}return b},r.locateBreaks=function(b,_){var k,M,q,C,D=[];if(!r.rangebreaks)return D;var P=r.rangebreaks.slice().sort(function(J,ae){return J.pattern===iy&&ae.pattern===ny?-1:ae.pattern===iy&&J.pattern===ny?1:0}),R=function(J,ae){if(J=qt.constrain(J,b,_),ae=qt.constrain(ae,b,_),J!==ae){for(var te=!0,se=0;se<D.length;se++){var $=D[se];J<$.max&&ae>=$.min&&(J<$.min&&($.min=J),ae>$.max&&($.max=ae),te=!1)}te&&D.push({min:J,max:ae})}};for(k=0;k<P.length;k++){var I=P[k];if(I.enabled)if(I.bounds){var F=b,B=_;I.pattern&&(F=Math.floor(F)),M=qt.simpleMap(I.bounds,I.pattern?Cs:r.r2l),q=M[0],C=M[1];var U=new Date(F),G,V;switch(I.pattern){case iy:V=G3e,G=((C<q?7:0)+(C-q))*ry,F+=q*ry-(U.getUTCDay()*ry+U.getUTCHours()*ty+U.getUTCMinutes()*Yz+U.getUTCSeconds()*Vz+U.getUTCMilliseconds());break;case ny:V=ry,G=((C<q?24:0)+(C-q))*ty,F+=q*ty-(U.getUTCHours()*ty+U.getUTCMinutes()*Yz+U.getUTCSeconds()*Vz+U.getUTCMilliseconds());break;default:F=Math.min(M[0],M[1]),B=Math.max(M[0],M[1]),V=B-F,G=V}for(var Y=F;Y<B;Y+=V)R(Y,Y+G)}else for(var X=qt.simpleMap(I.values,r.d2c),j=0;j<X.length;j++)q=X[j],C=q+I.dvalue,R(q,C)}return D.sort(function(J,ae){return J.min-ae.min}),D},r.makeCalcdata=function(b,_,k){var M,q,C,D,P=r.type,R=P==="date"&&b[_+"calendar"];if(_ in b){if(M=b[_],D=b._length||qt.minRowLength(M),qt.isTypedArray(M)&&(P==="linear"||P==="log")){if(D===M.length)return M;if(M.subarray)return M.subarray(0,D)}if(P==="multicategory")return f(M,D);for(q=new Array(D),C=0;C<D;C++)q[C]=r.d2c(M[C],0,R,k)}else{var I=_+"0"in b?r.d2c(b[_+"0"],0,R):0,F=b["d"+_]?Number(b["d"+_]):1;for(M=b[{x:"y",y:"x"}[_]],D=b._length||M.length,q=new Array(D),C=0;C<D;C++)q[C]=I+C*F}if(r.rangebreaks)for(C=0;C<D;C++)q[C]=r.maskBreaks(q[C]);return q},r.isValidRange=function(b,_){return Array.isArray(b)&&b.length===2&&(_&&b[0]===null||tl(r.r2l(b[0])))&&(_&&b[1]===null||tl(r.r2l(b[1])))},r.getAutorangeDflt=function(b,_){var k=!r.isValidRange(b,"nullOk");return k&&_&&_.reverseDflt?k="reversed":b&&(b[0]===null&&b[1]===null?k=!0:b[0]===null&&b[1]!==null?k="min":b[0]!==null&&b[1]===null&&(k="max")),k},r.isReversed=function(){var b=r.autorange;return b==="reversed"||b==="min reversed"||b==="max reversed"},r.isPtWithinRange=function(b,_){var k=r.c2l(b[n],null,_),M=r.r2l(r.range[0]),q=r.r2l(r.range[1]);return M<q?M<=k&&k<=q:q<=k&&k<=M},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var b=r._matchGroup;if(b){var _=null,k=null;for(var M in b){var q=t[ay.id2name(M)];if(q._categories){_=q._categories,k=q._categoriesMap;break}}_&&k?(r._categories=_,r._categoriesMap=k):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var C=0;C<r._initialCategories.length;C++)u(r._initialCategories[C])},r.sortByInitialCategories=function(){var b=[];if(r._emptyCategories(),r._initialCategories)for(var _=0;_<r._initialCategories.length;_++)u(r._initialCategories[_]);b=b.concat(r._traceIndices);var k=r._matchGroup;for(var M in k)if(a!==M){var q=t[ay.id2name(M)];q._categories=r._categories,q._categoriesMap=r._categoriesMap,b=b.concat(q._traceIndices)}return b};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:B3e,delete r._minDtick,delete r._forceTick0}});var sy=N((TYe,$z)=>{"use strict";var Wz=Fr(),$4=ke(),Y3e=Gt().BADNUM,ly=$4.isArrayOrTypedArray,V3e=$4.isDateTime,j3e=$4.cleanNumber,Xz=Math.round;$z.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(ly(n)&&!n.length)return"-";if(!i&&J3e(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;l<n.length;l++)if(ly(n[l]))for(var s=0;s<n[l].length;s++)o.push(n[l][s]);n=o}if(Z3e(n,t))return"date";var u=a.autotypenumbers!=="strict";return $3e(n,u)?"category":X3e(n,u)?"linear":"-"};function W3e(e,r){return r?Wz(e):typeof e=="number"}function X3e(e,r){for(var t=e.length,a=0;a<t;a++)if(W3e(e[a],r))return!0;return!1}function Z3e(e,r){for(var t=e.length,a=Zz(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=Xz(l),u=e[s],f=String(u);o[f]||(o[f]=1,V3e(u,r)&&n++,Wz(u)&&i++)}return n>i*2}function Zz(e){return Math.max(1,(e-1)/1e3)}function $3e(e,r){for(var t=e.length,a=Zz(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=Xz(l),u=e[s],f=String(u);if(!o[f]){o[f]=1;var c=typeof u;c==="boolean"?i++:(r?j3e(u)!==Y3e:c==="number")?n++:c==="string"&&i++}}return i>n*2}function J3e(e){return ly(e[0])&&ly(e[1])}});var Dh=N((MYe,nN)=>{"use strict";var K3e=Dr(),eN=Fr(),Ds=ke(),uy=Gt().FP_SAFE,Q3e=Tr(),ebe=Xr(),rN=ba(),rbe=rN.getFromId,tbe=rN.isLinked;nN.exports={applyAutorangeOptions:aN,getAutoRange:J4,makePadFn:K4,doAutoRange:nbe,findExtremes:ibe,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 Ds.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t<u.length&&c===v;t++)c=Math.min(c,u[t].val);for(t=1;t<f.length&&c===v;t++)v=Math.max(v,f[t].val);var d=r.autorange,p=d==="reversed"||d==="min reversed"||d==="max reversed";if(!p&&r.range){var m=Ds.simpleMap(r.range,r.r2l);p=m[1]<m[0]}r.autorange==="reversed"&&(r.autorange=!0);var y=r.rangemode,x=y==="tozero",T=y==="nonnegative",w=r._length,b=w/10,_=0,k,M,q,C,D,P;for(t=0;t<u.length;t++)for(k=u[t],a=0;a<f.length;a++)M=f[a],P=M.val-k.val-Jz(r,k.val,M.val),P>0&&(D=w-o(k)-l(M),D>b?P/D>_&&(q=k,C=M,_=P/D):P/w>_&&(q={val:k.val,nopad:1},C={val:M.val,nopad:1},_=P/w));function R(G,V){return Math.max(G,l(V))}if(c===v){var I=c-1,F=c+1;if(x)if(c===0)n=[0,1];else{var B=(c>0?f:u).reduce(R,0),U=c/(1-Math.min(.5,B/w));n=c>0?[0,U]:[U,0]}else T?n=[Math.max(0,I),Math.max(1,F)]:n=[I,F]}else x?(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-Jz(r,k.val,M.val))/(w-o(q)-l(C)),n=[q.val-_*o(q),C.val+_*l(C)];return n=aN(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Ds.simpleMap(n,r.l2r||Number)}function Jz(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=Ds.simpleMap(r.range,r.r2l);i=o[1]<o[0]}i&&(t=!t)}var l=0;return tbe(e,r._id)||(l=abe(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 Kz=3;function abe(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=Ds.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=K3e.select(this),b=w.select(".text-math-group");b.empty()&&(T.bb=ebe.bBox(w.node()))})}for(var d=0;d<l._vals.length;d++){var p=l._vals[d],m=p.bb;if(m){var y=2*Kz+m.width,x=2*Kz+m.height;a=Math.max(a,n?Math.max(y*u,x*f):Math.max(x*u,y*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(y,x){for(s=0;s<x.length;s++){var T=y[x[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=rbe(e,v),p=r6(e,d,!0),m=r._length/d._length;for(u=0;u<p.min.length;u++)f=p.min[u],Q4(o,f.val,f.pad*m,{extrapad:f.extrapad});for(u=0;u<p.max.length;u++)f=p.max[u],e6(l,f.val,f.pad*m,{extrapad:f.extrapad})}}return{min:o,max:l}}function nbe(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():J4(e,r),r._r=r.range.slice(),r._rl=Ds.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,Q3e.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]=Ds.extendFlat({},o)}}function ibe(e,r,t){t||(t={}),e._m||e.setScale();var a=[],n=[],i=r.length,o=t.padded||!1,l=t.tozero&&(e.type==="linear"||e.type==="-"),s=e.type==="log",u=!1,f=t.vpadLinearized||!1,c,v,d,p,m,y,x,T,w;function b(R){if(Array.isArray(R))return u=!0,function(F){return Math.max(Number(R[F]||0),0)};var I=Math.max(Number(R||0),0);return function(){return I}}var _=b((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),k=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=b(t.vpadplus||t.vpad),q=b(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<uy&&(w=v);else for(c=0;c<i;c++)v=r[c],v<T&&v>-uy&&(T=v),v>w&&v<uy&&(w=v);r=[T,w],i=2}var C={tozero:l,extrapad:o};function D(R){d=r[R],eN(d)&&(y=_(R),x=k(R),f?(p=e.c2l(d)-q(R),m=e.c2l(d)+M(R)):(T=d-q(R),w=d+M(R),s&&T<w/10&&(T=w/10),p=e.c2l(T),m=e.c2l(w)),l&&(p=Math.min(0,p),m=Math.max(0,m)),Qz(p)&&Q4(a,p,x,C),Qz(m)&&e6(n,m,y,C))}var P=Math.min(6,i);for(c=0;c<P;c++)D(c);for(c=i-1;c>=P;c--)D(c);return{min:a,max:n,opts:t}}function Q4(e,r,t,a){tN(e,r,t,a,obe)}function e6(e,r,t,a){tN(e,r,t,a,lbe)}function tN(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 Qz(e){return eN(e)&&Math.abs(e)<uy}function obe(e,r){return e<=r}function lbe(e,r){return e>=r}function sbe(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&fy(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&fy(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function ube(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&fy(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&fy(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function fy(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function aN(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);Ds.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=sbe(t,r),a=ube(a,r),[t,a]}});var Gr=N((kYe,SN)=>{"use strict";var Ii=Dr(),ha=Fr(),rv=va(),Rh=Tr(),kr=ke(),tv=kr.strTranslate,$u=Ca(),fbe=Qc(),zh=Sr(),di=Xr(),cbe=Ni(),iN=A4(),AYe=qa(),rn=Gt(),vbe=rn.ONEMAXYEAR,hy=rn.ONEAVGYEAR,dy=rn.ONEMINYEAR,hbe=rn.ONEMAXQUARTER,i6=rn.ONEAVGQUARTER,py=rn.ONEMINQUARTER,dbe=rn.ONEMAXMONTH,av=rn.ONEAVGMONTH,my=rn.ONEMINMONTH,pi=rn.ONEWEEK,Tn=rn.ONEDAY,Ps=Tn/2,il=rn.ONEHOUR,Nh=rn.ONEMIN,yy=rn.ONESEC,pbe=rn.ONEMILLI,mbe=rn.ONEMICROSEC,Ju=rn.MINUS_SIGN,by=rn.BADNUM,o6={K:"zeroline"},l6={K:"gridline",L:"path"},s6={K:"minor-gridline",L:"path"},mN={K:"tick",L:"path"},oN={K:"tick",L:"text"},lN={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},xy=Qa(),Ph=xy.MID_SHIFT,Ku=xy.CAP_SHIFT,Ih=xy.LINE_SPACING,ybe=xy.OPPOSITE_SIDE,gy=3,Ue=SN.exports={};Ue.setConvert=ev();var gbe=sy(),ol=ba(),bbe=ol.idSort,xbe=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 yN=Dh();Ue.getAutoRange=yN.getAutoRange;Ue.findExtremes=yN.findExtremes;var _be=1e-4;function v6(e){var r=(e[1]-e[0])*_be;return[e[0]-r,e[1]+r]}function wbe(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=Rh.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 Tbe=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:gbe(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:uN,c2d:uN}:{d2c:sN,c2d:sN}};function sN(e){return+e}function uN(e){return String(e)}Ue.getDataToCoordFunc=function(e,r,t,a){return Tbe(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&&iN.dtick(i,s.type),i)s.dtick=i,s.tick0=iN.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),m,y;if(typeof d=="number")p=Mbe(p,e,s,o,l),y=1+Math.floor((l-p)/d),m=p+y*d;else for(s.dtick.charAt(0)==="M"&&(p=Abe(p,e,d,o,n)),m=p,y=0;m<=l;)m=Ue.tickIncrement(m,d,!1,n),y++;return{start:r.c2r(p,0,n),end:r.c2r(m,0,n),size:d,_dataSpan:l-o}};function 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 Abe(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:fN(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=fN(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 fN(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"&&kbe(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),_N(e)};function a6(e){return+e.substring(1)}function kbe(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=av,i&&(a?a6(e.dtick)<1:e.dtick<my)&&(e.dtick="M1")):/%[q]/.test(n)?(r=i6,i&&(a?a6(e.dtick)<3:e.dtick<py)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=hy,i&&(a?a6(e.dtick)<12:e.dtick<dy)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function Sbe(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>=dy?u>=dy&&u<=vbe?c=u:c=hy:t===i6&&f>=py?u>=py&&u<=hbe?c=u:c=i6:f>=my?u>=my&&u<=dbe?c=u:c=av: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,m=0,y=0;y<p;y++){var x=(y+.5)/p;r.maskBreaks(n*(1-x)+x*d)!==by&&m++}c*=m/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=[],m=[],y=[],x=[],T=[],w=r.minor&&(r.minor.ticks||r.minor.showgrid),b=w||s,_=1;_>=(b?0:1);_--){var k=!_;_?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=_?r:kr.extendFlat({},r,b?r.minor:{minor:{}});if(k?Ue.prepMinorTicks(M,r,t):Ue.prepTicks(M,t),M.tickmode==="array"){_?(y=[],p=cN(r,!k)):(x=[],m=cN(r,!k));continue}if(M.tickmode==="sync"){y=[],p=qbe(r);continue}var q=v6(u),C=q[0],D=q[1],P=ha(M.dtick),R=a==="log"&&!(P||M.dtick.charAt(0)==="L"),I=Ue.tickFirst(M,t);if(_){if(r._tmin=I,I<C!==f)break;(a==="category"||a==="multicategory")&&(D=f?Math.max(-.5,D):Math.min(r._categories.length-.5,D))}var F=null,B=I,U;if(_){var G;P?G=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(G=av*r.dtick.substring(1)):G=r._roughDTick,U=Math.round((r.r2l(B)-r.r2l(r.tick0))/G)-1}var V=M.dtick,Y=a==="linear"?M.r2l(M.tick0):void 0;for(M.rangebreaks&&M._tick0Init!==M.tick0&&(B=n6(B,r),f||(B=Ue.tickIncrement(B,V,!f,n))),(_||s)&&o&&(B=Ue.tickIncrement(B,V,!f,n),_&&U--);f?B>=D:B<=D;B=Ue.tickIncrement(B,V,f,n)){if(_&&U++,M.rangebreaks&&!f){if(B<C)continue;if(M.maskBreaks(B)===by&&n6(B,M)>=v)break}if(y.length>d||B===F)break;F=B;var X={value:wbe(B,Y,V)};_?(B===I&&(X.first=!0),R&&B!==(B|0)&&(X.simpleLabel=!0),i>1&&U%i&&(X.skipLabel=!0),y.push(X)):(X.minor=!0,x.push(X))}}if(!x||x.length<3)s=!1;else{var j=(x[2].value-x[1].value)*(l?-1:1);Qbe(j,r.tickformat)||(s=!1,x=x.slice(1))}if(!s)T=y;else{var J=y.concat(x);o&&y.length&&(J=J.slice(1)),J=J.sort(function(We,qe){return We.value-qe.value}).filter(function(We,qe,ze){return qe===0||We.value!==ze[qe-1].value});var ae=J.map(function(We,qe){return We.minor===void 0&&!We.skipLabel?qe:null}).filter(function(We){return We!==null});ae.forEach(function(We){s.map(function(qe){var ze=We+qe;ze>=0&&ze<J.length&&kr.pushUnique(T,J[ze])})}),y.forEach(function(We){We.skipLabel=T.indexOf(We)===-1})}if(w){var te=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!te){for(var se=y.map(function(We){return We.value}),$=[],fe=0;fe<x.length;fe++){var oe=x[fe],ue=oe.value;if(se.indexOf(ue)===-1){for(var ce=!1,ie=0;!ce&&ie<y.length;ie++)1e7+y[ie].value===1e7+ue&&(ce=!0);ce||$.push(oe)}}x=$}}o&&Sbe(T,r,r._definedDelta);var ge;if(r.rangebreaks){var Ce=r._id.charAt(0)==="y",_e=1;r.tickmode==="auto"&&(_e=r.tickfont?r.tickfont.size:12);var Ee=NaN;for(ge=y.length-1;ge>-1;ge--){if(y[ge].drop){y.splice(ge,1);continue}y[ge].value=n6(y[ge].value,r);var Ae=r.c2p(y[ge].value);(Ce?Ee>Ae-_e:Ee<Ae+_e)?y.splice(f?ge+1:ge,1):Ee=Ae}}m6(r)&&Math.abs(u[1]-u[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,y.length&&(y[y.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var Se,Re=function(We){We.text="",r._prevDateHead=Se};y=y.concat(x);function Ie(We,qe){var ze=Ue.tickText(We,qe.value,!1,qe.simpleLabel,{first:qe.first,last:qe.last}),Qe=qe.periodX;return Qe!==void 0&&(ze.periodX=Qe,(Qe>v||Qe<c)&&(Qe>v&&(ze.periodX=v),Qe<c&&(ze.periodX=c),Re(ze))),ze}var Le;for(ge=0;ge<y.length;ge++){var Ze=y[ge].minor,Je=y[ge].value;Ze?(s&&T.indexOf(y[ge])!==-1?Le=Ie(r,y[ge]):Le={x:Je},Le.minor=!0,m.push(Le)):(Se=r._prevDateHead,Le=Ie(r,y[ge]),y[ge].skipLabel&&Re(Le),p.push(Le))}return o&&s&&m.length&&(m[0].noTick=!0),p=p.concat(m),r._inCalcTicks=!1,o&&p.length&&(p[0].noTick=!0),p};function gN(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==by})),r}function qbe(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=gN(e,t),t}function cN(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 m=0;m<u.length;m++){var y=o(u[m]);if(y>n&&y<i){var x=Ue.tickText(e,y,!1,String(f[m]),{first:m===c,last:m===v});s&&(x.minor=!0,x.text=""),l.push(x)}}}}return l=gN(e,l),l}var cy=[2,5,10],vN=[1,2,3,6,12],hN=[1,2,5,10,15,30],Lbe=[1,2,3,7,14],bN=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],xN=[-.301,0,.301,.699,1],Cbe=[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>hy)r/=hy,a=n(10),e.dtick="M"+12*nl(r,a,cy);else if(i>av)r/=av,e.dtick="M"+nl(r,1,vN);else if(i>Tn){if(e.dtick=nl(r,Tn,e._hasDayOfWeekBreaks?[1,2,7,14]:Lbe),!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,vN):i>Nh?e.dtick=nl(r,Nh,hN):i>yy?e.dtick=nl(r,yy,hN):(a=n(10),e.dtick=nl(r,a,cy))}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,cy)}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,Cbe)):(e.tick0=0,a=n(10),e.dtick=nl(r,a,cy));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 _N(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>=yy&&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&&(nv(e.exponentformat)&&e.exponentformat!=="SI extended"&&!h6(s)||nv(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"?xN:bN,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,m,y;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);m=(o-(d+p)/2)/(p-d),y=f+(Math.abs(Math.round(m))||1)*c,d=Ue.tickIncrement(d,y,m<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 x=l==="D2"?xN:bN,T=kr.roundUp(kr.mod(o,1),x,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=wN(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 b=e.l2p(w);return b>=0&&b<=e._length?w:null};if(s&&kr.isArrayOrTypedArray(e.ticktext)){var p=kr.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[v]))<m);v++);if(v<e.ticktext.length)return l.text=String(e.ticktext[v]),l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)],l}function y(w){return w===void 0?!0:t?w==="none":w==="all"?!1:w==="first"?!i:w==="last"?!o:!0}var x=t?"never":e.exponentformat!=="none"&&y(e.showexponent)?"hide":"";if(f==="date"?Ebe(e,l,t,u):f==="log"?Dbe(e,l,t,u,x):f==="category"?Pbe(e,l):f==="multicategory"?Rbe(e,l,t):m6(e)?Nbe(e,l,t,u,x):zbe(e,l,t,u,x),a||(e.tickprefix&&!y(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!y(e.showticksuffix)&&(l.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(l.text)){var T=e.labelalias[l.text];typeof T=="string"&&(l.text=T)}return(e.tickson==="boundaries"||e.showdividers)&&(l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)]),l};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 wN(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 Dbe(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=Fh(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"||nv(p)&&p!=="SI extended"&&h6(v)||nv(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=Fh(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 m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Pbe(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Rbe(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=Fh(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=Fh(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=Fh(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 TN=["f","p","n","\u03BC","m","","k","M","G","T"],Fbe=["q","r","y","z","a",...TN,"P","E","Z","Y","R","Q"],nv=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 nv(r)?!!(r==="SI extended"&&d6(e)||r!=="SI extended"&&h6(e)):!1}function Fh(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]};_N(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":nv(o)&&(e+=o==="SI extended"?Fbe[l/3+10]:TN[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",""))*av}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=Kbe(r,a));var m=v[f+"axislayer"],y=r._mainLinePosition,x=y+=r._shift,T=r._mainMirrorPosition,w=r._vals=Ue.calcTicks(r),b=[r.mirror,x,T].join("_");for(i=0;i<w.length;i++)w[i].axInfo=b;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var _={};function k(Le){var Ze=u+(Le||"tick");return _[Ze]||(_[Ze]=Gbe(r,Ze,x)),_[Ze]}if(r.visible){var M=Ue.makeTransTickFn(r),q=Ue.makeTransTickLabelFn(r),C,D,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var I=Bbe(r,w);D=Ue.clipEnds(r,I),C=P?D:I}else D=Ue.clipEnds(r,w),C=P&&r.ticklabelmode!=="period"?D:w;var F=r._gridVals=D,B=Ube(r,w);if(!s._hasOnlyLargeSploms){var U=r._subplotsWith,G={};for(i=0;i<U.length;i++){o=U[i],l=s._plots[o];var V=l[c+"axis"],Y=V._mainAxis._id;if(!G[Y]){G[Y]=1;var X=f==="x"?"M0,"+V._offset+"v"+V._length:"M"+V._offset+",0h"+V._length;Ue.drawGrid(e,r,{vals:F,counterAxis:V,layer:l.gridlayer.select("."+u),minorLayer:l.minorGridlayer.select("."+u),path:X,transFn:M}),Ue.drawZeroLine(e,r,{counterAxis:V,layer:d?l.zerolinelayerAbove:l.zerolinelayer,path:X,transFn:M})}}}var j,J=Ue.getTickSigns(r),ae=Ue.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var te=Ue.makeTickPath(r,x,J[2]),se=Ue.makeTickPath(r,x,ae[2],{minor:!0}),$,fe,oe,ue;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?($=Ue.makeTickPath(r,T,J[3]),fe=Ue.makeTickPath(r,T,ae[3],{minor:!0}),oe=te+$,ue=se+fe):($="",fe="",oe=te,ue=se),r.showdividers&&R&&r.tickson==="boundaries"){var ce={};for(i=0;i<B.length;i++)ce[B[i].x]=1;j=function(Le){return ce[Le.x]?$:oe}}else j=function(Le){return Le.minor?ue:oe}}if(Ue.drawTicks(e,r,{vals:C,layer:m,path:j,transFn:M}),r.mirror==="allticks"){var ie=Object.keys(r._linepositions||{});for(i=0;i<ie.length;i++){o=ie[i],l=s._plots[o];var ge=r._linepositions[o]||[],Ce=ge[0],_e=ge[1],Ee=ge[2],Ae=Ue.makeTickPath(r,Ce,Ee?J[0]:ae[0],{minor:Ee})+Ue.makeTickPath(r,_e,Ee?J[1]:ae[1],{minor:Ee});Ue.drawTicks(e,r,{vals:C,layer:l[f+"axislayer"],path:Ae,transFn:M})}}var Se=[];if(Se.push(function(){return Ue.drawLabels(e,r,{vals:w,layer:m,plotinfo:l,transFn:q,labelFns:Ue.makeLabelFns(r,x)})}),r.type==="multicategory"){var Re={x:2,y:10}[f];Se.push(function(){var Le={x:"height",y:"width"}[f],Ze=k()[Le]+Re+(r._tickAngles[u+"tick"]?r.tickfont.size*Ih:0);return Ue.drawLabels(e,r,{vals:Hbe(r,w),layer:m,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:Ue.makeLabelFns(r,x+Ze*J[4])})}),Se.push(function(){return r._depth=J[4]*(k("tick2")[r.side]-x),Vbe(e,r,{vals:B,layer:m,path:Ue.makeTickPath(r,x,J[4],{len:r._depth}),transFn:M})})}else r.title.hasOwnProperty("standoff")&&Se.push(function(){r._depth=J[4]*(k()[r.side]-x)});var Ie=Rh.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(Ie&&r.side==="bottom")&&Se.push(function(){return jbe(e,r)}),Se.push(function(){var Le=r.side.charAt(0),Ze=ybe[r.side].charAt(0),Je=Ue.getPxPosition(e,r),We=R?r.ticklen:0,qe,ze,Qe,re;(r.automargin||Ie||r._shiftPusher)&&(r.type==="multicategory"?qe=k("tick2"):(qe=k(),f==="x"&&Le==="b"&&(r._depth=Math.max(qe.width>0?qe.bottom-Je:0,We))));var be=0,Ge=0;if(r._shiftPusher&&(be=Math.max(We,qe.height>0?Le==="l"?Je-qe.left:qe.right-Je:0),r.title.text!==s._dfltTitle[f]&&(Ge=(r._titleStandoff||0)+(r._titleScoot||0),Le==="l"&&(Ge+=pN(r))),r._fullDepth=Math.max(be,Ge)),r.automargin){ze={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(Le==="b"?ze[Le]=r._depth:(ze[Le]=r._depth=Math.max(qe.width>0?Je-qe.top:0,We),cr.reverse()),qe.width>0){var me=qe.right-(r._offset+r._length);me>0&&(ze.xr=1,ze.r=me);var Me=r._offset-qe.left;Me>0&&(ze.xl=0,ze.l=Me)}}else if(Le==="l"?(r._depth=Math.max(qe.height>0?Je-qe.left:0,We),ze[Le]=r._depth-Pe):(r._depth=Math.max(qe.height>0?qe.right-Je:0,We),ze[Le]=r._depth+Pe,cr.reverse()),qe.height>0){var He=qe.bottom-(r._offset+r._length);He>0&&(ze.yb=0,ze.b=He);var Xe=r._offset-qe.top;Xe>0&&(ze.yt=1,ze.t=Xe)}ze[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[cr[0]],r.title.text!==s._dfltTitle[f]&&(ze[Le]+=pN(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Qe={x:0,y:0,r:0,l:0,t:0,b:0},Qe[Ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(Qe[Ze]+=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]]))}Ie&&(re=Rh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(dN(ze,r.automargin),dN(Qe,r.automargin)),rv.autoMargin(e,p6(r),ze),rv.autoMargin(e,AN(r),Qe),rv.autoMargin(e,kN(r),re)}),kr.syncOrAsync(Se)}};function dN(e,r){if(e){var t=Object.keys(lN).reduce(function(a,n){return r.indexOf(n)!==-1&&lN[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 Bbe(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 Hbe(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(wN(e,kr.interp(a[o],.5),o));return t}function Ube(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 Gbe(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 tv(e._offset+e.l2p(r.x),0)}:function(r){return tv(0,e._offset+e.l2p(r.x))}};Ue.makeTransTickLabelFn=function(e){var r=Ybe(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 tv(n+e._offset+e.l2p(u6(v))+t,i+a)}:function(v){return tv(i+a,n+e._offset+e.l2p(u6(v))+t)}};function u6(e){return e.periodX!==void 0?e.periodX:e.x}function Ybe(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=gy,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+=gy),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(I){return a.indexOf(I)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,m=v?e.ticklen:0;if(c?m*=-1:f&&(m=0),v&&(d+=m,t)){var y=kr.deg2rad(t);d=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var x={labelStandoff:d,labelShift:p},T,w,b,_,k=0,M=e.side,q=e._id.charAt(0),C=e.tickangle,D;if(q==="x")D=!c&&M==="bottom"||c&&M==="top",_=D?1:-1,c&&(_*=-1),T=p*_,w=r+d*_,b=D?1:-.2,Math.abs(C)===90&&(c?b+=Ph:C===-90&&M==="bottom"?b=Ku:C===90&&M==="top"?b=Ph:b=.5,k=Ph/2*(C/90)),x.xFn=function(I){return I.dx+T+k*I.fontSize},x.yFn=function(I){return I.dy+w+I.fontSize*b},x.anchorFn=function(I,F){if(f){if(l)return"end";if(s)return"start"}return!ha(F)||F===0||F===180?"middle":F*_<0!==c?"end":"start"},x.heightFn=function(I,F,B){return F<-60||F>60?-.5*B:e.side==="top"!==c?-B:0};else if(q==="y"){if(D=!c&&M==="left"||c&&M==="right",_=D?1:-1,c&&(_*=-1),T=d,w=p*_,b=0,!c&&Math.abs(C)===90&&(C===-90&&M==="left"||C===90&&M==="right"?b=Ku:b=.5),c){var P=ha(C)?+C:0;if(P!==0){var R=kr.deg2rad(P);k=Math.abs(Math.sin(R))*Ku*_,b=0}}x.xFn=function(I){return I.dx+r-(T+I.fontSize*b)*_+k*I.fontSize},x.yFn=function(I){return I.dy+w+I.fontSize*Ph},x.anchorFn=function(I,F){return ha(F)&&Math.abs(F)===90?"middle":D?"end":"start"},x.heightFn=function(I,F,B){return e.side==="right"&&(F*=-1),F<-30?-B:F<30?-.5*B:0}}return x};function _y(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,_y);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),wy(r,[mN]),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(x){return x.minor}):[],o=r.showgrid?t.vals.filter(function(x){return!x.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 m=p?v:d;if(m){var y=m.selectAll("path."+a).data(p?o:i,_y);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(x){return zh.stroke(Ii.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return di.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}wy(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 bbe(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),wy(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(Y){return Y.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],_y),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(Y){var X=Ii.select(this),j=e._promises.length;X.call($u.positionText,s.xFn(Y),s.yFn(Y)).call(di.font,{family:Y.font,size:Y.fontSize,color:Y.fontColor,weight:Y.fontWeight,style:Y.fontStyle,variant:Y.fontVariant,textcase:Y.fontTextcase,lineposition:Y.fontLineposition,shadow:Y.fontShadow}).text(Y.text).call($u.convertToTspans,e),e._promises[j]?v.push(e._promises.pop().then(function(){d(X,u)})):d(X,u)}),wy(r,[oN]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(Y){Ii.select(this).select("text").call($u.positionText,s.xFn(Y),s.yFn(Y))});function d(Y,X){Y.each(function(j){var J=Ii.select(this),ae=J.select(".text-math-group"),te=s.anchorFn(j,X),se=t.transFn.call(J.node(),j)+(ha(X)&&+X!=0?" rotate("+X+","+s.xFn(j)+","+(s.yFn(j)-j.fontSize/2)+")":""),$=$u.lineCount(J),fe=Ih*j.fontSize,oe=s.heightFn(j,ha(X)?+X:0,($-1)*fe);if(oe&&(se+=tv(0,oe)),ae.empty()){var ue=J.select("text");ue.attr({transform:se,"text-anchor":te}),ue.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ce=di.bBox(ae.node()).width,ie=ce*{end:-.5,start:.5}[te];ae.attr("transform",se+tv(ie,0))}})}r._adjustTickLabelsOverflow=function(){var Y=r.ticklabeloverflow;if(!(!Y||Y==="allow")){var X=Y.indexOf("hide")!==-1,j=r._id.charAt(0)==="x",J=0,ae=j?e._fullLayout.width:e._fullLayout.height;if(Y.indexOf("domain")!==-1){var te=kr.simpleMap(r.range,r.r2l);J=r.l2p(te[0])+r._offset,ae=r.l2p(te[1])+r._offset}var se=Math.min(J,ae),$=Math.max(J,ae),fe=r.side,oe=1/0,ue=-1/0;c.each(function(Ce){var _e=Ii.select(this),Ee=_e.select(".text-math-group");if(Ee.empty()){var Ae=di.bBox(_e.node()),Se=0;j?(Ae.right>$||Ae.left<se)&&(Se=1):(Ae.bottom>$||Ae.top+(r.tickangle?0:Ce.fontSize/4)<se)&&(Se=1);var Re=_e.select("text");Se?X&&Re.style("display","none"):Re.node().style.display!=="none"&&(Re.style("display",null),fe==="bottom"||fe==="right"?oe=Math.min(oe,j?Ae.top:Ae.left):oe=-1/0,fe==="top"||fe==="left"?ue=Math.max(ue,j?Ae.bottom:Ae.right):ue=1/0)}});for(var ce in a._plots){var ie=a._plots[ce];if(!(r._id!==ie.xaxis._id&&r._id!==ie.yaxis._id)){var ge=j?ie.yaxis:ie.xaxis;ge&&(ge["_visibleLabelMin_"+r._id]=oe,ge["_visibleLabelMax_"+r._id]=ue)}}}},r._hideCounterAxisInsideTickLabels=function(Y){var X=r._id.charAt(0)==="x",j=[];for(var J in a._plots){var ae=a._plots[J];r._id!==ae.xaxis._id&&r._id!==ae.yaxis._id||j.push(X?ae.yaxis:ae.xaxis)}j.forEach(function(te,se){te&&Oh(te)&&(Y||[o6,s6,l6,mN,oN]).forEach(function($){var fe=$.K==="tick"&&$.L==="text"&&r.ticklabelmode==="period",oe=a._plots[r._mainSubplot],ue;if($.K===o6.K){var ce=i?oe.zerolinelayerAbove:oe.zerolinelayer;ue=ce.selectAll("."+r._id+"zl")}else $.K===s6.K?ue=oe.minorGridlayer.selectAll("."+r._id):$.K===l6.K?ue=oe.gridlayer.selectAll("."+r._id):ue=oe[r._id.charAt(0)+"axislayer"];ue.each(function(){var ie=Ii.select(this);$.L&&(ie=ie.selectAll($.L)),ie.each(function(ge){var Ce=r.l2p(fe?u6(ge):ge.x)+r._offset,_e=Ii.select(this);Ce<r["_visibleLabelMax_"+te._id]&&Ce>r["_visibleLabelMin_"+te._id]?_e.style("display","none"):$.K==="tick"&&!se&&_e.node().style.display!=="none"&&_e.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var m=null;function y(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var Y=0,X=[],j,J=1;c.each(function(ze){Y=Math.max(Y,ze.fontSize);var Qe=r.l2p(ze.x),re=f6(this),be=di.bBox(re.node());J=Math.max(J,$u.lineCount(re)),X.push({top:0,bottom:10,height:10,left:Qe-be.width/2,right:Qe+be.width/2+2,width:be.width+2})});var ae=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,te=l.length,se=Math.abs((l[te-1].x-l[0].x)*r._m)/(te-1),$=ae?se/2:se,fe=ae?r.ticklen:Y*1.25*J,oe=Math.sqrt(Math.pow($,2)+Math.pow(fe,2)),ue=$/oe,ce=r.autotickangles.map(function(ze){return ze*Math.PI/180}),ie=ce.find(function(ze){return Math.abs(Math.cos(ze))<=ue});ie===void 0&&(ie=ce.reduce(function(ze,Qe){return Math.abs(Math.cos(ze))<Math.abs(Math.cos(Qe))?ze:Qe},ce[0]));var ge=ie*(180/Math.PI);if(ae){var Ce=2;for(r.ticks&&(Ce+=r.tickwidth/2),j=0;j<X.length;j++){var _e=l[j].xbnd,Ee=X[j];if(_e[0]!==null&&Ee.left-r.l2p(_e[0])<Ce||_e[1]!==null&&r.l2p(_e[1])-Ee.right<Ce){m=ge;break}}}else{var Ae=r.ticklabelposition||"",Se=r.tickson||"",Re=function(ze){return Ae.indexOf(ze)!==-1},Ie=Re("top"),Le=Re("left"),Ze=Re("right"),Je=Re("bottom"),We=Se!=="boundaries"&&(Je||Le||Ie||Ze),qe=We?(r.tickwidth||0)+2*gy:0;for(j=0;j<X.length-1;j++)if(kr.bBoxIntersect(X[j],X[j+1],qe)){m=ge;break}}m&&d(c,m)}}r._selections&&(r._selections[o]=c);var x=[p];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(m=f,x.push(function(){d(c,f)})):x.push(y),r._tickAngles&&x.push(function(){r._tickAngles[o]=m===null?ha(u)?u:0:m});var T=function(){var Y=0,X=0;return c.each(function(j,J){var ae=f6(this),te=ae.select(".text-math-group");if(te.empty()){var se;r._vals[J]&&(se=r._vals[J].bb||di.bBox(ae.node()),r._vals[J].bb=se),Y=Math.max(Y,se.width),X=Math.max(X,se.height)}}),{labelsMaxW:Y,labelsMaxH:X}},w=r._anchorAxis;if(w&&(w.autorange||w.insiderange)&&Oh(r)&&!xbe(a,r._id)&&(a._insideTickLabelsUpdaterange||(a._insideTickLabelsUpdaterange={}),w.autorange&&(a._insideTickLabelsUpdaterange[w._name+".autorange"]=w.autorange,x.push(T)),w.insiderange)){var b=T(),_=r._id.charAt(0)==="y"?b.labelsMaxW:b.labelsMaxH;_+=2*gy,r.ticklabelposition==="inside"&&(_+=r.ticklen||0);var k=r.side==="right"||r.side==="top"?1:-1,M=k===1?1:0,q=k===1?0:1,C=[];C[q]=w.range[q];var D=w.range,P=w.r2p(D[M]),R=w.r2p(D[q]),I=a._insideTickLabelsUpdaterange[w._name+".range"];if(I){var F=w.r2p(I[M]),B=w.r2p(I[q]),U=k*(r._id.charAt(0)==="y"?1:-1);U*P<U*F&&(P=F,C[M]=D[M]=I[M]),U*R>U*B&&(R=B,C[q]=D[q]=I[q])}var G=Math.abs(R-P);G-_>0?(G-=_,_*=1+_/G):_=0,r._id.charAt(0)!=="y"&&(_=-_),C[M]=w.p2r(w.r2p(D[M])+k*_),w.autorange==="min"||w.autorange==="max reversed"?(C[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(C[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=C}var V=kr.syncOrAsync(x);return V&&V.then&&e._promises.push(V),V};function Vbe(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,_y);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 pN(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 jbe(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*(Ph+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 m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=di.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,fbe.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)===by)&&(MN(r,0)||!Wbe(e,r,t,a)||Xbe(e,r))};Ue.clipEnds=function(e,r){return r.filter(function(t){return MN(e,t.x)})};function MN(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function Wbe(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 m=Math.max((p.linewidth+r.zerolinewidth)/2,1);function y(w){return typeof w=="number"&&Math.abs(w-s)<m}if(y(p._mainLinePosition)||y(p._mainMirrorPosition))return!0;var x=p._linepositions||{};for(var T in x)if(y(x[T][0])||y(x[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 Xbe(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&&(Rh.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&&(rv.allowAutoMargin(e,p6(a)),a.mirror&&rv.allowAutoMargin(e,AN(a))),Rh.getComponentMethod("rangeslider","isVisible")(a)&&rv.allowAutoMargin(e,kN(a))}};function p6(e){return e._id+".automargin"}function AN(e){return p6(e)+".mirror"}function kN(e){return e._id+".rangeslider"}Ue.swap=function(e,r){for(var t=Zbe(e,r),a=0;a<t.length;a++)$be(e,t[a].x,t[a].y)};function Zbe(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]],vy(s.x,u.x),vy(s.y,u.y);vy(s.x,[o]),vy(s.y,[l])}}return t}function vy(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function $be(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(cbe),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,m=!1,y=!1;if(!(c.charAt(0)==="_"||typeof v=="function"||u.indexOf(c)!==-1)){for(l=1;l<a.length&&p;l++){var x=a[l][c];c==="type"&&f.indexOf(v)!==-1&&f.indexOf(x)!==-1&&v!==x?m=!0:x!==v&&(p=!1)}for(l=1;l<n.length&&p;l++){var T=n[l][c];c==="type"&&f.indexOf(d)!==-1&&f.indexOf(T)!==-1&&d!==T?y=!0:n[l][c]!==d&&(p=!1)}p&&(m&&(i[a[0]._name].type="linear"),y&&(i[n[0]._name].type="linear"),Jbe(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 Jbe(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 wy(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 Kbe(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function Qbe(e,r){return/%f/.test(r)?e>=mbe:/%L/.test(r)?e>=pbe:/%[SX]/.test(r)?e>=yy:/%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>=my:/%[q]/.test(r)?e>=py:/%[Yy]/.test(r)?e>=dy:!0}});var LN=N((SYe,qN)=>{"use strict";qN.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=N((qYe,CN)=>{"use strict";var e5e=LN();CN.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&&(e5e(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var DN=N((LYe,EN)=>{var r5e={left:0,top:0};EN.exports=t5e;function t5e(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=a5e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function a5e(e){return e===window||e===document||e===document.body?r5e:e.getBoundingClientRect()}});var g6=N((CYe,PN)=>{"use strict";var n5e=Q_();function i5e(){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}PN.exports=n5e&&i5e()});var zN=N((EYe,RN)=>{"use strict";RN.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 FN=N((DYe,IN)=>{"use strict";var NN=ke(),o5e=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];IN.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=NN.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=NN.constrain(Math.floor(t*3),0,2),o5e[t][r]}});var BN=N((PYe,ON)=>{"use strict";var l5e=wh(),s5e=_m(),u5e=dh().getGraphDiv,f5e=$0(),b6=ON.exports={};b6.wrapped=function(e,r,t){var i;e=u5e(e),e._fullLayout&&s5e.clear(e._fullLayout._uid+f5e.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&&l5e.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 Fi=N((RYe,YN)=>{"use strict";var c5e=DN(),x6=r4(),v5e=g6(),h5e=ke().removeElement,d5e=qa(),Qu=YN.exports={};Qu.align=zN();Qu.getCursor=FN();var UN=BN();Qu.unhover=UN.wrapped;Qu.unhoverRaw=UN.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=y,v5e?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(w,b,_){return Math.abs(w)<_&&(w=0),Math.abs(b)<_&&(b=0),[w,b]}var m=r.clampFn||p;function y(w){t._dragged=!1,t._dragging=!0;var b=HN(w);o=b[0],l=b[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=GN(),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",x),document.addEventListener("touchmove",x,{passive:!1}))}function x(w){w.preventDefault();var b=HN(w),_=r.minDrag||d5e.MINDRAG,k=m(b[0]-o,b[1]-l,_),M=k[0],q=k[1];(M||q)&&(t._dragged=!0,Qu.unhover(t,w)),t._dragged&&r.moveFn&&!d&&(t._dragdata={element:i,dx:M,dy:q},r.moveFn(M,q))}function T(w){if(delete t._dragdata,r.dragmode!==!1&&(w.preventDefault(),document.removeEventListener("mousemove",x),document.removeEventListener("touchmove",x)),document.removeEventListener("mouseup",T),document.removeEventListener("touchend",T),x6?h5e(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 b;c.target===v?b=c:(b={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(_=>{var k=c[_];!b[_]&&typeof k!="function"&&(b[_]=k)})),r.clickFn&&r.clickFn(a,b),d||v.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function GN(){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=GN;function HN(e){return c5e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Rs=N((zYe,VN)=>{"use strict";VN.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 XN=N((NYe,WN)=>{"use strict";var _6=Rs(),Bh="data-savedcursor",jN="!!";WN.exports=function(r,t){var a=r.attr(Bh);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(Bh,o.slice(7)).classed(o,!1)}r.attr(Bh)||r.attr(Bh,jN)}_6(r,t)}else a&&(r.attr(Bh,null),a===jN?_6(r):_6(r,a))}});var T6=N((IYe,ZN)=>{"use strict";var w6=ka(),p5e=Ei();ZN.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:p5e.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"},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 Uh=N(Hh=>{"use strict";Hh.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Hh.isVertical=function(r){return r.orientation!=="h"};Hh.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Hh.getId=function(r){return r._id||"legend"}});var A6=N((OYe,$N)=>{"use strict";var Ty=Tr(),mi=ke(),m5e=St(),y5e=Nn(),g5e=T6(),b5e=Pc(),M6=Uh();function x5e(e,r,t,a,n){var i=r[e]||{},o=m5e.newContainer(t,e);function l(Y,X){return mi.coerce(i,o,g5e,Y,X)}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(Y,X){var j=f._input,J=f;return mi.coerce(j,J,y5e,Y,X)},v=t.font||{},d=mi.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,m=!1,y="normal",x=(t.shapes||[]).filter(function(Y){return Y.showlegend});function T(Y){return Ty.traceIs(Y,"pie-like")&&Y._length!=null&&(Array.isArray(Y.legend)||Array.isArray(Y.showlegend))}a.filter(T).forEach(function(Y){Y.visible&&p++;for(var X=0;X<Y._length;X++){var j=(Array.isArray(Y.legend)?Y.legend[X]:Y.legend)||"legend";j===e&&((Array.isArray(Y.showlegend)?Y.showlegend[X]:Y.showlegend)||Y._dfltShowLegend)&&(m=!0,p++)}if(e==="legend"&&Y._length>Y.legend.length)for(var J=Y.legend.length;J<Y._length;J++)m=!0,p++});for(var w=a.concat(x).filter(function(Y){return!T(f)&&e===(Y.legend||"legend")}),b=0;b<w.length;b++)if(f=w[b],!!f.visible){var _=f._isShape;(f.showlegend||f._dfltShowLegend&&!(f._module&&f._module.attributes&&f._module.attributes.showlegend&&f._module.attributes.showlegend.dflt===!1))&&(p++,f.showlegend&&(m=!0,(!_&&Ty.traceIs(f,"pie-like")||f._input.showlegend===!0)&&p++),mi.coerceFont(c,"legendgrouptitle.font",d)),(!_&&Ty.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(y=M6.isGrouped({traceorder:y})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(y=M6.isReversed({traceorder:y})?"reversed+grouped":"grouped")}var k=mi.coerce(r,t,b5e,"showlegend",t.showlegend||m&&p>(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),!(k===!1&&!i.uirevision)&&(l("uirevision",t.uirevision),k!==!1)){l("borderwidth");var M=l("orientation"),q=l("yref"),C=l("xref"),D=M==="h",P=q==="paper",R=C==="paper",I,F,B,U="left";D?(I=0,Ty.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(F=1.1,B="bottom"):(F=1,B="top"):P?(F=-.1,B="top"):(F=0,B="bottom")):(F=1,B="auto",R?I=1.02:(I=1,U="right")),mi.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:I}},"x"),mi.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:F}},"y"),l("traceorder",y),M6.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",U),l("yanchor",B),l("maxheight"),l("valign"),mi.noneOrAll(i,o,["x","y"]);var G=l("title.text");if(G){l("title.side",D?"left":"top");var V=mi.extendFlat({},s,{size:mi.bigFont(s.size)});mi.coerceFont(l,"title.font",V);let Y=n>1;l("titleclick",Y?"toggle":!1),l("titledoubleclick",Y?"toggleothers":!1)}}}$N.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];x5e(f,r,t,i,u.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var q6=N(S6=>{"use strict";var zs=Tr(),k6=ke(),_5e=k6.pushUnique,w5e=Uh(),JN=!0;S6.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;var l=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&JN&&t.data&&t._context.showTips&&(k6.notifier(k6._(t,"Double-click on legend to isolate one trace"),"long",t),JN=!1);var s=l==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData;let c=(i.shapes||[]).filter(Se=>Se.showlegend||Se.legendgroup);var v=f.concat(c),d=o.trace;d._isShape&&(d=i.shapes[d.index]);var p=d.legendgroup,m,y,x,T,w,b,_={},k=[],M=[],q=[];function C(Se,Re){var Ie=k.indexOf(Se),Le=_.visible;return Le||(Le=_.visible=[]),k.indexOf(Se)===-1&&(k.push(Se),Ie=k.length-1),Le[Ie]=Re,Ie}var D=(i.shapes||[]).map(function(Se){return Se._input}),P=!1;function R(Se,Re){D[Se].visible=Re,P=!0}function I(Se,Re){if(!(o.groupTitle&&!s)){var Ie=Se._isShape,Le=Se.index;Le===void 0&&(Le=Se._index);var Ze=Se.visible===!1?!1:Re;Ie?R(Le,Ze):C(Le,Ze)}}var F=d.legend;if(!d._isShape&&zs.traceIs(d,"pie-like")){var B=o.label,U=u.indexOf(B);if(n==="toggle")U===-1?u.push(B):u.splice(U,1);else if(n==="toggleothers"){var G=U!==-1,V=[];for(m=0;m<t.calcdata.length;m++){var Y=t.calcdata[m];for(y=0;y<Y.length;y++){var X=Y[y],j=X.label;F===Y[0].trace.legend&&B!==j&&(u.indexOf(j)===-1&&(G=!0),_5e(u,j),V.push(j))}}if(!G)for(var J=0;J<V.length;J++){var ae=u.indexOf(V[J]);ae!==-1&&u.splice(ae,1)}}zs.call("_guiRelayout",t,"hiddenlabels",u)}else{var te=p&&p.length,se=[],$;if(te)for(m=0;m<v.length;m++)$=v[m],$.visible&&$.legendgroup===p&&se.push(m);if(n==="toggle"){var fe;switch(d.visible){case!0:fe="legendonly";break;case!1:fe=!1;break;case"legendonly":fe=!0;break}if(te)if(s)for(m=0;m<v.length;m++){var oe=v[m];oe.visible!==!1&&oe.legendgroup===p&&I(oe,fe)}else I(d,fe);else I(d,fe)}else if(n==="toggleothers"){var ue,ce,ie,ge,Ce,_e=!0;for(m=0;m<v.length;m++)if(Ce=v[m],ue=Ce===d,ie=Ce.showlegend!==!0,!(ue||ie)&&(ce=te&&Ce.legendgroup===p,!ce&&Ce.legend===F&&Ce.visible===!0&&!zs.traceIs(Ce,"notLegendIsolatable"))){_e=!1;break}for(m=0;m<v.length;m++)if(Ce=v[m],!(Ce.visible===!1||Ce.legend!==F)&&!zs.traceIs(Ce,"notLegendIsolatable"))switch(d.visible){case"legendonly":I(Ce,!0);break;case!0:ge=_e?!0:"legendonly",ue=Ce===d,ie=Ce.showlegend!==!0&&!Ce.legendgroup,ce=ue||te&&Ce.legendgroup===p,I(Ce,ce||ie?!0:ge);break}}for(m=0;m<M.length;m++)if(x=M[m],!!x){var Ee=x.constructUpdate(),Ae=Object.keys(Ee);for(y=0;y<Ae.length;y++)T=Ae[y],b=_[T]=_[T]||[],b[q[m]]=Ee[T]}for(w=Object.keys(_),m=0;m<w.length;m++)for(T=w[m],y=0;y<k.length;y++)_[T].hasOwnProperty(y)||(_[T][y]=void 0);P?zs.call("_guiUpdate",t,_,{shapes:D},k):zs.call("_guiRestyle",t,_,k)}};S6.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,o=w5e.getId(t),l=(n.shapes||[]).filter(x=>x.showlegend||x.legendgroup),s=i.concat(l);function u(x){return(x.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(T){return u(T)&&T.visible===!0}),c=!1;else{let x=s.some(function(T){return!u(T)&&T.visible===!0&&T.showlegend!==!1});f=!0,c=!x}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(x){return x._input});for(var m=!1,y=0;y<s.length;y++){let x=s[y],T=u(x);if(!T){let _=x.showlegend!==!0&&!x.legendgroup;if(a==="toggle"||_)continue}let b=(T?f:c)?!0:"legendonly";x.visible!==!1&&x.visible!==b&&(x._isShape?(p[x._index].visible=b,m=!0):(d.push(x.index),v.visible.push(b)))}m?zs.call("_guiUpdate",r,v,{shapes:p},d):d.length&&zs.call("_guiRestyle",r,v,d)}});var L6=N((HYe,KN)=>{"use strict";KN.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var rI=N((UYe,eI)=>{"use strict";var{isArrayOrTypedArray:C6}=Vn(),QN=Tr(),E6=Uh();eI.exports=function(r,t,a){var n=t._inHover,i=E6.isGrouped(t),o=E6.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function m(X,j,J){if(t.visible!==!1&&!(a&&X!==t._id))if(j===""||!E6.isGrouped(t)){var ae="~~i"+c;s.push(ae),l[ae]=[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 y=r[d],x=y[0],T=x.trace,w=T.legend,b=T.legendgroup;if(!(!n&&(!T.visible||!T.showlegend)))if(QN.traceIs(T,"pie-like")){var _=Array.isArray(T.legend),k=Array.isArray(T.showlegend);for(f[b]||(f[b]={}),p=0;p<y.length;p++)if(!(k&&T.showlegend[y[p].i]===!1)){_&&(w=T.legend[y[p].i]||"legend");var M=y[p].label;f[b][M]||(m(w,b,{label:M,color:y[p].color,i:y[p].i,trace:T,pts:y[p].pts}),f[b][M]=!0,v=Math.max(v,(M||"").length))}}else m(w,b,x),v=Math.max(v,(T.name||"").length)}if(!s.length)return[];var q=!u||!i,C=[];for(d=0;d<s.length;d++){var D=l[s[d]];q?C.push(D[0]):C.push(D)}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,I=C6(R)?Math.min(R):R;P>I&&(P=I)}C[d][0]._groupMinRank=P,C[d][0]._preGroupSort=d}var F=function(X,j){return X[0]._groupMinRank-j[0]._groupMinRank||X[0]._preGroupSort-j[0]._preGroupSort},B=function(X,j){var J=C6(X.trace.legendrank)?X.trace.legendrank[X.i]:X.trace.legendrank,ae=C6(j.trace.legendrank)?j.trace.legendrank[j.i]:j.trace.legendrank;return J-ae||X._preSort-j._preSort};for(C.forEach(function(X,j){X[0]._preGroupSort=j}),C.sort(F),d=0;d<C.length;d++){C[d].forEach(function(X,j){X._preSort=j}),C[d].sort(B);var U=C[d][0].trace,G=null;for(p=0;p<C[d].length;p++){var V=C[d][p].trace.legendgrouptitle;if(V&&V.text){G=V,n&&(V.font=t._groupTitleFont);break}}if(o&&C[d].reverse(),G){var Y=!1;for(p=0;p<C[d].length;p++)if(QN.traceIs(C[d][p].trace,"pie-like")){Y=!0;break}C[d].unshift({i:-1,groupTitle:G,noClick:Y,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 Ay=N(ef=>{"use strict";var My=ke();function tI(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=tI((r*100).toPrecision(3));return My.numSeparate(a,t)+"%"};ef.formatPieValue=function(r,t){var a=tI(r.toPrecision(10));return My.numSeparate(a,t)};ef.getFirstFilled=function(r,t){if(My.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(My.isArrayOrTypedArray(r))return ef.getFirstFilled(r,t);if(r)return r};ef.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var nI=N((YYe,aI)=>{"use strict";var T5e=Xr(),M5e=Sr();aI.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?T5e.pointStyle(r,a,n,t):M5e.fill(r,t.color)}});var ky=N((VYe,lI)=>{"use strict";var iI=Sr(),oI=Ay().castOption,A5e=nI();lI.exports=function(r,t,a,n){var i=a.marker.line,o=oI(i.color,t.pts)||iI.defaultLine,l=oI(i.width,t.pts)||0;r.call(A5e,t,a,n).style("stroke-width",l).call(iI.stroke,o)}});var z6=N((jYe,hI)=>{"use strict";var Mn=Dr(),D6=Tr(),cn=ke(),sI=cn.strTranslate,yi=Xr(),Oi=Sr(),P6=hi().extractOpts,Sy=Jn(),k5e=ky(),S5e=Ay().castOption,q5e=L6(),uI=12,fI=5,rf=2,L5e=10,iv=5;hI.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+q5e.itemGap*2)/2,s=sI(l,0),u=function(M,q,C,D){var P;if(M+1)P=M;else if(q&&q.width>0)P=q.width;else return 0;return i?D:Math.min(P,C)};r.each(function(M){var q=Mn.select(this),C=cn.ensureSingle(q,"g","layers");C.style("opacity",M[0].trace.opacity);var D=a.indentation,P=a.valign,R=M[0].lineHeight,I=M[0].height;if(P==="middle"&&D===0||!R||!I)C.attr("transform",null);else{var F={top:1,bottom:-1}[P],B=F*(.5*(R-I+3))||0,U=a.indentation;C.attr("transform",sI(U,B))}var G=C.selectAll("g.legendfill").data([M]);G.enter().append("g").classed("legendfill",!0);var V=C.selectAll("g.legendlines").data([M]);V.enter().append("g").classed("legendlines",!0);var Y=C.selectAll("g.legendsymbols").data([M]);Y.enter().append("g").classed("legendsymbols",!0),Y.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(d).each(y).each(b).each(w).each(f).each(c).each(x).each(T);function f(M){var q=cI(M),C=q.showFill,D=q.showLine,P=q.showGradientLine,R=q.showGradientFill,I=q.anyFill,F=q.anyLine,B=M[0],U=B.trace,G,V,Y=P6(U),X=Y.colorscale,j=Y.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),X,"fill")}},ae=function(ue){if(ue.size()){var ce="legendline-"+U.uid;yi.lineGroupStyle(ue),yi.gradient(ue,t,ce,R6(j),X,"stroke")}},te=Sy.hasMarkers(U)||!I?"M5,0":F?"M5,-2":"M5,-3",se=Mn.select(this),$=se.select(".legendfill").selectAll("path").data(C||R?[M]:[]);if($.enter().append("path").classed("js-fill",!0),$.exit().remove(),$.attr("d",te+"h"+o+"v6h-"+o+"z").call(J),D||P){var fe=u(void 0,U.line,L5e,fI);V=cn.minExtend(U,{line:{width:fe}}),G=[cn.minExtend(B,{trace:V})]}var oe=se.select(".legendlines").selectAll("path").data(D||P?[G]:[]);oe.enter().append("path").classed("js-line",!0),oe.exit().remove(),oe.attr("d",te+(P?"l"+o+",0.0001":"h"+o)).call(D?yi.lineGroupStyle:ae)}function c(M){var q=cI(M),C=q.anyFill,D=q.anyLine,P=q.showLine,R=q.showMarker,I=M[0],F=I.trace,B=!R&&!D&&!C&&Sy.hasText(F),U,G;function V(fe,oe,ue,ce){var ie=cn.nestedProperty(F,fe).get(),ge=cn.isArrayOrTypedArray(ie)&&oe?oe(ie):ie;if(i&&ge&&ce!==void 0&&(ge=ce),ue){if(ge<ue[0])return ue[0];if(ge>ue[1])return ue[1]}return ge}function Y(fe){return I._distinct&&I.index&&fe[I.index]?fe[I.index]:fe[0]}if(R||B||P){var X={},j={};if(R){X.mc=V("marker.color",Y);var J=F.type==="scattermap";X.mx=J?"circle":V("marker.symbol",Y),X.mo=V("marker.opacity",cn.mean,[.2,1]),X.mlc=V("marker.line.color",Y),X.mlw=V("marker.line.width",cn.mean,[0,5],rf),X.mld=V("marker.line.dash",Y),j.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ae=V("marker.size",cn.mean,[2,16],uI);X.ms=ae,j.marker.size=ae}P&&(j.line={width:V("line.width",Y,[0,10],fI)}),B&&(X.tx="Aa",X.tp=V("textposition",Y),X.ts=10,X.tc=V("textfont.color",Y),X.tf=V("textfont.family",Y),X.tw=V("textfont.weight",Y),X.ty=V("textfont.style",Y),X.tv=V("textfont.variant",Y),X.tC=V("textfont.textcase",Y),X.tE=V("textfont.lineposition",Y),X.tS=V("textfont.shadow",Y)),U=[cn.minExtend(I,X)],G=cn.minExtend(F,j),G.selectedpoints=null,G.texttemplate=null}var te=Mn.select(this).select("g.legendpoints"),se=te.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,G,t),R&&(U[0].mrc=3);var $=te.selectAll("g.pointtext").data(B?U:[]);$.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),$.exit().remove(),$.selectAll("text").call(yi.textPointStyle,G,t)}function v(M){var q=M[0].trace,C=q.type==="waterfall";if(M[0]._distinct&&C){var D=M[0].trace[M[0].dir].marker;return M[0].mc=D.color,M[0].mlw=D.line.width,M[0].mlc=D.line.color,m(M,this,"waterfall")}var P=[];q.visible&&C&&(P=M[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=Mn.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(I){var F=Mn.select(this),B=q[I[0]].marker,U=u(void 0,B.line,iv,rf);F.attr("d",I[1]).style("stroke-width",U+"px").call(Oi.fill,B.color),U&&F.call(Oi.stroke,B.line.color)})}function d(M){m(M,this)}function p(M){m(M,this,"funnel")}function m(M,q,C){var D=M[0].trace,P=D.marker||{},R=P.line||{},I=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",F=C?D.visible&&D.type===C:D6.traceIs(D,"bar"),B=Mn.select(q).select("g.legendpoints").selectAll("path.legend"+C).data(F?[M]:[]);B.enter().append("path").classed("legend"+C,!0).attr("d",I).attr("transform",s),B.exit().remove(),B.each(function(U){var G=Mn.select(this),V=U[0],Y=u(V.mlw,P.line,iv,rf);G.style("stroke-width",Y+"px");var X=V.mcc;if(!a._inHover&&"mc"in V){var j=P6(P),J=j.mid;J===void 0&&(J=(j.max+j.min)/2),X=yi.tryColorscale(P,"")(J)}var ae=X||V.mc||P.color,te=P.pattern,se=yi.getPatternAttr,$=te&&(se(te.shape,0,"")||se(te.path,0,""));if($){var fe=se(te.bgcolor,0,null),oe=se(te.fgcolor,0,null),ue=te.fgopacity,ce=vI(te.size,8,10),ie=vI(te.solidity,.5,1),ge="legend-"+D.uid;G.call(yi.pattern,"legend",t,ge,$,ce,ie,X,te.fillmode,fe,oe,ue)}else G.call(Oi.fill,ae);Y&&Oi.stroke(G,V.mlc||R.color)})}function y(M){var q=M[0].trace,C=Mn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&D6.traceIs(q,"box-violin")?[M]:[]);C.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),C.exit().remove(),C.each(function(){var D=Mn.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?uI: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,iv,rf);D.style("stroke-width",R+"px").call(Oi.fill,q.fillcolor),R&&Oi.stroke(D,q.line.color)}})}function x(M){var q=M[0].trace,C=Mn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[M,M]:[]);C.enter().append("path").classed("legendcandle",!0).attr("d",function(D,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(D,P){var R=Mn.select(this),I=q[P?"increasing":"decreasing"],F=u(void 0,I.line,iv,rf);R.style("stroke-width",F+"px").call(Oi.fill,I.fillcolor),F&&Oi.stroke(R,I.line.color)})}function T(M){var q=M[0].trace,C=Mn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[M,M]:[]);C.enter().append("path").classed("legendohlc",!0).attr("d",function(D,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(D,P){var R=Mn.select(this),I=q[P?"increasing":"decreasing"],F=u(void 0,I.line,iv,rf);R.style("fill","none").call(yi.dashLine,I.line.dash,F),F&&Oi.stroke(R,I.line.color)})}function w(M){_(M,this,"pie")}function b(M){_(M,this,"funnelarea")}function _(M,q,C){var D=M[0],P=D.trace,R=C?P.visible&&P.type===C:D6.traceIs(P,C),I=Mn.select(q).select("g.legendpoints").selectAll("path.legend"+C).data(R?[M]:[]);if(I.enter().append("path").classed("legend"+C,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var F=P.marker||{},B=u(S5e(F.line.width,D.pts),F.line,iv,rf),U="pieLike",G=cn.minExtend(P,{marker:{line:{width:B}}},U),V=cn.minExtend(D,{trace:G},U);k5e(I,V,G,t)}}function k(M){var q=M[0].trace,C,D=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":D=[["M-15,-2V4H15V-2Z"]],C=!0;break;case"choropleth":case"choroplethmap":D=[["M-6,-6V6H6V-6Z"]],C=!0;break;case"densitymap":D=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],C="radial";break;case"cone":D=[["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":D=[["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":D=[["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":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],C=!1;break;case"volume":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],C=!0;break;case"isosurface":D=[["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=Mn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(D);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,I){var F=Mn.select(this),B=P6(q),U=B.colorscale,G=B.reversescale,V=function(J){if(J.size()){var ae="legendfill-"+q.uid;yi.gradient(J,t,ae,R6(G,C==="radial"),U,"fill")}},Y;if(U){if(!C){var j=U.length;Y=I===0?U[G?j-1:0][1]:I===1?U[G?0:j-1][1]:U[Math.floor((j-1)/2)][1]}}else{var X=q.vertexcolor||q.facecolor||q.color;Y=cn.isArrayOrTypedArray(X)?X[I]||X[0]:X}F.attr("d",R[0]),Y?F.call(Oi.fill,Y):F.call(V)})}};function R6(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function cI(e){var r=e[0].trace,t=r.contours,a=Sy.hasLines(r)||r.visible&&r.type==="quiver",n=Sy.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 vI(e,r,t){return e&&cn.isArrayOrTypedArray(e)?r:e>t?t:e}});var O6=N((WYe,wI)=>{"use strict";var In=Dr(),da=ke(),I6=va(),tf=Tr(),Cy=wh(),N6=Fi(),pa=Xr(),Gh=Sr(),af=Ca(),dI=q6().handleItemClick,pI=q6().handleTitleClick,xa=L6(),F6=Qa(),xI=F6.LINE_SPACING,lv=F6.FROM_TL,mI=F6.FROM_BR,yI=rI(),C5e=z6(),sv=Uh(),ov=1,E5e=/^legend[0-9]*$/;wI.exports=function(r,t){if(t)gI(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=In.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];gI(r,s)}}};function D5e(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*xI,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 gI(e,r){var t=r||{},a=e._fullLayout,n=sv.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=yI(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&&yI(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(),I6.autoMargin(e,n);var m=da.ensureSingle(o,"g",n,function(q){l||q.attr("pointer-events","all")}),y=da.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),x=da.ensureSingle(m,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});x.call(Gh.stroke,t.bordercolor).call(Gh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=da.ensureSingle(m,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var b;w.text?(b=da.ensureSingle(T,"text",n+"titletext"),b.attr("text-anchor","start").call(pa.font,w.font).text(w.text),Ly(b,T,e,t,ov),!l&&(t.titleclick||t.titledoubleclick)&&z5e(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var _=da.ensureSingle(m,"rect","scrollbar",function(q){q.attr(xa.scrollBarEnterAttrs).call(Gh.fill,xa.scrollBarColor)}),k=T.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(da.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(q){let C=q[0],D=C.trace;if(C.groupTitle){let P=D.legendgroup,R=(a.shapes||[]).filter(function(F){return F.showlegend});return e._fullData.concat(R).some(function(F){return F.legendgroup===P&&(F.legend||"legend")===n&&F.visible===!0})?1:.5}return tf.traceIs(D,"pie-like")?p.indexOf(q[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){In.select(this).call(P5e,e,t)}).call(C5e,e,t).each(function(q){l||q[0].groupTitle&&t.groupclick==="toggleitem"||In.select(this).call(R5e,e,n)}),da.syncOrAsync([I6.previousPromises,function(){return F5e(e,k,M,t,T)},function(){var q=a._size,C=t.borderwidth,D=t.xref==="paper",P=t.yref==="paper";if(w.text){let Ee=(a.shapes||[]).filter(function(Se){return Se.showlegend}),Ae=e._fullData.concat(Ee).some(function(Se){let Re=Se.legend||"legend";var Ie=Array.isArray(Re)?Re.includes(n):Re===n;return Ie&&Se.visible===!0});b.style("opacity",Ae?1:.5)}if(!l){var R,I;D?R=q.l+q.w*t.x-lv[Ey(t)]*t._width:R=a.width*t.x-lv[Ey(t)]*t._width,P?I=q.t+q.h*(1-t.y)-lv[Dy(t)]*t._effHeight:I=a.height*(1-t.y)-lv[Dy(t)]*t._effHeight;var F=O5e(e,n,R,I);if(F)return;if(a.margin.autoexpand){var B=R,U=I;R=D?da.constrain(R,0,a.width-t._width):B,I=P?da.constrain(I,0,a.height-t._effHeight):U,R!==B&&da.log("Constrain "+n+".x to make legend fit inside graph"),I!==U&&da.log("Constrain "+n+".y to make legend fit inside graph")}pa.setTranslate(m,R,I)}if(_.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;l&&(G=t._height),x.attr({width:t._width-C,height:G-C,x:C/2,y:C/2}),pa.setTranslate(T,0,0),y.select("rect").attr({width:t._width-2*C,height:G-2*C,x:C,y:C}),pa.setClipUrl(T,i,e),pa.setRect(_,0,0,0,0),delete t._scrollY}else{var V=Math.max(xa.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),Y=t._effHeight-V-2*xa.scrollBarMargin,X=t._height-t._effHeight,j=Y/X,J=Math.min(t._scrollY||0,X);x.attr({width:t._width-2*C+xa.scrollBarWidth+xa.scrollBarMargin,height:t._effHeight-C,x:C/2,y:C/2}),y.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,V,j),m.on("wheel",function(){J=da.constrain(t._scrollY+In.event.deltaY/X*Y,0,X),ce(J,V,j),J!==0&&J!==X&&In.event.preventDefault()});var ae,te,se,$=function(Ee,Ae,Se){var Re=(Se-Ae)/j+Ee;return da.constrain(Re,0,X)},fe=function(Ee,Ae,Se){var Re=(Ae-Se)/j+Ee;return da.constrain(Re,0,X)},oe=In.behavior.drag().on("dragstart",function(){var Ee=In.event.sourceEvent;Ee.type==="touchstart"?ae=Ee.changedTouches[0].clientY:ae=Ee.clientY,se=J}).on("drag",function(){var Ee=In.event.sourceEvent;Ee.buttons===2||Ee.ctrlKey||(Ee.type==="touchmove"?te=Ee.changedTouches[0].clientY:te=Ee.clientY,J=$(se,ae,te),ce(J,V,j))});_.call(oe);var ue=In.behavior.drag().on("dragstart",function(){var Ee=In.event.sourceEvent;Ee.type==="touchstart"&&(ae=Ee.changedTouches[0].clientY,se=J)}).on("drag",function(){var Ee=In.event.sourceEvent;Ee.type==="touchmove"&&(te=Ee.changedTouches[0].clientY,J=fe(se,ae,te),ce(J,V,j))});T.call(ue)}function ce(Ee,Ae,Se){t._scrollY=e._fullLayout[n]._scrollY=Ee,pa.setTranslate(T,0,-Ee),pa.setRect(_,t._width,xa.scrollBarMargin+Ee*Se,xa.scrollBarWidth,Ae),y.select("rect").attr("y",C+Ee)}if(e._context.edits.legendPosition){var ie,ge,Ce,_e;m.classed("cursor-move",!0),N6.init({element:m.node(),gd:e,prepFn:function(Ee){if(Ee.target!==_.node()){var Ae=pa.getTranslate(m);Ce=Ae.x,_e=Ae.y}},moveFn:function(Ee,Ae){if(Ce!==void 0&&_e!==void 0){var Se=Ce+Ee,Re=_e+Ae;pa.setTranslate(m,Se,Re),ie=N6.align(Se,t._width,q.l,q.l+q.w,t.xanchor),ge=N6.align(Re+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(ie!==void 0&&ge!==void 0){var Ee={};Ee[n+".x"]=ie,Ee[n+".y"]=ge,tf.call("_guiRelayout",e,Ee)}},clickFn:function(Ee,Ae){var Se=o.selectAll("g.traces").filter(function(){var Re=this.getBoundingClientRect();return Ae.clientX>=Re.left&&Ae.clientX<=Re.right&&Ae.clientY>=Re.top&&Ae.clientY<=Re.bottom});Se.size()>0&&_I(e,t,Se,Ee,Ae)}})}}],e)}}function qy(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 _I(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=Cy.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&dI(t,e,r,l)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Cy.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&dI(t,e,r,s)}}function P5e(e,r,t){var a=sv.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?bI(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(Ly,e,r,t).on("edit",function(d){this.text(bI(d,s)).call(Ly,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)}):Ly(c,e,r,t)}function bI(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 R5e(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(Gh.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)),_I(r,l,e,i,In.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(Gh.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:In.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(Cy.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&pI(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Cy.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&pI(r,t,t.titledoubleclick))}))}function Ly(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=sv.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===ov?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*xI,v,d;if(l){var p=pa.bBox(l);v=p.height,d=p.width,a===ov?pa.setTranslate(o,u,u+v*.75):pa.setTranslate(o,0,v*.25)}else{var m="."+s+(a===ov?"title":"")+"text",y=e.select(m),x=af.lineCount(y),T=y.node();if(v=c*x,d=T?pa.bBox(T).width:0,a===ov)t.title.side==="left"&&(d+=xa.itemGap*2),af.positionText(y,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(y,w,-c*((x-1)/2-.3))}}a===ov?(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 F5e(e,r,t,a,n){var i=e._fullLayout,o=sv.getId(a);a||(a=i[o]);var l=i._size,s=sv.isVertical(a),u=sv.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=xa.itemGap,p=a.indentation+a.itemwidth+d*2,m=2*(c+d),y=Dy(a),x=a.y<0||a.y===0&&y==="top",T=a.y>1||a.y===1&&y==="bottom",w=a.tracegroupgap,b={};let{orientation:_,yref:k}=a,{maxheight:M}=a,q=x||T||_!=="v"||k!=="paper";M||(M=q?.5:1);let C=q?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*C,30);var D=0;a._width=0,a._height=0;var P=I5e(a);if(s)t.each(function(Ee){var Ae=Ee[0].height;pa.setTranslate(this,c+P[0],c+P[1]+a._height+Ae/2+d),a._height+=Ae,a._width=Math.max(a._width,Ee[0].width)}),D=p+a._width,a._width+=d+p+v,a._height+=m,u&&(r.each(function(Ee,Ae){pa.setTranslate(this,0,Ae*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=Ey(a),I=a.x<0||a.x===0&&R==="right",F=a.x>1||a.x===1&&R==="left",B=T||x,U=i.width/2;a._maxWidth=Math.max(I?B&&R==="left"?l.l+l.w:U:F?B&&R==="right"?l.r+l.w:U:l.w,2*p);var G=0,V=0;t.each(function(Ee){var Ae=qy(Ee,a,p);G=Math.max(G,Ae),V+=Ae}),D=null;var Y=0;if(u){var X=0,j=0,J=0;r.each(function(){var Ee=0,Ae=0;In.select(this).selectAll("g.traces").each(function(Re){var Ie=qy(Re,a,p),Le=Re[0].height;pa.setTranslate(this,P[0],P[1]+c+d+Le/2+Ae),Ae+=Le,Ee=Math.max(Ee,Ie),b[Re[0].trace.legendgroup]=Ee});var Se=Ee+d;j>0&&Se+c+j>a._maxWidth?(Y=Math.max(Y,j),j=0,J+=X+w,X=Ae):X=Math.max(X,Ae),pa.setTranslate(this,j,J),j+=Se}),a._width=Math.max(Y,j)+c,a._height=J+X+m}else{var ae=t.size(),te=V+v+(ae-1)*d<a._maxWidth,se=0,$=0,fe=0,oe=0;t.each(function(Ee){var Ae=Ee[0].height,Se=qy(Ee,a,p,u),Re=te?Se:G;f||(Re+=d),Re+c+$-d>=a._maxWidth&&(Y=Math.max(Y,oe),$=0,fe+=se,a._height+=se,se=0),pa.setTranslate(this,P[0]+c+$,P[1]+c+fe+Ae/2+d),oe=$+Se+d,$+=Re,se=Math.max(se,Ae)}),te?(a._width=$+v,a._height=se+m):(a._width=Math.max(Y,oe)+v,a._height+=se+m)}}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(Ee){var Ae=In.select(this).select("."+o+"toggle"),Se=Ee[0].height,Re=Ee[0].trace.legendgroup,Ie=qy(Ee,a,p);u&&Re!==""&&(Ie=b[Re]);var Le=ce?p:D||Ie;!s&&!f&&(Le+=d/2),pa.setRect(Ae,0,-Se/2,Le,Se)});var ie=n.select("."+o+"titletext");ie.node()&&D5e(ie,a,c);var ge=n.select("."+o+"titletoggle");if(ge.size()&&ie.node()){var Ce=ie.attr("x")||0,_e=xa.titlePad;pa.setRect(ge,Ce-_e,c,a._titleWidth+2*_e,a._titleHeight+2*_e)}}function O5e(e,r,t,a){var n=e._fullLayout,i=n[r],o=Ey(i),l=Dy(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 I6.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*lv[o],r:i._width*mI[o],b:i._effHeight*mI[l],t:i._effHeight*lv[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 Ey(e){return da.isRightAnchor(e)?"right":da.isCenterAnchor(e)?"center":"left"}function Dy(e){return da.isBottomAnchor(e)?"bottom":da.isMiddleAnchor(e)?"middle":"top"}});var G6=N(U6=>{"use strict";var nf=Dr(),Bl=Fr(),$t=ke(),B5e=$t.pushUnique,B6=$t.strTranslate,H5e=$t.strRotate,U5e=wh(),Bi=Ca(),G5e=XN(),ll=Xr(),_a=Sr(),Py=Fi(),sl=Gr(),Y5e=qa().zindexSeparator,fv=Tr(),gi=qo(),of=$0(),V5e=A6(),j5e=O6(),CI=of.YANGLE,H6=Math.PI*CI/180,W5e=1/Math.sin(H6),X5e=Math.cos(H6),Z5e=Math.sin(H6),Ot=of.HOVERARROWSIZE,Wr=of.HOVERTEXTPAD,TI={box:!0,ohlc:!0,violin:!0,candlestick:!0},$5e={scatter:!0,scattergl:!0,splom:!0};function MI(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(){J5e(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=zI(n),o=NI(n),l=r.map(function(y){var x=y._x0||y.x0||y.x||0,T=y._x1||y.x1||y.x||0,w=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,_=y.eventData;if(_){var k=Math.min(x,T),M=Math.max(x,T),q=Math.min(w,b),C=Math.max(w,b),D=y.trace;if(fv.traceIs(D,"gl3d")){var P=n._fullLayout[D.scene]._scene.container,R=P.offsetLeft,I=P.offsetTop;k+=R,M+=R,q+=I,C+=I}_.bbox={x0:k+o,x1:M+o,y0:q+i,y1:C+i},_.xPixel=(x+T)/2,_.yPixel=(w+b)/2,t.inOut_bbox&&t.inOut_bbox.push(_.bbox)}else _=!1;return{color:y.color||_a.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:_}}),s=!1,u=DI(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(y,x){return y.y0-x.y0}).each(function(y,x){var T=y.y0-y.by/2;T-c<v?y.offset=v-T+c:y.offset=0,v=T+y.by+y.offset,x===t.anchorIndex&&(d=y.offset)}).each(function(y){y.offset-=d});var p=n._fullLayout._invScaleX,m=n._fullLayout._invScaleY;return RI(f,s,p,m),a?f:f.node()};function J5e(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(Y5e)[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",m,y;if(c&&(d||p)&&s==="axis"){for(var x=i.length,T=0;T<x;T++)if(o=i[T],u[o]){m=sl.getFromId(e,o,"x"),y=sl.getFromId(e,o,"y");var w=(d?m:y)._subplotsWith;if(w&&w.length)for(var b=0;b<w.length;b++)B5e(i,w[b])}}if(f&&s!=="single"){var _=f.overlays.map(function(vr){return vr.id});i=i.concat(_)}for(var k=i.length,M=new Array(k),q=new Array(k),C=!1,D=0;D<k;D++)if(o=i[D],u[o])C=!0,M[D]=u[o].xaxis,q[D]=u[o].yaxis;else if(l[o]&&l[o]._subplot){var P=l[o]._subplot;M[D]=P.xaxis,q[D]=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 Py.unhoverRaw(e,r);var R=l.hoverdistance;R===-1&&(R=1/0);var I=l.spikedistance;I===-1&&(I=1/0);var F=[],B=[],U,G,V,Y,X,j,J,ae,te,se,$,fe,oe,ue={hLinePoint:null,vLinePoint:null},ce=!1;if(Array.isArray(r))for(v="array",V=0;V<r.length;V++)X=e.calcdata[r[V].curveNumber||0],X&&(j=X[0].trace,X[0].trace.hoverinfo!=="skip"&&(B.push(X),j.orientation==="h"&&(ce=!0)));else{var ie=e.calcdata.slice();for(ie.sort(function(vr,_t){var Yr=vr[0].trace.zorder||0,vt=_t[0].trace.zorder||0;return Yr-vt}),Y=0;Y<ie.length;Y++)X=ie[Y],j=X[0].trace,j.hoverinfo!=="skip"&&gi.isTraceInSubplots(j,i)&&(B.push(X),j.orientation==="h"&&(ce=!0));var ge=!n,Ce,_e;if(ge)"xpx"in r?Ce=r.xpx:Ce=M[0]._length/2,"ypx"in r?_e=r.ypx:_e=q[0]._length/2;else{if(U5e.triggerHandler(e,"plotly_beforehover",r)===!1)return;var Ee=n.getBoundingClientRect();Ce=r.clientX-Ee.left,_e=r.clientY-Ee.top,l._calcInverseTransform(e);var Ae=$t.apply3DTransform(l._invTransform)(Ce,_e);if(Ce=Ae[0],_e=Ae[1],Ce<0||Ce>M[0]._length||_e<0||_e>q[0]._length)return Py.unhoverRaw(e,r)}if(r.pointerX=Ce+M[0]._offset,r.pointerY=_e+q[0]._offset,"xval"in r?U=gi.flat(i,r.xval):U=gi.p2c(M,Ce),"yval"in r?G=gi.flat(i,r.yval):G=gi.p2c(q,_e),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Bl(U[0])||!Bl(G[0]))return $t.warn("Fx.hover failed",r,e),Py.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=U,e._hoverYVals=G,e._hoverXAxes=M,e._hoverYAxes=q);var Se=1/0;function Re(vr,_t){for(Y=0;Y<B.length;Y++)if(X=B[Y],!(!X||!X[0]||!X[0].trace)&&(j=X[0].trace,!(j.visible!==!0||j._length===0)&&["carpet","contourcarpet"].indexOf(j._module.name)===-1)){if(te=v,gi.isUnifiedHover(te)&&(te=te.charAt(0)),j.type==="splom"?(ae=0,J=i[ae]):(J=gi.getSubplot(j),ae=i.indexOf(J)),fe={cd:X,trace:j,xa:M[ae],ya:q[ae],maxHoverDistance:R,maxSpikeDistance:I,index:!1,distance:Math.min(Se,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]),te==="array"){var Yr=r[Y];if("pointNumber"in Yr){let aa=X[Yr.pointNumber];aa&&(fe.index=Yr.pointNumber,aa.lonlat?(se=aa.lonlat[0],$=aa.lonlat[1]):(se=aa.x,$=aa.y)),te="closest"}else te="","xval"in Yr&&(se=Yr.xval,te="x"),"yval"in Yr&&($=Yr.yval,te=te?"closest":"y")}else vr!==void 0&&_t!==void 0?(se=vr,$=_t):(se=U[ae],$=G[ae]);if(oe=F.length,R!==0)if(j._module&&j._module.hoverPoints){var vt=j._module.hoverPoints(fe,se,$,te,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:s,gd:e});if(vt)for(var Rt,At=0;At<vt.length;At++)Rt=vt[At],Bl(Rt.x0)&&Bl(Rt.y0)&&F.push(rxe(Rt,v))}else $t.log("Unrecognized trace type in hover:",j);if(v==="closest"&&F.length>oe&&(F.splice(0,oe),Se=F[0].distance),c&&I!==0&&F.length===0){fe.distance=I,fe.index=!1;var tt=j._module.hoverPoints(fe,se,$,"closest",{hoverLayer:l._hoverlayer});if(tt&&(tt=tt.filter(function(aa){return aa.spikeDistance<=I})),tt&&tt.length){var ra,Dn=tt.filter(function(aa){return aa.xa.showspikes&&aa.xa.spikesnap!=="hovered data"});if(Dn.length){var Vt=Dn[0];Bl(Vt.x0)&&Bl(Vt.y0)&&(ra=Le(Vt),(!ue.vLinePoint||ue.vLinePoint.spikeDistance>ra.spikeDistance)&&(ue.vLinePoint=ra))}var Ct=tt.filter(function(aa){return aa.ya.showspikes&&aa.ya.spikesnap!=="hovered data"});if(Ct.length){var ta=Ct[0];Bl(ta.x0)&&Bl(ta.y0)&&(ra=Le(ta),(!ue.hLinePoint||ue.hLinePoint.spikeDistance>ra.spikeDistance)&&(ue.hLinePoint=ra))}}}}}Re();function Ie(vr,_t,Yr){for(var vt=null,Rt=1/0,At,tt=0;tt<vr.length;tt++)m&&m._id!==vr[tt].xa._id||y&&y._id!==vr[tt].ya._id||(At=vr[tt].spikeDistance,Yr&&tt===0&&(At=-1/0),At<=Rt&&At<=_t&&(vt=vr[tt],Rt=At));return vt}function Le(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 Ze={fullLayout:l,container:l._hoverlayer,event:r},Je=e._spikepoints,We={vLinePoint:ue.vLinePoint,hLinePoint:ue.hLinePoint};e._spikepoints=We;var qe=function(){var vr=F.filter(function(Yr){return m&&m._id===Yr.xa._id&&y&&y._id===Yr.ya._id}),_t=F.filter(function(Yr){return!(m&&m._id===Yr.xa._id&&y&&y._id===Yr.ya._id)});vr.sort(MI),_t.sort(MI),F=vr.concat(_t),F=axe(F,v)};qe();var ze=v.charAt(0),Qe=(ze==="x"||ze==="y")&&F[0]&&$5e[F[0].trace.type];if(c&&I!==0&&F.length!==0){var re=F.filter(function(vr){return vr.ya.showspikes}),be=Ie(re,I,Qe);ue.hLinePoint=Le(be);var Ge=F.filter(function(vr){return vr.xa.showspikes}),cr=Ie(Ge,I,Qe);ue.vLinePoint=Le(cr)}if(F.length===0){var Pe=Py.unhoverRaw(e,r);if(c&&(ue.hLinePoint!==null||ue.vLinePoint!==null)&&SI(Je)&&kI(e,ue,Ze),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&&SI(Je)&&kI(e,ue,Ze),gi.isXYhover(te)&&F[0].length!==0&&F[0].trace.type!=="splom"){var Me=F[0];TI[Me.trace.type]?F=F.filter(vr=>vr.trace.index===Me.trace.index):F=[Me];var He=F.length,Xe=LI("x",Me,l),Oe=LI("y",Me,l);Re(Xe,Oe);var je=[],tr={},ir=0,lr=function(vr){var _t=TI[vr.trace.type]?EI(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)}},De;for(De=0;De<He;De++)lr(F[De]);for(De=F.length-1;De>He-1;De--)lr(F[De]);F=je,qe()}var $e=e._hoverdata,Fe=[],pr=zI(e),mr=NI(e);for(let vr of F){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,ye=vr.x1+vr.xa._offset,Ne=vr.y0+vr.ya._offset,Be=vr.y1+vr.ya._offset,$r=Math.min(ne,ye),Kr=Math.max(ne,ye),mt=Math.min(Ne,Be),yt=Math.max(Ne,Be);sr.bbox={x0:$r+mr,x1:Kr+mr,y0:mt+pr,y1:yt+pr},sr.xPixel=(ne+ye)/2,sr.yPixel=(Ne+Be)/2}vr.eventData=[sr],Fe.push(sr)}e._hoverdata=Fe;var Lt=v==="y"&&(B.length>1||F.length>1)||v==="closest"&&ce&&F.length>1,Qt=_a.combine(l.plot_bgcolor||_a.background,l.paper_bgcolor),Va=DI(F,{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)||(Q5e(ea,Lt,l,Va.commonLabelBoundingBox),RI(ea,Lt,l._invScaleX,l._invScaleY)),n&&n.tagName){var ja=fv.getComponentMethod("annotations","hasClickToShow")(e,Fe);G5e(nf.select(n),ja?"pointer":"")}var ln=txe(e,r,$e);if(!n||a||!ln&&!l.hoveranywhere)return;$e&&ln&&e.emit("plotly_unhover",{event:r,points:$e}),oa(e._hoverdata);function oa(vr){e.emit("plotly_hover",{event:r,points:vr,xaxes:M,yaxes:q,xvals:gi.c2dApply(M,U),yvals:gi.c2dApply(q,G),xPixel:r.pointerX,yPixel:r.pointerY})}}function EI(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 K5e=/<extra>([\s\S]*)<\/extra>/;function DI(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,m=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,x=r.fontShadow||a.font.shadow,T=e[0],w=T.xa,b=T.ya,_=n.charAt(0),k=_+"Label",M=T[k];if(M===void 0&&w.type==="multicategory")for(var q=0;q<e.length&&(M=e[q][k],M===void 0);q++);var C=uv(t,s),D=C.top,P=C.width,R=C.height,I=M!==void 0&&T.distance<=r.hoverdistance&&(n==="x"||n==="y");if(I){var F=!0,B,U;for(B=0;B<e.length;B++)if(F&&e[B].zLabel===void 0&&(F=!1),U=e[B].hoverinfo||e[B].trace.hoverinfo,U){var G=Array.isArray(U)?U:U.split("+");if(G.indexOf("all")===-1&&G.indexOf(n)===-1){I=!1;break}}F&&(I=!1)}var V=l.selectAll("g.axistext").data(I?[0]:[]);V.enter().append("g").classed("axistext",!0),V.exit().remove();var Y={minX:0,maxX:0,minY:0,maxY:0};if(V.each(function(){var Pe=nf.select(this),me=$t.ensureSingle(Pe,"path","",function(mt){mt.style({"stroke-width":"1px"})}),Me=$t.ensureSingle(Pe,"text","",function(mt){mt.attr("data-notex",1)}),He=u.bgcolor||_a.defaultLine,Xe=u.bordercolor||_a.contrast(He),Oe=_a.contrast(He),je=u.font,tr={weight:je.weight||v,style:je.style||d,variant:je.variant||p,textcase:je.textcase||m,lineposition:je.lineposition||y,shadow:je.shadow||x,family:je.family||f,size:je.size||c,color:je.color||Oe};me.style({fill:He,stroke:Xe}),Me.text(M).call(ll.font,tr).call(Bi.positionText,0,0).call(Bi.convertToTspans,t),Pe.attr("transform","");var ir=uv(t,Me.node()),lr,De;if(n==="x"){var $e=w.side==="top"?"-":"";Me.attr("text-anchor","middle").call(Bi.positionText,0,w.side==="top"?D-ir.bottom-Ot-Wr:D-ir.top+Ot+Wr),lr=w._offset+(T.x0+T.x1)/2,De=b._offset+(w.side==="top"?0:b._length);var Fe=ir.width/2+Wr,pr=lr;lr<Fe?pr=Fe:lr>a.width-Fe&&(pr=a.width-Fe),me.attr("d","M"+(lr-pr)+",0L"+(lr-pr+Ot)+","+$e+Ot+"H"+Fe+"v"+$e+(Wr*2+ir.height)+"H"+-Fe+"V"+$e+Ot+"H"+(lr-pr-Ot)+"Z"),lr=pr,Y.minX=lr-Fe,Y.maxX=lr+Fe,w.side==="top"?(Y.minY=De-(Wr*2+ir.height),Y.maxY=De-Wr):(Y.minY=De+Wr,Y.maxY=De+(Wr*2+ir.height))}else{var mr,sr,yr;b.side==="right"?(mr="start",sr=1,yr="",lr=w._offset+w._length):(mr="end",sr=-1,yr="-",lr=w._offset),De=b._offset+(T.y0+T.y1)/2,Me.attr("text-anchor",mr),me.attr("d","M0,0L"+yr+Ot+","+Ot+"V"+(Wr+ir.height/2)+"h"+yr+(Wr*2+ir.width)+"V-"+(Wr+ir.height/2)+"H"+yr+Ot+"V-"+Ot+"Z"),Y.minY=De-(Wr+ir.height/2),Y.maxY=De+(Wr+ir.height/2),b.side==="right"?(Y.minX=lr+Ot,Y.maxX=lr+Ot+(Wr*2+ir.width)):(Y.minX=lr-Ot-(Wr*2+ir.width),Y.maxX=lr-Ot);var ne=ir.height/2,ye=D-ir.top-ne,Ne="clip"+a._uid+"commonlabel"+b._id,Be;if(lr<ir.width+2*Wr+Ot){Be="M-"+(Ot+Wr)+"-"+ne+"h-"+(ir.width-Wr)+"V"+ne+"h"+(ir.width-Wr)+"Z";var $r=ir.width-lr+Wr;Bi.positionText(Me,$r,ye),mr==="end"&&Me.selectAll("tspan").each(function(){var mt=nf.select(this),yt=ll.tester.append("text").text(mt.text()).call(ll.font,tr),Lt=uv(t,yt.node());Math.round(Lt.width)<Math.round(ir.width)&&mt.attr("x",$r-Lt.width),yt.remove()})}else Bi.positionText(Me,sr*(Wr+Ot),ye),Be=null;var Kr=a._topclips.selectAll("#"+Ne).data(Be?[0]:[]);Kr.enter().append("clipPath").attr("id",Ne).append("path"),Kr.exit().remove(),Kr.select("path").attr("d",Be),ll.setClipUrl(Me,Be?Ne:null,t)}Pe.attr("transform",B6(lr,De))}),gi.isUnifiedHover(n)){l.selectAll("g.hovertext").remove();let Pe=e.filter(me=>me.hoverinfo!=="none");if(Pe.length===0)return[];var X=a.hoverlabel,j=X.font,J=Pe[0],ae=((n==="x unified"?J.xa:J.ya).unifiedhovertitle||{}).text,te=ae?$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:ae}):M,se={showlegend:!0,legend:{title:{text:te,font:j},font:j,bgcolor:X.bgcolor,bordercolor:X.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},$={font:j};V5e(se,$,t._fullData);var fe=$.legend;fe.entries=[];for(var oe=0;oe<Pe.length;oe++){var ue=Pe[oe];if(ue.hoverinfo!=="none"){var ce=AI(ue,!0,n,a,M),ie=ce[0],ge=ce[1];ue.name=ge,ge!==""?ue.text=ge+" : "+ie:ue.text=ie;var Ce=ue.cd[ue.index];Ce&&(Ce.mc&&(ue.mc=Ce.mc),Ce.mcc&&(ue.mc=Ce.mcc),Ce.mlc&&(ue.mlc=Ce.mlc),Ce.mlcc&&(ue.mlc=Ce.mlcc),Ce.mlw&&(ue.mlw=Ce.mlw),Ce.mrc&&(ue.mrc=Ce.mrc),Ce.dir&&(ue.dir=Ce.dir)),ue._distinct=!0,fe.entries.push([ue])}}fe.entries.sort(function(me,Me){var He=a.hoversort;if(He==="value descending"||He==="value ascending"){var Xe=n.charAt(0)==="x"?"y":"x",Oe=me[0][Xe+"LabelVal"],je=Me[0][Xe+"LabelVal"];if(Oe!==je)return He==="value descending"?je-Oe:Oe-je}return me[0].trace.index-Me[0].trace.index}),fe.layer=l,fe._inHover=!0,fe._groupTitleFont=X.grouptitlefont,j5e(t,fe);var _e=l.select("g.legend"),Ee=uv(t,_e.node()),Ae=Ee.width+2*Wr,Se=Ee.height+2*Wr,Re=Pe[0],Ie=(Re.x0+Re.x1)/2,Le=(Re.y0+Re.y1)/2,Ze=!(fv.traceIs(Re.trace,"bar-like")||fv.traceIs(Re.trace,"box-violin")),Je,We;_==="y"?Ze?(We=Le-Wr,Je=Le+Wr):(We=Math.min.apply(null,Pe.map(function(me){return Math.min(me.y0,me.y1)})),Je=Math.max.apply(null,Pe.map(function(me){return Math.max(me.y0,me.y1)}))):We=Je=$t.mean(Pe.map(function(me){return(me.y0+me.y1)/2}))-Se/2;var qe,ze;_==="x"?Ze?(qe=Ie+Wr,ze=Ie-Wr):(qe=Math.max.apply(null,Pe.map(function(me){return Math.max(me.x0,me.x1)})),ze=Math.min.apply(null,Pe.map(function(me){return Math.min(me.x0,me.x1)}))):qe=ze=$t.mean(Pe.map(function(me){return(me.x0+me.x1)/2}))-Ae/2;var Qe=w._offset,re=b._offset;Je+=re,qe+=Qe,ze+=Qe-Ae,We+=re-Se;var be,Ge;return qe+Ae<P&&qe>=0?be=qe:ze+Ae<P&&ze>=0?be=ze:Qe+Ae<P?be=Qe:qe-Ie<Ie-ze+Ae?be=P-Ae:be=0,be+=Wr,Je+Se<R&&Je>=0?Ge=Je:We+Se<R&&We>=0?Ge=We:re+Se<R?Ge=re:Je-Le<Le-We+Se?Ge=R-Se:Ge=0,Ge+=Wr,_e.attr("transform",B6(be-1,Ge-1)),_e}var cr=l.selectAll("g.hovertext").data(e,function(Pe){return EI(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:m,lineposition:y,shadow:x,family:f,size:c})}),cr.exit().remove(),cr.each(function(Pe){var me=nf.select(this).attr("transform",""),Me=Pe.color;Array.isArray(Me)&&(Me=Me[Pe.eventData[0].pointNumber]);var He=Pe.bgcolor||Me,Xe=_a.combine(_a.opacity(He)?He:_a.defaultLine,o),Oe=_a.combine(_a.opacity(Me)?Me:_a.defaultLine,o),je=Pe.borderColor||_a.contrast(Xe),tr=AI(Pe,I,n,a,M,me),ir=tr[0],lr=tr[1],De=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||m,lineposition:Pe.fontLineposition||y,shadow:Pe.fontShadow||x}).text(ir).attr("data-notex",1).call(Bi.positionText,0,0).call(Bi.convertToTspans,t),$e=me.select("text.name"),Fe=0,pr=0;if(lr&&lr!==ir){$e.call(ll.font,{family:Pe.fontFamily||f,size:Pe.fontSize||c,color:Oe,weight:Pe.fontWeight||v,style:Pe.fontStyle||d,variant:Pe.fontVariant||p,textcase:Pe.fontTextcase||m,lineposition:Pe.fontLineposition||y,shadow:Pe.fontShadow||x}).text(lr).attr("data-notex",1).call(Bi.positionText,0,0).call(Bi.convertToTspans,t);var mr=uv(t,$e.node());Fe=mr.width+2*Wr,pr=mr.height+2*Wr}else $e.remove(),me.select("rect").remove();me.select("path").style({fill:Xe,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),ye=Math.abs(Pe.y1-Pe.y0),Ne=uv(t,De.node()),Be=Ne.width/a._invScaleX,$r=Ne.height/a._invScaleY;Pe.ty0=(D-Ne.top)/a._invScaleY,Pe.bx=Be+2*Wr,Pe.by=Math.max($r+2*Wr,pr),Pe.anchor="start",Pe.txwidth=Be,Pe.tx2width=Fe,Pe.offset=0;var Kr=(Be+Ot+Wr+Fe)*a._invScaleX,mt,yt;if(i)Pe.pos=sr,mt=yr+ye/2+Kr<=R,yt=yr-ye/2-Kr>=0,(Pe.idealAlign==="top"||!mt)&&yt?(yr-=ye/2,Pe.anchor="end"):mt?(yr+=ye/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}De.attr("text-anchor",Pe.anchor),Fe&&$e.attr("text-anchor",Pe.anchor),me.attr("transform",B6(sr,yr)+(i?H5e(CI):""))}),{hoverLabels:cr,commonLabelBoundingBox:Y}}function AI(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=qI(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(K5e,(p,m)=>(o=qI(m,e.nameLength),""))}return[l,o]}function Q5e(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,m=function(U){return U*t._invScaleX},y=function(U){return U*t._invScaleY};e.each(function(U){var G=U[n],V=U[i],Y=G._id.charAt(0)==="x",X=G.range;f===0&&X&&X[0]>X[1]!==Y&&(l=-1);var j=0,J=Y?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ae=PI(U,r),te=U.anchor,se=te==="end"?-1:1,$,fe;if(te==="middle")$=U.crossPos+(Y?y(ae.y-U.by/2):m(U.bx/2+U.tx2width/2)),fe=$+(Y?y(U.by):m(U.bx));else if(Y)$=U.crossPos+y(Ot+ae.y)-y(U.by/2-Ot),fe=$+y(U.by);else{var oe=m(se*Ot+ae.x),ue=oe+m(se*U.bx);$=U.crossPos+Math.min(oe,ue),fe=U.crossPos+Math.max(oe,ue)}Y?d!==void 0&&p!==void 0&&Math.min(fe,p)-Math.max($,d)>1&&(V.side==="left"?(j=V._mainLinePosition,J=t.width):J=V._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(fe,v)-Math.max($,c)>1&&(V.side==="top"?(j=V._mainLinePosition,J=t.height):J=V._mainLinePosition)}u[f++]=[{datum:U,traceIndex:U.trace.index,dp:0,pos:U.pos,posref:U.posref,size:U.by*(Y?W5e:1)/2,pmin:j,pmax:J}]}),u.sort(function(U,G){return U[0].posref-G[0].posref||l*(G[0].traceIndex-U[0].traceIndex)});var x,T,w,b,_,k,M;function q(U){var G=U[0],V=U[U.length-1];if(T=G.pmin-G.pos-G.dp+G.size,w=V.pos+V.dp+V.size-G.pmax,T>.01){for(_=U.length-1;_>=0;_--)U[_].dp+=T;x=!1}if(!(w<.01)){if(T<-.01){for(_=U.length-1;_>=0;_--)U[_].dp-=w;x=!1}if(x){var Y=0;for(b=0;b<U.length;b++)k=U[b],k.pos+k.dp+k.size>G.pmax&&Y++;for(b=U.length-1;b>=0&&!(Y<=0);b--)k=U[b],k.pos>G.pmax-1&&(k.del=!0,Y--);for(b=0;b<U.length&&!(Y<=0);b++)if(k=U[b],k.pos<G.pmin+1)for(k.del=!0,Y--,w=k.size*2,_=U.length-1;_>=0;_--)U[_].dp-=w;for(b=U.length-1;b>=0&&!(Y<=0);b--)k=U[b],k.pos+k.dp+k.size>G.pmax&&(k.del=!0,Y--)}}}for(;!x&&o<=s;){for(o++,x=!0,b=0;b<u.length-1;){var C=u[b],D=u[b+1],P=C[C.length-1],R=D[0];if(T=P.pos+P.dp+P.size-R.pos-R.dp+R.size,T>.01){for(_=D.length-1;_>=0;_--)D[_].dp+=T;for(C.push.apply(C,D),u.splice(b+1,1),M=0,_=C.length-1;_>=0;_--)M+=C[_].dp;for(w=M/C.length,_=C.length-1;_>=0;_--)C[_].dp-=w;x=!1}else b++}u.forEach(q)}for(b=u.length-1;b>=0;b--){var I=u[b];for(_=I.length-1;_>=0;_--){var F=I[_],B=F.datum;B.offset=F.dp,B.del=F.del}}}function PI(e,r){var t=0,a=e.offset;return r&&(a*=-Z5e,t=e.offset*X5e),{x:t,y:a}}function exe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ot+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 RI(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=exe(o),v=PI(o,r),d=v.x,p=v.y,m=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,x;m?x="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?x="M0,0L"+n(f*Ot+d)+","+i(Ot+p)+"v"+i(o.by/2-Ot)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Ot+d)+"V"+i(p-Ot)+"Z":x="M"+n(f*Ot+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",x);var T=d+c.textShiftX,w=p+o.ty0-o.by/2+Wr,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=m?-o.bx/2-o.tx2width/2+Wr:-o.bx-Wr):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=m?o.bx/2-o.tx2width/2-Wr:o.bx+Wr)),s.call(Bi.positionText,n(T),i(w)),o.tx2width&&(l.select("text.name").call(Bi.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 rxe(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Bl(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 m=l(d,p);o(m)&&(e[v]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=$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 kI(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 m=f.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var y=_a.wcagContrast(v.color,c)<1.5?_a.contrast(c):v.color,x=f.spikemode,T=f.spikethickness,w=f.spikecolor||y,b=sl.getPxPosition(e,f),_,k;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(_=b,k=d),x.indexOf("across")!==-1){var M=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),q=Math.max(q,f.position)),_=i.l+M*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)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?T:-T),cy:p,r:T,fill:w}).classed("spikeline",!0)}if(s){var C=r.vLinePoint,D,P;u=C&&C.xa,f=C&&C.ya;var R=u.spikesnap;R==="cursor"?(D=o.pointerX,P=o.pointerY):(D=u._offset+C.x,P=f._offset+C.y);var I=_a.wcagContrast(C.color,c)<1.5?_a.contrast(c):C.color,F=u.spikemode,B=u.spikethickness,U=u.spikecolor||I,G=sl.getPxPosition(e,u),V,Y;if(F.indexOf("toaxis")!==-1||F.indexOf("across")!==-1){if(F.indexOf("toaxis")!==-1&&(V=G,Y=P),F.indexOf("across")!==-1){var X=u._counterDomainMin,j=u._counterDomainMax;u.anchor==="free"&&(X=Math.min(X,u.position),j=Math.max(j,u.position)),V=i.t+(1-j)*i.h,Y=i.t+(1-X)*i.h}a.insert("line",":first-child").attr({x1:D,x2:D,y1:V,y2:Y,"stroke-width":B,stroke:U,"stroke-dasharray":ll.dashStyle(u.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:D,x2:D,y1:V,y2:Y,"stroke-width":B+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}F.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:D,cy:G-(u.side!=="top"?B:-B),r:B,fill:U}).classed("spikeline",!0)}}}function txe(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 SI(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function qI(e,r){return Bi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function axe(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o<e.length;o++){var l=e[o];fv.traceIs(l.trace,"bar-like")||fv.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 LI(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 zI=e=>e.offsetTop+e.clientTop,NI=e=>e.offsetLeft+e.clientLeft;function uv(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 Ry=N((ZYe,II)=>{"use strict";var nxe=ke(),ixe=Sr(),oxe=qo().isUnifiedHover;II.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&&oxe(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=ixe.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),nxe.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var OI=N(($Ye,FI)=>{"use strict";var lxe=ke(),sxe=Ry(),uxe=bc();FI.exports=function(r,t){function a(n,i){return lxe.coerce(r,t,uxe,n,i)}sxe(r,t,a)}});var UI=N((JYe,HI)=>{"use strict";var BI=ke(),fxe=Dp(),cxe=Ry();HI.exports=function(r,t,a,n){function i(l,s){return BI.coerce(r,t,fxe,l,s)}var o=BI.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),cxe(r,t,i,o)}});var Y6=N((KYe,GI)=>{"use strict";var vxe=ke(),hxe=bc();GI.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:vxe.coerce(r,t,hxe,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var jI=N((QYe,VI)=>{"use strict";var YI=ke(),dxe=bc(),pxe=Y6(),mxe=Ry();VI.exports=function(r,t){function a(u,f){return YI.coerce(r,t,dxe,u,f)}var n=pxe(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"),mxe(r,t,a),YI.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var ZI=N((eVe,XI)=>{"use strict";var V6=ke(),WI=Tr();XI.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(!WI.traceIs(l,"pie-like")){var s=WI.traceIs(l,"2dMap")?yxe: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 yxe(e,r,t,a){a=a||V6.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var KI=N((rVe,JI)=>{"use strict";var gxe=Tr(),$I=qo(),bxe=G6().hover;JI.exports=function(r,t,a){var n=gxe.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&bxe(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&&$I.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&$I.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 Fn=N((tVe,rF)=>{"use strict";var xxe=Dr(),zy=ke(),_xe=Fi(),Yh=qo(),QI=bc(),eF=G6();rF.exports={moduleType:"component",name:"fx",constants:$0(),schema:{layout:QI},attributes:Dp(),layoutAttributes:QI,supplyLayoutGlobalDefaults:OI(),supplyDefaults:UI(),supplyLayoutDefaults:jI(),calc:ZI(),getDistanceFunction:Yh.getDistanceFunction,getClosest:Yh.getClosest,inbox:Yh.inbox,quadrature:Yh.quadrature,appendArrayPointValue:Yh.appendArrayPointValue,castHoverOption:Txe,castHoverinfo:Mxe,hover:eF.hover,unhover:_xe.unhover,loneHover:eF.loneHover,loneUnhover:wxe,click:KI()};function wxe(e){var r=zy.isD3Selection(e)?e:xxe.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Txe(e,r,t){return zy.castOption(e,r,"hoverlabel."+t)}function Mxe(e,r,t){function a(n){return zy.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return zy.castOption(e,t,"hoverinfo",a)}});var lf=N(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 Ny=N((nVe,tF)=>{"use strict";tF.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 Iy=N((iVe,aF)=>{"use strict";aF.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)"},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 Oy=N((oVe,nF)=>{"use strict";var Fy=32;nF.exports={CIRCLE_SIDES:Fy,i000:0,i090:Fy/4,i180:Fy/2,i270:Fy/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var By=N((lVe,oF)=>{"use strict";var Axe=ke().strTranslate;function iF(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 kxe(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 Sxe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return iF(e,t[r])}}function qxe(e){return Axe(e.xaxis._offset,e.yaxis._offset)}oF.exports={p2r:iF,r2p:kxe,axValue:Sxe,getTransform:qxe}});var Ns=N(Ul=>{"use strict";var Lxe=R4(),uF=Oy(),cv=uF.CIRCLE_SIDES,j6=uF.SQRT2,fF=By(),lF=fF.p2r,sF=fF.r2p,Cxe=[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=Cxe[s]),t+=e[a][i][u],s>0&&s<l-1&&(t+=",")}}return t};Ul.readPaths=function(e,r,t,a){var n=Lxe(e),i=[],o=-1,l=function(){o++,i[o]=[]},s,u=0,f=0,c,v,d=function(){c=u,v=f};d();for(var p=0;p<n.length;p++){var m=[],y,x,T,w,b=n[p][0],_=b;switch(b){case"M":l(),u=+n[p][1],f=+n[p][2],m.push([_,u,f]),d();break;case"Q":case"S":y=+n[p][1],T=+n[p][2],u=+n[p][3],f=+n[p][4],m.push([_,u,f,y,T]);break;case"C":y=+n[p][1],T=+n[p][2],x=+n[p][3],w=+n[p][4],u=+n[p][5],f=+n[p][6],m.push([_,u,f,y,T,x,w]);break;case"T":case"L":u=+n[p][1],f=+n[p][2],m.push([_,u,f]);break;case"H":_="L",u=+n[p][1],m.push([_,u,f]);break;case"V":_="L",f=+n[p][1],m.push([_,u,f]);break;case"A":_="L";var k=+n[p][1],M=+n[p][2];+n[p][4]||(k=-k,M=-M);var q=u-k,C=f;for(s=1;s<=cv/2;s++){var D=2*Math.PI*s/cv;m.push([_,q+k*Math.cos(D),C+M*Math.sin(D)])}break;case"Z":(u!==c||f!==v)&&(u=c,f=v,m.push([_,u,f]));break}for(var P=(t||{}).domain,R=r._fullLayout._size,I=t&&t.xsizemode==="pixel",F=t&&t.ysizemode==="pixel",B=a===!1,U=0;U<m.length;U++){for(s=0;s+2<7;s+=2){var G=m[U][s+1],V=m[U][s+2];G===void 0||V===void 0||(u=G,f=V,t&&(t.xaxis&&t.xaxis.p2r?(B&&(G-=t.xaxis._offset),I?G=sF(t.xaxis,t.xanchor)+G:G=lF(t.xaxis,G)):(B&&(G-=R.l),P?G=P.x[0]+G/R.w:G=G/R.w),t.yaxis&&t.yaxis.p2r?(B&&(V-=t.yaxis._offset),F?V=sF(t.yaxis,t.yanchor)-V:V=lF(t.yaxis,V)):(B&&(V-=R.t),P?V=P.y[1]-V/R.h:V=1-V/R.h)),m[U][s+1]=G,m[U][s+2]=V)}i[o].push(m[U].slice())}}return i};function Vh(e,r){return Math.abs(e-r)<=1e-6}function Hy(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(!Vh(a,n))return!1;var i=e[0][t]-e[3][t],o=e[1][t]-e[2][t];if(!Vh(i,o))return!1}return!Vh(e[0][1],e[1][1])&&!Vh(e[0][1],e[3][1])?!1:!!(Hy(e[0],e[1])*Hy(e[0],e[3]))};Ul.pointsOnEllipse=function(e){var r=e.length;if(r!==cv+1)return!1;r=cv;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!Vh(Hy(e[t],e[i]),Hy(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<cv;u++){var f=u*2*Math.PI/cv;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 Yy=N((uVe,bF)=>{"use strict";var cF=ba(),mF=lf(),Dxe=mF.drawMode,Pxe=mF.openMode,vv=Oy(),vF=vv.i000,hF=vv.i090,dF=vv.i180,pF=vv.i270,Rxe=vv.cos45,zxe=vv.sin45,yF=By(),Uy=yF.p2r,Is=yF.r2p,Nxe=ks(),Ixe=Nxe.clearOutline,Gy=Ns(),Fxe=Gy.readPaths,Oxe=Gy.writePaths,Bxe=Gy.ellipseOver,Hxe=Gy.fixDatesForPaths;function Uxe(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(!Dxe(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=gF(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 m=u;switch(p.type){case"line":case"rect":case"circle":var y=cF.getFromId(a,p.xref);p.xref.charAt(0)==="x"&&y.type.includes("category")?(c("x0",m.x0-(p.x0shift||0)),c("x1",m.x1-(p.x1shift||0))):(c("x0",m.x0),c("x1",m.x1));var x=cF.getFromId(a,p.yref);p.yref.charAt(0)==="y"&&x.type.includes("category")?(c("y0",m.y0-(p.y0shift||0)),c("y1",m.y1-(p.y1shift||0))):(c("y0",m.y0),c("y1",m.y1));break;case"path":c("path",m.path);break}}}return n===void 0?(v.push(u),v):f?f.getUpdateObj():{}}}}function gF(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=Pxe(t),p=Fxe(i,n,l,s),m={editable:!0,visible:o.visible,name:o.name,showlegend:o.showlegend,legend:o.legend,legendwidth:o.legendwidth,legendgroup:o.legendgroup,legendgrouptitle:{text:o.legendgrouptitle.text,font:o.legendgrouptitle.font},legendrank:o.legendrank,label:o.label,xref:c?"paper":u._id,yref:v?"paper":f._id,layer:o.layer,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}};d||(m.fillcolor=o.fillcolor,m.fillrule=o.fillrule);var y;if(p.length===1&&(y=p[0]),y&&y.length===5&&t==="drawrect")m.type="rect",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[2][1],m.y1=y[2][2];else if(y&&t==="drawline")m.type="line",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[1][1],m.y1=y[1][2];else if(y&&t==="drawcircle"){m.type="circle";var x=y[vF][1],T=y[hF][1],w=y[dF][1],b=y[pF][1],_=y[vF][2],k=y[hF][2],M=y[dF][2],q=y[pF][2],C=l.xaxis&&(l.xaxis.type==="date"||l.xaxis.type==="log"),D=l.yaxis&&(l.yaxis.type==="date"||l.yaxis.type==="log");C&&(x=Is(l.xaxis,x),T=Is(l.xaxis,T),w=Is(l.xaxis,w),b=Is(l.xaxis,b)),D&&(_=Is(l.yaxis,_),k=Is(l.yaxis,k),M=Is(l.yaxis,M),q=Is(l.yaxis,q));var P=(T+b)/2,R=(_+M)/2,I=(b-T+w-x)/2,F=(q-k+M-_)/2,B=Bxe({x0:P,y0:R,x1:P+I*Rxe,y1:R+F*zxe});C&&(B.x0=Uy(l.xaxis,B.x0),B.x1=Uy(l.xaxis,B.x1)),D&&(B.y0=Uy(l.yaxis,B.y0),B.y1=Uy(l.yaxis,B.y1)),m.x0=B.x0,m.y0=B.y0,m.x1=B.x1,m.y1=B.y1}else m.type="path",u&&f&&Hxe(p,u,f),m.path=Oxe(p),y=null;return m}bF.exports={newShapes:Uxe,createShapeObj:gF}});var X6=N((fVe,xF)=>{"use strict";var Gxe=lf(),Yxe=Gxe.selectMode,Vxe=ks(),jxe=Vxe.clearOutline,W6=Ns(),Wxe=W6.readPaths,Xxe=W6.writePaths,Zxe=W6.fixDatesForPaths;xF.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(!Yxe(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=Wxe(n,i,l,f),m={xref:s._id,yref:u._id,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}},y;p.length===1&&(y=p[0]),y&&y.length===5&&c==="select"?(m.type="rect",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[2][1],m.y1=y[2][2]):(m.type="path",s&&u&&Zxe(p,s,u),m.path=Xxe(p),y=null),jxe(i);for(var x=t.editHelpers,T=(x||{}).modifyItem,w=[],b=0;b<v.length;b++){var _=i._fullLayout.selections[b];if(!_){w[b]=_;continue}if(w[b]=_._input,f!==void 0&&b===i._fullLayout._activeSelectionIndex){var k=m;switch(_.type){case"rect":T("x0",k.x0),T("x1",k.x1),T("y0",k.y0),T("y1",k.y1);break;case"path":T("path",k.path);break}}}return f===void 0?(w.push(m),w):x?x.getUpdateObj():{}}}}});var jh=N((cVe,_F)=>{"use strict";_F.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 Os=N(Ha=>{"use strict";var fl=jh(),wF=ke(),Fs=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:wF.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=Fs.getRefType(r.xref),n=Fs.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,m,y,x;function T(D,P,R,I){var F;if(D)if(P==="domain")I?F=function(B){return D._offset+D._length*(1-B)}:F=function(B){return D._offset+D._length*B};else{let B=Ha.shapePositionToRange(D);F=function(U){return D._offset+D.r2p(B(U,!0))},R==="path"&&D.type==="date"&&(F=Ha.decodeDate(F))}else I?F=function(B){return i.t+i.h*(1-B)}:F=function(B){return i.l+i.w*B};return F}if(a==="array"?(v=[],o=r.xref.map(function(D){return Fs.getFromId(e,D)}),v=r.xref.map(function(D,P){return T(o[P],Fs.getRefType(D),t,!1)})):(o=Fs.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(D){return Fs.getFromId(e,D)}),d=r.yref.map(function(D,P){return T(l[P],Fs.getRefType(D),t,!0)})):(l=Fs.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return $xe(r,v,d);if(a==="array")s=ul(o[0],r.x0shift),u=ul(o[1],r.x1shift),p=v[0](r.x0)+s,m=v[1](r.x1)+u;else if(s=ul(o,r.x0shift),u=ul(o,r.x1shift),r.xsizemode==="pixel"){let D=v(r.xanchor);p=D+r.x0+s,m=D+r.x1+u}else p=v(r.x0)+s,m=v(r.x1)+u;if(n==="array")f=ul(l[0],r.y0shift),c=ul(l[1],r.y1shift),y=d[0](r.y0)+f,x=d[1](r.y1)+c;else if(f=ul(l,r.y0shift),c=ul(l,r.y1shift),r.ysizemode==="pixel"){let D=d(r.yanchor);y=D-r.y0+f,x=D-r.y1+c}else y=d(r.y0)+f,x=d(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+m+","+x;if(t==="rect")return"M"+p+","+y+"H"+m+"V"+x+"H"+p+"Z";var w=(p+m)/2,b=(y+x)/2,_=Math.abs(w-p),k=Math.abs(b-y),M="A"+_+","+k,q=w+_+","+b,C=w+","+(b-k);return"M"+q+M+" 0 1,1 "+C+M+" 0 0,1 "+q+"Z"};function $xe(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),m=fl.paramIsX[p],y=fl.paramIsY[p],x=fl.numParams[p];let T=m.drawn!==void 0,w=y.drawn!==void 0,b=s?r[f]:r,_=u?t[c]:t;var k=v.slice(1).replace(fl.paramRE,function(M){return m[d]?n==="pixel"?M=b(o)+Number(M):M=b(M):y[d]&&(i==="pixel"?M=_(l)-Number(M):M=_(M)),d++,d>x&&(M="X"),M});return d>x&&(k=k.replace(/[\s,]*X.*/,""),wF.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=N((hVe,AF)=>{"use strict";var Jxe=ke(),cl=Gr(),TF=Ca(),MF=Xr(),Kxe=Ns().readPaths,sf=Os(),Qxe=sf.getPathString,Wh=vm(),e_e=Qa().FROM_TL;AF.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 Wh){var f=typeof Wh[u]=="function",c=!j||Wh.simpleXVariables.includes(u),v=!J||Wh.simpleYVariables.includes(u);if(f&&c&&v){var d=Wh[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=Jxe.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,y={"data-notex":1},x=n.append("g").attr(p).classed("shape-label",!0),T=x.append("text").attr(y).classed("shape-label-text",!0).text(i),w,b,_,k;if(a.path){var M=Qxe(r,a),q=Kxe(M,r);w=1/0,_=1/0,b=-1/0,k=-1/0;for(var C=0;C<q.length;C++)for(var D=0;D<q[C].length;D++)for(var P=q[C][D],R=1;R<P.length;R+=2){var I=P[R],F=P[R+1];w=Math.min(w,I),b=Math.max(b,I),_=Math.min(_,F),k=Math.max(k,F)}}else{let j=Array.isArray(a.xref),J=Array.isArray(a.yref),ae=cl.getFromId(r,j?a.xref[0]:a.xref),te=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),oe=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),ie=(Ce,_e,Ee,Ae)=>sf.getDataToPixel(r,Ee,_e,!1,Ae)(Ce),ge=(Ce,_e,Ee,Ae)=>sf.getDataToPixel(r,Ee,_e,!0,Ae)(Ce);if(a.xsizemode==="pixel"){let Ce=ie(a.xanchor,void 0,ae,fe),_e=sf.getPixelShift(ae,a.x0shift),Ee=sf.getPixelShift(ae,a.x1shift);w=Ce+a.x0+_e,b=Ce+a.x1+Ee}else w=ie(a.x0,a.x0shift,ae,fe),b=ie(a.x1,a.x1shift,te,oe);if(a.ysizemode==="pixel"){let Ce=ge(a.yanchor,void 0,se,ue),_e=sf.getPixelShift(se,a.y0shift),Ee=sf.getPixelShift(se,a.y1shift);_=Ce-a.y0+_e,k=Ce-a.y1+Ee}else _=ge(a.y0,a.y0shift,se,ue),k=ge(a.y1,a.y1shift,$,ce)}var B=a.label.textangle;B==="auto"&&(a.type==="line"?B=r_e(w,_,b,k):B=0),T.call(function(j){return j.call(MF.font,m).attr({}),TF.convertToTspans(j,r),j});var U=MF.bBox(T.node()),G=t_e(w,_,b,k,a,B,U),V=G.textx,Y=G.texty,X=G.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[X],y:Y,x:V,transform:"rotate("+B+","+V+","+Y+")"}).call(TF.positionText,V,Y)}};function r_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 t_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,m=n.label.yanchor,y,x,T,w;if(f==="line"){l==="start"?(y=e,x=r):l==="end"?(y=t,x=a):(y=(e+t)/2,x=(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 b={left:1,center:0,right:-1},_={bottom:-1,middle:0,top:1};if(s==="auto"){var k=_[m];T=-u*v*k,w=u*d*k}else{var M=b[p],q=_[m];T=u*M,w=u*q}y=y+T,x=x+w}else T=u+3,l.indexOf("right")!==-1?(y=Math.max(e,t)-T,p==="auto"&&(p="right")):l.indexOf("left")!==-1?(y=Math.min(e,t)+T,p==="auto"&&(p="left")):(y=(e+t)/2,p==="auto"&&(p="center")),l.indexOf("top")!==-1?x=Math.min(r,a):l.indexOf("bottom")!==-1?x=Math.max(r,a):x=(r+a)/2,w=u,m==="bottom"?x=x-w:m==="top"&&(x=x+w);var C=e_e[m],D=n.label.font.size,P=o.height,R=(P*C-D)*v,I=-(P*C-D)*d;return{textx:y+R,texty:x+I,xanchor:p}}});var Wy=N((dVe,PF)=>{"use strict";var a_e=ke(),n_e=a_e.strTranslate,kF=Fi(),LF=lf(),i_e=LF.drawMode,CF=LF.selectMode,EF=Tr(),SF=Sr(),jy=Oy(),o_e=jy.i000,l_e=jy.i090,s_e=jy.i180,u_e=jy.i270,f_e=ks(),DF=f_e.clearOutlineControllers,J6=Ns(),Vy=J6.pointsOnRectangle,$6=J6.pointsOnEllipse,c_e=J6.writePaths,v_e=Yy().newShapes,h_e=Yy().createShapeObj,d_e=X6(),p_e=Z6();PF.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(G){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=v_e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=d_e(t,a),i._fullLayout._reselect=!0),Object.keys(V).length&&EF.call((G||{}).redrawing?"relayout":"_guiRelayout",i,V)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=i_e(f),v=CF(f);(c||v)&&(i._fullLayout._outlining=!0),DF(i),t.attr("d",c_e(r));var d,p,m,y,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=m_e([],r);var T=u.append("g").attr("class","outline-controllers");D(T),U()}if(c&&a.hasText){var w=u.select(".label-temp"),b=h_e(t,a,a.dragmode);p_e(i,"label-temp",b,w)}function _(G){m=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(G,V){if(r.length){var Y=x[m][y][1],X=x[m][y][2],j=r[m],J=j.length;if(Vy(j)){var ae=G,te=V;if(a.isActiveSelection){var se=qF(j,y);se[1]===j[y][1]?te=0:ae=0}for(var $=0;$<J;$++)if($!==y){var fe=j[$];fe[1]===j[y][1]&&(fe[1]=Y+ae),fe[2]===j[y][2]&&(fe[2]=X+te)}if(j[y][1]=Y+ae,j[y][2]=X+te,!Vy(j))for(var oe=0;oe<J;oe++)for(var ue=0;ue<j[oe].length;ue++)j[oe][ue]=x[m][oe][ue]}else j[y][1]=Y+G,j[y][2]=X+V;o()}}function M(){l()}function q(){if(r.length&&r[m]&&r[m].length){for(var G=[],V=0;V<r[m].length;V++)V!==y&&G.push(r[m][V]);G.length>1&&!(G.length===2&&G[1][0]==="Z")&&(y===0&&(G[0][0]="M"),r[m]=G,o(),l())}}function C(G,V){if(G===2){m=+V.srcElement.getAttribute("data-i"),y=+V.srcElement.getAttribute("data-j");var Y=r[m];!Vy(Y)&&!$6(Y)&&q()}}function D(G){d=[];for(var V=0;V<r.length;V++){var Y=r[V],X=Vy(Y),j=!X&&$6(Y);d[V]=[];for(var J=Y.length,ae=0;ae<J;ae++)if(Y[ae][0]!=="Z"&&!(j&&ae!==o_e&&ae!==l_e&&ae!==s_e&&ae!==u_e)){var te=X&&a.isActiveSelection,se;te&&(se=qF(Y,ae));var $=Y[ae][1],fe=Y[ae][2],oe=G.append(te?"rect":"circle").attr("data-i",V).attr("data-j",ae).style({fill:SF.background,stroke:SF.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(te){var ue=se[1]-$,ce=se[2]-fe,ie=ce?5:Math.max(Math.min(25,Math.abs(ue)-5),5),ge=ue?5:Math.max(Math.min(25,Math.abs(ce)-5),5);oe.classed(ce?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",ie).attr("height",ge).attr("x",$-ie/2).attr("y",fe-ge/2).attr("transform",n_e(ue/2,ce/2))}else oe.classed("cursor-grab",!0).attr("r",5).attr("cx",$).attr("cy",fe);d[V][ae]={element:oe.node(),gd:i,prepFn:_,doneFn:M,clickFn:C},kF.init(d[V][ae])}}}function P(G,V){if(r.length)for(var Y=0;Y<r.length;Y++)for(var X=0;X<r[Y].length;X++)for(var j=0;j+2<r[Y][X].length;j+=2)r[Y][X][j+1]=x[Y][X][j+1]+G,r[Y][X][j+2]=x[Y][X][j+2]+V}function R(G,V){P(G,V),o()}function I(G){m=+G.srcElement.getAttribute("data-i"),m||(m=0),p[m].moveFn=R}function F(){l()}function B(G){G===2&&y_e(i)}function U(){if(p=[],!!r.length){var G=0;p[G]={element:t[0][0],gd:i,prepFn:I,doneFn:F,clickFn:B},kF.init(p[G])}}};function m_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 qF(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 y_e(e){if(CF(e._fullLayout.dragmode)){DF(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},EF.call("_guiRelayout",e,{selections:a})}}}});var Ky=N((pVe,GF)=>{"use strict";var g_e=Dr(),OF=Tr(),Q6=ke(),uf=Gr(),b_e=Ns().readPaths,x_e=Wy(),Zy=Z6(),BF=ks().clearOutlineControllers,K6=Sr(),$y=Xr(),__e=St().arrayEditor,RF=Fi(),zF=Fn(),NF=Rs(),ff=jh(),Kn=Os(),e7=Kn.getPathString;GF.exports={draw:r7,drawOne:HF,eraseActiveShape:k_e,drawLabel:Zy};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&&HF(e,n)}function Xy(e){return!!e._fullLayout._outlining}function Jy(e){return!e._context.edits.shapePosition}function HF(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,m=a.line.dash;!p&&a.editable===!0&&(p=5,m="solid");var y=u[u.length-1]!=="Z",x=Jy(e)&&a.editable&&e._fullLayout._activeShapeIndex===r;x&&(v=y?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var T=s.append("g").classed("shape-group",!0).attr({"data-index":r}),w=T.append("path").attr(f).style("opacity",c).call(K6.stroke,d).call(K6.fill,v).call($y.dashLine,m,p);UF(T,e,a),Zy(e,r,a,T);var b;if((x||e._context.edits.shapePosition)&&(b=__e(e.layout,"shapes",a)),x){w.style({cursor:"move"});var _={element:w.node(),plotinfo:n,gd:e,editHelpers:b,hasText:a.label.text||a.label.texttemplate,isActiveShape:!0},k=b_e(u,e);x_e(k,w,_)}else e._context.edits.shapePosition?M_e(e,w,a,r,s,b):a.editable===!0&&w.style("pointer-events",y||K6.opacity(v)*c<=.5?"stroke":"all");w.node().addEventListener("click",function(){return A_e(e,w)}),w_e(e,w,n)}}function w_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&&zF.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&zF.click(e,o,t.id)}})}function UF(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=T_e(r,a,n);Q6.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),$y.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");$y.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function T_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,m,y,x,T,w,b,_,k,M,q,C,D,P,R=g_e.select(r.node().parentNode),I=uf.getFromId(e,t.xref),F=uf.getRefType(t.xref),B=uf.getFromId(e,t.yref),U=uf.getRefType(t.yref),G=t.x0shift,V=t.x1shift,Y=t.y0shift,X=t.y1shift,j=function(Ie,Le){var Ze=Kn.getDataToPixel(e,I,Le,!1,F);return Ze(Ie)},J=function(Ie,Le){var Ze=Kn.getDataToPixel(e,B,Le,!0,U);return Ze(Ie)},ae=Kn.getPixelToData(e,I,!1,F),te=Kn.getPixelToData(e,B,!0,U),se=oe(),$={element:se.node(),gd:e,prepFn:ie,doneFn:ge,clickFn:Ce},fe;RF.init($),se.node().onmousemove=ce;function oe(){return f?ue():r}function ue(){var Ie=10,Le=Math.max(t.line.width,Ie),Ze=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ze.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Le,"stroke-opacity":"0"});var Je={"fill-opacity":"0"},We=Math.max(Le/2,Ie);return Ze.append("circle").attr({"data-line-point":"start-point",cx:s?j(t.xanchor)+t.x0:j(t.x0,G),cy:u?J(t.yanchor)-t.y0:J(t.y0,Y),r:We}).style(Je).classed("cursor-grab",!0),Ze.append("circle").attr({"data-line-point":"end-point",cx:s?j(t.xanchor)+t.x1:j(t.x1,V),cy:u?J(t.yanchor)-t.y1:J(t.y1,X),r:We}).style(Je).classed("cursor-grab",!0),Ze}function ce(Ie){if(Xy(e)){fe=null;return}if(f)Ie.target.tagName==="path"?fe="move":fe=Ie.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Le=$.element.getBoundingClientRect(),Ze=Le.right-Le.left,Je=Le.bottom-Le.top,We=Ie.clientX-Le.left,qe=Ie.clientY-Le.top,ze=!c&&Ze>o&&Je>l&&!Ie.shiftKey?RF.getCursor(We/Ze,1-qe/Je):"move";NF(r,ze),fe=ze.split("-")[0]}}function ie(Ie){Xy(e)||(s&&(x=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),m=s?t.x1:j(t.x1),y=u?t.y1:J(t.y1)),d<m?(_=d,C="x0",k=m,D="x1"):(_=m,C="x1",k=d,D="x0"),!u&&p<y||u&&p>y?(w=p,M="y0",b=y,q="y1"):(w=y,M="y1",b=p,q="y0"),ce(Ie),Ae(n,t),Re(r,t,e),$.moveFn=fe==="move"?_e:Ee,$.altKey=Ie.altKey)}function ge(){Xy(e)||(NF(r),Se(n),UF(r,e,t),OF.call("_guiRelayout",e,i.getUpdateObj()))}function Ce(){Xy(e)||Se(n)}function _e(Ie,Le){if(t.type==="path"){var Ze=function(qe){return qe},Je=Ze,We=Ze;s?v("xanchor",t.xanchor=ae(x+Ie)):(Je=function(ze){return ae(j(ze)+Ie)},I&&I.type==="date"&&(Je=Kn.encodeDate(Je))),u?v("yanchor",t.yanchor=te(T+Le)):(We=function(ze){return te(J(ze)+Le)},B&&B.type==="date"&&(We=Kn.encodeDate(We))),v("path",t.path=IF(P,Je,We))}else s?v("xanchor",t.xanchor=ae(x+Ie)):(v("x0",t.x0=ae(d+Ie)),v("x1",t.x1=ae(m+Ie))),u?v("yanchor",t.yanchor=te(T+Le)):(v("y0",t.y0=te(p+Le)),v("y1",t.y1=te(y+Le)));r.attr("d",e7(e,t)),Ae(n,t),Zy(e,a,t,R)}function Ee(Ie,Le){if(c){var Ze=function(je){return je},Je=Ze,We=Ze;s?v("xanchor",t.xanchor=ae(x+Ie)):(Je=function(tr){return ae(j(tr)+Ie)},I&&I.type==="date"&&(Je=Kn.encodeDate(Je))),u?v("yanchor",t.yanchor=te(T+Le)):(We=function(tr){return te(J(tr)+Le)},B&&B.type==="date"&&(We=Kn.encodeDate(We))),v("path",t.path=IF(P,Je,We))}else if(f){if(fe==="resize-over-start-point"){var qe=d+Ie,ze=u?p-Le:p+Le;v("x0",t.x0=s?qe:ae(qe)),v("y0",t.y0=u?ze:te(ze))}else if(fe==="resize-over-end-point"){var Qe=m+Ie,re=u?y-Le:y+Le;v("x1",t.x1=s?Qe:ae(Qe)),v("y1",t.y1=u?re:te(re))}}else{var be=function(je){return fe.indexOf(je)!==-1},Ge=be("n"),cr=be("s"),Pe=be("w"),me=be("e"),Me=Ge?w+Le:w,He=cr?b+Le:b,Xe=Pe?_+Ie:_,Oe=me?k+Ie:k;u&&(Ge&&(Me=w-Le),cr&&(He=b-Le)),(!u&&He-Me>l||u&&Me-He>l)&&(v(M,t[M]=u?Me:te(Me)),v(q,t[q]=u?He:te(He))),Oe-Xe>o&&(v(C,t[C]=s?Xe:ae(Xe)),v(D,t[D]=s?Oe:ae(Oe)))}r.attr("d",e7(e,t)),Ae(n,t),Zy(e,a,t,R)}function Ae(Ie,Le){(s||u)&&Ze();function Ze(){var Je=Le.type!=="path",We=Ie.selectAll(".visual-cue").data([0]),qe=1;We.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":qe}).classed("visual-cue",!0);var ze=j(s?Le.xanchor:Q6.midRange(Je?[Le.x0,Le.x1]:Kn.extractPathCoords(Le.path,ff.paramIsX))),Qe=J(u?Le.yanchor:Q6.midRange(Je?[Le.y0,Le.y1]:Kn.extractPathCoords(Le.path,ff.paramIsY)));if(ze=Kn.roundPositionForSharpStrokeRendering(ze,qe),Qe=Kn.roundPositionForSharpStrokeRendering(Qe,qe),s&&u){var re="M"+(ze-1-qe)+","+(Qe-1-qe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";We.attr("d",re)}else if(s){var be="M"+(ze-1-qe)+","+(Qe-9-qe)+"v18 h2 v-18 Z";We.attr("d",be)}else{var Ge="M"+(ze-9-qe)+","+(Qe-1-qe)+"h18 v2 h-18 Z";We.attr("d",Ge)}}}function Se(Ie){Ie.selectAll(".visual-cue").remove()}function Re(Ie,Le,Ze){var Je=Le.xref,We=Le.yref,qe=uf.getFromId(Ze,Je),ze=uf.getFromId(Ze,We),Qe="";Je!=="paper"&&!qe.autorange&&(Qe+=Je),We!=="paper"&&!ze.autorange&&(Qe+=We),$y.setClipUrl(Ie,Qe?"clip"+Ze._fullLayout._uid+Qe:null,Ze)}}function IF(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 A_e(e,r){if(Jy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){FF(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=FF,r7(e)}}}function FF(e){if(Jy(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(BF(e),delete e._fullLayout._activeShapeIndex,r7(e))}}function k_e(e){if(Jy(e)){BF(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,OF.call("_guiRelayout",e,{shapes:a})}}}});var VF=N((mVe,YF)=>{"use strict";var hv=ke()._,S_e=function(e){return{DIALOG_TITLE:hv(e,"Share chart"),DIALOG_MESSAGE_CLOUD:hv(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:hv(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:hv(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:hv(e,"Cancel"),DIALOG_CONFIRM:hv(e,"Share")}};YF.exports=S_e});var XF=N((yVe,WF)=>{"use strict";var jF=Dr(),{dfltConfig:q_e}=ds(),L_e=VF(),C_e=(e,r,t,a,n)=>{let i=L_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===q_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=jF.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",()=>{jF.event.target===n.node()&&i()}),C_e(e,n,r,()=>{i(),t()},i)};WF.exports=E_e});var n7=N((gVe,rO)=>{"use strict";var Hi=Tr(),D_e=va(),$F=ba(),it=Iy(),P_e=Ky().eraseActiveShape,R_e=XF(),Qy=ke(),Jr=Qy._,ot=rO.exports={};ot.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Jr(e,"Download plot as a PNG"):Jr(e,"Download plot")},icon:it.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Qy.notifier(Jr(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Hi.call("downloadImage",e,t).then(function(a){Qy.notifier(Jr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){Qy.notifier(Jr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ot.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Jr(e,"Share chart...")},icon:it.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}R_e(e,r,function(){D_e.sendDataToCloud(e,r)})}};ot.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Jr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:it.zoombox,click:An};ot.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Jr(e,"Pan")},attr:"dragmode",val:"pan",icon:it.pan,click:An};ot.select2d={name:"select2d",_cat:"select",title:function(e){return Jr(e,"Box Select")},attr:"dragmode",val:"select",icon:it.selectbox,click:An};ot.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Jr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:it.lasso,click:An};ot.drawclosedpath={name:"drawclosedpath",title:function(e){return Jr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:it.drawclosedpath,click:An};ot.drawopenpath={name:"drawopenpath",title:function(e){return Jr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:it.drawopenpath,click:An};ot.drawline={name:"drawline",title:function(e){return Jr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:it.drawline,click:An};ot.drawrect={name:"drawrect",title:function(e){return Jr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:it.drawrect,click:An};ot.drawcircle={name:"drawcircle",title:function(e){return Jr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:it.drawcircle,click:An};ot.eraseshape={name:"eraseshape",title:function(e){return Jr(e,"Erase active shape")},icon:it.eraseshape,click:P_e};ot.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Jr(e,"Zoom in")},attr:"zoom",val:"in",icon:it.zoom_plus,click:An};ot.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Jr(e,"Zoom out")},attr:"zoom",val:"out",icon:it.zoom_minus,click:An};ot.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Jr(e,"Autoscale")},attr:"zoom",val:"auto",icon:it.autoscale,click:An};ot.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Jr(e,"Reset axes")},attr:"zoom",val:"reset",icon:it.home,click:An};ot.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Jr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:it.tooltip_basic,gravity:"ne",click:An};ot.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Jr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:it.tooltip_compare,gravity:"ne",click:An};function An(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=$F.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,m;for(f=0;f<l.length;f++)if(u=l[f],m=u.modebardisable==="none"||u.modebardisable.indexOf(n==="auto"||n==="reset"?"autoscale":"zoominout")===-1,m&&!u.fixedrange)if(p=u._name,n==="auto")o[p+".autorange"]=!0;else if(n==="reset")u._rangeInitial0===void 0&&u._rangeInitial1===void 0?o[p+".autorange"]=!0:u._rangeInitial0===void 0?(o[p+".autorange"]=u._autorangeInitial,o[p+".range"]=[null,u._rangeInitial1]):u._rangeInitial1===void 0?(o[p+".range"]=[u._rangeInitial0,null],o[p+".autorange"]=u._autorangeInitial):o[p+".range"]=[u._rangeInitial0,u._rangeInitial1],u._showSpikeInitial!==void 0&&(o[p+".showspikes"]=u._showSpikeInitial,s==="on"&&!u._showSpikeInitial&&(s="off"));else{var y=[u.r2l(u.range[0]),u.r2l(u.range[1])],x=[v*y[0]+d*y[1],v*y[1]+d*y[0]];o[p+".range[0]"]=u.l2r(x[0]),o[p+".range[1]"]=u.l2r(x[1])}}else a==="hovermode"&&(n==="x"||n==="y")&&(n=i._isHoriz?"y":"x",t.setAttribute("data-val",n)),o[a]=n;i._cartesianSpikesEnabled=s,Hi.call("_guiRelayout",e,o)}ot.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return Jr(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:it.zoombox,click:rg};ot.pan3d={name:"pan3d",_cat:"pan",title:function(e){return Jr(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:it.pan,click:rg};ot.orbitRotation={name:"orbitRotation",title:function(e){return Jr(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:it["3d_rotate"],click:rg};ot.tableRotation={name:"tableRotation",title:function(e){return Jr(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:it["z-axis"],click:rg};function rg(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,Hi.call("_guiRelayout",e,o)}ot.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return Jr(e,"Reset camera to default")},attr:"resetDefault",icon:it.home,click:t7};ot.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return Jr(e,"Reset camera to last save")},attr:"resetLastSave",icon:it.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,m;n?(s[c+".up"]=p.viewInitial.up,s[c+".eye"]=p.viewInitial.eye,s[c+".center"]=p.viewInitial.center,m=!0):i&&(s[c+".up"]=null,s[c+".eye"]=null,s[c+".center"]=null,m=!0),m&&(s[v+".x"]=p.viewInitial.aspectratio.x,s[v+".y"]=p.viewInitial.aspectratio.y,s[v+".z"]=p.viewInitial.aspectratio.z,s[d]=p.viewInitial.aspectmode)}Hi.call("_guiRelayout",e,s)}ot.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return Jr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:it.tooltip_basic,gravity:"ne",click:z_e};function JF(e,r){var t=r.currentTarget,a=t._previousVal,n=e._fullLayout,i=n._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(a)s=a,t._previousVal=null;else{for(var u=0;u<i.length;u++){var f=i[u],c=n[f],v=f+".hovermode";l[v]=c.hovermode,s[v]=!1;for(var d=0;d<3;d++){var p=o[d],m=f+"."+p+".showspikes";s[m]=!1,l[m]=c[p].showspikes}}t._previousVal=l}return s}function z_e(e,r){var t=JF(e,r);Hi.call("_guiRelayout",e,t)}ot.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return Jr(e,"Zoom in")},attr:"zoom",val:"in",icon:it.zoom_plus,click:a7};ot.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return Jr(e,"Zoom out")},attr:"zoom",val:"out",icon:it.zoom_minus,click:a7};ot.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return Jr(e,"Reset")},attr:"reset",val:null,icon:it.autoscale,click:a7};ot.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return Jr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:it.tooltip_basic,gravity:"ne",click:QF};var ZF=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),[m,y]=c.invert(f.midPt),{minscale:x}=u.projection,T=(l=u.projection.maxscale)!=null?l:1/0,w=Math.min(x,T),b=Math.max(x,T),_=n==="in"?ZF*v:1/ZF*v;_>b?_=b:_<w&&(_=w),_!==v&&Hi.call("_guiRelayout",e,{[s+".projection.scale"]:_,[s+".projection.rotation.lon"]:d,[s+".projection.rotation.lat"]:p,[s+".center.lon"]:m,[s+".center.lat"]:y,[s+".fitbounds"]:!1})}}a==="reset"&&eg(e,"geo")}ot.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Jr(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:it.tooltip_basic,gravity:"ne",click:QF};function KF(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function QF(e){var r=KF(e);Hi.call("_guiRelayout",e,"hovermode",r)}ot.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Jr(e,"Reset view")},icon:it.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())}Hi.call("restyle",e,r)}};ot.toggleHover={name:"toggleHover",title:function(e){return Jr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:it.tooltip_basic,gravity:"ne",click:function(e,r){var t=JF(e,r);t.hovermode=KF(e),Hi.call("_guiRelayout",e,t)}};ot.resetViews={name:"resetViews",title:function(e){return Jr(e,"Reset views")},icon:it.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),An(e,r),t.setAttribute("data-attr","resetLastSave"),t7(e,r),eg(e,"geo"),eg(e,"map")}};ot.toggleSpikelines={name:"toggleSpikelines",title:function(e){return Jr(e,"Toggle Spike Lines")},icon:it.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",Hi.call("_guiRelayout",e,N_e(e))}};function N_e(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=$F.list(e,null,!0),n={},i=0;i<a.length;i++){var o=a[i];n[o._name+".showspikes"]=t?!0:o._showSpikeInitial}return n}ot.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return Jr(e,"Reset view")},attr:"reset",icon:it.home,click:function(e){eg(e,"map")}};ot.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return Jr(e,"Zoom in")},attr:"zoom",val:"in",icon:it.zoom_plus,click:eO};ot.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return Jr(e,"Zoom out")},attr:"zoom",val:"out",icon:it.zoom_minus,click:eO};function eO(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}Hi.call("_guiRelayout",e,s)}function eg(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]}Hi.call("_guiRelayout",e,n)}});var i7=N((bVe,iO)=>{"use strict";var tO=n7(),F_e=Object.keys(tO),aO=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],nO=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(aO),dv=[],O_e=function(e){if(nO.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();dv.indexOf(r)===-1&&dv.push(r),dv.indexOf(t)===-1&&dv.push(t)}};F_e.forEach(function(e){O_e(tO[e])});dv.sort();iO.exports={DRAW_MODES:aO,backButtons:nO,foreButtons:dv}});var l7={};dc(l7,{default:()=>H_e});var o7,B_e,H_e,s7=hc(()=>{"use strict";o7=cs(i7()),B_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(" ")}},H_e=B_e});var lO=N((xVe,oO)=>{"use strict";var U_e=ke(),Xh=Sr(),G_e=St(),Y_e=(s7(),un(l7)).default;oO.exports=function(r,t){var a=r.modebar||{},n=G_e.newContainer(t,"modebar");function i(l,s){return U_e.coerce(a,n,Y_e,l,s)}i("orientation"),i("bgcolor",Xh.addOpacity(t.paper_bgcolor,.5));var o=Xh.contrast(Xh.rgb(t.modebar.bgcolor));i("color",Xh.addOpacity(o,.3)),i("activecolor",Xh.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var cO=N((_Ve,fO)=>{"use strict";var u7=Dr(),V_e=Fr(),tg=ke(),sO=Iy(),j_e=V0().version,W_e=new DOMParser;function uO(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var vl=uO.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(),tg.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||sO.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};vl.createIcon=function(e){var r=V_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=W_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:tg.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 X_e(e){return e+" (v"+j_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",X_e(tg._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(sO.newplotlylogo)),e.appendChild(r),e};vl.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};vl.destroy=function(){tg.removeElement(this.container.querySelector(".modebar"))};function Z_e(e,r){var t=e._fullLayout,a=new uO({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}fO.exports=Z_e});var dO=N((wVe,hO)=>{"use strict";var $_e=ba(),vO=Jn(),f7=Tr(),J_e=qo().isUnifiedHover,K_e=cO(),ag=n7(),Q_e=i7().DRAW_MODES,e4e=ke().extendDeep;hO.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=o4e(i):!a.displayModeBar&&a.watermark?o=[]:o=r4e(r),n?n.update(r,o):t._modeBar=K_e(r,o)};function r4e(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 Y=V.name,X=V._cat||V.name;if(Y===G||X===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"),m=r._has("map"),y=r._has("polar"),x=r._has("smith"),T=r._has("sankey"),w=t4e(r),b=J_e(r.hovermode),_=[];function k(G){if(G.length){for(var V=[],Y=0;Y<G.length;Y++){for(var X=G[Y],j=ag[X],J=j.name.toLowerCase(),ae=(j._cat||j.name).toLowerCase(),te=!1,se=0;se<s.length;se++){var $=s[se].toLowerCase();if($===J||$===ae){te=!0;break}}te||V.push(ag[X])}_.push(V)}}var M=["toImage"];a.showSendToCloud&&M.push("sendChartToCloud"),k(M);var q=[],C=[],D=[],P=[];(u||v||d||p)+c+f+m+y+x>1?(C=["toggleHover"],D=["resetViews"]):c?(q=["zoomInGeo","zoomOutGeo"],C=["hoverClosestGeo"],D=["resetGeo"]):f?(C=["hoverClosest3d"],D=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(q=["zoomInMap","zoomOutMap"],C=["toggleHover"],D=["resetViewMap"]):v?C=["hoverClosestPie"]:T?(C=["hoverClosestCartesian","hoverCompareCartesian"],D=["resetViewSankey"]):C=["toggleHover"],u&&C.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(n4e(t)||b)&&(C=[]),u&&!w&&(q=["zoomIn2d","zoomOut2d","autoScale2d"],D[0]!=="resetViews"&&(D=["resetScale2d"])),f?P=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!w||p?P=["zoom2d","pan2d"]:m||c?P=["pan2d"]:y&&(P=["zoom2d"]),a4e(t)&&P.push("select2d","lasso2d");var R=[],I=function(G){R.indexOf(G)===-1&&C.indexOf(G)!==-1&&R.push(G)};if(Array.isArray(l)){for(var F=[],B=0;B<l.length;B++){var U=l[B];typeof U=="string"?(U=U.toLowerCase(),Q_e.indexOf(U)!==-1?(r._has("map")||r._has("cartesian"))&&P.push(U):U==="togglespikelines"?I("toggleSpikelines"):U==="togglehover"?I("toggleHover"):U==="hovercompare"?I("hoverCompareCartesian"):U==="hoverclosest"?(I("hoverClosestCartesian"),I("hoverClosestGeo"),I("hoverClosest3d"),I("hoverClosestPie")):U==="v1hovermode"&&(I("hoverClosestCartesian"),I("hoverCompareCartesian"),I("hoverClosestGeo"),I("hoverClosest3d"),I("hoverClosestPie"))):F.push(U)}l=F}return k(P),k(q.concat(D)),k(R),i4e(_,l)}function t4e(e){for(var r=$_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 a4e(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"?(vO.hasMarkers(a)||vO.hasText(a))&&(r=!0):f7.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function n4e(e){for(var r=0;r<e.length;r++)if(!f7.traceIs(e[r],"noHover"))return!1;return!0}function i4e(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 o4e(e){for(var r=e4e([],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(ag[i]!==void 0)r[t][n]=ag[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var c7=N((TVe,pO)=>{"use strict";pO.exports={moduleType:"component",name:"modebar",layoutAttributes:(s7(),un(l7)).default,supplyLayoutDefaults:lO(),manage:dO()}});var v7=N((MVe,mO)=>{"use strict";var l4e=Qa().FROM_BL;mO.exports=function(r,t,a){a===void 0&&(a=l4e[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=N(Zh=>{"use strict";var cf=ke(),h7=Dh(),Co=ba().id2name,s4e=Ni(),yO=v7(),u4e=ev(),f4e=Gt().ALMOST_EQUAL,c4e=Qa().FROM_BL;Zh.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],v4e(c,v,{axIds:a,layoutOut:r,hasImage:n[f]});function m(q,C){for(l=0;l<q.length;l++){s=q[l];for(u in s)r[Co(u)][C]=s}}for(m(o,"_matchGroup"),l=0;l<i.length;l++){s=i[l];for(u in s)if(v=r[Co(u)],v.fixedrange){for(var y in s){var x=Co(y);(e[x]||{}).fixedrange===!1&&cf.warn("fixedrange was specified as false for axis "+x+" but was overridden because another axis in its constraint group has fixedrange true"),r[x].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++}m(i,"_constraintGroup");var T=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],w=!1,b=!1;function _(){p=v[d],d==="rangebreaks"&&(b=v._hasDayOfWeekBreaks)}for(l=0;l<o.length;l++){s=o[l];for(var k=0;k<T.length;k++){d=T[k],p=null;var M;for(u in s)if(f=Co(u),c=e[f],v=r[f],d in v){if(!v.matches&&(M=v,d in c)){_();break}p===null&&d in c&&_()}if(d==="range"&&p&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null&&(w=!0),d==="autorange"&&p===null&&w&&(p=!1),p===null&&d in M&&(p=M[d]),p!==null)for(u in s)v=r[Co(u)],v[d]=d==="range"?p.slice():p,d==="rangebreaks"&&(v._hasDayOfWeekBreaks=b,u4e(v,r))}}};function v4e(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,I){return cf.coerce(e,r,s4e,R,I)}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,m,y,x=[];for(m=0;m<a.length;m++)if(y=a[m],y!==c){var T=n[Co(y)];T.type===p&&x.push(y)}var w=xO(o,c);if(w){var b=[];for(m=0;m<x.length;m++)y=x[m],w[y]||b.push(y);x=b}var _=x.length,k,M;_&&(e.matches||f.matches)&&(k=cf.coerce(e,r,{matches:{valType:"enumerated",values:x,dflt:x.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var q=i&&!v?r.anchor:void 0;if(_&&!k&&(e.scaleanchor||q)&&(M=cf.coerce(e,r,{scaleanchor:{valType:"enumerated",values:x.concat([!1])}},"scaleanchor",q)),k){r._matchGroup=d7(l,c,k,1);var C=n[Co(k)],D=gO(n,r)/gO(n,C);v!==(k.charAt(0)==="x")&&(D=(v?"x":"y")+D),d7(o,c,k,D)}else e.matches&&a.indexOf(e.matches)!==-1&&cf.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(M){var P=d("scaleratio");P||(P=r.scaleratio=1),d7(o,c,M,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 gO(e,r){var t=r.domain;return t||(t=e[Co(r.overlaying)].domain),t[1]-t[0]}function xO(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=xO(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 h4e(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}Zh.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=h4e(a[n],t);var v=Object.keys(o),d=1/0,p=0,m=1/0,y={},x={},T=!1;for(i=0;i<v.length;i++)l=v[i],x[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(),y[l]=u=Math.abs(s._m)/o[l],d=Math.min(d,u),(s.constrain==="domain"||!s._constraintShrinkable)&&(m=Math.min(m,u)),delete s._constraintShrinkable,p=Math.max(p,u),s.constrain==="domain"&&(T=!0);if(!(d>f4e*p&&!T)){for(i=0;i<v.length;i++)if(l=v[i],u=y[l],s=x[l],f=s.constrain,u!==m||f==="domain")if(c=u/m,f==="range")yO(s,c);else{var w=s._inputDomain,b=(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/=b,c*_<1){s.domain=s._input.domain=w.slice(),yO(s,c);continue}if(_<1&&(s.range=s._input.range=s._inputRange.slice(),c*=_),s.autorange){var k=s.r2l(s.range[0]),M=s.r2l(s.range[1]),q=(k+M)/2,C=q,D=q,P=Math.abs(M-q),R=q-P*c*1.0001,I=q+P*c*1.0001,F=h7.makePadFn(t,s,0),B=h7.makePadFn(t,s,1);bO(s,c);var U=Math.abs(s._m),G=h7.concatExtremes(r,s),V=G.min,Y=G.max,X,j;for(j=0;j<V.length;j++)X=V[j].val-F(V[j])/U,X>R&&X<C&&(C=X);for(j=0;j<Y.length;j++)X=Y[j].val+B(Y[j])/U,X<I&&X>D&&(D=X);var J=(D-C)/(2*P);c/=J,C=s.l2r(C),D=s.l2r(D),s.range=s._input.range=k<M?[C,D]:[D,C]}bO(s,c)}}}};Zh.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};Zh.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 bO(e,r){var t=e._inputDomain,a=c4e[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 og=N(Na=>{"use strict";var ig=Dr(),kn=Tr(),bi=va(),Ui=ke(),m7=Ca(),y7=Ny(),$h=Sr(),pv=Xr(),_O=Qc(),kO=c7(),Jh=Gr(),Gl=Qa(),SO=vf(),d4e=SO.enforce,p4e=SO.clean,wO=Dh().doAutoRange,qO="start",m4e="middle",LO="end",y4e=qa().zindexSeparator;Na.layoutStyles=function(e){return Ui.syncOrAsync([bi.doAutoMargin,b4e],e)};function g4e(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 b4e(e){var r=e._fullLayout,t=r._size,a=t.p,n=Jh.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(pv.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Na.drawMainTitle(e),kO.manage(e),!r._has("cartesian"))return bi.previousPromises(e);function c(ie,ge,Ce){var _e=ie._lw/2;if(ie._id.charAt(0)==="x"){if(ge){if(Ce==="top")return ge._offset-a-_e}else return t.t+t.h*(1-(ie.position||0))+_e%1;return ge._offset+ge._length+a+_e}if(ge){if(Ce==="right")return ge._offset+ge._length+a+_e}else return t.l+t.w*(ie.position||0)+_e%1;return ge._offset-a-_e}for(i=0;i<n.length;i++){s=n[i];var v=s._anchorAxis;s._linepositions={},s._lw=pv.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=[],m=[],y=$h.opacity(r.paper_bgcolor)===1&&$h.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 x=l.xaxis.domain,T=l.yaxis.domain,w=l.plotgroup;if(g4e(x,T,m)&&o.indexOf(y4e)===-1){var b=w.node(),_=l.bg=Ui.ensureSingle(w,"rect","bg");b.insertBefore(_.node(),b.childNodes[0]),p.push(o)}else w.select("rect.bg").remove(),m.push([x,T]),y||(d.push(o),p.push(o))}var k=r._bgLayer.selectAll(".bg").data(d);for(k.enter().append("rect").classed("bg",!0),k.exit().remove(),k.each(function(ie){r._plots[ie].bg=ig.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(pv.setRect,u._offset-a,f._offset-a,u._length+2*a,f._length+2*a).call($h.fill,r.plot_bgcolor).style("stroke-width",0);if(!r._hasOnlyLargeSploms)for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var M=l.clipId="clip"+r._uid+o+"plot",q=Ui.ensureSingleById(r._clips,"clipPath",M,function(ie){ie.classed("plotclip",!0).append("rect")});l.clipRect=q.select("rect").attr({width:u._length,height:f._length}),pv.setTranslate(l.plot,u._offset,f._offset);var C,D;l._hasClipOnAxisFalse?(C=null,D=M):(C=M,D=null),pv.setClipUrl(l.plot,C,e),l.layerClipId=D}var P,R,I,F,B,U,G,V,Y,X,j,J,ae;function te(ie){return"M"+P+","+ie+"H"+R}function se(ie){return"M"+u._offset+","+ie+"h"+u._length}function $(ie){return"M"+ie+","+V+"V"+G}function fe(ie){return f._shift!==void 0&&(ie+=f._shift),"M"+ie+","+f._offset+"v"+f._length}function oe(ie,ge,Ce){if(!ie.showline||o!==ie._mainSubplot)return"";if(!ie._anchorAxis)return Ce(ie._mainLinePosition);var _e=ge(ie._mainLinePosition);return ie.mirror&&(_e+=ge(ie._mainMirrorPosition)),_e}for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var ue="M0,0";TO(u,o)&&(B=ng(u,"left",f,n),P=u._offset-(B?a+B:0),U=ng(u,"right",f,n),R=u._offset+u._length+(U?a+U:0),I=c(u,f,"bottom"),F=c(u,f,"top"),ae=!u._anchorAxis||o!==u._mainSubplot,ae&&(u.mirror==="allticks"||u.mirror==="all")&&(u._linepositions[o]=[I,F]),ue=oe(u,te,se),ae&&u.showline&&(u.mirror==="all"||u.mirror==="allticks")&&(ue+=te(I)+te(F)),l.xlines.style("stroke-width",u._lw+"px").call($h.stroke,u.showline?u.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",ue);var ce="M0,0";TO(f,o)&&(j=ng(f,"bottom",u,n),G=f._offset+f._length+(j?a:0),J=ng(f,"top",u,n),V=f._offset-(J?a:0),Y=c(f,u,"left"),X=c(f,u,"right"),ae=!f._anchorAxis||o!==f._mainSubplot,ae&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[o]=[Y,X]),ce=oe(f,$,fe),ae&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(ce+=$(Y)+$(X)),l.ylines.style("stroke-width",f._lw+"px").call($h.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ce)}return Jh.makeClipPaths(e),bi.previousPromises(e)}function TO(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function MO(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 ng(e,r,t,a){if(MO(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&MO(e,r,i))return i._lw}return 0}Na.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=k4e(t),n=S4e(t),i=A4e(t,n),o=M4e(t,a);if(_O.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=ig.select(e).selectAll(".gtitle"),s=pv.bBox(ig.select(e).selectAll(".g-gtitle").node()).height,u=w4e(e,r,s);if(u>0){T4e(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:AO(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 y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var v=ig.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,m=p+_O.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:AO(r.yanchor)}).call(m7.positionText,o,m)}}}};function x4e(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 _4e(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 w4e(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=_4e(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function T4e(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"&&x4e(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),bi.allowAutoMargin(e,n),bi.autoMargin(e,n,l)}function M4e(e,r){var t=e.title,a=e._size,n=0;return r===qO?n=t.pad.l:r===LO&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function A4e(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 AO(e){return e==="top"?Gl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Gl.MID_SHIFT+"em"}function k4e(e){var r=e.title,t=m4e;return Ui.isRightAnchor(r)?t=LO:Ui.isLeftAnchor(r)&&(t=qO),t}function S4e(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}Na.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),Na.redrawReglTraces(e)}return bi.style(e),kn.getComponentMethod("legend","draw")(e),bi.previousPromises(e)};Na.doColorBars=function(e){return kn.getComponentMethod("colorbar","draw")(e),bi.previousPromises(e)};Na.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,kn.call("_doPlot",e,"",r)};Na.doLegend=function(e){return kn.getComponentMethod("legend","draw")(e),bi.previousPromises(e)};Na.doTicksRelayout=function(e){var r=Jh.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(kn.subplotsRegistry.splom.updateGrid(e),y7(e),Na.redrawReglTraces(e)),Na.drawMainTitle(e),Promise.resolve(r).then(function(){return bi.previousPromises(e)})};Na.doModeBar=function(e){var r=e._fullLayout;kO.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return bi.previousPromises(e)};Na.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)}};Na.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 Na.redrawReglTraces(e),bi.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,bi.previousPromises(e)};Na.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()}};Na.doAutoRangeAndConstraints=function(e){for(var r=Jh.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,p4e(e,t),wO(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=Jh.getFromId(e,o);wO(e,l,t.range),a[o]=1}}d4e(e)};Na.finalDraw=function(e){kn.getComponentMethod("rangeslider","draw")(e),kn.getComponentMethod("rangeselector","draw")(e)};Na.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=N((SVe,RO)=>{"use strict";var q4e=Ns().readPaths,L4e=Wy(),CO=ks().clearOutlineControllers,g7=Sr(),EO=Xr(),C4e=St().arrayEditor,DO=Os(),E4e=DO.getPathString;RO.exports={draw:lg,drawOne:PO,activateLastSelection:R4e};function lg(e){var r=e._fullLayout;CO(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++)PO(e,n)}function sg(e){return e._context.editSelection}function PO(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=DO.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=sg(e)&&e._fullLayout._activeSelectionIndex===r;p&&(f=e._fullLayout.activeselection.fillcolor,u=e._fullLayout.activeselection.opacity);for(var m=[],y=1;y>=0;y--){var x=o.append("path").attr(s).style("opacity",y?.1:u).call(g7.stroke,c).call(g7.fill,f).call(EO.dashLine,y?"solid":d,y?4+v:v);if(D4e(x,e,a),p){var T=C4e(e.layout,"selections",a);x.style({cursor:"move"});var w={element:x.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},b=q4e(l,e);L4e(b,x,w)}else x.style("pointer-events",y?"all":"none");m[y]=x}var _=m[0],k=m[1];k.node().addEventListener("click",function(){return P4e(e,_)})}}function D4e(e,r,t){var a=t.xref+t.yref;EO.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function P4e(e,r){if(sg(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,lg(e)}}}function R4e(e){if(sg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=b7,lg(e)}}function b7(e){if(sg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(CO(e),delete e._fullLayout._activeSelectionIndex,lg(e))}}});var NO=N((qVe,zO)=>{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}zO.exports=z4e});var FO=N((LVe,IO)=>{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,m={alongA:0,alongB:0,pt:[t[0]+d*o,t[1]+d*l]};return d<=-e?m.alongA=-2:d<e?m.alongA=-1:d-1<=-e?m.alongA=0:d-1<e?m.alongA=1:m.alongA=2,p<=-e?m.alongB=-2:p<e?m.alongB=-1:p-1<=-e?m.alongB=0:p-1<e?m.alongB=1:m.alongB=2,m},pointInsideRegion:function(t,a){for(var n=t[0],i=t[1],o=a[a.length-1][0],l=a[a.length-1][1],s=!1,u=0;u<a.length;u++){var f=a[u][0],c=a[u][1];c-i>e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}IO.exports=N4e});var BO=N((CVe,OO)=>{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}};OO.exports=I4e});var UO=N((EVe,HO)=>{var Kh=BO();function F4e(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Kh.create();function o(p,m,y,x,T,w){var b=r.pointsCompare(m,T);return b!==0?b:r.pointsSame(y,w)?0:p!==x?p?1:-1:r.pointAboveOrOnLine(y,x?T:w,x?w:T)?1:-1}function l(p,m){i.insertBefore(p,function(y){var x=o(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return x<0})}function s(p,m){var y=Kh.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(y,p.end),y}function u(p,m,y){var x=Kh.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=x,l(x,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,l(p.other,p.pt)}function v(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function d(p,m){var y=Kh.create();function x(B,U){var G=B.seg.start,V=B.seg.end,Y=U.seg.start,X=U.seg.end;return r.pointsCollinear(G,Y,X)?r.pointsCollinear(V,Y,X)||r.pointAboveOrOnLine(V,Y,X)?1:-1:r.pointAboveOrOnLine(G,Y,X)?1:-1}function T(B){return y.findTransition(function(U){var G=x(B,U.ev);return G>0})}function w(B,U){var G=B.seg,V=U.seg,Y=G.start,X=G.end,j=V.start,J=V.end;t&&t.checkIntersection(G,V);var ae=r.linesIntersect(Y,X,j,J);if(ae===!1){if(!r.pointsCollinear(Y,X,j)||r.pointsSame(Y,J)||r.pointsSame(X,j))return!1;var te=r.pointsSame(Y,j),se=r.pointsSame(X,J);if(te&&se)return U;var $=!te&&r.pointBetween(Y,j,J),fe=!se&&r.pointBetween(X,j,J);if(te)return fe?v(U,X):v(B,J),U;$&&(se||(fe?v(U,X):v(B,J)),v(U,Y))}else ae.alongA===0&&(ae.alongB===-1?v(B,j):ae.alongB===0?v(B,ae.pt):ae.alongB===1&&v(B,J)),ae.alongB===0&&(ae.alongA===-1?v(U,Y):ae.alongA===0?v(U,ae.pt):ae.alongA===1&&v(U,X));return!1}for(var b=[];!i.isEmpty();){var _=i.getHead();if(t&&t.vert(_.pt[0]),_.isStart){let B=function(){if(M){var U=w(_,M);if(U)return U}return q?w(_,q):!1};var F=B;t&&t.segmentNew(_.seg,_.primary);var k=T(_),M=k.before?k.before.ev:null,q=k.after?k.after.ev:null;t&&t.tempStatus(_.seg,M?M.seg:!1,q?q.seg:!1);var C=B();if(C){if(e){var D;_.seg.myFill.below===null?D=!0:D=_.seg.myFill.above!==_.seg.myFill.below,D&&(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 D;_.seg.myFill.below===null?D=!0:D=_.seg.myFill.above!==_.seg.myFill.below,q?_.seg.myFill.below=q.seg.myFill.above:_.seg.myFill.below=p,D?_.seg.myFill.above=!_.seg.myFill.below:_.seg.myFill.above=_.seg.myFill.below}else if(_.seg.otherFill===null){var P;q?_.primary===q.primary?P=q.seg.otherFill.above:P=q.seg.myFill.above:P=_.primary?m:p,_.seg.otherFill={above:P,below:P}}t&&t.status(_.seg,M?M.seg:!1,q?q.seg:!1),_.other.status=k.insert(Kh.node({ev:_}))}else{var R=_.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(R.prev)&&y.exists(R.next)&&w(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!_.primary){var I=_.seg.myFill;_.seg.myFill=_.seg.otherFill,_.seg.otherFill=I}b.push(_.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(p){for(var m,y=p[p.length-1],x=0;x<p.length;x++){m=y,y=p[x];var T=r.pointsCompare(m,y);T!==0&&f(a(T<0?m:y,T<0?y:m),!0)}},calculate:function(p){return d(p,!1)}}:{calculate:function(p,m,y,x){return p.forEach(function(T){f(n(T.start,T.end,T),!0)}),y.forEach(function(T){f(n(T.start,T.end,T),!1)}),d(m,x)}}}HO.exports=F4e});var YO=N((DVe,GO)=>{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(F,B,U){return f.index=F,f.matches_head=B,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],m=d[1],y=d[d.length-1],x=d[d.length-2];if(r.pointsSame(p,o)){if(c(v,!0,!0))break}else if(r.pointsSame(p,l)){if(c(v,!0,!1))break}else if(r.pointsSame(y,o)){if(c(v,!1,!0))break}else if(r.pointsSame(y,l)&&c(v,!1,!1))break}if(f===s){a.push([o,l]),t&&t.chainNew(o,l);return}if(f===u){t&&t.chainMatch(s.index);var T=s.index,w=s.matches_pt1?l:o,b=s.matches_head,d=a[T],_=b?d[0]:d[d.length-1],k=b?d[1]:d[d.length-2],M=b?d[d.length-1]:d[0],q=b?d[d.length-2]:d[1];if(r.pointsCollinear(k,_,w)&&(b?(t&&t.chainRemoveHead(s.index,w),d.shift()):(t&&t.chainRemoveTail(s.index,w),d.pop()),_=k),r.pointsSame(M,w)){a.splice(T,1),r.pointsCollinear(q,M,_)&&(b?(t&&t.chainRemoveTail(s.index,_),d.pop()):(t&&t.chainRemoveHead(s.index,_),d.shift())),t&&t.chainClose(s.index),n.push(d);return}b?(t&&t.chainAddHead(s.index,w),d.unshift(w)):(t&&t.chainAddTail(s.index,w),d.push(w));return}function C(F){t&&t.chainReverse(F),a[F].reverse()}function D(F,B){var U=a[F],G=a[B],V=U[U.length-1],Y=U[U.length-2],X=G[0],j=G[1];r.pointsCollinear(Y,V,X)&&(t&&t.chainRemoveTail(F,V),U.pop(),V=Y),r.pointsCollinear(V,X,j)&&(t&&t.chainRemoveHead(B,X),G.shift()),t&&t.chainJoin(F,B),a[F]=U.concat(G),a.splice(B,1)}var P=s.index,R=u.index;t&&t.chainConnect(P,R);var I=a[P].length<a[R].length;s.matches_head?u.matches_head?I?(C(P),D(P,R)):(C(R),D(R,P)):D(R,P):u.matches_head?D(P,R):I?(C(P),D(R,P)):(C(R),D(P,R))}),n}GO.exports=O4e});var jO=N((PVe,VO)=>{function Qh(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 B4e={union:function(e,r){return Qh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Qh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Qh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Qh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Qh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};VO.exports=B4e});var XO=N((RVe,WO)=>{var H4e={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s<i.length;s++)l=e.selectDifference(e.combine(l,o(i[s])));return l}if(r.type==="Polygon")return e.polygon(t(r.coordinates));if(r.type==="MultiPolygon"){for(var a=e.segments({inverted:!1,regions:[]}),n=0;n<r.coordinates.length;n++)a=e.selectUnion(e.combine(a,t(r.coordinates[n])));return e.polygon(a)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,r,t){t=e.polygon(e.segments(t));function a(d,p){return r.pointInsideRegion([(d[0][0]+d[1][0])*.5,(d[0][1]+d[1][1])*.5],p)}function n(d){return{region:d,children:[]}}var i=n(null);function o(d,p){for(var m=0;m<d.children.length;m++){var y=d.children[m];if(a(p,y.region)){o(y,p);return}}for(var x=n(p),m=0;m<d.children.length;m++){var y=d.children[m];a(y.region,p)&&(x.children.push(y),d.children.splice(m,1),m--)}d.children.push(x)}for(var l=0;l<t.regions.length;l++){var s=t.regions[l];s.length<3||o(i,s)}function u(d,p){for(var m=0,y=d[d.length-1][0],x=d[d.length-1][1],T=[],w=0;w<d.length;w++){var b=d[w][0],_=d[w][1];T.push([b,_]),m+=_*y-b*x,y=b,x=_}var k=m<0;return k!==p&&T.reverse(),T.push([T[0][0],T[0][1]]),T}var f=[];function c(d){var p=[u(d.region,!1)];f.push(p);for(var m=0;m<d.children.length;m++)p.push(v(d.children[m]))}function v(d){for(var p=0;p<d.children.length;p++)c(d.children[p]);return u(d.region,!0)}for(var l=0;l<i.children.length;l++)c(i.children[l]);return f.length<=0?{type:"Polygon",coordinates:[]}:f.length==1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}};WO.exports=H4e});var KO=N((zVe,JO)=>{var U4e=NO(),G4e=FO(),ZO=UO(),Y4e=YO(),ed=jO(),$O=XO(),Gi=!1,rd=G4e(),Qn;Qn={buildLog:function(e){return e===!0?Gi=U4e():e===!1&&(Gi=!1),Gi===!1?!1:Gi.list},epsilon:function(e){return rd.epsilon(e)},segments:function(e){var r=ZO(!0,rd,Gi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=ZO(!1,rd,Gi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:ed.union(e.combined,Gi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:ed.intersect(e.combined,Gi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:ed.difference(e.combined,Gi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:ed.differenceRev(e.combined,Gi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:ed.xor(e.combined,Gi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Y4e(e.segments,rd,Gi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return $O.toPolygon(Qn,e)},polygonToGeoJSON:function(e){return $O.fromPolygon(Qn,rd,e)},union:function(e,r){return td(e,r,Qn.selectUnion)},intersect:function(e,r){return td(e,r,Qn.selectIntersect)},difference:function(e,r){return td(e,r,Qn.selectDifference)},differenceRev:function(e,r){return td(e,r,Qn.selectDifferenceRev)},xor:function(e,r){return td(e,r,Qn.selectXor)}};function td(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);JO.exports=Qn});var eB=N((NVe,QO)=>{QO.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;u<s;f=u++){var c=t[u+a][0],v=t[u+a][1],d=t[f+a][0],p=t[f+a][1],m=v>o!=p>o&&i<(d-c)*(o-v)/(p-v)+c;m&&(l=!l)}return l}});var w7=N((IVe,rB)=>{"use strict";var _7=um().dot,ug=Gt().BADNUM,fg=rB.exports={};fg.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;l<t.length;l++)a=Math.min(a,t[l][0]),n=Math.max(n,t[l][0]),i=Math.min(i,t[l][1]),o=Math.max(o,t[l][1]);var s=!1,u;t.length===5&&(t[0][0]===t[1][0]?t[2][0]===t[3][0]&&t[0][1]===t[3][1]&&t[1][1]===t[2][1]&&(s=!0,u=function(p){return p[0]===t[0][0]}):t[0][1]===t[1][1]&&t[2][1]===t[3][1]&&t[0][0]===t[3][0]&&t[1][0]===t[2][0]&&(s=!0,u=function(p){return p[1]===t[0][1]}));function f(p,m){var y=p[0],x=p[1];return!(y===ug||y<a||y>n||x===ug||x<i||x>o||m&&u(p))}function c(p,m){var y=p[0],x=p[1];if(y===ug||y<a||y>n||x===ug||x<i||x>o)return!1;var T=t.length,w=t[0][0],b=t[0][1],_=0,k,M,q,C,D;for(k=1;k<T;k++)if(M=w,q=b,w=t[k][0],b=t[k][1],C=Math.min(M,w),!(y<C||y>Math.max(M,w)||x>Math.max(q,b)))if(x<Math.min(q,b))y!==C&&_++;else{if(w===M?D=x:D=q+(y-M)*(b-q)/(w-M),x===D)return!(k===1&&m);x<=D&&y!==C&&_++}return _%2===1}var v=!0,d=t[0];for(l=1;l<t.length;l++)if(d[0]!==t[l][0]||d[1]!==t[l][1]){v=!1;break}return{xmin:a,xmax:n,ymin:i,ymax:o,pts:t,contains:s?f:c,isRect:s,degenerate:v}};fg.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};fg.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||fg.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 aB=N((FVe,tB)=>{"use strict";tB.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var AB=N((OVe,MB)=>{"use strict";var nB=KO(),V4e=eB(),id=Tr(),j4e=Xr().dashStyle,ad=Sr(),W4e=Fn(),X4e=qo().makeEventData,fd=lf(),Z4e=fd.freeMode,$4e=fd.rectMode,od=fd.drawMode,k7=fd.openMode,S7=fd.selectMode,iB=Os(),oB=jh(),cB=Wy(),vB=ks().clearOutline,hB=Ns(),T7=hB.handleEllipse,J4e=hB.readPaths,K4e=Yy().newShapes,Q4e=X6(),e6e=x7().activateLastSelection,vg=ke(),r6e=vg.sorterAsc,dB=w7(),nd=_m(),Yi=ba().getFromId,t6e=Ny(),a6e=og().redrawReglTraces,hg=aB(),hl=hg.MINSELECT,n6e=dB.filter,q7=dB.tester,L7=By(),lB=L7.p2r,i6e=L7.axValue,o6e=L7.getTransform;function C7(e){return e.subplot!==void 0}function l6e(e,r,t,a,n){var i=!C7(a),o=Z4e(n),l=$4e(n),s=k7(n),u=od(n),f=S7(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,x=m._zoomlayer,T=a.element.getBoundingClientRect(),w=a.plotinfo,b=o6e(w),_=r-T.left,k=t-T.top;m._calcInverseTransform(p);var M=vg.apply3DTransform(m._invTransform)(_,k);_=M[0],k=M[1];var q=m._invScaleX,C=m._invScaleY,D=_,P=k,R="M"+_+","+k,I=a.xaxes[0],F=a.yaxes[0],B=I._length,U=F._length,G=e.altKey&&!(od(n)&&s),V,Y,X,j,J,ae,te;mB(e,p,a),o&&(V=n6e([[_,k]],hg.BENDPX));var se=x.selectAll("path.select-outline-"+w.id).data([1]),$=u?m.newshape:m.newselection;u&&(a.hasText=$.label.text||$.label.texttemplate);var fe=u&&!s?$.fillcolor:"rgba(0,0,0,0)",oe=$.line.color||(i?ad.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":j4e($.line.dash,$.line.width),"stroke-width":$.line.width+"px","shape-rendering":"crispEdges"}).call(ad.stroke,oe).call(ad.fill,fe).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",R+"Z");var ue=x.append("path").attr("class","zoombox-corners").style({fill:ad.background,stroke:ad.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ce=x.select(".label-temp");ce.empty()&&(ce=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ie=m._uid+hg.SELECTID,ge=[],Ce=dg(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ee=I._id,Ae=F._id;_B(p,Ee,Ae,Ce);for(var Se=(p.layout||{}).selections||[],Re=[],Ie=!1,Le=0;Le<Se.length;Le++){var Ze=m.selections[Le];!Ze||Ze.xref!==Ee||Ze.yref!==Ae?Re.push(Se[Le]):Ie=!0}Ie&&(p._fullLayout._noEmitSelectedAtStart=!0,id.call("_guiRelayout",p,{selections:Re}))}});var _e=_6e(a);a.moveFn=function(Ee,Ae){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),D=Math.max(0,Math.min(B,q*Ee+_)),P=Math.max(0,Math.min(U,C*Ae+k));var Se=Math.abs(D-_),Re=Math.abs(P-k);if(l){var Ie,Le,Ze;if(f){var Je=m.selectdirection;switch(Je==="any"?Re<Math.min(Se*.6,hl)?Ie="h":Se<Math.min(Re*.6,hl)?Ie="v":Ie="d":Ie=Je,Ie){case"h":Le=v?U/2:0,Ze=U;break;case"v":Le=v?B/2:0,Ze=B;break}}if(u)switch(m.newshape.drawdirection){case"vertical":Ie="h",Le=v?U/2:0,Ze=U;break;case"horizontal":Ie="v",Le=v?B/2:0,Ze=B;break;case"ortho":Se<Re?(Ie="h",Le=k,Ze=P):(Ie="v",Le=_,Ze=D);break;default:Ie="d"}Ie==="h"?(j=d?T7(v,[D,Le],[D,Ze]):[[_,Le],[_,Ze],[D,Ze],[D,Le]],j.xmin=d?D:Math.min(_,D),j.xmax=d?D:Math.max(_,D),j.ymin=Math.min(Le,Ze),j.ymax=Math.max(Le,Ze),ue.attr("d","M"+j.xmin+","+(k-hl)+"h-4v"+2*hl+"h4ZM"+(j.xmax-1)+","+(k-hl)+"h4v"+2*hl+"h-4Z")):Ie==="v"?(j=d?T7(v,[Le,P],[Ze,P]):[[Le,k],[Le,P],[Ze,P],[Ze,k]],j.xmin=Math.min(Le,Ze),j.xmax=Math.max(Le,Ze),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")):Ie==="d"&&(j=d?T7(v,[_,k],[D,P]):[[_,k],[_,P],[D,P],[D,k]],j.xmin=Math.min(_,D),j.xmax=Math.max(_,D),j.ymin=Math.min(k,P),j.ymax=Math.max(k,P),ue.attr("d","M0,0Z"))}else o&&(V.addPt([D,P]),j=V.filtered);if(a.selectionDefs&&a.selectionDefs.length?(X=yB(a.mergedPolygons,j,G),j.subtract=G,Y=E7(a.selectionDefs.concat([j]))):(X=[j],Y=q7(j)),cB(bB(X,s),se,a),f){var We=A7(p,!1),qe=We.eventData?We.eventData.points.slice():[];We=A7(p,!1,Y,Ce,a),Y=We.selectionTesters,te=We.eventData;var ze;V?ze=V.filtered:ze=wB(X),nd.throttle(ie,hg.SELECTDELAY,function(){ge=xB(Y,Ce);for(var Qe=ge.slice(),re=0;re<qe.length;re++){for(var be=qe[re],Ge=!1,cr=0;cr<Qe.length;cr++)if(Qe[cr].curveNumber===be.curveNumber&&Qe[cr].pointNumber===be.pointNumber){Ge=!0;break}Ge||Qe.push(be)}Qe.length&&(te||(te={}),te.points=Qe),_e(te,ze),w6e(p,te)})}},a.clickFn=function(Ee,Ae){if(ue.remove(),p._fullLayout._activeShapeIndex>=0){p._fullLayout._deactivateShape(p);return}if(!u){var Se=m.clickmode;nd.done(ie).then(function(){if(nd.clear(ie),Ee===2){for(se.remove(),J=0;J<Ce.length;J++)ae=Ce[J],ae._module.selectPoints(ae,!1);if(sd(p,Ce),ld(a),P7(p),Ce.length){var Re=Ce[0].xaxis,Ie=Ce[0].yaxis;if(Re&&Ie){for(var Le=[],Ze=p._fullLayout.selections,Je=0;Je<Ze.length;Je++){var We=Ze[Je];We&&(We.xref!==Re._id||We.yref!==Ie._id)&&Le.push(We)}Le.length<Ze.length&&(p._fullLayout._noEmitSelectedAtStart=!0,id.call("_guiRelayout",p,{selections:Le}))}}}else Se.indexOf("select")>-1&&pB(Ae,p,a.xaxes,a.yaxes,a.subplot,a,se),Se==="event"&&ud(p,void 0);W4e.click(p,Ae,w.id)}).catch(vg.error)}},a.doneFn=function(){ue.remove(),nd.done(ie).then(function(){nd.clear(ie),!y&&j&&a.selectionDefs&&(j.subtract=G,a.selectionDefs.push(j),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,X)),(y||u)&&ld(a,y),a.doneFnCompleted&&a.doneFnCompleted(ge),f&&ud(p,te)}).catch(vg.error)}}function pB(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,m,y,x,T,w,b,_;if(v6e(l)){mB(e,r,i),v=dg(r,t,a,n);var k=h6e(l,v),M=k.pointNumbers.length>0;if(M?d6e(v,k):p6e(v)&&(T=uB(k))){for(o&&o.remove(),_=0;_<v.length;_++)d=v[_],d._module.selectPoints(d,!1);sd(r,v),ld(i),f&&P7(r)}else{w=e.shiftKey&&(T!==void 0?T:uB(k)),p=s6e(k.pointNumber,k.searchInfo,w);var q=i.selectionDefs.concat([p]);for(m=E7(q,m),_=0;_<v.length;_++)if(y=v[_]._module.selectPoints(v[_],m),x=gB(y,v[_]),c.length)for(var C=0;C<x.length;C++)c.push(x[C]);else c=x;if(b={points:c},sd(r,v,b),p&&i&&i.selectionDefs.push(p),o){var D=i.mergedPolygons,P=k7(i.dragmode);cB(bB(D,P),o,i)}f&&ud(r,b)}}}function s6e(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function M7(e){return"pointNumber"in e&&"searchInfo"in e}function u6e(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 E7(e){if(!e.length)return;for(var r=[],t=M7(e[0])?0:e[0][0][0],a=t,n=M7(e[0])?0:e[0][0][1],i=n,o=0;o<e.length;o++)if(M7(e[o]))r.push(u6e(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 mB(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)&&!(od(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)&&ld(t),o||(vB(r),a._lastSelectedSubplot=n.id)}function f6e(e){return e._fullLayout._activeShapeIndex>=0}function c6e(e){return e._fullLayout._activeSelectionIndex>=0}function ld(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;f6e(n)&&n._fullLayout._deactivateShape(n),c6e(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=od(t),s=S7(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=K4e(u,e)),f&&id.call("_guiRelayout",n,{shapes:f});var c;s&&!C7(e)&&(c=Q4e(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,id.call("_guiRelayout",n,{selections:c}).then(function(){r&&e6e(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function sB(e){return e._id}function dg(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(sB),o=t.map(sB),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(cg(s._module,l,r[0],t[0]));else if(s.type==="splom"){if(s._xaxes[i[0]]&&s._yaxes[o[0]]){var f=cg(s._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[s.uid],n.push(f)}}else if(s.type==="sankey"){var c=cg(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(cg(s._module,l,Yi(e,s.xaxis),Yi(e,s.yaxis)))}return n}function cg(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function v6e(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function h6e(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 uB(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 d6e(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 p6e(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 sd(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;m6e(e,r)}function m6e(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;id.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&&(t6e(e),a6e(e))}function yB(e,r,t){for(var a=t?nB.difference:nB.union,n=a({regions:e},{regions:[r]}),i=n.regions.reverse(),o=0;o<i.length;o++){var l=i[o];l.subtract=D7(l,i.slice(0,o))}return i}function gB(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=X4e(e[n],a,t);return e}function bB(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 xB(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=gB(i,l),t=t.concat(a)}return t}function A7(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=fB(e),v=e._fullLayout;if(o){var d=v._zoomlayer,p=v.dragmode,m=od(p),y=S7(p);if(m||y){var x=Yi(e,l,"x"),T=Yi(e,s,"y");if(x&&T){var w=d.selectAll(".select-outline-"+o.id);if(w&&e._fullLayout._outlining&&w.length){for(var b=w[0][0],_=b.getAttribute("d"),k=J4e(_,e,o),M=[],q=0;q<k.length;q++){for(var C=k[q],D=[],P=0;P<C.length;P++)D.push([Bs(x,C[P][1]),Bs(T,C[P][2])]);D.xref=l,D.yref=s,D.subtract=D7(D,M),M.push(D)}c=c.concat(M)}}}}var R=l&&s?[l+s]:v._subplots.cartesian;y6e(e);for(var I={},F=0;F<R.length;F++){var B=R[F],U=B.indexOf("y"),G=B.slice(0,U),V=B.slice(U),Y=l&&s?t:void 0;if(Y=b6e(c,G,V,Y),Y){var X=a;if(!i){var j=Yi(e,G,"x"),J=Yi(e,V,"y");X=dg(e,[j],[J],B);for(var ae=0;ae<X.length;ae++){var te=X[ae],se=te.cd[0],$=se.trace;if(te._module.name==="scattergl"&&!se.t.xpx){var fe=$.x,oe=$.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(oe[ce])}te._module.name==="splom"&&(I[$.uid]||(I[$.uid]=!0))}}var ie=xB(Y,X);u=u.concat(ie),f=f.concat(X)}}var ge={points:u};sd(e,f,ge);var Ce=v.clickmode,_e=Ce.indexOf("event")>-1&&r;if(!o&&r){var Ee=fB(e,!0);if(Ee.length){var Ae=Ee[0].xref,Se=Ee[0].yref;if(Ae&&Se){var Re=wB(Ee),Ie=TB([Yi(e,Ae,"x"),Yi(e,Se,"y")]);Ie(ge,Re)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:_e&&ud(e,ge),v._reselect=!1}if(!o&&v._deselect){var Le=v._deselect;l=Le.xref,s=Le.yref,g6e(l,s,f)||_B(e,l,s,a),_e&&(ge.points.length?ud(e,ge):P7(e)),v._deselect=!1}return{eventData:ge,selectionTesters:t}}function y6e(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 g6e(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 _B(e,r,t,a){a=dg(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)}sd(e,a)}function b6e(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=yB(n,o,l),a=E7(n)}else n=[o],a=q7(o)}return a}function fB(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,m,y;if(l.type==="rect"){y=[];var x=Bs(f,l.x0),T=Bs(f,l.x1),w=Bs(c,l.y0),b=Bs(c,l.y1);y=[[x,w],[x,b],[T,b],[T,w]],v=Math.min(x,T),d=Math.max(x,T),p=Math.min(w,b),m=Math.max(w,b),y.xmin=v,y.xmax=d,y.ymin=p,y.ymax=m,y.xref=s,y.yref=u,y.subtract=!1,y.isRect=!0,t.push(y)}else if(l.type==="path")for(var _=l.path.split("Z"),k=[],M=0;M<_.length;M++){var q=_[M];if(q){q+="Z";var C=iB.extractPathCoords(q,oB.paramIsX,"raw"),D=iB.extractPathCoords(q,oB.paramIsY,"raw");v=1/0,d=-1/0,p=1/0,m=-1/0,y=[];for(var P=0;P<C.length;P++){var R=Bs(f,C[P]),I=Bs(c,D[P]);y.push([R,I]),v=Math.min(R,v),d=Math.max(R,d),p=Math.min(I,p),m=Math.max(I,m)}y.xmin=v,y.xmax=d,y.ymin=p,y.ymax=m,y.xref=s,y.yref=u,y.subtract=D7(y,k),k.push(y),t.push(y)}}}}return t}function D7(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(V4e(e[i],n)){t=!t;break}return t}function Bs(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function wB(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 x6e(t)}function x6e(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 TB(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]=[lB(o,u),lB(o,f)].sort(r6e))}else n||(n={}),n[l]=t.map(i6e(o))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function _6e(e){var r=e.plotinfo;return r.fillRangeItems||TB(e.xaxes.concat(e.yaxes))}function w6e(e,r){e.emit("plotly_selecting",r)}function ud(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function P7(e){e.emit("plotly_deselect",null)}MB.exports={reselect:A7,prepSelect:l6e,clearOutline:vB,clearSelectionsCache:ld,selectOnClick:pB}});var R7=N((BVe,kB)=>{"use strict";kB.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 cd=N((HVe,SB)=>{"use strict";SB.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 mv=N((GVe,CB)=>{"use strict";var qB=R7(),LB=ka(),pg=qa(),T6e=St().templatedArray,UVe=cd();CB.exports=T6e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:LB({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:qB.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:qB.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",pg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",pg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",pg.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",pg.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:LB({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var vd=N((YVe,EB)=>{"use strict";EB.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var mg=N((VVe,DB)=>{"use strict";DB.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Vi=N((jVe,BB)=>{"use strict";var PB=ko().axisHoverFormat,{hovertemplateAttrs:M6e,texttemplateAttrs:A6e,templatefallbackAttrs:RB}=fi(),zB=el(),k6e=ka(),NB=Di().dash,S6e=Di().pattern,q6e=Xr(),L6e=vd(),hd=Mt().extendFlat,C6e=mg();function IB(e){return{valType:"any",dflt:0,editType:"calc"}}function FB(e){return{valType:"any",editType:"calc"}}function OB(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}BB.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:IB("x"),yperiod:IB("y"),xperiod0:FB("x0"),yperiod0:FB("y0"),xperiodalignment:OB("x"),yperiodalignment:OB("y"),xhoverformat:PB("x"),yhoverformat:PB("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:A6e(),texttemplatefallback:RB({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:L6e.eventDataKeys}),hovertemplatefallback:RB(),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:hd({},NB,{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:C6e(!0),fillgradient:hd({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:S6e,marker:hd({symbol:{valType:"enumerated",values:q6e.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:hd({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:hd({},NB,{arrayOk:!0}),editType:"calc"},zB("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"},zB("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:k6e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var z7=N((XVe,GB)=>{"use strict";var HB=mv(),UB=Vi().line,E6e=Di().dash,yg=Mt().extendFlat,D6e=wo().overrideAll,P6e=St().templatedArray,WVe=cd();GB.exports=D6e(P6e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:yg({},HB.xref,{}),yref:yg({},HB.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:UB.color,width:yg({},UB.width,{min:1,dflt:1}),dash:yg({},E6e,{dflt:"dot"})}}),"arraydraw","from-root")});var WB=N((ZVe,jB)=>{"use strict";var YB=ke(),gg=Gr(),R6e=So(),z6e=z7(),VB=Os();jB.exports=function(r,t){R6e(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,M){return YB.coerce(e,r,z6e,k,M)}var n=a("path"),i=n?"path":"rect",o=a("type",i),l=o!=="path";l&&delete r.path,a("opacity"),a("line.color"),a("line.width"),a("line.dash");for(var s=["x","y"],u=0;u<2;u++){var f=s[u],c={_fullLayout:t},v,d,p,m=gg.coerceRef(e,r,c,f);if(v=gg.getFromId(c,m),v._selectionIndices.push(r._index),p=VB.rangeToShapePosition(v),d=VB.shapePositionToRange(v),l){var y=f+"0",x=f+"1",T=e[y],w=e[x];e[y]=d(e[y],!0),e[x]=d(e[x],!0),gg.coercePosition(r,c,a,m,y),gg.coercePosition(r,c,a,m,x);var b=r[y],_=r[x];b!==void 0&&_!==void 0&&(r[y]=p(b),r[x]=p(_),e[y]=T,e[x]=w)}}l&&YB.noneOrAll(e,r,["x0","x1","y0","y1"])}});var ZB=N(($Ve,XB)=>{"use strict";XB.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 dd=N((JVe,KB)=>{"use strict";var I6e=Tr(),$B=ke(),JB=ba();KB.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($B.isPlainObject(p)){var m=JB.cleanId(p.xref,"x",!1),y=JB.cleanId(p.yref,"y",!1),x=l.x.test(m),T=l.y.test(y);if(x||T){v||$B.pushUnique(n._basePlotModules,o);var w=!1;x&&u.indexOf(m)===-1&&(u.push(m),w=!0),T&&f.indexOf(y)===-1&&(f.push(y),w=!0),w&&x&&T&&c.push(m+y)}}}}}});var dl=N((KVe,eH)=>{"use strict";var QB=x7(),pd=AB();eH.exports={moduleType:"component",name:"selections",layoutAttributes:z7(),supplyLayoutDefaults:WB(),supplyDrawNewSelectionDefaults:ZB(),includeBasePlot:dd()("selections"),draw:QB.draw,drawOne:QB.drawOne,reselect:pd.reselect,prepSelect:pd.prepSelect,clearOutline:pd.clearOutline,clearSelectionsCache:pd.clearSelectionsCache,selectOnClick:pd.selectOnClick}});var xH=N((QVe,bH)=>{"use strict";var H7=Dr(),ji=ke(),rH=ji.numberFormat,F6e=g6(),bg=Tr(),uH=ji.strTranslate,O6e=Ca(),I7=Sr(),Hs=Xr(),B6e=Fn(),tH=Gr(),H6e=Rs(),U6e=Fi(),fH=lf(),xg=fH.selectingOrDrawing,G6e=fH.freeMode,Y6e=Qa().FROM_TL,V6e=Ny(),j6e=og().redrawReglTraces,W6e=va(),F7=ba().getFromId,X6e=dl().prepSelect,Z6e=dl().clearOutline,$6e=dl().selectOnClick,N7=v7(),U7=qa(),aH=U7.MINDRAG,On=U7.MINZOOM,nH=!0;function J6e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,m,y,x,T,w,b,_,k,M,q,C,D,P,R,I,F,B,U,G;t+=r.yaxis._shift;function V(){if(c=r.xaxis,v=r.yaxis,w=c._length,b=v._length,x=c._offset,T=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var me=r.overlays,Me=0;Me<me.length;Me++){var He=me[Me].xaxis;d[He._id]=He;var Xe=me[Me].yaxis;p[Xe._id]=Xe}m=sH(d),y=sH(p),M=iH(m,l),q=iH(y,o),C=!q&&!M,k=lH(e,e._fullLayout._axisMatchGroups,d,p),_=lH(e,e._fullLayout._axisConstraintGroups,d,p,k);var Oe=_.isSubplotConstrained||k.isSubplotConstrained;D=l||Oe,P=o||Oe;var je=e._fullLayout;R=je._has("scattergl"),I=je._has("splom"),F=je._has("svg")}V();var Y=e7e(q+M,e._fullLayout.dragmode,u),X=vH(r,o+l+"drag",Y,t,a,n,i);if(C&&!u)return X.onmousedown=null,X.style.pointerEvents="none",X;var j={element:X,gd:e,plotinfo:r};j.prepFn=function(me,Me,He){var Xe=j.dragmode,Oe=e._fullLayout.dragmode;Oe!==Xe&&(j.dragmode=Oe),V(),U=e._fullLayout._invScaleX,G=e._fullLayout._invScaleY,C||(u?me.shiftKey?Oe==="pan"?Oe="zoom":xg(Oe)||(Oe="pan"):me.ctrlKey&&(Oe="pan"):Oe="pan"),G6e(Oe)?j.minDrag=1:j.minDrag=void 0,xg(Oe)?(j.xaxes=m,j.yaxes=y,X6e(me,Me,He,j,Oe)):(j.clickFn=ae,xg(Xe)&&J(),C||(Oe==="zoom"?(j.moveFn=Ee,j.doneFn=Se,j.minDrag=1,_e(me,Me,He)):Oe==="pan"&&(j.moveFn=We,j.doneFn=re))),e._fullLayout._redrag=function(){var je=e._dragdata;if(je&&je.element===X){var tr=e._fullLayout.dragmode;xg(tr)||(V(),be([0,0,w,b]),j.moveFn(je.dx,je.dy))}}};function J(){j.plotinfo.selection=!1,Z6e(e)}function ae(me,Me){var He=j.gd;if(He._fullLayout._activeShapeIndex>=0){He._fullLayout._deactivateShape(He);return}var Xe=He._fullLayout.clickmode;if(B7(He),me===2&&!f&&Qe(),u)Xe.indexOf("select")>-1&&$6e(Me,He,m,y,r.id,j),Xe.indexOf("event")>-1&&B6e.click(He,Me,r.id);else if(me===1&&f){var Oe=o?v:c,je=o==="s"||l==="w"?0:1,tr=Oe._name+".range["+je+"]",ir=K6e(Oe,je),lr="left",De="middle";if(Oe.fixedrange)return;o?(De=o==="n"?"top":"bottom",Oe.side==="right"&&(lr="right")):l==="e"&&(lr="right"),He._context.showAxisRangeEntryBoxes&&H7.select(X).call(O6e.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(ir),fill:Oe.tickfont?Oe.tickfont.color:"#444",horizontalAlign:lr,verticalAlign:De}).on("edit",function($e){var Fe=Oe.d2r($e);Fe!==void 0&&bg.call("_guiRelayout",He,tr,Fe)})}}U6e.init(j);var te,se,$,fe,oe,ue,ce,ie,ge,Ce;function _e(me,Me,He){var Xe=X.getBoundingClientRect();te=Me-Xe.left,se=He-Xe.top,e._fullLayout._calcInverseTransform(e);var Oe=ji.apply3DTransform(e._fullLayout._invTransform)(te,se);te=Oe[0],se=Oe[1],$={l:te,r:te,w:0,t:se,b:se,h:0},fe=e._hmpixcount?e._hmlumcount/e._hmpixcount:I7.luminosity(e._fullLayout.plot_bgcolor),oe="M0,0H"+w+"V"+b+"H0V0",ue=!1,ce="xy",Ce=!1,ie=hH(s,fe,x,T,oe),ge=dH(s,x,T)}function Ee(me,Me){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(w,U*me+te)),Xe=Math.max(0,Math.min(b,G*Me+se)),Oe=Math.abs(He-te),je=Math.abs(Xe-se);$.l=Math.min(te,He),$.r=Math.max(te,He),$.t=Math.min(se,Xe),$.b=Math.max(se,Xe);function tr(){ce="",$.r=$.l,$.t=$.b,ge.attr("d","M0,0Z")}if(_.isSubplotConstrained)Oe>On||je>On?(ce="xy",Oe/w>je/b?(je=Oe*b/w,se>Xe?$.t=se-je:$.b=se+je):(Oe=je*w/b,te>He?$.l=te-Oe:$.r=te+Oe),ge.attr("d",_g($))):tr();else if(k.isSubplotConstrained)if(Oe>On||je>On){ce="xy";var ir=Math.min($.l/w,(b-$.b)/b),lr=Math.max($.r/w,(b-$.t)/b);$.l=ir*w,$.r=lr*w,$.b=(1-ir)*b,$.t=(1-lr)*b,ge.attr("d",_g($))}else tr();else!q||je<Math.min(Math.max(Oe*.6,aH),On)?Oe<aH||!M?tr():($.t=0,$.b=b,ce="x",ge.attr("d",r7e($,se))):!M||Oe<Math.min(je*.6,On)?($.l=0,$.r=w,ce="y",ge.attr("d",t7e($,te))):(ce="xy",ge.attr("d",_g($)));$.w=$.r-$.l,$.h=$.b-$.t,ce&&(Ce=!0),e._dragged=Ce,pH(ie,ge,$,oe,ue,fe),Ae(),e.emit("plotly_relayouting",B),ue=!0}function Ae(){B={},(ce==="xy"||ce==="x")&&(O7(m,$.l/w,$.r/w,B,_.xaxes),qe("x",B)),(ce==="xy"||ce==="y")&&(O7(y,(b-$.b)/b,(b-$.t)/b,B,_.yaxes),qe("y",B))}function Se(){Ae(),B7(e),re(),yH(e)}var Re=[0,0,w,b],Ie=null,Le=U7.REDRAWDELAY,Ze=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function Je(me){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(J(),e._transitioningWithDuration){me.preventDefault(),me.stopPropagation();return}V(),clearTimeout(Ie);var Me=-me.deltaY;if(isFinite(Me)||(Me=me.wheelDelta/10),!isFinite(Me)){ji.log("Did not find wheel motion attributes: ",me);return}e._fullLayout._replotting=!0;var He=Math.exp(-Math.min(Math.max(Me,-20),20)/200),Xe=Ze.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Oe=(me.clientX-Xe.left)/Xe.width,je=(Xe.bottom-me.clientY)/Xe.height,tr;function ir(lr,De,$e){if(lr.fixedrange)return;var Fe=ji.simpleMap(lr.range,lr.r2l),pr=Fe[0]+(Fe[1]-Fe[0])*De;function mr(sr){return lr.l2r(pr+(sr-pr)*$e)}lr.range=Fe.map(mr)}if(D){for(l||(Oe=.5),tr=0;tr<m.length;tr++)ir(m[tr],Oe,He);qe("x"),Re[2]*=He,Re[0]+=Re[2]*Oe*(1/He-1)}if(P){for(o||(je=.5),tr=0;tr<y.length;tr++)ir(y[tr],je,He);qe("y"),Re[3]*=He,Re[1]+=Re[3]*(1-je)*(1/He-1)}be(Re),ze(),e.emit("plotly_relayouting",B),Ie=setTimeout(function(){e._fullLayout&&(Re=[0,0,w,b],re())},Le),me.preventDefault()}o.length*l.length!==1&&gH(X,Je);function We(me,Me){if(me=me*U,Me=Me*G,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,M==="ew"||q==="ns"){var He=M?-me:0,Xe=q?-Me:0;if(k.isSubplotConstrained){if(M&&q){var Oe=(me/w-Me/b)/2;me=Oe*w,Me=-Oe*b,He=-me,Xe=-Me}q?He=-Xe*w/b:Xe=-He*b/w}M&&(oH(m,me),qe("x")),q&&(oH(y,Me),qe("y")),be([He,Xe,w,b]),ze(),e.emit("plotly_relayouting",B);return}function je(mr,sr,yr){for(var ne=1-sr,ye,Ne,Be=0;Be<mr.length;Be++){var $r=mr[Be];if(!$r.fixedrange){ye=$r,Ne=$r._rl[ne]+($r._rl[sr]-$r._rl[ne])/Q6e(yr/$r._length);var Kr=$r.l2r(Ne);Kr!==!1&&Kr!==void 0&&($r.range[sr]=Kr)}}return ye._length*(ye._rl[sr]-Ne)/(ye._rl[sr]-ye._rl[ne])}var tr=M==="w"==(q==="n")?1:-1;if(M&&q&&(_.isSubplotConstrained||k.isSubplotConstrained)){var ir=(me/w+tr*Me/b)/2;me=ir*w,Me=tr*ir*b}var lr,De;if(M==="w"?me=je(m,0,me):M==="e"?me=je(m,1,-me):M||(me=0),q==="n"?Me=je(y,1,Me):q==="s"?Me=je(y,0,-Me):q||(Me=0),lr=M==="w"?me:0,De=q==="n"?Me:0,_.isSubplotConstrained&&!k.isSubplotConstrained||k.isSubplotConstrained&&M&&q&&tr>0){var $e;if(k.isSubplotConstrained||!M&&q.length===1){for($e=0;$e<m.length;$e++)m[$e].range=m[$e]._r.slice(),N7(m[$e],1-Me/b);me=Me*w/b,lr=me/2}if(k.isSubplotConstrained||!q&&M.length===1){for($e=0;$e<y.length;$e++)y[$e].range=y[$e]._r.slice(),N7(y[$e],1-me/w);Me=me*b/w,De=Me/2}}(!k.isSubplotConstrained||!q)&&qe("x"),(!k.isSubplotConstrained||!M)&&qe("y");var Fe=w-me,pr=b-Me;k.isSubplotConstrained&&!(M&&q)&&(M?(De=lr?0:me*b/w,pr=Fe*b/w):(lr=De?0:Me*w/b,Fe=pr*w/b)),be([lr,De,Fe,pr]),ze(),e.emit("plotly_relayouting",B)}function qe(me,Me){for(var He=k.isSubplotConstrained?{x:y,y:m}[me]:k[me+"axes"],Xe=k.isSubplotConstrained?{x:m,y}[me]:[],Oe=0;Oe<He.length;Oe++){var je=He[Oe],tr=je._id,ir=k.xLinks[tr]||k.yLinks[tr],lr=Xe[0]||d[ir]||p[ir];lr&&(Me?(Me[je._name+".range[0]"]=Me[lr._name+".range[0]"],Me[je._name+".range[1]"]=Me[lr._name+".range[1]"]):je.range=lr.range.slice())}}function ze(){var me=[],Me;function He(tr){for(Me=0;Me<tr.length;Me++)tr[Me].fixedrange||me.push(tr[Me]._id)}function Xe(tr,ir){for(Me=0;Me<tr.length;Me++){var lr=tr[Me],De=lr[ir],$e=De._id;!lr.fixedrange&&De.tickmode==="sync"&&!me.includes($e)&&me.push($e)}}for(D&&(He(m),He(_.xaxes),He(k.xaxes),Xe(r.overlays,"xaxis")),P&&(He(y),He(_.yaxes),He(k.yaxes),Xe(r.overlays,"yaxis")),B={},Me=0;Me<me.length;Me++){var Oe=me[Me],je=F7(e,Oe);tH.drawOne(e,je,{skipTitle:!0}),B[je._name+".range[0]"]=je.range[0],B[je._name+".range[1]"]=je.range[1]}tH.redrawComponents(e,me)}function Qe(){if(!e._transitioningWithDuration){var me=e._context.doubleClick,Me=[];M&&(Me=Me.concat(m)),q&&(Me=Me.concat(y)),k.xaxes&&(Me=Me.concat(k.xaxes)),k.yaxes&&(Me=Me.concat(k.yaxes));var He={},Xe,Oe;if(me==="reset+autosize")for(me="autosize",Oe=0;Oe<Me.length;Oe++){Xe=Me[Oe];var je=Xe._rangeInitial0,tr=Xe._rangeInitial1,ir=je!==void 0||tr!==void 0;if(ir&&(je!==void 0&&je!==Xe.range[0]||tr!==void 0&&tr!==Xe.range[1])||!ir&&Xe.autorange!==!0){me="reset";break}}if(me==="autosize")for(Oe=0;Oe<Me.length;Oe++)Xe=Me[Oe],Xe.fixedrange||(He[Xe._name+".autorange"]=!0);else if(me==="reset"){for((M||_.isSubplotConstrained)&&(Me=Me.concat(_.xaxes)),q&&!_.isSubplotConstrained&&(Me=Me.concat(_.yaxes)),_.isSubplotConstrained&&(M?q||(Me=Me.concat(y)):Me=Me.concat(m)),Oe=0;Oe<Me.length;Oe++)if(Xe=Me[Oe],!Xe.fixedrange){var lr=Xe._name,De=Xe._autorangeInitial;Xe._rangeInitial0===void 0&&Xe._rangeInitial1===void 0?He[lr+".autorange"]=!0:Xe._rangeInitial0===void 0?(He[lr+".autorange"]=De,He[lr+".range"]=[null,Xe._rangeInitial1]):Xe._rangeInitial1===void 0?(He[lr+".range"]=[Xe._rangeInitial0,null],He[lr+".autorange"]=De):He[lr+".range"]=[Xe._rangeInitial0,Xe._rangeInitial1]}}e.emit("plotly_doubleclick",null),bg.call("_guiRelayout",e,He)}}function re(){be([0,0,w,b]),ji.syncOrAsync([W6e.previousPromises,function(){e._fullLayout._replotting=!1,bg.call("_guiRelayout",e,B)}],e)}function be(me){var Me=e._fullLayout,He=Me._plots,Xe=Me._subplots.cartesian,Oe,je,tr,ir;if(I&&bg.subplotsRegistry.splom.drag(e),R){for(Oe=0;Oe<Xe.length;Oe++)if(je=He[Xe[Oe]],tr=je.xaxis,ir=je.yaxis,je._scene){tr.limitRange&&tr.limitRange(),ir.limitRange&&ir.limitRange();var lr=ji.simpleMap(tr.range,tr.r2l),De=ji.simpleMap(ir.range,ir.r2l);je._scene.update({range:[lr[0],De[0],lr[1],De[1]]})}}if((I||R)&&(V6e(e),j6e(e)),F){var $e=me[2]/c._length,Fe=me[3]/v._length;for(Oe=0;Oe<Xe.length;Oe++){je=He[Xe[Oe]],tr=je.xaxis,ir=je.yaxis;var pr=(D||k.isSubplotConstrained)&&!tr.fixedrange&&d[tr._id],mr=(P||k.isSubplotConstrained)&&!ir.fixedrange&&p[ir._id],sr,yr,ne,ye;if(pr?(sr=$e,ne=l||k.isSubplotConstrained?me[0]:Pe(tr,sr)):k.xaHash[tr._id]?(sr=$e,ne=me[0]*tr._length/c._length):k.yaHash[tr._id]?(sr=Fe,ne=q==="ns"?-me[1]*tr._length/v._length:Pe(tr,sr,{n:"top",s:"bottom"}[q])):(sr=Ge(tr,$e,Fe),ne=cr(tr,sr)),sr>1&&(tr.maxallowed!==void 0&&D===(tr.range[0]<tr.range[1]?"e":"w")||tr.minallowed!==void 0&&D===(tr.range[0]<tr.range[1]?"w":"e"))&&(sr=1,ne=0),mr?(yr=Fe,ye=o||k.isSubplotConstrained?me[1]:Pe(ir,yr)):k.yaHash[ir._id]?(yr=Fe,ye=me[1]*ir._length/v._length):k.xaHash[ir._id]?(yr=$e,ye=M==="ew"?-me[0]*ir._length/c._length:Pe(ir,yr,{e:"right",w:"left"}[M])):(yr=Ge(ir,$e,Fe),ye=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,ye=0),!(!sr&&!yr)){sr||(sr=1),yr||(yr=1);var Ne=tr._offset-ne/sr,Be=ir._offset-ye/yr;je.clipRect.call(Hs.setTranslate,ne,ye).call(Hs.setScale,sr,yr),je.plot.call(Hs.setTranslate,Ne,Be).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,Me,He){return me.fixedrange?0:D&&_.xaHash[me._id]?Me:P&&(_.isSubplotConstrained?_.xaHash:_.yaHash)[me._id]?He:0}function cr(me,Me){return Me?(me.range=me._r.slice(),N7(me,Me),Pe(me,Me)):0}function Pe(me,Me,He){return me._length*(1-Me)*Y6e[He||me.constraintoward||"middle"]}return X}function cH(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(H6e,a),n.node()}function vH(e,r,t,a,n,i,o){var l=cH(e,"rect",r,t);return H7.select(l).call(Hs.setRect,a,n,i,o),l}function iH(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function K6e(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,rH("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,rH("."+String(n)+"g")(t))}function O7(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;O7(n,v,1-v,a,[])}}function oH(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 Q6e(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function e7e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function hH(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",uH(t,a)).attr("d",n+"Z")}function dH(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:I7.background,stroke:I7.defaultLine,"stroke-width":1,opacity:0}).attr("transform",uH(r,t)).attr("d","M0,0Z")}function pH(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"),mH(e,r,n,i)}function mH(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 B7(e){H7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function yH(e){nH&&e.data&&e._context.showTips&&(ji.notifier(ji._(e,"Double-click to zoom back out"),"long",e),nH=!1)}function r7e(e,r){return"M"+(e.l-.5)+","+(r-On-.5)+"h-3v"+(2*On+1)+"h3ZM"+(e.r+.5)+","+(r-On-.5)+"h3v"+(2*On+1)+"h-3Z"}function t7e(e,r){return"M"+(r-On-.5)+","+(e.t-.5)+"v-3h"+(2*On+1)+"v3ZM"+(r-On-.5)+","+(e.b+.5)+"v3h"+(2*On+1)+"v-3Z"}function _g(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,On)/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 lH(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p<r.length;p++){var m=r[p];for(s in t)if(m[s]){for(f in m)!(n&&(v[f]||d[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(o[f]=s);for(u in a)!(n&&(v[u]||d[u]))&&m[u]&&(i=!0)}for(u in a)if(m[u])for(c in m)!(n&&(v[c]||d[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(l[c]=u)}i&&(ji.extendFlat(o,l),l={});var y={},x=[];for(f in o){var T=F7(e,f);x.push(T),y[T._id]=T}var w={},b=[];for(c in l){var _=F7(e,c);b.push(_),w[_._id]=_}return{xaHash:y,yaHash:w,xaxes:x,yaxes:b,xLinks:o,yLinks:l,isSubplotConstrained:i}}function gH(e,r){if(!F6e)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 sH(e){var r=[];for(var t in e)r.push(e[t]);return r}bH.exports={makeDragBox:J6e,makeDragger:cH,makeRectDragger:vH,makeZoombox:hH,makeCorners:dH,updateZoombox:pH,xyCorners:_g,transitionZoombox:mH,removeZoombox:B7,showDoubleClickNotifier:yH,attachWheelEventHandler:gH}});var G7=N(Tg=>{"use strict";var a7e=Dr(),wg=Fn(),n7e=Fi(),i7e=Rs(),Eo=xH().makeDragBox,Ia=qa().DRAGGERSIZE;Tg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){a7e.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=Eo(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]&&wg.hover(r,v,i)},wg.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,n7e.unhover(r,v))},r._context.showAxisDragHandles&&(Eo(r,o,l._offset-Ia,s._offset-Ia,Ia,Ia,"n","w"),Eo(r,o,l._offset+l._length,s._offset-Ia,Ia,Ia,"n","e"),Eo(r,o,l._offset-Ia,s._offset+s._length,Ia,Ia,"s","w"),Eo(r,o,l._offset+l._length,s._offset+s._length,Ia,Ia,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Ia),Eo(r,o,l._offset+l._length*.1,f,l._length*.8,Ia,"","ew"),Eo(r,o,l._offset,f,l._length*.1,Ia,"","w"),Eo(r,o,l._offset+l._length*.9,f,l._length*.1,Ia,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Ia),Eo(r,o,c,s._offset+s._length*.1,Ia,s._length*.8,"ns",""),Eo(r,o,c,s._offset+s._length*.9,Ia,s._length*.1,"s",""),Eo(r,o,c,s._offset,Ia,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,wg.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,wg.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Tg.updateFx(r)}};Tg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";i7e(r._draggers,t)}});var TH=N((rje,wH)=>{"use strict";var _H=Tr();wH.exports=function(r){for(var t=_H.layoutArrayContainers,a=_H.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 AH=N(yd=>{"use strict";var o7e=Mu(),Y7=sm(),md=ps(),l7e=B_().sorterAsc,V7=Tr();yd.containerArrayMatch=TH();var s7e=yd.isAddVal=function(r){return r==="add"||o7e(r)},MH=yd.isRemoveVal=function(r){return r===null||r==="remove"};yd.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&&md.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 md.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(l7e),m=t.get(),y=m||[],x=i(v,o).get(),T=[],w=-1,b=y.length,_,k,M,q,C,D,P,R;for(_=0;_<p.length;_++){if(M=p[_],q=a[M],C=Object.keys(q),D=q[""],P=s7e(D),M<0||M>y.length-(P?0:1)){md.warn("index out of range",o,M);continue}if(D!==void 0)C.length>1&&md.warn("Insertion & removal are incompatible with edits to the same index.",o,M),MH(D)?T.push(M):P?(D==="add"&&(D={}),y.splice(M,0,D),x&&x.splice(M,0,{})):md.warn("Unrecognized full object edit value",o,M,D),w===-1&&(w=M);else for(k=0;k<C.length;k++)R=o+"["+M+"].",i(y[M],C[k],R).set(q[C[k]])}for(_=T.length-1;_>=0;_--)y.splice(T[_],1),x&&x.splice(T[_],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(l(c,v),u!==Y7){var I;if(w===-1)I=p;else{for(b=Math.max(y.length,b),I=[],_=0;_<p.length&&(M=p[_],!(M>=w));_++)I.push(M);for(_=w;_<b;_++)I.push(_)}for(_=0;_<I.length;_++)u(r,I[_])}else s(r);return!0}});var DH=N(Wi=>{"use strict";var LH=Fr(),CH=Tr(),Sn=ke(),gd=va(),EH=ba(),bd=EH.cleanId,u7e=EH.getFromTrace,j7=CH.traceIs,f7e=["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=(gd.subplotsRegistry.cartesian||{}).attrRegex,n=(gd.subplotsRegistry.polar||{}).attrRegex,i=(gd.subplotsRegistry.ternary||{}).attrRegex,o=(gd.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=bd(u.anchor)),u.overlaying&&(u.overlaying=bd(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,Mg(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)&&(yv(c,"xref"),yv(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)&&(yv(d,"xref",!0),yv(d,"yref",!0))}var p=Array.isArray(e.images)?e.images.length:0;for(r=0;r<p;r++){var m=e.images[r];Sn.isPlainObject(m)&&(yv(m,"xref"),yv(m,"yref"))}var y=e.legend;return y&&(y.x>3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Wi.cleanLayout(e.template.layout),e};function yv(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=bd(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=bd(t.xaxis,"x")),t.yaxis&&(t.yaxis=bd(t.yaxis,"y")),j7(t,"gl3d")&&t.scene&&(t.scene=gd.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]=SH(t.textposition[a]);else t.textposition&&(t.textposition=SH(t.textposition));var n=CH.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=kH(t.increasing),v=kH(t.decreasing);if(c!==!1&&v!==!1){var d=c7e(c,v,u,f);d&&(t.name=d)}else(c||v)&&!t.name&&(t.name=c||v)}Mg(t,"line")&&delete t.line,"marker"in t&&(Mg(t.marker,"line")&&delete t.marker.line,Mg(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function kH(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 c7e(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 SH(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 Mg(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(LH(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=LH(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 v7e=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function qH(e){var r=e.search(v7e);if(r>0)return e.slice(0,r)}Wi.hasParent=function(e,r){for(var t=qH(r);t;){if(t in e)return!0;t=qH(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=u7e(e,n,f7e[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=N(Zr=>{"use strict";var Sg=Dr(),h7e=Fr(),d7e=r4(),nr=ke(),Et=nr.nestedProperty,$7=wh(),Bn=pP(),Xi=Tr(),Rg=Gc(),Lr=va(),qn=Gr(),p7e=y6(),m7e=Ni(),X7=Xr(),y7e=Sr(),g7e=G7().initInteractions,b7e=Fl(),x7e=dl().clearOutline,IH=ds().dfltConfig,Ag=AH(),ma=DH(),pt=og(),Us=wo(),_7e=qa().AX_NAME_PATTERN,Z7=0,PH=5;function w7e(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 Zr.addFrames(e,n)}OH(e,a),t||(t={}),Sg.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)&&(V7e(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 m(){for(var M=u._basePlotModules,q=0;q<M.length;q++)M[q].drawFramework&&M[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 D=u._glcanvas.data()[0].regl;if(D&&(Math.floor(u.width*C)!==D._gl.drawingBufferWidth||Math.floor(u.height*C)!==D._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++,m()}}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 y(){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 M=e._fullData,q=0;q<M.length;q++){var C=M[q];C.type==="pie"&&C.automargin&&Lr.allowAutoMargin(e,"pie."+C.uid+".automargin")}return Lr.doAutoMargin(e),Lr.previousPromises(e)}function x(){if(Lr.didMarginChange(d,u._size))return nr.syncOrAsync([y,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 b(){return qn.draw(e,s?"":"redraw")}var _=[Lr.previousPromises,l,m,y,x];f&&_.push(T),_.push(pt.layoutStyles),f&&_.push(b,function(q){var C=q._fullLayout._insideTickLabelsUpdaterange;if(C)return q._fullLayout._insideTickLabelsUpdaterange=void 0,xd(q,C).then(function(){qn.saveRangeInitial(q,!0)})}),_.push(pt.drawData,pt.finalDraw,g7e,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 _d(e),e})}function _d(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function T7e(e){return nr.extendFlat(IH,e)}function FH(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){nr.error(t)}}function M7e(e,r){var t=y7e.combine(r,"white");FH(e,t)}function OH(e,r){if(!e._context){e._context=nr.extendDeep({},IH);var t=Sg.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"&&!d7e&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=FH),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 A7e(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,Zr._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function k7e(e,r,t,a){return e=nr.getGraphDiv(e),Lr.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),Lr.purge(e),Zr._doPlot(e,r,t,a)}function qg(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 Lg(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 BH(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]),Lg(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Lg(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function S7e(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 q7e(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");Lg(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 L7e(e,r,t,a){var n=nr.isPlainObject(a),i=[],o,l,s,u,f;Array.isArray(t)||(t=[t]),t=qg(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=Et(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,h7e(f)||(f=-1),i.push({prop:s,target:l,insert:u,maxp:Math.floor(f)})}return i}function HH(e,r,t,a,n){q7e(e,r,t,a);for(var i=L7e(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 UH(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function GH(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=UH(s,u);f<0?(c=p,v=d):(c=d,v=p)}else if(c=new s.constructor(f),v=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),v.set(s);else if(f<u.length){var m=u.length-f;c.set(u.subarray(m)),v.set(s),v.set(u.subarray(0,m),s.length)}else{var y=f-u.length,x=s.length-y;c.set(s.subarray(x)),c.set(u,y),v.set(s.subarray(0,x))}else c=s.concat(u),v=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,v]}var i=HH(e,r,t,a,n),o=Zr.redraw(e),l=[e,i.update,t,i.maxPoints];return Bn.add(e,Zr.prependTraces,l,GH,arguments),o}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=UH(u,s);f<0?(c=p,v=d):(c=d,v=p)}else if(c=new s.constructor(f),v=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),v.set(s);else if(f<u.length){var m=u.length-f;c.set(u.subarray(0,m)),v.set(u.subarray(m)),v.set(s,m)}else{var y=f-u.length;c.set(u),c.set(s.subarray(0,y),u.length),v.set(s.subarray(y))}else c=u.concat(s),v=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,v]}var i=HH(e,r,t,a,n),o=Zr.redraw(e),l=[e,i.update,t,i.maxPoints];return Bn.add(e,Zr.extendTraces,l,YH,arguments),o}function VH(e,r,t){e=nr.getGraphDiv(e);var a=[],n=Zr.deleteTraces,i=VH,o=[e,a],l=[e,r],s,u;for(S7e(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=Zr.redraw(e),Bn.add(e,n,o,i,l),u;Array.isArray(t)||(t=[t]);try{BH(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return Bn.startSequence(e),Bn.add(e,n,o,i,l),u=Zr.moveTraces(e,a,t),Bn.stopSequence(e),u}function jH(e,r){e=nr.getGraphDiv(e);var t=[],a=Zr.addTraces,n=jH,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]),Lg(e,r,"indices"),r=qg(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=Zr.redraw(e);return Bn.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(BH(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=qg(r,e.data.length-1),t=qg(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=Zr.redraw(e);return Bn.add(e,i,l,o,s),f}function Cg(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=WH(e,n,i),l=o.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&ma.clearAxisTypes(e,i,{});var s=[];l.fullReplot?s.push(Zr._doPlot):(s.push(Lr.previousPromises),Lr.supplyDefaults(e),l.markerSize&&(Lr.doCalcdata(e),zg(s)),l.style&&s.push(pt.doTraceStyle),l.colorbars&&s.push(pt.doColorBars),s.push(_d)),s.push(Lr.rehover,Lr.redrag,Lr.reselect),Bn.add(e,Cg,[e,o.undoit,o.traces],Cg,[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 kg(e,r){return r?function(t,a,n){var i=Et(t,a),o=i.set;return i.set=function(l){var s=(n||"")+a;Eg(s,i.get(),l,e),o(l)},i}:Et}function Eg(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++)Eg(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)Eg(e+"."+c,s[c],u[c],a)}else a[e]===void 0&&(a[e]=Yl(r))}function C7e(e,r,t){for(var a in t){var n=Et(e,a);Eg(a,n.get(),t[a],r)}}function WH(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,o=a._guiEditing,l=kg(a._preGUI,o),s=nr.extendDeepAll({},r),u,f=Us.traceFlags(),c={},v={},d;function p(){return t.map(function(){})}function m(ie){var ge=qn.id2name(ie);d.indexOf(ge)===-1&&d.push(ge)}function y(ie){return"LAYOUT"+ie+".autorange"}function x(ie){return"LAYOUT"+ie+".range"}function T(ie,ge,Ce){if(Array.isArray(ie)){ie.forEach(function(Se){T(Se,ge,Ce)});return}if(!(ie in r||ma.hasParent(r,ie))){var _e;if(ie.slice(0,6)==="LAYOUT")_e=l(e.layout,ie.replace("LAYOUT",""));else{var Ee=t[Ce],Ae=a._tracePreGUI[n[Ee].uid];_e=kg(Ae,o)(i[Ee],ie)}ie in v||(v[ie]=p()),v[ie][Ce]===void 0&&(v[ie][Ce]=Yl(_e.get())),ge!==void 0&&_e.set(ge)}}function w(ie){return function(ge){return n[ge][ie]}}function b(ie){return function(ge,Ce){return ge===!1?n[t[Ce]][ie]:null}}for(var _ in r){if(ma.hasParent(r,_))throw new Error("cannot set "+_+" and a parent attribute simultaneously");var k=r[_],M,q,C,D,P,R;if((_==="autobinx"||_==="autobiny")&&(_=_.charAt(_.length-1)+"bins",Array.isArray(k)?k=k.map(b(_)):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++){M=i[t[u]],q=n[t[u]];var I=a._tracePreGUI[q.uid];if(C=kg(I,o)(M,_),D=C.get(),P=Array.isArray(k)?k[u%k.length]:k,P!==void 0){var F=C.parts[C.parts.length-1],B=_.slice(0,_.length-F.length-1),U=B?B+".":"",G=B?Et(q,B).get():q;if(R=Rg.getTraceValObject(q,C.parts),R&&R.impliedEdits&&P!==null)for(var V in R.impliedEdits)T(nr.relativeAttr(_,V),R.impliedEdits[V],u);else if((F==="thicknessmode"||F==="lenmode")&&D!==P&&(P==="fraction"||P==="pixels")&&G){var Y=a._size,X=G.orient,j=X==="top"||X==="bottom";if(F==="thicknessmode"){var J=j?Y.h:Y.w;T(U+"thickness",G.thickness*(P==="fraction"?1/J:J),u)}else{var ae=j?Y.w:Y.h;T(U+"len",G.len*(P==="fraction"?1/ae:ae),u)}}else if(_==="type"&&(P==="pie"!=(D==="pie")||P==="funnelarea"!=(D==="funnelarea"))){var te="x",se="y";(P==="bar"||D==="bar")&&M.orientation==="h"&&(te="y",se="x"),nr.swapAttrs(M,["?"],"labels",te),nr.swapAttrs(M,["d?","?0"],"label",te),nr.swapAttrs(M,["?"],"values",se),D==="pie"||D==="funnelarea"?(Et(M,"marker.color").set(Et(M,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):Xi.traceIs(M,"cartesian")&&Et(M,"marker.colors").set(Et(M,"marker.color").get())}v[_][u]=Yl(D);var $=["swapxy","swapxyaxes","orientation","orientationaxes"];if($.indexOf(_)!==-1){if(_==="orientation"){C.set(P);var fe=M.x&&!M.y?"h":"v";if((C.get()||fe)===q.orientation)continue}else _==="orientationaxes"&&(M.orientation={v:"h",h:"v"}[q.orientation]);ma.swapXYData(M),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(D))?f.calc=!0:Us.update(f,R):f.calc=!0,C.set(P))}}if(["swapxyaxes","orientationaxes"].indexOf(_)!==-1&&qn.swap(e,t),_==="orientationaxes"){var oe=Et(e.layout,"hovermode"),ue=oe.get();ue==="x"?oe.set("y"):ue==="y"?oe.set("x"):ue==="x unified"?oe.set("y unified"):ue==="y unified"&&oe.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")&&(m(ce.xaxis||"x"),m(ce.yaxis||"y"))}T(d.map(y),!0,0),T(d.map(x),[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 xd(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=JH(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&&(XH(e,i,n)||Lr.supplyDefaults(e),i.legend&&o.push(pt.doLegend),i.layoutstyle&&o.push(pt.layoutStyles),i.axrange&&zg(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(_d)),o.push(Lr.rehover,Lr.redrag,Lr.reselect),Bn.add(e,xd,[e,n.undoit],xd,[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 XH(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,m7e,d,p)},s={};for(var u in t.rangesAltered){var f=qn.id2name(u);if(i=e.layout[f],o=a[f],p7e(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 zg(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(x7e,pt.doAutoRangeAndConstraints,t,pt.drawData,pt.finalDraw)}var ZH=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,$H=/^[xyz]axis[0-9]*\.autorange$/,E7e=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function JH(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=kg(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+".":"",m=o[c].replace("allaxes",p+l[v]._name);r[m]||(r[m]=r[o[c]])}delete r[o[c]]}var y=Us.layoutFlags(),x={},T={};function w(Se,Re){if(Array.isArray(Se)){Se.forEach(function(Le){w(Le,Re)});return}if(!(Se in r||ma.hasParent(r,Se))){var Ie=i(t,Se);Se in T||(T[Se]=Yl(Ie.get())),Re!==void 0&&Ie.set(Re)}}var b={},_;function k(Se){var Re=qn.name2id(Se.split(".")[0]);return b[Re]=1,Re}for(var M in r){if(ma.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");for(var q=i(t,M),C=r[M],D=q.parts.length,P=D-1;P>0&&typeof q.parts[P]!="string";)P--;var R=q.parts[P],I=q.parts[P-1]+"."+R,F=q.parts.slice(0,P).join("."),B=Et(e.layout,F).get(),U=Et(a,F).get(),G=q.get();if(C!==void 0){x[M]=C,T[M]=R==="reverse"?C:Yl(G);var V=Rg.getLayoutValObject(a,q.parts);if(V&&V.impliedEdits&&C!==null)for(var Y in V.impliedEdits)w(nr.relativeAttr(M,Y),V.impliedEdits[Y]);if(["width","height"].indexOf(M)!==-1)if(C){w("autosize",null);var X=M==="height"?"width":"height";w(X,a[X])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")w("width",C?null:a.width),w("height",C?null:a.height);else if(I.match(ZH))k(I),Et(a,F+"._inputRange").set(null);else if(I.match($H)){k(I),Et(a,F+"._inputRange").set(null);var j=Et(a,F).get();j._inputDomain&&(j._input.domain=j._inputDomain.slice())}else I.match(E7e)&&Et(a,F+"._inputDomain").set(null);if(R==="type"){_=B;var J=U.type==="linear"&&C==="log",ae=U.type==="log"&&C==="linear";if(J||ae){if(!_||!_.range)w(F+".autorange",!0);else if(U.autorange)J&&(_.range=_.range[1]>_.range[0]?[1,2]:[2,1]);else{var te=_.range[0],se=_.range[1];J?(te<=0&&se<=0&&w(F+".autorange",!0),te<=0?te=se/1e6:se<=0&&(se=te/1e6),w(F+".range[0]",Math.log(te)/Math.LN10),w(F+".range[1]",Math.log(se)/Math.LN10)):(w(F+".range[0]",Math.pow(10,te)),w(F+".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(F+".autorange",!0),w(F+".range",null);Et(a,F+"._inputRange").set(null)}else if(R.match(_7e)){var $=Et(a,M).get(),fe=(C||{}).type;(!fe||fe==="-")&&(fe="linear"),Xi.getComponentMethod("annotations","convertCoords")(e,$,fe,w),Xi.getComponentMethod("images","convertCoords")(e,$,fe,w)}var oe=Ag.containerArrayMatch(M);if(oe){f=oe.array,c=oe.index;var ue=oe.property,ce=V||{editType:"calc"};c!==""&&ue===""&&(Ag.isAddVal(C)?T[M]=null:Ag.isRemoveVal(C)?T[M]=(Et(t,f).get()||[])[c]:nr.warn("unrecognized full object value",r)),Us.update(y,ce),u[f]||(u[f]={});var ie=u[f][c];ie||(ie=u[f][c]={}),ie[ue]=C,delete r[M]}else R==="reverse"?(B.range?B.range.reverse():(w(F+".autorange",!0),B.range=[1,0]),U.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(C===!1&&G!==!1||C!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(C==="lasso"||C==="select")&&!(G==="lasso"||G==="select")?y.plot=!0:V?Us.update(y,V):y.calc=!0,q.set(C))}}for(f in u){var ge=Ag.applyContainerArrayChanges(e,i(t,f),u[f],y,i);ge||(y.plot=!0)}for(var Ce in b){_=qn.getFromId(e,Ce);var _e=_&&_._constraintGroup;if(_e){y.calc=!0;for(var Ee in _e)b[Ee]||(qn.getFromId(e,Ee)._constraintShrinkable=!0)}}(KH(e)||r.height||r.width)&&(y.plot=!0);var Ae=a.shapes;for(c=0;c<Ae.length;c++)if(Ae[c].showlegend){y.calc=!0;break}return(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,rangesAltered:b,undoit:T,redoit:x,eventData:s}}function KH(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 Dg(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=WH(e,nr.extendFlat({},r),n),o=i.flags,l=JH(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(Zr._doPlot):(u.push(Lr.previousPromises),XH(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&&zg(u,l.rangesAltered),s.ticks&&u.push(pt.doTicksRelayout),s.modebar&&u.push(pt.doModeBar),s.camera&&u.push(pt.doCamera),u.push(_d)),u.push(Lr.rehover,Lr.redrag,Lr.reselect),Bn.add(e,Dg,[e,i.undoit,l.undoit,i.traces],Dg,[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 D7e=[{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"}],P7e=[{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 RH(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=Et(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=Et(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function R7e(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,m=[],y={},x={};for(i in n){if(u=RH(i,D7e),u){if(d=u.head,p=u.tail,o=u.attr||d+".uirevision",l=Et(a,o).get(),s=l&&zH(o,r),s&&s===l){if(f=n[i],f===null&&(f=void 0),c=Et(r,i),v=c.get(),NH(v,f)){v===void 0&&p==="autorange"&&m.push(d),c.set(Yl(Et(a,i).get()));continue}else if(p==="autorange"||p.slice(0,6)==="range["){var T=n[d+".range[0]"],w=n[d+".range[1]"],b=n[d+".autorange"];if(b||b===null&&T===null&&w===null){if(!(d in y)){var _=Et(r,d).get();y[d]=_&&(_.autorange||_.autorange!==!1&&(!_.range||_.range.length!==2))}if(y[d]){c.set(Yl(Et(a,i).get()));continue}}}}}else nr.warn("unrecognized GUI edit: "+i);delete n[i],u&&u.tail.slice(0,6)==="range["&&(x[u.head]=1)}for(var k=0;k<m.length;k++){var M=m[k];if(x[M]){var q=Et(r,M).get();q&&delete q.autorange}}var C=a._tracePreGUI;for(var D in C){var P=C[D],R=null,I;for(i in P){if(!R){var F=R7e(D,t);if(F<0){delete C[D];break}I=t[F];var B=z7e(D,e,I.index);if(B<0){delete C[D];break}R=e[B]}if(u=RH(i,P7e),u){if(u.attr?(l=Et(a,u.attr).get(),s=l&&zH(u.attr,r)):(l=I.uirevision,s=R.uirevision,s===void 0&&(s=r.uirevision)),s&&s===l&&(f=P[i],f===null&&(f=void 0),c=Et(R,i),v=c.get(),NH(v,f))){c.set(Yl(Et(I,i).get()));continue}}else nr.warn("unrecognized GUI edit: "+i+" in trace uid "+D);delete P[i]}}}function I7e(e,r,t,a){var n,i;function o(){return Zr.addFrames(e,n)}e=nr.getGraphDiv(e),ma.clearPromiseQueue(e);var l=e._fullData,s=e._fullLayout;if(!nr.isPlotDiv(e)||!l||!s)i=Zr.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 I=nr.extendDeepAll({},e._context);e._context=void 0,OH(e,a),f=!ma.collectionsAreEqual(I,e._context)}if(f){let I=e._ev.eventNames().map(F=>[F,e._ev.listeners(F)]);i=Zr.newPlot(e,r,t,a).then(()=>{for(let[F,B]of I)B.forEach(U=>e.on(F,U));return Zr.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,m=O7e(e,s,v,d,p),y=m.newDataRevision,x=F7e(e,l,c,d,p,y);if(KH(e)&&(m.layoutReplot=!0),x.calc||m.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(v),w=0;w<T.length;w++){var b=T[w],_=b.substring(0,5);if(_==="xaxis"||_==="yaxis"){var k=v[b]._emptyCategories;k&&k()}}}else Lr.supplyDefaultsUpdateCalc(e.calcdata,c);var M=[];if(n&&(e._transitionData={},Lr.createTransitionData(e),M.push(o)),v.transition&&(x.anim||m.anim))m.ticks&&M.push(pt.doTicksRelayout),Lr.doCalcdata(e),pt.doAutoRangeAndConstraints(e),M.push(function(){return Lr.transitionFromReact(e,x,m,s)});else if(x.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,M.push(Zr._doPlot);else{for(var q in m.arrays){var C=m.arrays[q];if(C.length){var D=Xi.getComponentMethod(q,"drawOne");if(D!==nr.noop)for(var P=0;P<C.length;P++)D(e,C[P]);else{var R=Xi.getComponentMethod(q,"draw");if(R===nr.noop)throw new Error("cannot draw components: "+q);R(e)}}}M.push(Lr.previousPromises),x.style&&M.push(pt.doTraceStyle),(x.colorbars||m.colorbars)&&M.push(pt.doColorBars),m.legend&&M.push(pt.doLegend),m.layoutstyle&&M.push(pt.layoutStyles),m.axrange&&zg(M),m.ticks&&M.push(pt.doTicksRelayout),m.modebar&&M.push(pt.doModeBar),m.camera&&M.push(pt.doCamera),M.push(_d)}M.push(Lr.rehover,Lr.redrag,Lr.reselect),i=nr.syncOrAsync(M,e),(!i||!i.then)&&(i=Promise.resolve(e))}}return i.then(()=>(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function F7e(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=Rg.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s<r.length;s++)if(t[s]){if(u=t[s],v[u.uid])continue;v[u.uid]=1,Pg(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 Rg.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 Pg(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 Pg(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 F=n.editType;if(f&&F.indexOf("arraydraw")!==-1){nr.pushUnique(s.arrays[f],c);return}Us.update(s,n),F!=="none"&&s.nChanges++,a.transition&&n.anim&&s.nChangesAnim++,(ZH.test(o)||$H.test(o))&&(s.rangesAltered[t[0]]=1),i==="datarevision"&&(s.newDataRevision=1)}function d(F){return F.valType==="data_array"||F.arrayOk}for(i in e){if(s.calc&&!a.transition)return;var p=e[i],m=r[i],y=t.concat(i);if(o=y.join("."),!(i.charAt(0)==="_"||typeof p=="function"||p===m)){if((i==="tick0"||i==="dtick")&&t[0]!=="geo"){var x=r.tickmode;if(x==="auto"||x==="array"||!x)continue}if(!(i==="range"&&r.autorange)&&!((i==="zmin"||i==="zmax")&&r.type==="contourcarpet")&&(n=l(y),!!n&&!(n._compareAsJSON&&JSON.stringify(p)===JSON.stringify(m)))){var T=n.valType,w,b=d(n),_=Array.isArray(p),k=Array.isArray(m);if(_&&k){var M="_input_"+i,q=e[M],C=r[M];if(Array.isArray(q)&&q===C)continue}if(m===void 0)b&&_?s.calc=!0:v();else if(n._isLinkedToArray){var D=[],P=!1;f||(s.arrays[i]=D);var R=Math.min(p.length,m.length),I=Math.max(p.length,m.length);if(R!==I)if(n.editType==="arraydraw")P=!0;else{v();continue}for(w=0;w<R;w++)Pg(p[w],m[w],y.concat(w),nr.extendFlat({inArray:i,arrayIndex:w},a));if(P)for(w=R;w<I;w++)D.push(w)}else!T&&nr.isPlainObject(p)?Pg(p,m,y,a):b?_&&k?(u&&(s.calc=!0),(u||a.newDataRevision)&&v()):_!==k?s.calc=!0:v():_&&k?(p.length!==m.length||String(p)!==String(m))&&v():v()}}}for(i in r)if(!(i in e||i.charAt(0)==="_"||typeof r[i]=="function"))if(n=l(t.concat(i)),d(n)&&Array.isArray(r[i])){s.calc=!0;return}else v()}function B7e(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 I=0;I<R.length;I++){var F;R[I].type==="byname"?F=Lr.computeFrame(e,R[I].name):F=R[I].data;var B=l(I),U=o(I);U.duration=Math.min(U.duration,B.duration);var G={frame:F,name:R[I].name,frameOpts:B,transitionOpts:U};I===R.length-1&&(G.onComplete=s(u,2),G.onInterrupt=f),a._frameQueue.push(G)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||m()}}function d(){e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function p(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var R=a._currentFrame=a._frameQueue.shift();if(R){var I=R.name?R.name.toString():null;e._fullLayout._currentFrame=I,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:I,frame:R.frame,animation:{frame:R.frameOpts,transition:R.transitionOpts}})}else d()}function m(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var R=function(){a._animationRaf=window.requestAnimationFrame(R),Date.now()-a._lastFrameAt>a._timeToNext&&p()};R()}var y=0;function x(R){return Array.isArray(n)?y>=n.length?R.transitionOpts=n[y]:R.transitionOpts=n[0]:R.transitionOpts=n,y++,R}var T,w,b=[],_=r==null,k=Array.isArray(r),M=!_&&!k&&nr.isPlainObject(r);if(M)b.push({type:"object",data:x(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))&&b.push({type:"byname",name:String(w.name),data:x({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),b.push({type:"byname",name:q,data:x({name:q})})):nr.isPlainObject(q)&&b.push({type:"object",data:x(nr.extendFlat({},q))})}for(T=0;T<b.length;T++)if(w=b[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"&&b.reverse();var C=e._fullLayout._currentFrame;if(C&&t.fromcurrent){var D=-1;for(T=0;T<b.length;T++)if(w=b[T],w.type==="byname"&&w.name===C){D=T;break}if(D>0&&D<b.length-1){var P=[];for(T=0;T<b.length;T++)w=b[T],(b[T].type!=="byname"||T>D)&&P.push(w);b=P}}b.length>0?v(b):(e.emit("plotly_animated"),u())})}function H7e(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,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&Z7<PH&&(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===PH&&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(M,q){return M.index>q.index?-1:M.index<q.index?1:0});var y=[],x=[],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++);y.push({type:"replace",index:i,value:n}),x.unshift({type:"replace",index:i,value:l[i]})}else o=Math.max(0,Math.min(f[a].index,T)),y.push({type:"insert",index:o,value:n}),x.unshift({type:"delete",index:o}),T++}var w=Lr.modifyFrames,b=Lr.modifyFrames,_=[e,x],k=[e,y];return Bn&&Bn.add(e,w,_,b,k),Lr.modifyFrames(e,y)}function U7e(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 Bn&&Bn.add(e,l,u,s,f),Lr.modifyFrames(e,i)}function G7e(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 Y7e(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 V7e(e){var r=Sg.select(e),t=e._fullLayout;if(t._calcInverseTransform=Y7e,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={};Sg.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=nr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(b7e.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")}Zr.animate=B7e;Zr.addFrames=H7e;Zr.deleteFrames=U7e;Zr.addTraces=VH;Zr.deleteTraces=jH;Zr.extendTraces=GH;Zr.moveTraces=J7;Zr.prependTraces=YH;Zr.newPlot=k7e;Zr._doPlot=w7e;Zr.purge=G7e;Zr.react=I7e;Zr.redraw=A7e;Zr.relayout=xd;Zr.restyle=Cg;Zr.setPlotConfig=T7e;Zr.update=Dg;Zr._guiRelayout=K7(xd);Zr._guiRestyle=K7(Cg);Zr._guiUpdate=K7(Dg);Zr._storeDirectGUIEdit=C7e});var Vl=N(Zi=>{"use strict";var j7e=Tr();Zi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};Zi.getRedrawFunc=function(e){return function(){j7e.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 QH=window.URL||window.webkitURL;Zi.createObjectURL=function(e){return QH.createObjectURL(e)};Zi.revokeObjectURL=function(e){return QH.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=W7e(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 W7e(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 Ng=N((sje,eU)=>{"use strict";var rw=Dr(),oje=ke(),X7e=Xr(),Z7e=Sr(),lje=Fl(),ew=/"/g,hf="TOBESTRIPPED",$7e=new RegExp(`("${hf})|(${hf}")|("${hf})|(${hf}")`,"g"),J7e=["&","&","&",""",""",""","'","'","'"],K7e=["<","<","<"],Q7e=[">",">",">"];function ewe(e){let r=rw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return J7e.includes(n)?a:K7e.includes(n)?"<":Q7e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function rwe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}eU.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(X7e.setRect,0,0,l,s).call(Z7e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u<f.length;u++){var c=f[u];c.toSVG&&c.toSVG(r)}if(o){var v=o.node().childNodes,d=Array.prototype.slice.call(v);for(u=0;u<d.length;u++){var p=d[u];p.childNodes.length&&i.node().appendChild(p)}}n._draggers&&n._draggers.remove(),i.node().style.background="",i.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var y=rw.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){y.remove();return}else y.style({visibility:null,display:null});var x=this.style.fontFamily;x&&x.indexOf('"')!==-1&&y.style("font-family",x.replace(ew,hf));var T=this.style.fontWeight;T&&(T==="normal"||T==="400")&&y.style("font-weight",void 0);var w=this.style.fontStyle;w&&w==="normal"&&y.style("font-style",void 0);var b=this.style.fontVariant;b&&b==="normal"&&y.style("font-variant",void 0)}),i.selectAll(".gradient_filled,.pattern_filled").each(function(){var y=rw.select(this),x=this.style.fill;x&&x.indexOf("url(")!==-1&&y.style("fill",x.replace(ew,hf));var T=this.style.stroke;T&&T.indexOf("url(")!==-1&&y.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 m=new window.XMLSerializer().serializeToString(i.node());return m=ewe(m),m=rwe(m),m=m.replace($7e,"'"),m}});var Ig=N((uje,rU)=>{"use strict";var twe=ke(),awe=Ou().EventEmitter,wd=Vl();function nwe(e){var r=e.emitter||new awe,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,x;l==="svg"||twe.isSafari()?x=wd.encodeSVG(o):(y=wd.createBlob(o,"svg"),x=wd.createObjectURL(y)),s.width=v,s.height=d,m.onload=function(){var T;switch(y=null,wd.revokeObjectURL(x),l!=="svg"&&p.drawImage(m,0,0,v,d),l){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=x;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(T),e.promise||r.emit("success",T)},m.onerror=function(T){if(y=null,wd.revokeObjectURL(x),n(T),!e.promise)return r.emit("error",T)},m.src=x});return e.promise?t:r}rU.exports=nwe});var aw=N((fje,nU)=>{"use strict";var tU=Fr(),aU=Q7(),iwe=va(),pl=ke(),Td=Vl(),owe=Ng(),lwe=Ig(),swe=V0().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 uwe(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,M){return pl.coerce(r,l,tw,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=pl.extendFlat({},a);f?y.width=f:r.width===null&&tU(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&tU(i.height)&&(y.height=i.height);var x=pl.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=Td.getRedrawFunc(m);function w(){return new Promise(function(k){setTimeout(k,Td.getDelay(m._fullLayout))})}function b(){return new Promise(function(k,M){var q=owe(m,u,v),C=m._fullLayout.width,D=m._fullLayout.height;function P(){aU.purge(m),document.body.removeChild(m)}if(u==="full-json"){var R=iwe.graphJson(m,!1,"object",!0,!0);return R.version=swe,R=JSON.stringify(R),P(),k(p?R:Td.encodeJSON(R))}if(P(),u==="svg")return k(p?q:Td.encodeSVG(q));var I=document.createElement("canvas");I.id=pl.randstr(),lwe({format:u,width:C,height:D,scale:v,canvas:I,svg:q,promise:!0}).then(k).catch(M)})}function _(k){return p?k.replace(Td.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){aU.newPlot(m,t,y,x).then(T).then(w).then(b).then(function(q){k(_(q))}).catch(function(q){M(q)})})}nU.exports=uwe});var lU=N((cje,oU)=>{"use strict";var $i=ke(),fwe=va(),cwe=Gc(),vwe=ds().dfltConfig,Do=$i.isPlainObject,pf=Array.isArray,nw=$i.isArrayOrTypedArray;oU.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=cwe.get(),n=[],i={_context:$i.extendFlat({},vwe)},o,l;pf(r)?(i.data=$i.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Fa("array","data"))),Do(t)?(i.layout=$i.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Fa("object","layout"))),fwe.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;f<u;f++){var c=o[f],v=["data",f];if(!Do(c)){n.push(Fa("object",v));continue}var d=s[f],p=d.type,m=a.traces[p].attributes;m.type={valType:"enumerated",values:[p]},d.visible===!1&&c.visible!==!1&&n.push(Fa("invisible",v)),Fg(c,d,m,n,v)}var y=i._fullLayout,x=hwe(a,s);return Fg(l,y,x,n,"layout"),n.length===0?void 0:n};function Fg(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=mwe(t,s),d=(v||{}).valType,p=d==="info_array",m=d==="colorscale",y=(v||{}).items;if(!pwe(t,s))a.push(Fa("schema",n,u));else if(Do(f)&&Do(c)&&d!=="any")Fg(f,c,v,a,n,u);else if(p&&pf(f)){f.length>c.length&&a.push(Fa("unused",n,u.concat(c.length)));var x=c.length,T=Array.isArray(y);T&&(x=Math.min(x,y.length));var w,b,_,k,M;if(v.dimensions===2)for(b=0;b<x;b++)if(pf(f[b])){f[b].length>c[b].length&&a.push(Fa("unused",n,u.concat(b,c[b].length)));var q=c[b].length;for(w=0;w<(T?Math.min(q,y[b].length):q);w++)_=T?y[b][w]:y,k=f[b][w],M=c[b][w],$i.validate(k,_)?M!==k&&M!==+k&&a.push(Fa("dynamic",n,u.concat(b,w),k,M)):a.push(Fa("value",n,u.concat(b,w),k))}else a.push(Fa("array",n,u.concat(b),f[b]));else for(b=0;b<x;b++)_=T?y[b]:y,k=f[b],M=c[b],$i.validate(k,_)?M!==k&&M!==+k&&a.push(Fa("dynamic",n,u.concat(b),k,M)):a.push(Fa("value",n,u.concat(b),k))}else if(v.items&&!p&&pf(f)){var C=y[Object.keys(y)[0]],D=[],P,R;for(P=0;P<c.length;P++){var I=c[P]._index||P;if(R=u.slice(),R.push(I),Do(f[I])&&Do(c[P])){D.push(I);var F=f[I],B=c[P];Do(F)&&F.visible!==!1&&B.visible===!1?a.push(Fa("invisible",n,R)):Fg(F,B,C,a,n,R)}}for(P=0;P<f.length;P++)R=u.slice(),R.push(P),Do(f[P])?D.indexOf(P)===-1&&a.push(Fa("unused",n,R)):a.push(Fa("object",n,R,f[P]))}else!Do(f)&&Do(c)?a.push(Fa("object",n,u,f)):!nw(f)&&nw(c)&&!p&&!m?a.push(Fa("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(Fa("dynamic",n,u,f,c)):a.push(Fa("value",n,u,f)):a.push(Fa("unused",n,u,f))}return a}function hwe(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 dwe={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=Do(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 Fa(e,r,t,a,n){t=t||"";var i,o;pf(r)?(i=r[0],o=r[1]):(i=r,o=null);var l=gwe(t),s=dwe[e](r,l,a,n);return $i.log(s),{code:e,container:i,trace:o,path:t,astr:l,msg:s}}function pwe(e,r){var t=iU(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function mwe(e,r){if(r in e)return e[r];var t=iU(r);return e[t.keyMinusId]}var ywe=$i.counterRegex("([a-z]+)");function iU(e){var r=e.match(ywe);return{keyMinusId:r&&r[1],id:r&&r[2]}}function gwe(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 uU=N((vje,sU)=>{"use strict";var bwe=ke(),Og=Vl();function xwe(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=Og.createBlob(e,t),u=Og.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Og.revokeObjectURL(u),s=null,o(r);if(bwe.isSafari()){var f=t==="svg"?",":";base64,";return Og.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}sU.exports=xwe});var iw=N((hje,hU)=>{"use strict";var Bg=ke(),fU=Ca(),_we=aw(),wwe=uU(),cU=Vl(),vU=40;function Twe(e,r){var t;return Bg.isPlainObject(e)||(t=Bg.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=_we(e,r),o=r.filename||e.fn;if(!o){let s=cU.getPlotTitle(e);if(s&&!fU.matchTex(s))o=Bg.slugify(s,vU);else{let u=cU.getPlotSubtitle(e);u&&!fU.matchTex(u)&&(o=Bg.slugify(u,vU))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),wwe(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}hU.exports=Twe});var gU=N(ow=>{"use strict";var ei=ke(),ri=ei.isPlainObject,dU=Gc(),pU=va(),Mwe=Nn(),mU=St(),yU=ds().dfltConfig;ow.makeTemplate=function(e){e=ei.isPlainObject(e)?e:ei.getGraphDiv(e),e=ei.extendDeep({_context:yU},{data:e.data,layout:e.layout}),pU.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,kwe.bind(null,d));var m=ei.coerce(d,{},Mwe,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),Md(t,a.layout,Awe.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)&&Hg(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++)Hg(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 Hg(e,r){e=ei.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,v){if(ri(c)&&ri(f))Hg(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var d=mU.arrayTemplater({_template:e},v);for(n=0;n<c.length;n++){var p=c[n],m=d.newItem(p)._template;m&&Hg(m,p)}var y=d.defaultItems();for(n=0;n<y.length;n++)c.push(y[n]._template);for(n=0;n<c.length;n++)delete c[n].templateitemname}}for(a=0;a<t.length;a++){var o=t[a],l=e[o];if(o in r?i(l,r[o],o):r[o]=l,Ug(o)===o)for(var s in r){var u=Ug(s);s!==u&&u===o&&!(s in e)&&i(l,r[s],o)}}}function Ug(e){return e.replace(/[0-9]+$/,"")}function 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=Ug(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={},m=0;m<l.length;m++){var y=l[m];if(ri(y)){var x=y.name;if(x)p[x]||(Md(y,r,t,Ji(l,d,s),Ji(l,d,u)),d++,p[x]=1);else if(!v){var T=mU.arrayDefaultKey(o),w=Ji(e,T,a),b=Ji(l,d,s);Md(y,r,t,b,Ji(l,d,u));var _=ei.nestedProperty(r,b),k=ei.nestedProperty(r,w);k.set(_.get()),_.set(null),v=!0}}}else{var M=ei.nestedProperty(r,s);M.set(l)}}}function Awe(e,r){return dU.getLayoutValObject(e,ei.nestedProperty({},r).parts)}function kwe(e,r){return dU.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:yU,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,pU.supplyDefaults(t);var l=t._fullLayout,s=t._fullData,u={};function f(w,b){for(var _ in w)if(_.charAt(0)!=="_"&&ri(w[_])){var k=Ug(_),M=[],q;for(q=0;q<b.length;q++)M.push(Ji(w,_,b[q])),k!==_&&M.push(Ji(w,k,b[q]));for(q=0;q<M.length;q++)u[M[q]]=1;f(w[_],M)}}function c(w,b){for(var _ in w)if(_.indexOf("defaults")===-1&&ri(w[_])){var k=Ji(w,_,b);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 m=s[p];d=m.type,v[d]=(v[d]||0)+1,m._template||o.push({code:"missing",index:m.index,traceType:d})}for(d in i){var y=i[d].length,x=v[d]||0;y>x?o.push({code:"unused",traceType:d,templateCount:y,dataCount:x}):x>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:x})}}function T(w,b){for(var _ in w)if(_.charAt(0)!=="_"){var k=w[_],M=Ji(w,_,b);ri(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),T(k,M)):Array.isArray(k)&&Swe(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(qwe)};function Swe(e){for(var r=0;r<e.length;r++)if(ri(e[r]))return!0}function qwe(e){var r;switch(e.code){case"data":r="The template has no key data.";break;case"layout":r="The template has no key layout.";break;case"missing":e.path?r="There are no templates for item "+e.path+" with name "+e.templateitemname:r="There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":e.path?r="The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?r="Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":r="The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":r="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type.";break}return e.msg=r,e}});var xU=N(Bt=>{"use strict";var Da=Q7();Bt._doPlot=Da._doPlot;Bt.newPlot=Da.newPlot;Bt.restyle=Da.restyle;Bt.relayout=Da.relayout;Bt.redraw=Da.redraw;Bt.update=Da.update;Bt._guiRestyle=Da._guiRestyle;Bt._guiRelayout=Da._guiRelayout;Bt._guiUpdate=Da._guiUpdate;Bt._storeDirectGUIEdit=Da._storeDirectGUIEdit;Bt.react=Da.react;Bt.extendTraces=Da.extendTraces;Bt.prependTraces=Da.prependTraces;Bt.addTraces=Da.addTraces;Bt.deleteTraces=Da.deleteTraces;Bt.moveTraces=Da.moveTraces;Bt.purge=Da.purge;Bt.addFrames=Da.addFrames;Bt.deleteFrames=Da.deleteFrames;Bt.animate=Da.animate;Bt.setPlotConfig=Da.setPlotConfig;var Lwe=dh().getGraphDiv,Cwe=Ky().eraseActiveShape;Bt.deleteActiveShape=function(e){return Cwe(Lwe(e))};Bt.toImage=aw();Bt.validate=lU();Bt.downloadImage=iw();var bU=gU();Bt.makeTemplate=bU.makeTemplate;Bt.validateTemplate=bU.validateTemplate});var sw=N((mje,_U)=>{"use strict";var lw=ke(),Ewe=Tr();_U.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 gv=N((yje,MU)=>{"use strict";var wU=ke().dateTick0,Dwe=Gt(),Pwe=Dwe.ONEWEEK;function TU(e,r){return e%Pwe===0?wU(r,1):wU(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",TU(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",TU(l,t.ycalendar)),n("yperiodalignment"))}}});var SU=N((gje,kU)=>{"use strict";var AU=["orientation","groupnorm","stackgaps"];kU.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<AU.length;v++){var d=AU[v],p=d+"Found";if(!u[p]){var m=r[d]!==void 0,y=d==="orientation";if((m||f)&&(u[d]=n(d,c[d]),y&&(u.fillDflt=u[d]==="h"?"tonextx":"tonexty"),m&&(u[p]=!0,!f&&(delete u.traces[0][d],y))))for(var x=0;x<u.traces.length-1;x++){var T=u.traces[x];T._input.fill!==T.fill&&(T.fill=u.fillDflt)}}}return u}}});var uw=N((bje,EU)=>{"use strict";var qU=Sr(),LU=hi().hasColorscale,CU=Ol(),Rwe=Jn();EU.exports=function(r,t,a,n,i,o={}){var l=Rwe.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),LU(r,"marker")&&CU(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=qU.background:u=qU.defaultLine,i("marker.line.color",u),LU(r,"marker.line")&&CU(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=N((xje,DU)=>{"use strict";var zwe=ke().isArrayOrTypedArray,Nwe=hi().hasColorscale,Iwe=Ol();DU.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=N((_je,PU)=>{"use strict";PU.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var vw=N((wje,RU)=>{"use strict";var Fwe=ke();RU.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Fwe.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var hw=N((Tje,NU)=>{"use strict";var Gg=Sr(),zU=ke().isArrayOrTypedArray;function Owe(e){for(var r=Gg.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=Gg.interpolate(e[t-1][1],e[t][1],.5);r=Gg.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",Gg.addOpacity((t.line||{}).color||o||u||a,.5))}});var BU=N((Mje,OU)=>{"use strict";var IU=ke(),Bwe=Tr(),Hwe=Vi(),Uwe=vd(),bv=Jn(),Gwe=sw(),Ywe=gv(),Vwe=SU(),jwe=uw(),Wwe=fw(),FU=cw(),Xwe=vw(),Zwe=hw(),$we=ke().coercePattern;OU.exports=function(r,t,a,n){function i(d,p){return IU.coerce(r,t,Hwe,d,p)}var o=Gwe(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Ywe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Vwe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o<Uwe.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),bv.hasMarkers(t)&&jwe(r,t,a,n,i,{gradient:!0}),bv.hasLines(t)&&(Wwe(r,t,a,n,i,{backoff:!0}),FU(r,t,i),i("connectgaps"),i("line.simplify")),bv.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),Xwe(r,t,n,i));var u=[];(bv.hasMarkers(t)||bv.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(Zwe(r,t,a,i,{moduleHasFillgradient:!0}),bv.hasLines(t)||FU(r,t,i),$we(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=Bwe.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 Ad=N((Aje,HU)=>{"use strict";var Jwe=vf().getAxisGroup;HU.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Jwe(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var GU=N((kje,UU)=>{"use strict";var Kwe=ke(),Qwe=Ad(),e8e=Vi();UU.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return Kwe.coerce(n._input,n,e8e,v)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,Qwe(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 VU=N((Sje,YU)=>{"use strict";var r8e=ke(),t8e=Pm();YU.exports=function(e,r){function t(n,i){return r8e.coerce(e,r,t8e,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var xv=N((qje,WU)=>{"use strict";var a8e=Fr(),jU=ke(),n8e=jU.dateTime2ms,Yg=jU.incrementMonth,i8e=Gt(),o8e=i8e.ONEAVGMONTH;WU.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(a8e(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=n8e(v,u)||0,p=[],m=[],y=[],x=n.length,T=0;T<x;T++){var w=n[T],b,_,k;if(l){for(b=Math.round((w-d)/(l*o8e)),k=Yg(d,l*b,u);k>w;)k=Yg(k,-l,u);for(;k<=w;)k=Yg(k,l,u);_=Yg(k,-l,u)}else{for(b=Math.round((w-d)/o),k=d+b*o;k>w;)k-=o;for(;k<=w;)k+=o;_=k-o}p[T]=f?_:c?k:(_+k)/2,m[T]=_,y[T]=k}return{vals:p,starts:m,ends:y}}});var mw=N((Lje,ZU)=>{"use strict";var dw=hi().hasColorscale,pw=Wc(),XU=Jn();ZU.exports=function(r,t){XU.hasLines(t)&&dw(t,"line")&&pw(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),XU.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 Vg=N((Cje,$U)=>{"use strict";var Jt=ke();$U.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 jg=N((Eje,KU)=>{"use strict";var JU=ke();KU.exports=function(r,t){JU.isArrayOrTypedArray(t.selectedpoints)&&JU.tagSelected(r,t)}});var Wg=N((Dje,iG)=>{"use strict";var QU=Fr(),gw=ke(),kd=Gr(),eG=xv(),yw=Gt().BADNUM,bw=Jn(),l8e=mw(),s8e=Vg(),u8e=jg();function f8e(e,r){var t=e._fullLayout,a=r._xA=kd.getFromId(e,r.xaxis||"x","x"),n=r._yA=kd.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=eG(r,a,"x",i),s=eG(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),m=!1,y,x,T,w,b,_;aG(t,r);var k="x",M="y",q;if(p)gw.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",q="x"):(k="s",q="y"),b=p.stackgaps==="interpolate";else{var C=tG(r,c);rG(e,r,a,n,u,f,C)}var D=!!r.xperiodalignment,P=!!r.yperiodalignment;for(x=0;x<c;x++){var R=v[x]={},I=QU(u[x]),F=QU(f[x]);I&&F?(R[k]=u[x],R[M]=f[x],D&&(R.orig_x=i[x],R.xEnd=l.ends[x],R.xStart=l.starts[x]),P&&(R.orig_y=o[x],R.yEnd=s.ends[x],R.yStart=s.starts[x])):p&&(y?I:F)?(R[q]=y?u[x]:f[x],R.gap=!0,b?(R.s=yw,m=!0):R.s=0):R[k]=R[M]=yw,d&&(R.id=String(d[x]))}if(s8e(v,r),l8e(e,r),u8e(v,r),p){for(x=0;x<v.length;)v[x][q]===yw?v.splice(x,1):x++;if(gw.sort(v,function(V,Y){return V[q]-Y[q]||V.i-Y.i}),m){for(x=0;x<v.length-1&&v[x].gap;)x++;for(_=v[x].s,_||(_=v[x].s=0),T=0;T<x;T++)v[T].s=_;for(w=v.length-1;w>x&&v[w].gap;)w--;for(_=v[w].s,T=v.length-1;T>w;T--)v[T].s=_;for(;x<w;)if(x++,v[x].gap){for(T=x+1;v[T].gap;)T++;for(var B=v[x-1][q],U=v[x-1].s,G=(v[T].s-U)/(v[T][q]-B);x<T;)v[x].s=U+(v[x][q]-B)*G,x++}}}return v}function rG(e,r,t,a,n,i,o){var l=r._length,s=e._fullLayout,u=t._id,f=a._id,c=s._firstScatter[nG(r)]===r.uid,v=(xw(r,s,t,a)||{}).orientation,d=r.fill;t._minDtick=0,a._minDtick=0;var p={padded:!0},m={padded:!0};o&&(p.ppad=m.ppad=o);var y=l<2||n[0]!==n[l-1]||i[0]!==i[l-1];y&&(d==="tozerox"||d==="tonextx"&&(c||v==="h"))?p.tozero=!0:!(r.error_y||{}).visible&&(d==="tonexty"||d==="tozeroy"||!bw.hasMarkers(r)&&!bw.hasText(r))&&(p.padded=!1,p.ppad=0),y&&(d==="tozeroy"||d==="tonexty"&&(c||v==="v"))?m.tozero=!0:(d==="tonextx"||d==="tozerox")&&(m.padded=!1),u&&(r._extremes[u]=kd.findExtremes(t,n,p)),f&&(r._extremes[f]=kd.findExtremes(a,i,m))}function tG(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"};kd.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 aG(e,r){var t=nG(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function nG(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}}iG.exports={calc:f8e,calcMarkerSize:tG,calcAxisExpansion:rG,setFirstScatter:aG,getStackOpts:xw}});var lG=N((Pje,oG)=>{"use strict";oG.exports=Xg;var c8e=ke().distinctVals;function Xg(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=c8e(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={}}Xg.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};Xg.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};Xg.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 Sd=N((Rje,sG)=>{"use strict";sG.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var $g=N((zje,vG)=>{"use strict";var Ki=Fr(),{isArrayOrTypedArray:jl}=ke(),{BADNUM:_v}=Gt(),v8e=Tr(),qd=Gr(),{getAxisGroup:h8e}=vf(),Zg=lG(),{TEXTPAD:d8e}=Sd(),{LINE_SPACING:p8e}=Qa(),{BR_TAG_ALL:m8e}=Ca();function y8e(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&&v8e.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(x8e(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&&_8e(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);b8e(o),o.length&&w8e(e,r,t,o,n),i.length&&_w(e,r,t,i,n);break}g8e(a),q8e(a,r)}}function g8e(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 b8e(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 x8e(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 Zg([o],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});Tw(e,r,l,n),n.norm?(cG(l),Mw(t,l,n)):fG(t,l)}}function _8e(e,r,t,a,n){var i=new Zg(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});Tw(e,r,i,n),k8e(i,r),n.norm?(cG(i),Mw(t,i,n)):fG(t,i)}function w8e(e,r,t,a,n){var i=new Zg(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});Tw(e,r,i,n),A8e(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!==_v){var c=f.b+f.s===i.get(f.p,s,f.s);c&&(f._outmost=!0)}}n.norm&&Mw(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,m;if(r._id==="angularaxis")v=c,d=v*(1-(a.groupgap||0)),p=-d/2;else{var y=h8e(n,r._id)+s[0][0].trace.orientation;m=n._alignmentOpts[y]||{}}for(var x=0;x<u;x++){var T=s[x],w=T[0].trace;if(r._id!=="angularaxis"){var b=m[w.alignmentgroup]||{},_=Object.keys(b.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*x+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,T8e(t),M8e(r,t),r._id==="angularaxis"?uG(r,t):uG(r,t,f)}function T8e(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=wv(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 uG(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;qd.minDtick(e,r.minDiff,r.distinctPositions[0],t);for(var o=0;o<a.length;o++){var l=a[o],s=l[0],u=s.trace,f=[],c,v,d,p;for(p=0;p<l.length;p++)c=l[p],v=c.p-i,d=c.p+i,f.push(v,d);if(u.width||u.offset){var m=s.t,y=m.poffset,x=m.barwidth,T=jl(y),w=jl(x);for(p=0;p<l.length;p++){c=l[p];var b=T?y[p]:y,_=w?x[p]:x;v=c.p+b,d=v+_,f.push(v,d)}}u._extremes[e._id]=qd.findExtremes(e,f,{padded:!1})}}function fG(e,r){for(var t=r.traces,a=wv(e),n=0;n<t.length;n++){for(var i=t[n],o=i[0].trace,l=o.type==="scatter",s=o.orientation==="v",u=[],f=!1,c=0;c<i.length;c++){var v=i[c],d=l?0:v.b,p=l?s?v.y:v.x:d+v.s;v[a]=p,u.push(p),v.hasB&&u.push(d),(!v.hasB||!v.b)&&(f=!0)}let{ppadminus:m,ppadplus:y}=Aw(o,i);o._extremes[e._id]=qd.findExtremes(e,u,{tozero:f,padded:!0,ppadplus:y,ppadminus:m})}}function A8e(e,r,t){var a=wv(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!==_v&&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!==_v){var d;l?d=f.s:d=f.s+f.b;var p=r.put(f.p,c,d),m=p+d;f.b=p,f[a]=m,t.norm||(v.push(m),f.hasB&&v.push(p))}if(!t.norm){let{ppadminus:y,ppadplus:x}=Aw(o,i);o._extremes[e._id]=qd.findExtremes(e,v,{tozero:!0,padded:!0,ppadplus:x,ppadminus:y})}}}function cG(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!==_v&&e.put(o.p,n,o.b+o.s)}}function k8e(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 Zg([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<n.length;s++){var u=n[s];if(u.p!==_v){var f=l.put(u.p,o,u.b+u.s);f&&(u.b=f)}}}}function Mw(e,r,t){var a=r.traces,n=wv(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=[],m=!1,y=!1,x=0;x<c.length;x++){var T=c[x];if(T.s!==_v){var w=Math.abs(i/r.get(T.p,v,T.s));T.b*=w,T.s*=w;var b=T.b,_=b+T.s;T[n]=_,p.push(_),y=y||u(_),T.hasB&&(p.push(b),y=y||u(b)),(!T.hasB||!T.b)&&(m=!0)}}let{ppadminus:k,ppadplus:M}=Aw(d,c);d._extremes[e._id]=qd.findExtremes(e,p,{tozero:m,padded:y,ppadplus:M,ppadminus:k})}}function Aw(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(m8e)||[]).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*p8e*t+d8e;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 S8e(e,r,t,a){for(var n=wv(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 q8e(e,r){var t=wv(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 m=o[0].t.poffset,y=jl(m);for(i=0;i<o.length;i++){var x=o[i],T=x[t]-x.w/2;if(Ki(T)){var w=x[t]+x.w/2,b=c(x.p);a[b]?a[b]=[Math.min(T,a[b][0]),Math.max(w,a[b][1])]:a[b]=[T,w]}if(x.p0=x.p+(y?m[i]:m),x.p1=x.p0+x.w,x.s0=x.b,x.s1=x.s0+x.s,p){var _=Math.min(x.s0,x.s1)||0,k=Math.max(x.s0,x.s1)||0,M=x[t];v[M]=M in v?Math.min(v[M],_):_,d[M]=M in d?Math.max(d[M],k):k}}}p&&S8e(e,v,d,r)}function wv(e){return e._id.charAt(0)}vG.exports={crossTraceCalc:y8e,setGroupPositions:ww}});var mG=N((Nje,pG)=>{"use strict";var hG=Wg(),dG=$g().setGroupPositions;function L8e(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};dG(e,t,a,s,c),dG(e,a,t,l,c)}pG.exports=function(r,t){r._fullLayout.scattermode==="group"&&L8e(r,t);var a=t.xaxis,n=t.yaxis,i=a._id+n._id,o=r._fullLayout._scatterStackOpts[i];if(o){var l=r.calcdata,s,u,f,c,v,d,p,m,y,x,T,w,b,_,k;for(var M in o){x=o[M];var q=x.traceIndices;if(q.length){for(T=x.stackgaps==="interpolate",w=x.groupnorm,x.orientation==="v"?(b="x",_="y"):(b="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][b];for(s=1;s<q.length;s++){for(v=l[q[s]],u=f=0;u<v.length;u++){for(p=v[u][b];p>C[f]&&f<C.length;f++)kw(v,u,C[f],s,k,T,b),u++;if(p!==C[f]){for(c=0;c<s;c++)kw(l[q[c]],f,p,c,k,T,b);C.splice(f,0,p)}f++}for(;f<C.length;f++)kw(v,u,C[f],s,k,T,b),u++}var D=C.length;for(u=0;u<d.length;u++){for(m=d[u][_]=d[u].s,s=1;s<q.length;s++)v=l[q[s]],v[0].trace._rawLength=v[0].trace._length,v[0].trace._length=D,m+=v[u].s,v[u][_]=m;if(w)for(y=(w==="fraction"?m:m/100)||1,s=0;s<q.length;s++){var P=l[q[s]][u];P[_]/=y,P.sNorm=P.s/y}}for(s=0;s<q.length;s++){v=l[q[s]];var R=v[0].trace,I=hG.calcMarkerSize(R,R._rawLength),F=Array.isArray(I);if(I&&k[s]||F){var B=I;for(I=new Array(D),u=0;u<D;u++)I[u]=v[u].gap?0:F?B[v[u].i]:B}var U=new Array(D),G=new Array(D);for(u=0;u<D;u++)U[u]=v[u].x,G[u]=v[u].y;hG.calcAxisExpansion(r,R,a,n,U,G,I),v[0].t.orientation=x.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=C8e(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 C8e(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=N((Ije,wG)=>{"use strict";var E8e=Xr(),xG=Gt(),Ld=xG.BADNUM,_G=xG.LOG_CLIP,yG=_G+.5,gG=_G-.5,Jg=ke(),D8e=Jg.segmentsIntersect,bG=Jg.constrain,Sw=vd();wG.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",x=[],T=Sw.minTolerance,w=r.length,b=new Array(w),_=0,k,M,q,C,D,P,R,I,F,B,U,G,V,Y,X,j;function J(De){var $e=r[De];if(!$e)return!1;var Fe=t.linearized?n.l2p($e.x):n.c2p($e.x),pr=t.linearized?i.l2p($e.y):i.c2p($e.y);if(Fe===Ld){if(o&&(Fe=n.c2p($e.x,!0)),Fe===Ld)return!1;l&&pr===Ld&&(Fe*=Math.abs(n._m*u*(n._m>0?yG:gG)/(i._m*s*(i._m>0?yG:gG)))),Fe*=1e3}if(pr===Ld){if(l&&(pr=i.c2p($e.y,!0)),pr===Ld)return!1;pr*=1e3}return[Fe,pr]}function ae(De,$e,Fe,pr){var mr=Fe-De,sr=pr-$e,yr=.5-De,ne=.5-$e,ye=mr*mr+sr*sr,Ne=mr*yr+sr*ne;if(Ne>0&&Ne<ye){var Be=yr*sr-ne*mr;if(Be*Be<ye)return!0}}var te,se;function $(De,$e){var Fe=De[0]/s,pr=De[1]/u,mr=Math.max(0,-Fe,Fe-1,-pr,pr-1);return mr&&te!==void 0&&ae(Fe,pr,te,se)&&(mr=0),mr&&$e&&ae(Fe,pr,$e[0]/s,$e[1]/u)&&(mr=0),(1+Sw.toleranceGrowth*mr)*d}function fe(De,$e){var Fe=De[0]-$e[0],pr=De[1]-$e[1];return Math.sqrt(Fe*Fe+pr*pr)}var oe=Sw.maxScreensAway,ue=-s*oe,ce=s*(1+oe),ie=-u*oe,ge=u*(1+oe),Ce=[[ue,ie,ce,ie],[ce,ie,ce,ge],[ce,ge,ue,ge],[ue,ge,ue,ie]],_e,Ee,Ae,Se,Re,Ie;function Le(De,$e){for(var Fe=[],pr=0,mr=0;mr<4;mr++){var sr=Ce[mr],yr=D8e(De[0],De[1],$e[0],$e[1],sr[0],sr[1],sr[2],sr[3]);yr&&(!pr||Math.abs(yr.x-Fe[0][0])>1||Math.abs(yr.y-Fe[0][1])>1)&&(yr=[yr.x,yr.y],pr&&fe(yr,De)<fe(Fe[0],De)?Fe.unshift(yr):Fe.push(yr),pr++)}return Fe}function Ze(De){if(De[0]<ue||De[0]>ce||De[1]<ie||De[1]>ge)return[bG(De[0],ue,ce),bG(De[1],ie,ge)]}function Je(De,$e){if(De[0]===$e[0]&&(De[0]===ue||De[0]===ce)||De[1]===$e[1]&&(De[1]===ie||De[1]===ge))return!0}function We(De,$e){var Fe=[],pr=Ze(De),mr=Ze($e);return pr&&mr&&Je(pr,mr)||(pr&&Fe.push(pr),mr&&Fe.push(mr)),Fe}function qe(De,$e,Fe){return function(pr,mr){var sr=Ze(pr),yr=Ze(mr),ne=[];if(sr&&yr&&Je(sr,yr))return ne;sr&&ne.push(sr),yr&&ne.push(yr);var ye=2*Jg.constrain((pr[De]+mr[De])/2,$e,Fe)-((sr||pr)[De]+(yr||mr)[De]);if(ye){var Ne;sr&&yr?Ne=ye>0==sr[De]>yr[De]?sr:yr:Ne=sr||yr,Ne[De]+=ye}return ne}}var ze;p==="linear"||p==="spline"?ze=Le:p==="hv"||p==="vh"?ze=We:p==="hvh"?ze=qe(0,ue,ce):p==="vhv"&&(ze=qe(1,ie,ge));function Qe(De,$e){var Fe=$e[0]-De[0],pr=($e[1]-De[1])/Fe,mr=(De[1]*$e[0]-$e[1]*De[0])/Fe;return mr>0?[pr>0?ue:ce,ge]:[pr>0?ce:ue,ie]}function re(De){var $e=De[0],Fe=De[1],pr=$e===b[_-1][0],mr=Fe===b[_-1][1];if(!(pr&&mr))if(_>1){var sr=$e===b[_-2][0],yr=Fe===b[_-2][1];pr&&($e===ue||$e===ce)&&sr?yr?_--:b[_-1]=De:mr&&(Fe===ie||Fe===ge)&&yr?sr?_--:b[_-1]=De:b[_++]=De}else b[_++]=De}function be(De){b[_-1][0]!==De[0]&&b[_-1][1]!==De[1]&&re([Ae,Se]),re(De),Re=null,Ae=Se=0}var Ge=Jg.isArrayOrTypedArray(c);function cr(De){if(De&&f&&(De.i=k,De.d=r,De.trace=a,De.marker=Ge?c[De.i]:c,De.backoff=f),te=De[0]/s,se=De[1]/u,_e=De[0]<ue?ue:De[0]>ce?ce:0,Ee=De[1]<ie?ie:De[1]>ge?ge:0,_e||Ee){if(!_)b[_++]=[_e||De[0],Ee||De[1]];else if(Re){var $e=ze(Re,De);$e.length>1&&(be($e[0]),b[_++]=$e[1])}else Ie=ze(b[_-1],De)[0],b[_++]=Ie;var Fe=b[_-1];_e&&Ee&&(Fe[0]!==_e||Fe[1]!==Ee)?(Re&&(Ae!==_e&&Se!==Ee?re(Ae&&Se?Qe(Re,De):[Ae||_e,Se||Ee]):Ae&&Se&&re([Ae,Se])),re([_e,Ee])):Ae-_e&&Se-Ee&&re([_e||Ae,Ee||Se]),Re=De,Ae=_e,Se=Ee}else Re&&be(ze(Re,De)[0]),b[_++]=De}for(k=0;k<w;k++)if(M=J(k),!!M){for(_=0,Re=null,cr(M),k++;k<w;k++){if(C=J(k),!C){if(v)continue;break}if(!m||!t.simplify){cr(C);continue}var Pe=J(k+1);if(B=fe(C,M),!(!(y&&(_===0||_===w-1))&&B<$(C,Pe)*T)){for(I=[(C[0]-M[0])/B,(C[1]-M[1])/B],D=M,U=B,G=Y=X=0,R=!1,q=C,k++;k<r.length;k++){if(P=Pe,Pe=J(k+1),!P){if(v)continue;break}if(F=[P[0]-M[0],P[1]-M[1]],j=F[0]*I[1]-F[1]*I[0],Y=Math.min(Y,j),X=Math.max(X,j),X-Y>$(P,Pe))break;q=P,V=F[0]*I[0]+F[1]*I[1],V>U?(U=V,C=P,R=!1):V<G&&(G=V,D=P,R=!0)}if(R?(cr(C),q!==D&&cr(D)):(D!==M&&cr(D),q!==C&&cr(C)),cr(q),k>=r.length||!P)break;cr(P),M=P}}Re&&re([Ae||Re[0],Se||Re[1]]),x.push(b.slice(0,_))}var me=p.slice(p.length-1);if(f&&me!=="h"&&me!=="v"){for(var Me=!1,He=-1,Xe=[],Oe=0;Oe<x.length;Oe++)for(var je=0;je<x[Oe].length-1;je++){var tr=x[Oe][je],ir=x[Oe][je+1],lr=E8e.applyBackoff(ir,tr);(lr[0]!==ir[0]||lr[1]!==ir[1])&&(Me=!0),Xe[He+1]||(He++,Xe[He]=[tr,[lr[0],lr[1]]])}return Me?Xe:x}return x}});var AG=N((Fje,MG)=>{"use strict";var TG={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 TG&&d>=0?s=d:(s=d=v,v++),s<c&&(f=!0),n._groupIndex=c=s;var p=a.slice();f&&p.sort(function(y,x){var T=y[0].trace,w=x[0].trace;return T._groupIndex-w._groupIndex||T.index-w.index});var m={};for(i=0;i<p.length;i++)n=p[i][0].trace,o=n.stackgroup||"",n.visible===!0?(n._nexttrace=null,n.fill in TG&&(l=m[o],n._prevtrace=l||null,l&&(l._nexttrace=n)),n._ownfill=n.fill&&(n.fill.slice(0,6)==="tozero"||n.fill==="toself"||n.fill.slice(0,2)==="to"&&!n._prevtrace),m[o]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return p}});var Lw=N((Oje,qG)=>{"use strict";var Po=Dr(),P8e=Tr(),Cd=ke(),Tv=Cd.ensureSingle,SG=Cd.identity,na=Xr(),Mv=Jn(),R8e=qw(),z8e=AG(),Kg=w7().tester;qG.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){kG(r,p,t,d,c,this,i)})})}else l.each(function(d,p){kG(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=Tv(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,SG);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Tv(Po.select(this),"path","js-fill")})})}function kG(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(qe){return u?qe.transition():qe}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,m=Po.select(i),y=Tv(m,"g","errorbars"),x=Tv(m,"g","lines"),T=Tv(m,"g","points"),w=Tv(m,"g","text");if(P8e.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(m).style("opacity",d.opacity);var b,_,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,q;k==="y"?(M=1,q=v.c2p(0,!0)):k==="x"&&(M=0,q=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var C="",D=[],P=d._prevtrace,R=null,I=null;P&&(C=P._prevRevpath||"",_=P._nextFill,D=P._ownPolygons,R=P._fillsegments,I=P._fillElement);var F,B,U="",G="",V,Y,X,j,J,ae,te=[];d._polygons=[];var se=[],$=[],fe=Cd.noop;if(b=d._ownFill,Mv.hasLines(d)||d.fill!=="none"){_&&_.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(V=na.steps(p.shape),Y=na.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?V=Y=function(qe){var ze=qe[qe.length-1];return qe.length>1&&qe[0][0]===ze[0]&&qe[0][1]===ze[1]?na.smoothclosed(qe.slice(1),p.smoothing):na.smoothopen(qe,p.smoothing)}:V=Y=function(qe){return"M"+qe.join("L")},X=function(qe){return Y(qe.reverse())},$=R8e(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 oe=0;for(s=0;s<$.length;s++){var ue,ce=$[s];!ue||!k?(ue=ce.slice(),se[oe]=ue,oe++):ue.push.apply(ue,ce)}d._fillElement=null,d._fillExclusionElement=I,d._fillsegments=se.slice(0,oe),se=d._fillsegments,$.length&&(j=$[0][0].slice(),J=$[$.length-1],ae=J[J.length-1].slice()),fe=function(qe){return function(ze){if(F=V(ze),B=X(ze),U?k?(U+="L"+F.slice(1),G=B+("L"+G.slice(1))):(U+="Z"+F,G=B+"Z"+G):(U=F,G=B),Mv.hasLines(d)){var Qe=Po.select(this);if(Qe.datum(a),qe)f(Qe.style("opacity",0).attr("d",F).call(na.lineGroupStyle)).style("opacity",1);else{var re=f(Qe);re.attr("d",F),na.singleLineStyle(a,re)}}}}}var ie=x.selectAll(".js-line").data($);f(ie.exit()).style("opacity",0).remove(),ie.each(fe(!1)),ie.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(na.lineGroupStyle).each(fe(!0)),na.setClipUrl(ie,t.layerClipId,e);function ge(qe){f(qe).attr("d","M0,0Z")}var Ce=function(){var qe=new Array(se.length);for(s=0;s<se.length;s++)qe[s]=Kg(se[s]);return qe},_e=function(qe){var ze,Qe;if(!qe||qe.length===0)for(ze=new Array(se.length),Qe=0;Qe<se.length;Qe++){var re=se[Qe][0].slice(),be=se[Qe][se[Qe].length-1].slice();re[M]=be[M]=q;var Ge=[be,re],cr=Ge.concat(se[Qe]);ze[Qe]=Kg(cr)}else{for(ze=new Array(qe.length-1+se.length),Qe=0;Qe<qe.length-1;Qe++)ze[Qe]=Kg(qe[Qe]);var Pe=qe[qe.length-1].slice();for(Pe.reverse(),Qe=0;Qe<se.length;Qe++)ze[qe.length-1+Qe]=Kg(se[Qe].concat(Pe))}return ze};$.length?(b?(b.datum(a),j&&ae&&(k?(j[M]=ae[M]=q,f(b).attr("d","M"+ae+"L"+j+"L"+U.slice(1)).call(na.singleFillStyle,e),te=_e(null)):(f(b).attr("d",U+"Z").call(na.singleFillStyle,e),te=Ce())),d._polygons=te,d._fillElement=b):_&&(d.fill.slice(0,6)==="tonext"&&U&&C?(d.fill==="tonext"?(f(_).attr("d",U+"Z"+C+"Z").call(na.singleFillStyle,e),te=Ce(),d._polygons=te.concat(D)):(f(_).attr("d",U+"L"+C.slice(1)+"Z").call(na.singleFillStyle,e),te=_e(R),d._polygons=te),d._fillElement=_):ge(_)),d._prevRevpath=G):(b?ge(b):_&&ge(_),d._prevRevpath=null),d._ownPolygons=te;function Ee(qe){return qe.filter(function(ze){return!ze.gap&&ze.vis})}function Ae(qe){return qe.filter(function(ze){return ze.vis})}function Se(qe){return qe.filter(function(ze){return!ze.gap})}function Re(qe){return qe.id}function Ie(qe){if(qe.ids)return Re}function Le(){return!1}function Ze(qe,ze,Qe){var re,be,Ge,cr=Qe[0].trace,Pe=Mv.hasMarkers(cr),me=Mv.hasText(cr),Me=Ie(cr),He=Le,Xe=Le;if(Pe||me){var Oe=SG,je=cr.stackgroup,tr=je&&e._fullLayout._scatterStackOpts[c._id+v._id][je].stackgaps==="infer zero";cr.marker.maxdisplayed||cr._needsCull?Oe=tr?Ae:Ee:je&&!tr&&(Oe=Se),Pe&&(He=Oe),me&&(Xe=Oe)}be=qe.selectAll("path.point"),re=be.data(He,Me);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(De){var $e=Po.select(this),Fe=f($e);Ge=na.translatePoint(De,Fe,c,v),Ge?(na.singlePointStyle(De,Fe,cr,lr,e),t.layerClipId&&na.hideOutsideRangePoint(De,Fe,c,v,cr.xcalendar,cr.ycalendar),cr.customdata&&$e.classed("plotly-customdata",De.data!==null&&De.data!==void 0)):Fe.remove()}),u?re.exit().transition().style("opacity",0).remove():re.exit().remove(),be=ze.selectAll("g"),re=be.data(Xe,Me),re.enter().append("g").classed("textpoint",!0).append("text"),re.order(),re.each(function(De){var $e=Po.select(this),Fe=f($e.select("text"));Ge=na.translatePoint(De,Fe,c,v),Ge?t.layerClipId&&na.hideOutsideRangePoint(De,$e,c,v,cr.xcalendar,cr.ycalendar):$e.remove()}),re.selectAll("text").call(na.textPointStyle,cr,e).each(function(De){var $e=c.c2p(De.x),Fe=v.c2p(De.y);Po.select(this).selectAll("tspan.line").each(function(){f(Po.select(this)).attr({x:$e,y:Fe})})}),re.exit().remove()}T.datum(a),w.datum(a),Ze(T,w,a);var Je=d.cliponaxis===!1,We=Je?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(Cd.simpleMap(i.range,i.r2c)),s=Po.extent(Cd.simpleMap(o.range,o.r2c)),u=a[0].trace;if(Mv.hasMarkers(u)){var f=u.marker.maxdisplayed;if(f!==0){var c=a.filter(function(m){return m.x>=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(m,y){var x=m[0].trace;Mv.hasMarkers(x)&&x.marker.maxdisplayed>0&&y<r&&d++});var p=Math.round(d*v/3+Math.floor(d/3)*v/7.1);a.forEach(function(m){delete m.vis}),c.forEach(function(m,y){Math.round((y+p)%v)===0&&(m.vis=!0)})}}}});var Ed=N((Bje,LG)=>{"use strict";LG.exports={container:"marker",min:"cmin",max:"cmax"}});var Cw=N((Hje,CG)=>{"use strict";var Qg=Gr();CG.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Qg.getFromTrace(i,t,"x"),l=Qg.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=Qg.tickText(o,o.c2l(s),!0).text,n.yLabel=Qg.tickText(l,l.c2l(u),!0).text,n}});var mf=N((Uje,EG)=>{"use strict";var Ew=Dr(),Av=Xr(),F8e=Tr();function O8e(e){var r=Ew.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=Ew.select(this),n=t.trace||t[0].trace;Dw(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Ew.select(this),n=t.trace||t[0].trace;Pw(a,n,e)}),r.selectAll("g.trace path.js-line").call(Av.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Av.fillGroupStyle,e,!1),F8e.getComponentMethod("errorbars","style")(r)}function Dw(e,r,t){Av.pointStyle(e.selectAll("path.point"),r,t)}function Pw(e,r,t){Av.textPointStyle(e.selectAll("text"),r,t)}function B8e(e,r,t){var a=r[0].trace;a.selectedpoints?(Av.selectedPointStyle(t.selectAll("path.point"),a),Av.selectedTextStyle(t.selectAll("text"),a)):(Dw(t,a,e),Pw(t,a,e))}EG.exports={style:O8e,stylePoints:Dw,styleText:Pw,styleOnSelect:B8e}});var PG=N((Gje,DG)=>{"use strict";var kv=Sr(),H8e=Jn();DG.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&kv.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&kv.opacity(i)?i:o&&kv.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?kv.opacity(n)<.3?kv.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&kv.opacity(a)&&H8e.hasLines(r)&&r.line.width?a:r.fillcolor)}});var zw=N((Yje,zG)=>{"use strict";var e2=ke(),RG=Fn(),U8e=Tr(),G8e=PG(),Rw=Sr(),Y8e=e2.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,m=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var y=function(G){if(p){var V=l.c2p(G.xStart),Y=l.c2p(G.xEnd);return u>=Math.min(V,Y)&&u<=Math.max(V,Y)?0:1/0}var X=Math.max(3,G.mrc||0),j=1-1/X,J=Math.abs(l.c2p(G.x)-u);return J<X?j*J/X:J-X+j},x=function(G){if(m){var V=s.c2p(G.yStart),Y=s.c2p(G.yEnd);return f>=Math.min(V,Y)&&f<=Math.max(V,Y)?0:1/0}var X=Math.max(3,G.mrc||0),j=1-1/X,J=Math.abs(s.c2p(G.y)-f);return J<X?j*J/X:J-X+j},T=function(G){var V=Math.max(d,G.mrc||0),Y=l.c2p(G.x)-u,X=s.c2p(G.y)-f;return Math.max(Math.sqrt(Y*Y+X*X)-V,1-d/V)},w=RG.getDistanceFunction(n,y,x,T);if(RG.getClosest(i,w,r),r.index!==!1){var b=i[r.index],_=l.c2p(b.x,!0),k=s.c2p(b.y,!0),M=b.mrc||1;r.index=b.i;var q=i[0].t.orientation,C=q&&(b.sNorm||b.s),D=q==="h"?C:b.orig_x!==void 0?b.orig_x:b.x,P=q==="v"?C:b.orig_y!==void 0?b.orig_y:b.y;return e2.extendFlat(r,{color:G8e(o,b),x0:_-M,x1:_+M,xLabelVal:D,y0:k-M,y1:k+M,yLabelVal:P,spikeDistance:T(b),hovertemplate:o.hovertemplate}),Y8e(b,o,r),U8e.getComponentMethod("errorbars","hoverInfo")(b,o,r),[r]}}function R(G){if(!G)return!1;var V=G.node();try{var Y=new DOMPoint(c[0],c[1]);return V.isPointInFill(Y)}catch(j){var X=V.ownerSVGElement.createSVGPoint();return X.x=c[0],X.y=c[1],V.isPointInFill(X)}}function I(G){var V,Y=[],X=1/0,j=-1/0,J=1/0,ae=-1/0,te;for(V=0;V<G.length;V++){var se=G[V];se.contains(c)&&(Y.push(se),J=Math.min(J,se.ymin),ae=Math.max(ae,se.ymax))}if(Y.length===0)return null;J=Math.max(J,0),ae=Math.min(ae,s._length),te=(J+ae)/2;var $,fe,oe,ue,ce,ie,ge;for(V=0;V<Y.length;V++)for(fe=Y[V].pts,$=1;$<fe.length;$++)ie=fe[$-1][1],ge=fe[$][1],ie>te!=ge>=te&&(ue=fe[$-1][0],ce=fe[$][0],ge-ie&&(oe=ue+(ce-ue)*(te-ie)/(ge-ie),X=Math.min(X,oe),j=Math.max(j,oe)));return X=Math.max(X,0),j=Math.min(j,l._length),{x0:X,x1:j,y0:te,y1:te}}if(v.indexOf("fills")!==-1&&o._fillElement){var F=R(o._fillElement)&&!R(o._fillExclusionElement);if(F){var B=I(o._polygons);B===null&&(B={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),e2.extendFlat(r,{distance:r.maxHoverDistance,x0:B.x0,x1:B.x1,y0:B.y0,y1:B.y1,color:U,hovertemplate:!1}),delete r.index,o.text&&!e2.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var Nw=N((Vje,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=N((jje,FG)=>{"use strict";FG.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var GG=N((Wje,UG)=>{"use strict";var r2=Tr().traceIs,Iw=sy();UG.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(V8e(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function V8e(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=j8e(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:!r2(i,"cartesian")||r2(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,HG(i,a)){var u=BG(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!r2(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=Iw(f,l,s)}else if(i.type==="splom"){var v=i.dimensions,d=v[i._axesDim[t]];d.visible&&(e.type=Iw(d.values,l,s))}else e.type=Iw(i[a]||[i[a+"0"]],l,s)}}}function j8e(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(HG(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function BG(e){return{v:"x",h:"y"}[e.orientation||"v"]}function HG(e,r){var t=BG(e),a=r2(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var VG=N((Xje,YG)=>{"use strict";var W8e=Vn().isTypedArraySpec;function X8e(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)}YG.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,o=Array.isArray(i)&&i.length>0||W8e(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=X8e(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var Fw=N((Zje,WG)=>{"use strict";var jG=Sr(),Z8e=Ei(),$8e=ke();WG.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(q,C){return $8e.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=jG.mix(i,n.bgColor,n.blend||Z8e.lightFraction),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=jG.mix(t.gridcolor,n.bgColor,67),y=o("minor.gridcolor",m),x=o("minor.gridwidth",t.gridwidth||1),T=o("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!y||!!x||!!T);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=o("zerolinelayer"),_=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!_||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var Bw=N(($je,QG)=>{"use strict";var XG=Fr(),J8e=Tr(),Dd=ke(),K8e=St(),Q8e=So(),Ow=Ni(),ZG=Gm(),$G=Ym(),e9e=jm(),r9e=Wm(),t9e=VG(),a9e=Fw(),n9e=y6(),JG=ev(),t2=qa().WEEKDAY_PATTERN,i9e=qa().HOUR_PATTERN;QG.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=J8e.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=Dd.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"),JG(t,i),n9e(r,t,a,n),t9e(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==Ow.color.dflt?m:l.color,x=s.label||i._dfltTitle[o];if(r9e(r,t,a,c,n),!u)return t;a("title.text",x),Dd.coerceFont(a,"title.font",l,{overrideDflt:{size:Dd.bigFont(l.size),color:y}}),ZG(r,t,a,c);var T=n.hasMinor;if(T&&(K8e.newContainer(t,"minor"),ZG(r,t,a,c,{isMinor:!0})),e9e(r,t,a,c,n),$G(r,t,a,n),T){var w=n.isMinor;n.isMinor=!0,$G(r,t,a,n),n.isMinor=w}a9e(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:Ow}),T&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var _=a("showdividers");_&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Q8e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:o9e}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k<t.rangebreaks.length;k++)if(t.rangebreaks[k].pattern===t2){t._hasDayOfWeekBreaks=!0;break}if(JG(t,i),i._has("scattergl")||i._has("splom"))for(var M=0;M<n.data.length;M++){var q=n.data[M];(q.type==="scattergl"||q.type==="splom")&&(q.visible=!1,Dd.warn(q.type+" traces do not work on axes with rangebreaks. Setting trace "+q.index+" to `visible: false`."))}}return t};function o9e(e,r,t){function a(v,d){return Dd.coerce(e,r,Ow.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=KG(i[l]),s){o=t2;break}}var u=a("pattern",o);if(u===t2)for(l=0;l<2;l++)s=KG(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case t2:if(!XG(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 i9e:if(!XG(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 l9e={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function KG(e){if(typeof e=="string")return l9e[e.slice(0,3).toLowerCase()]}});var Hw=N((Jje,eY)=>{"use strict";var s9e=Fr(),a2=ke();eY.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(s9e(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=a2.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=a2.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(y==="free"){if(l==="y"){var T=a("autoshift");T&&(d=x==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=x==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var w=!1;if(o.length&&(w=a2.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!w){var b=a("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),a2.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var uY=N((Kje,sY)=>{"use strict";var yf=ke(),rY=Sr(),u9e=qo().isUnifiedHover,f9e=Y6(),tY=St(),c9e=Pc(),aY=Ni(),v9e=GG(),nY=Bw(),h9e=vf(),iY=Hw(),Gw=ba(),ml=Gw.id2name,oY=Gw.name2id,d9e=qa().AX_ID_PATTERN,lY=Tr(),n2=lY.traceIs,Uw=lY.getComponentMethod;function i2(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}sY.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},m,y;for(m=0;m<a.length;m++){var x=a[m];if(n2(x,"cartesian")){var T;if(x.xaxis)T=ml(x.xaxis),i2(i,T,x);else if(x.xaxes)for(y=0;y<x.xaxes.length;y++)i2(i,ml(x.xaxes[y]),x);var w;if(x.yaxis)w=ml(x.yaxis),i2(i,w,x);else if(x.yaxes)for(y=0;y<x.yaxes.length;y++)i2(i,ml(x.yaxes[y]),x);if(x.type==="funnel"?x.orientation==="h"?(T&&(o[T]=!0),w&&(c[w]=!0)):w&&(l[w]=!0):x.type==="image"?(w&&(v[w]=!0),T&&(v[T]=!0)):(w&&(u[w]=!0,f[w]=!0),(!n2(x,"carpet")||x.type==="carpet"&&!x._cheater)&&T&&(s[T]=!0)),x.type==="carpet"&&x._cheater&&T&&(o[T]=!0),n2(x,"2dMap")&&(d[T]=!0,d[w]=!0),n2(x,"oriented")){var b=x.orientation==="h"?w:T;p[b]=!0}}}var _=t._subplots,k=_.xaxis,M=_.yaxis,q=yf.simpleMap(k,ml),C=yf.simpleMap(M,ml),D=q.concat(C),P=rY.background;k.length&&M.length&&(P=yf.coerce(r,t,c9e,"plot_bgcolor"));var R=rY.combine(P,t.paper_bgcolor),I,F,B,U,G;function V(){var be=i[I]||[];G._traceIndices=be.map(function(Ge){return Ge.index}),G._annIndices=[],G._shapeIndices=[],G._selectionIndices=[],G._imgIndices=[],G._subplotsWith=[],G._counterAxes=[],G._name=G._attr=I,G._id=F}function Y(be,Ge){return yf.coerce(U,G,aY,be,Ge)}function X(be,Ge){return yf.coerce2(U,G,aY,be,Ge)}function j(be){return be==="x"?M:k}function J(be,Ge){for(var cr=be==="x"?q:C,Pe=[],me=0;me<cr.length;me++){var Me=cr[me];Me!==Ge&&!(r[Me]||{}).overlaying&&Pe.push(oY(Me))}return Pe}var ae={x:j("x"),y:j("y")},te=ae.x.concat(ae.y),se={},$=[];function fe(){var be=U.matches;d9e.test(be)&&te.indexOf(be)===-1&&(se[be]=U.type,$=Object.keys(se))}var oe=f9e(r,t),ue=u9e(oe);for(m=0;m<D.length;m++){I=D[m],F=oY(I),B=I.charAt(0),yf.isPlainObject(r[I])||(r[I]={}),U=r[I],G=tY.newContainer(t,I,B+"axis"),V();var ce=B==="x"&&!s[I]&&o[I]||B==="y"&&!u[I]&&l[I],ie=B==="y"&&(!f[I]&&c[I]||v[I]),ge={hasMinor:!0,letter:B,font:t.font,outerTicks:d[I],showGrid:!p[I],data:i[I]||[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:ce,reverseDflt:ie,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[B]||{})[F],noAutotickangles:B==="y"};Y("uirevision",t.uirevision),v9e(U,G,Y,ge),nY(U,G,Y,ge,t);var Ce=ue&&B===oe.charAt(0),_e=X("spikecolor",ue?G.color:void 0),Ee=X("spikethickness",ue?1.5:void 0),Ae=X("spikedash",ue?"dot":void 0),Se=X("spikemode",ue?"across":void 0),Re=X("spikesnap"),Ie=Y("showspikes",!!Ce||!!_e||!!Ee||!!Ae||!!Se||!!Re);Ie||(delete G.spikecolor,delete G.spikethickness,delete G.spikedash,delete G.spikemode,delete G.spikesnap);var Le=ml(U.overlaying),Ze=[0,1];if(t[Le]!==void 0){var Je=ml(t[Le].anchor);t[Je]!==void 0&&(Ze=t[Je].domain)}iY(U,G,Y,{letter:B,counterAxes:ae[B],overlayableAxes:J(B,I),grid:t.grid,overlayingDomain:Ze}),Y("title.standoff"),fe(),G._input=U}for(m=0;m<$.length;){F=$[m++],I=ml(F),B=I.charAt(0),yf.isPlainObject(r[I])||(r[I]={}),U=r[I],G=tY.newContainer(t,I,B+"axis"),V();var We={letter:B,font:t.font,outerTicks:d[I],showGrid:!p[I],data:[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[B]||{})[F]};Y("uirevision",t.uirevision),G.type=se[F]||"linear",nY(U,G,Y,We,t),iY(U,G,Y,{letter:B,counterAxes:ae[B],overlayableAxes:J(B,I),grid:t.grid}),Y("fixedrange"),Y("modebardisable"),fe(),G._input=U}var qe=Uw("rangeslider","handleDefaults"),ze=Uw("rangeselector","handleDefaults");for(m=0;m<q.length;m++)I=q[m],U=r[I],G=t[I],qe(r,t,I),G.type==="date"&&ze(U,G,t,C,G.calendar),Y("fixedrange"),Y("modebardisable");for(m=0;m<C.length;m++){I=C[m],U=r[I],G=t[I];var Qe=t[ml(G.anchor)],re=Uw("rangeslider","isVisible")(Qe);Y("fixedrange",re),Y("modebardisable")}h9e.handleDefaults(r,t,{axIds:te.concat($).sort(Gw.idSort),axHasImage:v})}});var vY=N((Qje,cY)=>{"use strict";var p9e=Dr(),fY=Tr(),o2=ke(),xi=Xr(),l2=Gr();cY.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){l2.redrawComponents(r);return}function o(y){var x=y.xaxis,T=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(xi.setTranslate,0,0).call(xi.setScale,1,1),y.plot.call(xi.setTranslate,x._offset,T._offset).call(xi.setScale,1,1);var w=y.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(xi.setPointGroupScale,1,1),w.selectAll(".textpoint").call(xi.setTextPointsScale,1,1),w.call(xi.hideOutsideRangePoints,y)}function l(y,x){var T=y.plotinfo,w=T.xaxis,b=T.yaxis,_=w._length,k=b._length,M=!!y.xr1,q=!!y.yr1,C=[];if(M){var D=o2.simpleMap(y.xr0,w.r2l),P=o2.simpleMap(y.xr1,w.r2l),R=D[1]-D[0],I=P[1]-P[0];C[0]=(D[0]*(1-x)+x*P[0]-D[0])/(D[1]-D[0])*_,C[2]=_*(1-x+x*I/R),w.range[0]=w.l2r(D[0]*(1-x)+x*P[0]),w.range[1]=w.l2r(D[1]*(1-x)+x*P[1])}else C[0]=0,C[2]=_;if(q){var F=o2.simpleMap(y.yr0,b.r2l),B=o2.simpleMap(y.yr1,b.r2l),U=F[1]-F[0],G=B[1]-B[0];C[1]=(F[1]*(1-x)+x*B[1]-F[1])/(F[0]-F[1])*k,C[3]=k*(1-x+x*G/U),b.range[0]=w.l2r(F[0]*(1-x)+x*B[0]),b.range[1]=b.l2r(F[1]*(1-x)+x*B[1])}else C[1]=0,C[3]=k;l2.drawOne(r,w,{skipTitle:!0}),l2.drawOne(r,b,{skipTitle:!0}),l2.redrawComponents(r,[w._id,b._id]);var V=M?_/C[2]:1,Y=q?k/C[3]:1,X=M?C[0]:0,j=q?C[1]:0,J=M?C[0]/C[2]*_:0,ae=q?C[1]/C[3]*k:0,te=w._offset-J,se=b._offset-ae;T.clipRect.call(xi.setTranslate,X,j).call(xi.setScale,1/V,1/Y),T.plot.call(xi.setTranslate,te,se).call(xi.setScale,V,Y),xi.setPointGroupScale(T.zoomScalePts,1/V,1/Y),xi.setTextPointsScale(T.zoomScaleTxt,1/V,1/Y)}var s;n&&(s=n());function u(){for(var y={},x=0;x<t.length;x++){var T=t[x],w=T.plotinfo.xaxis,b=T.plotinfo.yaxis;T.xr1&&(y[w._name+".range"]=T.xr1.slice()),T.yr1&&(y[b._name+".range"]=T.yr1.slice())}return s&&s(),fY.call("relayout",r,y).then(function(){for(var _=0;_<t.length;_++)o(t[_].plotinfo)})}function f(){for(var y={},x=0;x<t.length;x++){var T=t[x],w=T.plotinfo.xaxis,b=T.plotinfo.yaxis;T.xr0&&(y[w._name+".range"]=T.xr0.slice()),T.yr0&&(y[b._name+".range"]=T.yr0.slice())}return fY.call("relayout",r,y).then(function(){for(var _=0;_<t.length;_++)o(t[_].plotinfo)})}var c,v,d,p=p9e.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,f()});function m(){v=Date.now();for(var y=Math.min(1,(v-c)/a.duration),x=p(y),T=0;T<t.length;T++)l(t[T],x);v-c>a.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var Qi=N(vn=>{"use strict";var u2=Dr(),hY=Tr(),gf=ke(),m9e=va(),y9e=Xr(),dY=Nm().getModuleCalcData,Gs=ba(),Ro=qa(),g9e=Fl(),et=gf.ensureSingle;function s2(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=uY();vn.transitionAxes=vY();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=[],m,y=0;y<o.length;y++){var x=o[y],T=x[0].trace;f===(T.zorder||0)&&T.xaxis+T.yaxis===c&&((r.indexOf(T.index)!==-1||T.carpet)&&(m&&m[0].trace.xaxis+m[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(T.fill)!==-1&&p.indexOf(m)===-1&&p.push(m),p.push(x)),m=x)}pY(e,v,p,t,a)}}};function pY(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 m=l[p],y=0;y<s.length;y++){u=s[y];var x=u.name,T=hY.modules[x].categories;if(T.svg){var w=u.layerName||x+"layer",b=w+(p?Number(p)+1:""),_=u.plot;f=dY(t,_,m),c=f[0],t=f[1],c.length&&v.push({i:i.indexOf(w),zindex:p,className:b,plotMethod:_,cdModule:c}),T.zoomScale&&d.push("."+b)}}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=u2.select(this),D=q.className;q.plotMethod(e,r,q.cdModule,C,a,n),Ro.clipOnAxisFalseQuery.indexOf("."+D)===-1&&y9e.setClipUrl(C,r.layerClipId,e)}),o._has("scattergl")&&(u=hY.getModule("scattergl"),c=dY(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 M=r.plot.selectAll(d.join(",")).selectAll(".trace");r.zoomScalePts=M.selectAll("path.point"),r.zoomScaleTxt=M.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"),m=r._has&&r._has("cartesian");if(p&&!m)yY(a._cartesianlayer.selectAll(".subplot"),a),a._defs.selectAll(".axesclip").remove(),delete a._axisConstraintGroups,delete a._axisMatchGroups;else if(o.cartesian)for(s=0;s<o.cartesian.length;s++){var y=o.cartesian[s];if(y.indexOf(bf)===-1&&!i[y]){var x="."+y+",."+y+"-x,."+y+"-y";a._cartesianlayer.selectAll(x).remove(),gY(y,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=b9e(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(m){return"subplot "+m[0]}),p.order(),p.exit().call(yY,r),p.each(function(m){var y=m[0],x=y.indexOf(bf),T=x!==-1,w=T?y.slice(0,x):y,b=r._plots[y];b||(b=gf.extendFlat({},r._plots[w]),b&&(b.id=y,r._plots[y]=b,r._subplots.cartesian.push(y))),b&&(b.plotgroup=u2.select(this),mY(e,b),T||(b.draglayer=et(r._draggers,"g",y)))})};vn.rangePlot=function(e,r,t){mY(e,r),pY(e,r,t),m9e.style(e)};function b9e(e){var r=e._fullLayout,t=r._zindices.length,a=r._subplots.cartesian,n=a.length,i,o,l,s,u,f,c=[],v=[];for(i=0;i<n;i++){l=a[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;var d=u._mainAxis,p=f._mainAxis,m=d._id+p._id,y=r._plots[m];s.overlays=[],m!==l&&y?(s.mainplot=m,s.mainplotinfo=y,v.push(l)):(s.mainplot=void 0,s.mainplotinfo=void 0,c.push(l))}for(i=0;i<v.length;i++)l=v[i],s=r._plots[l],s.mainplotinfo.overlays.push(s);var x=c.concat(v),T=[];for(i=0;i<n;i++){l=x[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;for(var w=[],b=1;b<=t;b++){var _="";for(b>1&&(_+=bf+b),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 mY(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=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.xaxislayer=et(a,"g","xaxislayer-above"),r.yaxislayer=et(a,"g","yaxislayer-above");else{if(!o){var v=et(a,"g","layer-subplot");r.shapelayer=et(v,"g","shapelayer"),r.imagelayer=et(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=et(a,"g","minor-gridlayer"),r.gridlayer=et(a,"g","gridlayer"),r.zerolinelayer=et(a,"g","zerolinelayer"));var d=et(a,"g","layer-between");r.shapelayerBetween=et(d,"g","shapelayer"),r.imagelayerBetween=et(d,"g","imagelayer"),et(a,"path","xlines-below"),et(a,"path","ylines-below"),r.overlinesBelow=et(a,"g","overlines-below"),et(a,"g","xaxislayer-below"),et(a,"g","yaxislayer-below"),r.overaxesBelow=et(a,"g","overaxes-below")}r.overplot=et(a,"g","overplot"),r.plot=et(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=et(a,"g","zerolinelayer-above"),o||(r.xlines=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.overlinesAbove=et(a,"g","overlines-above"),et(a,"g","xaxislayer-above"),et(a,"g","yaxislayer-above"),r.overaxesAbove=et(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,et(c.overlinesBelow,"path",m),et(c.overlinesBelow,"path",y),et(c.overaxesBelow,"g",m),et(c.overaxesBelow,"g",y),r.plot=et(c.overplot,"g",n),et(c.overlinesAbove,"path",m),et(c.overlinesAbove,"path",y),et(c.overaxesAbove,"g",m),et(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}o||(u||(s2(r.minorGridlayer,"g",r.xaxis._id),s2(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(Gs.idSort),s2(r.gridlayer,"g",r.xaxis._id),s2(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(Gs.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function yY(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=u2.select(this);f.remove(),gY(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 gY(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=u2.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:g9e.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 xY=N((rWe,bY)=>{"use strict";var f2=Jn();bY.exports={hasLines:f2.hasLines,hasMarkers:f2.hasMarkers,hasText:f2.hasText,isBubble:f2.isBubble,attributes:Vi(),layoutAttributes:Pm(),supplyDefaults:BU(),crossTraceDefaults:GU(),supplyLayoutDefaults:VU(),calc:Wg().calc,crossTraceCalc:mG(),arraysToCalcdata:Vg(),plot:Lw(),colorbar:Ed(),formatLabels:Cw(),style:mf().style,styleOnSelect:mf().styleOnSelect,hoverPoints:zw(),selectPoints:Nw(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Qi(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var TY=N((tWe,wY)=>{"use strict";var x9e=Dr(),_9e=Sr(),_Y=R7(),Yw=ke(),w9e=Yw.strScale,T9e=Yw.strRotate,M9e=Yw.strTranslate;wY.exports=function(r,t,a){var n=r.node(),i=_Y[a.arrowhead||0],o=_Y[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,m,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var x=d.x-p.x,T=d.y-p.y;if(m=Math.atan2(T,x),y=m+Math.PI,c&&v&&c+v>Math.sqrt(x*x+T*T)){F();return}if(c){if(c*c>x*x+T*T){F();return}var w=c*Math.cos(m),b=c*Math.sin(m);p.x+=w,p.y+=b,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>x*x+T*T){F();return}var _=v*Math.cos(m),k=v*Math.sin(m);d.x-=_,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),q="";if(M<c+v){F();return}var C=n.getPointAtLength(0),D=n.getPointAtLength(.1);m=Math.atan2(C.y-D.y,C.x-D.x),d=n.getPointAtLength(Math.min(v,M)),q="0px,"+v+"px,";var P=n.getPointAtLength(M),R=n.getPointAtLength(M-.1);y=Math.atan2(P.y-R.y,P.x-R.x),p=n.getPointAtLength(Math.max(0,M-c));var I=q?v+c:c;q+=M-I+"px,"+M+"px",r.style("stroke-dasharray",q)}function F(){r.style("stroke-dasharray","0px,100px")}function B(U,G,V,Y){U.path&&(U.noRotate&&(V=0),x9e.select(n.parentNode).append("path").attr({class:r.attr("class"),d:U.path,transform:M9e(G.x,G.y)+T9e(V*180/Math.PI)+w9e(Y)}).style({fill:_9e.rgb(a.arrowcolor),"stroke-width":0}))}u&&B(o,d,m,s),f&&B(i,p,y,l)}});var c2=N((aWe,qY)=>{"use strict";var MY=Dr(),Vw=Tr(),A9e=va(),Vs=ke(),jw=Vs.strTranslate,Rd=Gr(),xf=Sr(),Wl=Xr(),AY=Fn(),Ww=Ca(),Xw=Rs(),Pd=Fi(),k9e=St().arrayEditor,S9e=TY();qY.exports={draw:q9e,drawOne:kY,drawRaw:SY};function q9e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&kY(e,t);return A9e.previousPromises(e)}function kY(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=Rd.getFromId(e,a.xref),i=Rd.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),SY(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=Rd.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 SY(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=k9e(e.layout,f,r),v=c.modifyBase,d=c.modifyItem,p=c.getUpdateObj;o._infolayer.selectAll("."+u+'[data-index="'+t+'"]').remove();var m="clip"+o._uid+"_ann"+t;if(!r._input||r.visible===!1){MY.selectAll("#"+m).remove();return}var y={x:{},y:{}},x=+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),b=s[r.showarrow?"annotationTail":"annotationPosition"],_=r.captureevents||s.annotationText||b;function k(Y){var X={index:t,annotation:r._input,fullAnnotation:r,event:Y};return a&&(X.subplotId=a),X}var M=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&&M.on("mouseover",function(){var Y=r.hoverlabel,X=Y.font,j=this.getBoundingClientRect(),J=e.getBoundingClientRect();AY.loneHover({x0:j.left-J.left,x1:j.right-J.left,y:(j.top+j.bottom)/2-J.top,text:r.hovertext,color:Y.bgcolor,borderColor:Y.bordercolor,fontFamily:X.family,fontSize:X.size,fontColor:X.color,fontWeight:X.weight,fontStyle:X.style,fontVariant:X.variant,fontShadow:X.fontShadow,fontLineposition:X.fontLineposition,fontTextcase:X.fontTextcase},{container:o._hoverlayer.node(),outerContainer:o._paper.node(),gd:e})}).on("mouseout",function(){AY.loneUnhover(o._hoverlayer.node())});var q=r.borderwidth,C=r.borderpad,D=q+C,P=M.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,I=o._topclips.selectAll("#"+m).data(R?[0]:[]);I.enter().append("clipPath").classed("annclip",!0).attr("id",m).append("rect"),I.exit().remove();var F=r.font,B=o._meta?Vs.templateString(r.text,o._meta):r.text,U=M.append("text").classed("annotation-text",!0).text(B);function G(Y){return Y.call(Wl.font,F).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),Ww.convertToTspans(Y,e,V),Y}function V(){var Y=U.selectAll("a");if(Y.size()===1&&Y.text()===U.text()){var X=M.insert("a",":first-child").attr({"xlink:xlink:href":Y.attr("xlink:href"),"xlink:xlink:show":Y.attr("xlink:show")}).style({cursor:"pointer"});X.node().appendChild(P.node())}var j=M.select(".annotation-text-math-group"),J=!j.empty(),ae=Wl.bBox((J?j:U).node()),te=ae.width,se=ae.height,$=r.width||te,fe=r.height||se,oe=Math.round($+2*D),ue=Math.round(fe+2*D);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 ie=!1,ge=["x","y"],Ce=0;Ce<ge.length;Ce++){var _e=ge[Ce],Ee=r[_e+"ref"]||_e,Ae=r["a"+_e+"ref"],Se={x:n,y:i}[_e],Re=(x+(_e==="x"?0:-90))*Math.PI/180,Ie=oe*Math.cos(Re),Le=ue*Math.sin(Re),Ze=Math.abs(Ie)+Math.abs(Le),Je=r[_e+"anchor"],We=r[_e+"shift"]*(_e==="x"?1:-1),qe=y[_e],ze,Qe,re,be,Ge,cr=Rd.getRefType(Ee);if(Se&&cr!=="domain"){var Pe=Se.r2fraction(r[_e]);(Pe<0||Pe>1)&&(Ae===Ee?(Pe=Se.r2fraction(r["a"+_e]),(Pe<0||Pe>1)&&(ie=!0)):ie=!0),ze=Se._offset+Se.r2p(r[_e]),be=.5}else{var me=cr==="domain";_e==="x"?(re=r[_e],ze=me?Se._offset+Se._length*re:ze=l.l+l.w*re):(re=1-r[_e],ze=me?Se._offset+Se._length*re:ze=l.t+l.h*re),be=r.showarrow?.5:re}if(r.showarrow){qe.head=ze;var Me=r["a"+_e];if(Ge=Ie*ce(.5,r.xanchor)-Le*ce(.5,r.yanchor),Ae===Ee){var He=Rd.getRefType(Ae);He==="domain"?(_e==="y"&&(Me=1-Me),qe.tail=Se._offset+Se._length*Me):He==="paper"?_e==="y"?(Me=1-Me,qe.tail=l.t+l.h*Me):qe.tail=l.l+l.w*Me:qe.tail=Se._offset+Se.r2p(Me),Qe=Ge}else qe.tail=ze+Me,Qe=Ge+Me;qe.text=qe.tail+Ge;var Xe=o[_e==="x"?"width":"height"];if(Ee==="paper"&&(qe.head=Vs.constrain(qe.head,1,Xe-1)),Ae==="pixel"){var Oe=-Math.max(qe.tail-3,qe.text),je=Math.min(qe.tail+3,qe.text)-Xe;Oe>0?(qe.tail+=Oe,qe.text+=Oe):je>0&&(qe.tail-=je,qe.text-=je)}qe.tail+=We,qe.head+=We}else Ge=Ze*ce(be,Je),Qe=Ge,qe.text=ze+Ge;qe.text+=We,Ge+=We,Qe+=We,r["_"+_e+"padplus"]=Ze/2+Qe,r["_"+_e+"padminus"]=Ze/2-Qe,r["_"+_e+"size"]=Ze,r["_"+_e+"shift"]=Ge}if(ie){M.remove();return}var tr=0,ir=0;if(r.align!=="left"&&(tr=($-te)*(r.align==="center"?.5:1)),r.valign!=="top"&&(ir=(fe-se)*(r.valign==="middle"?.5:1)),J)j.select("svg").attr({x:D+tr-1,y:D+ir}).call(Wl.setClipUrl,R?m:null,e);else{var lr=D+ir-ae.top,De=D+tr-ae.left;U.call(Ww.positionText,De,lr).call(Wl.setClipUrl,R?m:null,e)}I.select("rect").call(Wl.setRect,D,D,$,fe),P.call(Wl.setRect,q/2,q/2,oe-q,ue-q),M.call(Wl.setTranslate,Math.round(y.x.text-oe/2),Math.round(y.y.text-ue/2)),w.attr({transform:"rotate("+x+","+y.x.text+","+y.y.text+")"});var $e=function(pr,mr){T.selectAll(".annotation-arrow-g").remove();var sr=y.x.head,yr=y.y.head,ne=y.x.tail+pr,ye=y.y.tail+mr,Ne=y.x.text+pr,Be=y.y.text+mr,$r=Vs.rotationXYMatrix(x,Ne,Be),Kr=Vs.apply2DTransform($r),mt=Vs.apply2DTransform2($r),yt=+P.attr("width"),Lt=+P.attr("height"),Qt=Ne-.5*yt,Va=Qt+yt,ea=Be-.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,ye,sr,yr,Ct[0],Ct[1],Ct[2],Ct[3]);ta&&(ne=ta.x,ye=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+","+ye+"L"+sr+","+yr).style("stroke-width",oa+"px").call(xf.stroke,xf.rgb(vr));if(S9e(vt,_t,r),s.annotationPosition&&vt.node().parentNode&&!a){var Rt=sr,At=yr;if(r.standoff){var tt=Math.sqrt(Math.pow(sr-ne,2)+Math.pow(yr-ye,2));Rt+=r.standoff*(ne-sr)/tt,At+=r.standoff*(ye-yr)/tt}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)+","+(ye-At),transform:jw(Rt,At)}).style("stroke-width",oa+6+"px").call(xf.stroke,"rgba(0,0,0,0)").call(xf.fill,"rgba(0,0,0,0)"),Dn,Vt;Pd.init({element:ra.node(),gd:e,prepFn:function(){var Ct=Wl.getTranslate(M);Dn=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(Dn,Vt),ht=aa[0]+Ct,Wa=aa[1]+ta;M.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("+x+","+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&&$e(0,0),b){var Fe;Pd.init({element:M.node(),gd:e,prepFn:function(){Fe=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),$e(pr,mr);else{if(a)return;var yr,ne;if(n)yr=Ys(n,pr,"x",l,r);else{var ye=r._xsize/l.w,Ne=r.x+(r._xshift-r.xshift)/l.w-ye/2;yr=Pd.align(Ne+pr/l.w,ye,0,1,r.xanchor)}if(i)ne=Ys(i,mr,"y",l,r);else{var Be=r._ysize/l.h,$r=r.y-(r._yshift+r.yshift)/l.h-Be/2;ne=Pd.align($r-mr/l.h,Be,0,1,r.yanchor)}d("x",yr),d("y",ne),(!n||!i)&&(sr=Pd.getCursor(n?.5:yr,i?.5:ne,r.xanchor,r.yanchor))}w.attr({transform:jw(pr,mr)+Fe}),Xw(M,sr)},clickFn:function(pr,mr){r.captureevents&&e.emit("plotly_clickannotation",k(mr))},doneFn:function(){Xw(M),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:M,gd:e}).call(G).on("edit",function(Y){r.text=Y,this.call(G),d("text",Y),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),Vw.call("_guiRelayout",e,p())}):U.call(G)}});var RY=N((nWe,PY)=>{"use strict";var LY=ke(),L9e=Tr(),CY=St().arrayEditor;PY.exports={hasClickToShow:C9e,onClick:E9e};function C9e(e,r){var t=DY(e,r);return t.on.length>0||t.explicitOff.length>0}function E9e(e,r){var t=DY(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=CY(e.layout,"annotations",o[a[l]]),s.modifyItem("visible",!0),LY.extendFlat(i,s.getUpdateObj());for(l=0;l<n.length;l++)s=CY(e.layout,"annotations",o[n[l]]),s.modifyItem("visible",!1),LY.extendFlat(i,s.getUpdateObj());return L9e.call("update",e,{},i)}}function DY(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=N((iWe,zY)=>{"use strict";var Zw=ke(),Sv=Sr();zY.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Sv.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:Sv.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(Sv.opacity(i)?Sv.rgb(i):Sv.defaultLine)),x=n("hoverlabel.bordercolor",m.bordercolor||Sv.contrast(y)),T=Zw.extendFlat({},m.font);T.color||(T.color=x),Zw.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var IY=N((oWe,NY)=>{"use strict";var Jw=ke(),_f=Gr(),D9e=So(),P9e=$w(),R9e=mv();NY.exports=function(r,t){D9e(r,t,{name:"annotations",handleItemDefaults:z9e})};function z9e(e,r,t){function a(w,b){return Jw.coerce(e,r,R9e,w,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){P9e(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,m=_f.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;_f.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(Jw.noneOrAll(e,r,["x","y"]),o&&Jw.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),T=a("yclick");r._xclick=x===void 0?r.x:_f.cleanPosition(x,u,r.xref),r._yclick=T===void 0?r.y:_f.cleanPosition(T,u,r.yref)}}}});var BY=N((lWe,OY)=>{"use strict";var Kw=ke(),wf=Gr(),N9e=c2().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"&&FY(t,a),o==="range"&&FY(t,n)})}function FY(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,x;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,m),ppadminus:Math.max(u,y)});x={min:[T.min[0],w.min[0]],max:[T.max[0],w.max[0]]}}else m=i?m+i:m,y=i?y-i:y,x=wf.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=x}});var UY=N((sWe,HY)=>{"use strict";var F9e=Fr(),O9e=Ep();HY.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],m=null;i?m=O9e(p,t.range):m=Math.pow(10,p),F9e(m)||(m=null),n(f+d,m)}for(var v=0;v<l.length;v++)u=l[v],f="annotations["+v+"].",u[s+"ref"]===t._id&&c(s),u["a"+s+"ref"]===t._id&&c("a"+s)}});var VY=N((uWe,YY)=>{"use strict";var Qw=c2(),GY=RY();YY.exports={moduleType:"component",name:"annotations",layoutAttributes:mv(),supplyLayoutDefaults:IY(),includeBasePlot:dd()("annotations"),calcAutorange:BY(),draw:Qw.draw,drawOne:Qw.drawOne,drawRaw:Qw.drawRaw,hasClickToShow:GY.hasClickToShow,onClick:GY.onClick,convertCoords:UY()}});var v2=N((fWe,jY)=>{"use strict";var Dt=mv(),B9e=wo().overrideAll,H9e=St().templatedArray;jY.exports=B9e(H9e("annotation",{visible:Dt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Dt.xanchor,xshift:Dt.xshift,yanchor:Dt.yanchor,yshift:Dt.yshift,text:Dt.text,textangle:Dt.textangle,font:Dt.font,width:Dt.width,height:Dt.height,opacity:Dt.opacity,align:Dt.align,valign:Dt.valign,bgcolor:Dt.bgcolor,bordercolor:Dt.bordercolor,borderpad:Dt.borderpad,borderwidth:Dt.borderwidth,showarrow:Dt.showarrow,arrowcolor:Dt.arrowcolor,arrowhead:Dt.arrowhead,startarrowhead:Dt.startarrowhead,arrowside:Dt.arrowside,arrowsize:Dt.arrowsize,startarrowsize:Dt.startarrowsize,arrowwidth:Dt.arrowwidth,standoff:Dt.standoff,startstandoff:Dt.startstandoff,hovertext:Dt.hovertext,hoverlabel:Dt.hoverlabel,captureevents:Dt.captureevents}),"calc","from-root")});var XY=N((cWe,WY)=>{"use strict";var e8=ke(),U9e=Gr(),G9e=So(),Y9e=$w(),V9e=v2();WY.exports=function(r,t,a){G9e(r,t,{name:"annotations",handleItemDefaults:j9e,fullLayout:a.fullLayout})};function j9e(e,r,t,a){function n(l,s){return e8.coerce(e,r,V9e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],U9e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(Y9e(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 KY=N((vWe,JY)=>{"use strict";var ZY=ke(),$Y=Gr();JY.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)W9e(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function W9e(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={},ZY.extendFlat(e._xa,i),$Y.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={},ZY.extendFlat(e._ya,i),$Y.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 eV=N((hWe,QY)=>{"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 X9e(e,r){var t=r8(e.projection,r8(e.view,r8(e.model,[r[0],r[1],r[2],1])));return t}QY.exports=X9e});var tV=N((dWe,rV)=>{"use strict";var Z9e=c2().drawRaw,$9e=eV(),J9e=["x","y","z"];rV.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=J9e[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=$9e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),Z9e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var iV=N((pWe,nV)=>{"use strict";var K9e=Tr(),aV=ke();nV.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:v2()}}},layoutAttributes:v2(),handleDefaults:XY(),includeBasePlot:Q9e,convert:KY(),draw:tV()};function Q9e(e,r){var t=K9e.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&&(aV.pushUnique(r._basePlotModules,t),aV.pushUnique(r._subplots.gl3d,o))}}});var t8=N((gWe,uV)=>{"use strict";var mWe=qa(),oV=ka(),lV=Vi().line,eTe=Di().dash,zo=Mt().extendFlat,rTe=St().templatedArray,yWe=cd(),qv=Nn(),sV=mv(),{shapeTexttemplateAttrs:tTe,templatefallbackAttrs:aTe}=fi(),nTe=vm();uV.exports=rTe("shape",{visible:zo({},qv.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:zo({},qv.legend,{editType:"calc+arraydraw"}),legendgroup:zo({},qv.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:zo({},qv.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:oV({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:zo({},qv.legendrank,{editType:"calc+arraydraw"}),legendwidth:zo({},qv.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:zo({},sV.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:zo({},sV.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:zo({},lV.color,{editType:"arraydraw"}),width:zo({},lV.width,{editType:"calc+arraydraw"}),dash:zo({},eTe,{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:tTe({},{keys:Object.keys(nTe)}),texttemplatefallback:aTe({editType:"arraydraw"}),font:oV({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 cV=N((bWe,fV)=>{"use strict";var Lv=ke(),_i=Gr(),iTe=So(),oTe=t8(),zd=Os();fV.exports=function(r,t){iTe(r,t,{name:"shapes",handleItemDefaults:sTe})};function lTe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function sTe(e,r,t){function a(w,b){return Lv.coerce(e,r,oTe,w,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),Lv.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 b=w+"anchor",_=w==="x"?c:v,k={_fullLayout:t},M,q,C,D;let P=w+"ref",R=e[P];if(Array.isArray(R)&&R.length>0){let I=zd.countDefiningCoords(s,o,w);D=_i.coerceRefArray(e,r,k,w,void 0,"paper",I),r["_"+w+"refArray"]=!0}else D=_i.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(D))D.forEach(function(I){_i.getRefType(I)==="range"&&(M=_i.getFromId(k,I),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(I){let F=D[I];_i.getRefType(F)==="range"?(M=_i.getFromId(k,F),q=zd.shapePositionToRange(M),C=zd.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(w+I+"shift")):q=C=Lv.identity;let U=w+I,G=e[U];if(e[U]=q(e[U],!0),_==="pixel"?a(U,p[I]):_i.coercePosition(r,k,a,F,U,d[I]),r[U]=C(r[U]),e[U]=G,I===0&&_==="pixel"){let V=e[b];e[b]=q(e[b],!0),_i.coercePosition(r,k,a,F,b,.25),r[b]=C(r[b]),e[b]=V}});else{if(_i.getRefType(D)==="range"?(M=_i.getFromId(k,D),M._shapeIndices.push(r._index),C=zd.rangeToShapePosition(M),q=zd.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):q=C=Lv.identity,u){let F=w+"0",B=w+"1",U=e[F],G=e[B];e[F]=q(e[F],!0),e[B]=q(e[B],!0),_==="pixel"?(a(F,p[0]),a(B,p[1])):(_i.coercePosition(r,k,a,D,F,d[0]),_i.coercePosition(r,k,a,D,B,d[1])),r[F]=C(r[F]),r[B]=C(r[B]),e[F]=U,e[B]=G}if(_==="pixel"){let F=e[b];e[b]=q(e[b],!0),_i.coercePosition(r,k,a,D,b,.25),r[b]=C(r[b]),e[b]=F}}}),u&&Lv.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",y,x;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(x=a("label.text")),x||y){a("label.textangle");var T=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",lTe(m,T)),a("label.padding"),Lv.coerceFont(a,"label.font",t.font)}}});var dV=N((xWe,hV)=>{"use strict";var uTe=Sr(),vV=ke();function fTe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}hV.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"),vV.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",uTe.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",fTe(o,u)),a("newshape.label.padding"),vV.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var _V=N((_We,xV)=>{"use strict";var a8=ke(),eo=Gr(),yl=jh(),n8=Os();xV.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=pV(r,i,"x");Object.entries(f).forEach(([c,v])=>{o=eo.getFromId(r,c),i._extremes[o._id]=eo.findExtremes(o,v,mV(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=eo.getFromId(r,i.xref),l=gV(o,i,yl.paramIsX),l&&(i._extremes[o._id]=eo.findExtremes(o,l,mV(i))));if(u==="array"){let f=pV(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=eo.getFromId(r,c),i._extremes[o._id]=eo.findExtremes(o,v,yV(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=eo.getFromId(r,i.yref),l=gV(o,i,yl.paramIsY),l&&(i._extremes[o._id]=eo.findExtremes(o,l,yV(i))))}};function pV(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 m=v.slice(1).match(yl.paramRE);m&&m.length>p&&(i(a[l],m[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let v=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 mV(e){return bV(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function yV(e){return bV(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function bV(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 gV(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,m,y,x,T;for(e.type==="date"&&(u=n8.decodeDate(u)),p=0;p<d.length;p++)m=d[p],y=t[m.charAt(0)].drawn,y!==void 0&&(x=d[p].slice(1).match(yl.paramRE),!(!x||x.length<y)&&(T=u(x[y]),T<c&&(c=T),T>v&&(v=T)));if(v>=c)return[c,v]}}});var MV=N((wWe,TV)=>{"use strict";var wV=Ky();TV.exports={moduleType:"component",name:"shapes",layoutAttributes:t8(),supplyLayoutDefaults:cV(),supplyDrawNewShapeDefaults:dV(),includeBasePlot:dd()("shapes"),calcAutorange:_V(),draw:wV.draw,drawOne:wV.drawOne}});var i8=N((MWe,kV)=>{"use strict";var AV=qa(),cTe=St().templatedArray,TWe=cd();kV.exports=cTe("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",AV.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",AV.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var qV=N((AWe,SV)=>{"use strict";var vTe=ke(),o8=Gr(),hTe=So(),dTe=i8(),pTe="images";SV.exports=function(r,t){var a={name:pTe,handleItemDefaults:mTe};hTe(r,t,a)};function mTe(e,r,t){function a(v,d){return vTe.coerce(e,r,dTe,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 DV=N((kWe,EV)=>{"use strict";var LV=Dr(),yTe=Xr(),Cv=Gr(),CV=ba(),gTe=Fl();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=CV.ref2id(s.xref)+CV.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(b){var _=LV.select(this);if(this._imgSrc!==b.source)if(_.attr("xmlns",gTe.svg),!r._context.staticPlot||b.source&&b.source.slice(0,5)==="data:")_.attr("xlink:href",b.source),this._imgSrc=b.source;else{var k=new Promise(function(M){var q=new Image;this.img=q,q.setAttribute("crossOrigin","anonymous"),q.onerror=C,q.onload=function(){var D=document.createElement("canvas");D.width=this.width,D.height=this.height;var P=D.getContext("2d",{willReadFrequently:!0});P.drawImage(this,0,0);var R=D.toDataURL("image/png");_.attr("xlink:href",R),M()},_.on("error",C),q.src=b.source,this._imgSrc=b.source;function C(){_.remove(),M()}}.bind(this));r._promises.push(k)}}function v(b){var _=LV.select(this),k=Cv.getFromId(r,b.xref),M=Cv.getFromId(r,b.yref),q=Cv.getRefType(b.xref)==="domain",C=Cv.getRefType(b.yref)==="domain",D=t._size,P,R;k!==void 0?P=typeof b.xref=="string"&&q?k._length*b.sizex:Math.abs(k.l2p(b.sizex)-k.l2p(0)):P=b.sizex*D.w,M!==void 0?R=typeof b.yref=="string"&&C?M._length*b.sizey:Math.abs(M.l2p(b.sizey)-M.l2p(0)):R=b.sizey*D.h;var I=P*f.x[b.xanchor].offset,F=R*f.y[b.yanchor].offset,B=f.x[b.xanchor].sizing+f.y[b.yanchor].sizing,U,G;switch(k!==void 0?U=typeof b.xref=="string"&&q?k._length*b.x+k._offset:k.r2p(b.x)+k._offset:U=b.x*D.w+D.l,U+=I,M!==void 0?G=typeof b.yref=="string"&&C?M._length*(1-b.y)+M._offset:M.r2p(b.y)+M._offset:G=D.h-b.y*D.h+D.t,G+=F,b.sizing){case"fill":B+=" slice";break;case"stretch":B="none";break}_.attr({x:U,y:G,width:P,height:R,preserveAspectRatio:B,opacity:b.opacity});var V=k&&Cv.getRefType(b.xref)!=="domain"?k._id:"",Y=M&&Cv.getRefType(b.yref)!=="domain"?M._id:"",X=V+Y;yTe.setClipUrl(_,X?"clip"+t._uid+X:null,r)}function d(b){return[b.xref,b.x,b.sizex,b.yref,b.y,b.sizey].join("_")}function p(b,_){return b._index-_._index}var m=t._imageLowerLayer.selectAll("image").data(i,d),y=t._imageUpperLayer.selectAll("image").data(a,d);m.enter().append("image"),y.enter().append("image"),m.exit().remove(),y.exit().remove(),m.each(function(b){c.bind(this)(b),v.bind(this)(b)}),y.each(function(b){c.bind(this)(b),v.bind(this)(b)}),m.sort(p),y.sort(p);var x=Object.keys(t._plots);for(l=0;l<x.length;l++){o=x[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(b){c.bind(this)(b),v.bind(this)(b)}),w.sort(p)}}}});var zV=N((SWe,RV)=>{"use strict";var PV=Fr(),bTe=Ep();RV.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c<l.length;c++)if(u=l[c],f="images["+c+"].",u[s+"ref"]===t._id){var v=u[s],d=u["size"+s],p=null,m=null;if(i){p=bTe(v,t.range);var y=d/Math.pow(10,p)/2;m=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else p=Math.pow(10,v),m=p*(Math.pow(10,d/2)-Math.pow(10,-d/2));PV(p)?PV(m)||(m=null):(p=null,m=null),n(f+s,p),n(f+"size"+s,m)}}}});var IV=N((qWe,NV)=>{"use strict";NV.exports={moduleType:"component",name:"images",layoutAttributes:i8(),supplyLayoutDefaults:qV(),includeBasePlot:dd()("images"),draw:DV(),convertCoords:zV()}});var h2=N((LWe,FV)=>{"use strict";FV.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=N((CWe,BV)=>{"use strict";var xTe=ka(),_Te=Ei(),wTe=Mt().extendFlat,TTe=wo().overrideAll,MTe=hm(),OV=St().templatedArray,ATe=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}});BV.exports=TTe(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:ATe,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:wTe(MTe({editType:"arraydraw"}),{}),font:xTe({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:_Te.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var YV=N((EWe,GV)=>{"use strict";var d2=ke(),HV=So(),UV=l8(),kTe=h2(),STe=kTe.name,qTe=UV.buttons;GV.exports=function(r,t){var a={name:STe,handleItemDefaults:LTe};HV(r,t,a)};function LTe(e,r,t){function a(o,l){return d2.coerce(e,r,UV,o,l)}var n=HV(e,r,{name:"buttons",handleItemDefaults:CTe}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),d2.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),d2.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function CTe(e,r){function t(n,i){return d2.coerce(e,r,qTe,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 WV=N((DWe,jV)=>{"use strict";jV.exports=jt;var No=Dr(),VV=Sr(),Ev=Xr(),p2=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",m=c==="up",y=s,x=f,T,w,b,_;!v&&!d&&!p&&!m&&(this.position.direction="down",v=!0);var k=v||m;k?(T=l,w=T+y,v?(b=u,_=Math.min(b+x,o),x=_-b):(_=u+x,b=Math.max(_-x,0),x=_-b)):(b=u,_=b+x,d?(w=l+y,T=Math.max(w-y,0),y=w-T):(T=l,w=Math.min(T+y,i),y=w-T)),this._box={l:T,t:b,w:y,h:x};var M=s>y,q=jt.barLength+2*jt.barPad,C=jt.barWidth+2*jt.barPad,D=l,P=u+f;P+C>o&&(P=o-C);var R=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(VV.fill,jt.barColor),M?(this.hbar=R.attr({rx:jt.barRadius,ry:jt.barRadius,x:D,y:P,width:q,height:C}),this._hbarXMin=D+q/2,this._hbarTranslateMax=y-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>x,F=jt.barWidth+2*jt.barPad,B=jt.barLength+2*jt.barPad,U=l+s,G=u;U+F>i&&(U=i-F);var V=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);V.exit().on(".drag",null).remove(),V.enter().append("rect").classed("scrollbar-vertical",!0).call(VV.fill,jt.barColor),I?(this.vbar=V.attr({rx:jt.barRadius,ry:jt.barRadius,x:U,y:G,width:F,height:B}),this._vbarYMin=G+B/2,this._vbarTranslateMax=x-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Y=this.id,X=T-.5,j=I?w+F+.5:w+.5,J=b-.5,ae=M?_+C+.5:_+.5,te=n._topdefs.selectAll("#"+Y).data(M||I?[0]:[]);if(te.exit().remove(),te.enter().append("clipPath").attr("id",Y).append("rect"),M||I?(this._clipRect=te.select("rect").attr({x:Math.floor(X),y:Math.floor(J),width:Math.ceil(j)-Math.floor(X),height:Math.ceil(ae)-Math.floor(J)}),this.container.call(Ev.setClipUrl,Y,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(Ev.setClipUrl,null),delete this._clipRect),M||I){var se=No.behavior.drag().on("dragstart",function(){No.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 $=No.behavior.drag().on("dragstart",function(){No.event.sourceEvent.preventDefault(),No.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call($),I&&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(Ev.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-=No.event.dx),this.vbar&&(t-=No.event.dy),this.setTranslate(r,t)};jt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=No.event.deltaY),this.vbar&&(t+=No.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=p2.constrain(No.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=p2.constrain(No.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=p2.constrain(r||0,0,a),t=p2.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Ev.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(Ev.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Ev.setTranslate,r,t+o*this._vbarTranslateMax)}}});var aj=N((PWe,tj)=>{"use strict";var Dv=Dr(),Nd=va(),Id=Sr(),Pv=Xr(),wi=ke(),m2=Ca(),ETe=St().arrayEditor,ZV=Qa().LINE_SPACING,qr=h2(),DTe=WV();tj.exports=function(r){var t=r._fullLayout,a=wi.filterVisible(t[qr.name]);function n(v){Nd.autoMargin(r,ej(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(){Dv.select(this).selectAll("g."+qr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+qr.headerGroupClassName).data(a,PTe);o.enter().append("g").classed(qr.headerGroupClassName,!0);for(var l=wi.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 DTe(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=Dv.select(this),p=v.type==="dropdown"?l:null;Nd.manageCommandObserver(r,v,v.buttons,function(m){s8(r,v,v.buttons[m.index],d,p,c,m.index,!0)}),v.type==="dropdown"?(JV(r,d,l,c,v),$V(l,v)&&Fd(r,d,l,c,v)):Fd(r,d,null,null,v)})}};function PTe(e){return e._index}function RTe(e){return+e.attr(qr.menuIndexAttrName)==-1}function $V(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"?Fd(e,a,null,null,r):r.type==="dropdown"&&(n.attr(qr.menuIndexAttrName,"-1"),JV(e,a,n,i,r),l||Fd(e,a,n,i,r))}function JV(e,r,t,a,n){var i=wi.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(rj,n,u,f);var c=wi.ensureSingle(r,"text",qr.headerArrowClassName,function(v){v.attr("text-anchor","end").call(Pv.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($V(t,n)?-1:n._index)),Fd(e,r,t,a,n)}),i.on("mouseover",function(){i.call(KV)}),i.on("mouseout",function(){i.call(QV,n)}),Pv.setTranslate(r,o.lx,o.ly)}function Fd(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!RTe(t)||n.type==="buttons"?n.buttons:[],o=n.type==="dropdown"?qr.dropdownButtonClassName:qr.buttonClassName,l=t.selectAll("g."+o).data(wi.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},m={l:p.x+n.borderwidth,t:p.y+n.borderwidth};l.each(function(y,x){var T=Dv.select(this);T.call(f8,n,y,e).call(rj,n,p),T.on("click",function(){Dv.event.defaultPrevented||(y.execute&&(y.args2&&n.active===x?(s8(e,n,y,r,t,a,-1),Nd.executeAPICommand(e,y.method,y.args2)):(s8(e,n,y,r,t,a,x),Nd.executeAPICommand(e,y.method,y.args))),e.emit("plotly_buttonclicked",{menu:n,button:y,active:n.active}))}),T.on("mouseover",function(){T.call(KV)}),T.on("mouseout",function(){T.call(QV,n),l.call(XV,n)})}),l.call(XV,n),d?(m.w=Math.max(v.openWidth,v.headerWidth),m.h=p.y-m.t):(m.w=p.x-m.l,m.h=Math.max(v.openHeight,v.headerHeight)),m.direction=n.direction,a&&(l.size()?zTe(e,r,t,a,n,m):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(FTe,r,t,a)}function ITe(e,r){var t=wi.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 FTe(e,r,t,a){var n=wi.ensureSingle(e,"text",qr.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),i=t.label,o=a._fullLayout._meta;o&&(i=wi.templateString(i,o)),n.call(Pv.font,r.font).text(i).call(m2.convertToTspans,a)}function XV(e,r){var t=r.active;e.each(function(a,n){var i=Dv.select(this);n===t&&r.showactive&&i.select("rect."+qr.itemRectClassName).call(Id.fill,qr.activeColor)})}function KV(e){e.select("rect."+qr.itemRectClassName).call(Id.fill,qr.hoverColor)}function QV(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=Pv.tester.selectAll("g."+qr.dropdownButtonClassName).data(wi.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=Dv.select(this);v.call(f8,r,f,e);var d=v.select("."+qr.itemTextClassName),p=d.node()&&Pv.bBox(d.node()).width,m=Math.max(p+qr.textPadX,qr.minWidth),y=r.font.size*ZV,x=m2.lineCount(d),T=Math.max(y*x,qr.minHeight)+qr.textOffsetY;T=Math.ceil(T),m=Math.ceil(m),t.widths[c]=m,t.heights[c]=T,t.height1=Math.max(t.height1,T),t.width1=Math.max(t.width1,m),n?(t.totalWidth=Math.max(t.totalWidth,m),t.openWidth=t.totalWidth,t.totalHeight+=T+qr.gapButton,t.openHeight+=T+qr.gapButton):(t.totalWidth+=m+qr.gapButton,t.openWidth+=m+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";wi.isRightAnchor(r)&&(t.lx-=i,s="right"),wi.isCenterAnchor(r)&&(t.lx-=i/2,s="center");var u="top";wi.isBottomAnchor(r)&&(t.ly-=o,u="bottom"),wi.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,ej(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 ej(e){return qr.autoMarginIdRoot+e._index}function rj(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;Pv.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*ZV,v=m2.lineCount(i),d=(v-1)*c/2;m2.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 ij=N((RWe,nj)=>{"use strict";var BTe=h2();nj.exports={moduleType:"component",name:BTe.name,layoutAttributes:l8(),supplyLayoutDefaults:YV(),draw:aj()}});var Od=N((zWe,oj)=>{"use strict";oj.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=N((NWe,uj)=>{"use strict";var lj=ka(),HTe=hm(),UTe=Mt().extendDeepAll,GTe=wo().overrideAll,YTe=ph(),sj=St().templatedArray,Tf=Od(),VTe=sj("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}});uj.exports=GTe(sj("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:VTe,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:UTe(HTe({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:YTe.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:lj({})},font:lj({}),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 hj=N((IWe,vj)=>{"use strict";var Rv=ke(),fj=So(),cj=c8(),jTe=Od(),WTe=jTe.name,XTe=cj.steps;vj.exports=function(r,t){fj(r,t,{name:WTe,handleItemDefaults:ZTe})};function ZTe(e,r,t){function a(c,v){return Rv.coerce(e,r,cj,c,v)}for(var n=fj(e,r,{name:"steps",handleItemDefaults:$Te}),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=Rv.filterVisible(n),u=a("active");(n[u]||{}).visible||(r.active=s[0]._index),a("x"),a("y"),Rv.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"),Rv.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),Rv.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 $Te(e,r){function t(i,o){return Rv.coerce(e,r,XTe,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 Tj=N((FWe,wj)=>{"use strict";var Io=Dr(),y2=va(),js=Sr(),Fo=Xr(),Ti=ke(),JTe=Ti.strTranslate,Bd=Ca(),KTe=St().arrayEditor,Br=Od(),d8=Qa(),mj=d8.LINE_SPACING,v8=d8.FROM_TL,h8=d8.FROM_BR;wj.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=QTe(a,r),i=a._infolayer.selectAll("g."+Br.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Br.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),y2.autoMargin(r,yj(f))}if(i.exit().each(function(){Io.select(this).selectAll("g."+Br.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Br.groupClassName).data(n,eMe);l.enter().append("g").classed(Br.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s<n.length;s++){var u=n[s];rMe(r,u)}l.each(function(f){var c=Io.select(this);oMe(f),y2.manageCommandObserver(r,f,f._visibleSteps,function(v){var d=c.data()[0];d.active!==v.index&&(d._dragging||bj(r,c,d,v.index,!1,!0))}),tMe(r,Io.select(this),f)})}};function yj(e){return Br.autoMarginIdRoot+e._index}function QTe(e,r){for(var t=e[Br.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function eMe(e){return e._index}function rMe(e,r){var t=Fo.tester.selectAll("g."+Br.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Br.labelGroupClass,!0);var a=0,n=0;t.each(function(p){var m=Io.select(this),y=gj(m,{step:p},r),x=y.node();if(x){var T=Fo.bBox(x);n=Math.max(n,T.height),a=Math.max(a,T.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(Br.railWidth,Br.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*Br.stepInset,s=l/(r._stepCount-1),u=a+Br.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=Fo.tester.append("g");t.each(function(p){var m=g2(f,r,p.label),y=m.node()&&Fo.bBox(m.node())||{width:0,height:0},x=Bd.lineCount(m);i.currentValueMaxWidth=Math.max(i.currentValueMaxWidth,Math.ceil(y.width)),i.currentValueHeight=Math.max(i.currentValueHeight,Math.ceil(y.height)),i.currentValueMaxLines=Math.max(i.currentValueMaxLines,x)}),i.currentValueTotalHeight=i.currentValueHeight+r.currentvalue.offset,f.remove()}i.height=i.currentValueTotalHeight+Br.tickOffset+r.ticklen+Br.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";Ti.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),Ti.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var v="top";Ti.isBottomAnchor(r)&&(i.ly-=i.height,v="bottom"),Ti.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]),y2.autoMargin(e,yj(r),d)}function tMe(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(g2,t).call(sMe,t).call(nMe,t).call(iMe,t).call(lMe,e,t).call(aMe,e,t);var a=t._dims;Fo.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(_j,t,!1),r.call(g2,t)}function g2(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-Br.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=Br.currentValueInset,i="left"}var o=Ti.ensureSingle(e,"text",Br.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=Ti.templateString(s,u)),l+=s}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),o.call(Fo.font,r.currentvalue.font).text(l).call(Bd.convertToTspans,r._gd);var f=Bd.lineCount(o),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*mj;return Bd.positionText(o,n,c),o}}function aMe(e,r,t){var a=Ti.ensureSingle(e,"rect",Br.gripRectClass,function(n){n.call(xj,r,e,t).style("pointer-events","all")});a.attr({width:Br.gripWidth,height:Br.gripHeight,rx:Br.gripRadius,ry:Br.gripRadius}).call(js.stroke,t.bordercolor).call(js.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function gj(e,r,t){var a=Ti.ensureSingle(e,"text",Br.labelClass,function(o){o.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=Ti.templateString(n,i)),a.call(Fo.font,t.font).text(n).call(Bd.convertToTspans,t._gd),a}function nMe(e,r){var t=Ti.ensureSingle(e,"g",Br.labelsClass),a=r._dims,n=t.selectAll("g."+Br.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(Br.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var o=Io.select(this);o.call(gj,i,r),Fo.setTranslate(o,p8(r,i.fraction),Br.tickOffset+r.ticklen+r.font.size*mj+Br.labelOffset+a.currentValueTotalHeight)})}function dj(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),o=t._visibleSteps[i]._index;o!==t.active&&bj(e,r,t,o,!0,n)}function bj(e,r,t,a,n,i){var o=t.active;t.active=a,KTe(e.layout,Br.name,t).applyUpdate("active",a);var l=t.steps[t.active];r.call(_j,t,i),r.call(g2,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&&y2.executeAPICommand(e,s.method,s.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function xj(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=Io.select(r);function i(){return t.data()[0]}function o(){var l=i();r.emit("plotly_sliderstart",{slider:l});var s=t.select("."+Br.gripRectClass);Io.event.stopPropagation(),Io.event.preventDefault(),s.call(js.fill,l.activebgcolor);var u=pj(l,Io.mouse(a)[0]);dj(r,t,l,u,!0),l._dragging=!0;function f(){var v=i(),d=pj(v,Io.mouse(a)[0]);dj(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 iMe(e,r){var t=e.selectAll("rect."+Br.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(Br.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=Io.select(this);l.attr({height:o?r.ticklen:r.minorticklen}).call(js.fill,r.tickcolor),Fo.setTranslate(l,p8(r,i/(r._stepCount-1))-.5*r.tickwidth,(o?Br.tickOffset:Br.minorTickOffset)+a.currentValueTotalHeight)})}function oMe(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 _j(e,r,t){for(var a=e.select("rect."+Br.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",JTe(o-Br.gripWidth*.5,r._dims.currentValueTotalHeight))}}function p8(e,r){var t=e._dims;return t.inputAreaStart+Br.stepInset+(t.inputAreaLength-2*Br.stepInset)*Math.min(1,Math.max(0,r))}function pj(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Br.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Br.stepInset-2*t.inputAreaStart)))}function lMe(e,r,t){var a=t._dims,n=Ti.ensureSingle(e,"rect",Br.railTouchRectClass,function(i){i.call(xj,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Br.tickOffset+t.ticklen+a.labelHeight)}).call(js.fill,t.bgcolor).attr("opacity",0),Fo.setTranslate(n,0,a.currentValueTotalHeight)}function sMe(e,r){var t=r._dims,a=t.inputAreaLength-Br.railInset*2,n=Ti.ensureSingle(e,"rect",Br.railRectClass);n.attr({width:a,height:Br.railWidth,rx:Br.railRadius,ry:Br.railRadius,"shape-rendering":"crispEdges"}).call(js.stroke,r.bordercolor).call(js.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Fo.setTranslate(n,Br.railInset,(t.inputAreaWidth-Br.railWidth)*.5+t.currentValueTotalHeight)}});var Aj=N((OWe,Mj)=>{"use strict";var uMe=Od();Mj.exports={moduleType:"component",name:uMe.name,layoutAttributes:c8(),supplyLayoutDefaults:hj(),draw:Tj()}});var b2=N((BWe,Sj)=>{"use strict";var kj=Ei();Sj.exports={bgcolor:{valType:"color",dflt:kj.background,editType:"plot"},bordercolor:{valType:"color",dflt:kj.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=N((HWe,qj)=>{"use strict";qj.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var x2=N((UWe,Lj)=>{"use strict";Lj.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 Dj=N(w2=>{"use strict";var fMe=ba(),cMe=Ca(),Cj=x2(),vMe=Qa().LINE_SPACING,_2=Cj.name;function Ej(e){var r=e&&e[_2];return r&&r.visible}w2.isVisible=Ej;w2.makeData=function(e){for(var r=fMe.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[_2];o._id=_2+i._id,o._height=(e.height-t.b-t.t)*o.thickness,o._offsetShift=Math.floor(o.borderwidth/2)}}e._rangeSliderData=a};w2.autoMarginOpts=function(e,r){var t=e._fullLayout,a=r[_2],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(cMe.BR_TAG_ALL)||[]).length;o+=l*r.title.font.size*vMe}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,o),pad:Cj.extraPad+a._offsetShift*2}}});var Nj=N((YWe,zj)=>{"use strict";var T2=ke(),Pj=St(),Rj=ba(),hMe=b2(),dMe=m8();zj.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;T2.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=Pj.newContainer(i,"rangeslider");function s(_,k){return T2.coerce(o,l,hMe,_,k)}var u,f;function c(_,k){return T2.coerce(u,f,dMe,_,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")))===Rj.name2id(a)}).map(function(_){return _.slice(_.indexOf("y"),_.length)}),m=T2.simpleMap(p,Rj.id2name),y=0;y<m.length;y++){var x=m[y];u=o[x]||{},f=Pj.newContainer(l,x,"yaxis");var T=t[x],w;u.range&&T.isValidRange(u.range)&&(w="fixed");var b=c("rangemode",w);b!=="match"&&c("range",T.range.slice())}l._input=o}}});var Fj=N((VWe,Ij)=>{"use strict";var pMe=ba().list,mMe=Dh().getAutoRange,yMe=x2();Ij.exports=function(r){for(var t=pMe(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[yMe.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=mMe(r,n))}}});var Uj=N((jWe,Hj)=>{"use strict";var M2=Dr(),gMe=Tr(),bMe=va(),ia=ke(),A2=ia.strTranslate,Bj=Xr(),Ws=Sr(),xMe=Qc(),_Me=Qi(),y8=ba(),wMe=Fi(),TMe=Rs(),jr=x2();Hj.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=M2.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 m=r._size,y=l.domain;u._width=m.w*(y[1]-y[0]);var x=Math.round(m.l+m.w*y[0]),T=Math.round(m.t+m.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+u._offsetShift+jr.extraPad);s.attr("transform",A2(x,T)),u._rl=ia.simpleMap(u.range,l.r2l);var w=u._rl[0],b=u._rl[1],_=b-w;if(u.p2d=function(B){return B/u._width*_+w},u.d2p=function(B){return(B-w)/_*u._width},l.rangebreaks){var k=l.locateBreaks(w,b);if(k.length){var M,q,C=0;for(M=0;M<k.length;M++)q=k[M],C+=q.max-q.min;var D=u._width/(b-w-C),P=[-D*w];for(M=0;M<k.length;M++)q=k[M],P.push(P[P.length-1]-D*(q.max-q.min));for(u.d2p=function(B){for(var U=P[0],G=0;G<k.length;G++){var V=k[G];if(B>=V.max)U=P[G+1];else if(B<V.min)break}return U+D*B},M=0;M<k.length;M++)q=k[M],q.pmin=u.d2p(q.min),q.pmax=u.d2p(q.max);u.p2d=function(B){for(var U=P[0],G=0;G<k.length;G++){var V=k[G];if(B>=V.pmax)U=P[G+1];else if(B<V.pmin)break}return(B-U)/D}}}if(c.rangemode!=="match"){var R=f.r2l(c.range[0]),I=f.r2l(c.range[1]),F=I-R;u.d2pOppAxis=function(B){return(B-R)/F*u._height}}s.call(SMe,e,l,u).call(qMe,e,l,u).call(LMe,e,l,u).call(EMe,e,l,u,c).call(DMe,e,l,u).call(PMe,e,l,u),MMe(s,e,l,u),kMe(s,e,l,u,f,c),l.side==="bottom"&&xMe.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 MMe(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=M2.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=wMe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(x){var T=Oj(x),w=+T-f,b,_,k;switch(u){case n:if(k="ew-resize",v+w>t._length||d+w<0)return;b=v+w,_=d+w;break;case i:if(k="col-resize",v+w>t._length)return;b=v+w,_=d;break;case o:if(k="col-resize",d+w<0)return;b=v,_=d+w;break;default:k="ew-resize",b=c,_=c+w;break}if(_<b){var M=_;_=b,b=M}a._pixelMin=b,a._pixelMax=_,TMe(M2.select(p),k),AMe(e,r,t,a)}function y(){p.removeEventListener("mousemove",m),p.removeEventListener("mouseup",y),this.removeEventListener("touchmove",m),this.removeEventListener("touchend",y),ia.removeElement(p)}}e.on("mousedown",l),e.on("touchstart",l)}function AMe(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(){gMe.call("_guiRelayout",r,t._name+".range",[i,o])})}function kMe(e,r,t,a,n,i){var o=jr.handleWidth/2;function l(x){return ia.constrain(x,0,a._width)}function s(x){return ia.constrain(x,0,a._height)}function u(x){return ia.constrain(x,-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,m=Math.round(u(f-o))-p,y=Math.round(u(c-o))+p;e.select("g."+jr.grabberMinClassName).attr("transform",A2(m,p)),e.select("g."+jr.grabberMaxClassName).attr("transform",A2(y,p))}function SMe(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=Bj.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:A2(o,o),"stroke-width":l}).call(Ws.stroke,a.bordercolor).call(Ws.fill,a.bgcolor)}function qMe(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 LMe(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(Bj.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=M2.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),bMe.supplyDefaults(p);var m=p._fullLayout.xaxis,y=p._fullLayout[v];m.clearCalc(),m.setScale(),y.clearCalc(),y.setScale();var x={id:l,plotgroup:u,xaxis:m,yaxis:y,isRangePlot:!0};f?o=x:(x.mainplot="xy",x.mainplotinfo=o),_Me.rangePlot(r,x,CMe(n,l))})}function CMe(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 EMe(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 DMe(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 PMe(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 Yj=N((WWe,Gj)=>{"use strict";var RMe=ke(),zMe=b2(),NMe=m8(),g8=Dj();Gj.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:RMe.extendFlat({},zMe,{yaxis:NMe})}}},layoutAttributes:b2(),handleDefaults:Nj(),calcAutorange:Fj(),draw:Uj(),isVisible:g8.isVisible,makeData:g8.makeData,autoMarginOpts:g8.autoMarginOpts}});var k2=N((XWe,jj)=>{"use strict";var IMe=ka(),Vj=Ei(),FMe=St().templatedArray,OMe=FMe("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"});jj.exports={visible:{valType:"boolean",editType:"plot"},buttons:OMe,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:IMe({editType:"plot"}),bgcolor:{valType:"color",dflt:Vj.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Vj.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var b8=N((ZWe,Wj)=>{"use strict";Wj.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var $j=N(($We,Zj)=>{"use strict";var S2=ke(),BMe=Sr(),HMe=St(),UMe=So(),Xj=k2(),x8=b8();Zj.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=HMe.newContainer(t,"rangeselector");function s(d,p){return S2.coerce(o,l,Xj,d,p)}var u=UMe(o,l,{name:"buttons",handleItemDefaults:GMe,calendar:i}),f=s("visible",u.length>0);if(f){var c=YMe(t,a,n);s("x",c[0]),s("y",c[1]),S2.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),S2.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",BMe.contrast(v,x8.lightAmount,x8.darkAmount)),s("bordercolor"),s("borderwidth")}};function GMe(e,r,t,a){var n=a.calendar;function i(s,u){return S2.coerce(e,r,Xj.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 YMe(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 Kj=N((JWe,Jj)=>{"use strict";var VMe=G5(),jMe=ke().titleCase;Jj.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=WMe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function WMe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=VMe["utc"+jMe(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 oW=N((KWe,iW)=>{"use strict";var L2=Dr(),XMe=Tr(),ZMe=va(),Qj=Sr(),nW=Xr(),Xl=ke(),eW=Xl.strTranslate,q2=Ca(),$Me=ba(),T8=Qa(),rW=T8.LINE_SPACING,tW=T8.FROM_TL,aW=T8.FROM_BR,w8=b8(),JMe=Kj();iW.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(KMe(r),QMe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=L2.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=L2.select(this),c=JMe(o,u);u._isActive=eAe(o,u,c),f.call(_8,l,u),f.call(tAe,l,u,r),f.on("click",function(){r._dragged||XMe.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)})}),nAe(r,s,l,o._name,i)})};function KMe(e){for(var r=$Me.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 QMe(e){return e._id}function eAe(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(Qj.stroke,r.bordercolor).call(Qj.fill,rAe(r,t)).style("stroke-width",r.borderwidth+"px")}function rAe(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function tAe(e,r,t,a){function n(o){q2.convertToTspans(o,a)}var i=Xl.ensureSingle(e,"text","selector-text",function(o){o.attr("text-anchor","middle")});i.call(nW.font,r.font).text(aAe(t,a._fullLayout._meta)).call(n)}function aAe(e,r){return e.label?r?Xl.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function nAe(e,r,t,a,n){var i=0,o=0,l=t.borderwidth;r.each(function(){var d=L2.select(this),p=d.select(".selector-text"),m=t.font.size*rW,y=Math.max(m*q2.lineCount(p),16)+3;o=Math.max(o,y)}),r.each(function(){var d=L2.select(this),p=d.select(".selector-rect"),m=d.select(".selector-text"),y=m.node()&&nW.bBox(m.node()).width,x=t.font.size*rW,T=q2.lineCount(m),w=Math.max(y+10,w8.minButtonWidth);d.attr("transform",eW(l+i,l)),p.attr({x:0,y:0,width:w,height:o}),q2.positionText(m,w/2,o/2-(T-1)*x/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),ZMe.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*tW[c],r:i*aW[c],b:o*aW[v],t:o*tW[v]}),n.attr("transform",eW(u,f))}});var sW=N((QWe,lW)=>{"use strict";lW.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:k2()}}},layoutAttributes:k2(),handleDefaults:$j(),draw:oW()}});var zv=N(M8=>{"use strict";var uW=Mt().extendFlat;M8.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:uW({},t,{}),y:uW({},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};M8.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 dW=N((rXe,hW)=>{"use strict";var iAe=ke(),oAe=(Cc(),un(Lc)).counter,lAe=zv().attributes,fW=qa().idRegex,sAe=St(),A8={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:[oAe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[fW.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[fW.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:lAe({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 C2(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 uAe(e,r){var t=e.grid||{},a=C2(r,t,"x"),n=C2(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=sAe.newContainer(r,"grid");function v(k,M){return iAe.coerce(t,c,A8,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=v("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=v("roworder"),x=y==="top to bottom",T=i?.2:.1,w=i?.3:.1,b,_;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,_=r._splomGridDflt.yside),c._domains={x:cW("x",v,T,b,p),y:cW("y",v,w,_,d,x)}}function cW(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 fAe(e,r){var t=r.grid;if(!(!t||!t._domains)){var a=e.grid||{},n=r._subplots,i=t._hasSubplotGrid,o=t.rows,l=t.columns,s=t.pattern==="independent",u,f,c,v,d,p,m,y=t._axisMap={};if(i){var x=a.subplots||[];p=t.subplots=new Array(o);var T=1;for(u=0;u<o;u++){var w=p[u]=new Array(l),b=x[u]||[];for(f=0;f<l;f++)if(s?(d=T===1?"xy":"x"+T+"y"+T,T++):d=b[f],w[f]="",n.cartesian.indexOf(d)!==-1){if(m=d.indexOf("y"),c=d.slice(0,m),v=d.slice(m),y[c]!==void 0&&y[c]!==f||y[v]!==void 0&&y[v]!==u)continue;w[f]=d,y[c]=f,y[v]=u}}}else{var _=C2(r,a,"x"),k=C2(r,a,"y");t.xaxes=vW(_,n.xaxis,l,y,"x"),t.yaxes=vW(k,n.yaxis,o,y,"y")}var M=t._anchors={},q=t.roworder==="top to bottom";for(var C in y){var D=C.charAt(0),P=t[D+"side"],R,I,F;if(P.length<8)M[C]="free";else if(D==="x"){if(P.charAt(0)==="t"===q?(R=0,I=1,F=o):(R=o-1,I=-1,F=-1),i){var B=y[C];for(u=R;u!==F;u+=I)if(d=p[u][B],!!d&&(m=d.indexOf("y"),d.slice(0,m)===C)){M[C]=d.slice(m);break}}else for(u=R;u!==F;u+=I)if(v=t.yaxes[u],n.cartesian.indexOf(C+v)!==-1){M[C]=v;break}}else if(P.charAt(0)==="l"?(R=0,I=1,F=l):(R=l-1,I=-1,F=-1),i){var U=y[C];for(u=R;u!==F;u+=I)if(d=p[U][u],!!d&&(m=d.indexOf("y"),d.slice(m)===C)){M[C]=d.slice(0,m);break}}else for(u=R;u!==F;u+=I)if(c=t.xaxes[u],n.cartesian.indexOf(c+C)!==-1){M[C]=c;break}}}}function vW(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}hW.exports={moduleType:"component",name:"grid",schema:{layout:{grid:A8}},layoutAttributes:A8,sizeDefaults:uAe,contentDefaults:fAe}});var k8=N((tXe,pW)=>{"use strict";pW.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 gW=N((aXe,yW)=>{"use strict";var mW=Fr(),cAe=Tr(),vAe=ke(),hAe=St(),dAe=k8();yW.exports=function(e,r,t,a){var n="error_"+a.axis,i=hAe.newContainer(r,n),o=e[n]||{};function l(p,m){return vAe.coerce(o,i,dAe,p,m)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||mW(o.thickness)||mW(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",cAe.traceIs(r,"gl3d")?0:4))}}});var S8=N((nXe,xW)=>{"use strict";xW.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=bW(t,r.value),l=bW(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 bW(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 TW=N((iXe,wW)=>{"use strict";var q8=Fr(),pAe=Tr(),L8=Gr(),mAe=ke(),yAe=S8();wW.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&&pAe.traceIs(i,"errorBarsOK")){var o=L8.getFromId(r,i.xaxis),l=L8.getFromId(r,i.yaxis);_W(n,i,o,"x"),_W(n,i,l,"y")}}};function _W(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,o=[];if(i){for(var l=yAe(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 m=t._id,y=r._extremes[m],x=L8.findExtremes(t,o,mAe.extendFlat({tozero:y.opts.tozero},{padded:!0}));y.min=y.min.concat(x.min),y.max=y.max.concat(x.max)}}});var kW=N((oXe,AW)=>{"use strict";var MW=Dr(),Xs=Fr(),gAe=Xr(),bAe=Jn();AW.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(T){return T.id});var m=bAe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var y=MW.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){v.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var x=y.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),gAe.setClipUrl(y,a.layerClipId,r),y.each(function(T){var w=MW.select(this),b=xAe(T,o,l);if(!(m&&!T.vis)){var _,k=w.select("path.yerror");if(d.visible&&Xs(b.x)&&Xs(b.yh)&&Xs(b.ys)){var M=d.width;_="M"+(b.x-M)+","+b.yh+"h"+2*M+"m-"+M+",0V"+b.ys,b.noYS||(_+="m-"+M+",0h"+2*M),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",_)}else k.remove();var q=w.select("path.xerror");if(v.visible&&Xs(b.y)&&Xs(b.xh)&&Xs(b.xs)){var C=(v.copy_ystyle?d:v).width;_="M"+b.xh+","+(b.y-C)+"v"+2*C+"m0,-"+C+"H"+b.xs,b.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 xAe(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 LW=N((lXe,qW)=>{"use strict";var _Ae=Dr(),SW=Sr();qW.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=_Ae.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(SW.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(SW.stroke,i.color)})}});var DW=N((sXe,EW)=>{"use strict";var Hd=ke(),CW=wo().overrideAll,Ud=k8(),Mf={error_x:Hd.extendFlat({},Ud),error_y:Hd.extendFlat({},Ud)};delete Mf.error_x.copy_zstyle;delete Mf.error_y.copy_zstyle;delete Mf.error_y.copy_ystyle;var Gd={error_x:Hd.extendFlat({},Ud),error_y:Hd.extendFlat({},Ud),error_z:Hd.extendFlat({},Ud)};delete Gd.error_x.copy_ystyle;delete Gd.error_y.copy_ystyle;delete Gd.error_z.copy_ystyle;delete Gd.error_z.copy_zstyle;EW.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Mf,bar:Mf,histogram:Mf,scatter3d:CW(Gd,"calc","nested"),scattergl:CW(Mf,"calc","nested")}},supplyDefaults:gW(),calc:TW(),makeComputeError:S8(),plot:kW(),style:LW(),hoverInfo:wAe};function wAe(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 RW=N((uXe,PW)=>{"use strict";PW.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 UW=N((fXe,HW)=>{"use strict";var Zs=Dr(),D2=va(),zW=Tr(),Zl=Gr(),E2=Fi(),ro=ke(),Bo=ro.strTranslate,BW=Mt().extendFlat,C8=Rs(),Oo=Xr(),Nv=Sr(),TAe=Qc(),MAe=Ca(),AAe=hi().flipScale,kAe=Bw(),SAe=Hw(),qAe=Ni(),D8=Qa(),NW=D8.LINE_SPACING,IW=D8.FROM_TL,FW=D8.FROM_BR,Yt=RW().cn;function LAe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Yt.colorbar).data(CAe(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=EAe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&DAe(n,a,e)}),t.exit().each(function(a){D2.autoMargin(e,a._id)}).remove(),t.order()}function CAe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(w){return BW(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?AAe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f<t.length;f++){var c=t[f];if(o=c[0].trace,!!o._module){var v=o._module.colorbar;if(o.visible===!0&&v)for(var d=Array.isArray(v),p=d?v:[v],m=0;m<p.length;m++){l=p[m];var y=l.container;i=y?o[y]:o,i&&i.showscale&&(n=s(i.colorbar),n._id="cb"+o.uid+(d&&y?"-"+y:""),n._traceIndex=o.index,n._propPrefix=(y?y+".":"")+"colorbar.",n._meta=o._meta,u(),a.push(n))}}}for(var x in r._colorAxes)if(i=r[x],i.showscale){var T=r._colorAxes[x];n=s(i.colorbar),n._id="cb"+x,n._propPrefix=x+".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 E8=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],OW=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function EAe(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,v=r.yanchor,d=r.xpad,p=r.ypad,m=r.x,y=a?r.y:1-r.y,x=r.yref==="paper",T=r.xref==="paper",w=t._fullLayout,b=w._size,_=r._fillcolor,k=r._line,M=r.title,q=M.side,C=r._zrange||Zs.extent((typeof _=="function"?_:k.color).domain()),D=typeof k.color=="function"?k.color:function(){return k.color},P=typeof _=="function"?_:function(){return _},R=r._levels,I=PAe(t,r,C),F=I.fill,B=I.line,U=Math.round(o*(l==="fraction"?a?b.w:b.h:1)),G=U/(a?b.w:b.h),V=Math.round(n*(i==="fraction"?a?b.h:b.w:1)),Y=V/(a?b.h:b.w),X=T?b.w:t._fullLayout.width,j=x?b.h:t._fullLayout.height,J=Math.round(a?m*X+d:y*j+p),ae={center:.5,right:1}[c]||0,te={top:1,middle:.5}[v]||0,se=a?m-ae*G:y-te*G,$=a?y-te*Y:m-ae*Y,fe=Math.round(a?j*(1-$):X*$);r._lenFrac=Y,r._thickFrac=G,r._uFrac=se,r._vFrac=$;var oe=r._axis=RAe(t,r,C);oe.position=G+(a?m+d/b.w:y+p/b.h);var ue=["top","bottom"].indexOf(q)!==-1;if(a&&ue&&(oe.title.side=q,oe.titlex=m+d/b.w,oe.titley=$+(M.side==="top"?Y-p/b.h:p/b.h)),!a&&!ue&&(oe.title.side=q,oe.titley=y+p/b.h,oe.titlex=$+d/b.w),k.color&&r.tickmode==="auto"){oe.tickmode="linear",oe.tick0=R.start;var ce=R.size,ie=ro.constrain(V/50,4,15)+1,ge=(C[1]-C[0])/((r.nticks||ie)*ce);if(ge>1){var Ce=Math.pow(10,Math.floor(Math.log(ge)/Math.LN10));ce*=Ce*ro.roundUp(ge/Ce,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(oe.tick0=0)}oe.dtick=ce}var _e=a?p/b.h:d/b.w;oe.domain=OW(E8([$,$+Y],_e),_e),oe.setScale(),e.attr("transform",Bo(Math.round(b.l),Math.round(b.t)));var Ee=e.select("."+Yt.cbtitleunshift).attr("transform",Bo(-Math.round(b.l),-Math.round(b.t))),Ae=oe.ticklabelposition,Se=oe.title.font.size,Re=e.select("."+Yt.cbaxis),Ie,Le=0,Ze=0;function Je(re,be){var Ge={propContainer:oe,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(),TAe.draw(t,re,BW(Ge,be||{}))}function We(){if(a&&ue||!a&&!ue){var re,be;q==="top"&&(re=d+b.l+X*m,be=p+b.t+j*(1-$-Y)+3+Se*.75),q==="bottom"&&(re=d+b.l+X*m,be=p+b.t+j*(1-$)-3-Se*.25),q==="right"&&(be=p+b.t+j*y+3+Se*.75,re=d+b.l+X*$),Je(oe._id+"title",{attributes:{x:re,y:be,"text-anchor":a?"start":"middle"}})}}function qe(){if(a&&!ue||!a&&ue){var re=oe.position||0,be=oe._offset+oe._length/2,Ge,cr;if(q==="right")cr=be,Ge=b.l+X*re+10+Se*(oe.showticklabels?1:.5);else if(Ge=be,q==="bottom"&&(cr=b.t+j*re+10+(Ae.indexOf("inside")===-1?oe.tickfont.size:0)+(oe.ticks!=="inside"&&r.ticklen||0)),q==="top"){var Pe=M.text.split("<br>").length;cr=b.t+j*re+10-U-NW*Se*Pe}Je((a?"h":"v")+oe._id+"title",{avoid:{selection:Zs.select(t).selectAll("g."+oe._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?w.width:w.height},attributes:{x:Ge,y:cr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function ze(){if(!a&&!ue||a&&ue){var re=e.select("."+Yt.cbtitle),be=re.select("text"),Ge=[-s/2,s/2],cr=re.select(".h"+oe._id+"title-math-group").node(),Pe=15.6;be.node()&&(Pe=parseInt(be.node().style.fontSize,10)*NW);var me;if(cr?(me=Oo.bBox(cr),Ze=me.width,Le=me.height,Le>Pe&&(Ge[1]-=(Le-Pe)/2)):be.node()&&!be.classed(Yt.jsPlaceholder)&&(me=Oo.bBox(be.node()),Ze=me.width,Le=me.height),a){if(Le){if(Le+=5,q==="top")oe.domain=OW(oe.domain,Le/b.h),Ge[1]*=-1;else{oe.domain=E8(oe.domain,Le/b.h);var Me=MAe.lineCount(be);Ge[1]+=(1-Me)*Pe}re.attr("transform",Bo(Ge[0],Ge[1])),oe.setScale()}}else Ze&&(q==="right"&&(oe.domain=E8(oe.domain,(Ze+Se/2)/b.w)),re.attr("transform",Bo(Ge[0],Ge[1])),oe.setScale())}e.selectAll("."+Yt.cbfills+",."+Yt.cblines).attr("transform",a?Bo(0,Math.round(b.h*(1-oe.domain[1]))):Bo(Math.round(b.w*oe.domain[0]),0)),Re.attr("transform",a?Bo(0,Math.round(-b.t)):Bo(Math.round(-b.l),0));var He=e.select("."+Yt.cbfills).selectAll("rect."+Yt.cbfill).attr("style","").data(F);He.enter().append("rect").classed(Yt.cbfill,!0).attr("style",""),He.exit().remove();var Xe=C.map(oe.c2p).map(Math.round).sort(function(lr,De){return lr-De});He.each(function(lr,De){var $e=[De===0?C[0]:(F[De]+F[De-1])/2,De===F.length-1?C[1]:(F[De]+F[De+1])/2].map(oe.c2p).map(Math.round);a&&($e[1]=ro.constrain($e[1]+($e[1]>$e[0])?1:-1,Xe[0],Xe[1]));var Fe=Zs.select(this).attr(a?"x":"y",J).attr(a?"y":"x",Zs.min($e)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(Zs.max($e)-Zs.min($e),2));if(r._fillgradient)Oo.gradient(Fe,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var pr=P(lr).replace("e-","");Fe.attr("fill",Nv.hexString(pr))}});var Oe=e.select("."+Yt.cblines).selectAll("path."+Yt.cbline).data(k.color&&k.width?B:[]);Oe.enter().append("path").classed(Yt.cbline,!0),Oe.exit().remove(),Oe.each(function(lr){var De=J,$e=Math.round(oe.c2p(lr))+k.width/2%1;Zs.select(this).attr("d","M"+(a?De+","+$e:$e+","+De)+(a?"h":"v")+U).call(Oo.lineGroupStyle,k.width,D(lr),k.dash)}),Re.selectAll("g."+oe._id+"tick,path").remove();var je=J+U+(s||0)/2-(r.ticks==="outside"?1:0),tr=Zl.calcTicks(oe),ir=Zl.getTickSigns(oe)[2];return Zl.drawTicks(t,oe,{vals:oe.ticks==="inside"?Zl.clipEnds(oe,tr):tr,layer:Re,path:Zl.makeTickPath(oe,je,ir),transFn:Zl.makeTransTickFn(oe)}),Zl.drawLabels(t,oe,{vals:tr,layer:Re,transFn:Zl.makeTransTickLabelFn(oe),labelFns:Zl.makeLabelFns(oe,je)})}function Qe(){var re,be=U+s/2;Ae.indexOf("inside")===-1&&(re=Oo.bBox(Re.node()),be+=a?re.width:re.height),Ie=Ee.select("text");var Ge=0,cr=a&&q==="top",Pe=!a&&q==="right",me=0;if(Ie.node()&&!Ie.classed(Yt.jsPlaceholder)){var Me,He=Ee.select(".h"+oe._id+"title-math-group").node();He&&(a&&ue||!a&&!ue)?(re=Oo.bBox(He),Ge=re.width,Me=re.height):(re=Oo.bBox(Ee.node()),Ge=re.right-b.l-(a?J:fe),Me=re.bottom-b.t-(a?fe:J),!a&&q==="top"&&(be+=re.height,me=re.height)),Pe&&(Ie.attr("transform",Bo(Ge/2+Se/2,0)),Ge*=2),be=Math.max(be,a?Ge:Me)}var Xe=(a?d:p)*2+be+u+s/2,Oe=0;!a&&M.text&&v==="bottom"&&y<=0&&(Oe=Xe/2,Xe+=Oe,me+=Oe),w._hColorbarMoveTitle=Oe,w._hColorbarMoveCBTitle=me;var je=u+s,tr=(a?J:fe)-je/2-(a?d:0),ir=(a?fe:J)-(a?V:p+me-Oe);e.select("."+Yt.cbbg).attr("x",tr).attr("y",ir).attr(a?"width":"height",Math.max(Xe-Oe,2)).attr(a?"height":"width",Math.max(V+je,2)).call(Nv.fill,f).call(Nv.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-V:J)+(cr?Le:0)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(V-(a?2*p+Le:2*d+lr),2)).call(Nv.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var De=a?ae*Xe:0,$e=a?0:(1-te)*Xe-me;if(De=T?b.l-De:-De,$e=x?b.t-$e:-$e,e.attr("transform",Bo(De,$e)),!a&&(u||Nv.opacity(f)&&!Nv.equals(w.paper_bgcolor,f))){var Fe=Re.selectAll("text"),pr=Fe[0].length,mr=e.select("."+Yt.cbbg).node(),sr=Oo.bBox(mr),yr=Oo.getTranslate(e),ne=2;Fe.each(function(Va,ea){var ja=0,ln=pr-1;if(ea===ja||ea===ln){var oa=Oo.bBox(this),vr=Oo.getTranslate(this),_t;if(ea===ln){var Yr=oa.right+vr.x,vt=sr.right+yr.x+fe-u-ne+m;_t=vt-Yr,_t>0&&(_t=0)}else if(ea===ja){var Rt=oa.left+vr.x,At=sr.left+yr.x+fe+u+ne;_t=At-Rt,_t<0&&(_t=0)}_t&&(pr<3?this.setAttribute("transform","translate("+_t+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ye={},Ne=IW[c],Be=FW[c],$r=IW[v],Kr=FW[v],mt=Xe-U;a?(i==="pixels"?(ye.y=y,ye.t=V*$r,ye.b=V*Kr):(ye.t=ye.b=0,ye.yt=y+n*$r,ye.yb=y-n*Kr),l==="pixels"?(ye.x=m,ye.l=Xe*Ne,ye.r=Xe*Be):(ye.l=mt*Ne,ye.r=mt*Be,ye.xl=m-o*Ne,ye.xr=m+o*Be)):(i==="pixels"?(ye.x=m,ye.l=V*Ne,ye.r=V*Be):(ye.l=ye.r=0,ye.xl=m+n*Ne,ye.xr=m-n*Be),l==="pixels"?(ye.y=1-y,ye.t=Xe*$r,ye.b=Xe*Kr):(ye.t=mt*$r,ye.b=mt*Kr,ye.yt=y-o*$r,ye.yb=y+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-De,l:tr+ye.r,b:w.height-ir-$e,t:ir+ye.b};T&&x?D2.autoMargin(t,r._id,ye):T?t._fullLayout._reservedMargin[r._id][yt]=Qt[yt]:x||a?t._fullLayout._reservedMargin[r._id][Lt]=Qt[Lt]:t._fullLayout._reservedMargin[r._id][yt]=Qt[yt]}return ro.syncOrAsync([D2.previousPromises,We,ze,qe,D2.previousPromises,Qe],t)}function DAe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;E2.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),C8(e)},moveFn:function(u,f){e.attr("transform",o+Bo(u,f)),l=E2.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=E2.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=E2.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 PAe(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 RAe(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,qAe,f,c)}return kAe(i,l,u,s,a),SAe(i,l,u,s),l}HW.exports={draw:LAe}});var YW=N((cXe,GW)=>{"use strict";GW.exports={moduleType:"component",name:"colorbar",attributes:Hm(),supplyDefaults:L4(),draw:UW().draw,hasColorbar:w4()}});var jW=N((vXe,VW)=>{"use strict";VW.exports={moduleType:"component",name:"legend",layoutAttributes:T6(),supplyLayoutDefaults:A6(),draw:O6(),style:z6()}});var XW=N((hXe,WW)=>{"use strict";WW.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 $W=N((dXe,ZW)=>{"use strict";ZW.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var R8=N((pXe,eX)=>{"use strict";var zAe=Tr(),QW=ke(),P8=QW.extendFlat,JW=QW.extendDeep;function KW(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 NAe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}eX.exports=function(r,t){var a,n=r.data,i=r.layout,o=JW([],n),l=JW({},i,KW(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++)NAe(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),zAe.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(a=0;a<t.annotations.length;a++)l.annotations.push(t.annotations[a]);var c=Object.keys(l).filter(function(y){return y.match(/^scene\d*$/)});if(c.length){var v={};for(t.tileClass==="thumbnail"&&(v={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),a=0;a<c.length;a++){var d=l[c[a]];d.xaxis||(d.xaxis={}),d.yaxis||(d.yaxis={}),d.zaxis||(d.zaxis={}),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 m={gd:p,td:p,layout:l,data:o,config:{staticPlot:t.staticPlot===void 0?!0:t.staticPlot,plotGlPixelRatio:t.plotGlPixelRatio===void 0?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showTips:t.showTips||!1}};return t.setBackground!=="transparent"&&(m.config.setBackground=t.setBackground||"opaque"),m.gd.defaultLayout=KW(t.tileClass),m}});var aX=N((mXe,tX)=>{"use strict";var IAe=Ou().EventEmitter,FAe=Tr(),OAe=ke(),rX=Vl(),BAe=R8(),HAe=Ng(),UAe=Ig();function GAe(e,r){var t=new IAe,a=BAe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=rX.getDelay(n._fullLayout);setTimeout(function(){var s=HAe(n),u=document.createElement("canvas");u.id=OAe.randstr(),t=UAe({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=rX.getRedrawFunc(n);return FAe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}tX.exports=GAe});var oX=N((yXe,iX)=>{"use strict";var nX=Vl(),YAe={getDelay:nX.getDelay,getRedrawFunc:nX.getRedrawFunc,clone:R8(),toSVG:Ng(),svgToImg:Ig(),toImage:aX(),downloadImage:iw()};iX.exports=YAe});var sX=N($l=>{"use strict";$l.version=V0().version;cS();QD();var VAe=Tr(),Yd=$l.register=VAe.register,N8=xU(),lX=Object.keys(N8);for(P2=0;P2<lX.length;P2++)Iv=lX[P2],Iv.charAt(0)!=="_"&&($l[Iv]=N8[Iv]),Yd({moduleType:"apiMethod",name:Iv,fn:N8[Iv]});var Iv,P2;Yd(xY());Yd([VY(),iV(),dl(),MV(),IV(),ij(),Aj(),Yj(),sW(),dW(),DW(),rl(),YW(),jW(),Fn(),c7()]);Yd([XW(),$W()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(Yd(window.PlotlyLocales),delete window.PlotlyLocales);$l.Icons=Iy();var R2=Fn(),z8=va();$l.Plots={resize:z8.resize,graphJson:z8.graphJson,sendDataToCloud:z8.sendDataToCloud};$l.Fx={hover:R2.hover,unhover:R2.unhover,loneHover:R2.loneHover,loneUnhover:R2.loneUnhover};$l.Snapshot=oX();$l.PlotSchema=Gc()});var fX=N((bXe,uX)=>{"use strict";uX.exports=sX()});var kf=N((xXe,pX)=>{"use strict";var Kt=Vi(),cX=ko().axisHoverFormat,{hovertemplateAttrs:jAe,texttemplateAttrs:WAe,templatefallbackAttrs:vX}=fi(),dX=el(),XAe=ka(),hX=Sd(),ZAe=Di().pattern,Af=Mt().extendFlat,I8=XAe({editType:"calc",arrayOk:!0,colorEditType:"style"}),$Ae=Kt.marker,JAe=$Ae.line,KAe=Af({},JAe.width,{dflt:0}),QAe=Af({width:KAe,editType:"calc"},dX("marker.line")),eke=Af({line:QAe,editType:"calc"},dX("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:ZAe,cornerradius:{valType:"any",editType:"calc"}});pX.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:cX("x"),yhoverformat:cX("y"),text:Kt.text,texttemplate:WAe({editType:"plot"},{keys:hX.eventDataKeys}),texttemplatefallback:vX({editType:"plot"}),hovertext:Kt.hovertext,hovertemplate:jAe({},{keys:hX.eventDataKeys}),hovertemplatefallback:vX(),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:Af({},I8,{}),insidetextfont:Af({},I8,{}),outsidetextfont:Af({},I8,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Af({},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:eke,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 z2=N((_Xe,mX)=>{"use strict";mX.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 F8=N((wXe,bX)=>{"use strict";var rke=Sr(),yX=hi().hasColorscale,gX=Ol(),tke=ke().coercePattern;bX.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=yX(r,"marker");l&&gX(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",rke.defaultLine),yX(r,"marker.line")&&gX(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),tke(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var Sf=N((TXe,AX)=>{"use strict";var xX=Fr(),Fv=ke(),_X=Sr(),ake=Tr(),nke=sw(),ike=gv(),oke=F8(),lke=Ad(),wX=kf(),N2=Fv.coerceFont;function ske(e,r,t,a){function n(u,f){return Fv.coerce(e,r,wX,u,f)}var i=nke(e,r,a,n);if(!i){r.visible=!1;return}ike(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}),oke(e,r,n,t,a);var l=(r.marker.line||{}).color,s=ake.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||_X.defaultLine,{axis:"y"}),s(e,r,l||_X.defaultLine,{axis:"x",inherit:"y"}),Fv.coerceSelectionMarkerOpacity(r,n)}function uke(e,r){var t,a;function n(l,s){return Fv.coerce(a._input,a,wX,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=TX(o)),lke(t,a,r,n,r.barmode)}}function TX(e){if(xX(e)){if(e=+e,e>=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&xX(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",m=d||n==="outside";if(p||m){var y=N2(a,"textfont",t.font),x=Fv.extendFlat({},y),T=e.textfont&&e.textfont.color,w=!T;if(w&&delete x.color,N2(a,"insidetextfont",x),v){var b=Fv.extendFlat({},y);w&&delete b.color,N2(a,"pathbar.textfont",b)}m&&N2(a,"outsidetextfont",y),o&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}AX.exports={supplyDefaults:ske,crossTraceDefaults:uke,handleText:MX,validateCornerradius:TX}});var O8=N((MXe,kX)=>{"use strict";var fke=Tr(),cke=Gr(),vke=ke(),hke=z2(),dke=Sf().validateCornerradius;kX.exports=function(e,r,t){function a(m,y){return vke.coerce(e,r,hke,m,y)}for(var n=!1,i=!1,o=!1,l={},s=a("barmode"),u=s==="group",f=0;f<t.length;f++){var c=t[f];if(fke.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=cke.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=dke(p)}});var I2=N((AXe,SX)=>{"use strict";var Ov=ke();SX.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Ov.mergeArray(t.text,r,"tx"),Ov.mergeArray(t.hovertext,r,"htx");var n=t.marker;if(n){Ov.mergeArray(n.opacity,r,"mo",!0),Ov.mergeArray(n.color,r,"mc");var i=n.line;i&&(Ov.mergeArray(i.color,r,"mlc"),Ov.mergeArrayCastPositive(i.width,r,"mlw"))}}});var PX=N((kXe,DX)=>{"use strict";var qX=Gr(),LX=xv(),CX=hi().hasColorscale,EX=Wc(),pke=I2(),mke=jg();DX.exports=function(r,t){var a=qX.getFromId(r,t.xaxis||"x"),n=qX.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=LX(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=LX(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 CX(t,"marker")&&EX(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),CX(t,"marker.line")&&EX(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),pke(d,t),mke(d,t),d}});var Vd=N((SXe,zX)=>{"use strict";var yke=Dr(),gke=ke();function bke(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=yke.select(this).select("text");gke.setTransormAndDisplay(u,s)}})}}function xke(e,r,t){if(t.uniformtext.mode){var a=RX(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 _ke(e,r){var t=RX(e);r[t]=void 0}function RX(e){return"_"+e+"Text_minsize"}zX.exports={recordMinTextSize:xke,clearMinTextSize:_ke,resizeText:bke}});var F2=N(qf=>{"use strict";var wke=Sr(),Tke=Fr(),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(Tke(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 wke.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 Bv=N((LXe,WX)=>{"use strict";var jd=Dr(),Mke=Sr(),Wd=Xr(),IX=ke(),FX=Tr(),OX=Vd().resizeText,B8=kf(),Ake=B8.textfont,kke=B8.insidetextfont,Ske=B8.outsidetextfont,tn=F2();function qke(e){var r=jd.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)&&jd.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=jd.select(this),o=n[0].trace;BX(i,o,e)}),FX.getComponentMethod("errorbars","style")(r)}function BX(e,r,t){Wd.pointStyle(e.selectAll("path"),r,t),HX(e,r,t)}function HX(e,r,t){e.selectAll("text").each(function(a){var n=jd.select(this),i=IX.ensureUniformFontSize(t,UX(n,a,r,t));Wd.font(n,i)})}function Lke(e,r,t){var a=r[0].trace;a.selectedpoints?Cke(t,a,e):(BX(t,a,e),FX.getComponentMethod("errorbars","style")(t))}function Cke(e,r,t){Wd.selectedPointStyle(e.selectAll("path"),r),Eke(e.selectAll("text"),r,t)}function Eke(e,r,t){e.each(function(a){var n=jd.select(this),i;if(a.selected){i=IX.ensureUniformFontSize(t,UX(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),Wd.font(n,i)}else Wd.selectedTextStyle(n,r)})}function UX(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=jX(r,t);i=YX(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=VX(t,r.i,n));return i}function GX(e,r,t){return H8(Ake,e.textfont,r,t)}function YX(e,r,t,a){var n=GX(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(kke,e.insidetextfont,r,n)}function VX(e,r,t){var a=GX(e,r,t);return H8(Ske,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 jX(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}WX.exports={style:qke,styleTextPoints:HX,styleOnSelect:Lke,getInsideTextFont:YX,getOutsideTextFont:VX,getBarColor:jX,resizeText:OX}});var Y8=N((CXe,rZ)=>{"use strict";var O2=Dr(),B2=Fr(),Ua=ke(),Dke=Ca(),Pke=Sr(),$s=Xr(),Rke=Tr(),H2=Gr().tickText,XX=Vd(),zke=XX.recordMinTextSize,Nke=XX.clearMinTextSize,U8=Bv(),Hv=F2(),Ike=Sd(),ZX=kf(),Fke=ZX.text,Oke=ZX.textposition,Bke=qo().appendArrayPointValue,Ln=Ike.TEXTPAD;function Hke(e){return e.id}function Uke(e){if(e.ids)return Hke}function G8(e){return(e>0)-(e<0)}function Ho(e,r){return e<r?1:-1}function Gke(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 $X(e,r,t,a){if(!r.uniformtext.mode&&JX(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 JX(e){return e&&e.duration>0}function Yke(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=O2.select(this),d=c[0].trace,p=c[0].t,m=d.type==="waterfall",y=d.type==="funnel",x=d.type==="histogram",T=d.type==="bar",w=T||y,b=0;m&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var _=d.orientation==="h",k=JX(n),M=Ua.ensureSingle(v,"g","points"),q=Uke(d),C=M.selectAll("g.point").data(Ua.identity,q);C.enter().append("g").classed("point",!0),C.exit().remove(),C.each(function(P,R){var I=O2.select(this),F=Gke(P,o,l,_),B=F[0][0],U=F[0][1],G=F[1][0],V=F[1][1],Y=(_?U-B:V-G)===0;Y&&w&&Hv.getLineWidth(d,P)&&(Y=!1),Y||(Y=!B2(B)||!B2(U)||!B2(G)||!B2(V)),P.isBlank=Y,Y&&(_?U=B:V=G),b&&!Y&&(_?(B-=Ho(B,U)*b,U+=Ho(B,U)*b):(G-=Ho(G,V)*b,V+=Ho(G,V)*b));var X,j;if(d.type==="waterfall"){if(!Y){var J=d[P.dir].marker;X=J.line.width,j=J.color}}else X=Hv.getLineWidth(d,P),j=P.mc||d.marker.color;function ae(re){var be=O2.round(X/2%1,2);return n.gap===0&&n.groupgap===0?O2.round(Math.round(re)-be,2):re}function te(re,be,Ge){return Ge&&re===be?re:Math.abs(re-be)>=2?ae(re):re>be?Math.ceil(re):Math.floor(re)}var se=Pke.opacity(j),$=se<1||X>.01?ae:te;e._context.staticPlot||(B=$(B,U,_),U=$(U,B,_),G=$(G,V,!_),V=$(V,G,!_));var fe=_?o.c2p:l.c2p,oe;P.s0>0?oe=P._sMax:P.s0<0?oe=P._sMin:oe=P.s1>0?P._sMax:P._sMin;function ue(re,be){if(!re)return 0;var Ge=Math.abs(_?V-G:U-B),cr=Math.abs(_?U-B:V-G),Pe=$(Math.abs(fe(oe,!0)-fe(0,!0))),me=P.hasB?Math.min(Ge/2,cr/2):Math.min(Ge/2,Pe),Me;if(be==="%"){var He=Math.min(50,re);Me=Ge*(He/100)}else Me=re;return $(Math.max(Math.min(Me,me),0))}var ce=T||x?ue(p.cornerradiusvalue,p.cornerradiusform):0,ie,ge,Ce="M"+B+","+G+"V"+V+"H"+U+"V"+G+"Z",_e=0;if(ce&&P.s){var Ee=G8(P.s0)===0||G8(P.s)===G8(P.s0)?P.s1:P.s0;if(_e=$(P.hasB?0:Math.abs(fe(oe,!0)-fe(Ee,!0))),_e<ce){var Ae=Ho(B,U),Se=Ho(G,V),Re=Ae===-Se?1:0;if(_)if(P.hasB)ie="M"+(B+ce*Ae)+","+G+"A "+ce+","+ce+" 0 0 "+Re+" "+B+","+(G+ce*Se)+"V"+(V-ce*Se)+"A "+ce+","+ce+" 0 0 "+Re+" "+(B+ce*Ae)+","+V+"H"+(U-ce*Ae)+"A "+ce+","+ce+" 0 0 "+Re+" "+U+","+(V-ce*Se)+"V"+(G+ce*Se)+"A "+ce+","+ce+" 0 0 "+Re+" "+(U-ce*Ae)+","+G+"Z";else{ge=Math.abs(U-B)+_e;var Ie=ge<ce?ce-Math.sqrt(ge*(2*ce-ge)):0,Le=_e>0?Math.sqrt(_e*(2*ce-_e)):0,Ze=Ae>0?Math.max:Math.min;ie="M"+B+","+G+"V"+(V-Ie*Se)+"H"+Ze(U-(ce-_e)*Ae,B)+"A "+ce+","+ce+" 0 0 "+Re+" "+U+","+(V-ce*Se-Le)+"V"+(G+ce*Se+Le)+"A "+ce+","+ce+" 0 0 "+Re+" "+Ze(U-(ce-_e)*Ae,B)+","+(G+Ie*Se)+"Z"}else if(P.hasB)ie="M"+(B+ce*Ae)+","+G+"A "+ce+","+ce+" 0 0 "+Re+" "+B+","+(G+ce*Se)+"V"+(V-ce*Se)+"A "+ce+","+ce+" 0 0 "+Re+" "+(B+ce*Ae)+","+V+"H"+(U-ce*Ae)+"A "+ce+","+ce+" 0 0 "+Re+" "+U+","+(V-ce*Se)+"V"+(G+ce*Se)+"A "+ce+","+ce+" 0 0 "+Re+" "+(U-ce*Ae)+","+G+"Z";else{ge=Math.abs(V-G)+_e;var Je=ge<ce?ce-Math.sqrt(ge*(2*ce-ge)):0,We=_e>0?Math.sqrt(_e*(2*ce-_e)):0,qe=Se>0?Math.max:Math.min;ie="M"+(B+Je*Ae)+","+G+"V"+qe(V-(ce-_e)*Se,G)+"A "+ce+","+ce+" 0 0 "+Re+" "+(B+ce*Ae-We)+","+V+"H"+(U-ce*Ae+We)+"A "+ce+","+ce+" 0 0 "+Re+" "+(U-Je*Ae)+","+qe(V-(ce-_e)*Se,G)+"V"+G+"Z"}}else ie=Ce}else ie=Ce;var ze=$X(Ua.ensureSingle(I,"path"),s,n,i);if(ze.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((U-B)*(V-G))||Y&&e._context.staticPlot?"M0,0Z":ie).call($s.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Qe=$s.makePointStyleFns(d);$s.singlePointStyle(P,ze,d,Qe,e)}Vke(e,r,I,c,R,B,U,G,V,ce,_e,n,i),r.layerClipId&&$s.hideOutsideRangePoint(P,I.select("text"),o,l,d.xcalendar,d.ycalendar)});var D=d.cliponaxis===!1;$s.setClipUrl(v,D?null:r.layerClipId,e)});Rke.getComponentMethod("errorbars","plot")(e,f,r,n)}function Vke(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,m=e._fullLayout,y;function x(Ce,_e,Ee){var Ae=Ua.ensureSingle(Ce,"text").text(_e).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call($s.font,Ee).call(Dke.convertToTspans,e);return Ae}var T=a[0].trace,w=T.orientation==="h",b=$ke(a,w,d,p),_=Xke(m,a,n,d,p);y=Zke(T,n);var k=c.mode==="stack"||c.mode==="relative",M=a[n],q=!k||M._outmost,C=M.hasB,D=u&&u-f>Ln;if(!_||y==="none"||(M.isBlank||i===o||l===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var P=m.font,R=U8.getBarColor(a[n],T),I=U8.getInsideTextFont(T,n,P,R),F=U8.getOutsideTextFont(T,n,P),B=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 G=Math.abs(o-i),V=Math.abs(s-l),Y=G-2*Ln,X=V-2*Ln,j,J,ae,te,se;if(y==="outside"&&!q&&!M.hasB&&(y="inside"),y==="auto")if(q){y="inside",se=Ua.ensureUniformFontSize(e,I),j=x(t,_,se),J=$s.bBox(j.node()),ae=J.width,te=J.height;var $=ae>0&&te>0,fe;D?C?fe=Lf(Y-2*u,X,ae,te,w)||Lf(Y,X-2*u,ae,te,w):w?fe=Lf(Y-(u-f),X,ae,te,w)||Lf(Y,X-2*(u-f),ae,te,w):fe=Lf(Y,X-(u-f),ae,te,w)||Lf(Y-2*(u-f),X,ae,te,w):fe=Lf(Y,X,ae,te,w),$&&fe?y="inside":(y="outside",j.remove(),j=null)}else y="inside";if(!j){se=Ua.ensureUniformFontSize(e,y==="outside"?F:I),j=x(t,_,se);var oe=j.attr("transform");if(j.attr("transform",""),J=$s.bBox(j.node()),ae=J.width,te=J.height,j.attr("transform",oe),ae<=0||te<=0){j.remove();return}}var ue=T.textangle,ce,ie;y==="outside"?(ie=T.constraintext==="both"||T.constraintext==="outside",ce=Wke(i,o,l,s,J,{isHorizontal:w,constrained:ie,angle:ue,zeroBarDir:b})):(ie=T.constraintext==="both"||T.constraintext==="inside",ce=eZ(i,o,l,s,J,{isHorizontal:w,constrained:ie,angle:ue,anchor:B,hasB:C,r:u,overhead:f})),ce.fontSize=se.size,zke(T.type==="histogram"?"bar":T.type,ce,m),M.transform=ce;var ge=$X(j,m,c,v);Ua.setTransormAndDisplay(ge,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 KX(e){return e==="auto"?0:e}function QX(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 eZ(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,d=(v+1)/2,p=1-d,m=i.hasB,y=i.r,x=i.overhead,T=n.width,w=n.height,b=Math.abs(r-e),_=Math.abs(a-t),k=b>2*Ln&&_>2*Ln?Ln:0;b-=2*k,_-=2*k;var M=KX(s);s==="auto"&&!(T<=b&&w<=_)&&(T>b||w>_)&&(!(T>_||w>b)||T<w!=b<_)&&(M+=90);var q=QX(n,M),C,D;if(y&&y-x>Ln){var P=jke(e,r,t,a,q,y,x,o,m);C=P.scale,D=P.pad}else C=1,l&&(C=Math.min(1,b/q.x,_/q.y)),D=0;var R=n.left*p+n.right*d,I=(n.top+n.bottom)/2,F=(e+Ln)*p+(r-Ln)*d,B=(t+a)/2,U=0,G=0;if(c||f){var V=(o?q.x:q.y)/2;y&&(f||m)&&(k+=D);var Y=o?Ho(e,r):Ho(t,a);o?c?(F=e+Y*k,U=-Y*V):(F=r-Y*k,U=Y*V):c?(B=t+Y*k,G=-Y*V):(B=a-Y*k,G=Y*V)}return{textX:R,textY:I,targetX:F,targetY:B,anchorX:U,anchorY:G,scale:C,rotate:M}}function jke(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,m,y,x,T,w;return n.y/n.x>=f/(u-d)?T=f/n.y:n.y/n.x<=(f-p)/u?T=u/n.x:!s&&l?(m=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),x=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,T=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):s?(m=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),x=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,T=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):(m=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),x=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,T=(-y+Math.sqrt(y*y-4*m*x))/(2*m)),T=Math.min(1,T),l?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*T)/2)*(c-(f-n.y*T)/2)))-o):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*T)/2)*(c-(u-n.x*T)/2)))-o),{scale:T,pad:w}}function Wke(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 m=KX(s),y=QX(n,m),x=(o?y.x:y.y)/2,T=(n.left+n.right)/2,w=(n.top+n.bottom)/2,b=(e+r)/2,_=(t+a)/2,k=0,M=0,q;return(o?e===r:t===a)&&i.zeroBarDir?q=i.zeroBarDir:q=o?Ho(r,e):Ho(t,a),o?(b=r-q*d,k=q*x):(_=a+q*d,M=-q*x),{textX:T,textY:w,targetX:b,targetY:_,anchorX:k,anchorY:M,scale:p,rotate:m}}function Xke(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=Jke(e,r,t,a,n):i.textinfo?l=Kke(r,t,a,n):l=Hv.getValue(i.text,t),Hv.coerceString(Fke,l)}function Zke(e,r){var t=Hv.getValue(e.textposition,r);return Hv.coerceEnumerated(Oke,t)}function $ke(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 Jke(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 m(k){return H2(v,v.c2l(k),!0).text}function y(k){return H2(p,p.c2l(k),!0).text}var x=r[t],T={};T.label=x.p,T.labelLabel=T[c+"Label"]=m(x.p);var w=Ua.castOption(i,x.i,"text");(w===0||w)&&(T.text=w),T.value=x.s,T.valueLabel=T[d+"Label"]=y(x.s);var b={};Bke(b,i,x.i),(l||b.x===void 0)&&(b.x=f?T.value:T.label),(l||b.y===void 0)&&(b.y=f?T.label:T.value),(l||b.xLabel===void 0)&&(b.xLabel=f?T.valueLabel:T.labelLabel),(l||b.yLabel===void 0)&&(b.yLabel=f?T.labelLabel:T.valueLabel),s&&(T.delta=+x.rawS||x.s,T.deltaLabel=y(T.delta),T.final=x.v,T.finalLabel=y(T.final),T.initial=T.final-T.delta,T.initialLabel=y(T.initial)),u&&(T.value=x.s,T.valueLabel=y(T.value),T.percentInitial=x.begR,T.percentInitialLabel=Ua.formatPercent(x.begR),T.percentPrevious=x.difR,T.percentPreviousLabel=Ua.formatPercent(x.difR),T.percentTotal=x.sumR,T.percenTotalLabel=Ua.formatPercent(x.sumR));var _=Ua.castOption(i,x.i,"customdata");return _&&(T.customdata=_),Ua.texttemplateString({data:[b,T,i._meta],fallback:i.texttemplatefallback,labels:T,locale:e._d3locale,template:o})}function Kke(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 H2(k,_,!0).text}function u(_){var k=i?t:a;return H2(k,+_,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,m=function(_){return v.indexOf(_)!==-1};if(m("label")&&d.push(s(e[r].p)),m("text")&&(p=Ua.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var y=+c.rawS||c.s,x=c.v,T=x-y;m("initial")&&d.push(u(T)),m("delta")&&d.push(u(y)),m("final")&&d.push(u(x))}if(l){m("value")&&d.push(u(c.s));var w=0;m("percent initial")&&w++,m("percent previous")&&w++,m("percent total")&&w++;var b=w>1;m("percent initial")&&(p=Ua.formatPercent(c.begR),b&&(p+=" of initial"),d.push(p)),m("percent previous")&&(p=Ua.formatPercent(c.difR),b&&(p+=" of previous"),d.push(p)),m("percent total")&&(p=Ua.formatPercent(c.sumR),b&&(p+=" of total"),d.push(p))}return d.join("<br>")}rZ.exports={plot:Yke,toMoveInsideBar:eZ}});var j8=N((EXe,iZ)=>{"use strict";var Xd=Fn(),Qke=Tr(),tZ=Sr(),eSe=ke().fillText,rSe=F2().getLineWidth,V8=Gr().hoverLabelText,tSe=Gt().BADNUM;function aSe(e,r,t,a,n){var i=aZ(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=nZ(l,s),Qke.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function aZ(e,r,t,a,n){var i=e.cd,o=i[0].trace,l=i[0].t,s=a==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,d,p,m,y,x,T;o.orientation==="h"?(v=t,d=r,p="y",m="x",y=B,x=R):(v=r,d=t,p="x",m="y",x=B,y=R);var w=o[p+"period"],b=s||w;function _($){return M($,-1)}function k($){return M($,1)}function M($,fe){var oe=$.w;return $[p]+fe*oe/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)},D=s?k:w?function($){return $.p+q($)/2}:function($){return Math.max(k($),$.p+l.bardelta/2)};function P($,fe,oe){return n.finiteRange&&(oe=0),Xd.inbox($-v,fe-v,oe+Math.min(1,Math.abs(fe-$)/T)-1)}function R($){return P(C($),D($),f)}function I($){return P(_($),k($),c)}function F($){var fe=$[m];if(u){var oe=Math.abs($.rawS)||0;d>0?fe+=oe:d<0&&(fe-=oe)}return fe}function B($){var fe=d,oe=$.b,ue=F($);return Xd.inbox(oe-fe,ue-fe,f+(ue-fe)/(ue-oe)-1)}function U($){var fe=d,oe=$.b,ue=F($);return Xd.inbox(oe-fe,ue-fe,c+(ue-fe)/(ue-oe)-1)}var G=e[p+"a"],V=e[m+"a"];T=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function Y($){return(y($)+x($))/2}var X=Xd.getDistanceFunction(a,y,x,Y);if(Xd.getClosest(i,X,e),e.index!==!1&&i[e.index].p!==tSe){b||(C=function($){return Math.min(_($),$.p-l.bargroupwidth/2)},D=function($){return Math.max(k($),$.p+l.bargroupwidth/2)});var j=e.index,J=i[j],ae=o.base?J.b+J.s:J.s;e[m+"0"]=e[m+"1"]=V.c2p(J[m],!0),e[m+"LabelVal"]=ae;var te=l.extents[l.extents.round(J.p)];e[p+"0"]=G.c2p(s?C(J):te[0],!0),e[p+"1"]=G.c2p(s?D(J):te[1],!0);var se=J.orig_p!==void 0;return e[p+"LabelVal"]=se?J.orig_p:J.p,e.labelLabel=V8(G,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=V8(V,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=V8(V,J.b,o[m+"hoverformat"]),e.spikeDistance=(U(J)+I(J))/2,e[p+"Spike"]=G.c2p(J.p,!0),eSe(J,o,e),e.hovertemplate=o.hovertemplate,e}}function nZ(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=rSe(e,r);if(tZ.opacity(t))return t;if(tZ.opacity(a)&&n)return a}iZ.exports={hoverPoints:aSe,hoverOnBars:aZ,getTraceColor:nZ}});var lZ=N((DXe,oZ)=>{"use strict";oZ.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=N((PXe,sZ)=>{"use strict";sZ.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:nSe(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 nSe(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 fZ=N((RXe,uZ)=>{"use strict";uZ.exports={attributes:kf(),layoutAttributes:z2(),supplyDefaults:Sf().supplyDefaults,crossTraceDefaults:Sf().crossTraceDefaults,supplyLayoutDefaults:O8(),calc:PX(),crossTraceCalc:$g().crossTraceCalc,colorbar:Ed(),arraysToCalcdata:I2(),plot:Y8().plot,style:Bv().style,styleOnSelect:Bv().styleOnSelect,hoverPoints:j8().hoverPoints,eventData:lZ(),selectPoints:W8(),moduleType:"trace",name:"bar",basePlotModule:Qi(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var vZ=N((zXe,cZ)=>{"use strict";cZ.exports=fZ()});var U2=N((NXe,mZ)=>{"use strict";var iSe=mg(),to=Vi(),hZ=kf(),oSe=Ei(),dZ=ko().axisHoverFormat,{hovertemplateAttrs:lSe,templatefallbackAttrs:sSe}=fi(),Jl=Mt().extendFlat,Uv=to.marker,pZ=Uv.line;mZ.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:dZ("x"),yhoverformat:dZ("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({},Uv.symbol,{arrayOk:!1,editType:"plot"}),opacity:Jl({},Uv.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Jl({},Uv.angle,{arrayOk:!1,editType:"calc"}),size:Jl({},Uv.size,{arrayOk:!1,editType:"calc"}),color:Jl({},Uv.color,{arrayOk:!1,editType:"style"}),line:{color:Jl({},pZ.color,{arrayOk:!1,dflt:oSe.defaultLine,editType:"style"}),width:Jl({},pZ.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:iSe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:hZ.offsetgroup,alignmentgroup:hZ.alignmentgroup,selected:{marker:to.selected.marker,editType:"style"},unselected:{marker:to.unselected.marker,editType:"style"},text:Jl({},to.text,{}),hovertext:Jl({},to.hovertext,{}),hovertemplate:lSe({}),hovertemplatefallback:sSe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:to.zorder}});var G2=N((IXe,yZ)=>{"use strict";yZ.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 $d=N((FXe,_Z)=>{"use strict";var ao=ke(),uSe=Tr(),fSe=Sr(),cSe=gv(),vSe=Ad(),gZ=sy(),Zd=U2();function hSe(e,r,t,a){function n(p,m){return ao.coerce(e,r,Zd,p,m)}if(bZ(e,r,n,a),r.visible!==!1){cSe(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",fSe.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,Zd.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),xZ(e,r,n,{prefix:"box"}),n("zorder")}}function bZ(e,r,t,a){function n(D){var P=0;return D&&D.length&&(P+=1,ao.isArrayOrTypedArray(D[0])&&D[0].length&&(P+=1)),P}function i(D){return ao.validate(e[D],Zd[D])}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),m=d&&ao.minRowLength(l),y=a.calendar,x={autotypenumbers:a.autotypenumbers},T,w;if(r._hasPreCompStats)switch(String(d)+String(v)){case"00":var b=i("x0")||i("dx"),_=i("y0")||i("dy");_&&!b?T="h":T="v",w=s;break;case"10":T="v",w=Math.min(s,m);break;case"20":T="h",w=Math.min(s,l.length);break;case"01":T="h",w=Math.min(s,p);break;case"02":T="v",w=Math.min(s,o.length);break;case"12":T="v",w=Math.min(s,m,o.length);break;case"21":T="h",w=Math.min(s,l.length,p);break;case"11":w=0;break;case"22":var k=!1,M;for(M=0;M<l.length;M++)if(gZ(l[M],y,x)==="category"){k=!0;break}if(k)T="v",w=Math.min(s,m,o.length);else{for(M=0;M<o.length;M++)if(gZ(o[M],y,x)==="category"){k=!0;break}k?(T="h",w=Math.min(s,l.length,p)):(T="v",w=Math.min(s,m,o.length))}break}else v>0?(T="v",d>0?w=Math.min(m,p):w=Math.min(p)):d>0?(T="h",w=Math.min(m)):w=0;if(!w){r.visible=!1;return}r._length=w;var q=t("orientation",T);r._hasPreCompStats?q==="v"&&d===0?(t("x0",0),t("dx",1)):q==="h"&&v===0&&(t("y0",0),t("dy",1)):q==="v"&&d===0?t("x0"):q==="h"&&v===0&&t("y0");var C=uSe.getComponentMethod("calendars","handleTraceDefaults");C(e,r,["x","y"],a)}function xZ(e,r,t,a){var n=a.prefix,i=ao.coerce2(e,r,Zd,"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 dSe(e,r){var t,a;function n(s){return ao.coerce(a._input,a,Zd,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"&&vSe(t,a,r,n,l)}}}_Z.exports={supplyDefaults:hSe,crossTraceDefaults:dSe,handleSampleDefaults:bZ,handlePointsDefaults:xZ}});var X8=N((OXe,TZ)=>{"use strict";var pSe=Tr(),mSe=ke(),ySe=G2();function wZ(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l<t.length;l++){var s=t[l];if(pSe.traceIs(s,i)){o=!0;break}}o&&(a(n+"mode"),a(n+"gap"),a(n+"groupgap"))}function gSe(e,r,t){function a(n,i){return mSe.coerce(e,r,ySe,n,i)}wZ(e,r,t,a,"box")}TZ.exports={supplyLayoutDefaults:gSe,_supply:wZ}});var J8=N((BXe,DZ)=>{"use strict";var $8=Fr(),Y2=Gr(),bSe=xv(),ya=ke(),Mi=Gt().BADNUM,Kl=ya._;DZ.exports=function(r,t){var a=r._fullLayout,n=Y2.getFromId(r,t.xaxis||"x"),i=Y2.getFromId(r,t.yaxis||"y"),o=[],l=t.type==="violin"?"_numViolins":"_numBoxes",s,u,f,c,v,d,p;t.orientation==="h"?(f=n,c="x",v=i,d="y",p=!!t.yperiodalignment):(f=i,c="y",v=n,d="x",p=!!t.xperiodalignment);var m=xSe(t,d,v,a[l]),y=m[0],x=m[1],T=ya.distinctVals(y,v),w=T.vals,b=T.minDiff/2,_,k,M,q,C,D,P=(t.boxpoints||t.points)==="all"?ya.identity:function(Re){return Re.v<_.lf||Re.v>_.uf};if(t._hasPreCompStats){var R=t[c],I=function(Re){return f.d2c((t[Re]||[])[s])},F=1/0,B=-1/0;for(s=0;s<t._length;s++){var U=y[s];if($8(U)){if(_={},_.pos=_[d]=U,p&&x&&(_.orig_p=x[s]),_.q1=I("q1"),_.med=I("median"),_.q3=I("q3"),k=[],R&&ya.isArrayOrTypedArray(R[s]))for(u=0;u<R[s].length;u++)D=f.d2c(R[s][u]),D!==Mi&&(C={v:D,i:[s,u]},MZ(C,t,[s,u]),k.push(C));if(_.pts=k.sort(AZ),M=_[c]=k.map(kZ),q=M.length,_.med!==Mi&&_.q1!==Mi&&_.q3!==Mi&&_.med>=_.q1&&_.q3>=_.med){var G=I("lowerfence");_.lf=G!==Mi&&G<=_.q1?G:SZ(_,M,q);var V=I("upperfence");_.uf=V!==Mi&&V>=_.q3?V:qZ(_,M,q);var Y=I("mean");_.mean=Y!==Mi?Y:q?ya.mean(M,q):(_.q1+_.q3)/2;var X=I("sd");_.sd=Y!==Mi&&X>=0?X:q?ya.stdev(M,q,_.mean):_.q3-_.q1,_.lo=LZ(_),_.uo=CZ(_);var j=I("notchspan");j=j!==Mi&&j>0?j:EZ(_,q),_.ln=_.med-j,_.un=_.med+j;var J=_.lf,ae=_.uf;t.boxpoints&&M.length&&(J=Math.min(J,M[0]),ae=Math.max(ae,M[q-1])),t.notched&&(J=Math.min(J,_.ln),ae=Math.max(ae,_.un)),_.min=J,_.max=ae}else{ya.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+_.q1,"median = "+_.med,"q3 = "+_.q3].join(`
`));var te;_.med!==Mi?te=_.med:_.q1!==Mi?_.q3!==Mi?te=(_.q1+_.q3)/2:te=_.q1:_.q3!==Mi?te=_.q3:te=0,_.med=te,_.q1=_.q3=te,_.lf=_.uf=te,_.mean=_.sd=te,_.ln=_.un=te,_.min=_.max=te}F=Math.min(F,_.min),B=Math.max(B,_.max),_.pts2=k.filter(P),o.push(_)}}t._extremes[f._id]=Y2.findExtremes(f,[F,B],{padded:!0})}else{var se=f.makeCalcdata(t,c),$=_Se(w,b),fe=w.length,oe=wSe(fe);for(s=0;s<t._length;s++)if(D=se[s],!!$8(D)){var ue=ya.findBin(y[s],$);ue>=0&&ue<fe&&(C={v:D,i:s},MZ(C,t,s),oe[ue].push(C))}var ce=1/0,ie=-1/0,ge=t.quartilemethod,Ce=ge==="exclusive",_e=ge==="inclusive";for(s=0;s<fe;s++)if(oe[s].length>0){if(_={},_.pos=_[d]=w[s],k=_.pts=oe[s].sort(AZ),M=_[c]=k.map(kZ),q=M.length,_.min=M[0],_.max=M[q-1],_.mean=ya.mean(M,q),_.sd=ya.stdev(M,q,_.mean)*t.sdmultiple,_.med=ya.interp(M,.5),q%2&&(Ce||_e)){var Ee,Ae;Ce?(Ee=M.slice(0,q/2),Ae=M.slice(q/2+1)):_e&&(Ee=M.slice(0,q/2+1),Ae=M.slice(q/2)),_.q1=ya.interp(Ee,.5),_.q3=ya.interp(Ae,.5)}else _.q1=ya.interp(M,.25),_.q3=ya.interp(M,.75);_.lf=SZ(_,M,q),_.uf=qZ(_,M,q),_.lo=LZ(_),_.uo=CZ(_);var Se=EZ(_,q);_.ln=_.med-Se,_.un=_.med+Se,ce=Math.min(ce,_.ln),ie=Math.max(ie,_.un),_.pts2=k.filter(P),o.push(_)}t.notched&&ya.isTypedArray(se)&&(se=Array.from(se)),t._extremes[f._id]=Y2.findExtremes(f,t.notched?se.concat([ce,ie]):se,{padded:!0})}return TSe(o,t),o.length>0?(o[0].t={num:a[l],dPos:b,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 xSe(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=bSe(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 _Se(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 wSe(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 TSe(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 AZ(e,r){return e.v-r.v}function kZ(e){return e.v}function SZ(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 qZ(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 LZ(e){return 4*e.q1-3*e.q3}function CZ(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=N((HXe,NZ)=>{"use strict";var PZ=Gr(),MSe=ke(),ASe=vf().getAxisGroup,RZ=["v","h"];function kSe(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i<RZ.length;i++){for(var o=RZ[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;PZ.minDtick(a,d.minDiff,d.vals[0],!0);var m=e==="violin"?"_numViolins":"_numBoxes",y=i[m],x=i[e+"mode"]==="group"&&y>1,T=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s<t.length;s++){f=n[t[s]];var b=f[0].trace,_=f[0].t,k=b.width,M=b.side,q,C,D,P;if(k)q=C=P=k/2,D=0;else if(q=p,x){var R=ASe(i,a._id)+b.orientation,I=i._alignmentOpts[R]||{},F=I[b.alignmentgroup]||{},B=Object.keys(F.offsetGroups||{}).length,U=B||y,G=B?b._offsetIndex:_.num;C=q*T*w/U,D=2*q*(-.5+(G+.5)/U)*T,P=q*T/U}else C=q*T*w,D=0,P=q;_.dPos=q,_.bPos=D,_.bdPos=C,_.wHover=P;var V,Y,X=D+C,j,J,ae,te,se,$,fe=!!k,oe=(b.boxpoints||b.points)&&v>0;if(M==="positive"?(V=q*(k?1:.5),j=X,Y=j=D):M==="negative"?(V=j=D,Y=q*(k?1:.5),J=X):(V=Y=q,j=J=X),oe){var ue=b.pointpos,ce=b.jitter,ie=b.marker.size/2,ge=0;ue+ce>=0&&(ge=X*(ue+ce),ge>V?(fe=!0,se=ie,ae=ge):ge>j&&(se=ie,ae=V)),ge<=V&&(ae=V);var Ce=0;ue-ce<=0&&(Ce=-X*(ue-ce),Ce>Y?(fe=!0,$=ie,te=Ce):Ce>J&&($=ie,te=Y)),Ce<=Y&&(te=Y)}else ae=V,te=Y;var _e=new Array(f.length);for(u=0;u<f.length;u++)_e[u]=f[u].pos;b._extremes[o]=PZ.findExtremes(a,_e,{padded:fe,vpadminus:te,vpadplus:ae,vpadLinearized:!0,ppadminus:{x:$,y:se}[l],ppadplus:{x:se,y:$}[l]})}}}NZ.exports={crossTraceCalc:kSe,setPositionOffset:zZ}});var Q8=N((UXe,HZ)=>{"use strict";var Gv=Dr(),Cf=ke(),SSe=Xr(),IZ=5,qSe=.01;function LSe(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=Gv.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),FZ(s,{pos:v,val:d},c,f,n),OZ(s,{x:i,y:o},c,f),BZ(s,{pos:v,val:d},c,f)})}function FZ(e,r,t,a,n){var i=t.orientation==="h",o=r.val,l=r.pos,s=!!l.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,m=p?1-2*t.notchwidth:1,y,x;Array.isArray(a.bdPos)?(y=a.bdPos[0],x=a.bdPos[1]):(y=a.bdPos,x=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 Gv.select(this).attr("d","M0,0Z");var b=l.c2l(w.pos+u,!0),_=l.l2p(b-y)+c,k=l.l2p(b+x)+c,M=s?(_+k)/2:l.l2p(b)+c,q=t.whiskerwidth,C=s?_*q+(1-q)*M:l.l2p(b-f)+c,D=s?k*q+(1-q)*M:l.l2p(b+f)+c,P=l.l2p(b-y*m)+c,R=l.l2p(b+x*m)+c,I=t.sizemode==="sd",F=o.c2p(I?w.mean-w.sd:w.q1,!0),B=I?o.c2p(w.mean+w.sd,!0):o.c2p(w.q3,!0),U=Cf.constrain(I?o.c2p(w.mean,!0):o.c2p(w.med,!0),Math.min(F,B)+1,Math.max(F,B)-1),G=w.lf===void 0||t.boxpoints===!1||I,V=o.c2p(G?w.min:w.lf,!0),Y=o.c2p(G?w.max:w.uf,!0),X=o.c2p(w.ln,!0),j=o.c2p(w.un,!0);i?Gv.select(this).attr("d","M"+U+","+P+"V"+R+"M"+F+","+_+"V"+k+(p?"H"+X+"L"+U+","+R+"L"+j+","+k:"")+"H"+B+"V"+_+(p?"H"+j+"L"+U+","+P+"L"+X+","+_:"")+"Z"+(d?"M"+F+","+M+"H"+V+"M"+B+","+M+"H"+Y+(v===0?"":"M"+V+","+C+"V"+D+"M"+Y+","+C+"V"+D):"")):Gv.select(this).attr("d","M"+P+","+U+"H"+R+"M"+_+","+F+"H"+k+(p?"V"+X+"L"+R+","+U+"L"+k+","+j:"")+"V"+B+"H"+_+(p?"V"+j+"L"+P+","+U+"L"+_+","+X:"")+"Z"+(d?"M"+M+","+F+"V"+V+"M"+M+","+B+"V"+Y+(v===0?"":"M"+C+","+V+"H"+D+"M"+C+","+Y+"H"+D):""))})}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,m=Math.max((v.max-v.min)/10,v.q3-v.q1),y=m*1e-9,x=m*qSe,T=[],w=0,b;if(t.jitter){if(m===0)for(w=1,T=new Array(p.length),d=0;d<p.length;d++)T[d]=1;else for(d=0;d<p.length;d++){var _=Math.max(0,d-IZ),k=p[_].v,M=Math.min(p.length-1,d+IZ),q=p[M].v;s!=="all"&&(p[d].v<v.lf?q=Math.min(q,v.lf):k=Math.max(k,v.uf));var C=Math.sqrt(x*(M-_)/(q-k+y))||0;C=Cf.constrain(Math.abs(C),0,1),T.push(C),w=Math.max(C,w)}b=t.jitter*2/(w||1)}for(d=0;d<p.length;d++){var D=p[d],P=D.v,R=t.jitter?b*T[d]*(Cf.pseudoRandom()-.5):0,I=v.pos+l+o*(t.pointpos+R);t.orientation==="h"?(D.y=I,D.x=P):(D.x=I,D.y=P),s==="suspectedoutliers"&&P<v.uo&&P>v.lo&&(D.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(SSe.translatePoints,n,i)}function BZ(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),m=i.l2p(p-f)+s,y=i.l2p(p+c)+s,x=o?(m+y)/2:i.l2p(p)+s,T=n.c2p(d.mean,!0),w=n.c2p(d.mean-d.sd,!0),b=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?Gv.select(this).attr("d","M"+T+","+m+"V"+y+(u==="sd"?"m0,0L"+w+","+x+"L"+T+","+m+"L"+b+","+x+"Z":"")):Gv.select(this).attr("d","M"+m+","+T+"H"+y+(u==="sd"?"m0,0L"+x+","+w+"L"+m+","+T+"L"+x+","+b+"Z":""))})}HZ.exports={plot:LSe,plotBoxAndWhiskers:FZ,plotPoints:OZ,plotBoxMean:BZ}});var a9=N((GXe,UZ)=>{"use strict";var e9=Dr(),r9=Sr(),t9=Xr();function CSe(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)}UZ.exports={style:CSe,styleOnSelect:ESe}});var i9=N((YXe,jZ)=>{"use strict";var DSe=Gr(),n9=ke(),Js=Fn(),GZ=Sr(),PSe=n9.fillText;function RSe(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(YZ(e,r,t,a))),o.indexOf("points")!==-1&&(s=VZ(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function YZ(e,r,t,a){var n=e.cd,i=e.xa,o=e.ya,l=n[0].trace,s=n[0].t,u=l.type==="violin",f,c,v,d,p,m,y,x,T,w,b,_=s.bdPos,k,M,q=s.wHover,C=function(ie){return v.c2l(ie.pos)+s.bPos-v.c2l(m)};u&&l.side!=="both"?(l.side==="positive"&&(T=function(ie){var ge=C(ie);return Js.inbox(ge,ge+q,w)},k=_,M=0),l.side==="negative"&&(T=function(ie){var ge=C(ie);return Js.inbox(ge-q,ge,w)},k=0,M=_)):(T=function(ie){var ge=C(ie);return Js.inbox(ge-q,ge+q,w)},k=M=_);var D;u?D=function(ie){return Js.inbox(ie.span[0]-p,ie.span[1]-p,w)}:D=function(ie){return Js.inbox(ie.min-p,ie.max-p,w)},l.orientation==="h"?(p=r,m=t,y=D,x=T,f="y",v=o,c="x",d=i):(p=t,m=r,y=T,x=D,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,b=e.maxSpikeDistance-P;function R(ie){return(y(ie)+x(ie))/2}var I=Js.getDistanceFunction(a,y,x,R);if(Js.getClosest(n,I,e),e.index===!1)return[];var F=n[e.index],B=l.line.color,U=(l.marker||{}).color;GZ.opacity(B)&&l.line.width?e.color=B:GZ.opacity(U)&&l.boxpoints?e.color=U:e.color=l.fillcolor,e[f+"0"]=v.c2p(F.pos+s.bPos-M,!0),e[f+"1"]=v.c2p(F.pos+s.bPos+k,!0),e[f+"LabelVal"]=F.orig_p!==void 0?F.orig_p:F.pos;var G=f+"Spike";e.spikeDistance=R(F)*b/w,e[G]=v.c2p(F.pos,!0);var V=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,Y=l.boxpoints||l.points,X=Y&&V?["max","uf","q3","med","mean","q1","lf","min"]:Y&&!V?["max","uf","q3","med","q1","lf","min"]:!Y&&V?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],j=d.range[1]<d.range[0];l.orientation===(j?"v":"h")&&X.reverse();for(var J=e.spikeDistance,ae=e[G],te=[],se=0;se<X.length;se++){var $=X[se];if($ in F){var fe=F[$],oe=d.c2p(fe,!0),ue=n9.extendFlat({},e);ue.attr=$,ue[c+"0"]=ue[c+"1"]=oe,ue[c+"LabelVal"]=fe,ue[c+"Label"]=(s.labels?s.labels[$]+" ":"")+DSe.hoverLabelText(d,fe,l[c+"hoverformat"]),ue.hoverOnBox=!0,$==="mean"&&"sd"in F&&(l.boxmean==="sd"||l.sizemode==="sd")&&(ue[c+"err"]=F.sd),ue.hovertemplate=!1,te.push(ue)}}e.name="",e.spikeDistance=void 0,e[G]=void 0;for(var ce=0;ce<te.length;ce++)te[ce].attr!=="med"?(te[ce].name="",te[ce].spikeDistance=void 0,te[ce][G]=void 0):(te[ce].spikeDistance=J,te[ce][G]=ae);return te}function VZ(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(D){var P=Math.max(3,D.mrc||0);return Math.max(Math.abs(n.c2p(D.x)-l)-P,1-3/P)},c=function(D){var P=Math.max(3,D.mrc||0);return Math.max(Math.abs(i.c2p(D.y)-s)-P,1-3/P)},v=Js.quadrature(f,c),d=!1,p,m,y=0;y<a.length;y++){p=a[y];for(var x=0;x<(p.pts||[]).length;x++){m=p.pts[x];var T=v(m);T<=e.distance&&(e.distance=T,d=[y,x])}}if(!d)return!1;p=a[d[0]],m=p.pts[d[1]];var w=n.c2p(m.x,!0),b=i.c2p(m.y,!0),_=m.mrc||1;u=n9.extendFlat({},e,{index:m.i,color:(o.marker||{}).color,name:o.name,x0:w-_,x1:w+_,y0:b-_,y1:b+_,spikeDistance:e.distance,hovertemplate:o.hovertemplate});var k=p.orig_p,M=k!==void 0?k:p.pos,q;o.orientation==="h"?(q=i,u.xLabelVal=m.x,u.yLabelVal=M):(q=n,u.xLabelVal=M,u.yLabelVal=m.y);var C=q._id.charAt(0);return u[C+"Spike"]=q.c2p(p.pos,!0),PSe(m,o,u),u}jZ.exports={hoverPoints:RSe,hoverOnBoxes:YZ,hoverOnPoints:VZ}});var XZ=N((VXe,WZ)=>{"use strict";WZ.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=N((jXe,ZZ)=>{"use strict";ZZ.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 JZ=N((WXe,$Z)=>{"use strict";$Z.exports={attributes:U2(),layoutAttributes:G2(),supplyDefaults:$d().supplyDefaults,crossTraceDefaults:$d().crossTraceDefaults,supplyLayoutDefaults:X8().supplyLayoutDefaults,calc:J8(),crossTraceCalc:K8().crossTraceCalc,plot:Q8().plot,style:a9().style,styleOnSelect:a9().styleOnSelect,hoverPoints:i9().hoverPoints,eventData:XZ(),selectPoints:o9(),moduleType:"trace",name:"box",basePlotModule:Qi(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var QZ=N((XXe,KZ)=>{"use strict";KZ.exports=JZ()});var Jd=N((ZXe,r$)=>{"use strict";var zSe=el(),{extendFlat:ti}=Mt(),NSe=Nn(),{axisHoverFormat:l9}=ko(),ISe=ka(),{hovertemplateAttrs:FSe,templatefallbackAttrs:e$,texttemplateAttrs:OSe}=fi(),Ai=Vi();r$.exports=ti({z:{valType:"data_array",editType:"calc"},x:ti({},Ai.x,{impliedEdits:{xtype:"array"}}),x0:ti({},Ai.x0,{impliedEdits:{xtype:"scaled"}}),dx:ti({},Ai.dx,{impliedEdits:{xtype:"scaled"}}),y:ti({},Ai.y,{impliedEdits:{ytype:"array"}}),y0:ti({},Ai.y0,{impliedEdits:{ytype:"scaled"}}),dy:ti({},Ai.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:ti({},Ai.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:ti({},Ai.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:ti({},Ai.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:ti({},Ai.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:ti({},Ai.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:ti({},Ai.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:FSe(),hovertemplatefallback:e$(),texttemplate:OSe({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:e$({editType:"plot"}),textfont:ISe({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:ti({},NSe.showlegend,{dflt:!1}),zorder:Ai.zorder},zSe("",{cLetter:"z",autoColorDflt:!1}))});var s9=N(($Xe,a$)=>{"use strict";var BSe=Fr(),V2=ke(),HSe=Tr();a$.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(V2.isArray1D(l)){s=a(i),u=a(o);var f=V2.minRowLength(s),c=V2.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=t$(i,a),u=t$(o,a),!USe(l))return 0;a("transpose"),t._length=null}var v=HSe.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function t$(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function USe(e){for(var r=!0,t=!1,a=!1,n,i=0;i<e.length;i++){if(n=e[i],!V2.isArrayOrTypedArray(n)){r=!1;break}n.length>0&&(t=!0);for(var o=0;o<n.length;o++)if(BSe(n[o])){a=!0;break}}return r&&t&&a}});var Kd=N((JXe,i$)=>{"use strict";var n$=ke();i$.exports=function(r,t){r("texttemplate"),r("texttemplatefallback");var a=n$.extendFlat({},t.font,{color:"auto",size:"auto"});n$.coerceFont(r,"textfont",a)}});var u9=N((KXe,o$)=>{"use strict";o$.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var u$=N((QXe,s$)=>{"use strict";var l$=ke(),GSe=s9(),YSe=Kd(),VSe=gv(),jSe=u9(),WSe=Ol(),XSe=Jd();s$.exports=function(r,t,a,n){function i(l,s){return l$.coerce(r,t,XSe,l,s)}var o=GSe(r,t,i,n);if(!o){t.visible=!1;return}VSe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),YSe(i,n),jSe(r,t,i,n),i("hoverongaps"),i("connectgaps",l$.isArray1D(t.z)&&t.zsmooth!==!1),WSe(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var f9=N((eZe,f$)=>{"use strict";var Yv=Fr();f$.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Yv(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Yv(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Yv(n))if(n=Number(n),Yv(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(Yv(n))if(n=Number(n),Yv(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=N((rZe,c$)=>{"use strict";c$.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=N((tZe,v$)=>{"use strict";v$.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=N((aZe,x$)=>{"use strict";var Vv=Gt(),Ef=Vv.ONEAVGYEAR,h$=Vv.ONEAVGMONTH,W2=Vv.ONEDAY,d$=Vv.ONEHOUR,p$=Vv.ONEMIN,m$=Vv.ONESEC,y$=Gr().tickIncrement;x$.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(j2(u+l,u+s,n,i),j2(f+l,f+s,n,i)),v=Math.min(j2(u+o,u+l,n,i),j2(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>W2){var m=d===Ef?1:6,y=d===Ef?"M12":"M1";return function(x,T){var w=n.c2d(x,Ef,i),b=w.indexOf("-",m);b>0&&(w=w.slice(0,b));var _=n.d2c(w,0,i);if(_<x){var k=y$(_,y,!1,i);(_+k)/2<x+r&&(_=k)}return T&&p?y$(_,y,!0,i):_}}return function(x,T){var w=d*Math.round(x/d);return w+d/10<x&&w+d*.9<x+r&&(w+=d),T&&p&&(w-=d),w}};function j2(e,r,t,a){if(e*r<=0)return 1/0;for(var n=Math.abs(r-e),i=t.type==="date",o=g$(n,i),l=0;l<10;l++){var s=g$(o*80,i);if(o===s)break;if(ZSe(s,e,r,i,t,a))o=s;else break}return o}function g$(e,r){return r&&e>m$?e>W2?e>Ef*1.1?Ef:e>h$*1.1?h$:W2:e>d$?d$:e>p$?p$:m$:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function ZSe(e,r,t,a,n,i){if(a&&e>W2){var o=b$(r,n,i),l=b$(t,n,i),s=e===Ef?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function b$(e,r,t){var a=r.c2d(e,Ef,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var m9=N((nZe,A$)=>{"use strict";var d9=Fr(),Cn=ke(),_$=Tr(),no=Gr(),{hasColorscale:w$}=hi(),T$=Wc(),$Se=I2(),M$=f9(),JSe=c9(),KSe=v9(),QSe=h9();function eqe(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",m=[],y=p?m:v,x=[],T=[],w=[],b=0,_=r.histnorm,k=r.histfunc,M=_.indexOf("density")!==-1,q,C,D;u.enabled&&M&&(_=_.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,I=M$.count,F=JSe[_],B=!1,U=function(ge){return i.r2c(ge,0,s)},G;for(Cn.isArrayOrTypedArray(r[l])&&k!=="count"&&(G=r[l],B=k==="avg",I=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([]),m.push(f),M&&x.push(1/(q-f)),B&&T.push(0),!(q<=f));)f=q;m.push(f),!p&&i.type==="date"&&(y={start:U(y.start),end:U(y.end),size:y.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var V=r["_"+o+"bingroup"],Y={leftGap:1/0,rightGap:1/0};V&&(e._fullLayout._roundFnOpts[V]||(e._fullLayout._roundFnOpts[V]=Y),Y=e._fullLayout._roundFnOpts[V]);var X=a.length,j=!0,J=Y.leftGap,ae=Y.rightGap,te={};for(f=0;f<d.length;f++){var se=d[f];D=Cn.findBin(se,y),D>=0&&D<X&&(b+=I(D,f,a,G,T),j&&w[D].length&&se!==d[w[D][0]]&&(j=!1),w[D].push(f),te[f]=D,J=Math.min(J,se-m[D]),ae=Math.min(ae,m[D+1]-se))}Y.leftGap=J,Y.rightGap=ae;var $;j||($=function(ge,Ce){return function(){var _e=e._fullLayout._roundFnOpts[V];return QSe(_e.leftGap,_e.rightGap,m,i,s)(ge,Ce)}}),B&&(b=KSe(a,T)),F&&F(a,b,x),u.enabled&&aqe(a,u.direction,u.currentbin);var fe=Math.min(t.length,a.length),oe=[],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 ie={p:t[f],s:a[f],b:0};u.enabled||(ie.pts=w[f],j?ie.ph0=ie.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,ie.ph0=$(m[f]),ie.ph1=$(m[f+1],!0))),oe.push(ie)}return oe.length===1&&(oe[0].width1=no.tickIncrement(oe[0].p,v.size,!1,s)-oe[0].p),w$(r,"marker")&&T$(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),w$(r,"marker.line")&&T$(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),$Se(oe,r),Cn.isArrayOrTypedArray(r.selectedpoints)&&Cn.tagSelected(oe,r,te),oe}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,m,y,x=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 b($,fe,oe){fe[$+"Found"]?(fe[$]=w(fe[$]),fe[$]===null&&(fe[$]=oe[$])):(m[$]=fe[$]=oe[$],Cn.nestedProperty(c[0],i+"."+$).set(oe[$]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var _=[],k=!0,M=!1,q=!1;for(f=0;f<c.length;f++)if(v=c[f],v.visible){var C=s.dirs[f];p=v["_"+C+"pos0"]=t.makeCalcdata(v,C),_=Cn.concat(_,p),delete v["_"+a+"autoBinFinished"],r.visible===!0&&(k?k=!1:(delete v._autoBin,v["_"+a+"autoBinFinished"]=1),_$.traceIs(v,"2dMap")&&(M=!0),v.type==="histogram2dcontour"&&(q=!0))}d=c[0][a+"calendar"];var D=no.autoBin(_,t,s.nbins,M,d,s.sizeFound&&s.size),P=c[0]._autoBin={};if(m=P[s.dirs[0]]={},q&&(s.size||(D.start=T(no.tickIncrement(x(D.start),D.size,!0,d))),s.end===void 0&&(D.end=T(no.tickIncrement(x(D.end),D.size,!1,d)))),u&&!_$.traceIs(r,"2dMap")&&D._dataSpan===0&&t.type!=="category"&&t.type!=="multicategory"&&r.bingroup===""&&!((se=r._input[i])!=null&&se.size)){if(n)return[D,p,!0];D=rqe(e,r,t,a,i)}y=v.cumulative||{},y.enabled&&y.currentbin!=="include"&&(y.direction==="decreasing"?D.start=T(no.tickIncrement(x(D.start),D.size,!0,d)):D.end=T(no.tickIncrement(x(D.end),D.size,!1,d))),s.size=D.size,s.sizeFound||(m.size=D.size,Cn.nestedProperty(c[0],i+".size").set(D.size)),b("start",s,D),b("end",s,D)}p=r["_"+a+"pos0"],delete r["_"+a+"pos0"];var R=r._input[i]||{},I=Cn.extendFlat({},s),F=s.start,B=t.r2l(R.start),U=B!==void 0;if((s.startFound||U)&&B!==t.r2l(F)){var G=U?B:Cn.aggNums(Math.min,null,p),V={type:t.type==="category"||t.type==="multicategory"?"linear":t.type,r2l:t.r2l,dtick:s.size,tick0:F,calendar:d,range:[G,no.tickIncrement(G,s.size,!1,d)].map(t.l2r)},Y=no.tickFirst(V);Y>t.r2l(G)&&(Y=no.tickIncrement(Y,s.size,!0,d)),I.start=t.l2r(Y),U||Cn.nestedProperty(r,i+".start").set(I.start)}var X=s.end,j=t.r2l(R.end),J=j!==void 0;if((s.endFound||J)&&j!==t.r2l(X)){var ae=J?j:Cn.aggNums(Math.max,null,p);I.end=t.l2r(ae),J||Cn.nestedProperty(r,i+".start").set(I.end)}var te="autobin"+a;return r._input[te]===!1&&(r._input[i]=Cn.extendFlat({},r[i]||{}),delete r._input[te],delete r[te]),[I,p]}function rqe(e,r,t,a,n){var i=e._fullLayout,o=tqe(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],m=d[2];c["_"+a+"autoBinFinished"]=1,c["_"+a+"pos0"]=d[1],m?u.push(c):s=Math.min(s,p.size)}var y=new Array(u.length);for(f=0;f<u.length;f++)for(var x=u[f]["_"+a+"pos0"],T=0;T<x.length;T++)if(x[T]!==void 0){y[f]=x[T];break}for(isFinite(s)||(s=Cn.distinctVals(y).minDiff),f=0;f<u.length;f++){c=u[f];var w=c[a+"calendar"],b={start:t.c2r(y[f]-s/2,0,w),end:t.c2r(y[f]+s/2,0,w),size:s};c._input[n]=c[n]=b,v=i._histogramBinOpts[c["_"+a+"bingroup"]],v&&Cn.extendFlat(v,b)}return r[n]}function tqe(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 aqe(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())}}A$.exports={calc:eqe,calcAllAutoBins:p9}});var P$=N((iZe,D$)=>{"use strict";var k$=ke(),jv=Gr(),S$=f9(),nqe=c9(),iqe=v9(),oqe=h9(),q$=m9().calcAllAutoBins;D$.exports=function(r,t){var a=jv.getFromId(r,t.xaxis),n=jv.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,m=q$(r,t,a,"x"),y=m[0],x=m[1],T=q$(r,t,n,"y"),w=T[0],b=T[1],_=t._length;x.length>_&&x.splice(_,x.length-_),b.length>_&&b.splice(_,b.length-_);var k=[],M=[],q=[],C=typeof y.size=="string",D=typeof w.size=="string",P=[],R=[],I=C?P:y,F=D?R:w,B=0,U=[],G=[],V=t.histnorm,Y=t.histfunc,X=V.indexOf("density")!==-1,j=Y==="max"||Y==="min",J=j?null:0,ae=S$.count,te=nqe[V],se=!1,$=[],fe=[],oe="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";oe&&Y!=="count"&&(se=Y==="avg",ae=S$[Y]);var ue=y.size,ce=l(y.start),ie=l(y.end)+(ce-jv.tickIncrement(ce,ue,!1,i))/1e6;for(c=ce;c<ie;c=jv.tickIncrement(c,ue,!1,i))M.push(J),P.push(c),se&&q.push(0);P.push(c);var ge=M.length,Ce=(c-ce)/ge,_e=u(ce+Ce/2),Ee=w.size,Ae=s(w.start),Se=s(w.end)+(Ae-jv.tickIncrement(Ae,Ee,!1,o))/1e6;for(c=Ae;c<Se;c=jv.tickIncrement(c,Ee,!1,o)){k.push(M.slice()),R.push(c);var Re=new Array(ge);for(v=0;v<ge;v++)Re[v]=[];G.push(Re),se&&U.push(q.slice())}R.push(c);var Ie=k.length,Le=(c-Ae)/Ie,Ze=f(Ae+Le/2);X&&($=L$(M.length,I,Ce,C),fe=L$(k.length,F,Le,D)),!C&&a.type==="date"&&(I=C$(l,I)),!D&&n.type==="date"&&(F=C$(s,F));var Je=!0,We=!0,qe=new Array(ge),ze=new Array(Ie),Qe=1/0,re=1/0,be=1/0,Ge=1/0;for(c=0;c<_;c++){var cr=x[c],Pe=b[c];d=k$.findBin(cr,I),p=k$.findBin(Pe,F),d>=0&&d<ge&&p>=0&&p<Ie&&(B+=ae(d,c,k[p],oe,U[p]),G[p][d].push(c),Je&&(qe[d]===void 0?qe[d]=cr:qe[d]!==cr&&(Je=!1)),We&&(ze[p]===void 0?ze[p]=Pe:ze[p]!==Pe&&(We=!1)),Qe=Math.min(Qe,cr-P[d]),re=Math.min(re,P[d+1]-cr),be=Math.min(be,Pe-R[p]),Ge=Math.min(Ge,R[p+1]-Pe))}if(se)for(p=0;p<Ie;p++)B+=iqe(k[p],U[p]);if(te)for(p=0;p<Ie;p++)te(k[p],B,$,fe[p]);return{x,xRanges:E$(P,Je&&qe,Qe,re,a,i),x0:_e,dx:Ce,y:b,yRanges:E$(R,We&&ze,be,Ge,n,o),y0:Ze,dy:Le,z:k,pts:G}};function L$(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 C$(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=oqe(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$=N((oZe,N$)=>{"use strict";var gl=ke(),R$=Gt().BADNUM,z$=xv();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,m,y=gl.distinctVals(s),x=y.vals,T=gl.distinctVals(u),w=T.vals,b=[],_,k,M=w.length,q=x.length;for(p=0;p<o.length;p++)b[p]=gl.init2dArray(M,q);c&&(_=gl.init2dArray(M,q)),d&&(k=gl.init2dArray(M,q));var C=gl.init2dArray(M,q);for(p=0;p<l;p++)if(s[p]!==R$&&u[p]!==R$){var D=gl.findBin(s[p]+y.minDiff/2,x),P=gl.findBin(u[p]+T.minDiff/2,w);for(m=0;m<o.length;m++){var R=o[m],I=r[R],F=b[m];F[P][D]=I[p],C[P][D]=p}c&&(_[P][D]=f[p]),d&&(k[P][D]=v[p])}for(r["_"+n]=x,r["_"+i]=w,m=0;m<o.length;m++)r["_"+o[m]]=b[m];c&&(r._text=_),d&&(r._hovertext=k),t&&t.type==="category"&&(r["_"+n+"CategoryMap"]=x.map(function(B){return t._categories[B]})),a&&a.type==="category"&&(r["_"+i+"CategoryMap"]=w.map(function(B){return a._categories[B]})),r._after2before=C}});var O$=N((lZe,F$)=>{"use strict";var lqe=Fr(),sqe=ke(),X2=Gt().BADNUM;F$.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(x){if(lqe(x))return+x}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(x){return x.length},s=function(x,T,w){return(x[w]||[])[T]}}else i=r.length,l=function(x,T){return x[T].length},s=function(x,T,w){return(x[T]||[])[w]};var v=function(x,T,w){return T===X2||w===X2?X2:s(x,T,w)};function d(x){if(t&&t.type!=="carpet"&&t.type!=="contourcarpet"&&x&&x.type==="category"&&t["_"+x._id.charAt(0)].length){var T=x._id.charAt(0),w={},b=t["_"+T+"CategoryMap"]||t[T];for(u=0;u<b.length;u++)w[b[u]]=u;return function(_){var k=w[x._categories[_]];return k+1?k:X2}}else return sqe.identity}var p=d(a),m=d(n);n&&n.type==="category"&&(i=n._categories.length);var y=new Array(i);for(u=0;u<i;u++)for(a&&a.type==="category"?o=a._categories.length:o=l(r,u),y[u]=new Array(o),f=0;f<o;f++)y[u][f]=c(v(r,m(u),p(f)));return y}});var G$=N((sZe,U$)=>{"use strict";var uqe=ke(),B$=.01,fqe=[[-1,0],[1,0],[0,-1],[0,1]];function cqe(e){return .5-.25*Math.min(1,e*.5)}U$.exports=function(r,t){var a=1,n;for(H$(r,t),n=0;n<t.length&&!(t[n][2]<4);n++);for(t=t.slice(n),n=0;n<100&&a>B$;n++)a=H$(r,t,cqe(a));return a>B$&&uqe.log("interp2d didn't converge quickly",a),r};function H$(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,m,y;for(l=0;l<r.length;l++){for(n=r[l],i=n[0],o=n[1],p=e[i][o],d=0,v=0,s=0;s<4;s++)u=fqe[s],f=e[i+u[0]],f&&(c=f[o+u[1]],c!==void 0&&(d===0?m=y=c:(m=Math.min(m,c),y=Math.max(y,c)),v++,d+=c));if(v===0)throw"iterateInterp2d order is wrong: no defined neighbors";e[i][o]=d/v,p===void 0?v<4&&(a=1):(e[i][o]=(1+t)*e[i][o]-t*p,y>m&&(a=Math.max(a,Math.abs(e[i][o]-p)/(y-m))))}return a}});var V$=N((uZe,Y$)=>{"use strict";var vqe=ke().maxRowLength;Y$.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=vqe(r),u,f,c,v,d,p,m,y;for(f=0;f<r.length;f++)for(u=o,o=i,i=r[f+1]||[],c=0;c<s;c++)o[c]===void 0&&(p=(o[c-1]!==void 0?1:0)+(o[c+1]!==void 0?1:0)+(u[c]!==void 0?1:0)+(i[c]!==void 0?1:0),p?(f===0&&p++,c===0&&p++,f===r.length-1&&p++,c===o.length-1&&p++,p<4&&(a[[f,c]]=[f,c,p]),t.push([f,c,p])):n.push([f,c]));for(;n.length;){for(m={},y=!1,d=n.length-1;d>=0;d--)v=n[d],f=v[0],c=v[1],p=((a[[f-1,c]]||l)[2]+(a[[f+1,c]]||l)[2]+(a[[f,c-1]]||l)[2]+(a[[f,c+1]]||l)[2])/20,p&&(m[v]=[f,c,p],n.splice(d,1),y=!0);if(!y)throw"findEmpties iterated with no new neighbors";for(v in m)a[v]=m[v],t.push(m[v])}return t.sort(function(x,T){return T[2]-x[2]})}});var Z$=N((fZe,X$)=>{"use strict";var j$=Tr(),W$=ke().isArrayOrTypedArray;X$.exports=function(r,t,a,n,i,o){var l=[],s=j$.traceIs(r,"contour"),u=j$.traceIs(r,"histogram"),f,c,v,d=W$(t)&&t.length>1;if(d&&!u&&o.type!=="category"){var p=t.length;if(p<=i){if(s)l=Array.from(t).slice(0,i);else if(i===1)o.type==="log"?l=[.5*t[0],2*t[0]]:l=[t[0]-.5,t[0]+.5];else if(o.type==="log"){for(l=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],v=1;v<p;v++)l.push(Math.sqrt(t[v-1]*t[v]));l.push(Math.pow(t[p-1],1.5)/Math.pow(t[p-2],.5))}else{for(l=[1.5*t[0]-.5*t[1]],v=1;v<p;v++)l.push((t[v-1]+t[v])*.5);l.push(1.5*t[p-1]-.5*t[p-2])}if(p<i){var m=l[l.length-1],y;if(o.type==="log")for(y=m/l[l.length-2],v=p;v<i;v++)m*=y,l.push(m);else for(y=m-l[l.length-2],v=p;v<i;v++)m+=y,l.push(m)}}else return s?t.slice(0,i):t.slice(0,i+1)}else{var x=r[o._id.charAt(0)+"calendar"];if(u)f=o.r2c(a,0,x);else if(W$(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,x)}for(c=n||1,v=s?0:-.5;v<i;v++)l.push(f+c*v)}return l}});var J2=N((cZe,Q$)=>{"use strict";var $$=Tr(),y9=ke(),Z2=Gr(),J$=xv(),hqe=P$(),dqe=Wc(),pqe=I$(),mqe=O$(),yqe=G$(),gqe=V$(),$2=Z$(),g9=Gt().BADNUM;Q$.exports=function(r,t){var a=Z2.getFromId(r,t.xaxis||"x"),n=Z2.getFromId(r,t.yaxis||"y"),i=$$.traceIs(t,"contour"),o=$$.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,m,y,x,T;if(a._minDtick=0,n._minDtick=0,o)T=hqe(r,t),c=T.orig_x,s=T.x,u=T.x0,f=T.dx,m=T.orig_y,v=T.y,d=T.y0,p=T.dy,y=T.z;else{var w=t.z;y9.isArray1D(w)?(pqe(t,a,n,"x","y",["z"]),s=t._x,v=t._y,w=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],m=t.y?n.makeCalcdata(t,"y"):[],s=J$(t,a,"x",c).vals,v=J$(t,n,"y",m).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,y=mqe(w,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(y=bqe(s,v,y),o||(s=K$(s),v=K$(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=gqe(y),yqe(y,t._emptypoints));function b(I){l=t._input.zsmooth=t.zsmooth=!1,y9.warn('cannot use zsmooth: "fast": '+I)}function _(I){if(I.length>1){var F=(I[I.length-1]-I[0])/(I.length-1),B=Math.abs(F/100);for(x=0;x<I.length-1;x++)if(Math.abs(I[x+1]-I[x]-F)>B)return!1}return!0}t._islinear=!1,a.type==="log"||n.type==="log"?l==="fast"&&b("log axis found"):_(s)?_(v)?t._islinear=!0:l==="fast"&&b("y scale is not linear"):l==="fast"&&b("x scale is not linear");var k=y9.maxRowLength(y),M=t.xtype==="scaled"?"":s,q=$2(t,M,u,f,k,a),C=t.ytype==="scaled"?"":v,D=$2(t,C,d,p,y.length,n);t._extremes[a._id]=Z2.findExtremes(a,q),t._extremes[n._id]=Z2.findExtremes(n,D);var P={x:q,y:D,z:y,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&m&&(P.orig_y=m),M&&M.length===q.length-1&&(P.xCenter=M),C&&C.length===D.length-1&&(P.yCenter=C),o&&(P.xRanges=T.xRanges,P.yRanges=T.yRanges,P.pts=T.pts),i||dqe(r,t,{vals:y,cLetter:"z"}),i&&t.contours&&t.contours.coloring==="heatmap"){var R={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=$2(R,M,u,f,k,a),P.yfill=$2(R,C,d,p,y.length,n)}return[P]};function K$(e){for(var r=[],t=e.length,a=0;a<t;a++){var n=e[a];n!==g9&&r.push(n)}return r}function bqe(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 Q2=N(K2=>{"use strict";K2.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"]];K2.STYLE=K2.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var x9=N((hZe,rJ)=>{"use strict";var eJ=Q2(),xqe=Xr(),b9=ke(),Wv=null;function _qe(){if(Wv!==null)return Wv;Wv=!1;var e=b9.isSafari()||b9.isMacWKWebView()||b9.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(eJ.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Wv=r.some(function(o){return t.apply(null,o)});else{var a=xqe.tester.append("image").attr("style",eJ.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Wv=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Wv}rJ.exports=_qe});var e3=N((dZe,cJ)=>{"use strict";var tJ=Dr(),wqe=Tr(),Tqe=Xr(),Mqe=Gr(),io=ke(),aJ=Ca(),Aqe=Cw(),nJ=Sr(),kqe=rl().extractOpts,Sqe=rl().makeColorScaleFuncFromTrace,qqe=Fl(),Lqe=Qa(),_9=Lqe.LINE_SPACING,Cqe=x9(),Eqe=Q2().STYLE,uJ="heatmap-label";function fJ(e){return e.selectAll("g."+uJ)}function iJ(e){fJ(e).remove()}cJ.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;io.makeTraceGroups(a,t,"hm").each(function(o){var l=tJ.select(this),s=o[0],u=s.trace,f=u.xgap||0,c=u.ygap||0,v=s.z,d=s.x,p=s.y,m=s.xCenter,y=s.yCenter,x=wqe.traceIs(u,"contour"),T=x?"best":u.zsmooth,w=v.length,b=io.maxRowLength(v),_=!1,k=!1,M,q,C,D,P,R,I,F;for(R=0;M===void 0&&R<d.length-1;)M=n.c2p(d[R]),R++;for(R=d.length-1;q===void 0&&R>0;)q=n.c2p(d[R]),R--;for(q<M&&(C=q,q=M,M=C,_=!0),R=0;D===void 0&&R<p.length-1;)D=i.c2p(p[R]),R++;for(R=p.length-1;P===void 0&&R>0;)P=i.c2p(p[R]),R--;P<D&&(C=D,D=P,P=C,k=!0),x&&(m=d,y=p,d=s.xfill,p=s.yfill);var B="default";if(T?B=T==="best"?"smooth":"fast":u._islinear&&f===0&&c===0&&Cqe()&&(B="fast"),B!=="fast"){var U=T==="best"?0:.5;M=Math.max(-U*n._length,M),q=Math.min((1+U)*n._length,q),D=Math.max(-U*i._length,D),P=Math.min((1+U)*i._length,P)}var G=Math.round(q-M),V=Math.round(P-D),Y=M>=n._length||q<=0||D>=i._length||P<=0;if(Y){var X=l.selectAll("image").data([]);X.exit().remove(),iJ(l);return}var j,J;B==="fast"?(j=b,J=w):(j=G,J=V);var ae=document.createElement("canvas");ae.width=j,ae.height=J;var te=ae.getContext("2d",{willReadFrequently:!0}),se=Sqe(u,{noNumericCheck:!0,returnArray:!0}),$,fe;B==="fast"?($=_?function(ht){return b-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])-M),0,G)},fe=function(ht){return io.constrain(Math.round(i.c2p(p[ht])-D),0,V)});var oe=fe(0),ue=[oe,oe],ce=_?0:1,ie=k?0:1,ge=0,Ce=0,_e=0,Ee=0,Ae,Se,Re,Ie,Le;function Ze(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]),ge+=Wa,Ce+=Ht[0]*Wa,_e+=Ht[1]*Wa,Ee+=Ht[2]*Wa,Ht}function Je(ht,Wa,Ht,nc){var Pn=ht[Ht.bin0];if(Pn===void 0)return Ze(void 0,1);var mo=ht[Ht.bin1],li=Wa[Ht.bin0],la=Wa[Ht.bin1],ic=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,Ze(Pn+Ht.frac*ic+nc.frac*(ls+Ht.frac*Rn))}if(B!=="default"){var We=0,qe;try{qe=new Uint8Array(j*J*4)}catch(ht){qe=new Array(j*J*4)}if(B==="smooth"){var ze=m||d,Qe=y||p,re=new Array(ze.length),be=new Array(Qe.length),Ge=new Array(G),cr=m?lJ:oJ,Pe=y?lJ:oJ,me,Me,He;for(R=0;R<ze.length;R++)re[R]=Math.round(n.c2p(ze[R])-M);for(R=0;R<Qe.length;R++)be[R]=Math.round(i.c2p(Qe[R])-D);for(R=0;R<G;R++)Ge[R]=cr(R,re);for(I=0;I<V;I++)for(me=Pe(I,be),Me=v[me.bin0],He=v[me.bin1],R=0;R<G;R++,We+=4)Le=Je(Me,He,Ge[R],me),sJ(qe,We,Le)}else for(I=0;I<w;I++)for(Ie=v[I],ue=fe(I),R=0;R<b;R++)Le=Ze(Ie[R],1),We=(ue*b+$(R))*4,sJ(qe,We,Le);var Xe=te.createImageData(j,J);try{Xe.data.set(qe)}catch(ht){var Oe=Xe.data,je=Oe.length;for(I=0;I<je;I++)Oe[I]=qe[I]}te.putImageData(Xe,0,0)}else{var tr=Math.floor(f/2),ir=Math.floor(c/2);for(I=0;I<w;I++)if(Ie=v[I],ue.reverse(),ue[ie]=fe(I+1),!(ue[0]===ue[1]||ue[0]===void 0||ue[1]===void 0))for(Se=$(0),Ae=[Se,Se],R=0;R<b;R++)Ae.reverse(),Ae[ce]=$(R+1),!(Ae[0]===Ae[1]||Ae[0]===void 0||Ae[1]===void 0)&&(Re=Ie[R],Le=Ze(Re,(Ae[1]-Ae[0])*(ue[1]-ue[0])),te.fillStyle="rgba("+Le.join(",")+")",te.fillRect(Ae[0]+tr,ue[0]+ir,Ae[1]-Ae[0]-f,ue[1]-ue[0]-c))}if(ge){Ce=Math.round(Ce/ge),_e=Math.round(_e/ge),Ee=Math.round(Ee/ge);let ht=`rgb(${Ce}, ${_e}, ${Ee})`;e._hmpixcount=(e._hmpixcount||0)+ge,e._hmlumcount=(e._hmlumcount||0)+ge*nJ.luminosity(ht)}var lr=l.selectAll("image").data(o);lr.enter().append("svg:image").attr({xmlns:qqe.svg,preserveAspectRatio:"none"}),lr.attr({height:V,width:G,x:M,y:D,"xlink:href":ae.toDataURL("image/png")}),B==="fast"&&!T&&lr.attr("style",Eqe),iJ(l);var De=u.texttemplate;if(De){var $e=kqe(u),Fe={type:"linear",range:[$e.min,$e.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,ye=mr?b-1:b,Ne=[];for(R=sr;R<yr;R++){var Be;if(mr)Be=s.y[R];else if(pr){if(R===0||R===w-1)continue;Be=s.y[R]}else if(s.yCenter)Be=s.yCenter[R];else{if(R+1===w&&s.y[R+1]===void 0)continue;Be=(s.y[R]+s.y[R+1])/2}var $r=Math.round(i.c2p(Be));if(!(0>$r||$r>i._length))for(I=ne;I<ye;I++){var Kr;if(mr)Kr=s.x[I];else if(pr){if(I===0||I===b-1)continue;Kr=s.x[I]}else if(s.xCenter)Kr=s.xCenter[I];else{if(I+1===b&&s.x[I+1]===void 0)continue;Kr=(s.x[I]+s.x[I+1])/2}var mt=Math.round(n.c2p(Kr));if(!(0>mt||mt>n._length)){var yt=Aqe({x:Kr,y:Be},u,e._fullLayout);yt.x=Kr,yt.y=Be;var Lt=s.z[R][I];Lt===void 0?(yt.z="",yt.zLabel=""):(yt.z=Lt,yt.zLabel=Mqe.tickText(Fe,Lt,"hover").text);var Qt=s.text&&s.text[R]&&s.text[R][I];(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:De});if(Va){var ea=Va.split("<br>"),ja=ea.length,ln=0;for(F=0;F<ja;F++)ln=Math.max(ln,ea[F].length);Ne.push({l:ja,c:ln,t:Va,x:mt,y:$r,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,At=0;for(F=0;F<Ne.length;F++){var tt=Ne[F];if(Rt=Math.max(Rt,tt.l),At=Math.max(At,tt.c),F<Ne.length-1){var ra=Ne[F+1],Dn=Math.abs(ra.x-tt.x),Vt=Math.abs(ra.y-tt.y);Dn&&(Yr=Math.min(Yr,Dn)),Vt&&(vt=Math.min(vt,Vt))}}!isFinite(Yr)||!isFinite(vt)?vr=_t:(Yr-=f,vt-=c,Yr/=At,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=fJ(l).data(Ne);aa.enter().append("g").classed(uJ,1).append("text").attr("text-anchor","middle").each(function(ht){var Wa=tJ.select(this),Ht=oa.color;(!Ht||Ht==="auto")&&(Ht=nJ.contrast(ht.z===void 0?e._fullLayout.plot_bgcolor:`rgba(${se(ht.z).map(Math.round).join()})`)),Wa.attr("data-notex",1).call(aJ.positionText,Ct(ht),ta(ht)).call(Tqe.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(aJ.convertToTspans,e)})}})};function oJ(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 lJ(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 sJ(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=N((pZe,vJ)=>{"use strict";vJ.exports={min:"zmin",max:"zmax"}});var r3=N((mZe,hJ)=>{"use strict";var Dqe=Dr();hJ.exports=function(r){Dqe.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var a3=N((yZe,pJ)=>{"use strict";var dJ=Fn(),Qd=ke(),t3=Qd.isArrayOrTypedArray,Pqe=Gr(),Rqe=rl().extractOpts;pJ.exports=function(r,t,a,n,i){i||(i={});var o=i.isContour,l=r.cd[0],s=l.trace,u=r.xa,f=r.ya,c=l.x,v=l.y,d=l.z,p=l.xCenter,m=l.yCenter,y=l.zmask,x=s.zhoverformat,T=c,w=v,b,_,k,M;if(r.index!==!1){try{k=Math.round(r.index[1]),M=Math.round(r.index[0])}catch(X){Qd.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||M<0||M>d.length)return}else{if(dJ.inbox(t-c[0],t-c[c.length-1],0)>0||dJ.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,Qd.findBin(t,T))),M=Math.max(0,Math.min(w.length-2,Qd.findBin(a,w)))}var C=u.c2p(c[k]),D=u.c2p(c[k+1]),P=f.c2p(v[M]),R=f.c2p(v[M+1]),I,F;o?(I=l.orig_x||c,F=l.orig_y||v,D=C,b=I[k],R=P,_=F[M]):(I=l.orig_x||p||c,F=l.orig_y||m||v,b=p?I[k]:(I[k]+I[k+1])/2,_=m?F[M]:(F[M]+F[M+1])/2,u&&u.type==="category"&&(b=c[k]),f&&f.type==="category"&&(_=v[M]),s.zsmooth&&(C=D=u.c2p(b),P=R=f.c2p(_)));var B=d[M][k];if(y&&!y[M][k]&&(B=void 0),!(B===void 0&&!s.hoverongaps)){var U;t3(l.hovertext)&&t3(l.hovertext[M])?U=l.hovertext[M][k]:t3(l.text)&&t3(l.text[M])&&(U=l.text[M][k]);var G=Rqe(s),V={type:"linear",range:[G.min,G.max],hoverformat:x,_separators:u._separators,_numFormat:u._numFormat},Y=Pqe.tickText(V,B,"hover").text;return[Qd.extendFlat(r,{index:s._after2before?s._after2before[M][k]:[M,k],distance:r.maxHoverDistance,spikeDistance:r.maxSpikeDistance,x0:C,x1:D,y0:P,y1:R,xLabelVal:b,yLabelVal:_,zLabelVal:B,zLabel:Y,text:U})]}}});var yJ=N((gZe,mJ)=>{"use strict";mJ.exports={attributes:Jd(),supplyDefaults:u$(),calc:J2(),plot:e3(),colorbar:w9(),style:r3(),hoverPoints:a3(),moduleType:"trace",name:"heatmap",basePlotModule:Qi(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var bJ=N((bZe,gJ)=>{"use strict";gJ.exports=yJ()});var T9=N((xZe,xJ)=>{"use strict";xJ.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var wJ=N((_Ze,_J)=>{"use strict";_J.exports={eventDataKeys:["binNumber"]}});var n3=N((wZe,kJ)=>{"use strict";var ai=kf(),TJ=ko().axisHoverFormat,{hovertemplateAttrs:zqe,texttemplateAttrs:Nqe,templatefallbackAttrs:MJ}=fi(),M9=ka(),AJ=T9(),Iqe=wJ(),A9=Mt().extendFlat;kJ.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:TJ("x"),yhoverformat:TJ("y"),text:A9({},ai.text,{}),hovertext:A9({},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:AJ("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:AJ("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:A9({},ai.textposition,{arrayOk:!1}),textfont:M9({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:M9({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:M9({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 CJ=N((TZe,LJ)=>{"use strict";var SJ=Tr(),e1=ke(),qJ=Sr(),Fqe=Sf().handleText,Oqe=F8(),Bqe=n3();LJ.exports=function(r,t,a,n){function i(T,w){return e1.coerce(r,t,Bqe,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");Fqe(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(e1.minRowLength(o)&&e1.minRowLength(l)):e1.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=SJ.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[v];m&&i("histfunc"),i("histnorm"),i("autobin"+c),Oqe(r,t,i,a,n),e1.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,x=SJ.getComponentMethod("errorbars","supplyDefaults");x(r,t,y||qJ.defaultLine,{axis:"y"}),x(r,t,y||qJ.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var o3=N((MZe,PJ)=>{"use strict";var r1=ke(),Hqe=ba(),i3=Tr().traceIs,Uqe=Ad(),Gqe=Sf().validateCornerradius,EJ=r1.nestedProperty,k9=vf().getAxisGroup,DJ=[{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"}],Yqe=["x","y"];PJ.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(B,U){return r1.coerce(l._input,l,l._module.attributes,B,U)}function m(B){return B.orientation==="v"?"x":"y"}function y(B,U){var G=Hqe.getFromTrace({_fullLayout:t},B,U);return G.type}function x(B,U,G){var V=B.uid+"__"+G;U||(U=V);var Y=y(B,G),X=B[G+"calendar"]||"",j=a[U],J=!0;j&&(Y===j.axType&&X===j.calendar?(J=!1,j.traces.push(B),j.dirs.push(G)):(U=V,Y!==j.axType&&r1.warn(["Attempted to group the bins of trace",B.index,"set on a","type:"+Y,"axis","with bins on","type:"+j.axType,"axis."].join(" ")),X!==j.calendar&&r1.warn(["Attempted to group the bins of trace",B.index,"set with a",X,"calendar","with bins",j.calendar?"on a "+j.calendar+" calendar":"w/o a set calendar"].join(" ")))),J&&(a[U]={traces:[B],dirs:[G],axType:Y,calendar:B[G+"calendar"]||""}),B["_"+G+"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=Gqe(T))}i3(l,"2dMap")||Uqe(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=m(l),t.barmode==="group"&&l.alignmentgroup){var b=l[f+"axis"],_=k9(t,b)+l.orientation;(w[_]||{})[l.alignmentgroup]&&(u=_)}!u&&t.barmode!=="overlay"&&(u=k9(t,l.xaxis)+k9(t,l.yaxis)+m(l))}u?(i[u]||(i[u]=[]),i[u].push(l)):o.push(l)}for(u in i){if(s=i[u],s.length===1){o.push(s[0]);continue}var k=!1;for(s.length&&(l=s[0],k=p("bingroup")),u=k||u,c=0;c<s.length;c++){l=s[c];var M=l._input.bingroup;M&&M!==u&&r1.warn(["Trace",l.index,"must match","within bingroup",u+".","Ignoring its bingroup:",M,"setting."].join(" ")),l.bingroup=u,x(l,u,m(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=Yqe[d];var C=p(f+"bingroup",q?q+"__"+f:null);x(l,C,f)}else x(l,q,m(l))}for(u in a){var D=a[u];for(s=D.traces,v=0;v<DJ.length;v++){var P=DJ[v],R=P.name,I,F;if(!(R==="nbins"&&D.sizeFound)){for(c=0;c<s.length;c++){if(l=s[c],f=D.dirs[c],I=P.aStr[f],EJ(l._input,I).get()!==void 0){D[R]=p(I),D[R+"Found"]=!0;break}F=(l._autoBin||{})[f]||{},F[R]&&EJ(l,I).set(F[R])}if(R==="start"||R==="end")for(;c<s.length;c++)l=s[c],l["_"+f+"bingroup"]&&(F=(l._autoBin||{})[f]||{},p(I,F[R]));R==="nbins"&&!D.sizeFound&&!D.nbinsFound&&(l=s[0],D[R]=p(I))}}}}});var zJ=N((AZe,RJ)=>{"use strict";var Vqe=j8().hoverPoints,jqe=Gr().hoverLabelText;RJ.exports=function(r,t,a,n,i){var o=Vqe(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"]=jqe(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var S9=N((kZe,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 FJ=N((SZe,IJ)=>{"use strict";IJ.exports={attributes:n3(),layoutAttributes:z2(),supplyDefaults:CJ(),crossTraceDefaults:o3(),supplyLayoutDefaults:O8(),calc:m9().calc,crossTraceCalc:$g().crossTraceCalc,plot:Y8().plot,layerName:"barlayer",style:Bv().style,styleOnSelect:Bv().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 BJ=N((qZe,OJ)=>{"use strict";OJ.exports=FJ()});var s3=N((LZe,GJ)=>{"use strict";var Uo=n3(),HJ=T9(),l3=Jd(),Wqe=Nn(),q9=ko().axisHoverFormat,{hovertemplateAttrs:Xqe,texttemplateAttrs:Zqe,templatefallbackAttrs:UJ}=fi(),$qe=el(),t1=Mt().extendFlat;GJ.exports=t1({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:HJ("x"),nbinsy:Uo.nbinsy,ybins:HJ("y"),autobinx:Uo.autobinx,autobiny:Uo.autobiny,bingroup:t1({},Uo.bingroup,{}),xbingroup:t1({},Uo.bingroup,{}),ybingroup:t1({},Uo.bingroup,{}),xgap:l3.xgap,ygap:l3.ygap,zsmooth:l3.zsmooth,xhoverformat:q9("x"),yhoverformat:q9("y"),zhoverformat:q9("z",1),hovertemplate:Xqe({},{keys:["z"]}),hovertemplatefallback:UJ(),texttemplate:Zqe({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:UJ({editType:"plot"}),textfont:l3.textfont,showlegend:t1({},Wqe.showlegend,{dflt:!1})},$qe("",{cLetter:"z",autoColorDflt:!1}))});var L9=N((CZe,VJ)=>{"use strict";var Jqe=Tr(),YJ=ke();VJ.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=YJ.minRowLength(i),s=YJ.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=Jqe.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 WJ=N((EZe,jJ)=>{"use strict";var Kqe=ke(),Qqe=L9(),eLe=u9(),rLe=Ol(),tLe=Kd(),aLe=s3();jJ.exports=function(r,t,a,n){function i(o,l){return Kqe.coerce(r,t,aLe,o,l)}Qqe(r,t,i,n),t.visible!==!1&&(eLe(r,t,i,n),rLe(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),i("hovertemplatefallback"),tLe(i,n),i("xhoverformat"),i("yhoverformat"))}});var $J=N((DZe,ZJ)=>{"use strict";var nLe=a3(),XJ=Gr().hoverLabelText;ZJ.exports=function(r,t,a,n,i){var o=nLe(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=XJ(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=XJ(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var KJ=N((PZe,JJ)=>{"use strict";JJ.exports={attributes:s3(),supplyDefaults:WJ(),crossTraceDefaults:o3(),calc:J2(),plot:e3(),layerName:"heatmaplayer",colorbar:w9(),style:r3(),hoverPoints:$J(),eventData:S9(),moduleType:"trace",name:"histogram2d",basePlotModule:Qi(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var eK=N((RZe,QJ)=>{"use strict";QJ.exports=KJ()});var u3=N((zZe,rK)=>{"use strict";rK.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var c3=N((NZe,iK)=>{"use strict";var ga=Jd(),f3=Vi(),aK=ko(),C9=aK.axisHoverFormat,iLe=aK.descriptionOnlyNumbers,oLe=el(),lLe=Di().dash,sLe=ka(),Xv=Mt().extendFlat,nK=u3(),uLe=nK.COMPARISON_OPS2,fLe=nK.INTERVAL_OPS,tK=f3.line;iK.exports=Xv({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:Xv({},ga.texttemplate,{}),texttemplatefallback:ga.texttemplatefallback,textfont:Xv({},ga.textfont,{}),hoverongaps:ga.hoverongaps,connectgaps:Xv({},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:sLe({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:iLe("contour label")},operation:{valType:"enumerated",values:[].concat(uLe).concat(fLe),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:Xv({},tK.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:lLe,smoothing:Xv({},tK.smoothing,{}),editType:"plot"},zorder:f3.zorder},oLe("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var D9=N((IZe,lK)=>{"use strict";var hn=s3(),bl=c3(),cLe=el(),E9=ko().axisHoverFormat,oK=Mt().extendFlat;lK.exports=oK({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:oK({},bl.line.width,{dflt:.5}),dash:bl.line.dash,smoothing:bl.line.smoothing,editType:"plot"},xhoverformat:E9("x"),yhoverformat:E9("y"),zhoverformat:E9("z",1),hovertemplate:hn.hovertemplate,hovertemplatefallback:hn.hovertemplatefallback,texttemplate:bl.texttemplate,texttemplatefallback:bl.texttemplatefallback,textfont:bl.textfont},cLe("",{cLetter:"z",editTypeOverride:"calc"}))});var P9=N((FZe,sK)=>{"use strict";sK.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=N((OZe,uK)=>{"use strict";var vLe=ke();uK.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;vLe.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var z9=N((BZe,fK)=>{"use strict";var hLe=Ol(),dLe=R9();fK.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,hLe(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),dLe(a,n,s,i)}});var dK=N((HZe,hK)=>{"use strict";var cK=ke(),pLe=L9(),mLe=P9(),yLe=z9(),gLe=Kd(),vK=D9();hK.exports=function(r,t,a,n){function i(l,s){return cK.coerce(r,t,vK,l,s)}function o(l){return cK.coerce2(r,t,vK,l)}pLe(r,t,i,n),t.visible!==!1&&(mLe(r,t,i,o),yLe(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),i("hovertemplatefallback"),t.contours&&t.contours.coloring==="heatmap"&&gLe(i,n))}});var yK=N((UZe,mK)=>{"use strict";var I9=Gr(),N9=ke();mK.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=N9.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=N9.aggNums(Math.max,null,t));var o=pK(n,i,r.ncontours);a.size=o.dtick,a.start=I9.tickFirst(o),o.range.reverse(),a.end=I9.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={}),N9.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=pK(l,s,r.ncontours).dtick,u.size=a.size=f}}};function pK(e,r,t){var a={type:"linear",range:[e,r]};return I9.autoTicks(a,(r-e)/(t||15)),a}});var a1=N((GZe,gK)=>{"use strict";gK.exports=function(r){return r.end+r.size/1e6}});var F9=N((YZe,xK)=>{"use strict";var bK=rl(),bLe=J2(),xLe=yK(),_Le=a1();xK.exports=function(r,t){var a=bLe(r,t),n=a[0].z;xLe(t,n);var i=t.contours,o=bK.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=_Le(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 bK.calc(r,t,{vals:l,cLetter:"z"}),a}});var v3=N((VZe,_K)=>{"use strict";_K.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 TK=N((jZe,wK)=>{"use strict";var h3=v3();wK.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=wLe(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 wLe(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 SK=N((WZe,kK)=>{"use strict";var d3=ke(),Zv=v3();kK.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 n1(e,r,t,a){return Math.abs(e[0]-r[0])<t&&Math.abs(e[1]-r[1])<a}function TLe(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=[AK(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=Zv.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=Zv.SADDLEREMAINDER[o]):delete e.crossings[i],l=Zv.NEWDELTA[o],!l){d3.log("Found bad marching index:",o,r,e.level);break}s.push(AK(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),n1(s[s.length-1],s[s.length-2],a,n)&&s.pop();var p=l[0]&&(r[0]<0||r[0]>f-2)||l[1]&&(r[1]<0||r[1]>u-2),m=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(m||t&&p)break;o=e.crossings[i]}d===1e4&&d3.log("Infinite loop in contour?");var y=n1(s[0],s[s.length-1],a,n),x=0,T=.2*e.smoothing,w=[],b=0,_,k,M,q,C,D,P,R,I,F,B;for(d=1;d<s.length;d++)P=TLe(s[d],s[d-1]),x+=P,w.push(P);var U=x/w.length*T;function G(X){return s[X%s.length]}for(d=s.length-2;d>=b;d--)if(_=w[d],_<U){for(M=0,k=d-1;k>=b&&_+w[k]<U;k--)_+=w[k];if(y&&d===s.length-2)for(M=0;M<k&&_+w[M]<U;M++)_+=w[M];C=d-k+M+1,D=Math.floor((d+k+M+2)/2),!y&&d===s.length-2?q=s[s.length-1]:!y&&k===-1?q=s[0]:C%2?q=G(D):q=[(G(D)[0]+G(D+1)[0])/2,(G(D)[1]+G(D+1)[1])/2],s.splice(k+1,d-k+1,q),d=k+1,M&&(b=M),y&&(d===s.length-2?s[M]=s[s.length-1]:d===0&&(s[s.length-1]=s[0]))}for(s.splice(0,b),d=0;d<s.length;d++)s[d].length=2;if(!(s.length<2))if(y)s.pop(),e.paths.push(s);else{t||d3.log("Unclosed interior contour?",e.level,c.join(","),s.join("L"));var V=!1;for(R=0;R<e.edgepaths.length;R++)if(F=e.edgepaths[R],!V&&n1(F[0],s[s.length-1],a,n)){s.pop(),V=!0;var Y=!1;for(I=0;I<e.edgepaths.length;I++)if(B=e.edgepaths[I],n1(B[B.length-1],s[0],a,n)){Y=!0,s.shift(),e.edgepaths.splice(R,1),I===R?e.paths.push(s.concat(B)):(I>R&&I--,e.edgepaths[I]=B.concat(s,F));break}Y||(e.edgepaths[R]=s.concat(F))}for(R=0;R<e.edgepaths.length&&!V;R++)F=e.edgepaths[R],n1(F[F.length-1],s[0],a,n)&&(s.shift(),e.edgepaths[R]=F.concat(s),V=!0);V||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:Zv.BOTTOMSTART.indexOf(e)!==-1?n=1:Zv.LEFTSTART.indexOf(e)!==-1?a=1:Zv.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function AK(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=N((XZe,CK)=>{"use strict";var O9=u3(),ALe=Fr();CK.exports={"[]":qK("[]"),"][":qK("]["),">":B9(">"),"<":B9("<"),"=":B9("=")};function LK(e,r){var t=Array.isArray(r),a;function n(i){return ALe(i)?+i:null}return O9.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):O9.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:O9.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function qK(e){return function(r){r=LK(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 B9(e){return function(r){return r=LK(e,r),{start:r,end:1/0,size:1/0}}}});var RK=N((ZZe,PK)=>{"use strict";var DK=ke(),kLe=EK(),SLe=a1();PK.exports=function(r,t,a){for(var n=r.type==="constraint"?kLe[r._operation](r.value):r,i=n.size,o=[],l=SLe(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(DK.extendFlat({level:f,crossings:{},starts:[],edgepaths:[],paths:[],z:a.z,smoothing:a.trace.line.smoothing},u)),o.length>1e3){DK.warn("Too many contours, clipping at 1000",r);break}return o}});var IK=N(($Ze,NK)=>{"use strict";var $v=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&&$v.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&&$v.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 $v.extendFlat({},e,{edgepaths:$v.extendDeep([],e.edgepaths),paths:$v.extendDeep([],e.paths),starts:$v.extendDeep([],e.starts)})}});var OK=N((JZe,FK)=>{"use strict";FK.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=N(En=>{"use strict";var o1=Dr(),Ga=ke(),Ql=Xr(),qLe=rl(),UK=Ca(),BK=Gr(),HK=ev(),LLe=e3(),GK=TK(),YK=SK(),CLe=RK(),ELe=IK(),VK=OK(),i1=v3(),xl=i1.LABELOPTIMIZER;En.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Ga.makeTraceGroups(n,a,"contour").each(function(l){var s=o1.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=CLe(d,t,u),m=Ga.ensureSingle(s,"g","heatmapcoloring"),y=[];d.coloring==="heatmap"&&(y=[l]),LLe(r,t,y,m),GK(p),YK(p);var x=i.c2p(c[0],!0),T=i.c2p(c[c.length-1],!0),w=o.c2p(v[0],!0),b=o.c2p(v[v.length-1],!0),_=[[x,b],[T,b],[T,w],[x,w]],k=p;d.type==="constraint"&&(k=ELe(p,d._operation)),DLe(s,_,d),PLe(s,k,_,d),RLe(s,p,r,u,d),NLe(s,t,r,u,_)})};function DLe(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 PLe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&VK(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:"")+jK(s,t);u?o1.select(this).attr("d",u).style("stroke","none"):o1.select(this).remove()})}function jK(e,r){var t="",a=0,n=e.edgepaths.map(function(x,T){return T}),i=!0,o,l,s,u,f,c;function v(x){return Math.abs(x[1]-r[0][1])<.01}function d(x){return Math.abs(x[1]-r[2][1])<.01}function p(x){return Math.abs(x[0]-r[0][0])<.01}function m(x){return Math.abs(x[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)&&!m(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:m(o)&&(l=r[2]),f=0;f<e.edgepaths.length;f++){var y=e.edgepaths[f][0];Math.abs(o[0]-l[0])<.01?Math.abs(o[0]-y[0])<.01&&(y[1]-o[1])*(l[1]-y[1])>=0&&(l=y,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-y[1])<.01&&(y[0]-o[0])*(l[0]-y[0])>=0&&(l=y,u=f):Ga.log("endpt to newendpt is not vert. or horz.",o,l,y)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){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 RLe(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=En.createLines(o,l||s,r,i),c=En.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 m=En.labelFormatter(t,a),y=Ql.tester.append("text").attr("data-notex",1).call(Ql.font,n.labelfont),x=r[0].xaxis,T=r[0].yaxis,w=x._length,b=T._length,_=x.range,k=T.range,M=Ga.aggNums(Math.min,null,a.x),q=Ga.aggNums(Math.max,null,a.x),C=Ga.aggNums(Math.min,null,a.y),D=Ga.aggNums(Math.max,null,a.y),P=Math.max(x.c2p(M,!0),0),R=Math.min(x.c2p(q,!0),w),I=Math.max(T.c2p(D,!0),0),F=Math.min(T.c2p(C,!0),b),B={};_[0]<_[1]?(B.left=P,B.right=R):(B.left=R,B.right=P),k[0]<k[1]?(B.top=I,B.bottom=F):(B.top=F,B.bottom=I),B.middle=(B.top+B.bottom)/2,B.center=(B.left+B.right)/2,d.push([[B.left,B.top],[B.right,B.top],[B.right,B.bottom],[B.left,B.bottom]]);var U=Math.sqrt(w*w+b*b),G=i1.LABELDISTANCE*U/Math.max(1,r.length/i1.LABELINCREASE);f.each(function(V){var Y=En.calcTextOpts(V.level,m,y,t);o1.select(this).selectAll("path").each(function(){var X=this,j=Ga.getVisibleSegment(X,B,Y.height/2);if(j&&!(j.len<(Y.width+Y.height)*i1.LABELMIN))for(var J=Math.min(Math.ceil(j.len/G),i1.LABELMAX),ae=0;ae<J;ae++){var te=En.findBestTextLocation(X,j,Y,p,B);if(!te)break;En.addLabelData(te,Y,p,d)}})}),y.remove(),En.drawLabels(v,p,t,c,u?d:null)}s&&!l&&f.remove()}En.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};En.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};En.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,HK(i,t);else{var o=qLe.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),HK(i,t),BK.prepTicks(i),i._tmin=null,i._tmax=null}}return function(s){return BK.tickText(i,s).text}};En.calcTextOpts=function(e,r,t,a){var n=r(e);t.text(n).call(UK.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}};En.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),m=zLe(p,t,a,n);m<c&&(c=m,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,m=l-f,y=o+u,x=l+f,T=0;T<t.length;T++){var w=t[T],b=Math.cos(w.theta)*w.width/2,_=Math.sin(w.theta)*w.width/2,k=Ga.segmentDistance(p,m,y,x,w.x-b,w.y-_,w.x+b,w.y+_)*2/(r.height+w.height),M=w.level===r.level,q=M?xl.SAMELEVELDISTANCE:1;if(k<=q)return 1/0;var C=xl.NEIGHBORCOST*(M?xl.SAMELEVELFACTOR:1);d+=C/(k-q)}return d}En.addLabelData=function(e,r,t,a){var n=r.fontSize,i=r.width+n/3,o=Math.max(0,r.height-n/3),l=e.x,s=e.y,u=e.theta,f=Math.sin(u),c=Math.cos(u),v=function(p,m){return[l+p*c-m*f,s+p*f+m*c]},d=[v(-i/2,-o/2),v(-i/2,o/2),v(i/2,o/2),v(i/2,-o/2)];t.push({text:r.text,x:l,y:s,dy:r.dy,theta:u,level:r.level,width:i,height:o}),a.push(d)};En.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;o1.select(this).text(u.text).attr({x:f,y:c,transform:"rotate("+180*u.theta/Math.PI+" "+f+" "+c+")"}).call(UK.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};GK([u]),YK([u]),VK([u],{type:"levels"});var f=Ga.ensureSingle(s,"path","");f.attr("d",(u.prefixBoundary?"M"+n.join("L")+"Z":"")+jK(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=N((QZe,WK)=>{"use strict";var FLe=Dr(),U9=rl(),OLe=a1();WK.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,m=s.min,y=s.max;if(t.coloring==="heatmap"){for(p=0;p<f;p++)d=u[p],c[p]=d[0]*(y-m)+m,v[p]=d[1];var x=FLe.extent([m,y,t.start,t.start+i*(o-1)]),T=x[m<y?0:1],w=x[m<y?1:0];T!==m&&(c.splice(0,0,T),v.splice(0,0,v[0])),w!==y&&(c.push(w),v.push(v[v.length-1]))}else{var b=r._input&&typeof r._input.zmin=="number"&&typeof r._input.zmax=="number";for(b&&(a<=m||n>=y)&&(a<=m&&(a=m),n>=y&&(n=y),o=Math.floor((n-a)/i)+1,l=0),p=0;p<f;p++)d=u[p],c[p]=(d[0]*(o+l-1)-l/2)*i+a,v[p]=d[1];(b||r.autocontour)&&(c[0]>m&&(c.unshift(m),v.unshift(v[0])),c[c.length-1]<y&&(c.push(y),v.push(v[v.length-1])))}return U9.makeColorScaleFunc({domain:c,range:v},{noNumericCheck:!0})}});var Y9=N((e$e,ZK)=>{"use strict";var p3=Dr(),XK=Xr(),BLe=r3(),HLe=G9();ZK.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?HLe(i):null;n.selectAll("g.contourlevel").each(function(y){p3.select(this).selectAll("path").call(XK.lineGroupStyle,l.width,c?d(y.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(y){XK.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(y.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var m;n.selectAll("g.contourfill path").style("fill",function(y){return m===void 0&&(m=y.level),d(y.level+.5*s)}),m===void 0&&(m=u),n.selectAll("g.contourbg path").style("fill",d(m-.5*s))}}),BLe(r)}});var V9=N((r$e,JK)=>{"use strict";var $K=rl(),ULe=G9(),GLe=a1();function YLe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=ULe(r,{isColorbar:!0});if(o==="heatmap"){var s=$K.extractOpts(r);t._fillgradient=s.reversescale?$K.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:GLe(a),size:i}}JK.exports={min:"zmin",max:"zmax",calc:YLe}});var j9=N((t$e,KK)=>{"use strict";var m3=Sr(),VLe=a3();KK.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=VLe(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 eQ=N((a$e,QK)=>{"use strict";QK.exports={attributes:D9(),supplyDefaults:dK(),crossTraceDefaults:o3(),calc:F9(),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 tQ=N((n$e,rQ)=>{"use strict";rQ.exports=eQ()});var uQ=N((i$e,sQ)=>{"use strict";var aQ=Fr(),jLe=R9(),oQ=Sr(),nQ=oQ.addOpacity,WLe=oQ.opacity,lQ=u3(),iQ=ke().isArrayOrTypedArray,XLe=lQ.CONSTRAINT_REDUCTION,ZLe=lQ.COMPARISON_OPS2;sQ.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=XLe[c],$Le(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",nQ((r.line||{}).color||i,.5))),s){var v=f&&WLe(f)?nQ(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),jLe(a,n,u,o)};function $Le(e,r){var t;ZLe.indexOf(r.operation)===-1?(e("contours.value",[0,1]),iQ(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])]:aQ(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),aQ(r.value)||(iQ(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var vQ=N((o$e,cQ)=>{"use strict";var W9=ke(),JLe=s9(),KLe=gv(),QLe=uQ(),eCe=P9(),rCe=z9(),tCe=Kd(),fQ=c3();cQ.exports=function(r,t,a,n){function i(u,f){return W9.coerce(r,t,fQ,u,f)}function o(u){return W9.coerce2(r,t,fQ,u)}var l=JLe(r,t,i,n);if(!l){t.visible=!1;return}KLe(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?QLe(r,t,i,n,a):(eCe(r,t,i,o),rCe(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&tCe(i,n),i("zorder")}});var dQ=N((l$e,hQ)=>{"use strict";hQ.exports={attributes:c3(),supplyDefaults:vQ(),calc:F9(),plot:H9().plot,style:Y9(),colorbar:V9(),hoverPoints:j9(),moduleType:"trace",name:"contour",basePlotModule:Qi(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var mQ=N((s$e,pQ)=>{"use strict";pQ.exports=dQ()});var X9=N((u$e,xQ)=>{"use strict";var{hovertemplateAttrs:aCe,texttemplateAttrs:nCe,templatefallbackAttrs:yQ}=fi(),iCe=mg(),ki=Vi(),oCe=Nn(),gQ=el(),lCe=Di().dash,Ks=Mt().extendFlat,oo=ki.marker,l1=ki.line,bQ=oo.line;xQ.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({},ki.mode,{dflt:"markers"}),text:Ks({},ki.text,{}),texttemplate:nCe({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:yQ({editType:"plot"}),hovertext:Ks({},ki.hovertext,{}),line:{color:l1.color,width:l1.width,dash:lCe,backoff:l1.backoff,shape:Ks({},l1.shape,{values:["linear","spline"]}),smoothing:l1.smoothing,editType:"calc"},connectgaps:ki.connectgaps,cliponaxis:ki.cliponaxis,fill:Ks({},ki.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:iCe(),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:bQ.width,dash:bQ.dash,editType:"calc"},gQ("marker.line")),gradient:oo.gradient,editType:"calc"},gQ("marker")),textfont:ki.textfont,textposition:ki.textposition,selected:ki.selected,unselected:ki.unselected,hoverinfo:Ks({},oCe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:ki.hoveron,hovertemplate:aCe(),hovertemplatefallback:yQ()}});var MQ=N((f$e,TQ)=>{"use strict";var _Q=ke(),sCe=vd(),Jv=Jn(),uCe=uw(),fCe=fw(),wQ=cw(),cCe=vw(),vCe=hw(),hCe=X9();TQ.exports=function(r,t,a,n){function i(v,d){return _Q.coerce(r,t,hCe,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<sCe.PTS_LINESONLY?"lines+markers":"lines";i("mode",f),Jv.hasMarkers(t)&&uCe(r,t,a,n,i,{gradient:!0}),Jv.hasLines(t)&&(fCe(r,t,a,n,i,{backoff:!0}),wQ(r,t,i),i("connectgaps")),Jv.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),cCe(r,t,n,i));var c=[];(Jv.hasMarkers(t)||Jv.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),c.push("points")),i("fill"),t.fill!=="none"&&(vCe(r,t,a,i),Jv.hasLines(t)||wQ(r,t,i)),(t.fill==="tonext"||t.fill==="toself")&&c.push("fills"),i("hoveron",c.join("+")||"points"),_Q.coerceSelectionMarkerOpacity(t,i)}});var kQ=N((c$e,AQ)=>{"use strict";var Z9=Gr();AQ.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 CQ=N((v$e,LQ)=>{"use strict";var $9=Fr(),dCe=mw(),pCe=Vg(),mCe=jg(),yCe=Wg().calcMarkerSize,SQ=["a","b","c"],qQ={a:["b","c"],b:["a","c"],c:["a","b"]};LQ.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<SQ.length;s++)if(f=SQ[s],!o[f]){for(v=o[qQ[f][0]],d=o[qQ[f][1]],c=new Array(v.length),u=0;u<v.length;u++)c[u]=i-v[u]-d[u];o[f]=c}var p=t._length,m=new Array(p),y,x,T,w,b,_;for(s=0;s<p;s++)y=o.a[s],x=o.b[s],T=o.c[s],$9(y)&&$9(x)&&$9(T)?(y=+y,x=+x,T=+T,w=n/(y+x+T),w!==1&&(y*=w,x*=w,T*=w),_=y,b=T-x,m[s]={x:b,y:_,a:y,b:x,c:T},l&&(m[s].id=l[s])):m[s]={x:!1,y:!1};return yCe(t,p),dCe(r,t),pCe(m,t),mCe(m,t),m}});var DQ=N((h$e,EQ)=>{"use strict";var gCe=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)}gCe(r,l,a,s)}});var RQ=N((d$e,PQ)=>{"use strict";var bCe=zw();PQ.exports=function(r,t,a,n){var i=bCe(r,t,a,n);if(!i||i[0].index===!1)return;var o=i[0];if(o.index===void 0){var l=1-o.y0/r.ya._length,s=r.xa._length,u=s*l/2,f=s-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),i}var c=o.cd[o.index],v=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[v.subplot]={_subplot:d};var m=v._module.formatLabels(c,v,p);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var y=c.hi||v.hoverinfo,x=[];function T(b,_){x.push(b._hovertitle+": "+_)}if(!v.hovertemplate){var w=y.split("+");w.indexOf("all")!==-1&&(w=["a","b","c"]),w.indexOf("a")!==-1&&T(d.aaxis,o.aLabel),w.indexOf("b")!==-1&&T(d.baxis,o.bLabel),w.indexOf("c")!==-1&&T(d.caxis,o.cLabel)}return o.extraText=x.join("<br>"),o.hovertemplate=v.hovertemplate,i}});var NQ=N((p$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 WQ=N((m$e,jQ)=>{"use strict";var UQ=Dr(),J9=Tr(),es=ke(),_l=es.strTranslate,y3=es._,Df=Sr(),g3=Xr(),s1=ev(),K9=Mt().extendFlat,xCe=va(),Qs=Gr(),IQ=Fi(),FQ=Fn(),GQ=lf(),OQ=GQ.freeMode,_Ce=GQ.rectMode,Q9=Qc(),wCe=dl().prepSelect,TCe=dl().selectOnClick,MCe=dl().clearOutline,ACe=dl().clearSelectionsCache,YQ=qa();function VQ(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}jQ.exports=VQ;var wl=VQ.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),xCe.generalUpdatePerTraceModule(t.graphDiv,t,e,a),t.layers.plotbg.select("path").call(Df.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=UQ.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 Kv=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,m,y,x,T,w;s>Kv*u?(x=u,y=x*Kv):(y=s,x=y/Kv),T=o*y/s,w=l*x/u,p=r.l+r.w*n-y/2,m=r.t+r.h*(1-i)-x/2,t.x0=p,t.y0=m,t.w=y,t.h=x,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"},s1(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(F){return F.a>=t.aaxis.range[0]&&F.a<=t.aaxis.range[1]&&F.b>=t.baxis.range[1]&&F.b<=t.baxis.range[0]&&F.c>=t.caxis.range[1]&&F.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-w/2,i+w/2],_id:"y"},s1(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var b=t.yaxis.domain[0],_=t.aaxis=K9({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+w*Kv],anchor:"free",position:0,_id:"y",_length:y});s1(_,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:y});s1(k,t.graphDiv._fullLayout),k.setScale();var M=t.caxis=K9({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+w*Kv],anchor:"free",position:0,_id:"y",_length:y});s1(M,t.graphDiv._fullLayout),M.setScale();var q="M"+p+","+(m+x)+"h"+y+"l-"+y/2+",-"+x+"Z";t.clipDef.select("path").attr("d",q),t.layers.plotbg.select("path").attr("d",q);var C="M0,"+x+"h"+y+"l-"+y/2+",-"+x+"Z";t.clipDefRelative.select("path").attr("d",C);var D=_l(p,m);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",D),t.clipDefRelative.select("path").attr("transform",null);var P=_l(p-k._offset,m+x);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=_l(p+y/2,m)+"rotate(30)"+_l(0,-_._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var I=_l(p+y/2,m)+"rotate(-30)"+_l(0,-M._offset);t.layers.caxis.attr("transform",I),t.layers.cgrid.attr("transform",I),t.drawAxes(!0),t.layers.aline.select("path").attr("d",_.showline?"M"+p+","+(m+x)+"l"+y/2+",-"+x:"M0,0").call(Df.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(m+x)+"h"+y:"M0,0").call(Df.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",M.showline?"M"+(p+y/2)+","+m+"l"+y/2+","+x:"M0,0").call(Df.stroke,M.linecolor||"#000").style("stroke-width",(M.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=kCe(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),m=d*(e.linewidth||1)/2,y=d*e.ticklen,x=r.w,T=r.h,w=n==="b"?"M0,"+m+"l"+Math.sin(p)*y+","+Math.cos(p)*y:"M"+m+",0l"+Math.cos(p)*y+","+-Math.sin(p)*y,b={a:"M0,0l"+T+",-"+x/2,b:"M0,0l-"+x/2+",-"+T,c:"M0,0l-"+T+","+x/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:b,transFn:v,crisp:!1}),Qs.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:Qs.makeLabelFns(e,0,l)})};function kCe(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Oa=YQ.MINZOOM/2+.87,SCe="m-0.87,.5h"+Oa+"v3h-"+(Oa+5.2)+"l"+(Oa/2+2.6)+",-"+(Oa*.87+4.5)+"l2.6,1.5l-"+Oa/2+","+Oa*.87+"Z",qCe="m0.87,.5h-"+Oa+"v3h"+(Oa+5.2)+"l-"+(Oa/2+2.6)+",-"+(Oa*.87+4.5)+"l-2.6,1.5l"+Oa/2+","+Oa*.87+"Z",LCe="m0,1l"+Oa/2+","+Oa*.87+"l2.6,-1.5l-"+(Oa/2+2.6)+",-"+(Oa*.87+4.5)+"l-"+(Oa/2+2.6)+","+(Oa*.87+4.5)+"l2.6,1.5l"+Oa/2+",-"+Oa*.87+"Z",CCe="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",BQ=!0;wl.clearOutline=function(){ACe(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,I){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var F=e.dragOptions.dragmode=t._fullLayout.dragmode;OQ(F)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,F==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=x,e.dragOptions.doneFn=M,T(P,R,I)):F==="pan"?(e.dragOptions.moveFn=C,e.dragOptions.clickFn=x,e.dragOptions.doneFn=D,q(),e.clearOutline(t)):(_Ce(F)||OQ(F))&&wCe(P,R,I,e.dragOptions,F)}};var o,l,s,u,f,c,v,d,p,m;function y(P){var R={};return R[e.id+".aaxis.min"]=P.a,R[e.id+".baxis.min"]=P.b,R[e.id+".caxis.min"]=P.c,R}function x(P,R){var I=t._fullLayout.clickmode;HQ(t),P===2&&(t.emit("plotly_doubleclick",null),J9.call("_guiRelayout",t,y({a:0,b:0,c:0}))),I.indexOf("select")>-1&&P===1&&TCe(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),I.indexOf("event")>-1&&FQ.click(t,R,e.id)}function T(P,R,I){var F=r.getBoundingClientRect();o=R-F.left,l=I-F.top,t._fullLayout._calcInverseTransform(t);var B=t._fullLayout._invTransform,U=es.apply3DTransform(B)(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=Df.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),m=a.append("path").attr("class","zoombox-corners").attr("transform",_l(e.x0,e.y0)).style({fill:Df.background,stroke:Df.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(t)}function w(P,R){return 1-R/e.h}function b(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 I=o+P*n,F=l+R*i,B=Math.max(0,Math.min(1,w(o,l),w(I,F))),U=Math.max(0,Math.min(1,b(o,l),b(I,F))),G=Math.max(0,Math.min(1,_(o,l),_(I,F))),V=(B/2+G)*e.w,Y=(1-B/2-U)*e.w,X=(V+Y)/2,j=Y-V,J=(1-B)*e.h,ae=J-j/Kv;j<YQ.MINZOOM?(f=s,p.attr("d",v),m.attr("d","M0,0Z")):(f={a:s.a+B*u,b:s.b+U*u,c:s.c+G*u},p.attr("d",v+"M"+V+","+J+"H"+Y+"L"+X+","+ae+"L"+V+","+J+"Z"),m.attr("d","M"+o+","+l+CCe+"M"+V+","+J+SCe+"M"+Y+","+J+qCe+"M"+X+","+ae+LCe)),d||(p.transition().style("fill",c>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),m.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",y(f))}function M(){HQ(t),f!==s&&(J9.call("_guiRelayout",t,y(f)),BQ&&t.data&&t._context.showTips&&(es.notifier(y3(t,"Double-click to zoom back out"),"long",t),BQ=!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 I=P/e.xaxis._m,F=R/e.yaxis._m;f={a:s.a-F,b:s.b+(I+F)/2,c:s.c-(I-F)/2};var B=[f.a,f.b,f.c].sort(es.sorterAsc),U={a:B.indexOf(f.a),b:B.indexOf(f.b),c:B.indexOf(f.c)};B[0]<0&&(B[1]+B[0]/2<0?(B[2]+=B[0]+B[1],B[0]=B[1]=0):(B[2]+=B[0]/2,B[1]+=B[0]/2,B[0]=0),f={a:B[U.a],b:B[U.b],c:B[U.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var G=_l(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",G);var V=_l(-P,-R);e.clipDefRelative.select("path").attr("transform",V),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",y(f))}function D(){J9.call("_guiRelayout",t,y(f))}r.onmousemove=function(P){FQ.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 HQ(e){UQ.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var tT=N((y$e,XQ)=>{"use strict";var ECe=Ei(),DCe=zv().attributes,lt=Ni(),PCe=wo().overrideAll,eT=Mt().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=XQ.exports=PCe({domain:DCe({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 $Q=N((g$e,ZQ)=>{"use strict";var RCe=ke(),zCe=St(),NCe=zv().defaults;ZQ.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 RCe.coerce(v,d,o,T,w)}for(var m=0;m<f;m++){var y=u[m];r[y]?v=r[y]:v=r[y]={},d=zCe.newContainer(t,y,c),n.noUirevision||p("uirevision",t.uirevision);var x={};x[s]=[m/f,(m+1)/f],NCe(d,t,p,x),n.id=y,l(v,d,p,n)}}});var eee=N((b$e,QQ)=>{"use strict";var ICe=Sr(),FCe=St(),x3=ke(),OCe=$Q(),BCe=jm(),HCe=Wm(),UCe=Ym(),GCe=Gm(),YCe=Fw(),KQ=tT(),JQ=["aaxis","baxis","caxis"];QQ.exports=function(r,t,a){OCe(r,t,a,{type:"ternary",attributes:KQ,handleDefaults:VCe,font:t.font,paper_bgcolor:t.paper_bgcolor})};function VCe(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<JQ.length;u++)o=JQ[u],l=e[o]||{},s=FCe.newContainer(r,o),s._name=o,jCe(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 jCe(e,r,t,a){var n=KQ[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"),GCe(e,r,i,"linear"),HCe(e,r,i,"linear"),BCe(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),UCe(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(x3.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),YCe(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var ree=N(lo=>{"use strict";var WCe=WQ(),XCe=Nm().getSubplotCalcData,ZCe=ke().counterRegex,Qv="ternary";lo.name=Qv;var $Ce=lo.attr="subplot";lo.idRoot=Qv;lo.idRegex=lo.attrRegex=ZCe(Qv);var JCe=lo.attributes={};JCe[$Ce]={valType:"subplotid",dflt:"ternary",editType:"calc"};lo.layoutAttributes=tT();lo.supplyLayoutDefaults=eee();lo.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[Qv],i=0;i<n.length;i++){var o=n[i],l=XCe(a,Qv,o),s=t[o]._subplot;s||(s=new WCe({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[Qv]||[],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 aee=N((_$e,tee)=>{"use strict";tee.exports={attributes:X9(),supplyDefaults:MQ(),colorbar:Ed(),formatLabels:kQ(),calc:CQ(),plot:DQ(),style:mf().style,styleOnSelect:mf().styleOnSelect,hoverPoints:RQ(),selectPoints:Nw(),eventData:NQ(),moduleType:"trace",name:"scatterternary",basePlotModule:ree(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var iee=N((w$e,nee)=>{"use strict";nee.exports=aee()});var aT=N((T$e,lee)=>{"use strict";var wa=U2(),e0=Mt().extendFlat,oee=ko().axisHoverFormat;lee.exports={y:wa.y,x:wa.x,x0:wa.x0,y0:wa.y0,xhoverformat:oee("x"),yhoverformat:oee("y"),name:e0({},wa.name,{}),orientation:e0({},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:e0({},wa.boxpoints,{}),jitter:e0({},wa.jitter,{}),pointpos:e0({},wa.pointpos,{}),width:e0({},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=N((M$e,see)=>{"use strict";var nT=G2(),iT=ke().extendFlat;see.exports={violinmode:iT({},nT.boxmode,{}),violingap:iT({},nT.boxgap,{}),violingroupgap:iT({},nT.boxgroupgap,{})}});var hee=N((A$e,vee)=>{"use strict";var uee=ke(),KCe=Sr(),fee=$d(),cee=aT();vee.exports=function(r,t,a,n){function i(_,k){return uee.coerce(r,t,cee,_,k)}function o(_,k){return uee.coerce2(r,t,cee,_,k)}if(fee.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",KCe.addOpacity(t.line.color,.5));fee.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),m=o("box.line.color",f),y=o("box.line.width",c),x=i("box.visible",!!(d||p||m||y));x||(t.box={visible:!1});var T=o("meanline.color",f),w=o("meanline.width",c),b=i("meanline.visible",!!(T||w));b||(t.meanline={visible:!1}),i("quartilemethod"),i("zorder")}}});var pee=N((k$e,dee)=>{"use strict";var QCe=ke(),eEe=oT(),rEe=X8();dee.exports=function(r,t,a){function n(i,o){return QCe.coerce(r,t,eEe,i,o)}rEe._supply(r,t,a,n,"violin")}});var _3=N(Pf=>{"use strict";var tEe=ke(),aEe={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=aEe.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=tEe.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 gee=N((q$e,yee)=>{"use strict";var lT=ke(),sT=Gr(),nEe=J8(),mee=_3(),iEe=Gt().BADNUM;yee.exports=function(r,t){var a=nEe(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(mee.extractVal),d=c.bandwidth=lEe(t,c,v),p=c.span=sEe(t,c,i,d);if(c.min===c.max&&d===0)p=c.span=[c.min,c.max],c.density=[{v:1,t:p[0]}],c.bandwidth=d,s=Math.max(s,1);else{var m=p[1]-p[0],y=Math.ceil(m/(d/3)),x=m/y;if(!isFinite(x)||!isFinite(y))return lT.error("Something went wrong with computing the violin span"),a[0].t.empty=!0,a;var T=mee.makeKDE(c,t,v);c.density=new Array(y+1);for(var w=0;w<c.density.length;w++){var b=p[0]+w*x,_=T(b);c.density[w]={v:_,t:b},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 M=n._violinScaleGroupStats,q=t.scalegroup,C=M[q];C?(C.maxKDE=Math.max(C.maxKDE,s),C.maxCount=Math.max(C.maxCount,u)):M[q]={maxKDE:s,maxCount:u}}return a[0].t.labels.kde=lT._(r,"kde:"),a};function oEe(e,r,t){var a=Math.min(r,t/1.349);return 1.059*a*Math.pow(e,-.2)}function lEe(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(oEe(n,i,r.q3-r.q1),a/100)}function sEe(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===iEe?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 _ee=N((L$e,xee)=>{"use strict";var uEe=K8().setPositionOffset,bee=["v","h"];xee.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o<bee.length;o++){for(var l=bee[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)}uEe("violin",r,u,s)}}});var Tee=N((C$e,wee)=>{"use strict";var uT=Dr(),fT=ke(),fEe=Xr(),cT=Q8(),cEe=qw(),vEe=_3();wee.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=cEe(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return fEe.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 m=d.bPos,y=d.bdPos,x=t[d.valLetter+"axis"],T=t[d.posLetter+"axis"],w=p.side==="both",b=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(F){var B=uT.select(this),U=F.density,G=U.length,V=T.c2l(F.pos+m,!0),Y=T.l2p(V),X;if(p.width)X=d.maxKDE/y;else{var j=o._violinScaleGroupStats[p.scalegroup];X=p.scalemode==="count"?j.maxKDE/y*(j.maxCount/F.pts.length):j.maxKDE/y}var J,ae,te,se,$,fe,oe;if(b){for(fe=new Array(G),se=0;se<G;se++)oe=fe[se]={},oe[d.posLetter]=V+U[se].v/X,oe[d.valLetter]=x.c2l(U[se].t,!0);J=u(fe,p)}if(_){for(fe=new Array(G),$=0,se=G-1;$<G;$++,se--)oe=fe[$]={},oe[d.posLetter]=V-U[se].v/X,oe[d.valLetter]=x.c2l(U[se].t,!0);ae=u(fe,p)}if(w)te=J+"L"+ae.slice(1)+"Z";else{var ue=[Y,x.c2p(U[0].t)],ce=[Y,x.c2p(U[G-1].t)];p.orientation==="h"&&(ue.reverse(),ce.reverse()),b?te="M"+ue+"L"+J.slice(1)+"L"+ce:te="M"+ce+"L"+ae.slice(1)+"L"+ue}B.attr("d",te),F.posCenterPx=Y,F.posDensityScale=X*y,F.path=B.node(),F.pathLength=F.path.getTotalLength()/(w?2:1)});var M=p.box,q=M.width,C=(M.line||{}).width,D,P;w?(D=y*q,P=0):b?(D=[0,y*q/2],P=C*{x:1,y:-1}[d.posLetter]):(D=[y*q/2,0],P=C*{x:-1,y:1}[d.posLetter]),cT.plotBoxAndWhiskers(c,{pos:T,val:x},p,{bPos:m,bdPos:D,bPosPxOffset:P}),cT.plotBoxMean(c,{pos:T,val:x},p,{bPos:m,bdPos:D,bPosPxOffset:P});var R;!p.box.visible&&p.meanline.visible&&(R=fT.identity);var I=c.selectAll("path.meanline").data(R||[]);I.enter().append("path").attr("class","meanline").style("fill","none").style("vector-effect",i?"none":"non-scaling-stroke"),I.exit().remove(),I.each(function(F){var B=x.c2p(F.mean,!0),U=vEe.getPositionOnKdePath(F,p,B);uT.select(this).attr("d",p.orientation==="h"?"M"+B+","+U[0]+"V"+U[1]:"M"+U[0]+","+B+"H"+U[1])}),cT.plotPoints(c,{x:l,y:s},p,d)})}});var kee=N((E$e,Aee)=>{"use strict";var Mee=Dr(),r0=Sr(),hEe=mf().stylePoints;Aee.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(r0.stroke,n.line.color).call(r0.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(r0.stroke,l.color).call(r0.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(r0.stroke,s.color),i.selectAll("path.meanline").style(f).call(r0.stroke,s.color),hEe(i,n,r)})}});var Cee=N((D$e,Lee)=>{"use strict";var dEe=Sr(),vT=ke(),pEe=Gr(),See=i9(),qee=_3();Lee.exports=function(r,t,a,n,i){i||(i={});var o=i.hoverLayer,l=r.cd,s=l[0].trace,u=s.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,v=[],d,p;if(f||c){var m=See.hoverOnBoxes(r,t,a,n);if(c&&m.length>0){var y=r.xa,x=r.ya,T,w,b,_,k;s.orientation==="h"?(k=t,T="y",b=x,w="x",_=y):(k=a,T="x",b=y,w="y",_=x);var M=l[r.index];if(k>=M.span[0]&&k<=M.span[1]){var q=vT.extendFlat({},r),C=_.c2p(k,!0),D=qee.getKdeValue(M,s,k),P=qee.getPositionOnKdePath(M,s,C),R=b._offset,I=b._length;q[T+"0"]=P[0],q[T+"1"]=P[1],q[w+"0"]=q[w+"1"]=C,q[w+"Label"]=w+": "+pEe.hoverLabelText(_,k,s[w+"hoverformat"])+", "+l[0].t.labels.kde+" "+D.toFixed(3);for(var F=0,B=0;B<m.length;B++)if(m[B].attr==="med"){F=B;break}q.spikeDistance=m[F].spikeDistance;var U=T+"Spike";q[U]=m[F][U],m[F].spikeDistance=void 0,m[F][U]=void 0,q.hovertemplate=!1,v.push(q),p={},p[T+"1"]=vT.constrain(R+P[0],R,R+I),p[T+"2"]=vT.constrain(R+P[1],R,R+I),p[w+"1"]=p[w+"2"]=_._offset+C}}f&&(v=v.concat(m))}u.indexOf("points")!==-1&&(d=See.hoverOnPoints(r,t,a));var G=o.selectAll(".violinline-"+s.uid).data(p?[0]:[]);return G.enter().append("line").classed("violinline-"+s.uid,!0).attr("stroke-width",1.5),G.exit().remove(),G.attr(p).call(dEe.stroke,r.color),n==="closest"?d?[d]:v:(d&&v.push(d),v)}});var Dee=N((P$e,Eee)=>{"use strict";Eee.exports={attributes:aT(),layoutAttributes:oT(),supplyDefaults:hee(),crossTraceDefaults:$d().crossTraceDefaults,supplyLayoutDefaults:pee(),calc:gee(),crossTraceCalc:_ee(),plot:Tee(),style:kee(),styleOnSelect:mf().styleOnSelect,hoverPoints:Cee(),selectPoints:o9(),moduleType:"trace",name:"violin",basePlotModule:Qi(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Ree=N((R$e,Pee)=>{"use strict";Pee.exports=Dee()});var t0=N((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={};dc(hT,{default:()=>yEe});var Nee,Iee,w3,Fee,Oee,Bee,Hee,Uee,mEe,yEe,dT=hc(()=>{"use strict";Nee=cs(Mt()),Iee=cs(Nn()),w3=cs(fi()),Fee=cs(Vi()),Oee=cs(t0()),Bee=["rgb","rgba","rgba256","hsl","hsla"],Hee=[],Uee=[];for(let e of Bee){let r=Oee.colormodel[e];Hee.push(`For the \`${e}\` colormodel, it is [${(r.zminDflt||r.min).join(", ")}].`),Uee.push(`For the \`${e}\` colormodel, it is [${(r.zmaxDflt||r.max).join(", ")}].`)}mEe={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:Bee,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.",Hee.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.",Uee.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:Fee.zorder},yEe=mEe});var Vee=N((N$e,Yee)=>{"use strict";var gEe=ke(),bEe=(dT(),un(hT)).default,Gee=t0(),xEe=Vl().IMAGE_URL_PREFIX;Yee.exports=function(r,t){function a(o,l){return gEe.coerce(r,t,bEe,o,l)}a("source"),t.source&&!t.source.match(xEe)&&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=Gee.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=Gee.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=N((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=N((F$e,jee)=>{jee.exports=Ou().EventEmitter});var Zee=N(T3=>{"use strict";T3.byteLength=wEe;T3.toByteArray=MEe;T3.fromByteArray=SEe;var Tl=[],so=[],_Ee=typeof Uint8Array!="undefined"?Uint8Array:Array,yT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Rf=0,Wee=yT.length;Rf<Wee;++Rf)Tl[Rf]=yT[Rf],so[yT.charCodeAt(Rf)]=Rf;var Rf,Wee;so[45]=62;so[95]=63;function Xee(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 wEe(e){var r=Xee(e),t=r[0],a=r[1];return(t+a)*3/4-a}function TEe(e,r,t){return(r+t)*3/4-t}function MEe(e){var r,t=Xee(e),a=t[0],n=t[1],i=new _Ee(TEe(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 AEe(e){return Tl[e>>18&63]+Tl[e>>12&63]+Tl[e>>6&63]+Tl[e&63]}function kEe(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(AEe(a));return n.join("")}function SEe(e){for(var r,t=e.length,a=t%3,n=[],i=16383,o=0,l=t-a;o<l;o+=i)n.push(kEe(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 $ee=N(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,m=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<<n|l,u+=n;u>0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=m*128}});var l0=N(o0=>{"use strict";var bT=Zee(),n0=$ee(),Jee=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;o0.Buffer=Ve;o0.SlowBuffer=PEe;o0.INSPECT_MAX_BYTES=50;var M3=2147483647;o0.kMaxLength=M3;Ve.TYPED_ARRAY_SUPPORT=qEe();!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 qEe(){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>M3)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 rre(e,r,t)}Ve.poolSize=8192;function rre(e,r,t){if(typeof e=="string")return CEe(e,r);if(ArrayBuffer.isView(e))return EEe(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(Ml(e,ArrayBuffer)||e&&Ml(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ml(e,SharedArrayBuffer)||e&&Ml(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=DEe(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 rre(e,r,t)};Object.setPrototypeOf(Ve.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ve,Uint8Array);function tre(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function LEe(e,r,t){return tre(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 LEe(e,r,t)};function TT(e){return tre(e),ts(e<0?0:MT(e)|0)}Ve.allocUnsafe=function(e){return TT(e)};Ve.allocUnsafeSlow=function(e){return TT(e)};function CEe(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Ve.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=are(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:MT(e.length)|0,t=ts(r);for(let a=0;a<r;a+=1)t[a]=e[a]&255;return t}function EEe(e){if(Ml(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 DEe(e){if(Ve.isBuffer(e)){let r=MT(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 MT(e){if(e>=M3)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M3.toString(16)+" bytes");return e|0}function PEe(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(Ml(r,Uint8Array)&&(r=Ve.from(r,r.offset,r.byteLength)),Ml(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(Ml(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 are(e,r){if(Ve.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Ml(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 vre(e).length;default:if(n)return a?-1:wT(e).length;r=(""+r).toLowerCase(),n=!0}}Ve.byteLength=are;function REe(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 YEe(this,r,t);case"utf8":case"utf-8":return ire(this,r,t);case"ascii":return UEe(this,r,t);case"latin1":case"binary":return GEe(this,r,t);case"base64":return BEe(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return VEe(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}Ve.prototype._isBuffer=!0;function zf(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)zf(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)zf(this,t,t+3),zf(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)zf(this,t,t+7),zf(this,t+1,t+6),zf(this,t+2,t+5),zf(this,t+3,t+4);return this};Ve.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?ire(this,0,r):REe.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=o0.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};Jee&&(Ve.prototype[Jee]=Ve.prototype.inspect);Ve.prototype.compare=function(r,t,a,n,i){if(Ml(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 nre(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:Kee(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):Kee(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function Kee(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 nre(this,r,t,a,!0)};Ve.prototype.lastIndexOf=function(r,t,a){return nre(this,r,t,a,!1)};function zEe(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 NEe(e,r,t,a){return A3(wT(r,e.length-t),e,t,a)}function IEe(e,r,t,a){return A3(ZEe(r),e,t,a)}function FEe(e,r,t,a){return A3(vre(r),e,t,a)}function OEe(e,r,t,a){return A3($Ee(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 zEe(this,r,t,a);case"utf8":case"utf-8":return NEe(this,r,t,a);case"ascii":case"latin1":case"binary":return IEe(this,r,t,a);case"base64":return FEe(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return OEe(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 BEe(e,r,t){return r===0&&t===e.length?bT.fromByteArray(e):bT.fromByteArray(e.slice(r,t))}function ire(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 HEe(a)}var Qee=4096;function HEe(e){let r=e.length;if(r<=Qee)return String.fromCharCode.apply(String,e);let t="",a=0;for(;a<r;)t+=String.fromCharCode.apply(String,e.slice(a,a+=Qee));return t}function UEe(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 GEe(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 YEe(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+=JEe[e[i]];return n}function VEe(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,i0(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&u1(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,i0(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&u1(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,i0(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&u1(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,i0(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&u1(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),n0.read(this,r,!0,23,4)};Ve.prototype.readFloatBE=function(r,t){return r=r>>>0,t||an(r,4,this.length),n0.read(this,r,!1,23,4)};Ve.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||an(r,8,this.length),n0.read(this,r,!0,52,8)};Ve.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||an(r,8,this.length),n0.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 ore(e,r,t,a,n){cre(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 lre(e,r,t,a,n){cre(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 ore(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Ve.prototype.writeBigUInt64BE=eu(function(r,t=0){return lre(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 ore(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Ve.prototype.writeBigInt64BE=eu(function(r,t=0){return lre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function sre(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 ure(e,r,t,a,n){return r=+r,t=t>>>0,n||sre(e,r,t,4,34028234663852886e22,-34028234663852886e22),n0.write(e,r,t,a,23,4),t+4}Ve.prototype.writeFloatLE=function(r,t,a){return ure(this,r,t,!0,a)};Ve.prototype.writeFloatBE=function(r,t,a){return ure(this,r,t,!1,a)};function fre(e,r,t,a,n){return r=+r,t=t>>>0,n||sre(e,r,t,8,17976931348623157e292,-17976931348623157e292),n0.write(e,r,t,a,52,8),t+8}Ve.prototype.writeDoubleLE=function(r,t,a){return fre(this,r,t,!0,a)};Ve.prototype.writeDoubleBE=function(r,t,a){return fre(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 a0={};function AT(e,r,t){a0[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}`}}}AT("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);AT("ERR_INVALID_ARG_TYPE",function(e,r){return`The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError);AT("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=ere(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=ere(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function ere(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 jEe(e,r,t){i0(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&u1(r,e.length-(t+1))}function cre(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 a0.ERR_OUT_OF_RANGE("value",l,e)}jEe(a,n,i)}function i0(e,r){if(typeof e!="number")throw new a0.ERR_INVALID_ARG_TYPE(r,"number",e)}function u1(e,r,t){throw Math.floor(e)!==e?(i0(e,t),new a0.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new a0.ERR_BUFFER_OUT_OF_BOUNDS:new a0.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var WEe=/[^+/0-9A-Za-z-_]/g;function XEe(e){if(e=e.split("=")[0],e=e.trim().replace(WEe,""),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 ZEe(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function $Ee(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 vre(e){return bT.toByteArray(XEe(e))}function A3(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 Ml(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 JEe=(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"?KEe:e}function KEe(){throw new Error("BigInt not supported")}});var k3=N((G$e,hre)=>{"use strict";hre.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 f1=N((Y$e,dre)=>{"use strict";var QEe=k3();dre.exports=function(){return QEe()&&!!Symbol.toStringTag}});var S3=N((V$e,pre)=>{"use strict";pre.exports=Object});var yre=N((j$e,mre)=>{"use strict";mre.exports=Error});var bre=N((W$e,gre)=>{"use strict";gre.exports=EvalError});var _re=N((X$e,xre)=>{"use strict";xre.exports=RangeError});var Tre=N((Z$e,wre)=>{"use strict";wre.exports=ReferenceError});var ST=N(($$e,Mre)=>{"use strict";Mre.exports=SyntaxError});var s0=N((J$e,Are)=>{"use strict";Are.exports=TypeError});var Sre=N((K$e,kre)=>{"use strict";kre.exports=URIError});var Lre=N((Q$e,qre)=>{"use strict";qre.exports=Math.abs});var Ere=N((eJe,Cre)=>{"use strict";Cre.exports=Math.floor});var Pre=N((rJe,Dre)=>{"use strict";Dre.exports=Math.max});var zre=N((tJe,Rre)=>{"use strict";Rre.exports=Math.min});var Ire=N((aJe,Nre)=>{"use strict";Nre.exports=Math.pow});var Ore=N((nJe,Fre)=>{"use strict";Fre.exports=Math.round});var Hre=N((iJe,Bre)=>{"use strict";Bre.exports=Number.isNaN||function(r){return r!==r}});var Gre=N((oJe,Ure)=>{"use strict";var eDe=Hre();Ure.exports=function(r){return eDe(r)||r===0?r:r<0?-1:1}});var Vre=N((lJe,Yre)=>{"use strict";Yre.exports=Object.getOwnPropertyDescriptor});var Nf=N((sJe,jre)=>{"use strict";var q3=Vre();if(q3)try{q3([],"length")}catch(e){q3=null}jre.exports=q3});var c1=N((uJe,Wre)=>{"use strict";var L3=Object.defineProperty||!1;if(L3)try{L3({},"a",{value:1})}catch(e){L3=!1}Wre.exports=L3});var $re=N((fJe,Zre)=>{"use strict";var Xre=typeof Symbol!="undefined"&&Symbol,rDe=k3();Zre.exports=function(){return typeof Xre!="function"||typeof Symbol!="function"||typeof Xre("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:rDe()}});var qT=N((cJe,Jre)=>{"use strict";Jre.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var LT=N((vJe,Kre)=>{"use strict";var tDe=S3();Kre.exports=tDe.getPrototypeOf||null});var rte=N((hJe,ete)=>{"use strict";var aDe="Function.prototype.bind called on incompatible ",nDe=Object.prototype.toString,iDe=Math.max,oDe="[object Function]",Qre=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},lDe=function(r,t){for(var a=[],n=t||0,i=0;n<r.length;n+=1,i+=1)a[i]=r[n];return a},sDe=function(e,r){for(var t="",a=0;a<e.length;a+=1)t+=e[a],a+1<e.length&&(t+=r);return t};ete.exports=function(r){var t=this;if(typeof t!="function"||nDe.apply(t)!==oDe)throw new TypeError(aDe+t);for(var a=lDe(arguments,1),n,i=function(){if(this instanceof n){var f=t.apply(this,Qre(a,arguments));return Object(f)===f?f:this}return t.apply(r,Qre(a,arguments))},o=iDe(0,t.length-a.length),l=[],s=0;s<o;s++)l[s]="$"+s;if(n=Function("binder","return function ("+sDe(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 u0=N((dJe,tte)=>{"use strict";var uDe=rte();tte.exports=Function.prototype.bind||uDe});var C3=N((pJe,ate)=>{"use strict";ate.exports=Function.prototype.call});var E3=N((mJe,nte)=>{"use strict";nte.exports=Function.prototype.apply});var ote=N((yJe,ite)=>{"use strict";ite.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var CT=N((gJe,lte)=>{"use strict";var fDe=u0(),cDe=E3(),vDe=C3(),hDe=ote();lte.exports=hDe||fDe.call(vDe,cDe)});var D3=N((bJe,ste)=>{"use strict";var dDe=u0(),pDe=s0(),mDe=C3(),yDe=CT();ste.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new pDe("a function is required");return yDe(dDe,mDe,r)}});var dte=N((xJe,hte)=>{"use strict";var gDe=D3(),ute=Nf(),cte;try{cte=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var ET=!!cte&&ute&&ute(Object.prototype,"__proto__"),vte=Object,fte=vte.getPrototypeOf;hte.exports=ET&&typeof ET.get=="function"?gDe([ET.get]):typeof fte=="function"?function(r){return fte(r==null?r:vte(r))}:!1});var P3=N((_Je,gte)=>{"use strict";var pte=qT(),mte=LT(),yte=dte();gte.exports=pte?function(r){return pte(r)}:mte?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return mte(r)}:yte?function(r){return yte(r)}:null});var DT=N((wJe,bte)=>{"use strict";var bDe=Function.prototype.call,xDe=Object.prototype.hasOwnProperty,_De=u0();bte.exports=_De.call(bDe,xDe)});var N3=N((TJe,Ate)=>{"use strict";var st,wDe=S3(),TDe=yre(),MDe=bre(),ADe=_re(),kDe=Tre(),h0=ST(),v0=s0(),SDe=Sre(),qDe=Lre(),LDe=Ere(),CDe=Pre(),EDe=zre(),DDe=Ire(),PDe=Ore(),RDe=Gre(),Tte=Function,PT=function(e){try{return Tte('"use strict"; return ('+e+").constructor;")()}catch(r){}},v1=Nf(),zDe=c1(),RT=function(){throw new v0},NDe=v1?(function(){try{return arguments.callee,RT}catch(e){try{return v1(arguments,"callee").get}catch(r){return RT}}})():RT,f0=$re()(),nn=P3(),IDe=LT(),FDe=qT(),Mte=E3(),h1=C3(),c0={},ODe=typeof Uint8Array=="undefined"||!nn?st:nn(Uint8Array),If={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?st:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?st:ArrayBuffer,"%ArrayIteratorPrototype%":f0&&nn?nn([][Symbol.iterator]()):st,"%AsyncFromSyncIteratorPrototype%":st,"%AsyncFunction%":c0,"%AsyncGenerator%":c0,"%AsyncGeneratorFunction%":c0,"%AsyncIteratorPrototype%":c0,"%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%":TDe,"%eval%":eval,"%EvalError%":MDe,"%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%":Tte,"%GeneratorFunction%":c0,"%Int8Array%":typeof Int8Array=="undefined"?st:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?st:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?st:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f0&&nn?nn(nn([][Symbol.iterator]())):st,"%JSON%":typeof JSON=="object"?JSON:st,"%Map%":typeof Map=="undefined"?st:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!f0||!nn?st:nn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":wDe,"%Object.getOwnPropertyDescriptor%":v1,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?st:Promise,"%Proxy%":typeof Proxy=="undefined"?st:Proxy,"%RangeError%":ADe,"%ReferenceError%":kDe,"%Reflect%":typeof Reflect=="undefined"?st:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?st:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!f0||!nn?st:nn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?st:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f0&&nn?nn(""[Symbol.iterator]()):st,"%Symbol%":f0?Symbol:st,"%SyntaxError%":h0,"%ThrowTypeError%":NDe,"%TypedArray%":ODe,"%TypeError%":v0,"%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%":SDe,"%WeakMap%":typeof WeakMap=="undefined"?st:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?st:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?st:WeakSet,"%Function.prototype.call%":h1,"%Function.prototype.apply%":Mte,"%Object.defineProperty%":zDe,"%Object.getPrototypeOf%":IDe,"%Math.abs%":qDe,"%Math.floor%":LDe,"%Math.max%":CDe,"%Math.min%":EDe,"%Math.pow%":DDe,"%Math.round%":PDe,"%Math.sign%":RDe,"%Reflect.getPrototypeOf%":FDe};if(nn)try{null.error}catch(e){xte=nn(nn(e)),If["%Error.prototype%"]=xte}var xte,BDe=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 If[r]=t,t},_te={__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"]},d1=u0(),R3=DT(),HDe=d1.call(h1,Array.prototype.concat),UDe=d1.call(Mte,Array.prototype.splice),wte=d1.call(h1,String.prototype.replace),z3=d1.call(h1,String.prototype.slice),GDe=d1.call(h1,RegExp.prototype.exec),YDe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,VDe=/\\(\\)?/g,jDe=function(r){var t=z3(r,0,1),a=z3(r,-1);if(t==="%"&&a!=="%")throw new h0("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new h0("invalid intrinsic syntax, expected opening `%`");var n=[];return wte(r,YDe,function(i,o,l,s){n[n.length]=l?wte(s,VDe,"$1"):o||i}),n},WDe=function(r,t){var a=r,n;if(R3(_te,a)&&(n=_te[a],a="%"+n[0]+"%"),R3(If,a)){var i=If[a];if(i===c0&&(i=BDe(a)),typeof i=="undefined"&&!t)throw new v0("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new h0("intrinsic "+r+" does not exist!")};Ate.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new v0("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new v0('"allowMissing" argument must be a boolean');if(GDe(/^%?[^%]*%?$/,r)===null)throw new h0("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=jDe(r),n=a.length>0?a[0]:"",i=WDe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],UDe(a,HDe([0,1],u)));for(var f=1,c=!0;f<a.length;f+=1){var v=a[f],d=z3(v,0,1),p=z3(v,-1);if((d==='"'||d==="'"||d==="`"||p==='"'||p==="'"||p==="`")&&d!==p)throw new h0("property names with quotes must have matching quotes");if((v==="constructor"||!c)&&(s=!0),n+="."+v,o="%"+n+"%",R3(If,o))l=If[o];else if(l!=null){if(!(v in l)){if(!t)throw new v0("base intrinsic for "+r+" exists, but the property is not available.");return}if(v1&&f+1>=a.length){var m=v1(l,v);c=!!m,c&&"get"in m&&!("originalValue"in m.get)?l=m.get:l=l[v]}else c=R3(l,v),l=l[v];c&&!s&&(If[o]=l)}}return l}});var Ff=N((MJe,qte)=>{"use strict";var kte=N3(),Ste=D3(),XDe=Ste([kte("%String.prototype.indexOf%")]);qte.exports=function(r,t){var a=kte(r,!!t);return typeof a=="function"&&XDe(r,".prototype.")>-1?Ste([a]):a}});var Ete=N((AJe,Cte)=>{"use strict";var ZDe=f1()(),$De=Ff(),zT=$De("Object.prototype.toString"),I3=function(r){return ZDe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:zT(r)==="[object Arguments]"},Lte=function(r){return I3(r)?!0:r!==null&&typeof r=="object"&&"length"in r&&typeof r.length=="number"&&r.length>=0&&zT(r)!=="[object Array]"&&"callee"in r&&zT(r.callee)==="[object Function]"},JDe=(function(){return I3(arguments)})();I3.isLegacyArguments=Lte;Cte.exports=JDe?I3:Lte});var Ite=N((kJe,Nte)=>{"use strict";var Dte=Ff(),KDe=f1()(),QDe=DT(),ePe=Nf(),FT;KDe?(Pte=Dte("RegExp.prototype.exec"),NT={},F3=function(){throw NT},IT={toString:F3,valueOf:F3},typeof Symbol.toPrimitive=="symbol"&&(IT[Symbol.toPrimitive]=F3),FT=function(r){if(!r||typeof r!="object")return!1;var t=ePe(r,"lastIndex"),a=t&&QDe(t,"value");if(!a)return!1;try{Pte(r,IT)}catch(n){return n===NT}}):(Rte=Dte("Object.prototype.toString"),zte="[object RegExp]",FT=function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:Rte(r)===zte});var Pte,NT,F3,IT,Rte,zte;Nte.exports=FT});var Ote=N((SJe,Fte)=>{"use strict";var rPe=Ff(),tPe=Ite(),aPe=rPe("RegExp.prototype.exec"),nPe=s0();Fte.exports=function(r){if(!tPe(r))throw new nPe("`regex` must be a RegExp");return function(a){return aPe(r,a)!==null}}});var Hte=N((qJe,Bte)=>{"use strict";var iPe=function*(){}.constructor;Bte.exports=()=>iPe});var Vte=N((LJe,Yte)=>{"use strict";var Gte=Ff(),oPe=Ote(),lPe=oPe(/^\s*(?:function)?\*/),sPe=f1()(),Ute=P3(),uPe=Gte("Object.prototype.toString"),fPe=Gte("Function.prototype.toString"),cPe=Hte();Yte.exports=function(r){if(typeof r!="function")return!1;if(lPe(fPe(r)))return!0;if(!sPe){var t=uPe(r);return t==="[object GeneratorFunction]"}if(!Ute)return!1;var a=cPe();return a&&Ute(r)===a.prototype}});var Zte=N((CJe,Xte)=>{"use strict";var Wte=Function.prototype.toString,d0=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,BT,O3;if(typeof d0=="function"&&typeof Object.defineProperty=="function")try{BT=Object.defineProperty({},"length",{get:function(){throw O3}}),O3={},d0(function(){throw 42},null,BT)}catch(e){e!==O3&&(d0=null)}else d0=null;var vPe=/^\s*class\b/,HT=function(r){try{var t=Wte.call(r);return vPe.test(t)}catch(a){return!1}},OT=function(r){try{return HT(r)?!1:(Wte.call(r),!0)}catch(t){return!1}},B3=Object.prototype.toString,hPe="[object Object]",dPe="[object Function]",pPe="[object GeneratorFunction]",mPe="[object HTMLAllCollection]",yPe="[object HTML document.all class]",gPe="[object HTMLCollection]",bPe=typeof Symbol=="function"&&!!Symbol.toStringTag,xPe=!(0 in[,]),UT=function(){return!1};typeof document=="object"&&(jte=document.all,B3.call(jte)===B3.call(document.all)&&(UT=function(r){if((xPe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=B3.call(r);return(t===mPe||t===yPe||t===gPe||t===hPe)&&r("")==null}catch(a){}return!1}));var jte;Xte.exports=d0?function(r){if(UT(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{d0(r,null,BT)}catch(t){if(t!==O3)return!1}return!HT(r)&&OT(r)}:function(r){if(UT(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(bPe)return OT(r);if(HT(r))return!1;var t=B3.call(r);return t!==dPe&&t!==pPe&&!/^\[object HTML/.test(t)?!1:OT(r)}});var Kte=N((EJe,Jte)=>{"use strict";var _Pe=Zte(),wPe=Object.prototype.toString,$te=Object.prototype.hasOwnProperty,TPe=function(r,t,a){for(var n=0,i=r.length;n<i;n++)$te.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)},APe=function(r,t,a){for(var n in r)$te.call(r,n)&&(a==null?t(r[n],n,r):t.call(a,r[n],n,r))};function kPe(e){return wPe.call(e)==="[object Array]"}Jte.exports=function(r,t,a){if(!_Pe(t))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=a),kPe(r)?TPe(r,t,n):typeof r=="string"?MPe(r,t,n):APe(r,t,n)}});var eae=N((DJe,Qte)=>{"use strict";Qte.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var tae=N((PJe,rae)=>{"use strict";var GT=eae(),SPe=typeof globalThis=="undefined"?window:globalThis;rae.exports=function(){for(var r=[],t=0;t<GT.length;t++)typeof SPe[GT[t]]=="function"&&(r[r.length]=GT[t]);return r}});var YT=N((RJe,iae)=>{"use strict";var aae=c1(),qPe=ST(),p0=s0(),nae=Nf();iae.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new p0("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new p0("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new p0("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new p0("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new p0("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new p0("`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=!!nae&&nae(r,t);if(aae)aae(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new qPe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var jT=N((zJe,lae)=>{"use strict";var VT=c1(),oae=function(){return!!VT};oae.hasArrayLengthDefineBug=function(){if(!VT)return null;try{return VT([],"length",{value:1}).length!==1}catch(r){return!0}};lae.exports=oae});var vae=N((NJe,cae)=>{"use strict";var LPe=N3(),sae=YT(),CPe=jT()(),uae=Nf(),fae=s0(),EPe=LPe("%Math.floor%");cae.exports=function(r,t){if(typeof r!="function")throw new fae("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||EPe(t)!==t)throw new fae("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&uae){var o=uae(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(CPe?sae(r,"length",t,!0,!0):sae(r,"length",t)),r}});var dae=N((IJe,hae)=>{"use strict";var DPe=u0(),PPe=E3(),RPe=CT();hae.exports=function(){return RPe(DPe,PPe,arguments)}});var p1=N((FJe,H3)=>{"use strict";var zPe=vae(),pae=c1(),NPe=D3(),mae=dae();H3.exports=function(r){var t=NPe(arguments),a=1+r.length-(arguments.length-1);return zPe(t,a>0?a:0,!0)};pae?pae(H3.exports,"apply",{value:mae}):H3.exports.apply=mae});var $T=N((OJe,xae)=>{"use strict";var Y3=Kte(),IPe=tae(),yae=p1(),XT=Ff(),G3=Nf(),U3=P3(),FPe=XT("Object.prototype.toString"),bae=f1()(),gae=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};bae&&G3&&U3?Y3(WT,function(e){var r=new gae[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=yae(a.get);V3["$"+e]=i}}}):Y3(WT,function(e){var r=new gae[e],t=r.slice||r.set;if(t){var a=yae(t);V3["$"+e]=a}});function BPe(e){var r=!1;return Y3(V3,function(t,a){if(!r)try{"$"+t(e)===a&&(r=ZT(a,1))}catch(n){}}),r}function HPe(e){var r=!1;return Y3(V3,function(t,a){if(!r)try{t(e),r=ZT(a,1)}catch(n){}}),r}function UPe(e){return OPe(WT,e)>-1}xae.exports=function(r){if(!r||typeof r!="object")return!1;if(!bae){var t=ZT(FPe(r),8,-1);return UPe(t)?t:t!=="Object"?!1:HPe(r)}return G3?BPe(r):null}});var wae=N((BJe,_ae)=>{"use strict";var GPe=$T();_ae.exports=function(r){return!!GPe(r)}});var QT=N(ut=>{"use strict";var YPe=Ete(),VPe=Vte(),Go=$T(),Tae=wae();function m0(e){return e.call.bind(e)}var Mae=typeof BigInt!="undefined",Aae=typeof Symbol!="undefined",uo=m0(Object.prototype.toString),jPe=m0(Number.prototype.valueOf),WPe=m0(String.prototype.valueOf),XPe=m0(Boolean.prototype.valueOf);Mae&&(kae=m0(BigInt.prototype.valueOf));var kae;Aae&&(Sae=m0(Symbol.prototype.valueOf));var Sae;function y1(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}ut.isArgumentsObject=YPe;ut.isGeneratorFunction=VPe;ut.isTypedArray=Tae;function ZPe(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}ut.isPromise=ZPe;function $Pe(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Tae(e)||Lae(e)}ut.isArrayBufferView=$Pe;function JPe(e){return Go(e)==="Uint8Array"}ut.isUint8Array=JPe;function KPe(e){return Go(e)==="Uint8ClampedArray"}ut.isUint8ClampedArray=KPe;function QPe(e){return Go(e)==="Uint16Array"}ut.isUint16Array=QPe;function eRe(e){return Go(e)==="Uint32Array"}ut.isUint32Array=eRe;function rRe(e){return Go(e)==="Int8Array"}ut.isInt8Array=rRe;function tRe(e){return Go(e)==="Int16Array"}ut.isInt16Array=tRe;function aRe(e){return Go(e)==="Int32Array"}ut.isInt32Array=aRe;function nRe(e){return Go(e)==="Float32Array"}ut.isFloat32Array=nRe;function iRe(e){return Go(e)==="Float64Array"}ut.isFloat64Array=iRe;function oRe(e){return Go(e)==="BigInt64Array"}ut.isBigInt64Array=oRe;function lRe(e){return Go(e)==="BigUint64Array"}ut.isBigUint64Array=lRe;function j3(e){return uo(e)==="[object Map]"}j3.working=typeof Map!="undefined"&&j3(new Map);function sRe(e){return typeof Map=="undefined"?!1:j3.working?j3(e):e instanceof Map}ut.isMap=sRe;function W3(e){return uo(e)==="[object Set]"}W3.working=typeof Set!="undefined"&&W3(new Set);function uRe(e){return typeof Set=="undefined"?!1:W3.working?W3(e):e instanceof Set}ut.isSet=uRe;function X3(e){return uo(e)==="[object WeakMap]"}X3.working=typeof WeakMap!="undefined"&&X3(new WeakMap);function fRe(e){return typeof WeakMap=="undefined"?!1:X3.working?X3(e):e instanceof WeakMap}ut.isWeakMap=fRe;function KT(e){return uo(e)==="[object WeakSet]"}KT.working=typeof WeakSet!="undefined"&&KT(new WeakSet);function cRe(e){return KT(e)}ut.isWeakSet=cRe;function Z3(e){return uo(e)==="[object ArrayBuffer]"}Z3.working=typeof ArrayBuffer!="undefined"&&Z3(new ArrayBuffer);function qae(e){return typeof ArrayBuffer=="undefined"?!1:Z3.working?Z3(e):e instanceof ArrayBuffer}ut.isArrayBuffer=qae;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 Lae(e){return typeof DataView=="undefined"?!1:$3.working?$3(e):e instanceof DataView}ut.isDataView=Lae;var JT=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function m1(e){return uo(e)==="[object SharedArrayBuffer]"}function Cae(e){return typeof JT=="undefined"?!1:(typeof m1.working=="undefined"&&(m1.working=m1(new JT)),m1.working?m1(e):e instanceof JT)}ut.isSharedArrayBuffer=Cae;function vRe(e){return uo(e)==="[object AsyncFunction]"}ut.isAsyncFunction=vRe;function hRe(e){return uo(e)==="[object Map Iterator]"}ut.isMapIterator=hRe;function dRe(e){return uo(e)==="[object Set Iterator]"}ut.isSetIterator=dRe;function pRe(e){return uo(e)==="[object Generator]"}ut.isGeneratorObject=pRe;function mRe(e){return uo(e)==="[object WebAssembly.Module]"}ut.isWebAssemblyCompiledModule=mRe;function Eae(e){return y1(e,jPe)}ut.isNumberObject=Eae;function Dae(e){return y1(e,WPe)}ut.isStringObject=Dae;function Pae(e){return y1(e,XPe)}ut.isBooleanObject=Pae;function Rae(e){return Mae&&y1(e,kae)}ut.isBigIntObject=Rae;function zae(e){return Aae&&y1(e,Sae)}ut.isSymbolObject=zae;function yRe(e){return Eae(e)||Dae(e)||Pae(e)||Rae(e)||zae(e)}ut.isBoxedPrimitive=yRe;function gRe(e){return typeof Uint8Array!="undefined"&&(qae(e)||Cae(e))}ut.isAnyArrayBuffer=gRe;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ut,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var eM=N((UJe,Nae)=>{Nae.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var oM=N(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},bRe=/%[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(bRe,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)||!y0(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={},Fae=/^$/;K3="false",K3=K3.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Fae=new RegExp("^"+K3+"$","i");var K3;ft.debuglog=function(e){if(e=e.toUpperCase(),!J3[e])if(Fae.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:_Re};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),nM(r)?t.showHidden=r:r&&ft._extend(t,r),Bf(t.showHidden)&&(t.showHidden=!1),Bf(t.depth)&&(t.depth=2),Bf(t.colors)&&(t.colors=!1),Bf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=xRe),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 xRe(e,r){var t=ru.styles[r];return t?"\x1B["+ru.colors[t][0]+"m"+e+"\x1B["+ru.colors[t][1]+"m":e}function _Re(e,r){return e}function wRe(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=TRe(e,r);if(n)return n;var i=Object.keys(r),o=wRe(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),b1(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return rM(r);if(i.length===0){if(Q3(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(g1(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(rb(r))return e.stylize(Date.prototype.toString.call(r),"date");if(b1(r))return rM(r)}var s="",u=!1,f=["{","}"];if(Oae(r)&&(u=!0,f=["[","]"]),Q3(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(g1(r)&&(s=" "+RegExp.prototype.toString.call(r)),rb(r)&&(s=" "+Date.prototype.toUTCString.call(r)),b1(r)&&(s=" "+rM(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return g1(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 aM(e,r,t,o,d,u)}),e.seen.pop(),ARe(v,s,f)}function TRe(e,r){if(Bf(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(Bae(r))return e.stylize(""+r,"number");if(nM(r))return e.stylize(""+r,"boolean");if(tb(r))return e.stylize("null","null")}function rM(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)Hae(r,String(o))?i.push(aM(e,r,t,a,String(o),!0)):i.push("");return n.forEach(function(s){s.match(/^\d+$/)||i.push(aM(e,r,t,a,s,!0))}),i}function aM(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")),Hae(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")),Bf(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 ARe(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 nM(e){return typeof e=="boolean"}ft.isBoolean=nM;function tb(e){return e===null}ft.isNull=tb;function kRe(e){return e==null}ft.isNullOrUndefined=kRe;function Bae(e){return typeof e=="number"}ft.isNumber=Bae;function ab(e){return typeof e=="string"}ft.isString=ab;function SRe(e){return typeof e=="symbol"}ft.isSymbol=SRe;function Bf(e){return e===void 0}ft.isUndefined=Bf;function g1(e){return y0(e)&&iM(e)==="[object RegExp]"}ft.isRegExp=g1;ft.types.isRegExp=g1;function y0(e){return typeof e=="object"&&e!==null}ft.isObject=y0;function rb(e){return y0(e)&&iM(e)==="[object Date]"}ft.isDate=rb;ft.types.isDate=rb;function b1(e){return y0(e)&&(iM(e)==="[object Error]"||e instanceof Error)}ft.isError=b1;ft.types.isNativeError=b1;function Q3(e){return typeof e=="function"}ft.isFunction=Q3;function qRe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ft.isPrimitive=qRe;ft.isBuffer=eM();function iM(e){return Object.prototype.toString.call(e)}function tM(e){return e<10?"0"+e.toString(10):e.toString(10)}var LRe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function CRe(){var e=new Date,r=[tM(e.getHours()),tM(e.getMinutes()),tM(e.getSeconds())].join(":");return[e.getDate(),LRe[e.getMonth()],r].join(" ")}ft.log=function(){console.log("%s - %s",CRe(),ft.format.apply(ft,arguments))};ft.inherits=rs();ft._extend=function(e,r){if(!r||!y0(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function Hae(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Of=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(Of&&r[Of]){var t=r[Of];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Of,{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)),Of&&Object.defineProperty(t,Of,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Iae(r))};ft.promisify.custom=Of;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 DRe(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=DRe});var Wae=N((YJe,jae)=>{"use strict";function Uae(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 Gae(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Uae(Object(t),!0).forEach(function(a){PRe(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Uae(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function PRe(e,r,t){return r=Vae(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function RRe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Yae(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,Vae(a.key),a)}}function zRe(e,r,t){return r&&Yae(e.prototype,r),t&&Yae(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vae(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=l0(),nb=IRe.Buffer,FRe=oM(),lM=FRe.inspect,ORe=lM&&lM.custom||"inspect";function BRe(e,r,t){nb.prototype.copy.call(e,r,t)}jae.exports=(function(){function e(){RRe(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;)BRe(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 lM(this,Gae(Gae({},a),{},{depth:0,customInspect:!1}))}}]),e})()});var uM=N((VJe,Zae)=>{"use strict";function HRe(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(sM,this,e)):process.nextTick(sM,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(Xae,t,i)):process.nextTick(Xae,t,i):r?(process.nextTick(ib,t),r(i)):process.nextTick(ib,t)}),this)}function Xae(e,r){sM(e,r),ib(e)}function ib(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function URe(){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 sM(e,r){e.emit("error",r)}function GRe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}Zae.exports={destroy:HRe,undestroy:URe,errorOrDestroy:GRe}});var Hf=N((jJe,Kae)=>{"use strict";function YRe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var Jae={};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){YRe(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,Jae[e]=n}function $ae(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 VRe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function jRe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function WRe(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"&&VRe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(jRe(e," argument"))n="The ".concat(e," ").concat(a," ").concat($ae(r,"type"));else{var i=WRe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat($ae(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");Kae.exports.codes=Jae});var fM=N((WJe,Qae)=>{"use strict";var XRe=Hf().codes.ERR_INVALID_OPT_VALUE;function ZRe(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function $Re(e,r,t,a){var n=ZRe(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new XRe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}Qae.exports={getHighWaterMark:$Re}});var rne=N((XJe,ene)=>{ene.exports=JRe;function JRe(e,r){if(cM("noDeprecation"))return e;var t=!1;function a(){if(!t){if(cM("throwDeprecation"))throw new Error(r);cM("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function cM(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 dM=N((ZJe,lne)=>{"use strict";lne.exports=Ta;function ane(e){var r=this;this.next=null,this.entry=null,this.finish=function(){Mze(r,e)}}var g0;Ta.WritableState=_1;var KRe={deprecate:rne()},nne=mT(),lb=l0().Buffer,QRe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function eze(e){return lb.from(e)}function rze(e){return lb.isBuffer(e)||e instanceof QRe}var hM=uM(),tze=fM(),aze=tze.getHighWaterMark,tu=Hf().codes,nze=tu.ERR_INVALID_ARG_TYPE,ize=tu.ERR_METHOD_NOT_IMPLEMENTED,oze=tu.ERR_MULTIPLE_CALLBACK,lze=tu.ERR_STREAM_CANNOT_PIPE,sze=tu.ERR_STREAM_DESTROYED,uze=tu.ERR_STREAM_NULL_VALUES,fze=tu.ERR_STREAM_WRITE_AFTER_END,cze=tu.ERR_UNKNOWN_ENCODING,b0=hM.errorOrDestroy;rs()(Ta,nne);function vze(){}function _1(e,r,t){g0=g0||Uf(),e=e||{},typeof t!="boolean"&&(t=r instanceof g0),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=aze(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){bze(r,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ane(this)}_1.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(_1.prototype,"buffer",{get:KRe.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 _1}})):ob=function(r){return r instanceof this};function Ta(e){g0=g0||Uf();var r=this instanceof g0;if(!r&&!ob.call(Ta,this))return new Ta(e);this._writableState=new _1(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)),nne.call(this)}Ta.prototype.pipe=function(){b0(this,new lze)};function hze(e,r){var t=new fze;b0(e,t),process.nextTick(r,t)}function dze(e,r,t,a){var n;return t===null?n=new uze:typeof t!="string"&&!r.objectMode&&(n=new nze("chunk",["string","Buffer"],t)),n?(b0(e,n),process.nextTick(a,n),!1):!0}Ta.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&rze(e);return i&&!lb.isBuffer(e)&&(e=eze(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=vze),a.ending?hze(this,t):(i||dze(this,a,e,t))&&(a.pendingcb++,n=mze(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&&ine(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 cze(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(Ta.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function pze(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 mze(e,r,t,a,n,i){if(!t){var o=pze(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 vM(e,r,!1,l,a,n,i);return s}function vM(e,r,t,a,n,i,o){r.writelen=a,r.writecb=o,r.writing=!0,r.sync=!0,r.destroyed?r.onwrite(new sze("write")):t?e._writev(n,r.onwrite):e._write(n,i,r.onwrite),r.sync=!1}function yze(e,r,t,a,n){--r.pendingcb,t?(process.nextTick(n,a),process.nextTick(x1,e,r),e._writableState.errorEmitted=!0,b0(e,a)):(n(a),e._writableState.errorEmitted=!0,b0(e,a),x1(e,r))}function gze(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function bze(e,r){var t=e._writableState,a=t.sync,n=t.writecb;if(typeof n!="function")throw new oze;if(gze(t),r)yze(e,t,a,r,n);else{var i=one(t)||e.destroyed;!i&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&ine(e,t),a?process.nextTick(tne,e,t,i,n):tne(e,t,i,n)}}function tne(e,r,t,a){t||xze(e,r),r.pendingcb--,a(),x1(e,r)}function xze(e,r){r.length===0&&r.needDrain&&(r.needDrain=!1,e.emit("drain"))}function ine(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,vM(e,r,!0,r.length,n,"",i.finish),r.pendingcb++,r.lastBufferedRequest=null,i.next?(r.corkedRequestsFree=i.next,i.next=null):r.corkedRequestsFree=new ane(r),r.bufferedRequestCount=0}else{for(;t;){var s=t.chunk,u=t.encoding,f=t.callback,c=r.objectMode?1:s.length;if(vM(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 ize("_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||Tze(this,a,t),this};Object.defineProperty(Ta.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function one(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function _ze(e,r){e._final(function(t){r.pendingcb--,t&&b0(e,t),r.prefinished=!0,e.emit("prefinish"),x1(e,r)})}function wze(e,r){!r.prefinished&&!r.finalCalled&&(typeof e._final=="function"&&!r.destroyed?(r.pendingcb++,r.finalCalled=!0,process.nextTick(_ze,e,r)):(r.prefinished=!0,e.emit("prefinish")))}function x1(e,r){var t=one(r);if(t&&(wze(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 Tze(e,r,t){r.ending=!0,x1(e,r),t&&(r.finished?process.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1}function Mze(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=hM.destroy;Ta.prototype._undestroy=hM.undestroy;Ta.prototype._destroy=function(e,r){r(e)}});var Uf=N(($Je,une)=>{"use strict";var Aze=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};une.exports=Al;var sne=yM(),mM=dM();rs()(Al,sne);for(pM=Aze(mM.prototype),sb=0;sb<pM.length;sb++)ub=pM[sb],Al.prototype[ub]||(Al.prototype[ub]=mM.prototype[ub]);var pM,ub,sb;function Al(e){if(!(this instanceof Al))return new Al(e);sne.call(this,e),mM.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",kze)))}Object.defineProperty(Al.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Al.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Al.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function kze(){this._writableState.ended||process.nextTick(Sze,this)}function Sze(e){e.end()}Object.defineProperty(Al.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 vne=N((gM,cne)=>{var fb=l0(),kl=fb.Buffer;function fne(e,r){for(var t in e)r[t]=e[t]}kl.from&&kl.alloc&&kl.allocUnsafe&&kl.allocUnsafeSlow?cne.exports=fb:(fne(fb,gM),gM.Buffer=Gf);function Gf(e,r,t){return kl(e,r,t)}Gf.prototype=Object.create(kl.prototype);fne(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 _M=N(dne=>{"use strict";var xM=vne().Buffer,hne=xM.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 qze(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 Lze(e){var r=qze(e);if(typeof r!="string"&&(xM.isEncoding===hne||!hne(e)))throw new Error("Unknown encoding: "+e);return r||e}dne.StringDecoder=w1;function w1(e){this.encoding=Lze(e);var r;switch(this.encoding){case"utf16le":this.text=zze,this.end=Nze,r=4;break;case"utf8":this.fillLast=Dze,r=4;break;case"base64":this.text=Ize,this.end=Fze,r=3;break;default:this.write=Oze,this.end=Bze;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=xM.allocUnsafe(r)}w1.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||""};w1.prototype.end=Rze;w1.prototype.text=Pze;w1.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 bM(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Cze(e,r,t){var a=r.length-1;if(a<t)return 0;var n=bM(r[a]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--a<t||n===-2?0:(n=bM(r[a]),n>=0?(n>0&&(e.lastNeed=n-2),n):--a<t||n===-2?0:(n=bM(r[a]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function Eze(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 Dze(e){var r=this.lastTotal-this.lastNeed,t=Eze(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 Pze(e,r){var t=Cze(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 Rze(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function zze(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 Nze(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 Ize(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 Fze(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function Oze(e){return e.toString(this.encoding)}function Bze(e){return e&&e.length?this.write(e):""}});var cb=N((KJe,yne)=>{"use strict";var pne=Hf().codes.ERR_STREAM_PREMATURE_CLOSE;function Hze(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 Uze(){}function Gze(e){return e.setHeader&&typeof e.abort=="function"}function mne(e,r,t){if(typeof r=="function")return mne(e,null,r);r||(r={}),t=Hze(t||Uze);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 pne),t.call(e,p);if(n&&!o)return(!e._writableState||!e._writableState.ended)&&(p=new pne),t.call(e,p)},v=function(){e.req.on("finish",l)};return Gze(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)}}yne.exports=mne});var bne=N((QJe,gne)=>{"use strict";var vb;function au(e,r,t){return r=Yze(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Yze(e){var r=Vze(e,"string");return typeof r=="symbol"?r:String(r)}function Vze(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 jze=cb(),nu=Symbol("lastResolve"),Yf=Symbol("lastReject"),T1=Symbol("error"),hb=Symbol("ended"),Vf=Symbol("lastPromise"),wM=Symbol("handlePromise"),jf=Symbol("stream");function iu(e,r){return{value:e,done:r}}function Wze(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 Xze(e){process.nextTick(Wze,e)}function Zze(e,r){return function(t,a){e.then(function(){if(r[hb]){t(iu(void 0,!0));return}r[wM](t,a)},a)}}var $ze=Object.getPrototypeOf(function(){}),Jze=Object.setPrototypeOf((vb={get stream(){return this[jf]},next:function(){var r=this,t=this[T1];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[T1]?l(r[T1]):o(iu(void 0,!0))})});var a=this[Vf],n;if(a)n=new Promise(Zze(a,this));else{var i=this[jf].read();if(i!==null)return Promise.resolve(iu(i,!1));n=new Promise(this[wM])}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),$ze),Kze=function(r){var t,a=Object.create(Jze,(t={},au(t,jf,{value:r,writable:!0}),au(t,nu,{value:null,writable:!0}),au(t,Yf,{value:null,writable:!0}),au(t,T1,{value:null,writable:!0}),au(t,hb,{value:r._readableState.endEmitted,writable:!0}),au(t,wM,{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,jze(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[T1]=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",Xze.bind(null,a)),a};gne.exports=Kze});var _ne=N((eKe,xne)=>{xne.exports=function(){throw new Error("Readable.from is not available in the browser")}});var yM=N((tKe,Ene)=>{"use strict";Ene.exports=Tt;var x0;Tt.ReadableState=Ane;var rKe=Ou().EventEmitter,Mne=function(r,t){return r.listeners(t).length},A1=mT(),db=l0().Buffer,Qze=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function eNe(e){return db.from(e)}function rNe(e){return db.isBuffer(e)||e instanceof Qze}var TM=oM(),rt;TM&&TM.debuglog?rt=TM.debuglog("stream"):rt=function(){};var tNe=Wae(),CM=uM(),aNe=fM(),nNe=aNe.getHighWaterMark,pb=Hf().codes,iNe=pb.ERR_INVALID_ARG_TYPE,oNe=pb.ERR_STREAM_PUSH_AFTER_EOF,lNe=pb.ERR_METHOD_NOT_IMPLEMENTED,sNe=pb.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_0,MM,AM;rs()(Tt,A1);var M1=CM.errorOrDestroy,kM=["error","close","destroy","pause","resume"];function uNe(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 Ane(e,r,t){x0=x0||Uf(),e=e||{},typeof t!="boolean"&&(t=r instanceof x0),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=nNe(this,e,"readableHighWaterMark",t),this.buffer=new tNe,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&&(_0||(_0=_M().StringDecoder),this.decoder=new _0(e.encoding),this.encoding=e.encoding)}function Tt(e){if(x0=x0||Uf(),!(this instanceof Tt))return new Tt(e);var r=this instanceof x0;this._readableState=new Ane(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),A1.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=CM.destroy;Tt.prototype._undestroy=CM.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),kne(this,e,r,!1,a)};Tt.prototype.unshift=function(e){return kne(this,e,null,!0,!1)};function kne(e,r,t,a,n){rt("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,vNe(e,i);else{var o;if(n||(o=fNe(i,r)),o)M1(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==db.prototype&&(r=eNe(r)),a)i.endEmitted?M1(e,new sNe):SM(e,i,r,!0);else if(i.ended)M1(e,new oNe);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?SM(e,i,r,!1):LM(e,i)):SM(e,i,r,!1)}else a||(i.reading=!1,LM(e,i))}return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function SM(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)),LM(e,r)}function fNe(e,r){var t;return!rNe(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(t=new iNe("chunk",["string","Buffer","Uint8Array"],r)),t}Tt.prototype.isPaused=function(){return this._readableState.flowing===!1};Tt.prototype.setEncoding=function(e){_0||(_0=_M().StringDecoder);var r=new _0(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 wne=1073741824;function cNe(e){return e>=wne?e=wne:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Tne(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=cNe(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}Tt.prototype.read=function(e){rt("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 rt("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?qM(this):mb(this),null;if(e=Tne(e,r),e===0&&r.ended)return r.length===0&&qM(this),null;var a=r.needReadable;rt("need readable",a),(r.length===0||r.length-e<r.highWaterMark)&&(a=!0,rt("length less than watermark",a)),r.ended||r.reading?(a=!1,rt("reading or ended",a)):a&&(rt("do read"),r.reading=!0,r.sync=!0,r.length===0&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=Tne(t,r)));var n;return e>0?n=Lne(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&&qM(this)),n!==null&&this.emit("data",n),n};function vNe(e,r){if(rt("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,Sne(e)))}}function mb(e){var r=e._readableState;rt("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(rt("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(Sne,e))}function Sne(e){var r=e._readableState;rt("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,EM(e)}function LM(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(hNe,e,r))}function hNe(e,r){for(;!r.reading&&!r.ended&&(r.length<r.highWaterMark||r.flowing&&r.length===0);){var t=r.length;if(rt("maybeReadMore read 0"),e.read(0),t===r.length)break}r.readingMore=!1}Tt.prototype._read=function(e){M1(this,new lNe("_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,rt("pipe count=%d opts=%j",a.pipesCount,r);var n=(!r||r.end!==!1)&&e!==process.stdout&&e!==process.stderr,i=n?l:m;a.endEmitted?process.nextTick(i):t.once("end",i),e.on("unpipe",o);function o(y,x){rt("onunpipe"),y===t&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,f())}function l(){rt("onend"),e.end()}var s=dNe(t);e.on("drain",s);var u=!1;function f(){rt("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",v),e.removeListener("unpipe",o),t.removeListener("end",l),t.removeListener("end",m),t.removeListener("data",c),u=!0,a.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&s()}t.on("data",c);function c(y){rt("ondata");var x=e.write(y);rt("dest.write",x),x===!1&&((a.pipesCount===1&&a.pipes===e||a.pipesCount>1&&Cne(a.pipes,e)!==-1)&&!u&&(rt("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(y){rt("onerror",y),m(),e.removeListener("error",v),Mne(e,"error")===0&&M1(e,y)}uNe(e,"error",v);function d(){e.removeListener("finish",p),m()}e.once("close",d);function p(){rt("onfinish"),e.removeListener("close",d),m()}e.once("finish",p);function m(){rt("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(rt("pipe resume"),t.resume()),e};function dNe(e){return function(){var t=e._readableState;rt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Mne(e,"data")&&(t.flowing=!0,EM(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=Cne(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=A1.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,rt("on readable",a.length,a.reading),a.length?mb(this):a.reading||process.nextTick(pNe,this)),t};Tt.prototype.addListener=Tt.prototype.on;Tt.prototype.removeListener=function(e,r){var t=A1.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(qne,this),t};Tt.prototype.removeAllListeners=function(e){var r=A1.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(qne,this),r};function qne(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 pNe(e){rt("readable nexttick read 0"),e.read(0)}Tt.prototype.resume=function(){var e=this._readableState;return e.flowing||(rt("resume"),e.flowing=!e.readableListening,mNe(this,e)),e.paused=!1,this};function mNe(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(yNe,e,r))}function yNe(e,r){rt("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),EM(e),r.flowing&&!r.reading&&e.read(0)}Tt.prototype.pause=function(){return rt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(rt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function EM(e){var r=e._readableState;for(rt("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(rt("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(rt("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<kM.length;i++)e.on(kM[i],this.emit.bind(this,kM[i]));return this._read=function(o){rt("wrapped _read",o),a&&(a=!1,e.resume())},this};typeof Symbol=="function"&&(Tt.prototype[Symbol.asyncIterator]=function(){return MM===void 0&&(MM=bne()),MM(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=Lne;Object.defineProperty(Tt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Lne(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 qM(e){var r=e._readableState;rt("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(gNe,r,e))}function gNe(e,r){if(rt("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 AM===void 0&&(AM=_ne()),AM(Tt,e,r)});function Cne(e,r){for(var t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1}});var DM=N((aKe,Pne)=>{"use strict";Pne.exports=as;var yb=Hf().codes,bNe=yb.ERR_METHOD_NOT_IMPLEMENTED,xNe=yb.ERR_MULTIPLE_CALLBACK,_Ne=yb.ERR_TRANSFORM_ALREADY_TRANSFORMING,wNe=yb.ERR_TRANSFORM_WITH_LENGTH_0,gb=Uf();rs()(as,gb);function TNe(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new xNe);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:TNe.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",MNe)}function MNe(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(r,t){Dne(e,r,t)}):Dne(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 bNe("_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 Dne(e,r,t){if(r)return e.emit("error",r);if(t!=null&&e.push(t),e._writableState.length)throw new wNe;if(e._transformState.transforming)throw new _Ne;return e.push(null)}});var Nne=N((nKe,zne)=>{"use strict";zne.exports=k1;var Rne=DM();rs()(k1,Rne);function k1(e){if(!(this instanceof k1))return new k1(e);Rne.call(this,e)}k1.prototype._transform=function(e,r,t){t(null,e)}});var Hne=N((iKe,Bne)=>{"use strict";var PM;function ANe(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var One=Hf().codes,kNe=One.ERR_MISSING_ARGS,SNe=One.ERR_STREAM_DESTROYED;function Ine(e){if(e)throw e}function qNe(e){return e.setHeader&&typeof e.abort=="function"}function LNe(e,r,t,a){a=ANe(a);var n=!1;e.on("close",function(){n=!0}),PM===void 0&&(PM=cb()),PM(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,qNe(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new SNe("pipe"))}}}function Fne(e){e()}function CNe(e,r){return e.pipe(r)}function ENe(e){return!e.length||typeof e[e.length-1]!="function"?Ine:e.pop()}function DNe(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=ENe(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new kNe("streams");var n,i=r.map(function(o,l){var s=l<r.length-1,u=l>0;return LNe(o,s,u,function(f){n||(n=f),f&&i.forEach(Fne),!s&&(i.forEach(Fne),a(n))})});return r.reduce(CNe)}Bne.exports=DNe});var Gne=N((oKe,Une)=>{Une.exports=co;var RM=Ou().EventEmitter,PNe=rs();PNe(co,RM);co.Readable=yM();co.Writable=dM();co.Duplex=Uf();co.Transform=DM();co.PassThrough=Nne();co.finished=cb();co.pipeline=Hne();co.Stream=co;function co(){RM.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(),RM.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 T0=N(ct=>{var Yne=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},RNe=/%[sdj%]/g;ct.format=function(e){if(!Ab(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(RNe,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])Mb(o)||!w0(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={},Vne=/^$/;xb="false",xb=xb.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Vne=new RegExp("^"+xb+"$","i");var xb;ct.debuglog=function(e){if(e=e.toUpperCase(),!bb[e])if(Vne.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:NNe};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),FM(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=zNe),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 zNe(e,r){var t=ou.styles[r];return t?"\x1B["+ou.colors[t][0]+"m"+e+"\x1B["+ou.colors[t][1]+"m":e}function NNe(e,r){return e}function INe(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 Ab(a)||(a=wb(e,a,t)),a}var n=FNe(e,r);if(n)return n;var i=Object.keys(r),o=INe(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),q1(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return zM(r);if(i.length===0){if(_b(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(S1(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Tb(r))return e.stylize(Date.prototype.toString.call(r),"date");if(q1(r))return zM(r)}var s="",u=!1,f=["{","}"];if(jne(r)&&(u=!0,f=["[","]"]),_b(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(S1(r)&&(s=" "+RegExp.prototype.toString.call(r)),Tb(r)&&(s=" "+Date.prototype.toUTCString.call(r)),q1(r)&&(s=" "+zM(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return S1(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=ONe(e,r,t,o,i):v=i.map(function(d){return IM(e,r,t,o,d,u)}),e.seen.pop(),BNe(v,s,f)}function FNe(e,r){if(Xf(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(Wne(r))return e.stylize(""+r,"number");if(FM(r))return e.stylize(""+r,"boolean");if(Mb(r))return e.stylize("null","null")}function zM(e){return"["+Error.prototype.toString.call(e)+"]"}function ONe(e,r,t,a,n){for(var i=[],o=0,l=r.length;o<l;++o)Xne(r,String(o))?i.push(IM(e,r,t,a,String(o),!0)):i.push("");return n.forEach(function(s){s.match(/^\d+$/)||i.push(IM(e,r,t,a,s,!0))}),i}function IM(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")),Xne(a,n)||(o="["+n+"]"),l||(e.seen.indexOf(s.value)<0?(Mb(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 BNe(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 jne(e){return Array.isArray(e)}ct.isArray=jne;function FM(e){return typeof e=="boolean"}ct.isBoolean=FM;function Mb(e){return e===null}ct.isNull=Mb;function HNe(e){return e==null}ct.isNullOrUndefined=HNe;function Wne(e){return typeof e=="number"}ct.isNumber=Wne;function Ab(e){return typeof e=="string"}ct.isString=Ab;function UNe(e){return typeof e=="symbol"}ct.isSymbol=UNe;function Xf(e){return e===void 0}ct.isUndefined=Xf;function S1(e){return w0(e)&&OM(e)==="[object RegExp]"}ct.isRegExp=S1;ct.types.isRegExp=S1;function w0(e){return typeof e=="object"&&e!==null}ct.isObject=w0;function Tb(e){return w0(e)&&OM(e)==="[object Date]"}ct.isDate=Tb;ct.types.isDate=Tb;function q1(e){return w0(e)&&(OM(e)==="[object Error]"||e instanceof Error)}ct.isError=q1;ct.types.isNativeError=q1;function _b(e){return typeof e=="function"}ct.isFunction=_b;function GNe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ct.isPrimitive=GNe;ct.isBuffer=eM();function OM(e){return Object.prototype.toString.call(e)}function NM(e){return e<10?"0"+e.toString(10):e.toString(10)}var YNe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function VNe(){var e=new Date,r=[NM(e.getHours()),NM(e.getMinutes()),NM(e.getSeconds())].join(":");return[e.getDate(),YNe[e.getMonth()],r].join(" ")}ct.log=function(){console.log("%s - %s",VNe(),ct.format.apply(ct,arguments))};ct.inherits=rs();ct._extend=function(e,r){if(!r||!w0(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function Xne(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,Yne(r))};ct.promisify.custom=Wf;function jNe(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return r(e)}function WNe(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(jNe.bind(null,l,o))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,Yne(e)),r}ct.callbackify=WNe});var UM=N((sKe,Kne)=>{"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 Zne(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,ZNe(a.key),a)}}function XNe(e,r,t){return r&&Zne(e.prototype,r),t&&Zne(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZNe(e){var r=$Ne(e,"string");return lu(r)==="symbol"?r:String(r)}function $Ne(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 JNe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function KNe(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&&HM(e,r)}function HM(e,r){return HM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},HM(e,r)}function QNe(e){var r=tIe();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 eIe(this,n)}}function eIe(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 rIe(e)}function rIe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tIe(){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 Jne={},M0,BM;function L1(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=(function(i){KNe(l,i);var o=QNe(l);function l(s,u,f){var c;return JNe(this,l),c=o.call(this,a(s,u,f)),c.code=e,c}return XNe(l)})(t);Jne[e]=n}function $ne(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 aIe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function nIe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function iIe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}L1("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);L1("ERR_INVALID_ARG_TYPE",function(e,r,t){M0===void 0&&(M0=Sb()),M0(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&aIe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(nIe(e," argument"))n="The ".concat(e," ").concat(a," ").concat($ne(r,"type"));else{var i=iIe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat($ne(r,"type"))}return n+=". Received type ".concat(lu(t)),n},TypeError);L1("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";BM===void 0&&(BM=T0());var a=BM.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);L1("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);L1("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];M0===void 0&&(M0=Sb()),M0(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);Kne.exports.codes=Jne});var sie=N((uKe,lie)=>{"use strict";function Qne(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 eie(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Qne(Object(t),!0).forEach(function(a){oIe(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Qne(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function oIe(e,r,t){return r=nie(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function lIe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function rie(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,nie(a.key),a)}}function sIe(e,r,t){return r&&rie(e.prototype,r),t&&rie(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nie(e){var r=uIe(e,"string");return ii(r)==="symbol"?r:String(r)}function uIe(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 fIe(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&&P1(e,r)}function cIe(e){var r=oie();return function(){var a=R1(e),n;if(r){var i=R1(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return iie(this,n)}}function iie(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 GM(e)}function GM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YM(e){var r=typeof Map=="function"?new Map:void 0;return YM=function(a){if(a===null||!vIe(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,R1(this).constructor)}return n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),P1(n,a)},YM(e)}function qb(e,r,t){return oie()?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&&P1(u,o.prototype),u},qb.apply(null,arguments)}function oie(){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 vIe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function P1(e,r){return P1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},P1(e,r)}function R1(e){return R1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},R1(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 hIe=T0(),VM=hIe.inspect,dIe=UM(),pIe=dIe.codes.ERR_INVALID_ARG_TYPE;function tie(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function mIe(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="",C1="",E1="",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:"},yIe=10;function aie(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function D1(e){return VM(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function gIe(e,r,t){var a="",n="",i=0,o="",l=!1,s=D1(e),u=s.split(`
`),f=D1(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<=yIe){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(mIe(" ",c),"^"),c=0)}}}for(var m=u[u.length-1],y=f[f.length-1];m===y&&(c++<2?o=`
`.concat(m).concat(o):a=m,u.pop(),f.pop(),!(u.length===0||f.length===0));)m=u[u.length-1],y=f[f.length-1];var x=Math.max(u.length,f.length);if(x===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,b=Zf[t]+`
`.concat(C1,"+ actual").concat(dn," ").concat(E1,"- expected").concat(dn),_=" ".concat(Yo,"...").concat(dn," Lines skipped");for(c=0;c<x;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(E1,"-").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(C1,"+").concat(dn," ").concat(u[c]),w++;else{var M=f[c],q=u[c],C=q!==M&&(!tie(q,",")||q.slice(0,-1)!==M);C&&tie(M,",")&&M.slice(0,-1)===q&&(C=!1,q+=","),C?(k>1&&c>2&&(k>4?(n+=`
`.concat(Yo,"...").concat(dn),l=!0):k>3&&(n+=`
`.concat(u[c-2]),w++),n+=`
`.concat(u[c-1]),w++),i=c,n+=`
`.concat(C1,"+").concat(dn," ").concat(q),a+=`
`.concat(E1,"-").concat(dn," ").concat(M),w+=2):(n+=a,a="",(k===1||c===0)&&(n+=`
`.concat(q),w++))}if(w>20&&c<x-2)return"".concat(b).concat(_,`
`).concat(n,`
`).concat(Yo,"...").concat(dn).concat(a,`
`)+"".concat(Yo,"...").concat(dn)}return"".concat(b).concat(l?_:"",`
`).concat(n).concat(a).concat(o).concat(v)}var bIe=(function(e,r){fIe(a,e);var t=cIe(a);function a(n){var i;if(lIe(this,a),ii(n)!=="object"||n===null)throw new pIe("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",C1="\x1B[32m",dn="\x1B[39m",E1="\x1B[31m"):(Yo="",C1="",dn="",E1="")),ii(u)==="object"&&u!==null&&ii(f)==="object"&&f!==null&&"stack"in u&&u instanceof Error&&"stack"in f&&f instanceof Error&&(u=aie(u),f=aie(f)),l==="deepStrictEqual"||l==="strictEqual")i=t.call(this,gIe(u,f,l));else if(l==="notDeepStrictEqual"||l==="notStrictEqual"){var v=Zf[l],d=D1(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=D1(u),m="",y=Zf[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(Zf[l],`
`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(m="".concat(D1(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(y,`
`).concat(p,`
should equal
`):m=" ".concat(l," ").concat(m)),i=t.call(this,"".concat(p).concat(m))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(GM(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(GM(i),s),i.stack,i.name="AssertionError",iie(i)}return sIe(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return VM(this,eie(eie({},o),{},{customInspect:!1,depth:0}))}}]),a})(YM(Error),VM.custom);lie.exports=bIe});var jM=N((fKe,fie)=>{"use strict";var uie=Object.prototype.toString;fie.exports=function(r){var t=uie.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&uie.call(r.callee)==="[object Function]"),a}});var bie=N((cKe,gie)=>{"use strict";var yie;Object.keys||(z1=Object.prototype.hasOwnProperty,WM=Object.prototype.toString,cie=jM(),XM=Object.prototype.propertyIsEnumerable,vie=!XM.call({toString:null},"toString"),hie=XM.call(function(){},"prototype"),N1=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Lb=function(e){var r=e.constructor;return r&&r.prototype===e},die={$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},pie=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!die["$"+e]&&z1.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Lb(window[e])}catch(r){return!0}}catch(r){return!0}return!1})(),mie=function(e){if(typeof window=="undefined"||!pie)return Lb(e);try{return Lb(e)}catch(r){return!1}},yie=function(r){var t=r!==null&&typeof r=="object",a=WM.call(r)==="[object Function]",n=cie(r),i=t&&WM.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=hie&&a;if(i&&r.length>0&&!z1.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")&&z1.call(r,f)&&o.push(String(f));if(vie)for(var c=mie(r),v=0;v<N1.length;++v)!(c&&N1[v]==="constructor")&&z1.call(r,N1[v])&&o.push(N1[v]);return o});var z1,WM,cie,XM,vie,hie,N1,Lb,die,pie,mie;gie.exports=yie});var ZM=N((vKe,wie)=>{"use strict";var xIe=Array.prototype.slice,_Ie=jM(),xie=Object.keys,Cb=xie?function(r){return xie(r)}:bie(),_ie=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 _Ie(a)?_ie(xIe.call(a)):_ie(a)})}else Object.keys=Cb;return Object.keys||Cb};wie.exports=Cb});var Sie=N((hKe,kie)=>{"use strict";var wIe=ZM(),Mie=k3()(),Aie=Ff(),Eb=S3(),TIe=Aie("Array.prototype.push"),Tie=Aie("Object.prototype.propertyIsEnumerable"),MIe=Mie?Eb.getOwnPropertySymbols:null;kie.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=Eb(r);if(arguments.length===1)return a;for(var n=1;n<arguments.length;++n){var i=Eb(arguments[n]),o=wIe(i),l=Mie&&(Eb.getOwnPropertySymbols||MIe);if(l)for(var s=l(i),u=0;u<s.length;++u){var f=s[u];Tie(i,f)&&TIe(o,f)}for(var c=0;c<o.length;++c){var v=o[c];if(Tie(i,v)){var d=i[v];a[v]=d}}}return a}});var Lie=N((dKe,qie)=>{"use strict";var $M=Sie(),AIe=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},kIe=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};qie.exports=function(){return!Object.assign||AIe()||kIe()?$M:Object.assign}});var JM=N((pKe,Eie)=>{"use strict";var Cie=function(e){return e!==e};Eie.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||Cie(r)&&Cie(t))}});var Db=N((mKe,Die)=>{"use strict";var SIe=JM();Die.exports=function(){return typeof Object.is=="function"?Object.is:SIe}});var Nie=N((yKe,zie)=>{"use strict";var Pie=N3(),Rie=p1(),qIe=Rie(Pie("String.prototype.indexOf"));zie.exports=function(r,t){var a=Pie(r,!!t);return typeof a=="function"&&qIe(r,".prototype.")>-1?Rie(a):a}});var I1=N((gKe,Bie)=>{"use strict";var LIe=ZM(),CIe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",EIe=Object.prototype.toString,DIe=Array.prototype.concat,Iie=YT(),PIe=function(e){return typeof e=="function"&&EIe.call(e)==="[object Function]"},Fie=jT()(),RIe=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!PIe(a)||!a())return}Fie?Iie(e,r,t,!0):Iie(e,r,t)},Oie=function(e,r){var t=arguments.length>2?arguments[2]:{},a=LIe(r);CIe&&(a=DIe.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n<a.length;n+=1)RIe(e,a[n],r[a[n]],t[a[n]])};Oie.supportsDescriptors=!!Fie;Bie.exports=Oie});var Uie=N((bKe,Hie)=>{"use strict";var zIe=Db(),NIe=I1();Hie.exports=function(){var r=zIe();return NIe(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var jie=N((xKe,Vie)=>{"use strict";var IIe=I1(),FIe=p1(),OIe=JM(),Gie=Db(),BIe=Uie(),Yie=FIe(Gie(),Object);IIe(Yie,{getPolyfill:Gie,implementation:OIe,shim:BIe});Vie.exports=Yie});var KM=N((_Ke,Wie)=>{"use strict";Wie.exports=function(r){return r!==r}});var QM=N((wKe,Xie)=>{"use strict";var HIe=KM();Xie.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:HIe}});var $ie=N((TKe,Zie)=>{"use strict";var UIe=I1(),GIe=QM();Zie.exports=function(){var r=GIe();return UIe(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var eoe=N((MKe,Qie)=>{"use strict";var YIe=p1(),VIe=I1(),jIe=KM(),Jie=QM(),WIe=$ie(),Kie=YIe(Jie(),Number);VIe(Kie,{getPolyfill:Jie,implementation:jIe,shim:WIe});Qie.exports=Kie});var xoe=N((AKe,boe)=>{"use strict";function roe(e,r){return JIe(e)||$Ie(e,r)||ZIe(e,r)||XIe()}function XIe(){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 ZIe(e,r){if(e){if(typeof e=="string")return toe(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return toe(e,r)}}function toe(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function $Ie(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 JIe(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 KIe=/a/g.flags!==void 0,Ob=function(r){var t=[];return r.forEach(function(a){return t.push(a)}),t},aoe=function(r){var t=[];return r.forEach(function(a,n){return t.push([n,a])}),t},doe=Object.is?Object.is:jie(),Ib=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},eA=Number.isNaN?Number.isNaN:eoe();function tA(e){return e.call.bind(e)}var O1=tA(Object.prototype.hasOwnProperty),Fb=tA(Object.prototype.propertyIsEnumerable),noe=tA(Object.prototype.toString),Hn=T0().types,QIe=Hn.isAnyArrayBuffer,eFe=Hn.isArrayBufferView,ioe=Hn.isDate,Pb=Hn.isMap,ooe=Hn.isRegExp,Rb=Hn.isSet,rFe=Hn.isNativeError,tFe=Hn.isBoxedPrimitive,loe=Hn.isNumberObject,soe=Hn.isStringObject,uoe=Hn.isBooleanObject,foe=Hn.isBigIntObject,aFe=Hn.isSymbolObject,nFe=Hn.isFloat32Array,iFe=Hn.isFloat64Array;function oFe(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 zb(e){return Object.keys(e).filter(oFe).concat(Ib(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function poe(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 Nb=void 0,lFe=!0,sFe=!1,rA=0,aA=1,moe=2,yoe=3;function uFe(e,r){return KIe?e.source===r.source&&e.flags===r.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(r)}function fFe(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 cFe(e,r){return e.byteLength!==r.byteLength?!1:poe(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(r.buffer,r.byteOffset,r.byteLength))===0}function vFe(e,r){return e.byteLength===r.byteLength&&poe(new Uint8Array(e),new Uint8Array(r))===0}function hFe(e,r){return loe(e)?loe(r)&&doe(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(r)):soe(e)?soe(r)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(r):uoe(e)?uoe(r)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(r):foe(e)?foe(r)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(r):aFe(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?doe(e,r):!0;if(t){if(vo(e)!=="object")return typeof e=="number"&&eA(e)&&eA(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=noe(e),i=noe(r);if(n!==i)return!1;if(Array.isArray(e)){if(e.length!==r.length)return!1;var o=zb(e,Nb),l=zb(r,Nb);return o.length!==l.length?!1:F1(e,r,t,a,aA,o)}if(n==="[object Object]"&&(!Pb(e)&&Pb(r)||!Rb(e)&&Rb(r)))return!1;if(ioe(e)){if(!ioe(r)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(r))return!1}else if(ooe(e)){if(!ooe(r)||!uFe(e,r))return!1}else if(rFe(e)||e instanceof Error){if(e.message!==r.message||e.name!==r.name)return!1}else if(eFe(e)){if(!t&&(nFe(e)||iFe(e))){if(!fFe(e,r))return!1}else if(!cFe(e,r))return!1;var s=zb(e,Nb),u=zb(r,Nb);return s.length!==u.length?!1:F1(e,r,t,a,rA,s)}else{if(Rb(e))return!Rb(r)||e.size!==r.size?!1:F1(e,r,t,a,moe);if(Pb(e))return!Pb(r)||e.size!==r.size?!1:F1(e,r,t,a,yoe);if(QIe(e)){if(!vFe(e,r))return!1}else if(tFe(e)&&!hFe(e,r))return!1}return F1(e,r,t,a,rA)}function coe(e,r){return r.filter(function(t){return Fb(e,t)})}function F1(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(!O1(r,i[l]))return!1;if(t&&arguments.length===5){var s=Ib(e);if(s.length!==0){var u=0;for(l=0;l<s.length;l++){var f=s[l];if(Fb(e,f)){if(!Fb(r,f))return!1;i.push(f),u++}else if(Fb(r,f))return!1}var c=Ib(r);if(s.length!==c.length&&coe(r,c).length!==u)return!1}else{var v=Ib(r);if(v.length!==0&&coe(r,v).length!==0)return!1}}if(i.length===0&&(n===rA||n===aA&&e.length===0||e.size===0))return!0;if(a===void 0)a={val1:new Map,val2:new Map,position:0};else{var d=a.val1.get(e);if(d!==void 0){var p=a.val2.get(r);if(p!==void 0)return d===p}a.position++}a.val1.set(e,a.position),a.val2.set(r,a.position);var m=gFe(e,r,t,i,a,n);return a.val1.delete(e),a.val2.delete(r),m}function voe(e,r,t,a){for(var n=Ob(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 goe(e){switch(vo(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(eA(e))return!1}return!0}function dFe(e,r,t){var a=goe(t);return a!=null?a:r.has(a)&&!e.has(a)}function pFe(e,r,t,a,n){var i=goe(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 mFe(e,r,t,a){for(var n=null,i=Ob(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||!dFe(e,r,l))return!1;n===null&&(n=new Set),n.add(l)}}if(n!==null){for(var s=Ob(r),u=0;u<s.length;u++){var f=s[u];if(vo(f)==="object"&&f!==null){if(!voe(n,f,t,a))return!1}else if(!t&&!e.has(f)&&!voe(n,f,t,a))return!1}return n.size===0}return!0}function hoe(e,r,t,a,n,i){for(var o=Ob(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 yFe(e,r,t,a){for(var n=null,i=aoe(e),o=0;o<i.length;o++){var l=roe(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||!pFe(e,r,s,u,a))return!1;n===null&&(n=new Set),n.add(s)}}}if(n!==null){for(var c=aoe(r),v=0;v<c.length;v++){var d=roe(c[v],2),p=d[0],m=d[1];if(vo(p)==="object"&&p!==null){if(!hoe(n,e,p,m,t,a))return!1}else if(!t&&(!e.has(p)||!ho(e.get(p),m,!1,a))&&!hoe(n,e,p,m,!1,a))return!1}return n.size===0}return!0}function gFe(e,r,t,a,n,i){var o=0;if(i===moe){if(!mFe(e,r,t,n))return!1}else if(i===yoe){if(!yFe(e,r,t,n))return!1}else if(i===aA)for(;o<e.length;o++)if(O1(e,o)){if(!O1(r,o)||!ho(e[o],r[o],t,n))return!1}else{if(O1(r,o))return!1;for(var l=Object.keys(e);o<l.length;o++){var s=l[o];if(!O1(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 bFe(e,r){return ho(e,r,sFe)}function xFe(e,r){return ho(e,r,lFe)}boe.exports={isDeepEqual:bFe,isDeepStrictEqual:xFe}});var Sb=N((kKe,Foe)=>{"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 _oe(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,wFe(a.key),a)}}function _Fe(e,r,t){return r&&_oe(e.prototype,r),t&&_oe(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wFe(e){var r=TFe(e,"string");return Vo(r)==="symbol"?r:String(r)}function TFe(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 MFe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var AFe=UM(),B1=AFe.codes,woe=B1.ERR_AMBIGUOUS_ARGUMENT,A0=B1.ERR_INVALID_ARG_TYPE,kFe=B1.ERR_INVALID_ARG_VALUE,SFe=B1.ERR_INVALID_RETURN_VALUE,uu=B1.ERR_MISSING_ARGS,fu=sie(),qFe=T0(),Bb=qFe.inspect,koe=T0().types,LFe=koe.isPromise,Hb=koe.isRegExp,CFe=Lie()(),Soe=Db()(),Ub=Nie()("RegExp.prototype.test"),su,Gb;function H1(){var e=xoe();su=e.isDeepEqual,Gb=e.isDeepStrictEqual}var Toe=!1,Wt=Foe.exports=nA,Yb={};function jo(e){throw e.message instanceof Error?e.message:new fu(e)}function qoe(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(Toe===!1){Toe=!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||qoe};t!==void 0&&(s.message=t);var u=new fu(s);throw o&&(u.message=o,u.generatedMessage=!0),u}Wt.fail=qoe;Wt.AssertionError=fu;function Loe(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 nA(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];Loe.apply(void 0,[nA,r.length].concat(r))}Wt.ok=nA;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&&H1(),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&&H1(),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&&H1(),Gb(r,t)||jo({actual:r,expected:t,message:a,operator:"deepStrictEqual",stackStartFn:e})};Wt.notDeepStrictEqual=Coe;function Coe(e,r,t){if(arguments.length<2)throw new uu("actual","expected");su===void 0&&H1(),Gb(e,r)&&jo({actual:e,expected:r,message:t,operator:"notDeepStrictEqual",stackStartFn:Coe})}Wt.strictEqual=function e(r,t,a){if(arguments.length<2)throw new uu("actual","expected");Soe(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");Soe(r,t)&&jo({actual:r,expected:t,message:a,operator:"notStrictEqual",stackStartFn:e})};var Moe=_Fe(function e(r,t,a){var n=this;MFe(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 EFe(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 A0("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 kFe("error",r,"may not be an empty object");return su===void 0&&H1(),i.forEach(function(o){typeof e[o]=="string"&&Hb(r[o])&&Ub(r[o],e[o])||EFe(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 Doe(e){if(typeof e!="function")throw new A0("fn","Function",e);try{e()}catch(r){return r}return Yb}function Aoe(e){return LFe(e)||e!==null&&Vo(e)==="object"&&typeof e.then=="function"&&typeof e.catch=="function"}function Poe(e){return Promise.resolve().then(function(){var r;if(typeof e=="function"){if(r=e(),!Aoe(r))throw new SFe("instance of Promise","promiseFn",r)}else if(Aoe(e))r=e;else throw new A0("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return r}).then(function(){return Yb}).catch(function(t){return t})})}function Roe(e,r,t,a){if(typeof t=="string"){if(arguments.length===4)throw new A0("error",["Object","Error","Function","RegExp"],t);if(Vo(r)==="object"&&r!==null){if(r.message===t)throw new woe("error/message",'The error message "'.concat(r.message,'" is identical to the message.'))}else if(r===t)throw new woe("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 A0("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];Roe.apply(void 0,[e,Doe(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 Poe(r).then(function(i){return Roe.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,Doe(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 Poe(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+=Bb(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 A0("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(Bb(e),")"):(i?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(Bb(r),`. Input:
`).concat(Bb(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];Loe.apply(void 0,[Ioe,r.length].concat(r))}Wt.strict=CFe(Ioe,Wt,{equal:Wt.strictEqual,deepEqual:Wt.deepStrictEqual,notEqual:Wt.notStrictEqual,notDeepEqual:Wt.notDeepStrictEqual});Wt.strict.strict=Wt.strict});var Boe=N((SKe,Ooe)=>{var U1=1e3,G1=U1*60,Y1=G1*60,V1=Y1*24,DFe=V1*365.25;Ooe.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return PFe(e);if(t==="number"&&isNaN(e)===!1)return r.long?zFe(e):RFe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function PFe(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*DFe;case"days":case"day":case"d":return t*V1;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Y1;case"minutes":case"minute":case"mins":case"min":case"m":return t*G1;case"seconds":case"second":case"secs":case"sec":case"s":return t*U1;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function RFe(e){return e>=V1?Math.round(e/V1)+"d":e>=Y1?Math.round(e/Y1)+"h":e>=G1?Math.round(e/G1)+"m":e>=U1?Math.round(e/U1)+"s":e+"ms"}function zFe(e){return Vb(e,V1,"day")||Vb(e,Y1,"hour")||Vb(e,G1,"minute")||Vb(e,U1,"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 Uoe=N((Pt,Hoe)=>{Pt=Hoe.exports=oA.debug=oA.default=oA;Pt.coerce=BFe;Pt.disable=FFe;Pt.enable=IFe;Pt.enabled=OFe;Pt.humanize=Boe();Pt.names=[];Pt.skips=[];Pt.formatters={};var iA;function NFe(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 oA(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(iA||a);t.diff=n,t.prev=iA,t.curr=a,iA=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=NFe(e),typeof Pt.init=="function"&&Pt.init(r),r}function IFe(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 FFe(){Pt.enable("")}function OFe(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 BFe(e){return e instanceof Error?e.stack||e.message:e}});var Voe=N((Un,Yoe)=>{Un=Yoe.exports=Uoe();Un.log=GFe;Un.formatArgs=UFe;Un.save=YFe;Un.load=Goe;Un.useColors=HFe;Un.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:VFe();Un.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function HFe(){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 UFe(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 GFe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function YFe(e){try{e==null?Un.storage.removeItem("debug"):Un.storage.debug=e}catch(r){}}function Goe(){var e;try{e=Un.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}Un.enable(Goe());function VFe(){try{return window.localStorage}catch(e){}}});var Qoe=N((qKe,Koe)=>{var k0=Sb(),cu=Voe()("stream-parser");Koe.exports=WFe;var Woe=-1,jb=0,jFe=1,Xoe=2;function WFe(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=XFe,e._skipBytes=ZFe,r&&(e._passthrough=$Fe),r?e._transform=KFe:e._write=JFe}function j1(e){cu("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=Woe,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function XFe(e,r){k0(!this._parserCallback,'there is already a "callback" set!'),k0(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||j1(this),cu("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=jb}function ZFe(e,r){k0(!this._parserCallback,'there is already a "callback" set!'),k0(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||j1(this),cu("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=jFe}function $Fe(e,r){k0(!this._parserCallback,'There is already a "callback" set!'),k0(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||j1(this),cu("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=Xoe}function JFe(e,r,t){this._parserInit||j1(this),cu("write(%o bytes)",e.length),typeof r=="function"&&(t=r),$oe(this,e,null,t)}function KFe(e,r,t){this._parserInit||j1(this),cu("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),$oe(this,e,r,t)}function Zoe(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return joe(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return joe(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return Zoe(e,r.slice(n.length),t,a)}})}}function joe(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===Xoe&&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=Woe,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(Joe(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var $oe=Joe(Zoe);function Joe(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var xt=N(pn=>{"use strict";var ele=Gne().Transform,QFe=Qoe();function W1(){ele.call(this,{readableObjectMode:!0})}W1.prototype=Object.create(ele.prototype);W1.prototype.constructor=W1;QFe(W1.prototype);pn.ParserStream=W1;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 rle=N((CKe,Xb)=>{"use strict";var S0=xt().readUInt16BE,sA=xt().readUInt32BE;function X1(e,r){if(e.length<4+r)return null;var t=sA(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=X1;function eOe(e,r){for(var t=0;;){var a=X1(e,t);if(!a)break;switch(a.boxtype){case"ispe":r.sizes.push({width:sA(a.data,4),height:sA(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 lA(e,r,t){for(var a=0,n=0;n<t;n++)a=a*256+(e[r+n]||0);return a}function rOe(e,r){for(var t=e[4]>>4&15,a=e[4]&15,n=e[5]>>4&15,i=S0(e,6),o=8,l=0;l<i;l++){var s=S0(e,o);o+=2;var u=S0(e,o);o+=2;var f=lA(e,o,n);o+=n;var c=S0(e,o);if(o+=2,u===0&&c===1){var v=lA(e,o,t),d=lA(e,o+t,a);r.item_loc[s]={length:d,offset:v+f}}o+=c*(t+a)}}function tOe(e,r){for(var t=S0(e,4),a=6,n=0;n<t;n++){var i=X1(e,a);if(!i)break;if(i.boxtype==="infe"){for(var o=S0(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 aOe(e,r){for(var t=0;;){var a=X1(e,t);if(!a)break;a.boxtype==="ipco"&&eOe(a.data,r),t=a.end}}function nOe(e,r){for(var t=4;;){var a=X1(e,t);if(!a)break;a.boxtype==="iprp"&&aOe(a.data,r),a.boxtype==="iloc"&&rOe(a.data,r),a.boxtype==="iinf"&&tOe(a.data,r),t=a.end}}function iOe(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(nOe(e,r),!!r.sizes.length){var t=iOe(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=N((EKe,uA)=>{"use strict";function Zb(e,r){var t=new Error(e);return t.code=r,t}function oOe(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 m=this.exif_format_read(o,d);if(m===null){v=null;break}v.push(m)}Array.isArray(v)&&o===2&&(v=oOe(String.fromCharCode.apply(null,v)),v&&v[v.length-1]==="\0"&&(v=v.slice(0,-1))),this.is_subifd_link(e,i)&&Array.isArray(v)&&Number.isInteger(v[0])&&v[0]>0&&(this.ifds_to_read.push({id:i,offset:v[0]}),c=!0);var y={is_big_endian:this.big_endian,ifd:e,tag:i,format:o,count:l,entry_offset:r+this.start,data_length:u,data_offset:f+this.start,value:v,is_subifd_link:c};if(t(y)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};uA.exports.ExifParser=ns;uA.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 ale=N((DKe,tle)=>{"use strict";var lOe=xt().str2arr,sOe=xt().sliceEq,uOe=xt().readUInt32BE,Jb=rle(),fOe=$b(),cOe=lOe("ftyp");tle.exports=function(e){if(sOe(e,4,cOe)){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=uOe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=fOe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var lle=N((PKe,ole)=>{"use strict";var vOe=xt().str2arr,hOe=xt().sliceEq,nle=xt().readInt16LE,ile=xt().readInt32LE,dOe=xt().readUInt32LE,pOe=vOe("BM");ole.exports=function(e){if(!(e.length<26)&&hOe(e,0,pOe)){var r,t,a=dOe(e,14);if(a===12)t=nle(e,18),r=nle(e,20);else if(a>12)t=ile(e,18),r=ile(e,22);else return;return{width:t,height:Math.abs(r),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var vle=N((RKe,cle)=>{"use strict";var fle=xt().str2arr,sle=xt().sliceEq,ule=xt().readUInt16LE,mOe=fle("GIF87a"),yOe=fle("GIF89a");cle.exports=function(e){if(!(e.length<10)&&!(!sle(e,0,mOe)&&!sle(e,0,yOe)))return{width:ule(e,6),height:ule(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var dle=N((zKe,hle)=>{"use strict";var fA=xt().readUInt16LE,gOe=0,bOe=1,cA=16;hle.exports=function(e){var r=fA(e,0),t=fA(e,2),a=fA(e,4);if(!(r!==gOe||t!==bOe||!a)&&!(e.length<6+a*cA)){for(var n=[],i={width:0,height:0},o=0;o<a;o++){var l=e[6+cA*o]||256,s=e[6+cA*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 mle=N((NKe,ple)=>{"use strict";var vA=xt().readUInt16BE,xOe=xt().str2arr,_Oe=xt().sliceEq,wOe=$b(),TOe=xOe("Exif\0\0");ple.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=vA(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&_Oe(e,r,TOe)&&(n=wOe.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:vA(e,r+3),height:vA(e,r+1),type:"jpg",mime:"image/jpeg",wUnits:"px",hUnits:"px"};return n>0&&(i.orientation=n),i}r+=a}}});var _le=N((IKe,xle)=>{"use strict";var ble=xt().str2arr,yle=xt().sliceEq,gle=xt().readUInt32BE,MOe=ble(`\x89PNG\r
`),AOe=ble("IHDR");xle.exports=function(e){if(!(e.length<24)&&yle(e,0,MOe)&&yle(e,12,AOe))return{width:gle(e,16),height:gle(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var Mle=N((FKe,Tle)=>{"use strict";var kOe=xt().str2arr,SOe=xt().sliceEq,wle=xt().readUInt32BE,qOe=kOe("8BPS\0");Tle.exports=function(e){if(!(e.length<22)&&SOe(e,0,qOe))return{width:wle(e,18),height:wle(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var Sle=N((OKe,kle)=>{"use strict";function LOe(e){return e===32||e===9||e===13||e===10}function q0(e){return typeof e=="number"&&isFinite(e)&&e>0}function COe(e){var r=0,t=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(r=3);r<t&&LOe(e[r]);)r++;return r===t?!1:e[r]===60}var EOe=/<[-_.:a-zA-Z0-9][^>]*>/,DOe=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,POe=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,ROe=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,zOe=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,Ale=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function NOe(e){var r=e.match(POe),t=e.match(ROe),a=e.match(zOe);return{width:r&&(r[1]||r[2]),height:t&&(t[1]||t[2]),viewbox:a&&(a[1]||a[2])}}function Sl(e){return Ale.test(e)?e.match(Ale)[0]:"px"}kle.exports=function(e){if(COe(e)){for(var r="",t=0;t<e.length;t++)r+=String.fromCharCode(e[t]);var a=(r.match(EOe)||[""])[0];if(DOe.test(a)){var n=NOe(a),i=parseFloat(n.width),o=parseFloat(n.height);if(n.width&&n.height)return!q0(i)||!q0(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(!(!q0(u)||!q0(f))&&Sl(s.width)===Sl(s.height)){var c=u/f;return n.width?q0(i)?{width:i,height:i/c,type:"svg",mime:"image/svg+xml",wUnits:Sl(n.width),hUnits:Sl(n.width)}:void 0:n.height?q0(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 Dle=N((BKe,Ele)=>{"use strict";var Cle=xt().str2arr,qle=xt().sliceEq,IOe=xt().readUInt16LE,FOe=xt().readUInt16BE,OOe=xt().readUInt32LE,BOe=xt().readUInt32BE,HOe=Cle("II*\0"),UOe=Cle("MM\0*");function Kb(e,r,t){return t?FOe(e,r):IOe(e,r)}function hA(e,r,t){return t?BOe(e,r):OOe(e,r)}function Lle(e,r,t){var a=Kb(e,r+2,t),n=hA(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?Kb(e,r+8,t):hA(e,r+8,t)}Ele.exports=function(e){if(!(e.length<8)&&!(!qle(e,0,HOe)&&!qle(e,0,UOe))){var r=e[0]===77,t=hA(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=Lle(e,a+i,r):s===257&&(l=Lle(e,a+i,r));if(o&&l)return{width:o,height:l,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}}}}}}});var Ile=N((HKe,Nle)=>{"use strict";var zle=xt().str2arr,Ple=xt().sliceEq,Rle=xt().readUInt16LE,dA=xt().readUInt32LE,GOe=$b(),YOe=zle("RIFF"),VOe=zle("WEBP");function jOe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:Rle(e,r+6)&16383,height:Rle(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function WOe(e,r){if(e[r]===47){var t=dA(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function XOe(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)&&!(!Ple(e,0,YOe)||!Ple(e,8,VOe))){var r=12,t=null,a=0,n=dA(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=dA(e,r+4);i==="VP8 "&&o>=10?t=t||jOe(e,r+8):i==="VP8L"&&o>=5?t=t||WOe(e,r+8):i==="VP8X"&&o>=10?t=t||XOe(e,r+8):i==="EXIF"&&(a=GOe.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=N((UKe,Fle)=>{"use strict";Fle.exports={avif:ale(),bmp:lle(),gif:vle(),ico:dle(),jpeg:mle(),png:_le(),psd:Mle(),svg:Sle(),tiff:Dle(),webp:Ile()}});var Ble=N((GKe,mA)=>{"use strict";var pA=Ole();function ZOe(e){for(var r=Object.keys(pA),t=0;t<r.length;t++){var a=pA[r[t]](e);if(a)return a.width>0&&a.height>0?a:null}return null}mA.exports=function(r){return ZOe(r)};mA.exports.parsers=pA});var Ule=N(Hle=>{"use strict";var $Oe=Ble(),JOe=Vl().IMAGE_URL_PREFIX,KOe=l0().Buffer;Hle.getImageSize=function(e){var r=e.replace(JOe,""),t=new KOe(r,"base64");return $Oe(t)}});var Vle=N((VKe,Yle)=>{"use strict";var Gle=ke(),QOe=t0(),eBe=Fr(),Qb=Gr(),rBe=ke().maxRowLength,tBe=Ule().getImageSize;Yle.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=rBe(t.z);else if(t._hasSource){var i=tBe(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=iBe(t);var d={x0:s,y0:u,z:t.z,w:n,h:a};return[d]};function aBe(e,r,t,a){return function(n){return Gle.constrain((n-e)*r,t,a)}}function nBe(e,r){return function(t){return Gle.constrain(t,e,r)}}function iBe(e){var r=QOe.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(aBe(e.zmin[n],(r.max[n]-r.min[n])/(e.zmax[n]-e.zmin[n]),r.min[n],r.max[n])):e._sArray.push(nBe(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(!eBe(s))return!1;o[l]=e._sArray[l](s)}return o}}});var Xle=N((jKe,Wle)=>{"use strict";var oBe=Dr(),$f=ke(),jle=$f.strTranslate,lBe=Fl(),sBe=t0(),uBe=x9(),fBe=Q2().STYLE;Wle.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&uBe();$f.makeTraceGroups(n,a,"im").each(function(s){var u=oBe.select(this),f=s[0],c=f.trace,v=(c.zsmooth==="fast"||c.zsmooth===!1&&l)&&!c._hasZ&&c._hasSource&&i.type==="linear"&&o.type==="linear";c._realImage=v;var d=f.z,p=f.x0,m=f.y0,y=f.w,x=f.h,T=c.dx,w=c.dy,b,_,k,M,q,C;for(C=0;b===void 0&&C<y;)b=i.c2p(p+C*T),C++;for(C=y;_===void 0&&C>0;)_=i.c2p(p+C*T),C--;for(C=0;M===void 0&&C<x;)M=o.c2p(m+C*w),C++;for(C=x;q===void 0&&C>0;)q=o.c2p(m+C*w),C--;if(_<b&&(k=_,_=b,b=k),q<M&&(k=M,M=q,q=k),!v){var D=.5;b=Math.max(-D*i._length,b),_=Math.min((1+D)*i._length,_),M=Math.max(-D*o._length,M),q=Math.min((1+D)*o._length,q)}var P=Math.round(_-b),R=Math.round(q-M),I=P<=0||R<=0;if(I){var F=u.selectAll("image").data([]);F.exit().remove();return}function B(se){var $=document.createElement("canvas");$.width=P,$.height=R;var fe=$.getContext("2d",{willReadFrequently:!0}),oe=function(Ie){return $f.constrain(Math.round(i.c2p(p+Ie*T)-b),0,P)},ue=function(Ie){return $f.constrain(Math.round(o.c2p(m+Ie*w)-M),0,R)},ce=sBe.colormodel[c.colormodel],ie=ce.colormodel||c.colormodel,ge=ce.fmt,Ce;for(C=0;C<f.w;C++){var _e=oe(C),Ee=oe(C+1);if(!(Ee===_e||isNaN(Ee)||isNaN(_e)))for(var Ae=0;Ae<f.h;Ae++){var Se=ue(Ae),Re=ue(Ae+1);Re===Se||isNaN(Re)||isNaN(Se)||!se(C,Ae)||(Ce=c._scaler(se(C,Ae)),Ce?fe.fillStyle=ie+"("+ge(Ce).join(",")+")":fe.fillStyle="rgba(0,0,0,0)",fe.fillRect(_e,Se,Ee-_e,Re-Se))}}return $}var U=u.selectAll("image").data([s]);U.enter().append("svg:image").attr({xmlns:lBe.svg,preserveAspectRatio:"none"}),U.exit().remove();var G=c.zsmooth===!1?fBe:"";if(v){var V=$f.simpleMap(i.range,i.r2l),Y=$f.simpleMap(o.range,o.r2l),X=V[1]<V[0],j=Y[1]>Y[0];if(X||j){var J=b+P/2,ae=M+R/2;G+="transform:"+jle(J+"px",ae+"px")+"scale("+(X?-1:1)+","+(j?-1:1)+")"+jle(-J+"px",-ae+"px")+";"}}U.attr("style",G);var te=new Promise(function(se){if(c._hasZ)se();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===y&&c._canvas.el.height===x&&c._canvas.source===c.source)se();else{var $=document.createElement("canvas");$.width=y,$.height=x;var fe=$.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var oe=c._image;oe.onload=function(){fe.drawImage(oe,0,0),c._canvas={el:$,source:c.source},se()},oe.setAttribute("src",c.source)}}).then(function(){var se,$;if(c._hasZ)$=B(function(ue,ce){var ie=d[ce][ue];return $f.isTypedArray(ie)&&(ie=Array.from(ie)),ie}),se=$.toDataURL("image/png");else if(c._hasSource)if(v)se=c.source;else{var fe=c._canvas.el.getContext("2d",{willReadFrequently:!0}),oe=fe.getImageData(0,0,y,x).data;$=B(function(ue,ce){var ie=4*(ce*y+ue);return[oe[ie],oe[ie+1],oe[ie+2],oe[ie+3]]}),se=$.toDataURL("image/png")}U.attr({"xlink:href":se,height:R,width:P,x:b,y:M})});r._promises.push(te)})}});var $le=N((WKe,Zle)=>{"use strict";var cBe=Dr();Zle.exports=function(r){cBe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var ese=N((XKe,Qle)=>{"use strict";var Jle=Fn(),Kle=ke(),e5=Kle.isArrayOrTypedArray,vBe=t0();Qle.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(Jle.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||Jle.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=vBe.colormodel[i.colormodel],m=p.colormodel||i.colormodel,y=m.length,x=i._scaler(f),T=p.suffix,w=[];(i.hovertemplate||v)&&(w.push("["+[x[0]+T[0],x[1]+T[1],x[2]+T[2]].join(", ")),y===4&&w.push(", "+x[3]+T[3]),w.push("]"),w=w.join(""),r.extraText=m.toUpperCase()+": "+w);var b;e5(i.hovertext)&&e5(i.hovertext[u])?b=i.hovertext[u][s]:e5(i.text)&&e5(i.text[u])&&(b=i.text[u][s]);var _=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,M=n.y0+(u+.5)*i.dy,q="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[Kle.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:x,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:q,text:b,hovertemplateLabels:{zLabel:q,colorLabel:w,"color[0]Label":x[0]+T[0],"color[1]Label":x[1]+T[1],"color[2]Label":x[2]+T[2],"color[3]Label":x[3]+T[3]}})]}}}});var tse=N((ZKe,rse)=>{"use strict";rse.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 nse=N(($Ke,ase)=>{"use strict";ase.exports={attributes:(dT(),un(hT)).default,supplyDefaults:Vee(),calc:Vle(),plot:Xle(),style:$le(),hoverPoints:ese(),eventData:tse(),moduleType:"trace",name:"image",basePlotModule:Qi(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var ose=N((JKe,ise)=>{"use strict";ise.exports=nse()});var yA=N((KKe,sse)=>{"use strict";var r5=Nn(),hBe=zv().attributes,dBe=ka(),pBe=Ei(),{hovertemplateAttrs:mBe,texttemplateAttrs:yBe,templatefallbackAttrs:lse}=fi(),vu=Mt().extendFlat,gBe=Di().pattern,t5=dBe({editType:"plot",arrayOk:!0,colorEditType:"plot"});sse.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:pBe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:gBe,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:mBe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:lse(),texttemplate:yBe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:lse({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:hBe({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 vse=N((QKe,cse)=>{"use strict";var bBe=Fr(),Z1=ke(),xBe=yA(),_Be=zv().defaults,wBe=Sf().handleText,TBe=ke().coercePattern;function use(e,r){var t=Z1.isArrayOrTypedArray(e),a=Z1.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(bBe(l)&&l>0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function fse(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");TBe(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 MBe(e,r,t,a){function n(T,w){return Z1.coerce(e,r,xBe,T,w)}var i=n("labels"),o=n("values"),l=use(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,fse(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",Z1.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");wBe(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");_Be(r,a,n);var m=n("hole"),y=n("title.text");if(y){var x=n("title.position",m?"middle center":"top center");!m&&x==="middle center"&&(r.title.position="top center"),Z1.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}cse.exports={handleLabelsAndValues:use,handleMarkerDefaults:fse,supplyDefaults:MBe}});var gA=N((eQe,hse)=>{"use strict";hse.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var pse=N((rQe,dse)=>{"use strict";var ABe=ke(),kBe=gA();dse.exports=function(r,t){function a(n,i){return ABe.coerce(r,t,kBe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var bA=N((tQe,gse)=>{"use strict";var SBe=Fr(),L0=Sr(),qBe={};function LBe(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=mse(a["_"+r.type+"colormap"]),p=0,m=!1;for(f=0;f<s;f++){var y,x,T;if(u){if(y=l[f],!SBe(y))continue;y=+y}else y=1;x=i[f],(x===void 0||x==="")&&(x=f),x=String(x);var w=v[x];w===void 0?(v[x]=t.length,T=n.indexOf(x)!==-1,T||(p+=y),t.push({v:y,label:x,color:d(o[f],x),i:f,pts:[f],hidden:T})):(m=!0,c=t[w],c.v+=y,c.pts.push(f),c.hidden||(p+=y),c.color===!1&&o[f]&&(c.color=d(o[f],x)))}t=t.filter(function(_){return _.v>=0});var b=r.type==="funnelarea"?m:r.sort;return b&&t.sort(function(_,k){return k.v-_.v}),t[0]&&(t[0].vTotal=p),t}function mse(e){return function(t,a){if(!t||!L0.isValid(t))return!1;let n=L0.rgbaString(t);return e[a]||(e[a]=n),n}}function CBe(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=yse(i,qBe));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 yse(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(L0.hexString(L0.adjustLightness(e[t],20)));for(t=0;t<e.length;t++)n.push(L0.hexString(L0.adjustLightness(e[t],-20)));r[a]=n}return n}gse.exports={calc:LBe,crossTraceCalc:CBe,makePullColorFn:mse,generateExtendedColors:yse}});var xse=N((aQe,bse)=>{"use strict";var EBe=qo().appendArrayMultiPointValues;bse.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]),EBe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var Use=N((nQe,Hse)=>{"use strict";var oi=Dr(),DBe=va(),a5=Fn(),kse=Sr(),is=Xr(),on=ke(),PBe=on.strScale,_se=on.strTranslate,xA=Ca(),Sse=Vd(),RBe=Sse.recordMinTextSize,zBe=Sse.clearMinTextSize,qse=Sd().TEXTPAD,Cr=Ay(),n5=xse(),wse=ke().isValidTextValue;function NBe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;zBe("pie",a),Ese(r,e),Fse(r,n);var i=on.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=oi.select(this),s=o[0],u=s.trace;VBe(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(b,_){if(b.hidden){oi.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var k=s.cx,M=s.cy,q=oi.select(this),C=q.selectAll("path.surface").data([b]);if(C.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(Lse,e,o),u.pull){var D=+Cr.castOption(u.pull,b.pts)||0;D>0&&(k+=D*b.pxmid[0],M+=D*b.pxmid[1])}b.cxFinal=k,b.cyFinal=M;function P(V,Y,X,j){var J=j*(Y[0]-V[0]),ae=j*(Y[1]-V[1]);return"a"+j*s.r+","+j*s.r+" 0 "+b.largeArc+(X?" 1 ":" 0 ")+J+","+ae}var R=u.hole;if(b.v===s.vTotal){var I="M"+(k+b.px0[0])+","+(M+b.px0[1])+P(b.px0,b.pxmid,!0,1)+P(b.pxmid,b.px0,!0,1)+"Z";R?C.attr("d","M"+(k+R*b.px0[0])+","+(M+R*b.px0[1])+P(b.px0,b.pxmid,!1,R)+P(b.pxmid,b.px0,!1,R)+"Z"+I):C.attr("d",I)}else{var F=P(b.px0,b.px1,!0,1);if(R){var B=1-R;C.attr("d","M"+(k+R*b.px1[0])+","+(M+R*b.px1[1])+P(b.px1,b.px0,!1,R)+"l"+B*b.px0[0]+","+B*b.px0[1]+F+"Z")}else C.attr("d","M"+k+","+M+"l"+b.px0[0]+","+b.px0[1]+F+"Z")}Ose(e,b,s);var U=Cr.castOption(u.textposition,b.pts),G=q.selectAll("g.slicetext").data(b.text&&U!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var V=on.ensureSingle(oi.select(this),"text","",function($){$.attr("data-notex",1)}),Y=on.ensureUniformFontSize(e,U==="outside"?FBe(u,b,a.font):Cse(u,b,a.font));V.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(is.font,Y).call(xA.convertToTspans,e);var X=is.bBox(V.node()),j;if(U==="outside")j=Ase(X,b);else if(j=Dse(X,b,s),U==="auto"&&j.scale<1){var J=on.ensureUniformFontSize(e,u.outsidetextfont);V.call(is.font,J),X=is.bBox(V.node()),j=Ase(X,b)}var ae=j.textPosAngle,te=ae===void 0?b.pxmid:i5(s.r,ae);if(j.targetX=k+te[0]*j.rCenter+(j.x||0),j.targetY=M+te[1]*j.rCenter+(j.y||0),Bse(j,X),j.outside){var se=j.targetY;b.yLabelMin=se-X.height/2,b.yLabelMid=se,b.yLabelMax=se+X.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}j.fontSize=Y.size,RBe(u.type,j,a),o[_].transform=j,on.setTransormAndDisplay(V,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 b=on.ensureSingle(oi.select(this),"text","",function(M){M.attr("data-notex",1)}),_=u.title.text;u._meta&&(_=on.templateString(_,u._meta)),b.text(_).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(is.font,u.title.font).call(xA.convertToTspans,e);var k;u.title.position==="middle center"?k=HBe(s):k=Nse(s,n),b.attr("transform",_se(k.x,k.y)+PBe(Math.min(1,k.scale))+_se(k.tx,k.ty))}),v&&GBe(c,u),IBe(f,u),v&&u.automargin){var p=is.bBox(l.node()),m=u.domain,y=n.w*(m.x[1]-m.x[0]),x=n.h*(m.y[1]-m.y[0]),T=(.5*y-s.r)/n.w,w=(.5*x-s.r)/n.h;DBe.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-T,xr:m.x[1]+T,yb:m.y[0]-w,yt:m.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var o=oi.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function IBe(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(kse.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function Lse(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),m=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Cr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var x=s.text;on.isValidTextValue(x)&&y.push(x)}s.value=s.v,s.valueLabel=Cr.formatPieValue(s.v,m),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Cr.formatPiePercent(s.percent,m),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var T=f.hoverlabel,w=T.font,b=[];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:y.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:b}),s.bbox=b[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 FBe(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 Cse(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||kse.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(xA.convertToTspans,r),l=is.bBox(o.node(),!0);t.titleBox={width:l.width,height:l.height},o.remove()}}function Dse(e,r,t){var a=t.r||r.rpx1,n=r.rInscribed,i=r.startangle===r.stopangle;if(i)return{rCenter:1-n,scale:0,rotate:0,textPosAngle:0};var o=r.ring,l=o===1&&Math.abs(r.startangle-r.stopangle)===Math.PI*2,s=r.halfangle,u=r.midangle,f=t.trace.insidetextorientation,c=f==="horizontal",v=f==="tangential",d=f==="radial",p=f==="auto",m=[],y;if(!p){var x=function(q,C){if(OBe(r,q)){var D=Math.abs(q-r.startangle),P=Math.abs(q-r.stopangle),R=D<P?D:P;C==="tan"?y=Mse(e,a,o,R,0):y=Tse(e,a,o,R,Math.PI/2),y.textPosAngle=q,m.push(y)}},T;if(c||v){for(T=4;T>=-4;T-=2)x(Math.PI*T,"tan");for(T=4;T>=-4;T-=2)x(Math.PI*(T+1),"tan")}if(c||d){for(T=4;T>=-4;T-=2)x(Math.PI*(T+1.5),"rad");for(T=4;T>=-4;T-=2)x(Math.PI*(T+.5),"rad")}}if(l||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/w,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;m.push(y)}(p||d)&&(y=Tse(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||v)&&(y=Mse(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y));for(var b=0,_=0,k=0;k<m.length;k++){var M=m[k].scale;if(_<M&&(_=M,b=k),!p&&_>=1)break}return m[b]}function OBe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t<r&&r<a}function Tse(e,r,t,a,n){r=Math.max(0,r-2*qse);var i=e.width/e.height,o=zse(i,a,r,t);return{scale:o*2/e.height,rCenter:Pse(i,o/r),rotate:Rse(n)}}function Mse(e,r,t,a,n){r=Math.max(0,r-2*qse);var i=e.height/e.width,o=zse(i,a,r,t);return{scale:o*2/e.width,rCenter:Pse(i,o/r),rotate:Rse(n+Math.PI/2)}}function Pse(e,r){return Math.cos(r)-e*r}function Rse(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 BBe(e,r){return e.v===r.vTotal&&!r.trace.hole?1:Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2)}function Ase(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 HBe(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=UBe(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=_A(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function UBe(e,r){return e/(r===void 0?1:r)}function _A(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 GBe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,p;function m(w,b){return w.pxmid[1]-b.pxmid[1]}function y(w,b){return b.pxmid[1]-w.pxmid[1]}function x(w,b){b||(b={});var _=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,M=a?w.yLabelMax:w.yLabelMin,q=w.cyFinal+o(w.px0[1],w.px1[1]),C=_-k,D,P,R,I,F,B;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?(I=R.cyFinal+o(R.px0[1],R.px1[1]),C=I-k-w.labelExtraY,C*s>0&&(w.labelExtraY+=C)):(M+w.labelExtraY-q)*s>0&&(D=3*l*Math.abs(P-c.indexOf(w)),F=R.cxFinal+i(R.px0[0],R.px1[0]),B=F+D-(w.cxFinal+w.pxmid[0])-w.labelExtraX,B*l>0&&(w.labelExtraX+=B)))}for(a=0;a<2;a++)for(n=a?m:y,o=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,l=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],v=0;v<u.length;v++)u[v].yLabelMid!==void 0&&d.push(u[v]);for(p=!1,v=0;a&&v<f.length;v++)if(f[v].yLabelMid!==void 0){p=f[v];break}for(v=0;v<d.length;v++){var T=v&&d[v-1];p&&!v&&(T=p),x(d[v],T)}}}function Fse(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-=_A(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-=_A(n,r)),i.scalegroup&&t.indexOf(i.scalegroup)===-1&&t.push(i.scalegroup)}YBe(e,t)}function YBe(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 VBe(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=BBe(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(b){return l.indexOf(b)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var m=Cr.getFirstFilled(n.text,r.pts);wse(m)&&p.push(m)}c&&p.push(Cr.formatPieValue(r.v,d)),v&&p.push(Cr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("<br>")}function y(b){return{label:b.label,value:b.v,valueLabel:Cr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Cr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:on.castOption(n,b.i,"customdata")}}if(i){var x=on.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var T=y(r),w=Cr.getFirstFilled(n.text,r.pts);(wse(w)||w==="")&&(T.text=w),r.text=on.texttemplateString({data:[T,n._meta],fallback:n.texttemplatefallback,labels:T,locale:e._fullLayout._d3locale,template:x})}}}function Bse(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}Hse.exports={plot:NBe,formatSliceLabel:Ose,transformInsideText:Dse,determineInsideTextFont:Cse,positionTitleOutside:Nse,prerenderTitles:Ese,layoutAreas:Fse,attachFxHandlers:Lse,computeTransform:Bse}});var Vse=N((iQe,Yse)=>{"use strict";var Gse=Dr(),jBe=ky(),WBe=Vd().resizeText;Yse.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");WBe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=Gse.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){Gse.select(this).call(jBe,l,i,r)})})}});var Wse=N(C0=>{"use strict";var jse=va();C0.name="pie";C0.plot=function(e,r,t,a){jse.plotBasePlot(C0.name,e,r,t,a)};C0.clean=function(e,r,t,a){jse.cleanBasePlot(C0.name,e,r,t,a)}});var Zse=N((lQe,Xse)=>{"use strict";Xse.exports={attributes:yA(),supplyDefaults:vse().supplyDefaults,supplyLayoutDefaults:pse(),layoutAttributes:gA(),calc:bA().calc,crossTraceCalc:bA().crossTraceCalc,plot:Use().plot,style:Vse(),styleOne:ky(),moduleType:"trace",name:"pie",basePlotModule:Wse(),categories:["pie-like","pie","showLegend"],meta:{}}});var Jse=N((sQe,$se)=>{"use strict";$se.exports=Zse()});var mn=N((uQe,Qse)=>{"use strict";var Kse=Object.getOwnPropertySymbols,XBe=Object.prototype.hasOwnProperty,ZBe=Object.prototype.propertyIsEnumerable;function $Be(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function JBe(){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}}Qse.exports=JBe()?Object.assign:function(e,r){for(var t,a=$Be(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var o in t)XBe.call(t,o)&&(a[o]=t[o]);if(Kse){n=Kse(t);for(var l=0;l<n.length;l++)ZBe.call(t,n[l])&&(a[n[l]]=t[n[l]])}}return a}});var yn=N((fQe,rue)=>{var l5=mn();function eue(){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(eue.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 wA(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(wA.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 TA(){this.shortYearCutoff="+10"}l5(TA.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 wA(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 MA(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}MA.prototype=new TA;l5(MA.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=rue.exports=new eue;Ur.cdate=wA;Ur.baseCalendar=TA;Ur.calendars.gregorian=MA});var tue=N(()=>{var AA=mn(),Ya=yn();AA(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[""];AA(Ya.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});AA(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(b,_){for(var k=1;w+k<e.length&&e.charAt(w+k)===b;)k++;return w+=k-1,Math.floor(k/(_||1))>1},f=function(b,_,k,M){var q=""+_;if(u(b,M))for(;q.length<k;)q="0"+q;return q},c=function(b,_,k,M){return u(b)?M[_]:k[_]},v=this,d=function(b){return typeof i=="function"?i.call(v,b,u("m")):y(f("m",b.month(),2))},p=function(b,_){return _?typeof l=="function"?l.call(v,b):l[b.month()-v.minMonth]:typeof o=="function"?o.call(v,b):o[b.month()-v.minMonth]},m=this.local.digits,y=function(b){return t.localNumbers&&m?m(b):b},x="",T=!1,w=0;w<e.length;w++)if(T)e.charAt(w)==="'"&&!u("'")?T=!1:x+=e.charAt(w);else switch(e.charAt(w)){case"d":x+=y(f("d",r.day(),2));break;case"D":x+=c("D",r.dayOfWeek(),a,n);break;case"o":x+=f("o",r.dayOfYear(),3);break;case"w":x+=f("w",r.weekOfYear(),2);break;case"m":x+=d(r);break;case"M":x+=p(r,u("M"));break;case"y":x+=u("y",2)?r.year():(r.year()%100<10?"0":"")+r.year()%100;break;case"Y":u("Y",2),x+=r.formatYear();break;case"J":x+=r.toJD();break;case"@":x+=(r.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":x+=(r.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":u("'")?x+="'":T=!0;break;default:x+=e.charAt(w)}return x},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,m=!1,y=!1,x=function(R,I){for(var F=1;C+F<e.length&&e.charAt(C+F)===R;)F++;return C+=F-1,Math.floor(F/(I||1))>1},T=function(R,I){var F=x(R,I),B=[2,3,F?4:2,F?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],U=new RegExp("^-?\\d{1,"+B+"}"),G=r.substring(q).match(U);if(!G)throw(Ya.local.missingNumberAt||Ya.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=G[0].length,parseInt(G[0],10)},w=this,b=function(){if(typeof l=="function"){x("m");var R=l.call(w,r.substring(q));return q+=R.length,R}return T("m")},_=function(R,I,F,B){for(var U=x(R,B)?F:I,G=0;G<U.length;G++)if(r.substr(q,U[G].length).toLowerCase()===U[G].toLowerCase())return q+=U[G].length,G+w.minMonth;throw(Ya.local.unknownNameAt||Ya.regionalOptions[""].unknownNameAt).replace(/\{0\}/,q)},k=function(){if(typeof u=="function"){var R=x("M")?u.call(w,r.substring(q)):s.call(w,r.substring(q));return q+=R.length,R}return _("M",s,u)},M=function(){if(r.charAt(q)!==e.charAt(C))throw(Ya.local.unexpectedLiteralAt||Ya.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,q);q++},q=0,C=0;C<e.length;C++)if(y)e.charAt(C)==="'"&&!x("'")?y=!1:M();else switch(e.charAt(C)){case"d":d=T("d");break;case"D":_("D",n,i);break;case"o":p=T("o");break;case"w":T("w");break;case"m":v=b();break;case"M":v=k();break;case"y":var D=C;m=!x("y",2),C=D,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"'":x("'")?M():y=!0;break;default:M()}if(q<r.length)throw Ya.local.unexpectedText||Ya.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&m&&(c+=a===-1?1900:this.today().year()-this.today().year()%100-(c<=a?0:100)),typeof v=="string"&&(v=o.call(this,c,v)),p>-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var aue=N(()=>{var hu=yn(),KBe=mn(),kA=hu.instance();function s5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}s5.prototype=new hu.baseCalendar;KBe(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(eHe);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(rHe);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(tHe);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=kA.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=nHe(e,i,t,n);return kA.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=kA.fromJD(e),t=aHe(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(QBe),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 QBe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,eHe=/^\d?\d[iI]?/m,rHe=/^闰?十?[一二三四五六七八九]?月/m,tHe=/^闰?十?[一二三四五六七八九]?/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 aHe(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,m=new Date(c,v-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var x=du[i.year-du[0]],T;for(T=0;T<13;T++){var w=x&1<<12-T?30:29;if(p<w)break;p-=w}var b=x>>13;return!b||T<b?(i.isIntercalary=!1,i.month=1+T):T===b?(i.isIntercalary=!0,i.month=T):(i.isIntercalary=!1,i.month=T),i.day=1+p,i}function nHe(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 m=0;m<p;m++){var y=v&1<<12-m?30:29;c+=y}var x=pu[o.year-pu[0]],T=x>>9&4095,w=x>>5&15,b=x&31,_=new Date(T,w-1,b+c);return i.year=_.getFullYear(),i.month=1+_.getMonth(),i.day=_.getDate(),i}});var nue=N(()=>{var Jf=yn(),iHe=mn();function SA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SA.prototype=new Jf.baseCalendar;iHe(SA.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=SA});var iue=N(()=>{var os=yn(),oHe=mn();function qA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qA.prototype=new os.baseCalendar;oHe(qA.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:lHe[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 lHe={20:"Fruitbat",21:"Anchovy"};os.calendars.discworld=qA});var oue=N(()=>{var Kf=yn(),sHe=mn();function LA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LA.prototype=new Kf.baseCalendar;sHe(LA.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=LA});var lue=N(()=>{var mu=yn(),uHe=mn();function CA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CA.prototype=new mu.baseCalendar;uHe(CA.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=CA});var sue=N(()=>{var $1=yn(),fHe=mn();function EA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EA.prototype=new $1.baseCalendar;fHe(EA.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,$1.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,$1.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,$1.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)}});$1.calendars.islamic=EA});var uue=N(()=>{var J1=yn(),cHe=mn();function DA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DA.prototype=new J1.baseCalendar;cHe(DA.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,J1.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,J1.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,J1.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)}});J1.calendars.julian=DA});var cue=N(()=>{var po=yn(),vHe=mn();function RA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RA.prototype=new po.baseCalendar;vHe(RA.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=PA(e+8+340,365);return[Math.floor(r/20)+1,PA(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[fue(e+20,20),fue(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 PA(e,r){return e-r*Math.floor(e/r)}function fue(e,r){return PA(e-1,r)+1}po.calendars.mayan=RA});var hue=N(()=>{var Qf=yn(),hHe=mn();function zA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zA.prototype=new Qf.baseCalendar;var vue=Qf.instance("gregorian");hHe(zA.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 vue.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+vue.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=zA});var due=N(()=>{var ec=yn(),dHe=mn();function NA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}NA.prototype=new ec.baseCalendar;dHe(NA.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,ec.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,ec.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,ec.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=ec.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=ec.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]}});ec.calendars.nepali=NA});var pue=N(()=>{var E0=yn(),pHe=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 E0.baseCalendar;pHe(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,E0.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,E0.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,E0.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)}});E0.calendars.persian=c5;E0.calendars.jalali=c5});var mue=N(()=>{var rc=yn(),mHe=mn(),v5=rc.instance();function IA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IA.prototype=new rc.baseCalendar;mHe(IA.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,rc.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,rc.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,rc.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,rc.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)}});rc.calendars.taiwan=IA});var yue=N(()=>{var tc=yn(),yHe=mn(),h5=tc.instance();function FA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}FA.prototype=new tc.baseCalendar;yHe(FA.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,tc.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,tc.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,tc.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,tc.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)}});tc.calendars.thai=FA});var gue=N(()=>{var ac=yn(),gHe=mn();function OA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}OA.prototype=new ac.baseCalendar;gHe(OA.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,ac.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,ac.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,ac.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=ac.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=ac.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});ac.calendars.ummalqura=OA;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 xue=N((HQe,bue)=>{"use strict";bue.exports=yn();tue();aue();nue();iue();oue();lue();sue();uue();cue();hue();due();pue();mue();yue();gue()});var Sue=N((UQe,kue)=>{"use strict";var wue=xue(),K1=ke(),Tue=Gt(),bHe=Tue.EPOCHJD,xHe=Tue.ONEDAY,UA={valType:"enumerated",values:K1.sortObjectKeys(wue.calendars),editType:"calc",dflt:"gregorian"},Mue=function(e,r,t,a){var n={};return n[t]=UA,K1.coerce(e,r,n,t,a)},_He=function(e,r,t,a){for(var n=0;n<t.length;n++)Mue(e,r,t[n]+"calendar",a.calendar)},wHe={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"},THe={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="##",AHe={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 kHe(e,r,t){for(var a=Math.floor((r+.05)/xHe)+bHe,n=Aue(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=AHe[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 _ue={};function Aue(e){var r=_ue[e];return r||(r=_ue[e]=wue.instance(e),r)}function Q1(e){return K1.extendFlat({},UA,{description:e})}function GA(e){return"Sets the calendar system to use with `"+e+"` date data."}var HA={xcalendar:Q1(GA("x"))},ql=K1.extendFlat({},HA,{ycalendar:Q1(GA("y"))}),BA=K1.extendFlat({},ql,{zcalendar:Q1(GA("z"))}),D0=Q1(["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(" "));kue.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:ql,bar:ql,box:ql,heatmap:ql,contour:ql,histogram:ql,histogram2d:ql,histogram2dcontour:ql,scatter3d:BA,surface:BA,mesh3d:BA,scattergl:ql,ohlc:HA,candlestick:HA},layout:{calendar:Q1(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:D0},yaxis:{calendar:D0},scene:{xaxis:{calendar:D0},yaxis:{calendar:D0},zaxis:{calendar:D0}},polar:{radialaxis:{calendar:D0}}}},layoutAttributes:UA,handleDefaults:Mue,handleTraceDefaults:_He,CANONICAL_SUNDAY:THe,CANONICAL_TICK:wHe,DFLTRANGE:MHe,getCal:Aue,worldCalFmt:kHe}});var Lue=N((GQe,que)=>{"use strict";que.exports=Sue()});var SHe=N((YQe,Eue)=>{var Cue=fX();Cue.register([vZ(),QZ(),bJ(),BJ(),eK(),tQ(),mQ(),iee(),Ree(),ose(),Jse(),Lue()]);Eue.exports=Cue});return SHe();})();
/*! 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;
}));