UNPKG

plotly.js

Version:

The open source javascript graphing library that powers plotly

50 lines • 1.41 MB
/**
* plotly.js (geo - minified) v4.3.0
* Copyright 2012-2026, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
(
 function(root, factory) {
  if (typeof module === "object" && module.exports) {
   module.exports = factory();
  } else {
   root.moduleName = factory();
  }
} (typeof self !== "undefined" ? self : this, () => {
"use strict";var Plotly=(()=>{var NY=Object.create;var J2=Object.defineProperty,BY=Object.defineProperties,IY=Object.getOwnPropertyDescriptor,HY=Object.getOwnPropertyDescriptors,OY=Object.getOwnPropertyNames,Mh=Object.getOwnPropertySymbols,UY=Object.getPrototypeOf,Sy=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable;var z_=(e,r,t)=>r in e?J2(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ga=(e,r)=>{for(var t in r||(r={}))Sy.call(r,t)&&z_(e,t,r[t]);if(Mh)for(var t of Mh(r))N_.call(r,t)&&z_(e,t,r[t]);return e},Ha=(e,r)=>BY(e,HY(r));var B_=(e,r)=>{var t={};for(var a in e)Sy.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&Mh)for(var a of Mh(e))r.indexOf(a)<0&&N_.call(e,a)&&(t[a]=e[a]);return t};var Oa=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var oe=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Ua=(e,r)=>{for(var t in r)J2(e,t,{get:r[t],enumerable:!0})},I_=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of OY(r))!Sy.call(e,n)&&n!==t&&J2(e,n,{get:()=>r[n],enumerable:!(a=IY(r,n))||a.enumerable});return e};var H_=(e,r,t)=>(t=e!=null?NY(UY(e)):{},I_(r||!e||!e.__esModule?J2(t,"default",{value:e,enumerable:!0}):t,e)),xr=e=>I_(J2({},"__esModule",{value:!0}),e);var O_=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{l(t.next(s))}catch(u){n(u)}},o=s=>{try{l(t.throw(s))}catch(u){n(u)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,o);l((t=t.apply(e,r)).next())});var K2=oe(U_=>{"use strict";U_.version="4.3.0"});var Y_=oe((G_,Th)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Th!="undefined"&&Th.exports&&(Th.exports=t[r])})("Promise",typeof window!="undefined"?window:G_,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,x,_,A){return Object.defineProperty(C,x,{value:_,writable:!0,configurable:A!==!1})}}catch(y){r=function(x,_,A){return x[_]=A,x}}a=(function(){var C,x,_;function A(T,M){this.fn=T,this.self=M,this.next=void 0}return{add:function(M,E){_=new A(M,E),x?x.next=_:C=_,x=_,_=void 0},drain:function(){var M=C;for(C=x=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(y,C){a.add(y,C),t||(t=i(a.drain))}function l(y){var C,x=typeof y;return y!=null&&(x=="object"||x=="function")&&(C=y.then),typeof C=="function"?C:!1}function s(){for(var y=0;y<this.chain.length;y++)u(this,this.state===1?this.chain[y].success:this.chain[y].failure,this.chain[y]);this.chain.length=0}function u(y,C,x){var _,A;try{C===!1?x.reject(y.msg):(C===!0?_=y.msg:_=C.call(void 0,y.msg),_===x.promise?x.reject(TypeError("Promise-chain cycle")):(A=l(_))?A.call(_,x.resolve,x.reject):x.resolve(_))}catch(T){x.reject(T)}}function f(y){var C,x=this;if(!x.triggered){x.triggered=!0,x.def&&(x=x.def);try{(C=l(y))?o(function(){var _=new h(x);try{C.call(y,function(){f.apply(_,arguments)},function(){c.apply(_,arguments)})}catch(A){c.call(_,A)}}):(x.msg=y,x.state=1,x.chain.length>0&&o(s,x))}catch(_){c.call(new h(x),_)}}}function c(y){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=y,C.state=2,C.chain.length>0&&o(s,C))}function d(y,C,x,_){for(var A=0;A<C.length;A++)(function(M){y.resolve(C[M]).then(function(P){x(M,P)},_)})(A)}function h(y){this.def=y,this.triggered=!1}function p(y){this.promise=y,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(y){if(typeof y!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var C=new p(this);this.then=function(_,A){var T={success:typeof _=="function"?_:!0,failure:typeof A=="function"?A:!1};return T.promise=new this.constructor(function(E,P){if(typeof E!="function"||typeof P!="function")throw TypeError("Not a function");T.resolve=E,T.reject=P}),C.chain.push(T),C.state!==0&&o(s,C),T.promise},this.catch=function(_){return this.then(void 0,_)};try{y.call(void 0,function(_){f.call(C,_)},function(_){c.call(C,_)})}catch(x){c.call(C,x)}}var b=r({},"constructor",m,!1);return m.prototype=b,r(b,"__NPO__",0,!1),r(m,"resolve",function(C){var x=this;return C&&typeof C=="object"&&C.__NPO__===1?C:new x(function(A,T){if(typeof A!="function"||typeof T!="function")throw TypeError("Not a function");A(C)})}),r(m,"reject",function(C){return new this(function(_,A){if(typeof _!="function"||typeof A!="function")throw TypeError("Not a function");A(C)})}),r(m,"all",function(C){var x=this;return n.call(C)!="[object Array]"?x.reject(TypeError("Not an array")):C.length===0?x.resolve([]):new x(function(A,T){if(typeof A!="function"||typeof T!="function")throw TypeError("Not a function");var M=C.length,E=Array(M),P=0;d(x,C,function(I,X){E[I]=X,++P===M&&A(E)},T)})}),r(m,"race",function(C){var x=this;return n.call(C)!="[object Array]"?x.reject(TypeError("Not an array")):new x(function(A,T){if(typeof A!="function"||typeof T!="function")throw TypeError("Not a function");d(x,C,function(E,P){A(P)},T)})}),m})});var Lt=oe((c4e,kh)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var w=g.length,S=new Array(w);w--;)S[w]=g[w];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){s.call(this,g,w,S+"")},u.setProperty=function(g,w,S){f.call(this,g,w+"",S)}}e.ascending=c;function c(v,g){return v<g?-1:v>g?1:v>=g?0:NaN}e.descending=function(v,g){return g<v?-1:g>v?1:g>=v?0:NaN},e.min=function(v,g){var w=-1,S=v.length,F,L;if(arguments.length===1){for(;++w<S;)if((L=v[w])!=null&&L>=L){F=L;break}for(;++w<S;)(L=v[w])!=null&&F>L&&(F=L)}else{for(;++w<S;)if((L=g.call(v,v[w],w))!=null&&L>=L){F=L;break}for(;++w<S;)(L=g.call(v,v[w],w))!=null&&F>L&&(F=L)}return F},e.max=function(v,g){var w=-1,S=v.length,F,L;if(arguments.length===1){for(;++w<S;)if((L=v[w])!=null&&L>=L){F=L;break}for(;++w<S;)(L=v[w])!=null&&L>F&&(F=L)}else{for(;++w<S;)if((L=g.call(v,v[w],w))!=null&&L>=L){F=L;break}for(;++w<S;)(L=g.call(v,v[w],w))!=null&&L>F&&(F=L)}return F},e.extent=function(v,g){var w=-1,S=v.length,F,L,Y;if(arguments.length===1){for(;++w<S;)if((L=v[w])!=null&&L>=L){F=Y=L;break}for(;++w<S;)(L=v[w])!=null&&(F>L&&(F=L),Y<L&&(Y=L))}else{for(;++w<S;)if((L=g.call(v,v[w],w))!=null&&L>=L){F=Y=L;break}for(;++w<S;)(L=g.call(v,v[w],w))!=null&&(F>L&&(F=L),Y<L&&(Y=L))}return[F,Y]};function d(v){return v===null?NaN:+v}function h(v){return!isNaN(v)}e.sum=function(v,g){var w=0,S=v.length,F,L=-1;if(arguments.length===1)for(;++L<S;)h(F=+v[L])&&(w+=F);else for(;++L<S;)h(F=+g.call(v,v[L],L))&&(w+=F);return w},e.mean=function(v,g){var w=0,S=v.length,F,L=-1,Y=S;if(arguments.length===1)for(;++L<S;)h(F=d(v[L]))?w+=F:--Y;else for(;++L<S;)h(F=d(g.call(v,v[L],L)))?w+=F:--Y;if(Y)return w/Y},e.quantile=function(v,g){var w=(v.length-1)*g+1,S=Math.floor(w),F=+v[S-1],L=w-S;return L?F+L*(v[S]-F):F},e.median=function(v,g){var w=[],S=v.length,F,L=-1;if(arguments.length===1)for(;++L<S;)h(F=d(v[L]))&&w.push(F);else for(;++L<S;)h(F=d(g.call(v,v[L],L)))&&w.push(F);if(w.length)return e.quantile(w.sort(c),.5)},e.variance=function(v,g){var w=v.length,S=0,F,L,Y=0,B=-1,Z=0;if(arguments.length===1)for(;++B<w;)h(F=d(v[B]))&&(L=F-S,S+=L/++Z,Y+=L*(F-S));else for(;++B<w;)h(F=d(g.call(v,v[B],B)))&&(L=F-S,S+=L/++Z,Y+=L*(F-S));if(Z>1)return Y/(Z-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(g,w,S,F){for(arguments.length<3&&(S=0),arguments.length<4&&(F=g.length);S<F;){var L=S+F>>>1;v(g[L],w)<0?S=L+1:F=L}return S},right:function(g,w,S,F){for(arguments.length<3&&(S=0),arguments.length<4&&(F=g.length);S<F;){var L=S+F>>>1;v(g[L],w)>0?F=L:S=L+1}return S}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(v){return p(v.length===1?function(g,w){return c(v(g),w)}:v)},e.shuffle=function(v,g,w){(S=arguments.length)<3&&(w=v.length,S<2&&(g=0));for(var S=w-g,F,L;S;)L=Math.random()*S--|0,F=v[S+g],v[S+g]=v[L+g],v[L+g]=F;return v},e.permute=function(v,g){for(var w=g.length,S=new Array(w);w--;)S[w]=v[g[w]];return S},e.pairs=function(v){for(var g=0,w=v.length-1,S,F=v[0],L=new Array(w<0?0:w);g<w;)L[g]=[S=F,F=v[++g]];return L},e.transpose=function(v){if(!(L=v.length))return[];for(var g=-1,w=e.min(v,b),S=new Array(w);++g<w;)for(var F=-1,L,Y=S[g]=new Array(L);++F<L;)Y[F]=v[F][g];return S};function b(v){return v.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(v){var g=[];for(var w in v)g.push(w);return g},e.values=function(v){var g=[];for(var w in v)g.push(v[w]);return g},e.entries=function(v){var g=[];for(var w in v)g.push({key:w,value:v[w]});return g},e.merge=function(v){for(var g=v.length,w,S=-1,F=0,L,Y;++S<g;)F+=v[S].length;for(L=new Array(F);--g>=0;)for(Y=v[g],w=Y.length;--w>=0;)L[--F]=Y[w];return L};var y=Math.abs;e.range=function(v,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=v,v=0)),(g-v)/w===1/0)throw new Error("infinite range");var S=[],F=C(y(w)),L=-1,Y;if(v*=F,g*=F,w*=F,w<0)for(;(Y=v+w*++L)>g;)S.push(Y/F);else for(;(Y=v+w*++L)<g;)S.push(Y/F);return S};function C(v){for(var g=1;v*g%1;)g*=10;return g}function x(v,g){for(var w in g)Object.defineProperty(v.prototype,w,{value:g[w],enumerable:!1})}e.map=function(v,g){var w=new _;if(v instanceof _)v.forEach(function(B,Z){w.set(B,Z)});else if(Array.isArray(v)){var S=-1,F=v.length,L;if(arguments.length===1)for(;++S<F;)w.set(S,v[S]);else for(;++S<F;)w.set(g.call(v,L=v[S],S),L)}else for(var Y in v)w.set(Y,v[Y]);return w};function _(){this._=Object.create(null)}var A="__proto__",T="\0";x(_,{has:P,get:function(v){return this._[M(v)]},set:function(v,g){return this._[M(v)]=g},remove:z,keys:I,values:function(){var v=[];for(var g in this._)v.push(this._[g]);return v},entries:function(){var v=[];for(var g in this._)v.push({key:E(g),value:this._[g]});return v},size:X,empty:H,forEach:function(v){for(var g in this._)v.call(this,E(g),this._[g])}});function M(v){return(v+="")===A||v[0]===T?T+v:v}function E(v){return(v+="")[0]===T?v.slice(1):v}function P(v){return M(v)in this._}function z(v){return(v=M(v))in this._&&delete this._[v]}function I(){var v=[];for(var g in this._)v.push(E(g));return v}function X(){var v=0;for(var g in this._)++v;return v}function H(){for(var v in this._)return!1;return!0}e.nest=function(){var v={},g=[],w=[],S,F;function L(B,Z,te){if(te>=g.length)return F?F.call(v,Z):S?Z.sort(S):Z;for(var ne=-1,ge=Z.length,ye=g[te++],Re,Ve,_e,Se=new _,Le;++ne<ge;)(Le=Se.get(Re=ye(Ve=Z[ne])))?Le.push(Ve):Se.set(Re,[Ve]);return B?(Ve=B(),_e=function(Ge,Xe){Ve.set(Ge,L(B,Xe,te))}):(Ve={},_e=function(Ge,Xe){Ve[Ge]=L(B,Xe,te)}),Se.forEach(_e),Ve}function Y(B,Z){if(Z>=g.length)return B;var te=[],ne=w[Z++];return B.forEach(function(ge,ye){te.push({key:ge,values:Y(ye,Z)})}),ne?te.sort(function(ge,ye){return ne(ge.key,ye.key)}):te}return v.map=function(B,Z){return L(Z,B,0)},v.entries=function(B){return Y(L(e.map,B,0),0)},v.key=function(B){return g.push(B),v},v.sortKeys=function(B){return w[g.length-1]=B,v},v.sortValues=function(B){return S=B,v},v.rollup=function(B){return F=B,v},v},e.set=function(v){var g=new V;if(v)for(var w=0,S=v.length;w<S;++w)g.add(v[w]);return g};function V(){this._=Object.create(null)}x(V,{has:P,add:function(v){return this._[M(v+="")]=!0,v},remove:z,values:I,size:X,empty:H,forEach:function(v){for(var g in this._)v.call(this,E(g))}}),e.behavior={};function N(v){return v}e.rebind=function(v,g){for(var w=1,S=arguments.length,F;++w<S;)v[F=arguments[w]]=Q(v,g,g[F]);return v};function Q(v,g,w){return function(){var S=w.apply(g,arguments);return S===g?v:S}}function ee(v,g){if(g in v)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var w=0,S=re.length;w<S;++w){var F=re[w]+g;if(F in v)return F}}var re=["webkit","ms","moz","Moz","o","O"];function ae(){}e.dispatch=function(){for(var v=new ie,g=-1,w=arguments.length;++g<w;)v[arguments[g]]=ue(v);return v};function ie(){}ie.prototype.on=function(v,g){var w=v.indexOf("."),S="";if(w>=0&&(S=v.slice(w+1),v=v.slice(0,w)),v)return arguments.length<2?this[v].on(S):this[v].on(S,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(S,null);return this}};function ue(v){var g=[],w=new _;function S(){for(var F=g,L=-1,Y=F.length,B;++L<Y;)(B=F[L].on)&&B.apply(this,arguments);return v}return S.on=function(F,L){var Y=w.get(F),B;return arguments.length<2?Y&&Y.on:(Y&&(Y.on=null,g=g.slice(0,B=g.indexOf(Y)).concat(g.slice(B+1)),w.remove(F)),L&&g.push(w.set(F,{on:L})),v)},S}e.event=null;function xe(){e.event.preventDefault()}function De(){for(var v=e.event,g;g=v.sourceEvent;)v=g;return v}function Ye(v){for(var g=new ie,w=0,S=arguments.length;++w<S;)g[arguments[w]]=ue(g);return g.of=function(F,L){return function(Y){try{var B=Y.sourceEvent=e.event;Y.target=v,e.event=Y,g[Y.type].apply(F,L)}finally{e.event=B}}},g}e.requote=function(v){return v.replace(Ee,"\\$&")};var Ee=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ke={}.__proto__?function(v,g){v.__proto__=g}:function(v,g){for(var w in g)v[w]=g[w]};function je(v){return ke(v,K),v}var W=function(v,g){return g.querySelector(v)},le=function(v,g){return g.querySelectorAll(v)},de=function(v,g){var w=v.matches||v[ee(v,"matchesSelector")];return de=function(S,F){return w.call(S,F)},de(v,g)};typeof Sizzle=="function"&&(W=function(v,g){return Sizzle(v,g)[0]||null},le=Sizzle,de=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var K=e.selection.prototype=[];K.select=function(v){var g=[],w,S,F,L;v=J(v);for(var Y=-1,B=this.length;++Y<B;){g.push(w=[]),w.parentNode=(F=this[Y]).parentNode;for(var Z=-1,te=F.length;++Z<te;)(L=F[Z])?(w.push(S=v.call(L,L.__data__,Z,Y)),S&&"__data__"in L&&(S.__data__=L.__data__)):w.push(null)}return je(g)};function J(v){return typeof v=="function"?v:function(){return W(v,this)}}K.selectAll=function(v){var g=[],w,S;v=fe(v);for(var F=-1,L=this.length;++F<L;)for(var Y=this[F],B=-1,Z=Y.length;++B<Z;)(S=Y[B])&&(g.push(w=t(v.call(S,S.__data__,B,F))),w.parentNode=S);return je(g)};function fe(v){return typeof v=="function"?v:function(){return le(v,this)}}var be="http://www.w3.org/1999/xhtml",Ne={svg:"http://www.w3.org/2000/svg",xhtml:be,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:Ne,qualify:function(v){var g=v.indexOf(":"),w=v;return g>=0&&(w=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),Ne.hasOwnProperty(w)?{space:Ne[w],local:v}:v}},K.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node();return v=e.ns.qualify(v),v.local?w.getAttributeNS(v.space,v.local):w.getAttribute(v)}for(g in v)this.each(Ze(g,v[g]));return this}return this.each(Ze(v,g))};function Ze(v,g){v=e.ns.qualify(v);function w(){this.removeAttribute(v)}function S(){this.removeAttributeNS(v.space,v.local)}function F(){this.setAttribute(v,g)}function L(){this.setAttributeNS(v.space,v.local,g)}function Y(){var Z=g.apply(this,arguments);Z==null?this.removeAttribute(v):this.setAttribute(v,Z)}function B(){var Z=g.apply(this,arguments);Z==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,Z)}return g==null?v.local?S:w:typeof g=="function"?v.local?B:Y:v.local?L:F}function er(v){return v.trim().replace(/\s+/g," ")}K.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node(),S=(v=tr(v)).length,F=-1;if(g=w.classList){for(;++F<S;)if(!g.contains(v[F]))return!1}else for(g=w.getAttribute("class");++F<S;)if(!Je(v[F]).test(g))return!1;return!0}for(g in v)this.each(ze(g,v[g]));return this}return this.each(ze(v,g))};function Je(v){return new RegExp("(?:^|\\s+)"+e.requote(v)+"(?:\\s+|$)","g")}function tr(v){return(v+"").trim().split(/^|\s+/)}function ze(v,g){v=tr(v).map(lr);var w=v.length;function S(){for(var L=-1;++L<w;)v[L](this,g)}function F(){for(var L=-1,Y=g.apply(this,arguments);++L<w;)v[L](this,Y)}return typeof g=="function"?F:S}function lr(v){var g=Je(v);return function(w,S){if(F=w.classList)return S?F.add(v):F.remove(v);var F=w.getAttribute("class")||"";S?(g.lastIndex=0,g.test(F)||w.setAttribute("class",er(F+" "+v))):w.setAttribute("class",er(F.replace(g," ")))}}K.style=function(v,g,w){var S=arguments.length;if(S<3){if(typeof v!="string"){S<2&&(g="");for(w in v)this.each(dr(w,v[w],g));return this}if(S<2){var F=this.node();return i(F).getComputedStyle(F,null).getPropertyValue(v)}w=""}return this.each(dr(v,g,w))};function dr(v,g,w){function S(){this.style.removeProperty(v)}function F(){this.style.setProperty(v,g,w)}function L(){var Y=g.apply(this,arguments);Y==null?this.style.removeProperty(v):this.style.setProperty(v,Y,w)}return g==null?S:typeof g=="function"?L:F}K.property=function(v,g){if(arguments.length<2){if(typeof v=="string")return this.node()[v];for(g in v)this.each(Ar(g,v[g]));return this}return this.each(Ar(v,g))};function Ar(v,g){function w(){delete this[v]}function S(){this[v]=g}function F(){var L=g.apply(this,arguments);L==null?delete this[v]:this[v]=L}return g==null?w:typeof g=="function"?F:S}K.text=function(v){return arguments.length?this.each(typeof v=="function"?function(){var g=v.apply(this,arguments);this.textContent=g==null?"":g}:v==null?function(){this.textContent=""}:function(){this.textContent=v}):this.node().textContent},K.html=function(v){return arguments.length?this.each(typeof v=="function"?function(){var g=v.apply(this,arguments);this.innerHTML=g==null?"":g}:v==null?function(){this.innerHTML=""}:function(){this.innerHTML=v}):this.node().innerHTML},K.append=function(v){return v=Qe(v),this.select(function(){return this.appendChild(v.apply(this,arguments))})};function Qe(v){function g(){var S=this.ownerDocument,F=this.namespaceURI;return F===be&&S.documentElement.namespaceURI===be?S.createElement(v):S.createElementNS(F,v)}function w(){return this.ownerDocument.createElementNS(v.space,v.local)}return typeof v=="function"?v:(v=e.ns.qualify(v)).local?w:g}K.insert=function(v,g){return v=Qe(v),g=J(g),this.select(function(){return this.insertBefore(v.apply(this,arguments),g.apply(this,arguments)||null)})},K.remove=function(){return this.each(mr)};function mr(){var v=this.parentNode;v&&v.removeChild(this)}K.data=function(v,g){var w=-1,S=this.length,F,L;if(!arguments.length){for(v=new Array(S=(F=this[0]).length);++w<S;)(L=F[w])&&(v[w]=L.__data__);return v}function Y(ne,ge){var ye,Re=ne.length,Ve=ge.length,_e=Math.min(Re,Ve),Se=new Array(Ve),Le=new Array(Ve),Ge=new Array(Re),Xe,Pe;if(g){var br=new _,Yr=new Array(Re),$r;for(ye=-1;++ye<Re;)(Xe=ne[ye])&&(br.has($r=g.call(Xe,Xe.__data__,ye))?Ge[ye]=Xe:br.set($r,Xe),Yr[ye]=$r);for(ye=-1;++ye<Ve;)(Xe=br.get($r=g.call(ge,Pe=ge[ye],ye)))?Xe!==!0&&(Se[ye]=Xe,Xe.__data__=Pe):Le[ye]=qr(Pe),br.set($r,!0);for(ye=-1;++ye<Re;)ye in Yr&&br.get(Yr[ye])!==!0&&(Ge[ye]=ne[ye])}else{for(ye=-1;++ye<_e;)Xe=ne[ye],Pe=ge[ye],Xe?(Xe.__data__=Pe,Se[ye]=Xe):Le[ye]=qr(Pe);for(;ye<Ve;++ye)Le[ye]=qr(ge[ye]);for(;ye<Re;++ye)Ge[ye]=ne[ye]}Le.update=Se,Le.parentNode=Se.parentNode=Ge.parentNode=ne.parentNode,B.push(Le),Z.push(Se),te.push(Ge)}var B=Pr([]),Z=je([]),te=je([]);if(typeof v=="function")for(;++w<S;)Y(F=this[w],v.call(F,F.parentNode.__data__,w));else for(;++w<S;)Y(F=this[w],v);return Z.enter=function(){return B},Z.exit=function(){return te},Z};function qr(v){return{__data__:v}}K.datum=function(v){return arguments.length?this.property("__data__",v):this.property("__data__")},K.filter=function(v){var g=[],w,S,F;typeof v!="function"&&(v=Te(v));for(var L=0,Y=this.length;L<Y;L++){g.push(w=[]),w.parentNode=(S=this[L]).parentNode;for(var B=0,Z=S.length;B<Z;B++)(F=S[B])&&v.call(F,F.__data__,B,L)&&w.push(F)}return je(g)};function Te(v){return function(){return de(this,v)}}K.order=function(){for(var v=-1,g=this.length;++v<g;)for(var w=this[v],S=w.length-1,F=w[S],L;--S>=0;)(L=w[S])&&(F&&F!==L.nextSibling&&F.parentNode.insertBefore(L,F),F=L);return this},K.sort=function(v){v=Ue.apply(this,arguments);for(var g=-1,w=this.length;++g<w;)this[g].sort(v);return this.order()};function Ue(v){return arguments.length||(v=c),function(g,w){return g&&w?v(g.__data__,w.__data__):!g-!w}}K.each=function(v){return _r(this,function(g,w,S){v.call(g,g.__data__,w,S)})};function _r(v,g){for(var w=0,S=v.length;w<S;w++)for(var F=v[w],L=0,Y=F.length,B;L<Y;L++)(B=F[L])&&g(B,L,w);return v}K.call=function(v){var g=t(arguments);return v.apply(g[0]=this,g),this},K.empty=function(){return!this.node()},K.node=function(){for(var v=0,g=this.length;v<g;v++)for(var w=this[v],S=0,F=w.length;S<F;S++){var L=w[S];if(L)return L}return null},K.size=function(){var v=0;return _r(this,function(){++v}),v};function Pr(v){return ke(v,Nr),v}var Nr=[];e.selection.enter=Pr,e.selection.enter.prototype=Nr,Nr.append=K.append,Nr.empty=K.empty,Nr.node=K.node,Nr.call=K.call,Nr.size=K.size,Nr.select=function(v){for(var g=[],w,S,F,L,Y,B=-1,Z=this.length;++B<Z;){F=(L=this[B]).update,g.push(w=[]),w.parentNode=L.parentNode;for(var te=-1,ne=L.length;++te<ne;)(Y=L[te])?(w.push(F[te]=S=v.call(L.parentNode,Y.__data__,te,B)),S.__data__=Y.__data__):w.push(null)}return je(g)},Nr.insert=function(v,g){return arguments.length<2&&(g=Ce(this)),K.insert.call(this,v,g)};function Ce(v){var g,w;return function(S,F,L){var Y=v[L].update,B=Y.length,Z;for(L!=w&&(w=L,g=0),F>=g&&(g=F+1);!(Z=Y[g])&&++g<B;);return Z}}e.select=function(v){var g;return typeof v=="string"?(g=[W(v,a)],g.parentNode=a.documentElement):(g=[v],g.parentNode=n(v)),je([g])},e.selectAll=function(v){var g;return typeof v=="string"?(g=t(le(v,a)),g.parentNode=a.documentElement):(g=t(v),g.parentNode=null),je([g])},K.on=function(v,g,w){var S=arguments.length;if(S<3){if(typeof v!="string"){S<2&&(g=!1);for(w in v)this.each(He(w,v[w],g));return this}if(S<2)return(S=this.node()["__on"+v])&&S._;w=!1}return this.each(He(v,g,w))};function He(v,g,w){var S="__on"+v,F=v.indexOf("."),L=Mr;F>0&&(v=v.slice(0,F));var Y=cr.get(v);Y&&(v=Y,L=vr);function B(){var ne=this[S];ne&&(this.removeEventListener(v,ne,ne.$),delete this[S])}function Z(){var ne=L(g,t(arguments));B.call(this),this.addEventListener(v,this[S]=ne,ne.$=w),ne._=g}function te(){var ne=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),ge;for(var ye in this)if(ge=ye.match(ne)){var Re=this[ye];this.removeEventListener(ge[1],Re,Re.$),delete this[ye]}}return F?g?Z:B:g?ae:te}var cr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&cr.forEach(function(v){"on"+v in a&&cr.remove(v)});function Mr(v,g){return function(w){var S=e.event;e.event=w,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=S}}}function vr(v,g){var w=Mr(v,g);return function(S){var F=this,L=S.relatedTarget;(!L||L!==F&&!(L.compareDocumentPosition(F)&8))&&w.call(F,S)}}var kr,Er=0;function jr(v){var g=".dragsuppress-"+ ++Er,w="click"+g,S=e.select(i(v)).on("touchmove"+g,xe).on("dragstart"+g,xe).on("selectstart"+g,xe);if(kr==null&&(kr="onselectstart"in v?!1:ee(v.style,"userSelect")),kr){var F=n(v).style,L=F[kr];F[kr]="none"}return function(Y){if(S.on(g,null),kr&&(F[kr]=L),Y){var B=function(){S.on(w,null)};S.on(w,function(){xe(),B()},!0),setTimeout(B,0)}}}e.mouse=function(v){return nr(v,De())};var et=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function nr(v,g){g.changedTouches&&(g=g.changedTouches[0]);var w=v.ownerSVGElement||v;if(w.createSVGPoint){var S=w.createSVGPoint();if(et<0){var F=i(v);if(F.scrollX||F.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=w[0][0].getScreenCTM();et=!(L.f||L.e),w.remove()}}return et?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(v.getScreenCTM().inverse()),[S.x,S.y]}var Y=v.getBoundingClientRect();return[g.clientX-Y.left-v.clientLeft,g.clientY-Y.top-v.clientTop]}e.touch=function(v,g,w){if(arguments.length<3&&(w=g,g=De().changedTouches),g){for(var S=0,F=g.length,L;S<F;++S)if((L=g[S]).identifier===w)return nr(v,L)}},e.behavior.drag=function(){var v=Ye(F,"drag","dragstart","dragend"),g=null,w=L(ae,e.mouse,i,"mousemove","mouseup"),S=L(Cr,e.touch,N,"touchmove","touchend");function F(){this.on("mousedown.drag",w).on("touchstart.drag",S)}function L(Y,B,Z,te,ne){return function(){var ge=this,ye=e.event.target.correspondingElement||e.event.target,Re=ge.parentNode,Ve=v.of(ge,arguments),_e=0,Se=Y(),Le=".drag"+(Se==null?"":"-"+Se),Ge,Xe=e.select(Z(ye)).on(te+Le,Yr).on(ne+Le,$r),Pe=jr(ye),br=B(Re,Se);g?(Ge=g.apply(ge,arguments),Ge=[Ge.x-br[0],Ge.y-br[1]]):Ge=[0,0],Ve({type:"dragstart"});function Yr(){var Xr=B(Re,Se),tt,at;Xr&&(tt=Xr[0]-br[0],at=Xr[1]-br[1],_e|=tt|at,br=Xr,Ve({type:"drag",x:Xr[0]+Ge[0],y:Xr[1]+Ge[1],dx:tt,dy:at}))}function $r(){B(Re,Se)&&(Xe.on(te+Le,null).on(ne+Le,null),Pe(_e),Ve({type:"dragend"}))}}}return F.origin=function(Y){return arguments.length?(g=Y,F):g},e.rebind(F,v,"on")};function Cr(){return e.event.changedTouches[0].identifier}e.touches=function(v,g){return arguments.length<2&&(g=De().touches),g?t(g).map(function(w){var S=nr(v,w);return S.identifier=w.identifier,S}):[]};var ar=1e-6,Fr=ar*ar,Wr=Math.PI,Br=2*Wr,Zr=Br-ar,Ae=Wr/2,Be=Wr/180,or=180/Wr;function hr(v){return v>0?1:v<0?-1:0}function Dt(v,g,w){return(g[0]-v[0])*(w[1]-v[1])-(g[1]-v[1])*(w[0]-v[0])}function Wt(v){return v>1?0:v<-1?Wr:Math.acos(v)}function ba(v){return v>1?Ae:v<-1?-Ae:Math.asin(v)}function _a(v){return((v=Math.exp(v))-1/v)/2}function Xt(v){return((v=Math.exp(v))+1/v)/2}function Ht(v){return((v=Math.exp(2*v))-1)/(v+1)}function la(v){return(v=Math.sin(v/2))*v}var Pt=Math.SQRT2,Ta=2,pa=4;e.interpolateZoom=function(v,g){var w=v[0],S=v[1],F=v[2],L=g[0],Y=g[1],B=g[2],Z=L-w,te=Y-S,ne=Z*Z+te*te,ge,ye;if(ne<Fr)ye=Math.log(B/F)/Pt,ge=function(Ge){return[w+Ge*Z,S+Ge*te,F*Math.exp(Pt*Ge*ye)]};else{var Re=Math.sqrt(ne),Ve=(B*B-F*F+pa*ne)/(2*F*Ta*Re),_e=(B*B-F*F-pa*ne)/(2*B*Ta*Re),Se=Math.log(Math.sqrt(Ve*Ve+1)-Ve),Le=Math.log(Math.sqrt(_e*_e+1)-_e);ye=(Le-Se)/Pt,ge=function(Ge){var Xe=Ge*ye,Pe=Xt(Se),br=F/(Ta*Re)*(Pe*Ht(Pt*Xe+Se)-_a(Se));return[w+br*Z,S+br*te,F*Pe/Xt(Pt*Xe+Se)]}}return ge.duration=ye*1e3,ge},e.behavior.zoom=function(){var v={x:0,y:0,k:1},g,w,S,F=[960,500],L=Xa,Y=250,B=0,Z="mousedown.zoom",te="mousemove.zoom",ne="mouseup.zoom",ge,ye="touchstart.zoom",Re,Ve=Ye(Xe,"zoomstart","zoom","zoomend"),_e,Se,Le,Ge;ja||(ja="onwheel"in a?(dn=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(dn=function(){return e.event.wheelDelta},"mousewheel"):(dn=function(){return-e.event.detail},"MozMousePixelScroll"));function Xe(Hr){Hr.on(Z,bt).on(ja+".zoom",pn).on("dblclick.zoom",ca).on(ye,ia)}Xe.event=function(Hr){Hr.each(function(){var kt=Ve.of(this,arguments),Ct=v;zn?e.select(this).transition().each("start.zoom",function(){v=this.__chart__||{x:0,y:0,k:1},at(kt)}).tween("zoom:zoom",function(){var oa=F[0],an=F[1],Sn=w?w[0]:oa/2,ri=w?w[1]:an/2,bi=e.interpolateZoom([(Sn-v.x)/v.k,(ri-v.y)/v.k,oa/v.k],[(Sn-Ct.x)/Ct.k,(ri-Ct.y)/Ct.k,oa/Ct.k]);return function(Hi){var _i=bi(Hi),Qi=oa/_i[2];this.__chart__=v={x:Sn-_i[0]*Qi,y:ri-_i[1]*Qi,k:Qi},Tt(kt)}}).each("interrupt.zoom",function(){it(kt)}).each("end.zoom",function(){it(kt)}):(this.__chart__=v,at(kt),Tt(kt),it(kt))})},Xe.translate=function(Hr){return arguments.length?(v={x:+Hr[0],y:+Hr[1],k:v.k},tt(),Xe):[v.x,v.y]},Xe.scale=function(Hr){return arguments.length?(v={x:v.x,y:v.y,k:null},Yr(+Hr),tt(),Xe):v.k},Xe.scaleExtent=function(Hr){return arguments.length?(L=Hr==null?Xa:[+Hr[0],+Hr[1]],Xe):L},Xe.center=function(Hr){return arguments.length?(S=Hr&&[+Hr[0],+Hr[1]],Xe):S},Xe.size=function(Hr){return arguments.length?(F=Hr&&[+Hr[0],+Hr[1]],Xe):F},Xe.duration=function(Hr){return arguments.length?(Y=+Hr,Xe):Y},Xe.x=function(Hr){return arguments.length?(Se=Hr,_e=Hr.copy(),v={x:0,y:0,k:1},Xe):Se},Xe.y=function(Hr){return arguments.length?(Ge=Hr,Le=Hr.copy(),v={x:0,y:0,k:1},Xe):Ge};function Pe(Hr){return[(Hr[0]-v.x)/v.k,(Hr[1]-v.y)/v.k]}function br(Hr){return[Hr[0]*v.k+v.x,Hr[1]*v.k+v.y]}function Yr(Hr){v.k=Math.max(L[0],Math.min(L[1],Hr))}function $r(Hr,kt){kt=br(kt),v.x+=Hr[0]-kt[0],v.y+=Hr[1]-kt[1]}function Xr(Hr,kt,Ct,oa){Hr.__chart__={x:v.x,y:v.y,k:v.k},Yr(Math.pow(2,oa)),$r(w=kt,Ct),Hr=e.select(Hr),Y>0&&(Hr=Hr.transition().duration(Y)),Hr.call(Xe.event)}function tt(){Se&&Se.domain(_e.range().map(function(Hr){return(Hr-v.x)/v.k}).map(_e.invert)),Ge&&Ge.domain(Le.range().map(function(Hr){return(Hr-v.y)/v.k}).map(Le.invert))}function at(Hr){B++||Hr({type:"zoomstart"})}function Tt(Hr){tt(),Hr({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function it(Hr){--B||(Hr({type:"zoomend"}),w=null)}function bt(){var Hr=this,kt=Ve.of(Hr,arguments),Ct=0,oa=e.select(i(Hr)).on(te,ri).on(ne,bi),an=Pe(e.mouse(Hr)),Sn=jr(Hr);yt.call(Hr),at(kt);function ri(){Ct=1,$r(e.mouse(Hr),an),Tt(kt)}function bi(){oa.on(te,null).on(ne,null),Sn(Ct),it(kt)}}function ia(){var Hr=this,kt=Ve.of(Hr,arguments),Ct={},oa=0,an,Sn=".zoom-"+e.event.changedTouches[0].identifier,ri="touchmove"+Sn,bi="touchend"+Sn,Hi=[],_i=e.select(Hr),Qi=jr(Hr);eo(),at(kt),_i.on(Z,null).on(ye,eo);function si(){var zl=e.touches(Hr);return an=v.k,zl.forEach(function(ti){ti.identifier in Ct&&(Ct[ti.identifier]=Pe(ti))}),zl}function eo(){var zl=e.event.target;e.select(zl).on(ri,Lf).on(bi,zY),Hi.push(zl);for(var ti=e.event.changedTouches,Xo=0,ks=ti.length;Xo<ks;++Xo)Ct[ti[Xo].identifier]=null;var jo=si(),v1=Date.now();if(jo.length===1){if(v1-Re<500){var qf=jo[0];Xr(Hr,qf,Ct[qf.identifier],Math.floor(Math.log(v.k)/Math.LN2)+1),xe()}Re=v1}else if(jo.length>1){var qf=jo[0],v0=jo[1],Ah=qf[0]-v0[0],R_=qf[1]-v0[1];oa=Ah*Ah+R_*R_}}function Lf(){var zl=e.touches(Hr),ti,Xo,ks,jo;yt.call(Hr);for(var v1=0,qf=zl.length;v1<qf;++v1,jo=null)if(ks=zl[v1],jo=Ct[ks.identifier]){if(Xo)break;ti=ks,Xo=jo}if(jo){var v0=(v0=ks[0]-ti[0])*v0+(v0=ks[1]-ti[1])*v0,Ah=oa&&Math.sqrt(v0/oa);ti=[(ti[0]+ks[0])/2,(ti[1]+ks[1])/2],Xo=[(Xo[0]+jo[0])/2,(Xo[1]+jo[1])/2],Yr(Ah*an)}Re=null,$r(ti,Xo),Tt(kt)}function zY(){if(e.event.touches.length){for(var zl=e.event.changedTouches,ti=0,Xo=zl.length;ti<Xo;++ti)delete Ct[zl[ti].identifier];for(var ks in Ct)return void si()}e.selectAll(Hi).on(Sn,null),_i.on(Z,bt).on(ye,ia),Qi(),it(kt)}}function pn(){var Hr=Ve.of(this,arguments);ge?clearTimeout(ge):(yt.call(this),g=Pe(w=S||e.mouse(this)),at(Hr)),ge=setTimeout(function(){ge=null,it(Hr)},50),xe(),Yr(Math.pow(2,dn()*.002)*v.k),$r(w,g),Tt(Hr)}function ca(){var Hr=e.mouse(this),kt=Math.log(v.k)/Math.LN2;Xr(this,Hr,Pe(Hr),e.event.shiftKey?Math.ceil(kt)-1:Math.floor(kt)+1)}return e.rebind(Xe,Ve,"on")};var Xa=[0,1/0],dn,ja;e.color=Fa;function Fa(){}Fa.prototype.toString=function(){return this.rgb()+""},e.hsl=Rr;function Rr(v,g,w){return this instanceof Rr?(this.h=+v,this.s=+g,void(this.l=+w)):arguments.length<2?v instanceof Rr?new Rr(v.h,v.s,v.l):ls(""+v,ss,Rr):new Rr(v,g,w)}var Vt=Rr.prototype=new Fa;Vt.brighter=function(v){return v=Math.pow(.7,arguments.length?v:1),new Rr(this.h,this.s,this.l/v)},Vt.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new Rr(this.h,this.s,v*this.l)},Vt.rgb=function(){return Et(this.h,this.s,this.l)};function Et(v,g,w){var S,F;v=isNaN(v)?0:(v%=360)<0?v+360:v,g=isNaN(g)||g<0?0:g>1?1:g,w=w<0?0:w>1?1:w,F=w<=.5?w*(1+g):w+g-w*g,S=2*w-F;function L(B){return B>360?B-=360:B<0&&(B+=360),B<60?S+(F-S)*B/60:B<180?F:B<240?S+(F-S)*(240-B)/60:S}function Y(B){return Math.round(L(B)*255)}return new Ia(Y(v+120),Y(v),Y(v-120))}e.hcl=Zt;function Zt(v,g,w){return this instanceof Zt?(this.h=+v,this.c=+g,void(this.l=+w)):arguments.length<2?v instanceof Zt?new Zt(v.h,v.c,v.l):v instanceof Rt?ml(v.l,v.a,v.b):ml((v=Ks((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new Zt(v,g,w)}var ma=Zt.prototype=new Fa;ma.brighter=function(v){return new Zt(this.h,this.c,Math.min(100,this.l+$t*(arguments.length?v:1)))},ma.darker=function(v){return new Zt(this.h,this.c,Math.max(0,this.l-$t*(arguments.length?v:1)))},ma.rgb=function(){return Ea(this.h,this.c,this.l).rgb()};function Ea(v,g,w){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new Rt(w,Math.cos(v*=Be)*g,Math.sin(v)*g)}e.lab=Rt;function Rt(v,g,w){return this instanceof Rt?(this.l=+v,this.a=+g,void(this.b=+w)):arguments.length<2?v instanceof Rt?new Rt(v.l,v.a,v.b):v instanceof Zt?Ea(v.h,v.c,v.l):Ks((v=Ia(v)).r,v.g,v.b):new Rt(v,g,w)}var $t=18,Na=.95047,Jn=1,Pi=1.08883,Kn=Rt.prototype=new Fa;Kn.brighter=function(v){return new Rt(Math.min(100,this.l+$t*(arguments.length?v:1)),this.a,this.b)},Kn.darker=function(v){return new Rt(Math.max(0,this.l-$t*(arguments.length?v:1)),this.a,this.b)},Kn.rgb=function(){return Ba(this.l,this.a,this.b)};function Ba(v,g,w){var S=(v+16)/116,F=S+g/500,L=S-w/200;return F=Qa(F)*Na,S=Qa(S)*Jn,L=Qa(L)*Pi,new Ia(co(3.2404542*F-1.5371385*S-.4985314*L),co(-.969266*F+1.8760108*S+.041556*L),co(.0556434*F-.2040259*S+1.0572252*L))}function ml(v,g,w){return v>0?new Zt(Math.atan2(w,g)*or,Math.sqrt(g*g+w*w),v):new Zt(NaN,NaN,v)}function Qa(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function zo(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function co(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Ia;function Ia(v,g,w){return this instanceof Ia?(this.r=~~v,this.g=~~g,void(this.b=~~w)):arguments.length<2?v instanceof Ia?new Ia(v.r,v.g,v.b):ls(""+v,Ia,Et):new Ia(v,g,w)}function Yi(v){return new Ia(v>>16,v>>8&255,v&255)}function gl(v){return Yi(v)+""}var Vi=Ia.prototype=new Fa;Vi.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,w=this.g,S=this.b,F=30;return!g&&!w&&!S?new Ia(F,F,F):(g&&g<F&&(g=F),w&&w<F&&(w=F),S&&S<F&&(S=F),new Ia(Math.min(255,g/v),Math.min(255,w/v),Math.min(255,S/v)))},Vi.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new Ia(v*this.r,v*this.g,v*this.b)},Vi.hsl=function(){return ss(this.r,this.g,this.b)},Vi.toString=function(){return"#"+Ri(this.r)+Ri(this.g)+Ri(this.b)};function Ri(v){return v<16?"0"+Math.max(0,v).toString(16):Math.min(255,v).toString(16)}function ls(v,g,w){var S=0,F=0,L=0,Y,B,Z;if(Y=/([a-z]+)\((.*)\)/.exec(v=v.toLowerCase()),Y)switch(B=Y[2].split(","),Y[1]){case"hsl":return w(parseFloat(B[0]),parseFloat(B[1])/100,parseFloat(B[2])/100);case"rgb":return g(Qs(B[0]),Qs(B[1]),Qs(B[2]))}return(Z=ot.get(v))?g(Z.r,Z.g,Z.b):(v!=null&&v.charAt(0)==="#"&&!isNaN(Z=parseInt(v.slice(1),16))&&(v.length===4?(S=(Z&3840)>>4,S=S>>4|S,F=Z&240,F=F>>4|F,L=Z&15,L=L<<4|L):v.length===7&&(S=(Z&16711680)>>16,F=(Z&65280)>>8,L=Z&255)),g(S,F,L))}function ss(v,g,w){var S=Math.min(v/=255,g/=255,w/=255),F=Math.max(v,g,w),L=F-S,Y,B,Z=(F+S)/2;return L?(B=Z<.5?L/(F+S):L/(2-F-S),v==F?Y=(g-w)/L+(g<w?6:0):g==F?Y=(w-v)/L+2:Y=(v-g)/L+4,Y*=60):(Y=NaN,B=Z>0&&Z<1?0:Y),new Rr(Y,B,Z)}function Ks(v,g,w){v=us(v),g=us(g),w=us(w);var S=zo((.4124564*v+.3575761*g+.1804375*w)/Na),F=zo((.2126729*v+.7151522*g+.072175*w)/Jn),L=zo((.0193339*v+.119192*g+.9503041*w)/Pi);return Rt(116*F-16,500*(S-F),200*(F-L))}function us(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function Qs(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var ot=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});ot.forEach(function(v,g){ot.set(v,Yi(g))});function st(v){return typeof v=="function"?v:function(){return v}}e.functor=st,e.xhr=jt(N);function jt(v){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Or(g,w,v,S)}}function Or(v,g,w,S){var F={},L=e.dispatch("beforesend","progress","load","error"),Y={},B=new XMLHttpRequest,Z=null;self.XDomainRequest&&!("withCredentials"in B)&&/^(http(s)?:)?\/\//.test(v)&&(B=new XDomainRequest),"onload"in B?B.onload=B.onerror=te:B.onreadystatechange=function(){B.readyState>3&&te()};function te(){var ne=B.status,ge;if(!ne&&sa(B)||ne>=200&&ne<300||ne===304){try{ge=w.call(F,B)}catch(ye){L.error.call(F,ye);return}L.load.call(F,ge)}else L.error.call(F,B)}return B.onprogress=function(ne){var ge=e.event;e.event=ne;try{L.progress.call(F,B)}finally{e.event=ge}},F.header=function(ne,ge){return ne=(ne+"").toLowerCase(),arguments.length<2?Y[ne]:(ge==null?delete Y[ne]:Y[ne]=ge+"",F)},F.mimeType=function(ne){return arguments.length?(g=ne==null?null:ne+"",F):g},F.responseType=function(ne){return arguments.length?(Z=ne,F):Z},F.response=function(ne){return w=ne,F},["get","post"].forEach(function(ne){F[ne]=function(){return F.send.apply(F,[ne].concat(t(arguments)))}}),F.send=function(ne,ge,ye){if(arguments.length===2&&typeof ge=="function"&&(ye=ge,ge=null),B.open(ne,v,!0),g!=null&&!("accept"in Y)&&(Y.accept=g+",*/*"),B.setRequestHeader)for(var Re in Y)B.setRequestHeader(Re,Y[Re]);return g!=null&&B.overrideMimeType&&B.overrideMimeType(g),Z!=null&&(B.responseType=Z),ye!=null&&F.on("error",ye).on("load",function(Ve){ye(null,Ve)}),L.beforesend.call(F,B),B.send(ge==null?null:ge),F},F.abort=function(){return B.abort(),F},e.rebind(F,L,"on"),S==null?F:F.get(Mn(S))}function Mn(v){return v.length===1?function(g,w){v(g==null?w:null)}:v}function sa(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var w=new RegExp('["'+v+`
]`),S=v.charCodeAt(0);function F(te,ne,ge){arguments.length<3&&(ge=ne,ne=null);var ye=Or(te,g,ne==null?L:Y(ne),ge);return ye.row=function(Re){return arguments.length?ye.response((ne=Re)==null?L:Y(Re)):ne},ye}function L(te){return F.parse(te.responseText)}function Y(te){return function(ne){return F.parse(ne.responseText,te)}}F.parse=function(te,ne){var ge;return F.parseRows(te,function(ye,Re){if(ge)return ge(ye,Re-1);var Ve=function(_e){for(var Se={},Le=ye.length,Ge=0;Ge<Le;++Ge)Se[ye[Ge]]=_e[Ge];return Se};ge=ne?function(_e,Se){return ne(Ve(_e),Se)}:Ve})},F.parseRows=function(te,ne){var ge={},ye={},Re=[],Ve=te.length,_e=0,Se=0,Le,Ge;function Xe(){if(_e>=Ve)return ye;if(Ge)return Ge=!1,ge;var br=_e;if(te.charCodeAt(br)===34){for(var Yr=br;Yr++<Ve;)if(te.charCodeAt(Yr)===34){if(te.charCodeAt(Yr+1)!==34)break;++Yr}_e=Yr+2;var $r=te.charCodeAt(Yr+1);return $r===13?(Ge=!0,te.charCodeAt(Yr+2)===10&&++_e):$r===10&&(Ge=!0),te.slice(br+1,Yr).replace(/""/g,'"')}for(;_e<Ve;){var $r=te.charCodeAt(_e++),Xr=1;if($r===10)Ge=!0;else if($r===13)Ge=!0,te.charCodeAt(_e)===10&&(++_e,++Xr);else if($r!==S)continue;return te.slice(br,_e-Xr)}return te.slice(br)}for(;(Le=Xe())!==ye;){for(var Pe=[];Le!==ge&&Le!==ye;)Pe.push(Le),Le=Xe();ne&&(Pe=ne(Pe,Se++))==null||Re.push(Pe)}return Re},F.format=function(te){if(Array.isArray(te[0]))return F.formatRows(te);var ne=new V,ge=[];return te.forEach(function(ye){for(var Re in ye)ne.has(Re)||ge.push(ne.add(Re))}),[ge.map(Z).join(v)].concat(te.map(function(ye){return ge.map(function(Re){return Z(ye[Re])}).join(v)})).join(`
`)},F.formatRows=function(te){return te.map(B).join(`
`)};function B(te){return te.map(Z).join(v)}function Z(te){return w.test(te)?'"'+te.replace(/\"/g,'""')+'"':te}return F},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv("	","text/tab-separated-values");var Wa,en,Vn,yl,fs=this[ee(this,"requestAnimationFrame")]||function(v){setTimeout(v,17)};e.timer=function(){cs.apply(this,arguments)};function cs(v,g,w){var S=arguments.length;S<2&&(g=0),S<3&&(w=Date.now());var F=w+g,L={c:v,t:F,n:null};return en?en.n=L:Wa=L,en=L,Vn||(yl=clearTimeout(yl),Vn=1,fs(Xi)),L}function Xi(){var v=No(),g=bl()-v;g>24?(isFinite(g)&&(clearTimeout(yl),yl=setTimeout(Xi,g)),Vn=0):(Vn=1,fs(Xi))}e.timer.flush=function(){No(),bl()};function No(){for(var v=Date.now(),g=Wa;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function bl(){for(var v,g=Wa,w=1/0;g;)g.c?(g.t<w&&(w=g.t),g=(v=g).n):g=v?v.n=g.n:Wa=g.n;return en=v,w}e.round=function(v,g){return g?Math.round(v*(g=Math.pow(10,g)))/g:Math.round(v)},e.geom={};function vs(v){return v[0]}function eu(v){return v[1]}e.geom.hull=function(v){var g=vs,w=eu;if(arguments.length)return S(v);function S(F){if(F.length<3)return[];var L=st(g),Y=st(w),B,Z=F.length,te=[],ne=[];for(B=0;B<Z;B++)te.push([+L.call(this,F[B],B),+Y.call(this,F[B],B),B]);for(te.sort(Gc),B=0;B<Z;B++)ne.push([te[B][0],-te[B][1]]);var ge=sf(te),ye=sf(ne),Re=ye[0]===ge[0],Ve=ye[ye.length-1]===ge[ge.length-1],_e=[];for(B=ge.length-1;B>=0;--B)_e.push(F[te[ge[B]][2]]);for(B=+Re;B<ye.length-Ve;++B)_e.push(F[te[ye[B]][2]]);return _e}return S.x=function(F){return arguments.length?(g=F,S):g},S.y=function(F){return arguments.length?(w=F,S):w},S};function sf(v){for(var g=v.length,w=[0,1],S=2,F=2;F<g;F++){for(;S>1&&Dt(v[w[S-2]],v[w[S-1]],v[F])<=0;)--S;w[S++]=F}return w.slice(0,S)}function Gc(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return ke(v,ru),v};var ru=e.geom.polygon.prototype=[];ru.area=function(){for(var v=-1,g=this.length,w,S=this[g-1],F=0;++v<g;)w=S,S=this[v],F+=w[1]*S[0]-w[0]*S[1];return F*.5},ru.centroid=function(v){var g=-1,w=this.length,S=0,F=0,L,Y=this[w-1],B;for(arguments.length||(v=-1/(6*this.area()));++g<w;)L=Y,Y=this[g],B=L[0]*Y[1]-Y[0]*L[1],S+=(L[0]+Y[0])*B,F+=(L[1]+Y[1])*B;return[S*v,F*v]},ru.clip=function(v){for(var g,w=_l(v),S=-1,F=this.length-_l(this),L,Y,B=this[F-1],Z,te,ne;++S<F;){for(g=v.slice(),v.length=0,Z=this[S],te=g[(Y=g.length-w)-1],L=-1;++L<Y;)ne=g[L],tu(ne,B,Z)?(tu(te,B,Z)||v.push(au(te,ne,B,Z)),v.push(ne)):tu(te,B,Z)&&v.push(au(te,ne,B,Z)),te=ne;w&&v.push(v[0]),B=Z}return v};function tu(v,g,w){return(w[0]-g[0])*(v[1]-g[1])<(w[1]-g[1])*(v[0]-g[0])}function au(v,g,w,S){var F=v[0],L=w[0],Y=g[0]-F,B=S[0]-L,Z=v[1],te=w[1],ne=g[1]-Z,ge=S[1]-te,ye=(B*(Z-te)-ge*(F-L))/(ge*Y-B*ne);return[F+ye*Y,Z+ye*ne]}function _l(v){var g=v[0],w=v[v.length-1];return!(g[0]-w[0]||g[1]-w[1])}var Bo,Io,vo,uf=[],Zu,ds,ff=[];function Yc(){Ml(this),this.edge=this.site=this.circle=null}function nu(v){var g=uf.pop()||new Yc;return g.site=v,g}function ho(v){Oo(v),vo.remove(v),uf.push(v),Ml(v)}function iu(v){var g=v.circle,w=g.x,S=g.cy,F={x:w,y:S},L=v.P,Y=v.N,B=[v];ho(v);for(var Z=L;Z.circle&&y(w-Z.circle.x)<ar&&y(S-Z.circle.cy)<ar;)L=Z.P,B.unshift(Z),ho(Z),Z=L;B.unshift(Z),Oo(Z);for(var te=Y;te.circle&&y(w-te.circle.x)<ar&&y(S-te.circle.cy)<ar;)Y=te.N,B.push(te),ho(te),te=Y;B.push(te),Oo(te);var ne=B.length,ge;for(ge=1;ge<ne;++ge)te=B[ge],Z=B[ge-1],mo(te.edge,Z.site,te.site,F);Z=B[0],te=B[ne-1],te.edge=ps(Z.site,te.site,null,F),Ho(Z),Ho(te)}function Vc(v){for(var g=v.x,w=v.y,S,F,L,Y,B=vo._;B;)if(L=ou(B,w)-g,L>ar)B=B.L;else if(Y=g-N2(B,w),Y>ar){if(!B.R){S=B;break}B=B.R}else{L>-ar?(S=B.P,F=B):Y>-ar?(S=B,F=B.N):S=F=B;break}var Z=nu(v);if(vo.insert(S,Z),!(!S&&!F)){if(S===F){Oo(S),F=nu(S.site),vo.insert(Z,F),Z.edge=F.edge=ps(S.site,Z.site),Ho(S),Ho(F);return}if(!F){Z.edge=ps(S.site,Z.site);return}Oo(S),Oo(F);var te=S.site,ne=te.x,ge=te.y,ye=v.x-ne,Re=v.y-ge,Ve=F.site,_e=Ve.x-ne,Se=Ve.y-ge,Le=2*(ye*Se-Re*_e),Ge=ye*ye+Re*Re,Xe=_e*_e+Se*Se,Pe={x:(Se*Ge-Re*Xe)/Le+ne,y:(ye*Xe-_e*Ge)/Le+ge};mo(F.edge,te,Ve,Pe),Z.edge=ps(te,v,null,Pe),F.edge=ps(v,Ve,null,Pe),Ho(S),Ho(F)}}function ou(v,g){var w=v.site,S=w.x,F=w.y,L=F-g;if(!L)return S;var Y=v.P;if(!Y)return-1/0;w=Y.site;var B=w.x,Z=w.y,te=Z-g;if(!te)return B;var ne=B-S,ge=1/L-1/te,ye=ne/te;return ge?(-ye+Math.sqrt(ye*ye-2*ge*(ne*ne/(-2*te)-Z+te/2+F-L/2)))/ge+S:(S+B)/2}function N2(v,g){var w=v.N;if(w)return ou(w,g);var S=v.site;return S.y===g?S.x:1/0}function xl(v){this.site=v,this.edges=[]}xl.prototype.prepare=function(){for(var v=this.edges,g=v.length,w;g--;)w=v[g].edge,(!w.b||!w.a)&&v.splice(g,1);return v.sort(hs),v.length};function cf(v){for(var g=v[0][0],w=v[1][0],S=v[0][1],F=v[1][1],L,Y,B,Z,te=Io,ne=te.length,ge,ye,Re,Ve,_e,Se;ne--;)if(ge=te[ne],!(!ge||!ge.prepare()))for(Re=ge.edges,Ve=Re.length,ye=0;ye<Ve;)Se=Re[ye].end(),B=Se.x,Z=Se.y,_e=Re[++ye%Ve].start(),L=_e.x,Y=_e.y,(y(B-L)>ar||y(Z-Y)>ar)&&(Re.splice(ye,0,new wl(I2(ge.site,Se,y(B-g)<ar&&F-Z>ar?{x:g,y:y(L-g)<ar?Y:F}:y(Z-F)<ar&&w-B>ar?{x:y(Y-F)<ar?L:w,y:F}:y(B-w)<ar&&Z-S>ar?{x:w,y:y(L-w)<ar?Y:S}:y(Z-S)<ar&&B-g>ar?{x:y(Y-S)<ar?L:g,y:S}:null),ge.site,null)),++Ve)}function hs(v,g){return g.angle-v.angle}function Xc(){Ml(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ho(v){var g=v.P,w=v.N;if(!(!g||!w)){var S=g.site,F=v.site,L=w.site;if(S!==L){var Y=F.x,B=F.y,Z=S.x-Y,te=S.y-B,ne=L.x-Y,Se=L.y-B,ge=2*(Z*Se-te*ne);if(!(ge>=-Fr)){var ye=Z*Z+te*te,Re=ne*ne+Se*Se,Ve=(Se*ye-te*Re)/ge,_e=(Z*Re-ne*ye)/ge,Se=_e+B,Le=ff.pop()||new Xc;Le.arc=v,Le.site=F,Le.x=Ve+Y,Le.y=Se+Math.sqrt(Ve*Ve+_e*_e),Le.cy=Se,v.circle=Le;for(var Ge=null,Xe=ds._;Xe;)if(Le.y<Xe.y||Le.y===Xe.y&&Le.x<=Xe.x)if(Xe.L)Xe=Xe.L;else{Ge=Xe.P;break}else if(Xe.R)Xe=Xe.R;else{Ge=Xe;break}ds.insert(Ge,Le),Ge||(Zu=Le)}}}}function Oo(v){var g=v.circle;g&&(g.P||(Zu=g.N),ds.remove(g),ff.push(g),Ml(g),v.circle=null)}function vf(v,g,w,S){return function(F){var L=F.a,Y=F.b,B=L.x,Z=L.y,te=Y.x,ne=Y.y,ge=0,ye=1,Re=te-B,Ve=ne-Z,_e;if(_e=v-B,!(!Re&&_e>0)){if(_e/=Re,Re<0){if(_e<ge)return;_e<ye&&(ye=_e)}else if(Re>0){if(_e>ye)return;_e>ge&&(ge=_e)}if(_e=w-B,!(!Re&&_e<0)){if(_e/=Re,Re<0){if(_e>ye)return;_e>ge&&(ge=_e)}else if(Re>0){if(_e<ge)return;_e<ye&&(ye=_e)}if(_e=g-Z,!(!Ve&&_e>0)){if(_e/=Ve,Ve<0){if(_e<ge)return;_e<ye&&(ye=_e)}else if(Ve>0){if(_e>ye)return;_e>ge&&(ge=_e)}if(_e=S-Z,!(!Ve&&_e<0)){if(_e/=Ve,Ve<0){if(_e>ye)return;_e>ge&&(ge=_e)}else if(Ve>0){if(_e<ge)return;_e<ye&&(ye=_e)}return ge>0&&(F.a={x:B+ge*Re,y:Z+ge*Ve}),ye<1&&(F.b={x:B+ye*Re,y:Z+ye*Ve}),F}}}}}}function ji(v){for(var g=Bo,w=vf(v[0][0],v[0][1],v[1][0],v[1][1]),S=g.length,F;S--;)F=g[S],(!B2(F,v)||!w(F)||y(F.a.x-F.b.x)<ar&&y(F.a.y-F.b.y)<ar)&&(F.a=F.b=null,g.splice(S,1))}function B2(v,g){var w=v.b;if(w)return!0;var S=v.a,F=g[0][0],L=g[1][0],Y=g[0][1],B=g[1][1],Z=v.l,te=v.r,ne=Z.x,ge=Z.y,ye=te.x,Re=te.y,Ve=(ne+ye)/2,_e=(ge+Re)/2,Se,Le;if(Re===ge){if(Ve<F||Ve>=L)return;if(ne>ye){if(!S)S={x:Ve,y:Y};else if(S.y>=B)return;w={x:Ve,y:B}}else{if(!S)S={x:Ve,y:B};else if(S.y<Y)return;w={x:Ve,y:Y}}}else if(Se=(ne-ye)/(Re-ge),Le=_e-Se*Ve,Se<-1||Se>1)if(ne>ye){if(!S)S={x:(Y-Le)/Se,y:Y};else if(S.y>=B)return;w={x:(B-Le)/Se,y:B}}else{if(!S)S={x:(B-Le)/Se,y:B};else if(S.y<Y)return;w={x:(Y-Le)/Se,y:Y}}else if(ge<Re){if(!S)S={x:F,y:Se*F+Le};else if(S.x>=L)return;w={x:L,y:Se*L+Le}}else{if(!S)S={x:L,y:Se*L+Le};else if(S.x<F)return;w={x:F,y:Se*F+Le}}return v.a=S,v.b=w,!0}function po(v,g){this.l=v,this.r=g,this.a=this.b=null}function ps(v,g,w,S){var F=new po(v,g);return Bo.push(F),w&&mo(F,v,g,w),S&&mo(F,g,v,S),Io[v.i].edges.push(new wl(F,v,g)),Io[g.i].edges.push(new wl(F,g,v)),F}function I2(v,g,w){var S=new po(v,null);return S.a=g,S.b=w,Bo.push(S),S}function mo(v,g,w,S){!v.a&&!v.b?(v.a=S,v.l=g,v.r=w):v.l===w?v.b=S:v.a=S}function wl(v,g,w){var S=v.a,F=v.b;this.edge=v,this.site=g,this.angle=w?Math.atan2(w.y-g.y,w.x-g.x):v.l===g?Math.atan2(F.x-S.x,S.y-F.y):Math.atan2(S.x-F.x,F.y-S.y)}wl.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 Al(){this._=null}function Ml(v){v.U=v.C=v.L=v.R=v.P=v.N=null}Al.prototype={insert:function(v,g){var w,S,F;if(v){if(g.P=v,g.N=v.N,v.N&&(v.N.P=g),v.N=g,v.R){for(v=v.R;v.L;)v=v.L;v.L=g}else v.R=g;w=v}else this._?(v=$u(this._),g.P=null,g.N=v,v.P=v.L=g,w=v):(g.P=g.N=null,this._=g,w=null);for(g.L=g.R=null,g.U=w,g.C=!0,v=g;w&&w.C;)S=w.U,w===S.L?(F=S.R,F&&F.C?(w.C=F.C=!1,S.C=!0,v=S):(v===w.R&&(Uo(this,w),v=w,w=v.U),w.C=!1,S.C=!0,lu(this,S))):(F=S.L,F&&F.C?(w.C=F.C=!1,S.C=!0,v=S):(v===w.L&&(lu(this,w),v=w,w=v.U),w.C=!1,S.C=!0,Uo(this,S))),w=v.U;this._.C=!1},remove:function(v){v.N&&(v.N.P=v.P),v.P&&(v.P.N=v.N),v.N=v.P=null;var g=v.U,w,S=v.L,F=v.R,L,Y;if(S?F?L=$u(F):L=S:L=F,g?g.L===v?g.L=L:g.R=L:this._=L,S&&F?(Y=L.C,L.C=v.C,L.L=S,S.U=L,L!==F?(g=L.U,L.U=v.U,v=L.R,g.L=v,L.R=F,F.U=L):(L.U=g,g=L,v=L.R)):(Y=v.C,v=L),v&&(v.U=g),!Y){if(v&&v.C){v.C=!1;return}do{if(v===this._)break;if(v===g.L){if(w=g.R,w.C&&(w.C=!1,g.C=!0,Uo(this,g),w=g.R),w.L&&w.L.C||w.R&&w.R.C){(!w.R||!w.R.C)&&(w.L.C=!1,w.C=!0,lu(this,w),w=g.R),w.C=g.C,g.C=w.R.C=!1,Uo(this,g),v=this._;break}}else if(w=g.L,w.C&&(w.C=!1,g.C=!0,lu(this,g),w=g.L),w.L&&w.L.C||w.R&&w.R.C){(!w.L||!w.L.C)&&(w.R.C=!1,w.C=!0,Uo(this,w),w=g.L),w.C=g.C,g.C=w.L.C=!1,lu(this,g),v=this._;break}w.C=!0,v=g,g=g.U}while(!v.C);v&&(v.C=!1)}}};function Uo(v,g){var w=g,S=g.R,F=w.U;F?F.L===w?F.L=S:F.R=S:v._=S,S.U=F,w.U=S,w.R=S.L,w.R&&(w.R.U=w),S.L=w}function lu(v,g){var w=g,S=g.L,F=w.U;F?F.L===w?F.L=S:F.R=S:v._=S,S.U=F,w.U=S,w.L=S.R,w.L&&(w.L.U=w),S.R=w}function $u(v){for(;v.L;)v=v.L;return v}function su(v,g){var w=v.sort(uu).pop(),S,F,L;for(Bo=[],Io=new Array(v.length),vo=new Al,ds=new Al;;)if(L=Zu,w&&(!L||w.y<L.y||w.y===L.y&&w.x<L.x))(w.x!==S||w.y!==F)&&(Io[w.i]=new xl(w),Vc(w),S=w.x,F=w.y),w=v.pop();else if(L)iu(L.arc);else break;g&&(ji(g),cf(g));var Y={cells:Io,edges:Bo};return vo=ds=Bo=Io=null,Y}function uu(v,g){return g.y-v.y||g.x-v.x}e.geom.voronoi=function(v){var g=vs,w=eu,S=g,F=w,L=Tl;if(v)return Y(v);function Y(Z){var te=new Array(Z.length),ne=L[0][0],ge=L[0][1],ye=L[1][0],Re=L[1][1];return su(B(Z),L).cells.forEach(function(Ve,_e){var Se=Ve.edges,Le=Ve.site,Ge=te[_e]=Se.length?Se.map(function(Xe){var Pe=Xe.start();return[Pe.x,Pe.y]}):Le.x>=ne&&Le.x<=ye&&Le.y>=ge&&Le.y<=Re?[[ne,Re],[ye,Re],[ye,ge],[ne,ge]]:[];Ge.point=Z[_e]}),te}function B(Z){return Z.map(function(te,ne){return{x:Math.round(S(te,ne)/ar)*ar,y:Math.round(F(te,ne)/ar)*ar,i:ne}})}return Y.links=function(Z){return su(B(Z)).edges.filter(function(te){return te.l&&te.r}).map(function(te){return{source:Z[te.l.i],target:Z[te.r.i]}})},Y.triangles=function(Z){var te=[];return su(B(Z)).cells.forEach(function(ne,ge){for(var ye=ne.site,Re=ne.edges.sort(hs),Ve=-1,_e=Re.length,Se,Le,Ge=Re[_e-1].edge,Xe=Ge.l===ye?Ge.r:Ge.l;++Ve<_e;)Se=Ge,Le=Xe,Ge=Re[Ve].edge,Xe=Ge.l===ye?Ge.r:Ge.l,ge<Le.i&&ge<Xe.i&&ms(ye,Le,Xe)<0&&te.push([Z[ge],Z[Le.i],Z[Xe.i]])}),te},Y.x=function(Z){return arguments.length?(S=st(g=Z),Y):g},Y.y=function(Z){return arguments.length?(F=st(w=Z),Y):w},Y.clipExtent=function(Z){return arguments.length?(L=Z==null?Tl:Z,Y):L===Tl?null:L},Y.size=function(Z){return arguments.length?Y.clipExtent(Z&&[[0,0],Z]):L===Tl?null:L&&L[1]},Y};var Tl=[[-1e6,-1e6],[1e6,1e6]];function ms(v,g,w){return(v.x-w.x)*(g.y-v.y)-(v.x-g.x)*(w.y-v.y)}e.geom.delaunay=function(v){return e.geom.voronoi().triangles(v)},e.geom.quadtree=function(v,g,w,S,F){var L=vs,Y=eu,B;if(B=arguments.length)return L=gs,Y=Ju,B===3&&(F=w,S=g,w=g=0),Z(v);function Z(te){var ne,ge=st(L),ye=st(Y),Re,Ve,_e,Se,Le,Ge,Xe,Pe;if(g!=null)Le=g,Ge=w,Xe=S,Pe=F;else if(Xe=Pe=-(Le=Ge=1/0),Re=[],Ve=[],Se=te.length,B)for(_e=0;_e<Se;++_e)ne=te[_e],ne.x<Le&&(Le=ne.x),ne.y<Ge&&(Ge=ne.y),ne.x>Xe&&(Xe=ne.x),ne.y>Pe&&(Pe=ne.y),Re.push(ne.x),Ve.push(ne.y);else for(_e=0;_e<Se;++_e){var br=+ge(ne=te[_e],_e),Yr=+ye(ne,_e);br<Le&&(Le=br),Yr<Ge&&(Ge=Yr),br>Xe&&(Xe=br),Yr>Pe&&(Pe=Yr),Re.push(br),Ve.push(Yr)}var $r=Xe-Le,Xr=Pe-Ge;$r>Xr?Pe=Ge+$r:Xe=Le+Xr;function tt(it,bt,ia,pn,ca,Hr,kt,Ct){if(!(isNaN(ia)||isNaN(pn)))if(it.leaf){var oa=it.x,an=it.y;if(oa!=null)if(y(oa-ia)+y(an-pn)<.01)at(it,bt,ia,pn,ca,Hr,kt,Ct);else{var Sn=it.point;it.x=it.y=it.point=null,at(it,Sn,oa,an,ca,Hr,kt,Ct),at(it,bt,ia,pn,ca,Hr,kt,Ct)}else it.x=ia,it.y=pn,it.point=bt}else at(it,bt,ia,pn,ca,Hr,kt,Ct)}function at(it,bt,ia,pn,ca,Hr,kt,Ct){var oa=(ca+kt)*.5,an=(Hr+Ct)*.5,Sn=ia>=oa,ri=pn>=an,bi=ri<<1|Sn;it.leaf=!1,it=it.nodes[bi]||(it.nodes[bi]=Ku()),Sn?ca=oa:kt=oa,ri?Hr=an:Ct=an,tt(it,bt,ia,pn,ca,Hr,kt,Ct)}var Tt=Ku();if(Tt.add=function(it){tt(Tt,it,+ge(it,++_e),+ye(it,_e),Le,Ge,Xe,Pe)},Tt.visit=function(it){zi(it,Tt,Le,Ge,Xe,Pe)},Tt.find=function(it){return Qu(Tt,it[0],it[1],Le,Ge,Xe,Pe)},_e=-1,g==null){for(;++_e<Se;)tt(Tt,te[_e],Re[_e],Ve[_e],Le,Ge,Xe,Pe);--_e}else te.forEach(Tt.add);return Re=Ve=te=ne=null,Tt}return Z.x=function(te){return arguments.length?(L=te,Z):L},Z.y=function(te){return arguments.length?(Y=te,Z):Y},Z.extent=function(te){return arguments.length?(te==null?g=w=S=F=null:(g=+te[0][0],w=+te[0][1],S=+te[1][0],F=+te[1][1]),Z):g==null?null:[[g,w],[S,F]]},Z.size=function(te){return arguments.length?(te==null?g=w=S=F=null:(g=w=0,S=+te[0],F=+te[1]),Z):g==null?null:[S-g,F-w]},Z};function gs(v){return v.x}function Ju(v){return v.y}function Ku(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function zi(v,g,w,S,F,L){if(!v(g,w,S,F,L)){var Y=(w+F)*.5,B=(S+L)*.5,Z=g.nodes;Z[0]&&zi(v,Z[0],w,S,Y,B),Z[1]&&zi(v,Z[1],Y,S,F,B),Z[2]&&zi(v,Z[2],w,B,Y,L),Z[3]&&zi(v,Z[3],Y,B,F,L)}}function Qu(v,g,w,S,F,L,Y){var B=1/0,Z;return(function te(ne,ge,ye,Re,Ve){if(!(ge>L||ye>Y||Re<S||Ve<F)){if(_e=ne.point){var _e,Se=g-ne.x,Le=w-ne.y,Ge=Se*Se+Le*Le;if(Ge<B){var Xe=Math.sqrt(B=Ge);S=g-Xe,F=w-Xe,L=g+Xe,Y=w+Xe,Z=_e}}for(var Pe=ne.nodes,br=(ge+Re)*.5,Yr=(ye+Ve)*.5,$r=g>=br,Xr=w>=Yr,tt=Xr<<1|$r,at=tt+4;tt<at;++tt)if(ne=Pe[tt&3])switch(tt&3){case 0:te(ne,ge,ye,br,Yr);break;case 1:te(ne,br,ye,Re,Yr);break;case 2:te(ne,ge,Yr,br,Ve);break;case 3:te(ne,br,Yr,Re,Ve);break}}})(v,S,F,L,Y),Z}e.interpolateRgb=e0;function e0(v,g){v=e.rgb(v),g=e.rgb(g);var w=v.r,S=v.g,F=v.b,L=g.r-w,Y=g.g-S,B=g.b-F;return function(Z){return"#"+Ri(Math.round(w+L*Z))+Ri(Math.round(S+Y*Z))+Ri(Math.round(F+B*Z))}}e.interpolateObject=oi;function oi(v,g){var w={},S={},F;for(F in v)F in g?w[F]=kl(v[F],g[F]):S[F]=v[F];for(F in g)F in v||(S[F]=g[F]);return function(L){for(F in w)S[F]=w[F](L);return S}}e.interpolateNumber=Tn;function Tn(v,g){return v=+v,g=+g,function(w){return v*(1-w)+g*w}}e.interpolateString=Xn;function Xn(v,g){var w=go.lastIndex=fu.lastIndex=0,S,F,L,Y=-1,B=[],Z=[];for(v=v+"",g=g+"";(S=go.exec(v))&&(F=fu.exec(g));)(L=F.index)>w&&(L=g.slice(w,L),B[Y]?B[Y]+=L:B[++Y]=L),(S=S[0])===(F=F[0])?B[Y]?B[Y]+=F:B[++Y]=F:(B[++Y]=null,Z.push({i:Y,x:Tn(S,F)})),w=fu.lastIndex;return w<g.length&&(L=g.slice(w),B[Y]?B[Y]+=L:B[++Y]=L),B.length<2?Z[0]?(g=Z[0].x,function(te){return g(te)+""}):function(){return g}:(g=Z.length,function(te){for(var ne=0,ge;ne<g;++ne)B[(ge=Z[ne]).i]=ge.x(te);return B.join("")})}var go=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fu=new RegExp(go.source,"g");e.interpolate=kl;function kl(v,g){for(var w=e.interpolators.length,S;--w>=0&&!(S=e.interpolators[w](v,g)););return S}e.interpolators=[function(v,g){var w=typeof g;return(w==="string"?ot.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?e0:Xn:g instanceof Fa?e0:Array.isArray(g)?ys:w==="object"&&isNaN(g)?oi:Tn)(v,g)}],e.interpolateArray=ys;function ys(v,g){var w=[],S=[],F=v.length,L=g.length,Y=Math.min(v.length,g.length),B;for(B=0;B<Y;++B)w.push(kl(v[B],g[B]));for(;B<F;++B)S[B]=v[B];for(;B<L;++B)S[B]=g[B];return function(Z){for(B=0;B<Y;++B)S[B]=w[B](Z);return S}}var df=function(){return N},jc=e.map({linear:df,poly:Zc,quad:function(){return mf},cubic:function(){return gf},sin:function(){return cu},exp:function(){return vu},circle:function(){return Wi},elastic:r0,back:du,bounce:function(){return t0}}),H2=e.map({in:N,out:hf,"in-out":pf,"out-in":function(v){return pf(hf(v))}});e.ease=function(v){var g=v.indexOf("-"),w=g>=0?v.slice(0,g):v,S=g>=0?v.slice(g+1):"in";return w=jc.get(w)||df,S=H2.get(S)||N,O2(S(w.apply(null,r.call(arguments,1))))};function O2(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function hf(v){return function(g){return 1-v(1-g)}}function pf(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function mf(v){return v*v}function gf(v){return v*v*v}function Wc(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,w=g*v;return 4*(v<.5?w:3*(v-g)+w-.75)}function Zc(v){return function(g){return Math.pow(g,v)}}function cu(v){return 1-Math.cos(v*Ae)}function vu(v){return Math.pow(2,10*(v-1))}function Wi(v){return 1-Math.sqrt(1-v*v)}function r0(v,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/Br*Math.asin(1/v):(v=1,w=g/4),function(S){return 1+v*Math.pow(2,-10*S)*Math.sin((S-w)*Br/g)}}function du(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function t0(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=$c;function $c(v,g){v=e.hcl(v),g=e.hcl(g);var w=v.h,S=v.c,F=v.l,L=g.h-w,Y=g.c-S,B=g.l-F;return isNaN(Y)&&(Y=0,S=isNaN(S)?g.c:S),isNaN(L)?(L=0,w=isNaN(w)?g.h:w):L>180?L-=360:L<-180&&(L+=360),function(Z){return Ea(w+L*Z,S+Y*Z,F+B*Z)+""}}e.interpolateHsl=yf;function yf(v,g){v=e.hsl(v),g=e.hsl(g);var w=v.h,S=v.s,F=v.l,L=g.h-w,Y=g.s-S,B=g.l-F;return isNaN(Y)&&(Y=0,S=isNaN(S)?g.s:S),isNaN(L)?(L=0,w=isNaN(w)?g.h:w):L>180?L-=360:L<-180&&(L+=360),function(Z){return Et(w+L*Z,S+Y*Z,F+B*Z)+""}}e.interpolateLab=U2;function U2(v,g){v=e.lab(v),g=e.lab(g);var w=v.l,S=v.a,F=v.b,L=g.l-w,Y=g.a-S,B=g.b-F;return function(Z){return Ba(w+L*Z,S+Y*Z,F+B*Z)+""}}e.interpolateRound=Go;function Go(v,g){return g-=v,function(w){return Math.round(v+g*w)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var S=g.transform.baseVal.consolidate()}return new a0(S?S.matrix:bf)})(v)};function a0(v){var g=[v.a,v.b],w=[v.c,v.d],S=hu(g),F=bs(g,w),L=hu(pu(w,g,-F))||0;g[0]*w[1]<w[0]*g[1]&&(g[0]*=-1,g[1]*=-1,S*=-1,F*=-1),this.rotate=(S?Math.atan2(g[1],g[0]):Math.atan2(-w[0],w[1]))*or,this.translate=[v.e,v.f],this.scale=[S,L],this.skew=L?Math.atan2(F,L)*or:0}a0.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function bs(v,g){return v[0]*g[0]+v[1]*g[1]}function hu(v){var g=Math.sqrt(bs(v,v));return g&&(v[0]/=g,v[1]/=g),g}function pu(v,g,w){return v[0]+=w*g[0],v[1]+=w*g[1],v}var bf={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=n0;function Yo(v){return v.length?v.pop()+",":""}function Jc(v,g,w,S){if(v[0]!==g[0]||v[1]!==g[1]){var F=w.push("translate(",null,",",null,")");S.push({i:F-4,x:Tn(v[0],g[0])},{i:F-2,x:Tn(v[1],g[1])})}else(g[0]||g[1])&&w.push("translate("+g+")")}function _f(v,g,w,S){v!==g?(v-g>180?g+=360:g-v>180&&(v+=360),S.push({i:w.push(Yo(w)+"rotate(",null,")")-2,x:Tn(v,g)})):g&&w.push(Yo(w)+"rotate("+g+")")}function Kc(v,g,w,S){v!==g?S.push({i:w.push(Yo(w)+"skewX(",null,")")-2,x:Tn(v,g)}):g&&w.push(Yo(w)+"skewX("+g+")")}function xf(v,g,w,S){if(v[0]!==g[0]||v[1]!==g[1]){var F=w.push(Yo(w)+"scale(",null,",",null,")");S.push({i:F-4,x:Tn(v[0],g[0])},{i:F-2,x:Tn(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(Yo(w)+"scale("+g+")")}function n0(v,g){var w=[],S=[];return v=e.transform(v),g=e.transform(g),Jc(v.translate,g.translate,w,S),_f(v.rotate,g.rotate,w,S),Kc(v.skew,g.skew,w,S),xf(v.scale,g.scale,w,S),v=g=null,function(F){for(var L=-1,Y=S.length,B;++L<Y;)w[(B=S[L]).i]=B.x(F);return w.join("")}}function wf(v,g){return g=(g-=v=+v)||1/g,function(w){return(w-v)/g}}function Af(v,g){return g=(g-=v=+v)||1/g,function(w){return Math.max(0,Math.min(1,(w-v)/g))}}e.layout={},e.layout.bundle=function(){return function(v){for(var g=[],w=-1,S=v.length;++w<S;)g.push(G2(v[w]));return g}};function G2(v){for(var g=v.source,w=v.target,S=Zi(g,w),F=[g];g!==S;)g=g.parent,F.push(g);for(var L=F.length;w!==S;)F.splice(L,0,w),w=w.parent;return F}function Mf(v){for(var g=[],w=v.parent;w!=null;)g.push(v),v=w,w=w.parent;return g.push(v),g}function Zi(v,g){if(v===g)return v;for(var w=Mf(v),S=Mf(g),F=w.pop(),L=S.pop(),Y=null;F===L;)Y=F,F=w.pop(),L=S.pop();return Y}e.layout.chord=function(){var v={},g,w,S,F,L=0,Y,B,Z;function te(){var ge={},ye=[],Re=e.range(F),Ve=[],_e,Se,Le,Ge,Xe;for(g=[],w=[],_e=0,Ge=-1;++Ge<F;){for(Se=0,Xe=-1;++Xe<F;)Se+=S[Ge][Xe];ye.push(Se),Ve.push(e.range(F)),_e+=Se}for(Y&&Re.sort(function(Tt,it){return Y(ye[Tt],ye[it])}),B&&Ve.forEach(function(Tt,it){Tt.sort(function(bt,ia){return B(S[it][bt],S[it][ia])})}),_e=(Br-L*F)/_e,Se=0,Ge=-1;++Ge<F;){for(Le=Se,Xe=-1;++Xe<F;){var Pe=Re[Ge],br=Ve[Pe][Xe],Yr=S[Pe][br],$r=Se,Xr=Se+=Yr*_e;ge[Pe+"-"+br]={index:Pe,subindex:br,startAngle:$r,endAngle:Xr,value:Yr}}w[Pe]={index:Pe,startAngle:Le,endAngle:Se,value:ye[Pe]},Se+=L}for(Ge=-1;++Ge<F;)for(Xe=Ge-1;++Xe<F;){var tt=ge[Ge+"-"+Xe],at=ge[Xe+"-"+Ge];(tt.value||at.value)&&g.push(tt.value<at.value?{source:at,target:tt}:{source:tt,target:at})}Z&&ne()}function ne(){g.sort(function(ge,ye){return Z((ge.source.value+ge.target.value)/2,(ye.source.value+ye.target.value)/2)})}return v.matrix=function(ge){return arguments.length?(F=(S=ge)&&S.length,g=w=null,v):S},v.padding=function(ge){return arguments.length?(L=ge,g=w=null,v):L},v.sortGroups=function(ge){return arguments.length?(Y=ge,g=w=null,v):Y},v.sortSubgroups=function(ge){return arguments.length?(B=ge,g=null,v):B},v.sortChords=function(ge){return arguments.length?(Z=ge,g&&ne(),v):Z},v.chords=function(){return g||te(),g},v.groups=function(){return w||te(),w},v},e.layout.force=function(){var v={},g=e.dispatch("start","tick","end"),w,S=[1,1],F,L,Y=.9,B=e1,Z=Y2,te=-30,ne=V2,ge=.1,ye=.64,Re=[],Ve=[],_e,Se,Le;function Ge(Pe){return function(br,Yr,$r,Xr){if(br.point!==Pe){var tt=br.cx-Pe.x,at=br.cy-Pe.y,Tt=Xr-Yr,it=tt*tt+at*at;if(Tt*Tt/ye<it){if(it<ne){var bt=br.charge/it;Pe.px-=tt*bt,Pe.py-=at*bt}return!0}if(br.point&&it&&it<ne){var bt=br.pointCharge/it;Pe.px-=tt*bt,Pe.py-=at*bt}}return!br.charge}}v.tick=function(){if((L*=.99)<.005)return w=null,g.end({type:"end",alpha:L=0}),!0;var Pe=Re.length,br=Ve.length,Yr,$r,Xr,tt,at,Tt,it,bt,ia;for($r=0;$r<br;++$r)Xr=Ve[$r],tt=Xr.source,at=Xr.target,bt=at.x-tt.x,ia=at.y-tt.y,(Tt=bt*bt+ia*ia)&&(Tt=L*Se[$r]*((Tt=Math.sqrt(Tt))-_e[$r])/Tt,bt*=Tt,ia*=Tt,at.x-=bt*(it=tt.weight+at.weight?tt.weight/(tt.weight+at.weight):.5),at.y-=ia*it,tt.x+=bt*(it=1-it),tt.y+=ia*it);if((it=L*ge)&&(bt=S[0]/2,ia=S[1]/2,$r=-1,it))for(;++$r<Pe;)Xr=Re[$r],Xr.x+=(bt-Xr.x)*it,Xr.y+=(ia-Xr.y)*it;if(te)for(Cl(Yr=e.geom.quadtree(Re),L,Le),$r=-1;++$r<Pe;)(Xr=Re[$r]).fixed||Yr.visit(Ge(Xr));for($r=-1;++$r<Pe;)Xr=Re[$r],Xr.fixed?(Xr.x=Xr.px,Xr.y=Xr.py):(Xr.x-=(Xr.px-(Xr.px=Xr.x))*Y,Xr.y-=(Xr.py-(Xr.py=Xr.y))*Y);g.tick({type:"tick",alpha:L})},v.nodes=function(Pe){return arguments.length?(Re=Pe,v):Re},v.links=function(Pe){return arguments.length?(Ve=Pe,v):Ve},v.size=function(Pe){return arguments.length?(S=Pe,v):S},v.linkDistance=function(Pe){return arguments.length?(B=typeof Pe=="function"?Pe:+Pe,v):B},v.distance=v.linkDistance,v.linkStrength=function(Pe){return arguments.length?(Z=typeof Pe=="function"?Pe:+Pe,v):Z},v.friction=function(Pe){return arguments.length?(Y=+Pe,v):Y},v.charge=function(Pe){return arguments.length?(te=typeof Pe=="function"?Pe:+Pe,v):te},v.chargeDistance=function(Pe){return arguments.length?(ne=Pe*Pe,v):Math.sqrt(ne)},v.gravity=function(Pe){return arguments.length?(ge=+Pe,v):ge},v.theta=function(Pe){return arguments.length?(ye=Pe*Pe,v):Math.sqrt(ye)},v.alpha=function(Pe){return arguments.length?(Pe=+Pe,L?Pe>0?L=Pe:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:L=0})):Pe>0&&(g.start({type:"start",alpha:L=Pe}),w=cs(v.tick)),v):L},v.start=function(){var Pe,br=Re.length,Yr=Ve.length,$r=S[0],Xr=S[1],tt,at;for(Pe=0;Pe<br;++Pe)(at=Re[Pe]).index=Pe,at.weight=0;for(Pe=0;Pe<Yr;++Pe)at=Ve[Pe],typeof at.source=="number"&&(at.source=Re[at.source]),typeof at.target=="number"&&(at.target=Re[at.target]),++at.source.weight,++at.target.weight;for(Pe=0;Pe<br;++Pe)at=Re[Pe],isNaN(at.x)&&(at.x=Tt("x",$r)),isNaN(at.y)&&(at.y=Tt("y",Xr)),isNaN(at.px)&&(at.px=at.x),isNaN(at.py)&&(at.py=at.y);if(_e=[],typeof B=="function")for(Pe=0;Pe<Yr;++Pe)_e[Pe]=+B.call(this,Ve[Pe],Pe);else for(Pe=0;Pe<Yr;++Pe)_e[Pe]=B;if(Se=[],typeof Z=="function")for(Pe=0;Pe<Yr;++Pe)Se[Pe]=+Z.call(this,Ve[Pe],Pe);else for(Pe=0;Pe<Yr;++Pe)Se[Pe]=Z;if(Le=[],typeof te=="function")for(Pe=0;Pe<br;++Pe)Le[Pe]=+te.call(this,Re[Pe],Pe);else for(Pe=0;Pe<br;++Pe)Le[Pe]=te;function Tt(it,bt){if(!tt){for(tt=new Array(br),ca=0;ca<br;++ca)tt[ca]=[];for(ca=0;ca<Yr;++ca){var ia=Ve[ca];tt[ia.source.index].push(ia.target),tt[ia.target.index].push(ia.source)}}for(var pn=tt[Pe],ca=-1,Hr=pn.length,kt;++ca<Hr;)if(!isNaN(kt=pn[ca][it]))return kt;return Math.random()*bt}return v.resume()},v.resume=function(){return v.alpha(.1)},v.stop=function(){return v.alpha(0)},v.drag=function(){if(F||(F=e.behavior.drag().origin(N).on("dragstart.force",Tf).on("drag.force",Xe).on("dragend.force",_s)),!arguments.length)return F;this.on("mouseover.force",kf).on("mouseout.force",Qc).call(F)};function Xe(Pe){Pe.px=e.event.x,Pe.py=e.event.y,v.resume()}return e.rebind(v,g,"on")};function Tf(v){v.fixed|=2}function _s(v){v.fixed&=-7}function kf(v){v.fixed|=4,v.px=v.x,v.py=v.y}function Qc(v){v.fixed&=-5}function Cl(v,g,w){var S=0,F=0;if(v.charge=0,!v.leaf)for(var L=v.nodes,Y=L.length,B=-1,Z;++B<Y;)Z=L[B],Z!=null&&(Cl(Z,g,w),v.charge+=Z.charge,S+=Z.charge*Z.cx,F+=Z.charge*Z.cy);if(v.point){v.leaf||(v.point.x+=Math.random()-.5,v.point.y+=Math.random()-.5);var te=g*w[v.point.index];v.charge+=v.pointCharge=te,S+=te*v.point.x,F+=te*v.point.y}v.cx=S/v.charge,v.cy=F/v.charge}var e1=20,Y2=1,V2=1/0;e.layout.hierarchy=function(){var v=r1,g=X2,w=xs;function S(F){var L=[F],Y=[],B;for(F.depth=0;(B=L.pop())!=null;)if(Y.push(B),(te=g.call(S,B,B.depth))&&(Z=te.length)){for(var Z,te,ne;--Z>=0;)L.push(ne=te[Z]),ne.parent=B,ne.depth=B.depth+1;w&&(B.value=0),B.children=te}else w&&(B.value=+w.call(S,B,B.depth)||0),delete B.children;return li(F,function(ge){var ye,Re;v&&(ye=ge.children)&&ye.sort(v),w&&(Re=ge.parent)&&(Re.value+=ge.value)}),Y}return S.sort=function(F){return arguments.length?(v=F,S):v},S.children=function(F){return arguments.length?(g=F,S):g},S.value=function(F){return arguments.length?(w=F,S):w},S.revalue=function(F){return w&&($i(F,function(L){L.children&&(L.value=0)}),li(F,function(L){var Y;L.children||(L.value=+w.call(S,L,L.depth)||0),(Y=L.parent)&&(Y.value+=L.value)})),F},S};function yo(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=gi,v}function $i(v,g){for(var w=[v];(v=w.pop())!=null;)if(g(v),(F=v.children)&&(S=F.length))for(var S,F;--S>=0;)w.push(F[S])}function li(v,g){for(var w=[v],S=[];(v=w.pop())!=null;)if(S.push(v),(Y=v.children)&&(L=Y.length))for(var F=-1,L,Y;++F<L;)w.push(Y[F]);for(;(v=S.pop())!=null;)g(v)}function X2(v){return v.children}function xs(v){return v.value}function r1(v,g){return g.value-v.value}function gi(v){return e.merge(v.map(function(g){return(g.children||[]).map(function(w){return{source:g,target:w}})}))}e.layout.partition=function(){var v=e.layout.hierarchy(),g=[1,1];function w(L,Y,B,Z){var te=L.children;if(L.x=Y,L.y=L.depth*Z,L.dx=B,L.dy=Z,te&&(ge=te.length)){var ne=-1,ge,ye,Re;for(B=L.value?B/L.value:0;++ne<ge;)w(ye=te[ne],Y,Re=ye.value*B,Z),Y+=Re}}function S(L){var Y=L.children,B=0;if(Y&&(te=Y.length))for(var Z=-1,te;++Z<te;)B=Math.max(B,S(Y[Z]));return 1+B}function F(L,Y){var B=v.call(this,L,Y);return w(B[0],0,g[0],g[1]/S(B[0])),B}return F.size=function(L){return arguments.length?(g=L,F):g},yo(F,v)},e.layout.pie=function(){var v=Number,g=t1,w=0,S=Br,F=0;function L(Y){var B=Y.length,Z=Y.map(function(Ge,Xe){return+v.call(L,Ge,Xe)}),te=+(typeof w=="function"?w.apply(this,arguments):w),ne=(typeof S=="function"?S.apply(this,arguments):S)-te,ge=Math.min(Math.abs(ne)/B,+(typeof F=="function"?F.apply(this,arguments):F)),ye=ge*(ne<0?-1:1),Re=e.sum(Z),Ve=Re?(ne-B*ye)/Re:0,_e=e.range(B),Se=[],Le;return g!=null&&_e.sort(g===t1?function(Ge,Xe){return Z[Xe]-Z[Ge]}:function(Ge,Xe){return g(Y[Ge],Y[Xe])}),_e.forEach(function(Ge){Se[Ge]={data:Y[Ge],value:Le=Z[Ge],startAngle:te,endAngle:te+=Le*Ve+ye,padAngle:ge}}),Se}return L.value=function(Y){return arguments.length?(v=Y,L):v},L.sort=function(Y){return arguments.length?(g=Y,L):g},L.startAngle=function(Y){return arguments.length?(w=Y,L):w},L.endAngle=function(Y){return arguments.length?(S=Y,L):S},L.padAngle=function(Y){return arguments.length?(F=Y,L):F},L};var t1={};e.layout.stack=function(){var v=N,g=o0,w=yu,S=n1,F=a1,L=mu;function Y(B,Z){if(!(Ve=B.length))return B;var te=B.map(function(Ge,Xe){return v.call(Y,Ge,Xe)}),ne=te.map(function(Ge){return Ge.map(function(Xe,Pe){return[F.call(Y,Xe,Pe),L.call(Y,Xe,Pe)]})}),ge=g.call(Y,ne,Z);te=e.permute(te,ge),ne=e.permute(ne,ge);var ye=w.call(Y,ne,Z),Re=te[0].length,Ve,_e,Se,Le;for(Se=0;Se<Re;++Se)for(S.call(Y,te[0][Se],Le=ye[Se],ne[0][Se][1]),_e=1;_e<Ve;++_e)S.call(Y,te[_e][Se],Le+=ne[_e-1][Se][1],ne[_e][Se][1]);return B}return Y.values=function(B){return arguments.length?(v=B,Y):v},Y.order=function(B){return arguments.length?(g=typeof B=="function"?B:i0.get(B)||o0,Y):g},Y.offset=function(B){return arguments.length?(w=typeof B=="function"?B:gu.get(B)||yu,Y):w},Y.x=function(B){return arguments.length?(F=B,Y):F},Y.y=function(B){return arguments.length?(L=B,Y):L},Y.out=function(B){return arguments.length?(S=B,Y):S},Y};function a1(v){return v.x}function mu(v){return v.y}function n1(v,g,w){v.y0=g,v.y=w}var i0=e.map({"inside-out":function(v){var g=v.length,w,S,F=v.map(j2),L=v.map(bu),Y=e.range(g).sort(function(ge,ye){return F[ge]-F[ye]}),B=0,Z=0,te=[],ne=[];for(w=0;w<g;++w)S=Y[w],B<Z?(B+=L[S],te.push(S)):(Z+=L[S],ne.push(S));return ne.reverse().concat(te)},reverse:function(v){return e.range(v.length).reverse()},default:o0}),gu=e.map({silhouette:function(v){var g=v.length,w=v[0].length,S=[],F=0,L,Y,B,Z=[];for(Y=0;Y<w;++Y){for(L=0,B=0;L<g;L++)B+=v[L][Y][1];B>F&&(F=B),S.push(B)}for(Y=0;Y<w;++Y)Z[Y]=(F-S[Y])/2;return Z},wiggle:function(v){var g=v.length,w=v[0],S=w.length,F,L,Y,B,Z,te,ne,ge,ye,Re=[];for(Re[0]=ge=ye=0,L=1;L<S;++L){for(F=0,B=0;F<g;++F)B+=v[F][L][1];for(F=0,Z=0,ne=w[L][0]-w[L-1][0];F<g;++F){for(Y=0,te=(v[F][L][1]-v[F][L-1][1])/(2*ne);Y<F;++Y)te+=(v[Y][L][1]-v[Y][L-1][1])/ne;Z+=te*v[F][L][1]}Re[L]=ge-=B?Z/B*ne:0,ge<ye&&(ye=ge)}for(L=0;L<S;++L)Re[L]-=ye;return Re},expand:function(v){var g=v.length,w=v[0].length,S=1/g,F,L,Y,B=[];for(L=0;L<w;++L){for(F=0,Y=0;F<g;F++)Y+=v[F][L][1];if(Y)for(F=0;F<g;F++)v[F][L][1]/=Y;else for(F=0;F<g;F++)v[F][L][1]=S}for(L=0;L<w;++L)B[L]=0;return B},zero:yu});function o0(v){return e.range(v.length)}function yu(v){for(var g=-1,w=v[0].length,S=[];++g<w;)S[g]=0;return S}function j2(v){for(var g=1,w=0,S=v[0][1],F,L=v.length;g<L;++g)(F=v[g][1])>S&&(w=g,S=F);return w}function bu(v){return v.reduce(Sl,0)}function Sl(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,w=ws,S=_u;function F(L,ye){for(var B=[],Z=L.map(g,this),te=w.call(this,Z,ye),ne=S.call(this,te,Z,ye),ge,ye=-1,Re=Z.length,Ve=ne.length-1,_e=v?1:1/Re,Se;++ye<Ve;)ge=B[ye]=[],ge.dx=ne[ye+1]-(ge.x=ne[ye]),ge.y=0;if(Ve>0)for(ye=-1;++ye<Re;)Se=Z[ye],Se>=te[0]&&Se<=te[1]&&(ge=B[e.bisect(ne,Se,1,Ve)-1],ge.y+=_e,ge.push(L[ye]));return B}return F.value=function(L){return arguments.length?(g=L,F):g},F.range=function(L){return arguments.length?(w=st(L),F):w},F.bins=function(L){return arguments.length?(S=typeof L=="number"?function(Y){return Dl(Y,L)}:st(L),F):S},F.frequency=function(L){return arguments.length?(v=!!L,F):v},F};function _u(v,g){return Dl(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function Dl(v,g){for(var w=-1,S=+v[0],F=(v[1]-S)/g,L=[];++w<=g;)L[w]=F*w+S;return L}function ws(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(l0),g=0,w=[1,1],S;function F(L,Y){var B=v.call(this,L,Y),Z=B[0],te=w[0],ne=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(Z.x=Z.y=0,li(Z,function(Re){Re.r=+ge(Re.value)}),li(Z,o1),g){var ye=g*(S?1:Math.max(2*Z.r/te,2*Z.r/ne))/2;li(Z,function(Re){Re.r+=ye}),li(Z,o1),li(Z,function(Re){Re.r-=ye})}return u0(Z,te/2,ne/2,S?1:1/Math.max(2*Z.r/te,2*Z.r/ne)),B}return F.size=function(L){return arguments.length?(w=L,F):w},F.radius=function(L){return arguments.length?(S=L==null||typeof L=="function"?L:+L,F):S},F.padding=function(L){return arguments.length?(g=+L,F):g},yo(F,v)};function l0(v,g){return v.value-g.value}function xu(v,g){var w=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=w,w._pack_prev=g}function i1(v,g){v._pack_next=g,g._pack_prev=v}function s0(v,g){var w=g.x-v.x,S=g.y-v.y,F=v.r+g.r;return .999*F*F>w*w+S*S}function o1(v){if(!(g=v.children)||!(ye=g.length))return;var g,w=1/0,S=-1/0,F=1/0,L=-1/0,Y,B,Z,te,ne,ge,ye;function Re(Pe){w=Math.min(Pe.x-Pe.r,w),S=Math.max(Pe.x+Pe.r,S),F=Math.min(Pe.y-Pe.r,F),L=Math.max(Pe.y+Pe.r,L)}if(g.forEach(l1),Y=g[0],Y.x=-Y.r,Y.y=0,Re(Y),ye>1&&(B=g[1],B.x=B.r,B.y=0,Re(B),ye>2))for(Z=g[2],hn(Y,B,Z),Re(Z),xu(Y,Z),Y._pack_prev=Z,xu(Z,B),B=Y._pack_next,te=3;te<ye;te++){hn(Y,B,Z=g[te]);var Ve=0,_e=1,Se=1;for(ne=B._pack_next;ne!==B;ne=ne._pack_next,_e++)if(s0(ne,Z)){Ve=1;break}if(Ve==1)for(ge=Y._pack_prev;ge!==ne._pack_prev&&!s0(ge,Z);ge=ge._pack_prev,Se++);Ve?(_e<Se||_e==Se&&B.r<Y.r?i1(Y,B=ne):i1(Y=ge,B),te--):(xu(Y,Z),B=Z,Re(Z))}var Le=(w+S)/2,Ge=(F+L)/2,Xe=0;for(te=0;te<ye;te++)Z=g[te],Z.x-=Le,Z.y-=Ge,Xe=Math.max(Xe,Z.r+Math.sqrt(Z.x*Z.x+Z.y*Z.y));v.r=Xe,g.forEach(Cf)}function l1(v){v._pack_next=v._pack_prev=v}function Cf(v){delete v._pack_next,delete v._pack_prev}function u0(v,g,w,S){var F=v.children;if(v.x=g+=S*v.x,v.y=w+=S*v.y,v.r*=S,F)for(var L=-1,Y=F.length;++L<Y;)u0(F[L],g,w,S)}function hn(v,g,w){var S=v.r+w.r,F=g.x-v.x,L=g.y-v.y;if(S&&(F||L)){var Y=g.r+w.r,B=F*F+L*L;Y*=Y,S*=S;var Z=.5+(S-Y)/(2*B),te=Math.sqrt(Math.max(0,2*Y*(S+B)-(S-=B)*S-Y*Y))/(2*B);w.x=v.x+Z*F+te*L,w.y=v.y+Z*L-te*F}else w.x=v.x+S,w.y=v.y}e.layout.tree=function(){var v=e.layout.hierarchy().sort(null).value(null),g=Ni,w=[1,1],S=null;function F(ne,ge){var ye=v.call(this,ne,ge),Re=ye[0],Ve=L(Re);if(li(Ve,Y),Ve.parent.m=-Ve.z,$i(Ve,B),S)$i(Re,te);else{var _e=Re,Se=Re,Le=Re;$i(Re,function(br){br.x<_e.x&&(_e=br),br.x>Se.x&&(Se=br),br.depth>Le.depth&&(Le=br)});var Ge=g(_e,Se)/2-_e.x,Xe=w[0]/(Se.x+g(Se,_e)/2+Ge),Pe=w[1]/(Le.depth||1);$i(Re,function(br){br.x=(br.x+Ge)*Xe,br.y=br.depth*Pe})}return ye}function L(ne){for(var ge={A:null,children:[ne]},ye=[ge],Re;(Re=ye.pop())!=null;)for(var Ve=Re.children,_e,Se=0,Le=Ve.length;Se<Le;++Se)ye.push((Ve[Se]=_e={_:Ve[Se],parent:Re,children:(_e=Ve[Se].children)&&_e.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Se}).a=_e);return ge.children[0]}function Y(ne){var ge=ne.children,ye=ne.parent.children,Re=ne.i?ye[ne.i-1]:null;if(ge.length){Sf(ne);var Ve=(ge[0].z+ge[ge.length-1].z)/2;Re?(ne.z=Re.z+g(ne._,Re._),ne.m=ne.z-Ve):ne.z=Ve}else Re&&(ne.z=Re.z+g(ne._,Re._));ne.parent.A=Z(ne,Re,ne.parent.A||ye[0])}function B(ne){ne._.x=ne.z+ne.parent.m,ne.m+=ne.parent.m}function Z(ne,ge,ye){if(ge){for(var Re=ne,Ve=ne,_e=ge,Se=Re.parent.children[0],Le=Re.m,Ge=Ve.m,Xe=_e.m,Pe=Se.m,br;_e=f0(_e),Re=As(Re),_e&&Re;)Se=As(Se),Ve=f0(Ve),Ve.a=ne,br=_e.z+Xe-Re.z-Le+g(_e._,Re._),br>0&&(wu(O(_e,ne,ye),ne,br),Le+=br,Ge+=br),Xe+=_e.m,Le+=Re.m,Pe+=Se.m,Ge+=Ve.m;_e&&!f0(Ve)&&(Ve.t=_e,Ve.m+=Xe-Ge),Re&&!As(Se)&&(Se.t=Re,Se.m+=Le-Pe,ye=ne)}return ye}function te(ne){ne.x*=w[0],ne.y=ne.depth*w[1]}return F.separation=function(ne){return arguments.length?(g=ne,F):g},F.size=function(ne){return arguments.length?(S=(w=ne)==null?te:null,F):S?null:w},F.nodeSize=function(ne){return arguments.length?(S=(w=ne)==null?null:te,F):S?w:null},yo(F,v)};function Ni(v,g){return v.parent==g.parent?1:2}function As(v){var g=v.children;return g.length?g[0]:v.t}function f0(v){var g=v.children,w;return(w=g.length)?g[w-1]:v.t}function wu(v,g,w){var S=w/(g.i-v.i);g.c-=S,g.s+=w,v.c+=S,g.z+=w,g.m+=w}function Sf(v){for(var g=0,w=0,S=v.children,F=S.length,L;--F>=0;)L=S[F],L.z+=g,L.m+=g,g+=L.s+(w+=L.c)}function O(v,g,w){return v.a.parent===g.parent?v.a:w}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=Ni,w=[1,1],S=!1;function F(L,Y){var B=v.call(this,L,Y),Z=B[0],te,ne=0;li(Z,function(_e){var Se=_e.children;Se&&Se.length?(_e.x=he(Se),_e.y=$(Se)):(_e.x=te?ne+=g(_e,te):0,_e.y=0,te=_e)});var ge=se(Z),ye=Me(Z),Re=ge.x-g(ge,ye)/2,Ve=ye.x+g(ye,ge)/2;return li(Z,S?function(_e){_e.x=(_e.x-Z.x)*w[0],_e.y=(Z.y-_e.y)*w[1]}:function(_e){_e.x=(_e.x-Re)/(Ve-Re)*w[0],_e.y=(1-(Z.y?_e.y/Z.y:1))*w[1]}),B}return F.separation=function(L){return arguments.length?(g=L,F):g},F.size=function(L){return arguments.length?(S=(w=L)==null,F):S?null:w},F.nodeSize=function(L){return arguments.length?(S=(w=L)!=null,F):S?w:null},yo(F,v)};function $(v){return 1+e.max(v,function(g){return g.y})}function he(v){return v.reduce(function(g,w){return g+w.x},0)/v.length}function se(v){var g=v.children;return g&&g.length?se(g[0]):v}function Me(v){var g=v.children,w;return g&&(w=g.length)?Me(g[w-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,F=Oe,L=!1,Y,B="squarify",Z=.5*(1+Math.sqrt(5));function te(_e,Se){for(var Le=-1,Ge=_e.length,Xe,Pe;++Le<Ge;)Pe=(Xe=_e[Le]).value*(Se<0?0:Se),Xe.area=isNaN(Pe)||Pe<=0?0:Pe}function ne(_e){var Se=_e.children;if(Se&&Se.length){var Le=F(_e),Ge=[],Xe=Se.slice(),Pe,br=1/0,Yr,$r=B==="slice"?Le.dx:B==="dice"?Le.dy:B==="slice-dice"?_e.depth&1?Le.dy:Le.dx:Math.min(Le.dx,Le.dy),Xr;for(te(Xe,Le.dx*Le.dy/_e.value),Ge.area=0;(Xr=Xe.length)>0;)Ge.push(Pe=Xe[Xr-1]),Ge.area+=Pe.area,B!=="squarify"||(Yr=ye(Ge,$r))<=br?(Xe.pop(),br=Yr):(Ge.area-=Ge.pop().area,Re(Ge,$r,Le,!1),$r=Math.min(Le.dx,Le.dy),Ge.length=Ge.area=0,br=1/0);Ge.length&&(Re(Ge,$r,Le,!0),Ge.length=Ge.area=0),Se.forEach(ne)}}function ge(_e){var Se=_e.children;if(Se&&Se.length){var Le=F(_e),Ge=Se.slice(),Xe,Pe=[];for(te(Ge,Le.dx*Le.dy/_e.value),Pe.area=0;Xe=Ge.pop();)Pe.push(Xe),Pe.area+=Xe.area,Xe.z!=null&&(Re(Pe,Xe.z?Le.dx:Le.dy,Le,!Ge.length),Pe.length=Pe.area=0);Se.forEach(ge)}}function ye(_e,Se){for(var Le=_e.area,Ge,Xe=0,Pe=1/0,br=-1,Yr=_e.length;++br<Yr;)(Ge=_e[br].area)&&(Ge<Pe&&(Pe=Ge),Ge>Xe&&(Xe=Ge));return Le*=Le,Se*=Se,Le?Math.max(Se*Xe*Z/Le,Le/(Se*Pe*Z)):1/0}function Re(_e,Se,Le,Ge){var Xe=-1,Pe=_e.length,br=Le.x,Yr=Le.y,$r=Se?g(_e.area/Se):0,Xr;if(Se==Le.dx){for((Ge||$r>Le.dy)&&($r=Le.dy);++Xe<Pe;)Xr=_e[Xe],Xr.x=br,Xr.y=Yr,Xr.dy=$r,br+=Xr.dx=Math.min(Le.x+Le.dx-br,$r?g(Xr.area/$r):0);Xr.z=!0,Xr.dx+=Le.x+Le.dx-br,Le.y+=$r,Le.dy-=$r}else{for((Ge||$r>Le.dx)&&($r=Le.dx);++Xe<Pe;)Xr=_e[Xe],Xr.x=br,Xr.y=Yr,Xr.dx=$r,Yr+=Xr.dy=Math.min(Le.y+Le.dy-Yr,$r?g(Xr.area/$r):0);Xr.z=!1,Xr.dy+=Le.y+Le.dy-Yr,Le.x+=$r,Le.dx-=$r}}function Ve(_e){var Se=Y||v(_e),Le=Se[0];return Le.x=Le.y=0,Le.value?(Le.dx=w[0],Le.dy=w[1]):Le.dx=Le.dy=0,Y&&v.revalue(Le),te([Le],Le.dx*Le.dy/Le.value),(Y?ge:ne)(Le),L&&(Y=Se),Se}return Ve.size=function(_e){return arguments.length?(w=_e,Ve):w},Ve.padding=function(_e){if(!arguments.length)return S;function Se(Xe){var Pe=_e.call(Ve,Xe,Xe.depth);return Pe==null?Oe(Xe):We(Xe,typeof Pe=="number"?[Pe,Pe,Pe,Pe]:Pe)}function Le(Xe){return We(Xe,_e)}var Ge;return F=(S=_e)==null?Oe:(Ge=typeof _e)=="function"?Se:(Ge==="number"&&(_e=[_e,_e,_e,_e]),Le),Ve},Ve.round=function(_e){return arguments.length?(g=_e?Math.round:Number,Ve):g!=Number},Ve.sticky=function(_e){return arguments.length?(L=_e,Y=null,Ve):L},Ve.ratio=function(_e){return arguments.length?(Z=_e,Ve):Z},Ve.mode=function(_e){return arguments.length?(B=_e+"",Ve):B},yo(Ve,v)};function Oe(v){return{x:v.x,y:v.y,dx:v.dx,dy:v.dy}}function We(v,g){var w=v.x+g[3],S=v.y+g[0],F=v.dx-g[1]-g[3],L=v.dy-g[0]-g[2];return F<0&&(w+=F/2,F=0),L<0&&(S+=L/2,L=0),{x:w,y:S,dx:F,dy:L}}e.random={normal:function(v,g){var w=arguments.length;return w<2&&(g=1),w<1&&(v=0),function(){var S,F,L;do S=Math.random()*2-1,F=Math.random()*2-1,L=S*S+F*F;while(!L||L>1);return v+g*S*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,w=0;w<v;w++)g+=Math.random();return g}}},e.scale={};function rr(v){var g=v[0],w=v[v.length-1];return g<w?[g,w]:[w,g]}function ir(v){return v.rangeExtent?v.rangeExtent():rr(v.range())}function gr(v,g,w,S){var F=w(v[0],v[1]),L=S(g[0],g[1]);return function(Y){return L(F(Y))}}function $e(v,g){var w=0,S=v.length-1,F=v[w],L=v[S],Y;return L<F&&(Y=w,w=S,S=Y,Y=F,F=L,L=Y),v[w]=g.floor(F),v[S]=g.ceil(L),v}function fr(v){return v?{floor:function(g){return Math.floor(g/v)*v},ceil:function(g){return Math.ceil(g/v)*v}}:sr}var sr={floor:N,ceil:N};function wr(v,g,w,S){var F=[],L=[],Y=0,B=Math.min(v.length,g.length)-1;for(v[B]<v[0]&&(v=v.slice().reverse(),g=g.slice().reverse());++Y<=B;)F.push(w(v[Y-1],v[Y])),L.push(S(g[Y-1],g[Y]));return function(Z){var te=e.bisect(v,Z,1,B)-1;return L[te](F[te](Z))}}e.scale.linear=function(){return Dr([0,1],[0,1],kl,!1)};function Dr(v,g,w,S){var F,L;function Y(){var Z=Math.min(v.length,g.length)>2?wr:gr,te=S?Af:wf;return F=Z(v,g,te,w),L=Z(g,v,te,kl),B}function B(Z){return F(Z)}return B.invert=function(Z){return L(Z)},B.domain=function(Z){return arguments.length?(v=Z.map(Number),Y()):v},B.range=function(Z){return arguments.length?(g=Z,Y()):g},B.rangeRound=function(Z){return B.range(Z).interpolate(Go)},B.clamp=function(Z){return arguments.length?(S=Z,Y()):S},B.interpolate=function(Z){return arguments.length?(w=Z,Y()):w},B.ticks=function(Z){return ft(v,Z)},B.tickFormat=function(Z,te){return d3_scale_linearTickFormat(v,Z,te)},B.nice=function(Z){return rt(v,Z),Y()},B.copy=function(){return Dr(v,g,w,S)},Y()}function lt(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function rt(v,g){return $e(v,fr(ut(v,g)[2])),$e(v,fr(ut(v,g)[2])),v}function ut(v,g){g==null&&(g=10);var w=rr(v),S=w[1]-w[0],F=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),L=g/S*F;return L<=.15?F*=10:L<=.35?F*=5:L<=.75&&(F*=2),w[0]=Math.ceil(w[0]/F)*F,w[1]=Math.floor(w[1]/F)*F+F*.5,w[2]=F,w}function ft(v,g){return e.range.apply(e,ut(v,g))}var Lr={s:1,g:1,p:1,r:1,e:1};function Ur(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function vt(v,g){var w=Ur(g[2]);return v in Lr?Math.abs(w-Ur(Math.max(y(g[0]),y(g[1]))))+ +(v!=="e"):w-(v==="%")*2}e.scale.log=function(){return xt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function xt(v,g,w,S){function F(B){return(w?Math.log(B<0?0:B):-Math.log(B>0?0:-B))/Math.log(g)}function L(B){return w?Math.pow(g,B):-Math.pow(g,-B)}function Y(B){return v(F(B))}return Y.invert=function(B){return L(v.invert(B))},Y.domain=function(B){return arguments.length?(w=B[0]>=0,v.domain((S=B.map(Number)).map(F)),Y):S},Y.base=function(B){return arguments.length?(g=+B,v.domain(S.map(F)),Y):g},Y.nice=function(){var B=$e(S.map(F),w?Math:Jt);return v.domain(B),S=B.map(L),Y},Y.ticks=function(){var B=rr(S),Z=[],te=B[0],ne=B[1],ge=Math.floor(F(te)),ye=Math.ceil(F(ne)),Re=g%1?2:g;if(isFinite(ye-ge)){if(w){for(;ge<ye;ge++)for(var Ve=1;Ve<Re;Ve++)Z.push(L(ge)*Ve);Z.push(L(ge))}else for(Z.push(L(ge));ge++<ye;)for(var Ve=Re-1;Ve>0;Ve--)Z.push(L(ge)*Ve);for(ge=0;Z[ge]<te;ge++);for(ye=Z.length;Z[ye-1]>ne;ye--);Z=Z.slice(ge,ye)}return Z},Y.copy=function(){return xt(v.copy(),g,w,S)},lt(Y,v)}var Jt={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return ua(e.scale.linear(),1,[0,1])};function ua(v,g,w){var S=ea(g),F=ea(1/g);function L(Y){return v(S(Y))}return L.invert=function(Y){return F(v.invert(Y))},L.domain=function(Y){return arguments.length?(v.domain((w=Y.map(Number)).map(S)),L):w},L.ticks=function(Y){return ft(w,Y)},L.tickFormat=function(Y,B){return d3_scale_linearTickFormat(w,Y,B)},L.nice=function(Y){return L.domain(rt(w,Y))},L.exponent=function(Y){return arguments.length?(S=ea(g=Y),F=ea(1/g),v.domain(w.map(S)),L):g},L.copy=function(){return ua(v.copy(),g,w)},lt(L,v)}function ea(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return xa([],{t:"range",a:[[]]})};function xa(v,g){var w,S,F;function L(B){return S[((w.get(B)||(g.t==="range"?w.set(B,v.push(B)):NaN))-1)%S.length]}function Y(B,Z){return e.range(v.length).map(function(te){return B+Z*te})}return L.domain=function(B){if(!arguments.length)return v;v=[],w=new _;for(var Z=-1,te=B.length,ne;++Z<te;)w.has(ne=B[Z])||w.set(ne,v.push(ne));return L[g.t].apply(L,g.a)},L.range=function(B){return arguments.length?(S=B,F=0,g={t:"range",a:arguments},L):S},L.rangePoints=function(B,Z){arguments.length<2&&(Z=0);var te=B[0],ne=B[1],ge=v.length<2?(te=(te+ne)/2,0):(ne-te)/(v.length-1+Z);return S=Y(te+ge*Z/2,ge),F=0,g={t:"rangePoints",a:arguments},L},L.rangeRoundPoints=function(B,Z){arguments.length<2&&(Z=0);var te=B[0],ne=B[1],ge=v.length<2?(te=ne=Math.round((te+ne)/2),0):(ne-te)/(v.length-1+Z)|0;return S=Y(te+Math.round(ge*Z/2+(ne-te-(v.length-1+Z)*ge)/2),ge),F=0,g={t:"rangeRoundPoints",a:arguments},L},L.rangeBands=function(B,Z,te){arguments.length<2&&(Z=0),arguments.length<3&&(te=Z);var ne=B[1]<B[0],ge=B[ne-0],ye=B[1-ne],Re=(ye-ge)/(v.length-Z+2*te);return S=Y(ge+Re*te,Re),ne&&S.reverse(),F=Re*(1-Z),g={t:"rangeBands",a:arguments},L},L.rangeRoundBands=function(B,Z,te){arguments.length<2&&(Z=0),arguments.length<3&&(te=Z);var ne=B[1]<B[0],ge=B[ne-0],ye=B[1-ne],Re=Math.floor((ye-ge)/(v.length-Z+2*te));return S=Y(ge+Math.round((ye-ge-(v.length-Z)*Re)/2),Re),ne&&S.reverse(),F=Math.round(Re*(1-Z)),g={t:"rangeRoundBands",a:arguments},L},L.rangeBand=function(){return F},L.rangeExtent=function(){return rr(g.a[0])},L.copy=function(){return xa(v,g)},L.domain(v)}e.scale.category10=function(){return e.scale.ordinal().range(zt)},e.scale.category20=function(){return e.scale.ordinal().range(Cn)},e.scale.category20b=function(){return e.scale.ordinal().range(rn)},e.scale.category20c=function(){return e.scale.ordinal().range(wa)};var zt=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(gl),Cn=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(gl),rn=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(gl),wa=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(gl);e.scale.quantile=function(){return Vr([],[])};function Vr(v,g){var w;function S(){var L=0,Y=g.length;for(w=[];++L<Y;)w[L-1]=e.quantile(v,L/Y);return F}function F(L){if(!isNaN(L=+L))return g[e.bisect(w,L)]}return F.domain=function(L){return arguments.length?(v=L.map(d).filter(h).sort(c),S()):v},F.range=function(L){return arguments.length?(g=L,S()):g},F.quantiles=function(){return w},F.invertExtent=function(L){return L=g.indexOf(L),L<0?[NaN,NaN]:[L>0?w[L-1]:v[0],L<w.length?w[L]:v[v.length-1]]},F.copy=function(){return Vr(v,g)},S()}e.scale.quantize=function(){return Kt(0,1,[0,1])};function Kt(v,g,w){var S,F;function L(B){return w[Math.max(0,Math.min(F,Math.floor(S*(B-v))))]}function Y(){return S=w.length/(g-v),F=w.length-1,L}return L.domain=function(B){return arguments.length?(v=+B[0],g=+B[B.length-1],Y()):[v,g]},L.range=function(B){return arguments.length?(w=B,Y()):w},L.invertExtent=function(B){return B=w.indexOf(B),B=B<0?NaN:B/S+v,[B,B+1/S]},L.copy=function(){return Kt(v,g,w)},Y()}e.scale.threshold=function(){return un([.5],[0,1])};function un(v,g){function w(S){if(S<=S)return g[e.bisect(v,S)]}return w.domain=function(S){return arguments.length?(v=S,w):v},w.range=function(S){return arguments.length?(g=S,w):g},w.invertExtent=function(S){return S=g.indexOf(S),[v[S-1],v[S]]},w.copy=function(){return un(v,g)},w}e.scale.identity=function(){return Rn([0,1])};function Rn(v){function g(w){return+w}return g.invert=g,g.domain=g.range=function(w){return arguments.length?(v=w.map(g),g):v},g.ticks=function(w){return ft(v,w)},g.tickFormat=function(w,S){return d3_scale_linearTickFormat(v,w,S)},g.copy=function(){return Rn(v)},g}e.svg={};function yi(){return 0}e.svg.arc=function(){var v=Ji,g=Fl,w=yi,S=bo,F=Bi,L=El,Y=Ms;function B(){var te=Math.max(0,+v.apply(this,arguments)),ne=Math.max(0,+g.apply(this,arguments)),ge=F.apply(this,arguments)-Ae,ye=L.apply(this,arguments)-Ae,Re=Math.abs(ye-ge),Ve=ge>ye?0:1;if(ne<te&&(_e=ne,ne=te,te=_e),Re>=Zr)return Z(ne,Ve)+(te?Z(te,1-Ve):"")+"Z";var _e,Se,Le,Ge,Xe=0,Pe=0,br,Yr,$r,Xr,tt,at,Tt,it,bt=[];if((Ge=(+Y.apply(this,arguments)||0)/2)&&(Le=S===bo?Math.sqrt(te*te+ne*ne):+S.apply(this,arguments),Ve||(Pe*=-1),ne&&(Pe=ba(Le/ne*Math.sin(Ge))),te&&(Xe=ba(Le/te*Math.sin(Ge)))),ne){br=ne*Math.cos(ge+Pe),Yr=ne*Math.sin(ge+Pe),$r=ne*Math.cos(ye-Pe),Xr=ne*Math.sin(ye-Pe);var ia=Math.abs(ye-ge-2*Pe)<=Wr?0:1;if(Pe&&c0(br,Yr,$r,Xr)===Ve^ia){var pn=(ge+ye)/2;br=ne*Math.cos(pn),Yr=ne*Math.sin(pn),$r=Xr=null}}else br=Yr=0;if(te){tt=te*Math.cos(ye-Xe),at=te*Math.sin(ye-Xe),Tt=te*Math.cos(ge+Xe),it=te*Math.sin(ge+Xe);var ca=Math.abs(ge-ye+2*Xe)<=Wr?0:1;if(Xe&&c0(tt,at,Tt,it)===1-Ve^ca){var Hr=(ge+ye)/2;tt=te*Math.cos(Hr),at=te*Math.sin(Hr),Tt=it=null}}else tt=at=0;if(Re>ar&&(_e=Math.min(Math.abs(ne-te)/2,+w.apply(this,arguments)))>.001){Se=te<ne^Ve?0:1;var kt=_e,Ct=_e;if(Re<Wr){var oa=Tt==null?[tt,at]:$r==null?[br,Yr]:au([br,Yr],[Tt,it],[$r,Xr],[tt,at]),an=br-oa[0],Sn=Yr-oa[1],ri=$r-oa[0],bi=Xr-oa[1],Hi=1/Math.sin(Math.acos((an*ri+Sn*bi)/(Math.sqrt(an*an+Sn*Sn)*Math.sqrt(ri*ri+bi*bi)))/2),_i=Math.sqrt(oa[0]*oa[0]+oa[1]*oa[1]);Ct=Math.min(_e,(te-_i)/(Hi-1)),kt=Math.min(_e,(ne-_i)/(Hi+1))}if($r!=null){var Qi=s1(Tt==null?[tt,at]:[Tt,it],[br,Yr],ne,kt,Ve),si=s1([$r,Xr],[tt,at],ne,kt,Ve);_e===kt?bt.push("M",Qi[0],"A",kt,",",kt," 0 0,",Se," ",Qi[1],"A",ne,",",ne," 0 ",1-Ve^c0(Qi[1][0],Qi[1][1],si[1][0],si[1][1]),",",Ve," ",si[1],"A",kt,",",kt," 0 0,",Se," ",si[0]):bt.push("M",Qi[0],"A",kt,",",kt," 0 1,",Se," ",si[0])}else bt.push("M",br,",",Yr);if(Tt!=null){var eo=s1([br,Yr],[Tt,it],te,-Ct,Ve),Lf=s1([tt,at],$r==null?[br,Yr]:[$r,Xr],te,-Ct,Ve);_e===Ct?bt.push("L",Lf[0],"A",Ct,",",Ct," 0 0,",Se," ",Lf[1],"A",te,",",te," 0 ",Ve^c0(Lf[1][0],Lf[1][1],eo[1][0],eo[1][1]),",",1-Ve," ",eo[1],"A",Ct,",",Ct," 0 0,",Se," ",eo[0]):bt.push("L",Lf[0],"A",Ct,",",Ct," 0 0,",Se," ",eo[0])}else bt.push("L",tt,",",at)}else bt.push("M",br,",",Yr),$r!=null&&bt.push("A",ne,",",ne," 0 ",ia,",",Ve," ",$r,",",Xr),bt.push("L",tt,",",at),Tt!=null&&bt.push("A",te,",",te," 0 ",ca,",",1-Ve," ",Tt,",",it);return bt.push("Z"),bt.join("")}function Z(te,ne){return"M0,"+te+"A"+te+","+te+" 0 1,"+ne+" 0,"+-te+"A"+te+","+te+" 0 1,"+ne+" 0,"+te}return B.innerRadius=function(te){return arguments.length?(v=st(te),B):v},B.outerRadius=function(te){return arguments.length?(g=st(te),B):g},B.cornerRadius=function(te){return arguments.length?(w=st(te),B):w},B.padRadius=function(te){return arguments.length?(S=te==bo?bo:st(te),B):S},B.startAngle=function(te){return arguments.length?(F=st(te),B):F},B.endAngle=function(te){return arguments.length?(L=st(te),B):L},B.padAngle=function(te){return arguments.length?(Y=st(te),B):Y},B.centroid=function(){var te=(+v.apply(this,arguments)+ +g.apply(this,arguments))/2,ne=(+F.apply(this,arguments)+ +L.apply(this,arguments))/2-Ae;return[Math.cos(ne)*te,Math.sin(ne)*te]},B};var bo="auto";function Ji(v){return v.innerRadius}function Fl(v){return v.outerRadius}function Bi(v){return v.startAngle}function El(v){return v.endAngle}function Ms(v){return v&&v.padAngle}function c0(v,g,w,S){return(v-w)*g-(g-S)*v>0?0:1}function s1(v,g,w,S,F){var L=v[0]-g[0],Y=v[1]-g[1],B=(F?S:-S)/Math.sqrt(L*L+Y*Y),Z=B*Y,te=-B*L,ne=v[0]+Z,ge=v[1]+te,ye=g[0]+Z,Re=g[1]+te,Ve=(ne+ye)/2,_e=(ge+Re)/2,Se=ye-ne,Le=Re-ge,Ge=Se*Se+Le*Le,Xe=w-S,Pe=ne*Re-ye*ge,br=(Le<0?-1:1)*Math.sqrt(Math.max(0,Xe*Xe*Ge-Pe*Pe)),Yr=(Pe*Le-Se*br)/Ge,$r=(-Pe*Se-Le*br)/Ge,Xr=(Pe*Le+Se*br)/Ge,tt=(-Pe*Se+Le*br)/Ge,at=Yr-Ve,Tt=$r-_e,it=Xr-Ve,bt=tt-_e;return at*at+Tt*Tt>it*it+bt*bt&&(Yr=Xr,$r=tt),[[Yr-Z,$r-te],[Yr*w/Xe,$r*w/Xe]]}function u1(){return!0}function mh(v){var g=vs,w=eu,S=u1,F=_o,L=F.key,Y=.7;function B(Z){var te=[],ne=[],ge=-1,ye=Z.length,Re,Ve=st(g),_e=st(w);function Se(){te.push("M",F(v(ne),Y))}for(;++ge<ye;)S.call(this,Re=Z[ge],ge)?ne.push([+Ve.call(this,Re,ge),+_e.call(this,Re,ge)]):ne.length&&(Se(),ne=[]);return ne.length&&Se(),te.length?te.join(""):null}return B.x=function(Z){return arguments.length?(g=Z,B):g},B.y=function(Z){return arguments.length?(w=Z,B):w},B.defined=function(Z){return arguments.length?(S=Z,B):S},B.interpolate=function(Z){return arguments.length?(typeof Z=="function"?L=F=Z:L=(F=Df.get(Z)||_o).key,B):L},B.tension=function(Z){return arguments.length?(Y=Z,B):Y},B}e.svg.line=function(){return mh(N)};var Df=e.map({linear:_o,"linear-closed":gh,step:yh,"step-before":f1,"step-after":W2,basis:wh,"basis-open":Z2,"basis-closed":Cy,bundle:$2,cardinal:xh,"cardinal-open":bh,"cardinal-closed":_h,monotone:ve});Df.forEach(function(v,g){g.key=v,g.closed=/-closed$/.test(v)});function _o(v){return v.length>1?v.join("L"):v+"Z"}function gh(v){return v.join("L")+"Z"}function yh(v){for(var g=0,w=v.length,S=v[0],F=[S[0],",",S[1]];++g<w;)F.push("H",(S[0]+(S=v[g])[0])/2,"V",S[1]);return w>1&&F.push("H",S[0]),F.join("")}function f1(v){for(var g=0,w=v.length,S=v[0],F=[S[0],",",S[1]];++g<w;)F.push("V",(S=v[g])[1],"H",S[0]);return F.join("")}function W2(v){for(var g=0,w=v.length,S=v[0],F=[S[0],",",S[1]];++g<w;)F.push("H",(S=v[g])[0],"V",S[1]);return F.join("")}function bh(v,g){return v.length<4?_o(v):v[1]+c1(v.slice(1,-1),Ff(v,g))}function _h(v,g){return v.length<3?gh(v):v[0]+c1((v.push(v[0]),v),Ff([v[v.length-2]].concat(v,[v[1]]),g))}function xh(v,g){return v.length<3?_o(v):v[0]+c1(v,Ff(v,g))}function c1(v,g){if(g.length<1||v.length!=g.length&&v.length!=g.length+2)return _o(v);var w=v.length!=g.length,S="",F=v[0],L=v[1],Y=g[0],B=Y,Z=1;if(w&&(S+="Q"+(L[0]-Y[0]*2/3)+","+(L[1]-Y[1]*2/3)+","+L[0]+","+L[1],F=v[1],Z=2),g.length>1){B=g[1],L=v[Z],Z++,S+="C"+(F[0]+Y[0])+","+(F[1]+Y[1])+","+(L[0]-B[0])+","+(L[1]-B[1])+","+L[0]+","+L[1];for(var te=2;te<g.length;te++,Z++)L=v[Z],B=g[te],S+="S"+(L[0]-B[0])+","+(L[1]-B[1])+","+L[0]+","+L[1]}if(w){var ne=v[Z];S+="Q"+(L[0]+B[0]*2/3)+","+(L[1]+B[1]*2/3)+","+ne[0]+","+ne[1]}return S}function Ff(v,g){for(var w=[],S=(1-g)/2,F,L=v[0],Y=v[1],B=1,Z=v.length;++B<Z;)F=L,L=Y,Y=v[B],w.push([S*(Y[0]-F[0]),S*(Y[1]-F[1])]);return w}function wh(v){if(v.length<3)return _o(v);var g=1,w=v.length,S=v[0],F=S[0],L=S[1],Y=[F,F,F,(S=v[1])[0]],B=[L,L,L,S[1]],Z=[F,",",L,"L",Ki(q,Y),",",Ki(q,B)];for(v.push(v[w-1]);++g<=w;)S=v[g],Y.shift(),Y.push(S[0]),B.shift(),B.push(S[1]),R(Z,Y,B);return v.pop(),Z.push("L",S),Z.join("")}function Z2(v){if(v.length<4)return _o(v);for(var g=[],w=-1,S=v.length,F,L=[0],Y=[0];++w<3;)F=v[w],L.push(F[0]),Y.push(F[1]);for(g.push(Ki(q,L)+","+Ki(q,Y)),--w;++w<S;)F=v[w],L.shift(),L.push(F[0]),Y.shift(),Y.push(F[1]),R(g,L,Y);return g.join("")}function Cy(v){for(var g,w=-1,S=v.length,F=S+4,L,Y=[],B=[];++w<4;)L=v[w%S],Y.push(L[0]),B.push(L[1]);for(g=[Ki(q,Y),",",Ki(q,B)],--w;++w<F;)L=v[w%S],Y.shift(),Y.push(L[0]),B.shift(),B.push(L[1]),R(g,Y,B);return g.join("")}function $2(v,g){var w=v.length-1;if(w)for(var S=v[0][0],F=v[0][1],L=v[w][0]-S,Y=v[w][1]-F,B=-1,Z,te;++B<=w;)Z=v[B],te=B/w,Z[0]=g*Z[0]+(1-g)*(S+te*L),Z[1]=g*Z[1]+(1-g)*(F+te*Y);return wh(v)}function Ki(v,g){return v[0]*g[0]+v[1]*g[1]+v[2]*g[2]+v[3]*g[3]}var k=[0,2/3,1/3,0],D=[0,1/3,2/3,0],q=[0,1/6,2/3,1/6];function R(v,g,w){v.push("C",Ki(k,g),",",Ki(k,w),",",Ki(D,g),",",Ki(D,w),",",Ki(q,g),",",Ki(q,w))}function G(v,g){return(g[1]-v[1])/(g[0]-v[0])}function U(v){for(var g=0,w=v.length-1,S=[],F=v[0],L=v[1],Y=S[0]=G(F,L);++g<w;)S[g]=(Y+(Y=G(F=L,L=v[g+1])))/2;return S[g]=Y,S}function j(v){for(var g=[],w,S,F,L,Y=U(v),B=-1,Z=v.length-1;++B<Z;)w=G(v[B],v[B+1]),y(w)<ar?Y[B]=Y[B+1]=0:(S=Y[B]/w,F=Y[B+1]/w,L=S*S+F*F,L>9&&(L=w*3/Math.sqrt(L),Y[B]=L*S,Y[B+1]=L*F));for(B=-1;++B<=Z;)L=(v[Math.min(Z,B+1)][0]-v[Math.max(0,B-1)][0])/(6*(1+Y[B]*Y[B])),g.push([L||0,Y[B]*L||0]);return g}function ve(v){return v.length<3?_o(v):v[0]+c1(v,j(v))}e.svg.line.radial=function(){var v=mh(pe);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function pe(v){for(var g,w=-1,S=v.length,F,L;++w<S;)g=v[w],F=g[0],L=g[1]-Ae,g[0]=F*Math.cos(L),g[1]=F*Math.sin(L);return v}function ce(v){var g=vs,w=vs,S=0,F=eu,L=u1,Y=_o,B=Y.key,Z=Y,te="L",ne=.7;function ge(ye){var Re=[],Ve=[],_e=[],Se=-1,Le=ye.length,Ge,Xe=st(g),Pe=st(S),br=g===w?function(){return $r}:st(w),Yr=S===F?function(){return Xr}:st(F),$r,Xr;function tt(){Re.push("M",Y(v(_e),ne),te,Z(v(Ve.reverse()),ne),"Z")}for(;++Se<Le;)L.call(this,Ge=ye[Se],Se)?(Ve.push([$r=+Xe.call(this,Ge,Se),Xr=+Pe.call(this,Ge,Se)]),_e.push([+br.call(this,Ge,Se),+Yr.call(this,Ge,Se)])):Ve.length&&(tt(),Ve=[],_e=[]);return Ve.length&&tt(),Re.length?Re.join(""):null}return ge.x=function(ye){return arguments.length?(g=w=ye,ge):w},ge.x0=function(ye){return arguments.length?(g=ye,ge):g},ge.x1=function(ye){return arguments.length?(w=ye,ge):w},ge.y=function(ye){return arguments.length?(S=F=ye,ge):F},ge.y0=function(ye){return arguments.length?(S=ye,ge):S},ge.y1=function(ye){return arguments.length?(F=ye,ge):F},ge.defined=function(ye){return arguments.length?(L=ye,ge):L},ge.interpolate=function(ye){return arguments.length?(typeof ye=="function"?B=Y=ye:B=(Y=Df.get(ye)||_o).key,Z=Y.reverse||Y,te=Y.closed?"M":"L",ge):B},ge.tension=function(ye){return arguments.length?(ne=ye,ge):ne},ge}f1.reverse=W2,W2.reverse=f1,e.svg.area=function(){return ce(N)},e.svg.area.radial=function(){var v=ce(pe);return v.radius=v.x,delete v.x,v.innerRadius=v.x0,delete v.x0,v.outerRadius=v.x1,delete v.x1,v.angle=v.y,delete v.y,v.startAngle=v.y0,delete v.y0,v.endAngle=v.y1,delete v.y1,v};function me(v){return v.source}function we(v){return v.target}e.svg.chord=function(){var v=me,g=we,w=Fe,S=Bi,F=El;function L(ne,ge){var ye=Y(this,v,ne,ge),Re=Y(this,g,ne,ge);return"M"+ye.p0+Z(ye.r,ye.p1,ye.a1-ye.a0)+(B(ye,Re)?te(ye.r,ye.p1,ye.r,ye.p0):te(ye.r,ye.p1,Re.r,Re.p0)+Z(Re.r,Re.p1,Re.a1-Re.a0)+te(Re.r,Re.p1,ye.r,ye.p0))+"Z"}function Y(ne,ge,ye,Re){var Ve=ge.call(ne,ye,Re),_e=w.call(ne,Ve,Re),Se=S.call(ne,Ve,Re)-Ae,Le=F.call(ne,Ve,Re)-Ae;return{r:_e,a0:Se,a1:Le,p0:[_e*Math.cos(Se),_e*Math.sin(Se)],p1:[_e*Math.cos(Le),_e*Math.sin(Le)]}}function B(ne,ge){return ne.a0==ge.a0&&ne.a1==ge.a1}function Z(ne,ge,ye){return"A"+ne+","+ne+" 0 "+ +(ye>Wr)+",1 "+ge}function te(ne,ge,ye,Re){return"Q 0,0 "+Re}return L.radius=function(ne){return arguments.length?(w=st(ne),L):w},L.source=function(ne){return arguments.length?(v=st(ne),L):v},L.target=function(ne){return arguments.length?(g=st(ne),L):g},L.startAngle=function(ne){return arguments.length?(S=st(ne),L):S},L.endAngle=function(ne){return arguments.length?(F=st(ne),L):F},L};function Fe(v){return v.radius}e.svg.diagonal=function(){var v=me,g=we,w=Ie;function S(F,L){var Y=v.call(this,F,L),B=g.call(this,F,L),Z=(Y.y+B.y)/2,te=[Y,{x:Y.x,y:Z},{x:B.x,y:Z},B];return te=te.map(w),"M"+te[0]+"C"+te[1]+" "+te[2]+" "+te[3]}return S.source=function(F){return arguments.length?(v=st(F),S):v},S.target=function(F){return arguments.length?(g=st(F),S):g},S.projection=function(F){return arguments.length?(w=F,S):w},S};function Ie(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=Ie,w=v.projection;return v.projection=function(S){return arguments.length?w(Ke(g=S)):g},v};function Ke(v){return function(){var g=v.apply(this,arguments),w=g[0],S=g[1]-Ae;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var v=Tr,g=ur;function w(S,F){return(ct.get(v.call(this,S,F))||Kr)(g.call(this,S,F))}return w.type=function(S){return arguments.length?(v=st(S),w):v},w.size=function(S){return arguments.length?(g=st(S),w):g},w};function ur(){return 64}function Tr(){return"circle"}function Kr(v){var g=Math.sqrt(v/Wr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var ct=e.map({circle:Kr,cross:function(v){var g=Math.sqrt(v/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(v){var g=Math.sqrt(v/(2*pt)),w=g*pt;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/dt),w=g*dt/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/dt),w=g*dt/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=ct.keys();var dt=Math.sqrt(3),pt=Math.tan(30*Be);K.transition=function(v){for(var g=zn||++tn,w=Qn(v),S=[],F,L,Y=Ii||{time:Date.now(),ease:Wc,delay:0,duration:250},B=-1,Z=this.length;++B<Z;){S.push(F=[]);for(var te=this[B],ne=-1,ge=te.length;++ne<ge;)(L=te[ne])&&ei(L,ne,w,g,Y),F.push(L)}return Da(S,w,g)},K.interrupt=function(v){return this.each(v==null?yt:fa(Qn(v)))};var yt=fa(Qn());function fa(v){return function(){var g,w,S;(g=this[v])&&(S=g[w=g.active])&&(S.timer.c=null,S.timer.t=NaN,--g.count?delete g[w]:delete this[v],g.active+=.5,S.event&&S.event.interrupt.call(this,this.__data__,S.index))}}function Da(v,g,w){return ke(v,Gt),v.namespace=g,v.id=w,v}var Gt=[],tn=0,zn,Ii;Gt.call=K.call,Gt.empty=K.empty,Gt.node=K.node,Gt.size=K.size,e.transition=function(v,g){return v&&v.transition?zn?v.transition(g):v:e.selection().transition(v)},e.transition.prototype=Gt,Gt.select=function(v){var g=this.id,w=this.namespace,S=[],F,L,Y;v=J(v);for(var B=-1,Z=this.length;++B<Z;){S.push(F=[]);for(var te=this[B],ne=-1,ge=te.length;++ne<ge;)(Y=te[ne])&&(L=v.call(Y,Y.__data__,ne,B))?("__data__"in Y&&(L.__data__=Y.__data__),ei(L,ne,w,g,Y[w][g]),F.push(L)):F.push(null)}return Da(S,w,g)},Gt.selectAll=function(v){var g=this.id,w=this.namespace,S=[],F,L,Y,B,Z;v=fe(v);for(var te=-1,ne=this.length;++te<ne;)for(var ge=this[te],ye=-1,Re=ge.length;++ye<Re;)if(Y=ge[ye]){Z=Y[w][g],L=v.call(Y,Y.__data__,ye,te),S.push(F=[]);for(var Ve=-1,_e=L.length;++Ve<_e;)(B=L[Ve])&&ei(B,Ve,w,g,Z),F.push(B)}return Da(S,w,g)},Gt.filter=function(v){var g=[],w,S,F;typeof v!="function"&&(v=Te(v));for(var L=0,Y=this.length;L<Y;L++){g.push(w=[]);for(var S=this[L],B=0,Z=S.length;B<Z;B++)(F=S[B])&&v.call(F,F.__data__,B,L)&&w.push(F)}return Da(g,this.namespace,this.id)},Gt.tween=function(v,g){var w=this.id,S=this.namespace;return arguments.length<2?this.node()[S][w].tween.get(v):_r(this,g==null?function(F){F[S][w].tween.remove(v)}:function(F){F[S][w].tween.set(v,g)})};function Ll(v,g,w,S){var F=v.id,L=v.namespace;return _r(v,typeof w=="function"?function(Y,B,Z){Y[L][F].tween.set(g,S(w.call(Y,Y.__data__,B,Z)))}:(w=S(w),function(Y){Y[L][F].tween.set(g,w)}))}Gt.attr=function(v,g){if(arguments.length<2){for(g in v)this.attr(g,v[g]);return this}var w=v=="transform"?n0:kl,S=e.ns.qualify(v);function F(){this.removeAttribute(S)}function L(){this.removeAttributeNS(S.space,S.local)}function Y(Z){return Z==null?F:(Z+="",function(){var te=this.getAttribute(S),ne;return te!==Z&&(ne=w(te,Z),function(ge){this.setAttribute(S,ne(ge))})})}function B(Z){return Z==null?L:(Z+="",function(){var te=this.getAttributeNS(S.space,S.local),ne;return te!==Z&&(ne=w(te,Z),function(ge){this.setAttributeNS(S.space,S.local,ne(ge))})})}return Ll(this,"attr."+v,g,S.local?B:Y)},Gt.attrTween=function(v,g){var w=e.ns.qualify(v);function S(L,Y){var B=g.call(this,L,Y,this.getAttribute(w));return B&&function(Z){this.setAttribute(w,B(Z))}}function F(L,Y){var B=g.call(this,L,Y,this.getAttributeNS(w.space,w.local));return B&&function(Z){this.setAttributeNS(w.space,w.local,B(Z))}}return this.tween("attr."+v,w.local?F:S)},Gt.style=function(v,g,w){var S=arguments.length;if(S<3){if(typeof v!="string"){S<2&&(g="");for(w in v)this.style(w,v[w],g);return this}w=""}function F(){this.style.removeProperty(v)}function L(Y){return Y==null?F:(Y+="",function(){var B=i(this).getComputedStyle(this,null).getPropertyValue(v),Z;return B!==Y&&(Z=kl(B,Y),function(te){this.style.setProperty(v,Z(te),w)})})}return Ll(this,"style."+v,g,L)},Gt.styleTween=function(v,g,w){arguments.length<3&&(w="");function S(F,L){var Y=g.call(this,F,L,i(this).getComputedStyle(this,null).getPropertyValue(v));return Y&&function(B){this.style.setProperty(v,Y(B),w)}}return this.tween("style."+v,S)},Gt.text=function(v){return Ll(this,"text",v,Au)};function Au(v){return v==null&&(v=""),function(){this.textContent=v}}Gt.remove=function(){var v=this.namespace;return this.each("end.transition",function(){var g;this[v].count<2&&(g=this.parentNode)&&g.removeChild(this)})},Gt.ease=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].ease:(typeof v!="function"&&(v=e.ease.apply(e,arguments)),_r(this,function(S){S[w][g].ease=v}))},Gt.delay=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].delay:_r(this,typeof v=="function"?function(S,F,L){S[w][g].delay=+v.call(S,S.__data__,F,L)}:(v=+v,function(S){S[w][g].delay=v}))},Gt.duration=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].duration:_r(this,typeof v=="function"?function(S,F,L){S[w][g].duration=Math.max(1,v.call(S,S.__data__,F,L))}:(v=Math.max(1,v),function(S){S[w][g].duration=v}))},Gt.each=function(v,g){var w=this.id,S=this.namespace;if(arguments.length<2){var F=Ii,L=zn;try{zn=w,_r(this,function(Y,B,Z){Ii=Y[S][w],v.call(Y,Y.__data__,B,Z)})}finally{Ii=F,zn=L}}else _r(this,function(Y){var B=Y[S][w];(B.event||(B.event=e.dispatch("start","end","interrupt"))).on(v,g)});return this},Gt.transition=function(){for(var v=this.id,g=++tn,w=this.namespace,S=[],F,L,Y,B,Z=0,te=this.length;Z<te;Z++){S.push(F=[]);for(var L=this[Z],ne=0,ge=L.length;ne<ge;ne++)(Y=L[ne])&&(B=Y[w][v],ei(Y,ne,w,g,{time:B.time,ease:B.ease,delay:B.delay+B.duration,duration:B.duration})),F.push(Y)}return Da(S,w,g)};function Qn(v){return v==null?"__transition__":"__transition_"+v+"__"}function ei(v,g,w,S,F){var L=v[w]||(v[w]={active:0,count:0}),Y=L[S],B,Z,te,ne,ge;function ye(_e){var Se=Y.delay;if(Z.t=Se+B,Se<=_e)return Re(_e-Se);Z.c=Re}function Re(_e){var Se=L.active,Le=L[Se];Le&&(Le.timer.c=null,Le.timer.t=NaN,--L.count,delete L[Se],Le.event&&Le.event.interrupt.call(v,v.__data__,Le.index));for(var Ge in L)if(+Ge<S){var Xe=L[Ge];Xe.timer.c=null,Xe.timer.t=NaN,--L.count,delete L[Ge]}Z.c=Ve,cs(function(){return Z.c&&Ve(_e||1)&&(Z.c=null,Z.t=NaN),1},0,B),L.active=S,Y.event&&Y.event.start.call(v,v.__data__,g),ge=[],Y.tween.forEach(function(Pe,br){(br=br.call(v,v.__data__,g))&&ge.push(br)}),ne=Y.ease,te=Y.duration}function Ve(_e){for(var Se=_e/te,Le=ne(Se),Ge=ge.length;Ge>0;)ge[--Ge].call(v,Le);if(Se>=1)return Y.event&&Y.event.end.call(v,v.__data__,g),--L.count?delete L[S]:delete v[w],1}Y||(B=F.time,Z=cs(ye,0,B),Y=L[S]={tween:new _,time:B,timer:Z,delay:F.delay,duration:F.duration,ease:F.ease,index:g},F=null,++L.count)}e.svg.axis=function(){var v=e.scale.linear(),g=xo,w=6,S=6,F=3,L=[10],Y=null,B;function Z(te){te.each(function(){var ne=e.select(this),ge=this.__chart__||v,ye=this.__chart__=v.copy(),Re=Y==null?ye.ticks?ye.ticks.apply(ye,L):ye.domain():Y,Ve=B==null?ye.tickFormat?ye.tickFormat.apply(ye,L):N:B,_e=ne.selectAll(".tick").data(Re,ye),Se=_e.enter().insert("g",".domain").attr("class","tick").style("opacity",ar),Le=e.transition(_e.exit()).style("opacity",ar).remove(),Ge=e.transition(_e.order()).style("opacity",1),Xe=Math.max(w,0)+F,Pe,br=ir(ye),Yr=ne.selectAll(".domain").data([0]),$r=(Yr.enter().append("path").attr("class","domain"),e.transition(Yr));Se.append("line"),Se.append("text");var Xr=Se.select("line"),tt=Ge.select("line"),at=_e.select("text").text(Ve),Tt=Se.select("text"),it=Ge.select("text"),bt=g==="top"||g==="left"?-1:1,ia,pn,ca,Hr;if(g==="bottom"||g==="top"?(Pe=Pl,ia="x",ca="y",pn="x2",Hr="y2",at.attr("dy",bt<0?"0em":".71em").style("text-anchor","middle"),$r.attr("d","M"+br[0]+","+bt*S+"V0H"+br[1]+"V"+bt*S)):(Pe=Rl,ia="y",ca="x",pn="y2",Hr="x2",at.attr("dy",".32em").style("text-anchor",bt<0?"end":"start"),$r.attr("d","M"+bt*S+","+br[0]+"H0V"+br[1]+"H"+bt*S)),Xr.attr(Hr,bt*w),Tt.attr(ca,bt*Xe),tt.attr(pn,0).attr(Hr,bt*w),it.attr(ia,0).attr(ca,bt*Xe),ye.rangeBand){var kt=ye,Ct=kt.rangeBand()/2;ge=ye=function(oa){return kt(oa)+Ct}}else ge.rangeBand?ge=ye:Le.call(Pe,ye,ge);Se.call(Pe,ge,ye),Ge.call(Pe,ye,ye)})}return Z.scale=function(te){return arguments.length?(v=te,Z):v},Z.orient=function(te){return arguments.length?(g=te in ql?te+"":xo,Z):g},Z.ticks=function(){return arguments.length?(L=t(arguments),Z):L},Z.tickValues=function(te){return arguments.length?(Y=te,Z):Y},Z.tickFormat=function(te){return arguments.length?(B=te,Z):B},Z.tickSize=function(te){var ne=arguments.length;return ne?(w=+te,S=+arguments[ne-1],Z):w},Z.innerTickSize=function(te){return arguments.length?(w=+te,Z):w},Z.outerTickSize=function(te){return arguments.length?(S=+te,Z):S},Z.tickPadding=function(te){return arguments.length?(F=+te,Z):F},Z.tickSubdivide=function(){return arguments.length&&Z},Z};var xo="bottom",ql={top:1,right:1,bottom:1,left:1};function Pl(v,g,w){v.attr("transform",function(S){var F=g(S);return"translate("+(isFinite(F)?F:w(S))+",0)"})}function Rl(v,g,w){v.attr("transform",function(S){var F=g(S);return"translate(0,"+(isFinite(F)?F:w(S))+")"})}e.svg.brush=function(){var v=Ye(ne,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],F=[0,0],L,Y,B=!0,Z=!0,te=Vo[0];function ne(_e){_e.each(function(){var Se=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ve).on("touchstart.brush",Ve),Le=Se.selectAll(".background").data([0]);Le.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Se.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=Se.selectAll(".resize").data(te,N);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Yr){return"resize "+Yr}).style("cursor",function(Yr){return Ts[Yr]}).append("rect").attr("x",function(Yr){return/[ew]$/.test(Yr)?-3:null}).attr("y",function(Yr){return/^[ns]/.test(Yr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ge.style("display",ne.empty()?"none":null);var Xe=e.transition(Se),Pe=e.transition(Le),br;g&&(br=ir(g),Pe.attr("x",br[0]).attr("width",br[1]-br[0]),ye(Xe)),w&&(br=ir(w),Pe.attr("y",br[0]).attr("height",br[1]-br[0]),Re(Xe)),ge(Xe)})}ne.event=function(_e){_e.each(function(){var Se=v.of(this,arguments),Le={x:S,y:F,i:L,j:Y},Ge=this.__chart__||Le;this.__chart__=Le,zn?e.select(this).transition().each("start.brush",function(){L=Ge.i,Y=Ge.j,S=Ge.x,F=Ge.y,Se({type:"brushstart"})}).tween("brush:brush",function(){var Xe=ys(S,Le.x),Pe=ys(F,Le.y);return L=Y=null,function(br){S=Le.x=Xe(br),F=Le.y=Pe(br),Se({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=Le.i,Y=Le.j,Se({type:"brush",mode:"resize"}),Se({type:"brushend"})}):(Se({type:"brushstart"}),Se({type:"brush",mode:"resize"}),Se({type:"brushend"}))})};function ge(_e){_e.selectAll(".resize").attr("transform",function(Se){return"translate("+S[+/e$/.test(Se)]+","+F[+/^s/.test(Se)]+")"})}function ye(_e){_e.select(".extent").attr("x",S[0]),_e.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function Re(_e){_e.select(".extent").attr("y",F[0]),_e.selectAll(".extent,.e>rect,.w>rect").attr("height",F[1]-F[0])}function Ve(){var _e=this,Se=e.select(e.event.target),Le=v.of(_e,arguments),Ge=e.select(_e),Xe=Se.datum(),Pe=!/^(n|s)$/.test(Xe)&&g,br=!/^(e|w)$/.test(Xe)&&w,Yr=Se.classed("extent"),$r=jr(_e),Xr,tt=e.mouse(_e),at,Tt=e.select(i(_e)).on("keydown.brush",ia).on("keyup.brush",pn);if(e.event.changedTouches?Tt.on("touchmove.brush",ca).on("touchend.brush",kt):Tt.on("mousemove.brush",ca).on("mouseup.brush",kt),Ge.interrupt().selectAll("*").interrupt(),Yr)tt[0]=S[0]-tt[0],tt[1]=F[0]-tt[1];else if(Xe){var it=+/w$/.test(Xe),bt=+/^n/.test(Xe);at=[S[1-it]-tt[0],F[1-bt]-tt[1]],tt[0]=S[it],tt[1]=F[bt]}else e.event.altKey&&(Xr=tt.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Se.style("cursor")),Le({type:"brushstart"}),ca();function ia(){e.event.keyCode==32&&(Yr||(Xr=null,tt[0]-=S[1],tt[1]-=F[1],Yr=2),xe())}function pn(){e.event.keyCode==32&&Yr==2&&(tt[0]+=S[1],tt[1]+=F[1],Yr=0,xe())}function ca(){var Ct=e.mouse(_e),oa=!1;at&&(Ct[0]+=at[0],Ct[1]+=at[1]),Yr||(e.event.altKey?(Xr||(Xr=[(S[0]+S[1])/2,(F[0]+F[1])/2]),tt[0]=S[+(Ct[0]<Xr[0])],tt[1]=F[+(Ct[1]<Xr[1])]):Xr=null),Pe&&Hr(Ct,g,0)&&(ye(Ge),oa=!0),br&&Hr(Ct,w,1)&&(Re(Ge),oa=!0),oa&&(ge(Ge),Le({type:"brush",mode:Yr?"move":"resize"}))}function Hr(Ct,oa,an){var Sn=ir(oa),ri=Sn[0],bi=Sn[1],Hi=tt[an],_i=an?F:S,Qi=_i[1]-_i[0],si,eo;if(Yr&&(ri-=Hi,bi-=Qi+Hi),si=(an?Z:B)?Math.max(ri,Math.min(bi,Ct[an])):Ct[an],Yr?eo=(si+=Hi)+Qi:(Xr&&(Hi=Math.max(ri,Math.min(bi,2*Xr[an]-si))),Hi<si?(eo=si,si=Hi):eo=Hi),_i[0]!=si||_i[1]!=eo)return an?Y=null:L=null,_i[0]=si,_i[1]=eo,!0}function kt(){ca(),Ge.style("pointer-events","all").selectAll(".resize").style("display",ne.empty()?"none":null),e.select("body").style("cursor",null),Tt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),$r(),Le({type:"brushend"})}}return ne.x=function(_e){return arguments.length?(g=_e,te=Vo[!g<<1|!w],ne):g},ne.y=function(_e){return arguments.length?(w=_e,te=Vo[!g<<1|!w],ne):w},ne.clamp=function(_e){return arguments.length?(g&&w?(B=!!_e[0],Z=!!_e[1]):g?B=!!_e:w&&(Z=!!_e),ne):g&&w?[B,Z]:g?B:w?Z:null},ne.extent=function(_e){var Se,Le,Ge,Xe,Pe;return arguments.length?(g&&(Se=_e[0],Le=_e[1],w&&(Se=Se[0],Le=Le[0]),L=[Se,Le],g.invert&&(Se=g(Se),Le=g(Le)),Le<Se&&(Pe=Se,Se=Le,Le=Pe),(Se!=S[0]||Le!=S[1])&&(S=[Se,Le])),w&&(Ge=_e[0],Xe=_e[1],g&&(Ge=Ge[1],Xe=Xe[1]),Y=[Ge,Xe],w.invert&&(Ge=w(Ge),Xe=w(Xe)),Xe<Ge&&(Pe=Ge,Ge=Xe,Xe=Pe),(Ge!=F[0]||Xe!=F[1])&&(F=[Ge,Xe])),ne):(g&&(L?(Se=L[0],Le=L[1]):(Se=S[0],Le=S[1],g.invert&&(Se=g.invert(Se),Le=g.invert(Le)),Le<Se&&(Pe=Se,Se=Le,Le=Pe))),w&&(Y?(Ge=Y[0],Xe=Y[1]):(Ge=F[0],Xe=F[1],w.invert&&(Ge=w.invert(Ge),Xe=w.invert(Xe)),Xe<Ge&&(Pe=Ge,Ge=Xe,Xe=Pe))),g&&w?[[Se,Ge],[Le,Xe]]:g?[Se,Le]:w&&[Ge,Xe])},ne.clear=function(){return ne.empty()||(S=[0,0],F=[0,0],L=Y=null),ne},ne.empty=function(){return!!g&&S[0]==S[1]||!!w&&F[0]==F[1]},e.rebind(ne,v,"on")};var Ts={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Vo=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=jt(function(v){return v.responseText}),e.json=function(v,g){return Or(v,"application/json",Mu,g)};function Mu(v){return JSON.parse(v.responseText)}e.html=function(v,g){return Or(v,"text/html",Ef,g)};function Ef(v){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(v.responseText)}e.xml=jt(function(v){return v.responseXML}),typeof kh=="object"&&kh.exports?kh.exports=e:this.d3=e}).apply(self)});var Dy=oe((Ch,V_)=>{(function(e,r){typeof Ch=="object"&&typeof V_!="undefined"?r(Ch):(e=e||self,r(e.d3=e.d3||{}))})(Ch,function(e){"use strict";var r=new Date,t=new Date;function a(Te,Ue,_r,Pr){function Nr(Ce){return Te(Ce=arguments.length===0?new Date:new Date(+Ce)),Ce}return Nr.floor=function(Ce){return Te(Ce=new Date(+Ce)),Ce},Nr.ceil=function(Ce){return Te(Ce=new Date(Ce-1)),Ue(Ce,1),Te(Ce),Ce},Nr.round=function(Ce){var He=Nr(Ce),cr=Nr.ceil(Ce);return Ce-He<cr-Ce?He:cr},Nr.offset=function(Ce,He){return Ue(Ce=new Date(+Ce),He==null?1:Math.floor(He)),Ce},Nr.range=function(Ce,He,cr){var Mr=[],vr;if(Ce=Nr.ceil(Ce),cr=cr==null?1:Math.floor(cr),!(Ce<He)||!(cr>0))return Mr;do Mr.push(vr=new Date(+Ce)),Ue(Ce,cr),Te(Ce);while(vr<Ce&&Ce<He);return Mr},Nr.filter=function(Ce){return a(function(He){if(He>=He)for(;Te(He),!Ce(He);)He.setTime(He-1)},function(He,cr){if(He>=He)if(cr<0)for(;++cr<=0;)for(;Ue(He,-1),!Ce(He););else for(;--cr>=0;)for(;Ue(He,1),!Ce(He););})},_r&&(Nr.count=function(Ce,He){return r.setTime(+Ce),t.setTime(+He),Te(r),Te(t),Math.floor(_r(r,t))},Nr.every=function(Ce){return Ce=Math.floor(Ce),!isFinite(Ce)||!(Ce>0)?null:Ce>1?Nr.filter(Pr?function(He){return Pr(He)%Ce===0}:function(He){return Nr.count(0,He)%Ce===0}):Nr}),Nr}var n=a(function(){},function(Te,Ue){Te.setTime(+Te+Ue)},function(Te,Ue){return Ue-Te});n.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?a(function(Ue){Ue.setTime(Math.floor(Ue/Te)*Te)},function(Ue,_r){Ue.setTime(+Ue+_r*Te)},function(Ue,_r){return(_r-Ue)/Te}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(Te){Te.setTime(Te-Te.getMilliseconds())},function(Te,Ue){Te.setTime(+Te+Ue*o)},function(Te,Ue){return(Ue-Te)/o},function(Te){return Te.getUTCSeconds()}),d=c.range,h=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o)},function(Te,Ue){Te.setTime(+Te+Ue*l)},function(Te,Ue){return(Ue-Te)/l},function(Te){return Te.getMinutes()}),p=h.range,m=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Ue){Te.setTime(+Te+Ue*s)},function(Te,Ue){return(Ue-Te)/s},function(Te){return Te.getHours()}),b=m.range,y=a(function(Te){Te.setHours(0,0,0,0)},function(Te,Ue){Te.setDate(Te.getDate()+Ue)},function(Te,Ue){return(Ue-Te-(Ue.getTimezoneOffset()-Te.getTimezoneOffset())*l)/u},function(Te){return Te.getDate()-1}),C=y.range;function x(Te){return a(function(Ue){Ue.setDate(Ue.getDate()-(Ue.getDay()+7-Te)%7),Ue.setHours(0,0,0,0)},function(Ue,_r){Ue.setDate(Ue.getDate()+_r*7)},function(Ue,_r){return(_r-Ue-(_r.getTimezoneOffset()-Ue.getTimezoneOffset())*l)/f})}var _=x(0),A=x(1),T=x(2),M=x(3),E=x(4),P=x(5),z=x(6),I=_.range,X=A.range,H=T.range,V=M.range,N=E.range,Q=P.range,ee=z.range,re=a(function(Te){Te.setDate(1),Te.setHours(0,0,0,0)},function(Te,Ue){Te.setMonth(Te.getMonth()+Ue)},function(Te,Ue){return Ue.getMonth()-Te.getMonth()+(Ue.getFullYear()-Te.getFullYear())*12},function(Te){return Te.getMonth()}),ae=re.range,ie=a(function(Te){Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Ue){Te.setFullYear(Te.getFullYear()+Ue)},function(Te,Ue){return Ue.getFullYear()-Te.getFullYear()},function(Te){return Te.getFullYear()});ie.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Ue){Ue.setFullYear(Math.floor(Ue.getFullYear()/Te)*Te),Ue.setMonth(0,1),Ue.setHours(0,0,0,0)},function(Ue,_r){Ue.setFullYear(Ue.getFullYear()+_r*Te)})};var ue=ie.range,xe=a(function(Te){Te.setUTCSeconds(0,0)},function(Te,Ue){Te.setTime(+Te+Ue*l)},function(Te,Ue){return(Ue-Te)/l},function(Te){return Te.getUTCMinutes()}),De=xe.range,Ye=a(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Ue){Te.setTime(+Te+Ue*s)},function(Te,Ue){return(Ue-Te)/s},function(Te){return Te.getUTCHours()}),Ee=Ye.range,ke=a(function(Te){Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCDate(Te.getUTCDate()+Ue)},function(Te,Ue){return(Ue-Te)/u},function(Te){return Te.getUTCDate()-1}),je=ke.range;function W(Te){return a(function(Ue){Ue.setUTCDate(Ue.getUTCDate()-(Ue.getUTCDay()+7-Te)%7),Ue.setUTCHours(0,0,0,0)},function(Ue,_r){Ue.setUTCDate(Ue.getUTCDate()+_r*7)},function(Ue,_r){return(_r-Ue)/f})}var le=W(0),de=W(1),K=W(2),J=W(3),fe=W(4),be=W(5),Ne=W(6),Ze=le.range,er=de.range,Je=K.range,tr=J.range,ze=fe.range,lr=be.range,dr=Ne.range,Ar=a(function(Te){Te.setUTCDate(1),Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCMonth(Te.getUTCMonth()+Ue)},function(Te,Ue){return Ue.getUTCMonth()-Te.getUTCMonth()+(Ue.getUTCFullYear()-Te.getUTCFullYear())*12},function(Te){return Te.getUTCMonth()}),Qe=Ar.range,mr=a(function(Te){Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCFullYear(Te.getUTCFullYear()+Ue)},function(Te,Ue){return Ue.getUTCFullYear()-Te.getUTCFullYear()},function(Te){return Te.getUTCFullYear()});mr.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Ue){Ue.setUTCFullYear(Math.floor(Ue.getUTCFullYear()/Te)*Te),Ue.setUTCMonth(0,1),Ue.setUTCHours(0,0,0,0)},function(Ue,_r){Ue.setUTCFullYear(Ue.getUTCFullYear()+_r*Te)})};var qr=mr.range;e.timeDay=y,e.timeDays=C,e.timeFriday=P,e.timeFridays=Q,e.timeHour=m,e.timeHours=b,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=h,e.timeMinutes=p,e.timeMonday=A,e.timeMondays=X,e.timeMonth=re,e.timeMonths=ae,e.timeSaturday=z,e.timeSaturdays=ee,e.timeSecond=c,e.timeSeconds=d,e.timeSunday=_,e.timeSundays=I,e.timeThursday=E,e.timeThursdays=N,e.timeTuesday=T,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=V,e.timeWeek=_,e.timeWeeks=I,e.timeYear=ie,e.timeYears=ue,e.utcDay=ke,e.utcDays=je,e.utcFriday=be,e.utcFridays=lr,e.utcHour=Ye,e.utcHours=Ee,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=xe,e.utcMinutes=De,e.utcMonday=de,e.utcMondays=er,e.utcMonth=Ar,e.utcMonths=Qe,e.utcSaturday=Ne,e.utcSaturdays=dr,e.utcSecond=c,e.utcSeconds=d,e.utcSunday=le,e.utcSundays=Ze,e.utcThursday=fe,e.utcThursdays=ze,e.utcTuesday=K,e.utcTuesdays=Je,e.utcWednesday=J,e.utcWednesdays=tr,e.utcWeek=le,e.utcWeeks=Ze,e.utcYear=mr,e.utcYears=qr,Object.defineProperty(e,"__esModule",{value:!0})})});var d1=oe((Sh,X_)=>{(function(e,r){typeof Sh=="object"&&typeof X_!="undefined"?r(Sh,Dy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Sh,function(e,r){"use strict";function t(Ae){if(0<=Ae.y&&Ae.y<100){var Be=new Date(-1,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L);return Be.setFullYear(Ae.y),Be}return new Date(Ae.y,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L)}function a(Ae){if(0<=Ae.y&&Ae.y<100){var Be=new Date(Date.UTC(-1,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L));return Be.setUTCFullYear(Ae.y),Be}return new Date(Date.UTC(Ae.y,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L))}function n(Ae,Be,or){return{y:Ae,m:Be,d:or,H:0,M:0,S:0,L:0}}function i(Ae){var Be=Ae.dateTime,or=Ae.date,hr=Ae.time,Dt=Ae.periods,Wt=Ae.days,ba=Ae.shortDays,_a=Ae.months,Xt=Ae.shortMonths,Ht=d(Dt),la=h(Dt),Pt=d(Wt),Ta=h(Wt),pa=d(ba),Xa=h(ba),dn=d(_a),ja=h(_a),Fa=d(Xt),Rr=h(Xt),Vt={a:zo,A:co,b:Ia,B:Yi,c:null,d:re,e:re,f:De,g:be,G:Ze,H:ae,I:ie,j:ue,L:xe,m:Ye,M:Ee,p:gl,q:Vi,Q:jr,s:et,S:ke,u:je,U:W,V:de,w:K,W:J,x:null,X:null,y:fe,Y:Ne,Z:er,"%":Er},Et={a:Ri,A:ls,b:ss,B:Ks,c:null,d:Je,e:Je,f:Ar,g:cr,G:vr,H:tr,I:ze,j:lr,L:dr,m:Qe,M:mr,p:us,q:Qs,Q:jr,s:et,S:qr,u:Te,U:Ue,V:Pr,w:Nr,W:Ce,x:null,X:null,y:He,Y:Mr,Z:kr,"%":Er},Zt={a:Na,A:Jn,b:Pi,B:Kn,c:Ba,d:E,e:E,f:V,g:_,G:x,H:z,I:z,j:P,L:H,m:M,M:I,p:$t,q:T,Q,s:ee,S:X,u:m,U:b,V:y,w:p,W:C,x:ml,X:Qa,y:_,Y:x,Z:A,"%":N};Vt.x=ma(or,Vt),Vt.X=ma(hr,Vt),Vt.c=ma(Be,Vt),Et.x=ma(or,Et),Et.X=ma(hr,Et),Et.c=ma(Be,Et);function ma(ot,st){return function(jt){var Or=[],Mn=-1,sa=0,Wa=ot.length,en,Vn,yl;for(jt instanceof Date||(jt=new Date(+jt));++Mn<Wa;)ot.charCodeAt(Mn)===37&&(Or.push(ot.slice(sa,Mn)),(Vn=o[en=ot.charAt(++Mn)])!=null?en=ot.charAt(++Mn):Vn=en==="e"?" ":"0",(yl=st[en])&&(en=yl(jt,Vn)),Or.push(en),sa=Mn+1);return Or.push(ot.slice(sa,Mn)),Or.join("")}}function Ea(ot,st){return function(jt){var Or=n(1900,void 0,1),Mn=Rt(Or,ot,jt+="",0),sa,Wa;if(Mn!=jt.length)return null;if("Q"in Or)return new Date(Or.Q);if("s"in Or)return new Date(Or.s*1e3+("L"in Or?Or.L:0));if(st&&!("Z"in Or)&&(Or.Z=0),"p"in Or&&(Or.H=Or.H%12+Or.p*12),Or.m===void 0&&(Or.m="q"in Or?Or.q:0),"V"in Or){if(Or.V<1||Or.V>53)return null;"w"in Or||(Or.w=1),"Z"in Or?(sa=a(n(Or.y,0,1)),Wa=sa.getUTCDay(),sa=Wa>4||Wa===0?r.utcMonday.ceil(sa):r.utcMonday(sa),sa=r.utcDay.offset(sa,(Or.V-1)*7),Or.y=sa.getUTCFullYear(),Or.m=sa.getUTCMonth(),Or.d=sa.getUTCDate()+(Or.w+6)%7):(sa=t(n(Or.y,0,1)),Wa=sa.getDay(),sa=Wa>4||Wa===0?r.timeMonday.ceil(sa):r.timeMonday(sa),sa=r.timeDay.offset(sa,(Or.V-1)*7),Or.y=sa.getFullYear(),Or.m=sa.getMonth(),Or.d=sa.getDate()+(Or.w+6)%7)}else("W"in Or||"U"in Or)&&("w"in Or||(Or.w="u"in Or?Or.u%7:"W"in Or?1:0),Wa="Z"in Or?a(n(Or.y,0,1)).getUTCDay():t(n(Or.y,0,1)).getDay(),Or.m=0,Or.d="W"in Or?(Or.w+6)%7+Or.W*7-(Wa+5)%7:Or.w+Or.U*7-(Wa+6)%7);return"Z"in Or?(Or.H+=Or.Z/100|0,Or.M+=Or.Z%100,a(Or)):t(Or)}}function Rt(ot,st,jt,Or){for(var Mn=0,sa=st.length,Wa=jt.length,en,Vn;Mn<sa;){if(Or>=Wa)return-1;if(en=st.charCodeAt(Mn++),en===37){if(en=st.charAt(Mn++),Vn=Zt[en in o?st.charAt(Mn++):en],!Vn||(Or=Vn(ot,jt,Or))<0)return-1}else if(en!=jt.charCodeAt(Or++))return-1}return Or}function $t(ot,st,jt){var Or=Ht.exec(st.slice(jt));return Or?(ot.p=la[Or[0].toLowerCase()],jt+Or[0].length):-1}function Na(ot,st,jt){var Or=pa.exec(st.slice(jt));return Or?(ot.w=Xa[Or[0].toLowerCase()],jt+Or[0].length):-1}function Jn(ot,st,jt){var Or=Pt.exec(st.slice(jt));return Or?(ot.w=Ta[Or[0].toLowerCase()],jt+Or[0].length):-1}function Pi(ot,st,jt){var Or=Fa.exec(st.slice(jt));return Or?(ot.m=Rr[Or[0].toLowerCase()],jt+Or[0].length):-1}function Kn(ot,st,jt){var Or=dn.exec(st.slice(jt));return Or?(ot.m=ja[Or[0].toLowerCase()],jt+Or[0].length):-1}function Ba(ot,st,jt){return Rt(ot,Be,st,jt)}function ml(ot,st,jt){return Rt(ot,or,st,jt)}function Qa(ot,st,jt){return Rt(ot,hr,st,jt)}function zo(ot){return ba[ot.getDay()]}function co(ot){return Wt[ot.getDay()]}function Ia(ot){return Xt[ot.getMonth()]}function Yi(ot){return _a[ot.getMonth()]}function gl(ot){return Dt[+(ot.getHours()>=12)]}function Vi(ot){return 1+~~(ot.getMonth()/3)}function Ri(ot){return ba[ot.getUTCDay()]}function ls(ot){return Wt[ot.getUTCDay()]}function ss(ot){return Xt[ot.getUTCMonth()]}function Ks(ot){return _a[ot.getUTCMonth()]}function us(ot){return Dt[+(ot.getUTCHours()>=12)]}function Qs(ot){return 1+~~(ot.getUTCMonth()/3)}return{format:function(ot){var st=ma(ot+="",Vt);return st.toString=function(){return ot},st},parse:function(ot){var st=Ea(ot+="",!1);return st.toString=function(){return ot},st},utcFormat:function(ot){var st=ma(ot+="",Et);return st.toString=function(){return ot},st},utcParse:function(ot){var st=Ea(ot+="",!0);return st.toString=function(){return ot},st}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(Ae,Be,or){var hr=Ae<0?"-":"",Dt=(hr?-Ae:Ae)+"",Wt=Dt.length;return hr+(Wt<or?new Array(or-Wt+1).join(Be)+Dt:Dt)}function c(Ae){return Ae.replace(u,"\\$&")}function d(Ae){return new RegExp("^(?:"+Ae.map(c).join("|")+")","i")}function h(Ae){for(var Be={},or=-1,hr=Ae.length;++or<hr;)Be[Ae[or].toLowerCase()]=or;return Be}function p(Ae,Be,or){var hr=l.exec(Be.slice(or,or+1));return hr?(Ae.w=+hr[0],or+hr[0].length):-1}function m(Ae,Be,or){var hr=l.exec(Be.slice(or,or+1));return hr?(Ae.u=+hr[0],or+hr[0].length):-1}function b(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.U=+hr[0],or+hr[0].length):-1}function y(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.V=+hr[0],or+hr[0].length):-1}function C(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.W=+hr[0],or+hr[0].length):-1}function x(Ae,Be,or){var hr=l.exec(Be.slice(or,or+4));return hr?(Ae.y=+hr[0],or+hr[0].length):-1}function _(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.y=+hr[0]+(+hr[0]>68?1900:2e3),or+hr[0].length):-1}function A(Ae,Be,or){var hr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Be.slice(or,or+6));return hr?(Ae.Z=hr[1]?0:-(hr[2]+(hr[3]||"00")),or+hr[0].length):-1}function T(Ae,Be,or){var hr=l.exec(Be.slice(or,or+1));return hr?(Ae.q=hr[0]*3-3,or+hr[0].length):-1}function M(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.m=hr[0]-1,or+hr[0].length):-1}function E(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.d=+hr[0],or+hr[0].length):-1}function P(Ae,Be,or){var hr=l.exec(Be.slice(or,or+3));return hr?(Ae.m=0,Ae.d=+hr[0],or+hr[0].length):-1}function z(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.H=+hr[0],or+hr[0].length):-1}function I(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.M=+hr[0],or+hr[0].length):-1}function X(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.S=+hr[0],or+hr[0].length):-1}function H(Ae,Be,or){var hr=l.exec(Be.slice(or,or+3));return hr?(Ae.L=+hr[0],or+hr[0].length):-1}function V(Ae,Be,or){var hr=l.exec(Be.slice(or,or+6));return hr?(Ae.L=Math.floor(hr[0]/1e3),or+hr[0].length):-1}function N(Ae,Be,or){var hr=s.exec(Be.slice(or,or+1));return hr?or+hr[0].length:-1}function Q(Ae,Be,or){var hr=l.exec(Be.slice(or));return hr?(Ae.Q=+hr[0],or+hr[0].length):-1}function ee(Ae,Be,or){var hr=l.exec(Be.slice(or));return hr?(Ae.s=+hr[0],or+hr[0].length):-1}function re(Ae,Be){return f(Ae.getDate(),Be,2)}function ae(Ae,Be){return f(Ae.getHours(),Be,2)}function ie(Ae,Be){return f(Ae.getHours()%12||12,Be,2)}function ue(Ae,Be){return f(1+r.timeDay.count(r.timeYear(Ae),Ae),Be,3)}function xe(Ae,Be){return f(Ae.getMilliseconds(),Be,3)}function De(Ae,Be){return xe(Ae,Be)+"000"}function Ye(Ae,Be){return f(Ae.getMonth()+1,Be,2)}function Ee(Ae,Be){return f(Ae.getMinutes(),Be,2)}function ke(Ae,Be){return f(Ae.getSeconds(),Be,2)}function je(Ae){var Be=Ae.getDay();return Be===0?7:Be}function W(Ae,Be){return f(r.timeSunday.count(r.timeYear(Ae)-1,Ae),Be,2)}function le(Ae){var Be=Ae.getDay();return Be>=4||Be===0?r.timeThursday(Ae):r.timeThursday.ceil(Ae)}function de(Ae,Be){return Ae=le(Ae),f(r.timeThursday.count(r.timeYear(Ae),Ae)+(r.timeYear(Ae).getDay()===4),Be,2)}function K(Ae){return Ae.getDay()}function J(Ae,Be){return f(r.timeMonday.count(r.timeYear(Ae)-1,Ae),Be,2)}function fe(Ae,Be){return f(Ae.getFullYear()%100,Be,2)}function be(Ae,Be){return Ae=le(Ae),f(Ae.getFullYear()%100,Be,2)}function Ne(Ae,Be){return f(Ae.getFullYear()%1e4,Be,4)}function Ze(Ae,Be){var or=Ae.getDay();return Ae=or>=4||or===0?r.timeThursday(Ae):r.timeThursday.ceil(Ae),f(Ae.getFullYear()%1e4,Be,4)}function er(Ae){var Be=Ae.getTimezoneOffset();return(Be>0?"-":(Be*=-1,"+"))+f(Be/60|0,"0",2)+f(Be%60,"0",2)}function Je(Ae,Be){return f(Ae.getUTCDate(),Be,2)}function tr(Ae,Be){return f(Ae.getUTCHours(),Be,2)}function ze(Ae,Be){return f(Ae.getUTCHours()%12||12,Be,2)}function lr(Ae,Be){return f(1+r.utcDay.count(r.utcYear(Ae),Ae),Be,3)}function dr(Ae,Be){return f(Ae.getUTCMilliseconds(),Be,3)}function Ar(Ae,Be){return dr(Ae,Be)+"000"}function Qe(Ae,Be){return f(Ae.getUTCMonth()+1,Be,2)}function mr(Ae,Be){return f(Ae.getUTCMinutes(),Be,2)}function qr(Ae,Be){return f(Ae.getUTCSeconds(),Be,2)}function Te(Ae){var Be=Ae.getUTCDay();return Be===0?7:Be}function Ue(Ae,Be){return f(r.utcSunday.count(r.utcYear(Ae)-1,Ae),Be,2)}function _r(Ae){var Be=Ae.getUTCDay();return Be>=4||Be===0?r.utcThursday(Ae):r.utcThursday.ceil(Ae)}function Pr(Ae,Be){return Ae=_r(Ae),f(r.utcThursday.count(r.utcYear(Ae),Ae)+(r.utcYear(Ae).getUTCDay()===4),Be,2)}function Nr(Ae){return Ae.getUTCDay()}function Ce(Ae,Be){return f(r.utcMonday.count(r.utcYear(Ae)-1,Ae),Be,2)}function He(Ae,Be){return f(Ae.getUTCFullYear()%100,Be,2)}function cr(Ae,Be){return Ae=_r(Ae),f(Ae.getUTCFullYear()%100,Be,2)}function Mr(Ae,Be){return f(Ae.getUTCFullYear()%1e4,Be,4)}function vr(Ae,Be){var or=Ae.getUTCDay();return Ae=or>=4||or===0?r.utcThursday(Ae):r.utcThursday.ceil(Ae),f(Ae.getUTCFullYear()%1e4,Be,4)}function kr(){return"+0000"}function Er(){return"%"}function jr(Ae){return+Ae}function et(Ae){return Math.floor(+Ae/1e3)}var nr;Cr({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 Cr(Ae){return nr=i(Ae),e.timeFormat=nr.format,e.timeParse=nr.parse,e.utcFormat=nr.utcFormat,e.utcParse=nr.utcParse,nr}var ar="%Y-%m-%dT%H:%M:%S.%LZ";function Fr(Ae){return Ae.toISOString()}var Wr=Date.prototype.toISOString?Fr:e.utcFormat(ar);function Br(Ae){var Be=new Date(Ae);return isNaN(Be)?null:Be}var Zr=+new Date("2000-01-01T00:00:00.000Z")?Br:e.utcParse(ar);e.isoFormat=Wr,e.isoParse=Zr,e.timeFormatDefaultLocale=Cr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Fy=oe((Dh,j_)=>{(function(e,r){typeof Dh=="object"&&typeof j_!="undefined"?r(Dh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Dh,(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,E){if((P=(M=E?M.toExponential(E-1):M.toExponential()).indexOf("e"))<0)return null;var P,z=M.slice(0,P);return[z.length>1?z[0]+z.slice(2):z,+M.slice(P+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,E){return function(P,z){for(var I=P.length,X=[],H=0,V=M[0],N=0;I>0&&V>0&&(N+V+1>z&&(V=Math.max(1,z-N)),X.push(P.substring(I-=V,I+V)),!((N+=V+1)>z));)V=M[H=(H+1)%M.length];return X.reverse().join(E)}}function i(M){return function(E){return E.replace(/[0-9]/g,function(P){return M[+P]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(E=o.exec(M)))throw new Error("invalid format: "+M);var E;return new s({fill:E[1],align:E[2],sign:E[3],symbol:E[4],zero:E[5],width:E[6],comma:E[7],precision:E[8]&&E[8].slice(1),trim:E[9],type:E[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 E=M.length,P=1,z=-1,I;P<E;++P)switch(M[P]){case".":z=I=P;break;case"0":z===0&&(z=P),I=P;break;default:if(!+M[P])break e;z>0&&(z=0);break}return z>0?M.slice(0,z)+M.slice(I+1):M}var f;function c(M,E){var P=t(M,E);if(!P)return M+"";var z=P[0],I=P[1],X=I-(f=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,H=z.length;return X===H?z:X>H?z+new Array(X-H+1).join("0"):X>0?z.slice(0,X)+"."+z.slice(X):"0."+new Array(1-X).join("0")+t(M,Math.max(0,E+X-1))[0]}function d(M,E){var P=t(M,E);if(!P)return M+"";var z=P[0],I=P[1];return I<0?"0."+new Array(-I).join("0")+z:z.length>I+1?z.slice(0,I+1)+"."+z.slice(I+1):z+new Array(I-z.length+2).join("0")}var h={"%":function(M,E){return(M*100).toFixed(E)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,E){return M.toExponential(E)},f:function(M,E){return M.toFixed(E)},g:function(M,E){return M.toPrecision(E)},o:function(M){return Math.round(M).toString(8)},p:function(M,E){return d(M*100,E)},r:d,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,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function y(M){var E=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),P=M.currency===void 0?"":M.currency[0]+"",z=M.currency===void 0?"":M.currency[1]+"",I=M.decimal===void 0?".":M.decimal+"",X=M.numerals===void 0?p:i(m.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",V=M.minus===void 0?"-":M.minus+"",N=M.nan===void 0?"NaN":M.nan+"";function Q(re){re=l(re);var ae=re.fill,ie=re.align,ue=re.sign,xe=re.symbol,De=re.zero,Ye=re.width,Ee=re.comma,ke=re.precision,je=re.trim,W=re.type;W==="n"?(Ee=!0,W="g"):h[W]||(ke===void 0&&(ke=12),je=!0,W="g"),(De||ae==="0"&&ie==="=")&&(De=!0,ae="0",ie="=");var le=xe==="$"?P:xe==="#"&&/[boxX]/.test(W)?"0"+W.toLowerCase():"",de=xe==="$"?z:/[%p]/.test(W)?H:"",K=h[W],J=/[defgprs%]/.test(W);ke=ke===void 0?6:/[gprs]/.test(W)?Math.max(1,Math.min(21,ke)):Math.max(0,Math.min(20,ke));function fe(be){var Ne=le,Ze=de,er,Je,tr;if(W==="c")Ze=K(be)+Ze,be="";else{be=+be;var ze=be<0||1/be<0;if(be=isNaN(be)?N:K(Math.abs(be),ke),je&&(be=u(be)),ze&&+be==0&&ue!=="+"&&(ze=!1),Ne=(ze?ue==="("?ue:V:ue==="-"||ue==="("?"":ue)+Ne,Ze=(W==="s"?b[8+f/3]:"")+Ze+(ze&&ue==="("?")":""),J){for(er=-1,Je=be.length;++er<Je;)if(tr=be.charCodeAt(er),48>tr||tr>57){Ze=(tr===46?I+be.slice(er+1):be.slice(er))+Ze,be=be.slice(0,er);break}}}Ee&&!De&&(be=E(be,1/0));var lr=Ne.length+be.length+Ze.length,dr=lr<Ye?new Array(Ye-lr+1).join(ae):"";switch(Ee&&De&&(be=E(dr+be,dr.length?Ye-Ze.length:1/0),dr=""),ie){case"<":be=Ne+be+Ze+dr;break;case"=":be=Ne+dr+be+Ze;break;case"^":be=dr.slice(0,lr=dr.length>>1)+Ne+be+Ze+dr.slice(lr);break;default:be=dr+Ne+be+Ze;break}return X(be)}return fe.toString=function(){return re+""},fe}function ee(re,ae){var ie=Q((re=l(re),re.type="f",re)),ue=Math.max(-8,Math.min(8,Math.floor(a(ae)/3)))*3,xe=Math.pow(10,-ue),De=b[8+ue/3];return function(Ye){return ie(xe*Ye)+De}}return{format:Q,formatPrefix:ee}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(M){return C=y(M),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function _(M){return Math.max(0,-a(Math.abs(M)))}function A(M,E){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(E)/3)))*3-a(Math.abs(M)))}function T(M,E){return M=Math.abs(M),E=Math.abs(E)-M,Math.max(0,a(E)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=y,e.formatSpecifier=l,e.precisionFixed=_,e.precisionPrefix=A,e.precisionRound=T,Object.defineProperty(e,"__esModule",{value:!0})}))});var Z_=oe((v4e,W_)=>{"use strict";W_.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 Qt=oe((d4e,$_)=>{"use strict";var GY=Z_();$_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&GY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var nn={};Ua(nn,{ALMOST_EQUAL:()=>sV,BADNUM:()=>Ey,EPOCHJD:()=>lV,FP_SAFE:()=>YY,LOG_CLIP:()=>uV,MINUS_SIGN:()=>fV,ONEAVGMONTH:()=>KY,ONEAVGQUARTER:()=>ZY,ONEAVGYEAR:()=>XY,ONEDAY:()=>rV,ONEHOUR:()=>tV,ONEMAXMONTH:()=>JY,ONEMAXQUARTER:()=>WY,ONEMAXYEAR:()=>VY,ONEMICROSEC:()=>oV,ONEMILLI:()=>iV,ONEMIN:()=>aV,ONEMINMONTH:()=>QY,ONEMINQUARTER:()=>$Y,ONEMINYEAR:()=>jY,ONESEC:()=>nV,ONEWEEK:()=>eV});var Ey,YY,VY,XY,jY,WY,ZY,$Y,JY,KY,QY,eV,rV,tV,aV,nV,iV,oV,lV,sV,uV,fV,Za=Oa(()=>{"use strict";Ey=void 0,YY=Number.MAX_VALUE*1e-4,VY=316224e5,XY=315576e5,jY=31536e6,WY=79488e5,ZY=78894e5,$Y=76896e5,JY=26784e5,KY=26298e5,QY=24192e5,eV=6048e5,rV=864e5,tV=36e5,aV=6e4,nV=1e3,iV=1,oV=.001,lV=24405875e-1,sV=1-1e-6,uV=10,fV="\u2212"});var Ly=oe((Fh,J_)=>{(function(e,r){typeof Fh=="object"&&typeof J_!="undefined"?r(Fh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Fh,(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,d,h,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),b=new Uint8Array(m);for(u=0;u<s;u+=4)c=t[o.charCodeAt(u)],d=t[o.charCodeAt(u+1)],h=t[o.charCodeAt(u+2)],p=t[o.charCodeAt(u+3)],b[f++]=c<<2|d>>4,b[f++]=(d&15)<<4|h>>2,b[f++]=(h&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var d0=oe((h4e,K_)=>{"use strict";K_.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 ro=oe(Nl=>{"use strict";var cV=Ly().decode,vV=d0(),qy=Array.isArray,dV=ArrayBuffer,hV=DataView;function Q_(e){return dV.isView(e)&&!(e instanceof hV)}Nl.isTypedArray=Q_;function Eh(e){return qy(e)||Q_(e)}Nl.isArrayOrTypedArray=Eh;function pV(e){return!Eh(e[0])}Nl.isArray1D=pV;Nl.ensureArray=function(e,r){return qy(e)||(e=[]),e.length=r,e};var jn={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};jn.uint8c=jn.u1c;jn.uint8=jn.u1;jn.int8=jn.i1;jn.uint16=jn.u2;jn.int16=jn.i2;jn.uint32=jn.u4;jn.int32=jn.i4;jn.float32=jn.f4;jn.float64=jn.f8;function Py(e){return e.constructor===ArrayBuffer}Nl.isArrayBuffer=Py;Nl.decodeTypedArraySpec=function(e){var r=[],t=mV(e),a=t.dtype,n=jn[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;Py(o)||(o=cV(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],d=i*c,h=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,h,c),h+=d;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,h,c),h+=d}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};Nl.isTypedArraySpec=function(e){return vV(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||Py(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function mV(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Nl.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),qy(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};Nl.maxRowLength=function(e){return ex(e,Math.max,0)};Nl.minRowLength=function(e){return ex(e,Math.min,1/0)};function ex(e,r,t){if(Eh(e))if(Eh(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 Q2=oe((m4e,ix)=>{"use strict";var rx=Qt(),zy=ro().isArrayOrTypedArray;ix.exports=function(r,t){if(rx(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"?_V(r,t,a):{set:ax(r,a,t),get:tx(r,a),astr:t,parts:a,obj:r}};function tx(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]=tx(a[s],r.slice(l+1))(t),o[s]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof n=="number"&&!zy(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 gV=/(^|\.)args\[/;function Ry(e,r){return e===void 0||e===null&&!r.match(gV)}function ax(e,r,t){return function(a){var n=e,i="",o=[[e,i]],l=Ry(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!zy(n))throw"array index but container is not an array";if(s===-1){if(l=!bV(n,r.slice(u+1),a,t),l)break;return}if(!nx(n,s,r[u+1],l))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=yV(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 yV(e,r){var t=r;return rx(r)?t="["+r+"]":e&&(t="."+r),e+t}function bV(e,r,t,a){var n=zy(t),i=!0,o=t,l=a.replace("-1",0),s=n?!1:Ry(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=Ry(o,l)),s&&(i=!1),nx(e,f,u,s)&&ax(e[f],r,a.replace("-1",f))(o);return i}function nx(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function _V(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var ux=oe((g4e,sx)=>{"use strict";var h1=Q2(),xV=/^\w*$/,wV=0,ox=1,Lh=2,lx=3,Pf=4;sx.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=h1(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=xV.test(n),c={set:function(d,h){var p=h===null?Pf:wV;if(!o){if(!l||p===Pf)return;o=[],l.set(o)}var m=u[d];if(m===void 0){if(p===Pf)return;p=p|lx,m=o.length,u[d]=m}else h!==(f?o[m][n]:h1(o[m],n).get())&&(p=p|Lh);var b=o[m]=o[m]||{};return b[a]=d,f?b[n]=h:h1(b,n).set(h),h!==null&&(p=p&~Pf),s[m]=s[m]|p,c},get:function(d){if(o){var h=u[d];if(h!==void 0)return f?o[h][n]:h1(o[h],n).get()}},rename:function(d,h){var p=u[d];return p===void 0||(s[p]=s[p]|ox,u[h]=p,delete u[d],o[p][a]=h),c},remove:function(d){var h=u[d];if(h===void 0)return c;var p=o[h];if(Object.keys(p).length>2)return s[h]=s[h]|Lh,c.set(d,null);if(f){for(i=h;i<o.length;i++)s[i]=s[i]|lx;for(i=h;i<o.length;i++)u[o[i][a]]--;o.splice(h,1),delete u[d]}else h1(p,n).set(null),s[h]=s[h]|Lh|Pf;return c},constructUpdate:function(){for(var d,h,p={},m=Object.keys(s),b=0;b<m.length;b++)h=m[b],d=t+"["+h+"]",o[h]?(s[h]&ox&&(p[d+"."+a]=o[h][a]),s[h]&Lh&&(f?p[d+"."+n]=s[h]&Pf?null:o[h][n]:p[d+"."+n]=s[h]&Pf?null:h1(o[h],n).get())):p[d]=null;return p}};return c}});var cx=oe((y4e,fx)=>{"use strict";var AV=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,MV=/^[^\.\[\]]+$/;fx.exports=function(e,r){for(;r;){var t=e.match(AV);if(t)e=t[1];else if(e.match(MV))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 qh=oe((b4e,vx)=>{"use strict";var TV=Qt();vx.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 TV(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var px=oe((_4e,hx)=>{"use strict";var dx=ro().isArrayOrTypedArray,ev=d0();hx.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(dx(n)&&dx(i)&&ev(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]&&ev(n[l])&&ev(i[l])&&e(i[l],n[l])}else ev(n)&&ev(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var p1={};Ua(p1,{mod:()=>kV,modHalf:()=>CV});function kV(e,r){let t=e%r;return t<0?t+r:t}function CV(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var m1=Oa(()=>{"use strict"});var Dn=oe(av=>{"use strict";var mx=d0(),rv=Array.isArray;function SV(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}av.extendFlat=function(...e){return tv(e,!1,!1,!1)};av.extendDeep=function(...e){return tv(e,!0,!1,!1)};av.extendDeepAll=function(...e){return tv(e,!0,!0,!1)};av.extendDeepNoArrays=function(...e){return tv(e,!0,!1,!0)};function tv(e,r,t,a){var n=e[0],i=e.length,o,l,s,u,f,c,d;if(i===2&&rv(n)&&rv(e[1])&&n.length===0){if(d=SV(e[1],n),d)return n;n.splice(0,n.length)}for(var h=1;h<i;h++){o=e[h];for(l in o)s=Object.prototype.hasOwnProperty.call(n,l)?n[l]:void 0,u=o[l],a&&rv(u)?n[l]=u:r&&u&&(mx(u)||(f=rv(u)))?(f?(f=!1,c=s&&rv(s)?s:[]):c=s&&mx(s)?s:{},n[l]=tv([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[l]=u)}return n}});var xi=oe((w4e,gx)=>{"use strict";gx.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 nv={};Ua(nv,{HOVERARROWSIZE:()=>FV,HOVERFONT:()=>qV,HOVERFONTSIZE:()=>LV,HOVERID:()=>RV,HOVERMINTIME:()=>PV,HOVERTEXTPAD:()=>EV,YANGLE:()=>DV});var DV,FV,EV,LV,qV,PV,RV,iv=Oa(()=>{"use strict";DV=60,FV=6,EV=3,LV=13,qV="Arial, sans-serif",PV=50,RV="-hover"});var g1=oe((A4e,_x)=>{"use strict";var yx=(iv(),xr(nv)),bx=xi(),Ny=bx({editType:"none"});Ny.family.dflt=yx.HOVERFONT;Ny.size.dflt=yx.HOVERFONTSIZE;_x.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:Ny,grouptitlefont:bx({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 Ph=oe((M4e,xx)=>{"use strict";var zV=xi(),ov=g1().hoverlabel,lv=Dn().extendFlat;xx.exports={hoverlabel:{bgcolor:lv({},ov.bgcolor,{arrayOk:!0}),bordercolor:lv({},ov.bordercolor,{arrayOk:!0}),font:zV({arrayOk:!0,editType:"none"}),align:lv({},ov.align,{arrayOk:!0}),namelength:lv({},ov.namelength,{arrayOk:!0}),showarrow:lv({},ov.showarrow),editType:"none"}}});var Wo=oe((T4e,wx)=>{"use strict";var NV=xi(),BV=Ph();wx.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:NV({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:BV.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var hA=oe((L4e,dA)=>{var D4=Object.defineProperty,IV=Object.getOwnPropertyDescriptor,HV=Object.getOwnPropertyNames,OV=Object.prototype.hasOwnProperty,UV=(e,r)=>{for(var t in r)D4(e,t,{get:r[t],enumerable:!0})},GV=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of HV(r))!OV.call(e,n)&&n!==t&&D4(e,n,{get:()=>r[n],enumerable:!(a=IV(r,n))||a.enumerable});return e},YV=e=>GV(D4({},"__esModule",{value:!0}),e),Lx={};UV(Lx,{a98:()=>RZ,average:()=>HX,averageAngle:()=>Ds,averageNumber:()=>Zx,blend:()=>IW,blerp:()=>u4,clampChroma:()=>iZ,clampGamut:()=>t5,clampRgb:()=>nZ,colorsNamed:()=>Px,convertA98ToXyz65:()=>f4,convertCubehelixToRgb:()=>jx,convertDlchToLab65:()=>Gh,convertHsiToRgb:()=>aw,convertHslToRgb:()=>ow,convertHsvToRgb:()=>R4,convertHwbToRgb:()=>fw,convertItpToXyz65:()=>v4,convertJabToJch:()=>h4,convertJabToRgb:()=>O4,convertJabToXyz65:()=>I4,convertJchToJab:()=>p4,convertLab65ToDlch:()=>Yh,convertLab65ToRgb:()=>pv,convertLab65ToXyz65:()=>L4,convertLabToLch:()=>Tu,convertLabToRgb:()=>G4,convertLabToXyz50:()=>ep,convertLchToLab:()=>ku,convertLchuvToLuv:()=>X4,convertLrgbToOklab:()=>j4,convertLrgbToRgb:()=>Of,convertLuvToLchuv:()=>V4,convertLuvToXyz50:()=>Xh,convertOkhslToOklab:()=>y4,convertOkhsvToOklab:()=>_4,convertOklabToLrgb:()=>T1,convertOklabToOkhsl:()=>g4,convertOklabToOkhsv:()=>b4,convertOklabToRgb:()=>yv,convertP3ToXyz65:()=>x4,convertProphotoToXyz50:()=>M4,convertRec2020ToXyz65:()=>k4,convertRgbToCubehelix:()=>Xx,convertRgbToHsi:()=>nw,convertRgbToHsl:()=>lw,convertRgbToHsv:()=>z4,convertRgbToHwb:()=>cw,convertRgbToJab:()=>H4,convertRgbToLab:()=>Y4,convertRgbToLab65:()=>mv,convertRgbToLrgb:()=>Hf,convertRgbToOklab:()=>gv,convertRgbToXyb:()=>Iw,convertRgbToXyz50:()=>M1,convertRgbToXyz65:()=>h0,convertRgbToYiq:()=>Xw,convertXybToRgb:()=>Hw,convertXyz50ToLab:()=>rp,convertXyz50ToLuv:()=>Vh,convertXyz50ToProphoto:()=>A4,convertXyz50ToRgb:()=>A1,convertXyz50ToXyz65:()=>Yw,convertXyz65ToA98:()=>c4,convertXyz65ToItp:()=>d4,convertXyz65ToJab:()=>B4,convertXyz65ToLab65:()=>q4,convertXyz65ToP3:()=>w4,convertXyz65ToRec2020:()=>T4,convertXyz65ToRgb:()=>p0,convertXyz65ToXyz50:()=>Gw,convertYiqToRgb:()=>jw,converter:()=>La,cubehelix:()=>zZ,differenceCie76:()=>qX,differenceCie94:()=>PX,differenceCiede2000:()=>RX,differenceCmc:()=>zX,differenceEuclidean:()=>w1,differenceHueChroma:()=>hv,differenceHueNaive:()=>Wx,differenceHueSaturation:()=>dv,differenceHyab:()=>NX,differenceItp:()=>IX,differenceKotsarenkoRamos:()=>BX,displayable:()=>r5,dlab:()=>NZ,dlch:()=>BZ,easingGamma:()=>sA,easingInOutSine:()=>qZ,easingMidpoint:()=>rA,easingSmootherstep:()=>EZ,easingSmoothstep:()=>SZ,easingSmoothstepInverse:()=>DZ,filterBrightness:()=>hZ,filterContrast:()=>pZ,filterDeficiencyDeuter:()=>kZ,filterDeficiencyProt:()=>TZ,filterDeficiencyTrit:()=>CZ,filterGrayscale:()=>yZ,filterHueRotate:()=>_Z,filterInvert:()=>bZ,filterSaturate:()=>gZ,filterSepia:()=>mZ,fixupAlpha:()=>Bn,fixupHueDecreasing:()=>SX,fixupHueIncreasing:()=>CX,fixupHueLonger:()=>kX,fixupHueShorter:()=>Ss,formatCss:()=>LW,formatHex:()=>qW,formatHex8:()=>PW,formatHsl:()=>zW,formatRgb:()=>RW,getMode:()=>wi,hsi:()=>IZ,hsl:()=>HZ,hsv:()=>OZ,hwb:()=>UZ,inGamut:()=>np,interpolate:()=>WW,interpolateWith:()=>aA,interpolateWithPremultipliedAlpha:()=>ZW,interpolatorLinear:()=>nt,interpolatorPiecewise:()=>Yx,interpolatorSplineBasis:()=>iA,interpolatorSplineBasisClosed:()=>oA,interpolatorSplineMonotone:()=>KW,interpolatorSplineMonotone2:()=>QW,interpolatorSplineMonotoneClosed:()=>eZ,interpolatorSplineNatural:()=>$W,interpolatorSplineNaturalClosed:()=>JW,itp:()=>GZ,jab:()=>YZ,jch:()=>VZ,lab:()=>XZ,lab65:()=>jZ,lch:()=>WZ,lch65:()=>ZZ,lchuv:()=>$Z,lerp:()=>zf,lrgb:()=>JZ,luv:()=>KZ,mapAlphaDivide:()=>eA,mapAlphaMultiply:()=>Qw,mapTransferGamma:()=>YW,mapTransferLinear:()=>K4,mapper:()=>bv,modeA98:()=>Vx,modeCubehelix:()=>$x,modeDlab:()=>rw,modeDlch:()=>tw,modeHsi:()=>iw,modeHsl:()=>P4,modeHsv:()=>N4,modeHwb:()=>dw,modeItp:()=>mw,modeJab:()=>gw,modeJch:()=>yw,modeLab:()=>tp,modeLab65:()=>_w,modeLch:()=>ap,modeLch65:()=>ww,modeLchuv:()=>Tw,modeLrgb:()=>kw,modeLuv:()=>Cw,modeOkhsl:()=>Dw,modeOkhsv:()=>Fw,modeOklab:()=>Lw,modeOklch:()=>Pw,modeP3:()=>Rw,modeProphoto:()=>zw,modeRec2020:()=>Nw,modeRgb:()=>If,modeXyb:()=>Ow,modeXyz50:()=>Uw,modeXyz65:()=>Vw,modeYiq:()=>Ww,nearest:()=>sZ,okhsl:()=>QZ,okhsv:()=>e$,oklab:()=>r$,oklch:()=>t$,p3:()=>a$,parse:()=>Ox,parseHex:()=>zx,parseHsl:()=>uw,parseHslLegacy:()=>sw,parseHwb:()=>vw,parseLab:()=>bw,parseLch:()=>xw,parseNamed:()=>Rx,parseOklab:()=>Ew,parseOklch:()=>qw,parseRgb:()=>Ux,parseRgbLegacy:()=>Nx,parseTransparent:()=>Gx,prophoto:()=>n$,random:()=>GW,rec2020:()=>i$,removeParser:()=>nX,rgb:()=>o$,round:()=>Zw,samples:()=>aZ,serializeHex:()=>J4,serializeHex8:()=>$w,serializeHsl:()=>Kw,serializeRgb:()=>Jw,toGamut:()=>oZ,trilerp:()=>pX,unlerp:()=>hX,useMode:()=>Aa,useParser:()=>Ix,wcagContrast:()=>PZ,wcagLuminance:()=>S4,xyb:()=>l$,xyz50:()=>s$,xyz65:()=>u$,yiq:()=>f$});dA.exports=YV(Lx);var VV=(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}}},qx=VV,XV={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},Px=XV,jV=e=>qx(Px[e.toLowerCase()],6),Rx=jV,WV=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,ZV=e=>{let r;return(r=e.match(WV))?qx(parseInt(r[1],16),r[1].length):void 0},zx=ZV,to="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",k4e=`(?:${to}|none)`,fv=`${to}%`,C4e=`(?:${to}%|none)`,F4=`(?:${to}%|${to})`,$V=`(?:${to}%|${to}|none)`,JV=`(?:${to}(deg|grad|rad|turn)|${to})`,S4e=`(?:${to}(deg|grad|rad|turn)|${to}|none)`,_1="\\s*,\\s*",D4e=new RegExp("^"+$V+"$"),KV=new RegExp(`^rgba?\\(\\s*${to}${_1}${to}${_1}${to}\\s*(?:,\\s*${F4}\\s*)?\\)$`),QV=new RegExp(`^rgba?\\(\\s*${fv}${_1}${fv}${_1}${fv}\\s*(?:,\\s*${F4}\\s*)?\\)$`),eX=e=>{let r={mode:"rgb"},t;if(t=e.match(KV))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(QV))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},Nx=eX,rX=(e,r)=>e===void 0?void 0:typeof e!="object"?Ox(e):e.mode!==void 0?e:r?Ha(ga({},e),{mode:r}):void 0,Bl=rX,tX=(e="rgb")=>r=>(r=Bl(r,e))!==void 0?r.mode===e?r:Cs[r.mode][e]?Cs[r.mode][e](r):e==="rgb"?Cs[r.mode].rgb(r):Cs.rgb[e](Cs[r.mode].rgb(r)):void 0,La=tX,Cs={},Bx={},x1=[],E4={},aX=e=>e,Aa=e=>(Cs[e.mode]=ga(ga({},Cs[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Cs[r]||(Cs[r]={}),Cs[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=aX)}),Bx[e.mode]=e,(e.parse||[]).forEach(r=>{Ix(r,e.mode)}),La(e.mode)),wi=e=>Bx[e],Ix=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");E4[e]=r}else typeof e=="function"&&x1.indexOf(e)<0&&x1.push(e)},nX=e=>{if(typeof e=="string")delete E4[e];else if(typeof e=="function"){let r=x1.indexOf(e);r>0&&x1.splice(r,1)}},l4=/[^\x00-\x7F]|[a-zA-Z_]/,iX=/[^\x00-\x7F]|[-\w]/,Jr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Ft=0;function Rh(e){let r=e[Ft],t=e[Ft+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Ft+2]):r==="."?/\d/.test(t):/\d/.test(r)}function s4(e){if(Ft>=e.length)return!1;let r=e[Ft];if(l4.test(r))return!0;if(r==="-"){if(e.length-Ft<2)return!1;let t=e[Ft+1];return!!(t==="-"||l4.test(t))}return!1}var oX={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function sv(e){let r="";if((e[Ft]==="-"||e[Ft]==="+")&&(r+=e[Ft++]),r+=zh(e),e[Ft]==="."&&/\d/.test(e[Ft+1])&&(r+=e[Ft++]+zh(e)),(e[Ft]==="e"||e[Ft]==="E")&&((e[Ft+1]==="-"||e[Ft+1]==="+")&&/\d/.test(e[Ft+2])?r+=e[Ft++]+e[Ft++]+zh(e):/\d/.test(e[Ft+1])&&(r+=e[Ft++]+zh(e))),s4(e)){let t=Ih(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:Jr.Hue,value:r*oX[t]}:void 0}return e[Ft]==="%"?(Ft++,{type:Jr.Percentage,value:+r}):{type:Jr.Number,value:+r}}function zh(e){let r="";for(;/\d/.test(e[Ft]);)r+=e[Ft++];return r}function Ih(e){let r="";for(;Ft<e.length&&iX.test(e[Ft]);)r+=e[Ft++];return r}function lX(e){let r=Ih(e);return e[Ft]==="("?(Ft++,{type:Jr.Function,value:r}):r==="none"?{type:Jr.None,value:void 0}:{type:Jr.Ident,value:r}}function sX(e=""){let r=e.trim(),t=[],a;for(Ft=0;Ft<r.length;){if(a=r[Ft++],a===`
`||a==="	"||a===" "){for(;Ft<r.length&&(r[Ft]===`
`||r[Ft]==="	"||r[Ft]===" ");)Ft++;continue}if(a===",")return;if(a===")"){t.push({type:Jr.ParenClose});continue}if(a==="+"){if(Ft--,Rh(r)){t.push(sv(r));continue}return}if(a==="-"){if(Ft--,Rh(r)){t.push(sv(r));continue}if(s4(r)){t.push({type:Jr.Ident,value:Ih(r)});continue}return}if(a==="."){if(Ft--,Rh(r)){t.push(sv(r));continue}return}if(a==="/"){for(;Ft<r.length&&(r[Ft]===`
`||r[Ft]==="	"||r[Ft]===" ");)Ft++;let n;if(Rh(r)&&(n=sv(r),n.type!==Jr.Hue)){t.push({type:Jr.Alpha,value:n});continue}if(s4(r)&&Ih(r)==="none"){t.push({type:Jr.Alpha,value:{type:Jr.None,value:void 0}});continue}return}if(/\d/.test(a)){Ft--,t.push(sv(r));continue}if(l4.test(a)){Ft--,t.push(lX(r));continue}return}return t}function uX(e){e._i=0;let r=e[e._i++];if(!r||r.type!==Jr.Function||r.value!=="color"||(r=e[e._i++],r.type!==Jr.Ident))return;let t=E4[r.value];if(!t)return;let a={mode:t},n=Hx(e,!1);if(!n)return;let i=wi(t).channels;for(let o=0,l,s;o<i.length;o++)l=n[o],s=i[o],l.type!==Jr.None&&(a[s]=l.type===Jr.Number?l.value:l.value/100,s==="alpha"&&(a[s]=Math.max(0,Math.min(1,a[s]))));return a}function Hx(e,r){let t=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===Jr.None||a.type===Jr.Number||a.type===Jr.Alpha||a.type===Jr.Percentage||r&&a.type===Jr.Hue){t.push(a);continue}if(a.type===Jr.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==Jr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:Jr.None,value:void 0}),t.every(n=>n.type!==Jr.Alpha)?t:void 0}}function fX(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==Jr.Function)return;let a=Hx(e,r);if(a)return a.unshift(t.value),a}var cX=e=>{if(typeof e!="string")return;let r=sX(e),t=r?fX(r,!0):void 0,a,n=0,i=x1.length;for(;n<i;)if((a=x1[n++](e,t))!==void 0)return a;return r?uX(r):void 0},Ox=cX;function vX(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,a,n,i,o]=r;if(!(a.type===Jr.Hue||n.type===Jr.Hue||i.type===Jr.Hue))return a.type!==Jr.None&&(t.r=a.type===Jr.Number?a.value/255:a.value/100),n.type!==Jr.None&&(t.g=n.type===Jr.Number?n.value/255:n.value/100),i.type!==Jr.None&&(t.b=i.type===Jr.Number?i.value/255:i.value/100),o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var Ux=vX,dX=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Gx=dX,zf=(e,r,t)=>e+t*(r-e),hX=(e,r,t)=>(t-e)/(r-e),u4=(e,r,t,a,n,i)=>zf(zf(e,r,n),zf(t,a,n),i),pX=(e,r,t,a,n,i,o,l,s,u,f)=>zf(u4(e,r,t,a,s,u),u4(n,i,o,l,s,u),f),mX=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},Yx=e=>r=>{let t=mX(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)}},nt=Yx(zf),Bn=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},gX={mode:"rgb",channels:["r","g","b","alpha"],parse:[Ux,zx,Nx,Rx,Gx,"srgb"],serialize:"srgb",interpolate:{r:nt,g:nt,b:nt,alpha:{use:nt,fixup:Bn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},If=gX,By=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),yX=e=>{let r=By(e.r),t=By(e.g),a=By(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},f4=yX,Iy=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),bX=({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:Iy(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:Iy(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:Iy(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},c4=bX,Hy=(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)},_X=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:Hy(e),g:Hy(r),b:Hy(t)};return a!==void 0&&(n.alpha=a),n},Hf=_X,xX=e=>{let{r,g:t,b:a,alpha:n}=Hf(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},h0=xX,Oy=(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},wX=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:Oy(e),g:Oy(r),b:Oy(t)};return a!==void 0&&(i.alpha=a),i},Of=wX,AX=({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=Of({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},p0=AX,MX=Ha(ga({},If),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>c4(h0(e)),xyz65:c4},toMode:{rgb:e=>p0(f4(e)),xyz65:f4}}),Vx=MX,TX=e=>(e=e%360)<0?e+360:e,ui=TX,Wh=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=ui(t);return a===0||e[a-1]===void 0?i:r(i-ui(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),[]),Ss=e=>Wh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),kX=e=>Wh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),CX=e=>Wh(e,r=>r>=0?r:r+360),SX=e=>Wh(e,r=>r<=0?r:r-360),ai=[-.14861,1.78277,-.29227,-.90649,1.97294,0],DX=Math.PI/180,FX=180/Math.PI,Ax=ai[3]*ai[4],Mx=ai[1]*ai[4],Tx=ai[1]*ai[2]-ai[0]*ai[3],EX=({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=(Tx*t+e*Ax-r*Mx)/(Tx+Ax-Mx),i=t-n,o=(ai[4]*(r-n)-ai[2]*i)/ai[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(ai[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*FX-120),a!==void 0&&(l.alpha=a),l},Xx=EX,LX=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*DX,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*(ai[0]*o+ai[1]*l),n.g=t+i*(ai[2]*o+ai[3]*l),n.b=t+i*(ai[4]*o+ai[5]*l),a!==void 0&&(n.alpha=a),n},jx=LX,dv=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=ui(e.h),a=ui(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},Wx=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=ui(e.h),a=ui(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},hv=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=ui(e.h),a=ui(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},w1=(e="rgb",r=[1,1,1,0])=>{let t=wi(e),a=t.channels,n=t.difference,i=La(e);return(o,l)=>{let s=i(o),u=i(l);return Math.sqrt(a.reduce((f,c,d)=>{let h=n[c]?n[c](s,u):s[c]-u[c];return f+(r[d]||0)*Math.pow(isNaN(h)?0:h,2)},0))}},qX=()=>w1("lab65"),PX=(e=1,r=.045,t=.015)=>{let a=La("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),d=l.l,h=l.a,p=l.b,m=Math.sqrt(h*h+p*p),b=Math.pow(s-d,2),y=Math.pow(c-m,2),C=Math.pow(u-h,2)+Math.pow(f-p,2)-y;return Math.sqrt(b/Math.pow(e,2)+y/Math.pow(1+r*c,2)+C/Math.pow(1+t*c,2))}},RX=(e=1,r=1,t=1)=>{let a=La("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),d=l.l,h=l.a,p=l.b,m=Math.sqrt(h*h+p*p),b=(c+m)/2,y=.5*(1-Math.sqrt(Math.pow(b,7)/(Math.pow(b,7)+Math.pow(25,7)))),C=u*(1+y),x=h*(1+y),_=Math.sqrt(C*C+f*f),A=Math.sqrt(x*x+p*p),T=Math.abs(C)+Math.abs(f)===0?0:Math.atan2(f,C);T+=(T<0)*2*Math.PI;let M=Math.abs(x)+Math.abs(p)===0?0:Math.atan2(p,x);M+=(M<0)*2*Math.PI;let E=d-s,P=A-_,z=_*A===0?0:M-T;z-=(z>Math.PI)*2*Math.PI,z+=(z<-Math.PI)*2*Math.PI;let I=2*Math.sqrt(_*A)*Math.sin(z/2),X=(s+d)/2,H=(_+A)/2,V;_*A===0?V=T+M:(V=(T+M)/2,V-=(Math.abs(T-M)>Math.PI)*Math.PI,V+=(V<0)*2*Math.PI);let N=Math.pow(X-50,2),Q=1-.17*Math.cos(V-Math.PI/6)+.24*Math.cos(2*V)+.32*Math.cos(3*V+Math.PI/30)-.2*Math.cos(4*V-63*Math.PI/180),ee=1+.015*N/Math.sqrt(20+N),re=1+.045*H,ae=1+.015*H*Q,ie=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*V-275)/25,2)),ue=2*Math.sqrt(Math.pow(H,7)/(Math.pow(H,7)+Math.pow(25,7))),xe=-1*Math.sin(2*ie)*ue;return Math.sqrt(Math.pow(E/(e*ee),2)+Math.pow(P/(r*re),2)+Math.pow(I/(t*ae),2)+xe*P/(r*re)*I/(t*ae))}},zX=(e=1,r=1)=>{let t=La("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),d=c.l,h=c.a,p=c.b,m=Math.sqrt(h*h+p*p),b=Math.pow(o-d,2),y=Math.pow(u-m,2),C=Math.pow(l-h,2)+Math.pow(s-p,2)-y,x=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),_=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)),A=o<16?.511:.040975*o/(1+.01765*o),T=.0638*u/(1+.0131*u)+.638,M=T*(x*_+1-x);return Math.sqrt(b/Math.pow(e*A,2)+y/Math.pow(r*T,2)+C/Math.pow(M,2))}},NX=()=>{let e=La("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)}},BX=()=>w1("yiq",[.5053,.299,.1957]),IX=()=>w1("itp",[518400,129600,518400]),Ds=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},Zx=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},Uy=e=>typeof e=="function";function HX(e,r="rgb",t){let a=wi(r),n=e.map(La(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;Uy(t)?s=t:t&&Uy(t[o])?s=t[o]:a.average&&Uy(a.average[o])?s=a.average[o]:s=Zx,i[o]=s(l,o)}return i},{mode:r})}var OX={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Xx},toMode:{rgb:jx},interpolate:{h:{use:nt,fixup:Ss},s:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:dv},average:{h:Ds}},$x=OX,UX=({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=ui(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},Tu=UX,GX=({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},ku=GX,Jx=Math.pow(29,3)/Math.pow(3,3),Kx=Math.pow(6,3)/Math.pow(29,3),Nn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},b1={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},F4e=Math.pow(29,3)/Math.pow(3,3),E4e=Math.pow(6,3)/Math.pow(29,3),Gy=e=>Math.pow(e,3)>Kx?Math.pow(e,3):(116*e-16)/Jx,YX=({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:Gy(i)*b1.X,y:Gy(n)*b1.Y,z:Gy(o)*b1.Z};return a!==void 0&&(l.alpha=a),l},L4=YX,VX=e=>p0(L4(e)),pv=VX,Yy=e=>e>Kx?Math.cbrt(e):(Jx*e+16)/116,XX=({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=Yy(e/b1.X),i=Yy(r/b1.Y),o=Yy(t/b1.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},q4=XX,jX=e=>{let r=q4(h0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},mv=jX,Hh=1,Qx=1,vv=26/180*Math.PI,Oh=Math.cos(vv),Uh=Math.sin(vv),ew=100/Math.log(139/100),WX=({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*Hh/ew)-1)/.0039},i=(Math.exp(.0435*r*Qx*Hh)-1)/.075,o=i*Math.cos(t/180*Math.PI-vv),l=i*Math.sin(t/180*Math.PI-vv);return n.a=o*Oh-l/.83*Uh,n.b=o*Uh+l/.83*Oh,a!==void 0&&(n.alpha=a),n},Gh=WX,ZX=({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*Oh+t*Uh,i=.83*(t*Oh-r*Uh),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:ew/Hh*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*Qx*Hh)};return l.c&&(l.h=ui((Math.atan2(i,n)+vv)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Yh=ZX,kx=e=>Gh(Tu(e,"dlch")),Cx=e=>ku(Yh(e),"dlab"),$X={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:kx,rgb:e=>pv(kx(e))},fromMode:{lab65:Cx,rgb:e=>Cx(mv(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:nt,a:nt,b:nt,alpha:{use:nt,fixup:Bn}}},rw=$X,JX={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Gh,dlab:e=>ku(e,"dlab"),rgb:e=>pv(Gh(e))},fromMode:{lab65:Yh,dlab:e=>Tu(e,"dlch"),rgb:e=>Yh(mv(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:nt,c:nt,h:{use:nt,fixup:Ss},alpha:{use:nt,fixup:Bn}},difference:{h:hv},average:{h:Ds}},tw=JX;function aw({h:e,s:r,i:t,alpha:a}){e=ui(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 nw({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 KX={mode:"hsi",toMode:{rgb:aw},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:nw},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:nt,fixup:Ss},s:nt,i:nt,alpha:{use:nt,fixup:Bn}},difference:{h:dv},average:{h:Ds}},iw=KX;function ow({h:e,s:r,l:t,alpha:a}){e=ui(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 lw({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 QX=(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}},ej=QX,rj=new RegExp(`^hsla?\\(\\s*${JV}${_1}${fv}${_1}${fv}\\s*(?:,\\s*${F4}\\s*)?\\)$`),tj=e=>{let r=e.match(rj);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=ej(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},sw=tj;function aj(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Percentage)return;t.h=a.value}if(n.type!==Jr.None){if(n.type===Jr.Hue)return;t.s=n.value/100}if(i.type!==Jr.None){if(i.type===Jr.Hue)return;t.l=i.value/100}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var uw=aj,nj={mode:"hsl",toMode:{rgb:ow},fromMode:{rgb:lw},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[uw,sw],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:nt,fixup:Ss},s:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:dv},average:{h:Ds}},P4=nj;function R4({h:e,s:r,v:t,alpha:a}){e=ui(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 z4({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 ij={mode:"hsv",toMode:{rgb:R4},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:z4},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:nt,fixup:Ss},s:nt,v:nt,alpha:{use:nt,fixup:Bn}},difference:{h:dv},average:{h:Ds}},N4=ij;function fw({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 R4({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function cw(e){let r=z4(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 oj(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Percentage)return;t.h=a.value}if(n.type!==Jr.None){if(n.type===Jr.Hue)return;t.w=n.value/100}if(i.type!==Jr.None){if(i.type===Jr.Hue)return;t.b=i.value/100}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var vw=oj,lj={mode:"hwb",toMode:{rgb:fw},fromMode:{rgb:cw},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[vw],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:nt,fixup:Ss},w:nt,b:nt,alpha:{use:nt,fixup:Bn}},difference:{h:Wx},average:{h:Ds}},dw=lj,hw=203,Zh=.1593017578125,pw=78.84375,$h=.8359375,Jh=18.8515625,Kh=18.6875;function Vy(e){if(e<0)return 0;let r=Math.pow(e,1/pw);return 1e4*Math.pow(Math.max(0,r-$h)/(Jh-Kh*r),1/Zh)}function Xy(e){if(e<0)return 0;let r=Math.pow(e/1e4,Zh);return Math.pow(($h+Jh*r)/(1+Kh*r),pw)}var jy=e=>Math.max(e/hw,0),sj=({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=Vy(e+.008609037037932761*r+.11102962500302593*t),i=Vy(e-.00860903703793275*r-.11102962500302599*t),o=Vy(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:jy(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:jy(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:jy(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},v4=sj,Wy=(e=0)=>Math.max(e*hw,0),uj=({x:e,y:r,z:t,alpha:a})=>{let n=Wy(e),i=Wy(r),o=Wy(t),l=Xy(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=Xy(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=Xy(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*s,c=1.61376953125*l-3.323486328125*s+1.709716796875*u,d=4.378173828125*l-4.24560546875*s-.132568359375*u,h={mode:"itp",i:f,t:c,p:d};return a!==void 0&&(h.alpha=a),h},d4=uj,fj={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:v4,rgb:e=>p0(v4(e))},fromMode:{xyz65:d4,rgb:e=>d4(h0(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:nt,t:nt,p:nt,alpha:{use:nt,fixup:Bn}}},mw=fj,cj=134.03437499999998,vj=16295499532821565e-27,Zy=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Zh);return Math.pow(($h+Jh*r)/(1+Kh*r),cj)},$y=(e=0)=>Math.max(e*203,0),dj=({x:e,y:r,z:t,alpha:a})=>{e=$y(e),r=$y(r),t=$y(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=Zy(.41478972*n+.579999*i+.014648*t),l=Zy(-.20151*n+1.120649*i+.0531008*t),s=Zy(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-vj,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},B4=dj,hj=134.03437499999998,Sx=16295499532821565e-27,Jy=e=>{if(e<0)return 0;let r=Math.pow(e,1/hj);return 1e4*Math.pow(($h-r)/(Kh*r-Jh),1/Zh)},Ky=e=>e/203,pj=({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+Sx)/(.44+.56*(e+Sx)),i=Jy(n+.13860504*r+.058047316*t),o=Jy(n-.13860504*r-.058047316*t),l=Jy(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:Ky(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:Ky(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:Ky(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},I4=pj,mj=e=>{let r=B4(h0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},H4=mj,gj=e=>p0(I4(e)),O4=gj,yj={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:H4,xyz65:B4},toMode:{rgb:O4,xyz65:I4},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:nt,a:nt,b:nt,alpha:{use:nt,fixup:Bn}}},gw=yj,bj=({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=ui(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},h4=bj,_j=({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},p4=_j,xj={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:p4,rgb:e=>O4(p4(e))},fromMode:{rgb:e=>h4(H4(e)),jab:h4},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:nt,fixup:Ss},c:nt,j:nt,alpha:{use:nt,fixup:Bn}},difference:{h:hv},average:{h:Ds}},yw=xj,Qh=Math.pow(29,3)/Math.pow(3,3),U4=Math.pow(6,3)/Math.pow(29,3),Qy=e=>Math.pow(e,3)>U4?Math.pow(e,3):(116*e-16)/Qh,wj=({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:Qy(i)*Nn.X,y:Qy(n)*Nn.Y,z:Qy(o)*Nn.Z};return a!==void 0&&(l.alpha=a),l},ep=wj,Aj=({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=Of({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},A1=Aj,Mj=e=>A1(ep(e)),G4=Mj,Tj=e=>{let{r,g:t,b:a,alpha:n}=Hf(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},M1=Tj,e4=e=>e>U4?Math.cbrt(e):(Qh*e+16)/116,kj=({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=e4(e/Nn.X),i=e4(r/Nn.Y),o=e4(t/Nn.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},rp=kj,Cj=e=>{let r=rp(M1(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Y4=Cj;function Sj(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===Jr.Hue||n.type===Jr.Hue||i.type===Jr.Hue))return a.type!==Jr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==Jr.None&&(t.a=n.type===Jr.Number?n.value:n.value*125/100),i.type!==Jr.None&&(t.b=i.type===Jr.Number?i.value:i.value*125/100),o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var bw=Sj,Dj={mode:"lab",toMode:{xyz50:ep,rgb:G4},fromMode:{xyz50:rp,rgb:Y4},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[bw],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:nt,a:nt,b:nt,alpha:{use:nt,fixup:Bn}}},tp=Dj,Fj=Ha(ga({},tp),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:L4,rgb:pv},fromMode:{xyz65:q4,rgb:mv},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),_w=Fj;function Ej(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==Jr.None&&(t.c=Math.max(0,n.type===Jr.Number?n.value:n.value*150/100)),i.type!==Jr.None){if(i.type===Jr.Percentage)return;t.h=i.value}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var xw=Ej,Lj={mode:"lch",toMode:{lab:ku,rgb:e=>G4(ku(e))},fromMode:{rgb:e=>Tu(Y4(e)),lab:Tu},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[xw],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:nt,fixup:Ss},c:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:hv},average:{h:Ds}},ap=Lj,qj=Ha(ga({},ap),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ku(e,"lab65"),rgb:e=>pv(ku(e,"lab65"))},fromMode:{rgb:e=>Tu(mv(e),"lch65"),lab65:e=>Tu(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),ww=qj,Pj=({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=ui(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},V4=Pj,Rj=({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},X4=Rj,Aw=(e,r,t)=>4*e/(e+15*r+3*t),Mw=(e,r,t)=>9*r/(e+15*r+3*t),zj=Aw(Nn.X,Nn.Y,Nn.Z),Nj=Mw(Nn.X,Nn.Y,Nn.Z),Bj=e=>e<=U4?Qh*e:116*Math.cbrt(e)-16,Ij=({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=Bj(r/Nn.Y),i=Aw(e,r,t),o=Mw(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-zj),o=13*n*(o-Nj));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},Vh=Ij,Hj=(e,r,t)=>4*e/(e+15*r+3*t),Oj=(e,r,t)=>9*r/(e+15*r+3*t),Uj=Hj(Nn.X,Nn.Y,Nn.Z),Gj=Oj(Nn.X,Nn.Y,Nn.Z),Yj=({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)+Uj,i=t/(13*e)+Gj,o=Nn.Y*(e<=8?e/Qh: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},Xh=Yj,Vj=e=>V4(Vh(M1(e))),Xj=e=>A1(Xh(X4(e))),jj={mode:"lchuv",toMode:{luv:X4,rgb:Xj},fromMode:{rgb:Vj,luv:V4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:nt,fixup:Ss},c:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:hv},average:{h:Ds}},Tw=jj,Wj=Ha(ga({},If),{mode:"lrgb",toMode:{rgb:Of},fromMode:{rgb:Hf},parse:["srgb-linear"],serialize:"srgb-linear"}),kw=Wj,Zj={mode:"luv",toMode:{xyz50:Xh,rgb:e=>A1(Xh(e))},fromMode:{xyz50:Vh,rgb:e=>Vh(M1(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:nt,u:nt,v:nt,alpha:{use:nt,fixup:Bn}}},Cw=Zj,$j=({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},j4=$j,Jj=e=>{let r=j4(Hf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},gv=Jj,Kj=({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},T1=Kj,Qj=e=>Of(T1(e)),yv=Qj;function m4(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function jh(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function eW(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,d=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let p=1+f*c,m=1+f*d,b=1+f*h,y=p*p*p,C=m*m*m,x=b*b*b,_=3*c*p*p,A=3*d*m*m,T=3*h*b*b,M=6*c*c*p,E=6*d*d*m,P=6*h*h*b,z=l*y+s*C+u*x,I=l*_+s*A+u*T,X=l*M+s*E+u*P;f=f-z*I/(I*I-.5*z*X)}return f}function W4(e,r){let t=eW(e,r),a=T1({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 rW(e,r,t,a,n,i=null){i||(i=W4(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,d=l+s*u,h=l+s*f,p=l+s*c;{let m=n*(1-o)+o*t,b=o*a,y=m+b*u,C=m+b*f,x=m+b*c,_=y*y*y,A=C*C*C,T=x*x*x,M=3*d*y*y,E=3*h*C*C,P=3*p*x*x,z=6*d*d*y,I=6*h*h*C,X=6*p*p*x,H=4.0767416621*_-3.3077115913*A+.2309699292*T-1,V=4.0767416621*M-3.3077115913*E+.2309699292*P,N=4.0767416621*z-3.3077115913*I+.2309699292*X,Q=V/(V*V-.5*H*N),ee=-H*Q,re=-1.2684380046*_+2.6097574011*A-.3413193965*T-1,ae=-1.2684380046*M+2.6097574011*E-.3413193965*P,ie=-1.2684380046*z+2.6097574011*I-.3413193965*X,ue=ae/(ae*ae-.5*re*ie),xe=-re*ue,De=-.0041960863*_-.7034186147*A+1.707614701*T-1,Ye=-.0041960863*M-.7034186147*E+1.707614701*P,Ee=-.0041960863*z-.7034186147*I+1.707614701*X,ke=Ye/(Ye*Ye-.5*De*Ee),je=-De*ke;ee=Q>=0?ee:1e6,xe=ue>=0?xe:1e6,je=ke>=0?je:1e6,o+=Math.min(ee,Math.min(xe,je))}}}return o}function Z4(e,r,t=null){t||(t=W4(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function Sw(e,r,t){let a=W4(r,t),n=rW(r,t,e,1,e,a),i=Z4(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 g4(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:m4(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]=Sw(r,t/i,a/i),u;if(i<l){let f=0,c=.8*o,d=1-c/l;u=(i-f)/(c+d*(i-f))*.8}else{let f=l,c=.2*l*l*1.25*1.25/o,d=1-c/(s-l);u=.8+.2*((i-f)/(c+d*(i-f)))}return u&&(n.s=u,n.h=ui(Math.atan2(a,t)*180/Math.PI)),n}function y4(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:jh(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]=Sw(n.l,i,o),f,c,d,h;t<.8?(f=1.25*t,c=0,d=.8*l,h=1-d/s):(f=5*(t-.8),c=s,d=.2*s*s*1.25*1.25/l,h=1-d/(u-s));let p=c+f*d/(1-h*f);return n.a=p*i,n.b=p*o,n}var tW=Ha(ga({},P4),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:g4,rgb:e=>g4(gv(e))},toMode:{oklab:y4,rgb:e=>yv(y4(e))}}),Dw=tW;function b4(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]=Z4(i,o),u=.5,f=1-u/l,c=s/(n+r*s),d=c*r,h=c*n,p=jh(d),m=h*p/d,b=T1({l:p,a:i*m,b:o*m}),y=Math.cbrt(1/Math.max(b.r,b.g,b.b,0));r=r/y,n=n/y*m4(r)/r,r=m4(r);let C={mode:"okhsv",s:n?(u+s)*h/(s*u+s*f*h):0,v:r?r/d:0};return C.s&&(C.h=ui(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(C.alpha=e.alpha),C}function _4(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]=Z4(i,o),u=.5,f=1-u/l,c=1-a*u/(u+s-s*f*a),d=a*s*u/(u+s-s*f*a),h=jh(c),p=d*h/c,m=T1({l:h,a:i*p,b:o*p}),b=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),y=jh(n*c),C=d*y/c;return r.l=y*b,r.a=C*i*b,r.b=C*o*b,r}var aW=Ha(ga({},N4),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:b4,rgb:e=>b4(gv(e))},toMode:{oklab:_4,rgb:e=>yv(_4(e))}}),Fw=aW;function nW(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===Jr.Hue||n.type===Jr.Hue||i.type===Jr.Hue))return a.type!==Jr.None&&(t.l=Math.min(Math.max(0,a.type===Jr.Number?a.value:a.value/100),1)),n.type!==Jr.None&&(t.a=n.type===Jr.Number?n.value:n.value*.4/100),i.type!==Jr.None&&(t.b=i.type===Jr.Number?i.value:i.value*.4/100),o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var Ew=nW,iW=Ha(ga({},tp),{mode:"oklab",toMode:{lrgb:T1,rgb:yv},fromMode:{lrgb:j4,rgb:gv},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Ew],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}`:""})`}),Lw=iW;function oW(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Hue)return;t.l=Math.min(Math.max(0,a.type===Jr.Number?a.value:a.value/100),1)}if(n.type!==Jr.None&&(t.c=Math.max(0,n.type===Jr.Number?n.value:n.value*.4/100)),i.type!==Jr.None){if(i.type===Jr.Percentage)return;t.h=i.value}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var qw=oW,lW=Ha(ga({},ap),{mode:"oklch",toMode:{oklab:e=>ku(e,"oklab"),rgb:e=>yv(ku(e,"oklab"))},fromMode:{rgb:e=>Tu(gv(e),"oklch"),oklab:e=>Tu(e,"oklch")},parse:[qw],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]}}),Pw=lW,sW=e=>{let{r,g:t,b:a,alpha:n}=Hf(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},x4=sW,uW=({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=Of({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},w4=uW,fW=Ha(ga({},If),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>w4(h0(e)),xyz65:w4},toMode:{rgb:e=>p0(x4(e)),xyz65:x4}}),Rw=fW,r4=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},cW=({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:r4(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:r4(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:r4(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},A4=cW,t4=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},vW=e=>{let r=t4(e.r),t=t4(e.g),a=t4(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},M4=vW,dW=Ha(ga({},If),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:A4,rgb:e=>A4(M1(e))},toMode:{xyz50:M4,rgb:e=>A1(M4(e))}}),zw=dW,Dx=1.09929682680944,hW=.018053968510807,a4=e=>{let r=Math.abs(e);return r>hW?(Math.sign(e)||1)*(Dx*Math.pow(r,.45)-(Dx-1)):4.5*e},pW=({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:a4(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:a4(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:a4(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},T4=pW,Fx=1.09929682680944,mW=.018053968510807,n4=(e=0)=>{let r=Math.abs(e);return r<mW*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+Fx-1)/Fx,1/.45)},gW=e=>{let r=n4(e.r),t=n4(e.g),a=n4(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},k4=gW,yW=Ha(ga({},If),{mode:"rec2020",fromMode:{xyz65:T4,rgb:e=>T4(h0(e))},toMode:{xyz65:k4,rgb:e=>p0(k4(e))},parse:["rec2020"],serialize:"rec2020"}),Nw=yW,Nf=.0037930732552754493,Bw=Math.cbrt(Nf),i4=e=>Math.cbrt(e)-Bw,bW=e=>{let{r,g:t,b:a,alpha:n}=Hf(e),i=i4(.3*r+.622*t+.078*a+Nf),o=i4(.23*r+.692*t+.078*a+Nf),l=i4(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Nf),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},Iw=bW,o4=e=>Math.pow(e+Bw,3),_W=({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=o4(e+r)-Nf,i=o4(r-e)-Nf,o=o4(t+r)-Nf,l=Of({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},Hw=_W,xW={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Hw},fromMode:{rgb:Iw},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:nt,y:nt,b:nt,alpha:{use:nt,fixup:Bn}}},Ow=xW,wW={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:A1,lab:rp},fromMode:{rgb:M1,lab:ep},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:nt,y:nt,z:nt,alpha:{use:nt,fixup:Bn}}},Uw=wW,AW=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},Gw=AW,MW=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},Yw=MW,TW={mode:"xyz65",toMode:{rgb:p0,xyz50:Gw},fromMode:{rgb:h0,xyz50:Yw},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:nt,y:nt,z:nt,alpha:{use:nt,fixup:Bn}}},Vw=TW,kW=({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},Xw=kW,CW=({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},jw=CW,SW={mode:"yiq",toMode:{rgb:jw},fromMode:{rgb:Xw},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:nt,i:nt,q:nt,alpha:{use:nt,fixup:Bn}}},Ww=SW,DW=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,FW=(e=4)=>r=>typeof r=="number"?DW(r,e):r,Zw=FW,uv=Zw(2),cv=e=>Math.max(0,Math.min(1,e||0)),Bf=e=>Math.round(cv(e)*255),$4=La("rgb"),EW=La("hsl"),J4=e=>{if(e===void 0)return;let r=Bf(e.r),t=Bf(e.g),a=Bf(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},$w=e=>{if(e===void 0)return;let r=Bf(e.alpha!==void 0?e.alpha:1);return J4(e)+(256|r).toString(16).slice(1)},Jw=e=>{if(e===void 0)return;let r=Bf(e.r),t=Bf(e.g),a=Bf(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${uv(cv(e.alpha))})`},Kw=e=>{if(e===void 0)return;let r=uv(e.h||0),t=uv(cv(e.s)*100)+"%",a=uv(cv(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${uv(cv(e.alpha))})`},LW=e=>{let r=Bl(e);if(!r)return;let t=wi(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)},qW=e=>J4($4(e)),PW=e=>$w($4(e)),RW=e=>Jw($4(e)),zW=e=>Kw(EW(e)),NW={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},BW=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:NW[r],n=La(t),i=wi(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})})},IW=BW,HW=([e,r])=>e+Math.random()*(r-e),OW=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),UW=(e="rgb",r={})=>{let t=wi(e),a=OW(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=HW(a[i]||t.ranges[i])),n),{mode:e})},GW=UW,bv=(e,r="rgb",t=!1)=>{let a=r?wi(r).channels:null,n=r?La(r):Bl;return i=>{let o=n(i);if(!o)return;let l=(a||wi(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=Bl(i);return s&&s.mode!==l.mode?La(s.mode)(l):l}},Qw=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,eA=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,K4=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,YW=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,VW=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},XW=VW,jW=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),rA=jW,Nh=e=>typeof e=="function",Rf=e=>e&&typeof e=="object",Ex=e=>typeof e=="number",tA=(e,r="rgb",t,a)=>{let n=wi(r),i=La(r),o=[],l=[],s={};e.forEach(d=>{Array.isArray(d)?(o.push(i(d[0])),l.push(d[1])):Ex(d)||Nh(d)?s[l.length]=d:(o.push(i(d)),l.push(void 0))}),XW(l);let u=n.channels.reduce((d,h)=>{let p;return Rf(t)&&Rf(t[h])&&t[h].fixup?p=t[h].fixup:Rf(n.interpolate[h])&&n.interpolate[h].fixup?p=n.interpolate[h].fixup:p=m=>m,d[h]=p(o.map(m=>m[h])),d},{});if(a){let d=o.map((h,p)=>n.channels.reduce((m,b)=>(m[b]=u[b][p],m),{mode:r}));u=n.channels.reduce((h,p)=>(h[p]=d.map(m=>{let b=a(m[p],p,m,r);return isNaN(b)?void 0:b}),h),{})}let f=n.channels.reduce((d,h)=>{let p;return Nh(t)?p=t:Rf(t)&&Nh(t[h])?p=t[h]:Rf(t)&&Rf(t[h])&&t[h].use?p=t[h].use:Nh(n.interpolate[h])?p=n.interpolate[h]:Rf(n.interpolate[h])&&(p=n.interpolate[h].use),d[h]=p(u[h]),d},{}),c=o.length-1;return d=>{if(d=Math.min(Math.max(0,d),1),d<=l[0])return o[0];if(d>l[c])return o[c];let h=0;for(;l[h]<d;)h++;let p=l[h-1],m=l[h]-p,b=(d-p)/m,y=s[h]||s[0];y!==void 0&&(Ex(y)&&(y=rA((y-p)/m)),b=y(b));let C=(h-1+b)/c;return n.channels.reduce((x,_)=>{let A=f[_](C);return A!==void 0&&(x[_]=A),x},{mode:r})}},WW=(e,r="rgb",t)=>tA(e,r,t),aA=(e,r)=>(t,a="rgb",n)=>{let i=r?bv(r,a):void 0,o=tA(t,a,n,e);return i?l=>i(o(l)):o},ZW=aA(Qw,eA),Bh=(e,r)=>(e+r)%r,nA=(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},iA=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return nA(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)},oA=e=>r=>{let t=e.length-1,a=Math.floor(r*t);return nA(e[Bh(a-1,e.length)],e[Bh(a,e.length)],e[Bh(a+1,e.length)],e[Bh(a+2,e.length)],(r-a/t)*t)},lA=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},$W=e=>iA(lA(e)),JW=e=>oA(lA(e)),y1=Math.sign,C4=Math.min,wo=Math.abs,Q4=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?(y1(t[i-1])+y1(t[i]))*C4(wo(t[i-1]),wo(t[i]),.5*wo(a[i])):void 0);return[t,a,n]},e5=(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]}},KW=e=>{if(e.length<3)return nt(e);let r=e.length-1,[t,,a]=Q4(e);return a[0]=t[0],a[r]=t[r-1],e5(e,a,t)},QW=e=>{if(e.length<3)return nt(e);let r=e.length-1,[t,a,n]=Q4(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:wo(a[0])>2*wo(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:wo(a[r])>2*wo(t[r-1])?2*t[r-1]:a[r],e5(e,n,t)},eZ=e=>{let r=e.length-1,[t,a,n]=Q4(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]=(y1(i)+y1(t[0]))*C4(wo(i),wo(t[0]),.5*wo(a[0])),n[r]=(y1(t[r-1])+y1(o))*C4(wo(t[r-1]),wo(o),.5*wo(a[r])),e5(e,n,t)},rZ=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),sA=rZ,tZ=(e=2,r=1)=>{let t=sA(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},aZ=tZ,uA=La("rgb"),fA=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},cA=e=>fA(uA(e)),vA=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 r5(e){return vA(uA(e))}function np(e="rgb"){let{gamut:r}=wi(e);if(!r)return a=>!0;let t=La(typeof r=="string"?r:e);return a=>vA(t(a))}function nZ(e){return e=Bl(e),e===void 0||r5(e)?e:La(e.mode)(cA(e))}function t5(e="rgb"){let{gamut:r}=wi(e);if(!r)return i=>Bl(i);let t=typeof r=="string"?r:e,a=La(t),n=np(t);return i=>{let o=Bl(i);if(!o)return;let l=a(o);if(n(l))return o;let s=fA(l);return o.mode===s.mode?s:La(o.mode)(s)}}function iZ(e,r="lch",t="rgb"){e=Bl(e);let a=t==="rgb"?r5:np(t),n=t==="rgb"?cA:t5(t);if(e===void 0||a(e))return e;let i=La(e.mode);e=La(r)(e);let o=Ha(ga({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=wi(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:Ha(ga({},o),{c}))}function oZ(e="rgb",r="oklch",t=w1("oklch"),a=.02){let n=La(e),i=wi(e);if(!i.gamut)return f=>n(f);let o=np(e),l=t5(e),s=La(r),{ranges:u}=wi(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Bl(f),f===void 0)return;let c=ga({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let b=Ha(ga({},i.white),{mode:e});return f.alpha!==void 0&&(b.alpha=f.alpha),b}if(c.l<=u.l[0]){let b=Ha(ga({},i.black),{mode:e});return f.alpha!==void 0&&(b.alpha=f.alpha),b}if(o(c))return n(c);let d=0,h=c.c,p=(u.c[1]-u.c[0])/4e3,m=l(c);for(;h-d>p;)c.c=(d+h)*.5,m=l(c),o(c)||t&&a>0&&t(c,m)<=a?d=c.c:h=c.c;return n(o(c)?c:m)}}var lZ=(e,r=w1(),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]))},sZ=lZ,a5=e=>Math.max(e,0),n5=e=>Math.max(Math.min(e,1),0),uZ=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),fZ=e=>{let r=1-n5(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]},cZ=e=>{let r=a5(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]},vZ=e=>{let r=1-n5(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]},dZ=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]},ip=(e,r,t=!1)=>{let a=La(r),n=wi(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=Bl(i);return f&&l.mode!==f.mode?La(f.mode)(l):l}},hZ=(e=1,r="rgb")=>{let t=a5(e);return bv(K4(t),r,!0)},pZ=(e=1,r="rgb")=>{let t=a5(e);return bv(K4(t,(1-t)/2),r,!0)},mZ=(e=1,r="rgb")=>ip(fZ(e),r,!0),gZ=(e=1,r="rgb")=>ip(cZ(e),r,!0),yZ=(e=1,r="rgb")=>ip(vZ(e),r,!0),bZ=(e=1,r="rgb")=>{let t=n5(e);return bv((a,n)=>n==="alpha"?a:uZ(t,1-t,a),r,!0)},_Z=(e=0,r="rgb")=>ip(dZ(e),r,!0),xZ=La("rgb"),wZ=[[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]],AZ=[[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]],MZ=[[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]],i5=(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)=>zf(i[s],o[s],n))}return o=>{let l=Bl(o);if(l===void 0)return;let{r:s,g:u,b:f}=xZ(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),La(l.mode)(c)}},TZ=(e=1)=>i5(wZ,e),kZ=(e=1)=>i5(AZ,e),CZ=(e=1)=>i5(MZ,e),SZ=e=>e*e*(3-2*e),DZ=e=>.5-Math.sin(Math.asin(1-2*e)/3),FZ=e=>e*e*e*(e*(e*6-15)+10),EZ=FZ,LZ=e=>(1-Math.cos(e*Math.PI))/2,qZ=LZ;function S4(e){let r=La("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function PZ(e,r){let t=S4(e),a=S4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var RZ=Aa(Vx),zZ=Aa($x),NZ=Aa(rw),BZ=Aa(tw),IZ=Aa(iw),HZ=Aa(P4),OZ=Aa(N4),UZ=Aa(dw),GZ=Aa(mw),YZ=Aa(gw),VZ=Aa(yw),XZ=Aa(tp),jZ=Aa(_w),WZ=Aa(ap),ZZ=Aa(ww),$Z=Aa(Tw),JZ=Aa(kw),KZ=Aa(Cw),QZ=Aa(Dw),e$=Aa(Fw),r$=Aa(Lw),t$=Aa(Pw),a$=Aa(Rw),n$=Aa(zw),i$=Aa(Nw),o$=Aa(If),l$=Aa(Ow),s$=Aa(Uw),u$=Aa(Vw),f$=Aa(Ww)});var o5={};Ua(o5,{default:()=>v$});var c$,v$,l5=Oa(()=>{"use strict";c$={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},v$=c$});var m0=oe((R4e,bA)=>{"use strict";var{format:d$,width:h$,height:p$,scale:m$}=(l5(),xr(o5)).default,pA=m$,{dflt:P4e}=pA,g$=B_(pA,["dflt"]),mA={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:d$,filename:{valType:"string"},width:h$,height:p$,scale:g$},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:{}}},gA={};function yA(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),yA(a,r[t])))}}yA(mA,gA);bA.exports={configAttributes:mA,dfltConfig:gA}});var u5=oe((N4e,_A)=>{"use strict";var s5=Lt(),y$=Qt(),_v=[];_A.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||_v.indexOf(e)!==-1)return;_v.push(e);var a=1e3;y$(r)?a=r:r==="long"&&(a=3e3);var n=s5.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(_v);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=_v.indexOf(u);f!==-1&&_v.splice(f,1),s5.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=s5.select(this);u.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(/<br\s*\/?>/g),d=0;d<c.length;d++)d&&f.append("br"),f.append("span").text(c[d]);r==="stick"?u.transition().duration(350).style("opacity",1):u.transition().duration(700).style("opacity",1).transition().delay(a).call(o)})}});var Cu=oe((B4e,xA)=>{"use strict";var k1=m0().dfltConfig,f5=u5(),c5=xA.exports={};c5.log=function(){var e;if(k1.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(k1.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);f5(t.join("<br>"),"long")}};c5.warn=function(){var e;if(k1.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(k1.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);f5(t.join("<br>"),"stick")}};c5.error=function(){var e;if(k1.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(k1.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);f5(t.join("<br>"),"stick")}}});var Il=oe(Uf=>{"use strict";Uf.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Uf.defaultLine="#444";Uf.lightLine="#eee";Uf.background="#fff";Uf.borderLine="#BEC8D9";Uf.lightFraction=1e3/11});var Nt=oe((H4e,FA)=>{"use strict";var{converter:wA,formatHex:b$,formatRgb:_$,wcagContrast:x$,wcagLuminance:w$}=hA(),{isArrayOrTypedArray:AA}=ro(),{warn:A$}=Cu(),{background:wv,defaultLine:h5,defaults:M$,lightLine:T$}=Il(),MA=wA("rgb"),k$=wA("hsl"),TA=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return MA(r)}catch(t){return}},Ai=e=>e>0?e>1?1:e:0,C$={mode:"rgb",r:0,g:0,b:0,alpha:1},v5=e=>Math.round(e*255e6)/255e6,kA=e=>Ha(ga({},e),{r:v5(e.r),g:v5(e.g),b:v5(e.b)}),Ao=e=>_$(kA(e)),S$=e=>b$(kA(e)),D$=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:AA(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},on=(e,r)=>{var a;let t=TA(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&A$(`Invalid color specifier: ${D$(e)}. Defaulting to "#000"`),C$)},xv=e=>Ao(Ha(ga({},on(e)),{alpha:1})),F$=e=>e?on(e).alpha:0,CA=e=>AA(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),E$=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}},L$=(e,r)=>{let t=CA(e)?E$(e):on(e,!0),a=[Ai(t.r),Ai(t.g),Ai(t.b),Ai(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},q$=(e,r)=>Ao(Ha(ga({},on(e)),{alpha:Ai(r)})),SA=(e,r)=>{let t=on(e),a=t.alpha;if(a===1)return Ao(t);let n=on(r||wv),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return Ao({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},P$=(e,r,t)=>{let a=on(e),n=on(r),i=(o,l)=>t*o+(1-t)*l;return Ao({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},d5=(e,r)=>{let t=on(e),a=k$(t)||{mode:"hsl",h:0,s:0,l:0};return Ao(MA(Ha(ga({},a),{l:Ai((a.l*100+r)/100),alpha:t.alpha})))},op=(e,r)=>x$(on(e),on(r)),DA=e=>op(e,wv)>op(e,h5),R$=Ao(on(wv)),z$=Ao(on(h5)),N$=(e,r,t)=>(on(e).alpha!==1&&(e=SA(e,wv)),DA(e)?r?d5(e,r):R$:t?d5(e,-t):z$),B$=(e,r)=>{e.style({stroke:xv(r),"stroke-opacity":on(r).alpha})},I$=(e,r)=>{e.style({fill:xv(r),"fill-opacity":on(r).alpha})},H$=(e,r)=>!!(e&&r&&xv(e)===xv(r)),O$=e=>TA(e)!==void 0,U$=(e,r)=>{r=r===0?0:r||10;let t=on(e),a=r/100;return Ao(Ha(ga({},t),{r:Ai(t.r+a),g:Ai(t.g+a),b:Ai(t.b+a)}))},G$=(e,r,t)=>{let a=on(e),n=on(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,d)=>u*c+s*d;return Ao({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})},Y$=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=op(e,n);i>a&&(a=i,t=Ao(on(n)))}return t},V$=e=>Ao(on(e)),X$=e=>S$(on(e)).toUpperCase(),j$=e=>{let r=on(e);return[Ai(r.r)*255,Ai(r.g)*255,Ai(r.b)*255,Ai(r.alpha)]},W$=([e,r,t,a])=>Ao({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),Z$=e=>{let r=on(e);return w$({mode:"rgb",r:Ai(r.r),g:Ai(r.g),b:Ai(r.b)})};FA.exports={addOpacity:q$,adjustLightness:d5,background:wv,brighten:U$,combine:SA,contrast:N$,defaultLine:h5,defaults:M$,equals:H$,fill:I$,hexString:X$,interpolate:P$,isChannelArray:CA,isDark:DA,isValid:O$,lightLine:T$,luminosity:Z$,mix:G$,mostReadable:Y$,normalize:L$,opacity:F$,parse:on,rgb:xv,rgbaArray:j$,rgbaArrayToString:W$,rgbaString:V$,stroke:B$,wcagContrast:op}});var Gf=oe((U4e,qA)=>{"use strict";var $$=Nt(),lp={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)"]]},EA=lp.RdBu;function J$(e,r){if(r||(r=EA),!e)return r;function t(){try{e=lp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),LA(e)?e:r}function LA(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||!$$.isValid(a[1]))return!1;r=+a[0]}return!0}function K$(e){return lp[e]!==void 0?!0:LA(e)}qA.exports={scales:lp,defaultScale:EA,get:J$,isValid:K$}});var sp={};Ua(sp,{DESELECTDIM:()=>rJ,HIDE_PLACEHOLDER:()=>eJ,SHOW_PLACEHOLDER:()=>Q$});var Q$,eJ,rJ,up=Oa(()=>{"use strict";Q$=100,eJ=1e3,rJ=.2});var Av={};Ua(Av,{counter:()=>Yf});function Yf(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+p5+"y"+p5+n):new RegExp(i+e+p5+n)}var p5,C1=Oa(()=>{"use strict";p5="([2-9]|[1-9][0-9]+)?"});var zA=oe(ao=>{"use strict";var m5=Qt(),PA=Dn().extendFlat,tJ=Wo(),aJ=Gf(),g5=Nt(),nJ=(up(),xr(sp)).DESELECTDIM,S1=Q2(),RA=(C1(),xr(Av)).counter,iJ=(m1(),xr(p1)).modHalf,Hl=ro().isArrayOrTypedArray,g0=ro().isTypedArraySpec,y0=ro().decodeTypedArraySpec;ao.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Hl(e)?e:g0(e)?y0(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){g0(e)&&(e=y0(e)),!m5(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}g0(e)&&(e=y0(e)),e%1||!m5(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){g0(e)&&(e=y0(e)),g5.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=>g5.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(aJ.get(e,t))}},angle:{coerceFunction:function(e,r,t){g0(e)&&(e=y0(e)),e==="auto"?r.set("auto"):m5(e)?r.set(iJ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||RA(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Hl(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:!!RA(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(g0(e)?y0(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(C,x,_){var A,T={set:function(M){A=M}};return _===void 0&&(_=x.dflt),ao.valObjectMeta[x.valType].coerceFunction(C,T,_,x),A}if(g0(e)&&(e=y0(e)),!Hl(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&Hl(e[0]),o=a.items,l=[],s=Array.isArray(o),u=s&&i&&Hl(o[0]),f=i&&s&&!u,c=s&&!f?o.length:e.length,d,h,p,m,b,y;if(t=Array.isArray(t)?t:[],i)for(d=0;d<c;d++)for(l[d]=[],p=Hl(e[d])?e[d]:[],f?b=o.length:s?b=o[d].length:b=p.length,h=0;h<b;h++)f?m=o[h]:s?m=o[d][h]:m=o,y=n(p[h],m,(t[d]||[])[h]),y!==void 0&&(l[d][h]=y);else for(d=0;d<c;d++)y=n(e[d],s?o[d]:o,t[d]),y!==void 0&&(l[d]=y);r.set(l)},validateFunction:function(e,r){if(!Hl(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(!Hl(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!fp(e[i][o],a?t[i][o]:t))return!1}else if(!fp(e[i],a?t[i]:t))return!1;return!0}}};ao.coerce=function(e,r,t,a,n){var i=S1(t,a).get(),o=S1(e,a),l=S1(r,a),s=o.get(),u=r._template;if(s===void 0&&u&&(s=S1(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(Hl(s))return l.set(s),s;if(g0(s))return s=y0(s),l.set(s),s}var f=ao.valObjectMeta[i.valType].coerceFunction;f(s,l,n,i);var c=l.get();return u&&c===n&&!fp(s,i)&&(s=S1(u,a).get(),f(s,l,n,i),c=l.get()),c};ao.coerce2=function(e,r,t,a,n){var i=S1(e,a),o=ao.coerce(e,r,t,a,n),l=i.get();return l!=null?o:!1};ao.coerceFont=function(e,r,t,a){a||(a={}),t=PA({},t),t=PA(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};ao.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?g5.contrast(s):t)}e(r+".fgopacity",l?.5:1)}};ao.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:tJ,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 ao.coerce(e,r,n,"hoverinfo",o)};ao.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!Hl(t)&&!e.selected&&!e.unselected&&(a=t,n=nJ*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function fp(e,r){var t=ao.valObjectMeta[r.valType];if(r.arrayOk&&Hl(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}ao.validate=fp});var cp=oe((Y4e,NA)=>{"use strict";NA.exports=function(){}});var y5=oe((V4e,BA)=>{"use strict";BA.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 HA=oe((X4e,IA)=>{IA.exports=oJ;function oJ(){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 UA=oe((j4e,OA)=>{OA.exports=lJ;function lJ(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 YA=oe((W4e,GA)=>{GA.exports=sJ;function sJ(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 b5=oe((Z4e,VA)=>{VA.exports=uJ;function uJ(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 jA=oe(($4e,XA)=>{XA.exports=fJ;function fJ(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 ZA=oe((J4e,WA)=>{WA.exports=cJ;function cJ(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],d=r[10],h=r[11],p=r[12],m=r[13],b=r[14],y=r[15],C=t*l-a*o,x=t*s-n*o,_=t*u-i*o,A=a*s-n*l,T=a*u-i*l,M=n*u-i*s,E=f*m-c*p,P=f*b-d*p,z=f*y-h*p,I=c*b-d*m,X=c*y-h*m,H=d*y-h*b,V=C*H-x*X+_*I+A*z-T*P+M*E;return V?(V=1/V,e[0]=(l*H-s*X+u*I)*V,e[1]=(n*X-a*H-i*I)*V,e[2]=(m*M-b*T+y*A)*V,e[3]=(d*T-c*M-h*A)*V,e[4]=(s*z-o*H-u*P)*V,e[5]=(t*H-n*z+i*P)*V,e[6]=(b*_-p*M-y*x)*V,e[7]=(f*M-d*_+h*x)*V,e[8]=(o*X-l*z+u*E)*V,e[9]=(a*z-t*X-i*E)*V,e[10]=(p*T-m*_+y*C)*V,e[11]=(c*_-f*T-h*C)*V,e[12]=(l*P-o*I-s*E)*V,e[13]=(t*I-a*P+n*E)*V,e[14]=(m*x-p*A-b*C)*V,e[15]=(f*A-c*x+d*C)*V,e):null}});var JA=oe((K4e,$A)=>{$A.exports=vJ;function vJ(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],d=r[10],h=r[11],p=r[12],m=r[13],b=r[14],y=r[15];return e[0]=l*(d*y-h*b)-c*(s*y-u*b)+m*(s*h-u*d),e[1]=-(a*(d*y-h*b)-c*(n*y-i*b)+m*(n*h-i*d)),e[2]=a*(s*y-u*b)-l*(n*y-i*b)+m*(n*u-i*s),e[3]=-(a*(s*h-u*d)-l*(n*h-i*d)+c*(n*u-i*s)),e[4]=-(o*(d*y-h*b)-f*(s*y-u*b)+p*(s*h-u*d)),e[5]=t*(d*y-h*b)-f*(n*y-i*b)+p*(n*h-i*d),e[6]=-(t*(s*y-u*b)-o*(n*y-i*b)+p*(n*u-i*s)),e[7]=t*(s*h-u*d)-o*(n*h-i*d)+f*(n*u-i*s),e[8]=o*(c*y-h*m)-f*(l*y-u*m)+p*(l*h-u*c),e[9]=-(t*(c*y-h*m)-f*(a*y-i*m)+p*(a*h-i*c)),e[10]=t*(l*y-u*m)-o*(a*y-i*m)+p*(a*u-i*l),e[11]=-(t*(l*h-u*c)-o*(a*h-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*b-d*m)-f*(l*b-s*m)+p*(l*d-s*c)),e[13]=t*(c*b-d*m)-f*(a*b-n*m)+p*(a*d-n*c),e[14]=-(t*(l*b-s*m)-o*(a*b-n*m)+p*(a*s-n*l)),e[15]=t*(l*d-s*c)-o*(a*d-n*c)+f*(a*s-n*l),e}});var QA=oe((Q4e,KA)=>{KA.exports=dJ;function dJ(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],d=e[11],h=e[12],p=e[13],m=e[14],b=e[15],y=r*o-t*i,C=r*l-a*i,x=r*s-n*i,_=t*l-a*o,A=t*s-n*o,T=a*s-n*l,M=u*p-f*h,E=u*m-c*h,P=u*b-d*h,z=f*m-c*p,I=f*b-d*p,X=c*b-d*m;return y*X-C*I+x*z+_*P-A*E+T*M}});var rM=oe((e5e,eM)=>{eM.exports=hJ;function hJ(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],d=r[9],h=r[10],p=r[11],m=r[12],b=r[13],y=r[14],C=r[15],x=t[0],_=t[1],A=t[2],T=t[3];return e[0]=x*a+_*l+A*c+T*m,e[1]=x*n+_*s+A*d+T*b,e[2]=x*i+_*u+A*h+T*y,e[3]=x*o+_*f+A*p+T*C,x=t[4],_=t[5],A=t[6],T=t[7],e[4]=x*a+_*l+A*c+T*m,e[5]=x*n+_*s+A*d+T*b,e[6]=x*i+_*u+A*h+T*y,e[7]=x*o+_*f+A*p+T*C,x=t[8],_=t[9],A=t[10],T=t[11],e[8]=x*a+_*l+A*c+T*m,e[9]=x*n+_*s+A*d+T*b,e[10]=x*i+_*u+A*h+T*y,e[11]=x*o+_*f+A*p+T*C,x=t[12],_=t[13],A=t[14],T=t[15],e[12]=x*a+_*l+A*c+T*m,e[13]=x*n+_*s+A*d+T*b,e[14]=x*i+_*u+A*h+T*y,e[15]=x*o+_*f+A*p+T*C,e}});var aM=oe((r5e,tM)=>{tM.exports=pJ;function pJ(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,d,h,p,m,b,y;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],d=r[6],h=r[7],p=r[8],m=r[9],b=r[10],y=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=d,e[7]=h,e[8]=p,e[9]=m,e[10]=b,e[11]=y,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+d*n+b*i+r[14],e[15]=u*a+h*n+y*i+r[15]),e}});var iM=oe((t5e,nM)=>{nM.exports=mJ;function mJ(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 lM=oe((a5e,oM)=>{oM.exports=gJ;function gJ(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,d,h,p,m,b,y,C,x,_,A,T,M,E,P,z,I,X,H,V,N;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],d=r[1],h=r[2],p=r[3],m=r[4],b=r[5],y=r[6],C=r[7],x=r[8],_=r[9],A=r[10],T=r[11],M=n*n*f+u,E=i*n*f+o*s,P=o*n*f-i*s,z=n*i*f-o*s,I=i*i*f+u,X=o*i*f+n*s,H=n*o*f+i*s,V=i*o*f-n*s,N=o*o*f+u,e[0]=c*M+m*E+x*P,e[1]=d*M+b*E+_*P,e[2]=h*M+y*E+A*P,e[3]=p*M+C*E+T*P,e[4]=c*z+m*I+x*X,e[5]=d*z+b*I+_*X,e[6]=h*z+y*I+A*X,e[7]=p*z+C*I+T*X,e[8]=c*H+m*V+x*N,e[9]=d*H+b*V+_*N,e[10]=h*H+y*V+A*N,e[11]=p*H+C*V+T*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var uM=oe((n5e,sM)=>{sM.exports=yJ;function yJ(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],d=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+d*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=d*n-s*a,e}});var cM=oe((i5e,fM)=>{fM.exports=bJ;function bJ(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],d=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-d*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+d*n,e}});var dM=oe((o5e,vM)=>{vM.exports=_J;function _J(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],d=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+d*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=d*n-s*a,e}});var pM=oe((l5e,hM)=>{hM.exports=xJ;function xJ(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 gM=oe((s5e,mM)=>{mM.exports=wJ;function wJ(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,d=a*u,h=n*s,p=n*u,m=i*u,b=o*l,y=o*s,C=o*u;return e[0]=1-(h+m),e[1]=c+C,e[2]=d-y,e[3]=0,e[4]=c-C,e[5]=1-(f+m),e[6]=p+b,e[7]=0,e[8]=d+y,e[9]=p-b,e[10]=1-(f+h),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var bM=oe((u5e,yM)=>{yM.exports=AJ;function AJ(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 xM=oe((f5e,_M)=>{_M.exports=MJ;function MJ(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 AM=oe((c5e,wM)=>{wM.exports=TJ;function TJ(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 TM=oe((v5e,MM)=>{MM.exports=kJ;function kJ(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 CM=oe((d5e,kM)=>{kM.exports=CJ;function CJ(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 DM=oe((h5e,SM)=>{SM.exports=SJ;function SJ(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,d=n*o,h=n*l,p=n*s,m=i*o,b=i*l,y=i*s;return e[0]=1-c-p,e[1]=f+y,e[2]=d-b,e[3]=0,e[4]=f-y,e[5]=1-u-p,e[6]=h+m,e[7]=0,e[8]=d+b,e[9]=h-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var EM=oe((p5e,FM)=>{FM.exports=DJ;function DJ(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 qM=oe((m5e,LM)=>{LM.exports=FJ;function FJ(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 RM=oe((g5e,PM)=>{PM.exports=EJ;function EJ(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 NM=oe((y5e,zM)=>{zM.exports=LJ;function LJ(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 IM=oe((b5e,BM)=>{var qJ=b5();BM.exports=PJ;function PJ(e,r,t,a){var n,i,o,l,s,u,f,c,d,h,p=r[0],m=r[1],b=r[2],y=a[0],C=a[1],x=a[2],_=t[0],A=t[1],T=t[2];return Math.abs(p-_)<1e-6&&Math.abs(m-A)<1e-6&&Math.abs(b-T)<1e-6?qJ(e):(f=p-_,c=m-A,d=b-T,h=1/Math.sqrt(f*f+c*c+d*d),f*=h,c*=h,d*=h,n=C*d-x*c,i=x*f-y*d,o=y*c-C*f,h=Math.sqrt(n*n+i*i+o*o),h?(h=1/h,n*=h,i*=h,o*=h):(n=0,i=0,o=0),l=c*o-d*i,s=d*n-f*o,u=f*i-c*n,h=Math.sqrt(l*l+s*s+u*u),h?(h=1/h,l*=h,s*=h,u*=h):(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]=d,e[11]=0,e[12]=-(n*p+i*m+o*b),e[13]=-(l*p+s*m+u*b),e[14]=-(f*p+c*m+d*b),e[15]=1,e)}});var OM=oe((_5e,HM)=>{HM.exports=RJ;function RJ(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 _5=oe((x5e,UM)=>{UM.exports={create:HA(),clone:UA(),copy:YA(),identity:b5(),transpose:jA(),invert:ZA(),adjoint:JA(),determinant:QA(),multiply:rM(),translate:aM(),scale:iM(),rotate:lM(),rotateX:uM(),rotateY:cM(),rotateZ:dM(),fromRotation:pM(),fromRotationTranslation:gM(),fromScaling:bM(),fromTranslation:xM(),fromXRotation:AM(),fromYRotation:TM(),fromZRotation:CM(),fromQuat:DM(),frustum:EM(),perspective:qM(),perspectiveFromFieldOfView:RM(),ortho:NM(),lookAt:IM(),str:OM()}});var vp=oe(mn=>{"use strict";var zJ=_5();mn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};mn.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};mn.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]=mn.dot(e[n],r);else if(r[0].length){var i=mn.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=mn.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};mn.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};mn.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]]};mn.rotationXYMatrix=function(e,r,t){return mn.dot(mn.dot(mn.translationMatrix(r,t),mn.rotationMatrix(e)),mn.translationMatrix(-r,-t))};mn.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return mn.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};mn.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 mn.dot(e,[t[0],t[1],1]).slice(0,2)}};mn.apply2DTransform2=function(e){var r=mn.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};mn.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]};mn.inverseTransformMatrix=function(e){var r=[];return zJ.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 Mv=oe((A5e,WM)=>{"use strict";var NJ=Lt(),GM=Cu(),BJ=vp(),IJ=_5();function HJ(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 OJ(e){var r=NJ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function YM(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function UJ(e,r){VM("global",e,r)}function VM(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):GM.warn("addStyleRule failed"):GM.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function GJ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&YM(t)}function YJ(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:l},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function VJ(e){var r=jM(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=XM(a);if(n){var i=BJ.convertCssMatrix(n);t=IJ.multiply(t,t,i)}}),t}function XM(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 jM(e){for(var r=[];XJ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function XJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function jJ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}WM.exports={getGraphDiv:HJ,isPlotDiv:OJ,removeElement:YM,addStyleRule:UJ,addRelatedStyleRule:VM,deleteRelatedStyleRule:GJ,setStyleOnHover:YJ,getFullTransformMatrix:VJ,getElementTransformMatrix:XM,getElementAndAncestors:jM,equalDomRects:jJ}});var Tv=oe((M5e,ZM)=>{"use strict";ZM.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 Zo=oe((T5e,tT)=>{"use strict";var JM=Dn().extendFlat,WJ=d0(),KM={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},QM={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},ZJ=KM.flags.slice().concat(["fullReplot"]),$J=QM.flags.slice().concat("layoutReplot");tT.exports={traces:KM,layout:QM,traceFlags:function(){return $M(ZJ)},layoutFlags:function(){return $M($J)},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:eT};function $M(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function eT(e,r,t){var a=JM({},e);for(var n in a){var i=a[n];WJ(i)&&(a[n]=rT(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function rT(e,r,t,a){if(e.valType){var n=JM({},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]=rT(e.items[i],r,"from-root")}return n}else return eT(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var Fs=oe(x5=>{"use strict";x5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};x5.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 w5={};Ua(w5,{DATE_FORMAT_LINK:()=>KJ,FORMAT_LINK:()=>JJ});var JJ,KJ,A5=Oa(()=>{"use strict";JJ="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",KJ="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Vf=oe(D1=>{"use strict";var{DATE_FORMAT_LINK:QJ,FORMAT_LINK:eK}=(A5(),xr(w5)),rK=["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 tK({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}".`,eK,"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}".`,QJ,"for details on the date formatting syntax.",rK].join(" ")}D1.templateFormatStringDescription=tK;D1.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>ga({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});D1.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>ga({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});D1.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});D1.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var pp=oe((D5e,sT)=>{"use strict";function b0(e,r){return r?r.d2l(e):e}function aT(e,r){return r?r.l2d(e):e}function aK(e){return e.x0}function nK(e){return e.x1}function iK(e){return e.y0}function oK(e){return e.y1}function nT(e){return e.x0shift||0}function iT(e){return e.x1shift||0}function oT(e){return e.y0shift||0}function lT(e){return e.y1shift||0}function dp(e,r){return b0(e.x1,r)+iT(e)-b0(e.x0,r)-nT(e)}function hp(e,r,t){return b0(e.y1,t)+lT(e)-b0(e.y0,t)-oT(e)}function lK(e,r){return Math.abs(dp(e,r))}function sK(e,r,t){return Math.abs(hp(e,r,t))}function uK(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(dp(e,r),2)+Math.pow(hp(e,r,t),2))}function fK(e,r){return aT((b0(e.x1,r)+iT(e)+b0(e.x0,r)+nT(e))/2,r)}function cK(e,r,t){return aT((b0(e.y1,t)+lT(e)+b0(e.y0,t)+oT(e))/2,t)}function vK(e,r,t){return e.type!=="line"?void 0:hp(e,r,t)/dp(e,r)}var dK=["x0","x1","y0","y1","dy","height","ycenter"],hK=["x0","x1","y0","y1","dx","width","xcenter"];sT.exports={x0:aK,x1:nK,y0:iK,y1:oK,slope:vK,dx:dp,dy:hp,width:lK,height:sK,length:uK,xcenter:fK,ycenter:cK,simpleXVariables:dK,simpleYVariables:hK}});var cT=oe((F5e,fT)=>{"use strict";var pK=Zo().overrideAll,Xf=Wo(),uT=xi(),mK=Fs().dash,_0=Dn().extendFlat,{shapeTexttemplateAttrs:gK,templatefallbackAttrs:yK}=Vf(),bK=pp();fT.exports=pK({newshape:{visible:_0({},Xf.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:_0({},Xf.legend,{}),legendgroup:_0({},Xf.legendgroup,{}),legendgrouptitle:{text:_0({},Xf.legendgrouptitle.text,{}),font:uT({})},legendrank:_0({},Xf.legendrank,{}),legendwidth:_0({},Xf.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:_0({},mK,{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:_0({},Xf.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:gK({newshape:!0},{keys:Object.keys(bK)}),texttemplatefallback:yK({editType:"arraydraw"}),font:uT({}),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 dT=oe((E5e,vT)=>{"use strict";var _K=Fs().dash,xK=Dn().extendFlat;vT.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:xK({},_K,{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 mp=oe((L5e,hT)=>{"use strict";hT.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 F1=oe((q5e,yT)=>{"use strict";var M5=xi(),wK=Tv(),gp=Il(),pT=cT(),mT=dT(),AK=mp(),gT=Dn().extendFlat,yp=M5({editType:"calc"});yp.family.dflt='"Open Sans", verdana, arial, sans-serif';yp.size.dflt=12;yp.color.dflt=gp.defaultLine;yT.exports={font:yp,title:{text:{valType:"string",editType:"layoutstyle"},font:M5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:M5({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:gT(AK({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:gp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:gp.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:gp.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:pT.newshape,activeshape:pT.activeshape,newselection:mT.newselection,activeselection:mT.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:gT({},wK.transition,{editType:"none"})}});var bT=oe(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var _t=oe(Bt=>{"use strict";var T5=Cu(),_T=cp(),xT=y5(),z5e=Mv().addStyleRule,wT=Dn(),MK=Wo(),TK=F1(),kK=wT.extendFlat,k5=wT.extendDeepAll;Bt.modules={};Bt.allCategories={};Bt.allTypes=[];Bt.subplotsRegistry={};Bt.componentsRegistry={};Bt.layoutArrayContainers=[];Bt.layoutArrayRegexes=[];Bt.traceLayoutAttributes={};Bt.localeRegistry={};Bt.apiMethodRegistry={};Bt.collectableSubplotTypes=null;Bt.register=function(r){if(Bt.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":CK(a);break;case"component":DK(a);break;case"locale":FK(a);break;case"apiMethod":var n=a.name;Bt.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};Bt.getModule=function(e){var r=Bt.modules[kT(e)];return r?r._module:!1};Bt.traceIs=function(e,r){if(e=kT(e),e==="various")return!1;var t=Bt.modules[e];return t||(e&&T5.log("Unrecognized trace type "+e+"."),t=Bt.modules[MK.type.dflt]),!!t.categories[r]};Bt.getComponentMethod=function(e,r){var t=Bt.componentsRegistry[e];return t&&t[r]||_T};Bt.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Bt.apiMethodRegistry[e].apply(null,r)};function CK(e){var r=e.name,t=e.categories,a=e.meta;if(Bt.modules[r]){T5.log("Type "+r+" already registered");return}Bt.subplotsRegistry[e.basePlotModule.name]||SK(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,Bt.allCategories[t[i]]=!0;Bt.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(Bt.modules[r].meta=a),Bt.allTypes.push(r);for(var o in Bt.componentsRegistry)MT(o,r);e.layoutAttributes&&kK(Bt.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,s=l.name;s==="map"&&bT(),(s==="geo"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function SK(e){var r=e.name;if(Bt.subplotsRegistry[r]){T5.log("Plot type "+r+" already registered.");return}AT(e),Bt.subplotsRegistry[r]=e;for(var t in Bt.componentsRegistry)TT(t,e.name)}function DK(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;Bt.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&xT(Bt.layoutArrayContainers,r),AT(e));for(var t in Bt.modules)MT(r,t);for(var a in Bt.subplotsRegistry)TT(r,a);e.schema&&e.schema.layout&&k5(TK,e.schema.layout)}function FK(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=Bt.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 AT(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)xT(Bt.layoutArrayRegexes,r[t])}}function MT(e,r){var t=Bt.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&k5(Bt.modules[r]._module.attributes,a)}}function TT(e,r){var t=Bt.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=Bt.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&&k5(n,o)}}function kT(e){return typeof e=="object"&&(e=e.type),e}});var RT=oe(gn=>{"use strict";var EK=d1().timeFormat,qT=Qt(),C5=Cu(),w0=(m1(),xr(p1)).mod,q1=(Za(),xr(nn)),$o=q1.BADNUM,no=q1.ONEDAY,kv=q1.ONEHOUR,x0=q1.ONEMIN,L1=q1.ONESEC,Cv=q1.EPOCHJD,Su=_t(),CT=d1().utcFormat,LK=/^\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,qK=/^\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,ST=new Date().getFullYear()-70;function Du(e){return e&&Su.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}gn.dateTick0=function(e,r){var t=PK(e,!!r);if(r<2)return t;var a=gn.dateTime2ms(t,e);return a+=no*(r-1),gn.ms2DateTime(a,0,e)};function PK(e,r){return Du(e)?r?Su.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Su.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}gn.dfltRange=function(e){return Du(e)?Su.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};gn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var _p,xp;gn.dateTime2ms=function(e,r){if(gn.isJSDate(e)){var t=e.getTimezoneOffset()*x0,a=(e.getUTCMinutes()-e.getMinutes())*x0+(e.getUTCSeconds()-e.getSeconds())*L1+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*x0;t=t-n/2+w0(a-t+n/2,n)}return e=Number(e)-t,e>=_p&&e<=xp?e:$o}if(typeof e!="string"&&typeof e!="number")return $o;e=String(e);var i=Du(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?qK:LK);if(!s)return $o;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),d=Number(s[7]||0),h=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return $o;u=Number(u);var m;try{var b=Su.getComponentMethod("calendars","getCal")(r);if(l){var y=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=b.newDate(u,b.toMonthIndex(u,f,y),c)}else m=b.newDate(u,Number(f),c)}catch(x){return $o}return m?(m.toJD()-Cv)*no+d*kv+h*x0+p*L1:$o}u.length===2?u=(Number(u)+2e3-ST)%100+ST:u=Number(u),f-=1;var C=new Date(Date.UTC(2e3,f,c,d,h));return C.setUTCFullYear(u),C.getUTCMonth()!==f||C.getUTCDate()!==c?$o:C.getTime()+p*L1};_p=gn.MIN_MS=gn.dateTime2ms("-9999");xp=gn.MAX_MS=gn.dateTime2ms("9999-12-31 23:59:59.9999");gn.isDateTime=function(e,r){return gn.dateTime2ms(e,r)!==$o};function E1(e,r){return String(e+Math.pow(10,r)).slice(1)}var bp=90*no,DT=3*kv,FT=5*x0;gn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=_p&&e<=xp))return $o;r||(r=0);var a=Math.floor(w0(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(Du(t)){var c=Math.floor(n/no)+Cv,d=Math.floor(w0(e,no));try{i=Su.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(h){i=CT("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<bp?Math.floor(d/kv):0,l=r<bp?Math.floor(d%kv/x0):0,s=r<DT?Math.floor(d%x0/L1):0,u=r<FT?d%L1*10+a:0}else f=new Date(n),i=CT("%Y-%m-%d")(f),o=r<bp?f.getUTCHours():0,l=r<bp?f.getUTCMinutes():0,s=r<DT?f.getUTCSeconds():0,u=r<FT?f.getUTCMilliseconds()*10+a:0;return PT(i,o,l,s,u)};gn.ms2DateTimeLocal=function(e){if(!(e>=_p+no&&e<=xp-no))return $o;var r=Math.floor(w0(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=EK("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return PT(a,n,i,o,l)};function PT(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+E1(r,2)+":"+E1(t,2),(a||n)&&(e+=":"+E1(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+E1(n,i)}return e}gn.cleanDate=function(e,r,t){if(e===$o)return r;if(gn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Du(t))return C5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=gn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!gn.isDateTime(e,t))return C5.error("unrecognized date",e),r;return e};var RK=/%\d?f/g,zK=/%h/g,NK={1:"1",2:"1",3:"2",4:"2"};function ET(e,r,t,a){e=e.replace(RK,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(zK,function(){return NK[t("%q")(n)]}),Du(a))try{e=Su.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var BK=[59,59.9,59.99,59.999,59.9999];function IK(e,r){var t=w0(e+.05,no),a=E1(Math.floor(t/kv),2)+":"+E1(w0(Math.floor(t/x0),60),2);if(r!=="M"){qT(r)||(r=0);var n=Math.min(w0(e/L1,60),BK[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}gn.formatDate=function(e,r,t,a,n,i){if(n=Du(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 IK(e,t)+`
`+ET(i.dayMonthYear,e,a,n);return ET(r,e,a,n)};var LT=3*no;gn.incrementMonth=function(e,r,t){t=Du(t)&&t;var a=w0(e,no);if(e=Math.round(e-a),t)try{var n=Math.round(e/no)+Cv,i=Su.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Cv)*no+a}catch(s){C5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+LT);return l.setUTCMonth(l.getUTCMonth()+r)+a-LT};gn.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Du(r)&&Su.getComponentMethod("calendars","getCal")(r),u=0;u<e.length;u++){if(l=e[u],!qT(l)){i++;continue}if(!(l%no))if(s)try{o=s.fromJD(l/no+Cv),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 wp=oe((I5e,zT)=>{"use strict";zT.exports=function(r){return r}});var D5=oe(Fu=>{"use strict";var HK=Qt(),OK=Cu(),UK=wp(),GK=(Za(),xr(nn)).BADNUM,S5=1e-9;Fu.findBin=function(e,r,t){if(HK(r.start))return t?Math.ceil((e-r.start)/r.size-S5)-1:Math.floor((e-r.start)/r.size+S5);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?YK:VK:s=t?jK:XK,e+=o*S5*(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&&OK.log("Long binary search..."),a-1};function YK(e,r){return e<r}function VK(e,r){return e<=r}function XK(e,r){return e>r}function jK(e,r){return e>=r}Fu.sorterAsc=function(e,r){return e-r};Fu.sorterDes=function(e,r){return r-e};Fu.distinctVals=function(e){var r=e.slice();r.sort(Fu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===GK;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}};Fu.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]};Fu.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()};Fu.findIndexOfMin=function(e,r){r=r||UK;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 Ap={};Ua(Ap,{default:()=>ZK});function WK(e){return Object.keys(e).sort()}var ZK,Mp=Oa(()=>{"use strict";ZK=WK});var NT=oe(yn=>{"use strict";var Sv=Qt(),$K=ro().isArrayOrTypedArray;yn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Sv(r)||(r=!1),$K(t[0])){for(i=new Array(a),n=0;n<a;n++)i[n]=yn.aggNums(e,r,t[n]);t=i}for(n=0;n<a;n++)Sv(r)?Sv(t[n])&&(r=e(+r,+t[n])):r=t[n];return r};yn.len=function(e){return yn.aggNums(function(r){return r+1},0,e)};yn.mean=function(e,r){return r||(r=yn.len(e)),yn.aggNums(function(t,a){return t+a},0,e)/r};yn.geometricMean=function(e,r){return r||(r=yn.len(e)),Math.pow(yn.aggNums(function(t,a){return t*a},1,e),1/r)};yn.midRange=function(e){if(!(e===void 0||e.length===0))return(yn.aggNums(Math.max,null,e)+yn.aggNums(Math.min,null,e))/2};yn.variance=function(e,r,t){return r||(r=yn.len(e)),Sv(t)||(t=yn.mean(e,r)),yn.aggNums(function(a,n){return a+Math.pow(n-t,2)},0,e)/r};yn.stdev=function(e,r,t){return Math.sqrt(yn.variance(e,r,t))};yn.median=function(e){var r=e.slice().sort();return yn.interp(r,.5)};yn.interp=function(e,r){if(!Sv(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 UT=oe((U5e,OT)=>{"use strict";var BT=(m1(),xr(p1)),F5=BT.mod,JK=BT.modHalf,Dv=Math.PI,A0=2*Dv;function KK(e){return e/180*Dv}function QK(e){return e/Dv*180}function E5(e){return Math.abs(e[1]-e[0])>A0-1e-14}function IT(e,r){return JK(r-e,A0)}function eQ(e,r){return Math.abs(IT(e,r))}function HT(e,r){if(E5(r))return!0;var t,a;r[0]<r[1]?(t=r[0],a=r[1]):(t=r[1],a=r[0]),t=F5(t,A0),a=F5(a,A0),t>a&&(a+=A0);var n=F5(e,A0),i=n+A0;return n>=t&&n<=a||i>=t&&i<=a}function rQ(e,r,t,a){if(!HT(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 L5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=E5([t,a]),s,u,f,c,d;l?(s=0,u=Dv,f=A0):t<a?(s=t,f=a):(s=a,f=t),e<r?(c=e,d=r):(c=r,d=e);function h(y,C){return[y*Math.cos(C)+n,i-y*Math.sin(C)]}var p=Math.abs(f-s)<=Dv?0:1;function m(y,C,x){return"A"+[y,y]+" "+[0,p,x]+" "+h(y,C)}var b;return l?c===null?b="M"+h(d,s)+m(d,u,0)+m(d,f,0)+"Z":b="M"+h(c,s)+m(c,u,0)+m(c,f,0)+"ZM"+h(d,s)+m(d,u,1)+m(d,f,1)+"Z":c===null?(b="M"+h(d,s)+m(d,f,0),o&&(b+="L0,0Z")):b="M"+h(c,s)+"L"+h(d,s)+m(d,f,0)+"L"+h(c,f)+m(c,s,1)+"Z",b}function tQ(e,r,t,a,n){return L5(null,e,r,t,a,n,0)}function aQ(e,r,t,a,n){return L5(null,e,r,t,a,n,1)}function nQ(e,r,t,a,n,i){return L5(e,r,t,a,n,i,1)}OT.exports={deg2rad:KK,rad2deg:QK,angleDelta:IT,angleDist:eQ,isFullCircle:E5,isAngleInsideSector:HT,isPtInsideSector:rQ,pathArc:tQ,pathSector:aQ,pathAnnulus:nQ}});var GT=oe(jf=>{"use strict";jf.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};jf.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};jf.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};jf.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};jf.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};jf.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var XT=oe(Wf=>{"use strict";var q5=(m1(),xr(p1)).mod;Wf.segmentsIntersect=VT;function VT(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,d=i-r,h=l-i,p=s*h-f*c;if(p===0)return null;var m=(u*h-f*d)/p,b=(u*c-s*d)/p;return b<0||b>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}Wf.segmentDistance=function(r,t,a,n,i,o,l,s){if(VT(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,d=s-o,h=u*u+f*f,p=c*c+d*d,m=Math.min(Tp(u,f,h,i-r,o-t),Tp(u,f,h,l-r,s-t),Tp(c,d,p,r-i,t-o),Tp(c,d,p,a-i,n-o));return Math.sqrt(m)};function Tp(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 kp,P5,YT;Wf.getTextLocation=function(r,t,a,n){if((r!==P5||n!==YT)&&(kp={},P5=r,YT=n),kp[a])return kp[a];var i=r.getPointAtLength(q5(a-n/2,t)),o=r.getPointAtLength(q5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(q5(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 kp[a]=c,c};Wf.clearLocationCache=function(){P5=null};Wf.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,d;function h(m){var b=r.getPointAtLength(m);m===0?c=b:m===u&&(d=b);var y=b.x<n?n-b.x:b.x>i?b.x-i:0,C=b.y<o?o-b.y:b.y>l?b.y-l:0;return Math.sqrt(y*y+C*C)}for(var p=h(s);p;){if(s+=p+a,s>f)return;p=h(s)}for(p=h(f);p;){if(f-=p+a,s>f)return;p=h(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-d.x)<.1&&Math.abs(c.y-d.y)<.1}};Wf.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,d,h,p;u<l;){if(d=(f+c)/2,h=r.getPointAtLength(d),p=h[a]-t,Math.abs(p)<o)return h;s*p>0?c=d:f=d,u++}return h}});var Cp=oe(Fv=>{"use strict";var Eu={};Fv.throttle=function(r,t,a){var n=Eu[r],i=Date.now();if(!n){for(var o in Eu)Eu[o].ts<i-6e4&&delete Eu[o];n=Eu[r]={ts:0,timer:null}}jT(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)};Fv.done=function(e){var r=Eu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Fv.clear=function(e){if(e)jT(Eu[e]),delete Eu[e];else for(var r in Eu)Fv.clear(r)};function jT(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var ZT=oe((X5e,WT)=>{"use strict";WT.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var $T=oe((j5e,Sp)=>{"use strict";Sp.exports=R5;Sp.exports.isMobile=R5;Sp.exports.default=R5;var iQ=/(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,oQ=/CrOS/,lQ=/android|ipad|playbook|silk/i;function R5(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=iQ.test(r)&&!oQ.test(r)||!!e.tablet&&lQ.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var KT=oe((W5e,JT)=>{"use strict";var sQ=Qt(),uQ=$T();JT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=fQ(),typeof t!="string")return!0;var a=uQ({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(sQ(u)&&(u=+u),u>=13)return!0}}}return a};function fQ(){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 ek=oe((Z5e,QT)=>{"use strict";var cQ=Lt();QT.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]=cQ.select(this)}),n}});var tk=oe(($5e,rk)=>{"use strict";var vQ=_t();rk.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=vQ.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var nk=oe((J5e,ak)=>{"use strict";ak.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 ok=oe((K5e,ik)=>{"use strict";ik.exports=function(r){for(var t=pQ(r)?hQ:dQ,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function dQ(e){return e.visible===!0}function hQ(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function pQ(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var sk=oe((Q5e,lk)=>{"use strict";lk.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 fk={};Ua(fk,{default:()=>yQ});function gQ(e){return typeof e=="string"&&(e=e.replace(mQ,"")),(0,uk.default)(e)?Number(e):void 0}var uk,mQ,yQ,ck=Oa(()=>{"use strict";uk=H_(Qt());Za();mQ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;yQ=gQ});var hk=oe((r6e,dk)=>{"use strict";var bQ=/<[^>]*>/g,_Q=/[\p{S}\p{P}]/gu,xQ=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,wQ=/�/g,AQ=/\s+/g,Dp="-",vk=Dp.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),MQ=new RegExp(vk+"{3,}","g"),TQ=new RegExp(vk+"$","g"),kQ=60;function CQ(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}dk.exports=function(r,t=kQ){var a=CQ(r!=null?r:"").replace(wQ,"").replace(bQ," ").replace(_Q,n=>n===Dp?n:"").toLowerCase().trim().replace(AQ,Dp).replace(xQ,"").replace(MQ,Dp);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(TQ,"")}});var pr=oe((t6e,kk)=>{"use strict";var Ev=Lt(),SQ=d1().utcFormat,DQ=Fy().format,_k=Qt(),xk=(Za(),xr(nn)),wk=xk.FP_SAFE,FQ=-wk,pk=xk.BADNUM,qe={};kk.exports=qe;qe.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 mk={};qe.warnBadFormat=function(e){var r=String(e);mk[r]||(mk[r]=1,qe.warn('encountered bad format: "'+r+'"'))};qe.noFormat=function(e){return String(e)};qe.numberFormat=function(e){var r;try{r=DQ(qe.adjustFormat(e))}catch(t){return qe.warnBadFormat(e),qe.noFormat}return r};qe.nestedProperty=Q2();qe.keyedContainer=ux();qe.relativeAttr=cx();qe.isPlainObject=d0();qe.toLogRange=qh();qe.relinkPrivateKeys=px();var M0=ro();qe.isArrayBuffer=M0.isArrayBuffer;qe.isTypedArray=M0.isTypedArray;qe.isArrayOrTypedArray=M0.isArrayOrTypedArray;qe.isArray1D=M0.isArray1D;qe.ensureArray=M0.ensureArray;qe.concat=M0.concat;qe.maxRowLength=M0.maxRowLength;qe.minRowLength=M0.minRowLength;var Ak=(m1(),xr(p1));qe.mod=Ak.mod;qe.modHalf=Ak.modHalf;var T0=zA();qe.valObjectMeta=T0.valObjectMeta;qe.coerce=T0.coerce;qe.coerce2=T0.coerce2;qe.coerceFont=T0.coerceFont;qe.coercePattern=T0.coercePattern;qe.coerceHoverinfo=T0.coerceHoverinfo;qe.coerceSelectionMarkerOpacity=T0.coerceSelectionMarkerOpacity;qe.validate=T0.validate;var Mo=RT();qe.dateTime2ms=Mo.dateTime2ms;qe.isDateTime=Mo.isDateTime;qe.ms2DateTime=Mo.ms2DateTime;qe.ms2DateTimeLocal=Mo.ms2DateTimeLocal;qe.cleanDate=Mo.cleanDate;qe.isJSDate=Mo.isJSDate;qe.formatDate=Mo.formatDate;qe.incrementMonth=Mo.incrementMonth;qe.dateTick0=Mo.dateTick0;qe.dfltRange=Mo.dfltRange;qe.findExactDates=Mo.findExactDates;qe.MIN_MS=Mo.MIN_MS;qe.MAX_MS=Mo.MAX_MS;var Zf=D5();qe.findBin=Zf.findBin;qe.sorterAsc=Zf.sorterAsc;qe.sorterDes=Zf.sorterDes;qe.distinctVals=Zf.distinctVals;qe.roundUp=Zf.roundUp;qe.sort=Zf.sort;qe.findIndexOfMin=Zf.findIndexOfMin;qe.sortObjectKeys=(Mp(),xr(Ap)).default;var Lu=NT();qe.aggNums=Lu.aggNums;qe.len=Lu.len;qe.mean=Lu.mean;qe.geometricMean=Lu.geometricMean;qe.median=Lu.median;qe.midRange=Lu.midRange;qe.variance=Lu.variance;qe.stdev=Lu.stdev;qe.interp=Lu.interp;var Ol=vp();qe.init2dArray=Ol.init2dArray;qe.transposeRagged=Ol.transposeRagged;qe.dot=Ol.dot;qe.translationMatrix=Ol.translationMatrix;qe.rotationMatrix=Ol.rotationMatrix;qe.rotationXYMatrix=Ol.rotationXYMatrix;qe.apply3DTransform=Ol.apply3DTransform;qe.apply2DTransform=Ol.apply2DTransform;qe.apply2DTransform2=Ol.apply2DTransform2;qe.convertCssMatrix=Ol.convertCssMatrix;qe.inverseTransformMatrix=Ol.inverseTransformMatrix;var Es=UT();qe.deg2rad=Es.deg2rad;qe.rad2deg=Es.rad2deg;qe.angleDelta=Es.angleDelta;qe.angleDist=Es.angleDist;qe.isFullCircle=Es.isFullCircle;qe.isAngleInsideSector=Es.isAngleInsideSector;qe.isPtInsideSector=Es.isPtInsideSector;qe.pathArc=Es.pathArc;qe.pathSector=Es.pathSector;qe.pathAnnulus=Es.pathAnnulus;var R1=GT();qe.isLeftAnchor=R1.isLeftAnchor;qe.isCenterAnchor=R1.isCenterAnchor;qe.isRightAnchor=R1.isRightAnchor;qe.isTopAnchor=R1.isTopAnchor;qe.isMiddleAnchor=R1.isMiddleAnchor;qe.isBottomAnchor=R1.isBottomAnchor;var z1=XT();qe.segmentsIntersect=z1.segmentsIntersect;qe.segmentDistance=z1.segmentDistance;qe.getTextLocation=z1.getTextLocation;qe.clearLocationCache=z1.clearLocationCache;qe.getVisibleSegment=z1.getVisibleSegment;qe.findPointOnPath=z1.findPointOnPath;var Lp=Dn();qe.extendFlat=Lp.extendFlat;qe.extendDeep=Lp.extendDeep;qe.extendDeepAll=Lp.extendDeepAll;qe.extendDeepNoArrays=Lp.extendDeepNoArrays;var z5=Cu();qe.log=z5.log;qe.warn=z5.warn;qe.error=z5.error;var EQ=(C1(),xr(Av));qe.counterRegex=EQ.counter;var N5=Cp();qe.throttle=N5.throttle;qe.throttleDone=N5.done;qe.clearThrottle=N5.clear;var Ul=Mv();qe.getGraphDiv=Ul.getGraphDiv;qe.isPlotDiv=Ul.isPlotDiv;qe.removeElement=Ul.removeElement;qe.addStyleRule=Ul.addStyleRule;qe.addRelatedStyleRule=Ul.addRelatedStyleRule;qe.deleteRelatedStyleRule=Ul.deleteRelatedStyleRule;qe.setStyleOnHover=Ul.setStyleOnHover;qe.getFullTransformMatrix=Ul.getFullTransformMatrix;qe.getElementTransformMatrix=Ul.getElementTransformMatrix;qe.getElementAndAncestors=Ul.getElementAndAncestors;qe.equalDomRects=Ul.equalDomRects;qe.clearResponsive=ZT();qe.preserveDrawingBuffer=KT();qe.makeTraceGroups=ek();qe._=tk();qe.notifier=u5();qe.filterUnique=nk();qe.filterVisible=ok();qe.pushUnique=y5();qe.increment=sk();qe.cleanNumber=(ck(),xr(fk)).default;qe.slugify=hk();qe.ensureNumber=function(r){return _k(r)?(r=Number(r),r>wk||r<FQ?pk:r):pk};qe.isIndex=function(e,r){return r!==void 0&&e>=r?!1:_k(e)&&e>=0&&e%1===0};qe.noop=cp();qe.identity=wp();qe.repeat=function(e,r){for(var t=new Array(r),a=0;a<r;a++)t[a]=e;return t};qe.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=qe.nestedProperty(e,i.replace("?",t)),l=qe.nestedProperty(e,i.replace("?",a)),s=o.get();o.set(l.get()),l.set(s)}};qe.raiseToTop=function(r){r.parentNode.appendChild(r)};qe.cancelTransition=function(e){return e.transition().duration(0)};qe.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};qe.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};qe.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};qe.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?(qe.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};qe.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};qe.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};qe.syncOrAsync=function(e,r,t){var a,n;function i(){return qe.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)};qe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};qe.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]]}};qe.mergeArray=function(e,r,t,a){var n=typeof a=="function";if(qe.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}};qe.mergeArrayCastPositive=function(e,r,t){return qe.mergeArray(e,r,t,function(a){var n=+a;return isFinite(n)&&n>0?n:0})};qe.fillArray=function(e,r,t,a){if(a=a||qe.identity,qe.isArrayOrTypedArray(e))for(var n=0;n<r.length;n++)r[n][t]=a(e[n])};qe.castOption=function(e,r,t,a){a=a||qe.identity;var n=qe.nestedProperty(e,t).get();return qe.isArrayOrTypedArray(n)?Array.isArray(r)&&qe.isArrayOrTypedArray(n[r[0]])?a(n[r[0]][r[1]]):a(n[r]):n};qe.extractOption=function(e,r,t,a){if(t in e)return e[t];var n=qe.nestedProperty(r,a).get();if(!Array.isArray(n))return n};qe.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(qe.isIndex(o)||qe.isArrayOrTypedArray(o)&&qe.isIndex(o[0])&&qe.isIndex(o[1])){var l=o,s=t?t[l]:l;n(s)&&(e[s].selected=1)}}};qe.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var a=qe.nestedProperty(e,t).get();return qe.isArrayOrTypedArray(a)?a:!1}else if(qe.isArrayOrTypedArray(t))return t;return!1};function Mk(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):qe.isTypedArray(s)?n===-1?a[l]=s.subarray():a[l]=s.subarray(0,n):s&&typeof s=="object"?a[l]=Mk(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}qe.minExtend=Mk;qe.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};qe.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var LQ=/Version\/[\d\.]+.*Safari/;qe.isSafari=function(){return LQ.test(window.navigator.userAgent)};var qQ=/iPad|iPhone|iPod/;qe.isIOS=function(){return qQ.test(window.navigator.userAgent)};var PQ=/Macintosh.+AppleWebKit.+Gecko\)$/;qe.isMacWKWebView=()=>PQ.test(window.navigator.userAgent);var RQ=/Firefox\/(\d+)\.\d+/;qe.getFirefoxVersion=function(){var e=RQ.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};qe.isD3Selection=function(e){return e instanceof Ev.selection};qe.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};qe.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};qe.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 zQ=/^([^\[\.]+)\.(.+)?/,NQ=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Fp(e,r){return r in e&&!Object.prototype.hasOwnProperty.call(e,r)}qe.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(zQ)){if(n=e[t],a=r[1],Fp(e,a))continue;delete e[t],e[a]=qe.extendDeepNoArrays(e[a]||{},qe.objectFromPath(t,qe.expandObjectPaths(n))[a])}else if(r=t.match(NQ)){if(n=e[t],a=r[1],Fp(e,a))continue;if(i=parseInt(r[2]),delete e[t],e[a]=e[a]||[],r[3]===".")l=r[4],o=e[a][i]=e[a][i]||{},qe.extendDeepNoArrays(o,qe.objectFromPath(l,qe.expandObjectPaths(n)));else{if(Fp(e,a))continue;e[a][i]=qe.expandObjectPaths(n)}}else{if(Fp(e,t))continue;e[t]=qe.expandObjectPaths(e[t])}}return e};qe.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};qe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Tk=/^\w*$/;qe.templateString=function(e,r){var t={};return e.replace(qe.TEMPLATE_STRING_REGEX,function(a,n){var i;return Tk.test(n)?i=r[n]:(t[n]=t[n]||qe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var BQ={max:10,count:0,name:"hovertemplate"};qe.hovertemplateString=e=>B5(Ha(ga({},e),{opts:BQ}));var IQ={max:10,count:0,name:"texttemplate"};qe.texttemplateString=e=>B5(Ha(ga({},e),{opts:IQ}));var HQ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function OQ(e){var r=e.match(HQ);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var UQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};qe.texttemplateStringForShapes=e=>B5(Ha(ga({},e),{opts:UQ}));var gk=/^[:|\|]/;function B5({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(qe.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),d=["xother_","yother_"].includes(l),h=u||f||d||c;(f||c)&&(l=l.substring(1)),(d||c)&&(l=l.substring(0,l.length-1));let p=null,m=null;if(n.parseMultDiv){var b=OQ(l);l=b.key,p=b.op,m=b.number}let y;if(h){if(a[l]===void 0)return"";y=a[l]}else for(let A of e)if(A){if(A.hasOwnProperty(l)){y=A[l];break}if(Tk.test(l)||(y=qe.nestedProperty(A,l).get(!0)),y!==void 0)break}if(y===void 0){let{count:A,max:T,name:M}=n,E=t===!1?o:t;return A<T&&qe.warn([`Variable '${l}' in ${M} could not be found!`,"Please verify that the template is correct.",`Using value: '${E}'.`].join(" ")),A===T&&qe.warn(`Too many '${M}' warnings - additional warnings will be suppressed.`),n.count++,E}if(p==="*"&&(y*=m),p==="/"&&(y/=m),s){var C;if(s[0]===":"&&(C=r?r.numberFormat:qe.numberFormat,y!==""&&(y=C(s.replace(gk,""))(y))),s[0]==="|"){C=r?r.timeFormat:SQ;var x=qe.dateTime2ms(y);y=qe.formatDate(x,s.replace(gk,""),!1,C)}}else{var _=l+"Label";a.hasOwnProperty(_)&&(y=a[_])}return h&&(y="("+y+")",(f||c)&&(y=" "+y),(d||c)&&(y=y+" ")),y})}var Ep=48,yk=57;qe.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>=Ep&&o<=yk,u=l>=Ep&&l<=yk;if(s&&(a=10*a+o-Ep),u&&(n=10*n+l-Ep),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var P1=2e9;qe.seedPseudoRandom=function(){P1=2e9};qe.pseudoRandom=function(){var e=P1;return P1=(69069*P1+1)%4294967296,Math.abs(P1-e)<429496729?qe.pseudoRandom():P1/4294967296};qe.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=qe.extractOption(e,r,"htx","hovertext");if(qe.isValidTextValue(n))return a(n);var i=qe.extractOption(e,r,"tx","text");if(qe.isValidTextValue(i))return a(i)};qe.isValidTextValue=function(e){return e||e===0};qe.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};qe.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};qe.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};qe.strRotate=function(e){return e?"rotate("+e+")":""};qe.strScale=function(e){return e!==1?"scale("+e+")":""};qe.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,qe.strTranslate(n-u*(t+o),i-u*(a+l))+qe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};qe.setTransormAndDisplay=function(e,r){e.attr("transform",qe.getTextTransform(r)),e.style("display",r.scale?null:"none")};qe.ensureUniformFontSize=function(e,r){var t=qe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};qe.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)};qe.bigFont=function(e){return Math.round(1.2*e)};var bk=qe.getFirefoxVersion(),GQ=bk!==null&&bk<86;qe.getPositionFromD3Event=function(){return GQ?[Ev.event.layerX,Ev.event.layerY]:[Ev.event.offsetX,Ev.event.offsetY]}});var Dk=oe(()=>{"use strict";var YQ=pr(),Ck={"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(I5 in Ck)Sk=I5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),YQ.addStyleRule(Sk,Ck[I5]);var Sk,I5});var H5=oe((o6e,Fk)=>{Fk.exports=!0});var U5=oe((l6e,Ek)=>{"use strict";var VQ=H5(),O5;typeof window.matchMedia=="function"?O5=!window.matchMedia("(hover: none)").matches:O5=VQ;Ek.exports=O5});var Rp=oe((s6e,G5)=>{"use strict";var N1=typeof Reflect=="object"?Reflect:null,Lk=N1&&typeof N1.apply=="function"?N1.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},qp;N1&&typeof N1.ownKeys=="function"?qp=N1.ownKeys:Object.getOwnPropertySymbols?qp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:qp=function(r){return Object.getOwnPropertyNames(r)};function XQ(e){console&&console.warn&&console.warn(e)}var Pk=Number.isNaN||function(r){return r!==r};function qa(){qa.init.call(this)}G5.exports=qa;G5.exports.once=$Q;qa.EventEmitter=qa;qa.prototype._events=void 0;qa.prototype._eventsCount=0;qa.prototype._maxListeners=void 0;var qk=10;function Pp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qa,"defaultMaxListeners",{enumerable:!0,get:function(){return qk},set:function(e){if(typeof e!="number"||e<0||Pk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");qk=e}});qa.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};qa.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Pk(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 Rk(e){return e._maxListeners===void 0?qa.defaultMaxListeners:e._maxListeners}qa.prototype.getMaxListeners=function(){return Rk(this)};qa.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")Lk(s,this,t);else for(var u=s.length,f=Hk(s,u),a=0;a<u;++a)Lk(f[a],this,t);return!0};function zk(e,r,t,a){var n,i,o;if(Pp(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=Rk(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,XQ(l)}return e}qa.prototype.addListener=function(r,t){return zk(this,r,t,!1)};qa.prototype.on=qa.prototype.addListener;qa.prototype.prependListener=function(r,t){return zk(this,r,t,!0)};function jQ(){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 Nk(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=jQ.bind(a);return n.listener=t,a.wrapFn=n,n}qa.prototype.once=function(r,t){return Pp(t),this.on(r,Nk(this,r,t)),this};qa.prototype.prependOnceListener=function(r,t){return Pp(t),this.prependListener(r,Nk(this,r,t)),this};qa.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Pp(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():WQ(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};qa.prototype.off=qa.prototype.removeListener;qa.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 Bk(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?ZQ(n):Hk(n,n.length)}qa.prototype.listeners=function(r){return Bk(this,r,!0)};qa.prototype.rawListeners=function(r){return Bk(this,r,!1)};qa.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Ik.call(e,r)};qa.prototype.listenerCount=Ik;function Ik(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}qa.prototype.eventNames=function(){return this._eventsCount>0?qp(this._events):[]};function Hk(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function WQ(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function ZQ(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function $Q(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))}Ok(e,r,i,{once:!0}),r!=="error"&&JQ(e,n,{once:!0})})}function JQ(e,r,t){typeof e.on=="function"&&Ok(e,"error",r,t)}function Ok(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 Lv=oe((u6e,Uk)=>{"use strict";var Y5=Rp().EventEmitter,KQ={init:function(e){if(e._ev instanceof Y5)return e;var r=new Y5,t=new Y5;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}};Uk.exports=KQ});var Vk=oe((f6e,Yk)=>{"use strict";var Gk=pr(),QQ=m0().dfltConfig;function eee(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)?Gk.extendDeep([],a):Gk.extendDeepAll({},a):t[n]=a;return t}var qu={};qu.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>QQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};qu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};qu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};qu.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++)qu.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};qu.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++)qu.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};qu.plotDo=function(e,r,t){e.autoplay=!0,t=eee(e,t),r.apply(null,t)};Yk.exports=qu});var V5=oe((c6e,Xk)=>{"use strict";Xk.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var H1=oe(Fn=>{"use strict";var Jo=_t(),qv=pr(),Np=Wo(),X5=F1(),ree=V5(),tee=Tv(),aee=m0().configAttributes,jk=Zo(),Gl=qv.extendDeepAll,B1=qv.isPlainObject,nee=qv.isArrayOrTypedArray,Bp=qv.nestedProperty,iee=qv.valObjectMeta,j5="_isSubplotObj",Ip="_isLinkedToArray",oee="_arrayAttrRegexps",Zk="_deprecated",W5=[j5,Ip,oee,Zk];Fn.IS_SUBPLOT_OBJ=j5;Fn.IS_LINKED_TO_ARRAY=Ip;Fn.DEPRECATED=Zk;Fn.UNDERSCORE_ATTRS=W5;Fn.get=function(){var e={};return Jo.allTypes.forEach(function(r){e[r]=see(r)}),{defs:{valObjects:iee,metaKeys:W5.concat(["description","role","editType","impliedEdits"]),editType:{traces:jk.traces,layout:jk.layout},impliedEdits:{}},traces:e,layout:uee(),frames:fee(),animation:I1(tee),config:I1(aee)}};Fn.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(W5.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!Fn.isValObject(o)&&B1(o)&&i!=="impliedEdits"&&Fn.crawl(o,r,n+1,l)}})};Fn.isValObject=function(e){return e&&e.valType!==void 0};Fn.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 d=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));d&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],d=f+t[u];if(u===t.length-1)nee(c)&&r.push(i+d);else if(a[u]){if(Array.isArray(c))for(var h=0;h<c.length;h++)B1(c[h])&&l(c[h],u+1,d+"["+h+"].")}else B1(c)&&l(c,u+1,d+".")}return n=e,i="",Fn.crawl(Np,o),e._module&&e._module.attributes&&Fn.crawl(e._module.attributes,o),r};Fn.getTraceValObject=function(e,r){var t=r[0],a=1,n,i,o=e._module;if(o||(o=(Jo.modules[e.type||Np.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=Np[t]),$k(i,r,a)};Fn.getLayoutValObject=function(e,r){var t=lee(e,r[0]);return $k(t,r,1)};function lee(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 Jo.componentsRegistry){if(n=Jo.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 X5?X5[r]:!1}function $k(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(zp(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(B1(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!zp(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!zp(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(!zp(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function zp(e){return e===Math.round(e)&&e>=0}function see(e){var r,t;r=Jo.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Gl({},Np),i=Gl({},r.attributes);Fn.crawl(i,function(s,u,f,c,d){Bp(n,d).set(void 0),s===void 0&&Bp(i,d).set(void 0)}),Gl(a,n),Jo.traceIs(e,"noOpacity")&&delete a.opacity,Jo.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Jo.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Gl(a,i),t.attributes&&Gl(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:I1(a)};if(r.layoutAttributes){var l={};Gl(l,r.layoutAttributes),o.layoutAttributes=I1(l)}return r.animatable||Fn.crawl(o,function(s){Fn.isValObject(s)&&"anim"in s&&delete s.anim}),o}function uee(){var e={},r,t;Gl(e,X5);for(r in Jo.subplotsRegistry)if(t=Jo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)Wk(e,t,t.attr[a]);else{var n=t.attr==="subplot"?t.name:t.attr;Wk(e,t,n)}for(r in Jo.componentsRegistry){t=Jo.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"?Gl(e,t.layoutAttributes):t.layoutAttributes&&hee(e,t.layoutAttributes,t.name)}return{layoutAttributes:I1(e)}}function fee(){var e={frames:Gl({},ree)};return I1(e),e.frames}function I1(e){return cee(e),vee(e),dee(e),e}function cee(e){function r(t,a,n){!Fn.isValObject(t)&&B1(t)&&(t.role="object")}Fn.crawl(e,r)}function vee(e){function r(t,a,n){if(t){var i=t[Ip];i&&(delete t[Ip],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}Fn.crawl(e,r)}function dee(e){function r(t){for(var a in t)if(B1(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 Wk(e,r,t){var a=Bp(e,t),n=Gl({},r.layoutAttributes);n[j5]=!0,a.set(n)}function hee(e,r,t){var a=Bp(e,t);a.set(Gl(a.get()||{},r))}});var ka=oe($f=>{"use strict";var O1=pr(),pee=Wo(),k0="templateitemname",Z5={name:{valType:"string",editType:"none"}};Z5[k0]={valType:"string",editType:"calc"};$f.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Z5.name,r[k0]=Z5[k0],r};$f.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=O1.coerce(i,{},pee,"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}};$f.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);O1.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};$f.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[Kk(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[k0]=u[k0];if(!Jk(c))return f._template=n,f;for(var d=0;d<i.length;d++){var h=i[d];if(h.name===c)return o[c]=1,f._template=h,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],d=c.name;if(Jk(d)&&!o[d]){var h={_template:c,name:d,_input:{_templateitemname:d}};h[k0]=c[k0],u.push(h),o[d]=1}}return u}return{newItem:l,defaultItems:s}};function Jk(e){return e&&typeof e=="string"}function Kk(e){var r=e.length-1;return e.charAt(r)!=="s"&&O1.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}$f.arrayDefaultKey=Kk;$f.arrayEditor=function(e,r,t){var a=(O1.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][k0]=i)}s();function u(h,p){l[h]=p}function f(h,p){i?O1.nestedProperty(l[o],h).set(p):l[o+"."+h]=p}function c(){var h=l;return s(),h}function d(h,p){h&&f(h,p);var m=c();for(var b in m)O1.nestedProperty(e,b).set(m[b])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:d}}});var In={};Ua(In,{AX_ID_PATTERN:()=>_ee,AX_NAME_PATTERN:()=>xee,DFLTRANGEX:()=>Dee,DFLTRANGEY:()=>Fee,DRAGGERSIZE:()=>Cee,HOUR_PATTERN:()=>Aee,MINDRAG:()=>Tee,MINZOOM:()=>kee,REDRAWDELAY:()=>See,SUBPLOT_PATTERN:()=>wee,WEEKDAY_PATTERN:()=>Mee,attrRegex:()=>gee,clipOnAxisFalseQuery:()=>Lee,idRegex:()=>mee,layerValue2layerClass:()=>qee,traceLayerClasses:()=>Eee,xAxisMatch:()=>yee,yAxisMatch:()=>bee,zindexSeparator:()=>Pee});var mee,gee,yee,bee,_ee,xee,wee,Aee,Mee,Tee,kee,Cee,See,Dee,Fee,Eee,Lee,qee,Pee,Hn=Oa(()=>{"use strict";C1();mee={x:Yf("x","( domain)?"),y:Yf("y","( domain)?")},gee=Yf("[xy]axis"),yee=Yf("xaxis"),bee=Yf("yaxis"),_ee=/^[xyz][0-9]*( domain)?$/,xee=/^[xyz]axis[0-9]*$/,wee=/^x([0-9]*)y([0-9]*)$/,Aee="hour",Mee="day of week",Tee=8,kee=20,Cee=20,See=50,Dee=[-1,6],Fee=[-1,4],Eee=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Lee=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],qee={"above traces":"above","below traces":"below"},Pee="z"});var En=oe(io=>{"use strict";var Ree=_t(),$5=(Hn(),xr(In));io.id2name=function(r){if(!(typeof r!="string"||!r.match($5.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};io.name2id=function(r){if(r.match($5.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};io.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match($5.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":"")}};io.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=io.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};io.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)};io.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[io.id2name(r)]};io.getFromTrace=function(e,r,t){var a=e._fullLayout,n=null;if(Ree.traceIs(r,"gl3d")){var i=r.scene;i.slice(0,5)==="scene"&&(n=a[i][t+"axis"])}else n=io.getFromId(e,r[t+"axis"]||t);return n};io.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)};io.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Qk(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}io.isLinked=function(e,r){return Qk(r,e._axisMatchGroups)||Qk(r,e._axisConstraintGroups)}});var C0=oe((m6e,eC)=>{"use strict";function zee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Nee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}eC.exports={clearOutlineControllers:zee,clearOutline:Nee}});var Hp=oe((g6e,rC)=>{"use strict";rC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Pv=oe(Up=>{"use strict";var Op=_t(),y6e=(Hn(),xr(In)).SUBPLOT_PATTERN;Up.getSubplotCalcData=function(e,r,t){var a=Op.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};Up.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=Op.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]};Up.getSubplotData=function(r,t,a){if(!Op.subplotsRegistry[t])return[];for(var n=Op.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 iC=oe(Jf=>{"use strict";var Bee=_t(),U1=pr();Jf.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Jf.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){tC(e,o,n.cache),n.check=function(){if(i){var f=tC(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 U1.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};Jf.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=Jf.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 d=o.value;if(Array.isArray(d))if(d.length===1)d=d[0];else return!1;t&&(t[d]=a)}return i};function tC(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=U1.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}}Jf.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var a=Bee.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 U1.warn("API call to Plotly."+r+" rejected.",o),Promise.reject(o)})};Jf.computeAPICommandBindings=function(e,r,t){var a;switch(Array.isArray(t)||(t=[]),r){case"restyle":a=nC(e,t);break;case"relayout":a=aC(e,t);break;case"update":a=nC(e,[t[0],t[2]]).concat(aC(e,[t[1]]));break;case"animate":a=Iee(e,t);break;default:a=[]}return a};function Iee(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 aC(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if(U1.isPlainObject(a))n=a;else return t;return J5(n,function(i,o,l){t.push({type:"layout",prop:i,value:l})},"",0),t}function nC(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(U1.isPlainObject(a))i=a,t===void 0&&(t=n);else return o;return t===void 0&&(t=null),J5(i,function(l,s,u){var f,c;if(Array.isArray(u)){c=u.slice();var d=Math.min(c.length,e.data.length);t&&(d=Math.min(d,t.length)),f=[];for(var h=0;h<d;h++)f[h]=t?t[h]:h}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 J5(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var o=t+(a>0?".":"")+n;U1.isPlainObject(i)?J5(i,r,o,a+1):r(o,n,i)}})}});var Ln=oe((w6e,pC)=>{"use strict";var x6e=Lt(),Hee=d1().timeFormatLocale,Oee=Fy().formatLocale,Rv=Qt(),Uee=Ly(),Gee=K2().version,ra=_t(),Yee=H1(),Vee=ka(),Qr=pr(),Xee=Nt(),oC=(Za(),xr(nn)).BADNUM,oo=En(),jee=C0().clearOutline,Wee=Hp(),K5=Tv(),Zee=V5(),$ee=Pv().getModuleCalcData,lC=Qr.relinkPrivateKeys,Kf=Qr._,Ir=pC.exports={};Qr.extendFlat(Ir,ra);Ir.attributes=Wo();Ir.attributes.type.values=Ir.allTypes;Ir.fontAttrs=xi();Ir.layoutAttributes=F1();var Yp=iC();Ir.executeAPICommand=Yp.executeAPICommand;Ir.computeAPICommandBindings=Yp.computeAPICommandBindings;Ir.manageCommandObserver=Yp.manageCommandObserver;Ir.hasSimpleAPICommandBindings=Yp.hasSimpleAPICommandBindings;Ir.redrawText=function(e){return e=Qr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ra.getComponentMethod("annotations","draw")(e),ra.getComponentMethod("legend","draw")(e),ra.getComponentMethod("colorbar","draw")(e),r(Ir.previousPromises(e)))},300)})};Ir.resize=function(e){e=Qr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||Qr.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||Qr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,ra.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Ir.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Ir.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Ir.graphJson(e,!1,"object");a.version=Gee;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 Jee=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Kee=["year","month","dayMonth","dayMonthYear"];Ir.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||Ir.createTransitionData(e),n._dfltTitle={plot:Kf(e,"Click to enter Plot title"),subtitle:Kf(e,"Click to enter Plot subtitle"),x:Kf(e,"Click to enter X axis title"),y:Kf(e,"Click to enter Y axis title"),colorbar:Kf(e,"Click to enter Colorscale title"),annotation:Kf(e,"new text")},n._traceWord=Kf(e,"trace");var d=sC(e,Jee);if(a._initialAutoSizeIsDone){var h=a.width,p=a.height;Ir.supplyLayoutGlobalDefaults(i,n,d),i.width||(n.width=h),i.height||(n.height=p),Ir.sanitizeMargins(n)}else{Ir.supplyLayoutGlobalDefaults(i,n,d);var m=!i.width||!i.height,b=n.autosize,y=f.autosizable,C=m&&(b||y);C?Ir.plotAutoSize(e,i,n):m&&Ir.sanitizeMargins(n),!b&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=rre(d,n.separators),n._extraFormat=sC(e,Kee),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var x=n._subplots=ere(),_=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Qee(o,s),Ir.supplyDataDefaults(s,l,i,n);var T=Object.keys(_.x),M=Object.keys(_.y);if(T.length>1&&M.length>1){for(ra.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c<T.length;c++)Qr.pushUnique(x.xaxis,T[c]);for(c=0;c<M.length;c++)Qr.pushUnique(x.yaxis,M[c]);for(var E in A)Qr.pushUnique(x.cartesian,E)}if(n._has=Ir._hasPlotType.bind(n),o.length===l.length)for(c=0;c<l.length;c++)lC(l[c],o[c]);Ir.supplyLayoutModuleDefaults(i,n,l,e._transitionData);var P=n._visibleModules,z=[];for(c=0;c<P.length;c++){var I=P[c].crossTraceDefaults;I&&Qr.pushUnique(z,I)}for(c=0;c<z.length;c++)z[c](l,n);n._hasOnlyLargeSploms=n._basePlotModules.length===1&&n._basePlotModules[0].name==="splom"&&T.length>15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Ir.linkSubplots(l,n,o,a),Ir.cleanPlot(l,n,o,a);var X=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),V=X,N=H;V&&!N?a._bgLayer.remove():N&&!V&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&jee({_fullLayout:a}),tre(l,n),lC(n,a),ra.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Q=n._tracePreGUI,ee={},re;for(re in Q)ee[re]="old";for(c=0;c<l.length;c++)re=l[c].uid,ee[re]||(Q[re]={}),ee[re]="new";for(re in ee)ee[re]==="old"&&delete Q[re];cC(n),ra.getComponentMethod("rangeslider","makeData")(n),!t&&u.length===l.length&&Ir.supplyDefaultsUpdateCalc(u,l)};Ir.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 Qee(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(Qr.randstr(o),a))}return i}function ere(){var e=ra.collectableSubplotTypes,r={},t,a;if(!e){e=[];var n=ra.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++)Qr.pushUnique(e,l[a])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function sC(e,r){var t=e._context.locale;t||(t="en-US");var a=!1,n={};function i(c){for(var d=!0,h=0;h<r.length;h++){var p=r[h];n[p]||(c[p]?n[p]=c[p]:d=!1)}d&&(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=ra.localeRegistry}var f=t.split("-")[0];if(a||f===t)break;t=f}return a||i(ra.localeRegistry.en.format),n}function rre(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=Oee(e).format(Qr.adjustFormat(t))}catch(a){return Qr.warnBadFormat(t),Qr.noFormat}return t},timeFormat:Hee(e).utcFormat}}function tre(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)}Ir.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=[])};Ir._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=ra.modules[n];if(i&&i.categories[e])return!0}return!1};Ir.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],d=c.uid;for(i=0;i<e.length;i++){var h=e[i];if(d===h.uid)continue e}f&&a._infolayer.select(".cb"+d).remove()}};Ir.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],d=o[c],h=oo.getFromId(u,c,"x"),p=oo.getFromId(u,c,"y"),m;for(d?m=l[c]=d:(m=l[c]={},m.id=c),h._counterAxes.push(p._id),p._counterAxes.push(h._id),h._subplotsWith.push(c),p._subplotsWith.push(c),m.xaxis=h,m.yaxis=p,m._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var b=e[i];if(b.xaxis===m.xaxis._id&&b.yaxis===m.yaxis._id&&b.cliponaxis===!1){m._hasClipOnAxisFalse=!0;break}}}var y=oo.list(u,null,!0),C;for(n=0;n<y.length;n++){C=y[n];var x=null;C.overlaying&&(x=oo.getFromId(u,C.overlaying),x&&x.overlaying&&(C.overlaying=!1,x=null)),C._mainAxis=x||C,x&&(C.domain=x.domain.slice()),C._anchorAxis=C.anchor==="free"?null:oo.getFromId(u,C.anchor)}for(n=0;n<y.length;n++)if(C=y[n],C._counterAxes.sort(oo.idSort),C._subplotsWith.sort(Qr.subplotSort),C._mainSubplot=are(C,r),C._counterAxes.length&&(C.automargin&&C.mirror&&C.anchor!=="free"||ra.getComponentMethod("rangeslider","isVisible")(C))){var _=1,A=0;for(i=0;i<C._counterAxes.length;i++){var T=oo.getFromId(u,C._counterAxes[i]);_=Math.min(_,T.domain[0]),A=Math.max(A,T.domain[1])}_<A&&(C._counterDomainMin=_,C._counterDomainMax=A)}};function are(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 d=oo.getFromId(t,f);if(l&&d.overlaying===l){i=c;break}}}return i||o}Ir.supplyDataDefaults=function(e,r,t,a){var n=a._modules,i=a._visibleModules,o=a._basePlotModules,l=0,s=0,u,f,c;function d(C){r.push(C);var x=C._module;x&&(Qr.pushUnique(n,x),C.visible===!0&&Qr.pushUnique(i,x),Qr.pushUnique(o,C._module.basePlotModule),l++,C._input.visible!==!1&&s++)}var h={},p=[],m=(t.template||{}).data||{},b=Vee.traceTemplater(m);for(u=0;u<e.length;u++)c=e[u],f=b.newTrace(c),f.uid=a._traceUids[u],Ir.supplyTraceDefaults(c,f,s,a,u),f.index=u,f._input=c,d(f),ra.traceIs(f,"carpetAxis")&&(h[f.carpet]=f),ra.traceIs(f,"carpetDependent")&&p.push(u);for(u=0;u<p.length;u++)if(f=r[p[u]],!!f.visible){var y=h[f.carpet];if(f._carpet=y,!y||!y.visible){f.visible=!1;continue}f.xaxis=y.xaxis,f.yaxis=y.yaxis}};Ir.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function a(n,i){return Qr.coerce(e||{},t,K5,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]=Ir.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=Ir.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=Ir.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=Ir.supplyAnimationTransitionDefaults(e.transition||{});return t};Ir.supplyAnimationFrameDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e||{},r,K5.frame,a,n)}return t("duration"),t("redraw"),r};Ir.supplyAnimationTransitionDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e||{},r,K5.transition,a,n)}return t("duration"),t("easing"),r};Ir.supplyFrameDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e,r,Zee,a,n)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};Ir.supplyTraceDefaults=function(e,r,t,a,n){var i=a.colorway||Xee.defaults,o=i[t%i.length],l;function s(x,_){return Qr.coerce(e,r,Ir.attributes,x,_)}var u=s("visible");s("type"),s("name",a._traceWord+" "+n),s("uirevision",a.uirevision);var f=Ir.getModule(r);if(r._module=f,f){var c=f.basePlotModule,d=c.attr,h=c.attributes;if(d&&h){var p=a._subplots,m="";if(Array.isArray(d))for(l=0;l<d.length;l++){var b=d[l],y=Qr.coerce(e,r,h,b);p[b]&&Qr.pushUnique(p[b],y),m+=y}else m=Qr.coerce(e,r,h,d);p[c.name]&&Qr.pushUnique(p[c.name],m)}}if(u&&(s("customdata"),s("ids"),s("meta"),ra.traceIs(r,"showLegend")?(Qr.coerce(e,r,f.attributes.showlegend?f.attributes:Ir.attributes,"showlegend"),Qr.coerce(e,r,f.attributes.legend?f.attributes:Ir.attributes,"legend"),s("legendwidth"),s("legendgroup"),s("legendgrouptitle.text"),Qr.coerce(e,r,f.attributes.legend?f.attributes:Ir.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,o,a),ra.traceIs(r,"noOpacity")||s("opacity"),ra.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),ra.traceIs(r,"noHover")||(r.hovertemplate||Qr.coerceHoverinfo(e,r,a),r.type!=="parcats"&&ra.getComponentMethod("fx","supplyDefaults")(e,r,o,a)),f&&f.selectPoints)){var C=s("selectedpoints");Qr.isTypedArray(C)&&(r.selectedpoints=Array.from(C))}return r};Ir.supplyLayoutGlobalDefaults=function(e,r,t){function a(c,d){return Qr.coerce(e,r,Ir.layoutAttributes,c,d)}var n=e.template;Qr.isPlainObject(n)&&(r.template=n,r._template=n.layout,r._dataTemplate=n.data),a("autotypenumbers");var i=Qr.coerceFont(a,"font"),o=i.size;Qr.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),Qr.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&&Ir.sanitizeMargins(r),ra.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),ra.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),ra.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,a),ra.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,a),a("meta"),Qr.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),ra.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),ra.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,a),Qr.coerce(e,r,Wee,"scattermode")};function Gp(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}Ir.plotAutoSize=function(r,t,a){var n=r._context||{},i=n.frameMargins,o,l,s=Qr.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=Gp(u.width)||Gp(u.maxWidth)||a.width,l=Gp(u.height)||Gp(u.maxHeight)||a.height,Rv(i)&&i>0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Ir.layoutAttributes.width.min,d=Ir.layoutAttributes.height.min;o<c&&(o=c),l<d&&(l=d);var h=!t.width&&Math.abs(a.width-o)>1,p=!t.height&&Math.abs(a.height-l)>1;(p||h)&&(h&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Ir.sanitizeMargins(a)};Ir.supplyLayoutModuleDefaults=function(e,r,t,a){var n=ra.componentsRegistry,i=r._basePlotModules,o,l,s,u=ra.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(ra.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(Qr.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)};Ir.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)),Qr.clearThrottle(),Qr.clearResponsive(e),delete e._fontLoadToken,delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()};Ir.style=function(e){var r=e._fullLayout._visibleModules,t=[],a;for(a=0;a<r.length;a++){var n=r[a];n.style&&Qr.pushUnique(t,n.style)}for(a=0;a<t.length;a++)t[a](e)};Ir.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))}};Ir.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};Ir.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function cC(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 vC=2,dC=2;Ir.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=Qr.constrain(n-o.l-o.r,vC,l),f=Qr.constrain(i-o.t-o.b,dC,s),c=Math.max(0,n-u),d=Math.max(0,i-f),h=a._pushmargin,p=a._pushmarginIds;if(o.autoexpand!==!1){if(!t)delete h[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 b=(t.l+t.r)/c;b>1&&(t.l/=b,t.r/=b)}if(d){var y=(t.t+t.b)/d;y>1&&(t.t/=y,t.b/=y)}var C=t.xl!==void 0?t.xl:t.x,x=t.xr!==void 0?t.xr:t.x,_=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;h[r]={l:{val:C,size:t.l+m},r:{val:x,size:t.r+m},b:{val:A,size:t.b+m},t:{val:_,size:t.t+m}},p[r]=1}if(!a._replotting)return Ir.doAutoMargin(e)}};function nre(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=oo.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Ir.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),cC(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Qr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,d=r._pushmargin,h=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var b in d)h[b]||delete d[b];var y=e._fullLayout._reservedMargin;for(var C in y)for(var x in y[C]){var _=y[C][x];o[x]=Math.max(o[x],_)}d.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var A in o){var T=0;for(var M in d)M!=="base"&&Rv(d[M][A].size)&&(T=d[M][A].size>T?d[M][A].size:T);var E=Math.max(0,i[A]-T);o[A]=Math.max(0,o[A]-E)}for(var P in d){var z=d[P].l||{},I=d[P].b||{},X=z.val,H=z.size,V=I.val,N=I.size,Q=t-o.r-o.l,ee=a-o.t-o.b;for(var re in d){if(Rv(H)&&d[re].r){var ae=d[re].r.val,ie=d[re].r.size;if(ae>X){var ue=(H*ae+(ie-Q)*X)/(ae-X),xe=(ie*(1-X)+(H-Q)*(1-ae))/(ae-X);ue+xe>s+u&&(s=ue,u=xe)}}if(Rv(N)&&d[re].t){var De=d[re].t.val,Ye=d[re].t.size;if(De>V){var Ee=(N*De+(Ye-ee)*V)/(De-V),ke=(Ye*(1-V)+(N-ee)*(1-De))/(De-V);Ee+ke>c+f&&(c=Ee,f=ke)}}}}}var je=Qr.constrain(t-i.l-i.r,vC,p),W=Qr.constrain(a-i.t-i.b,dC,m),le=Math.max(0,t-je),de=Math.max(0,a-W);if(le){var K=(s+u)/le;K>1&&(s/=K,u/=K)}if(de){var J=(c+f)/de;J>1&&(c/=J,f/=J)}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&&(Ir.didMarginChange(l,n)||nre(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var fe=3*(1+Object.keys(h).length);if(r._redrawFromAutoMarginCount<fe)return ra.call("_doPlot",e);r._size=l,Qr.warn("Too many auto-margin redraws.")}ire(e)};function ire(e){var r=oo.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a<r.length;a++){var n=r[a][t];n&&n()}})}var uC=["l","r","t","b","p","w","h"];Ir.didMarginChange=function(e,r){for(var t=0;t<uC.length;t++){var a=uC[t],n=e[a],i=r[a];if(!Rv(n)||Math.abs(i-n)>1)return!0}return!1};Ir.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Ir.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function s(c,d){if(typeof c=="function")return d?"_function_":null;if(Qr.isPlainObject(c)){var h={};return Object.keys(c).sort().forEach(function(y){if(["_","["].indexOf(y.charAt(0))===-1){if(typeof c[y]=="function"){d&&(h[y]="_function");return}h[y]=s(c[y],d)}}),h}var p=Array.isArray(c),m=Qr.isTypedArray(c);if((p||m)&&c.dtype&&c.shape){var b=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:Qr.isArrayBuffer(b)?Uee.encode(b):b},d)}return p?c.map(function(y){return s(y,d)}):m?Qr.simpleMap(c,Qr.identity):Qr.isJSDate(c)?Qr.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var d=s(c);return r&&delete d.fit,d})};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)};Ir.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()};Ir.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=Ir.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]=Ir.extendTrace(f.data[o],l.data[a]))}return f};Ir.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)}};Ir.extendObjectWithContainers=function(e,r,t){var a,n,i,o,l,s,u,f,c=Qr.extendDeepNoArrays({},r||{}),d=Qr.expandObjectPaths(c),h={};if(t&&t.length)for(i=0;i<t.length;i++)a=Qr.nestedProperty(d,t[i]),n=a.get(),n===void 0?Qr.nestedProperty(h,t[i]).set(null):(a.set(null),Qr.nestedProperty(h,t[i]).set(n));if(e=Qr.extendDeepNoArrays(e||{},d),t&&t.length){for(i=0;i<t.length;i++)if(l=Qr.nestedProperty(h,t[i]),u=l.get(),!!u){for(s=Qr.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]=Ir.extendObjectWithContainers(f[o],p)}s.set(f)}}return e};Ir.dataArrayContainers=["dimensions"];Ir.layoutArrayContainers=ra.layoutArrayContainers;Ir.extendTrace=function(e,r){return Ir.extendObjectWithContainers(e,r,Ir.dataArrayContainers)};Ir.extendLayout=function(e,r){return Ir.extendObjectWithContainers(e,r,Ir.layoutArrayContainers)};Ir.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 d=f[c],h=e._fullData[d],p=h._module;if(p){if(p.animatable){var m=p.basePlotModule.name;l[m]||(l[m]=[]),l[m].push(d)}e.data[f[c]]=Ir.extendTrace(e.data[f[c]],r[c])}}var b=Qr.expandObjectPaths(Qr.extendDeepNoArrays({},t)),y=/^[xy]axis[0-9]*$/;for(var C in b)y.test(C)&&delete b[C].range;Ir.extendLayout(e.layout,b),delete e.calcdata,Ir.supplyDefaults(e),Ir.doCalcdata(e);var x=Qr.expandObjectPaths(t);if(x){var _=e._fullLayout._plots;for(var A in _){var T=_[A],M=T.xaxis,E=T.yaxis,P=M.range.slice(),z=E.range.slice(),I=null,X=null,H=null,V=null;Array.isArray(x[M._name+".range"])?I=x[M._name+".range"].slice():Array.isArray((x[M._name]||{}).range)&&(I=x[M._name].range.slice()),Array.isArray(x[E._name+".range"])?X=x[E._name+".range"].slice():Array.isArray((x[E._name]||{}).range)&&(X=x[E._name].range.slice()),P&&I&&(M.r2l(P[0])!==M.r2l(I[0])||M.r2l(P[1])!==M.r2l(I[1]))&&(H={xr0:P,xr1:I}),z&&X&&(E.r2l(z[0])!==E.r2l(X[0])||E.r2l(z[1])!==E.r2l(X[1]))&&(V={yr0:z,yr1:X}),(H||V)&&s.push(Qr.extendFlat({plotinfo:T},H,V))}}return Promise.resolve()},o.runFn=function(u){var f,c=e._fullLayout._basePlotModules,d=s.length,h;if(t)for(h=0;h<c.length;h++)c[h].transitionAxes&&c[h].transitionAxes(e,s,i,u);d?(f=Qr.extendFlat({},i),f.duration=0,delete l.cartesian):f=i;for(var p in l){var m=l[p],b=e._fullData[m[0]]._module;b.basePlotModule.plot(e,m,f,u)}},hC(e,i,o)};Ir.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,d=f.yaxis,h=a[c._name].range.slice(),p=a[d._name].range.slice(),m=c.range.slice(),b=d.range.slice();c.setScale(),d.setScale();var y=null,C=null;(c.r2l(h[0])!==c.r2l(m[0])||c.r2l(h[1])!==c.r2l(m[1]))&&(y={xr0:h,xr1:m}),(d.r2l(p[0])!==d.r2l(b[0])||d.r2l(p[1])!==d.r2l(b[1]))&&(C={yr0:p,yr1:b}),(y||C)&&l.push(Qr.extendFlat({plotinfo:f},y,C))}return Promise.resolve()},o.runFn=function(s){for(var u=e._fullData,f=e._fullLayout,c=f._basePlotModules,d,h,p,m=[],b=0;b<u.length;b++)m.push(b);function y(){if(e._fullLayout)for(var x=0;x<c.length;x++)c[x].transitionAxes&&c[x].transitionAxes(e,l,d,s)}function C(){if(e._fullLayout)for(var x=0;x<c.length;x++)c[x].plot(e,p,h,s)}l.length&&r.anim?i.ordering==="traces first"?(d=Qr.extendFlat({},i,{duration:0}),p=m,h=i,setTimeout(y,i.duration),C()):(d=i,p=null,h=Qr.extendFlat({},i,{duration:0}),setTimeout(C,d.duration),y()):l.length?(d=i,y()):r.anim&&(p=m,h=i,C())},hC(e,i,o)};function hC(e,r,t){var a=!1;function n(c){var d=Promise.resolve();if(!c)return d;for(;c.length;)d=d.then(c.shift());return d}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 ra.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var d=0,h=0;function p(){return d++,function(){h++,!a&&h===d&&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 ra.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=[Ir.previousPromises,s,t.prepareFn,Ir.rehover,Ir.reselect,o],f=Qr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Ir.doCalcdata=function(e,r){var t=oo.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=Yee.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 d=n[c];d.cauto!==!1&&(delete d.cmin,delete d.cmax)}function h(m,b){if(i=a[m],o=i._module,!!o.isContainer===b){var y=[];i.visible===!0&&i._length!==0&&o&&o.calc&&(y=o.calc(e,i)),(!Array.isArray(y)||!y[0])&&(y=[{x:oC,y:oC}]),y[0].t||(y[0].t={}),y[0].trace=i,s[m]=y}}for(sre(t,a,n),l=0;l<a.length;l++)h(l,!0);for(l=0;l<a.length;l++)h(l,!1);fC(e);var p=lre(t,e);if(p.length){for(n._numBoxes=0,n._numViolins=0,l=0;l<p.length;l++)h(p[l],!0);for(l=0;l<p.length;l++)h(p[l],!1);fC(e)}ra.getComponentMethod("fx","calc")(e),ra.getComponentMethod("errorbars","calc")(e)};var ore=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function lre(e,r){var t=[],a,n,i,o,l;function s(re,ae,ie){var ue=ae._id.charAt(0);if(re==="histogram2dcontour"){var xe=ae._counterAxes[0],De=oo.getFromId(r,xe),Ye=ue==="x"||xe==="x"&&De.type==="category",Ee=ue==="y"||xe==="y"&&De.type==="category";return function(ke,je){return ke===0||je===0||Ye&&ke===ie[je].length-1||Ee&&je===ie.length-1?-1:(ue==="y"?je:ke)-1}}else return function(ke,je){return ue==="y"?je:ke}}var u={min:function(re){return Qr.aggNums(Math.min,null,re)},max:function(re){return Qr.aggNums(Math.max,null,re)},sum:function(re){return Qr.aggNums(function(ae,ie){return ae+ie},null,re)},total:function(re){return Qr.aggNums(function(ae,ie){return ae+ie},null,re)},mean:function(re){return Qr.mean(re)},"geometric mean":function(re){return Qr.geometricMean(re)},median:function(re){return Qr.median(re)}};function f(re,ae){return re[1]-ae[1]}function c(re,ae){return ae[1]-re[1]}for(a=0;a<e.length;a++){var d=e[a];if(d.type==="category"){var h=d.categoryorder.match(ore);if(h){var p=h[1],m=h[2],b=d._id.charAt(0),y=b==="x",C=[];for(n=0;n<d._categories.length;n++)C.push([d._categories[n],[]]);for(n=0;n<d._traceIndices.length;n++){var x=d._traceIndices[n],_=r._fullData[x];if(_.visible===!0){var A=_.type;ra.traceIs(_,"histogram")&&(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=A==="splom",M=A==="scattergl",E=r.calcdata[x];for(i=0;i<E.length;i++){var P=E[i],z,I;if(T){var X=_._axesDim[d._id];if(!y){var H=_._diag[X][0];H&&(d=r._fullLayout[oo.id2name(H)])}var V=P.trace.dimensions[X].values;for(o=0;o<V.length;o++)for(z=d._categoriesMap[V[o]],l=0;l<P.trace.dimensions.length;l++)if(l!==X){var N=P.trace.dimensions[l];C[z][1].push(N.values[o])}}else if(M){for(o=0;o<P.t.x.length;o++)y?(z=P.t.x[o],I=P.t.y[o]):(z=P.t.y[o],I=P.t.x[o]),C[z][1].push(I);P.t&&P.t._scene&&delete P.t._scene.dirty}else if(P.hasOwnProperty("z")){I=P.z;var Q=s(_.type,d,I);for(o=0;o<I.length;o++)for(l=0;l<I[o].length;l++)z=Q(l,o),z+1&&C[z][1].push(I[o][l])}else{if(z=P.p,z===void 0&&(z=P[b]),isNaN(z)||z<0)continue;for(I=P.s,I===void 0&&(I=P.v),I===void 0&&(I=y?P.y:P.x),Array.isArray(I)||(I===void 0?I=[]:I=[I]),o=0;o<I.length;o++)C[z][1].push(I[o])}}}}d._categoriesValue=C;var ee=[];for(n=0;n<C.length;n++)ee.push([C[n][0],u[p](C[n][1])]);ee.sort(m==="descending"?c:f),d._categoriesAggregatedValue=ee,d._initialCategories=ee.map(function(re){return re[0]}),t=t.concat(d.sortByInitialCategories())}}}return t}function sre(e,r,t){var a={};function n(s){s.clearCalc(),s.type==="multicategory"&&s.setupMultiCategory(r),a[s._id]=1}Qr.simpleMap(e,n);for(var i=t._axisMatchGroups||[],o=0;o<i.length;o++)for(var l in i[o])a[l]||n(t[oo.id2name(l)])}function fC(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]?Qr.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 d=c[n],h=o==="cartesian"?r._plots[d]:r[d];for(i=0;i<f.length;i++)f[i](e,h,d)}else for(i=0;i<f.length;i++)f[i](e)}}Ir.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};Ir.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};Ir.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);ra.getComponentMethod("selections","reselect")(e,n)};Ir.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 d in i){var h=i[d],p=h[0][0].trace._module;p.plot(e,r,Qr.filterVisible(h),a)}r.traceHash=i};Ir.plotBasePlot=function(e,r,t,a,n){var i=ra.getModule(e),o=$ee(r.calcdata,i)[0];i.plot(r,o,a,n)};Ir.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 Qf={};Ua(Qf,{svg:()=>mC,svgAttrs:()=>fre,xlink:()=>gC,xmlns:()=>ure});var ure,mC,gC,fre,ec=Oa(()=>{"use strict";ure="http://www.w3.org/2000/xmlns/",mC="http://www.w3.org/2000/svg",gC="http://www.w3.org/1999/xlink",fre={xmlns:mC,"xmlns:xlink":gC}});var fi={};Ua(fi,{CAP_SHIFT:()=>pre,FROM_BL:()=>cre,FROM_BR:()=>dre,FROM_TL:()=>vre,LINE_SPACING:()=>hre,MID_SHIFT:()=>mre,OPPOSITE_SIDE:()=>gre});var cre,vre,dre,hre,pre,mre,gre,ci=Oa(()=>{"use strict";cre={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},vre={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},dre={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},hre=1.3,pre=.7,mre=.35,gre={left:"right",right:"left",top:"bottom",bottom:"top"}});var vi=oe(Mi=>{"use strict";var fn=Lt(),Ko=pr(),yre=Ko.strTranslate,Q5=(ec(),xr(Qf)),bre=(ci(),xr(fi)).LINE_SPACING,_re=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,t6=e=>e?e.match(_re):null;Mi.matchTex=t6;var xre=e=>{var r=t6(e);return!!r&&!r[1]&&!r[3]};Mi.isPureTex=xre;function AC(e,r,t,a,n,i,o,l){var s=a.select("g"),u=s.node().getBoundingClientRect(),f=u.width,c=u.height,d=o===void 0?f:o,h=l===void 0?c:l;(f>d||c>h)&&(a.style("overflow","hidden"),u=a.node().getBoundingClientRect(),f=u.width,c=u.height);var p=+e.attr("x"),m=+e.attr("y"),b=i||e.node().getBoundingClientRect().height,y=-b/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,p,m]+")"+yre(-f/2,y-c/2)}):r[0]==="l"?m=y-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(p=0,m=y):(p=p-f*(n==="middle"?.5:n==="end"?1:0),m=m+y-c/2),a.attr({x:p,y:m})}function wre(e){e.selectAll("a").each(function(){var r=fn.select(this);["href","xlink:href"].forEach(function(t){var a=r.attr(t);a&&r.attr(t,i6(a)||null)})})}Mi.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&t6(a);n&&!kre()&&(n=null);var i=fn.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=zre(e.node(),a);s&&e.style("pointer-events","all"),Mi.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");Cre(n[2],f,function(d,h,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=d&&d.select("svg");if(!m||!m.node()){l(),s();return}e.style("display","none");var b=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});b.node().appendChild(m.node()),wre(m),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var y=p.width,C=p.height;m.attr({class:o,height:C,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var x=e.node().style.fill||"black",_=m.select("g");_.attr({fill:x,stroke:x}),AC(e,o,b,m,c,u,y,C),t&&t.call(e,b),s(b)})})):l(),e};Mi.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=fn.select(e.node().parentNode),a=t.select("g."+r+"-group"),n=a.select("svg."+r);if(!(a.empty()||n.empty())){var i=e.attr("text-anchor"),o=parseInt(e.node().style.fontSize,10);AC(e,r,a,n,i,o)}}};Mi.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",a=fn.select(r.parentNode).select("g."+t+"-group");return a.empty()?r:a.node()};var Are=/(<|&lt;|&#60;)/g,Mre=/(>|&gt;|&#62;)/g;function Tre(e){return e.replace(Are,"\\lt ").replace(Mre,"\\gt ")}var e6=null,MC=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,yC=!1,bC=!1;function kre(){let e=MC();return e===3||e===4?!0:(e===null?yC||(yC=!0,Ko.warn("MathJax is not loaded. Math equations will not be rendered.")):bC||(bC=!0,Ko.warn("Unsupported MathJax version:",MathJax.version)),!1)}function Cre(e,r,t){let a=MC();var n;let i=function(){if(!e6){let u=MathJax._.output.svg_ts.SVG,f=Ko.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=Ko.extendFlat({},f.linebreaks,{inline:!1})),e6=MathJax._.mathjax.mathjax.document(document,Ko.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+Ko.randstr({},64);n=fn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=Tre(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return e6.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)Ko.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=>{Ko.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var TC={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"},Sre={sub:"0.3em",sup:"-0.6em"},Dre={sub:"-0.21em",sup:"0.42em"},_C="\u200B",xC=["http:","https:","mailto:","",void 0,":"],kC=Mi.NEWLINES=/(\r\n?|\n)/g,a6=/(<[^<>]*>)/,n6=/<(\/?)([^ >]*)(\s+(.*))?>/i,Fre=/<br(\s+.*)?>/i;Mi.BR_TAG_ALL=/<br(\s+.*)?>/gi;var CC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,SC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,DC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Ere=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function rc(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Vp(a)}var Lre=/(^|;)\s*color:/;Mi.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(a6),l=[],s="",u=0,f=0;f<o.length;f++){var c=o[f],d=c.match(n6),h=d&&d[2].toLowerCase();if(h)a.indexOf(h)!==-1&&(l.push(c),s=h);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 qre={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Pre=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Vp(e){return e.replace(Pre,function(r,t){var a;return t.charAt(0)==="#"?a=Rre(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=qre[t],a||r})}Mi.convertEntities=Vp;function Rre(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 zre(e,r){r=r.replace(kC," ");var t=!1,a=[],n,i=-1;function o(){i++;var T=document.createElementNS(Q5.svg,"tspan");fn.select(T).attr({class:"line",dy:i*bre+"em"}),e.appendChild(T),n=T;var M=a;if(a=[{node:T}],M.length>1)for(var E=1;E<M.length;E++)l(M[E])}function l(T){var M=T.type,E={},P;if(M==="a"){P="a";var z=T.target,I=T.href,X=T.popup;I&&(E={"xlink:xlink:show":z==="_blank"||z.charAt(0)!=="_"?"new":"replace",target:z,"xlink:xlink:href":I},X&&(E.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+X+'");return false;'))}else P="tspan";T.style&&(E.style=T.style);var H=document.createElementNS(Q5.svg,P);if(M==="sup"||M==="sub"){s(n,_C),n.appendChild(H);var V=document.createElementNS(Q5.svg,"tspan");s(V,_C),fn.select(V).attr("dy",Dre[M]),E.dy=Sre[M],n.appendChild(H),n.appendChild(V)}else n.appendChild(H);fn.select(H).attr(E),n=T.node=H,a.push(T)}function s(T,M){T.appendChild(document.createTextNode(M))}function u(T){if(a.length===1){Ko.log("Ignoring unexpected end tag </"+T+">.",r);return}var M=a.pop();T!==M.type&&Ko.log("Start tag <"+M.type+"> doesnt match end tag <"+T+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Fre.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(a6),d=0;d<c.length;d++){var h=c[d],p=h.match(n6),m=p&&p[2].toLowerCase(),b=TC[m];if(m==="br")o();else if(b===void 0)s(n,Vp(h));else if(p[1])u(m);else{var y=p[4],C={type:m},x=rc(y,CC);if(x?(x=x.replace(Lre,"$1 fill:"),b&&(x+=";"+b)):b&&(x=b),x&&(C.style=x),m==="a"){t=!0;var _=rc(y,SC);if(_){var A=i6(_);A&&(C.href=A,C.target=rc(y,DC)||"_blank",C.popup=rc(y,Ere))}}l(C)}}return t}function i6(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 xC.indexOf(n)!==-1&&xC.indexOf(i)!==-1?r:""}Mi.sanitizeHTML=function(r){r=r.replace(kC," ");for(var t=document.createElement("p"),a=t,n=[],i=r.split(a6),o=0;o<i.length;o++){var l=i[o],s=l.match(n6),u=s&&s[2].toLowerCase();if(u in TC)if(s[1])n.length&&(a=n.pop());else{var f=s[4],c=rc(f,CC),d=c?{style:c}:{};if(u==="a"){var h=rc(f,SC);if(h){var p=i6(h);if(p){d.href=p;var m=rc(f,DC);m&&(d.target=m)}}}var b=document.createElement(u);a.appendChild(b),fn.select(b).attr(d),a=b,n.push(b)}else a.appendChild(document.createTextNode(Vp(l)))}var y="innerHTML";return t[y]};Mi.lineCount=function(r){return r.selectAll("tspan.line").size()||1};Mi.positionText=function(r,t,a){return r.each(function(){var n=fn.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 wC(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,d=t.gd||{};if(t.gd){d._fullLayout._calcInverseTransform(d);var h=Ko.apply3DTransform(d._fullLayout._invTransform)(f,c);f=h[0],c=h[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var r6="1px ";Mi.makeTextShadow=function(e){var r=r6,t=r6,a=r6;return r+t+a+e+", -"+r+"-"+t+a+e+", "+r+"-"+t+a+e+", -"+r+t+a+e};Mi.makeEditable=function(e,r){var t=r.gd,a=r.delegate,n=fn.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&&fn.select(e.node().parentNode).select(f).style({opacity:0})}function l(u){var f=u.node(),c=document.createRange();c.selectNodeContents(f);var d=window.getSelection();d.removeAllRanges(),d.addRange(c),f.focus()}function s(){var u=fn.select(t),f=u.select(".svg-container"),c=f.append("div"),d=e.node().style,h=parseFloat(d.fontSize||12),p=r.text;p===void 0&&(p=e.attr("data-unformatted")),c.classed("plugin-editable editable",!0).style({position:"absolute","font-family":d.fontFamily||"Arial","font-size":h,color:r.fill||d.fill||"black",opacity:1,"background-color":r.background||"transparent",outline:"#ffffff33 1px solid",margin:[-h/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(p).call(wC(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var m=fn.select(this).attr("class"),b;m?b="."+m.split(" ")[0]+"-math-group":b="[class*=-math-group]",b&&fn.select(e.node().parentNode).select(b).style({opacity:0});var y=this.textContent;fn.select(this).transition().duration(0).remove(),fn.select(document).on("mouseup",null),n.edit.call(e,y)}).on("focus",function(){var m=this;t._editing=!0,fn.select(document).on("mouseup",function(){if(fn.event.target===m)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){fn.event.which===27?(t._editing=!1,e.style({opacity:1}),fn.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),n.cancel.call(e,this.textContent)):(n.input.call(e,this.textContent),fn.select(this).call(wC(e,f,r)))}).on("keydown",function(){fn.event.which===13&&this.blur()}).call(l)}return r.immediate?o():i.on("click",o),fn.rebind(e,n,"on")}});var Ls=oe((M6e,RC)=>{"use strict";var Nre=Lt(),Nv=Qt(),Xp=pr(),tc=Nt(),Bre=Gf().isValid;function Ire(e,r,t){var a=r?Xp.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Xp.isArrayOrTypedArray(n)){for(var o=0;o<n.length;o++)if(Nv(n[o])){i=!0;break}}return Xp.isPlainObject(a)&&(i||a.showscale===!0||Nv(a.cmin)&&Nv(a.cmax)||Bre(a.colorscale)||Xp.isPlainObject(a.colorbar))}var FC=["showscale","autocolorscale","colorscale","reversescale","colorbar"],zv=["min","max","mid","auto"];function EC(e){var r=e._colorAx,t=r||e,a={},n,i,o;for(i=0;i<FC.length;i++)o=FC[i],a[o]=t[o];if(r)for(n="c",i=0;i<zv.length;i++)o=zv[i],a[o]=t["c"+o];else{var l;for(i=0;i<zv.length;i++){if(o=zv[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=zv.indexOf(s)!==-1?n+s:s;t[f]=t["_"+f]=u},a}function LC(e){for(var r=EC(e),t=r.min,a=r.max,n=r.reversescale?qC(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 qC(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 PC(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]=tc.rgbaArray(a[o]);var l=Nre.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 tc.rgbaArrayToString(l(c))}:u?f=function(c){return Nv(c)?l(c):tc.isValid(c)?c:tc.defaultLine}:f=function(c){return Nv(c)?tc.rgbaArrayToString(l(c)):tc.isValid(c)?c:tc.defaultLine},f.domain=l.domain,f.range=function(){return a},f}function Hre(e,r){return PC(LC(e),r)}RC.exports={hasColorscale:Ire,extractOpts:EC,extractScale:LC,flipScale:qC,makeColorScaleFunc:PC,makeColorScaleFuncFromTrace:Hre}});var l6=oe((T6e,BC)=>{"use strict";var zC=(A5(),xr(w5)),Ore=zC.FORMAT_LINK,Ure=zC.DATE_FORMAT_LINK;function Gre(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?o6:NC)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function o6(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: "+Ore+"."].join(" ")}function NC(e,r){return o6(e,r)+[" And for dates see: "+Ure+".","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(" ")}BC.exports={axisHoverFormat:Gre,descriptionOnlyNumbers:o6,descriptionWithDates:NC}});var Yl=oe((C6e,rS)=>{"use strict";var IC=xi(),G1=Il(),eS=Fs().dash,u6=Dn().extendFlat,HC=ka().templatedArray,k6e=Vf().templateFormatStringDescription,OC=l6().descriptionWithDates,Yre=(Za(),xr(nn)).ONEDAY,qs=(Hn(),xr(In)),Vre=qs.HOUR_PATTERN,Xre=qs.WEEKDAY_PATTERN,s6={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},jre=u6({},s6,{values:s6.values.slice().concat(["sync"])});function UC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var GC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},YC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},VC={valType:"data_array",editType:"ticks"},XC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function jC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function WC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var ZC={valType:"color",dflt:G1.defaultLine,editType:"ticks"},$C={valType:"color",dflt:G1.lightLine,editType:"ticks"};function JC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var KC=u6({},eS,{editType:"ticks"}),QC={valType:"boolean",editType:"ticks"};rS.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:G1.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:IC({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:[qs.idRegex.x.toString(),qs.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:[qs.idRegex.x.toString(),qs.idRegex.y.toString()],editType:"calc"},rangebreaks:HC("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:[Xre,Vre,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Yre},editType:"calc"}),tickmode:jre,nticks:UC(),tick0:GC,dtick:YC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:VC,ticktext:{valType:"data_array",editType:"ticks"},ticks:XC,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:jC(),tickwidth:WC(),tickcolor:ZC,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:u6({},eS,{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:IC({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:OC("tick label")},tickformatstops:HC("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:OC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:G1.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:QC,gridcolor:$C,gridwidth:JC(),griddash:KC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:G1.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:G1.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",qs.idRegex.x.toString(),qs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",qs.idRegex.x.toString(),qs.idRegex.y.toString()],editType:"plot"},minor:{tickmode:s6,nticks:UC("minor"),tick0:GC,dtick:YC,tickvals:VC,ticks:XC,ticklen:jC("minor"),tickwidth:WC("minor"),tickcolor:ZC,gridcolor:$C,gridwidth:JC("minor"),griddash:KC,showgrid:QC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var jp=oe((S6e,aS)=>{"use strict";var Pa=Yl(),tS=xi(),f6=Dn().extendFlat,Wre=Zo().overrideAll;aS.exports=Wre({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:Pa.linecolor,outlinewidth:Pa.linewidth,bordercolor:Pa.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Pa.minor.tickmode,nticks:Pa.nticks,tick0:Pa.tick0,dtick:f6({},Pa.dtick,{}),tickvals:Pa.tickvals,ticktext:Pa.ticktext,ticks:f6({},Pa.ticks,{dflt:""}),ticklabeloverflow:f6({},Pa.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:Pa.ticklen,tickwidth:Pa.tickwidth,tickcolor:Pa.tickcolor,ticklabelstep:Pa.ticklabelstep,showticklabels:Pa.showticklabels,labelalias:Pa.labelalias,tickfont:tS({description:"Sets the color bar's tick label font"}),tickangle:Pa.tickangle,tickformat:Pa.tickformat,tickformatstops:Pa.tickformatstops,tickprefix:Pa.tickprefix,showtickprefix:Pa.showtickprefix,ticksuffix:Pa.ticksuffix,showticksuffix:Pa.showticksuffix,separatethousands:Pa.separatethousands,exponentformat:Pa.exponentformat,minexponent:Pa.minexponent,showexponent:Pa.showexponent,title:{text:{valType:"string"},font:tS({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Y1=oe((F6e,iS)=>{"use strict";var Zre=jp(),$re=(C1(),xr(Av)).counter,Jre=(Mp(),xr(Ap)).default,nS=Gf().scales,D6e=Jre(nS);function Wp(e){return"`"+e+"`"}iS.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"?nS[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 "+Wp(u+f));var d=n?" Has an effect only if "+c+" is set to a numerical array.":"",h=a+"auto",p=a+"min",m=a+"max",b=a+"mid",y=Wp(u+h),C=Wp(u+p),x=Wp(u+m),_=C+" and "+x,A={};A[p]=A[m]=void 0;var T={};T[h]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:T},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:T},M[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},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=Zre),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:$re("coloraxis"),dflt:null,editType:"calc"}),M}});var v6=oe((E6e,oS)=>{"use strict";var Kre=Dn().extendFlat,Qre=Y1(),c6=Gf().scales;oS.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:c6.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:c6.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:c6.RdBu,editType:"calc"}},coloraxis:Kre({_isSubplotObj:!0,editType:"calc"},Qre("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var d6=oe((L6e,lS)=>{"use strict";var ete=pr();lS.exports=function(r){return ete.isPlainObject(r.colorbar)}});var m6=oe(p6=>{"use strict";var h6=Qt(),sS=pr(),uS=(Za(),xr(nn)),rte=uS.ONEDAY,tte=uS.ONEWEEK;p6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?rte:1;if(!e)return i;if(h6(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=h6(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};p6.tick0=function(e,r,t,a){if(r==="date")return sS.cleanDate(e,sS.dateTick0(t,a%tte===0?1:0));if(!(a==="D1"||a==="D2"))return h6(e)?Number(e):0}});var g6=oe((P6e,cS)=>{"use strict";var fS=m6(),ate=pr().isArrayOrTypedArray,nte=ro().isTypedArraySpec,ite=ro().decodeTypedArraySpec;cS.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(_){var A=l[_];return nte(A)&&(A=ite(A)),A!==void 0?A:(s._template||{})[_]}var c=f("tick0"),d=f("dtick"),h=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",b;ate(h)?b="array":d?b="linear":p&&!m?b="sync":b="auto";var y=a(u+"tickmode",b);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var C=s.dtick=fS.dtick(d,n);s.tick0=fS.tick0(c,n,t.calendar,C)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?s.tickmode="auto":o||a("ticktext")}}});var b6=oe((R6e,dS)=>{"use strict";var y6=pr(),vS=Yl();dS.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?vS.minor:vS,u=i?"minor.":"",f=y6.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=y6.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),d=y6.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),h=a(u+"ticks",!i&&n.outerTicks||f||c||d?"outside":"");h||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var _6=oe((z6e,hS)=>{"use strict";hS.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 Vl=oe((N6e,pS)=>{"use strict";var Zp=pr(),ote=ka();pS.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=Zp.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=ote.arrayTemplater(t,n,i),f,c;for(f=0;f<l.length;f++){var d=l[f];Zp.isPlainObject(d)?c=u.newItem(d):(c=u.newItem({}),c[i]=!1),c._index=f,c[i]!==!1&&a.handleItemDefaults(d,c,t,a),s.push(c)}var h=u.defaultItems();for(f=0;f<h.length;f++)c=h[f],c._index=s.length,a.handleItemDefaults({},c,t,a,{}),s.push(c);if(Zp.isArrayOrTypedArray(o)){var p=Math.min(o.length,s.length);for(f=0;f<p;f++)Zp.relinkPrivateKeys(s[f],o[f])}return s}});var w6=oe((B6e,gS)=>{"use strict";var x6=pr(),lte=Nt().contrast,mS=Yl(),ste=_6(),ute=Vl();gS.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");x6.isPlainObject(o)||delete t.labelalias;var l=ste(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",d=c.indexOf("inside")!==-1?lte(i.bgColor):f&&f!==mS.color.dflt?f:u.color;if(x6.coerceFont(a,"tickfont",u,{overrideDflt:{color:d}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var h=a("tickangle");!i.noAutotickangles&&h==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");ute(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:fte}),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 fte(e,r){function t(n,i){return x6.coerce(e,r,mS.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var A6=oe((I6e,yS)=>{"use strict";var cte=_6();yS.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=cte(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var M6=oe((H6e,bS)=>{"use strict";var S0=pr(),vte=ka(),dte=g6(),hte=b6(),pte=w6(),mte=A6(),gte=jp();bS.exports=function(r,t,a){var n=vte.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,X){return S0.coerce(i,n,gte,I,X)}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",d=o("thicknessmode");o("thickness",d==="fraction"?30/(c?s:u):30);var h=o("lenmode");o("len",h==="fraction"?1:c?u:s);var p=o("yref"),m=o("xref"),b=p==="paper",y=m==="paper",C,x,_,A="left";c?(_="middle",A=y?"left":"right",C=y?1.02:1,x=.5):(_=b?"bottom":"top",A="center",C=.5,x=b?1.02:1),S0.coerce(i,n,{x:{valType:"number",min:y?-2:0,max:y?3:1,dflt:C}},"x"),S0.coerce(i,n,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:x}},"y"),o("xanchor",A),o("xpad"),o("yanchor",_),o("ypad"),S0.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var T=S0.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",T.indexOf("inside")!==-1?"hide past domain":"hide past div"),dte(i,n,o,"linear");var M=a.font,E={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};T.indexOf("inside")!==-1&&(E.bgColor="black"),mte(i,n,o,"linear",E),pte(i,n,o,"linear",E),hte(i,n,o,"linear",E),o("title.text",a._dfltTitle.colorbar);var P=n.showticklabels?n.tickfont:M,z=S0.extendFlat({},M,{family:P.family,size:S0.bigFont(P.size)});S0.coerceFont(o,"title.font",z),o("title.side",c?"top":"right")}});var V1=oe((O6e,wS)=>{"use strict";var _S=Qt(),k6=pr(),yte=d6(),bte=M6(),xS=Gf().isValid,_te=_t().traceIs;function T6(e,r){var t=r.slice(0,r.length-1);return r?k6.nestedProperty(e,t).get()||{}:e}wS.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=T6(r,o),f=T6(t,o),c=T6(t._template||{},o)||{},d=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var h=a._colorAxes||{},p=n(o+"coloraxis");if(p){var m=_te(t,"contour")&&k6.nestedProperty(t,"contours.coloring").get()||"heatmap",b=h[p];b?(b[2].push(d),b[0]!==m&&(b[0]=!1,k6.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):h[p]=[m,t,[d]];return}}var y=u[l+"min"],C=u[l+"max"],x=_S(y)&&_S(C)&&y<C,_=n(o+l+"auto",!x);_?n(o+l+"mid"):(n(o+l+"min"),n(o+l+"max"));var A=u.colorscale,T=c.colorscale,M;if(A!==void 0&&(M=!xS(A)),T!==void 0&&(M=!xS(T)),n(o+"autocolorscale",M),n(o+"colorscale"),n(o+"reversescale"),o!=="marker.line."){var E;o&&s&&(E=yte(u));var P=n(o+"showscale",E);P&&(o&&c&&(f._template=c),bte(u,f,a))}}});var kS=oe((U6e,TS)=>{"use strict";var AS=pr(),xte=ka(),MS=v6(),wte=V1();TS.exports=function(r,t){function a(c,d){return AS.coerce(r,t,MS,c,d)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,d){return AS.coerce(i,o,MS.coloraxis,c,d)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=xte.newContainer(t,s,"coloraxis"),o._name=s,wte(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 SS=oe((G6e,CS)=>{"use strict";var Ate=pr(),Mte=Ls().hasColorscale,Tte=Ls().extractOpts;CS.exports=function(r,t){function a(f,c){var d=f["_"+c];d!==void 0&&(f[c]=d)}function n(f,c){var d=c.container?Ate.nestedProperty(f,c.container).get():f;if(d)if(d.coloraxis)d._colorAx=t[d.coloraxis];else{var h=Tte(d),p=h.auto;(p||h.min===void 0)&&a(d,c.min),(p||h.max===void 0)&&a(d,c.max),h.autocolorscale&&a(d,"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);Mte(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 $p=oe((Y6e,FS)=>{"use strict";var DS=Qt(),C6=pr(),kte=Ls().extractOpts;FS.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?C6.nestedProperty(t,o).get():t,s=kte(l),u=s.auto!==!1,f=s.min,c=s.max,d=s.mid,h=function(){return C6.aggNums(Math.min,null,i)},p=function(){return C6.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(l._colorAx&&DS(f)?f=Math.min(f,h()):f=h()),c===void 0?c=p():u&&(l._colorAx&&DS(c)?c=Math.max(c,p()):c=p()),u&&d!==void 0&&(c-d>d-f?f=d-(c-d):c-d<d-f&&(c=d+(d-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 Kp=oe((V6e,ES)=>{"use strict";var Jp=Gf(),X1=Ls();ES.exports={moduleType:"component",name:"colorscale",attributes:Y1(),layoutAttributes:v6(),supplyLayoutDefaults:kS(),handleDefaults:V1(),crossTraceDefaults:SS(),calc:$p(),scales:Jp.scales,defaultScale:Jp.defaultScale,getScale:Jp.get,isValidScale:Jp.isValid,hasColorscale:X1.hasColorscale,extractOpts:X1.extractOpts,extractScale:X1.extractScale,flipScale:X1.flipScale,makeColorScaleFunc:X1.makeColorScaleFunc,makeColorScaleFuncFromTrace:X1.makeColorScaleFuncFromTrace}});var Ti=oe((X6e,qS)=>{"use strict";var LS=pr(),Cte=ro().isTypedArraySpec;qS.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 LS.isPlainObject(r)&&(LS.isArrayOrTypedArray(r.size)||Cte(r.size))}}});var RS=oe((j6e,PS)=>{"use strict";var Ste=Qt();PS.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 Ste(s)&&s>0?Math.max(s,i):0}}});var Pu=oe(ni=>{"use strict";var Bv=pr();ni.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ni.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(ni.getSubplot(e))!==-1};ni.flat=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=r;return t};ni.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};ni.c2dApply=function(e,r){e.length!==r.length&&Bv.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};ni.getDistanceFunction=function(e,r,t,a){return e==="closest"?a||ni.quadrature(r,t):e.charAt(0)==="x"?r:t};ni.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};ni.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};ni.quadrature=function(e,r){return function(t){var a=e(t),n=r(t);return Math.sqrt(a*a+n*n)}};ni.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)),ni.appendArrayPointValue(n,r,a),n};ni.appendArrayPointValue=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=zS(i);if(e[o]===void 0){var l=Bv.nestedProperty(r,i).get(),s=NS(l,t);s!==void 0&&(e[o]=s)}}};ni.appendArrayMultiPointValues=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=zS(i);if(e[o]===void 0){for(var l=Bv.nestedProperty(r,i).get(),s=new Array(t.length),u=0;u<t.length;u++)s[u]=NS(l,t[u]);e[o]=s}}};var Dte={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function zS(e){return Dte[e]||e}function NS(e,r){if(Array.isArray(r)){if(Bv.isArrayOrTypedArray(e)&&Bv.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var Fte={x:!0,y:!0},Ete={"x unified":!0,"y unified":!0};ni.isUnifiedHover=function(e){return typeof e!="string"?!1:!!Ete[e]};ni.isXYhover=function(e){return typeof e!="string"?!1:!!Fte[e]}});var D6=oe((Z6e,BS)=>{var S6={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Lte=/([astvzqmhlc])([^astvzqmhlc]*)/gi,qte=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Pte(e){let r=[];return e.replace(Lte,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=Rte(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===S6[i])return r.push([o,...l]),"";if(l.length<S6[i])throw new Error("malformed path data");r.push([o,...l.splice(0,S6[i])])}}),r}function Rte(e){let r=e.match(qte);return r?r.map(Number):[]}BS.exports=Pte});var VS=oe(($6e,YS)=>{"use strict";var zte=D6(),Sr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},wt="M0,0Z",IS=Math.sqrt(2),D0=Math.sqrt(3),F6=Math.PI,E6=Math.cos,L6=Math.sin;YS.exports={circle:{n:0,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Mt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.3,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.4,2),n=Sr(e*1.2,2);return Mt(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(At(r))return wt;var a=Sr(e*.8/IS,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Mt(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(At(r))return wt;var a=Sr(e*2/D0,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2/D0,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2/D0,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2/D0,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.951,2),n=Sr(e*.588,2),i=Sr(-e,2),o=Sr(e*-.309,2),l=Sr(e*.809,2);return Mt(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(At(r))return wt;var a=Sr(e,2),n=Sr(e/2,2),i=Sr(e*D0/2,2);return Mt(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(At(r))return wt;var a=Sr(e,2),n=Sr(e/2,2),i=Sr(e*D0/2,2);return Mt(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(At(r))return wt;var a=Sr(e*.924,2),n=Sr(e*.383,2);return Mt(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(At(r))return wt;var a=e*1.4,n=Sr(a*.225,2),i=Sr(a*.951,2),o=Sr(a*.363,2),l=Sr(a*.588,2),s=Sr(-a,2),u=Sr(a*-.309,2),f=Sr(a*.118,2),c=Sr(a*.809,2),d=Sr(a*.382,2);return Mt(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+d+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.66,2),n=Sr(e*.38,2),i=Sr(e*.76,2);return Mt(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(At(r))return wt;var a=Sr(e*D0*.8,2),n=Sr(e*.8,2),i=Sr(e*1.6,2),o=Sr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Mt(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(At(r))return wt;var a=Sr(e*D0*.8,2),n=Sr(e*.8,2),i=Sr(e*1.6,2),o=Sr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Mt(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(At(r))return wt;var a=Sr(e*1.1,2),n=Sr(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Mt(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(At(r))return wt;var a=Sr(e*1.4,2),n=Sr(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Mt(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(At(r))return wt;var a=Sr(e*.7,2),n=Sr(e*1.4,2);return Mt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.4,2),n=Sr(e*.7,2);return Mt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(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(At(r))return wt;var a=Sr(e,2);return Mt(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(At(r))return wt;var a=Sr(e,2),n=Sr(e/IS,2);return Mt(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(At(r))return wt;var a=Sr(e,2);return Mt(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(At(r))return wt;var a=Sr(e,2);return Mt(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(At(r))return wt;var a=Sr(e*1.3,2);return Mt(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(At(r))return wt;var a=Sr(e*1.3,2),n=Sr(e*.65,2);return Mt(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(At(r))return wt;var a=Sr(e*1.4,2);return Mt(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(At(r))return wt;var a=Sr(e,2);return Mt(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(At(r))return wt;var a=Sr(e*1.2,2),n=Sr(e*.85,2);return Mt(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(At(r))return wt;var a=Sr(e/2,2),n=Sr(e,2);return Mt(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(At(r))return wt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(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(At(r))return wt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(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(At(r))return wt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(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(At(r))return wt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(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(At(r))return wt;var a=Sr(e*1.4,2);return Mt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.4,2);return Mt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(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(At(r))return wt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(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(At(r))return wt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(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(At(r))return wt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(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(At(r))return wt;var a=F6/2.5,n=2*e*E6(a),i=2*e*L6(a);return Mt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(At(r))return wt;var a=F6/4,n=2*e*E6(a),i=2*e*L6(a);return Mt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function At(e){return e===null}var HS,OS,US,GS;function Mt(e,r,t){if((!e||e%360===0)&&!r)return t;if(US===e&&GS===r&&HS===t)return OS;US=e,GS=r,HS=t;function a(b,y){var C=E6(b),x=L6(b),_=y[0],A=y[1]+(r||0);return[_*C-A*x,_*x+A*C]}for(var n=e/180*F6,i=0,o=0,l=zte(t),s="",u=0;u<l.length;u++){var f=l[u],c=f[0],d=i,h=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-=d,o-=h);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 OS=s,s}});var da=oe((J6e,cD)=>{"use strict";var On=Lt(),va=pr(),Nte=va.numberFormat,F0=Qt(),em=_t(),qn=Nt(),Bte=Kp(),Hv=va.strTranslate,rm=vi(),Ite=(ec(),xr(Qf)),Hte=(ci(),xr(fi)),Ote=Hte.LINE_SPACING,rD=(up(),xr(sp)).DESELECTDIM,Ute=Ti(),Gte=RS(),Yte=Pu().appendArrayPointValue,zr={};cD.exports=zr;zr.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(qn.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",q6(Xte(f))),s&&e.style("text-shadow",s==="auto"?rm.makeTextShadow(qn.contrast(i)):q6(s)),u&&e.style("text-decoration-line",q6(jte(u)))};function q6(e){return e==="none"?void 0:e}var Vte={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Xte(e){return Vte[e]}function jte(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}zr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};zr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};zr.setRect=function(e,r,t,a,n){e.call(zr.setPosition,r,t).call(zr.setSize,a,n)};zr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(F0(n)&&F0(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Hv(n,i));else return!1;return!0};zr.translatePoints=function(e,r,t){e.each(function(a){var n=On.select(this);zr.translatePoint(a,n,r,t)})};zr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};zr.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=em.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){zr.hideOutsideRangePoint(u,On.select(this),t,a,o,l)})})}};zr.crispRound=function(e,r,t){return!r||!F0(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};zr.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||"";qn.stroke(r,a||i.color),zr.dashLine(r,l,o)};zr.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||"";On.select(this).call(qn.stroke,t||i.color).call(zr.dashLine,l,o)})};zr.dashLine=function(e,r,t){t=+t||0,r=zr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};zr.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 tD(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=zr.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),d=o(n.solidity,0,.3),h=r.uid;zr.pattern(e,"point",t,h,l,c,d,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 b,y;p==="horizontal"?(b={x:i.start,y:0},y={x:i.stop,y:0}):p==="vertical"&&(b={x:0,y:i.start},y={x:0,y:i.stop}),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.min[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.min[0].val:b.y,!0),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.max[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.max[0].val:y.y,!0),e.call(iD,t,m,"linear",i.colorscale,"fill",b,y,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(zr.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(qn.fill,r.fillcolor)}zr.singleFillStyle=function(e,r){var t=On.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};tD(e,n,r,!1)};zr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=On.select(this);a[0].trace&&tD(n,a[0].trace,r,t)})};var XS=VS();zr.symbolNames=[];zr.symbolFuncs=[];zr.symbolBackOffs=[];zr.symbolNeedLines={};zr.symbolNoDot={};zr.symbolNoFill={};zr.symbolList=[];Object.keys(XS).forEach(function(e){var r=XS[e],t=r.n;zr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),zr.symbolNames[t]=e,zr.symbolFuncs[t]=r.f,zr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(zr.symbolNeedLines[t]=!0),r.noDot?zr.symbolNoDot[t]=!0:zr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(zr.symbolNoFill[t]=!0)});var Wte=zr.symbolNames.length,Zte="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";zr.symbolNumber=function(e){if(F0(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=zr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Wte||e>=400?0:Math.floor(Math.max(e,0))};function aD(e,r,t,a){var n=e%100;return zr.symbolFuncs[n](r,t,a)+(e>=200?Zte:"")}var jS=Nte("~f"),nD={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}};zr.gradient=function(e,r,t,a,n,i){var o=nD[a];return iD(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function iD(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 d=new Array(f),h=0;h<f;h++)c.reversed?d[f-1-h]=[jS((1-n[h][0])*100),n[h][1]]:d[h]=[jS(n[h][0]*100),n[h][1]];var p=r._fullLayout,m="g"+p._uid+"-"+t,b=p._defs.select(".gradients").selectAll("#"+m).data([a+d.join(";")],va.identity);b.exit().remove(),b.enter().append(c.node).each(function(){var y=On.select(this);c.attrs&&y.attr(c.attrs),y.attr("id",m);var C=y.selectAll("stop").data(d);C.exit().remove(),C.enter().append("stop"),C.each(function(x){On.select(this).attr({offset:x[0]+"%","stop-color":qn.rgb(x[1]),"stop-opacity":qn.parse(x[1]).alpha})})}),e.style(i,B6(m,r)).style(i+"-opacity",null),e.classed("gradient_filled",!0)}zr.pattern=function(e,r,t,a,n,i,o,l,s,u,f,c){var d=r==="legend";l&&(s==="overlay"?(u=l,f=qn.contrast(u)):(u=void 0,f=l));var h=t._fullLayout,p="p"+h._uid+"-"+a,m,b,y=function(X,H,V,N,Q){return N+(Q-N)*(X-H)/(V-H)},C,x,_,A,T={},M=qn.rgb(f),E=qn.parse(f).alpha,P=c*E;switch(n){case"/":m=i*Math.sqrt(2),b=i*Math.sqrt(2),C="M-"+m/4+","+b/4+"l"+m/2+",-"+b/2+"M0,"+b+"L"+m+",0M"+m/4*3+","+b/4*5+"l"+m/2+",-"+b/2,x=o*i,A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case"\\":m=i*Math.sqrt(2),b=i*Math.sqrt(2),C="M"+m/4*3+",-"+b/4+"l"+m/2+","+b/2+"M0,0L"+m+","+b+"M-"+m/4+","+b/4*3+"l"+m/2+","+b/2,x=o*i,A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case"x":m=i*Math.sqrt(2),b=i*Math.sqrt(2),C="M-"+m/4+","+b/4+"l"+m/2+",-"+b/2+"M0,"+b+"L"+m+",0M"+m/4*3+","+b/4*5+"l"+m/2+",-"+b/2+"M"+m/4*3+",-"+b/4+"l"+m/2+","+b/2+"M0,0L"+m+","+b+"M-"+m/4+","+b/4*3+"l"+m/2+","+b/2,x=i-i*Math.sqrt(1-o),A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case"|":m=i,b=i,A="path",C="M"+m/2+",0L"+m/2+","+b,x=o*i,A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case"-":m=i,b=i,A="path",C="M0,"+b/2+"L"+m+","+b/2,x=o*i,A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case"+":m=i,b=i,A="path",C="M"+m/2+",0L"+m/2+","+b+"M0,"+b/2+"L"+m+","+b/2,x=i-i*Math.sqrt(1-o),A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case".":m=i,b=i,o<Math.PI/4?_=Math.sqrt(o*i*i/Math.PI):_=y(o,Math.PI/4,1,i/2,i/Math.sqrt(2)),A="circle",T={cx:m/2,cy:b/2,r:_,opacity:P,fill:M};break;default:m=i,b=i,A="path",T={d:n,opacity:P,fill:M};break}var z=[n||"noSh",u||"noBg",f||"noFg",i,o].join(";"),I=h._defs.select(".patterns").selectAll("#"+p).data([z],va.identity);I.exit().remove(),I.enter().append("pattern").each(function(){var X=On.select(this);if(X.attr({id:p,width:m+"px",height:b+"px",patternUnits:"userSpaceOnUse",patternTransform:d?"scale(0.8)":""}),u){var H=qn.rgb(u),V=qn.parse(u).alpha,N=X.selectAll("rect").data([0]);N.exit().remove(),N.enter().append("rect").attr({width:m+"px",height:b+"px",fill:H,"fill-opacity":V})}var Q=X.selectAll(A).data([0]);Q.exit().remove(),Q.enter().append(A).attr(T)}),e.style("fill",B6(p,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};zr.initGradients=function(e){var r=e._fullLayout,t=va.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),On.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};zr.initPatterns=function(e){var r=e._fullLayout,t=va.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),On.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};zr.getPatternAttr=function(e,r,t){return e&&va.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};zr.pointStyle=function(e,r,t,a){if(e.size()){var n=zr.makePointStyleFns(r);e.each(function(i){zr.singlePointStyle(i,On.select(this),r,n,t,a)})}};zr.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=zr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=H6(e,t),c=I6(e,t);r.attr("d",aD(u,s,f,c))}var d=!1,h,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,h=o.outliercolor;else{var b=(l||{}).width;m=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):va.isArrayOrTypedArray(l.color)?p=qn.defaultLine:p=l.color,va.isArrayOrTypedArray(o.color)&&(h=qn.defaultLine,d=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}let y=e.mld||(l||{}).dash;if(y&&zr.dashLine(r,y,m),e.om)r.call(qn.stroke,h).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var C=o.gradient,x=e.mgt;x?d=!0:x=C&&C.type,va.isArrayOrTypedArray(x)&&(x=x[0],nD[x]||(x=0));var _=o.pattern,A=zr.getPatternAttr,T=_&&(A(_.shape,e.i,"")||A(_.path,e.i,""));if(x&&x!=="none"){var M=e.mgc;M?d=!0:M=C.color;var E=t.uid;d&&(E+="-"+e.i),zr.gradient(r,n,E,x,[[0,M],[1,h]],"fill")}else if(T){var P=!1,z=_.fgcolor;!z&&i&&i.color&&(z=i.color,P=!0);var I=A(z,e.i,i&&i.color||null),X=A(_.bgcolor,e.i,null),H=_.fgopacity,V=A(_.size,e.i,8),N=A(_.solidity,e.i,.3);P=P||e.mcc||va.isArrayOrTypedArray(_.shape)||va.isArrayOrTypedArray(_.path)||va.isArrayOrTypedArray(_.bgcolor)||va.isArrayOrTypedArray(_.fgcolor)||va.isArrayOrTypedArray(_.size)||va.isArrayOrTypedArray(_.solidity);var Q=t.uid;P&&(Q+="-"+e.i),zr.pattern(r,"point",n,Q,T,V,N,e.mcc,_.fillmode,X,I,H)}else va.isArrayOrTypedArray(h)?qn.fill(r,h[e.i]):qn.fill(r,h);m&&qn.stroke(r,p)}};zr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=zr.tryColorscale(t,""),r.lineScale=zr.tryColorscale(t,"line"),em.traceIs(e,"symbols")&&(r.ms2mrc=Ute.isBubble(e)?Gte(e):function(){return(t.size||6)/2}),e.selectedpoints&&va.extendFlat(r,zr.makeSelectedPointStyleFns(e)),r};zr.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;(va.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(_){var A=_.mo===void 0?n.opacity:_.mo;return _.selected?f?s:A:c?u:rD*A});var d=n.color,h=i.color,p=o.color;(h||p)&&(r.selectedColorFn=function(_){var A=_.mcc||d;return _.selected?h||A:p||A});var m=n.size,b=i.size,y=o.size,C=b!==void 0,x=y!==void 0;return em.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(_){var A=_.mrc||m/2;return _.selected?C?b/2:A:x?y/2:A}),r};zr.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:qn.addOpacity(c,rD))},r};zr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=zr.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){qn.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",aD(zr.symbolNumber(l),s,H6(o,r),I6(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=On.select(this),l=0;l<n.length;l++)n[l](o,i)})}};zr.tryColorscale=function(e,r){var t=r?va.nestedProperty(e,r).get():e;if(t){var a=t.color;if((t.colorscale||t._colorAx)&&va.isArrayOrTypedArray(a))return Bte.makeColorScaleFuncFromTrace(t)}return va.identity};var P6={start:1,end:-1,middle:0,bottom:1,top:-1};function oD(e,r,t,a,n){var i=On.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=(rm.lineCount(e)-1)*Ote+1,f=P6[l]*s,c=t*.75+P6[o]*s+(P6[o]-1)*u*t/2;e.attr("text-anchor",l),n||i.attr("transform",Hv(f,c))}function lD(e,r){var t=e.ts||r.textfont.size;return F0(t)&&t>0?t:0}zr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=zr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=On.select(this),u=i?va.extractOption(l,r,"txt","texttemplate"):va.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):{},d={};Yte(d,r,l.i),u=va.texttemplateString({data:[d,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var h=l.tp||r.textposition,p=lD(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(zr.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(rm.convertToTspans,t).call(oD,h,p,l.mrc)})}};zr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=zr.makeSelectedTextStyleFns(r);e.each(function(a){var n=On.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=lD(a,r);qn.fill(n,i);var s=em.traceIs(r,"bar-like");oD(n,o,l,a.mrc2||a.mrc,s)})}};var WS=.5;zr.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(Qp(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};zr.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],a=e.length-1,n=[Qp(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push(Qp(e[i-1],e[i],e[i+1],r));for(n.push(Qp(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 sD,uD;function j1(e,r,t){return t&&(e=fD(e)),r?ic(e[1]):nc(e[0])}function nc(e){var r=On.round(e,2);return sD=r,r}function ic(e){var r=On.round(e,2);return uD=r,r}function Qp(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,WS/2),u=Math.pow(o*o+l*l,WS/2),f=(u*u*n-s*s*o)*a,c=(u*u*i-s*s*l)*a,d=3*u*(s+u),h=3*s*(s+u);return[[nc(r[0]+(d&&f/d)),ic(r[1]+(d&&c/d))],[nc(r[0]-(h&&f/h)),ic(r[1]-(h&&c/h))]]}var $te={hv:function(e,r,t){return"H"+nc(r[0])+"V"+j1(r,1,t)},vh:function(e,r,t){return"V"+ic(r[1])+"H"+j1(r,0,t)},hvh:function(e,r,t){return"H"+nc((e[0]+r[0])/2)+"V"+ic(r[1])+"H"+j1(r,0,t)},vhv:function(e,r,t){return"V"+ic((e[1]+r[1])/2)+"H"+nc(r[0])+"V"+j1(r,1,t)}},Jte=function(e,r,t){return"L"+j1(r,0,t)+","+j1(r,1,t)};zr.steps=function(e){var r=$te[e]||Jte;return function(t){for(var a="M"+nc(t[0][0])+","+ic(t[0][1]),n=t.length,i=1;i<n;i++)a+=r(t[i-1],t[i],i===n-1);return a}};function fD(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=va.isArrayOrTypedArray(t),l=e,s=r?r[0]:sD||0,u=r?r[1]:uD||0,f=l[0],c=l[1],d=f-s,h=c-u,p=Math.atan2(h,d),m=o?t[i]:t;if(m==="auto"){var b=l.i;a.type==="scatter"&&b--;var y=l.marker,C=y.symbol;va.isArrayOrTypedArray(C)&&(C=C[b]);var x=y.size;va.isArrayOrTypedArray(x)&&(x=x[b]),m=y?zr.symbolBackOffs[zr.symbolNumber(C)]*x:0,m+=zr.getMarkerStandoff(n[b],a)||0}var _=f-m*Math.cos(p),A=c-m*Math.sin(p);(_<=f&&_>=s||_>=f&&_<=s)&&(A<=c&&A>=u||A>=c&&A<=u)&&(e=[_,A])}return e}zr.applyBackoff=fD;zr.makeTester=function(){var e=va.ensureSingleById(On.select("body"),"svg","js-plotly-tester",function(t){t.attr(Ite.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=va.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});zr.tester=e,zr.testref=r};zr.savedBBoxes={};var R6=0,Kte=1e4;zr.bBox=function(e,r,t){t||(t=ZS(e));var a;if(t){if(a=zr.savedBBoxes[t],a)return va.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=ZS(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=zr.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=zr.savedBBoxes[t],a)return va.extendFlat({},a)}}var u,f;r?u=e:(f=zr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),On.select(u).attr("transform",null).call(rm.positionText,0,0);var c=u.getBoundingClientRect(),d=zr.testref.node().getBoundingClientRect();r||f.removeChild(u);var h={height:c.height,width:c.width,left:c.left-d.left,top:c.top-d.top,right:c.right-d.left,bottom:c.bottom-d.top};return R6>=Kte&&(zr.savedBBoxes={},R6=0),t&&(zr.savedBBoxes[t]=h),R6++,va.extendFlat({},h)};function ZS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}zr.setClipUrl=function(e,r,t){e.attr("clip-path",B6(r,t))};function B6(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}zr.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}};zr.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+=Hv(r,t),o=o.trim(),e[i]("transform",o),o};zr.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}};zr.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 Qte=/\s*sc.*/;zr.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(Qte,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var eae=/translate\([^)]*\)\s*$/;zr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=On.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(eae);r===1&&t===1?a=[]:a=[Hv(o,l),"scale("+r+","+t+")",Hv(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function I6(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}zr.getMarkerStandoff=I6;var Iv=Math.atan2,ac=Math.cos,W1=Math.sin;function $S(e,r){var t=r[0],a=r[1];return[t*ac(e)-a*W1(e),t*W1(e)+a*ac(e)]}var JS,KS,QS,eD,z6,N6;function H6(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!F0(t)||va.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]),d=r._geo.project([u+1e-5,f]),h=Iv(d[1]-n,d[0]-a),p=Iv(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var b=u/180*Math.PI,y=f/180*Math.PI,C=JS/180*Math.PI,x=KS/180*Math.PI,_=C-b,A=ac(x)*W1(_),T=W1(x)*ac(y)-ac(x)*W1(y)*ac(_);m=-Iv(A,T)-Math.PI,JS=u,KS=f}var M=$S(h,[ac(m),0]),E=$S(p,[W1(m),0]);t=Iv(M[1]+E[1],M[0]+E[0])/Math.PI*180,i==="previous"&&!(N6===r.uid&&e.i===z6+1)&&(t=null)}if(i==="previous"&&!r._geo)if(N6===r.uid&&e.i===z6+1&&F0(a)&&F0(n)){var P=a-QS,z=n-eD,I=r.line&&r.line.shape||"",X=I.slice(I.length-1);X==="h"&&(z=0),X==="v"&&(P=0),t+=Iv(z,P)/Math.PI*180+90}else t=null}return QS=a,eD=n,z6=e.i,N6=r.uid,t}zr.getMarkerAngle=H6});var Ov=oe((K6e,pD)=>{"use strict";var Z1=Lt(),rae=Qt(),tae=Ln(),O6=_t(),oc=pr(),vD=oc.strTranslate,tm=da(),am=Nt(),$1=vi(),dD=(up(),xr(sp)),aae=(ci(),xr(fi)).OPPOSITE_SIDE,hD=/ [XY][0-9]* /,U6=1.6,G6=1.6;function nae(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,d=1,h=n.title,p=(h&&h.text?h.text:"").trim(),m=!1,b=h&&h.font?h.font:{},y=b.family,C=b.size,x=b.color,_=b.weight,A=b.style,T=b.variant,M=b.textcase,E=b.lineposition,P=b.shadow,z=t.subtitlePropName,I=!!z,X=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},V=(H.text||"").trim(),N=!1,Q=1,ee=H.font,re=ee.family,ae=ee.size,ie=ee.color,ue=ee.weight,xe=ee.style,De=ee.variant,Ye=ee.textcase,Ee=ee.lineposition,ke=ee.shadow,je;i==="title.text"?je="titleText":i.indexOf("axis")!==-1?je="axisTitleText":i.indexOf("colorbar")!==-1&&(je="colorbarTitleText");var W=e._context.edits[je];function le(dr,Ar){return dr===void 0||Ar===void 0?!1:dr.replace(hD," % ")===Ar.replace(hD," % ")}p===""?d=0:le(p,o)&&(W||(p=""),d=.2,m=!0),I&&(V===""?Q=0:le(V,X)&&(W||(V=""),Q=.2,N=!0)),t._meta?p=oc.templateString(p,t._meta):a._meta&&(p=oc.templateString(p,a._meta));var de=p||V||W,K;c||(c=oc.ensureSingle(a._infolayer,"g","g-"+r),K=a._hColorbarMoveTitle);var J=c.selectAll("text."+r).data(de?[0]:[]);J.enter().append("text"),J.text(p).attr("class",r),J.exit().remove();var fe=null,be=r+"-subtitle",Ne=V||W;if(I&&(fe=c.selectAll("text."+be).data(Ne?[0]:[]),fe.enter().append("text"),fe.text(V).attr("class",be),fe.exit().remove()),!de)return c;function Ze(dr,Ar){oc.syncOrAsync([er,Je],{title:dr,subtitle:Ar})}function er(dr){var Ar=dr.title,Qe=dr.subtitle,mr;!f&&K&&(f={}),f?(mr="",f.rotate&&(mr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||K)&&(mr+=vD(0,(f.offset||0)-(K||0)))):mr=null,Ar.attr("transform",mr);function qr(Ce){if(Ce){var He=Z1.select(Ce.node().parentNode).select("."+be);if(!He.empty()){var cr=Ce.node().getBBox();if(cr.height){var Mr=cr.y+cr.height+U6*ae;He.attr("y",Mr)}}}}if(Ar.style("opacity",d*am.opacity(x)).call(tm.font,{color:am.rgb(x),size:Z1.round(C,2),family:y,weight:_,style:A,variant:T,textcase:M,shadow:P,lineposition:E}).attr(u).call($1.convertToTspans,e,qr),Qe&&!Qe.empty()){var Te=c.select("."+r+"-math-group"),Ue=Ar.node().getBBox(),_r=Te.node()?Te.node().getBBox():void 0,Pr=_r?_r.y+_r.height+U6*ae:Ue.y+Ue.height+G6*ae,Nr=oc.extendFlat({},u,{y:Pr});Qe.attr("transform",mr),Qe.style("opacity",Q*am.opacity(ie)).call(tm.font,{color:am.rgb(ie),size:Z1.round(ae,2),family:re,weight:ue,style:xe,variant:De,textcase:Ye,shadow:ke,lineposition:Ee}).attr(Nr).call($1.convertToTspans,e)}return tae.previousPromises(e)}function Je(dr){var Ar=dr.title,Qe=Z1.select(Ar.node().parentNode);if(s&&s.selection&&s.side&&p){Qe.attr("transform",null);var mr=aae[s.side],qr=s.side==="left"||s.side==="top"?-1:1,Te=rae(s.pad)?s.pad:2,Ue=tm.bBox(Qe.node()),_r={t:0,b:0,l:0,r:0},Pr=e._fullLayout._reservedMargin;for(var Nr in Pr)for(var Ce in Pr[Nr]){var He=Pr[Nr][Ce];_r[Ce]=Math.max(_r[Ce],He)}var cr={left:_r.l,top:_r.t,right:a.width-_r.r,bottom:a.height-_r.b},Mr=s.maxShift||qr*(cr[s.side]-Ue[s.side]),vr=0;if(Mr<0)vr=Mr;else{var kr=s.offsetLeft||0,Er=s.offsetTop||0;Ue.left-=kr,Ue.right-=kr,Ue.top-=Er,Ue.bottom-=Er,s.selection.each(function(){var et=tm.bBox(this);oc.bBoxIntersect(Ue,et,Te)&&(vr=Math.max(vr,qr*(et[s.side]-Ue[mr])+Te))}),vr=Math.min(Mr,vr),n._titleScoot=Math.abs(vr)}if(vr>0||Mr<0){var jr={left:[-vr,0],right:[vr,0],top:[0,-vr],bottom:[0,vr]}[s.side];Qe.attr("transform",vD(jr[0],jr[1]))}}}J.call(Ze,fe);function tr(dr,Ar){dr.text(Ar).on("mouseover.opacity",function(){Z1.select(this).transition().duration(dD.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Z1.select(this).transition().duration(dD.HIDE_PLACEHOLDER).style("opacity",0)})}if(W&&(p?J.on(".opacity",null):(tr(J,o),m=!0),J.call($1.makeEditable,{gd:e}).on("edit",function(dr){l!==void 0?O6.call("_guiRestyle",e,i,dr,l):O6.call("_guiRelayout",e,i,dr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ze)}).on("input",function(dr){this.text(dr||" ").call($1.positionText,u.x,u.y)}),I)){if(I&&!p){var ze=J.node().getBBox(),lr=ze.y+ze.height+G6*ae;fe.attr("y",lr)}V?fe.on(".opacity",null):(tr(fe,X),N=!0),fe.call($1.makeEditable,{gd:e}).on("edit",function(dr){O6.call("_guiRelayout",e,"title.subtitle.text",dr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ze)}).on("input",function(dr){this.text(dr||" ").call($1.positionText,fe.attr("x"),fe.attr("y"))})}return J.classed("js-placeholder",m),fe&&!fe.empty()&&fe.classed("js-placeholder",N),c}pD.exports={draw:nae,SUBTITLE_PADDING_EM:G6,SUBTITLE_PADDING_MATHJAX_EM:U6}});var cm=oe((Q6e,_D)=>{"use strict";var iae=Lt(),oae=d1().utcFormat,Ma=pr(),lae=Ma.numberFormat,Ps=Qt(),E0=Ma.cleanNumber,sae=Ma.ms2DateTime,mD=Ma.dateTime2ms,Rs=Ma.ensureNumber,gD=Ma.isArrayOrTypedArray,L0=(Za(),xr(nn)),nm=L0.FP_SAFE,Xl=L0.BADNUM,uae=L0.LOG_CLIP,fae=L0.ONEWEEK,im=L0.ONEDAY,om=L0.ONEHOUR,yD=L0.ONEMIN,bD=L0.ONESEC,lm=En(),fm=(Hn(),xr(In)),sm=fm.HOUR_PATTERN,um=fm.WEEKDAY_PATTERN;function Uv(e){return Math.pow(10,e)}function Y6(e){return e!=null}var cae=2;function vae(e,r){if(e<=0)return 0;let t=Math.max(0,r-cae);return e>t?t/e:1}_D.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(_,A){if(_>0)return Math.log(_)/Math.LN10;if(_<=0&&A&&r.range&&r.range.length===2){var T=r.range[0],M=r.range[1];return .5*(T+M-2*uae*Math.abs(T-M))}else return Xl}function o(_,A,T,M){if((M||{}).msUTC&&Ps(_))return+_;var E=mD(_,T||r.calendar);if(E===Xl)if(Ps(_)){_=+_;var P=Math.floor(Ma.mod(_+.05,1)*10),z=Math.round(_-P/10);E=mD(new Date(z))+P/10}else return Xl;return E}function l(_,A,T){return sae(_,A,T||r.calendar)}function s(_){return r._categories[Math.round(_)]}function u(_){if(Y6(_)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[_]!==void 0)return r._categoriesMap[_];r._categories.push(typeof _=="number"?String(_):_);var A=r._categories.length-1;return r._categoriesMap[_]=A,A}return Xl}function f(_,A){for(var T=new Array(A),M=0;M<A;M++){var E=(_[0]||[])[M],P=(_[1]||[])[M];T[M]=c([E,P])}return T}function c(_){if(r._categoriesMap)return r._categoriesMap[_]}function d(_){var A=c(_);if(A!==void 0)return A;if(Ps(_))return+_}function h(_){return Ps(_)?+_:c(_)}function p(_,A,T){return iae.round(T+A*_,2)}function m(_,A,T){return(_-T)/A}var b=function(A){return Ps(A)?p(A,r._m,r._b):Xl},y=function(_){return m(_,r._m,r._b)};if(r.rangebreaks){var C=n==="y";b=function(_){if(!Ps(_))return Xl;var A=r._rangebreaks.length;if(!A)return p(_,r._m,r._b);var T=C;r.range[0]>r.range[1]&&(T=!T);for(var M=T?-1:1,E=M*_,P=0,z=0;z<A;z++){var I=M*r._rangebreaks[z].min,X=M*r._rangebreaks[z].max;if(E<I)break;if(E>X)P=z+1;else{P=E<(I+X)/2?z:z+1;break}}var H=r._B[P]||0;return isFinite(H)?p(_,r._m2,H):0},y=function(_){var A=r._rangebreaks.length;if(!A)return m(_,r._m,r._b);for(var T=0,M=0;M<A&&!(_<r._rangebreaks[M].pmin);M++)_>r._rangebreaks[M].pmax&&(T=M+1);return m(_,r._m2,r._B[T])}}r.c2l=r.type==="log"?i:Rs,r.l2c=r.type==="log"?Uv:Rs,r.l2p=b,r.p2l=y,r.c2p=r.type==="log"?function(_,A){return b(i(_,A))}:b,r.p2c=r.type==="log"?function(_){return Uv(y(_))}:y,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=E0,r.c2d=r.c2r=r.l2d=r.l2r=Rs,r.d2p=r.r2p=function(_){return r.l2p(E0(_))},r.p2d=r.p2r=y,r.cleanPos=Rs):r.type==="log"?(r.d2r=r.d2l=function(_,A){return i(E0(_),A)},r.r2d=r.r2c=function(_){return Uv(E0(_))},r.d2c=r.r2l=E0,r.c2d=r.l2r=Rs,r.c2r=i,r.l2d=Uv,r.d2p=function(_,A){return r.l2p(r.d2r(_,A))},r.p2d=function(_){return Uv(y(_))},r.r2p=function(_){return r.l2p(E0(_))},r.p2r=y,r.cleanPos=Rs):r.type==="date"?(r.d2r=r.r2d=Ma.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(_,A,T){return r.l2p(o(_,0,T))},r.p2d=r.p2r=function(_,A,T){return l(y(_),A,T)},r.cleanPos=function(_){return Ma.cleanDate(_,Xl,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(_){var A=h(_);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=Rs,r.r2l=h,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(y(_))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(_){return typeof _=="string"&&_!==""?_:Rs(_)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(_){var A=d(_);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Rs,r.r2l=d,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(y(_))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:Rs(_)},r.setupMultiCategory=function(_){var A=r._traceIndices,T,M,E=r._matchGroup;if(E&&r._categories.length===0){for(var P in E)if(P!==a){var z=t[lm.id2name(P)];A=A.concat(z._traceIndices)}}var I=[[0,{}],[0,{}]],X=[];for(T=0;T<A.length;T++){var H=_[A[T]];if(n in H){var V=H[n],N=H._length||Ma.minRowLength(V);if(gD(V[0])&&gD(V[1]))for(M=0;M<N;M++){var Q=V[0][M],ee=V[1][M];Y6(Q)&&Y6(ee)&&(X.push([Q,ee]),Q in I[0][1]||(I[0][1][Q]=I[0][0]++),ee in I[1][1]||(I[1][1][ee]=I[1][0]++))}}}for(X.sort(function(re,ae){var ie=I[0][1],ue=ie[re[0]]-ie[ae[0]];if(ue)return ue;var xe=I[1][1];return xe[re[1]]-xe[ae[1]]}),T=0;T<X.length;T++)u(X[T])}),r.fraction2r=function(_){var A=r.r2l(r.range[0]),T=r.r2l(r.range[1]);return r.l2r(A+_*(T-A))},r.r2fraction=function(_){var A=r.r2l(r.range[0]),T=r.r2l(r.range[1]);return(r.r2l(_)-A)/(T-A)},r.limitRange=function(_){var A=r.minallowed,T=r.maxallowed;if(!(A===void 0&&T===void 0)){_||(_="range");var M=Ma.nestedProperty(r,_).get(),E=Ma.simpleMap(M,r.r2l),P=E[1]<E[0];P&&E.reverse();var z=Ma.simpleMap([A,T],r.r2l);if(A!==void 0&&E[0]<z[0]&&(M[P?1:0]=A,E[0]=z[0]),T!==void 0&&E[1]>z[1]&&(M[P?0:1]=T,E[1]=z[1]),E[0]>=E[1])if(A!==void 0){var I=z[0]+1;T!==void 0&&(I=Math.min(I,z[1])),M[P?0:1]=r.l2r(I)}else T!==void 0&&(M[P?1:0]=r.l2r(z[1]-1))}},r.cleanRange=function(_,A){r._cleanRange(_,A),r.limitRange(_)},r._cleanRange=function(_,A){A||(A={}),_||(_="range");var T=Ma.nestedProperty(r,_).get(),M,E;if(r.type==="date"?E=Ma.dfltRange(r.calendar):n==="y"?E=fm.DFLTRANGEY:r._name==="realaxis"?E=[0,1]:E=A.dfltRange||fm.DFLTRANGEX,E=E.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(E[0]=0),!T||T.length!==2){Ma.nestedProperty(r,_).set(E);return}var P=T[0]===null,z=T[1]===null;for(r.type==="date"&&!r.autorange&&(T[0]=Ma.cleanDate(T[0],Xl,r.calendar),T[1]=Ma.cleanDate(T[1],Xl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Ma.isDateTime(T[M],r.calendar)){r[_]=E;break}if(r.r2l(T[0])===r.r2l(T[1])){var I=Ma.constrain(r.r2l(T[0]),Ma.MIN_MS+1e3,Ma.MAX_MS-1e3);T[0]=r.l2r(I-1e3),T[1]=r.l2r(I+1e3);break}}else{if(!Ps(T[M]))if(!(P||z)&&Ps(T[1-M]))T[M]=T[1-M]*(M?10:.1);else{r[_]=E;break}if(T[M]<-nm?T[M]=-nm:T[M]>nm&&(T[M]=nm),T[0]===T[1]){var X=Math.max(1,Math.abs(T[0]*1e-6));T[0]-=X,T[1]+=X}}},r.setScale=function(_){var A=t._size;if(r.overlaying){var T=lm.getFromId({_fullLayout:t},r.overlaying);r.domain=T.domain,r.domainpad=T.domainpad}var M=_&&r._r?"_r":"range",E=r.calendar;r.cleanRange(M);var P=r.r2l(r[M][0],E),z=r.r2l(r[M][1],E),I=n==="y";let X=(I?A.h:A.w)*(r.domain[1]-r.domain[0]),H=r.domainpad,V=0,N=0;if(H){V=(I?H.top:H.left)||0,N=(I?H.bottom:H.right)||0;let ie=vae(V+N,X);V*=ie,N*=ie}if(r._length=X-V-N,r._padStart=V,r._padEnd=N,I?(r._offset=A.t+(1-r.domain[1])*A.h+V,r._m=r._length/(P-z),r._b=-r._m*z):(r._offset=A.l+r.domain[0]*A.w+V,r._m=r._length/(z-P),r._b=-r._m*P),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var Q,ee;if(r._rangebreaks=r.locateBreaks(Math.min(P,z),Math.max(P,z)),r._rangebreaks.length){for(Q=0;Q<r._rangebreaks.length;Q++)ee=r._rangebreaks[Q],r._lBreaks+=Math.abs(ee.max-ee.min);var re=I;P>z&&(re=!re),re&&r._rangebreaks.reverse();var ae=re?-1:1;for(r._m2=ae*r._length/(Math.abs(z-P)-r._lBreaks),r._B.push(-r._m2*(I?z:P)),Q=0;Q<r._rangebreaks.length;Q++)ee=r._rangebreaks[Q],r._B.push(r._B[r._B.length-1]-ae*r._m2*(ee.max-ee.min));for(Q=0;Q<r._rangebreaks.length;Q++)ee=r._rangebreaks[Q],ee.pmin=b(ee.min),ee.pmax=b(ee.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(_){var A=r.rangebreaks||[],T,M,E,P,z;A._cachedPatterns||(A._cachedPatterns=A.map(function(ie){return ie.enabled&&ie.bounds?Ma.simpleMap(ie.bounds,ie.pattern?E0:r.d2c):null})),A._cachedValues||(A._cachedValues=A.map(function(ie){return ie.enabled&&ie.values?Ma.simpleMap(ie.values,r.d2c).sort(Ma.sorterAsc):null}));for(var I=0;I<A.length;I++){var X=A[I];if(X.enabled){if(X.bounds){var H=X.pattern;switch(T=A._cachedPatterns[I],M=T[0],E=T[1],H){case um:z=new Date(_),P=z.getUTCDay(),M>E&&(E+=7,P<M&&(P+=7));break;case sm:z=new Date(_);var V=z.getUTCHours(),N=z.getUTCMinutes(),Q=z.getUTCSeconds(),ee=z.getUTCMilliseconds();P=V+(N/60+Q/3600+ee/36e5),M>E&&(E+=24,P<M&&(P+=24));break;case"":P=_;break}if(P>=M&&P<E)return Xl}else for(var re=A._cachedValues[I],ae=0;ae<re.length;ae++)if(M=re[ae],E=M+X.dvalue,_>=M&&_<E)return Xl}}return _},r.locateBreaks=function(_,A){var T,M,E,P,z=[];if(!r.rangebreaks)return z;var I=r.rangebreaks.slice().sort(function(xe,De){return xe.pattern===um&&De.pattern===sm?-1:De.pattern===um&&xe.pattern===sm?1:0}),X=function(xe,De){if(xe=Ma.constrain(xe,_,A),De=Ma.constrain(De,_,A),xe!==De){for(var Ye=!0,Ee=0;Ee<z.length;Ee++){var ke=z[Ee];xe<ke.max&&De>=ke.min&&(xe<ke.min&&(ke.min=xe),De>ke.max&&(ke.max=De),Ye=!1)}Ye&&z.push({min:xe,max:De})}};for(T=0;T<I.length;T++){var H=I[T];if(H.enabled)if(H.bounds){var V=_,N=A;H.pattern&&(V=Math.floor(V)),M=Ma.simpleMap(H.bounds,H.pattern?E0:r.r2l),E=M[0],P=M[1];var Q=new Date(V),ee,re;switch(H.pattern){case um:re=fae,ee=((P<E?7:0)+(P-E))*im,V+=E*im-(Q.getUTCDay()*im+Q.getUTCHours()*om+Q.getUTCMinutes()*yD+Q.getUTCSeconds()*bD+Q.getUTCMilliseconds());break;case sm:re=im,ee=((P<E?24:0)+(P-E))*om,V+=E*om-(Q.getUTCHours()*om+Q.getUTCMinutes()*yD+Q.getUTCSeconds()*bD+Q.getUTCMilliseconds());break;default:V=Math.min(M[0],M[1]),N=Math.max(M[0],M[1]),re=N-V,ee=re}for(var ae=V;ae<N;ae+=re)X(ae,ae+ee)}else for(var ie=Ma.simpleMap(H.values,r.d2c),ue=0;ue<ie.length;ue++)E=ie[ue],P=E+H.dvalue,X(E,P)}return z.sort(function(xe,De){return xe.min-De.min}),z},r.makeCalcdata=function(_,A,T){var M,E,P,z,I=r.type,X=I==="date"&&_[A+"calendar"];if(A in _){if(M=_[A],z=_._length||Ma.minRowLength(M),Ma.isTypedArray(M)&&(I==="linear"||I==="log")){if(z===M.length)return M;if(M.subarray)return M.subarray(0,z)}if(I==="multicategory")return f(M,z);for(E=new Array(z),P=0;P<z;P++)E[P]=r.d2c(M[P],0,X,T)}else{var H=A+"0"in _?r.d2c(_[A+"0"],0,X):0,V=_["d"+A]?Number(_["d"+A]):1;for(M=_[{x:"y",y:"x"}[A]],z=_._length||M.length,E=new Array(z),P=0;P<z;P++)E[P]=H+P*V}if(r.rangebreaks)for(P=0;P<z;P++)E[P]=r.maskBreaks(E[P]);return E},r.isValidRange=function(_,A){return Array.isArray(_)&&_.length===2&&(A&&_[0]===null||Ps(r.r2l(_[0])))&&(A&&_[1]===null||Ps(r.r2l(_[1])))},r.getAutorangeDflt=function(_,A){var T=!r.isValidRange(_,"nullOk");return T&&A&&A.reverseDflt?T="reversed":_&&(_[0]===null&&_[1]===null?T=!0:_[0]===null&&_[1]!==null?T="min":_[0]!==null&&_[1]===null&&(T="max")),T},r.isReversed=function(){var _=r.autorange;return _==="reversed"||_==="min reversed"||_==="max reversed"},r.isPtWithinRange=function(_,A){var T=r.c2l(_[n],null,A),M=r.r2l(r.range[0]),E=r.r2l(r.range[1]);return M<E?M<=T&&T<=E:E<=T&&T<=M},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var _=r._matchGroup;if(_){var A=null,T=null;for(var M in _){var E=t[lm.id2name(M)];if(E._categories){A=E._categories,T=E._categoriesMap;break}}A&&T?(r._categories=A,r._categoriesMap=T):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var P=0;P<r._initialCategories.length;P++)u(r._initialCategories[P])},r.sortByInitialCategories=function(){var _=[];if(r._emptyCategories(),r._initialCategories)for(var A=0;A<r._initialCategories.length;A++)u(r._initialCategories[A]);_=_.concat(r._traceIndices);var T=r._matchGroup;for(var M in T)if(a!==M){var E=t[lm.id2name(M)];E._categories=r._categories,E._categoriesMap=r._categoriesMap,_=_.concat(E._traceIndices)}return _};var x=t._d3locale;r.type==="date"&&(r._dateFormat=x?x.timeFormat:oae,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=x?x.numberFormat:lae,delete r._minDtick,delete r._forceTick0}});var X6=oe((ebe,MD)=>{"use strict";var xD=Qt(),V6=pr(),dae=(Za(),xr(nn)).BADNUM,vm=V6.isArrayOrTypedArray,hae=V6.isDateTime,pae=V6.cleanNumber,wD=Math.round;MD.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(vm(n)&&!n.length)return"-";if(!i&&_ae(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;l<n.length;l++)if(vm(n[l]))for(var s=0;s<n[l].length;s++)o.push(n[l][s]);n=o}if(yae(n,t))return"date";var u=a.autotypenumbers!=="strict";return bae(n,u)?"category":gae(n,u)?"linear":"-"};function mae(e,r){return r?xD(e):typeof e=="number"}function gae(e,r){for(var t=e.length,a=0;a<t;a++)if(mae(e[a],r))return!0;return!1}function yae(e,r){for(var t=e.length,a=AD(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=wD(l),u=e[s],f=String(u);o[f]||(o[f]=1,hae(u,r)&&n++,xD(u)&&i++)}return n>i*2}function AD(e){return Math.max(1,(e-1)/1e3)}function bae(e,r){for(var t=e.length,a=AD(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=wD(l),u=e[s],f=String(u);if(!o[f]){o[f]=1;var c=typeof u;c==="boolean"?i++:(r?pae(u)!==dae:c==="number")?n++:c==="string"&&i++}}return i>n*2}function _ae(e){return vm(e[0])&&vm(e[1])}});var P0=oe((rbe,LD)=>{"use strict";var xae=Lt(),SD=Qt(),q0=pr(),dm=(Za(),xr(nn)).FP_SAFE,wae=_t(),Aae=da(),DD=En(),Mae=DD.getFromId,Tae=DD.isLinked;LD.exports={applyAutorangeOptions:ED,getAutoRange:j6,makePadFn:W6,doAutoRange:Cae,findExtremes:Sae,concatExtremes:J6};function j6(e,r){var t,a,n=[],i=e._fullLayout,o=W6(i,r,0),l=W6(i,r,1),s=J6(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return q0.simpleMap(r.range,r.r2l);var c=u[0].val,d=f[0].val;for(t=1;t<u.length&&c===d;t++)c=Math.min(c,u[t].val);for(t=1;t<f.length&&c===d;t++)d=Math.max(d,f[t].val);var h=r.autorange,p=h==="reversed"||h==="min reversed"||h==="max reversed";if(!p&&r.range){var m=q0.simpleMap(r.range,r.r2l);p=m[1]<m[0]}r.autorange==="reversed"&&(r.autorange=!0);var b=r.rangemode,y=b==="tozero",C=b==="nonnegative",x=r._length,_=x/10,A=0,T,M,E,P,z,I;for(t=0;t<u.length;t++)for(T=u[t],a=0;a<f.length;a++)M=f[a],I=M.val-T.val-TD(r,T.val,M.val),I>0&&(z=x-o(T)-l(M),z>_?I/z>A&&(E=T,P=M,A=I/z):I/x>A&&(E={val:T.val,nopad:1},P={val:M.val,nopad:1},A=I/x));function X(ee,re){return Math.max(ee,l(re))}if(c===d){var H=c-1,V=c+1;if(y)if(c===0)n=[0,1];else{var N=(c>0?f:u).reduce(X,0),Q=c/(1-Math.min(.5,N/x));n=c>0?[0,Q]:[Q,0]}else C?n=[Math.max(0,H),Math.max(1,V)]:n=[H,V]}else y?(E.val>=0&&(E={val:0,nopad:1}),P.val<=0&&(P={val:0,nopad:1})):C&&(E.val-A*o(E)<0&&(E={val:0,nopad:1}),P.val<=0&&(P={val:1,nopad:1})),A=(P.val-E.val-TD(r,T.val,M.val))/(x-o(E)-l(P)),n=[E.val-A*o(E),P.val+A*l(P)];return n=ED(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),q0.simpleMap(n,r.l2r||Number)}function TD(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 W6(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=q0.simpleMap(r.range,r.r2l);i=o[1]<o[0]}i&&(t=!t)}var l=0;return Tae(e,r._id)||(l=kae(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 kD=3;function kae(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=q0.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",d=l._selections[c];d.each(function(C){var x=xae.select(this),_=x.select(".text-math-group");_.empty()&&(C.bb=Aae.bBox(x.node()))})}for(var h=0;h<l._vals.length;h++){var p=l._vals[h],m=p.bb;if(m){var b=2*kD+m.width,y=2*kD+m.height;a=Math.max(a,n?Math.max(b*u,y*f):Math.max(y*u,b*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(a+=l.ticklen||0)}}}return a}function J6(e,r,t){var a=r._id,n=e._fullData,i=e._fullLayout,o=[],l=[],s,u,f;function c(b,y){for(s=0;s<y.length;s++){var C=b[y[s]],x=(C._extremes||{})[a];if(C.visible===!0&&x){for(u=0;u<x.min.length;u++)f=x.min[u],Z6(o,f.val,f.pad,{extrapad:f.extrapad});for(u=0;u<x.max.length;u++)f=x.max[u],$6(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 d in r._matchGroup)if(d!==r._id){var h=Mae(e,d),p=J6(e,h,!0),m=r._length/h._length;for(u=0;u<p.min.length;u++)f=p.min[u],Z6(o,f.val,f.pad*m,{extrapad:f.extrapad});for(u=0;u<p.max.length;u++)f=p.max[u],$6(l,f.val,f.pad*m,{extrapad:f.extrapad})}}return{min:o,max:l}}function Cae(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():j6(e,r),r._r=r.range.slice(),r._rl=q0.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,wae.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=j6(e,r)),i._input.rangeslider[r._name]=q0.extendFlat({},o)}}function Sae(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,d,h,p,m,b,y,C,x;function _(X){if(Array.isArray(X))return u=!0,function(V){return Math.max(Number(X[V]||0),0)};var H=Math.max(Number(X||0),0);return function(){return H}}var A=_((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),T=_((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=_(t.vpadplus||t.vpad),E=_(t.vpadminus||t.vpad);if(!u){if(C=1/0,x=-1/0,s)for(c=0;c<i;c++)d=r[c],d<C&&d>0&&(C=d),d>x&&d<dm&&(x=d);else for(c=0;c<i;c++)d=r[c],d<C&&d>-dm&&(C=d),d>x&&d<dm&&(x=d);r=[C,x],i=2}var P={tozero:l,extrapad:o};function z(X){h=r[X],SD(h)&&(b=A(X),y=T(X),f?(p=e.c2l(h)-E(X),m=e.c2l(h)+M(X)):(C=h-E(X),x=h+M(X),s&&C<x/10&&(C=x/10),p=e.c2l(C),m=e.c2l(x)),l&&(p=Math.min(0,p),m=Math.max(0,m)),CD(p)&&Z6(a,p,y,P),CD(m)&&$6(n,m,b,P))}var I=Math.min(6,i);for(c=0;c<I;c++)z(c);for(c=i-1;c>=I;c--)z(c);return{min:a,max:n,opts:t}}function Z6(e,r,t,a){FD(e,r,t,a,Dae)}function $6(e,r,t,a){FD(e,r,t,a,Fae)}function FD(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 CD(e){return SD(e)&&Math.abs(e)<dm}function Dae(e,r){return e<=r}function Fae(e,r){return e>=r}function Eae(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&hm(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&hm(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Lae(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&hm(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&hm(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function hm(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function ED(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);q0.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=Eae(t,r),a=Lae(a,r),[t,a]}});var Ga=oe((abe,eF)=>{"use strict";var Qo=Lt(),bn=Qt(),J1=Ln(),Yv=_t(),ht=pr(),K1=ht.strTranslate,lc=vi(),qae=Ov(),Vv=Nt(),To=da(),Pae=Yl(),qD=m6(),tbe=(Hn(),xr(In)),ii=(Za(),xr(nn)),Rae=ii.ONEMAXYEAR,gm=ii.ONEAVGYEAR,ym=ii.ONEMINYEAR,zae=ii.ONEMAXQUARTER,rb=ii.ONEAVGQUARTER,bm=ii.ONEMINQUARTER,Nae=ii.ONEMAXMONTH,Q1=ii.ONEAVGMONTH,_m=ii.ONEMINMONTH,ko=ii.ONEWEEK,ki=ii.ONEDAY,R0=ki/2,Ns=ii.ONEHOUR,Xv=ii.ONEMIN,xm=ii.ONESEC,Bae=ii.ONEMILLI,Iae=ii.ONEMICROSEC,sc=ii.MINUS_SIGN,Am=ii.BADNUM,tb={K:"zeroline"},ab={K:"gridline",L:"path"},nb={K:"minor-gridline",L:"path"},YD={K:"tick",L:"path"},PD={K:"tick",L:"text"},RD={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Mm=(ci(),xr(fi)),Gv=Mm.MID_SHIFT,uc=Mm.CAP_SHIFT,jv=Mm.LINE_SPACING,Hae=Mm.OPPOSITE_SIDE,wm=3,yr=eF.exports={};yr.setConvert=cm();var Oae=X6(),Bs=En(),Uae=Bs.idSort,Gae=Bs.isLinked;yr.id2name=Bs.id2name;yr.name2id=Bs.name2id;yr.cleanId=Bs.cleanId;yr.list=Bs.list;yr.listIds=Bs.listIds;yr.getFromId=Bs.getFromId;yr.getFromTrace=Bs.getFromTrace;var VD=P0();yr.getAutoRange=VD.getAutoRange;yr.findExtremes=VD.findExtremes;var Yae=1e-4;function sb(e){var r=(e[1]-e[0])*Yae;return[e[0]-r,e[1]+r]}function Vae(e,r,t){if(![t,e,r].every(bn)||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}yr.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},ht.coerce(e,r,u,s)};yr.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(d=>d+" domain")),s=s.concat(i||[]),f.length>o?(ht.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length<o&&(ht.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]=Bs.cleanId(f[c],l,!0)||f[c],s.includes(f[c])||(f[c]=n);return r[u]=f,f};yr.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};yr.coercePosition=function(e,r,t,a,n,i){var o,l,s=yr.getRefType(a);if(s!=="range")o=ht.ensureNumber,l=t(n,i);else{var u=yr.getFromId(r,a);i=u.fraction2r(i),l=t(n,i),o=u.cleanPos}e[n]=o(l)};yr.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?ht.ensureNumber:yr.getFromId(r,t).cleanPos;return a(e)};yr.redrawComponents=function(e,r){r=r||yr.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=Yv.getComponentMethod(n,i),u={},f=0;f<r.length;f++)for(var c=t[yr.id2name(r[f])],d=c[o],h=0;h<d.length;h++){var p=d[h];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 Xae=yr.getDataConversions=function(e,r,t,a){var n,i=t==="x"||t==="y"||t==="z"?t:a;if(ht.isArrayOrTypedArray(i)){if(n={type:Oae(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},yr.setConvert(n),n.type==="category")for(var o=0;o<a.length;o++)n.d2c(a[o])}else n=yr.getFromTrace(e,r,i);return n?{d2c:n.d2c,c2d:n.c2d}:i==="ids"?{d2c:ND,c2d:ND}:{d2c:zD,c2d:zD}};function zD(e){return+e}function ND(e){return String(e)}yr.getDataToCoordFunc=function(e,r,t,a){return Xae(e,r,t,a).d2c};yr.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};yr.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))};yr.saveRangeInitial=function(e,r){for(var t=yr.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};yr.saveShowSpikeInitial=function(e,r){for(var t=yr.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};yr.autoBin=function(e,r,t,a,n,i){var o=ht.aggNums(Math.min,null,e),l=ht.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:ht.simpleMap([o,l],r.c2r,0,n),calendar:n},yr.setConvert(s),i=i&&qD.dtick(i,s.type),i)s.dtick=i,s.tick0=qD.tick0(void 0,s.type,n);else{var u;if(t)u=(l-o)/t;else{var f=ht.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),d=c*ht.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);u=Math.max(d,2*ht.stdev(e)/Math.pow(e.length,a?.25:.4)),bn(u)||(u=1)}yr.autoTicks(s,u)}var h=s.dtick,p=yr.tickIncrement(yr.tickFirst(s),h,"reverse",n),m,b;if(typeof h=="number")p=jae(p,e,s,o,l),b=1+Math.floor((l-p)/h),m=p+b*h;else for(s.dtick.charAt(0)==="M"&&(p=Wae(p,e,h,o,n)),m=p,b=0;m<=l;)m=yr.tickIncrement(m,h,!1,n),b++;return{start:r.c2r(p,0,n),end:r.c2r(m,0,n),size:h,_dataSpan:l-o}};function jae(e,r,t,a,n){var i=0,o=0,l=0,s=0;function u(h){return(1+(h-e)*100/t.dtick)%100<2}for(var f=0;f<r.length;f++)r[f]%1===0?l++:bn(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 d=t.dtick/2;e+=e+d<a?d:-d}return e}function Wae(e,r,t,a,n){var i=ht.findExactDates(r,n),o=.8;if(i.exactDays>o){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=yr.tickIncrement(e,"M6","reverse")+ki*1.5:i.exactMonths>o?e=yr.tickIncrement(e,"M1","reverse")+ki*15.5:e-=R0;var s=yr.tickIncrement(e,t);if(s<=a)return s}return e}yr.prepMinorTicks=function(e,r,t){var c,d;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&bn(r._tmin),n;if(a){var i=yr.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=ht.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=ht.simpleMap(n,r.l2r),e._isMinor=!0,yr.prepTicks(e,t),a){var l=bn(r.dtick),s=bn(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?K6(u,f)?u===2*ko&&f===2*ki&&(e.dtick=ko):u===2*ko&&f===3*ki?e.dtick=ko:u===ko&&!(r._input.minor||{}).nticks?e.dtick=ki:BD(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":K6(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"?K6(u,f)||(e.dtick=BD(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}((d=r.minor)==null?void 0:d._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(ub(e),r.minor._tickround=e._tickround)};function K6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function BD(e,r){return Math.abs(e/r-1)<.001}yr.prepTicks=function(e,r){var t=ht.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?ht.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=ht.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,yr.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"&&Zae(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),ub(e)};function Q6(e){return+e.substring(1)}function Zae(e){var r;function t(){return!(bn(e.dtick)||e.dtick.charAt(0)!=="M")}var a=t(),n=yr.getTickFormat(e);if(n){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(n)||(/%[HI]/.test(n)?(r=Ns,i&&!a&&e.dtick<Ns&&(e.dtick=Ns)):/%p/.test(n)?(r=R0,i&&!a&&e.dtick<R0&&(e.dtick=R0)):/%[Aadejuwx]/.test(n)?(r=ki,i&&!a&&e.dtick<ki&&(e.dtick=ki)):/%[UVW]/.test(n)?(r=ko,i&&!a&&e.dtick<ko&&(e.dtick=ko)):/%[Bbm]/.test(n)?(r=Q1,i&&(a?Q6(e.dtick)<1:e.dtick<_m)&&(e.dtick="M1")):/%[q]/.test(n)?(r=rb,i&&(a?Q6(e.dtick)<3:e.dtick<bm)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=gm,i&&(a?Q6(e.dtick)<12:e.dtick<ym)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function $ae(e,r,t){for(var a=0;a<e.length;a++){var n=e[a].value,i,o;if(e[a].periodEndTick!=null)i=e[a].value,o=e[a].periodEndTick.value;else{var l=a,s=a+1;a<e.length-1?(l=a,s=a+1):a>0?(l=a-1,s=a):(l=a,s=a),i=e[l].value,o=e[s].value}var u=Math.abs(o-i),f=t||u,c=0;e[a].periodEndTick!=null?c=u:f>=ym?u>=ym&&u<=Rae?c=u:c=gm:t===rb&&f>=bm?u>=bm&&u<=zae?c=u:c=rb:f>=_m?u>=_m&&u<=Nae?c=u:c=Q1:t===ko&&f>=ko?c=ko:f>=ki?c=ki:t===R0&&f>=R0?c=R0:t===Ns&&f>=Ns&&(c=Ns);var d;c>=u&&(c=u,d=!0);var h=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,b=0;b<p;b++){var y=(b+.5)/p;r.maskBreaks(n*(1-y)+y*h)!==Am&&m++}c*=m/p,c||(e[a].drop=!0),d&&u>ko&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}yr.calcTicks=function(r,t){var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||ht.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;for(var u=ht.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]<u[0],c=Math.min(u[0],u[1]),d=Math.max(u[0],u[1]),h=Math.max(1e3,r._length||0),p=[],m=[],b=[],y=[],C=[],x=r.minor&&(r.minor.ticks||r.minor.showgrid),_=x||r._useTicklabelIndex,A=1;A>=(_?0:1);A--){var T=!A;A?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):_&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=A?r:ht.extendFlat({},r,_?r.minor:{minor:{}});if(T?yr.prepMinorTicks(M,r,t):yr.prepTicks(M,t),M.tickmode==="array"){A?(b=[],p=ID(r,!T)):(y=[],m=ID(r,!T));continue}if(M.tickmode==="sync"){b=[],p=Jae(r);continue}var E=sb(u),P=E[0],z=E[1],I=bn(M.dtick),X=a==="log"&&!(I||M.dtick.charAt(0)==="L"),H=yr.tickFirst(M,t);if(A){if(r._tmin=H,H<P!==f)break;(a==="category"||a==="multicategory")&&(z=f?Math.max(-.5,z):Math.min(r._categories.length-.5,z))}var V=null,N=H,Q;if(A){var ee;I?ee=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(ee=Q1*r.dtick.substring(1)):ee=r._roughDTick,Q=Math.round((r.r2l(N)-r.r2l(r.tick0))/ee)-1}var re=M.dtick,ae=a==="linear"?M.r2l(M.tick0):void 0;for(M.rangebreaks&&M._tick0Init!==M.tick0&&(N=eb(N,r),f||(N=yr.tickIncrement(N,re,!f,n))),(A||r._useTicklabelIndex)&&o&&(N=yr.tickIncrement(N,re,!f,n),A&&Q--);f?N>=z:N<=z;N=yr.tickIncrement(N,re,f,n)){if(A&&Q++,M.rangebreaks&&!f){if(N<P)continue;if(M.maskBreaks(N)===Am&&eb(N,M)>=d)break}if(b.length>h||N===V)break;V=N;var ie={value:Vae(N,ae,re)};A?(N===H&&(ie.first=!0),X&&N!==(N|0)&&(ie.simpleLabel=!0),i>1&&Q%i&&(ie.skipLabel=!0),b.push(ie)):(ie.minor=!0,y.push(ie))}}function ue(Ze,er){let Je=er.find(ze=>ze.value===Ze.value);if(Je!=null)return Je;let tr=1e7;for(let ze=0;ze<er.length;ze++)if(tr+er[ze].value===tr+Ze.value)return er[ze];return null}if(!y||y.length<3)r._useTicklabelIndex=!1;else{let Ze=(y[2].value-y[1].value)*(l?-1:1);wne(Ze,r.tickformat)||(r._useTicklabelIndex=!1,y=y.slice(1))}if(!r._useTicklabelIndex)C=b;else{let Ze=y.filter(Je=>ue(Je,b)==null),er=b.concat(Ze).sort((Je,tr)=>Je.value-tr.value);o&&b.length&&(b[0].skipLabel=!0),b.forEach(function(Je){Je.skipLabel||(s.forEach(tr=>{if(tr<0){let ze=er.filter(Ar=>Ar.value<=Je.value),lr=Math.abs(tr),dr=ze.length-lr-1;if(lr<ze.length){let Ar=ze[dr];C.push(Ar),o&&(Ar.periodEndTick=ze[dr+1])}}else{let ze=er.filter(lr=>lr.value>=Je.value);if(tr<ze.length){let lr=ze[tr];C.push(lr),o&&ze[tr+1]&&(lr.periodEndTick=ze[tr+1])}}}),Je.skipLabel=!0)}),C.forEach(Je=>Je.skipLabel=!1)}if(x){var xe=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!xe){for(var De=[],Ye=0;Ye<y.length;Ye++)ue(y[Ye],b)==null&&De.push(y[Ye]);y=De}}o&&$ae(C,r,r._definedDelta);var Ee;if(r.rangebreaks){var ke=r._id.charAt(0)==="y",je=1;r.tickmode==="auto"&&(je=r.tickfont?r.tickfont.size:12);var W=NaN;for(Ee=b.length-1;Ee>-1;Ee--){if(b[Ee].drop){b.splice(Ee,1);continue}b[Ee].value=eb(b[Ee].value,r);var le=r.c2p(b[Ee].value);(ke?W>le-je:W<le+je)?b.splice(f?Ee+1:Ee,1):W=le}}db(r)&&Math.abs(u[1]-u[0])===360&&b.pop(),r._tmax=(b[b.length-1]||{}).value,b.length&&(b[b.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var de,K=function(Ze){Ze.text="",r._prevDateHead=de};b=b.concat(y);function J(Ze,er){var Je=yr.tickText(Ze,er.value,!1,er.simpleLabel,{first:er.first,last:er.last}),tr=er.periodX;return tr!==void 0&&(Je.periodX=tr,(tr>d||tr<c)&&(tr>d&&(Je.periodX=d),tr<c&&(Je.periodX=c),K(Je))),Je}var fe;for(Ee=0;Ee<b.length;Ee++){var be=b[Ee].minor,Ne=b[Ee].value;be?(r._useTicklabelIndex&&C.indexOf(b[Ee])!==-1?fe=J(r,b[Ee]):fe={x:Ne},fe.minor=!0,m.push(fe)):(de=r._prevDateHead,fe=J(r,b[Ee]),b[Ee].skipLabel&&K(fe),p.push(fe))}return o&&r._useTicklabelIndex&&m.length&&(m[0].noTick=!0),p=p.concat(m),r._inCalcTicks=!1,o&&p.length&&(p[0].noTick=!0),p};function XD(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==Am})),r}function Jae(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=yr.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=XD(e,t),t}function ID(e,r){var t=ht.simpleMap(e.range,e.r2l),a=sb(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){ht.isArrayOrTypedArray(f)||(f=[]);var c=-1,d=-1;if(!s)for(var h=0;h<u.length;h++){var p=o(u[h]);p>n&&p<i&&(c===-1&&(c=h),d=h)}for(var m=0;m<u.length;m++){var b=o(u[m]);if(b>n&&b<i){let y=yr.tickText(e,b,!1,f[m]!==void 0,{first:m===c,last:m===d});s&&(y.minor=!0,y.text=""),l.push(y)}}}}return l=XD(e,l),l}var pm=[2,5,10],HD=[1,2,3,6,12],OD=[1,2,5,10,15,30],Kae=[1,2,3,7,14],jD=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],WD=[-.301,0,.301,.699,1],Qae=[15,30,45,90,180];function zs(e,r,t){return r*ht.roundUp(e/r,t)}yr.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=ht.dateTick0(e.calendar,0);var i=2*r;if(i>gm)r/=gm,a=n(10),e.dtick="M"+12*zs(r,a,pm);else if(i>Q1)r/=Q1,e.dtick="M"+zs(r,1,HD);else if(i>ki){if(e.dtick=zs(r,ki,e._hasDayOfWeekBreaks?[1,2,7,14]:Kae),!t){var o=yr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=ht.dateTick0(e.calendar,2):e.tick0=ht.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Ns?e.dtick=zs(r,Ns,HD):i>Xv?e.dtick=zs(r,Xv,OD):i>xm?e.dtick=zs(r,xm,OD):(a=n(10),e.dtick=zs(r,a,pm))}else if(e.type==="log"){e.tick0=0;var s=ht.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"+zs(r,a,pm)}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))):db(e)?(e.tick0=0,a=1,e.dtick=zs(r,a,Qae)):(e.tick0=0,a=n(10),e.dtick=zs(r,a,pm));if(e.dtick===0&&(e.dtick=1),!bn(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function ub(e){var r=e.dtick;if(e._tickexponent=0,!bn(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>=ki&&n<=10||r>=ki*15)e._tickround="d";else if(r>=Xv&&n<=16||r>=Ns)e._tickround="M";else if(r>=xm&&n<=19||r>=Xv)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(bn(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);bn(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&&(e2(e.exponentformat)&&e.exponentformat!=="SI extended"&&!fb(s)||e2(e.exponentformat)&&e.exponentformat==="SI extended"&&!cb(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}yr.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(bn(r))return ht.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return ht.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?WD:jD,s=e+n*.01,u=ht.roundUp(ht.mod(s,1),l,t);return Math.floor(s)+Math.log(Qo.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};yr.tickFirst=function(e,r){var t=e.r2l||Number,a=ht.simpleMap(e.range,t,void 0,void 0,r),n=a[1]<a[0],i=n?Math.floor:Math.ceil,o=sb(a)[0],l=e.dtick,s=t(e.tick0);if(bn(l)){var u=i((o-s)/l)*l+s;return(e.type==="category"||e.type==="multicategory")&&(u=ht.constrain(u,0,e._categories.length-1)),u}var f=l.charAt(0),c=Number(l.slice(1));if(f==="M"){for(var d=0,h=s,p,m,b;d<10;){if(p=yr.tickIncrement(h,l,n,e.calendar),(p-o)*(h-o)<=0)return n?Math.min(h,p):Math.max(h,p);m=(o-(h+p)/2)/(p-h),b=f+(Math.abs(Math.round(m))||1)*c,h=yr.tickIncrement(h,b,m<0?!n:n,e.calendar),d++}return ht.error("tickFirst did not converge",e),h}else{if(f==="L")return Math.log(i((Math.pow(10,o)-s)/c)*c+s)/Math.LN10;if(f==="D"){var y=l==="D2"?WD:jD,C=ht.roundUp(ht.mod(o,1),y,n);return Math.floor(o)+Math.log(Qo.round(Math.pow(10,C),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};yr.tickText=function(e,r,t,a,n){var i=!!(n!=null&&n.first),o=!!(n!=null&&n.last),l=ZD(e,r),s=e.tickmode==="array",u=t||s,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,d,h=function(x){var _=e.l2p(x);return _>=0&&_<=e._length?x:null};if(s&&ht.isArrayOrTypedArray(e.ticktext)){var p=ht.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(d=0;d<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[d]))<m);d++);if(d<e.ticktext.length)return l.text=String(e.ticktext[d]),l.xbnd=[h(l.x-.5),h(l.x+e.dtick-.5)],l}function b(x){return x===void 0?!0:t?x==="none":x==="all"?!1:x==="first"?!i:x==="last"?!o:!0}var y=t?"never":e.exponentformat!=="none"&&b(e.showexponent)?"hide":"";if(f==="date"?ene(e,l,t,u):f==="log"?rne(e,l,t,u,y):f==="category"?tne(e,l):f==="multicategory"?ane(e,l,t):db(e)?ine(e,l,t,u,y):nne(e,l,t,u,y),a||(e.tickprefix&&!b(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!b(e.showticksuffix)&&(l.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(l.text)){var C=e.labelalias[l.text];typeof C=="string"&&(l.text=C)}return(e.tickson==="boundaries"||e.showdividers)&&(l.xbnd=[h(l.x-.5),h(l.x+e.dtick-.5)]),l};yr.hoverLabelText=function(e,r,t){t&&(e=ht.extendFlat({},e,{hoverformat:t}));var a=ht.isArrayOrTypedArray(r)?r[0]:r,n=ht.isArrayOrTypedArray(r)?r[1]:void 0;if(n!==void 0&&n!==a)return yr.hoverLabelText(e,a,t)+" - "+yr.hoverLabelText(e,n,t);var i=e.type==="log"&&a<=0,o=yr.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":sc+o:o};function ZD(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 ene(e,r,t,a){var n=e._useTicklabelIndex?e.minor._tickround:e._tickround,i=t&&e.hoverformat||yr.getTickFormat(e);a=!i&&a,a&&(bn(n)?n=4:n={y:"m",m:"d",d:"M",M:"S",S:4}[n]);var o=ht.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=Zv(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="<br> ")}r.text=o}function rne(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=Wv(Math.pow(10,o),e,n,a);else if(bn(i)||s==="D"&&(e.minorloglabels==="complete"||ht.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(ht.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),d=+c[1],h=Math.abs(d),p=e.exponentformat;p==="power"||e2(p)&&p!=="SI extended"&&fb(d)||e2(p)&&p==="SI extended"&&cb(d)?(r.text=c[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),d!==0&&d!==1&&(r.text+="<sup>"+(d>0?"":sc)+h+"</sup>"),r.fontSize*=1.25):(p==="e"||p==="E")&&h>2?r.text=c[0]+p+(d>0?"+":sc)+h:(r.text=Wv(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,ht.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 tne(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function ane(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 nne(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Wv(r.x,e,n,a)}function ine(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=one(i);if(o[1]>=100)r.text=Wv(ht.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=sc+r.text)}}}else r.text=Wv(r.x,e,n,a)}function one(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 $D=["f","p","n","\u03BC","m","","k","M","G","T"],lne=["q","r","y","z","a",...$D,"P","E","Z","Y","R","Q"],e2=e=>["SI","SI extended","B"].includes(e);function fb(e){return e>14||e<-15}function cb(e){return e>32||e<-30}function sne(e,r){return e2(r)?!!(r==="SI extended"&&cb(e)||r!=="SI extended"&&fb(e)):!1}function Wv(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=yr.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:bn(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};ub(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,sc);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 h=Math.pow(10,-i);e=String(Math.round(e/h)*h)}else e=e.toFixed(Math.min(20,i)).replace(/\.?0+$/,"");e=ht.numSeparate(e,r._separators,u)}if(l&&o!=="hide"){sne(l,o)&&(o="power");var d;l<0?d=sc+-l:o!=="power"?d="+"+l:d=String(l),o==="e"||o==="E"?e+=o+d:o==="power"?e+="\xD710<sup>"+d+"</sup>":o==="B"&&l===9?e+="B":e2(o)&&(e+=o==="SI extended"?lne[l/3+10]:$D[l/3+5])}return n?sc+e:e}yr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Q1}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)),d=f.indexOf(u.charAt(0));return c===d?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-d}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},d=u[0],h=u[1];return(!d&&typeof d!="number"||c(d)<=c(s))&&(!h&&typeof h!="number"||c(h)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,d=a(s,u[0])>=0,h=a(s,u[1])<=0;return(f||d)&&(c||h)}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};yr.getSubplots=function(e,r){var t=e._fullLayout._subplots,a=t.cartesian.concat(t.gl2d||[]),n=r?yr.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};yr.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};yr.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=yr.list(e,"x",!0),i=yr.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){Qo.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})})}};yr.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,d=f.yaxis;f.xaxislayer.selectAll("."+c._id+"tick").remove(),f.yaxislayer.selectAll("."+d._id+"tick").remove(),f.xaxislayer.selectAll("."+c._id+"tick2").remove(),f.yaxislayer.selectAll("."+d._id+"tick2").remove(),f.xaxislayer.selectAll("."+c._id+"divider").remove(),f.yaxislayer.selectAll("."+d._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-"+d._id+"title").remove()}});var n=!r||r==="redraw"?yr.listIds(e):r,i=yr.list(e),o=i.filter(function(s){return s.autoshift}).map(function(s){return s.overlaying});n.map(function(s){var u=yr.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 ht.syncOrAsync(n.map(function(s){return function(){if(s){var u=yr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=yr.drawOne(e,u,t);return u._shiftPusher&&lb(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=ht.simpleMap(u._r,u.r2l),f}}}))};yr.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=yr.counterLetter(u),d=s._plots[r._mainSubplot],h=r.zerolinelayer==="above traces";if(!d)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),lb(r,p,a,!0),lb(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=xne(r,a));var m=d[f+"axislayer"],b=r._mainLinePosition,y=b+=r._shift,C=r._mainMirrorPosition,x=r._vals=yr.calcTicks(r),_=[r.mirror,y,C].join("_");for(i=0;i<x.length;i++)x[i].axInfo=_;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var A={};function T(ze){var lr=u+(ze||"tick");return A[lr]||(A[lr]=vne(r,lr,y)),A[lr]}if(r.visible){var M=yr.makeTransTickFn(r),E=yr.makeTransTickLabelFn(r),P,z,I=r.ticks==="inside",X=r.ticks==="outside";if(r.tickson==="boundaries"){var H=une(r,x);z=yr.clipEnds(r,H),P=I?z:H}else z=yr.clipEnds(r,x),P=I&&r.ticklabelmode!=="period"?z:x;var V=r._gridVals=z,N=cne(r,x);if(!s._hasOnlyLargeSploms){var Q=r._subplotsWith,ee={};for(i=0;i<Q.length;i++){o=Q[i],l=s._plots[o];var re=l[c+"axis"],ae=re._mainAxis._id;if(!ee[ae]){ee[ae]=1;var ie=f==="x"?"M0,"+re._offset+"v"+re._length:"M"+re._offset+",0h"+re._length;yr.drawGrid(e,r,{vals:V,counterAxis:re,layer:l.gridlayer.select("."+u),minorLayer:l.minorGridlayer.select("."+u),path:ie,transFn:M}),yr.drawZeroLine(e,r,{counterAxis:re,layer:h?l.zerolinelayerAbove:l.zerolinelayer,path:ie,transFn:M})}}}var ue,xe=yr.getTickSigns(r),De=yr.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var Ye=yr.makeTickPath(r,y,xe[2]),Ee=yr.makeTickPath(r,y,De[2],{minor:!0}),ke,je,W,le;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(ke=yr.makeTickPath(r,C,xe[3]),je=yr.makeTickPath(r,C,De[3],{minor:!0}),W=Ye+ke,le=Ee+je):(ke="",je="",W=Ye,le=Ee),r.showdividers&&X&&r.tickson==="boundaries"){var de={};for(i=0;i<N.length;i++)de[N[i].x]=1;ue=function(ze){return de[ze.x]?ke:W}}else ue=function(ze){return ze.minor?le:W}}if(yr.drawTicks(e,r,{vals:P,layer:m,path:ue,transFn:M}),r.mirror==="allticks"){var K=Object.keys(r._linepositions||{});for(i=0;i<K.length;i++){o=K[i],l=s._plots[o];var J=r._linepositions[o]||[],fe=J[0],be=J[1],Ne=J[2],Ze=yr.makeTickPath(r,fe,Ne?xe[0]:De[0],{minor:Ne})+yr.makeTickPath(r,be,Ne?xe[1]:De[1],{minor:Ne});yr.drawTicks(e,r,{vals:P,layer:l[f+"axislayer"],path:Ze,transFn:M})}}var er=[];if(er.push(function(){return yr.drawLabels(e,r,{vals:x,layer:m,plotinfo:l,transFn:E,labelFns:yr.makeLabelFns(r,y)})}),r.type==="multicategory"){var Je={x:2,y:10}[f];er.push(function(){var ze={x:"height",y:"width"}[f],lr=T()[ze]+Je+(r._tickAngles[u+"tick"]?r.tickfont.size*jv:0);return yr.drawLabels(e,r,{vals:fne(r,x),layer:m,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:yr.makeLabelFns(r,y+lr*xe[4])})}),er.push(function(){return r._depth=xe[4]*(T("tick2")[r.side]-y),hne(e,r,{vals:N,layer:m,path:yr.makeTickPath(r,y,xe[4],{len:r._depth}),transFn:M})})}else r.title.hasOwnProperty("standoff")&&er.push(function(){r._depth=xe[4]*(T()[r.side]-y)});var tr=Yv.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(tr&&r.side==="bottom")&&er.push(function(){return pne(e,r)}),er.push(function(){var ze=r.side.charAt(0),lr=Hae[r.side].charAt(0),dr=yr.getPxPosition(e,r),Ar=X?r.ticklen:0,Qe,mr,qr,Te;(r.automargin||tr||r._shiftPusher)&&(r.type==="multicategory"?Qe=T("tick2"):(Qe=T(),f==="x"&&ze==="b"&&(r._depth=Math.max(Qe.width>0?Qe.bottom-dr:0,Ar))));var Ue=0,_r=0;if(r._shiftPusher&&(Ue=Math.max(Ar,Qe.height>0?ze==="l"?dr-Qe.left:Qe.right-dr:0),r.title.text!==s._dfltTitle[f]&&(_r=(r._titleStandoff||0)+(r._titleScoot||0),ze==="l"&&(_r+=GD(r))),r._fullDepth=Math.max(Ue,_r)),r.automargin){mr={x:0,y:0,r:0,l:0,t:0,b:0};var Pr=[0,1],Nr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ze==="b"?mr[ze]=r._depth:(mr[ze]=r._depth=Math.max(Qe.width>0?dr-Qe.top:0,Ar),Pr.reverse()),Qe.width>0){var Ce=Qe.right-(r._offset+r._length);Ce>0&&(mr.xr=1,mr.r=Ce);var He=r._offset-Qe.left;He>0&&(mr.xl=0,mr.l=He)}}else if(ze==="l"?(r._depth=Math.max(Qe.height>0?dr-Qe.left:0,Ar),mr[ze]=r._depth-Nr):(r._depth=Math.max(Qe.height>0?Qe.right-dr:0,Ar),mr[ze]=r._depth+Nr,Pr.reverse()),Qe.height>0){var cr=Qe.bottom-(r._offset+r._length);cr>0&&(mr.yb=0,mr.b=cr);var Mr=r._offset-Qe.top;Mr>0&&(mr.yt=1,mr.t=Mr)}mr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[Pr[0]],r.title.text!==s._dfltTitle[f]&&(mr[ze]+=GD(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(qr={x:0,y:0,r:0,l:0,t:0,b:0},qr[lr]=r.linewidth,r.mirror&&r.mirror!==!0&&(qr[lr]+=Ar),r.mirror===!0||r.mirror==="ticks"?qr[c]=r._anchorAxis.domain[Pr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(qr[c]=[r._counterDomainMin,r._counterDomainMax][Pr[1]]))}tr&&(Te=Yv.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(UD(mr,r.automargin),UD(qr,r.automargin)),J1.autoMargin(e,vb(r),mr),J1.autoMargin(e,KD(r),qr),J1.autoMargin(e,QD(r),Te)}),ht.syncOrAsync(er)}};function UD(e,r){if(e){var t=Object.keys(RD).reduce(function(a,n){return r.indexOf(n)!==-1&&RD[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 une(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(ht.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 fne(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(ZD(e,ht.interp(a[o],.5),o));return t}function cne(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(ht.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 vne(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=ob(this);if(s.node().style.display!=="none"){var u=To.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=yr.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}}yr.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};yr.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return K1(e._offset+e.l2p(r.x),0)}:function(r){return K1(0,e._offset+e.l2p(r.x))}};yr.makeTransTickLabelFn=function(e){var r=dne(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(d){return K1(n+e._offset+e.l2p(ib(d))+t,i+a)}:function(d){return K1(i+a,n+e._offset+e.l2p(ib(d))+t)}};function ib(e){return e.periodX!==void 0?e.periodX:e.x}function dne(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,d=wm,h=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=h*uc,d+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,d+=wm),s&&f==="top"&&(d-=h*(1-uc)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(d=-d),[u?c:0,s?d:0]}yr.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};yr.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),d=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",h=0,p=0,m=d?e.ticklen:0;if(c?m*=-1:f&&(m=0),d&&(h+=m,t)){var b=ht.deg2rad(t);h=m*Math.cos(b)+1,p=m*Math.sin(b)}e.showticklabels&&(d||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(c?-1:1);var y={labelStandoff:h,labelShift:p},C,x,_,A,T=0,M=e.side,E=e._id.charAt(0),P=e.tickangle,z;if(E==="x")z=!c&&M==="bottom"||c&&M==="top",A=z?1:-1,c&&(A*=-1),C=p*A,x=r+h*A,_=z?1:-.2,Math.abs(P)===90&&(c?_+=Gv:P===-90&&M==="bottom"?_=uc:P===90&&M==="top"?_=Gv:_=.5,T=Gv/2*(P/90)),y.xFn=function(H){return H.dx+C+T*H.fontSize},y.yFn=function(H){return H.dy+x+H.fontSize*_},y.anchorFn=function(H,V){if(f){if(l)return"end";if(s)return"start"}return!bn(V)||V===0||V===180?"middle":V*A<0!==c?"end":"start"},y.heightFn=function(H,V,N){return V<-60||V>60?-.5*N:e.side==="top"!==c?-N:0};else if(E==="y"){if(z=!c&&M==="left"||c&&M==="right",A=z?1:-1,c&&(A*=-1),C=h,x=p*A,_=0,!c&&Math.abs(P)===90&&(P===-90&&M==="left"||P===90&&M==="right"?_=uc:_=.5),c){var I=bn(P)?+P:0;if(I!==0){var X=ht.deg2rad(I);T=Math.abs(Math.sin(X))*uc*A,_=0}}y.xFn=function(H){return H.dx+r-(C+H.fontSize*_)*A+T*H.fontSize},y.yFn=function(H){return H.dy+x+H.fontSize*Gv},y.anchorFn=function(H,V){return bn(V)&&Math.abs(V)===90?"middle":z?"end":"start"},y.heightFn=function(H,V,N){return e.side==="right"&&(V*=-1),V<-30?-N:V<30?-.5*N:0}}return y};function Tm(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}yr.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,Tm);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Vv.stroke(Qo.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return To.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),km(r,[YD]),i.attr("transform",t.transFn)};yr.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(y){return y.minor}):[],o=r.showgrid?t.vals.filter(function(y){return!y.minor}):[],l=t.counterAxis;if(l&&yr.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=To.crispRound(e,r.gridwidth,1);for(var c=n?To.crispRound(e,r.minor.gridwidth,1):0,d=t.layer,h=t.minorLayer,p=1;p>=0;p--){var m=p?d:h;if(m){var b=m.selectAll("path."+a).data(p?o:i,Tm);b.exit().remove(),b.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),b.attr("transform",t.transFn).attr("d",t.path).each(function(y){return Vv.stroke(Qo.select(this),y.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(y){return To.dashStyle(y.minor?r.minor.griddash:r.griddash,y.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(y){return(y.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&b.attr("d",t.path)}}km(r,[ab,nb])}};yr.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=yr.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 Uae(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Vv.stroke,r.zerolinecolor||Vv.defaultLine).style("stroke-width",To.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),km(r,[tb])};yr.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(ae){return ae.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Tm),d=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(ae){var ie=Qo.select(this),ue=e._promises.length;ie.call(lc.positionText,s.xFn(ae),s.yFn(ae)).call(To.font,{family:ae.font,size:ae.fontSize,color:ae.fontColor,weight:ae.fontWeight,style:ae.fontStyle,variant:ae.fontVariant,textcase:ae.fontTextcase,lineposition:ae.fontLineposition,shadow:ae.fontShadow}).text(ae.text).call(lc.convertToTspans,e),e._promises[ue]?d.push(e._promises.pop().then(function(){h(ie,u)})):h(ie,u)}),km(r,[PD]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(ae){Qo.select(this).select("text").call(lc.positionText,s.xFn(ae),s.yFn(ae))});function h(ae,ie){ae.each(function(ue){var xe=Qo.select(this),De=xe.select(".text-math-group"),Ye=s.anchorFn(ue,ie),Ee=t.transFn.call(xe.node(),ue)+(bn(ie)&&+ie!=0?" rotate("+ie+","+s.xFn(ue)+","+(s.yFn(ue)-ue.fontSize/2)+")":""),ke=lc.lineCount(xe),je=jv*ue.fontSize,W=s.heightFn(ue,bn(ie)?+ie:0,(ke-1)*je);if(W&&(Ee+=K1(0,W)),De.empty()){var le=xe.select("text");le.attr({transform:Ee,"text-anchor":Ye}),le.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var de=To.bBox(De.node()).width,K=de*{end:-.5,start:.5}[Ye];De.attr("transform",Ee+K1(K,0))}})}r._adjustTickLabelsOverflow=function(){var ae=r.ticklabeloverflow;if(!(!ae||ae==="allow")){var ie=ae.indexOf("hide")!==-1,ue=r._id.charAt(0)==="x",xe=0,De=ue?e._fullLayout.width:e._fullLayout.height;if(ae.indexOf("domain")!==-1){var Ye=ht.simpleMap(r.range,r.r2l);xe=r.l2p(Ye[0])+r._offset,De=r.l2p(Ye[1])+r._offset}var Ee=Math.min(xe,De),ke=Math.max(xe,De),je=r.side,W=1/0,le=-1/0;c.each(function(fe){var be=Qo.select(this),Ne=be.select(".text-math-group");if(Ne.empty()){var Ze=To.bBox(be.node()),er=0;ue?(Ze.right>ke||Ze.left<Ee)&&(er=1):(Ze.bottom>ke||Ze.top+(r.tickangle?0:fe.fontSize/4)<Ee)&&(er=1);var Je=be.select("text");er?ie&&Je.style("display","none"):Je.node().style.display!=="none"&&(Je.style("display",null),je==="bottom"||je==="right"?W=Math.min(W,ue?Ze.top:Ze.left):W=-1/0,je==="top"||je==="left"?le=Math.max(le,ue?Ze.bottom:Ze.right):le=1/0)}});for(var de in a._plots){var K=a._plots[de];if(!(r._id!==K.xaxis._id&&r._id!==K.yaxis._id)){var J=ue?K.yaxis:K.xaxis;J&&(J["_visibleLabelMin_"+r._id]=W,J["_visibleLabelMax_"+r._id]=le)}}}},r._hideCounterAxisInsideTickLabels=function(ae){var ie=r._id.charAt(0)==="x",ue=[];for(var xe in a._plots){var De=a._plots[xe];r._id!==De.xaxis._id&&r._id!==De.yaxis._id||ue.push(ie?De.yaxis:De.xaxis)}ue.forEach(function(Ye,Ee){Ye&&Zv(Ye)&&(ae||[tb,nb,ab,YD,PD]).forEach(function(ke){var je=ke.K==="tick"&&ke.L==="text"&&r.ticklabelmode==="period",W=a._plots[r._mainSubplot],le;if(ke.K===tb.K){var de=i?W.zerolinelayerAbove:W.zerolinelayer;le=de.selectAll("."+r._id+"zl")}else ke.K===nb.K?le=W.minorGridlayer.selectAll("."+r._id):ke.K===ab.K?le=W.gridlayer.selectAll("."+r._id):le=W[r._id.charAt(0)+"axislayer"];le.each(function(){var K=Qo.select(this);ke.L&&(K=K.selectAll(ke.L)),K.each(function(J){var fe=r.l2p(je?ib(J):J.x)+r._offset,be=Qo.select(this);fe<r["_visibleLabelMax_"+Ye._id]&&fe>r["_visibleLabelMin_"+Ye._id]?be.style("display","none"):ke.K==="tick"&&!Ee&&be.node().style.display!=="none"&&be.style("display",null)})})})})},h(c,f+1?f:u);function p(){return d.length&&Promise.all(d)}var m=null;function b(){if(h(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var ae=0,ie=[],ue,xe=1;c.each(function(mr){ae=Math.max(ae,mr.fontSize);var qr=r.l2p(mr.x),Te=ob(this),Ue=To.bBox(Te.node());xe=Math.max(xe,lc.lineCount(Te)),ie.push({top:0,bottom:10,height:10,left:qr-Ue.width/2,right:qr+Ue.width/2+2,width:Ue.width+2})});var De=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ye=l.length,Ee=Math.abs((l[Ye-1].x-l[0].x)*r._m)/(Ye-1),ke=De?Ee/2:Ee,je=De?r.ticklen:ae*1.25*xe,W=Math.sqrt(Math.pow(ke,2)+Math.pow(je,2)),le=ke/W,de=r.autotickangles.map(function(mr){return mr*Math.PI/180}),K=de.find(function(mr){return Math.abs(Math.cos(mr))<=le});K===void 0&&(K=de.reduce(function(mr,qr){return Math.abs(Math.cos(mr))<Math.abs(Math.cos(qr))?mr:qr},de[0]));var J=K*(180/Math.PI);if(De){var fe=2;for(r.ticks&&(fe+=r.tickwidth/2),ue=0;ue<ie.length;ue++){var be=l[ue].xbnd,Ne=ie[ue];if(be[0]!==null&&Ne.left-r.l2p(be[0])<fe||be[1]!==null&&r.l2p(be[1])-Ne.right<fe){m=J;break}}}else{var Ze=r.ticklabelposition||"",er=r.tickson||"",Je=function(mr){return Ze.indexOf(mr)!==-1},tr=Je("top"),ze=Je("left"),lr=Je("right"),dr=Je("bottom"),Ar=er!=="boundaries"&&(dr||ze||tr||lr),Qe=Ar?(r.tickwidth||0)+2*wm:0;for(ue=0;ue<ie.length-1;ue++)if(ht.bBoxIntersect(ie[ue],ie[ue+1],Qe)){m=J;break}}m&&h(c,m)}}r._selections&&(r._selections[o]=c);var y=[p];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(m=f,y.push(function(){h(c,f)})):y.push(b),r._tickAngles&&y.push(function(){r._tickAngles[o]=m===null?bn(u)?u:0:m});var C=function(){var ae=0,ie=0;return c.each(function(ue,xe){var De=ob(this),Ye=De.select(".text-math-group");if(Ye.empty()){var Ee;r._vals[xe]&&(Ee=r._vals[xe].bb||To.bBox(De.node()),r._vals[xe].bb=Ee),ae=Math.max(ae,Ee.width),ie=Math.max(ie,Ee.height)}}),{labelsMaxW:ae,labelsMaxH:ie}},x=r._anchorAxis;if(x&&(x.autorange||x.insiderange)&&Zv(r)&&!Gae(a,r._id)&&(a._insideTickLabelsUpdaterange||(a._insideTickLabelsUpdaterange={}),x.autorange&&(a._insideTickLabelsUpdaterange[x._name+".autorange"]=x.autorange,y.push(C)),x.insiderange)){var _=C(),A=r._id.charAt(0)==="y"?_.labelsMaxW:_.labelsMaxH;A+=2*wm,r.ticklabelposition==="inside"&&(A+=r.ticklen||0);var T=r.side==="right"||r.side==="top"?1:-1,M=T===1?1:0,E=T===1?0:1,P=[];P[E]=x.range[E];var z=x.range,I=x.r2p(z[M]),X=x.r2p(z[E]),H=a._insideTickLabelsUpdaterange[x._name+".range"];if(H){var V=x.r2p(H[M]),N=x.r2p(H[E]),Q=T*(r._id.charAt(0)==="y"?1:-1);Q*I<Q*V&&(I=V,P[M]=z[M]=H[M]),Q*X>Q*N&&(X=N,P[E]=z[E]=H[E])}var ee=Math.abs(X-I);ee-A>0?(ee-=A,A*=1+A/ee):A=0,r._id.charAt(0)!=="y"&&(A=-A),P[M]=x.p2r(x.r2p(z[M])+T*A),x.autorange==="min"||x.autorange==="max reversed"?(P[0]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0):(x.autorange==="max"||x.autorange==="min reversed")&&(P[1]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[x._name+".range"]=P}var re=ht.syncOrAsync(y);return re&&re.then&&e._promises.push(re),re};function hne(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Tm);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Vv.stroke,r.dividercolor).style("stroke-width",To.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}yr.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 GD(e){var r=e.title.font.size,t=(e.title.text.match(lc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(uc+t*jv):t?r*(t+1)*jv:r}function pne(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(lc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*uc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Gv+l*jv));else{var s=Zv(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=yr.getPxPosition(e,r),c,d,h;n==="x"?(d=r._offset+r._length/2,h=r.side==="top"?f-o:f+o):(h=r._offset+r._length/2,d=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 b=To.getTranslate(m.node().parentNode);p.offsetLeft=b.x,p.offsetTop=b.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,qae.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:d,y:h,"text-anchor":"middle"}})}yr.shouldShowZeroLine=function(e,r,t){var a=ht.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Am)&&(JD(r,0)||!mne(e,r,t,a)||gne(e,r))};yr.clipEnds=function(e,r){return r.filter(function(t){return JD(e,t.x)})};function JD(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function mne(e,r,t,a){var n=t._mainAxis;if(!n)return;var i=e._fullLayout,o=r._id.charAt(0),l=yr.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 b(x){return typeof x=="number"&&Math.abs(x-s)<m}if(b(p._mainLinePosition)||b(p._mainMirrorPosition))return!0;var y=p._linepositions||{};for(var C in y)if(b(y[C][0])||b(y[C][1]))return!0}var f=i._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return u(t,s);for(var c=yr.list(e,l),d=0;d<c.length;d++){var h=c[d];if(h._mainAxis===n&&u(h,s))return!0}}function gne(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&&(Yv.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 ob(e){var r=Qo.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}yr.allowAutoMargin=function(e){for(var r=yr.list(e,"",!0),t=0;t<r.length;t++){var a=r[t];a.automargin&&(J1.allowAutoMargin(e,vb(a)),a.mirror&&J1.allowAutoMargin(e,KD(a))),Yv.getComponentMethod("rangeslider","isVisible")(a)&&J1.allowAutoMargin(e,QD(a))}};function vb(e){return e._id+".automargin"}function KD(e){return vb(e)+".mirror"}function QD(e){return e._id+".rangeslider"}yr.swap=function(e,r){for(var t=yne(e,r),a=0;a<t.length;a++)bne(e,t[a].x,t[a].y)};function yne(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]],mm(s.x,u.x),mm(s.y,u.y);mm(s.x,[o]),mm(s.y,[l])}}return t}function mm(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function bne(e,r,t){var a=[],n=[],i=e.layout,o,l;for(o=0;o<r.length;o++)a.push(yr.getFromId(e,r[o]));for(o=0;o<t.length;o++)n.push(yr.getFromId(e,t[o]));var s=Object.keys(Pae),u=["anchor","domain","domainpad","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(o=0;o<s.length;o++){var c=s[o],d=a[0][c],h=n[0][c],p=!0,m=!1,b=!1;if(!(c.charAt(0)==="_"||typeof d=="function"||u.indexOf(c)!==-1)){for(l=1;l<a.length&&p;l++){var y=a[l][c];c==="type"&&f.indexOf(d)!==-1&&f.indexOf(y)!==-1&&d!==y?m=!0:y!==d&&(p=!1)}for(l=1;l<n.length&&p;l++){var C=n[l][c];c==="type"&&f.indexOf(h)!==-1&&f.indexOf(C)!==-1&&h!==C?b=!0:n[l][c]!==h&&(p=!1)}p&&(m&&(i[a[0]._name].type="linear"),b&&(i[n[0]._name].type="linear"),_ne(i,c,a,n,e._fullLayout._dfltTitle))}}for(o=0;o<e._fullLayout.annotations.length;o++){var x=e._fullLayout.annotations[o];r.indexOf(x.xref)!==-1&&t.indexOf(x.yref)!==-1&&ht.swapAttrs(i.annotations[o],["?"])}}function _ne(e,r,t,a,n){var i=ht.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 db(e){return e._id==="angularaxis"}function eb(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 Zv(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function km(e,r){Zv(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function lb(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 xne(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function wne(e,r){return/%f/.test(r)?e>=Iae:/%L/.test(r)?e>=Bae:/%[SX]/.test(r)?e>=xm:/%M/.test(r)?e>=Xv:/%[HI]/.test(r)?e>=Ns:/%p/.test(r)?e>=R0:/%[Aadejuwx]/.test(r)?e>=ki:/%[UVW]/.test(r)?e>=ko:/%[Bbm]/.test(r)?e>=_m:/%[q]/.test(r)?e>=bm:/%[Yy]/.test(r)?e>=ym:!0}});var tF=oe((nbe,rF)=>{"use strict";rF.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 hb=oe((ibe,aF)=>{"use strict";var Ane=tF();aF.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&&(Ane(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var iF=oe((obe,nF)=>{var Mne={left:0,top:0};nF.exports=Tne;function Tne(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=kne(r);return t[0]=a-i.left,t[1]=n-i.top,t}function kne(e){return e===window||e===document||e===document.body?Mne:e.getBoundingClientRect()}});var pb=oe((lbe,oF)=>{"use strict";var Cne=H5();function Sne(){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}oF.exports=Cne&&Sne()});var sF=oe((sbe,lF)=>{"use strict";lF.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 cF=oe((ube,fF)=>{"use strict";var uF=pr(),Dne=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];fF.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=uF.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=uF.constrain(Math.floor(t*3),0,2),Dne[t][r]}});var dF=oe((fbe,vF)=>{"use strict";var Fne=Lv(),Ene=Cp(),Lne=Mv().getGraphDiv,qne=(iv(),xr(nv)),mb=vF.exports={};mb.wrapped=function(e,r,t){var i;e=Lne(e),e._fullLayout&&Ene.clear(e._fullLayout._uid+qne.HOVERID);let a=e._hoverdata;mb.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:[]}))};mb.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&Fne.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 el=oe((cbe,gF)=>{"use strict";var Pne=iF(),gb=U5(),Rne=pb(),zne=pr().removeElement,Nne=(Hn(),xr(In)),fc=gF.exports={};fc.align=sF();fc.getCursor=cF();var pF=dF();fc.unhover=pF.wrapped;fc.unhoverRaw=pF.raw;fc.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,d,h;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=b,Rne?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=b,i.addEventListener("touchstart",b,{passive:!1})):i.ontouchstart=b;function p(x,_,A){return Math.abs(x)<A&&(x=0),Math.abs(_)<A&&(_=0),[x,_]}var m=r.clampFn||p;function b(x){t._dragged=!1,t._dragging=!0;var _=hF(x);o=_[0],l=_[1],d=x.target,c=x,h=x.buttons===2||x.ctrlKey,typeof x.clientX=="undefined"&&typeof x.clientY=="undefined"&&(x.clientX=o,x.clientY=l),s=new Date().getTime(),s-t._mouseDownTime<n?a+=1:(a=1,t._mouseDownTime=s),r.prepFn&&r.prepFn(x,o,l),gb&&!h?(f=mF(),f.style.cursor=window.getComputedStyle(i).cursor):gb||(f=document,u=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(i).cursor),document.addEventListener("mouseup",C),document.addEventListener("touchend",C),r.dragmode!==!1&&(x.preventDefault(),document.addEventListener("mousemove",y),document.addEventListener("touchmove",y,{passive:!1}))}function y(x){x.preventDefault();var _=hF(x),A=r.minDrag||Nne.MINDRAG,T=m(_[0]-o,_[1]-l,A),M=T[0],E=T[1];(M||E)&&(t._dragged=!0,fc.unhover(t,x)),t._dragged&&r.moveFn&&!h&&(t._dragdata={element:i,dx:M,dy:E},r.moveFn(M,E))}function C(x){if(delete t._dragdata,r.dragmode!==!1&&(x.preventDefault(),document.removeEventListener("mousemove",y),document.removeEventListener("touchmove",y)),document.removeEventListener("mouseup",C),document.removeEventListener("touchend",C),gb?zne(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 _;c.target===d?_=c:(_={target:d,srcElement:d,toElement:d},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(A=>{var T=c[A];!_[A]&&typeof T!="function"&&(_[A]=T)})),r.clickFn&&r.clickFn(a,_),h||d.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function mF(){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}fc.coverSlip=mF;function hF(e){return Pne(e.changedTouches?e.changedTouches[0]:e,document.body)}});var z0=oe((vbe,yF)=>{"use strict";yF.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 xF=oe((dbe,_F)=>{"use strict";var yb=z0(),$v="data-savedcursor",bF="!!";_F.exports=function(r,t){var a=r.attr($v);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($v,o.slice(7)).classed(o,!1)}r.attr($v)||r.attr($v,bF)}yb(r,t)}else a&&(r.attr($v,null),a===bF?yb(r):yb(r,a))}});var Cm={};Ua(Cm,{dfltFillHeight:()=>Vne,itemGap:()=>Yne,itemHeightPad:()=>jne,itemMinHeight:()=>Xne,scrollBarColor:()=>Hne,scrollBarEnterAttrs:()=>Une,scrollBarMargin:()=>One,scrollBarMinHeight:()=>Ine,scrollBarWidth:()=>Bne,titlePad:()=>Gne});var Bne,Ine,Hne,One,Une,Gne,Yne,Vne,Xne,jne,Sm=Oa(()=>{"use strict";Bne=6,Ine=20,Hne="#808BA4",One=4,Une={rx:20,ry:3,width:0,height:0},Gne=2,Yne=5,Vne=6,Xne=16,jne=3});var _b=oe((hbe,AF)=>{"use strict";var bb=xi(),Wne=Il(),{dfltFillHeight:wF}=(Sm(),xr(Cm));AF.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Wne.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:bb({editType:"legend"}),grouptitlefont:bb({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemheight:{valType:"number",min:wF,dflt:wF,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:bb({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Kv=oe(Jv=>{"use strict";Jv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Jv.isVertical=function(r){return r.orientation!=="h"};Jv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Jv.getId=function(r){return r._id||"legend"}});var wb=oe((mbe,MF)=>{"use strict";var Dm=_t(),Co=pr(),Zne=ka(),$ne=Wo(),Jne=_b(),Kne=F1(),xb=Kv();function Qne(e,r,t,a,n){var i=r[e]||{},o=Zne.newContainer(t,e);function l(ie,ue){return Co.coerce(i,o,Jne,ie,ue)}var s=Co.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(ie,ue){var xe=f._input,De=f;return Co.coerce(xe,De,$ne,ie,ue)},d=t.font||{},h=Co.coerceFont(l,"grouptitlefont",d,{overrideDflt:{size:Math.round(d.size*1.1)}}),p=0,m=!1,b="normal",y=(t.shapes||[]).filter(function(ie){return ie.showlegend});function C(ie){return Dm.traceIs(ie,"pie-like")&&ie._length!=null&&(Array.isArray(ie.legend)||Array.isArray(ie.showlegend))}a.filter(C).forEach(function(ie){ie.visible&&p++;for(var ue=0;ue<ie._length;ue++){var xe=(Array.isArray(ie.legend)?ie.legend[ue]:ie.legend)||"legend";xe===e&&((Array.isArray(ie.showlegend)?ie.showlegend[ue]:ie.showlegend)||ie._dfltShowLegend)&&(m=!0,p++)}if(e==="legend"&&ie._length>ie.legend.length)for(var De=ie.legend.length;De<ie._length;De++)m=!0,p++});for(var x=a.concat(y).filter(function(ie){return!C(f)&&e===(ie.legend||"legend")}),_=0;_<x.length;_++)if(f=x[_],!!f.visible){var A=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,(!A&&Dm.traceIs(f,"pie-like")||f._input.showlegend===!0)&&p++),Co.coerceFont(c,"legendgrouptitle.font",h)),(!A&&Dm.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(b=xb.isGrouped({traceorder:b})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(b=xb.isReversed({traceorder:b})?"reversed+grouped":"grouped")}var T=Co.coerce(r,t,Kne,"showlegend",t.showlegend||m&&p>(e==="legend"?1:0));if(T===!1&&(t[e]=void 0),T===!1&&!i.uirevision||(l("uirevision",t.uirevision),T===!1))return;l("borderwidth");var M=l("orientation"),E=l("yref"),P=l("xref"),z=M==="h",I=E==="paper",X=P==="paper",H,V,N,Q="left";z?(H=0,Dm.getComponentMethod("rangeslider","isVisible")(r.xaxis)?I?(V=1.1,N="bottom"):(V=1,N="top"):I?(V=-.1,N="top"):(V=0,N="bottom")):(V=1,N="auto",X?H=1.02:(H=1,Q="right")),Co.coerce(i,o,{x:{valType:"number",editType:"legend",min:X?-2:0,max:X?3:1,dflt:H}},"x"),Co.coerce(i,o,{y:{valType:"number",editType:"legend",min:I?-2:0,max:I?3:1,dflt:V}},"y"),l("traceorder",b),xb.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemheight"),l("itemclick"),l("itemdoubleclick");let ee=l("groupclick");l("groupdoubleclick",ee),l("xanchor",Q),l("yanchor",N),l("maxheight"),l("valign"),Co.noneOrAll(i,o,["x","y"]);var re=l("title.text");if(re){l("title.side",z?"left":"top");var ae=Co.extendFlat({},s,{size:Co.bigFont(s.size)});Co.coerceFont(l,"title.font",ae);let ie=n>1;l("titleclick",ie?"toggle":!1),l("titledoubleclick",ie?"toggleothers":!1)}}MF.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):Co.pushUnique(u,i[n].legend);for(t._legends=[],n=0;n<u.length;n++){var f=u[n];Qne(f,r,t,i,u.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var Tb=oe(Mb=>{"use strict";var N0=_t(),Ab=pr(),eie=Ab.pushUnique,rie=Kv(),TF=!0;Mb.handleItemClick=function(r,t,a,n,i){var o=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&TF&&t.data&&t._context.showTips&&(Ab.notifier(Ab._(t,"Double-click on legend to isolate one trace"),"long",t),TF=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let d=(o.shapes||[]).filter(Je=>Je.showlegend||Je.legendgroup);var h=c.concat(d),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var m=p.legendgroup,b,y,C,x,_,A,T={},M=[],E=[],P=[];function z(Je,tr){var ze=M.indexOf(Je),lr=T.visible;return lr||(lr=T.visible=[]),M.indexOf(Je)===-1&&(M.push(Je),ze=M.length-1),lr[ze]=tr,ze}var I=(o.shapes||[]).map(function(Je){return Je._input}),X=!1;function H(Je,tr){I[Je].visible=tr,X=!0}function V(Je,tr){if(!(l.groupTitle&&!u)){var ze=Je._isShape,lr=Je.index;lr===void 0&&(lr=Je._index);var dr=Je.visible===!1?!1:tr;ze?H(lr,dr):z(lr,dr)}}var N=p.legend;if(!p._isShape&&N0.traceIs(p,"pie-like")){var Q=l.label,ee=f.indexOf(Q);if(n==="toggle")ee===-1?f.push(Q):f.splice(ee,1);else if(n==="toggleothers"){var re=ee!==-1,ae=[];for(b=0;b<t.calcdata.length;b++){var ie=t.calcdata[b];for(y=0;y<ie.length;y++){var ue=ie[y],xe=ue.label;N===ie[0].trace.legend&&Q!==xe&&(f.indexOf(xe)===-1&&(re=!0),eie(f,xe),ae.push(xe))}}if(!re)for(var De=0;De<ae.length;De++){var Ye=f.indexOf(ae[De]);Ye!==-1&&f.splice(Ye,1)}}N0.call("_guiRelayout",t,"hiddenlabels",f)}else{var Ee=m&&m.length,ke=[],je;if(Ee)for(b=0;b<h.length;b++)je=h[b],je.visible&&je.legendgroup===m&&ke.push(b);if(n==="toggle"){var W;switch(p.visible){case!0:W="legendonly";break;case!1:W=!1;break;case"legendonly":W=!0;break}if(Ee)if(u)for(b=0;b<h.length;b++){var le=h[b];le.visible!==!1&&le.legendgroup===m&&V(le,W)}else V(p,W);else V(p,W)}else if(n==="toggleothers"){var de,K,J,fe,be,Ne=!0;let Je=Ee&&u;for(b=0;b<h.length;b++)if(be=h[b],de=be===p,J=be.showlegend!==!0,!(de||J)&&(K=Je&&be.legendgroup===m,!K&&be.legend===N&&be.visible===!0&&!N0.traceIs(be,"notLegendIsolatable"))){Ne=!1;break}for(b=0;b<h.length;b++)if(be=h[b],!(be.visible===!1||be.legend!==N)&&!N0.traceIs(be,"notLegendIsolatable"))switch(p.visible){case"legendonly":V(be,!0);break;case!0:fe=Ne?!0:"legendonly",de=be===p,J=be.showlegend!==!0&&!be.legendgroup,K=de||Je&&be.legendgroup===m,V(be,K||J?!0:fe);break}}for(b=0;b<E.length;b++)if(C=E[b],!!C){var Ze=C.constructUpdate(),er=Object.keys(Ze);for(y=0;y<er.length;y++)x=er[y],A=T[x]=T[x]||[],A[P[b]]=Ze[x]}for(_=Object.keys(T),b=0;b<_.length;b++)for(x=_[b],y=0;y<M.length;y++)T[x].hasOwnProperty(y)||(T[x][y]=void 0);X?N0.call("_guiUpdate",t,T,{shapes:I},M):N0.call("_guiRestyle",t,T,M)}};Mb.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,o=rie.getId(t),l=(n.shapes||[]).filter(y=>y.showlegend||y.legendgroup),s=i.concat(l);function u(y){return(y.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(C){return u(C)&&C.visible===!0}),c=!1;else{let y=s.some(function(C){return!u(C)&&C.visible===!0&&C.showlegend!==!1});f=!0,c=!y}let d={visible:[]},h=[],p=(n.shapes||[]).map(function(y){return y._input});for(var m=!1,b=0;b<s.length;b++){let y=s[b],C=u(y);if(!C){let A=y.showlegend!==!0&&!y.legendgroup;if(a==="toggle"||A)continue}let _=(C?f:c)?!0:"legendonly";y.visible!==!1&&y.visible!==_&&(y._isShape?(p[y._index].visible=_,m=!0):(h.push(y.index),d.visible.push(_)))}m?N0.call("_guiUpdate",r,d,{shapes:p},h):h.length&&N0.call("_guiRestyle",r,d,h)}});var SF=oe((ybe,CF)=>{"use strict";var{isArrayOrTypedArray:kb}=ro(),kF=_t(),Cb=Kv();CF.exports=function(r,t,a){var n=t._inHover,i=Cb.isGrouped(t),o=Cb.isReversed(t),l={},s=[],u=!1,f={},c=0,d=0,h,p;function m(ie,ue,xe){if(t.visible!==!1&&!(a&&ie!==t._id))if(ue===""||!Cb.isGrouped(t)){var De="~~i"+c;s.push(De),l[De]=[xe],c++}else s.indexOf(ue)===-1?(s.push(ue),u=!0,l[ue]=[xe]):l[ue].push(xe)}for(h=0;h<r.length;h++){var b=r[h],y=b[0],C=y.trace,x=C.legend,_=C.legendgroup;if(!(!n&&(!C.visible||!C.showlegend)))if(kF.traceIs(C,"pie-like")){var A=Array.isArray(C.legend),T=Array.isArray(C.showlegend);for(f[_]||(f[_]={}),p=0;p<b.length;p++)if(!(T&&C.showlegend[b[p].i]===!1)){A&&(x=C.legend[b[p].i]||"legend");var M=b[p].label;f[_][M]||(m(x,_,{label:M,color:b[p].color,i:b[p].i,trace:C,pts:b[p].pts}),f[_][M]=!0,d=Math.max(d,(M||"").length))}}else m(x,_,y),d=Math.max(d,(C.name||"").length)}if(!s.length)return[];var E=!u||!i,P=[];for(h=0;h<s.length;h++){var z=l[s[h]];E?P.push(z[0]):P.push(z)}for(E&&(P=[P]),h=0;h<P.length;h++){var I=1/0;for(p=0;p<P[h].length;p++){var X=P[h][p].trace.legendrank,H=kb(X)?Math.min(X):X;I>H&&(I=H)}P[h][0]._groupMinRank=I,P[h][0]._preGroupSort=h}var V=function(ie,ue){return ie[0]._groupMinRank-ue[0]._groupMinRank||ie[0]._preGroupSort-ue[0]._preGroupSort},N=function(ie,ue){var xe=kb(ie.trace.legendrank)?ie.trace.legendrank[ie.i]:ie.trace.legendrank,De=kb(ue.trace.legendrank)?ue.trace.legendrank[ue.i]:ue.trace.legendrank;return xe-De||ie._preSort-ue._preSort};for(P.forEach(function(ie,ue){ie[0]._preGroupSort=ue}),P.sort(V),h=0;h<P.length;h++){P[h].forEach(function(ie,ue){ie._preSort=ue}),P[h].sort(N);var Q=P[h][0].trace,ee=null;for(p=0;p<P[h].length;p++){var re=P[h][p].trace.legendgrouptitle;if(re&&re.text){ee=re,n&&(re.font=t._groupTitleFont);break}}if(o&&P[h].reverse(),ee){var ae=!1;for(p=0;p<P[h].length;p++)if(kF.traceIs(P[h][p].trace,"pie-like")){ae=!0;break}P[h].unshift({i:-1,groupTitle:ee,noClick:ae,trace:{showlegend:Q.showlegend,legendgroup:Q.legendgroup,legend:Q.legend,visible:t.groupclick==="toggleitem"?!0:Q.visible}})}for(p=0;p<P[h].length;p++)P[h][p]=[P[h][p]]}return t._lgroupsLength=P.length,t._maxNameLength=d,P}});var Sb=oe(cc=>{"use strict";var Fm=pr();function DF(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}cc.formatPiePercent=function(r,t){var a=DF((r*100).toPrecision(3));return Fm.numSeparate(a,t)+"%"};cc.formatPieValue=function(r,t){var a=DF(r.toPrecision(10));return Fm.numSeparate(a,t)};cc.getFirstFilled=function(r,t){if(Fm.isArrayOrTypedArray(r))for(var a=0;a<t.length;a++){var n=r[t[a]];if(n||n===0||n==="")return n}};cc.castOption=function(r,t){if(Fm.isArrayOrTypedArray(r))return cc.getFirstFilled(r,t);if(r)return r};cc.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var EF=oe((_be,FF)=>{"use strict";var tie=da(),aie=Nt();FF.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?tie.pointStyle(r,a,n,t):aie.fill(r,t.color)}});var RF=oe((xbe,PF)=>{"use strict";var LF=Nt(),qF=Sb().castOption,nie=EF();PF.exports=function(r,t,a,n){var i=a.marker.line,o=qF(i.color,t.pts)||LF.defaultLine,l=qF(i.width,t.pts)||0;r.call(nie,t,a,n).style("stroke-width",l).call(LF.stroke,o)}});var qb=oe((wbe,HF)=>{"use strict";var Ci=Lt(),Db=_t(),di=pr(),Fb=di.strTranslate,So=da(),rl=Nt(),Eb=Ls().extractOpts,Lm=Ti(),iie=RF(),oie=Sb().castOption,zF=(Sm(),xr(Cm)),NF=12,BF=5,vc=2,lie=10,r2=5;HF.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=a.itemheight,s=(o+zF.itemGap*2)/2,u=Fb(s,0),f=function(E,P,z,I){var X;if(E+1)X=E;else if(P&&P.width>0)X=P.width;else return 0;return i?I:Math.min(X,z)};r.each(function(E){var P=Ci.select(this),z=di.ensureSingle(P,"g","layers");z.style("opacity",E[0].trace.opacity);var I=a.indentation,X=a.valign,H=E[0].lineHeight,V=E[0].height;if(X==="middle"&&I===0||!H||!V)z.attr("transform",null);else{var N={top:1,bottom:-1}[X],Q=N*(.5*(H-V+3))||0,ee=a.indentation;z.attr("transform",Fb(ee,Q))}var re=z.selectAll("g.legendfill").data([E]);re.enter().append("g").classed("legendfill",!0);var ae=z.selectAll("g.legendlines").data([E]);ae.enter().append("g").classed("legendlines",!0);var ie=z.selectAll("g.legendsymbols").data([E]);ie.enter().append("g").classed("legendsymbols",!0),ie.selectAll("g.legendpoints").data([E]).enter().append("g").classed("legendpoints",!0)}).each(M).each(h).each(m).each(p).each(y).each(A).each(_).each(c).each(d).each(C).each(x);function c(E){var P=IF(E),z=P.showFill,I=P.showLine,X=P.showGradientLine,H=P.showGradientFill,V=P.anyFill,N=P.anyLine,Q=E[0],ee=Q.trace,re,ae,ie=Eb(ee),ue=ie.colorscale,xe=ie.reversescale,De=function(K){if(K.size())if(z)So.fillGroupStyle(K,t,!0);else{var J="legendfill-"+ee.uid;So.gradient(K,t,J,Lb(xe),ue,"fill")}},Ye=function(K){if(K.size()){var J="legendline-"+ee.uid;So.lineGroupStyle(K),So.gradient(K,t,J,Lb(xe),ue,"stroke")}},Ee=Lm.hasMarkers(ee)||!V?"M5,0":N?"M5,-2":"M5,-3",ke=Ci.select(this),je=ke.select(".legendfill").selectAll("path").data(z||H?[E]:[]);je.enter().append("path").classed("js-fill",!0),je.exit().remove(),je.attr("d",Ee+"h"+o+"v"+l+"h-"+o+"z").call(De);let W=z||H?(zF.dfltFillHeight-l)/2:0;if(ke.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",W?Fb(0,W):null),I||X){var le=f(void 0,ee.line,lie,BF);ae=di.minExtend(ee,{line:{width:le}}),re=[di.minExtend(Q,{trace:ae})]}var de=ke.select(".legendlines").selectAll("path").data(I||X?[re]:[]);de.enter().append("path").classed("js-line",!0),de.exit().remove(),de.attr("d",Ee+(X?"l"+o+",0.0001":"h"+o)).call(I?So.lineGroupStyle:Ye)}function d(E){var P=IF(E),z=P.anyFill,I=P.anyLine,X=P.showLine,H=P.showMarker,V=E[0],N=V.trace,Q=!H&&!I&&!z&&Lm.hasText(N),ee,re;function ae(W,le,de,K){var J=di.nestedProperty(N,W).get(),fe=di.isArrayOrTypedArray(J)&&le?le(J):J;if(i&&fe&&K!==void 0&&(fe=K),de){if(fe<de[0])return de[0];if(fe>de[1])return de[1]}return fe}function ie(W){return V._distinct&&V.index&&W[V.index]?W[V.index]:W[0]}if(H||Q||X){var ue={},xe={};if(H){ue.mc=ae("marker.color",ie);var De=N.type==="scattermap";ue.mx=De?"circle":ae("marker.symbol",ie),ue.mo=ae("marker.opacity",di.mean,[.2,1]),ue.mlc=ae("marker.line.color",ie),ue.mlw=ae("marker.line.width",di.mean,[0,5],vc),ue.mld=ae("marker.line.dash",ie),xe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Ye=ae("marker.size",di.mean,[2,16],NF);ue.ms=Ye,xe.marker.size=Ye}X&&(xe.line={width:ae("line.width",ie,[0,10],BF)}),Q&&(ue.tx="Aa",ue.tp=ae("textposition",ie),ue.ts=10,ue.tc=ae("textfont.color",ie),ue.tf=ae("textfont.family",ie),ue.tw=ae("textfont.weight",ie),ue.ty=ae("textfont.style",ie),ue.tv=ae("textfont.variant",ie),ue.tC=ae("textfont.textcase",ie),ue.tE=ae("textfont.lineposition",ie),ue.tS=ae("textfont.shadow",ie)),ee=[di.minExtend(V,ue)],re=di.minExtend(N,xe),re.selectedpoints=null,re.texttemplate=null}var Ee=Ci.select(this).select("g.legendpoints"),ke=Ee.selectAll("path.scatterpts").data(H?ee:[]);ke.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),ke.exit().remove(),ke.call(So.pointStyle,re,t),H&&(ee[0].mrc=3);var je=Ee.selectAll("g.pointtext").data(Q?ee:[]);je.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),je.exit().remove(),je.selectAll("text").call(So.textPointStyle,re,t)}function h(E){var P=E[0].trace,z=P.type==="waterfall";if(E[0]._distinct&&z){var I=E[0].trace[E[0].dir].marker;return E[0].mc=I.color,E[0].mlw=I.line.width,E[0].mlc=I.line.color,b(E,this,"waterfall")}var X=[];P.visible&&z&&(X=E[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 H=Ci.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(X);H.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),H.exit().remove(),H.each(function(V){var N=Ci.select(this),Q=P[V[0]].marker,ee=f(void 0,Q.line,r2,vc);N.attr("d",V[1]).style("stroke-width",ee+"px").call(rl.fill,Q.color),ee&&N.call(rl.stroke,Q.line.color)})}function p(E){b(E,this)}function m(E){b(E,this,"funnel")}function b(E,P,z){var I=E[0].trace,X=I.marker||{},H=X.line||{},V=X.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",N=z?I.visible&&I.type===z:Db.traceIs(I,"bar"),Q=Ci.select(P).select("g.legendpoints").selectAll("path.legend"+z).data(N?[E]:[]);Q.enter().append("path").classed("legend"+z,!0).attr("d",V).attr("transform",u),Q.exit().remove(),Q.each(function(ee){var re=Ci.select(this),ae=ee[0],ie=f(ae.mlw,X.line,r2,vc);re.style("stroke-width",ie+"px");var ue=ae.mcc;if(!a._inHover&&"mc"in ae){var xe=Eb(X),De=xe.mid;De===void 0&&(De=(xe.max+xe.min)/2),ue=So.tryColorscale(X,"")(De)}var Ye=ue||ae.mc||X.color,Ee=X.pattern,ke=So.getPatternAttr;let je=0;a._inHover&&ae._distinct&&ae.index!=null&&(je=ae.index);let W=Ee&&(ke(Ee.shape,je,"")||ke(Ee.path,je,""));if(W){let de=ke(Ee.bgcolor,je,null),K=ke(Ee.fgcolor,je,null);var le=Ee.fgopacity;let J=a._inHover?Em(ke(Ee.size,je,8),8,10):Em(Ee.size,8,10),fe=a._inHover?Em(ke(Ee.solidity,je,.5),.5,1):Em(Ee.solidity,.5,1),be=a._inHover?`hover-${I.uid}-${je}`:`legend-${I.uid}`;re.call(So.pattern,"legend",t,be,W,J,fe,ue,Ee.fillmode,de,K,le)}else re.call(rl.fill,Ye);ie&&rl.stroke(re,ae.mlc||H.color)})}function y(E){var P=E[0].trace,z=Ci.select(this).select("g.legendpoints").selectAll("path.legendbox").data(P.visible&&Db.traceIs(P,"box-violin")?[E]:[]);z.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),z.exit().remove(),z.each(function(){var I=Ci.select(this);if((P.boxpoints==="all"||P.points==="all")&&rl.opacity(P.fillcolor)===0&&rl.opacity((P.line||{}).color)===0){var X=di.minExtend(P,{marker:{size:i?NF:di.constrain(P.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});z.call(So.pointStyle,X,t)}else{var H=f(void 0,P.line,r2,vc);I.style("stroke-width",H+"px").call(rl.fill,P.fillcolor),H&&rl.stroke(I,P.line.color)}})}function C(E){var P=E[0].trace,z=Ci.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(P.visible&&P.type==="candlestick"?[E,E]:[]);z.enter().append("path").classed("legendcandle",!0).attr("d",function(I,X){return X?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(I,X){var H=Ci.select(this),V=P[X?"increasing":"decreasing"],N=f(void 0,V.line,r2,vc);H.style("stroke-width",N+"px").call(rl.fill,V.fillcolor),N&&rl.stroke(H,V.line.color)})}function x(E){var P=E[0].trace,z=Ci.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(P.visible&&P.type==="ohlc"?[E,E]:[]);z.enter().append("path").classed("legendohlc",!0).attr("d",function(I,X){return X?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(I,X){var H=Ci.select(this),V=P[X?"increasing":"decreasing"],N=f(void 0,V.line,r2,vc);H.style("fill","none").call(So.dashLine,V.line.dash,N),N&&rl.stroke(H,V.line.color)})}function _(E){T(E,this,"pie")}function A(E){T(E,this,"funnelarea")}function T(E,P,z){var I=E[0],X=I.trace,H=z?X.visible&&X.type===z:Db.traceIs(X,z),V=Ci.select(P).select("g.legendpoints").selectAll("path.legend"+z).data(H?[E]:[]);if(V.enter().append("path").classed("legend"+z,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),V.exit().remove(),V.size()){var N=X.marker||{},Q=f(oie(N.line.width,I.pts),N.line,r2,vc),ee="pieLike",re=di.minExtend(X,{marker:{line:{width:Q}}},ee),ae=di.minExtend(I,{trace:re},ee);iie(V,ae,re,t)}}function M(E){var P=E[0].trace,z,I=[];if(P.visible)switch(P.type){case"histogram2d":case"heatmap":I=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmap":I=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymap":I=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":I=[["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"]],z=!1;break;case"streamtube":I=[["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"]],z=!1;break;case"surface":I=[["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"]],z=!0;break;case"mesh3d":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1;break}var X=Ci.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(I);X.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(H,V){var N=Ci.select(this),Q=Eb(P),ee=Q.colorscale,re=Q.reversescale,ae=function(De){if(De.size()){var Ye="legendfill-"+P.uid;So.gradient(De,t,Ye,Lb(re,z==="radial"),ee,"fill")}},ie;if(ee){if(!z){var xe=ee.length;ie=V===0?ee[re?xe-1:0][1]:V===1?ee[re?0:xe-1][1]:ee[Math.floor((xe-1)/2)][1]}}else{var ue=P.vertexcolor||P.facecolor||P.color;ie=di.isArrayOrTypedArray(ue)?ue[V]||ue[0]:ue}N.attr("d",H[0]),ie?N.call(rl.fill,ie):N.call(ae)})}};function Lb(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function IF(e){var r=e[0].trace,t=r.contours,a=Lm.hasLines(r)||r.visible&&r.type==="quiver",n=Lm.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 Em(e,r,t){return e&&di.isArrayOrTypedArray(e)?r:e>t?t:e}});var Nb=oe((Abe,ZF)=>{"use strict";var Si=Lt(),_n=pr(),Rb=Ln(),dc=_t(),Rm=Lv(),Pb=el(),xn=da(),Qv=Nt(),Ru=vi(),OF=Tb().handleItemClick,UF=Tb().handleTitleClick,$a=(Sm(),xr(Cm)),zb=(ci(),xr(fi)),jF=zb.LINE_SPACING,a2=zb.FROM_TL,GF=zb.FROM_BR,YF=SF(),sie=qb(),n2=Kv(),t2=1,uie=/^legend[0-9]*$/;ZF.exports=function(r,t){if(t)VF(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Si.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(uie)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o<n.length;o++){var l=n[o],s=r._fullLayout[l];VF(r,s)}}};function fie(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*jF,i=0,o=e.node(),l=xn.bBox(o).width;r.title.side==="top center"?i=.5*(r._width-2*t-2*$a.titlePad-l):r.title.side==="top right"&&(i=r._width-2*t-2*$a.titlePad-l),Ru.positionText(e,t+$a.titlePad+i,t+n)}}function VF(e,r){var t=r||{},a=e._fullLayout,n=n2.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=YF(t.entries,t)}else{for(var u=(e.calcdata||[]).slice(),f=a.shapes,c=0;c<f.length;c++){var d=f[c];if(d.showlegend){var h={_isShape:!0,index:d._index,name:d.name||d.label.text||"shape "+d._index,legend:d.legend,legendgroup:d.legendgroup,legendgrouptitle:d.legendgrouptitle,legendrank:d.legendrank,legendwidth:d.legendwidth,showlegend:d.showlegend,visible:d.visible,opacity:d.opacity,mode:d.type==="line"?"lines":"markers",line:d.line,marker:{line:d.line,color:d.fillcolor,size:12,symbol:d.type==="rect"?"square":d.type==="circle"?"circle":"hexagon2"}};u.push([{trace:h}])}}s=a.showlegend&&YF(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(),Rb.autoMargin(e,n);var m=_n.ensureSingle(o,"g",n,function(E){l||E.attr("pointer-events","all")}),b=_n.ensureSingleById(a._topdefs,"clipPath",i,function(E){E.append("rect")}),y=_n.ensureSingle(m,"rect","bg",function(E){E.attr("shape-rendering","crispEdges")});y.call(Qv.stroke,t.bordercolor).call(Qv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=_n.ensureSingle(m,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var _;x.text?(_=_n.ensureSingle(C,"text",n+"titletext"),_.attr("text-anchor","start").call(xn.font,x.font).text(x.text),Pm(_,C,e,t,t2),!l&&(t.titleclick||t.titledoubleclick)&&die(C,e,t,n)):(C.selectAll("."+n+"titletext").remove(),C.selectAll("."+n+"titletoggle").remove());var A=_n.ensureSingle(m,"rect","scrollbar",function(E){E.attr($a.scrollBarEnterAttrs).call(Qv.fill,$a.scrollBarColor)}),T=C.selectAll("g.groups").data(s);T.enter().append("g").attr("class","groups"),T.exit().remove();var M=T.selectAll("g.traces").data(_n.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(E){let P=E[0],z=P.trace;if(P.groupTitle){let I=z.legendgroup,X=(a.shapes||[]).filter(function(V){return V.showlegend});return e._fullData.concat(X).some(function(V){return V.legendgroup===I&&(V.legend||"legend")===n&&V.visible===!0})?1:.5}return dc.traceIs(z,"pie-like")?p.indexOf(E[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Si.select(this).call(cie,e,t)}).call(sie,e,t).each(function(E){l||E[0].groupTitle&&t.groupclick==="toggleitem"||Si.select(this).call(vie,e,n)}),_n.syncOrAsync([Rb.previousPromises,function(){return mie(e,T,M,t,C)},function(){var E=a._size,P=t.borderwidth,z=t.xref==="paper",I=t.yref==="paper";if(x.text){let Ne=(a.shapes||[]).filter(function(er){return er.showlegend}),Ze=e._fullData.concat(Ne).some(function(er){let Je=er.legend||"legend";var tr=Array.isArray(Je)?Je.includes(n):Je===n;return tr&&er.visible===!0});_.style("opacity",Ze?1:.5)}if(!l){var X,H;z?X=E.l+E.w*t.x-a2[zm(t)]*t._width:X=a.width*t.x-a2[zm(t)]*t._width,I?H=E.t+E.h*(1-t.y)-a2[Nm(t)]*t._effHeight:H=a.height*(1-t.y)-a2[Nm(t)]*t._effHeight;var V=gie(e,n,X,H);if(V)return;if(a.margin.autoexpand){var N=X,Q=H;X=z?_n.constrain(X,0,a.width-t._width):N,H=I?_n.constrain(H,0,a.height-t._effHeight):Q,X!==N&&_n.log("Constrain "+n+".x to make legend fit inside graph"),H!==Q&&_n.log("Constrain "+n+".y to make legend fit inside graph")}xn.setTranslate(m,X,H)}if(A.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var ee=t._effHeight;l&&(ee=t._height),y.attr({width:t._width-P,height:ee-P,x:P/2,y:P/2}),xn.setTranslate(C,0,0),b.select("rect").attr({width:t._width-2*P,height:ee-2*P,x:P,y:P}),xn.setClipUrl(C,i,e),xn.setRect(A,0,0,0,0),delete t._scrollY}else{var re=Math.max($a.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),ae=t._effHeight-re-2*$a.scrollBarMargin,ie=t._height-t._effHeight,ue=ae/ie,xe=Math.min(t._scrollY||0,ie);y.attr({width:t._width-2*P+$a.scrollBarWidth+$a.scrollBarMargin,height:t._effHeight-P,x:P/2,y:P/2}),b.select("rect").attr({width:t._width-2*P+$a.scrollBarWidth+$a.scrollBarMargin,height:t._effHeight-2*P,x:P,y:P+xe}),xn.setClipUrl(C,i,e),de(xe,re,ue),m.on("wheel",function(){xe=_n.constrain(t._scrollY+Si.event.deltaY/ie*ae,0,ie),de(xe,re,ue),xe!==0&&xe!==ie&&Si.event.preventDefault()});var De,Ye,Ee,ke=function(Ne,Ze,er){var Je=(er-Ze)/ue+Ne;return _n.constrain(Je,0,ie)},je=function(Ne,Ze,er){var Je=(Ze-er)/ue+Ne;return _n.constrain(Je,0,ie)},W=Si.behavior.drag().on("dragstart",function(){var Ne=Si.event.sourceEvent;Ne.type==="touchstart"?De=Ne.changedTouches[0].clientY:De=Ne.clientY,Ee=xe}).on("drag",function(){var Ne=Si.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ne.type==="touchmove"?Ye=Ne.changedTouches[0].clientY:Ye=Ne.clientY,xe=ke(Ee,De,Ye),de(xe,re,ue))});A.call(W);var le=Si.behavior.drag().on("dragstart",function(){var Ne=Si.event.sourceEvent;Ne.type==="touchstart"&&(De=Ne.changedTouches[0].clientY,Ee=xe)}).on("drag",function(){var Ne=Si.event.sourceEvent;Ne.type==="touchmove"&&(Ye=Ne.changedTouches[0].clientY,xe=je(Ee,De,Ye),de(xe,re,ue))});C.call(le)}function de(Ne,Ze,er){t._scrollY=e._fullLayout[n]._scrollY=Ne,xn.setTranslate(C,0,-Ne),xn.setRect(A,t._width,$a.scrollBarMargin+Ne*er,$a.scrollBarWidth,Ze),b.select("rect").attr("y",P+Ne)}if(e._context.edits.legendPosition){var K,J,fe,be;m.classed("cursor-move",!0),Pb.init({element:m.node(),gd:e,prepFn:function(Ne){if(Ne.target!==A.node()){var Ze=xn.getTranslate(m);fe=Ze.x,be=Ze.y}},moveFn:function(Ne,Ze){if(fe!==void 0&&be!==void 0){var er=fe+Ne,Je=be+Ze;xn.setTranslate(m,er,Je),K=Pb.align(er,t._width,E.l,E.l+E.w,t.xanchor),J=Pb.align(Je+t._height,-t._height,E.t+E.h,E.t,t.yanchor)}},doneFn:function(){if(K!==void 0&&J!==void 0){var Ne={};Ne[n+".x"]=K,Ne[n+".y"]=J,dc.call("_guiRelayout",e,Ne)}},clickFn:function(Ne,Ze){var er=o.selectAll("g.traces").filter(function(){var Je=this.getBoundingClientRect();return Ze.clientX>=Je.left&&Ze.clientX<=Je.right&&Ze.clientY>=Je.top&&Ze.clientY<=Je.bottom});er.size()>0&&WF(e,t,er,Ne,Ze)}})}}],e)}}function qm(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 WF(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),dc.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=Rm.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&OF(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Rm.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&OF(t,e,r,s,a)}}function cie(e,r,t){var a=n2.getId(t),n=e.data()[0][0],i=n.trace,o=dc.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=_n.templateString(u,i._meta))));var c=_n.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(xn.font,f).text(l?XF(u,s):u);var d=t.indentation+t.itemwidth+$a.itemGap*2;Ru.positionText(c,d,0),l?c.call(Ru.makeEditable,{gd:r,text:u}).call(Pm,e,r,t).on("edit",function(h){this.text(XF(h,s)).call(Pm,e,r,t);var p={};return p.name=h,n.trace._isShape?dc.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):dc.call("_guiRestyle",r,p,i.index)}):Pm(c,e,r,t)}function XF(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 vie(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=_n.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Qv.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)),WF(r,l,e,i,Si.event)}}))}function die(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&dc.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=_n.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Qv.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:Si.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(Rm.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&UF(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Rm.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&UF(r,t,t.titledoubleclick))}))}function Pm(e,r,t,a,n){a._inHover&&e.attr("data-notex",Ru.isPureTex(e.text())?null:!0),Ru.convertToTspans(e,t,function(){hie(r,t,a,n)})}function hie(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=n2.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===t2?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*jF,d,h;if(l){var p=xn.bBox(l);d=p.height,h=p.width,a===t2?xn.setTranslate(o,u,u+d*.75):xn.setTranslate(o,0,d*.25)}else{var m="."+s+(a===t2?"title":"")+"text",b=e.select(m),y=Ru.lineCount(b),C=b.node();if(d=c*y,h=C?xn.bBox(C).width:0,a===t2)t.title.side==="left"&&(h+=$a.itemGap*2),Ru.positionText(b,u+$a.titlePad,u+c);else{var x=$a.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(x=$a.itemGap,h-=t.indentation+t.itemwidth),Ru.positionText(b,x,-c*((y-1)/2-.3))}}if(a===t2)t._titleWidth=h,t._titleHeight=d;else{n.lineHeight=c;let _=$a.itemMinHeight+t.itemheight-$a.dfltFillHeight;n.height=Math.max(d,$a.itemMinHeight,_)+$a.itemHeightPad,n.width=h}}function pie(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 mie(e,r,t,a,n){var i=e._fullLayout,o=n2.getId(a);a||(a=i[o]);var l=i._size,s=n2.isVertical(a),u=n2.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,d=2*c,h=$a.itemGap,p=a.indentation+a.itemwidth+h*2,m=2*(c+h),b=Nm(a),y=a.y<0||a.y===0&&b==="top",C=a.y>1||a.y===1&&b==="bottom",x=a.tracegroupgap,_={};let{orientation:A,yref:T}=a,{maxheight:M}=a,E=y||C||A!=="v"||T!=="paper";M||(M=E?.5:1);let P=E?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*P,30);var z=0;a._width=0,a._height=0;var I=pie(a);if(s)t.each(function(Ne){var Ze=Ne[0].height;xn.setTranslate(this,c+I[0],c+I[1]+a._height+Ze/2+h),a._height+=Ze,a._width=Math.max(a._width,Ne[0].width)}),z=p+a._width,a._width+=h+p+d,a._height+=m,u&&(r.each(function(Ne,Ze){xn.setTranslate(this,0,Ze*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var X=zm(a),H=a.x<0||a.x===0&&X==="right",V=a.x>1||a.x===1&&X==="left",N=C||y,Q=i.width/2;a._maxWidth=Math.max(H?N&&X==="left"?l.l+l.w:Q:V?N&&X==="right"?l.r+l.w:Q:l.w,2*p);var ee=0,re=0;t.each(function(Ne){var Ze=qm(Ne,a,p);ee=Math.max(ee,Ze),re+=Ze}),z=null;var ae=0;if(u){var ie=0,ue=0,xe=0;r.each(function(){var Ne=0,Ze=0;Si.select(this).selectAll("g.traces").each(function(Je){var tr=qm(Je,a,p),ze=Je[0].height;xn.setTranslate(this,I[0],I[1]+c+h+ze/2+Ze),Ze+=ze,Ne=Math.max(Ne,tr),_[Je[0].trace.legendgroup]=Ne});var er=Ne+h;ue>0&&er+c+ue>a._maxWidth?(ae=Math.max(ae,ue),ue=0,xe+=ie+x,ie=Ze):ie=Math.max(ie,Ze),xn.setTranslate(this,ue,xe),ue+=er}),a._width=Math.max(ae,ue)+c,a._height=xe+ie+m}else{var De=t.size(),Ye=re+d+(De-1)*h<a._maxWidth,Ee=0,ke=0,je=0,W=0;t.each(function(Ne){var Ze=Ne[0].height,er=qm(Ne,a,p,u),Je=Ye?er:ee;f||(Je+=h),Je+c+ke-h>=a._maxWidth&&(ae=Math.max(ae,W),ke=0,je+=Ee,a._height+=Ee,Ee=0),xn.setTranslate(this,I[0]+c+ke,I[1]+c+je+Ze/2+h),W=ke+er+h,ke+=Je,Ee=Math.max(Ee,Ze)}),Ye?(a._width=ke+d,a._height=Ee+m):(a._width=Math.max(ae,W)+d,a._height+=Ee+m)}}a._width=Math.ceil(Math.max(a._width+I[0],a._titleWidth+2*(c+$a.titlePad))),a._height=Math.ceil(Math.max(a._height+I[1],a._titleHeight+2*(c+$a.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var le=e._context.edits,de=le.legendText||le.legendPosition;if(t.each(function(Ne){var Ze=Si.select(this).select("."+o+"toggle"),er=Ne[0].height,Je=Ne[0].trace.legendgroup,tr=qm(Ne,a,p);u&&Je!==""&&(tr=_[Je]);var ze=de?p:z||tr;!s&&!f&&(ze+=h/2),xn.setRect(Ze,0,-er/2,ze,er)}),a._inHover){let Ne=a._width-d-h-I[0];t.each(function(Ze){Ze[0].textAlign==="right"&&Si.select(this).select("."+o+"text").attr("text-anchor","end").call(Ru.positionText,Ne)})}var K=n.select("."+o+"titletext");K.node()&&fie(K,a,c);var J=n.select("."+o+"titletoggle");if(J.size()&&K.node()){var fe=K.attr("x")||0,be=$a.titlePad;xn.setRect(J,fe-be,c,a._titleWidth+2*be,a._titleHeight+2*be)}}function gie(e,r,t,a){var n=e._fullLayout,i=n[r],o=zm(i),l=Nm(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",d={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return Rb.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*a2[o],r:i._width*GF[o],b:i._effHeight*GF[l],t:i._effHeight*a2[l]});s?e._fullLayout._reservedMargin[r][f]=d[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=d[c]:e._fullLayout._reservedMargin[r][f]=d[f]}function zm(e){return _n.isRightAnchor(e)?"right":_n.isCenterAnchor(e)?"center":"left"}function Nm(e){return _n.isBottomAnchor(e)?"bottom":_n.isMiddleAnchor(e)?"middle":"top"}});var Ub=oe(Ob=>{"use strict";var Nu=Lt(),zu=Qt(),Ja=pr(),yie=Ja.pushUnique,Bb=Ja.strTranslate,bie=Ja.strRotate,_ie=Lv(),Ya=vi(),xie=xF(),Is=da(),kn=Nt(),Bm=el(),jl=Ga(),wie=(Hn(),xr(In)).zindexSeparator,hc=_t(),Do=Pu(),pc=(iv(),xr(nv)),Aie=wb(),Mie=Nb(),iE=pc.YANGLE,Hb=Math.PI*iE/180,Tie=1/Math.sin(Hb),kie=Math.cos(Hb),Cie=Math.sin(Hb),Ra=pc.HOVERARROWSIZE,Ot=pc.HOVERTEXTPAD,$F={box:!0,ohlc:!0,violin:!0,candlestick:!0},Sie={scatter:!0,scattergl:!0,splom:!0};function JF(e,r){return e.distance-r.distance}Ob.hover=function(r,t,a,n){r=Ja.getGraphDiv(r);var i=t.target;Ja.throttle(r._fullLayout._uid+pc.HOVERID,pc.HOVERMINTIME,function(){Fie(r,t,a,n,i)})};Ob.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=uE(n),o=fE(n),l=r.map(function(p){var m=p._x0||p.x0||p.x||0,b=p._x1||p.x1||p.x||0,y=p._y0||p.y0||p.y||0,C=p._y1||p.y1||p.y||0,x=p.eventData;if(x){var _=Math.min(m,b),A=Math.max(m,b),T=Math.min(y,C),M=Math.max(y,C),E=p.trace;if(hc.traceIs(E,"gl3d")){var P=n._fullLayout[E.scene]._scene.container,z=P.offsetLeft,I=P.offsetTop;_+=z,A+=z,T+=I,M+=I}x.bbox={x0:_+o,x1:A+o,y0:T+i,y1:M+i},x.xPixel=(m+b)/2,x.yPixel=(y+C)/2,t.inOut_bbox&&t.inOut_bbox.push(x.bbox)}else x=!1;return{color:p.color||kn.defaultLine,x0:p.x0||p.x||0,x1:p.x1||p.x||0,y0:p.y0||p.y||0,y1:p.y1||p.y||0,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:p.text,name:p.name,idealAlign:p.idealAlign,borderColor:p.borderColor,fontFamily:p.fontFamily,fontSize:p.fontSize,fontColor:p.fontColor,fontWeight:p.fontWeight,fontStyle:p.fontStyle,fontVariant:p.fontVariant,nameLength:p.nameLength,textAlign:p.textAlign,trace:p.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:p.hovertemplate||!1,hovertemplateLabels:p.hovertemplateLabels||!1,eventData:x}}),s=!1,u=lE(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||kn.background,container:Nu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels;function c(){var p=5,m=0,b=0;f.sort(function(y,C){return y.y0-C.y0}).each(function(y,C){var x=y.y0-y.by/2;x-p<m?y.offset=m-x+p:y.offset=0,m=x+y.by+y.offset,C===t.anchorIndex&&(b=y.offset)}).each(function(y){y.offset-=b})}var d=n._fullLayout._invScaleX,h=n._fullLayout._invScaleY;return c(),Hm(f,s,d,h),u.mathjaxPromise&&u.mathjaxPromise.then(function(){c(),Hm(f,s,d,h),f.each(function(){var p=Nu.select(this);Ya.repositionMathGroup(p.select("text.nums")),Ya.repositionMathGroup(p.select("text.name"))})}),a?f:f.node()};function Die(e,r){return!!(e!=null&&e.showspikes&&e.spikesnap!=="hovered data"||r!=null&&r.showspikes&&r.spikesnap!=="hovered data")}function Fie(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(wie)[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"),d=l._has("ternary"),h=r.hovermode||l.hovermode,p=(h||"").charAt(0)==="x",m=(h||"").charAt(0)==="y",b,y;if(c&&(p||m)&&s==="axis"){for(var C=i.length,x=0;x<C;x++)if(o=i[x],u[o]){b=jl.getFromId(e,o,"x"),y=jl.getFromId(e,o,"y");var _=(p?b:y)._subplotsWith;if(_&&_.length)for(var A=0;A<_.length;A++)yie(i,_[A])}}if(f&&s!=="single"){var T=f.overlays.map(function(Rr){return Rr.id});i=i.concat(T)}for(var M=i.length,E=new Array(M),P=new Array(M),z=!1,I=0;I<M;I++)if(o=i[I],u[o])z=!0,E[I]=u[o].xaxis,P[I]=u[o].yaxis;else if(l[o]&&l[o]._subplot){var X=l[o]._subplot;E[I]=X.xaxis,P[I]=X.yaxis}else{Ja.warn("Unrecognized subplot: "+o);return}if(h&&!z&&(h="closest"),["x","y","closest","x unified","y unified"].indexOf(h)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return Bm.unhoverRaw(e,r);var H=l.hoverdistance;H===-1&&(H=1/0);var V=l.spikedistance;V===-1&&(V=1/0);var N=[],Q=[],ee,re,ae,ie,ue,xe,De,Ye,Ee,ke,je,W,le,de={hLinePoint:null,vLinePoint:null};let K={};var J=!1;if(Array.isArray(r))for(h="array",ae=0;ae<r.length;ae++)ue=e.calcdata[r[ae].curveNumber||0],ue&&(xe=ue[0].trace,ue[0].trace.hoverinfo!=="skip"&&(Q.push(ue),xe.orientation==="h"&&(J=!0)));else{var fe=e.calcdata.slice();for(fe.sort(function(Rr,Vt){var Et=Rr[0].trace.zorder||0,Zt=Vt[0].trace.zorder||0;return Et-Zt}),ie=0;ie<fe.length;ie++)ue=fe[ie],xe=ue[0].trace,xe.hoverinfo!=="skip"&&Do.isTraceInSubplots(xe,i)&&(Q.push(ue),xe.orientation==="h"&&(J=!0));var be=!n,Ne,Ze;if(be)"xpx"in r?Ne=r.xpx:Ne=E[0]._length/2,"ypx"in r?Ze=r.ypx:Ze=P[0]._length/2;else{if(_ie.triggerHandler(e,"plotly_beforehover",r)===!1)return;var er=n.getBoundingClientRect();Ne=r.clientX-er.left,Ze=r.clientY-er.top,l._calcInverseTransform(e);var Je=Ja.apply3DTransform(l._invTransform)(Ne,Ze);if(Ne=Je[0],Ze=Je[1],Ne<0||Ne>E[0]._length||Ze<0||Ze>P[0]._length)return Bm.unhoverRaw(e,r)}if(r.pointerX=Ne+E[0]._offset,r.pointerY=Ze+P[0]._offset,"xval"in r?ee=Do.flat(i,r.xval):ee=Do.p2c(E,Ne),"yval"in r?re=Do.flat(i,r.yval):re=Do.p2c(P,Ze),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!zu(ee[0])||!zu(re[0]))return Ja.warn("Fx.hover failed",r,e),Bm.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=ee,e._hoverYVals=re,e._hoverXAxes=E,e._hoverYAxes=P);var tr=1/0;function ze(Rr,Vt){for(ie=0;ie<Q.length;ie++)if(ue=Q[ie],!(!ue||!ue[0]||!ue[0].trace)&&(xe=ue[0].trace,!(xe.visible!==!0||xe._length===0)&&["carpet","contourcarpet"].indexOf(xe._module.name)===-1)){if(Ee=h,Do.isUnifiedHover(Ee)&&(Ee=Ee.charAt(0)),xe.type==="splom"?(Ye=0,De=i[Ye]):(De=Do.getSubplot(xe),Ye=i.indexOf(De)),W={cd:ue,trace:xe,xa:E[Ye],ya:P[Ye],maxHoverDistance:H,maxSpikeDistance:V,index:!1,distance:Math.min(tr,H),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:kn.defaultLine,name:xe.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[De]&&(W.subplot=l[De]._subplot),l._splomScenes&&l._splomScenes[xe.uid]&&(W.scene=l._splomScenes[xe.uid]),Ee==="array"){var Et=r[ie];if("pointNumber"in Et){let Ba=ue[Et.pointNumber];Ba&&(W.index=Et.pointNumber,Ba.lonlat?(ke=Ba.lonlat[0],je=Ba.lonlat[1]):(ke=Ba.x,je=Ba.y)),Ee="closest"}else Ee="","xval"in Et&&(ke=Et.xval,Ee="x"),"yval"in Et&&(je=Et.yval,Ee=Ee?"closest":"y")}else Rr!==void 0&&Vt!==void 0?(ke=Rr,je=Vt):(ke=ee[Ye],je=re[Ye]);if(le=N.length,H!==0)if(xe._module&&xe._module.hoverPoints){var Zt=xe._module.hoverPoints(W,ke,je,Ee,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:s,gd:e});if(Zt)for(var ma,Ea=0;Ea<Zt.length;Ea++)ma=Zt[Ea],zu(ma.x0)&&zu(ma.y0)&&N.push(qie(ma,h))}else Ja.log("Unrecognized trace type in hover:",xe);if(h==="closest"&&N.length>le&&(N.splice(0,le),tr=N[0].distance),hc.traceIs(xe,"ternary")&&V!==0){let Ba=W.subplot;if(["aaxis","baxis","caxis"].some(Qa=>Ba[Qa].showspikes&&Ba[Qa].spikesnap!=="hovered data")){let Qa=Zt==null?void 0:Zt[0];if(!Number.isFinite(Qa==null?void 0:Qa.spikeDistance)){let co=Ja.extendFlat({},W,{distance:V,index:!1}),Ia=xe._module.hoverPoints(co,ke,je,"closest");Qa=Ia&&Ia[0]}let zo=K[De];Qa&&Qa.index!==void 0&&Qa.index!==!1&&Qa.spikeDistance<=V&&(!zo||Qa.spikeDistance<zo.spikeDistance)&&(K[De]=Qa)}}if(c&&N.length===0&&V!==0&&Die(W.xa,W.ya)){W.distance=V,W.index=!1;var Rt=xe._module.hoverPoints(W,ke,je,"closest",{hoverLayer:l._hoverlayer});if(Rt&&(Rt=Rt.filter(function(Ba){return Ba.spikeDistance<=V})),Rt!=null&&Rt.length){var $t,Na=Rt.filter(function(Ba){return Ba.xa.showspikes&&Ba.xa.spikesnap!=="hovered data"});if(Na.length){var Jn=Na[0];zu(Jn.x0)&&zu(Jn.y0)&&($t=Ar(Jn),(!de.vLinePoint||de.vLinePoint.spikeDistance>$t.spikeDistance)&&(de.vLinePoint=$t))}var Pi=Rt.filter(function(Ba){return Ba.ya.showspikes&&Ba.ya.spikesnap!=="hovered data"});if(Pi.length){var Kn=Pi[0];zu(Kn.x0)&&zu(Kn.y0)&&($t=Ar(Kn),(!de.hLinePoint||de.hLinePoint.spikeDistance>$t.spikeDistance)&&(de.hLinePoint=$t))}}}}}ze();function lr(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),V!==0)for(let Rr=0;Rr<i.length;Rr++){let Vt=i[Rr],Et=l[Vt]&&l[Vt]._subplot;if(Et&&Et.drawSpikelines){let Zt=N.find(ma=>ma.trace.subplot===Vt&&ma.index!==void 0&&ma.index!==!1&&ma.spikeDistance<=V);Et.drawSpikelines(Zt,K[Vt],ee&&ee[Rr],re&&re[Rr])}}}function dr(Rr,Vt,Et){for(var Zt=null,ma=1/0,Ea,Rt=0;Rt<Rr.length;Rt++)b&&b._id!==Rr[Rt].xa._id||y&&y._id!==Rr[Rt].ya._id||(Ea=Rr[Rt].spikeDistance,Et&&Rt===0&&(Ea=-1/0),Ea<=ma&&Ea<=Vt&&(Zt=Rr[Rt],ma=Ea));return Zt}function Ar(Rr){return Rr?{xa:Rr.xa,ya:Rr.ya,x:Rr.xSpike!==void 0?Rr.xSpike:(Rr.x0+Rr.x1)/2,y:Rr.ySpike!==void 0?Rr.ySpike:(Rr.y0+Rr.y1)/2,distance:Rr.distance,spikeDistance:Rr.spikeDistance,curveNumber:Rr.trace.index,color:Rr.color,pointNumber:Rr.index}:null}var Qe={fullLayout:l,container:l._hoverlayer,event:r},mr=e._spikepoints,qr={vLinePoint:de.vLinePoint,hLinePoint:de.hLinePoint};e._spikepoints=qr;var Te=function(){var Rr=N.filter(function(Et){return b&&b._id===Et.xa._id&&y&&y._id===Et.ya._id}),Vt=N.filter(function(Et){return!(b&&b._id===Et.xa._id&&y&&y._id===Et.ya._id)});Rr.sort(JF),Vt.sort(JF),N=Rr.concat(Vt),N=Rie(N,h)};Te();var Ue=h.charAt(0),_r=(Ue==="x"||Ue==="y")&&N[0]&&Sie[N[0].trace.type];if(c&&V!==0&&N.length!==0){var Pr=N.filter(function(Rr){return Rr.ya.showspikes}),Nr=dr(Pr,V,_r);de.hLinePoint=Ar(Nr);var Ce=N.filter(function(Rr){return Rr.xa.showspikes}),He=dr(Ce,V,_r);de.vLinePoint=Ar(He)}if(N.length===0){var cr=Bm.unhoverRaw(e,r);if(c&&(de.hLinePoint!==null||de.vLinePoint!==null)&&tE(mr)&&rE(e,de,Qe),l.hoveranywhere&&!a&&n){var Mr=e._hoverdata;Mr&&Mr.length&&(e.emit("plotly_unhover",{event:r,points:Mr}),e._hoverdata=[]),Fa([]),e._hoverAnywhereActive=!0}return d&&lr(),cr}if(c&&tE(mr)&&rE(e,de,Qe),d&&lr(),Do.isXYhover(Ee)&&N[0].length!==0&&N[0].trace.type!=="splom"){var vr=N[0];$F[vr.trace.type]?N=N.filter(Rr=>Rr.trace.index===vr.trace.index):N=[vr];var kr=N.length,Er=nE("x",vr,l),jr=nE("y",vr,l);ze(Er,jr);var et=[],nr={},Cr=0,ar=function(Rr){var Vt=$F[Rr.trace.type]?oE(Rr):Rr.trace.index;if(!nr[Vt])Cr++,nr[Vt]=Cr,et.push(Rr);else{var Et=nr[Vt]-1,Zt=et[Et];Et>0&&Math.abs(Rr.distance)<Math.abs(Zt.distance)&&(et[Et]=Rr)}},Fr;for(Fr=0;Fr<kr;Fr++)ar(N[Fr]);for(Fr=N.length-1;Fr>kr-1;Fr--)ar(N[Fr]);N=et,Te()}var Wr=e._hoverdata,Br=[],Zr=uE(e),Ae=fE(e);for(let Rr of N){var Be=Do.makeEventData(Rr,Rr.trace,Rr.cd);if(Rr.hovertemplate!==!1){var or=!1;Rr.cd[Rr.index]&&Rr.cd[Rr.index].ht&&(or=Rr.cd[Rr.index].ht),Rr.hovertemplate=or||Rr.trace.hovertemplate||!1}if(Rr.xa&&Rr.ya){var hr=Rr.x0+Rr.xa._offset,Dt=Rr.x1+Rr.xa._offset,Wt=Rr.y0+Rr.ya._offset,ba=Rr.y1+Rr.ya._offset,_a=Math.min(hr,Dt),Xt=Math.max(hr,Dt),Ht=Math.min(Wt,ba),la=Math.max(Wt,ba);Be.bbox={x0:_a+Ae,x1:Xt+Ae,y0:Ht+Zr,y1:la+Zr},Be.xPixel=(hr+Dt)/2,Be.yPixel=(Wt+ba)/2}Rr.eventData=[Be],Br.push(Be)}e._hoverdata=Br;var Pt=h==="y"&&(Q.length>1||N.length>1)||h==="closest"&&J&&N.length>1,Ta=kn.combine(l.plot_bgcolor||kn.background,l.paper_bgcolor),pa=lE(N,{gd:e,hovermode:h,rotateLabels:Pt,bgColor:Ta,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Xa=pa.hoverLabels;if(Do.isUnifiedHover(h)||(QF(Xa,Pt,l,pa.commonLabelBoundingBox),Hm(Xa,Pt,l._invScaleX,l._invScaleY),pa.mathjaxPromise&&pa.mathjaxPromise.then(function(){e._hoverdata===Br&&(QF(Xa,Pt,l,pa.commonLabelBoundingBox),Hm(Xa,Pt,l._invScaleX,l._invScaleY),Xa.each(function(){var Rr=Nu.select(this);Ya.repositionMathGroup(Rr.select("text.nums")),Ya.repositionMathGroup(Rr.select("text.name"))}))})),n&&n.tagName){var dn=hc.getComponentMethod("annotations","hasClickToShow")(e,Br);xie(Nu.select(n),dn?"pointer":"")}var ja=Pie(e,r,Wr);if(!n||a||!ja&&!l.hoveranywhere)return;Wr&&ja&&e.emit("plotly_unhover",{event:r,points:Wr}),Fa(e._hoverdata);function Fa(Rr){e.emit("plotly_hover",{event:r,points:Rr,xaxes:E,yaxes:P,xvals:Do.c2dApply(E,ee),yvals:Do.c2dApply(P,re),xPixel:r.pointerX,yPixel:r.pointerY})}}function oE(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 Eie=/<extra>([\s\S]*)<\/extra>/;function Ib(e,r){return Im(e,Ya.getMathOrTextNode(r))}function lE(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=r.fontFamily||pc.HOVERFONT,d=r.fontSize||pc.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,p=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,b=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,C=r.fontShadow||a.font.shadow,x=e[0],_=x.xa,A=x.ya,T=n.charAt(0),M=T+"Label",E=x[M];if(E===void 0&&_.type==="multicategory")for(var P=0;P<e.length&&(E=e[P][M],E===void 0);P++);var z=Im(t,s),I=z.top,X=z.width,H=z.height,V=E!==void 0&&x.distance<=r.hoverdistance&&(n==="x"||n==="y");if(V){var N=!0,Q,ee;for(Q=0;Q<e.length;Q++)if(N&&e[Q].zLabel===void 0&&(N=!1),ee=e[Q].hoverinfo||e[Q].trace.hoverinfo,ee){var re=Array.isArray(ee)?ee:ee.split("+");if(re.indexOf("all")===-1&&re.indexOf(n)===-1){V=!1;break}}N&&(V=!1)}var ae=l.selectAll("g.axistext").data(V?[0]:[]);ae.enter().append("g").classed("axistext",!0),ae.exit().remove();var ie={minX:0,maxX:0,minY:0,maxY:0};if(ae.each(function(){var Ce=Nu.select(this),He=Ja.ensureSingle(Ce,"path","",function(ar){ar.style({"stroke-width":"1px"})}),cr=Ja.ensureSingle(Ce,"text",""),Mr=u.bgcolor||kn.defaultLine,vr=u.bordercolor||kn.contrast(Mr),kr=kn.contrast(Mr),Er=u.font,jr={weight:Er.weight||h,style:Er.style||p,variant:Er.variant||m,textcase:Er.textcase||b,lineposition:Er.lineposition||y,shadow:Er.shadow||C,family:Er.family||c,size:Er.size||d,color:Er.color||kr};He.style({fill:Mr,stroke:vr});var et=Ya.isPureTex(String(E)),nr;et&&f.push(new Promise(function(ar){nr=function(){if(!cr.node().parentNode){ar();return}Cr(),Ya.repositionMathGroup(cr),ar()}})),cr.text(E).call(Is.font,jr).attr("data-notex",et?null:1).call(Ya.positionText,0,0).call(Ya.convertToTspans,t,nr),Cr();function Cr(){Ce.attr("transform",""),Ya.positionText(cr,0,0),Ya.repositionMathGroup(cr);var ar=Ib(t,cr),Fr,Wr;if(n==="x"){var Br=_.side==="top"?"-":"";cr.attr("text-anchor","middle").call(Ya.positionText,0,_.side==="top"?I-ar.bottom-Ra-Ot:I-ar.top+Ra+Ot),Fr=_._offset+(x.x0+x.x1)/2,Wr=A._offset+(_.side==="top"?0:A._length);var Zr=ar.width/2+Ot,Ae=Fr;Fr<Zr?Ae=Zr:Fr>a.width-Zr&&(Ae=a.width-Zr),He.attr("d","M"+(Fr-Ae)+",0L"+(Fr-Ae+Ra)+","+Br+Ra+"H"+Zr+"v"+Br+(Ot*2+ar.height)+"H"+-Zr+"V"+Br+Ra+"H"+(Fr-Ae-Ra)+"Z"),Fr=Ae,ie.minX=Fr-Zr,ie.maxX=Fr+Zr,_.side==="top"?(ie.minY=Wr-(Ot*2+ar.height),ie.maxY=Wr-Ot):(ie.minY=Wr+Ot,ie.maxY=Wr+(Ot*2+ar.height))}else{var Be,or,hr;A.side==="right"?(Be="start",or=1,hr="",Fr=_._offset+_._length):(Be="end",or=-1,hr="-",Fr=_._offset),Wr=A._offset+(x.y0+x.y1)/2,cr.attr("text-anchor",Be),He.attr("d","M0,0L"+hr+Ra+","+Ra+"V"+(Ot+ar.height/2)+"h"+hr+(Ot*2+ar.width)+"V-"+(Ot+ar.height/2)+"H"+hr+Ra+"V-"+Ra+"Z"),ie.minY=Wr-(Ot+ar.height/2),ie.maxY=Wr+(Ot+ar.height/2),A.side==="right"?(ie.minX=Fr+Ra,ie.maxX=Fr+Ra+(Ot*2+ar.width)):(ie.minX=Fr-Ra-(Ot*2+ar.width),ie.maxX=Fr-Ra);var Dt=ar.height/2,Wt=I-ar.top-Dt,ba="clip"+a._uid+"commonlabel"+A._id,_a;if(Fr<ar.width+2*Ot+Ra){_a="M-"+(Ra+Ot)+"-"+Dt+"h-"+(ar.width-Ot)+"V"+Dt+"h"+(ar.width-Ot)+"Z";var Xt=ar.width-Fr+Ot;Ya.positionText(cr,Xt,Wt),Be==="end"&&cr.selectAll("tspan").each(function(){var la=Nu.select(this),Pt=Is.tester.append("text").text(la.text()).call(Is.font,jr),Ta=Im(t,Pt.node());Math.round(Ta.width)<Math.round(ar.width)&&la.attr("x",Xt-Ta.width),Pt.remove()})}else Ya.positionText(cr,or*(Ot+Ra),Wt),_a=null;var Ht=a._topclips.selectAll("#"+ba).data(_a?[0]:[]);Ht.enter().append("clipPath").attr("id",ba).append("path"),Ht.exit().remove(),Ht.select("path").attr("d",_a),Is.setClipUrl(cr,_a?ba:null,t)}Ce.attr("transform",Bb(Fr,Wr))}}),Do.isUnifiedHover(n)){l.selectAll("g.hovertext").remove();let Ce=e.filter(He=>He.hoverinfo!=="none");if(Ce.length===0)return[];var ue=a.hoverlabel,xe=ue.font,De=Ce[0],Ye=((n==="x unified"?De.xa:De.ya).unifiedhovertitle||{}).text,Ee=Ye?Ja.hovertemplateString({data:n==="x unified"?[{xa:De.xa,x:De.xVal}]:[{ya:De.ya,y:De.yVal}],fallback:De.trace.hovertemplatefallback,locale:a._d3locale,template:Ye}):E,ke={showlegend:!0,legend:{title:{text:Ee,font:xe},font:xe,bgcolor:ue.bgcolor,bordercolor:ue.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},je={font:xe};Aie(ke,je,t._fullData);var W=je.legend;W.entries=[];for(var le=0;le<Ce.length;le++){var de=Ce[le];if(de.hoverinfo!=="none"){var K=KF(de,!0,n,a,E),J=K[0],fe=K[1];de.name=fe,fe!==""?de.text=fe+" : "+J:de.text=J;var be=de.cd[de.index];be&&(be.mc&&(de.mc=be.mc),be.mcc&&(de.mc=be.mcc),be.mlc&&(de.mlc=be.mlc),be.mlcc&&(de.mlc=be.mlcc),be.mlw&&(de.mlw=be.mlw),be.mrc&&(de.mrc=be.mrc),be.dir&&(de.dir=be.dir)),de._distinct=!0,W.entries.push([de])}}W.entries.sort(function(He,cr){var Mr=a.hoversort;if(Mr==="value descending"||Mr==="value ascending"){var vr=n.charAt(0)==="x"?"y":"x",kr=He[0][vr+"LabelVal"],Er=cr[0][vr+"LabelVal"];if(kr!==Er)return Mr==="value descending"?Er-kr:kr-Er}return He[0].trace.index-cr[0].trace.index}),W.layer=l,W._inHover=!0,W._groupTitleFont=ue.grouptitlefont,Mie(t,W);var Ne=l.select("g.legend"),Ze=Im(t,Ne.node()),er=Ze.width+2*Ot,Je=Ze.height+2*Ot,tr=Ce[0],ze=(tr.x0+tr.x1)/2,lr=(tr.y0+tr.y1)/2,dr=!(hc.traceIs(tr.trace,"bar-like")||hc.traceIs(tr.trace,"box-violin")),Ar,Qe;T==="y"?dr?(Qe=lr-Ot,Ar=lr+Ot):(Qe=Math.min.apply(null,Ce.map(function(He){return Math.min(He.y0,He.y1)})),Ar=Math.max.apply(null,Ce.map(function(He){return Math.max(He.y0,He.y1)}))):Qe=Ar=Ja.mean(Ce.map(function(He){return(He.y0+He.y1)/2}))-Je/2;var mr,qr;T==="x"?dr?(mr=ze+Ot,qr=ze-Ot):(mr=Math.max.apply(null,Ce.map(function(He){return Math.max(He.x0,He.x1)})),qr=Math.min.apply(null,Ce.map(function(He){return Math.min(He.x0,He.x1)}))):mr=qr=Ja.mean(Ce.map(function(He){return(He.x0+He.x1)/2}))-er/2;var Te=_._offset,Ue=A._offset;Ar+=Ue,mr+=Te,qr+=Te-er,Qe+=Ue-Je;var _r,Pr;return mr+er<X&&mr>=0?_r=mr:qr+er<X&&qr>=0?_r=qr:Te+er<X?_r=Te:mr-ze<ze-qr+er?_r=X-er:_r=0,_r+=Ot,Ar+Je<H&&Ar>=0?Pr=Ar:Qe+Je<H&&Qe>=0?Pr=Qe:Ue+Je<H?Pr=Ue:Ar-lr<lr-Qe+Je?Pr=H-Je:Pr=0,Pr+=Ot,Ne.attr("transform",Bb(_r-1,Pr-1)),Ne}var Nr=l.selectAll("g.hovertext").data(e,function(Ce){return oE(Ce)});return Nr.enter().append("g").classed("hovertext",!0).each(function(){var Ce=Nu.select(this);Ce.append("rect").call(kn.fill,kn.addOpacity(o,.8)),Ce.append("text").classed("name",!0),Ce.append("path").style("stroke-width","1px"),Ce.append("text").classed("nums",!0).call(Is.font,{weight:h,style:p,variant:m,textcase:b,lineposition:y,shadow:C,family:c,size:d})}),Nr.exit().remove(),Nr.each(function(Ce){var He=Nu.select(this).attr("transform",""),cr=Ce.color;Array.isArray(cr)&&(cr=cr[Ce.eventData[0].pointNumber]);var Mr=Ce.bgcolor||cr,vr=kn.combine(kn.opacity(Mr)?Mr:kn.defaultLine,o),kr=kn.combine(kn.opacity(cr)?cr:kn.defaultLine,o),Er=Ce.borderColor||kn.contrast(vr),jr=KF(Ce,V,n,a,E,He),et=jr[0],nr=jr[1],Cr=!!(nr&&nr!==et),ar=Ya.isPureTex(et),Fr=Cr&&Ya.isPureTex(nr),Wr=(ar?1:0)+(Fr?1:0),Br;Wr&&f.push(new Promise(function(or){Br=function(){--Wr===0&&(He.node().parentNode&&Be(),or())}}));var Zr=He.select("text.nums").call(Is.font,{family:Ce.fontFamily||c,size:Ce.fontSize||d,color:Ce.fontColor||Er,weight:Ce.fontWeight||h,style:Ce.fontStyle||p,variant:Ce.fontVariant||m,textcase:Ce.fontTextcase||b,lineposition:Ce.fontLineposition||y,shadow:Ce.fontShadow||C}).text(et).attr("data-notex",ar?null:1).call(Ya.positionText,0,0).call(Ya.convertToTspans,t,ar?Br:void 0),Ae=He.select("text.name");Cr?Ae.call(Is.font,{family:Ce.fontFamily||c,size:Ce.fontSize||d,color:kr,weight:Ce.fontWeight||h,style:Ce.fontStyle||p,variant:Ce.fontVariant||m,textcase:Ce.fontTextcase||b,lineposition:Ce.fontLineposition||y,shadow:Ce.fontShadow||C}).text(nr).attr("data-notex",Fr?null:1).call(Ya.positionText,0,0).call(Ya.convertToTspans,t,Fr?Br:void 0):(Ae.remove(),He.select("rect").remove()),Be();function Be(){He.attr("transform",""),Zr.call(Ya.positionText,0,0),Ya.repositionMathGroup(Zr),Cr&&(Ae.call(Ya.positionText,0,0),Ya.repositionMathGroup(Ae)),He.select("path").style({fill:vr,stroke:Er});var or=Ce.xa._offset+(Ce.x0+Ce.x1)/2,hr=Ce.ya._offset+(Ce.y0+Ce.y1)/2,Dt=Math.abs(Ce.x1-Ce.x0),Wt=Math.abs(Ce.y1-Ce.y0),ba=0,_a=0;if(Cr){var Xt=Ib(t,Ae);ba=Xt.width+2*Ot,_a=Xt.height+2*Ot}var Ht=Ib(t,Zr),la=Ht.width/a._invScaleX,Pt=Ht.height/a._invScaleY;Ce.ty0=(I-Ht.top)/a._invScaleY,Ce.bx=la+2*Ot,Ce.by=Math.max(Pt+2*Ot,_a),Ce.anchor="start",Ce.txwidth=la,Ce.tx2width=ba,Ce.offset=0;var Ta=(la+Ra+Ot+ba)*a._invScaleX,pa,Xa;if(i)Ce.pos=or,pa=hr+Wt/2+Ta<=H,Xa=hr-Wt/2-Ta>=0,(Ce.idealAlign==="top"||!pa)&&Xa?(hr-=Wt/2,Ce.anchor="end"):pa?(hr+=Wt/2,Ce.anchor="start"):Ce.anchor="middle",Ce.crossPos=hr;else{if(Ce.pos=hr,pa=or+Dt/2+Ta<=X,Xa=or-Dt/2-Ta>=0,(Ce.idealAlign==="left"||!pa)&&Xa)or-=Dt/2,Ce.anchor="end";else if(pa)or+=Dt/2,Ce.anchor="start";else{Ce.anchor="middle";var dn=Ta/2,ja=or+dn-X,Fa=or-dn;ja>0&&(or-=ja),Fa<0&&(or+=-Fa)}Ce.crossPos=or}Zr.attr("text-anchor",Ce.anchor),ba&&Ae.attr("text-anchor",Ce.anchor),He.attr("transform",Bb(or,hr)+(i?bie(iE):""))}}),{hoverLabels:Nr,commonLabelBoundingBox:ie,mathjaxPromise:f.length?Promise.all(f):null}}function KF(e,r,t,a,n,i){var c,d;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ja.templateString(e.name,e.trace._meta)),o=aE(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),(d=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&d.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let h=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(h[s+"other"]=h[s+"Val"],h[s+"otherLabel"]=h[s+"Label"]),l=Ja.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),l=l.replace(Eie,(p,m)=>(o=aE(m,e.nameLength),""))}return[l,o]}function QF(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,d=a.maxX,h=a.minY,p=a.maxY,m=function(Q){return Q*t._invScaleX},b=function(Q){return Q*t._invScaleY};e.each(function(Q){var ee=Q[n],re=Q[i],ae=ee._id.charAt(0)==="x",ie=ee.range;f===0&&ie&&ie[0]>ie[1]!==ae&&(l=-1);var ue=0,xe=ae?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var De=sE(Q,r),Ye=Q.anchor,Ee=Ye==="end"?-1:1,ke,je;if(Ye==="middle")ke=Q.crossPos+(ae?b(De.y-Q.by/2):m(Q.bx/2+Q.tx2width/2)),je=ke+(ae?b(Q.by):m(Q.bx));else if(ae)ke=Q.crossPos+b(Ra+De.y)-b(Q.by/2-Ra),je=ke+b(Q.by);else{var W=m(Ee*Ra+De.x),le=W+m(Ee*Q.bx);ke=Q.crossPos+Math.min(W,le),je=Q.crossPos+Math.max(W,le)}ae?h!==void 0&&p!==void 0&&Math.min(je,p)-Math.max(ke,h)>1&&(re.side==="left"?(ue=re._mainLinePosition,xe=t.width):xe=re._mainLinePosition):c!==void 0&&d!==void 0&&Math.min(je,d)-Math.max(ke,c)>1&&(re.side==="top"?(ue=re._mainLinePosition,xe=t.height):xe=re._mainLinePosition)}u[f++]=[{datum:Q,traceIndex:Q.trace.index,dp:0,pos:Q.pos,posref:Q.posref,size:Q.by*(ae?Tie:1)/2,pmin:ue,pmax:xe}]}),u.sort(function(Q,ee){return Q[0].posref-ee[0].posref||l*(ee[0].traceIndex-Q[0].traceIndex)});var y,C,x,_,A,T,M;function E(Q){var ee=Q[0],re=Q[Q.length-1];if(C=ee.pmin-ee.pos-ee.dp+ee.size,x=re.pos+re.dp+re.size-ee.pmax,C>.01){for(A=Q.length-1;A>=0;A--)Q[A].dp+=C;y=!1}if(!(x<.01)){if(C<-.01){for(A=Q.length-1;A>=0;A--)Q[A].dp-=x;y=!1}if(y){var ae=0;for(_=0;_<Q.length;_++)T=Q[_],T.pos+T.dp+T.size>ee.pmax&&ae++;for(_=Q.length-1;_>=0&&!(ae<=0);_--)T=Q[_],T.pos>ee.pmax-1&&(T.del=!0,ae--);for(_=0;_<Q.length&&!(ae<=0);_++)if(T=Q[_],T.pos<ee.pmin+1)for(T.del=!0,ae--,x=T.size*2,A=Q.length-1;A>=0;A--)Q[A].dp-=x;for(_=Q.length-1;_>=0&&!(ae<=0);_--)T=Q[_],T.pos+T.dp+T.size>ee.pmax&&(T.del=!0,ae--)}}}for(;!y&&o<=s;){for(o++,y=!0,_=0;_<u.length-1;){var P=u[_],z=u[_+1],I=P[P.length-1],X=z[0];if(C=I.pos+I.dp+I.size-X.pos-X.dp+X.size,C>.01){for(A=z.length-1;A>=0;A--)z[A].dp+=C;for(P.push.apply(P,z),u.splice(_+1,1),M=0,A=P.length-1;A>=0;A--)M+=P[A].dp;for(x=M/P.length,A=P.length-1;A>=0;A--)P[A].dp-=x;y=!1}else _++}u.forEach(E)}for(_=u.length-1;_>=0;_--){var H=u[_];for(A=H.length-1;A>=0;A--){var V=H[A],N=V.datum;N.offset=V.dp,N.del=V.del}}}function sE(e,r){var t=0,a=e.offset;return r&&(a*=-Cie,t=e.offset*kie),{x:t,y:a}}function Lie(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ra+Ot),a=t+r*(e.txwidth+Ot),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Ot),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Hm(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=Nu.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=Lie(o),d=sE(o,r),h=d.x,p=d.y,m=u==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,y;m?y="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":b?y="M0,0L"+n(f*Ra+h)+","+i(Ra+p)+"v"+i(o.by/2-Ra)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Ra+h)+"V"+i(p-Ra)+"Z":y="M"+n(f*Ra+h)+","+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",y);var C=h+c.textShiftX,x=p+o.ty0-o.by/2+Ot,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=m?-o.bx/2-o.tx2width/2+Ot:-o.bx-Ot):_==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=m?o.bx/2-o.tx2width/2-Ot:o.bx+Ot)),s.call(Ya.positionText,n(C),i(x)),o.tx2width&&(l.select("text.name").call(Ya.positionText,n(c.text2ShiftX+c.alignShift*Ot+h),i(p+o.ty0-o.by/2+Ot)),l.select("rect").call(Is.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+h),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function qie(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(d){return d||zu(d)&&d===0}var l=Array.isArray(t)?function(d,h){var p=Ja.castOption(n,t,d);return o(p)?p:Ja.extractOption({},a,"",h)}:function(d,h){return Ja.extractOption(i,a,d,h)};function s(d,h,p){var m=l(h,p);o(m)&&(e[d]=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=Ja.constrain(e.x0,0,e.xa._length),e.x1=Ja.constrain(e.x1,0,e.xa._length),e.y0=Ja.constrain(e.y0,0,e.ya._length),e.y1=Ja.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:jl.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:jl.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=jl.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+jl.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=jl.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+jl.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 eE(e,r,t){let a=r._id.charAt(0)==="y",n=1/0,i=-1/0;for(let o of r._counterAxes||[]){let l=jl.getFromId(e,o);if(!l)continue;let s=l._padStart||0,u=l._padEnd||0;a?(n=Math.min(n,t.l+l.domain[0]*t.w+s),i=Math.max(i,t.l+l.domain[1]*t.w-u)):(n=Math.min(n,t.t+(1-l.domain[1])*t.h+s),i=Math.max(i,t.t+(1-l.domain[0])*t.h-u))}if(r.anchor==="free"){let o=a?t.l+r.position*t.w:t.t+(1-r.position)*t.h;n=Math.min(n,o),i=Math.max(i,o)}return[n,i]}function rE(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=kn.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var d=r.hLinePoint,h,p;u=d&&d.xa,f=d&&d.ya;var m=f.spikesnap;m==="cursor"?(h=o.pointerX,p=o.pointerY):(h=u._offset+d.x,p=f._offset+d.y);var b=kn.wcagContrast(d.color,c)<1.5?kn.contrast(c):d.color,y=f.spikemode,C=f.spikethickness,x=f.spikecolor||b,_=jl.getPxPosition(e,f),A,T;if(y.indexOf("toaxis")!==-1||y.indexOf("across")!==-1){if(y.indexOf("toaxis")!==-1&&(A=_,T=h),y.indexOf("across")!==-1){let re=eE(e,f,i);A=re[0],T=re[1]}a.insert("line",":first-child").attr({x1:A,x2:T,y1:p,y2:p,"stroke-width":C,stroke:x,"stroke-dasharray":Is.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:T,y1:p,y2:p,"stroke-width":C+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}y.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:_+(f.side!=="right"?C:-C),cy:p,r:C,fill:x}).classed("spikeline",!0)}if(s){var M=r.vLinePoint,E,P;u=M&&M.xa,f=M&&M.ya;var z=u.spikesnap;z==="cursor"?(E=o.pointerX,P=o.pointerY):(E=u._offset+M.x,P=f._offset+M.y);var I=kn.wcagContrast(M.color,c)<1.5?kn.contrast(c):M.color,X=u.spikemode,H=u.spikethickness,V=u.spikecolor||I,N=jl.getPxPosition(e,u),Q,ee;if(X.indexOf("toaxis")!==-1||X.indexOf("across")!==-1){if(X.indexOf("toaxis")!==-1&&(Q=N,ee=P),X.indexOf("across")!==-1){let re=eE(e,u,i);Q=re[0],ee=re[1]}a.insert("line",":first-child").attr({x1:E,x2:E,y1:Q,y2:ee,"stroke-width":H,stroke:V,"stroke-dasharray":Is.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:Q,y2:ee,"stroke-width":H+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}X.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:N-(u.side!=="top"?H:-H),r:H,fill:V}).classed("spikeline",!0)}}}function Pie(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 tE(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function aE(e,r){return Ya.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Rie(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o<e.length;o++){var l=e[o];hc.traceIs(l.trace,"bar-like")||hc.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 nE(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 uE=e=>e.offsetTop+e.clientTop,fE=e=>e.offsetLeft+e.clientLeft;function Im(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=Ja.apply3DTransform(t._invTransform)(n,i),u=Ja.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],d=u[0],h=u[1];return{x:f,y:c,width:d-f,height:h-c,top:Math.min(c,h),left:Math.min(f,d),right:Math.max(f,d),bottom:Math.max(c,h)}}});var Om=oe((Tbe,cE)=>{"use strict";var zie=pr(),Nie=Nt(),Bie=Pu().isUnifiedHover;cE.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&&Bie(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Nie.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),zie.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var dE=oe((kbe,vE)=>{"use strict";var Iie=pr(),Hie=Om(),Oie=g1();vE.exports=function(r,t){function a(n,i){return Iie.coerce(r,t,Oie,n,i)}Hie(r,t,a)}});var mE=oe((Cbe,pE)=>{"use strict";var hE=pr(),Uie=Ph(),Gie=Om();pE.exports=function(r,t,a,n){function i(l,s){return hE.coerce(r,t,Uie,l,s)}var o=hE.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Gie(r,t,i,o)}});var Gb=oe((Sbe,gE)=>{"use strict";var Yie=pr(),Vie=g1();gE.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Yie.coerce(r,t,Vie,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var _E=oe((Dbe,bE)=>{"use strict";var yE=pr(),Xie=g1(),jie=Gb(),Wie=Om();bE.exports=function(r,t){function a(u,f){return yE.coerce(r,t,Xie,u,f)}var n=jie(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"),Wie(r,t,a),yE.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var AE=oe((Fbe,wE)=>{"use strict";var Yb=pr(),xE=_t();wE.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Yb.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i<t.length;i++){var o=t[i],l=o[0].trace;if(!xE.traceIs(l,"pie-like")){var s=xE.traceIs(l,"2dMap")?Zie:Yb.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 Zie(e,r,t,a){a=a||Yb.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var kE=oe((Ebe,TE)=>{"use strict";var $ie=_t(),ME=Pu(),Jie=Ub().hover;TE.exports=function(r,t,a){var n=$ie.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Jie(r,t,a,!0);function o(){var s,u,f,c,d,h;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&&ME.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&ME.c2dApply(r._hoverYAxes,r._hoverYVals)),(d=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(h=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 Wl=oe((Lbe,DE)=>{"use strict";var Kie=Lt(),Um=pr(),Qie=el(),ed=Pu(),CE=g1(),SE=Ub();DE.exports={moduleType:"component",name:"fx",constants:(iv(),xr(nv)),schema:{layout:CE},attributes:Ph(),layoutAttributes:CE,supplyLayoutGlobalDefaults:dE(),supplyDefaults:mE(),supplyLayoutDefaults:_E(),calc:AE(),getDistanceFunction:ed.getDistanceFunction,getClosest:ed.getClosest,inbox:ed.inbox,quadrature:ed.quadrature,appendArrayPointValue:ed.appendArrayPointValue,castHoverOption:roe,castHoverinfo:toe,hover:SE.hover,unhover:Qie.unhover,loneHover:SE.loneHover,loneUnhover:eoe,click:kE()};function eoe(e){var r=Um.isD3Selection(e)?e:Kie.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function roe(e,r,t){return Um.castOption(e,r,"hoverlabel."+t)}function toe(e,r,t){function a(n){return Um.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return Um.castOption(e,t,"hoverinfo",a)}});var i2=oe(Bu=>{"use strict";Bu.selectMode=function(e){return e==="lasso"||e==="select"};Bu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Bu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Bu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Bu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Bu.selectingOrDrawing=function(e){return Bu.freeMode(e)||Bu.rectMode(e)}});var Gm=oe((Pbe,FE)=>{"use strict";FE.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 Ym=oe((Rbe,EE)=>{"use strict";EE.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>"," <title>plotly-logomark</title>"," <g id='symbol'>","  <rect fill='#000' x='0' y='0' width='132' height='132' rx='18' ry='18'/>","  <circle fill='#9EF' cx='102' cy='30' r='6'/>","  <circle fill='#BAC' cx='78' cy='30' r='6'/>","  <circle fill='#BAC' cx='78' cy='54' r='6'/>","  <circle fill='#D69' cx='54' cy='30' r='6'/>","  <circle fill='#F26' cx='30' cy='30' r='6'/>","  <circle fill='#F26' cx='30' cy='54' r='6'/>","  <path fill='#FFF' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>","  <path fill='#FFF' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>","  <path fill='#FFF' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>","  <path fill='#FFF' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}});var Vm={};Ua(Vm,{CIRCLE_SIDES:()=>aoe,SQRT2:()=>foe,cos45:()=>soe,i000:()=>noe,i090:()=>ioe,i180:()=>ooe,i270:()=>loe,sin45:()=>uoe});var aoe,noe,ioe,ooe,loe,soe,uoe,foe,Xm=Oa(()=>{"use strict";aoe=32,noe=0,ioe=8,ooe=16,loe=24,soe=Math.cos(Math.PI/4),uoe=Math.sin(Math.PI/4),foe=Math.sqrt(2)});var jm=oe((zbe,qE)=>{"use strict";var coe=pr().strTranslate;function LE(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 voe(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 doe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return LE(e,t[r])}}function hoe(e){return coe(e.xaxis._offset,e.yaxis._offset)}qE.exports={p2r:LE,r2p:voe,axValue:doe,getTransform:hoe}});var B0=oe(Iu=>{"use strict";var poe=D6(),zE=(Xm(),xr(Vm)),o2=zE.CIRCLE_SIDES,Vb=zE.SQRT2,NE=jm(),PE=NE.p2r,RE=NE.r2p,moe=[0,3,4,5,6,1,2],goe=[0,3,4,1,2];Iu.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=goe[s]:o==="C"&&(u=moe[s]),t+=e[a][i][u],s>0&&s<l-1&&(t+=",")}}return t};Iu.readPaths=function(e,r,t,a){var n=poe(e),i=[],o=-1,l=function(){o++,i[o]=[]},s,u=0,f=0,c,d,h=function(){c=u,d=f};h();for(var p=0;p<n.length;p++){var m=[],b,y,C,x,_=n[p][0],A=_;switch(_){case"M":l(),u=+n[p][1],f=+n[p][2],m.push([A,u,f]),h();break;case"Q":case"S":b=+n[p][1],C=+n[p][2],u=+n[p][3],f=+n[p][4],m.push([A,u,f,b,C]);break;case"C":b=+n[p][1],C=+n[p][2],y=+n[p][3],x=+n[p][4],u=+n[p][5],f=+n[p][6],m.push([A,u,f,b,C,y,x]);break;case"T":case"L":u=+n[p][1],f=+n[p][2],m.push([A,u,f]);break;case"H":A="L",u=+n[p][1],m.push([A,u,f]);break;case"V":A="L",f=+n[p][1],m.push([A,u,f]);break;case"A":A="L";var T=+n[p][1],M=+n[p][2];+n[p][4]||(T=-T,M=-M);var E=u-T,P=f;for(s=1;s<=o2/2;s++){var z=2*Math.PI*s/o2;m.push([A,E+T*Math.cos(z),P+M*Math.sin(z)])}break;case"Z":(u!==c||f!==d)&&(u=c,f=d,m.push([A,u,f]));break}for(var I=(t||{}).domain,X=r._fullLayout._size,H=t&&t.xsizemode==="pixel",V=t&&t.ysizemode==="pixel",N=a===!1,Q=0;Q<m.length;Q++){for(s=0;s+2<7;s+=2){var ee=m[Q][s+1],re=m[Q][s+2];ee===void 0||re===void 0||(u=ee,f=re,t&&(t.xaxis&&t.xaxis.p2r?(N&&(ee-=t.xaxis._offset),H?ee=RE(t.xaxis,t.xanchor)+ee:ee=PE(t.xaxis,ee)):(N&&(ee-=X.l),I?ee=I.x[0]+ee/X.w:ee=ee/X.w),t.yaxis&&t.yaxis.p2r?(N&&(re-=t.yaxis._offset),V?re=RE(t.yaxis,t.yanchor)-re:re=PE(t.yaxis,re)):(N&&(re-=X.t),I?re=I.y[1]-re/X.h:re=1-re/X.h)),m[Q][s+1]=ee,m[Q][s+2]=re)}i[o].push(m[Q].slice())}}return i};function rd(e,r){return Math.abs(e-r)<=1e-6}function Wm(e,r){var t=r[1]-e[1],a=r[2]-e[2];return Math.sqrt(t*t+a*a)}Iu.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(!rd(a,n))return!1;var i=e[0][t]-e[3][t],o=e[1][t]-e[2][t];if(!rd(i,o))return!1}return!rd(e[0][1],e[1][1])&&!rd(e[0][1],e[3][1])?!1:!!(Wm(e[0],e[1])*Wm(e[0],e[3]))};Iu.pointsOnEllipse=function(e){var r=e.length;if(r!==o2+1)return!1;r=o2;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!rd(Wm(e[t],e[i]),Wm(e[a],e[n])))return!1}return!0};Iu.handleEllipse=function(e,r,t){if(!e)return[r,t];var a=Iu.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/Vb),l||(l=o=o/Vb);for(var s=[],u=0;u<o2;u++){var f=u*2*Math.PI/o2;s.push([n+o*Math.cos(f),i+l*Math.sin(f)])}return s};Iu.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=Vb;return i*=u,o*=u,{x0:l-i,y0:s-o,x1:l+i,y1:s+o}};Iu.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 Jm=oe((Bbe,XE)=>{"use strict";var BE=En(),GE=i2(),yoe=GE.drawMode,boe=GE.openMode,l2=(Xm(),xr(Vm)),IE=l2.i000,HE=l2.i090,OE=l2.i180,UE=l2.i270,_oe=l2.cos45,xoe=l2.sin45,YE=jm(),Zm=YE.p2r,I0=YE.r2p,woe=C0(),Aoe=woe.clearOutline,$m=B0(),Moe=$m.readPaths,Toe=$m.writePaths,koe=$m.ellipseOver,Coe=$m.fixDatesForPaths;function Soe(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(!yoe(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=VE(e,r,i);Aoe(a);for(var f=r.editHelpers,c=(f||{}).modifyItem,d=[],h=0;h<o.length;h++){var p=a._fullLayout.shapes[h];if(d[h]=p._input,n!==void 0&&h===a._fullLayout._activeShapeIndex){var m=u;switch(p.type){case"line":case"rect":case"circle":var b=BE.getFromId(a,p.xref);p.xref.charAt(0)==="x"&&b.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 y=BE.getFromId(a,p.yref);p.yref.charAt(0)==="y"&&y.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?(d.push(u),d):f?f.getUpdateObj():{}}}}function VE(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,d=!!l.domain||!l.yaxis,h=boe(t),p=Moe(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:d?"paper":f._id,layer:o.layer,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}};h||(m.fillcolor=o.fillcolor,m.fillrule=o.fillrule);var b;if(p.length===1&&(b=p[0]),b&&b.length===5&&t==="drawrect")m.type="rect",m.x0=b[0][1],m.y0=b[0][2],m.x1=b[2][1],m.y1=b[2][2];else if(b&&t==="drawline")m.type="line",m.x0=b[0][1],m.y0=b[0][2],m.x1=b[1][1],m.y1=b[1][2];else if(b&&t==="drawcircle"){m.type="circle";var y=b[IE][1],C=b[HE][1],x=b[OE][1],_=b[UE][1],A=b[IE][2],T=b[HE][2],M=b[OE][2],E=b[UE][2],P=l.xaxis&&(l.xaxis.type==="date"||l.xaxis.type==="log"),z=l.yaxis&&(l.yaxis.type==="date"||l.yaxis.type==="log");P&&(y=I0(l.xaxis,y),C=I0(l.xaxis,C),x=I0(l.xaxis,x),_=I0(l.xaxis,_)),z&&(A=I0(l.yaxis,A),T=I0(l.yaxis,T),M=I0(l.yaxis,M),E=I0(l.yaxis,E));var I=(C+_)/2,X=(A+M)/2,H=(_-C+x-y)/2,V=(E-T+M-A)/2,N=koe({x0:I,y0:X,x1:I+H*_oe,y1:X+V*xoe});P&&(N.x0=Zm(l.xaxis,N.x0),N.x1=Zm(l.xaxis,N.x1)),z&&(N.y0=Zm(l.yaxis,N.y0),N.y1=Zm(l.yaxis,N.y1)),m.x0=N.x0,m.y0=N.y0,m.x1=N.x1,m.y1=N.y1}else m.type="path",u&&f&&Coe(p,u,f),m.path=Toe(p),b=null;return m}XE.exports={newShapes:Soe,createShapeObj:VE}});var jb=oe((Ibe,jE)=>{"use strict";var Doe=i2(),Foe=Doe.selectMode,Eoe=C0(),Loe=Eoe.clearOutline,Xb=B0(),qoe=Xb.readPaths,Poe=Xb.writePaths,Roe=Xb.fixDatesForPaths;jE.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,d=(i.layout||{}).selections||[];if(!Foe(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(h<d.length)switch(i._fullLayout.selections[h].type){case"rect":c="select";break;case"path":c="lasso";break}}var p=qoe(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}},b;p.length===1&&(b=p[0]),b&&b.length===5&&c==="select"?(m.type="rect",m.x0=b[0][1],m.y0=b[0][2],m.x1=b[2][1],m.y1=b[2][2]):(m.type="path",s&&u&&Roe(p,s,u),m.path=Poe(p),b=null),Loe(i);for(var y=t.editHelpers,C=(y||{}).modifyItem,x=[],_=0;_<d.length;_++){var A=i._fullLayout.selections[_];if(!A){x[_]=A;continue}if(x[_]=A._input,f!==void 0&&_===i._fullLayout._activeSelectionIndex){var T=m;switch(A.type){case"rect":C("x0",T.x0),C("x1",T.x1),C("y0",T.y0),C("y1",T.y1);break;case"path":C("path",T.path);break}}}return f===void 0?(x.push(m),x):y?y.getUpdateObj():{}}}}});var td={};Ua(td,{numParams:()=>Hoe,paramIsX:()=>Boe,paramIsY:()=>Ioe,paramRE:()=>Noe,segmentRE:()=>zoe});var zoe,Noe,Boe,Ioe,Hoe,ad=Oa(()=>{"use strict";zoe=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Noe=/[^\s,]+/g,Boe={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:{}},Ioe={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:{}},Hoe={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var O0=oe(Wn=>{"use strict";var Os=(ad(),xr(td)),WE=pr(),H0=Ga();Wn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Wn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Wn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Wn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Wn.extractPathCoords=function(e,r,t){var a=[],n=e.match(Os.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Os.paramRE);if(!(!l||l.length<o)){var s=l[o],u=t?s:WE.cleanNumber(s);a.push(u)}}}),a};Wn.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let a=r.match(Os.segmentRE);if(!a)return 0;let n=t==="x"?Os.paramIsX:Os.paramIsY;return a.reduce((i,o)=>{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Wn.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=Wn.shapePositionToRange(r);o=function(s){var u=Hs(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Wn.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};Wn.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=Wn.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};Wn.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Wn.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}};Wn.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}};Wn.getPathString=function(e,r){let t=r.type,a=H0.getRefType(r.xref),n=H0.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,d,h,p,m,b,y;function C(z,I,X,H){var V;if(z)if(I==="domain")H?V=function(N){return z._offset+z._length*(1-N)}:V=function(N){return z._offset+z._length*N};else{let N=Wn.shapePositionToRange(z);V=function(Q){return z._offset+z.r2p(N(Q,!0))},X==="path"&&z.type==="date"&&(V=Wn.decodeDate(V))}else H?V=function(N){return i.t+i.h*(1-N)}:V=function(N){return i.l+i.w*N};return V}if(a==="array"?(d=[],o=r.xref.map(function(z){return H0.getFromId(e,z)}),d=r.xref.map(function(z,I){return C(o[I],H0.getRefType(z),t,!1)})):(o=H0.getFromId(e,r.xref),d=C(o,a,t,!1)),n==="array"?(h=[],l=r.yref.map(function(z){return H0.getFromId(e,z)}),h=r.yref.map(function(z,I){return C(l[I],H0.getRefType(z),t,!0)})):(l=H0.getFromId(e,r.yref),h=C(l,n,t,!0)),t==="path")return Ooe(r,d,h);if(a==="array")s=Hs(o[0],r.x0shift),u=Hs(o[1],r.x1shift),p=d[0](r.x0)+s,m=d[1](r.x1)+u;else if(s=Hs(o,r.x0shift),u=Hs(o,r.x1shift),r.xsizemode==="pixel"){let z=d(r.xanchor);p=z+r.x0+s,m=z+r.x1+u}else p=d(r.x0)+s,m=d(r.x1)+u;if(n==="array")f=Hs(l[0],r.y0shift),c=Hs(l[1],r.y1shift),b=h[0](r.y0)+f,y=h[1](r.y1)+c;else if(f=Hs(l,r.y0shift),c=Hs(l,r.y1shift),r.ysizemode==="pixel"){let z=h(r.yanchor);b=z-r.y0+f,y=z-r.y1+c}else b=h(r.y0)+f,y=h(r.y1)+c;if(t==="line")return"M"+p+","+b+"L"+m+","+y;if(t==="rect")return"M"+p+","+b+"H"+m+"V"+y+"H"+p+"Z";var x=(p+m)/2,_=(b+y)/2,A=Math.abs(x-p),T=Math.abs(_-b),M="A"+A+","+T,E=x+A+","+_,P=x+","+(_-T);return"M"+E+M+" 0 1,1 "+P+M+" 0 0,1 "+E+"Z"};function Ooe(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(Os.segmentRE,function(d){var h=0,p=d.charAt(0),m=Os.paramIsX[p],b=Os.paramIsY[p],y=Os.numParams[p];let C=m.drawn!==void 0,x=b.drawn!==void 0,_=s?r[f]:r,A=u?t[c]:t;var T=d.slice(1).replace(Os.paramRE,function(M){return m[h]?n==="pixel"?M=_(o)+Number(M):M=_(M):b[h]&&(i==="pixel"?M=A(l)-Number(M):M=A(M)),h++,h>y&&(M="X"),M});return h>y&&(T=T.replace(/[\s,]*X.*/,""),WE.log("Ignoring extra params in segment "+d)),C&&f++,x&&c++,p+T})}Wn.getPixelShift=Hs;function Hs(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 Wb=oe((Obe,JE)=>{"use strict";var Uoe=pr(),Us=Ga(),ZE=vi(),$E=da(),Goe=B0().readPaths,mc=O0(),Yoe=mc.getPathString,nd=pp(),Voe=(ci(),xr(fi)).FROM_TL;JE.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=Us.getFromId(r,a.xref),s=Us.getFromId(r,a.yref);let ue=Array.isArray(a.xref),xe=Array.isArray(a.yref);for(var u in nd){var f=typeof nd[u]=="function",c=!ue||nd.simpleXVariables.includes(u),d=!xe||nd.simpleYVariables.includes(u);if(f&&c&&d){var h=nd[u](a,l,s);h!==void 0&&(o[u]=h)}}}i=Uoe.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,b={"data-notex":1},y=n.append("g").attr(p).classed("shape-label",!0),C=y.append("text").attr(b).classed("shape-label-text",!0).text(i),x,_,A,T;if(a.path){var M=Yoe(r,a),E=Goe(M,r);x=1/0,A=1/0,_=-1/0,T=-1/0;for(var P=0;P<E.length;P++)for(var z=0;z<E[P].length;z++)for(var I=E[P][z],X=1;X<I.length;X+=2){var H=I[X],V=I[X+1];x=Math.min(x,H),_=Math.max(_,H),A=Math.min(A,V),T=Math.max(T,V)}}else{let ue=Array.isArray(a.xref),xe=Array.isArray(a.yref),De=Us.getFromId(r,ue?a.xref[0]:a.xref),Ye=Us.getFromId(r,ue?a.xref[1]:a.xref),Ee=Us.getFromId(r,xe?a.yref[0]:a.yref),ke=Us.getFromId(r,xe?a.yref[1]:a.yref),je=Us.getRefType(ue?a.xref[0]:a.xref),W=Us.getRefType(ue?a.xref[1]:a.xref),le=Us.getRefType(xe?a.yref[0]:a.yref),de=Us.getRefType(xe?a.yref[1]:a.yref),K=(fe,be,Ne,Ze)=>mc.getDataToPixel(r,Ne,be,!1,Ze)(fe),J=(fe,be,Ne,Ze)=>mc.getDataToPixel(r,Ne,be,!0,Ze)(fe);if(a.xsizemode==="pixel"){let fe=K(a.xanchor,void 0,De,je),be=mc.getPixelShift(De,a.x0shift),Ne=mc.getPixelShift(De,a.x1shift);x=fe+a.x0+be,_=fe+a.x1+Ne}else x=K(a.x0,a.x0shift,De,je),_=K(a.x1,a.x1shift,Ye,W);if(a.ysizemode==="pixel"){let fe=J(a.yanchor,void 0,Ee,le),be=mc.getPixelShift(Ee,a.y0shift),Ne=mc.getPixelShift(Ee,a.y1shift);A=fe-a.y0+be,T=fe-a.y1+Ne}else A=J(a.y0,a.y0shift,Ee,le),T=J(a.y1,a.y1shift,ke,de)}var N=a.label.textangle;N==="auto"&&(a.type==="line"?N=Xoe(x,A,_,T):N=0),C.call(function(ue){return ue.call($E.font,m).attr({}),ZE.convertToTspans(ue,r),ue});var Q=$E.bBox(C.node()),ee=joe(x,A,_,T,a,N,Q),re=ee.textx,ae=ee.texty,ie=ee.xanchor;C.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ie],y:ae,x:re,transform:"rotate("+N+","+re+","+ae+")"}).call(ZE.positionText,re,ae)}};function Xoe(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 joe(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,d=Math.sin(c),h=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,b,y,C,x;if(f==="line"){l==="start"?(b=e,y=r):l==="end"?(b=t,y=a):(b=(e+t)/2,y=(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 _={left:1,center:0,right:-1},A={bottom:-1,middle:0,top:1};if(s==="auto"){var T=A[m];C=-u*d*T,x=u*h*T}else{var M=_[p],E=A[m];C=u*M,x=u*E}b=b+C,y=y+x}else C=u+3,l.indexOf("right")!==-1?(b=Math.max(e,t)-C,p==="auto"&&(p="right")):l.indexOf("left")!==-1?(b=Math.min(e,t)+C,p==="auto"&&(p="left")):(b=(e+t)/2,p==="auto"&&(p="center")),l.indexOf("top")!==-1?y=Math.min(r,a):l.indexOf("bottom")!==-1?y=Math.max(r,a):y=(r+a)/2,x=u,m==="bottom"?y=y-x:m==="top"&&(y=y+x);var P=Voe[m],z=n.label.font.size,I=o.height,X=(I*P-z)*d,H=-(I*P-z)*h;return{textx:b+X,texty:y+H,xanchor:p}}});var eg=oe((Ube,iL)=>{"use strict";var Woe=pr(),Zoe=Woe.strTranslate,KE=el(),rL=i2(),$oe=rL.drawMode,tL=rL.selectMode,aL=_t(),QE=Nt(),Qm=(Xm(),xr(Vm)),Joe=Qm.i000,Koe=Qm.i090,Qoe=Qm.i180,ele=Qm.i270,rle=C0(),nL=rle.clearOutlineControllers,$b=B0(),Km=$b.pointsOnRectangle,Zb=$b.pointsOnEllipse,tle=$b.writePaths,ale=Jm().newShapes,nle=Jm().createShapeObj,ile=jb(),ole=Wb();iL.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(Zb(r[0])||a.hasText)&&l({redrawing:!0})}function l(ee){var re={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,re=ale(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,re=ile(t,a),i._fullLayout._reselect=!0),Object.keys(re).length&&aL.call((ee||{}).redrawing?"relayout":"_guiRelayout",i,re)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=$oe(f),d=tL(f);(c||d)&&(i._fullLayout._outlining=!0),nL(i),t.attr("d",tle(r));var h,p,m,b,y;if(!n&&(a.isActiveShape||a.isActiveSelection)){y=lle([],r);var C=u.append("g").attr("class","outline-controllers");z(C),Q()}if(c&&a.hasText){var x=u.select(".label-temp"),_=nle(t,a,a.dragmode);ole(i,"label-temp",_,x)}function A(ee){m=+ee.srcElement.getAttribute("data-i"),b=+ee.srcElement.getAttribute("data-j"),h[m][b].moveFn=T}function T(ee,re){if(r.length){var ae=y[m][b][1],ie=y[m][b][2],ue=r[m],xe=ue.length;if(Km(ue)){var De=ee,Ye=re;if(a.isActiveSelection){var Ee=eL(ue,b);Ee[1]===ue[b][1]?Ye=0:De=0}for(var ke=0;ke<xe;ke++)if(ke!==b){var je=ue[ke];je[1]===ue[b][1]&&(je[1]=ae+De),je[2]===ue[b][2]&&(je[2]=ie+Ye)}if(ue[b][1]=ae+De,ue[b][2]=ie+Ye,!Km(ue))for(var W=0;W<xe;W++)for(var le=0;le<ue[W].length;le++)ue[W][le]=y[m][W][le]}else ue[b][1]=ae+ee,ue[b][2]=ie+re;o()}}function M(){l()}function E(){if(r.length&&r[m]&&r[m].length){for(var ee=[],re=0;re<r[m].length;re++)re!==b&&ee.push(r[m][re]);ee.length>1&&!(ee.length===2&&ee[1][0]==="Z")&&(b===0&&(ee[0][0]="M"),r[m]=ee,o(),l())}}function P(ee,re){if(ee===2){m=+re.srcElement.getAttribute("data-i"),b=+re.srcElement.getAttribute("data-j");var ae=r[m];!Km(ae)&&!Zb(ae)&&E()}}function z(ee){h=[];for(var re=0;re<r.length;re++){var ae=r[re],ie=Km(ae),ue=!ie&&Zb(ae);h[re]=[];for(var xe=ae.length,De=0;De<xe;De++)if(ae[De][0]!=="Z"&&!(ue&&De!==Joe&&De!==Koe&&De!==Qoe&&De!==ele)){var Ye=ie&&a.isActiveSelection,Ee;Ye&&(Ee=eL(ae,De));var ke=ae[De][1],je=ae[De][2],W=ee.append(Ye?"rect":"circle").attr("data-i",re).attr("data-j",De).style({fill:QE.background,stroke:QE.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(Ye){var le=Ee[1]-ke,de=Ee[2]-je,K=de?5:Math.max(Math.min(25,Math.abs(le)-5),5),J=le?5:Math.max(Math.min(25,Math.abs(de)-5),5);W.classed(de?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",K).attr("height",J).attr("x",ke-K/2).attr("y",je-J/2).attr("transform",Zoe(le/2,de/2))}else W.classed("cursor-grab",!0).attr("r",5).attr("cx",ke).attr("cy",je);h[re][De]={element:W.node(),gd:i,prepFn:A,doneFn:M,clickFn:P},KE.init(h[re][De])}}}function I(ee,re){if(r.length)for(var ae=0;ae<r.length;ae++)for(var ie=0;ie<r[ae].length;ie++)for(var ue=0;ue+2<r[ae][ie].length;ue+=2)r[ae][ie][ue+1]=y[ae][ie][ue+1]+ee,r[ae][ie][ue+2]=y[ae][ie][ue+2]+re}function X(ee,re){I(ee,re),o()}function H(ee){m=+ee.srcElement.getAttribute("data-i"),m||(m=0),p[m].moveFn=X}function V(){l()}function N(ee){ee===2&&sle(i)}function Q(){if(p=[],!!r.length){var ee=0;p[ee]={element:t[0][0],gd:i,prepFn:H,doneFn:V,clickFn:N},KE.init(p[ee])}}};function lle(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 eL(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 sle(e){if(tL(e._fullLayout.dragmode)){nL(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},aL.call("_guiRelayout",e,{selections:a})}}}});var ig=oe((Gbe,pL)=>{"use strict";var ule=Lt(),cL=_t(),Kb=pr(),gc=Ga(),fle=B0().readPaths,cle=eg(),tg=Wb(),vL=C0().clearOutlineControllers,Jb=Nt(),ag=da(),vle=ka().arrayEditor,oL=el(),lL=Wl(),sL=z0(),yc=(ad(),xr(td)),lo=O0(),Qb=lo.getPathString;pL.exports={draw:e7,drawOne:dL,eraseActiveShape:gle,drawLabel:tg};function e7(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&&dL(e,n)}function rg(e){return!!e._fullLayout._outlining}function ng(e){return!e._context.edits.shapePosition}function dL(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=lo.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=Qb(e,a),f={"data-index":r,"fill-rule":a.fillrule,d:u},c=a.opacity,d=a.fillcolor,h=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 b=u[u.length-1]!=="Z",y=ng(e)&&a.editable&&e._fullLayout._activeShapeIndex===r;y&&(d=b?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var C=s.append("g").classed("shape-group",!0).attr({"data-index":r}),x=C.append("path").attr(f).style("opacity",c).call(Jb.stroke,h).call(Jb.fill,d).call(ag.dashLine,m,p);hL(C,e,a),tg(e,r,a,C);var _;if((y||e._context.edits.shapePosition)&&(_=vle(e.layout,"shapes",a)),y){x.style({cursor:"move"});var A={element:x.node(),plotinfo:n,gd:e,editHelpers:_,hasText:a.label.text||a.label.texttemplate,isActiveShape:!0},T=fle(u,e);cle(T,x,A)}else e._context.edits.shapePosition?ple(e,x,a,r,s,_):a.editable===!0&&x.style("pointer-events",b||Jb.opacity(d)*c<=.5?"stroke":"all");x.node().addEventListener("click",function(){return mle(e,x)}),dle(e,x,n)}}function dle(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&&lL.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&lL.click(e,o,t.id)}})}function hL(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=hle(r,a,n);Kb.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),ag.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");ag.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function hle(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(d=>gc.getFromId(e,d)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(d){return d._offset}),c=u.map(function(d){return d._offset+d._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 ple(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",d=i.modifyItem,h,p,m,b,y,C,x,_,A,T,M,E,P,z,I,X=ule.select(r.node().parentNode),H=gc.getFromId(e,t.xref),V=gc.getRefType(t.xref),N=gc.getFromId(e,t.yref),Q=gc.getRefType(t.yref),ee=t.x0shift,re=t.x1shift,ae=t.y0shift,ie=t.y1shift,ue=function(tr,ze){var lr=lo.getDataToPixel(e,H,ze,!1,V);return lr(tr)},xe=function(tr,ze){var lr=lo.getDataToPixel(e,N,ze,!0,Q);return lr(tr)},De=lo.getPixelToData(e,H,!1,V),Ye=lo.getPixelToData(e,N,!0,Q),Ee=W(),ke={element:Ee.node(),gd:e,prepFn:K,doneFn:J,clickFn:fe},je;oL.init(ke),Ee.node().onmousemove=de;function W(){return f?le():r}function le(){var tr=10,ze=Math.max(t.line.width,tr),lr=n.append("g").attr("data-index",a).attr("drag-helper",!0);lr.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ze,"stroke-opacity":"0"});var dr={"fill-opacity":"0"},Ar=Math.max(ze/2,tr);return lr.append("circle").attr({"data-line-point":"start-point",cx:s?ue(t.xanchor)+t.x0:ue(t.x0,ee),cy:u?xe(t.yanchor)-t.y0:xe(t.y0,ae),r:Ar}).style(dr).classed("cursor-grab",!0),lr.append("circle").attr({"data-line-point":"end-point",cx:s?ue(t.xanchor)+t.x1:ue(t.x1,re),cy:u?xe(t.yanchor)-t.y1:xe(t.y1,ie),r:Ar}).style(dr).classed("cursor-grab",!0),lr}function de(tr){if(rg(e)){je=null;return}if(f)tr.target.tagName==="path"?je="move":je=tr.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ze=ke.element.getBoundingClientRect(),lr=ze.right-ze.left,dr=ze.bottom-ze.top,Ar=tr.clientX-ze.left,Qe=tr.clientY-ze.top,mr=!c&&lr>o&&dr>l&&!tr.shiftKey?oL.getCursor(Ar/lr,1-Qe/dr):"move";sL(r,mr),je=mr.split("-")[0]}}function K(tr){rg(e)||(s&&(y=ue(t.xanchor)),u&&(C=xe(t.yanchor)),t.type==="path"?I=t.path:(h=s?t.x0:ue(t.x0),p=u?t.y0:xe(t.y0),m=s?t.x1:ue(t.x1),b=u?t.y1:xe(t.y1)),h<m?(A=h,P="x0",T=m,z="x1"):(A=m,P="x1",T=h,z="x0"),!u&&p<b||u&&p>b?(x=p,M="y0",_=b,E="y1"):(x=b,M="y1",_=p,E="y0"),de(tr),Ze(n,t),Je(r,t,e),ke.moveFn=je==="move"?be:Ne,ke.altKey=tr.altKey)}function J(){rg(e)||(sL(r),er(n),hL(r,e,t),cL.call("_guiRelayout",e,i.getUpdateObj()))}function fe(){rg(e)||er(n)}function be(tr,ze){if(t.type==="path"){var lr=function(Qe){return Qe},dr=lr,Ar=lr;s?d("xanchor",t.xanchor=De(y+tr)):(dr=function(mr){return De(ue(mr)+tr)},H&&H.type==="date"&&(dr=lo.encodeDate(dr))),u?d("yanchor",t.yanchor=Ye(C+ze)):(Ar=function(mr){return Ye(xe(mr)+ze)},N&&N.type==="date"&&(Ar=lo.encodeDate(Ar))),d("path",t.path=uL(I,dr,Ar))}else s?d("xanchor",t.xanchor=De(y+tr)):(d("x0",t.x0=De(h+tr)),d("x1",t.x1=De(m+tr))),u?d("yanchor",t.yanchor=Ye(C+ze)):(d("y0",t.y0=Ye(p+ze)),d("y1",t.y1=Ye(b+ze)));r.attr("d",Qb(e,t)),Ze(n,t),tg(e,a,t,X)}function Ne(tr,ze){if(c){var lr=function(kr){return kr},dr=lr,Ar=lr;s?d("xanchor",t.xanchor=De(y+tr)):(dr=function(Er){return De(ue(Er)+tr)},H&&H.type==="date"&&(dr=lo.encodeDate(dr))),u?d("yanchor",t.yanchor=Ye(C+ze)):(Ar=function(Er){return Ye(xe(Er)+ze)},N&&N.type==="date"&&(Ar=lo.encodeDate(Ar))),d("path",t.path=uL(I,dr,Ar))}else if(f){if(je==="resize-over-start-point"){var Qe=h+tr,mr=u?p-ze:p+ze;d("x0",t.x0=s?Qe:De(Qe)),d("y0",t.y0=u?mr:Ye(mr))}else if(je==="resize-over-end-point"){var qr=m+tr,Te=u?b-ze:b+ze;d("x1",t.x1=s?qr:De(qr)),d("y1",t.y1=u?Te:Ye(Te))}}else{var Ue=function(kr){return je.indexOf(kr)!==-1},_r=Ue("n"),Pr=Ue("s"),Nr=Ue("w"),Ce=Ue("e"),He=_r?x+ze:x,cr=Pr?_+ze:_,Mr=Nr?A+tr:A,vr=Ce?T+tr:T;u&&(_r&&(He=x-ze),Pr&&(cr=_-ze)),(!u&&cr-He>l||u&&He-cr>l)&&(d(M,t[M]=u?He:Ye(He)),d(E,t[E]=u?cr:Ye(cr))),vr-Mr>o&&(d(P,t[P]=s?Mr:De(Mr)),d(z,t[z]=s?vr:De(vr)))}r.attr("d",Qb(e,t)),Ze(n,t),tg(e,a,t,X)}function Ze(tr,ze){(s||u)&&lr();function lr(){var dr=ze.type!=="path",Ar=tr.selectAll(".visual-cue").data([0]),Qe=1;Ar.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Qe}).classed("visual-cue",!0);var mr=ue(s?ze.xanchor:Kb.midRange(dr?[ze.x0,ze.x1]:lo.extractPathCoords(ze.path,yc.paramIsX))),qr=xe(u?ze.yanchor:Kb.midRange(dr?[ze.y0,ze.y1]:lo.extractPathCoords(ze.path,yc.paramIsY)));if(mr=lo.roundPositionForSharpStrokeRendering(mr,Qe),qr=lo.roundPositionForSharpStrokeRendering(qr,Qe),s&&u){var Te="M"+(mr-1-Qe)+","+(qr-1-Qe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ar.attr("d",Te)}else if(s){var Ue="M"+(mr-1-Qe)+","+(qr-9-Qe)+"v18 h2 v-18 Z";Ar.attr("d",Ue)}else{var _r="M"+(mr-9-Qe)+","+(qr-1-Qe)+"h18 v2 h-18 Z";Ar.attr("d",_r)}}}function er(tr){tr.selectAll(".visual-cue").remove()}function Je(tr,ze,lr){var dr=ze.xref,Ar=ze.yref,Qe=gc.getFromId(lr,dr),mr=gc.getFromId(lr,Ar),qr="";dr!=="paper"&&!Qe.autorange&&(qr+=dr),Ar!=="paper"&&!mr.autorange&&(qr+=Ar),ag.setClipUrl(tr,qr?"clip"+lr._fullLayout._uid+qr:null,lr)}}function uL(e,r,t){return e.replace(yc.segmentRE,function(a){var n=0,i=a.charAt(0),o=yc.paramIsX[i],l=yc.paramIsY[i],s=yc.numParams[i],u=a.slice(1).replace(yc.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function mle(e,r){if(ng(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){fL(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=fL,e7(e)}}}function fL(e){if(ng(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(vL(e),delete e._fullLayout._activeShapeIndex,e7(e))}}function gle(e){if(ng(e)){vL(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,cL.call("_guiRelayout",e,{shapes:a})}}}});var gL=oe((Ybe,mL)=>{"use strict";var s2=pr()._,yle=function(e){return{DIALOG_TITLE:s2(e,"Share chart"),DIALOG_MESSAGE_CLOUD:s2(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:s2(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:s2(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:s2(e,"Cancel"),DIALOG_CONFIRM:s2(e,"Share")}};mL.exports=yle});var _L=oe((Vbe,bL)=>{"use strict";var yL=Lt(),{dfltConfig:ble}=m0(),_le=gL(),xle=(e,r,t,a,n)=>{let i=_le(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===ble.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],d=f[2],h=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(d),s.append("span").text(h),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(/(\{|\})/),d=c[0],h=c[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(d),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(h)}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)},wle=(e,r,t)=>{let a=yL.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",()=>{yL.event.target===n.node()&&i()}),xle(e,n,r,()=>{i(),t()},i)};bL.exports=wle});var a7=oe((Xbe,CL)=>{"use strict";var Fo=_t(),Ale=Ln(),wL=En(),aa=Ym(),Mle=ig().eraseActiveShape,Tle=_L(),u2=pr(),Ut=u2._,ta={};CL.exports=ta;ta.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ut(e,"Download plot as a PNG"):Ut(e,"Download plot")},icon:aa.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};u2.notifier(Ut(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])}),Fo.call("downloadImage",e,t).then(function(a){u2.notifier(Ut(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){u2.notifier(Ut(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ta.downloadJson={name:"downloadJson",title:function(e){return Ut(e,"Download plot as JSON")},icon:aa.curlybraces,click:function(e){Fo.call("downloadImage",e,{format:"full-json"}).then(function(r){u2.notifier(Ut(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){u2.notifier(Ut(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ta.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Ut(e,"Share chart...")},icon:aa.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}Tle(e,r,function(){Ale.sendDataToCloud(e,r)})}};ta.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ut(e,"Zoom")},attr:"dragmode",val:"zoom",icon:aa.zoombox,click:Di};ta.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ut(e,"Pan")},attr:"dragmode",val:"pan",icon:aa.pan,click:Di};ta.select2d={name:"select2d",_cat:"select",title:function(e){return Ut(e,"Box Select")},attr:"dragmode",val:"select",icon:aa.selectbox,click:Di};ta.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ut(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:aa.lasso,click:Di};ta.drawclosedpath={name:"drawclosedpath",title:function(e){return Ut(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:aa.drawclosedpath,click:Di};ta.drawopenpath={name:"drawopenpath",title:function(e){return Ut(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:aa.drawopenpath,click:Di};ta.drawline={name:"drawline",title:function(e){return Ut(e,"Draw line")},attr:"dragmode",val:"drawline",icon:aa.drawline,click:Di};ta.drawrect={name:"drawrect",title:function(e){return Ut(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:aa.drawrect,click:Di};ta.drawcircle={name:"drawcircle",title:function(e){return Ut(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:aa.drawcircle,click:Di};ta.eraseshape={name:"eraseshape",title:function(e){return Ut(e,"Erase active shape")},icon:aa.eraseshape,click:Mle};ta.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ut(e,"Zoom in")},attr:"zoom",val:"in",icon:aa.zoom_plus,click:Di};ta.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ut(e,"Zoom out")},attr:"zoom",val:"out",icon:aa.zoom_minus,click:Di};ta.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ut(e,"Autoscale")},attr:"zoom",val:"auto",icon:aa.autoscale,click:Di};ta.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ut(e,"Reset axes")},attr:"zoom",val:"reset",icon:aa.home,click:Di};ta.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ut(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:aa.tooltip_basic,gravity:"ne",click:Di};ta.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ut(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:aa.tooltip_compare,gravity:"ne",click:Di};function Di(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=wL.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,d=(1+c)/2,h=(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 b=[u.r2l(u.range[0]),u.r2l(u.range[1])],y=[d*b[0]+h*b[1],d*b[1]+h*b[0]];o[p+".range[0]"]=u.l2r(y[0]),o[p+".range[1]"]=u.l2r(y[1])}}else a==="hovermode"&&(n==="x"||n==="y")&&(n=i._isHoriz?"y":"x",t.setAttribute("data-val",n)),o[a]=n;i._cartesianSpikesEnabled=s,Fo.call("_guiRelayout",e,o)}ta.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return Ut(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:aa.zoombox,click:lg};ta.pan3d={name:"pan3d",_cat:"pan",title:function(e){return Ut(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:aa.pan,click:lg};ta.orbitRotation={name:"orbitRotation",title:function(e){return Ut(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:aa["3d_rotate"],click:lg};ta.tableRotation={name:"tableRotation",title:function(e){return Ut(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:aa["z-axis"],click:lg};function lg(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,Fo.call("_guiRelayout",e,o)}ta.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return Ut(e,"Reset camera to default")},attr:"resetDefault",icon:aa.home,click:r7};ta.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return Ut(e,"Reset camera to last save")},attr:"resetLastSave",icon:aa.movie,click:r7};function r7(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",d=f+".aspectratio",h=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[d+".x"]=p.viewInitial.aspectratio.x,s[d+".y"]=p.viewInitial.aspectratio.y,s[d+".z"]=p.viewInitial.aspectratio.z,s[h]=p.viewInitial.aspectmode)}Fo.call("_guiRelayout",e,s)}ta.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return Ut(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:aa.tooltip_basic,gravity:"ne",click:kle};function AL(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],d=f+".hovermode";l[d]=c.hovermode,s[d]=!1;for(var h=0;h<3;h++){var p=o[h],m=f+"."+p+".showspikes";s[m]=!1,l[m]=c[p].showspikes}}t._previousVal=l}return s}function kle(e,r){var t=AL(e,r);Fo.call("_guiRelayout",e,t)}ta.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return Ut(e,"Zoom in")},attr:"zoom",val:"in",icon:aa.zoom_plus,click:t7};ta.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return Ut(e,"Zoom out")},attr:"zoom",val:"out",icon:aa.zoom_minus,click:t7};ta.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return Ut(e,"Reset")},attr:"reset",val:null,icon:aa.autoscale,click:t7};ta.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return Ut(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:aa.tooltip_basic,gravity:"ne",click:TL};var xL=2;function t7(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,d=c.scale()/f.fitScale,[h,p]=c.rotate().map(T=>-T),[m,b]=c.invert(f.midPt),{minscale:y}=u.projection,C=(l=u.projection.maxscale)!=null?l:1/0,x=Math.min(y,C),_=Math.max(y,C),A=n==="in"?xL*d:1/xL*d;A>_?A=_:A<x&&(A=x),A!==d&&Fo.call("_guiRelayout",e,{[s+".projection.scale"]:A,[s+".projection.rotation.lon"]:h,[s+".projection.rotation.lat"]:p,[s+".center.lon"]:m,[s+".center.lat"]:b,[s+".fitbounds"]:!1})}}a==="reset"&&og(e,"geo")}ta.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Ut(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:aa.tooltip_basic,gravity:"ne",click:TL};function ML(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function TL(e){var r=ML(e);Fo.call("_guiRelayout",e,"hovermode",r)}ta.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Ut(e,"Reset view")},icon:aa.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())}Fo.call("restyle",e,r)}};ta.toggleHover={name:"toggleHover",title:function(e){return Ut(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:aa.tooltip_basic,gravity:"ne",click:function(e,r){var t=AL(e,r);t.hovermode=ML(e),Fo.call("_guiRelayout",e,t)}};ta.resetViews={name:"resetViews",title:function(e){return Ut(e,"Reset views")},icon:aa.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),Di(e,r),t.setAttribute("data-attr","resetLastSave"),r7(e,r),og(e,"geo"),og(e,"map")}};ta.toggleSpikelines={name:"toggleSpikelines",title:function(e){return Ut(e,"Toggle Spike Lines")},icon:aa.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",Fo.call("_guiRelayout",e,Cle(e))}};function Cle(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=wL.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}ta.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return Ut(e,"Reset view")},attr:"reset",icon:aa.home,click:function(e){og(e,"map")}};ta.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return Ut(e,"Zoom in")},attr:"zoom",val:"in",icon:aa.zoom_plus,click:kL};ta.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return Ut(e,"Zoom out")},attr:"zoom",val:"out",icon:aa.zoom_minus,click:kL};function kL(e,r){Sle(e,r,"map")}function Sle(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,d=n==="in"?l*c:c/l;s[f+".zoom"]=d}Fo.call("_guiRelayout",e,s)}function og(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]}Fo.call("_guiRelayout",e,n)}});var n7=oe((jbe,EL)=>{"use strict";var SL=a7(),Dle=Object.keys(SL),DL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],FL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(DL,["downloadJson"]),f2=[],Fle=function(e){if(FL.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();f2.indexOf(r)===-1&&f2.push(r),f2.indexOf(t)===-1&&f2.push(t)}};Dle.forEach(function(e){Fle(SL[e])});f2.sort();EL.exports={DRAW_MODES:DL,backButtons:FL,foreButtons:f2}});var o7={};Ua(o7,{default:()=>Lle});var i7,Ele,Lle,l7=Oa(()=>{"use strict";i7=H_(n7()),Ele={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 *${i7.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 *${i7.default.foreButtons.join("*, *")}*.`].join(" ")}},Lle=Ele});var qL=oe((Wbe,LL)=>{"use strict";var qle=pr(),id=Nt(),Ple=ka(),Rle=(l7(),xr(o7)).default;LL.exports=function(r,t){var a=r.modebar||{},n=Ple.newContainer(t,"modebar");function i(l,s){return qle.coerce(a,n,Rle,l,s)}i("orientation"),i("bgcolor",id.addOpacity(t.paper_bgcolor,.5));var o=id.contrast(id.rgb(t.modebar.bgcolor));i("color",id.addOpacity(o,.3)),i("activecolor",id.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var NL=oe((Zbe,zL)=>{"use strict";var s7=Lt(),zle=Qt(),sg=pr(),PL=Ym(),Nle=K2().version,Ble=new DOMParser;function RL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Gs=RL.prototype;Gs.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(),sg.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Gs.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)})};Gs.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Gs.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&&s7.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||PL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Gs.createIcon=function(e){var r=zle(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=Ble.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Gs.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=s7.select(a),s=function(c,d){var h=r.modebar,p=c.querySelector(".icon path");p&&(d||c.matches(":hover")?p.style.fill=h.activecolor:p.style.fill=h.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:sg.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Gs.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 Ile(e){return e+" (v"+Nle+")"}Gs.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Ile(sg._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(PL.newplotlylogo)),e.appendChild(r),e};Gs.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};Gs.destroy=function(){sg.removeElement(this.container.querySelector(".modebar"))};function Hle(e,r){var t=e._fullLayout,a=new RL({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&s7.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}zL.exports=Hle});var HL=oe(($be,IL)=>{"use strict";var Ole=En(),BL=Ti(),u7=_t(),Ule=Pu().isUnifiedHover,Gle=NL(),ug=a7(),Yle=n7().DRAW_MODES,Vle=pr().extendDeep;IL.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=Jle(i):!a.displayModeBar&&a.watermark?o=[]:o=Xle(r),n?n.update(r,o):t._modeBar=Gle(r,o)};function Xle(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(re,ae){if(typeof ae=="string"){if(ae.toLowerCase()===re.toLowerCase())return!0}else{var ie=ae.name,ue=ae._cat||ae.name;if(ie===re||ue===re.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(re){for(var ae=0;ae<a.modeBarButtonsToRemove.length;ae++)if(n(re,a.modeBarButtonsToRemove[ae]))return!1;return!0})),s=a.modeBarButtonsToRemove.concat(o.filter(function(re){for(var ae=0;ae<a.modeBarButtonsToAdd.length;ae++)if(n(re,a.modeBarButtonsToAdd[ae]))return!1;return!0})),u=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),d=r._has("pie"),h=r._has("funnelarea"),p=r._has("ternary"),m=r._has("map"),b=r._has("polar"),y=r._has("smith"),C=r._has("sankey"),x=jle(r),_=Ule(r.hovermode),A=[];function T(re){if(re.length){for(var ae=[],ie=0;ie<re.length;ie++){for(var ue=re[ie],xe=ug[ue],De=xe.name.toLowerCase(),Ye=(xe._cat||xe.name).toLowerCase(),Ee=!1,ke=0;ke<s.length;ke++){var je=s[ke].toLowerCase();if(je===De||je===Ye){Ee=!0;break}}Ee||ae.push(ug[ue])}A.push(ae)}}var M=!1,E=[],P=[],z=[],I=[];(u||d||h||p)+c+f+m+b+y>1?(P=["toggleHover"],z=["resetViews"]):c?(E=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],z=["resetGeo"]):f?(P=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(E=["zoomInMap","zoomOutMap"],P=["toggleHover"],z=["resetViewMap"]):d?P=["hoverClosestPie"]:C?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Zle(t)||_)&&(P=[]),u&&!x&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?I=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!x||p?I=["zoom2d","pan2d"]:m||c?I=["pan2d"]:b&&(I=["zoom2d"]),Wle(t)&&I.push("select2d","lasso2d");var X=[],H=function(re){X.indexOf(re)===-1&&P.indexOf(re)!==-1&&X.push(re)};if(Array.isArray(l)){for(var V=[],N=0;N<l.length;N++){var Q=l[N];typeof Q=="string"?(Q=Q.toLowerCase(),Yle.indexOf(Q)!==-1?(r._has("map")||r._has("cartesian"))&&I.push(Q):Q==="togglespikelines"?H("toggleSpikelines"):Q==="togglehover"?H("toggleHover"):Q==="hovercompare"?H("hoverCompareCartesian"):Q==="hoverclosest"?(H("hoverClosestCartesian"),H("hoverClosestGeo"),H("hoverClosest3d"),H("hoverClosestPie")):Q==="v1hovermode"?(H("hoverClosestCartesian"),H("hoverCompareCartesian"),H("hoverClosestGeo"),H("hoverClosest3d"),H("hoverClosestPie")):Q==="downloadjson"&&(M=!0)):V.push(Q)}l=V}var ee=["toImage"];return M&&ee.push("downloadJson"),a.showSendToCloud&&ee.push("sendChartToCloud"),T(ee),T(I),T(E.concat(z)),T(X),$le(A,l)}function jle(e){for(var r=Ole.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 Wle(e){for(var r=!1,t=0;t<e.length&&!r;t++){var a=e[t];!a._module||!a._module.selectPoints||(u7.traceIs(a,"scatter-like")&&a.type!=="quiver"?(BL.hasMarkers(a)||BL.hasText(a))&&(r=!0):u7.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function Zle(e){for(var r=0;r<e.length;r++)if(!u7.traceIs(e[r],"noHover"))return!1;return!0}function $le(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 Jle(e){for(var r=Vle([],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(ug[i]!==void 0)r[t][n]=ug[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var f7=oe((Jbe,OL)=>{"use strict";OL.exports={moduleType:"component",name:"modebar",layoutAttributes:(l7(),xr(o7)).default,supplyLayoutDefaults:qL(),manage:HL()}});var c7=oe((Kbe,UL)=>{"use strict";var Kle=(ci(),xr(fi)).FROM_BL;UL.exports=function(r,t,a){a===void 0&&(a=Kle[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 ld=oe(od=>{"use strict";var bc=pr(),v7=P0(),Zl=En().id2name,Qle=Yl(),GL=c7(),ese=cm(),rse=(Za(),xr(nn)).ALMOST_EQUAL,tse=(ci(),xr(fi)).FROM_BL;od.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,d,h,p;for(l=0;l<a.length;l++)f=Zl(a[l]),c=e[f],d=r[f],ase(c,d,{axIds:a,layoutOut:r,hasImage:n[f]});function m(E,P){for(l=0;l<E.length;l++){s=E[l];for(u in s)r[Zl(u)][P]=s}}for(m(o,"_matchGroup"),l=0;l<i.length;l++){s=i[l];for(u in s)if(d=r[Zl(u)],d.fixedrange){for(var b in s){var y=Zl(b);(e[y]||{}).fixedrange===!1&&bc.warn("fixedrange was specified as false for axis "+y+" but was overridden because another axis in its constraint group has fixedrange true"),r[y].fixedrange=!0}break}}for(l=0;l<i.length;){s=i[l];for(u in s){d=r[Zl(u)],d._matchGroup&&Object.keys(d._matchGroup).length===Object.keys(s).length&&(i.splice(l,1),l--);break}l++}m(i,"_constraintGroup");var C=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],x=!1,_=!1;function A(){p=d[h],h==="rangebreaks"&&(_=d._hasDayOfWeekBreaks)}for(l=0;l<o.length;l++){s=o[l];for(var T=0;T<C.length;T++){h=C[T],p=null;var M;for(u in s)if(f=Zl(u),c=e[f],d=r[f],h in d){if(!d.matches&&(M=d,h in c)){A();break}p===null&&h in c&&A()}if(h==="range"&&p&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null&&(x=!0),h==="autorange"&&p===null&&x&&(p=!1),p===null&&h in M&&(p=M[h]),p!==null)for(u in s)d=r[Zl(u)],d[h]=h==="range"?p.slice():p,h==="rangebreaks"&&(d._hasDayOfWeekBreaks=_,ese(d,r))}}};function ase(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,d=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function h(X,H){return bc.coerce(e,r,Qle,X,H)}h("constrain",i?"domain":"range"),bc.coerce(e,r,{constraintoward:{valType:"enumerated",values:d?["left","center","right"]:["bottom","middle","top"],dflt:d?"center":"middle"}},"constraintoward");var p=r.type,m,b,y=[];for(m=0;m<a.length;m++)if(b=a[m],b!==c){var C=n[Zl(b)];C.type===p&&y.push(b)}var x=XL(o,c);if(x){var _=[];for(m=0;m<y.length;m++)b=y[m],x[b]||_.push(b);y=_}var A=y.length,T,M;A&&(e.matches||f.matches)&&(T=bc.coerce(e,r,{matches:{valType:"enumerated",values:y,dflt:y.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var E=i&&!d?r.anchor:void 0;if(A&&!T&&(e.scaleanchor||E)&&(M=bc.coerce(e,r,{scaleanchor:{valType:"enumerated",values:y.concat([!1])}},"scaleanchor",E)),T){r._matchGroup=d7(l,c,T,1);var P=n[Zl(T)],z=YL(n,r)/YL(n,P);d!==(T.charAt(0)==="x")&&(z=(d?"x":"y")+z),d7(o,c,T,z)}else e.matches&&a.indexOf(e.matches)!==-1&&bc.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(M){var I=h("scaleratio");I||(I=r.scaleratio=1),d7(o,c,M,I)}else e.scaleanchor&&a.indexOf(e.scaleanchor)!==-1&&bc.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 YL(e,r){var t=r.domain;return t||(t=e[Zl(r.overlaying)].domain),t[1]-t[0]}function XL(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=XL(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]=h7(c,h7(a,u[l]));e.splice(s,1);return}if(a!==1)for(i=0;i<f.length;i++){var d=f[i];u[d]=h7(a,u[d])}u[t]=1}function h7(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 nse(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,d=0;d<f;d++)s*=c}n[l]=s}return n}od.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=nse(a[n],t);var d=Object.keys(o),h=1/0,p=0,m=1/0,b={},y={},C=!1;for(i=0;i<d.length;i++)l=d[i],y[l]=s=t[Zl(l)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),b[l]=u=Math.abs(s._m)/o[l],h=Math.min(h,u),(s.constrain==="domain"||!s._constraintShrinkable)&&(m=Math.min(m,u)),delete s._constraintShrinkable,p=Math.max(p,u),s.constrain==="domain"&&(C=!0);if(!(h>rse*p&&!C)){for(i=0;i<d.length;i++)if(l=d[i],u=b[l],s=y[l],f=s.constrain,u!==m||f==="domain")if(c=u/m,f==="range")GL(s,c);else{var x=s._inputDomain,_=(s.domain[1]-s.domain[0])/(x[1]-x[0]),A=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if(c/=_,c*A<1){s.domain=s._input.domain=x.slice(),GL(s,c);continue}if(A<1&&(s.range=s._input.range=s._inputRange.slice(),c*=A),s.autorange){var T=s.r2l(s.range[0]),M=s.r2l(s.range[1]),E=(T+M)/2,P=E,z=E,I=Math.abs(M-E),X=E-I*c*1.0001,H=E+I*c*1.0001,V=v7.makePadFn(t,s,0),N=v7.makePadFn(t,s,1);VL(s,c,t);var Q=Math.abs(s._m),ee=v7.concatExtremes(r,s),re=ee.min,ae=ee.max,ie,ue;for(ue=0;ue<re.length;ue++)ie=re[ue].val-V(re[ue])/Q,ie>X&&ie<P&&(P=ie);for(ue=0;ue<ae.length;ue++)ie=ae[ue].val+N(ae[ue])/Q,ie<H&&ie>z&&(z=ie);var xe=(z-P)/(2*I);c/=xe,P=s.l2r(P),z=s.l2r(z),s.range=s._input.range=T<M?[P,z]:[z,P]}VL(s,c,t)}}}};od.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};od.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 ise(e,r){let t=e.domainpad;if(!t)return 0;let a=r._size;return e._id.charAt(0)==="y"?((t.top||0)+(t.bottom||0))/a.h:((t.left||0)+(t.right||0))/a.w}function VL(e,r,t){var a=e._inputDomain,n=tse[e.constraintoward],i=a[0]+(a[1]-a[0])*n;let o=r,l=ise(e,t);if(l>0){let s=a[1]-a[0],u=s-l;u>0&&(o=s/(u/r+l))}e.domain=e._input.domain=[i+(a[0]-i)/o,i+(a[1]-i)/o],e.setScale()}});var vg=oe(Un=>{"use strict";var cg=Lt(),Fi=_t(),Eo=Ln(),tl=pr(),p7=vi(),m7=Gm(),sd=Nt(),c2=da(),jL=Ov(),KL=f7(),ud=Ga(),Hu=(ci(),xr(fi)),QL=ld(),ose=QL.enforce,lse=QL.clean,WL=P0().doAutoRange,eq="start",sse="middle",rq="end",use=(Hn(),xr(In)).zindexSeparator;Un.layoutStyles=function(e){return tl.syncOrAsync([Eo.doAutoMargin,cse],e)};function fse(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 cse(e){var r=e._fullLayout,t=r._size,a=t.p,n=ud.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(c2.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Un.drawMainTitle(e),KL.manage(e),!r._has("cartesian"))return Eo.previousPromises(e);function c(K,J,fe){var be=K._lw/2;if(K._id.charAt(0)==="x"){if(J){if(fe==="top")return J._offset-a-be}else return t.t+t.h*(1-(K.position||0))+be%1;return J._offset+J._length+a+be}if(J){if(fe==="right")return J._offset+J._length+a+be}else return t.l+t.w*(K.position||0)+be%1;return J._offset-a-be}for(i=0;i<n.length;i++){s=n[i];var d=s._anchorAxis;s._linepositions={},s._lw=c2.crispRound(e,s.linewidth,1),s._mainLinePosition=c(s,d,s.side),s._mainMirrorPosition=s.mirror&&d?c(s,d,Hu.OPPOSITE_SIDE[s.side]):null}var h=[],p=[],m=[],b=sd.opacity(r.paper_bgcolor)===1&&sd.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 y=l.xaxis.domain,C=l.yaxis.domain,x=l.plotgroup;if(fse(y,C,m)&&o.indexOf(use)===-1){var _=x.node(),A=l.bg=tl.ensureSingle(x,"rect","bg");_.insertBefore(A.node(),_.childNodes[0]),p.push(o)}else x.select("rect.bg").remove(),m.push([y,C]),b||(h.push(o),p.push(o))}var T=r._bgLayer.selectAll(".bg").data(h);for(T.enter().append("rect").classed("bg",!0),T.exit().remove(),T.each(function(K){r._plots[K].bg=cg.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(c2.setRect,u._offset-a,f._offset-a,u._length+2*a,f._length+2*a).call(sd.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",E=tl.ensureSingleById(r._clips,"clipPath",M,function(K){K.classed("plotclip",!0).append("rect")});l.clipRect=E.select("rect").attr({width:u._length,height:f._length}),c2.setTranslate(l.plot,u._offset,f._offset);var P,z;l._hasClipOnAxisFalse?(P=null,z=M):(P=M,z=null),c2.setClipUrl(l.plot,P,e),l.layerClipId=z}var I,X,H,V,N,Q,ee,re,ae,ie,ue,xe,De;function Ye(K){return"M"+I+","+K+"H"+X}function Ee(K){return"M"+u._offset+","+K+"h"+u._length}function ke(K){return"M"+K+","+re+"V"+ee}function je(K){return f._shift!==void 0&&(K+=f._shift),"M"+K+","+f._offset+"v"+f._length}function W(K,J,fe){if(!K.showline||o!==K._mainSubplot)return"";if(!K._anchorAxis)return fe(K._mainLinePosition);var be=J(K._mainLinePosition);return K.mirror&&(be+=J(K._mainMirrorPosition)),be}for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var le="M0,0";ZL(u,o)&&(N=fg(u,"left",f,n),I=u._offset-(N?a+N:0),Q=fg(u,"right",f,n),X=u._offset+u._length+(Q?a+Q:0),H=c(u,f,"bottom"),V=c(u,f,"top"),De=!u._anchorAxis||o!==u._mainSubplot,De&&(u.mirror==="allticks"||u.mirror==="all")&&(u._linepositions[o]=[H,V]),le=W(u,Ye,Ee),De&&u.showline&&(u.mirror==="all"||u.mirror==="allticks")&&(le+=Ye(H)+Ye(V)),l.xlines.style("stroke-width",u._lw+"px").call(sd.stroke,u.showline?u.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",le);var de="M0,0";ZL(f,o)&&(ue=fg(f,"bottom",u,n),ee=f._offset+f._length+(ue?a:0),xe=fg(f,"top",u,n),re=f._offset-(xe?a:0),ae=c(f,u,"left"),ie=c(f,u,"right"),De=!f._anchorAxis||o!==f._mainSubplot,De&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[o]=[ae,ie]),de=W(f,ke,je),De&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(de+=ke(ae)+ke(ie)),l.ylines.style("stroke-width",f._lw+"px").call(sd.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",de)}return ud.makeClipPaths(e),Eo.previousPromises(e)}function ZL(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function $L(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=Hu.FROM_BL[r];return t.side===r?a.domain[n]===e.domain[n]:t.mirror&&a.domain[1-n]===e.domain[1-n]}function fg(e,r,t,a){if($L(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&$L(e,r,i))return i._lw}return 0}Un.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=yse(t),n=bse(t),i=gse(t,n),o=mse(t,a);if(jL.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=cg.select(e).selectAll(".gtitle"),s=c2.bBox(cg.select(e).selectAll(".g-gtitle").node()).height,u=hse(e,r,s);if(u>0){pse(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:JL(r.yanchor)}).call(p7.positionText,o,i);var f=(r.text.match(p7.BR_TAG_ALL)||[]).length;if(f){var c=Hu.LINE_SPACING*f+Hu.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",b)})}var d=cg.select(e).selectAll(".gtitle-subtitle");if(d.node()){var h=l.node().getBBox(),p=h.y+h.height,m=p+jL.SUBTITLE_PADDING_EM*r.subtitle.font.size;d.attr({x:o,y:m,"text-anchor":a,dy:JL(r.yanchor)}).call(p7.positionText,o,m)}}}};function vse(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=tl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return tl.isTopAnchor(r)&&t==="t"||tl.isBottomAnchor(r)&&t==="b"?!1:l<n}function dse(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 hse(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=dse(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function pse(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"&&vse(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Eo.allowAutoMargin(e,n),Eo.autoMargin(e,n,l)}function mse(e,r){var t=e.title,a=e._size,n=0;return r===eq?n=t.pad.l:r===rq&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function gse(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Hu.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 JL(e){return e==="top"?Hu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Hu.MID_SHIFT+"em"}function yse(e){var r=e.title,t=sse;return tl.isRightAnchor(r)?t=rq:tl.isLeftAnchor(r)&&(t=eq),t}function bse(e){var r=e.title,t="0em";return tl.isTopAnchor(r)?t=Hu.CAP_SHIFT+"em":tl.isMiddleAnchor(r)&&(t=Hu.MID_SHIFT+"em"),t}Un.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)}m7(e),Un.redrawReglTraces(e)}return Eo.style(e),Fi.getComponentMethod("legend","draw")(e),Eo.previousPromises(e)};Un.doColorBars=function(e){return Fi.getComponentMethod("colorbar","draw")(e),Eo.previousPromises(e)};Un.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,Fi.call("_doPlot",e,"",r)};Un.doLegend=function(e){return Fi.getComponentMethod("legend","draw")(e),Eo.previousPromises(e)};Un.doTicksRelayout=function(e){var r=ud.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(Fi.subplotsRegistry.splom.updateGrid(e),m7(e),Un.redrawReglTraces(e)),Un.drawMainTitle(e),Promise.resolve(r).then(function(){return Eo.previousPromises(e)})};Un.doModeBar=function(e){var r=e._fullLayout;KL.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return Eo.previousPromises(e)};Un.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)}};Un.drawData=function(e){var r=e._fullLayout;m7(e);for(var t=r._basePlotModules,a=0;a<t.length;a++)t[a].plot(e);return Un.redrawReglTraces(e),Eo.style(e),Fi.getComponentMethod("selections","draw")(e),Fi.getComponentMethod("shapes","draw")(e),Fi.getComponentMethod("annotations","draw")(e),Fi.getComponentMethod("images","draw")(e),r._replotting=!1,Eo.previousPromises(e)};Un.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"?tl.pushUnique(a,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&tl.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()}};Un.doAutoRangeAndConstraints=function(e){for(var r=ud.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,lse(e,t),WL(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=ud.getFromId(e,o);WL(e,l,t.range),a[o]=1}}ose(e)};Un.finalDraw=function(e){Fi.getComponentMethod("rangeslider","draw")(e),Fi.getComponentMethod("rangeselector","draw")(e)};Un.drawMarginPushers=function(e){Fi.getComponentMethod("legend","draw")(e),Fi.getComponentMethod("rangeselector","draw")(e),Fi.getComponentMethod("sliders","draw")(e),Fi.getComponentMethod("updatemenus","draw")(e),Fi.getComponentMethod("colorbar","draw")(e)}});var b7=oe((r7e,oq)=>{"use strict";var _se=B0().readPaths,xse=eg(),tq=C0().clearOutlineControllers,g7=Nt(),aq=da(),wse=ka().arrayEditor,nq=O0(),Ase=nq.getPathString;oq.exports={draw:dg,drawOne:iq,activateLastSelection:kse};function dg(e){var r=e._fullLayout;tq(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++)iq(e,n)}function hg(e){return e._context.editSelection}function iq(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=nq.makeSelectionsOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input)return;i(e._fullLayout._selectionLayer);function i(o){var l=Ase(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),d=a.line.width,h=a.line.dash;d||(d=5,h="solid");var p=hg(e)&&e._fullLayout._activeSelectionIndex===r;p&&(f=e._fullLayout.activeselection.fillcolor,u=e._fullLayout.activeselection.opacity);for(var m=[],b=1;b>=0;b--){var y=o.append("path").attr(s).style("opacity",b?.1:u).call(g7.stroke,c).call(g7.fill,f).call(aq.dashLine,b?"solid":h,b?4+d:d);if(Mse(y,e,a),p){var C=wse(e.layout,"selections",a);y.style({cursor:"move"});var x={element:y.node(),plotinfo:n,gd:e,editHelpers:C,isActiveSelection:!0},_=_se(l,e);xse(_,y,x)}else y.style("pointer-events",b?"all":"none");m[b]=y}var A=m[0],T=m[1];T.node().addEventListener("click",function(){return Tse(e,A)})}}function Mse(e,r,t){var a=t.xref+t.yref;aq.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Tse(e,r){if(hg(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){y7(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=y7,dg(e)}}}function kse(e){if(hg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=y7,dg(e)}}function y7(e){if(hg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(tq(e),delete e._fullLayout._activeSelectionIndex,dg(e))}}});var sq=oe((t7e,lq)=>{function Cse(){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}lq.exports=Cse});var fq=oe((a7e,uq)=>{function Sse(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],d=t[1]-n[1],h=(s*d-u*c)/f,p=(o*d-l*c)/f,m={alongA:0,alongB:0,pt:[t[0]+h*o,t[1]+h*l]};return h<=-e?m.alongA=-2:h<e?m.alongA=-1:h-1<=-e?m.alongA=0:h-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}uq.exports=Sse});var vq=oe((n7e,cq)=>{var Dse={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}};cq.exports=Dse});var hq=oe((i7e,dq)=>{var fd=vq();function Fse(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,b){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var i=fd.create();function o(p,m,b,y,C,x){var _=r.pointsCompare(m,C);return _!==0?_:r.pointsSame(b,x)?0:p!==y?p?1:-1:r.pointAboveOrOnLine(b,y?C:x,y?x:C)?1:-1}function l(p,m){i.insertBefore(p,function(b){var y=o(p.isStart,p.pt,m,b.isStart,b.pt,b.other.pt);return y<0})}function s(p,m){var b=fd.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(b,p.end),b}function u(p,m,b){var y=fd.node({isStart:!1,pt:m.end,seg:m,primary:b,other:p,status:null});p.other=y,l(y,p.pt)}function f(p,m){var b=s(p,m);return u(b,p,m),b}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 d(p,m){var b=n(m,p.seg.end,p.seg);return c(p,m),f(b,p.primary)}function h(p,m){var b=fd.create();function y(N,Q){var ee=N.seg.start,re=N.seg.end,ae=Q.seg.start,ie=Q.seg.end;return r.pointsCollinear(ee,ae,ie)?r.pointsCollinear(re,ae,ie)||r.pointAboveOrOnLine(re,ae,ie)?1:-1:r.pointAboveOrOnLine(ee,ae,ie)?1:-1}function C(N){return b.findTransition(function(Q){var ee=y(N,Q.ev);return ee>0})}function x(N,Q){var ee=N.seg,re=Q.seg,ae=ee.start,ie=ee.end,ue=re.start,xe=re.end;t&&t.checkIntersection(ee,re);var De=r.linesIntersect(ae,ie,ue,xe);if(De===!1){if(!r.pointsCollinear(ae,ie,ue)||r.pointsSame(ae,xe)||r.pointsSame(ie,ue))return!1;var Ye=r.pointsSame(ae,ue),Ee=r.pointsSame(ie,xe);if(Ye&&Ee)return Q;var ke=!Ye&&r.pointBetween(ae,ue,xe),je=!Ee&&r.pointBetween(ie,ue,xe);if(Ye)return je?d(Q,ie):d(N,xe),Q;ke&&(Ee||(je?d(Q,ie):d(N,xe)),d(Q,ae))}else De.alongA===0&&(De.alongB===-1?d(N,ue):De.alongB===0?d(N,De.pt):De.alongB===1&&d(N,xe)),De.alongB===0&&(De.alongA===-1?d(Q,ae):De.alongA===0?d(Q,De.pt):De.alongA===1&&d(Q,ie));return!1}for(var _=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let N=function(){if(M){var Q=x(A,M);if(Q)return Q}return E?x(A,E):!1};var V=N;t&&t.segmentNew(A.seg,A.primary);var T=C(A),M=T.before?T.before.ev:null,E=T.after?T.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,E?E.seg:!1);var P=N();if(P){if(e){var z;A.seg.myFill.below===null?z=!0:z=A.seg.myFill.above!==A.seg.myFill.below,z&&(P.seg.myFill.above=!P.seg.myFill.above)}else P.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(P.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var z;A.seg.myFill.below===null?z=!0:z=A.seg.myFill.above!==A.seg.myFill.below,E?A.seg.myFill.below=E.seg.myFill.above:A.seg.myFill.below=p,z?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var I;E?A.primary===E.primary?I=E.seg.otherFill.above:I=E.seg.myFill.above:I=A.primary?m:p,A.seg.otherFill={above:I,below:I}}t&&t.status(A.seg,M?M.seg:!1,E?E.seg:!1),A.other.status=T.insert(fd.node({ev:A}))}else{var X=A.status;if(X===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(X.prev)&&b.exists(X.next)&&x(X.prev.ev,X.next.ev),t&&t.statusRemove(X.ev.seg),X.remove(),!A.primary){var H=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=H}_.push(A.seg)}i.getHead().remove()}return t&&t.done(),_}return e?{addRegion:function(p){for(var m,b=p[p.length-1],y=0;y<p.length;y++){m=b,b=p[y];var C=r.pointsCompare(m,b);C!==0&&f(a(C<0?m:b,C<0?b:m),!0)}},calculate:function(p){return h(p,!1)}}:{calculate:function(p,m,b,y){return p.forEach(function(C){f(n(C.start,C.end,C),!0)}),b.forEach(function(C){f(n(C.start,C.end,C),!1)}),h(m,y)}}}dq.exports=Fse});var mq=oe((o7e,pq)=>{function Ese(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(V,N,Q){return f.index=V,f.matches_head=N,f.matches_pt1=Q,f===s?(f=u,!1):(f=null,!0)}for(var d=0;d<a.length;d++){var h=a[d],p=h[0],m=h[1],b=h[h.length-1],y=h[h.length-2];if(r.pointsSame(p,o)){if(c(d,!0,!0))break}else if(r.pointsSame(p,l)){if(c(d,!0,!1))break}else if(r.pointsSame(b,o)){if(c(d,!1,!0))break}else if(r.pointsSame(b,l)&&c(d,!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 C=s.index,x=s.matches_pt1?l:o,_=s.matches_head,h=a[C],A=_?h[0]:h[h.length-1],T=_?h[1]:h[h.length-2],M=_?h[h.length-1]:h[0],E=_?h[h.length-2]:h[1];if(r.pointsCollinear(T,A,x)&&(_?(t&&t.chainRemoveHead(s.index,x),h.shift()):(t&&t.chainRemoveTail(s.index,x),h.pop()),A=T),r.pointsSame(M,x)){a.splice(C,1),r.pointsCollinear(E,M,A)&&(_?(t&&t.chainRemoveTail(s.index,A),h.pop()):(t&&t.chainRemoveHead(s.index,A),h.shift())),t&&t.chainClose(s.index),n.push(h);return}_?(t&&t.chainAddHead(s.index,x),h.unshift(x)):(t&&t.chainAddTail(s.index,x),h.push(x));return}function P(V){t&&t.chainReverse(V),a[V].reverse()}function z(V,N){var Q=a[V],ee=a[N],re=Q[Q.length-1],ae=Q[Q.length-2],ie=ee[0],ue=ee[1];r.pointsCollinear(ae,re,ie)&&(t&&t.chainRemoveTail(V,re),Q.pop(),re=ae),r.pointsCollinear(re,ie,ue)&&(t&&t.chainRemoveHead(N,ie),ee.shift()),t&&t.chainJoin(V,N),a[V]=Q.concat(ee),a.splice(N,1)}var I=s.index,X=u.index;t&&t.chainConnect(I,X);var H=a[I].length<a[X].length;s.matches_head?u.matches_head?H?(P(I),z(I,X)):(P(X),z(X,I)):z(X,I):u.matches_head?z(I,X):H?(P(I),z(X,I)):(P(X),z(I,X))}),n}pq.exports=Ese});var yq=oe((l7e,gq)=>{function cd(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 Lse={union:function(e,r){return cd(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return cd(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return cd(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return cd(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return cd(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};gq.exports=Lse});var _q=oe((s7e,bq)=>{var qse={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(h,p){return r.pointInsideRegion([(h[0][0]+h[1][0])*.5,(h[0][1]+h[1][1])*.5],p)}function n(h){return{region:h,children:[]}}var i=n(null);function o(h,p){for(var m=0;m<h.children.length;m++){var b=h.children[m];if(a(p,b.region)){o(b,p);return}}for(var y=n(p),m=0;m<h.children.length;m++){var b=h.children[m];a(b.region,p)&&(y.children.push(b),h.children.splice(m,1),m--)}h.children.push(y)}for(var l=0;l<t.regions.length;l++){var s=t.regions[l];s.length<3||o(i,s)}function u(h,p){for(var m=0,b=h[h.length-1][0],y=h[h.length-1][1],C=[],x=0;x<h.length;x++){var _=h[x][0],A=h[x][1];C.push([_,A]),m+=A*b-_*y,b=_,y=A}var T=m<0;return T!==p&&C.reverse(),C.push([C[0][0],C[0][1]]),C}var f=[];function c(h){var p=[u(h.region,!1)];f.push(p);for(var m=0;m<h.children.length;m++)p.push(d(h.children[m]))}function d(h){for(var p=0;p<h.children.length;p++)c(h.children[p]);return u(h.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}}};bq.exports=qse});var Mq=oe((u7e,Aq)=>{var Pse=sq(),Rse=fq(),xq=hq(),zse=mq(),vd=yq(),wq=_q(),al=!1,dd=Rse(),so;so={buildLog:function(e){return e===!0?al=Pse():e===!1&&(al=!1),al===!1?!1:al.list},epsilon:function(e){return dd.epsilon(e)},segments:function(e){var r=xq(!0,dd,al);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=xq(!1,dd,al);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:vd.union(e.combined,al),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:vd.intersect(e.combined,al),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:vd.difference(e.combined,al),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:vd.differenceRev(e.combined,al),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:vd.xor(e.combined,al),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:zse(e.segments,dd,al),inverted:e.inverted}},polygonFromGeoJSON:function(e){return wq.toPolygon(so,e)},polygonToGeoJSON:function(e){return wq.fromPolygon(so,dd,e)},union:function(e,r){return hd(e,r,so.selectUnion)},intersect:function(e,r){return hd(e,r,so.selectIntersect)},difference:function(e,r){return hd(e,r,so.selectDifference)},differenceRev:function(e,r){return hd(e,r,so.selectDifferenceRev)},xor:function(e,r){return hd(e,r,so.selectXor)}};function hd(e,r,t){var a=so.segments(e),n=so.segments(r),i=so.combine(a,n),o=t(i);return so.polygon(o)}typeof window=="object"&&(window.PolyBool=so);Aq.exports=so});var kq=oe((f7e,Tq)=>{Tq.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],d=t[u+a][1],h=t[f+a][0],p=t[f+a][1],m=d>o!=p>o&&i<(h-c)*(o-d)/(p-d)+c;m&&(l=!l)}return l}});var gg=oe((c7e,Cq)=>{"use strict";var _7=vp().dot,pg=(Za(),xr(nn)).BADNUM,mg=Cq.exports={};mg.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 b=p[0],y=p[1];return!(b===pg||b<a||b>n||y===pg||y<i||y>o||m&&u(p))}function c(p,m){var b=p[0],y=p[1];if(b===pg||b<a||b>n||y===pg||y<i||y>o)return!1;var C=t.length,x=t[0][0],_=t[0][1],A=0,T,M,E,P,z;for(T=1;T<C;T++)if(M=x,E=_,x=t[T][0],_=t[T][1],P=Math.min(M,x),!(b<P||b>Math.max(M,x)||y>Math.max(E,_)))if(y<Math.min(E,_))b!==P&&A++;else{if(x===M?z=y:z=E+(b-M)*(_-E)/(x-M),y===z)return!(T===1&&m);y<=z&&b!==P&&A++}return A%2===1}var d=!0,h=t[0];for(l=1;l<t.length;l++)if(h[0]!==t[l][0]||h[1]!==t[l][1]){d=!1;break}return{xmin:a,xmax:n,ymin:i,ymax:o,pts:t,contains:s?f:c,isRect:s,degenerate:d}};mg.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,d;for(f=t+1;f<a;f++)if(c=[r[f][0]-i[0],r[f][1]-i[1]],d=_7(c,o),d<0||d>l||Math.abs(_7(c,u))>n)return!0;return!1};mg.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||mg.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 Sq={};Ua(Sq,{BENDPX:()=>Nse,MINSELECT:()=>Bse,SELECTDELAY:()=>Ise,SELECTID:()=>Hse});var Nse,Bse,Ise,Hse,Dq=Oa(()=>{"use strict";Nse=1.5,Bse=12,Ise=100,Hse="-select"});var Jq=oe((v7e,$q)=>{"use strict";var Fq=Mq(),Ose=kq(),gd=_t(),Use=da().dashStyle,pd=Nt(),Gse=Wl(),Yse=Pu().makeEventData,wd=i2(),Vse=wd.freeMode,Xse=wd.rectMode,yd=wd.drawMode,M7=wd.openMode,T7=wd.selectMode,Eq=O0(),Lq=(ad(),xr(td)),Nq=eg(),Bq=C0().clearOutline,Iq=B0(),x7=Iq.handleEllipse,jse=Iq.readPaths,Wse=Jm().newShapes,Zse=jb(),$se=b7().activateLastSelection,bg=pr(),Jse=bg.sorterAsc,Hq=gg(),md=Cp(),nl=En().getFromId,Kse=Gm(),Qse=vg().redrawReglTraces,_g=(Dq(),xr(Sq)),Ys=_g.MINSELECT,eue=Hq.filter,k7=Hq.tester,C7=jm(),qq=C7.p2r,rue=C7.axValue,tue=C7.getTransform;function S7(e){return e.subplot!==void 0}function aue(e,r,t,a,n){var i=!S7(a),o=Vse(n),l=Xse(n),s=M7(n),u=yd(n),f=T7(n),c=n==="drawline",d=n==="drawcircle",h=c||d,p=a.gd,m=p._fullLayout,b=f&&m.newselection.mode==="immediate"&&i,y=m._zoomlayer,C=a.element.getBoundingClientRect(),x=a.plotinfo,_=tue(x),A=r-C.left,T=t-C.top;m._calcInverseTransform(p);var M=bg.apply3DTransform(m._invTransform)(A,T);A=M[0],T=M[1];var E=m._invScaleX,P=m._invScaleY,z=A,I=T,X="M"+A+","+T,H=a.xaxes[0],V=a.yaxes[0],N=H._length,Q=V._length,ee=e.altKey&&!(yd(n)&&s),re,ae,ie,ue,xe,De,Ye;Uq(e,p,a),o&&(re=eue([[A,T]],_g.BENDPX));var Ee=y.selectAll("path.select-outline-"+x.id).data([1]),ke=u?m.newshape:m.newselection;u&&(a.hasText=ke.label.text||ke.label.texttemplate);var je=u&&!s?ke.fillcolor:"rgba(0,0,0,0)",W=ke.line.color||(i?pd.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");Ee.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?ke.opacity/2:1,"stroke-dasharray":Use(ke.line.dash,ke.line.width),"stroke-width":ke.line.width+"px","shape-rendering":"crispEdges"}).call(pd.stroke,W).call(pd.fill,je).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",X+"Z");var le=y.append("path").attr("class","zoombox-corners").style({fill:pd.background,stroke:pd.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&a.hasText){var de=y.select(".label-temp");de.empty()&&(de=y.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var K=m._uid+_g.SELECTID,J=[],fe=xg(p,a.xaxes,a.yaxes,a.subplot);b&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ne=H._id,Ze=V._id;jq(p,Ne,Ze,fe);for(var er=(p.layout||{}).selections||[],Je=[],tr=!1,ze=0;ze<er.length;ze++){var lr=m.selections[ze];!lr||lr.xref!==Ne||lr.yref!==Ze?Je.push(er[ze]):tr=!0}tr&&(p._fullLayout._noEmitSelectedAtStart=!0,gd.call("_guiRelayout",p,{selections:Je}))}});var be=gue(a);a.moveFn=function(Ne,Ze){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),z=Math.max(0,Math.min(N,E*Ne+A)),I=Math.max(0,Math.min(Q,P*Ze+T));var er=Math.abs(z-A),Je=Math.abs(I-T);if(l){var tr,ze,lr;if(f){var dr=m.selectdirection;switch(dr==="any"?Je<Math.min(er*.6,Ys)?tr="h":er<Math.min(Je*.6,Ys)?tr="v":tr="d":tr=dr,tr){case"h":ze=d?Q/2:0,lr=Q;break;case"v":ze=d?N/2:0,lr=N;break}}if(u)switch(m.newshape.drawdirection){case"vertical":tr="h",ze=d?Q/2:0,lr=Q;break;case"horizontal":tr="v",ze=d?N/2:0,lr=N;break;case"ortho":er<Je?(tr="h",ze=T,lr=I):(tr="v",ze=A,lr=z);break;default:tr="d"}tr==="h"?(ue=h?x7(d,[z,ze],[z,lr]):[[A,ze],[A,lr],[z,lr],[z,ze]],ue.xmin=h?z:Math.min(A,z),ue.xmax=h?z:Math.max(A,z),ue.ymin=Math.min(ze,lr),ue.ymax=Math.max(ze,lr),le.attr("d","M"+ue.xmin+","+(T-Ys)+"h-4v"+2*Ys+"h4ZM"+(ue.xmax-1)+","+(T-Ys)+"h4v"+2*Ys+"h-4Z")):tr==="v"?(ue=h?x7(d,[ze,I],[lr,I]):[[ze,T],[ze,I],[lr,I],[lr,T]],ue.xmin=Math.min(ze,lr),ue.xmax=Math.max(ze,lr),ue.ymin=h?I:Math.min(T,I),ue.ymax=h?I:Math.max(T,I),le.attr("d","M"+(A-Ys)+","+ue.ymin+"v-4h"+2*Ys+"v4ZM"+(A-Ys)+","+(ue.ymax-1)+"v4h"+2*Ys+"v-4Z")):tr==="d"&&(ue=h?x7(d,[A,T],[z,I]):[[A,T],[A,I],[z,I],[z,T]],ue.xmin=Math.min(A,z),ue.xmax=Math.max(A,z),ue.ymin=Math.min(T,I),ue.ymax=Math.max(T,I),le.attr("d","M0,0Z"))}else o&&(re.addPt([z,I]),ue=re.filtered);if(a.selectionDefs&&a.selectionDefs.length?(ie=Gq(a.mergedPolygons,ue,ee),ue.subtract=ee,ae=D7(a.selectionDefs.concat([ue]))):(ie=[ue],ae=k7(ue)),Nq(Vq(ie,s),Ee,a),f){var Ar=A7(p,!1),Qe=Ar.eventData?Ar.eventData.points.slice():[];Ar=A7(p,!1,ae,fe,a),ae=Ar.selectionTesters,Ye=Ar.eventData;var mr;re?mr=re.filtered:mr=Wq(ie),md.throttle(K,_g.SELECTDELAY,function(){J=Xq(ae,fe);for(var qr=J.slice(),Te=0;Te<Qe.length;Te++){for(var Ue=Qe[Te],_r=!1,Pr=0;Pr<qr.length;Pr++)if(qr[Pr].curveNumber===Ue.curveNumber&&qr[Pr].pointNumber===Ue.pointNumber){_r=!0;break}_r||qr.push(Ue)}qr.length&&(Ye||(Ye={}),Ye.points=qr),be(Ye,mr),yue(p,Ye)})}},a.clickFn=function(Ne,Ze){if(le.remove(),p._fullLayout._activeShapeIndex>=0){p._fullLayout._deactivateShape(p);return}if(!u){var er=m.clickmode;md.done(K).then(function(){if(md.clear(K),Ne===2){for(Ee.remove(),xe=0;xe<fe.length;xe++)De=fe[xe],De._module.selectPoints(De,!1);if(_d(p,fe),bd(a),E7(p),fe.length){var Je=fe[0].xaxis,tr=fe[0].yaxis;if(Je&&tr){for(var ze=[],lr=p._fullLayout.selections,dr=0;dr<lr.length;dr++){var Ar=lr[dr];Ar&&(Ar.xref!==Je._id||Ar.yref!==tr._id)&&ze.push(Ar)}ze.length<lr.length&&(p._fullLayout._noEmitSelectedAtStart=!0,gd.call("_guiRelayout",p,{selections:ze}))}}}else er.indexOf("select")>-1&&Oq(Ze,p,a.xaxes,a.yaxes,a.subplot,a,Ee),er==="event"&&xd(p,void 0);Gse.click(p,Ze,x.id)}).catch(bg.error)}},a.doneFn=function(){le.remove(),md.done(K).then(function(){md.clear(K),!b&&ue&&a.selectionDefs&&(ue.subtract=ee,a.selectionDefs.push(ue),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,ie)),(b||u)&&bd(a,b),a.doneFnCompleted&&a.doneFnCompleted(J),f&&xd(p,Ye)}).catch(bg.error)}}function Oq(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],d,h,p,m,b,y,C,x,_,A;if(sue(l)){Uq(e,r,i),d=xg(r,t,a,n);var T=uue(l,d),M=T.pointNumbers.length>0;if(M?fue(d,T):cue(d)&&(C=Rq(T))){for(o&&o.remove(),A=0;A<d.length;A++)h=d[A],h._module.selectPoints(h,!1);_d(r,d),bd(i),f&&E7(r)}else{x=e.shiftKey&&(C!==void 0?C:Rq(T)),p=nue(T.pointNumber,T.searchInfo,x);var E=i.selectionDefs.concat([p]);for(m=D7(E,m),A=0;A<d.length;A++)if(b=d[A]._module.selectPoints(d[A],m),y=Yq(b,d[A]),c.length)for(var P=0;P<y.length;P++)c.push(y[P]);else c=y;if(_={points:c},_d(r,d,_),p&&i&&i.selectionDefs.push(p),o){var z=i.mergedPolygons,I=M7(i.dragmode);Nq(Vq(z,I),o,i)}f&&xd(r,_)}}}function nue(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function w7(e){return"pointNumber"in e&&"searchInfo"in e}function iue(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(r,t,a,n){var i=e.searchInfo.cd[0].trace.index,o=n.cd[0].trace.index;return o===i&&a===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function D7(e){if(!e.length)return;for(var r=[],t=w7(e[0])?0:e[0][0][0],a=t,n=w7(e[0])?0:e[0][0][1],i=n,o=0;o<e.length;o++)if(w7(e[o]))r.push(iue(e[o]));else{var l=k7(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,d){for(var h=!1,p=0;p<r.length;p++)r[p].contains(u,f,c,d)&&(h=!r[p].subtract);return h}return{xmin:t,xmax:a,ymin:n,ymax:i,pts:[],contains:s,isRect:!1,degenerate:!1}}function Uq(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)&&!(yd(i)&&M7(i));o&&l&&n.selection&&n.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=n.selection.selectionDefs,t.mergedPolygons=n.selection.mergedPolygons):(!l||!n.selection)&&bd(t),o||(Bq(r),a._lastSelectedSubplot=n.id)}function oue(e){return e._fullLayout._activeShapeIndex>=0}function lue(e){return e._fullLayout._activeSelectionIndex>=0}function bd(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;oue(n)&&n._fullLayout._deactivateShape(n),lue(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=yd(t),s=T7(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Wse(u,e)),f&&gd.call("_guiRelayout",n,{shapes:f});var c;s&&!S7(e)&&(c=Zse(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,gd.call("_guiRelayout",n,{selections:c}).then(function(){r&&$se(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function Pq(e){return e._id}function xg(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(Pq),o=t.map(Pq),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(S7({subplot:a})&&(s.subplot===a||s.geo===a))n.push(yg(s._module,l,r[0],t[0]));else if(s.type==="splom"){if(s._xaxes[i[0]]&&s._yaxes[o[0]]){var f=yg(s._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[s.uid],n.push(f)}}else if(s.type==="sankey"){var c=yg(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(yg(s._module,l,nl(e,s.xaxis),nl(e,s.yaxis)))}return n}function yg(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function sue(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function uue(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 Rq(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 fue(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 cue(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 _d(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;vue(e,r)}function vue(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;gd.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&&(Kse(e),Qse(e))}function Gq(e,r,t){for(var a=t?Fq.difference:Fq.union,n=a({regions:e},{regions:[r]}),i=n.regions.reverse(),o=0;o<i.length;o++){var l=i[o];l.subtract=F7(l,i.slice(0,o))}return i}function Yq(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=Yse(e[n],a,t);return e}function Vq(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 Xq(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=Yq(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=zq(e),d=e._fullLayout;if(o){var h=d._zoomlayer,p=d.dragmode,m=yd(p),b=T7(p);if(m||b){var y=nl(e,l,"x"),C=nl(e,s,"y");if(y&&C){var x=h.selectAll(".select-outline-"+o.id);if(x&&e._fullLayout._outlining&&x.length){for(var _=x[0][0],A=_.getAttribute("d"),T=jse(A,e,o),M=[],E=0;E<T.length;E++){for(var P=T[E],z=[],I=0;I<P.length;I++)z.push([U0(y,P[I][1]),U0(C,P[I][2])]);z.xref=l,z.yref=s,z.subtract=F7(z,M),M.push(z)}c=c.concat(M)}}}}var X=l&&s?[l+s]:d._subplots.cartesian;due(e);for(var H={},V=0;V<X.length;V++){var N=X[V],Q=N.indexOf("y"),ee=N.slice(0,Q),re=N.slice(Q),ae=l&&s?t:void 0;if(ae=pue(c,ee,re,ae),ae){var ie=a;if(!i){var ue=nl(e,ee,"x"),xe=nl(e,re,"y");ie=xg(e,[ue],[xe],N);for(var De=0;De<ie.length;De++){var Ye=ie[De],Ee=Ye.cd[0],ke=Ee.trace;if(Ye._module.name==="scattergl"&&!Ee.t.xpx){var je=ke.x,W=ke.y,le=ke._length;Ee.t.xpx=[],Ee.t.ypx=[];for(var de=0;de<le;de++)Ee.t.xpx[de]=ue.c2p(je[de]),Ee.t.ypx[de]=xe.c2p(W[de])}Ye._module.name==="splom"&&(H[ke.uid]||(H[ke.uid]=!0))}}var K=Xq(ae,ie);u=u.concat(K),f=f.concat(ie)}}var J={points:u};_d(e,f,J);var fe=d.clickmode,be=fe.indexOf("event")>-1&&r;if(!o&&r){var Ne=zq(e,!0);if(Ne.length){var Ze=Ne[0].xref,er=Ne[0].yref;if(Ze&&er){var Je=Wq(Ne),tr=Zq([nl(e,Ze,"x"),nl(e,er,"y")]);tr(J,Je)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:be&&xd(e,J),d._reselect=!1}if(!o&&d._deselect){var ze=d._deselect;l=ze.xref,s=ze.yref,hue(l,s,f)||jq(e,l,s,a),be&&(J.points.length?xd(e,J):E7(e)),d._deselect=!1}return{eventData:J,selectionTesters:t}}function due(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 hue(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 jq(e,r,t,a){a=xg(e,[nl(e,r,"x")],[nl(e,t,"y")],r+t);for(var n=0;n<a.length;n++){var i=a[n];i._module.selectPoints(i,!1)}_d(e,a)}function pue(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=Gq(n,o,l),a=D7(n)}else n=[o],a=k7(o)}return a}function zq(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=nl(e,s,"x"),c=nl(e,u,"y"),d,h,p,m,b;if(l.type==="rect"){b=[];var y=U0(f,l.x0),C=U0(f,l.x1),x=U0(c,l.y0),_=U0(c,l.y1);b=[[y,x],[y,_],[C,_],[C,x]],d=Math.min(y,C),h=Math.max(y,C),p=Math.min(x,_),m=Math.max(x,_),b.xmin=d,b.xmax=h,b.ymin=p,b.ymax=m,b.xref=s,b.yref=u,b.subtract=!1,b.isRect=!0,t.push(b)}else if(l.type==="path")for(var A=l.path.split("Z"),T=[],M=0;M<A.length;M++){var E=A[M];if(E){E+="Z";var P=Eq.extractPathCoords(E,Lq.paramIsX,"raw"),z=Eq.extractPathCoords(E,Lq.paramIsY,"raw");d=1/0,h=-1/0,p=1/0,m=-1/0,b=[];for(var I=0;I<P.length;I++){var X=U0(f,P[I]),H=U0(c,z[I]);b.push([X,H]),d=Math.min(X,d),h=Math.max(X,h),p=Math.min(H,p),m=Math.max(H,m)}b.xmin=d,b.xmax=h,b.ymin=p,b.ymax=m,b.xref=s,b.yref=u,b.subtract=F7(b,T),T.push(b),t.push(b)}}}}return t}function F7(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(Ose(e[i],n)){t=!t;break}return t}function U0(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function Wq(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 mue(t)}function mue(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 Zq(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]=[qq(o,u),qq(o,f)].sort(Jse))}else n||(n={}),n[l]=t.map(rue(o))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function gue(e){var r=e.plotinfo;return r.fillRangeItems||Zq(e.xaxes.concat(e.yaxes))}function yue(e,r){e.emit("plotly_selecting",r)}function xd(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function E7(e){e.emit("plotly_deselect",null)}$q.exports={reselect:A7,prepSelect:aue,clearOutline:Bq,clearSelectionsCache:bd,selectOnClick:Oq}});var L7=oe((d7e,Kq)=>{"use strict";Kq.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 Ad={};Ua(Ad,{axisRefDescription:()=>bue});function bue(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 Md=Oa(()=>{"use strict"});var v2=oe((p7e,rP)=>{"use strict";var Qq=L7(),eP=xi(),wg=(Hn(),xr(In)),_ue=ka().templatedArray,h7e=(Md(),xr(Ad));rP.exports=_ue("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:eP({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:Qq.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Qq.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",wg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",wg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",wg.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",wg.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:eP({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ag={};Ua(Ag,{PTS_LINESONLY:()=>xue,eventDataKeys:()=>Tue,maxScreensAway:()=>Mue,minTolerance:()=>wue,toleranceGrowth:()=>Aue});var xue,wue,Aue,Mue,Tue,Mg=Oa(()=>{"use strict";xue=20,wue=.2,Aue=10,Mue=20,Tue=[]});var q7=oe((m7e,tP)=>{"use strict";tP.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var _c=oe((g7e,fP)=>{"use strict";var aP=l6().axisHoverFormat,{hovertemplateAttrs:kue,texttemplateAttrs:Cue,templatefallbackAttrs:nP}=Vf(),iP=Y1(),Sue=xi(),oP=Fs().dash,Due=Fs().pattern,Fue=da(),Eue=(Mg(),xr(Ag)),Td=Dn().extendFlat,Lue=q7();function lP(e){return{valType:"any",dflt:0,editType:"calc"}}function sP(e){return{valType:"any",editType:"calc"}}function uP(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}fP.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:lP("x"),yperiod:lP("y"),xperiod0:sP("x0"),yperiod0:sP("y0"),xperiodalignment:uP("x"),yperiodalignment:uP("y"),xhoverformat:aP("x"),yhoverformat:aP("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:Cue(),texttemplatefallback:nP({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:kue({},{keys:Eue.eventDataKeys}),hovertemplatefallback:nP(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Td({},oP,{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:Lue(!0),fillgradient:Td({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Due,marker:Td({symbol:{valType:"enumerated",values:Fue.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Td({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Td({},oP,{arrayOk:!0}),editType:"calc"},iP("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"},iP("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:Sue({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var P7=oe((b7e,dP)=>{"use strict";var cP=v2(),vP=_c().line,que=Fs().dash,Tg=Dn().extendFlat,Pue=Zo().overrideAll,Rue=ka().templatedArray,y7e=(Md(),xr(Ad));dP.exports=Pue(Rue("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Tg({},cP.xref,{}),yref:Tg({},cP.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:vP.color,width:Tg({},vP.width,{min:1,dflt:1}),dash:Tg({},que,{dflt:"dot"})}}),"arraydraw","from-root")});var gP=oe((_7e,mP)=>{"use strict";var hP=pr(),kg=Ga(),zue=Vl(),Nue=P7(),pP=O0();mP.exports=function(r,t){zue(r,t,{name:"selections",handleItemDefaults:Bue});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 Bue(e,r,t){function a(T,M){return hP.coerce(e,r,Nue,T,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},d,h,p,m=kg.coerceRef(e,r,c,f);if(d=kg.getFromId(c,m),d._selectionIndices.push(r._index),p=pP.rangeToShapePosition(d),h=pP.shapePositionToRange(d),l){var b=f+"0",y=f+"1",C=e[b],x=e[y];e[b]=h(e[b],!0),e[y]=h(e[y],!0),kg.coercePosition(r,c,a,m,b),kg.coercePosition(r,c,a,m,y);var _=r[b],A=r[y];_!==void 0&&A!==void 0&&(r[b]=p(_),r[y]=p(A),e[b]=C,e[y]=x)}}l&&hP.noneOrAll(e,r,["x0","x1","y0","y1"])}});var bP=oe((x7e,yP)=>{"use strict";yP.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 kd=oe((w7e,wP)=>{"use strict";var Iue=_t(),_P=pr(),xP=En();wP.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Iue.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,d=n._has("cartesian"),h=0;h<i.length;h++){var p=i[h];if(_P.isPlainObject(p)){var m=xP.cleanId(p.xref,"x",!1),b=xP.cleanId(p.yref,"y",!1),y=l.x.test(m),C=l.y.test(b);if(y||C){d||_P.pushUnique(n._basePlotModules,o);var x=!1;y&&u.indexOf(m)===-1&&(u.push(m),x=!0),C&&f.indexOf(b)===-1&&(f.push(b),x=!0),x&&y&&C&&c.push(m+b)}}}}}});var Ou=oe((A7e,MP)=>{"use strict";var AP=b7(),Cd=Jq();MP.exports={moduleType:"component",name:"selections",layoutAttributes:P7(),supplyLayoutDefaults:gP(),supplyDrawNewSelectionDefaults:bP(),includeBasePlot:kd()("selections"),draw:AP.draw,drawOne:AP.drawOne,reselect:Cd.reselect,prepSelect:Cd.prepSelect,clearOutline:Cd.clearOutline,clearSelectionsCache:Cd.clearSelectionsCache,selectOnClick:Cd.selectOnClick}});var YP=oe((M7e,GP)=>{"use strict";var H7=Lt(),il=pr(),TP=il.numberFormat,Hue=pb(),Cg=_t(),qP=il.strTranslate,Oue=vi(),z7=Nt(),G0=da(),Uue=Wl(),kP=Ga(),Gue=z0(),Yue=el(),PP=i2(),Sg=PP.selectingOrDrawing,Vue=PP.freeMode,Xue=(ci(),xr(fi)).FROM_TL,jue=Gm(),Wue=vg().redrawReglTraces,Zue=Ln(),N7=En().getFromId,$ue=Ou().prepSelect,Jue=Ou().clearOutline,Kue=Ou().selectOnClick,R7=c7(),O7=(Hn(),xr(In)),CP=O7.MINDRAG,Oi=O7.MINZOOM,SP=!0;function Que(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,d,h,p,m,b,y,C,x,_,A,T,M,E,P,z,I,X,H,V,N,Q,ee;t+=r.yaxis._shift;function re(){if(c=r.xaxis,d=r.yaxis,x=c._length,_=d._length,y=c._offset,C=d._offset,h={},h[c._id]=c,p={},p[d._id]=d,o&&l)for(var Ce=r.overlays,He=0;He<Ce.length;He++){var cr=Ce[He].xaxis;h[cr._id]=cr;var Mr=Ce[He].yaxis;p[Mr._id]=Mr}m=LP(h),b=LP(p),M=DP(m,l),E=DP(b,o),P=!E&&!M,T=EP(e,e._fullLayout._axisMatchGroups,h,p),A=EP(e,e._fullLayout._axisConstraintGroups,h,p,T);var vr=A.isSubplotConstrained||T.isSubplotConstrained;z=l||vr,I=o||vr;var kr=e._fullLayout;X=kr._has("scattergl"),H=kr._has("splom"),V=kr._has("svg")}re();var ae=t0e(E+M,e._fullLayout.dragmode,u),ie=zP(r,o+l+"drag",ae,t,a,n,i);if(P&&!u)return ie.onmousedown=null,ie.style.pointerEvents="none",ie;var ue={element:ie,gd:e,plotinfo:r};ue.prepFn=function(Ce,He,cr){var Mr=ue.dragmode,vr=e._fullLayout.dragmode;vr!==Mr&&(ue.dragmode=vr),re(),Q=e._fullLayout._invScaleX,ee=e._fullLayout._invScaleY,P||(u?Ce.shiftKey?vr==="pan"?vr="zoom":Sg(vr)||(vr="pan"):Ce.ctrlKey&&(vr="pan"):vr="pan"),Vue(vr)?ue.minDrag=1:ue.minDrag=void 0,Sg(vr)?(ue.xaxes=m,ue.yaxes=b,$ue(Ce,He,cr,ue,vr)):(ue.clickFn=De,Sg(Mr)&&xe(),P||(vr==="zoom"?(ue.moveFn=Ne,ue.doneFn=er,ue.minDrag=1,be(Ce,He,cr)):vr==="pan"&&(ue.moveFn=Ar,ue.doneFn=Te))),e._fullLayout._redrag=function(){var kr=e._dragdata;if(kr&&kr.element===ie){var Er=e._fullLayout.dragmode;Sg(Er)||(re(),Ue([0,0,x,_]),ue.moveFn(kr.dx,kr.dy))}}};function xe(){ue.plotinfo.selection=!1,Jue(e)}function De(Ce,He){var cr=ue.gd;if(cr._fullLayout._activeShapeIndex>=0){cr._fullLayout._deactivateShape(cr);return}var Mr=cr._fullLayout.clickmode;if(I7(cr),Ce===2&&!f&&qr(),u)Mr.indexOf("select")>-1&&Kue(He,cr,m,b,r.id,ue),Mr.indexOf("event")>-1&&Uue.click(cr,He,r.id);else if(Ce===1&&f){var vr=o?d:c,kr=o==="s"||l==="w"?0:1,Er=vr._name+".range["+kr+"]",jr=e0e(vr,kr),et="left",nr="middle";if(vr.fixedrange)return;o?(nr=o==="n"?"top":"bottom",vr.side==="right"&&(et="right")):l==="e"&&(et="right"),cr._context.showAxisRangeEntryBoxes&&H7.select(ie).call(Oue.makeEditable,{gd:cr,immediate:!0,background:cr._fullLayout.paper_bgcolor,text:String(jr),fill:vr.tickfont?vr.tickfont.color:"#444",horizontalAlign:et,verticalAlign:nr}).on("edit",function(Cr){var ar=vr.d2r(Cr);ar!==void 0&&Cg.call("_guiRelayout",cr,Er,ar)})}}Yue.init(ue);var Ye,Ee,ke,je,W,le,de,K,J,fe;function be(Ce,He,cr){var Mr=ie.getBoundingClientRect();Ye=He-Mr.left,Ee=cr-Mr.top,e._fullLayout._calcInverseTransform(e);var vr=il.apply3DTransform(e._fullLayout._invTransform)(Ye,Ee);Ye=vr[0],Ee=vr[1],ke={l:Ye,r:Ye,w:0,t:Ee,b:Ee,h:0},je=e._hmpixcount?e._hmlumcount/e._hmpixcount:z7.luminosity(e._fullLayout.plot_bgcolor),W="M0,0H"+x+"V"+_+"H0V0",le=!1,de="xy",fe=!1,K=NP(s,je,y,C,W),J=BP(s,y,C)}function Ne(Ce,He){if(e._transitioningWithDuration)return!1;var cr=Math.max(0,Math.min(x,Q*Ce+Ye)),Mr=Math.max(0,Math.min(_,ee*He+Ee)),vr=Math.abs(cr-Ye),kr=Math.abs(Mr-Ee);ke.l=Math.min(Ye,cr),ke.r=Math.max(Ye,cr),ke.t=Math.min(Ee,Mr),ke.b=Math.max(Ee,Mr);function Er(){de="",ke.r=ke.l,ke.t=ke.b,J.attr("d","M0,0Z")}if(A.isSubplotConstrained)vr>Oi||kr>Oi?(de="xy",vr/x>kr/_?(kr=vr*_/x,Ee>Mr?ke.t=Ee-kr:ke.b=Ee+kr):(vr=kr*x/_,Ye>cr?ke.l=Ye-vr:ke.r=Ye+vr),J.attr("d",Dg(ke))):Er();else if(T.isSubplotConstrained)if(vr>Oi||kr>Oi){de="xy";var jr=Math.min(ke.l/x,(_-ke.b)/_),et=Math.max(ke.r/x,(_-ke.t)/_);ke.l=jr*x,ke.r=et*x,ke.b=(1-jr)*_,ke.t=(1-et)*_,J.attr("d",Dg(ke))}else Er();else!E||kr<Math.min(Math.max(vr*.6,CP),Oi)?vr<CP||!M?Er():(ke.t=0,ke.b=_,de="x",J.attr("d",a0e(ke,Ee))):!M||vr<Math.min(kr*.6,Oi)?(ke.l=0,ke.r=x,de="y",J.attr("d",n0e(ke,Ye))):(de="xy",J.attr("d",Dg(ke)));ke.w=ke.r-ke.l,ke.h=ke.b-ke.t,de&&(fe=!0),e._dragged=fe,IP(K,J,ke,W,le,je),Ze(),e.emit("plotly_relayouting",N),le=!0}function Ze(){N={},(de==="xy"||de==="x")&&(B7(m,ke.l/x,ke.r/x,N,A.xaxes),Qe("x",N)),(de==="xy"||de==="y")&&(B7(b,(_-ke.b)/_,(_-ke.t)/_,N,A.yaxes),Qe("y",N))}function er(){Ze(),I7(e),Te(),OP(e)}var Je=[0,0,x,_],tr=null,ze=O7.REDRAWDELAY,lr=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function dr(Ce){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(xe(),e._transitioningWithDuration){Ce.preventDefault(),Ce.stopPropagation();return}re(),clearTimeout(tr);var He=-Ce.deltaY;if(isFinite(He)||(He=Ce.wheelDelta/10),!isFinite(He)){il.log("Did not find wheel motion attributes: ",Ce);return}e._fullLayout._replotting=!0;var cr=Math.exp(-Math.min(Math.max(He,-20),20)/200),Mr=lr.draglayer.select(".nsewdrag").node().getBoundingClientRect(),vr=(Ce.clientX-Mr.left)/Mr.width,kr=(Mr.bottom-Ce.clientY)/Mr.height,Er;function jr(et,nr,Cr){if(et.fixedrange)return;var ar=il.simpleMap(et.range,et.r2l),Fr=ar[0]+(ar[1]-ar[0])*nr;function Wr(Br){return et.l2r(Fr+(Br-Fr)*Cr)}et.range=ar.map(Wr)}if(z){for(l||(vr=.5),Er=0;Er<m.length;Er++)jr(m[Er],vr,cr);Qe("x"),Je[2]*=cr,Je[0]+=Je[2]*vr*(1/cr-1)}if(I){for(o||(kr=.5),Er=0;Er<b.length;Er++)jr(b[Er],kr,cr);Qe("y"),Je[3]*=cr,Je[1]+=Je[3]*(1-kr)*(1/cr-1)}Ue(Je),mr(),e.emit("plotly_relayouting",N),tr=setTimeout(function(){e._fullLayout&&(Je=[0,0,x,_],Te())},ze),Ce.preventDefault()}o.length*l.length!==1&&UP(ie,dr);function Ar(Ce,He){if(Ce=Ce*Q,He=He*ee,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,M==="ew"||E==="ns"){var cr=M?-Ce:0,Mr=E?-He:0;if(T.isSubplotConstrained){if(M&&E){var vr=(Ce/x-He/_)/2;Ce=vr*x,He=-vr*_,cr=-Ce,Mr=-He}E?cr=-Mr*x/_:Mr=-cr*_/x}M&&(FP(m,Ce),Qe("x")),E&&(FP(b,He),Qe("y")),Ue([cr,Mr,x,_]),mr(),e.emit("plotly_relayouting",N);return}function kr(Wr,Br,Zr){for(var Ae=1-Br,Be,or,hr=0;hr<Wr.length;hr++){var Dt=Wr[hr];if(!Dt.fixedrange){Be=Dt,or=Dt._rl[Ae]+(Dt._rl[Br]-Dt._rl[Ae])/r0e(Zr/Dt._length);var Wt=Dt.l2r(or);Wt!==!1&&Wt!==void 0&&(Dt.range[Br]=Wt)}}return Be._length*(Be._rl[Br]-or)/(Be._rl[Br]-Be._rl[Ae])}var Er=M==="w"==(E==="n")?1:-1;if(M&&E&&(A.isSubplotConstrained||T.isSubplotConstrained)){var jr=(Ce/x+Er*He/_)/2;Ce=jr*x,He=Er*jr*_}var et,nr;if(M==="w"?Ce=kr(m,0,Ce):M==="e"?Ce=kr(m,1,-Ce):M||(Ce=0),E==="n"?He=kr(b,1,He):E==="s"?He=kr(b,0,-He):E||(He=0),et=M==="w"?Ce:0,nr=E==="n"?He:0,A.isSubplotConstrained&&!T.isSubplotConstrained||T.isSubplotConstrained&&M&&E&&Er>0){var Cr;if(T.isSubplotConstrained||!M&&E.length===1){for(Cr=0;Cr<m.length;Cr++)m[Cr].range=m[Cr]._r.slice(),R7(m[Cr],1-He/_);Ce=He*x/_,et=Ce/2}if(T.isSubplotConstrained||!E&&M.length===1){for(Cr=0;Cr<b.length;Cr++)b[Cr].range=b[Cr]._r.slice(),R7(b[Cr],1-Ce/x);He=Ce*_/x,nr=He/2}}(!T.isSubplotConstrained||!E)&&Qe("x"),(!T.isSubplotConstrained||!M)&&Qe("y");var ar=x-Ce,Fr=_-He;T.isSubplotConstrained&&!(M&&E)&&(M?(nr=et?0:Ce*_/x,Fr=ar*_/x):(et=nr?0:He*x/_,ar=Fr*x/_)),Ue([et,nr,ar,Fr]),mr(),e.emit("plotly_relayouting",N)}function Qe(Ce,He){for(var cr=T.isSubplotConstrained?{x:b,y:m}[Ce]:T[Ce+"axes"],Mr=T.isSubplotConstrained?{x:m,y:b}[Ce]:[],vr=0;vr<cr.length;vr++){var kr=cr[vr],Er=kr._id,jr=T.xLinks[Er]||T.yLinks[Er],et=Mr[0]||h[jr]||p[jr];et&&(He?(He[kr._name+".range[0]"]=He[et._name+".range[0]"],He[kr._name+".range[1]"]=He[et._name+".range[1]"]):kr.range=et.range.slice())}}function mr(){var Ce=[],He;function cr(Er){for(He=0;He<Er.length;He++)Er[He].fixedrange||Ce.push(Er[He]._id)}function Mr(Er,jr){for(He=0;He<Er.length;He++){var et=Er[He],nr=et[jr],Cr=nr._id;!et.fixedrange&&nr.tickmode==="sync"&&!Ce.includes(Cr)&&Ce.push(Cr)}}for(z&&(cr(m),cr(A.xaxes),cr(T.xaxes),Mr(r.overlays,"xaxis")),I&&(cr(b),cr(A.yaxes),cr(T.yaxes),Mr(r.overlays,"yaxis")),N={},He=0;He<Ce.length;He++){var vr=Ce[He],kr=N7(e,vr);kP.drawOne(e,kr,{skipTitle:!0}),N[kr._name+".range[0]"]=kr.range[0],N[kr._name+".range[1]"]=kr.range[1]}kP.redrawComponents(e,Ce)}function qr(){if(!e._transitioningWithDuration){var Ce=e._context.doubleClick,He=[];M&&(He=He.concat(m)),E&&(He=He.concat(b)),T.xaxes&&(He=He.concat(T.xaxes)),T.yaxes&&(He=He.concat(T.yaxes));var cr={},Mr,vr;if(Ce==="reset+autosize")for(Ce="autosize",vr=0;vr<He.length;vr++){Mr=He[vr];var kr=Mr._rangeInitial0,Er=Mr._rangeInitial1,jr=kr!==void 0||Er!==void 0;if(jr&&(kr!==void 0&&kr!==Mr.range[0]||Er!==void 0&&Er!==Mr.range[1])||!jr&&Mr.autorange!==!0){Ce="reset";break}}if(Ce==="autosize")for(vr=0;vr<He.length;vr++)Mr=He[vr],Mr.fixedrange||(cr[Mr._name+".autorange"]=!0);else if(Ce==="reset"){for((M||A.isSubplotConstrained)&&(He=He.concat(A.xaxes)),E&&!A.isSubplotConstrained&&(He=He.concat(A.yaxes)),A.isSubplotConstrained&&(M?E||(He=He.concat(b)):He=He.concat(m)),vr=0;vr<He.length;vr++)if(Mr=He[vr],!Mr.fixedrange){var et=Mr._name,nr=Mr._autorangeInitial;Mr._rangeInitial0===void 0&&Mr._rangeInitial1===void 0?cr[et+".autorange"]=!0:Mr._rangeInitial0===void 0?(cr[et+".autorange"]=nr,cr[et+".range"]=[null,Mr._rangeInitial1]):Mr._rangeInitial1===void 0?(cr[et+".range"]=[Mr._rangeInitial0,null],cr[et+".autorange"]=nr):cr[et+".range"]=[Mr._rangeInitial0,Mr._rangeInitial1]}}e.emit("plotly_doubleclick",null),Cg.call("_guiRelayout",e,cr)}}function Te(){Ue([0,0,x,_]),il.syncOrAsync([Zue.previousPromises,function(){e._fullLayout._replotting=!1,Cg.call("_guiRelayout",e,N)}],e)}function Ue(Ce){var He=e._fullLayout,cr=He._plots,Mr=He._subplots.cartesian,vr,kr,Er,jr;if(H&&Cg.subplotsRegistry.splom.drag(e),X){for(vr=0;vr<Mr.length;vr++)if(kr=cr[Mr[vr]],Er=kr.xaxis,jr=kr.yaxis,kr._scene){Er.limitRange&&Er.limitRange(),jr.limitRange&&jr.limitRange();var et=il.simpleMap(Er.range,Er.r2l),nr=il.simpleMap(jr.range,jr.r2l);kr._scene.update({range:[et[0],nr[0],et[1],nr[1]]})}}if((H||X)&&(jue(e),Wue(e)),V){var Cr=Ce[2]/c._length,ar=Ce[3]/d._length;for(vr=0;vr<Mr.length;vr++){kr=cr[Mr[vr]],Er=kr.xaxis,jr=kr.yaxis;var Fr=(z||T.isSubplotConstrained)&&!Er.fixedrange&&h[Er._id],Wr=(I||T.isSubplotConstrained)&&!jr.fixedrange&&p[jr._id],Br,Zr,Ae,Be;if(Fr?(Br=Cr,Ae=l||T.isSubplotConstrained?Ce[0]:Nr(Er,Br)):T.xaHash[Er._id]?(Br=Cr,Ae=Ce[0]*Er._length/c._length):T.yaHash[Er._id]?(Br=ar,Ae=E==="ns"?-Ce[1]*Er._length/d._length:Nr(Er,Br,{n:"top",s:"bottom"}[E])):(Br=_r(Er,Cr,ar),Ae=Pr(Er,Br)),Br>1&&(Er.maxallowed!==void 0&&z===(Er.range[0]<Er.range[1]?"e":"w")||Er.minallowed!==void 0&&z===(Er.range[0]<Er.range[1]?"w":"e"))&&(Br=1,Ae=0),Wr?(Zr=ar,Be=o||T.isSubplotConstrained?Ce[1]:Nr(jr,Zr)):T.yaHash[jr._id]?(Zr=ar,Be=Ce[1]*jr._length/d._length):T.xaHash[jr._id]?(Zr=Cr,Be=M==="ew"?-Ce[0]*jr._length/c._length:Nr(jr,Zr,{e:"right",w:"left"}[M])):(Zr=_r(jr,Cr,ar),Be=Pr(jr,Zr)),Zr>1&&(jr.maxallowed!==void 0&&I===(jr.range[0]<jr.range[1]?"n":"s")||jr.minallowed!==void 0&&I===(jr.range[0]<jr.range[1]?"s":"n"))&&(Zr=1,Be=0),!(!Br&&!Zr)){Br||(Br=1),Zr||(Zr=1);var or=Er._offset-Ae/Br,hr=jr._offset-Be/Zr;kr.clipRect.call(G0.setTranslate,Ae,Be).call(G0.setScale,Br,Zr),kr.plot.call(G0.setTranslate,or,hr).call(G0.setScale,1/Br,1/Zr),(Br!==kr.xScaleFactor||Zr!==kr.yScaleFactor)&&(G0.setPointGroupScale(kr.zoomScalePts,Br,Zr),G0.setTextPointsScale(kr.zoomScaleTxt,Br,Zr)),G0.hideOutsideRangePoints(kr.clipOnAxisFalseTraces,kr),kr.xScaleFactor=Br,kr.yScaleFactor=Zr}}}}function _r(Ce,He,cr){return Ce.fixedrange?0:z&&A.xaHash[Ce._id]?He:I&&(A.isSubplotConstrained?A.xaHash:A.yaHash)[Ce._id]?cr:0}function Pr(Ce,He){return He?(Ce.range=Ce._r.slice(),R7(Ce,He),Nr(Ce,He)):0}function Nr(Ce,He,cr){return Ce._length*(1-He)*Xue[cr||Ce.constraintoward||"middle"]}return ie}function RP(e,r,t,a){var n=il.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(Gue,a),n.node()}function zP(e,r,t,a,n,i,o){var l=RP(e,"rect",r,t);return H7.select(l).call(G0.setRect,a,n,i,o),l}function DP(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function e0e(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,TP("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,TP("."+String(n)+"g")(t))}function B7(e,r,t,a,n){for(var i=0;i<e.length;i++){var o=e[i];if(!o.fixedrange)if(o.rangebreaks){var l=o._id.charAt(0)==="y",s=l?1-r:r,u=l?1-t:t;a[o._name+".range[0]"]=o.l2r(o.p2l(s*o._length)),a[o._name+".range[1]"]=o.l2r(o.p2l(u*o._length))}else{var f=o._rl[0],c=o._rl[1]-f;a[o._name+".range[0]"]=o.l2r(f+c*r),a[o._name+".range[1]"]=o.l2r(f+c*t)}}if(n&&n.length){var d=(r+(1-t))/2;B7(n,d,1-d,a,[])}}function FP(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 r0e(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function t0e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function NP(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",qP(t,a)).attr("d",n+"Z")}function BP(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:z7.background,stroke:z7.defaultLine,"stroke-width":1,opacity:0}).attr("transform",qP(r,t)).attr("d","M0,0Z")}function IP(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"),HP(e,r,n,i)}function HP(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 I7(e){H7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function OP(e){SP&&e.data&&e._context.showTips&&(il.notifier(il._(e,"Double-click to zoom back out"),"long",e),SP=!1)}function a0e(e,r){return"M"+(e.l-.5)+","+(r-Oi-.5)+"h-3v"+(2*Oi+1)+"h3ZM"+(e.r+.5)+","+(r-Oi-.5)+"h3v"+(2*Oi+1)+"h-3Z"}function n0e(e,r){return"M"+(r-Oi-.5)+","+(e.t-.5)+"v-3h"+(2*Oi+1)+"v3ZM"+(r-Oi-.5)+","+(e.b+.5)+"v3h"+(2*Oi+1)+"v-3Z"}function Dg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Oi)/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 EP(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,d=(n||{}).xaHash,h=(n||{}).yaHash,p=0;p<r.length;p++){var m=r[p];for(s in t)if(m[s]){for(f in m)!(n&&(d[f]||h[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(o[f]=s);for(u in a)!(n&&(d[u]||h[u]))&&m[u]&&(i=!0)}for(u in a)if(m[u])for(c in m)!(n&&(d[c]||h[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(l[c]=u)}i&&(il.extendFlat(o,l),l={});var b={},y=[];for(f in o){var C=N7(e,f);y.push(C),b[C._id]=C}var x={},_=[];for(c in l){var A=N7(e,c);_.push(A),x[A._id]=A}return{xaHash:b,yaHash:x,xaxes:y,yaxes:_,xLinks:o,yLinks:l,isSubplotConstrained:i}}function UP(e,r){if(!Hue)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 LP(e){var r=[];for(var t in e)r.push(e[t]);return r}GP.exports={makeDragBox:Que,makeDragger:RP,makeRectDragger:zP,makeZoombox:NP,makeCorners:BP,updateZoombox:IP,xyCorners:Dg,transitionZoombox:HP,removeZoombox:I7,showDoubleClickNotifier:OP,attachWheelEventHandler:UP}});var U7=oe(Eg=>{"use strict";var i0e=Lt(),Fg=Wl(),o0e=el(),l0e=z0(),$l=YP().makeDragBox,Gn=(Hn(),xr(In)).DRAGGERSIZE;Eg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){i0e.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=$l(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(d){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Fg.hover(r,d,i)},Fg.hover(r,d,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(d){r._dragging||(r._fullLayout._hoversubplot=null,o0e.unhover(r,d))},r._context.showAxisDragHandles&&($l(r,o,l._offset-Gn,s._offset-Gn,Gn,Gn,"n","w"),$l(r,o,l._offset+l._length,s._offset-Gn,Gn,Gn,"n","e"),$l(r,o,l._offset-Gn,s._offset+s._length,Gn,Gn,"s","w"),$l(r,o,l._offset+l._length,s._offset+s._length,Gn,Gn,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Gn),$l(r,o,l._offset+l._length*.1,f,l._length*.8,Gn,"","ew"),$l(r,o,l._offset,f,l._length*.1,Gn,"","w"),$l(r,o,l._offset+l._length*.9,f,l._length*.1,Gn,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Gn),$l(r,o,c,s._offset+s._length*.1,Gn,s._length*.8,"ns",""),$l(r,o,c,s._offset+s._length*.9,Gn,s._length*.1,"s",""),$l(r,o,c,s._offset,Gn,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Fg.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Fg.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Eg.updateFx(r)}};Eg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";l0e(r._draggers,t)}});var jP=oe((k7e,XP)=>{"use strict";var VP=_t();XP.exports=function(r){for(var t=VP.layoutArrayContainers,a=VP.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 ZP=oe(Dd=>{"use strict";var s0e=d0(),G7=cp(),Sd=Cu(),u0e=D5().sorterAsc,Y7=_t();Dd.containerArrayMatch=jP();var f0e=Dd.isAddVal=function(r){return r==="add"||s0e(r)},WP=Dd.isRemoveVal=function(r){return r===null||r==="remove"};Dd.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=Y7.getComponentMethod(o,"supplyLayoutDefaults"),s=Y7.getComponentMethod(o,"draw"),u=Y7.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===G7||s===G7,c=r.layout,d=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Sd.warn("Full array edits are incompatible with other edits",o);var h=a[""][""];if(WP(h))t.set(null);else if(Array.isArray(h))t.set(h);else return Sd.warn("Unrecognized full array edit value",o,h),!0;return f?!1:(l(c,d),s(r),!0)}var p=Object.keys(a).map(Number).sort(u0e),m=t.get(),b=m||[],y=i(d,o).get(),C=[],x=-1,_=b.length,A,T,M,E,P,z,I,X;for(A=0;A<p.length;A++){if(M=p[A],E=a[M],P=Object.keys(E),z=E[""],I=f0e(z),M<0||M>b.length-(I?0:1)){Sd.warn("index out of range",o,M);continue}if(z!==void 0)P.length>1&&Sd.warn("Insertion & removal are incompatible with edits to the same index.",o,M),WP(z)?C.push(M):I?(z==="add"&&(z={}),b.splice(M,0,z),y&&y.splice(M,0,{})):Sd.warn("Unrecognized full object edit value",o,M,z),x===-1&&(x=M);else for(T=0;T<P.length;T++)X=o+"["+M+"].",i(b[M],P[T],X).set(E[P[T]])}for(A=C.length-1;A>=0;A--)b.splice(C[A],1),y&&y.splice(C[A],1);if(b.length?m||t.set(b):t.set(null),f)return!1;if(l(c,d),u!==G7){var H;if(x===-1)H=p;else{for(_=Math.max(b.length,_),H=[],A=0;A<p.length&&(M=p[A],!(M>=x));A++)H.push(M);for(A=x;A<_;A++)H.push(A)}for(A=0;A<H.length;A++)u(r,H[A])}else s(r);return!0}});var tR=oe(ol=>{"use strict";var QP=Qt(),eR=_t(),Ei=pr(),Fd=Ln(),rR=En(),Ed=rR.cleanId,c0e=rR.getFromTrace,V7=eR.traceIs,v0e=["x","y","z"];ol.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ei.log("Clearing previous rejected promises from queue."),e._promises=[]};ol.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=(Fd.subplotsRegistry.cartesian||{}).attrRegex,n=(Fd.subplotsRegistry.polar||{}).attrRegex,i=(Fd.subplotsRegistry.ternary||{}).attrRegex,o=(Fd.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=Ed(u.anchor)),u.overlaying&&(u.overlaying=Ed(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,Lg(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];Ei.isPlainObject(c)&&(d2(c,"xref"),d2(c,"yref"))}var d=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<d;r++){var h=e.shapes[r];Ei.isPlainObject(h)&&(d2(h,"xref",!0),d2(h,"yref",!0))}var p=Array.isArray(e.images)?e.images.length:0;for(r=0;r<p;r++){var m=e.images[r];Ei.isPlainObject(m)&&(d2(m,"xref"),d2(m,"yref"))}var b=e.legend;return b&&(b.x>3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&ol.cleanLayout(e.template.layout),e};function d2(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Ed(a,n,!0))}ol.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"&&ol.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=Ed(t.xaxis,"x")),t.yaxis&&(t.yaxis=Ed(t.yaxis,"y")),V7(t,"gl3d")&&t.scene&&(t.scene=Fd.subplotsRegistry.gl3d.cleanId(t.scene)),!V7(t,"pie-like")&&!V7(t,"bar-like"))if(Array.isArray(t.textposition))for(a=0;a<t.textposition.length;a++)t.textposition[a]=JP(t.textposition[a]);else t.textposition&&(t.textposition=JP(t.textposition));var n=eR.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"&&Ei.isPlainObject(t.contours)){var l=["x","y","z"];for(a=0;a<l.length;a++){var s=t.contours[l[a]];Ei.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=$P(t.increasing),d=$P(t.decreasing);if(c!==!1&&d!==!1){var h=d0e(c,d,u,f);h&&(t.name=h)}else(c||d)&&!t.name&&(t.name=c||d)}Lg(t,"line")&&delete t.line,"marker"in t&&(Lg(t.marker,"line")&&delete t.marker.line,Lg(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function $P(e){if(!Ei.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function d0e(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 JP(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 Lg(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}ol.swapXYData=function(e){var r;if(Ei.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);Ei.swapAttrs(e,["error_?.copy_ystyle"]),a&&Ei.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("+")}};ol.coerceTraceIndices=function(e,r){if(QP(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++)Ei.isIndex(r[a],e.data.length)?t.push(r[a]):Ei.warn("trace index (",r[a],") is not a number or is out of bounds");return t}return r};ol.manageArrayContainers=function(e,r,t){var a=e.obj,n=e.parts,i=n.length,o=n[i-1],l=QP(o);if(l&&r===null){var s=n.slice(0,i-1).join("."),u=Ei.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 h0e=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function KP(e){var r=e.search(h0e);if(r>0)return e.slice(0,r)}ol.hasParent=function(e,r){for(var t=KP(r);t;){if(t in e)return!0;t=KP(t)}return!1};ol.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=c0e(e,n,v0e[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&&Ei.nestedProperty(e.layout,u).set(null)}}};var X7=(e,r)=>{let t=(...a)=>a.every(n=>Ei.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)?X7(n,i):!1))return!1}return!0}else if([e,r].every(a=>Ei.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)?X7(n,i):!1))return!1}return!0}return!1};ol.collectionsAreEqual=X7});var J7=oe(Yt=>{"use strict";var zg=Lt(),p0e=Qt(),m0e=U5(),Gr=pr(),Ca=Gr.nestedProperty,W7=Lv(),Ui=Vk(),ll=_t(),Gg=H1(),gt=Ln(),Li=Ga(),g0e=hb(),y0e=Yl(),Pg=da(),b0e=Nt(),_0e=U7().initInteractions,x0e=(ec(),xr(Qf)),w0e=Ou().clearOutline,lR=m0().dfltConfig,qg=ZP(),wn=tR(),ha=vg(),Y0=Zo(),A0e=(Hn(),xr(In)).AX_NAME_PATTERN,j7=0,aR=5;function M0e(e,r,t,a){var n;if(e=Gr.getGraphDiv(e),W7.init(e),Gr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=W7.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!Gr.isPlotDiv(e)&&Gr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Yt.addFrames(e,n)}uR(e,a),t||(t={}),zg.select(e).classed("js-plotly-plot",!0),Pg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(wn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=wn.cleanLayout(t)),gt.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(W0e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Pg.initGradients(e),Pg.initPatterns(e),s&&Li.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&gt.doCalcdata(e);for(var d=0;d<e.calcdata.length;d++)e.calcdata[d][0].trace=e._fullData[d];if(e._context.responsive){if(!e._clearResponsive){let E=()=>{Gr.isHidden(e)||gt.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",E),e._clearResponsive=()=>window.removeEventListener("resize",E);else{let P=e.offsetWidth,z=e.offsetHeight,I=new ResizeObserver(()=>{let X=e.offsetWidth,H=e.offsetHeight,V=Math.abs(X-P)>1||Math.abs(H-z)>1;P=X,z=H,V&&X&&H&&E()});I.observe(e),e._clearResponsive=()=>I.disconnect()}}}else Gr.clearResponsive(e);let h=document.fonts?[...document.fonts].filter(E=>E.status!=="loaded"):[];var p=Gr.extendFlat({},u._size),m=0;function b(){for(var E=u._basePlotModules,P=0;P<E.length;P++)E[P].drawFramework&&E[P].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(H){return H.key}),u._glcanvas.enter().append("canvas").attr("class",function(H){return"gl-canvas gl-canvas-"+H.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var z=e._context.plotGlPixelRatio;if(u._glcanvas){u._glcanvas.attr("width",u.width*z).attr("height",u.height*z).style("width",u.width+"px").style("height",u.height+"px");var I=u._glcanvas.data()[0].regl;if(I&&(Math.floor(u.width*z)!==I._gl.drawingBufferWidth||Math.floor(u.height*z)!==I._gl.drawingBufferHeight)){var X="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(m)Gr.error(X);else return Gr.log(X+" Clearing graph and plotting again."),gt.cleanPlot([],{},e._fullData,u),gt.supplyDefaults(e),u=e._fullLayout,gt.doCalcdata(e),m++,b()}}return u.modebar.orientation==="h"?u._modebardiv.style("height",null).style("width","100%"):u._modebardiv.style("width",null).style("height",u.height+"px"),gt.previousPromises(e)}function y(){if(gt.clearAutoMarginIds(e),ha.drawMarginPushers(e),Li.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&gt.allowAutoMargin(e,"title.automargin"),u._has("pie"))for(var E=e._fullData,P=0;P<E.length;P++){var z=E[P];z.type==="pie"&&z.automargin&&gt.allowAutoMargin(e,"pie."+z.uid+".automargin")}return gt.doAutoMargin(e),gt.previousPromises(e)}function C(){if(gt.didMarginChange(p,u._size))return y()}function x(){if(!c){_();return}return Gr.syncOrAsync([ll.getComponentMethod("shapes","calcAutorange"),ll.getComponentMethod("annotations","calcAutorange"),_],e)}function _(){e._transitioning||(ha.doAutoRangeAndConstraints(e),s&&Li.saveRangeInitial(e),ll.getComponentMethod("rangeslider","calcAutorange")(e))}function A(){return Li.draw(e,s?"":"redraw")}var T=[gt.previousPromises,l,b,y,C];f&&T.push(x),T.push(ha.layoutStyles),f&&T.push(A,function(P){var z=P._fullLayout._insideTickLabelsUpdaterange;if(z)return P._fullLayout._insideTickLabelsUpdaterange=void 0,Ld(P,z).then(function(){Li.saveRangeInitial(P,!0)})}),T.push(ha.drawData,ha.finalDraw,_0e,gt.rehover,gt.redrag,gt.reselect,gt.doAutoMargin,gt.previousPromises);var M=Gr.syncOrAsync(T,e);return(!M||!M.then)&&(M=Promise.resolve()),M.then(function(){return T0e(e,h),qd(e),e})}function T0e(e,r){return O_(this,null,function*(){let t=r.filter(n=>["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,Pg.savedBBoxes={},Yt._doPlot(e))})}function qd(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function k0e(e){return Gr.extendFlat(lR,e)}function sR(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Gr.error(t)}}function C0e(e,r){var t=b0e.combine(r,"white");sR(e,t)}function uR(e,r){if(!e._context){e._context=Gr.extendDeep({},lR);var t=zg.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]=C0e: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"&&!m0e&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=sR),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 S0e(e){if(e=Gr.getGraphDiv(e),!Gr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return wn.cleanData(e.data),wn.cleanLayout(e.layout),e.calcdata=void 0,Yt._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function D0e(e,r,t,a){return e=Gr.getGraphDiv(e),gt.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),gt.purge(e),Yt._doPlot(e,r,t,a)}function Ng(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 Bg(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 fR(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]),Bg(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Bg(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function F0e(e,r,t){var 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 E0e(e,r,t,a){var n=Gr.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!Gr.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");Bg(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 L0e(e,r,t,a){var n=Gr.isPlainObject(a),i=[],o,l,s,u,f;Array.isArray(t)||(t=[t]),t=Ng(t,e.data.length-1);for(var c in r)for(var d=0;d<t.length;d++){if(o=e.data[t[d]],s=Ca(o,c),l=s.get(),u=r[c][d],!Gr.isArrayOrTypedArray(u))throw new Error("attribute: "+c+" index: "+d+" must be an array");if(!Gr.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][d]:a,p0e(f)||(f=-1),i.push({prop:s,target:l,insert:u,maxp:Math.floor(f)})}return i}function cR(e,r,t,a,n){E0e(e,r,t,a);for(var i=L0e(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 vR(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function dR(e,r,t,a){e=Gr.getGraphDiv(e);function n(s,u,f){var c,d;if(Gr.isTypedArray(s))if(f<0){var h=new s.constructor(0),p=vR(s,u);f<0?(c=p,d=h):(c=h,d=p)}else if(c=new s.constructor(f),d=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),d.set(s);else if(f<u.length){var m=u.length-f;c.set(u.subarray(m)),d.set(s),d.set(u.subarray(0,m),s.length)}else{var b=f-u.length,y=s.length-b;c.set(s.subarray(y)),c.set(u,b),d.set(s.subarray(0,y))}else c=s.concat(u),d=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,d]}var i=cR(e,r,t,a,n),o=Yt.redraw(e),l=[e,i.update,t,i.maxPoints];return Ui.add(e,Yt.prependTraces,l,dR,arguments),o}function hR(e,r,t,a){e=Gr.getGraphDiv(e);function n(s,u,f){var c,d;if(Gr.isTypedArray(s))if(f<=0){var h=new s.constructor(0),p=vR(u,s);f<0?(c=p,d=h):(c=h,d=p)}else if(c=new s.constructor(f),d=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),d.set(s);else if(f<u.length){var m=u.length-f;c.set(u.subarray(0,m)),d.set(u.subarray(m)),d.set(s,m)}else{var b=f-u.length;c.set(u),c.set(s.subarray(0,b),u.length),d.set(s.subarray(b))}else c=u.concat(s),d=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,d]}var i=cR(e,r,t,a,n),o=Yt.redraw(e),l=[e,i.update,t,i.maxPoints];return Ui.add(e,Yt.extendTraces,l,hR,arguments),o}function pR(e,r,t){e=Gr.getGraphDiv(e);var a=[],n=Yt.deleteTraces,i=pR,o=[e,a],l=[e,r],s,u;for(F0e(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return Gr.extendFlat({},f)}),wn.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=Yt.redraw(e),Ui.add(e,n,o,i,l),u;Array.isArray(t)||(t=[t]);try{fR(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return Ui.startSequence(e),Ui.add(e,n,o,i,l),u=Yt.moveTraces(e,a,t),Ui.stopSequence(e),u}function mR(e,r){e=Gr.getGraphDiv(e);var t=[],a=Yt.addTraces,n=mR,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]),Bg(e,r,"indices"),r=Ng(r,e.data.length-1),r.sort(Gr.sorterDes),l=0;l<r.length;l+=1)s=e.data.splice(r[l],1)[0],t.push(s);var u=Yt.redraw(e);return Ui.add(e,a,i,n,o),u}function Z7(e,r,t){e=Gr.getGraphDiv(e);var a=[],n=[],i=Z7,o=Z7,l=[e,t,r],s=[e,r,t],u;if(fR(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=Ng(r,e.data.length-1),t=Ng(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,d){return c.newIndex-d.newIndex}),u=0;u<n.length;u+=1)a.splice(n[u].newIndex,0,n[u].trace);e.data=a;var f=Yt.redraw(e);return Ui.add(e,i,l,o,s),f}function Ig(e,r,t,a){e=Gr.getGraphDiv(e),wn.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(Gr.isPlainObject(r))n=Gr.extendFlat({},r),a===void 0&&(a=t);else return Gr.warn("Restyle fail.",r,t,a),Promise.reject();Object.keys(n).length&&(e.changed=!0);var i=wn.coerceTraceIndices(e,a),o=gR(e,n,i),l=o.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&wn.clearAxisTypes(e,i,{});var s=[];l.fullReplot?s.push(Yt._doPlot):(s.push(gt.previousPromises),gt.supplyDefaults(e),l.markerSize&&(gt.doCalcdata(e),Yg(s)),l.style&&s.push(ha.doTraceStyle),l.colorbars&&s.push(ha.doColorBars),s.push(qd)),s.push(gt.rehover,gt.redrag,gt.reselect),Ui.add(e,Ig,[e,o.undoit,o.traces],Ig,[e,o.redoit,o.traces]);var u=Gr.syncOrAsync(s,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e.emit("plotly_restyle",o.eventData),e})}function Uu(e){return e===void 0?null:e}function Rg(e,r){return r?function(t,a,n){var i=Ca(t,a),o=i.set;return i.set=function(l){var s=(n||"")+a;Hg(s,i.get(),l,e),o(l)},i}:Ca}function Hg(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++)Hg(e+"["+l+"]",n[l],i[l],a);else if(Gr.isPlainObject(r)||Gr.isPlainObject(t)){var s=Gr.isPlainObject(r)?r:{},u=Gr.isPlainObject(t)?t:{},f=Gr.extendFlat({},s,u);for(var c in f)Hg(e+"."+c,s[c],u[c],a)}else a[e]===void 0&&(a[e]=Uu(r))}function q0e(e,r,t){for(var a in t){var n=Ca(e,a);Hg(a,n.get(),t[a],r)}}function gR(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,o=a._guiEditing,l=Rg(a._preGUI,o),s=Gr.extendDeepAll({},r),u,f=Y0.traceFlags(),c={},d={},h;function p(){return t.map(function(){})}function m(K){var J=Li.id2name(K);h.indexOf(J)===-1&&h.push(J)}function b(K){return"LAYOUT"+K+".autorange"}function y(K){return"LAYOUT"+K+".range"}function C(K,J,fe){if(Array.isArray(K)){K.forEach(function(er){C(er,J,fe)});return}if(!(K in r||wn.hasParent(r,K))){var be;if(K.slice(0,6)==="LAYOUT")be=l(e.layout,K.replace("LAYOUT",""));else{var Ne=t[fe],Ze=a._tracePreGUI[n[Ne].uid];be=Rg(Ze,o)(i[Ne],K)}K in d||(d[K]=p()),d[K][fe]===void 0&&(d[K][fe]=Uu(be.get())),J!==void 0&&be.set(J)}}function x(K){return function(J){return n[J][K]}}function _(K){return function(J,fe){return J===!1?n[t[fe]][K]:null}}for(var A in r){if(wn.hasParent(r,A))throw new Error("cannot set "+A+" and a parent attribute simultaneously");var T=r[A],M,E,P,z,I,X;if((A==="autobinx"||A==="autobiny")&&(A=A.charAt(A.length-1)+"bins",Array.isArray(T)?T=T.map(_(A)):T===!1?T=t.map(x(A)):T=null),c[A]=T,A.slice(0,6)==="LAYOUT"){P=l(e.layout,A.replace("LAYOUT","")),d[A]=[Uu(P.get())],P.set(Array.isArray(T)?T[0]:T),f.calc=!0;continue}for(d[A]=p(),u=0;u<t.length;u++){M=i[t[u]],E=n[t[u]];var H=a._tracePreGUI[E.uid];if(P=Rg(H,o)(M,A),z=P.get(),I=Array.isArray(T)?T[u%T.length]:T,I!==void 0){var V=P.parts[P.parts.length-1],N=A.slice(0,A.length-V.length-1),Q=N?N+".":"",ee=N?Ca(E,N).get():E;if(X=Gg.getTraceValObject(E,P.parts),X&&X.impliedEdits&&I!==null)for(var re in X.impliedEdits)C(Gr.relativeAttr(A,re),X.impliedEdits[re],u);else if((V==="thicknessmode"||V==="lenmode")&&z!==I&&(I==="fraction"||I==="pixels")&&ee){var ae=a._size,ie=ee.orient,ue=ie==="top"||ie==="bottom";if(V==="thicknessmode"){var xe=ue?ae.h:ae.w;C(Q+"thickness",ee.thickness*(I==="fraction"?1/xe:xe),u)}else{var De=ue?ae.w:ae.h;C(Q+"len",ee.len*(I==="fraction"?1/De:De),u)}}else if(A==="type"&&(I==="pie"!=(z==="pie")||I==="funnelarea"!=(z==="funnelarea"))){var Ye="x",Ee="y";(I==="bar"||z==="bar")&&M.orientation==="h"&&(Ye="y",Ee="x"),Gr.swapAttrs(M,["?"],"labels",Ye),Gr.swapAttrs(M,["d?","?0"],"label",Ye),Gr.swapAttrs(M,["?"],"values",Ee),z==="pie"||z==="funnelarea"?(Ca(M,"marker.color").set(Ca(M,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):ll.traceIs(M,"cartesian")&&Ca(M,"marker.colors").set(Ca(M,"marker.color").get())}d[A][u]=Uu(z);var ke=["swapxy","swapxyaxes","orientation","orientationaxes"];if(ke.indexOf(A)!==-1){if(A==="orientation"){P.set(I);var je=M.x&&!M.y?"h":"v";if((P.get()||je)===E.orientation)continue}else A==="orientationaxes"&&(M.orientation={v:"h",h:"v"}[E.orientation]);wn.swapXYData(M),f.calc=f.clearAxisTypes=!0}else gt.dataArrayContainers.indexOf(P.parts[0])!==-1?(wn.manageArrayContainers(P,I,d),f.calc=!0):(X?X.arrayOk&&!ll.traceIs(E,"regl")&&(Gr.isArrayOrTypedArray(I)||Gr.isArrayOrTypedArray(z))?f.calc=!0:Y0.update(f,X):f.calc=!0,P.set(I))}}if(["swapxyaxes","orientationaxes"].indexOf(A)!==-1&&Li.swap(e,t),A==="orientationaxes"){var W=Ca(e.layout,"hovermode"),le=W.get();le==="x"?W.set("y"):le==="y"?W.set("x"):le==="x unified"?W.set("y unified"):le==="y unified"&&W.set("x unified")}if(["orientation","type"].indexOf(A)!==-1){for(h=[],u=0;u<t.length;u++){var de=i[t[u]];ll.traceIs(de,"cartesian")&&(m(de.xaxis||"x"),m(de.yaxis||"y"))}C(h.map(b),!0,0),C(h.map(y),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:d,redoit:c,traces:t,eventData:Gr.extendDeepNoArrays([],[s,t])}}function Ld(e,r,t){e=Gr.getGraphDiv(e),wn.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(Gr.isPlainObject(r))a=Gr.extendFlat({},r);else return Gr.warn("Relayout fail.",r,t),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=xR(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var o=[gt.previousPromises];i.layoutReplot?o.push(ha.layoutReplot):Object.keys(a).length&&(yR(e,i,n)||gt.supplyDefaults(e),i.legend&&o.push(ha.doLegend),i.layoutstyle&&o.push(ha.layoutStyles),i.axrange&&Yg(o,n.rangesAltered),i.ticks&&o.push(ha.doTicksRelayout),i.modebar&&o.push(ha.doModeBar),i.camera&&o.push(ha.doCamera),i.colorbars&&o.push(ha.doColorBars),o.push(qd)),o.push(gt.rehover,gt.redrag,gt.reselect),Ui.add(e,Ld,[e,n.undoit],Ld,[e,n.redoit]);var l=Gr.syncOrAsync(o,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function yR(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(h,p){return Gr.coerce(i,o,y0e,h,p)},s={};for(var u in t.rangesAltered){var f=Li.id2name(u);if(i=e.layout[f],o=a[f],g0e(i,o,l,s),o._matchGroup){for(var c in o._matchGroup)if(c!==u){var d=a[Li.id2name(c)];d.autorange=o.autorange,d.range=o.range.slice(),d._input.range=o.range.slice()}}}return!0}function Yg(e,r){var t=r?function(a){var n=[],i=!0;for(var o in r){var l=Li.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 Li.draw(a,n,{skipTitle:i})}:function(a){return Li.draw(a,"redraw")};e.push(w0e,ha.doAutoRangeAndConstraints,t,ha.drawData,ha.finalDraw)}var bR=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,_R=/^[xyz]axis[0-9]*\.autorange$/,P0e=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function xR(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=Rg(a._preGUI,n),o=Object.keys(r),l=Li.list(e),s=Gr.extendDeepAll({},r),u={},f,c,d;for(o=Object.keys(r),c=0;c<o.length;c++)if(o[c].indexOf("allaxes")===0){for(d=0;d<l.length;d++){var h=l[d]._id.slice(1),p=h.indexOf("scene")!==-1?h+".":"",m=o[c].replace("allaxes",p+l[d]._name);r[m]||(r[m]=r[o[c]])}delete r[o[c]]}var b=Y0.layoutFlags(),y={},C={};function x(er,Je){if(Array.isArray(er)){er.forEach(function(ze){x(ze,Je)});return}if(!(er in r||wn.hasParent(r,er))){var tr=i(t,er);er in C||(C[er]=Uu(tr.get())),Je!==void 0&&tr.set(Je)}}var _={},A;function T(er){var Je=Li.name2id(er.split(".")[0]);return _[Je]=1,Je}for(var M in r){if(wn.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");for(var E=i(t,M),P=r[M],z=E.parts.length,I=z-1;I>0&&typeof E.parts[I]!="string";)I--;var X=E.parts[I],H=E.parts[I-1]+"."+X,V=E.parts.slice(0,I).join("."),N=Ca(e.layout,V).get(),Q=Ca(a,V).get(),ee=E.get();if(P!==void 0){y[M]=P,C[M]=X==="reverse"?P:Uu(ee);var re=Gg.getLayoutValObject(a,E.parts);if(re&&re.impliedEdits&&P!==null)for(var ae in re.impliedEdits)x(Gr.relativeAttr(M,ae),re.impliedEdits[ae]);if(["width","height"].indexOf(M)!==-1)if(P){x("autosize",null);var ie=M==="height"?"width":"height";x(ie,a[ie])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")x("width",P?null:a.width),x("height",P?null:a.height);else if(H.match(bR))T(H),Ca(a,V+"._inputRange").set(null);else if(H.match(_R)){T(H),Ca(a,V+"._inputRange").set(null);var ue=Ca(a,V).get();ue._inputDomain&&(ue._input.domain=ue._inputDomain.slice())}else H.match(P0e)&&Ca(a,V+"._inputDomain").set(null);if(X==="type"){A=N;var xe=Q.type==="linear"&&P==="log",De=Q.type==="log"&&P==="linear";if(xe||De){if(!A||!A.range)x(V+".autorange",!0);else if(Q.autorange)xe&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Ye=A.range[0],Ee=A.range[1];xe?(Ye<=0&&Ee<=0&&x(V+".autorange",!0),Ye<=0?Ye=Ee/1e6:Ee<=0&&(Ee=Ye/1e6),x(V+".range[0]",Math.log(Ye)/Math.LN10),x(V+".range[1]",Math.log(Ee)/Math.LN10)):(x(V+".range[0]",Math.pow(10,Ye)),x(V+".range[1]",Math.pow(10,Ee)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[E.parts[0]]&&E.parts[1]==="radialaxis"&&delete a[E.parts[0]]._subplot.viewInitial["radialaxis.range"],ll.getComponentMethod("annotations","convertCoords")(e,Q,P,x),ll.getComponentMethod("images","convertCoords")(e,Q,P,x)}else x(V+".autorange",!0),x(V+".range",null);Ca(a,V+"._inputRange").set(null)}else if(X.match(A0e)){var ke=Ca(a,M).get(),je=(P||{}).type;(!je||je==="-")&&(je="linear"),ll.getComponentMethod("annotations","convertCoords")(e,ke,je,x),ll.getComponentMethod("images","convertCoords")(e,ke,je,x),!V&&ke&&P&&(P.range!==void 0||P.autorange!==void 0)&&(T(`${X}.range`),ke._inputRange=null)}var W=qg.containerArrayMatch(M);if(W){f=W.array,c=W.index;var le=W.property,de=re||{editType:"calc"};c!==""&&le===""&&(qg.isAddVal(P)?C[M]=null:qg.isRemoveVal(P)?C[M]=(Ca(t,f).get()||[])[c]:Gr.warn("unrecognized full object value",r)),Y0.update(b,de),u[f]||(u[f]={});var K=u[f][c];K||(K=u[f][c]={}),K[le]=P,delete r[M]}else X==="reverse"?(N.range?N.range.reverse():(x(V+".autorange",!0),N.range=[1,0]),Q.autorange?b.calc=!0:b.plot=!0):(M==="dragmode"&&(P===!1&&ee!==!1||P!==!1&&ee===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(P==="lasso"||P==="select")&&!(ee==="lasso"||ee==="select")?b.plot=!0:re?Y0.update(b,re):b.calc=!0,E.set(P))}}for(f in u){var J=qg.applyContainerArrayChanges(e,i(t,f),u[f],b,i);J||(b.plot=!0)}for(var fe in _){A=Li.getFromId(e,fe);var be=A&&A._constraintGroup;if(be){b.calc=!0;for(var Ne in be)_[Ne]||(Li.getFromId(e,Ne)._constraintShrinkable=!0)}}(wR(e)||r.height||r.width)&&(b.plot=!0);var Ze=a.shapes;for(c=0;c<Ze.length;c++)if(Ze[c].showlegend){b.calc=!0;break}return(b.plot||b.calc)&&(b.layoutReplot=!0),{flags:b,rangesAltered:_,undoit:C,redoit:y,eventData:s}}function wR(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&gt.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function Og(e,r,t,a){e=Gr.getGraphDiv(e),wn.clearPromiseQueue(e),Gr.isPlainObject(r)||(r={}),Gr.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=wn.coerceTraceIndices(e,a),i=gR(e,Gr.extendFlat({},r),n),o=i.flags,l=xR(e,Gr.extendFlat({},t)),s=l.flags;(o.calc||s.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&wn.clearAxisTypes(e,n,t);var u=[];s.layoutReplot?u.push(ha.layoutReplot):o.fullReplot?u.push(Yt._doPlot):(u.push(gt.previousPromises),yR(e,s,l)||gt.supplyDefaults(e),o.style&&u.push(ha.doTraceStyle),(o.colorbars||s.colorbars)&&u.push(ha.doColorBars),s.legend&&u.push(ha.doLegend),s.layoutstyle&&u.push(ha.layoutStyles),s.axrange&&Yg(u,l.rangesAltered),s.ticks&&u.push(ha.doTicksRelayout),s.modebar&&u.push(ha.doModeBar),s.camera&&u.push(ha.doCamera),u.push(qd)),u.push(gt.rehover,gt.redrag,gt.reselect),Ui.add(e,Og,[e,i.undoit,l.undoit,i.traces],Og,[e,i.redoit,l.redoit,i.traces]);var f=Gr.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 $7(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var R0e=[{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"}],z0e=[{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 nR(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 iR(e,r){var t=Ca(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=Ca(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function N0e(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function B0e(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 oR(e,r){var t=Gr.isPlainObject(e),a=Array.isArray(e);return t||a?(t&&Gr.isPlainObject(r)||a&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function I0e(e,r,t,a){var n=a._preGUI,i,o,l,s,u,f,c,d,h,p,m=[],b={},y={};for(i in n){if(u=nR(i,R0e),u){if(h=u.head,p=u.tail,o=u.attr||h+".uirevision",l=Ca(a,o).get(),s=l&&iR(o,r),s&&s===l){if(f=n[i],f===null&&(f=void 0),c=Ca(r,i),d=c.get(),oR(d,f)){d===void 0&&p==="autorange"&&m.push(h),c.set(Uu(Ca(a,i).get()));continue}else if(p==="autorange"||p.slice(0,6)==="range["){var C=n[h+".range[0]"],x=n[h+".range[1]"],_=n[h+".autorange"];if(_||_===null&&C===null&&x===null){if(!(h in b)){var A=Ca(r,h).get();b[h]=A&&(A.autorange||A.autorange!==!1&&(!A.range||A.range.length!==2))}if(b[h]){c.set(Uu(Ca(a,i).get()));continue}}}}}else Gr.warn("unrecognized GUI edit: "+i);delete n[i],u&&u.tail.slice(0,6)==="range["&&(y[u.head]=1)}for(var T=0;T<m.length;T++){var M=m[T];if(y[M]){var E=Ca(r,M).get();E&&delete E.autorange}}var P=a._tracePreGUI;for(var z in P){var I=P[z],X=null,H;for(i in I){if(!X){var V=N0e(z,t);if(V<0){delete P[z];break}H=t[V];var N=B0e(z,e,H.index);if(N<0){delete P[z];break}X=e[N]}if(u=nR(i,z0e),u){if(u.attr?(l=Ca(a,u.attr).get(),s=l&&iR(u.attr,r)):(l=H.uirevision,s=X.uirevision,s===void 0&&(s=r.uirevision)),s&&s===l&&(f=I[i],f===null&&(f=void 0),c=Ca(X,i),d=c.get(),oR(d,f))){c.set(Uu(Ca(H,i).get()));continue}}else Gr.warn("unrecognized GUI edit: "+i+" in trace uid "+z);delete I[i]}}}function H0e(e,r,t,a){var n,i;function o(){return Yt.addFrames(e,n)}e=Gr.getGraphDiv(e),wn.clearPromiseQueue(e);var l=e._fullData,s=e._fullLayout;if(!Gr.isPlotDiv(e)||!l||!s)i=Yt.newPlot(e,r,t,a);else{if(Gr.isPlainObject(r)){var u=r;r=u.data,t=u.layout,a=u.config,n=u.frames}var f=!1;if(a){let H=Gr.extendDeepAll({},e._context);e._context=void 0,uR(e,a),f=!wn.collectionsAreEqual(H,e._context)}if(f){let H=e._ev.eventNames().map(V=>[V,e._ev.listeners(V)]);i=Yt.newPlot(e,r,t,a).then(()=>{for(let[V,N]of H)N.forEach(Q=>e.on(V,Q));return Yt.react(e,r,t,a)})}else{e.data=r||[],wn.cleanData(e.data),e.layout=t||{},wn.cleanLayout(e.layout),I0e(e.data,e.layout,l,s),gt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,d=e._fullLayout,h=d.datarevision===void 0,p=d.transition,m=U0e(e,s,d,h,p),b=m.newDataRevision,y=O0e(e,l,c,h,p,b);if(wR(e)&&(m.layoutReplot=!0),y.calc||m.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(d),x=0;x<C.length;x++){var _=C[x],A=_.substring(0,5);if(A==="xaxis"||A==="yaxis"){var T=d[_]._emptyCategories;T&&T()}}}else gt.supplyDefaultsUpdateCalc(e.calcdata,c);var M=[];if(n&&(e._transitionData={},gt.createTransitionData(e),M.push(o)),d.transition&&(y.anim||m.anim))m.ticks&&M.push(ha.doTicksRelayout),gt.doCalcdata(e),ha.doAutoRangeAndConstraints(e),M.push(function(){return gt.transitionFromReact(e,y,m,s)});else if(y.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,M.push(Yt._doPlot);else{for(var E in m.arrays){var P=m.arrays[E];if(P.length){var z=ll.getComponentMethod(E,"drawOne");if(z!==Gr.noop)for(var I=0;I<P.length;I++)z(e,P[I]);else{var X=ll.getComponentMethod(E,"draw");if(X===Gr.noop)throw new Error("cannot draw components: "+E);X(e)}}}M.push(gt.previousPromises),y.style&&M.push(ha.doTraceStyle),(y.colorbars||m.colorbars)&&M.push(ha.doColorBars),m.legend&&M.push(ha.doLegend),m.layoutstyle&&M.push(ha.layoutStyles),m.axrange&&Yg(M),m.ticks&&M.push(ha.doTicksRelayout),m.modebar&&M.push(ha.doModeBar),m.camera&&M.push(ha.doCamera),M.push(qd)}M.push(gt.rehover,gt.redrag,gt.reselect),i=Gr.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 O0e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=Y0.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(h){var p=Gg.getTraceValObject(u,h);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},d={};for(s=0;s<r.length;s++)if(t[s]){if(u=t[s],d[u.uid])continue;d[u.uid]=1,Ug(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 U0e(e,r,t,a,n){var i=Y0.layoutFlags();i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0;function o(d){return Gg.getLayoutValObject(t,d)}for(var l in t){if(!l.startsWith("xaxis")&&!l.startsWith("yaxis")||!r[l])continue;var s=t[l].domain,u=r[l].domain,f=r[l]._inputDomain;r[l]._inputDomain&&(s[0]===f[0]&&s[1]===f[1]?t[l].domain=r[l].domain:(s[0]!==u[0]||s[1]!==u[1])&&(t[l]._inputDomain=null));let d=t[l].range,h=r[l].range,p=r[l]._inputRange;if(p&&d&&h){let m=d[0]===p[0]&&d[1]===p[1],b=d[0]===h[0]&&d[1]===h[1];!m&&!b&&(t[l]._inputRange=null)}}var c={getValObject:o,flags:i,immutable:a,transition:n,gd:e};return Ug(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 Ug(e,r,t,a){var n,i,o,l=a.getValObject,s=a.flags,u=a.immutable,f=a.inArray,c=a.arrayIndex;function d(){var V=n.editType;if(f&&V.indexOf("arraydraw")!==-1){Gr.pushUnique(s.arrays[f],c);return}Y0.update(s,n),V!=="none"&&s.nChanges++,a.transition&&n.anim&&s.nChangesAnim++,(bR.test(o)||_R.test(o))&&(s.rangesAltered[t[0]]=1),i==="datarevision"&&(s.newDataRevision=1)}function h(V){return V.valType==="data_array"||V.arrayOk}for(i in e){if(s.calc&&!a.transition)return;var p=e[i],m=r[i],b=t.concat(i);if(o=b.join("."),!(i.charAt(0)==="_"||typeof p=="function"||p===m)){if((i==="tick0"||i==="dtick")&&t[0]!=="geo"){var y=r.tickmode;if(y==="auto"||y==="array"||!y)continue}if(!(i==="range"&&r.autorange)&&!((i==="zmin"||i==="zmax")&&r.type==="contourcarpet")&&(n=l(b),!!n&&!(n._compareAsJSON&&JSON.stringify(p)===JSON.stringify(m)))){var C=n.valType,x,_=h(n),A=Array.isArray(p),T=Array.isArray(m);if(A&&T){var M="_input_"+i,E=e[M],P=r[M];if(Array.isArray(E)&&E===P)continue}if(m===void 0)_&&A?s.calc=!0:d();else if(n._isLinkedToArray){var z=[],I=!1;f||(s.arrays[i]=z);var X=Math.min(p.length,m.length),H=Math.max(p.length,m.length);if(X!==H)if(n.editType==="arraydraw")I=!0;else{d();continue}for(x=0;x<X;x++)Ug(p[x],m[x],b.concat(x),Gr.extendFlat({inArray:i,arrayIndex:x},a));if(I)for(x=X;x<H;x++)z.push(x)}else!C&&Gr.isPlainObject(p)?Ug(p,m,b,a):_?A&&T?(u&&(s.calc=!0),(u||a.newDataRevision)&&d()):A!==T?s.calc=!0:d():A&&T?(p.length!==m.length||String(p)!==String(m))&&d():d()}}}for(i in r)if(!(i in e||i.charAt(0)==="_"||typeof r[i]=="function"))if(n=l(t.concat(i)),h(n)&&Array.isArray(r[i])){s.calc=!0;return}else d()}function G0e(e,r,t){if(e=Gr.getGraphDiv(e),!Gr.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=gt.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 X=a._frameQueue.pop();X.onInterrupt&&X.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function d(X){if(X.length!==0){for(var H=0;H<X.length;H++){var V;X[H].type==="byname"?V=gt.computeFrame(e,X[H].name):V=X[H].data;var N=l(H),Q=o(H);Q.duration=Math.min(Q.duration,N.duration);var ee={frame:V,name:X[H].name,frameOpts:N,transitionOpts:Q};H===X.length-1&&(ee.onComplete=s(u,2),ee.onInterrupt=f),a._frameQueue.push(ee)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||m()}}function h(){e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function p(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var X=a._currentFrame=a._frameQueue.shift();if(X){var H=X.name?X.name.toString():null;e._fullLayout._currentFrame=H,a._lastFrameAt=Date.now(),a._timeToNext=X.frameOpts.duration,gt.transition(e,X.frame.data,X.frame.layout,wn.coerceTraceIndices(e,X.frame.traces),X.frameOpts,X.transitionOpts).then(function(){X.onComplete&&X.onComplete()}),e.emit("plotly_animatingframe",{name:H,frame:X.frame,animation:{frame:X.frameOpts,transition:X.transitionOpts}})}else h()}function m(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var X=function(){a._animationRaf=window.requestAnimationFrame(X),Date.now()-a._lastFrameAt>a._timeToNext&&p()};X()}var b=0;function y(X){return Array.isArray(n)?b>=n.length?X.transitionOpts=n[b]:X.transitionOpts=n[0]:X.transitionOpts=n,b++,X}var C,x,_=[],A=r==null,T=Array.isArray(r),M=!A&&!T&&Gr.isPlainObject(r);if(M)_.push({type:"object",data:y(Gr.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(C=0;C<a._frames.length;C++)x=a._frames[C],x&&(A||String(x.group)===String(r))&&_.push({type:"byname",name:String(x.name),data:y({name:x.name})});else if(T)for(C=0;C<r.length;C++){var E=r[C];["number","string"].indexOf(typeof E)!==-1?(E=String(E),_.push({type:"byname",name:E,data:y({name:E})})):Gr.isPlainObject(E)&&_.push({type:"object",data:y(Gr.extendFlat({},E))})}for(C=0;C<_.length;C++)if(x=_[C],x.type==="byname"&&!a._frameHash[x.data.name]){Gr.warn('animate failure: frame not found: "'+x.data.name+'"'),f();return}["next","immediate"].indexOf(t.mode)!==-1&&c(),t.direction==="reverse"&&_.reverse();var P=e._fullLayout._currentFrame;if(P&&t.fromcurrent){var z=-1;for(C=0;C<_.length;C++)if(x=_[C],x.type==="byname"&&x.name===P){z=C;break}if(z>0&&z<_.length-1){var I=[];for(C=0;C<_.length;C++)x=_[C],(_[C].type!=="byname"||C>z)&&I.push(x);_=I}}_.length>0?d(_):(e.emit("plotly_animated"),u())})}function Y0e(e,r,t){if(e=Gr.getGraphDiv(e),r==null)return Promise.resolve();if(!Gr.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(Gr.isPlainObject(r[a])){var d=r[a].name,h=(s[d]||c[d]||{}).name,p=r[a].name,m=s[h]||c[h];h&&p&&typeof p=="number"&&m&&j7<aR&&(j7++,Gr.warn('addFrames: overwriting frame "'+(s[h]||c[h]).name+'" with a frame whose name of type "number" also equates to "'+h+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),j7===aR&&Gr.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[d]={name:d},f.push({frame:gt.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:u+a})}f.sort(function(M,E){return M.index>E.index?-1:M.index<E.index?1:0});var b=[],y=[],C=l.length;for(a=f.length-1;a>=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Gr.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++);b.push({type:"replace",index:i,value:n}),y.unshift({type:"replace",index:i,value:l[i]})}else o=Math.max(0,Math.min(f[a].index,C)),b.push({type:"insert",index:o,value:n}),y.unshift({type:"delete",index:o}),C++}var x=gt.modifyFrames,_=gt.modifyFrames,A=[e,y],T=[e,b];return Ui&&Ui.add(e,x,A,_,T),gt.modifyFrames(e,b)}function V0e(e,r){if(e=Gr.getGraphDiv(e),!Gr.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=gt.modifyFrames,s=gt.modifyFrames,u=[e,o],f=[e,i];return Ui&&Ui.add(e,l,u,s,f),gt.modifyFrames(e,i)}function X0e(e){e=Gr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return gt.cleanPlot([],{},t,r),gt.purge(e),W7.purge(e),r._container&&r._container.remove(),delete e._context,e}function j0e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Gr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Gr.inverseTransformMatrix(Gr.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 W0e(e){var r=zg.select(e),t=e._fullLayout;if(t._calcInverseTransform=j0e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};zg.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Gr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(x0e.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")}Yt.animate=G0e;Yt.addFrames=Y0e;Yt.deleteFrames=V0e;Yt.addTraces=pR;Yt.deleteTraces=mR;Yt.extendTraces=dR;Yt.moveTraces=Z7;Yt.prependTraces=hR;Yt.newPlot=D0e;Yt._doPlot=M0e;Yt.purge=X0e;Yt.react=H0e;Yt.redraw=S0e;Yt.relayout=Ld;Yt.restyle=Ig;Yt.setPlotConfig=k0e;Yt.update=Og;Yt._guiRelayout=$7(Ld);Yt._guiRestyle=$7(Ig);Yt._guiUpdate=$7(Og);Yt._storeDirectGUIEdit=q0e});var xc=oe(sl=>{"use strict";var Z0e=_t();sl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};sl.getRedrawFunc=function(e){return function(){Z0e.getComponentMethod("colorbar","draw")(e)}};sl.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};sl.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var AR=window.URL||window.webkitURL;sl.createObjectURL=function(e){return AR.createObjectURL(e)};sl.revokeObjectURL=function(e){return AR.revokeObjectURL(e)};sl.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=$0e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};sl.octetStream=function(e){document.location.href="data:application/octet-stream"+e};sl.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};sl.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 $0e(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}sl.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var Vg=oe((P7e,MR)=>{"use strict";var Q7=Lt(),L7e=pr(),J0e=da(),K0e=Nt(),q7e=(ec(),xr(Qf)),K7=/"/g,wc="TOBESTRIPPED",Q0e=new RegExp(`("${wc})|(${wc}")|(&quot;${wc})|(${wc}&quot;)`,"g"),efe=["&amp;","&#38;","&#x26;","&quot;","&#34;","&#x22;","&apos;","&#39;","&#x27;"],rfe=["&lt;","&#60;","&#x3c;"],tfe=["&gt;","&#62;","&#x3e;"];function afe(e){let r=Q7.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return efe.includes(n)?a:rfe.includes(n)?"&#60;":tfe.includes(n)?"&#62;":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function nfe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")}MR.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(J0e.setRect,0,0,l,s).call(K0e.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 d=o.node().childNodes,h=Array.prototype.slice.call(d);for(u=0;u<h.length;u++){var p=h[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 b=Q7.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){b.remove();return}else b.style({visibility:null,display:null});var y=this.style.fontFamily;y&&y.indexOf('"')!==-1&&b.style("font-family",y.replace(K7,wc));var C=this.style.fontWeight;C&&(C==="normal"||C==="400")&&b.style("font-weight",void 0);var x=this.style.fontStyle;x&&x==="normal"&&b.style("font-style",void 0);var _=this.style.fontVariant;_&&_==="normal"&&b.style("font-variant",void 0)}),i.selectAll(".gradient_filled,.pattern_filled").each(function(){var b=Q7.select(this),y=this.style.fill;y&&y.indexOf("url(")!==-1&&b.style("fill",y.replace(K7,wc));var C=this.style.stroke;C&&C.indexOf("url(")!==-1&&b.style("stroke",C.replace(K7,wc))}),(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=afe(m),m=nfe(m),m=m.replace(Q0e,"'"),m}});var Xg=oe((R7e,TR)=>{"use strict";var ife=pr(),ofe=Rp().EventEmitter,Pd=xc();function lfe(e){var r=e.emitter||new ofe,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,d=u*f,h=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,b,y;l==="svg"||ife.isSafari()?y=Pd.encodeSVG(o):(b=Pd.createBlob(o,"svg"),y=Pd.createObjectURL(b)),s.width=d,s.height=h,m.onload=function(){var C;switch(b=null,Pd.revokeObjectURL(y),l!=="svg"&&p.drawImage(m,0,0,d,h),l){case"jpeg":C=s.toDataURL("image/jpeg");break;case"png":C=s.toDataURL("image/png");break;case"webp":C=s.toDataURL("image/webp");break;case"svg":C=y;break;default:var x="Image format is not jpeg, png, svg or webp.";if(n(new Error(x)),!e.promise)return r.emit("error",x)}a(C),e.promise||r.emit("success",C)},m.onerror=function(C){if(b=null,Pd.revokeObjectURL(y),n(C),!e.promise)return r.emit("error",C)},m.src=y});return e.promise?t:r}TR.exports=lfe});var r9=oe((z7e,SR)=>{"use strict";var kR=Qt(),CR=J7(),sfe=Ln(),Vs=pr(),Rd=xc(),ufe=Vg(),ffe=Xg(),cfe=K2().version,e9=(l5(),xr(o5)).default;function vfe(e,r){r=r||{};var t,a,n,i;Vs.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Vs.getGraphDiv(e),t=Vs.extendDeep([],e.data),a=Vs.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(T){return!(T in r)||Vs.validate(r[T],e9[T])}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 "+Vs.join2(e9.format.values,", "," or ")+".");var l={};function s(T,M){return Vs.coerce(r,l,e9,T,M)}var u=s("format"),f=s("width"),c=s("height"),d=s("scale"),h=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var b=Vs.extendFlat({},a);f?b.width=f:r.width===null&&kR(i.width)&&(b.width=i.width),c?b.height=c:r.height===null&&kR(i.height)&&(b.height=i.height);var y=Vs.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),C=Rd.getRedrawFunc(m);function x(){return new Promise(function(T){setTimeout(T,Rd.getDelay(m._fullLayout))})}function _(){return new Promise(function(T,M){var E=ufe(m,u,d),P=m._fullLayout.width,z=m._fullLayout.height;function I(){CR.purge(m),document.body.removeChild(m)}if(u==="full-json"){var X=sfe.graphJson(m,!1,"object",!0,!0);return X.version=cfe,X=JSON.stringify(X),I(),T(p?X:Rd.encodeJSON(X))}if(I(),u==="svg")return T(p?E:Rd.encodeSVG(E));var H=document.createElement("canvas");H.id=Vs.randstr(),ffe({format:u,width:P,height:z,scale:d,canvas:H,svg:E,promise:!0}).then(T).catch(M)})}function A(T){return p?T.replace(Rd.IMAGE_URL_PREFIX,""):T}return new Promise(function(T,M){CR.newPlot(m,t,b,y).then(C).then(x).then(_).then(function(E){T(A(E))}).catch(function(E){M(E)})})}SR.exports=vfe});var ER=oe((N7e,FR)=>{"use strict";var ul=pr(),dfe=Ln(),hfe=H1(),pfe=m0().dfltConfig,Jl=ul.isPlainObject,Mc=Array.isArray,t9=ul.isArrayOrTypedArray;FR.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=hfe.get(),n=[],i={_context:ul.extendFlat({},pfe)},o,l;Mc(r)?(i.data=ul.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Yn("array","data"))),Jl(t)?(i.layout=ul.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Yn("object","layout"))),dfe.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;f<u;f++){var c=o[f],d=["data",f];if(!Jl(c)){n.push(Yn("object",d));continue}var h=s[f],p=h.type,m=a.traces[p].attributes;m.type={valType:"enumerated",values:[p]},h.visible===!1&&c.visible!==!1&&n.push(Yn("invisible",d)),jg(c,h,m,n,d)}var b=i._fullLayout,y=mfe(a,s);return jg(l,b,y,n,"layout"),n.length===0?void 0:n};function jg(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],d=bfe(t,s),h=(d||{}).valType,p=h==="info_array",m=h==="colorscale",b=(d||{}).items;if(!yfe(t,s))a.push(Yn("schema",n,u));else if(Jl(f)&&Jl(c)&&h!=="any")jg(f,c,d,a,n,u);else if(p&&Mc(f)){f.length>c.length&&a.push(Yn("unused",n,u.concat(c.length)));var y=c.length,C=Array.isArray(b);C&&(y=Math.min(y,b.length));var x,_,A,T,M;if(d.dimensions===2)for(_=0;_<y;_++)if(Mc(f[_])){f[_].length>c[_].length&&a.push(Yn("unused",n,u.concat(_,c[_].length)));var E=c[_].length;for(x=0;x<(C?Math.min(E,b[_].length):E);x++)A=C?b[_][x]:b,T=f[_][x],M=c[_][x],ul.validate(T,A)?M!==T&&M!==+T&&a.push(Yn("dynamic",n,u.concat(_,x),T,M)):a.push(Yn("value",n,u.concat(_,x),T))}else a.push(Yn("array",n,u.concat(_),f[_]));else for(_=0;_<y;_++)A=C?b[_]:b,T=f[_],M=c[_],ul.validate(T,A)?M!==T&&M!==+T&&a.push(Yn("dynamic",n,u.concat(_),T,M)):a.push(Yn("value",n,u.concat(_),T))}else if(d.items&&!p&&Mc(f)){var P=b[Object.keys(b)[0]],z=[],I,X;for(I=0;I<c.length;I++){var H=c[I]._index||I;if(X=u.slice(),X.push(H),Jl(f[H])&&Jl(c[I])){z.push(H);var V=f[H],N=c[I];Jl(V)&&V.visible!==!1&&N.visible===!1?a.push(Yn("invisible",n,X)):jg(V,N,P,a,n,X)}}for(I=0;I<f.length;I++)X=u.slice(),X.push(I),Jl(f[I])?z.indexOf(I)===-1&&a.push(Yn("unused",n,X)):a.push(Yn("object",n,X,f[I]))}else!Jl(f)&&Jl(c)?a.push(Yn("object",n,u,f)):!t9(f)&&t9(c)&&!p&&!m?a.push(Yn("array",n,u,f)):s in r?ul.validate(f,d)?d.valType==="enumerated"&&(d.coerceNumber&&f!==+c||!t9(f)&&f!==c||String(f)!==String(c))&&a.push(Yn("dynamic",n,u,f,c)):a.push(Yn("value",n,u,f)):a.push(Yn("unused",n,u,f))}return a}function mfe(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?ul.extendFlat(t[i.attributes.subplot.dflt],o):ul.extendFlat(t,o))}return t}var gfe={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=Ac(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=Ac(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return Ac(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var a=Jl(t)?"container":"key";return Ac(e)+a+" "+r+" did not get coerced"},dynamic:function(e,r,t,a){return[Ac(e)+"key",r,"(set to '"+t+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?Ac(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[Ac(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function Ac(e){return Mc(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Yn(e,r,t,a,n){t=t||"";var i,o;Mc(r)?(i=r[0],o=r[1]):(i=r,o=null);var l=xfe(t),s=gfe[e](r,l,a,n);return ul.log(s),{code:e,container:i,trace:o,path:t,astr:l,msg:s}}function yfe(e,r){var t=DR(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function bfe(e,r){if(r in e)return e[r];var t=DR(r);return e[t.keyMinusId]}var _fe=ul.counterRegex("([a-z]+)");function DR(e){var r=e.match(_fe);return{keyMinusId:r&&r[1],id:r&&r[2]}}function xfe(e){if(!Mc(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 qR=oe((B7e,LR)=>{"use strict";var wfe=pr(),Wg=xc();function Afe(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=Wg.createBlob(e,t),u=Wg.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Wg.revokeObjectURL(u),s=null,o(r);if(wfe.isSafari()){var f=t==="svg"?",":";base64,";return Wg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}LR.exports=Afe});var a9=oe((I7e,NR)=>{"use strict";var Zg=pr(),PR=vi(),Mfe=r9(),Tfe=qR(),RR=xc(),zR=40;function kfe(e,r){var t;return Zg.isPlainObject(e)||(t=Zg.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=Mfe(e,r),o=r.filename||e.fn;if(!o){let s=RR.getPlotTitle(e);if(s&&!PR.matchTex(s))o=Zg.slugify(s,zR);else{let u=RR.getPlotSubtitle(e);u&&!PR.matchTex(u)&&(o=Zg.slugify(u,zR))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),Tfe(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}NR.exports=kfe});var UR=oe(n9=>{"use strict";var uo=pr(),fo=uo.isPlainObject,BR=H1(),IR=Ln(),Cfe=Wo(),HR=ka(),OR=m0().dfltConfig;n9.makeTemplate=function(e){e=uo.isPlainObject(e)?e:uo.getGraphDiv(e),e=uo.extendDeep({_context:OR},{data:e.data,layout:e.layout}),IR.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(h){var p={};zd(h,p,Dfe.bind(null,h));var m=uo.coerce(h,{},Cfe,"type"),b=a.data[m];b||(b=a.data[m]=[]),b.push(p)}),zd(t,a.layout,Sfe.bind(null,t)),delete a.layout.template;var n=t.template;if(fo(n)){var i=n.layout,o,l,s,u,f,c;fo(i)&&$g(i,a.layout);var d=n.data;if(fo(d)){for(l in a.data)if(s=d[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;o<c;o++)$g(s[o%u],f[o]);for(o=c;o<u;o++)f.push(uo.extendDeep({},s[o]))}for(l in d)l in a.data||(a.data[l]=uo.extendDeep([],d[l]))}}return a};function $g(e,r){e=uo.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,d){if(fo(c)&&fo(f))$g(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var h=HR.arrayTemplater({_template:e},d);for(n=0;n<c.length;n++){var p=c[n],m=h.newItem(p)._template;m&&$g(m,p)}var b=h.defaultItems();for(n=0;n<b.length;n++)c.push(b[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,Jg(o)===o)for(var s in r){var u=Jg(s);s!==u&&u===o&&!(s in e)&&i(l,r[s],o)}}}function Jg(e){return e.replace(/[0-9]+$/,"")}function zd(e,r,t,a,n){var i=n&&t(n);for(var o in e){var l=e[o],s=fl(e,o,a),u=fl(e,o,n),f=t(u);if(!f){var c=Jg(o);c!==o&&(u=fl(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&&fo(l))zd(l,r,t,s,u);else if(f._isLinkedToArray&&Array.isArray(l))for(var d=!1,h=0,p={},m=0;m<l.length;m++){var b=l[m];if(fo(b)){var y=b.name;if(y)p[y]||(zd(b,r,t,fl(l,h,s),fl(l,h,u)),h++,p[y]=1);else if(!d){var C=HR.arrayDefaultKey(o),x=fl(e,C,a),_=fl(l,h,s);zd(b,r,t,_,fl(l,h,u));var A=uo.nestedProperty(r,_),T=uo.nestedProperty(r,x);T.set(A.get()),A.set(null),d=!0}}}else{var M=uo.nestedProperty(r,s);M.set(l)}}}function Sfe(e,r){return BR.getLayoutValObject(e,uo.nestedProperty({},r).parts)}function Dfe(e,r){return BR.getTraceValObject(e,uo.nestedProperty({},r).parts)}function fl(e,r,t){var a;return t?Array.isArray(e)?a=t+"["+r+"]":a=t+"."+r:a=r,a}n9.validateTemplate=function(e,r){var t=uo.extendDeep({},{_context:OR,data:e.data,layout:e.layout}),a=t.layout||{};fo(r)||(r=a.template||{});var n=r.layout,i=r.data,o=[];t.layout=a,t.layout.template=r,IR.supplyDefaults(t);var l=t._fullLayout,s=t._fullData,u={};function f(x,_){for(var A in x)if(A.charAt(0)!=="_"&&fo(x[A])){var T=Jg(A),M=[],E;for(E=0;E<_.length;E++)M.push(fl(x,A,_[E])),T!==A&&M.push(fl(x,T,_[E]));for(E=0;E<M.length;E++)u[M[E]]=1;f(x[A],M)}}function c(x,_){for(var A in x)if(A.indexOf("defaults")===-1&&fo(x[A])){var T=fl(x,A,_);u[T]?c(x[A],T):o.push({code:"unused",path:T})}}if(fo(n)?(f(l,["layout"]),c(n,"layout")):o.push({code:"layout"}),!fo(i))o.push({code:"data"});else{for(var d={},h,p=0;p<s.length;p++){var m=s[p];h=m.type,d[h]=(d[h]||0)+1,m._template||o.push({code:"missing",index:m.index,traceType:h})}for(h in i){var b=i[h].length,y=d[h]||0;b>y?o.push({code:"unused",traceType:h,templateCount:b,dataCount:y}):y>b&&o.push({code:"reused",traceType:h,templateCount:b,dataCount:y})}}function C(x,_){for(var A in x)if(A.charAt(0)!=="_"){var T=x[A],M=fl(x,A,_);fo(T)?(Array.isArray(x)&&T._template===!1&&T.templateitemname&&o.push({code:"missing",path:M,templateitemname:T.templateitemname}),C(T,M)):Array.isArray(T)&&Ffe(T)&&C(T,M)}}if(C({data:s,layout:l},""),o.length)return o.map(Efe)};function Ffe(e){for(var r=0;r<e.length;r++)if(fo(e[r]))return!0}function Efe(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 YR=oe(za=>{"use strict";var Pn=J7();za._doPlot=Pn._doPlot;za.newPlot=Pn.newPlot;za.restyle=Pn.restyle;za.relayout=Pn.relayout;za.redraw=Pn.redraw;za.update=Pn.update;za._guiRestyle=Pn._guiRestyle;za._guiRelayout=Pn._guiRelayout;za._guiUpdate=Pn._guiUpdate;za._storeDirectGUIEdit=Pn._storeDirectGUIEdit;za.react=Pn.react;za.extendTraces=Pn.extendTraces;za.prependTraces=Pn.prependTraces;za.addTraces=Pn.addTraces;za.deleteTraces=Pn.deleteTraces;za.moveTraces=Pn.moveTraces;za.purge=Pn.purge;za.addFrames=Pn.addFrames;za.deleteFrames=Pn.deleteFrames;za.animate=Pn.animate;za.setPlotConfig=Pn.setPlotConfig;var Lfe=Mv().getGraphDiv,qfe=ig().eraseActiveShape;za.deleteActiveShape=function(e){return qfe(Lfe(e))};za.toImage=r9();za.validate=ER();za.downloadImage=a9();var GR=UR();za.makeTemplate=GR.makeTemplate;za.validateTemplate=GR.validateTemplate});var XR=oe((U7e,VR)=>{"use strict";var i9=pr(),Pfe=_t();VR.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=Pfe.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=i9.minRowLength(i);o?l=Math.min(u,i9.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=i9.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var $R=oe((G7e,ZR)=>{"use strict";var jR=pr().dateTick0,Rfe=(Za(),xr(nn)),zfe=Rfe.ONEWEEK;function WR(e,r){return e%zfe===0?jR(r,1):jR(r,0)}ZR.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",WR(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",WR(l,t.ycalendar)),n("yperiodalignment"))}}});var QR=oe((Y7e,KR)=>{"use strict";var JR=["orientation","groupnorm","stackgaps"];KR.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"},d=0;d<JR.length;d++){var h=JR[d],p=h+"Found";if(!u[p]){var m=r[h]!==void 0,b=h==="orientation";if((m||f)&&(u[h]=n(h,c[h]),b&&(u.fillDflt=u[h]==="h"?"tonextx":"tonexty"),m&&(u[p]=!0,!f&&(delete u.traces[0][h],b))))for(var y=0;y<u.traces.length-1;y++){var C=u.traces[y];C._input.fill!==C.fill&&(C.fill=u.fillDflt)}}}return u}}});var o9=oe((V7e,az)=>{"use strict";var ez=Nt(),rz=Ls().hasColorscale,tz=V1(),Nfe=Ti();az.exports=function(r,t,a,n,i,o={}){var l=Nfe.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),rz(r,"marker")&&tz(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=ez.background:u=ez.defaultLine,i("marker.line.color",u),rz(r,"marker.line")&&tz(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 l9=oe((X7e,nz)=>{"use strict";var Bfe=pr().isArrayOrTypedArray,Ife=Ls().hasColorscale,Hfe=V1();nz.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),Ife(r,"line"))Hfe(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Bfe(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var oz=oe((j7e,iz)=>{"use strict";iz.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var s9=oe((W7e,lz)=>{"use strict";var Ofe=pr();lz.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Ofe.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var u9=oe((Z7e,uz)=>{"use strict";var Kg=Nt(),sz=pr().isArrayOrTypedArray;function Ufe(e){for(var r=Kg.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=Kg.interpolate(e[t-1][1],e[t][1],.5);r=Kg.interpolate(r,a,e[t-1][0]/e[t][0])}return r}uz.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&&!sz(l)?o=l:s&&!sz(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=Ufe(c))}}n("fillcolor",Kg.addOpacity((t.line||{}).color||o||u||a,.5))}});var dz=oe(($7e,vz)=>{"use strict";var fz=pr(),Gfe=_t(),Yfe=_c(),Vfe=(Mg(),xr(Ag)),h2=Ti(),Xfe=XR(),jfe=$R(),Wfe=QR(),Zfe=o9(),$fe=l9(),cz=oz(),Jfe=s9(),Kfe=u9(),Qfe=pr().coercePattern;vz.exports=function(r,t,a,n){function i(h,p){return fz.coerce(r,t,Yfe,h,p)}var o=Xfe(r,t,n,i);if(o||(t.visible=!1),!!t.visible){jfe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Wfe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o<Vfe.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),h2.hasMarkers(t)&&Zfe(r,t,a,n,i,{gradient:!0}),h2.hasLines(t)&&($fe(r,t,a,n,i,{backoff:!0}),cz(r,t,i),i("connectgaps"),i("line.simplify")),h2.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),Jfe(r,t,n,i));var u=[];(h2.hasMarkers(t)||h2.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(Kfe(r,t,a,i,{moduleHasFillgradient:!0}),h2.hasLines(t)||cz(r,t,i),Qfe(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 d=Gfe.getComponentMethod("errorbars","supplyDefaults");d(r,t,f||c||a,{axis:"y"}),d(r,t,f||c||a,{axis:"x",inherit:"y"}),fz.coerceSelectionMarkerOpacity(t,i)}}});var pz=oe((J7e,hz)=>{"use strict";var ece=ld().getAxisGroup;hz.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=ece(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var d=c[f];d?d.traces.push(t):d=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var h=n("offsetgroup")||"",p=d.offsetGroups,m=p[h];t._offsetIndex=0,(i!=="group"||h)&&(m||(m=p[h]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var gz=oe((K7e,mz)=>{"use strict";var rce=pr(),tce=pz(),ace=_c();mz.exports=function(r,t){var a,n,i,o=t.scattermode;function l(d){return rce.coerce(n._input,n,ace,d)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,tce(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 bz=oe((Q7e,yz)=>{"use strict";var nce=pr(),ice=Hp();yz.exports=function(e,r){function t(n,i){return nce.coerce(e,r,ice,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var wz=oe((e9e,xz)=>{"use strict";var oce=Qt(),_z=pr(),lce=_z.dateTime2ms,Qg=_z.incrementMonth,sce=(Za(),xr(nn)),uce=sce.ONEAVGMONTH;xz.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(oce(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",d=r[a+"period0"],h=lce(d,u)||0,p=[],m=[],b=[],y=n.length,C=0;C<y;C++){var x=n[C],_,A,T;if(l){for(_=Math.round((x-h)/(l*uce)),T=Qg(h,l*_,u);T>x;)T=Qg(T,-l,u);for(;T<=x;)T=Qg(T,l,u);A=Qg(T,-l,u)}else{for(_=Math.round((x-h)/o),T=h+_*o;T>x;)T-=o;for(;T<=x;)T+=o;A=T-o}p[C]=f?A:c?T:(A+T)/2,m[C]=A,b[C]=T}return{vals:p,starts:m,ends:b}}});var v9=oe((r9e,Mz)=>{"use strict";var f9=Ls().hasColorscale,c9=$p(),Az=Ti();Mz.exports=function(r,t){Az.hasLines(t)&&f9(t,"line")&&c9(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Az.hasMarkers(t)&&(f9(t,"marker")&&c9(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),f9(t,"marker.line")&&c9(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Nd=oe((t9e,Tz)=>{"use strict";var ln=pr();Tz.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;ln.mergeArray(t.text,r,"tx"),ln.mergeArray(t.texttemplate,r,"txt"),ln.mergeArray(t.hovertext,r,"htx"),ln.mergeArray(t.customdata,r,"data"),ln.mergeArray(t.textposition,r,"tp"),t.textfont&&(ln.mergeArrayCastPositive(t.textfont.size,r,"ts"),ln.mergeArray(t.textfont.color,r,"tc"),ln.mergeArray(t.textfont.family,r,"tf"),ln.mergeArray(t.textfont.weight,r,"tw"),ln.mergeArray(t.textfont.style,r,"ty"),ln.mergeArray(t.textfont.variant,r,"tv"),ln.mergeArray(t.textfont.textcase,r,"tC"),ln.mergeArray(t.textfont.lineposition,r,"tE"),ln.mergeArray(t.textfont.shadow,r,"tS"));var n=t.marker;if(n){ln.mergeArrayCastPositive(n.size,r,"ms"),ln.mergeArrayCastPositive(n.opacity,r,"mo"),ln.mergeArray(n.symbol,r,"mx"),ln.mergeArray(n.angle,r,"ma"),ln.mergeArray(n.standoff,r,"mf"),ln.mergeArray(n.color,r,"mc");var i=n.line;n.line&&(ln.mergeArray(i.color,r,"mlc"),ln.mergeArrayCastPositive(i.width,r,"mlw"),ln.mergeArray(i.dash,r,"mld"));var o=n.gradient;o&&o.type!=="none"&&(ln.mergeArray(o.type,r,"mgt"),ln.mergeArray(o.color,r,"mgc"))}}});var e3=oe((a9e,Cz)=>{"use strict";var kz=pr();Cz.exports=function(r,t){kz.isArrayOrTypedArray(t.selectedpoints)&&kz.tagSelected(r,t)}});var r3=oe((n9e,Pz)=>{"use strict";var Sz=Qt(),h9=pr(),Bd=Ga(),Dz=wz(),d9=(Za(),xr(nn)).BADNUM,p9=Ti(),fce=v9(),cce=Nd(),vce=e3();function dce(e,r){var t=e._fullLayout,a=r._xA=Bd.getFromId(e,r.xaxis||"x","x"),n=r._yA=Bd.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=Dz(r,a,"x",i),s=Dz(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,d=new Array(c),h=r.ids,p=m9(r,t,a,n),m=!1,b,y,C,x,_,A;Lz(t,r);var T="x",M="y",E;if(p)h9.pushUnique(p.traceIndices,r.index),b=p.orientation==="v",b?(M="s",E="x"):(T="s",E="y"),_=p.stackgaps==="interpolate";else{var P=Ez(r,c);Fz(e,r,a,n,u,f,P)}var z=!!r.xperiodalignment,I=!!r.yperiodalignment;for(y=0;y<c;y++){var X=d[y]={},H=Sz(u[y]),V=Sz(f[y]);H&&V?(X[T]=u[y],X[M]=f[y],z&&(X.orig_x=i[y],X.xEnd=l.ends[y],X.xStart=l.starts[y]),I&&(X.orig_y=o[y],X.yEnd=s.ends[y],X.yStart=s.starts[y])):p&&(b?H:V)?(X[E]=b?u[y]:f[y],X.gap=!0,_?(X.s=d9,m=!0):X.s=0):X[T]=X[M]=d9,h&&(X.id=String(h[y]))}if(cce(d,r),fce(e,r),vce(d,r),p){for(y=0;y<d.length;)d[y][E]===d9?d.splice(y,1):y++;if(h9.sort(d,function(re,ae){return re[E]-ae[E]||re.i-ae.i}),m){for(y=0;y<d.length-1&&d[y].gap;)y++;for(A=d[y].s,A||(A=d[y].s=0),C=0;C<y;C++)d[C].s=A;for(x=d.length-1;x>y&&d[x].gap;)x--;for(A=d[x].s,C=d.length-1;C>x;C--)d[C].s=A;for(;y<x;)if(y++,d[y].gap){for(C=y+1;d[C].gap;)C++;for(var N=d[y-1][E],Q=d[y-1].s,ee=(d[C].s-Q)/(d[C][E]-N);y<C;)d[y].s=Q+(d[y][E]-N)*ee,y++}}}return d}function Fz(e,r,t,a,n,i,o){var l=r._length,s=e._fullLayout,u=t._id,f=a._id,c=s._firstScatter[qz(r)]===r.uid,d=(m9(r,s,t,a)||{}).orientation,h=r.fill;t._minDtick=0,a._minDtick=0;var p={padded:!0},m={padded:!0};o&&(p.ppad=m.ppad=o);var b=l<2||n[0]!==n[l-1]||i[0]!==i[l-1];b&&(h==="tozerox"||h==="tonextx"&&(c||d==="h"))?p.tozero=!0:!(r.error_y||{}).visible&&(h==="tonexty"||h==="tozeroy"||!p9.hasMarkers(r)&&!p9.hasText(r))&&(p.padded=!1,p.ppad=0),b&&(h==="tozeroy"||h==="tonexty"&&(c||d==="v"))?m.tozero=!0:(h==="tonextx"||h==="tozerox")&&(m.padded=!1),u&&(r._extremes[u]=Bd.findExtremes(t,n,p)),f&&(r._extremes[f]=Bd.findExtremes(a,i,m))}function Ez(e,r){if(p9.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)},h9.isArrayOrTypedArray(t.size)){var i={type:"linear"};Bd.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 Lz(e,r){var t=qz(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function qz(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function m9(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}}Pz.exports={calc:dce,calcMarkerSize:Ez,calcAxisExpansion:Fz,setFirstScatter:Lz,getStackOpts:m9}});var zz=oe((i9e,Rz)=>{"use strict";Rz.exports=t3;var hce=pr().distinctVals;function t3(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=hce(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={}}t3.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};t3.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};t3.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 Nz={};Ua(Nz,{TEXTPAD:()=>pce,eventDataKeys:()=>mce});var pce,mce,Bz=Oa(()=>{"use strict";pce=3,mce=["value","label"]});var Gz=oe((o9e,Uz)=>{"use strict";var cl=Qt(),{isArrayOrTypedArray:Gu}=pr(),{BADNUM:p2}=(Za(),xr(nn)),gce=_t(),Id=Ga(),{getAxisGroup:yce}=ld(),a3=zz(),{TEXTPAD:bce}=(Bz(),xr(Nz)),{LINE_SPACING:_ce}=(ci(),xr(fi)),{BR_TAG_ALL:xce}=vi();function wce(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&&gce.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],d=0;d<c.length;d++)typeof c[d].ph0=="function"&&(c[d].ph0=c[d].ph0()),typeof c[d].ph1=="function"&&(c[d].ph1=c[d].ph1())}var h={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};y9(e,t,a,s,h),y9(e,a,t,l,h)}function y9(e,r,t,a,n){if(a.length){var i,o,l,s,u;switch(Tce(t,a),n.mode){case"overlay":g9(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&&kce(e,r,t,o,n),i.length&&g9(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);Mce(o),o.length&&Cce(e,r,t,o,n),i.length&&g9(e,r,t,i,n);break}Ace(a),qce(a,r)}}function Ace(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=cl(i)?+i:+i.slice(0,-1),l=cl(i)?"px":"%",n.cornerradiusvalue=o,n.cornerradiusform=l))}function Mce(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=cl(i)?+i:+i.slice(0,-1),l=cl(i)?"px":"%",r=0;r<e.length;r++)t=e[r],n=t[0].t,n.cornerradiusvalue=o,n.cornerradiusform=l}}function Tce(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(Gu(o)){for(a=0;a<Math.min(o.length,n.length);a++)l=u(o[a],0,s),cl(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=cl(l);for(l=f?l:0,a=0;a<n.length;a++)n[a].b=l,f&&(n[a].hasB=1)}}}function g9(e,r,t,a,n){for(var i=0;i<a.length;i++){var o=a[i],l=new a3([o],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});b9(e,r,l,n),n.norm?(Oz(l),_9(t,l,n)):Hz(t,l)}}function kce(e,r,t,a,n){var i=new a3(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});b9(e,r,i,n),Ece(i,r),n.norm?(Oz(i),_9(t,i,n)):Hz(t,i)}function Cce(e,r,t,a,n){var i=new a3(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});b9(e,r,i,n),Fce(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!==p2){var c=f.b+f.s===i.get(f.p,s,f.s);c&&(f._outmost=!0)}}n.norm&&_9(t,i,n)}function b9(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),d,h,p,m;if(r._id==="angularaxis")d=c,h=d*(1-(a.groupgap||0)),p=-h/2;else{var b=yce(n,r._id)+s[0][0].trace.orientation;m=n._alignmentOpts[b]||{}}for(var y=0;y<u;y++){var C=s[y],x=C[0].trace;if(r._id!=="angularaxis"){var _=m[x.alignmentgroup]||{},A=Object.keys(_.offsetGroups||{}).length;A?d=c/A:d=f?c/u:c,h=d*(1-(a.groupgap||0)),A?p=((2*x._offsetIndex+1-A)*d-h)/2:p=f?((2*y+1-u)*d-h)/2:-h/2}var T=C[0].t;T.barwidth=h,T.offsetindex=x._offsetIndex||0,T.poffset=p,T.bargroupwidth=c,T.bardelta=l}t.binWidth=s[0][0].t.barwidth/100,Sce(t),Dce(r,t),r._id==="angularaxis"?Iz(r,t):Iz(r,t,f)}function Sce(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(Gu(s)){for(f=Array.prototype.slice.call(s,0,n.length),a=0;a<f.length;a++)cl(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,d=l.barwidth;if(Gu(c)){var h=Array.prototype.slice.call(c,0,n.length);for(a=0;a<h.length;a++)cl(h[a])||(h[a]=d);for(a=h.length;a<n.length;a++)h.push(d);if(l.barwidth=h,s===void 0){for(f=[],a=0;a<n.length;a++)f.push(u+(d-h[a])/2);l.poffset=f}}else c!==void 0&&(l.barwidth=c,s===void 0&&(l.poffset=u+(d-c)/2))}}function Dce(e,r){for(var t=r.traces,a=m2(e),n=0;n<t.length;n++)for(var i=t[n],o=i[0].t,l=o.poffset,s=Gu(l),u=o.barwidth,f=Gu(u),c=0;c<i.length;c++){var d=i[c],h=d.w=f?u[c]:u;d.p===void 0&&(d.p=d[a],d["orig_"+a]=d[a]);var p=(s?l[c]:l)+h/2;d[a]=d.p+p}}function Iz(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;Id.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,d,h,p;for(p=0;p<l.length;p++)c=l[p],d=c.p-i,h=c.p+i,f.push(d,h);if(u.width||u.offset){var m=s.t,b=m.poffset,y=m.barwidth,C=Gu(b),x=Gu(y);for(p=0;p<l.length;p++){c=l[p];var _=C?b[p]:b,A=x?y[p]:y;d=c.p+_,h=d+A,f.push(d,h)}}u._extremes[e._id]=Id.findExtremes(e,f,{padded:!1})}}function Hz(e,r){for(var t=r.traces,a=m2(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 d=i[c],h=l?0:d.b,p=l?s?d.y:d.x:h+d.s;d[a]=p,u.push(p),d.hasB&&u.push(h),(!d.hasB||!d.b)&&(f=!0)}let{ppadminus:m,ppadplus:b}=x9(o,i);o._extremes[e._id]=Id.findExtremes(e,u,{tozero:f,padded:!0,ppadplus:b,ppadminus:m})}}function Fce(e,r,t){var a=m2(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!==p2&&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 d=[];for(u=0;u<i.length;u++)if(f=i[u],f.s!==p2){var h;l?h=f.s:h=f.s+f.b;var p=r.put(f.p,c,h),m=p+h;f.b=p,f[a]=m,t.norm||(d.push(m),f.hasB&&d.push(p))}if(!t.norm){let{ppadminus:b,ppadplus:y}=x9(o,i);o._extremes[e._id]=Id.findExtremes(e,d,{tozero:!0,padded:!0,ppadplus:y,ppadminus:b})}}}function Oz(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!==p2&&e.put(o.p,n,o.b+o.s)}}function Ece(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 a3([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<n.length;s++){var u=n[s];if(u.p!==p2){var f=l.put(u.p,o,u.b+u.s);f&&(u.b=f)}}}}function _9(e,r,t){var a=r.traces,n=m2(e),i=t.norm==="fraction"?1:100,o=i/1e9,l=e.l2c(e.c2l(0)),s=t.mode==="stack"?i:l;function u(T){return cl(e.c2l(T))&&(T<l-o||T>s+o||!cl(l))}for(var f=0;f<a.length;f++){for(var c=a[f],d=c[0].t.offsetindex,h=c[0].trace,p=[],m=!1,b=!1,y=0;y<c.length;y++){var C=c[y];if(C.s!==p2){var x=Math.abs(i/r.get(C.p,d,C.s));C.b*=x,C.s*=x;var _=C.b,A=_+C.s;C[n]=A,p.push(A),b=b||u(A),C.hasB&&(p.push(_),b=b||u(_)),(!C.hasB||!C.b)&&(m=!0)}}let{ppadminus:T,ppadplus:M}=x9(h,c);h._extremes[e._id]=Id.findExtremes(e,p,{tozero:m,padded:b,ppadplus:M,ppadminus:T})}}function x9(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(xce)||[]).length+1};var t;e.texttemplate?t=a(e.texttemplate):t=Gu(e.text)?Math.max(...e.text.map(i=>a(i))):a(e.text);let n=e.outsidetextfont.size*_ce*t+bce;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 Lce(e,r,t,a){for(var n=m2(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 qce(e,r){var t=m2(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;cl(u)&&(l=Math.min(l,u),s=Math.max(s,u))}var f=1e4/(s-l),c=a.round=function(E){return String(Math.round(f*(E-l)))},d={},h={},p=e.some(function(E){var P=E[0].trace;return"marker"in P&&P.marker.cornerradius});for(n=0;n<e.length;n++){o=e[n],o[0].t.extents=a;var m=o[0].t.poffset,b=Gu(m);for(i=0;i<o.length;i++){var y=o[i],C=y[t]-y.w/2;if(cl(C)){var x=y[t]+y.w/2,_=c(y.p);a[_]?a[_]=[Math.min(C,a[_][0]),Math.max(x,a[_][1])]:a[_]=[C,x]}if(y.p0=y.p+(b?m[i]:m),y.p1=y.p0+y.w,y.s0=y.b,y.s1=y.s0+y.s,p){var A=Math.min(y.s0,y.s1)||0,T=Math.max(y.s0,y.s1)||0,M=y[t];d[M]=M in d?Math.min(d[M],A):A,h[M]=M in h?Math.max(h[M],T):T}}}p&&Lce(e,d,h,r)}function m2(e){return e._id.charAt(0)}Uz.exports={crossTraceCalc:wce,setGroupPositions:y9}});var jz=oe((l9e,Xz)=>{"use strict";var Yz=r3(),Vz=Gz().setGroupPositions;function Pce(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};Vz(e,t,a,s,c),Vz(e,a,t,l,c)}Xz.exports=function(r,t){r._fullLayout.scattermode==="group"&&Pce(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,d,h,p,m,b,y,C,x,_,A,T;for(var M in o){y=o[M];var E=y.traceIndices;if(E.length){for(C=y.stackgaps==="interpolate",x=y.groupnorm,y.orientation==="v"?(_="x",A="y"):(_="y",A="x"),T=new Array(E.length),s=0;s<T.length;s++)T[s]=!1;h=l[E[0]];var P=new Array(h.length);for(s=0;s<h.length;s++)P[s]=h[s][_];for(s=1;s<E.length;s++){for(d=l[E[s]],u=f=0;u<d.length;u++){for(p=d[u][_];p>P[f]&&f<P.length;f++)w9(d,u,P[f],s,T,C,_),u++;if(p!==P[f]){for(c=0;c<s;c++)w9(l[E[c]],f,p,c,T,C,_);P.splice(f,0,p)}f++}for(;f<P.length;f++)w9(d,u,P[f],s,T,C,_),u++}var z=P.length;for(u=0;u<h.length;u++){for(m=h[u][A]=h[u].s,s=1;s<E.length;s++)d=l[E[s]],d[0].trace._rawLength=d[0].trace._length,d[0].trace._length=z,m+=d[u].s,d[u][A]=m;if(x)for(b=(x==="fraction"?m:m/100)||1,s=0;s<E.length;s++){var I=l[E[s]][u];I[A]/=b,I.sNorm=I.s/b}}for(s=0;s<E.length;s++){d=l[E[s]];var X=d[0].trace,H=Yz.calcMarkerSize(X,X._rawLength),V=Array.isArray(H);if(H&&T[s]||V){var N=H;for(H=new Array(z),u=0;u<z;u++)H[u]=d[u].gap?0:V?N[d[u].i]:N}var Q=new Array(z),ee=new Array(z);for(u=0;u<z;u++)Q[u]=d[u].x,ee[u]=d[u].y;Yz.calcAxisExpansion(r,X,a,n,Q,ee,H),d[0].t.orientation=y.orientation}}}}};function w9(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=Rce(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 Rce(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 eN=oe((s9e,Qz)=>{"use strict";var zce=da(),Jz=(Za(),xr(nn)),Hd=Jz.BADNUM,Kz=Jz.LOG_CLIP,Wz=Kz+.5,Zz=Kz-.5,n3=pr(),Nce=n3.segmentsIntersect,$z=n3.constrain,A9=(Mg(),xr(Ag));Qz.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,d=t.connectGaps,h=t.baseTolerance,p=t.shape,m=p==="linear",b=a.fill&&a.fill!=="none",y=[],C=A9.minTolerance,x=r.length,_=new Array(x),A=0,T,M,E,P,z,I,X,H,V,N,Q,ee,re,ae,ie,ue;function xe(nr){var Cr=r[nr];if(!Cr)return!1;var ar=t.linearized?n.l2p(Cr.x):n.c2p(Cr.x),Fr=t.linearized?i.l2p(Cr.y):i.c2p(Cr.y);if(ar===Hd){if(o&&(ar=n.c2p(Cr.x,!0)),ar===Hd)return!1;l&&Fr===Hd&&(ar*=Math.abs(n._m*u*(n._m>0?Wz:Zz)/(i._m*s*(i._m>0?Wz:Zz)))),ar*=1e3}if(Fr===Hd){if(l&&(Fr=i.c2p(Cr.y,!0)),Fr===Hd)return!1;Fr*=1e3}return[ar,Fr]}function De(nr,Cr,ar,Fr){var Wr=ar-nr,Br=Fr-Cr,Zr=.5-nr,Ae=.5-Cr,Be=Wr*Wr+Br*Br,or=Wr*Zr+Br*Ae;if(or>0&&or<Be){var hr=Zr*Br-Ae*Wr;if(hr*hr<Be)return!0}}var Ye,Ee;function ke(nr,Cr){var ar=nr[0]/s,Fr=nr[1]/u,Wr=Math.max(0,-ar,ar-1,-Fr,Fr-1);return Wr&&Ye!==void 0&&De(ar,Fr,Ye,Ee)&&(Wr=0),Wr&&Cr&&De(ar,Fr,Cr[0]/s,Cr[1]/u)&&(Wr=0),(1+A9.toleranceGrowth*Wr)*h}function je(nr,Cr){var ar=nr[0]-Cr[0],Fr=nr[1]-Cr[1];return Math.sqrt(ar*ar+Fr*Fr)}var W=A9.maxScreensAway,le=-s*W,de=s*(1+W),K=-u*W,J=u*(1+W),fe=[[le,K,de,K],[de,K,de,J],[de,J,le,J],[le,J,le,K]],be,Ne,Ze,er,Je,tr;function ze(nr,Cr){for(var ar=[],Fr=0,Wr=0;Wr<4;Wr++){var Br=fe[Wr],Zr=Nce(nr[0],nr[1],Cr[0],Cr[1],Br[0],Br[1],Br[2],Br[3]);Zr&&(!Fr||Math.abs(Zr.x-ar[0][0])>1||Math.abs(Zr.y-ar[0][1])>1)&&(Zr=[Zr.x,Zr.y],Fr&&je(Zr,nr)<je(ar[0],nr)?ar.unshift(Zr):ar.push(Zr),Fr++)}return ar}function lr(nr){if(nr[0]<le||nr[0]>de||nr[1]<K||nr[1]>J)return[$z(nr[0],le,de),$z(nr[1],K,J)]}function dr(nr,Cr){if(nr[0]===Cr[0]&&(nr[0]===le||nr[0]===de)||nr[1]===Cr[1]&&(nr[1]===K||nr[1]===J))return!0}function Ar(nr,Cr){var ar=[],Fr=lr(nr),Wr=lr(Cr);return Fr&&Wr&&dr(Fr,Wr)||(Fr&&ar.push(Fr),Wr&&ar.push(Wr)),ar}function Qe(nr,Cr,ar){return function(Fr,Wr){var Br=lr(Fr),Zr=lr(Wr),Ae=[];if(Br&&Zr&&dr(Br,Zr))return Ae;Br&&Ae.push(Br),Zr&&Ae.push(Zr);var Be=2*n3.constrain((Fr[nr]+Wr[nr])/2,Cr,ar)-((Br||Fr)[nr]+(Zr||Wr)[nr]);if(Be){var or;Br&&Zr?or=Be>0==Br[nr]>Zr[nr]?Br:Zr:or=Br||Zr,or[nr]+=Be}return Ae}}var mr;p==="linear"||p==="spline"?mr=ze:p==="hv"||p==="vh"?mr=Ar:p==="hvh"?mr=Qe(0,le,de):p==="vhv"&&(mr=Qe(1,K,J));function qr(nr,Cr){var ar=Cr[0]-nr[0],Fr=(Cr[1]-nr[1])/ar,Wr=(nr[1]*Cr[0]-Cr[1]*nr[0])/ar;return Wr>0?[Fr>0?le:de,J]:[Fr>0?de:le,K]}function Te(nr){var Cr=nr[0],ar=nr[1],Fr=Cr===_[A-1][0],Wr=ar===_[A-1][1];if(!(Fr&&Wr))if(A>1){var Br=Cr===_[A-2][0],Zr=ar===_[A-2][1];Fr&&(Cr===le||Cr===de)&&Br?Zr?A--:_[A-1]=nr:Wr&&(ar===K||ar===J)&&Zr?Br?A--:_[A-1]=nr:_[A++]=nr}else _[A++]=nr}function Ue(nr){_[A-1][0]!==nr[0]&&_[A-1][1]!==nr[1]&&Te([Ze,er]),Te(nr),Je=null,Ze=er=0}var _r=n3.isArrayOrTypedArray(c);function Pr(nr){if(nr&&f&&(nr.i=T,nr.d=r,nr.trace=a,nr.marker=_r?c[nr.i]:c,nr.backoff=f),Ye=nr[0]/s,Ee=nr[1]/u,be=nr[0]<le?le:nr[0]>de?de:0,Ne=nr[1]<K?K:nr[1]>J?J:0,be||Ne){if(!A)_[A++]=[be||nr[0],Ne||nr[1]];else if(Je){var Cr=mr(Je,nr);Cr.length>1&&(Ue(Cr[0]),_[A++]=Cr[1])}else tr=mr(_[A-1],nr)[0],_[A++]=tr;var ar=_[A-1];be&&Ne&&(ar[0]!==be||ar[1]!==Ne)?(Je&&(Ze!==be&&er!==Ne?Te(Ze&&er?qr(Je,nr):[Ze||be,er||Ne]):Ze&&er&&Te([Ze,er])),Te([be,Ne])):Ze-be&&er-Ne&&Te([be||Ze,Ne||er]),Je=nr,Ze=be,er=Ne}else Je&&Ue(mr(Je,nr)[0]),_[A++]=nr}for(T=0;T<x;T++)if(M=xe(T),!!M){for(A=0,Je=null,Pr(M),T++;T<x;T++){if(P=xe(T),!P){if(d)continue;break}if(!m||!t.simplify){Pr(P);continue}var Nr=xe(T+1);if(N=je(P,M),!(!(b&&(A===0||A===x-1))&&N<ke(P,Nr)*C)){for(H=[(P[0]-M[0])/N,(P[1]-M[1])/N],z=M,Q=N,ee=ae=ie=0,X=!1,E=P,T++;T<r.length;T++){if(I=Nr,Nr=xe(T+1),!I){if(d)continue;break}if(V=[I[0]-M[0],I[1]-M[1]],ue=V[0]*H[1]-V[1]*H[0],ae=Math.min(ae,ue),ie=Math.max(ie,ue),ie-ae>ke(I,Nr))break;E=I,re=V[0]*H[0]+V[1]*H[1],re>Q?(Q=re,P=I,X=!1):re<ee&&(ee=re,z=I,X=!0)}if(X?(Pr(P),E!==z&&Pr(z)):(z!==M&&Pr(z),E!==P&&Pr(P)),Pr(E),T>=r.length||!I)break;Pr(I),M=I}}Je&&Te([Ze||Je[0],er||Je[1]]),y.push(_.slice(0,A))}var Ce=p.slice(p.length-1);if(f&&Ce!=="h"&&Ce!=="v"){for(var He=!1,cr=-1,Mr=[],vr=0;vr<y.length;vr++)for(var kr=0;kr<y[vr].length-1;kr++){var Er=y[vr][kr],jr=y[vr][kr+1],et=zce.applyBackoff(jr,Er);(et[0]!==jr[0]||et[1]!==jr[1])&&(He=!0),Mr[cr+1]||(cr++,Mr[cr]=[Er,[et[0],et[1]]])}return He?Mr:y}return y}});var aN=oe((u9e,tN)=>{"use strict";var rN={tonextx:1,tonexty:1,tonext:1};tN.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,d=0,h=-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]=d,d++):n.fill in rN&&h>=0?s=h:(s=h=d,d++),s<c&&(f=!0),n._groupIndex=c=s;var p=a.slice();f&&p.sort(function(b,y){var C=b[0].trace,x=y[0].trace;return C._groupIndex-x._groupIndex||C.index-x.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 rN&&(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 lN=oe((f9e,oN)=>{"use strict";var Kl=Lt(),Bce=_t(),Od=pr(),g2=Od.ensureSingle,iN=Od.identity,cn=da(),y2=Ti(),Ice=eN(),Hce=aN(),i3=gg().tester;oN.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=Hce(r,t,a);if(l=n.selectAll("g.trace").data(c,function(h){return h[0].trace.uid}),l.enter().append("g").attr("class",function(h){return"trace scatter trace"+h[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Oce(r,l,t),f){o&&(s=o());var d=Kl.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});d.each(function(){n.selectAll("g.trace").each(function(h,p){nN(r,p,t,h,c,this,i)})})}else l.each(function(h,p){nN(r,p,t,h,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Oce(e,r,t){r.each(function(a){var n=g2(Kl.select(this),"g","fills");cn.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,iN);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=g2(Kl.select(this),"path","js-fill")})})}function nN(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Uce(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Qe){return u?Qe.transition():Qe}var c=t.xaxis,d=t.yaxis,h=a[0].trace,p=h.line,m=Kl.select(i),b=g2(m,"g","errorbars"),y=g2(m,"g","lines"),C=g2(m,"g","points"),x=g2(m,"g","text");if(Bce.getComponentMethod("errorbars","plot")(e,b,t,o),h.visible!==!0)return;f(m).style("opacity",h.opacity);var _,A,T=h.fill.charAt(h.fill.length-1);T!=="x"&&T!=="y"&&(T="");var M,E;T==="y"?(M=1,E=d.c2p(0,!0)):T==="x"&&(M=0,E=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var P="",z=[],I=h._prevtrace,X=null,H=null;I&&(P=I._prevRevpath||"",A=I._nextFill,z=I._ownPolygons,X=I._fillsegments,H=I._fillElement);var V,N,Q="",ee="",re,ae,ie,ue,xe,De,Ye=[];h._polygons=[];var Ee=[],ke=[],je=Od.noop;if(_=h._ownFill,y2.hasLines(h)||h.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(re=cn.steps(p.shape),ae=cn.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?re=ae=function(Qe){var mr=Qe[Qe.length-1];return Qe.length>1&&Qe[0][0]===mr[0]&&Qe[0][1]===mr[1]?cn.smoothclosed(Qe.slice(1),p.smoothing):cn.smoothopen(Qe,p.smoothing)}:re=ae=function(Qe){return"M"+Qe.join("L")},ie=function(Qe){return ae(Qe.reverse())},ke=Ice(a,{xaxis:c,yaxis:d,trace:h,connectGaps:h.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:h.fill}),Ee=new Array(ke.length);var W=0;for(s=0;s<ke.length;s++){var le,de=ke[s];!le||!T?(le=de.slice(),Ee[W]=le,W++):le.push.apply(le,de)}h._fillElement=null,h._fillExclusionElement=H,h._fillsegments=Ee.slice(0,W),Ee=h._fillsegments,ke.length&&(ue=ke[0][0].slice(),xe=ke[ke.length-1],De=xe[xe.length-1].slice()),je=function(Qe){return function(mr){if(V=re(mr),N=ie(mr),Q?T?(Q+="L"+V.slice(1),ee=N+("L"+ee.slice(1))):(Q+="Z"+V,ee=N+"Z"+ee):(Q=V,ee=N),y2.hasLines(h)){var qr=Kl.select(this);if(qr.datum(a),Qe)f(qr.style("opacity",0).attr("d",V).call(cn.lineGroupStyle)).style("opacity",1);else{var Te=f(qr);Te.attr("d",V),cn.singleLineStyle(a,Te)}}}}}var K=y.selectAll(".js-line").data(ke);f(K.exit()).style("opacity",0).remove(),K.each(je(!1)),K.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(cn.lineGroupStyle).each(je(!0)),cn.setClipUrl(K,t.layerClipId,e);function J(Qe){f(Qe).attr("d","M0,0Z")}var fe=function(){var Qe=new Array(Ee.length);for(s=0;s<Ee.length;s++)Qe[s]=i3(Ee[s]);return Qe},be=function(Qe){var mr,qr;if(!Qe||Qe.length===0)for(mr=new Array(Ee.length),qr=0;qr<Ee.length;qr++){var Te=Ee[qr][0].slice(),Ue=Ee[qr][Ee[qr].length-1].slice();Te[M]=Ue[M]=E;var _r=[Ue,Te],Pr=_r.concat(Ee[qr]);mr[qr]=i3(Pr)}else{for(mr=new Array(Qe.length-1+Ee.length),qr=0;qr<Qe.length-1;qr++)mr[qr]=i3(Qe[qr]);var Nr=Qe[Qe.length-1].slice();for(Nr.reverse(),qr=0;qr<Ee.length;qr++)mr[Qe.length-1+qr]=i3(Ee[qr].concat(Nr))}return mr};ke.length?(_?(_.datum(a),ue&&De&&(T?(ue[M]=De[M]=E,f(_).attr("d","M"+De+"L"+ue+"L"+Q.slice(1)).call(cn.singleFillStyle,e),Ye=be(null)):(f(_).attr("d",Q+"Z").call(cn.singleFillStyle,e),Ye=fe())),h._polygons=Ye,h._fillElement=_):A&&(h.fill.slice(0,6)==="tonext"&&Q&&P?(h.fill==="tonext"?(f(A).attr("d",Q+"Z"+P+"Z").call(cn.singleFillStyle,e),Ye=fe(),h._polygons=Ye.concat(z)):(f(A).attr("d",Q+"L"+P.slice(1)+"Z").call(cn.singleFillStyle,e),Ye=be(X),h._polygons=Ye),h._fillElement=A):J(A)),h._prevRevpath=ee):(_?J(_):A&&J(A),h._prevRevpath=null),h._ownPolygons=Ye;function Ne(Qe){return Qe.filter(function(mr){return!mr.gap&&mr.vis})}function Ze(Qe){return Qe.filter(function(mr){return mr.vis})}function er(Qe){return Qe.filter(function(mr){return!mr.gap})}function Je(Qe){return Qe.id}function tr(Qe){if(Qe.ids)return Je}function ze(){return!1}function lr(Qe,mr,qr){var Te,Ue,_r,Pr=qr[0].trace,Nr=y2.hasMarkers(Pr),Ce=y2.hasText(Pr),He=tr(Pr),cr=ze,Mr=ze;if(Nr||Ce){var vr=iN,kr=Pr.stackgroup,Er=kr&&e._fullLayout._scatterStackOpts[c._id+d._id][kr].stackgaps==="infer zero";Pr.marker.maxdisplayed||Pr._needsCull?vr=Er?Ze:Ne:kr&&!Er&&(vr=er),Nr&&(cr=vr),Ce&&(Mr=vr)}Ue=Qe.selectAll("path.point"),Te=Ue.data(cr,He);var jr=Te.enter().append("path").classed("point",!0);u&&jr.call(cn.pointStyle,Pr,e).call(cn.translatePoints,c,d).style("opacity",0).transition().style("opacity",1),Te.order();var et;Nr&&(et=cn.makePointStyleFns(Pr)),Te.each(function(nr){var Cr=Kl.select(this),ar=f(Cr);_r=cn.translatePoint(nr,ar,c,d),_r?(cn.singlePointStyle(nr,ar,Pr,et,e),t.layerClipId&&cn.hideOutsideRangePoint(nr,ar,c,d,Pr.xcalendar,Pr.ycalendar),Pr.customdata&&Cr.classed("plotly-customdata",nr.data!==null&&nr.data!==void 0)):ar.remove()}),u?Te.exit().transition().style("opacity",0).remove():Te.exit().remove(),Ue=mr.selectAll("g"),Te=Ue.data(Mr,He),Te.enter().append("g").classed("textpoint",!0).append("text"),Te.order(),Te.each(function(nr){var Cr=Kl.select(this),ar=f(Cr.select("text"));_r=cn.translatePoint(nr,ar,c,d),_r?t.layerClipId&&cn.hideOutsideRangePoint(nr,Cr,c,d,Pr.xcalendar,Pr.ycalendar):Cr.remove()}),Te.selectAll("text").call(cn.textPointStyle,Pr,e).each(function(nr){var Cr=c.c2p(nr.x),ar=d.c2p(nr.y);Kl.select(this).selectAll("tspan.line").each(function(){f(Kl.select(this)).attr({x:Cr,y:ar})})}),Te.exit().remove()}C.datum(a),x.datum(a),lr(C,x,a);var dr=h.cliponaxis===!1,Ar=dr?null:t.layerClipId;cn.setClipUrl(C,Ar,e),cn.setClipUrl(x,Ar,e)}function Uce(e,r,t,a,n){var i=t.xaxis,o=t.yaxis,l=Kl.extent(Od.simpleMap(i.range,i.r2c)),s=Kl.extent(Od.simpleMap(o.range,o.r2c)),u=a[0].trace;if(y2.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]}),d=Math.ceil(c.length/f),h=0;n.forEach(function(m,b){var y=m[0].trace;y2.hasMarkers(y)&&y.marker.maxdisplayed>0&&b<r&&h++});var p=Math.round(h*d/3+Math.floor(h/3)*d/7.1);a.forEach(function(m){delete m.vis}),c.forEach(function(m,b){Math.round((b+p)%d)===0&&(m.vis=!0)})}}}});var M9=oe((c9e,sN)=>{"use strict";sN.exports={container:"marker",min:"cmin",max:"cmax"}});var fN=oe((v9e,uN)=>{"use strict";var o3=Ga();uN.exports=function(r,t,a){var n={},i={_fullLayout:a},o=o3.getFromTrace(i,t,"x"),l=o3.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=o3.tickText(o,o.c2l(s),!0).text,n.yLabel=o3.tickText(l,l.c2l(u),!0).text,n}});var Ud=oe((d9e,cN)=>{"use strict";var T9=Lt(),b2=da(),Gce=_t();function Yce(e){var r=T9.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=T9.select(this),n=t.trace||t[0].trace;k9(a,n,e)}),r.selectAll("g.text").each(function(t){var a=T9.select(this),n=t.trace||t[0].trace;C9(a,n,e)}),r.selectAll("g.trace path.js-line").call(b2.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(b2.fillGroupStyle,e,!1),Gce.getComponentMethod("errorbars","style")(r)}function k9(e,r,t){b2.pointStyle(e.selectAll("path.point"),r,t)}function C9(e,r,t){b2.textPointStyle(e.selectAll("text"),r,t)}function Vce(e,r,t){var a=r[0].trace;a.selectedpoints?(b2.selectedPointStyle(t.selectAll("path.point"),a),b2.selectedTextStyle(t.selectAll("text"),a)):(k9(t,a,e),C9(t,a,e))}cN.exports={style:Yce,stylePoints:k9,styleText:C9,styleOnSelect:Vce}});var S9=oe((h9e,vN)=>{"use strict";var _2=Nt(),Xce=Ti();vN.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&_2.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&_2.opacity(i)?i:o&&_2.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?_2.opacity(n)<.3?_2.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&_2.opacity(a)&&Xce.hasLines(r)&&r.line.width?a:r.fillcolor)}});var pN=oe((p9e,hN)=>{"use strict";var l3=pr(),dN=Wl(),jce=_t(),Wce=S9(),D9=Nt(),Zce=l3.fillText;hN.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],d=o.hoveron||"",h=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(d.indexOf("points")!==-1){var b=function(ee){if(p){var re=l.c2p(ee.xStart),ae=l.c2p(ee.xEnd);return u>=Math.min(re,ae)&&u<=Math.max(re,ae)?0:1/0}var ie=Math.max(3,ee.mrc||0),ue=1-1/ie,xe=Math.abs(l.c2p(ee.x)-u);return xe<ie?ue*xe/ie:xe-ie+ue},y=function(ee){if(m){var re=s.c2p(ee.yStart),ae=s.c2p(ee.yEnd);return f>=Math.min(re,ae)&&f<=Math.max(re,ae)?0:1/0}var ie=Math.max(3,ee.mrc||0),ue=1-1/ie,xe=Math.abs(s.c2p(ee.y)-f);return xe<ie?ue*xe/ie:xe-ie+ue},C=function(ee){var re=Math.max(h,ee.mrc||0),ae=l.c2p(ee.x)-u,ie=s.c2p(ee.y)-f;return Math.max(Math.sqrt(ae*ae+ie*ie)-re,1-h/re)},x=dN.getDistanceFunction(n,b,y,C);if(dN.getClosest(i,x,r),r.index!==!1){var _=i[r.index],A=l.c2p(_.x,!0),T=s.c2p(_.y,!0),M=_.mrc||1;r.index=_.i;var E=i[0].t.orientation,P=E&&(_.sNorm||_.s),z=E==="h"?P:_.orig_x!==void 0?_.orig_x:_.x,I=E==="v"?P:_.orig_y!==void 0?_.orig_y:_.y;return l3.extendFlat(r,{color:Wce(o,_),x0:A-M,x1:A+M,xLabelVal:z,y0:T-M,y1:T+M,yLabelVal:I,spikeDistance:C(_),hovertemplate:o.hovertemplate}),Zce(_,o,r),jce.getComponentMethod("errorbars","hoverInfo")(_,o,r),[r]}}function X(ee){if(!ee)return!1;var re=ee.node();try{var ae=new DOMPoint(c[0],c[1]);return re.isPointInFill(ae)}catch(ue){var ie=re.ownerSVGElement.createSVGPoint();return ie.x=c[0],ie.y=c[1],re.isPointInFill(ie)}}function H(ee){var re,ae=[],ie=1/0,ue=-1/0,xe=1/0,De=-1/0,Ye;for(re=0;re<ee.length;re++){var Ee=ee[re];Ee.contains(c)&&(ae.push(Ee),xe=Math.min(xe,Ee.ymin),De=Math.max(De,Ee.ymax))}if(ae.length===0)return null;xe=Math.max(xe,0),De=Math.min(De,s._length),Ye=(xe+De)/2;var ke,je,W,le,de,K,J;for(re=0;re<ae.length;re++)for(je=ae[re].pts,ke=1;ke<je.length;ke++)K=je[ke-1][1],J=je[ke][1],K>Ye!=J>=Ye&&(le=je[ke-1][0],de=je[ke][0],J-K&&(W=le+(de-le)*(Ye-K)/(J-K),ie=Math.min(ie,W),ue=Math.max(ue,W)));return ie=Math.max(ie,0),ue=Math.min(ue,l._length),{x0:ie,x1:ue,y0:Ye,y1:Ye}}if(d.indexOf("fills")!==-1&&o._fillElement){var V=X(o._fillElement)&&!X(o._fillExclusionElement);if(V){var N=H(o._polygons);N===null&&(N={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Q=D9.defaultLine;return D9.opacity(o.fillcolor)?Q=o.fillcolor:D9.opacity((o.line||{}).color)&&(Q=o.line.color),l3.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:Q,hovertemplate:!1}),delete r.index,o.text&&!l3.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var yN=oe((m9e,gN)=>{"use strict";var mN=Ti();gN.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,d=l.mode&&!mN.hasMarkers(l)&&!mN.hasText(l);if(d)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 _N=oe((g9e,bN)=>{"use strict";bN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var MN=oe((y9e,AN)=>{"use strict";var s3=_t().traceIs,F9=X6();AN.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&($ce(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function $ce(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Jce(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:!s3(i,"cartesian")||s3(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,wN(i,a)){var u=xN(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!s3(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=F9(f,l,s)}else if(i.type==="splom"){var d=i.dimensions,h=d[i._axesDim[t]];h.visible&&(e.type=F9(h.values,l,s))}else e.type=F9(i[a]||[i[a+"0"]],l,s)}}}function Jce(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(wN(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function xN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function wN(e,r){var t=xN(e),a=s3(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var kN=oe((b9e,TN)=>{"use strict";var Kce=ro().isTypedArraySpec;function Qce(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)}TN.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,o=Array.isArray(i)&&i.length>0||Kce(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=Qce(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var DN=oe((_9e,SN)=>{"use strict";var CN=Nt(),e1e=Il(),r1e=pr();SN.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(E,P){return r1e.coerce2(r,t,n.attributes,E,P)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=CN.mix(i,n.bgColor,n.blend||e1e.lightFraction),c=o("gridcolor",f),d=o("gridwidth"),h=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!d||!!h);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=CN.mix(t.gridcolor,n.bgColor,67),b=o("minor.gridcolor",m),y=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=a("minor.showgrid",!!b||!!y||!!C);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var _=o("zerolinelayer"),A=o("zerolinecolor",i),T=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!A||!!T);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var L9=oe((x9e,RN)=>{"use strict";var FN=Qt(),t1e=_t(),Gd=pr(),a1e=ka(),n1e=Vl(),E9=Yl(),EN=g6(),LN=b6(),i1e=w6(),o1e=A6(),l1e=kN(),s1e=DN(),u1e=hb(),qN=cm(),u3=(Hn(),xr(In)).WEEKDAY_PATTERN,f1e=(Hn(),xr(In)).HOUR_PATTERN;RN.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||"-",d;if(c==="date"){var h=t1e.getComponentMethod("calendars","handleDefaults");h(r,t,"calendar",n.calendar),n.noTicklabelmode||(d=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=Gd.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:d==="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"),qN(t,i),u1e(r,t,a,n),l1e(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),b=m!==E9.color.dflt?m:l.color,y=s.label||i._dfltTitle[o];if(o1e(r,t,a,c,n),!u)return t;a("title.text",y),Gd.coerceFont(a,"title.font",l,{overrideDflt:{size:Gd.bigFont(l.size),color:b}}),EN(r,t,a,c);var C=n.hasMinor;if(C&&(a1e.newContainer(t,"minor"),EN(r,t,a,c,{isMinor:!0})),i1e(r,t,a,c,n),LN(r,t,a,n),C){var x=n.isMinor;n.isMinor=!0,LN(r,t,a,n),n.isMinor=x}s1e(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:C,attributes:E9}),C&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var _=c==="multicategory";if(!n.noTickson&&(c==="category"||_)&&(t.ticks||t.showgrid)&&(_?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),_){var A=a("showdividers");A&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(n1e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:c1e}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var T=0;T<t.rangebreaks.length;T++)if(t.rangebreaks[T].pattern===u3){t._hasDayOfWeekBreaks=!0;break}if(qN(t,i),i._has("scattergl")||i._has("splom"))for(var M=0;M<n.data.length;M++){var E=n.data[M];(E.type==="scattergl"||E.type==="splom")&&(E.visible=!1,Gd.warn(E.type+" traces do not work on axes with rangebreaks. Setting trace "+E.index+" to `visible: false`."))}}return t};function c1e(e,r,t){function a(d,h){return Gd.coerce(e,r,E9.rangebreaks,d,h)}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=PN(i[l]),s){o=u3;break}}var u=a("pattern",o);if(u===u3)for(l=0;l<2;l++)s=PN(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case u3:if(!FN(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 f1e:if(!FN(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 v1e={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function PN(e){if(typeof e=="string")return v1e[e.slice(0,3).toLowerCase()]}});var q9=oe((w9e,zN)=>{"use strict";var d1e=Qt(),f3=pr();zN.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,d,h,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(d=s[l+"side"].split(" ")[0],h=s.domain[l][d==="right"||d==="top"?1:0])),c=c||[0,1],f=f||(d1e(r.position)?"free":i[0]||"free"),d=d||(l==="x"?"bottom":"left"),h=h||0,p=0,m=!1;var b=f3.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),y=f3.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:d}},"side");if(b==="free"){if(l==="y"){var C=a("autoshift");C&&(h=y==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=y==="left"?-3:3),a("shift",p)}a("position",h)}a("automargin",m);var x=!1;if(o.length&&(x=f3.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var _=a("domain",c);_[0]>_[1]-1/4096&&(t.domain=c),f3.noneOrAll(r.domain,t.domain,c),l==="x"?(a("domainpad.left"),a("domainpad.right")):(a("domainpad.top"),a("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var VN=oe((A9e,YN)=>{"use strict";var Tc=pr(),NN=Nt(),h1e=Pu().isUnifiedHover,p1e=Gb(),BN=ka(),m1e=F1(),IN=Yl(),g1e=MN(),HN=L9(),y1e=ld(),ON=q9(),R9=En(),Xs=R9.id2name,UN=R9.name2id,b1e=(Hn(),xr(In)).AX_ID_PATTERN,GN=_t(),c3=GN.traceIs,P9=GN.getComponentMethod;function v3(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}YN.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},d={},h={},p={},m,b;for(m=0;m<a.length;m++){var y=a[m];if(c3(y,"cartesian")){var C;if(y.xaxis)C=Xs(y.xaxis),v3(i,C,y);else if(y.xaxes)for(b=0;b<y.xaxes.length;b++)v3(i,Xs(y.xaxes[b]),y);var x;if(y.yaxis)x=Xs(y.yaxis),v3(i,x,y);else if(y.yaxes)for(b=0;b<y.yaxes.length;b++)v3(i,Xs(y.yaxes[b]),y);if(y.type==="funnel"?y.orientation==="h"?(C&&(o[C]=!0),x&&(c[x]=!0)):x&&(l[x]=!0):y.type==="image"?(x&&(d[x]=!0),C&&(d[C]=!0)):(x&&(u[x]=!0,f[x]=!0),(!c3(y,"carpet")||y.type==="carpet"&&!y._cheater)&&C&&(s[C]=!0)),y.type==="carpet"&&y._cheater&&C&&(o[C]=!0),c3(y,"2dMap")&&(h[C]=!0,h[x]=!0),c3(y,"oriented")){var _=y.orientation==="h"?x:C;p[_]=!0}}}var A=t._subplots,T=A.xaxis,M=A.yaxis,E=Tc.simpleMap(T,Xs),P=Tc.simpleMap(M,Xs),z=E.concat(P),I=NN.background;T.length&&M.length&&(I=Tc.coerce(r,t,m1e,"plot_bgcolor"));var X=NN.combine(I,t.paper_bgcolor),H,V,N,Q,ee;function re(){var Ue=i[H]||[];ee._traceIndices=Ue.map(function(_r){return _r.index}),ee._annIndices=[],ee._shapeIndices=[],ee._selectionIndices=[],ee._imgIndices=[],ee._subplotsWith=[],ee._counterAxes=[],ee._name=ee._attr=H,ee._id=V}function ae(Ue,_r){return Tc.coerce(Q,ee,IN,Ue,_r)}function ie(Ue,_r){return Tc.coerce2(Q,ee,IN,Ue,_r)}function ue(Ue){return Ue==="x"?M:T}function xe(Ue,_r){for(var Pr=Ue==="x"?E:P,Nr=[],Ce=0;Ce<Pr.length;Ce++){var He=Pr[Ce];He!==_r&&!(r[He]||{}).overlaying&&Nr.push(UN(He))}return Nr}var De={x:ue("x"),y:ue("y")},Ye=De.x.concat(De.y),Ee={},ke=[];function je(){var Ue=Q.matches;b1e.test(Ue)&&Ye.indexOf(Ue)===-1&&(Ee[Ue]=Q.type,ke=Object.keys(Ee))}var W=p1e(r,t),le=h1e(W);for(m=0;m<z.length;m++){H=z[m],V=UN(H),N=H.charAt(0),Tc.isPlainObject(r[H])||(r[H]={}),Q=r[H],ee=BN.newContainer(t,H,N+"axis"),re();var de=N==="x"&&!s[H]&&o[H]||N==="y"&&!u[H]&&l[H],K=N==="y"&&(!f[H]&&c[H]||d[H]),J={hasMinor:!0,letter:N,font:t.font,outerTicks:h[H],showGrid:!p[H],data:i[H]||[],bgColor:X,calendar:t.calendar,automargin:!0,visibleDflt:de,reverseDflt:K,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[N]||{})[V],noAutotickangles:N==="y"};ae("uirevision",t.uirevision),g1e(Q,ee,ae,J),HN(Q,ee,ae,J,t);var fe=le&&N===W.charAt(0),be=ie("spikecolor",le?ee.color:void 0),Ne=ie("spikethickness",le?1.5:void 0),Ze=ie("spikedash",le?"dot":void 0),er=ie("spikemode",le?"across":void 0),Je=ie("spikesnap"),tr=ae("showspikes",!!fe||!!be||!!Ne||!!Ze||!!er||!!Je);tr||(delete ee.spikecolor,delete ee.spikethickness,delete ee.spikedash,delete ee.spikemode,delete ee.spikesnap);var ze=Xs(Q.overlaying),lr=[0,1];if(t[ze]!==void 0){var dr=Xs(t[ze].anchor);t[dr]!==void 0&&(lr=t[dr].domain)}ON(Q,ee,ae,{letter:N,counterAxes:De[N],overlayableAxes:xe(N,H),grid:t.grid,overlayingDomain:lr}),ae("title.standoff"),je(),ee._input=Q}for(m=0;m<ke.length;){V=ke[m++],H=Xs(V),N=H.charAt(0),Tc.isPlainObject(r[H])||(r[H]={}),Q=r[H],ee=BN.newContainer(t,H,N+"axis"),re();var Ar={letter:N,font:t.font,outerTicks:h[H],showGrid:!p[H],data:[],bgColor:X,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[N]||{})[V]};ae("uirevision",t.uirevision),ee.type=Ee[V]||"linear",HN(Q,ee,ae,Ar,t),ON(Q,ee,ae,{letter:N,counterAxes:De[N],overlayableAxes:xe(N,H),grid:t.grid}),ae("fixedrange"),ae("modebardisable"),je(),ee._input=Q}var Qe=P9("rangeslider","handleDefaults"),mr=P9("rangeselector","handleDefaults");for(m=0;m<E.length;m++)H=E[m],Q=r[H],ee=t[H],Qe(r,t,H),ee.type==="date"&&mr(Q,ee,t,P,ee.calendar),ae("fixedrange"),ae("modebardisable");for(m=0;m<P.length;m++){H=P[m],Q=r[H],ee=t[H];var qr=t[Xs(ee.anchor)],Te=P9("rangeslider","isVisible")(qr);ae("fixedrange",Te),ae("modebardisable")}y1e.handleDefaults(r,t,{axIds:Ye.concat(ke).sort(R9.idSort),axHasImage:d})}});var WN=oe((M9e,jN)=>{"use strict";var _1e=Lt(),XN=_t(),d3=pr(),Lo=da(),h3=Ga();jN.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){h3.redrawComponents(r);return}function o(b){var y=b.xaxis,C=b.yaxis;i._defs.select("#"+b.clipId+"> rect").call(Lo.setTranslate,0,0).call(Lo.setScale,1,1),b.plot.call(Lo.setTranslate,y._offset,C._offset).call(Lo.setScale,1,1);var x=b.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(Lo.setPointGroupScale,1,1),x.selectAll(".textpoint").call(Lo.setTextPointsScale,1,1),x.call(Lo.hideOutsideRangePoints,b)}function l(b,y){var C=b.plotinfo,x=C.xaxis,_=C.yaxis,A=x._length,T=_._length,M=!!b.xr1,E=!!b.yr1,P=[];if(M){var z=d3.simpleMap(b.xr0,x.r2l),I=d3.simpleMap(b.xr1,x.r2l),X=z[1]-z[0],H=I[1]-I[0];P[0]=(z[0]*(1-y)+y*I[0]-z[0])/(z[1]-z[0])*A,P[2]=A*(1-y+y*H/X),x.range[0]=x.l2r(z[0]*(1-y)+y*I[0]),x.range[1]=x.l2r(z[1]*(1-y)+y*I[1])}else P[0]=0,P[2]=A;if(E){var V=d3.simpleMap(b.yr0,_.r2l),N=d3.simpleMap(b.yr1,_.r2l),Q=V[1]-V[0],ee=N[1]-N[0];P[1]=(V[1]*(1-y)+y*N[1]-V[1])/(V[0]-V[1])*T,P[3]=T*(1-y+y*ee/Q),_.range[0]=x.l2r(V[0]*(1-y)+y*N[0]),_.range[1]=_.l2r(V[1]*(1-y)+y*N[1])}else P[1]=0,P[3]=T;h3.drawOne(r,x,{skipTitle:!0}),h3.drawOne(r,_,{skipTitle:!0}),h3.redrawComponents(r,[x._id,_._id]);var re=M?A/P[2]:1,ae=E?T/P[3]:1,ie=M?P[0]:0,ue=E?P[1]:0,xe=M?P[0]/P[2]*A:0,De=E?P[1]/P[3]*T:0,Ye=x._offset-xe,Ee=_._offset-De;C.clipRect.call(Lo.setTranslate,ie,ue).call(Lo.setScale,1/re,1/ae),C.plot.call(Lo.setTranslate,Ye,Ee).call(Lo.setScale,re,ae),Lo.setPointGroupScale(C.zoomScalePts,1/re,1/ae),Lo.setTextPointsScale(C.zoomScaleTxt,1/re,1/ae)}var s;n&&(s=n());function u(){for(var b={},y=0;y<t.length;y++){var C=t[y],x=C.plotinfo.xaxis,_=C.plotinfo.yaxis;C.xr1&&(b[x._name+".range"]=C.xr1.slice()),C.yr1&&(b[_._name+".range"]=C.yr1.slice())}return s&&s(),XN.call("relayout",r,b).then(function(){for(var A=0;A<t.length;A++)o(t[A].plotinfo)})}function f(){for(var b={},y=0;y<t.length;y++){var C=t[y],x=C.plotinfo.xaxis,_=C.plotinfo.yaxis;C.xr0&&(b[x._name+".range"]=C.xr0.slice()),C.yr0&&(b[_._name+".range"]=C.yr0.slice())}return XN.call("relayout",r,b).then(function(){for(var A=0;A<t.length;A++)o(t[A].plotinfo)})}var c,d,h,p=_1e.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(h),h=null,f()});function m(){d=Date.now();for(var b=Math.min(1,(d-c)/a.duration),y=p(b),C=0;C<t.length;C++)l(t[C],y);d-c>a.duration?(u(),h=window.cancelAnimationFrame(m)):h=window.requestAnimationFrame(m)}return c=Date.now(),h=window.requestAnimationFrame(m),Promise.resolve()}});var z9=oe(hi=>{"use strict";var m3=Lt(),ZN=_t(),kc=pr(),x1e=Ln(),w1e=da(),$N=Pv().getModuleCalcData,V0=En(),Ql=(Hn(),xr(In)),A1e=(ec(),xr(Qf)),na=kc.ensureSingle;function p3(e,r,t){return kc.ensureSingle(e,r,t,function(a){a.datum(t)})}var Cc=Ql.zindexSeparator;hi.name="cartesian";hi.attr=["xaxis","yaxis"];hi.idRoot=["x","y"];hi.idRegex=Ql.idRegex;hi.attrRegex=Ql.attrRegex;hi.attributes=_N();hi.layoutAttributes=Yl();hi.supplyLayoutDefaults=VN();hi.transitionAxes=WN();hi.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 d=o[u].split("y");l[d[0]]=1,s["y"+d[1]]=1}for(u=0;u<a.length;u++)f=a[u],l[f]||(c=(e[V0.id2name(f)]||{}).anchor,Ql.idRegex.y.test(c)||(c="y"),i.push(f+c),o.push(f+c),s[c]||(s[c]=1,kc.pushUnique(n,c)));for(u=0;u<n.length;u++)c=n[u],s[c]||(f=(e[V0.id2name(c)]||{}).anchor,Ql.idRegex.x.test(f)||(f="x"),i.push(f+c),o.push(f+c),l[f]||(l[f]=1,kc.pushUnique(a,f)));if(!o.length){f="",c="";for(var h in e)if(Ql.attrRegex.test(h)){var p=h.charAt(0);p==="x"?(!f||+h.slice(5)<+f.slice(5))&&(f=h):(!c||+h.slice(5)<+c.slice(5))&&(c=h)}f=f?V0.name2id(f):"x",c=c?V0.name2id(c):"y",a.push(f),n.push(c),i.push(f+c)}};hi.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],d=n._plots[c];if(u>0){var h=d.id;if(h.indexOf(Cc)!==-1)continue;h+=Cc+(u+1),d=kc.extendFlat({},d,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}for(var p=[],m,b=0;b<o.length;b++){var y=o[b],C=y[0].trace;f===(C.zorder||0)&&C.xaxis+C.yaxis===c&&((r.indexOf(C.index)!==-1||C.carpet)&&(m&&m[0].trace.xaxis+m[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(C.fill)!==-1&&p.indexOf(m)===-1&&p.push(m),p.push(y)),m=y)}JN(e,d,p,t,a)}}};function JN(e,r,t,a,n){for(var i=Ql.traceLayerClasses,o=e._fullLayout,l=o._zindices,s=o._modules,u,f,c,d=[],h=[],p=0;p<l.length;p++)for(var m=l[p],b=0;b<s.length;b++){u=s[b];var y=u.name,C=ZN.modules[y].categories;if(C.svg){var x=u.layerName||y+"layer",_=x+(p?Number(p)+1:""),A=u.plot;f=$N(t,A,m),c=f[0],t=f[1],c.length&&d.push({i:i.indexOf(x),zindex:p,className:_,plotMethod:A,cdModule:c}),C.zoomScale&&h.push("."+_)}}d.sort(function(E,P){return(E.zindex||0)-(P.zindex||0)||E.i-P.i});var T=r.plot.selectAll("g.mlayer").data(d,function(E){return E.className});if(T.enter().append("g").attr("class",function(E){return E.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),T.exit().remove(),T.order(),T.each(function(E){var P=m3.select(this),z=E.className;E.plotMethod(e,r,E.cdModule,P,a,n),Ql.clipOnAxisFalseQuery.indexOf("."+z)===-1&&w1e.setClipUrl(P,r.layerClipId,e)}),o._has("scattergl")&&(u=ZN.getModule("scattergl"),c=$N(t,u)[0],u.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Ql.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),h.length)){var M=r.plot.selectAll(h.join(",")).selectAll(".trace");r.zoomScalePts=M.selectAll("path.point"),r.zoomScaleTxt=M.selectAll(".textpoint")}}hi.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 d=V0.listIds({_fullLayout:a});for(s=0;s<d.length;s++){var h=d[s];r[V0.id2name(h)]||a._infolayer.selectAll(".g-"+h+"title").remove()}}var p=a._has&&a._has("cartesian"),m=r._has&&r._has("cartesian");if(p&&!m)QN(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 b=o.cartesian[s];if(b.indexOf(Cc)===-1&&!i[b]){var y="."+b+",."+b+"-x,."+b+"-y";a._cartesianlayer.selectAll(y).remove(),eB(b,a)}}};hi.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(kc.sorterAsc);s.length||(s=[0]),r._zindices=s;var u=M1e(e),f=u.length,c=[];for(a=0;a<f;a++)c[a]=u[a].slice();for(var d=1;d<s.length;d++){var h=[];for(a=0;a<f;a++)h[a]=u[a].slice(),h[a][0]+=Cc+(d+1);c=c.concat(h)}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(QN,r),p.each(function(m){var b=m[0],y=b.indexOf(Cc),C=y!==-1,x=C?b.slice(0,y):b,_=r._plots[b];_||(_=kc.extendFlat({},r._plots[x]),_&&(_.id=b,r._plots[b]=_,r._subplots.cartesian.push(b))),_&&(_.plotgroup=m3.select(this),KN(e,_),C||(_.draglayer=na(r._draggers,"g",b)))})};hi.rangePlot=function(e,r,t){KN(e,r),JN(e,r,t),x1e.style(e)};function M1e(e){var r=e._fullLayout,t=r._zindices.length,a=r._subplots.cartesian,n=a.length,i,o,l,s,u,f,c=[],d=[];for(i=0;i<n;i++){l=a[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;var h=u._mainAxis,p=f._mainAxis,m=h._id+p._id,b=r._plots[m];s.overlays=[],m!==l&&b?(s.mainplot=m,s.mainplotinfo=b,d.push(l)):(s.mainplot=void 0,s.mainplotinfo=void 0,c.push(l))}for(i=0;i<d.length;i++)l=d[i],s=r._plots[l],s.mainplotinfo.overlays.push(s);var y=c.concat(d),C=[];for(i=0;i<n;i++){l=y[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;for(var x=[],_=1;_<=t;_++){var A="";for(_>1&&(A+=Cc+_),x.push(l+A),o=0;o<s.overlays.length;o++)x.push(s.overlays[o].id+A)}x=x.concat([u.layer,f.layer,u.overlaying||"",f.overlaying||""]),C.push(x)}return C}function KN(e,r){var t=e._fullLayout,a=r.plotgroup,n=r.id,i=n.indexOf(Cc),o=i!==-1,l=Ql.layerValue2layerClass[r.xaxis.layer],s=Ql.layerValue2layerClass[r.yaxis.layer],u=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=na(a,"path","xlines-above"),r.ylines=na(a,"path","ylines-above"),r.xaxislayer=na(a,"g","xaxislayer-above"),r.yaxislayer=na(a,"g","yaxislayer-above");else{if(!o){var d=na(a,"g","layer-subplot");r.shapelayer=na(d,"g","shapelayer"),r.imagelayer=na(d,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=na(a,"g","minor-gridlayer"),r.gridlayer=na(a,"g","gridlayer"),r.zerolinelayer=na(a,"g","zerolinelayer"));var h=na(a,"g","layer-between");r.shapelayerBetween=na(h,"g","shapelayer"),r.imagelayerBetween=na(h,"g","imagelayer"),na(a,"path","xlines-below"),na(a,"path","ylines-below"),r.overlinesBelow=na(a,"g","overlines-below"),na(a,"g","xaxislayer-below"),na(a,"g","yaxislayer-below"),r.overaxesBelow=na(a,"g","overaxes-below")}r.overplot=na(a,"g","overplot"),r.plot=na(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=na(a,"g","zerolinelayer-above"),o||(r.xlines=na(a,"path","xlines-above"),r.ylines=na(a,"path","ylines-above"),r.overlinesAbove=na(a,"g","overlines-above"),na(a,"g","xaxislayer-above"),na(a,"g","yaxislayer-above"),r.overaxesAbove=na(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",b=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,na(c.overlinesBelow,"path",m),na(c.overlinesBelow,"path",b),na(c.overaxesBelow,"g",m),na(c.overaxesBelow,"g",b),r.plot=na(c.overplot,"g",n),na(c.overlinesAbove,"path",m),na(c.overlinesAbove,"path",b),na(c.overaxesAbove,"g",m),na(c.overaxesAbove,"g",b),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+b),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+b)}o||(u||(p3(r.minorGridlayer,"g",r.xaxis._id),p3(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(y){return y[0]}).sort(V0.idSort),p3(r.gridlayer,"g",r.xaxis._id),p3(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(y){return y[0]}).sort(V0.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function QN(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=m3.select(this);f.remove(),eB(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 eB(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}hi.toSVG=function(e){var r=e._fullLayout._glimages,t=m3.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:A1e.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n)};hi.updateFx=U7().updateFx});var tB=oe((k9e,rB)=>{"use strict";var g3=Ti();rB.exports={hasLines:g3.hasLines,hasMarkers:g3.hasMarkers,hasText:g3.hasText,isBubble:g3.isBubble,attributes:_c(),layoutAttributes:Hp(),supplyDefaults:dz(),crossTraceDefaults:gz(),supplyLayoutDefaults:bz(),calc:r3().calc,crossTraceCalc:jz(),arraysToCalcdata:Nd(),plot:lN(),colorbar:M9(),formatLabels:fN(),style:Ud().style,styleOnSelect:Ud().styleOnSelect,hoverPoints:pN(),selectPoints:yN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:z9(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var iB=oe((C9e,nB)=>{"use strict";var T1e=Lt(),k1e=Nt(),aB=L7(),N9=pr(),C1e=N9.strScale,S1e=N9.strRotate,D1e=N9.strTranslate;nB.exports=function(r,t,a){var n=r.node(),i=aB[a.arrowhead||0],o=aB[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,d=o.backoff*s+a.startstandoff,h,p,m,b;if(n.nodeName==="line"){h={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var y=h.x-p.x,C=h.y-p.y;if(m=Math.atan2(C,y),b=m+Math.PI,c&&d&&c+d>Math.sqrt(y*y+C*C)){V();return}if(c){if(c*c>y*y+C*C){V();return}var x=c*Math.cos(m),_=c*Math.sin(m);p.x+=x,p.y+=_,r.attr({x2:p.x,y2:p.y})}if(d){if(d*d>y*y+C*C){V();return}var A=d*Math.cos(m),T=d*Math.sin(m);h.x-=A,h.y-=T,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),E="";if(M<c+d){V();return}var P=n.getPointAtLength(0),z=n.getPointAtLength(.1);m=Math.atan2(P.y-z.y,P.x-z.x),h=n.getPointAtLength(Math.min(d,M)),E="0px,"+d+"px,";var I=n.getPointAtLength(M),X=n.getPointAtLength(M-.1);b=Math.atan2(I.y-X.y,I.x-X.x),p=n.getPointAtLength(Math.max(0,M-c));var H=E?d+c:c;E+=M-H+"px,"+M+"px",r.style("stroke-dasharray",E)}function V(){r.style("stroke-dasharray","0px,100px")}function N(Q,ee,re,ae){Q.path&&(Q.noRotate&&(re=0),T1e.select(n.parentNode).append("path").attr({class:r.attr("class"),d:Q.path,transform:D1e(ee.x,ee.y)+S1e(re*180/Math.PI)+C1e(ae)}).style({fill:k1e.rgb(a.arrowcolor),"stroke-width":0}))}u&&N(o,h,m,s),f&&N(i,p,b,l)}});var y3=oe((S9e,fB)=>{"use strict";var oB=Lt(),B9=_t(),F1e=Ln(),j0=pr(),I9=j0.strTranslate,Vd=Ga(),Sc=Nt(),Yu=da(),lB=Wl(),H9=vi(),O9=z0(),Yd=el(),E1e=ka().arrayEditor,L1e=iB();fB.exports={draw:q1e,drawOne:sB,drawRaw:uB};function q1e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&sB(e,t);return F1e.previousPromises(e)}function sB(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=Vd.getFromId(e,a.xref),i=Vd.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),uB(e,a,r,!1,n,i)}function X0(e,r,t,a,n){var i=n[t],o=n[t+"ref"],l=t.indexOf("y")!==-1,s=Vd.getRefType(o)==="domain",u=l?a.h:a.w;return e?s?i+(l?-r:r)/e._length:e.p2r(e.r2p(i)+r):i+(l?-r:r)/u}function uB(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=E1e(e.layout,f,r),d=c.modifyBase,h=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){oB.selectAll("#"+m).remove();return}var b={x:{},y:{}},y=+r.textangle||0,C=o._infolayer.append("g").classed(u,!0).attr("data-index",String(t)).style("opacity",r.opacity),x=C.append("g").classed("annotation-text-g",!0),_=s[r.showarrow?"annotationTail":"annotationPosition"],A=r.captureevents||s.annotationText||_;function T(ae){var ie={index:t,annotation:r._input,fullAnnotation:r,event:ae};return a&&(ie.subplotId=a),ie}var M=x.append("g").style("pointer-events",A?"all":null).call(O9,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",T(oB.event))});r.hovertext&&M.on("mouseover",function(){var ae=r.hoverlabel,ie=ae.font,ue=this.getBoundingClientRect(),xe=e.getBoundingClientRect();lB.loneHover({x0:ue.left-xe.left,x1:ue.right-xe.left,y:(ue.top+ue.bottom)/2-xe.top,text:r.hovertext,color:ae.bgcolor,borderColor:ae.bordercolor,fontFamily:ie.family,fontSize:ie.size,fontColor:ie.color,fontWeight:ie.weight,fontStyle:ie.style,fontVariant:ie.variant,fontShadow:ie.fontShadow,fontLineposition:ie.fontLineposition,fontTextcase:ie.fontTextcase},{container:o._hoverlayer.node(),outerContainer:o._paper.node(),gd:e})}).on("mouseout",function(){lB.loneUnhover(o._hoverlayer.node())});var E=r.borderwidth,P=r.borderpad,z=E+P,I=M.append("rect").attr("class","bg").style("stroke-width",E+"px").call(Sc.stroke,r.bordercolor).call(Sc.fill,r.bgcolor),X=r.width||r.height,H=o._topclips.selectAll("#"+m).data(X?[0]:[]);H.enter().append("clipPath").classed("annclip",!0).attr("id",m).append("rect"),H.exit().remove();var V=r.font,N=o._meta?j0.templateString(r.text,o._meta):r.text,Q=M.append("text").classed("annotation-text",!0).text(N);function ee(ae){return ae.call(Yu.font,V).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),H9.convertToTspans(ae,e,re),ae}function re(){var ae=Q.selectAll("a");if(ae.size()===1&&ae.text()===Q.text()){var ie=M.insert("a",":first-child").attr({"xlink:xlink:href":ae.attr("xlink:href"),"xlink:xlink:show":ae.attr("xlink:show")}).style({cursor:"pointer"});ie.node().appendChild(I.node())}var ue=M.select(".annotation-text-math-group"),xe=!ue.empty(),De=Yu.bBox((xe?ue:Q).node()),Ye=De.width,Ee=De.height,ke=r.width||Ye,je=r.height||Ee,W=Math.round(ke+2*z),le=Math.round(je+2*z);function de(Fr,Wr){return Wr==="auto"&&(Fr<1/3?Wr="left":Fr>2/3?Wr="right":Wr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Wr]}for(var K=!1,J=["x","y"],fe=0;fe<J.length;fe++){var be=J[fe],Ne=r[be+"ref"]||be,Ze=r["a"+be+"ref"],er={x:n,y:i}[be],Je=(y+(be==="x"?0:-90))*Math.PI/180,tr=W*Math.cos(Je),ze=le*Math.sin(Je),lr=Math.abs(tr)+Math.abs(ze),dr=r[be+"anchor"],Ar=r[be+"shift"]*(be==="x"?1:-1),Qe=b[be],mr,qr,Te,Ue,_r,Pr=Vd.getRefType(Ne);if(er&&Pr!=="domain"){var Nr=er.r2fraction(r[be]);(Nr<0||Nr>1)&&(Ze===Ne?(Nr=er.r2fraction(r["a"+be]),(Nr<0||Nr>1)&&(K=!0)):K=!0),mr=er._offset+er.r2p(r[be]),Ue=.5}else{var Ce=Pr==="domain";be==="x"?(Te=r[be],mr=Ce?er._offset+er._length*Te:mr=l.l+l.w*Te):(Te=1-r[be],mr=Ce?er._offset+er._length*Te:mr=l.t+l.h*Te),Ue=r.showarrow?.5:Te}if(r.showarrow){Qe.head=mr;var He=r["a"+be];if(_r=tr*de(.5,r.xanchor)-ze*de(.5,r.yanchor),Ze===Ne){var cr=Vd.getRefType(Ze);cr==="domain"?(be==="y"&&(He=1-He),Qe.tail=er._offset+er._length*He):cr==="paper"?be==="y"?(He=1-He,Qe.tail=l.t+l.h*He):Qe.tail=l.l+l.w*He:Qe.tail=er._offset+er.r2p(He),qr=_r}else Qe.tail=mr+He,qr=_r+He;Qe.text=Qe.tail+_r;var Mr=o[be==="x"?"width":"height"];if(Ne==="paper"&&(Qe.head=j0.constrain(Qe.head,1,Mr-1)),Ze==="pixel"){var vr=-Math.max(Qe.tail-3,Qe.text),kr=Math.min(Qe.tail+3,Qe.text)-Mr;vr>0?(Qe.tail+=vr,Qe.text+=vr):kr>0&&(Qe.tail-=kr,Qe.text-=kr)}Qe.tail+=Ar,Qe.head+=Ar}else _r=lr*de(Ue,dr),qr=_r,Qe.text=mr+_r;Qe.text+=Ar,_r+=Ar,qr+=Ar,r["_"+be+"padplus"]=lr/2+qr,r["_"+be+"padminus"]=lr/2-qr,r["_"+be+"size"]=lr,r["_"+be+"shift"]=_r}if(K){M.remove();return}var Er=0,jr=0;if(r.align!=="left"&&(Er=(ke-Ye)*(r.align==="center"?.5:1)),r.valign!=="top"&&(jr=(je-Ee)*(r.valign==="middle"?.5:1)),xe)ue.select("svg").attr({x:z+Er-1,y:z+jr}).call(Yu.setClipUrl,X?m:null,e);else{var et=z+jr-De.top,nr=z+Er-De.left;Q.call(H9.positionText,nr,et).call(Yu.setClipUrl,X?m:null,e)}H.select("rect").call(Yu.setRect,z,z,ke,je),I.call(Yu.setRect,E/2,E/2,W-E,le-E),M.call(Yu.setTranslate,Math.round(b.x.text-W/2),Math.round(b.y.text-le/2)),x.attr({transform:"rotate("+y+","+b.x.text+","+b.y.text+")"});var Cr=function(Fr,Wr){C.selectAll(".annotation-arrow-g").remove();var Br=b.x.head,Zr=b.y.head,Ae=b.x.tail+Fr,Be=b.y.tail+Wr,or=b.x.text+Fr,hr=b.y.text+Wr,Dt=j0.rotationXYMatrix(y,or,hr),Wt=j0.apply2DTransform(Dt),ba=j0.apply2DTransform2(Dt),_a=+I.attr("width"),Xt=+I.attr("height"),Ht=or-.5*_a,la=Ht+_a,Pt=hr-.5*Xt,Ta=Pt+Xt,pa=[[Ht,Pt,Ht,Ta],[Ht,Ta,la,Ta],[la,Ta,la,Pt],[la,Pt,Ht,Pt]].map(ba);if(!pa.reduce(function($t,Na){return $t^!!j0.segmentsIntersect(Br,Zr,Br+1e6,Zr+1e6,Na[0],Na[1],Na[2],Na[3])},!1)){pa.forEach(function($t){var Na=j0.segmentsIntersect(Ae,Be,Br,Zr,$t[0],$t[1],$t[2],$t[3]);Na&&(Ae=Na.x,Be=Na.y)});var Xa=r.arrowwidth,dn=r.arrowcolor,ja=r.arrowside,Fa=C.append("g").style({opacity:Sc.opacity(dn)}).classed("annotation-arrow-g",!0),Rr=Fa.append("path").attr("d","M"+Ae+","+Be+"L"+Br+","+Zr).style("stroke-width",Xa+"px").call(Sc.stroke,Sc.rgb(dn));if(L1e(Rr,ja,r),s.annotationPosition&&Rr.node().parentNode&&!a){var Vt=Br,Et=Zr;if(r.standoff){var Zt=Math.sqrt(Math.pow(Br-Ae,2)+Math.pow(Zr-Be,2));Vt+=r.standoff*(Ae-Br)/Zt,Et+=r.standoff*(Be-Zr)/Zt}var ma=Fa.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ae-Vt)+","+(Be-Et),transform:I9(Vt,Et)}).style("stroke-width",Xa+6+"px").call(Sc.stroke,"rgba(0,0,0,0)").call(Sc.fill,"rgba(0,0,0,0)"),Ea,Rt;Yd.init({element:ma.node(),gd:e,prepFn:function(){var $t=Yu.getTranslate(M);Ea=$t.x,Rt=$t.y,n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0)},moveFn:function($t,Na){var Jn=Wt(Ea,Rt),Pi=Jn[0]+$t,Kn=Jn[1]+Na;M.call(Yu.setTranslate,Pi,Kn),h("x",X0(n,$t,"x",l,r)),h("y",X0(i,Na,"y",l,r)),r.axref===r.xref&&h("ax",X0(n,$t,"ax",l,r)),r.ayref===r.yref&&h("ay",X0(i,Na,"ay",l,r)),Fa.attr("transform",I9($t,Na)),x.attr({transform:"rotate("+y+","+Pi+","+Kn+")"})},doneFn:function(){B9.call("_guiRelayout",e,p());var $t=document.querySelector(".js-notes-box-panel");$t&&$t.redraw($t.selectedObj)}})}}};if(r.showarrow&&Cr(0,0),_){var ar;Yd.init({element:M.node(),gd:e,prepFn:function(){ar=x.attr("transform")},moveFn:function(Fr,Wr){var Br="pointer";if(r.showarrow)r.axref===r.xref?h("ax",X0(n,Fr,"ax",l,r)):h("ax",r.ax+Fr),r.ayref===r.yref?h("ay",X0(i,Wr,"ay",l.w,r)):h("ay",r.ay+Wr),Cr(Fr,Wr);else{if(a)return;var Zr,Ae;if(n)Zr=X0(n,Fr,"x",l,r);else{var Be=r._xsize/l.w,or=r.x+(r._xshift-r.xshift)/l.w-Be/2;Zr=Yd.align(or+Fr/l.w,Be,0,1,r.xanchor)}if(i)Ae=X0(i,Wr,"y",l,r);else{var hr=r._ysize/l.h,Dt=r.y-(r._yshift+r.yshift)/l.h-hr/2;Ae=Yd.align(Dt-Wr/l.h,hr,0,1,r.yanchor)}h("x",Zr),h("y",Ae),(!n||!i)&&(Br=Yd.getCursor(n?.5:Zr,i?.5:Ae,r.xanchor,r.yanchor))}x.attr({transform:I9(Fr,Wr)+ar}),O9(M,Br)},clickFn:function(Fr,Wr){r.captureevents&&e.emit("plotly_clickannotation",T(Wr))},doneFn:function(){O9(M),B9.call("_guiRelayout",e,p());var Fr=document.querySelector(".js-notes-box-panel");Fr&&Fr.redraw(Fr.selectedObj)}})}}s.annotationText?Q.call(H9.makeEditable,{delegate:M,gd:e}).call(ee).on("edit",function(ae){r.text=ae,this.call(ee),h("text",ae),n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0),B9.call("_guiRelayout",e,p())}):Q.call(ee)}});var mB=oe((D9e,pB)=>{"use strict";var cB=pr(),P1e=_t(),vB=ka().arrayEditor;pB.exports={hasClickToShow:R1e,onClick:z1e};function R1e(e,r){var t=hB(e,r);return t.on.length>0||t.explicitOff.length>0}function z1e(e,r){var t=hB(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=vB(e.layout,"annotations",o[a[l]]),s.modifyItem("visible",!0),cB.extendFlat(i,s.getUpdateObj());for(l=0;l<n.length;l++)s=vB(e.layout,"annotations",o[n[l]]),s.modifyItem("visible",!1),cB.extendFlat(i,s.getUpdateObj());return P1e.call("update",e,{},i)}}function hB(e,r){var t=e._fullLayout.annotations,a=[],n=[],i=[],o=(r||[]).length,l,s,u,f,c,d,h,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],d=c.xaxis,h=c.yaxis,d._id===u.xref&&h._id===u.yref&&d.d2r(c.x)===dB(u._xclick,d)&&h.d2r(c.y)===dB(u._yclick,h)){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 dB(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var G9=oe((F9e,gB)=>{"use strict";var U9=pr(),x2=Nt();gB.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=x2.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),U9.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),d,h;c.indexOf("end")!==-1&&(d=n("arrowhead"),h=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",d),n("startarrowsize",h)),n("arrowcolor",l?t.bordercolor:x2.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var b=n("hoverlabel.bgcolor",m.bgcolor||(x2.opacity(i)?x2.rgb(i):x2.defaultLine)),y=n("hoverlabel.bordercolor",m.bordercolor||x2.contrast(b)),C=U9.extendFlat({},m.font);C.color||(C.color=y),U9.coerceFont(n,"hoverlabel.font",C)}n("captureevents",!!p)}});var bB=oe((E9e,yB)=>{"use strict";var Y9=pr(),Dc=Ga(),N1e=Vl(),B1e=G9(),I1e=v2();yB.exports=function(r,t){N1e(r,t,{name:"annotations",handleItemDefaults:H1e})};function H1e(e,r,t){function a(x,_){return Y9.coerce(e,r,I1e,x,_)}var n=a("visible"),i=a("clicktoshow");if(n||i){B1e(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],d=Dc.coerceRef(e,r,u,c,"","paper");if(d!=="paper"){var h=Dc.getFromId(u,d);h._annIndices.push(r._index)}if(Dc.coercePosition(r,u,a,d,c,.5),o){var p="a"+c,m=Dc.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==d&&(m=r[p]="pixel");var b=m==="pixel"?s[f]:.4;Dc.coercePosition(r,u,a,m,p,b)}a(c+"anchor"),a(c+"shift")}if(Y9.noneOrAll(e,r,["x","y"]),o&&Y9.noneOrAll(e,r,["ax","ay"]),i){var y=a("xclick"),C=a("yclick");r._xclick=y===void 0?r.x:Dc.cleanPosition(y,u,r.xref),r._yclick=C===void 0?r.y:Dc.cleanPosition(C,u,r.yref)}}}});var wB=oe((L9e,xB)=>{"use strict";var V9=pr(),Fc=Ga(),O1e=y3().draw;xB.exports=function(r){var t=r._fullLayout,a=V9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return V9.syncOrAsync([O1e,U1e],r)};function U1e(e){var r=e._fullLayout;V9.filterVisible(r.annotations).forEach(function(t){var a=Fc.getFromId(e,t.xref),n=Fc.getFromId(e,t.yref),i=Fc.getRefType(t.xref),o=Fc.getRefType(t.yref);t._extremes={},i==="range"&&_B(t,a),o==="range"&&_B(t,n)})}function _B(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,d=c+f,h=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,b=p-f,y;if(l===o){var C=Fc.findExtremes(r,[r.r2c(n)],{ppadplus:d,ppadminus:h}),x=Fc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,b)});y={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else m=i?m+i:m,b=i?b-i:b,y=Fc.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,d,m),ppadminus:Math.max(u,h,b)});e._extremes[t]=y}});var MB=oe((q9e,AB)=>{"use strict";var G1e=Qt(),Y1e=qh();AB.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(h){var p=u[h],m=null;i?m=Y1e(p,t.range):m=Math.pow(10,p),G1e(m)||(m=null),n(f+h,m)}for(var d=0;d<l.length;d++)u=l[d],f="annotations["+d+"].",u[s+"ref"]===t._id&&c(s),u["a"+s+"ref"]===t._id&&c("a"+s)}});var CB=oe((P9e,kB)=>{"use strict";var X9=y3(),TB=mB();kB.exports={moduleType:"component",name:"annotations",layoutAttributes:v2(),supplyLayoutDefaults:bB(),includeBasePlot:kd()("annotations"),calcAutorange:wB(),draw:X9.draw,drawOne:X9.drawOne,drawRaw:X9.drawRaw,hasClickToShow:TB.hasClickToShow,onClick:TB.onClick,convertCoords:MB()}});var b3=oe((R9e,SB)=>{"use strict";var Sa=v2(),V1e=Zo().overrideAll,X1e=ka().templatedArray;SB.exports=V1e(X1e("annotation",{visible:Sa.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Sa.xanchor,xshift:Sa.xshift,yanchor:Sa.yanchor,yshift:Sa.yshift,text:Sa.text,textangle:Sa.textangle,font:Sa.font,width:Sa.width,height:Sa.height,opacity:Sa.opacity,align:Sa.align,valign:Sa.valign,bgcolor:Sa.bgcolor,bordercolor:Sa.bordercolor,borderpad:Sa.borderpad,borderwidth:Sa.borderwidth,showarrow:Sa.showarrow,arrowcolor:Sa.arrowcolor,arrowhead:Sa.arrowhead,startarrowhead:Sa.startarrowhead,arrowside:Sa.arrowside,arrowsize:Sa.arrowsize,startarrowsize:Sa.startarrowsize,arrowwidth:Sa.arrowwidth,standoff:Sa.standoff,startstandoff:Sa.startstandoff,hovertext:Sa.hovertext,hoverlabel:Sa.hoverlabel,captureevents:Sa.captureevents}),"calc","from-root")});var FB=oe((z9e,DB)=>{"use strict";var j9=pr(),j1e=Ga(),W1e=Vl(),Z1e=G9(),$1e=b3();DB.exports=function(r,t,a){W1e(r,t,{name:"annotations",handleItemDefaults:J1e,fullLayout:a.fullLayout})};function J1e(e,r,t,a){function n(l,s){return j9.coerce(e,r,$1e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],j1e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(Z1e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),j9.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),j9.noneOrAll(e,r,["ax","ay"])))}});var PB=oe((N9e,qB)=>{"use strict";var EB=pr(),LB=Ga();qB.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)K1e(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function K1e(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={},EB.extendFlat(e._xa,i),LB.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={},EB.extendFlat(e._ya,i),LB.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 zB=oe((B9e,RB)=>{"use strict";function W9(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 Q1e(e,r){var t=W9(e.projection,W9(e.view,W9(e.model,[r[0],r[1],r[2],1])));return t}RB.exports=Q1e});var BB=oe((I9e,NB)=>{"use strict";var e2e=y3().drawRaw,r2e=zB(),t2e=["x","y","z"];NB.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=t2e[s],f=o[u],c=t[u+"axis"],d=c.r2fraction(f);if(d<0||d>1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=r2e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),e2e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var OB=oe((H9e,HB)=>{"use strict";var a2e=_t(),IB=pr();HB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:b3()}}},layoutAttributes:b3(),handleDefaults:FB(),includeBasePlot:n2e,convert:PB(),draw:BB()};function n2e(e,r){var t=a2e.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&&(IB.pushUnique(r._basePlotModules,t),IB.pushUnique(r._subplots.gl3d,o))}}});var Z9=oe((G9e,VB)=>{"use strict";var O9e=(Hn(),xr(In)),UB=xi(),GB=_c().line,i2e=Fs().dash,es=Dn().extendFlat,o2e=ka().templatedArray,U9e=(Md(),xr(Ad)),w2=Wo(),YB=v2(),{shapeTexttemplateAttrs:l2e,templatefallbackAttrs:s2e}=Vf(),u2e=pp();VB.exports=o2e("shape",{visible:es({},w2.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:es({},w2.legend,{editType:"calc+arraydraw"}),legendgroup:es({},w2.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:es({},w2.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:UB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:es({},w2.legendrank,{editType:"calc+arraydraw"}),legendwidth:es({},w2.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:es({},YB.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:es({},YB.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:es({},GB.color,{editType:"arraydraw"}),width:es({},GB.width,{editType:"calc+arraydraw"}),dash:es({},i2e,{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:l2e({},{keys:Object.keys(u2e)}),texttemplatefallback:s2e({editType:"arraydraw"}),font:UB({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 jB=oe((Y9e,XB)=>{"use strict";var A2=pr(),qo=Ga(),f2e=Vl(),c2e=Z9(),Xd=O0();XB.exports=function(r,t){f2e(r,t,{name:"shapes",handleItemDefaults:d2e})};function v2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function d2e(e,r,t){function a(x,_){return A2.coerce(e,r,c2e,x,_)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),A2.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"),d=a("ysizemode");let h=[.25,.75],p=[0,10];["x","y"].forEach(x=>{var _=x+"anchor",A=x==="x"?c:d,T={_fullLayout:t},M,E,P,z;let I=x+"ref",X=e[I];if(Array.isArray(X)&&X.length>0){let H=Xd.countDefiningCoords(s,o,x);z=qo.coerceRefArray(e,r,T,x,void 0,"paper",H),r["_"+x+"refArray"]=!0}else z=qo.coerceRef(e,r,T,x,void 0,"paper");if(Array.isArray(z))z.forEach(function(H){qo.getRefType(H)==="range"&&(M=qo.getFromId(T,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let V=z[H];qo.getRefType(V)==="range"?(M=qo.getFromId(T,V),E=Xd.shapePositionToRange(M),P=Xd.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(x+H+"shift")):E=P=A2.identity;let Q=x+H,ee=e[Q];if(e[Q]=E(e[Q],!0),A==="pixel"?a(Q,p[H]):qo.coercePosition(r,T,a,V,Q,h[H]),r[Q]=P(r[Q]),e[Q]=ee,H===0&&A==="pixel"){let re=e[_];e[_]=E(e[_],!0),qo.coercePosition(r,T,a,V,_,.25),r[_]=P(r[_]),e[_]=re}});else{if(qo.getRefType(z)==="range"?(M=qo.getFromId(T,z),M._shapeIndices.push(r._index),P=Xd.rangeToShapePosition(M),E=Xd.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(x+"0shift"),a(x+"1shift"))):E=P=A2.identity,u){let V=x+"0",N=x+"1",Q=e[V],ee=e[N];e[V]=E(e[V],!0),e[N]=E(e[N],!0),A==="pixel"?(a(V,p[0]),a(N,p[1])):(qo.coercePosition(r,T,a,z,V,h[0]),qo.coercePosition(r,T,a,z,N,h[1])),r[V]=P(r[V]),r[N]=P(r[N]),e[V]=Q,e[N]=ee}if(A==="pixel"){let V=e[_];e[_]=E(e[_],!0),qo.coercePosition(r,T,a,z,_,.25),r[_]=P(r[_]),e[_]=V}}}),u&&A2.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",b,y;if(u&&(b=a("label.texttemplate"),a("label.texttemplatefallback")),b||(y=a("label.text")),y||b){a("label.textangle");var C=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",v2e(m,C)),a("label.padding"),A2.coerceFont(a,"label.font",t.font)}}});var $B=oe((V9e,ZB)=>{"use strict";var h2e=Nt(),WB=pr();function p2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}ZB.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"),WB.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",h2e.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",p2e(o,u)),a("newshape.label.padding"),WB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var aI=oe((X9e,tI)=>{"use strict";var $9=pr(),vl=Ga(),js=(ad(),xr(td)),J9=O0();tI.exports=function(r){var t=r._fullLayout,a=$9.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=vl.getRefType(i.xref),u=vl.getRefType(i.yref);if(s==="array"){let f=JB(r,i,"x");Object.entries(f).forEach(([c,d])=>{o=vl.getFromId(r,c),i._extremes[o._id]=vl.findExtremes(o,d,KB(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=vl.getFromId(r,i.xref),l=eI(o,i,js.paramIsX),l&&(i._extremes[o._id]=vl.findExtremes(o,l,KB(i))));if(u==="array"){let f=JB(r,i,"y");Object.entries(f).forEach(([c,d])=>{o=vl.getFromId(r,c),i._extremes[o._id]=vl.findExtremes(o,d,QB(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=vl.getFromId(r,i.yref),l=eI(o,i,js.paramIsY),l&&(i._extremes[o._id]=vl.findExtremes(o,l,QB(i))))}};function JB(e,r,t){let a=r[t+"ref"],n=t==="x"?js.paramIsX:js.paramIsY;function i(c,d){c==="paper"||vl.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(d))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(js.segmentRE)||[];for(var l=0,s=0;s<c.length;s++){let d=c[s],h=d.charAt(0),p=n[h].drawn;if(p===void 0)continue;let m=d.slice(1).match(js.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 d=vl.getFromId(e,c);if(d){var f=d.type==="category"||d.type==="multicategory"?d.r2c:d.d2c;d.type==="date"&&(f=J9.decodeDate(f)),u[d._id]=o[c].map(f)}}return u}function KB(e){return rI(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function QB(e){return rI(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function rI(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?J9.extractPathCoords(n,i?js.paramIsY:js.paramIsX):[t,a],u=$9.aggNums(Math.max,null,s),f=$9.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,d=u>0?u+o:o;return{ppad:o,ppadplus:l?c:d,ppadminus:l?d:c}}else return{ppad:o}}function eI(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,d=-1/0,h=r.path.match(js.segmentRE),p,m,b,y,C;for(e.type==="date"&&(u=J9.decodeDate(u)),p=0;p<h.length;p++)m=h[p],b=t[m.charAt(0)].drawn,b!==void 0&&(y=h[p].slice(1).match(js.paramRE),!(!y||y.length<b)&&(C=u(y[b]),C<c&&(c=C),C>d&&(d=C)));if(d>=c)return[c,d]}}});var oI=oe((j9e,iI)=>{"use strict";var nI=ig();iI.exports={moduleType:"component",name:"shapes",layoutAttributes:Z9(),supplyLayoutDefaults:jB(),supplyDrawNewShapeDefaults:$B(),includeBasePlot:kd()("shapes"),calcAutorange:aI(),draw:nI.draw,drawOne:nI.drawOne}});var K9=oe((Z9e,sI)=>{"use strict";var lI=(Hn(),xr(In)),m2e=ka().templatedArray,W9e=(Md(),xr(Ad));sI.exports=m2e("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",lI.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",lI.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var fI=oe(($9e,uI)=>{"use strict";var g2e=pr(),Q9=Ga(),y2e=Vl(),b2e=K9(),_2e="images";uI.exports=function(r,t){var a={name:_2e,handleItemDefaults:x2e};y2e(r,t,a)};function x2e(e,r,t){function a(d,h){return g2e.coerce(e,r,b2e,d,h)}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=Q9.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=Q9.getFromId(o,f);c._imgIndices.push(r._index)}Q9.coercePosition(r,o,a,f,u,0)}return r}});var hI=oe((J9e,dI)=>{"use strict";var cI=Lt(),w2e=da(),M2=Ga(),vI=En(),A2e=(ec(),xr(Qf));dI.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=vI.ref2id(s.xref)+vI.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(_){var A=cI.select(this);if(this._imgSrc!==_.source)if(A.attr("xmlns",A2e.svg),!r._context.staticPlot||_.source&&_.source.slice(0,5)==="data:")A.attr("xlink:href",_.source),this._imgSrc=_.source;else{var T=new Promise(function(M){var E=new Image;this.img=E,E.setAttribute("crossOrigin","anonymous"),E.onerror=P,E.onload=function(){var z=document.createElement("canvas");z.width=this.width,z.height=this.height;var I=z.getContext("2d",{willReadFrequently:!0});I.drawImage(this,0,0);var X=z.toDataURL("image/png");A.attr("xlink:href",X),M()},A.on("error",P),E.src=_.source,this._imgSrc=_.source;function P(){A.remove(),M()}}.bind(this));r._promises.push(T)}}function d(_){var A=cI.select(this),T=M2.getFromId(r,_.xref),M=M2.getFromId(r,_.yref),E=M2.getRefType(_.xref)==="domain",P=M2.getRefType(_.yref)==="domain",z=t._size,I,X;T!==void 0?I=typeof _.xref=="string"&&E?T._length*_.sizex:Math.abs(T.l2p(_.sizex)-T.l2p(0)):I=_.sizex*z.w,M!==void 0?X=typeof _.yref=="string"&&P?M._length*_.sizey:Math.abs(M.l2p(_.sizey)-M.l2p(0)):X=_.sizey*z.h;var H=I*f.x[_.xanchor].offset,V=X*f.y[_.yanchor].offset,N=f.x[_.xanchor].sizing+f.y[_.yanchor].sizing,Q,ee;switch(T!==void 0?Q=typeof _.xref=="string"&&E?T._length*_.x+T._offset:T.r2p(_.x)+T._offset:Q=_.x*z.w+z.l,Q+=H,M!==void 0?ee=typeof _.yref=="string"&&P?M._length*(1-_.y)+M._offset:M.r2p(_.y)+M._offset:ee=z.h-_.y*z.h+z.t,ee+=V,_.sizing){case"fill":N+=" slice";break;case"stretch":N="none";break}A.attr({x:Q,y:ee,width:I,height:X,preserveAspectRatio:N,opacity:_.opacity});var re=T&&M2.getRefType(_.xref)!=="domain"?T._id:"",ae=M&&M2.getRefType(_.yref)!=="domain"?M._id:"",ie=re+ae;w2e.setClipUrl(A,ie?"clip"+t._uid+ie:null,r)}function h(_){return[_.xref,_.x,_.sizex,_.yref,_.y,_.sizey].join("_")}function p(_,A){return _._index-A._index}var m=t._imageLowerLayer.selectAll("image").data(i,h),b=t._imageUpperLayer.selectAll("image").data(a,h);m.enter().append("image"),b.enter().append("image"),m.exit().remove(),b.exit().remove(),m.each(function(_){c.bind(this)(_),d.bind(this)(_)}),b.each(function(_){c.bind(this)(_),d.bind(this)(_)}),m.sort(p),b.sort(p);var y=Object.keys(t._plots);for(l=0;l<y.length;l++){o=y[l];var C=t._plots[o];if(C.imagelayer){var x=C.imagelayer.selectAll("image").data(n[o]||[],h);x.enter().append("image"),x.exit().remove(),x.each(function(_){c.bind(this)(_),d.bind(this)(_)}),x.sort(p)}}}});var gI=oe((K9e,mI)=>{"use strict";var pI=Qt(),M2e=qh();mI.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 d=u[s],h=u["size"+s],p=null,m=null;if(i){p=M2e(d,t.range);var b=h/Math.pow(10,p)/2;m=2*Math.log(b+Math.sqrt(1+b*b))/Math.LN10}else p=Math.pow(10,d),m=p*(Math.pow(10,h/2)-Math.pow(10,-h/2));pI(p)?pI(m)||(m=null):(p=null,m=null),n(f+s,p),n(f+"size"+s,m)}}}});var bI=oe((Q9e,yI)=>{"use strict";yI.exports={moduleType:"component",name:"images",layoutAttributes:K9(),supplyLayoutDefaults:fI(),includeBasePlot:kd()("images"),draw:hI(),convertCoords:gI()}});var _3={};Ua(_3,{activeColor:()=>Z2e,arrowOffsetX:()=>X2e,arrowPadX:()=>O2e,arrowSymbol:()=>J2e,autoMarginIdRoot:()=>z2e,blankHeaderOpts:()=>N2e,buttonClassName:()=>L2e,containerClassName:()=>k2e,dropdownButtonClassName:()=>E2e,dropdownButtonGroupClassName:()=>F2e,gapButton:()=>W2e,gapButtonHeader:()=>j2e,headerArrowClassName:()=>D2e,headerClassName:()=>S2e,headerGroupClassName:()=>C2e,hoverColor:()=>$2e,itemRectClassName:()=>q2e,itemTextClassName:()=>P2e,menuIndexAttrName:()=>R2e,minHeight:()=>I2e,minWidth:()=>B2e,name:()=>T2e,rx:()=>U2e,ry:()=>G2e,textOffsetX:()=>Y2e,textOffsetY:()=>V2e,textPadX:()=>H2e});var T2e,k2e,C2e,S2e,D2e,F2e,E2e,L2e,q2e,P2e,R2e,z2e,N2e,B2e,I2e,H2e,O2e,U2e,G2e,Y2e,V2e,X2e,j2e,W2e,Z2e,$2e,J2e,x3=Oa(()=>{"use strict";T2e="updatemenus",k2e="updatemenu-container",C2e="updatemenu-header-group",S2e="updatemenu-header",D2e="updatemenu-header-arrow",F2e="updatemenu-dropdown-button-group",E2e="updatemenu-dropdown-button",L2e="updatemenu-button",q2e="updatemenu-item-rect",P2e="updatemenu-item-text",R2e="updatemenu-active-index",z2e="updatemenu-",N2e={label:"  "},B2e=30,I2e=30,H2e=24,O2e=16,U2e=2,G2e=2,Y2e=12,V2e=3,X2e=4,j2e=5,W2e=2,Z2e="#F4FAFF",$2e="#F4FAFF",J2e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var e8=oe((e8e,xI)=>{"use strict";var K2e=xi(),Q2e=Il(),eve=Dn().extendFlat,rve=Zo().overrideAll,tve=mp(),_I=ka().templatedArray,ave=_I("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}});xI.exports=rve(_I("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:ave,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:eve(tve({editType:"arraydraw"}),{}),font:K2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Q2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var TI=oe((r8e,MI)=>{"use strict";var w3=pr(),wI=Vl(),AI=e8(),nve=(x3(),xr(_3)),ive=nve.name,ove=AI.buttons;MI.exports=function(r,t){var a={name:ive,handleItemDefaults:lve};wI(r,t,a)};function lve(e,r,t){function a(o,l){return w3.coerce(e,r,AI,o,l)}var n=wI(e,r,{name:"buttons",handleItemDefaults:sve}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),w3.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),w3.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function sve(e,r){function t(n,i){return w3.coerce(e,r,ove,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 SI=oe((t8e,CI)=>{"use strict";CI.exports=Ka;var rs=Lt(),kI=Nt(),T2=da(),A3=pr();function Ka(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})}Ka.barWidth=2;Ka.barLength=20;Ka.barRadius=2;Ka.barPad=1;Ka.barColor="#808BA4";Ka.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,d=c==="down",h=c==="left",p=c==="right",m=c==="up",b=s,y=f,C,x,_,A;!d&&!h&&!p&&!m&&(this.position.direction="down",d=!0);var T=d||m;T?(C=l,x=C+b,d?(_=u,A=Math.min(_+y,o),y=A-_):(A=u+y,_=Math.max(A-y,0),y=A-_)):(_=u,A=_+y,h?(x=l+b,C=Math.max(x-b,0),b=x-C):(C=l,x=Math.min(C+b,i),b=x-C)),this._box={l:C,t:_,w:b,h:y};var M=s>b,E=Ka.barLength+2*Ka.barPad,P=Ka.barWidth+2*Ka.barPad,z=l,I=u+f;I+P>o&&(I=o-P);var X=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(kI.fill,Ka.barColor),M?(this.hbar=X.attr({rx:Ka.barRadius,ry:Ka.barRadius,x:z,y:I,width:E,height:P}),this._hbarXMin=z+E/2,this._hbarTranslateMax=b-E):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=f>y,V=Ka.barWidth+2*Ka.barPad,N=Ka.barLength+2*Ka.barPad,Q=l+s,ee=u;Q+V>i&&(Q=i-V);var re=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);re.exit().on(".drag",null).remove(),re.enter().append("rect").classed("scrollbar-vertical",!0).call(kI.fill,Ka.barColor),H?(this.vbar=re.attr({rx:Ka.barRadius,ry:Ka.barRadius,x:Q,y:ee,width:V,height:N}),this._vbarYMin=ee+N/2,this._vbarTranslateMax=y-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ae=this.id,ie=C-.5,ue=H?x+V+.5:x+.5,xe=_-.5,De=M?A+P+.5:A+.5,Ye=n._topdefs.selectAll("#"+ae).data(M||H?[0]:[]);if(Ye.exit().remove(),Ye.enter().append("clipPath").attr("id",ae).append("rect"),M||H?(this._clipRect=Ye.select("rect").attr({x:Math.floor(ie),y:Math.floor(xe),width:Math.ceil(ue)-Math.floor(ie),height:Math.ceil(De)-Math.floor(xe)}),this.container.call(T2.setClipUrl,ae,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(T2.setClipUrl,null),delete this._clipRect),M||H){var Ee=rs.behavior.drag().on("dragstart",function(){rs.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ee);var ke=rs.behavior.drag().on("dragstart",function(){rs.event.sourceEvent.preventDefault(),rs.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(ke),H&&this.vbar.on(".drag",null).call(ke)}this.setTranslate(t,a)};Ka.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(T2.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)};Ka.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=rs.event.dx),this.vbar&&(t-=rs.event.dy),this.setTranslate(r,t)};Ka.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=rs.event.deltaY),this.vbar&&(t+=rs.event.deltaY),this.setTranslate(r,t)};Ka.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=A3.constrain(rs.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=A3.constrain(rs.event.y,s,u),c=(f-s)/(u-s),d=this.position.h-this._box.h;t=c*d}this.setTranslate(r,t)};Ka.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=A3.constrain(r||0,0,a),t=A3.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(T2.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(T2.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(T2.setTranslate,r,t+o*this._vbarTranslateMax)}}});var BI=oe((a8e,NI)=>{"use strict";var k2=Lt(),jd=Ln(),Wd=Nt(),C2=da(),Po=pr(),M3=vi(),uve=ka().arrayEditor,FI=(ci(),xr(fi)).LINE_SPACING,mt=(x3(),xr(_3)),fve=SI();NI.exports=function(r){var t=r._fullLayout,a=Po.filterVisible(t[mt.name]);function n(d){jd.autoMargin(r,RI(d))}var i=t._menulayer.selectAll("g."+mt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(mt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){k2.select(this).selectAll("g."+mt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+mt.headerGroupClassName).data(a,cve);o.enter().append("g").classed(mt.headerGroupClassName,!0);for(var l=Po.ensureSingle(i,"g",mt.dropdownButtonGroupClassName,function(d){d.style("pointer-events","all")}),s=0;s<a.length;s++){var u=a[s];gve(r,u)}var f="updatemenus"+t._uid,c=new fve(r,l,f);o.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(t8)),o.exit().each(function(d){l.call(t8),n(d)}).remove(),o.each(function(d){var h=k2.select(this),p=d.type==="dropdown"?l:null;jd.manageCommandObserver(r,d,d.buttons,function(m){r8(r,d,d.buttons[m.index],h,p,c,m.index,!0)}),d.type==="dropdown"?(LI(r,h,l,c,d),EI(l,d)&&Zd(r,h,l,c,d)):Zd(r,h,null,null,d)})}};function cve(e){return e._index}function vve(e){return+e.attr(mt.menuIndexAttrName)==-1}function EI(e,r){return+e.attr(mt.menuIndexAttrName)===r._index}function r8(e,r,t,a,n,i,o,l){r.active=o,uve(e.layout,mt.name,r).applyUpdate("active",o),r.type==="buttons"?Zd(e,a,null,null,r):r.type==="dropdown"&&(n.attr(mt.menuIndexAttrName,"-1"),LI(e,a,n,i,r),l||Zd(e,a,n,i,r))}function LI(e,r,t,a,n){var i=Po.ensureSingle(r,"g",mt.headerClassName,function(d){d.style("pointer-events","all")}),o=n._dims,l=n.active,s=n.buttons[l]||mt.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(a8,n,s,e).call(zI,n,u,f);var c=Po.ensureSingle(r,"text",mt.headerArrowClassName,function(d){d.attr("text-anchor","end").call(C2.font,n.font).text(mt.arrowSymbol[n.direction])});c.attr({x:o.headerWidth-mt.arrowOffsetX+n.pad.l,y:o.headerHeight/2+mt.textOffsetY+n.pad.t}),i.on("click",function(){t.call(t8,String(EI(t,n)?-1:n._index)),Zd(e,r,t,a,n)}),i.on("mouseover",function(){i.call(qI)}),i.on("mouseout",function(){i.call(PI,n)}),C2.setTranslate(r,o.lx,o.ly)}function Zd(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!vve(t)||n.type==="buttons"?n.buttons:[],o=n.type==="dropdown"?mt.dropdownButtonClassName:mt.buttonClassName,l=t.selectAll("g."+o).data(Po.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,d=n._dims,h=["up","down"].indexOf(n.direction)!==-1;n.type==="dropdown"&&(h?c=d.headerHeight+mt.gapButtonHeader:f=d.headerWidth+mt.gapButtonHeader),n.type==="dropdown"&&n.direction==="up"&&(c=-mt.gapButtonHeader+mt.gapButton-d.openHeight),n.type==="dropdown"&&n.direction==="left"&&(f=-mt.gapButtonHeader+mt.gapButton-d.openWidth);var p={x:d.lx+f+n.pad.l,y:d.ly+c+n.pad.t,yPad:mt.gapButton,xPad:mt.gapButton,index:0},m={l:p.x+n.borderwidth,t:p.y+n.borderwidth};l.each(function(b,y){var C=k2.select(this);C.call(a8,n,b,e).call(zI,n,p),C.on("click",function(){k2.event.defaultPrevented||(b.execute&&(b.args2&&n.active===y?(r8(e,n,b,r,t,a,-1),jd.executeAPICommand(e,b.method,b.args2)):(r8(e,n,b,r,t,a,y),jd.executeAPICommand(e,b.method,b.args))),e.emit("plotly_buttonclicked",{menu:n,button:b,active:n.active}))}),C.on("mouseover",function(){C.call(qI)}),C.on("mouseout",function(){C.call(PI,n),l.call(DI,n)})}),l.call(DI,n),h?(m.w=Math.max(d.openWidth,d.headerWidth),m.h=p.y-m.t):(m.w=p.x-m.l,m.h=Math.max(d.openHeight,d.headerHeight)),m.direction=n.direction,a&&(l.size()?dve(e,r,t,a,n,m):hve(a))}function dve(e,r,t,a,n,i){var o=n.direction,l=o==="up"||o==="down",s=n._dims,u=n.active,f,c,d;if(l)for(c=0,d=0;d<u;d++)c+=s.heights[d]+mt.gapButton;else for(f=0,d=0;d<u;d++)f+=s.widths[d]+mt.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 hve(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 a8(e,r,t,a){e.call(pve,r).call(mve,r,t,a)}function pve(e,r){var t=Po.ensureSingle(e,"rect",mt.itemRectClassName,function(a){a.attr({rx:mt.rx,ry:mt.ry,"shape-rendering":"crispEdges"})});t.call(Wd.stroke,r.bordercolor).call(Wd.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function mve(e,r,t,a){var n=Po.ensureSingle(e,"text",mt.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),i=t.label,o=a._fullLayout._meta;o&&(i=Po.templateString(i,o)),n.call(C2.font,r.font).text(i).call(M3.convertToTspans,a)}function DI(e,r){var t=r.active;e.each(function(a,n){var i=k2.select(this);n===t&&r.showactive&&i.select("rect."+mt.itemRectClassName).call(Wd.fill,mt.activeColor)})}function qI(e){e.select("rect."+mt.itemRectClassName).call(Wd.fill,mt.hoverColor)}function PI(e,r){e.select("rect."+mt.itemRectClassName).call(Wd.fill,r.bgcolor)}function gve(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=C2.tester.selectAll("g."+mt.dropdownButtonClassName).data(Po.filterVisible(r.buttons));a.enter().append("g").classed(mt.dropdownButtonClassName,!0);var n=["up","down"].indexOf(r.direction)!==-1;a.each(function(f,c){var d=k2.select(this);d.call(a8,r,f,e);var h=d.select("."+mt.itemTextClassName),p=h.node()&&C2.bBox(h.node()).width,m=Math.max(p+mt.textPadX,mt.minWidth),b=r.font.size*FI,y=M3.lineCount(h),C=Math.max(b*y,mt.minHeight)+mt.textOffsetY;C=Math.ceil(C),m=Math.ceil(m),t.widths[c]=m,t.heights[c]=C,t.height1=Math.max(t.height1,C),t.width1=Math.max(t.width1,m),n?(t.totalWidth=Math.max(t.totalWidth,m),t.openWidth=t.totalWidth,t.totalHeight+=C+mt.gapButton,t.openHeight+=C+mt.gapButton):(t.totalWidth+=m+mt.gapButton,t.openWidth+=m+mt.gapButton,t.totalHeight=Math.max(t.totalHeight,C),t.openHeight=t.totalHeight)}),n?t.totalHeight-=mt.gapButton:t.totalWidth-=mt.gapButton,t.headerWidth=t.width1+mt.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(n?(t.width1+=mt.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=mt.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";Po.isRightAnchor(r)&&(t.lx-=i,s="right"),Po.isCenterAnchor(r)&&(t.lx-=i/2,s="center");var u="top";Po.isBottomAnchor(r)&&(t.ly-=o,u="bottom"),Po.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),jd.autoMargin(e,RI(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 RI(e){return mt.autoMarginIdRoot+e._index}function zI(e,r,t,a){a=a||{};var n=e.select("."+mt.itemRectClassName),i=e.select("."+mt.itemTextClassName),o=r.borderwidth,l=t.index,s=r._dims;C2.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*FI,d=M3.lineCount(i),h=(d-1)*c/2;M3.positionText(i,mt.textOffsetX,f/2-h+mt.textOffsetY),u?t.y+=s.heights[l]+t.yPad:t.x+=s.widths[l]+t.xPad,t.index++}function t8(e,r){e.attr(mt.menuIndexAttrName,r||"-1").selectAll("g."+mt.dropdownButtonClassName).remove()}});var HI=oe((n8e,II)=>{"use strict";var yve=(x3(),xr(_3));II.exports={moduleType:"component",name:yve.name,layoutAttributes:e8(),supplyLayoutDefaults:TI(),draw:BI()}});var $d={};Ua($d,{arrowOffsetX:()=>Bve,autoMarginIdRoot:()=>Pve,containerClassName:()=>_ve,currentValueClass:()=>Eve,currentValueInset:()=>cde,currentValuePadding:()=>fde,gripBgActiveColor:()=>ede,gripBgColor:()=>Qve,gripBorder:()=>$ve,gripBorderColor:()=>Kve,gripBorderWidth:()=>Jve,gripHeight:()=>Zve,gripRadius:()=>jve,gripRectClass:()=>Tve,gripWidth:()=>Wve,groupClassName:()=>xve,inputAreaClass:()=>wve,inputProxyClass:()=>Cve,labelClass:()=>Fve,labelGroupClass:()=>Dve,labelOffset:()=>tde,labelPadding:()=>rde,labelsClass:()=>Sve,menuIndexAttrName:()=>qve,minHeight:()=>zve,minWidth:()=>Rve,minorTickColor:()=>sde,minorTickLength:()=>ude,minorTickOffset:()=>lde,name:()=>bve,railBgColor:()=>Yve,railBorder:()=>Ove,railBorderColor:()=>Gve,railBorderWidth:()=>Uve,railHeight:()=>Lve,railInset:()=>Vve,railRadius:()=>Ive,railRectClass:()=>Ave,railTouchRectClass:()=>Mve,railWidth:()=>Hve,stepInset:()=>Xve,textPadX:()=>Nve,tickColor:()=>nde,tickLength:()=>ode,tickOffset:()=>ide,tickRectClass:()=>kve,tickWidth:()=>ade});var bve,_ve,xve,wve,Ave,Mve,Tve,kve,Cve,Sve,Dve,Fve,Eve,Lve,qve,Pve,Rve,zve,Nve,Bve,Ive,Hve,Ove,Uve,Gve,Yve,Vve,Xve,jve,Wve,Zve,$ve,Jve,Kve,Qve,ede,rde,tde,ade,nde,ide,ode,lde,sde,ude,fde,cde,Jd=Oa(()=>{"use strict";bve="sliders",_ve="slider-container",xve="slider-group",wve="slider-input-area",Ave="slider-rail-rect",Mve="slider-rail-touch-rect",Tve="slider-grip-rect",kve="slider-tick-rect",Cve="slider-input-proxy",Sve="slider-labels",Dve="slider-label-group",Fve="slider-label",Eve="slider-current-value",Lve=5,qve="slider-active-index",Pve="slider-",Rve=30,zve=30,Nve=40,Bve=4,Ive=2,Hve=5,Ove=4,Uve=1,Gve="#bec8d9",Yve="#f8fafc",Vve=8,Xve=10,jve=10,Wve=20,Zve=20,$ve=20,Jve=1,Kve="#bec8d9",Qve="#f6f8fa",ede="#dbdde0",rde=8,tde=0,ade=1,nde="#333",ide=25,ode=7,lde=25,sde="#333",ude=4,fde=8,cde=0});var n8=oe((i8e,GI)=>{"use strict";var OI=xi(),vde=mp(),dde=Dn().extendDeepAll,hde=Zo().overrideAll,pde=Tv(),UI=ka().templatedArray,Ec=(Jd(),xr($d)),mde=UI("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}});GI.exports=hde(UI("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:mde,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:dde(vde({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:pde.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:OI({})},font:OI({}),activebgcolor:{valType:"color",dflt:Ec.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ec.railBgColor},bordercolor:{valType:"color",dflt:Ec.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ec.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ec.tickLength},tickcolor:{valType:"color",dflt:Ec.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ec.minorTickLength}}),"arraydraw","from-root")});var jI=oe((o8e,XI)=>{"use strict";var S2=pr(),YI=Vl(),VI=n8(),gde=(Jd(),xr($d)),yde=gde.name,bde=VI.steps;XI.exports=function(r,t){YI(r,t,{name:yde,handleItemDefaults:_de})};function _de(e,r,t){function a(c,d){return S2.coerce(e,r,VI,c,d)}for(var n=YI(e,r,{name:"steps",handleItemDefaults:xde}),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=S2.filterVisible(n),u=a("active");(n[u]||{}).visible||(r.active=s[0]._index),a("x"),a("y"),S2.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"),S2.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),S2.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 xde(e,r){function t(i,o){return S2.coerce(e,r,bde,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 aH=oe((l8e,tH)=>{"use strict";var ts=Lt(),T3=Ln(),W0=Nt(),as=da(),Ro=pr(),wde=Ro.strTranslate,Kd=vi(),Ade=ka().arrayEditor,St=(Jd(),xr($d)),l8=(ci(),xr(fi)),$I=l8.LINE_SPACING,i8=l8.FROM_TL,o8=l8.FROM_BR;tH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Mde(a,r),i=a._infolayer.selectAll("g."+St.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(St.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),T3.autoMargin(r,JI(f))}if(i.exit().each(function(){ts.select(this).selectAll("g."+St.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+St.groupClassName).data(n,Tde);l.enter().append("g").classed(St.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s<n.length;s++){var u=n[s];kde(r,u)}l.each(function(f){var c=ts.select(this);Ede(f),T3.manageCommandObserver(r,f,f._visibleSteps,function(d){var h=c.data()[0];h.active!==d.index&&(h._dragging||QI(r,c,h,d.index,!1,!0))}),Cde(r,ts.select(this),f)})}};function JI(e){return St.autoMarginIdRoot+e._index}function Mde(e,r){for(var t=e[St.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function Tde(e){return e._index}function kde(e,r){var t=as.tester.selectAll("g."+St.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(St.labelGroupClass,!0);var a=0,n=0;t.each(function(p){var m=ts.select(this),b=KI(m,{step:p},r),y=b.node();if(y){var C=as.bBox(y);n=Math.max(n,C.height),a=Math.max(a,C.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(St.railWidth,St.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*St.stepInset,s=l/(r._stepCount-1),u=a+St.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=as.tester.append("g");t.each(function(p){var m=k3(f,r,p.label),b=m.node()&&as.bBox(m.node())||{width:0,height:0},y=Kd.lineCount(m);i.currentValueMaxWidth=Math.max(i.currentValueMaxWidth,Math.ceil(b.width)),i.currentValueHeight=Math.max(i.currentValueHeight,Math.ceil(b.height)),i.currentValueMaxLines=Math.max(i.currentValueMaxLines,y)}),i.currentValueTotalHeight=i.currentValueHeight+r.currentvalue.offset,f.remove()}i.height=i.currentValueTotalHeight+St.tickOffset+r.ticklen+St.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";Ro.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),Ro.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var d="top";Ro.isBottomAnchor(r)&&(i.ly-=i.height,d="bottom"),Ro.isMiddleAnchor(r)&&(i.ly-=i.height/2,d="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 h={y:r.y,b:i.height*o8[d],t:i.height*i8[d]};r.lenmode==="fraction"?(h.l=0,h.xl=r.x-r.len*i8[c],h.r=0,h.xr=r.x+r.len*o8[c]):(h.x=r.x,h.l=i.outerLength*i8[c],h.r=i.outerLength*o8[c]),T3.autoMargin(e,JI(r),h)}function Cde(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(k3,t).call(qde,t).call(Dde,t).call(Fde,t).call(Lde,e,t).call(Sde,e,t);var a=t._dims;as.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(rH,t,!1),r.call(k3,t)}function k3(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-St.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=St.currentValueInset,i="left"}var o=Ro.ensureSingle(e,"text",St.labelClass,function(d){d.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=Ro.templateString(s,u)),l+=s}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),o.call(as.font,r.currentvalue.font).text(l).call(Kd.convertToTspans,r._gd);var f=Kd.lineCount(o),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*$I;return Kd.positionText(o,n,c),o}}function Sde(e,r,t){var a=Ro.ensureSingle(e,"rect",St.gripRectClass,function(n){n.call(eH,r,e,t).style("pointer-events","all")});a.attr({width:St.gripWidth,height:St.gripHeight,rx:St.gripRadius,ry:St.gripRadius}).call(W0.stroke,t.bordercolor).call(W0.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function KI(e,r,t){var a=Ro.ensureSingle(e,"text",St.labelClass,function(o){o.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=Ro.templateString(n,i)),a.call(as.font,t.font).text(n).call(Kd.convertToTspans,t._gd),a}function Dde(e,r){var t=Ro.ensureSingle(e,"g",St.labelsClass),a=r._dims,n=t.selectAll("g."+St.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(St.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var o=ts.select(this);o.call(KI,i,r),as.setTranslate(o,s8(r,i.fraction),St.tickOffset+r.ticklen+r.font.size*$I+St.labelOffset+a.currentValueTotalHeight)})}function WI(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),o=t._visibleSteps[i]._index;o!==t.active&&QI(e,r,t,o,!0,n)}function QI(e,r,t,a,n,i){var o=t.active;t.active=a,Ade(e.layout,St.name,t).applyUpdate("active",a);var l=t.steps[t.active];r.call(rH,t,i),r.call(k3,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&&T3.executeAPICommand(e,s.method,s.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function eH(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=ts.select(r);function i(){return t.data()[0]}function o(){var l=i();r.emit("plotly_sliderstart",{slider:l});var s=t.select("."+St.gripRectClass);ts.event.stopPropagation(),ts.event.preventDefault(),s.call(W0.fill,l.activebgcolor);var u=ZI(l,ts.mouse(a)[0]);WI(r,t,l,u,!0),l._dragging=!0;function f(){var d=i(),h=ZI(d,ts.mouse(a)[0]);WI(r,t,d,h,!1)}n.on("mousemove",f),n.on("touchmove",f);function c(){var d=i();d._dragging=!1,s.call(W0.fill,d.bgcolor),n.on("mouseup",null),n.on("mousemove",null),n.on("touchend",null),n.on("touchmove",null),r.emit("plotly_sliderend",{slider:d,step:d.steps[d.active]})}n.on("mouseup",c),n.on("touchend",c)}e.on("mousedown",o),e.on("touchstart",o)}function Fde(e,r){var t=e.selectAll("rect."+St.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(St.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=ts.select(this);l.attr({height:o?r.ticklen:r.minorticklen}).call(W0.fill,r.tickcolor),as.setTranslate(l,s8(r,i/(r._stepCount-1))-.5*r.tickwidth,(o?St.tickOffset:St.minorTickOffset)+a.currentValueTotalHeight)})}function Ede(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 rH(e,r,t){for(var a=e.select("rect."+St.gripRectClass),n=0,i=0;i<r._stepCount;i++)if(r._visibleSteps[i]._index===r.active){n=i;break}var o=s8(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",wde(o-St.gripWidth*.5,r._dims.currentValueTotalHeight))}}function s8(e,r){var t=e._dims;return t.inputAreaStart+St.stepInset+(t.inputAreaLength-2*St.stepInset)*Math.min(1,Math.max(0,r))}function ZI(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-St.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*St.stepInset-2*t.inputAreaStart)))}function Lde(e,r,t){var a=t._dims,n=Ro.ensureSingle(e,"rect",St.railTouchRectClass,function(i){i.call(eH,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,St.tickOffset+t.ticklen+a.labelHeight)}).call(W0.fill,t.bgcolor).attr("opacity",0),as.setTranslate(n,0,a.currentValueTotalHeight)}function qde(e,r){var t=r._dims,a=t.inputAreaLength-St.railInset*2,n=Ro.ensureSingle(e,"rect",St.railRectClass);n.attr({width:a,height:St.railWidth,rx:St.railRadius,ry:St.railRadius,"shape-rendering":"crispEdges"}).call(W0.stroke,r.bordercolor).call(W0.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),as.setTranslate(n,St.railInset,(t.inputAreaWidth-St.railWidth)*.5+t.currentValueTotalHeight)}});var iH=oe((s8e,nH)=>{"use strict";var Pde=(Jd(),xr($d));nH.exports={moduleType:"component",name:Pde.name,layoutAttributes:n8(),supplyLayoutDefaults:jI(),draw:aH()}});var C3=oe((u8e,lH)=>{"use strict";var oH=Il();lH.exports={bgcolor:{valType:"color",dflt:oH.background,editType:"plot"},bordercolor:{valType:"color",dflt:oH.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 u8=oe((f8e,sH)=>{"use strict";sH.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 S3={};Ua(S3,{bgClassName:()=>Nde,containerClassName:()=>zde,extraPad:()=>ohe,grabAreaCursor:()=>rhe,grabAreaFill:()=>ehe,grabAreaMaxClassName:()=>Xde,grabAreaMinClassName:()=>Gde,grabAreaWidth:()=>the,grabberMaxClassName:()=>Vde,grabberMinClassName:()=>Ude,handleMaxClassName:()=>jde,handleMinClassName:()=>Yde,handleRadius:()=>nhe,handleStrokeWidth:()=>ihe,handleWidth:()=>ahe,maskColor:()=>$de,maskMaxClassName:()=>Hde,maskMaxOppAxisClassName:()=>Zde,maskMinClassName:()=>Ide,maskMinOppAxisClassName:()=>Wde,maskOppAxisColor:()=>Jde,name:()=>Rde,rangePlotClassName:()=>Bde,slideBoxClassName:()=>Ode,slideBoxCursor:()=>Qde,slideBoxFill:()=>Kde});var Rde,zde,Nde,Bde,Ide,Hde,Ode,Ude,Gde,Yde,Vde,Xde,jde,Wde,Zde,$de,Jde,Kde,Qde,ehe,rhe,the,ahe,nhe,ihe,ohe,D3=Oa(()=>{"use strict";Rde="rangeslider",zde="rangeslider-container",Nde="rangeslider-bg",Bde="rangeslider-rangeplot",Ide="rangeslider-mask-min",Hde="rangeslider-mask-max",Ode="rangeslider-slidebox",Ude="rangeslider-grabber-min",Gde="rangeslider-grabarea-min",Yde="rangeslider-handle-min",Vde="rangeslider-grabber-max",Xde="rangeslider-grabarea-max",jde="rangeslider-handle-max",Wde="rangeslider-mask-min-opp-axis",Zde="rangeslider-mask-max-opp-axis",$de="rgba(0,0,0,0.4)",Jde="rgba(0,0,0,0.2)",Kde="transparent",Qde="ew-resize",ehe="transparent",rhe="col-resize",the=10,ahe=4,nhe=1,ihe=1,ohe=15});var cH=oe(E3=>{"use strict";var lhe=En(),she=vi(),uH=(D3(),xr(S3)),uhe=(ci(),xr(fi)).LINE_SPACING,F3=uH.name;function fH(e){var r=e&&e[F3];return r&&r.visible}E3.isVisible=fH;E3.makeData=function(e){for(var r=lhe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(fH(i)){a.push(i);var o=i[F3];o._id=F3+i._id,o._height=(e.height-t.b-t.t)*o.thickness,o._offsetShift=Math.floor(o.borderwidth/2)}}e._rangeSliderData=a};E3.autoMarginOpts=function(e,r){var t=e._fullLayout,a=r[F3],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(she.BR_TAG_ALL)||[]).length;o+=l*r.title.font.size*uhe}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,o),pad:uH.extraPad+a._offsetShift*2}}});var pH=oe((v8e,hH)=>{"use strict";var L3=pr(),vH=ka(),dH=En(),fhe=C3(),che=u8();hH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;L3.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=vH.newContainer(i,"rangeslider");function s(A,T){return L3.coerce(o,l,fhe,A,T)}var u,f;function c(A,T){return L3.coerce(u,f,che,A,T)}var d=s("visible");if(d){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var h=t._subplots;if(h)for(var p=h.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===dH.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),m=L3.simpleMap(p,dH.id2name),b=0;b<m.length;b++){var y=m[b];u=o[y]||{},f=vH.newContainer(l,y,"yaxis");var C=t[y],x;u.range&&C.isValidRange(u.range)&&(x="fixed");var _=c("rangemode",x);_!=="match"&&c("range",C.range.slice())}l._input=o}}});var gH=oe((d8e,mH)=>{"use strict";var vhe=En().list,dhe=P0().getAutoRange,hhe=(D3(),xr(S3));mH.exports=function(r){for(var t=vhe(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[hhe.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=dhe(r,n))}}});var xH=oe((h8e,_H)=>{"use strict";var q3=Lt(),phe=_t(),mhe=Ln(),vn=pr(),P3=vn.strTranslate,bH=da(),Z0=Nt(),ghe=Ov(),yhe=z9(),f8=En(),bhe=el(),_he=z0(),It=(D3(),xr(S3));_H.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a<t.length;a++){var n=t[a][It.name];n._clipId=n._id+"-"+r._uid}function i(l){return l._name}var o=r._infolayer.selectAll("g."+It.containerClassName).data(t,i);o.exit().each(function(l){var s=l[It.name];r._topdefs.select("#"+s._clipId).remove()}).remove(),t.length!==0&&(o.enter().append("g").classed(It.containerClassName,!0).attr("pointer-events","all"),o.each(function(l){var s=q3.select(this),u=l[It.name],f=r[f8.id2name(l.anchor)],c=u[f8.id2name(l.anchor)];if(u.range){var d=vn.simpleMap(u.range,l.r2l),h=vn.simpleMap(l.range,l.r2l),p;h[0]<h[1]?p=[Math.min(d[0],h[0]),Math.max(d[1],h[1])]:p=[Math.max(d[0],h[0]),Math.min(d[1],h[1])],u.range=u._input.range=vn.simpleMap(p,l.l2r)}l.cleanRange("rangeslider.range");var m=r._size;u._width=l._length;let b=Math.round(l._offset);var y=Math.round(m.t+m.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+u._offsetShift+It.extraPad);s.attr("transform",P3(b,y)),u._rl=vn.simpleMap(u.range,l.r2l);var C=u._rl[0],x=u._rl[1],_=x-C;if(u.p2d=function(V){return V/u._width*_+C},u.d2p=function(V){return(V-C)/_*u._width},l.rangebreaks){var A=l.locateBreaks(C,x);if(A.length){var T,M,E=0;for(T=0;T<A.length;T++)M=A[T],E+=M.max-M.min;var P=u._width/(x-C-E),z=[-P*C];for(T=0;T<A.length;T++)M=A[T],z.push(z[z.length-1]-P*(M.max-M.min));for(u.d2p=function(V){for(var N=z[0],Q=0;Q<A.length;Q++){var ee=A[Q];if(V>=ee.max)N=z[Q+1];else if(V<ee.min)break}return N+P*V},T=0;T<A.length;T++)M=A[T],M.pmin=u.d2p(M.min),M.pmax=u.d2p(M.max);u.p2d=function(V){for(var N=z[0],Q=0;Q<A.length;Q++){var ee=A[Q];if(V>=ee.pmax)N=z[Q+1];else if(V<ee.pmin)break}return(V-N)/P}}}if(c.rangemode!=="match"){var I=f.r2l(c.range[0]),X=f.r2l(c.range[1]),H=X-I;u.d2pOppAxis=function(V){return(V-I)/H*u._height}}s.call(Mhe,e,l,u).call(The,e,l,u).call(khe,e,l,u).call(She,e,l,u,c).call(Dhe,e,l,u).call(Fhe,e,l,u),xhe(s,e,l,u),Ahe(s,e,l,u,f,c),l.side==="bottom"&&ghe.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:y+u._height+u._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function yH(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function xhe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+It.slideBoxClassName).node(),i=e.select("rect."+It.grabAreaMinClassName).node(),o=e.select("rect."+It.grabAreaMaxClassName).node();function l(){var s=q3.event,u=s.target,f=yH(s),c=f-e.node().getBoundingClientRect().left,d=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=bhe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",b),p.addEventListener("mousemove",m),p.addEventListener("mouseup",b);function m(y){var C=yH(y),x=+C-f,_,A,T;switch(u){case n:if(T="ew-resize",d+x>t._length||h+x<0)return;_=d+x,A=h+x;break;case i:if(T="col-resize",d+x>t._length)return;_=d+x,A=h;break;case o:if(T="col-resize",h+x<0)return;_=d,A=h+x;break;default:T="ew-resize",_=c,A=c+x;break}if(A<_){var M=A;A=_,_=M}a._pixelMin=_,a._pixelMax=A,_he(q3.select(p),T),whe(e,r,t,a)}function b(){p.removeEventListener("mousemove",m),p.removeEventListener("mouseup",b),this.removeEventListener("touchmove",m),this.removeEventListener("touchend",b),vn.removeElement(p)}}e.on("mousedown",l),e.on("touchstart",l)}function whe(e,r,t,a){function n(l){return t.l2r(vn.constrain(l,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),o=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){phe.call("_guiRelayout",r,t._name+".range",[i,o])})}function Ahe(e,r,t,a,n,i){var o=It.handleWidth/2;function l(y){return vn.constrain(y,0,a._width)}function s(y){return vn.constrain(y,0,a._height)}function u(y){return vn.constrain(y,-o,a._width+o)}var f=l(a.d2p(t._rl[0])),c=l(a.d2p(t._rl[1]));if(e.select("rect."+It.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+It.maskMinClassName).attr("width",f),e.select("rect."+It.maskMaxClassName).attr("x",c).attr("width",a._width-c),i.rangemode!=="match"){var d=a._height-s(a.d2pOppAxis(n._rl[1])),h=a._height-s(a.d2pOppAxis(n._rl[0]));e.select("rect."+It.maskMinOppAxisClassName).attr("x",f).attr("height",d).attr("width",c-f),e.select("rect."+It.maskMaxOppAxisClassName).attr("x",f).attr("y",h).attr("height",a._height-h).attr("width",c-f),e.select("rect."+It.slideBoxClassName).attr("y",d).attr("height",h-d)}var p=.5,m=Math.round(u(f-o))-p,b=Math.round(u(c-o))+p;e.select("g."+It.grabberMinClassName).attr("transform",P3(m,p)),e.select("g."+It.grabberMaxClassName).attr("transform",P3(b,p))}function Mhe(e,r,t,a){var n=vn.ensureSingle(e,"rect",It.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=bH.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:P3(o,o),"stroke-width":l}).call(Z0.stroke,a.bordercolor).call(Z0.fill,a.bgcolor)}function The(e,r,t,a){var n=r._fullLayout,i=vn.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 khe(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+It.rangePlotClassName).data(t._subplotsWith,vn.identity);i.enter().append("g").attr("class",function(l){return It.rangePlotClassName+" "+l}).call(bH.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=q3.select(this),f=s===0,c=f8.getFromId(r,l,"y"),d=c._name,h=a[d],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[d]={type:c.type,domain:[0,1],range:h.rangemode!=="match"?h.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(p.layout[d].rangebreaks=c.rangebreaks),mhe.supplyDefaults(p);var m=p._fullLayout.xaxis,b=p._fullLayout[d];m.clearCalc(),m.setScale(),b.clearCalc(),b.setScale();var y={id:l,plotgroup:u,xaxis:m,yaxis:b,isRangePlot:!0};f?o=y:(y.mainplot="xy",y.mainplotinfo=o),yhe.rangePlot(r,y,Che(n,l))})}function Che(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 She(e,r,t,a,n){var i=vn.ensureSingle(e,"rect",It.maskMinClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})});i.attr("height",a._height).call(Z0.fill,It.maskColor);var o=vn.ensureSingle(e,"rect",It.maskMaxClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});if(o.attr("height",a._height).call(Z0.fill,It.maskColor),n.rangemode!=="match"){var l=vn.ensureSingle(e,"rect",It.maskMinOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",a._width).call(Z0.fill,It.maskOppAxisColor);var s=vn.ensureSingle(e,"rect",It.maskMaxOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});s.attr("width",a._width).style("border-top",It.maskOppBorder).call(Z0.fill,It.maskOppAxisColor)}}function Dhe(e,r,t,a){if(!r._context.staticPlot){var n=vn.ensureSingle(e,"rect",It.slideBoxClassName,function(i){i.attr({y:0,cursor:It.slideBoxCursor,"shape-rendering":"crispEdges"})});n.attr({height:a._height,fill:It.slideBoxFill})}}function Fhe(e,r,t,a){var n=vn.ensureSingle(e,"g",It.grabberMinClassName),i=vn.ensureSingle(e,"g",It.grabberMaxClassName),o={x:0,width:It.handleWidth,rx:It.handleRadius,fill:Z0.background,stroke:Z0.defaultLine,"stroke-width":It.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(a._height/4),height:Math.round(a._height/2)},s=vn.ensureSingle(n,"rect",It.handleMinClassName,function(h){h.attr(o)});s.attr(l);var u=vn.ensureSingle(i,"rect",It.handleMaxClassName,function(h){h.attr(o)});u.attr(l);var f={width:It.grabAreaWidth,x:0,y:0,fill:It.grabAreaFill,cursor:r._context.staticPlot?void 0:It.grabAreaCursor},c=vn.ensureSingle(n,"rect",It.grabAreaMinClassName,function(h){h.attr(f)});c.attr("height",a._height);var d=vn.ensureSingle(i,"rect",It.grabAreaMaxClassName,function(h){h.attr(f)});d.attr("height",a._height)}});var AH=oe((p8e,wH)=>{"use strict";var Ehe=pr(),Lhe=C3(),qhe=u8(),c8=cH();wH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Ehe.extendFlat({},Lhe,{yaxis:qhe})}}},layoutAttributes:C3(),handleDefaults:pH(),calcAutorange:gH(),draw:xH(),isVisible:c8.isVisible,makeData:c8.makeData,autoMarginOpts:c8.autoMarginOpts}});var R3=oe((m8e,TH)=>{"use strict";var Phe=xi(),MH=Il(),Rhe=ka().templatedArray,zhe=Rhe("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"});TH.exports={visible:{valType:"boolean",editType:"plot"},buttons:zhe,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:Phe({editType:"plot"}),bgcolor:{valType:"color",dflt:MH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:MH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var v8={};Ua(v8,{darkAmount:()=>Uhe,lightAmount:()=>Ohe,minButtonWidth:()=>Bhe,rx:()=>Ihe,ry:()=>Hhe,yPad:()=>Nhe});var Nhe,Bhe,Ihe,Hhe,Ohe,Uhe,d8=Oa(()=>{"use strict";Nhe=.02,Bhe=30,Ihe=3,Hhe=3,Ohe=25,Uhe=10});var SH=oe((g8e,CH)=>{"use strict";var z3=pr(),Ghe=Nt(),Yhe=ka(),Vhe=Vl(),kH=R3(),h8=(d8(),xr(v8));CH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=Yhe.newContainer(t,"rangeselector");function s(h,p){return z3.coerce(o,l,kH,h,p)}var u=Vhe(o,l,{name:"buttons",handleItemDefaults:Xhe,calendar:i}),f=s("visible",u.length>0);if(f){var c=jhe(t,a,n);s("x",c[0]),s("y",c[1]),z3.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),z3.coerceFont(s,"font",a.font);var d=s("bgcolor");s("activecolor",Ghe.contrast(d,h8.lightAmount,h8.darkAmount)),s("bordercolor"),s("borderwidth")}};function Xhe(e,r,t,a){var n=a.calendar;function i(s,u){return z3.coerce(e,r,kH.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 jhe(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+h8.yPad]}});var FH=oe((y8e,DH)=>{"use strict";var Whe=Dy(),Zhe=pr().titleCase;DH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=$he(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function $he(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Whe["utc"+Zhe(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 BH=oe((b8e,NH)=>{"use strict";var B3=Lt(),Jhe=_t(),Khe=Ln(),EH=Nt(),zH=da(),Vu=pr(),LH=Vu.strTranslate,N3=vi(),Qhe=En(),g8=(ci(),xr(fi)),qH=g8.LINE_SPACING,PH=g8.FROM_TL,RH=g8.FROM_BR,m8=(d8(),xr(v8)),epe=FH();NH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(rpe(r),tpe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=B3.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Vu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=B3.select(this),c=epe(o,u);u._isActive=ape(o,u,c),f.call(p8,l,u),f.call(ipe,l,u,r),f.on("click",function(){r._dragged||Jhe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(p8,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(p8,l,u)})}),lpe(r,s,l,o._name,i)})};function rpe(e){for(var r=Qhe.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 tpe(e){return e._id}function ape(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 p8(e,r,t){var a=Vu.ensureSingle(e,"rect","selector-rect",function(n){n.attr("shape-rendering","crispEdges")});a.attr({rx:m8.rx,ry:m8.ry}),a.call(EH.stroke,r.bordercolor).call(EH.fill,npe(r,t)).style("stroke-width",r.borderwidth+"px")}function npe(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function ipe(e,r,t,a){function n(o){N3.convertToTspans(o,a)}var i=Vu.ensureSingle(e,"text","selector-text",function(o){o.attr("text-anchor","middle")});i.call(zH.font,r.font).text(ope(t,a._fullLayout._meta)).call(n)}function ope(e,r){return e.label?r?Vu.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function lpe(e,r,t,a,n){var i=0,o=0,l=t.borderwidth;r.each(function(){var h=B3.select(this),p=h.select(".selector-text"),m=t.font.size*qH,b=Math.max(m*N3.lineCount(p),16)+3;o=Math.max(o,b)}),r.each(function(){var h=B3.select(this),p=h.select(".selector-rect"),m=h.select(".selector-text"),b=m.node()&&zH.bBox(m.node()).width,y=t.font.size*qH,C=N3.lineCount(m),x=Math.max(b+10,m8.minButtonWidth);h.attr("transform",LH(l+i,l)),p.attr({x:0,y:0,width:x,height:o}),N3.positionText(m,x/2,o/2-(C-1)*y/2+3),i+=x+5});var s=e._fullLayout._size,u=s.l+s.w*t.x,f=s.t+s.h*(1-t.y),c="left";Vu.isRightAnchor(t)&&(u-=i,c="right"),Vu.isCenterAnchor(t)&&(u-=i/2,c="center");var d="top";Vu.isBottomAnchor(t)&&(f-=o,d="bottom"),Vu.isMiddleAnchor(t)&&(f-=o/2,d="middle"),i=Math.ceil(i),o=Math.ceil(o),u=Math.round(u),f=Math.round(f),Khe.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*PH[c],r:i*RH[c],b:o*RH[d],t:o*PH[d]}),n.attr("transform",LH(u,f))}});var HH=oe((_8e,IH)=>{"use strict";IH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:R3()}}},layoutAttributes:R3(),handleDefaults:SH(),draw:BH()}});var I3=oe(y8=>{"use strict";var OH=Dn().extendFlat;y8.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:OH({},t,{}),y:OH({},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};y8.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 XH=oe((w8e,VH)=>{"use strict";var spe=pr(),upe=(C1(),xr(Av)).counter,fpe=I3().attributes,UH=(Hn(),xr(In)).idRegex,cpe=ka(),b8={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:[upe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[UH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[UH.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:fpe({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 H3(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 vpe(e,r){var t=e.grid||{},a=H3(r,t,"x"),n=H3(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=cpe.newContainer(r,"grid");function d(T,M){return spe.coerce(t,c,b8,T,M)}var h=d("rows",u),p=d("columns",f);if(!(h*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=d("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var b=d("roworder"),y=b==="top to bottom",C=i?.2:.1,x=i?.3:.1,_,A;s&&r._splomGridDflt&&(_=r._splomGridDflt.xside,A=r._splomGridDflt.yside),c._domains={x:GH("x",d,C,_,p),y:GH("y",d,x,A,h,y)}}function GH(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),d=0;d<n;d++){var h=u+f*d;s[i?n-1-d:d]=[h,h+c]}return s}function dpe(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,d,h,p,m,b=t._axisMap={};if(i){var y=a.subplots||[];p=t.subplots=new Array(o);var C=1;for(u=0;u<o;u++){var x=p[u]=new Array(l),_=y[u]||[];for(f=0;f<l;f++)if(s?(h=C===1?"xy":"x"+C+"y"+C,C++):h=_[f],x[f]="",n.cartesian.indexOf(h)!==-1){if(m=h.indexOf("y"),c=h.slice(0,m),d=h.slice(m),b[c]!==void 0&&b[c]!==f||b[d]!==void 0&&b[d]!==u)continue;x[f]=h,b[c]=f,b[d]=u}}}else{var A=H3(r,a,"x"),T=H3(r,a,"y");t.xaxes=YH(A,n.xaxis,l,b,"x"),t.yaxes=YH(T,n.yaxis,o,b,"y")}var M=t._anchors={},E=t.roworder==="top to bottom";for(var P in b){var z=P.charAt(0),I=t[z+"side"],X,H,V;if(I.length<8)M[P]="free";else if(z==="x"){if(I.charAt(0)==="t"===E?(X=0,H=1,V=o):(X=o-1,H=-1,V=-1),i){var N=b[P];for(u=X;u!==V;u+=H)if(h=p[u][N],!!h&&(m=h.indexOf("y"),h.slice(0,m)===P)){M[P]=h.slice(m);break}}else for(u=X;u!==V;u+=H)if(d=t.yaxes[u],n.cartesian.indexOf(P+d)!==-1){M[P]=d;break}}else if(I.charAt(0)==="l"?(X=0,H=1,V=l):(X=l-1,H=-1,V=-1),i){var Q=b[P];for(u=X;u!==V;u+=H)if(h=p[Q][u],!!h&&(m=h.indexOf("y"),h.slice(m)===P)){M[P]=h.slice(0,m);break}}else for(u=X;u!==V;u+=H)if(c=t.xaxes[u],n.cartesian.indexOf(c+P)!==-1){M[P]=c;break}}}}function YH(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}VH.exports={moduleType:"component",name:"grid",schema:{layout:{grid:b8}},layoutAttributes:b8,sizeDefaults:vpe,contentDefaults:dpe}});var _8=oe((A8e,jH)=>{"use strict";jH.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 $H=oe((M8e,ZH)=>{"use strict";var WH=Qt(),hpe=_t(),ppe=pr(),mpe=ka(),gpe=_8();ZH.exports=function(e,r,t,a){var n="error_"+a.axis,i=mpe.newContainer(r,n),o=e[n]||{};function l(p,m){return ppe.coerce(o,i,gpe,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 d="copy_"+a.inherit+"style";if(a.inherit){var h=r["error_"+a.inherit];(h||{}).visible&&l(d,!(o.color||WH(o.thickness)||WH(o.width)))}(!a.inherit||!i[d])&&(l("color",t),l("thickness"),l("width",hpe.traceIs(r,"gl3d")?0:4))}}});var x8=oe((T8e,KH)=>{"use strict";KH.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],d=+i[f];return!isNaN(c)||!isNaN(d)?[d||0,c||0]:[NaN,NaN]}}else{var o=JH(t,r.value),l=JH(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 JH(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 rO=oe((k8e,eO)=>{"use strict";var w8=Qt(),ype=_t(),A8=Ga(),bpe=pr(),_pe=x8();eO.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&&ype.traceIs(i,"errorBarsOK")){var o=A8.getFromId(r,i.xaxis),l=A8.getFromId(r,i.yaxis);QH(n,i,o,"x"),QH(n,i,l,"y")}}};function QH(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,o=[];if(i){for(var l=_pe(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(w8(t.c2l(c))){var d=l(c,f);if(w8(d[0])&&w8(d[1])){var h=u[a+"s"]=c-d[0],p=u[a+"h"]=c+d[1];o.push(h,p)}}}var m=t._id,b=r._extremes[m],y=A8.findExtremes(t,o,bpe.extendFlat({tozero:b.opts.tozero},{padded:!0}));b.min=b.min.concat(y.min),b.max=b.max.concat(y.max)}}});var nO=oe((C8e,aO)=>{"use strict";var tO=Lt(),$0=Qt(),xpe=da(),wpe=Ti();aO.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,d=c.error_x||{},h=c.error_y||{},p;c.ids&&(p=function(C){return C.id});var m=wpe.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!d.visible&&(f=[]);var b=tO.select(this).selectAll("g.errorbar").data(f,p);if(b.exit().remove(),!!f.length){d.visible||b.selectAll("path.xerror").remove(),h.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var y=b.enter().append("g").classed("errorbar",!0);s&&y.style("opacity",0).transition().duration(n.duration).style("opacity",1),xpe.setClipUrl(b,a.layerClipId,r),b.each(function(C){var x=tO.select(this),_=Ape(C,o,l);if(!(m&&!C.vis)){var A,T=x.select("path.yerror");if(h.visible&&$0(_.x)&&$0(_.yh)&&$0(_.ys)){var M=h.width;A="M"+(_.x-M)+","+_.yh+"h"+2*M+"m-"+M+",0V"+_.ys,_.noYS||(A+="m-"+M+",0h"+2*M),i=!T.size(),i?T=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(T=T.transition().duration(n.duration).ease(n.easing)),T.attr("d",A)}else T.remove();var E=x.select("path.xerror");if(d.visible&&$0(_.y)&&$0(_.xh)&&$0(_.xs)){var P=(d.copy_ystyle?h:d).width;A="M"+_.xh+","+(_.y-P)+"v"+2*P+"m0,-"+P+"H"+_.xs,_.noXS||(A+="m0,-"+P+"v"+2*P),i=!E.size(),i?E=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(E=E.transition().duration(n.duration).ease(n.easing)),E.attr("d",A)}else E.remove()}})}})};function Ape(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),$0(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),$0(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var lO=oe((S8e,oO)=>{"use strict";var Mpe=Lt(),iO=Nt();oO.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Mpe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(iO.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(iO.stroke,i.color)})}});var fO=oe((D8e,uO)=>{"use strict";var Qd=pr(),sO=Zo().overrideAll,eh=_8(),Lc={error_x:Qd.extendFlat({},eh),error_y:Qd.extendFlat({},eh)};delete Lc.error_x.copy_zstyle;delete Lc.error_y.copy_zstyle;delete Lc.error_y.copy_ystyle;var rh={error_x:Qd.extendFlat({},eh),error_y:Qd.extendFlat({},eh),error_z:Qd.extendFlat({},eh)};delete rh.error_x.copy_ystyle;delete rh.error_y.copy_ystyle;delete rh.error_z.copy_ystyle;delete rh.error_z.copy_zstyle;uO.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Lc,bar:Lc,histogram:Lc,scatter3d:sO(rh,"calc","nested"),scattergl:sO(Lc,"calc","nested")}},supplyDefaults:$H(),calc:rO(),makeComputeError:x8(),plot:nO(),style:lO(),hoverInfo:Tpe};function Tpe(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 cO={};Ua(cO,{cn:()=>kpe});var kpe,vO=Oa(()=>{"use strict";kpe={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 _O=oe((F8e,bO)=>{"use strict";var J0=Lt(),U3=Ln(),dO=_t(),Xu=Ga(),O3=el(),dl=pr(),is=dl.strTranslate,yO=Dn().extendFlat,M8=z0(),ns=da(),D2=Nt(),Cpe=Ov(),Spe=vi(),Dpe=Ls().flipScale,Fpe=L9(),Epe=q9(),Lpe=Yl(),k8=(ci(),xr(fi)),hO=k8.LINE_SPACING,pO=k8.FROM_TL,mO=k8.FROM_BR,Va=(vO(),xr(cO)).cn;function qpe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Va.colorbar).data(Ppe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Va.colorbar,!0),t.each(function(a){var n=J0.select(this);dl.ensureSingle(n,"rect",Va.cbbg),dl.ensureSingle(n,"g",Va.cbfills),dl.ensureSingle(n,"g",Va.cblines),dl.ensureSingle(n,"g",Va.cbaxis,function(o){o.classed(Va.crisp,!0)}),dl.ensureSingle(n,"g",Va.cbtitleunshift,function(o){o.append("g").classed(Va.cbtitle,!0)}),dl.ensureSingle(n,"rect",Va.cboutline);var i=Rpe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&zpe(n,a,e)}),t.exit().each(function(a){U3.autoMargin(e,a._id)}).remove(),t.order()}function Ppe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(x){return yO(x,{_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?Dpe(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 d=o._module.colorbar;if(o.visible===!0&&d)for(var h=Array.isArray(d),p=h?d:[d],m=0;m<p.length;m++){l=p[m];var b=l.container;i=b?o[b]:o,i&&i.showscale&&(n=s(i.colorbar),n._id="cb"+o.uid+(h&&b?"-"+b:""),n._traceIndex=o.index,n._propPrefix=(b?b+".":"")+"colorbar.",n._meta=o._meta,u(),a.push(n))}}}for(var y in r._colorAxes)if(i=r[y],i.showscale){var C=r._colorAxes[y];n=s(i.colorbar),n._id="cb"+y,n._propPrefix=y+".colorbar.",n._meta=r._meta,l={min:"cmin",max:"cmax"},C[0]!=="heatmap"&&(o=C[1],l.calc=o._module.colorbar.calc),u(),a.push(n)}return a}var T8=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],gO=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function Rpe(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,d=r.yanchor,h=r.xpad,p=r.ypad,m=r.x,b=a?r.y:1-r.y,y=r.yref==="paper",C=r.xref==="paper",x=t._fullLayout,_=x._size,A=r._fillcolor,T=r._line,M=r.title,E=M.side,P=r._zrange||J0.extent((typeof A=="function"?A:T.color).domain()),z=typeof T.color=="function"?T.color:function(){return T.color},I=typeof A=="function"?A:function(){return A},X=r._levels,H=Npe(t,r,P),V=H.fill,N=H.line,Q=Math.round(o*(l==="fraction"?a?_.w:_.h:1)),ee=Q/(a?_.w:_.h),re=Math.round(n*(i==="fraction"?a?_.h:_.w:1)),ae=re/(a?_.h:_.w),ie=C?_.w:t._fullLayout.width,ue=y?_.h:t._fullLayout.height,xe=Math.round(a?m*ie+h:b*ue+p),De={center:.5,right:1}[c]||0,Ye={top:1,middle:.5}[d]||0,Ee=a?m-De*ee:b-Ye*ee,ke=a?b-Ye*ae:m-De*ae,je=Math.round(a?ue*(1-ke):ie*ke);r._lenFrac=ae,r._thickFrac=ee,r._uFrac=Ee,r._vFrac=ke;var W=r._axis=Bpe(t,r,P);W.position=ee+(a?m+h/_.w:b+p/_.h);var le=["top","bottom"].indexOf(E)!==-1;if(a&&le&&(W.title.side=E,W.titlex=m+h/_.w,W.titley=ke+(M.side==="top"?ae-p/_.h:p/_.h)),!a&&!le&&(W.title.side=E,W.titley=b+p/_.h,W.titlex=ke+h/_.w),T.color&&r.tickmode==="auto"){W.tickmode="linear",W.tick0=X.start;var de=X.size,K=dl.constrain(re/50,4,15)+1,J=(P[1]-P[0])/((r.nticks||K)*de);if(J>1){var fe=Math.pow(10,Math.floor(Math.log(J)/Math.LN10));de*=fe*dl.roundUp(J/fe,[2,5,10]),(Math.abs(X.start)/X.size+1e-6)%1<2e-6&&(W.tick0=0)}W.dtick=de}var be=a?p/_.h:h/_.w;W.domain=gO(T8([ke,ke+ae],be),be),W.setScale(),e.attr("transform",is(Math.round(_.l),Math.round(_.t)));var Ne=e.select("."+Va.cbtitleunshift).attr("transform",is(-Math.round(_.l),-Math.round(_.t))),Ze=W.ticklabelposition,er=W.title.font.size,Je=e.select("."+Va.cbaxis),tr,ze=0,lr=0;function dr(Te,Ue){var _r={propContainer:W,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+Va.cbtitle)},Pr=Te.charAt(0)==="h"?Te.slice(1):"h"+Te;e.selectAll("."+Pr+",."+Pr+"-math-group").remove(),Cpe.draw(t,Te,yO(_r,Ue||{}))}function Ar(){if(a&&le||!a&&!le){var Te,Ue;E==="top"&&(Te=h+_.l+ie*m,Ue=p+_.t+ue*(1-ke-ae)+3+er*.75),E==="bottom"&&(Te=h+_.l+ie*m,Ue=p+_.t+ue*(1-ke)-3-er*.25),E==="right"&&(Ue=p+_.t+ue*b+3+er*.75,Te=h+_.l+ie*ke),dr(W._id+"title",{attributes:{x:Te,y:Ue,"text-anchor":a?"start":"middle"}})}}function Qe(){if(a&&!le||!a&&le){var Te=W.position||0,Ue=W._offset+W._length/2,_r,Pr;if(E==="right")Pr=Ue,_r=_.l+ie*Te+10+er*(W.showticklabels?1:.5);else if(_r=Ue,E==="bottom"&&(Pr=_.t+ue*Te+10+(Ze.indexOf("inside")===-1?W.tickfont.size:0)+(W.ticks!=="inside"&&r.ticklen||0)),E==="top"){var Nr=M.text.split("<br>").length;Pr=_.t+ue*Te+10-Q-hO*er*Nr}dr((a?"h":"v")+W._id+"title",{avoid:{selection:J0.select(t).selectAll("g."+W._id+"tick"),side:E,offsetTop:a?0:_.t,offsetLeft:a?_.l:0,maxShift:a?x.width:x.height},attributes:{x:_r,y:Pr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function mr(){if(!a&&!le||a&&le){var Te=e.select("."+Va.cbtitle),Ue=Te.select("text"),_r=[-s/2,s/2],Pr=Te.select(".h"+W._id+"title-math-group").node(),Nr=15.6;Ue.node()&&(Nr=parseInt(Ue.node().style.fontSize,10)*hO);var Ce;if(Pr?(Ce=ns.bBox(Pr),lr=Ce.width,ze=Ce.height,ze>Nr&&(_r[1]-=(ze-Nr)/2)):Ue.node()&&!Ue.classed(Va.jsPlaceholder)&&(Ce=ns.bBox(Ue.node()),lr=Ce.width,ze=Ce.height),a){if(ze){if(ze+=5,E==="top")W.domain=gO(W.domain,ze/_.h),_r[1]*=-1;else{W.domain=T8(W.domain,ze/_.h);var He=Spe.lineCount(Ue);_r[1]+=(1-He)*Nr}Te.attr("transform",is(_r[0],_r[1])),W.setScale()}}else lr&&(E==="right"&&(W.domain=T8(W.domain,(lr+er/2)/_.w)),Te.attr("transform",is(_r[0],_r[1])),W.setScale())}e.selectAll("."+Va.cbfills+",."+Va.cblines).attr("transform",a?is(0,Math.round(_.h*(1-W.domain[1]))):is(Math.round(_.w*W.domain[0]),0)),Je.attr("transform",a?is(0,Math.round(-_.t)):is(Math.round(-_.l),0));var cr=e.select("."+Va.cbfills).selectAll("rect."+Va.cbfill).attr("style","").data(V);cr.enter().append("rect").classed(Va.cbfill,!0).attr("style",""),cr.exit().remove();var Mr=P.map(W.c2p).map(Math.round).sort(function(et,nr){return et-nr});cr.each(function(et,nr){var Cr=[nr===0?P[0]:(V[nr]+V[nr-1])/2,nr===V.length-1?P[1]:(V[nr]+V[nr+1])/2].map(W.c2p).map(Math.round);a&&(Cr[1]=dl.constrain(Cr[1]+(Cr[1]>Cr[0])?1:-1,Mr[0],Mr[1]));var ar=J0.select(this).attr(a?"x":"y",xe).attr(a?"y":"x",J0.min(Cr)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(J0.max(Cr)-J0.min(Cr),2));if(r._fillgradient)ns.gradient(ar,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Fr=I(et).replace("e-","");ar.attr("fill",D2.hexString(Fr))}});var vr=e.select("."+Va.cblines).selectAll("path."+Va.cbline).data(T.color&&T.width?N:[]);vr.enter().append("path").classed(Va.cbline,!0),vr.exit().remove(),vr.each(function(et){var nr=xe,Cr=Math.round(W.c2p(et))+T.width/2%1;J0.select(this).attr("d","M"+(a?nr+","+Cr:Cr+","+nr)+(a?"h":"v")+Q).call(ns.lineGroupStyle,T.width,z(et),T.dash)}),Je.selectAll("g."+W._id+"tick,path").remove();var kr=xe+Q+(s||0)/2-(r.ticks==="outside"?1:0),Er=Xu.calcTicks(W),jr=Xu.getTickSigns(W)[2];return Xu.drawTicks(t,W,{vals:W.ticks==="inside"?Xu.clipEnds(W,Er):Er,layer:Je,path:Xu.makeTickPath(W,kr,jr),transFn:Xu.makeTransTickFn(W)}),Xu.drawLabels(t,W,{vals:Er,layer:Je,transFn:Xu.makeTransTickLabelFn(W),labelFns:Xu.makeLabelFns(W,kr)})}function qr(){var Te,Ue=Q+s/2;Ze.indexOf("inside")===-1&&(Te=ns.bBox(Je.node()),Ue+=a?Te.width:Te.height),tr=Ne.select("text");var _r=0,Pr=a&&E==="top",Nr=!a&&E==="right",Ce=0;if(tr.node()&&!tr.classed(Va.jsPlaceholder)){var He,cr=Ne.select(".h"+W._id+"title-math-group").node();cr&&(a&&le||!a&&!le)?(Te=ns.bBox(cr),_r=Te.width,He=Te.height):(Te=ns.bBox(Ne.node()),_r=Te.right-_.l-(a?xe:je),He=Te.bottom-_.t-(a?je:xe),!a&&E==="top"&&(Ue+=Te.height,Ce=Te.height)),Nr&&(tr.attr("transform",is(_r/2+er/2,0)),_r*=2),Ue=Math.max(Ue,a?_r:He)}var Mr=(a?h:p)*2+Ue+u+s/2,vr=0;!a&&M.text&&d==="bottom"&&b<=0&&(vr=Mr/2,Mr+=vr,Ce+=vr),x._hColorbarMoveTitle=vr,x._hColorbarMoveCBTitle=Ce;var kr=u+s,Er=(a?xe:je)-kr/2-(a?h:0),jr=(a?je:xe)-(a?re:p+Ce-vr);e.select("."+Va.cbbg).attr("x",Er).attr("y",jr).attr(a?"width":"height",Math.max(Mr-vr,2)).attr(a?"height":"width",Math.max(re+kr,2)).call(D2.fill,f).call(D2.stroke,r.bordercolor).style("stroke-width",u);var et=Nr?Math.max(_r-10,0):0;e.selectAll("."+Va.cboutline).attr("x",(a?xe:je+h)+et).attr("y",(a?je+p-re:xe)+(Pr?ze:0)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(re-(a?2*p+ze:2*h+et),2)).call(D2.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var nr=a?De*Mr:0,Cr=a?0:(1-Ye)*Mr-Ce;if(nr=C?_.l-nr:-nr,Cr=y?_.t-Cr:-Cr,e.attr("transform",is(nr,Cr)),!a&&(u||D2.opacity(f)&&!D2.equals(x.paper_bgcolor,f))){var ar=Je.selectAll("text"),Fr=ar[0].length,Wr=e.select("."+Va.cbbg).node(),Br=ns.bBox(Wr),Zr=ns.getTranslate(e),Ae=2;ar.each(function(la,Pt){var Ta=0,pa=Fr-1;if(Pt===Ta||Pt===pa){var Xa=ns.bBox(this),dn=ns.getTranslate(this),ja;if(Pt===pa){var Fa=Xa.right+dn.x,Rr=Br.right+Zr.x+je-u-Ae+m;ja=Rr-Fa,ja>0&&(ja=0)}else if(Pt===Ta){var Vt=Xa.left+dn.x,Et=Br.left+Zr.x+je+u+Ae;ja=Et-Vt,ja<0&&(ja=0)}ja&&(Fr<3?this.setAttribute("transform","translate("+ja+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Be={},or=pO[c],hr=mO[c],Dt=pO[d],Wt=mO[d],ba=Mr-Q;a?(i==="pixels"?(Be.y=b,Be.t=re*Dt,Be.b=re*Wt):(Be.t=Be.b=0,Be.yt=b+n*Dt,Be.yb=b-n*Wt),l==="pixels"?(Be.x=m,Be.l=Mr*or,Be.r=Mr*hr):(Be.l=ba*or,Be.r=ba*hr,Be.xl=m-o*or,Be.xr=m+o*hr)):(i==="pixels"?(Be.x=m,Be.l=re*or,Be.r=re*hr):(Be.l=Be.r=0,Be.xl=m+n*or,Be.xr=m-n*hr),l==="pixels"?(Be.y=1-b,Be.t=Mr*Dt,Be.b=Mr*Wt):(Be.t=ba*Dt,Be.b=ba*Wt,Be.yt=b-o*Dt,Be.yb=b+o*Wt));var _a=r.y<.5?"b":"t",Xt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Ht={r:x.width-Er-nr,l:Er+Be.r,b:x.height-jr-Cr,t:jr+Be.b};C&&y?U3.autoMargin(t,r._id,Be):C?t._fullLayout._reservedMargin[r._id][_a]=Ht[_a]:y||a?t._fullLayout._reservedMargin[r._id][Xt]=Ht[Xt]:t._fullLayout._reservedMargin[r._id][_a]=Ht[_a]}return dl.syncOrAsync([U3.previousPromises,Ar,mr,Qe,U3.previousPromises,qr],t)}function zpe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;O3.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),M8(e)},moveFn:function(u,f){e.attr("transform",o+is(u,f)),l=O3.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=O3.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=O3.getCursor(l,s,r.xanchor,r.yanchor);M8(e,c)},doneFn:function(){if(M8(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?dO.call("_guiRestyle",t,u,r._traceIndex):dO.call("_guiRelayout",t,u)}}})}function Npe(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 d=r._filllevels;if(d)for(s=d.end+d.size/100,u=d.size,l=0;l<1e5&&(o=d.start+l*u,!(u>0?o>=s:o<=s));l++)o>t[0]&&o<t[1]&&i.push(o);else i=n.map(function(h){return h-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 Bpe(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 dl.coerce(i,l,Lpe,f,c)}return Fpe(i,l,u,s,a),Epe(i,l,u,s),l}bO.exports={draw:qpe}});var wO=oe((E8e,xO)=>{"use strict";xO.exports={moduleType:"component",name:"colorbar",attributes:jp(),supplyDefaults:M6(),draw:_O().draw,hasColorbar:d6()}});var MO=oe((L8e,AO)=>{"use strict";AO.exports={moduleType:"component",name:"legend",layoutAttributes:_b(),supplyLayoutDefaults:wb(),draw:Nb(),style:qb()}});var kO=oe((q8e,TO)=>{"use strict";TO.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 SO=oe((P8e,CO)=>{"use strict";CO.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var S8=oe((R8e,LO)=>{"use strict";var Ipe=_t(),EO=pr(),C8=EO.extendFlat,DO=EO.extendDeep;function FO(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 Hpe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}LO.exports=function(r,t){var a,n=r.data,i=r.layout,o=DO([],n),l=DO({},i,FO(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++)Hpe(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),Ipe.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(b){return b.match(/^scene\d*$/)});if(c.length){var d={};for(t.tileClass==="thumbnail"&&(d={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),a=0;a<c.length;a++){var h=l[c[a]];h.xaxis||(h.xaxis={}),h.yaxis||(h.yaxis={}),h.zaxis||(h.zaxis={}),C8(h.xaxis,d),C8(h.yaxis,d),C8(h.zaxis,d),h._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=FO(t.tileClass),m}});var RO=oe((z8e,PO)=>{"use strict";var Ope=Rp().EventEmitter,Upe=_t(),Gpe=pr(),qO=xc(),Ype=S8(),Vpe=Vg(),Xpe=Xg();function jpe(e,r){var t=new Ope,a=Ype(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=qO.getDelay(n._fullLayout);setTimeout(function(){var s=Vpe(n),u=document.createElement("canvas");u.id=Gpe.randstr(),t=Xpe({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=qO.getRedrawFunc(n);return Upe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}PO.exports=jpe});var BO=oe((N8e,NO)=>{"use strict";var zO=xc(),Wpe={getDelay:zO.getDelay,getRedrawFunc:zO.getRedrawFunc,clone:S8(),toSVG:Vg(),svgToImg:Xg(),toImage:RO(),downloadImage:a9()};NO.exports=Wpe});var HO=oe(ju=>{"use strict";ju.version=K2().version;Y_();Dk();var Zpe=_t(),th=ju.register=Zpe.register,F8=YR(),IO=Object.keys(F8);for(G3=0;G3<IO.length;G3++)F2=IO[G3],F2.charAt(0)!=="_"&&(ju[F2]=F8[F2]),th({moduleType:"apiMethod",name:F2,fn:F8[F2]});var F2,G3;th(tB());th([CB(),OB(),Ou(),oI(),bI(),HI(),iH(),AH(),HH(),XH(),fO(),Kp(),wO(),MO(),Wl(),f7()]);th([kO(),SO()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(th(window.PlotlyLocales),delete window.PlotlyLocales);ju.Icons=Ym();var Y3=Wl(),D8=Ln();ju.Plots={resize:D8.resize,graphJson:D8.graphJson,sendDataToCloud:D8.sendDataToCloud};ju.Fx={hover:Y3.hover,unhover:Y3.unhover,loneHover:Y3.loneHover,loneUnhover:Y3.loneUnhover};ju.Snapshot=BO();ju.PlotSchema=H1()});var UO=oe((I8e,OO)=>{"use strict";OO.exports=HO()});var ah=oe((H8e,jO)=>{"use strict";var{hovertemplateAttrs:$pe,texttemplateAttrs:Jpe,templatefallbackAttrs:GO}=Vf(),Kpe=q7(),Ws=_c(),Qpe=Wo(),YO=Y1(),eme=Fs().dash,qc=Dn().extendFlat,rme=Zo().overrideAll,hl=Ws.marker,VO=Ws.line,XO=hl.line;jO.exports=rme({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:qc({},Ws.mode,{dflt:"markers"}),text:qc({},Ws.text,{}),texttemplate:Jpe({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:GO({editType:"plot"}),hovertext:qc({},Ws.hovertext,{}),textfont:Ws.textfont,textposition:Ws.textposition,line:{color:VO.color,width:VO.width,dash:eme},connectgaps:Ws.connectgaps,marker:qc({symbol:hl.symbol,opacity:hl.opacity,angle:hl.angle,angleref:qc({},hl.angleref,{values:["previous","up","north"]}),standoff:hl.standoff,size:hl.size,sizeref:hl.sizeref,sizemin:hl.sizemin,sizemode:hl.sizemode,colorbar:hl.colorbar,line:qc({width:XO.width,dash:XO.dash},YO("marker.line")),gradient:hl.gradient},YO("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Kpe(),selected:Ws.selected,unselected:Ws.unselected,hoverinfo:qc({},Qpe.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:$pe(),hovertemplatefallback:GO()},"calc","nested")});var ZO=oe((O8e,WO)=>{"use strict";var E8=pr(),L8=Ti(),tme=o9(),ame=l9(),nme=s9(),ime=u9(),ome=ah();WO.exports=function(r,t,a,n){function i(h,p){return E8.coerce(r,t,ome,h,p)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||E8.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),l=o.length}else{var c=i("lon")||[],d=i("lat")||[];l=Math.min(c.length,d.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("mode"),L8.hasMarkers(t)&&tme(r,t,a,n,i,{gradient:!0}),L8.hasLines(t)&&(ame(r,t,a,n,i),i("connectgaps")),L8.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),nme(r,t,n,i)),i("fill"),t.fill!=="none"&&ime(r,t,a,i),E8.coerceSelectionMarkerOpacity(t,i)}});var KO=oe((U8e,JO)=>{"use strict";var $O=Ga();JO.exports=function(r,t,a){var n={},i=a[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return n.lonLabel=$O.tickText(o,o.c2l(l[0]),!0).text,n.latLabel=$O.tickText(o,o.c2l(l[1]),!0).text,n}});var aU=oe((G8e,tU)=>{"use strict";var q8=Qt(),QO=(Za(),xr(nn)).BADNUM,lme=v9(),sme=Nd(),ume=e3(),fme=pr().isArrayOrTypedArray,eU=pr()._;function rU(e){return e&&typeof e=="string"}tU.exports=function(r,t){var a=fme(t.locations),n=a?t.locations.length:t._length,i=new Array(n),o;t.geojson?o=function(d){return rU(d)||q8(d)}:o=rU;for(var l=0;l<n;l++){var s=i[l]={};if(a){var u=t.locations[l];s.loc=o(u)?u:null}else{var f=t.lon[l],c=t.lat[l];q8(f)&&q8(c)?s.lonlat=[+f,+c]:s.lonlat=[QO,QO]}}return sme(i,t),lme(r,t),ume(i,t),n&&(i[0].t={labels:{lat:eU(r,"lat:")+" ",lon:eU(r,"lon:")+" "}}),i}});var nh={};Ua(nh,{axesNames:()=>vme,clipPad:()=>gme,fillLayers:()=>Ame,fitboundsIncompatible:()=>pme,landColor:()=>bme,lataxisSpan:()=>hme,layerNameToAdjective:()=>Cme,layers:()=>Tme,layersForChoropleth:()=>kme,lineLayers:()=>Mme,locationmodeToLayer:()=>xme,lonaxisSpan:()=>dme,precision:()=>yme,projNames:()=>cme,scopeDefaults:()=>mme,sphereSVG:()=>wme,waterColor:()=>_me});var cme,vme,dme,hme,pme,mme,gme,yme,bme,_me,xme,wme,Ame,Mme,Tme,kme,Cme,ih=Oa(()=>{"use strict";cme={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},vme=["lonaxis","lataxis"],dme={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},hme={"conic conformal":150,stereographic:179.5,"*":180},pme=new Set(["albers usa","craig","peirce quincuncial","satellite"]),mme={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}},gme=.001,yme=.1,bme="#F0DC82",_me="#3399FF",xme={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},wme={type:"Sphere"},Ame={ocean:1,land:1,lakes:1},Mme={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},Tme=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],kme=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],Cme={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var P8=oe((V3,nU)=>{(function(e,r){typeof V3=="object"&&typeof nU!="undefined"?r(V3):(e=e||self,r(e.topojson=e.topojson||{}))})(V3,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var _,A,T=x.scale[0],M=x.scale[1],E=x.translate[0],P=x.translate[1];return function(z,I){I||(_=A=0);var X=2,H=z.length,V=new Array(H);for(V[0]=(_+=z[0])*T+E,V[1]=(A+=z[1])*M+P;X<H;)V[X]=z[X],++X;return V}}function a(x){var _=t(x.transform),A,T=1/0,M=T,E=-T,P=-T;function z(X){X=_(X),X[0]<T&&(T=X[0]),X[0]>E&&(E=X[0]),X[1]<M&&(M=X[1]),X[1]>P&&(P=X[1])}function I(X){switch(X.type){case"GeometryCollection":X.geometries.forEach(I);break;case"Point":z(X.coordinates);break;case"MultiPoint":X.coordinates.forEach(z);break}}x.arcs.forEach(function(X){for(var H=-1,V=X.length,N;++H<V;)N=_(X[H],H),N[0]<T&&(T=N[0]),N[0]>E&&(E=N[0]),N[1]<M&&(M=N[1]),N[1]>P&&(P=N[1])});for(A in x.objects)I(x.objects[A]);return[T,M,E,P]}function n(x,_){for(var A,T=x.length,M=T-_;M<--T;)A=x[M],x[M++]=x[T],x[T]=A}function i(x,_){return typeof _=="string"&&(_=x.objects[_]),_.type==="GeometryCollection"?{type:"FeatureCollection",features:_.geometries.map(function(A){return o(x,A)})}:o(x,_)}function o(x,_){var A=_.id,T=_.bbox,M=_.properties==null?{}:_.properties,E=l(x,_);return A==null&&T==null?{type:"Feature",properties:M,geometry:E}:T==null?{type:"Feature",id:A,properties:M,geometry:E}:{type:"Feature",id:A,bbox:T,properties:M,geometry:E}}function l(x,_){var A=t(x.transform),T=x.arcs;function M(H,V){V.length&&V.pop();for(var N=T[H<0?~H:H],Q=0,ee=N.length;Q<ee;++Q)V.push(A(N[Q],Q));H<0&&n(V,ee)}function E(H){return A(H)}function P(H){for(var V=[],N=0,Q=H.length;N<Q;++N)M(H[N],V);return V.length<2&&V.push(V[0]),V}function z(H){for(var V=P(H);V.length<4;)V.push(V[0]);return V}function I(H){return H.map(z)}function X(H){var V=H.type,N;switch(V){case"GeometryCollection":return{type:V,geometries:H.geometries.map(X)};case"Point":N=E(H.coordinates);break;case"MultiPoint":N=H.coordinates.map(E);break;case"LineString":N=P(H.arcs);break;case"MultiLineString":N=H.arcs.map(P);break;case"Polygon":N=I(H.arcs);break;case"MultiPolygon":N=H.arcs.map(I);break;default:return null}return{type:V,coordinates:N}}return X(_)}function s(x,_){var A={},T={},M={},E=[],P=-1;_.forEach(function(X,H){var V=x.arcs[X<0?~X:X],N;V.length<3&&!V[1][0]&&!V[1][1]&&(N=_[++P],_[P]=X,_[H]=N)}),_.forEach(function(X){var H=z(X),V=H[0],N=H[1],Q,ee;if(Q=M[V])if(delete M[Q.end],Q.push(X),Q.end=N,ee=T[N]){delete T[ee.start];var re=ee===Q?Q:Q.concat(ee);T[re.start=Q.start]=M[re.end=ee.end]=re}else T[Q.start]=M[Q.end]=Q;else if(Q=T[N])if(delete T[Q.start],Q.unshift(X),Q.start=V,ee=M[V]){delete M[ee.end];var ae=ee===Q?Q:ee.concat(Q);T[ae.start=ee.start]=M[ae.end=Q.end]=ae}else T[Q.start]=M[Q.end]=Q;else Q=[X],T[Q.start=V]=M[Q.end=N]=Q});function z(X){var H=x.arcs[X<0?~X:X],V=H[0],N;return x.transform?(N=[0,0],H.forEach(function(Q){N[0]+=Q[0],N[1]+=Q[1]})):N=H[H.length-1],X<0?[N,V]:[V,N]}function I(X,H){for(var V in X){var N=X[V];delete H[N.start],delete N.start,delete N.end,N.forEach(function(Q){A[Q<0?~Q:Q]=1}),E.push(N)}}return I(M,T),I(T,M),_.forEach(function(X){A[X<0?~X:X]||E.push([X])}),E}function u(x){return l(x,f.apply(this,arguments))}function f(x,_,A){var T,M,E;if(arguments.length>1)T=c(x,_,A);else for(M=0,T=new Array(E=x.arcs.length);M<E;++M)T[M]=M;return{type:"MultiLineString",arcs:s(x,T)}}function c(x,_,A){var T=[],M=[],E;function P(V){var N=V<0?~V:V;(M[N]||(M[N]=[])).push({i:V,g:E})}function z(V){V.forEach(P)}function I(V){V.forEach(z)}function X(V){V.forEach(I)}function H(V){switch(E=V,V.type){case"GeometryCollection":V.geometries.forEach(H);break;case"LineString":z(V.arcs);break;case"MultiLineString":case"Polygon":I(V.arcs);break;case"MultiPolygon":X(V.arcs);break}}return H(_),M.forEach(A==null?function(V){T.push(V[0].i)}:function(V){A(V[0].g,V[V.length-1].g)&&T.push(V[0].i)}),T}function d(x){for(var _=-1,A=x.length,T,M=x[A-1],E=0;++_<A;)T=M,M=x[_],E+=T[0]*M[1]-T[1]*M[0];return Math.abs(E)}function h(x){return l(x,p.apply(this,arguments))}function p(x,_){var A={},T=[],M=[];_.forEach(E);function E(I){switch(I.type){case"GeometryCollection":I.geometries.forEach(E);break;case"Polygon":P(I.arcs);break;case"MultiPolygon":I.arcs.forEach(P);break}}function P(I){I.forEach(function(X){X.forEach(function(H){(A[H=H<0?~H:H]||(A[H]=[])).push(I)})}),T.push(I)}function z(I){return d(l(x,{type:"Polygon",arcs:[I]}).coordinates[0])}return T.forEach(function(I){if(!I._){var X=[],H=[I];for(I._=1,M.push(X);I=H.pop();)X.push(I),I.forEach(function(V){V.forEach(function(N){A[N<0?~N:N].forEach(function(Q){Q._||(Q._=1,H.push(Q))})})})}}),T.forEach(function(I){delete I._}),{type:"MultiPolygon",arcs:M.map(function(I){var X=[],H;if(I.forEach(function(re){re.forEach(function(ae){ae.forEach(function(ie){A[ie<0?~ie:ie].length<2&&X.push(ie)})})}),X=s(x,X),(H=X.length)>1)for(var V=1,N=z(X[0]),Q,ee;V<H;++V)(Q=z(X[V]))>N&&(ee=X[0],X[0]=X[V],X[V]=ee,N=Q);return X}).filter(function(I){return I.length>0})}}function m(x,_){for(var A=0,T=x.length;A<T;){var M=A+T>>>1;x[M]<_?A=M+1:T=M}return A}function b(x){var _={},A=x.map(function(){return[]});function T(re,ae){re.forEach(function(ie){ie<0&&(ie=~ie);var ue=_[ie];ue?ue.push(ae):_[ie]=[ae]})}function M(re,ae){re.forEach(function(ie){T(ie,ae)})}function E(re,ae){re.type==="GeometryCollection"?re.geometries.forEach(function(ie){E(ie,ae)}):re.type in P&&P[re.type](re.arcs,ae)}var P={LineString:T,MultiLineString:M,Polygon:M,MultiPolygon:function(re,ae){re.forEach(function(ie){M(ie,ae)})}};x.forEach(E);for(var z in _)for(var I=_[z],X=I.length,H=0;H<X;++H)for(var V=H+1;V<X;++V){var N=I[H],Q=I[V],ee;(ee=A[N])[z=m(ee,Q)]!==Q&&ee.splice(z,0,Q),(ee=A[Q])[z=m(ee,N)]!==N&&ee.splice(z,0,N)}return A}function y(x){if(x==null)return r;var _,A,T=x.scale[0],M=x.scale[1],E=x.translate[0],P=x.translate[1];return function(z,I){I||(_=A=0);var X=2,H=z.length,V=new Array(H),N=Math.round((z[0]-E)/T),Q=Math.round((z[1]-P)/M);for(V[0]=N-_,_=N,V[1]=Q-A,A=Q;X<H;)V[X]=z[X],++X;return V}}function C(x,_){if(x.transform)throw new Error("already quantized");if(!_||!_.scale){if(!((P=Math.floor(_))>=2))throw new Error("n must be \u22652");I=x.bbox||a(x);var A=I[0],T=I[1],M=I[2],E=I[3],P;_={scale:[M-A?(M-A)/(P-1):1,E-T?(E-T)/(P-1):1],translate:[A,T]}}else I=x.bbox;var z=y(_),I,X,H=x.objects,V={};function N(re){return z(re)}function Q(re){var ae;switch(re.type){case"GeometryCollection":ae={type:"GeometryCollection",geometries:re.geometries.map(Q)};break;case"Point":ae={type:"Point",coordinates:N(re.coordinates)};break;case"MultiPoint":ae={type:"MultiPoint",coordinates:re.coordinates.map(N)};break;default:return re}return re.id!=null&&(ae.id=re.id),re.bbox!=null&&(ae.bbox=re.bbox),re.properties!=null&&(ae.properties=re.properties),ae}function ee(re){var ae=0,ie=1,ue=re.length,xe,De=new Array(ue);for(De[0]=z(re[0],0);++ae<ue;)((xe=z(re[ae],ae))[0]||xe[1])&&(De[ie++]=xe);return ie===1&&(De[ie++]=[0,0]),De.length=ie,De}for(X in H)V[X]=Q(H[X]);return{type:"Topology",bbox:I,transform:_,objects:V,arcs:x.arcs.map(ee)}}e.bbox=a,e.feature=i,e.merge=h,e.mergeArcs=p,e.mesh=u,e.meshArcs=f,e.neighbors=b,e.quantize=C,e.transform=t,e.untransform=y,Object.defineProperty(e,"__esModule",{value:!0})})});var X3=oe((Y8e,iU)=>{"use strict";var R8=iU.exports={},Sme=(ih(),xr(nh)).locationmodeToLayer,Dme=P8().feature;R8.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};R8.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};R8.getTopojsonFeatures=function(e,r){var t=Sme[e.locationmode],a=r.objects[t];return Dme(r,a).features}});var oU=oe(oh=>{"use strict";var Fme=(Za(),xr(nn)).BADNUM;oh.calcTraceToLineCoords=function(e){for(var r=e[0].trace,t=r.connectgaps,a=[],n=[],i=0;i<e.length;i++){var o=e[i],l=o.lonlat;l[0]!==Fme?n.push(l):!t&&n.length>0&&(a.push(n),n=[])}return n.length>0&&a.push(n),a};oh.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};oh.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t<e.length;t++)r[t]=[e[t]];return{type:"MultiPolygon",coordinates:r}};oh.makeBlank=function(){return{type:"Point",coordinates:[]}}});var cU=oe((X8e,fU)=>{"use strict";var N8=Object.defineProperty,Eme=Object.getOwnPropertyDescriptor,Lme=Object.getOwnPropertyNames,qme=Object.prototype.hasOwnProperty,Pme=(e,r)=>{for(var t in r)N8(e,t,{get:r[t],enumerable:!0})},Rme=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Lme(r))!qme.call(e,n)&&n!==t&&N8(e,n,{get:()=>r[n],enumerable:!(a=Eme(r,n))||a.enumerable});return e},zme=e=>Rme(N8({},"__esModule",{value:!0}),e),lU={};Pme(lU,{COUNTRIES:()=>sU,byAlpha2:()=>Hme,byAlpha3:()=>Ime,byM49:()=>Ome,createLookup:()=>uU,lookup:()=>Nme,lookupAlpha3:()=>Bme,sanitize:()=>z8});fU.exports=zme(lU);var sU=[{iso3:"ABW",iso2:"AW",m49:"533",name:"Aruba",aliases:["\u{1F1E6}\u{1F1FC}","country of aruba","land aruba","pais aruba"]},{iso3:"AFG",iso2:"AF",m49:"004",name:"Afghanistan",aliases:["\u{1F1E6}\u{1F1EB}","affghanistan","affghanisthan","affghaunistan","afghania","afghanisthan","afghaunistan","afghaunistaun","afgoniston","de afghanistan islami jumhuriyat","owganystan","\u0430\u0444\u0493\u043E\u043D\u0438\u0441\u0442\u043E\u043D","\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u0647\u0648\u0631\u06CC\u062A"]},{iso3:"AGO",iso2:"AO",m49:"024",name:"Angola",aliases:["\u{1F1E6}\u{1F1F4}","republic of angola","republica de angola"]},{iso3:"AIA",iso2:"AI",m49:"660",name:"Anguilla",aliases:["\u{1F1E6}\u{1F1EE}","malliouhana"]},{iso3:"ALA",iso2:"AX",m49:"248",name:"\xC5land Islands",aliases:["\u{1F1E6}\u{1F1FD}","aaland","aaland islands","ahvenanmaa","aland","aland isles","aland region","alands lan","landskapet aland"]},{iso3:"ALB",iso2:"AL",m49:"008",name:"Albania",aliases:["\u{1F1E6}\u{1F1F1}","peoples republic of albania","peoples socialist republic of albania","republic of albania","republika e shqiperise","shqiperi","shqiperia","shqiperise","socialist republic of albania"]},{iso3:"AND",iso2:"AD",m49:"020",name:"Andorra",aliases:["\u{1F1E6}\u{1F1E9}","el pais dels pirineus","les valls dandorra","principality of andorra","principality of the valleys of andorra","principat dandorra","valls dandorra"]},{iso3:"ARE",iso2:"AE",m49:"784",name:"United Arab Emirates",aliases:["\u{1F1E6}\u{1F1EA}","emirates","uae","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"ARG",iso2:"AR",m49:"032",name:"Argentina",aliases:["\u{1F1E6}\u{1F1F7}","argentine republic","nacion argentina","republic of argentina","republica argentina"]},{iso3:"ARM",iso2:"AM",m49:"051",name:"Armenia",aliases:["\u{1F1E6}\u{1F1F2}","hayastan","hayastani hanrapetutyun","republic of armenia","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576\u056B \u0570\u0561\u0576\u0580\u0561\u057A\u0565\u057F\u0578\u0582\u0569\u0575\u0578\u0582\u0576","\u0570\u0561\u0575\u0584","\u0570\u0570"]},{iso3:"ASM",iso2:"AS",m49:"016",name:"American Samoa",aliases:["\u{1F1E6}\u{1F1F8}","amerika samoa","east samoa","samoa american","samoa united states","territory of american samoa","us samoa"]},{iso3:"ATA",iso2:"AQ",m49:"010",name:"Antarctica",aliases:["\u{1F1E6}\u{1F1F6}","antarctica treaty area"]},{iso3:"ATF",iso2:"TF",m49:"260",name:"French Southern Territories",aliases:["\u{1F1F9}\u{1F1EB}","taaf","terres australes et antarctiques francaises","terres australes francaises","terres australes francaises les","territoire des terres australes et antarctiques francaises"]},{iso3:"ATG",iso2:"AG",m49:"028",name:"Antigua and Barbuda",aliases:["\u{1F1E6}\u{1F1EC}","antigua","antigua barbuda","barbuda"]},{iso3:"AUS",iso2:"AU",m49:"036",name:"Australia",aliases:["\u{1F1E6}\u{1F1FA}","commonwealth of australia","new holland","new hollandia","nova hollandia"]},{iso3:"AUT",iso2:"AT",m49:"040",name:"Austria",aliases:["\u{1F1E6}\u{1F1F9}","osterreich","republic of austria","republik osterreich","zweite republik"]},{iso3:"AZE",iso2:"AZ",m49:"031",name:"Azerbaijan",aliases:["\u{1F1E6}\u{1F1FF}","az\u0259rbaycan","az\u0259rbaycan respublikas\u0131","republic of azerbaijan"]},{iso3:"BDI",iso2:"BI",m49:"108",name:"Burundi",aliases:["\u{1F1E7}\u{1F1EE}","gouvernement du burundi","la republique du burundi","republic of burundi","republika yu burundi","republika yuburundi","republique du burundi","repuburika yuburundi","uburundi"]},{iso3:"BEL",iso2:"BE",m49:"056",name:"Belgium",aliases:["\u{1F1E7}\u{1F1EA}","belg","belgie","belgien","belgique","kingdom of belgium","konigreich belgien","koninkrijk belgie","royaume de belgique"]},{iso3:"BEN",iso2:"BJ",m49:"204",name:"Benin",aliases:["\u{1F1E7}\u{1F1EF}","dahomey","la republique du benin","republic of benin","republique du benin"]},{iso3:"BES",iso2:"BQ",m49:"535",name:"Bonaire, Sint Eustatius and Saba",aliases:["\u{1F1E7}\u{1F1F6}","bes eilanden","bes islands","bijzondere gemeente","bonaire","bonaire saint eustatius and saba","bonaire sint eustatius en saba","caraibisch nederland","caribbean netherlands","caribisch nederland","hulanda karibense","islanan bes","netherlands antilles","saba","sint eustatius"]},{iso3:"BFA",iso2:"BF",m49:"854",name:"Burkina Faso",aliases:["\u{1F1E7}\u{1F1EB}","republic of burkina faso","republic of upper volta"]},{iso3:"BGD",iso2:"BD",m49:"050",name:"Bangladesh",aliases:["\u{1F1E7}\u{1F1E9}","bangla desh","east pakistan","gonaoprojatontri bangladesh","peoples republic of bangladesh","\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE \u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BF\u09A1\u09BF"]},{iso3:"BGR",iso2:"BG",m49:"100",name:"Bulgaria",aliases:["\u{1F1E7}\u{1F1EC}","bulgarian republic","republic of bulgaria","republika bulgaria","republika bulgariya","\u0431\u0433","\u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F"]},{iso3:"BHR",iso2:"BH",m49:"048",name:"Bahrain",aliases:["\u{1F1E7}\u{1F1ED}","bahrein islands","kingdom of bahrain","\u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646"]},{iso3:"BHS",iso2:"BS",m49:"044",name:"Bahamas",aliases:["\u{1F1E7}\u{1F1F8}","bahama islands","bahamas the","commonwealth of the bahamas"]},{iso3:"BIH",iso2:"BA",m49:"070",name:"Bosnia and Herzegovina",aliases:["\u{1F1E7}\u{1F1E6}","bosna","bosna i hercegovina","bosnia","bosnia and hercegovina","bosnia herzegovina","hercegovina","herzegovina","\u0431\u0438\u0445","\u0431\u043E\u0441\u043D\u0430","\u0431\u043E\u0441\u043D\u0430 \u0438 \u0445\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430","\u0431\u0445"]},{iso3:"BLM",iso2:"BL",m49:"652",name:"Saint Barth\xE9lemy",aliases:["\u{1F1E7}\u{1F1F1}","collectivite doutre mer de saint barthelemy","collectivite territoriale de saint barthelemy","collectivity of saint barthelemy","saint barth","saint barths","saint barts","saint bartz"]},{iso3:"BLR",iso2:"BY",m49:"112",name:"Belarus",aliases:["\u{1F1E7}\u{1F1FE}","republic of belarus","respublika belarus","respublika byelarus","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u0430\u044F \u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F","\u0440\u0431","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C"]},{iso3:"BLZ",iso2:"BZ",m49:"084",name:"Belize",aliases:["\u{1F1E7}\u{1F1FF}"]},{iso3:"BMU",iso2:"BM",m49:"060",name:"Bermuda",aliases:["\u{1F1E7}\u{1F1F2}","barmuda","barmuda i","barmuda isl","barmuda islands","barmudas","bermoothes","bermuda islands","bermudas","bermudian islands","colony of bermuda","devils isles","isle of devils","somers islands","somers isles","summers isles","territory of bermuda","virgineola"]},{iso3:"BOL",iso2:"BO",m49:"068",name:"Bolivia (Plurinational State of)",aliases:["\u{1F1E7}\u{1F1F4}","bolivia","bulibiya","estado plurinacional de bolivia","plurinational state of bolivia","puliwya","republic of bolivia","republica de bolivia","volivia","wuliwiya","wuliwya"]},{iso3:"BRA",iso2:"BR",m49:"076",name:"Brazil",aliases:["\u{1F1E7}\u{1F1F7}","brasil","federative republic of brazil","pindorama","republica federativa do brasil"]},{iso3:"BRB",iso2:"BB",m49:"052",name:"Barbados",aliases:["\u{1F1E7}\u{1F1E7}","barbadoes"]},{iso3:"BRN",iso2:"BN",m49:"096",name:"Brunei Darussalam",aliases:["\u{1F1E7}\u{1F1F3}","brunei","nation of brunei the abode of peace","negara brunei darussalam"]},{iso3:"BTN",iso2:"BT",m49:"064",name:"Bhutan",aliases:["\u{1F1E7}\u{1F1F9}","kingdom of bhutan","\u0F60\u0F56\u0FB2\u0F74\u0F42","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63\u0F0B","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F61\u0F74\u0F63\u0F0B\u0F0B"]},{iso3:"BVT",iso2:"BV",m49:"074",name:"Bouvet Island",aliases:["\u{1F1E7}\u{1F1FB}"]},{iso3:"BWA",iso2:"BW",m49:"072",name:"Botswana",aliases:["\u{1F1E7}\u{1F1FC}","lefatshe la botswana","republic of botswana"]},{iso3:"CAF",iso2:"CF",m49:"140",name:"Central African Republic",aliases:["\u{1F1E8}\u{1F1EB}","centrafricaine republique","centrafrique","central africa","kodorosese ti beafrika","la republique","rep centrafrique","republique centrafricaine"]},{iso3:"CAN",iso2:"CA",m49:"124",name:"Canada",aliases:["\u{1F1E8}\u{1F1E6}","le canada"]},{iso3:"CCK",iso2:"CC",m49:"166",name:"Cocos (Keeling) Islands",aliases:["\u{1F1E8}\u{1F1E8}","cocos islands","keeling islands","territory of the cocos keeling islands"]},{iso3:"CHE",iso2:"CH",m49:"756",name:"Switzerland",aliases:["\u{1F1E8}\u{1F1ED}","confederation helvetique","confederation suisse","confederazione elvetica","confederazione svizzera","confederaziun svizra","confoederatio helvetica","conf\u0153deratio helvetica","eidgenossenschaft","elvezia","helvetie","la confederation suisse","schweiz","schweizerische eidgenossenschaft","suisse","svizra","svizzera","swiss","swiss confederation"]},{iso3:"CHL",iso2:"CL",m49:"152",name:"Chile",aliases:["\u{1F1E8}\u{1F1F1}","republic of chile","republica de chile"]},{iso3:"CHN",iso2:"CN",m49:"156",name:"China",aliases:["\u{1F1E8}\u{1F1F3}","china pr","peoples republic of china","pr china","prc","\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD","\u4E2D\u56FD"]},{iso3:"CIV",iso2:"CI",m49:"384",name:"C\xF4te d'Ivoire",aliases:["\u{1F1E8}\u{1F1EE}","cote ivoire","ivory coast","republic of cote divoire","republic of ivory coast","republic of the ivory coast","republique de cote divoire"]},{iso3:"CMR",iso2:"CM",m49:"120",name:"Cameroon",aliases:["\u{1F1E8}\u{1F1F2}","cameroun","la republique du cameroun","republic of cameroon","republique du cameroun"]},{iso3:"COD",iso2:"CD",m49:"180",name:"Democratic Republic of the Congo",aliases:["\u{1F1E8}\u{1F1E9}","congo belge","congo democratic republic of the","congo kinshasa","dem rep congo","dem republic of congo","dem republic of the congo","democratic republic of congo","dr congo","drc","rd congo","rep demcongo","republic of the congo","republique democratique du congo","republique du zaire","zaire"]},{iso3:"COG",iso2:"CG",m49:"178",name:"Congo",aliases:["\u{1F1E8}\u{1F1EC}","congo brazza","congo brazzaville","congo republic","rep congo","republic of congo","republique du congo"]},{iso3:"COK",iso2:"CK",m49:"184",name:"Cook Islands",aliases:["\u{1F1E8}\u{1F1F0}","cook group","hervey islands"]},{iso3:"COL",iso2:"CO",m49:"170",name:"Colombia",aliases:["\u{1F1E8}\u{1F1F4}","republic of colombia","republica de colombia"]},{iso3:"COM",iso2:"KM",m49:"174",name:"Comoros",aliases:["\u{1F1F0}\u{1F1F2}","comores","comores archipel","etat comorien","lunion des comores","republique des comores","republique federale et islamique des comores","republique federale islamique des comores","territoire des comores","union des comores","union of the comoros","\u0625\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631","\u0627\u062A\u062D\u0627\u062F \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u0627\u0644\u0627\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631\u064A","\u0627\u0644\u0642\u0645\u0631","\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0627\u062A\u062D\u0627\u062F\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631\u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"CPV",iso2:"CV",m49:"132",name:"Cabo Verde",aliases:["\u{1F1E8}\u{1F1FB}","cape verde","cape verde islands","kab verd","kabu verdi","kauberdi","republic of cabo verde","republic of cape verde","republica de cabo verde"]},{iso3:"CRI",iso2:"CR",m49:"188",name:"Costa Rica",aliases:["\u{1F1E8}\u{1F1F7}","republic of costa rica","republica de costa rica"]},{iso3:"CUB",iso2:"CU",m49:"192",name:"Cuba",aliases:["\u{1F1E8}\u{1F1FA}","isla juana","republic of cuba","republica de cuba"]},{iso3:"CUW",iso2:"CW",m49:"531",name:"Cura\xE7ao",aliases:["\u{1F1E8}\u{1F1FC}","corsou","corsouw","corsow","country of curacao","curacau","curacoa","curazao","cura\u03C2ao","curocao","island territory of curacao","korsou","land curacao","pais korsou"]},{iso3:"CXR",iso2:"CX",m49:"162",name:"Christmas Island",aliases:["\u{1F1E8}\u{1F1FD}","christmas island other territories","christmas island other territories australia","territory of christmas island"]},{iso3:"CYM",iso2:"KY",m49:"136",name:"Cayman Islands",aliases:["\u{1F1F0}\u{1F1FE}","caymans"]},{iso3:"CYP",iso2:"CY",m49:"196",name:"Cyprus",aliases:["\u{1F1E8}\u{1F1FE}","greek administration of southern cyprus","greek cypriot state","guney k\u0131br\u0131s","guney k\u0131br\u0131s rum cumhuriyeti","guney k\u0131br\u0131s rum kesimi","guney k\u0131br\u0131s rum yonetimi","kipriaki dhimokratia","k\u0131br\u0131s","k\u0131br\u0131s cumhuriyeti","k\u0131br\u0131s rum kesimi","kypriaki dimokratia","kypros","republic of cyprus","\u03BA\u03C5\u03C0\u03C1\u03B9\u03B1\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1","\u03BA\u03C5\u03C0\u03C1\u03BF\u03C2"]},{iso3:"CZE",iso2:"CZ",m49:"203",name:"Czechia",aliases:["\u{1F1E8}\u{1F1FF}","ceska republika","ceske kraje","ceske uzemi","ceske zeme","cesko","cr","czech republic"]},{iso3:"DEU",iso2:"DE",m49:"276",name:"Germany",aliases:["\u{1F1E9}\u{1F1EA}","br deutschland","bundesrepublik","bundesrepublik deutschland","deutschland","federal republic of germany"]},{iso3:"DJI",iso2:"DJ",m49:"262",name:"Djibouti",aliases:["\u{1F1E9}\u{1F1EF}","la republique de djibouti","republic of djibouti","republique de djibouti","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u064A\u0628\u0648\u062A\u064A","\u062C\u064A\u0628\u0648\u062A\u064A"]},{iso3:"DMA",iso2:"DM",m49:"212",name:"Dominica",aliases:["\u{1F1E9}\u{1F1F2}","commonwealth of dominica","island of dominica","waitu kubuli"]},{iso3:"DNK",iso2:"DK",m49:"208",name:"Denmark",aliases:["\u{1F1E9}\u{1F1F0}","dania","danmark","denmark proper","kongeriget danmark","metropolitan denmark"]},{iso3:"DOM",iso2:"DO",m49:"214",name:"Dominican Republic",aliases:["\u{1F1E9}\u{1F1F4}","dominicana","domrep","haiti espanol","quisqueya","republica de santo domingo","republica dominicana","santo domingo"]},{iso3:"DZA",iso2:"DZ",m49:"012",name:"Algeria",aliases:["\u{1F1E9}\u{1F1FF}","peoples democratic republic of algeria","\u0627\u0644\u062C\u0632\u0627\u0626\u0631","\u0627\u0644\u062C\u0632\u0627\u064A\u0631","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631\u064A\u0629 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629","\u0627\u0644\u062F\u0632\u0627\u064A\u0631","\u062F\u0632\u0627\u064A\u0631"]},{iso3:"ECU",iso2:"EC",m49:"218",name:"Ecuador",aliases:["\u{1F1EA}\u{1F1E8}","ecuadorian state","el ecuador","estado ecuatoriano","republic of ecuador","republic of equator","republic of the equator","republica del ecuador"]},{iso3:"EGY",iso2:"EG",m49:"818",name:"Egypt",aliases:["\u{1F1EA}\u{1F1EC}","arab rep egypt","arab republic of egypt","rep egypt","republic of egypt","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0645\u0635\u0631 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0645\u0635\u0631"]},{iso3:"ERI",iso2:"ER",m49:"232",name:"Eritrea",aliases:["\u{1F1EA}\u{1F1F7}","ertra","hagere ertra","hagere iertra","iertra","iritriya","state of eritrea","\u0625\u0631\u062A\u0631\u064A\u0627","\u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u064A\u0631\u064A\u0627","\u0627\u0631\u064A\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u1203\u1308\u1228 \u12A4\u122D\u1275\u122B","\u12A4\u122D\u1275\u122B"]},{iso3:"ESH",iso2:"EH",m49:"732",name:"Western Sahara",aliases:["\u{1F1EA}\u{1F1ED}","southern provinces","spanish sahara","west sahara"]},{iso3:"ESP",iso2:"ES",m49:"724",name:"Spain",aliases:["\u{1F1EA}\u{1F1F8}","espana","estado espanol","kingdom of spain","reino de espana"]},{iso3:"EST",iso2:"EE",m49:"233",name:"Estonia",aliases:["\u{1F1EA}\u{1F1EA}","eesti","eesti noukogude sotsialistlik vabariik","eesti vabariik","estland","republic of estonia"]},{iso3:"ETH",iso2:"ET",m49:"231",name:"Ethiopia",aliases:["\u{1F1EA}\u{1F1F9}","federal democratic republic of ethiopia","ityopiya","yeityopiya federalawi demokrasiyawi ripeblik","yeityopiya hizbawi dimokrasiyawi ripublik","\u12A2\u1275\u12EE\u1335\u12EB","\u12E8\u12A2\u1275\u12EE\u1335\u12EB \u134C\u12F4\u122B\u120B\u12CA \u12F4\u121E\u12AD\u122B\u1232\u12EB\u12CA \u122A\u1350\u1265\u120A\u12AD"]},{iso3:"FIN",iso2:"FI",m49:"246",name:"Finland",aliases:["\u{1F1EB}\u{1F1EE}","republic of finland","republiken finland","suomen tasavalta","suomi"]},{iso3:"FJI",iso2:"FJ",m49:"242",name:"Fiji",aliases:["\u{1F1EB}\u{1F1EF}","fiji ganarajya","matanitu ko viti","matanitu tugalala o viti","republic of fiji","republic of the fiji islands","viti"]},{iso3:"FLK",iso2:"FK",m49:"238",name:"Falkland Islands (Malvinas)",aliases:["\u{1F1EB}\u{1F1F0}","colony of the falkland islands","falkland islands","falklands","islas malvinas","malvinas","malvinas islands"]},{iso3:"FRA",iso2:"FR",m49:"250",name:"France",aliases:["\u{1F1EB}\u{1F1F7}","fr","french republic","la france","la republique francaise","lhexagone","republique francaise"]},{iso3:"FRO",iso2:"FO",m49:"234",name:"Faroe Islands",aliases:["\u{1F1EB}\u{1F1F4}","faer oer","f\xE6r\xF8","faeroe is","faeroe islands","faeroe isles","f\xE6r\xF8erne","faeroes","far oer","faroe island","faroe isles","faroes","faroese islands","f\xF8roya","f\xF8royar","f\xF8royum"]},{iso3:"FSM",iso2:"FM",m49:"583",name:"Micronesia (Federated States of)",aliases:["\u{1F1EB}\u{1F1F2}","fed sts micronesia","fed sts of micronesia","federated states of micronesia","federated states of micronesia fsm","micronesia"]},{iso3:"GAB",iso2:"GA",m49:"266",name:"Gabon",aliases:["\u{1F1EC}\u{1F1E6}","gabonese republic","la republique gabonaise","le gabon","republique du gabon","republique gabonaise"]},{iso3:"GBR",iso2:"GB",m49:"826",name:"United Kingdom of Great Britain and Northern Ireland",aliases:["\u{1F1EC}\u{1F1E7}","britain","england","great britain","great britain and northern ireland","northern ireland","scotland","uk","united kingdom","wales"]},{iso3:"GEO",iso2:"GE",m49:"268",name:"Georgia",aliases:["\u{1F1EC}\u{1F1EA}","georgia country","republic of georgia","sakartvelo","\u049B\u044B\u0440\u04AD\u0442\u04D9\u044B\u043B\u0430","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD\u10E1 \u10E0\u10D4\u10E1\u10DE\u10E3\u10D1\u10DA\u10D8\u10D9\u10D0"]},{iso3:"GGY",iso2:"GG",m49:"831",name:"Guernsey",aliases:["\u{1F1EC}\u{1F1EC}","bailiwick of guernsey","bailliage de guernesey","bailliage de guernesi","giernesi","great britain guernsey","guernesey","lisia"]},{iso3:"GHA",iso2:"GH",m49:"288",name:"Ghana",aliases:["\u{1F1EC}\u{1F1ED}","republic of ghana"]},{iso3:"GIB",iso2:"GI",m49:"292",name:"Gibraltar",aliases:["\u{1F1EC}\u{1F1EE}","rock of gibraltar"]},{iso3:"GIN",iso2:"GN",m49:"324",name:"Guinea",aliases:["\u{1F1EC}\u{1F1F3}","guinee","guinee conakry","republic of guinea","republique de guinee"]},{iso3:"GLP",iso2:"GP",m49:"312",name:"Guadeloupe",aliases:["\u{1F1EC}\u{1F1F5}"]},{iso3:"GMB",iso2:"GM",m49:"270",name:"Gambia",aliases:["\u{1F1EC}\u{1F1F2}","islamic republic of the gambia","republic of the gambia"]},{iso3:"GNB",iso2:"GW",m49:"624",name:"Guinea-Bissau",aliases:["\u{1F1EC}\u{1F1FC}","guine bissau","republic of guinea bissau","republica da guine bissau"]},{iso3:"GNQ",iso2:"GQ",m49:"226",name:"Equatorial Guinea",aliases:["\u{1F1EC}\u{1F1F6}","guine equatorial","guinea ecuatorial","guinea espanola","guinee equat","guinee equatoriale","la republique de guinee equatoriale","posesiones espanolas del golfo de guinea","provincia de la guinea ecuatorial","republic of equatorial guinea","republica da guine equatorial","republica de guinea ecuatorial","territorios espanoles del golfo de guinea"]},{iso3:"GRC",iso2:"GR",m49:"300",name:"Greece",aliases:["\u{1F1EC}\u{1F1F7}","ellada","ellas","elliniki dhimokratia","elliniki dimokratia","greek republic","hellas","hellas greece","hellenic republic","vasilion tis ellados","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1\u03C2","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03BF\u03C2","\u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B1\u03C2","\u03B5\u03BB\u03BB\u03B1\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1"]},{iso3:"GRD",iso2:"GD",m49:"308",name:"Grenada",aliases:["\u{1F1EC}\u{1F1E9}"]},{iso3:"GRL",iso2:"GL",m49:"304",name:"Greenland",aliases:["\u{1F1EC}\u{1F1F1}","kalaallit nunaat"]},{iso3:"GTM",iso2:"GT",m49:"320",name:"Guatemala",aliases:["\u{1F1EC}\u{1F1F9}","republic of guatemala","republica de guatemala"]},{iso3:"GUF",iso2:"GF",m49:"254",name:"French Guiana",aliases:["\u{1F1EC}\u{1F1EB}","fr 973","guiana","guiana france","guyane","guyane francaise","gwiyann","gwiyann franse","lagwiyann"]},{iso3:"GUM",iso2:"GU",m49:"316",name:"Guam",aliases:["\u{1F1EC}\u{1F1FA}","guahan","guam usa","islan guahan","island of guam","territory of guam"]},{iso3:"GUY",iso2:"GY",m49:"328",name:"Guyana",aliases:["\u{1F1EC}\u{1F1FE}","co operative republic of guyana","republic of guyana"]},{iso3:"HKG",iso2:"HK",m49:"344",name:"Hong Kong",aliases:["\u{1F1ED}\u{1F1F0}","hksar","hong kong sar","hong kong special administrative region","hong kong special administrative region of the peoples republic of china","hongkong"]},{iso3:"HMD",iso2:"HM",m49:"334",name:"Heard Island and McDonald Islands",aliases:["\u{1F1ED}\u{1F1F2}","heard","heard & mcdonald islands","heard and macdonald islands","heard island","himi","mcdonald","mcdonald island","territory of heard island and mcdonald islands"]},{iso3:"HND",iso2:"HN",m49:"340",name:"Honduras",aliases:["\u{1F1ED}\u{1F1F3}","guaymuras","higueras","honduran republic","republic of honduras","republica de honduras"]},{iso3:"HRV",iso2:"HR",m49:"191",name:"Croatia",aliases:["\u{1F1ED}\u{1F1F7}","hrvatska","republic of croatia","republika hrvatska"]},{iso3:"HTI",iso2:"HT",m49:"332",name:"Haiti",aliases:["\u{1F1ED}\u{1F1F9}","ayiti","haitian republic","la republique dhaiti","repiblik d ayiti","republic of haiti","republique dhaiti"]},{iso3:"HUN",iso2:"HU",m49:"348",name:"Hungary",aliases:["\u{1F1ED}\u{1F1FA}","a magyar koztarsasag","a magyar nepkoztarsasag","harmadik magyar koztarsasag","magyar koztarsasag","magyar nepkoztarsasag","magyarorszag","mo"]},{iso3:"IDN",iso2:"ID",m49:"360",name:"Indonesia",aliases:["\u{1F1EE}\u{1F1E9}","negara kesatuan republik indonesia","nkri","republic of indonesia","republik indonesia"]},{iso3:"IMN",iso2:"IM",m49:"833",name:"Isle of Man",aliases:["\u{1F1EE}\u{1F1F2}","ellan vannin","i man","i mann","i mannin","isle of mann","mann","mannin","manx"]},{iso3:"IND",iso2:"IN",m49:"356",name:"India",aliases:["\u{1F1EE}\u{1F1F3}","al hind","bharat","bharat ganarajya","bharata","bharatvarsh","hindoostan","hindustan","indostan","republic of india","tenjiku","tianzhu","\u0906\u0930\u094D\u092F\u0935\u0930\u094D\u0924","\u0907\u0902\u0921\u093F\u092F\u093E","\u0907\u0923\u094D\u0921\u093F\u092F\u093E","\u092D\u093E\u0930\u0924","\u092D\u093E\u0930\u0924 \u0917\u0923\u0930\u093E\u091C\u094D\u092F","\u092D\u093E\u0930\u0924\u0935\u0930\u094D\u0937","\u0939\u093F\u0902\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u094B\u0938\u094D\u0924\u093E\u0928"]},{iso3:"IOT",iso2:"IO",m49:"086",name:"British Indian Ocean Territory",aliases:["\u{1F1EE}\u{1F1F4}","biot"]},{iso3:"IRL",iso2:"IE",m49:"372",name:"Ireland",aliases:["\u{1F1EE}\u{1F1EA}","eire","hibernia","irish republic","poblacht na heireann","republic of ireland","southern ireland"]},{iso3:"IRN",iso2:"IR",m49:"364",name:"Iran (Islamic Republic of)",aliases:["\u{1F1EE}\u{1F1F7}","iran","islamic rep iran","islamic republic of iran","persia","\u0627\u06CC\u0631\u0627\u0646","\u0627\u06CC\u0631\u0627\u0646\u0632\u0645\u06CC\u0646","\u067E\u0627\u0631\u0633","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u064A\u0631\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u06CC\u0631\u0627\u0646","\u0643\u0634\u0648\u0631 \u0634\u0627\u0647\u0646\u0634\u0627\u0647\u06CC \u0627\u064A\u0631\u0627\u0646"]},{iso3:"IRQ",iso2:"IQ",m49:"368",name:"Iraq",aliases:["\u{1F1EE}\u{1F1F6}","eraq","iraqe","komar i eraq","republic of iraq","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064A\u0629","\u0627\u0644\u0639\u0631\u0627\u0642","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642","\u0639\u0631\u0627\u0642","\u0639\u06CE\u0631\u0627\u0642"]},{iso3:"ISL",iso2:"IS",m49:"352",name:"Iceland",aliases:["\u{1F1EE}\u{1F1F8}","icelandic republic","island","ly\xF0veldi\xF0 island","republic of iceland","ysland"]},{iso3:"ISR",iso2:"IL",m49:"376",name:"Israel",aliases:["\u{1F1EE}\u{1F1F1}","erez yisrael","medinat yisrael","state of israel","yisrael","\u05D9\u05E9\u05E8\u05D0\u05DC","\u05DE\u05D3\u05D9\u05E0\u05EA \u05D9\u05E9\u05E8\u05D0\u05DC"]},{iso3:"ITA",iso2:"IT",m49:"380",name:"Italy",aliases:["\u{1F1EE}\u{1F1F9}","il bel paese","italia","italian republic","repubblica italiana","republic of italy"]},{iso3:"JAM",iso2:"JM",m49:"388",name:"Jamaica",aliases:["\u{1F1EF}\u{1F1F2}","commonwealth of jamaica","jamieka","jomieka","jumieka"]},{iso3:"JEY",iso2:"JE",m49:"832",name:"Jersey",aliases:["\u{1F1EF}\u{1F1EA}","bailliage de jerri","bailliage de jersey","balliwick of jersey","i iersey","i jersey","iersey","iersey i","isle of jersey","jerri","jersey i","jersey island"]},{iso3:"JOR",iso2:"JO",m49:"400",name:"Jordan",aliases:["\u{1F1EF}\u{1F1F4}","giordania","hashemite kingdom of jordan","kingdom of jordan","state of jordan","yarden","\u0627\u0644\u0623\u0631\u062F\u0646","\u0627\u0644\u0627\u0631\u062F\u0646","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0623\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0627\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629"]},{iso3:"JPN",iso2:"JP",m49:"392",name:"Japan",aliases:["\u{1F1EF}\u{1F1F5}","state of japan","\u3042\u304D\u3064\u3057\u307E","\u304A\u304A\u3084\u3057\u307E","\u3057\u304D\u3057\u307E","\u30B8\u30E3\u30D1\u30F3","\u3057\u3093\u3057\u3085\u3046","\u306B\u3063\u307D\u3093","\u306B\u3063\u307D\u3093\u3053\u304F","\u306B\u307B\u3093","\u306B\u307B\u3093\u3053\u304F","\u3072\u3044\u305A\u308B\u304F\u306B","\u3075\u305D\u3046","\u5927\u516B\u5DDE","\u6276\u6728\u4E4B\u5730","\u6276\u6851","\u6276\u6851\u56FD","\u6577\u5CF6","\u65E5\u51FA\u308B\u56FD","\u65E5\u672C","\u6991\u6728\u4E4B\u5730","\u745E\u7A42\u56FD","\u795E\u5DDE","\u79CB\u6D25\u5CF6","\u8466\u539F\u4E2D\u56FD"]},{iso3:"KAZ",iso2:"KZ",m49:"398",name:"Kazakhstan",aliases:["\u{1F1F0}\u{1F1FF}","qazaqstan","qazaqstan respublikasy","republic of kazakhstan","\u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u0440\u043A"]},{iso3:"KEN",iso2:"KE",m49:"404",name:"Kenya",aliases:["\u{1F1F0}\u{1F1EA}","jamhuri ya kenya","republic of kenya"]},{iso3:"KGZ",iso2:"KG",m49:"417",name:"Kyrgyzstan",aliases:["\u{1F1F0}\u{1F1EC}","kyrgyz republic","kyrgyz respublikasy","kyrgyzstan respublikasy","\u043A\u0440","\u043A\u044B\u0440\u0433\u044B\u0437 \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u043A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D"]},{iso3:"KHM",iso2:"KH",m49:"116",name:"Cambodia",aliases:["\u{1F1F0}\u{1F1ED}","camboya","campuchia","kambodzha","kamboja","kampuchea","kingdom of cambodia","\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6","\u1796\u17D2\u179A\u17C7\u179A\u17B6\u1787\u17B6\u178E\u17B6\u1785\u1780\u17D2\u179A\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6"]},{iso3:"KIR",iso2:"KI",m49:"296",name:"Kiribati",aliases:["\u{1F1F0}\u{1F1EE}","republic of kiribati"]},{iso3:"KNA",iso2:"KN",m49:"659",name:"Saint Kitts and Nevis",aliases:["\u{1F1F0}\u{1F1F3}","federation of saint christopher and nevis","federation of saint kitts and nevis","kitts & nevis","nevis","saint christopher","saint christopher and nevis","saint kitts"]},{iso3:"KOR",iso2:"KR",m49:"410",name:"Republic of Korea",aliases:["\u{1F1F0}\u{1F1F7}","korea","korea republic","korea republic of","korea south","rep korea","s korea","south korea","taehan minguk","\uB0A8\uC870\uC120","\uB0A8\uD55C","\uB300\uD55C","\uB300\uD55C\uBBFC\uAD6D","\uCF54\uB9AC\uC544","\uD55C\uAD6D"]},{iso3:"KWT",iso2:"KW",m49:"414",name:"Kuwait",aliases:["\u{1F1F0}\u{1F1FC}","state of kuwait","\u0627\u0644\u0643\u0648\u064A\u062A","\u062F\u0648\u0644\u0629 \u0627\u0644\u0643\u0648\u064A\u062A"]},{iso3:"LAO",iso2:"LA",m49:"418",name:"Lao People's Democratic Republic",aliases:["\u{1F1F1}\u{1F1E6}","laos","sathalanalat paxathipatai paxaxon lao","\u0EAA\u0EB2\u0E97\u0EB2\u0EA5\u0EB0\u0E99\u0EB0\u0EA5\u0EB1\u0E94 \u0E9B\u0EB0\u0E8A\u0EB2\u0E97\u0EB4\u0E9B\u0EB0\u0EC4\u0E95 \u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7","\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7","\u0EA5\u0EB2\u0EA7"]},{iso3:"LBN",iso2:"LB",m49:"422",name:"Lebanon",aliases:["\u{1F1F1}\u{1F1E7}","lebanese republic","republic of lebanon","state of lebanon","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064A\u0629","\u0644\u0628\u0646\u0627\u0646"]},{iso3:"LBR",iso2:"LR",m49:"430",name:"Liberia",aliases:["\u{1F1F1}\u{1F1F7}","liber","republic of liberia"]},{iso3:"LBY",iso2:"LY",m49:"434",name:"Libya",aliases:["\u{1F1F1}\u{1F1FE}","state of libya","\u0627\u0644\u062C\u0645\u0627\u0647\u064A\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629 \u0627\u0644\u0625\u0634\u062A\u0631\u0627\u0643\u064A\u0629","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A","\u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A\u0646","\u062F\u0648\u0644\u0629 \u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u0628\u064A\u0627","\u0644\u064A\u0628\u064A","\u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u064A\u0629"]},{iso3:"LCA",iso2:"LC",m49:"662",name:"Saint Lucia",aliases:["\u{1F1F1}\u{1F1E8}","hewanorra","iyonola"]},{iso3:"LIE",iso2:"LI",m49:"438",name:"Liechtenstein",aliases:["\u{1F1F1}\u{1F1EE}","furstentum lichtenstein","furstentum liechtenstein","principality of liechtenstein"]},{iso3:"LKA",iso2:"LK",m49:"144",name:"Sri Lanka",aliases:["\u{1F1F1}\u{1F1F0}","ceylan","ceylon","democratic socialist republic of sri lanka","ilankaic cananayaka cocalicak kutiyarcu","lankava","prajatantravadi samajavadi janarajaya sri lanka","serendib","srilanka","taprobane","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0B9A\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0BB7\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B88\u0BB4\u0BAE\u0BCD","\u0B9A\u0BBF\u0BB2\u0BCB\u0BA9\u0BCD","\u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF \u0DB4\u0DCA\u0DBB\u0DA2\u0DCF\u0DAD\u0DB1\u0DCA\u0DAD\u0DCA\u0DBB\u0DC0\u0DCF\u0DAF\u0DD3 \u0DC3\u0DB8\u0DCF\u0DA2\u0DC0\u0DCF\u0DAF\u0DD3 \u0DA2\u0DB1\u0DBB\u0DA2\u0DBA","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0"]},{iso3:"LSO",iso2:"LS",m49:"426",name:"Lesotho",aliases:["\u{1F1F1}\u{1F1F8}","kingdom of lesotho","mmuso wa lesotho","mountain kingdom"]},{iso3:"LTU",iso2:"LT",m49:"440",name:"Lithuania",aliases:["\u{1F1F1}\u{1F1F9}","lietuva","lietuvos respublika","republic of lithuania"]},{iso3:"LUX",iso2:"LU",m49:"442",name:"Luxembourg",aliases:["\u{1F1F1}\u{1F1FA}","grand duche","grand duche de luxembourg","grand duchy of luxembourg","gro\xDFherzogtum luxemburg","groussherzogtum letzebuerg","le grand duche de luxembourg","letzebuerg","letzebuerger land","lux","luxemburg"]},{iso3:"LVA",iso2:"LV",m49:"428",name:"Latvia",aliases:["\u{1F1F1}\u{1F1FB}","latveja","latvejas republika","latvian republic","latvija","latvijas republika","letm\u043E","letm\u043E vabam\u043E","republic of latvia"]},{iso3:"MAC",iso2:"MO",m49:"446",name:"Macao",aliases:["\u{1F1F2}\u{1F1F4}","aomen","macao sar","macao special administrative region","macao special administrative region of the peoples republic of china","macau","macau rae da china","macau sar","macau special administrative region","macau special administrative region of the peoples republic of china","raem","regiao administrativa especial de macau","regiao administrativa especial de macau da republica popular da china","\u4E2D\u570B\u6FB3\u9580\u7279\u5225\u884C\u653F\u5340","\u6FB3\u9580"]},{iso3:"MAF",iso2:"MF",m49:"663",name:"Saint Martin (French Part)",aliases:["\u{1F1F2}\u{1F1EB}","collectivite de saint martin","collectivity of saint martin","saint martin","saint martin antilles francaises","saint martin france"]},{iso3:"MAR",iso2:"MA",m49:"504",name:"Morocco",aliases:["\u{1F1F2}\u{1F1E6}","kingdom of morocco","\u0627\u0644\u0645\u063A\u0631\u0628","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u063A\u0631\u0628\u064A\u0629","\u2D30\u2D4E\u2D53\u2D54 \u2D4F \u2D61\u2D30\u2D3D\u2D53\u2D5B","\u2D30\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31","\u2D5C\u2D30\u2D33\u2D4D\u2D37\u2D49\u2D5C \u2D4F \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31"]},{iso3:"MCO",iso2:"MC",m49:"492",name:"Monaco",aliases:["\u{1F1F2}\u{1F1E8}","fort hercule","la principaute de monaco","monaco rattachee au district de menton en 1793","munegu","principality and diocese of monaco","principality of monaco","principatu de munegu","principaute de monaco"]},{iso3:"MDA",iso2:"MD",m49:"498",name:"Republic of Moldova",aliases:["\u{1F1F2}\u{1F1E9}","moldavia","moldova","moldova republic of","moldova republica","r moldova","rep moldova","republica moldova","\u043C\u043E\u043B\u0434\u043E\u0432\u0430"]},{iso3:"MDG",iso2:"MG",m49:"450",name:"Madagascar",aliases:["\u{1F1F2}\u{1F1EC}","la republique de madagascar","madagasikara","repoblikani madagasikara","republic of madagascar","republique de madagascar"]},{iso3:"MDV",iso2:"MV",m49:"462",name:"Maldives",aliases:["\u{1F1F2}\u{1F1FB}","dhivehi raajjeyge jumhooriyyaa","republic of maldives","\u078B\u07A8\u0788\u07AC\u0780\u07A8 \u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07AA\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7"]},{iso3:"MEX",iso2:"MX",m49:"484",name:"Mexico",aliases:["\u{1F1F2}\u{1F1FD}","estados unidos mejicanos","estados unidos mexicanos","mejico","mexican republic","mexican united states","mexihco","mexihko","mexika sentik wexteyowalko","mexiko","mexko","mexko axkayotl","mexko tlalli","nueva espana","republica mejicana","republica mexicana","united mexican states","united states of mexico"]},{iso3:"MHL",iso2:"MH",m49:"584",name:"Marshall Islands",aliases:["\u{1F1F2}\u{1F1ED}","aelon kein ad","aolepan aorokin majel","jolet jen anij","majel","majol","republic of the marshall islands"]},{iso3:"MKD",iso2:"MK",m49:"807",name:"North Macedonia",aliases:["\u{1F1F2}\u{1F1F0}","former yugoslav republic of macedonia","fyr macedonia","fyrom","irjm","ish republika jugosllave e maqedonise","macedonia","macedonia former yugoslav republic of","macedonia fyr","maqedoni","maqedonia","maqedonia e veriut","republic of macedonia","republic of north macedonia","republika e maqedonise","republika e maqedonise se veriut","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u043C","\u0440\u0441\u043C","\u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430"]},{iso3:"MLI",iso2:"ML",m49:"466",name:"Mali",aliases:["\u{1F1F2}\u{1F1F1}","maali","republic of mali"]},{iso3:"MLT",iso2:"MT",m49:"470",name:"Malta",aliases:["\u{1F1F2}\u{1F1F9}","malta island","repubblika ta malta","republic of malta"]},{iso3:"MMR",iso2:"MM",m49:"104",name:"Myanmar",aliases:["\u{1F1F2}\u{1F1F2}","burma","pyidaungzu myanma naingngandaw","pyidaungzu thammada myanma naingngandaw","republic of the union of myanmar","union of burma","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u200C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1017\u1019\u102C\u1015\u103C\u100A\u103A","\u1019\u103C\u1014\u103A\u1019\u102C","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1019\u103C\u1014\u103A\u1019\u102C\u1015\u103C\u100A\u103A"]},{iso3:"MNE",iso2:"ME",m49:"499",name:"Montenegro",aliases:["\u{1F1F2}\u{1F1EA}","crna cora","\u0446\u0440\u043D\u0430 \u0433\u043E\u0440\u0430"]},{iso3:"MNG",iso2:"MN",m49:"496",name:"Mongolia",aliases:["\u{1F1F2}\u{1F1F3}","bugd nayramdah mongol ard uls","mongol uls","state of mongolia","\u043C\u043E\u043D\u0433\u043E\u043B","\u043C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441","\u182E\u1824\u1829\u182D\u1824\u182F \u1824\u182F\u1824\u1830"]},{iso3:"MNP",iso2:"MP",m49:"580",name:"Northern Mariana Islands",aliases:["\u{1F1F2}\u{1F1F5}","cnmi","commonwealth of the northern maria islands","commonwealth of the northern mariana islands","northern marianas","notte marianas","sankattan siha na islas marianas"]},{iso3:"MOZ",iso2:"MZ",m49:"508",name:"Mozambique",aliases:["\u{1F1F2}\u{1F1FF}","mocambique","republic of mozambique","republica de mocambique"]},{iso3:"MRT",iso2:"MR",m49:"478",name:"Mauritania",aliases:["\u{1F1F2}\u{1F1F7}","islamic republic of mauritania","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629 \u0627\u0644\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629","\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"]},{iso3:"MSR",iso2:"MS",m49:"500",name:"Montserrat",aliases:["\u{1F1F2}\u{1F1F8}","island of montserrat"]},{iso3:"MTQ",iso2:"MQ",m49:"474",name:"Martinique",aliases:["\u{1F1F2}\u{1F1F6}","territorial collectivity of martinique"]},{iso3:"MUS",iso2:"MU",m49:"480",name:"Mauritius",aliases:["\u{1F1F2}\u{1F1FA}","ile maurice","la republique de maurice","maurice","moris","republic of mauritius","republique de maurice"]},{iso3:"MWI",iso2:"MW",m49:"454",name:"Malawi",aliases:["\u{1F1F2}\u{1F1FC}","republic of malawi"]},{iso3:"MYS",iso2:"MY",m49:"458",name:"Malaysia",aliases:["\u{1F1F2}\u{1F1FE}","federation of malaysia","malaysia federation","negara seberang tambak","persekutuan malaysia"]},{iso3:"MYT",iso2:"YT",m49:"175",name:"Mayotte",aliases:["\u{1F1FE}\u{1F1F9}","departement de mayotte","departement region de mayotte","department of mayotte"]},{iso3:"NAM",iso2:"NA",m49:"516",name:"Namibia",aliases:["\u{1F1F3}\u{1F1E6}","republic of namibia"]},{iso3:"NCL",iso2:"NC",m49:"540",name:"New Caledonia",aliases:["\u{1F1F3}\u{1F1E8}","caledonie","kanaky","kanaky nouvelle caledonie","nouvelle caledonie","territoire de la nouvelle caledonie et dependances","territoire des nouvelle caledonie et dependances","territory of new caledonia and dependencies"]},{iso3:"NER",iso2:"NE",m49:"562",name:"Niger",aliases:["\u{1F1F3}\u{1F1EA}","jamhuriyar nijar","nijar","republic niger","republic of niger","republic of the niger"]},{iso3:"NFK",iso2:"NF",m49:"574",name:"Norfolk Island",aliases:["\u{1F1F3}\u{1F1EB}","norfolk island australia","norfolk island other territories","norfolk island other territories australia","territory of norfolk island"]},{iso3:"NGA",iso2:"NG",m49:"566",name:"Nigeria",aliases:["\u{1F1F3}\u{1F1EC}","federal republic of nigeria","naija"]},{iso3:"NIC",iso2:"NI",m49:"558",name:"Nicaragua",aliases:["\u{1F1F3}\u{1F1EE}","republic of nicaragua","republica de nicaragua"]},{iso3:"NIU",iso2:"NU",m49:"570",name:"Niue",aliases:["\u{1F1F3}\u{1F1FA}"]},{iso3:"NLD",iso2:"NL",m49:"528",name:"Kingdom of the Netherlands",aliases:["\u{1F1F3}\u{1F1F1}","hollandt","kingdom of netherlands","koninkrijk der nederlanden","nederland","nederlanden","nederlandt","netherlands","netherlands kingdom of the"]},{iso3:"NOR",iso2:"NO",m49:"578",name:"Norway",aliases:["\u{1F1F3}\u{1F1F4}","kingdom of norway","kongeriket noreg","kongeriket norge","noreg","norge"]},{iso3:"NPL",iso2:"NP",m49:"524",name:"Nepal",aliases:["\u{1F1F3}\u{1F1F5}","bal bo","bal poi yul","bal yul","balbo","balpo","balpo yul","nipal","sanghiya loktantrik ganatantra nepal","\u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930\u093E\u0924\u094D\u092E\u0915 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932"]},{iso3:"NRU",iso2:"NR",m49:"520",name:"Naoero",aliases:["\u{1F1F3}\u{1F1F7}","nauru","pleasant island","republic of naoero","republic of nauru"]},{iso3:"NZL",iso2:"NZ",m49:"554",name:"New Zealand",aliases:["\u{1F1F3}\u{1F1FF}","aotearoa","aotearoa new zealand","dominion of new zealand"]},{iso3:"OMN",iso2:"OM",m49:"512",name:"Oman",aliases:["\u{1F1F4}\u{1F1F2}","sultanate of oman","uman","\u0633\u0644\u0637\u0646\u0629 \u0639\u0645\u0627\u0646","\u0639\u0645\u0627\u0646"]},{iso3:"PAK",iso2:"PK",m49:"586",name:"Pakistan",aliases:["\u{1F1F5}\u{1F1F0}","hoi quoc","islamic republic of pakistan","republic of pakistan","tay hoi","\u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u06C1\u0648\u0631\u06CC\u06C1 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646","\u0628\u0627\u06A9\u0633\u062A\u0627\u0646","\u067E\u0627\u06A9\u0633\u062A\u0627\u0646"]},{iso3:"PAN",iso2:"PA",m49:"591",name:"Panama",aliases:["\u{1F1F5}\u{1F1E6}","republic of panama","republica de panama"]},{iso3:"PCN",iso2:"PN",m49:"612",name:"Pitcairn",aliases:["\u{1F1F5}\u{1F1F3}","occas island","pisskern ali\u0435n","pitcairn henderson ducie and oeno islands","pitcairn island","pitcairn islands","pitkern ailen"]},{iso3:"PER",iso2:"PE",m49:"604",name:"Peru",aliases:["\u{1F1F5}\u{1F1EA}","piruw","piruw ripuwlika","republic of peru","republica del peru"]},{iso3:"PHL",iso2:"PH",m49:"608",name:"Philippines",aliases:["\u{1F1F5}\u{1F1ED}","philippine islands","republic of the philippines"]},{iso3:"PLW",iso2:"PW",m49:"585",name:"Palau",aliases:["\u{1F1F5}\u{1F1FC}","belau","peeloo","pelew","pelew islands","pellew","republic of belau","republic of palau","\u30D1\u30E9\u30AA","\u30D1\u30E9\u30AA\u5171\u548C\u56FD"]},{iso3:"PNG",iso2:"PG",m49:"598",name:"Papua New Guinea",aliases:["\u{1F1F5}\u{1F1EC}","independent state of papua new guinea","papua niugini"]},{iso3:"POL",iso2:"PL",m49:"616",name:"Poland",aliases:["\u{1F1F5}\u{1F1F1}","polska","republic of poland","rzeczpospolita polska"]},{iso3:"PRI",iso2:"PR",m49:"630",name:"Puerto Rico",aliases:["\u{1F1F5}\u{1F1F7}","boriken","borinquen","boriquen","commonwealth of puerto rico","estado libre asociado de puerto rico","free associated state of puerto rico","isla del encanto","island of enchantment","isle of enchantment","mancomunidad de puerto rico","porto rico","territorio de puerto rico","territorio estadounidense de puerto rico","territory of porto rico","territory of puerto rico"]},{iso3:"PRK",iso2:"KP",m49:"408",name:"Democratic People's Republic of Korea",aliases:["\u{1F1F0}\u{1F1F5}","choson minjujuui inmin konghwaguk","dpr korea","dprk","korea democratic peoples republic of","n korea","north korea","\uACF5\uD654\uAD6D","\uBD81\uC870\uC120","\uBD81\uD55C","\uC870\uC120","\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D"]},{iso3:"PRT",iso2:"PT",m49:"620",name:"Portugal",aliases:["\u{1F1F5}\u{1F1F9}","republica portuguesa"]},{iso3:"PRY",iso2:"PY",m49:"600",name:"Paraguay",aliases:["\u{1F1F5}\u{1F1FE}","paraguai","republic of paraguay","republica del paraguay","teta paraguai"]},{iso3:"PSE",iso2:"PS",m49:"275",name:"State of Palestine",aliases:["\u{1F1F5}\u{1F1F8}","palestine","palestine state of","palestinian authority","palestinian national authority","palestinian territory","west bank and gaza","\u0623\u0631\u0627\u0636\u064A \u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0623\u0631\u0627\u0636\u064A \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0636\u0641\u0629 \u0627\u0644\u063A\u0631\u0628\u064A\u0629 \u0648\u0642\u0637\u0627\u0639 \u063A\u0632\u0629","\u062F\u0648\u0644\u0629 \u0641\u0644\u0633\u0637\u064A\u0646","\u0641\u0644\u0633\u0637\u064A\u0646"]},{iso3:"PYF",iso2:"PF",m49:"258",name:"French Polynesia",aliases:["\u{1F1F5}\u{1F1EB}","f oh","french establishments in oceania","french oceania","french settlements in oceania","polynesie francaise","territoire de la polynesie francaise","territory of french polynesia"]},{iso3:"QAT",iso2:"QA",m49:"634",name:"Qatar",aliases:["\u{1F1F6}\u{1F1E6}","state of qatar","\u0625\u0645\u0627\u0631\u0629 \u0642\u0637\u0631","\u062F\u0648\u0644\u0629 \u0642\u0637\u0631","\u0642\u0637\u0631"]},{iso3:"REU",iso2:"RE",m49:"638",name:"R\xE9union",aliases:["\u{1F1F7}\u{1F1EA}","ile bourbon","ile de la reunion","la reunion","re","region reunion","reunion island"]},{iso3:"ROU",iso2:"RO",m49:"642",name:"Romania",aliases:["\u{1F1F7}\u{1F1F4}"]},{iso3:"RUS",iso2:"RU",m49:"643",name:"Russian Federation",aliases:["\u{1F1F7}\u{1F1FA}","federation of russia","russia","\u0440\u043E\u0441\u0441\u0438\u0438\u0441\u043A\u0430\u044F \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044F","\u0440\u043E\u0441\u0441\u0438\u044F","\u0440\u0444"]},{iso3:"RWA",iso2:"RW",m49:"646",name:"Rwanda",aliases:["\u{1F1F7}\u{1F1FC}","igihugu cyimisozi igihumbi","jamhuri ya rwanda","la republique du rwanda","land of a thousand hills","republic of rwanda","republika yu rwanda","republique du rwanda","republique rwandaise","repubulika yu rwanda","u rwanda"]},{iso3:"SAU",iso2:"SA",m49:"682",name:"Saudi Arabia",aliases:["\u{1F1F8}\u{1F1E6}","kingdom of saudi arabia","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0647","\u0627\u0644\u0645\u0645\u0644\u0643\u0647 \u0627\u0644\u0639\u0631\u0628\u064A\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0628\u0644\u0627\u062F \u0627\u0644\u062D\u0631\u0645\u064A\u0646 \u0627\u0644\u0634\u0631\u064A\u0641\u064A\u0646","\u062F\u0648\u0644\u0629 \u0622\u0644 \u0633\u0639\u0648\u062F","\u0633\u0639\u0648\u062F\u064A\u0629","\u0633\u0639\u0648\u062F\u064A\u0647","\u0645\u0646\u0628\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","\u0645\u0647\u0628\u0637 \u0627\u0644\u0648\u062D\u064A"]},{iso3:"SDN",iso2:"SD",m49:"729",name:"Sudan",aliases:["\u{1F1F8}\u{1F1E9}","al sudan","as sudan","north sudan","republic of sudan","republic of the sudan","soudan","\u0627\u0644\u0633\u0648\u062F\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0633\u0648\u062F\u0627\u0646"]},{iso3:"SEN",iso2:"SN",m49:"686",name:"Senegal",aliases:["\u{1F1F8}\u{1F1F3}","la republique du senegal","republic of senegal","republique du senegal","sen","senegaal"]},{iso3:"SGP",iso2:"SG",m49:"702",name:"Singapore",aliases:["\u{1F1F8}\u{1F1EC}","garden city","lion city","republic of singapore","republik singapura","singapore city","singapura","spore","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BC8","\u0BB8\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BC2\u0BB0\u0BCD"]},{iso3:"SGS",iso2:"GS",m49:"239",name:"South Georgia and the South Sandwich Islands",aliases:["\u{1F1EC}\u{1F1F8}","falkland islands dependencies","sgssi","south georgia","south georgia & south sandwich islands","south sandwich islands"]},{iso3:"SHN",iso2:"SH",m49:"654",name:"Saint Helena",aliases:["\u{1F1F8}\u{1F1ED}","ascension","saint helena and dependencies","saint helena ascension and tristan da cunha","tristan da cunha"]},{iso3:"SJM",iso2:"SJ",m49:"744",name:"Svalbard and Jan Mayen Islands",aliases:["\u{1F1F8}\u{1F1EF}","jan mayen","svalbard","svalbard and jan mayen","svalbard og jan mayen"]},{iso3:"SLB",iso2:"SB",m49:"090",name:"Solomon Islands",aliases:["\u{1F1F8}\u{1F1E7}"]},{iso3:"SLE",iso2:"SL",m49:"694",name:"Sierra Leone",aliases:["\u{1F1F8}\u{1F1F1}","republic of sierra leone"]},{iso3:"SLV",iso2:"SV",m49:"222",name:"El Salvador",aliases:["\u{1F1F8}\u{1F1FB}","republic of el salvador","republica de el salvador","salvador"]},{iso3:"SMR",iso2:"SM",m49:"674",name:"San Marino",aliases:["\u{1F1F8}\u{1F1F2}","most serene republic of san marino","repubblica di san marino","serenissima repubblica di san marino"]},{iso3:"SOM",iso2:"SO",m49:"706",name:"Somalia",aliases:["\u{1F1F8}\u{1F1F4}","as sumal","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jamhuuriyadda soomaaliyeed","soomaaliya","soomaaliyeey toosoo","\u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u062F\u064A\u0645\u0648\u0642\u0631\u0627\u0637\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u0641\u064A\u062F\u0631\u0627\u0644\u064A\u0629","\u0635\u0648\u0645\u0627\u0644"]},{iso3:"SPM",iso2:"PM",m49:"666",name:"Saint Pierre and Miquelon",aliases:["\u{1F1F5}\u{1F1F2}","collectivite territoriale de saint pierre et miquelon","miquelon","saint pierre","saint pierre et miquelon","territorial collectivity of saint pierre and miquelon"]},{iso3:"SRB",iso2:"RS",m49:"688",name:"Serbia",aliases:["\u{1F1F7}\u{1F1F8}","republic of serbia","republika srbija","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0440\u0431\u0438\u0458\u0430","\u0441\u0440\u0431\u0438\u0458\u0430"]},{iso3:"SSD",iso2:"SS",m49:"728",name:"South Sudan",aliases:["\u{1F1F8}\u{1F1F8}","republic of south sudan","southern sudan"]},{iso3:"STP",iso2:"ST",m49:"678",name:"Sao Tome and Principe",aliases:["\u{1F1F8}\u{1F1F9}","democratic republic of sao tome and principe","principe","republica democratica de sao tome e principe","sao tome","sao tome e principe","sao tome og principe"]},{iso3:"SUR",iso2:"SR",m49:"740",name:"Suriname",aliases:["\u{1F1F8}\u{1F1F7}","dutch guiana","republic of surinam","republic of suriname","republiek suriname","surinam","surrinam"]},{iso3:"SVK",iso2:"SK",m49:"703",name:"Slovakia",aliases:["\u{1F1F8}\u{1F1F0}","slovak republic","slovenska republika","slovensko"]},{iso3:"SVN",iso2:"SI",m49:"705",name:"Slovenia",aliases:["\u{1F1F8}\u{1F1EE}","republic of slovenia","republika slovenija","slovenija"]},{iso3:"SWE",iso2:"SE",m49:"752",name:"Sweden",aliases:["\u{1F1F8}\u{1F1EA}","kingdom of sweden","konungadomet sverige","konungariket sverige","kungadomet sverige","kungariket sverige","sverige","swedish kingdom"]},{iso3:"SWZ",iso2:"SZ",m49:"748",name:"Eswatini",aliases:["\u{1F1F8}\u{1F1FF}","kingdom of eswatini","kingdom of swaziland","swaziland","umbuso weswatini"]},{iso3:"SXM",iso2:"SX",m49:"534",name:"Sint Maarten (Dutch part)",aliases:["\u{1F1F8}\u{1F1FD}","country of sint maarten","eilandgebied sint maarten","land sint maarten","saint maarten","saint martin dutch part","sint maarten","sint martin"]},{iso3:"SYC",iso2:"SC",m49:"690",name:"Seychelles",aliases:["\u{1F1F8}\u{1F1E8}","la republique des seychelles","repiblik sesel","republic of seychelles","republique des seychelles"]},{iso3:"SYR",iso2:"SY",m49:"760",name:"Syrian Arab Republic",aliases:["\u{1F1F8}\u{1F1FE}","surya","syria","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0648\u0631\u064A\u0629","\u0627\u0644\u0634\u0627\u0645","\u0633\u0648\u0631\u064A\u0627","\u0633\u0648\u0631\u064A\u0629"]},{iso3:"TCA",iso2:"TC",m49:"796",name:"Turks and Caicos Islands",aliases:["\u{1F1F9}\u{1F1E8}","caicos","caicos islands","turks","turks & caicos","turks islands"]},{iso3:"TCD",iso2:"TD",m49:"148",name:"Chad",aliases:["\u{1F1F9}\u{1F1E9}","la republique du tchad","republic of chad","republique du tchad","tchad","\u062A\u0634\u0627\u062F","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062A\u0634\u0627\u062F"]},{iso3:"TGO",iso2:"TG",m49:"768",name:"Togo",aliases:["\u{1F1F9}\u{1F1EC}","la republique togolaise","republique togolaise","togolese republic"]},{iso3:"THA",iso2:"TH",m49:"764",name:"Thailand",aliases:["\u{1F1F9}\u{1F1ED}","kingdom of siam","kingdom of thailand","siam","thai","\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E22\u0E32\u0E21","\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E2A\u0E22\u0E32\u0E21","\u0E2A\u0E22\u0E32\u0E21"]},{iso3:"TJK",iso2:"TJ",m49:"762",name:"Tajikistan",aliases:["\u{1F1F9}\u{1F1EF}","jumhurii tojikiston","republic of tajikistan","\u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D","\u0442\u04B7","\u0442\u04B7\u043A","\u04B7\u0442","\u04B7\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D"]},{iso3:"TKL",iso2:"TK",m49:"772",name:"Tokelau",aliases:["\u{1F1F9}\u{1F1F0}","tokelau islands","union islands"]},{iso3:"TKM",iso2:"TM",m49:"795",name:"Turkmenistan",aliases:["\u{1F1F9}\u{1F1F2}"]},{iso3:"TLS",iso2:"TL",m49:"626",name:"Timor-Leste",aliases:["\u{1F1F9}\u{1F1F1}","democratic republic of timor leste","east timor","republica democratica de timor leste","republika demokratika timor lorosae","timor loro sae","timor lorosae"]},{iso3:"TON",iso2:"TO",m49:"776",name:"Tonga",aliases:["\u{1F1F9}\u{1F1F4}","friendly islands","kingdom of tonga","puleanga fakatui o tonga","tonga islands"]},{iso3:"TTO",iso2:"TT",m49:"780",name:"Trinidad and Tobago",aliases:["\u{1F1F9}\u{1F1F9}","republic of trinidad and tobago","tobago","trinidad"]},{iso3:"TUN",iso2:"TN",m49:"788",name:"Tunisia",aliases:["\u{1F1F9}\u{1F1F3}","republic of tunisia","tunisian republic","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0648\u0646\u0633\u064A\u0629","\u062A\u0648\u0646\u0633","\u062A\u0648\u0646\u0633 \u0627\u0644\u062E\u0636\u0631\u0627\u0621"]},{iso3:"TUR",iso2:"TR",m49:"792",name:"T\xFCrkiye",aliases:["\u{1F1F9}\u{1F1F7}","republic of turkey","republic of turkiye","turkey","turkiye cumhuriyeti"]},{iso3:"TUV",iso2:"TV",m49:"798",name:"Tuvalu",aliases:["\u{1F1F9}\u{1F1FB}","ellice islands"]},{iso3:"TWN",iso2:"TW",m49:"158",name:"Taiwan",aliases:["\u{1F1F9}\u{1F1FC}","chinese republic","chinese taipei","chunghwa minkuo","chunghwa minkwo","conghwaminku","cunghwa minkwo","cyukamingkok","formosa","nanasian","nationalist china","republic of china","republic of china taiwan","roc","taivang","taiwan province of china","taiwan roc","taywan","taywang","teywan","\u4E2D\u83EF\u6C11\u570B","\u4E2D\u83EF\u6C11\u570B\uFF08\u81FA\u7063\uFF09","\u4E2D\u83EF\u81FA\u5317","\u53F0\u7063","\u81FA\u6F8E\u91D1\u99AC","\u81FA\u7063"]},{iso3:"TZA",iso2:"TZ",m49:"834",name:"United Republic of Tanzania",aliases:["\u{1F1F9}\u{1F1FF}","jamhuri ya muungano wa tanganyika na zanzibar","jamhuri ya muungano wa tanzania","tanzania","tanzania jamhuri ya muungano wa","tanzania united republic of","united republic of tanganyika and zanzibar"]},{iso3:"UGA",iso2:"UG",m49:"800",name:"Uganda",aliases:["\u{1F1FA}\u{1F1EC}","jamhuri ya uganda","lulu ya afrika","ouganda","pearl of africa","republic of uganda","ugandah"]},{iso3:"UKR",iso2:"UA",m49:"804",name:"Ukraine",aliases:["\u{1F1FA}\u{1F1E6}","ukr","ukraina","ukrainia","ukrayina","\u0432\u043A\u0440\u0430\u0456\u043D\u0430","\u0443\u043A\u0440\u0430\u0456\u043D\u0430"]},{iso3:"UMI",iso2:"UM",m49:"581",name:"United States Minor Outlying Islands",aliases:["\u{1F1FA}\u{1F1F2}","us minor outlying islands","us outlying islands","usmoi"]},{iso3:"URY",iso2:"UY",m49:"858",name:"Uruguay",aliases:["\u{1F1FA}\u{1F1FE}","eastern republic of uruguay","oriental republic of uruguay"]},{iso3:"USA",iso2:"US",m49:"840",name:"United States of America",aliases:["\u{1F1FA}\u{1F1F8}","amelika","amelika hui pu ia","amelika huipuia","amelika mokuaina hui pu ia","america","eeuu","eeuu de america","estados unidos","estados unidos de america","los estados","los estados unidos","los estados unidos de america","mokuaina hui pu ia","union americana","united states","us","us of a","us of america","usa"]},{iso3:"UZB",iso2:"UZ",m49:"860",name:"Uzbekistan",aliases:["\u{1F1FA}\u{1F1FF}","ozbek","ozbekiston","ozbekiston respublikasi","republic of uzbekistan","uzbekiston respublikasi"]},{iso3:"VAT",iso2:"VA",m49:"336",name:"Holy See",aliases:["\u{1F1FB}\u{1F1E6}","citta del vaticano","civitas vaticana","colle vaticano","papal state","santa sede citta del vaticano","state of vatican city","stato della citta del vaticano","status civitatis vaticanae","status civitatis vatican\xE6","vatican","vatican city","vatican city state","vaticano"]},{iso3:"VCT",iso2:"VC",m49:"670",name:"Saint Vincent and the Grenadines",aliases:["\u{1F1FB}\u{1F1E8}","grenadines","saint vincent","saint vincent and grenadines"]},{iso3:"VEN",iso2:"VE",m49:"862",name:"Venezuela (Bolivarian Republic of)",aliases:["\u{1F1FB}\u{1F1EA}","bolivarian republic of venezuela","br venezuela","estados unidos de venezuela","rb venezuela","republic of venezuela","republica bolivariana de venezuela","republica de venezuela","venezuela"]},{iso3:"VGB",iso2:"VG",m49:"092",name:"British Virgin Islands",aliases:["\u{1F1FB}\u{1F1EC}","bvi","virgin islands british","virgin islands of the united kingdom","virgin islands united kingdom"]},{iso3:"VIR",iso2:"VI",m49:"850",name:"United States Virgin Islands",aliases:["\u{1F1FB}\u{1F1EE}","american virgin islands","us virgin islands","virgin islands of the united states","virgin islands us"]},{iso3:"VNM",iso2:"VN",m49:"704",name:"Viet Nam",aliases:["\u{1F1FB}\u{1F1F3}","chxhcn viet nam","chxhcnvn","cong hoa xa hoi chu nghia viet nam","socialist republic of viet nam","socialist republic of vietnam","vietnam"]},{iso3:"VUT",iso2:"VU",m49:"548",name:"Vanuatu",aliases:["\u{1F1FB}\u{1F1FA}","la republique du vanuatu","republic of vanuatu","republique de vanuatu","ripablik blong vanuatu"]},{iso3:"WLF",iso2:"WF",m49:"876",name:"Wallis and Futuna Islands",aliases:["\u{1F1FC}\u{1F1EB}","collectivite des iles wallis et futuna","emeni simete","futuna","iles wallis et futuna","makape papilio","territoire de wallis et futuna","territoire des iles wallis et futuna","wallis","wallis & futuna","wallis et futuna"]},{iso3:"WSM",iso2:"WS",m49:"882",name:"Samoa",aliases:["\u{1F1FC}\u{1F1F8}","independent state of samoa","malo saoloto tutoatasi o samoa","samoa i sisifo","western samoa"]},{iso3:"YEM",iso2:"YE",m49:"887",name:"Yemen",aliases:["\u{1F1FE}\u{1F1EA}","rep yemen","republic of yemen","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u064A\u0645\u0646\u064A\u0629","\u0627\u0644\u064A\u0645\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u064A\u0645\u0646"]},{iso3:"ZAF",iso2:"ZA",m49:"710",name:"South Africa",aliases:["\u{1F1FF}\u{1F1E6}","aferika borwa","aforika borwa","afrika boroa","afrika borwa","afrika dzonga","afurika tshipembe","emzantsi afrika","iningizimu afrika","iriphabhulikhi ye ningizimu afrika","iriphabhulikhi yeningizimu afrika","iriphabhuliki yase ningizimu afrika","iriphabliki yasemzantsi afrika","iriphabliki yaseningizimu afrika","iriphabliki yom zantsi afrika","isewula afrika","repabliki ya afrika borwa","rephaboliki ya aforika borwa","rephaboliki ya afrika borwa","republic of south africa","republiek van suid afrika","riphabliki ra afrika dzonga","rsa","suid afrika","umzansi","umzantsi afrika","unie van suid afrika","union of south africa"]},{iso3:"ZMB",iso2:"ZM",m49:"894",name:"Zambia",aliases:["\u{1F1FF}\u{1F1F2}","northern rhodesia","republic of zambia"]},{iso3:"ZWE",iso2:"ZW",m49:"716",name:"Zimbabwe",aliases:["\u{1F1FF}\u{1F1FC}","ezimbabwe","izimbabwe","republic of zimbabwe","rhodesia","southern rhodesia","zimbabwe rhodesia","zimbagwe"]}];function z8(e){return e.normalize("NFD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").toLowerCase().replace(/[\u064B-\u065F]/g,"").replace(/['\u2018\u2019\u02BB\u02BC\u02BD\u02C8\u2032`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-\u2013\u2014]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function uU(e){let r=new Map,t=new Map,a=new Map;for(let l of e)r.set(l.iso3,l),l.iso2&&t.set(l.iso2,l),l.m49&&a.set(l.m49,l);let n=new Map;for(let l of e)for(let s of[l.name,...l.aliases]){let u=z8(s),f=n.get(u);if(f!==void 0&&f!==l.iso3)throw new Error(`Duplicate name/alias "${u}": ${f} vs ${l.iso3}`);n.set(u,l.iso3)}function i(l){if(l==null)return;let s=String(l).trim();if(!s)return;if(/^\d+$/.test(s)){let f=a.get(String(parseInt(s,10)).padStart(3,"0"));if(f)return f}if(/^[A-Za-z]{2}$/.test(s)){let f=t.get(s.toUpperCase());if(f)return f}if(/^[A-Za-z]{3}$/.test(s)){let f=r.get(s.toUpperCase());if(f)return f}let u=n.get(z8(s));return u===void 0?void 0:r.get(u)}function o(l){var s;return(s=i(l))==null?void 0:s.iso3}return{lookup:i,lookupAlpha3:o,byAlpha3:r,byAlpha2:t,byM49:a}}var lh=uU(sU),Nme=lh.lookup,Bme=lh.lookupAlpha3,Ime=lh.byAlpha3,Hme=lh.byAlpha2,Ome=lh.byM49});var $3=oe(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var An=63710088e-1,I8={centimeters:An*100,centimetres:An*100,cm:An*100,degrees:360/(2*Math.PI),deg:360/(2*Math.PI),feet:An*3.28084,ft:An*3.28084,inches:An*39.37,in:An*39.37,kilometers:An/1e3,kilometres:An/1e3,km:An/1e3,meters:An,metres:An,m:An,miles:An/1609.344,mi:An/1609.344,millimeters:An*1e3,millimetres:An*1e3,mm:An*1e3,nauticalmiles:An/1852,nmi:An/1852,radians:1,rad:1,yards:An*1.0936,yd:An*1.0936},B8={acres:247105e-9,ac:247105e-9,centimeters:1e4,centimetres:1e4,cm:1e4,feet:10.763910417,ft:10.763910417,hectares:1e-4,ha:1e-4,inches:1550.003100006,in:1550.003100006,kilometers:1e-6,kilometres:1e-6,km:1e-6,meters:1,metres:1,m:1,miles:386e-9,mi:386e-9,nauticalmiles:29155334959812285e-23,nmi:29155334959812285e-23,millimeters:1e6,millimetres:1e6,mm:1e6,yards:1.195990046,yd:1.195990046};function K0(e,r,t={}){let a={type:"Feature"};return(t.id===0||t.id)&&(a.id=t.id),t.bbox&&(a.bbox=t.bbox),a.properties=r||{},a.geometry=e,a}function Ume(e,r,t={}){switch(e){case"Point":return H8(r).geometry;case"LineString":return U8(r).geometry;case"Polygon":return O8(r).geometry;case"MultiPoint":return dU(r).geometry;case"MultiLineString":return vU(r).geometry;case"MultiPolygon":return hU(r).geometry;default:throw new Error(e+" is invalid")}}function H8(e,r,t={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!W3(e[0])||!W3(e[1]))throw new Error("coordinates must contain numbers");return K0({type:"Point",coordinates:e},r,t)}function Gme(e,r,t={}){return Z3(e.map(a=>H8(a,r)),t)}function O8(e,r,t={}){for(let n of e){if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(n[n.length-1].length!==n[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;i<n[n.length-1].length;i++)if(n[n.length-1][i]!==n[0][i])throw new Error("First and last Position are not equivalent.")}return K0({type:"Polygon",coordinates:e},r,t)}function Yme(e,r,t={}){return Z3(e.map(a=>O8(a,r)),t)}function U8(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return K0({type:"LineString",coordinates:e},r,t)}function Vme(e,r,t={}){return Z3(e.map(a=>U8(a,r)),t)}function Z3(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function vU(e,r,t={}){return K0({type:"MultiLineString",coordinates:e},r,t)}function dU(e,r,t={}){return K0({type:"MultiPoint",coordinates:e},r,t)}function hU(e,r,t={}){return K0({type:"MultiPolygon",coordinates:e},r,t)}function Xme(e,r,t={}){return K0({type:"GeometryCollection",geometries:e},r,t)}function jme(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}function pU(e,r="kilometers"){let t=I8[r];if(!t)throw new Error(r+" units is invalid");return e*t}function G8(e,r="kilometers"){let t=I8[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Wme(e,r){return mU(G8(e,r))}function Zme(e){let r=e%360;return r<0&&(r+=360),r}function $me(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function mU(e){return e%(2*Math.PI)*180/Math.PI}function Jme(e){return e%360*Math.PI/180}function Kme(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return pU(G8(e,r),t)}function Qme(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let a=B8[r];if(!a)throw new Error("invalid original units");let n=B8[t];if(!n)throw new Error("invalid final units");return e/a*n}function W3(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function ege(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function j3(e){delete e.bbox,e.type==="Feature"?e.geometry&&j3(e.geometry):e.type==="FeatureCollection"?e.features.forEach(j3):e.type==="GeometryCollection"&&e.geometries.forEach(j3)}function rge(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(r=>{if(!W3(r))throw new Error("bbox must only contain numbers")})}function tge(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}ya.areaFactors=B8;ya.azimuthToBearing=$me;ya.bearingToAzimuth=Zme;ya.convertArea=Qme;ya.convertLength=Kme;ya.degreesToRadians=Jme;ya.earthRadius=An;ya.factors=I8;ya.feature=K0;ya.featureCollection=Z3;ya.geometry=Ume;ya.geometryCollection=Xme;ya.isNumber=W3;ya.isObject=ege;ya.lengthToDegrees=Wme;ya.lengthToRadians=G8;ya.lineString=U8;ya.lineStrings=Vme;ya.multiLineString=vU;ya.multiPoint=dU;ya.multiPolygon=hU;ya.point=H8;ya.points=Gme;ya.polygon=O8;ya.polygons=Yme;ya.radiansToDegrees=mU;ya.radiansToLength=pU;ya.removeBbox=j3;ya.round=jme;ya.validateBBox=rge;ya.validateId=tge});var K3=oe(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});var qi=$3();function sh(e,r,t){if(e!==null)for(var a,n,i,o,l,s,u,f=0,c=0,d,h=e.type,p=h==="FeatureCollection",m=h==="Feature",b=p?e.features.length:1,y=0;y<b;y++){u=p?e.features[y].geometry:m?e.geometry:e,d=u?u.type==="GeometryCollection":!1,l=d?u.geometries.length:1;for(var C=0;C<l;C++){var x=0,_=0;if(o=d?u.geometries[C]:u,o!==null){s=o.coordinates;var A=o.type;switch(f=t&&(A==="Polygon"||A==="MultiPolygon")?1:0,A){case null:break;case"Point":if(r(s,c,y,x,_)===!1)return!1;c++,x++;break;case"LineString":case"MultiPoint":for(a=0;a<s.length;a++){if(r(s[a],c,y,x,_)===!1)return!1;c++,A==="MultiPoint"&&x++}A==="LineString"&&x++;break;case"Polygon":case"MultiLineString":for(a=0;a<s.length;a++){for(n=0;n<s[a].length-f;n++){if(r(s[a][n],c,y,x,_)===!1)return!1;c++}A==="MultiLineString"&&x++,A==="Polygon"&&_++}A==="Polygon"&&x++;break;case"MultiPolygon":for(a=0;a<s.length;a++){for(_=0,n=0;n<s[a].length;n++){for(i=0;i<s[a][n].length-f;i++){if(r(s[a][n][i],c,y,x,_)===!1)return!1;c++}_++}x++}break;case"GeometryCollection":for(a=0;a<o.geometries.length;a++)if(sh(o.geometries[a],r,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function age(e,r,t,a){var n=t;return sh(e,function(i,o,l,s,u){o===0&&t===void 0?n=i:n=r(n,i,o,l,s,u)},a),n}function gU(e,r){var t;switch(e.type){case"FeatureCollection":for(t=0;t<e.features.length&&r(e.features[t].properties,t)!==!1;t++);break;case"Feature":r(e.properties,0);break}}function nge(e,r,t){var a=t;return gU(e,function(n,i){i===0&&t===void 0?a=n:a=r(a,n,i)}),a}function yU(e,r){if(e.type==="Feature")r(e,0);else if(e.type==="FeatureCollection")for(var t=0;t<e.features.length&&r(e.features[t],t)!==!1;t++);}function ige(e,r,t){var a=t;return yU(e,function(n,i){i===0&&t===void 0?a=n:a=r(a,n,i)}),a}function oge(e){var r=[];return sh(e,function(t){r.push(t)}),r}function Y8(e,r){var t,a,n,i,o,l,s,u,f,c,d=0,h=e.type==="FeatureCollection",p=e.type==="Feature",m=h?e.features.length:1;for(t=0;t<m;t++){for(l=h?e.features[t].geometry:p?e.geometry:e,u=h?e.features[t].properties:p?e.properties:{},f=h?e.features[t].bbox:p?e.bbox:void 0,c=h?e.features[t].id:p?e.id:void 0,s=l?l.type==="GeometryCollection":!1,o=s?l.geometries.length:1,n=0;n<o;n++){if(i=s?l.geometries[n]:l,i===null){if(r(null,d,u,f,c)===!1)return!1;continue}switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(r(i,d,u,f,c)===!1)return!1;break}case"GeometryCollection":{for(a=0;a<i.geometries.length;a++)if(r(i.geometries[a],d,u,f,c)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}d++}}function lge(e,r,t){var a=t;return Y8(e,function(n,i,o,l,s){i===0&&t===void 0?a=n:a=r(a,n,i,o,l,s)}),a}function J3(e,r){Y8(e,function(t,a,n,i,o){var l=t===null?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return r(qi.feature.call(void 0,t,n,{bbox:i,id:o}),a,0)===!1?!1:void 0}var s;switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon";break}for(var u=0;u<t.coordinates.length;u++){var f=t.coordinates[u],c={type:s,coordinates:f};if(r(qi.feature.call(void 0,c,n),a,u)===!1)return!1}})}function sge(e,r,t){var a=t;return J3(e,function(n,i,o){i===0&&o===0&&t===void 0?a=n:a=r(a,n,i,o)}),a}function bU(e,r){J3(e,function(t,a,n){var i=0;if(t.geometry){var o=t.geometry.type;if(!(o==="Point"||o==="MultiPoint")){var l,s=0,u=0,f=0;if(sh(t,function(c,d,h,p,m){if(l===void 0||a>s||p>u||m>f){l=c,s=a,u=p,f=m,i=0;return}var b=qi.lineString.call(void 0,[l,c],t.properties);if(r(b,a,n,m,i)===!1)return!1;i++,l=c})===!1)return!1}}})}function uge(e,r,t){var a=t,n=!1;return bU(e,function(i,o,l,s,u){n===!1&&t===void 0?a=i:a=r(a,i,o,l,s,u),n=!0}),a}function _U(e,r){if(!e)throw new Error("geojson is required");J3(e,function(t,a,n){if(t.geometry!==null){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(r(t,a,n,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l<o.length;l++)if(r(qi.lineString.call(void 0,o[l],t.properties),a,n,l)===!1)return!1;break}}})}function fge(e,r,t){var a=t;return _U(e,function(n,i,o,l){i===0&&t===void 0?a=n:a=r(a,n,i,o,l)}),a}function cge(e,r){if(r=r||{},!qi.isObject.call(void 0,r))throw new Error("options is invalid");var t=r.featureIndex||0,a=r.multiFeatureIndex||0,n=r.geometryIndex||0,i=r.segmentIndex||0,o=r.properties,l;switch(e.type){case"FeatureCollection":t<0&&(t=e.features.length+t),o=o||e.features[t].properties,l=e.features[t].geometry;break;case"Feature":o=o||e.properties,l=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":l=e;break;default:throw new Error("geojson is invalid")}if(l===null)return null;var s=l.coordinates;switch(l.type){case"Point":case"MultiPoint":return null;case"LineString":return i<0&&(i=s.length+i-1),qi.lineString.call(void 0,[s[i],s[i+1]],o,r);case"Polygon":return n<0&&(n=s.length+n),i<0&&(i=s[n].length+i-1),qi.lineString.call(void 0,[s[n][i],s[n][i+1]],o,r);case"MultiLineString":return a<0&&(a=s.length+a),i<0&&(i=s[a].length+i-1),qi.lineString.call(void 0,[s[a][i],s[a][i+1]],o,r);case"MultiPolygon":return a<0&&(a=s.length+a),n<0&&(n=s[a].length+n),i<0&&(i=s[a][n].length-i-1),qi.lineString.call(void 0,[s[a][n][i],s[a][n][i+1]],o,r)}throw new Error("geojson is invalid")}function vge(e,r){if(r=r||{},!qi.isObject.call(void 0,r))throw new Error("options is invalid");var t=r.featureIndex||0,a=r.multiFeatureIndex||0,n=r.geometryIndex||0,i=r.coordIndex||0,o=r.properties,l;switch(e.type){case"FeatureCollection":t<0&&(t=e.features.length+t),o=o||e.features[t].properties,l=e.features[t].geometry;break;case"Feature":o=o||e.properties,l=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":l=e;break;default:throw new Error("geojson is invalid")}if(l===null)return null;var s=l.coordinates;switch(l.type){case"Point":return qi.point.call(void 0,s,o,r);case"MultiPoint":return a<0&&(a=s.length+a),qi.point.call(void 0,s[a],o,r);case"LineString":return i<0&&(i=s.length+i),qi.point.call(void 0,s[i],o,r);case"Polygon":return n<0&&(n=s.length+n),i<0&&(i=s[n].length+i),qi.point.call(void 0,s[n][i],o,r);case"MultiLineString":return a<0&&(a=s.length+a),i<0&&(i=s[a].length+i),qi.point.call(void 0,s[a][i],o,r);case"MultiPolygon":return a<0&&(a=s.length+a),n<0&&(n=s[a].length+n),i<0&&(i=s[a][n].length-i),qi.point.call(void 0,s[a][n][i],o,r)}throw new Error("geojson is invalid")}Zn.coordAll=oge;Zn.coordEach=sh;Zn.coordReduce=age;Zn.featureEach=yU;Zn.featureReduce=ige;Zn.findPoint=vge;Zn.findSegment=cge;Zn.flattenEach=J3;Zn.flattenReduce=sge;Zn.geomEach=Y8;Zn.geomReduce=lge;Zn.lineEach=_U;Zn.lineReduce=fge;Zn.propEach=gU;Zn.propReduce=nge;Zn.segmentEach=bU;Zn.segmentReduce=uge});var TU=oe(Q3=>{"use strict";Object.defineProperty(Q3,"__esModule",{value:!0});var xU=$3(),dge=K3();function MU(e){return dge.geomReduce.call(void 0,e,(r,t)=>r+hge(t),0)}function hge(e){let r=0,t;switch(e.type){case"Polygon":return wU(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)r+=wU(e.coordinates[t]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function wU(e){let r=0;if(e&&e.length>0){r+=Math.abs(AU(e[0]));for(let t=1;t<e.length;t++)r-=Math.abs(AU(e[t]))}return r}var pge=xU.earthRadius*xU.earthRadius/2,V8=Math.PI/180;function AU(e){let r=e.length-1;if(r<=2)return 0;let t=0,a=0;for(;a<r;){let n=e[a],i=e[a+1===r?0:a+1],o=e[a+2>=r?(a+2)%r:a+2],l=n[0]*V8,s=i[1]*V8,u=o[0]*V8;t+=(u-l)*Math.sin(s),a++}return t*pge}var mge=MU;Q3.area=MU;Q3.default=mge});var CU=oe(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var gge=$3(),yge=K3();function kU(e,r={}){let t=0,a=0,n=0;return yge.coordEach.call(void 0,e,function(i){t+=i[0],a+=i[1],n++},!0),gge.point.call(void 0,[t/n,a/n],r.properties)}var bge=kU;ey.centroid=kU;ey.default=bge});var DU=oe((ry,SU)=>{(function(e,r){r(typeof ry=="object"&&typeof SU!="undefined"?ry:e.d3=e.d3||{})})(ry,(function(e){"use strict";function r(W,le){return W<le?-1:W>le?1:W>=le?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(le,de,K,J){for(K==null&&(K=0),J==null&&(J=le.length);K<J;){var fe=K+J>>>1;W(le[fe],de)<0?K=fe+1:J=fe}return K},right:function(le,de,K,J){for(K==null&&(K=0),J==null&&(J=le.length);K<J;){var fe=K+J>>>1;W(le[fe],de)>0?J=fe:K=fe+1}return K}}}function a(W){return function(le,de){return r(W(le),de)}}var n=t(r),i=n.right,o=n.left;function l(W,le){le==null&&(le=s);for(var de=0,K=W.length-1,J=W[0],fe=new Array(K<0?0:K);de<K;)fe[de]=le(J,J=W[++de]);return fe}function s(W,le){return[W,le]}function u(W,le,de){var K=W.length,J=le.length,fe=new Array(K*J),be,Ne,Ze,er;for(de==null&&(de=s),be=Ze=0;be<K;++be)for(er=W[be],Ne=0;Ne<J;++Ne,++Ze)fe[Ze]=de(er,le[Ne]);return fe}function f(W,le){return le<W?-1:le>W?1:le>=W?0:NaN}function c(W){return W===null?NaN:+W}function d(W,le){var de=W.length,K=0,J=-1,fe=0,be,Ne,Ze=0;if(le==null)for(;++J<de;)isNaN(be=c(W[J]))||(Ne=be-fe,fe+=Ne/++K,Ze+=Ne*(be-fe));else for(;++J<de;)isNaN(be=c(le(W[J],J,W)))||(Ne=be-fe,fe+=Ne/++K,Ze+=Ne*(be-fe));if(K>1)return Ze/(K-1)}function h(W,le){var de=d(W,le);return de&&Math.sqrt(de)}function p(W,le){var de=W.length,K=-1,J,fe,be;if(le==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(fe=be=J;++K<de;)(J=W[K])!=null&&(fe>J&&(fe=J),be<J&&(be=J))}else for(;++K<de;)if((J=le(W[K],K,W))!=null&&J>=J)for(fe=be=J;++K<de;)(J=le(W[K],K,W))!=null&&(fe>J&&(fe=J),be<J&&(be=J));return[fe,be]}var m=Array.prototype,b=m.slice,y=m.map;function C(W){return function(){return W}}function x(W){return W}function _(W,le,de){W=+W,le=+le,de=(J=arguments.length)<2?(le=W,W=0,1):J<3?1:+de;for(var K=-1,J=Math.max(0,Math.ceil((le-W)/de))|0,fe=new Array(J);++K<J;)fe[K]=W+K*de;return fe}var A=Math.sqrt(50),T=Math.sqrt(10),M=Math.sqrt(2);function E(W,le,de){var K,J=-1,fe,be,Ne;if(le=+le,W=+W,de=+de,W===le&&de>0)return[W];if((K=le<W)&&(fe=W,W=le,le=fe),(Ne=P(W,le,de))===0||!isFinite(Ne))return[];if(Ne>0)for(W=Math.ceil(W/Ne),le=Math.floor(le/Ne),be=new Array(fe=Math.ceil(le-W+1));++J<fe;)be[J]=(W+J)*Ne;else for(W=Math.floor(W*Ne),le=Math.ceil(le*Ne),be=new Array(fe=Math.ceil(W-le+1));++J<fe;)be[J]=(W-J)/Ne;return K&&be.reverse(),be}function P(W,le,de){var K=(le-W)/Math.max(0,de),J=Math.floor(Math.log(K)/Math.LN10),fe=K/Math.pow(10,J);return J>=0?(fe>=A?10:fe>=T?5:fe>=M?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(fe>=A?10:fe>=T?5:fe>=M?2:1)}function z(W,le,de){var K=Math.abs(le-W)/Math.max(0,de),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),fe=K/J;return fe>=A?J*=10:fe>=T?J*=5:fe>=M&&(J*=2),le<W?-J:J}function I(W){return Math.ceil(Math.log(W.length)/Math.LN2)+1}function X(){var W=x,le=p,de=I;function K(J){var fe,be=J.length,Ne,Ze=new Array(be);for(fe=0;fe<be;++fe)Ze[fe]=W(J[fe],fe,J);var er=le(Ze),Je=er[0],tr=er[1],ze=de(Ze,Je,tr);Array.isArray(ze)||(ze=z(Je,tr,ze),ze=_(Math.ceil(Je/ze)*ze,tr,ze));for(var lr=ze.length;ze[0]<=Je;)ze.shift(),--lr;for(;ze[lr-1]>tr;)ze.pop(),--lr;var dr=new Array(lr+1),Ar;for(fe=0;fe<=lr;++fe)Ar=dr[fe]=[],Ar.x0=fe>0?ze[fe-1]:Je,Ar.x1=fe<lr?ze[fe]:tr;for(fe=0;fe<be;++fe)Ne=Ze[fe],Je<=Ne&&Ne<=tr&&dr[i(ze,Ne,0,lr)].push(J[fe]);return dr}return K.value=function(J){return arguments.length?(W=typeof J=="function"?J:C(J),K):W},K.domain=function(J){return arguments.length?(le=typeof J=="function"?J:C([J[0],J[1]]),K):le},K.thresholds=function(J){return arguments.length?(de=typeof J=="function"?J:Array.isArray(J)?C(b.call(J)):C(J),K):de},K}function H(W,le,de){if(de==null&&(de=c),!!(K=W.length)){if((le=+le)<=0||K<2)return+de(W[0],0,W);if(le>=1)return+de(W[K-1],K-1,W);var K,J=(K-1)*le,fe=Math.floor(J),be=+de(W[fe],fe,W),Ne=+de(W[fe+1],fe+1,W);return be+(Ne-be)*(J-fe)}}function V(W,le,de){return W=y.call(W,c).sort(r),Math.ceil((de-le)/(2*(H(W,.75)-H(W,.25))*Math.pow(W.length,-1/3)))}function N(W,le,de){return Math.ceil((de-le)/(3.5*h(W)*Math.pow(W.length,-1/3)))}function Q(W,le){var de=W.length,K=-1,J,fe;if(le==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(fe=J;++K<de;)(J=W[K])!=null&&J>fe&&(fe=J)}else for(;++K<de;)if((J=le(W[K],K,W))!=null&&J>=J)for(fe=J;++K<de;)(J=le(W[K],K,W))!=null&&J>fe&&(fe=J);return fe}function ee(W,le){var de=W.length,K=de,J=-1,fe,be=0;if(le==null)for(;++J<de;)isNaN(fe=c(W[J]))?--K:be+=fe;else for(;++J<de;)isNaN(fe=c(le(W[J],J,W)))?--K:be+=fe;if(K)return be/K}function re(W,le){var de=W.length,K=-1,J,fe=[];if(le==null)for(;++K<de;)isNaN(J=c(W[K]))||fe.push(J);else for(;++K<de;)isNaN(J=c(le(W[K],K,W)))||fe.push(J);return H(fe.sort(r),.5)}function ae(W){for(var le=W.length,de,K=-1,J=0,fe,be;++K<le;)J+=W[K].length;for(fe=new Array(J);--le>=0;)for(be=W[le],de=be.length;--de>=0;)fe[--J]=be[de];return fe}function ie(W,le){var de=W.length,K=-1,J,fe;if(le==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(fe=J;++K<de;)(J=W[K])!=null&&fe>J&&(fe=J)}else for(;++K<de;)if((J=le(W[K],K,W))!=null&&J>=J)for(fe=J;++K<de;)(J=le(W[K],K,W))!=null&&fe>J&&(fe=J);return fe}function ue(W,le){for(var de=le.length,K=new Array(de);de--;)K[de]=W[le[de]];return K}function xe(W,le){if(de=W.length){var de,K=0,J=0,fe,be=W[J];for(le==null&&(le=r);++K<de;)(le(fe=W[K],be)<0||le(be,be)!==0)&&(be=fe,J=K);if(le(be,be)===0)return J}}function De(W,le,de){for(var K=(de==null?W.length:de)-(le=le==null?0:+le),J,fe;K;)fe=Math.random()*K--|0,J=W[K+le],W[K+le]=W[fe+le],W[fe+le]=J;return W}function Ye(W,le){var de=W.length,K=-1,J,fe=0;if(le==null)for(;++K<de;)(J=+W[K])&&(fe+=J);else for(;++K<de;)(J=+le(W[K],K,W))&&(fe+=J);return fe}function Ee(W){if(!(fe=W.length))return[];for(var le=-1,de=ie(W,ke),K=new Array(de);++le<de;)for(var J=-1,fe,be=K[le]=new Array(fe);++J<fe;)be[J]=W[J][le];return K}function ke(W){return W.length}function je(){return Ee(arguments)}e.bisect=i,e.bisectRight=i,e.bisectLeft=o,e.ascending=r,e.bisector=t,e.cross=u,e.descending=f,e.deviation=h,e.extent=p,e.histogram=X,e.thresholdFreedmanDiaconis=V,e.thresholdScott=N,e.thresholdSturges=I,e.max=Q,e.mean=ee,e.median=re,e.merge=ae,e.min=ie,e.pairs=l,e.permute=ue,e.quantile=H,e.range=_,e.scan=xe,e.shuffle=De,e.sum=Ye,e.ticks=E,e.tickIncrement=P,e.tickStep=z,e.transpose=Ee,e.variance=d,e.zip=je,Object.defineProperty(e,"__esModule",{value:!0})}))});var ay=oe((ty,FU)=>{(function(e,r){typeof ty=="object"&&typeof FU!="undefined"?r(ty,DU()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ty,(function(e,r){"use strict";function t(){return new a}function a(){this.reset()}a.prototype={constructor:a,reset:function(){this.s=this.t=0},add:function(O){i(n,O,this.t),i(this,n.s,this.s),this.s?this.t+=n.t:this.s=n.t},valueOf:function(){return this.s}};var n=new a;function i(O,$,he){var se=O.s=$+he,Me=se-$,Oe=se-Me;O.t=$-Oe+(he-Me)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,c=s*2,d=180/s,h=s/180,p=Math.abs,m=Math.atan,b=Math.atan2,y=Math.cos,C=Math.ceil,x=Math.exp,_=Math.log,A=Math.pow,T=Math.sin,M=Math.sign||function(O){return O>0?1:O<0?-1:0},E=Math.sqrt,P=Math.tan;function z(O){return O>1?0:O<-1?s:Math.acos(O)}function I(O){return O>1?u:O<-1?-u:Math.asin(O)}function X(O){return(O=T(O/2))*O}function H(){}function V(O,$){O&&Q.hasOwnProperty(O.type)&&Q[O.type](O,$)}var N={Feature:function(O,$){V(O.geometry,$)},FeatureCollection:function(O,$){for(var he=O.features,se=-1,Me=he.length;++se<Me;)V(he[se].geometry,$)}},Q={Sphere:function(O,$){$.sphere()},Point:function(O,$){O=O.coordinates,$.point(O[0],O[1],O[2])},MultiPoint:function(O,$){for(var he=O.coordinates,se=-1,Me=he.length;++se<Me;)O=he[se],$.point(O[0],O[1],O[2])},LineString:function(O,$){ee(O.coordinates,$,0)},MultiLineString:function(O,$){for(var he=O.coordinates,se=-1,Me=he.length;++se<Me;)ee(he[se],$,0)},Polygon:function(O,$){re(O.coordinates,$)},MultiPolygon:function(O,$){for(var he=O.coordinates,se=-1,Me=he.length;++se<Me;)re(he[se],$)},GeometryCollection:function(O,$){for(var he=O.geometries,se=-1,Me=he.length;++se<Me;)V(he[se],$)}};function ee(O,$,he){var se=-1,Me=O.length-he,Oe;for($.lineStart();++se<Me;)Oe=O[se],$.point(Oe[0],Oe[1],Oe[2]);$.lineEnd()}function re(O,$){var he=-1,se=O.length;for($.polygonStart();++he<se;)ee(O[he],$,1);$.polygonEnd()}function ae(O,$){O&&N.hasOwnProperty(O.type)?N[O.type](O,$):V(O,$)}var ie=t(),ue=t(),xe,De,Ye,Ee,ke,je={point:H,lineStart:H,lineEnd:H,polygonStart:function(){ie.reset(),je.lineStart=W,je.lineEnd=le},polygonEnd:function(){var O=+ie;ue.add(O<0?c+O:O),this.lineStart=this.lineEnd=this.point=H},sphere:function(){ue.add(c)}};function W(){je.point=de}function le(){K(xe,De)}function de(O,$){je.point=K,xe=O,De=$,O*=h,$*=h,Ye=O,Ee=y($=$/2+f),ke=T($)}function K(O,$){O*=h,$*=h,$=$/2+f;var he=O-Ye,se=he>=0?1:-1,Me=se*he,Oe=y($),We=T($),rr=ke*We,ir=Ee*Oe+rr*y(Me),gr=rr*se*T(Me);ie.add(b(gr,ir)),Ye=O,Ee=Oe,ke=We}function J(O){return ue.reset(),ae(O,je),ue*2}function fe(O){return[b(O[1],O[0]),I(O[2])]}function be(O){var $=O[0],he=O[1],se=y(he);return[se*y($),se*T($),T(he)]}function Ne(O,$){return O[0]*$[0]+O[1]*$[1]+O[2]*$[2]}function Ze(O,$){return[O[1]*$[2]-O[2]*$[1],O[2]*$[0]-O[0]*$[2],O[0]*$[1]-O[1]*$[0]]}function er(O,$){O[0]+=$[0],O[1]+=$[1],O[2]+=$[2]}function Je(O,$){return[O[0]*$,O[1]*$,O[2]*$]}function tr(O){var $=E(O[0]*O[0]+O[1]*O[1]+O[2]*O[2]);O[0]/=$,O[1]/=$,O[2]/=$}var ze,lr,dr,Ar,Qe,mr,qr,Te,Ue=t(),_r,Pr,Nr={point:Ce,lineStart:cr,lineEnd:Mr,polygonStart:function(){Nr.point=vr,Nr.lineStart=kr,Nr.lineEnd=Er,Ue.reset(),je.polygonStart()},polygonEnd:function(){je.polygonEnd(),Nr.point=Ce,Nr.lineStart=cr,Nr.lineEnd=Mr,ie<0?(ze=-(dr=180),lr=-(Ar=90)):Ue>o?Ar=90:Ue<-o&&(lr=-90),Pr[0]=ze,Pr[1]=dr},sphere:function(){ze=-(dr=180),lr=-(Ar=90)}};function Ce(O,$){_r.push(Pr=[ze=O,dr=O]),$<lr&&(lr=$),$>Ar&&(Ar=$)}function He(O,$){var he=be([O*h,$*h]);if(Te){var se=Ze(Te,he),Me=[se[1],-se[0],0],Oe=Ze(Me,se);tr(Oe),Oe=fe(Oe);var We=O-Qe,rr=We>0?1:-1,ir=Oe[0]*d*rr,gr,$e=p(We)>180;$e^(rr*Qe<ir&&ir<rr*O)?(gr=Oe[1]*d,gr>Ar&&(Ar=gr)):(ir=(ir+360)%360-180,$e^(rr*Qe<ir&&ir<rr*O)?(gr=-Oe[1]*d,gr<lr&&(lr=gr)):($<lr&&(lr=$),$>Ar&&(Ar=$))),$e?O<Qe?jr(ze,O)>jr(ze,dr)&&(dr=O):jr(O,dr)>jr(ze,dr)&&(ze=O):dr>=ze?(O<ze&&(ze=O),O>dr&&(dr=O)):O>Qe?jr(ze,O)>jr(ze,dr)&&(dr=O):jr(O,dr)>jr(ze,dr)&&(ze=O)}else _r.push(Pr=[ze=O,dr=O]);$<lr&&(lr=$),$>Ar&&(Ar=$),Te=he,Qe=O}function cr(){Nr.point=He}function Mr(){Pr[0]=ze,Pr[1]=dr,Nr.point=Ce,Te=null}function vr(O,$){if(Te){var he=O-Qe;Ue.add(p(he)>180?he+(he>0?360:-360):he)}else mr=O,qr=$;je.point(O,$),He(O,$)}function kr(){je.lineStart()}function Er(){vr(mr,qr),je.lineEnd(),p(Ue)>o&&(ze=-(dr=180)),Pr[0]=ze,Pr[1]=dr,Te=null}function jr(O,$){return($-=O)<0?$+360:$}function et(O,$){return O[0]-$[0]}function nr(O,$){return O[0]<=O[1]?O[0]<=$&&$<=O[1]:$<O[0]||O[1]<$}function Cr(O){var $,he,se,Me,Oe,We,rr;if(Ar=dr=-(ze=lr=1/0),_r=[],ae(O,Nr),he=_r.length){for(_r.sort(et),$=1,se=_r[0],Oe=[se];$<he;++$)Me=_r[$],nr(se,Me[0])||nr(se,Me[1])?(jr(se[0],Me[1])>jr(se[0],se[1])&&(se[1]=Me[1]),jr(Me[0],se[1])>jr(se[0],se[1])&&(se[0]=Me[0])):Oe.push(se=Me);for(We=-1/0,he=Oe.length-1,$=0,se=Oe[he];$<=he;se=Me,++$)Me=Oe[$],(rr=jr(se[1],Me[0]))>We&&(We=rr,ze=Me[0],dr=se[1])}return _r=Pr=null,ze===1/0||lr===1/0?[[NaN,NaN],[NaN,NaN]]:[[ze,lr],[dr,Ar]]}var ar,Fr,Wr,Br,Zr,Ae,Be,or,hr,Dt,Wt,ba,_a,Xt,Ht,la,Pt={sphere:H,point:Ta,lineStart:Xa,lineEnd:Fa,polygonStart:function(){Pt.lineStart=Rr,Pt.lineEnd=Vt},polygonEnd:function(){Pt.lineStart=Xa,Pt.lineEnd=Fa}};function Ta(O,$){O*=h,$*=h;var he=y($);pa(he*y(O),he*T(O),T($))}function pa(O,$,he){++ar,Wr+=(O-Wr)/ar,Br+=($-Br)/ar,Zr+=(he-Zr)/ar}function Xa(){Pt.point=dn}function dn(O,$){O*=h,$*=h;var he=y($);Xt=he*y(O),Ht=he*T(O),la=T($),Pt.point=ja,pa(Xt,Ht,la)}function ja(O,$){O*=h,$*=h;var he=y($),se=he*y(O),Me=he*T(O),Oe=T($),We=b(E((We=Ht*Oe-la*Me)*We+(We=la*se-Xt*Oe)*We+(We=Xt*Me-Ht*se)*We),Xt*se+Ht*Me+la*Oe);Fr+=We,Ae+=We*(Xt+(Xt=se)),Be+=We*(Ht+(Ht=Me)),or+=We*(la+(la=Oe)),pa(Xt,Ht,la)}function Fa(){Pt.point=Ta}function Rr(){Pt.point=Et}function Vt(){Zt(ba,_a),Pt.point=Ta}function Et(O,$){ba=O,_a=$,O*=h,$*=h,Pt.point=Zt;var he=y($);Xt=he*y(O),Ht=he*T(O),la=T($),pa(Xt,Ht,la)}function Zt(O,$){O*=h,$*=h;var he=y($),se=he*y(O),Me=he*T(O),Oe=T($),We=Ht*Oe-la*Me,rr=la*se-Xt*Oe,ir=Xt*Me-Ht*se,gr=E(We*We+rr*rr+ir*ir),$e=I(gr),fr=gr&&-$e/gr;hr+=fr*We,Dt+=fr*rr,Wt+=fr*ir,Fr+=$e,Ae+=$e*(Xt+(Xt=se)),Be+=$e*(Ht+(Ht=Me)),or+=$e*(la+(la=Oe)),pa(Xt,Ht,la)}function ma(O){ar=Fr=Wr=Br=Zr=Ae=Be=or=hr=Dt=Wt=0,ae(O,Pt);var $=hr,he=Dt,se=Wt,Me=$*$+he*he+se*se;return Me<l&&($=Ae,he=Be,se=or,Fr<o&&($=Wr,he=Br,se=Zr),Me=$*$+he*he+se*se,Me<l)?[NaN,NaN]:[b(he,$)*d,I(se/E(Me))*d]}function Ea(O){return function(){return O}}function Rt(O,$){function he(se,Me){return se=O(se,Me),$(se[0],se[1])}return O.invert&&$.invert&&(he.invert=function(se,Me){return se=$.invert(se,Me),se&&O.invert(se[0],se[1])}),he}function $t(O,$){return[p(O)>s?O+Math.round(-O/c)*c:O,$]}$t.invert=$t;function Na(O,$,he){return(O%=c)?$||he?Rt(Pi(O),Kn($,he)):Pi(O):$||he?Kn($,he):$t}function Jn(O){return function($,he){return $+=O,[$>s?$-c:$<-s?$+c:$,he]}}function Pi(O){var $=Jn(O);return $.invert=Jn(-O),$}function Kn(O,$){var he=y(O),se=T(O),Me=y($),Oe=T($);function We(rr,ir){var gr=y(ir),$e=y(rr)*gr,fr=T(rr)*gr,sr=T(ir),wr=sr*he+$e*se;return[b(fr*Me-wr*Oe,$e*he-sr*se),I(wr*Me+fr*Oe)]}return We.invert=function(rr,ir){var gr=y(ir),$e=y(rr)*gr,fr=T(rr)*gr,sr=T(ir),wr=sr*Me-fr*Oe;return[b(fr*Me+sr*Oe,$e*he+wr*se),I(wr*he-$e*se)]},We}function Ba(O){O=Na(O[0]*h,O[1]*h,O.length>2?O[2]*h:0);function $(he){return he=O(he[0]*h,he[1]*h),he[0]*=d,he[1]*=d,he}return $.invert=function(he){return he=O.invert(he[0]*h,he[1]*h),he[0]*=d,he[1]*=d,he},$}function ml(O,$,he,se,Me,Oe){if(he){var We=y($),rr=T($),ir=se*he;Me==null?(Me=$+se*c,Oe=$-ir/2):(Me=Qa(We,Me),Oe=Qa(We,Oe),(se>0?Me<Oe:Me>Oe)&&(Me+=se*c));for(var gr,$e=Me;se>0?$e>Oe:$e<Oe;$e-=ir)gr=fe([We,-rr*y($e),-rr*T($e)]),O.point(gr[0],gr[1])}}function Qa(O,$){$=be($),$[0]-=O,tr($);var he=z(-$[1]);return((-$[2]<0?-he:he)+c-o)%c}function zo(){var O=Ea([0,0]),$=Ea(90),he=Ea(6),se,Me,Oe={point:We};function We(ir,gr){se.push(ir=Me(ir,gr)),ir[0]*=d,ir[1]*=d}function rr(){var ir=O.apply(this,arguments),gr=$.apply(this,arguments)*h,$e=he.apply(this,arguments)*h;return se=[],Me=Na(-ir[0]*h,-ir[1]*h,0).invert,ml(Oe,gr,$e,1),ir={type:"Polygon",coordinates:[se]},se=Me=null,ir}return rr.center=function(ir){return arguments.length?(O=typeof ir=="function"?ir:Ea([+ir[0],+ir[1]]),rr):O},rr.radius=function(ir){return arguments.length?($=typeof ir=="function"?ir:Ea(+ir),rr):$},rr.precision=function(ir){return arguments.length?(he=typeof ir=="function"?ir:Ea(+ir),rr):he},rr}function co(){var O=[],$;return{point:function(he,se,Me){$.push([he,se,Me])},lineStart:function(){O.push($=[])},lineEnd:H,rejoin:function(){O.length>1&&O.push(O.pop().concat(O.shift()))},result:function(){var he=O;return O=[],$=null,he}}}function Ia(O,$){return p(O[0]-$[0])<o&&p(O[1]-$[1])<o}function Yi(O,$,he,se){this.x=O,this.z=$,this.o=he,this.e=se,this.v=!1,this.n=this.p=null}function gl(O,$,he,se,Me){var Oe=[],We=[],rr,ir;if(O.forEach(function(Dr){if(!((lt=Dr.length-1)<=0)){var lt,rt=Dr[0],ut=Dr[lt],ft;if(Ia(rt,ut)){if(!rt[2]&&!ut[2]){for(Me.lineStart(),rr=0;rr<lt;++rr)Me.point((rt=Dr[rr])[0],rt[1]);Me.lineEnd();return}ut[0]+=2*o}Oe.push(ft=new Yi(rt,Dr,null,!0)),We.push(ft.o=new Yi(rt,null,ft,!1)),Oe.push(ft=new Yi(ut,Dr,null,!1)),We.push(ft.o=new Yi(ut,null,ft,!0))}}),!!Oe.length){for(We.sort($),Vi(Oe),Vi(We),rr=0,ir=We.length;rr<ir;++rr)We[rr].e=he=!he;for(var gr=Oe[0],$e,fr;;){for(var sr=gr,wr=!0;sr.v;)if((sr=sr.n)===gr)return;$e=sr.z,Me.lineStart();do{if(sr.v=sr.o.v=!0,sr.e){if(wr)for(rr=0,ir=$e.length;rr<ir;++rr)Me.point((fr=$e[rr])[0],fr[1]);else se(sr.x,sr.n.x,1,Me);sr=sr.n}else{if(wr)for($e=sr.p.z,rr=$e.length-1;rr>=0;--rr)Me.point((fr=$e[rr])[0],fr[1]);else se(sr.x,sr.p.x,-1,Me);sr=sr.p}sr=sr.o,$e=sr.z,wr=!wr}while(!sr.v);Me.lineEnd()}}}function Vi(O){if($=O.length){for(var $,he=0,se=O[0],Me;++he<$;)se.n=Me=O[he],Me.p=se,se=Me;se.n=Me=O[0],Me.p=se}}var Ri=t();function ls(O){return p(O[0])<=s?O[0]:M(O[0])*((p(O[0])+s)%c-s)}function ss(O,$){var he=ls($),se=$[1],Me=T(se),Oe=[T(he),-y(he),0],We=0,rr=0;Ri.reset(),Me===1?se=u+o:Me===-1&&(se=-u-o);for(var ir=0,gr=O.length;ir<gr;++ir)if(fr=($e=O[ir]).length)for(var $e,fr,sr=$e[fr-1],wr=ls(sr),Dr=sr[1]/2+f,lt=T(Dr),rt=y(Dr),ut=0;ut<fr;++ut,wr=Lr,lt=vt,rt=xt,sr=ft){var ft=$e[ut],Lr=ls(ft),Ur=ft[1]/2+f,vt=T(Ur),xt=y(Ur),Jt=Lr-wr,ua=Jt>=0?1:-1,ea=ua*Jt,xa=ea>s,zt=lt*vt;if(Ri.add(b(zt*ua*T(ea),rt*xt+zt*y(ea))),We+=xa?Jt+ua*c:Jt,xa^wr>=he^Lr>=he){var Cn=Ze(be(sr),be(ft));tr(Cn);var rn=Ze(Oe,Cn);tr(rn);var wa=(xa^Jt>=0?-1:1)*I(rn[2]);(se>wa||se===wa&&(Cn[0]||Cn[1]))&&(rr+=xa^Jt>=0?1:-1)}}return(We<-o||We<o&&Ri<-o)^rr&1}function Ks(O,$,he,se){return function(Me){var Oe=$(Me),We=co(),rr=$(We),ir=!1,gr,$e,fr,sr={point:wr,lineStart:lt,lineEnd:rt,polygonStart:function(){sr.point=ut,sr.lineStart=ft,sr.lineEnd=Lr,$e=[],gr=[]},polygonEnd:function(){sr.point=wr,sr.lineStart=lt,sr.lineEnd=rt,$e=r.merge($e);var Ur=ss(gr,se);$e.length?(ir||(Me.polygonStart(),ir=!0),gl($e,Qs,Ur,he,Me)):Ur&&(ir||(Me.polygonStart(),ir=!0),Me.lineStart(),he(null,null,1,Me),Me.lineEnd()),ir&&(Me.polygonEnd(),ir=!1),$e=gr=null},sphere:function(){Me.polygonStart(),Me.lineStart(),he(null,null,1,Me),Me.lineEnd(),Me.polygonEnd()}};function wr(Ur,vt){O(Ur,vt)&&Me.point(Ur,vt)}function Dr(Ur,vt){Oe.point(Ur,vt)}function lt(){sr.point=Dr,Oe.lineStart()}function rt(){sr.point=wr,Oe.lineEnd()}function ut(Ur,vt){fr.push([Ur,vt]),rr.point(Ur,vt)}function ft(){rr.lineStart(),fr=[]}function Lr(){ut(fr[0][0],fr[0][1]),rr.lineEnd();var Ur=rr.clean(),vt=We.result(),xt,Jt=vt.length,ua,ea,xa;if(fr.pop(),gr.push(fr),fr=null,!!Jt){if(Ur&1){if(ea=vt[0],(ua=ea.length-1)>0){for(ir||(Me.polygonStart(),ir=!0),Me.lineStart(),xt=0;xt<ua;++xt)Me.point((xa=ea[xt])[0],xa[1]);Me.lineEnd()}return}Jt>1&&Ur&2&&vt.push(vt.pop().concat(vt.shift())),$e.push(vt.filter(us))}}return sr}}function us(O){return O.length>1}function Qs(O,$){return((O=O.x)[0]<0?O[1]-u-o:u-O[1])-(($=$.x)[0]<0?$[1]-u-o:u-$[1])}var ot=Ks(function(){return!0},st,Or,[-s,-u]);function st(O){var $=NaN,he=NaN,se=NaN,Me;return{lineStart:function(){O.lineStart(),Me=1},point:function(Oe,We){var rr=Oe>0?s:-s,ir=p(Oe-$);p(ir-s)<o?(O.point($,he=(he+We)/2>0?u:-u),O.point(se,he),O.lineEnd(),O.lineStart(),O.point(rr,he),O.point(Oe,he),Me=0):se!==rr&&ir>=s&&(p($-se)<o&&($-=se*o),p(Oe-rr)<o&&(Oe-=rr*o),he=jt($,he,Oe,We),O.point(se,he),O.lineEnd(),O.lineStart(),O.point(rr,he),Me=0),O.point($=Oe,he=We),se=rr},lineEnd:function(){O.lineEnd(),$=he=NaN},clean:function(){return 2-Me}}}function jt(O,$,he,se){var Me,Oe,We=T(O-he);return p(We)>o?m((T($)*(Oe=y(se))*T(he)-T(se)*(Me=y($))*T(O))/(Me*Oe*We)):($+se)/2}function Or(O,$,he,se){var Me;if(O==null)Me=he*u,se.point(-s,Me),se.point(0,Me),se.point(s,Me),se.point(s,0),se.point(s,-Me),se.point(0,-Me),se.point(-s,-Me),se.point(-s,0),se.point(-s,Me);else if(p(O[0]-$[0])>o){var Oe=O[0]<$[0]?s:-s;Me=he*Oe/2,se.point(-Oe,Me),se.point(0,Me),se.point(Oe,Me)}else se.point($[0],$[1])}function Mn(O){var $=y(O),he=6*h,se=$>0,Me=p($)>o;function Oe($e,fr,sr,wr){ml(wr,O,he,sr,$e,fr)}function We($e,fr){return y($e)*y(fr)>$}function rr($e){var fr,sr,wr,Dr,lt;return{lineStart:function(){Dr=wr=!1,lt=1},point:function(rt,ut){var ft=[rt,ut],Lr,Ur=We(rt,ut),vt=se?Ur?0:gr(rt,ut):Ur?gr(rt+(rt<0?s:-s),ut):0;if(!fr&&(Dr=wr=Ur)&&$e.lineStart(),Ur!==wr&&(Lr=ir(fr,ft),(!Lr||Ia(fr,Lr)||Ia(ft,Lr))&&(ft[2]=1)),Ur!==wr)lt=0,Ur?($e.lineStart(),Lr=ir(ft,fr),$e.point(Lr[0],Lr[1])):(Lr=ir(fr,ft),$e.point(Lr[0],Lr[1],2),$e.lineEnd()),fr=Lr;else if(Me&&fr&&se^Ur){var xt;!(vt&sr)&&(xt=ir(ft,fr,!0))&&(lt=0,se?($e.lineStart(),$e.point(xt[0][0],xt[0][1]),$e.point(xt[1][0],xt[1][1]),$e.lineEnd()):($e.point(xt[1][0],xt[1][1]),$e.lineEnd(),$e.lineStart(),$e.point(xt[0][0],xt[0][1],3)))}Ur&&(!fr||!Ia(fr,ft))&&$e.point(ft[0],ft[1]),fr=ft,wr=Ur,sr=vt},lineEnd:function(){wr&&$e.lineEnd(),fr=null},clean:function(){return lt|(Dr&&wr)<<1}}}function ir($e,fr,sr){var wr=be($e),Dr=be(fr),lt=[1,0,0],rt=Ze(wr,Dr),ut=Ne(rt,rt),ft=rt[0],Lr=ut-ft*ft;if(!Lr)return!sr&&$e;var Ur=$*ut/Lr,vt=-$*ft/Lr,xt=Ze(lt,rt),Jt=Je(lt,Ur),ua=Je(rt,vt);er(Jt,ua);var ea=xt,xa=Ne(Jt,ea),zt=Ne(ea,ea),Cn=xa*xa-zt*(Ne(Jt,Jt)-1);if(!(Cn<0)){var rn=E(Cn),wa=Je(ea,(-xa-rn)/zt);if(er(wa,Jt),wa=fe(wa),!sr)return wa;var Vr=$e[0],Kt=fr[0],un=$e[1],Rn=fr[1],yi;Kt<Vr&&(yi=Vr,Vr=Kt,Kt=yi);var bo=Kt-Vr,Ji=p(bo-s)<o,Fl=Ji||bo<o;if(!Ji&&Rn<un&&(yi=un,un=Rn,Rn=yi),Fl?Ji?un+Rn>0^wa[1]<(p(wa[0]-Vr)<o?un:Rn):un<=wa[1]&&wa[1]<=Rn:bo>s^(Vr<=wa[0]&&wa[0]<=Kt)){var Bi=Je(ea,(-xa+rn)/zt);return er(Bi,Jt),[wa,fe(Bi)]}}}function gr($e,fr){var sr=se?O:s-O,wr=0;return $e<-sr?wr|=1:$e>sr&&(wr|=2),fr<-sr?wr|=4:fr>sr&&(wr|=8),wr}return Ks(We,rr,Oe,se?[0,-O]:[-s,O-s])}function sa(O,$,he,se,Me,Oe){var We=O[0],rr=O[1],ir=$[0],gr=$[1],$e=0,fr=1,sr=ir-We,wr=gr-rr,Dr;if(Dr=he-We,!(!sr&&Dr>0)){if(Dr/=sr,sr<0){if(Dr<$e)return;Dr<fr&&(fr=Dr)}else if(sr>0){if(Dr>fr)return;Dr>$e&&($e=Dr)}if(Dr=Me-We,!(!sr&&Dr<0)){if(Dr/=sr,sr<0){if(Dr>fr)return;Dr>$e&&($e=Dr)}else if(sr>0){if(Dr<$e)return;Dr<fr&&(fr=Dr)}if(Dr=se-rr,!(!wr&&Dr>0)){if(Dr/=wr,wr<0){if(Dr<$e)return;Dr<fr&&(fr=Dr)}else if(wr>0){if(Dr>fr)return;Dr>$e&&($e=Dr)}if(Dr=Oe-rr,!(!wr&&Dr<0)){if(Dr/=wr,wr<0){if(Dr>fr)return;Dr>$e&&($e=Dr)}else if(wr>0){if(Dr<$e)return;Dr<fr&&(fr=Dr)}return $e>0&&(O[0]=We+$e*sr,O[1]=rr+$e*wr),fr<1&&($[0]=We+fr*sr,$[1]=rr+fr*wr),!0}}}}}var Wa=1e9,en=-Wa;function Vn(O,$,he,se){function Me(gr,$e){return O<=gr&&gr<=he&&$<=$e&&$e<=se}function Oe(gr,$e,fr,sr){var wr=0,Dr=0;if(gr==null||(wr=We(gr,fr))!==(Dr=We($e,fr))||ir(gr,$e)<0^fr>0)do sr.point(wr===0||wr===3?O:he,wr>1?se:$);while((wr=(wr+fr+4)%4)!==Dr);else sr.point($e[0],$e[1])}function We(gr,$e){return p(gr[0]-O)<o?$e>0?0:3:p(gr[0]-he)<o?$e>0?2:1:p(gr[1]-$)<o?$e>0?1:0:$e>0?3:2}function rr(gr,$e){return ir(gr.x,$e.x)}function ir(gr,$e){var fr=We(gr,1),sr=We($e,1);return fr!==sr?fr-sr:fr===0?$e[1]-gr[1]:fr===1?gr[0]-$e[0]:fr===2?gr[1]-$e[1]:$e[0]-gr[0]}return function(gr){var $e=gr,fr=co(),sr,wr,Dr,lt,rt,ut,ft,Lr,Ur,vt,xt,Jt={point:ua,lineStart:Cn,lineEnd:rn,polygonStart:xa,polygonEnd:zt};function ua(Vr,Kt){Me(Vr,Kt)&&$e.point(Vr,Kt)}function ea(){for(var Vr=0,Kt=0,un=wr.length;Kt<un;++Kt)for(var Rn=wr[Kt],yi=1,bo=Rn.length,Ji=Rn[0],Fl,Bi,El=Ji[0],Ms=Ji[1];yi<bo;++yi)Fl=El,Bi=Ms,Ji=Rn[yi],El=Ji[0],Ms=Ji[1],Bi<=se?Ms>se&&(El-Fl)*(se-Bi)>(Ms-Bi)*(O-Fl)&&++Vr:Ms<=se&&(El-Fl)*(se-Bi)<(Ms-Bi)*(O-Fl)&&--Vr;return Vr}function xa(){$e=fr,sr=[],wr=[],xt=!0}function zt(){var Vr=ea(),Kt=xt&&Vr,un=(sr=r.merge(sr)).length;(Kt||un)&&(gr.polygonStart(),Kt&&(gr.lineStart(),Oe(null,null,1,gr),gr.lineEnd()),un&&gl(sr,rr,Vr,Oe,gr),gr.polygonEnd()),$e=gr,sr=wr=Dr=null}function Cn(){Jt.point=wa,wr&&wr.push(Dr=[]),vt=!0,Ur=!1,ft=Lr=NaN}function rn(){sr&&(wa(lt,rt),ut&&Ur&&fr.rejoin(),sr.push(fr.result())),Jt.point=ua,Ur&&$e.lineEnd()}function wa(Vr,Kt){var un=Me(Vr,Kt);if(wr&&Dr.push([Vr,Kt]),vt)lt=Vr,rt=Kt,ut=un,vt=!1,un&&($e.lineStart(),$e.point(Vr,Kt));else if(un&&Ur)$e.point(Vr,Kt);else{var Rn=[ft=Math.max(en,Math.min(Wa,ft)),Lr=Math.max(en,Math.min(Wa,Lr))],yi=[Vr=Math.max(en,Math.min(Wa,Vr)),Kt=Math.max(en,Math.min(Wa,Kt))];sa(Rn,yi,O,$,he,se)?(Ur||($e.lineStart(),$e.point(Rn[0],Rn[1])),$e.point(yi[0],yi[1]),un||$e.lineEnd(),xt=!1):un&&($e.lineStart(),$e.point(Vr,Kt),xt=!1)}ft=Vr,Lr=Kt,Ur=un}return Jt}}function yl(){var O=0,$=0,he=960,se=500,Me,Oe,We;return We={stream:function(rr){return Me&&Oe===rr?Me:Me=Vn(O,$,he,se)(Oe=rr)},extent:function(rr){return arguments.length?(O=+rr[0][0],$=+rr[0][1],he=+rr[1][0],se=+rr[1][1],Me=Oe=null,We):[[O,$],[he,se]]}}}var fs=t(),cs,Xi,No,bl={sphere:H,point:H,lineStart:vs,lineEnd:H,polygonStart:H,polygonEnd:H};function vs(){bl.point=sf,bl.lineEnd=eu}function eu(){bl.point=bl.lineEnd=H}function sf(O,$){O*=h,$*=h,cs=O,Xi=T($),No=y($),bl.point=Gc}function Gc(O,$){O*=h,$*=h;var he=T($),se=y($),Me=p(O-cs),Oe=y(Me),We=T(Me),rr=se*We,ir=No*he-Xi*se*Oe,gr=Xi*he+No*se*Oe;fs.add(b(E(rr*rr+ir*ir),gr)),cs=O,Xi=he,No=se}function ru(O){return fs.reset(),ae(O,bl),+fs}var tu=[null,null],au={type:"LineString",coordinates:tu};function _l(O,$){return tu[0]=O,tu[1]=$,ru(au)}var Bo={Feature:function(O,$){return vo(O.geometry,$)},FeatureCollection:function(O,$){for(var he=O.features,se=-1,Me=he.length;++se<Me;)if(vo(he[se].geometry,$))return!0;return!1}},Io={Sphere:function(){return!0},Point:function(O,$){return uf(O.coordinates,$)},MultiPoint:function(O,$){for(var he=O.coordinates,se=-1,Me=he.length;++se<Me;)if(uf(he[se],$))return!0;return!1},LineString:function(O,$){return Zu(O.coordinates,$)},MultiLineString:function(O,$){for(var he=O.coordinates,se=-1,Me=he.length;++se<Me;)if(Zu(he[se],$))return!0;return!1},Polygon:function(O,$){return ds(O.coordinates,$)},MultiPolygon:function(O,$){for(var he=O.coordinates,se=-1,Me=he.length;++se<Me;)if(ds(he[se],$))return!0;return!1},GeometryCollection:function(O,$){for(var he=O.geometries,se=-1,Me=he.length;++se<Me;)if(vo(he[se],$))return!0;return!1}};function vo(O,$){return O&&Io.hasOwnProperty(O.type)?Io[O.type](O,$):!1}function uf(O,$){return _l(O,$)===0}function Zu(O,$){for(var he,se,Me,Oe=0,We=O.length;Oe<We;Oe++){if(se=_l(O[Oe],$),se===0||Oe>0&&(Me=_l(O[Oe],O[Oe-1]),Me>0&&he<=Me&&se<=Me&&(he+se-Me)*(1-Math.pow((he-se)/Me,2))<l*Me))return!0;he=se}return!1}function ds(O,$){return!!ss(O.map(ff),Yc($))}function ff(O){return O=O.map(Yc),O.pop(),O}function Yc(O){return[O[0]*h,O[1]*h]}function nu(O,$){return(O&&Bo.hasOwnProperty(O.type)?Bo[O.type]:vo)(O,$)}function ho(O,$,he){var se=r.range(O,$-o,he).concat($);return function(Me){return se.map(function(Oe){return[Me,Oe]})}}function iu(O,$,he){var se=r.range(O,$-o,he).concat($);return function(Me){return se.map(function(Oe){return[Oe,Me]})}}function Vc(){var O,$,he,se,Me,Oe,We,rr,ir=10,gr=ir,$e=90,fr=360,sr,wr,Dr,lt,rt=2.5;function ut(){return{type:"MultiLineString",coordinates:ft()}}function ft(){return r.range(C(se/$e)*$e,he,$e).map(Dr).concat(r.range(C(rr/fr)*fr,We,fr).map(lt)).concat(r.range(C($/ir)*ir,O,ir).filter(function(Lr){return p(Lr%$e)>o}).map(sr)).concat(r.range(C(Oe/gr)*gr,Me,gr).filter(function(Lr){return p(Lr%fr)>o}).map(wr))}return ut.lines=function(){return ft().map(function(Lr){return{type:"LineString",coordinates:Lr}})},ut.outline=function(){return{type:"Polygon",coordinates:[Dr(se).concat(lt(We).slice(1),Dr(he).reverse().slice(1),lt(rr).reverse().slice(1))]}},ut.extent=function(Lr){return arguments.length?ut.extentMajor(Lr).extentMinor(Lr):ut.extentMinor()},ut.extentMajor=function(Lr){return arguments.length?(se=+Lr[0][0],he=+Lr[1][0],rr=+Lr[0][1],We=+Lr[1][1],se>he&&(Lr=se,se=he,he=Lr),rr>We&&(Lr=rr,rr=We,We=Lr),ut.precision(rt)):[[se,rr],[he,We]]},ut.extentMinor=function(Lr){return arguments.length?($=+Lr[0][0],O=+Lr[1][0],Oe=+Lr[0][1],Me=+Lr[1][1],$>O&&(Lr=$,$=O,O=Lr),Oe>Me&&(Lr=Oe,Oe=Me,Me=Lr),ut.precision(rt)):[[$,Oe],[O,Me]]},ut.step=function(Lr){return arguments.length?ut.stepMajor(Lr).stepMinor(Lr):ut.stepMinor()},ut.stepMajor=function(Lr){return arguments.length?($e=+Lr[0],fr=+Lr[1],ut):[$e,fr]},ut.stepMinor=function(Lr){return arguments.length?(ir=+Lr[0],gr=+Lr[1],ut):[ir,gr]},ut.precision=function(Lr){return arguments.length?(rt=+Lr,sr=ho(Oe,Me,90),wr=iu($,O,rt),Dr=ho(rr,We,90),lt=iu(se,he,rt),ut):rt},ut.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function ou(){return Vc()()}function N2(O,$){var he=O[0]*h,se=O[1]*h,Me=$[0]*h,Oe=$[1]*h,We=y(se),rr=T(se),ir=y(Oe),gr=T(Oe),$e=We*y(he),fr=We*T(he),sr=ir*y(Me),wr=ir*T(Me),Dr=2*I(E(X(Oe-se)+We*ir*X(Me-he))),lt=T(Dr),rt=Dr?function(ut){var ft=T(ut*=Dr)/lt,Lr=T(Dr-ut)/lt,Ur=Lr*$e+ft*sr,vt=Lr*fr+ft*wr,xt=Lr*rr+ft*gr;return[b(vt,Ur)*d,b(xt,E(Ur*Ur+vt*vt))*d]}:function(){return[he*d,se*d]};return rt.distance=Dr,rt}function xl(O){return O}var cf=t(),hs=t(),Xc,Ho,Oo,vf,ji={point:H,lineStart:H,lineEnd:H,polygonStart:function(){ji.lineStart=B2,ji.lineEnd=I2},polygonEnd:function(){ji.lineStart=ji.lineEnd=ji.point=H,cf.add(p(hs)),hs.reset()},result:function(){var O=cf/2;return cf.reset(),O}};function B2(){ji.point=po}function po(O,$){ji.point=ps,Xc=Oo=O,Ho=vf=$}function ps(O,$){hs.add(vf*O-Oo*$),Oo=O,vf=$}function I2(){ps(Xc,Ho)}var mo=1/0,wl=mo,Al=-mo,Ml=Al,Uo={point:lu,lineStart:H,lineEnd:H,polygonStart:H,polygonEnd:H,result:function(){var O=[[mo,wl],[Al,Ml]];return Al=Ml=-(wl=mo=1/0),O}};function lu(O,$){O<mo&&(mo=O),O>Al&&(Al=O),$<wl&&(wl=$),$>Ml&&(Ml=$)}var $u=0,su=0,uu=0,Tl=0,ms=0,gs=0,Ju=0,Ku=0,zi=0,Qu,e0,oi,Tn,Xn={point:go,lineStart:fu,lineEnd:df,polygonStart:function(){Xn.lineStart=jc,Xn.lineEnd=H2},polygonEnd:function(){Xn.point=go,Xn.lineStart=fu,Xn.lineEnd=df},result:function(){var O=zi?[Ju/zi,Ku/zi]:gs?[Tl/gs,ms/gs]:uu?[$u/uu,su/uu]:[NaN,NaN];return $u=su=uu=Tl=ms=gs=Ju=Ku=zi=0,O}};function go(O,$){$u+=O,su+=$,++uu}function fu(){Xn.point=kl}function kl(O,$){Xn.point=ys,go(oi=O,Tn=$)}function ys(O,$){var he=O-oi,se=$-Tn,Me=E(he*he+se*se);Tl+=Me*(oi+O)/2,ms+=Me*(Tn+$)/2,gs+=Me,go(oi=O,Tn=$)}function df(){Xn.point=go}function jc(){Xn.point=O2}function H2(){hf(Qu,e0)}function O2(O,$){Xn.point=hf,go(Qu=oi=O,e0=Tn=$)}function hf(O,$){var he=O-oi,se=$-Tn,Me=E(he*he+se*se);Tl+=Me*(oi+O)/2,ms+=Me*(Tn+$)/2,gs+=Me,Me=Tn*O-oi*$,Ju+=Me*(oi+O),Ku+=Me*(Tn+$),zi+=Me*3,go(oi=O,Tn=$)}function pf(O){this._context=O}pf.prototype={_radius:4.5,pointRadius:function(O){return this._radius=O,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(O,$){switch(this._point){case 0:{this._context.moveTo(O,$),this._point=1;break}case 1:{this._context.lineTo(O,$);break}default:{this._context.moveTo(O+this._radius,$),this._context.arc(O,$,this._radius,0,c);break}}},result:H};var mf=t(),gf,Wc,Zc,cu,vu,Wi={point:H,lineStart:function(){Wi.point=r0},lineEnd:function(){gf&&du(Wc,Zc),Wi.point=H},polygonStart:function(){gf=!0},polygonEnd:function(){gf=null},result:function(){var O=+mf;return mf.reset(),O}};function r0(O,$){Wi.point=du,Wc=cu=O,Zc=vu=$}function du(O,$){cu-=O,vu-=$,mf.add(E(cu*cu+vu*vu)),cu=O,vu=$}function t0(){this._string=[]}t0.prototype={_radius:4.5,_circle:$c(4.5),pointRadius:function(O){return(O=+O)!==this._radius&&(this._radius=O,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(O,$){switch(this._point){case 0:{this._string.push("M",O,",",$),this._point=1;break}case 1:{this._string.push("L",O,",",$);break}default:{this._circle==null&&(this._circle=$c(this._radius)),this._string.push("M",O,",",$,this._circle);break}}},result:function(){if(this._string.length){var O=this._string.join("");return this._string=[],O}else return null}};function $c(O){return"m0,"+O+"a"+O+","+O+" 0 1,1 0,"+-2*O+"a"+O+","+O+" 0 1,1 0,"+2*O+"z"}function yf(O,$){var he=4.5,se,Me;function Oe(We){return We&&(typeof he=="function"&&Me.pointRadius(+he.apply(this,arguments)),ae(We,se(Me))),Me.result()}return Oe.area=function(We){return ae(We,se(ji)),ji.result()},Oe.measure=function(We){return ae(We,se(Wi)),Wi.result()},Oe.bounds=function(We){return ae(We,se(Uo)),Uo.result()},Oe.centroid=function(We){return ae(We,se(Xn)),Xn.result()},Oe.projection=function(We){return arguments.length?(se=We==null?(O=null,xl):(O=We).stream,Oe):O},Oe.context=function(We){return arguments.length?(Me=We==null?($=null,new t0):new pf($=We),typeof he!="function"&&Me.pointRadius(he),Oe):$},Oe.pointRadius=function(We){return arguments.length?(he=typeof We=="function"?We:(Me.pointRadius(+We),+We),Oe):he},Oe.projection(O).context($)}function U2(O){return{stream:Go(O)}}function Go(O){return function($){var he=new a0;for(var se in O)he[se]=O[se];return he.stream=$,he}}function a0(){}a0.prototype={constructor:a0,point:function(O,$){this.stream.point(O,$)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function bs(O,$,he){var se=O.clipExtent&&O.clipExtent();return O.scale(150).translate([0,0]),se!=null&&O.clipExtent(null),ae(he,O.stream(Uo)),$(Uo.result()),se!=null&&O.clipExtent(se),O}function hu(O,$,he){return bs(O,function(se){var Me=$[1][0]-$[0][0],Oe=$[1][1]-$[0][1],We=Math.min(Me/(se[1][0]-se[0][0]),Oe/(se[1][1]-se[0][1])),rr=+$[0][0]+(Me-We*(se[1][0]+se[0][0]))/2,ir=+$[0][1]+(Oe-We*(se[1][1]+se[0][1]))/2;O.scale(150*We).translate([rr,ir])},he)}function pu(O,$,he){return hu(O,[[0,0],$],he)}function bf(O,$,he){return bs(O,function(se){var Me=+$,Oe=Me/(se[1][0]-se[0][0]),We=(Me-Oe*(se[1][0]+se[0][0]))/2,rr=-Oe*se[0][1];O.scale(150*Oe).translate([We,rr])},he)}function Yo(O,$,he){return bs(O,function(se){var Me=+$,Oe=Me/(se[1][1]-se[0][1]),We=-Oe*se[0][0],rr=(Me-Oe*(se[1][1]+se[0][1]))/2;O.scale(150*Oe).translate([We,rr])},he)}var Jc=16,_f=y(30*h);function Kc(O,$){return+$?n0(O,$):xf(O)}function xf(O){return Go({point:function($,he){$=O($,he),this.stream.point($[0],$[1])}})}function n0(O,$){function he(se,Me,Oe,We,rr,ir,gr,$e,fr,sr,wr,Dr,lt,rt){var ut=gr-se,ft=$e-Me,Lr=ut*ut+ft*ft;if(Lr>4*$&&lt--){var Ur=We+sr,vt=rr+wr,xt=ir+Dr,Jt=E(Ur*Ur+vt*vt+xt*xt),ua=I(xt/=Jt),ea=p(p(xt)-1)<o||p(Oe-fr)<o?(Oe+fr)/2:b(vt,Ur),xa=O(ea,ua),zt=xa[0],Cn=xa[1],rn=zt-se,wa=Cn-Me,Vr=ft*rn-ut*wa;(Vr*Vr/Lr>$||p((ut*rn+ft*wa)/Lr-.5)>.3||We*sr+rr*wr+ir*Dr<_f)&&(he(se,Me,Oe,We,rr,ir,zt,Cn,ea,Ur/=Jt,vt/=Jt,xt,lt,rt),rt.point(zt,Cn),he(zt,Cn,ea,Ur,vt,xt,gr,$e,fr,sr,wr,Dr,lt,rt))}}return function(se){var Me,Oe,We,rr,ir,gr,$e,fr,sr,wr,Dr,lt,rt={point:ut,lineStart:ft,lineEnd:Ur,polygonStart:function(){se.polygonStart(),rt.lineStart=vt},polygonEnd:function(){se.polygonEnd(),rt.lineStart=ft}};function ut(ua,ea){ua=O(ua,ea),se.point(ua[0],ua[1])}function ft(){fr=NaN,rt.point=Lr,se.lineStart()}function Lr(ua,ea){var xa=be([ua,ea]),zt=O(ua,ea);he(fr,sr,$e,wr,Dr,lt,fr=zt[0],sr=zt[1],$e=ua,wr=xa[0],Dr=xa[1],lt=xa[2],Jc,se),se.point(fr,sr)}function Ur(){rt.point=ut,se.lineEnd()}function vt(){ft(),rt.point=xt,rt.lineEnd=Jt}function xt(ua,ea){Lr(Me=ua,ea),Oe=fr,We=sr,rr=wr,ir=Dr,gr=lt,rt.point=Lr}function Jt(){he(fr,sr,$e,wr,Dr,lt,Oe,We,Me,rr,ir,gr,Jc,se),rt.lineEnd=Ur,Ur()}return rt}}var wf=Go({point:function(O,$){this.stream.point(O*h,$*h)}});function Af(O){return Go({point:function($,he){var se=O($,he);return this.stream.point(se[0],se[1])}})}function G2(O,$,he,se,Me){function Oe(We,rr){return We*=se,rr*=Me,[$+O*We,he-O*rr]}return Oe.invert=function(We,rr){return[(We-$)/O*se,(he-rr)/O*Me]},Oe}function Mf(O,$,he,se,Me,Oe){var We=y(Oe),rr=T(Oe),ir=We*O,gr=rr*O,$e=We/O,fr=rr/O,sr=(rr*he-We*$)/O,wr=(rr*$+We*he)/O;function Dr(lt,rt){return lt*=se,rt*=Me,[ir*lt-gr*rt+$,he-gr*lt-ir*rt]}return Dr.invert=function(lt,rt){return[se*($e*lt-fr*rt+sr),Me*(wr-fr*lt-$e*rt)]},Dr}function Zi(O){return Tf(function(){return O})()}function Tf(O){var $,he=150,se=480,Me=250,Oe=0,We=0,rr=0,ir=0,gr=0,$e,fr=0,sr=1,wr=1,Dr=null,lt=ot,rt=null,ut,ft,Lr,Ur=xl,vt=.5,xt,Jt,ua,ea,xa;function zt(Vr){return ua(Vr[0]*h,Vr[1]*h)}function Cn(Vr){return Vr=ua.invert(Vr[0],Vr[1]),Vr&&[Vr[0]*d,Vr[1]*d]}zt.stream=function(Vr){return ea&&xa===Vr?ea:ea=wf(Af($e)(lt(xt(Ur(xa=Vr)))))},zt.preclip=function(Vr){return arguments.length?(lt=Vr,Dr=void 0,wa()):lt},zt.postclip=function(Vr){return arguments.length?(Ur=Vr,rt=ut=ft=Lr=null,wa()):Ur},zt.clipAngle=function(Vr){return arguments.length?(lt=+Vr?Mn(Dr=Vr*h):(Dr=null,ot),wa()):Dr*d},zt.clipExtent=function(Vr){return arguments.length?(Ur=Vr==null?(rt=ut=ft=Lr=null,xl):Vn(rt=+Vr[0][0],ut=+Vr[0][1],ft=+Vr[1][0],Lr=+Vr[1][1]),wa()):rt==null?null:[[rt,ut],[ft,Lr]]},zt.scale=function(Vr){return arguments.length?(he=+Vr,rn()):he},zt.translate=function(Vr){return arguments.length?(se=+Vr[0],Me=+Vr[1],rn()):[se,Me]},zt.center=function(Vr){return arguments.length?(Oe=Vr[0]%360*h,We=Vr[1]%360*h,rn()):[Oe*d,We*d]},zt.rotate=function(Vr){return arguments.length?(rr=Vr[0]%360*h,ir=Vr[1]%360*h,gr=Vr.length>2?Vr[2]%360*h:0,rn()):[rr*d,ir*d,gr*d]},zt.angle=function(Vr){return arguments.length?(fr=Vr%360*h,rn()):fr*d},zt.reflectX=function(Vr){return arguments.length?(sr=Vr?-1:1,rn()):sr<0},zt.reflectY=function(Vr){return arguments.length?(wr=Vr?-1:1,rn()):wr<0},zt.precision=function(Vr){return arguments.length?(xt=Kc(Jt,vt=Vr*Vr),wa()):E(vt)},zt.fitExtent=function(Vr,Kt){return hu(zt,Vr,Kt)},zt.fitSize=function(Vr,Kt){return pu(zt,Vr,Kt)},zt.fitWidth=function(Vr,Kt){return bf(zt,Vr,Kt)},zt.fitHeight=function(Vr,Kt){return Yo(zt,Vr,Kt)};function rn(){var Vr=Mf(he,0,0,sr,wr,fr).apply(null,$(Oe,We)),Kt=(fr?Mf:G2)(he,se-Vr[0],Me-Vr[1],sr,wr,fr);return $e=Na(rr,ir,gr),Jt=Rt($,Kt),ua=Rt($e,Jt),xt=Kc(Jt,vt),wa()}function wa(){return ea=xa=null,zt}return function(){return $=O.apply(this,arguments),zt.invert=$.invert&&Cn,rn()}}function _s(O){var $=0,he=s/3,se=Tf(O),Me=se($,he);return Me.parallels=function(Oe){return arguments.length?se($=Oe[0]*h,he=Oe[1]*h):[$*d,he*d]},Me}function kf(O){var $=y(O);function he(se,Me){return[se*$,T(Me)/$]}return he.invert=function(se,Me){return[se/$,I(Me*$)]},he}function Qc(O,$){var he=T(O),se=(he+T($))/2;if(p(se)<o)return kf(O);var Me=1+he*(2*se-he),Oe=E(Me)/se;function We(rr,ir){var gr=E(Me-2*se*T(ir))/se;return[gr*T(rr*=se),Oe-gr*y(rr)]}return We.invert=function(rr,ir){var gr=Oe-ir,$e=b(rr,p(gr))*M(gr);return gr*se<0&&($e-=s*M(rr)*M(gr)),[$e/se,I((Me-(rr*rr+gr*gr)*se*se)/(2*se))]},We}function Cl(){return _s(Qc).scale(155.424).center([0,33.6442])}function e1(){return Cl().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Y2(O){var $=O.length;return{point:function(he,se){for(var Me=-1;++Me<$;)O[Me].point(he,se)},sphere:function(){for(var he=-1;++he<$;)O[he].sphere()},lineStart:function(){for(var he=-1;++he<$;)O[he].lineStart()},lineEnd:function(){for(var he=-1;++he<$;)O[he].lineEnd()},polygonStart:function(){for(var he=-1;++he<$;)O[he].polygonStart()},polygonEnd:function(){for(var he=-1;++he<$;)O[he].polygonEnd()}}}function V2(){var O,$,he=e1(),se,Me=Cl().rotate([154,0]).center([-2,58.5]).parallels([55,65]),Oe,We=Cl().rotate([157,0]).center([-3,19.9]).parallels([8,18]),rr,ir,gr={point:function(sr,wr){ir=[sr,wr]}};function $e(sr){var wr=sr[0],Dr=sr[1];return ir=null,se.point(wr,Dr),ir||(Oe.point(wr,Dr),ir)||(rr.point(wr,Dr),ir)}$e.invert=function(sr){var wr=he.scale(),Dr=he.translate(),lt=(sr[0]-Dr[0])/wr,rt=(sr[1]-Dr[1])/wr;return(rt>=.12&&rt<.234&&lt>=-.425&&lt<-.214?Me:rt>=.166&&rt<.234&&lt>=-.214&&lt<-.115?We:he).invert(sr)},$e.stream=function(sr){return O&&$===sr?O:O=Y2([he.stream($=sr),Me.stream(sr),We.stream(sr)])},$e.precision=function(sr){return arguments.length?(he.precision(sr),Me.precision(sr),We.precision(sr),fr()):he.precision()},$e.scale=function(sr){return arguments.length?(he.scale(sr),Me.scale(sr*.35),We.scale(sr),$e.translate(he.translate())):he.scale()},$e.translate=function(sr){if(!arguments.length)return he.translate();var wr=he.scale(),Dr=+sr[0],lt=+sr[1];return se=he.translate(sr).clipExtent([[Dr-.455*wr,lt-.238*wr],[Dr+.455*wr,lt+.238*wr]]).stream(gr),Oe=Me.translate([Dr-.307*wr,lt+.201*wr]).clipExtent([[Dr-.425*wr+o,lt+.12*wr+o],[Dr-.214*wr-o,lt+.234*wr-o]]).stream(gr),rr=We.translate([Dr-.205*wr,lt+.212*wr]).clipExtent([[Dr-.214*wr+o,lt+.166*wr+o],[Dr-.115*wr-o,lt+.234*wr-o]]).stream(gr),fr()},$e.fitExtent=function(sr,wr){return hu($e,sr,wr)},$e.fitSize=function(sr,wr){return pu($e,sr,wr)},$e.fitWidth=function(sr,wr){return bf($e,sr,wr)},$e.fitHeight=function(sr,wr){return Yo($e,sr,wr)};function fr(){return O=$=null,$e}return $e.scale(1070)}function yo(O){return function($,he){var se=y($),Me=y(he),Oe=O(se*Me);return[Oe*Me*T($),Oe*T(he)]}}function $i(O){return function($,he){var se=E($*$+he*he),Me=O(se),Oe=T(Me),We=y(Me);return[b($*Oe,se*We),I(se&&he*Oe/se)]}}var li=yo(function(O){return E(2/(1+O))});li.invert=$i(function(O){return 2*I(O/2)});function X2(){return Zi(li).scale(124.75).clipAngle(180-.001)}var xs=yo(function(O){return(O=z(O))&&O/T(O)});xs.invert=$i(function(O){return O});function r1(){return Zi(xs).scale(79.4188).clipAngle(180-.001)}function gi(O,$){return[O,_(P((u+$)/2))]}gi.invert=function(O,$){return[O,2*m(x($))-u]};function t1(){return a1(gi).scale(961/c)}function a1(O){var $=Zi(O),he=$.center,se=$.scale,Me=$.translate,Oe=$.clipExtent,We=null,rr,ir,gr;$.scale=function(fr){return arguments.length?(se(fr),$e()):se()},$.translate=function(fr){return arguments.length?(Me(fr),$e()):Me()},$.center=function(fr){return arguments.length?(he(fr),$e()):he()},$.clipExtent=function(fr){return arguments.length?(fr==null?We=rr=ir=gr=null:(We=+fr[0][0],rr=+fr[0][1],ir=+fr[1][0],gr=+fr[1][1]),$e()):We==null?null:[[We,rr],[ir,gr]]};function $e(){var fr=s*se(),sr=$(Ba($.rotate()).invert([0,0]));return Oe(We==null?[[sr[0]-fr,sr[1]-fr],[sr[0]+fr,sr[1]+fr]]:O===gi?[[Math.max(sr[0]-fr,We),rr],[Math.min(sr[0]+fr,ir),gr]]:[[We,Math.max(sr[1]-fr,rr)],[ir,Math.min(sr[1]+fr,gr)]])}return $e()}function mu(O){return P((u+O)/2)}function n1(O,$){var he=y(O),se=O===$?T(O):_(he/y($))/_(mu($)/mu(O)),Me=he*A(mu(O),se)/se;if(!se)return gi;function Oe(We,rr){Me>0?rr<-u+o&&(rr=-u+o):rr>u-o&&(rr=u-o);var ir=Me/A(mu(rr),se);return[ir*T(se*We),Me-ir*y(se*We)]}return Oe.invert=function(We,rr){var ir=Me-rr,gr=M(se)*E(We*We+ir*ir),$e=b(We,p(ir))*M(ir);return ir*se<0&&($e-=s*M(We)*M(ir)),[$e/se,2*m(A(Me/gr,1/se))-u]},Oe}function i0(){return _s(n1).scale(109.5).parallels([30,30])}function gu(O,$){return[O,$]}gu.invert=gu;function o0(){return Zi(gu).scale(152.63)}function yu(O,$){var he=y(O),se=O===$?T(O):(he-y($))/($-O),Me=he/se+O;if(p(se)<o)return gu;function Oe(We,rr){var ir=Me-rr,gr=se*We;return[ir*T(gr),Me-ir*y(gr)]}return Oe.invert=function(We,rr){var ir=Me-rr,gr=b(We,p(ir))*M(ir);return ir*se<0&&(gr-=s*M(We)*M(ir)),[gr/se,Me-M(se)*E(We*We+ir*ir)]},Oe}function j2(){return _s(yu).scale(131.154).center([0,13.9389])}var bu=1.340264,Sl=-.081106,_u=893e-6,Dl=.003796,ws=E(3)/2,l0=12;function xu(O,$){var he=I(ws*T($)),se=he*he,Me=se*se*se;return[O*y(he)/(ws*(bu+3*Sl*se+Me*(7*_u+9*Dl*se))),he*(bu+Sl*se+Me*(_u+Dl*se))]}xu.invert=function(O,$){for(var he=$,se=he*he,Me=se*se*se,Oe=0,We,rr,ir;Oe<l0&&(rr=he*(bu+Sl*se+Me*(_u+Dl*se))-$,ir=bu+3*Sl*se+Me*(7*_u+9*Dl*se),he-=We=rr/ir,se=he*he,Me=se*se*se,!(p(We)<l));++Oe);return[ws*O*(bu+3*Sl*se+Me*(7*_u+9*Dl*se))/y(he),I(T(he)/ws)]};function i1(){return Zi(xu).scale(177.158)}function s0(O,$){var he=y($),se=y(O)*he;return[he*T(O)/se,T($)/se]}s0.invert=$i(m);function o1(){return Zi(s0).scale(144.049).clipAngle(60)}function l1(){var O=1,$=0,he=0,se=1,Me=1,Oe=0,We,rr,ir=null,gr,$e,fr,sr=1,wr=1,Dr=Go({point:function(Ur,vt){var xt=Lr([Ur,vt]);this.stream.point(xt[0],xt[1])}}),lt=xl,rt,ut;function ft(){return sr=O*se,wr=O*Me,rt=ut=null,Lr}function Lr(Ur){var vt=Ur[0]*sr,xt=Ur[1]*wr;if(Oe){var Jt=xt*We-vt*rr;vt=vt*We+xt*rr,xt=Jt}return[vt+$,xt+he]}return Lr.invert=function(Ur){var vt=Ur[0]-$,xt=Ur[1]-he;if(Oe){var Jt=xt*We+vt*rr;vt=vt*We-xt*rr,xt=Jt}return[vt/sr,xt/wr]},Lr.stream=function(Ur){return rt&&ut===Ur?rt:rt=Dr(lt(ut=Ur))},Lr.postclip=function(Ur){return arguments.length?(lt=Ur,ir=gr=$e=fr=null,ft()):lt},Lr.clipExtent=function(Ur){return arguments.length?(lt=Ur==null?(ir=gr=$e=fr=null,xl):Vn(ir=+Ur[0][0],gr=+Ur[0][1],$e=+Ur[1][0],fr=+Ur[1][1]),ft()):ir==null?null:[[ir,gr],[$e,fr]]},Lr.scale=function(Ur){return arguments.length?(O=+Ur,ft()):O},Lr.translate=function(Ur){return arguments.length?($=+Ur[0],he=+Ur[1],ft()):[$,he]},Lr.angle=function(Ur){return arguments.length?(Oe=Ur%360*h,rr=T(Oe),We=y(Oe),ft()):Oe*d},Lr.reflectX=function(Ur){return arguments.length?(se=Ur?-1:1,ft()):se<0},Lr.reflectY=function(Ur){return arguments.length?(Me=Ur?-1:1,ft()):Me<0},Lr.fitExtent=function(Ur,vt){return hu(Lr,Ur,vt)},Lr.fitSize=function(Ur,vt){return pu(Lr,Ur,vt)},Lr.fitWidth=function(Ur,vt){return bf(Lr,Ur,vt)},Lr.fitHeight=function(Ur,vt){return Yo(Lr,Ur,vt)},Lr}function Cf(O,$){var he=$*$,se=he*he;return[O*(.8707-.131979*he+se*(-.013791+se*(.003971*he-.001529*se))),$*(1.007226+he*(.015085+se*(-.044475+.028874*he-.005916*se)))]}Cf.invert=function(O,$){var he=$,se=25,Me;do{var Oe=he*he,We=Oe*Oe;he-=Me=(he*(1.007226+Oe*(.015085+We*(-.044475+.028874*Oe-.005916*We)))-$)/(1.007226+Oe*(.015085*3+We*(-.044475*7+.028874*9*Oe-.005916*11*We)))}while(p(Me)>o&&--se>0);return[O/(.8707+(Oe=he*he)*(-.131979+Oe*(-.013791+Oe*Oe*Oe*(.003971-.001529*Oe)))),he]};function u0(){return Zi(Cf).scale(175.295)}function hn(O,$){return[y($)*T(O),T($)]}hn.invert=$i(I);function Ni(){return Zi(hn).scale(249.5).clipAngle(90+o)}function As(O,$){var he=y($),se=1+y(O)*he;return[he*T(O)/se,T($)/se]}As.invert=$i(function(O){return 2*m(O)});function f0(){return Zi(As).scale(250).clipAngle(142)}function wu(O,$){return[_(P((u+$)/2)),-O]}wu.invert=function(O,$){return[-$,2*m(x(O))-u]};function Sf(){var O=a1(wu),$=O.center,he=O.rotate;return O.center=function(se){return arguments.length?$([-se[1],se[0]]):(se=$(),[se[1],-se[0]])},O.rotate=function(se){return arguments.length?he([se[0],se[1],se.length>2?se[2]+90:90]):(se=he(),[se[0],se[1],se[2]-90])},he([0,0,90]).scale(159.155)}e.geoAlbers=e1,e.geoAlbersUsa=V2,e.geoArea=J,e.geoAzimuthalEqualArea=X2,e.geoAzimuthalEqualAreaRaw=li,e.geoAzimuthalEquidistant=r1,e.geoAzimuthalEquidistantRaw=xs,e.geoBounds=Cr,e.geoCentroid=ma,e.geoCircle=zo,e.geoClipAntimeridian=ot,e.geoClipCircle=Mn,e.geoClipExtent=yl,e.geoClipRectangle=Vn,e.geoConicConformal=i0,e.geoConicConformalRaw=n1,e.geoConicEqualArea=Cl,e.geoConicEqualAreaRaw=Qc,e.geoConicEquidistant=j2,e.geoConicEquidistantRaw=yu,e.geoContains=nu,e.geoDistance=_l,e.geoEqualEarth=i1,e.geoEqualEarthRaw=xu,e.geoEquirectangular=o0,e.geoEquirectangularRaw=gu,e.geoGnomonic=o1,e.geoGnomonicRaw=s0,e.geoGraticule=Vc,e.geoGraticule10=ou,e.geoIdentity=l1,e.geoInterpolate=N2,e.geoLength=ru,e.geoMercator=t1,e.geoMercatorRaw=gi,e.geoNaturalEarth1=u0,e.geoNaturalEarth1Raw=Cf,e.geoOrthographic=Ni,e.geoOrthographicRaw=hn,e.geoPath=yf,e.geoProjection=Zi,e.geoProjectionMutator=Tf,e.geoRotation=Ba,e.geoStereographic=f0,e.geoStereographicRaw=As,e.geoStream=ae,e.geoTransform=U2,e.geoTransverseMercator=Sf,e.geoTransverseMercatorRaw=wu,Object.defineProperty(e,"__esModule",{value:!0})}))});var qU=oe((J8e,LU)=>{"use strict";var EU={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},_ge=new Set(Object.values(EU));LU.exports={usaLocationAbbreviations:_ge,usaLocationList:EU}});var PU={};Ua(PU,{COUNTRIES_X:()=>xge});var xge,RU=Oa(()=>{"use strict";xge=[{iso3:"XAC",iso2:"",m49:"",name:"Aksai Chin",aliases:[]},{iso3:"XAP",iso2:"",m49:"",name:"Arunachal Pradesh",aliases:[]},{iso3:"XBT",iso2:"",m49:"",name:"Bir Tawil",aliases:[]},{iso3:"XHT",iso2:"",m49:"",name:"Halaib Triangle",aliases:[]},{iso3:"XIT",iso2:"",m49:"",name:"Ilemi Triangle",aliases:[]},{iso3:"XJK",iso2:"",m49:"",name:"Jammu and Kashmir",aliases:[]}]});var E2=oe((K8e,BU)=>{"use strict";var wge=Lt(),{COUNTRIES:Age,createLookup:Mge}=cU(),{area:Tge}=TU(),{centroid:kge}=CU(),{coordAll:Cge}=K3(),{geoBounds:Sge}=ay(),Dge=wp(),Q0=Cu(),Fge=d0(),Ege=Q2(),ny=gg(),{usaLocationAbbreviations:Lge,usaLocationList:qge}=qU(),{COUNTRIES_X:Pge}=(RU(),xr(PU)),{lookupAlpha3:Rge}=Mge([...Age,...Pge]),zge={"ISO-3":Dge,"USA-states":Bge,"country names":Nge};function Nge(e){let r=Rge(e);return r||(Q0.log("Unrecognized country name: "+e+"."),!1)}function Bge(e){e=e.trim();let r=Lge.has(e.toUpperCase())?e.toUpperCase():qge[e.toLowerCase()];return r||(Q0.log("Unrecognized US location: "+e+"."),!1)}function Ige(e,r,t){var n;if(!r||typeof r!="string")return!1;let a=zge[e](r);if(a){let i;if(e==="USA-states"){i=[];for(let o of t)((n=o==null?void 0:o.properties)==null?void 0:n.gu)==="USA"&&i.push(o)}else i=t;for(let o of i)if(o.id===a)return o;Q0.log(`Location with id ${a} does not have a matching topojson feature at this resolution.`)}return!1}var iy=360;function X8(e){for(let r=0;r<e.length-1;r++)if(e[r][0]>0&&e[r+1][0]<0)return r;return null}function Hge(e){var r=e.geometry,t=r.coordinates,a=e.id,n=[],i,o,l,s;switch(a==="RUS"||a==="FJI"?i=function(u){var f;if(X8(u)===null)f=u;else for(f=new Array(u.length),s=0;s<u.length;s++)f[s]=[u[s][0]<0?u[s][0]+iy:u[s][0],u[s][1]];n.push(ny.tester(f))}:a==="ATA"?i=function(u){var f=X8(u);if(f===null)return n.push(ny.tester(u));var c=new Array(u.length+1),d=0;for(s=0;s<u.length;s++)s>f?c[d++]=[u[s][0]+iy,u[s][1]]:s===f?(c[d++]=u[s],c[d++]=[u[s][0],-90]):c[d++]=u[s];var h=ny.tester(c);h.pts.pop(),n.push(h)}:i=function(u){n.push(ny.tester(u))},r.type){case"MultiPolygon":for(o=0;o<t.length;o++)for(l=0;l<t[o].length;l++)i(t[o][l]);break;case"Polygon":for(o=0;o<t.length;o++)i(t[o]);break}return n}function j8(e){var r=e.geojson,t=window.PlotlyGeoAssets||{},a=typeof r=="string"?t[r]:r;return Fge(a)?a:(Q0.error("Oops ... something went wrong when fetching "+r),!1)}function Oge(e){var r=e[0].trace,t=j8(r);if(!t)return!1;var a={},n=[],i;for(i=0;i<r._length;i++){var o=e[i];(o.loc||o.loc===0)&&(a[o.loc]=o)}function l(f){var c=Ege(f,r.featureidkey||"id").get(),d=a[c];if(d){var h=f.geometry;if(h.type==="Polygon"||h.type==="MultiPolygon"){var p={type:"Feature",id:c,geometry:h,properties:{}};p.properties.ct=Uge(p),isNaN(p.properties.ct[0])&&Q0.log(["Location",d.loc,"has no polygon with positive area.","Its centroid could not be computed,","so hover and selection will not work for it."].join(" ")),d.fIn=f,d.fOut=p,n.push(p)}else Q0.log(["Location",d.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete a[c]}switch(t.type){case"FeatureCollection":var s=t.features;for(i=0;i<s.length;i++)l(s[i]);break;case"Feature":l(t);break;default:return Q0.warn(["Invalid GeoJSON type",(t.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var u in a)Q0.log(["Location *"+u+"*","does not have a matching feature with id-key","*"+r.featureidkey+"*."].join(" "));return n}function Uge(e){var r=e.geometry,t;if(r.type==="MultiPolygon")for(var a=r.coordinates,n=0,i=0;i<a.length;i++){var o={type:"Polygon",coordinates:a[i]},l=Tge(o);l>n&&(n=l,t=o)}else t=r;return!t||!t.coordinates.some(s=>s.length>0)?[NaN,NaN]:kge(t).geometry.coordinates}function Gge(e){var r=window.PlotlyGeoAssets||{},t=[];function a(s){return new Promise(function(u,f){wge.json(s,function(c,d){if(c){delete r[s];var h=c.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(h))}return r[s]=d,u(d)})})}function n(s){return new Promise(function(u,f){var c=0,d=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(d),u(r[s]);if(c>100)return clearInterval(d),f("Unexpected error while fetching from "+s);c++},50)})}for(var i=0;i<e.length;i++){var o=e[i][0].trace,l=o.geojson;typeof l=="string"&&(r[l]?r[l]==="pending"&&t.push(n(l)):(r[l]="pending",t.push(a(l))))}return t}var Yge=e=>Z8(W8(e));function W8(e){try{return Cge(e)}catch(r){return[]}}function Z8(e){if(e.length===0)return null;if(e.length===1){let[i,o]=e[0];return[i,o,i,o]}let[[r,t],[a,n]]=Sge({type:"MultiPoint",coordinates:e});return[r,t,NU([r,a])[1],n]}var Vge=(e,r)=>r.fitbounds==="geojson"&&e.locationmode==="geojson-id",zU=(e,r)=>Vge(e,r)?W8(j8(e)):[],Xge=(e,r)=>Z8(zU(e,r));function NU([e,r]){return[e,e>r?r+iy:r]}BU.exports={locationToFeature:Ige,feature2polygons:Hge,getTraceGeojson:j8,extractTraceFeature:Oge,fetchTraceGeoData:Gge,boundsOfCoords:Z8,computeBbox:Yge,coordsOf:W8,doesCrossAntiMeridian:X8,fitGeojsonBbox:Xge,fitGeojsonCoords:zU,unwrapLonRange:NU,ANTIMERIDIAN_LON_SHIFT:iy}});var $8=oe((Q8e,OU)=>{"use strict";var jge=Lt(),Wge=da(),IU=Nt(),HU=Ud(),Zge=HU.stylePoints,$ge=HU.styleText;OU.exports=function(r,t){t&&Jge(r,t)};function Jge(e,r){var t=r[0].trace,a=r[0].node3;a.style("opacity",r[0].trace.opacity),Zge(a,t,e),$ge(a,t,e),a.selectAll("path.js-line").style("fill","none").each(function(n){var i=jge.select(this),o=n.trace,l=o.line||{};i.call(IU.stroke,l.color).call(Wge.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(IU.fill,o.fillcolor)})}});var sy=oe((e_e,YU)=>{"use strict";var UU=Lt(),oy=pr(),Kge=X3().getTopojsonFeatures,J8=oU(),ly=E2(),GU=P0().findExtremes,Q8=(Za(),xr(nn)).BADNUM,Qge=r3().calcMarkerSize,K8=Ti(),e3e=$8();function r3e(e,r,t){var a=r.layers.frontplot.select(".scatterlayer"),n=oy.makeTraceGroups(a,t,"trace scattergeo");function i(o,l){o.lonlat[0]===Q8&&UU.select(l).remove()}n.selectAll("*").remove(),n.each(function(o){var l=UU.select(this),s=o[0].trace;if(K8.hasLines(s)||s.fill!=="none"){var u=J8.calcTraceToLineCoords(o),f=s.fill!=="none"?J8.makePolygon(u):J8.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}K8.hasMarkers(s)&&l.selectAll("path.point").data(oy.identity).enter().append("path").classed("point",!0).each(function(c){i(c,this)}),K8.hasText(s)&&l.selectAll("g").data(oy.identity).enter().append("g").append("text").each(function(c){i(c,this)}),e3e(e,o)})}function t3e(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t._length,o,l;if(oy.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?ly.extractTraceFeature(e):Kge(t,n.topojson);for(o=0;o<i;o++){l=e[o];var f=s==="geojson-id"?l.fOut:ly.locationToFeature(s,l.loc,u);l.lonlat=f?f.properties.ct:[Q8,Q8]}}var c={padded:!0},d,h;let p=ly.fitGeojsonBbox(t,a);if(p){let[m,b,y,C]=p;d=[m,y],h=[b,C]}else{for(d=new Array(i),h=new Array(i),o=0;o<i;o++)l=e[o],d[o]=l.lonlat[0],h[o]=l.lonlat[1];c.ppad=Qge(t,i)}t._extremes.lon=GU(a.lonaxis._ax,d,c),t._extremes.lat=GU(a.lataxis._ax,h,c)}function a3e(e,r){let t=ly.fitGeojsonCoords(e[0].trace,r);if(t.length)return t;let a=[];for(let n of e)n.lonlat&&isFinite(n.lonlat[0])&&a.push(n.lonlat);return a}YU.exports={calcGeoJSON:t3e,fitCoords:a3e,plot:r3e}});var XU=oe((r_e,VU)=>{"use strict";var n3e=Wl(),i3e=(Za(),xr(nn)).BADNUM,o3e=S9(),l3e=pr().fillText,s3e=ah();VU.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.xa,l=r.ya,s=r.subplot,u=s.projection.isLonLatOverEdges,f=s.project;function c(C){var x=C.lonlat;if(x[0]===i3e||u(x))return 1/0;var _=f(x),A=f([t,a]),T=Math.abs(_[0]-A[0]),M=Math.abs(_[1]-A[1]),E=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(T*T+M*M)-E,1-3/E)}if(n3e.getClosest(n,c,r),r.index!==!1){var d=n[r.index],h=d.lonlat,p=[o.c2p(h),l.c2p(h)],m=d.mrc||1;r.x0=p[0]-m,r.x1=p[0]+m,r.y0=p[1]-m,r.y1=p[1]+m,r.loc=d.loc,r.lon=h[0],r.lat=h[1];var b={};b[i.geo]={_subplot:s};var y=i._module.formatLabels(d,i,b);return r.lonLabel=y.lonLabel,r.latLabel=y.latLabel,r.color=o3e(i,d),r.extraText=u3e(i,d,r,n[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function u3e(e,r,t,a){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,i=n==="all"?s3e.hoverinfo.flags:n.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=i.indexOf("text")!==-1,f=[];function c(d){return d+"\xB0"}return o?f.push(r.loc):l&&s?f.push("("+c(t.latLabel)+", "+c(t.lonLabel)+")"):l?f.push(a.lon+c(t.lonLabel)):s&&f.push(a.lat+c(t.latLabel)),u&&l3e(r,e,f),f.join("<br>")}});var WU=oe((t_e,jU)=>{"use strict";jU.exports=function(r,t,a,n,i){r.lon=t.lon,r.lat=t.lat,r.location=t.loc?t.loc:null;var o=n[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r}});var JU=oe((a_e,$U)=>{"use strict";var ZU=Ti(),f3e=(Za(),xr(nn)).BADNUM;$U.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,d,h=!ZU.hasMarkers(l)&&!ZU.hasText(l);if(h)return[];if(t===!1)for(d=0;d<a.length;d++)a[d].selected=0;else for(d=0;d<a.length;d++)s=a[d],u=s.lonlat,u[0]!==f3e&&(f=n.c2p(u),c=i.c2p(u),t.contains([f,c],null,d,r)?(o.push({pointNumber:d,lon:u[0],lat:u[1]}),s.selected=1):s.selected=0);return o}});var QU=oe((uy,KU)=>{(function(e,r){r(typeof uy=="object"&&typeof KU!="undefined"?uy:e.d3=e.d3||{})})(uy,(function(e){"use strict";function r(W,le){return W<le?-1:W>le?1:W>=le?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(le,de,K,J){for(K==null&&(K=0),J==null&&(J=le.length);K<J;){var fe=K+J>>>1;W(le[fe],de)<0?K=fe+1:J=fe}return K},right:function(le,de,K,J){for(K==null&&(K=0),J==null&&(J=le.length);K<J;){var fe=K+J>>>1;W(le[fe],de)>0?J=fe:K=fe+1}return K}}}function a(W){return function(le,de){return r(W(le),de)}}var n=t(r),i=n.right,o=n.left;function l(W,le){le==null&&(le=s);for(var de=0,K=W.length-1,J=W[0],fe=new Array(K<0?0:K);de<K;)fe[de]=le(J,J=W[++de]);return fe}function s(W,le){return[W,le]}function u(W,le,de){var K=W.length,J=le.length,fe=new Array(K*J),be,Ne,Ze,er;for(de==null&&(de=s),be=Ze=0;be<K;++be)for(er=W[be],Ne=0;Ne<J;++Ne,++Ze)fe[Ze]=de(er,le[Ne]);return fe}function f(W,le){return le<W?-1:le>W?1:le>=W?0:NaN}function c(W){return W===null?NaN:+W}function d(W,le){var de=W.length,K=0,J=-1,fe=0,be,Ne,Ze=0;if(le==null)for(;++J<de;)isNaN(be=c(W[J]))||(Ne=be-fe,fe+=Ne/++K,Ze+=Ne*(be-fe));else for(;++J<de;)isNaN(be=c(le(W[J],J,W)))||(Ne=be-fe,fe+=Ne/++K,Ze+=Ne*(be-fe));if(K>1)return Ze/(K-1)}function h(W,le){var de=d(W,le);return de&&Math.sqrt(de)}function p(W,le){var de=W.length,K=-1,J,fe,be;if(le==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(fe=be=J;++K<de;)(J=W[K])!=null&&(fe>J&&(fe=J),be<J&&(be=J))}else for(;++K<de;)if((J=le(W[K],K,W))!=null&&J>=J)for(fe=be=J;++K<de;)(J=le(W[K],K,W))!=null&&(fe>J&&(fe=J),be<J&&(be=J));return[fe,be]}var m=Array.prototype,b=m.slice,y=m.map;function C(W){return function(){return W}}function x(W){return W}function _(W,le,de){W=+W,le=+le,de=(J=arguments.length)<2?(le=W,W=0,1):J<3?1:+de;for(var K=-1,J=Math.max(0,Math.ceil((le-W)/de))|0,fe=new Array(J);++K<J;)fe[K]=W+K*de;return fe}var A=Math.sqrt(50),T=Math.sqrt(10),M=Math.sqrt(2);function E(W,le,de){var K,J=-1,fe,be,Ne;if(le=+le,W=+W,de=+de,W===le&&de>0)return[W];if((K=le<W)&&(fe=W,W=le,le=fe),(Ne=P(W,le,de))===0||!isFinite(Ne))return[];if(Ne>0)for(W=Math.ceil(W/Ne),le=Math.floor(le/Ne),be=new Array(fe=Math.ceil(le-W+1));++J<fe;)be[J]=(W+J)*Ne;else for(W=Math.floor(W*Ne),le=Math.ceil(le*Ne),be=new Array(fe=Math.ceil(W-le+1));++J<fe;)be[J]=(W-J)/Ne;return K&&be.reverse(),be}function P(W,le,de){var K=(le-W)/Math.max(0,de),J=Math.floor(Math.log(K)/Math.LN10),fe=K/Math.pow(10,J);return J>=0?(fe>=A?10:fe>=T?5:fe>=M?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(fe>=A?10:fe>=T?5:fe>=M?2:1)}function z(W,le,de){var K=Math.abs(le-W)/Math.max(0,de),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),fe=K/J;return fe>=A?J*=10:fe>=T?J*=5:fe>=M&&(J*=2),le<W?-J:J}function I(W){return Math.ceil(Math.log(W.length)/Math.LN2)+1}function X(){var W=x,le=p,de=I;function K(J){var fe,be=J.length,Ne,Ze=new Array(be);for(fe=0;fe<be;++fe)Ze[fe]=W(J[fe],fe,J);var er=le(Ze),Je=er[0],tr=er[1],ze=de(Ze,Je,tr);Array.isArray(ze)||(ze=z(Je,tr,ze),ze=_(Math.ceil(Je/ze)*ze,tr,ze));for(var lr=ze.length;ze[0]<=Je;)ze.shift(),--lr;for(;ze[lr-1]>tr;)ze.pop(),--lr;var dr=new Array(lr+1),Ar;for(fe=0;fe<=lr;++fe)Ar=dr[fe]=[],Ar.x0=fe>0?ze[fe-1]:Je,Ar.x1=fe<lr?ze[fe]:tr;for(fe=0;fe<be;++fe)Ne=Ze[fe],Je<=Ne&&Ne<=tr&&dr[i(ze,Ne,0,lr)].push(J[fe]);return dr}return K.value=function(J){return arguments.length?(W=typeof J=="function"?J:C(J),K):W},K.domain=function(J){return arguments.length?(le=typeof J=="function"?J:C([J[0],J[1]]),K):le},K.thresholds=function(J){return arguments.length?(de=typeof J=="function"?J:Array.isArray(J)?C(b.call(J)):C(J),K):de},K}function H(W,le,de){if(de==null&&(de=c),!!(K=W.length)){if((le=+le)<=0||K<2)return+de(W[0],0,W);if(le>=1)return+de(W[K-1],K-1,W);var K,J=(K-1)*le,fe=Math.floor(J),be=+de(W[fe],fe,W),Ne=+de(W[fe+1],fe+1,W);return be+(Ne-be)*(J-fe)}}function V(W,le,de){return W=y.call(W,c).sort(r),Math.ceil((de-le)/(2*(H(W,.75)-H(W,.25))*Math.pow(W.length,-1/3)))}function N(W,le,de){return Math.ceil((de-le)/(3.5*h(W)*Math.pow(W.length,-1/3)))}function Q(W,le){var de=W.length,K=-1,J,fe;if(le==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(fe=J;++K<de;)(J=W[K])!=null&&J>fe&&(fe=J)}else for(;++K<de;)if((J=le(W[K],K,W))!=null&&J>=J)for(fe=J;++K<de;)(J=le(W[K],K,W))!=null&&J>fe&&(fe=J);return fe}function ee(W,le){var de=W.length,K=de,J=-1,fe,be=0;if(le==null)for(;++J<de;)isNaN(fe=c(W[J]))?--K:be+=fe;else for(;++J<de;)isNaN(fe=c(le(W[J],J,W)))?--K:be+=fe;if(K)return be/K}function re(W,le){var de=W.length,K=-1,J,fe=[];if(le==null)for(;++K<de;)isNaN(J=c(W[K]))||fe.push(J);else for(;++K<de;)isNaN(J=c(le(W[K],K,W)))||fe.push(J);return H(fe.sort(r),.5)}function ae(W){for(var le=W.length,de,K=-1,J=0,fe,be;++K<le;)J+=W[K].length;for(fe=new Array(J);--le>=0;)for(be=W[le],de=be.length;--de>=0;)fe[--J]=be[de];return fe}function ie(W,le){var de=W.length,K=-1,J,fe;if(le==null){for(;++K<de;)if((J=W[K])!=null&&J>=J)for(fe=J;++K<de;)(J=W[K])!=null&&fe>J&&(fe=J)}else for(;++K<de;)if((J=le(W[K],K,W))!=null&&J>=J)for(fe=J;++K<de;)(J=le(W[K],K,W))!=null&&fe>J&&(fe=J);return fe}function ue(W,le){for(var de=le.length,K=new Array(de);de--;)K[de]=W[le[de]];return K}function xe(W,le){if(de=W.length){var de,K=0,J=0,fe,be=W[J];for(le==null&&(le=r);++K<de;)(le(fe=W[K],be)<0||le(be,be)!==0)&&(be=fe,J=K);if(le(be,be)===0)return J}}function De(W,le,de){for(var K=(de==null?W.length:de)-(le=le==null?0:+le),J,fe;K;)fe=Math.random()*K--|0,J=W[K+le],W[K+le]=W[fe+le],W[fe+le]=J;return W}function Ye(W,le){var de=W.length,K=-1,J,fe=0;if(le==null)for(;++K<de;)(J=+W[K])&&(fe+=J);else for(;++K<de;)(J=+le(W[K],K,W))&&(fe+=J);return fe}function Ee(W){if(!(fe=W.length))return[];for(var le=-1,de=ie(W,ke),K=new Array(de);++le<de;)for(var J=-1,fe,be=K[le]=new Array(fe);++J<fe;)be[J]=W[J][le];return K}function ke(W){return W.length}function je(){return Ee(arguments)}e.bisect=i,e.bisectRight=i,e.bisectLeft=o,e.ascending=r,e.bisector=t,e.cross=u,e.descending=f,e.deviation=h,e.extent=p,e.histogram=X,e.thresholdFreedmanDiaconis=V,e.thresholdScott=N,e.thresholdSturges=I,e.max=Q,e.mean=ee,e.median=re,e.merge=ae,e.min=ie,e.pairs=l,e.permute=ue,e.quantile=H,e.range=_,e.scan=xe,e.shuffle=De,e.sum=Ye,e.ticks=E,e.tickIncrement=P,e.tickStep=z,e.transpose=Ee,e.variance=d,e.zip=je,Object.defineProperty(e,"__esModule",{value:!0})}))});var rG=oe((fy,eG)=>{(function(e,r){typeof fy=="object"&&typeof eG!="undefined"?r(fy,ay(),QU()):r(e.d3=e.d3||{},e.d3,e.d3)})(fy,(function(e,r,t){"use strict";var a=Math.abs,n=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,s=Math.floor,u=Math.log,f=Math.max,c=Math.min,d=Math.pow,h=Math.round,p=Math.sign||function(k){return k>0?1:k<0?-1:0},m=Math.sin,b=Math.tan,y=1e-6,C=1e-12,x=Math.PI,_=x/2,A=x/4,T=Math.SQRT1_2,M=N(2),E=N(x),P=x*2,z=180/x,I=x/180;function X(k){return k?k/Math.sin(k):1}function H(k){return k>1?_:k<-1?-_:Math.asin(k)}function V(k){return k>1?0:k<-1?x:Math.acos(k)}function N(k){return k>0?Math.sqrt(k):0}function Q(k){return k=l(2*k),(k-1)/(k+1)}function ee(k){return(l(k)-l(-k))/2}function re(k){return(l(k)+l(-k))/2}function ae(k){return u(k+N(k*k+1))}function ie(k){return u(k+N(k*k-1))}function ue(k){var D=b(k/2),q=2*u(o(k/2))/(D*D);function R(G,U){var j=o(G),ve=o(U),pe=m(U),ce=ve*j,me=-((1-ce?u((1+ce)/2)/(1-ce):-.5)+q/(1+ce));return[me*ve*m(G),me*pe]}return R.invert=function(G,U){var j=N(G*G+U*U),ve=-k/2,pe=50,ce;if(!j)return[0,0];do{var me=ve/2,we=o(me),Fe=m(me),Ie=Fe/we,Ke=-u(a(we));ve-=ce=(2/Ie*Ke-q*Ie-j)/(-Ke/(Fe*Fe)+1-q/(2*we*we))*(we<0?.7:1)}while(a(ce)>y&&--pe>0);var ur=m(ve);return[i(G*ur,j*o(ve)),H(U*ur/j)]},R}function xe(){var k=_,D=r.geoProjectionMutator(ue),q=D(k);return q.radius=function(R){return arguments.length?D(k=R*I):k*z},q.scale(179.976).clipAngle(147)}function De(k,D){var q=o(D),R=X(V(q*o(k/=2)));return[2*q*m(k)*R,m(D)*R]}De.invert=function(k,D){if(!(k*k+4*D*D>x*x+y)){var q=k,R=D,G=25;do{var U=m(q),j=m(q/2),ve=o(q/2),pe=m(R),ce=o(R),me=m(2*R),we=pe*pe,Fe=ce*ce,Ie=j*j,Ke=1-Fe*ve*ve,ur=Ke?V(ce*ve)*N(Tr=1/Ke):Tr=0,Tr,Kr=2*ur*ce*j-k,ct=ur*pe-D,dt=Tr*(Fe*Ie+ur*ce*ve*we),pt=Tr*(.5*U*me-ur*2*pe*j),yt=Tr*.25*(me*j-ur*pe*Fe*U),fa=Tr*(we*ve+ur*Ie*ce),Da=pt*yt-fa*dt;if(!Da)break;var Gt=(ct*pt-Kr*fa)/Da,tn=(Kr*yt-ct*dt)/Da;q-=Gt,R-=tn}while((a(Gt)>y||a(tn)>y)&&--G>0);return[q,R]}};function Ye(){return r.geoProjection(De).scale(152.63)}function Ee(k){var D=m(k),q=o(k),R=k>=0?1:-1,G=b(R*k),U=(1+D-q)/2;function j(ve,pe){var ce=o(pe),me=o(ve/=2);return[(1+ce)*m(ve),(R*pe>-i(me,G)-.001?0:-R*10)+U+m(pe)*q-(1+ce)*D*me]}return j.invert=function(ve,pe){var ce=0,me=0,we=50;do{var Fe=o(ce),Ie=m(ce),Ke=o(me),ur=m(me),Tr=1+Ke,Kr=Tr*Ie-ve,ct=U+ur*q-Tr*D*Fe-pe,dt=Tr*Fe/2,pt=-Ie*ur,yt=D*Tr*Ie/2,fa=q*Ke+D*Fe*ur,Da=pt*yt-fa*dt,Gt=(ct*pt-Kr*fa)/Da/2,tn=(Kr*yt-ct*dt)/Da;a(tn)>2&&(tn/=2),ce-=Gt,me-=tn}while((a(Gt)>y||a(tn)>y)&&--we>0);return R*me>-i(o(ce),G)-.001?[ce*2,me]:null},j}function ke(){var k=20*I,D=k>=0?1:-1,q=b(D*k),R=r.geoProjectionMutator(Ee),G=R(k),U=G.stream;return G.parallel=function(j){return arguments.length?(q=b((D=(k=j*I)>=0?1:-1)*k),R(k)):k*z},G.stream=function(j){var ve=G.rotate(),pe=U(j),ce=(G.rotate([0,0]),U(j)),me=G.precision();return G.rotate(ve),pe.sphere=function(){ce.polygonStart(),ce.lineStart();for(var we=D*-180;D*we<180;we+=D*90)ce.point(we,D*90);if(k)for(;D*(we-=3*D*me)>=-180;)ce.point(we,D*-i(o(we*I/2),q)*z);ce.lineEnd(),ce.polygonEnd()},pe},G.scale(218.695).center([0,28.0974])}function je(k,D){var q=b(D/2),R=N(1-q*q),G=1+R*o(k/=2),U=m(k)*R/G,j=q/G,ve=U*U,pe=j*j;return[4/3*U*(3+ve-3*pe),4/3*j*(3+3*ve-pe)]}je.invert=function(k,D){if(k*=3/8,D*=3/8,!k&&a(D)>1)return null;var q=k*k,R=D*D,G=1+q+R,U=N((G-N(G*G-4*D*D))/2),j=H(U)/3,ve=U?ie(a(D/U))/3:ae(a(k))/3,pe=o(j),ce=re(ve),me=ce*ce-pe*pe;return[p(k)*2*i(ee(ve)*pe,.25-me),p(D)*2*i(ce*m(j),.25+me)]};function W(){return r.geoProjection(je).scale(66.1603)}var le=N(8),de=u(1+M);function K(k,D){var q=a(D);return q<A?[k,u(b(A+D/2))]:[k*o(q)*(2*M-1/m(q)),p(D)*(2*M*(q-A)-u(b(q/2)))]}K.invert=function(k,D){if((U=a(D))<de)return[k,2*n(l(D))-_];var q=A,R=25,G,U;do{var j=o(q/2),ve=b(q/2);q-=G=(le*(q-A)-u(ve)-U)/(le-j*j/(2*ve))}while(a(G)>C&&--R>0);return[k/(o(q)*(le-1/m(q))),p(D)*q]};function J(){return r.geoProjection(K).scale(112.314)}function fe(k){var D=2*x/k;function q(R,G){var U=r.geoAzimuthalEquidistantRaw(R,G);if(a(R)>_){var j=i(U[1],U[0]),ve=N(U[0]*U[0]+U[1]*U[1]),pe=D*h((j-_)/D)+_,ce=i(m(j-=pe),2-o(j));j=pe+H(x/ve*m(ce))-ce,U[0]=ve*o(j),U[1]=ve*m(j)}return U}return q.invert=function(R,G){var U=N(R*R+G*G);if(U>_){var j=i(G,R),ve=D*h((j-_)/D)+_,pe=j>ve?-1:1,ce=U*o(ve-j),me=1/b(pe*V((ce-x)/N(x*(x-2*ce)+U*U)));j=ve+2*n((me+pe*N(me*me-3))/3),R=U*o(j),G=U*m(j)}return r.geoAzimuthalEquidistantRaw.invert(R,G)},q}function be(){var k=5,D=r.geoProjectionMutator(fe),q=D(k),R=q.stream,G=.01,U=-o(G*I),j=m(G*I);return q.lobes=function(ve){return arguments.length?D(k=+ve):k},q.stream=function(ve){var pe=q.rotate(),ce=R(ve),me=(q.rotate([0,0]),R(ve));return q.rotate(pe),ce.sphere=function(){me.polygonStart(),me.lineStart();for(var we=0,Fe=360/k,Ie=2*x/k,Ke=90-180/k,ur=_;we<k;++we,Ke-=Fe,ur-=Ie)me.point(i(j*o(ur),U)*z,H(j*m(ur))*z),Ke<-90?(me.point(-90,-180-Ke-G),me.point(-90,-180-Ke+G)):(me.point(90,Ke+G),me.point(90,Ke-G));me.lineEnd(),me.polygonEnd()},ce},q.scale(87.8076).center([0,17.1875]).clipAngle(180-.001)}function Ne(k,D){if(arguments.length<2&&(D=k),D===1)return r.geoAzimuthalEqualAreaRaw;if(D===1/0)return Ze;function q(R,G){var U=r.geoAzimuthalEqualAreaRaw(R/D,G);return U[0]*=k,U}return q.invert=function(R,G){var U=r.geoAzimuthalEqualAreaRaw.invert(R/k,G);return U[0]*=D,U},q}function Ze(k,D){return[k*o(D)/o(D/=2),2*m(D)]}Ze.invert=function(k,D){var q=2*H(D/2);return[k*o(q/2)/o(q),q]};function er(){var k=2,D=r.geoProjectionMutator(Ne),q=D(k);return q.coefficient=function(R){return arguments.length?D(k=+R):k},q.scale(169.529)}function Je(k,D,q){var R=100,G,U,j;q=q===void 0?0:+q,D=+D;do U=k(q),j=k(q+y),U===j&&(j=U+y),q-=G=-1*y*(U-D)/(U-j);while(R-- >0&&a(G)>y);return R<0?NaN:q}function tr(k,D,q){return D===void 0&&(D=40),q===void 0&&(q=C),function(R,G,U,j){var ve,pe,ce;U=U===void 0?0:+U,j=j===void 0?0:+j;for(var me=0;me<D;me++){var we=k(U,j),Fe=we[0]-R,Ie=we[1]-G;if(a(Fe)<q&&a(Ie)<q)break;var Ke=Fe*Fe+Ie*Ie;if(Ke>ve){U-=pe/=2,j-=ce/=2;continue}ve=Ke;var ur=(U>0?-1:1)*q,Tr=(j>0?-1:1)*q,Kr=k(U+ur,j),ct=k(U,j+Tr),dt=(Kr[0]-we[0])/ur,pt=(Kr[1]-we[1])/ur,yt=(ct[0]-we[0])/Tr,fa=(ct[1]-we[1])/Tr,Da=fa*dt-pt*yt,Gt=(a(Da)<.5?.5:1)/Da;if(pe=(Ie*yt-Fe*fa)*Gt,ce=(Fe*pt-Ie*dt)*Gt,U+=pe,j+=ce,a(pe)<q&&a(ce)<q)break}return[U,j]}}function ze(){var k=Ne(1.68,2),D=1.4,q=12;function R(G,U){if(G+U<-D){var j=(G-U+1.6)*(G+U+D)/8;G+=j,U-=.8*j*m(U+x/2)}var ve=k(G,U),pe=(1-o(G*U))/q;return ve[1]<0&&(ve[0]*=1+pe),ve[1]>0&&(ve[1]*=1+pe/1.5*ve[0]*ve[0]),ve}return R.invert=tr(R),R}function lr(){return r.geoProjection(ze()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function dr(k,D){var q=k*m(D),R=30,G;do D-=G=(D+m(D)-q)/(1+o(D));while(a(G)>y&&--R>0);return D/2}function Ar(k,D,q){function R(G,U){return[k*G*o(U=dr(q,U)),D*m(U)]}return R.invert=function(G,U){return U=H(U/D),[G/(k*o(U)),H((2*U+m(2*U))/q)]},R}var Qe=Ar(M/_,M,x);function mr(){return r.geoProjection(Qe).scale(169.529)}var qr=2.00276,Te=1.11072;function Ue(k,D){var q=dr(x,D);return[qr*k/(1/o(D)+Te/o(q)),(D+M*m(q))/qr]}Ue.invert=function(k,D){var q=qr*D,R=D<0?-A:A,G=25,U,j;do j=q-M*m(R),R-=U=(m(2*R)+2*R-x*m(j))/(2*o(2*R)+2+x*o(j)*M*o(R));while(a(U)>y&&--G>0);return j=q-M*m(R),[k*(1/o(j)+Te/o(R))/qr,j]};function _r(){return r.geoProjection(Ue).scale(160.857)}function Pr(k){var D=0,q=r.geoProjectionMutator(k),R=q(D);return R.parallel=function(G){return arguments.length?q(D=G*I):D*z},R}function Nr(k,D){return[k*o(D),D]}Nr.invert=function(k,D){return[k/o(D),D]};function Ce(){return r.geoProjection(Nr).scale(152.63)}function He(k){if(!k)return Nr;var D=1/b(k);function q(R,G){var U=D+k-G,j=U&&R*o(G)/U;return[U*m(j),D-U*o(j)]}return q.invert=function(R,G){var U=N(R*R+(G=D-G)*G),j=D+k-U;return[U/o(j)*i(R,G),j]},q}function cr(){return Pr(He).scale(123.082).center([0,26.1441]).parallel(45)}function Mr(k){function D(q,R){var G=_-R,U=G&&q*k*m(G)/G;return[G*m(U)/k,_-G*o(U)]}return D.invert=function(q,R){var G=q*k,U=_-R,j=N(G*G+U*U),ve=i(G,U);return[(j?j/m(j):1)*ve/k,_-j]},D}function vr(){var k=.5,D=r.geoProjectionMutator(Mr),q=D(k);return q.fraction=function(R){return arguments.length?D(k=+R):k},q.scale(158.837)}var kr=Ar(1,4/x,x);function Er(){return r.geoProjection(kr).scale(152.63)}function jr(k,D,q,R,G,U){var j=o(U),ve;if(a(k)>1||a(U)>1)ve=V(q*G+D*R*j);else{var pe=m(k/2),ce=m(U/2);ve=2*H(N(pe*pe+D*R*ce*ce))}return a(ve)>y?[ve,i(R*m(U),D*G-q*R*j)]:[0,0]}function et(k,D,q){return V((k*k+D*D-q*q)/(2*k*D))}function nr(k){return k-2*x*s((k+x)/(2*x))}function Cr(k,D,q){for(var R=[[k[0],k[1],m(k[1]),o(k[1])],[D[0],D[1],m(D[1]),o(D[1])],[q[0],q[1],m(q[1]),o(q[1])]],G=R[2],U,j=0;j<3;++j,G=U)U=R[j],G.v=jr(U[1]-G[1],G[3],G[2],U[3],U[2],U[0]-G[0]),G.point=[0,0];var ve=et(R[0].v[0],R[2].v[0],R[1].v[0]),pe=et(R[0].v[0],R[1].v[0],R[2].v[0]),ce=x-ve;R[2].point[1]=0,R[0].point[0]=-(R[1].point[0]=R[0].v[0]/2);var me=[R[2].point[0]=R[0].point[0]+R[2].v[0]*o(ve),2*(R[0].point[1]=R[1].point[1]=R[2].v[0]*m(ve))];function we(Fe,Ie){var Ke=m(Ie),ur=o(Ie),Tr=new Array(3),Kr;for(Kr=0;Kr<3;++Kr){var ct=R[Kr];if(Tr[Kr]=jr(Ie-ct[1],ct[3],ct[2],ur,Ke,Fe-ct[0]),!Tr[Kr][0])return ct.point;Tr[Kr][1]=nr(Tr[Kr][1]-ct.v[1])}var dt=me.slice();for(Kr=0;Kr<3;++Kr){var pt=Kr==2?0:Kr+1,yt=et(R[Kr].v[0],Tr[Kr][0],Tr[pt][0]);Tr[Kr][1]<0&&(yt=-yt),Kr?Kr==1?(yt=pe-yt,dt[0]-=Tr[Kr][0]*o(yt),dt[1]-=Tr[Kr][0]*m(yt)):(yt=ce-yt,dt[0]+=Tr[Kr][0]*o(yt),dt[1]+=Tr[Kr][0]*m(yt)):(dt[0]+=Tr[Kr][0]*o(yt),dt[1]-=Tr[Kr][0]*m(yt))}return dt[0]/=3,dt[1]/=3,dt}return we}function ar(k){return k[0]*=I,k[1]*=I,k}function Fr(){return Wr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Wr(k,D,q){var R=r.geoCentroid({type:"MultiPoint",coordinates:[k,D,q]}),G=[-R[0],-R[1]],U=r.geoRotation(G),j=Cr(ar(U(k)),ar(U(D)),ar(U(q)));j.invert=tr(j);var ve=r.geoProjection(j).rotate(G),pe=ve.center;return delete ve.rotate,ve.center=function(ce){return arguments.length?pe(U(ce)):U.invert(pe())},ve.clipAngle(90)}function Br(k,D){var q=N(1-m(D));return[2/E*k*q,E*(1-q)]}Br.invert=function(k,D){var q=(q=D/E-1)*q;return[q>0?k*N(x/q)/2:0,H(1-q)]};function Zr(){return r.geoProjection(Br).scale(95.6464).center([0,30])}function Ae(k){var D=b(k);function q(R,G){return[R,(R?R/m(R):1)*(m(G)*o(R)-D*o(G))]}return q.invert=D?function(R,G){R&&(G*=m(R)/R);var U=o(R);return[R,2*i(N(U*U+D*D-G*G)-U,D-G)]}:function(R,G){return[R,H(R?G*b(R)/R:G)]},q}function Be(){return Pr(Ae).scale(249.828).clipAngle(90)}var or=N(3);function hr(k,D){return[or*k*(2*o(2*D/3)-1)/E,or*E*m(D/3)]}hr.invert=function(k,D){var q=3*H(D/(or*E));return[E*k/(or*(2*o(2*q/3)-1)),q]};function Dt(){return r.geoProjection(hr).scale(156.19)}function Wt(k){var D=o(k);function q(R,G){return[R*D,m(G)/D]}return q.invert=function(R,G){return[R/D,H(G*D)]},q}function ba(){return Pr(Wt).parallel(38.58).scale(195.044)}function _a(k){var D=o(k);function q(R,G){return[R*D,(1+D)*b(G/2)]}return q.invert=function(R,G){return[R/D,n(G/(1+D))*2]},q}function Xt(){return Pr(_a).scale(124.75)}function Ht(k,D){var q=N(8/(3*x));return[q*k*(1-a(D)/x),q*D]}Ht.invert=function(k,D){var q=N(8/(3*x)),R=D/q;return[k/(q*(1-a(R)/x)),R]};function la(){return r.geoProjection(Ht).scale(165.664)}function Pt(k,D){var q=N(4-3*m(a(D)));return[2/N(6*x)*k*q,p(D)*N(2*x/3)*(2-q)]}Pt.invert=function(k,D){var q=2-a(D)/N(2*x/3);return[k*N(6*x)/(2*q),p(D)*H((4-q*q)/3)]};function Ta(){return r.geoProjection(Pt).scale(165.664)}function pa(k,D){var q=N(x*(4+x));return[2/q*k*(1+N(1-4*D*D/(x*x))),4/q*D]}pa.invert=function(k,D){var q=N(x*(4+x))/2;return[k*q/(1+N(1-D*D*(4+x)/(4*x))),D*q/2]};function Xa(){return r.geoProjection(pa).scale(180.739)}function dn(k,D){var q=(2+_)*m(D);D/=2;for(var R=0,G=1/0;R<10&&a(G)>y;R++){var U=o(D);D-=G=(D+m(D)*(U+2)-q)/(2*U*(1+U))}return[2/N(x*(4+x))*k*(1+o(D)),2*N(x/(4+x))*m(D)]}dn.invert=function(k,D){var q=D*N((4+x)/x)/2,R=H(q),G=o(R);return[k/(2/N(x*(4+x))*(1+G)),H((R+q*(G+2))/(2+_))]};function ja(){return r.geoProjection(dn).scale(180.739)}function Fa(k,D){return[k*(1+o(D))/N(2+x),2*D/N(2+x)]}Fa.invert=function(k,D){var q=N(2+x),R=D*q/2;return[q*k/(1+o(R)),R]};function Rr(){return r.geoProjection(Fa).scale(173.044)}function Vt(k,D){for(var q=(1+_)*m(D),R=0,G=1/0;R<10&&a(G)>y;R++)D-=G=(D+m(D)-q)/(1+o(D));return q=N(2+x),[k*(1+o(D))/q,2*D/q]}Vt.invert=function(k,D){var q=1+_,R=N(q/2);return[k*2*R/(1+o(D*=R)),H((D+m(D))/q)]};function Et(){return r.geoProjection(Vt).scale(173.044)}var Zt=3+2*M;function ma(k,D){var q=m(k/=2),R=o(k),G=N(o(D)),U=o(D/=2),j=m(D)/(U+M*R*G),ve=N(2/(1+j*j)),pe=N((M*U+(R+q)*G)/(M*U+(R-q)*G));return[Zt*(ve*(pe-1/pe)-2*u(pe)),Zt*(ve*j*(pe+1/pe)-2*n(j))]}ma.invert=function(k,D){if(!(U=je.invert(k/1.2,D*1.065)))return null;var q=U[0],R=U[1],G=20,U;k/=Zt,D/=Zt;do{var j=q/2,ve=R/2,pe=m(j),ce=o(j),me=m(ve),we=o(ve),Fe=o(R),Ie=N(Fe),Ke=me/(we+M*ce*Ie),ur=Ke*Ke,Tr=N(2/(1+ur)),Kr=M*we+(ce+pe)*Ie,ct=M*we+(ce-pe)*Ie,dt=Kr/ct,pt=N(dt),yt=pt-1/pt,fa=pt+1/pt,Da=Tr*yt-2*u(pt)-k,Gt=Tr*Ke*fa-2*n(Ke)-D,tn=me&&T*Ie*pe*ur/me,zn=(M*ce*we+Ie)/(2*(we+M*ce*Ie)*(we+M*ce*Ie)*Ie),Ii=-.5*Ke*Tr*Tr*Tr,Ll=Ii*tn,Au=Ii*zn,Qn=(Qn=2*we+M*Ie*(ce-pe))*Qn*pt,ei=(M*ce*we*Ie+Fe)/Qn,xo=-(M*pe*me)/(Ie*Qn),ql=yt*Ll-2*ei/pt+Tr*(ei+ei/dt),Pl=yt*Au-2*xo/pt+Tr*(xo+xo/dt),Rl=Ke*fa*Ll-2*tn/(1+ur)+Tr*fa*tn+Tr*Ke*(ei-ei/dt),Ts=Ke*fa*Au-2*zn/(1+ur)+Tr*fa*zn+Tr*Ke*(xo-xo/dt),Vo=Pl*Rl-Ts*ql;if(!Vo)break;var Mu=(Gt*Pl-Da*Ts)/Vo,Ef=(Da*Rl-Gt*ql)/Vo;q-=Mu,R=f(-_,c(_,R-Ef))}while((a(Mu)>y||a(Ef)>y)&&--G>0);return a(a(R)-_)<y?[0,R]:G&&[q,R]};function Ea(){return r.geoProjection(ma).scale(62.5271)}var Rt=o(35*I);function $t(k,D){var q=b(D/2);return[k*Rt*N(1-q*q),(1+Rt)*q]}$t.invert=function(k,D){var q=D/(1+Rt);return[k&&k/(Rt*N(1-q*q)),2*n(q)]};function Na(){return r.geoProjection($t).scale(137.152)}function Jn(k,D){var q=D/2,R=o(q);return[2*k/E*o(D)*R*R,E*b(q)]}Jn.invert=function(k,D){var q=n(D/E),R=o(q),G=2*q;return[k*E/2/(o(G)*R*R),G]};function Pi(){return r.geoProjection(Jn).scale(135.264)}function Kn(k){var D=1-k,q=U(x,0)[0]-U(-x,0)[0],R=U(0,_)[1]-U(0,-_)[1],G=N(2*R/q);function U(pe,ce){var me=o(ce),we=m(ce);return[me/(D+k*me)*pe,D*ce+k*we]}function j(pe,ce){var me=U(pe,ce);return[me[0]*G,me[1]/G]}function ve(pe){return j(0,pe)[1]}return j.invert=function(pe,ce){var me=Je(ve,ce),we=pe/G*(k+D/o(me));return[we,me]},j}function Ba(){var k=.5,D=r.geoProjectionMutator(Kn),q=D(k);return q.alpha=function(R){return arguments.length?D(k=+R):k},q.scale(168.725)}function ml(k){return[k[0]/2,H(b(k[1]/2*I))*z]}function Qa(k){return[k[0]*2,2*n(m(k[1]*I))*z]}function zo(k){k==null&&(k=r.geoOrthographic);var D=k(),q=r.geoEquirectangular().scale(z).precision(0).clipAngle(null).translate([0,0]);function R(U){return D(ml(U))}D.invert&&(R.invert=function(U){return Qa(D.invert(U))}),R.stream=function(U){var j=D.stream(U),ve=q.stream({point:function(pe,ce){j.point(pe/2,H(b(-ce/2*I))*z)},lineStart:function(){j.lineStart()},lineEnd:function(){j.lineEnd()},polygonStart:function(){j.polygonStart()},polygonEnd:function(){j.polygonEnd()}});return ve.sphere=j.sphere,ve};function G(U){R[U]=function(){return arguments.length?(D[U].apply(D,arguments),R):D[U]()}}return R.rotate=function(U){return arguments.length?(q.rotate(U),R):q.rotate()},R.center=function(U){return arguments.length?(D.center(ml(U)),R):Qa(D.center())},G("angle"),G("clipAngle"),G("clipExtent"),G("fitExtent"),G("fitHeight"),G("fitSize"),G("fitWidth"),G("scale"),G("translate"),G("precision"),R.scale(249.5)}function co(k,D){var q=2*x/D,R=k*k;function G(U,j){var ve=r.geoAzimuthalEquidistantRaw(U,j),pe=ve[0],ce=ve[1],me=pe*pe+ce*ce;if(me>R){var we=N(me),Fe=i(ce,pe),Ie=q*h(Fe/q),Ke=Fe-Ie,ur=k*o(Ke),Tr=(k*m(Ke)-Ke*m(ur))/(_-ur),Kr=Ia(Ke,Tr),ct=(x-k)/Yi(Kr,ur,x);pe=we;var dt=50,pt;do pe-=pt=(k+Yi(Kr,ur,pe)*ct-we)/(Kr(pe)*ct);while(a(pt)>y&&--dt>0);ce=Ke*m(pe),pe<_&&(ce-=Tr*(pe-_));var yt=m(Ie),fa=o(Ie);ve[0]=pe*fa-ce*yt,ve[1]=pe*yt+ce*fa}return ve}return G.invert=function(U,j){var ve=U*U+j*j;if(ve>R){var pe=N(ve),ce=i(j,U),me=q*h(ce/q),we=ce-me;U=pe*o(we),j=pe*m(we);for(var Fe=U-_,Ie=m(U),Ke=j/Ie,ur=U<_?1/0:0,Tr=10;;){var Kr=k*m(Ke),ct=k*o(Ke),dt=m(ct),pt=_-ct,yt=(Kr-Ke*dt)/pt,fa=Ia(Ke,yt);if(a(ur)<C||!--Tr)break;Ke-=ur=(Ke*Ie-yt*Fe-j)/(Ie-Fe*2*(pt*(ct+Ke*Kr*o(ct)-dt)-Kr*(Kr-Ke*dt))/(pt*pt))}pe=k+Yi(fa,ct,U)*(x-k)/Yi(fa,ct,x),ce=me+Ke,U=pe*o(ce),j=pe*m(ce)}return r.geoAzimuthalEquidistantRaw.invert(U,j)},G}function Ia(k,D){return function(q){var R=k*o(q);return q<_&&(R-=D),N(1+R*R)}}function Yi(k,D,q){for(var R=50,G=(q-D)/R,U=k(D)+k(q),j=1,ve=D;j<R;++j)U+=2*k(ve+=G);return U*.5*G}function gl(){var k=6,D=30*I,q=o(D),R=m(D),G=r.geoProjectionMutator(co),U=G(D,k),j=U.stream,ve=.01,pe=-o(ve*I),ce=m(ve*I);return U.radius=function(me){return arguments.length?(q=o(D=me*I),R=m(D),G(D,k)):D*z},U.lobes=function(me){return arguments.length?G(D,k=+me):k},U.stream=function(me){var we=U.rotate(),Fe=j(me),Ie=(U.rotate([0,0]),j(me));return U.rotate(we),Fe.sphere=function(){Ie.polygonStart(),Ie.lineStart();for(var Ke=0,ur=2*x/k,Tr=0;Ke<k;++Ke,Tr-=ur)Ie.point(i(ce*o(Tr),pe)*z,H(ce*m(Tr))*z),Ie.point(i(R*o(Tr-ur/2),q)*z,H(R*m(Tr-ur/2))*z);Ie.lineEnd(),Ie.polygonEnd()},Fe},U.rotate([90,-40]).scale(91.7095).clipAngle(180-.001)}function Vi(k,D,q,R,G,U,j,ve){arguments.length<8&&(ve=0);function pe(ce,me){if(!me)return[k*ce/x,0];var we=me*me,Fe=k+we*(D+we*(q+we*R)),Ie=me*(G-1+we*(U-ve+we*j)),Ke=(Fe*Fe+Ie*Ie)/(2*Ie),ur=ce*H(Fe/Ke)/x;return[Ke*m(ur),me*(1+we*ve)+Ke*(1-o(ur))]}return pe.invert=function(ce,me){var we=x*ce/k,Fe=me,Ie,Ke,ur=50;do{var Tr=Fe*Fe,Kr=k+Tr*(D+Tr*(q+Tr*R)),ct=Fe*(G-1+Tr*(U-ve+Tr*j)),dt=Kr*Kr+ct*ct,pt=2*ct,yt=dt/pt,fa=yt*yt,Da=H(Kr/yt)/x,Gt=we*Da,tn=Kr*Kr,zn=(2*D+Tr*(4*q+Tr*6*R))*Fe,Ii=G+Tr*(3*U+Tr*5*j),Ll=2*(Kr*zn+ct*(Ii-1)),Au=2*(Ii-1),Qn=(Ll*pt-dt*Au)/(pt*pt),ei=o(Gt),xo=m(Gt),ql=yt*ei,Pl=yt*xo,Rl=we/x*(1/N(1-tn/fa))*(zn*yt-Kr*Qn)/fa,Ts=Pl-ce,Vo=Fe*(1+Tr*ve)+yt-ql-me,Mu=Qn*xo+ql*Rl,Ef=ql*Da,v=1+Qn-(Qn*ei-Pl*Rl),g=Pl*Da,w=Mu*g-v*Ef;if(!w)break;we-=Ie=(Vo*Mu-Ts*v)/w,Fe-=Ke=(Ts*g-Vo*Ef)/w}while((a(Ie)>y||a(Ke)>y)&&--ur>0);return[we,Fe]},pe}var Ri=Vi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function ls(){return r.geoProjection(Ri).scale(149.995)}var ss=Vi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ks(){return r.geoProjection(ss).scale(153.93)}var us=Vi(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Qs(){return r.geoProjection(us).scale(130.945)}function ot(k,D){var q=k*k,R=D*D;return[k*(1-.162388*R)*(.87-952426e-9*q*q),D*(1+R/12)]}ot.invert=function(k,D){var q=k,R=D,G=50,U;do{var j=R*R;R-=U=(R*(1+j/12)-D)/(1+j/4)}while(a(U)>y&&--G>0);G=50,k/=1-.162388*j;do{var ve=(ve=q*q)*ve;q-=U=(q*(.87-952426e-9*ve)-k)/(.87-.00476213*ve)}while(a(U)>y&&--G>0);return[q,R]};function st(){return r.geoProjection(ot).scale(131.747)}var jt=Vi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Or(){return r.geoProjection(jt).scale(131.087)}function Mn(k){var D=k(_,0)[0]-k(-_,0)[0];function q(R,G){var U=R>0?-.5:.5,j=k(R+U*x,G);return j[0]-=U*D,j}return k.invert&&(q.invert=function(R,G){var U=R>0?-.5:.5,j=k.invert(R+U*D,G),ve=j[0]-U*x;return ve<-x?ve+=2*x:ve>x&&(ve-=2*x),j[0]=ve,j}),q}function sa(k,D){var q=p(k),R=p(D),G=o(D),U=o(k)*G,j=m(k)*G,ve=m(R*D);k=a(i(j,ve)),D=H(U),a(k-_)>y&&(k%=_);var pe=Wa(k>x/4?_-k:k,D);return k>x/4&&(ve=pe[0],pe[0]=-pe[1],pe[1]=-ve),pe[0]*=q,pe[1]*=-R,pe}sa.invert=function(k,D){a(k)>1&&(k=p(k)*2-k),a(D)>1&&(D=p(D)*2-D);var q=p(k),R=p(D),G=-q*k,U=-R*D,j=U/G<1,ve=en(j?U:G,j?G:U),pe=ve[0],ce=ve[1],me=o(ce);return j&&(pe=-_-pe),[q*(i(m(pe)*me,-m(ce))+x),R*H(o(pe)*me)]};function Wa(k,D){if(D===_)return[0,0];var q=m(D),R=q*q,G=R*R,U=1+G,j=1+3*G,ve=1-G,pe=H(1/N(U)),ce=ve+R*U*pe,me=(1-q)/ce,we=N(me),Fe=me*U,Ie=N(Fe),Ke=we*ve,ur,Tr;if(k===0)return[0,-(Ke+R*Ie)];var Kr=o(D),ct=1/Kr,dt=2*q*Kr,pt=(-3*R+pe*j)*dt,yt=(-ce*Kr-(1-q)*pt)/(ce*ce),fa=.5*yt/we,Da=ve*fa-2*R*we*dt,Gt=R*U*yt+me*j*dt,tn=-ct*dt,zn=-ct*Gt,Ii=-2*ct*Da,Ll=4*k/x,Au;if(k>.222*x||D<x/4&&k>.175*x){if(ur=(Ke+R*N(Fe*(1+G)-Ke*Ke))/(1+G),k>x/4)return[ur,ur];var Qn=ur,ei=.5*ur;ur=.5*(ei+Qn),Tr=50;do{var xo=N(Fe-ur*ur),ql=ur*(Ii+tn*xo)+zn*H(ur/Ie)-Ll;if(!ql)break;ql<0?ei=ur:Qn=ur,ur=.5*(ei+Qn)}while(a(Qn-ei)>y&&--Tr>0)}else{ur=y,Tr=25;do{var Pl=ur*ur,Rl=N(Fe-Pl),Ts=Ii+tn*Rl,Vo=ur*Ts+zn*H(ur/Ie)-Ll,Mu=Ts+(zn-tn*Pl)/Rl;ur-=Au=Rl?Vo/Mu:0}while(a(Au)>y&&--Tr>0)}return[ur,-Ke-R*N(Fe-ur*ur)]}function en(k,D){for(var q=0,R=1,G=.5,U=50;;){var j=G*G,ve=N(G),pe=H(1/N(1+j)),ce=1-j+G*(1+j)*pe,me=(1-ve)/ce,we=N(me),Fe=me*(1+j),Ie=we*(1-j),Ke=Fe-k*k,ur=N(Ke),Tr=D+Ie+G*ur;if(a(R-q)<C||--U===0||Tr===0)break;Tr>0?q=G:R=G,G=.5*(q+R)}if(!U)return null;var Kr=H(ve),ct=o(Kr),dt=1/ct,pt=2*ve*ct,yt=(-3*G+pe*(1+3*j))*pt,fa=(-ce*ct-(1-ve)*yt)/(ce*ce),Da=.5*fa/we,Gt=(1-j)*Da-2*G*we*pt,tn=-2*dt*Gt,zn=-dt*pt,Ii=-dt*(G*(1+j)*fa+me*(1+3*j)*pt);return[x/4*(k*(tn+zn*ur)+Ii*H(k/N(Fe))),Kr]}function Vn(){return r.geoProjection(Mn(sa)).scale(239.75)}function yl(k,D,q){var R,G,U;return k?(R=fs(k,q),D?(G=fs(D,1-q),U=G[1]*G[1]+q*R[0]*R[0]*G[0]*G[0],[[R[0]*G[2]/U,R[1]*R[2]*G[0]*G[1]/U],[R[1]*G[1]/U,-R[0]*R[2]*G[0]*G[2]/U],[R[2]*G[1]*G[2]/U,-q*R[0]*R[1]*G[0]/U]]):[[R[0],0],[R[1],0],[R[2],0]]):(G=fs(D,1-q),[[0,G[0]/G[1]],[1/G[1],0],[G[2]/G[1],0]])}function fs(k,D){var q,R,G,U,j;if(D<y)return U=m(k),R=o(k),q=D*(k-U*R)/4,[U-q*R,R+q*U,1-D*U*U/2,k-q];if(D>=1-y)return q=(1-D)/4,R=re(k),U=Q(k),G=1/R,j=R*ee(k),[U+q*(j-k)/(R*R),G-q*U*G*(j-k),G+q*U*G*(j+k),2*n(l(k))-_+q*(j-k)/R];var ve=[1,0,0,0,0,0,0,0,0],pe=[N(D),0,0,0,0,0,0,0,0],ce=0;for(R=N(1-D),j=1;a(pe[ce]/ve[ce])>y&&ce<8;)q=ve[ce++],pe[ce]=(q-R)/2,ve[ce]=(q+R)/2,R=N(q*R),j*=2;G=j*ve[ce]*k;do U=pe[ce]*m(R=G)/ve[ce],G=(H(U)+G)/2;while(--ce);return[m(G),U=o(G),U/o(G-R),G]}function cs(k,D,q){var R=a(k),G=a(D),U=ee(G);if(R){var j=1/m(R),ve=1/(b(R)*b(R)),pe=-(ve+q*(U*U*j*j)-1+q),ce=(q-1)*ve,me=(-pe+N(pe*pe-4*ce))/2;return[Xi(n(1/N(me)),q)*p(k),Xi(n(N((me/ve-1)/q)),1-q)*p(D)]}return[0,Xi(n(U),1-q)*p(D)]}function Xi(k,D){if(!D)return k;if(D===1)return u(b(k/2+A));for(var q=1,R=N(1-D),G=N(D),U=0;a(G)>y;U++){if(k%x){var j=n(R*b(k)/q);j<0&&(j+=x),k+=j+~~(k/x)*x}else k+=k;G=(q+R)/2,R=N(q*R),G=((q=G)-R)/2}return k/(d(2,U)*q)}function No(k,D){var q=(M-1)/(M+1),R=N(1-q*q),G=Xi(_,R*R),U=-1,j=u(b(x/4+a(D)/2)),ve=l(U*j)/N(q),pe=bl(ve*o(U*k),ve*m(U*k)),ce=cs(pe[0],pe[1],R*R);return[-ce[1],(D>=0?1:-1)*(.5*G-ce[0])]}function bl(k,D){var q=k*k,R=D+1,G=1-q-D*D;return[.5*((k>=0?_:-_)-i(G,2*k)),-.25*u(G*G+4*q)+.5*u(R*R+q)]}function vs(k,D){var q=D[0]*D[0]+D[1]*D[1];return[(k[0]*D[0]+k[1]*D[1])/q,(k[1]*D[0]-k[0]*D[1])/q]}No.invert=function(k,D){var q=(M-1)/(M+1),R=N(1-q*q),G=Xi(_,R*R),U=-1,j=yl(.5*G-D,-k,R*R),ve=vs(j[0],j[1]),pe=i(ve[1],ve[0])/U;return[pe,2*n(l(.5/U*u(q*ve[0]*ve[0]+q*ve[1]*ve[1])))-_]};function eu(){return r.geoProjection(Mn(No)).scale(151.496)}function sf(k){var D=m(k),q=o(k),R=Gc(k);R.invert=Gc(-k);function G(U,j){var ve=R(U,j);U=ve[0],j=ve[1];var pe=m(j),ce=o(j),me=o(U),we=V(D*pe+q*ce*me),Fe=m(we),Ie=a(Fe)>y?we/Fe:1;return[Ie*q*m(U),(a(U)>_?Ie:-Ie)*(D*ce-q*pe*me)]}return G.invert=function(U,j){var ve=N(U*U+j*j),pe=-m(ve),ce=o(ve),me=ve*ce,we=-j*pe,Fe=ve*D,Ie=N(me*me+we*we-Fe*Fe),Ke=i(me*Fe+we*Ie,we*Fe-me*Ie),ur=(ve>_?-1:1)*i(U*pe,ve*o(Ke)*ce+j*m(Ke)*pe);return R.invert(ur,Ke)},G}function Gc(k){var D=m(k),q=o(k);return function(R,G){var U=o(G),j=o(R)*U,ve=m(R)*U,pe=m(G);return[i(ve,j*q-pe*D),H(pe*q+j*D)]}}function ru(){var k=0,D=r.geoProjectionMutator(sf),q=D(k),R=q.rotate,G=q.stream,U=r.geoCircle();return q.parallel=function(j){if(!arguments.length)return k*z;var ve=q.rotate();return D(k=j*I).rotate(ve)},q.rotate=function(j){return arguments.length?(R.call(q,[j[0],j[1]-k*z]),U.center([-j[0],-j[1]]),q):(j=R.call(q),j[1]+=k*z,j)},q.stream=function(j){return j=G(j),j.sphere=function(){j.polygonStart();var ve=.01,pe=U.radius(90-ve)().coordinates[0],ce=pe.length-1,me=-1,we;for(j.lineStart();++me<ce;)j.point((we=pe[me])[0],we[1]);for(j.lineEnd(),pe=U.radius(90+ve)().coordinates[0],ce=pe.length-1,j.lineStart();--me>=0;)j.point((we=pe[me])[0],we[1]);j.lineEnd(),j.polygonEnd()},j},q.scale(79.4187).parallel(45).clipAngle(180-.001)}var tu=3,au=H(1-1/tu)*z,_l=Wt(0);function Bo(k){var D=au*I,q=Br(x,D)[0]-Br(-x,D)[0],R=_l(0,D)[1],G=Br(0,D)[1],U=E-G,j=P/k,ve=4/P,pe=R+U*U*4/P;function ce(me,we){var Fe,Ie=a(we);if(Ie>D){var Ke=c(k-1,f(0,s((me+x)/j)));me+=x*(k-1)/k-Ke*j,Fe=Br(me,Ie),Fe[0]=Fe[0]*P/q-P*(k-1)/(2*k)+Ke*P/k,Fe[1]=R+(Fe[1]-G)*4*U/P,we<0&&(Fe[1]=-Fe[1])}else Fe=_l(me,we);return Fe[0]*=ve,Fe[1]/=pe,Fe}return ce.invert=function(me,we){me/=ve,we*=pe;var Fe=a(we);if(Fe>R){var Ie=c(k-1,f(0,s((me+x)/j)));me=(me+x*(k-1)/k-Ie*j)*q/P;var Ke=Br.invert(me,.25*(Fe-R)*P/U+G);return Ke[0]-=x*(k-1)/k-Ie*j,we<0&&(Ke[1]=-Ke[1]),Ke}return _l.invert(me,we)},ce}function Io(k,D){return[k,D&1?90-y:au]}function vo(k,D){return[k,D&1?-90+y:-au]}function uf(k){return[k[0]*(1-y),k[1]]}function Zu(k){var D=[].concat(t.range(-180,180+k/2,k).map(Io),t.range(180,-180-k/2,-k).map(vo));return{type:"Polygon",coordinates:[k===180?D.map(uf):D]}}function ds(){var k=4,D=r.geoProjectionMutator(Bo),q=D(k),R=q.stream;return q.lobes=function(G){return arguments.length?D(k=+G):k},q.stream=function(G){var U=q.rotate(),j=R(G),ve=(q.rotate([0,0]),R(G));return q.rotate(U),j.sphere=function(){r.geoStream(Zu(180/k),ve)},j},q.scale(239.75)}function ff(k){var D=1+k,q=m(1/D),R=H(q),G=2*N(x/(U=x+4*R*D)),U,j=.5*G*(D+N(k*(2+k))),ve=k*k,pe=D*D;function ce(me,we){var Fe=1-m(we),Ie,Ke;if(Fe&&Fe<2){var ur=_-we,Tr=25,Kr;do{var ct=m(ur),dt=o(ur),pt=R+i(ct,D-dt),yt=1+pe-2*D*dt;ur-=Kr=(ur-ve*R-D*ct+yt*pt-.5*Fe*U)/(2*D*ct*pt)}while(a(Kr)>C&&--Tr>0);Ie=G*N(yt),Ke=me*pt/x}else Ie=G*(k+Fe),Ke=me*R/x;return[Ie*m(Ke),j-Ie*o(Ke)]}return ce.invert=function(me,we){var Fe=me*me+(we-=j)*we,Ie=(1+pe-Fe/(G*G))/(2*D),Ke=V(Ie),ur=m(Ke),Tr=R+i(ur,D-Ie);return[H(me/N(Fe))*x/Tr,H(1-2*(Ke-ve*R-D*ur+(1+pe-2*D*Ie)*Tr)/U)]},ce}function Yc(){var k=1,D=r.geoProjectionMutator(ff),q=D(k);return q.ratio=function(R){return arguments.length?D(k=+R):k},q.scale(167.774).center([0,18.67])}var nu=.7109889596207567,ho=.0528035274542;function iu(k,D){return D>-nu?(k=Qe(k,D),k[1]+=ho,k):Nr(k,D)}iu.invert=function(k,D){return D>-nu?Qe.invert(k,D-ho):Nr.invert(k,D)};function Vc(){return r.geoProjection(iu).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ou(k,D){return a(D)>nu?(k=Qe(k,D),k[1]-=D>0?ho:-ho,k):Nr(k,D)}ou.invert=function(k,D){return a(D)>nu?Qe.invert(k,D+(D>0?ho:-ho)):Nr.invert(k,D)};function N2(){return r.geoProjection(ou).scale(152.63)}function xl(k,D,q,R){var G=N(4*x/(2*q+(1+k-D/2)*m(2*q)+(k+D)/2*m(4*q)+D/2*m(6*q))),U=N(R*m(q)*N((1+k*o(2*q)+D*o(4*q))/(1+k+D))),j=q*pe(1);function ve(we){return N(1+k*o(2*we)+D*o(4*we))}function pe(we){var Fe=we*q;return(2*Fe+(1+k-D/2)*m(2*Fe)+(k+D)/2*m(4*Fe)+D/2*m(6*Fe))/q}function ce(we){return ve(we)*m(we)}var me=function(we,Fe){var Ie=q*Je(pe,j*m(Fe)/q,Fe/x);isNaN(Ie)&&(Ie=q*p(Fe));var Ke=G*ve(Ie);return[Ke*U*we/x*o(Ie),Ke/U*m(Ie)]};return me.invert=function(we,Fe){var Ie=Je(ce,Fe*U/G);return[we*x/(o(Ie)*G*U*ve(Ie)),H(q*pe(Ie/q)/j)]},q===0&&(G=N(R/x),me=function(we,Fe){return[we*G,m(Fe)/G]},me.invert=function(we,Fe){return[we/G,H(Fe*G)]}),me}function cf(){var k=1,D=0,q=45*I,R=2,G=r.geoProjectionMutator(xl),U=G(k,D,q,R);return U.a=function(j){return arguments.length?G(k=+j,D,q,R):k},U.b=function(j){return arguments.length?G(k,D=+j,q,R):D},U.psiMax=function(j){return arguments.length?G(k,D,q=+j*I,R):q*z},U.ratio=function(j){return arguments.length?G(k,D,q,R=+j):R},U.scale(180.739)}function hs(k,D,q,R,G,U,j,ve,pe,ce,me){if(me.nanEncountered)return NaN;var we,Fe,Ie,Ke,ur,Tr,Kr,ct,dt,pt;if(we=q-D,Fe=k(D+we*.25),Ie=k(q-we*.25),isNaN(Fe)){me.nanEncountered=!0;return}if(isNaN(Ie)){me.nanEncountered=!0;return}return Ke=we*(R+4*Fe+G)/12,ur=we*(G+4*Ie+U)/12,Tr=Ke+ur,pt=(Tr-j)/15,ce>pe?(me.maxDepthCount++,Tr+pt):Math.abs(pt)<ve?Tr+pt:(Kr=D+we*.5,ct=hs(k,D,Kr,R,Fe,G,Ke,ve*.5,pe,ce+1,me),isNaN(ct)?(me.nanEncountered=!0,NaN):(dt=hs(k,Kr,q,G,Ie,U,ur,ve*.5,pe,ce+1,me),isNaN(dt)?(me.nanEncountered=!0,NaN):ct+dt))}function Xc(k,D,q,R,G){var U={maxDepthCount:0,nanEncountered:!1};R===void 0&&(R=1e-8),G===void 0&&(G=20);var j=k(D),ve=k(.5*(D+q)),pe=k(q),ce=(j+4*ve+pe)*(q-D)/6,me=hs(k,D,q,j,ve,pe,ce,R,G,1,U);return me}function Ho(k,D,q){function R(Ie){return k+(1-k)*d(1-d(Ie,D),1/D)}function G(Ie){return Xc(R,0,Ie,1e-4)}for(var U=1/G(1),j=1e3,ve=(1+1e-8)*U,pe=[],ce=0;ce<=j;ce++)pe.push(G(ce/j)*ve);function me(Ie){var Ke=0,ur=j,Tr=j>>1;do pe[Tr]>Ie?ur=Tr:Ke=Tr,Tr=Ke+ur>>1;while(Tr>Ke);var Kr=pe[Tr+1]-pe[Tr];return Kr&&(Kr=(Ie-pe[Tr+1])/Kr),(Tr+1+Kr)/j}var we=2*me(1)/x*U/q,Fe=function(Ie,Ke){var ur=me(a(m(Ke))),Tr=R(ur)*Ie;return ur/=we,[Tr,Ke>=0?ur:-ur]};return Fe.invert=function(Ie,Ke){var ur;return Ke*=we,a(Ke)<1&&(ur=p(Ke)*H(G(a(Ke))*U)),[Ie/R(a(Ke)),ur]},Fe}function Oo(){var k=0,D=2.5,q=1.183136,R=r.geoProjectionMutator(Ho),G=R(k,D,q);return G.alpha=function(U){return arguments.length?R(k=+U,D,q):k},G.k=function(U){return arguments.length?R(k,D=+U,q):D},G.gamma=function(U){return arguments.length?R(k,D,q=+U):q},G.scale(152.63)}function vf(k,D){return a(k[0]-D[0])<y&&a(k[1]-D[1])<y}function ji(k,D){for(var q=-1,R=k.length,G=k[0],U,j,ve,pe=[];++q<R;){U=k[q],j=(U[0]-G[0])/D,ve=(U[1]-G[1])/D;for(var ce=0;ce<D;++ce)pe.push([G[0]+ce*j,G[1]+ce*ve]);G=U}return pe.push(U),pe}function B2(k){var D=[],q,R,G,U,j,ve,pe,ce=k[0].length;for(pe=0;pe<ce;++pe)q=k[0][pe],R=q[0][0],G=q[0][1],U=q[1][1],j=q[2][0],ve=q[2][1],D.push(ji([[R+y,G+y],[R+y,U-y],[j-y,U-y],[j-y,ve+y]],30));for(pe=k[1].length-1;pe>=0;--pe)q=k[1][pe],R=q[0][0],G=q[0][1],U=q[1][1],j=q[2][0],ve=q[2][1],D.push(ji([[j-y,ve-y],[j-y,U+y],[R+y,U+y],[R+y,G-y]],30));return{type:"Polygon",coordinates:[t.merge(D)]}}function po(k,D,q){var R,G;function U(pe,ce){for(var me=ce<0?-1:1,we=D[+(ce<0)],Fe=0,Ie=we.length-1;Fe<Ie&&pe>we[Fe][2][0];++Fe);var Ke=k(pe-we[Fe][1][0],ce);return Ke[0]+=k(we[Fe][1][0],me*ce>me*we[Fe][0][1]?we[Fe][0][1]:ce)[0],Ke}q?U.invert=q(U):k.invert&&(U.invert=function(pe,ce){for(var me=G[+(ce<0)],we=D[+(ce<0)],Fe=0,Ie=me.length;Fe<Ie;++Fe){var Ke=me[Fe];if(Ke[0][0]<=pe&&pe<Ke[1][0]&&Ke[0][1]<=ce&&ce<Ke[1][1]){var ur=k.invert(pe-k(we[Fe][1][0],0)[0],ce);return ur[0]+=we[Fe][1][0],vf(U(ur[0],ur[1]),[pe,ce])?ur:null}}});var j=r.geoProjection(U),ve=j.stream;return j.stream=function(pe){var ce=j.rotate(),me=ve(pe),we=(j.rotate([0,0]),ve(pe));return j.rotate(ce),me.sphere=function(){r.geoStream(R,we)},me},j.lobes=function(pe){return arguments.length?(R=B2(pe),D=pe.map(function(ce){return ce.map(function(me){return[[me[0][0]*I,me[0][1]*I],[me[1][0]*I,me[1][1]*I],[me[2][0]*I,me[2][1]*I]]})}),G=D.map(function(ce){return ce.map(function(me){var we=k(me[0][0],me[0][1])[0],Fe=k(me[2][0],me[2][1])[0],Ie=k(me[1][0],me[0][1])[1],Ke=k(me[1][0],me[1][1])[1],ur;return Ie>Ke&&(ur=Ie,Ie=Ke,Ke=ur),[[we,Ie],[Fe,Ke]]})}),j):D.map(function(ce){return ce.map(function(me){return[[me[0][0]*z,me[0][1]*z],[me[1][0]*z,me[1][1]*z],[me[2][0]*z,me[2][1]*z]]})})},D!=null&&j.lobes(D),j}var ps=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function I2(){return po(Ue,ps).scale(160.857)}var mo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function wl(){return po(ou,mo).scale(152.63)}var Al=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Ml(){return po(Qe,Al).scale(169.529)}var Uo=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function lu(){return po(Qe,Uo).scale(169.529).rotate([20,0])}var $u=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function su(){return po(iu,$u,tr).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var uu=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Tl(){return po(Nr,uu).scale(152.63).rotate([-20,0])}function ms(k,D){return[3/P*k*N(x*x/3-D*D),D]}ms.invert=function(k,D){return[P/3*k/N(x*x/3-D*D),D]};function gs(){return r.geoProjection(ms).scale(158.837)}function Ju(k){function D(q,R){if(a(a(R)-_)<y)return[0,R<0?-2:2];var G=m(R),U=d((1+G)/(1-G),k/2),j=.5*(U+1/U)+o(q*=k);return[2*m(q)/j,(U-1/U)/j]}return D.invert=function(q,R){var G=a(R);if(a(G-2)<y)return q?null:[0,p(R)*_];if(G>2)return null;q/=2,R/=2;var U=q*q,j=R*R,ve=2*R/(1+U+j);return ve=d((1+ve)/(1-ve),1/k),[i(2*q,1-U-j)/k,H((ve-1)/(ve+1))]},D}function Ku(){var k=.5,D=r.geoProjectionMutator(Ju),q=D(k);return q.spacing=function(R){return arguments.length?D(k=+R):k},q.scale(124.75)}var zi=x/M;function Qu(k,D){return[k*(1+N(o(D)))/2,D/(o(D/2)*o(k/6))]}Qu.invert=function(k,D){var q=a(k),R=a(D),G=y,U=_;R<zi?U*=R/zi:G+=6*V(zi/R);for(var j=0;j<25;j++){var ve=m(U),pe=N(o(U)),ce=m(U/2),me=o(U/2),we=m(G/6),Fe=o(G/6),Ie=.5*G*(1+pe)-q,Ke=U/(me*Fe)-R,ur=pe?-.25*G*ve/pe:0,Tr=.5*(1+pe),Kr=(1+.5*U*ce/me)/(me*Fe),ct=U/me*(we/6)/(Fe*Fe),dt=ur*ct-Kr*Tr,pt=(Ie*ct-Ke*Tr)/dt,yt=(Ke*ur-Ie*Kr)/dt;if(U-=pt,G-=yt,a(pt)<y&&a(yt)<y)break}return[k<0?-G:G,D<0?-U:U]};function e0(){return r.geoProjection(Qu).scale(97.2672)}function oi(k,D){var q=k*k,R=D*D;return[k*(.975534+R*(-.119161+q*-.0143059+R*-.0547009)),D*(1.00384+q*(.0802894+R*-.02855+q*199025e-9)+R*(.0998909+R*-.0491032))]}oi.invert=function(k,D){var q=p(k)*x,R=D/2,G=50;do{var U=q*q,j=R*R,ve=q*R,pe=q*(.975534+j*(-.119161+U*-.0143059+j*-.0547009))-k,ce=R*(1.00384+U*(.0802894+j*-.02855+U*199025e-9)+j*(.0998909+j*-.0491032))-D,me=.975534-j*(.119161+3*U*.0143059+j*.0547009),we=-ve*(2*.119161+4*.0547009*j+2*.0143059*U),Fe=ve*(2*.0802894+4*199025e-9*U+2*-.02855*j),Ie=1.00384+U*(.0802894+199025e-9*U)+j*(3*(.0998909-.02855*U)-5*.0491032*j),Ke=we*Fe-Ie*me,ur=(ce*we-pe*Ie)/Ke,Tr=(pe*Fe-ce*me)/Ke;q-=ur,R-=Tr}while((a(ur)>y||a(Tr)>y)&&--G>0);return G&&[q,R]};function Tn(){return r.geoProjection(oi).scale(139.98)}function Xn(k,D){return[m(k)/o(D),b(D)*o(k)]}Xn.invert=function(k,D){var q=k*k,R=D*D,G=R+1,U=q+G,j=k?T*N((U-N(U*U-4*q))/q):1/N(G);return[H(k*j),p(D)*V(j)]};function go(){return r.geoProjection(Xn).scale(144.049).clipAngle(90-.001)}function fu(k){var D=o(k),q=b(A+k/2);function R(G,U){var j=U-k,ve=a(j)<y?G*D:a(ve=A+U/2)<y||a(a(ve)-_)<y?0:G*j/u(b(ve)/q);return[ve,j]}return R.invert=function(G,U){var j,ve=U+k;return[a(U)<y?G/D:a(j=A+ve/2)<y||a(a(j)-_)<y?0:G*u(b(j)/q)/U,ve]},R}function kl(){return Pr(fu).parallel(40).scale(158.837)}function ys(k,D){return[k,1.25*u(b(A+.4*D))]}ys.invert=function(k,D){return[k,2.5*n(l(.8*D))-.625*x]};function df(){return r.geoProjection(ys).scale(108.318)}function jc(k){var D=k.length-1;function q(R,G){for(var U=o(G),j=2/(1+U*o(R)),ve=j*U*m(R),pe=j*m(G),ce=D,me=k[ce],we=me[0],Fe=me[1],Ie;--ce>=0;)me=k[ce],we=me[0]+ve*(Ie=we)-pe*Fe,Fe=me[1]+ve*Fe+pe*Ie;return we=ve*(Ie=we)-pe*Fe,Fe=ve*Fe+pe*Ie,[we,Fe]}return q.invert=function(R,G){var U=20,j=R,ve=G;do{for(var pe=D,ce=k[pe],me=ce[0],we=ce[1],Fe=0,Ie=0,Ke;--pe>=0;)ce=k[pe],Fe=me+j*(Ke=Fe)-ve*Ie,Ie=we+j*Ie+ve*Ke,me=ce[0]+j*(Ke=me)-ve*we,we=ce[1]+j*we+ve*Ke;Fe=me+j*(Ke=Fe)-ve*Ie,Ie=we+j*Ie+ve*Ke,me=j*(Ke=me)-ve*we-R,we=j*we+ve*Ke-G;var ur=Fe*Fe+Ie*Ie,Tr,Kr;j-=Tr=(me*Fe+we*Ie)/ur,ve-=Kr=(we*Fe-me*Ie)/ur}while(a(Tr)+a(Kr)>y*y&&--U>0);if(U){var ct=N(j*j+ve*ve),dt=2*n(ct*.5),pt=m(dt);return[i(j*pt,ct*o(dt)),ct?H(ve*pt/ct):0]}},q}var H2=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],O2=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],hf=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],pf=[[.9245,0],[0,0],[.01943,0]],mf=[[.721316,0],[0,0],[-.00881625,-.00617325]];function gf(){return Wi(H2,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Wc(){return Wi(O2,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Zc(){return Wi(hf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function cu(){return Wi(pf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function vu(){return Wi(mf,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Wi(k,D){var q=r.geoProjection(jc(k)).rotate(D).clipAngle(90),R=r.geoRotation(D),G=q.center;return delete q.rotate,q.center=function(U){return arguments.length?G(R(U)):R.invert(G())},q}var r0=N(6),du=N(7);function t0(k,D){var q=H(7*m(D)/(3*r0));return[r0*k*(2*o(2*q/3)-1)/du,9*m(q/3)/du]}t0.invert=function(k,D){var q=3*H(D*du/9);return[k*du/(r0*(2*o(2*q/3)-1)),H(m(q)*3*r0/7)]};function $c(){return r.geoProjection(t0).scale(164.859)}function yf(k,D){for(var q=(1+T)*m(D),R=D,G=0,U;G<25&&(R-=U=(m(R/2)+m(R)-q)/(.5*o(R/2)+o(R)),!(a(U)<y));G++);return[k*(1+2*o(R)/o(R/2))/(3*M),2*N(3)*m(R/2)/N(2+M)]}yf.invert=function(k,D){var q=D*N(2+M)/(2*N(3)),R=2*H(q);return[3*M*k/(1+2*o(R)/o(R/2)),H((q+m(R))/(1+T))]};function U2(){return r.geoProjection(yf).scale(188.209)}function Go(k,D){for(var q=N(6/(4+x)),R=(1+x/4)*m(D),G=D/2,U=0,j;U<25&&(G-=j=(G/2+m(G)-R)/(.5+o(G)),!(a(j)<y));U++);return[q*(.5+o(G))*k/1.5,q*G]}Go.invert=function(k,D){var q=N(6/(4+x)),R=D/q;return a(a(R)-_)<y&&(R=R<0?-_:_),[1.5*k/(q*(.5+o(R))),H((R/2+m(R))/(1+x/4))]};function a0(){return r.geoProjection(Go).scale(166.518)}function bs(k,D){var q=D*D,R=q*q,G=q*R;return[k*(.84719-.13063*q+G*G*(-.04515+.05494*q-.02326*R+.00331*G)),D*(1.01183+R*R*(-.02625+.01926*q-.00396*R))]}bs.invert=function(k,D){var q=D,R=25,G,U,j,ve;do U=q*q,j=U*U,q-=G=(q*(1.01183+j*j*(-.02625+.01926*U-.00396*j))-D)/(1.01183+j*j*(9*-.02625+11*.01926*U+13*-.00396*j));while(a(G)>C&&--R>0);return U=q*q,j=U*U,ve=U*j,[k/(.84719-.13063*U+ve*ve*(-.04515+.05494*U-.02326*j+.00331*ve)),q]};function hu(){return r.geoProjection(bs).scale(175.295)}function pu(k,D){return[k*(1+o(D))/2,2*(D-b(D/2))]}pu.invert=function(k,D){for(var q=D/2,R=0,G=1/0;R<10&&a(G)>y;++R){var U=o(D/2);D-=G=(D-b(D/2)-q)/(1-.5/(U*U))}return[2*k/(1+o(D)),D]};function bf(){return r.geoProjection(pu).scale(152.63)}var Yo=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Jc(){return po(Ne(1/0),Yo).rotate([20,0]).scale(152.63)}function _f(k,D){var q=m(D),R=o(D),G=p(k);if(k===0||a(D)===_)return[0,D];if(D===0)return[k,0];if(a(k)===_)return[k*R,_*q];var U=x/(2*k)-2*k/x,j=2*D/x,ve=(1-j*j)/(q-j),pe=U*U,ce=ve*ve,me=1+pe/ce,we=1+ce/pe,Fe=(U*q/ve-U/2)/me,Ie=(ce*q/pe+ve/2)/we,Ke=Fe*Fe+R*R/me,ur=Ie*Ie-(ce*q*q/pe+ve*q-1)/we;return[_*(Fe+N(Ke)*G),_*(Ie+N(ur<0?0:ur)*p(-D*U)*G)]}_f.invert=function(k,D){k/=_,D/=_;var q=k*k,R=D*D,G=q+R,U=x*x;return[k?(G-1+N((1-G)*(1-G)+4*q))/(2*k)*_:0,Je(function(j){return G*(x*m(j)-2*j)*x+4*j*j*(D-m(j))+2*x*j-U*D},0)]};function Kc(){return r.geoProjection(_f).scale(127.267)}var xf=1.0148,n0=.23185,wf=-.14499,Af=.02406,G2=xf,Mf=5*n0,Zi=7*wf,Tf=9*Af,_s=1.790857183;function kf(k,D){var q=D*D;return[k,D*(xf+q*q*(n0+q*(wf+Af*q)))]}kf.invert=function(k,D){D>_s?D=_s:D<-_s&&(D=-_s);var q=D,R;do{var G=q*q;q-=R=(q*(xf+G*G*(n0+G*(wf+Af*G)))-D)/(G2+G*G*(Mf+G*(Zi+Tf*G)))}while(a(R)>y);return[k,q]};function Qc(){return r.geoProjection(kf).scale(139.319)}function Cl(k,D){if(a(D)<y)return[k,0];var q=b(D),R=k*m(D);return[m(R)/q,D+(1-o(R))/q]}Cl.invert=function(k,D){if(a(D)<y)return[k,0];var q=k*k+D*D,R=D*.5,G=10,U;do{var j=b(R),ve=1/o(R),pe=q-2*D*R+R*R;R-=U=(j*pe+2*(R-D))/(2+pe*ve*ve+2*(R-D)*j)}while(a(U)>y&&--G>0);return j=b(R),[(a(D)<a(R+1/j)?H(k*j):p(D)*p(k)*(V(a(k*j))+_))/m(R),R]};function e1(){return r.geoProjection(Cl).scale(103.74)}function Y2(k,D){var q=$i(k[1],k[0]),R=$i(D[1],D[0]),G=X2(q,R),U=li(q)/li(R);return yo([1,0,k[0][0],0,1,k[0][1]],yo([U,0,0,0,U,0],yo([o(G),m(G),0,-m(G),o(G),0],[1,0,-D[0][0],0,1,-D[0][1]])))}function V2(k){var D=1/(k[0]*k[4]-k[1]*k[3]);return[D*k[4],-D*k[1],D*(k[1]*k[5]-k[2]*k[4]),-D*k[3],D*k[0],D*(k[2]*k[3]-k[0]*k[5])]}function yo(k,D){return[k[0]*D[0]+k[1]*D[3],k[0]*D[1]+k[1]*D[4],k[0]*D[2]+k[1]*D[5]+k[2],k[3]*D[0]+k[4]*D[3],k[3]*D[1]+k[4]*D[4],k[3]*D[2]+k[4]*D[5]+k[5]]}function $i(k,D){return[k[0]-D[0],k[1]-D[1]]}function li(k){return N(k[0]*k[0]+k[1]*k[1])}function X2(k,D){return i(k[0]*D[1]-k[1]*D[0],k[0]*D[0]+k[1]*D[1])}function xs(k,D,q){R(k,{transform:null});function R(ce,me){if(ce.edges=a1(ce.face),me.face){var we=ce.shared=t1(ce.face,me.face),Fe=Y2(we.map(me.project),we.map(ce.project));ce.transform=me.transform?yo(me.transform,Fe):Fe;for(var Ie=me.edges,Ke=0,ur=Ie.length;Ke<ur;++Ke)gi(we[0],Ie[Ke][1])&&gi(we[1],Ie[Ke][0])&&(Ie[Ke]=ce),gi(we[0],Ie[Ke][0])&&gi(we[1],Ie[Ke][1])&&(Ie[Ke]=ce);for(Ie=ce.edges,Ke=0,ur=Ie.length;Ke<ur;++Ke)gi(we[0],Ie[Ke][0])&&gi(we[1],Ie[Ke][1])&&(Ie[Ke]=me),gi(we[0],Ie[Ke][1])&&gi(we[1],Ie[Ke][0])&&(Ie[Ke]=me)}else ce.transform=me.transform;return ce.children&&ce.children.forEach(function(Tr){R(Tr,ce)}),ce}function G(ce,me){var we=D(ce,me),Fe=we.project([ce*z,me*z]),Ie;return(Ie=we.transform)?[Ie[0]*Fe[0]+Ie[1]*Fe[1]+Ie[2],-(Ie[3]*Fe[0]+Ie[4]*Fe[1]+Ie[5])]:(Fe[1]=-Fe[1],Fe)}mu(k)&&(G.invert=function(ce,me){var we=U(k,[ce,-me]);return we&&(we[0]*=I,we[1]*=I,we)});function U(ce,me){var we=ce.project.invert,Fe=ce.transform,Ie=me;if(Fe&&(Fe=V2(Fe),Ie=[Fe[0]*Ie[0]+Fe[1]*Ie[1]+Fe[2],Fe[3]*Ie[0]+Fe[4]*Ie[1]+Fe[5]]),we&&ce===j(Ke=we(Ie)))return Ke;for(var Ke,ur=ce.children,Tr=0,Kr=ur&&ur.length;Tr<Kr;++Tr)if(Ke=U(ur[Tr],me))return Ke}function j(ce){return D(ce[0]*I,ce[1]*I)}var ve=r.geoProjection(G),pe=ve.stream;return ve.stream=function(ce){var me=ve.rotate(),we=pe(ce),Fe=(ve.rotate([0,0]),pe(ce));return ve.rotate(me),we.sphere=function(){Fe.polygonStart(),Fe.lineStart(),r1(Fe,k),Fe.lineEnd(),Fe.polygonEnd()},we},ve.angle(q==null?-30:q*z)}function r1(k,D,q){var R,G=D.edges,U=G.length,j,ve={type:"MultiPoint",coordinates:D.face},pe=D.face.filter(function(ur){return a(ur[1])!==90}),ce=r.geoBounds({type:"MultiPoint",coordinates:pe}),me=!1,we=-1,Fe=ce[1][0]-ce[0][0],Ie=Fe===180||Fe===360?[(ce[0][0]+ce[1][0])/2,(ce[0][1]+ce[1][1])/2]:r.geoCentroid(ve);if(q)for(;++we<U&&G[we]!==q;);++we;for(var Ke=0;Ke<U;++Ke)j=G[(Ke+we)%U],Array.isArray(j)?(me||(k.point((R=r.geoInterpolate(j[0],Ie)(y))[0],R[1]),me=!0),k.point((R=r.geoInterpolate(j[1],Ie)(y))[0],R[1])):(me=!1,j!==q&&r1(k,j,D))}function gi(k,D){return k&&D&&k[0]===D[0]&&k[1]===D[1]}function t1(k,D){for(var q,R,G=k.length,U=null,j=0;j<G;++j){q=k[j];for(var ve=D.length;--ve>=0;)if(R=D[ve],q[0]===R[0]&&q[1]===R[1]){if(U)return[U,q];U=q}}}function a1(k){for(var D=k.length,q=[],R=k[D-1],G=0;G<D;++G)q.push([R,R=k[G]]);return q}function mu(k){return k.project.invert||k.children&&k.children.some(mu)}var n1=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],i0=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(k){return k.map(function(D){return n1[D]})});function gu(k){k=k||function(q){var R=r.geoCentroid({type:"MultiPoint",coordinates:q});return r.geoGnomonic().scale(1).translate([0,0]).rotate([-R[0],-R[1]])};var D=i0.map(function(q){return{face:q,project:k(q)}});return[-1,0,0,1,0,1,4,5].forEach(function(q,R){var G=D[q];G&&(G.children||(G.children=[])).push(D[R])}),xs(D[0],function(q,R){return D[q<-x/2?R<0?6:4:q<0?R<0?2:0:q<x/2?R<0?3:1:R<0?7:5]}).angle(-30).scale(101.858).center([0,45])}var o0=2/N(3);function yu(k,D){var q=Br(k,D);return[q[0]*o0,q[1]]}yu.invert=function(k,D){return Br.invert(k/o0,D)};function j2(k){k=k||function(q){var R=r.geoCentroid({type:"MultiPoint",coordinates:q});return r.geoProjection(yu).translate([0,0]).scale(1).rotate(R[1]>0?[-R[0],0]:[180-R[0],180])};var D=i0.map(function(q){return{face:q,project:k(q)}});return[-1,0,0,1,0,1,4,5].forEach(function(q,R){var G=D[q];G&&(G.children||(G.children=[])).push(D[R])}),xs(D[0],function(q,R){return D[q<-x/2?R<0?6:4:q<0?R<0?2:0:q<x/2?R<0?3:1:R<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function bu(k){k=k||function(j){var ve=j.length===6?r.geoCentroid({type:"MultiPoint",coordinates:j}):j[0];return r.geoGnomonic().scale(1).translate([0,0]).rotate([-ve[0],-ve[1]])};var D=i0.map(function(j){for(var ve=j.map(ws),pe=ve.length,ce=ve[pe-1],me,we=[],Fe=0;Fe<pe;++Fe)me=ve[Fe],we.push(Dl([ce[0]*.9486832980505138+me[0]*.31622776601683794,ce[1]*.9486832980505138+me[1]*.31622776601683794,ce[2]*.9486832980505138+me[2]*.31622776601683794]),Dl([me[0]*.9486832980505138+ce[0]*.31622776601683794,me[1]*.9486832980505138+ce[1]*.31622776601683794,me[2]*.9486832980505138+ce[2]*.31622776601683794])),ce=me;return we}),q=[],R=[-1,0,0,1,0,1,4,5];D.forEach(function(j,ve){for(var pe=i0[ve],ce=pe.length,me=q[ve]=[],we=0;we<ce;++we)D.push([pe[we],j[(we*2+2)%(2*ce)],j[(we*2+1)%(2*ce)]]),R.push(ve),me.push(_u(ws(j[(we*2+2)%(2*ce)]),ws(j[(we*2+1)%(2*ce)])))});var G=D.map(function(j){return{project:k(j),face:j}});R.forEach(function(j,ve){var pe=G[j];pe&&(pe.children||(pe.children=[])).push(G[ve])});function U(j,ve){var pe=o(ve),ce=[pe*o(j),pe*m(j),m(ve)],me=j<-x/2?ve<0?6:4:j<0?ve<0?2:0:j<x/2?ve<0?3:1:ve<0?7:5,we=q[me];return G[Sl(we[0],ce)<0?8+3*me:Sl(we[1],ce)<0?8+3*me+1:Sl(we[2],ce)<0?8+3*me+2:me]}return xs(G[0],U).angle(-30).scale(110.625).center([0,45])}function Sl(k,D){for(var q=0,R=k.length,G=0;q<R;++q)G+=k[q]*D[q];return G}function _u(k,D){return[k[1]*D[2]-k[2]*D[1],k[2]*D[0]-k[0]*D[2],k[0]*D[1]-k[1]*D[0]]}function Dl(k){return[i(k[1],k[0])*z,H(f(-1,c(1,k[2])))*z]}function ws(k){var D=k[0]*I,q=k[1]*I,R=o(q);return[R*o(D),R*m(D),m(q)]}function l0(){}function xu(k){if((q=k.length)<4)return!1;for(var D=0,q,R=k[q-1][1]*k[0][0]-k[q-1][0]*k[0][1];++D<q;)R+=k[D-1][1]*k[D][0]-k[D-1][0]*k[D][1];return R<=0}function i1(k,D){for(var q=D[0],R=D[1],G=!1,U=0,j=k.length,ve=j-1;U<j;ve=U++){var pe=k[U],ce=pe[0],me=pe[1],we=k[ve],Fe=we[0],Ie=we[1];me>R^Ie>R&&q<(Fe-ce)*(R-me)/(Ie-me)+ce&&(G=!G)}return G}function s0(k,D){var q=D.stream,R;if(!q)throw new Error("invalid projection");switch(k&&k.type){case"Feature":R=l1;break;case"FeatureCollection":R=o1;break;default:R=u0;break}return R(k,q)}function o1(k,D){return{type:"FeatureCollection",features:k.features.map(function(q){return l1(q,D)})}}function l1(k,D){return{type:"Feature",id:k.id,properties:k.properties,geometry:u0(k.geometry,D)}}function Cf(k,D){return{type:"GeometryCollection",geometries:k.geometries.map(function(q){return u0(q,D)})}}function u0(k,D){if(!k)return null;if(k.type==="GeometryCollection")return Cf(k,D);var q;switch(k.type){case"Point":q=As;break;case"MultiPoint":q=As;break;case"LineString":q=f0;break;case"MultiLineString":q=f0;break;case"Polygon":q=wu;break;case"MultiPolygon":q=wu;break;case"Sphere":q=wu;break;default:return null}return r.geoStream(k,D(q)),q.result()}var hn=[],Ni=[],As={point:function(k,D){hn.push([k,D])},result:function(){var k=hn.length?hn.length<2?{type:"Point",coordinates:hn[0]}:{type:"MultiPoint",coordinates:hn}:null;return hn=[],k}},f0={lineStart:l0,point:function(k,D){hn.push([k,D])},lineEnd:function(){hn.length&&(Ni.push(hn),hn=[])},result:function(){var k=Ni.length?Ni.length<2?{type:"LineString",coordinates:Ni[0]}:{type:"MultiLineString",coordinates:Ni}:null;return Ni=[],k}},wu={polygonStart:l0,lineStart:l0,point:function(k,D){hn.push([k,D])},lineEnd:function(){var k=hn.length;if(k){do hn.push(hn[0].slice());while(++k<4);Ni.push(hn),hn=[]}},polygonEnd:l0,result:function(){if(!Ni.length)return null;var k=[],D=[];return Ni.forEach(function(q){xu(q)?k.push([q]):D.push(q)}),D.forEach(function(q){var R=q[0];k.some(function(G){if(i1(G[0],R))return G.push(q),!0})||k.push([q])}),Ni=[],k.length?k.length>1?{type:"MultiPolygon",coordinates:k}:{type:"Polygon",coordinates:k[0]}:null}};function Sf(k){var D=k(_,0)[0]-k(-_,0)[0];function q(R,G){var U=a(R)<_,j=k(U?R:R>0?R-x:R+x,G),ve=(j[0]-j[1])*T,pe=(j[0]+j[1])*T;if(U)return[ve,pe];var ce=D*T,me=ve>0^pe>0?-1:1;return[me*ve-p(pe)*ce,me*pe-p(ve)*ce]}return k.invert&&(q.invert=function(R,G){var U=(R+G)*T,j=(G-R)*T,ve=a(U)<.5*D&&a(j)<.5*D;if(!ve){var pe=D*T,ce=U>0^j>0?-1:1,me=-ce*R+(j>0?1:-1)*pe,we=-ce*G+(U>0?1:-1)*pe;U=(-me-we)*T,j=(me-we)*T}var Fe=k.invert(U,j);return ve||(Fe[0]+=U>0?x:-x),Fe}),r.geoProjection(q).rotate([-90,-90,45]).clipAngle(180-.001)}function O(){return Sf(sa).scale(176.423)}function $(){return Sf(No).scale(111.48)}function he(k,D){if(!(0<=(D=+D)&&D<=20))throw new Error("invalid digits");function q(ce){var me=ce.length,we=2,Fe=new Array(me);for(Fe[0]=+ce[0].toFixed(D),Fe[1]=+ce[1].toFixed(D);we<me;)Fe[we]=ce[we],++we;return Fe}function R(ce){return ce.map(q)}function G(ce){for(var me=q(ce[0]),we=[me],Fe=1;Fe<ce.length;Fe++){var Ie=q(ce[Fe]);(Ie.length>2||Ie[0]!=me[0]||Ie[1]!=me[1])&&(we.push(Ie),me=Ie)}return we.length===1&&ce.length>1&&we.push(q(ce[ce.length-1])),we}function U(ce){return ce.map(G)}function j(ce){if(ce==null)return ce;var me;switch(ce.type){case"GeometryCollection":me={type:"GeometryCollection",geometries:ce.geometries.map(j)};break;case"Point":me={type:"Point",coordinates:q(ce.coordinates)};break;case"MultiPoint":me={type:ce.type,coordinates:R(ce.coordinates)};break;case"LineString":me={type:ce.type,coordinates:G(ce.coordinates)};break;case"MultiLineString":case"Polygon":me={type:ce.type,coordinates:U(ce.coordinates)};break;case"MultiPolygon":me={type:"MultiPolygon",coordinates:ce.coordinates.map(U)};break;default:return ce}return ce.bbox!=null&&(me.bbox=ce.bbox),me}function ve(ce){var me={type:"Feature",properties:ce.properties,geometry:j(ce.geometry)};return ce.id!=null&&(me.id=ce.id),ce.bbox!=null&&(me.bbox=ce.bbox),me}if(k!=null)switch(k.type){case"Feature":return ve(k);case"FeatureCollection":{var pe={type:"FeatureCollection",features:k.features.map(ve)};return k.bbox!=null&&(pe.bbox=k.bbox),pe}default:return j(k)}return k}function se(k){var D=m(k);function q(R,G){var U=D?b(R*D/2)/D:R/2;if(!G)return[2*U,-k];var j=2*n(U*m(G)),ve=1/b(G);return[m(j)*ve,G+(1-o(j))*ve-k]}return q.invert=function(R,G){if(a(G+=k)<y)return[D?2*n(D*R/2)/D:R,0];var U=R*R+G*G,j=0,ve=10,pe;do{var ce=b(j),me=1/o(j),we=U-2*G*j+j*j;j-=pe=(ce*we+2*(j-G))/(2+we*me*me+2*(j-G)*ce)}while(a(pe)>y&&--ve>0);var Fe=R*(ce=b(j)),Ie=b(a(G)<a(j+1/ce)?H(Fe)*.5:V(Fe)*.5+x/4)/m(j);return[D?2*n(D*Ie)/D:2*Ie,j]},q}function Me(){return Pr(se).scale(131.215)}var Oe=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];Oe.forEach(function(k){k[1]*=1.0144});function We(k,D){var q=c(18,a(D)*36/x),R=s(q),G=q-R,U=(we=Oe[R])[0],j=we[1],ve=(we=Oe[++R])[0],pe=we[1],ce=(we=Oe[c(19,++R)])[0],me=we[1],we;return[k*(ve+G*(ce-U)/2+G*G*(ce-2*ve+U)/2),(D>0?_:-_)*(pe+G*(me-j)/2+G*G*(me-2*pe+j)/2)]}We.invert=function(k,D){var q=D/_,R=q*90,G=c(18,a(R/5)),U=f(0,s(G));do{var j=Oe[U][1],ve=Oe[U+1][1],pe=Oe[c(19,U+2)][1],ce=pe-j,me=pe-2*ve+j,we=2*(a(q)-ve)/ce,Fe=me/ce,Ie=we*(1-Fe*we*(1-2*Fe*we));if(Ie>=0||U===1){R=(D>=0?5:-5)*(Ie+G);var Ke=50,ur;do G=c(18,a(R)/5),U=s(G),Ie=G-U,j=Oe[U][1],ve=Oe[U+1][1],pe=Oe[c(19,U+2)][1],R-=(ur=(D>=0?_:-_)*(ve+Ie*(pe-j)/2+Ie*Ie*(pe-2*ve+j)/2)-D)*z;while(a(ur)>C&&--Ke>0);break}}while(--U>=0);var Tr=Oe[U][0],Kr=Oe[U+1][0],ct=Oe[c(19,U+2)][0];return[k/(Kr+Ie*(ct-Tr)/2+Ie*Ie*(ct-2*Kr+Tr)/2),R*I]};function rr(){return r.geoProjection(We).scale(152.63)}function ir(k){function D(q,R){var G=o(R),U=(k-1)/(k-G*o(q));return[U*G*m(q),U*m(R)]}return D.invert=function(q,R){var G=q*q+R*R,U=N(G),j=(k-N(1-G*(k+1)/(k-1)))/((k-1)/U+U/(k-1));return[i(q*j,U*N(1-j*j)),U?H(R*j/U):0]},D}function gr(k,D){var q=ir(k);if(!D)return q;var R=o(D),G=m(D);function U(j,ve){var pe=q(j,ve),ce=pe[1],me=ce*G/(k-1)+R;return[pe[0]*R/me,ce/me]}return U.invert=function(j,ve){var pe=(k-1)/(k-1-ve*G);return q.invert(pe*j,pe*ve*R)},U}function $e(){var k=2,D=0,q=r.geoProjectionMutator(gr),R=q(k,D);return R.distance=function(G){return arguments.length?q(k=+G,D):k},R.tilt=function(G){return arguments.length?q(k,D=G*I):D*z},R.scale(432.147).clipAngle(V(1/k)*z-1e-6)}var fr=1e-4,sr=1e4,wr=-180,Dr=wr+fr,lt=180,rt=lt-fr,ut=-90,ft=ut+fr,Lr=90,Ur=Lr-fr;function vt(k){return k.length>0}function xt(k){return Math.floor(k*sr)/sr}function Jt(k){return k===ut||k===Lr?[0,k]:[wr,xt(k)]}function ua(k){var D=k[0],q=k[1],R=!1;return D<=Dr?(D=wr,R=!0):D>=rt&&(D=lt,R=!0),q<=ft?(q=ut,R=!0):q>=Ur&&(q=Lr,R=!0),R?[D,q]:k}function ea(k){return k.map(ua)}function xa(k,D,q){for(var R=0,G=k.length;R<G;++R){var U=k[R].slice();q.push({index:-1,polygon:D,ring:U});for(var j=0,ve=U.length;j<ve;++j){var pe=U[j],ce=pe[0],me=pe[1];if(ce<=Dr||ce>=rt||me<=ft||me>=Ur){U[j]=ua(pe);for(var we=j+1;we<ve;++we){var Fe=U[we],Ie=Fe[0],Ke=Fe[1];if(Ie>Dr&&Ie<rt&&Ke>ft&&Ke<Ur)break}if(we===j+1)continue;if(j){var ur={index:-1,polygon:D,ring:U.slice(0,j+1)};ur.ring[ur.ring.length-1]=Jt(me),q[q.length-1]=ur}else q.pop();if(we>=ve)break;q.push({index:-1,polygon:D,ring:U=U.slice(we-1)}),U[0]=Jt(U[0][1]),j=-1,ve=U.length}}}}function zt(k){var D,q=k.length,R={},G={},U,j,ve,pe,ce;for(D=0;D<q;++D){if(U=k[D],j=U.ring[0],pe=U.ring[U.ring.length-1],j[0]===pe[0]&&j[1]===pe[1]){U.polygon.push(U.ring),k[D]=null;continue}U.index=D,R[j]=G[pe]=U}for(D=0;D<q;++D)if(U=k[D],U){if(j=U.ring[0],pe=U.ring[U.ring.length-1],ve=G[j],ce=R[pe],delete R[j],delete G[pe],j[0]===pe[0]&&j[1]===pe[1]){U.polygon.push(U.ring);continue}ve?(delete G[j],delete R[ve.ring[0]],ve.ring.pop(),k[ve.index]=null,U={index:-1,polygon:ve.polygon,ring:ve.ring.concat(U.ring)},ve===ce?U.polygon.push(U.ring):(U.index=q++,k.push(R[U.ring[0]]=G[U.ring[U.ring.length-1]]=U))):ce?(delete R[pe],delete G[ce.ring[ce.ring.length-1]],U.ring.pop(),U={index:q++,polygon:ce.polygon,ring:U.ring.concat(ce.ring)},k[ce.index]=null,k.push(R[U.ring[0]]=G[U.ring[U.ring.length-1]]=U)):(U.ring.push(U.ring[0]),U.polygon.push(U.ring))}}function Cn(k){var D={type:"Feature",geometry:rn(k.geometry)};return k.id!=null&&(D.id=k.id),k.bbox!=null&&(D.bbox=k.bbox),k.properties!=null&&(D.properties=k.properties),D}function rn(k){if(k==null)return k;var D,q,R,G;switch(k.type){case"GeometryCollection":D={type:"GeometryCollection",geometries:k.geometries.map(rn)};break;case"Point":D={type:"Point",coordinates:ua(k.coordinates)};break;case"MultiPoint":case"LineString":D={type:k.type,coordinates:ea(k.coordinates)};break;case"MultiLineString":D={type:"MultiLineString",coordinates:k.coordinates.map(ea)};break;case"Polygon":{var U=[];xa(k.coordinates,U,q=[]),zt(q),D={type:"Polygon",coordinates:U};break}case"MultiPolygon":{q=[],R=-1,G=k.coordinates.length;for(var j=new Array(G);++R<G;)xa(k.coordinates[R],j[R]=[],q);zt(q),D={type:"MultiPolygon",coordinates:j.filter(vt)};break}default:return k}return k.bbox!=null&&(D.bbox=k.bbox),D}function wa(k){if(k==null)return k;switch(k.type){case"Feature":return Cn(k);case"FeatureCollection":{var D={type:"FeatureCollection",features:k.features.map(Cn)};return k.bbox!=null&&(D.bbox=k.bbox),D}default:return rn(k)}}function Vr(k,D){var q=b(D/2),R=m(A*q);return[k*(.74482-.34588*R*R),1.70711*q]}Vr.invert=function(k,D){var q=D/1.70711,R=m(A*q);return[k/(.74482-.34588*R*R),2*n(q)]};function Kt(){return r.geoProjection(Vr).scale(146.153)}function un(k,D,q){var R=r.geoInterpolate(D,q),G=R(.5),U=r.geoRotation([-G[0],-G[1]])(D),j=R.distance/2,ve=-H(m(U[1]*I)/m(j)),pe=[-G[0],-G[1],-(U[0]>0?x-ve:ve)*z],ce=r.geoProjection(k(j)).rotate(pe),me=r.geoRotation(pe),we=ce.center;return delete ce.rotate,ce.center=function(Fe){return arguments.length?we(me(Fe)):me.invert(we())},ce.clipAngle(90)}function Rn(k){var D=o(k);function q(R,G){var U=r.geoGnomonicRaw(R,G);return U[0]*=D,U}return q.invert=function(R,G){return r.geoGnomonicRaw.invert(R/D,G)},q}function yi(){return bo([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function bo(k,D){return un(Rn,k,D)}function Ji(k){if(!(k*=2))return r.geoAzimuthalEquidistantRaw;var D=-k/2,q=-D,R=k*k,G=b(q),U=.5/m(q);function j(ve,pe){var ce=V(o(pe)*o(ve-D)),me=V(o(pe)*o(ve-q)),we=pe<0?-1:1;return ce*=ce,me*=me,[(ce-me)/(2*k),we*N(4*R*me-(R-ce+me)*(R-ce+me))/(2*k)]}return j.invert=function(ve,pe){var ce=pe*pe,me=o(N(ce+(Fe=ve+D)*Fe)),we=o(N(ce+(Fe=ve+q)*Fe)),Fe,Ie;return[i(Ie=me-we,Fe=(me+we)*G),(pe<0?-1:1)*V(N(Fe*Fe+Ie*Ie)*U)]},j}function Fl(){return Bi([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Bi(k,D){return un(Ji,k,D)}function El(k,D){if(a(D)<y)return[k,0];var q=a(D/_),R=H(q);if(a(k)<y||a(a(D)-_)<y)return[0,p(D)*x*b(R/2)];var G=o(R),U=a(x/k-k/x)/2,j=U*U,ve=G/(q+G-1),pe=ve*(2/q-1),ce=pe*pe,me=ce+j,we=ve-ce,Fe=j+ve;return[p(k)*x*(U*we+N(j*we*we-me*(ve*ve-ce)))/me,p(D)*x*(pe*Fe-U*N((j+1)*me-Fe*Fe))/me]}El.invert=function(k,D){if(a(D)<y)return[k,0];if(a(k)<y)return[0,_*m(2*n(D/x))];var q=(k/=x)*k,R=(D/=x)*D,G=q+R,U=G*G,j=-a(D)*(1+G),ve=j-2*R+q,pe=-2*j+1+2*R+U,ce=R/pe+(2*ve*ve*ve/(pe*pe*pe)-9*j*ve/(pe*pe))/27,me=(j-ve*ve/(3*pe))/pe,we=2*N(-me/3),Fe=V(3*ce/(me*we))/3;return[x*(G-1+N(1+2*(q-R)+U))/(2*k),p(D)*x*(-we*o(Fe+x/3)-ve/(3*pe))]};function Ms(){return r.geoProjection(El).scale(79.4183)}function c0(k,D){if(a(D)<y)return[k,0];var q=a(D/_),R=H(q);if(a(k)<y||a(a(D)-_)<y)return[0,p(D)*x*b(R/2)];var G=o(R),U=a(x/k-k/x)/2,j=U*U,ve=G*(N(1+j)-U*G)/(1+j*q*q);return[p(k)*x*ve,p(D)*x*N(1-ve*(2*U+ve))]}c0.invert=function(k,D){if(!k)return[0,_*m(2*n(D/x))];var q=a(k/x),R=(1-q*q-(D/=x)*D)/(2*q),G=R*R,U=N(G+1);return[p(k)*x*(U-R),p(D)*_*m(2*i(N((1-2*R*q)*(R+U)-q),N(U+R+q)))]};function s1(){return r.geoProjection(c0).scale(79.4183)}function u1(k,D){if(a(D)<y)return[k,0];var q=D/_,R=H(q);if(a(k)<y||a(a(D)-_)<y)return[0,x*b(R/2)];var G=(x/k-k/x)/2,U=q/(1+o(R));return[x*(p(k)*N(G*G+1-U*U)-G),x*U]}u1.invert=function(k,D){if(!D)return[k,0];var q=D/x,R=(x*x*(1-q*q)-k*k)/(2*x*k);return[k?x*(p(k)*N(R*R+1)-R):0,_*m(2*n(q))]};function mh(){return r.geoProjection(u1).scale(79.4183)}function Df(k,D){if(!D)return[k,0];var q=a(D);if(!k||q===_)return[0,D];var R=q/_,G=R*R,U=(8*R-G*(G+2)-5)/(2*G*(R-1)),j=U*U,ve=R*U,pe=G+j+2*ve,ce=R+3*U,me=k/_,we=me+1/me,Fe=p(a(k)-_)*N(we*we-4),Ie=Fe*Fe,Ke=pe*(G+j*Ie-1)+(1-G)*(G*(ce*ce+4*j)+12*ve*j+4*j*j),ur=(Fe*(pe+j-1)+2*N(Ke))/(4*pe+Ie);return[p(k)*_*ur,p(D)*_*N(1+Fe*a(ur)-ur*ur)]}Df.invert=function(k,D){var q;if(!k||!D)return[k,D];D/=x;var R=p(k)*k/_,G=(R*R-1+4*D*D)/a(R),U=G*G,j=2*D,ve=50;do{var pe=j*j,ce=(8*j-pe*(pe+2)-5)/(2*pe*(j-1)),me=(3*j-pe*j-10)/(2*pe*j),we=ce*ce,Fe=j*ce,Ie=j+ce,Ke=Ie*Ie,ur=j+3*ce,Tr=Ke*(pe+we*U-1)+(1-pe)*(pe*(ur*ur+4*we)+we*(12*Fe+4*we)),Kr=-2*Ie*(4*Fe*we+(1-4*pe+3*pe*pe)*(1+me)+we*(-6+14*pe-U+(-8+8*pe-2*U)*me)+Fe*(-8+12*pe+(-10+10*pe-U)*me)),ct=N(Tr),dt=G*(Ke+we-1)+2*ct-R*(4*Ke+U),pt=G*(2*ce*me+2*Ie*(1+me))+Kr/ct-8*Ie*(G*(-1+we+Ke)+2*ct)*(1+me)/(U+4*Ke);j-=q=dt/pt}while(q>y&&--ve>0);return[p(k)*(N(G*G+4)+G)*x/4,_*j]};function _o(){return r.geoProjection(Df).scale(127.16)}function gh(k,D,q,R,G){function U(j,ve){var pe=q*m(R*ve),ce=N(1-pe*pe),me=N(2/(1+ce*o(j*=G)));return[k*ce*me*m(j),D*pe*me]}return U.invert=function(j,ve){var pe=j/k,ce=ve/D,me=N(pe*pe+ce*ce),we=2*H(me/2);return[i(j*b(we),k*me)/G,me&&H(ve*m(we)/(D*q*me))/R]},U}function yh(k,D,q,R){var G=x/3;k=f(k,y),D=f(D,y),k=c(k,_),D=c(D,x-y),q=f(q,0),q=c(q,100-y),R=f(R,y);var U=q/100+1,j=R/100,ve=V(U*o(G))/G,pe=m(k)/m(ve*_),ce=D/x,me=N(j*m(k/2)/m(D/2)),we=me/N(ce*pe*ve),Fe=1/(me*N(ce*pe*ve));return gh(we,Fe,pe,ve,ce)}function f1(){var k=65*I,D=60*I,q=20,R=200,G=r.geoProjectionMutator(yh),U=G(k,D,q,R);return U.poleline=function(j){return arguments.length?G(k=+j*I,D,q,R):k*z},U.parallels=function(j){return arguments.length?G(k,D=+j*I,q,R):D*z},U.inflation=function(j){return arguments.length?G(k,D,q=+j,R):q},U.ratio=function(j){return arguments.length?G(k,D,q,R=+j):R},U.scale(163.775)}function W2(){return f1().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var bh=4*x+3*N(3),_h=2*N(2*x*N(3)/bh),xh=Ar(_h*N(3)/x,_h,bh/6);function c1(){return r.geoProjection(xh).scale(176.84)}function Ff(k,D){return[k*N(1-3*D*D/(x*x)),D]}Ff.invert=function(k,D){return[k/N(1-3*D*D/(x*x)),D]};function wh(){return r.geoProjection(Ff).scale(152.63)}function Z2(k,D){var q=o(D),R=o(k)*q,G=1-R,U=o(k=i(m(k)*q,-m(D))),j=m(k);return q=N(1-R*R),[j*q-U*G,-U*q-j*G]}Z2.invert=function(k,D){var q=(k*k+D*D)/-2,R=N(-q*(2+q)),G=D*q+k*R,U=k*q-D*R,j=N(U*U+G*G);return[i(R*G,j*(1+q)),j?-H(R*U/j):0]};function Cy(){return r.geoProjection(Z2).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function $2(k,D){var q=De(k,D);return[(q[0]+k/_)/2,(q[1]+D)/2]}$2.invert=function(k,D){var q=k,R=D,G=25;do{var U=o(R),j=m(R),ve=m(2*R),pe=j*j,ce=U*U,me=m(q),we=o(q/2),Fe=m(q/2),Ie=Fe*Fe,Ke=1-ce*we*we,ur=Ke?V(U*we)*N(Tr=1/Ke):Tr=0,Tr,Kr=.5*(2*ur*U*Fe+q/_)-k,ct=.5*(ur*j+R)-D,dt=.5*Tr*(ce*Ie+ur*U*we*pe)+.5/_,pt=Tr*(me*ve/4-ur*j*Fe),yt=.125*Tr*(ve*Fe-ur*j*ce*me),fa=.5*Tr*(pe*we+ur*Ie*U)+.5,Da=pt*yt-fa*dt,Gt=(ct*pt-Kr*fa)/Da,tn=(Kr*yt-ct*dt)/Da;q-=Gt,R-=tn}while((a(Gt)>y||a(tn)>y)&&--G>0);return[q,R]};function Ki(){return r.geoProjection($2).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=xe,e.geoAiryRaw=ue,e.geoAitoff=Ye,e.geoAitoffRaw=De,e.geoArmadillo=ke,e.geoArmadilloRaw=Ee,e.geoAugust=W,e.geoAugustRaw=je,e.geoBaker=J,e.geoBakerRaw=K,e.geoBerghaus=be,e.geoBerghausRaw=fe,e.geoBertin1953=lr,e.geoBertin1953Raw=ze,e.geoBoggs=_r,e.geoBoggsRaw=Ue,e.geoBonne=cr,e.geoBonneRaw=He,e.geoBottomley=vr,e.geoBottomleyRaw=Mr,e.geoBromley=Er,e.geoBromleyRaw=kr,e.geoChamberlin=Wr,e.geoChamberlinRaw=Cr,e.geoChamberlinAfrica=Fr,e.geoCollignon=Zr,e.geoCollignonRaw=Br,e.geoCraig=Be,e.geoCraigRaw=Ae,e.geoCraster=Dt,e.geoCrasterRaw=hr,e.geoCylindricalEqualArea=ba,e.geoCylindricalEqualAreaRaw=Wt,e.geoCylindricalStereographic=Xt,e.geoCylindricalStereographicRaw=_a,e.geoEckert1=la,e.geoEckert1Raw=Ht,e.geoEckert2=Ta,e.geoEckert2Raw=Pt,e.geoEckert3=Xa,e.geoEckert3Raw=pa,e.geoEckert4=ja,e.geoEckert4Raw=dn,e.geoEckert5=Rr,e.geoEckert5Raw=Fa,e.geoEckert6=Et,e.geoEckert6Raw=Vt,e.geoEisenlohr=Ea,e.geoEisenlohrRaw=ma,e.geoFahey=Na,e.geoFaheyRaw=$t,e.geoFoucaut=Pi,e.geoFoucautRaw=Jn,e.geoFoucautSinusoidal=Ba,e.geoFoucautSinusoidalRaw=Kn,e.geoGilbert=zo,e.geoGingery=gl,e.geoGingeryRaw=co,e.geoGinzburg4=ls,e.geoGinzburg4Raw=Ri,e.geoGinzburg5=Ks,e.geoGinzburg5Raw=ss,e.geoGinzburg6=Qs,e.geoGinzburg6Raw=us,e.geoGinzburg8=st,e.geoGinzburg8Raw=ot,e.geoGinzburg9=Or,e.geoGinzburg9Raw=jt,e.geoGringorten=Vn,e.geoGringortenRaw=sa,e.geoGuyou=eu,e.geoGuyouRaw=No,e.geoHammer=er,e.geoHammerRaw=Ne,e.geoHammerRetroazimuthal=ru,e.geoHammerRetroazimuthalRaw=sf,e.geoHealpix=ds,e.geoHealpixRaw=Bo,e.geoHill=Yc,e.geoHillRaw=ff,e.geoHomolosine=N2,e.geoHomolosineRaw=ou,e.geoHufnagel=cf,e.geoHufnagelRaw=xl,e.geoHyperelliptical=Oo,e.geoHyperellipticalRaw=Ho,e.geoInterrupt=po,e.geoInterruptedBoggs=I2,e.geoInterruptedHomolosine=wl,e.geoInterruptedMollweide=Ml,e.geoInterruptedMollweideHemispheres=lu,e.geoInterruptedSinuMollweide=su,e.geoInterruptedSinusoidal=Tl,e.geoKavrayskiy7=gs,e.geoKavrayskiy7Raw=ms,e.geoLagrange=Ku,e.geoLagrangeRaw=Ju,e.geoLarrivee=e0,e.geoLarriveeRaw=Qu,e.geoLaskowski=Tn,e.geoLaskowskiRaw=oi,e.geoLittrow=go,e.geoLittrowRaw=Xn,e.geoLoximuthal=kl,e.geoLoximuthalRaw=fu,e.geoMiller=df,e.geoMillerRaw=ys,e.geoModifiedStereographic=Wi,e.geoModifiedStereographicRaw=jc,e.geoModifiedStereographicAlaska=gf,e.geoModifiedStereographicGs48=Wc,e.geoModifiedStereographicGs50=Zc,e.geoModifiedStereographicMiller=cu,e.geoModifiedStereographicLee=vu,e.geoMollweide=mr,e.geoMollweideRaw=Qe,e.geoMtFlatPolarParabolic=$c,e.geoMtFlatPolarParabolicRaw=t0,e.geoMtFlatPolarQuartic=U2,e.geoMtFlatPolarQuarticRaw=yf,e.geoMtFlatPolarSinusoidal=a0,e.geoMtFlatPolarSinusoidalRaw=Go,e.geoNaturalEarth2=hu,e.geoNaturalEarth2Raw=bs,e.geoNellHammer=bf,e.geoNellHammerRaw=pu,e.geoInterruptedQuarticAuthalic=Jc,e.geoNicolosi=Kc,e.geoNicolosiRaw=_f,e.geoPatterson=Qc,e.geoPattersonRaw=kf,e.geoPolyconic=e1,e.geoPolyconicRaw=Cl,e.geoPolyhedral=xs,e.geoPolyhedralButterfly=gu,e.geoPolyhedralCollignon=j2,e.geoPolyhedralWaterman=bu,e.geoProject=s0,e.geoGringortenQuincuncial=O,e.geoPeirceQuincuncial=$,e.geoPierceQuincuncial=$,e.geoQuantize=he,e.geoQuincuncial=Sf,e.geoRectangularPolyconic=Me,e.geoRectangularPolyconicRaw=se,e.geoRobinson=rr,e.geoRobinsonRaw=We,e.geoSatellite=$e,e.geoSatelliteRaw=gr,e.geoSinuMollweide=Vc,e.geoSinuMollweideRaw=iu,e.geoSinusoidal=Ce,e.geoSinusoidalRaw=Nr,e.geoStitch=wa,e.geoTimes=Kt,e.geoTimesRaw=Vr,e.geoTwoPointAzimuthal=bo,e.geoTwoPointAzimuthalRaw=Rn,e.geoTwoPointAzimuthalUsa=yi,e.geoTwoPointEquidistant=Bi,e.geoTwoPointEquidistantRaw=Ji,e.geoTwoPointEquidistantUsa=Fl,e.geoVanDerGrinten=Ms,e.geoVanDerGrintenRaw=El,e.geoVanDerGrinten2=s1,e.geoVanDerGrinten2Raw=c0,e.geoVanDerGrinten3=mh,e.geoVanDerGrinten3Raw=u1,e.geoVanDerGrinten4=_o,e.geoVanDerGrinten4Raw=Df,e.geoWagner=f1,e.geoWagner7=W2,e.geoWagnerRaw=yh,e.geoWagner4=c1,e.geoWagner4Raw=xh,e.geoWagner6=wh,e.geoWagner6Raw=Ff,e.geoWiechel=Cy,e.geoWiechelRaw=Z2,e.geoWinkel3=Ki,e.geoWinkel3Raw=$2,Object.defineProperty(e,"__esModule",{value:!0})}))});var oG=oe((n_e,iG)=>{"use strict";var sn=Lt(),e_=pr(),c3e=_t(),L2=Math.PI/180,Pc=180/Math.PI,t_={cursor:"pointer"},a_={cursor:"auto"};function v3e(e,r){var t=e.projection,a;return r._isScoped?a=d3e:r._isClipped?a=p3e:a=h3e,a(e,t)}iG.exports=v3e;function n_(e,r){return sn.behavior.zoom().translate(r.translate()).scaleExtent(r.scaleExtent()).scale(r.scale())}function i_(e,r,t){var a=e.id,n=e.graphDiv,i=n.layout,o=i[a],l=n._fullLayout,s=l[a],u={},f={};function c(d,h){u[a+"."+d]=e_.nestedProperty(o,d).get(),c3e.call("_storeDirectGUIEdit",i,l._preGUI,u);var p=e_.nestedProperty(s,d);p.get()!==h&&(p.set(h),e_.nestedProperty(o,d).set(h),f[a+"."+d]=h)}t(c),c("projection.scale",r.scale()/e.fitScale),c("fitbounds",!1),n.emit("plotly_relayout",f)}function d3e(e,r){var t=n_(e,r);function a(){sn.select(this).style(t_)}function n(){r.scale(sn.event.scale).translate(sn.event.translate),e.render(!0);var l=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1]})}function i(l){var s=r.invert(e.midPt);l("center.lon",s[0]),l("center.lat",s[1])}function o(){sn.select(this).style(a_),i_(e,r,i)}return t.on("zoomstart",a).on("zoom",n).on("zoomend",o),t}function h3e(e,r){var t=n_(e,r),a=2,n,i,o,l,s,u,f,c,d;function h(x){return r.invert(x)}function p(x){var _=h(x);if(!_)return!0;var A=r(_);return Math.abs(A[0]-x[0])>a||Math.abs(A[1]-x[1])>a}function m(){sn.select(this).style(t_);let{x,y:_,width:A,height:T}=this.getBBox();n=sn.event.sourceEvent?sn.mouse(this):[x+A/2,_+T/2],i=r.rotate(),o=r.translate(),l=i,s=h(n)}function b(){let{x,y:_,width:A,height:T}=this.getBBox();if(u=sn.event.sourceEvent?sn.mouse(this):[x+A/2,_+T/2],p(n)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(sn.event.scale),r.translate([o[0],sn.event.translate[1]]),s?h(u)&&(c=h(u),f=[l[0]+(c[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(n=u,s=h(n)),d=!0,e.render(!0);var M=r.rotate(),E=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":E[0],"geo.center.lat":E[1],"geo.projection.rotation.lon":-M[0]})}function y(){sn.select(this).style(a_),d&&i_(e,r,C)}function C(x){var _=r.rotate(),A=r.invert(e.midPt);x("projection.rotation.lon",-_[0]),x("center.lon",A[0]),x("center.lat",A[1])}return t.on("zoomstart",m).on("zoom",b).on("zoomend",y),t}function p3e(e,r){var t={r:r.rotate(),k:r.scale()},a=n_(e,r),n=A3e(a,"zoomstart","zoom","zoomend"),i=0,o=a.on,l;a.on("zoomstart",function(){sn.select(this).style(t_);let{x:d,y:h,width:p,height:m}=this.getBBox(),b=sn.event.sourceEvent?sn.mouse(this):[d+p/2,h+m/2],y=r.rotate(),C=y,x=r.translate(),_=m3e(y);l=cy(r,b),o.call(a,"zoom",function(){let{x:A,y:T,width:M,height:E}=this.getBBox(),P=sn.event.sourceEvent?sn.mouse(this):[A+M/2,T+E/2];if(r.scale(t.k=sn.event.scale),!l)b=P,l=cy(r,b);else if(cy(r,P)){r.rotate(y).translate(x);var z=cy(r,P),I=y3e(l,z),X=_3e(g3e(_,I)),H=t.r=b3e(X,l,C);(!isFinite(H[0])||!isFinite(H[1])||!isFinite(H[2]))&&(H=C),r.rotate(H),C=H}u(n.of(this,arguments))}),s(n.of(this,arguments))}).on("zoomend",function(){sn.select(this).style(a_),o.call(a,"zoom",null),f(n.of(this,arguments)),i_(e,r,c)}).on("zoom.redraw",function(){e.render(!0);var d=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-d[0],"geo.projection.rotation.lat":-d[1]})});function s(d){i++||d({type:"zoomstart"})}function u(d){d({type:"zoom"})}function f(d){--i||d({type:"zoomend"})}function c(d){var h=r.rotate();d("projection.rotation.lon",-h[0]),d("projection.rotation.lat",-h[1])}return sn.rebind(a,n,"on")}function cy(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&x3e(t)}function m3e(e){var r=.5*e[0]*L2,t=.5*e[1]*L2,a=.5*e[2]*L2,n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),s=Math.sin(a),u=Math.cos(a);return[i*l*u+n*o*s,n*l*u-i*o*s,i*o*u+n*l*s,i*l*s-n*o*u]}function g3e(e,r){var t=e[0],a=e[1],n=e[2],i=e[3],o=r[0],l=r[1],s=r[2],u=r[3];return[t*o-a*l-n*s-i*u,t*l+a*o+n*u-i*s,t*s-a*u+n*o+i*l,t*u+a*s-n*l+i*o]}function y3e(e,r){if(!(!e||!r)){var t=w3e(e,r),a=Math.sqrt(nG(t,t)),n=.5*Math.acos(Math.max(-1,Math.min(1,nG(e,r)))),i=Math.sin(n)/a;return a&&[Math.cos(n),t[2]*i,-t[1]*i,t[0]*i]}}function b3e(e,r,t){var a=r_(r,2,e[0]);a=r_(a,1,e[1]),a=r_(a,0,e[2]-t[2]);var n=r[0],i=r[1],o=r[2],l=a[0],s=a[1],u=a[2],f=Math.atan2(i,n)*Pc,c=Math.sqrt(n*n+i*i),d,h;Math.abs(s)>c?(h=(s>0?90:-90)-f,d=0):(h=Math.asin(s/c)*Pc-f,d=Math.sqrt(c*c-s*s));var p=180-h-2*f,m=(Math.atan2(u,l)-Math.atan2(o,d))*Pc,b=(Math.atan2(u,l)-Math.atan2(o,-d))*Pc,y=tG(t[0],t[1],h,m),C=tG(t[0],t[1],p,b);return y<=C?[h,m,t[2]]:[p,b,t[2]]}function tG(e,r,t,a){var n=aG(t-e),i=aG(a-r);return Math.sqrt(n*n+i*i)}function aG(e){return(e%360+540)%360-180}function r_(e,r,t){var a=t*L2,n=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(a),s=Math.sin(a);return n[i]=e[i]*l-e[o]*s,n[o]=e[o]*l+e[i]*s,n}function _3e(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*Pc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*Pc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*Pc]}function x3e(e){var r=e[0]*L2,t=e[1]*L2,a=Math.cos(t);return[a*Math.cos(r),a*Math.sin(r),Math.sin(t)]}function nG(e,r){for(var t=0,a=0,n=e.length;a<n;++a)t+=e[a]*r[a];return t}function w3e(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function A3e(e){for(var r=0,t=arguments.length,a=[];++r<t;)a.push(arguments[r]);var n=sn.dispatch.apply(null,a);return n.of=function(i,o){return function(l){var s;try{s=l.sourceEvent=sn.event,l.target=e,sn.event=l,n[l.type].apply(i,o)}finally{sn.event=s}}},n}});var hG=oe((i_e,dG)=>{"use strict";var Zs=Lt(),s_=ay(),M3e=s_.geoPath,T3e=s_.geoDistance,k3e=rG(),C3e=_t(),fh=pr(),S3e=fh.strTranslate,vy=Nt(),uh=da(),lG=Wl(),D3e=Ln(),l_=Ga(),{concatExtremes:F3e,getAutoRange:sG,makePadFn:uG}=P0(),o_=el(),E3e=Ou().prepSelect,L3e=Ou().clearOutline,q3e=Ou().selectOnClick,P3e=oG(),Gi=(ih(),xr(nh)),u_=E2(),{unwrapLonRange:R3e}=u_,cG=X3(),z3e=P8().feature;function vG(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var os=vG.prototype;dG.exports=function(r){return new vG(r)};os.plot=function(e,r,t,a){var n=this;if(a)return n.update(e,r,!0);n._geoCalcData=e,n._fullLayout=r;var i=r[this.id],o=[],l=!1;for(var s in Gi.layerNameToAdjective)if(s!=="frame"&&i["show"+s]){l=!0;break}for(var u=!1,f=0;f<e.length;f++){var c=e[0][0].trace;c._geo=n,c.locationmode&&(l=!0);var d=c.marker;if(d){var h=d.angle,p=d.angleref;(h||p==="north"||p==="previous")&&(u=!0)}}if(this._hasMarkerAngles=u,l){var m=cG.getTopojsonName(i);(n.topojson===null||m!==n.topojsonName)&&(n.topojsonName=m,PlotlyGeoAssets.topojson[n.topojsonName]===void 0&&o.push(n.fetchTopojson()))}o=o.concat(u_.fetchTraceGeoData(e)),t.push(new Promise(function(b,y){Promise.all(o).then(function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(e,r),b()}).catch(y)}))};os.fetchTopojson=function(){var e=this,r=cG.getTopojsonPath(e.topojsonURL,e.topojsonName);return new Promise(function(t,a){Zs.json(r,function(n,i){if(n)return n.status===404?a(new Error(["plotly.js could not find topojson file at",r+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):a(new Error(["unexpected error while fetching topojson file at",r].join(" ")));PlotlyGeoAssets.topojson[e.topojsonName]=i,t()})})};os.update=function(e,r,t){var a=r[this.id];this.hasChoropleth=!1;for(var n=0;n<e.length;n++){var i=e[n],o=i[0].trace;o.type==="choropleth"&&(this.hasChoropleth=!0),o.visible===!0&&o._length>0&&o._module.calcGeoJSON(i,r)}if(!t){var l=this.updateProjection(e,r);if(l)return;(!this.viewInitial||this.scope!==a.scope)&&this.saveViewInitial(a)}this.scope=a.scope,this.updateBaseLayers(r,a),this.updateDims(r,a),this.updateFx(r,a),D3e.generalUpdatePerTraceModule(this.graphDiv,this,e,a);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};os.updateProjection=function(e,r){var t=this.graphDiv,a=r[this.id],n=r._size,i=a.domain,o=a.projection,l=a.lonaxis,s=a.lataxis,u=l._ax,f=s._ax,c=this.projection=N3e(a),d=[[n.l+n.w*i.x[0],n.t+n.h*(1-i.y[1])],[n.l+n.w*i.x[1],n.t+n.h*(1-i.y[0])]],h=a.center||{},p=o.rotation||{},m=l.range||[],b=s.range||[];if(a.fitbounds){u._length=d[1][0]-d[0][0],f._length=d[1][1]-d[0][1],u.range=sG(t,u),f.range=sG(t,f);let N=[];for(let Ee of e){let ke=Ee[0].trace;ke.visible===!0&&ke._module.fitCoords&&N.push(ke._module.fitCoords(Ee,a))}let Q=F3e(t,u),ee=Q.min.reduce((Ee,{val:ke})=>Math.min(Ee,ke),1/0),ae=Q.max.reduce((Ee,{val:ke})=>Math.max(Ee,ke),-1/0)-ee,ie=u_.boundsOfCoords(N.flat()),[ue,,xe]=ie||[],De=xe-ue;if(!!ie&&(ae>360||ae<360&&De<ae)){let Ee=uG(r,u,0),ke=uG(r,u,1),je=Q.min.reduce((J,fe)=>Math.max(J,Ee(fe)),0),W=Q.max.reduce((J,fe)=>Math.max(J,ke(fe)),0),le=u._length-je-W,de=le>u._length/10?De*u._length/le:De,K=(ue+xe)/2;u.range=[K-de/2,K+de/2]}var y=(u.range[0]+u.range[1])/2,C=(f.range[0]+f.range[1])/2;if(a._isScoped)h={lon:y,lat:C};else if(a._isClipped){h={lon:y,lat:C},p={lon:y,lat:C,roll:p.roll};var x=o.type,_=Gi.lonaxisSpan[x]/2||180,A=Gi.lataxisSpan[x]/2||90;m=[y-_,y+_],b=[C-A,C+A]}else h={lon:y,lat:C},p={lon:y,lat:p.lat,roll:p.roll}}c.center([h.lon-p.lon,h.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var T=fG(m,b);c.fitExtent(d,T);var M=this.bounds=c.getBounds(T),E=this.fitScale=c.scale(),P=c.translate();if(c.scaleExtent=()=>{var ee;let{minscale:N}=o,Q=(ee=o.maxscale)!=null?ee:1/0;return[E*Math.min(N,Q),E*Math.max(N,Q)]},a.fitbounds){var z=c.getBounds(fG(u.range,f.range)),I=Math.min((M[1][0]-M[0][0])/(z[1][0]-z[0][0]),(M[1][1]-M[0][1])/(z[1][1]-z[0][1]));isFinite(I)?c.scale(I*E):fh.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*E);var X=this.midPt=[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2];if(c.translate([P[0]+(X[0]-P[0]),P[1]+(X[1]-P[1])]).clipExtent(M),a._isAlbersUsa){var H=c([h.lon,h.lat]);if(H){var V=c.translate();c.translate([V[0]-(H[0]-V[0]),V[1]-(H[1]-V[1])])}}};os.updateBaseLayers=function(e,r){var t=this,a=t.topojson,n=t.layers,i=t.basePaths;function o(d){return d==="lonaxis"||d==="lataxis"}function l(d){return!!Gi.lineLayers[d]}function s(d){return!!Gi.fillLayers[d]}var u=this.hasChoropleth?Gi.layersForChoropleth:Gi.layers,f=u.filter(function(d){return l(d)||s(d)?r["show"+d]:o(d)?r[d].showgrid:!0}),c=t.framework.selectAll(".layer").data(f,String);c.exit().each(function(d){delete n[d],delete i[d],Zs.select(this).remove()}),c.enter().append("g").attr("class",function(d){return"layer "+d}).each(function(d){var h=n[d]=Zs.select(this);d==="bg"?t.bgRect=h.append("rect").style("pointer-events","all"):o(d)?i[d]=h.append("path").style("fill","none"):d==="backplot"?h.append("g").classed("choroplethlayer",!0):d==="frontplot"?h.append("g").classed("scatterlayer",!0):l(d)?i[d]=h.append("path").style("fill","none").style("stroke-miterlimit",2):s(d)&&(i[d]=h.append("path").style("stroke","none"))}),c.order(),c.each(function(d){var h=i[d],p=Gi.layerNameToAdjective[d];d==="frame"?h.datum(Gi.sphereSVG):l(d)||s(d)?h.datum(z3e(a,a.objects[d])):o(d)&&h.datum(B3e(d,r,e)).call(vy.stroke,r[d].gridcolor).call(uh.dashLine,r[d].griddash,r[d].gridwidth),l(d)?h.call(vy.stroke,r[p+"color"]).call(uh.dashLine,"",r[p+"width"]):s(d)&&h.call(vy.fill,r[p+"color"])})};os.updateDims=function(e,r){var t=this.bounds,a=(r.framewidth||0)/2,n=t[0][0]-a,i=t[0][1]-a,o=t[1][0]-n+a,l=t[1][1]-i+a;uh.setRect(this.clipRect,n,i,o,l),this.bgRect.call(uh.setRect,n,i,o,l).call(vy.fill,r.bgcolor),this.xaxis._offset=n,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};os.updateFx=function(e,r){var t=this,a=t.graphDiv,n=t.bgRect,i=e.dragmode,o=e.clickmode;if(t.isStatic)return;function l(){var c=t.viewInitial,d={};for(var h in c)d[t.id+"."+h]=c[h];C3e.call("_guiRelayout",a,d),a.emit("plotly_doubleclick",null)}function s(c){return t.projection.invert([c[0]+t.xaxis._offset,c[1]+t.yaxis._offset])}var u=function(c,d){if(d.isRect){var h=c.range={};h[t.id]=[s([d.xmin,d.ymin]),s([d.xmax,d.ymax])]}else{var p=c.lassoPoints={};p[t.id]=d.map(s)}},f={element:t.bgRect.node(),gd:a,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:u},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(c){c===2&&L3e(a)}};if(i==="pan"){n.node().onmousedown=null;let c=P3e(t,r);if(n.call(c),!Zs.event){let d=t.projection.scale(),[h,p]=t.projection.scaleExtent();(d<h||d>p)&&c.event(n)}n.on("dblclick.zoom",l),a._context._scrollZoom.geo||n.on("wheel.zoom",null)}else(i==="select"||i==="lasso")&&(n.on(".zoom",null),f.prepFn=function(c,d,h){E3e(c,d,h,f,i)},o_.init(f));n.on("mousemove",function(){var c=t.projection.invert(fh.getPositionFromD3Event());if(!c)return o_.unhover(a,Zs.event);t.xaxis.p2c=function(){return c[0]},t.yaxis.p2c=function(){return c[1]},lG.hover(a,Zs.event,t.id)}),n.on("mouseout",function(){a._dragging||o_.unhover(a,Zs.event)}),n.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&q3e(Zs.event,a,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&lG.click(a,Zs.event))})};os.makeFramework=function(){var e=this,r=e.graphDiv,t=r._fullLayout,a="clip"+t._uid+e.id;e.clipDef=t._clips.append("clipPath").attr("id",a),e.clipRect=e.clipDef.append("rect"),e.framework=Zs.select(e.container).append("g").attr("class","geo "+e.id).call(uh.setClipUrl,a,r),e.project=function(n){var i=e.projection(n);return i?[i[0]-e.xaxis._offset,i[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(n){return e.project(n)[0]}},e.yaxis={_id:"y",c2p:function(n){return e.project(n)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},l_.setConvert(e.mockAxis,t)};os.saveViewInitial=function(e){var r=e.center||{},t=e.projection,a=t.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":t.scale};var n;e._isScoped?n={"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?n={"projection.rotation.lon":a.lon,"projection.rotation.lat":a.lat,"center.lon":r.lon,"center.lat":r.lat}:n={"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":a.lon},fh.extendFlat(this.viewInitial,n)};os.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};os._render=function(){var e=this.projection,r=e.getPath(),t;function a(i){var o=e(i.lonlat);return o?S3e(o[0],o[1]):null}function n(i){return e.isLonLatOverEdges(i.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",function(i){return r(i.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr("display",n).attr("transform",a)};function N3e(e){var r=e.projection,t=r.type,a=Gi.projNames[t];a="geo"+fh.titleCase(a);for(var n=s_[a]||k3e[a],i=n(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?Gi.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],s=function(c){return c?i:[]},u=0;u<l.length;u++){var f=l[u];typeof i[f]!="function"&&(i[f]=s)}return i.isLonLatOverEdges=function(c){if(i(c)===null)return!0;if(o){var d=i.rotate(),h=T3e(c,[-d[0],-d[1]]),p=o*Math.PI/180;return h>p}else return!1},i.getPath=function(){return M3e().projection(i)},i.getBounds=function(c){return i.getPath().bounds(c)},i.precision(Gi.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-Gi.clipPad),i}function B3e(e,r,t){var a=1e-6,n=2.5,i=r[e],o=Gi.scopeDefaults[r.scope],l,s,u;e==="lonaxis"?(l=o.lonaxisRange,s=o.lataxisRange,u=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,s=o.lonaxisRange,u=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-a],tick0:i.tick0,dtick:i.dtick};l_.setConvert(f,t);var c=l_.calcTicks(f);!r.isScoped&&e==="lonaxis"&&c.pop();for(var d=c.length,h=new Array(d),p=0;p<d;p++)for(var m=c[p].x,b=h[p]=[],y=s[0];y<s[1]+n;y+=n)b.push(u(m,y));return{type:"MultiLineString",coordinates:h}}function fG(e,r){var t=Gi.clipPad;let[a,n]=R3e([e[0]+t,e[1]-t]);var i=r[0]+t,o=r[1]-t,l=(n-a)/4;return{type:"Polygon",coordinates:[[[a,i],[a,o],[a+l,o],[a+2*l,o],[a+3*l,o],[n,o],[n,i],[n-l,i],[n-2*l,i],[n-3*l,i],[a,i]]]}}});var f_=oe((o_e,gG)=>{"use strict";var P2=Il(),I3e=I3().attributes,H3e=Fs().dash,q2=(ih(),xr(nh)),O3e=Zo().overrideAll,pG=(Mp(),xr(Ap)).default,mG={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:P2.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:H3e},U3e=gG.exports=O3e({domain:I3e({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:"locations",editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:pG(q2.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:pG(q2.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1},minscale:{valType:"number",min:0,dflt:0},maxscale:{valType:"number",min:0,dflt:null}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:P2.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:q2.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:q2.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:q2.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:q2.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:P2.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:P2.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:P2.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:P2.background},lonaxis:mG,lataxis:mG},"plot","from-root");U3e.uirevision={valType:"any",editType:"none"}});var bG=oe((l_e,yG)=>{"use strict";var G3e=pr(),Y3e=ka(),V3e=I3().defaults;yG.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+$/,""),d,h;function p(C,x){return G3e.coerce(d,h,o,C,x)}for(var m=0;m<f;m++){var b=u[m];r[b]?d=r[b]:d=r[b]={},h=Y3e.newContainer(t,b,c),n.noUirevision||p("uirevision",t.uirevision);var y={};y[s]=[m/f,(m+1)/f],V3e(h,t,p,y),n.id=b,l(d,h,p,n)}}});var wG=oe((s_e,xG)=>{"use strict";var dy=pr(),X3e=bG(),j3e=Pv().getSubplotData,{unwrapLonRange:W3e}=E2(),ch=(ih(),xr(nh)),Z3e=f_(),_G=ch.axesNames;xG.exports=function(r,t,a){X3e(r,t,a,{type:"geo",attributes:Z3e,handleDefaults:$3e,fullData:a,partition:"y"})};function $3e(e,r,t,a){var n=j3e(a.fullData,"geo",a.id),i=n.map(function(ie){return ie.index}),o=t("resolution"),l=t("scope"),s=ch.scopeDefaults[l],u=t("projection.type",s.projType),f=r._isAlbersUsa=u==="albers usa";f&&(l=r.scope="usa");var c=r._isScoped=l!=="world",d=r._isSatellite=u==="satellite",h=r._isConic=u.indexOf("conic")!==-1||u==="albers",p=r._isClipped=!!ch.lonaxisSpan[u];if(e.visible===!1){var m=dy.extendDeep({},r._template);m.showcoastlines=!1,m.showcountries=!1,m.showframe=!1,m.showlakes=!1,m.showland=!1,m.showocean=!1,m.showrivers=!1,m.showsubunits=!1,m.lonaxis&&(m.lonaxis.showgrid=!1),m.lataxis&&(m.lataxis.showgrid=!1),r._template=m}for(var b=t("visible"),y,C=0;C<_G.length;C++){var x=_G[C],_=[30,10][C],A;if(c)A=s[x+"Range"];else{var T=ch[x+"Span"],M=(T[u]||T["*"])/2,E=t("projection.rotation."+x.slice(0,3),s.projRotate[C]);A=[E-M,E+M]}var P=t(x+".range",A);t(x+".tick0"),t(x+".dtick",_),y=t(x+".showgrid",b?void 0:!1),y&&(t(x+".gridcolor"),t(x+".gridwidth"),t(x+".griddash")),r[x]._ax={type:"linear",_id:x.slice(0,3),_traceIndices:i,setScale:dy.identity,c2l:dy.identity,r2l:dy.identity,autorange:!0,range:P.slice(),_m:1,_input:{}}}var z=r.lonaxis.range,I=r.lataxis.range;let[X,H]=W3e(z);var V=(X+H)/2,N;if(!f){var Q=c?s.projRotate:[V,0,0];N=t("projection.rotation.lon",Q[0]),t("projection.rotation.lat",Q[1]),t("projection.rotation.roll",Q[2]),y=t("showcoastlines",!c&&b),y&&(t("coastlinecolor"),t("coastlinewidth")),y=t("showocean",b?void 0:!1),y&&t("oceancolor")}var ee,re;if(f?(ee=-96.6,re=38.7):(ee=c?V:N,re=(I[0]+I[1])/2),t("center.lon",ee),t("center.lat",re),d&&(t("projection.tilt"),t("projection.distance")),h){var ae=s.projParallels||[0,60];t("projection.parallels",ae)}if(t("projection.scale"),t("projection.minscale"),t("projection.maxscale"),y=t("showland",b?void 0:!1),y&&t("landcolor"),y=t("showlakes",b?void 0:!1),y&&t("lakecolor"),y=t("showrivers",b?void 0:!1),y&&(t("rivercolor"),t("riverwidth")),y=t("showcountries",c&&l!=="usa"&&b),y&&(t("countrycolor"),t("countrywidth")),(l==="usa"||l==="north america"&&o===50)&&(t("showsubunits",b),t("subunitcolor"),t("subunitwidth")),c||(y=t("showframe",b),y&&(t("framecolor"),t("framewidth"))),t("bgcolor"),t("fitbounds"),r.fitbounds){let ie=e.center||{},ue=e.projection||{},xe=ue.rotation||{},De=e.lonaxis||{},Ye=e.lataxis||{},Ee=[{dst:r.center,key:"lon",src:ie},{dst:r.center,key:"lat",src:ie},{dst:r.projection,key:"scale",src:ue}];c||(p?Ee.push({dst:r.projection.rotation,key:"lon",src:xe},{dst:r.projection.rotation,key:"lat",src:xe},{dst:r.lonaxis,key:"range",src:De},{dst:r.lataxis,key:"range",src:Ye}):Ee.push({dst:r.projection.rotation,key:"lon",src:xe})),p||Ee.push({key:"range",src:De},{key:"range",src:Ye}),Ee.some(({src:je,key:W})=>je[W]!=null)||ch.fitboundsIncompatible.has(u)?r.fitbounds=!1:Ee.forEach(({dst:je,key:W})=>je&&(je[W]=null))}}});var c_=oe((u_e,TG)=>{"use strict";var J3e=Pv().getSubplotCalcData,K3e=pr().counterRegex,Q3e=hG(),$s="geo",AG=K3e($s),MG={};MG[$s]={valType:"subplotid",dflt:$s,editType:"calc"};function eye(e){for(var r=e._fullLayout,t=e.calcdata,a=r._subplots[$s],n=0;n<a.length;n++){var i=a[n],o=J3e(t,$s,i),l=r[i],s=l._subplot;s||(s=Q3e({id:i,graphDiv:e,container:r._geolayer.node(),topojsonURL:e._context.topojsonURL,staticPlot:e._context.staticPlot}),r[i]._subplot=s),s.plot(o,r,e._promises)}}function rye(e,r,t,a){for(var n=a._subplots[$s]||[],i=0;i<n.length;i++){var o=n[i],l=a[o]._subplot;!r[o]&&l&&(l.framework.remove(),l.clipDef.remove())}}function tye(e){for(var r=e._fullLayout,t=r._subplots[$s],a=0;a<t.length;a++){var n=r[t[a]],i=n._subplot;i.updateFx(r,n)}}TG.exports={attr:$s,name:$s,idRoot:$s,idRegex:AG,attrRegex:AG,attributes:MG,layoutAttributes:f_(),supplyLayoutDefaults:wG(),plot:eye,updateFx:tye,clean:rye}});var CG=oe((f_e,kG)=>{"use strict";kG.exports={attributes:ah(),supplyDefaults:ZO(),colorbar:M9(),formatLabels:KO(),calc:aU(),calcGeoJSON:sy().calcGeoJSON,fitCoords:sy().fitCoords,plot:sy().plot,style:$8(),styleOnSelect:Ud().styleOnSelect,hoverPoints:XU(),eventData:WU(),selectPoints:JU(),moduleType:"trace",name:"scattergeo",basePlotModule:c_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var DG=oe((c_e,SG)=>{"use strict";SG.exports=CG()});var hy=oe((v_e,LG)=>{"use strict";var{hovertemplateAttrs:aye,templatefallbackAttrs:nye}=Vf(),rf=ah(),iye=Y1(),FG=Wo(),oye=Il().defaultLine,ef=Dn().extendFlat,EG=rf.marker.line;LG.exports=ef({locations:{valType:"data_array",editType:"calc"},locationmode:rf.locationmode,z:{valType:"data_array",editType:"calc"},geojson:ef({},rf.geojson,{}),featureidkey:rf.featureidkey,text:ef({},rf.text,{}),hovertext:ef({},rf.hovertext,{}),marker:{line:{color:ef({},EG.color,{dflt:oye}),width:ef({},EG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:rf.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:rf.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:ef({},FG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:aye(),hovertemplatefallback:nye(),showlegend:ef({},FG.showlegend,{dflt:!1})},iye("",{cLetter:"z",editTypeOverride:"calc"}))});var PG=oe((d_e,qG)=>{"use strict";var py=pr(),lye=V1(),sye=hy();qG.exports=function(r,t,a,n){function i(d,h){return py.coerce(r,t,sye,d,h)}var o=i("locations"),l=i("z");if(!(o&&o.length&&py.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var s=i("geojson"),u;(typeof s=="string"&&s!==""||py.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var c=i("marker.line.width");c&&i("marker.line.color"),i("marker.opacity"),lye(r,t,n,i,{prefix:"",cLetter:"z"}),py.coerceSelectionMarkerOpacity(t,i)}});var zG=oe((h_e,RG)=>{"use strict";RG.exports={min:"zmin",max:"zmax"}});var HG=oe((p_e,IG)=>{"use strict";var NG=Qt(),uye=(Za(),xr(nn)).BADNUM,fye=$p(),cye=Nd(),vye=e3();function BG(e){return e&&typeof e=="string"}IG.exports=function(r,t){var a=t._length,n=new Array(a),i;t.geojson?i=function(f){return BG(f)||NG(f)}:i=BG;for(var o=0;o<a;o++){var l=n[o]={},s=t.locations[o],u=t.z[o];i(s)&&NG(u)?(l.loc=s,l.z=u):(l.loc=null,l.z=uye),l.index=o}return cye(n,t),fye(r,t,{vals:t.z,containerStr:"",cLetter:"z"}),vye(n,t),n}});var my=oe((m_e,UG)=>{"use strict";var dye=Lt(),hye=Nt(),v_=da(),pye=Kp();function mye(e,r){r&&OG(e,r)}function OG(e,r){var t=r[0].trace,a=r[0].node3,n=a.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=pye.makeColorScaleFuncFromTrace(t);n.each(function(s){dye.select(this).attr("fill",l(s.z)).call(hye.stroke,s.mlc||o.color).call(v_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),v_.selectedPointStyle(n,t)}function gye(e,r){var t=r[0].node3,a=r[0].trace;a.selectedpoints?v_.selectedPointStyle(t.selectAll(".choroplethlocation"),a):OG(e,r)}UG.exports={style:mye,styleOnSelect:gye}});var gy=oe((g_e,VG)=>{"use strict";var yye=Lt(),GG=pr(),Rc=E2(),bye=X3().getTopojsonFeatures,YG=P0().findExtremes,_ye=my().style;function xye(e,r,t){var a=r.layers.backplot.select(".choroplethlayer");GG.makeTraceGroups(a,t,"trace choropleth").each(function(n){var i=yye.select(this),o=i.selectAll("path.choroplethlocation").data(GG.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),_ye(e,n)})}function wye(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Rc.extractTraceFeature(e):bye(t,n.topojson);let s=Rc.fitGeojsonBbox(t,a);for(var u=[],f=[],c=0;c<o;c++){var d=e[c],h=i==="geojson-id"?d.fOut:Rc.locationToFeature(i,d.loc,l);if(h){if(d.geojson=h,d.ct=h.properties.ct,d._polygons=Rc.feature2polygons(h),!s){let m=Rc.computeBbox(h);if(m){let[b,y,C,x]=m;u.push(b,C),f.push(y,x)}}}else d.geojson=null}if(s){let[m,b,y,C]=s;u=[m,y],f=[b,C]}var p={padded:!0};t._extremes.lon=YG(a.lonaxis._ax,u,p),t._extremes.lat=YG(a.lataxis._ax,f,p)}function Aye(e,r){let t=Rc.fitGeojsonCoords(e[0].trace,r);if(t.length)return t;let a=[];for(let n of e)n.geojson&&a.push(Rc.coordsOf(n.geojson));return a.flat()}VG.exports={calcGeoJSON:wye,fitCoords:Aye,plot:xye}});var jG=oe((y_e,XG)=>{"use strict";var Mye=Ga(),Tye=hy(),kye=pr().fillText,{ANTIMERIDIAN_LON_SHIFT:Cye}=E2();XG.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.subplot,l,s,u,f,c=[t,a];let d=[t+Cye,a];for(s=0;s<n.length;s++)if(l=n[s],f=!1,l._polygons){for(u=0;u<l._polygons.length;u++)l._polygons[u].contains(c)&&(f=!f),l._polygons[u].contains(d)&&(f=!f);if(f)break}if(!(!f||!l))return r.x0=r.x1=r.xa.c2p(l.ct),r.y0=r.y1=r.ya.c2p(l.ct),r.index=l.index,r.location=l.loc,r.z=l.z,r.zLabel=Mye.tickText(o.mockAxis,o.mockAxis.c2l(l.z),"hover").text,r.hovertemplate=l.hovertemplate,Sye(r,i,l),[r]};function Sye(e,r,t){if(!r.hovertemplate){var a=t.hi||r.hoverinfo,n=String(t.loc),i=a==="all"?Tye.hoverinfo.flags:a.split("+"),o=i.indexOf("name")!==-1,l=i.indexOf("location")!==-1,s=i.indexOf("z")!==-1,u=i.indexOf("text")!==-1,f=!o&&l,c=[];f?e.nameOverride=n:(o&&(e.nameOverride=r.name),l&&c.push(n)),s&&c.push(e.zLabel),u&&kye(t,r,c),e.extraText=c.join("<br>")}}});var ZG=oe((b_e,WG)=>{"use strict";WG.exports=function(r,t,a,n,i){r.location=t.location,r.z=t.z;var o=n[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r.ct=o.ct,r}});var JG=oe((__e,$G)=>{"use strict";$G.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s,u,f,c;if(t===!1)for(l=0;l<a.length;l++)a[l].selected=0;else for(l=0;l<a.length;l++)s=a[l],u=s.ct,u&&(f=n.c2p(u),c=i.c2p(u),t.contains([f,c],null,l,r)?(o.push({pointNumber:l,lon:u[0],lat:u[1]}),s.selected=1):s.selected=0);return o}});var QG=oe((x_e,KG)=>{"use strict";KG.exports={attributes:hy(),supplyDefaults:PG(),colorbar:zG(),calc:HG(),calcGeoJSON:gy().calcGeoJSON,fitCoords:gy().fitCoords,plot:gy().plot,style:my().style,styleOnSelect:my().styleOnSelect,hoverPoints:jG(),eventData:ZG(),selectPoints:JG(),moduleType:"trace",name:"choropleth",basePlotModule:c_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var rY=oe((w_e,eY)=>{"use strict";eY.exports=QG()});var pi=oe((A_e,aY)=>{"use strict";var tY=Object.getOwnPropertySymbols,Dye=Object.prototype.hasOwnProperty,Fye=Object.prototype.propertyIsEnumerable;function Eye(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Lye(){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}}aY.exports=Lye()?Object.assign:function(e,r){for(var t,a=Eye(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var o in t)Dye.call(t,o)&&(a[o]=t[o]);if(tY){n=tY(t);for(var l=0;l<n.length;l++)Fye.call(t,n[l])&&(a[n[l]]=t[n[l]])}}return a}});var mi=oe((M_e,iY)=>{var by=pi();function nY(){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={}}by(nY.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 d_(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(qt.local.invalidDate||qt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function yy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}by(d_.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(qt.local.invalidDate||qt.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(qt.local.differentCalendars||qt.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?"-":"")+yy(Math.abs(this.year()),4)+"-"+yy(this.month(),2)+"-"+yy(this.day(),2)}});function h_(){this.shortYearCutoff="+10"}by(h_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,qt.local.invalidDate||qt.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new d_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,qt.local.invalidYear||qt.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,qt.local.invalidYear||qt.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+yy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,qt.local.invalidYear||qt.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,qt.local.invalidMonth||qt.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,qt.local.invalidMonth||qt.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,qt.local.invalidYear||qt.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,qt.local.invalidDate||qt.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,qt.local.invalidDate||qt.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,qt.local.invalidDate||qt.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,qt.local.invalidDate||qt.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,qt.local.invalidDate||qt.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,qt.local.invalidDate||qt.regionalOptions[""].invalidDate);return qt.instance().fromJD(this.toJD(a)).toJSDate()},fromJSDate:function(e){return this.fromJD(qt.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,a){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(qt.local.differentCalendars||qt.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 p_(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}p_.prototype=new h_;by(p_.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,qt.local.invalidYear||qt.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,qt.local.invalidMonth||qt.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,qt.local.invalidDate||qt.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,qt.local.invalidDate||qt.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 qt=iY.exports=new nY;qt.cdate=d_;qt.baseCalendar=h_;qt.calendars.gregorian=p_});var oY=oe(()=>{var m_=pi(),$n=mi();m_($n.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"});$n.local=$n.regionalOptions[""];m_($n.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});m_($n.baseCalendar.prototype,{UNIX_EPOCH:$n.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:$n.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 $n.local.invalidFormat||$n.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(_,A){for(var T=1;x+T<e.length&&e.charAt(x+T)===_;)T++;return x+=T-1,Math.floor(T/(A||1))>1},f=function(_,A,T,M){var E=""+A;if(u(_,M))for(;E.length<T;)E="0"+E;return E},c=function(_,A,T,M){return u(_)?M[A]:T[A]},d=this,h=function(_){return typeof i=="function"?i.call(d,_,u("m")):b(f("m",_.month(),2))},p=function(_,A){return A?typeof l=="function"?l.call(d,_):l[_.month()-d.minMonth]:typeof o=="function"?o.call(d,_):o[_.month()-d.minMonth]},m=this.local.digits,b=function(_){return t.localNumbers&&m?m(_):_},y="",C=!1,x=0;x<e.length;x++)if(C)e.charAt(x)==="'"&&!u("'")?C=!1:y+=e.charAt(x);else switch(e.charAt(x)){case"d":y+=b(f("d",r.day(),2));break;case"D":y+=c("D",r.dayOfWeek(),a,n);break;case"o":y+=f("o",r.dayOfYear(),3);break;case"w":y+=f("w",r.weekOfYear(),2);break;case"m":y+=h(r);break;case"M":y+=p(r,u("M"));break;case"y":y+=u("y",2)?r.year():(r.year()%100<10?"0":"")+r.year()%100;break;case"Y":u("Y",2),y+=r.formatYear();break;case"J":y+=r.toJD();break;case"@":y+=(r.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":y+=(r.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":u("'")?y+="'":C=!0;break;default:y+=e.charAt(x)}return y},parseDate:function(e,r,t){if(r==null)throw $n.local.invalidArguments||$n.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,d=-1,h=-1,p=-1,m=!1,b=!1,y=function(X,H){for(var V=1;P+V<e.length&&e.charAt(P+V)===X;)V++;return P+=V-1,Math.floor(V/(H||1))>1},C=function(X,H){var V=y(X,H),N=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],Q=new RegExp("^-?\\d{1,"+N+"}"),ee=r.substring(E).match(Q);if(!ee)throw($n.local.missingNumberAt||$n.regionalOptions[""].missingNumberAt).replace(/\{0\}/,E);return E+=ee[0].length,parseInt(ee[0],10)},x=this,_=function(){if(typeof l=="function"){y("m");var X=l.call(x,r.substring(E));return E+=X.length,X}return C("m")},A=function(X,H,V,N){for(var Q=y(X,N)?V:H,ee=0;ee<Q.length;ee++)if(r.substr(E,Q[ee].length).toLowerCase()===Q[ee].toLowerCase())return E+=Q[ee].length,ee+x.minMonth;throw($n.local.unknownNameAt||$n.regionalOptions[""].unknownNameAt).replace(/\{0\}/,E)},T=function(){if(typeof u=="function"){var X=y("M")?u.call(x,r.substring(E)):s.call(x,r.substring(E));return E+=X.length,X}return A("M",s,u)},M=function(){if(r.charAt(E)!==e.charAt(P))throw($n.local.unexpectedLiteralAt||$n.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,E);E++},E=0,P=0;P<e.length;P++)if(b)e.charAt(P)==="'"&&!y("'")?b=!1:M();else switch(e.charAt(P)){case"d":h=C("d");break;case"D":A("D",n,i);break;case"o":p=C("o");break;case"w":C("w");break;case"m":d=_();break;case"M":d=T();break;case"y":var z=P;m=!y("y",2),P=z,c=C("y",2);break;case"Y":c=C("Y",2);break;case"J":f=C("J")+.5,r.charAt(E)==="."&&(E++,C("J"));break;case"@":f=C("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=C("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":E=r.length;break;case"'":y("'")?M():b=!0;break;default:M()}if(E<r.length)throw $n.local.unexpectedText||$n.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 d=="string"&&(d=o.call(this,c,d)),p>-1){d=1,h=p;for(var I=this.daysInMonth(c,d);h>I;I=this.daysInMonth(c,d))d++,h-=I}return f>-1?this.fromJD(f):this.newDate(c,d,h)},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 lY=oe(()=>{var tf=mi(),qye=pi(),g_=tf.instance();function _y(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_y.prototype=new tf.baseCalendar;qye(_y.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(Rye);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(zye);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(Nye);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 tf.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 tf.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=af[e-af[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,tf.local.invalidyear),n=nf[a-nf[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=g_.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=af[e-af[0]],a=t>>13,n=a?12:11;if(r>n)throw tf.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,tf.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=Iye(e,i,t,n);return g_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=g_.fromJD(e),t=Bye(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(Pye),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(_y.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 Pye=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Rye=/^\d?\d[iI]?/m,zye=/^闰?十?[一二三四五六七八九]?月/m,Nye=/^闰?十?[一二三四五六七八九]?/m;tf.calendars.chinese=_y;var af=[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],nf=[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 Bye(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=nf[n.year-nf[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=nf[i.year-nf[0]];var c=u>>9&4095,d=u>>5&15,h=u&31,p,m=new Date(c,d-1,h),b=new Date(n.year,n.month-1,n.day);p=Math.round((b-m)/(24*3600*1e3));var y=af[i.year-af[0]],C;for(C=0;C<13;C++){var x=y&1<<12-C?30:29;if(p<x)break;p-=x}var _=y>>13;return!_||C<_?(i.isIntercalary=!1,i.month=1+C):C===_?(i.isIntercalary=!0,i.month=C):(i.isIntercalary=!1,i.month=C),i.day=1+p,i}function Iye(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 d=af[o.year-af[0]],h=d>>13,p;h&&(o.month>h||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m<p;m++){var b=d&1<<12-m?30:29;c+=b}var y=nf[o.year-nf[0]],C=y>>9&4095,x=y>>5&15,_=y&31,A=new Date(C,x-1,_+c);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var sY=oe(()=>{var zc=mi(),Hye=pi();function y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y_.prototype=new zc.baseCalendar;Hye(y_.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,zc.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,zc.local.invalidYear||zc.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,zc.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,zc.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)}});zc.calendars.coptic=y_});var uY=oe(()=>{var Wu=mi(),Oye=pi();function b_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b_.prototype=new Wu.baseCalendar;Oye(b_.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,Wu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wu.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,Wu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Wu.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,Wu.local.invalidDate);return{century:Uye[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Wu.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 Uye={20:"Fruitbat",21:"Anchovy"};Wu.calendars.discworld=b_});var fY=oe(()=>{var Nc=mi(),Gye=pi();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new Nc.baseCalendar;Gye(__.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,Nc.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,Nc.local.invalidYear||Nc.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,Nc.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,Nc.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)}});Nc.calendars.ethiopian=__});var cY=oe(()=>{var of=mi(),Yye=pi();function x_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x_.prototype=new of.baseCalendar;Yye(x_.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,of.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,xy(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,of.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,of.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,of.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&xy(this.daysInYear(e),10)===5?30:r===9&&xy(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,of.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,of.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 xy(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 xy(e,r){return e-r*Math.floor(e/r)}of.calendars.hebrew=x_});var vY=oe(()=>{var vh=mi(),Vye=pi();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new vh.baseCalendar;Vye(w_.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,vh.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,vh.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,vh.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)}});vh.calendars.islamic=w_});var dY=oe(()=>{var dh=mi(),Xye=pi();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new dh.baseCalendar;Xye(A_.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,dh.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,dh.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,dh.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)}});dh.calendars.julian=A_});var pY=oe(()=>{var pl=mi(),jye=pi();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new pl.baseCalendar;jye(T_.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,pl.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,pl.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,pl.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,pl.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,pl.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,pl.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,pl.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,pl.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,pl.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=M_(e+8+340,365);return[Math.floor(r/20)+1,M_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[hY(e+20,20),hY(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,pl.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 M_(e,r){return e-r*Math.floor(e/r)}function hY(e,r){return M_(e-1,r)+1}pl.calendars.mayan=T_});var gY=oe(()=>{var Bc=mi(),Wye=pi();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new Bc.baseCalendar;var mY=Bc.instance("gregorian");Wye(k_.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,Bc.local.invalidYear||Bc.regionalOptions[""].invalidYear);return mY.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,Bc.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,Bc.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+mY.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)}});Bc.calendars.nanakshahi=k_});var yY=oe(()=>{var Ic=mi(),Zye=pi();function C_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C_.prototype=new Ic.baseCalendar;Zye(C_.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,Ic.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,Ic.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,Ic.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Ic.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=Ic.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]}});Ic.calendars.nepali=C_});var bY=oe(()=>{var R2=mi(),$ye=pi();function Ay(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function wy(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}Ay.prototype=new R2.baseCalendar;$ye(Ay.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,R2.local.invalidYear);return wy(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,R2.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,R2.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i<e;i++)wy(i)&&n++;else if(e<0)for(var i=e;i<0;i++)wy(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,wy(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)}});R2.calendars.persian=Ay;R2.calendars.jalali=Ay});var _Y=oe(()=>{var Hc=mi(),Jye=pi(),My=Hc.instance();function S_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S_.prototype=new Hc.baseCalendar;Jye(S_.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,Hc.local.invalidYear),t=this._t2gYear(r.year());return My.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Hc.local.invalidYear),n=this._t2gYear(a.year());return My.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Hc.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,Hc.local.invalidDate),n=this._t2gYear(a.year());return My.toJD(n,a.month(),a.day())},fromJD:function(e){var r=My.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)}});Hc.calendars.taiwan=S_});var xY=oe(()=>{var Oc=mi(),Kye=pi(),Ty=Oc.instance();function D_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D_.prototype=new Oc.baseCalendar;Kye(D_.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,Oc.local.invalidYear),t=this._t2gYear(r.year());return Ty.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Oc.local.invalidYear),n=this._t2gYear(a.year());return Ty.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oc.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,Oc.local.invalidDate),n=this._t2gYear(a.year());return Ty.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Ty.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)}});Oc.calendars.thai=D_});var wY=oe(()=>{var Uc=mi(),Qye=pi();function F_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F_.prototype=new Uc.baseCalendar;Qye(F_.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,Uc.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,Uc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;i<lf.length;i++){if(lf[i]>a)return lf[n]-lf[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,Uc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+lf[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;a<lf.length&&!(lf[a]>r);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-lf[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Uc.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=Uc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Uc.calendars.ummalqura=F_;var lf=[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 MY=oe((rxe,AY)=>{"use strict";AY.exports=mi();oY();lY();sY();uY();fY();cY();vY();dY();pY();gY();yY();bY();_Y();xY();wY()});var EY=oe((txe,FY)=>{"use strict";var kY=MY(),hh=pr(),CY=(Za(),xr(nn)),e4e=CY.EPOCHJD,r4e=CY.ONEDAY,q_={valType:"enumerated",values:hh.sortObjectKeys(kY.calendars),editType:"calc",dflt:"gregorian"},SY=function(e,r,t,a){var n={};return n[t]=q_,hh.coerce(e,r,n,t,a)},t4e=function(e,r,t,a){for(var n=0;n<t.length;n++)SY(e,r,t[n]+"calendar",a.calendar)},a4e={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"},n4e={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"},i4e={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"]},ky="##",o4e={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:ky,w:ky,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function l4e(e,r,t){for(var a=Math.floor((r+.05)/r4e)+e4e,n=DY(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=o4e[l],u?(u===ky?f=ky:f=n.formatDate(u[o]),e=e.slice(0,i)+f+e.slice(i+s),i+=f.length):i+=s;return e}var TY={};function DY(e){var r=TY[e];return r||(r=TY[e]=kY.instance(e),r)}function ph(e){return hh.extendFlat({},q_,{description:e})}function P_(e){return"Sets the calendar system to use with `"+e+"` date data."}var L_={xcalendar:ph(P_("x"))},Js=hh.extendFlat({},L_,{ycalendar:ph(P_("y"))}),E_=hh.extendFlat({},Js,{zcalendar:ph(P_("z"))}),z2=ph(["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(" "));FY.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:Js,bar:Js,box:Js,heatmap:Js,contour:Js,histogram:Js,histogram2d:Js,histogram2dcontour:Js,scatter3d:E_,surface:E_,mesh3d:E_,scattergl:Js,ohlc:L_,candlestick:L_},layout:{calendar:ph(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:z2},yaxis:{calendar:z2},scene:{xaxis:{calendar:z2},yaxis:{calendar:z2},zaxis:{calendar:z2}},polar:{radialaxis:{calendar:z2}}}},layoutAttributes:q_,handleDefaults:SY,handleTraceDefaults:t4e,CANONICAL_SUNDAY:n4e,CANONICAL_TICK:a4e,DFLTRANGE:i4e,getCal:DY,worldCalFmt:l4e}});var qY=oe((axe,LY)=>{"use strict";LY.exports=EY()});var s4e=oe((nxe,RY)=>{var PY=UO();PY.register([DG(),rY(),qY()]);RY.exports=PY});return s4e();})();
/*! Bundled license information:

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

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

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

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