plotly.js
Version:
The open source javascript graphing library that powers plotly
50 lines • 1.4 MB
JavaScript
/**
* plotly.js (geo - minified) v4.1.1
* Copyright 2012-2026, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
(
function(root, factory) {
if (typeof module === "object" && module.exports) {
module.exports = factory();
} else {
root.moduleName = factory();
}
} (typeof self !== "undefined" ? self : this, () => {
"use strict";var Plotly=(()=>{var AY=Object.create;var J2=Object.defineProperty,MY=Object.defineProperties,TY=Object.getOwnPropertyDescriptor,kY=Object.getOwnPropertyDescriptors,CY=Object.getOwnPropertyNames,s_=Object.getOwnPropertySymbols,DY=Object.getPrototypeOf,c_=Object.prototype.hasOwnProperty,SY=Object.prototype.propertyIsEnumerable;var f_=(e,r,t)=>r in e?J2(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ha=(e,r)=>{for(var t in r||(r={}))c_.call(r,t)&&f_(e,t,r[t]);if(s_)for(var t of s_(r))SY.call(r,t)&&f_(e,t,r[t]);return e},Na=(e,r)=>MY(e,kY(r));var l1=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var ae=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},u1=(e,r)=>{for(var t in r)J2(e,t,{get:r[t],enumerable:!0})},v_=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of CY(r))!c_.call(e,n)&&n!==t&&J2(e,n,{get:()=>r[n],enumerable:!(a=TY(r,n))||a.enumerable});return e};var fy=(e,r,t)=>(t=e!=null?AY(DY(e)):{},v_(r||!e||!e.__esModule?J2(t,"default",{value:e,enumerable:!0}):t,e)),ei=e=>v_(J2({},"__esModule",{value:!0}),e);var $2=ae(h_=>{"use strict";h_.version="4.1.1"});var p_=ae((d_,yd)=>{(function(r,t,a){t[r]=t[r]||a(),typeof yd!="undefined"&&yd.exports&&(yd.exports=t[r])})("Promise",typeof window!="undefined"?window:d_,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(b){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(b,C){a.add(b,C),t||(t=i(a.drain))}function l(b){var C,x=typeof b;return b!=null&&(x=="object"||x=="function")&&(C=b.then),typeof C=="function"?C:!1}function u(){for(var b=0;b<this.chain.length;b++)s(this,this.state===1?this.chain[b].success:this.chain[b].failure,this.chain[b]);this.chain.length=0}function s(b,C,x){var _,A;try{C===!1?x.reject(b.msg):(C===!0?_=b.msg:_=C.call(void 0,b.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(b){var C,x=this;if(!x.triggered){x.triggered=!0,x.def&&(x=x.def);try{(C=l(b))?o(function(){var _=new d(x);try{C.call(b,function(){f.apply(_,arguments)},function(){c.apply(_,arguments)})}catch(A){c.call(_,A)}}):(x.msg=b,x.state=1,x.chain.length>0&&o(u,x))}catch(_){c.call(new d(x),_)}}}function c(b){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=b,C.state=2,C.chain.length>0&&o(u,C))}function h(b,C,x,_){for(var A=0;A<C.length;A++)(function(M){b.resolve(C[M]).then(function(P){x(M,P)},_)})(A)}function d(b){this.def=b,this.triggered=!1}function m(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var C=new m(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(u,C),T.promise},this.catch=function(_){return this.then(void 0,_)};try{b.call(void 0,function(_){f.call(C,_)},function(_){c.call(C,_)})}catch(x){c.call(C,x)}}var y=r({},"constructor",p,!1);return p.prototype=y,r(y,"__NPO__",0,!1),r(p,"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(p,"reject",function(C){return new this(function(_,A){if(typeof _!="function"||typeof A!="function")throw TypeError("Not a function");A(C)})}),r(p,"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;h(x,C,function(B,X){E[B]=X,++P===M&&A(E)},T)})}),r(p,"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");h(x,C,function(E,P){A(P)},T)})}),p})});var St=ae((Npe,bd)=>{(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,D=new Array(w);w--;)D[w]=g[w];return D}}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,u=o.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,D){u.call(this,g,w,D+"")},s.setProperty=function(g,w,D){f.call(this,g,w+"",D)}}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,D=v.length,F,L;if(arguments.length===1){for(;++w<D;)if((L=v[w])!=null&&L>=L){F=L;break}for(;++w<D;)(L=v[w])!=null&&F>L&&(F=L)}else{for(;++w<D;)if((L=g.call(v,v[w],w))!=null&&L>=L){F=L;break}for(;++w<D;)(L=g.call(v,v[w],w))!=null&&F>L&&(F=L)}return F},e.max=function(v,g){var w=-1,D=v.length,F,L;if(arguments.length===1){for(;++w<D;)if((L=v[w])!=null&&L>=L){F=L;break}for(;++w<D;)(L=v[w])!=null&&L>F&&(F=L)}else{for(;++w<D;)if((L=g.call(v,v[w],w))!=null&&L>=L){F=L;break}for(;++w<D;)(L=g.call(v,v[w],w))!=null&&L>F&&(F=L)}return F},e.extent=function(v,g){var w=-1,D=v.length,F,L,Y;if(arguments.length===1){for(;++w<D;)if((L=v[w])!=null&&L>=L){F=Y=L;break}for(;++w<D;)(L=v[w])!=null&&(F>L&&(F=L),Y<L&&(Y=L))}else{for(;++w<D;)if((L=g.call(v,v[w],w))!=null&&L>=L){F=Y=L;break}for(;++w<D;)(L=g.call(v,v[w],w))!=null&&(F>L&&(F=L),Y<L&&(Y=L))}return[F,Y]};function h(v){return v===null?NaN:+v}function d(v){return!isNaN(v)}e.sum=function(v,g){var w=0,D=v.length,F,L=-1;if(arguments.length===1)for(;++L<D;)d(F=+v[L])&&(w+=F);else for(;++L<D;)d(F=+g.call(v,v[L],L))&&(w+=F);return w},e.mean=function(v,g){var w=0,D=v.length,F,L=-1,Y=D;if(arguments.length===1)for(;++L<D;)d(F=h(v[L]))?w+=F:--Y;else for(;++L<D;)d(F=h(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,D=Math.floor(w),F=+v[D-1],L=w-D;return L?F+L*(v[D]-F):F},e.median=function(v,g){var w=[],D=v.length,F,L=-1;if(arguments.length===1)for(;++L<D;)d(F=h(v[L]))&&w.push(F);else for(;++L<D;)d(F=h(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,D=0,F,L,Y=0,N=-1,Z=0;if(arguments.length===1)for(;++N<w;)d(F=h(v[N]))&&(L=F-D,D+=L/++Z,Y+=L*(F-D));else for(;++N<w;)d(F=h(g.call(v,v[N],N)))&&(L=F-D,D+=L/++Z,Y+=L*(F-D));if(Z>1)return Y/(Z-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function m(v){return{left:function(g,w,D,F){for(arguments.length<3&&(D=0),arguments.length<4&&(F=g.length);D<F;){var L=D+F>>>1;v(g[L],w)<0?D=L+1:F=L}return D},right:function(g,w,D,F){for(arguments.length<3&&(D=0),arguments.length<4&&(F=g.length);D<F;){var L=D+F>>>1;v(g[L],w)>0?F=L:D=L+1}return D}}}var p=m(c);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(v){return m(v.length===1?function(g,w){return c(v(g),w)}:v)},e.shuffle=function(v,g,w){(D=arguments.length)<3&&(w=v.length,D<2&&(g=0));for(var D=w-g,F,L;D;)L=Math.random()*D--|0,F=v[D+g],v[D+g]=v[L+g],v[L+g]=F;return v},e.permute=function(v,g){for(var w=g.length,D=new Array(w);w--;)D[w]=v[g[w]];return D},e.pairs=function(v){for(var g=0,w=v.length-1,D,F=v[0],L=new Array(w<0?0:w);g<w;)L[g]=[D=F,F=v[++g]];return L},e.transpose=function(v){if(!(L=v.length))return[];for(var g=-1,w=e.min(v,y),D=new Array(w);++g<w;)for(var F=-1,L,Y=D[g]=new Array(L);++F<L;)Y[F]=v[F][g];return D};function y(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,D=-1,F=0,L,Y;++D<g;)F+=v[D].length;for(L=new Array(F);--g>=0;)for(Y=v[g],w=Y.length;--w>=0;)L[--F]=Y[w];return L};var b=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 D=[],F=C(b(w)),L=-1,Y;if(v*=F,g*=F,w*=F,w<0)for(;(Y=v+w*++L)>g;)D.push(Y/F);else for(;(Y=v+w*++L)<g;)D.push(Y/F);return D};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(N,Z){w.set(N,Z)});else if(Array.isArray(v)){var D=-1,F=v.length,L;if(arguments.length===1)for(;++D<F;)w.set(D,v[D]);else for(;++D<F;)w.set(g.call(v,L=v[D],D),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:B,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 B(){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=[],D,F;function L(N,Z,ne){if(ne>=g.length)return F?F.call(v,Z):D?Z.sort(D):Z;for(var ie=-1,ge=Z.length,ye=g[ne++],qe,Ye,be,Ce=new _,Fe;++ie<ge;)(Fe=Ce.get(qe=ye(Ye=Z[ie])))?Fe.push(Ye):Ce.set(qe,[Ye]);return N?(Ye=N(),be=function(Ge,Ve){Ye.set(Ge,L(N,Ve,ne))}):(Ye={},be=function(Ge,Ve){Ye[Ge]=L(N,Ve,ne)}),Ce.forEach(be),Ye}function Y(N,Z){if(Z>=g.length)return N;var ne=[],ie=w[Z++];return N.forEach(function(ge,ye){ne.push({key:ge,values:Y(ye,Z)})}),ie?ne.sort(function(ge,ye){return ie(ge.key,ye.key)}):ne}return v.map=function(N,Z){return L(Z,N,0)},v.entries=function(N){return Y(L(e.map,N,0),0)},v.key=function(N){return g.push(N),v},v.sortKeys=function(N){return w[g.length-1]=N,v},v.sortValues=function(N){return D=N,v},v.rollup=function(N){return F=N,v},v},e.set=function(v){var g=new V;if(v)for(var w=0,D=v.length;w<D;++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:B,size:X,empty:H,forEach:function(v){for(var g in this._)v.call(this,E(g))}}),e.behavior={};function I(v){return v}e.rebind=function(v,g){for(var w=1,D=arguments.length,F;++w<D;)v[F=arguments[w]]=Q(v,g,g[F]);return v};function Q(v,g,w){return function(){var D=w.apply(g,arguments);return D===g?v:D}}function le(v,g){if(g in v)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var w=0,D=re.length;w<D;++w){var F=re[w]+g;if(F in v)return F}}var re=["webkit","ms","moz","Moz","o","O"];function te(){}e.dispatch=function(){for(var v=new oe,g=-1,w=arguments.length;++g<w;)v[arguments[g]]=ce(v);return v};function oe(){}oe.prototype.on=function(v,g){var w=v.indexOf("."),D="";if(w>=0&&(D=v.slice(w+1),v=v.slice(0,w)),v)return arguments.length<2?this[v].on(D):this[v].on(D,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(D,null);return this}};function ce(v){var g=[],w=new _;function D(){for(var F=g,L=-1,Y=F.length,N;++L<Y;)(N=F[L].on)&&N.apply(this,arguments);return v}return D.on=function(F,L){var Y=w.get(F),N;return arguments.length<2?Y&&Y.on:(Y&&(Y.on=null,g=g.slice(0,N=g.indexOf(Y)).concat(g.slice(N+1)),w.remove(F)),L&&g.push(w.set(F,{on:L})),v)},D}e.event=null;function Me(){e.event.preventDefault()}function Se(){for(var v=e.event,g;g=v.sourceEvent;)v=g;return v}function Ie(v){for(var g=new oe,w=0,D=arguments.length;++w<D;)g[arguments[w]]=ce(g);return g.of=function(F,L){return function(Y){try{var N=Y.sourceEvent=e.event;Y.target=v,e.event=Y,g[Y.type].apply(F,L)}finally{e.event=N}}},g}e.requote=function(v){return v.replace(Ue,"\\$&")};var Ue=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ke={}.__proto__?function(v,g){v.__proto__=g}:function(v,g){for(var w in g)v[w]=g[w]};function We(v){return ke(v,K),v}var j=function(v,g){return g.querySelector(v)},ee=function(v,g){return g.querySelectorAll(v)},me=function(v,g){var w=v.matches||v[le(v,"matchesSelector")];return me=function(D,F){return w.call(D,F)},me(v,g)};typeof Sizzle=="function"&&(j=function(v,g){return Sizzle(v,g)[0]||null},ee=Sizzle,me=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var K=e.selection.prototype=[];K.select=function(v){var g=[],w,D,F,L;v=$(v);for(var Y=-1,N=this.length;++Y<N;){g.push(w=[]),w.parentNode=(F=this[Y]).parentNode;for(var Z=-1,ne=F.length;++Z<ne;)(L=F[Z])?(w.push(D=v.call(L,L.__data__,Z,Y)),D&&"__data__"in L&&(D.__data__=L.__data__)):w.push(null)}return We(g)};function $(v){return typeof v=="function"?v:function(){return j(v,this)}}K.selectAll=function(v){var g=[],w,D;v=se(v);for(var F=-1,L=this.length;++F<L;)for(var Y=this[F],N=-1,Z=Y.length;++N<Z;)(D=Y[N])&&(g.push(w=t(v.call(D,D.__data__,N,F))),w.parentNode=D);return We(g)};function se(v){return typeof v=="function"?v:function(){return ee(v,this)}}var _e="http://www.w3.org/1999/xhtml",Ne={svg:"http://www.w3.org/2000/svg",xhtml:_e,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};e.ns={prefix: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($e(g,v[g]));return this}return this.each($e(v,g))};function $e(v,g){v=e.ns.qualify(v);function w(){this.removeAttribute(v)}function D(){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 N(){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?D:w:typeof g=="function"?v.local?N:Y:v.local?L:F}function ar(v){return v.trim().replace(/\s+/g," ")}K.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node(),D=(v=fr(v)).length,F=-1;if(g=w.classList){for(;++F<D;)if(!g.contains(v[F]))return!1}else for(g=w.getAttribute("class");++F<D;)if(!tr(v[F]).test(g))return!1;return!0}for(g in v)this.each(Re(g,v[g]));return this}return this.each(Re(v,g))};function tr(v){return new RegExp("(?:^|\\s+)"+e.requote(v)+"(?:\\s+|$)","g")}function fr(v){return(v+"").trim().split(/^|\s+/)}function Re(v,g){v=fr(v).map(ur);var w=v.length;function D(){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:D}function ur(v){var g=tr(v);return function(w,D){if(F=w.classList)return D?F.add(v):F.remove(v);var F=w.getAttribute("class")||"";D?(g.lastIndex=0,g.test(F)||w.setAttribute("class",ar(F+" "+v))):w.setAttribute("class",ar(F.replace(g," ")))}}K.style=function(v,g,w){var D=arguments.length;if(D<3){if(typeof v!="string"){D<2&&(g="");for(w in v)this.each(hr(w,v[w],g));return this}if(D<2){var F=this.node();return i(F).getComputedStyle(F,null).getPropertyValue(v)}w=""}return this.each(hr(v,g,w))};function hr(v,g,w){function D(){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?D: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(dr(g,v[g]));return this}return this.each(dr(v,g))};function dr(v,g){function w(){delete this[v]}function D(){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:D}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=Ze(v),this.select(function(){return this.appendChild(v.apply(this,arguments))})};function Ze(v){function g(){var D=this.ownerDocument,F=this.namespaceURI;return F===_e&&D.documentElement.namespaceURI===_e?D.createElement(v):D.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=Ze(v),g=$(g),this.select(function(){return this.insertBefore(v.apply(this,arguments),g.apply(this,arguments)||null)})},K.remove=function(){return this.each(cr)};function cr(){var v=this.parentNode;v&&v.removeChild(this)}K.data=function(v,g){var w=-1,D=this.length,F,L;if(!arguments.length){for(v=new Array(D=(F=this[0]).length);++w<D;)(L=F[w])&&(v[w]=L.__data__);return v}function Y(ie,ge){var ye,qe=ie.length,Ye=ge.length,be=Math.min(qe,Ye),Ce=new Array(Ye),Fe=new Array(Ye),Ge=new Array(qe),Ve,Ee;if(g){var wr=new _,Gr=new Array(qe),jr;for(ye=-1;++ye<qe;)(Ve=ie[ye])&&(wr.has(jr=g.call(Ve,Ve.__data__,ye))?Ge[ye]=Ve:wr.set(jr,Ve),Gr[ye]=jr);for(ye=-1;++ye<Ye;)(Ve=wr.get(jr=g.call(ge,Ee=ge[ye],ye)))?Ve!==!0&&(Ce[ye]=Ve,Ve.__data__=Ee):Fe[ye]=Er(Ee),wr.set(jr,!0);for(ye=-1;++ye<qe;)ye in Gr&&wr.get(Gr[ye])!==!0&&(Ge[ye]=ie[ye])}else{for(ye=-1;++ye<be;)Ve=ie[ye],Ee=ge[ye],Ve?(Ve.__data__=Ee,Ce[ye]=Ve):Fe[ye]=Er(Ee);for(;ye<Ye;++ye)Fe[ye]=Er(ge[ye]);for(;ye<qe;++ye)Ge[ye]=ie[ye]}Fe.update=Ce,Fe.parentNode=Ce.parentNode=Ge.parentNode=ie.parentNode,N.push(Fe),Z.push(Ce),ne.push(Ge)}var N=Nr([]),Z=We([]),ne=We([]);if(typeof v=="function")for(;++w<D;)Y(F=this[w],v.call(F,F.parentNode.__data__,w));else for(;++w<D;)Y(F=this[w],v);return Z.enter=function(){return N},Z.exit=function(){return ne},Z};function Er(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,D,F;typeof v!="function"&&(v=Te(v));for(var L=0,Y=this.length;L<Y;L++){g.push(w=[]),w.parentNode=(D=this[L]).parentNode;for(var N=0,Z=D.length;N<Z;N++)(F=D[N])&&v.call(F,F.__data__,N,L)&&w.push(F)}return We(g)};function Te(v){return function(){return me(this,v)}}K.order=function(){for(var v=-1,g=this.length;++v<g;)for(var w=this[v],D=w.length-1,F=w[D],L;--D>=0;)(L=w[D])&&(F&&F!==L.nextSibling&&F.parentNode.insertBefore(L,F),F=L);return this},K.sort=function(v){v=Oe.apply(this,arguments);for(var g=-1,w=this.length;++g<w;)this[g].sort(v);return this.order()};function Oe(v){return arguments.length||(v=c),function(g,w){return g&&w?v(g.__data__,w.__data__):!g-!w}}K.each=function(v){return Ar(this,function(g,w,D){v.call(g,g.__data__,w,D)})};function Ar(v,g){for(var w=0,D=v.length;w<D;w++)for(var F=v[w],L=0,Y=F.length,N;L<Y;L++)(N=F[L])&&g(N,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],D=0,F=w.length;D<F;D++){var L=w[D];if(L)return L}return null},K.size=function(){var v=0;return Ar(this,function(){++v}),v};function Nr(v){return ke(v,Qe),v}var Qe=[];e.selection.enter=Nr,e.selection.enter.prototype=Qe,Qe.append=K.append,Qe.empty=K.empty,Qe.node=K.node,Qe.call=K.call,Qe.size=K.size,Qe.select=function(v){for(var g=[],w,D,F,L,Y,N=-1,Z=this.length;++N<Z;){F=(L=this[N]).update,g.push(w=[]),w.parentNode=L.parentNode;for(var ne=-1,ie=L.length;++ne<ie;)(Y=L[ne])?(w.push(F[ne]=D=v.call(L.parentNode,Y.__data__,ne,N)),D.__data__=Y.__data__):w.push(null)}return We(g)},Qe.insert=function(v,g){return arguments.length<2&&(g=Be(this)),K.insert.call(this,v,g)};function Be(v){var g,w;return function(D,F,L){var Y=v[L].update,N=Y.length,Z;for(L!=w&&(w=L,g=0),F>=g&&(g=F+1);!(Z=Y[g])&&++g<N;);return Z}}e.select=function(v){var g;return typeof v=="string"?(g=[j(v,a)],g.parentNode=a.documentElement):(g=[v],g.parentNode=n(v)),We([g])},e.selectAll=function(v){var g;return typeof v=="string"?(g=t(ee(v,a)),g.parentNode=a.documentElement):(g=t(v),g.parentNode=null),We([g])},K.on=function(v,g,w){var D=arguments.length;if(D<3){if(typeof v!="string"){D<2&&(g=!1);for(w in v)this.each(Xe(w,v[w],g));return this}if(D<2)return(D=this.node()["__on"+v])&&D._;w=!1}return this.each(Xe(v,g,w))};function Xe(v,g,w){var D="__on"+v,F=v.indexOf("."),L=kr;F>0&&(v=v.slice(0,F));var Y=yr.get(v);Y&&(v=Y,L=pr);function N(){var ie=this[D];ie&&(this.removeEventListener(v,ie,ie.$),delete this[D])}function Z(){var ie=L(g,t(arguments));N.call(this),this.addEventListener(v,this[D]=ie,ie.$=w),ie._=g}function ne(){var ie=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),ge;for(var ye in this)if(ge=ye.match(ie)){var qe=this[ye];this.removeEventListener(ge[1],qe,qe.$),delete this[ye]}}return F?g?Z:N:g?te:ne}var yr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&yr.forEach(function(v){"on"+v in a&&yr.remove(v)});function kr(v,g){return function(w){var D=e.event;e.event=w,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=D}}}function pr(v,g){var w=kr(v,g);return function(D){var F=this,L=D.relatedTarget;(!L||L!==F&&!(L.compareDocumentPosition(F)&8))&&w.call(F,D)}}var xr,Pr=0;function Fr(v){var g=".dragsuppress-"+ ++Pr,w="click"+g,D=e.select(i(v)).on("touchmove"+g,Me).on("dragstart"+g,Me).on("selectstart"+g,Me);if(xr==null&&(xr="onselectstart"in v?!1:le(v.style,"userSelect")),xr){var F=n(v).style,L=F[xr];F[xr]="none"}return function(Y){if(D.on(g,null),xr&&(F[xr]=L),Y){var N=function(){D.on(w,null)};D.on(w,function(){Me(),N()},!0),setTimeout(N,0)}}}e.mouse=function(v){return rr(v,Se())};var Hr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function rr(v,g){g.changedTouches&&(g=g.changedTouches[0]);var w=v.ownerSVGElement||v;if(w.createSVGPoint){var D=w.createSVGPoint();if(Hr<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();Hr=!(L.f||L.e),w.remove()}}return Hr?(D.x=g.pageX,D.y=g.pageY):(D.x=g.clientX,D.y=g.clientY),D=D.matrixTransform(v.getScreenCTM().inverse()),[D.x,D.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=Se().changedTouches),g){for(var D=0,F=g.length,L;D<F;++D)if((L=g[D]).identifier===w)return rr(v,L)}},e.behavior.drag=function(){var v=Ie(F,"drag","dragstart","dragend"),g=null,w=L(te,e.mouse,i,"mousemove","mouseup"),D=L(Cr,e.touch,I,"touchmove","touchend");function F(){this.on("mousedown.drag",w).on("touchstart.drag",D)}function L(Y,N,Z,ne,ie){return function(){var ge=this,ye=e.event.target.correspondingElement||e.event.target,qe=ge.parentNode,Ye=v.of(ge,arguments),be=0,Ce=Y(),Fe=".drag"+(Ce==null?"":"-"+Ce),Ge,Ve=e.select(Z(ye)).on(ne+Fe,Gr).on(ie+Fe,jr),Ee=Fr(ye),wr=N(qe,Ce);g?(Ge=g.apply(ge,arguments),Ge=[Ge.x-wr[0],Ge.y-wr[1]]):Ge=[0,0],Ye({type:"dragstart"});function Gr(){var Vr=N(qe,Ce),rt,tt;Vr&&(rt=Vr[0]-wr[0],tt=Vr[1]-wr[1],be|=rt|tt,wr=Vr,Ye({type:"drag",x:Vr[0]+Ge[0],y:Vr[1]+Ge[1],dx:rt,dy:tt}))}function jr(){N(qe,Ce)&&(Ve.on(ne+Fe,null).on(ie+Fe,null),Ee(be),Ye({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=Se().touches),g?t(g).map(function(w){var D=rr(v,w);return D.identifier=w.identifier,D}):[]};var vr=1e-6,Xr=vr*vr,Kr=Math.PI,Lr=2*Kr,Wr=Lr-vr,Ae=Kr/2,Pe=Kr/180,sr=180/Kr;function gr(v){return v>0?1:v<0?-1:0}function Bt(v,g,w){return(g[0]-v[0])*(w[1]-v[1])-(g[1]-v[1])*(w[0]-v[0])}function Gt(v){return v>1?0:v<-1?Kr:Math.acos(v)}function na(v){return v>1?Ae:v<-1?-Ae:Math.asin(v)}function Ma(v){return((v=Math.exp(v))-1/v)/2}function It(v){return((v=Math.exp(v))+1/v)/2}function jt(v){return((v=Math.exp(2*v))-1)/(v+1)}function da(v){return(v=Math.sin(v/2))*v}var ea=Math.SQRT2,mn=2,rn=4;e.interpolateZoom=function(v,g){var w=v[0],D=v[1],F=v[2],L=g[0],Y=g[1],N=g[2],Z=L-w,ne=Y-D,ie=Z*Z+ne*ne,ge,ye;if(ie<Xr)ye=Math.log(N/F)/ea,ge=function(Ge){return[w+Ge*Z,D+Ge*ne,F*Math.exp(ea*Ge*ye)]};else{var qe=Math.sqrt(ie),Ye=(N*N-F*F+rn*ie)/(2*F*mn*qe),be=(N*N-F*F-rn*ie)/(2*N*mn*qe),Ce=Math.log(Math.sqrt(Ye*Ye+1)-Ye),Fe=Math.log(Math.sqrt(be*be+1)-be);ye=(Fe-Ce)/ea,ge=function(Ge){var Ve=Ge*ye,Ee=It(Ce),wr=F/(mn*qe)*(Ee*jt(ea*Ve+Ce)-Ma(Ce));return[w+wr*Z,D+wr*ne,F*Ee/It(ea*Ve+Ce)]}}return ge.duration=ye*1e3,ge},e.behavior.zoom=function(){var v={x:0,y:0,k:1},g,w,D,F=[960,500],L=Un,Y=250,N=0,Z="mousedown.zoom",ne="mousemove.zoom",ie="mouseup.zoom",ge,ye="touchstart.zoom",qe,Ye=Ie(Ve,"zoomstart","zoom","zoomend"),be,Ce,Fe,Ge;ua||(ua="onwheel"in a?(Jr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Jr=function(){return e.event.wheelDelta},"mousewheel"):(Jr=function(){return-e.event.detail},"MozMousePixelScroll"));function Ve(Br){Br.on(Z,yt).on(ua+".zoom",an).on("dblclick.zoom",fa).on(ye,ra)}Ve.event=function(Br){Br.each(function(){var Tt=Ye.of(this,arguments),kt=v;Dn?e.select(this).transition().each("start.zoom",function(){v=this.__chart__||{x:0,y:0,k:1},tt(Tt)}).tween("zoom:zoom",function(){var ta=F[0],Xa=F[1],bn=w?w[0]:ta/2,Vn=w?w[1]:Xa/2,fi=e.interpolateZoom([(bn-v.x)/v.k,(Vn-v.y)/v.k,ta/v.k],[(bn-kt.x)/kt.k,(Vn-kt.y)/kt.k,ta/kt.k]);return function(Di){var ci=fi(Di),Gi=ta/ci[2];this.__chart__=v={x:bn-ci[0]*Gi,y:Vn-ci[1]*Gi,k:Gi},Mt(Tt)}}).each("interrupt.zoom",function(){nt(Tt)}).each("end.zoom",function(){nt(Tt)}):(this.__chart__=v,tt(Tt),Mt(Tt),nt(Tt))})},Ve.translate=function(Br){return arguments.length?(v={x:+Br[0],y:+Br[1],k:v.k},rt(),Ve):[v.x,v.y]},Ve.scale=function(Br){return arguments.length?(v={x:v.x,y:v.y,k:null},Gr(+Br),rt(),Ve):v.k},Ve.scaleExtent=function(Br){return arguments.length?(L=Br==null?Un:[+Br[0],+Br[1]],Ve):L},Ve.center=function(Br){return arguments.length?(D=Br&&[+Br[0],+Br[1]],Ve):D},Ve.size=function(Br){return arguments.length?(F=Br&&[+Br[0],+Br[1]],Ve):F},Ve.duration=function(Br){return arguments.length?(Y=+Br,Ve):Y},Ve.x=function(Br){return arguments.length?(Ce=Br,be=Br.copy(),v={x:0,y:0,k:1},Ve):Ce},Ve.y=function(Br){return arguments.length?(Ge=Br,Fe=Br.copy(),v={x:0,y:0,k:1},Ve):Ge};function Ee(Br){return[(Br[0]-v.x)/v.k,(Br[1]-v.y)/v.k]}function wr(Br){return[Br[0]*v.k+v.x,Br[1]*v.k+v.y]}function Gr(Br){v.k=Math.max(L[0],Math.min(L[1],Br))}function jr(Br,Tt){Tt=wr(Tt),v.x+=Br[0]-Tt[0],v.y+=Br[1]-Tt[1]}function Vr(Br,Tt,kt,ta){Br.__chart__={x:v.x,y:v.y,k:v.k},Gr(Math.pow(2,ta)),jr(w=Tt,kt),Br=e.select(Br),Y>0&&(Br=Br.transition().duration(Y)),Br.call(Ve.event)}function rt(){Ce&&Ce.domain(be.range().map(function(Br){return(Br-v.x)/v.k}).map(be.invert)),Ge&&Ge.domain(Fe.range().map(function(Br){return(Br-v.y)/v.k}).map(Fe.invert))}function tt(Br){N++||Br({type:"zoomstart"})}function Mt(Br){rt(),Br({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function nt(Br){--N||(Br({type:"zoomend"}),w=null)}function yt(){var Br=this,Tt=Ye.of(Br,arguments),kt=0,ta=e.select(i(Br)).on(ne,Vn).on(ie,fi),Xa=Ee(e.mouse(Br)),bn=Fr(Br);gt.call(Br),tt(Tt);function Vn(){kt=1,jr(e.mouse(Br),Xa),Mt(Tt)}function fi(){ta.on(ne,null).on(ie,null),bn(kt),nt(Tt)}}function ra(){var Br=this,Tt=Ye.of(Br,arguments),kt={},ta=0,Xa,bn=".zoom-"+e.event.changedTouches[0].identifier,Vn="touchmove"+bn,fi="touchend"+bn,Di=[],ci=e.select(Br),Gi=Fr(Br);Yi(),tt(Tt),ci.on(Z,null).on(ye,Yi);function Qn(){var Sl=e.touches(Br);return Xa=v.k,Sl.forEach(function(Xn){Xn.identifier in kt&&(kt[Xn.identifier]=Ee(Xn))}),Sl}function Yi(){var Sl=e.event.target;e.select(Sl).on(Vn,kf).on(fi,wY),Di.push(Sl);for(var Xn=e.event.changedTouches,No=0,bu=Xn.length;No<bu;++No)kt[Xn[No].identifier]=null;var Bo=Qn(),o1=Date.now();if(Bo.length===1){if(o1-qe<500){var Cf=Bo[0];Vr(Br,Cf,kt[Cf.identifier],Math.floor(Math.log(v.k)/Math.LN2)+1),Me()}qe=o1}else if(Bo.length>1){var Cf=Bo[0],o0=Bo[1],gd=Cf[0]-o0[0],u_=Cf[1]-o0[1];ta=gd*gd+u_*u_}}function kf(){var Sl=e.touches(Br),Xn,No,bu,Bo;gt.call(Br);for(var o1=0,Cf=Sl.length;o1<Cf;++o1,Bo=null)if(bu=Sl[o1],Bo=kt[bu.identifier]){if(No)break;Xn=bu,No=Bo}if(Bo){var o0=(o0=bu[0]-Xn[0])*o0+(o0=bu[1]-Xn[1])*o0,gd=ta&&Math.sqrt(o0/ta);Xn=[(Xn[0]+bu[0])/2,(Xn[1]+bu[1])/2],No=[(No[0]+Bo[0])/2,(No[1]+Bo[1])/2],Gr(gd*Xa)}qe=null,jr(Xn,No),Mt(Tt)}function wY(){if(e.event.touches.length){for(var Sl=e.event.changedTouches,Xn=0,No=Sl.length;Xn<No;++Xn)delete kt[Sl[Xn].identifier];for(var bu in kt)return void Qn()}e.selectAll(Di).on(bn,null),ci.on(Z,yt).on(ye,ra),Gi(),nt(Tt)}}function an(){var Br=Ye.of(this,arguments);ge?clearTimeout(ge):(gt.call(this),g=Ee(w=D||e.mouse(this)),tt(Br)),ge=setTimeout(function(){ge=null,nt(Br)},50),Me(),Gr(Math.pow(2,Jr()*.002)*v.k),jr(w,g),Mt(Br)}function fa(){var Br=e.mouse(this),Tt=Math.log(v.k)/Math.LN2;Vr(this,Br,Ee(Br),e.event.shiftKey?Math.ceil(Tt)-1:Math.floor(Tt)+1)}return e.rebind(Ve,Ye,"on")};var Un=[0,1/0],Jr,ua;e.color=Rt;function Rt(){}Rt.prototype.toString=function(){return this.rgb()+""},e.hsl=pa;function pa(v,g,w){return this instanceof pa?(this.h=+v,this.s=+g,void(this.l=+w)):arguments.length<2?v instanceof pa?new pa(v.h,v.s,v.l):eu(""+v,ru,pa):new pa(v,g,w)}var ya=pa.prototype=new Rt;ya.brighter=function(v){return v=Math.pow(.7,arguments.length?v:1),new pa(this.h,this.s,this.l/v)},ya.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new pa(this.h,this.s,v*this.l)},ya.rgb=function(){return ba(this.h,this.s,this.l)};function ba(v,g,w){var D,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,D=2*w-F;function L(N){return N>360?N-=360:N<0&&(N+=360),N<60?D+(F-D)*N/60:N<180?F:N<240?D+(F-D)*(240-N)/60:D}function Y(N){return Math.round(L(N)*255)}return new $a(Y(v+120),Y(v),Y(v-120))}e.hcl=Yt;function Yt(v,g,w){return this instanceof Yt?(this.h=+v,this.c=+g,void(this.l=+w)):arguments.length<2?v instanceof Yt?new Yt(v.h,v.c,v.l):v instanceof ma?Ql(v.l,v.a,v.b):Ql((v=ju((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new Yt(v,g,w)}var za=Yt.prototype=new Rt;za.brighter=function(v){return new Yt(this.h,this.c,Math.min(100,this.l+aa*(arguments.length?v:1)))},za.darker=function(v){return new Yt(this.h,this.c,Math.max(0,this.l-aa*(arguments.length?v:1)))},za.rgb=function(){return gn(this.h,this.c,this.l).rgb()};function gn(v,g,w){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new ma(w,Math.cos(v*=Pe)*g,Math.sin(v)*g)}e.lab=ma;function ma(v,g,w){return this instanceof ma?(this.l=+v,this.a=+g,void(this.b=+w)):arguments.length<2?v instanceof ma?new ma(v.l,v.a,v.b):v instanceof Yt?gn(v.h,v.c,v.l):ju((v=$a(v)).r,v.g,v.b):new ma(v,g,w)}var aa=18,Fa=.95047,Da=1,Co=1.08883,qi=ma.prototype=new Rt;qi.brighter=function(v){return new ma(Math.min(100,this.l+aa*(arguments.length?v:1)),this.a,this.b)},qi.darker=function(v){return new ma(Math.max(0,this.l-aa*(arguments.length?v:1)),this.a,this.b)},qi.rgb=function(){return Xu(this.l,this.a,this.b)};function Xu(v,g,w){var D=(v+16)/116,F=D+g/500,L=D-w/200;return F=ul(F)*Fa,D=ul(D)*Da,L=ul(L)*Co,new $a(sl(3.2404542*F-1.5371385*D-.4985314*L),sl(-.969266*F+1.8760108*D+.041556*L),sl(.0556434*F-.2040259*D+1.0572252*L))}function Ql(v,g,w){return v>0?new Yt(Math.atan2(w,g)*sr,Math.sqrt(g*g+w*w),v):new Yt(NaN,NaN,v)}function ul(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function Wu(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function sl(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=$a;function $a(v,g,w){return this instanceof $a?(this.r=~~v,this.g=~~g,void(this.b=~~w)):arguments.length<2?v instanceof $a?new $a(v.r,v.g,v.b):eu(""+v,$a,ba):new $a(v,g,w)}function Pi(v){return new $a(v>>16,v>>8&255,v&255)}function fl(v){return Pi(v)+""}var Ri=$a.prototype=new Rt;Ri.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,w=this.g,D=this.b,F=30;return!g&&!w&&!D?new $a(F,F,F):(g&&g<F&&(g=F),w&&w<F&&(w=F),D&&D<F&&(D=F),new $a(Math.min(255,g/v),Math.min(255,w/v),Math.min(255,D/v)))},Ri.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new $a(v*this.r,v*this.g,v*this.b)},Ri.hsl=function(){return ru(this.r,this.g,this.b)},Ri.toString=function(){return"#"+Ai(this.r)+Ai(this.g)+Ai(this.b)};function Ai(v){return v<16?"0"+Math.max(0,v).toString(16):Math.min(255,v).toString(16)}function eu(v,g,w){var D=0,F=0,L=0,Y,N,Z;if(Y=/([a-z]+)\((.*)\)/.exec(v=v.toLowerCase()),Y)switch(N=Y[2].split(","),Y[1]){case"hsl":return w(parseFloat(N[0]),parseFloat(N[1])/100,parseFloat(N[2])/100);case"rgb":return g(Zu(N[0]),Zu(N[1]),Zu(N[2]))}return(Z=it.get(v))?g(Z.r,Z.g,Z.b):(v!=null&&v.charAt(0)==="#"&&!isNaN(Z=parseInt(v.slice(1),16))&&(v.length===4?(D=(Z&3840)>>4,D=D>>4|D,F=Z&240,F=F>>4|F,L=Z&15,L=L<<4|L):v.length===7&&(D=(Z&16711680)>>16,F=(Z&65280)>>8,L=Z&255)),g(D,F,L))}function ru(v,g,w){var D=Math.min(v/=255,g/=255,w/=255),F=Math.max(v,g,w),L=F-D,Y,N,Z=(F+D)/2;return L?(N=Z<.5?L/(F+D):L/(2-F-D),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,N=Z>0&&Z<1?0:Y),new pa(Y,N,Z)}function ju(v,g,w){v=tu(v),g=tu(g),w=tu(w);var D=Wu((.4124564*v+.3575761*g+.1804375*w)/Fa),F=Wu((.2126729*v+.7151522*g+.072175*w)/Da),L=Wu((.0193339*v+.119192*g+.9503041*w)/Co);return ma(116*F-16,500*(D-F),200*(F-L))}function tu(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function Zu(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var it=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});it.forEach(function(v,g){it.set(v,Pi(g))});function lt(v){return typeof v=="function"?v:function(){return v}}e.functor=lt,e.xhr=Ut(I);function Ut(v){return function(g,w,D){return arguments.length===2&&typeof w=="function"&&(D=w,w=null),Or(g,w,v,D)}}function Or(v,g,w,D){var F={},L=e.dispatch("beforesend","progress","load","error"),Y={},N=new XMLHttpRequest,Z=null;self.XDomainRequest&&!("withCredentials"in N)&&/^(http(s)?:)?\/\//.test(v)&&(N=new XDomainRequest),"onload"in N?N.onload=N.onerror=ne:N.onreadystatechange=function(){N.readyState>3&&ne()};function ne(){var ie=N.status,ge;if(!ie&&ia(N)||ie>=200&&ie<300||ie===304){try{ge=w.call(F,N)}catch(ye){L.error.call(F,ye);return}L.load.call(F,ge)}else L.error.call(F,N)}return N.onprogress=function(ie){var ge=e.event;e.event=ie;try{L.progress.call(F,N)}finally{e.event=ge}},F.header=function(ie,ge){return ie=(ie+"").toLowerCase(),arguments.length<2?Y[ie]:(ge==null?delete Y[ie]:Y[ie]=ge+"",F)},F.mimeType=function(ie){return arguments.length?(g=ie==null?null:ie+"",F):g},F.responseType=function(ie){return arguments.length?(Z=ie,F):Z},F.response=function(ie){return w=ie,F},["get","post"].forEach(function(ie){F[ie]=function(){return F.send.apply(F,[ie].concat(t(arguments)))}}),F.send=function(ie,ge,ye){if(arguments.length===2&&typeof ge=="function"&&(ye=ge,ge=null),N.open(ie,v,!0),g!=null&&!("accept"in Y)&&(Y.accept=g+",*/*"),N.setRequestHeader)for(var qe in Y)N.setRequestHeader(qe,Y[qe]);return g!=null&&N.overrideMimeType&&N.overrideMimeType(g),Z!=null&&(N.responseType=Z),ye!=null&&F.on("error",ye).on("load",function(Ye){ye(null,Ye)}),L.beforesend.call(F,N),N.send(ge==null?null:ge),F},F.abort=function(){return N.abort(),F},e.rebind(F,L,"on"),D==null?F:F.get(vn(D))}function vn(v){return v.length===1?function(g,w){v(g==null?w:null)}:v}function ia(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var w=new RegExp('["'+v+`
]`),D=v.charCodeAt(0);function F(ne,ie,ge){arguments.length<3&&(ge=ie,ie=null);var ye=Or(ne,g,ie==null?L:Y(ie),ge);return ye.row=function(qe){return arguments.length?ye.response((ie=qe)==null?L:Y(qe)):ie},ye}function L(ne){return F.parse(ne.responseText)}function Y(ne){return function(ie){return F.parse(ie.responseText,ne)}}F.parse=function(ne,ie){var ge;return F.parseRows(ne,function(ye,qe){if(ge)return ge(ye,qe-1);var Ye=function(be){for(var Ce={},Fe=ye.length,Ge=0;Ge<Fe;++Ge)Ce[ye[Ge]]=be[Ge];return Ce};ge=ie?function(be,Ce){return ie(Ye(be),Ce)}:Ye})},F.parseRows=function(ne,ie){var ge={},ye={},qe=[],Ye=ne.length,be=0,Ce=0,Fe,Ge;function Ve(){if(be>=Ye)return ye;if(Ge)return Ge=!1,ge;var wr=be;if(ne.charCodeAt(wr)===34){for(var Gr=wr;Gr++<Ye;)if(ne.charCodeAt(Gr)===34){if(ne.charCodeAt(Gr+1)!==34)break;++Gr}be=Gr+2;var jr=ne.charCodeAt(Gr+1);return jr===13?(Ge=!0,ne.charCodeAt(Gr+2)===10&&++be):jr===10&&(Ge=!0),ne.slice(wr+1,Gr).replace(/""/g,'"')}for(;be<Ye;){var jr=ne.charCodeAt(be++),Vr=1;if(jr===10)Ge=!0;else if(jr===13)Ge=!0,ne.charCodeAt(be)===10&&(++be,++Vr);else if(jr!==D)continue;return ne.slice(wr,be-Vr)}return ne.slice(wr)}for(;(Fe=Ve())!==ye;){for(var Ee=[];Fe!==ge&&Fe!==ye;)Ee.push(Fe),Fe=Ve();ie&&(Ee=ie(Ee,Ce++))==null||qe.push(Ee)}return qe},F.format=function(ne){if(Array.isArray(ne[0]))return F.formatRows(ne);var ie=new V,ge=[];return ne.forEach(function(ye){for(var qe in ye)ie.has(qe)||ge.push(ie.add(qe))}),[ge.map(Z).join(v)].concat(ne.map(function(ye){return ge.map(function(qe){return Z(ye[qe])}).join(v)})).join(`
`)},F.formatRows=function(ne){return ne.map(N).join(`
`)};function N(ne){return ne.map(Z).join(v)}function Z(ne){return w.test(ne)?'"'+ne.replace(/\"/g,'""')+'"':ne}return F},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Ha,Ga,zn,cl,au=this[le(this,"requestAnimationFrame")]||function(v){setTimeout(v,17)};e.timer=function(){nu.apply(this,arguments)};function nu(v,g,w){var D=arguments.length;D<2&&(g=0),D<3&&(w=Date.now());var F=w+g,L={c:v,t:F,n:null};return Ga?Ga.n=L:Ha=L,Ga=L,zn||(cl=clearTimeout(cl),zn=1,au(zi)),L}function zi(){var v=Do(),g=vl()-v;g>24?(isFinite(g)&&(clearTimeout(cl),cl=setTimeout(zi,g)),zn=0):(zn=1,au(zi))}e.timer.flush=function(){Do(),vl()};function Do(){for(var v=Date.now(),g=Ha;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function vl(){for(var v,g=Ha,w=1/0;g;)g.c?(g.t<w&&(w=g.t),g=(v=g).n):g=v?v.n=g.n:Ha=g.n;return Ga=v,w}e.round=function(v,g){return g?Math.round(v*(g=Math.pow(10,g)))/g:Math.round(v)},e.geom={};function iu(v){return v[0]}function Ju(v){return v[1]}e.geom.hull=function(v){var g=iu,w=Ju;if(arguments.length)return D(v);function D(F){if(F.length<3)return[];var L=lt(g),Y=lt(w),N,Z=F.length,ne=[],ie=[];for(N=0;N<Z;N++)ne.push([+L.call(this,F[N],N),+Y.call(this,F[N],N),N]);for(ne.sort(Nc),N=0;N<Z;N++)ie.push([ne[N][0],-ne[N][1]]);var ge=rf(ne),ye=rf(ie),qe=ye[0]===ge[0],Ye=ye[ye.length-1]===ge[ge.length-1],be=[];for(N=ge.length-1;N>=0;--N)be.push(F[ne[ge[N]][2]]);for(N=+qe;N<ye.length-Ye;++N)be.push(F[ne[ye[N]][2]]);return be}return D.x=function(F){return arguments.length?(g=F,D):g},D.y=function(F){return arguments.length?(w=F,D):w},D};function rf(v){for(var g=v.length,w=[0,1],D=2,F=2;F<g;F++){for(;D>1&&Bt(v[w[D-2]],v[w[D-1]],v[F])<=0;)--D;w[D++]=F}return w.slice(0,D)}function Nc(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return ke(v,$u),v};var $u=e.geom.polygon.prototype=[];$u.area=function(){for(var v=-1,g=this.length,w,D=this[g-1],F=0;++v<g;)w=D,D=this[v],F+=w[1]*D[0]-w[0]*D[1];return F*.5},$u.centroid=function(v){var g=-1,w=this.length,D=0,F=0,L,Y=this[w-1],N;for(arguments.length||(v=-1/(6*this.area()));++g<w;)L=Y,Y=this[g],N=L[0]*Y[1]-Y[0]*L[1],D+=(L[0]+Y[0])*N,F+=(L[1]+Y[1])*N;return[D*v,F*v]},$u.clip=function(v){for(var g,w=hl(v),D=-1,F=this.length-hl(this),L,Y,N=this[F-1],Z,ne,ie;++D<F;){for(g=v.slice(),v.length=0,Z=this[D],ne=g[(Y=g.length-w)-1],L=-1;++L<Y;)ie=g[L],Ku(ie,N,Z)?(Ku(ne,N,Z)||v.push(Qu(ne,ie,N,Z)),v.push(ie)):Ku(ne,N,Z)&&v.push(Qu(ne,ie,N,Z)),ne=ie;w&&v.push(v[0]),N=Z}return v};function Ku(v,g,w){return(w[0]-g[0])*(v[1]-g[1])<(w[1]-g[1])*(v[0]-g[0])}function Qu(v,g,w,D){var F=v[0],L=w[0],Y=g[0]-F,N=D[0]-L,Z=v[1],ne=w[1],ie=g[1]-Z,ge=D[1]-ne,ye=(N*(Z-ne)-ge*(F-L))/(ge*Y-N*ie);return[F+ye*Y,Z+ye*ie]}function hl(v){var g=v[0],w=v[v.length-1];return!(g[0]-w[0]||g[1]-w[1])}var So,Fo,to,tf=[],Gs,ou,af=[];function Bc(){gl(this),this.edge=this.site=this.circle=null}function es(v){var g=tf.pop()||new Bc;return g.site=v,g}function ao(v){Lo(v),to.remove(v),tf.push(v),gl(v)}function rs(v){var g=v.circle,w=g.x,D=g.cy,F={x:w,y:D},L=v.P,Y=v.N,N=[v];ao(v);for(var Z=L;Z.circle&&b(w-Z.circle.x)<vr&&b(D-Z.circle.cy)<vr;)L=Z.P,N.unshift(Z),ao(Z),Z=L;N.unshift(Z),Lo(Z);for(var ne=Y;ne.circle&&b(w-ne.circle.x)<vr&&b(D-ne.circle.cy)<vr;)Y=ne.N,N.push(ne),ao(ne),ne=Y;N.push(ne),Lo(ne);var ie=N.length,ge;for(ge=1;ge<ie;++ge)ne=N[ge],Z=N[ge-1],io(ne.edge,Z.site,ne.site,F);Z=N[0],ne=N[ie-1],ne.edge=uu(Z.site,ne.site,null,F),Eo(Z),Eo(ne)}function Ic(v){for(var g=v.x,w=v.y,D,F,L,Y,N=to._;N;)if(L=ts(N,w)-g,L>vr)N=N.L;else if(Y=g-z2(N,w),Y>vr){if(!N.R){D=N;break}N=N.R}else{L>-vr?(D=N.P,F=N):Y>-vr?(D=N,F=N.N):D=F=N;break}var Z=es(v);if(to.insert(D,Z),!(!D&&!F)){if(D===F){Lo(D),F=es(D.site),to.insert(Z,F),Z.edge=F.edge=uu(D.site,Z.site),Eo(D),Eo(F);return}if(!F){Z.edge=uu(D.site,Z.site);return}Lo(D),Lo(F);var ne=D.site,ie=ne.x,ge=ne.y,ye=v.x-ie,qe=v.y-ge,Ye=F.site,be=Ye.x-ie,Ce=Ye.y-ge,Fe=2*(ye*Ce-qe*be),Ge=ye*ye+qe*qe,Ve=be*be+Ce*Ce,Ee={x:(Ce*Ge-qe*Ve)/Fe+ie,y:(ye*Ve-be*Ge)/Fe+ge};io(F.edge,ne,Ye,Ee),Z.edge=uu(ne,v,null,Ee),F.edge=uu(v,Ye,null,Ee),Eo(D),Eo(F)}}function ts(v,g){var w=v.site,D=w.x,F=w.y,L=F-g;if(!L)return D;var Y=v.P;if(!Y)return-1/0;w=Y.site;var N=w.x,Z=w.y,ne=Z-g;if(!ne)return N;var ie=N-D,ge=1/L-1/ne,ye=ie/ne;return ge?(-ye+Math.sqrt(ye*ye-2*ge*(ie*ie/(-2*ne)-Z+ne/2+F-L/2)))/ge+D:(D+N)/2}function z2(v,g){var w=v.N;if(w)return ts(w,g);var D=v.site;return D.y===g?D.x:1/0}function dl(v){this.site=v,this.edges=[]}dl.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(lu),v.length};function nf(v){for(var g=v[0][0],w=v[1][0],D=v[0][1],F=v[1][1],L,Y,N,Z,ne=Fo,ie=ne.length,ge,ye,qe,Ye,be,Ce;ie--;)if(ge=ne[ie],!(!ge||!ge.prepare()))for(qe=ge.edges,Ye=qe.length,ye=0;ye<Ye;)Ce=qe[ye].end(),N=Ce.x,Z=Ce.y,be=qe[++ye%Ye].start(),L=be.x,Y=be.y,(b(N-L)>vr||b(Z-Y)>vr)&&(qe.splice(ye,0,new pl(B2(ge.site,Ce,b(N-g)<vr&&F-Z>vr?{x:g,y:b(L-g)<vr?Y:F}:b(Z-F)<vr&&w-N>vr?{x:b(Y-F)<vr?L:w,y:F}:b(N-w)<vr&&Z-D>vr?{x:w,y:b(L-w)<vr?Y:D}:b(Z-D)<vr&&N-g>vr?{x:b(Y-D)<vr?L:g,y:D}:null),ge.site,null)),++Ye)}function lu(v,g){return g.angle-v.angle}function Hc(){gl(this),this.x=this.y=this.arc=this.site=this.cy=null}function Eo(v){var g=v.P,w=v.N;if(!(!g||!w)){var D=g.site,F=v.site,L=w.site;if(D!==L){var Y=F.x,N=F.y,Z=D.x-Y,ne=D.y-N,ie=L.x-Y,Ce=L.y-N,ge=2*(Z*Ce-ne*ie);if(!(ge>=-Xr)){var ye=Z*Z+ne*ne,qe=ie*ie+Ce*Ce,Ye=(Ce*ye-ne*qe)/ge,be=(Z*qe-ie*ye)/ge,Ce=be+N,Fe=af.pop()||new Hc;Fe.arc=v,Fe.site=F,Fe.x=Ye+Y,Fe.y=Ce+Math.sqrt(Ye*Ye+be*be),Fe.cy=Ce,v.circle=Fe;for(var Ge=null,Ve=ou._;Ve;)if(Fe.y<Ve.y||Fe.y===Ve.y&&Fe.x<=Ve.x)if(Ve.L)Ve=Ve.L;else{Ge=Ve.P;break}else if(Ve.R)Ve=Ve.R;else{Ge=Ve;break}ou.insert(Ge,Fe),Ge||(Gs=Fe)}}}}function Lo(v){var g=v.circle;g&&(g.P||(Gs=g.N),ou.remove(g),af.push(g),gl(g),v.circle=null)}function of(v,g,w,D){return function(F){var L=F.a,Y=F.b,N=L.x,Z=L.y,ne=Y.x,ie=Y.y,ge=0,ye=1,qe=ne-N,Ye=ie-Z,be;if(be=v-N,!(!qe&&be>0)){if(be/=qe,qe<0){if(be<ge)return;be<ye&&(ye=be)}else if(qe>0){if(be>ye)return;be>ge&&(ge=be)}if(be=w-N,!(!qe&&be<0)){if(be/=qe,qe<0){if(be>ye)return;be>ge&&(ge=be)}else if(qe>0){if(be<ge)return;be<ye&&(ye=be)}if(be=g-Z,!(!Ye&&be>0)){if(be/=Ye,Ye<0){if(be<ge)return;be<ye&&(ye=be)}else if(Ye>0){if(be>ye)return;be>ge&&(ge=be)}if(be=D-Z,!(!Ye&&be<0)){if(be/=Ye,Ye<0){if(be>ye)return;be>ge&&(ge=be)}else if(Ye>0){if(be<ge)return;be<ye&&(ye=be)}return ge>0&&(F.a={x:N+ge*qe,y:Z+ge*Ye}),ye<1&&(F.b={x:N+ye*qe,y:Z+ye*Ye}),F}}}}}}function Ni(v){for(var g=So,w=of(v[0][0],v[0][1],v[1][0],v[1][1]),D=g.length,F;D--;)F=g[D],(!N2(F,v)||!w(F)||b(F.a.x-F.b.x)<vr&&b(F.a.y-F.b.y)<vr)&&(F.a=F.b=null,g.splice(D,1))}function N2(v,g){var w=v.b;if(w)return!0;var D=v.a,F=g[0][0],L=g[1][0],Y=g[0][1],N=g[1][1],Z=v.l,ne=v.r,ie=Z.x,ge=Z.y,ye=ne.x,qe=ne.y,Ye=(ie+ye)/2,be=(ge+qe)/2,Ce,Fe;if(qe===ge){if(Ye<F||Ye>=L)return;if(ie>ye){if(!D)D={x:Ye,y:Y};else if(D.y>=N)return;w={x:Ye,y:N}}else{if(!D)D={x:Ye,y:N};else if(D.y<Y)return;w={x:Ye,y:Y}}}else if(Ce=(ie-ye)/(qe-ge),Fe=be-Ce*Ye,Ce<-1||Ce>1)if(ie>ye){if(!D)D={x:(Y-Fe)/Ce,y:Y};else if(D.y>=N)return;w={x:(N-Fe)/Ce,y:N}}else{if(!D)D={x:(N-Fe)/Ce,y:N};else if(D.y<Y)return;w={x:(Y-Fe)/Ce,y:Y}}else if(ge<qe){if(!D)D={x:F,y:Ce*F+Fe};else if(D.x>=L)return;w={x:L,y:Ce*L+Fe}}else{if(!D)D={x:L,y:Ce*L+Fe};else if(D.x<F)return;w={x:F,y:Ce*F+Fe}}return v.a=D,v.b=w,!0}function no(v,g){this.l=v,this.r=g,this.a=this.b=null}function uu(v,g,w,D){var F=new no(v,g);return So.push(F),w&&io(F,v,g,w),D&&io(F,g,v,D),Fo[v.i].edges.push(new pl(F,v,g)),Fo[g.i].edges.push(new pl(F,g,v)),F}function B2(v,g,w){var D=new no(v,null);return D.a=g,D.b=w,So.push(D),D}function io(v,g,w,D){!v.a&&!v.b?(v.a=D,v.l=g,v.r=w):v.l===w?v.b=D:v.a=D}function pl(v,g,w){var D=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-D.x,D.y-F.y):Math.atan2(D.x-F.x,F.y-D.y)}pl.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 ml(){this._=null}function gl(v){v.U=v.C=v.L=v.R=v.P=v.N=null}ml.prototype={insert:function(v,g){var w,D,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=Ys(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;)D=w.U,w===D.L?(F=D.R,F&&F.C?(w.C=F.C=!1,D.C=!0,v=D):(v===w.R&&(qo(this,w),v=w,w=v.U),w.C=!1,D.C=!0,as(this,D))):(F=D.L,F&&F.C?(w.C=F.C=!1,D.C=!0,v=D):(v===w.L&&(as(this,w),v=w,w=v.U),w.C=!1,D.C=!0,qo(this,D))),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,D=v.L,F=v.R,L,Y;if(D?F?L=Ys(F):L=D:L=F,g?g.L===v?g.L=L:g.R=L:this._=L,D&&F?(Y=L.C,L.C=v.C,L.L=D,D.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,qo(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,as(this,w),w=g.R),w.C=g.C,g.C=w.R.C=!1,qo(this,g),v=this._;break}}else if(w=g.L,w.C&&(w.C=!1,g.C=!0,as(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,qo(this,w),w=g.L),w.C=g.C,g.C=w.L.C=!1,as(this,g),v=this._;break}w.C=!0,v=g,g=g.U}while(!v.C);v&&(v.C=!1)}}};function qo(v,g){var w=g,D=g.R,F=w.U;F?F.L===w?F.L=D:F.R=D:v._=D,D.U=F,w.U=D,w.R=D.L,w.R&&(w.R.U=w),D.L=w}function as(v,g){var w=g,D=g.L,F=w.U;F?F.L===w?F.L=D:F.R=D:v._=D,D.U=F,w.U=D,w.L=D.R,w.L&&(w.L.U=w),D.R=w}function Ys(v){for(;v.L;)v=v.L;return v}function ns(v,g){var w=v.sort(is).pop(),D,F,L;for(So=[],Fo=new Array(v.length),to=new ml,ou=new ml;;)if(L=Gs,w&&(!L||w.y<L.y||w.y===L.y&&w.x<L.x))(w.x!==D||w.y!==F)&&(Fo[w.i]=new dl(w),Ic(w),D=w.x,F=w.y),w=v.pop();else if(L)rs(L.arc);else break;g&&(Ni(g),nf(g));var Y={cells:Fo,edges:So};return to=ou=So=Fo=null,Y}function is(v,g){return g.y-v.y||g.x-v.x}e.geom.voronoi=function(v){var g=iu,w=Ju,D=g,F=w,L=yl;if(v)return Y(v);function Y(Z){var ne=new Array(Z.length),ie=L[0][0],ge=L[0][1],ye=L[1][0],qe=L[1][1];return ns(N(Z),L).cells.forEach(function(Ye,be){var Ce=Ye.edges,Fe=Ye.site,Ge=ne[be]=Ce.length?Ce.map(function(Ve){var Ee=Ve.start();return[Ee.x,Ee.y]}):Fe.x>=ie&&Fe.x<=ye&&Fe.y>=ge&&Fe.y<=qe?[[ie,qe],[ye,qe],[ye,ge],[ie,ge]]:[];Ge.point=Z[be]}),ne}function N(Z){return Z.map(function(ne,ie){return{x:Math.round(D(ne,ie)/vr)*vr,y:Math.round(F(ne,ie)/vr)*vr,i:ie}})}return Y.links=function(Z){return ns(N(Z)).edges.filter(function(ne){return ne.l&&ne.r}).map(function(ne){return{source:Z[ne.l.i],target:Z[ne.r.i]}})},Y.triangles=function(Z){var ne=[];return ns(N(Z)).cells.forEach(function(ie,ge){for(var ye=ie.site,qe=ie.edges.sort(lu),Ye=-1,be=qe.length,Ce,Fe,Ge=qe[be-1].edge,Ve=Ge.l===ye?Ge.r:Ge.l;++Ye<be;)Ce=Ge,Fe=Ve,Ge=qe[Ye].edge,Ve=Ge.l===ye?Ge.r:Ge.l,ge<Fe.i&&ge<Ve.i&&su(ye,Fe,Ve)<0&&ne.push([Z[ge],Z[Fe.i],Z[Ve.i]])}),ne},Y.x=function(Z){return arguments.length?(D=lt(g=Z),Y):g},Y.y=function(Z){return arguments.length?(F=lt(w=Z),Y):w},Y.clipExtent=function(Z){return arguments.length?(L=Z==null?yl:Z,Y):L===yl?null:L},Y.size=function(Z){return arguments.length?Y.clipExtent(Z&&[[0,0],Z]):L===yl?null:L&&L[1]},Y};var yl=[[-1e6,-1e6],[1e6,1e6]];function su(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,D,F){var L=iu,Y=Ju,N;if(N=arguments.length)return L=fu,Y=Vs,N===3&&(F=w,D=g,w=g=0),Z(v);function Z(ne){var ie,ge=lt(L),ye=lt(Y),qe,Ye,be,Ce,Fe,Ge,Ve,Ee;if(g!=null)Fe=g,Ge=w,Ve=D,Ee=F;else if(Ve=Ee=-(Fe=Ge=1/0),qe=[],Ye=[],Ce=ne.length,N)for(be=0;be<Ce;++be)ie=ne[be],ie.x<Fe&&(Fe=ie.x),ie.y<Ge&&(Ge=ie.y),ie.x>Ve&&(Ve=ie.x),ie.y>Ee&&(Ee=ie.y),qe.push(ie.x),Ye.push(ie.y);else for(be=0;be<Ce;++be){var wr=+ge(ie=ne[be],be),Gr=+ye(ie,be);wr<Fe&&(Fe=wr),Gr<Ge&&(Ge=Gr),wr>Ve&&(Ve=wr),Gr>Ee&&(Ee=Gr),qe.push(wr),Ye.push(Gr)}var jr=Ve-Fe,Vr=Ee-Ge;jr>Vr?Ee=Ge+jr:Ve=Fe+Vr;function rt(nt,yt,ra,an,fa,Br,Tt,kt){if(!(isNaN(ra)||isNaN(an)))if(nt.leaf){var ta=nt.x,Xa=nt.y;if(ta!=null)if(b(ta-ra)+b(Xa-an)<.01)tt(nt,yt,ra,an,fa,Br,Tt,kt);else{var bn=nt.point;nt.x=nt.y=nt.point=null,tt(nt,bn,ta,Xa,fa,Br,Tt,kt),tt(nt,yt,ra,an,fa,Br,Tt,kt)}else nt.x=ra,nt.y=an,nt.point=yt}else tt(nt,yt,ra,an,fa,Br,Tt,kt)}function tt(nt,yt,ra,an,fa,Br,Tt,kt){var ta=(fa+Tt)*.5,Xa=(Br+kt)*.5,bn=ra>=ta,Vn=an>=Xa,fi=Vn<<1|bn;nt.leaf=!1,nt=nt.nodes[fi]||(nt.nodes[fi]=Xs()),bn?fa=ta:Tt=ta,Vn?Br=Xa:kt=Xa,rt(nt,yt,ra,an,fa,Br,Tt,kt)}var Mt=Xs();if(Mt.add=function(nt){rt(Mt,nt,+ge(nt,++be),+ye(nt,be),Fe,Ge,Ve,Ee)},Mt.visit=function(nt){Mi(nt,Mt,Fe,Ge,Ve,Ee)},Mt.find=function(nt){return Ws(Mt,nt[0],nt[1],Fe,Ge,Ve,Ee)},be=-1,g==null){for(;++be<Ce;)rt(Mt,ne[be],qe[be],Ye[be],Fe,Ge,Ve,Ee);--be}else ne.forEach(Mt.add);return qe=Ye=ne=ie=null,Mt}return Z.x=function(ne){return arguments.length?(L=ne,Z):L},Z.y=function(ne){return arguments.length?(Y=ne,Z):Y},Z.extent=function(ne){return arguments.length?(ne==null?g=w=D=F=null:(g=+ne[0][0],w=+ne[0][1],D=+ne[1][0],F=+ne[1][1]),Z):g==null?null:[[g,w],[D,F]]},Z.size=function(ne){return arguments.length?(ne==null?g=w=D=F=null:(g=w=0,D=+ne[0],F=+ne[1]),Z):g==null?null:[D-g,F-w]},Z};function fu(v){return v.x}function Vs(v){return v.y}function Xs(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Mi(v,g,w,D,F,L){if(!v(g,w,D,F,L)){var Y=(w+F)*.5,N=(D+L)*.5,Z=g.nodes;Z[0]&&Mi(v,Z[0],w,D,Y,N),Z[1]&&Mi(v,Z[1],Y,D,F,N),Z[2]&&Mi(v,Z[2],w,N,Y,L),Z[3]&&Mi(v,Z[3],Y,N,F,L)}}function Ws(v,g,w,D,F,L,Y){var N=1/0,Z;return(function ne(ie,ge,ye,qe,Ye){if(!(ge>L||ye>Y||qe<D||Ye<F)){if(be=ie.point){var be,Ce=g-ie.x,Fe=w-ie.y,Ge=Ce*Ce+Fe*Fe;if(Ge<N){var Ve=Math.sqrt(N=Ge);D=g-Ve,F=w-Ve,L=g+Ve,Y=w+Ve,Z=be}}for(var Ee=ie.nodes,wr=(ge+qe)*.5,Gr=(ye+Ye)*.5,jr=g>=wr,Vr=w>=Gr,rt=Vr<<1|jr,tt=rt+4;rt<tt;++rt)if(ie=Ee[rt&3])switch(rt&3){case 0:ne(ie,ge,ye,wr,Gr);break;case 1:ne(ie,wr,ye,qe,Gr);break;case 2:ne(ie,ge,Gr,wr,Ye);break;case 3:ne(ie,wr,Gr,qe,Ye);break}}})(v,D,F,L,Y),Z}e.interpolateRgb=js;function js(v,g){v=e.rgb(v),g=e.rgb(g);var w=v.r,D=v.g,F=v.b,L=g.r-w,Y=g.g-D,N=g.b-F;return function(Z){return"#"+Ai(Math.round(w+L*Z))+Ai(Math.round(D+Y*Z))+Ai(Math.round(F+N*Z))}}e.interpolateObject=$n;function $n(v,g){var w={},D={},F;for(F in v)F in g?w[F]=bl(v[F],g[F]):D[F]=v[F];for(F in g)F in v||(D[F]=g[F]);return function(L){for(F in w)D[F]=w[F](L);return D}}e.interpolateNumber=hn;function hn(v,g){return v=+v,g=+g,function(w){return v*(1-w)+g*w}}e.interpolateString=Nn;function Nn(v,g){var w=oo.lastIndex=os.lastIndex=0,D,F,L,Y=-1,N=[],Z=[];for(v=v+"",g=g+"";(D=oo.exec(v))&&(F=os.exec(g));)(L=F.index)>w&&(L=g.slice(w,L),N[Y]?N[Y]+=L:N[++Y]=L),(D=D[0])===(F=F[0])?N[Y]?N[Y]+=F:N[++Y]=F:(N[++Y]=null,Z.push({i:Y,x:hn(D,F)})),w=os.lastIndex;return w<g.length&&(L=g.slice(w),N[Y]?N[Y]+=L:N[++Y]=L),N.length<2?Z[0]?(g=Z[0].x,function(ne){return g(ne)+""}):function(){return g}:(g=Z.length,function(ne){for(var ie=0,ge;ie<g;++ie)N[(ge=Z[ie]).i]=ge.x(ne);return N.join("")})}var oo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,os=new RegExp(oo.source,"g");e.interpolate=bl;function bl(v,g){for(var w=e.interpolators.length,D;--w>=0&&!(D=e.interpolators[w](v,g)););return D}e.interpolators=[function(v,g){var w=typeof g;return(w==="string"?it.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?js:Nn:g instanceof Rt?js:Array.isArray(g)?cu:w==="object"&&isNaN(g)?$n:hn)(v,g)}],e.interpolateArray=cu;function cu(v,g){var w=[],D=[],F=v.length,L=g.length,Y=Math.min(v.length,g.length),N;for(N=0;N<Y;++N)w.push(bl(v[N],g[N]));for(;N<F;++N)D[N]=v[N];for(;N<L;++N)D[N]=g[N];return function(Z){for(N=0;N<Y;++N)D[N]=w[N](Z);return D}}var lf=function(){return I},Oc=e.map({linear:lf,poly:Gc,quad:function(){return ff},cubic:function(){return cf},sin:function(){return ls},exp:function(){return us},circle:function(){return Bi},elastic:Zs,back:ss,bounce:function(){return Js}}),I2=e.map({in:I,out:uf,"in-out":sf,"out-in":function(v){return sf(uf(v))}});e.ease=function(v){var g=v.indexOf("-"),w=g>=0?v.slice(0,g):v,D=g>=0?v.slice(g+1):"in";return w=Oc.get(w)||lf,D=I2.get(D)||I,H2(D(w.apply(null,r.call(arguments,1))))};function H2(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function uf(v){return function(g){return 1-v(1-g)}}function sf(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function ff(v){return v*v}function cf(v){return v*v*v}function Uc(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 Gc(v){return function(g){return Math.pow(g,v)}}function ls(v){return 1-Math.cos(v*Ae)}function us(v){return Math.pow(2,10*(v-1))}function Bi(v){return 1-Math.sqrt(1-v*v)}function Zs(v,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/Lr*Math.asin(1/v):(v=1,w=g/4),function(D){return 1+v*Math.pow(2,-10*D)*Math.sin((D-w)*Lr/g)}}function ss(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function Js(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=Yc;function Yc(v,g){v=e.hcl(v),g=e.hcl(g);var w=v.h,D=v.c,F=v.l,L=g.h-w,Y=g.c-D,N=g.l-F;return isNaN(Y)&&(Y=0,D=isNaN(D)?g.c:D),isNaN(L)?(L=0,w=isNaN(w)?g.h:w):L>180?L-=360:L<-180&&(L+=360),function(Z){return gn(w+L*Z,D+Y*Z,F+N*Z)+""}}e.interpolateHsl=vf;function vf(v,g){v=e.hsl(v),g=e.hsl(g);var w=v.h,D=v.s,F=v.l,L=g.h-w,Y=g.s-D,N=g.l-F;return isNaN(Y)&&(Y=0,D=isNaN(D)?g.s:D),isNaN(L)?(L=0,w=isNaN(w)?g.h:w):L>180?L-=360:L<-180&&(L+=360),function(Z){return ba(w+L*Z,D+Y*Z,F+N*Z)+""}}e.interpolateLab=O2;function O2(v,g){v=e.lab(v),g=e.lab(g);var w=v.l,D=v.a,F=v.b,L=g.l-w,Y=g.a-D,N=g.b-F;return function(Z){return Xu(w+L*Z,D+Y*Z,F+N*Z)+""}}e.interpolateRound=Po;function Po(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 D=g.transform.baseVal.consolidate()}return new $s(D?D.matrix:hf)})(v)};function $s(v){var g=[v.a,v.b],w=[v.c,v.d],D=fs(g),F=vu(g,w),L=fs(cs(w,g,-F))||0;g[0]*w[1]<w[0]*g[1]&&(g[0]*=-1,g[1]*=-1,D*=-1,F*=-1),this.rotate=(D?Math.atan2(g[1],g[0]):Math.atan2(-w[0],w[1]))*sr,this.translate=[v.e,v.f],this.scale=[D,L],this.skew=L?Math.atan2(F,L)*sr:0}$s.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function vu(v,g){return v[0]*g[0]+v[1]*g[1]}function fs(v){var g=Math.sqrt(vu(v,v));return g&&(v[0]/=g,v[1]/=g),g}function cs(v,g,w){return v[0]+=w*g[0],v[1]+=w*g[1],v}var hf={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=Ks;function Ro(v){return v.length?v.pop()+",":""}function Vc(v,g,w,D){if(v[0]!==g[0]||v[1]!==g[1]){var F=w.push("translate(",null,",",null,")");D.push({i:F-4,x:hn(v[0],g[0])},{i:F-2,x:hn(v[1],g[1])})}else(g[0]||g[1])&&w.push("translate("+g+")")}function df(v,g,w,D){v!==g?(v-g>180?g+=360:g-v>180&&(v+=360),D.push({i:w.push(Ro(w)+"rotate(",null,")")-2,x:hn(v,g)})):g&&w.push(Ro(w)+"rotate("+g+")")}function Xc(v,g,w,D){v!==g?D.push({i:w.push(Ro(w)+"skewX(",null,")")-2,x:hn(v,g)}):g&&w.push(Ro(w)+"skewX("+g+")")}function pf(v,g,w,D){if(v[0]!==g[0]||v[1]!==g[1]){var F=w.push(Ro(w)+"scale(",null,",",null,")");D.push({i:F-4,x:hn(v[0],g[0])},{i:F-2,x:hn(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(Ro(w)+"scale("+g+")")}function Ks(v,g){var w=[],D=[];return v=e.transform(v),g=e.transform(g),Vc(v.translate,g.translate,w,D),df(v.rotate,g.rotate,w,D),Xc(v.skew,g.skew,w,D),pf(v.scale,g.scale,w,D),v=g=null,function(F){for(var L=-1,Y=D.length,N;++L<Y;)w[(N=D[L]).i]=N.x(F);return w.join("")}}function mf(v,g){return g=(g-=v=+v)||1/g,function(w){return(w-v)/g}}function gf(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,D=v.length;++w<D;)g.push(U2(v[w]));return g}};function U2(v){for(var g=v.source,w=v.target,D=Ii(g,w),F=[g];g!==D;)g=g.parent,F.push(g);for(var L=F.length;w!==D;)F.splice(L,0,w),w=w.parent;return F}function yf(v){for(var g=[],w=v.parent;w!=null;)g.push(v),v=w,w=w.parent;return g.push(v),g}function Ii(v,g){if(v===g)return v;for(var w=yf(v),D=yf(g),F=w.pop(),L=D.pop(),Y=null;F===L;)Y=F,F=w.pop(),L=D.pop();return Y}e.layout.chord=function(){var v={},g,w,D,F,L=0,Y,N,Z;function ne(){var ge={},ye=[],qe=e.range(F),Ye=[],be,Ce,Fe,Ge,Ve;for(g=[],w=[],be=0,Ge=-1;++Ge<F;){for(Ce=0,Ve=-1;++Ve<F;)Ce+=D[Ge][Ve];ye.push(Ce),Ye.push(e.range(F)),be+=Ce}for(Y&&qe.sort(function(Mt,nt){return Y(ye[Mt],ye[nt])}),N&&Ye.forEach(function(Mt,nt){Mt.sort(function(yt,ra){return N(D[nt][yt],D[nt][ra])})}),be=(Lr-L*F)/be,Ce=0,Ge=-1;++Ge<F;){for(Fe=Ce,Ve=-1;++Ve<F;){var Ee=qe[Ge],wr=Ye[Ee][Ve],Gr=D[Ee][wr],jr=Ce,Vr=Ce+=Gr*be;ge[Ee+"-"+wr]={index:Ee,subindex:wr,startAngle:jr,endAngle:Vr,value:Gr}}w[Ee]={index:Ee,startAngle:Fe,endAngle:Ce,value:ye[Ee]},Ce+=L}for(Ge=-1;++Ge<F;)for(Ve=Ge-1;++Ve<F;){var rt=ge[Ge+"-"+Ve],tt=ge[Ve+"-"+Ge];(rt.value||tt.value)&&g.push(rt.value<tt.value?{source:tt,target:rt}:{source:rt,target:tt})}Z&&ie()}function ie(){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=(D=ge)&&D.length,g=w=null,v):D},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?(N=ge,g=null,v):N},v.sortChords=function(ge){return arguments.length?(Z=ge,g&&ie(),v):Z},v.chords=function(){return g||ne(),g},v.groups=function(){return w||ne(),w},v},e.layout.force=function(){var v={},g=e.dispatch("start","tick","end"),w,D=[1,1],F,L,Y=.9,N=jc,Z=G2,ne=-30,ie=Y2,ge=.1,ye=.64,qe=[],Ye=[],be,Ce,Fe;function Ge(Ee){return function(wr,Gr,jr,Vr){if(wr.point!==Ee){var rt=wr.cx-Ee.x,tt=wr.cy-Ee.y,Mt=Vr-Gr,nt=rt*rt+tt*tt;if(Mt*Mt/ye<nt){if(nt<ie){var yt=wr.charge/nt;Ee.px-=rt*yt,Ee.py-=tt*yt}return!0}if(wr.point&&nt&&nt<ie){var yt=wr.pointCharge/nt;Ee.px-=rt*yt,Ee.py-=tt*yt}}return!wr.charge}}v.tick=function(){if((L*=.99)<.005)return w=null,g.end({type:"end",alpha:L=0}),!0;var Ee=qe.length,wr=Ye.length,Gr,jr,Vr,rt,tt,Mt,nt,yt,ra;for(jr=0;jr<wr;++jr)Vr=Ye[jr],rt=Vr.source,tt=Vr.target,yt=tt.x-rt.x,ra=tt.y-rt.y,(Mt=yt*yt+ra*ra)&&(Mt=L*Ce[jr]*((Mt=Math.sqrt(Mt))-be[jr])/Mt,yt*=Mt,ra*=Mt,tt.x-=yt*(nt=rt.weight+tt.weight?rt.weight/(rt.weight+tt.weight):.5),tt.y-=ra*nt,rt.x+=yt*(nt=1-nt),rt.y+=ra*nt);if((nt=L*ge)&&(yt=D[0]/2,ra=D[1]/2,jr=-1,nt))for(;++jr<Ee;)Vr=qe[jr],Vr.x+=(yt-Vr.x)*nt,Vr.y+=(ra-Vr.y)*nt;if(ne)for(_l(Gr=e.geom.quadtree(qe),L,Fe),jr=-1;++jr<Ee;)(Vr=qe[jr]).fixed||Gr.visit(Ge(Vr));for(jr=-1;++jr<Ee;)Vr=qe[jr],Vr.fixed?(Vr.x=Vr.px,Vr.y=Vr.py):(Vr.x-=(Vr.px-(Vr.px=Vr.x))*Y,Vr.y-=(Vr.py-(Vr.py=Vr.y))*Y);g.tick({type:"tick",alpha:L})},v.nodes=function(Ee){return arguments.length?(qe=Ee,v):qe},v.links=function(Ee){return arguments.length?(Ye=Ee,v):Ye},v.size=function(Ee){return arguments.length?(D=Ee,v):D},v.linkDistance=function(Ee){return arguments.length?(N=typeof Ee=="function"?Ee:+Ee,v):N},v.distance=v.linkDistance,v.linkStrength=function(Ee){return arguments.length?(Z=typeof Ee=="function"?Ee:+Ee,v):Z},v.friction=function(Ee){return arguments.length?(Y=+Ee,v):Y},v.charge=function(Ee){return arguments.length?(ne=typeof Ee=="function"?Ee:+Ee,v):ne},v.chargeDistance=function(Ee){return arguments.length?(ie=Ee*Ee,v):Math.sqrt(ie)},v.gravity=function(Ee){return arguments.length?(ge=+Ee,v):ge},v.theta=function(Ee){return arguments.length?(ye=Ee*Ee,v):Math.sqrt(ye)},v.alpha=function(Ee){return arguments.length?(Ee=+Ee,L?Ee>0?L=Ee:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:L=0})):Ee>0&&(g.start({type:"start",alpha:L=Ee}),w=nu(v.tick)),v):L},v.start=function(){var Ee,wr=qe.length,Gr=Ye.length,jr=D[0],Vr=D[1],rt,tt;for(Ee=0;Ee<wr;++Ee)(tt=qe[Ee]).index=Ee,tt.weight=0;for(Ee=0;Ee<Gr;++Ee)tt=Ye[Ee],typeof tt.source=="number"&&(tt.source=qe[tt.source]),typeof tt.target=="number"&&(tt.target=qe[tt.target]),++tt.source.weight,++tt.target.weight;for(Ee=0;Ee<wr;++Ee)tt=qe[Ee],isNaN(tt.x)&&(tt.x=Mt("x",jr)),isNaN(tt.y)&&(tt.y=Mt("y",Vr)),isNaN(tt.px)&&(tt.px=tt.x),isNaN(tt.py)&&(tt.py=tt.y);if(be=[],typeof N=="function")for(Ee=0;Ee<Gr;++Ee)be[Ee]=+N.call(this,Ye[Ee],Ee);else for(Ee=0;Ee<Gr;++Ee)be[Ee]=N;if(Ce=[],typeof Z=="function")for(Ee=0;Ee<Gr;++Ee)Ce[Ee]=+Z.call(this,Ye[Ee],Ee);else for(Ee=0;Ee<Gr;++Ee)Ce[Ee]=Z;if(Fe=[],typeof ne=="function")for(Ee=0;Ee<wr;++Ee)Fe[Ee]=+ne.call(this,qe[Ee],Ee);else for(Ee=0;Ee<wr;++Ee)Fe[Ee]=ne;function Mt(nt,yt){if(!rt){for(rt=new Array(wr),fa=0;fa<wr;++fa)rt[fa]=[];for(fa=0;fa<Gr;++fa){var ra=Ye[fa];rt[ra.source.index].push(ra.target),rt[ra.target.index].push(ra.source)}}for(var an=rt[Ee],fa=-1,Br=an.length,Tt;++fa<Br;)if(!isNaN(Tt=an[fa][nt]))return Tt;return Math.random()*yt}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(I).on("dragstart.force",bf).on("drag.force",Ve).on("dragend.force",hu)),!arguments.length)return F;this.on("mouseover.force",_f).on("mouseout.force",Wc).call(F)};function Ve(Ee){Ee.px=e.event.x,Ee.py=e.event.y,v.resume()}return e.rebind(v,g,"on")};function bf(v){v.fixed|=2}function hu(v){v.fixed&=-7}function _f(v){v.fixed|=4,v.px=v.x,v.py=v.y}function Wc(v){v.fixed&=-5}function _l(v,g,w){var D=0,F=0;if(v.charge=0,!v.leaf)for(var L=v.nodes,Y=L.length,N=-1,Z;++N<Y;)Z=L[N],Z!=null&&(_l(Z,g,w),v.charge+=Z.charge,D+=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 ne=g*w[v.point.index];v.charge+=v.pointCharge=ne,D+=ne*v.point.x,F+=ne*v.point.y}v.cx=D/v.charge,v.cy=F/v.charge}var jc=20,G2=1,Y2=1/0;e.layout.hierarchy=function(){var v=Zc,g=V2,w=du;function D(F){var L=[F],Y=[],N;for(F.depth=0;(N=L.pop())!=null;)if(Y.push(N),(ne=g.call(D,N,N.depth))&&(Z=ne.length)){for(var Z,ne,ie;--Z>=0;)L.push(ie=ne[Z]),ie.parent=N,ie.depth=N.depth+1;w&&(N.value=0),N.children=ne}else w&&(N.value=+w.call(D,N,N.depth)||0),delete N.children;return Kn(F,function(ge){var ye,qe;v&&(ye=ge.children)&&ye.sort(v),w&&(qe=ge.parent)&&(qe.value+=ge.value)}),Y}return D.sort=function(F){return arguments.length?(v=F,D):v},D.children=function(F){return arguments.length?(g=F,D):g},D.value=function(F){return arguments.length?(w=F,D):w},D.revalue=function(F){return w&&(Hi(F,function(L){L.children&&(L.value=0)}),Kn(F,function(L){var Y;L.children||(L.value=+w.call(D,L,L.depth)||0),(Y=L.parent)&&(Y.value+=L.value)})),F},D};function lo(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=ui,v}function Hi(v,g){for(var w=[v];(v=w.pop())!=null;)if(g(v),(F=v.children)&&(D=F.length))for(var D,F;--D>=0;)w.push(F[D])}function Kn(v,g){for(var w=[v],D=[];(v=w.pop())!=null;)if(D.push(v),(Y=v.children)&&(L=Y.length))for(var F=-1,L,Y;++F<L;)w.push(Y[F]);for(;(v=D.pop())!=null;)g(v)}function V2(v){return v.children}function du(v){return v.value}function Zc(v,g){return g.value-v.value}function ui(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,N,Z){var ne=L.children;if(L.x=Y,L.y=L.depth*Z,L.dx=N,L.dy=Z,ne&&(ge=ne.length)){var ie=-1,ge,ye,qe;for(N=L.value?N/L.value:0;++ie<ge;)w(ye=ne[ie],Y,qe=ye.value*N,Z),Y+=qe}}function D(L){var Y=L.children,N=0;if(Y&&(ne=Y.length))for(var Z=-1,ne;++Z<ne;)N=Math.max(N,D(Y[Z]));return 1+N}function F(L,Y){var N=v.call(this,L,Y);return w(N[0],0,g[0],g[1]/D(N[0])),N}return F.size=function(L){return arguments.length?(g=L,F):g},lo(F,v)},e.layout.pie=function(){var v=Number,g=Jc,w=0,D=Lr,F=0;function L(Y){var N=Y.length,Z=Y.map(function(Ge,Ve){return+v.call(L,Ge,Ve)}),ne=+(typeof w=="function"?w.apply(this,arguments):w),ie=(typeof D=="function"?D.apply(this,arguments):D)-ne,ge=Math.min(Math.abs(ie)/N,+(typeof F=="function"?F.apply(this,arguments):F)),ye=ge*(ie<0?-1:1),qe=e.sum(Z),Ye=qe?(ie-N*ye)/qe:0,be=e.range(N),Ce=[],Fe;return g!=null&&be.sort(g===Jc?function(Ge,Ve){return Z[Ve]-Z[Ge]}:function(Ge,Ve){return g(Y[Ge],Y[Ve])}),be.forEach(function(Ge){Ce[Ge]={data:Y[Ge],value:Fe=Z[Ge],startAngle:ne,endAngle:ne+=Fe*Ye+ye,padAngle:ge}}),Ce}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?(D=Y,L):D},L.padAngle=function(Y){return arguments.length?(F=Y,L):F},L};var Jc={};e.layout.stack=function(){var v=I,g=e0,w=ds,D=Kc,F=$c,L=vs;function Y(N,Z){if(!(Ye=N.length))return N;var ne=N.map(function(Ge,Ve){return v.call(Y,Ge,Ve)}),ie=ne.map(function(Ge){return Ge.map(function(Ve,Ee){return[F.call(Y,Ve,Ee),L.call(Y,Ve,Ee)]})}),ge=g.call(Y,ie,Z);ne=e.permute(ne,ge),ie=e.permute(ie,ge);var ye=w.call(Y,ie,Z),qe=ne[0].length,Ye,be,Ce,Fe;for(Ce=0;Ce<qe;++Ce)for(D.call(Y,ne[0][Ce],Fe=ye[Ce],ie[0][Ce][1]),be=1;be<Ye;++be)D.call(Y,ne[be][Ce],Fe+=ie[be-1][Ce][1],ie[be][Ce][1]);return N}return Y.values=function(N){return arguments.length?(v=N,Y):v},Y.order=function(N){return arguments.length?(g=typeof N=="function"?N:Qs.get(N)||e0,Y):g},Y.offset=function(N){return arguments.length?(w=typeof N=="function"?N:hs.get(N)||ds,Y):w},Y.x=function(N){return arguments.length?(F=N,Y):F},Y.y=function(N){return arguments.length?(L=N,Y):L},Y.out=function(N){return arguments.length?(D=N,Y):D},Y};function $c(v){return v.x}function vs(v){return v.y}function Kc(v,g,w){v.y0=g,v.y=w}var Qs=e.map({"inside-out":function(v){var g=v.length,w,D,F=v.map(X2),L=v.map(ps),Y=e.range(g).sort(function(ge,ye){return F[ge]-F[ye]}),N=0,Z=0,ne=[],ie=[];for(w=0;w<g;++w)D=Y[w],N<Z?(N+=L[D],ne.push(D)):(Z+=L[D],ie.push(D));return ie.reverse().concat(ne)},reverse:function(v){return e.range(v.length).reverse()},default:e0}),hs=e.map({silhouette:function(v){var g=v.length,w=v[0].length,D=[],F=0,L,Y,N,Z=[];for(Y=0;Y<w;++Y){for(L=0,N=0;L<g;L++)N+=v[L][Y][1];N>F&&(F=N),D.push(N)}for(Y=0;Y<w;++Y)Z[Y]=(F-D[Y])/2;return Z},wiggle:function(v){var g=v.length,w=v[0],D=w.length,F,L,Y,N,Z,ne,ie,ge,ye,qe=[];for(qe[0]=ge=ye=0,L=1;L<D;++L){for(F=0,N=0;F<g;++F)N+=v[F][L][1];for(F=0,Z=0,ie=w[L][0]-w[L-1][0];F<g;++F){for(Y=0,ne=(v[F][L][1]-v[F][L-1][1])/(2*ie);Y<F;++Y)ne+=(v[Y][L][1]-v[Y][L-1][1])/ie;Z+=ne*v[F][L][1]}qe[L]=ge-=N?Z/N*ie:0,ge<ye&&(ye=ge)}for(L=0;L<D;++L)qe[L]-=ye;return qe},expand:function(v){var g=v.length,w=v[0].length,D=1/g,F,L,Y,N=[];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]=D}for(L=0;L<w;++L)N[L]=0;return N},zero:ds});function e0(v){return e.range(v.length)}function ds(v){for(var g=-1,w=v[0].length,D=[];++g<w;)D[g]=0;return D}function X2(v){for(var g=1,w=0,D=v[0][1],F,L=v.length;g<L;++g)(F=v[g][1])>D&&(w=g,D=F);return w}function ps(v){return v.reduce(xl,0)}function xl(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,w=pu,D=ms;function F(L,ye){for(var N=[],Z=L.map(g,this),ne=w.call(this,Z,ye),ie=D.call(this,ne,Z,ye),ge,ye=-1,qe=Z.length,Ye=ie.length-1,be=v?1:1/qe,Ce;++ye<Ye;)ge=N[ye]=[],ge.dx=ie[ye+1]-(ge.x=ie[ye]),ge.y=0;if(Ye>0)for(ye=-1;++ye<qe;)Ce=Z[ye],Ce>=ne[0]&&Ce<=ne[1]&&(ge=N[e.bisect(ie,Ce,1,Ye)-1],ge.y+=be,ge.push(L[ye]));return N}return F.value=function(L){return arguments.length?(g=L,F):g},F.range=function(L){return arguments.length?(w=lt(L),F):w},F.bins=function(L){return arguments.length?(D=typeof L=="number"?function(Y){return wl(Y,L)}:lt(L),F):D},F.frequency=function(L){return arguments.length?(v=!!L,F):v},F};function ms(v,g){return wl(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function wl(v,g){for(var w=-1,D=+v[0],F=(v[1]-D)/g,L=[];++w<=g;)L[w]=F*w+D;return L}function pu(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(r0),g=0,w=[1,1],D;function F(L,Y){var N=v.call(this,L,Y),Z=N[0],ne=w[0],ie=w[1],ge=D==null?Math.sqrt:typeof D=="function"?D:function(){return D};if(Z.x=Z.y=0,Kn(Z,function(qe){qe.r=+ge(qe.value)}),Kn(Z,e1),g){var ye=g*(D?1:Math.max(2*Z.r/ne,2*Z.r/ie))/2;Kn(Z,function(qe){qe.r+=ye}),Kn(Z,e1),Kn(Z,function(qe){qe.r-=ye})}return a0(Z,ne/2,ie/2,D?1:1/Math.max(2*Z.r/ne,2*Z.r/ie)),N}return F.size=function(L){return arguments.length?(w=L,F):w},F.radius=function(L){return arguments.length?(D=L==null||typeof L=="function"?L:+L,F):D},F.padding=function(L){return arguments.length?(g=+L,F):g},lo(F,v)};function r0(v,g){return v.value-g.value}function gs(v,g){var w=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=w,w._pack_prev=g}function Qc(v,g){v._pack_next=g,g._pack_prev=v}function t0(v,g){var w=g.x-v.x,D=g.y-v.y,F=v.r+g.r;return .999*F*F>w*w+D*D}function e1(v){if(!(g=v.children)||!(ye=g.length))return;var g,w=1/0,D=-1/0,F=1/0,L=-1/0,Y,N,Z,ne,ie,ge,ye;function qe(Ee){w=Math.min(Ee.x-Ee.r,w),D=Math.max(Ee.x+Ee.r,D),F=Math.min(Ee.y-Ee.r,F),L=Math.max(Ee.y+Ee.r,L)}if(g.forEach(r1),Y=g[0],Y.x=-Y.r,Y.y=0,qe(Y),ye>1&&(N=g[1],N.x=N.r,N.y=0,qe(N),ye>2))for(Z=g[2],tn(Y,N,Z),qe(Z),gs(Y,Z),Y._pack_prev=Z,gs(Z,N),N=Y._pack_next,ne=3;ne<ye;ne++){tn(Y,N,Z=g[ne]);var Ye=0,be=1,Ce=1;for(ie=N._pack_next;ie!==N;ie=ie._pack_next,be++)if(t0(ie,Z)){Ye=1;break}if(Ye==1)for(ge=Y._pack_prev;ge!==ie._pack_prev&&!t0(ge,Z);ge=ge._pack_prev,Ce++);Ye?(be<Ce||be==Ce&&N.r<Y.r?Qc(Y,N=ie):Qc(Y=ge,N),ne--):(gs(Y,Z),N=Z,qe(Z))}var Fe=(w+D)/2,Ge=(F+L)/2,Ve=0;for(ne=0;ne<ye;ne++)Z=g[ne],Z.x-=Fe,Z.y-=Ge,Ve=Math.max(Ve,Z.r+Math.sqrt(Z.x*Z.x+Z.y*Z.y));v.r=Ve,g.forEach(xf)}function r1(v){v._pack_next=v._pack_prev=v}function xf(v){delete v._pack_next,delete v._pack_prev}function a0(v,g,w,D){var F=v.children;if(v.x=g+=D*v.x,v.y=w+=D*v.y,v.r*=D,F)for(var L=-1,Y=F.length;++L<Y;)a0(F[L],g,w,D)}function tn(v,g,w){var D=v.r+w.r,F=g.x-v.x,L=g.y-v.y;if(D&&(F||L)){var Y=g.r+w.r,N=F*F+L*L;Y*=Y,D*=D;var Z=.5+(D-Y)/(2*N),ne=Math.sqrt(Math.max(0,2*Y*(D+N)-(D-=N)*D-Y*Y))/(2*N);w.x=v.x+Z*F+ne*L,w.y=v.y+Z*L-ne*F}else w.x=v.x+D,w.y=v.y}e.layout.tree=function(){var v=e.layout.hierarchy().sort(null).value(null),g=Ti,w=[1,1],D=null;function F(ie,ge){var ye=v.call(this,ie,ge),qe=ye[0],Ye=L(qe);if(Kn(Ye,Y),Ye.parent.m=-Ye.z,Hi(Ye,N),D)Hi(qe,ne);else{var be=qe,Ce=qe,Fe=qe;Hi(qe,function(wr){wr.x<be.x&&(be=wr),wr.x>Ce.x&&(Ce=wr),wr.depth>Fe.depth&&(Fe=wr)});var Ge=g(be,Ce)/2-be.x,Ve=w[0]/(Ce.x+g(Ce,be)/2+Ge),Ee=w[1]/(Fe.depth||1);Hi(qe,function(wr){wr.x=(wr.x+Ge)*Ve,wr.y=wr.depth*Ee})}return ye}function L(ie){for(var ge={A:null,children:[ie]},ye=[ge],qe;(qe=ye.pop())!=null;)for(var Ye=qe.children,be,Ce=0,Fe=Ye.length;Ce<Fe;++Ce)ye.push((Ye[Ce]=be={_:Ye[Ce],parent:qe,children:(be=Ye[Ce].children)&&be.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Ce}).a=be);return ge.children[0]}function Y(ie){var ge=ie.children,ye=ie.parent.children,qe=ie.i?ye[ie.i-1]:null;if(ge.length){wf(ie);var Ye=(ge[0].z+ge[ge.length-1].z)/2;qe?(ie.z=qe.z+g(ie._,qe._),ie.m=ie.z-Ye):ie.z=Ye}else qe&&(ie.z=qe.z+g(ie._,qe._));ie.parent.A=Z(ie,qe,ie.parent.A||ye[0])}function N(ie){ie._.x=ie.z+ie.parent.m,ie.m+=ie.parent.m}function Z(ie,ge,ye){if(ge){for(var qe=ie,Ye=ie,be=ge,Ce=qe.parent.children[0],Fe=qe.m,Ge=Ye.m,Ve=be.m,Ee=Ce.m,wr;be=n0(be),qe=mu(qe),be&&qe;)Ce=mu(Ce),Ye=n0(Ye),Ye.a=ie,wr=be.z+Ve-qe.z-Fe+g(be._,qe._),wr>0&&(ys(O(be,ie,ye),ie,wr),Fe+=wr,Ge+=wr),Ve+=be.m,Fe+=qe.m,Ee+=Ce.m,Ge+=Ye.m;be&&!n0(Ye)&&(Ye.t=be,Ye.m+=Ve-Ge),qe&&!mu(Ce)&&(Ce.t=qe,Ce.m+=Fe-Ee,ye=ie)}return ye}function ne(ie){ie.x*=w[0],ie.y=ie.depth*w[1]}return F.separation=function(ie){return arguments.length?(g=ie,F):g},F.size=function(ie){return arguments.length?(D=(w=ie)==null?ne:null,F):D?null:w},F.nodeSize=function(ie){return arguments.length?(D=(w=ie)==null?null:ne,F):D?w:null},lo(F,v)};function Ti(v,g){return v.parent==g.parent?1:2}function mu(v){var g=v.children;return g.length?g[0]:v.t}function n0(v){var g=v.children,w;return(w=g.length)?g[w-1]:v.t}function ys(v,g,w){var D=w/(g.i-v.i);g.c-=D,g.s+=w,v.c+=D,g.z+=w,g.m+=w}function wf(v){for(var g=0,w=0,D=v.children,F=D.length,L;--F>=0;)L=D[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=Ti,w=[1,1],D=!1;function F(L,Y){var N=v.call(this,L,Y),Z=N[0],ne,ie=0;Kn(Z,function(be){var Ce=be.children;Ce&&Ce.length?(be.x=he(Ce),be.y=J(Ce)):(be.x=ne?ie+=g(be,ne):0,be.y=0,ne=be)});var ge=ue(Z),ye=we(Z),qe=ge.x-g(ge,ye)/2,Ye=ye.x+g(ye,ge)/2;return Kn(Z,D?function(be){be.x=(be.x-Z.x)*w[0],be.y=(Z.y-be.y)*w[1]}:function(be){be.x=(be.x-qe)/(Ye-qe)*w[0],be.y=(1-(Z.y?be.y/Z.y:1))*w[1]}),N}return F.separation=function(L){return arguments.length?(g=L,F):g},F.size=function(L){return arguments.length?(D=(w=L)==null,F):D?null:w},F.nodeSize=function(L){return arguments.length?(D=(w=L)!=null,F):D?w:null},lo(F,v)};function J(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 ue(v){var g=v.children;return g&&g.length?ue(g[0]):v}function we(v){var g=v.children,w;return g&&(w=g.length)?we(g[w-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,w=[1,1],D=null,F=He,L=!1,Y,N="squarify",Z=.5*(1+Math.sqrt(5));function ne(be,Ce){for(var Fe=-1,Ge=be.length,Ve,Ee;++Fe<Ge;)Ee=(Ve=be[Fe]).value*(Ce<0?0:Ce),Ve.area=isNaN(Ee)||Ee<=0?0:Ee}function ie(be){var Ce=be.children;if(Ce&&Ce.length){var Fe=F(be),Ge=[],Ve=Ce.slice(),Ee,wr=1/0,Gr,jr=N==="slice"?Fe.dx:N==="dice"?Fe.dy:N==="slice-dice"?be.depth&1?Fe.dy:Fe.dx:Math.min(Fe.dx,Fe.dy),Vr;for(ne(Ve,Fe.dx*Fe.dy/be.value),Ge.area=0;(Vr=Ve.length)>0;)Ge.push(Ee=Ve[Vr-1]),Ge.area+=Ee.area,N!=="squarify"||(Gr=ye(Ge,jr))<=wr?(Ve.pop(),wr=Gr):(Ge.area-=Ge.pop().area,qe(Ge,jr,Fe,!1),jr=Math.min(Fe.dx,Fe.dy),Ge.length=Ge.area=0,wr=1/0);Ge.length&&(qe(Ge,jr,Fe,!0),Ge.length=Ge.area=0),Ce.forEach(ie)}}function ge(be){var Ce=be.children;if(Ce&&Ce.length){var Fe=F(be),Ge=Ce.slice(),Ve,Ee=[];for(ne(Ge,Fe.dx*Fe.dy/be.value),Ee.area=0;Ve=Ge.pop();)Ee.push(Ve),Ee.area+=Ve.area,Ve.z!=null&&(qe(Ee,Ve.z?Fe.dx:Fe.dy,Fe,!Ge.length),Ee.length=Ee.area=0);Ce.forEach(ge)}}function ye(be,Ce){for(var Fe=be.area,Ge,Ve=0,Ee=1/0,wr=-1,Gr=be.length;++wr<Gr;)(Ge=be[wr].area)&&(Ge<Ee&&(Ee=Ge),Ge>Ve&&(Ve=Ge));return Fe*=Fe,Ce*=Ce,Fe?Math.max(Ce*Ve*Z/Fe,Fe/(Ce*Ee*Z)):1/0}function qe(be,Ce,Fe,Ge){var Ve=-1,Ee=be.length,wr=Fe.x,Gr=Fe.y,jr=Ce?g(be.area/Ce):0,Vr;if(Ce==Fe.dx){for((Ge||jr>Fe.dy)&&(jr=Fe.dy);++Ve<Ee;)Vr=be[Ve],Vr.x=wr,Vr.y=Gr,Vr.dy=jr,wr+=Vr.dx=Math.min(Fe.x+Fe.dx-wr,jr?g(Vr.area/jr):0);Vr.z=!0,Vr.dx+=Fe.x+Fe.dx-wr,Fe.y+=jr,Fe.dy-=jr}else{for((Ge||jr>Fe.dx)&&(jr=Fe.dx);++Ve<Ee;)Vr=be[Ve],Vr.x=wr,Vr.y=Gr,Vr.dx=jr,Gr+=Vr.dy=Math.min(Fe.y+Fe.dy-Gr,jr?g(Vr.area/jr):0);Vr.z=!1,Vr.dy+=Fe.y+Fe.dy-Gr,Fe.x+=jr,Fe.dx-=jr}}function Ye(be){var Ce=Y||v(be),Fe=Ce[0];return Fe.x=Fe.y=0,Fe.value?(Fe.dx=w[0],Fe.dy=w[1]):Fe.dx=Fe.dy=0,Y&&v.revalue(Fe),ne([Fe],Fe.dx*Fe.dy/Fe.value),(Y?ge:ie)(Fe),L&&(Y=Ce),Ce}return Ye.size=function(be){return arguments.length?(w=be,Ye):w},Ye.padding=function(be){if(!arguments.length)return D;function Ce(Ve){var Ee=be.call(Ye,Ve,Ve.depth);return Ee==null?He(Ve):je(Ve,typeof Ee=="number"?[Ee,Ee,Ee,Ee]:Ee)}function Fe(Ve){return je(Ve,be)}var Ge;return F=(D=be)==null?He:(Ge=typeof be)=="function"?Ce:(Ge==="number"&&(be=[be,be,be,be]),Fe),Ye},Ye.round=function(be){return arguments.length?(g=be?Math.round:Number,Ye):g!=Number},Ye.sticky=function(be){return arguments.length?(L=be,Y=null,Ye):L},Ye.ratio=function(be){return arguments.length?(Z=be,Ye):Z},Ye.mode=function(be){return arguments.length?(N=be+"",Ye):N},lo(Ye,v)};function He(v){return{x:v.x,y:v.y,dx:v.dx,dy:v.dy}}function je(v,g){var w=v.x+g[3],D=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&&(D+=L/2,L=0),{x:w,y:D,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 D,F,L;do D=Math.random()*2-1,F=Math.random()*2-1,L=D*D+F*F;while(!L||L>1);return v+g*D*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 er(v){var g=v[0],w=v[v.length-1];return g<w?[g,w]:[w,g]}function nr(v){return v.rangeExtent?v.rangeExtent():er(v.range())}function br(v,g,w,D){var F=w(v[0],v[1]),L=D(g[0],g[1]);return function(Y){return L(F(Y))}}function Je(v,g){var w=0,D=v.length-1,F=v[w],L=v[D],Y;return L<F&&(Y=w,w=D,D=Y,Y=F,F=L,L=Y),v[w]=g.floor(F),v[D]=g.ceil(L),v}function lr(v){return v?{floor:function(g){return Math.floor(g/v)*v},ceil:function(g){return Math.ceil(g/v)*v}}:ir}var ir={floor:I,ceil:I};function Mr(v,g,w,D){var F=[],L=[],Y=0,N=Math.min(v.length,g.length)-1;for(v[N]<v[0]&&(v=v.slice().reverse(),g=g.slice().reverse());++Y<=N;)F.push(w(v[Y-1],v[Y])),L.push(D(g[Y-1],g[Y]));return function(Z){var ne=e.bisect(v,Z,1,N)-1;return L[ne](F[ne](Z))}}e.scale.linear=function(){return Sr([0,1],[0,1],bl,!1)};function Sr(v,g,w,D){var F,L;function Y(){var Z=Math.min(v.length,g.length)>2?Mr:br,ne=D?gf:mf;return F=Z(v,g,ne,w),L=Z(g,v,ne,bl),N}function N(Z){return F(Z)}return N.invert=function(Z){return L(Z)},N.domain=function(Z){return arguments.length?(v=Z.map(Number),Y()):v},N.range=function(Z){return arguments.length?(g=Z,Y()):g},N.rangeRound=function(Z){return N.range(Z).interpolate(Po)},N.clamp=function(Z){return arguments.length?(D=Z,Y()):D},N.interpolate=function(Z){return arguments.length?(w=Z,Y()):w},N.ticks=function(Z){return st(v,Z)},N.tickFormat=function(Z,ne){return d3_scale_linearTickFormat(v,Z,ne)},N.nice=function(Z){return et(v,Z),Y()},N.copy=function(){return Sr(v,g,w,D)},Y()}function ot(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function et(v,g){return Je(v,lr(ut(v,g)[2])),Je(v,lr(ut(v,g)[2])),v}function ut(v,g){g==null&&(g=10);var w=er(v),D=w[1]-w[0],F=Math.pow(10,Math.floor(Math.log(D/g)/Math.LN10)),L=g/D*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 st(v,g){return e.range.apply(e,ut(v,g))}var qr={s:1,g:1,p:1,r:1,e:1};function Ur(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function ct(v,g){var w=Ur(g[2]);return v in qr?Math.abs(w-Ur(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):w-(v==="%")*2}e.scale.log=function(){return _t(e.scale.linear().domain([0,1]),10,!0,[1,10])};function _t(v,g,w,D){function F(N){return(w?Math.log(N<0?0:N):-Math.log(N>0?0:-N))/Math.log(g)}function L(N){return w?Math.pow(g,N):-Math.pow(g,-N)}function Y(N){return v(F(N))}return Y.invert=function(N){return L(v.invert(N))},Y.domain=function(N){return arguments.length?(w=N[0]>=0,v.domain((D=N.map(Number)).map(F)),Y):D},Y.base=function(N){return arguments.length?(g=+N,v.domain(D.map(F)),Y):g},Y.nice=function(){var N=Je(D.map(F),w?Math:Vt);return v.domain(N),D=N.map(L),Y},Y.ticks=function(){var N=er(D),Z=[],ne=N[0],ie=N[1],ge=Math.floor(F(ne)),ye=Math.ceil(F(ie)),qe=g%1?2:g;if(isFinite(ye-ge)){if(w){for(;ge<ye;ge++)for(var Ye=1;Ye<qe;Ye++)Z.push(L(ge)*Ye);Z.push(L(ge))}else for(Z.push(L(ge));ge++<ye;)for(var Ye=qe-1;Ye>0;Ye--)Z.push(L(ge)*Ye);for(ge=0;Z[ge]<ne;ge++);for(ye=Z.length;Z[ye-1]>ie;ye--);Z=Z.slice(ge,ye)}return Z},Y.copy=function(){return _t(v.copy(),g,w,D)},ot(Y,v)}var Vt={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return oa(e.scale.linear(),1,[0,1])};function oa(v,g,w){var D=Zt(g),F=Zt(1/g);function L(Y){return v(D(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(D)),L):w},L.ticks=function(Y){return st(w,Y)},L.tickFormat=function(Y,N){return d3_scale_linearTickFormat(w,Y,N)},L.nice=function(Y){return L.domain(et(w,Y))},L.exponent=function(Y){return arguments.length?(D=Zt(g=Y),F=Zt(1/g),v.domain(w.map(D)),L):g},L.copy=function(){return oa(v.copy(),g,w)},ot(L,v)}function Zt(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 _a([],{t:"range",a:[[]]})};function _a(v,g){var w,D,F;function L(N){return D[((w.get(N)||(g.t==="range"?w.set(N,v.push(N)):NaN))-1)%D.length]}function Y(N,Z){return e.range(v.length).map(function(ne){return N+Z*ne})}return L.domain=function(N){if(!arguments.length)return v;v=[],w=new _;for(var Z=-1,ne=N.length,ie;++Z<ne;)w.has(ie=N[Z])||w.set(ie,v.push(ie));return L[g.t].apply(L,g.a)},L.range=function(N){return arguments.length?(D=N,F=0,g={t:"range",a:arguments},L):D},L.rangePoints=function(N,Z){arguments.length<2&&(Z=0);var ne=N[0],ie=N[1],ge=v.length<2?(ne=(ne+ie)/2,0):(ie-ne)/(v.length-1+Z);return D=Y(ne+ge*Z/2,ge),F=0,g={t:"rangePoints",a:arguments},L},L.rangeRoundPoints=function(N,Z){arguments.length<2&&(Z=0);var ne=N[0],ie=N[1],ge=v.length<2?(ne=ie=Math.round((ne+ie)/2),0):(ie-ne)/(v.length-1+Z)|0;return D=Y(ne+Math.round(ge*Z/2+(ie-ne-(v.length-1+Z)*ge)/2),ge),F=0,g={t:"rangeRoundPoints",a:arguments},L},L.rangeBands=function(N,Z,ne){arguments.length<2&&(Z=0),arguments.length<3&&(ne=Z);var ie=N[1]<N[0],ge=N[ie-0],ye=N[1-ie],qe=(ye-ge)/(v.length-Z+2*ne);return D=Y(ge+qe*ne,qe),ie&&D.reverse(),F=qe*(1-Z),g={t:"rangeBands",a:arguments},L},L.rangeRoundBands=function(N,Z,ne){arguments.length<2&&(Z=0),arguments.length<3&&(ne=Z);var ie=N[1]<N[0],ge=N[ie-0],ye=N[1-ie],qe=Math.floor((ye-ge)/(v.length-Z+2*ne));return D=Y(ge+Math.round((ye-ge-(v.length-Z)*qe)/2),qe),ie&&D.reverse(),F=Math.round(qe*(1-Z)),g={t:"rangeRoundBands",a:arguments},L},L.rangeBand=function(){return F},L.rangeExtent=function(){return er(g.a[0])},L.copy=function(){return _a(v,g)},L.domain(v)}e.scale.category10=function(){return e.scale.ordinal().range(Et)},e.scale.category20=function(){return e.scale.ordinal().range(yn)},e.scale.category20b=function(){return e.scale.ordinal().range(Ya)},e.scale.category20c=function(){return e.scale.ordinal().range(xa)};var Et=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(fl),yn=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(fl),Ya=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(fl),xa=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(fl);e.scale.quantile=function(){return Yr([],[])};function Yr(v,g){var w;function D(){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(h).filter(d).sort(c),D()):v},F.range=function(L){return arguments.length?(g=L,D()):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 Yr(v,g)},D()}e.scale.quantize=function(){return Xt(0,1,[0,1])};function Xt(v,g,w){var D,F;function L(N){return w[Math.max(0,Math.min(F,Math.floor(D*(N-v))))]}function Y(){return D=w.length/(g-v),F=w.length-1,L}return L.domain=function(N){return arguments.length?(v=+N[0],g=+N[N.length-1],Y()):[v,g]},L.range=function(N){return arguments.length?(w=N,Y()):w},L.invertExtent=function(N){return N=w.indexOf(N),N=N<0?NaN:N/D+v,[N,N+1/D]},L.copy=function(){return Xt(v,g,w)},Y()}e.scale.threshold=function(){return Ka([.5],[0,1])};function Ka(v,g){function w(D){if(D<=D)return g[e.bisect(v,D)]}return w.domain=function(D){return arguments.length?(v=D,w):v},w.range=function(D){return arguments.length?(g=D,w):g},w.invertExtent=function(D){return D=g.indexOf(D),[v[D-1],v[D]]},w.copy=function(){return Ka(v,g)},w}e.scale.identity=function(){return Cn([0,1])};function Cn(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 st(v,w)},g.tickFormat=function(w,D){return d3_scale_linearTickFormat(v,w,D)},g.copy=function(){return Cn(v)},g}e.svg={};function si(){return 0}e.svg.arc=function(){var v=Oi,g=Al,w=si,D=uo,F=ki,L=Ml,Y=gu;function N(){var ne=Math.max(0,+v.apply(this,arguments)),ie=Math.max(0,+g.apply(this,arguments)),ge=F.apply(this,arguments)-Ae,ye=L.apply(this,arguments)-Ae,qe=Math.abs(ye-ge),Ye=ge>ye?0:1;if(ie<ne&&(be=ie,ie=ne,ne=be),qe>=Wr)return Z(ie,Ye)+(ne?Z(ne,1-Ye):"")+"Z";var be,Ce,Fe,Ge,Ve=0,Ee=0,wr,Gr,jr,Vr,rt,tt,Mt,nt,yt=[];if((Ge=(+Y.apply(this,arguments)||0)/2)&&(Fe=D===uo?Math.sqrt(ne*ne+ie*ie):+D.apply(this,arguments),Ye||(Ee*=-1),ie&&(Ee=na(Fe/ie*Math.sin(Ge))),ne&&(Ve=na(Fe/ne*Math.sin(Ge)))),ie){wr=ie*Math.cos(ge+Ee),Gr=ie*Math.sin(ge+Ee),jr=ie*Math.cos(ye-Ee),Vr=ie*Math.sin(ye-Ee);var ra=Math.abs(ye-ge-2*Ee)<=Kr?0:1;if(Ee&&i0(wr,Gr,jr,Vr)===Ye^ra){var an=(ge+ye)/2;wr=ie*Math.cos(an),Gr=ie*Math.sin(an),jr=Vr=null}}else wr=Gr=0;if(ne){rt=ne*Math.cos(ye-Ve),tt=ne*Math.sin(ye-Ve),Mt=ne*Math.cos(ge+Ve),nt=ne*Math.sin(ge+Ve);var fa=Math.abs(ge-ye+2*Ve)<=Kr?0:1;if(Ve&&i0(rt,tt,Mt,nt)===1-Ye^fa){var Br=(ge+ye)/2;rt=ne*Math.cos(Br),tt=ne*Math.sin(Br),Mt=nt=null}}else rt=tt=0;if(qe>vr&&(be=Math.min(Math.abs(ie-ne)/2,+w.apply(this,arguments)))>.001){Ce=ne<ie^Ye?0:1;var Tt=be,kt=be;if(qe<Kr){var ta=Mt==null?[rt,tt]:jr==null?[wr,Gr]:Qu([wr,Gr],[Mt,nt],[jr,Vr],[rt,tt]),Xa=wr-ta[0],bn=Gr-ta[1],Vn=jr-ta[0],fi=Vr-ta[1],Di=1/Math.sin(Math.acos((Xa*Vn+bn*fi)/(Math.sqrt(Xa*Xa+bn*bn)*Math.sqrt(Vn*Vn+fi*fi)))/2),ci=Math.sqrt(ta[0]*ta[0]+ta[1]*ta[1]);kt=Math.min(be,(ne-ci)/(Di-1)),Tt=Math.min(be,(ie-ci)/(Di+1))}if(jr!=null){var Gi=t1(Mt==null?[rt,tt]:[Mt,nt],[wr,Gr],ie,Tt,Ye),Qn=t1([jr,Vr],[rt,tt],ie,Tt,Ye);be===Tt?yt.push("M",Gi[0],"A",Tt,",",Tt," 0 0,",Ce," ",Gi[1],"A",ie,",",ie," 0 ",1-Ye^i0(Gi[1][0],Gi[1][1],Qn[1][0],Qn[1][1]),",",Ye," ",Qn[1],"A",Tt,",",Tt," 0 0,",Ce," ",Qn[0]):yt.push("M",Gi[0],"A",Tt,",",Tt," 0 1,",Ce," ",Qn[0])}else yt.push("M",wr,",",Gr);if(Mt!=null){var Yi=t1([wr,Gr],[Mt,nt],ne,-kt,Ye),kf=t1([rt,tt],jr==null?[wr,Gr]:[jr,Vr],ne,-kt,Ye);be===kt?yt.push("L",kf[0],"A",kt,",",kt," 0 0,",Ce," ",kf[1],"A",ne,",",ne," 0 ",Ye^i0(kf[1][0],kf[1][1],Yi[1][0],Yi[1][1]),",",1-Ye," ",Yi[1],"A",kt,",",kt," 0 0,",Ce," ",Yi[0]):yt.push("L",kf[0],"A",kt,",",kt," 0 0,",Ce," ",Yi[0])}else yt.push("L",rt,",",tt)}else yt.push("M",wr,",",Gr),jr!=null&&yt.push("A",ie,",",ie," 0 ",ra,",",Ye," ",jr,",",Vr),yt.push("L",rt,",",tt),Mt!=null&&yt.push("A",ne,",",ne," 0 ",fa,",",1-Ye," ",Mt,",",nt);return yt.push("Z"),yt.join("")}function Z(ne,ie){return"M0,"+ne+"A"+ne+","+ne+" 0 1,"+ie+" 0,"+-ne+"A"+ne+","+ne+" 0 1,"+ie+" 0,"+ne}return N.innerRadius=function(ne){return arguments.length?(v=lt(ne),N):v},N.outerRadius=function(ne){return arguments.length?(g=lt(ne),N):g},N.cornerRadius=function(ne){return arguments.length?(w=lt(ne),N):w},N.padRadius=function(ne){return arguments.length?(D=ne==uo?uo:lt(ne),N):D},N.startAngle=function(ne){return arguments.length?(F=lt(ne),N):F},N.endAngle=function(ne){return arguments.length?(L=lt(ne),N):L},N.padAngle=function(ne){return arguments.length?(Y=lt(ne),N):Y},N.centroid=function(){var ne=(+v.apply(this,arguments)+ +g.apply(this,arguments))/2,ie=(+F.apply(this,arguments)+ +L.apply(this,arguments))/2-Ae;return[Math.cos(ie)*ne,Math.sin(ie)*ne]},N};var uo="auto";function Oi(v){return v.innerRadius}function Al(v){return v.outerRadius}function ki(v){return v.startAngle}function Ml(v){return v.endAngle}function gu(v){return v&&v.padAngle}function i0(v,g,w,D){return(v-w)*g-(g-D)*v>0?0:1}function t1(v,g,w,D,F){var L=v[0]-g[0],Y=v[1]-g[1],N=(F?D:-D)/Math.sqrt(L*L+Y*Y),Z=N*Y,ne=-N*L,ie=v[0]+Z,ge=v[1]+ne,ye=g[0]+Z,qe=g[1]+ne,Ye=(ie+ye)/2,be=(ge+qe)/2,Ce=ye-ie,Fe=qe-ge,Ge=Ce*Ce+Fe*Fe,Ve=w-D,Ee=ie*qe-ye*ge,wr=(Fe<0?-1:1)*Math.sqrt(Math.max(0,Ve*Ve*Ge-Ee*Ee)),Gr=(Ee*Fe-Ce*wr)/Ge,jr=(-Ee*Ce-Fe*wr)/Ge,Vr=(Ee*Fe+Ce*wr)/Ge,rt=(-Ee*Ce+Fe*wr)/Ge,tt=Gr-Ye,Mt=jr-be,nt=Vr-Ye,yt=rt-be;return tt*tt+Mt*Mt>nt*nt+yt*yt&&(Gr=Vr,jr=rt),[[Gr-Z,jr-ne],[Gr*w/Ve,jr*w/Ve]]}function a1(){return!0}function fd(v){var g=iu,w=Ju,D=a1,F=so,L=F.key,Y=.7;function N(Z){var ne=[],ie=[],ge=-1,ye=Z.length,qe,Ye=lt(g),be=lt(w);function Ce(){ne.push("M",F(v(ie),Y))}for(;++ge<ye;)D.call(this,qe=Z[ge],ge)?ie.push([+Ye.call(this,qe,ge),+be.call(this,qe,ge)]):ie.length&&(Ce(),ie=[]);return ie.length&&Ce(),ne.length?ne.join(""):null}return N.x=function(Z){return arguments.length?(g=Z,N):g},N.y=function(Z){return arguments.length?(w=Z,N):w},N.defined=function(Z){return arguments.length?(D=Z,N):D},N.interpolate=function(Z){return arguments.length?(typeof Z=="function"?L=F=Z:L=(F=Af.get(Z)||so).key,N):L},N.tension=function(Z){return arguments.length?(Y=Z,N):Y},N}e.svg.line=function(){return fd(I)};var Af=e.map({linear:so,"linear-closed":cd,step:vd,"step-before":n1,"step-after":W2,basis:md,"basis-open":j2,"basis-closed":sy,bundle:Z2,cardinal:pd,"cardinal-open":hd,"cardinal-closed":dd,monotone:ve});Af.forEach(function(v,g){g.key=v,g.closed=/-closed$/.test(v)});function so(v){return v.length>1?v.join("L"):v+"Z"}function cd(v){return v.join("L")+"Z"}function vd(v){for(var g=0,w=v.length,D=v[0],F=[D[0],",",D[1]];++g<w;)F.push("H",(D[0]+(D=v[g])[0])/2,"V",D[1]);return w>1&&F.push("H",D[0]),F.join("")}function n1(v){for(var g=0,w=v.length,D=v[0],F=[D[0],",",D[1]];++g<w;)F.push("V",(D=v[g])[1],"H",D[0]);return F.join("")}function W2(v){for(var g=0,w=v.length,D=v[0],F=[D[0],",",D[1]];++g<w;)F.push("H",(D=v[g])[0],"V",D[1]);return F.join("")}function hd(v,g){return v.length<4?so(v):v[1]+i1(v.slice(1,-1),Mf(v,g))}function dd(v,g){return v.length<3?cd(v):v[0]+i1((v.push(v[0]),v),Mf([v[v.length-2]].concat(v,[v[1]]),g))}function pd(v,g){return v.length<3?so(v):v[0]+i1(v,Mf(v,g))}function i1(v,g){if(g.length<1||v.length!=g.length&&v.length!=g.length+2)return so(v);var w=v.length!=g.length,D="",F=v[0],L=v[1],Y=g[0],N=Y,Z=1;if(w&&(D+="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){N=g[1],L=v[Z],Z++,D+="C"+(F[0]+Y[0])+","+(F[1]+Y[1])+","+(L[0]-N[0])+","+(L[1]-N[1])+","+L[0]+","+L[1];for(var ne=2;ne<g.length;ne++,Z++)L=v[Z],N=g[ne],D+="S"+(L[0]-N[0])+","+(L[1]-N[1])+","+L[0]+","+L[1]}if(w){var ie=v[Z];D+="Q"+(L[0]+N[0]*2/3)+","+(L[1]+N[1]*2/3)+","+ie[0]+","+ie[1]}return D}function Mf(v,g){for(var w=[],D=(1-g)/2,F,L=v[0],Y=v[1],N=1,Z=v.length;++N<Z;)F=L,L=Y,Y=v[N],w.push([D*(Y[0]-F[0]),D*(Y[1]-F[1])]);return w}function md(v){if(v.length<3)return so(v);var g=1,w=v.length,D=v[0],F=D[0],L=D[1],Y=[F,F,F,(D=v[1])[0]],N=[L,L,L,D[1]],Z=[F,",",L,"L",Ui(q,Y),",",Ui(q,N)];for(v.push(v[w-1]);++g<=w;)D=v[g],Y.shift(),Y.push(D[0]),N.shift(),N.push(D[1]),R(Z,Y,N);return v.pop(),Z.push("L",D),Z.join("")}function j2(v){if(v.length<4)return so(v);for(var g=[],w=-1,D=v.length,F,L=[0],Y=[0];++w<3;)F=v[w],L.push(F[0]),Y.push(F[1]);for(g.push(Ui(q,L)+","+Ui(q,Y)),--w;++w<D;)F=v[w],L.shift(),L.push(F[0]),Y.shift(),Y.push(F[1]),R(g,L,Y);return g.join("")}function sy(v){for(var g,w=-1,D=v.length,F=D+4,L,Y=[],N=[];++w<4;)L=v[w%D],Y.push(L[0]),N.push(L[1]);for(g=[Ui(q,Y),",",Ui(q,N)],--w;++w<F;)L=v[w%D],Y.shift(),Y.push(L[0]),N.shift(),N.push(L[1]),R(g,Y,N);return g.join("")}function Z2(v,g){var w=v.length-1;if(w)for(var D=v[0][0],F=v[0][1],L=v[w][0]-D,Y=v[w][1]-F,N=-1,Z,ne;++N<=w;)Z=v[N],ne=N/w,Z[0]=g*Z[0]+(1-g)*(D+ne*L),Z[1]=g*Z[1]+(1-g)*(F+ne*Y);return md(v)}function Ui(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],S=[0,1/3,2/3,0],q=[0,1/6,2/3,1/6];function R(v,g,w){v.push("C",Ui(k,g),",",Ui(k,w),",",Ui(S,g),",",Ui(S,w),",",Ui(q,g),",",Ui(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,D=[],F=v[0],L=v[1],Y=D[0]=G(F,L);++g<w;)D[g]=(Y+(Y=G(F=L,L=v[g+1])))/2;return D[g]=Y,D}function W(v){for(var g=[],w,D,F,L,Y=U(v),N=-1,Z=v.length-1;++N<Z;)w=G(v[N],v[N+1]),b(w)<vr?Y[N]=Y[N+1]=0:(D=Y[N]/w,F=Y[N+1]/w,L=D*D+F*F,L>9&&(L=w*3/Math.sqrt(L),Y[N]=L*D,Y[N+1]=L*F));for(N=-1;++N<=Z;)L=(v[Math.min(Z,N+1)][0]-v[Math.max(0,N-1)][0])/(6*(1+Y[N]*Y[N])),g.push([L||0,Y[N]*L||0]);return g}function ve(v){return v.length<3?so(v):v[0]+i1(v,W(v))}e.svg.line.radial=function(){var v=fd(de);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function de(v){for(var g,w=-1,D=v.length,F,L;++w<D;)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 fe(v){var g=iu,w=iu,D=0,F=Ju,L=a1,Y=so,N=Y.key,Z=Y,ne="L",ie=.7;function ge(ye){var qe=[],Ye=[],be=[],Ce=-1,Fe=ye.length,Ge,Ve=lt(g),Ee=lt(D),wr=g===w?function(){return jr}:lt(w),Gr=D===F?function(){return Vr}:lt(F),jr,Vr;function rt(){qe.push("M",Y(v(be),ie),ne,Z(v(Ye.reverse()),ie),"Z")}for(;++Ce<Fe;)L.call(this,Ge=ye[Ce],Ce)?(Ye.push([jr=+Ve.call(this,Ge,Ce),Vr=+Ee.call(this,Ge,Ce)]),be.push([+wr.call(this,Ge,Ce),+Gr.call(this,Ge,Ce)])):Ye.length&&(rt(),Ye=[],be=[]);return Ye.length&&rt(),qe.length?qe.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?(D=F=ye,ge):F},ge.y0=function(ye){return arguments.length?(D=ye,ge):D},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"?N=Y=ye:N=(Y=Af.get(ye)||so).key,Z=Y.reverse||Y,ne=Y.closed?"M":"L",ge):N},ge.tension=function(ye){return arguments.length?(ie=ye,ge):ie},ge}n1.reverse=W2,W2.reverse=n1,e.svg.area=function(){return fe(I)},e.svg.area.radial=function(){var v=fe(de);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 pe(v){return v.source}function xe(v){return v.target}e.svg.chord=function(){var v=pe,g=xe,w=De,D=ki,F=Ml;function L(ie,ge){var ye=Y(this,v,ie,ge),qe=Y(this,g,ie,ge);return"M"+ye.p0+Z(ye.r,ye.p1,ye.a1-ye.a0)+(N(ye,qe)?ne(ye.r,ye.p1,ye.r,ye.p0):ne(ye.r,ye.p1,qe.r,qe.p0)+Z(qe.r,qe.p1,qe.a1-qe.a0)+ne(qe.r,qe.p1,ye.r,ye.p0))+"Z"}function Y(ie,ge,ye,qe){var Ye=ge.call(ie,ye,qe),be=w.call(ie,Ye,qe),Ce=D.call(ie,Ye,qe)-Ae,Fe=F.call(ie,Ye,qe)-Ae;return{r:be,a0:Ce,a1:Fe,p0:[be*Math.cos(Ce),be*Math.sin(Ce)],p1:[be*Math.cos(Fe),be*Math.sin(Fe)]}}function N(ie,ge){return ie.a0==ge.a0&&ie.a1==ge.a1}function Z(ie,ge,ye){return"A"+ie+","+ie+" 0 "+ +(ye>Kr)+",1 "+ge}function ne(ie,ge,ye,qe){return"Q 0,0 "+qe}return L.radius=function(ie){return arguments.length?(w=lt(ie),L):w},L.source=function(ie){return arguments.length?(v=lt(ie),L):v},L.target=function(ie){return arguments.length?(g=lt(ie),L):g},L.startAngle=function(ie){return arguments.length?(D=lt(ie),L):D},L.endAngle=function(ie){return arguments.length?(F=lt(ie),L):F},L};function De(v){return v.radius}e.svg.diagonal=function(){var v=pe,g=xe,w=ze;function D(F,L){var Y=v.call(this,F,L),N=g.call(this,F,L),Z=(Y.y+N.y)/2,ne=[Y,{x:Y.x,y:Z},{x:N.x,y:Z},N];return ne=ne.map(w),"M"+ne[0]+"C"+ne[1]+" "+ne[2]+" "+ne[3]}return D.source=function(F){return arguments.length?(v=lt(F),D):v},D.target=function(F){return arguments.length?(g=lt(F),D):g},D.projection=function(F){return arguments.length?(w=F,D):w},D};function ze(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=ze,w=v.projection;return v.projection=function(D){return arguments.length?w(Ke(g=D)):g},v};function Ke(v){return function(){var g=v.apply(this,arguments),w=g[0],D=g[1]-Ae;return[w*Math.cos(D),w*Math.sin(D)]}}e.svg.symbol=function(){var v=Tr,g=or;function w(D,F){return(ft.get(v.call(this,D,F))||$r)(g.call(this,D,F))}return w.type=function(D){return arguments.length?(v=lt(D),w):v},w.size=function(D){return arguments.length?(g=lt(D),w):g},w};function or(){return 64}function Tr(){return"circle"}function $r(v){var g=Math.sqrt(v/Kr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var ft=e.map({circle:$r,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*dt)),w=g*dt;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/vt),w=g*vt/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/vt),w=g*vt/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=ft.keys();var vt=Math.sqrt(3),dt=Math.tan(30*Pe);K.transition=function(v){for(var g=Dn||++Va,w=Gn(v),D=[],F,L,Y=Ci||{time:Date.now(),ease:Uc,delay:0,duration:250},N=-1,Z=this.length;++N<Z;){D.push(F=[]);for(var ne=this[N],ie=-1,ge=ne.length;++ie<ge;)(L=ne[ie])&&Yn(L,ie,w,g,Y),F.push(L)}return Sa(D,w,g)},K.interrupt=function(v){return this.each(v==null?gt:sa(Gn(v)))};var gt=sa(Gn());function sa(v){return function(){var g,w,D;(g=this[v])&&(D=g[w=g.active])&&(D.timer.c=null,D.timer.t=NaN,--g.count?delete g[w]:delete this[v],g.active+=.5,D.event&&D.event.interrupt.call(this,this.__data__,D.index))}}function Sa(v,g,w){return ke(v,Ht),v.namespace=g,v.id=w,v}var Ht=[],Va=0,Dn,Ci;Ht.call=K.call,Ht.empty=K.empty,Ht.node=K.node,Ht.size=K.size,e.transition=function(v,g){return v&&v.transition?Dn?v.transition(g):v:e.selection().transition(v)},e.transition.prototype=Ht,Ht.select=function(v){var g=this.id,w=this.namespace,D=[],F,L,Y;v=$(v);for(var N=-1,Z=this.length;++N<Z;){D.push(F=[]);for(var ne=this[N],ie=-1,ge=ne.length;++ie<ge;)(Y=ne[ie])&&(L=v.call(Y,Y.__data__,ie,N))?("__data__"in Y&&(L.__data__=Y.__data__),Yn(L,ie,w,g,Y[w][g]),F.push(L)):F.push(null)}return Sa(D,w,g)},Ht.selectAll=function(v){var g=this.id,w=this.namespace,D=[],F,L,Y,N,Z;v=se(v);for(var ne=-1,ie=this.length;++ne<ie;)for(var ge=this[ne],ye=-1,qe=ge.length;++ye<qe;)if(Y=ge[ye]){Z=Y[w][g],L=v.call(Y,Y.__data__,ye,ne),D.push(F=[]);for(var Ye=-1,be=L.length;++Ye<be;)(N=L[Ye])&&Yn(N,Ye,w,g,Z),F.push(N)}return Sa(D,w,g)},Ht.filter=function(v){var g=[],w,D,F;typeof v!="function"&&(v=Te(v));for(var L=0,Y=this.length;L<Y;L++){g.push(w=[]);for(var D=this[L],N=0,Z=D.length;N<Z;N++)(F=D[N])&&v.call(F,F.__data__,N,L)&&w.push(F)}return Sa(g,this.namespace,this.id)},Ht.tween=function(v,g){var w=this.id,D=this.namespace;return arguments.length<2?this.node()[D][w].tween.get(v):Ar(this,g==null?function(F){F[D][w].tween.remove(v)}:function(F){F[D][w].tween.set(v,g)})};function Tl(v,g,w,D){var F=v.id,L=v.namespace;return Ar(v,typeof w=="function"?function(Y,N,Z){Y[L][F].tween.set(g,D(w.call(Y,Y.__data__,N,Z)))}:(w=D(w),function(Y){Y[L][F].tween.set(g,w)}))}Ht.attr=function(v,g){if(arguments.length<2){for(g in v)this.attr(g,v[g]);return this}var w=v=="transform"?Ks:bl,D=e.ns.qualify(v);function F(){this.removeAttribute(D)}function L(){this.removeAttributeNS(D.space,D.local)}function Y(Z){return Z==null?F:(Z+="",function(){var ne=this.getAttribute(D),ie;return ne!==Z&&(ie=w(ne,Z),function(ge){this.setAttribute(D,ie(ge))})})}function N(Z){return Z==null?L:(Z+="",function(){var ne=this.getAttributeNS(D.space,D.local),ie;return ne!==Z&&(ie=w(ne,Z),function(ge){this.setAttributeNS(D.space,D.local,ie(ge))})})}return Tl(this,"attr."+v,g,D.local?N:Y)},Ht.attrTween=function(v,g){var w=e.ns.qualify(v);function D(L,Y){var N=g.call(this,L,Y,this.getAttribute(w));return N&&function(Z){this.setAttribute(w,N(Z))}}function F(L,Y){var N=g.call(this,L,Y,this.getAttributeNS(w.space,w.local));return N&&function(Z){this.setAttributeNS(w.space,w.local,N(Z))}}return this.tween("attr."+v,w.local?F:D)},Ht.style=function(v,g,w){var D=arguments.length;if(D<3){if(typeof v!="string"){D<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 N=i(this).getComputedStyle(this,null).getPropertyValue(v),Z;return N!==Y&&(Z=bl(N,Y),function(ne){this.style.setProperty(v,Z(ne),w)})})}return Tl(this,"style."+v,g,L)},Ht.styleTween=function(v,g,w){arguments.length<3&&(w="");function D(F,L){var Y=g.call(this,F,L,i(this).getComputedStyle(this,null).getPropertyValue(v));return Y&&function(N){this.style.setProperty(v,Y(N),w)}}return this.tween("style."+v,D)},Ht.text=function(v){return Tl(this,"text",v,bs)};function bs(v){return v==null&&(v=""),function(){this.textContent=v}}Ht.remove=function(){var v=this.namespace;return this.each("end.transition",function(){var g;this[v].count<2&&(g=this.parentNode)&&g.removeChild(this)})},Ht.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)),Ar(this,function(D){D[w][g].ease=v}))},Ht.delay=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].delay:Ar(this,typeof v=="function"?function(D,F,L){D[w][g].delay=+v.call(D,D.__data__,F,L)}:(v=+v,function(D){D[w][g].delay=v}))},Ht.duration=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].duration:Ar(this,typeof v=="function"?function(D,F,L){D[w][g].duration=Math.max(1,v.call(D,D.__data__,F,L))}:(v=Math.max(1,v),function(D){D[w][g].duration=v}))},Ht.each=function(v,g){var w=this.id,D=this.namespace;if(arguments.length<2){var F=Ci,L=Dn;try{Dn=w,Ar(this,function(Y,N,Z){Ci=Y[D][w],v.call(Y,Y.__data__,N,Z)})}finally{Ci=F,Dn=L}}else Ar(this,function(Y){var N=Y[D][w];(N.event||(N.event=e.dispatch("start","end","interrupt"))).on(v,g)});return this},Ht.transition=function(){for(var v=this.id,g=++Va,w=this.namespace,D=[],F,L,Y,N,Z=0,ne=this.length;Z<ne;Z++){D.push(F=[]);for(var L=this[Z],ie=0,ge=L.length;ie<ge;ie++)(Y=L[ie])&&(N=Y[w][v],Yn(Y,ie,w,g,{time:N.time,ease:N.ease,delay:N.delay+N.duration,duration:N.duration})),F.push(Y)}return Sa(D,w,g)};function Gn(v){return v==null?"__transition__":"__transition_"+v+"__"}function Yn(v,g,w,D,F){var L=v[w]||(v[w]={active:0,count:0}),Y=L[D],N,Z,ne,ie,ge;function ye(be){var Ce=Y.delay;if(Z.t=Ce+N,Ce<=be)return qe(be-Ce);Z.c=qe}function qe(be){var Ce=L.active,Fe=L[Ce];Fe&&(Fe.timer.c=null,Fe.timer.t=NaN,--L.count,delete L[Ce],Fe.event&&Fe.event.interrupt.call(v,v.__data__,Fe.index));for(var Ge in L)if(+Ge<D){var Ve=L[Ge];Ve.timer.c=null,Ve.timer.t=NaN,--L.count,delete L[Ge]}Z.c=Ye,nu(function(){return Z.c&&Ye(be||1)&&(Z.c=null,Z.t=NaN),1},0,N),L.active=D,Y.event&&Y.event.start.call(v,v.__data__,g),ge=[],Y.tween.forEach(function(Ee,wr){(wr=wr.call(v,v.__data__,g))&&ge.push(wr)}),ie=Y.ease,ne=Y.duration}function Ye(be){for(var Ce=be/ne,Fe=ie(Ce),Ge=ge.length;Ge>0;)ge[--Ge].call(v,Fe);if(Ce>=1)return Y.event&&Y.event.end.call(v,v.__data__,g),--L.count?delete L[D]:delete v[w],1}Y||(N=F.time,Z=nu(ye,0,N),Y=L[D]={tween:new _,time:N,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=fo,w=6,D=6,F=3,L=[10],Y=null,N;function Z(ne){ne.each(function(){var ie=e.select(this),ge=this.__chart__||v,ye=this.__chart__=v.copy(),qe=Y==null?ye.ticks?ye.ticks.apply(ye,L):ye.domain():Y,Ye=N==null?ye.tickFormat?ye.tickFormat.apply(ye,L):I:N,be=ie.selectAll(".tick").data(qe,ye),Ce=be.enter().insert("g",".domain").attr("class","tick").style("opacity",vr),Fe=e.transition(be.exit()).style("opacity",vr).remove(),Ge=e.transition(be.order()).style("opacity",1),Ve=Math.max(w,0)+F,Ee,wr=nr(ye),Gr=ie.selectAll(".domain").data([0]),jr=(Gr.enter().append("path").attr("class","domain"),e.transition(Gr));Ce.append("line"),Ce.append("text");var Vr=Ce.select("line"),rt=Ge.select("line"),tt=be.select("text").text(Ye),Mt=Ce.select("text"),nt=Ge.select("text"),yt=g==="top"||g==="left"?-1:1,ra,an,fa,Br;if(g==="bottom"||g==="top"?(Ee=Cl,ra="x",fa="y",an="x2",Br="y2",tt.attr("dy",yt<0?"0em":".71em").style("text-anchor","middle"),jr.attr("d","M"+wr[0]+","+yt*D+"V0H"+wr[1]+"V"+yt*D)):(Ee=Dl,ra="y",fa="x",an="y2",Br="x2",tt.attr("dy",".32em").style("text-anchor",yt<0?"end":"start"),jr.attr("d","M"+yt*D+","+wr[0]+"H0V"+wr[1]+"H"+yt*D)),Vr.attr(Br,yt*w),Mt.attr(fa,yt*Ve),rt.attr(an,0).attr(Br,yt*w),nt.attr(ra,0).attr(fa,yt*Ve),ye.rangeBand){var Tt=ye,kt=Tt.rangeBand()/2;ge=ye=function(ta){return Tt(ta)+kt}}else ge.rangeBand?ge=ye:Fe.call(Ee,ye,ge);Ce.call(Ee,ge,ye),Ge.call(Ee,ye,ye)})}return Z.scale=function(ne){return arguments.length?(v=ne,Z):v},Z.orient=function(ne){return arguments.length?(g=ne in kl?ne+"":fo,Z):g},Z.ticks=function(){return arguments.length?(L=t(arguments),Z):L},Z.tickValues=function(ne){return arguments.length?(Y=ne,Z):Y},Z.tickFormat=function(ne){return arguments.length?(N=ne,Z):N},Z.tickSize=function(ne){var ie=arguments.length;return ie?(w=+ne,D=+arguments[ie-1],Z):w},Z.innerTickSize=function(ne){return arguments.length?(w=+ne,Z):w},Z.outerTickSize=function(ne){return arguments.length?(D=+ne,Z):D},Z.tickPadding=function(ne){return arguments.length?(F=+ne,Z):F},Z.tickSubdivide=function(){return arguments.length&&Z},Z};var fo="bottom",kl={top:1,right:1,bottom:1,left:1};function Cl(v,g,w){v.attr("transform",function(D){var F=g(D);return"translate("+(isFinite(F)?F:w(D))+",0)"})}function Dl(v,g,w){v.attr("transform",function(D){var F=g(D);return"translate(0,"+(isFinite(F)?F:w(D))+")"})}e.svg.brush=function(){var v=Ie(ie,"brushstart","brush","brushend"),g=null,w=null,D=[0,0],F=[0,0],L,Y,N=!0,Z=!0,ne=zo[0];function ie(be){be.each(function(){var Ce=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ye).on("touchstart.brush",Ye),Fe=Ce.selectAll(".background").data([0]);Fe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ce.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=Ce.selectAll(".resize").data(ne,I);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Gr){return"resize "+Gr}).style("cursor",function(Gr){return yu[Gr]}).append("rect").attr("x",function(Gr){return/[ew]$/.test(Gr)?-3:null}).attr("y",function(Gr){return/^[ns]/.test(Gr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ge.style("display",ie.empty()?"none":null);var Ve=e.transition(Ce),Ee=e.transition(Fe),wr;g&&(wr=nr(g),Ee.attr("x",wr[0]).attr("width",wr[1]-wr[0]),ye(Ve)),w&&(wr=nr(w),Ee.attr("y",wr[0]).attr("height",wr[1]-wr[0]),qe(Ve)),ge(Ve)})}ie.event=function(be){be.each(function(){var Ce=v.of(this,arguments),Fe={x:D,y:F,i:L,j:Y},Ge=this.__chart__||Fe;this.__chart__=Fe,Dn?e.select(this).transition().each("start.brush",function(){L=Ge.i,Y=Ge.j,D=Ge.x,F=Ge.y,Ce({type:"brushstart"})}).tween("brush:brush",function(){var Ve=cu(D,Fe.x),Ee=cu(F,Fe.y);return L=Y=null,function(wr){D=Fe.x=Ve(wr),F=Fe.y=Ee(wr),Ce({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=Fe.i,Y=Fe.j,Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"})}):(Ce({type:"brushstart"}),Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"}))})};function ge(be){be.selectAll(".resize").attr("transform",function(Ce){return"translate("+D[+/e$/.test(Ce)]+","+F[+/^s/.test(Ce)]+")"})}function ye(be){be.select(".extent").attr("x",D[0]),be.selectAll(".extent,.n>rect,.s>rect").attr("width",D[1]-D[0])}function qe(be){be.select(".extent").attr("y",F[0]),be.selectAll(".extent,.e>rect,.w>rect").attr("height",F[1]-F[0])}function Ye(){var be=this,Ce=e.select(e.event.target),Fe=v.of(be,arguments),Ge=e.select(be),Ve=Ce.datum(),Ee=!/^(n|s)$/.test(Ve)&&g,wr=!/^(e|w)$/.test(Ve)&&w,Gr=Ce.classed("extent"),jr=Fr(be),Vr,rt=e.mouse(be),tt,Mt=e.select(i(be)).on("keydown.brush",ra).on("keyup.brush",an);if(e.event.changedTouches?Mt.on("touchmove.brush",fa).on("touchend.brush",Tt):Mt.on("mousemove.brush",fa).on("mouseup.brush",Tt),Ge.interrupt().selectAll("*").interrupt(),Gr)rt[0]=D[0]-rt[0],rt[1]=F[0]-rt[1];else if(Ve){var nt=+/w$/.test(Ve),yt=+/^n/.test(Ve);tt=[D[1-nt]-rt[0],F[1-yt]-rt[1]],rt[0]=D[nt],rt[1]=F[yt]}else e.event.altKey&&(Vr=rt.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ce.style("cursor")),Fe({type:"brushstart"}),fa();function ra(){e.event.keyCode==32&&(Gr||(Vr=null,rt[0]-=D[1],rt[1]-=F[1],Gr=2),Me())}function an(){e.event.keyCode==32&&Gr==2&&(rt[0]+=D[1],rt[1]+=F[1],Gr=0,Me())}function fa(){var kt=e.mouse(be),ta=!1;tt&&(kt[0]+=tt[0],kt[1]+=tt[1]),Gr||(e.event.altKey?(Vr||(Vr=[(D[0]+D[1])/2,(F[0]+F[1])/2]),rt[0]=D[+(kt[0]<Vr[0])],rt[1]=F[+(kt[1]<Vr[1])]):Vr=null),Ee&&Br(kt,g,0)&&(ye(Ge),ta=!0),wr&&Br(kt,w,1)&&(qe(Ge),ta=!0),ta&&(ge(Ge),Fe({type:"brush",mode:Gr?"move":"resize"}))}function Br(kt,ta,Xa){var bn=nr(ta),Vn=bn[0],fi=bn[1],Di=rt[Xa],ci=Xa?F:D,Gi=ci[1]-ci[0],Qn,Yi;if(Gr&&(Vn-=Di,fi-=Gi+Di),Qn=(Xa?Z:N)?Math.max(Vn,Math.min(fi,kt[Xa])):kt[Xa],Gr?Yi=(Qn+=Di)+Gi:(Vr&&(Di=Math.max(Vn,Math.min(fi,2*Vr[Xa]-Qn))),Di<Qn?(Yi=Qn,Qn=Di):Yi=Di),ci[0]!=Qn||ci[1]!=Yi)return Xa?Y=null:L=null,ci[0]=Qn,ci[1]=Yi,!0}function Tt(){fa(),Ge.style("pointer-events","all").selectAll(".resize").style("display",ie.empty()?"none":null),e.select("body").style("cursor",null),Mt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),jr(),Fe({type:"brushend"})}}return ie.x=function(be){return arguments.length?(g=be,ne=zo[!g<<1|!w],ie):g},ie.y=function(be){return arguments.length?(w=be,ne=zo[!g<<1|!w],ie):w},ie.clamp=function(be){return arguments.length?(g&&w?(N=!!be[0],Z=!!be[1]):g?N=!!be:w&&(Z=!!be),ie):g&&w?[N,Z]:g?N:w?Z:null},ie.extent=function(be){var Ce,Fe,Ge,Ve,Ee;return arguments.length?(g&&(Ce=be[0],Fe=be[1],w&&(Ce=Ce[0],Fe=Fe[0]),L=[Ce,Fe],g.invert&&(Ce=g(Ce),Fe=g(Fe)),Fe<Ce&&(Ee=Ce,Ce=Fe,Fe=Ee),(Ce!=D[0]||Fe!=D[1])&&(D=[Ce,Fe])),w&&(Ge=be[0],Ve=be[1],g&&(Ge=Ge[1],Ve=Ve[1]),Y=[Ge,Ve],w.invert&&(Ge=w(Ge),Ve=w(Ve)),Ve<Ge&&(Ee=Ge,Ge=Ve,Ve=Ee),(Ge!=F[0]||Ve!=F[1])&&(F=[Ge,Ve])),ie):(g&&(L?(Ce=L[0],Fe=L[1]):(Ce=D[0],Fe=D[1],g.invert&&(Ce=g.invert(Ce),Fe=g.invert(Fe)),Fe<Ce&&(Ee=Ce,Ce=Fe,Fe=Ee))),w&&(Y?(Ge=Y[0],Ve=Y[1]):(Ge=F[0],Ve=F[1],w.invert&&(Ge=w.invert(Ge),Ve=w.invert(Ve)),Ve<Ge&&(Ee=Ge,Ge=Ve,Ve=Ee))),g&&w?[[Ce,Ge],[Fe,Ve]]:g?[Ce,Fe]:w&&[Ge,Ve])},ie.clear=function(){return ie.empty()||(D=[0,0],F=[0,0],L=Y=null),ie},ie.empty=function(){return!!g&&D[0]==D[1]||!!w&&F[0]==F[1]},e.rebind(ie,v,"on")};var yu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},zo=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=Ut(function(v){return v.responseText}),e.json=function(v,g){return Or(v,"application/json",_s,g)};function _s(v){return JSON.parse(v.responseText)}e.html=function(v,g){return Or(v,"text/html",Tf,g)};function Tf(v){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(v.responseText)}e.xml=Ut(function(v){return v.responseXML}),typeof bd=="object"&&bd.exports?bd.exports=e:this.d3=e}).apply(self)});var cy=ae((_d,m_)=>{(function(e,r){typeof _d=="object"&&typeof m_!="undefined"?r(_d):(e=e||self,r(e.d3=e.d3||{}))})(_d,function(e){"use strict";var r=new Date,t=new Date;function a(Te,Oe,Ar,Nr){function Qe(Be){return Te(Be=arguments.length===0?new Date:new Date(+Be)),Be}return Qe.floor=function(Be){return Te(Be=new Date(+Be)),Be},Qe.ceil=function(Be){return Te(Be=new Date(Be-1)),Oe(Be,1),Te(Be),Be},Qe.round=function(Be){var Xe=Qe(Be),yr=Qe.ceil(Be);return Be-Xe<yr-Be?Xe:yr},Qe.offset=function(Be,Xe){return Oe(Be=new Date(+Be),Xe==null?1:Math.floor(Xe)),Be},Qe.range=function(Be,Xe,yr){var kr=[],pr;if(Be=Qe.ceil(Be),yr=yr==null?1:Math.floor(yr),!(Be<Xe)||!(yr>0))return kr;do kr.push(pr=new Date(+Be)),Oe(Be,yr),Te(Be);while(pr<Be&&Be<Xe);return kr},Qe.filter=function(Be){return a(function(Xe){if(Xe>=Xe)for(;Te(Xe),!Be(Xe);)Xe.setTime(Xe-1)},function(Xe,yr){if(Xe>=Xe)if(yr<0)for(;++yr<=0;)for(;Oe(Xe,-1),!Be(Xe););else for(;--yr>=0;)for(;Oe(Xe,1),!Be(Xe););})},Ar&&(Qe.count=function(Be,Xe){return r.setTime(+Be),t.setTime(+Xe),Te(r),Te(t),Math.floor(Ar(r,t))},Qe.every=function(Be){return Be=Math.floor(Be),!isFinite(Be)||!(Be>0)?null:Be>1?Qe.filter(Nr?function(Xe){return Nr(Xe)%Be===0}:function(Xe){return Qe.count(0,Xe)%Be===0}):Qe}),Qe}var n=a(function(){},function(Te,Oe){Te.setTime(+Te+Oe)},function(Te,Oe){return Oe-Te});n.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?a(function(Oe){Oe.setTime(Math.floor(Oe/Te)*Te)},function(Oe,Ar){Oe.setTime(+Oe+Ar*Te)},function(Oe,Ar){return(Ar-Oe)/Te}):n};var i=n.range,o=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,c=a(function(Te){Te.setTime(Te-Te.getMilliseconds())},function(Te,Oe){Te.setTime(+Te+Oe*o)},function(Te,Oe){return(Oe-Te)/o},function(Te){return Te.getUTCSeconds()}),h=c.range,d=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o)},function(Te,Oe){Te.setTime(+Te+Oe*l)},function(Te,Oe){return(Oe-Te)/l},function(Te){return Te.getMinutes()}),m=d.range,p=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Oe){Te.setTime(+Te+Oe*u)},function(Te,Oe){return(Oe-Te)/u},function(Te){return Te.getHours()}),y=p.range,b=a(function(Te){Te.setHours(0,0,0,0)},function(Te,Oe){Te.setDate(Te.getDate()+Oe)},function(Te,Oe){return(Oe-Te-(Oe.getTimezoneOffset()-Te.getTimezoneOffset())*l)/s},function(Te){return Te.getDate()-1}),C=b.range;function x(Te){return a(function(Oe){Oe.setDate(Oe.getDate()-(Oe.getDay()+7-Te)%7),Oe.setHours(0,0,0,0)},function(Oe,Ar){Oe.setDate(Oe.getDate()+Ar*7)},function(Oe,Ar){return(Ar-Oe-(Ar.getTimezoneOffset()-Oe.getTimezoneOffset())*l)/f})}var _=x(0),A=x(1),T=x(2),M=x(3),E=x(4),P=x(5),z=x(6),B=_.range,X=A.range,H=T.range,V=M.range,I=E.range,Q=P.range,le=z.range,re=a(function(Te){Te.setDate(1),Te.setHours(0,0,0,0)},function(Te,Oe){Te.setMonth(Te.getMonth()+Oe)},function(Te,Oe){return Oe.getMonth()-Te.getMonth()+(Oe.getFullYear()-Te.getFullYear())*12},function(Te){return Te.getMonth()}),te=re.range,oe=a(function(Te){Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Oe){Te.setFullYear(Te.getFullYear()+Oe)},function(Te,Oe){return Oe.getFullYear()-Te.getFullYear()},function(Te){return Te.getFullYear()});oe.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Oe){Oe.setFullYear(Math.floor(Oe.getFullYear()/Te)*Te),Oe.setMonth(0,1),Oe.setHours(0,0,0,0)},function(Oe,Ar){Oe.setFullYear(Oe.getFullYear()+Ar*Te)})};var ce=oe.range,Me=a(function(Te){Te.setUTCSeconds(0,0)},function(Te,Oe){Te.setTime(+Te+Oe*l)},function(Te,Oe){return(Oe-Te)/l},function(Te){return Te.getUTCMinutes()}),Se=Me.range,Ie=a(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Oe){Te.setTime(+Te+Oe*u)},function(Te,Oe){return(Oe-Te)/u},function(Te){return Te.getUTCHours()}),Ue=Ie.range,ke=a(function(Te){Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCDate(Te.getUTCDate()+Oe)},function(Te,Oe){return(Oe-Te)/s},function(Te){return Te.getUTCDate()-1}),We=ke.range;function j(Te){return a(function(Oe){Oe.setUTCDate(Oe.getUTCDate()-(Oe.getUTCDay()+7-Te)%7),Oe.setUTCHours(0,0,0,0)},function(Oe,Ar){Oe.setUTCDate(Oe.getUTCDate()+Ar*7)},function(Oe,Ar){return(Ar-Oe)/f})}var ee=j(0),me=j(1),K=j(2),$=j(3),se=j(4),_e=j(5),Ne=j(6),$e=ee.range,ar=me.range,tr=K.range,fr=$.range,Re=se.range,ur=_e.range,hr=Ne.range,dr=a(function(Te){Te.setUTCDate(1),Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCMonth(Te.getUTCMonth()+Oe)},function(Te,Oe){return Oe.getUTCMonth()-Te.getUTCMonth()+(Oe.getUTCFullYear()-Te.getUTCFullYear())*12},function(Te){return Te.getUTCMonth()}),Ze=dr.range,cr=a(function(Te){Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCFullYear(Te.getUTCFullYear()+Oe)},function(Te,Oe){return Oe.getUTCFullYear()-Te.getUTCFullYear()},function(Te){return Te.getUTCFullYear()});cr.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Oe){Oe.setUTCFullYear(Math.floor(Oe.getUTCFullYear()/Te)*Te),Oe.setUTCMonth(0,1),Oe.setUTCHours(0,0,0,0)},function(Oe,Ar){Oe.setUTCFullYear(Oe.getUTCFullYear()+Ar*Te)})};var Er=cr.range;e.timeDay=b,e.timeDays=C,e.timeFriday=P,e.timeFridays=Q,e.timeHour=p,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=X,e.timeMonth=re,e.timeMonths=te,e.timeSaturday=z,e.timeSaturdays=le,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=_,e.timeSundays=B,e.timeThursday=E,e.timeThursdays=I,e.timeTuesday=T,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=V,e.timeWeek=_,e.timeWeeks=B,e.timeYear=oe,e.timeYears=ce,e.utcDay=ke,e.utcDays=We,e.utcFriday=_e,e.utcFridays=ur,e.utcHour=Ie,e.utcHours=Ue,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=Me,e.utcMinutes=Se,e.utcMonday=me,e.utcMondays=ar,e.utcMonth=dr,e.utcMonths=Ze,e.utcSaturday=Ne,e.utcSaturdays=hr,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=ee,e.utcSundays=$e,e.utcThursday=se,e.utcThursdays=Re,e.utcTuesday=K,e.utcTuesdays=tr,e.utcWednesday=$,e.utcWednesdays=fr,e.utcWeek=ee,e.utcWeeks=$e,e.utcYear=cr,e.utcYears=Er,Object.defineProperty(e,"__esModule",{value:!0})})});var s1=ae((xd,g_)=>{(function(e,r){typeof xd=="object"&&typeof g_!="undefined"?r(xd,cy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(xd,function(e,r){"use strict";function t(Ae){if(0<=Ae.y&&Ae.y<100){var Pe=new Date(-1,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L);return Pe.setFullYear(Ae.y),Pe}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 Pe=new Date(Date.UTC(-1,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L));return Pe.setUTCFullYear(Ae.y),Pe}return new Date(Date.UTC(Ae.y,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L))}function n(Ae,Pe,sr){return{y:Ae,m:Pe,d:sr,H:0,M:0,S:0,L:0}}function i(Ae){var Pe=Ae.dateTime,sr=Ae.date,gr=Ae.time,Bt=Ae.periods,Gt=Ae.days,na=Ae.shortDays,Ma=Ae.months,It=Ae.shortMonths,jt=h(Bt),da=d(Bt),ea=h(Gt),mn=d(Gt),rn=h(na),Un=d(na),Jr=h(Ma),ua=d(Ma),Rt=h(It),pa=d(It),ya={a:Wu,A:sl,b:$a,B:Pi,c:null,d:re,e:re,f:Se,g:_e,G:$e,H:te,I:oe,j:ce,L:Me,m:Ie,M:Ue,p:fl,q:Ri,Q:Fr,s:Hr,S:ke,u:We,U:j,V:me,w:K,W:$,x:null,X:null,y:se,Y:Ne,Z:ar,"%":Pr},ba={a:Ai,A:eu,b:ru,B:ju,c:null,d:tr,e:tr,f:dr,g:yr,G:pr,H:fr,I:Re,j:ur,L:hr,m:Ze,M:cr,p:tu,q:Zu,Q:Fr,s:Hr,S:Er,u:Te,U:Oe,V:Nr,w:Qe,W:Be,x:null,X:null,y:Xe,Y:kr,Z:xr,"%":Pr},Yt={a:Fa,A:Da,b:Co,B:qi,c:Xu,d:E,e:E,f:V,g:_,G:x,H:z,I:z,j:P,L:H,m:M,M:B,p:aa,q:T,Q,s:le,S:X,u:p,U:y,V:b,w:m,W:C,x:Ql,X:ul,y:_,Y:x,Z:A,"%":I};ya.x=za(sr,ya),ya.X=za(gr,ya),ya.c=za(Pe,ya),ba.x=za(sr,ba),ba.X=za(gr,ba),ba.c=za(Pe,ba);function za(it,lt){return function(Ut){var Or=[],vn=-1,ia=0,Ha=it.length,Ga,zn,cl;for(Ut instanceof Date||(Ut=new Date(+Ut));++vn<Ha;)it.charCodeAt(vn)===37&&(Or.push(it.slice(ia,vn)),(zn=o[Ga=it.charAt(++vn)])!=null?Ga=it.charAt(++vn):zn=Ga==="e"?" ":"0",(cl=lt[Ga])&&(Ga=cl(Ut,zn)),Or.push(Ga),ia=vn+1);return Or.push(it.slice(ia,vn)),Or.join("")}}function gn(it,lt){return function(Ut){var Or=n(1900,void 0,1),vn=ma(Or,it,Ut+="",0),ia,Ha;if(vn!=Ut.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(lt&&!("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?(ia=a(n(Or.y,0,1)),Ha=ia.getUTCDay(),ia=Ha>4||Ha===0?r.utcMonday.ceil(ia):r.utcMonday(ia),ia=r.utcDay.offset(ia,(Or.V-1)*7),Or.y=ia.getUTCFullYear(),Or.m=ia.getUTCMonth(),Or.d=ia.getUTCDate()+(Or.w+6)%7):(ia=t(n(Or.y,0,1)),Ha=ia.getDay(),ia=Ha>4||Ha===0?r.timeMonday.ceil(ia):r.timeMonday(ia),ia=r.timeDay.offset(ia,(Or.V-1)*7),Or.y=ia.getFullYear(),Or.m=ia.getMonth(),Or.d=ia.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),Ha="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-(Ha+5)%7:Or.w+Or.U*7-(Ha+6)%7);return"Z"in Or?(Or.H+=Or.Z/100|0,Or.M+=Or.Z%100,a(Or)):t(Or)}}function ma(it,lt,Ut,Or){for(var vn=0,ia=lt.length,Ha=Ut.length,Ga,zn;vn<ia;){if(Or>=Ha)return-1;if(Ga=lt.charCodeAt(vn++),Ga===37){if(Ga=lt.charAt(vn++),zn=Yt[Ga in o?lt.charAt(vn++):Ga],!zn||(Or=zn(it,Ut,Or))<0)return-1}else if(Ga!=Ut.charCodeAt(Or++))return-1}return Or}function aa(it,lt,Ut){var Or=jt.exec(lt.slice(Ut));return Or?(it.p=da[Or[0].toLowerCase()],Ut+Or[0].length):-1}function Fa(it,lt,Ut){var Or=rn.exec(lt.slice(Ut));return Or?(it.w=Un[Or[0].toLowerCase()],Ut+Or[0].length):-1}function Da(it,lt,Ut){var Or=ea.exec(lt.slice(Ut));return Or?(it.w=mn[Or[0].toLowerCase()],Ut+Or[0].length):-1}function Co(it,lt,Ut){var Or=Rt.exec(lt.slice(Ut));return Or?(it.m=pa[Or[0].toLowerCase()],Ut+Or[0].length):-1}function qi(it,lt,Ut){var Or=Jr.exec(lt.slice(Ut));return Or?(it.m=ua[Or[0].toLowerCase()],Ut+Or[0].length):-1}function Xu(it,lt,Ut){return ma(it,Pe,lt,Ut)}function Ql(it,lt,Ut){return ma(it,sr,lt,Ut)}function ul(it,lt,Ut){return ma(it,gr,lt,Ut)}function Wu(it){return na[it.getDay()]}function sl(it){return Gt[it.getDay()]}function $a(it){return It[it.getMonth()]}function Pi(it){return Ma[it.getMonth()]}function fl(it){return Bt[+(it.getHours()>=12)]}function Ri(it){return 1+~~(it.getMonth()/3)}function Ai(it){return na[it.getUTCDay()]}function eu(it){return Gt[it.getUTCDay()]}function ru(it){return It[it.getUTCMonth()]}function ju(it){return Ma[it.getUTCMonth()]}function tu(it){return Bt[+(it.getUTCHours()>=12)]}function Zu(it){return 1+~~(it.getUTCMonth()/3)}return{format:function(it){var lt=za(it+="",ya);return lt.toString=function(){return it},lt},parse:function(it){var lt=gn(it+="",!1);return lt.toString=function(){return it},lt},utcFormat:function(it){var lt=za(it+="",ba);return lt.toString=function(){return it},lt},utcParse:function(it){var lt=gn(it+="",!0);return lt.toString=function(){return it},lt}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Ae,Pe,sr){var gr=Ae<0?"-":"",Bt=(gr?-Ae:Ae)+"",Gt=Bt.length;return gr+(Gt<sr?new Array(sr-Gt+1).join(Pe)+Bt:Bt)}function c(Ae){return Ae.replace(s,"\\$&")}function h(Ae){return new RegExp("^(?:"+Ae.map(c).join("|")+")","i")}function d(Ae){for(var Pe={},sr=-1,gr=Ae.length;++sr<gr;)Pe[Ae[sr].toLowerCase()]=sr;return Pe}function m(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+1));return gr?(Ae.w=+gr[0],sr+gr[0].length):-1}function p(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+1));return gr?(Ae.u=+gr[0],sr+gr[0].length):-1}function y(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+2));return gr?(Ae.U=+gr[0],sr+gr[0].length):-1}function b(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+2));return gr?(Ae.V=+gr[0],sr+gr[0].length):-1}function C(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+2));return gr?(Ae.W=+gr[0],sr+gr[0].length):-1}function x(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+4));return gr?(Ae.y=+gr[0],sr+gr[0].length):-1}function _(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+2));return gr?(Ae.y=+gr[0]+(+gr[0]>68?1900:2e3),sr+gr[0].length):-1}function A(Ae,Pe,sr){var gr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Pe.slice(sr,sr+6));return gr?(Ae.Z=gr[1]?0:-(gr[2]+(gr[3]||"00")),sr+gr[0].length):-1}function T(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+1));return gr?(Ae.q=gr[0]*3-3,sr+gr[0].length):-1}function M(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+2));return gr?(Ae.m=gr[0]-1,sr+gr[0].length):-1}function E(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+2));return gr?(Ae.d=+gr[0],sr+gr[0].length):-1}function P(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+3));return gr?(Ae.m=0,Ae.d=+gr[0],sr+gr[0].length):-1}function z(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+2));return gr?(Ae.H=+gr[0],sr+gr[0].length):-1}function B(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+2));return gr?(Ae.M=+gr[0],sr+gr[0].length):-1}function X(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+2));return gr?(Ae.S=+gr[0],sr+gr[0].length):-1}function H(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+3));return gr?(Ae.L=+gr[0],sr+gr[0].length):-1}function V(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr,sr+6));return gr?(Ae.L=Math.floor(gr[0]/1e3),sr+gr[0].length):-1}function I(Ae,Pe,sr){var gr=u.exec(Pe.slice(sr,sr+1));return gr?sr+gr[0].length:-1}function Q(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr));return gr?(Ae.Q=+gr[0],sr+gr[0].length):-1}function le(Ae,Pe,sr){var gr=l.exec(Pe.slice(sr));return gr?(Ae.s=+gr[0],sr+gr[0].length):-1}function re(Ae,Pe){return f(Ae.getDate(),Pe,2)}function te(Ae,Pe){return f(Ae.getHours(),Pe,2)}function oe(Ae,Pe){return f(Ae.getHours()%12||12,Pe,2)}function ce(Ae,Pe){return f(1+r.timeDay.count(r.timeYear(Ae),Ae),Pe,3)}function Me(Ae,Pe){return f(Ae.getMilliseconds(),Pe,3)}function Se(Ae,Pe){return Me(Ae,Pe)+"000"}function Ie(Ae,Pe){return f(Ae.getMonth()+1,Pe,2)}function Ue(Ae,Pe){return f(Ae.getMinutes(),Pe,2)}function ke(Ae,Pe){return f(Ae.getSeconds(),Pe,2)}function We(Ae){var Pe=Ae.getDay();return Pe===0?7:Pe}function j(Ae,Pe){return f(r.timeSunday.count(r.timeYear(Ae)-1,Ae),Pe,2)}function ee(Ae){var Pe=Ae.getDay();return Pe>=4||Pe===0?r.timeThursday(Ae):r.timeThursday.ceil(Ae)}function me(Ae,Pe){return Ae=ee(Ae),f(r.timeThursday.count(r.timeYear(Ae),Ae)+(r.timeYear(Ae).getDay()===4),Pe,2)}function K(Ae){return Ae.getDay()}function $(Ae,Pe){return f(r.timeMonday.count(r.timeYear(Ae)-1,Ae),Pe,2)}function se(Ae,Pe){return f(Ae.getFullYear()%100,Pe,2)}function _e(Ae,Pe){return Ae=ee(Ae),f(Ae.getFullYear()%100,Pe,2)}function Ne(Ae,Pe){return f(Ae.getFullYear()%1e4,Pe,4)}function $e(Ae,Pe){var sr=Ae.getDay();return Ae=sr>=4||sr===0?r.timeThursday(Ae):r.timeThursday.ceil(Ae),f(Ae.getFullYear()%1e4,Pe,4)}function ar(Ae){var Pe=Ae.getTimezoneOffset();return(Pe>0?"-":(Pe*=-1,"+"))+f(Pe/60|0,"0",2)+f(Pe%60,"0",2)}function tr(Ae,Pe){return f(Ae.getUTCDate(),Pe,2)}function fr(Ae,Pe){return f(Ae.getUTCHours(),Pe,2)}function Re(Ae,Pe){return f(Ae.getUTCHours()%12||12,Pe,2)}function ur(Ae,Pe){return f(1+r.utcDay.count(r.utcYear(Ae),Ae),Pe,3)}function hr(Ae,Pe){return f(Ae.getUTCMilliseconds(),Pe,3)}function dr(Ae,Pe){return hr(Ae,Pe)+"000"}function Ze(Ae,Pe){return f(Ae.getUTCMonth()+1,Pe,2)}function cr(Ae,Pe){return f(Ae.getUTCMinutes(),Pe,2)}function Er(Ae,Pe){return f(Ae.getUTCSeconds(),Pe,2)}function Te(Ae){var Pe=Ae.getUTCDay();return Pe===0?7:Pe}function Oe(Ae,Pe){return f(r.utcSunday.count(r.utcYear(Ae)-1,Ae),Pe,2)}function Ar(Ae){var Pe=Ae.getUTCDay();return Pe>=4||Pe===0?r.utcThursday(Ae):r.utcThursday.ceil(Ae)}function Nr(Ae,Pe){return Ae=Ar(Ae),f(r.utcThursday.count(r.utcYear(Ae),Ae)+(r.utcYear(Ae).getUTCDay()===4),Pe,2)}function Qe(Ae){return Ae.getUTCDay()}function Be(Ae,Pe){return f(r.utcMonday.count(r.utcYear(Ae)-1,Ae),Pe,2)}function Xe(Ae,Pe){return f(Ae.getUTCFullYear()%100,Pe,2)}function yr(Ae,Pe){return Ae=Ar(Ae),f(Ae.getUTCFullYear()%100,Pe,2)}function kr(Ae,Pe){return f(Ae.getUTCFullYear()%1e4,Pe,4)}function pr(Ae,Pe){var sr=Ae.getUTCDay();return Ae=sr>=4||sr===0?r.utcThursday(Ae):r.utcThursday.ceil(Ae),f(Ae.getUTCFullYear()%1e4,Pe,4)}function xr(){return"+0000"}function Pr(){return"%"}function Fr(Ae){return+Ae}function Hr(Ae){return Math.floor(+Ae/1e3)}var rr;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 rr=i(Ae),e.timeFormat=rr.format,e.timeParse=rr.parse,e.utcFormat=rr.utcFormat,e.utcParse=rr.utcParse,rr}var vr="%Y-%m-%dT%H:%M:%S.%LZ";function Xr(Ae){return Ae.toISOString()}var Kr=Date.prototype.toISOString?Xr:e.utcFormat(vr);function Lr(Ae){var Pe=new Date(Ae);return isNaN(Pe)?null:Pe}var Wr=+new Date("2000-01-01T00:00:00.000Z")?Lr:e.utcParse(vr);e.isoFormat=Kr,e.isoParse=Wr,e.timeFormatDefaultLocale=Cr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var vy=ae((wd,y_)=>{(function(e,r){typeof wd=="object"&&typeof y_!="undefined"?r(wd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(wd,(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 B=P.length,X=[],H=0,V=M[0],I=0;B>0&&V>0&&(I+V+1>z&&(V=Math.max(1,z-I)),X.push(P.substring(B-=V,B+V)),!((I+=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 u({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=u.prototype;function u(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+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function s(M){e:for(var E=M.length,P=1,z=-1,B;P<E;++P)switch(M[P]){case".":z=B=P;break;case"0":z===0&&(z=P),B=P;break;default:if(!+M[P])break e;z>0&&(z=0);break}return z>0?M.slice(0,z)+M.slice(B+1):M}var f;function c(M,E){var P=t(M,E);if(!P)return M+"";var z=P[0],B=P[1],X=B-(f=Math.max(-8,Math.min(8,Math.floor(B/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 h(M,E){var P=t(M,E);if(!P)return M+"";var z=P[0],B=P[1];return B<0?"0."+new Array(-B).join("0")+z:z.length>B+1?z.slice(0,B+1)+"."+z.slice(B+1):z+new Array(B-z.length+2).join("0")}var d={"%":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 h(M*100,E)},r:h,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function m(M){return M}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var E=M.grouping===void 0||M.thousands===void 0?m:n(p.call(M.grouping,Number),M.thousands+""),P=M.currency===void 0?"":M.currency[0]+"",z=M.currency===void 0?"":M.currency[1]+"",B=M.decimal===void 0?".":M.decimal+"",X=M.numerals===void 0?m:i(p.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",V=M.minus===void 0?"-":M.minus+"",I=M.nan===void 0?"NaN":M.nan+"";function Q(re){re=l(re);var te=re.fill,oe=re.align,ce=re.sign,Me=re.symbol,Se=re.zero,Ie=re.width,Ue=re.comma,ke=re.precision,We=re.trim,j=re.type;j==="n"?(Ue=!0,j="g"):d[j]||(ke===void 0&&(ke=12),We=!0,j="g"),(Se||te==="0"&&oe==="=")&&(Se=!0,te="0",oe="=");var ee=Me==="$"?P:Me==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",me=Me==="$"?z:/[%p]/.test(j)?H:"",K=d[j],$=/[defgprs%]/.test(j);ke=ke===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,ke)):Math.max(0,Math.min(20,ke));function se(_e){var Ne=ee,$e=me,ar,tr,fr;if(j==="c")$e=K(_e)+$e,_e="";else{_e=+_e;var Re=_e<0||1/_e<0;if(_e=isNaN(_e)?I:K(Math.abs(_e),ke),We&&(_e=s(_e)),Re&&+_e==0&&ce!=="+"&&(Re=!1),Ne=(Re?ce==="("?ce:V:ce==="-"||ce==="("?"":ce)+Ne,$e=(j==="s"?y[8+f/3]:"")+$e+(Re&&ce==="("?")":""),$){for(ar=-1,tr=_e.length;++ar<tr;)if(fr=_e.charCodeAt(ar),48>fr||fr>57){$e=(fr===46?B+_e.slice(ar+1):_e.slice(ar))+$e,_e=_e.slice(0,ar);break}}}Ue&&!Se&&(_e=E(_e,1/0));var ur=Ne.length+_e.length+$e.length,hr=ur<Ie?new Array(Ie-ur+1).join(te):"";switch(Ue&&Se&&(_e=E(hr+_e,hr.length?Ie-$e.length:1/0),hr=""),oe){case"<":_e=Ne+_e+$e+hr;break;case"=":_e=Ne+hr+_e+$e;break;case"^":_e=hr.slice(0,ur=hr.length>>1)+Ne+_e+$e+hr.slice(ur);break;default:_e=hr+Ne+_e+$e;break}return X(_e)}return se.toString=function(){return re+""},se}function le(re,te){var oe=Q((re=l(re),re.type="f",re)),ce=Math.max(-8,Math.min(8,Math.floor(a(te)/3)))*3,Me=Math.pow(10,-ce),Se=y[8+ce/3];return function(Ie){return oe(Me*Ie)+Se}}return{format:Q,formatPrefix:le}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(M){return C=b(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=u,e.formatDefaultLocale=x,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=_,e.precisionPrefix=A,e.precisionRound=T,Object.defineProperty(e,"__esModule",{value:!0})}))});var __=ae((Bpe,b_)=>{"use strict";b_.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 Wt=ae((Ipe,x_)=>{"use strict";var FY=__();x_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&FY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Oa=ae((Hpe,w_)=>{"use strict";w_.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var hy=ae((Ad,A_)=>{(function(e,r){typeof Ad=="object"&&typeof A_!="undefined"?r(Ad):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Ad,(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),u,s=l.length,f="";for(u=0;u<s;u+=3)f+=r[l[u]>>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,u=o.length,s,f=0,c,h,d,m;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var p=new ArrayBuffer(l),y=new Uint8Array(p);for(s=0;s<u;s+=4)c=t[o.charCodeAt(s)],h=t[o.charCodeAt(s+1)],d=t[o.charCodeAt(s+2)],m=t[o.charCodeAt(s+3)],y[f++]=c<<2|h>>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return p};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var l0=ae((Ope,M_)=>{"use strict";M_.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 Vi=ae(Fl=>{"use strict";var EY=hy().decode,LY=l0(),dy=Array.isArray,qY=ArrayBuffer,PY=DataView;function T_(e){return qY.isView(e)&&!(e instanceof PY)}Fl.isTypedArray=T_;function Md(e){return dy(e)||T_(e)}Fl.isArrayOrTypedArray=Md;function RY(e){return!Md(e[0])}Fl.isArray1D=RY;Fl.ensureArray=function(e,r){return dy(e)||(e=[]),e.length=r,e};var Bn={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};Bn.uint8c=Bn.u1c;Bn.uint8=Bn.u1;Bn.int8=Bn.i1;Bn.uint16=Bn.u2;Bn.int16=Bn.i2;Bn.uint32=Bn.u4;Bn.int32=Bn.i4;Bn.float32=Bn.f4;Bn.float64=Bn.f8;function py(e){return e.constructor===ArrayBuffer}Fl.isArrayBuffer=py;Fl.decodeTypedArraySpec=function(e){var r=[],t=zY(e),a=t.dtype,n=Bn[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;py(o)||(o=EY(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,c=+l[0],h=i*c,d=0;if(u===1)r=new n(o);else if(u===2)for(s=+l[1],f=0;f<s;f++)r[f]=new n(o,d,c),d+=h;else if(u===3){s=+l[1];for(var m=+l[2],p=0;p<m;p++)for(r[p]=[],f=0;f<s;f++)r[p][f]=new n(o,d,c),d+=h}else throw new Error("ndim: "+u+'is not supported with the shape:"'+t.shape+'"');return r.bdata=t.bdata,r.dtype=t.dtype,r.shape=l.reverse().join(","),e._inputArray=r,r};Fl.isTypedArraySpec=function(e){return LY(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 zY(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Fl.concat=function(){var e=[],r=!0,t=0,a,n,i,o,l,u,s,f;for(i=0;i<arguments.length;i++)o=arguments[i],u=o.length,u&&(n?e.push(o):(n=o,l=u),dy(o)?a=!1:(r=!1,t?a!==o.constructor&&(a=!1):a=o.constructor),t+=u);if(!t)return[];if(!e.length)return n;if(r)return n.concat.apply(n,e);if(a){for(s=new a(t),s.set(n),i=0;i<e.length;i++)o=e[i],s.set(o,l),l+=o.length;return s}for(s=new Array(t),f=0;f<n.length;f++)s[f]=n[f];for(i=0;i<e.length;i++){for(o=e[i],f=0;f<o.length;f++)s[l+f]=o[f];l+=f}return s};Fl.maxRowLength=function(e){return k_(e,Math.max,0)};Fl.minRowLength=function(e){return k_(e,Math.min,1/0)};function k_(e,r,t){if(Md(e))if(Md(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 K2=ae((Gpe,E_)=>{"use strict";var C_=Wt(),gy=Vi().isArrayOrTypedArray;E_.exports=function(r,t){if(C_(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"?HY(r,t,a):{set:S_(r,a,t),get:D_(r,a),astr:t,parts:a,obj:r}};function D_(e,r){return function(t){var a=e,n,i,o,l,u;for(l=0;l<r.length-1;l++){if(n=r[l],n===-1){for(i=!0,o=[],u=0;u<a.length;u++)o[u]=D_(a[u],r.slice(l+1))(t),o[u]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof n=="number"&&!gy(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 NY=/(^|\.)args\[/;function my(e,r){return e===void 0||e===null&&!r.match(NY)}function S_(e,r,t){return function(a){var n=e,i="",o=[[e,i]],l=my(a,t),u,s;for(s=0;s<r.length-1;s++){if(u=r[s],typeof u=="number"&&!gy(n))throw"array index but container is not an array";if(u===-1){if(l=!IY(n,r.slice(s+1),a,t),l)break;return}if(!F_(n,u,r[s+1],l))break;if(n=n[u],typeof n!="object"||n===null)throw"container is not an object";i=BY(i,u),o.push([n,i])}if(l){if(s===r.length-1&&(delete n[r[s]],Array.isArray(n)&&+r[s]===n.length-1))for(;n.length&&n[n.length-1]===void 0;)n.pop()}else n[r[s]]=a}}function BY(e,r){var t=r;return C_(r)?t="["+r+"]":e&&(t="."+r),e+t}function IY(e,r,t,a){var n=gy(t),i=!0,o=t,l=a.replace("-1",0),u=n?!1:my(t,l),s=r[0],f;for(f=0;f<e.length;f++)l=a.replace("-1",f),n&&(o=t[f%t.length],u=my(o,l)),u&&(i=!1),F_(e,f,s,u)&&S_(e[f],r,a.replace("-1",f))(o);return i}function F_(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function HY(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var R_=ae((Ype,P_)=>{"use strict";var f1=K2(),OY=/^\w*$/,UY=0,L_=1,Td=2,q_=3,Df=4;P_.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,u={};t&&t.length?(l=f1(r,t),o=l.get()):o=r,t=t||"";var s={};if(o)for(i=0;i<o.length;i++)s[o[i][a]]=i;var f=OY.test(n),c={set:function(h,d){var m=d===null?Df:UY;if(!o){if(!l||m===Df)return;o=[],l.set(o)}var p=s[h];if(p===void 0){if(m===Df)return;m=m|q_,p=o.length,s[h]=p}else d!==(f?o[p][n]:f1(o[p],n).get())&&(m=m|Td);var y=o[p]=o[p]||{};return y[a]=h,f?y[n]=d:f1(y,n).set(d),d!==null&&(m=m&~Df),u[p]=u[p]|m,c},get:function(h){if(o){var d=s[h];if(d!==void 0)return f?o[d][n]:f1(o[d],n).get()}},rename:function(h,d){var m=s[h];return m===void 0||(u[m]=u[m]|L_,s[d]=m,delete s[h],o[m][a]=d),c},remove:function(h){var d=s[h];if(d===void 0)return c;var m=o[d];if(Object.keys(m).length>2)return u[d]=u[d]|Td,c.set(h,null);if(f){for(i=d;i<o.length;i++)u[i]=u[i]|q_;for(i=d;i<o.length;i++)s[o[i][a]]--;o.splice(d,1),delete s[h]}else f1(m,n).set(null),u[d]=u[d]|Td|Df;return c},constructUpdate:function(){for(var h,d,m={},p=Object.keys(u),y=0;y<p.length;y++)d=p[y],h=t+"["+d+"]",o[d]?(u[d]&L_&&(m[h+"."+a]=o[d][a]),u[d]&Td&&(f?m[h+"."+n]=u[d]&Df?null:o[d][n]:m[h+"."+n]=u[d]&Df?null:f1(o[d],n).get())):m[h]=null;return m}};return c}});var N_=ae((Vpe,z_)=>{"use strict";var GY=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,YY=/^[^\.\[\]]+$/;z_.exports=function(e,r){for(;r;){var t=e.match(GY);if(t)e=t[1];else if(e.match(YY))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 kd=ae((Xpe,B_)=>{"use strict";var VY=Wt();B_.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 VY(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var O_=ae((Wpe,H_)=>{"use strict";var I_=Vi().isArrayOrTypedArray,Q2=l0();H_.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(I_(n)&&I_(i)&&Q2(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]&&Q2(n[l])&&Q2(i[l])&&e(i[l],n[l])}else Q2(n)&&Q2(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var c1={};u1(c1,{mod:()=>XY,modHalf:()=>WY});function XY(e,r){let t=e%r;return t<0?t+r:t}function WY(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var v1=l1(()=>{"use strict"});var _n=ae(tv=>{"use strict";var U_=l0(),ev=Array.isArray;function jY(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}tv.extendFlat=function(...e){return rv(e,!1,!1,!1)};tv.extendDeep=function(...e){return rv(e,!0,!1,!1)};tv.extendDeepAll=function(...e){return rv(e,!0,!0,!1)};tv.extendDeepNoArrays=function(...e){return rv(e,!0,!1,!0)};function rv(e,r,t,a){var n=e[0],i=e.length,o,l,u,s,f,c,h;if(i===2&&ev(n)&&ev(e[1])&&n.length===0){if(h=jY(e[1],n),h)return n;n.splice(0,n.length)}for(var d=1;d<i;d++){o=e[d];for(l in o)u=n[l],s=o[l],a&&ev(s)?n[l]=s:r&&s&&(U_(s)||(f=ev(s)))?(f?(f=!1,c=u&&ev(u)?u:[]):c=u&&U_(u)?u:{},n[l]=rv([c,s],r,t,a)):(typeof s!="undefined"||t)&&(n[l]=s)}return n}});var vi=ae((Zpe,G_)=>{"use strict";G_.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 av=ae((Jpe,Y_)=>{"use strict";Y_.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var h1=ae(($pe,W_)=>{"use strict";var V_=av(),X_=vi(),yy=X_({editType:"none"});yy.family.dflt=V_.HOVERFONT;yy.size.dflt=V_.HOVERFONTSIZE;W_.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:yy,grouptitlefont:X_({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 Cd=ae((Kpe,j_)=>{"use strict";var ZY=vi(),nv=h1().hoverlabel,iv=_n().extendFlat;j_.exports={hoverlabel:{bgcolor:iv({},nv.bgcolor,{arrayOk:!0}),bordercolor:iv({},nv.bordercolor,{arrayOk:!0}),font:ZY({arrayOk:!0,editType:"none"}),align:iv({},nv.align,{arrayOk:!0}),namelength:iv({},nv.namelength,{arrayOk:!0}),showarrow:iv({},nv.showarrow),editType:"none"}}});var Io=ae((Qpe,Z_)=>{"use strict";var JY=vi(),$Y=Cd();Z_.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:JY({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:$Y.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var Ow=ae((ome,Hw)=>{var f4=Object.defineProperty,KY=Object.getOwnPropertyDescriptor,QY=Object.getOwnPropertyNames,eV=Object.prototype.hasOwnProperty,rV=(e,r)=>{for(var t in r)f4(e,t,{get:r[t],enumerable:!0})},tV=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of QY(r))!eV.call(e,n)&&n!==t&&f4(e,n,{get:()=>r[n],enumerable:!(a=KY(r,n))||a.enumerable});return e},aV=e=>tV(f4({},"__esModule",{value:!0}),e),ix={};rV(ix,{a98:()=>jj,average:()=>QV,averageAngle:()=>wu,averageNumber:()=>wx,blend:()=>KW,blerp:()=>Yy,clampChroma:()=>yj,clampGamut:()=>N4,clampRgb:()=>gj,colorsNamed:()=>lx,convertA98ToXyz65:()=>Vy,convertCubehelixToRgb:()=>_x,convertDlchToLab65:()=>zd,convertHsiToRgb:()=>Fx,convertHslToRgb:()=>qx,convertHsvToRgb:()=>m4,convertHwbToRgb:()=>Nx,convertItpToXyz65:()=>Wy,convertJabToJch:()=>Zy,convertJabToRgb:()=>w4,convertJabToXyz65:()=>_4,convertJchToJab:()=>Jy,convertLab65ToDlch:()=>Nd,convertLab65ToRgb:()=>hv,convertLab65ToXyz65:()=>h4,convertLabToLch:()=>xs,convertLabToRgb:()=>M4,convertLabToXyz50:()=>Wd,convertLchToLab:()=>ws,convertLchuvToLuv:()=>C4,convertLrgbToOklab:()=>D4,convertLrgbToRgb:()=>Rf,convertLuvToLchuv:()=>k4,convertLuvToXyz50:()=>Id,convertOkhslToOklab:()=>Qy,convertOkhsvToOklab:()=>r4,convertOklabToLrgb:()=>x1,convertOklabToOkhsl:()=>Ky,convertOklabToOkhsv:()=>e4,convertOklabToRgb:()=>mv,convertP3ToXyz65:()=>t4,convertProphotoToXyz50:()=>i4,convertRec2020ToXyz65:()=>l4,convertRgbToCubehelix:()=>bx,convertRgbToHsi:()=>Ex,convertRgbToHsl:()=>Px,convertRgbToHsv:()=>g4,convertRgbToHwb:()=>Bx,convertRgbToJab:()=>x4,convertRgbToLab:()=>T4,convertRgbToLab65:()=>dv,convertRgbToLrgb:()=>Pf,convertRgbToOklab:()=>pv,convertRgbToXyb:()=>vw,convertRgbToXyz50:()=>_1,convertRgbToXyz65:()=>u0,convertRgbToYiq:()=>bw,convertXybToRgb:()=>hw,convertXyz50ToLab:()=>jd,convertXyz50ToLuv:()=>Bd,convertXyz50ToProphoto:()=>n4,convertXyz50ToRgb:()=>b1,convertXyz50ToXyz65:()=>gw,convertXyz65ToA98:()=>Xy,convertXyz65ToItp:()=>jy,convertXyz65ToJab:()=>b4,convertXyz65ToLab65:()=>d4,convertXyz65ToP3:()=>a4,convertXyz65ToRec2020:()=>o4,convertXyz65ToRgb:()=>s0,convertXyz65ToXyz50:()=>mw,convertYiqToRgb:()=>_w,converter:()=>Ea,cubehelix:()=>Zj,differenceCie76:()=>XV,differenceCie94:()=>WV,differenceCiede2000:()=>jV,differenceCmc:()=>ZV,differenceEuclidean:()=>y1,differenceHueChroma:()=>vv,differenceHueNaive:()=>xx,differenceHueSaturation:()=>cv,differenceHyab:()=>JV,differenceItp:()=>KV,differenceKotsarenkoRamos:()=>$V,displayable:()=>z4,dlab:()=>Jj,dlch:()=>$j,easingGamma:()=>Rw,easingInOutSine:()=>Xj,easingMidpoint:()=>Dw,easingSmootherstep:()=>Yj,easingSmoothstep:()=>Oj,easingSmoothstepInverse:()=>Uj,filterBrightness:()=>Cj,filterContrast:()=>Dj,filterDeficiencyDeuter:()=>Ij,filterDeficiencyProt:()=>Bj,filterDeficiencyTrit:()=>Hj,filterGrayscale:()=>Ej,filterHueRotate:()=>qj,filterInvert:()=>Lj,filterSaturate:()=>Fj,filterSepia:()=>Sj,fixupAlpha:()=>Fn,fixupHueDecreasing:()=>OV,fixupHueIncreasing:()=>HV,fixupHueLonger:()=>IV,fixupHueShorter:()=>xu,formatCss:()=>VW,formatHex:()=>XW,formatHex8:()=>WW,formatHsl:()=>ZW,formatRgb:()=>jW,getMode:()=>hi,hsi:()=>Kj,hsl:()=>Qj,hsv:()=>eZ,hwb:()=>rZ,inGamut:()=>$d,interpolate:()=>lj,interpolateWith:()=>Fw,interpolateWithPremultipliedAlpha:()=>uj,interpolatorLinear:()=>at,interpolatorPiecewise:()=>gx,interpolatorSplineBasis:()=>Lw,interpolatorSplineBasisClosed:()=>qw,interpolatorSplineMonotone:()=>cj,interpolatorSplineMonotone2:()=>vj,interpolatorSplineMonotoneClosed:()=>hj,interpolatorSplineNatural:()=>sj,interpolatorSplineNaturalClosed:()=>fj,itp:()=>tZ,jab:()=>aZ,jch:()=>nZ,lab:()=>iZ,lab65:()=>oZ,lch:()=>lZ,lch65:()=>uZ,lchuv:()=>sZ,lerp:()=>Ff,lrgb:()=>fZ,luv:()=>cZ,mapAlphaDivide:()=>Cw,mapAlphaMultiply:()=>kw,mapTransferGamma:()=>aj,mapTransferLinear:()=>q4,mapper:()=>gv,modeA98:()=>yx,modeCubehelix:()=>Ax,modeDlab:()=>Dx,modeDlch:()=>Sx,modeHsi:()=>Lx,modeHsl:()=>p4,modeHsv:()=>y4,modeHwb:()=>Hx,modeItp:()=>Gx,modeJab:()=>Yx,modeJch:()=>Vx,modeLab:()=>Zd,modeLab65:()=>Wx,modeLch:()=>Jd,modeLch65:()=>Zx,modeLchuv:()=>Kx,modeLrgb:()=>Qx,modeLuv:()=>ew,modeOkhsl:()=>tw,modeOkhsv:()=>aw,modeOklab:()=>iw,modeOklch:()=>lw,modeP3:()=>uw,modeProphoto:()=>sw,modeRec2020:()=>fw,modeRgb:()=>qf,modeXyb:()=>dw,modeXyz50:()=>pw,modeXyz65:()=>yw,modeYiq:()=>xw,nearest:()=>xj,okhsl:()=>vZ,okhsv:()=>hZ,oklab:()=>dZ,oklch:()=>pZ,p3:()=>mZ,parse:()=>dx,parseHex:()=>sx,parseHsl:()=>zx,parseHslLegacy:()=>Rx,parseHwb:()=>Ix,parseLab:()=>Xx,parseLch:()=>jx,parseNamed:()=>ux,parseOklab:()=>nw,parseOklch:()=>ow,parseRgb:()=>px,parseRgbLegacy:()=>fx,parseTransparent:()=>mx,prophoto:()=>gZ,random:()=>tj,rec2020:()=>yZ,removeParser:()=>gV,rgb:()=>bZ,round:()=>ww,samples:()=>mj,serializeHex:()=>L4,serializeHex8:()=>Aw,serializeHsl:()=>Tw,serializeRgb:()=>Mw,toGamut:()=>bj,trilerp:()=>DV,unlerp:()=>CV,useMode:()=>wa,useParser:()=>vx,wcagContrast:()=>Wj,wcagLuminance:()=>s4,xyb:()=>_Z,xyz50:()=>xZ,xyz65:()=>wZ,yiq:()=>AZ});Hw.exports=aV(ix);var nV=(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}}},ox=nV,iV={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},lx=iV,oV=e=>ox(lx[e.toLowerCase()],6),ux=oV,lV=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,uV=e=>{let r;return(r=e.match(lV))?ox(parseInt(r[1],16),r[1].length):void 0},sx=uV,Xi="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",eme=`(?:${Xi}|none)`,uv=`${Xi}%`,rme=`(?:${Xi}%|none)`,c4=`(?:${Xi}%|${Xi})`,sV=`(?:${Xi}%|${Xi}|none)`,fV=`(?:${Xi}(deg|grad|rad|turn)|${Xi})`,tme=`(?:${Xi}(deg|grad|rad|turn)|${Xi}|none)`,m1="\\s*,\\s*",ame=new RegExp("^"+sV+"$"),cV=new RegExp(`^rgba?\\(\\s*${Xi}${m1}${Xi}${m1}${Xi}\\s*(?:,\\s*${c4}\\s*)?\\)$`),vV=new RegExp(`^rgba?\\(\\s*${uv}${m1}${uv}${m1}${uv}\\s*(?:,\\s*${c4}\\s*)?\\)$`),hV=e=>{let r={mode:"rgb"},t;if(t=e.match(cV))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(vV))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},fx=hV,dV=(e,r)=>e===void 0?void 0:typeof e!="object"?dx(e):e.mode!==void 0?e:r?Na(ha({},e),{mode:r}):void 0,El=dV,pV=(e="rgb")=>r=>(r=El(r,e))!==void 0?r.mode===e?r:_u[r.mode][e]?_u[r.mode][e](r):e==="rgb"?_u[r.mode].rgb(r):_u.rgb[e](_u[r.mode].rgb(r)):void 0,Ea=pV,_u={},cx={},g1=[],v4={},mV=e=>e,wa=e=>(_u[e.mode]=ha(ha({},_u[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{_u[r]||(_u[r]={}),_u[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=mV)}),cx[e.mode]=e,(e.parse||[]).forEach(r=>{vx(r,e.mode)}),Ea(e.mode)),hi=e=>cx[e],vx=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");v4[e]=r}else typeof e=="function"&&g1.indexOf(e)<0&&g1.push(e)},gV=e=>{if(typeof e=="string")delete v4[e];else if(typeof e=="function"){let r=g1.indexOf(e);r>0&&g1.splice(r,1)}},Uy=/[^\x00-\x7F]|[a-zA-Z_]/,yV=/[^\x00-\x7F]|[-\w]/,Zr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Dt=0;function Dd(e){let r=e[Dt],t=e[Dt+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Dt+2]):r==="."?/\d/.test(t):/\d/.test(r)}function Gy(e){if(Dt>=e.length)return!1;let r=e[Dt];if(Uy.test(r))return!0;if(r==="-"){if(e.length-Dt<2)return!1;let t=e[Dt+1];return!!(t==="-"||Uy.test(t))}return!1}var bV={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function ov(e){let r="";if((e[Dt]==="-"||e[Dt]==="+")&&(r+=e[Dt++]),r+=Sd(e),e[Dt]==="."&&/\d/.test(e[Dt+1])&&(r+=e[Dt++]+Sd(e)),(e[Dt]==="e"||e[Dt]==="E")&&((e[Dt+1]==="-"||e[Dt+1]==="+")&&/\d/.test(e[Dt+2])?r+=e[Dt++]+e[Dt++]+Sd(e):/\d/.test(e[Dt+1])&&(r+=e[Dt++]+Sd(e))),Gy(e)){let t=Ld(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:Zr.Hue,value:r*bV[t]}:void 0}return e[Dt]==="%"?(Dt++,{type:Zr.Percentage,value:+r}):{type:Zr.Number,value:+r}}function Sd(e){let r="";for(;/\d/.test(e[Dt]);)r+=e[Dt++];return r}function Ld(e){let r="";for(;Dt<e.length&&yV.test(e[Dt]);)r+=e[Dt++];return r}function _V(e){let r=Ld(e);return e[Dt]==="("?(Dt++,{type:Zr.Function,value:r}):r==="none"?{type:Zr.None,value:void 0}:{type:Zr.Ident,value:r}}function xV(e=""){let r=e.trim(),t=[],a;for(Dt=0;Dt<r.length;){if(a=r[Dt++],a===`
`||a===" "||a===" "){for(;Dt<r.length&&(r[Dt]===`
`||r[Dt]===" "||r[Dt]===" ");)Dt++;continue}if(a===",")return;if(a===")"){t.push({type:Zr.ParenClose});continue}if(a==="+"){if(Dt--,Dd(r)){t.push(ov(r));continue}return}if(a==="-"){if(Dt--,Dd(r)){t.push(ov(r));continue}if(Gy(r)){t.push({type:Zr.Ident,value:Ld(r)});continue}return}if(a==="."){if(Dt--,Dd(r)){t.push(ov(r));continue}return}if(a==="/"){for(;Dt<r.length&&(r[Dt]===`
`||r[Dt]===" "||r[Dt]===" ");)Dt++;let n;if(Dd(r)&&(n=ov(r),n.type!==Zr.Hue)){t.push({type:Zr.Alpha,value:n});continue}if(Gy(r)&&Ld(r)==="none"){t.push({type:Zr.Alpha,value:{type:Zr.None,value:void 0}});continue}return}if(/\d/.test(a)){Dt--,t.push(ov(r));continue}if(Uy.test(a)){Dt--,t.push(_V(r));continue}return}return t}function wV(e){e._i=0;let r=e[e._i++];if(!r||r.type!==Zr.Function||r.value!=="color"||(r=e[e._i++],r.type!==Zr.Ident))return;let t=v4[r.value];if(!t)return;let a={mode:t},n=hx(e,!1);if(!n)return;let i=hi(t).channels;for(let o=0,l,u;o<i.length;o++)l=n[o],u=i[o],l.type!==Zr.None&&(a[u]=l.type===Zr.Number?l.value:l.value/100,u==="alpha"&&(a[u]=Math.max(0,Math.min(1,a[u]))));return a}function hx(e,r){let t=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===Zr.None||a.type===Zr.Number||a.type===Zr.Alpha||a.type===Zr.Percentage||r&&a.type===Zr.Hue){t.push(a);continue}if(a.type===Zr.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==Zr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:Zr.None,value:void 0}),t.every(n=>n.type!==Zr.Alpha)?t:void 0}}function AV(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==Zr.Function)return;let a=hx(e,r);if(a)return a.unshift(t.value),a}var MV=e=>{if(typeof e!="string")return;let r=xV(e),t=r?AV(r,!0):void 0,a,n=0,i=g1.length;for(;n<i;)if((a=g1[n++](e,t))!==void 0)return a;return r?wV(r):void 0},dx=MV;function TV(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,a,n,i,o]=r;if(!(a.type===Zr.Hue||n.type===Zr.Hue||i.type===Zr.Hue))return a.type!==Zr.None&&(t.r=a.type===Zr.Number?a.value/255:a.value/100),n.type!==Zr.None&&(t.g=n.type===Zr.Number?n.value/255:n.value/100),i.type!==Zr.None&&(t.b=i.type===Zr.Number?i.value/255:i.value/100),o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var px=TV,kV=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,mx=kV,Ff=(e,r,t)=>e+t*(r-e),CV=(e,r,t)=>(t-e)/(r-e),Yy=(e,r,t,a,n,i)=>Ff(Ff(e,r,n),Ff(t,a,n),i),DV=(e,r,t,a,n,i,o,l,u,s,f)=>Ff(Yy(e,r,t,a,u,s),Yy(n,i,o,l,u,s),f),SV=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},gx=e=>r=>{let t=SV(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)}},at=gx(Ff),Fn=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},FV={mode:"rgb",channels:["r","g","b","alpha"],parse:[px,sx,fx,ux,mx,"srgb"],serialize:"srgb",interpolate:{r:at,g:at,b:at,alpha:{use:at,fixup:Fn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},qf=FV,by=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),EV=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},Vy=EV,_y=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),LV=({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:_y(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:_y(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:_y(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},Xy=LV,xy=(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)},qV=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:xy(e),g:xy(r),b:xy(t)};return a!==void 0&&(n.alpha=a),n},Pf=qV,PV=e=>{let{r,g:t,b:a,alpha:n}=Pf(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},u0=PV,wy=(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},RV=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:wy(e),g:wy(r),b:wy(t)};return a!==void 0&&(i.alpha=a),i},Rf=RV,zV=({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=Rf({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},s0=zV,NV=Na(ha({},qf),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Xy(u0(e)),xyz65:Xy},toMode:{rgb:e=>s0(Vy(e)),xyz65:Vy}}),yx=NV,BV=e=>(e=e%360)<0?e+360:e,ri=BV,Od=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=ri(t);return a===0||e[a-1]===void 0?i:r(i-ri(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),[]),xu=e=>Od(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),IV=e=>Od(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),HV=e=>Od(e,r=>r>=0?r:r+360),OV=e=>Od(e,r=>r<=0?r:r-360),Wn=[-.14861,1.78277,-.29227,-.90649,1.97294,0],UV=Math.PI/180,GV=180/Math.PI,J_=Wn[3]*Wn[4],$_=Wn[1]*Wn[4],K_=Wn[1]*Wn[2]-Wn[0]*Wn[3],YV=({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=(K_*t+e*J_-r*$_)/(K_+J_-$_),i=t-n,o=(Wn[4]*(r-n)-Wn[2]*i)/Wn[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(Wn[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*GV-120),a!==void 0&&(l.alpha=a),l},bx=YV,VV=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*UV,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*(Wn[0]*o+Wn[1]*l),n.g=t+i*(Wn[2]*o+Wn[3]*l),n.b=t+i*(Wn[4]*o+Wn[5]*l),a!==void 0&&(n.alpha=a),n},_x=VV,cv=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=ri(e.h),a=ri(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},xx=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=ri(e.h),a=ri(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},vv=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=ri(e.h),a=ri(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},y1=(e="rgb",r=[1,1,1,0])=>{let t=hi(e),a=t.channels,n=t.difference,i=Ea(e);return(o,l)=>{let u=i(o),s=i(l);return Math.sqrt(a.reduce((f,c,h)=>{let d=n[c]?n[c](u,s):u[c]-s[c];return f+(r[h]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},XV=()=>y1("lab65"),WV=(e=1,r=.045,t=.015)=>{let a=Ea("lab65");return(n,i)=>{let o=a(n),l=a(i),u=o.l,s=o.a,f=o.b,c=Math.sqrt(s*s+f*f),h=l.l,d=l.a,m=l.b,p=Math.sqrt(d*d+m*m),y=Math.pow(u-h,2),b=Math.pow(c-p,2),C=Math.pow(s-d,2)+Math.pow(f-m,2)-b;return Math.sqrt(y/Math.pow(e,2)+b/Math.pow(1+r*c,2)+C/Math.pow(1+t*c,2))}},jV=(e=1,r=1,t=1)=>{let a=Ea("lab65");return(n,i)=>{let o=a(n),l=a(i),u=o.l,s=o.a,f=o.b,c=Math.sqrt(s*s+f*f),h=l.l,d=l.a,m=l.b,p=Math.sqrt(d*d+m*m),y=(c+p)/2,b=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),C=s*(1+b),x=d*(1+b),_=Math.sqrt(C*C+f*f),A=Math.sqrt(x*x+m*m),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(m)===0?0:Math.atan2(m,x);M+=(M<0)*2*Math.PI;let E=h-u,P=A-_,z=_*A===0?0:M-T;z-=(z>Math.PI)*2*Math.PI,z+=(z<-Math.PI)*2*Math.PI;let B=2*Math.sqrt(_*A)*Math.sin(z/2),X=(u+h)/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 I=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),le=1+.015*I/Math.sqrt(20+I),re=1+.045*H,te=1+.015*H*Q,oe=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*V-275)/25,2)),ce=2*Math.sqrt(Math.pow(H,7)/(Math.pow(H,7)+Math.pow(25,7))),Me=-1*Math.sin(2*oe)*ce;return Math.sqrt(Math.pow(E/(e*le),2)+Math.pow(P/(r*re),2)+Math.pow(B/(t*te),2)+Me*P/(r*re)*B/(t*te))}},ZV=(e=1,r=1)=>{let t=Ea("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,u=i.b,s=Math.sqrt(l*l+u*u),f=Math.atan2(u,l);f=f+2*Math.PI*(f<0);let c=t(n),h=c.l,d=c.a,m=c.b,p=Math.sqrt(d*d+m*m),y=Math.pow(o-h,2),b=Math.pow(s-p,2),C=Math.pow(l-d,2)+Math.pow(u-m,2)-b,x=Math.sqrt(Math.pow(s,4)/(Math.pow(s,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*s/(1+.0131*s)+.638,M=T*(x*_+1-x);return Math.sqrt(y/Math.pow(e*A,2)+b/Math.pow(r*T,2)+C/Math.pow(M,2))}},JV=()=>{let e=Ea("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)}},$V=()=>y1("yiq",[.5053,.299,.1957]),KV=()=>y1("itp",[518400,129600,518400]),wu=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},wx=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},Ay=e=>typeof e=="function";function QV(e,r="rgb",t){let a=hi(r),n=e.map(Ea(r));return a.channels.reduce((i,o)=>{let l=n.map(u=>u[o]).filter(u=>u!==void 0);if(l.length){let u;Ay(t)?u=t:t&&Ay(t[o])?u=t[o]:a.average&&Ay(a.average[o])?u=a.average[o]:u=wx,i[o]=u(l,o)}return i},{mode:r})}var eX={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:bx},toMode:{rgb:_x},interpolate:{h:{use:at,fixup:xu},s:at,l:at,alpha:{use:at,fixup:Fn}},difference:{h:cv},average:{h:wu}},Ax=eX,rX=({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=ri(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},xs=rX,tX=({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},ws=tX,Mx=Math.pow(29,3)/Math.pow(3,3),Tx=Math.pow(6,3)/Math.pow(29,3),Sn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},p1={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},nme=Math.pow(29,3)/Math.pow(3,3),ime=Math.pow(6,3)/Math.pow(29,3),My=e=>Math.pow(e,3)>Tx?Math.pow(e,3):(116*e-16)/Mx,aX=({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:My(i)*p1.X,y:My(n)*p1.Y,z:My(o)*p1.Z};return a!==void 0&&(l.alpha=a),l},h4=aX,nX=e=>s0(h4(e)),hv=nX,Ty=e=>e>Tx?Math.cbrt(e):(Mx*e+16)/116,iX=({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=Ty(e/p1.X),i=Ty(r/p1.Y),o=Ty(t/p1.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},d4=iX,oX=e=>{let r=d4(u0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},dv=oX,qd=1,kx=1,fv=26/180*Math.PI,Pd=Math.cos(fv),Rd=Math.sin(fv),Cx=100/Math.log(139/100),lX=({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*qd/Cx)-1)/.0039},i=(Math.exp(.0435*r*kx*qd)-1)/.075,o=i*Math.cos(t/180*Math.PI-fv),l=i*Math.sin(t/180*Math.PI-fv);return n.a=o*Pd-l/.83*Rd,n.b=o*Rd+l/.83*Pd,a!==void 0&&(n.alpha=a),n},zd=lX,uX=({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*Pd+t*Rd,i=.83*(t*Pd-r*Rd),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:Cx/qd*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*kx*qd)};return l.c&&(l.h=ri((Math.atan2(i,n)+fv)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Nd=uX,Q_=e=>zd(xs(e,"dlch")),ex=e=>ws(Nd(e),"dlab"),sX={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Q_,rgb:e=>hv(Q_(e))},fromMode:{lab65:ex,rgb:e=>ex(dv(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:at,a:at,b:at,alpha:{use:at,fixup:Fn}}},Dx=sX,fX={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:zd,dlab:e=>ws(e,"dlab"),rgb:e=>hv(zd(e))},fromMode:{lab65:Nd,dlab:e=>xs(e,"dlch"),rgb:e=>Nd(dv(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:at,c:at,h:{use:at,fixup:xu},alpha:{use:at,fixup:Fn}},difference:{h:vv},average:{h:wu}},Sx=fX;function Fx({h:e,s:r,i:t,alpha:a}){e=ri(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 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=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 cX={mode:"hsi",toMode:{rgb:Fx},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Ex},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:at,fixup:xu},s:at,i:at,alpha:{use:at,fixup:Fn}},difference:{h:cv},average:{h:wu}},Lx=cX;function qx({h:e,s:r,l:t,alpha:a}){e=ri(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 Px({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 vX=(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}},hX=vX,dX=new RegExp(`^hsla?\\(\\s*${fV}${m1}${uv}${m1}${uv}\\s*(?:,\\s*${c4}\\s*)?\\)$`),pX=e=>{let r=e.match(dX);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=hX(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},Rx=pX;function mX(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==Zr.None){if(a.type===Zr.Percentage)return;t.h=a.value}if(n.type!==Zr.None){if(n.type===Zr.Hue)return;t.s=n.value/100}if(i.type!==Zr.None){if(i.type===Zr.Hue)return;t.l=i.value/100}return o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var zx=mX,gX={mode:"hsl",toMode:{rgb:qx},fromMode:{rgb:Px},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[zx,Rx],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:at,fixup:xu},s:at,l:at,alpha:{use:at,fixup:Fn}},difference:{h:cv},average:{h:wu}},p4=gX;function m4({h:e,s:r,v:t,alpha:a}){e=ri(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 g4({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 yX={mode:"hsv",toMode:{rgb:m4},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:g4},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:at,fixup:xu},s:at,v:at,alpha:{use:at,fixup:Fn}},difference:{h:cv},average:{h:wu}},y4=yX;function Nx({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 m4({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function Bx(e){let r=g4(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 bX(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==Zr.None){if(a.type===Zr.Percentage)return;t.h=a.value}if(n.type!==Zr.None){if(n.type===Zr.Hue)return;t.w=n.value/100}if(i.type!==Zr.None){if(i.type===Zr.Hue)return;t.b=i.value/100}return o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var Ix=bX,_X={mode:"hwb",toMode:{rgb:Nx},fromMode:{rgb:Bx},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Ix],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:at,fixup:xu},w:at,b:at,alpha:{use:at,fixup:Fn}},difference:{h:xx},average:{h:wu}},Hx=_X,Ox=203,Ud=.1593017578125,Ux=78.84375,Gd=.8359375,Yd=18.8515625,Vd=18.6875;function ky(e){if(e<0)return 0;let r=Math.pow(e,1/Ux);return 1e4*Math.pow(Math.max(0,r-Gd)/(Yd-Vd*r),1/Ud)}function Cy(e){if(e<0)return 0;let r=Math.pow(e/1e4,Ud);return Math.pow((Gd+Yd*r)/(1+Vd*r),Ux)}var Dy=e=>Math.max(e/Ox,0),xX=({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=ky(e+.008609037037932761*r+.11102962500302593*t),i=ky(e-.00860903703793275*r-.11102962500302599*t),o=ky(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:Dy(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:Dy(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:Dy(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},Wy=xX,Sy=(e=0)=>Math.max(e*Ox,0),wX=({x:e,y:r,z:t,alpha:a})=>{let n=Sy(e),i=Sy(r),o=Sy(t),l=Cy(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),u=Cy(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),s=Cy(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*u,c=1.61376953125*l-3.323486328125*u+1.709716796875*s,h=4.378173828125*l-4.24560546875*u-.132568359375*s,d={mode:"itp",i:f,t:c,p:h};return a!==void 0&&(d.alpha=a),d},jy=wX,AX={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Wy,rgb:e=>s0(Wy(e))},fromMode:{xyz65:jy,rgb:e=>jy(u0(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:at,t:at,p:at,alpha:{use:at,fixup:Fn}}},Gx=AX,MX=134.03437499999998,TX=16295499532821565e-27,Fy=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Ud);return Math.pow((Gd+Yd*r)/(1+Vd*r),MX)},Ey=(e=0)=>Math.max(e*203,0),kX=({x:e,y:r,z:t,alpha:a})=>{e=Ey(e),r=Ey(r),t=Ey(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=Fy(.41478972*n+.579999*i+.014648*t),l=Fy(-.20151*n+1.120649*i+.0531008*t),u=Fy(-.0166008*n+.2648*i+.6684799*t),s=(o+l)/2,f={mode:"jab",j:.44*s/(1-.56*s)-TX,a:3.524*o-4.066708*l+.542708*u,b:.199076*o+1.096799*l-1.295875*u};return a!==void 0&&(f.alpha=a),f},b4=kX,CX=134.03437499999998,rx=16295499532821565e-27,Ly=e=>{if(e<0)return 0;let r=Math.pow(e,1/CX);return 1e4*Math.pow((Gd-r)/(Vd*r-Yd),1/Ud)},qy=e=>e/203,DX=({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+rx)/(.44+.56*(e+rx)),i=Ly(n+.13860504*r+.058047316*t),o=Ly(n-.13860504*r-.058047316*t),l=Ly(n-.096019242*r-.8118919*t),u={mode:"xyz65",x:qy(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:qy(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:qy(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(u.alpha=a),u},_4=DX,SX=e=>{let r=b4(u0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},x4=SX,FX=e=>s0(_4(e)),w4=FX,EX={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:x4,xyz65:b4},toMode:{rgb:w4,xyz65:_4},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:at,a:at,b:at,alpha:{use:at,fixup:Fn}}},Yx=EX,LX=({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=ri(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},Zy=LX,qX=({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},Jy=qX,PX={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Jy,rgb:e=>w4(Jy(e))},fromMode:{rgb:e=>Zy(x4(e)),jab:Zy},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:at,fixup:xu},c:at,j:at,alpha:{use:at,fixup:Fn}},difference:{h:vv},average:{h:wu}},Vx=PX,Xd=Math.pow(29,3)/Math.pow(3,3),A4=Math.pow(6,3)/Math.pow(29,3),Py=e=>Math.pow(e,3)>A4?Math.pow(e,3):(116*e-16)/Xd,RX=({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:Py(i)*Sn.X,y:Py(n)*Sn.Y,z:Py(o)*Sn.Z};return a!==void 0&&(l.alpha=a),l},Wd=RX,zX=({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=Rf({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},b1=zX,NX=e=>b1(Wd(e)),M4=NX,BX=e=>{let{r,g:t,b:a,alpha:n}=Pf(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},_1=BX,Ry=e=>e>A4?Math.cbrt(e):(Xd*e+16)/116,IX=({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=Ry(e/Sn.X),i=Ry(r/Sn.Y),o=Ry(t/Sn.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},jd=IX,HX=e=>{let r=jd(_1(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},T4=HX;function OX(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===Zr.Hue||n.type===Zr.Hue||i.type===Zr.Hue))return a.type!==Zr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==Zr.None&&(t.a=n.type===Zr.Number?n.value:n.value*125/100),i.type!==Zr.None&&(t.b=i.type===Zr.Number?i.value:i.value*125/100),o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var Xx=OX,UX={mode:"lab",toMode:{xyz50:Wd,rgb:M4},fromMode:{xyz50:jd,rgb:T4},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Xx],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:at,a:at,b:at,alpha:{use:at,fixup:Fn}}},Zd=UX,GX=Na(ha({},Zd),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:h4,rgb:hv},fromMode:{xyz65:d4,rgb:dv},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Wx=GX;function YX(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==Zr.None){if(a.type===Zr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==Zr.None&&(t.c=Math.max(0,n.type===Zr.Number?n.value:n.value*150/100)),i.type!==Zr.None){if(i.type===Zr.Percentage)return;t.h=i.value}return o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var jx=YX,VX={mode:"lch",toMode:{lab:ws,rgb:e=>M4(ws(e))},fromMode:{rgb:e=>xs(T4(e)),lab:xs},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[jx],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:at,fixup:xu},c:at,l:at,alpha:{use:at,fixup:Fn}},difference:{h:vv},average:{h:wu}},Jd=VX,XX=Na(ha({},Jd),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ws(e,"lab65"),rgb:e=>hv(ws(e,"lab65"))},fromMode:{rgb:e=>xs(dv(e),"lch65"),lab65:e=>xs(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Zx=XX,WX=({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=ri(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},k4=WX,jX=({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},C4=jX,Jx=(e,r,t)=>4*e/(e+15*r+3*t),$x=(e,r,t)=>9*r/(e+15*r+3*t),ZX=Jx(Sn.X,Sn.Y,Sn.Z),JX=$x(Sn.X,Sn.Y,Sn.Z),$X=e=>e<=A4?Xd*e:116*Math.cbrt(e)-16,KX=({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=$X(r/Sn.Y),i=Jx(e,r,t),o=$x(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-ZX),o=13*n*(o-JX));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},Bd=KX,QX=(e,r,t)=>4*e/(e+15*r+3*t),eW=(e,r,t)=>9*r/(e+15*r+3*t),rW=QX(Sn.X,Sn.Y,Sn.Z),tW=eW(Sn.X,Sn.Y,Sn.Z),aW=({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)+rW,i=t/(13*e)+tW,o=Sn.Y*(e<=8?e/Xd:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),u=o*(12-3*n-20*i)/(4*i),s={mode:"xyz50",x:l,y:o,z:u};return a!==void 0&&(s.alpha=a),s},Id=aW,nW=e=>k4(Bd(_1(e))),iW=e=>b1(Id(C4(e))),oW={mode:"lchuv",toMode:{luv:C4,rgb:iW},fromMode:{rgb:nW,luv:k4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:at,fixup:xu},c:at,l:at,alpha:{use:at,fixup:Fn}},difference:{h:vv},average:{h:wu}},Kx=oW,lW=Na(ha({},qf),{mode:"lrgb",toMode:{rgb:Rf},fromMode:{rgb:Pf},parse:["srgb-linear"],serialize:"srgb-linear"}),Qx=lW,uW={mode:"luv",toMode:{xyz50:Id,rgb:e=>b1(Id(e))},fromMode:{xyz50:Bd,rgb:e=>Bd(_1(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:at,u:at,v:at,alpha:{use:at,fixup:Fn}}},ew=uW,sW=({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},D4=sW,fW=e=>{let r=D4(Pf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},pv=fW,cW=({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},x1=cW,vW=e=>Rf(x1(e)),mv=vW;function $y(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Hd(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function hW(e,r){let t,a,n,i,o,l,u,s;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,u=-3.3077115913,s=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,u=2.6097574011,s=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,u=-.7034186147,s=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,h=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let m=1+f*c,p=1+f*h,y=1+f*d,b=m*m*m,C=p*p*p,x=y*y*y,_=3*c*m*m,A=3*h*p*p,T=3*d*y*y,M=6*c*c*m,E=6*h*h*p,P=6*d*d*y,z=l*b+u*C+s*x,B=l*_+u*A+s*T,X=l*M+u*E+s*P;f=f-z*B/(B*B-.5*z*X)}return f}function S4(e,r){let t=hW(e,r),a=x1({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 dW(e,r,t,a,n,i=null){i||(i=S4(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,u=a,s=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,h=l+u*s,d=l+u*f,m=l+u*c;{let p=n*(1-o)+o*t,y=o*a,b=p+y*s,C=p+y*f,x=p+y*c,_=b*b*b,A=C*C*C,T=x*x*x,M=3*h*b*b,E=3*d*C*C,P=3*m*x*x,z=6*h*h*b,B=6*d*d*C,X=6*m*m*x,H=4.0767416621*_-3.3077115913*A+.2309699292*T-1,V=4.0767416621*M-3.3077115913*E+.2309699292*P,I=4.0767416621*z-3.3077115913*B+.2309699292*X,Q=V/(V*V-.5*H*I),le=-H*Q,re=-1.2684380046*_+2.6097574011*A-.3413193965*T-1,te=-1.2684380046*M+2.6097574011*E-.3413193965*P,oe=-1.2684380046*z+2.6097574011*B-.3413193965*X,ce=te/(te*te-.5*re*oe),Me=-re*ce,Se=-.0041960863*_-.7034186147*A+1.707614701*T-1,Ie=-.0041960863*M-.7034186147*E+1.707614701*P,Ue=-.0041960863*z-.7034186147*B+1.707614701*X,ke=Ie/(Ie*Ie-.5*Se*Ue),We=-Se*ke;le=Q>=0?le:1e6,Me=ce>=0?Me:1e6,We=ke>=0?We:1e6,o+=Math.min(le,Math.min(Me,We))}}}return o}function F4(e,r,t=null){t||(t=S4(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function rw(e,r,t){let a=S4(r,t),n=dW(r,t,e,1,e,a),i=F4(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)))),u=n/Math.min(e*i[0],(1-e)*i[1]),s=e*o,f=(1-e)*l,c=.9*u*Math.sqrt(Math.sqrt(1/(1/(s*s*s*s)+1/(f*f*f*f))));return s=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(s*s)+1/(f*f))),c,n]}function Ky(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:$y(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,u]=rw(r,t/i,a/i),s;if(i<l){let f=0,c=.8*o,h=1-c/l;s=(i-f)/(c+h*(i-f))*.8}else{let f=l,c=.2*l*l*1.25*1.25/o,h=1-c/(u-l);s=.8+.2*((i-f)/(c+h*(i-f)))}return s&&(n.s=s,n.h=ri(Math.atan2(a,t)*180/Math.PI)),n}function Qy(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:Hd(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,u,s]=rw(n.l,i,o),f,c,h,d;t<.8?(f=1.25*t,c=0,h=.8*l,d=1-h/u):(f=5*(t-.8),c=u,h=.2*u*u*1.25*1.25/l,d=1-h/(s-u));let m=c+f*h/(1-d*f);return n.a=m*i,n.b=m*o,n}var pW=Na(ha({},p4),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Ky,rgb:e=>Ky(pv(e))},toMode:{oklab:Qy,rgb:e=>mv(Qy(e))}}),tw=pW;function e4(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,u]=F4(i,o),s=.5,f=1-s/l,c=u/(n+r*u),h=c*r,d=c*n,m=Hd(h),p=d*m/h,y=x1({l:m,a:i*p,b:o*p}),b=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/b,n=n/b*$y(r)/r,r=$y(r);let C={mode:"okhsv",s:n?(s+u)*d/(u*s+u*f*d):0,v:r?r/h:0};return C.s&&(C.h=ri(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(C.alpha=e.alpha),C}function r4(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,u]=F4(i,o),s=.5,f=1-s/l,c=1-a*s/(s+u-u*f*a),h=a*u*s/(s+u-u*f*a),d=Hd(c),m=h*d/c,p=x1({l:d,a:i*m,b:o*m}),y=Math.cbrt(1/Math.max(p.r,p.g,p.b,0)),b=Hd(n*c),C=h*b/c;return r.l=b*y,r.a=C*i*y,r.b=C*o*y,r}var mW=Na(ha({},y4),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:e4,rgb:e=>e4(pv(e))},toMode:{oklab:r4,rgb:e=>mv(r4(e))}}),aw=mW;function gW(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===Zr.Hue||n.type===Zr.Hue||i.type===Zr.Hue))return a.type!==Zr.None&&(t.l=Math.min(Math.max(0,a.type===Zr.Number?a.value:a.value/100),1)),n.type!==Zr.None&&(t.a=n.type===Zr.Number?n.value:n.value*.4/100),i.type!==Zr.None&&(t.b=i.type===Zr.Number?i.value:i.value*.4/100),o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var nw=gW,yW=Na(ha({},Zd),{mode:"oklab",toMode:{lrgb:x1,rgb:mv},fromMode:{lrgb:D4,rgb:pv},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[nw],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}`:""})`}),iw=yW;function bW(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==Zr.None){if(a.type===Zr.Hue)return;t.l=Math.min(Math.max(0,a.type===Zr.Number?a.value:a.value/100),1)}if(n.type!==Zr.None&&(t.c=Math.max(0,n.type===Zr.Number?n.value:n.value*.4/100)),i.type!==Zr.None){if(i.type===Zr.Percentage)return;t.h=i.value}return o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var ow=bW,_W=Na(ha({},Jd),{mode:"oklch",toMode:{oklab:e=>ws(e,"oklab"),rgb:e=>mv(ws(e,"oklab"))},fromMode:{rgb:e=>xs(pv(e),"oklch"),oklab:e=>xs(e,"oklch")},parse:[ow],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]}}),lw=_W,xW=e=>{let{r,g:t,b:a,alpha:n}=Pf(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},t4=xW,wW=({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=Rf({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},a4=wW,AW=Na(ha({},qf),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>a4(u0(e)),xyz65:a4},toMode:{rgb:e=>s0(t4(e)),xyz65:t4}}),uw=AW,zy=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},MW=({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:zy(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:zy(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:zy(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},n4=MW,Ny=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},TW=e=>{let r=Ny(e.r),t=Ny(e.g),a=Ny(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},i4=TW,kW=Na(ha({},qf),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:n4,rgb:e=>n4(_1(e))},toMode:{xyz50:i4,rgb:e=>b1(i4(e))}}),sw=kW,tx=1.09929682680944,CW=.018053968510807,By=e=>{let r=Math.abs(e);return r>CW?(Math.sign(e)||1)*(tx*Math.pow(r,.45)-(tx-1)):4.5*e},DW=({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:By(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:By(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:By(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},o4=DW,ax=1.09929682680944,SW=.018053968510807,Iy=(e=0)=>{let r=Math.abs(e);return r<SW*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+ax-1)/ax,1/.45)},FW=e=>{let r=Iy(e.r),t=Iy(e.g),a=Iy(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},l4=FW,EW=Na(ha({},qf),{mode:"rec2020",fromMode:{xyz65:o4,rgb:e=>o4(u0(e))},toMode:{xyz65:l4,rgb:e=>s0(l4(e))},parse:["rec2020"],serialize:"rec2020"}),fw=EW,Ef=.0037930732552754493,cw=Math.cbrt(Ef),Hy=e=>Math.cbrt(e)-cw,LW=e=>{let{r,g:t,b:a,alpha:n}=Pf(e),i=Hy(.3*r+.622*t+.078*a+Ef),o=Hy(.23*r+.692*t+.078*a+Ef),l=Hy(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Ef),u={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(u.alpha=n),u},vw=LW,Oy=e=>Math.pow(e+cw,3),qW=({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=Oy(e+r)-Ef,i=Oy(r-e)-Ef,o=Oy(t+r)-Ef,l=Rf({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=qW,PW={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:hw},fromMode:{rgb:vw},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:at,y:at,b:at,alpha:{use:at,fixup:Fn}}},dw=PW,RW={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:b1,lab:jd},fromMode:{rgb:_1,lab:Wd},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:at,y:at,z:at,alpha:{use:at,fixup:Fn}}},pw=RW,zW=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},mw=zW,NW=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},gw=NW,BW={mode:"xyz65",toMode:{rgb:s0,xyz50:mw},fromMode:{rgb:u0,xyz50:gw},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:at,y:at,z:at,alpha:{use:at,fixup:Fn}}},yw=BW,IW=({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},bw=IW,HW=({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},_w=HW,OW={mode:"yiq",toMode:{rgb:_w},fromMode:{rgb:bw},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:at,i:at,q:at,alpha:{use:at,fixup:Fn}}},xw=OW,UW=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,GW=(e=4)=>r=>typeof r=="number"?UW(r,e):r,ww=GW,lv=ww(2),sv=e=>Math.max(0,Math.min(1,e||0)),Lf=e=>Math.round(sv(e)*255),E4=Ea("rgb"),YW=Ea("hsl"),L4=e=>{if(e===void 0)return;let r=Lf(e.r),t=Lf(e.g),a=Lf(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},Aw=e=>{if(e===void 0)return;let r=Lf(e.alpha!==void 0?e.alpha:1);return L4(e)+(256|r).toString(16).slice(1)},Mw=e=>{if(e===void 0)return;let r=Lf(e.r),t=Lf(e.g),a=Lf(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${lv(sv(e.alpha))})`},Tw=e=>{if(e===void 0)return;let r=lv(e.h||0),t=lv(sv(e.s)*100)+"%",a=lv(sv(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${lv(sv(e.alpha))})`},VW=e=>{let r=El(e);if(!r)return;let t=hi(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)},XW=e=>L4(E4(e)),WW=e=>Aw(E4(e)),jW=e=>Mw(E4(e)),ZW=e=>Tw(YW(e)),JW={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},$W=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:JW[r],n=Ea(t),i=hi(t).channels;return e.map(l=>{let u=n(l);return u.alpha===void 0&&(u.alpha=1),u}).reduce((l,u)=>{if(l===void 0)return u;let s=u.alpha+l.alpha*(1-u.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(s===0?f[c]=0:(f[c]=u.alpha*(1-l.alpha)*u[c]+u.alpha*l.alpha*a(l[c],u[c])+(1-u.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/s)))),f),{mode:t,alpha:s})})},KW=$W,QW=([e,r])=>e+Math.random()*(r-e),ej=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),rj=(e="rgb",r={})=>{let t=hi(e),a=ej(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=QW(a[i]||t.ranges[i])),n),{mode:e})},tj=rj,gv=(e,r="rgb",t=!1)=>{let a=r?hi(r).channels:null,n=r?Ea(r):El;return i=>{let o=n(i);if(!o)return;let l=(a||hi(o.mode).channels).reduce((s,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(s[f]=c),s},{mode:o.mode});if(!t)return l;let u=El(i);return u&&u.mode!==l.mode?Ea(u.mode)(l):l}},kw=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,Cw=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,q4=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,aj=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,nj=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},ij=nj,oj=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),Dw=oj,Fd=e=>typeof e=="function",Sf=e=>e&&typeof e=="object",nx=e=>typeof e=="number",Sw=(e,r="rgb",t,a)=>{let n=hi(r),i=Ea(r),o=[],l=[],u={};e.forEach(h=>{Array.isArray(h)?(o.push(i(h[0])),l.push(h[1])):nx(h)||Fd(h)?u[l.length]=h:(o.push(i(h)),l.push(void 0))}),ij(l);let s=n.channels.reduce((h,d)=>{let m;return Sf(t)&&Sf(t[d])&&t[d].fixup?m=t[d].fixup:Sf(n.interpolate[d])&&n.interpolate[d].fixup?m=n.interpolate[d].fixup:m=p=>p,h[d]=m(o.map(p=>p[d])),h},{});if(a){let h=o.map((d,m)=>n.channels.reduce((p,y)=>(p[y]=s[y][m],p),{mode:r}));s=n.channels.reduce((d,m)=>(d[m]=h.map(p=>{let y=a(p[m],m,p,r);return isNaN(y)?void 0:y}),d),{})}let f=n.channels.reduce((h,d)=>{let m;return Fd(t)?m=t:Sf(t)&&Fd(t[d])?m=t[d]:Sf(t)&&Sf(t[d])&&t[d].use?m=t[d].use:Fd(n.interpolate[d])?m=n.interpolate[d]:Sf(n.interpolate[d])&&(m=n.interpolate[d].use),h[d]=m(s[d]),h},{}),c=o.length-1;return h=>{if(h=Math.min(Math.max(0,h),1),h<=l[0])return o[0];if(h>l[c])return o[c];let d=0;for(;l[d]<h;)d++;let m=l[d-1],p=l[d]-m,y=(h-m)/p,b=u[d]||u[0];b!==void 0&&(nx(b)&&(b=Dw((b-m)/p)),y=b(y));let C=(d-1+y)/c;return n.channels.reduce((x,_)=>{let A=f[_](C);return A!==void 0&&(x[_]=A),x},{mode:r})}},lj=(e,r="rgb",t)=>Sw(e,r,t),Fw=(e,r)=>(t,a="rgb",n)=>{let i=r?gv(r,a):void 0,o=Sw(t,a,n,e);return i?l=>i(o(l)):o},uj=Fw(kw,Cw),Ed=(e,r)=>(e+r)%r,Ew=(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},Lw=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return Ew(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)},qw=e=>r=>{let t=e.length-1,a=Math.floor(r*t);return Ew(e[Ed(a-1,e.length)],e[Ed(a,e.length)],e[Ed(a+1,e.length)],e[Ed(a+2,e.length)],(r-a/t)*t)},Pw=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},sj=e=>Lw(Pw(e)),fj=e=>qw(Pw(e)),d1=Math.sign,u4=Math.min,co=Math.abs,P4=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?(d1(t[i-1])+d1(t[i]))*u4(co(t[i-1]),co(t[i]),.5*co(a[i])):void 0);return[t,a,n]},R4=(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,u=l*l,s=u*l;return(r[o]+r[o+1]-2*t[o])*n*s+(3*t[o]-2*r[o]-r[o+1])*a*u+r[o]*l+e[o]}},cj=e=>{if(e.length<3)return at(e);let r=e.length-1,[t,,a]=P4(e);return a[0]=t[0],a[r]=t[r-1],R4(e,a,t)},vj=e=>{if(e.length<3)return at(e);let r=e.length-1,[t,a,n]=P4(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:co(a[0])>2*co(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:co(a[r])>2*co(t[r-1])?2*t[r-1]:a[r],R4(e,n,t)},hj=e=>{let r=e.length-1,[t,a,n]=P4(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]=(d1(i)+d1(t[0]))*u4(co(i),co(t[0]),.5*co(a[0])),n[r]=(d1(t[r-1])+d1(o))*u4(co(t[r-1]),co(o),.5*co(a[r])),R4(e,n,t)},dj=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),Rw=dj,pj=(e=2,r=1)=>{let t=Rw(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},mj=pj,zw=Ea("rgb"),Nw=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},Bw=e=>Nw(zw(e)),Iw=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 z4(e){return Iw(zw(e))}function $d(e="rgb"){let{gamut:r}=hi(e);if(!r)return a=>!0;let t=Ea(typeof r=="string"?r:e);return a=>Iw(t(a))}function gj(e){return e=El(e),e===void 0||z4(e)?e:Ea(e.mode)(Bw(e))}function N4(e="rgb"){let{gamut:r}=hi(e);if(!r)return i=>El(i);let t=typeof r=="string"?r:e,a=Ea(t),n=$d(t);return i=>{let o=El(i);if(!o)return;let l=a(o);if(n(l))return o;let u=Nw(l);return o.mode===u.mode?u:Ea(o.mode)(u)}}function yj(e,r="lch",t="rgb"){e=El(e);let a=t==="rgb"?z4:$d(t),n=t==="rgb"?Bw:N4(t);if(e===void 0||a(e))return e;let i=Ea(e.mode);e=Ea(r)(e);let o=Na(ha({},e),{c:0});if(!a(o))return i(n(o));let l=0,u=e.c!==void 0?e.c:0,s=hi(r).ranges.c,f=(s[1]-s[0])/Math.pow(2,13),c=o.c;for(;u-l>f;)o.c=l+(u-l)*.5,a(o)?(c=o.c,l=o.c):u=o.c;return i(a(o)?o:Na(ha({},o),{c}))}function bj(e="rgb",r="oklch",t=y1("oklch"),a=.02){let n=Ea(e),i=hi(e);if(!i.gamut)return f=>n(f);let o=$d(e),l=N4(e),u=Ea(r),{ranges:s}=hi(r);if(!s.l||!s.c)throw new Error("LCH-like space expected");return f=>{if(f=El(f),f===void 0)return;let c=ha({},u(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=s.l[1]){let y=Na(ha({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=s.l[0]){let y=Na(ha({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let h=0,d=c.c,m=(s.c[1]-s.c[0])/4e3,p=l(c);for(;d-h>m;)c.c=(h+d)*.5,p=l(c),o(c)||t&&a>0&&t(c,p)<=a?h=c.c:d=c.c;return n(o(c)?c:p)}}var _j=(e,r=y1(),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,u)=>l.d-u.d).slice(0,i).filter(l=>l.d<o).map(l=>e[l.i]))},xj=_j,B4=e=>Math.max(e,0),I4=e=>Math.max(Math.min(e,1),0),wj=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),Aj=e=>{let r=1-I4(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]},Mj=e=>{let r=B4(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]},Tj=e=>{let r=1-I4(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]},kj=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]},Kd=(e,r,t=!1)=>{let a=Ea(r),n=hi(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},u,s=n.length;for(let c=0;c<e.length;c++)u=n[Math.floor(c/s)],o[u]!==void 0&&(l[u]=(l[u]||0)+e[c]*(o[n[c%s]]||0));if(!t)return l;let f=El(i);return f&&l.mode!==f.mode?Ea(f.mode)(l):l}},Cj=(e=1,r="rgb")=>{let t=B4(e);return gv(q4(t),r,!0)},Dj=(e=1,r="rgb")=>{let t=B4(e);return gv(q4(t,(1-t)/2),r,!0)},Sj=(e=1,r="rgb")=>Kd(Aj(e),r,!0),Fj=(e=1,r="rgb")=>Kd(Mj(e),r,!0),Ej=(e=1,r="rgb")=>Kd(Tj(e),r,!0),Lj=(e=1,r="rgb")=>{let t=I4(e);return gv((a,n)=>n==="alpha"?a:wj(t,1-t,a),r,!0)},qj=(e=0,r="rgb")=>Kd(kj(e),r,!0),Pj=Ea("rgb"),Rj=[[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]],zj=[[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]],Nj=[[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]],H4=(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,u)=>Ff(i[u],o[u],n))}return o=>{let l=El(o);if(l===void 0)return;let{r:u,g:s,b:f}=Pj(l),c={mode:"rgb",r:i[0]*u+i[1]*s+i[2]*f,g:i[3]*u+i[4]*s+i[5]*f,b:i[6]*u+i[7]*s+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),Ea(l.mode)(c)}},Bj=(e=1)=>H4(Rj,e),Ij=(e=1)=>H4(zj,e),Hj=(e=1)=>H4(Nj,e),Oj=e=>e*e*(3-2*e),Uj=e=>.5-Math.sin(Math.asin(1-2*e)/3),Gj=e=>e*e*e*(e*(e*6-15)+10),Yj=Gj,Vj=e=>(1-Math.cos(e*Math.PI))/2,Xj=Vj;function s4(e){let r=Ea("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function Wj(e,r){let t=s4(e),a=s4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var jj=wa(yx),Zj=wa(Ax),Jj=wa(Dx),$j=wa(Sx),Kj=wa(Lx),Qj=wa(p4),eZ=wa(y4),rZ=wa(Hx),tZ=wa(Gx),aZ=wa(Yx),nZ=wa(Vx),iZ=wa(Zd),oZ=wa(Wx),lZ=wa(Jd),uZ=wa(Zx),sZ=wa(Kx),fZ=wa(Qx),cZ=wa(ew),vZ=wa(tw),hZ=wa(aw),dZ=wa(iw),pZ=wa(lw),mZ=wa(uw),gZ=wa(sw),yZ=wa(fw),bZ=wa(qf),_Z=wa(dw),xZ=wa(pw),wZ=wa(yw),AZ=wa(xw)});var f0=ae((ume,Vw)=>{"use strict";var Uw={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},Gw={};function Yw(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),Yw(a,r[t]))}}Yw(Uw,Gw);Vw.exports={configAttributes:Uw,dfltConfig:Gw}});var U4=ae((sme,Xw)=>{"use strict";var O4=St(),MZ=Wt(),yv=[];Xw.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||yv.indexOf(e)!==-1)return;yv.push(e);var a=1e3;MZ(r)?a=r:r==="long"&&(a=3e3);var n=O4.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(yv);function o(u){u.duration(700).style("opacity",0).each("end",function(s){var f=yv.indexOf(s);f!==-1&&yv.splice(f,1),O4.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var s=O4.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(o)});for(var f=s.append("p"),c=u.split(/<br\s*\/?>/g),h=0;h<c.length;h++)h&&f.append("br"),f.append("span").text(c[h]);r==="stick"?s.transition().duration(350).style("opacity",1):s.transition().duration(700).style("opacity",1).transition().delay(a).call(o)})}});var As=ae((fme,Ww)=>{"use strict";var w1=f0().dfltConfig,G4=U4(),Y4=Ww.exports={};Y4.log=function(){var e;if(w1.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(w1.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);G4(t.join("<br>"),"long")}};Y4.warn=function(){var e;if(w1.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(w1.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);G4(t.join("<br>"),"stick")}};Y4.error=function(){var e;if(w1.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(w1.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);G4(t.join("<br>"),"stick")}}});var Ll=ae(zf=>{"use strict";zf.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];zf.defaultLine="#444";zf.lightLine="#eee";zf.background="#fff";zf.borderLine="#BEC8D9";zf.lightFraction=1e3/11});var Lt=ae((vme,tA)=>{"use strict";var{converter:jw,formatHex:TZ,formatRgb:kZ,wcagContrast:CZ,wcagLuminance:DZ}=Ow(),{isArrayOrTypedArray:Zw}=Vi(),{warn:SZ}=As(),{background:_v,defaultLine:W4,defaults:FZ,lightLine:EZ}=Ll(),Jw=jw("rgb"),LZ=jw("hsl"),$w=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return Jw(r)}catch(t){return}},di=e=>e>0?e>1?1:e:0,qZ={mode:"rgb",r:0,g:0,b:0,alpha:1},V4=e=>Math.round(e*255e6)/255e6,Kw=e=>Na(ha({},e),{r:V4(e.r),g:V4(e.g),b:V4(e.b)}),vo=e=>kZ(Kw(e)),PZ=e=>TZ(Kw(e)),RZ=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:Zw(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}`},Wa=(e,r)=>{var a;let t=$w(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&SZ(`Invalid color specifier: ${RZ(e)}. Defaulting to "#000"`),qZ)},bv=e=>vo(Na(ha({},Wa(e)),{alpha:1})),zZ=e=>e?Wa(e).alpha:0,Qw=e=>Zw(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),NZ=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}},BZ=(e,r)=>{let t=Qw(e)?NZ(e):Wa(e,!0),a=[di(t.r),di(t.g),di(t.b),di(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},IZ=(e,r)=>vo(Na(ha({},Wa(e)),{alpha:di(r)})),eA=(e,r)=>{let t=Wa(e),a=t.alpha;if(a===1)return vo(t);let n=Wa(r||_v),i=n.alpha,o=(l,u)=>(i===1?u:1-i+u*i)*(1-a)+l*a;return vo({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},HZ=(e,r,t)=>{let a=Wa(e),n=Wa(r),i=(o,l)=>t*o+(1-t)*l;return vo({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},X4=(e,r)=>{let t=Wa(e),a=LZ(t)||{mode:"hsl",h:0,s:0,l:0};return vo(Jw(Na(ha({},a),{l:di((a.l*100+r)/100),alpha:t.alpha})))},Qd=(e,r)=>CZ(Wa(e),Wa(r)),rA=e=>Qd(e,_v)>Qd(e,W4),OZ=vo(Wa(_v)),UZ=vo(Wa(W4)),GZ=(e,r,t)=>(Wa(e).alpha!==1&&(e=eA(e,_v)),rA(e)?r?X4(e,r):OZ:t?X4(e,-t):UZ),YZ=(e,r)=>{e.style({stroke:bv(r),"stroke-opacity":Wa(r).alpha})},VZ=(e,r)=>{e.style({fill:bv(r),"fill-opacity":Wa(r).alpha})},XZ=(e,r)=>!!(e&&r&&bv(e)===bv(r)),WZ=e=>$w(e)!==void 0,jZ=(e,r)=>{r=r===0?0:r||10;let t=Wa(e),a=r/100;return vo(Na(ha({},t),{r:di(t.r+a),g:di(t.g+a),b:di(t.b+a)}))},ZZ=(e,r,t)=>{let a=Wa(e),n=Wa(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,u=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,s=1-u,f=(c,h)=>s*c+u*h;return vo({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})},JZ=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=Qd(e,n);i>a&&(a=i,t=vo(Wa(n)))}return t},$Z=e=>vo(Wa(e)),KZ=e=>PZ(Wa(e)).toUpperCase(),QZ=e=>{let r=Wa(e);return[di(r.r)*255,di(r.g)*255,di(r.b)*255,di(r.alpha)]},eJ=([e,r,t,a])=>vo({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),rJ=e=>{let r=Wa(e);return DZ({mode:"rgb",r:di(r.r),g:di(r.g),b:di(r.b)})};tA.exports={addOpacity:IZ,adjustLightness:X4,background:_v,brighten:jZ,combine:eA,contrast:GZ,defaultLine:W4,defaults:FZ,equals:XZ,fill:VZ,hexString:KZ,interpolate:HZ,isChannelArray:Qw,isDark:rA,isValid:WZ,lightLine:EZ,luminosity:rJ,mix:ZZ,mostReadable:JZ,normalize:BZ,opacity:zZ,parse:Wa,rgb:bv,rgbaArray:QZ,rgbaArrayToString:eJ,rgbaString:$Z,stroke:YZ,wcagContrast:Qd}});var Nf=ae((dme,iA)=>{"use strict";var tJ=Lt(),ep={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)"]]},aA=ep.RdBu;function aJ(e,r){if(r||(r=aA),!e)return r;function t(){try{e=ep[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),nA(e)?e:r}function nA(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||!tJ.isValid(a[1]))return!1;r=+a[0]}return!0}function nJ(e){return ep[e]!==void 0?!0:nA(e)}iA.exports={scales:ep,defaultScale:aA,get:aJ,isValid:nJ}});var rp=ae((pme,oA)=>{"use strict";oA.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var A1={};u1(A1,{counter:()=>iJ});function iJ(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+j4+"y"+j4+n):new RegExp(i+e+j4+n)}var j4,M1=l1(()=>{"use strict";j4="([2-9]|[1-9][0-9]+)?"});var sA=ae(Wi=>{"use strict";var Z4=Wt(),lA=_n().extendFlat,oJ=Io(),lJ=Nf(),J4=Lt(),uJ=rp().DESELECTDIM,T1=K2(),uA=(M1(),ei(A1)).counter,sJ=(v1(),ei(c1)).modHalf,ql=Vi().isArrayOrTypedArray,c0=Vi().isTypedArraySpec,v0=Vi().decodeTypedArraySpec;Wi.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(ql(e)?e:c0(e)?v0(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){c0(e)&&(e=v0(e)),!Z4(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}c0(e)&&(e=v0(e)),e%1||!Z4(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){c0(e)&&(e=v0(e)),J4.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=>J4.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(lJ.get(e,t))}},angle:{coerceFunction:function(e,r,t){c0(e)&&(e=v0(e)),e==="auto"?r.set("auto"):Z4(e)?r.set(sJ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||uA(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&ql(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:!!uA(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(c0(e)?v0(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),Wi.valObjectMeta[x.valType].coerceFunction(C,T,_,x),A}if(c0(e)&&(e=v0(e)),!ql(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&ql(e[0]),o=a.items,l=[],u=Array.isArray(o),s=u&&i&&ql(o[0]),f=i&&u&&!s,c=u&&!f?o.length:e.length,h,d,m,p,y,b;if(t=Array.isArray(t)?t:[],i)for(h=0;h<c;h++)for(l[h]=[],m=ql(e[h])?e[h]:[],f?y=o.length:u?y=o[h].length:y=m.length,d=0;d<y;d++)f?p=o[d]:u?p=o[h][d]:p=o,b=n(m[d],p,(t[h]||[])[d]),b!==void 0&&(l[h][d]=b);else for(h=0;h<c;h++)b=n(e[h],u?o[h]:o,t[h]),b!==void 0&&(l[h]=b);r.set(l)},validateFunction:function(e,r){if(!ql(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(!ql(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!tp(e[i][o],a?t[i][o]:t))return!1}else if(!tp(e[i],a?t[i]:t))return!1;return!0}}};Wi.coerce=function(e,r,t,a,n){var i=T1(t,a).get(),o=T1(e,a),l=T1(r,a),u=o.get(),s=r._template;if(u===void 0&&s&&(u=T1(s,a).get(),s=0),n===void 0&&(n=i.dflt),i.arrayOk){if(ql(u))return l.set(u),u;if(c0(u))return u=v0(u),l.set(u),u}var f=Wi.valObjectMeta[i.valType].coerceFunction;f(u,l,n,i);var c=l.get();return s&&c===n&&!tp(u,i)&&(u=T1(s,a).get(),f(u,l,n,i),c=l.get()),c};Wi.coerce2=function(e,r,t,a,n){var i=T1(e,a),o=Wi.coerce(e,r,t,a,n),l=i.get();return l!=null?o:!1};Wi.coerceFont=function(e,r,t,a){a||(a={}),t=lA({},t),t=lA(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};Wi.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 u=e(r+".bgcolor",l?t:void 0);e(r+".fgcolor",l?J4.contrast(u):t)}e(r+".fgopacity",l?.5:1)}};Wi.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:oJ,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 Wi.coerce(e,r,n,"hoverinfo",o)};Wi.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!ql(t)&&!e.selected&&!e.unselected&&(a=t,n=uJ*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function tp(e,r){var t=Wi.valObjectMeta[r.valType];if(r.arrayOk&&ql(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}Wi.validate=tp});var ap=ae((gme,fA)=>{"use strict";fA.exports=function(){}});var $4=ae((yme,cA)=>{"use strict";cA.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=ae((bme,vA)=>{vA.exports=fJ;function fJ(){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 pA=ae((_me,dA)=>{dA.exports=cJ;function cJ(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 gA=ae((xme,mA)=>{mA.exports=vJ;function vJ(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 K4=ae((wme,yA)=>{yA.exports=hJ;function hJ(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 _A=ae((Ame,bA)=>{bA.exports=dJ;function dJ(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 wA=ae((Mme,xA)=>{xA.exports=pJ;function pJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15],C=t*l-a*o,x=t*u-n*o,_=t*s-i*o,A=a*u-n*l,T=a*s-i*l,M=n*s-i*u,E=f*p-c*m,P=f*y-h*m,z=f*b-d*m,B=c*y-h*p,X=c*b-d*p,H=h*b-d*y,V=C*H-x*X+_*B+A*z-T*P+M*E;return V?(V=1/V,e[0]=(l*H-u*X+s*B)*V,e[1]=(n*X-a*H-i*B)*V,e[2]=(p*M-y*T+b*A)*V,e[3]=(h*T-c*M-d*A)*V,e[4]=(u*z-o*H-s*P)*V,e[5]=(t*H-n*z+i*P)*V,e[6]=(y*_-m*M-b*x)*V,e[7]=(f*M-h*_+d*x)*V,e[8]=(o*X-l*z+s*E)*V,e[9]=(a*z-t*X-i*E)*V,e[10]=(m*T-p*_+b*C)*V,e[11]=(c*_-f*T-d*C)*V,e[12]=(l*P-o*B-u*E)*V,e[13]=(t*B-a*P+n*E)*V,e[14]=(p*x-m*A-y*C)*V,e[15]=(f*A-c*x+h*C)*V,e):null}});var MA=ae((Tme,AA)=>{AA.exports=mJ;function mJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15];return e[0]=l*(h*b-d*y)-c*(u*b-s*y)+p*(u*d-s*h),e[1]=-(a*(h*b-d*y)-c*(n*b-i*y)+p*(n*d-i*h)),e[2]=a*(u*b-s*y)-l*(n*b-i*y)+p*(n*s-i*u),e[3]=-(a*(u*d-s*h)-l*(n*d-i*h)+c*(n*s-i*u)),e[4]=-(o*(h*b-d*y)-f*(u*b-s*y)+m*(u*d-s*h)),e[5]=t*(h*b-d*y)-f*(n*b-i*y)+m*(n*d-i*h),e[6]=-(t*(u*b-s*y)-o*(n*b-i*y)+m*(n*s-i*u)),e[7]=t*(u*d-s*h)-o*(n*d-i*h)+f*(n*s-i*u),e[8]=o*(c*b-d*p)-f*(l*b-s*p)+m*(l*d-s*c),e[9]=-(t*(c*b-d*p)-f*(a*b-i*p)+m*(a*d-i*c)),e[10]=t*(l*b-s*p)-o*(a*b-i*p)+m*(a*s-i*l),e[11]=-(t*(l*d-s*c)-o*(a*d-i*c)+f*(a*s-i*l)),e[12]=-(o*(c*y-h*p)-f*(l*y-u*p)+m*(l*h-u*c)),e[13]=t*(c*y-h*p)-f*(a*y-n*p)+m*(a*h-n*c),e[14]=-(t*(l*y-u*p)-o*(a*y-n*p)+m*(a*u-n*l)),e[15]=t*(l*h-u*c)-o*(a*h-n*c)+f*(a*u-n*l),e}});var kA=ae((kme,TA)=>{TA.exports=gJ;function gJ(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],u=e[7],s=e[8],f=e[9],c=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15],b=r*o-t*i,C=r*l-a*i,x=r*u-n*i,_=t*l-a*o,A=t*u-n*o,T=a*u-n*l,M=s*m-f*d,E=s*p-c*d,P=s*y-h*d,z=f*p-c*m,B=f*y-h*m,X=c*y-h*p;return b*X-C*B+x*z+_*P-A*E+T*M}});var DA=ae((Cme,CA)=>{CA.exports=yJ;function yJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],u=r[5],s=r[6],f=r[7],c=r[8],h=r[9],d=r[10],m=r[11],p=r[12],y=r[13],b=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*p,e[1]=x*n+_*u+A*h+T*y,e[2]=x*i+_*s+A*d+T*b,e[3]=x*o+_*f+A*m+T*C,x=t[4],_=t[5],A=t[6],T=t[7],e[4]=x*a+_*l+A*c+T*p,e[5]=x*n+_*u+A*h+T*y,e[6]=x*i+_*s+A*d+T*b,e[7]=x*o+_*f+A*m+T*C,x=t[8],_=t[9],A=t[10],T=t[11],e[8]=x*a+_*l+A*c+T*p,e[9]=x*n+_*u+A*h+T*y,e[10]=x*i+_*s+A*d+T*b,e[11]=x*o+_*f+A*m+T*C,x=t[12],_=t[13],A=t[14],T=t[15],e[12]=x*a+_*l+A*c+T*p,e[13]=x*n+_*u+A*h+T*y,e[14]=x*i+_*s+A*d+T*b,e[15]=x*o+_*f+A*m+T*C,e}});var FA=ae((Dme,SA)=>{SA.exports=bJ;function bJ(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,u,s,f,c,h,d,m,p,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],u=r[2],s=r[3],f=r[4],c=r[5],h=r[6],d=r[7],m=r[8],p=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=m,e[9]=p,e[10]=y,e[11]=b,e[12]=o*a+f*n+m*i+r[12],e[13]=l*a+c*n+p*i+r[13],e[14]=u*a+h*n+y*i+r[14],e[15]=s*a+d*n+b*i+r[15]),e}});var LA=ae((Sme,EA)=>{EA.exports=_J;function _J(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 PA=ae((Fme,qA)=>{qA.exports=xJ;function xJ(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),u,s,f,c,h,d,m,p,y,b,C,x,_,A,T,M,E,P,z,B,X,H,V,I;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,c=r[0],h=r[1],d=r[2],m=r[3],p=r[4],y=r[5],b=r[6],C=r[7],x=r[8],_=r[9],A=r[10],T=r[11],M=n*n*f+s,E=i*n*f+o*u,P=o*n*f-i*u,z=n*i*f-o*u,B=i*i*f+s,X=o*i*f+n*u,H=n*o*f+i*u,V=i*o*f-n*u,I=o*o*f+s,e[0]=c*M+p*E+x*P,e[1]=h*M+y*E+_*P,e[2]=d*M+b*E+A*P,e[3]=m*M+C*E+T*P,e[4]=c*z+p*B+x*X,e[5]=h*z+y*B+_*X,e[6]=d*z+b*B+A*X,e[7]=m*z+C*B+T*X,e[8]=c*H+p*V+x*I,e[9]=h*H+y*V+_*I,e[10]=d*H+b*V+A*I,e[11]=m*H+C*V+T*I,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var zA=ae((Eme,RA)=>{RA.exports=wJ;function wJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],u=r[7],s=r[8],f=r[9],c=r[10],h=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+s*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=u*n+h*a,e[8]=s*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=h*n-u*a,e}});var BA=ae((Lme,NA)=>{NA.exports=AJ;function AJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],u=r[3],s=r[8],f=r[9],c=r[10],h=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-s*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=u*n-h*a,e[8]=i*a+s*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=u*a+h*n,e}});var HA=ae((qme,IA)=>{IA.exports=MJ;function MJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],u=r[3],s=r[4],f=r[5],c=r[6],h=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+s*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=u*n+h*a,e[4]=s*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=h*n-u*a,e}});var UA=ae((Pme,OA)=>{OA.exports=TJ;function TJ(e,r,t){var a,n,i,o=t[0],l=t[1],u=t[2],s=Math.sqrt(o*o+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,o*=s,l*=s,u*=s,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+u*a,e[2]=u*o*i-l*a,e[3]=0,e[4]=o*l*i-u*a,e[5]=l*l*i+n,e[6]=u*l*i+o*a,e[7]=0,e[8]=o*u*i+l*a,e[9]=l*u*i-o*a,e[10]=u*u*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var YA=ae((Rme,GA)=>{GA.exports=kJ;function kJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,u=n+n,s=i+i,f=a*l,c=a*u,h=a*s,d=n*u,m=n*s,p=i*s,y=o*l,b=o*u,C=o*s;return e[0]=1-(d+p),e[1]=c+C,e[2]=h-b,e[3]=0,e[4]=c-C,e[5]=1-(f+p),e[6]=m+y,e[7]=0,e[8]=h+b,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var XA=ae((zme,VA)=>{VA.exports=CJ;function CJ(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 jA=ae((Nme,WA)=>{WA.exports=DJ;function DJ(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 JA=ae((Bme,ZA)=>{ZA.exports=SJ;function SJ(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 KA=ae((Ime,$A)=>{$A.exports=FJ;function FJ(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 eM=ae((Hme,QA)=>{QA.exports=EJ;function EJ(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 tM=ae((Ome,rM)=>{rM.exports=LJ;function LJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,u=n+n,s=t*o,f=a*o,c=a*l,h=n*o,d=n*l,m=n*u,p=i*o,y=i*l,b=i*u;return e[0]=1-c-m,e[1]=f+b,e[2]=h-y,e[3]=0,e[4]=f-b,e[5]=1-s-m,e[6]=d+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-s-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nM=ae((Ume,aM)=>{aM.exports=qJ;function qJ(e,r,t,a,n,i,o){var l=1/(t-r),u=1/(n-a),s=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*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*u,e[10]=(o+i)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*s,e[15]=0,e}});var oM=ae((Gme,iM)=>{iM.exports=PJ;function PJ(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 uM=ae((Yme,lM)=>{lM.exports=RJ;function RJ(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),u=2/(o+l),s=2/(n+i);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((o-l)*u*.5),e[9]=(n-i)*s*.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 fM=ae((Vme,sM)=>{sM.exports=zJ;function zJ(e,r,t,a,n,i,o){var l=1/(r-t),u=1/(a-n),s=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*u,e[14]=(o+i)*s,e[15]=1,e}});var vM=ae((Xme,cM)=>{var NJ=K4();cM.exports=BJ;function BJ(e,r,t,a){var n,i,o,l,u,s,f,c,h,d,m=r[0],p=r[1],y=r[2],b=a[0],C=a[1],x=a[2],_=t[0],A=t[1],T=t[2];return Math.abs(m-_)<1e-6&&Math.abs(p-A)<1e-6&&Math.abs(y-T)<1e-6?NJ(e):(f=m-_,c=p-A,h=y-T,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=C*h-x*c,i=x*f-b*h,o=b*c-C*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-h*i,u=h*n-f*o,s=f*i-c*n,d=Math.sqrt(l*l+u*u+s*s),d?(d=1/d,l*=d,u*=d,s*=d):(l=0,u=0,s=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=u,e[6]=c,e[7]=0,e[8]=o,e[9]=s,e[10]=h,e[11]=0,e[12]=-(n*m+i*p+o*y),e[13]=-(l*m+u*p+s*y),e[14]=-(f*m+c*p+h*y),e[15]=1,e)}});var dM=ae((Wme,hM)=>{hM.exports=IJ;function IJ(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 Q4=ae((jme,pM)=>{pM.exports={create:hA(),clone:pA(),copy:gA(),identity:K4(),transpose:_A(),invert:wA(),adjoint:MA(),determinant:kA(),multiply:DA(),translate:FA(),scale:LA(),rotate:PA(),rotateX:zA(),rotateY:BA(),rotateZ:HA(),fromRotation:UA(),fromRotationTranslation:YA(),fromScaling:XA(),fromTranslation:jA(),fromXRotation:JA(),fromYRotation:KA(),fromZRotation:eM(),fromQuat:tM(),frustum:nM(),perspective:oM(),perspectiveFromFieldOfView:uM(),ortho:fM(),lookAt:vM(),str:dM()}});var np=ae(nn=>{"use strict";var HJ=Q4();nn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};nn.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};nn.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]=nn.dot(e[n],r);else if(r[0].length){var i=nn.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=nn.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};nn.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};nn.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]]};nn.rotationXYMatrix=function(e,r,t){return nn.dot(nn.dot(nn.translationMatrix(r,t),nn.rotationMatrix(e)),nn.translationMatrix(-r,-t))};nn.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return nn.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};nn.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 nn.dot(e,[t[0],t[1],1]).slice(0,2)}};nn.apply2DTransform2=function(e){var r=nn.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};nn.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]};nn.inverseTransformMatrix=function(e){var r=[];return HJ.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 xv=ae((Jme,xM)=>{"use strict";var OJ=St(),mM=As(),UJ=np(),GJ=Q4();function YJ(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 VJ(e){var r=OJ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function gM(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function XJ(e,r){yM("global",e,r)}function yM(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):mM.warn("addStyleRule failed"):mM.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function WJ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&gM(t)}function jJ(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),u="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(s){s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),s.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),s.setAttribute(u,!0))})}function ZJ(e){var r=_M(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=bM(a);if(n){var i=UJ.convertCssMatrix(n);t=GJ.multiply(t,t,i)}}),t}function bM(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 _M(e){for(var r=[];JJ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function JJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function $J(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}xM.exports={getGraphDiv:YJ,isPlotDiv:VJ,removeElement:gM,addStyleRule:XJ,addRelatedStyleRule:yM,deleteRelatedStyleRule:WJ,setStyleOnHover:jJ,getFullTransformMatrix:ZJ,getElementTransformMatrix:bM,getElementAndAncestors:_M,equalDomRects:$J}});var wv=ae(($me,wM)=>{"use strict";wM.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 Ho=ae((Kme,SM)=>{"use strict";var MM=_n().extendFlat,KJ=l0(),TM={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},kM={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},QJ=TM.flags.slice().concat(["fullReplot"]),e$=kM.flags.slice().concat("layoutReplot");SM.exports={traces:TM,layout:kM,traceFlags:function(){return AM(QJ)},layoutFlags:function(){return AM(e$)},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:CM};function AM(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function CM(e,r,t){var a=MM({},e);for(var n in a){var i=a[n];KJ(i)&&(a[n]=DM(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function DM(e,r,t,a){if(e.valType){var n=MM({},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]=DM(e.items[i],r,"from-root")}return n}else return CM(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var Au=ae(e5=>{"use strict";e5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};e5.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 r5=ae((ege,FM)=>{"use strict";FM.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Bf=ae(k1=>{"use strict";var{DATE_FORMAT_LINK:r$,FORMAT_LINK:t$}=r5(),a$=["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 n$({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}".`,t$,"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}".`,r$,"for details on the date formatting syntax.",a$].join(" ")}k1.templateFormatStringDescription=n$;k1.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>ha({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});k1.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>ha({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});k1.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});k1.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var lp=ae((age,zM)=>{"use strict";function h0(e,r){return r?r.d2l(e):e}function EM(e,r){return r?r.l2d(e):e}function i$(e){return e.x0}function o$(e){return e.x1}function l$(e){return e.y0}function u$(e){return e.y1}function LM(e){return e.x0shift||0}function qM(e){return e.x1shift||0}function PM(e){return e.y0shift||0}function RM(e){return e.y1shift||0}function ip(e,r){return h0(e.x1,r)+qM(e)-h0(e.x0,r)-LM(e)}function op(e,r,t){return h0(e.y1,t)+RM(e)-h0(e.y0,t)-PM(e)}function s$(e,r){return Math.abs(ip(e,r))}function f$(e,r,t){return Math.abs(op(e,r,t))}function c$(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(ip(e,r),2)+Math.pow(op(e,r,t),2))}function v$(e,r){return EM((h0(e.x1,r)+qM(e)+h0(e.x0,r)+LM(e))/2,r)}function h$(e,r,t){return EM((h0(e.y1,t)+RM(e)+h0(e.y0,t)+PM(e))/2,t)}function d$(e,r,t){return e.type!=="line"?void 0:op(e,r,t)/ip(e,r)}var p$=["x0","x1","y0","y1","dy","height","ycenter"],m$=["x0","x1","y0","y1","dx","width","xcenter"];zM.exports={x0:i$,x1:o$,y0:l$,y1:u$,slope:d$,dx:ip,dy:op,width:s$,height:f$,length:c$,xcenter:v$,ycenter:h$,simpleXVariables:p$,simpleYVariables:m$}});var IM=ae((nge,BM)=>{"use strict";var g$=Ho().overrideAll,If=Io(),NM=vi(),y$=Au().dash,d0=_n().extendFlat,{shapeTexttemplateAttrs:b$,templatefallbackAttrs:_$}=Bf(),x$=lp();BM.exports=g$({newshape:{visible:d0({},If.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:d0({},If.legend,{}),legendgroup:d0({},If.legendgroup,{}),legendgrouptitle:{text:d0({},If.legendgrouptitle.text,{}),font:NM({})},legendrank:d0({},If.legendrank,{}),legendwidth:d0({},If.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:d0({},y$,{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:d0({},If.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:b$({newshape:!0},{keys:Object.keys(x$)}),texttemplatefallback:_$({editType:"arraydraw"}),font:NM({}),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 OM=ae((ige,HM)=>{"use strict";var w$=Au().dash,A$=_n().extendFlat;HM.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:A$({},w$,{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 up=ae((oge,UM)=>{"use strict";UM.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 C1=ae((lge,XM)=>{"use strict";var t5=vi(),M$=wv(),sp=Ll(),GM=IM(),YM=OM(),T$=up(),VM=_n().extendFlat,fp=t5({editType:"calc"});fp.family.dflt='"Open Sans", verdana, arial, sans-serif';fp.size.dflt=12;fp.color.dflt=sp.defaultLine;XM.exports={font:fp,title:{text:{valType:"string",editType:"layoutstyle"},font:t5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:t5({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:VM(T$({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:sp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:sp.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:sp.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:GM.newshape,activeshape:GM.activeshape,newselection:YM.newselection,activeselection:YM.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:VM({},M$.transition,{editType:"none"})}});var WM=ae(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var bt=ae(qt=>{"use strict";var a5=As(),jM=ap(),ZM=$4(),fge=xv().addStyleRule,JM=_n(),k$=Io(),C$=C1(),D$=JM.extendFlat,n5=JM.extendDeepAll;qt.modules={};qt.allCategories={};qt.allTypes=[];qt.subplotsRegistry={};qt.componentsRegistry={};qt.layoutArrayContainers=[];qt.layoutArrayRegexes=[];qt.traceLayoutAttributes={};qt.localeRegistry={};qt.apiMethodRegistry={};qt.collectableSubplotTypes=null;qt.register=function(r){if(qt.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":S$(a);break;case"component":E$(a);break;case"locale":L$(a);break;case"apiMethod":var n=a.name;qt.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};qt.getModule=function(e){var r=qt.modules[eT(e)];return r?r._module:!1};qt.traceIs=function(e,r){if(e=eT(e),e==="various")return!1;var t=qt.modules[e];return t||(e&&a5.log("Unrecognized trace type "+e+"."),t=qt.modules[k$.type.dflt]),!!t.categories[r]};qt.getComponentMethod=function(e,r){var t=qt.componentsRegistry[e];return t&&t[r]||jM};qt.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return qt.apiMethodRegistry[e].apply(null,r)};function S$(e){var r=e.name,t=e.categories,a=e.meta;if(qt.modules[r]){a5.log("Type "+r+" already registered");return}qt.subplotsRegistry[e.basePlotModule.name]||F$(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,qt.allCategories[t[i]]=!0;qt.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(qt.modules[r].meta=a),qt.allTypes.push(r);for(var o in qt.componentsRegistry)KM(o,r);e.layoutAttributes&&D$(qt.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,u=l.name;u==="map"&&WM(),(u==="geo"||u==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function F$(e){var r=e.name;if(qt.subplotsRegistry[r]){a5.log("Plot type "+r+" already registered.");return}$M(e),qt.subplotsRegistry[r]=e;for(var t in qt.componentsRegistry)QM(t,e.name)}function E$(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;qt.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&ZM(qt.layoutArrayContainers,r),$M(e));for(var t in qt.modules)KM(r,t);for(var a in qt.subplotsRegistry)QM(r,a);e.schema&&e.schema.layout&&n5(C$,e.schema.layout)}function L$(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=qt.localeRegistry,u=l[r];if(u||(l[r]=u={}),t!==r){var s=l[t];s||(l[t]=s={}),i&&s.dictionary===u.dictionary&&(s.dictionary=a),o&&s.format===u.format&&(s.format=n)}i&&(u.dictionary=a),o&&(u.format=n)}function $M(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)ZM(qt.layoutArrayRegexes,r[t])}}function KM(e,r){var t=qt.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&n5(qt.modules[r]._module.attributes,a)}}function QM(e,r){var t=qt.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=qt.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&&n5(n,o)}}function eT(e){return typeof e=="object"&&(e=e.type),e}});var sT=ae(on=>{"use strict";var q$=s1().timeFormat,lT=Wt(),i5=As(),m0=(v1(),ei(c1)).mod,F1=Oa(),Oo=F1.BADNUM,ji=F1.ONEDAY,Av=F1.ONEHOUR,p0=F1.ONEMIN,S1=F1.ONESEC,Mv=F1.EPOCHJD,Ms=bt(),rT=s1().utcFormat,P$=/^\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,R$=/^\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,tT=new Date().getFullYear()-70;function Ts(e){return e&&Ms.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}on.dateTick0=function(e,r){var t=z$(e,!!r);if(r<2)return t;var a=on.dateTime2ms(t,e);return a+=ji*(r-1),on.ms2DateTime(a,0,e)};function z$(e,r){return Ts(e)?r?Ms.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ms.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}on.dfltRange=function(e){return Ts(e)?Ms.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};on.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var vp,hp;on.dateTime2ms=function(e,r){if(on.isJSDate(e)){var t=e.getTimezoneOffset()*p0,a=(e.getUTCMinutes()-e.getMinutes())*p0+(e.getUTCSeconds()-e.getSeconds())*S1+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*p0;t=t-n/2+m0(a-t+n/2,n)}return e=Number(e)-t,e>=vp&&e<=hp?e:Oo}if(typeof e!="string"&&typeof e!="number")return Oo;e=String(e);var i=Ts(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",u=e.match(l?R$:P$);if(!u)return Oo;var s=u[1],f=u[3]||"1",c=Number(u[5]||1),h=Number(u[7]||0),d=Number(u[9]||0),m=Number(u[11]||0);if(i){if(s.length===2)return Oo;s=Number(s);var p;try{var y=Ms.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),p=y.newDate(s,y.toMonthIndex(s,f,b),c)}else p=y.newDate(s,Number(f),c)}catch(x){return Oo}return p?(p.toJD()-Mv)*ji+h*Av+d*p0+m*S1:Oo}s.length===2?s=(Number(s)+2e3-tT)%100+tT:s=Number(s),f-=1;var C=new Date(Date.UTC(2e3,f,c,h,d));return C.setUTCFullYear(s),C.getUTCMonth()!==f||C.getUTCDate()!==c?Oo:C.getTime()+m*S1};vp=on.MIN_MS=on.dateTime2ms("-9999");hp=on.MAX_MS=on.dateTime2ms("9999-12-31 23:59:59.9999");on.isDateTime=function(e,r){return on.dateTime2ms(e,r)!==Oo};function D1(e,r){return String(e+Math.pow(10,r)).slice(1)}var cp=90*ji,aT=3*Av,nT=5*p0;on.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=vp&&e<=hp))return Oo;r||(r=0);var a=Math.floor(m0(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,u,s,f;if(Ts(t)){var c=Math.floor(n/ji)+Mv,h=Math.floor(m0(e,ji));try{i=Ms.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=rT("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<cp?Math.floor(h/Av):0,l=r<cp?Math.floor(h%Av/p0):0,u=r<aT?Math.floor(h%p0/S1):0,s=r<nT?h%S1*10+a:0}else f=new Date(n),i=rT("%Y-%m-%d")(f),o=r<cp?f.getUTCHours():0,l=r<cp?f.getUTCMinutes():0,u=r<aT?f.getUTCSeconds():0,s=r<nT?f.getUTCMilliseconds()*10+a:0;return uT(i,o,l,u,s)};on.ms2DateTimeLocal=function(e){if(!(e>=vp+ji&&e<=hp-ji))return Oo;var r=Math.floor(m0(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=q$("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return uT(a,n,i,o,l)};function uT(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+D1(r,2)+":"+D1(t,2),(a||n)&&(e+=":"+D1(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+D1(n,i)}return e}on.cleanDate=function(e,r,t){if(e===Oo)return r;if(on.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ts(t))return i5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=on.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!on.isDateTime(e,t))return i5.error("unrecognized date",e),r;return e};var N$=/%\d?f/g,B$=/%h/g,I$={1:"1",2:"1",3:"2",4:"2"};function iT(e,r,t,a){e=e.replace(N$,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(B$,function(){return I$[t("%q")(n)]}),Ts(a))try{e=Ms.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var H$=[59,59.9,59.99,59.999,59.9999];function O$(e,r){var t=m0(e+.05,ji),a=D1(Math.floor(t/Av),2)+":"+D1(m0(Math.floor(t/p0),60),2);if(r!=="M"){lT(r)||(r=0);var n=Math.min(m0(e/S1,60),H$[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}on.formatDate=function(e,r,t,a,n,i){if(n=Ts(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 O$(e,t)+`
`+iT(i.dayMonthYear,e,a,n);return iT(r,e,a,n)};var oT=3*ji;on.incrementMonth=function(e,r,t){t=Ts(t)&&t;var a=m0(e,ji);if(e=Math.round(e-a),t)try{var n=Math.round(e/ji)+Mv,i=Ms.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Mv)*ji+a}catch(u){i5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+oT);return l.setUTCMonth(l.getUTCMonth()+r)+a-oT};on.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,u=Ts(r)&&Ms.getComponentMethod("calendars","getCal")(r),s=0;s<e.length;s++){if(l=e[s],!lT(l)){i++;continue}if(!(l%ji))if(u)try{o=u.fromJD(l/ji+Mv),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 dp=ae((hge,fT)=>{"use strict";fT.exports=function(r){return r}});var l5=ae(ks=>{"use strict";var U$=Wt(),G$=As(),Y$=dp(),V$=Oa().BADNUM,o5=1e-9;ks.findBin=function(e,r,t){if(U$(r.start))return t?Math.ceil((e-r.start)/r.size-o5)-1:Math.floor((e-r.start)/r.size+o5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,u;for(o>=0?u=t?X$:W$:u=t?Z$:j$,e+=o*o5*(t?-1:1)*(o>=0?1:-1);a<n&&i++<100;)l=Math.floor((a+n)/2),u(r[l],e)?a=l+1:n=l;return i>90&&G$.log("Long binary search..."),a-1};function X$(e,r){return e<r}function W$(e,r){return e<=r}function j$(e,r){return e>r}function Z$(e,r){return e>=r}ks.sorterAsc=function(e,r){return e-r};ks.sorterDes=function(e,r){return r-e};ks.distinctVals=function(e){var r=e.slice();r.sort(ks.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===V$;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var u=r[l],s=u-o;o===void 0?(i.push(u),o=u):s>n&&(a=Math.min(a,s),i.push(u),o=u)}return{vals:i,minDiff:a}};ks.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;a<n&&o++<100;)i=s((a+n)/2),r[i]<=e?a=i+l:n=i-u;return r[a]};ks.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()};ks.findIndexOfMin=function(e,r){r=r||Y$;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 pp={};u1(pp,{default:()=>$$});function J$(e){return Object.keys(e).sort()}var $$,mp=l1(()=>{"use strict";$$=J$});var cT=ae(ln=>{"use strict";var Tv=Wt(),K$=Vi().isArrayOrTypedArray;ln.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Tv(r)||(r=!1),K$(t[0])){for(i=new Array(a),n=0;n<a;n++)i[n]=ln.aggNums(e,r,t[n]);t=i}for(n=0;n<a;n++)Tv(r)?Tv(t[n])&&(r=e(+r,+t[n])):r=t[n];return r};ln.len=function(e){return ln.aggNums(function(r){return r+1},0,e)};ln.mean=function(e,r){return r||(r=ln.len(e)),ln.aggNums(function(t,a){return t+a},0,e)/r};ln.geometricMean=function(e,r){return r||(r=ln.len(e)),Math.pow(ln.aggNums(function(t,a){return t*a},1,e),1/r)};ln.midRange=function(e){if(!(e===void 0||e.length===0))return(ln.aggNums(Math.max,null,e)+ln.aggNums(Math.min,null,e))/2};ln.variance=function(e,r,t){return r||(r=ln.len(e)),Tv(t)||(t=ln.mean(e,r)),ln.aggNums(function(a,n){return a+Math.pow(n-t,2)},0,e)/r};ln.stdev=function(e,r,t){return Math.sqrt(ln.variance(e,r,t))};ln.median=function(e){var r=e.slice().sort();return ln.interp(r,.5)};ln.interp=function(e,r){if(!Tv(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 mT=ae((mge,pT)=>{"use strict";var vT=(v1(),ei(c1)),u5=vT.mod,Q$=vT.modHalf,kv=Math.PI,g0=2*kv;function eK(e){return e/180*kv}function rK(e){return e/kv*180}function s5(e){return Math.abs(e[1]-e[0])>g0-1e-14}function hT(e,r){return Q$(r-e,g0)}function tK(e,r){return Math.abs(hT(e,r))}function dT(e,r){if(s5(r))return!0;var t,a;r[0]<r[1]?(t=r[0],a=r[1]):(t=r[1],a=r[0]),t=u5(t,g0),a=u5(a,g0),t>a&&(a+=g0);var n=u5(e,g0),i=n+g0;return n>=t&&n<=a||i>=t&&i<=a}function aK(e,r,t,a){if(!dT(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 f5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=s5([t,a]),u,s,f,c,h;l?(u=0,s=kv,f=g0):t<a?(u=t,f=a):(u=a,f=t),e<r?(c=e,h=r):(c=r,h=e);function d(b,C){return[b*Math.cos(C)+n,i-b*Math.sin(C)]}var m=Math.abs(f-u)<=kv?0:1;function p(b,C,x){return"A"+[b,b]+" "+[0,m,x]+" "+d(b,C)}var y;return l?c===null?y="M"+d(h,u)+p(h,s,0)+p(h,f,0)+"Z":y="M"+d(c,u)+p(c,s,0)+p(c,f,0)+"ZM"+d(h,u)+p(h,s,1)+p(h,f,1)+"Z":c===null?(y="M"+d(h,u)+p(h,f,0),o&&(y+="L0,0Z")):y="M"+d(c,u)+"L"+d(h,u)+p(h,f,0)+"L"+d(c,f)+p(c,u,1)+"Z",y}function nK(e,r,t,a,n){return f5(null,e,r,t,a,n,0)}function iK(e,r,t,a,n){return f5(null,e,r,t,a,n,1)}function oK(e,r,t,a,n,i){return f5(e,r,t,a,n,i,1)}pT.exports={deg2rad:eK,rad2deg:rK,angleDelta:hT,angleDist:tK,isFullCircle:s5,isAngleInsideSector:dT,isPtInsideSector:aK,pathArc:nK,pathSector:iK,pathAnnulus:oK}});var gT=ae(Hf=>{"use strict";Hf.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Hf.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Hf.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Hf.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Hf.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Hf.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var _T=ae(Of=>{"use strict";var c5=(v1(),ei(c1)).mod;Of.segmentsIntersect=bT;function bT(e,r,t,a,n,i,o,l){var u=t-e,s=n-e,f=o-n,c=a-r,h=i-r,d=l-i,m=u*d-f*c;if(m===0)return null;var p=(s*d-f*h)/m,y=(s*c-u*h)/m;return y<0||y>1||p<0||p>1?null:{x:e+u*p,y:r+c*p}}Of.segmentDistance=function(r,t,a,n,i,o,l,u){if(bT(r,t,a,n,i,o,l,u))return 0;var s=a-r,f=n-t,c=l-i,h=u-o,d=s*s+f*f,m=c*c+h*h,p=Math.min(gp(s,f,d,i-r,o-t),gp(s,f,d,l-r,u-t),gp(c,h,m,r-i,t-o),gp(c,h,m,a-i,n-o));return Math.sqrt(p)};function gp(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 u=a*r-n*e;return u*u/t}}var yp,v5,yT;Of.getTextLocation=function(r,t,a,n){if((r!==v5||n!==yT)&&(yp={},v5=r,yT=n),yp[a])return yp[a];var i=r.getPointAtLength(c5(a-n/2,t)),o=r.getPointAtLength(c5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),u=r.getPointAtLength(c5(a,t)),s=(u.x*4+i.x+o.x)/6,f=(u.y*4+i.y+o.y)/6,c={x:s,y:f,theta:l};return yp[a]=c,c};Of.clearLocationCache=function(){v5=null};Of.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,c,h;function d(p){var y=r.getPointAtLength(p);p===0?c=y:p===s&&(h=y);var b=y.x<n?n-y.x:y.x>i?y.x-i:0,C=y.y<o?o-y.y:y.y>l?y.y-l:0;return Math.sqrt(b*b+C*C)}for(var m=d(u);m;){if(u+=m+a,u>f)return;m=d(u)}for(m=d(f);m;){if(f-=m+a,u>f)return;m=d(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};Of.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,u=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,s=0,f=0,c=i,h,d,m;s<l;){if(h=(f+c)/2,d=r.getPointAtLength(h),m=d[a]-t,Math.abs(m)<o)return d;u*m>0?c=h:f=h,s++}return d}});var bp=ae(Cv=>{"use strict";var Cs={};Cv.throttle=function(r,t,a){var n=Cs[r],i=Date.now();if(!n){for(var o in Cs)Cs[o].ts<i-6e4&&delete Cs[o];n=Cs[r]={ts:0,timer:null}}xT(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)};Cv.done=function(e){var r=Cs[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Cv.clear=function(e){if(e)xT(Cs[e]),delete Cs[e];else for(var r in Cs)Cv.clear(r)};function xT(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var AT=ae((_ge,wT)=>{"use strict";wT.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var MT=ae((xge,_p)=>{"use strict";_p.exports=h5;_p.exports.isMobile=h5;_p.exports.default=h5;var lK=/(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,uK=/CrOS/,sK=/android|ipad|playbook|silk/i;function h5(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=lK.test(r)&&!uK.test(r)||!!e.tablet&&sK.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=ae((wge,TT)=>{"use strict";var fK=Wt(),cK=MT();TT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=vK(),typeof t!="string")return!0;var a=cK({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 u=n[l];if(u.slice(0,8)==="Version/"){var s=u.slice(8).split(".")[0];if(fK(s)&&(s=+s),s>=13)return!0}}}return a};function vK(){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 DT=ae((Age,CT)=>{"use strict";var hK=St();CT.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]=hK.select(this)}),n}});var FT=ae((Mge,ST)=>{"use strict";var dK=bt();ST.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 u=l[t];if(u)return u}i=dK.localeRegistry}var s=a.split("-")[0];if(s===a)break;a=s}return t}});var LT=ae((Tge,ET)=>{"use strict";ET.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 PT=ae((kge,qT)=>{"use strict";qT.exports=function(r){for(var t=gK(r)?mK:pK,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function pK(e){return e.visible===!0}function mK(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function gK(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var zT=ae((Cge,RT)=>{"use strict";RT.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 u=parseFloat(n).toPrecision(12);u.indexOf("e+")===-1&&(n=+u)}}return n}});var IT={};u1(IT,{default:()=>_K});function bK(e){return typeof e=="string"&&(e=e.replace(yK,"")),(0,NT.default)(e)?Number(e):BT.BADNUM}var NT,BT,yK,_K,HT=l1(()=>{"use strict";NT=fy(Wt()),BT=fy(Oa()),yK=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;_K=bK});var GT=ae((Dge,UT)=>{"use strict";var xK=/<[^>]*>/g,wK=/[\p{S}\p{P}]/gu,AK=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,MK=/�/g,TK=/\s+/g,xp="-",OT=xp.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),kK=new RegExp(OT+"{3,}","g"),CK=new RegExp(OT+"$","g"),DK=60;function SK(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}UT.exports=function(r,t=DK){var a=SK(r!=null?r:"").replace(MK,"").replace(xK," ").replace(wK,n=>n===xp?n:"").toLowerCase().trim().replace(TK,xp).replace(AK,"").replace(kK,xp);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(CK,"")}});var mr=ae((Sge,rk)=>{"use strict";var Dv=St(),FK=s1().utcFormat,EK=vy().format,ZT=Wt(),JT=Oa(),$T=JT.FP_SAFE,LK=-$T,YT=JT.BADNUM,Le=rk.exports={};Le.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 VT={};Le.warnBadFormat=function(e){var r=String(e);VT[r]||(VT[r]=1,Le.warn('encountered bad format: "'+r+'"'))};Le.noFormat=function(e){return String(e)};Le.numberFormat=function(e){var r;try{r=EK(Le.adjustFormat(e))}catch(t){return Le.warnBadFormat(e),Le.noFormat}return r};Le.nestedProperty=K2();Le.keyedContainer=R_();Le.relativeAttr=N_();Le.isPlainObject=l0();Le.toLogRange=kd();Le.relinkPrivateKeys=O_();var y0=Vi();Le.isArrayBuffer=y0.isArrayBuffer;Le.isTypedArray=y0.isTypedArray;Le.isArrayOrTypedArray=y0.isArrayOrTypedArray;Le.isArray1D=y0.isArray1D;Le.ensureArray=y0.ensureArray;Le.concat=y0.concat;Le.maxRowLength=y0.maxRowLength;Le.minRowLength=y0.minRowLength;var KT=(v1(),ei(c1));Le.mod=KT.mod;Le.modHalf=KT.modHalf;var b0=sA();Le.valObjectMeta=b0.valObjectMeta;Le.coerce=b0.coerce;Le.coerce2=b0.coerce2;Le.coerceFont=b0.coerceFont;Le.coercePattern=b0.coercePattern;Le.coerceHoverinfo=b0.coerceHoverinfo;Le.coerceSelectionMarkerOpacity=b0.coerceSelectionMarkerOpacity;Le.validate=b0.validate;var ho=sT();Le.dateTime2ms=ho.dateTime2ms;Le.isDateTime=ho.isDateTime;Le.ms2DateTime=ho.ms2DateTime;Le.ms2DateTimeLocal=ho.ms2DateTimeLocal;Le.cleanDate=ho.cleanDate;Le.isJSDate=ho.isJSDate;Le.formatDate=ho.formatDate;Le.incrementMonth=ho.incrementMonth;Le.dateTick0=ho.dateTick0;Le.dfltRange=ho.dfltRange;Le.findExactDates=ho.findExactDates;Le.MIN_MS=ho.MIN_MS;Le.MAX_MS=ho.MAX_MS;var Uf=l5();Le.findBin=Uf.findBin;Le.sorterAsc=Uf.sorterAsc;Le.sorterDes=Uf.sorterDes;Le.distinctVals=Uf.distinctVals;Le.roundUp=Uf.roundUp;Le.sort=Uf.sort;Le.findIndexOfMin=Uf.findIndexOfMin;Le.sortObjectKeys=(mp(),ei(pp)).default;var Ds=cT();Le.aggNums=Ds.aggNums;Le.len=Ds.len;Le.mean=Ds.mean;Le.geometricMean=Ds.geometricMean;Le.median=Ds.median;Le.midRange=Ds.midRange;Le.variance=Ds.variance;Le.stdev=Ds.stdev;Le.interp=Ds.interp;var Pl=np();Le.init2dArray=Pl.init2dArray;Le.transposeRagged=Pl.transposeRagged;Le.dot=Pl.dot;Le.translationMatrix=Pl.translationMatrix;Le.rotationMatrix=Pl.rotationMatrix;Le.rotationXYMatrix=Pl.rotationXYMatrix;Le.apply3DTransform=Pl.apply3DTransform;Le.apply2DTransform=Pl.apply2DTransform;Le.apply2DTransform2=Pl.apply2DTransform2;Le.convertCssMatrix=Pl.convertCssMatrix;Le.inverseTransformMatrix=Pl.inverseTransformMatrix;var Mu=mT();Le.deg2rad=Mu.deg2rad;Le.rad2deg=Mu.rad2deg;Le.angleDelta=Mu.angleDelta;Le.angleDist=Mu.angleDist;Le.isFullCircle=Mu.isFullCircle;Le.isAngleInsideSector=Mu.isAngleInsideSector;Le.isPtInsideSector=Mu.isPtInsideSector;Le.pathArc=Mu.pathArc;Le.pathSector=Mu.pathSector;Le.pathAnnulus=Mu.pathAnnulus;var L1=gT();Le.isLeftAnchor=L1.isLeftAnchor;Le.isCenterAnchor=L1.isCenterAnchor;Le.isRightAnchor=L1.isRightAnchor;Le.isTopAnchor=L1.isTopAnchor;Le.isMiddleAnchor=L1.isMiddleAnchor;Le.isBottomAnchor=L1.isBottomAnchor;var q1=_T();Le.segmentsIntersect=q1.segmentsIntersect;Le.segmentDistance=q1.segmentDistance;Le.getTextLocation=q1.getTextLocation;Le.clearLocationCache=q1.clearLocationCache;Le.getVisibleSegment=q1.getVisibleSegment;Le.findPointOnPath=q1.findPointOnPath;var Mp=_n();Le.extendFlat=Mp.extendFlat;Le.extendDeep=Mp.extendDeep;Le.extendDeepAll=Mp.extendDeepAll;Le.extendDeepNoArrays=Mp.extendDeepNoArrays;var d5=As();Le.log=d5.log;Le.warn=d5.warn;Le.error=d5.error;var qK=(M1(),ei(A1));Le.counterRegex=qK.counter;var p5=bp();Le.throttle=p5.throttle;Le.throttleDone=p5.done;Le.clearThrottle=p5.clear;var Rl=xv();Le.getGraphDiv=Rl.getGraphDiv;Le.isPlotDiv=Rl.isPlotDiv;Le.removeElement=Rl.removeElement;Le.addStyleRule=Rl.addStyleRule;Le.addRelatedStyleRule=Rl.addRelatedStyleRule;Le.deleteRelatedStyleRule=Rl.deleteRelatedStyleRule;Le.setStyleOnHover=Rl.setStyleOnHover;Le.getFullTransformMatrix=Rl.getFullTransformMatrix;Le.getElementTransformMatrix=Rl.getElementTransformMatrix;Le.getElementAndAncestors=Rl.getElementAndAncestors;Le.equalDomRects=Rl.equalDomRects;Le.clearResponsive=AT();Le.preserveDrawingBuffer=kT();Le.makeTraceGroups=DT();Le._=FT();Le.notifier=U4();Le.filterUnique=LT();Le.filterVisible=PT();Le.pushUnique=$4();Le.increment=zT();Le.cleanNumber=(HT(),ei(IT)).default;Le.slugify=GT();Le.ensureNumber=function(r){return ZT(r)?(r=Number(r),r>$T||r<LK?YT:r):YT};Le.isIndex=function(e,r){return r!==void 0&&e>=r?!1:ZT(e)&&e>=0&&e%1===0};Le.noop=ap();Le.identity=dp();Le.repeat=function(e,r){for(var t=new Array(r),a=0;a<r;a++)t[a]=e;return t};Le.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=Le.nestedProperty(e,i.replace("?",t)),l=Le.nestedProperty(e,i.replace("?",a)),u=o.get();o.set(l.get()),l.set(u)}};Le.raiseToTop=function(r){r.parentNode.appendChild(r)};Le.cancelTransition=function(e){return e.transition().duration(0)};Le.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Le.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};Le.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};Le.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,u,s;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++)s=Math.floor(Math.random()*a).toString(a),o=s+o;f&&(u=Math.pow(a,f),s=Math.floor(Math.random()*u).toString(a),o=s+o);var c=parseInt(o,a);return r&&r[o]||c!==1/0&&c>=Math.pow(2,t)?n>10?(Le.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};Le.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};Le.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,u,s,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,u=0;u<n;u++)s=l+u+1-r,s<-t?s-=a*Math.round(s/a):s>=a&&(s-=a*Math.floor(s/a)),s<0?s=-1-s:s>=t&&(s=a-1-s),f+=e[s]*i[u];o[l]=f}return o};Le.syncOrAsync=function(e,r,t){var a,n;function i(){return Le.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)};Le.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Le.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]]}};Le.mergeArray=function(e,r,t,a){var n=typeof a=="function";if(Le.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}};Le.mergeArrayCastPositive=function(e,r,t){return Le.mergeArray(e,r,t,function(a){var n=+a;return isFinite(n)&&n>0?n:0})};Le.fillArray=function(e,r,t,a){if(a=a||Le.identity,Le.isArrayOrTypedArray(e))for(var n=0;n<r.length;n++)r[n][t]=a(e[n])};Le.castOption=function(e,r,t,a){a=a||Le.identity;var n=Le.nestedProperty(e,t).get();return Le.isArrayOrTypedArray(n)?Array.isArray(r)&&Le.isArrayOrTypedArray(n[r[0]])?a(n[r[0]][r[1]]):a(n[r]):n};Le.extractOption=function(e,r,t,a){if(t in e)return e[t];var n=Le.nestedProperty(r,a).get();if(!Array.isArray(n))return n};Le.tagSelected=function(e,r,t){var a=r.selectedpoints;function n(s){return s!==void 0&&s<e.length}for(var i=0;i<a.length;i++){var o=a[i];if(Le.isIndex(o)||Le.isArrayOrTypedArray(o)&&Le.isIndex(o[0])&&Le.isIndex(o[1])){var l=o,u=t?t[l]:l;n(u)&&(e[u].selected=1)}}};Le.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var a=Le.nestedProperty(e,t).get();return Le.isArrayOrTypedArray(a)?a:!1}else if(Le.isArrayOrTypedArray(t))return t;return!1};function QT(e,r,t){var a={};typeof r!="object"&&(r={});var n=t==="pieLike"?-1:3,i=Object.keys(e),o,l,u;for(o=0;o<i.length;o++)l=i[o],u=e[l],!(l.charAt(0)==="_"||typeof u=="function")&&(l==="module"?a[l]=u:Array.isArray(u)?l==="colorscale"||n===-1?a[l]=u.slice():a[l]=u.slice(0,n):Le.isTypedArray(u)?n===-1?a[l]=u.subarray():a[l]=u.subarray(0,n):u&&typeof u=="object"?a[l]=QT(e[l],r[l],t):a[l]=u);for(i=Object.keys(r),o=0;o<i.length;o++)l=i[o],u=r[l],(typeof u!="object"||!(l in a)||typeof a[l]!="object")&&(a[l]=u);return a}Le.minExtend=QT;Le.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};Le.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var PK=/Version\/[\d\.]+.*Safari/;Le.isSafari=function(){return PK.test(window.navigator.userAgent)};var RK=/iPad|iPhone|iPod/;Le.isIOS=function(){return RK.test(window.navigator.userAgent)};var zK=/Macintosh.+AppleWebKit.+Gecko\)$/;Le.isMacWKWebView=()=>zK.test(window.navigator.userAgent);var NK=/Firefox\/(\d+)\.\d+/;Le.getFirefoxVersion=function(){var e=NK.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Le.isD3Selection=function(e){return e instanceof Dv.selection};Le.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};Le.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};Le.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i<t.length;i++){var o=t[i],l=null,u=t[i].match(/(.*)\[([0-9]+)\]/);u?(o=u[1],l=u[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 BK=/^([^\[\.]+)\.(.+)?/,IK=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function wp(e){return e.slice(0,2)==="__"}Le.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(BK)){if(n=e[t],a=r[1],wp(a))continue;delete e[t],e[a]=Le.extendDeepNoArrays(e[a]||{},Le.objectFromPath(t,Le.expandObjectPaths(n))[a])}else if(r=t.match(IK)){if(n=e[t],a=r[1],wp(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]||{},Le.extendDeepNoArrays(o,Le.objectFromPath(l,Le.expandObjectPaths(n)));else{if(wp(a))continue;e[a][i]=Le.expandObjectPaths(n)}}else{if(wp(t))continue;e[t]=Le.expandObjectPaths(e[t])}}return e};Le.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],u=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+u};Le.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var ek=/^\w*$/;Le.templateString=function(e,r){var t={};return e.replace(Le.TEMPLATE_STRING_REGEX,function(a,n){var i;return ek.test(n)?i=r[n]:(t[n]=t[n]||Le.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var HK={max:10,count:0,name:"hovertemplate"};Le.hovertemplateString=e=>m5(Na(ha({},e),{opts:HK}));var OK={max:10,count:0,name:"texttemplate"};Le.texttemplateString=e=>m5(Na(ha({},e),{opts:OK}));var UK=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function GK(e){var r=e.match(UK);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var YK={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Le.texttemplateStringForShapes=e=>m5(Na(ha({},e),{opts:YK}));var XT=/^[:|\|]/;function m5({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(Le.TEMPLATE_STRING_REGEX,(o,l,u)=>{let s=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),h=["xother_","yother_"].includes(l),d=s||f||h||c;(f||c)&&(l=l.substring(1)),(h||c)&&(l=l.substring(0,l.length-1));let m=null,p=null;if(n.parseMultDiv){var y=GK(l);l=y.key,m=y.op,p=y.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let A of e)if(A){if(A.hasOwnProperty(l)){b=A[l];break}if(ek.test(l)||(b=Le.nestedProperty(A,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:A,max:T,name:M}=n,E=t===!1?o:t;return A<T&&Le.warn([`Variable '${l}' in ${M} could not be found!`,"Please verify that the template is correct.",`Using value: '${E}'.`].join(" ")),A===T&&Le.warn(`Too many '${M}' warnings - additional warnings will be suppressed.`),n.count++,E}if(m==="*"&&(b*=p),m==="/"&&(b/=p),u){var C;if(u[0]===":"&&(C=r?r.numberFormat:Le.numberFormat,b!==""&&(b=C(u.replace(XT,""))(b))),u[0]==="|"){C=r?r.timeFormat:FK;var x=Le.dateTime2ms(b);b=Le.formatDate(x,u.replace(XT,""),!1,C)}}else{var _=l+"Label";a.hasOwnProperty(_)&&(b=a[_])}return d&&(b="("+b+")",(f||c)&&(b=" "+b),(h||c)&&(b=b+" ")),b})}var Ap=48,WT=57;Le.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,u=o>=Ap&&o<=WT,s=l>=Ap&&l<=WT;if(u&&(a=10*a+o-Ap),s&&(n=10*n+l-Ap),!u||!s){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var E1=2e9;Le.seedPseudoRandom=function(){E1=2e9};Le.pseudoRandom=function(){var e=E1;return E1=(69069*E1+1)%4294967296,Math.abs(E1-e)<429496729?Le.pseudoRandom():E1/4294967296};Le.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=Le.extractOption(e,r,"htx","hovertext");if(Le.isValidTextValue(n))return a(n);var i=Le.extractOption(e,r,"tx","text");if(Le.isValidTextValue(i))return a(i)};Le.isValidTextValue=function(e){return e||e===0};Le.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};Le.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};Le.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};Le.strRotate=function(e){return e?"rotate("+e+")":""};Le.strScale=function(e){return e!==1?"scale("+e+")":""};Le.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,u=e.rotate,s=e.scale;return s?s>1&&(s=1):s=0,Le.strTranslate(n-s*(t+o),i-s*(a+l))+Le.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+a)+")":"")};Le.setTransormAndDisplay=function(e,r){e.attr("transform",Le.getTextTransform(r)),e.style("display",r.scale?null:"none")};Le.ensureUniformFontSize=function(e,r){var t=Le.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Le.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)};Le.bigFont=function(e){return Math.round(1.2*e)};var jT=Le.getFirefoxVersion(),VK=jT!==null&&jT<86;Le.getPositionFromD3Event=function(){return VK?[Dv.event.layerX,Dv.event.layerY]:[Dv.event.offsetX,Dv.event.offsetY]}});var nk=ae(()=>{"use strict";var XK=mr(),tk={"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(g5 in tk)ak=g5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),XK.addStyleRule(ak,tk[g5]);var ak,g5});var y5=ae((qge,ik)=>{ik.exports=!0});var _5=ae((Pge,ok)=>{"use strict";var WK=y5(),b5;typeof window.matchMedia=="function"?b5=!window.matchMedia("(hover: none)").matches:b5=WK;ok.exports=b5});var Cp=ae((Rge,x5)=>{"use strict";var P1=typeof Reflect=="object"?Reflect:null,lk=P1&&typeof P1.apply=="function"?P1.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Tp;P1&&typeof P1.ownKeys=="function"?Tp=P1.ownKeys:Object.getOwnPropertySymbols?Tp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Tp=function(r){return Object.getOwnPropertyNames(r)};function jK(e){console&&console.warn&&console.warn(e)}var sk=Number.isNaN||function(r){return r!==r};function La(){La.init.call(this)}x5.exports=La;x5.exports.once=KK;La.EventEmitter=La;La.prototype._events=void 0;La.prototype._eventsCount=0;La.prototype._maxListeners=void 0;var uk=10;function kp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(La,"defaultMaxListeners",{enumerable:!0,get:function(){return uk},set:function(e){if(typeof e!="number"||e<0||sk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");uk=e}});La.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};La.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||sk(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 fk(e){return e._maxListeners===void 0?La.defaultMaxListeners:e._maxListeners}La.prototype.getMaxListeners=function(){return fk(this)};La.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 u=i[r];if(u===void 0)return!1;if(typeof u=="function")lk(u,this,t);else for(var s=u.length,f=pk(u,s),a=0;a<s;++a)lk(f[a],this,t);return!0};function ck(e,r,t,a){var n,i,o;if(kp(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=fk(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,jK(l)}return e}La.prototype.addListener=function(r,t){return ck(this,r,t,!1)};La.prototype.on=La.prototype.addListener;La.prototype.prependListener=function(r,t){return ck(this,r,t,!0)};function ZK(){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 vk(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=ZK.bind(a);return n.listener=t,a.wrapFn=n,n}La.prototype.once=function(r,t){return kp(t),this.on(r,vk(this,r,t)),this};La.prototype.prependOnceListener=function(r,t){return kp(t),this.prependListener(r,vk(this,r,t)),this};La.prototype.removeListener=function(r,t){var a,n,i,o,l;if(kp(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():JK(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};La.prototype.off=La.prototype.removeListener;La.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 hk(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?$K(n):pk(n,n.length)}La.prototype.listeners=function(r){return hk(this,r,!0)};La.prototype.rawListeners=function(r){return hk(this,r,!1)};La.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):dk.call(e,r)};La.prototype.listenerCount=dk;function dk(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}La.prototype.eventNames=function(){return this._eventsCount>0?Tp(this._events):[]};function pk(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function JK(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function $K(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function KK(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))}mk(e,r,i,{once:!0}),r!=="error"&&QK(e,n,{once:!0})})}function QK(e,r,t){typeof e.on=="function"&&mk(e,"error",r,t)}function mk(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 Sv=ae((zge,gk)=>{"use strict";var w5=Cp().EventEmitter,eQ={init:function(e){if(e._ev instanceof w5)return e;var r=new w5,t=new w5;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(u){if(u.listener){if(n.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(n,[t])}else return u.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}};gk.exports=eQ});var _k=ae((Nge,bk)=>{"use strict";var yk=mr(),rQ=f0().dfltConfig;function tQ(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)?yk.extendDeep([],a):yk.extendDeepAll({},a):t[n]=a;return t}var Ss={};Ss.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>rQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Ss.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Ss.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Ss.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++)Ss.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};Ss.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++)Ss.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};Ss.plotDo=function(e,r,t){e.autoplay=!0,t=tQ(e,t),r.apply(null,t)};bk.exports=Ss});var A5=ae((Bge,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 N1=ae(xn=>{"use strict";var Uo=bt(),Fv=mr(),Sp=Io(),M5=C1(),aQ=A5(),nQ=wv(),iQ=f0().configAttributes,wk=Ho(),zl=Fv.extendDeepAll,R1=Fv.isPlainObject,oQ=Fv.isArrayOrTypedArray,Fp=Fv.nestedProperty,lQ=Fv.valObjectMeta,T5="_isSubplotObj",Ep="_isLinkedToArray",uQ="_arrayAttrRegexps",Mk="_deprecated",k5=[T5,Ep,uQ,Mk];xn.IS_SUBPLOT_OBJ=T5;xn.IS_LINKED_TO_ARRAY=Ep;xn.DEPRECATED=Mk;xn.UNDERSCORE_ATTRS=k5;xn.get=function(){var e={};return Uo.allTypes.forEach(function(r){e[r]=fQ(r)}),{defs:{valObjects:lQ,metaKeys:k5.concat(["description","role","editType","impliedEdits"]),editType:{traces:wk.traces,layout:wk.layout},impliedEdits:{}},traces:e,layout:cQ(),frames:vQ(),animation:z1(nQ),config:z1(iQ)}};xn.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(k5.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!xn.isValObject(o)&&R1(o)&&i!=="impliedEdits"&&xn.crawl(o,r,n+1,l)}})};xn.isValObject=function(e){return e&&e.valType!==void 0};xn.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(u,s,f,c){t=t.slice(0,c).concat([s]),a=a.slice(0,c).concat([u&&u._isLinkedToArray]);var h=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));h&&l(n,0,"")}function l(u,s,f){var c=u[t[s]],h=f+t[s];if(s===t.length-1)oQ(c)&&r.push(i+h);else if(a[s]){if(Array.isArray(c))for(var d=0;d<c.length;d++)R1(c[d])&&l(c[d],s+1,h+"["+d+"].")}else R1(c)&&l(c,s+1,h+".")}return n=e,i="",xn.crawl(Sp,o),e._module&&e._module.attributes&&xn.crawl(e._module.attributes,o),r};xn.getTraceValObject=function(e,r){var t=r[0],a=1,n,i,o=e._module;if(o||(o=(Uo.modules[e.type||Sp.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=Sp[t]),Tk(i,r,a)};xn.getLayoutValObject=function(e,r){var t=sQ(e,r[0]);return Tk(t,r,1)};function sQ(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 u=n.baseLayoutAttrOverrides;if(u&&r in u)return u[r]}if(l)return l}var s=e._modules;if(s){for(t=0;t<s.length;t++)if(i=s[t].layoutAttributes,i&&r in i)return i[r]}for(a in Uo.componentsRegistry){if(n=Uo.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 M5?M5[r]:!1}function Tk(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(Dp(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(R1(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!Dp(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!Dp(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(!Dp(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Dp(e){return e===Math.round(e)&&e>=0}function fQ(e){var r,t;r=Uo.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=zl({},Sp),i=zl({},r.attributes);xn.crawl(i,function(u,s,f,c,h){Fp(n,h).set(void 0),u===void 0&&Fp(i,h).set(void 0)}),zl(a,n),Uo.traceIs(e,"noOpacity")&&delete a.opacity,Uo.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Uo.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,zl(a,i),t.attributes&&zl(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:z1(a)};if(r.layoutAttributes){var l={};zl(l,r.layoutAttributes),o.layoutAttributes=z1(l)}return r.animatable||xn.crawl(o,function(u){xn.isValObject(u)&&"anim"in u&&delete u.anim}),o}function cQ(){var e={},r,t;zl(e,M5);for(r in Uo.subplotsRegistry)if(t=Uo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)Ak(e,t,t.attr[a]);else{var n=t.attr==="subplot"?t.name:t.attr;Ak(e,t,n)}for(r in Uo.componentsRegistry){t=Uo.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"?zl(e,t.layoutAttributes):t.layoutAttributes&&mQ(e,t.layoutAttributes,t.name)}return{layoutAttributes:z1(e)}}function vQ(){var e={frames:zl({},aQ)};return z1(e),e.frames}function z1(e){return hQ(e),dQ(e),pQ(e),e}function hQ(e){function r(t,a,n){!xn.isValObject(t)&&R1(t)&&(t.role="object")}xn.crawl(e,r)}function dQ(e){function r(t,a,n){if(t){var i=t[Ep];i&&(delete t[Ep],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}xn.crawl(e,r)}function pQ(e){function r(t){for(var a in t)if(R1(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 Ak(e,r,t){var a=Fp(e,t),n=zl({},r.layoutAttributes);n[T5]=!0,a.set(n)}function mQ(e,r,t){var a=Fp(e,t);a.set(zl(a.get()||{},r))}});var Ta=ae(Gf=>{"use strict";var B1=mr(),gQ=Io(),_0="templateitemname",C5={name:{valType:"string",editType:"none"}};C5[_0]={valType:"string",editType:"calc"};Gf.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=C5.name,r[_0]=C5[_0],r};Gf.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=B1.coerce(i,{},gQ,"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}};Gf.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);B1.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Gf.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[Ck(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(s){var f={name:s.name,_input:s},c=f[_0]=s[_0];if(!kk(c))return f._template=n,f;for(var h=0;h<i.length;h++){var d=i[h];if(d.name===c)return o[c]=1,f._template=d,f}return f[t]=s[t]||!1,f._template=!1,f}function u(){for(var s=[],f=0;f<i.length;f++){var c=i[f],h=c.name;if(kk(h)&&!o[h]){var d={_template:c,name:h,_input:{_templateitemname:h}};d[_0]=c[_0],s.push(d),o[h]=1}}return s}return{newItem:l,defaultItems:u}};function kk(e){return e&&typeof e=="string"}function Ck(e){var r=e.length-1;return e.charAt(r)!=="s"&&B1.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}Gf.arrayDefaultKey=Ck;Gf.arrayEditor=function(e,r,t){var a=(B1.nestedProperty(e,r).get()||[]).length,n=t._index,i=n>=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function u(){l={},i&&(l[o]={},l[o][_0]=i)}u();function s(d,m){l[d]=m}function f(d,m){i?B1.nestedProperty(l[o],d).set(m):l[o+"."+d]=m}function c(){var d=l;return u(),d}function h(d,m){d&&f(d,m);var p=c();for(var y in p)B1.nestedProperty(e,y).set(p[y])}return{modifyBase:s,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var En=ae((Oge,Dk)=>{"use strict";var Ev=(M1(),ei(A1)).counter;Dk.exports={idRegex:{x:Ev("x","( domain)?"),y:Ev("y","( domain)?")},attrRegex:Ev("[xy]axis"),xAxisMatch:Ev("xaxis"),yAxisMatch:Ev("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var wn=ae(Zi=>{"use strict";var yQ=bt(),D5=En();Zi.id2name=function(r){if(!(typeof r!="string"||!r.match(D5.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Zi.name2id=function(r){if(r.match(D5.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Zi.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(D5.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":"")}};Zi.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Zi.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 u=a._subplots.gl3d||[];for(o=0;o<u.length;o++){var s=a[u[o]];r?i.push(s[r+"axis"]):i.push(s.xaxis,s.yaxis,s.zaxis)}}return i};Zi.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)};Zi.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[Zi.id2name(r)]};Zi.getFromTrace=function(e,r,t){var a=e._fullLayout,n=null;if(yQ.traceIs(r,"gl3d")){var i=r.scene;i.slice(0,5)==="scene"&&(n=a[i][t+"axis"])}else n=Zi.getFromId(e,r[t+"axis"]||t);return n};Zi.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)};Zi.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Sk(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}Zi.isLinked=function(e,r){return Sk(r,e._axisMatchGroups)||Sk(r,e._axisConstraintGroups)}});var x0=ae((Gge,Fk)=>{"use strict";function bQ(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function _Q(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Fk.exports={clearOutlineControllers:bQ,clearOutline:_Q}});var Lp=ae((Yge,Ek)=>{"use strict";Ek.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Lv=ae(Pp=>{"use strict";var qp=bt(),Vge=En().SUBPLOT_PATTERN;Pp.getSubplotCalcData=function(e,r,t){var a=qp.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o<e.length;o++){var l=e[o],u=l[0].trace;u[n]===t&&i.push(l)}return i};Pp.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=qp.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 u=e[l],s=u[0].trace,f=s.zorder!==void 0;s.visible!==!0||s._length===0||(s._module&&s._module.plot===i&&(!f||s.zorder===o)?a.push(u):n.push(u))}return[a,n]};Pp.getSubplotData=function(r,t,a){if(!qp.subplotsRegistry[t])return[];for(var n=qp.subplotsRegistry[t].attr,i=[],o,l,u,s=0;s<r.length;s++)o=r[s],o[n]===a&&i.push(o);return i}});var Rk=ae(Yf=>{"use strict";var xQ=bt(),I1=mr();Yf.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Yf.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){Lk(e,o,n.cache),n.check=function(){if(i){var f=Lk(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"],u=0;u<l.length;u++)e._internalOn(l[u],n.check);n.remove=function(){for(var s=0;s<l.length;s++)e._removeInternalListener(l[s],n.check)}}else I1.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};Yf.hasSimpleAPICommandBindings=function(e,r,t){var a,n=r.length,i;for(a=0;a<n;a++){var o,l=r[a],u=l.method,s=l.args;if(Array.isArray(s)||(s=[]),!u)return!1;var f=Yf.computeAPICommandBindings(e,u,s);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 h=o.value;if(Array.isArray(h))if(h.length===1)h=h[0];else return!1;t&&(t[h]=a)}return i};function Lk(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=I1.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}}Yf.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var a=xQ.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 I1.warn("API call to Plotly."+r+" rejected.",o),Promise.reject(o)})};Yf.computeAPICommandBindings=function(e,r,t){var a;switch(Array.isArray(t)||(t=[]),r){case"restyle":a=Pk(e,t);break;case"relayout":a=qk(e,t);break;case"update":a=Pk(e,[t[0],t[2]]).concat(qk(e,[t[1]]));break;case"animate":a=wQ(e,t);break;default:a=[]}return a};function wQ(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 qk(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if(I1.isPlainObject(a))n=a;else return t;return S5(n,function(i,o,l){t.push({type:"layout",prop:i,value:l})},"",0),t}function Pk(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(I1.isPlainObject(a))i=a,t===void 0&&(t=n);else return o;return t===void 0&&(t=null),S5(i,function(l,u,s){var f,c;if(Array.isArray(s)){c=s.slice();var h=Math.min(c.length,e.data.length);t&&(h=Math.min(h,t.length)),f=[];for(var d=0;d<h;d++)f[d]=t?t[d]:d}else c=s,f=t?t.slice():null;if(f===null)Array.isArray(c)&&(c=c[0]);else if(Array.isArray(f)){if(!Array.isArray(c)){var m=c;c=[];for(var p=0;p<f.length;p++)c[p]=m}c.length=Math.min(f.length,c.length)}o.push({type:"data",prop:l,traces:f,value:c})},"",0),o}function S5(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var o=t+(a>0?".":"")+n;I1.isPlainObject(i)?S5(i,r,o,a+1):r(o,n,i)}})}});var An=ae((Zge,Vk)=>{"use strict";var jge=St(),AQ=s1().timeFormatLocale,MQ=vy().formatLocale,qv=Wt(),TQ=hy(),kQ=$2().version,Jt=bt(),CQ=N1(),DQ=Ta(),Qr=mr(),SQ=Lt(),zk=Oa().BADNUM,Ji=wn(),FQ=x0().clearOutline,EQ=Lp(),F5=wv(),LQ=A5(),qQ=Lv().getModuleCalcData,Nk=Qr.relinkPrivateKeys,Vf=Qr._,Rr=Vk.exports={};Qr.extendFlat(Rr,Jt);Rr.attributes=Io();Rr.attributes.type.values=Rr.allTypes;Rr.fontAttrs=vi();Rr.layoutAttributes=C1();var zp=Rk();Rr.executeAPICommand=zp.executeAPICommand;Rr.computeAPICommandBindings=zp.computeAPICommandBindings;Rr.manageCommandObserver=zp.manageCommandObserver;Rr.hasSimpleAPICommandBindings=zp.hasSimpleAPICommandBindings;Rr.redrawText=function(e){return e=Qr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Jt.getComponentMethod("annotations","draw")(e),Jt.getComponentMethod("legend","draw")(e),Jt.getComponentMethod("colorbar","draw")(e),r(Rr.previousPromises(e)))},300)})};Rr.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,Jt.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Rr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Rr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Rr.graphJson(e,!1,"object");a.version=kQ;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 PQ=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],RQ=["year","month","dayMonth","dayMonthYear"];Rr.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=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},c;e._transitionData||Rr.createTransitionData(e),n._dfltTitle={plot:Vf(e,"Click to enter Plot title"),subtitle:Vf(e,"Click to enter Plot subtitle"),x:Vf(e,"Click to enter X axis title"),y:Vf(e,"Click to enter Y axis title"),colorbar:Vf(e,"Click to enter Colorscale title"),annotation:Vf(e,"new text")},n._traceWord=Vf(e,"trace");var h=Bk(e,PQ);if(a._initialAutoSizeIsDone){var d=a.width,m=a.height;Rr.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=m),Rr.sanitizeMargins(n)}else{Rr.supplyLayoutGlobalDefaults(i,n,h);var p=!i.width||!i.height,y=n.autosize,b=f.autosizable,C=p&&(y||b);C?Rr.plotAutoSize(e,i,n):p&&Rr.sanitizeMargins(n),!y&&p&&(i.width=n.width,i.height=n.height)}n._d3locale=BQ(h,n.separators),n._extraFormat=Bk(e,RQ),n._initialAutoSizeIsDone=!0,n._dataLength=u.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var x=n._subplots=NQ(),_=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=zQ(o,u),Rr.supplyDataDefaults(u,l,i,n);var T=Object.keys(_.x),M=Object.keys(_.y);if(T.length>1&&M.length>1){for(Jt.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=Rr._hasPlotType.bind(n),o.length===l.length)for(c=0;c<l.length;c++)Nk(l[c],o[c]);Rr.supplyLayoutModuleDefaults(i,n,l,e._transitionData);var P=n._visibleModules,z=[];for(c=0;c<P.length;c++){var B=P[c].crossTraceDefaults;B&&Qr.pushUnique(z,B)}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,Rr.linkSubplots(l,n,o,a),Rr.cleanPlot(l,n,o,a);var X=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),V=X,I=H;V&&!I?a._bgLayer.remove():I&&!V&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&FQ({_fullLayout:a}),IQ(l,n),Nk(n,a),Jt.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Q=n._tracePreGUI,le={},re;for(re in Q)le[re]="old";for(c=0;c<l.length;c++)re=l[c].uid,le[re]||(Q[re]={}),le[re]="new";for(re in le)le[re]==="old"&&delete Q[re];Ok(n),Jt.getComponentMethod("rangeslider","makeData")(n),!t&&s.length===l.length&&Rr.supplyDefaultsUpdateCalc(s,l)};Rr.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 zQ(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 u(f,c){if(f&&typeof f=="string"&&!o[f])return l(f,c),!0}for(a=0;a<t;a++){var s=r[a].uid;typeof s=="number"&&(s=String(s)),!u(s,a)&&(a<n&&u(e[a].uid,a)||l(Qr.randstr(o),a))}return i}function NQ(){var e=Jt.collectableSubplotTypes,r={},t,a;if(!e){e=[];var n=Jt.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 Bk(e,r){var t=e._context.locale;t||(t="en-US");var a=!1,n={};function i(c){for(var h=!0,d=0;d<r.length;d++){var m=r[d];n[m]||(c[m]?n[m]=c[m]:h=!1)}h&&(a=!0)}for(var o=0;o<2;o++){for(var l=e._context.locales,u=0;u<2;u++){var s=(l[t]||{}).format;if(s&&(i(s),a))break;l=Jt.localeRegistry}var f=t.split("-")[0];if(a||f===t)break;t=f}return a||i(Jt.localeRegistry.en.format),n}function BQ(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=MQ(e).format(Qr.adjustFormat(t))}catch(a){return Qr.warnBadFormat(t),Qr.noFormat}return t},timeFormat:AQ(e).utcFormat}}function IQ(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)}Rr.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=[])};Rr._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=Jt.modules[n];if(i&&i.categories[e])return!0}return!1};Rr.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 u=a._has&&a._has("gl"),s=r._has&&r._has("gl");u&&!s&&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],h=c.uid;for(i=0;i<e.length;i++){var d=e[i];if(h===d.uid)continue e}f&&a._infolayer.select(".cb"+h).remove()}};Rr.linkSubplots=function(e,r,t,a){var n,i,o=a._plots||{},l=r._plots={},u=r._subplots,s={_fullData:e,_fullLayout:r},f=u.cartesian||[];for(n=0;n<f.length;n++){var c=f[n],h=o[c],d=Ji.getFromId(s,c,"x"),m=Ji.getFromId(s,c,"y"),p;for(h?p=l[c]=h:(p=l[c]={},p.id=c),d._counterAxes.push(m._id),m._counterAxes.push(d._id),d._subplotsWith.push(c),m._subplotsWith.push(c),p.xaxis=d,p.yaxis=m,p._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var y=e[i];if(y.xaxis===p.xaxis._id&&y.yaxis===p.yaxis._id&&y.cliponaxis===!1){p._hasClipOnAxisFalse=!0;break}}}var b=Ji.list(s,null,!0),C;for(n=0;n<b.length;n++){C=b[n];var x=null;C.overlaying&&(x=Ji.getFromId(s,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:Ji.getFromId(s,C.anchor)}for(n=0;n<b.length;n++)if(C=b[n],C._counterAxes.sort(Ji.idSort),C._subplotsWith.sort(Qr.subplotSort),C._mainSubplot=HQ(C,r),C._counterAxes.length&&(C.spikemode&&C.spikemode.indexOf("across")!==-1||C.automargin&&C.mirror&&C.anchor!=="free"||Jt.getComponentMethod("rangeslider","isVisible")(C))){var _=1,A=0;for(i=0;i<C._counterAxes.length;i++){var T=Ji.getFromId(s,C._counterAxes[i]);_=Math.min(_,T.domain[0]),A=Math.max(A,T.domain[1])}_<A&&(C._counterDomainMin=_,C._counterDomainMax=A)}};function HQ(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 u=e._counterAxes,s=0;s<u.length;s++){var f=u[s],c=a?e._id+f:f+e._id;o||(o=c);var h=Ji.getFromId(t,f);if(l&&h.overlaying===l){i=c;break}}}return i||o}Rr.supplyDataDefaults=function(e,r,t,a){var n=a._modules,i=a._visibleModules,o=a._basePlotModules,l=0,u=0,s,f,c;function h(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&&u++)}var d={},m=[],p=(t.template||{}).data||{},y=DQ.traceTemplater(p);for(s=0;s<e.length;s++)c=e[s],f=y.newTrace(c),f.uid=a._traceUids[s],Rr.supplyTraceDefaults(c,f,u,a,s),f.index=s,f._input=c,h(f),Jt.traceIs(f,"carpetAxis")&&(d[f.carpet]=f),Jt.traceIs(f,"carpetDependent")&&m.push(s);for(s=0;s<m.length;s++)if(f=r[m[s]],!!f.visible){var b=d[f.carpet];if(f._carpet=b,!b||!b.visible){f.visible=!1;continue}f.xaxis=b.xaxis,f.yaxis=b.yaxis}};Rr.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function a(n,i){return Qr.coerce(e||{},t,F5,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]=Rr.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=Rr.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=Rr.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=Rr.supplyAnimationTransitionDefaults(e.transition||{});return t};Rr.supplyAnimationFrameDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e||{},r,F5.frame,a,n)}return t("duration"),t("redraw"),r};Rr.supplyAnimationTransitionDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e||{},r,F5.transition,a,n)}return t("duration"),t("easing"),r};Rr.supplyFrameDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e,r,LQ,a,n)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};Rr.supplyTraceDefaults=function(e,r,t,a,n){var i=a.colorway||SQ.defaults,o=i[t%i.length],l;function u(x,_){return Qr.coerce(e,r,Rr.attributes,x,_)}var s=u("visible");u("type"),u("name",a._traceWord+" "+n),u("uirevision",a.uirevision);var f=Rr.getModule(r);if(r._module=f,f){var c=f.basePlotModule,h=c.attr,d=c.attributes;if(h&&d){var m=a._subplots,p="";if(Array.isArray(h))for(l=0;l<h.length;l++){var y=h[l],b=Qr.coerce(e,r,d,y);m[y]&&Qr.pushUnique(m[y],b),p+=b}else p=Qr.coerce(e,r,d,h);m[c.name]&&Qr.pushUnique(m[c.name],p)}}if(s&&(u("customdata"),u("ids"),u("meta"),Jt.traceIs(r,"showLegend")?(Qr.coerce(e,r,f.attributes.showlegend?f.attributes:Rr.attributes,"showlegend"),Qr.coerce(e,r,f.attributes.legend?f.attributes:Rr.attributes,"legend"),u("legendwidth"),u("legendgroup"),u("legendgrouptitle.text"),Qr.coerce(e,r,f.attributes.legend?f.attributes:Rr.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,o,a),Jt.traceIs(r,"noOpacity")||u("opacity"),Jt.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),Jt.traceIs(r,"noHover")||(r.hovertemplate||Qr.coerceHoverinfo(e,r,a),r.type!=="parcats"&&Jt.getComponentMethod("fx","supplyDefaults")(e,r,o,a)),f&&f.selectPoints)){var C=u("selectedpoints");Qr.isTypedArray(C)&&(r.selectedpoints=Array.from(C))}return r};Rr.supplyLayoutGlobalDefaults=function(e,r,t){function a(c,h){return Qr.coerce(e,r,Rr.layoutAttributes,c,h)}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 u=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)}}),u&&(l==="paper"&&(r.title.y!==0&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y===0?"top":"bottom")),l==="container"&&(r.title.y==="auto"&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y<.5?"bottom":"top")));var s=a("uniformtext.mode");s&&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&&Rr.sanitizeMargins(r),Jt.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),Jt.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),Jt.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,a),Jt.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,a),a("meta"),Qr.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),Jt.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),Jt.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,a),Qr.coerce(e,r,EQ,"scattermode")};function Rp(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}Rr.plotAutoSize=function(r,t,a){var n=r._context||{},i=n.frameMargins,o,l,u=Qr.isPlotDiv(r);if(u&&r.emit("plotly_autosize"),n.fillFrame)o=window.innerWidth,l=window.innerHeight,document.body.style.overflow="hidden";else{var s=u?window.getComputedStyle(r):{};if(o=Rp(s.width)||Rp(s.maxWidth)||a.width,l=Rp(s.height)||Rp(s.maxHeight)||a.height,qv(i)&&i>0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Rr.layoutAttributes.width.min,h=Rr.layoutAttributes.height.min;o<c&&(o=c),l<h&&(l=h);var d=!t.width&&Math.abs(a.width-o)>1,m=!t.height&&Math.abs(a.height-l)>1;(m||d)&&(d&&(a.width=o),m&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Rr.sanitizeMargins(a)};Rr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Jt.componentsRegistry,i=r._basePlotModules,o,l,u,s=Jt.subplotsRegistry.cartesian;for(o in n)u=n[o],u.includeBasePlot&&u.includeBasePlot(e,r);i.length||i.push(s),r._has("cartesian")&&(Jt.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(Qr.subplotSort);for(l=0;l<i.length;l++)u=i[l],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t);var c=r._modules;for(l=0;l<c.length;l++)u=c[l],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t);for(o in n)u=n[o],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t)};Rr.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.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()};Rr.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)};Rr.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))}};Rr.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};Rr.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function Ok(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 Uk=2,Gk=2;Rr.autoMargin=function(e,r,t){var a=e._fullLayout,n=a.width,i=a.height,o=a.margin,l=a.minreducedwidth,u=a.minreducedheight,s=Qr.constrain(n-o.l-o.r,Uk,l),f=Qr.constrain(i-o.t-o.b,Gk,u),c=Math.max(0,n-s),h=Math.max(0,i-f),d=a._pushmargin,m=a._pushmarginIds;if(o.autoexpand!==!1){if(!t)delete d[r],delete m[r];else{var p=t.pad;if(p===void 0&&(p=Math.min(12,o.l,o.r,o.t,o.b)),c){var y=(t.l+t.r)/c;y>1&&(t.l/=y,t.r/=y)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}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;d[r]={l:{val:C,size:t.l+p},r:{val:x,size:t.r+p},b:{val:A,size:t.b+p},t:{val:_,size:t.t+p}},m[r]=1}if(!a._replotting)return Rr.doAutoMargin(e)}};function OQ(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Ji.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Rr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),Ok(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Qr.extendFlat({},n),u=i.l,s=i.r,f=i.t,c=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,p=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var b=e._fullLayout._reservedMargin;for(var C in b)for(var x in b[C]){var _=b[C][x];o[x]=Math.max(o[x],_)}h.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:c}};for(var A in o){var T=0;for(var M in h)M!=="base"&&qv(h[M][A].size)&&(T=h[M][A].size>T?h[M][A].size:T);var E=Math.max(0,i[A]-T);o[A]=Math.max(0,o[A]-E)}for(var P in h){var z=h[P].l||{},B=h[P].b||{},X=z.val,H=z.size,V=B.val,I=B.size,Q=t-o.r-o.l,le=a-o.t-o.b;for(var re in h){if(qv(H)&&h[re].r){var te=h[re].r.val,oe=h[re].r.size;if(te>X){var ce=(H*te+(oe-Q)*X)/(te-X),Me=(oe*(1-X)+(H-Q)*(1-te))/(te-X);ce+Me>u+s&&(u=ce,s=Me)}}if(qv(I)&&h[re].t){var Se=h[re].t.val,Ie=h[re].t.size;if(Se>V){var Ue=(I*Se+(Ie-le)*V)/(Se-V),ke=(Ie*(1-V)+(I-le)*(1-Se))/(Se-V);Ue+ke>c+f&&(c=Ue,f=ke)}}}}}var We=Qr.constrain(t-i.l-i.r,Uk,m),j=Qr.constrain(a-i.t-i.b,Gk,p),ee=Math.max(0,t-We),me=Math.max(0,a-j);if(ee){var K=(u+s)/ee;K>1&&(u/=K,s/=K)}if(me){var $=(c+f)/me;$>1&&(c/=$,f/=$)}if(n.l=Math.round(u)+o.l,n.r=Math.round(s)+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&&(Rr.didMarginChange(l,n)||OQ(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var se=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<se)return Jt.call("_doPlot",e);r._size=l,Qr.warn("Too many auto-margin redraws.")}UQ(e)};function UQ(e){var r=Ji.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a<r.length;a++){var n=r[a][t];n&&n()}})}var Ik=["l","r","t","b","p","w","h"];Rr.didMarginChange=function(e,r){for(var t=0;t<Ik.length;t++){var a=Ik[t],n=e[a],i=r[a];if(!qv(n)||Math.abs(i-n)>1)return!0}return!1};Rr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Rr.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(c,h){if(typeof c=="function")return h?"_function_":null;if(Qr.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){h&&(d[b]="_function");return}d[b]=u(c[b],h)}}),d}var m=Array.isArray(c),p=Qr.isTypedArray(c);if((m||p)&&c.dtype&&c.shape){var y=c.bdata;return u({dtype:c.dtype,shape:c.shape,bdata:Qr.isArrayBuffer(y)?TQ.encode(y):y},h)}return m?c.map(function(b){return u(b,h)}):p?Qr.simpleMap(c,Qr.identity):Qr.isJSDate(c)?Qr.ms2DateTimeLocal(+c):c}var s={data:(i||[]).map(function(c){var h=u(c);return r&&delete h.fit,h})};if(!r&&(s.layout=u(o),a)){var f=o._size;s.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(s.frames=u(l)),n&&(s.config=u(e._context,!0)),t==="object"?s:JSON.stringify(s)};Rr.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,u=n.name;i[a.index]=o[u]=n,u!==l&&(delete o[l],o[u]=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()};Rr.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 u=[l],s=[l.name];l.baseframe&&(l=t[l.baseframe.toString()])&&s.indexOf(l.name)===-1;)u.push(l),s.push(l.name);for(var f={};l=u.pop();)if(l.layout&&(f.layout=Rr.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]=Rr.extendTrace(f.data[o],l.data[a]))}return f};Rr.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)}};Rr.extendObjectWithContainers=function(e,r,t){var a,n,i,o,l,u,s,f,c=Qr.extendDeepNoArrays({},r||{}),h=Qr.expandObjectPaths(c),d={};if(t&&t.length)for(i=0;i<t.length;i++)a=Qr.nestedProperty(h,t[i]),n=a.get(),n===void 0?Qr.nestedProperty(d,t[i]).set(null):(a.set(null),Qr.nestedProperty(d,t[i]).set(n));if(e=Qr.extendDeepNoArrays(e||{},h),t&&t.length){for(i=0;i<t.length;i++)if(l=Qr.nestedProperty(d,t[i]),s=l.get(),!!s){for(u=Qr.nestedProperty(e,t[i]),f=u.get(),Array.isArray(f)||(f=[],u.set(f)),o=0;o<s.length;o++){var m=s[o];m===null?f[o]=null:f[o]=Rr.extendObjectWithContainers(f[o],m)}u.set(f)}}return e};Rr.dataArrayContainers=["dimensions"];Rr.layoutArrayContainers=Jt.layoutArrayContainers;Rr.extendTrace=function(e,r){return Rr.extendObjectWithContainers(e,r,Rr.dataArrayContainers)};Rr.extendLayout=function(e,r){return Rr.extendObjectWithContainers(e,r,Rr.layoutArrayContainers)};Rr.transition=function(e,r,t,a,n,i){var o={redraw:n.redraw},l={},u=[];return o.prepareFn=function(){for(var s=Array.isArray(r)?r.length:0,f=a.slice(0,s),c=0;c<f.length;c++){var h=f[c],d=e._fullData[h],m=d._module;if(m){if(m.animatable){var p=m.basePlotModule.name;l[p]||(l[p]=[]),l[p].push(h)}e.data[f[c]]=Rr.extendTrace(e.data[f[c]],r[c])}}var y=Qr.expandObjectPaths(Qr.extendDeepNoArrays({},t)),b=/^[xy]axis[0-9]*$/;for(var C in y)b.test(C)&&delete y[C].range;Rr.extendLayout(e.layout,y),delete e.calcdata,Rr.supplyDefaults(e),Rr.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(),B=null,X=null,H=null,V=null;Array.isArray(x[M._name+".range"])?B=x[M._name+".range"].slice():Array.isArray((x[M._name]||{}).range)&&(B=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&&B&&(M.r2l(P[0])!==M.r2l(B[0])||M.r2l(P[1])!==M.r2l(B[1]))&&(H={xr0:P,xr1:B}),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)&&u.push(Qr.extendFlat({plotinfo:T},H,V))}}return Promise.resolve()},o.runFn=function(s){var f,c=e._fullLayout._basePlotModules,h=u.length,d;if(t)for(d=0;d<c.length;d++)c[d].transitionAxes&&c[d].transitionAxes(e,u,i,s);h?(f=Qr.extendFlat({},i),f.duration=0,delete l.cartesian):f=i;for(var m in l){var p=l[m],y=e._fullData[p[0]]._module;y.basePlotModule.plot(e,p,f,s)}},Yk(e,i,o)};Rr.transitionFromReact=function(e,r,t,a){var n=e._fullLayout,i=n.transition,o={},l=[];return o.prepareFn=function(){var u=n._plots;o.redraw=!1,r.anim==="some"&&(o.redraw=!0),t.anim==="some"&&(o.redraw=!0);for(var s in u){var f=u[s],c=f.xaxis,h=f.yaxis,d=a[c._name].range.slice(),m=a[h._name].range.slice(),p=c.range.slice(),y=h.range.slice();c.setScale(),h.setScale();var b=null,C=null;(c.r2l(d[0])!==c.r2l(p[0])||c.r2l(d[1])!==c.r2l(p[1]))&&(b={xr0:d,xr1:p}),(h.r2l(m[0])!==h.r2l(y[0])||h.r2l(m[1])!==h.r2l(y[1]))&&(C={yr0:m,yr1:y}),(b||C)&&l.push(Qr.extendFlat({plotinfo:f},b,C))}return Promise.resolve()},o.runFn=function(u){for(var s=e._fullData,f=e._fullLayout,c=f._basePlotModules,h,d,m,p=[],y=0;y<s.length;y++)p.push(y);function b(){if(e._fullLayout)for(var x=0;x<c.length;x++)c[x].transitionAxes&&c[x].transitionAxes(e,l,h,u)}function C(){if(e._fullLayout)for(var x=0;x<c.length;x++)c[x].plot(e,m,d,u)}l.length&&r.anim?i.ordering==="traces first"?(h=Qr.extendFlat({},i,{duration:0}),m=p,d=i,setTimeout(b,i.duration),C()):(h=i,m=null,d=Qr.extendFlat({},i,{duration:0}),setTimeout(C,h.duration),b()):l.length?(h=i,b()):r.anim&&(m=p,d=i,C())},Yk(e,i,o)};function Yk(e,r,t){var a=!1;function n(c){var h=Promise.resolve();if(!c)return h;for(;c.length;)h=h.then(c.shift());return h}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 Jt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!a&&d===h&&l(c)}}t.runFn(m),setTimeout(m())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Jt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var s=[Rr.previousPromises,u,t.prepareFn,Rr.rehover,Rr.reselect,o],f=Qr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Rr.doCalcdata=function(e,r){var t=Ji.list(e),a=e._fullData,n=e._fullLayout,i,o,l,u=new Array(a.length),s=(e.calcdata||[]).slice();for(e.calcdata=u,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){u[l]=s[l];continue}for(l=0;l<a.length;l++)i=a[l],i._arrayAttrs=CQ.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 h=n[c];h.cauto!==!1&&(delete h.cmin,delete h.cmax)}function d(p,y){if(i=a[p],o=i._module,!!o.isContainer===y){var b=[];i.visible===!0&&i._length!==0&&o&&o.calc&&(b=o.calc(e,i)),(!Array.isArray(b)||!b[0])&&(b=[{x:zk,y:zk}]),b[0].t||(b[0].t={}),b[0].trace=i,u[p]=b}}for(VQ(t,a,n),l=0;l<a.length;l++)d(l,!0);for(l=0;l<a.length;l++)d(l,!1);Hk(e);var m=YQ(t,e);if(m.length){for(n._numBoxes=0,n._numViolins=0,l=0;l<m.length;l++)d(m[l],!0);for(l=0;l<m.length;l++)d(m[l],!1);Hk(e)}Jt.getComponentMethod("fx","calc")(e),Jt.getComponentMethod("errorbars","calc")(e)};var GQ=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function YQ(e,r){var t=[],a,n,i,o,l;function u(re,te,oe){var ce=te._id.charAt(0);if(re==="histogram2dcontour"){var Me=te._counterAxes[0],Se=Ji.getFromId(r,Me),Ie=ce==="x"||Me==="x"&&Se.type==="category",Ue=ce==="y"||Me==="y"&&Se.type==="category";return function(ke,We){return ke===0||We===0||Ie&&ke===oe[We].length-1||Ue&&We===oe.length-1?-1:(ce==="y"?We:ke)-1}}else return function(ke,We){return ce==="y"?We:ke}}var s={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(te,oe){return te+oe},null,re)},total:function(re){return Qr.aggNums(function(te,oe){return te+oe},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,te){return re[1]-te[1]}function c(re,te){return te[1]-re[1]}for(a=0;a<e.length;a++){var h=e[a];if(h.type==="category"){var d=h.categoryorder.match(GQ);if(d){var m=d[1],p=d[2],y=h._id.charAt(0),b=y==="x",C=[];for(n=0;n<h._categories.length;n++)C.push([h._categories[n],[]]);for(n=0;n<h._traceIndices.length;n++){var x=h._traceIndices[n],_=r._fullData[x];if(_.visible===!0){var A=_.type;Jt.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,B;if(T){var X=_._axesDim[h._id];if(!b){var H=_._diag[X][0];H&&(h=r._fullLayout[Ji.id2name(H)])}var V=P.trace.dimensions[X].values;for(o=0;o<V.length;o++)for(z=h._categoriesMap[V[o]],l=0;l<P.trace.dimensions.length;l++)if(l!==X){var I=P.trace.dimensions[l];C[z][1].push(I.values[o])}}else if(M){for(o=0;o<P.t.x.length;o++)b?(z=P.t.x[o],B=P.t.y[o]):(z=P.t.y[o],B=P.t.x[o]),C[z][1].push(B);P.t&&P.t._scene&&delete P.t._scene.dirty}else if(P.hasOwnProperty("z")){B=P.z;var Q=u(_.type,h,B);for(o=0;o<B.length;o++)for(l=0;l<B[o].length;l++)z=Q(l,o),z+1&&C[z][1].push(B[o][l])}else{if(z=P.p,z===void 0&&(z=P[y]),isNaN(z)||z<0)continue;for(B=P.s,B===void 0&&(B=P.v),B===void 0&&(B=b?P.y:P.x),Array.isArray(B)||(B===void 0?B=[]:B=[B]),o=0;o<B.length;o++)C[z][1].push(B[o])}}}}h._categoriesValue=C;var le=[];for(n=0;n<C.length;n++)le.push([C[n][0],s[m](C[n][1])]);le.sort(p==="descending"?c:f),h._categoriesAggregatedValue=le,h._initialCategories=le.map(function(re){return re[0]}),t=t.concat(h.sortByInitialCategories())}}}return t}function VQ(e,r,t){var a={};function n(u){u.clearCalc(),u.type==="multicategory"&&u.setupMultiCategory(r),a[u._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[Ji.id2name(l)])}function Hk(e){var r=e._fullLayout,t=r._visibleModules,a={},n,i,o;for(i=0;i<t.length;i++){var l=t[i],u=l.crossTraceCalc;if(u){var s=l.basePlotModule.name;a[s]?Qr.pushUnique(a[s],u):a[s]=[u]}}for(o in a){var f=a[o],c=r._subplots[o];if(Array.isArray(c))for(n=0;n<c.length;n++){var h=c[n],d=o==="cartesian"?r._plots[h]:r[h];for(i=0;i<f.length;i++)f[i](e,d,h)}else for(i=0;i<f.length;i++)f[i](e)}}Rr.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};Rr.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};Rr.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);Jt.getComponentMethod("selections","reselect")(e,n)};Rr.generalUpdatePerTraceModule=function(e,r,t,a){var n=r.traceHash,i={},o;for(o=0;o<t.length;o++){var l=t[o],u=l[0].trace;u.visible&&(i[u.type]=i[u.type]||[],i[u.type].push(l))}for(var s in n)if(!i[s]){var f=n[s][0],c=f[0].trace;c.visible=!1,i[s]=[f]}for(var h in i){var d=i[h],m=d[0][0].trace._module;m.plot(e,r,Qr.filterVisible(d),a)}r.traceHash=i};Rr.plotBasePlot=function(e,r,t,a,n){var i=Jt.getModule(e),o=qQ(r.calcdata,i)[0];i.plot(r,o,a,n)};Rr.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 Wf=ae(Xf=>{"use strict";Xf.xmlns="http://www.w3.org/2000/xmlns/";Xf.svg="http://www.w3.org/2000/svg";Xf.xlink="http://www.w3.org/1999/xlink";Xf.svgAttrs={xmlns:Xf.svg,"xmlns:xlink":Xf.xlink}});var ti=ae(($ge,Xk)=>{"use strict";Xk.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ai=ae(po=>{"use strict";var Mn=St(),Go=mr(),XQ=Go.strTranslate,E5=Wf(),WQ=ti().LINE_SPACING,jQ=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,Kk=e=>e?e.match(jQ):null;po.matchTex=Kk;po.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&Kk(a);n&&!KQ()&&(n=null);var i=Mn.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 u=uee(e.node(),a);u&&e.style("pointer-events","all"),po.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s},c=e.attr("text-anchor");QQ(n[2],f,function(h,d,m){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=h&&h.select("svg");if(!p||!p.node()){l(),u();return}e.style("display","none");var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),d&&d.node()&&p.node().insertBefore(d.node().cloneNode(!0),p.node().firstChild);var b=m.width,C=m.height;p.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",_=p.select("g");_.attr({fill:x,stroke:x});var A=_.node().getBoundingClientRect(),T=A.width,M=A.height;(T>b||M>C)&&(p.style("overflow","hidden"),A=p.node().getBoundingClientRect(),T=A.width,M=A.height);var E=+e.attr("x"),P=+e.attr("y"),z=s||e.node().getBoundingClientRect().height,B=-z/4;o[0]==="y"?y.attr({transform:"rotate("+[-90,E,P]+")"+XQ(-T/2,B-M/2)}):o[0]==="l"?P=B-M/2:o[0]==="a"&&o.indexOf("atitle")!==0?(E=0,P=B):(E=E-T*(c==="middle"?.5:c==="end"?1:0),P=P+B-M/2),p.attr({x:E,y:P}),t&&t.call(e,y),u(y)})})):l(),e};var ZQ=/(<|<|<)/g,JQ=/(>|>|>)/g;function $Q(e){return e.replace(ZQ,"\\lt ").replace(JQ,"\\gt ")}var L5=null,Qk=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,Wk=!1,jk=!1;function KQ(){let e=Qk();return e===3||e===4?!0:(e===null?Wk||(Wk=!0,Go.warn("MathJax is not loaded. Math equations will not be rendered.")):jk||(jk=!0,Go.warn("Unsupported MathJax version:",MathJax.version)),!1)}function QQ(e,r,t){let a=Qk();var n;let i=function(){if(!L5){let s=MathJax._.output.svg_ts.SVG,f=Go.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=Go.extendFlat({},f.linebreaks,{inline:!1})),L5=MathJax._.mathjax.mathjax.document(document,Go.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new s(f)}))}let l="math-output-"+Go.randstr({},64);n=Mn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let u=$Q(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return L5.convert(u,{display:!1})}).then(function(s){n.node().appendChild(s)})},o=function(){let l=n.select(".MathJax"),u=!l.empty()&&n.select("svg").node();if(!u)Go.log("There was an error in the tex syntax.",e),t();else{let s=u.getBoundingClientRect(),f=l.select("defs");t(l,f,s)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{Go.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var eC={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"},eee={sub:"0.3em",sup:"-0.6em"},ree={sub:"-0.21em",sup:"0.42em"},Zk="\u200B",Jk=["http:","https:","mailto:","",void 0,":"],rC=po.NEWLINES=/(\r\n?|\n)/g,P5=/(<[^<>]*>)/,R5=/<(\/?)([^ >]*)(\s+(.*))?>/i,tee=/<br(\s+.*)?>/i;po.BR_TAG_ALL=/<br(\s+.*)?>/gi;var tC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,aC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,nC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,aee=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function jf(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Np(a)}var nee=/(^|;)\s*color:/;po.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(P5),l=[],u="",s=0,f=0;f<o.length;f++){var c=o[f],h=c.match(R5),d=h&&h[2].toLowerCase();if(d)a.indexOf(d)!==-1&&(l.push(c),u=d);else{var m=c.length;if(s+m<t)l.push(c),s+=m;else if(s<t){var p=t-s;u&&(u!=="br"||p<=i||m<=i)&&l.pop(),t>i?l.push(c.slice(0,Math.max(0,p-i))+n):l.push(c.slice(0,p));break}u=""}}return l.join("")};var iee={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},oee=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Np(e){return e.replace(oee,function(r,t){var a;return t.charAt(0)==="#"?a=lee(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=iee[t],a||r})}po.convertEntities=Np;function lee(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 uee(e,r){r=r.replace(rC," ");var t=!1,a=[],n,i=-1;function o(){i++;var T=document.createElementNS(E5.svg,"tspan");Mn.select(T).attr({class:"line",dy:i*WQ+"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,B=T.href,X=T.popup;B&&(E={"xlink:xlink:show":z==="_blank"||z.charAt(0)!=="_"?"new":"replace",target:z,"xlink:xlink:href":B},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(E5.svg,P);if(M==="sup"||M==="sub"){u(n,Zk),n.appendChild(H);var V=document.createElementNS(E5.svg,"tspan");u(V,Zk),Mn.select(V).attr("dy",ree[M]),E.dy=eee[M],n.appendChild(H),n.appendChild(V)}else n.appendChild(H);Mn.select(H).attr(E),n=T.node=H,a.push(T)}function u(T,M){T.appendChild(document.createTextNode(M))}function s(T){if(a.length===1){Go.log("Ignoring unexpected end tag </"+T+">.",r);return}var M=a.pop();T!==M.type&&Go.log("Start tag <"+M.type+"> doesnt match end tag <"+T+">. Pretending it did match.",r),n=a[a.length-1].node}var f=tee.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(P5),h=0;h<c.length;h++){var d=c[h],m=d.match(R5),p=m&&m[2].toLowerCase(),y=eC[p];if(p==="br")o();else if(y===void 0)u(n,Np(d));else if(m[1])s(p);else{var b=m[4],C={type:p},x=jf(b,tC);if(x?(x=x.replace(nee,"$1 fill:"),y&&(x+=";"+y)):y&&(x=y),x&&(C.style=x),p==="a"){t=!0;var _=jf(b,aC);if(_){var A=iC(_);A&&(C.href=A,C.target=jf(b,nC)||"_blank",C.popup=jf(b,aee))}}l(C)}}return t}function iC(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 Jk.indexOf(n)!==-1&&Jk.indexOf(i)!==-1?r:""}po.sanitizeHTML=function(r){r=r.replace(rC," ");for(var t=document.createElement("p"),a=t,n=[],i=r.split(P5),o=0;o<i.length;o++){var l=i[o],u=l.match(R5),s=u&&u[2].toLowerCase();if(s in eC)if(u[1])n.length&&(a=n.pop());else{var f=u[4],c=jf(f,tC),h=c?{style:c}:{};if(s==="a"){var d=jf(f,aC);if(d){var m=iC(d);if(m){h.href=m;var p=jf(f,nC);p&&(h.target=p)}}}var y=document.createElement(s);a.appendChild(y),Mn.select(y).attr(h),a=y,n.push(y)}else a.appendChild(document.createTextNode(Np(l)))}var b="innerHTML";return t[b]};po.lineCount=function(r){return r.selectAll("tspan.line").size()||1};po.positionText=function(r,t,a){return r.each(function(){var n=Mn.select(this);function i(u,s){return s===void 0?(s=n.attr(u),s===null&&(n.attr(u,0),s=0)):n.attr(u,s),s}var o=i("x",t),l=i("y",a);this.nodeName==="text"&&n.selectAll("tspan.line").attr({x:o,y:l})})};function $k(e,r,t){var a=t.horizontalAlign,n=t.verticalAlign||"top",i=e.node().getBoundingClientRect(),o=r.node().getBoundingClientRect(),l,u,s;return n==="bottom"?u=function(){return i.bottom-l.height}:n==="middle"?u=function(){return i.top+(i.height-l.height)/2}:u=function(){return i.top},a==="right"?s=function(){return i.right-l.width}:a==="center"?s=function(){return i.left+(i.width-l.width)/2}:s=function(){return i.left},function(){l=this.node().getBoundingClientRect();var f=s()-o.left,c=u()-o.top,h=t.gd||{};if(t.gd){h._fullLayout._calcInverseTransform(h);var d=Go.apply3DTransform(h._fullLayout._invTransform)(f,c);f=d[0],c=d[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var q5="1px ";po.makeTextShadow=function(e){var r=q5,t=q5,a=q5;return r+t+a+e+", -"+r+"-"+t+a+e+", "+r+"-"+t+a+e+", -"+r+t+a+e};po.makeEditable=function(e,r){var t=r.gd,a=r.delegate,n=Mn.dispatch("edit","input","cancel"),i=a||e;if(e.style({"pointer-events":a?"none":"all"}),e.size()!==1)throw new Error("boo");function o(){u(),e.style({opacity:0});var s=i.attr("class"),f;s?f="."+s.split(" ")[0]+"-math-group":f="[class*=-math-group]",f&&Mn.select(e.node().parentNode).select(f).style({opacity:0})}function l(s){var f=s.node(),c=document.createRange();c.selectNodeContents(f);var h=window.getSelection();h.removeAllRanges(),h.addRange(c),f.focus()}function u(){var s=Mn.select(t),f=s.select(".svg-container"),c=f.append("div"),h=e.node().style,d=parseFloat(h.fontSize||12),m=r.text;m===void 0&&(m=e.attr("data-unformatted")),c.classed("plugin-editable editable",!0).style({position:"absolute","font-family":h.fontFamily||"Arial","font-size":d,color:r.fill||h.fill||"black",opacity:1,"background-color":r.background||"transparent",outline:"#ffffff33 1px solid",margin:[-d/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(m).call($k(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var p=Mn.select(this).attr("class"),y;p?y="."+p.split(" ")[0]+"-math-group":y="[class*=-math-group]",y&&Mn.select(e.node().parentNode).select(y).style({opacity:0});var b=this.textContent;Mn.select(this).transition().duration(0).remove(),Mn.select(document).on("mouseup",null),n.edit.call(e,b)}).on("focus",function(){var p=this;t._editing=!0,Mn.select(document).on("mouseup",function(){if(Mn.event.target===p)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){Mn.event.which===27?(t._editing=!1,e.style({opacity:1}),Mn.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),n.cancel.call(e,this.textContent)):(n.input.call(e,this.textContent),Mn.select(this).call($k(e,f,r)))}).on("keydown",function(){Mn.event.which===13&&this.blur()}).call(l)}return r.immediate?o():i.on("click",o),Mn.rebind(e,n,"on")}});var Tu=ae((Qge,cC)=>{"use strict";var see=St(),Rv=Wt(),Bp=mr(),Zf=Lt(),fee=Nf().isValid;function cee(e,r,t){var a=r?Bp.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Bp.isArrayOrTypedArray(n)){for(var o=0;o<n.length;o++)if(Rv(n[o])){i=!0;break}}return Bp.isPlainObject(a)&&(i||a.showscale===!0||Rv(a.cmin)&&Rv(a.cmax)||fee(a.colorscale)||Bp.isPlainObject(a.colorbar))}var oC=["showscale","autocolorscale","colorscale","reversescale","colorbar"],Pv=["min","max","mid","auto"];function lC(e){var r=e._colorAx,t=r||e,a={},n,i,o;for(i=0;i<oC.length;i++)o=oC[i],a[o]=t[o];if(r)for(n="c",i=0;i<Pv.length;i++)o=Pv[i],a[o]=t["c"+o];else{var l;for(i=0;i<Pv.length;i++){if(o=Pv[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(u,s){var f=Pv.indexOf(u)!==-1?n+u:u;t[f]=t["_"+f]=s},a}function uC(e){for(var r=lC(e),t=r.min,a=r.max,n=r.reversescale?sC(r.colorscale):r.colorscale,i=n.length,o=new Array(i),l=new Array(i),u=0;u<i;u++){var s=n[u];o[u]=t+s[0]*(a-t),l[u]=s[1]}return{domain:o,range:l}}function sC(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 fC(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]=Zf.rgbaArray(a[o]);var l=see.scale.linear().domain(t).range(i).clamp(!0),u=r.noNumericCheck,s=r.returnArray,f;return u&&s?f=l:u?f=function(c){return Zf.rgbaArrayToString(l(c))}:s?f=function(c){return Rv(c)?l(c):Zf.isValid(c)?c:Zf.defaultLine}:f=function(c){return Rv(c)?Zf.rgbaArrayToString(l(c)):Zf.isValid(c)?c:Zf.defaultLine},f.domain=l.domain,f.range=function(){return a},f}function vee(e,r){return fC(uC(e),r)}cC.exports={hasColorscale:cee,extractOpts:lC,extractScale:uC,flipScale:sC,makeColorScaleFunc:fC,makeColorScaleFuncFromTrace:vee}});var N5=ae((e3e,dC)=>{"use strict";var vC=r5(),hee=vC.FORMAT_LINK,dee=vC.DATE_FORMAT_LINK;function pee(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?z5:hC)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function z5(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: "+hee+"."].join(" ")}function hC(e,r){return z5(e,r)+[" And for dates see: "+dee+".","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(" ")}dC.exports={axisHoverFormat:pee,descriptionOnlyNumbers:z5,descriptionWithDates:hC}});var Nl=ae((t3e,EC)=>{"use strict";var pC=vi(),H1=Ll(),FC=Au().dash,I5=_n().extendFlat,mC=Ta().templatedArray,r3e=Bf().templateFormatStringDescription,gC=N5().descriptionWithDates,mee=Oa().ONEDAY,ku=En(),gee=ku.HOUR_PATTERN,yee=ku.WEEKDAY_PATTERN,B5={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},bee=I5({},B5,{values:B5.values.slice().concat(["sync"])});function yC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var bC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},_C={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},xC={valType:"data_array",editType:"ticks"},wC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function AC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function MC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var TC={valType:"color",dflt:H1.defaultLine,editType:"ticks"},kC={valType:"color",dflt:H1.lightLine,editType:"ticks"};function CC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var DC=I5({},FC,{editType:"ticks"}),SC={valType:"boolean",editType:"ticks"};EC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:H1.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:pC({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:[ku.idRegex.x.toString(),ku.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:[ku.idRegex.x.toString(),ku.idRegex.y.toString()],editType:"calc"},rangebreaks:mC("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:[yee,gee,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:mee},editType:"calc"}),tickmode:bee,nticks:yC(),tick0:bC,dtick:_C,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:xC,ticktext:{valType:"data_array",editType:"ticks"},ticks:wC,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:AC(),tickwidth:MC(),tickcolor:TC,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:I5({},FC,{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:pC({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:gC("tick label")},tickformatstops:mC("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:gC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:H1.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:SC,gridcolor:kC,gridwidth:CC(),griddash:DC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:H1.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:H1.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",ku.idRegex.x.toString(),ku.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",ku.idRegex.x.toString(),ku.idRegex.y.toString()],editType:"plot"},minor:{tickmode:B5,nticks:yC("minor"),tick0:bC,dtick:_C,tickvals:xC,ticks:wC,ticklen:AC("minor"),tickwidth:MC("minor"),tickcolor:TC,gridcolor:kC,gridwidth:CC("minor"),griddash:DC,showgrid:SC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Ip=ae((a3e,PC)=>{"use strict";var qa=Nl(),LC=vi(),qC=_n().extendFlat,_ee=Ho().overrideAll;PC.exports=_ee({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:qa.linecolor,outlinewidth:qa.linewidth,bordercolor:qa.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:qa.minor.tickmode,nticks:qa.nticks,tick0:qa.tick0,dtick:qa.dtick,tickvals:qa.tickvals,ticktext:qa.ticktext,ticks:qC({},qa.ticks,{dflt:""}),ticklabeloverflow:qC({},qa.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:qa.ticklen,tickwidth:qa.tickwidth,tickcolor:qa.tickcolor,ticklabelstep:qa.ticklabelstep,showticklabels:qa.showticklabels,labelalias:qa.labelalias,tickfont:LC({description:"Sets the color bar's tick label font"}),tickangle:qa.tickangle,tickformat:qa.tickformat,tickformatstops:qa.tickformatstops,tickprefix:qa.tickprefix,showtickprefix:qa.showtickprefix,ticksuffix:qa.ticksuffix,showticksuffix:qa.showticksuffix,separatethousands:qa.separatethousands,exponentformat:qa.exponentformat,minexponent:qa.minexponent,showexponent:qa.showexponent,title:{text:{valType:"string"},font:LC({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var O1=ae((i3e,zC)=>{"use strict";var xee=Ip(),wee=(M1(),ei(A1)).counter,Aee=(mp(),ei(pp)).default,RC=Nf().scales,n3e=Aee(RC);function Hp(e){return"`"+e+"`"}zC.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"?RC[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+Hp(s+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",m=a+"min",p=a+"max",y=a+"mid",b=Hp(s+d),C=Hp(s+m),x=Hp(s+p),_=C+" and "+x,A={};A[m]=A[p]=void 0;var T={};T[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[m]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:T},M[p]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:T},M[y]={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=xee),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:wee("coloraxis"),dflt:null,editType:"calc"}),M}});var O5=ae((o3e,NC)=>{"use strict";var Mee=_n().extendFlat,Tee=O1(),H5=Nf().scales;NC.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:H5.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:H5.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:H5.RdBu,editType:"calc"}},coloraxis:Mee({_isSubplotObj:!0,editType:"calc"},Tee("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var U5=ae((l3e,BC)=>{"use strict";var kee=mr();BC.exports=function(r){return kee.isPlainObject(r.colorbar)}});var V5=ae(Y5=>{"use strict";var G5=Wt(),IC=mr(),HC=Oa(),Cee=HC.ONEDAY,Dee=HC.ONEWEEK;Y5.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Cee:1;if(!e)return i;if(G5(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=G5(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};Y5.tick0=function(e,r,t,a){if(r==="date")return IC.cleanDate(e,IC.dateTick0(t,a%Dee===0?1:0));if(!(a==="D1"||a==="D2"))return G5(e)?Number(e):0}});var X5=ae((s3e,UC)=>{"use strict";var OC=V5(),See=mr().isArrayOrTypedArray,Fee=Vi().isTypedArraySpec,Eee=Vi().decodeTypedArraySpec;UC.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,u=o?t.minor:t,s=o?"minor.":"";function f(_){var A=l[_];return Fee(A)&&(A=Eee(A)),A!==void 0?A:(u._template||{})[_]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),m=f("overlaying"),p=n==="category"||n==="multicategory",y;See(d)?y="array":h?y="linear":m&&!p?y="sync":y="auto";var b=a(s+"tickmode",y);if(b==="auto"||b==="sync")a(s+"nticks");else if(b==="linear"){var C=u.dtick=OC.dtick(h,n);u.tick0=OC.tick0(c,n,t.calendar,C)}else if(n!=="multicategory"){var x=a(s+"tickvals");x===void 0?u.tickmode="auto":o||a("ticktext")}}});var j5=ae((f3e,YC)=>{"use strict";var W5=mr(),GC=Nl();YC.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,u=i?GC.minor:GC,s=i?"minor.":"",f=W5.coerce2(o,l,u,"ticklen",i?(t.ticklen||5)*.6:void 0),c=W5.coerce2(o,l,u,"tickwidth",i?t.tickwidth||1:void 0),h=W5.coerce2(o,l,u,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(s+"ticks",!i&&n.outerTicks||f||c||h?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var Z5=ae((c3e,VC)=>{"use strict";VC.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 Bl=ae((v3e,XC)=>{"use strict";var Op=mr(),Lee=Ta();XC.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=Op.isArrayOrTypedArray(r[n])?r[n]:[],u=t[n]=[],s=Lee.arrayTemplater(t,n,i),f,c;for(f=0;f<l.length;f++){var h=l[f];Op.isPlainObject(h)?c=s.newItem(h):(c=s.newItem({}),c[i]=!1),c._index=f,c[i]!==!1&&a.handleItemDefaults(h,c,t,a),u.push(c)}var d=s.defaultItems();for(f=0;f<d.length;f++)c=d[f],c._index=u.length,a.handleItemDefaults({},c,t,a,{}),u.push(c);if(Op.isArrayOrTypedArray(o)){var m=Math.min(o.length,u.length);for(f=0;f<m;f++)Op.relinkPrivateKeys(u[f],o[f])}return u}});var $5=ae((h3e,jC)=>{"use strict";var J5=mr(),qee=Lt().contrast,WC=Nl(),Pee=Z5(),Ree=Bl();jC.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");J5.isPlainObject(o)||delete t.labelalias;var l=Pee(r),u=a("showticklabels");if(u){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var s=i.font||{},f=t.color,c=t.ticklabelposition||"",h=c.indexOf("inside")!==-1?qee(i.bgColor):f&&f!==WC.color.dflt?f:s.color;if(J5.coerceFont(a,"tickfont",s,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var m=a("tickformat");Ree(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:zee}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function zee(e,r){function t(n,i){return J5.coerce(e,r,WC.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var K5=ae((d3e,ZC)=>{"use strict";var Nee=Z5();ZC.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Nee(r),u=a("tickprefix");u&&a("showtickprefix",l);var s=a("ticksuffix",o);s&&a("showticksuffix",l)}});var Q5=ae((p3e,JC)=>{"use strict";var w0=mr(),Bee=Ta(),Iee=X5(),Hee=j5(),Oee=$5(),Uee=K5(),Gee=Ip();JC.exports=function(r,t,a){var n=Bee.newContainer(t,"colorbar"),i=r.colorbar||{};function o(B,X){return w0.coerce(i,n,Gee,B,X)}var l=a.margin||{t:0,b:0,l:0,r:0},u=a.width-l.l-l.r,s=a.height-l.t-l.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?u:s):30);var d=o("lenmode");o("len",d==="fraction"?1:c?s:u);var m=o("yref"),p=o("xref"),y=m==="paper",b=p==="paper",C,x,_,A="left";c?(_="middle",A=b?"left":"right",C=b?1.02:1,x=.5):(_=y?"bottom":"top",A="center",C=.5,x=y?1.02:1),w0.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:C}},"x"),w0.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"y"),o("xanchor",A),o("xpad"),o("yanchor",_),o("ypad"),w0.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var T=w0.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"),Iee(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"),Uee(i,n,o,"linear",E),Oee(i,n,o,"linear",E),Hee(i,n,o,"linear",E),o("title.text",a._dfltTitle.colorbar);var P=n.showticklabels?n.tickfont:M,z=w0.extendFlat({},M,{family:P.family,size:w0.bigFont(P.size)});w0.coerceFont(o,"title.font",z),o("title.side",c?"top":"right")}});var U1=ae((m3e,QC)=>{"use strict";var $C=Wt(),r6=mr(),Yee=U5(),Vee=Q5(),KC=Nf().isValid,Xee=bt().traceIs;function e6(e,r){var t=r.slice(0,r.length-1);return r?r6.nestedProperty(e,t).get()||{}:e}QC.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,u="_module"in t,s=e6(r,o),f=e6(t,o),c=e6(t._template||{},o)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(u){var d=a._colorAxes||{},m=n(o+"coloraxis");if(m){var p=Xee(t,"contour")&&r6.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,r6.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[p,t,[h]];return}}var b=s[l+"min"],C=s[l+"max"],x=$C(b)&&$C(C)&&b<C,_=n(o+l+"auto",!x);_?n(o+l+"mid"):(n(o+l+"min"),n(o+l+"max"));var A=s.colorscale,T=c.colorscale,M;if(A!==void 0&&(M=!KC(A)),T!==void 0&&(M=!KC(T)),n(o+"autocolorscale",M),n(o+"colorscale"),n(o+"reversescale"),o!=="marker.line."){var E;o&&u&&(E=Yee(s));var P=n(o+"showscale",E);P&&(o&&c&&(f._template=c),Vee(s,f,a))}}});var aD=ae((g3e,tD)=>{"use strict";var eD=mr(),Wee=Ta(),rD=O5(),jee=U1();tD.exports=function(r,t){function a(c,h){return eD.coerce(r,t,rD,c,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,h){return eD.coerce(i,o,rD.coloraxis,c,h)}for(var u in n){var s=n[u];if(s[0])i=r[u]||{},o=Wee.newContainer(t,u,"coloraxis"),o._name=u,jee(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f<s[2].length;f++)s[2][f]();delete t._colorAxes[u]}}}});var iD=ae((y3e,nD)=>{"use strict";var Zee=mr(),Jee=Tu().hasColorscale,$ee=Tu().extractOpts;nD.exports=function(r,t){function a(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?Zee.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=$ee(h),m=d.auto;(m||d.min===void 0)&&a(h,c.min),(m||d.max===void 0)&&a(h,c.max),d.autocolorscale&&a(h,"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 u=0;u<l.length;u++)n(o,l[u]);else n(o,l);Jee(o,"marker.line")&&n(o,{container:"marker.line",min:"cmin",max:"cmax"})}for(var s in t._colorAxes)n(t[s],{min:"cmin",max:"cmax"})}});var Up=ae((b3e,lD)=>{"use strict";var oD=Wt(),t6=mr(),Kee=Tu().extractOpts;lD.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?t6.nestedProperty(t,o).get():t,u=Kee(l),s=u.auto!==!1,f=u.min,c=u.max,h=u.mid,d=function(){return t6.aggNums(Math.min,null,i)},m=function(){return t6.aggNums(Math.max,null,i)};if(f===void 0?f=d():s&&(l._colorAx&&oD(f)?f=Math.min(f,d()):f=d()),c===void 0?c=m():s&&(l._colorAx&&oD(c)?c=Math.max(c,m()):c=m()),s&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h<h-f&&(c=h+(h-f))),f===c&&(f-=.5,c+=.5),u._sync("min",f),u._sync("max",c),u.autocolorscale){var p;f*c<0?p=n.colorscale.diverging:f>=0?p=n.colorscale.sequential:p=n.colorscale.sequentialminus,u._sync("colorscale",p)}}});var Yp=ae((_3e,uD)=>{"use strict";var Gp=Nf(),G1=Tu();uD.exports={moduleType:"component",name:"colorscale",attributes:O1(),layoutAttributes:O5(),supplyLayoutDefaults:aD(),handleDefaults:U1(),crossTraceDefaults:iD(),calc:Up(),scales:Gp.scales,defaultScale:Gp.defaultScale,getScale:Gp.get,isValidScale:Gp.isValid,hasColorscale:G1.hasColorscale,extractOpts:G1.extractOpts,extractScale:G1.extractScale,flipScale:G1.flipScale,makeColorScaleFunc:G1.makeColorScaleFunc,makeColorScaleFuncFromTrace:G1.makeColorScaleFuncFromTrace}});var pi=ae((x3e,fD)=>{"use strict";var sD=mr(),Qee=Vi().isTypedArraySpec;fD.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 sD.isPlainObject(r)&&(sD.isArrayOrTypedArray(r.size)||Qee(r.size))}}});var vD=ae((w3e,cD)=>{"use strict";var ere=Wt();cD.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 u=o(l/t);return ere(u)&&u>0?Math.max(u,i):0}}});var Fs=ae(jn=>{"use strict";var zv=mr();jn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};jn.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(jn.getSubplot(e))!==-1};jn.flat=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=r;return t};jn.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};jn.c2dApply=function(e,r){e.length!==r.length&&zv.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};jn.getDistanceFunction=function(e,r,t,a){return e==="closest"?a||jn.quadrature(r,t):e.charAt(0)==="x"?r:t};jn.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};jn.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};jn.quadrature=function(e,r){return function(t){var a=e(t),n=r(t);return Math.sqrt(a*a+n*n)}};jn.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)),jn.appendArrayPointValue(n,r,a),n};jn.appendArrayPointValue=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=hD(i);if(e[o]===void 0){var l=zv.nestedProperty(r,i).get(),u=dD(l,t);u!==void 0&&(e[o]=u)}}};jn.appendArrayMultiPointValues=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=hD(i);if(e[o]===void 0){for(var l=zv.nestedProperty(r,i).get(),u=new Array(t.length),s=0;s<t.length;s++)u[s]=dD(l,t[s]);e[o]=u}}};var rre={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function hD(e){return rre[e]||e}function dD(e,r){if(Array.isArray(r)){if(zv.isArrayOrTypedArray(e)&&zv.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var tre={x:!0,y:!0},are={"x unified":!0,"y unified":!0};jn.isUnifiedHover=function(e){return typeof e!="string"?!1:!!are[e]};jn.isXYhover=function(e){return typeof e!="string"?!1:!!tre[e]}});var n6=ae((M3e,pD)=>{var a6={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},nre=/([astvzqmhlc])([^astvzqmhlc]*)/gi,ire=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function ore(e){let r=[];return e.replace(nre,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=lre(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===a6[i])return r.push([o,...l]),"";if(l.length<a6[i])throw new Error("malformed path data");r.push([o,...l.splice(0,a6[i])])}}),r}function lre(e){let r=e.match(ire);return r?r.map(Number):[]}pD.exports=ore});var wD=ae((T3e,xD)=>{"use strict";var ure=n6(),Dr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},xt="M0,0Z",mD=Math.sqrt(2),A0=Math.sqrt(3),i6=Math.PI,o6=Math.cos,l6=Math.sin;xD.exports={circle:{n:0,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?At(r,t,n):n}},square:{n:1,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e,2);return At(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*1.3,2);return At(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*.4,2),n=Dr(e*1.2,2);return At(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(wt(r))return xt;var a=Dr(e*.8/mD,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return At(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(wt(r))return xt;var a=Dr(e*2/A0,2),n=Dr(e/2,2),i=Dr(e,2);return At(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*2/A0,2),n=Dr(e/2,2),i=Dr(e,2);return At(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*2/A0,2),n=Dr(e/2,2),i=Dr(e,2);return At(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*2/A0,2),n=Dr(e/2,2),i=Dr(e,2);return At(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return At(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return At(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return At(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return At(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*.951,2),n=Dr(e*.588,2),i=Dr(-e,2),o=Dr(e*-.309,2),l=Dr(e*.809,2);return At(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(wt(r))return xt;var a=Dr(e,2),n=Dr(e/2,2),i=Dr(e*A0/2,2);return At(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(wt(r))return xt;var a=Dr(e,2),n=Dr(e/2,2),i=Dr(e*A0/2,2);return At(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(wt(r))return xt;var a=Dr(e*.924,2),n=Dr(e*.383,2);return At(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(wt(r))return xt;var a=e*1.4,n=Dr(a*.225,2),i=Dr(a*.951,2),o=Dr(a*.363,2),l=Dr(a*.588,2),u=Dr(-a,2),s=Dr(a*-.309,2),f=Dr(a*.118,2),c=Dr(a*.809,2),h=Dr(a*.382,2);return At(r,t,"M"+n+","+s+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+h+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+s+"H-"+n+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*.66,2),n=Dr(e*.38,2),i=Dr(e*.76,2);return At(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(wt(r))return xt;var a=Dr(e*A0*.8,2),n=Dr(e*.8,2),i=Dr(e*1.6,2),o=Dr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return At(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(wt(r))return xt;var a=Dr(e*A0*.8,2),n=Dr(e*.8,2),i=Dr(e*1.6,2),o=Dr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return At(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(wt(r))return xt;var a=Dr(e*1.1,2),n=Dr(e*2,2),i="A "+n+","+n+" 0 0 1 ";return At(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(wt(r))return xt;var a=Dr(e*1.4,2),n=Dr(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return At(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(wt(r))return xt;var a=Dr(e*.7,2),n=Dr(e*1.4,2);return At(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*1.4,2),n=Dr(e*.7,2);return At(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e,2);return At(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e,2);return At(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(wt(r))return xt;var a=Dr(e,2);return At(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(wt(r))return xt;var a=Dr(e,2),n=Dr(e/mD,2);return At(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(wt(r))return xt;var a=Dr(e,2);return At(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(wt(r))return xt;var a=Dr(e,2);return At(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(wt(r))return xt;var a=Dr(e*1.3,2);return At(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(wt(r))return xt;var a=Dr(e*1.3,2),n=Dr(e*.65,2);return At(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(wt(r))return xt;var a=Dr(e*1.4,2);return At(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(wt(r))return xt;var a=Dr(e,2);return At(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(wt(r))return xt;var a=Dr(e*1.2,2),n=Dr(e*.85,2);return At(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(wt(r))return xt;var a=Dr(e/2,2),n=Dr(e,2);return At(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(wt(r))return xt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return At(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(wt(r))return xt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return At(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(wt(r))return xt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return At(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(wt(r))return xt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return At(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(wt(r))return xt;var a=Dr(e*1.4,2);return At(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*1.4,2);return At(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e,2);return At(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e,2);return At(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e,2),n=Dr(e*2,2);return At(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e,2),n=Dr(e*2,2);return At(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*2,2),n=Dr(e,2);return At(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e*2,2),n=Dr(e,2);return At(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(wt(r))return xt;var a=Dr(e,2),n=Dr(e*2,2);return At(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(wt(r))return xt;var a=Dr(e,2),n=Dr(e*2,2);return At(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(wt(r))return xt;var a=Dr(e*2,2),n=Dr(e,2);return At(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(wt(r))return xt;var a=Dr(e*2,2),n=Dr(e,2);return At(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(wt(r))return xt;var a=i6/2.5,n=2*e*o6(a),i=2*e*l6(a);return At(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(wt(r))return xt;var a=i6/4,n=2*e*o6(a),i=2*e*l6(a);return At(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function wt(e){return e===null}var gD,yD,bD,_D;function At(e,r,t){if((!e||e%360===0)&&!r)return t;if(bD===e&&_D===r&&gD===t)return yD;bD=e,_D=r,gD=t;function a(y,b){var C=o6(y),x=l6(y),_=b[0],A=b[1]+(r||0);return[_*C-A*x,_*x+A*C]}for(var n=e/180*i6,i=0,o=0,l=ure(t),u="",s=0;s<l.length;s++){var f=l[s],c=f[0],h=i,d=o;if(c==="M"||c==="L")i=+f[1],o=+f[2];else if(c==="m"||c==="l")i+=+f[1],o+=+f[2];else if(c==="H")i=+f[1];else if(c==="h")i+=+f[1];else if(c==="V")o=+f[1];else if(c==="v")o+=+f[1];else if(c==="A"){i=+f[1],o=+f[2];var m=a(n,[+f[6],+f[7]]);f[6]=m[0],f[7]=m[1],f[3]=+f[3]+e}(c==="H"||c==="V")&&(c="L"),(c==="h"||c==="v")&&(c="l"),(c==="m"||c==="l")&&(i-=h,o-=d);var p=a(n,[i,o]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=p[0],f[2]=p[1]),f[0]=c,u+=f[0]+f.slice(1).join(",")}return yD=u,u}});var va=ae((k3e,UD)=>{"use strict";var Ln=St(),ca=mr(),sre=ca.numberFormat,M0=Wt(),Xp=bt(),Tn=Lt(),fre=Yp(),Bv=ca.strTranslate,Wp=ai(),cre=Wf(),vre=ti(),hre=vre.LINE_SPACING,LD=rp().DESELECTDIM,dre=pi(),pre=vD(),mre=Fs().appendArrayPointValue,zr=UD.exports={};zr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Tn.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",u6(yre(f))),u&&e.style("text-shadow",u==="auto"?Wp.makeTextShadow(Tn.contrast(i)):u6(u)),s&&e.style("text-decoration-line",u6(bre(s)))};function u6(e){return e==="none"?void 0:e}var gre={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function yre(e){return gre[e]}function bre(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(M0(n)&&M0(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Bv(n,i));else return!1;return!0};zr.translatePoints=function(e,r,t){e.each(function(a){var n=Ln.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,u=Xp.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){zr.hideOutsideRangePoint(s,Ln.select(this),t,a,o,l)})})}};zr.crispRound=function(e,r,t){return!r||!M0(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||"";Tn.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||"";Ln.select(this).call(Tn.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 qD(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 u=o(n.bgcolor,0,null),s=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),h=o(n.solidity,0,.3),d=r.uid;zr.pattern(e,"point",t,d,l,c,h,void 0,n.fillmode,u,s,f)}else if(i&&i.type!=="none"){var m=i.type,p="scatterfill-"+r.uid;if(a&&(p="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;m==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(zD,t,p,"linear",i.colorscale,"fill",y,b,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(zr.gradient,t,p,m,i.colorscale,"fill")}else r.fillcolor&&e.call(Tn.fill,r.fillcolor)}zr.singleFillStyle=function(e,r){var t=Ln.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};qD(e,n,r,!1)};zr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Ln.select(this);a[0].trace&&qD(n,a[0].trace,r,t)})};var AD=wD();zr.symbolNames=[];zr.symbolFuncs=[];zr.symbolBackOffs=[];zr.symbolNeedLines={};zr.symbolNoDot={};zr.symbolNoFill={};zr.symbolList=[];Object.keys(AD).forEach(function(e){var r=AD[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 _re=zr.symbolNames.length,xre="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";zr.symbolNumber=function(e){if(M0(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>=_re||e>=400?0:Math.floor(Math.max(e,0))};function PD(e,r,t,a){var n=e%100;return zr.symbolFuncs[n](r,t,a)+(e>=200?xre:"")}var MD=sre("~f"),RD={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=RD[a];return zD(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function zD(e,r,t,a,n,i,o,l,u,s){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:a==="radial"&&(c={node:"radialGradient",reversed:s});for(var h=new Array(f),d=0;d<f;d++)c.reversed?h[f-1-d]=[MD((1-n[d][0])*100),n[d][1]]:h[d]=[MD(n[d][0]*100),n[d][1]];var m=r._fullLayout,p="g"+m._uid+"-"+t,y=m._defs.select(".gradients").selectAll("#"+p).data([a+h.join(";")],ca.identity);y.exit().remove(),y.enter().append(c.node).each(function(){var b=Ln.select(this);c.attrs&&b.attr(c.attrs),b.attr("id",p);var C=b.selectAll("stop").data(h);C.exit().remove(),C.enter().append("stop"),C.each(function(x){Ln.select(this).attr({offset:x[0]+"%","stop-color":Tn.rgb(x[1]),"stop-opacity":Tn.parse(x[1]).alpha})})}),e.style(i,h6(p,r)).style(i+"-opacity",null),e.classed("gradient_filled",!0)}zr.pattern=function(e,r,t,a,n,i,o,l,u,s,f,c){var h=r==="legend";l&&(u==="overlay"?(s=l,f=Tn.contrast(s)):(s=void 0,f=l));var d=t._fullLayout,m="p"+d._uid+"-"+a,p,y,b=function(X,H,V,I,Q){return I+(Q-I)*(X-H)/(V-H)},C,x,_,A,T={},M=Tn.rgb(f),E=Tn.parse(f).alpha,P=c*E;switch(n){case"/":p=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M-"+p/4+","+y/4+"l"+p/2+",-"+y/2+"M0,"+y+"L"+p+",0M"+p/4*3+","+y/4*5+"l"+p/2+",-"+y/2,x=o*i,A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case"\\":p=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M"+p/4*3+",-"+y/4+"l"+p/2+","+y/2+"M0,0L"+p+","+y+"M-"+p/4+","+y/4*3+"l"+p/2+","+y/2,x=o*i,A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case"x":p=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M-"+p/4+","+y/4+"l"+p/2+",-"+y/2+"M0,"+y+"L"+p+",0M"+p/4*3+","+y/4*5+"l"+p/2+",-"+y/2+"M"+p/4*3+",-"+y/4+"l"+p/2+","+y/2+"M0,0L"+p+","+y+"M-"+p/4+","+y/4*3+"l"+p/2+","+y/2,x=i-i*Math.sqrt(1-o),A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case"|":p=i,y=i,A="path",C="M"+p/2+",0L"+p/2+","+y,x=o*i,A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case"-":p=i,y=i,A="path",C="M0,"+y/2+"L"+p+","+y/2,x=o*i,A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case"+":p=i,y=i,A="path",C="M"+p/2+",0L"+p/2+","+y+"M0,"+y/2+"L"+p+","+y/2,x=i-i*Math.sqrt(1-o),A="path",T={d:C,opacity:P,stroke:M,"stroke-width":x+"px"};break;case".":p=i,y=i,o<Math.PI/4?_=Math.sqrt(o*i*i/Math.PI):_=b(o,Math.PI/4,1,i/2,i/Math.sqrt(2)),A="circle",T={cx:p/2,cy:y/2,r:_,opacity:P,fill:M};break;default:p=i,y=i,A="path",T={d:n,opacity:P,fill:M};break}var z=[n||"noSh",s||"noBg",f||"noFg",i,o].join(";"),B=d._defs.select(".patterns").selectAll("#"+m).data([z],ca.identity);B.exit().remove(),B.enter().append("pattern").each(function(){var X=Ln.select(this);if(X.attr({id:m,width:p+"px",height:y+"px",patternUnits:"userSpaceOnUse",patternTransform:h?"scale(0.8)":""}),s){var H=Tn.rgb(s),V=Tn.parse(s).alpha,I=X.selectAll("rect").data([0]);I.exit().remove(),I.enter().append("rect").attr({width:p+"px",height:y+"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",h6(m,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};zr.initGradients=function(e){var r=e._fullLayout,t=ca.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),Ln.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};zr.initPatterns=function(e){var r=e._fullLayout,t=ca.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),Ln.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};zr.getPatternAttr=function(e,r,t){return e&&ca.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,Ln.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 u;e.ms==="various"||o.size==="various"?u=3:u=a.ms2mrc(e.ms),e.mrc=u,a.selectedSizeFn&&(u=e.mrc=a.selectedSizeFn(e));var s=zr.symbolNumber(e.mx||o.symbol)||0;e.om=s%200>=100;var f=p6(e,t),c=d6(e,t);r.attr("d",PD(s,u,f,c))}var h=!1,d,m,p;if(e.so)p=l.outlierwidth,m=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;p=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=a.lineScale(e.mlc):ca.isArrayOrTypedArray(l.color)?m=Tn.defaultLine:m=l.color,ca.isArrayOrTypedArray(o.color)&&(d=Tn.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&&zr.dashLine(r,b,p),e.om)r.call(Tn.stroke,d).style({"stroke-width":(p||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:p)+"px");var C=o.gradient,x=e.mgt;x?h=!0:x=C&&C.type,ca.isArrayOrTypedArray(x)&&(x=x[0],RD[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?h=!0:M=C.color;var E=t.uid;h&&(E+="-"+e.i),zr.gradient(r,n,E,x,[[0,M],[1,d]],"fill")}else if(T){var P=!1,z=_.fgcolor;!z&&i&&i.color&&(z=i.color,P=!0);var B=A(z,e.i,i&&i.color||null),X=A(_.bgcolor,e.i,null),H=_.fgopacity,V=A(_.size,e.i,8),I=A(_.solidity,e.i,.3);P=P||e.mcc||ca.isArrayOrTypedArray(_.shape)||ca.isArrayOrTypedArray(_.path)||ca.isArrayOrTypedArray(_.bgcolor)||ca.isArrayOrTypedArray(_.fgcolor)||ca.isArrayOrTypedArray(_.size)||ca.isArrayOrTypedArray(_.solidity);var Q=t.uid;P&&(Q+="-"+e.i),zr.pattern(r,"point",n,Q,T,V,I,e.mcc,_.fillmode,X,B,H)}else ca.isArrayOrTypedArray(d)?Tn.fill(r,d[e.i]):Tn.fill(r,d);p&&Tn.stroke(r,m)}};zr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=zr.tryColorscale(t,""),r.lineScale=zr.tryColorscale(t,"line"),Xp.traceIs(e,"symbols")&&(r.ms2mrc=dre.isBubble(e)?pre(e):function(){return(t.size||6)/2}),e.selectedpoints&&ca.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,u=i.opacity,s=o.opacity,f=u!==void 0,c=s!==void 0;(ca.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(_){var A=_.mo===void 0?n.opacity:_.mo;return _.selected?f?u:A:c?s:LD*A});var h=n.color,d=i.color,m=o.color;(d||m)&&(r.selectedColorFn=function(_){var A=_.mcc||h;return _.selected?d||A:m||A});var p=n.size,y=i.size,b=o.size,C=y!==void 0,x=b!==void 0;return Xp.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(_){var A=_.mrc||p/2;return _.selected?C?y/2:A:x?b/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,u=i.color,s=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?u||c:s||(u?c:Tn.addOpacity(c,LD))},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){Tn.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,u=t.selectedSizeFn(o);i.attr("d",PD(zr.symbolNumber(l),u,p6(o,r),d6(o,r))),o.mrc2=u}),n.length&&e.each(function(i){for(var o=Ln.select(this),l=0;l<n.length;l++)n[l](o,i)})}};zr.tryColorscale=function(e,r){var t=r?ca.nestedProperty(e,r).get():e;if(t){var a=t.color;if((t.colorscale||t._colorAx)&&ca.isArrayOrTypedArray(a))return fre.makeColorScaleFuncFromTrace(t)}return ca.identity};var s6={start:1,end:-1,middle:0,bottom:1,top:-1};function ND(e,r,t,a,n){var i=Ln.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",u=a?a/.8+1:0,s=(Wp.lineCount(e)-1)*hre+1,f=s6[l]*u,c=t*.75+s6[o]*u+(s6[o]-1)*s*t/2;e.attr("text-anchor",l),n||i.attr("transform",Bv(f,c))}function BD(e,r){var t=e.ts||r.textfont.size;return M0(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 u=Ln.select(this),s=i?ca.extractOption(l,r,"txt","texttemplate"):ca.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},h={};mre(h,r,l.i),s=ca.texttemplateString({data:[h,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:s})}var d=l.tp||r.textposition,m=BD(l,r),p=a?a(l):l.tc||r.textfont.color;u.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:m,color:p}).text(s).call(Wp.convertToTspans,t).call(ND,d,m,l.mrc)})}};zr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=zr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Ln.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=BD(a,r);Tn.fill(n,i);var u=Xp.traceIs(r,"bar-like");ND(n,o,l,a.mrc2||a.mrc,u)})}};var TD=.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(Vp(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=[Vp(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push(Vp(e[i-1],e[i],e[i+1],r));for(n.push(Vp(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 ID,HD;function Y1(e,r,t){return t&&(e=OD(e)),r?Kf(e[1]):$f(e[0])}function $f(e){var r=Ln.round(e,2);return ID=r,r}function Kf(e){var r=Ln.round(e,2);return HD=r,r}function Vp(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],u=Math.pow(n*n+i*i,TD/2),s=Math.pow(o*o+l*l,TD/2),f=(s*s*n-u*u*o)*a,c=(s*s*i-u*u*l)*a,h=3*s*(u+s),d=3*u*(u+s);return[[$f(r[0]+(h&&f/h)),Kf(r[1]+(h&&c/h))],[$f(r[0]-(d&&f/d)),Kf(r[1]-(d&&c/d))]]}var wre={hv:function(e,r,t){return"H"+$f(r[0])+"V"+Y1(r,1,t)},vh:function(e,r,t){return"V"+Kf(r[1])+"H"+Y1(r,0,t)},hvh:function(e,r,t){return"H"+$f((e[0]+r[0])/2)+"V"+Kf(r[1])+"H"+Y1(r,0,t)},vhv:function(e,r,t){return"V"+Kf((e[1]+r[1])/2)+"H"+$f(r[0])+"V"+Y1(r,1,t)}},Are=function(e,r,t){return"L"+Y1(r,0,t)+","+Y1(r,1,t)};zr.steps=function(e){var r=wre[e]||Are;return function(t){for(var a="M"+$f(t[0][0])+","+Kf(t[0][1]),n=t.length,i=1;i<n;i++)a+=r(t[i-1],t[i],i===n-1);return a}};function OD(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=ca.isArrayOrTypedArray(t),l=e,u=r?r[0]:ID||0,s=r?r[1]:HD||0,f=l[0],c=l[1],h=f-u,d=c-s,m=Math.atan2(d,h),p=o?t[i]:t;if(p==="auto"){var y=l.i;a.type==="scatter"&&y--;var b=l.marker,C=b.symbol;ca.isArrayOrTypedArray(C)&&(C=C[y]);var x=b.size;ca.isArrayOrTypedArray(x)&&(x=x[y]),p=b?zr.symbolBackOffs[zr.symbolNumber(C)]*x:0,p+=zr.getMarkerStandoff(n[y],a)||0}var _=f-p*Math.cos(m),A=c-p*Math.sin(m);(_<=f&&_>=u||_>=f&&_<=u)&&(A<=c&&A>=s||A>=c&&A<=s)&&(e=[_,A])}return e}zr.applyBackoff=OD;zr.makeTester=function(){var e=ca.ensureSingleById(Ln.select("body"),"svg","js-plotly-tester",function(t){t.attr(cre.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=ca.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 f6=0,Mre=1e4;zr.bBox=function(e,r,t){t||(t=kD(e));var a;if(t){if(a=zr.savedBBoxes[t],a)return ca.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=kD(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var u=zr.bBox(n,!1,t);return i&&(u.left+=i,u.right+=i),o&&(u.top+=o,u.bottom+=o),u}if(t+="~"+i+"~"+o+"~"+l,a=zr.savedBBoxes[t],a)return ca.extendFlat({},a)}}var s,f;r?s=e:(f=zr.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),Ln.select(s).attr("transform",null).call(Wp.positionText,0,0);var c=s.getBoundingClientRect(),h=zr.testref.node().getBoundingClientRect();r||f.removeChild(s);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return f6>=Mre&&(zr.savedBBoxes={},f6=0),t&&(zr.savedBBoxes[t]=d),f6++,ca.extendFlat({},d)};function kD(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",h6(r,t))};function h6(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+=Bv(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 Tre=/\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(Tre,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var kre=/translate\([^)]*\)\s*$/;zr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Ln.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),u=(n.attr("transform")||"").match(kre);r===1&&t===1?a=[]:a=[Bv(o,l),"scale("+r+","+t+")",Bv(-o,-l)],u&&a.push(u),n.attr("transform",a.join(""))}})};function d6(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=d6;var Nv=Math.atan2,Jf=Math.cos,V1=Math.sin;function CD(e,r){var t=r[0],a=r[1];return[t*Jf(e)-a*V1(e),t*V1(e)+a*Jf(e)]}var DD,SD,FD,ED,c6,v6;function p6(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!M0(t)||ca.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,u=r._yA;if(l&&u)a=l.c2p(e.x),n=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([s,f+1e-5]),h=r._geo.project([s+1e-5,f]),d=Nv(h[1]-n,h[0]-a),m=Nv(c[1]-n,c[0]-a),p;if(i==="north")p=t/180*Math.PI;else if(i==="previous"){var y=s/180*Math.PI,b=f/180*Math.PI,C=DD/180*Math.PI,x=SD/180*Math.PI,_=C-y,A=Jf(x)*V1(_),T=V1(x)*Jf(b)-Jf(x)*V1(b)*Jf(_);p=-Nv(A,T)-Math.PI,DD=s,SD=f}var M=CD(d,[Jf(p),0]),E=CD(m,[V1(p),0]);t=Nv(M[1]+E[1],M[0]+E[0])/Math.PI*180,i==="previous"&&!(v6===r.uid&&e.i===c6+1)&&(t=null)}if(i==="previous"&&!r._geo)if(v6===r.uid&&e.i===c6+1&&M0(a)&&M0(n)){var P=a-FD,z=n-ED,B=r.line&&r.line.shape||"",X=B.slice(B.length-1);X==="h"&&(z=0),X==="v"&&(P=0),t+=Nv(z,P)/Math.PI*180+90}else t=null}return FD=a,ED=n,c6=e.i,v6=r.uid,t}zr.getMarkerAngle=p6});var Iv=ae((C3e,XD)=>{"use strict";var X1=St(),Cre=Wt(),Dre=An(),m6=bt(),Qf=mr(),GD=Qf.strTranslate,jp=va(),Zp=Lt(),W1=ai(),YD=rp(),Sre=ti().OPPOSITE_SIDE,VD=/ [XY][0-9]* /,g6=1.6,y6=1.6;function Fre(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,c=t.containerGroup,h=1,d=n.title,m=(d&&d.text?d.text:"").trim(),p=!1,y=d&&d.font?d.font:{},b=y.family,C=y.size,x=y.color,_=y.weight,A=y.style,T=y.variant,M=y.textcase,E=y.lineposition,P=y.shadow,z=t.subtitlePropName,B=!!z,X=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},V=(H.text||"").trim(),I=!1,Q=1,le=H.font,re=le.family,te=le.size,oe=le.color,ce=le.weight,Me=le.style,Se=le.variant,Ie=le.textcase,Ue=le.lineposition,ke=le.shadow,We;i==="title.text"?We="titleText":i.indexOf("axis")!==-1?We="axisTitleText":i.indexOf("colorbar")!==-1&&(We="colorbarTitleText");var j=e._context.edits[We];function ee(hr,dr){return hr===void 0||dr===void 0?!1:hr.replace(VD," % ")===dr.replace(VD," % ")}m===""?h=0:ee(m,o)&&(j||(m=""),h=.2,p=!0),B&&(V===""?Q=0:ee(V,X)&&(j||(V=""),Q=.2,I=!0)),t._meta?m=Qf.templateString(m,t._meta):a._meta&&(m=Qf.templateString(m,a._meta));var me=m||V||j,K;c||(c=Qf.ensureSingle(a._infolayer,"g","g-"+r),K=a._hColorbarMoveTitle);var $=c.selectAll("text."+r).data(me?[0]:[]);$.enter().append("text"),$.text(m).attr("class",r),$.exit().remove();var se=null,_e=r+"-subtitle",Ne=V||j;if(B&&(se=c.selectAll("text."+_e).data(Ne?[0]:[]),se.enter().append("text"),se.text(V).attr("class",_e),se.exit().remove()),!me)return c;function $e(hr,dr){Qf.syncOrAsync([ar,tr],{title:hr,subtitle:dr})}function ar(hr){var dr=hr.title,Ze=hr.subtitle,cr;!f&&K&&(f={}),f?(cr="",f.rotate&&(cr+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||K)&&(cr+=GD(0,(f.offset||0)-(K||0)))):cr=null,dr.attr("transform",cr);function Er(Be){if(Be){var Xe=X1.select(Be.node().parentNode).select("."+_e);if(!Xe.empty()){var yr=Be.node().getBBox();if(yr.height){var kr=yr.y+yr.height+g6*te;Xe.attr("y",kr)}}}}if(dr.style("opacity",h*Zp.opacity(x)).call(jp.font,{color:Zp.rgb(x),size:X1.round(C,2),family:b,weight:_,style:A,variant:T,textcase:M,shadow:P,lineposition:E}).attr(s).call(W1.convertToTspans,e,Er),Ze&&!Ze.empty()){var Te=c.select("."+r+"-math-group"),Oe=dr.node().getBBox(),Ar=Te.node()?Te.node().getBBox():void 0,Nr=Ar?Ar.y+Ar.height+g6*te:Oe.y+Oe.height+y6*te,Qe=Qf.extendFlat({},s,{y:Nr});Ze.attr("transform",cr),Ze.style("opacity",Q*Zp.opacity(oe)).call(jp.font,{color:Zp.rgb(oe),size:X1.round(te,2),family:re,weight:ce,style:Me,variant:Se,textcase:Ie,shadow:ke,lineposition:Ue}).attr(Qe).call(W1.convertToTspans,e)}return Dre.previousPromises(e)}function tr(hr){var dr=hr.title,Ze=X1.select(dr.node().parentNode);if(u&&u.selection&&u.side&&m){Ze.attr("transform",null);var cr=Sre[u.side],Er=u.side==="left"||u.side==="top"?-1:1,Te=Cre(u.pad)?u.pad:2,Oe=jp.bBox(Ze.node()),Ar={t:0,b:0,l:0,r:0},Nr=e._fullLayout._reservedMargin;for(var Qe in Nr)for(var Be in Nr[Qe]){var Xe=Nr[Qe][Be];Ar[Be]=Math.max(Ar[Be],Xe)}var yr={left:Ar.l,top:Ar.t,right:a.width-Ar.r,bottom:a.height-Ar.b},kr=u.maxShift||Er*(yr[u.side]-Oe[u.side]),pr=0;if(kr<0)pr=kr;else{var xr=u.offsetLeft||0,Pr=u.offsetTop||0;Oe.left-=xr,Oe.right-=xr,Oe.top-=Pr,Oe.bottom-=Pr,u.selection.each(function(){var Hr=jp.bBox(this);Qf.bBoxIntersect(Oe,Hr,Te)&&(pr=Math.max(pr,Er*(Hr[u.side]-Oe[cr])+Te))}),pr=Math.min(kr,pr),n._titleScoot=Math.abs(pr)}if(pr>0||kr<0){var Fr={left:[-pr,0],right:[pr,0],top:[0,-pr],bottom:[0,pr]}[u.side];Ze.attr("transform",GD(Fr[0],Fr[1]))}}}$.call($e,se);function fr(hr,dr){hr.text(dr).on("mouseover.opacity",function(){X1.select(this).transition().duration(YD.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){X1.select(this).transition().duration(YD.HIDE_PLACEHOLDER).style("opacity",0)})}if(j&&(m?$.on(".opacity",null):(fr($,o),p=!0),$.call(W1.makeEditable,{gd:e}).on("edit",function(hr){l!==void 0?m6.call("_guiRestyle",e,i,hr,l):m6.call("_guiRelayout",e,i,hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call($e)}).on("input",function(hr){this.text(hr||" ").call(W1.positionText,s.x,s.y)}),B)){if(B&&!m){var Re=$.node().getBBox(),ur=Re.y+Re.height+y6*te;se.attr("y",ur)}V?se.on(".opacity",null):(fr(se,X),I=!0),se.call(W1.makeEditable,{gd:e}).on("edit",function(hr){m6.call("_guiRelayout",e,"title.subtitle.text",hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call($e)}).on("input",function(hr){this.text(hr||" ").call(W1.positionText,se.attr("x"),se.attr("y"))})}return $.classed("js-placeholder",p),se&&!se.empty()&&se.classed("js-placeholder",I),c}XD.exports={draw:Fre,SUBTITLE_PADDING_EM:y6,SUBTITLE_PADDING_MATHJAX_EM:g6}});var am=ae((D3e,$D)=>{"use strict";var Ere=St(),Lre=s1().utcFormat,Aa=mr(),qre=Aa.numberFormat,Cu=Wt(),T0=Aa.cleanNumber,Pre=Aa.ms2DateTime,WD=Aa.dateTime2ms,Du=Aa.ensureNumber,jD=Aa.isArrayOrTypedArray,k0=Oa(),Jp=k0.FP_SAFE,Il=k0.BADNUM,Rre=k0.LOG_CLIP,zre=k0.ONEWEEK,$p=k0.ONEDAY,Kp=k0.ONEHOUR,ZD=k0.ONEMIN,JD=k0.ONESEC,Qp=wn(),tm=En(),em=tm.HOUR_PATTERN,rm=tm.WEEKDAY_PATTERN;function Hv(e){return Math.pow(10,e)}function b6(e){return e!=null}$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*Rre*Math.abs(T-M))}else return Il}function o(_,A,T,M){if((M||{}).msUTC&&Cu(_))return+_;var E=WD(_,T||r.calendar);if(E===Il)if(Cu(_)){_=+_;var P=Math.floor(Aa.mod(_+.05,1)*10),z=Math.round(_-P/10);E=WD(new Date(z))+P/10}else return Il;return E}function l(_,A,T){return Pre(_,A,T||r.calendar)}function u(_){return r._categories[Math.round(_)]}function s(_){if(b6(_)){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 Il}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 h(_){var A=c(_);if(A!==void 0)return A;if(Cu(_))return+_}function d(_){return Cu(_)?+_:c(_)}function m(_,A,T){return Ere.round(T+A*_,2)}function p(_,A,T){return(_-T)/A}var y=function(A){return Cu(A)?m(A,r._m,r._b):Il},b=function(_){return p(_,r._m,r._b)};if(r.rangebreaks){var C=n==="y";y=function(_){if(!Cu(_))return Il;var A=r._rangebreaks.length;if(!A)return m(_,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 B=M*r._rangebreaks[z].min,X=M*r._rangebreaks[z].max;if(E<B)break;if(E>X)P=z+1;else{P=E<(B+X)/2?z:z+1;break}}var H=r._B[P]||0;return isFinite(H)?m(_,r._m2,H):0},b=function(_){var A=r._rangebreaks.length;if(!A)return p(_,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 p(_,r._m2,r._B[T])}}r.c2l=r.type==="log"?i:Du,r.l2c=r.type==="log"?Hv:Du,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(_,A){return y(i(_,A))}:y,r.p2c=r.type==="log"?function(_){return Hv(b(_))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=T0,r.c2d=r.c2r=r.l2d=r.l2r=Du,r.d2p=r.r2p=function(_){return r.l2p(T0(_))},r.p2d=r.p2r=b,r.cleanPos=Du):r.type==="log"?(r.d2r=r.d2l=function(_,A){return i(T0(_),A)},r.r2d=r.r2c=function(_){return Hv(T0(_))},r.d2c=r.r2l=T0,r.c2d=r.l2r=Du,r.c2r=i,r.l2d=Hv,r.d2p=function(_,A){return r.l2p(r.d2r(_,A))},r.p2d=function(_){return Hv(b(_))},r.r2p=function(_){return r.l2p(T0(_))},r.p2r=b,r.cleanPos=Du):r.type==="date"?(r.d2r=r.r2d=Aa.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(b(_),A,T)},r.cleanPos=function(_){return Aa.cleanDate(_,Il,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var A=d(_);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=Du,r.r2l=d,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return u(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return typeof _=="string"&&_!==""?_:Du(_)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var A=h(_);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Du,r.r2l=h,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return u(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:Du(_)},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[Qp.id2name(P)];A=A.concat(z._traceIndices)}}var B=[[0,{}],[0,{}]],X=[];for(T=0;T<A.length;T++){var H=_[A[T]];if(n in H){var V=H[n],I=H._length||Aa.minRowLength(V);if(jD(V[0])&&jD(V[1]))for(M=0;M<I;M++){var Q=V[0][M],le=V[1][M];b6(Q)&&b6(le)&&(X.push([Q,le]),Q in B[0][1]||(B[0][1][Q]=B[0][0]++),le in B[1][1]||(B[1][1][le]=B[1][0]++))}}}for(X.sort(function(re,te){var oe=B[0][1],ce=oe[re[0]]-oe[te[0]];if(ce)return ce;var Me=B[1][1];return Me[re[1]]-Me[te[1]]}),T=0;T<X.length;T++)s(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=Aa.nestedProperty(r,_).get(),E=Aa.simpleMap(M,r.r2l),P=E[1]<E[0];P&&E.reverse();var z=Aa.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 B=z[0]+1;T!==void 0&&(B=Math.min(B,z[1])),M[P?0:1]=r.l2r(B)}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=Aa.nestedProperty(r,_).get(),M,E;if(r.type==="date"?E=Aa.dfltRange(r.calendar):n==="y"?E=tm.DFLTRANGEY:r._name==="realaxis"?E=[0,1]:E=A.dfltRange||tm.DFLTRANGEX,E=E.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(E[0]=0),!T||T.length!==2){Aa.nestedProperty(r,_).set(E);return}var P=T[0]===null,z=T[1]===null;for(r.type==="date"&&!r.autorange&&(T[0]=Aa.cleanDate(T[0],Il,r.calendar),T[1]=Aa.cleanDate(T[1],Il,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Aa.isDateTime(T[M],r.calendar)){r[_]=E;break}if(r.r2l(T[0])===r.r2l(T[1])){var B=Aa.constrain(r.r2l(T[0]),Aa.MIN_MS+1e3,Aa.MAX_MS-1e3);T[0]=r.l2r(B-1e3),T[1]=r.l2r(B+1e3);break}}else{if(!Cu(T[M]))if(!(P||z)&&Cu(T[1-M]))T[M]=T[1-M]*(M?10:.1);else{r[_]=E;break}if(T[M]<-Jp?T[M]=-Jp:T[M]>Jp&&(T[M]=Jp),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=Qp.getFromId({_fullLayout:t},r.overlaying);r.domain=T.domain}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),B=n==="y";if(B?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(P-z),r._b=-r._m*z):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(z-P),r._b=-r._m*P),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var X,H;if(r._rangebreaks=r.locateBreaks(Math.min(P,z),Math.max(P,z)),r._rangebreaks.length){for(X=0;X<r._rangebreaks.length;X++)H=r._rangebreaks[X],r._lBreaks+=Math.abs(H.max-H.min);var V=B;P>z&&(V=!V),V&&r._rangebreaks.reverse();var I=V?-1:1;for(r._m2=I*r._length/(Math.abs(z-P)-r._lBreaks),r._B.push(-r._m2*(B?z:P)),X=0;X<r._rangebreaks.length;X++)H=r._rangebreaks[X],r._B.push(r._B[r._B.length-1]-I*r._m2*(H.max-H.min));for(X=0;X<r._rangebreaks.length;X++)H=r._rangebreaks[X],H.pmin=y(H.min),H.pmax=y(H.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(oe){return oe.enabled&&oe.bounds?Aa.simpleMap(oe.bounds,oe.pattern?T0:r.d2c):null})),A._cachedValues||(A._cachedValues=A.map(function(oe){return oe.enabled&&oe.values?Aa.simpleMap(oe.values,r.d2c).sort(Aa.sorterAsc):null}));for(var B=0;B<A.length;B++){var X=A[B];if(X.enabled){if(X.bounds){var H=X.pattern;switch(T=A._cachedPatterns[B],M=T[0],E=T[1],H){case rm:z=new Date(_),P=z.getUTCDay(),M>E&&(E+=7,P<M&&(P+=7));break;case em:z=new Date(_);var V=z.getUTCHours(),I=z.getUTCMinutes(),Q=z.getUTCSeconds(),le=z.getUTCMilliseconds();P=V+(I/60+Q/3600+le/36e5),M>E&&(E+=24,P<M&&(P+=24));break;case"":P=_;break}if(P>=M&&P<E)return Il}else for(var re=A._cachedValues[B],te=0;te<re.length;te++)if(M=re[te],E=M+X.dvalue,_>=M&&_<E)return Il}}return _},r.locateBreaks=function(_,A){var T,M,E,P,z=[];if(!r.rangebreaks)return z;var B=r.rangebreaks.slice().sort(function(Me,Se){return Me.pattern===rm&&Se.pattern===em?-1:Se.pattern===rm&&Me.pattern===em?1:0}),X=function(Me,Se){if(Me=Aa.constrain(Me,_,A),Se=Aa.constrain(Se,_,A),Me!==Se){for(var Ie=!0,Ue=0;Ue<z.length;Ue++){var ke=z[Ue];Me<ke.max&&Se>=ke.min&&(Me<ke.min&&(ke.min=Me),Se>ke.max&&(ke.max=Se),Ie=!1)}Ie&&z.push({min:Me,max:Se})}};for(T=0;T<B.length;T++){var H=B[T];if(H.enabled)if(H.bounds){var V=_,I=A;H.pattern&&(V=Math.floor(V)),M=Aa.simpleMap(H.bounds,H.pattern?T0:r.r2l),E=M[0],P=M[1];var Q=new Date(V),le,re;switch(H.pattern){case rm:re=zre,le=((P<E?7:0)+(P-E))*$p,V+=E*$p-(Q.getUTCDay()*$p+Q.getUTCHours()*Kp+Q.getUTCMinutes()*ZD+Q.getUTCSeconds()*JD+Q.getUTCMilliseconds());break;case em:re=$p,le=((P<E?24:0)+(P-E))*Kp,V+=E*Kp-(Q.getUTCHours()*Kp+Q.getUTCMinutes()*ZD+Q.getUTCSeconds()*JD+Q.getUTCMilliseconds());break;default:V=Math.min(M[0],M[1]),I=Math.max(M[0],M[1]),re=I-V,le=re}for(var te=V;te<I;te+=re)X(te,te+le)}else for(var oe=Aa.simpleMap(H.values,r.d2c),ce=0;ce<oe.length;ce++)E=oe[ce],P=E+H.dvalue,X(E,P)}return z.sort(function(Me,Se){return Me.min-Se.min}),z},r.makeCalcdata=function(_,A,T){var M,E,P,z,B=r.type,X=B==="date"&&_[A+"calendar"];if(A in _){if(M=_[A],z=_._length||Aa.minRowLength(M),Aa.isTypedArray(M)&&(B==="linear"||B==="log")){if(z===M.length)return M;if(M.subarray)return M.subarray(0,z)}if(B==="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||Cu(r.r2l(_[0])))&&(A&&_[1]===null||Cu(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[Qp.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++)s(r._initialCategories[P])},r.sortByInitialCategories=function(){var _=[];if(r._emptyCategories(),r._initialCategories)for(var A=0;A<r._initialCategories.length;A++)s(r._initialCategories[A]);_=_.concat(r._traceIndices);var T=r._matchGroup;for(var M in T)if(a!==M){var E=t[Qp.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:Lre,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=x?x.numberFormat:qre,delete r._minDtick,delete r._forceTick0}});var x6=ae((S3e,rS)=>{"use strict";var KD=Wt(),_6=mr(),Nre=Oa().BADNUM,nm=_6.isArrayOrTypedArray,Bre=_6.isDateTime,Ire=_6.cleanNumber,QD=Math.round;rS.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(nm(n)&&!n.length)return"-";if(!i&&Yre(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;l<n.length;l++)if(nm(n[l]))for(var u=0;u<n[l].length;u++)o.push(n[l][u]);n=o}if(Ure(n,t))return"date";var s=a.autotypenumbers!=="strict";return Gre(n,s)?"category":Ore(n,s)?"linear":"-"};function Hre(e,r){return r?KD(e):typeof e=="number"}function Ore(e,r){for(var t=e.length,a=0;a<t;a++)if(Hre(e[a],r))return!0;return!1}function Ure(e,r){for(var t=e.length,a=eS(t),n=0,i=0,o={},l=0;l<t;l+=a){var u=QD(l),s=e[u],f=String(s);o[f]||(o[f]=1,Bre(s,r)&&n++,KD(s)&&i++)}return n>i*2}function eS(e){return Math.max(1,(e-1)/1e3)}function Gre(e,r){for(var t=e.length,a=eS(t),n=0,i=0,o={},l=0;l<t;l+=a){var u=QD(l),s=e[u],f=String(s);if(!o[f]){o[f]=1;var c=typeof s;c==="boolean"?i++:(r?Ire(s)!==Nre:c==="number")?n++:c==="string"&&i++}}return i>n*2}function Yre(e){return nm(e[0])&&nm(e[1])}});var D0=ae((F3e,sS)=>{"use strict";var Vre=St(),iS=Wt(),C0=mr(),im=Oa().FP_SAFE,Xre=bt(),Wre=va(),oS=wn(),jre=oS.getFromId,Zre=oS.isLinked;sS.exports={applyAutorangeOptions:uS,getAutoRange:w6,makePadFn:A6,doAutoRange:$re,findExtremes:Kre,concatExtremes:k6};function w6(e,r){var t,a,n=[],i=e._fullLayout,o=A6(i,r,0),l=A6(i,r,1),u=k6(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return C0.simpleMap(r.range,r.r2l);var c=s[0].val,h=f[0].val;for(t=1;t<s.length&&c===h;t++)c=Math.min(c,s[t].val);for(t=1;t<f.length&&c===h;t++)h=Math.max(h,f[t].val);var d=r.autorange,m=d==="reversed"||d==="min reversed"||d==="max reversed";if(!m&&r.range){var p=C0.simpleMap(r.range,r.r2l);m=p[1]<p[0]}r.autorange==="reversed"&&(r.autorange=!0);var y=r.rangemode,b=y==="tozero",C=y==="nonnegative",x=r._length,_=x/10,A=0,T,M,E,P,z,B;for(t=0;t<s.length;t++)for(T=s[t],a=0;a<f.length;a++)M=f[a],B=M.val-T.val-tS(r,T.val,M.val),B>0&&(z=x-o(T)-l(M),z>_?B/z>A&&(E=T,P=M,A=B/z):B/x>A&&(E={val:T.val,nopad:1},P={val:M.val,nopad:1},A=B/x));function X(le,re){return Math.max(le,l(re))}if(c===h){var H=c-1,V=c+1;if(b)if(c===0)n=[0,1];else{var I=(c>0?f:s).reduce(X,0),Q=c/(1-Math.min(.5,I/x));n=c>0?[0,Q]:[Q,0]}else C?n=[Math.max(0,H),Math.max(1,V)]:n=[H,V]}else b?(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-tS(r,T.val,M.val))/(x-o(E)-l(P)),n=[E.val-A*o(E),P.val+A*l(P)];return n=uS(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),C0.simpleMap(n,r.l2r||Number)}function tS(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 A6(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=C0.simpleMap(r.range,r.r2l);i=o[1]<o[0]}i&&(t=!t)}var l=0;return Zre(e,r._id)||(l=Jre(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(s){return s.nopad?0:s.pad+(s.extrapad?a:l)}}var aS=3;function Jre(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 u=C0.deg2rad(l._tickAngles[l._id+"tick"]||0),s=Math.abs(Math.cos(u)),f=Math.abs(Math.sin(u));if(!l._vals[0].bb){var c=l._id+"tick",h=l._selections[c];h.each(function(C){var x=Vre.select(this),_=x.select(".text-math-group");_.empty()&&(C.bb=Wre.bBox(x.node()))})}for(var d=0;d<l._vals.length;d++){var m=l._vals[d],p=m.bb;if(p){var y=2*aS+p.width,b=2*aS+p.height;a=Math.max(a,n?Math.max(y*s,b*f):Math.max(b*s,y*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(a+=l.ticklen||0)}}}return a}function k6(e,r,t){var a=r._id,n=e._fullData,i=e._fullLayout,o=[],l=[],u,s,f;function c(y,b){for(u=0;u<b.length;u++){var C=y[b[u]],x=(C._extremes||{})[a];if(C.visible===!0&&x){for(s=0;s<x.min.length;s++)f=x.min[s],M6(o,f.val,f.pad,{extrapad:f.extrapad});for(s=0;s<x.max.length;s++)f=x.max[s],T6(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 h in r._matchGroup)if(h!==r._id){var d=jre(e,h),m=k6(e,d,!0),p=r._length/d._length;for(s=0;s<m.min.length;s++)f=m.min[s],M6(o,f.val,f.pad*p,{extrapad:f.extrapad});for(s=0;s<m.max.length;s++)f=m.max[s],T6(l,f.val,f.pad*p,{extrapad:f.extrapad})}}return{min:o,max:l}}function $re(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():w6(e,r),r._r=r.range.slice(),r._rl=C0.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,Xre.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=w6(e,r)),i._input.rangeslider[r._name]=C0.extendFlat({},o)}}function Kre(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==="-"),u=e.type==="log",s=!1,f=t.vpadLinearized||!1,c,h,d,m,p,y,b,C,x;function _(X){if(Array.isArray(X))return s=!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(!s){if(C=1/0,x=-1/0,u)for(c=0;c<i;c++)h=r[c],h<C&&h>0&&(C=h),h>x&&h<im&&(x=h);else for(c=0;c<i;c++)h=r[c],h<C&&h>-im&&(C=h),h>x&&h<im&&(x=h);r=[C,x],i=2}var P={tozero:l,extrapad:o};function z(X){d=r[X],iS(d)&&(y=A(X),b=T(X),f?(m=e.c2l(d)-E(X),p=e.c2l(d)+M(X)):(C=d-E(X),x=d+M(X),u&&C<x/10&&(C=x/10),m=e.c2l(C),p=e.c2l(x)),l&&(m=Math.min(0,m),p=Math.max(0,p)),nS(m)&&M6(a,m,b,P),nS(p)&&T6(n,p,y,P))}var B=Math.min(6,i);for(c=0;c<B;c++)z(c);for(c=i-1;c>=B;c--)z(c);return{min:a,max:n,opts:t}}function M6(e,r,t,a){lS(e,r,t,a,Qre)}function T6(e,r,t,a){lS(e,r,t,a,ete)}function lS(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,u=0;u<e.length&&l;u++){var s=e[u];if(n(s.val,r)&&s.pad>=t&&(s.extrapad||!o)){l=!1;break}else n(r,s.val)&&s.pad<=t&&(o||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function nS(e){return iS(e)&&Math.abs(e)<im}function Qre(e,r){return e<=r}function ete(e,r){return e>=r}function rte(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&om(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&om(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function tte(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&om(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&om(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function om(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function uS(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);C0.isArrayOrTypedArray(n)||(n=[n]);for(var l=0;l<n.length;l++){var u=r.d2l(n[l]);i>=u&&(i=u,t=u),o<=u&&(o=u,a=u)}}return t=rte(t,r),a=tte(a,r),[t,a]}});var Ba=ae((L3e,LS)=>{"use strict";var Yo=St(),un=Wt(),j1=An(),Uv=bt(),ht=mr(),Z1=ht.strTranslate,ec=ai(),ate=Iv(),Gv=Lt(),mo=va(),nte=Nl(),fS=V5(),E3e=En(),Zn=Oa(),ite=Zn.ONEMAXYEAR,sm=Zn.ONEAVGYEAR,fm=Zn.ONEMINYEAR,ote=Zn.ONEMAXQUARTER,F6=Zn.ONEAVGQUARTER,cm=Zn.ONEMINQUARTER,lte=Zn.ONEMAXMONTH,J1=Zn.ONEAVGMONTH,vm=Zn.ONEMINMONTH,go=Zn.ONEWEEK,mi=Zn.ONEDAY,S0=mi/2,Fu=Zn.ONEHOUR,Yv=Zn.ONEMIN,hm=Zn.ONESEC,ute=Zn.ONEMILLI,ste=Zn.ONEMICROSEC,rc=Zn.MINUS_SIGN,pm=Zn.BADNUM,E6={K:"zeroline"},L6={K:"gridline",L:"path"},q6={K:"minor-gridline",L:"path"},xS={K:"tick",L:"path"},cS={K:"tick",L:"text"},vS={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=ti(),Ov=mm.MID_SHIFT,tc=mm.CAP_SHIFT,Vv=mm.LINE_SPACING,fte=mm.OPPOSITE_SIDE,dm=3,_r=LS.exports={};_r.setConvert=am();var cte=x6(),Eu=wn(),vte=Eu.idSort,hte=Eu.isLinked;_r.id2name=Eu.id2name;_r.name2id=Eu.name2id;_r.cleanId=Eu.cleanId;_r.list=Eu.list;_r.listIds=Eu.listIds;_r.getFromId=Eu.getFromId;_r.getFromTrace=Eu.getFromTrace;var wS=D0();_r.getAutoRange=wS.getAutoRange;_r.findExtremes=wS.findExtremes;var dte=1e-4;function N6(e){var r=(e[1]-e[0])*dte;return[e[0]-r,e[1]+r]}function pte(e,r,t){if(![t,e,r].every(un)||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}_r.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],u=a+"ref",s={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),s[u]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},ht.coerce(e,r,s,u)};_r.coerceRefArray=function(e,r,t,a,n,i,o){let l=a.charAt(a.length-1);var u=t._fullLayout._subplots[l+"axis"];let s=a+"ref";var f=e[s];n||(n=u[0]||(typeof i=="string"?i:i[0])),u=u.concat(u.map(h=>h+" domain")),u=u.concat(i||[]),f.length>o?(ht.warn("Array attribute "+s+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length<o&&(ht.warn("Array attribute "+s+" 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]=Eu.cleanId(f[c],l,!0)||f[c],u.includes(f[c])||(f[c]=n);return r[s]=f,f};_r.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};_r.coercePosition=function(e,r,t,a,n,i){var o,l,u=_r.getRefType(a);if(u!=="range")o=ht.ensureNumber,l=t(n,i);else{var s=_r.getFromId(r,a);i=s.fraction2r(i),l=t(n,i),o=s.cleanPos}e[n]=o(l)};_r.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?ht.ensureNumber:_r.getFromId(r,t).cleanPos;return a(e)};_r.redrawComponents=function(e,r){r=r||_r.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var u=Uv.getComponentMethod(n,i),s={},f=0;f<r.length;f++)for(var c=t[_r.id2name(r[f])],h=c[o],d=0;d<h.length;d++){var m=h[d];if(!s[m]&&(u(e,m),s[m]=1,l))return}}a("annotations","drawOne","_annIndices"),a("shapes","drawOne","_shapeIndices"),a("images","draw","_imgIndices",!0),a("selections","drawOne","_selectionIndices")};var mte=_r.getDataConversions=function(e,r,t,a){var n,i=t==="x"||t==="y"||t==="z"?t:a;if(ht.isArrayOrTypedArray(i)){if(n={type:cte(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},_r.setConvert(n),n.type==="category")for(var o=0;o<a.length;o++)n.d2c(a[o])}else n=_r.getFromTrace(e,r,i);return n?{d2c:n.d2c,c2d:n.c2d}:i==="ids"?{d2c:dS,c2d:dS}:{d2c:hS,c2d:hS}};function hS(e){return+e}function dS(e){return String(e)}_r.getDataToCoordFunc=function(e,r,t,a){return mte(e,r,t,a).d2c};_r.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};_r.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))};_r.saveRangeInitial=function(e,r){for(var t=_r.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,u=i.autorange;(o&&u!==!0||r&&l)&&(i._rangeInitial0=u==="min"||u==="max reversed"?void 0:i.range[0],i._rangeInitial1=u==="max"||u==="min reversed"?void 0:i.range[1],i._autorangeInitial=u,a=!0)}return a};_r.saveShowSpikeInitial=function(e,r){for(var t=_r.list(e,"",!0),a=!1,n="on",i=0;i<t.length;i++){var o=t[i],l=o._showSpikeInitial===void 0,u=l||o.showspikes!==o._showspikes;(l||r&&u)&&(o._showSpikeInitial=o.showspikes,a=!0),n==="on"&&!o.showspikes&&(n="off")}return e._fullLayout._cartesianSpikesEnabled=n,a};_r.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 u;if(r.type==="log"?u={type:"linear",range:[o,l]}:u={type:r.type,range:ht.simpleMap([o,l],r.c2r,0,n),calendar:n},_r.setConvert(u),i=i&&fS.dtick(i,u.type),i)u.dtick=i,u.tick0=fS.tick0(void 0,u.type,n);else{var s;if(t)s=(l-o)/t;else{var f=ht.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),h=c*ht.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);s=Math.max(h,2*ht.stdev(e)/Math.pow(e.length,a?.25:.4)),un(s)||(s=1)}_r.autoTicks(u,s)}var d=u.dtick,m=_r.tickIncrement(_r.tickFirst(u),d,"reverse",n),p,y;if(typeof d=="number")m=gte(m,e,u,o,l),y=1+Math.floor((l-m)/d),p=m+y*d;else for(u.dtick.charAt(0)==="M"&&(m=yte(m,e,d,o,n)),p=m,y=0;p<=l;)p=_r.tickIncrement(p,d,!1,n),y++;return{start:r.c2r(m,0,n),end:r.c2r(p,0,n),size:d,_dataSpan:l-o}};function gte(e,r,t,a,n){var i=0,o=0,l=0,u=0;function s(d){return(1+(d-e)*100/t.dtick)%100<2}for(var f=0;f<r.length;f++)r[f]%1===0?l++:un(r[f])||u++,s(r[f])&&i++,s(r[f]+t.dtick/2)&&o++;var c=r.length-u;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||s(a)||s(n))){var h=t.dtick/2;e+=e+h<a?h:-h}return e}function yte(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=_r.tickIncrement(e,"M6","reverse")+mi*1.5:i.exactMonths>o?e=_r.tickIncrement(e,"M1","reverse")+mi*15.5:e-=S0;var u=_r.tickIncrement(e,t);if(u<=a)return u}return e}_r.prepMinorTicks=function(e,r,t){var c,h;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&un(r._tmin),n;if(a){var i=_r.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,_r.prepTicks(e,t),a){var l=un(r.dtick),u=un(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?C6(s,f)?s===2*go&&f===2*mi&&(e.dtick=go):s===2*go&&f===3*mi?e.dtick=go:s===go&&!(r._input.minor||{}).nticks?e.dtick=mi:pS(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":C6(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?C6(s,f)||(e.dtick=pS(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((h=r.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=r.tick0)};function C6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function pS(e,r){return Math.abs(e/r-1)<.001}_r.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,_r.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"&&bte(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),kS(e)};function D6(e){return+e.substring(1)}function bte(e){var r;function t(){return!(un(e.dtick)||e.dtick.charAt(0)!=="M")}var a=t(),n=_r.getTickFormat(e);if(n){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(n)||(/%[HI]/.test(n)?(r=Fu,i&&!a&&e.dtick<Fu&&(e.dtick=Fu)):/%p/.test(n)?(r=S0,i&&!a&&e.dtick<S0&&(e.dtick=S0)):/%[Aadejuwx]/.test(n)?(r=mi,i&&!a&&e.dtick<mi&&(e.dtick=mi)):/%[UVW]/.test(n)?(r=go,i&&!a&&e.dtick<go&&(e.dtick=go)):/%[Bbm]/.test(n)?(r=J1,i&&(a?D6(e.dtick)<1:e.dtick<vm)&&(e.dtick="M1")):/%[q]/.test(n)?(r=F6,i&&(a?D6(e.dtick)<3:e.dtick<cm)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=sm,i&&(a?D6(e.dtick)<12:e.dtick<fm)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function _te(e,r,t){for(var a=0;a<e.length;a++){var n=e[a].value,i=a,o=a+1;a<e.length-1?(i=a,o=a+1):a>0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,u=e[o].value,s=Math.abs(u-l),f=t||s,c=0;f>=fm?s>=fm&&s<=ite?c=s:c=sm:t===F6&&f>=cm?s>=cm&&s<=ote?c=s:c=F6:f>=vm?s>=vm&&s<=lte?c=s:c=J1:t===go&&f>=go?c=go:f>=mi?c=mi:t===S0&&f>=S0?c=S0:t===Fu&&f>=Fu&&(c=Fu);var h;c>=s&&(c=s,h=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var m=84,p=0,y=0;y<m;y++){var b=(y+.5)/m;r.maskBreaks(n*(1-b)+b*d)!==pm&&p++}c*=p/m,c||(e[a].drop=!0),h&&s>go&&(c=s)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}_r.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||ht.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=ht.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]<s[0],c=Math.min(s[0],s[1]),h=Math.max(s[0],s[1]),d=Math.max(1e3,r._length||0),m=[],p=[],y=[],b=[],C=[],x=r.minor&&(r.minor.ticks||r.minor.showgrid),_=x||u,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?_r.prepMinorTicks(M,r,t):_r.prepTicks(M,t),M.tickmode==="array"){A?(y=[],m=mS(r,!T)):(b=[],p=mS(r,!T));continue}if(M.tickmode==="sync"){y=[],m=xte(r);continue}var E=N6(s),P=E[0],z=E[1],B=un(M.dtick),X=a==="log"&&!(B||M.dtick.charAt(0)==="L"),H=_r.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,I=H,Q;if(A){var le;B?le=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(le=J1*r.dtick.substring(1)):le=r._roughDTick,Q=Math.round((r.r2l(I)-r.r2l(r.tick0))/le)-1}var re=M.dtick,te=a==="linear"?M.r2l(M.tick0):void 0;for(M.rangebreaks&&M._tick0Init!==M.tick0&&(I=S6(I,r),f||(I=_r.tickIncrement(I,re,!f,n))),(A||u)&&o&&(I=_r.tickIncrement(I,re,!f,n),A&&Q--);f?I>=z:I<=z;I=_r.tickIncrement(I,re,f,n)){if(A&&Q++,M.rangebreaks&&!f){if(I<P)continue;if(M.maskBreaks(I)===pm&&S6(I,M)>=h)break}if(y.length>d||I===V)break;V=I;var oe={value:pte(I,te,re)};A?(I===H&&(oe.first=!0),X&&I!==(I|0)&&(oe.simpleLabel=!0),i>1&&Q%i&&(oe.skipLabel=!0),y.push(oe)):(oe.minor=!0,b.push(oe))}}if(!b||b.length<3)u=!1;else{var ce=(b[2].value-b[1].value)*(l?-1:1);Xte(ce,r.tickformat)||(u=!1,b=b.slice(1))}if(!u)C=y;else{var Me=y.concat(b);o&&y.length&&(Me=Me.slice(1)),Me=Me.sort(function(dr,Ze){return dr.value-Ze.value}).filter(function(dr,Ze,cr){return Ze===0||dr.value!==cr[Ze-1].value});var Se=Me.map(function(dr,Ze){return dr.minor===void 0&&!dr.skipLabel?Ze:null}).filter(function(dr){return dr!==null});Se.forEach(function(dr){u.map(function(Ze){var cr=dr+Ze;cr>=0&&cr<Me.length&&ht.pushUnique(C,Me[cr])})}),y.forEach(function(dr){dr.skipLabel=C.indexOf(dr)===-1})}if(x){var Ie=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!Ie){for(var Ue=y.map(function(dr){return dr.value}),ke=[],We=0;We<b.length;We++){var j=b[We],ee=j.value;if(Ue.indexOf(ee)===-1){for(var me=!1,K=0;!me&&K<y.length;K++)1e7+y[K].value===1e7+ee&&(me=!0);me||ke.push(j)}}b=ke}}o&&_te(C,r,r._definedDelta);var $;if(r.rangebreaks){var se=r._id.charAt(0)==="y",_e=1;r.tickmode==="auto"&&(_e=r.tickfont?r.tickfont.size:12);var Ne=NaN;for($=y.length-1;$>-1;$--){if(y[$].drop){y.splice($,1);continue}y[$].value=S6(y[$].value,r);var $e=r.c2p(y[$].value);(se?Ne>$e-_e:Ne<$e+_e)?y.splice(f?$+1:$,1):Ne=$e}}O6(r)&&Math.abs(s[1]-s[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,y.length&&(y[y.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var ar,tr=function(dr){dr.text="",r._prevDateHead=ar};y=y.concat(b);function fr(dr,Ze){var cr=_r.tickText(dr,Ze.value,!1,Ze.simpleLabel,{first:Ze.first,last:Ze.last}),Er=Ze.periodX;return Er!==void 0&&(cr.periodX=Er,(Er>h||Er<c)&&(Er>h&&(cr.periodX=h),Er<c&&(cr.periodX=c),tr(cr))),cr}var Re;for($=0;$<y.length;$++){var ur=y[$].minor,hr=y[$].value;ur?(u&&C.indexOf(y[$])!==-1?Re=fr(r,y[$]):Re={x:hr},Re.minor=!0,p.push(Re)):(ar=r._prevDateHead,Re=fr(r,y[$]),y[$].skipLabel&&tr(Re),m.push(Re))}return o&&u&&p.length&&(p[0].noTick=!0),m=m.concat(p),r._inCalcTicks=!1,o&&m.length&&(m[0].noTick=!0),m};function AS(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==pm})),r}function xte(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),u=e.p2l(l),s=_r.tickText(e,u,!1,void 0,{first:o===a,last:o===n});r._vals[o].minor&&(s.minor=!0,s.text=""),t.push(s)}}return t=AS(e,t),t}function mS(e,r){var t=ht.simpleMap(e.range,e.r2l),a=N6(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=[],u=0;u<=1;u++)if(!(r!==void 0&&(r&&u||r===!1&&!u))&&!(u&&!e.minor)){var s=u?e.minor.tickvals:e.tickvals,f=u?[]:e.ticktext;if(s){ht.isArrayOrTypedArray(f)||(f=[]);var c=-1,h=-1;if(!u)for(var d=0;d<s.length;d++){var m=o(s[d]);m>n&&m<i&&(c===-1&&(c=d),h=d)}for(var p=0;p<s.length;p++){var y=o(s[p]);if(y>n&&y<i){var b=_r.tickText(e,y,!1,String(f[p]),{first:p===c,last:p===h});u&&(b.minor=!0,b.text=""),l.push(b)}}}}return l=AS(e,l),l}var lm=[2,5,10],gS=[1,2,3,6,12],yS=[1,2,5,10,15,30],wte=[1,2,3,7,14],MS=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],TS=[-.301,0,.301,.699,1],Ate=[15,30,45,90,180];function Su(e,r,t){return r*ht.roundUp(e/r,t)}_r.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>sm)r/=sm,a=n(10),e.dtick="M"+12*Su(r,a,lm);else if(i>J1)r/=J1,e.dtick="M"+Su(r,1,gS);else if(i>mi){if(e.dtick=Su(r,mi,e._hasDayOfWeekBreaks?[1,2,7,14]:wte),!t){var o=_r.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>Fu?e.dtick=Su(r,Fu,gS):i>Yv?e.dtick=Su(r,Yv,yS):i>hm?e.dtick=Su(r,hm,yS):(a=n(10),e.dtick=Su(r,a,lm))}else if(e.type==="log"){e.tick0=0;var u=ht.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,a=n(10),e.dtick="L"+Su(r,a,lm)}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))):O6(e)?(e.tick0=0,a=1,e.dtick=Su(r,a,Ate)):(e.tick0=0,a=n(10),e.dtick=Su(r,a,lm));if(e.dtick===0&&(e.dtick=1),!un(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function kS(e){var r=e.dtick;if(e._tickexponent=0,!un(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>=mi&&n<=10||r>=mi*15)e._tickround="d";else if(r>=Yv&&n<=16||r>=Fu)e._tickround="M";else if(r>=hm&&n<=19||r>=Yv)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(un(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);un(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])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&($1(e.exponentformat)&&e.exponentformat!=="SI extended"&&!B6(u)||$1(e.exponentformat)&&e.exponentformat==="SI extended"&&!I6(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}_r.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(un(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"?TS:MS,u=e+n*.01,s=ht.roundUp(ht.mod(u,1),l,t);return Math.floor(u)+Math.log(Yo.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};_r.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=N6(a)[0],l=e.dtick,u=t(e.tick0);if(un(l)){var s=i((o-u)/l)*l+u;return(e.type==="category"||e.type==="multicategory")&&(s=ht.constrain(s,0,e._categories.length-1)),s}var f=l.charAt(0),c=Number(l.slice(1));if(f==="M"){for(var h=0,d=u,m,p,y;h<10;){if(m=_r.tickIncrement(d,l,n,e.calendar),(m-o)*(d-o)<=0)return n?Math.min(d,m):Math.max(d,m);p=(o-(d+m)/2)/(m-d),y=f+(Math.abs(Math.round(p))||1)*c,d=_r.tickIncrement(d,y,p<0?!n:n,e.calendar),h++}return ht.error("tickFirst did not converge",e),d}else{if(f==="L")return Math.log(i((Math.pow(10,o)-u)/c)*c+u)/Math.LN10;if(f==="D"){var b=l==="D2"?TS:MS,C=ht.roundUp(ht.mod(o,1),b,n);return Math.floor(o)+Math.log(Yo.round(Math.pow(10,C),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};_r.tickText=function(e,r,t,a,n){var i=!!(n!=null&&n.first),o=!!(n!=null&&n.last),l=CS(e,r),u=e.tickmode==="array",s=t||u,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,h,d=function(x){var _=e.l2p(x);return _>=0&&_<=e._length?x:null};if(u&&ht.isArrayOrTypedArray(e.ticktext)){var m=ht.simpleMap(e.range,e.r2l),p=(Math.abs(m[1]-m[0])-(e._lBreaks||0))/1e4;for(h=0;h<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[h]))<p);h++);if(h<e.ticktext.length)return l.text=String(e.ticktext[h]),l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)],l}function y(x){return x===void 0?!0:t?x==="none":x==="all"?!1:x==="first"?!i:x==="last"?!o:!0}var b=t?"never":e.exponentformat!=="none"&&y(e.showexponent)?"hide":"";if(f==="date"?Mte(e,l,t,s):f==="log"?Tte(e,l,t,s,b):f==="category"?kte(e,l):f==="multicategory"?Cte(e,l,t):O6(e)?Ste(e,l,t,s,b):Dte(e,l,t,s,b),a||(e.tickprefix&&!y(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!y(e.showticksuffix)&&(l.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(l.text)){var C=e.labelalias[l.text];typeof C=="string"&&(l.text=C)}return(e.tickson==="boundaries"||e.showdividers)&&(l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)]),l};_r.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 _r.hoverLabelText(e,a,t)+" - "+_r.hoverLabelText(e,n,t);var i=e.type==="log"&&a<=0,o=_r.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":rc+o:o};function CS(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 Mte(e,r,t,a){var n=e._tickround,i=t&&e.hoverformat||_r.getTickFormat(e);a=!i&&a,a&&(un(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,u=o.indexOf(`
`);if(u!==-1&&(l=o.slice(u+1),o=o.slice(0,u)),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 s=Wv(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(o+="<br> ")}r.text=o}function Tte(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,u=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&u!=="L"&&(i="L3",u="L"),l||u==="L")r.text=Xv(Math.pow(10,o),e,n,a);else if(un(i)||u==="D"&&(e.minorloglabels==="complete"||ht.mod(o+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(ht.mod(o+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),m=e.exponentformat;m==="power"||$1(m)&&m!=="SI extended"&&B6(h)||$1(m)&&m==="SI extended"&&I6(h)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+="<sup>"+(h>0?"":rc)+d+"</sup>"),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=c[0]+m+(h>0?"+":rc)+d:(r.text=Xv(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,ht.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var p=String(r.text).charAt(0);(p==="0"||p==="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 kte(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Cte(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 Dte(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Xv(r.x,e,n,a)}function Ste(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Fte(i);if(o[1]>=100)r.text=Xv(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=rc+r.text)}}}else r.text=Xv(r.x,e,n,a)}function Fte(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function a(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var DS=["f","p","n","\u03BC","m","","k","M","G","T"],Ete=["q","r","y","z","a",...DS,"P","E","Z","Y","R","Q"],$1=e=>["SI","SI extended","B"].includes(e);function B6(e){return e>14||e<-15}function I6(e){return e>32||e<-30}function Lte(e,r){return $1(r)?!!(r==="SI extended"&&I6(e)||r!=="SI extended"&&B6(e)):!1}function Xv(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,u=_r.getTickFormat(r),s=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:un(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};kS(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,rc);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e<c)e="0",n=!1;else{if(l&&(e*=Math.pow(10,-l),i+=l),i===0)e=String(Math.round(e));else if(i<0){let d=Math.pow(10,-i);e=String(Math.round(e/d)*d)}else e=e.toFixed(Math.min(20,i)).replace(/\.?0+$/,"");e=ht.numSeparate(e,r._separators,s)}if(l&&o!=="hide"){Lte(l,o)&&(o="power");var h;l<0?h=rc+-l:o!=="power"?h="+"+l:h=String(l),o==="e"||o==="E"?e+=o+h:o==="power"?e+="\xD710<sup>"+h+"</sup>":o==="B"&&l===9?e+="B":$1(o)&&(e+=o==="SI extended"?Ete[l/3+10]:DS[l/3+5])}return n?rc+e:e}_r.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*J1}function a(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var c=f.indexOf(u.charAt(0)),h=f.indexOf(s.charAt(0));return c===h?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):c-h}else return typeof u=="number"?1:-1}function n(u,s,f){var c=f||function(m){return m},h=s[0],d=s[1];return(!h&&typeof h!="number"||c(h)<=c(u))&&(!d&&typeof d!="number"||c(d)>=c(u))}function i(u,s){var f=s[0]===null,c=s[1]===null,h=a(u,s[0])>=0,d=a(u,s[1])<=0;return(f||h)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&n(e.dtick,l.dtickrange,t)){o=l;break}break}case"log":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&i(e.dtick,l.dtickrange)){o=l;break}break}default:}return o?o.value:e.tickformat};_r.getSubplots=function(e,r){var t=e._fullLayout._subplots,a=t.cartesian.concat(t.gl2d||[]),n=r?_r.findSubplotsWithAxis(a,r):a;return n.sort(function(i,o){var l=i.slice(1).split("y"),u=o.slice(1).split("y");return l[0]===u[0]?+l[1]-+u[1]:+l[0]-+u[0]}),n};_r.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};_r.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=_r.list(e,"x",!0),i=_r.list(e,"y",!0),o=[],l,u;for(l=0;l<n.length;l++)for(o.push({x:n[l],y:a}),u=0;u<i.length;u++)l===0&&o.push({x:t,y:i[u]}),o.push({x:n[l],y:i[u]});var s=r._clips.selectAll(".axesclip").data(o,function(f){return f.x._id+f.y._id});s.enter().append("clipPath").classed("axesclip",!0).attr("id",function(f){return"clip"+r._uid+f.x._id+f.y._id}).append("rect"),s.exit().remove(),s.each(function(f){Yo.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})})}};_r.draw=function(e,r,t){var a=e._fullLayout;r==="redraw"&&a._paper.selectAll("g.subplot").each(function(u){var s=u[0],f=a._plots[s];if(f){var c=f.xaxis,h=f.yaxis;f.xaxislayer.selectAll("."+c._id+"tick").remove(),f.yaxislayer.selectAll("."+h._id+"tick").remove(),f.xaxislayer.selectAll("."+c._id+"tick2").remove(),f.yaxislayer.selectAll("."+h._id+"tick2").remove(),f.xaxislayer.selectAll("."+c._id+"divider").remove(),f.yaxislayer.selectAll("."+h._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-"+h._id+"title").remove()}});var n=!r||r==="redraw"?_r.listIds(e):r,i=_r.list(e),o=i.filter(function(u){return u.autoshift}).map(function(u){return u.overlaying});n.map(function(u){var s=_r.getFromId(e,u);if(s.tickmode==="sync"&&s.overlaying){var f=n.findIndex(function(c){return c===s.overlaying});f>=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return ht.syncOrAsync(n.map(function(u){return function(){if(u){var s=_r.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=_r.drawOne(e,s,t);return s._shiftPusher&&z6(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=ht.simpleMap(s._r,s.r2l),f}}}))};_r.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),c=_r.counterLetter(s),h=u._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),z6(r,m,a,!0),z6(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Vte(r,a));var p=h[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=_r.calcTicks(r),_=[r.mirror,b,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(Re){var ur=s+(Re||"tick");return A[ur]||(A[ur]=zte(r,ur,b)),A[ur]}if(r.visible){var M=_r.makeTransTickFn(r),E=_r.makeTransTickLabelFn(r),P,z,B=r.ticks==="inside",X=r.ticks==="outside";if(r.tickson==="boundaries"){var H=qte(r,x);z=_r.clipEnds(r,H),P=B?z:H}else z=_r.clipEnds(r,x),P=B&&r.ticklabelmode!=="period"?z:x;var V=r._gridVals=z,I=Rte(r,x);if(!u._hasOnlyLargeSploms){var Q=r._subplotsWith,le={};for(i=0;i<Q.length;i++){o=Q[i],l=u._plots[o];var re=l[c+"axis"],te=re._mainAxis._id;if(!le[te]){le[te]=1;var oe=f==="x"?"M0,"+re._offset+"v"+re._length:"M"+re._offset+",0h"+re._length;_r.drawGrid(e,r,{vals:V,counterAxis:re,layer:l.gridlayer.select("."+s),minorLayer:l.minorGridlayer.select("."+s),path:oe,transFn:M}),_r.drawZeroLine(e,r,{counterAxis:re,layer:d?l.zerolinelayerAbove:l.zerolinelayer,path:oe,transFn:M})}}}var ce,Me=_r.getTickSigns(r),Se=_r.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var Ie=_r.makeTickPath(r,b,Me[2]),Ue=_r.makeTickPath(r,b,Se[2],{minor:!0}),ke,We,j,ee;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(ke=_r.makeTickPath(r,C,Me[3]),We=_r.makeTickPath(r,C,Se[3],{minor:!0}),j=Ie+ke,ee=Ue+We):(ke="",We="",j=Ie,ee=Ue),r.showdividers&&X&&r.tickson==="boundaries"){var me={};for(i=0;i<I.length;i++)me[I[i].x]=1;ce=function(Re){return me[Re.x]?ke:j}}else ce=function(Re){return Re.minor?ee:j}}if(_r.drawTicks(e,r,{vals:P,layer:p,path:ce,transFn:M}),r.mirror==="allticks"){var K=Object.keys(r._linepositions||{});for(i=0;i<K.length;i++){o=K[i],l=u._plots[o];var $=r._linepositions[o]||[],se=$[0],_e=$[1],Ne=$[2],$e=_r.makeTickPath(r,se,Ne?Me[0]:Se[0],{minor:Ne})+_r.makeTickPath(r,_e,Ne?Me[1]:Se[1],{minor:Ne});_r.drawTicks(e,r,{vals:P,layer:l[f+"axislayer"],path:$e,transFn:M})}}var ar=[];if(ar.push(function(){return _r.drawLabels(e,r,{vals:x,layer:p,plotinfo:l,transFn:E,labelFns:_r.makeLabelFns(r,b)})}),r.type==="multicategory"){var tr={x:2,y:10}[f];ar.push(function(){var Re={x:"height",y:"width"}[f],ur=T()[Re]+tr+(r._tickAngles[s+"tick"]?r.tickfont.size*Vv:0);return _r.drawLabels(e,r,{vals:Pte(r,x),layer:p,cls:s+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:_r.makeLabelFns(r,b+ur*Me[4])})}),ar.push(function(){return r._depth=Me[4]*(T("tick2")[r.side]-b),Bte(e,r,{vals:I,layer:p,path:_r.makeTickPath(r,b,Me[4],{len:r._depth}),transFn:M})})}else r.title.hasOwnProperty("standoff")&&ar.push(function(){r._depth=Me[4]*(T()[r.side]-b)});var fr=Uv.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(fr&&r.side==="bottom")&&ar.push(function(){return Ite(e,r)}),ar.push(function(){var Re=r.side.charAt(0),ur=fte[r.side].charAt(0),hr=_r.getPxPosition(e,r),dr=X?r.ticklen:0,Ze,cr,Er,Te;(r.automargin||fr||r._shiftPusher)&&(r.type==="multicategory"?Ze=T("tick2"):(Ze=T(),f==="x"&&Re==="b"&&(r._depth=Math.max(Ze.width>0?Ze.bottom-hr:0,dr))));var Oe=0,Ar=0;if(r._shiftPusher&&(Oe=Math.max(dr,Ze.height>0?Re==="l"?hr-Ze.left:Ze.right-hr:0),r.title.text!==u._dfltTitle[f]&&(Ar=(r._titleStandoff||0)+(r._titleScoot||0),Re==="l"&&(Ar+=_S(r))),r._fullDepth=Math.max(Oe,Ar)),r.automargin){cr={x:0,y:0,r:0,l:0,t:0,b:0};var Nr=[0,1],Qe=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Re==="b"?cr[Re]=r._depth:(cr[Re]=r._depth=Math.max(Ze.width>0?hr-Ze.top:0,dr),Nr.reverse()),Ze.width>0){var Be=Ze.right-(r._offset+r._length);Be>0&&(cr.xr=1,cr.r=Be);var Xe=r._offset-Ze.left;Xe>0&&(cr.xl=0,cr.l=Xe)}}else if(Re==="l"?(r._depth=Math.max(Ze.height>0?hr-Ze.left:0,dr),cr[Re]=r._depth-Qe):(r._depth=Math.max(Ze.height>0?Ze.right-hr:0,dr),cr[Re]=r._depth+Qe,Nr.reverse()),Ze.height>0){var yr=Ze.bottom-(r._offset+r._length);yr>0&&(cr.yb=0,cr.b=yr);var kr=r._offset-Ze.top;kr>0&&(cr.yt=1,cr.t=kr)}cr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[Nr[0]],r.title.text!==u._dfltTitle[f]&&(cr[Re]+=_S(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Er={x:0,y:0,r:0,l:0,t:0,b:0},Er[ur]=r.linewidth,r.mirror&&r.mirror!==!0&&(Er[ur]+=dr),r.mirror===!0||r.mirror==="ticks"?Er[c]=r._anchorAxis.domain[Nr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Er[c]=[r._counterDomainMin,r._counterDomainMax][Nr[1]]))}fr&&(Te=Uv.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(bS(cr,r.automargin),bS(Er,r.automargin)),j1.autoMargin(e,H6(r),cr),j1.autoMargin(e,FS(r),Er),j1.autoMargin(e,ES(r),Te)}),ht.syncOrAsync(ar)}};function bS(e,r){if(e){var t=Object.keys(vS).reduce(function(a,n){return r.indexOf(n)!==-1&&vS[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 qte(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 Pte(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(CS(e,ht.interp(a[o],.5),o));return t}function Rte(e,r){var t=[],a,n,i=r.length&&r[r.length-1].x<r[0].x,o=function(u,s){var f=u.xbnd[s];f!==null&&t.push(ht.extendFlat({},u,{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 zte(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 u=R6(this);if(u.node().style.display!=="none"){var s=mo.bBox(u.node().parentNode);a=Math.min(a,s.top),n=Math.max(n,s.bottom),i=Math.min(i,s.left),o=Math.max(o,s.right)}});else{var l=_r.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}}_r.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};_r.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return Z1(e._offset+e.l2p(r.x),0)}:function(r){return Z1(0,e._offset+e.l2p(r.x))}};_r.makeTransTickLabelFn=function(e){var r=Nte(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,u=!l;if(t){var s=o?-1:1;t=t*s}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(h){return Z1(n+e._offset+e.l2p(P6(h))+t,i+a)}:function(h){return Z1(i+a,n+e._offset+e.l2p(P6(h))+t)}};function P6(e){return e.periodX!==void 0?e.periodX:e.x}function Nte(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),u=a("inside"),s=t!=="boundaries"&&(l||i||n||o);if(!s&&!u)return[0,0];var f=e.side,c=s?(e.tickwidth||0)/2:0,h=dm,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*tc,h+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,h+=dm),u&&f==="top"&&(h-=d*(1-tc)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[s?c:0,u?h:0]}_r.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};_r.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"),u=i("right"),s=i("bottom"),f=n!=="boundaries"&&(s||l||o||u),c=i("inside"),h=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,m=0,p=h?e.ticklen:0;if(c?p*=-1:f&&(p=0),h&&(d+=p,t)){var y=ht.deg2rad(t);d=p*Math.cos(y)+1,m=p*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:m},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=m*A,x=r+d*A,_=z?1:-.2,Math.abs(P)===90&&(c?_+=Ov:P===-90&&M==="bottom"?_=tc:P===90&&M==="top"?_=Ov:_=.5,T=Ov/2*(P/90)),b.xFn=function(H){return H.dx+C+T*H.fontSize},b.yFn=function(H){return H.dy+x+H.fontSize*_},b.anchorFn=function(H,V){if(f){if(l)return"end";if(u)return"start"}return!un(V)||V===0||V===180?"middle":V*A<0!==c?"end":"start"},b.heightFn=function(H,V,I){return V<-60||V>60?-.5*I:e.side==="top"!==c?-I:0};else if(E==="y"){if(z=!c&&M==="left"||c&&M==="right",A=z?1:-1,c&&(A*=-1),C=d,x=m*A,_=0,!c&&Math.abs(P)===90&&(P===-90&&M==="left"||P===90&&M==="right"?_=tc:_=.5),c){var B=un(P)?+P:0;if(B!==0){var X=ht.deg2rad(B);T=Math.abs(Math.sin(X))*tc*A,_=0}}b.xFn=function(H){return H.dx+r-(C+H.fontSize*_)*A+T*H.fontSize},b.yFn=function(H){return H.dy+x+H.fontSize*Ov},b.anchorFn=function(H,V){return un(V)&&Math.abs(V)===90?"middle":z?"end":"start"},b.heightFn=function(H,V,I){return e.side==="right"&&(V*=-1),V<-30?-I:V<30?-.5*I:0}}return b};function gm(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}_r.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,gm);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Gv.stroke(Yo.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return mo.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),ym(r,[xS]),i.attr("transform",t.transFn)};_r.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&_r.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s<o.length;s++){var f=o[s].x;if(u?!f:Math.abs(f)<r.dtick/100)if(o=o.slice(0,s).concat(o.slice(s+1)),u)s--;else break}r._gw=mo.crispRound(e,r.gridwidth,1);for(var c=n?mo.crispRound(e,r.minor.gridwidth,1):0,h=t.layer,d=t.minorLayer,m=1;m>=0;m--){var p=m?h:d;if(p){var y=p.selectAll("path."+a).data(m?o:i,gm);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return Gv.stroke(Yo.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return mo.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}ym(r,[L6,q6])}};_r.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=_r.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 vte(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Gv.stroke,r.zerolinecolor||Gv.defaultLine).style("stroke-width",mo.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),ym(r,[E6])};_r.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(te){return te.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],gm),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(te){var oe=Yo.select(this),ce=e._promises.length;oe.call(ec.positionText,u.xFn(te),u.yFn(te)).call(mo.font,{family:te.font,size:te.fontSize,color:te.fontColor,weight:te.fontWeight,style:te.fontStyle,variant:te.fontVariant,textcase:te.fontTextcase,lineposition:te.fontLineposition,shadow:te.fontShadow}).text(te.text).call(ec.convertToTspans,e),e._promises[ce]?h.push(e._promises.pop().then(function(){d(oe,s)})):d(oe,s)}),ym(r,[cS]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(te){Yo.select(this).select("text").call(ec.positionText,u.xFn(te),u.yFn(te))});function d(te,oe){te.each(function(ce){var Me=Yo.select(this),Se=Me.select(".text-math-group"),Ie=u.anchorFn(ce,oe),Ue=t.transFn.call(Me.node(),ce)+(un(oe)&&+oe!=0?" rotate("+oe+","+u.xFn(ce)+","+(u.yFn(ce)-ce.fontSize/2)+")":""),ke=ec.lineCount(Me),We=Vv*ce.fontSize,j=u.heightFn(ce,un(oe)?+oe:0,(ke-1)*We);if(j&&(Ue+=Z1(0,j)),Se.empty()){var ee=Me.select("text");ee.attr({transform:Ue,"text-anchor":Ie}),ee.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var me=mo.bBox(Se.node()).width,K=me*{end:-.5,start:.5}[Ie];Se.attr("transform",Ue+Z1(K,0))}})}r._adjustTickLabelsOverflow=function(){var te=r.ticklabeloverflow;if(!(!te||te==="allow")){var oe=te.indexOf("hide")!==-1,ce=r._id.charAt(0)==="x",Me=0,Se=ce?e._fullLayout.width:e._fullLayout.height;if(te.indexOf("domain")!==-1){var Ie=ht.simpleMap(r.range,r.r2l);Me=r.l2p(Ie[0])+r._offset,Se=r.l2p(Ie[1])+r._offset}var Ue=Math.min(Me,Se),ke=Math.max(Me,Se),We=r.side,j=1/0,ee=-1/0;c.each(function(se){var _e=Yo.select(this),Ne=_e.select(".text-math-group");if(Ne.empty()){var $e=mo.bBox(_e.node()),ar=0;ce?($e.right>ke||$e.left<Ue)&&(ar=1):($e.bottom>ke||$e.top+(r.tickangle?0:se.fontSize/4)<Ue)&&(ar=1);var tr=_e.select("text");ar?oe&&tr.style("display","none"):tr.node().style.display!=="none"&&(tr.style("display",null),We==="bottom"||We==="right"?j=Math.min(j,ce?$e.top:$e.left):j=-1/0,We==="top"||We==="left"?ee=Math.max(ee,ce?$e.bottom:$e.right):ee=1/0)}});for(var me in a._plots){var K=a._plots[me];if(!(r._id!==K.xaxis._id&&r._id!==K.yaxis._id)){var $=ce?K.yaxis:K.xaxis;$&&($["_visibleLabelMin_"+r._id]=j,$["_visibleLabelMax_"+r._id]=ee)}}}},r._hideCounterAxisInsideTickLabels=function(te){var oe=r._id.charAt(0)==="x",ce=[];for(var Me in a._plots){var Se=a._plots[Me];r._id!==Se.xaxis._id&&r._id!==Se.yaxis._id||ce.push(oe?Se.yaxis:Se.xaxis)}ce.forEach(function(Ie,Ue){Ie&&Wv(Ie)&&(te||[E6,q6,L6,xS,cS]).forEach(function(ke){var We=ke.K==="tick"&&ke.L==="text"&&r.ticklabelmode==="period",j=a._plots[r._mainSubplot],ee;if(ke.K===E6.K){var me=i?j.zerolinelayerAbove:j.zerolinelayer;ee=me.selectAll("."+r._id+"zl")}else ke.K===q6.K?ee=j.minorGridlayer.selectAll("."+r._id):ke.K===L6.K?ee=j.gridlayer.selectAll("."+r._id):ee=j[r._id.charAt(0)+"axislayer"];ee.each(function(){var K=Yo.select(this);ke.L&&(K=K.selectAll(ke.L)),K.each(function($){var se=r.l2p(We?P6($):$.x)+r._offset,_e=Yo.select(this);se<r["_visibleLabelMax_"+Ie._id]&&se>r["_visibleLabelMin_"+Ie._id]?_e.style("display","none"):ke.K==="tick"&&!Ue&&_e.node().style.display!=="none"&&_e.style("display",null)})})})})},d(c,f+1?f:s);function m(){return h.length&&Promise.all(h)}var p=null;function y(){if(d(c,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){p=r.autotickangles[0];var te=0,oe=[],ce,Me=1;c.each(function(cr){te=Math.max(te,cr.fontSize);var Er=r.l2p(cr.x),Te=R6(this),Oe=mo.bBox(Te.node());Me=Math.max(Me,ec.lineCount(Te)),oe.push({top:0,bottom:10,height:10,left:Er-Oe.width/2,right:Er+Oe.width/2+2,width:Oe.width+2})});var Se=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ie=l.length,Ue=Math.abs((l[Ie-1].x-l[0].x)*r._m)/(Ie-1),ke=Se?Ue/2:Ue,We=Se?r.ticklen:te*1.25*Me,j=Math.sqrt(Math.pow(ke,2)+Math.pow(We,2)),ee=ke/j,me=r.autotickangles.map(function(cr){return cr*Math.PI/180}),K=me.find(function(cr){return Math.abs(Math.cos(cr))<=ee});K===void 0&&(K=me.reduce(function(cr,Er){return Math.abs(Math.cos(cr))<Math.abs(Math.cos(Er))?cr:Er},me[0]));var $=K*(180/Math.PI);if(Se){var se=2;for(r.ticks&&(se+=r.tickwidth/2),ce=0;ce<oe.length;ce++){var _e=l[ce].xbnd,Ne=oe[ce];if(_e[0]!==null&&Ne.left-r.l2p(_e[0])<se||_e[1]!==null&&r.l2p(_e[1])-Ne.right<se){p=$;break}}}else{var $e=r.ticklabelposition||"",ar=r.tickson||"",tr=function(cr){return $e.indexOf(cr)!==-1},fr=tr("top"),Re=tr("left"),ur=tr("right"),hr=tr("bottom"),dr=ar!=="boundaries"&&(hr||Re||fr||ur),Ze=dr?(r.tickwidth||0)+2*dm:0;for(ce=0;ce<oe.length-1;ce++)if(ht.bBoxIntersect(oe[ce],oe[ce+1],Ze)){p=$;break}}p&&d(c,p)}}r._selections&&(r._selections[o]=c);var b=[m];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(p=f,b.push(function(){d(c,f)})):b.push(y),r._tickAngles&&b.push(function(){r._tickAngles[o]=p===null?un(s)?s:0:p});var C=function(){var te=0,oe=0;return c.each(function(ce,Me){var Se=R6(this),Ie=Se.select(".text-math-group");if(Ie.empty()){var Ue;r._vals[Me]&&(Ue=r._vals[Me].bb||mo.bBox(Se.node()),r._vals[Me].bb=Ue),te=Math.max(te,Ue.width),oe=Math.max(oe,Ue.height)}}),{labelsMaxW:te,labelsMaxH:oe}},x=r._anchorAxis;if(x&&(x.autorange||x.insiderange)&&Wv(r)&&!hte(a,r._id)&&(a._insideTickLabelsUpdaterange||(a._insideTickLabelsUpdaterange={}),x.autorange&&(a._insideTickLabelsUpdaterange[x._name+".autorange"]=x.autorange,b.push(C)),x.insiderange)){var _=C(),A=r._id.charAt(0)==="y"?_.labelsMaxW:_.labelsMaxH;A+=2*dm,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,B=x.r2p(z[M]),X=x.r2p(z[E]),H=a._insideTickLabelsUpdaterange[x._name+".range"];if(H){var V=x.r2p(H[M]),I=x.r2p(H[E]),Q=T*(r._id.charAt(0)==="y"?1:-1);Q*B<Q*V&&(B=V,P[M]=z[M]=H[M]),Q*X>Q*I&&(X=I,P[E]=z[E]=H[E])}var le=Math.abs(X-B);le-A>0?(le-=A,A*=1+A/le):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(b);return re&&re.then&&e._promises.push(re),re};function Bte(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,gm);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Gv.stroke,r.dividercolor).style("stroke-width",mo.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}_r.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 _S(e){var r=e.title.font.size,t=(e.title.text.match(ec.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(tc+t*Vv):t?r*(t+1)*Vv:r}function Ite(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(ec.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*tc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Ov+l*Vv));else{var u=Wv(r);if(r.type==="multicategory")o=r._depth;else{var s=1.5*i;u&&(s=.5*i,r.ticks==="outside"&&(s+=r.ticklen)),o=10+s+(r.linewidth?r.linewidth-1:0)}u||(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=_r.getPxPosition(e,r),c,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,h=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var p=r._selections[r._id+"tick"];if(m={selection:p,side:r.side},p&&p.node()&&p.node().parentNode){var y=mo.getTranslate(p.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=o,ate.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}_r.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)===pm)&&(SS(r,0)||!Hte(e,r,t,a)||Ote(e,r))};_r.clipEnds=function(e,r){return r.filter(function(t){return SS(e,t.x)})};function SS(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function Hte(e,r,t,a){var n=t._mainAxis;if(!n)return;var i=e._fullLayout,o=r._id.charAt(0),l=_r.counterLetter(r._id),u=r._offset+(Math.abs(a[0])<Math.abs(a[1])==(o==="x")?0:r._length);function s(m){if(!m.showline||!m.linewidth)return!1;var p=Math.max((m.linewidth+r.zerolinewidth)/2,1);function y(x){return typeof x=="number"&&Math.abs(x-u)<p}if(y(m._mainLinePosition)||y(m._mainMirrorPosition))return!0;var b=m._linepositions||{};for(var C in b)if(y(b[C][0])||y(b[C][1]))return!0}var f=i._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return s(t,u);for(var c=_r.list(e,l),h=0;h<c.length;h++){var d=c[h];if(d._mainAxis===n&&s(d,u))return!0}}function Ote(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&&(Uv.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 R6(e){var r=Yo.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}_r.allowAutoMargin=function(e){for(var r=_r.list(e,"",!0),t=0;t<r.length;t++){var a=r[t];a.automargin&&(j1.allowAutoMargin(e,H6(a)),a.mirror&&j1.allowAutoMargin(e,FS(a))),Uv.getComponentMethod("rangeslider","isVisible")(a)&&j1.allowAutoMargin(e,ES(a))}};function H6(e){return e._id+".automargin"}function FS(e){return H6(e)+".mirror"}function ES(e){return e._id+".rangeslider"}_r.swap=function(e,r){for(var t=Ute(e,r),a=0;a<t.length;a++)Gte(e,t[a].x,t[a].y)};function Ute(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 u=t[i[0]],s;if(i.length>1)for(n=1;n<i.length;n++)s=t[i[n]],um(u.x,s.x),um(u.y,s.y);um(u.x,[o]),um(u.y,[l])}}return t}function um(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function Gte(e,r,t){var a=[],n=[],i=e.layout,o,l;for(o=0;o<r.length;o++)a.push(_r.getFromId(e,r[o]));for(o=0;o<t.length;o++)n.push(_r.getFromId(e,t[o]));var u=Object.keys(nte),s=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(o=0;o<u.length;o++){var c=u[o],h=a[0][c],d=n[0][c],m=!0,p=!1,y=!1;if(!(c.charAt(0)==="_"||typeof h=="function"||s.indexOf(c)!==-1)){for(l=1;l<a.length&&m;l++){var b=a[l][c];c==="type"&&f.indexOf(h)!==-1&&f.indexOf(b)!==-1&&h!==b?p=!0:b!==h&&(m=!1)}for(l=1;l<n.length&&m;l++){var C=n[l][c];c==="type"&&f.indexOf(d)!==-1&&f.indexOf(C)!==-1&&d!==C?y=!0:n[l][c]!==d&&(m=!1)}m&&(p&&(i[a[0]._name].type="linear"),y&&(i[n[0]._name].type="linear"),Yte(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 Yte(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(),u;for(r==="title"&&(o&&o.text===n.x&&(o.text=n.y),l&&l.text===n.y&&(l.text=n.x)),u=0;u<t.length;u++)i(e,t[u]._name+"."+r).set(l);for(u=0;u<a.length;u++)i(e,a[u]._name+"."+r).set(o)}function O6(e){return e._id==="angularaxis"}function S6(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 Wv(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function ym(e,r){Wv(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function z6(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 Vte(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function Xte(e,r){return/%f/.test(r)?e>=ste:/%L/.test(r)?e>=ute:/%[SX]/.test(r)?e>=hm:/%M/.test(r)?e>=Yv:/%[HI]/.test(r)?e>=Fu:/%p/.test(r)?e>=S0:/%[Aadejuwx]/.test(r)?e>=mi:/%[UVW]/.test(r)?e>=go:/%[Bbm]/.test(r)?e>=vm:/%[q]/.test(r)?e>=cm:/%[Yy]/.test(r)?e>=fm:!0}});var PS=ae((q3e,qS)=>{"use strict";qS.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),u=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var U6=ae((P3e,RS)=>{"use strict";var Wte=PS();RS.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 u;!n.noInsiderange&&o!=="log"&&(u=a("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=a("range",u)))}var s=t.getAutorangeDflt(l,n),f=a("autorange",s),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(s=t.getAutorangeDflt(l,n),f=a("autorange",s)),f&&(Wte(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var NS=ae((R3e,zS)=>{var jte={left:0,top:0};zS.exports=Zte;function Zte(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=Jte(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Jte(e){return e===window||e===document||e===document.body?jte:e.getBoundingClientRect()}});var G6=ae((z3e,BS)=>{"use strict";var $te=y5();function Kte(){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}BS.exports=$te&&Kte()});var HS=ae((N3e,IS)=>{"use strict";IS.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),u=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?u:i==="right"||i==="top"?l:o<2/3-u?o:l>4/3-u?l:u}});var GS=ae((B3e,US)=>{"use strict";var OS=mr(),Qte=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];US.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=OS.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=OS.constrain(Math.floor(t*3),0,2),Qte[t][r]}});var VS=ae((I3e,YS)=>{"use strict";var eae=Sv(),rae=bp(),tae=xv().getGraphDiv,aae=av(),Y6=YS.exports={};Y6.wrapped=function(e,r,t){var i;e=tae(e),e._fullLayout&&rae.clear(e._fullLayout._uid+aae.HOVERID);let a=e._hoverdata;Y6.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:[]}))};Y6.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&eae.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 Vo=ae((H3e,ZS)=>{"use strict";var nae=NS(),V6=_5(),iae=G6(),oae=mr().removeElement,lae=En(),ac=ZS.exports={};ac.align=HS();ac.getCursor=GS();var WS=VS();ac.unhover=WS.wrapped;ac.unhoverRaw=WS.raw;ac.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,u,s,f,c,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,iae?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(x,_,A){return Math.abs(x)<A&&(x=0),Math.abs(_)<A&&(_=0),[x,_]}var p=r.clampFn||m;function y(x){t._dragged=!1,t._dragging=!0;var _=XS(x);o=_[0],l=_[1],h=x.target,c=x,d=x.buttons===2||x.ctrlKey,typeof x.clientX=="undefined"&&typeof x.clientY=="undefined"&&(x.clientX=o,x.clientY=l),u=new Date().getTime(),u-t._mouseDownTime<n?a+=1:(a=1,t._mouseDownTime=u),r.prepFn&&r.prepFn(x,o,l),V6&&!d?(f=jS(),f.style.cursor=window.getComputedStyle(i).cursor):V6||(f=document,s=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",b),document.addEventListener("touchmove",b,{passive:!1}))}function b(x){x.preventDefault();var _=XS(x),A=r.minDrag||lae.MINDRAG,T=p(_[0]-o,_[1]-l,A),M=T[0],E=T[1];(M||E)&&(t._dragged=!0,ac.unhover(t,x)),t._dragged&&r.moveFn&&!d&&(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",b),document.removeEventListener("touchmove",b)),document.removeEventListener("mouseup",C),document.removeEventListener("touchend",C),V6?oae(f):s&&(f.documentElement.style.cursor=s,s=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===h?_=c:(_={target:h,srcElement:h,toElement:h},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,_),d||h.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function jS(){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}ac.coverSlip=jS;function XS(e){return nae(e.changedTouches?e.changedTouches[0]:e,document.body)}});var F0=ae((O3e,JS)=>{"use strict";JS.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 QS=ae((U3e,KS)=>{"use strict";var X6=F0(),jv="data-savedcursor",$S="!!";KS.exports=function(r,t){var a=r.attr(jv);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(jv,o.slice(7)).classed(o,!1)}r.attr(jv)||r.attr(jv,$S)}X6(r,t)}else a&&(r.attr(jv,null),a===$S?X6(r):X6(r,a))}});var j6=ae((G3e,eF)=>{"use strict";var W6=vi(),uae=Ll();eF.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:uae.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:W6({editType:"legend"}),grouptitlefont:W6({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:W6({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Jv=ae(Zv=>{"use strict";Zv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Zv.isVertical=function(r){return r.orientation!=="h"};Zv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Zv.getId=function(r){return r._id||"legend"}});var J6=ae((V3e,rF)=>{"use strict";var bm=bt(),yo=mr(),sae=Ta(),fae=Io(),cae=j6(),vae=C1(),Z6=Jv();function hae(e,r,t,a,n){var i=r[e]||{},o=sae.newContainer(t,e);function l(oe,ce){return yo.coerce(i,o,cae,oe,ce)}var u=yo.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(!s)return;var f,c=function(oe,ce){var Me=f._input,Se=f;return yo.coerce(Me,Se,fae,oe,ce)},h=t.font||{},d=yo.coerceFont(l,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),m=0,p=!1,y="normal",b=(t.shapes||[]).filter(function(oe){return oe.showlegend});function C(oe){return bm.traceIs(oe,"pie-like")&&oe._length!=null&&(Array.isArray(oe.legend)||Array.isArray(oe.showlegend))}a.filter(C).forEach(function(oe){oe.visible&&m++;for(var ce=0;ce<oe._length;ce++){var Me=(Array.isArray(oe.legend)?oe.legend[ce]:oe.legend)||"legend";Me===e&&((Array.isArray(oe.showlegend)?oe.showlegend[ce]:oe.showlegend)||oe._dfltShowLegend)&&(p=!0,m++)}if(e==="legend"&&oe._length>oe.legend.length)for(var Se=oe.legend.length;Se<oe._length;Se++)p=!0,m++});for(var x=a.concat(b).filter(function(oe){return!C(f)&&e===(oe.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))&&(m++,f.showlegend&&(p=!0,(!A&&bm.traceIs(f,"pie-like")||f._input.showlegend===!0)&&m++),yo.coerceFont(c,"legendgrouptitle.font",d)),(!A&&bm.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(y=Z6.isGrouped({traceorder:y})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(y=Z6.isReversed({traceorder:y})?"reversed+grouped":"grouped")}var T=yo.coerce(r,t,vae,"showlegend",t.showlegend||p&&m>(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",B=E==="paper",X=P==="paper",H,V,I,Q="left";z?(H=0,bm.getComponentMethod("rangeslider","isVisible")(r.xaxis)?B?(V=1.1,I="bottom"):(V=1,I="top"):B?(V=-.1,I="top"):(V=0,I="bottom")):(V=1,I="auto",X?H=1.02:(H=1,Q="right")),yo.coerce(i,o,{x:{valType:"number",editType:"legend",min:X?-2:0,max:X?3:1,dflt:H}},"x"),yo.coerce(i,o,{y:{valType:"number",editType:"legend",min:B?-2:0,max:B?3:1,dflt:V}},"y"),l("traceorder",y),Z6.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick");let le=l("groupclick");l("groupdoubleclick",le),l("xanchor",Q),l("yanchor",I),l("maxheight"),l("valign"),yo.noneOrAll(i,o,["x","y"]);var re=l("title.text");if(re){l("title.side",z?"left":"top");var te=yo.extendFlat({},u,{size:yo.bigFont(u.size)});yo.coerceFont(l,"title.font",te);let oe=n>1;l("titleclick",oe?"toggle":!1),l("titledoubleclick",oe?"toggleothers":!1)}}rF.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 u={_input:l._input,visible:l.visible,showlegend:l.showlegend,legend:l.legend};i.push(u)}}var s=["legend"];for(n=0;n<i.length;n++)Array.isArray(i[n].legend)?s=s.concat(i[n].legend):yo.pushUnique(s,i[n].legend);for(t._legends=[],n=0;n<s.length;n++){var f=s[n];hae(f,r,t,i,s.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var Q6=ae(K6=>{"use strict";var E0=bt(),$6=mr(),dae=$6.pushUnique,pae=Jv(),tF=!0;K6.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 u=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&tF&&t.data&&t._context.showTips&&($6.notifier($6._(t,"Double-click on legend to isolate one trace"),"long",t),tF=!1);var s=u==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let h=(o.shapes||[]).filter(tr=>tr.showlegend||tr.legendgroup);var d=c.concat(h),m=l.trace;m._isShape&&(m=o.shapes[m.index]);var p=m.legendgroup,y,b,C,x,_,A,T={},M=[],E=[],P=[];function z(tr,fr){var Re=M.indexOf(tr),ur=T.visible;return ur||(ur=T.visible=[]),M.indexOf(tr)===-1&&(M.push(tr),Re=M.length-1),ur[Re]=fr,Re}var B=(o.shapes||[]).map(function(tr){return tr._input}),X=!1;function H(tr,fr){B[tr].visible=fr,X=!0}function V(tr,fr){if(!(l.groupTitle&&!s)){var Re=tr._isShape,ur=tr.index;ur===void 0&&(ur=tr._index);var hr=tr.visible===!1?!1:fr;Re?H(ur,hr):z(ur,hr)}}var I=m.legend;if(!m._isShape&&E0.traceIs(m,"pie-like")){var Q=l.label,le=f.indexOf(Q);if(n==="toggle")le===-1?f.push(Q):f.splice(le,1);else if(n==="toggleothers"){var re=le!==-1,te=[];for(y=0;y<t.calcdata.length;y++){var oe=t.calcdata[y];for(b=0;b<oe.length;b++){var ce=oe[b],Me=ce.label;I===oe[0].trace.legend&&Q!==Me&&(f.indexOf(Me)===-1&&(re=!0),dae(f,Me),te.push(Me))}}if(!re)for(var Se=0;Se<te.length;Se++){var Ie=f.indexOf(te[Se]);Ie!==-1&&f.splice(Ie,1)}}E0.call("_guiRelayout",t,"hiddenlabels",f)}else{var Ue=p&&p.length,ke=[],We;if(Ue)for(y=0;y<d.length;y++)We=d[y],We.visible&&We.legendgroup===p&&ke.push(y);if(n==="toggle"){var j;switch(m.visible){case!0:j="legendonly";break;case!1:j=!1;break;case"legendonly":j=!0;break}if(Ue)if(s)for(y=0;y<d.length;y++){var ee=d[y];ee.visible!==!1&&ee.legendgroup===p&&V(ee,j)}else V(m,j);else V(m,j)}else if(n==="toggleothers"){var me,K,$,se,_e,Ne=!0;let tr=Ue&&s;for(y=0;y<d.length;y++)if(_e=d[y],me=_e===m,$=_e.showlegend!==!0,!(me||$)&&(K=tr&&_e.legendgroup===p,!K&&_e.legend===I&&_e.visible===!0&&!E0.traceIs(_e,"notLegendIsolatable"))){Ne=!1;break}for(y=0;y<d.length;y++)if(_e=d[y],!(_e.visible===!1||_e.legend!==I)&&!E0.traceIs(_e,"notLegendIsolatable"))switch(m.visible){case"legendonly":V(_e,!0);break;case!0:se=Ne?!0:"legendonly",me=_e===m,$=_e.showlegend!==!0&&!_e.legendgroup,K=me||tr&&_e.legendgroup===p,V(_e,K||$?!0:se);break}}for(y=0;y<E.length;y++)if(C=E[y],!!C){var $e=C.constructUpdate(),ar=Object.keys($e);for(b=0;b<ar.length;b++)x=ar[b],A=T[x]=T[x]||[],A[P[y]]=$e[x]}for(_=Object.keys(T),y=0;y<_.length;y++)for(x=_[y],b=0;b<M.length;b++)T[x].hasOwnProperty(b)||(T[x][b]=void 0);X?E0.call("_guiUpdate",t,T,{shapes:B},M):E0.call("_guiRestyle",t,T,M)}};K6.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,o=pae.getId(t),l=(n.shapes||[]).filter(b=>b.showlegend||b.legendgroup),u=i.concat(l);function s(b){return(b.legend||"legend")===o}var f,c;if(a==="toggle")f=!u.some(function(C){return s(C)&&C.visible===!0}),c=!1;else{let b=u.some(function(C){return!s(C)&&C.visible===!0&&C.showlegend!==!1});f=!0,c=!b}let h={visible:[]},d=[],m=(n.shapes||[]).map(function(b){return b._input});for(var p=!1,y=0;y<u.length;y++){let b=u[y],C=s(b);if(!C){let A=b.showlegend!==!0&&!b.legendgroup;if(a==="toggle"||A)continue}let _=(C?f:c)?!0:"legendonly";b.visible!==!1&&b.visible!==_&&(b._isShape?(m[b._index].visible=_,p=!0):(d.push(b.index),h.visible.push(_)))}p?E0.call("_guiUpdate",r,h,{shapes:m},d):d.length&&E0.call("_guiRestyle",r,h,d)}});var eb=ae((W3e,aF)=>{"use strict";aF.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var oF=ae((j3e,iF)=>{"use strict";var{isArrayOrTypedArray:rb}=Vi(),nF=bt(),tb=Jv();iF.exports=function(r,t,a){var n=t._inHover,i=tb.isGrouped(t),o=tb.isReversed(t),l={},u=[],s=!1,f={},c=0,h=0,d,m;function p(oe,ce,Me){if(t.visible!==!1&&!(a&&oe!==t._id))if(ce===""||!tb.isGrouped(t)){var Se="~~i"+c;u.push(Se),l[Se]=[Me],c++}else u.indexOf(ce)===-1?(u.push(ce),s=!0,l[ce]=[Me]):l[ce].push(Me)}for(d=0;d<r.length;d++){var y=r[d],b=y[0],C=b.trace,x=C.legend,_=C.legendgroup;if(!(!n&&(!C.visible||!C.showlegend)))if(nF.traceIs(C,"pie-like")){var A=Array.isArray(C.legend),T=Array.isArray(C.showlegend);for(f[_]||(f[_]={}),m=0;m<y.length;m++)if(!(T&&C.showlegend[y[m].i]===!1)){A&&(x=C.legend[y[m].i]||"legend");var M=y[m].label;f[_][M]||(p(x,_,{label:M,color:y[m].color,i:y[m].i,trace:C,pts:y[m].pts}),f[_][M]=!0,h=Math.max(h,(M||"").length))}}else p(x,_,b),h=Math.max(h,(C.name||"").length)}if(!u.length)return[];var E=!s||!i,P=[];for(d=0;d<u.length;d++){var z=l[u[d]];E?P.push(z[0]):P.push(z)}for(E&&(P=[P]),d=0;d<P.length;d++){var B=1/0;for(m=0;m<P[d].length;m++){var X=P[d][m].trace.legendrank,H=rb(X)?Math.min(X):X;B>H&&(B=H)}P[d][0]._groupMinRank=B,P[d][0]._preGroupSort=d}var V=function(oe,ce){return oe[0]._groupMinRank-ce[0]._groupMinRank||oe[0]._preGroupSort-ce[0]._preGroupSort},I=function(oe,ce){var Me=rb(oe.trace.legendrank)?oe.trace.legendrank[oe.i]:oe.trace.legendrank,Se=rb(ce.trace.legendrank)?ce.trace.legendrank[ce.i]:ce.trace.legendrank;return Me-Se||oe._preSort-ce._preSort};for(P.forEach(function(oe,ce){oe[0]._preGroupSort=ce}),P.sort(V),d=0;d<P.length;d++){P[d].forEach(function(oe,ce){oe._preSort=ce}),P[d].sort(I);var Q=P[d][0].trace,le=null;for(m=0;m<P[d].length;m++){var re=P[d][m].trace.legendgrouptitle;if(re&&re.text){le=re,n&&(re.font=t._groupTitleFont);break}}if(o&&P[d].reverse(),le){var te=!1;for(m=0;m<P[d].length;m++)if(nF.traceIs(P[d][m].trace,"pie-like")){te=!0;break}P[d].unshift({i:-1,groupTitle:le,noClick:te,trace:{showlegend:Q.showlegend,legendgroup:Q.legendgroup,legend:Q.legend,visible:t.groupclick==="toggleitem"?!0:Q.visible}})}for(m=0;m<P[d].length;m++)P[d][m]=[P[d][m]]}return t._lgroupsLength=P.length,t._maxNameLength=h,P}});var ab=ae(nc=>{"use strict";var _m=mr();function lF(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}nc.formatPiePercent=function(r,t){var a=lF((r*100).toPrecision(3));return _m.numSeparate(a,t)+"%"};nc.formatPieValue=function(r,t){var a=lF(r.toPrecision(10));return _m.numSeparate(a,t)};nc.getFirstFilled=function(r,t){if(_m.isArrayOrTypedArray(r))for(var a=0;a<t.length;a++){var n=r[t[a]];if(n||n===0||n==="")return n}};nc.castOption=function(r,t){if(_m.isArrayOrTypedArray(r))return nc.getFirstFilled(r,t);if(r)return r};nc.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var sF=ae((J3e,uF)=>{"use strict";var mae=va(),gae=Lt();uF.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?mae.pointStyle(r,a,n,t):gae.fill(r,t.color)}});var hF=ae(($3e,vF)=>{"use strict";var fF=Lt(),cF=ab().castOption,yae=sF();vF.exports=function(r,t,a,n){var i=a.marker.line,o=cF(i.color,t.pts)||fF.defaultLine,l=cF(i.width,t.pts)||0;r.call(yae,t,a,n).style("stroke-width",l).call(fF.stroke,o)}});var lb=ae((K3e,bF)=>{"use strict";var gi=St(),nb=bt(),ni=mr(),dF=ni.strTranslate,bo=va(),Xo=Lt(),ib=Tu().extractOpts,xm=pi(),bae=hF(),_ae=ab().castOption,xae=eb(),pF=12,mF=5,ic=2,wae=10,K1=5;bF.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+xae.itemGap*2)/2,u=dF(l,0),s=function(M,E,P,z){var B;if(M+1)B=M;else if(E&&E.width>0)B=E.width;else return 0;return i?z:Math.min(B,P)};r.each(function(M){var E=gi.select(this),P=ni.ensureSingle(E,"g","layers");P.style("opacity",M[0].trace.opacity);var z=a.indentation,B=a.valign,X=M[0].lineHeight,H=M[0].height;if(B==="middle"&&z===0||!X||!H)P.attr("transform",null);else{var V={top:1,bottom:-1}[B],I=V*(.5*(X-H+3))||0,Q=a.indentation;P.attr("transform",dF(Q,I))}var le=P.selectAll("g.legendfill").data([M]);le.enter().append("g").classed("legendfill",!0);var re=P.selectAll("g.legendlines").data([M]);re.enter().append("g").classed("legendlines",!0);var te=P.selectAll("g.legendsymbols").data([M]);te.enter().append("g").classed("legendsymbols",!0),te.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(T).each(h).each(m).each(d).each(y).each(_).each(x).each(f).each(c).each(b).each(C);function f(M){var E=gF(M),P=E.showFill,z=E.showLine,B=E.showGradientLine,X=E.showGradientFill,H=E.anyFill,V=E.anyLine,I=M[0],Q=I.trace,le,re,te=ib(Q),oe=te.colorscale,ce=te.reversescale,Me=function(ee){if(ee.size())if(P)bo.fillGroupStyle(ee,t,!0);else{var me="legendfill-"+Q.uid;bo.gradient(ee,t,me,ob(ce),oe,"fill")}},Se=function(ee){if(ee.size()){var me="legendline-"+Q.uid;bo.lineGroupStyle(ee),bo.gradient(ee,t,me,ob(ce),oe,"stroke")}},Ie=xm.hasMarkers(Q)||!H?"M5,0":V?"M5,-2":"M5,-3",Ue=gi.select(this),ke=Ue.select(".legendfill").selectAll("path").data(P||X?[M]:[]);if(ke.enter().append("path").classed("js-fill",!0),ke.exit().remove(),ke.attr("d",Ie+"h"+o+"v6h-"+o+"z").call(Me),z||B){var We=s(void 0,Q.line,wae,mF);re=ni.minExtend(Q,{line:{width:We}}),le=[ni.minExtend(I,{trace:re})]}var j=Ue.select(".legendlines").selectAll("path").data(z||B?[le]:[]);j.enter().append("path").classed("js-line",!0),j.exit().remove(),j.attr("d",Ie+(B?"l"+o+",0.0001":"h"+o)).call(z?bo.lineGroupStyle:Se)}function c(M){var E=gF(M),P=E.anyFill,z=E.anyLine,B=E.showLine,X=E.showMarker,H=M[0],V=H.trace,I=!X&&!z&&!P&&xm.hasText(V),Q,le;function re(We,j,ee,me){var K=ni.nestedProperty(V,We).get(),$=ni.isArrayOrTypedArray(K)&&j?j(K):K;if(i&&$&&me!==void 0&&($=me),ee){if($<ee[0])return ee[0];if($>ee[1])return ee[1]}return $}function te(We){return H._distinct&&H.index&&We[H.index]?We[H.index]:We[0]}if(X||I||B){var oe={},ce={};if(X){oe.mc=re("marker.color",te);var Me=V.type==="scattermap";oe.mx=Me?"circle":re("marker.symbol",te),oe.mo=re("marker.opacity",ni.mean,[.2,1]),oe.mlc=re("marker.line.color",te),oe.mlw=re("marker.line.width",ni.mean,[0,5],ic),oe.mld=re("marker.line.dash",te),ce.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Se=re("marker.size",ni.mean,[2,16],pF);oe.ms=Se,ce.marker.size=Se}B&&(ce.line={width:re("line.width",te,[0,10],mF)}),I&&(oe.tx="Aa",oe.tp=re("textposition",te),oe.ts=10,oe.tc=re("textfont.color",te),oe.tf=re("textfont.family",te),oe.tw=re("textfont.weight",te),oe.ty=re("textfont.style",te),oe.tv=re("textfont.variant",te),oe.tC=re("textfont.textcase",te),oe.tE=re("textfont.lineposition",te),oe.tS=re("textfont.shadow",te)),Q=[ni.minExtend(H,oe)],le=ni.minExtend(V,ce),le.selectedpoints=null,le.texttemplate=null}var Ie=gi.select(this).select("g.legendpoints"),Ue=Ie.selectAll("path.scatterpts").data(X?Q:[]);Ue.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Ue.exit().remove(),Ue.call(bo.pointStyle,le,t),X&&(Q[0].mrc=3);var ke=Ie.selectAll("g.pointtext").data(I?Q:[]);ke.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),ke.exit().remove(),ke.selectAll("text").call(bo.textPointStyle,le,t)}function h(M){var E=M[0].trace,P=E.type==="waterfall";if(M[0]._distinct&&P){var z=M[0].trace[M[0].dir].marker;return M[0].mc=z.color,M[0].mlw=z.line.width,M[0].mlc=z.line.color,p(M,this,"waterfall")}var B=[];E.visible&&P&&(B=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var X=gi.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(B);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(H){var V=gi.select(this),I=E[H[0]].marker,Q=s(void 0,I.line,K1,ic);V.attr("d",H[1]).style("stroke-width",Q+"px").call(Xo.fill,I.color),Q&&V.call(Xo.stroke,I.line.color)})}function d(M){p(M,this)}function m(M){p(M,this,"funnel")}function p(M,E,P){var z=M[0].trace,B=z.marker||{},X=B.line||{},H=B.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",V=P?z.visible&&z.type===P:nb.traceIs(z,"bar"),I=gi.select(E).select("g.legendpoints").selectAll("path.legend"+P).data(V?[M]:[]);I.enter().append("path").classed("legend"+P,!0).attr("d",H).attr("transform",u),I.exit().remove(),I.each(function(Q){var le=gi.select(this),re=Q[0],te=s(re.mlw,B.line,K1,ic);le.style("stroke-width",te+"px");var oe=re.mcc;if(!a._inHover&&"mc"in re){var ce=ib(B),Me=ce.mid;Me===void 0&&(Me=(ce.max+ce.min)/2),oe=bo.tryColorscale(B,"")(Me)}var Se=oe||re.mc||B.color,Ie=B.pattern,Ue=bo.getPatternAttr,ke=Ie&&(Ue(Ie.shape,0,"")||Ue(Ie.path,0,""));if(ke){var We=Ue(Ie.bgcolor,0,null),j=Ue(Ie.fgcolor,0,null),ee=Ie.fgopacity,me=yF(Ie.size,8,10),K=yF(Ie.solidity,.5,1),$="legend-"+z.uid;le.call(bo.pattern,"legend",t,$,ke,me,K,oe,Ie.fillmode,We,j,ee)}else le.call(Xo.fill,Se);te&&Xo.stroke(le,re.mlc||X.color)})}function y(M){var E=M[0].trace,P=gi.select(this).select("g.legendpoints").selectAll("path.legendbox").data(E.visible&&nb.traceIs(E,"box-violin")?[M]:[]);P.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),P.exit().remove(),P.each(function(){var z=gi.select(this);if((E.boxpoints==="all"||E.points==="all")&&Xo.opacity(E.fillcolor)===0&&Xo.opacity((E.line||{}).color)===0){var B=ni.minExtend(E,{marker:{size:i?pF:ni.constrain(E.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});P.call(bo.pointStyle,B,t)}else{var X=s(void 0,E.line,K1,ic);z.style("stroke-width",X+"px").call(Xo.fill,E.fillcolor),X&&Xo.stroke(z,E.line.color)}})}function b(M){var E=M[0].trace,P=gi.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(E.visible&&E.type==="candlestick"?[M,M]:[]);P.enter().append("path").classed("legendcandle",!0).attr("d",function(z,B){return B?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(z,B){var X=gi.select(this),H=E[B?"increasing":"decreasing"],V=s(void 0,H.line,K1,ic);X.style("stroke-width",V+"px").call(Xo.fill,H.fillcolor),V&&Xo.stroke(X,H.line.color)})}function C(M){var E=M[0].trace,P=gi.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(E.visible&&E.type==="ohlc"?[M,M]:[]);P.enter().append("path").classed("legendohlc",!0).attr("d",function(z,B){return B?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(z,B){var X=gi.select(this),H=E[B?"increasing":"decreasing"],V=s(void 0,H.line,K1,ic);X.style("fill","none").call(bo.dashLine,H.line.dash,V),V&&Xo.stroke(X,H.line.color)})}function x(M){A(M,this,"pie")}function _(M){A(M,this,"funnelarea")}function A(M,E,P){var z=M[0],B=z.trace,X=P?B.visible&&B.type===P:nb.traceIs(B,P),H=gi.select(E).select("g.legendpoints").selectAll("path.legend"+P).data(X?[M]:[]);if(H.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),H.exit().remove(),H.size()){var V=B.marker||{},I=s(_ae(V.line.width,z.pts),V.line,K1,ic),Q="pieLike",le=ni.minExtend(B,{marker:{line:{width:I}}},Q),re=ni.minExtend(z,{trace:le},Q);bae(H,re,le,t)}}function T(M){var E=M[0].trace,P,z=[];if(E.visible)switch(E.type){case"histogram2d":case"heatmap":z=[["M-15,-2V4H15V-2Z"]],P=!0;break;case"choropleth":case"choroplethmap":z=[["M-6,-6V6H6V-6Z"]],P=!0;break;case"densitymap":z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],P="radial";break;case"cone":z=[["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"]],P=!1;break;case"streamtube":z=[["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"]],P=!1;break;case"surface":z=[["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"]],P=!0;break;case"mesh3d":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!1;break;case"volume":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!0;break;case"isosurface":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],P=!1;break}var B=gi.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(z);B.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(X,H){var V=gi.select(this),I=ib(E),Q=I.colorscale,le=I.reversescale,re=function(Me){if(Me.size()){var Se="legendfill-"+E.uid;bo.gradient(Me,t,Se,ob(le,P==="radial"),Q,"fill")}},te;if(Q){if(!P){var ce=Q.length;te=H===0?Q[le?ce-1:0][1]:H===1?Q[le?0:ce-1][1]:Q[Math.floor((ce-1)/2)][1]}}else{var oe=E.vertexcolor||E.facecolor||E.color;te=ni.isArrayOrTypedArray(oe)?oe[H]||oe[0]:oe}V.attr("d",X[0]),te?V.call(Xo.fill,te):V.call(re)})}};function ob(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function gF(e){var r=e[0].trace,t=r.contours,a=xm.hasLines(r)||r.visible&&r.type==="quiver",n=xm.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var u=t.coloring;u==="lines"?o=!0:a=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function yF(e,r,t){return e&&ni.isArrayOrTypedArray(e)?r:e>t?t:e}});var cb=ae((Q3e,DF)=>{"use strict";var Si=St(),sn=mr(),sb=An(),oc=bt(),Mm=Sv(),ub=Vo(),fn=va(),$v=Lt(),lc=ai(),_F=Q6().handleItemClick,xF=Q6().handleTitleClick,dn=eb(),fb=ti(),kF=fb.LINE_SPACING,e2=fb.FROM_TL,wF=fb.FROM_BR,AF=oF(),Aae=lb(),r2=Jv(),Q1=1,Mae=/^legend[0-9]*$/;DF.exports=function(r,t){if(t)MF(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var s=Si.select(this),f=s.attr("class"),c=f.split(" ")[0];c.match(Mae)&&n.indexOf(c)===-1&&s.remove()});for(var o=0;o<n.length;o++){var l=n[o],u=r._fullLayout[l];MF(r,u)}}};function Tae(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*kF,i=0,o=e.node(),l=fn.bBox(o).width;r.title.side==="top center"?i=.5*(r._width-2*t-2*dn.titlePad-l):r.title.side==="top right"&&(i=r._width-2*t-2*dn.titlePad-l),lc.positionText(e,t+dn.titlePad+i,t+n)}}function MF(e,r){var t=r||{},a=e._fullLayout,n=r2.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 u;if(l){if(!t.entries)return;u=AF(t.entries,t)}else{for(var s=(e.calcdata||[]).slice(),f=a.shapes,c=0;c<f.length;c++){var h=f[c];if(h.showlegend){var d={_isShape:!0,index:h._index,name:h.name||h.label.text||"shape "+h._index,legend:h.legend,legendgroup:h.legendgroup,legendgrouptitle:h.legendgrouptitle,legendrank:h.legendrank,legendwidth:h.legendwidth,showlegend:h.showlegend,visible:h.visible,opacity:h.opacity,mode:h.type==="line"?"lines":"markers",line:h.line,marker:{line:h.line,color:h.fillcolor,size:12,symbol:h.type==="rect"?"square":h.type==="circle"?"circle":"hexagon2"}};s.push([{trace:d}])}}u=a.showlegend&&AF(s,t,a._legends.length>1)}var m=a.hiddenlabels||[];if(!l&&(!a.showlegend||!u.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),sb.autoMargin(e,n);var p=sn.ensureSingle(o,"g",n,function(E){l||E.attr("pointer-events","all")}),y=sn.ensureSingleById(a._topdefs,"clipPath",i,function(E){E.append("rect")}),b=sn.ensureSingle(p,"rect","bg",function(E){E.attr("shape-rendering","crispEdges")});b.call($v.stroke,t.bordercolor).call($v.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=sn.ensureSingle(p,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var _;x.text?(_=sn.ensureSingle(C,"text",n+"titletext"),_.attr("text-anchor","start").call(fn.font,x.font).text(x.text),Am(_,C,e,t,Q1),!l&&(t.titleclick||t.titledoubleclick)&&Dae(C,e,t,n)):(C.selectAll("."+n+"titletext").remove(),C.selectAll("."+n+"titletoggle").remove());var A=sn.ensureSingle(p,"rect","scrollbar",function(E){E.attr(dn.scrollBarEnterAttrs).call($v.fill,dn.scrollBarColor)}),T=C.selectAll("g.groups").data(u);T.enter().append("g").attr("class","groups"),T.exit().remove();var M=T.selectAll("g.traces").data(sn.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 B=z.legendgroup,X=(a.shapes||[]).filter(function(V){return V.showlegend});return e._fullData.concat(X).some(function(V){return V.legendgroup===B&&(V.legend||"legend")===n&&V.visible===!0})?1:.5}return oc.traceIs(z,"pie-like")?m.indexOf(E[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Si.select(this).call(kae,e,t)}).call(Aae,e,t).each(function(E){l||E[0].groupTitle&&t.groupclick==="toggleitem"||Si.select(this).call(Cae,e,n)}),sn.syncOrAsync([sb.previousPromises,function(){return Eae(e,T,M,t,C)},function(){var E=a._size,P=t.borderwidth,z=t.xref==="paper",B=t.yref==="paper";if(x.text){let Ne=(a.shapes||[]).filter(function(ar){return ar.showlegend}),$e=e._fullData.concat(Ne).some(function(ar){let tr=ar.legend||"legend";var fr=Array.isArray(tr)?tr.includes(n):tr===n;return fr&&ar.visible===!0});_.style("opacity",$e?1:.5)}if(!l){var X,H;z?X=E.l+E.w*t.x-e2[Tm(t)]*t._width:X=a.width*t.x-e2[Tm(t)]*t._width,B?H=E.t+E.h*(1-t.y)-e2[km(t)]*t._effHeight:H=a.height*(1-t.y)-e2[km(t)]*t._effHeight;var V=Lae(e,n,X,H);if(V)return;if(a.margin.autoexpand){var I=X,Q=H;X=z?sn.constrain(X,0,a.width-t._width):I,H=B?sn.constrain(H,0,a.height-t._effHeight):Q,X!==I&&sn.log("Constrain "+n+".x to make legend fit inside graph"),H!==Q&&sn.log("Constrain "+n+".y to make legend fit inside graph")}fn.setTranslate(p,X,H)}if(A.on(".drag",null),p.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var le=t._effHeight;l&&(le=t._height),b.attr({width:t._width-P,height:le-P,x:P/2,y:P/2}),fn.setTranslate(C,0,0),y.select("rect").attr({width:t._width-2*P,height:le-2*P,x:P,y:P}),fn.setClipUrl(C,i,e),fn.setRect(A,0,0,0,0),delete t._scrollY}else{var re=Math.max(dn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),te=t._effHeight-re-2*dn.scrollBarMargin,oe=t._height-t._effHeight,ce=te/oe,Me=Math.min(t._scrollY||0,oe);b.attr({width:t._width-2*P+dn.scrollBarWidth+dn.scrollBarMargin,height:t._effHeight-P,x:P/2,y:P/2}),y.select("rect").attr({width:t._width-2*P+dn.scrollBarWidth+dn.scrollBarMargin,height:t._effHeight-2*P,x:P,y:P+Me}),fn.setClipUrl(C,i,e),me(Me,re,ce),p.on("wheel",function(){Me=sn.constrain(t._scrollY+Si.event.deltaY/oe*te,0,oe),me(Me,re,ce),Me!==0&&Me!==oe&&Si.event.preventDefault()});var Se,Ie,Ue,ke=function(Ne,$e,ar){var tr=(ar-$e)/ce+Ne;return sn.constrain(tr,0,oe)},We=function(Ne,$e,ar){var tr=($e-ar)/ce+Ne;return sn.constrain(tr,0,oe)},j=Si.behavior.drag().on("dragstart",function(){var Ne=Si.event.sourceEvent;Ne.type==="touchstart"?Se=Ne.changedTouches[0].clientY:Se=Ne.clientY,Ue=Me}).on("drag",function(){var Ne=Si.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ne.type==="touchmove"?Ie=Ne.changedTouches[0].clientY:Ie=Ne.clientY,Me=ke(Ue,Se,Ie),me(Me,re,ce))});A.call(j);var ee=Si.behavior.drag().on("dragstart",function(){var Ne=Si.event.sourceEvent;Ne.type==="touchstart"&&(Se=Ne.changedTouches[0].clientY,Ue=Me)}).on("drag",function(){var Ne=Si.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,Me=We(Ue,Se,Ie),me(Me,re,ce))});C.call(ee)}function me(Ne,$e,ar){t._scrollY=e._fullLayout[n]._scrollY=Ne,fn.setTranslate(C,0,-Ne),fn.setRect(A,t._width,dn.scrollBarMargin+Ne*ar,dn.scrollBarWidth,$e),y.select("rect").attr("y",P+Ne)}if(e._context.edits.legendPosition){var K,$,se,_e;p.classed("cursor-move",!0),ub.init({element:p.node(),gd:e,prepFn:function(Ne){if(Ne.target!==A.node()){var $e=fn.getTranslate(p);se=$e.x,_e=$e.y}},moveFn:function(Ne,$e){if(se!==void 0&&_e!==void 0){var ar=se+Ne,tr=_e+$e;fn.setTranslate(p,ar,tr),K=ub.align(ar,t._width,E.l,E.l+E.w,t.xanchor),$=ub.align(tr+t._height,-t._height,E.t+E.h,E.t,t.yanchor)}},doneFn:function(){if(K!==void 0&&$!==void 0){var Ne={};Ne[n+".x"]=K,Ne[n+".y"]=$,oc.call("_guiRelayout",e,Ne)}},clickFn:function(Ne,$e){var ar=o.selectAll("g.traces").filter(function(){var tr=this.getBoundingClientRect();return $e.clientX>=tr.left&&$e.clientX<=tr.right&&$e.clientY>=tr.top&&$e.clientY<=tr.bottom});ar.size()>0&&CF(e,t,ar,Ne,$e)}})}}],e)}}function wm(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function CF(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,u=r.itemdoubleclick,s={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&&(s.group=o._group),oc.traceIs(o,"pie-like")&&(s.label=t.datum()[0].label);var f=Mm.triggerHandler(e,"plotly_legendclick",s);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&_F(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Mm.triggerHandler(e,"plotly_legenddoubleclick",s);c!==!1&&f!==!1&&u&&_F(t,e,r,u,a)}}function kae(e,r,t){var a=r2.getId(t),n=e.data()[0][0],i=n.trace,o=oc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,u=t._maxNameLength,s,f;n.groupTitle?(s=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?s=n.text:(s=o?n.label:i.name,i._meta&&(s=sn.templateString(s,i._meta))));var c=sn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(fn.font,f).text(l?TF(s,u):s);var h=t.indentation+t.itemwidth+dn.itemGap*2;lc.positionText(c,h,0),l?c.call(lc.makeEditable,{gd:r,text:s}).call(Am,e,r,t).on("edit",function(d){this.text(TF(d,u)).call(Am,e,r,t);var m={};return m.name=d,n.trace._isShape?oc.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):oc.call("_guiRestyle",r,m,i.index)}):Am(c,e,r,t)}function TF(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 Cae(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=sn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call($v.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)),CF(r,l,e,i,Si.event)}}))}function Dae(e,r,t,a){if(r._fullData.some(function(s){let f=s.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&oc.traceIs(s,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let u=sn.ensureSingle(e,"rect",a+"titletoggle",function(s){r._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call($v.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(u.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTime<i?l+=1:(l=1,r._legendMouseDownTime=o)}),u.on("mouseup",function(){if(r._dragged||r._editing)return;new Date().getTime()-r._legendMouseDownTime>i&&(l=Math.max(l-1,1));let s={event:Si.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(Mm.triggerHandler(r,"plotly_legendtitleclick",s)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&xF(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Mm.triggerHandler(r,"plotly_legendtitledoubleclick",s)!==!1&&t.titledoubleclick&&xF(r,t,t.titledoubleclick))}))}function Am(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),lc.convertToTspans(e,t,function(){Sae(r,t,a,n)})}function Sae(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(),u=r2.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;a===Q1?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*kF,h,d;if(l){var m=fn.bBox(l);h=m.height,d=m.width,a===Q1?fn.setTranslate(o,s,s+h*.75):fn.setTranslate(o,0,h*.25)}else{var p="."+u+(a===Q1?"title":"")+"text",y=e.select(p),b=lc.lineCount(y),C=y.node();if(h=c*b,d=C?fn.bBox(C).width:0,a===Q1)t.title.side==="left"&&(d+=dn.itemGap*2),lc.positionText(y,s+dn.titlePad,s+c);else{var x=dn.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(x=dn.itemGap,d-=t.indentation+t.itemwidth),lc.positionText(y,x,-c*((b-1)/2-.3))}}a===Q1?(t._titleWidth=d,t._titleHeight=h):(n.lineHeight=c,n.height=Math.max(h,16)+3,n.width=d)}function Fae(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 Eae(e,r,t,a,n){var i=e._fullLayout,o=r2.getId(a);a||(a=i[o]);var l=i._size,u=r2.isVertical(a),s=r2.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,h=2*c,d=dn.itemGap,m=a.indentation+a.itemwidth+d*2,p=2*(c+d),y=km(a),b=a.y<0||a.y===0&&y==="top",C=a.y>1||a.y===1&&y==="bottom",x=a.tracegroupgap,_={};let{orientation:A,yref:T}=a,{maxheight:M}=a,E=b||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 B=Fae(a);if(u)t.each(function(Ne){var $e=Ne[0].height;fn.setTranslate(this,c+B[0],c+B[1]+a._height+$e/2+d),a._height+=$e,a._width=Math.max(a._width,Ne[0].width)}),z=m+a._width,a._width+=d+m+h,a._height+=p,s&&(r.each(function(Ne,$e){fn.setTranslate(this,0,$e*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var X=Tm(a),H=a.x<0||a.x===0&&X==="right",V=a.x>1||a.x===1&&X==="left",I=C||b,Q=i.width/2;a._maxWidth=Math.max(H?I&&X==="left"?l.l+l.w:Q:V?I&&X==="right"?l.r+l.w:Q:l.w,2*m);var le=0,re=0;t.each(function(Ne){var $e=wm(Ne,a,m);le=Math.max(le,$e),re+=$e}),z=null;var te=0;if(s){var oe=0,ce=0,Me=0;r.each(function(){var Ne=0,$e=0;Si.select(this).selectAll("g.traces").each(function(tr){var fr=wm(tr,a,m),Re=tr[0].height;fn.setTranslate(this,B[0],B[1]+c+d+Re/2+$e),$e+=Re,Ne=Math.max(Ne,fr),_[tr[0].trace.legendgroup]=Ne});var ar=Ne+d;ce>0&&ar+c+ce>a._maxWidth?(te=Math.max(te,ce),ce=0,Me+=oe+x,oe=$e):oe=Math.max(oe,$e),fn.setTranslate(this,ce,Me),ce+=ar}),a._width=Math.max(te,ce)+c,a._height=Me+oe+p}else{var Se=t.size(),Ie=re+h+(Se-1)*d<a._maxWidth,Ue=0,ke=0,We=0,j=0;t.each(function(Ne){var $e=Ne[0].height,ar=wm(Ne,a,m,s),tr=Ie?ar:le;f||(tr+=d),tr+c+ke-d>=a._maxWidth&&(te=Math.max(te,j),ke=0,We+=Ue,a._height+=Ue,Ue=0),fn.setTranslate(this,B[0]+c+ke,B[1]+c+We+$e/2+d),j=ke+ar+d,ke+=tr,Ue=Math.max(Ue,$e)}),Ie?(a._width=ke+h,a._height=Ue+p):(a._width=Math.max(te,j)+h,a._height+=Ue+p)}}a._width=Math.ceil(Math.max(a._width+B[0],a._titleWidth+2*(c+dn.titlePad))),a._height=Math.ceil(Math.max(a._height+B[1],a._titleHeight+2*(c+dn.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ee=e._context.edits,me=ee.legendText||ee.legendPosition;t.each(function(Ne){var $e=Si.select(this).select("."+o+"toggle"),ar=Ne[0].height,tr=Ne[0].trace.legendgroup,fr=wm(Ne,a,m);s&&tr!==""&&(fr=_[tr]);var Re=me?m:z||fr;!u&&!f&&(Re+=d/2),fn.setRect($e,0,-ar/2,Re,ar)});var K=n.select("."+o+"titletext");K.node()&&Tae(K,a,c);var $=n.select("."+o+"titletoggle");if($.size()&&K.node()){var se=K.attr("x")||0,_e=dn.titlePad;fn.setRect($,se-_e,c,a._titleWidth+2*_e,a._titleHeight+2*_e)}}function Lae(e,r,t,a){var n=e._fullLayout,i=n[r],o=Tm(i),l=km(i),u=i.xref==="paper",s=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(u&&s)return sb.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*e2[o],r:i._width*wF[o],b:i._effHeight*wF[l],t:i._effHeight*e2[l]});u?e._fullLayout._reservedMargin[r][f]=h[f]:s||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=h[c]:e._fullLayout._reservedMargin[r][f]=h[f]}function Tm(e){return sn.isRightAnchor(e)?"right":sn.isCenterAnchor(e)?"center":"left"}function km(e){return sn.isBottomAnchor(e)?"bottom":sn.isMiddleAnchor(e)?"middle":"top"}});var pb=ae(db=>{"use strict";var uc=St(),Es=Wt(),ja=mr(),qae=ja.pushUnique,vb=ja.strTranslate,Pae=ja.strRotate,Rae=Sv(),Wo=ai(),zae=QS(),Lu=va(),pn=Lt(),Cm=Vo(),qu=Ba(),Nae=En().zindexSeparator,a2=bt(),_o=Fs(),sc=av(),Bae=J6(),Iae=cb(),zF=sc.YANGLE,hb=Math.PI*zF/180,Hae=1/Math.sin(hb),Oae=Math.cos(hb),Uae=Math.sin(hb),Pa=sc.HOVERARROWSIZE,zt=sc.HOVERTEXTPAD,SF={box:!0,ohlc:!0,violin:!0,candlestick:!0},Gae={scatter:!0,scattergl:!0,splom:!0};function FF(e,r){return e.distance-r.distance}db.hover=function(r,t,a,n){r=ja.getGraphDiv(r);var i=t.target;ja.throttle(r._fullLayout._uid+sc.HOVERID,sc.HOVERMINTIME,function(){Yae(r,t,a,n,i)})};db.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=OF(n),o=UF(n),l=r.map(function(y){var b=y._x0||y.x0||y.x||0,C=y._x1||y.x1||y.x||0,x=y._y0||y.y0||y.y||0,_=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var T=Math.min(b,C),M=Math.max(b,C),E=Math.min(x,_),P=Math.max(x,_),z=y.trace;if(a2.traceIs(z,"gl3d")){var B=n._fullLayout[z.scene]._scene.container,X=B.offsetLeft,H=B.offsetTop;T+=X,M+=X,E+=H,P+=H}A.bbox={x0:T+o,x1:M+o,y0:E+i,y1:P+i},A.xPixel=(b+C)/2,A.yPixel=(x+_)/2,t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||pn.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),u=!1,s=BF(l,{gd:n,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||pn.background,container:uc.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,c=5,h=0,d=0;f.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var C=y.y0-y.by/2;C-c<h?y.offset=h-C+c:y.offset=0,h=C+y.by+y.offset,b===t.anchorIndex&&(d=y.offset)}).each(function(y){y.offset-=d});var m=n._fullLayout._invScaleX,p=n._fullLayout._invScaleY;return HF(f,u,m,p),a?f:f.node()};function Yae(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(Nae)[0]);var i=Array.isArray(t)?t:[t],o,l=e._fullLayout,u=l.hoversubplots,s=l._plots||[],f=s[t],c=l._has("cartesian"),h=r.hovermode||l.hovermode,d=(h||"").charAt(0)==="x",m=(h||"").charAt(0)==="y",p,y;if(c&&(d||m)&&u==="axis"){for(var b=i.length,C=0;C<b;C++)if(o=i[C],s[o]){p=qu.getFromId(e,o,"x"),y=qu.getFromId(e,o,"y");var x=(d?p:y)._subplotsWith;if(x&&x.length)for(var _=0;_<x.length;_++)qae(i,x[_])}}if(f&&u!=="single"){var A=f.overlays.map(function(Jr){return Jr.id});i=i.concat(A)}for(var T=i.length,M=new Array(T),E=new Array(T),P=!1,z=0;z<T;z++)if(o=i[z],s[o])P=!0,M[z]=s[o].xaxis,E[z]=s[o].yaxis;else if(l[o]&&l[o]._subplot){var B=l[o]._subplot;M[z]=B.xaxis,E[z]=B.yaxis}else{ja.warn("Unrecognized subplot: "+o);return}if(h&&!P&&(h="closest"),["x","y","closest","x unified","y unified"].indexOf(h)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return Cm.unhoverRaw(e,r);var X=l.hoverdistance;X===-1&&(X=1/0);var H=l.spikedistance;H===-1&&(H=1/0);var V=[],I=[],Q,le,re,te,oe,ce,Me,Se,Ie,Ue,ke,We,j,ee={hLinePoint:null,vLinePoint:null},me=!1;if(Array.isArray(r))for(h="array",re=0;re<r.length;re++)oe=e.calcdata[r[re].curveNumber||0],oe&&(ce=oe[0].trace,oe[0].trace.hoverinfo!=="skip"&&(I.push(oe),ce.orientation==="h"&&(me=!0)));else{var K=e.calcdata.slice();for(K.sort(function(Jr,ua){var Rt=Jr[0].trace.zorder||0,pa=ua[0].trace.zorder||0;return Rt-pa}),te=0;te<K.length;te++)oe=K[te],ce=oe[0].trace,ce.hoverinfo!=="skip"&&_o.isTraceInSubplots(ce,i)&&(I.push(oe),ce.orientation==="h"&&(me=!0));var $=!n,se,_e;if($)"xpx"in r?se=r.xpx:se=M[0]._length/2,"ypx"in r?_e=r.ypx:_e=E[0]._length/2;else{if(Rae.triggerHandler(e,"plotly_beforehover",r)===!1)return;var Ne=n.getBoundingClientRect();se=r.clientX-Ne.left,_e=r.clientY-Ne.top,l._calcInverseTransform(e);var $e=ja.apply3DTransform(l._invTransform)(se,_e);if(se=$e[0],_e=$e[1],se<0||se>M[0]._length||_e<0||_e>E[0]._length)return Cm.unhoverRaw(e,r)}if(r.pointerX=se+M[0]._offset,r.pointerY=_e+E[0]._offset,"xval"in r?Q=_o.flat(i,r.xval):Q=_o.p2c(M,se),"yval"in r?le=_o.flat(i,r.yval):le=_o.p2c(E,_e),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Es(Q[0])||!Es(le[0]))return ja.warn("Fx.hover failed",r,e),Cm.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=Q,e._hoverYVals=le,e._hoverXAxes=M,e._hoverYAxes=E);var ar=1/0;function tr(Jr,ua){for(te=0;te<I.length;te++)if(oe=I[te],!(!oe||!oe[0]||!oe[0].trace)&&(ce=oe[0].trace,!(ce.visible!==!0||ce._length===0)&&["carpet","contourcarpet"].indexOf(ce._module.name)===-1)){if(Ie=h,_o.isUnifiedHover(Ie)&&(Ie=Ie.charAt(0)),ce.type==="splom"?(Se=0,Me=i[Se]):(Me=_o.getSubplot(ce),Se=i.indexOf(Me)),We={cd:oe,trace:ce,xa:M[Se],ya:E[Se],maxHoverDistance:X,maxSpikeDistance:H,index:!1,distance:Math.min(ar,X),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:pn.defaultLine,name:ce.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[Me]&&(We.subplot=l[Me]._subplot),l._splomScenes&&l._splomScenes[ce.uid]&&(We.scene=l._splomScenes[ce.uid]),Ie==="array"){var Rt=r[te];if("pointNumber"in Rt){let Da=oe[Rt.pointNumber];Da&&(We.index=Rt.pointNumber,Da.lonlat?(Ue=Da.lonlat[0],ke=Da.lonlat[1]):(Ue=Da.x,ke=Da.y)),Ie="closest"}else Ie="","xval"in Rt&&(Ue=Rt.xval,Ie="x"),"yval"in Rt&&(ke=Rt.yval,Ie=Ie?"closest":"y")}else Jr!==void 0&&ua!==void 0?(Ue=Jr,ke=ua):(Ue=Q[Se],ke=le[Se]);if(j=V.length,X!==0)if(ce._module&&ce._module.hoverPoints){var pa=ce._module.hoverPoints(We,Ue,ke,Ie,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:u,gd:e});if(pa)for(var ya,ba=0;ba<pa.length;ba++)ya=pa[ba],Es(ya.x0)&&Es(ya.y0)&&V.push(jae(ya,h))}else ja.log("Unrecognized trace type in hover:",ce);if(h==="closest"&&V.length>j&&(V.splice(0,j),ar=V[0].distance),c&&H!==0&&V.length===0){We.distance=H,We.index=!1;var Yt=ce._module.hoverPoints(We,Ue,ke,"closest",{hoverLayer:l._hoverlayer});if(Yt&&(Yt=Yt.filter(function(Da){return Da.spikeDistance<=H})),Yt&&Yt.length){var za,gn=Yt.filter(function(Da){return Da.xa.showspikes&&Da.xa.spikesnap!=="hovered data"});if(gn.length){var ma=gn[0];Es(ma.x0)&&Es(ma.y0)&&(za=Re(ma),(!ee.vLinePoint||ee.vLinePoint.spikeDistance>za.spikeDistance)&&(ee.vLinePoint=za))}var aa=Yt.filter(function(Da){return Da.ya.showspikes&&Da.ya.spikesnap!=="hovered data"});if(aa.length){var Fa=aa[0];Es(Fa.x0)&&Es(Fa.y0)&&(za=Re(Fa),(!ee.hLinePoint||ee.hLinePoint.spikeDistance>za.spikeDistance)&&(ee.hLinePoint=za))}}}}}tr();function fr(Jr,ua,Rt){for(var pa=null,ya=1/0,ba,Yt=0;Yt<Jr.length;Yt++)p&&p._id!==Jr[Yt].xa._id||y&&y._id!==Jr[Yt].ya._id||(ba=Jr[Yt].spikeDistance,Rt&&Yt===0&&(ba=-1/0),ba<=ya&&ba<=ua&&(pa=Jr[Yt],ya=ba));return pa}function Re(Jr){return Jr?{xa:Jr.xa,ya:Jr.ya,x:Jr.xSpike!==void 0?Jr.xSpike:(Jr.x0+Jr.x1)/2,y:Jr.ySpike!==void 0?Jr.ySpike:(Jr.y0+Jr.y1)/2,distance:Jr.distance,spikeDistance:Jr.spikeDistance,curveNumber:Jr.trace.index,color:Jr.color,pointNumber:Jr.index}:null}var ur={fullLayout:l,container:l._hoverlayer,event:r},hr=e._spikepoints,dr={vLinePoint:ee.vLinePoint,hLinePoint:ee.hLinePoint};e._spikepoints=dr;var Ze=function(){var Jr=V.filter(function(Rt){return p&&p._id===Rt.xa._id&&y&&y._id===Rt.ya._id}),ua=V.filter(function(Rt){return!(p&&p._id===Rt.xa._id&&y&&y._id===Rt.ya._id)});Jr.sort(FF),ua.sort(FF),V=Jr.concat(ua),V=Jae(V,h)};Ze();var cr=h.charAt(0),Er=(cr==="x"||cr==="y")&&V[0]&&Gae[V[0].trace.type];if(c&&H!==0&&V.length!==0){var Te=V.filter(function(Jr){return Jr.ya.showspikes}),Oe=fr(Te,H,Er);ee.hLinePoint=Re(Oe);var Ar=V.filter(function(Jr){return Jr.xa.showspikes}),Nr=fr(Ar,H,Er);ee.vLinePoint=Re(Nr)}if(V.length===0){var Qe=Cm.unhoverRaw(e,r);if(c&&(ee.hLinePoint!==null||ee.vLinePoint!==null)&&qF(hr)&&LF(e,ee,ur),l.hoveranywhere&&!a&&n){var Be=e._hoverdata;Be&&Be.length&&(e.emit("plotly_unhover",{event:r,points:Be}),e._hoverdata=[]),Un([]),e._hoverAnywhereActive=!0}return Qe}if(c&&qF(hr)&&LF(e,ee,ur),_o.isXYhover(Ie)&&V[0].length!==0&&V[0].trace.type!=="splom"){var Xe=V[0];SF[Xe.trace.type]?V=V.filter(Jr=>Jr.trace.index===Xe.trace.index):V=[Xe];var yr=V.length,kr=RF("x",Xe,l),pr=RF("y",Xe,l);tr(kr,pr);var xr=[],Pr={},Fr=0,Hr=function(Jr){var ua=SF[Jr.trace.type]?NF(Jr):Jr.trace.index;if(!Pr[ua])Fr++,Pr[ua]=Fr,xr.push(Jr);else{var Rt=Pr[ua]-1,pa=xr[Rt];Rt>0&&Math.abs(Jr.distance)<Math.abs(pa.distance)&&(xr[Rt]=Jr)}},rr;for(rr=0;rr<yr;rr++)Hr(V[rr]);for(rr=V.length-1;rr>yr-1;rr--)Hr(V[rr]);V=xr,Ze()}var Cr=e._hoverdata,vr=[],Xr=OF(e),Kr=UF(e);for(let Jr of V){var Lr=_o.makeEventData(Jr,Jr.trace,Jr.cd);if(Jr.hovertemplate!==!1){var Wr=!1;Jr.cd[Jr.index]&&Jr.cd[Jr.index].ht&&(Wr=Jr.cd[Jr.index].ht),Jr.hovertemplate=Wr||Jr.trace.hovertemplate||!1}if(Jr.xa&&Jr.ya){var Ae=Jr.x0+Jr.xa._offset,Pe=Jr.x1+Jr.xa._offset,sr=Jr.y0+Jr.ya._offset,gr=Jr.y1+Jr.ya._offset,Bt=Math.min(Ae,Pe),Gt=Math.max(Ae,Pe),na=Math.min(sr,gr),Ma=Math.max(sr,gr);Lr.bbox={x0:Bt+Kr,x1:Gt+Kr,y0:na+Xr,y1:Ma+Xr},Lr.xPixel=(Ae+Pe)/2,Lr.yPixel=(sr+gr)/2}Jr.eventData=[Lr],vr.push(Lr)}e._hoverdata=vr;var It=h==="y"&&(I.length>1||V.length>1)||h==="closest"&&me&&V.length>1,jt=pn.combine(l.plot_bgcolor||pn.background,l.paper_bgcolor),da=BF(V,{gd:e,hovermode:h,rotateLabels:It,bgColor:jt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),ea=da.hoverLabels;if(_o.isUnifiedHover(h)||(Xae(ea,It,l,da.commonLabelBoundingBox),HF(ea,It,l._invScaleX,l._invScaleY)),n&&n.tagName){var mn=a2.getComponentMethod("annotations","hasClickToShow")(e,vr);zae(uc.select(n),mn?"pointer":"")}var rn=Zae(e,r,Cr);if(!n||a||!rn&&!l.hoveranywhere)return;Cr&&rn&&e.emit("plotly_unhover",{event:r,points:Cr}),Un(e._hoverdata);function Un(Jr){e.emit("plotly_hover",{event:r,points:Jr,xaxes:M,yaxes:E,xvals:_o.c2dApply(M,Q),yvals:_o.c2dApply(E,le),xPixel:r.pointerX,yPixel:r.pointerY})}}function NF(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 Vae=/<extra>([\s\S]*)<\/extra>/;function BF(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||sc.HOVERFONT,c=r.fontSize||sc.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,p=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,C=e[0],x=C.xa,_=C.ya,A=n.charAt(0),T=A+"Label",M=C[T];if(M===void 0&&x.type==="multicategory")for(var E=0;E<e.length&&(M=e[E][T],M===void 0);E++);var P=t2(t,u),z=P.top,B=P.width,X=P.height,H=M!==void 0&&C.distance<=r.hoverdistance&&(n==="x"||n==="y");if(H){var V=!0,I,Q;for(I=0;I<e.length;I++)if(V&&e[I].zLabel===void 0&&(V=!1),Q=e[I].hoverinfo||e[I].trace.hoverinfo,Q){var le=Array.isArray(Q)?Q:Q.split("+");if(le.indexOf("all")===-1&&le.indexOf(n)===-1){H=!1;break}}V&&(H=!1)}var re=l.selectAll("g.axistext").data(H?[0]:[]);re.enter().append("g").classed("axistext",!0),re.exit().remove();var te={minX:0,maxX:0,minY:0,maxY:0};if(re.each(function(){var Qe=uc.select(this),Be=ja.ensureSingle(Qe,"path","",function(na){na.style({"stroke-width":"1px"})}),Xe=ja.ensureSingle(Qe,"text","",function(na){na.attr("data-notex",1)}),yr=s.bgcolor||pn.defaultLine,kr=s.bordercolor||pn.contrast(yr),pr=pn.contrast(yr),xr=s.font,Pr={weight:xr.weight||h,style:xr.style||d,variant:xr.variant||m,textcase:xr.textcase||p,lineposition:xr.lineposition||y,shadow:xr.shadow||b,family:xr.family||f,size:xr.size||c,color:xr.color||pr};Be.style({fill:yr,stroke:kr}),Xe.text(M).call(Lu.font,Pr).call(Wo.positionText,0,0).call(Wo.convertToTspans,t),Qe.attr("transform","");var Fr=t2(t,Xe.node()),Hr,rr;if(n==="x"){var Cr=x.side==="top"?"-":"";Xe.attr("text-anchor","middle").call(Wo.positionText,0,x.side==="top"?z-Fr.bottom-Pa-zt:z-Fr.top+Pa+zt),Hr=x._offset+(C.x0+C.x1)/2,rr=_._offset+(x.side==="top"?0:_._length);var vr=Fr.width/2+zt,Xr=Hr;Hr<vr?Xr=vr:Hr>a.width-vr&&(Xr=a.width-vr),Be.attr("d","M"+(Hr-Xr)+",0L"+(Hr-Xr+Pa)+","+Cr+Pa+"H"+vr+"v"+Cr+(zt*2+Fr.height)+"H"+-vr+"V"+Cr+Pa+"H"+(Hr-Xr-Pa)+"Z"),Hr=Xr,te.minX=Hr-vr,te.maxX=Hr+vr,x.side==="top"?(te.minY=rr-(zt*2+Fr.height),te.maxY=rr-zt):(te.minY=rr+zt,te.maxY=rr+(zt*2+Fr.height))}else{var Kr,Lr,Wr;_.side==="right"?(Kr="start",Lr=1,Wr="",Hr=x._offset+x._length):(Kr="end",Lr=-1,Wr="-",Hr=x._offset),rr=_._offset+(C.y0+C.y1)/2,Xe.attr("text-anchor",Kr),Be.attr("d","M0,0L"+Wr+Pa+","+Pa+"V"+(zt+Fr.height/2)+"h"+Wr+(zt*2+Fr.width)+"V-"+(zt+Fr.height/2)+"H"+Wr+Pa+"V-"+Pa+"Z"),te.minY=rr-(zt+Fr.height/2),te.maxY=rr+(zt+Fr.height/2),_.side==="right"?(te.minX=Hr+Pa,te.maxX=Hr+Pa+(zt*2+Fr.width)):(te.minX=Hr-Pa-(zt*2+Fr.width),te.maxX=Hr-Pa);var Ae=Fr.height/2,Pe=z-Fr.top-Ae,sr="clip"+a._uid+"commonlabel"+_._id,gr;if(Hr<Fr.width+2*zt+Pa){gr="M-"+(Pa+zt)+"-"+Ae+"h-"+(Fr.width-zt)+"V"+Ae+"h"+(Fr.width-zt)+"Z";var Bt=Fr.width-Hr+zt;Wo.positionText(Xe,Bt,Pe),Kr==="end"&&Xe.selectAll("tspan").each(function(){var na=uc.select(this),Ma=Lu.tester.append("text").text(na.text()).call(Lu.font,Pr),It=t2(t,Ma.node());Math.round(It.width)<Math.round(Fr.width)&&na.attr("x",Bt-It.width),Ma.remove()})}else Wo.positionText(Xe,Lr*(zt+Pa),Pe),gr=null;var Gt=a._topclips.selectAll("#"+sr).data(gr?[0]:[]);Gt.enter().append("clipPath").attr("id",sr).append("path"),Gt.exit().remove(),Gt.select("path").attr("d",gr),Lu.setClipUrl(Xe,gr?sr:null,t)}Qe.attr("transform",vb(Hr,rr))}),_o.isUnifiedHover(n)){l.selectAll("g.hovertext").remove();let Qe=e.filter(Be=>Be.hoverinfo!=="none");if(Qe.length===0)return[];var oe=a.hoverlabel,ce=oe.font,Me=Qe[0],Se=((n==="x unified"?Me.xa:Me.ya).unifiedhovertitle||{}).text,Ie=Se?ja.hovertemplateString({data:n==="x unified"?[{xa:Me.xa,x:Me.xVal}]:[{ya:Me.ya,y:Me.yVal}],fallback:Me.trace.hovertemplatefallback,locale:a._d3locale,template:Se}):M,Ue={showlegend:!0,legend:{title:{text:Ie,font:ce},font:ce,bgcolor:oe.bgcolor,bordercolor:oe.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},ke={font:ce};Bae(Ue,ke,t._fullData);var We=ke.legend;We.entries=[];for(var j=0;j<Qe.length;j++){var ee=Qe[j];if(ee.hoverinfo!=="none"){var me=EF(ee,!0,n,a,M),K=me[0],$=me[1];ee.name=$,$!==""?ee.text=$+" : "+K:ee.text=K;var se=ee.cd[ee.index];se&&(se.mc&&(ee.mc=se.mc),se.mcc&&(ee.mc=se.mcc),se.mlc&&(ee.mlc=se.mlc),se.mlcc&&(ee.mlc=se.mlcc),se.mlw&&(ee.mlw=se.mlw),se.mrc&&(ee.mrc=se.mrc),se.dir&&(ee.dir=se.dir)),ee._distinct=!0,We.entries.push([ee])}}We.entries.sort(function(Be,Xe){var yr=a.hoversort;if(yr==="value descending"||yr==="value ascending"){var kr=n.charAt(0)==="x"?"y":"x",pr=Be[0][kr+"LabelVal"],xr=Xe[0][kr+"LabelVal"];if(pr!==xr)return yr==="value descending"?xr-pr:pr-xr}return Be[0].trace.index-Xe[0].trace.index}),We.layer=l,We._inHover=!0,We._groupTitleFont=oe.grouptitlefont,Iae(t,We);var _e=l.select("g.legend"),Ne=t2(t,_e.node()),$e=Ne.width+2*zt,ar=Ne.height+2*zt,tr=Qe[0],fr=(tr.x0+tr.x1)/2,Re=(tr.y0+tr.y1)/2,ur=!(a2.traceIs(tr.trace,"bar-like")||a2.traceIs(tr.trace,"box-violin")),hr,dr;A==="y"?ur?(dr=Re-zt,hr=Re+zt):(dr=Math.min.apply(null,Qe.map(function(Be){return Math.min(Be.y0,Be.y1)})),hr=Math.max.apply(null,Qe.map(function(Be){return Math.max(Be.y0,Be.y1)}))):dr=hr=ja.mean(Qe.map(function(Be){return(Be.y0+Be.y1)/2}))-ar/2;var Ze,cr;A==="x"?ur?(Ze=fr+zt,cr=fr-zt):(Ze=Math.max.apply(null,Qe.map(function(Be){return Math.max(Be.x0,Be.x1)})),cr=Math.min.apply(null,Qe.map(function(Be){return Math.min(Be.x0,Be.x1)}))):Ze=cr=ja.mean(Qe.map(function(Be){return(Be.x0+Be.x1)/2}))-$e/2;var Er=x._offset,Te=_._offset;hr+=Te,Ze+=Er,cr+=Er-$e,dr+=Te-ar;var Oe,Ar;return Ze+$e<B&&Ze>=0?Oe=Ze:cr+$e<B&&cr>=0?Oe=cr:Er+$e<B?Oe=Er:Ze-fr<fr-cr+$e?Oe=B-$e:Oe=0,Oe+=zt,hr+ar<X&&hr>=0?Ar=hr:dr+ar<X&&dr>=0?Ar=dr:Te+ar<X?Ar=Te:hr-Re<Re-dr+ar?Ar=X-ar:Ar=0,Ar+=zt,_e.attr("transform",vb(Oe-1,Ar-1)),_e}var Nr=l.selectAll("g.hovertext").data(e,function(Qe){return NF(Qe)});return Nr.enter().append("g").classed("hovertext",!0).each(function(){var Qe=uc.select(this);Qe.append("rect").call(pn.fill,pn.addOpacity(o,.8)),Qe.append("text").classed("name",!0),Qe.append("path").style("stroke-width","1px"),Qe.append("text").classed("nums",!0).call(Lu.font,{weight:h,style:d,variant:m,textcase:p,lineposition:y,shadow:b,family:f,size:c})}),Nr.exit().remove(),Nr.each(function(Qe){var Be=uc.select(this).attr("transform",""),Xe=Qe.color;Array.isArray(Xe)&&(Xe=Xe[Qe.eventData[0].pointNumber]);var yr=Qe.bgcolor||Xe,kr=pn.combine(pn.opacity(yr)?yr:pn.defaultLine,o),pr=pn.combine(pn.opacity(Xe)?Xe:pn.defaultLine,o),xr=Qe.borderColor||pn.contrast(kr),Pr=EF(Qe,H,n,a,M,Be),Fr=Pr[0],Hr=Pr[1],rr=Be.select("text.nums").call(Lu.font,{family:Qe.fontFamily||f,size:Qe.fontSize||c,color:Qe.fontColor||xr,weight:Qe.fontWeight||h,style:Qe.fontStyle||d,variant:Qe.fontVariant||m,textcase:Qe.fontTextcase||p,lineposition:Qe.fontLineposition||y,shadow:Qe.fontShadow||b}).text(Fr).attr("data-notex",1).call(Wo.positionText,0,0).call(Wo.convertToTspans,t),Cr=Be.select("text.name"),vr=0,Xr=0;if(Hr&&Hr!==Fr){Cr.call(Lu.font,{family:Qe.fontFamily||f,size:Qe.fontSize||c,color:pr,weight:Qe.fontWeight||h,style:Qe.fontStyle||d,variant:Qe.fontVariant||m,textcase:Qe.fontTextcase||p,lineposition:Qe.fontLineposition||y,shadow:Qe.fontShadow||b}).text(Hr).attr("data-notex",1).call(Wo.positionText,0,0).call(Wo.convertToTspans,t);var Kr=t2(t,Cr.node());vr=Kr.width+2*zt,Xr=Kr.height+2*zt}else Cr.remove(),Be.select("rect").remove();Be.select("path").style({fill:kr,stroke:xr});var Lr=Qe.xa._offset+(Qe.x0+Qe.x1)/2,Wr=Qe.ya._offset+(Qe.y0+Qe.y1)/2,Ae=Math.abs(Qe.x1-Qe.x0),Pe=Math.abs(Qe.y1-Qe.y0),sr=t2(t,rr.node()),gr=sr.width/a._invScaleX,Bt=sr.height/a._invScaleY;Qe.ty0=(z-sr.top)/a._invScaleY,Qe.bx=gr+2*zt,Qe.by=Math.max(Bt+2*zt,Xr),Qe.anchor="start",Qe.txwidth=gr,Qe.tx2width=vr,Qe.offset=0;var Gt=(gr+Pa+zt+vr)*a._invScaleX,na,Ma;if(i)Qe.pos=Lr,na=Wr+Pe/2+Gt<=X,Ma=Wr-Pe/2-Gt>=0,(Qe.idealAlign==="top"||!na)&&Ma?(Wr-=Pe/2,Qe.anchor="end"):na?(Wr+=Pe/2,Qe.anchor="start"):Qe.anchor="middle",Qe.crossPos=Wr;else{if(Qe.pos=Wr,na=Lr+Ae/2+Gt<=B,Ma=Lr-Ae/2-Gt>=0,(Qe.idealAlign==="left"||!na)&&Ma)Lr-=Ae/2,Qe.anchor="end";else if(na)Lr+=Ae/2,Qe.anchor="start";else{Qe.anchor="middle";var It=Gt/2,jt=Lr+It-B,da=Lr-It;jt>0&&(Lr-=jt),da<0&&(Lr+=-da)}Qe.crossPos=Lr}rr.attr("text-anchor",Qe.anchor),vr&&Cr.attr("text-anchor",Qe.anchor),Be.attr("transform",vb(Lr,Wr)+(i?Pae(zF):""))}),{hoverLabels:Nr,commonLabelBoundingBox:te}}function EF(e,r,t,a,n,i){var c,h;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=PF(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"<br>"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"<br>"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===n?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"<br>":"")+e.text),e.extraText!==void 0&&(l+=(l?"<br>":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(h=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[u+"Label"]!==n&&(d[u+"other"]=d[u+"Val"],d[u+"otherLabel"]=d[u+"Label"]),l=ja.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(Vae,(m,p)=>(o=PF(p,e.nameLength),""))}return[l,o]}function Xae(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,u=e.size(),s=new Array(u),f=0,c=a.minX,h=a.maxX,d=a.minY,m=a.maxY,p=function(Q){return Q*t._invScaleX},y=function(Q){return Q*t._invScaleY};e.each(function(Q){var le=Q[n],re=Q[i],te=le._id.charAt(0)==="x",oe=le.range;f===0&&oe&&oe[0]>oe[1]!==te&&(l=-1);var ce=0,Me=te?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Se=IF(Q,r),Ie=Q.anchor,Ue=Ie==="end"?-1:1,ke,We;if(Ie==="middle")ke=Q.crossPos+(te?y(Se.y-Q.by/2):p(Q.bx/2+Q.tx2width/2)),We=ke+(te?y(Q.by):p(Q.bx));else if(te)ke=Q.crossPos+y(Pa+Se.y)-y(Q.by/2-Pa),We=ke+y(Q.by);else{var j=p(Ue*Pa+Se.x),ee=j+p(Ue*Q.bx);ke=Q.crossPos+Math.min(j,ee),We=Q.crossPos+Math.max(j,ee)}te?d!==void 0&&m!==void 0&&Math.min(We,m)-Math.max(ke,d)>1&&(re.side==="left"?(ce=re._mainLinePosition,Me=t.width):Me=re._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(We,h)-Math.max(ke,c)>1&&(re.side==="top"?(ce=re._mainLinePosition,Me=t.height):Me=re._mainLinePosition)}s[f++]=[{datum:Q,traceIndex:Q.trace.index,dp:0,pos:Q.pos,posref:Q.posref,size:Q.by*(te?Hae:1)/2,pmin:ce,pmax:Me}]}),s.sort(function(Q,le){return Q[0].posref-le[0].posref||l*(le[0].traceIndex-Q[0].traceIndex)});var b,C,x,_,A,T,M;function E(Q){var le=Q[0],re=Q[Q.length-1];if(C=le.pmin-le.pos-le.dp+le.size,x=re.pos+re.dp+re.size-le.pmax,C>.01){for(A=Q.length-1;A>=0;A--)Q[A].dp+=C;b=!1}if(!(x<.01)){if(C<-.01){for(A=Q.length-1;A>=0;A--)Q[A].dp-=x;b=!1}if(b){var te=0;for(_=0;_<Q.length;_++)T=Q[_],T.pos+T.dp+T.size>le.pmax&&te++;for(_=Q.length-1;_>=0&&!(te<=0);_--)T=Q[_],T.pos>le.pmax-1&&(T.del=!0,te--);for(_=0;_<Q.length&&!(te<=0);_++)if(T=Q[_],T.pos<le.pmin+1)for(T.del=!0,te--,x=T.size*2,A=Q.length-1;A>=0;A--)Q[A].dp-=x;for(_=Q.length-1;_>=0&&!(te<=0);_--)T=Q[_],T.pos+T.dp+T.size>le.pmax&&(T.del=!0,te--)}}}for(;!b&&o<=u;){for(o++,b=!0,_=0;_<s.length-1;){var P=s[_],z=s[_+1],B=P[P.length-1],X=z[0];if(C=B.pos+B.dp+B.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),s.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;b=!1}else _++}s.forEach(E)}for(_=s.length-1;_>=0;_--){var H=s[_];for(A=H.length-1;A>=0;A--){var V=H[A],I=V.datum;I.offset=V.dp,I.del=V.del}}}function IF(e,r){var t=0,a=e.offset;return r&&(a*=-Uae,t=e.offset*Oae),{x:t,y:a}}function Wae(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Pa+zt),a=t+r*(e.txwidth+zt),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+zt),{alignShift:r,textShiftX:t,text2ShiftX:a}}function HF(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=uc.select(this);if(o.del)return l.remove();var u=l.select("text.nums"),s=o.anchor,f=s==="end"?-1:1,c=Wae(o),h=IF(o,r),d=h.x,m=h.y,p=s==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;p?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?b="M0,0L"+n(f*Pa+d)+","+i(Pa+m)+"v"+i(o.by/2-Pa)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Pa+d)+"V"+i(m-Pa)+"Z":b="M"+n(f*Pa+d)+","+i(m-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",b);var C=d+c.textShiftX,x=m+o.ty0-o.by/2+zt,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&s!=="start"?(u.attr("text-anchor","start"),C=p?-o.bx/2-o.tx2width/2+zt:-o.bx-zt):_==="right"&&s!=="end"&&(u.attr("text-anchor","end"),C=p?o.bx/2-o.tx2width/2-zt:o.bx+zt)),u.call(Wo.positionText,n(C),i(x)),o.tx2width&&(l.select("text.name").call(Wo.positionText,n(c.text2ShiftX+c.alignShift*zt+d),i(m+o.ty0-o.by/2+zt)),l.select("rect").call(Lu.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(m-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function jae(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(h){return h||Es(h)&&h===0}var l=Array.isArray(t)?function(h,d){var m=ja.castOption(n,t,h);return o(m)?m:ja.extractOption({},a,"",d)}:function(h,d){return ja.extractOption(i,a,h,d)};function u(h,d,m){var p=l(d,m);o(p)&&(e[h]=p)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&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:qu.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:qu.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 s=qu.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+qu.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=qu.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+qu.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 LF(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(a.selectAll(".spikeline").remove(),!!(u||l)){var c=pn.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var h=r.hLinePoint,d,m;s=h&&h.xa,f=h&&h.ya;var p=f.spikesnap;p==="cursor"?(d=o.pointerX,m=o.pointerY):(d=s._offset+h.x,m=f._offset+h.y);var y=pn.wcagContrast(h.color,c)<1.5?pn.contrast(c):h.color,b=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,_=qu.getPxPosition(e,f),A,T;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(A=_,T=d),b.indexOf("across")!==-1){var M=f._counterDomainMin,E=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),E=Math.max(E,f.position)),A=i.l+M*i.w,T=i.l+E*i.w}a.insert("line",":first-child").attr({x1:A,x2:T,y1:m,y2:m,"stroke-width":C,stroke:x,"stroke-dasharray":Lu.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:T,y1:m,y2:m,"stroke-width":C+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:_+(f.side!=="right"?C:-C),cy:m,r:C,fill:x}).classed("spikeline",!0)}if(u){var P=r.vLinePoint,z,B;s=P&&P.xa,f=P&&P.ya;var X=s.spikesnap;X==="cursor"?(z=o.pointerX,B=o.pointerY):(z=s._offset+P.x,B=f._offset+P.y);var H=pn.wcagContrast(P.color,c)<1.5?pn.contrast(c):P.color,V=s.spikemode,I=s.spikethickness,Q=s.spikecolor||H,le=qu.getPxPosition(e,s),re,te;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(re=le,te=B),V.indexOf("across")!==-1){var oe=s._counterDomainMin,ce=s._counterDomainMax;s.anchor==="free"&&(oe=Math.min(oe,s.position),ce=Math.max(ce,s.position)),re=i.t+(1-ce)*i.h,te=i.t+(1-oe)*i.h}a.insert("line",":first-child").attr({x1:z,x2:z,y1:re,y2:te,"stroke-width":I,stroke:Q,"stroke-dasharray":Lu.dashStyle(s.spikedash,I)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:z,x2:z,y1:re,y2:te,"stroke-width":I+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:z,cy:le-(s.side!=="top"?I:-I),r:I,fill:Q}).classed("spikeline",!0)}}}function Zae(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 qF(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function PF(e,r){return Wo.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Jae(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o<e.length;o++){var l=e[o];a2.traceIs(l.trace,"bar-like")||a2.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 RF(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],u=l[e+"Start"];u===void 0&&(u=l[e]);var s=l[e+"End"];s===void 0&&(s=l[e]);var f=s-u;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 OF=e=>e.offsetTop+e.clientTop,UF=e=>e.offsetLeft+e.clientLeft;function t2(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,u=ja.apply3DTransform(t._invTransform)(n,i),s=ja.apply3DTransform(t._invTransform)(o,l),f=u[0],c=u[1],h=s[0],d=s[1];return{x:f,y:c,width:h-f,height:d-c,top:Math.min(c,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(c,d)}}});var Dm=ae((rye,GF)=>{"use strict";var $ae=mr(),Kae=Lt(),Qae=Fs().isUnifiedHover;GF.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&&Qae(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Kae.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),$ae.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var VF=ae((tye,YF)=>{"use strict";var ene=mr(),rne=Dm(),tne=h1();YF.exports=function(r,t){function a(n,i){return ene.coerce(r,t,tne,n,i)}rne(r,t,a)}});var jF=ae((aye,WF)=>{"use strict";var XF=mr(),ane=Cd(),nne=Dm();WF.exports=function(r,t,a,n){function i(l,u){return XF.coerce(r,t,ane,l,u)}var o=XF.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),nne(r,t,i,o)}});var mb=ae((nye,ZF)=>{"use strict";var ine=mr(),one=h1();ZF.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:ine.coerce(r,t,one,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var KF=ae((iye,$F)=>{"use strict";var JF=mr(),lne=h1(),une=mb(),sne=Dm();$F.exports=function(r,t){function a(s,f){return JF.coerce(r,t,lne,s,f)}var n=une(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"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&u===1||o&&l&&u===2)&&(t.dragmode="pan"),sne(r,t,a),JF.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var rE=ae((oye,eE)=>{"use strict";var gb=mr(),QF=bt();eE.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(s){return function(f){return gb.coerceHoverinfo({hoverinfo:f},{_module:s._module},a)}}for(var i=0;i<t.length;i++){var o=t[i],l=o[0].trace;if(!QF.traceIs(l,"pie-like")){var u=QF.traceIs(l,"2dMap")?fne:gb.fillArray;u(l.hoverinfo,o,"hi",n(l)),l.hovertemplate&&u(l.hovertemplate,o,"ht"),l.hoverlabel&&(u(l.hoverlabel.bgcolor,o,"hbg"),u(l.hoverlabel.bordercolor,o,"hbc"),u(l.hoverlabel.font.size,o,"hts"),u(l.hoverlabel.font.color,o,"htc"),u(l.hoverlabel.font.family,o,"htf"),u(l.hoverlabel.font.weight,o,"htw"),u(l.hoverlabel.font.style,o,"hty"),u(l.hoverlabel.font.variant,o,"htv"),u(l.hoverlabel.namelength,o,"hnl"),u(l.hoverlabel.align,o,"hta"),u(l.hoverlabel.showarrow,o,"htsa"))}}};function fne(e,r,t,a){a=a||gb.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var nE=ae((lye,aE)=>{"use strict";var cne=bt(),tE=Fs(),vne=pb().hover;aE.exports=function(r,t,a){var n=cne.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&vne(r,t,a,!0);function o(){var u,s,f,c,h,d;var l={points:r._hoverdata,event:t};(u=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(s=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&tE.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&tE.c2dApply(r._hoverYAxes,r._hoverYVals)),(h=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(d=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Hl=ae((uye,lE)=>{"use strict";var hne=St(),Sm=mr(),dne=Vo(),Kv=Fs(),iE=h1(),oE=pb();lE.exports={moduleType:"component",name:"fx",constants:av(),schema:{layout:iE},attributes:Cd(),layoutAttributes:iE,supplyLayoutGlobalDefaults:VF(),supplyDefaults:jF(),supplyLayoutDefaults:KF(),calc:rE(),getDistanceFunction:Kv.getDistanceFunction,getClosest:Kv.getClosest,inbox:Kv.inbox,quadrature:Kv.quadrature,appendArrayPointValue:Kv.appendArrayPointValue,castHoverOption:mne,castHoverinfo:gne,hover:oE.hover,unhover:dne.unhover,loneHover:oE.loneHover,loneUnhover:pne,click:nE()};function pne(e){var r=Sm.isD3Selection(e)?e:hne.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function mne(e,r,t){return Sm.castOption(e,r,"hoverlabel."+t)}function gne(e,r,t){function a(n){return Sm.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return Sm.castOption(e,t,"hoverinfo",a)}});var n2=ae(Ls=>{"use strict";Ls.selectMode=function(e){return e==="lasso"||e==="select"};Ls.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ls.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ls.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ls.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ls.selectingOrDrawing=function(e){return Ls.freeMode(e)||Ls.rectMode(e)}});var Fm=ae((fye,uE)=>{"use strict";uE.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 Em=ae((cye,sE)=>{"use strict";sE.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 qm=ae((vye,fE)=>{"use strict";var Lm=32;fE.exports={CIRCLE_SIDES:Lm,i000:0,i090:Lm/4,i180:Lm/2,i270:Lm/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var Pm=ae((hye,vE)=>{"use strict";var yne=mr().strTranslate;function cE(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 bne(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 _ne(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return cE(e,t[r])}}function xne(e){return yne(e.xaxis._offset,e.yaxis._offset)}vE.exports={p2r:cE,r2p:bne,axValue:_ne,getTransform:xne}});var L0=ae(qs=>{"use strict";var wne=n6(),pE=qm(),i2=pE.CIRCLE_SIDES,yb=pE.SQRT2,mE=Pm(),hE=mE.p2r,dE=mE.r2p,Ane=[0,3,4,5,6,1,2],Mne=[0,3,4,1,2];qs.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,u=0;u<l;u++){var s=u;o==="Q"||o==="S"?s=Mne[u]:o==="C"&&(s=Ane[u]),t+=e[a][i][s],u>0&&u<l-1&&(t+=",")}}return t};qs.readPaths=function(e,r,t,a){var n=wne(e),i=[],o=-1,l=function(){o++,i[o]=[]},u,s=0,f=0,c,h,d=function(){c=s,h=f};d();for(var m=0;m<n.length;m++){var p=[],y,b,C,x,_=n[m][0],A=_;switch(_){case"M":l(),s=+n[m][1],f=+n[m][2],p.push([A,s,f]),d();break;case"Q":case"S":y=+n[m][1],C=+n[m][2],s=+n[m][3],f=+n[m][4],p.push([A,s,f,y,C]);break;case"C":y=+n[m][1],C=+n[m][2],b=+n[m][3],x=+n[m][4],s=+n[m][5],f=+n[m][6],p.push([A,s,f,y,C,b,x]);break;case"T":case"L":s=+n[m][1],f=+n[m][2],p.push([A,s,f]);break;case"H":A="L",s=+n[m][1],p.push([A,s,f]);break;case"V":A="L",f=+n[m][1],p.push([A,s,f]);break;case"A":A="L";var T=+n[m][1],M=+n[m][2];+n[m][4]||(T=-T,M=-M);var E=s-T,P=f;for(u=1;u<=i2/2;u++){var z=2*Math.PI*u/i2;p.push([A,E+T*Math.cos(z),P+M*Math.sin(z)])}break;case"Z":(s!==c||f!==h)&&(s=c,f=h,p.push([A,s,f]));break}for(var B=(t||{}).domain,X=r._fullLayout._size,H=t&&t.xsizemode==="pixel",V=t&&t.ysizemode==="pixel",I=a===!1,Q=0;Q<p.length;Q++){for(u=0;u+2<7;u+=2){var le=p[Q][u+1],re=p[Q][u+2];le===void 0||re===void 0||(s=le,f=re,t&&(t.xaxis&&t.xaxis.p2r?(I&&(le-=t.xaxis._offset),H?le=dE(t.xaxis,t.xanchor)+le:le=hE(t.xaxis,le)):(I&&(le-=X.l),B?le=B.x[0]+le/X.w:le=le/X.w),t.yaxis&&t.yaxis.p2r?(I&&(re-=t.yaxis._offset),V?re=dE(t.yaxis,t.yanchor)-re:re=hE(t.yaxis,re)):(I&&(re-=X.t),B?re=B.y[1]-re/X.h:re=1-re/X.h)),p[Q][u+1]=le,p[Q][u+2]=re)}i[o].push(p[Q].slice())}}return i};function Qv(e,r){return Math.abs(e-r)<=1e-6}function Rm(e,r){var t=r[1]-e[1],a=r[2]-e[2];return Math.sqrt(t*t+a*a)}qs.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(!Qv(a,n))return!1;var i=e[0][t]-e[3][t],o=e[1][t]-e[2][t];if(!Qv(i,o))return!1}return!Qv(e[0][1],e[1][1])&&!Qv(e[0][1],e[3][1])?!1:!!(Rm(e[0],e[1])*Rm(e[0],e[3]))};qs.pointsOnEllipse=function(e){var r=e.length;if(r!==i2+1)return!1;r=i2;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!Qv(Rm(e[t],e[i]),Rm(e[a],e[n])))return!1}return!0};qs.handleEllipse=function(e,r,t){if(!e)return[r,t];var a=qs.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/yb),l||(l=o=o/yb);for(var u=[],s=0;s<i2;s++){var f=s*2*Math.PI/i2;u.push([n+o*Math.cos(f),i+l*Math.sin(f)])}return u};qs.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,u=(t+n)/2,s=yb;return i*=s,o*=s,{x0:l-i,y0:u-o,x1:l+i,y1:u+o}};qs.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 Bm=ae((pye,TE)=>{"use strict";var gE=wn(),wE=n2(),Tne=wE.drawMode,kne=wE.openMode,o2=qm(),yE=o2.i000,bE=o2.i090,_E=o2.i180,xE=o2.i270,Cne=o2.cos45,Dne=o2.sin45,AE=Pm(),zm=AE.p2r,q0=AE.r2p,Sne=x0(),Fne=Sne.clearOutline,Nm=L0(),Ene=Nm.readPaths,Lne=Nm.writePaths,qne=Nm.ellipseOver,Pne=Nm.fixDatesForPaths;function Rne(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(!Tne(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 u=o[l].path||"";u[u.length-1]==="Z"?i="drawclosedpath":i="drawopenpath";break}}var s=ME(e,r,i);Fne(a);for(var f=r.editHelpers,c=(f||{}).modifyItem,h=[],d=0;d<o.length;d++){var m=a._fullLayout.shapes[d];if(h[d]=m._input,n!==void 0&&d===a._fullLayout._activeShapeIndex){var p=s;switch(m.type){case"line":case"rect":case"circle":var y=gE.getFromId(a,m.xref);m.xref.charAt(0)==="x"&&y.type.includes("category")?(c("x0",p.x0-(m.x0shift||0)),c("x1",p.x1-(m.x1shift||0))):(c("x0",p.x0),c("x1",p.x1));var b=gE.getFromId(a,m.yref);m.yref.charAt(0)==="y"&&b.type.includes("category")?(c("y0",p.y0-(m.y0shift||0)),c("y1",p.y1-(m.y1shift||0))):(c("y0",p.y0),c("y1",p.y1));break;case"path":c("path",p.path);break}}}return n===void 0?(h.push(s),h):f?f.getUpdateObj():{}}}}function ME(e,r,t){var a=e[0][0],n=r.gd,i=a.getAttribute("d"),o=n._fullLayout.newshape,l=r.plotinfo,u=r.isActiveShape,s=l.xaxis,f=l.yaxis,c=!!l.domain||!l.xaxis,h=!!l.domain||!l.yaxis,d=kne(t),m=Ene(i,n,l,u),p={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":s._id,yref:h?"paper":f._id,layer:o.layer,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}};d||(p.fillcolor=o.fillcolor,p.fillrule=o.fillrule);var y;if(m.length===1&&(y=m[0]),y&&y.length===5&&t==="drawrect")p.type="rect",p.x0=y[0][1],p.y0=y[0][2],p.x1=y[2][1],p.y1=y[2][2];else if(y&&t==="drawline")p.type="line",p.x0=y[0][1],p.y0=y[0][2],p.x1=y[1][1],p.y1=y[1][2];else if(y&&t==="drawcircle"){p.type="circle";var b=y[yE][1],C=y[bE][1],x=y[_E][1],_=y[xE][1],A=y[yE][2],T=y[bE][2],M=y[_E][2],E=y[xE][2],P=l.xaxis&&(l.xaxis.type==="date"||l.xaxis.type==="log"),z=l.yaxis&&(l.yaxis.type==="date"||l.yaxis.type==="log");P&&(b=q0(l.xaxis,b),C=q0(l.xaxis,C),x=q0(l.xaxis,x),_=q0(l.xaxis,_)),z&&(A=q0(l.yaxis,A),T=q0(l.yaxis,T),M=q0(l.yaxis,M),E=q0(l.yaxis,E));var B=(C+_)/2,X=(A+M)/2,H=(_-C+x-b)/2,V=(E-T+M-A)/2,I=qne({x0:B,y0:X,x1:B+H*Cne,y1:X+V*Dne});P&&(I.x0=zm(l.xaxis,I.x0),I.x1=zm(l.xaxis,I.x1)),z&&(I.y0=zm(l.yaxis,I.y0),I.y1=zm(l.yaxis,I.y1)),p.x0=I.x0,p.y0=I.y0,p.x1=I.x1,p.y1=I.y1}else p.type="path",s&&f&&Pne(m,s,f),p.path=Lne(m),y=null;return p}TE.exports={newShapes:Rne,createShapeObj:ME}});var _b=ae((mye,kE)=>{"use strict";var zne=n2(),Nne=zne.selectMode,Bne=x0(),Ine=Bne.clearOutline,bb=L0(),Hne=bb.readPaths,One=bb.writePaths,Une=bb.fixDatesForPaths;kE.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,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,c=t.dragmode,h=(i.layout||{}).selections||[];if(!Nne(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d<h.length)switch(i._fullLayout.selections[d].type){case"rect":c="select";break;case"path":c="lasso";break}}var m=Hne(n,i,l,f),p={xref:u._id,yref:s._id,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}},y;m.length===1&&(y=m[0]),y&&y.length===5&&c==="select"?(p.type="rect",p.x0=y[0][1],p.y0=y[0][2],p.x1=y[2][1],p.y1=y[2][2]):(p.type="path",u&&s&&Une(m,u,s),p.path=One(m),y=null),Ine(i);for(var b=t.editHelpers,C=(b||{}).modifyItem,x=[],_=0;_<h.length;_++){var A=i._fullLayout.selections[_];if(!A){x[_]=A;continue}if(x[_]=A._input,f!==void 0&&_===i._fullLayout._activeSelectionIndex){var T=p;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(p),x):b?b.getUpdateObj():{}}}}});var eh=ae((gye,CE)=>{"use strict";CE.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var R0=ae(In=>{"use strict";var Ru=eh(),DE=mr(),P0=Ba();In.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};In.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};In.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};In.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};In.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ru.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Ru.paramRE);if(!(!l||l.length<o)){var u=l[o],s=t?u:DE.cleanNumber(u);a.push(s)}}}),a};In.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let a=r.match(Ru.segmentRE);if(!a)return 0;let n=t==="x"?Ru.paramIsX:Ru.paramIsY;return a.reduce((i,o)=>{let l=o.charAt(0),u=n[l].drawn!==void 0;return i+(u?1:0)},0)};In.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(u){return r._length*(a?1-u:u)+r._offset};else{var l=In.shapePositionToRange(r);o=function(u){var s=Pu(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(o=In.decodeDate(o))}else a?o=function(u){return i.t+i.h*(1-u)}:o=function(u){return i.l+i.w*u};return o};In.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var u=(l-r._offset)/r._length;return t?1-u:u};else{var o=In.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};In.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};In.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}};In.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}};In.getPathString=function(e,r){let t=r.type,a=P0.getRefType(r.xref),n=P0.getRefType(r.yref),i=e._fullLayout._size;var o,l,u,s,f,c,h,d,m,p,y,b;function C(z,B,X,H){var V;if(z)if(B==="domain")H?V=function(I){return z._offset+z._length*(1-I)}:V=function(I){return z._offset+z._length*I};else{let I=In.shapePositionToRange(z);V=function(Q){return z._offset+z.r2p(I(Q,!0))},X==="path"&&z.type==="date"&&(V=In.decodeDate(V))}else H?V=function(I){return i.t+i.h*(1-I)}:V=function(I){return i.l+i.w*I};return V}if(a==="array"?(h=[],o=r.xref.map(function(z){return P0.getFromId(e,z)}),h=r.xref.map(function(z,B){return C(o[B],P0.getRefType(z),t,!1)})):(o=P0.getFromId(e,r.xref),h=C(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(z){return P0.getFromId(e,z)}),d=r.yref.map(function(z,B){return C(l[B],P0.getRefType(z),t,!0)})):(l=P0.getFromId(e,r.yref),d=C(l,n,t,!0)),t==="path")return Gne(r,h,d);if(a==="array")u=Pu(o[0],r.x0shift),s=Pu(o[1],r.x1shift),m=h[0](r.x0)+u,p=h[1](r.x1)+s;else if(u=Pu(o,r.x0shift),s=Pu(o,r.x1shift),r.xsizemode==="pixel"){let z=h(r.xanchor);m=z+r.x0+u,p=z+r.x1+s}else m=h(r.x0)+u,p=h(r.x1)+s;if(n==="array")f=Pu(l[0],r.y0shift),c=Pu(l[1],r.y1shift),y=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=Pu(l,r.y0shift),c=Pu(l,r.y1shift),r.ysizemode==="pixel"){let z=d(r.yanchor);y=z-r.y0+f,b=z-r.y1+c}else y=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+m+","+y+"L"+p+","+b;if(t==="rect")return"M"+m+","+y+"H"+p+"V"+b+"H"+m+"Z";var x=(m+p)/2,_=(y+b)/2,A=Math.abs(x-m),T=Math.abs(_-y),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 Gne(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,u=Array.isArray(e.xref),s=Array.isArray(e.yref);var f=0,c=0;return a.replace(Ru.segmentRE,function(h){var d=0,m=h.charAt(0),p=Ru.paramIsX[m],y=Ru.paramIsY[m],b=Ru.numParams[m];let C=p.drawn!==void 0,x=y.drawn!==void 0,_=u?r[f]:r,A=s?t[c]:t;var T=h.slice(1).replace(Ru.paramRE,function(M){return p[d]?n==="pixel"?M=_(o)+Number(M):M=_(M):y[d]&&(i==="pixel"?M=A(l)-Number(M):M=A(M)),d++,d>b&&(M="X"),M});return d>b&&(T=T.replace(/[\s,]*X.*/,""),DE.log("Ignoring extra params in segment "+h)),C&&f++,x&&c++,m+T})}In.getPixelShift=Pu;function Pu(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 xb=ae((bye,EE)=>{"use strict";var Yne=mr(),zu=Ba(),SE=ai(),FE=va(),Vne=L0().readPaths,fc=R0(),Xne=fc.getPathString,rh=lp(),Wne=ti().FROM_TL;EE.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=zu.getFromId(r,a.xref),u=zu.getFromId(r,a.yref);let ce=Array.isArray(a.xref),Me=Array.isArray(a.yref);for(var s in rh){var f=typeof rh[s]=="function",c=!ce||rh.simpleXVariables.includes(s),h=!Me||rh.simpleYVariables.includes(s);if(f&&c&&h){var d=rh[s](a,l,u);d!==void 0&&(o[s]=d)}}}i=Yne.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var m={"data-index":t},p=a.label.font,y={"data-notex":1},b=n.append("g").attr(m).classed("shape-label",!0),C=b.append("text").attr(y).classed("shape-label-text",!0).text(i),x,_,A,T;if(a.path){var M=Xne(r,a),E=Vne(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 B=E[P][z],X=1;X<B.length;X+=2){var H=B[X],V=B[X+1];x=Math.min(x,H),_=Math.max(_,H),A=Math.min(A,V),T=Math.max(T,V)}}else{let ce=Array.isArray(a.xref),Me=Array.isArray(a.yref),Se=zu.getFromId(r,ce?a.xref[0]:a.xref),Ie=zu.getFromId(r,ce?a.xref[1]:a.xref),Ue=zu.getFromId(r,Me?a.yref[0]:a.yref),ke=zu.getFromId(r,Me?a.yref[1]:a.yref),We=zu.getRefType(ce?a.xref[0]:a.xref),j=zu.getRefType(ce?a.xref[1]:a.xref),ee=zu.getRefType(Me?a.yref[0]:a.yref),me=zu.getRefType(Me?a.yref[1]:a.yref),K=(se,_e,Ne,$e)=>fc.getDataToPixel(r,Ne,_e,!1,$e)(se),$=(se,_e,Ne,$e)=>fc.getDataToPixel(r,Ne,_e,!0,$e)(se);if(a.xsizemode==="pixel"){let se=K(a.xanchor,void 0,Se,We),_e=fc.getPixelShift(Se,a.x0shift),Ne=fc.getPixelShift(Se,a.x1shift);x=se+a.x0+_e,_=se+a.x1+Ne}else x=K(a.x0,a.x0shift,Se,We),_=K(a.x1,a.x1shift,Ie,j);if(a.ysizemode==="pixel"){let se=$(a.yanchor,void 0,Ue,ee),_e=fc.getPixelShift(Ue,a.y0shift),Ne=fc.getPixelShift(Ue,a.y1shift);A=se-a.y0+_e,T=se-a.y1+Ne}else A=$(a.y0,a.y0shift,Ue,ee),T=$(a.y1,a.y1shift,ke,me)}var I=a.label.textangle;I==="auto"&&(a.type==="line"?I=jne(x,A,_,T):I=0),C.call(function(ce){return ce.call(FE.font,p).attr({}),SE.convertToTspans(ce,r),ce});var Q=FE.bBox(C.node()),le=Zne(x,A,_,T,a,I,Q),re=le.textx,te=le.texty,oe=le.xanchor;C.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[oe],y:te,x:re,transform:"rotate("+I+","+re+","+te+")"}).call(SE.positionText,re,te)}};function jne(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 Zne(e,r,t,a,n,i,o){var l=n.label.textposition,u=n.label.textangle,s=n.label.padding,f=n.type,c=Math.PI/180*i,h=Math.sin(c),d=Math.cos(c),m=n.label.xanchor,p=n.label.yanchor,y,b,C,x;if(f==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),m==="auto"&&(l==="start"?u==="auto"?t>e?m="left":t<e?m="right":m="center":t>e?m="right":t<e?m="left":m="center":l==="end"?u==="auto"?t>e?m="right":t<e?m="left":m="center":t>e?m="left":t<e?m="right":m="center":m="center");var _={left:1,center:0,right:-1},A={bottom:-1,middle:0,top:1};if(u==="auto"){var T=A[p];C=-s*h*T,x=s*d*T}else{var M=_[m],E=A[p];C=s*M,x=s*E}y=y+C,b=b+x}else C=s+3,l.indexOf("right")!==-1?(y=Math.max(e,t)-C,m==="auto"&&(m="right")):l.indexOf("left")!==-1?(y=Math.min(e,t)+C,m==="auto"&&(m="left")):(y=(e+t)/2,m==="auto"&&(m="center")),l.indexOf("top")!==-1?b=Math.min(r,a):l.indexOf("bottom")!==-1?b=Math.max(r,a):b=(r+a)/2,x=s,p==="bottom"?b=b-x:p==="top"&&(b=b+x);var P=Wne[p],z=n.label.font.size,B=o.height,X=(B*P-z)*h,H=-(B*P-z)*d;return{textx:y+X,texty:b+H,xanchor:m}}});var Om=ae((_ye,IE)=>{"use strict";var Jne=mr(),$ne=Jne.strTranslate,LE=Vo(),RE=n2(),Kne=RE.drawMode,zE=RE.selectMode,NE=bt(),qE=Lt(),Hm=qm(),Qne=Hm.i000,eie=Hm.i090,rie=Hm.i180,tie=Hm.i270,aie=x0(),BE=aie.clearOutlineControllers,Ab=L0(),Im=Ab.pointsOnRectangle,wb=Ab.pointsOnEllipse,nie=Ab.writePaths,iie=Bm().newShapes,oie=Bm().createShapeObj,lie=_b(),uie=xb();IE.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(wb(r[0])||a.hasText)&&l({redrawing:!0})}function l(le){var re={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,re=iie(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,re=lie(t,a),i._fullLayout._reselect=!0),Object.keys(re).length&&NE.call((le||{}).redrawing?"relayout":"_guiRelayout",i,re)}var u=i._fullLayout,s=u._zoomlayer,f=a.dragmode,c=Kne(f),h=zE(f);(c||h)&&(i._fullLayout._outlining=!0),BE(i),t.attr("d",nie(r));var d,m,p,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=sie([],r);var C=s.append("g").attr("class","outline-controllers");z(C),Q()}if(c&&a.hasText){var x=s.select(".label-temp"),_=oie(t,a,a.dragmode);uie(i,"label-temp",_,x)}function A(le){p=+le.srcElement.getAttribute("data-i"),y=+le.srcElement.getAttribute("data-j"),d[p][y].moveFn=T}function T(le,re){if(r.length){var te=b[p][y][1],oe=b[p][y][2],ce=r[p],Me=ce.length;if(Im(ce)){var Se=le,Ie=re;if(a.isActiveSelection){var Ue=PE(ce,y);Ue[1]===ce[y][1]?Ie=0:Se=0}for(var ke=0;ke<Me;ke++)if(ke!==y){var We=ce[ke];We[1]===ce[y][1]&&(We[1]=te+Se),We[2]===ce[y][2]&&(We[2]=oe+Ie)}if(ce[y][1]=te+Se,ce[y][2]=oe+Ie,!Im(ce))for(var j=0;j<Me;j++)for(var ee=0;ee<ce[j].length;ee++)ce[j][ee]=b[p][j][ee]}else ce[y][1]=te+le,ce[y][2]=oe+re;o()}}function M(){l()}function E(){if(r.length&&r[p]&&r[p].length){for(var le=[],re=0;re<r[p].length;re++)re!==y&&le.push(r[p][re]);le.length>1&&!(le.length===2&&le[1][0]==="Z")&&(y===0&&(le[0][0]="M"),r[p]=le,o(),l())}}function P(le,re){if(le===2){p=+re.srcElement.getAttribute("data-i"),y=+re.srcElement.getAttribute("data-j");var te=r[p];!Im(te)&&!wb(te)&&E()}}function z(le){d=[];for(var re=0;re<r.length;re++){var te=r[re],oe=Im(te),ce=!oe&&wb(te);d[re]=[];for(var Me=te.length,Se=0;Se<Me;Se++)if(te[Se][0]!=="Z"&&!(ce&&Se!==Qne&&Se!==eie&&Se!==rie&&Se!==tie)){var Ie=oe&&a.isActiveSelection,Ue;Ie&&(Ue=PE(te,Se));var ke=te[Se][1],We=te[Se][2],j=le.append(Ie?"rect":"circle").attr("data-i",re).attr("data-j",Se).style({fill:qE.background,stroke:qE.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(Ie){var ee=Ue[1]-ke,me=Ue[2]-We,K=me?5:Math.max(Math.min(25,Math.abs(ee)-5),5),$=ee?5:Math.max(Math.min(25,Math.abs(me)-5),5);j.classed(me?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",K).attr("height",$).attr("x",ke-K/2).attr("y",We-$/2).attr("transform",$ne(ee/2,me/2))}else j.classed("cursor-grab",!0).attr("r",5).attr("cx",ke).attr("cy",We);d[re][Se]={element:j.node(),gd:i,prepFn:A,doneFn:M,clickFn:P},LE.init(d[re][Se])}}}function B(le,re){if(r.length)for(var te=0;te<r.length;te++)for(var oe=0;oe<r[te].length;oe++)for(var ce=0;ce+2<r[te][oe].length;ce+=2)r[te][oe][ce+1]=b[te][oe][ce+1]+le,r[te][oe][ce+2]=b[te][oe][ce+2]+re}function X(le,re){B(le,re),o()}function H(le){p=+le.srcElement.getAttribute("data-i"),p||(p=0),m[p].moveFn=X}function V(){l()}function I(le){le===2&&fie(i)}function Q(){if(m=[],!!r.length){var le=0;m[le]={element:t[0][0],gd:i,prepFn:H,doneFn:V,clickFn:I},LE.init(m[le])}}};function sie(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 PE(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 fie(e){if(zE(e._fullLayout.dragmode)){BE(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},NE.call("_guiRelayout",e,{selections:a})}}}});var Xm=ae((xye,ZE)=>{"use strict";var cie=St(),VE=bt(),Tb=mr(),cc=Ba(),vie=L0().readPaths,hie=Om(),Gm=xb(),XE=x0().clearOutlineControllers,Mb=Lt(),Ym=va(),die=Ta().arrayEditor,HE=Vo(),OE=Hl(),UE=F0(),vc=eh(),$i=R0(),kb=$i.getPathString;ZE.exports={draw:Cb,drawOne:WE,eraseActiveShape:bie,drawLabel:Gm};function Cb(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&&WE(e,n)}function Um(e){return!!e._fullLayout._outlining}function Vm(e){return!e._context.edits.shapePosition}function WE(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=$i.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(u){var s=kb(e,a),f={"data-index":r,"fill-rule":a.fillrule,d:s},c=a.opacity,h=a.fillcolor,d=a.line.width?a.line.color:"rgba(0,0,0,0)",m=a.line.width,p=a.line.dash;!m&&a.editable===!0&&(m=5,p="solid");var y=s[s.length-1]!=="Z",b=Vm(e)&&a.editable&&e._fullLayout._activeShapeIndex===r;b&&(h=y?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var C=u.append("g").classed("shape-group",!0).attr({"data-index":r}),x=C.append("path").attr(f).style("opacity",c).call(Mb.stroke,d).call(Mb.fill,h).call(Ym.dashLine,p,m);jE(C,e,a),Gm(e,r,a,C);var _;if((b||e._context.edits.shapePosition)&&(_=die(e.layout,"shapes",a)),b){x.style({cursor:"move"});var A={element:x.node(),plotinfo:n,gd:e,editHelpers:_,hasText:a.label.text||a.label.texttemplate,isActiveShape:!0},T=vie(s,e);hie(T,x,A)}else e._context.edits.shapePosition?gie(e,x,a,r,u,_):a.editable===!0&&x.style("pointer-events",y||Mb.opacity(h)*c<=.5?"stroke":"all");x.node().addEventListener("click",function(){return yie(e,x)}),pie(e,x,n)}}function pie(e,r,t){if(!(t!=null&&t.id))return;let a=r.node();function n(i){var u;let o=t.mainplotinfo||t,l=(u=o==null?void 0:o.draglayer)==null?void 0:u.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&&OE.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&OE.click(e,o,t.id)}})}function jE(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=mie(r,a,n);Tb.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),Ym.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");Ym.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function mie(e,r,t){let a=e._fullLayout._size;function n(l,u){let s=(Array.isArray(l)?l:[l]).map(h=>cc.getFromId(e,h)).filter(Boolean);if(!s.length)return u?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=s.map(function(h){return h._offset}),c=s.map(function(h){return h._offset+h._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 gie(e,r,t,a,n,i){var o=10,l=10,u=t.xsizemode==="pixel",s=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",h=i.modifyItem,d,m,p,y,b,C,x,_,A,T,M,E,P,z,B,X=cie.select(r.node().parentNode),H=cc.getFromId(e,t.xref),V=cc.getRefType(t.xref),I=cc.getFromId(e,t.yref),Q=cc.getRefType(t.yref),le=t.x0shift,re=t.x1shift,te=t.y0shift,oe=t.y1shift,ce=function(fr,Re){var ur=$i.getDataToPixel(e,H,Re,!1,V);return ur(fr)},Me=function(fr,Re){var ur=$i.getDataToPixel(e,I,Re,!0,Q);return ur(fr)},Se=$i.getPixelToData(e,H,!1,V),Ie=$i.getPixelToData(e,I,!0,Q),Ue=j(),ke={element:Ue.node(),gd:e,prepFn:K,doneFn:$,clickFn:se},We;HE.init(ke),Ue.node().onmousemove=me;function j(){return f?ee():r}function ee(){var fr=10,Re=Math.max(t.line.width,fr),ur=n.append("g").attr("data-index",a).attr("drag-helper",!0);ur.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Re,"stroke-opacity":"0"});var hr={"fill-opacity":"0"},dr=Math.max(Re/2,fr);return ur.append("circle").attr({"data-line-point":"start-point",cx:u?ce(t.xanchor)+t.x0:ce(t.x0,le),cy:s?Me(t.yanchor)-t.y0:Me(t.y0,te),r:dr}).style(hr).classed("cursor-grab",!0),ur.append("circle").attr({"data-line-point":"end-point",cx:u?ce(t.xanchor)+t.x1:ce(t.x1,re),cy:s?Me(t.yanchor)-t.y1:Me(t.y1,oe),r:dr}).style(hr).classed("cursor-grab",!0),ur}function me(fr){if(Um(e)){We=null;return}if(f)fr.target.tagName==="path"?We="move":We=fr.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Re=ke.element.getBoundingClientRect(),ur=Re.right-Re.left,hr=Re.bottom-Re.top,dr=fr.clientX-Re.left,Ze=fr.clientY-Re.top,cr=!c&&ur>o&&hr>l&&!fr.shiftKey?HE.getCursor(dr/ur,1-Ze/hr):"move";UE(r,cr),We=cr.split("-")[0]}}function K(fr){Um(e)||(u&&(b=ce(t.xanchor)),s&&(C=Me(t.yanchor)),t.type==="path"?B=t.path:(d=u?t.x0:ce(t.x0),m=s?t.y0:Me(t.y0),p=u?t.x1:ce(t.x1),y=s?t.y1:Me(t.y1)),d<p?(A=d,P="x0",T=p,z="x1"):(A=p,P="x1",T=d,z="x0"),!s&&m<y||s&&m>y?(x=m,M="y0",_=y,E="y1"):(x=y,M="y1",_=m,E="y0"),me(fr),$e(n,t),tr(r,t,e),ke.moveFn=We==="move"?_e:Ne,ke.altKey=fr.altKey)}function $(){Um(e)||(UE(r),ar(n),jE(r,e,t),VE.call("_guiRelayout",e,i.getUpdateObj()))}function se(){Um(e)||ar(n)}function _e(fr,Re){if(t.type==="path"){var ur=function(Ze){return Ze},hr=ur,dr=ur;u?h("xanchor",t.xanchor=Se(b+fr)):(hr=function(cr){return Se(ce(cr)+fr)},H&&H.type==="date"&&(hr=$i.encodeDate(hr))),s?h("yanchor",t.yanchor=Ie(C+Re)):(dr=function(cr){return Ie(Me(cr)+Re)},I&&I.type==="date"&&(dr=$i.encodeDate(dr))),h("path",t.path=GE(B,hr,dr))}else u?h("xanchor",t.xanchor=Se(b+fr)):(h("x0",t.x0=Se(d+fr)),h("x1",t.x1=Se(p+fr))),s?h("yanchor",t.yanchor=Ie(C+Re)):(h("y0",t.y0=Ie(m+Re)),h("y1",t.y1=Ie(y+Re)));r.attr("d",kb(e,t)),$e(n,t),Gm(e,a,t,X)}function Ne(fr,Re){if(c){var ur=function(xr){return xr},hr=ur,dr=ur;u?h("xanchor",t.xanchor=Se(b+fr)):(hr=function(Pr){return Se(ce(Pr)+fr)},H&&H.type==="date"&&(hr=$i.encodeDate(hr))),s?h("yanchor",t.yanchor=Ie(C+Re)):(dr=function(Pr){return Ie(Me(Pr)+Re)},I&&I.type==="date"&&(dr=$i.encodeDate(dr))),h("path",t.path=GE(B,hr,dr))}else if(f){if(We==="resize-over-start-point"){var Ze=d+fr,cr=s?m-Re:m+Re;h("x0",t.x0=u?Ze:Se(Ze)),h("y0",t.y0=s?cr:Ie(cr))}else if(We==="resize-over-end-point"){var Er=p+fr,Te=s?y-Re:y+Re;h("x1",t.x1=u?Er:Se(Er)),h("y1",t.y1=s?Te:Ie(Te))}}else{var Oe=function(xr){return We.indexOf(xr)!==-1},Ar=Oe("n"),Nr=Oe("s"),Qe=Oe("w"),Be=Oe("e"),Xe=Ar?x+Re:x,yr=Nr?_+Re:_,kr=Qe?A+fr:A,pr=Be?T+fr:T;s&&(Ar&&(Xe=x-Re),Nr&&(yr=_-Re)),(!s&&yr-Xe>l||s&&Xe-yr>l)&&(h(M,t[M]=s?Xe:Ie(Xe)),h(E,t[E]=s?yr:Ie(yr))),pr-kr>o&&(h(P,t[P]=u?kr:Se(kr)),h(z,t[z]=u?pr:Se(pr)))}r.attr("d",kb(e,t)),$e(n,t),Gm(e,a,t,X)}function $e(fr,Re){(u||s)&&ur();function ur(){var hr=Re.type!=="path",dr=fr.selectAll(".visual-cue").data([0]),Ze=1;dr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ze}).classed("visual-cue",!0);var cr=ce(u?Re.xanchor:Tb.midRange(hr?[Re.x0,Re.x1]:$i.extractPathCoords(Re.path,vc.paramIsX))),Er=Me(s?Re.yanchor:Tb.midRange(hr?[Re.y0,Re.y1]:$i.extractPathCoords(Re.path,vc.paramIsY)));if(cr=$i.roundPositionForSharpStrokeRendering(cr,Ze),Er=$i.roundPositionForSharpStrokeRendering(Er,Ze),u&&s){var Te="M"+(cr-1-Ze)+","+(Er-1-Ze)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";dr.attr("d",Te)}else if(u){var Oe="M"+(cr-1-Ze)+","+(Er-9-Ze)+"v18 h2 v-18 Z";dr.attr("d",Oe)}else{var Ar="M"+(cr-9-Ze)+","+(Er-1-Ze)+"h18 v2 h-18 Z";dr.attr("d",Ar)}}}function ar(fr){fr.selectAll(".visual-cue").remove()}function tr(fr,Re,ur){var hr=Re.xref,dr=Re.yref,Ze=cc.getFromId(ur,hr),cr=cc.getFromId(ur,dr),Er="";hr!=="paper"&&!Ze.autorange&&(Er+=hr),dr!=="paper"&&!cr.autorange&&(Er+=dr),Ym.setClipUrl(fr,Er?"clip"+ur._fullLayout._uid+Er:null,ur)}}function GE(e,r,t){return e.replace(vc.segmentRE,function(a){var n=0,i=a.charAt(0),o=vc.paramIsX[i],l=vc.paramIsY[i],u=vc.numParams[i],s=a.slice(1).replace(vc.paramRE,function(f){return n>=u||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+s})}function yie(e,r){if(Vm(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){YE(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=YE,Cb(e)}}}function YE(e){if(Vm(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(XE(e),delete e._fullLayout._activeShapeIndex,Cb(e))}}function bie(e){if(Vm(e)){XE(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,VE.call("_guiRelayout",e,{shapes:a})}}}});var $E=ae((wye,JE)=>{"use strict";var l2=mr()._,_ie=function(e){return{DIALOG_TITLE:l2(e,"Share chart"),DIALOG_MESSAGE_CLOUD:l2(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:l2(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:l2(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:l2(e,"Cancel"),DIALOG_CONFIRM:l2(e,"Share")}};JE.exports=_ie});var eL=ae((Aye,QE)=>{"use strict";var KE=St(),{dfltConfig:xie}=f0(),wie=$E(),Aie=(e,r,t,a,n)=>{let i=wie(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===xie.plotlyServerURL){let u=o.append("div").classed("plotly-cloud-dialog-message",!0),s=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],h=f[2],d=f[4];u.append("span").text(c),u.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",s).attr("target","_blank").text(h),u.append("span").text(d),u.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let u=new URL(t),s=u.hostname,f=u.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),h=c[0],d=c[4],m=o.append("div").classed("plotly-cloud-dialog-message",!0);m.append("span").text(h),m.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(s),m.append("span").text(d)}let l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},Mie=(e,r,t)=>{let a=KE.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",()=>{KE.event.target===n.node()&&i()}),Aie(e,n,r,()=>{i(),t()},i)};QE.exports=Mie});var Fb=ae((Mye,lL)=>{"use strict";var xo=bt(),Tie=An(),tL=wn(),$t=Em(),kie=Xm().eraseActiveShape,Cie=eL(),u2=mr(),Nt=u2._,Kt=lL.exports={};Kt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Nt(e,"Download plot as a PNG"):Nt(e,"Download plot")},icon:$t.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};u2.notifier(Nt(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])}),xo.call("downloadImage",e,t).then(function(a){u2.notifier(Nt(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){u2.notifier(Nt(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};Kt.downloadJson={name:"downloadJson",title:function(e){return Nt(e,"Download plot as JSON")},icon:$t.curlybraces,click:function(e){xo.call("downloadImage",e,{format:"full-json"}).then(function(r){u2.notifier(Nt(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){u2.notifier(Nt(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};Kt.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Nt(e,"Share chart...")},icon:$t.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}Cie(e,r,function(){Tie.sendDataToCloud(e,r)})}};Kt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:$t.zoombox,click:yi};Kt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nt(e,"Pan")},attr:"dragmode",val:"pan",icon:$t.pan,click:yi};Kt.select2d={name:"select2d",_cat:"select",title:function(e){return Nt(e,"Box Select")},attr:"dragmode",val:"select",icon:$t.selectbox,click:yi};Kt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:$t.lasso,click:yi};Kt.drawclosedpath={name:"drawclosedpath",title:function(e){return Nt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:$t.drawclosedpath,click:yi};Kt.drawopenpath={name:"drawopenpath",title:function(e){return Nt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:$t.drawopenpath,click:yi};Kt.drawline={name:"drawline",title:function(e){return Nt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:$t.drawline,click:yi};Kt.drawrect={name:"drawrect",title:function(e){return Nt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:$t.drawrect,click:yi};Kt.drawcircle={name:"drawcircle",title:function(e){return Nt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:$t.drawcircle,click:yi};Kt.eraseshape={name:"eraseshape",title:function(e){return Nt(e,"Erase active shape")},icon:$t.eraseshape,click:kie};Kt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nt(e,"Zoom in")},attr:"zoom",val:"in",icon:$t.zoom_plus,click:yi};Kt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nt(e,"Zoom out")},attr:"zoom",val:"out",icon:$t.zoom_minus,click:yi};Kt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nt(e,"Autoscale")},attr:"zoom",val:"auto",icon:$t.autoscale,click:yi};Kt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nt(e,"Reset axes")},attr:"zoom",val:"reset",icon:$t.home,click:yi};Kt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Nt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:$t.tooltip_basic,gravity:"ne",click:yi};Kt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Nt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:$t.tooltip_compare,gravity:"ne",click:yi};function yi(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=tL.list(e,null,!0),u=i._cartesianSpikesEnabled,s,f;if(a==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,m,p;for(f=0;f<l.length;f++)if(s=l[f],p=s.modebardisable==="none"||s.modebardisable.indexOf(n==="auto"||n==="reset"?"autoscale":"zoominout")===-1,p&&!s.fixedrange)if(m=s._name,n==="auto")o[m+".autorange"]=!0;else if(n==="reset")s._rangeInitial0===void 0&&s._rangeInitial1===void 0?o[m+".autorange"]=!0:s._rangeInitial0===void 0?(o[m+".autorange"]=s._autorangeInitial,o[m+".range"]=[null,s._rangeInitial1]):s._rangeInitial1===void 0?(o[m+".range"]=[s._rangeInitial0,null],o[m+".autorange"]=s._autorangeInitial):o[m+".range"]=[s._rangeInitial0,s._rangeInitial1],s._showSpikeInitial!==void 0&&(o[m+".showspikes"]=s._showSpikeInitial,u==="on"&&!s._showSpikeInitial&&(u="off"));else{var y=[s.r2l(s.range[0]),s.r2l(s.range[1])],b=[h*y[0]+d*y[1],h*y[1]+d*y[0]];o[m+".range[0]"]=s.l2r(b[0]),o[m+".range[1]"]=s.l2r(b[1])}}else a==="hovermode"&&(n==="x"||n==="y")&&(n=i._isHoriz?"y":"x",t.setAttribute("data-val",n)),o[a]=n;i._cartesianSpikesEnabled=u,xo.call("_guiRelayout",e,o)}Kt.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return Nt(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:$t.zoombox,click:jm};Kt.pan3d={name:"pan3d",_cat:"pan",title:function(e){return Nt(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:$t.pan,click:jm};Kt.orbitRotation={name:"orbitRotation",title:function(e){return Nt(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:$t["3d_rotate"],click:jm};Kt.tableRotation={name:"tableRotation",title:function(e){return Nt(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:$t["z-axis"],click:jm};function jm(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("."),u=0;u<i.length;u++)o[i[u]+"."+l[1]]=n;var s=n==="pan"?n:"zoom";o.dragmode=s,xo.call("_guiRelayout",e,o)}Kt.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return Nt(e,"Reset camera to default")},attr:"resetDefault",icon:$t.home,click:Db};Kt.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return Nt(e,"Reset camera to last save")},attr:"resetLastSave",icon:$t.movie,click:Db};function Db(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||[],u={},s=0;s<l.length;s++){var f=l[s],c=f+".camera",h=f+".aspectratio",d=f+".aspectmode",m=o[f]._scene,p;n?(u[c+".up"]=m.viewInitial.up,u[c+".eye"]=m.viewInitial.eye,u[c+".center"]=m.viewInitial.center,p=!0):i&&(u[c+".up"]=null,u[c+".eye"]=null,u[c+".center"]=null,p=!0),p&&(u[h+".x"]=m.viewInitial.aspectratio.x,u[h+".y"]=m.viewInitial.aspectratio.y,u[h+".z"]=m.viewInitial.aspectratio.z,u[d]=m.viewInitial.aspectmode)}xo.call("_guiRelayout",e,u)}Kt.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return Nt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:$t.tooltip_basic,gravity:"ne",click:Die};function aL(e,r){var t=r.currentTarget,a=t._previousVal,n=e._fullLayout,i=n._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},u={};if(a)u=a,t._previousVal=null;else{for(var s=0;s<i.length;s++){var f=i[s],c=n[f],h=f+".hovermode";l[h]=c.hovermode,u[h]=!1;for(var d=0;d<3;d++){var m=o[d],p=f+"."+m+".showspikes";u[p]=!1,l[p]=c[m].showspikes}}t._previousVal=l}return u}function Die(e,r){var t=aL(e,r);xo.call("_guiRelayout",e,t)}Kt.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return Nt(e,"Zoom in")},attr:"zoom",val:"in",icon:$t.zoom_plus,click:Sb};Kt.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return Nt(e,"Zoom out")},attr:"zoom",val:"out",icon:$t.zoom_minus,click:Sb};Kt.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return Nt(e,"Reset")},attr:"reset",val:null,icon:$t.autoscale,click:Sb};Kt.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return Nt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:$t.tooltip_basic,gravity:"ne",click:iL};var rL=2;function Sb(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 u of o){let s=i[u],f=s._subplot;if(a==="zoom"){let c=f.projection,h=c.scale()/f.fitScale,[d,m]=c.rotate().map(T=>-T),[p,y]=c.invert(f.midPt),{minscale:b}=s.projection,C=(l=s.projection.maxscale)!=null?l:1/0,x=Math.min(b,C),_=Math.max(b,C),A=n==="in"?rL*h:1/rL*h;A>_?A=_:A<x&&(A=x),A!==h&&xo.call("_guiRelayout",e,{[u+".projection.scale"]:A,[u+".projection.rotation.lon"]:d,[u+".projection.rotation.lat"]:m,[u+".center.lon"]:p,[u+".center.lat"]:y,[u+".fitbounds"]:!1})}}a==="reset"&&Wm(e,"geo")}Kt.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Nt(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:$t.tooltip_basic,gravity:"ne",click:iL};function nL(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function iL(e){var r=nL(e);xo.call("_guiRelayout",e,"hovermode",r)}Kt.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Nt(e,"Reset view")},icon:$t.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())}xo.call("restyle",e,r)}};Kt.toggleHover={name:"toggleHover",title:function(e){return Nt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:$t.tooltip_basic,gravity:"ne",click:function(e,r){var t=aL(e,r);t.hovermode=nL(e),xo.call("_guiRelayout",e,t)}};Kt.resetViews={name:"resetViews",title:function(e){return Nt(e,"Reset views")},icon:$t.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),yi(e,r),t.setAttribute("data-attr","resetLastSave"),Db(e,r),Wm(e,"geo"),Wm(e,"map")}};Kt.toggleSpikelines={name:"toggleSpikelines",title:function(e){return Nt(e,"Toggle Spike Lines")},icon:$t.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",xo.call("_guiRelayout",e,Sie(e))}};function Sie(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=tL.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}Kt.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return Nt(e,"Reset view")},attr:"reset",icon:$t.home,click:function(e){Wm(e,"map")}};Kt.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return Nt(e,"Zoom in")},attr:"zoom",val:"in",icon:$t.zoom_plus,click:oL};Kt.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return Nt(e,"Zoom out")},attr:"zoom",val:"out",icon:$t.zoom_minus,click:oL};function oL(e,r){Fie(e,r,"map")}function Fie(e,r,t){for(var a=r.currentTarget,n=a.getAttribute("data-val"),i=e._fullLayout,o=i._subplots[t]||[],l=1.05,u={},s=0;s<o.length;s++){var f=o[s],c=i[f].zoom,h=n==="in"?l*c:c/l;u[f+".zoom"]=h}xo.call("_guiRelayout",e,u)}function Wm(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,u=l.viewInitial,s=Object.keys(u),f=0;f<s.length;f++){var c=s[f];n[o+"."+c]=u[c]}xo.call("_guiRelayout",e,n)}});var Eb=ae((Tye,cL)=>{"use strict";var uL=Fb(),Eie=Object.keys(uL),sL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],fL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(sL,["downloadJson"]),s2=[],Lie=function(e){if(fL.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();s2.indexOf(r)===-1&&s2.push(r),s2.indexOf(t)===-1&&s2.push(t)}};Eie.forEach(function(e){Lie(uL[e])});s2.sort();cL.exports={DRAW_MODES:sL,backButtons:fL,foreButtons:s2}});var qb={};u1(qb,{default:()=>Pie});var Lb,qie,Pie,Pb=l1(()=>{"use strict";Lb=fy(Eb()),qie={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 *${Lb.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 *${Lb.default.foreButtons.join("*, *")}*.`].join(" ")}},Pie=qie});var hL=ae((kye,vL)=>{"use strict";var Rie=mr(),th=Lt(),zie=Ta(),Nie=(Pb(),ei(qb)).default;vL.exports=function(r,t){var a=r.modebar||{},n=zie.newContainer(t,"modebar");function i(l,u){return Rie.coerce(a,n,Nie,l,u)}i("orientation"),i("bgcolor",th.addOpacity(t.paper_bgcolor,.5));var o=th.contrast(th.rgb(t.modebar.bgcolor));i("color",th.addOpacity(o,.3)),i("activecolor",th.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var gL=ae((Cye,mL)=>{"use strict";var Rb=St(),Bie=Wt(),Zm=mr(),dL=Em(),Iie=$2().version,Hie=new DOMParser;function pL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Nu=pL.prototype;Nu.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),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),Zm.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Nu.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)})};Nu.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Nu.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&&Rb.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||dL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Nu.createIcon=function(e){var r=Bie(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=Hie.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Nu.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=Rb.select(a),u=function(c,h){var d=r.modebar,m=c.querySelector(".icon path");m&&(h||c.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(o){if(i===t){var s=!l.classed("active");l.classed("active",s),u(a,s)}}else{var f=i===null?i:Zm.nestedProperty(r,i).get();l.classed("active",f===n),u(a,f===n)}})};Nu.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 Oie(e){return e+" (v"+Iie+")"}Nu.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Oie(Zm._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(dL.newplotlylogo)),e.appendChild(r),e};Nu.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};Nu.destroy=function(){Zm.removeElement(this.container.querySelector(".modebar"))};function Uie(e,r){var t=e._fullLayout,a=new pL({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&Rb.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}mL.exports=Uie});var _L=ae((Dye,bL)=>{"use strict";var Gie=wn(),yL=pi(),zb=bt(),Yie=Fs().isUnifiedHover,Vie=gL(),Jm=Fb(),Xie=Eb().DRAW_MODES,Wie=mr().extendDeep;bL.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=Qie(i):!a.displayModeBar&&a.watermark?o=[]:o=jie(r),n?n.update(r,o):t._modeBar=Vie(r,o)};function jie(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(re,te){if(typeof te=="string"){if(te.toLowerCase()===re.toLowerCase())return!0}else{var oe=te.name,ce=te._cat||te.name;if(oe===re||ce===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 te=0;te<a.modeBarButtonsToRemove.length;te++)if(n(re,a.modeBarButtonsToRemove[te]))return!1;return!0})),u=a.modeBarButtonsToRemove.concat(o.filter(function(re){for(var te=0;te<a.modeBarButtonsToAdd.length;te++)if(n(re,a.modeBarButtonsToAdd[te]))return!1;return!0})),s=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),h=r._has("pie"),d=r._has("funnelarea"),m=r._has("ternary"),p=r._has("map"),y=r._has("polar"),b=r._has("smith"),C=r._has("sankey"),x=Zie(r),_=Yie(r.hovermode),A=[];function T(re){if(re.length){for(var te=[],oe=0;oe<re.length;oe++){for(var ce=re[oe],Me=Jm[ce],Se=Me.name.toLowerCase(),Ie=(Me._cat||Me.name).toLowerCase(),Ue=!1,ke=0;ke<u.length;ke++){var We=u[ke].toLowerCase();if(We===Se||We===Ie){Ue=!0;break}}Ue||te.push(Jm[ce])}A.push(te)}}var M=!1,E=[],P=[],z=[],B=[];(s||h||d||m)+c+f+p+y+b>1?(P=["toggleHover"],z=["resetViews"]):c?(E=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],z=["resetGeo"]):f?(P=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):p?(E=["zoomInMap","zoomOutMap"],P=["toggleHover"],z=["resetViewMap"]):h?P=["hoverClosestPie"]:C?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],s&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),($ie(t)||_)&&(P=[]),s&&!x&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?B=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!x||m?B=["zoom2d","pan2d"]:p||c?B=["pan2d"]:y&&(B=["zoom2d"]),Jie(t)&&B.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=[],I=0;I<l.length;I++){var Q=l[I];typeof Q=="string"?(Q=Q.toLowerCase(),Xie.indexOf(Q)!==-1?(r._has("map")||r._has("cartesian"))&&B.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 le=["toImage"];return M&&le.push("downloadJson"),a.showSendToCloud&&le.push("sendChartToCloud"),T(le),T(B),T(E.concat(z)),T(X),Kie(A,l)}function Zie(e){for(var r=Gie.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 Jie(e){for(var r=!1,t=0;t<e.length&&!r;t++){var a=e[t];!a._module||!a._module.selectPoints||(zb.traceIs(a,"scatter-like")&&a.type!=="quiver"?(yL.hasMarkers(a)||yL.hasText(a))&&(r=!0):zb.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function $ie(e){for(var r=0;r<e.length;r++)if(!zb.traceIs(e[r],"noHover"))return!1;return!0}function Kie(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 Qie(e){for(var r=Wie([],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(Jm[i]!==void 0)r[t][n]=Jm[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var Nb=ae((Sye,xL)=>{"use strict";xL.exports={moduleType:"component",name:"modebar",layoutAttributes:(Pb(),ei(qb)).default,supplyLayoutDefaults:hL(),manage:_L()}});var Bb=ae((Fye,wL)=>{"use strict";var eoe=ti().FROM_BL;wL.exports=function(r,t,a){a===void 0&&(a=eoe[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 nh=ae(ah=>{"use strict";var hc=mr(),Ib=D0(),Ol=wn().id2name,roe=Nl(),AL=Bb(),toe=am(),aoe=Oa().ALMOST_EQUAL,noe=ti().FROM_BL;ah.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,u,s,f,c,h,d,m;for(l=0;l<a.length;l++)f=Ol(a[l]),c=e[f],h=r[f],ioe(c,h,{axIds:a,layoutOut:r,hasImage:n[f]});function p(E,P){for(l=0;l<E.length;l++){u=E[l];for(s in u)r[Ol(s)][P]=u}}for(p(o,"_matchGroup"),l=0;l<i.length;l++){u=i[l];for(s in u)if(h=r[Ol(s)],h.fixedrange){for(var y in u){var b=Ol(y);(e[b]||{}).fixedrange===!1&&hc.warn("fixedrange was specified as false for axis "+b+" but was overridden because another axis in its constraint group has fixedrange true"),r[b].fixedrange=!0}break}}for(l=0;l<i.length;){u=i[l];for(s in u){h=r[Ol(s)],h._matchGroup&&Object.keys(h._matchGroup).length===Object.keys(u).length&&(i.splice(l,1),l--);break}l++}p(i,"_constraintGroup");var C=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],x=!1,_=!1;function A(){m=h[d],d==="rangebreaks"&&(_=h._hasDayOfWeekBreaks)}for(l=0;l<o.length;l++){u=o[l];for(var T=0;T<C.length;T++){d=C[T],m=null;var M;for(s in u)if(f=Ol(s),c=e[f],h=r[f],d in h){if(!h.matches&&(M=h,d in c)){A();break}m===null&&d in c&&A()}if(d==="range"&&m&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null&&(x=!0),d==="autorange"&&m===null&&x&&(m=!1),m===null&&d in M&&(m=M[d]),m!==null)for(s in u)h=r[Ol(s)],h[d]=d==="range"?m.slice():m,d==="rangebreaks"&&(h._hasDayOfWeekBreaks=_,toe(h,r))}}};function ioe(e,r,t){var a=t.axIds,n=t.layoutOut,i=t.hasImage,o=n._axisConstraintGroups,l=n._axisMatchGroups,u=r._id,s=u.charAt(0),f=((n._splomAxes||{})[s]||{})[u]||{},c=r._id,h=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function d(X,H){return hc.coerce(e,r,roe,X,H)}d("constrain",i?"domain":"range"),hc.coerce(e,r,{constraintoward:{valType:"enumerated",values:h?["left","center","right"]:["bottom","middle","top"],dflt:h?"center":"middle"}},"constraintoward");var m=r.type,p,y,b=[];for(p=0;p<a.length;p++)if(y=a[p],y!==c){var C=n[Ol(y)];C.type===m&&b.push(y)}var x=kL(o,c);if(x){var _=[];for(p=0;p<b.length;p++)y=b[p],x[y]||_.push(y);b=_}var A=b.length,T,M;A&&(e.matches||f.matches)&&(T=hc.coerce(e,r,{matches:{valType:"enumerated",values:b,dflt:b.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var E=i&&!h?r.anchor:void 0;if(A&&!T&&(e.scaleanchor||E)&&(M=hc.coerce(e,r,{scaleanchor:{valType:"enumerated",values:b.concat([!1])}},"scaleanchor",E)),T){r._matchGroup=Hb(l,c,T,1);var P=n[Ol(T)],z=ML(n,r)/ML(n,P);h!==(T.charAt(0)==="x")&&(z=(h?"x":"y")+z),Hb(o,c,T,z)}else e.matches&&a.indexOf(e.matches)!==-1&&hc.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(M){var B=d("scaleratio");B||(B=r.scaleratio=1),Hb(o,c,M,B)}else e.scaleanchor&&a.indexOf(e.scaleanchor)!==-1&&hc.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 ML(e,r){var t=r.domain;return t||(t=e[Ol(r.overlaying)].domain),t[1]-t[0]}function kL(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function Hb(e,r,t,a){var n,i,o,l,u,s=kL(e,r);s===null?(s={},s[r]=1,u=e.length,e.push(s)):u=e.indexOf(s);var f=Object.keys(s);for(n=0;n<e.length;n++)if(o=e[n],n!==u&&o[t]){var c=o[t];for(i=0;i<f.length;i++)l=f[i],o[l]=Ob(c,Ob(a,s[l]));e.splice(u,1);return}if(a!==1)for(i=0;i<f.length;i++){var h=f[i];s[h]=Ob(a,s[h])}s[t]=1}function Ob(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 ooe(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],u=e[l];if(typeof u=="string"){var s=u.match(/^[xy]*/)[0],f=s.length;u=+u.slice(f);for(var c=s.charAt(0)==="y"?a:1/a,h=0;h<f;h++)u*=c}n[l]=u}return n}ah.enforce=function(r){var t=r._fullLayout,a=t._axisConstraintGroups||[],n,i,o,l,u,s,f,c;for(n=0;n<a.length;n++){o=ooe(a[n],t);var h=Object.keys(o),d=1/0,m=0,p=1/0,y={},b={},C=!1;for(i=0;i<h.length;i++)l=h[i],b[l]=u=t[Ol(l)],u._inputDomain?u.domain=u._inputDomain.slice():u._inputDomain=u.domain.slice(),u._inputRange||(u._inputRange=u.range.slice()),u.setScale(),y[l]=s=Math.abs(u._m)/o[l],d=Math.min(d,s),(u.constrain==="domain"||!u._constraintShrinkable)&&(p=Math.min(p,s)),delete u._constraintShrinkable,m=Math.max(m,s),u.constrain==="domain"&&(C=!0);if(!(d>aoe*m&&!C)){for(i=0;i<h.length;i++)if(l=h[i],s=y[l],u=b[l],f=u.constrain,s!==p||f==="domain")if(c=s/p,f==="range")AL(u,c);else{var x=u._inputDomain,_=(u.domain[1]-u.domain[0])/(x[1]-x[0]),A=(u.r2l(u.range[1])-u.r2l(u.range[0]))/(u.r2l(u._inputRange[1])-u.r2l(u._inputRange[0]));if(c/=_,c*A<1){u.domain=u._input.domain=x.slice(),AL(u,c);continue}if(A<1&&(u.range=u._input.range=u._inputRange.slice(),c*=A),u.autorange){var T=u.r2l(u.range[0]),M=u.r2l(u.range[1]),E=(T+M)/2,P=E,z=E,B=Math.abs(M-E),X=E-B*c*1.0001,H=E+B*c*1.0001,V=Ib.makePadFn(t,u,0),I=Ib.makePadFn(t,u,1);TL(u,c);var Q=Math.abs(u._m),le=Ib.concatExtremes(r,u),re=le.min,te=le.max,oe,ce;for(ce=0;ce<re.length;ce++)oe=re[ce].val-V(re[ce])/Q,oe>X&&oe<P&&(P=oe);for(ce=0;ce<te.length;ce++)oe=te[ce].val+I(te[ce])/Q,oe<H&&oe>z&&(z=oe);var Me=(z-P)/(2*B);c/=Me,P=u.l2r(P),z=u.l2r(z),u.range=u._input.range=T<M?[P,z]:[z,P]}TL(u,c)}}}};ah.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};ah.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 TL(e,r){var t=e._inputDomain,a=noe[e.constraintoward],n=t[0]+(t[1]-t[0])*a;e.domain=e._input.domain=[n+(t[0]-n)/r,n+(t[1]-n)/r],e.setScale()}});var Qm=ae(qn=>{"use strict";var Km=St(),bi=bt(),wo=An(),jo=mr(),Ub=ai(),Gb=Fm(),ih=Lt(),f2=va(),CL=Iv(),LL=Nb(),oh=Ba(),Ps=ti(),qL=nh(),loe=qL.enforce,uoe=qL.clean,DL=D0().doAutoRange,PL="start",soe="middle",RL="end",foe=En().zindexSeparator;qn.layoutStyles=function(e){return jo.syncOrAsync([wo.doAutoMargin,voe],e)};function coe(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 voe(e){var r=e._fullLayout,t=r._size,a=t.p,n=oh.list(e,"",!0),i,o,l,u,s,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(f2.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),qn.drawMainTitle(e),LL.manage(e),!r._has("cartesian"))return wo.previousPromises(e);function c(K,$,se){var _e=K._lw/2;if(K._id.charAt(0)==="x"){if($){if(se==="top")return $._offset-a-_e}else return t.t+t.h*(1-(K.position||0))+_e%1;return $._offset+$._length+a+_e}if($){if(se==="right")return $._offset+$._length+a+_e}else return t.l+t.w*(K.position||0)+_e%1;return $._offset-a-_e}for(i=0;i<n.length;i++){u=n[i];var h=u._anchorAxis;u._linepositions={},u._lw=f2.crispRound(e,u.linewidth,1),u._mainLinePosition=c(u,h,u.side),u._mainMirrorPosition=u.mirror&&h?c(u,h,Ps.OPPOSITE_SIDE[u.side]):null}var d=[],m=[],p=[],y=ih.opacity(r.paper_bgcolor)===1&&ih.opacity(r.plot_bgcolor)===1&&r.paper_bgcolor===r.plot_bgcolor;for(o in r._plots)if(l=r._plots[o],l.mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var b=l.xaxis.domain,C=l.yaxis.domain,x=l.plotgroup;if(coe(b,C,p)&&o.indexOf(foe)===-1){var _=x.node(),A=l.bg=jo.ensureSingle(x,"rect","bg");_.insertBefore(A.node(),_.childNodes[0]),m.push(o)}else x.select("rect.bg").remove(),p.push([b,C]),y||(d.push(o),m.push(o))}var T=r._bgLayer.selectAll(".bg").data(d);for(T.enter().append("rect").classed("bg",!0),T.exit().remove(),T.each(function(K){r._plots[K].bg=Km.select(this)}),i=0;i<m.length;i++)l=r._plots[m[i]],s=l.xaxis,f=l.yaxis,l.bg&&s._offset!==void 0&&f._offset!==void 0&&l.bg.call(f2.setRect,s._offset-a,f._offset-a,s._length+2*a,f._length+2*a).call(ih.fill,r.plot_bgcolor).style("stroke-width",0);if(!r._hasOnlyLargeSploms)for(o in r._plots){l=r._plots[o],s=l.xaxis,f=l.yaxis;var M=l.clipId="clip"+r._uid+o+"plot",E=jo.ensureSingleById(r._clips,"clipPath",M,function(K){K.classed("plotclip",!0).append("rect")});l.clipRect=E.select("rect").attr({width:s._length,height:f._length}),f2.setTranslate(l.plot,s._offset,f._offset);var P,z;l._hasClipOnAxisFalse?(P=null,z=M):(P=M,z=null),f2.setClipUrl(l.plot,P,e),l.layerClipId=z}var B,X,H,V,I,Q,le,re,te,oe,ce,Me,Se;function Ie(K){return"M"+B+","+K+"H"+X}function Ue(K){return"M"+s._offset+","+K+"h"+s._length}function ke(K){return"M"+K+","+re+"V"+le}function We(K){return f._shift!==void 0&&(K+=f._shift),"M"+K+","+f._offset+"v"+f._length}function j(K,$,se){if(!K.showline||o!==K._mainSubplot)return"";if(!K._anchorAxis)return se(K._mainLinePosition);var _e=$(K._mainLinePosition);return K.mirror&&(_e+=$(K._mainMirrorPosition)),_e}for(o in r._plots){l=r._plots[o],s=l.xaxis,f=l.yaxis;var ee="M0,0";SL(s,o)&&(I=$m(s,"left",f,n),B=s._offset-(I?a+I:0),Q=$m(s,"right",f,n),X=s._offset+s._length+(Q?a+Q:0),H=c(s,f,"bottom"),V=c(s,f,"top"),Se=!s._anchorAxis||o!==s._mainSubplot,Se&&(s.mirror==="allticks"||s.mirror==="all")&&(s._linepositions[o]=[H,V]),ee=j(s,Ie,Ue),Se&&s.showline&&(s.mirror==="all"||s.mirror==="allticks")&&(ee+=Ie(H)+Ie(V)),l.xlines.style("stroke-width",s._lw+"px").call(ih.stroke,s.showline?s.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",ee);var me="M0,0";SL(f,o)&&(ce=$m(f,"bottom",s,n),le=f._offset+f._length+(ce?a:0),Me=$m(f,"top",s,n),re=f._offset-(Me?a:0),te=c(f,s,"left"),oe=c(f,s,"right"),Se=!f._anchorAxis||o!==f._mainSubplot,Se&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[o]=[te,oe]),me=j(f,ke,We),Se&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(me+=ke(te)+ke(oe)),l.ylines.style("stroke-width",f._lw+"px").call(ih.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",me)}return oh.makeClipPaths(e),wo.previousPromises(e)}function SL(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function FL(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=Ps.FROM_BL[r];return t.side===r?a.domain[n]===e.domain[n]:t.mirror&&a.domain[1-n]===e.domain[1-n]}function $m(e,r,t,a){if(FL(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&FL(e,r,i))return i._lw}return 0}qn.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=boe(t),n=_oe(t),i=yoe(t,n),o=goe(t,a);if(CL.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=Km.select(e).selectAll(".gtitle"),u=f2.bBox(Km.select(e).selectAll(".g-gtitle").node()).height,s=poe(e,r,u);if(s>0){moe(e,i,s,u),l.attr({x:o,y:i,"text-anchor":a,dy:EL(r.yanchor)}).call(Ub.positionText,o,i);var f=(r.text.match(Ub.BR_TAG_ALL)||[]).length;if(f){var c=Ps.LINE_SPACING*f+Ps.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var h=Km.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+CL.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":a,dy:EL(r.yanchor)}).call(Ub.positionText,o,p)}}}};function hoe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=jo.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return jo.isTopAnchor(r)&&t==="t"||jo.isBottomAnchor(r)&&t==="b"?!1:l<n}function doe(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 poe(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=doe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function moe(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},u={};i.yref==="paper"&&hoe(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(u[o]=t,e._fullLayout._reservedMargin[n]=u),wo.allowAutoMargin(e,n),wo.autoMargin(e,n,l)}function goe(e,r){var t=e.title,a=e._size,n=0;return r===PL?n=t.pad.l:r===RL&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function yoe(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Ps.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 EL(e){return e==="top"?Ps.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Ps.MID_SHIFT+"em"}function boe(e){var r=e.title,t=soe;return jo.isRightAnchor(r)?t=RL:jo.isLeftAnchor(r)&&(t=PL),t}function _oe(e){var r=e.title,t="0em";return jo.isTopAnchor(r)?t=Ps.CAP_SHIFT+"em":jo.isMiddleAnchor(r)&&(t=Ps.MID_SHIFT+"em"),t}qn.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||{},u=l.arraysToCalcdata;u&&u(n,o);var s=l.editStyle;s&&t.push({fn:s,cd0:i})}if(t.length){for(a=0;a<t.length;a++){var f=t[a];f.fn(e,f.cd0)}Gb(e),qn.redrawReglTraces(e)}return wo.style(e),bi.getComponentMethod("legend","draw")(e),wo.previousPromises(e)};qn.doColorBars=function(e){return bi.getComponentMethod("colorbar","draw")(e),wo.previousPromises(e)};qn.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,bi.call("_doPlot",e,"",r)};qn.doLegend=function(e){return bi.getComponentMethod("legend","draw")(e),wo.previousPromises(e)};qn.doTicksRelayout=function(e){var r=oh.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(bi.subplotsRegistry.splom.updateGrid(e),Gb(e),qn.redrawReglTraces(e)),qn.drawMainTitle(e),Promise.resolve(r).then(function(){return wo.previousPromises(e)})};qn.doModeBar=function(e){var r=e._fullLayout;LL.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return wo.previousPromises(e)};qn.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)}};qn.drawData=function(e){var r=e._fullLayout;Gb(e);for(var t=r._basePlotModules,a=0;a<t.length;a++)t[a].plot(e);return qn.redrawReglTraces(e),wo.style(e),bi.getComponentMethod("selections","draw")(e),bi.getComponentMethod("shapes","draw")(e),bi.getComponentMethod("annotations","draw")(e),bi.getComponentMethod("images","draw")(e),r._replotting=!1,wo.previousPromises(e)};qn.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"?jo.pushUnique(a,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&jo.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()}};qn.doAutoRangeAndConstraints=function(e){for(var r=oh.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,uoe(e,t),DL(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=oh.getFromId(e,o);DL(e,l,t.range),a[o]=1}}loe(e)};qn.finalDraw=function(e){bi.getComponentMethod("rangeslider","draw")(e),bi.getComponentMethod("rangeselector","draw")(e)};qn.drawMarginPushers=function(e){bi.getComponentMethod("legend","draw")(e),bi.getComponentMethod("rangeselector","draw")(e),bi.getComponentMethod("sliders","draw")(e),bi.getComponentMethod("updatemenus","draw")(e),bi.getComponentMethod("colorbar","draw")(e)}});var Xb=ae((qye,HL)=>{"use strict";var xoe=L0().readPaths,woe=Om(),zL=x0().clearOutlineControllers,Yb=Lt(),NL=va(),Aoe=Ta().arrayEditor,BL=R0(),Moe=BL.getPathString;HL.exports={draw:eg,drawOne:IL,activateLastSelection:Coe};function eg(e){var r=e._fullLayout;zL(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++)IL(e,n)}function rg(e){return e._context.editSelection}function IL(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=BL.makeSelectionsOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input)return;i(e._fullLayout._selectionLayer);function i(o){var l=Moe(e,a),u={"data-index":r,"fill-rule":"evenodd",d:l},s=a.opacity,f="rgba(0,0,0,0)",c=a.line.color||Yb.contrast(e._fullLayout.plot_bgcolor),h=a.line.width,d=a.line.dash;h||(h=5,d="solid");var m=rg(e)&&e._fullLayout._activeSelectionIndex===r;m&&(f=e._fullLayout.activeselection.fillcolor,s=e._fullLayout.activeselection.opacity);for(var p=[],y=1;y>=0;y--){var b=o.append("path").attr(u).style("opacity",y?.1:s).call(Yb.stroke,c).call(Yb.fill,f).call(NL.dashLine,y?"solid":d,y?4+h:h);if(Toe(b,e,a),m){var C=Aoe(e.layout,"selections",a);b.style({cursor:"move"});var x={element:b.node(),plotinfo:n,gd:e,editHelpers:C,isActiveSelection:!0},_=xoe(l,e);woe(_,b,x)}else b.style("pointer-events",y?"all":"none");p[y]=b}var A=p[0],T=p[1];T.node().addEventListener("click",function(){return koe(e,A)})}}function Toe(e,r,t){var a=t.xref+t.yref;NL.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function koe(e,r){if(rg(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){Vb(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=Vb,eg(e)}}}function Coe(e){if(rg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Vb,eg(e)}}function Vb(e){if(rg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(zL(e),delete e._fullLayout._activeSelectionIndex,eg(e))}}});var UL=ae((Pye,OL)=>{function Doe(){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}OL.exports=Doe});var YL=ae((Rye,GL)=>{function Soe(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],u=n[1],s=t[0],f=t[1];return(l-i)*(f-o)-(u-o)*(s-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],u=n[1]-a[1],s=l*o+i*u;if(s<e)return!1;var f=o*o+u*u;return!(s-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],u=a[1]-n[1];return Math.abs(i*u-l*o)<e},linesIntersect:function(t,a,n,i){var o=a[0]-t[0],l=a[1]-t[1],u=i[0]-n[0],s=i[1]-n[1],f=o*s-l*u;if(Math.abs(f)<e)return!1;var c=t[0]-n[0],h=t[1]-n[1],d=(u*h-s*c)/f,m=(o*h-l*c)/f,p={alongA:0,alongB:0,pt:[t[0]+d*o,t[1]+d*l]};return d<=-e?p.alongA=-2:d<e?p.alongA=-1:d-1<=-e?p.alongA=0:d-1<e?p.alongA=1:p.alongA=2,m<=-e?p.alongB=-2:m<e?p.alongB=-1:m-1<=-e?p.alongB=0:m-1<e?p.alongB=1:p.alongB=2,p},pointInsideRegion:function(t,a){for(var n=t[0],i=t[1],o=a[a.length-1][0],l=a[a.length-1][1],u=!1,s=0;s<a.length;s++){var f=a[s][0],c=a[s][1];c-i>e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(u=!u),o=f,l=c}return u}};return r}GL.exports=Soe});var XL=ae((zye,VL)=>{var Foe={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}};VL.exports=Foe});var jL=ae((Nye,WL)=>{var lh=XL();function Eoe(e,r,t){function a(m,p){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:null,below:null},otherFill:null}}function n(m,p,y){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=lh.create();function o(m,p,y,b,C,x){var _=r.pointsCompare(p,C);return _!==0?_:r.pointsSame(y,x)?0:m!==b?m?1:-1:r.pointAboveOrOnLine(y,b?C:x,b?x:C)?1:-1}function l(m,p){i.insertBefore(m,function(y){var b=o(m.isStart,m.pt,p,y.isStart,y.pt,y.other.pt);return b<0})}function u(m,p){var y=lh.node({isStart:!0,pt:m.start,seg:m,primary:p,other:null,status:null});return l(y,m.end),y}function s(m,p,y){var b=lh.node({isStart:!1,pt:p.end,seg:p,primary:y,other:m,status:null});m.other=b,l(b,m.pt)}function f(m,p){var y=u(m,p);return s(y,m,p),y}function c(m,p){t&&t.segmentChop(m.seg,p),m.other.remove(),m.seg.end=p,m.other.pt=p,l(m.other,m.pt)}function h(m,p){var y=n(p,m.seg.end,m.seg);return c(m,p),f(y,m.primary)}function d(m,p){var y=lh.create();function b(I,Q){var le=I.seg.start,re=I.seg.end,te=Q.seg.start,oe=Q.seg.end;return r.pointsCollinear(le,te,oe)?r.pointsCollinear(re,te,oe)||r.pointAboveOrOnLine(re,te,oe)?1:-1:r.pointAboveOrOnLine(le,te,oe)?1:-1}function C(I){return y.findTransition(function(Q){var le=b(I,Q.ev);return le>0})}function x(I,Q){var le=I.seg,re=Q.seg,te=le.start,oe=le.end,ce=re.start,Me=re.end;t&&t.checkIntersection(le,re);var Se=r.linesIntersect(te,oe,ce,Me);if(Se===!1){if(!r.pointsCollinear(te,oe,ce)||r.pointsSame(te,Me)||r.pointsSame(oe,ce))return!1;var Ie=r.pointsSame(te,ce),Ue=r.pointsSame(oe,Me);if(Ie&&Ue)return Q;var ke=!Ie&&r.pointBetween(te,ce,Me),We=!Ue&&r.pointBetween(oe,ce,Me);if(Ie)return We?h(Q,oe):h(I,Me),Q;ke&&(Ue||(We?h(Q,oe):h(I,Me)),h(Q,te))}else Se.alongA===0&&(Se.alongB===-1?h(I,ce):Se.alongB===0?h(I,Se.pt):Se.alongB===1&&h(I,Me)),Se.alongB===0&&(Se.alongA===-1?h(Q,te):Se.alongA===0?h(Q,Se.pt):Se.alongA===1&&h(Q,oe));return!1}for(var _=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let I=function(){if(M){var Q=x(A,M);if(Q)return Q}return E?x(A,E):!1};var V=I;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=I();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=m,z?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var B;E?A.primary===E.primary?B=E.seg.otherFill.above:B=E.seg.myFill.above:B=A.primary?p:m,A.seg.otherFill={above:B,below:B}}t&&t.status(A.seg,M?M.seg:!1,E?E.seg:!1),A.other.status=T.insert(lh.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(y.exists(X.prev)&&y.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(m){for(var p,y=m[m.length-1],b=0;b<m.length;b++){p=y,y=m[b];var C=r.pointsCompare(p,y);C!==0&&f(a(C<0?p:y,C<0?y:p),!0)}},calculate:function(m){return d(m,!1)}}:{calculate:function(m,p,y,b){return m.forEach(function(C){f(n(C.start,C.end,C),!0)}),y.forEach(function(C){f(n(C.start,C.end,C),!1)}),d(p,b)}}}WL.exports=Eoe});var JL=ae((Bye,ZL)=>{function Loe(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 u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(V,I,Q){return f.index=V,f.matches_head=I,f.matches_pt1=Q,f===u?(f=s,!1):(f=null,!0)}for(var h=0;h<a.length;h++){var d=a[h],m=d[0],p=d[1],y=d[d.length-1],b=d[d.length-2];if(r.pointsSame(m,o)){if(c(h,!0,!0))break}else if(r.pointsSame(m,l)){if(c(h,!0,!1))break}else if(r.pointsSame(y,o)){if(c(h,!1,!0))break}else if(r.pointsSame(y,l)&&c(h,!1,!1))break}if(f===u){a.push([o,l]),t&&t.chainNew(o,l);return}if(f===s){t&&t.chainMatch(u.index);var C=u.index,x=u.matches_pt1?l:o,_=u.matches_head,d=a[C],A=_?d[0]:d[d.length-1],T=_?d[1]:d[d.length-2],M=_?d[d.length-1]:d[0],E=_?d[d.length-2]:d[1];if(r.pointsCollinear(T,A,x)&&(_?(t&&t.chainRemoveHead(u.index,x),d.shift()):(t&&t.chainRemoveTail(u.index,x),d.pop()),A=T),r.pointsSame(M,x)){a.splice(C,1),r.pointsCollinear(E,M,A)&&(_?(t&&t.chainRemoveTail(u.index,A),d.pop()):(t&&t.chainRemoveHead(u.index,A),d.shift())),t&&t.chainClose(u.index),n.push(d);return}_?(t&&t.chainAddHead(u.index,x),d.unshift(x)):(t&&t.chainAddTail(u.index,x),d.push(x));return}function P(V){t&&t.chainReverse(V),a[V].reverse()}function z(V,I){var Q=a[V],le=a[I],re=Q[Q.length-1],te=Q[Q.length-2],oe=le[0],ce=le[1];r.pointsCollinear(te,re,oe)&&(t&&t.chainRemoveTail(V,re),Q.pop(),re=te),r.pointsCollinear(re,oe,ce)&&(t&&t.chainRemoveHead(I,oe),le.shift()),t&&t.chainJoin(V,I),a[V]=Q.concat(le),a.splice(I,1)}var B=u.index,X=s.index;t&&t.chainConnect(B,X);var H=a[B].length<a[X].length;u.matches_head?s.matches_head?H?(P(B),z(B,X)):(P(X),z(X,B)):z(X,B):s.matches_head?z(B,X):H?(P(B),z(X,B)):(P(X),z(B,X))}),n}ZL.exports=Loe});var KL=ae((Iye,$L)=>{function uh(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 qoe={union:function(e,r){return uh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return uh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return uh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return uh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return uh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};$L.exports=qoe});var eq=ae((Hye,QL)=>{var Poe={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),u=1;u<i.length;u++)l=e.selectDifference(e.combine(l,o(i[u])));return l}if(r.type==="Polygon")return e.polygon(t(r.coordinates));if(r.type==="MultiPolygon"){for(var a=e.segments({inverted:!1,regions:[]}),n=0;n<r.coordinates.length;n++)a=e.selectUnion(e.combine(a,t(r.coordinates[n])));return e.polygon(a)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,r,t){t=e.polygon(e.segments(t));function a(d,m){return r.pointInsideRegion([(d[0][0]+d[1][0])*.5,(d[0][1]+d[1][1])*.5],m)}function n(d){return{region:d,children:[]}}var i=n(null);function o(d,m){for(var p=0;p<d.children.length;p++){var y=d.children[p];if(a(m,y.region)){o(y,m);return}}for(var b=n(m),p=0;p<d.children.length;p++){var y=d.children[p];a(y.region,m)&&(b.children.push(y),d.children.splice(p,1),p--)}d.children.push(b)}for(var l=0;l<t.regions.length;l++){var u=t.regions[l];u.length<3||o(i,u)}function s(d,m){for(var p=0,y=d[d.length-1][0],b=d[d.length-1][1],C=[],x=0;x<d.length;x++){var _=d[x][0],A=d[x][1];C.push([_,A]),p+=A*y-_*b,y=_,b=A}var T=p<0;return T!==m&&C.reverse(),C.push([C[0][0],C[0][1]]),C}var f=[];function c(d){var m=[s(d.region,!1)];f.push(m);for(var p=0;p<d.children.length;p++)m.push(h(d.children[p]))}function h(d){for(var m=0;m<d.children.length;m++)c(d.children[m]);return s(d.region,!0)}for(var l=0;l<i.children.length;l++)c(i.children[l]);return f.length<=0?{type:"Polygon",coordinates:[]}:f.length==1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}};QL.exports=Poe});var nq=ae((Oye,aq)=>{var Roe=UL(),zoe=YL(),rq=jL(),Noe=JL(),sh=KL(),tq=eq(),Zo=!1,fh=zoe(),Ki;Ki={buildLog:function(e){return e===!0?Zo=Roe():e===!1&&(Zo=!1),Zo===!1?!1:Zo.list},epsilon:function(e){return fh.epsilon(e)},segments:function(e){var r=rq(!0,fh,Zo);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=rq(!1,fh,Zo);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:sh.union(e.combined,Zo),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:sh.intersect(e.combined,Zo),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:sh.difference(e.combined,Zo),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:sh.differenceRev(e.combined,Zo),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:sh.xor(e.combined,Zo),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Noe(e.segments,fh,Zo),inverted:e.inverted}},polygonFromGeoJSON:function(e){return tq.toPolygon(Ki,e)},polygonToGeoJSON:function(e){return tq.fromPolygon(Ki,fh,e)},union:function(e,r){return ch(e,r,Ki.selectUnion)},intersect:function(e,r){return ch(e,r,Ki.selectIntersect)},difference:function(e,r){return ch(e,r,Ki.selectDifference)},differenceRev:function(e,r){return ch(e,r,Ki.selectDifferenceRev)},xor:function(e,r){return ch(e,r,Ki.selectXor)}};function ch(e,r,t){var a=Ki.segments(e),n=Ki.segments(r),i=Ki.combine(a,n),o=t(i);return Ki.polygon(o)}typeof window=="object"&&(window.PolyBool=Ki);aq.exports=Ki});var oq=ae((Uye,iq)=>{iq.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 u=n-a,s=0,f=u-1;s<u;f=s++){var c=t[s+a][0],h=t[s+a][1],d=t[f+a][0],m=t[f+a][1],p=h>o!=m>o&&i<(d-c)*(o-h)/(m-h)+c;p&&(l=!l)}return l}});var ng=ae((Gye,lq)=>{"use strict";var Wb=np().dot,tg=Oa().BADNUM,ag=lq.exports={};ag.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 u=!1,s;t.length===5&&(t[0][0]===t[1][0]?t[2][0]===t[3][0]&&t[0][1]===t[3][1]&&t[1][1]===t[2][1]&&(u=!0,s=function(m){return m[0]===t[0][0]}):t[0][1]===t[1][1]&&t[2][1]===t[3][1]&&t[0][0]===t[3][0]&&t[1][0]===t[2][0]&&(u=!0,s=function(m){return m[1]===t[0][1]}));function f(m,p){var y=m[0],b=m[1];return!(y===tg||y<a||y>n||b===tg||b<i||b>o||p&&s(m))}function c(m,p){var y=m[0],b=m[1];if(y===tg||y<a||y>n||b===tg||b<i||b>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),!(y<P||y>Math.max(M,x)||b>Math.max(E,_)))if(b<Math.min(E,_))y!==P&&A++;else{if(x===M?z=b:z=E+(y-M)*(_-E)/(x-M),b===z)return!(T===1&&p);b<=z&&y!==P&&A++}return A%2===1}var h=!0,d=t[0];for(l=1;l<t.length;l++)if(d[0]!==t[l][0]||d[1]!==t[l][1]){h=!1;break}return{xmin:a,xmax:n,ymin:i,ymax:o,pts:t,contains:u?f:c,isRect:u,degenerate:h}};ag.isSegmentBent=function(r,t,a,n){var i=r[t],o=[r[a][0]-i[0],r[a][1]-i[1]],l=Wb(o,o),u=Math.sqrt(l),s=[-o[1]/u,o[0]/u],f,c,h;for(f=t+1;f<a;f++)if(c=[r[f][0]-i[0],r[f][1]-i[1]],h=Wb(c,o),h<0||h>l||Math.abs(Wb(c,s))>n)return!0;return!1};ag.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(u){r.push(u);var s=a.length,f=n;a.splice(i+1);for(var c=f+1;c<r.length;c++)(c===r.length-1||ag.isSegmentBent(r,f,c+1,t))&&(a.push(r[c]),a.length<s-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=ae((Yye,uq)=>{"use strict";uq.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Eq=ae((Vye,Fq)=>{"use strict";var fq=nq(),Boe=oq(),dh=bt(),Ioe=va().dashStyle,vh=Lt(),Hoe=Hl(),Ooe=Fs().makeEventData,bh=n2(),Uoe=bh.freeMode,Goe=bh.rectMode,ph=bh.drawMode,$b=bh.openMode,Kb=bh.selectMode,cq=R0(),vq=eh(),gq=Om(),yq=x0().clearOutline,bq=L0(),jb=bq.handleEllipse,Yoe=bq.readPaths,Voe=Bm().newShapes,Xoe=_b(),Woe=Xb().activateLastSelection,og=mr(),joe=og.sorterAsc,_q=ng(),hh=bp(),Jo=wn().getFromId,Zoe=Fm(),Joe=Qm().redrawReglTraces,lg=sq(),Bu=lg.MINSELECT,$oe=_q.filter,Qb=_q.tester,e7=Pm(),hq=e7.p2r,Koe=e7.axValue,Qoe=e7.getTransform;function r7(e){return e.subplot!==void 0}function ele(e,r,t,a,n){var i=!r7(a),o=Uoe(n),l=Goe(n),u=$b(n),s=ph(n),f=Kb(n),c=n==="drawline",h=n==="drawcircle",d=c||h,m=a.gd,p=m._fullLayout,y=f&&p.newselection.mode==="immediate"&&i,b=p._zoomlayer,C=a.element.getBoundingClientRect(),x=a.plotinfo,_=Qoe(x),A=r-C.left,T=t-C.top;p._calcInverseTransform(m);var M=og.apply3DTransform(p._invTransform)(A,T);A=M[0],T=M[1];var E=p._invScaleX,P=p._invScaleY,z=A,B=T,X="M"+A+","+T,H=a.xaxes[0],V=a.yaxes[0],I=H._length,Q=V._length,le=e.altKey&&!(ph(n)&&u),re,te,oe,ce,Me,Se,Ie;wq(e,m,a),o&&(re=$oe([[A,T]],lg.BENDPX));var Ue=b.selectAll("path.select-outline-"+x.id).data([1]),ke=s?p.newshape:p.newselection;s&&(a.hasText=ke.label.text||ke.label.texttemplate);var We=s&&!u?ke.fillcolor:"rgba(0,0,0,0)",j=ke.line.color||(i?vh.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Ue.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:s?ke.opacity/2:1,"stroke-dasharray":Ioe(ke.line.dash,ke.line.width),"stroke-width":ke.line.width+"px","shape-rendering":"crispEdges"}).call(vh.stroke,j).call(vh.fill,We).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",_).attr("d",X+"Z");var ee=b.append("path").attr("class","zoombox-corners").style({fill:vh.background,stroke:vh.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(s&&a.hasText){var me=b.select(".label-temp");me.empty()&&(me=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var K=p._uid+lg.SELECTID,$=[],se=ug(m,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ne=H._id,$e=V._id;Cq(m,Ne,$e,se);for(var ar=(m.layout||{}).selections||[],tr=[],fr=!1,Re=0;Re<ar.length;Re++){var ur=p.selections[Re];!ur||ur.xref!==Ne||ur.yref!==$e?tr.push(ar[Re]):fr=!0}fr&&(m._fullLayout._noEmitSelectedAtStart=!0,dh.call("_guiRelayout",m,{selections:tr}))}});var _e=dle(a);a.moveFn=function(Ne,$e){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),z=Math.max(0,Math.min(I,E*Ne+A)),B=Math.max(0,Math.min(Q,P*$e+T));var ar=Math.abs(z-A),tr=Math.abs(B-T);if(l){var fr,Re,ur;if(f){var hr=p.selectdirection;switch(hr==="any"?tr<Math.min(ar*.6,Bu)?fr="h":ar<Math.min(tr*.6,Bu)?fr="v":fr="d":fr=hr,fr){case"h":Re=h?Q/2:0,ur=Q;break;case"v":Re=h?I/2:0,ur=I;break}}if(s)switch(p.newshape.drawdirection){case"vertical":fr="h",Re=h?Q/2:0,ur=Q;break;case"horizontal":fr="v",Re=h?I/2:0,ur=I;break;case"ortho":ar<tr?(fr="h",Re=T,ur=B):(fr="v",Re=A,ur=z);break;default:fr="d"}fr==="h"?(ce=d?jb(h,[z,Re],[z,ur]):[[A,Re],[A,ur],[z,ur],[z,Re]],ce.xmin=d?z:Math.min(A,z),ce.xmax=d?z:Math.max(A,z),ce.ymin=Math.min(Re,ur),ce.ymax=Math.max(Re,ur),ee.attr("d","M"+ce.xmin+","+(T-Bu)+"h-4v"+2*Bu+"h4ZM"+(ce.xmax-1)+","+(T-Bu)+"h4v"+2*Bu+"h-4Z")):fr==="v"?(ce=d?jb(h,[Re,B],[ur,B]):[[Re,T],[Re,B],[ur,B],[ur,T]],ce.xmin=Math.min(Re,ur),ce.xmax=Math.max(Re,ur),ce.ymin=d?B:Math.min(T,B),ce.ymax=d?B:Math.max(T,B),ee.attr("d","M"+(A-Bu)+","+ce.ymin+"v-4h"+2*Bu+"v4ZM"+(A-Bu)+","+(ce.ymax-1)+"v4h"+2*Bu+"v-4Z")):fr==="d"&&(ce=d?jb(h,[A,T],[z,B]):[[A,T],[A,B],[z,B],[z,T]],ce.xmin=Math.min(A,z),ce.xmax=Math.max(A,z),ce.ymin=Math.min(T,B),ce.ymax=Math.max(T,B),ee.attr("d","M0,0Z"))}else o&&(re.addPt([z,B]),ce=re.filtered);if(a.selectionDefs&&a.selectionDefs.length?(oe=Aq(a.mergedPolygons,ce,le),ce.subtract=le,te=t7(a.selectionDefs.concat([ce]))):(oe=[ce],te=Qb(ce)),gq(Tq(oe,u),Ue,a),f){var dr=Jb(m,!1),Ze=dr.eventData?dr.eventData.points.slice():[];dr=Jb(m,!1,te,se,a),te=dr.selectionTesters,Ie=dr.eventData;var cr;re?cr=re.filtered:cr=Dq(oe),hh.throttle(K,lg.SELECTDELAY,function(){$=kq(te,se);for(var Er=$.slice(),Te=0;Te<Ze.length;Te++){for(var Oe=Ze[Te],Ar=!1,Nr=0;Nr<Er.length;Nr++)if(Er[Nr].curveNumber===Oe.curveNumber&&Er[Nr].pointNumber===Oe.pointNumber){Ar=!0;break}Ar||Er.push(Oe)}Er.length&&(Ie||(Ie={}),Ie.points=Er),_e(Ie,cr),ple(m,Ie)})}},a.clickFn=function(Ne,$e){if(ee.remove(),m._fullLayout._activeShapeIndex>=0){m._fullLayout._deactivateShape(m);return}if(!s){var ar=p.clickmode;hh.done(K).then(function(){if(hh.clear(K),Ne===2){for(Ue.remove(),Me=0;Me<se.length;Me++)Se=se[Me],Se._module.selectPoints(Se,!1);if(gh(m,se),mh(a),n7(m),se.length){var tr=se[0].xaxis,fr=se[0].yaxis;if(tr&&fr){for(var Re=[],ur=m._fullLayout.selections,hr=0;hr<ur.length;hr++){var dr=ur[hr];dr&&(dr.xref!==tr._id||dr.yref!==fr._id)&&Re.push(dr)}Re.length<ur.length&&(m._fullLayout._noEmitSelectedAtStart=!0,dh.call("_guiRelayout",m,{selections:Re}))}}}else ar.indexOf("select")>-1&&xq($e,m,a.xaxes,a.yaxes,a.subplot,a,Ue),ar==="event"&&yh(m,void 0);Hoe.click(m,$e,x.id)}).catch(og.error)}},a.doneFn=function(){ee.remove(),hh.done(K).then(function(){hh.clear(K),!y&&ce&&a.selectionDefs&&(ce.subtract=le,a.selectionDefs.push(ce),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,oe)),(y||s)&&mh(a,y),a.doneFnCompleted&&a.doneFnCompleted($),f&&yh(m,Ie)}).catch(og.error)}}function xq(e,r,t,a,n,i,o){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,c=[],h,d,m,p,y,b,C,x,_,A;if(ile(l)){wq(e,r,i),h=ug(r,t,a,n);var T=ole(l,h),M=T.pointNumbers.length>0;if(M?lle(h,T):ule(h)&&(C=pq(T))){for(o&&o.remove(),A=0;A<h.length;A++)d=h[A],d._module.selectPoints(d,!1);gh(r,h),mh(i),f&&n7(r)}else{x=e.shiftKey&&(C!==void 0?C:pq(T)),m=rle(T.pointNumber,T.searchInfo,x);var E=i.selectionDefs.concat([m]);for(p=t7(E,p),A=0;A<h.length;A++)if(y=h[A]._module.selectPoints(h[A],p),b=Mq(y,h[A]),c.length)for(var P=0;P<b.length;P++)c.push(b[P]);else c=b;if(_={points:c},gh(r,h,_),m&&i&&i.selectionDefs.push(m),o){var z=i.mergedPolygons,B=$b(i.dragmode);gq(Tq(z,B),o,i)}f&&yh(r,_)}}}function rle(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function Zb(e){return"pointNumber"in e&&"searchInfo"in e}function tle(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 t7(e){if(!e.length)return;for(var r=[],t=Zb(e[0])?0:e[0][0][0],a=t,n=Zb(e[0])?0:e[0][0][1],i=n,o=0;o<e.length;o++)if(Zb(e[o]))r.push(tle(e[o]));else{var l=Qb(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 u(s,f,c,h){for(var d=!1,m=0;m<r.length;m++)r[m].contains(s,f,c,h)&&(d=!r[m].subtract);return d}return{xmin:t,xmax:a,ymin:n,ymax:i,pts:[],contains:u,isRect:!1,degenerate:!1}}function wq(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)&&!(ph(i)&&$b(i));o&&l&&n.selection&&n.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=n.selection.selectionDefs,t.mergedPolygons=n.selection.mergedPolygons):(!l||!n.selection)&&mh(t),o||(yq(r),a._lastSelectedSubplot=n.id)}function ale(e){return e._fullLayout._activeShapeIndex>=0}function nle(e){return e._fullLayout._activeSelectionIndex>=0}function mh(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;ale(n)&&n._fullLayout._deactivateShape(n),nle(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=ph(t),u=Kb(t);if(l||u){var s=o.selectAll(".select-outline-"+a.id);if(s&&n._fullLayout._outlining){var f;l&&(f=Voe(s,e)),f&&dh.call("_guiRelayout",n,{shapes:f});var c;u&&!r7(e)&&(c=Xoe(s,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,dh.call("_guiRelayout",n,{selections:c}).then(function(){r&&Woe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function dq(e){return e._id}function ug(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(dq),o=t.map(dq),l,u,s;for(s=0;s<e.calcdata.length;s++)if(l=e.calcdata[s],u=l[0].trace,!(u.visible!==!0||!u._module||!u._module.selectPoints))if(r7({subplot:a})&&(u.subplot===a||u.geo===a))n.push(ig(u._module,l,r[0],t[0]));else if(u.type==="splom"){if(u._xaxes[i[0]]&&u._yaxes[o[0]]){var f=ig(u._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[u.uid],n.push(f)}}else if(u.type==="sankey"){var c=ig(u._module,l,r[0],t[0]);n.push(c)}else{if(i.indexOf(u.xaxis)===-1&&(!u._xA||!u._xA.overlaying)||o.indexOf(u.yaxis)===-1&&(!u._yA||!u._yA.overlaying))continue;n.push(ig(u._module,l,Jo(e,u.xaxis),Jo(e,u.yaxis)))}return n}function ig(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function ile(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function ole(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 pq(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 lle(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 ule(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 gh(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 u=o[l],s=u.data,f=u.pointIndex,c=u.pointIndices;c?[].push.apply(s.selectedpoints,c):s.selectedpoints.push(f)}}else for(a=0;a<r.length;a++)n=r[a].cd[0].trace,delete n.selectedpoints,delete n._input.selectedpoints;sle(e,r)}function sle(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;dh.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&&(Zoe(e),Joe(e))}function Aq(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=a7(l,i.slice(0,o))}return i}function Mq(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=Ooe(e[n],a,t);return e}function Tq(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 kq(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=Mq(i,l),t=t.concat(a)}return t}function Jb(e,r,t,a,n){var i=!!a,o,l,u;n&&(o=n.plotinfo,l=n.xaxes[0]._id,u=n.yaxes[0]._id);var s=[],f=[],c=mq(e),h=e._fullLayout;if(o){var d=h._zoomlayer,m=h.dragmode,p=ph(m),y=Kb(m);if(p||y){var b=Jo(e,l,"x"),C=Jo(e,u,"y");if(b&&C){var x=d.selectAll(".select-outline-"+o.id);if(x&&e._fullLayout._outlining&&x.length){for(var _=x[0][0],A=_.getAttribute("d"),T=Yoe(A,e,o),M=[],E=0;E<T.length;E++){for(var P=T[E],z=[],B=0;B<P.length;B++)z.push([z0(b,P[B][1]),z0(C,P[B][2])]);z.xref=l,z.yref=u,z.subtract=a7(z,M),M.push(z)}c=c.concat(M)}}}}var X=l&&u?[l+u]:h._subplots.cartesian;fle(e);for(var H={},V=0;V<X.length;V++){var I=X[V],Q=I.indexOf("y"),le=I.slice(0,Q),re=I.slice(Q),te=l&&u?t:void 0;if(te=vle(c,le,re,te),te){var oe=a;if(!i){var ce=Jo(e,le,"x"),Me=Jo(e,re,"y");oe=ug(e,[ce],[Me],I);for(var Se=0;Se<oe.length;Se++){var Ie=oe[Se],Ue=Ie.cd[0],ke=Ue.trace;if(Ie._module.name==="scattergl"&&!Ue.t.xpx){var We=ke.x,j=ke.y,ee=ke._length;Ue.t.xpx=[],Ue.t.ypx=[];for(var me=0;me<ee;me++)Ue.t.xpx[me]=ce.c2p(We[me]),Ue.t.ypx[me]=Me.c2p(j[me])}Ie._module.name==="splom"&&(H[ke.uid]||(H[ke.uid]=!0))}}var K=kq(te,oe);s=s.concat(K),f=f.concat(oe)}}var $={points:s};gh(e,f,$);var se=h.clickmode,_e=se.indexOf("event")>-1&&r;if(!o&&r){var Ne=mq(e,!0);if(Ne.length){var $e=Ne[0].xref,ar=Ne[0].yref;if($e&&ar){var tr=Dq(Ne),fr=Sq([Jo(e,$e,"x"),Jo(e,ar,"y")]);fr($,tr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:_e&&yh(e,$),h._reselect=!1}if(!o&&h._deselect){var Re=h._deselect;l=Re.xref,u=Re.yref,cle(l,u,f)||Cq(e,l,u,a),_e&&($.points.length?yh(e,$):n7(e)),h._deselect=!1}return{eventData:$,selectionTesters:t}}function fle(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 cle(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 Cq(e,r,t,a){a=ug(e,[Jo(e,r,"x")],[Jo(e,t,"y")],r+t);for(var n=0;n<a.length;n++){var i=a[n];i._module.selectPoints(i,!1)}gh(e,a)}function vle(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=Aq(n,o,l),a=t7(n)}else n=[o],a=Qb(o)}return a}function mq(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 u=l.xref,s=l.yref,f=Jo(e,u,"x"),c=Jo(e,s,"y"),h,d,m,p,y;if(l.type==="rect"){y=[];var b=z0(f,l.x0),C=z0(f,l.x1),x=z0(c,l.y0),_=z0(c,l.y1);y=[[b,x],[b,_],[C,_],[C,x]],h=Math.min(b,C),d=Math.max(b,C),m=Math.min(x,_),p=Math.max(x,_),y.xmin=h,y.xmax=d,y.ymin=m,y.ymax=p,y.xref=u,y.yref=s,y.subtract=!1,y.isRect=!0,t.push(y)}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=cq.extractPathCoords(E,vq.paramIsX,"raw"),z=cq.extractPathCoords(E,vq.paramIsY,"raw");h=1/0,d=-1/0,m=1/0,p=-1/0,y=[];for(var B=0;B<P.length;B++){var X=z0(f,P[B]),H=z0(c,z[B]);y.push([X,H]),h=Math.min(X,h),d=Math.max(X,d),m=Math.min(H,m),p=Math.max(H,p)}y.xmin=h,y.xmax=d,y.ymin=m,y.ymax=p,y.xref=u,y.yref=s,y.subtract=a7(y,T),T.push(y),t.push(y)}}}}return t}function a7(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(Boe(e[i],n)){t=!t;break}return t}function z0(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function Dq(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 hle(t)}function hle(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 Sq(e){return function(r,t){for(var a,n,i=0;i<e.length;i++){var o=e[i],l=o._id,u=l.charAt(0);if(t.isRect){a||(a={});var s=t[u+"min"],f=t[u+"max"];s!==void 0&&f!==void 0&&(a[l]=[hq(o,s),hq(o,f)].sort(joe))}else n||(n={}),n[l]=t.map(Koe(o))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function dle(e){var r=e.plotinfo;return r.fillRangeItems||Sq(e.xaxes.concat(e.yaxes))}function ple(e,r){e.emit("plotly_selecting",r)}function yh(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function n7(e){e.emit("plotly_deselect",null)}Fq.exports={reselect:Jb,prepSelect:ele,clearOutline:yq,clearSelectionsCache:mh,selectOnClick:xq}});var i7=ae((Xye,Lq)=>{"use strict";Lq.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 _h=ae((Wye,qq)=>{"use strict";qq.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e,"axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var c2=ae((Zye,zq)=>{"use strict";var Pq=i7(),Rq=vi(),sg=En(),mle=Ta().templatedArray,jye=_h();zq.exports=mle("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Rq({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:Pq.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Pq.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",sg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",sg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",sg.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",sg.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:Rq({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var fg=ae((Jye,Nq)=>{"use strict";Nq.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var o7=ae(($ye,Bq)=>{"use strict";Bq.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var dc=ae((Kye,Xq)=>{"use strict";var Iq=N5().axisHoverFormat,{hovertemplateAttrs:gle,texttemplateAttrs:yle,templatefallbackAttrs:Hq}=Bf(),Oq=O1(),ble=vi(),Uq=Au().dash,_le=Au().pattern,xle=va(),wle=fg(),xh=_n().extendFlat,Ale=o7();function Gq(e){return{valType:"any",dflt:0,editType:"calc"}}function Yq(e){return{valType:"any",editType:"calc"}}function Vq(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Xq.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:Gq("x"),yperiod:Gq("y"),xperiod0:Yq("x0"),yperiod0:Yq("y0"),xperiodalignment:Vq("x"),yperiodalignment:Vq("y"),xhoverformat:Iq("x"),yhoverformat:Iq("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:yle(),texttemplatefallback:Hq({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:gle({},{keys:wle.eventDataKeys}),hovertemplatefallback:Hq(),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:xh({},Uq,{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:Ale(!0),fillgradient:xh({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:_le,marker:xh({symbol:{valType:"enumerated",values:xle.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:xh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:xh({},Uq,{arrayOk:!0}),editType:"calc"},Oq("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"},Oq("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:ble({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var l7=ae((e4e,Zq)=>{"use strict";var Wq=c2(),jq=dc().line,Mle=Au().dash,cg=_n().extendFlat,Tle=Ho().overrideAll,kle=Ta().templatedArray,Qye=_h();Zq.exports=Tle(kle("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:cg({},Wq.xref,{}),yref:cg({},Wq.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:jq.color,width:cg({},jq.width,{min:1,dflt:1}),dash:cg({},Mle,{dflt:"dot"})}}),"arraydraw","from-root")});var Qq=ae((r4e,Kq)=>{"use strict";var Jq=mr(),vg=Ba(),Cle=Bl(),Dle=l7(),$q=R0();Kq.exports=function(r,t){Cle(r,t,{name:"selections",handleItemDefaults:Sle});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 Sle(e,r,t){function a(T,M){return Jq.coerce(e,r,Dle,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 u=["x","y"],s=0;s<2;s++){var f=u[s],c={_fullLayout:t},h,d,m,p=vg.coerceRef(e,r,c,f);if(h=vg.getFromId(c,p),h._selectionIndices.push(r._index),m=$q.rangeToShapePosition(h),d=$q.shapePositionToRange(h),l){var y=f+"0",b=f+"1",C=e[y],x=e[b];e[y]=d(e[y],!0),e[b]=d(e[b],!0),vg.coercePosition(r,c,a,p,y),vg.coercePosition(r,c,a,p,b);var _=r[y],A=r[b];_!==void 0&&A!==void 0&&(r[y]=m(_),r[b]=m(A),e[y]=C,e[b]=x)}}l&&Jq.noneOrAll(e,r,["x0","x1","y0","y1"])}});var rP=ae((t4e,eP)=>{"use strict";eP.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 wh=ae((a4e,nP)=>{"use strict";var Fle=bt(),tP=mr(),aP=wn();nP.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Fle.subplotsRegistry.cartesian,l=o.idRegex,u=n._subplots,s=u.xaxis,f=u.yaxis,c=u.cartesian,h=n._has("cartesian"),d=0;d<i.length;d++){var m=i[d];if(tP.isPlainObject(m)){var p=aP.cleanId(m.xref,"x",!1),y=aP.cleanId(m.yref,"y",!1),b=l.x.test(p),C=l.y.test(y);if(b||C){h||tP.pushUnique(n._basePlotModules,o);var x=!1;b&&s.indexOf(p)===-1&&(s.push(p),x=!0),C&&f.indexOf(y)===-1&&(f.push(y),x=!0),x&&b&&C&&c.push(p+y)}}}}}});var Rs=ae((n4e,oP)=>{"use strict";var iP=Xb(),Ah=Eq();oP.exports={moduleType:"component",name:"selections",layoutAttributes:l7(),supplyLayoutDefaults:Qq(),supplyDrawNewSelectionDefaults:rP(),includeBasePlot:wh()("selections"),draw:iP.draw,drawOne:iP.drawOne,reselect:Ah.reselect,prepSelect:Ah.prepSelect,clearOutline:Ah.clearOutline,clearSelectionsCache:Ah.clearSelectionsCache,selectOnClick:Ah.selectOnClick}});var kP=ae((i4e,TP)=>{"use strict";var h7=St(),$o=mr(),lP=$o.numberFormat,Ele=G6(),hg=bt(),pP=$o.strTranslate,Lle=ai(),s7=Lt(),N0=va(),qle=Hl(),uP=Ba(),Ple=F0(),Rle=Vo(),mP=n2(),dg=mP.selectingOrDrawing,zle=mP.freeMode,Nle=ti().FROM_TL,Ble=Fm(),Ile=Qm().redrawReglTraces,Hle=An(),f7=wn().getFromId,Ole=Rs().prepSelect,Ule=Rs().clearOutline,Gle=Rs().selectOnClick,u7=Bb(),d7=En(),sP=d7.MINDRAG,Fi=d7.MINZOOM,fP=!0;function Yle(e,r,t,a,n,i,o,l){var u=e._fullLayout._zoomlayer,s=o+l==="nsew",f=(o+l).length===1,c,h,d,m,p,y,b,C,x,_,A,T,M,E,P,z,B,X,H,V,I,Q,le;t+=r.yaxis._shift;function re(){if(c=r.xaxis,h=r.yaxis,x=c._length,_=h._length,b=c._offset,C=h._offset,d={},d[c._id]=c,m={},m[h._id]=h,o&&l)for(var Be=r.overlays,Xe=0;Xe<Be.length;Xe++){var yr=Be[Xe].xaxis;d[yr._id]=yr;var kr=Be[Xe].yaxis;m[kr._id]=kr}p=dP(d),y=dP(m),M=cP(p,l),E=cP(y,o),P=!E&&!M,T=hP(e,e._fullLayout._axisMatchGroups,d,m),A=hP(e,e._fullLayout._axisConstraintGroups,d,m,T);var pr=A.isSubplotConstrained||T.isSubplotConstrained;z=l||pr,B=o||pr;var xr=e._fullLayout;X=xr._has("scattergl"),H=xr._has("splom"),V=xr._has("svg")}re();var te=Wle(E+M,e._fullLayout.dragmode,s),oe=yP(r,o+l+"drag",te,t,a,n,i);if(P&&!s)return oe.onmousedown=null,oe.style.pointerEvents="none",oe;var ce={element:oe,gd:e,plotinfo:r};ce.prepFn=function(Be,Xe,yr){var kr=ce.dragmode,pr=e._fullLayout.dragmode;pr!==kr&&(ce.dragmode=pr),re(),Q=e._fullLayout._invScaleX,le=e._fullLayout._invScaleY,P||(s?Be.shiftKey?pr==="pan"?pr="zoom":dg(pr)||(pr="pan"):Be.ctrlKey&&(pr="pan"):pr="pan"),zle(pr)?ce.minDrag=1:ce.minDrag=void 0,dg(pr)?(ce.xaxes=p,ce.yaxes=y,Ole(Be,Xe,yr,ce,pr)):(ce.clickFn=Se,dg(kr)&&Me(),P||(pr==="zoom"?(ce.moveFn=Ne,ce.doneFn=ar,ce.minDrag=1,_e(Be,Xe,yr)):pr==="pan"&&(ce.moveFn=dr,ce.doneFn=Te))),e._fullLayout._redrag=function(){var xr=e._dragdata;if(xr&&xr.element===oe){var Pr=e._fullLayout.dragmode;dg(Pr)||(re(),Oe([0,0,x,_]),ce.moveFn(xr.dx,xr.dy))}}};function Me(){ce.plotinfo.selection=!1,Ule(e)}function Se(Be,Xe){var yr=ce.gd;if(yr._fullLayout._activeShapeIndex>=0){yr._fullLayout._deactivateShape(yr);return}var kr=yr._fullLayout.clickmode;if(v7(yr),Be===2&&!f&&Er(),s)kr.indexOf("select")>-1&&Gle(Xe,yr,p,y,r.id,ce),kr.indexOf("event")>-1&&qle.click(yr,Xe,r.id);else if(Be===1&&f){var pr=o?h:c,xr=o==="s"||l==="w"?0:1,Pr=pr._name+".range["+xr+"]",Fr=Vle(pr,xr),Hr="left",rr="middle";if(pr.fixedrange)return;o?(rr=o==="n"?"top":"bottom",pr.side==="right"&&(Hr="right")):l==="e"&&(Hr="right"),yr._context.showAxisRangeEntryBoxes&&h7.select(oe).call(Lle.makeEditable,{gd:yr,immediate:!0,background:yr._fullLayout.paper_bgcolor,text:String(Fr),fill:pr.tickfont?pr.tickfont.color:"#444",horizontalAlign:Hr,verticalAlign:rr}).on("edit",function(Cr){var vr=pr.d2r(Cr);vr!==void 0&&hg.call("_guiRelayout",yr,Pr,vr)})}}Rle.init(ce);var Ie,Ue,ke,We,j,ee,me,K,$,se;function _e(Be,Xe,yr){var kr=oe.getBoundingClientRect();Ie=Xe-kr.left,Ue=yr-kr.top,e._fullLayout._calcInverseTransform(e);var pr=$o.apply3DTransform(e._fullLayout._invTransform)(Ie,Ue);Ie=pr[0],Ue=pr[1],ke={l:Ie,r:Ie,w:0,t:Ue,b:Ue,h:0},We=e._hmpixcount?e._hmlumcount/e._hmpixcount:s7.luminosity(e._fullLayout.plot_bgcolor),j="M0,0H"+x+"V"+_+"H0V0",ee=!1,me="xy",se=!1,K=bP(u,We,b,C,j),$=_P(u,b,C)}function Ne(Be,Xe){if(e._transitioningWithDuration)return!1;var yr=Math.max(0,Math.min(x,Q*Be+Ie)),kr=Math.max(0,Math.min(_,le*Xe+Ue)),pr=Math.abs(yr-Ie),xr=Math.abs(kr-Ue);ke.l=Math.min(Ie,yr),ke.r=Math.max(Ie,yr),ke.t=Math.min(Ue,kr),ke.b=Math.max(Ue,kr);function Pr(){me="",ke.r=ke.l,ke.t=ke.b,$.attr("d","M0,0Z")}if(A.isSubplotConstrained)pr>Fi||xr>Fi?(me="xy",pr/x>xr/_?(xr=pr*_/x,Ue>kr?ke.t=Ue-xr:ke.b=Ue+xr):(pr=xr*x/_,Ie>yr?ke.l=Ie-pr:ke.r=Ie+pr),$.attr("d",pg(ke))):Pr();else if(T.isSubplotConstrained)if(pr>Fi||xr>Fi){me="xy";var Fr=Math.min(ke.l/x,(_-ke.b)/_),Hr=Math.max(ke.r/x,(_-ke.t)/_);ke.l=Fr*x,ke.r=Hr*x,ke.b=(1-Fr)*_,ke.t=(1-Hr)*_,$.attr("d",pg(ke))}else Pr();else!E||xr<Math.min(Math.max(pr*.6,sP),Fi)?pr<sP||!M?Pr():(ke.t=0,ke.b=_,me="x",$.attr("d",jle(ke,Ue))):!M||pr<Math.min(xr*.6,Fi)?(ke.l=0,ke.r=x,me="y",$.attr("d",Zle(ke,Ie))):(me="xy",$.attr("d",pg(ke)));ke.w=ke.r-ke.l,ke.h=ke.b-ke.t,me&&(se=!0),e._dragged=se,xP(K,$,ke,j,ee,We),$e(),e.emit("plotly_relayouting",I),ee=!0}function $e(){I={},(me==="xy"||me==="x")&&(c7(p,ke.l/x,ke.r/x,I,A.xaxes),Ze("x",I)),(me==="xy"||me==="y")&&(c7(y,(_-ke.b)/_,(_-ke.t)/_,I,A.yaxes),Ze("y",I))}function ar(){$e(),v7(e),Te(),AP(e)}var tr=[0,0,x,_],fr=null,Re=d7.REDRAWDELAY,ur=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function hr(Be){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(Me(),e._transitioningWithDuration){Be.preventDefault(),Be.stopPropagation();return}re(),clearTimeout(fr);var Xe=-Be.deltaY;if(isFinite(Xe)||(Xe=Be.wheelDelta/10),!isFinite(Xe)){$o.log("Did not find wheel motion attributes: ",Be);return}e._fullLayout._replotting=!0;var yr=Math.exp(-Math.min(Math.max(Xe,-20),20)/200),kr=ur.draglayer.select(".nsewdrag").node().getBoundingClientRect(),pr=(Be.clientX-kr.left)/kr.width,xr=(kr.bottom-Be.clientY)/kr.height,Pr;function Fr(Hr,rr,Cr){if(Hr.fixedrange)return;var vr=$o.simpleMap(Hr.range,Hr.r2l),Xr=vr[0]+(vr[1]-vr[0])*rr;function Kr(Lr){return Hr.l2r(Xr+(Lr-Xr)*Cr)}Hr.range=vr.map(Kr)}if(z){for(l||(pr=.5),Pr=0;Pr<p.length;Pr++)Fr(p[Pr],pr,yr);Ze("x"),tr[2]*=yr,tr[0]+=tr[2]*pr*(1/yr-1)}if(B){for(o||(xr=.5),Pr=0;Pr<y.length;Pr++)Fr(y[Pr],xr,yr);Ze("y"),tr[3]*=yr,tr[1]+=tr[3]*(1-xr)*(1/yr-1)}Oe(tr),cr(),e.emit("plotly_relayouting",I),fr=setTimeout(function(){e._fullLayout&&(tr=[0,0,x,_],Te())},Re),Be.preventDefault()}o.length*l.length!==1&&MP(oe,hr);function dr(Be,Xe){if(Be=Be*Q,Xe=Xe*le,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,M==="ew"||E==="ns"){var yr=M?-Be:0,kr=E?-Xe:0;if(T.isSubplotConstrained){if(M&&E){var pr=(Be/x-Xe/_)/2;Be=pr*x,Xe=-pr*_,yr=-Be,kr=-Xe}E?yr=-kr*x/_:kr=-yr*_/x}M&&(vP(p,Be),Ze("x")),E&&(vP(y,Xe),Ze("y")),Oe([yr,kr,x,_]),cr(),e.emit("plotly_relayouting",I);return}function xr(Kr,Lr,Wr){for(var Ae=1-Lr,Pe,sr,gr=0;gr<Kr.length;gr++){var Bt=Kr[gr];if(!Bt.fixedrange){Pe=Bt,sr=Bt._rl[Ae]+(Bt._rl[Lr]-Bt._rl[Ae])/Xle(Wr/Bt._length);var Gt=Bt.l2r(sr);Gt!==!1&&Gt!==void 0&&(Bt.range[Lr]=Gt)}}return Pe._length*(Pe._rl[Lr]-sr)/(Pe._rl[Lr]-Pe._rl[Ae])}var Pr=M==="w"==(E==="n")?1:-1;if(M&&E&&(A.isSubplotConstrained||T.isSubplotConstrained)){var Fr=(Be/x+Pr*Xe/_)/2;Be=Fr*x,Xe=Pr*Fr*_}var Hr,rr;if(M==="w"?Be=xr(p,0,Be):M==="e"?Be=xr(p,1,-Be):M||(Be=0),E==="n"?Xe=xr(y,1,Xe):E==="s"?Xe=xr(y,0,-Xe):E||(Xe=0),Hr=M==="w"?Be:0,rr=E==="n"?Xe:0,A.isSubplotConstrained&&!T.isSubplotConstrained||T.isSubplotConstrained&&M&&E&&Pr>0){var Cr;if(T.isSubplotConstrained||!M&&E.length===1){for(Cr=0;Cr<p.length;Cr++)p[Cr].range=p[Cr]._r.slice(),u7(p[Cr],1-Xe/_);Be=Xe*x/_,Hr=Be/2}if(T.isSubplotConstrained||!E&&M.length===1){for(Cr=0;Cr<y.length;Cr++)y[Cr].range=y[Cr]._r.slice(),u7(y[Cr],1-Be/x);Xe=Be*_/x,rr=Xe/2}}(!T.isSubplotConstrained||!E)&&Ze("x"),(!T.isSubplotConstrained||!M)&&Ze("y");var vr=x-Be,Xr=_-Xe;T.isSubplotConstrained&&!(M&&E)&&(M?(rr=Hr?0:Be*_/x,Xr=vr*_/x):(Hr=rr?0:Xe*x/_,vr=Xr*x/_)),Oe([Hr,rr,vr,Xr]),cr(),e.emit("plotly_relayouting",I)}function Ze(Be,Xe){for(var yr=T.isSubplotConstrained?{x:y,y:p}[Be]:T[Be+"axes"],kr=T.isSubplotConstrained?{x:p,y}[Be]:[],pr=0;pr<yr.length;pr++){var xr=yr[pr],Pr=xr._id,Fr=T.xLinks[Pr]||T.yLinks[Pr],Hr=kr[0]||d[Fr]||m[Fr];Hr&&(Xe?(Xe[xr._name+".range[0]"]=Xe[Hr._name+".range[0]"],Xe[xr._name+".range[1]"]=Xe[Hr._name+".range[1]"]):xr.range=Hr.range.slice())}}function cr(){var Be=[],Xe;function yr(Pr){for(Xe=0;Xe<Pr.length;Xe++)Pr[Xe].fixedrange||Be.push(Pr[Xe]._id)}function kr(Pr,Fr){for(Xe=0;Xe<Pr.length;Xe++){var Hr=Pr[Xe],rr=Hr[Fr],Cr=rr._id;!Hr.fixedrange&&rr.tickmode==="sync"&&!Be.includes(Cr)&&Be.push(Cr)}}for(z&&(yr(p),yr(A.xaxes),yr(T.xaxes),kr(r.overlays,"xaxis")),B&&(yr(y),yr(A.yaxes),yr(T.yaxes),kr(r.overlays,"yaxis")),I={},Xe=0;Xe<Be.length;Xe++){var pr=Be[Xe],xr=f7(e,pr);uP.drawOne(e,xr,{skipTitle:!0}),I[xr._name+".range[0]"]=xr.range[0],I[xr._name+".range[1]"]=xr.range[1]}uP.redrawComponents(e,Be)}function Er(){if(!e._transitioningWithDuration){var Be=e._context.doubleClick,Xe=[];M&&(Xe=Xe.concat(p)),E&&(Xe=Xe.concat(y)),T.xaxes&&(Xe=Xe.concat(T.xaxes)),T.yaxes&&(Xe=Xe.concat(T.yaxes));var yr={},kr,pr;if(Be==="reset+autosize")for(Be="autosize",pr=0;pr<Xe.length;pr++){kr=Xe[pr];var xr=kr._rangeInitial0,Pr=kr._rangeInitial1,Fr=xr!==void 0||Pr!==void 0;if(Fr&&(xr!==void 0&&xr!==kr.range[0]||Pr!==void 0&&Pr!==kr.range[1])||!Fr&&kr.autorange!==!0){Be="reset";break}}if(Be==="autosize")for(pr=0;pr<Xe.length;pr++)kr=Xe[pr],kr.fixedrange||(yr[kr._name+".autorange"]=!0);else if(Be==="reset"){for((M||A.isSubplotConstrained)&&(Xe=Xe.concat(A.xaxes)),E&&!A.isSubplotConstrained&&(Xe=Xe.concat(A.yaxes)),A.isSubplotConstrained&&(M?E||(Xe=Xe.concat(y)):Xe=Xe.concat(p)),pr=0;pr<Xe.length;pr++)if(kr=Xe[pr],!kr.fixedrange){var Hr=kr._name,rr=kr._autorangeInitial;kr._rangeInitial0===void 0&&kr._rangeInitial1===void 0?yr[Hr+".autorange"]=!0:kr._rangeInitial0===void 0?(yr[Hr+".autorange"]=rr,yr[Hr+".range"]=[null,kr._rangeInitial1]):kr._rangeInitial1===void 0?(yr[Hr+".range"]=[kr._rangeInitial0,null],yr[Hr+".autorange"]=rr):yr[Hr+".range"]=[kr._rangeInitial0,kr._rangeInitial1]}}e.emit("plotly_doubleclick",null),hg.call("_guiRelayout",e,yr)}}function Te(){Oe([0,0,x,_]),$o.syncOrAsync([Hle.previousPromises,function(){e._fullLayout._replotting=!1,hg.call("_guiRelayout",e,I)}],e)}function Oe(Be){var Xe=e._fullLayout,yr=Xe._plots,kr=Xe._subplots.cartesian,pr,xr,Pr,Fr;if(H&&hg.subplotsRegistry.splom.drag(e),X){for(pr=0;pr<kr.length;pr++)if(xr=yr[kr[pr]],Pr=xr.xaxis,Fr=xr.yaxis,xr._scene){Pr.limitRange&&Pr.limitRange(),Fr.limitRange&&Fr.limitRange();var Hr=$o.simpleMap(Pr.range,Pr.r2l),rr=$o.simpleMap(Fr.range,Fr.r2l);xr._scene.update({range:[Hr[0],rr[0],Hr[1],rr[1]]})}}if((H||X)&&(Ble(e),Ile(e)),V){var Cr=Be[2]/c._length,vr=Be[3]/h._length;for(pr=0;pr<kr.length;pr++){xr=yr[kr[pr]],Pr=xr.xaxis,Fr=xr.yaxis;var Xr=(z||T.isSubplotConstrained)&&!Pr.fixedrange&&d[Pr._id],Kr=(B||T.isSubplotConstrained)&&!Fr.fixedrange&&m[Fr._id],Lr,Wr,Ae,Pe;if(Xr?(Lr=Cr,Ae=l||T.isSubplotConstrained?Be[0]:Qe(Pr,Lr)):T.xaHash[Pr._id]?(Lr=Cr,Ae=Be[0]*Pr._length/c._length):T.yaHash[Pr._id]?(Lr=vr,Ae=E==="ns"?-Be[1]*Pr._length/h._length:Qe(Pr,Lr,{n:"top",s:"bottom"}[E])):(Lr=Ar(Pr,Cr,vr),Ae=Nr(Pr,Lr)),Lr>1&&(Pr.maxallowed!==void 0&&z===(Pr.range[0]<Pr.range[1]?"e":"w")||Pr.minallowed!==void 0&&z===(Pr.range[0]<Pr.range[1]?"w":"e"))&&(Lr=1,Ae=0),Kr?(Wr=vr,Pe=o||T.isSubplotConstrained?Be[1]:Qe(Fr,Wr)):T.yaHash[Fr._id]?(Wr=vr,Pe=Be[1]*Fr._length/h._length):T.xaHash[Fr._id]?(Wr=Cr,Pe=M==="ew"?-Be[0]*Fr._length/c._length:Qe(Fr,Wr,{e:"right",w:"left"}[M])):(Wr=Ar(Fr,Cr,vr),Pe=Nr(Fr,Wr)),Wr>1&&(Fr.maxallowed!==void 0&&B===(Fr.range[0]<Fr.range[1]?"n":"s")||Fr.minallowed!==void 0&&B===(Fr.range[0]<Fr.range[1]?"s":"n"))&&(Wr=1,Pe=0),!(!Lr&&!Wr)){Lr||(Lr=1),Wr||(Wr=1);var sr=Pr._offset-Ae/Lr,gr=Fr._offset-Pe/Wr;xr.clipRect.call(N0.setTranslate,Ae,Pe).call(N0.setScale,Lr,Wr),xr.plot.call(N0.setTranslate,sr,gr).call(N0.setScale,1/Lr,1/Wr),(Lr!==xr.xScaleFactor||Wr!==xr.yScaleFactor)&&(N0.setPointGroupScale(xr.zoomScalePts,Lr,Wr),N0.setTextPointsScale(xr.zoomScaleTxt,Lr,Wr)),N0.hideOutsideRangePoints(xr.clipOnAxisFalseTraces,xr),xr.xScaleFactor=Lr,xr.yScaleFactor=Wr}}}}function Ar(Be,Xe,yr){return Be.fixedrange?0:z&&A.xaHash[Be._id]?Xe:B&&(A.isSubplotConstrained?A.xaHash:A.yaHash)[Be._id]?yr:0}function Nr(Be,Xe){return Xe?(Be.range=Be._r.slice(),u7(Be,Xe),Qe(Be,Xe)):0}function Qe(Be,Xe,yr){return Be._length*(1-Xe)*Nle[yr||Be.constraintoward||"middle"]}return oe}function gP(e,r,t,a){var n=$o.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(Ple,a),n.node()}function yP(e,r,t,a,n,i,o){var l=gP(e,"rect",r,t);return h7.select(l).call(N0.setRect,a,n,i,o),l}function cP(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function Vle(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,lP("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,lP("."+String(n)+"g")(t))}function c7(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",u=l?1-r:r,s=l?1-t:t;a[o._name+".range[0]"]=o.l2r(o.p2l(u*o._length)),a[o._name+".range[1]"]=o.l2r(o.p2l(s*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 h=(r+(1-t))/2;c7(n,h,1-h,a,[])}}function vP(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),u=(o+l)/2;a.range=[a.l2r(a._rl[0]-u),a.l2r(a._rl[1]-u)]}else a.range=[a.l2r(a._rl[0]-r/a._m),a.l2r(a._rl[1]-r/a._m)];a.limitRange&&a.limitRange()}}}function Xle(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Wle(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function bP(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",pP(t,a)).attr("d",n+"Z")}function _P(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:s7.background,stroke:s7.defaultLine,"stroke-width":1,opacity:0}).attr("transform",pP(r,t)).attr("d","M0,0Z")}function xP(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"),wP(e,r,n,i)}function wP(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 v7(e){h7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function AP(e){fP&&e.data&&e._context.showTips&&($o.notifier($o._(e,"Double-click to zoom back out"),"long",e),fP=!1)}function jle(e,r){return"M"+(e.l-.5)+","+(r-Fi-.5)+"h-3v"+(2*Fi+1)+"h3ZM"+(e.r+.5)+","+(r-Fi-.5)+"h3v"+(2*Fi+1)+"h-3Z"}function Zle(e,r){return"M"+(r-Fi-.5)+","+(e.t-.5)+"v-3h"+(2*Fi+1)+"v3ZM"+(r-Fi-.5)+","+(e.b+.5)+"v3h"+(2*Fi+1)+"v-3Z"}function pg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Fi)/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 hP(e,r,t,a,n){for(var i=!1,o={},l={},u,s,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,m=0;m<r.length;m++){var p=r[m];for(u in t)if(p[u]){for(f in p)!(n&&(h[f]||d[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(o[f]=u);for(s in a)!(n&&(h[s]||d[s]))&&p[s]&&(i=!0)}for(s in a)if(p[s])for(c in p)!(n&&(h[c]||d[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(l[c]=s)}i&&($o.extendFlat(o,l),l={});var y={},b=[];for(f in o){var C=f7(e,f);b.push(C),y[C._id]=C}var x={},_=[];for(c in l){var A=f7(e,c);_.push(A),x[A._id]=A}return{xaHash:y,yaHash:x,xaxes:b,yaxes:_,xLinks:o,yLinks:l,isSubplotConstrained:i}}function MP(e,r){if(!Ele)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 dP(e){var r=[];for(var t in e)r.push(e[t]);return r}TP.exports={makeDragBox:Yle,makeDragger:gP,makeRectDragger:yP,makeZoombox:bP,makeCorners:_P,updateZoombox:xP,xyCorners:pg,transitionZoombox:wP,removeZoombox:v7,showDoubleClickNotifier:AP,attachWheelEventHandler:MP}});var p7=ae(gg=>{"use strict";var Jle=St(),mg=Hl(),$le=Vo(),Kle=F0(),Ul=kP().makeDragBox,Pn=En().DRAGGERSIZE;gg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Jle.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"),u=o.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,u=o.yaxis;if(!o.mainplot){var s=Ul(r,o,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&mg.hover(r,h,i)},mg.hover(r,h,i),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=i},s.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,$le.unhover(r,h))},r._context.showAxisDragHandles&&(Ul(r,o,l._offset-Pn,u._offset-Pn,Pn,Pn,"n","w"),Ul(r,o,l._offset+l._length,u._offset-Pn,Pn,Pn,"n","e"),Ul(r,o,l._offset-Pn,u._offset+u._length,Pn,Pn,"s","w"),Ul(r,o,l._offset+l._length,u._offset+u._length,Pn,Pn,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Pn),Ul(r,o,l._offset+l._length*.1,f,l._length*.8,Pn,"","ew"),Ul(r,o,l._offset,f,l._length*.1,Pn,"","w"),Ul(r,o,l._offset+l._length*.9,f,l._length*.1,Pn,"","e")}if(i===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=Pn),Ul(r,o,c,u._offset+u._length*.1,Pn,u._length*.8,"ns",""),Ul(r,o,c,u._offset+u._length*.9,Pn,u._length*.1,"s",""),Ul(r,o,c,u._offset,Pn,u._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,mg.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,mg.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},gg.updateFx(r)}};gg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Kle(r._draggers,t)}});var SP=ae((l4e,DP)=>{"use strict";var CP=bt();DP.exports=function(r){for(var t=CP.layoutArrayContainers,a=CP.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 u=r.slice(i.length);return u?(o=u.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),o?{array:i,index:Number(o[1]),property:o[3]||""}:!1):{array:i,index:"",property:""}}});var EP=ae(Th=>{"use strict";var Qle=l0(),m7=ap(),Mh=As(),eue=l5().sorterAsc,g7=bt();Th.containerArrayMatch=SP();var rue=Th.isAddVal=function(r){return r==="add"||Qle(r)},FP=Th.isRemoveVal=function(r){return r===null||r==="remove"};Th.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=g7.getComponentMethod(o,"supplyLayoutDefaults"),u=g7.getComponentMethod(o,"draw"),s=g7.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===m7||u===m7,c=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Mh.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(FP(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Mh.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,h),u(r),!0)}var m=Object.keys(a).map(Number).sort(eue),p=t.get(),y=p||[],b=i(h,o).get(),C=[],x=-1,_=y.length,A,T,M,E,P,z,B,X;for(A=0;A<m.length;A++){if(M=m[A],E=a[M],P=Object.keys(E),z=E[""],B=rue(z),M<0||M>y.length-(B?0:1)){Mh.warn("index out of range",o,M);continue}if(z!==void 0)P.length>1&&Mh.warn("Insertion & removal are incompatible with edits to the same index.",o,M),FP(z)?C.push(M):B?(z==="add"&&(z={}),y.splice(M,0,z),b&&b.splice(M,0,{})):Mh.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(y[M],P[T],X).set(E[P[T]])}for(A=C.length-1;A>=0;A--)y.splice(C[A],1),b&&b.splice(C[A],1);if(y.length?p||t.set(y):t.set(null),f)return!1;if(l(c,h),s!==m7){var H;if(x===-1)H=m;else{for(_=Math.max(y.length,_),H=[],A=0;A<m.length&&(M=m[A],!(M>=x));A++)H.push(M);for(A=x;A<_;A++)H.push(A)}for(A=0;A<H.length;A++)s(r,H[A])}else u(r);return!0}});var BP=ae(Ko=>{"use strict";var RP=Wt(),zP=bt(),_i=mr(),kh=An(),NP=wn(),Ch=NP.cleanId,tue=NP.getFromTrace,y7=zP.traceIs,aue=["x","y","z"];Ko.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&_i.log("Clearing previous rejected promises from queue."),e._promises=[]};Ko.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=(kh.subplotsRegistry.cartesian||{}).attrRegex,n=(kh.subplotsRegistry.polar||{}).attrRegex,i=(kh.subplotsRegistry.ternary||{}).attrRegex,o=(kh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r<l.length;r++){var u=l[r];if(a&&a.test(u)){var s=e[u];s.anchor&&s.anchor!=="free"&&(s.anchor=Ch(s.anchor)),s.overlaying&&(s.overlaying=Ch(s.overlaying)),s.type||(s.isdate?s.type="date":s.islog?s.type="log":s.isdate===!1&&s.islog===!1&&(s.type="linear")),(s.autorange==="withzero"||s.autorange==="tozero")&&(s.autorange=!0,s.rangemode="tozero"),s.insiderange&&delete s.range,delete s.islog,delete s.isdate,delete s.categories,yg(s,"domain")&&delete s.domain}}var f=Array.isArray(e.annotations)?e.annotations.length:0;for(r=0;r<f;r++){var c=e.annotations[r];_i.isPlainObject(c)&&(v2(c,"xref"),v2(c,"yref"))}var h=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<h;r++){var d=e.shapes[r];_i.isPlainObject(d)&&(v2(d,"xref",!0),v2(d,"yref",!0))}var m=Array.isArray(e.images)?e.images.length:0;for(r=0;r<m;r++){var p=e.images[r];_i.isPlainObject(p)&&(v2(p,"xref"),v2(p,"yref"))}var y=e.legend;return y&&(y.x>3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Ko.cleanLayout(e.template.layout),e};function v2(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Ch(a,n,!0))}Ko.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"&&Ko.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=Ch(t.xaxis,"x")),t.yaxis&&(t.yaxis=Ch(t.yaxis,"y")),y7(t,"gl3d")&&t.scene&&(t.scene=kh.subplotsRegistry.gl3d.cleanId(t.scene)),!y7(t,"pie-like")&&!y7(t,"bar-like"))if(Array.isArray(t.textposition))for(a=0;a<t.textposition.length;a++)t.textposition[a]=qP(t.textposition[a]);else t.textposition&&(t.textposition=qP(t.textposition));var n=zP.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"&&_i.isPlainObject(t.contours)){var l=["x","y","z"];for(a=0;a<l.length;a++){var u=t.contours[l[a]];_i.isPlainObject(u)&&(u.highlightColor&&(u.highlightcolor=u.highlightColor,delete u.highlightColor),u.highlightWidth&&(u.highlightwidth=u.highlightWidth,delete u.highlightWidth))}}if(t.type==="candlestick"||t.type==="ohlc"){var s=(t.increasing||{}).showlegend!==!1,f=(t.decreasing||{}).showlegend!==!1,c=LP(t.increasing),h=LP(t.decreasing);if(c!==!1&&h!==!1){var d=nue(c,h,s,f);d&&(t.name=d)}else(c||h)&&!t.name&&(t.name=c||h)}yg(t,"line")&&delete t.line,"marker"in t&&(yg(t.marker,"line")&&delete t.marker.line,yg(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function LP(e){if(!_i.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function nue(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 qP(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 yg(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}Ko.swapXYData=function(e){var r;if(_i.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);_i.swapAttrs(e,["error_?.copy_ystyle"]),a&&_i.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("+")}};Ko.coerceTraceIndices=function(e,r){if(RP(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++)_i.isIndex(r[a],e.data.length)?t.push(r[a]):_i.warn("trace index (",r[a],") is not a number or is out of bounds");return t}return r};Ko.manageArrayContainers=function(e,r,t){var a=e.obj,n=e.parts,i=n.length,o=n[i-1],l=RP(o);if(l&&r===null){var u=n.slice(0,i-1).join("."),s=_i.nestedProperty(a,u).get();s.splice(o,1)}else l&&e.get()===void 0&&e.get()===void 0&&(t[e.astr]=null),e.set(r)};var iue=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function PP(e){var r=e.search(iue);if(r>0)return e.slice(0,r)}Ko.hasParent=function(e,r){for(var t=PP(r);t;){if(t in e)return!0;t=PP(t)}return!1};Ko.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=tue(e,n,aue[i]);if(o&&o.type!=="log"){var l=o._name,u=o._id.slice(1);if(u.slice(0,5)==="scene"){if(t[u]!==void 0)continue;l=u+"."+l}var s=l+".type";t[l]===void 0&&t[s]===void 0&&_i.nestedProperty(e.layout,s).set(null)}}};var b7=(e,r)=>{let t=(...a)=>a.every(n=>_i.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)?b7(n,i):!1))return!1}return!0}else if([e,r].every(a=>_i.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)?b7(n,i):!1))return!1}return!0}return!1};Ko.collectionsAreEqual=b7});var T7=ae(Ot=>{"use strict";var xg=St(),oue=Wt(),lue=_5(),Ir=mr(),ka=Ir.nestedProperty,w7=Sv(),Ei=_k(),Qo=bt(),Dg=N1(),mt=An(),xi=Ba(),uue=U6(),sue=Nl(),_7=va(),fue=Lt(),cue=p7().initInteractions,vue=Wf(),hue=Rs().clearOutline,GP=f0().dfltConfig,bg=EP(),cn=BP(),la=Qm(),B0=Ho(),due=En().AX_NAME_PATTERN,x7=0,IP=5;function pue(e,r,t,a){var n;if(e=Ir.getGraphDiv(e),w7.init(e),Ir.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&&!Ir.isPlotDiv(e)&&Ir.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Ot.addFrames(e,n)}VP(e,a),t||(t={}),xg.select(e).classed("js-plotly-plot",!0),_7.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(cn.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=cn.cleanLayout(t)),mt.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(Bue(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),_7.initGradients(e),_7.initPatterns(e),u&&xi.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&mt.doCalcdata(e);for(var h=0;h<e.calcdata.length;h++)e.calcdata[h][0].trace=e._fullData[h];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){Ir.isHidden(e)||mt.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):Ir.clearResponsive(e);var d=Ir.extendFlat({},s._size),m=0;function p(){for(var M=s._basePlotModules,E=0;E<M.length;E++)M[E].drawFramework&&M[E].drawFramework(e);!s._glcanvas&&s._has("gl")&&(s._glcanvas=s._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(X){return X.key}),s._glcanvas.enter().append("canvas").attr("class",function(X){return"gl-canvas gl-canvas-"+X.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var P=e._context.plotGlPixelRatio;if(s._glcanvas){s._glcanvas.attr("width",s.width*P).attr("height",s.height*P).style("width",s.width+"px").style("height",s.height+"px");var z=s._glcanvas.data()[0].regl;if(z&&(Math.floor(s.width*P)!==z._gl.drawingBufferWidth||Math.floor(s.height*P)!==z._gl.drawingBufferHeight)){var B="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(m)Ir.error(B);else return Ir.log(B+" Clearing graph and plotting again."),mt.cleanPlot([],{},e._fullData,s),mt.supplyDefaults(e),s=e._fullLayout,mt.doCalcdata(e),m++,p()}}return s.modebar.orientation==="h"?s._modebardiv.style("height",null).style("width","100%"):s._modebardiv.style("width",null).style("height",s.height+"px"),mt.previousPromises(e)}function y(){if(mt.clearAutoMarginIds(e),la.drawMarginPushers(e),xi.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&mt.allowAutoMargin(e,"title.automargin"),s._has("pie"))for(var M=e._fullData,E=0;E<M.length;E++){var P=M[E];P.type==="pie"&&P.automargin&&mt.allowAutoMargin(e,"pie."+P.uid+".automargin")}return mt.doAutoMargin(e),mt.previousPromises(e)}function b(){if(mt.didMarginChange(d,s._size))return Ir.syncOrAsync([y,la.layoutStyles],e)}function C(){if(!c){x();return}return Ir.syncOrAsync([Qo.getComponentMethod("shapes","calcAutorange"),Qo.getComponentMethod("annotations","calcAutorange"),x],e)}function x(){e._transitioning||(la.doAutoRangeAndConstraints(e),u&&xi.saveRangeInitial(e),Qo.getComponentMethod("rangeslider","calcAutorange")(e))}function _(){return xi.draw(e,u?"":"redraw")}var A=[mt.previousPromises,l,p,y,b];f&&A.push(C),A.push(la.layoutStyles),f&&A.push(_,function(E){var P=E._fullLayout._insideTickLabelsUpdaterange;if(P)return E._fullLayout._insideTickLabelsUpdaterange=void 0,Dh(E,P).then(function(){xi.saveRangeInitial(E,!0)})}),A.push(la.drawData,la.finalDraw,cue,mt.rehover,mt.redrag,mt.reselect,mt.doAutoMargin,mt.previousPromises);var T=Ir.syncOrAsync(A,e);return(!T||!T.then)&&(T=Promise.resolve()),T.then(function(){return Sh(e),e})}function Sh(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function mue(e){return Ir.extendFlat(GP,e)}function YP(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Ir.error(t)}}function gue(e,r){var t=fue.combine(r,"white");YP(e,t)}function VP(e,r){if(!e._context){e._context=Ir.extendDeep({},GP);var t=xg.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]=gue: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"&&!lue&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=YP),a._hasZeroHeight=a._hasZeroHeight||e.clientHeight===0,a._hasZeroWidth=a._hasZeroWidth||e.clientWidth===0;var u=a.scrollZoom,s=a._scrollZoom={};if(u===!0)s.cartesian=1,s.gl3d=1,s.geo=1,s.map=1;else if(typeof u=="string"){var f=u.split("+");for(n=0;n<f.length;n++)s[f[n]]=1}else u!==!1&&(s.gl3d=1,s.geo=1,s.map=1)}function yue(e){if(e=Ir.getGraphDiv(e),!Ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return cn.cleanData(e.data),cn.cleanLayout(e.layout),e.calcdata=void 0,Ot._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function bue(e,r,t,a){return e=Ir.getGraphDiv(e),mt.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),mt.purge(e),Ot._doPlot(e,r,t,a)}function wg(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 Ag(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 XP(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]),Ag(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Ag(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function _ue(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 xue(e,r,t,a){var n=Ir.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!Ir.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");Ag(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 wue(e,r,t,a){var n=Ir.isPlainObject(a),i=[],o,l,u,s,f;Array.isArray(t)||(t=[t]),t=wg(t,e.data.length-1);for(var c in r)for(var h=0;h<t.length;h++){if(o=e.data[t[h]],u=ka(o,c),l=u.get(),s=r[c][h],!Ir.isArrayOrTypedArray(s))throw new Error("attribute: "+c+" index: "+h+" must be an array");if(!Ir.isArrayOrTypedArray(l))throw new Error("cannot extend missing or non-array attribute: "+c);if(l.constructor!==s.constructor)throw new Error("cannot extend array with an array of a different type: "+c);f=n?a[c][h]:a,oue(f)||(f=-1),i.push({prop:u,target:l,insert:s,maxp:Math.floor(f)})}return i}function WP(e,r,t,a,n){xue(e,r,t,a);for(var i=wue(e,r,t,a),o={},l={},u=0;u<i.length;u++){var s=i[u].prop,f=i[u].maxp,c=n(i[u].target,i[u].insert,f);s.set(c[0]),Array.isArray(o[s.astr])||(o[s.astr]=[]),o[s.astr].push(c[1]),Array.isArray(l[s.astr])||(l[s.astr]=[]),l[s.astr].push(i[u].target.length)}return{update:o,maxPoints:l}}function jP(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function ZP(e,r,t,a){e=Ir.getGraphDiv(e);function n(u,s,f){var c,h;if(Ir.isTypedArray(u))if(f<0){var d=new u.constructor(0),m=jP(u,s);f<0?(c=m,h=d):(c=d,h=m)}else if(c=new u.constructor(f),h=new u.constructor(u.length+s.length-f),f===s.length)c.set(s),h.set(u);else if(f<s.length){var p=s.length-f;c.set(s.subarray(p)),h.set(u),h.set(s.subarray(0,p),u.length)}else{var y=f-s.length,b=u.length-y;c.set(u.subarray(b)),c.set(s,y),h.set(u.subarray(0,b))}else c=u.concat(s),h=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,h]}var i=WP(e,r,t,a,n),o=Ot.redraw(e),l=[e,i.update,t,i.maxPoints];return Ei.add(e,Ot.prependTraces,l,ZP,arguments),o}function JP(e,r,t,a){e=Ir.getGraphDiv(e);function n(u,s,f){var c,h;if(Ir.isTypedArray(u))if(f<=0){var d=new u.constructor(0),m=jP(s,u);f<0?(c=m,h=d):(c=d,h=m)}else if(c=new u.constructor(f),h=new u.constructor(u.length+s.length-f),f===s.length)c.set(s),h.set(u);else if(f<s.length){var p=s.length-f;c.set(s.subarray(0,p)),h.set(s.subarray(p)),h.set(u,p)}else{var y=f-s.length;c.set(s),c.set(u.subarray(0,y),s.length),h.set(u.subarray(y))}else c=s.concat(u),h=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,h]}var i=WP(e,r,t,a,n),o=Ot.redraw(e),l=[e,i.update,t,i.maxPoints];return Ei.add(e,Ot.extendTraces,l,JP,arguments),o}function $P(e,r,t){e=Ir.getGraphDiv(e);var a=[],n=Ot.deleteTraces,i=$P,o=[e,a],l=[e,r],u,s;for(_ue(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return Ir.extendFlat({},f)}),cn.cleanData(r),u=0;u<r.length;u++)e.data.push(r[u]);for(u=0;u<r.length;u++)a.push(-r.length+u);if(typeof t=="undefined")return s=Ot.redraw(e),Ei.add(e,n,o,i,l),s;Array.isArray(t)||(t=[t]);try{XP(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return Ei.startSequence(e),Ei.add(e,n,o,i,l),s=Ot.moveTraces(e,a,t),Ei.stopSequence(e),s}function KP(e,r){e=Ir.getGraphDiv(e);var t=[],a=Ot.addTraces,n=KP,i=[e,t,r],o=[e,r],l,u;if(typeof r=="undefined")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),Ag(e,r,"indices"),r=wg(r,e.data.length-1),r.sort(Ir.sorterDes),l=0;l<r.length;l+=1)u=e.data.splice(r[l],1)[0],t.push(u);var s=Ot.redraw(e);return Ei.add(e,a,i,n,o),s}function A7(e,r,t){e=Ir.getGraphDiv(e);var a=[],n=[],i=A7,o=A7,l=[e,t,r],u=[e,r,t],s;if(XP(e,r,t),r=Array.isArray(r)?r:[r],typeof t=="undefined")for(t=[],s=0;s<r.length;s++)t.push(-r.length+s);for(t=Array.isArray(t)?t:[t],r=wg(r,e.data.length-1),t=wg(t,e.data.length-1),s=0;s<e.data.length;s++)r.indexOf(s)===-1&&a.push(e.data[s]);for(s=0;s<r.length;s++)n.push({newIndex:t[s],trace:e.data[r[s]]});for(n.sort(function(c,h){return c.newIndex-h.newIndex}),s=0;s<n.length;s+=1)a.splice(n[s].newIndex,0,n[s].trace);e.data=a;var f=Ot.redraw(e);return Ei.add(e,i,l,o,u),f}function Mg(e,r,t,a){e=Ir.getGraphDiv(e),cn.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(Ir.isPlainObject(r))n=Ir.extendFlat({},r),a===void 0&&(a=t);else return Ir.warn("Restyle fail.",r,t,a),Promise.reject();Object.keys(n).length&&(e.changed=!0);var i=cn.coerceTraceIndices(e,a),o=QP(e,n,i),l=o.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&cn.clearAxisTypes(e,i,{});var u=[];l.fullReplot?u.push(Ot._doPlot):(u.push(mt.previousPromises),mt.supplyDefaults(e),l.markerSize&&(mt.doCalcdata(e),Sg(u)),l.style&&u.push(la.doTraceStyle),l.colorbars&&u.push(la.doColorBars),u.push(Sh)),u.push(mt.rehover,mt.redrag,mt.reselect),Ei.add(e,Mg,[e,o.undoit,o.traces],Mg,[e,o.redoit,o.traces]);var s=Ir.syncOrAsync(u,e);return(!s||!s.then)&&(s=Promise.resolve()),s.then(function(){return e.emit("plotly_restyle",o.eventData),e})}function zs(e){return e===void 0?null:e}function _g(e,r){return r?function(t,a,n){var i=ka(t,a),o=i.set;return i.set=function(l){var u=(n||"")+a;Tg(u,i.get(),l,e),o(l)},i}:ka}function Tg(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++)Tg(e+"["+l+"]",n[l],i[l],a);else if(Ir.isPlainObject(r)||Ir.isPlainObject(t)){var u=Ir.isPlainObject(r)?r:{},s=Ir.isPlainObject(t)?t:{},f=Ir.extendFlat({},u,s);for(var c in f)Tg(e+"."+c,u[c],s[c],a)}else a[e]===void 0&&(a[e]=zs(r))}function Aue(e,r,t){for(var a in t){var n=ka(e,a);Tg(a,n.get(),t[a],r)}}function QP(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,o=a._guiEditing,l=_g(a._preGUI,o),u=Ir.extendDeepAll({},r),s,f=B0.traceFlags(),c={},h={},d;function m(){return t.map(function(){})}function p(K){var $=xi.id2name(K);d.indexOf($)===-1&&d.push($)}function y(K){return"LAYOUT"+K+".autorange"}function b(K){return"LAYOUT"+K+".range"}function C(K,$,se){if(Array.isArray(K)){K.forEach(function(ar){C(ar,$,se)});return}if(!(K in r||cn.hasParent(r,K))){var _e;if(K.slice(0,6)==="LAYOUT")_e=l(e.layout,K.replace("LAYOUT",""));else{var Ne=t[se],$e=a._tracePreGUI[n[Ne].uid];_e=_g($e,o)(i[Ne],K)}K in h||(h[K]=m()),h[K][se]===void 0&&(h[K][se]=zs(_e.get())),$!==void 0&&_e.set($)}}function x(K){return function($){return n[$][K]}}function _(K){return function($,se){return $===!1?n[t[se]][K]:null}}for(var A in r){if(cn.hasParent(r,A))throw new Error("cannot set "+A+" and a parent attribute simultaneously");var T=r[A],M,E,P,z,B,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","")),h[A]=[zs(P.get())],P.set(Array.isArray(T)?T[0]:T),f.calc=!0;continue}for(h[A]=m(),s=0;s<t.length;s++){M=i[t[s]],E=n[t[s]];var H=a._tracePreGUI[E.uid];if(P=_g(H,o)(M,A),z=P.get(),B=Array.isArray(T)?T[s%T.length]:T,B!==void 0){var V=P.parts[P.parts.length-1],I=A.slice(0,A.length-V.length-1),Q=I?I+".":"",le=I?ka(E,I).get():E;if(X=Dg.getTraceValObject(E,P.parts),X&&X.impliedEdits&&B!==null)for(var re in X.impliedEdits)C(Ir.relativeAttr(A,re),X.impliedEdits[re],s);else if((V==="thicknessmode"||V==="lenmode")&&z!==B&&(B==="fraction"||B==="pixels")&&le){var te=a._size,oe=le.orient,ce=oe==="top"||oe==="bottom";if(V==="thicknessmode"){var Me=ce?te.h:te.w;C(Q+"thickness",le.thickness*(B==="fraction"?1/Me:Me),s)}else{var Se=ce?te.w:te.h;C(Q+"len",le.len*(B==="fraction"?1/Se:Se),s)}}else if(A==="type"&&(B==="pie"!=(z==="pie")||B==="funnelarea"!=(z==="funnelarea"))){var Ie="x",Ue="y";(B==="bar"||z==="bar")&&M.orientation==="h"&&(Ie="y",Ue="x"),Ir.swapAttrs(M,["?"],"labels",Ie),Ir.swapAttrs(M,["d?","?0"],"label",Ie),Ir.swapAttrs(M,["?"],"values",Ue),z==="pie"||z==="funnelarea"?(ka(M,"marker.color").set(ka(M,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):Qo.traceIs(M,"cartesian")&&ka(M,"marker.colors").set(ka(M,"marker.color").get())}h[A][s]=zs(z);var ke=["swapxy","swapxyaxes","orientation","orientationaxes"];if(ke.indexOf(A)!==-1){if(A==="orientation"){P.set(B);var We=M.x&&!M.y?"h":"v";if((P.get()||We)===E.orientation)continue}else A==="orientationaxes"&&(M.orientation={v:"h",h:"v"}[E.orientation]);cn.swapXYData(M),f.calc=f.clearAxisTypes=!0}else mt.dataArrayContainers.indexOf(P.parts[0])!==-1?(cn.manageArrayContainers(P,B,h),f.calc=!0):(X?X.arrayOk&&!Qo.traceIs(E,"regl")&&(Ir.isArrayOrTypedArray(B)||Ir.isArrayOrTypedArray(z))?f.calc=!0:B0.update(f,X):f.calc=!0,P.set(B))}}if(["swapxyaxes","orientationaxes"].indexOf(A)!==-1&&xi.swap(e,t),A==="orientationaxes"){var j=ka(e.layout,"hovermode"),ee=j.get();ee==="x"?j.set("y"):ee==="y"?j.set("x"):ee==="x unified"?j.set("y unified"):ee==="y unified"&&j.set("x unified")}if(["orientation","type"].indexOf(A)!==-1){for(d=[],s=0;s<t.length;s++){var me=i[t[s]];Qo.traceIs(me,"cartesian")&&(p(me.xaxis||"x"),p(me.yaxis||"y"))}C(d.map(y),!0,0),C(d.map(b),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:h,redoit:c,traces:t,eventData:Ir.extendDeepNoArrays([],[u,t])}}function Dh(e,r,t){e=Ir.getGraphDiv(e),cn.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(Ir.isPlainObject(r))a=Ir.extendFlat({},r);else return Ir.warn("Relayout fail.",r,t),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=aR(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var o=[mt.previousPromises];i.layoutReplot?o.push(la.layoutReplot):Object.keys(a).length&&(eR(e,i,n)||mt.supplyDefaults(e),i.legend&&o.push(la.doLegend),i.layoutstyle&&o.push(la.layoutStyles),i.axrange&&Sg(o,n.rangesAltered),i.ticks&&o.push(la.doTicksRelayout),i.modebar&&o.push(la.doModeBar),i.camera&&o.push(la.doCamera),i.colorbars&&o.push(la.doColorBars),o.push(Sh)),o.push(mt.rehover,mt.redrag,mt.reselect),Ei.add(e,Dh,[e,n.undoit],Dh,[e,n.redoit]);var l=Ir.syncOrAsync(o,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function eR(e,r,t){var a=e._fullLayout;if(!r.axrange)return!1;for(var n in r)if(n!=="axrange"&&r[n])return!1;var i,o,l=function(d,m){return Ir.coerce(i,o,sue,d,m)},u={};for(var s in t.rangesAltered){var f=xi.id2name(s);if(i=e.layout[f],o=a[f],uue(i,o,l,u),o._matchGroup){for(var c in o._matchGroup)if(c!==s){var h=a[xi.id2name(c)];h.autorange=o.autorange,h.range=o.range.slice(),h._input.range=o.range.slice()}}}return!0}function Sg(e,r){var t=r?function(a){var n=[],i=!0;for(var o in r){var l=xi.getFromId(a,o);if(n.push(o),(l.ticklabelposition||"").indexOf("inside")!==-1&&l._anchorAxis&&n.push(l._anchorAxis._id),l._matchGroup)for(var u in l._matchGroup)r[u]||n.push(u)}return xi.draw(a,n,{skipTitle:i})}:function(a){return xi.draw(a,"redraw")};e.push(hue,la.doAutoRangeAndConstraints,t,la.drawData,la.finalDraw)}var rR=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,tR=/^[xyz]axis[0-9]*\.autorange$/,Mue=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function aR(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=_g(a._preGUI,n),o=Object.keys(r),l=xi.list(e),u=Ir.extendDeepAll({},r),s={},f,c,h;for(o=Object.keys(r),c=0;c<o.length;c++)if(o[c].indexOf("allaxes")===0){for(h=0;h<l.length;h++){var d=l[h]._id.slice(1),m=d.indexOf("scene")!==-1?d+".":"",p=o[c].replace("allaxes",m+l[h]._name);r[p]||(r[p]=r[o[c]])}delete r[o[c]]}var y=B0.layoutFlags(),b={},C={};function x(ar,tr){if(Array.isArray(ar)){ar.forEach(function(Re){x(Re,tr)});return}if(!(ar in r||cn.hasParent(r,ar))){var fr=i(t,ar);ar in C||(C[ar]=zs(fr.get())),tr!==void 0&&fr.set(tr)}}var _={},A;function T(ar){var tr=xi.name2id(ar.split(".")[0]);return _[tr]=1,tr}for(var M in r){if(cn.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,B=z-1;B>0&&typeof E.parts[B]!="string";)B--;var X=E.parts[B],H=E.parts[B-1]+"."+X,V=E.parts.slice(0,B).join("."),I=ka(e.layout,V).get(),Q=ka(a,V).get(),le=E.get();if(P!==void 0){b[M]=P,C[M]=X==="reverse"?P:zs(le);var re=Dg.getLayoutValObject(a,E.parts);if(re&&re.impliedEdits&&P!==null)for(var te in re.impliedEdits)x(Ir.relativeAttr(M,te),re.impliedEdits[te]);if(["width","height"].indexOf(M)!==-1)if(P){x("autosize",null);var oe=M==="height"?"width":"height";x(oe,a[oe])}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(rR))T(H),ka(a,V+"._inputRange").set(null);else if(H.match(tR)){T(H),ka(a,V+"._inputRange").set(null);var ce=ka(a,V).get();ce._inputDomain&&(ce._input.domain=ce._inputDomain.slice())}else H.match(Mue)&&ka(a,V+"._inputDomain").set(null);if(X==="type"){A=I;var Me=Q.type==="linear"&&P==="log",Se=Q.type==="log"&&P==="linear";if(Me||Se){if(!A||!A.range)x(V+".autorange",!0);else if(Q.autorange)Me&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Ie=A.range[0],Ue=A.range[1];Me?(Ie<=0&&Ue<=0&&x(V+".autorange",!0),Ie<=0?Ie=Ue/1e6:Ue<=0&&(Ue=Ie/1e6),x(V+".range[0]",Math.log(Ie)/Math.LN10),x(V+".range[1]",Math.log(Ue)/Math.LN10)):(x(V+".range[0]",Math.pow(10,Ie)),x(V+".range[1]",Math.pow(10,Ue)))}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"],Qo.getComponentMethod("annotations","convertCoords")(e,Q,P,x),Qo.getComponentMethod("images","convertCoords")(e,Q,P,x)}else x(V+".autorange",!0),x(V+".range",null);ka(a,V+"._inputRange").set(null)}else if(X.match(due)){var ke=ka(a,M).get(),We=(P||{}).type;(!We||We==="-")&&(We="linear"),Qo.getComponentMethod("annotations","convertCoords")(e,ke,We,x),Qo.getComponentMethod("images","convertCoords")(e,ke,We,x)}var j=bg.containerArrayMatch(M);if(j){f=j.array,c=j.index;var ee=j.property,me=re||{editType:"calc"};c!==""&&ee===""&&(bg.isAddVal(P)?C[M]=null:bg.isRemoveVal(P)?C[M]=(ka(t,f).get()||[])[c]:Ir.warn("unrecognized full object value",r)),B0.update(y,me),s[f]||(s[f]={});var K=s[f][c];K||(K=s[f][c]={}),K[ee]=P,delete r[M]}else X==="reverse"?(I.range?I.range.reverse():(x(V+".autorange",!0),I.range=[1,0]),Q.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(P===!1&&le!==!1||P!==!1&&le===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(P==="lasso"||P==="select")&&!(le==="lasso"||le==="select")?y.plot=!0:re?B0.update(y,re):y.calc=!0,E.set(P))}}for(f in s){var $=bg.applyContainerArrayChanges(e,i(t,f),s[f],y,i);$||(y.plot=!0)}for(var se in _){A=xi.getFromId(e,se);var _e=A&&A._constraintGroup;if(_e){y.calc=!0;for(var Ne in _e)_[Ne]||(xi.getFromId(e,Ne)._constraintShrinkable=!0)}}(nR(e)||r.height||r.width)&&(y.plot=!0);var $e=a.shapes;for(c=0;c<$e.length;c++)if($e[c].showlegend){y.calc=!0;break}return(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,rangesAltered:_,undoit:C,redoit:b,eventData:u}}function nR(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&mt.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function kg(e,r,t,a){e=Ir.getGraphDiv(e),cn.clearPromiseQueue(e),Ir.isPlainObject(r)||(r={}),Ir.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=cn.coerceTraceIndices(e,a),i=QP(e,Ir.extendFlat({},r),n),o=i.flags,l=aR(e,Ir.extendFlat({},t)),u=l.flags;(o.calc||u.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&cn.clearAxisTypes(e,n,t);var s=[];u.layoutReplot?s.push(la.layoutReplot):o.fullReplot?s.push(Ot._doPlot):(s.push(mt.previousPromises),eR(e,u,l)||mt.supplyDefaults(e),o.style&&s.push(la.doTraceStyle),(o.colorbars||u.colorbars)&&s.push(la.doColorBars),u.legend&&s.push(la.doLegend),u.layoutstyle&&s.push(la.layoutStyles),u.axrange&&Sg(s,l.rangesAltered),u.ticks&&s.push(la.doTicksRelayout),u.modebar&&s.push(la.doModeBar),u.camera&&s.push(la.doCamera),s.push(Sh)),s.push(mt.rehover,mt.redrag,mt.reselect),Ei.add(e,kg,[e,i.undoit,l.undoit,i.traces],kg,[e,i.redoit,l.redoit,i.traces]);var f=Ir.syncOrAsync(s,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 M7(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var Tue=[{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"}],kue=[{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 HP(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 OP(e,r){var t=ka(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=ka(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Cue(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function Due(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 UP(e,r){var t=Ir.isPlainObject(e),a=Array.isArray(e);return t||a?(t&&Ir.isPlainObject(r)||a&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function Sue(e,r,t,a){var n=a._preGUI,i,o,l,u,s,f,c,h,d,m,p=[],y={},b={};for(i in n){if(s=HP(i,Tue),s){if(d=s.head,m=s.tail,o=s.attr||d+".uirevision",l=ka(a,o).get(),u=l&&OP(o,r),u&&u===l){if(f=n[i],f===null&&(f=void 0),c=ka(r,i),h=c.get(),UP(h,f)){h===void 0&&m==="autorange"&&p.push(d),c.set(zs(ka(a,i).get()));continue}else if(m==="autorange"||m.slice(0,6)==="range["){var C=n[d+".range[0]"],x=n[d+".range[1]"],_=n[d+".autorange"];if(_||_===null&&C===null&&x===null){if(!(d in y)){var A=ka(r,d).get();y[d]=A&&(A.autorange||A.autorange!==!1&&(!A.range||A.range.length!==2))}if(y[d]){c.set(zs(ka(a,i).get()));continue}}}}}else Ir.warn("unrecognized GUI edit: "+i);delete n[i],s&&s.tail.slice(0,6)==="range["&&(b[s.head]=1)}for(var T=0;T<p.length;T++){var M=p[T];if(b[M]){var E=ka(r,M).get();E&&delete E.autorange}}var P=a._tracePreGUI;for(var z in P){var B=P[z],X=null,H;for(i in B){if(!X){var V=Cue(z,t);if(V<0){delete P[z];break}H=t[V];var I=Due(z,e,H.index);if(I<0){delete P[z];break}X=e[I]}if(s=HP(i,kue),s){if(s.attr?(l=ka(a,s.attr).get(),u=l&&OP(s.attr,r)):(l=H.uirevision,u=X.uirevision,u===void 0&&(u=r.uirevision)),u&&u===l&&(f=B[i],f===null&&(f=void 0),c=ka(X,i),h=c.get(),UP(h,f))){c.set(zs(ka(H,i).get()));continue}}else Ir.warn("unrecognized GUI edit: "+i+" in trace uid "+z);delete B[i]}}}function Fue(e,r,t,a){var n,i;function o(){return Ot.addFrames(e,n)}e=Ir.getGraphDiv(e),cn.clearPromiseQueue(e);var l=e._fullData,u=e._fullLayout;if(!Ir.isPlotDiv(e)||!l||!u)i=Ot.newPlot(e,r,t,a);else{if(Ir.isPlainObject(r)){var s=r;r=s.data,t=s.layout,a=s.config,n=s.frames}var f=!1;if(a){let H=Ir.extendDeepAll({},e._context);e._context=void 0,VP(e,a),f=!cn.collectionsAreEqual(H,e._context)}if(f){let H=e._ev.eventNames().map(V=>[V,e._ev.listeners(V)]);i=Ot.newPlot(e,r,t,a).then(()=>{for(let[V,I]of H)I.forEach(Q=>e.on(V,Q));return Ot.react(e,r,t,a)})}else{e.data=r||[],cn.cleanData(e.data),e.layout=t||{},cn.cleanLayout(e.layout),Sue(e.data,e.layout,l,u),mt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,m=h.transition,p=Lue(e,u,h,d,m),y=p.newDataRevision,b=Eue(e,l,c,d,m,y);if(nR(e)&&(p.layoutReplot=!0),b.calc||p.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(h),x=0;x<C.length;x++){var _=C[x],A=_.substring(0,5);if(A==="xaxis"||A==="yaxis"){var T=h[_]._emptyCategories;T&&T()}}}else mt.supplyDefaultsUpdateCalc(e.calcdata,c);var M=[];if(n&&(e._transitionData={},mt.createTransitionData(e),M.push(o)),h.transition&&(b.anim||p.anim))p.ticks&&M.push(la.doTicksRelayout),mt.doCalcdata(e),la.doAutoRangeAndConstraints(e),M.push(function(){return mt.transitionFromReact(e,b,p,u)});else if(b.fullReplot||p.layoutReplot)e._fullLayout._skipDefaults=!0,M.push(Ot._doPlot);else{for(var E in p.arrays){var P=p.arrays[E];if(P.length){var z=Qo.getComponentMethod(E,"drawOne");if(z!==Ir.noop)for(var B=0;B<P.length;B++)z(e,P[B]);else{var X=Qo.getComponentMethod(E,"draw");if(X===Ir.noop)throw new Error("cannot draw components: "+E);X(e)}}}M.push(mt.previousPromises),b.style&&M.push(la.doTraceStyle),(b.colorbars||p.colorbars)&&M.push(la.doColorBars),p.legend&&M.push(la.doLegend),p.layoutstyle&&M.push(la.layoutStyles),p.axrange&&Sg(M),p.ticks&&M.push(la.doTicksRelayout),p.modebar&&M.push(la.doModeBar),p.camera&&M.push(la.doCamera),M.push(Sh)}M.push(mt.rehover,mt.redrag,mt.reselect),i=Ir.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 Eue(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=B0.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(d){var m=Dg.getTraceValObject(s,d);return!s._module.animatable&&m.anim&&(m.anim=!1),m}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(u=0;u<r.length;u++)if(t[u]){if(s=t[u],h[s.uid])continue;h[s.uid]=1,Cg(r[u],s,[],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 Lue(e,r,t,a,n){var i=B0.layoutFlags();i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0;function o(h){return Dg.getLayoutValObject(t,h)}for(var l in t)if(!(!l.startsWith("xaxis")&&!l.startsWith("yaxis"))&&r[l]){var u=t[l].domain,s=r[l].domain,f=r[l]._inputDomain;r[l]._inputDomain&&(u[0]===f[0]&&u[1]===f[1]?t[l].domain=r[l].domain:(u[0]!==s[0]||u[1]!==s[1])&&(t[l]._inputDomain=null))}var c={getValObject:o,flags:i,immutable:a,transition:n,gd:e};return Cg(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 Cg(e,r,t,a){var n,i,o,l=a.getValObject,u=a.flags,s=a.immutable,f=a.inArray,c=a.arrayIndex;function h(){var V=n.editType;if(f&&V.indexOf("arraydraw")!==-1){Ir.pushUnique(u.arrays[f],c);return}B0.update(u,n),V!=="none"&&u.nChanges++,a.transition&&n.anim&&u.nChangesAnim++,(rR.test(o)||tR.test(o))&&(u.rangesAltered[t[0]]=1),i==="datarevision"&&(u.newDataRevision=1)}function d(V){return V.valType==="data_array"||V.arrayOk}for(i in e){if(u.calc&&!a.transition)return;var m=e[i],p=r[i],y=t.concat(i);if(o=y.join("."),!(i.charAt(0)==="_"||typeof m=="function"||m===p)){if((i==="tick0"||i==="dtick")&&t[0]!=="geo"){var b=r.tickmode;if(b==="auto"||b==="array"||!b)continue}if(!(i==="range"&&r.autorange)&&!((i==="zmin"||i==="zmax")&&r.type==="contourcarpet")&&(n=l(y),!!n&&!(n._compareAsJSON&&JSON.stringify(m)===JSON.stringify(p)))){var C=n.valType,x,_=d(n),A=Array.isArray(m),T=Array.isArray(p);if(A&&T){var M="_input_"+i,E=e[M],P=r[M];if(Array.isArray(E)&&E===P)continue}if(p===void 0)_&&A?u.calc=!0:h();else if(n._isLinkedToArray){var z=[],B=!1;f||(u.arrays[i]=z);var X=Math.min(m.length,p.length),H=Math.max(m.length,p.length);if(X!==H)if(n.editType==="arraydraw")B=!0;else{h();continue}for(x=0;x<X;x++)Cg(m[x],p[x],y.concat(x),Ir.extendFlat({inArray:i,arrayIndex:x},a));if(B)for(x=X;x<H;x++)z.push(x)}else!C&&Ir.isPlainObject(m)?Cg(m,p,y,a):_?A&&T?(s&&(u.calc=!0),(s||a.newDataRevision)&&h()):A!==T?u.calc=!0:h():A&&T?(m.length!==p.length||String(m)!==String(p))&&h():h()}}}for(i in r)if(!(i in e||i.charAt(0)==="_"||typeof r[i]=="function"))if(n=l(t.concat(i)),d(n)&&Array.isArray(r[i])){u.calc=!0;return}else h()}function que(e,r,t){if(e=Ir.getGraphDiv(e),!Ir.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=mt.supplyAnimationDefaults(t);var n=t.transition,i=t.frame;a._frameWaitingCnt===void 0&&(a._frameWaitingCnt=0);function o(s){return Array.isArray(n)?s>=n.length?n[0]:n[s]:n}function l(s){return Array.isArray(i)?s>=i.length?i[0]:i[s]:i}function u(s,f){var c=0;return function(){if(s&&++c===f)return s()}}return new Promise(function(s,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 h(X){if(X.length!==0){for(var H=0;H<X.length;H++){var V;X[H].type==="byname"?V=mt.computeFrame(e,X[H].name):V=X[H].data;var I=l(H),Q=o(H);Q.duration=Math.min(Q.duration,I.duration);var le={frame:V,name:X[H].name,frameOpts:I,transitionOpts:Q};H===X.length-1&&(le.onComplete=u(s,2),le.onInterrupt=f),a._frameQueue.push(le)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||p()}}function d(){e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function m(){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,mt.transition(e,X.frame.data,X.frame.layout,cn.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 d()}function p(){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&&m()};X()}var y=0;function b(X){return Array.isArray(n)?y>=n.length?X.transitionOpts=n[y]:X.transitionOpts=n[0]:X.transitionOpts=n,y++,X}var C,x,_=[],A=r==null,T=Array.isArray(r),M=!A&&!T&&Ir.isPlainObject(r);if(M)_.push({type:"object",data:b(Ir.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:b({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:b({name:E})})):Ir.isPlainObject(E)&&_.push({type:"object",data:b(Ir.extendFlat({},E))})}for(C=0;C<_.length;C++)if(x=_[C],x.type==="byname"&&!a._frameHash[x.data.name]){Ir.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 B=[];for(C=0;C<_.length;C++)x=_[C],(_[C].type!=="byname"||C>z)&&B.push(x);_=B}}_.length>0?h(_):(e.emit("plotly_animated"),s())})}function Pue(e,r,t){if(e=Ir.getGraphDiv(e),r==null)return Promise.resolve();if(!Ir.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,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Ir.isPlainObject(r[a])){var h=r[a].name,d=(u[h]||c[h]||{}).name,m=r[a].name,p=u[d]||c[d];d&&m&&typeof m=="number"&&p&&x7<IP&&(x7++,Ir.warn('addFrames: overwriting frame "'+(u[d]||c[d]).name+'" with a frame whose name of type "number" also equates to "'+d+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),x7===IP&&Ir.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[h]={name:h},f.push({frame:mt.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:s+a})}f.sort(function(M,E){return M.index>E.index?-1:M.index<E.index?1:0});var y=[],b=[],C=l.length;for(a=f.length-1;a>=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Ir.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;u[n.name="frame "+e._transitionData._counter++];);if(u[n.name]){for(i=0;i<l.length&&(l[i]||{}).name!==n.name;i++);y.push({type:"replace",index:i,value:n}),b.unshift({type:"replace",index:i,value:l[i]})}else o=Math.max(0,Math.min(f[a].index,C)),y.push({type:"insert",index:o,value:n}),b.unshift({type:"delete",index:o}),C++}var x=mt.modifyFrames,_=mt.modifyFrames,A=[e,b],T=[e,y];return Ei&&Ei.add(e,x,A,_,T),mt.modifyFrames(e,y)}function Rue(e,r){if(e=Ir.getGraphDiv(e),!Ir.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=mt.modifyFrames,u=mt.modifyFrames,s=[e,o],f=[e,i];return Ei&&Ei.add(e,l,s,u,f),mt.modifyFrames(e,i)}function zue(e){e=Ir.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return mt.cleanPlot([],{},t,r),mt.purge(e),w7.purge(e),r._container&&r._container.remove(),delete e._context,e}function Nue(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Ir.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Ir.inverseTransformMatrix(Ir.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 Bue(e){var r=xg.select(e),t=e._fullLayout;if(t._calcInverseTransform=Nue,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={};xg.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Ir.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(vue.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")}Ot.animate=que;Ot.addFrames=Pue;Ot.deleteFrames=Rue;Ot.addTraces=$P;Ot.deleteTraces=KP;Ot.extendTraces=ZP;Ot.moveTraces=A7;Ot.prependTraces=JP;Ot.newPlot=bue;Ot._doPlot=pue;Ot.purge=zue;Ot.react=Fue;Ot.redraw=yue;Ot.relayout=Dh;Ot.restyle=Mg;Ot.setPlotConfig=mue;Ot.update=kg;Ot._guiRelayout=M7(Dh);Ot._guiRestyle=M7(Mg);Ot._guiUpdate=M7(kg);Ot._storeDirectGUIEdit=Aue});var pc=ae(el=>{"use strict";var Iue=bt();el.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};el.getRedrawFunc=function(e){return function(){Iue.getComponentMethod("colorbar","draw")(e)}};el.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};el.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var iR=window.URL||window.webkitURL;el.createObjectURL=function(e){return iR.createObjectURL(e)};el.revokeObjectURL=function(e){return iR.revokeObjectURL(e)};el.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=Hue(window.atob(e));return new window.Blob([t],{type:"image/"+r})};el.octetStream=function(e){document.location.href="data:application/octet-stream"+e};el.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};el.getPlotSubtitle=function(e){var a,n,i,o,l,u;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(u=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:u.text};function Hue(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}el.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var Fg=ae((d4e,oR)=>{"use strict";var C7=St(),v4e=mr(),Oue=va(),Uue=Lt(),h4e=Wf(),k7=/"/g,mc="TOBESTRIPPED",Gue=new RegExp(`("${mc})|(${mc}")|("${mc})|(${mc}")`,"g"),Yue=["&","&","&",""",""",""","'","'","'"],Vue=["<","<","<"],Xue=[">",">",">"];function Wue(e){let r=C7.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return Yue.includes(n)?a:Vue.includes(n)?"<":Xue.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function jue(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}oR.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,u=n.height,s;i.insert("rect",":first-child").call(Oue.setRect,0,0,l,u).call(Uue.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(s=0;s<f.length;s++){var c=f[s];c.toSVG&&c.toSVG(r)}if(o){var h=o.node().childNodes,d=Array.prototype.slice.call(h);for(s=0;s<d.length;s++){var m=d[s];m.childNodes.length&&i.node().appendChild(m)}}n._draggers&&n._draggers.remove(),i.node().style.background="",i.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var y=C7.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){y.remove();return}else y.style({visibility:null,display:null});var b=this.style.fontFamily;b&&b.indexOf('"')!==-1&&y.style("font-family",b.replace(k7,mc));var C=this.style.fontWeight;C&&(C==="normal"||C==="400")&&y.style("font-weight",void 0);var x=this.style.fontStyle;x&&x==="normal"&&y.style("font-style",void 0);var _=this.style.fontVariant;_&&_==="normal"&&y.style("font-variant",void 0)}),i.selectAll(".gradient_filled,.pattern_filled").each(function(){var y=C7.select(this),b=this.style.fill;b&&b.indexOf("url(")!==-1&&y.style("fill",b.replace(k7,mc));var C=this.style.stroke;C&&C.indexOf("url(")!==-1&&y.style("stroke",C.replace(k7,mc))}),(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*u),i.attr("viewBox","0 0 "+l+" "+u));var p=new window.XMLSerializer().serializeToString(i.node());return p=Wue(p),p=jue(p),p=p.replace(Gue,"'"),p}});var Eg=ae((p4e,lR)=>{"use strict";var Zue=mr(),Jue=Cp().EventEmitter,Fh=pc();function $ue(e){var r=e.emitter||new Jue,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,c=e.height||150,h=s*f,d=s*c,m=u.getContext("2d",{willReadFrequently:!0}),p=new i,y,b;l==="svg"||Zue.isSafari()?b=Fh.encodeSVG(o):(y=Fh.createBlob(o,"svg"),b=Fh.createObjectURL(y)),u.width=h,u.height=d,p.onload=function(){var C;switch(y=null,Fh.revokeObjectURL(b),l!=="svg"&&m.drawImage(p,0,0,h,d),l){case"jpeg":C=u.toDataURL("image/jpeg");break;case"png":C=u.toDataURL("image/png");break;case"webp":C=u.toDataURL("image/webp");break;case"svg":C=b;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)},p.onerror=function(C){if(y=null,Fh.revokeObjectURL(b),n(C),!e.promise)return r.emit("error",C)},p.src=b});return e.promise?t:r}lR.exports=$ue});var S7=ae((m4e,fR)=>{"use strict";var uR=Wt(),sR=T7(),Kue=An(),Iu=mr(),Eh=pc(),Que=Fg(),ese=Eg(),rse=$2().version,D7={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function tse(e,r){r=r||{};var t,a,n,i;Iu.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Iu.getGraphDiv(e),t=Iu.extendDeep([],e.data),a=Iu.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(T){return!(T in r)||Iu.validate(r[T],D7[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 "+Iu.join2(D7.format.values,", "," or ")+".");var l={};function u(T,M){return Iu.coerce(r,l,D7,T,M)}var s=u("format"),f=u("width"),c=u("height"),h=u("scale"),d=u("setBackground"),m=u("imageDataOnly"),p=document.createElement("div");p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var y=Iu.extendFlat({},a);f?y.width=f:r.width===null&&uR(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&uR(i.height)&&(y.height=i.height);var b=Iu.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=Eh.getRedrawFunc(p);function x(){return new Promise(function(T){setTimeout(T,Eh.getDelay(p._fullLayout))})}function _(){return new Promise(function(T,M){var E=Que(p,s,h),P=p._fullLayout.width,z=p._fullLayout.height;function B(){sR.purge(p),document.body.removeChild(p)}if(s==="full-json"){var X=Kue.graphJson(p,!1,"object",!0,!0);return X.version=rse,X=JSON.stringify(X),B(),T(m?X:Eh.encodeJSON(X))}if(B(),s==="svg")return T(m?E:Eh.encodeSVG(E));var H=document.createElement("canvas");H.id=Iu.randstr(),ese({format:s,width:P,height:z,scale:h,canvas:H,svg:E,promise:!0}).then(T).catch(M)})}function A(T){return m?T.replace(Eh.IMAGE_URL_PREFIX,""):T}return new Promise(function(T,M){sR.newPlot(p,t,y,b).then(C).then(x).then(_).then(function(E){T(A(E))}).catch(function(E){M(E)})})}fR.exports=tse});var hR=ae((g4e,vR)=>{"use strict";var rl=mr(),ase=An(),nse=N1(),ise=f0().dfltConfig,Gl=rl.isPlainObject,yc=Array.isArray,F7=rl.isArrayOrTypedArray;vR.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=nse.get(),n=[],i={_context:rl.extendFlat({},ise)},o,l;yc(r)?(i.data=rl.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Rn("array","data"))),Gl(t)?(i.layout=rl.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Rn("object","layout"))),ase.supplyDefaults(i);for(var u=i._fullData,s=o.length,f=0;f<s;f++){var c=o[f],h=["data",f];if(!Gl(c)){n.push(Rn("object",h));continue}var d=u[f],m=d.type,p=a.traces[m].attributes;p.type={valType:"enumerated",values:[m]},d.visible===!1&&c.visible!==!1&&n.push(Rn("invisible",h)),Lg(c,d,p,n,h)}var y=i._fullLayout,b=ose(a,u);return Lg(l,y,b,n,"layout"),n.length===0?void 0:n};function Lg(e,r,t,a,n,i){i=i||[];for(var o=Object.keys(e),l=0;l<o.length;l++){var u=o[l],s=i.slice();s.push(u);var f=e[u],c=r[u],h=sse(t,u),d=(h||{}).valType,m=d==="info_array",p=d==="colorscale",y=(h||{}).items;if(!use(t,u))a.push(Rn("schema",n,s));else if(Gl(f)&&Gl(c)&&d!=="any")Lg(f,c,h,a,n,s);else if(m&&yc(f)){f.length>c.length&&a.push(Rn("unused",n,s.concat(c.length)));var b=c.length,C=Array.isArray(y);C&&(b=Math.min(b,y.length));var x,_,A,T,M;if(h.dimensions===2)for(_=0;_<b;_++)if(yc(f[_])){f[_].length>c[_].length&&a.push(Rn("unused",n,s.concat(_,c[_].length)));var E=c[_].length;for(x=0;x<(C?Math.min(E,y[_].length):E);x++)A=C?y[_][x]:y,T=f[_][x],M=c[_][x],rl.validate(T,A)?M!==T&&M!==+T&&a.push(Rn("dynamic",n,s.concat(_,x),T,M)):a.push(Rn("value",n,s.concat(_,x),T))}else a.push(Rn("array",n,s.concat(_),f[_]));else for(_=0;_<b;_++)A=C?y[_]:y,T=f[_],M=c[_],rl.validate(T,A)?M!==T&&M!==+T&&a.push(Rn("dynamic",n,s.concat(_),T,M)):a.push(Rn("value",n,s.concat(_),T))}else if(h.items&&!m&&yc(f)){var P=y[Object.keys(y)[0]],z=[],B,X;for(B=0;B<c.length;B++){var H=c[B]._index||B;if(X=s.slice(),X.push(H),Gl(f[H])&&Gl(c[B])){z.push(H);var V=f[H],I=c[B];Gl(V)&&V.visible!==!1&&I.visible===!1?a.push(Rn("invisible",n,X)):Lg(V,I,P,a,n,X)}}for(B=0;B<f.length;B++)X=s.slice(),X.push(B),Gl(f[B])?z.indexOf(B)===-1&&a.push(Rn("unused",n,X)):a.push(Rn("object",n,X,f[B]))}else!Gl(f)&&Gl(c)?a.push(Rn("object",n,s,f)):!F7(f)&&F7(c)&&!m&&!p?a.push(Rn("array",n,s,f)):u in r?rl.validate(f,h)?h.valType==="enumerated"&&(h.coerceNumber&&f!==+c||!F7(f)&&f!==c||String(f)!==String(c))&&a.push(Rn("dynamic",n,s,f,c)):a.push(Rn("value",n,s,f)):a.push(Rn("unused",n,s,f))}return a}function ose(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?rl.extendFlat(t[i.attributes.subplot.dflt],o):rl.extendFlat(t,o))}return t}var lse={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=gc(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=gc(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return gc(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var a=Gl(t)?"container":"key";return gc(e)+a+" "+r+" did not get coerced"},dynamic:function(e,r,t,a){return[gc(e)+"key",r,"(set to '"+t+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?gc(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[gc(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function gc(e){return yc(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Rn(e,r,t,a,n){t=t||"";var i,o;yc(r)?(i=r[0],o=r[1]):(i=r,o=null);var l=cse(t),u=lse[e](r,l,a,n);return rl.log(u),{code:e,container:i,trace:o,path:t,astr:l,msg:u}}function use(e,r){var t=cR(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function sse(e,r){if(r in e)return e[r];var t=cR(r);return e[t.keyMinusId]}var fse=rl.counterRegex("([a-z]+)");function cR(e){var r=e.match(fse);return{keyMinusId:r&&r[1],id:r&&r[2]}}function cse(e){if(!yc(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 pR=ae((y4e,dR)=>{"use strict";var vse=mr(),qg=pc();function hse(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var u,s;if(n)return u=qg.createBlob(e,t),s=qg.createObjectURL(u),a.href=s,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),qg.revokeObjectURL(s),u=null,o(r);if(vse.isSafari()){var f=t==="svg"?",":";base64,";return qg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}dR.exports=hse});var E7=ae((b4e,bR)=>{"use strict";var Pg=mr(),mR=ai(),dse=S7(),pse=pR(),gR=pc(),yR=40;function mse(e,r){var t;return Pg.isPlainObject(e)||(t=Pg.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=dse(e,r),o=r.filename||e.fn;if(!o){let u=gR.getPlotTitle(e);if(u&&!mR.matchTex(u))o=Pg.slugify(u,yR);else{let s=gR.getPlotSubtitle(e);s&&!mR.matchTex(s)&&(o=Pg.slugify(s,yR))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(u){return t&&(t._snapshotInProgress=!1),pse(u,l,r.format)}).then(function(u){a(u)}).catch(function(u){t&&(t._snapshotInProgress=!1),n(u)})})}bR.exports=mse});var MR=ae(L7=>{"use strict";var Qi=mr(),eo=Qi.isPlainObject,_R=N1(),xR=An(),gse=Io(),wR=Ta(),AR=f0().dfltConfig;L7.makeTemplate=function(e){e=Qi.isPlainObject(e)?e:Qi.getGraphDiv(e),e=Qi.extendDeep({_context:AR},{data:e.data,layout:e.layout}),xR.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var m={};Lh(d,m,bse.bind(null,d));var p=Qi.coerce(d,{},gse,"type"),y=a.data[p];y||(y=a.data[p]=[]),y.push(m)}),Lh(t,a.layout,yse.bind(null,t)),delete a.layout.template;var n=t.template;if(eo(n)){var i=n.layout,o,l,u,s,f,c;eo(i)&&Rg(i,a.layout);var h=n.data;if(eo(h)){for(l in a.data)if(u=h[l],Array.isArray(u)){for(f=a.data[l],c=f.length,s=u.length,o=0;o<c;o++)Rg(u[o%s],f[o]);for(o=c;o<s;o++)f.push(Qi.extendDeep({},u[o]))}for(l in h)l in a.data||(a.data[l]=Qi.extendDeep([],h[l]))}}return a};function Rg(e,r){e=Qi.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,h){if(eo(c)&&eo(f))Rg(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var d=wR.arrayTemplater({_template:e},h);for(n=0;n<c.length;n++){var m=c[n],p=d.newItem(m)._template;p&&Rg(p,m)}var y=d.defaultItems();for(n=0;n<y.length;n++)c.push(y[n]._template);for(n=0;n<c.length;n++)delete c[n].templateitemname}}for(a=0;a<t.length;a++){var o=t[a],l=e[o];if(o in r?i(l,r[o],o):r[o]=l,zg(o)===o)for(var u in r){var s=zg(u);u!==s&&s===o&&!(u in e)&&i(l,r[u],o)}}}function zg(e){return e.replace(/[0-9]+$/,"")}function Lh(e,r,t,a,n){var i=n&&t(n);for(var o in e){var l=e[o],u=tl(e,o,a),s=tl(e,o,n),f=t(s);if(!f){var c=zg(o);c!==o&&(s=tl(e,c,n),f=t(s))}if(!(i&&i===f)&&!(!f||f._noTemplating||f.valType==="data_array"||f.arrayOk&&Array.isArray(l)))if(!f.valType&&eo(l))Lh(l,r,t,u,s);else if(f._isLinkedToArray&&Array.isArray(l))for(var h=!1,d=0,m={},p=0;p<l.length;p++){var y=l[p];if(eo(y)){var b=y.name;if(b)m[b]||(Lh(y,r,t,tl(l,d,u),tl(l,d,s)),d++,m[b]=1);else if(!h){var C=wR.arrayDefaultKey(o),x=tl(e,C,a),_=tl(l,d,u);Lh(y,r,t,_,tl(l,d,s));var A=Qi.nestedProperty(r,_),T=Qi.nestedProperty(r,x);T.set(A.get()),A.set(null),h=!0}}}else{var M=Qi.nestedProperty(r,u);M.set(l)}}}function yse(e,r){return _R.getLayoutValObject(e,Qi.nestedProperty({},r).parts)}function bse(e,r){return _R.getTraceValObject(e,Qi.nestedProperty({},r).parts)}function tl(e,r,t){var a;return t?Array.isArray(e)?a=t+"["+r+"]":a=t+"."+r:a=r,a}L7.validateTemplate=function(e,r){var t=Qi.extendDeep({},{_context:AR,data:e.data,layout:e.layout}),a=t.layout||{};eo(r)||(r=a.template||{});var n=r.layout,i=r.data,o=[];t.layout=a,t.layout.template=r,xR.supplyDefaults(t);var l=t._fullLayout,u=t._fullData,s={};function f(x,_){for(var A in x)if(A.charAt(0)!=="_"&&eo(x[A])){var T=zg(A),M=[],E;for(E=0;E<_.length;E++)M.push(tl(x,A,_[E])),T!==A&&M.push(tl(x,T,_[E]));for(E=0;E<M.length;E++)s[M[E]]=1;f(x[A],M)}}function c(x,_){for(var A in x)if(A.indexOf("defaults")===-1&&eo(x[A])){var T=tl(x,A,_);s[T]?c(x[A],T):o.push({code:"unused",path:T})}}if(eo(n)?(f(l,["layout"]),c(n,"layout")):o.push({code:"layout"}),!eo(i))o.push({code:"data"});else{for(var h={},d,m=0;m<u.length;m++){var p=u[m];d=p.type,h[d]=(h[d]||0)+1,p._template||o.push({code:"missing",index:p.index,traceType:d})}for(d in i){var y=i[d].length,b=h[d]||0;y>b?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function C(x,_){for(var A in x)if(A.charAt(0)!=="_"){var T=x[A],M=tl(x,A,_);eo(T)?(Array.isArray(x)&&T._template===!1&&T.templateitemname&&o.push({code:"missing",path:M,templateitemname:T.templateitemname}),C(T,M)):Array.isArray(T)&&_se(T)&&C(T,M)}}if(C({data:u,layout:l},""),o.length)return o.map(xse)};function _se(e){for(var r=0;r<e.length;r++)if(eo(e[r]))return!0}function xse(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 kR=ae(Ra=>{"use strict";var kn=T7();Ra._doPlot=kn._doPlot;Ra.newPlot=kn.newPlot;Ra.restyle=kn.restyle;Ra.relayout=kn.relayout;Ra.redraw=kn.redraw;Ra.update=kn.update;Ra._guiRestyle=kn._guiRestyle;Ra._guiRelayout=kn._guiRelayout;Ra._guiUpdate=kn._guiUpdate;Ra._storeDirectGUIEdit=kn._storeDirectGUIEdit;Ra.react=kn.react;Ra.extendTraces=kn.extendTraces;Ra.prependTraces=kn.prependTraces;Ra.addTraces=kn.addTraces;Ra.deleteTraces=kn.deleteTraces;Ra.moveTraces=kn.moveTraces;Ra.purge=kn.purge;Ra.addFrames=kn.addFrames;Ra.deleteFrames=kn.deleteFrames;Ra.animate=kn.animate;Ra.setPlotConfig=kn.setPlotConfig;var wse=xv().getGraphDiv,Ase=Xm().eraseActiveShape;Ra.deleteActiveShape=function(e){return Ase(wse(e))};Ra.toImage=S7();Ra.validate=hR();Ra.downloadImage=E7();var TR=MR();Ra.makeTemplate=TR.makeTemplate;Ra.validateTemplate=TR.validateTemplate});var DR=ae((w4e,CR)=>{"use strict";var q7=mr(),Mse=bt();CR.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,u=Mse.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],a),i){var s=q7.minRowLength(i);o?l=Math.min(s,q7.minRowLength(o)):(l=s,n("y0"),n("dy"))}else{if(!o)return 0;l=q7.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var LR=ae((A4e,ER)=>{"use strict";var SR=mr().dateTick0,Tse=Oa(),kse=Tse.ONEWEEK;function FR(e,r){return e%kse===0?SR(r,1):SR(r,0)}ER.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",FR(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",FR(l,t.ycalendar)),n("yperiodalignment"))}}});var RR=ae((M4e,PR)=>{"use strict";var qR=["orientation","groupnorm","stackgaps"];PR.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,u=i[l];u||(u=i[l]={});var s=u[o],f=!1;s?s.traces.push(t):(s=u[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},h=0;h<qR.length;h++){var d=qR[h],m=d+"Found";if(!s[m]){var p=r[d]!==void 0,y=d==="orientation";if((p||f)&&(s[d]=n(d,c[d]),y&&(s.fillDflt=s[d]==="h"?"tonextx":"tonexty"),p&&(s[m]=!0,!f&&(delete s.traces[0][d],y))))for(var b=0;b<s.traces.length-1;b++){var C=s.traces[b];C._input.fill!==C.fill&&(C.fill=s.fillDflt)}}}return s}}});var P7=ae((T4e,IR)=>{"use strict";var zR=Lt(),NR=Tu().hasColorscale,BR=U1(),Cse=pi();IR.exports=function(r,t,a,n,i,o={}){var l=Cse.isBubble(r),u=(r.line||{}).color,s;if(u&&(a=u),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),NR(r,"marker")&&BR(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||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=zR.background:s=zR.defaultLine,i("marker.line.color",s),NR(r,"marker.line")&&BR(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 R7=ae((k4e,HR)=>{"use strict";var Dse=mr().isArrayOrTypedArray,Sse=Tu().hasColorscale,Fse=U1();HR.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),Sse(r,"line"))Fse(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var u=(Dse(l)?!1:l)||a;i("line.color",u)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var UR=ae((C4e,OR)=>{"use strict";OR.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var z7=ae((D4e,GR)=>{"use strict";var Ese=mr();GR.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Ese.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var N7=ae((S4e,VR)=>{"use strict";var Ng=Lt(),YR=mr().isArrayOrTypedArray;function Lse(e){for(var r=Ng.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=Ng.interpolate(e[t-1][1],e[t][1],.5);r=Ng.interpolate(r,a,e[t-1][0]/e[t][0])}return r}VR.exports=function(r,t,a,n,i){i||(i={});var o=!1;if(t.marker){var l=t.marker.color,u=(t.marker.line||{}).color;l&&!YR(l)?o=l:u&&!YR(u)&&(o=u)}var s;if(i.moduleHasFillgradient){var f=n("fillgradient.type");if(f!=="none"){n("fillgradient.start"),n("fillgradient.stop");var c=n("fillgradient.colorscale");c&&(s=Lse(c))}}n("fillcolor",Ng.addOpacity((t.line||{}).color||o||s||a,.5))}});var ZR=ae((F4e,jR)=>{"use strict";var XR=mr(),qse=bt(),Pse=dc(),Rse=fg(),h2=pi(),zse=DR(),Nse=LR(),Bse=RR(),Ise=P7(),Hse=R7(),WR=UR(),Ose=z7(),Use=N7(),Gse=mr().coercePattern;jR.exports=function(r,t,a,n){function i(d,m){return XR.coerce(r,t,Pse,d,m)}var o=zse(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Nse(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Bse(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var u=!l&&o<Rse.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",u),h2.hasMarkers(t)&&Ise(r,t,a,n,i,{gradient:!0}),h2.hasLines(t)&&(Hse(r,t,a,n,i,{backoff:!0}),WR(r,t,i),i("connectgaps"),i("line.simplify")),h2.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),Ose(r,t,n,i));var s=[];(h2.hasMarkers(t)||h2.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),s.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(Use(r,t,a,i,{moduleHasFillgradient:!0}),h2.hasLines(t)||WR(r,t,i),Gse(i,"fillpattern",t.fillcolor,!1));var f=(t.line||{}).color,c=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&s.push("fills"),i("hoveron",s.join("+")||"points"),t.hoveron!=="fills"&&(i("hovertemplate"),i("hovertemplatefallback"));var h=qse.getComponentMethod("errorbars","supplyDefaults");h(r,t,f||c||a,{axis:"y"}),h(r,t,f||c||a,{axis:"x",inherit:"y"}),XR.coerceSelectionMarkerOpacity(t,i)}}});var $R=ae((E4e,JR)=>{"use strict";var Yse=nh().getAxisGroup;JR.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],u=Yse(a,l)+o,s=a._alignmentOpts||{},f=n("alignmentgroup"),c=s[u];c||(c=s[u]={});var h=c[f];h?h.traces.push(t):h=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",m=h.offsetGroups,p=m[d];t._offsetIndex=0,(i!=="group"||d)&&(p||(p=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=p.offsetIndex)}});var QR=ae((L4e,KR)=>{"use strict";var Vse=mr(),Xse=$R(),Wse=dc();KR.exports=function(r,t){var a,n,i,o=t.scattermode;function l(h){return Vse.coerce(n._input,n,Wse,h)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,Xse(a,n,t,l,o));for(i=0;i<r.length;i++){var u=r[i];if(u.type==="scatter"){var s=u.fill;if(!(s==="none"||s==="toself")&&(u.opacity=void 0,s==="tonexty"||s==="tonextx"))for(var f=i-1;f>=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var rz=ae((q4e,ez)=>{"use strict";var jse=mr(),Zse=Lp();ez.exports=function(e,r){function t(n,i){return jse.coerce(e,r,Zse,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var nz=ae((P4e,az)=>{"use strict";var Jse=Wt(),tz=mr(),$se=tz.dateTime2ms,Bg=tz.incrementMonth,Kse=Oa(),Qse=Kse.ONEAVGMONTH;az.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(Jse(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var u=+o.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:n}}for(var s=t.calendar,f=i==="start",c=i==="end",h=r[a+"period0"],d=$se(h,s)||0,m=[],p=[],y=[],b=n.length,C=0;C<b;C++){var x=n[C],_,A,T;if(l){for(_=Math.round((x-d)/(l*Qse)),T=Bg(d,l*_,s);T>x;)T=Bg(T,-l,s);for(;T<=x;)T=Bg(T,l,s);A=Bg(T,-l,s)}else{for(_=Math.round((x-d)/o),T=d+_*o;T>x;)T-=o;for(;T<=x;)T+=o;A=T-o}m[C]=f?A:c?T:(A+T)/2,p[C]=A,y[C]=T}return{vals:m,starts:p,ends:y}}});var H7=ae((R4e,oz)=>{"use strict";var B7=Tu().hasColorscale,I7=Up(),iz=pi();oz.exports=function(r,t){iz.hasLines(t)&&B7(t,"line")&&I7(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),iz.hasMarkers(t)&&(B7(t,"marker")&&I7(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),B7(t,"marker.line")&&I7(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var qh=ae((z4e,lz)=>{"use strict";var Za=mr();lz.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Za.mergeArray(t.text,r,"tx"),Za.mergeArray(t.texttemplate,r,"txt"),Za.mergeArray(t.hovertext,r,"htx"),Za.mergeArray(t.customdata,r,"data"),Za.mergeArray(t.textposition,r,"tp"),t.textfont&&(Za.mergeArrayCastPositive(t.textfont.size,r,"ts"),Za.mergeArray(t.textfont.color,r,"tc"),Za.mergeArray(t.textfont.family,r,"tf"),Za.mergeArray(t.textfont.weight,r,"tw"),Za.mergeArray(t.textfont.style,r,"ty"),Za.mergeArray(t.textfont.variant,r,"tv"),Za.mergeArray(t.textfont.textcase,r,"tC"),Za.mergeArray(t.textfont.lineposition,r,"tE"),Za.mergeArray(t.textfont.shadow,r,"tS"));var n=t.marker;if(n){Za.mergeArrayCastPositive(n.size,r,"ms"),Za.mergeArrayCastPositive(n.opacity,r,"mo"),Za.mergeArray(n.symbol,r,"mx"),Za.mergeArray(n.angle,r,"ma"),Za.mergeArray(n.standoff,r,"mf"),Za.mergeArray(n.color,r,"mc");var i=n.line;n.line&&(Za.mergeArray(i.color,r,"mlc"),Za.mergeArrayCastPositive(i.width,r,"mlw"),Za.mergeArray(i.dash,r,"mld"));var o=n.gradient;o&&o.type!=="none"&&(Za.mergeArray(o.type,r,"mgt"),Za.mergeArray(o.color,r,"mgc"))}}});var Ig=ae((N4e,sz)=>{"use strict";var uz=mr();sz.exports=function(r,t){uz.isArrayOrTypedArray(t.selectedpoints)&&uz.tagSelected(r,t)}});var Hg=ae((B4e,mz)=>{"use strict";var fz=Wt(),U7=mr(),Ph=Ba(),cz=nz(),O7=Oa().BADNUM,G7=pi(),e0e=H7(),r0e=qh(),t0e=Ig();function a0e(e,r){var t=e._fullLayout,a=r._xA=Ph.getFromId(e,r.xaxis||"x","x"),n=r._yA=Ph.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=cz(r,a,"x",i),u=cz(r,n,"y",o),s=l.vals,f=u.vals,c=r._length,h=new Array(c),d=r.ids,m=Y7(r,t,a,n),p=!1,y,b,C,x,_,A;dz(t,r);var T="x",M="y",E;if(m)U7.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(M="s",E="x"):(T="s",E="y"),_=m.stackgaps==="interpolate";else{var P=hz(r,c);vz(e,r,a,n,s,f,P)}var z=!!r.xperiodalignment,B=!!r.yperiodalignment;for(b=0;b<c;b++){var X=h[b]={},H=fz(s[b]),V=fz(f[b]);H&&V?(X[T]=s[b],X[M]=f[b],z&&(X.orig_x=i[b],X.xEnd=l.ends[b],X.xStart=l.starts[b]),B&&(X.orig_y=o[b],X.yEnd=u.ends[b],X.yStart=u.starts[b])):m&&(y?H:V)?(X[E]=y?s[b]:f[b],X.gap=!0,_?(X.s=O7,p=!0):X.s=0):X[T]=X[M]=O7,d&&(X.id=String(d[b]))}if(r0e(h,r),e0e(e,r),t0e(h,r),m){for(b=0;b<h.length;)h[b][E]===O7?h.splice(b,1):b++;if(U7.sort(h,function(re,te){return re[E]-te[E]||re.i-te.i}),p){for(b=0;b<h.length-1&&h[b].gap;)b++;for(A=h[b].s,A||(A=h[b].s=0),C=0;C<b;C++)h[C].s=A;for(x=h.length-1;x>b&&h[x].gap;)x--;for(A=h[x].s,C=h.length-1;C>x;C--)h[C].s=A;for(;b<x;)if(b++,h[b].gap){for(C=b+1;h[C].gap;)C++;for(var I=h[b-1][E],Q=h[b-1].s,le=(h[C].s-Q)/(h[C][E]-I);b<C;)h[b].s=Q+(h[b][E]-I)*le,b++}}}return h}function vz(e,r,t,a,n,i,o){var l=r._length,u=e._fullLayout,s=t._id,f=a._id,c=u._firstScatter[pz(r)]===r.uid,h=(Y7(r,u,t,a)||{}).orientation,d=r.fill;t._minDtick=0,a._minDtick=0;var m={padded:!0},p={padded:!0};o&&(m.ppad=p.ppad=o);var y=l<2||n[0]!==n[l-1]||i[0]!==i[l-1];y&&(d==="tozerox"||d==="tonextx"&&(c||h==="h"))?m.tozero=!0:!(r.error_y||{}).visible&&(d==="tonexty"||d==="tozeroy"||!G7.hasMarkers(r)&&!G7.hasText(r))&&(m.padded=!1,m.ppad=0),y&&(d==="tozeroy"||d==="tonexty"&&(c||h==="v"))?p.tozero=!0:(d==="tonextx"||d==="tozerox")&&(p.padded=!1),s&&(r._extremes[s]=Ph.findExtremes(t,n,m)),f&&(r._extremes[f]=Ph.findExtremes(a,i,p))}function hz(e,r){if(G7.hasMarkers(e)){var t=e.marker,a=1.6*(e.marker.sizeref||1),n;if(e.marker.sizemode==="area"?n=function(s){return Math.max(Math.sqrt((s||0)/a),3)}:n=function(s){return Math.max((s||0)/a,3)},U7.isArrayOrTypedArray(t.size)){var i={type:"linear"};Ph.setConvert(i);for(var o=i.makeCalcdata(e.marker,"size"),l=new Array(r),u=0;u<r;u++)l[u]=n(o[u]);return l}else return n(t.size)}}function dz(e,r){var t=pz(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function pz(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function Y7(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}}mz.exports={calc:a0e,calcMarkerSize:hz,calcAxisExpansion:vz,setFirstScatter:dz,getStackOpts:Y7}});var yz=ae((I4e,gz)=>{"use strict";gz.exports=Og;var n0e=mr().distinctVals;function Og(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 u=o[l],s=u.p;s===void 0&&(s=u[a]),s!==void 0&&n.push(s)}o[0]&&o[0].width1&&(t=Math.min(o[0].width1,t))}this.positions=n;var f=n0e(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={}}Og.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};Og.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};Og.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 _z=ae((H4e,bz)=>{"use strict";bz.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Tz=ae((O4e,Mz)=>{"use strict";var al=Wt(),{isArrayOrTypedArray:Ns}=mr(),{BADNUM:d2}=Oa(),i0e=bt(),Rh=Ba(),{getAxisGroup:o0e}=nh(),Ug=yz(),{TEXTPAD:l0e}=_z(),{LINE_SPACING:u0e}=ti(),{BR_TAG_ALL:s0e}=ai();function f0e(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],u=[],s=0;s<i.length;s++){var f=i[s];if(f.visible===!0&&i0e.traceIs(f,"bar")&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[s]):u.push(o[s]),f._computePh))for(var c=e.calcdata[s],h=0;h<c.length;h++)typeof c[h].ph0=="function"&&(c[h].ph0=c[h].ph0()),typeof c[h].ph1=="function"&&(c[h].ph1=c[h].ph1())}var d={xCat:t.type==="category"||t.type==="multicategory",yCat:a.type==="category"||a.type==="multicategory",mode:n.barmode,norm:n.barnorm,gap:n.bargap,groupgap:n.bargroupgap};X7(e,t,a,u,d),X7(e,a,t,l,d)}function X7(e,r,t,a,n){if(a.length){var i,o,l,u,s;switch(h0e(t,a),n.mode){case"overlay":V7(e,r,t,a,n);break;case"group":for(i=[],o=[],l=0;l<a.length;l++)u=a[l],s=u[0].trace,s.offset===void 0?o.push(u):i.push(u);o.length&&d0e(e,r,t,o,n),i.length&&V7(e,r,t,i,n);break;case"stack":case"relative":for(i=[],o=[],l=0;l<a.length;l++)u=a[l],s=u[0].trace,s.base===void 0?o.push(u):i.push(u);v0e(o),o.length&&p0e(e,r,t,o,n),i.length&&V7(e,r,t,i,n);break}c0e(a),x0e(a,r)}}function c0e(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=al(i)?+i:+i.slice(0,-1),l=al(i)?"px":"%",n.cornerradiusvalue=o,n.cornerradiusform=l))}function v0e(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=al(i)?+i:+i.slice(0,-1),l=al(i)?"px":"%",r=0;r<e.length;r++)t=e[r],n=t[0].t,n.cornerradiusvalue=o,n.cornerradiusform=l}}function h0e(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,u=i.orientation==="h"?i.xcalendar:i.ycalendar,s=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(Ns(o)){for(a=0;a<Math.min(o.length,n.length);a++)l=s(o[a],0,u),al(l)?(n[a].b=+l,n[a].hasB=1):n[a].b=0;for(;a<n.length;a++)n[a].b=0}else{l=s(o,0,u);var f=al(l);for(l=f?l:0,a=0;a<n.length;a++)n[a].b=l,f&&(n[a].hasB=1)}}}function V7(e,r,t,a,n){for(var i=0;i<a.length;i++){var o=a[i],l=new Ug([o],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});W7(e,r,l,n),n.norm?(Az(l),j7(t,l,n)):wz(t,l)}}function d0e(e,r,t,a,n){var i=new Ug(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});W7(e,r,i,n),b0e(i,r),n.norm?(Az(i),j7(t,i,n)):wz(t,i)}function p0e(e,r,t,a,n){var i=new Ug(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});W7(e,r,i,n),y0e(t,i,n);for(var o=0;o<a.length;o++)for(var l=a[o],u=l[0].t.offsetindex,s=0;s<l.length;s++){var f=l[s];if(f.s!==d2){var c=f.b+f.s===i.get(f.p,u,f.s);c&&(f._outmost=!0)}}n.norm&&j7(t,i,n)}function W7(e,r,t,a){var n=e._fullLayout,i=t.positions,o=t.distinctPositions,l=t.minDiff,u=t.traces,s=u.length,f=i.length!==o.length,c=l*(1-a.gap),h,d,m,p;if(r._id==="angularaxis")h=c,d=h*(1-(a.groupgap||0)),m=-d/2;else{var y=o0e(n,r._id)+u[0][0].trace.orientation;p=n._alignmentOpts[y]||{}}for(var b=0;b<s;b++){var C=u[b],x=C[0].trace;if(r._id!=="angularaxis"){var _=p[x.alignmentgroup]||{},A=Object.keys(_.offsetGroups||{}).length;A?h=c/A:h=f?c/s:c,d=h*(1-(a.groupgap||0)),A?m=((2*x._offsetIndex+1-A)*h-d)/2:m=f?((2*b+1-s)*h-d)/2:-d/2}var T=C[0].t;T.barwidth=d,T.offsetindex=x._offsetIndex||0,T.poffset=m,T.bargroupwidth=c,T.bardelta=l}t.binWidth=u[0][0].t.barwidth/100,m0e(t),g0e(r,t),r._id==="angularaxis"?xz(r,t):xz(r,t,f)}function m0e(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,u=o._offset||o.offset,s=l.poffset,f;if(Ns(u)){for(f=Array.prototype.slice.call(u,0,n.length),a=0;a<f.length;a++)al(f[a])||(f[a]=s);for(a=f.length;a<n.length;a++)f.push(s);l.poffset=f}else u!==void 0&&(l.poffset=u);var c=o._width||o.width,h=l.barwidth;if(Ns(c)){var d=Array.prototype.slice.call(c,0,n.length);for(a=0;a<d.length;a++)al(d[a])||(d[a]=h);for(a=d.length;a<n.length;a++)d.push(h);if(l.barwidth=d,u===void 0){for(f=[],a=0;a<n.length;a++)f.push(s+(h-d[a])/2);l.poffset=f}}else c!==void 0&&(l.barwidth=c,u===void 0&&(l.poffset=s+(h-c)/2))}}function g0e(e,r){for(var t=r.traces,a=p2(e),n=0;n<t.length;n++)for(var i=t[n],o=i[0].t,l=o.poffset,u=Ns(l),s=o.barwidth,f=Ns(s),c=0;c<i.length;c++){var h=i[c],d=h.w=f?s[c]:s;h.p===void 0&&(h.p=h[a],h["orig_"+a]=h[a]);var m=(u?l[c]:l)+d/2;h[a]=h.p+m}}function xz(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;Rh.minDtick(e,r.minDiff,r.distinctPositions[0],t);for(var o=0;o<a.length;o++){var l=a[o],u=l[0],s=u.trace,f=[],c,h,d,m;for(m=0;m<l.length;m++)c=l[m],h=c.p-i,d=c.p+i,f.push(h,d);if(s.width||s.offset){var p=u.t,y=p.poffset,b=p.barwidth,C=Ns(y),x=Ns(b);for(m=0;m<l.length;m++){c=l[m];var _=C?y[m]:y,A=x?b[m]:b;h=c.p+_,d=h+A,f.push(h,d)}}s._extremes[e._id]=Rh.findExtremes(e,f,{padded:!1})}}function wz(e,r){for(var t=r.traces,a=p2(e),n=0;n<t.length;n++){for(var i=t[n],o=i[0].trace,l=o.type==="scatter",u=o.orientation==="v",s=[],f=!1,c=0;c<i.length;c++){var h=i[c],d=l?0:h.b,m=l?u?h.y:h.x:d+h.s;h[a]=m,s.push(m),h.hasB&&s.push(d),(!h.hasB||!h.b)&&(f=!0)}let{ppadminus:p,ppadplus:y}=Z7(o,i);o._extremes[e._id]=Rh.findExtremes(e,s,{tozero:f,padded:!0,ppadplus:y,ppadminus:p})}}function y0e(e,r,t){var a=p2(e),n=r.traces,i,o,l,u,s,f,c;for(u=0;u<n.length;u++)if(i=n[u],o=i[0].trace,o.type==="funnel")for(c=i[0].t.offsetindex,s=0;s<i.length;s++)f=i[s],f.s!==d2&&r.put(f.p,c,-.5*f.s);for(u=0;u<n.length;u++){i=n[u],o=i[0].trace,l=o.type==="funnel",c=o.type==="barpolar"?0:i[0].t.offsetindex;var h=[];for(s=0;s<i.length;s++)if(f=i[s],f.s!==d2){var d;l?d=f.s:d=f.s+f.b;var m=r.put(f.p,c,d),p=m+d;f.b=m,f[a]=p,t.norm||(h.push(p),f.hasB&&h.push(m))}if(!t.norm){let{ppadminus:y,ppadplus:b}=Z7(o,i);o._extremes[e._id]=Rh.findExtremes(e,h,{tozero:!0,padded:!0,ppadplus:b,ppadminus:y})}}}function Az(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!==d2&&e.put(o.p,n,o.b+o.s)}}function b0e(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 Ug([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),u=0;u<n.length;u++){var s=n[u];if(s.p!==d2){var f=l.put(s.p,o,s.b+s.s);f&&(s.b=f)}}}}function j7(e,r,t){var a=r.traces,n=p2(e),i=t.norm==="fraction"?1:100,o=i/1e9,l=e.l2c(e.c2l(0)),u=t.mode==="stack"?i:l;function s(T){return al(e.c2l(T))&&(T<l-o||T>u+o||!al(l))}for(var f=0;f<a.length;f++){for(var c=a[f],h=c[0].t.offsetindex,d=c[0].trace,m=[],p=!1,y=!1,b=0;b<c.length;b++){var C=c[b];if(C.s!==d2){var x=Math.abs(i/r.get(C.p,h,C.s));C.b*=x,C.s*=x;var _=C.b,A=_+C.s;C[n]=A,m.push(A),y=y||s(A),C.hasB&&(m.push(_),y=y||s(_)),(!C.hasB||!C.b)&&(p=!0)}}let{ppadminus:T,ppadplus:M}=Z7(d,c);d._extremes[e._id]=Rh.findExtremes(e,m,{tozero:p,padded:y,ppadplus:M,ppadminus:T})}}function Z7(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(s0e)||[]).length+1};var t;e.texttemplate?t=a(e.texttemplate):t=Ns(e.text)?Math.max(...e.text.map(i=>a(i))):a(e.text);let n=e.outsidetextfont.size*u0e*t+l0e;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 _0e(e,r,t,a){for(var n=p2(a),i=0;i<e.length;i++)for(var o=e[i],l=0;l<o.length;l++){var u=o[l],s=u[n];u._sMin=r[s],u._sMax=t[s]}}function x0e(e,r){var t=p2(r),a={},n,i,o,l=1/0,u=-1/0;for(n=0;n<e.length;n++)for(o=e[n],i=0;i<o.length;i++){var s=o[i].p;al(s)&&(l=Math.min(l,s),u=Math.max(u,s))}var f=1e4/(u-l),c=a.round=function(E){return String(Math.round(f*(E-l)))},h={},d={},m=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 p=o[0].t.poffset,y=Ns(p);for(i=0;i<o.length;i++){var b=o[i],C=b[t]-b.w/2;if(al(C)){var x=b[t]+b.w/2,_=c(b.p);a[_]?a[_]=[Math.min(C,a[_][0]),Math.max(x,a[_][1])]:a[_]=[C,x]}if(b.p0=b.p+(y?p[i]:p),b.p1=b.p0+b.w,b.s0=b.b,b.s1=b.s0+b.s,m){var A=Math.min(b.s0,b.s1)||0,T=Math.max(b.s0,b.s1)||0,M=b[t];h[M]=M in h?Math.min(h[M],A):A,d[M]=M in d?Math.max(d[M],T):T}}}m&&_0e(e,h,d,r)}function p2(e){return e._id.charAt(0)}Mz.exports={crossTraceCalc:f0e,setGroupPositions:X7}});var Sz=ae((U4e,Dz)=>{"use strict";var kz=Hg(),Cz=Tz().setGroupPositions;function w0e(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],u=[],s=0;s<i.length;s++){var f=i[s];f.visible===!0&&f.type==="scatter"&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[s]):f.orientation==="v"&&u.push(o[s]))}var c={mode:n.scattermode,gap:n.scattergap};Cz(e,t,a,u,c),Cz(e,a,t,l,c)}Dz.exports=function(r,t){r._fullLayout.scattermode==="group"&&w0e(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,u,s,f,c,h,d,m,p,y,b,C,x,_,A,T;for(var M in o){b=o[M];var E=b.traceIndices;if(E.length){for(C=b.stackgaps==="interpolate",x=b.groupnorm,b.orientation==="v"?(_="x",A="y"):(_="y",A="x"),T=new Array(E.length),u=0;u<T.length;u++)T[u]=!1;d=l[E[0]];var P=new Array(d.length);for(u=0;u<d.length;u++)P[u]=d[u][_];for(u=1;u<E.length;u++){for(h=l[E[u]],s=f=0;s<h.length;s++){for(m=h[s][_];m>P[f]&&f<P.length;f++)J7(h,s,P[f],u,T,C,_),s++;if(m!==P[f]){for(c=0;c<u;c++)J7(l[E[c]],f,m,c,T,C,_);P.splice(f,0,m)}f++}for(;f<P.length;f++)J7(h,s,P[f],u,T,C,_),s++}var z=P.length;for(s=0;s<d.length;s++){for(p=d[s][A]=d[s].s,u=1;u<E.length;u++)h=l[E[u]],h[0].trace._rawLength=h[0].trace._length,h[0].trace._length=z,p+=h[s].s,h[s][A]=p;if(x)for(y=(x==="fraction"?p:p/100)||1,u=0;u<E.length;u++){var B=l[E[u]][s];B[A]/=y,B.sNorm=B.s/y}}for(u=0;u<E.length;u++){h=l[E[u]];var X=h[0].trace,H=kz.calcMarkerSize(X,X._rawLength),V=Array.isArray(H);if(H&&T[u]||V){var I=H;for(H=new Array(z),s=0;s<z;s++)H[s]=h[s].gap?0:V?I[h[s].i]:I}var Q=new Array(z),le=new Array(z);for(s=0;s<z;s++)Q[s]=h[s].x,le[s]=h[s].y;kz.calcAxisExpansion(r,X,a,n,Q,le,H),h[0].t.orientation=b.orientation}}}}};function J7(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 u=e[r-1];l.s=u.s,l.i=u.i,l.gap=u.gap}else i&&(l.s=A0e(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 A0e(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 zz=ae((G4e,Rz)=>{"use strict";var M0e=va(),qz=Oa(),zh=qz.BADNUM,Pz=qz.LOG_CLIP,Fz=Pz+.5,Ez=Pz-.5,Gg=mr(),T0e=Gg.segmentsIntersect,Lz=Gg.constrain,$7=fg();Rz.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",u=n._length,s=i._length,f=t.backoff,c=a.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,p=m==="linear",y=a.fill&&a.fill!=="none",b=[],C=$7.minTolerance,x=r.length,_=new Array(x),A=0,T,M,E,P,z,B,X,H,V,I,Q,le,re,te,oe,ce;function Me(rr){var Cr=r[rr];if(!Cr)return!1;var vr=t.linearized?n.l2p(Cr.x):n.c2p(Cr.x),Xr=t.linearized?i.l2p(Cr.y):i.c2p(Cr.y);if(vr===zh){if(o&&(vr=n.c2p(Cr.x,!0)),vr===zh)return!1;l&&Xr===zh&&(vr*=Math.abs(n._m*s*(n._m>0?Fz:Ez)/(i._m*u*(i._m>0?Fz:Ez)))),vr*=1e3}if(Xr===zh){if(l&&(Xr=i.c2p(Cr.y,!0)),Xr===zh)return!1;Xr*=1e3}return[vr,Xr]}function Se(rr,Cr,vr,Xr){var Kr=vr-rr,Lr=Xr-Cr,Wr=.5-rr,Ae=.5-Cr,Pe=Kr*Kr+Lr*Lr,sr=Kr*Wr+Lr*Ae;if(sr>0&&sr<Pe){var gr=Wr*Lr-Ae*Kr;if(gr*gr<Pe)return!0}}var Ie,Ue;function ke(rr,Cr){var vr=rr[0]/u,Xr=rr[1]/s,Kr=Math.max(0,-vr,vr-1,-Xr,Xr-1);return Kr&&Ie!==void 0&&Se(vr,Xr,Ie,Ue)&&(Kr=0),Kr&&Cr&&Se(vr,Xr,Cr[0]/u,Cr[1]/s)&&(Kr=0),(1+$7.toleranceGrowth*Kr)*d}function We(rr,Cr){var vr=rr[0]-Cr[0],Xr=rr[1]-Cr[1];return Math.sqrt(vr*vr+Xr*Xr)}var j=$7.maxScreensAway,ee=-u*j,me=u*(1+j),K=-s*j,$=s*(1+j),se=[[ee,K,me,K],[me,K,me,$],[me,$,ee,$],[ee,$,ee,K]],_e,Ne,$e,ar,tr,fr;function Re(rr,Cr){for(var vr=[],Xr=0,Kr=0;Kr<4;Kr++){var Lr=se[Kr],Wr=T0e(rr[0],rr[1],Cr[0],Cr[1],Lr[0],Lr[1],Lr[2],Lr[3]);Wr&&(!Xr||Math.abs(Wr.x-vr[0][0])>1||Math.abs(Wr.y-vr[0][1])>1)&&(Wr=[Wr.x,Wr.y],Xr&&We(Wr,rr)<We(vr[0],rr)?vr.unshift(Wr):vr.push(Wr),Xr++)}return vr}function ur(rr){if(rr[0]<ee||rr[0]>me||rr[1]<K||rr[1]>$)return[Lz(rr[0],ee,me),Lz(rr[1],K,$)]}function hr(rr,Cr){if(rr[0]===Cr[0]&&(rr[0]===ee||rr[0]===me)||rr[1]===Cr[1]&&(rr[1]===K||rr[1]===$))return!0}function dr(rr,Cr){var vr=[],Xr=ur(rr),Kr=ur(Cr);return Xr&&Kr&&hr(Xr,Kr)||(Xr&&vr.push(Xr),Kr&&vr.push(Kr)),vr}function Ze(rr,Cr,vr){return function(Xr,Kr){var Lr=ur(Xr),Wr=ur(Kr),Ae=[];if(Lr&&Wr&&hr(Lr,Wr))return Ae;Lr&&Ae.push(Lr),Wr&&Ae.push(Wr);var Pe=2*Gg.constrain((Xr[rr]+Kr[rr])/2,Cr,vr)-((Lr||Xr)[rr]+(Wr||Kr)[rr]);if(Pe){var sr;Lr&&Wr?sr=Pe>0==Lr[rr]>Wr[rr]?Lr:Wr:sr=Lr||Wr,sr[rr]+=Pe}return Ae}}var cr;m==="linear"||m==="spline"?cr=Re:m==="hv"||m==="vh"?cr=dr:m==="hvh"?cr=Ze(0,ee,me):m==="vhv"&&(cr=Ze(1,K,$));function Er(rr,Cr){var vr=Cr[0]-rr[0],Xr=(Cr[1]-rr[1])/vr,Kr=(rr[1]*Cr[0]-Cr[1]*rr[0])/vr;return Kr>0?[Xr>0?ee:me,$]:[Xr>0?me:ee,K]}function Te(rr){var Cr=rr[0],vr=rr[1],Xr=Cr===_[A-1][0],Kr=vr===_[A-1][1];if(!(Xr&&Kr))if(A>1){var Lr=Cr===_[A-2][0],Wr=vr===_[A-2][1];Xr&&(Cr===ee||Cr===me)&&Lr?Wr?A--:_[A-1]=rr:Kr&&(vr===K||vr===$)&&Wr?Lr?A--:_[A-1]=rr:_[A++]=rr}else _[A++]=rr}function Oe(rr){_[A-1][0]!==rr[0]&&_[A-1][1]!==rr[1]&&Te([$e,ar]),Te(rr),tr=null,$e=ar=0}var Ar=Gg.isArrayOrTypedArray(c);function Nr(rr){if(rr&&f&&(rr.i=T,rr.d=r,rr.trace=a,rr.marker=Ar?c[rr.i]:c,rr.backoff=f),Ie=rr[0]/u,Ue=rr[1]/s,_e=rr[0]<ee?ee:rr[0]>me?me:0,Ne=rr[1]<K?K:rr[1]>$?$:0,_e||Ne){if(!A)_[A++]=[_e||rr[0],Ne||rr[1]];else if(tr){var Cr=cr(tr,rr);Cr.length>1&&(Oe(Cr[0]),_[A++]=Cr[1])}else fr=cr(_[A-1],rr)[0],_[A++]=fr;var vr=_[A-1];_e&&Ne&&(vr[0]!==_e||vr[1]!==Ne)?(tr&&($e!==_e&&ar!==Ne?Te($e&&ar?Er(tr,rr):[$e||_e,ar||Ne]):$e&&ar&&Te([$e,ar])),Te([_e,Ne])):$e-_e&&ar-Ne&&Te([_e||$e,Ne||ar]),tr=rr,$e=_e,ar=Ne}else tr&&Oe(cr(tr,rr)[0]),_[A++]=rr}for(T=0;T<x;T++)if(M=Me(T),!!M){for(A=0,tr=null,Nr(M),T++;T<x;T++){if(P=Me(T),!P){if(h)continue;break}if(!p||!t.simplify){Nr(P);continue}var Qe=Me(T+1);if(I=We(P,M),!(!(y&&(A===0||A===x-1))&&I<ke(P,Qe)*C)){for(H=[(P[0]-M[0])/I,(P[1]-M[1])/I],z=M,Q=I,le=te=oe=0,X=!1,E=P,T++;T<r.length;T++){if(B=Qe,Qe=Me(T+1),!B){if(h)continue;break}if(V=[B[0]-M[0],B[1]-M[1]],ce=V[0]*H[1]-V[1]*H[0],te=Math.min(te,ce),oe=Math.max(oe,ce),oe-te>ke(B,Qe))break;E=B,re=V[0]*H[0]+V[1]*H[1],re>Q?(Q=re,P=B,X=!1):re<le&&(le=re,z=B,X=!0)}if(X?(Nr(P),E!==z&&Nr(z)):(z!==M&&Nr(z),E!==P&&Nr(P)),Nr(E),T>=r.length||!B)break;Nr(B),M=B}}tr&&Te([$e||tr[0],ar||tr[1]]),b.push(_.slice(0,A))}var Be=m.slice(m.length-1);if(f&&Be!=="h"&&Be!=="v"){for(var Xe=!1,yr=-1,kr=[],pr=0;pr<b.length;pr++)for(var xr=0;xr<b[pr].length-1;xr++){var Pr=b[pr][xr],Fr=b[pr][xr+1],Hr=M0e.applyBackoff(Fr,Pr);(Hr[0]!==Fr[0]||Hr[1]!==Fr[1])&&(Xe=!0),kr[yr+1]||(yr++,kr[yr]=[Pr,[Hr[0],Hr[1]]])}return Xe?kr:b}return b}});var Iz=ae((Y4e,Bz)=>{"use strict";var Nz={tonextx:1,tonexty:1,tonext:1};Bz.exports=function(r,t,a){var n,i,o,l,u,s={},f=!1,c=-1,h=0,d=-1;for(i=0;i<a.length;i++)n=a[i][0].trace,o=n.stackgroup||"",o?o in s?u=s[o]:(u=s[o]=h,h++):n.fill in Nz&&d>=0?u=d:(u=d=h,h++),u<c&&(f=!0),n._groupIndex=c=u;var m=a.slice();f&&m.sort(function(y,b){var C=y[0].trace,x=b[0].trace;return C._groupIndex-x._groupIndex||C.index-x.index});var p={};for(i=0;i<m.length;i++)n=m[i][0].trace,o=n.stackgroup||"",n.visible===!0?(n._nexttrace=null,n.fill in Nz&&(l=p[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),p[o]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return m}});var Gz=ae((V4e,Uz)=>{"use strict";var Yl=St(),k0e=bt(),Nh=mr(),m2=Nh.ensureSingle,Oz=Nh.identity,Qa=va(),g2=pi(),C0e=zz(),D0e=Iz(),Yg=ng().tester;Uz.exports=function(r,t,a,n,i,o){var l,u,s=!i,f=!!i&&i.duration>0,c=D0e(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),S0e(r,l,t),f){o&&(u=o());var h=Yl.transition().duration(i.duration).ease(i.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});h.each(function(){n.selectAll("g.trace").each(function(d,m){Hz(r,m,t,d,c,this,i)})})}else l.each(function(d,m){Hz(r,m,t,d,c,this,i)});s&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function S0e(e,r,t){r.each(function(a){var n=m2(Yl.select(this),"g","fills");Qa.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,Oz);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){i[u]=m2(Yl.select(this),"path","js-fill")})})}function Hz(e,r,t,a,n,i,o){var l=e._context.staticPlot,u;F0e(e,r,t,a,n);var s=!!o&&o.duration>0;function f(Ze){return s?Ze.transition():Ze}var c=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,p=Yl.select(i),y=m2(p,"g","errorbars"),b=m2(p,"g","lines"),C=m2(p,"g","points"),x=m2(p,"g","text");if(k0e.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(p).style("opacity",d.opacity);var _,A,T=d.fill.charAt(d.fill.length-1);T!=="x"&&T!=="y"&&(T="");var M,E;T==="y"?(M=1,E=h.c2p(0,!0)):T==="x"&&(M=0,E=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=p;var P="",z=[],B=d._prevtrace,X=null,H=null;B&&(P=B._prevRevpath||"",A=B._nextFill,z=B._ownPolygons,X=B._fillsegments,H=B._fillElement);var V,I,Q="",le="",re,te,oe,ce,Me,Se,Ie=[];d._polygons=[];var Ue=[],ke=[],We=Nh.noop;if(_=d._ownFill,g2.hasLines(d)||d.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(re=Qa.steps(m.shape),te=Qa.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?re=te=function(Ze){var cr=Ze[Ze.length-1];return Ze.length>1&&Ze[0][0]===cr[0]&&Ze[0][1]===cr[1]?Qa.smoothclosed(Ze.slice(1),m.smoothing):Qa.smoothopen(Ze,m.smoothing)}:re=te=function(Ze){return"M"+Ze.join("L")},oe=function(Ze){return te(Ze.reverse())},ke=C0e(a,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Ue=new Array(ke.length);var j=0;for(u=0;u<ke.length;u++){var ee,me=ke[u];!ee||!T?(ee=me.slice(),Ue[j]=ee,j++):ee.push.apply(ee,me)}d._fillElement=null,d._fillExclusionElement=H,d._fillsegments=Ue.slice(0,j),Ue=d._fillsegments,ke.length&&(ce=ke[0][0].slice(),Me=ke[ke.length-1],Se=Me[Me.length-1].slice()),We=function(Ze){return function(cr){if(V=re(cr),I=oe(cr),Q?T?(Q+="L"+V.slice(1),le=I+("L"+le.slice(1))):(Q+="Z"+V,le=I+"Z"+le):(Q=V,le=I),g2.hasLines(d)){var Er=Yl.select(this);if(Er.datum(a),Ze)f(Er.style("opacity",0).attr("d",V).call(Qa.lineGroupStyle)).style("opacity",1);else{var Te=f(Er);Te.attr("d",V),Qa.singleLineStyle(a,Te)}}}}}var K=b.selectAll(".js-line").data(ke);f(K.exit()).style("opacity",0).remove(),K.each(We(!1)),K.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(Qa.lineGroupStyle).each(We(!0)),Qa.setClipUrl(K,t.layerClipId,e);function $(Ze){f(Ze).attr("d","M0,0Z")}var se=function(){var Ze=new Array(Ue.length);for(u=0;u<Ue.length;u++)Ze[u]=Yg(Ue[u]);return Ze},_e=function(Ze){var cr,Er;if(!Ze||Ze.length===0)for(cr=new Array(Ue.length),Er=0;Er<Ue.length;Er++){var Te=Ue[Er][0].slice(),Oe=Ue[Er][Ue[Er].length-1].slice();Te[M]=Oe[M]=E;var Ar=[Oe,Te],Nr=Ar.concat(Ue[Er]);cr[Er]=Yg(Nr)}else{for(cr=new Array(Ze.length-1+Ue.length),Er=0;Er<Ze.length-1;Er++)cr[Er]=Yg(Ze[Er]);var Qe=Ze[Ze.length-1].slice();for(Qe.reverse(),Er=0;Er<Ue.length;Er++)cr[Ze.length-1+Er]=Yg(Ue[Er].concat(Qe))}return cr};ke.length?(_?(_.datum(a),ce&&Se&&(T?(ce[M]=Se[M]=E,f(_).attr("d","M"+Se+"L"+ce+"L"+Q.slice(1)).call(Qa.singleFillStyle,e),Ie=_e(null)):(f(_).attr("d",Q+"Z").call(Qa.singleFillStyle,e),Ie=se())),d._polygons=Ie,d._fillElement=_):A&&(d.fill.slice(0,6)==="tonext"&&Q&&P?(d.fill==="tonext"?(f(A).attr("d",Q+"Z"+P+"Z").call(Qa.singleFillStyle,e),Ie=se(),d._polygons=Ie.concat(z)):(f(A).attr("d",Q+"L"+P.slice(1)+"Z").call(Qa.singleFillStyle,e),Ie=_e(X),d._polygons=Ie),d._fillElement=A):$(A)),d._prevRevpath=le):(_?$(_):A&&$(A),d._prevRevpath=null),d._ownPolygons=Ie;function Ne(Ze){return Ze.filter(function(cr){return!cr.gap&&cr.vis})}function $e(Ze){return Ze.filter(function(cr){return cr.vis})}function ar(Ze){return Ze.filter(function(cr){return!cr.gap})}function tr(Ze){return Ze.id}function fr(Ze){if(Ze.ids)return tr}function Re(){return!1}function ur(Ze,cr,Er){var Te,Oe,Ar,Nr=Er[0].trace,Qe=g2.hasMarkers(Nr),Be=g2.hasText(Nr),Xe=fr(Nr),yr=Re,kr=Re;if(Qe||Be){var pr=Oz,xr=Nr.stackgroup,Pr=xr&&e._fullLayout._scatterStackOpts[c._id+h._id][xr].stackgaps==="infer zero";Nr.marker.maxdisplayed||Nr._needsCull?pr=Pr?$e:Ne:xr&&!Pr&&(pr=ar),Qe&&(yr=pr),Be&&(kr=pr)}Oe=Ze.selectAll("path.point"),Te=Oe.data(yr,Xe);var Fr=Te.enter().append("path").classed("point",!0);s&&Fr.call(Qa.pointStyle,Nr,e).call(Qa.translatePoints,c,h).style("opacity",0).transition().style("opacity",1),Te.order();var Hr;Qe&&(Hr=Qa.makePointStyleFns(Nr)),Te.each(function(rr){var Cr=Yl.select(this),vr=f(Cr);Ar=Qa.translatePoint(rr,vr,c,h),Ar?(Qa.singlePointStyle(rr,vr,Nr,Hr,e),t.layerClipId&&Qa.hideOutsideRangePoint(rr,vr,c,h,Nr.xcalendar,Nr.ycalendar),Nr.customdata&&Cr.classed("plotly-customdata",rr.data!==null&&rr.data!==void 0)):vr.remove()}),s?Te.exit().transition().style("opacity",0).remove():Te.exit().remove(),Oe=cr.selectAll("g"),Te=Oe.data(kr,Xe),Te.enter().append("g").classed("textpoint",!0).append("text"),Te.order(),Te.each(function(rr){var Cr=Yl.select(this),vr=f(Cr.select("text"));Ar=Qa.translatePoint(rr,vr,c,h),Ar?t.layerClipId&&Qa.hideOutsideRangePoint(rr,Cr,c,h,Nr.xcalendar,Nr.ycalendar):Cr.remove()}),Te.selectAll("text").call(Qa.textPointStyle,Nr,e).each(function(rr){var Cr=c.c2p(rr.x),vr=h.c2p(rr.y);Yl.select(this).selectAll("tspan.line").each(function(){f(Yl.select(this)).attr({x:Cr,y:vr})})}),Te.exit().remove()}C.datum(a),x.datum(a),ur(C,x,a);var hr=d.cliponaxis===!1,dr=hr?null:t.layerClipId;Qa.setClipUrl(C,dr,e),Qa.setClipUrl(x,dr,e)}function F0e(e,r,t,a,n){var i=t.xaxis,o=t.yaxis,l=Yl.extent(Nh.simpleMap(i.range,i.r2c)),u=Yl.extent(Nh.simpleMap(o.range,o.r2c)),s=a[0].trace;if(g2.hasMarkers(s)){var f=s.marker.maxdisplayed;if(f!==0){var c=a.filter(function(p){return p.x>=l[0]&&p.x<=l[1]&&p.y>=u[0]&&p.y<=u[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(p,y){var b=p[0].trace;g2.hasMarkers(b)&&b.marker.maxdisplayed>0&&y<r&&d++});var m=Math.round(d*h/3+Math.floor(d/3)*h/7.1);a.forEach(function(p){delete p.vis}),c.forEach(function(p,y){Math.round((y+m)%h)===0&&(p.vis=!0)})}}}});var K7=ae((X4e,Yz)=>{"use strict";Yz.exports={container:"marker",min:"cmin",max:"cmax"}});var Xz=ae((W4e,Vz)=>{"use strict";var Vg=Ba();Vz.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Vg.getFromTrace(i,t,"x"),l=Vg.getFromTrace(i,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),n.xLabel=Vg.tickText(o,o.c2l(u),!0).text,n.yLabel=Vg.tickText(l,l.c2l(s),!0).text,n}});var Bh=ae((j4e,Wz)=>{"use strict";var Q7=St(),y2=va(),E0e=bt();function L0e(e){var r=Q7.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=Q7.select(this),n=t.trace||t[0].trace;e9(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Q7.select(this),n=t.trace||t[0].trace;r9(a,n,e)}),r.selectAll("g.trace path.js-line").call(y2.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(y2.fillGroupStyle,e,!1),E0e.getComponentMethod("errorbars","style")(r)}function e9(e,r,t){y2.pointStyle(e.selectAll("path.point"),r,t)}function r9(e,r,t){y2.textPointStyle(e.selectAll("text"),r,t)}function q0e(e,r,t){var a=r[0].trace;a.selectedpoints?(y2.selectedPointStyle(t.selectAll("path.point"),a),y2.selectedTextStyle(t.selectAll("text"),a)):(e9(t,a,e),r9(t,a,e))}Wz.exports={style:L0e,stylePoints:e9,styleText:r9,styleOnSelect:q0e}});var t9=ae((Z4e,jz)=>{"use strict";var b2=Lt(),P0e=pi();jz.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&b2.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&&b2.opacity(i)?i:o&&b2.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?b2.opacity(n)<.3?b2.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&b2.opacity(a)&&P0e.hasLines(r)&&r.line.width?a:r.fillcolor)}});var $z=ae((J4e,Jz)=>{"use strict";var Xg=mr(),Zz=Hl(),R0e=bt(),z0e=t9(),a9=Lt(),N0e=Xg.fillText;Jz.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(a),c=[s,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,m=!!o.xperiodalignment,p=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(le){if(m){var re=l.c2p(le.xStart),te=l.c2p(le.xEnd);return s>=Math.min(re,te)&&s<=Math.max(re,te)?0:1/0}var oe=Math.max(3,le.mrc||0),ce=1-1/oe,Me=Math.abs(l.c2p(le.x)-s);return Me<oe?ce*Me/oe:Me-oe+ce},b=function(le){if(p){var re=u.c2p(le.yStart),te=u.c2p(le.yEnd);return f>=Math.min(re,te)&&f<=Math.max(re,te)?0:1/0}var oe=Math.max(3,le.mrc||0),ce=1-1/oe,Me=Math.abs(u.c2p(le.y)-f);return Me<oe?ce*Me/oe:Me-oe+ce},C=function(le){var re=Math.max(d,le.mrc||0),te=l.c2p(le.x)-s,oe=u.c2p(le.y)-f;return Math.max(Math.sqrt(te*te+oe*oe)-re,1-d/re)},x=Zz.getDistanceFunction(n,y,b,C);if(Zz.getClosest(i,x,r),r.index!==!1){var _=i[r.index],A=l.c2p(_.x,!0),T=u.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,B=E==="v"?P:_.orig_y!==void 0?_.orig_y:_.y;return Xg.extendFlat(r,{color:z0e(o,_),x0:A-M,x1:A+M,xLabelVal:z,y0:T-M,y1:T+M,yLabelVal:B,spikeDistance:C(_),hovertemplate:o.hovertemplate}),N0e(_,o,r),R0e.getComponentMethod("errorbars","hoverInfo")(_,o,r),[r]}}function X(le){if(!le)return!1;var re=le.node();try{var te=new DOMPoint(c[0],c[1]);return re.isPointInFill(te)}catch(ce){var oe=re.ownerSVGElement.createSVGPoint();return oe.x=c[0],oe.y=c[1],re.isPointInFill(oe)}}function H(le){var re,te=[],oe=1/0,ce=-1/0,Me=1/0,Se=-1/0,Ie;for(re=0;re<le.length;re++){var Ue=le[re];Ue.contains(c)&&(te.push(Ue),Me=Math.min(Me,Ue.ymin),Se=Math.max(Se,Ue.ymax))}if(te.length===0)return null;Me=Math.max(Me,0),Se=Math.min(Se,u._length),Ie=(Me+Se)/2;var ke,We,j,ee,me,K,$;for(re=0;re<te.length;re++)for(We=te[re].pts,ke=1;ke<We.length;ke++)K=We[ke-1][1],$=We[ke][1],K>Ie!=$>=Ie&&(ee=We[ke-1][0],me=We[ke][0],$-K&&(j=ee+(me-ee)*(Ie-K)/($-K),oe=Math.min(oe,j),ce=Math.max(ce,j)));return oe=Math.max(oe,0),ce=Math.min(ce,l._length),{x0:oe,x1:ce,y0:Ie,y1:Ie}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=X(o._fillElement)&&!X(o._fillExclusionElement);if(V){var I=H(o._polygons);I===null&&(I={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Q=a9.defaultLine;return a9.opacity(o.fillcolor)?Q=o.fillcolor:a9.opacity((o.line||{}).color)&&(Q=o.line.color),Xg.extendFlat(r,{distance:r.maxHoverDistance,x0:I.x0,x1:I.x1,y0:I.y0,y1:I.y1,color:Q,hovertemplate:!1}),delete r.index,o.text&&!Xg.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var eN=ae(($4e,Qz)=>{"use strict";var Kz=pi();Qz.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,u,s,f,c,h=l.mode&&!Kz.hasMarkers(l)&&!Kz.hasText(l);if(h)return[];if(t===!1)for(u=0;u<a.length;u++)a[u].selected=0;else for(u=0;u<a.length;u++)s=a[u],f=n.c2p(s.x),c=i.c2p(s.y),s.i!==null&&t.contains([f,c],!1,u,r)?(o.push({pointNumber:s.i,x:n.c2d(s.x),y:i.c2d(s.y)}),s.selected=1):s.selected=0;return o}});var tN=ae((K4e,rN)=>{"use strict";rN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var oN=ae((Q4e,iN)=>{"use strict";var Wg=bt().traceIs,n9=x6();iN.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(B0e(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function B0e(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=I0e(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],u={noMultiCategory:!Wg(i,"cartesian")||Wg(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,nN(i,a)){var s=aN(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!Wg(c,"box-violin")||(c[a+"axis"]||a)!==t||(c[s]!==void 0?f.push(c[s][0]):c.name!==void 0?f.push(c.name):f.push("text"),c[o]!==l&&(l=void 0))}e.type=n9(f,l,u)}else if(i.type==="splom"){var h=i.dimensions,d=h[i._axesDim[t]];d.visible&&(e.type=n9(d.values,l,u))}else e.type=n9(i[a]||[i[a+"0"]],l,u)}}}function I0e(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(nN(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function aN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function nN(e,r){var t=aN(e),a=Wg(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var uN=ae((e5e,lN)=>{"use strict";var H0e=Vi().isTypedArraySpec;function O0e(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 u=n[i][t];for(o=0;o<u.length;o++){var s=u[o];s!=null&&(a[s]=1)}}return Object.keys(a)}lN.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,o=Array.isArray(i)&&i.length>0||H0e(i),l;o&&(l="array");var u=a("categoryorder",l),s;u==="array"&&(s=a("categoryarray")),!o&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=O0e(t,n).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var cN=ae((r5e,fN)=>{"use strict";var sN=Lt(),U0e=Ll(),G0e=mr();fN.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(E,P){return G0e.coerce2(r,t,n.attributes,E,P)}var l=o("linecolor",i),u=o("linewidth"),s=a("showline",n.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=sN.mix(i,n.bgColor,n.blend||U0e.lightFraction),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),m=a("showgrid",n.showGrid||!!c||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var p=sN.mix(t.gridcolor,n.bgColor,67),y=o("minor.gridcolor",p),b=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=a("minor.showgrid",!!y||!!b||!!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 o9=ae((t5e,gN)=>{"use strict";var vN=Wt(),Y0e=bt(),Ih=mr(),V0e=Ta(),X0e=Bl(),i9=Nl(),hN=X5(),dN=j5(),W0e=$5(),j0e=K5(),Z0e=uN(),J0e=cN(),$0e=U6(),pN=am(),jg=En().WEEKDAY_PATTERN,K0e=En().HOUR_PATTERN;gN.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},u=n.splomStash||{},s=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",h;if(c==="date"){var d=Y0e.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||c==="multicategory")&&(m=Ih.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="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",m.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),pN(t,i),$0e(r,t,a,n),Z0e(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var p=a("color"),y=p!==i9.color.dflt?p:l.color,b=u.label||i._dfltTitle[o];if(j0e(r,t,a,c,n),!s)return t;a("title.text",b),Ih.coerceFont(a,"title.font",l,{overrideDflt:{size:Ih.bigFont(l.size),color:y}}),hN(r,t,a,c);var C=n.hasMinor;if(C&&(V0e.newContainer(t,"minor"),hN(r,t,a,c,{isMinor:!0})),W0e(r,t,a,c,n),dN(r,t,a,n),C){var x=n.isMinor;n.isMinor=!0,dN(r,t,a,n),n.isMinor=x}J0e(r,t,a,{dfltColor:p,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:C,attributes:i9}),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(X0e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Q0e}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var T=0;T<t.rangebreaks.length;T++)if(t.rangebreaks[T].pattern===jg){t._hasDayOfWeekBreaks=!0;break}if(pN(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,Ih.warn(E.type+" traces do not work on axes with rangebreaks. Setting trace "+E.index+" to `visible: false`."))}}return t};function Q0e(e,r,t){function a(h,d){return Ih.coerce(e,r,i9.rangebreaks,h,d)}var n=a("enabled");if(n){var i=a("bounds");if(i&&i.length>=2){var o="",l,u;if(i.length===2){for(l=0;l<2;l++)if(u=mN(i[l]),u){o=jg;break}}var s=a("pattern",o);if(s===jg)for(l=0;l<2;l++)u=mN(i[l]),u&&(r.bounds[l]=i[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=i[l],s){case jg:if(!vN(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=i[l]=u;break;case K0e:if(!vN(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=i[l]=u;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 efe={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function mN(e){if(typeof e=="string")return efe[e.slice(0,3).toLowerCase()]}});var l9=ae((a5e,yN)=>{"use strict";var rfe=Wt(),Zg=mr();yN.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,u=n.grid,s=n.overlayingDomain,f,c,h,d,m,p;u&&(c=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],c&&(h=u[l+"side"].split(" ")[0],d=u.domain[l][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(rfe(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=Zg.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=Zg.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(l==="y"){var C=a("autoshift");C&&(d=b==="left"?s[0]:s[1],p=t.automargin?t.automargin:!0,m=b==="left"?-3:3),a("shift",m)}a("position",d)}a("automargin",p);var x=!1;if(o.length&&(x=Zg.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),Zg.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var CN=ae((n5e,kN)=>{"use strict";var bc=mr(),bN=Lt(),tfe=Fs().isUnifiedHover,afe=mb(),_N=Ta(),nfe=C1(),xN=Nl(),ife=oN(),wN=o9(),ofe=nh(),AN=l9(),s9=wn(),Hu=s9.id2name,MN=s9.name2id,lfe=En().AX_ID_PATTERN,TN=bt(),Jg=TN.traceIs,u9=TN.getComponentMethod;function $g(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}kN.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},u={},s={},f={},c={},h={},d={},m={},p,y;for(p=0;p<a.length;p++){var b=a[p];if(Jg(b,"cartesian")){var C;if(b.xaxis)C=Hu(b.xaxis),$g(i,C,b);else if(b.xaxes)for(y=0;y<b.xaxes.length;y++)$g(i,Hu(b.xaxes[y]),b);var x;if(b.yaxis)x=Hu(b.yaxis),$g(i,x,b);else if(b.yaxes)for(y=0;y<b.yaxes.length;y++)$g(i,Hu(b.yaxes[y]),b);if(b.type==="funnel"?b.orientation==="h"?(C&&(o[C]=!0),x&&(c[x]=!0)):x&&(l[x]=!0):b.type==="image"?(x&&(h[x]=!0),C&&(h[C]=!0)):(x&&(s[x]=!0,f[x]=!0),(!Jg(b,"carpet")||b.type==="carpet"&&!b._cheater)&&C&&(u[C]=!0)),b.type==="carpet"&&b._cheater&&C&&(o[C]=!0),Jg(b,"2dMap")&&(d[C]=!0,d[x]=!0),Jg(b,"oriented")){var _=b.orientation==="h"?x:C;m[_]=!0}}}var A=t._subplots,T=A.xaxis,M=A.yaxis,E=bc.simpleMap(T,Hu),P=bc.simpleMap(M,Hu),z=E.concat(P),B=bN.background;T.length&&M.length&&(B=bc.coerce(r,t,nfe,"plot_bgcolor"));var X=bN.combine(B,t.paper_bgcolor),H,V,I,Q,le;function re(){var Oe=i[H]||[];le._traceIndices=Oe.map(function(Ar){return Ar.index}),le._annIndices=[],le._shapeIndices=[],le._selectionIndices=[],le._imgIndices=[],le._subplotsWith=[],le._counterAxes=[],le._name=le._attr=H,le._id=V}function te(Oe,Ar){return bc.coerce(Q,le,xN,Oe,Ar)}function oe(Oe,Ar){return bc.coerce2(Q,le,xN,Oe,Ar)}function ce(Oe){return Oe==="x"?M:T}function Me(Oe,Ar){for(var Nr=Oe==="x"?E:P,Qe=[],Be=0;Be<Nr.length;Be++){var Xe=Nr[Be];Xe!==Ar&&!(r[Xe]||{}).overlaying&&Qe.push(MN(Xe))}return Qe}var Se={x:ce("x"),y:ce("y")},Ie=Se.x.concat(Se.y),Ue={},ke=[];function We(){var Oe=Q.matches;lfe.test(Oe)&&Ie.indexOf(Oe)===-1&&(Ue[Oe]=Q.type,ke=Object.keys(Ue))}var j=afe(r,t),ee=tfe(j);for(p=0;p<z.length;p++){H=z[p],V=MN(H),I=H.charAt(0),bc.isPlainObject(r[H])||(r[H]={}),Q=r[H],le=_N.newContainer(t,H,I+"axis"),re();var me=I==="x"&&!u[H]&&o[H]||I==="y"&&!s[H]&&l[H],K=I==="y"&&(!f[H]&&c[H]||h[H]),$={hasMinor:!0,letter:I,font:t.font,outerTicks:d[H],showGrid:!m[H],data:i[H]||[],bgColor:X,calendar:t.calendar,automargin:!0,visibleDflt:me,reverseDflt:K,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[I]||{})[V],noAutotickangles:I==="y"};te("uirevision",t.uirevision),ife(Q,le,te,$),wN(Q,le,te,$,t);var se=ee&&I===j.charAt(0),_e=oe("spikecolor",ee?le.color:void 0),Ne=oe("spikethickness",ee?1.5:void 0),$e=oe("spikedash",ee?"dot":void 0),ar=oe("spikemode",ee?"across":void 0),tr=oe("spikesnap"),fr=te("showspikes",!!se||!!_e||!!Ne||!!$e||!!ar||!!tr);fr||(delete le.spikecolor,delete le.spikethickness,delete le.spikedash,delete le.spikemode,delete le.spikesnap);var Re=Hu(Q.overlaying),ur=[0,1];if(t[Re]!==void 0){var hr=Hu(t[Re].anchor);t[hr]!==void 0&&(ur=t[hr].domain)}AN(Q,le,te,{letter:I,counterAxes:Se[I],overlayableAxes:Me(I,H),grid:t.grid,overlayingDomain:ur}),te("title.standoff"),We(),le._input=Q}for(p=0;p<ke.length;){V=ke[p++],H=Hu(V),I=H.charAt(0),bc.isPlainObject(r[H])||(r[H]={}),Q=r[H],le=_N.newContainer(t,H,I+"axis"),re();var dr={letter:I,font:t.font,outerTicks:d[H],showGrid:!m[H],data:[],bgColor:X,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[I]||{})[V]};te("uirevision",t.uirevision),le.type=Ue[V]||"linear",wN(Q,le,te,dr,t),AN(Q,le,te,{letter:I,counterAxes:Se[I],overlayableAxes:Me(I,H),grid:t.grid}),te("fixedrange"),te("modebardisable"),We(),le._input=Q}var Ze=u9("rangeslider","handleDefaults"),cr=u9("rangeselector","handleDefaults");for(p=0;p<E.length;p++)H=E[p],Q=r[H],le=t[H],Ze(r,t,H),le.type==="date"&&cr(Q,le,t,P,le.calendar),te("fixedrange"),te("modebardisable");for(p=0;p<P.length;p++){H=P[p],Q=r[H],le=t[H];var Er=t[Hu(le.anchor)],Te=u9("rangeslider","isVisible")(Er);te("fixedrange",Te),te("modebardisable")}ofe.handleDefaults(r,t,{axIds:Ie.concat(ke).sort(s9.idSort),axHasImage:h})}});var FN=ae((i5e,SN)=>{"use strict";var ufe=St(),DN=bt(),Kg=mr(),Ao=va(),Qg=Ba();SN.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Qg.redrawComponents(r);return}function o(y){var b=y.xaxis,C=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Ao.setTranslate,0,0).call(Ao.setScale,1,1),y.plot.call(Ao.setTranslate,b._offset,C._offset).call(Ao.setScale,1,1);var x=y.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(Ao.setPointGroupScale,1,1),x.selectAll(".textpoint").call(Ao.setTextPointsScale,1,1),x.call(Ao.hideOutsideRangePoints,y)}function l(y,b){var C=y.plotinfo,x=C.xaxis,_=C.yaxis,A=x._length,T=_._length,M=!!y.xr1,E=!!y.yr1,P=[];if(M){var z=Kg.simpleMap(y.xr0,x.r2l),B=Kg.simpleMap(y.xr1,x.r2l),X=z[1]-z[0],H=B[1]-B[0];P[0]=(z[0]*(1-b)+b*B[0]-z[0])/(z[1]-z[0])*A,P[2]=A*(1-b+b*H/X),x.range[0]=x.l2r(z[0]*(1-b)+b*B[0]),x.range[1]=x.l2r(z[1]*(1-b)+b*B[1])}else P[0]=0,P[2]=A;if(E){var V=Kg.simpleMap(y.yr0,_.r2l),I=Kg.simpleMap(y.yr1,_.r2l),Q=V[1]-V[0],le=I[1]-I[0];P[1]=(V[1]*(1-b)+b*I[1]-V[1])/(V[0]-V[1])*T,P[3]=T*(1-b+b*le/Q),_.range[0]=x.l2r(V[0]*(1-b)+b*I[0]),_.range[1]=_.l2r(V[1]*(1-b)+b*I[1])}else P[1]=0,P[3]=T;Qg.drawOne(r,x,{skipTitle:!0}),Qg.drawOne(r,_,{skipTitle:!0}),Qg.redrawComponents(r,[x._id,_._id]);var re=M?A/P[2]:1,te=E?T/P[3]:1,oe=M?P[0]:0,ce=E?P[1]:0,Me=M?P[0]/P[2]*A:0,Se=E?P[1]/P[3]*T:0,Ie=x._offset-Me,Ue=_._offset-Se;C.clipRect.call(Ao.setTranslate,oe,ce).call(Ao.setScale,1/re,1/te),C.plot.call(Ao.setTranslate,Ie,Ue).call(Ao.setScale,re,te),Ao.setPointGroupScale(C.zoomScalePts,1/re,1/te),Ao.setTextPointsScale(C.zoomScaleTxt,1/re,1/te)}var u;n&&(u=n());function s(){for(var y={},b=0;b<t.length;b++){var C=t[b],x=C.plotinfo.xaxis,_=C.plotinfo.yaxis;C.xr1&&(y[x._name+".range"]=C.xr1.slice()),C.yr1&&(y[_._name+".range"]=C.yr1.slice())}return u&&u(),DN.call("relayout",r,y).then(function(){for(var A=0;A<t.length;A++)o(t[A].plotinfo)})}function f(){for(var y={},b=0;b<t.length;b++){var C=t[b],x=C.plotinfo.xaxis,_=C.plotinfo.yaxis;C.xr0&&(y[x._name+".range"]=C.xr0.slice()),C.yr0&&(y[_._name+".range"]=C.yr0.slice())}return DN.call("relayout",r,y).then(function(){for(var A=0;A<t.length;A++)o(t[A].plotinfo)})}var c,h,d,m=ufe.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,f()});function p(){h=Date.now();for(var y=Math.min(1,(h-c)/a.duration),b=m(y),C=0;C<t.length;C++)l(t[C],b);h-c>a.duration?(s(),d=window.cancelAnimationFrame(p)):d=window.requestAnimationFrame(p)}return c=Date.now(),d=window.requestAnimationFrame(p),Promise.resolve()}});var f9=ae(ii=>{"use strict";var r3=St(),EN=bt(),_c=mr(),sfe=An(),ffe=va(),LN=Lv().getModuleCalcData,I0=wn(),Vl=En(),cfe=Wf(),Qt=_c.ensureSingle;function e3(e,r,t){return _c.ensureSingle(e,r,t,function(a){a.datum(t)})}var xc=Vl.zindexSeparator;ii.name="cartesian";ii.attr=["xaxis","yaxis"];ii.idRoot=["x","y"];ii.idRegex=Vl.idRegex;ii.attrRegex=Vl.attrRegex;ii.attributes=tN();ii.layoutAttributes=Nl();ii.supplyLayoutDefaults=CN();ii.transitionAxes=FN();ii.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},u={},s,f,c;for(s=0;s<o.length;s++){var h=o[s].split("y");l[h[0]]=1,u["y"+h[1]]=1}for(s=0;s<a.length;s++)f=a[s],l[f]||(c=(e[I0.id2name(f)]||{}).anchor,Vl.idRegex.y.test(c)||(c="y"),i.push(f+c),o.push(f+c),u[c]||(u[c]=1,_c.pushUnique(n,c)));for(s=0;s<n.length;s++)c=n[s],u[c]||(f=(e[I0.id2name(c)]||{}).anchor,Vl.idRegex.x.test(f)||(f="x"),i.push(f+c),o.push(f+c),l[f]||(l[f]=1,_c.pushUnique(a,f)));if(!o.length){f="",c="";for(var d in e)if(Vl.attrRegex.test(d)){var m=d.charAt(0);m==="x"?(!f||+d.slice(5)<+f.slice(5))&&(f=d):(!c||+d.slice(5)<+c.slice(5))&&(c=d)}f=f?I0.name2id(f):"x",c=c?I0.name2id(c):"y",a.push(f),n.push(c),i.push(f+c)}};ii.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 u=n._zindices,s=0;s<u.length;s++){var f=u[s];for(l=0;l<i.length;l++){var c=i[l],h=n._plots[c];if(s>0){var d=h.id;if(d.indexOf(xc)!==-1)continue;d+=xc+(s+1),h=_c.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y<o.length;y++){var b=o[y],C=b[0].trace;f===(C.zorder||0)&&C.xaxis+C.yaxis===c&&((r.indexOf(C.index)!==-1||C.carpet)&&(p&&p[0].trace.xaxis+p[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(C.fill)!==-1&&m.indexOf(p)===-1&&m.push(p),m.push(b)),p=b)}qN(e,h,m,t,a)}}};function qN(e,r,t,a,n){for(var i=Vl.traceLayerClasses,o=e._fullLayout,l=o._zindices,u=o._modules,s,f,c,h=[],d=[],m=0;m<l.length;m++)for(var p=l[m],y=0;y<u.length;y++){s=u[y];var b=s.name,C=EN.modules[b].categories;if(C.svg){var x=s.layerName||b+"layer",_=x+(m?Number(m)+1:""),A=s.plot;f=LN(t,A,p),c=f[0],t=f[1],c.length&&h.push({i:i.indexOf(x),zindex:m,className:_,plotMethod:A,cdModule:c}),C.zoomScale&&d.push("."+_)}}h.sort(function(E,P){return(E.zindex||0)-(P.zindex||0)||E.i-P.i});var T=r.plot.selectAll("g.mlayer").data(h,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=r3.select(this),z=E.className;E.plotMethod(e,r,E.cdModule,P,a,n),Vl.clipOnAxisFalseQuery.indexOf("."+z)===-1&&ffe.setClipUrl(P,r.layerClipId,e)}),o._has("scattergl")&&(s=EN.getModule("scattergl"),c=LN(t,s)[0],s.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Vl.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),d.length)){var M=r.plot.selectAll(d.join(",")).selectAll(".trace");r.zoomScalePts=M.selectAll("path.point"),r.zoomScaleTxt=M.selectAll(".textpoint")}}ii.clean=function(e,r,t,a){var n=a._plots||{},i=r._plots||{},o=a._subplots||{},l,u,s;if(a._hasOnlyLargeSploms&&!r._hasOnlyLargeSploms)for(s in n)l=n[s],l.plotgroup&&l.plotgroup.remove();var f=a._has&&a._has("gl"),c=r._has&&r._has("gl");if(f&&!c)for(s in n)l=n[s],l._scene&&l._scene.destroy();if(o.xaxis&&o.yaxis){var h=I0.listIds({_fullLayout:a});for(u=0;u<h.length;u++){var d=h[u];r[I0.id2name(d)]||a._infolayer.selectAll(".g-"+d+"title").remove()}}var m=a._has&&a._has("cartesian"),p=r._has&&r._has("cartesian");if(m&&!p)RN(a._cartesianlayer.selectAll(".subplot"),a),a._defs.selectAll(".axesclip").remove(),delete a._axisConstraintGroups,delete a._axisMatchGroups;else if(o.cartesian)for(u=0;u<o.cartesian.length;u++){var y=o.cartesian[u];if(y.indexOf(xc)===-1&&!i[y]){var b="."+y+",."+y+"-x,."+y+"-y";a._cartesianlayer.selectAll(b).remove(),zN(y,a)}}};ii.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 u=Object.keys(n).map(Number).sort(_c.sorterAsc);u.length||(u=[0]),r._zindices=u;var s=vfe(e),f=s.length,c=[];for(a=0;a<f;a++)c[a]=s[a].slice();for(var h=1;h<u.length;h++){var d=[];for(a=0;a<f;a++)d[a]=s[a].slice(),d[a][0]+=xc+(h+1);c=c.concat(d)}var m=r._cartesianlayer.selectAll(".subplot").data(c,String);m.enter().append("g").attr("class",function(p){return"subplot "+p[0]}),m.order(),m.exit().call(RN,r),m.each(function(p){var y=p[0],b=y.indexOf(xc),C=b!==-1,x=C?y.slice(0,b):y,_=r._plots[y];_||(_=_c.extendFlat({},r._plots[x]),_&&(_.id=y,r._plots[y]=_,r._subplots.cartesian.push(y))),_&&(_.plotgroup=r3.select(this),PN(e,_),C||(_.draglayer=Qt(r._draggers,"g",y)))})};ii.rangePlot=function(e,r,t){PN(e,r),qN(e,r,t),sfe.style(e)};function vfe(e){var r=e._fullLayout,t=r._zindices.length,a=r._subplots.cartesian,n=a.length,i,o,l,u,s,f,c=[],h=[];for(i=0;i<n;i++){l=a[i],u=r._plots[l],s=u.xaxis,f=u.yaxis;var d=s._mainAxis,m=f._mainAxis,p=d._id+m._id,y=r._plots[p];u.overlays=[],p!==l&&y?(u.mainplot=p,u.mainplotinfo=y,h.push(l)):(u.mainplot=void 0,u.mainplotinfo=void 0,c.push(l))}for(i=0;i<h.length;i++)l=h[i],u=r._plots[l],u.mainplotinfo.overlays.push(u);var b=c.concat(h),C=[];for(i=0;i<n;i++){l=b[i],u=r._plots[l],s=u.xaxis,f=u.yaxis;for(var x=[],_=1;_<=t;_++){var A="";for(_>1&&(A+=xc+_),x.push(l+A),o=0;o<u.overlays.length;o++)x.push(u.overlays[o].id+A)}x=x.concat([s.layer,f.layer,s.overlaying||"",f.overlaying||""]),C.push(x)}return C}function PN(e,r){var t=e._fullLayout,a=r.plotgroup,n=r.id,i=n.indexOf(xc),o=i!==-1,l=Vl.layerValue2layerClass[r.xaxis.layer],u=Vl.layerValue2layerClass[r.yaxis.layer],s=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=Qt(a,"path","xlines-above"),r.ylines=Qt(a,"path","ylines-above"),r.xaxislayer=Qt(a,"g","xaxislayer-above"),r.yaxislayer=Qt(a,"g","yaxislayer-above");else{if(!o){var h=Qt(a,"g","layer-subplot");r.shapelayer=Qt(h,"g","shapelayer"),r.imagelayer=Qt(h,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=Qt(a,"g","minor-gridlayer"),r.gridlayer=Qt(a,"g","gridlayer"),r.zerolinelayer=Qt(a,"g","zerolinelayer"));var d=Qt(a,"g","layer-between");r.shapelayerBetween=Qt(d,"g","shapelayer"),r.imagelayerBetween=Qt(d,"g","imagelayer"),Qt(a,"path","xlines-below"),Qt(a,"path","ylines-below"),r.overlinesBelow=Qt(a,"g","overlines-below"),Qt(a,"g","xaxislayer-below"),Qt(a,"g","yaxislayer-below"),r.overaxesBelow=Qt(a,"g","overaxes-below")}r.overplot=Qt(a,"g","overplot"),r.plot=Qt(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=Qt(a,"g","zerolinelayer-above"),o||(r.xlines=Qt(a,"path","xlines-above"),r.ylines=Qt(a,"path","ylines-above"),r.overlinesAbove=Qt(a,"g","overlines-above"),Qt(a,"g","xaxislayer-above"),Qt(a,"g","yaxislayer-above"),r.overaxesAbove=Qt(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+u),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+u))}else{var m=c.plotgroup,p=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,Qt(c.overlinesBelow,"path",p),Qt(c.overlinesBelow,"path",y),Qt(c.overaxesBelow,"g",p),Qt(c.overaxesBelow,"g",y),r.plot=Qt(c.overplot,"g",n),Qt(c.overlinesAbove,"path",p),Qt(c.overlinesAbove,"path",y),Qt(c.overaxesAbove,"g",p),Qt(c.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+l).select("."+p),r.ylines=m.select(".overlines-"+u).select("."+y),r.xaxislayer=m.select(".overaxes-"+l).select("."+p),r.yaxislayer=m.select(".overaxes-"+u).select("."+y)}o||(s||(e3(r.minorGridlayer,"g",r.xaxis._id),e3(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(I0.idSort),e3(r.gridlayer,"g",r.xaxis._id),e3(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(I0.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function RN(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=r3.select(this);f.remove(),zN(s,r),t[s]=!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 zN(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}ii.toSVG=function(e){var r=e._fullLayout._glimages,t=r3.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:cfe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n)};ii.updateFx=p7().updateFx});var BN=ae((l5e,NN)=>{"use strict";var t3=pi();NN.exports={hasLines:t3.hasLines,hasMarkers:t3.hasMarkers,hasText:t3.hasText,isBubble:t3.isBubble,attributes:dc(),layoutAttributes:Lp(),supplyDefaults:ZR(),crossTraceDefaults:QR(),supplyLayoutDefaults:rz(),calc:Hg().calc,crossTraceCalc:Sz(),arraysToCalcdata:qh(),plot:Gz(),colorbar:K7(),formatLabels:Xz(),style:Bh().style,styleOnSelect:Bh().styleOnSelect,hoverPoints:$z(),selectPoints:eN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:f9(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var ON=ae((u5e,HN)=>{"use strict";var hfe=St(),dfe=Lt(),IN=i7(),c9=mr(),pfe=c9.strScale,mfe=c9.strRotate,gfe=c9.strTranslate;HN.exports=function(r,t,a){var n=r.node(),i=IN[a.arrowhead||0],o=IN[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),u=(a.arrowwidth||1)*(a.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,h=o.backoff*u+a.startstandoff,d,m,p,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-m.x,C=d.y-m.y;if(p=Math.atan2(C,b),y=p+Math.PI,c&&h&&c+h>Math.sqrt(b*b+C*C)){V();return}if(c){if(c*c>b*b+C*C){V();return}var x=c*Math.cos(p),_=c*Math.sin(p);m.x+=x,m.y+=_,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>b*b+C*C){V();return}var A=h*Math.cos(p),T=h*Math.sin(p);d.x-=A,d.y-=T,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),E="";if(M<c+h){V();return}var P=n.getPointAtLength(0),z=n.getPointAtLength(.1);p=Math.atan2(P.y-z.y,P.x-z.x),d=n.getPointAtLength(Math.min(h,M)),E="0px,"+h+"px,";var B=n.getPointAtLength(M),X=n.getPointAtLength(M-.1);y=Math.atan2(B.y-X.y,B.x-X.x),m=n.getPointAtLength(Math.max(0,M-c));var H=E?h+c:c;E+=M-H+"px,"+M+"px",r.style("stroke-dasharray",E)}function V(){r.style("stroke-dasharray","0px,100px")}function I(Q,le,re,te){Q.path&&(Q.noRotate&&(re=0),hfe.select(n.parentNode).append("path").attr({class:r.attr("class"),d:Q.path,transform:gfe(le.x,le.y)+mfe(re*180/Math.PI)+pfe(te)}).style({fill:dfe.rgb(a.arrowcolor),"stroke-width":0}))}s&&I(o,d,p,u),f&&I(i,m,y,l)}});var a3=ae((s5e,XN)=>{"use strict";var UN=St(),v9=bt(),yfe=An(),O0=mr(),h9=O0.strTranslate,Oh=Ba(),wc=Lt(),Bs=va(),GN=Hl(),d9=ai(),p9=F0(),Hh=Vo(),bfe=Ta().arrayEditor,_fe=ON();XN.exports={draw:xfe,drawOne:YN,drawRaw:VN};function xfe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&YN(e,t);return yfe.previousPromises(e)}function YN(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=Oh.getFromId(e,a.xref),i=Oh.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),VN(e,a,r,!1,n,i)}function H0(e,r,t,a,n){var i=n[t],o=n[t+"ref"],l=t.indexOf("y")!==-1,u=Oh.getRefType(o)==="domain",s=l?a.h:a.w;return e?u?i+(l?-r:r)/e._length:e.p2r(e.r2p(i)+r):i+(l?-r:r)/s}function VN(e,r,t,a,n,i){var o=e._fullLayout,l=e._fullLayout._size,u=e._context.edits,s,f;a?(s="annotation-"+a,f=a+".annotations"):(s="annotation",f="annotations");var c=bfe(e.layout,f,r),h=c.modifyBase,d=c.modifyItem,m=c.getUpdateObj;o._infolayer.selectAll("."+s+'[data-index="'+t+'"]').remove();var p="clip"+o._uid+"_ann"+t;if(!r._input||r.visible===!1){UN.selectAll("#"+p).remove();return}var y={x:{},y:{}},b=+r.textangle||0,C=o._infolayer.append("g").classed(s,!0).attr("data-index",String(t)).style("opacity",r.opacity),x=C.append("g").classed("annotation-text-g",!0),_=u[r.showarrow?"annotationTail":"annotationPosition"],A=r.captureevents||u.annotationText||_;function T(te){var oe={index:t,annotation:r._input,fullAnnotation:r,event:te};return a&&(oe.subplotId=a),oe}var M=x.append("g").style("pointer-events",A?"all":null).call(p9,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",T(UN.event))});r.hovertext&&M.on("mouseover",function(){var te=r.hoverlabel,oe=te.font,ce=this.getBoundingClientRect(),Me=e.getBoundingClientRect();GN.loneHover({x0:ce.left-Me.left,x1:ce.right-Me.left,y:(ce.top+ce.bottom)/2-Me.top,text:r.hovertext,color:te.bgcolor,borderColor:te.bordercolor,fontFamily:oe.family,fontSize:oe.size,fontColor:oe.color,fontWeight:oe.weight,fontStyle:oe.style,fontVariant:oe.variant,fontShadow:oe.fontShadow,fontLineposition:oe.fontLineposition,fontTextcase:oe.fontTextcase},{container:o._hoverlayer.node(),outerContainer:o._paper.node(),gd:e})}).on("mouseout",function(){GN.loneUnhover(o._hoverlayer.node())});var E=r.borderwidth,P=r.borderpad,z=E+P,B=M.append("rect").attr("class","bg").style("stroke-width",E+"px").call(wc.stroke,r.bordercolor).call(wc.fill,r.bgcolor),X=r.width||r.height,H=o._topclips.selectAll("#"+p).data(X?[0]:[]);H.enter().append("clipPath").classed("annclip",!0).attr("id",p).append("rect"),H.exit().remove();var V=r.font,I=o._meta?O0.templateString(r.text,o._meta):r.text,Q=M.append("text").classed("annotation-text",!0).text(I);function le(te){return te.call(Bs.font,V).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),d9.convertToTspans(te,e,re),te}function re(){var te=Q.selectAll("a");if(te.size()===1&&te.text()===Q.text()){var oe=M.insert("a",":first-child").attr({"xlink:xlink:href":te.attr("xlink:href"),"xlink:xlink:show":te.attr("xlink:show")}).style({cursor:"pointer"});oe.node().appendChild(B.node())}var ce=M.select(".annotation-text-math-group"),Me=!ce.empty(),Se=Bs.bBox((Me?ce:Q).node()),Ie=Se.width,Ue=Se.height,ke=r.width||Ie,We=r.height||Ue,j=Math.round(ke+2*z),ee=Math.round(We+2*z);function me(Xr,Kr){return Kr==="auto"&&(Xr<1/3?Kr="left":Xr>2/3?Kr="right":Kr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Kr]}for(var K=!1,$=["x","y"],se=0;se<$.length;se++){var _e=$[se],Ne=r[_e+"ref"]||_e,$e=r["a"+_e+"ref"],ar={x:n,y:i}[_e],tr=(b+(_e==="x"?0:-90))*Math.PI/180,fr=j*Math.cos(tr),Re=ee*Math.sin(tr),ur=Math.abs(fr)+Math.abs(Re),hr=r[_e+"anchor"],dr=r[_e+"shift"]*(_e==="x"?1:-1),Ze=y[_e],cr,Er,Te,Oe,Ar,Nr=Oh.getRefType(Ne);if(ar&&Nr!=="domain"){var Qe=ar.r2fraction(r[_e]);(Qe<0||Qe>1)&&($e===Ne?(Qe=ar.r2fraction(r["a"+_e]),(Qe<0||Qe>1)&&(K=!0)):K=!0),cr=ar._offset+ar.r2p(r[_e]),Oe=.5}else{var Be=Nr==="domain";_e==="x"?(Te=r[_e],cr=Be?ar._offset+ar._length*Te:cr=l.l+l.w*Te):(Te=1-r[_e],cr=Be?ar._offset+ar._length*Te:cr=l.t+l.h*Te),Oe=r.showarrow?.5:Te}if(r.showarrow){Ze.head=cr;var Xe=r["a"+_e];if(Ar=fr*me(.5,r.xanchor)-Re*me(.5,r.yanchor),$e===Ne){var yr=Oh.getRefType($e);yr==="domain"?(_e==="y"&&(Xe=1-Xe),Ze.tail=ar._offset+ar._length*Xe):yr==="paper"?_e==="y"?(Xe=1-Xe,Ze.tail=l.t+l.h*Xe):Ze.tail=l.l+l.w*Xe:Ze.tail=ar._offset+ar.r2p(Xe),Er=Ar}else Ze.tail=cr+Xe,Er=Ar+Xe;Ze.text=Ze.tail+Ar;var kr=o[_e==="x"?"width":"height"];if(Ne==="paper"&&(Ze.head=O0.constrain(Ze.head,1,kr-1)),$e==="pixel"){var pr=-Math.max(Ze.tail-3,Ze.text),xr=Math.min(Ze.tail+3,Ze.text)-kr;pr>0?(Ze.tail+=pr,Ze.text+=pr):xr>0&&(Ze.tail-=xr,Ze.text-=xr)}Ze.tail+=dr,Ze.head+=dr}else Ar=ur*me(Oe,hr),Er=Ar,Ze.text=cr+Ar;Ze.text+=dr,Ar+=dr,Er+=dr,r["_"+_e+"padplus"]=ur/2+Er,r["_"+_e+"padminus"]=ur/2-Er,r["_"+_e+"size"]=ur,r["_"+_e+"shift"]=Ar}if(K){M.remove();return}var Pr=0,Fr=0;if(r.align!=="left"&&(Pr=(ke-Ie)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Fr=(We-Ue)*(r.valign==="middle"?.5:1)),Me)ce.select("svg").attr({x:z+Pr-1,y:z+Fr}).call(Bs.setClipUrl,X?p:null,e);else{var Hr=z+Fr-Se.top,rr=z+Pr-Se.left;Q.call(d9.positionText,rr,Hr).call(Bs.setClipUrl,X?p:null,e)}H.select("rect").call(Bs.setRect,z,z,ke,We),B.call(Bs.setRect,E/2,E/2,j-E,ee-E),M.call(Bs.setTranslate,Math.round(y.x.text-j/2),Math.round(y.y.text-ee/2)),x.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var Cr=function(Xr,Kr){C.selectAll(".annotation-arrow-g").remove();var Lr=y.x.head,Wr=y.y.head,Ae=y.x.tail+Xr,Pe=y.y.tail+Kr,sr=y.x.text+Xr,gr=y.y.text+Kr,Bt=O0.rotationXYMatrix(b,sr,gr),Gt=O0.apply2DTransform(Bt),na=O0.apply2DTransform2(Bt),Ma=+B.attr("width"),It=+B.attr("height"),jt=sr-.5*Ma,da=jt+Ma,ea=gr-.5*It,mn=ea+It,rn=[[jt,ea,jt,mn],[jt,mn,da,mn],[da,mn,da,ea],[da,ea,jt,ea]].map(na);if(!rn.reduce(function(aa,Fa){return aa^!!O0.segmentsIntersect(Lr,Wr,Lr+1e6,Wr+1e6,Fa[0],Fa[1],Fa[2],Fa[3])},!1)){rn.forEach(function(aa){var Fa=O0.segmentsIntersect(Ae,Pe,Lr,Wr,aa[0],aa[1],aa[2],aa[3]);Fa&&(Ae=Fa.x,Pe=Fa.y)});var Un=r.arrowwidth,Jr=r.arrowcolor,ua=r.arrowside,Rt=C.append("g").style({opacity:wc.opacity(Jr)}).classed("annotation-arrow-g",!0),pa=Rt.append("path").attr("d","M"+Ae+","+Pe+"L"+Lr+","+Wr).style("stroke-width",Un+"px").call(wc.stroke,wc.rgb(Jr));if(_fe(pa,ua,r),u.annotationPosition&&pa.node().parentNode&&!a){var ya=Lr,ba=Wr;if(r.standoff){var Yt=Math.sqrt(Math.pow(Lr-Ae,2)+Math.pow(Wr-Pe,2));ya+=r.standoff*(Ae-Lr)/Yt,ba+=r.standoff*(Pe-Wr)/Yt}var za=Rt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ae-ya)+","+(Pe-ba),transform:h9(ya,ba)}).style("stroke-width",Un+6+"px").call(wc.stroke,"rgba(0,0,0,0)").call(wc.fill,"rgba(0,0,0,0)"),gn,ma;Hh.init({element:za.node(),gd:e,prepFn:function(){var aa=Bs.getTranslate(M);gn=aa.x,ma=aa.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(aa,Fa){var Da=Gt(gn,ma),Co=Da[0]+aa,qi=Da[1]+Fa;M.call(Bs.setTranslate,Co,qi),d("x",H0(n,aa,"x",l,r)),d("y",H0(i,Fa,"y",l,r)),r.axref===r.xref&&d("ax",H0(n,aa,"ax",l,r)),r.ayref===r.yref&&d("ay",H0(i,Fa,"ay",l,r)),Rt.attr("transform",h9(aa,Fa)),x.attr({transform:"rotate("+b+","+Co+","+qi+")"})},doneFn:function(){v9.call("_guiRelayout",e,m());var aa=document.querySelector(".js-notes-box-panel");aa&&aa.redraw(aa.selectedObj)}})}}};if(r.showarrow&&Cr(0,0),_){var vr;Hh.init({element:M.node(),gd:e,prepFn:function(){vr=x.attr("transform")},moveFn:function(Xr,Kr){var Lr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",H0(n,Xr,"ax",l,r)):d("ax",r.ax+Xr),r.ayref===r.yref?d("ay",H0(i,Kr,"ay",l.w,r)):d("ay",r.ay+Kr),Cr(Xr,Kr);else{if(a)return;var Wr,Ae;if(n)Wr=H0(n,Xr,"x",l,r);else{var Pe=r._xsize/l.w,sr=r.x+(r._xshift-r.xshift)/l.w-Pe/2;Wr=Hh.align(sr+Xr/l.w,Pe,0,1,r.xanchor)}if(i)Ae=H0(i,Kr,"y",l,r);else{var gr=r._ysize/l.h,Bt=r.y-(r._yshift+r.yshift)/l.h-gr/2;Ae=Hh.align(Bt-Kr/l.h,gr,0,1,r.yanchor)}d("x",Wr),d("y",Ae),(!n||!i)&&(Lr=Hh.getCursor(n?.5:Wr,i?.5:Ae,r.xanchor,r.yanchor))}x.attr({transform:h9(Xr,Kr)+vr}),p9(M,Lr)},clickFn:function(Xr,Kr){r.captureevents&&e.emit("plotly_clickannotation",T(Kr))},doneFn:function(){p9(M),v9.call("_guiRelayout",e,m());var Xr=document.querySelector(".js-notes-box-panel");Xr&&Xr.redraw(Xr.selectedObj)}})}}u.annotationText?Q.call(d9.makeEditable,{delegate:M,gd:e}).call(le).on("edit",function(te){r.text=te,this.call(le),d("text",te),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),v9.call("_guiRelayout",e,m())}):Q.call(le)}});var KN=ae((f5e,$N)=>{"use strict";var WN=mr(),wfe=bt(),jN=Ta().arrayEditor;$N.exports={hasClickToShow:Afe,onClick:Mfe};function Afe(e,r){var t=JN(e,r);return t.on.length>0||t.explicitOff.length>0}function Mfe(e,r){var t=JN(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,u;if(a.length||n.length){for(l=0;l<a.length;l++)u=jN(e.layout,"annotations",o[a[l]]),u.modifyItem("visible",!0),WN.extendFlat(i,u.getUpdateObj());for(l=0;l<n.length;l++)u=jN(e.layout,"annotations",o[n[l]]),u.modifyItem("visible",!1),WN.extendFlat(i,u.getUpdateObj());return wfe.call("update",e,{},i)}}function JN(e,r){var t=e._fullLayout.annotations,a=[],n=[],i=[],o=(r||[]).length,l,u,s,f,c,h,d,m;for(l=0;l<t.length;l++)if(s=t[l],f=s.clicktoshow,f){for(u=0;u<o;u++)if(c=r[u],h=c.xaxis,d=c.yaxis,h._id===s.xref&&d._id===s.yref&&h.d2r(c.x)===ZN(s._xclick,h)&&d.d2r(c.y)===ZN(s._yclick,d)){s.visible?f==="onout"?m=n:m=i:m=a,m.push(l);break}u===o&&s.visible&&f==="onout"&&n.push(l)}return{on:a,off:n,explicitOff:i}}function ZN(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var g9=ae((c5e,QN)=>{"use strict";var m9=mr(),_2=Lt();QN.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=_2.opacity(o);n("borderpad");var u=n("borderwidth"),s=n("showarrow");n("text",s?" ":a._dfltTitle.annotation),n("textangle"),m9.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),s){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:_2.defaultLine),n("arrowwidth",(l&&u||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),p=a.hoverlabel||{};if(m){var y=n("hoverlabel.bgcolor",p.bgcolor||(_2.opacity(i)?_2.rgb(i):_2.defaultLine)),b=n("hoverlabel.bordercolor",p.bordercolor||_2.contrast(y)),C=m9.extendFlat({},p.font);C.color||(C.color=b),m9.coerceFont(n,"hoverlabel.font",C)}n("captureevents",!!m)}});var rB=ae((v5e,eB)=>{"use strict";var y9=mr(),Ac=Ba(),Tfe=Bl(),kfe=g9(),Cfe=c2();eB.exports=function(r,t){Tfe(r,t,{name:"annotations",handleItemDefaults:Dfe})};function Dfe(e,r,t){function a(x,_){return y9.coerce(e,r,Cfe,x,_)}var n=a("visible"),i=a("clicktoshow");if(n||i){kfe(e,r,t,a);for(var o=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var c=l[f],h=Ac.coerceRef(e,r,s,c,"","paper");if(h!=="paper"){var d=Ac.getFromId(s,h);d._annIndices.push(r._index)}if(Ac.coercePosition(r,s,a,h,c,.5),o){var m="a"+c,p=Ac.coerceRef(e,r,s,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?u[f]:.4;Ac.coercePosition(r,s,a,p,m,y)}a(c+"anchor"),a(c+"shift")}if(y9.noneOrAll(e,r,["x","y"]),o&&y9.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),C=a("yclick");r._xclick=b===void 0?r.x:Ac.cleanPosition(b,s,r.xref),r._yclick=C===void 0?r.y:Ac.cleanPosition(C,s,r.yref)}}}});var nB=ae((h5e,aB)=>{"use strict";var b9=mr(),Mc=Ba(),Sfe=a3().draw;aB.exports=function(r){var t=r._fullLayout,a=b9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return b9.syncOrAsync([Sfe,Ffe],r)};function Ffe(e){var r=e._fullLayout;b9.filterVisible(r.annotations).forEach(function(t){var a=Mc.getFromId(e,t.xref),n=Mc.getFromId(e,t.yref),i=Mc.getRefType(t.xref),o=Mc.getRefType(t.yref);t._extremes={},i==="range"&&tB(t,a),o==="range"&&tB(t,n)})}function tB(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"],u=e["_"+a+"padplus"],s=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,m=3*e.startarrowsize*e.arrowwidth||0,p=m+f,y=m-f,b;if(l===o){var C=Mc.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),x=Mc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(u,p),ppadminus:Math.max(s,y)});b={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else p=i?p+i:p,y=i?y-i:y,b=Mc.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(u,h,p),ppadminus:Math.max(s,d,y)});e._extremes[t]=b}});var oB=ae((d5e,iB)=>{"use strict";var Efe=Wt(),Lfe=kd();iB.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,u=t._id.charAt(0),s,f;function c(d){var m=s[d],p=null;i?p=Lfe(m,t.range):p=Math.pow(10,m),Efe(p)||(p=null),n(f+d,p)}for(var h=0;h<l.length;h++)s=l[h],f="annotations["+h+"].",s[u+"ref"]===t._id&&c(u),s["a"+u+"ref"]===t._id&&c("a"+u)}});var sB=ae((p5e,uB)=>{"use strict";var _9=a3(),lB=KN();uB.exports={moduleType:"component",name:"annotations",layoutAttributes:c2(),supplyLayoutDefaults:rB(),includeBasePlot:wh()("annotations"),calcAutorange:nB(),draw:_9.draw,drawOne:_9.drawOne,drawRaw:_9.drawRaw,hasClickToShow:lB.hasClickToShow,onClick:lB.onClick,convertCoords:oB()}});var n3=ae((m5e,fB)=>{"use strict";var Ca=c2(),qfe=Ho().overrideAll,Pfe=Ta().templatedArray;fB.exports=qfe(Pfe("annotation",{visible:Ca.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ca.xanchor,xshift:Ca.xshift,yanchor:Ca.yanchor,yshift:Ca.yshift,text:Ca.text,textangle:Ca.textangle,font:Ca.font,width:Ca.width,height:Ca.height,opacity:Ca.opacity,align:Ca.align,valign:Ca.valign,bgcolor:Ca.bgcolor,bordercolor:Ca.bordercolor,borderpad:Ca.borderpad,borderwidth:Ca.borderwidth,showarrow:Ca.showarrow,arrowcolor:Ca.arrowcolor,arrowhead:Ca.arrowhead,startarrowhead:Ca.startarrowhead,arrowside:Ca.arrowside,arrowsize:Ca.arrowsize,startarrowsize:Ca.startarrowsize,arrowwidth:Ca.arrowwidth,standoff:Ca.standoff,startstandoff:Ca.startstandoff,hovertext:Ca.hovertext,hoverlabel:Ca.hoverlabel,captureevents:Ca.captureevents}),"calc","from-root")});var vB=ae((g5e,cB)=>{"use strict";var x9=mr(),Rfe=Ba(),zfe=Bl(),Nfe=g9(),Bfe=n3();cB.exports=function(r,t,a){zfe(r,t,{name:"annotations",handleItemDefaults:Ife,fullLayout:a.fullLayout})};function Ife(e,r,t,a){function n(l,u){return x9.coerce(e,r,Bfe,l,u)}function i(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Rfe.coercePosition(r,s,n,l,l,.5)}var o=n("visible");o&&(Nfe(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),x9.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),x9.noneOrAll(e,r,["ax","ay"])))}});var mB=ae((y5e,pB)=>{"use strict";var hB=mr(),dB=Ba();pB.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)Hfe(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function Hfe(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={},hB.extendFlat(e._xa,i),dB.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={},hB.extendFlat(e._ya,i),dB.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 yB=ae((b5e,gB)=>{"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 Ofe(e,r){var t=w9(e.projection,w9(e.view,w9(e.model,[r[0],r[1],r[2],1])));return t}gB.exports=Ofe});var _B=ae((_5e,bB)=>{"use strict";var Ufe=a3().drawRaw,Gfe=yB(),Yfe=["x","y","z"];bB.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,u=0;u<3;u++){var s=Yfe[u],f=o[s],c=t[s+"axis"],h=c.r2fraction(f);if(h<0||h>1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=Gfe(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),Ufe(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var AB=ae((x5e,wB)=>{"use strict";var Vfe=bt(),xB=mr();wB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n3()}}},layoutAttributes:n3(),handleDefaults:vB(),includeBasePlot:Xfe,convert:mB(),draw:_B()};function Xfe(e,r){var t=Vfe.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&&(xB.pushUnique(r._basePlotModules,t),xB.pushUnique(r._subplots.gl3d,o))}}});var A9=ae((M5e,CB)=>{"use strict";var w5e=En(),MB=vi(),TB=dc().line,Wfe=Au().dash,Xl=_n().extendFlat,jfe=Ta().templatedArray,A5e=_h(),x2=Io(),kB=c2(),{shapeTexttemplateAttrs:Zfe,templatefallbackAttrs:Jfe}=Bf(),$fe=lp();CB.exports=jfe("shape",{visible:Xl({},x2.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Xl({},x2.legend,{editType:"calc+arraydraw"}),legendgroup:Xl({},x2.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Xl({},x2.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:MB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Xl({},x2.legendrank,{editType:"calc+arraydraw"}),legendwidth:Xl({},x2.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:Xl({},kB.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:Xl({},kB.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:Xl({},TB.color,{editType:"arraydraw"}),width:Xl({},TB.width,{editType:"calc+arraydraw"}),dash:Xl({},Wfe,{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:Zfe({},{keys:Object.keys($fe)}),texttemplatefallback:Jfe({editType:"arraydraw"}),font:MB({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 SB=ae((T5e,DB)=>{"use strict";var w2=mr(),Mo=Ba(),Kfe=Bl(),Qfe=A9(),Uh=R0();DB.exports=function(r,t){Kfe(r,t,{name:"shapes",handleItemDefaults:rce})};function ece(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function rce(e,r,t){function a(x,_){return w2.coerce(e,r,Qfe,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"),w2.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",u=a("type",l),s=u!=="path";s&&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"),h=a("ysizemode");let d=[.25,.75],m=[0,10];["x","y"].forEach(x=>{var _=x+"anchor",A=x==="x"?c:h,T={_fullLayout:t},M,E,P,z;let B=x+"ref",X=e[B];if(Array.isArray(X)&&X.length>0){let H=Uh.countDefiningCoords(u,o,x);z=Mo.coerceRefArray(e,r,T,x,void 0,"paper",H),r["_"+x+"refArray"]=!0}else z=Mo.coerceRef(e,r,T,x,void 0,"paper");if(Array.isArray(z))z.forEach(function(H){Mo.getRefType(H)==="range"&&(M=Mo.getFromId(T,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(H){let V=z[H];Mo.getRefType(V)==="range"?(M=Mo.getFromId(T,V),E=Uh.shapePositionToRange(M),P=Uh.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(x+H+"shift")):E=P=w2.identity;let Q=x+H,le=e[Q];if(e[Q]=E(e[Q],!0),A==="pixel"?a(Q,m[H]):Mo.coercePosition(r,T,a,V,Q,d[H]),r[Q]=P(r[Q]),e[Q]=le,H===0&&A==="pixel"){let re=e[_];e[_]=E(e[_],!0),Mo.coercePosition(r,T,a,V,_,.25),r[_]=P(r[_]),e[_]=re}});else{if(Mo.getRefType(z)==="range"?(M=Mo.getFromId(T,z),M._shapeIndices.push(r._index),P=Uh.rangeToShapePosition(M),E=Uh.shapePositionToRange(M),s&&(M.type==="category"||M.type==="multicategory")&&(a(x+"0shift"),a(x+"1shift"))):E=P=w2.identity,s){let V=x+"0",I=x+"1",Q=e[V],le=e[I];e[V]=E(e[V],!0),e[I]=E(e[I],!0),A==="pixel"?(a(V,m[0]),a(I,m[1])):(Mo.coercePosition(r,T,a,z,V,d[0]),Mo.coercePosition(r,T,a,z,I,d[1])),r[V]=P(r[V]),r[I]=P(r[I]),e[V]=Q,e[I]=le}if(A==="pixel"){let V=e[_];e[_]=E(e[_],!0),Mo.coercePosition(r,T,a,z,_,.25),r[_]=P(r[_]),e[_]=V}}}),s&&w2.noneOrAll(e,r,["x0","x1","y0","y1"]);var p=u==="line",y,b;if(s&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var C=a("label.textposition",p?"middle":"middle center");a("label.xanchor"),a("label.yanchor",ece(p,C)),a("label.padding"),w2.coerceFont(a,"label.font",t.font)}}});var LB=ae((k5e,EB)=>{"use strict";var tce=Lt(),FB=mr();function ace(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}EB.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"),FB.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",tce.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),u=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||u){a("newshape.label.textangle");var s=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",ace(o,s)),a("newshape.label.padding"),FB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var IB=ae((C5e,BB)=>{"use strict";var M9=mr(),nl=Ba(),Ou=eh(),T9=R0();BB.exports=function(r){var t=r._fullLayout,a=M9.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,u=nl.getRefType(i.xref),s=nl.getRefType(i.yref);if(u==="array"){let f=qB(r,i,"x");Object.entries(f).forEach(([c,h])=>{o=nl.getFromId(r,c),i._extremes[o._id]=nl.findExtremes(o,h,PB(i))})}else i.xref!=="paper"&&u!=="domain"&&(o=nl.getFromId(r,i.xref),l=zB(o,i,Ou.paramIsX),l&&(i._extremes[o._id]=nl.findExtremes(o,l,PB(i))));if(s==="array"){let f=qB(r,i,"y");Object.entries(f).forEach(([c,h])=>{o=nl.getFromId(r,c),i._extremes[o._id]=nl.findExtremes(o,h,RB(i))})}else i.yref!=="paper"&&s!=="domain"&&(o=nl.getFromId(r,i.yref),l=zB(o,i,Ou.paramIsY),l&&(i._extremes[o._id]=nl.findExtremes(o,l,RB(i))))}};function qB(e,r,t){let a=r[t+"ref"],n=t==="x"?Ou.paramIsX:Ou.paramIsY;function i(c,h){c==="paper"||nl.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(h))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Ou.segmentRE)||[];for(var l=0,u=0;u<c.length;u++){let h=c[u],d=h.charAt(0),m=n[d].drawn;if(m===void 0)continue;let p=h.slice(1).match(Ou.paramRE);p&&p.length>m&&(i(a[l],p[m]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let s={};for(let c in o){let h=nl.getFromId(e,c);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=T9.decodeDate(f)),s[h._id]=o[c].map(f)}}return s}function PB(e){return NB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function RB(e){return NB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function NB(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var u=n?T9.extractPathCoords(n,i?Ou.paramIsY:Ou.paramIsX):[t,a],s=M9.aggNums(Math.max,null,u),f=M9.aggNums(Math.min,null,u),c=f<0?Math.abs(f)+o:o,h=s>0?s+o:o;return{ppad:o,ppadplus:l?c:h,ppadminus:l?h:c}}else return{ppad:o}}function zB(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,u=0,s=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"],u=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[s(i)+l,s(o)+u];if(r.path){var c=1/0,h=-1/0,d=r.path.match(Ou.segmentRE),m,p,y,b,C;for(e.type==="date"&&(s=T9.decodeDate(s)),m=0;m<d.length;m++)p=d[m],y=t[p.charAt(0)].drawn,y!==void 0&&(b=d[m].slice(1).match(Ou.paramRE),!(!b||b.length<y)&&(C=s(b[y]),C<c&&(c=C),C>h&&(h=C)));if(h>=c)return[c,h]}}});var UB=ae((D5e,OB)=>{"use strict";var HB=Xm();OB.exports={moduleType:"component",name:"shapes",layoutAttributes:A9(),supplyLayoutDefaults:SB(),supplyDrawNewShapeDefaults:LB(),includeBasePlot:wh()("shapes"),calcAutorange:IB(),draw:HB.draw,drawOne:HB.drawOne}});var k9=ae((F5e,YB)=>{"use strict";var GB=En(),nce=Ta().templatedArray,S5e=_h();YB.exports=nce("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",GB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",GB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var XB=ae((E5e,VB)=>{"use strict";var ice=mr(),C9=Ba(),oce=Bl(),lce=k9(),uce="images";VB.exports=function(r,t){var a={name:uce,handleItemDefaults:sce};oce(r,t,a)};function sce(e,r,t){function a(h,d){return ice.coerce(e,r,lce,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=C9.coerceRef(e,r,o,s,"paper",void 0);if(f!=="paper"){var c=C9.getFromId(o,f);c._imgIndices.push(r._index)}C9.coercePosition(r,o,a,f,s,0)}return r}});var JB=ae((L5e,ZB)=>{"use strict";var WB=St(),fce=va(),A2=Ba(),jB=wn(),cce=Wf();ZB.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l<t.images.length;l++){var u=t.images[l];if(u.visible)if(u.layer==="below"&&u.xref!=="paper"&&u.yref!=="paper"){o=jB.ref2id(u.xref)+jB.ref2id(u.yref);var s=t._plots[o];if(!s){i.push(u);continue}s.mainplot&&(o=s.mainplot.id),n[o]||(n[o]=[]),n[o].push(u)}else u.layer==="above"?a.push(u):i.push(u)}var f={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-1/2},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-1/2},bottom:{sizing:"YMax",offset:-1}}};function c(_){var A=WB.select(this);if(this._imgSrc!==_.source)if(A.attr("xmlns",cce.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 B=z.getContext("2d",{willReadFrequently:!0});B.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 h(_){var A=WB.select(this),T=A2.getFromId(r,_.xref),M=A2.getFromId(r,_.yref),E=A2.getRefType(_.xref)==="domain",P=A2.getRefType(_.yref)==="domain",z=t._size,B,X;T!==void 0?B=typeof _.xref=="string"&&E?T._length*_.sizex:Math.abs(T.l2p(_.sizex)-T.l2p(0)):B=_.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=B*f.x[_.xanchor].offset,V=X*f.y[_.yanchor].offset,I=f.x[_.xanchor].sizing+f.y[_.yanchor].sizing,Q,le;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?le=typeof _.yref=="string"&&P?M._length*(1-_.y)+M._offset:M.r2p(_.y)+M._offset:le=z.h-_.y*z.h+z.t,le+=V,_.sizing){case"fill":I+=" slice";break;case"stretch":I="none";break}A.attr({x:Q,y:le,width:B,height:X,preserveAspectRatio:I,opacity:_.opacity});var re=T&&A2.getRefType(_.xref)!=="domain"?T._id:"",te=M&&A2.getRefType(_.yref)!=="domain"?M._id:"",oe=re+te;fce.setClipUrl(A,oe?"clip"+t._uid+oe:null,r)}function d(_){return[_.xref,_.x,_.sizex,_.yref,_.y,_.sizey].join("_")}function m(_,A){return _._index-A._index}var p=t._imageLowerLayer.selectAll("image").data(i,d),y=t._imageUpperLayer.selectAll("image").data(a,d);p.enter().append("image"),y.enter().append("image"),p.exit().remove(),y.exit().remove(),p.each(function(_){c.bind(this)(_),h.bind(this)(_)}),y.each(function(_){c.bind(this)(_),h.bind(this)(_)}),p.sort(m),y.sort(m);var b=Object.keys(t._plots);for(l=0;l<b.length;l++){o=b[l];var C=t._plots[o];if(C.imagelayer){var x=C.imagelayer.selectAll("image").data(n[o]||[],d);x.enter().append("image"),x.exit().remove(),x.each(function(_){c.bind(this)(_),h.bind(this)(_)}),x.sort(m)}}}});var QB=ae((q5e,KB)=>{"use strict";var $B=Wt(),vce=kd();KB.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,u=t._id.charAt(0),s,f,c=0;c<l.length;c++)if(s=l[c],f="images["+c+"].",s[u+"ref"]===t._id){var h=s[u],d=s["size"+u],m=null,p=null;if(i){m=vce(h,t.range);var y=d/Math.pow(10,m)/2;p=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else m=Math.pow(10,h),p=m*(Math.pow(10,d/2)-Math.pow(10,-d/2));$B(m)?$B(p)||(p=null):(m=null,p=null),n(f+u,m),n(f+"size"+u,p)}}}});var rI=ae((P5e,eI)=>{"use strict";eI.exports={moduleType:"component",name:"images",layoutAttributes:k9(),supplyLayoutDefaults:XB(),includeBasePlot:wh()("images"),draw:JB(),convertCoords:QB()}});var i3=ae((R5e,tI)=>{"use strict";tI.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var D9=ae((z5e,nI)=>{"use strict";var hce=vi(),dce=Ll(),pce=_n().extendFlat,mce=Ho().overrideAll,gce=up(),aI=Ta().templatedArray,yce=aI("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}});nI.exports=mce(aI("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:yce,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:pce(gce({editType:"arraydraw"}),{}),font:hce({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:dce.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var uI=ae((N5e,lI)=>{"use strict";var o3=mr(),iI=Bl(),oI=D9(),bce=i3(),_ce=bce.name,xce=oI.buttons;lI.exports=function(r,t){var a={name:_ce,handleItemDefaults:wce};iI(r,t,a)};function wce(e,r,t){function a(o,l){return o3.coerce(e,r,oI,o,l)}var n=iI(e,r,{name:"buttons",handleItemDefaults:Ace}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),o3.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),o3.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Ace(e,r){function t(n,i){return o3.coerce(e,r,xce,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 cI=ae((B5e,fI)=>{"use strict";fI.exports=Ua;var Wl=St(),sI=Lt(),M2=va(),l3=mr();function Ua(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})}Ua.barWidth=2;Ua.barLength=20;Ua.barRadius=2;Ua.barPad=1;Ua.barColor="#808BA4";Ua.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,u=this.position.w,s=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",m=c==="right",p=c==="up",y=u,b=f,C,x,_,A;!h&&!d&&!m&&!p&&(this.position.direction="down",h=!0);var T=h||p;T?(C=l,x=C+y,h?(_=s,A=Math.min(_+b,o),b=A-_):(A=s+b,_=Math.max(A-b,0),b=A-_)):(_=s,A=_+b,d?(x=l+y,C=Math.max(x-y,0),y=x-C):(C=l,x=Math.min(C+y,i),y=x-C)),this._box={l:C,t:_,w:y,h:b};var M=u>y,E=Ua.barLength+2*Ua.barPad,P=Ua.barWidth+2*Ua.barPad,z=l,B=s+f;B+P>o&&(B=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(sI.fill,Ua.barColor),M?(this.hbar=X.attr({rx:Ua.barRadius,ry:Ua.barRadius,x:z,y:B,width:E,height:P}),this._hbarXMin=z+E/2,this._hbarTranslateMax=y-E):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=f>b,V=Ua.barWidth+2*Ua.barPad,I=Ua.barLength+2*Ua.barPad,Q=l+u,le=s;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(sI.fill,Ua.barColor),H?(this.vbar=re.attr({rx:Ua.barRadius,ry:Ua.barRadius,x:Q,y:le,width:V,height:I}),this._vbarYMin=le+I/2,this._vbarTranslateMax=b-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var te=this.id,oe=C-.5,ce=H?x+V+.5:x+.5,Me=_-.5,Se=M?A+P+.5:A+.5,Ie=n._topdefs.selectAll("#"+te).data(M||H?[0]:[]);if(Ie.exit().remove(),Ie.enter().append("clipPath").attr("id",te).append("rect"),M||H?(this._clipRect=Ie.select("rect").attr({x:Math.floor(oe),y:Math.floor(Me),width:Math.ceil(ce)-Math.floor(oe),height:Math.ceil(Se)-Math.floor(Me)}),this.container.call(M2.setClipUrl,te,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(M2.setClipUrl,null),delete this._clipRect),M||H){var Ue=Wl.behavior.drag().on("dragstart",function(){Wl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ue);var ke=Wl.behavior.drag().on("dragstart",function(){Wl.event.sourceEvent.preventDefault(),Wl.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)};Ua.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(M2.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)};Ua.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Wl.event.dx),this.vbar&&(t-=Wl.event.dy),this.setTranslate(r,t)};Ua.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Wl.event.deltaY),this.vbar&&(t+=Wl.event.deltaY),this.setTranslate(r,t)};Ua.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=l3.constrain(Wl.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=l3.constrain(Wl.event.y,u,s),c=(f-u)/(s-u),h=this.position.h-this._box.h;t=c*h}this.setTranslate(r,t)};Ua.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=l3.constrain(r||0,0,a),t=l3.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(M2.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(M2.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(M2.setTranslate,r,t+o*this._vbarTranslateMax)}}});var xI=ae((I5e,_I)=>{"use strict";var T2=St(),Gh=An(),Yh=Lt(),k2=va(),To=mr(),u3=ai(),Mce=Ta().arrayEditor,hI=ti().LINE_SPACING,pt=i3(),Tce=cI();_I.exports=function(r){var t=r._fullLayout,a=To.filterVisible(t[pt.name]);function n(h){Gh.autoMargin(r,yI(h))}var i=t._menulayer.selectAll("g."+pt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(pt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){T2.select(this).selectAll("g."+pt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+pt.headerGroupClassName).data(a,kce);o.enter().append("g").classed(pt.headerGroupClassName,!0);for(var l=To.ensureSingle(i,"g",pt.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),u=0;u<a.length;u++){var s=a[u];Lce(r,s)}var f="updatemenus"+t._uid,c=new Tce(r,l,f);o.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(F9)),o.exit().each(function(h){l.call(F9),n(h)}).remove(),o.each(function(h){var d=T2.select(this),m=h.type==="dropdown"?l:null;Gh.manageCommandObserver(r,h,h.buttons,function(p){S9(r,h,h.buttons[p.index],d,m,c,p.index,!0)}),h.type==="dropdown"?(pI(r,d,l,c,h),dI(l,h)&&Vh(r,d,l,c,h)):Vh(r,d,null,null,h)})}};function kce(e){return e._index}function Cce(e){return+e.attr(pt.menuIndexAttrName)==-1}function dI(e,r){return+e.attr(pt.menuIndexAttrName)===r._index}function S9(e,r,t,a,n,i,o,l){r.active=o,Mce(e.layout,pt.name,r).applyUpdate("active",o),r.type==="buttons"?Vh(e,a,null,null,r):r.type==="dropdown"&&(n.attr(pt.menuIndexAttrName,"-1"),pI(e,a,n,i,r),l||Vh(e,a,n,i,r))}function pI(e,r,t,a,n){var i=To.ensureSingle(r,"g",pt.headerClassName,function(h){h.style("pointer-events","all")}),o=n._dims,l=n.active,u=n.buttons[l]||pt.blankHeaderOpts,s={y:n.pad.t,yPad:0,x:n.pad.l,xPad:0,index:0},f={width:o.headerWidth,height:o.headerHeight};i.call(E9,n,u,e).call(bI,n,s,f);var c=To.ensureSingle(r,"text",pt.headerArrowClassName,function(h){h.attr("text-anchor","end").call(k2.font,n.font).text(pt.arrowSymbol[n.direction])});c.attr({x:o.headerWidth-pt.arrowOffsetX+n.pad.l,y:o.headerHeight/2+pt.textOffsetY+n.pad.t}),i.on("click",function(){t.call(F9,String(dI(t,n)?-1:n._index)),Vh(e,r,t,a,n)}),i.on("mouseover",function(){i.call(mI)}),i.on("mouseout",function(){i.call(gI,n)}),k2.setTranslate(r,o.lx,o.ly)}function Vh(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!Cce(t)||n.type==="buttons"?n.buttons:[],o=n.type==="dropdown"?pt.dropdownButtonClassName:pt.buttonClassName,l=t.selectAll("g."+o).data(To.filterVisible(i)),u=l.enter().append("g").classed(o,!0),s=l.exit();n.type==="dropdown"?(u.attr("opacity","0").transition().attr("opacity","1"),s.transition().attr("opacity","0").remove()):s.remove();var f=0,c=0,h=n._dims,d=["up","down"].indexOf(n.direction)!==-1;n.type==="dropdown"&&(d?c=h.headerHeight+pt.gapButtonHeader:f=h.headerWidth+pt.gapButtonHeader),n.type==="dropdown"&&n.direction==="up"&&(c=-pt.gapButtonHeader+pt.gapButton-h.openHeight),n.type==="dropdown"&&n.direction==="left"&&(f=-pt.gapButtonHeader+pt.gapButton-h.openWidth);var m={x:h.lx+f+n.pad.l,y:h.ly+c+n.pad.t,yPad:pt.gapButton,xPad:pt.gapButton,index:0},p={l:m.x+n.borderwidth,t:m.y+n.borderwidth};l.each(function(y,b){var C=T2.select(this);C.call(E9,n,y,e).call(bI,n,m),C.on("click",function(){T2.event.defaultPrevented||(y.execute&&(y.args2&&n.active===b?(S9(e,n,y,r,t,a,-1),Gh.executeAPICommand(e,y.method,y.args2)):(S9(e,n,y,r,t,a,b),Gh.executeAPICommand(e,y.method,y.args))),e.emit("plotly_buttonclicked",{menu:n,button:y,active:n.active}))}),C.on("mouseover",function(){C.call(mI)}),C.on("mouseout",function(){C.call(gI,n),l.call(vI,n)})}),l.call(vI,n),d?(p.w=Math.max(h.openWidth,h.headerWidth),p.h=m.y-p.t):(p.w=m.x-p.l,p.h=Math.max(h.openHeight,h.headerHeight)),p.direction=n.direction,a&&(l.size()?Dce(e,r,t,a,n,p):Sce(a))}function Dce(e,r,t,a,n,i){var o=n.direction,l=o==="up"||o==="down",u=n._dims,s=n.active,f,c,h;if(l)for(c=0,h=0;h<s;h++)c+=u.heights[h]+pt.gapButton;else for(f=0,h=0;h<s;h++)f+=u.widths[h]+pt.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 Sce(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 E9(e,r,t,a){e.call(Fce,r).call(Ece,r,t,a)}function Fce(e,r){var t=To.ensureSingle(e,"rect",pt.itemRectClassName,function(a){a.attr({rx:pt.rx,ry:pt.ry,"shape-rendering":"crispEdges"})});t.call(Yh.stroke,r.bordercolor).call(Yh.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function Ece(e,r,t,a){var n=To.ensureSingle(e,"text",pt.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),i=t.label,o=a._fullLayout._meta;o&&(i=To.templateString(i,o)),n.call(k2.font,r.font).text(i).call(u3.convertToTspans,a)}function vI(e,r){var t=r.active;e.each(function(a,n){var i=T2.select(this);n===t&&r.showactive&&i.select("rect."+pt.itemRectClassName).call(Yh.fill,pt.activeColor)})}function mI(e){e.select("rect."+pt.itemRectClassName).call(Yh.fill,pt.hoverColor)}function gI(e,r){e.select("rect."+pt.itemRectClassName).call(Yh.fill,r.bgcolor)}function Lce(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=k2.tester.selectAll("g."+pt.dropdownButtonClassName).data(To.filterVisible(r.buttons));a.enter().append("g").classed(pt.dropdownButtonClassName,!0);var n=["up","down"].indexOf(r.direction)!==-1;a.each(function(f,c){var h=T2.select(this);h.call(E9,r,f,e);var d=h.select("."+pt.itemTextClassName),m=d.node()&&k2.bBox(d.node()).width,p=Math.max(m+pt.textPadX,pt.minWidth),y=r.font.size*hI,b=u3.lineCount(d),C=Math.max(y*b,pt.minHeight)+pt.textOffsetY;C=Math.ceil(C),p=Math.ceil(p),t.widths[c]=p,t.heights[c]=C,t.height1=Math.max(t.height1,C),t.width1=Math.max(t.width1,p),n?(t.totalWidth=Math.max(t.totalWidth,p),t.openWidth=t.totalWidth,t.totalHeight+=C+pt.gapButton,t.openHeight+=C+pt.gapButton):(t.totalWidth+=p+pt.gapButton,t.openWidth+=p+pt.gapButton,t.totalHeight=Math.max(t.totalHeight,C),t.openHeight=t.totalHeight)}),n?t.totalHeight-=pt.gapButton:t.totalWidth-=pt.gapButton,t.headerWidth=t.width1+pt.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(n?(t.width1+=pt.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=pt.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 u="left";To.isRightAnchor(r)&&(t.lx-=i,u="right"),To.isCenterAnchor(r)&&(t.lx-=i/2,u="center");var s="top";To.isBottomAnchor(r)&&(t.ly-=o,s="bottom"),To.isMiddleAnchor(r)&&(t.ly-=o/2,s="middle"),t.totalWidth=Math.ceil(t.totalWidth),t.totalHeight=Math.ceil(t.totalHeight),t.lx=Math.round(t.lx),t.ly=Math.round(t.ly),Gh.autoMargin(e,yI(r),{x:r.x,y:r.y,l:i*({right:1,center:.5}[u]||0),r:i*({left:1,center:.5}[u]||0),b:o*({top:1,middle:.5}[s]||0),t:o*({bottom:1,middle:.5}[s]||0)})}function yI(e){return pt.autoMarginIdRoot+e._index}function bI(e,r,t,a){a=a||{};var n=e.select("."+pt.itemRectClassName),i=e.select("."+pt.itemTextClassName),o=r.borderwidth,l=t.index,u=r._dims;k2.setTranslate(e,o+t.x,o+t.y);var s=["up","down"].indexOf(r.direction)!==-1,f=a.height||(s?u.heights[l]:u.height1);n.attr({x:0,y:0,width:a.width||(s?u.width1:u.widths[l]),height:f});var c=r.font.size*hI,h=u3.lineCount(i),d=(h-1)*c/2;u3.positionText(i,pt.textOffsetX,f/2-d+pt.textOffsetY),s?t.y+=u.heights[l]+t.yPad:t.x+=u.widths[l]+t.xPad,t.index++}function F9(e,r){e.attr(pt.menuIndexAttrName,r||"-1").selectAll("g."+pt.dropdownButtonClassName).remove()}});var AI=ae((H5e,wI)=>{"use strict";var qce=i3();wI.exports={moduleType:"component",name:qce.name,layoutAttributes:D9(),supplyLayoutDefaults:uI(),draw:xI()}});var Xh=ae((O5e,MI)=>{"use strict";MI.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var L9=ae((U5e,CI)=>{"use strict";var TI=vi(),Pce=up(),Rce=_n().extendDeepAll,zce=Ho().overrideAll,Nce=wv(),kI=Ta().templatedArray,Tc=Xh(),Bce=kI("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}});CI.exports=zce(kI("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Bce,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:Rce(Pce({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:Nce.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:TI({})},font:TI({}),activebgcolor:{valType:"color",dflt:Tc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Tc.railBgColor},bordercolor:{valType:"color",dflt:Tc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Tc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Tc.tickLength},tickcolor:{valType:"color",dflt:Tc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Tc.minorTickLength}}),"arraydraw","from-root")});var EI=ae((G5e,FI)=>{"use strict";var C2=mr(),DI=Bl(),SI=L9(),Ice=Xh(),Hce=Ice.name,Oce=SI.steps;FI.exports=function(r,t){DI(r,t,{name:Hce,handleItemDefaults:Uce})};function Uce(e,r,t){function a(c,h){return C2.coerce(e,r,SI,c,h)}for(var n=DI(e,r,{name:"steps",handleItemDefaults:Gce}),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 u=r._visibleSteps=C2.filterVisible(n),s=a("active");(n[s]||{}).visible||(r.active=u[0]._index),a("x"),a("y"),C2.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"),C2.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),C2.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 Gce(e,r){function t(i,o){return C2.coerce(e,r,Oce,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 OI=ae((Y5e,HI)=>{"use strict";var jl=St(),s3=An(),U0=Lt(),Zl=va(),ko=mr(),Yce=ko.strTranslate,Wh=ai(),Vce=Ta().arrayEditor,Ct=Xh(),R9=ti(),PI=R9.LINE_SPACING,q9=R9.FROM_TL,P9=R9.FROM_BR;HI.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Xce(a,r),i=a._infolayer.selectAll("g."+Ct.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Ct.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),s3.autoMargin(r,RI(f))}if(i.exit().each(function(){jl.select(this).selectAll("g."+Ct.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Ct.groupClassName).data(n,Wce);l.enter().append("g").classed(Ct.groupClassName,!0),l.exit().each(o).remove();for(var u=0;u<n.length;u++){var s=n[u];jce(r,s)}l.each(function(f){var c=jl.select(this);Qce(f),s3.manageCommandObserver(r,f,f._visibleSteps,function(h){var d=c.data()[0];d.active!==h.index&&(d._dragging||NI(r,c,d,h.index,!1,!0))}),Zce(r,jl.select(this),f)})}};function RI(e){return Ct.autoMarginIdRoot+e._index}function Xce(e,r){for(var t=e[Ct.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function Wce(e){return e._index}function jce(e,r){var t=Zl.tester.selectAll("g."+Ct.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Ct.labelGroupClass,!0);var a=0,n=0;t.each(function(m){var p=jl.select(this),y=zI(p,{step:m},r),b=y.node();if(b){var C=Zl.bBox(b);n=Math.max(n,C.height),a=Math.max(a,C.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(Ct.railWidth,Ct.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*Ct.stepInset,u=l/(r._stepCount-1),s=a+Ct.labelPadding;if(i.labelStride=Math.max(1,Math.ceil(s/u)),i.labelHeight=n,i.currentValueMaxWidth=0,i.currentValueHeight=0,i.currentValueTotalHeight=0,i.currentValueMaxLines=1,r.currentvalue.visible){var f=Zl.tester.append("g");t.each(function(m){var p=f3(f,r,m.label),y=p.node()&&Zl.bBox(p.node())||{width:0,height:0},b=Wh.lineCount(p);i.currentValueMaxWidth=Math.max(i.currentValueMaxWidth,Math.ceil(y.width)),i.currentValueHeight=Math.max(i.currentValueHeight,Math.ceil(y.height)),i.currentValueMaxLines=Math.max(i.currentValueMaxLines,b)}),i.currentValueTotalHeight=i.currentValueHeight+r.currentvalue.offset,f.remove()}i.height=i.currentValueTotalHeight+Ct.tickOffset+r.ticklen+Ct.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";ko.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),ko.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var h="top";ko.isBottomAnchor(r)&&(i.ly-=i.height,h="bottom"),ko.isMiddleAnchor(r)&&(i.ly-=i.height/2,h="middle"),i.outerLength=Math.ceil(i.outerLength),i.height=Math.ceil(i.height),i.lx=Math.round(i.lx),i.ly=Math.round(i.ly);var d={y:r.y,b:i.height*P9[h],t:i.height*q9[h]};r.lenmode==="fraction"?(d.l=0,d.xl=r.x-r.len*q9[c],d.r=0,d.xr=r.x+r.len*P9[c]):(d.x=r.x,d.l=i.outerLength*q9[c],d.r=i.outerLength*P9[c]),s3.autoMargin(e,RI(r),d)}function Zce(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(f3,t).call(r1e,t).call($ce,t).call(Kce,t).call(e1e,e,t).call(Jce,e,t);var a=t._dims;Zl.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(II,t,!1),r.call(f3,t)}function f3(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-Ct.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=Ct.currentValueInset,i="left"}var o=ko.ensureSingle(e,"text",Ct.labelClass,function(h){h.attr({"text-anchor":i,"data-notex":1})}),l=r.currentvalue.prefix?r.currentvalue.prefix:"";if(typeof t=="string")l+=t;else{var u=r.steps[r.active].label,s=r._gd._fullLayout._meta;s&&(u=ko.templateString(u,s)),l+=u}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),o.call(Zl.font,r.currentvalue.font).text(l).call(Wh.convertToTspans,r._gd);var f=Wh.lineCount(o),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*PI;return Wh.positionText(o,n,c),o}}function Jce(e,r,t){var a=ko.ensureSingle(e,"rect",Ct.gripRectClass,function(n){n.call(BI,r,e,t).style("pointer-events","all")});a.attr({width:Ct.gripWidth,height:Ct.gripHeight,rx:Ct.gripRadius,ry:Ct.gripRadius}).call(U0.stroke,t.bordercolor).call(U0.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function zI(e,r,t){var a=ko.ensureSingle(e,"text",Ct.labelClass,function(o){o.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=ko.templateString(n,i)),a.call(Zl.font,t.font).text(n).call(Wh.convertToTspans,t._gd),a}function $ce(e,r){var t=ko.ensureSingle(e,"g",Ct.labelsClass),a=r._dims,n=t.selectAll("g."+Ct.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(Ct.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var o=jl.select(this);o.call(zI,i,r),Zl.setTranslate(o,z9(r,i.fraction),Ct.tickOffset+r.ticklen+r.font.size*PI+Ct.labelOffset+a.currentValueTotalHeight)})}function LI(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),o=t._visibleSteps[i]._index;o!==t.active&&NI(e,r,t,o,!0,n)}function NI(e,r,t,a,n,i){var o=t.active;t.active=a,Vce(e.layout,Ct.name,t).applyUpdate("active",a);var l=t.steps[t.active];r.call(II,t,i),r.call(f3,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 u=r._nextMethod.step;u.method&&(u.execute&&s3.executeAPICommand(e,u.method,u.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function BI(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=jl.select(r);function i(){return t.data()[0]}function o(){var l=i();r.emit("plotly_sliderstart",{slider:l});var u=t.select("."+Ct.gripRectClass);jl.event.stopPropagation(),jl.event.preventDefault(),u.call(U0.fill,l.activebgcolor);var s=qI(l,jl.mouse(a)[0]);LI(r,t,l,s,!0),l._dragging=!0;function f(){var h=i(),d=qI(h,jl.mouse(a)[0]);LI(r,t,h,d,!1)}n.on("mousemove",f),n.on("touchmove",f);function c(){var h=i();h._dragging=!1,u.call(U0.fill,h.bgcolor),n.on("mouseup",null),n.on("mousemove",null),n.on("touchend",null),n.on("touchmove",null),r.emit("plotly_sliderend",{slider:h,step:h.steps[h.active]})}n.on("mouseup",c),n.on("touchend",c)}e.on("mousedown",o),e.on("touchstart",o)}function Kce(e,r){var t=e.selectAll("rect."+Ct.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(Ct.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=jl.select(this);l.attr({height:o?r.ticklen:r.minorticklen}).call(U0.fill,r.tickcolor),Zl.setTranslate(l,z9(r,i/(r._stepCount-1))-.5*r.tickwidth,(o?Ct.tickOffset:Ct.minorTickOffset)+a.currentValueTotalHeight)})}function Qce(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 II(e,r,t){for(var a=e.select("rect."+Ct.gripRectClass),n=0,i=0;i<r._stepCount;i++)if(r._visibleSteps[i]._index===r.active){n=i;break}var o=z9(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",Yce(o-Ct.gripWidth*.5,r._dims.currentValueTotalHeight))}}function z9(e,r){var t=e._dims;return t.inputAreaStart+Ct.stepInset+(t.inputAreaLength-2*Ct.stepInset)*Math.min(1,Math.max(0,r))}function qI(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Ct.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Ct.stepInset-2*t.inputAreaStart)))}function e1e(e,r,t){var a=t._dims,n=ko.ensureSingle(e,"rect",Ct.railTouchRectClass,function(i){i.call(BI,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Ct.tickOffset+t.ticklen+a.labelHeight)}).call(U0.fill,t.bgcolor).attr("opacity",0),Zl.setTranslate(n,0,a.currentValueTotalHeight)}function r1e(e,r){var t=r._dims,a=t.inputAreaLength-Ct.railInset*2,n=ko.ensureSingle(e,"rect",Ct.railRectClass);n.attr({width:a,height:Ct.railWidth,rx:Ct.railRadius,ry:Ct.railRadius,"shape-rendering":"crispEdges"}).call(U0.stroke,r.bordercolor).call(U0.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Zl.setTranslate(n,Ct.railInset,(t.inputAreaWidth-Ct.railWidth)*.5+t.currentValueTotalHeight)}});var GI=ae((V5e,UI)=>{"use strict";var t1e=Xh();UI.exports={moduleType:"component",name:t1e.name,layoutAttributes:L9(),supplyLayoutDefaults:EI(),draw:OI()}});var c3=ae((X5e,VI)=>{"use strict";var YI=Ll();VI.exports={bgcolor:{valType:"color",dflt:YI.background,editType:"plot"},bordercolor:{valType:"color",dflt:YI.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 N9=ae((W5e,XI)=>{"use strict";XI.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 v3=ae((j5e,WI)=>{"use strict";WI.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var JI=ae(d3=>{"use strict";var a1e=wn(),n1e=ai(),jI=v3(),i1e=ti().LINE_SPACING,h3=jI.name;function ZI(e){var r=e&&e[h3];return r&&r.visible}d3.isVisible=ZI;d3.makeData=function(e){for(var r=a1e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(ZI(i)){a.push(i);var o=i[h3];o._id=h3+i._id,o._height=(e.height-t.b-t.t)*o.thickness,o._offsetShift=Math.floor(o.borderwidth/2)}}e._rangeSliderData=a};d3.autoMarginOpts=function(e,r){var t=e._fullLayout,a=r[h3],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(n1e.BR_TAG_ALL)||[]).length;o+=l*r.title.font.size*i1e}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,o),pad:jI.extraPad+a._offsetShift*2}}});var eH=ae((J5e,QI)=>{"use strict";var p3=mr(),$I=Ta(),KI=wn(),o1e=c3(),l1e=N9();QI.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;p3.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=$I.newContainer(i,"rangeslider");function u(A,T){return p3.coerce(o,l,o1e,A,T)}var s,f;function c(A,T){return p3.coerce(s,f,l1e,A,T)}var h=u("visible");if(h){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!i.isValidRange(o.range)),u("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===KI.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),p=p3.simpleMap(m,KI.id2name),y=0;y<p.length;y++){var b=p[y];s=o[b]||{},f=$I.newContainer(l,b,"yaxis");var C=t[b],x;s.range&&C.isValidRange(s.range)&&(x="fixed");var _=c("rangemode",x);_!=="match"&&c("range",C.range.slice())}l._input=o}}});var tH=ae(($5e,rH)=>{"use strict";var u1e=wn().list,s1e=D0().getAutoRange,f1e=v3();rH.exports=function(r){for(var t=u1e(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[f1e.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=s1e(r,n))}}});var oH=ae((K5e,iH)=>{"use strict";var m3=St(),c1e=bt(),v1e=An(),en=mr(),g3=en.strTranslate,nH=va(),G0=Lt(),h1e=Iv(),d1e=f9(),B9=wn(),p1e=Vo(),m1e=F0(),Pt=v3();iH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a<t.length;a++){var n=t[a][Pt.name];n._clipId=n._id+"-"+r._uid}function i(l){return l._name}var o=r._infolayer.selectAll("g."+Pt.containerClassName).data(t,i);o.exit().each(function(l){var u=l[Pt.name];r._topdefs.select("#"+u._clipId).remove()}).remove(),t.length!==0&&(o.enter().append("g").classed(Pt.containerClassName,!0).attr("pointer-events","all"),o.each(function(l){var u=m3.select(this),s=l[Pt.name],f=r[B9.id2name(l.anchor)],c=s[B9.id2name(l.anchor)];if(s.range){var h=en.simpleMap(s.range,l.r2l),d=en.simpleMap(l.range,l.r2l),m;d[0]<d[1]?m=[Math.min(h[0],d[0]),Math.max(h[1],d[1])]:m=[Math.max(h[0],d[0]),Math.min(h[1],d[1])],s.range=s._input.range=en.simpleMap(m,l.l2r)}l.cleanRange("rangeslider.range");var p=r._size,y=l.domain;s._width=p.w*(y[1]-y[0]);var b=Math.round(p.l+p.w*y[0]),C=Math.round(p.t+p.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+s._offsetShift+Pt.extraPad);u.attr("transform",g3(b,C)),s._rl=en.simpleMap(s.range,l.r2l);var x=s._rl[0],_=s._rl[1],A=_-x;if(s.p2d=function(I){return I/s._width*A+x},s.d2p=function(I){return(I-x)/A*s._width},l.rangebreaks){var T=l.locateBreaks(x,_);if(T.length){var M,E,P=0;for(M=0;M<T.length;M++)E=T[M],P+=E.max-E.min;var z=s._width/(_-x-P),B=[-z*x];for(M=0;M<T.length;M++)E=T[M],B.push(B[B.length-1]-z*(E.max-E.min));for(s.d2p=function(I){for(var Q=B[0],le=0;le<T.length;le++){var re=T[le];if(I>=re.max)Q=B[le+1];else if(I<re.min)break}return Q+z*I},M=0;M<T.length;M++)E=T[M],E.pmin=s.d2p(E.min),E.pmax=s.d2p(E.max);s.p2d=function(I){for(var Q=B[0],le=0;le<T.length;le++){var re=T[le];if(I>=re.pmax)Q=B[le+1];else if(I<re.pmin)break}return(I-Q)/z}}}if(c.rangemode!=="match"){var X=f.r2l(c.range[0]),H=f.r2l(c.range[1]),V=H-X;s.d2pOppAxis=function(I){return(I-X)/V*s._height}}u.call(_1e,e,l,s).call(x1e,e,l,s).call(w1e,e,l,s).call(M1e,e,l,s,c).call(T1e,e,l,s).call(k1e,e,l,s),g1e(u,e,l,s),b1e(u,e,l,s,f,c),l.side==="bottom"&&h1e.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:C+s._height+s._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function aH(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function g1e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Pt.slideBoxClassName).node(),i=e.select("rect."+Pt.grabAreaMinClassName).node(),o=e.select("rect."+Pt.grabAreaMaxClassName).node();function l(){var u=m3.event,s=u.target,f=aH(u),c=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=p1e.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(b){var C=aH(b),x=+C-f,_,A,T;switch(s){case n:if(T="ew-resize",h+x>t._length||d+x<0)return;_=h+x,A=d+x;break;case i:if(T="col-resize",h+x>t._length)return;_=h+x,A=d;break;case o:if(T="col-resize",d+x<0)return;_=h,A=d+x;break;default:T="ew-resize",_=c,A=c+x;break}if(A<_){var M=A;A=_,_=M}a._pixelMin=_,a._pixelMax=A,m1e(m3.select(m),T),y1e(e,r,t,a)}function y(){m.removeEventListener("mousemove",p),m.removeEventListener("mouseup",y),this.removeEventListener("touchmove",p),this.removeEventListener("touchend",y),en.removeElement(m)}}e.on("mousedown",l),e.on("touchstart",l)}function y1e(e,r,t,a){function n(l){return t.l2r(en.constrain(l,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),o=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){c1e.call("_guiRelayout",r,t._name+".range",[i,o])})}function b1e(e,r,t,a,n,i){var o=Pt.handleWidth/2;function l(b){return en.constrain(b,0,a._width)}function u(b){return en.constrain(b,0,a._height)}function s(b){return en.constrain(b,-o,a._width+o)}var f=l(a.d2p(t._rl[0])),c=l(a.d2p(t._rl[1]));if(e.select("rect."+Pt.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+Pt.maskMinClassName).attr("width",f),e.select("rect."+Pt.maskMaxClassName).attr("x",c).attr("width",a._width-c),i.rangemode!=="match"){var h=a._height-u(a.d2pOppAxis(n._rl[1])),d=a._height-u(a.d2pOppAxis(n._rl[0]));e.select("rect."+Pt.maskMinOppAxisClassName).attr("x",f).attr("height",h).attr("width",c-f),e.select("rect."+Pt.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",a._height-d).attr("width",c-f),e.select("rect."+Pt.slideBoxClassName).attr("y",h).attr("height",d-h)}var m=.5,p=Math.round(s(f-o))-m,y=Math.round(s(c-o))+m;e.select("g."+Pt.grabberMinClassName).attr("transform",g3(p,m)),e.select("g."+Pt.grabberMaxClassName).attr("transform",g3(y,m))}function _1e(e,r,t,a){var n=en.ensureSingle(e,"rect",Pt.bgClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=a.borderwidth%2===0?a.borderwidth:a.borderwidth-1,o=-a._offsetShift,l=nH.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:g3(o,o),"stroke-width":l}).call(G0.stroke,a.bordercolor).call(G0.fill,a.bgcolor)}function x1e(e,r,t,a){var n=r._fullLayout,i=en.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 w1e(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+Pt.rangePlotClassName).data(t._subplotsWith,en.identity);i.enter().append("g").attr("class",function(l){return Pt.rangePlotClassName+" "+l}).call(nH.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,u){var s=m3.select(this),f=u===0,c=B9.getFromId(r,l,"y"),h=c._name,d=a[h],m={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&&(m.layout.xaxis.rangebreaks=t.rangebreaks),m.layout[h]={type:c.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(m.layout[h].rangebreaks=c.rangebreaks),v1e.supplyDefaults(m);var p=m._fullLayout.xaxis,y=m._fullLayout[h];p.clearCalc(),p.setScale(),y.clearCalc(),y.setScale();var b={id:l,plotgroup:s,xaxis:p,yaxis:y,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),d1e.rangePlot(r,b,A1e(n,l))})}function A1e(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 M1e(e,r,t,a,n){var i=en.ensureSingle(e,"rect",Pt.maskMinClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})});i.attr("height",a._height).call(G0.fill,Pt.maskColor);var o=en.ensureSingle(e,"rect",Pt.maskMaxClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});if(o.attr("height",a._height).call(G0.fill,Pt.maskColor),n.rangemode!=="match"){var l=en.ensureSingle(e,"rect",Pt.maskMinOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",a._width).call(G0.fill,Pt.maskOppAxisColor);var u=en.ensureSingle(e,"rect",Pt.maskMaxOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});u.attr("width",a._width).style("border-top",Pt.maskOppBorder).call(G0.fill,Pt.maskOppAxisColor)}}function T1e(e,r,t,a){if(!r._context.staticPlot){var n=en.ensureSingle(e,"rect",Pt.slideBoxClassName,function(i){i.attr({y:0,cursor:Pt.slideBoxCursor,"shape-rendering":"crispEdges"})});n.attr({height:a._height,fill:Pt.slideBoxFill})}}function k1e(e,r,t,a){var n=en.ensureSingle(e,"g",Pt.grabberMinClassName),i=en.ensureSingle(e,"g",Pt.grabberMaxClassName),o={x:0,width:Pt.handleWidth,rx:Pt.handleRadius,fill:G0.background,stroke:G0.defaultLine,"stroke-width":Pt.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(a._height/4),height:Math.round(a._height/2)},u=en.ensureSingle(n,"rect",Pt.handleMinClassName,function(d){d.attr(o)});u.attr(l);var s=en.ensureSingle(i,"rect",Pt.handleMaxClassName,function(d){d.attr(o)});s.attr(l);var f={width:Pt.grabAreaWidth,x:0,y:0,fill:Pt.grabAreaFill,cursor:r._context.staticPlot?void 0:Pt.grabAreaCursor},c=en.ensureSingle(n,"rect",Pt.grabAreaMinClassName,function(d){d.attr(f)});c.attr("height",a._height);var h=en.ensureSingle(i,"rect",Pt.grabAreaMaxClassName,function(d){d.attr(f)});h.attr("height",a._height)}});var uH=ae((Q5e,lH)=>{"use strict";var C1e=mr(),D1e=c3(),S1e=N9(),I9=JI();lH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:C1e.extendFlat({},D1e,{yaxis:S1e})}}},layoutAttributes:c3(),handleDefaults:eH(),calcAutorange:tH(),draw:oH(),isVisible:I9.isVisible,makeData:I9.makeData,autoMarginOpts:I9.autoMarginOpts}});var y3=ae((e6e,fH)=>{"use strict";var F1e=vi(),sH=Ll(),E1e=Ta().templatedArray,L1e=E1e("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"});fH.exports={visible:{valType:"boolean",editType:"plot"},buttons:L1e,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:F1e({editType:"plot"}),bgcolor:{valType:"color",dflt:sH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:sH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var H9=ae((r6e,cH)=>{"use strict";cH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var dH=ae((t6e,hH)=>{"use strict";var b3=mr(),q1e=Lt(),P1e=Ta(),R1e=Bl(),vH=y3(),O9=H9();hH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=P1e.newContainer(t,"rangeselector");function u(d,m){return b3.coerce(o,l,vH,d,m)}var s=R1e(o,l,{name:"buttons",handleItemDefaults:z1e,calendar:i}),f=u("visible",s.length>0);if(f){var c=N1e(t,a,n);u("x",c[0]),u("y",c[1]),b3.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),b3.coerceFont(u,"font",a.font);var h=u("bgcolor");u("activecolor",q1e.contrast(h,O9.lightAmount,O9.darkAmount)),u("bordercolor"),u("borderwidth")}};function z1e(e,r,t,a){var n=a.calendar;function i(u,s){return b3.coerce(e,r,vH.buttons,u,s)}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 N1e(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+O9.yPad]}});var mH=ae((a6e,pH)=>{"use strict";var B1e=cy(),I1e=mr().titleCase;pH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=H1e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function H1e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=B1e["utc"+I1e(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var u=i.offset(a,-o);l=e.l2r(+i.ceil(u));break}var s=t[1];return[l,s]}});var MH=ae((n6e,AH)=>{"use strict";var x3=St(),O1e=bt(),U1e=An(),gH=Lt(),wH=va(),Is=mr(),yH=Is.strTranslate,_3=ai(),G1e=wn(),Y9=ti(),bH=Y9.LINE_SPACING,_H=Y9.FROM_TL,xH=Y9.FROM_BR,G9=H9(),Y1e=mH();AH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(V1e(r),X1e);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=x3.select(this),o=n,l=o.rangeselector,u=i.selectAll("g.button").data(Is.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=x3.select(this),c=Y1e(o,s);s._isActive=W1e(o,s,c),f.call(U9,l,s),f.call(Z1e,l,s,r),f.on("click",function(){r._dragged||O1e.call("_guiRelayout",r,c)}),f.on("mouseover",function(){s._isHovered=!0,f.call(U9,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(U9,l,s)})}),$1e(r,u,l,o._name,i)})};function V1e(e){for(var r=G1e.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 X1e(e){return e._id}function W1e(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 U9(e,r,t){var a=Is.ensureSingle(e,"rect","selector-rect",function(n){n.attr("shape-rendering","crispEdges")});a.attr({rx:G9.rx,ry:G9.ry}),a.call(gH.stroke,r.bordercolor).call(gH.fill,j1e(r,t)).style("stroke-width",r.borderwidth+"px")}function j1e(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function Z1e(e,r,t,a){function n(o){_3.convertToTspans(o,a)}var i=Is.ensureSingle(e,"text","selector-text",function(o){o.attr("text-anchor","middle")});i.call(wH.font,r.font).text(J1e(t,a._fullLayout._meta)).call(n)}function J1e(e,r){return e.label?r?Is.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function $1e(e,r,t,a,n){var i=0,o=0,l=t.borderwidth;r.each(function(){var d=x3.select(this),m=d.select(".selector-text"),p=t.font.size*bH,y=Math.max(p*_3.lineCount(m),16)+3;o=Math.max(o,y)}),r.each(function(){var d=x3.select(this),m=d.select(".selector-rect"),p=d.select(".selector-text"),y=p.node()&&wH.bBox(p.node()).width,b=t.font.size*bH,C=_3.lineCount(p),x=Math.max(y+10,G9.minButtonWidth);d.attr("transform",yH(l+i,l)),m.attr({x:0,y:0,width:x,height:o}),_3.positionText(p,x/2,o/2-(C-1)*b/2+3),i+=x+5});var u=e._fullLayout._size,s=u.l+u.w*t.x,f=u.t+u.h*(1-t.y),c="left";Is.isRightAnchor(t)&&(s-=i,c="right"),Is.isCenterAnchor(t)&&(s-=i/2,c="center");var h="top";Is.isBottomAnchor(t)&&(f-=o,h="bottom"),Is.isMiddleAnchor(t)&&(f-=o/2,h="middle"),i=Math.ceil(i),o=Math.ceil(o),s=Math.round(s),f=Math.round(f),U1e.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*_H[c],r:i*xH[c],b:o*xH[h],t:o*_H[h]}),n.attr("transform",yH(s,f))}});var kH=ae((i6e,TH)=>{"use strict";TH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:y3()}}},layoutAttributes:y3(),handleDefaults:dH(),draw:MH()}});var w3=ae(V9=>{"use strict";var CH=_n().extendFlat;V9.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:CH({},t,{}),y:CH({},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};V9.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 u=t("domain.row");u!==void 0&&(u<o.rows?i=o._domains.y[u]:delete e.domain.row)}var s=t("domain.x",n),f=t("domain.y",i);s[0]<s[1]||(e.domain.x=n.slice()),f[0]<f[1]||(e.domain.y=i.slice())}});var LH=ae((l6e,EH)=>{"use strict";var K1e=mr(),Q1e=(M1(),ei(A1)).counter,e2e=w3().attributes,DH=En().idRegex,r2e=Ta(),X9={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:[Q1e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[DH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[DH.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:e2e({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 A3(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 t2e(e,r){var t=e.grid||{},a=A3(r,t,"x"),n=A3(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),u=o&&a!==t.xaxes&&l&&n!==t.yaxes,s,f;i?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=n.length),o&&(f=a.length));var c=r2e.newContainer(r,"grid");function h(T,M){return K1e.coerce(t,c,X9,T,M)}var d=h("rows",s),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!o&&!l){var p=h("pattern")==="independent";p&&(i=!0)}c._hasSubplotGrid=i;var y=h("roworder"),b=y==="top to bottom",C=i?.2:.1,x=i?.3:.1,_,A;u&&r._splomGridDflt&&(_=r._splomGridDflt.xside,A=r._splomGridDflt.yside),c._domains={x:SH("x",h,C,_,m),y:SH("y",h,x,A,d,b)}}function SH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var u=new Array(n),s=l[0],f=(l[1]-s)/(n-o),c=f*(1-o),h=0;h<n;h++){var d=s+f*h;u[i?n-1-h:h]=[d,d+c]}return u}function a2e(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,u=t.pattern==="independent",s,f,c,h,d,m,p,y=t._axisMap={};if(i){var b=a.subplots||[];m=t.subplots=new Array(o);var C=1;for(s=0;s<o;s++){var x=m[s]=new Array(l),_=b[s]||[];for(f=0;f<l;f++)if(u?(d=C===1?"xy":"x"+C+"y"+C,C++):d=_[f],x[f]="",n.cartesian.indexOf(d)!==-1){if(p=d.indexOf("y"),c=d.slice(0,p),h=d.slice(p),y[c]!==void 0&&y[c]!==f||y[h]!==void 0&&y[h]!==s)continue;x[f]=d,y[c]=f,y[h]=s}}}else{var A=A3(r,a,"x"),T=A3(r,a,"y");t.xaxes=FH(A,n.xaxis,l,y,"x"),t.yaxes=FH(T,n.yaxis,o,y,"y")}var M=t._anchors={},E=t.roworder==="top to bottom";for(var P in y){var z=P.charAt(0),B=t[z+"side"],X,H,V;if(B.length<8)M[P]="free";else if(z==="x"){if(B.charAt(0)==="t"===E?(X=0,H=1,V=o):(X=o-1,H=-1,V=-1),i){var I=y[P];for(s=X;s!==V;s+=H)if(d=m[s][I],!!d&&(p=d.indexOf("y"),d.slice(0,p)===P)){M[P]=d.slice(p);break}}else for(s=X;s!==V;s+=H)if(h=t.yaxes[s],n.cartesian.indexOf(P+h)!==-1){M[P]=h;break}}else if(B.charAt(0)==="l"?(X=0,H=1,V=l):(X=l-1,H=-1,V=-1),i){var Q=y[P];for(s=X;s!==V;s+=H)if(d=m[Q][s],!!d&&(p=d.indexOf("y"),d.slice(p)===P)){M[P]=d.slice(0,p);break}}else for(s=X;s!==V;s+=H)if(c=t.xaxes[s],n.cartesian.indexOf(c+P)!==-1){M[P]=c;break}}}}function FH(e,r,t,a,n){var i=new Array(t),o;function l(u,s){r.indexOf(s)!==-1&&a[s]===void 0?(i[u]=s,a[s]=u):i[u]=""}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}EH.exports={moduleType:"component",name:"grid",schema:{layout:{grid:X9}},layoutAttributes:X9,sizeDefaults:t2e,contentDefaults:a2e}});var W9=ae((u6e,qH)=>{"use strict";qH.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 zH=ae((s6e,RH)=>{"use strict";var PH=Wt(),n2e=bt(),i2e=mr(),o2e=Ta(),l2e=W9();RH.exports=function(e,r,t,a){var n="error_"+a.axis,i=o2e.newContainer(r,n),o=e[n]||{};function l(m,p){return i2e.coerce(o,i,l2e,m,p)}var u=o.array!==void 0||o.value!==void 0||o.type==="sqrt",s=l("visible",u);if(s!==!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 h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(h,!(o.color||PH(o.thickness)||PH(o.width)))}(!a.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",n2e.traceIs(r,"gl3d")?0:4))}}});var j9=ae((f6e,BH)=>{"use strict";BH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(s,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(s,f){var c=+n[f],h=+i[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=NH(t,r.value),l=NH(t,r.valueminus);return a||r.valueminus===void 0?function(s){var f=o(s);return[f,f]}:function(s){return[l(s),o(s)]}}};function NH(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 OH=ae((c6e,HH)=>{"use strict";var Z9=Wt(),u2e=bt(),J9=Ba(),s2e=mr(),f2e=j9();HH.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&&u2e.traceIs(i,"errorBarsOK")){var o=J9.getFromId(r,i.xaxis),l=J9.getFromId(r,i.yaxis);IH(n,i,o,"x"),IH(n,i,l,"y")}}};function IH(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,o=[];if(i){for(var l=f2e(n),u=0;u<e.length;u++){var s=e[u],f=s.i;if(f===void 0)f=u;else if(f===null)continue;var c=s[a];if(Z9(t.c2l(c))){var h=l(c,f);if(Z9(h[0])&&Z9(h[1])){var d=s[a+"s"]=c-h[0],m=s[a+"h"]=c+h[1];o.push(d,m)}}}var p=t._id,y=r._extremes[p],b=J9.findExtremes(t,o,s2e.extendFlat({tozero:y.opts.tozero},{padded:!0}));y.min=y.min.concat(b.min),y.max=y.max.concat(b.max)}}});var YH=ae((v6e,GH)=>{"use strict";var UH=St(),Y0=Wt(),c2e=va(),v2e=pi();GH.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,u=n&&n.duration>0,s=r._context.staticPlot;t.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},m;c.ids&&(m=function(C){return C.id});var p=v2e.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=UH.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);u&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),c2e.setClipUrl(y,a.layerClipId,r),y.each(function(C){var x=UH.select(this),_=h2e(C,o,l);if(!(p&&!C.vis)){var A,T=x.select("path.yerror");if(d.visible&&Y0(_.x)&&Y0(_.yh)&&Y0(_.ys)){var M=d.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",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(T=T.transition().duration(n.duration).ease(n.easing)),T.attr("d",A)}else T.remove();var E=x.select("path.xerror");if(h.visible&&Y0(_.y)&&Y0(_.xh)&&Y0(_.xs)){var P=(h.copy_ystyle?d:h).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",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(E=E.transition().duration(n.duration).ease(n.easing)),E.attr("d",A)}else E.remove()}})}})};function h2e(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),Y0(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),Y0(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var WH=ae((h6e,XH)=>{"use strict";var d2e=St(),VH=Lt();XH.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=d2e.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(VH.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(VH.stroke,i.color)})}});var JH=ae((d6e,ZH)=>{"use strict";var jh=mr(),jH=Ho().overrideAll,Zh=W9(),kc={error_x:jh.extendFlat({},Zh),error_y:jh.extendFlat({},Zh)};delete kc.error_x.copy_zstyle;delete kc.error_y.copy_zstyle;delete kc.error_y.copy_ystyle;var Jh={error_x:jh.extendFlat({},Zh),error_y:jh.extendFlat({},Zh),error_z:jh.extendFlat({},Zh)};delete Jh.error_x.copy_ystyle;delete Jh.error_y.copy_ystyle;delete Jh.error_z.copy_ystyle;delete Jh.error_z.copy_zstyle;ZH.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:kc,bar:kc,histogram:kc,scatter3d:jH(Jh,"calc","nested"),scattergl:jH(kc,"calc","nested")}},supplyDefaults:zH(),calc:OH(),makeComputeError:j9(),plot:YH(),style:WH(),hoverInfo:p2e};function p2e(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 KH=ae((p6e,$H)=>{"use strict";$H.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var oO=ae((m6e,iO)=>{"use strict";var V0=St(),T3=An(),QH=bt(),Hs=Ba(),M3=Vo(),il=mr(),$l=il.strTranslate,nO=_n().extendFlat,$9=F0(),Jl=va(),D2=Lt(),m2e=Iv(),g2e=ai(),y2e=Tu().flipScale,b2e=o9(),_2e=l9(),x2e=Nl(),Q9=ti(),eO=Q9.LINE_SPACING,rO=Q9.FROM_TL,tO=Q9.FROM_BR,Ia=KH().cn;function w2e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Ia.colorbar).data(A2e(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Ia.colorbar,!0),t.each(function(a){var n=V0.select(this);il.ensureSingle(n,"rect",Ia.cbbg),il.ensureSingle(n,"g",Ia.cbfills),il.ensureSingle(n,"g",Ia.cblines),il.ensureSingle(n,"g",Ia.cbaxis,function(o){o.classed(Ia.crisp,!0)}),il.ensureSingle(n,"g",Ia.cbtitleunshift,function(o){o.append("g").classed(Ia.cbtitle,!0)}),il.ensureSingle(n,"rect",Ia.cboutline);var i=M2e(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&T2e(n,a,e)}),t.exit().each(function(a){T3.autoMargin(e,a._id)}).remove(),t.order()}function A2e(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function u(x){return nO(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?y2e(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 h=o._module.colorbar;if(o.visible===!0&&h)for(var d=Array.isArray(h),m=d?h:[h],p=0;p<m.length;p++){l=m[p];var y=l.container;i=y?o[y]:o,i&&i.showscale&&(n=u(i.colorbar),n._id="cb"+o.uid+(d&&y?"-"+y:""),n._traceIndex=o.index,n._propPrefix=(y?y+".":"")+"colorbar.",n._meta=o._meta,s(),a.push(n))}}}for(var b in r._colorAxes)if(i=r[b],i.showscale){var C=r._colorAxes[b];n=u(i.colorbar),n._id="cb"+b,n._propPrefix=b+".colorbar.",n._meta=r._meta,l={min:"cmin",max:"cmax"},C[0]!=="heatmap"&&(o=C[1],l.calc=o._module.colorbar.calc),s(),a.push(n)}return a}var K9=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],aO=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function M2e(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,u=r.outlinewidth,s=r.borderwidth,f=r.bgcolor,c=r.xanchor,h=r.yanchor,d=r.xpad,m=r.ypad,p=r.x,y=a?r.y:1-r.y,b=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||V0.extent((typeof A=="function"?A:T.color).domain()),z=typeof T.color=="function"?T.color:function(){return T.color},B=typeof A=="function"?A:function(){return A},X=r._levels,H=k2e(t,r,P),V=H.fill,I=H.line,Q=Math.round(o*(l==="fraction"?a?_.w:_.h:1)),le=Q/(a?_.w:_.h),re=Math.round(n*(i==="fraction"?a?_.h:_.w:1)),te=re/(a?_.h:_.w),oe=C?_.w:t._fullLayout.width,ce=b?_.h:t._fullLayout.height,Me=Math.round(a?p*oe+d:y*ce+m),Se={center:.5,right:1}[c]||0,Ie={top:1,middle:.5}[h]||0,Ue=a?p-Se*le:y-Ie*le,ke=a?y-Ie*te:p-Se*te,We=Math.round(a?ce*(1-ke):oe*ke);r._lenFrac=te,r._thickFrac=le,r._uFrac=Ue,r._vFrac=ke;var j=r._axis=C2e(t,r,P);j.position=le+(a?p+d/_.w:y+m/_.h);var ee=["top","bottom"].indexOf(E)!==-1;if(a&&ee&&(j.title.side=E,j.titlex=p+d/_.w,j.titley=ke+(M.side==="top"?te-m/_.h:m/_.h)),!a&&!ee&&(j.title.side=E,j.titley=y+m/_.h,j.titlex=ke+d/_.w),T.color&&r.tickmode==="auto"){j.tickmode="linear",j.tick0=X.start;var me=X.size,K=il.constrain(re/50,4,15)+1,$=(P[1]-P[0])/((r.nticks||K)*me);if($>1){var se=Math.pow(10,Math.floor(Math.log($)/Math.LN10));me*=se*il.roundUp($/se,[2,5,10]),(Math.abs(X.start)/X.size+1e-6)%1<2e-6&&(j.tick0=0)}j.dtick=me}var _e=a?m/_.h:d/_.w;j.domain=aO(K9([ke,ke+te],_e),_e),j.setScale(),e.attr("transform",$l(Math.round(_.l),Math.round(_.t)));var Ne=e.select("."+Ia.cbtitleunshift).attr("transform",$l(-Math.round(_.l),-Math.round(_.t))),$e=j.ticklabelposition,ar=j.title.font.size,tr=e.select("."+Ia.cbaxis),fr,Re=0,ur=0;function hr(Te,Oe){var Ar={propContainer:j,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+Ia.cbtitle)},Nr=Te.charAt(0)==="h"?Te.slice(1):"h"+Te;e.selectAll("."+Nr+",."+Nr+"-math-group").remove(),m2e.draw(t,Te,nO(Ar,Oe||{}))}function dr(){if(a&&ee||!a&&!ee){var Te,Oe;E==="top"&&(Te=d+_.l+oe*p,Oe=m+_.t+ce*(1-ke-te)+3+ar*.75),E==="bottom"&&(Te=d+_.l+oe*p,Oe=m+_.t+ce*(1-ke)-3-ar*.25),E==="right"&&(Oe=m+_.t+ce*y+3+ar*.75,Te=d+_.l+oe*ke),hr(j._id+"title",{attributes:{x:Te,y:Oe,"text-anchor":a?"start":"middle"}})}}function Ze(){if(a&&!ee||!a&&ee){var Te=j.position||0,Oe=j._offset+j._length/2,Ar,Nr;if(E==="right")Nr=Oe,Ar=_.l+oe*Te+10+ar*(j.showticklabels?1:.5);else if(Ar=Oe,E==="bottom"&&(Nr=_.t+ce*Te+10+($e.indexOf("inside")===-1?j.tickfont.size:0)+(j.ticks!=="inside"&&r.ticklen||0)),E==="top"){var Qe=M.text.split("<br>").length;Nr=_.t+ce*Te+10-Q-eO*ar*Qe}hr((a?"h":"v")+j._id+"title",{avoid:{selection:V0.select(t).selectAll("g."+j._id+"tick"),side:E,offsetTop:a?0:_.t,offsetLeft:a?_.l:0,maxShift:a?x.width:x.height},attributes:{x:Ar,y:Nr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function cr(){if(!a&&!ee||a&&ee){var Te=e.select("."+Ia.cbtitle),Oe=Te.select("text"),Ar=[-u/2,u/2],Nr=Te.select(".h"+j._id+"title-math-group").node(),Qe=15.6;Oe.node()&&(Qe=parseInt(Oe.node().style.fontSize,10)*eO);var Be;if(Nr?(Be=Jl.bBox(Nr),ur=Be.width,Re=Be.height,Re>Qe&&(Ar[1]-=(Re-Qe)/2)):Oe.node()&&!Oe.classed(Ia.jsPlaceholder)&&(Be=Jl.bBox(Oe.node()),ur=Be.width,Re=Be.height),a){if(Re){if(Re+=5,E==="top")j.domain=aO(j.domain,Re/_.h),Ar[1]*=-1;else{j.domain=K9(j.domain,Re/_.h);var Xe=g2e.lineCount(Oe);Ar[1]+=(1-Xe)*Qe}Te.attr("transform",$l(Ar[0],Ar[1])),j.setScale()}}else ur&&(E==="right"&&(j.domain=K9(j.domain,(ur+ar/2)/_.w)),Te.attr("transform",$l(Ar[0],Ar[1])),j.setScale())}e.selectAll("."+Ia.cbfills+",."+Ia.cblines).attr("transform",a?$l(0,Math.round(_.h*(1-j.domain[1]))):$l(Math.round(_.w*j.domain[0]),0)),tr.attr("transform",a?$l(0,Math.round(-_.t)):$l(Math.round(-_.l),0));var yr=e.select("."+Ia.cbfills).selectAll("rect."+Ia.cbfill).attr("style","").data(V);yr.enter().append("rect").classed(Ia.cbfill,!0).attr("style",""),yr.exit().remove();var kr=P.map(j.c2p).map(Math.round).sort(function(Hr,rr){return Hr-rr});yr.each(function(Hr,rr){var Cr=[rr===0?P[0]:(V[rr]+V[rr-1])/2,rr===V.length-1?P[1]:(V[rr]+V[rr+1])/2].map(j.c2p).map(Math.round);a&&(Cr[1]=il.constrain(Cr[1]+(Cr[1]>Cr[0])?1:-1,kr[0],kr[1]));var vr=V0.select(this).attr(a?"x":"y",Me).attr(a?"y":"x",V0.min(Cr)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(V0.max(Cr)-V0.min(Cr),2));if(r._fillgradient)Jl.gradient(vr,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Xr=B(Hr).replace("e-","");vr.attr("fill",D2.hexString(Xr))}});var pr=e.select("."+Ia.cblines).selectAll("path."+Ia.cbline).data(T.color&&T.width?I:[]);pr.enter().append("path").classed(Ia.cbline,!0),pr.exit().remove(),pr.each(function(Hr){var rr=Me,Cr=Math.round(j.c2p(Hr))+T.width/2%1;V0.select(this).attr("d","M"+(a?rr+","+Cr:Cr+","+rr)+(a?"h":"v")+Q).call(Jl.lineGroupStyle,T.width,z(Hr),T.dash)}),tr.selectAll("g."+j._id+"tick,path").remove();var xr=Me+Q+(u||0)/2-(r.ticks==="outside"?1:0),Pr=Hs.calcTicks(j),Fr=Hs.getTickSigns(j)[2];return Hs.drawTicks(t,j,{vals:j.ticks==="inside"?Hs.clipEnds(j,Pr):Pr,layer:tr,path:Hs.makeTickPath(j,xr,Fr),transFn:Hs.makeTransTickFn(j)}),Hs.drawLabels(t,j,{vals:Pr,layer:tr,transFn:Hs.makeTransTickLabelFn(j),labelFns:Hs.makeLabelFns(j,xr)})}function Er(){var Te,Oe=Q+u/2;$e.indexOf("inside")===-1&&(Te=Jl.bBox(tr.node()),Oe+=a?Te.width:Te.height),fr=Ne.select("text");var Ar=0,Nr=a&&E==="top",Qe=!a&&E==="right",Be=0;if(fr.node()&&!fr.classed(Ia.jsPlaceholder)){var Xe,yr=Ne.select(".h"+j._id+"title-math-group").node();yr&&(a&&ee||!a&&!ee)?(Te=Jl.bBox(yr),Ar=Te.width,Xe=Te.height):(Te=Jl.bBox(Ne.node()),Ar=Te.right-_.l-(a?Me:We),Xe=Te.bottom-_.t-(a?We:Me),!a&&E==="top"&&(Oe+=Te.height,Be=Te.height)),Qe&&(fr.attr("transform",$l(Ar/2+ar/2,0)),Ar*=2),Oe=Math.max(Oe,a?Ar:Xe)}var kr=(a?d:m)*2+Oe+s+u/2,pr=0;!a&&M.text&&h==="bottom"&&y<=0&&(pr=kr/2,kr+=pr,Be+=pr),x._hColorbarMoveTitle=pr,x._hColorbarMoveCBTitle=Be;var xr=s+u,Pr=(a?Me:We)-xr/2-(a?d:0),Fr=(a?We:Me)-(a?re:m+Be-pr);e.select("."+Ia.cbbg).attr("x",Pr).attr("y",Fr).attr(a?"width":"height",Math.max(kr-pr,2)).attr(a?"height":"width",Math.max(re+xr,2)).call(D2.fill,f).call(D2.stroke,r.bordercolor).style("stroke-width",s);var Hr=Qe?Math.max(Ar-10,0):0;e.selectAll("."+Ia.cboutline).attr("x",(a?Me:We+d)+Hr).attr("y",(a?We+m-re:Me)+(Nr?Re:0)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(re-(a?2*m+Re:2*d+Hr),2)).call(D2.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var rr=a?Se*kr:0,Cr=a?0:(1-Ie)*kr-Be;if(rr=C?_.l-rr:-rr,Cr=b?_.t-Cr:-Cr,e.attr("transform",$l(rr,Cr)),!a&&(s||D2.opacity(f)&&!D2.equals(x.paper_bgcolor,f))){var vr=tr.selectAll("text"),Xr=vr[0].length,Kr=e.select("."+Ia.cbbg).node(),Lr=Jl.bBox(Kr),Wr=Jl.getTranslate(e),Ae=2;vr.each(function(da,ea){var mn=0,rn=Xr-1;if(ea===mn||ea===rn){var Un=Jl.bBox(this),Jr=Jl.getTranslate(this),ua;if(ea===rn){var Rt=Un.right+Jr.x,pa=Lr.right+Wr.x+We-s-Ae+p;ua=pa-Rt,ua>0&&(ua=0)}else if(ea===mn){var ya=Un.left+Jr.x,ba=Lr.left+Wr.x+We+s+Ae;ua=ba-ya,ua<0&&(ua=0)}ua&&(Xr<3?this.setAttribute("transform","translate("+ua+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Pe={},sr=rO[c],gr=tO[c],Bt=rO[h],Gt=tO[h],na=kr-Q;a?(i==="pixels"?(Pe.y=y,Pe.t=re*Bt,Pe.b=re*Gt):(Pe.t=Pe.b=0,Pe.yt=y+n*Bt,Pe.yb=y-n*Gt),l==="pixels"?(Pe.x=p,Pe.l=kr*sr,Pe.r=kr*gr):(Pe.l=na*sr,Pe.r=na*gr,Pe.xl=p-o*sr,Pe.xr=p+o*gr)):(i==="pixels"?(Pe.x=p,Pe.l=re*sr,Pe.r=re*gr):(Pe.l=Pe.r=0,Pe.xl=p+n*sr,Pe.xr=p-n*gr),l==="pixels"?(Pe.y=1-y,Pe.t=kr*Bt,Pe.b=kr*Gt):(Pe.t=na*Bt,Pe.b=na*Gt,Pe.yt=y-o*Bt,Pe.yb=y+o*Gt));var Ma=r.y<.5?"b":"t",It=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var jt={r:x.width-Pr-rr,l:Pr+Pe.r,b:x.height-Fr-Cr,t:Fr+Pe.b};C&&b?T3.autoMargin(t,r._id,Pe):C?t._fullLayout._reservedMargin[r._id][Ma]=jt[Ma]:b||a?t._fullLayout._reservedMargin[r._id][It]=jt[It]:t._fullLayout._reservedMargin[r._id][Ma]=jt[Ma]}return il.syncOrAsync([T3.previousPromises,dr,cr,Ze,T3.previousPromises,Er],t)}function T2e(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,u;M3.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),$9(e)},moveFn:function(s,f){e.attr("transform",o+$l(s,f)),l=M3.align((a?r._uFrac:r._vFrac)+s/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=M3.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=M3.getCursor(l,u,r.xanchor,r.yanchor);$9(e,c)},doneFn:function(){if($9(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?QH.call("_guiRestyle",t,s,r._traceIndex):QH.call("_guiRelayout",t,s)}}})}function k2e(e,r,t){var a=r._levels,n=[],i=[],o,l,u=a.end+a.size/100,s=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*s,!(s>0?o>=u:o<=u));l++)o>f&&o<c&&n.push(o);if(r._fillgradient)i=[0];else if(typeof r._fillcolor=="function"){var h=r._filllevels;if(h)for(u=h.end+h.size/100,s=h.size,l=0;l<1e5&&(o=h.start+l*s,!(s>0?o>=u:o<=u));l++)o>t[0]&&o<t[1]&&i.push(o);else i=n.map(function(d){return d-a.size/2}),i.push(i[i.length-1]+a.size)}else r._fillcolor&&typeof r._fillcolor=="string"&&(i=[0]);return a.size<0&&(n.reverse(),i.reverse()),{line:n,fill:i}}function C2e(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},u={letter:o,font:a.font,noAutotickangles:o==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:a.calendar};function s(f,c){return il.coerce(i,l,x2e,f,c)}return b2e(i,l,s,u,a),_2e(i,l,s,u),l}iO.exports={draw:w2e}});var uO=ae((g6e,lO)=>{"use strict";lO.exports={moduleType:"component",name:"colorbar",attributes:Ip(),supplyDefaults:Q5(),draw:oO().draw,hasColorbar:U5()}});var fO=ae((y6e,sO)=>{"use strict";sO.exports={moduleType:"component",name:"legend",layoutAttributes:j6(),supplyLayoutDefaults:J6(),draw:cb(),style:lb()}});var vO=ae((b6e,cO)=>{"use strict";cO.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 dO=ae((_6e,hO)=>{"use strict";hO.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var r8=ae((x6e,yO)=>{"use strict";var D2e=bt(),gO=mr(),e8=gO.extendFlat,pO=gO.extendDeep;function mO(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 S2e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}yO.exports=function(r,t){var a,n=r.data,i=r.layout,o=pO([],n),l=pO({},i,mO(t.tileClass)),u=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var s=Object.keys(l);for(a=0;a<s.length;a++)S2e(s[a])&&(l[s[a]].title={text:""});for(a=0;a<o.length;a++){var f=o[a];f.showscale=!1,f.marker&&(f.marker.showscale=!1),D2e.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(a=0;a<t.annotations.length;a++)l.annotations.push(t.annotations[a]);var c=Object.keys(l).filter(function(y){return y.match(/^scene\d*$/)});if(c.length){var h={};for(t.tileClass==="thumbnail"&&(h={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),a=0;a<c.length;a++){var d=l[c[a]];d.xaxis||(d.xaxis={}),d.yaxis||(d.yaxis={}),d.zaxis||(d.zaxis={}),e8(d.xaxis,h),e8(d.yaxis,h),e8(d.zaxis,h),d._scene=null}}var m=document.createElement("div");t.tileClass&&(m.className=t.tileClass);var p={gd:m,td:m,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"&&(p.config.setBackground=t.setBackground||"opaque"),p.gd.defaultLayout=mO(t.tileClass),p}});var xO=ae((w6e,_O)=>{"use strict";var F2e=Cp().EventEmitter,E2e=bt(),L2e=mr(),bO=pc(),q2e=r8(),P2e=Fg(),R2e=Eg();function z2e(e,r){var t=new F2e,a=q2e(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=bO.getDelay(n._fullLayout);setTimeout(function(){var u=P2e(n),s=document.createElement("canvas");s.id=L2e.randstr(),t=R2e({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=bO.getRedrawFunc(n);return E2e.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}_O.exports=z2e});var MO=ae((A6e,AO)=>{"use strict";var wO=pc(),N2e={getDelay:wO.getDelay,getRedrawFunc:wO.getRedrawFunc,clone:r8(),toSVG:Fg(),svgToImg:Eg(),toImage:xO(),downloadImage:E7()};AO.exports=N2e});var kO=ae(Os=>{"use strict";Os.version=$2().version;p_();nk();var B2e=bt(),$h=Os.register=B2e.register,a8=kR(),TO=Object.keys(a8);for(k3=0;k3<TO.length;k3++)S2=TO[k3],S2.charAt(0)!=="_"&&(Os[S2]=a8[S2]),$h({moduleType:"apiMethod",name:S2,fn:a8[S2]});var S2,k3;$h(BN());$h([sB(),AB(),Rs(),UB(),rI(),AI(),GI(),uH(),kH(),LH(),JH(),Yp(),uO(),fO(),Hl(),Nb()]);$h([vO(),dO()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&($h(window.PlotlyLocales),delete window.PlotlyLocales);Os.Icons=Em();var C3=Hl(),t8=An();Os.Plots={resize:t8.resize,graphJson:t8.graphJson,sendDataToCloud:t8.sendDataToCloud};Os.Fx={hover:C3.hover,unhover:C3.unhover,loneHover:C3.loneHover,loneUnhover:C3.loneUnhover};Os.Snapshot=MO();Os.PlotSchema=N1()});var DO=ae((T6e,CO)=>{"use strict";CO.exports=kO()});var Kh=ae((k6e,qO)=>{"use strict";var{hovertemplateAttrs:I2e,texttemplateAttrs:H2e,templatefallbackAttrs:SO}=Bf(),O2e=o7(),Uu=dc(),U2e=Io(),FO=O1(),G2e=Au().dash,Cc=_n().extendFlat,Y2e=Ho().overrideAll,ol=Uu.marker,EO=Uu.line,LO=ol.line;qO.exports=Y2e({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:Cc({},Uu.mode,{dflt:"markers"}),text:Cc({},Uu.text,{}),texttemplate:H2e({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:SO({editType:"plot"}),hovertext:Cc({},Uu.hovertext,{}),textfont:Uu.textfont,textposition:Uu.textposition,line:{color:EO.color,width:EO.width,dash:G2e},connectgaps:Uu.connectgaps,marker:Cc({symbol:ol.symbol,opacity:ol.opacity,angle:ol.angle,angleref:Cc({},ol.angleref,{values:["previous","up","north"]}),standoff:ol.standoff,size:ol.size,sizeref:ol.sizeref,sizemin:ol.sizemin,sizemode:ol.sizemode,colorbar:ol.colorbar,line:Cc({width:LO.width,dash:LO.dash},FO("marker.line")),gradient:ol.gradient},FO("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:O2e(),selected:Uu.selected,unselected:Uu.unselected,hoverinfo:Cc({},U2e.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:I2e(),hovertemplatefallback:SO()},"calc","nested")});var RO=ae((C6e,PO)=>{"use strict";var n8=mr(),i8=pi(),V2e=P7(),X2e=R7(),W2e=z7(),j2e=N7(),Z2e=Kh();PO.exports=function(r,t,a,n){function i(d,m){return n8.coerce(r,t,Z2e,d,m)}var o=i("locations"),l;if(o&&o.length){var u=i("geojson"),s;(typeof u=="string"&&u!==""||n8.isPlainObject(u))&&(s="geojson-id");var f=i("locationmode",s);f==="geojson-id"&&i("featureidkey"),l=o.length}else{var c=i("lon")||[],h=i("lat")||[];l=Math.min(c.length,h.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("mode"),i8.hasMarkers(t)&&V2e(r,t,a,n,i,{gradient:!0}),i8.hasLines(t)&&(X2e(r,t,a,n,i),i("connectgaps")),i8.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),W2e(r,t,n,i)),i("fill"),t.fill!=="none"&&j2e(r,t,a,i),n8.coerceSelectionMarkerOpacity(t,i)}});var BO=ae((D6e,NO)=>{"use strict";var zO=Ba();NO.exports=function(r,t,a){var n={},i=a[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return n.lonLabel=zO.tickText(o,o.c2l(l[0]),!0).text,n.latLabel=zO.tickText(o,o.c2l(l[1]),!0).text,n}});var GO=ae((S6e,UO)=>{"use strict";var o8=Wt(),IO=Oa().BADNUM,J2e=H7(),$2e=qh(),K2e=Ig(),Q2e=mr().isArrayOrTypedArray,HO=mr()._;function OO(e){return e&&typeof e=="string"}UO.exports=function(r,t){var a=Q2e(t.locations),n=a?t.locations.length:t._length,i=new Array(n),o;t.geojson?o=function(h){return OO(h)||o8(h)}:o=OO;for(var l=0;l<n;l++){var u=i[l]={};if(a){var s=t.locations[l];u.loc=o(s)?s:null}else{var f=t.lon[l],c=t.lat[l];o8(f)&&o8(c)?u.lonlat=[+f,+c]:u.lonlat=[IO,IO]}}return $2e(i,t),J2e(r,t),K2e(i,t),n&&(i[0].t={labels:{lat:HO(r,"lat:")+" ",lon:HO(r,"lon:")+" "}}),i}});var Qh=ae(Jn=>{"use strict";Jn.projNames={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"};Jn.axesNames=["lonaxis","lataxis"];Jn.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Jn.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Jn.fitboundsIncompatible=new Set(["albers usa","craig","peirce quincuncial","satellite"]);Jn.scopeDefaults={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]}};Jn.clipPad=.001;Jn.precision=.1;Jn.landColor="#F0DC82";Jn.waterColor="#3399FF";Jn.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Jn.sphereSVG={type:"Sphere"};Jn.fillLayers={ocean:1,land:1,lakes:1};Jn.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Jn.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Jn.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Jn.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var l8=ae((D3,YO)=>{(function(e,r){typeof D3=="object"&&typeof YO!="undefined"?r(D3):(e=e||self,r(e.topojson=e.topojson||{}))})(D3,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,B){B||(_=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 B(X){switch(X.type){case"GeometryCollection":X.geometries.forEach(B);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,I;++H<V;)I=_(X[H],H),I[0]<T&&(T=I[0]),I[0]>E&&(E=I[0]),I[1]<M&&(M=I[1]),I[1]>P&&(P=I[1])});for(A in x.objects)B(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 I=T[H<0?~H:H],Q=0,le=I.length;Q<le;++Q)V.push(A(I[Q],Q));H<0&&n(V,le)}function E(H){return A(H)}function P(H){for(var V=[],I=0,Q=H.length;I<Q;++I)M(H[I],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 B(H){return H.map(z)}function X(H){var V=H.type,I;switch(V){case"GeometryCollection":return{type:V,geometries:H.geometries.map(X)};case"Point":I=E(H.coordinates);break;case"MultiPoint":I=H.coordinates.map(E);break;case"LineString":I=P(H.arcs);break;case"MultiLineString":I=H.arcs.map(P);break;case"Polygon":I=B(H.arcs);break;case"MultiPolygon":I=H.arcs.map(B);break;default:return null}return{type:V,coordinates:I}}return X(_)}function u(x,_){var A={},T={},M={},E=[],P=-1;_.forEach(function(X,H){var V=x.arcs[X<0?~X:X],I;V.length<3&&!V[1][0]&&!V[1][1]&&(I=_[++P],_[P]=X,_[H]=I)}),_.forEach(function(X){var H=z(X),V=H[0],I=H[1],Q,le;if(Q=M[V])if(delete M[Q.end],Q.push(X),Q.end=I,le=T[I]){delete T[le.start];var re=le===Q?Q:Q.concat(le);T[re.start=Q.start]=M[re.end=le.end]=re}else T[Q.start]=M[Q.end]=Q;else if(Q=T[I])if(delete T[Q.start],Q.unshift(X),Q.start=V,le=M[V]){delete M[le.end];var te=le===Q?Q:le.concat(Q);T[te.start=le.start]=M[te.end=Q.end]=te}else T[Q.start]=M[Q.end]=Q;else Q=[X],T[Q.start=V]=M[Q.end=I]=Q});function z(X){var H=x.arcs[X<0?~X:X],V=H[0],I;return x.transform?(I=[0,0],H.forEach(function(Q){I[0]+=Q[0],I[1]+=Q[1]})):I=H[H.length-1],X<0?[I,V]:[V,I]}function B(X,H){for(var V in X){var I=X[V];delete H[I.start],delete I.start,delete I.end,I.forEach(function(Q){A[Q<0?~Q:Q]=1}),E.push(I)}}return B(M,T),B(T,M),_.forEach(function(X){A[X<0?~X:X]||E.push([X])}),E}function s(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:u(x,T)}}function c(x,_,A){var T=[],M=[],E;function P(V){var I=V<0?~V:V;(M[I]||(M[I]=[])).push({i:V,g:E})}function z(V){V.forEach(P)}function B(V){V.forEach(z)}function X(V){V.forEach(B)}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":B(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 h(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 d(x){return l(x,m.apply(this,arguments))}function m(x,_){var A={},T=[],M=[];_.forEach(E);function E(B){switch(B.type){case"GeometryCollection":B.geometries.forEach(E);break;case"Polygon":P(B.arcs);break;case"MultiPolygon":B.arcs.forEach(P);break}}function P(B){B.forEach(function(X){X.forEach(function(H){(A[H=H<0?~H:H]||(A[H]=[])).push(B)})}),T.push(B)}function z(B){return h(l(x,{type:"Polygon",arcs:[B]}).coordinates[0])}return T.forEach(function(B){if(!B._){var X=[],H=[B];for(B._=1,M.push(X);B=H.pop();)X.push(B),B.forEach(function(V){V.forEach(function(I){A[I<0?~I:I].forEach(function(Q){Q._||(Q._=1,H.push(Q))})})})}}),T.forEach(function(B){delete B._}),{type:"MultiPolygon",arcs:M.map(function(B){var X=[],H;if(B.forEach(function(re){re.forEach(function(te){te.forEach(function(oe){A[oe<0?~oe:oe].length<2&&X.push(oe)})})}),X=u(x,X),(H=X.length)>1)for(var V=1,I=z(X[0]),Q,le;V<H;++V)(Q=z(X[V]))>I&&(le=X[0],X[0]=X[V],X[V]=le,I=Q);return X}).filter(function(B){return B.length>0})}}function p(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 y(x){var _={},A=x.map(function(){return[]});function T(re,te){re.forEach(function(oe){oe<0&&(oe=~oe);var ce=_[oe];ce?ce.push(te):_[oe]=[te]})}function M(re,te){re.forEach(function(oe){T(oe,te)})}function E(re,te){re.type==="GeometryCollection"?re.geometries.forEach(function(oe){E(oe,te)}):re.type in P&&P[re.type](re.arcs,te)}var P={LineString:T,MultiLineString:M,Polygon:M,MultiPolygon:function(re,te){re.forEach(function(oe){M(oe,te)})}};x.forEach(E);for(var z in _)for(var B=_[z],X=B.length,H=0;H<X;++H)for(var V=H+1;V<X;++V){var I=B[H],Q=B[V],le;(le=A[I])[z=p(le,Q)]!==Q&&le.splice(z,0,Q),(le=A[Q])[z=p(le,I)]!==I&&le.splice(z,0,I)}return A}function b(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,B){B||(_=A=0);var X=2,H=z.length,V=new Array(H),I=Math.round((z[0]-E)/T),Q=Math.round((z[1]-P)/M);for(V[0]=I-_,_=I,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");B=x.bbox||a(x);var A=B[0],T=B[1],M=B[2],E=B[3],P;_={scale:[M-A?(M-A)/(P-1):1,E-T?(E-T)/(P-1):1],translate:[A,T]}}else B=x.bbox;var z=b(_),B,X,H=x.objects,V={};function I(re){return z(re)}function Q(re){var te;switch(re.type){case"GeometryCollection":te={type:"GeometryCollection",geometries:re.geometries.map(Q)};break;case"Point":te={type:"Point",coordinates:I(re.coordinates)};break;case"MultiPoint":te={type:"MultiPoint",coordinates:re.coordinates.map(I)};break;default:return re}return re.id!=null&&(te.id=re.id),re.bbox!=null&&(te.bbox=re.bbox),re.properties!=null&&(te.properties=re.properties),te}function le(re){var te=0,oe=1,ce=re.length,Me,Se=new Array(ce);for(Se[0]=z(re[0],0);++te<ce;)((Me=z(re[te],te))[0]||Me[1])&&(Se[oe++]=Me);return oe===1&&(Se[oe++]=[0,0]),Se.length=oe,Se}for(X in H)V[X]=Q(H[X]);return{type:"Topology",bbox:B,transform:_,objects:V,arcs:x.arcs.map(le)}}e.bbox=a,e.feature=i,e.merge=d,e.mergeArcs=m,e.mesh=s,e.meshArcs=f,e.neighbors=y,e.quantize=C,e.transform=t,e.untransform=b,Object.defineProperty(e,"__esModule",{value:!0})})});var S3=ae((E6e,VO)=>{"use strict";var u8=VO.exports={},eve=Qh().locationmodeToLayer,rve=l8().feature;u8.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};u8.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};u8.getTopojsonFeatures=function(e,r){var t=eve[e.locationmode],a=r.objects[t];return rve(r,a).features}});var XO=ae(ed=>{"use strict";var tve=Oa().BADNUM;ed.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]!==tve?n.push(l):!t&&n.length>0&&(a.push(n),n=[])}return n.length>0&&a.push(n),a};ed.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};ed.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}};ed.makeBlank=function(){return{type:"Point",coordinates:[]}}});var $O=ae((q6e,JO)=>{"use strict";var f8=Object.defineProperty,ave=Object.getOwnPropertyDescriptor,nve=Object.getOwnPropertyNames,ive=Object.prototype.hasOwnProperty,ove=(e,r)=>{for(var t in r)f8(e,t,{get:r[t],enumerable:!0})},lve=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of nve(r))!ive.call(e,n)&&n!==t&&f8(e,n,{get:()=>r[n],enumerable:!(a=ave(r,n))||a.enumerable});return e},uve=e=>lve(f8({},"__esModule",{value:!0}),e),WO={};ove(WO,{COUNTRIES:()=>jO,byAlpha2:()=>vve,byAlpha3:()=>cve,byM49:()=>hve,createLookup:()=>ZO,lookup:()=>sve,lookupAlpha3:()=>fve,sanitize:()=>s8});JO.exports=uve(WO);var jO=[{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 s8(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 ZO(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 u of[l.name,...l.aliases]){let s=s8(u),f=n.get(s);if(f!==void 0&&f!==l.iso3)throw new Error(`Duplicate name/alias "${s}": ${f} vs ${l.iso3}`);n.set(s,l.iso3)}function i(l){if(l==null)return;let u=String(l).trim();if(!u)return;if(/^\d+$/.test(u)){let f=a.get(String(parseInt(u,10)).padStart(3,"0"));if(f)return f}if(/^[A-Za-z]{2}$/.test(u)){let f=t.get(u.toUpperCase());if(f)return f}if(/^[A-Za-z]{3}$/.test(u)){let f=r.get(u.toUpperCase());if(f)return f}let s=n.get(s8(u));return s===void 0?void 0:r.get(s)}function o(l){var u;return(u=i(l))==null?void 0:u.iso3}return{lookup:i,lookupAlpha3:o,byAlpha3:r,byAlpha2:t,byM49:a}}var rd=ZO(jO),sve=rd.lookup,fve=rd.lookupAlpha3,cve=rd.byAlpha3,vve=rd.byAlpha2,hve=rd.byM49});var L3=ae(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var ro=63710088e-1,v8={centimeters:ro*100,centimetres:ro*100,degrees:360/(2*Math.PI),feet:ro*3.28084,inches:ro*39.37,kilometers:ro/1e3,kilometres:ro/1e3,meters:ro,metres:ro,miles:ro/1609.344,millimeters:ro*1e3,millimetres:ro*1e3,nauticalmiles:ro/1852,radians:1,yards:ro*1.0936},c8={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function X0(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 dve(e,r,t={}){switch(e){case"Point":return h8(r).geometry;case"LineString":return p8(r).geometry;case"Polygon":return d8(r).geometry;case"MultiPoint":return QO(r).geometry;case"MultiLineString":return KO(r).geometry;case"MultiPolygon":return eU(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(!F3(e[0])||!F3(e[1]))throw new Error("coordinates must contain numbers");return X0({type:"Point",coordinates:e},r,t)}function pve(e,r,t={}){return E3(e.map(a=>h8(a,r)),t)}function d8(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 X0({type:"Polygon",coordinates:e},r,t)}function mve(e,r,t={}){return E3(e.map(a=>d8(a,r)),t)}function p8(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return X0({type:"LineString",coordinates:e},r,t)}function gve(e,r,t={}){return E3(e.map(a=>p8(a,r)),t)}function E3(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function KO(e,r,t={}){return X0({type:"MultiLineString",coordinates:e},r,t)}function QO(e,r,t={}){return X0({type:"MultiPoint",coordinates:e},r,t)}function eU(e,r,t={}){return X0({type:"MultiPolygon",coordinates:e},r,t)}function yve(e,r,t={}){return X0({type:"GeometryCollection",geometries:e},r,t)}function bve(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 rU(e,r="kilometers"){let t=v8[r];if(!t)throw new Error(r+" units is invalid");return e*t}function m8(e,r="kilometers"){let t=v8[r];if(!t)throw new Error(r+" units is invalid");return e/t}function _ve(e,r){return tU(m8(e,r))}function xve(e){let r=e%360;return r<0&&(r+=360),r}function wve(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function tU(e){return e%(2*Math.PI)*180/Math.PI}function Ave(e){return e%360*Math.PI/180}function Mve(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return rU(m8(e,r),t)}function Tve(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let a=c8[r];if(!a)throw new Error("invalid original units");let n=c8[t];if(!n)throw new Error("invalid final units");return e/a*n}function F3(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function kve(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Cve(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(!F3(r))throw new Error("bbox must only contain numbers")})}function Dve(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")}ga.areaFactors=c8;ga.azimuthToBearing=wve;ga.bearingToAzimuth=xve;ga.convertArea=Tve;ga.convertLength=Mve;ga.degreesToRadians=Ave;ga.earthRadius=ro;ga.factors=v8;ga.feature=X0;ga.featureCollection=E3;ga.geometry=dve;ga.geometryCollection=yve;ga.isNumber=F3;ga.isObject=kve;ga.lengthToDegrees=_ve;ga.lengthToRadians=m8;ga.lineString=p8;ga.lineStrings=gve;ga.multiLineString=KO;ga.multiPoint=QO;ga.multiPolygon=eU;ga.point=h8;ga.points=pve;ga.polygon=d8;ga.polygons=mve;ga.radiansToDegrees=tU;ga.radiansToLength=rU;ga.round=bve;ga.validateBBox=Cve;ga.validateId=Dve});var P3=ae(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});var wi=L3();function td(e,r,t){if(e!==null)for(var a,n,i,o,l,u,s,f=0,c=0,h,d=e.type,m=d==="FeatureCollection",p=d==="Feature",y=m?e.features.length:1,b=0;b<y;b++){s=m?e.features[b].geometry:p?e.geometry:e,h=s?s.type==="GeometryCollection":!1,l=h?s.geometries.length:1;for(var C=0;C<l;C++){var x=0,_=0;if(o=h?s.geometries[C]:s,o!==null){u=o.coordinates;var A=o.type;switch(f=t&&(A==="Polygon"||A==="MultiPolygon")?1:0,A){case null:break;case"Point":if(r(u,c,b,x,_)===!1)return!1;c++,x++;break;case"LineString":case"MultiPoint":for(a=0;a<u.length;a++){if(r(u[a],c,b,x,_)===!1)return!1;c++,A==="MultiPoint"&&x++}A==="LineString"&&x++;break;case"Polygon":case"MultiLineString":for(a=0;a<u.length;a++){for(n=0;n<u[a].length-f;n++){if(r(u[a][n],c,b,x,_)===!1)return!1;c++}A==="MultiLineString"&&x++,A==="Polygon"&&_++}A==="Polygon"&&x++;break;case"MultiPolygon":for(a=0;a<u.length;a++){for(_=0,n=0;n<u[a].length;n++){for(i=0;i<u[a][n].length-f;i++){if(r(u[a][n][i],c,b,x,_)===!1)return!1;c++}_++}x++}break;case"GeometryCollection":for(a=0;a<o.geometries.length;a++)if(td(o.geometries[a],r,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Sve(e,r,t,a){var n=t;return td(e,function(i,o,l,u,s){o===0&&t===void 0?n=i:n=r(n,i,o,l,u,s)},a),n}function aU(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 Fve(e,r,t){var a=t;return aU(e,function(n,i){i===0&&t===void 0?a=n:a=r(a,n,i)}),a}function nU(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 Eve(e,r,t){var a=t;return nU(e,function(n,i){i===0&&t===void 0?a=n:a=r(a,n,i)}),a}function Lve(e){var r=[];return td(e,function(t){r.push(t)}),r}function g8(e,r){var t,a,n,i,o,l,u,s,f,c,h=0,d=e.type==="FeatureCollection",m=e.type==="Feature",p=d?e.features.length:1;for(t=0;t<p;t++){for(l=d?e.features[t].geometry:m?e.geometry:e,s=d?e.features[t].properties:m?e.properties:{},f=d?e.features[t].bbox:m?e.bbox:void 0,c=d?e.features[t].id:m?e.id:void 0,u=l?l.type==="GeometryCollection":!1,o=u?l.geometries.length:1,n=0;n<o;n++){if(i=u?l.geometries[n]:l,i===null){if(r(null,h,s,f,c)===!1)return!1;continue}switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(r(i,h,s,f,c)===!1)return!1;break}case"GeometryCollection":{for(a=0;a<i.geometries.length;a++)if(r(i.geometries[a],h,s,f,c)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}h++}}function qve(e,r,t){var a=t;return g8(e,function(n,i,o,l,u){i===0&&t===void 0?a=n:a=r(a,n,i,o,l,u)}),a}function q3(e,r){g8(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(wi.feature.call(void 0,t,n,{bbox:i,id:o}),a,0)===!1?!1:void 0}var u;switch(l){case"MultiPoint":u="Point";break;case"MultiLineString":u="LineString";break;case"MultiPolygon":u="Polygon";break}for(var s=0;s<t.coordinates.length;s++){var f=t.coordinates[s],c={type:u,coordinates:f};if(r(wi.feature.call(void 0,c,n),a,s)===!1)return!1}})}function Pve(e,r,t){var a=t;return q3(e,function(n,i,o){i===0&&o===0&&t===void 0?a=n:a=r(a,n,i,o)}),a}function iU(e,r){q3(e,function(t,a,n){var i=0;if(t.geometry){var o=t.geometry.type;if(!(o==="Point"||o==="MultiPoint")){var l,u=0,s=0,f=0;if(td(t,function(c,h,d,m,p){if(l===void 0||a>u||m>s||p>f){l=c,u=a,s=m,f=p,i=0;return}var y=wi.lineString.call(void 0,[l,c],t.properties);if(r(y,a,n,p,i)===!1)return!1;i++,l=c})===!1)return!1}}})}function Rve(e,r,t){var a=t,n=!1;return iU(e,function(i,o,l,u,s){n===!1&&t===void 0?a=i:a=r(a,i,o,l,u,s),n=!0}),a}function oU(e,r){if(!e)throw new Error("geojson is required");q3(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(wi.lineString.call(void 0,o[l],t.properties),a,n,l)===!1)return!1;break}}})}function zve(e,r,t){var a=t;return oU(e,function(n,i,o,l){i===0&&t===void 0?a=n:a=r(a,n,i,o,l)}),a}function Nve(e,r){if(r=r||{},!wi.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 u=l.coordinates;switch(l.type){case"Point":case"MultiPoint":return null;case"LineString":return i<0&&(i=u.length+i-1),wi.lineString.call(void 0,[u[i],u[i+1]],o,r);case"Polygon":return n<0&&(n=u.length+n),i<0&&(i=u[n].length+i-1),wi.lineString.call(void 0,[u[n][i],u[n][i+1]],o,r);case"MultiLineString":return a<0&&(a=u.length+a),i<0&&(i=u[a].length+i-1),wi.lineString.call(void 0,[u[a][i],u[a][i+1]],o,r);case"MultiPolygon":return a<0&&(a=u.length+a),n<0&&(n=u[a].length+n),i<0&&(i=u[a][n].length-i-1),wi.lineString.call(void 0,[u[a][n][i],u[a][n][i+1]],o,r)}throw new Error("geojson is invalid")}function Bve(e,r){if(r=r||{},!wi.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 u=l.coordinates;switch(l.type){case"Point":return wi.point.call(void 0,u,o,r);case"MultiPoint":return a<0&&(a=u.length+a),wi.point.call(void 0,u[a],o,r);case"LineString":return i<0&&(i=u.length+i),wi.point.call(void 0,u[i],o,r);case"Polygon":return n<0&&(n=u.length+n),i<0&&(i=u[n].length+i),wi.point.call(void 0,u[n][i],o,r);case"MultiLineString":return a<0&&(a=u.length+a),i<0&&(i=u[a].length+i),wi.point.call(void 0,u[a][i],o,r);case"MultiPolygon":return a<0&&(a=u.length+a),n<0&&(n=u[a].length+n),i<0&&(i=u[a][n].length-i),wi.point.call(void 0,u[a][n][i],o,r)}throw new Error("geojson is invalid")}Hn.coordAll=Lve;Hn.coordEach=td;Hn.coordReduce=Sve;Hn.featureEach=nU;Hn.featureReduce=Eve;Hn.findPoint=Bve;Hn.findSegment=Nve;Hn.flattenEach=q3;Hn.flattenReduce=Pve;Hn.geomEach=g8;Hn.geomReduce=qve;Hn.lineEach=oU;Hn.lineReduce=zve;Hn.propEach=aU;Hn.propReduce=Fve;Hn.segmentEach=iU;Hn.segmentReduce=Rve});var cU=ae(R3=>{"use strict";Object.defineProperty(R3,"__esModule",{value:!0});var lU=L3(),Ive=P3();function fU(e){return Ive.geomReduce.call(void 0,e,(r,t)=>r+Hve(t),0)}function Hve(e){let r=0,t;switch(e.type){case"Polygon":return uU(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)r+=uU(e.coordinates[t]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function uU(e){let r=0;if(e&&e.length>0){r+=Math.abs(sU(e[0]));for(let t=1;t<e.length;t++)r-=Math.abs(sU(e[t]))}return r}var Ove=lU.earthRadius*lU.earthRadius/2,y8=Math.PI/180;function sU(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]*y8,u=i[1]*y8,s=o[0]*y8;t+=(s-l)*Math.sin(u),a++}return t*Ove}var Uve=fU;R3.area=fU;R3.default=Uve});var hU=ae(z3=>{"use strict";Object.defineProperty(z3,"__esModule",{value:!0});var Gve=L3(),Yve=P3();function vU(e,r={}){let t=0,a=0,n=0;return Yve.coordEach.call(void 0,e,function(i){t+=i[0],a+=i[1],n++},!0),Gve.point.call(void 0,[t/n,a/n],r.properties)}var Vve=vU;z3.centroid=vU;z3.default=Vve});var pU=ae((N3,dU)=>{(function(e,r){r(typeof N3=="object"&&typeof dU!="undefined"?N3:e.d3=e.d3||{})})(N3,(function(e){"use strict";function r(j,ee){return j<ee?-1:j>ee?1:j>=ee?0:NaN}function t(j){return j.length===1&&(j=a(j)),{left:function(ee,me,K,$){for(K==null&&(K=0),$==null&&($=ee.length);K<$;){var se=K+$>>>1;j(ee[se],me)<0?K=se+1:$=se}return K},right:function(ee,me,K,$){for(K==null&&(K=0),$==null&&($=ee.length);K<$;){var se=K+$>>>1;j(ee[se],me)>0?$=se:K=se+1}return K}}}function a(j){return function(ee,me){return r(j(ee),me)}}var n=t(r),i=n.right,o=n.left;function l(j,ee){ee==null&&(ee=u);for(var me=0,K=j.length-1,$=j[0],se=new Array(K<0?0:K);me<K;)se[me]=ee($,$=j[++me]);return se}function u(j,ee){return[j,ee]}function s(j,ee,me){var K=j.length,$=ee.length,se=new Array(K*$),_e,Ne,$e,ar;for(me==null&&(me=u),_e=$e=0;_e<K;++_e)for(ar=j[_e],Ne=0;Ne<$;++Ne,++$e)se[$e]=me(ar,ee[Ne]);return se}function f(j,ee){return ee<j?-1:ee>j?1:ee>=j?0:NaN}function c(j){return j===null?NaN:+j}function h(j,ee){var me=j.length,K=0,$=-1,se=0,_e,Ne,$e=0;if(ee==null)for(;++$<me;)isNaN(_e=c(j[$]))||(Ne=_e-se,se+=Ne/++K,$e+=Ne*(_e-se));else for(;++$<me;)isNaN(_e=c(ee(j[$],$,j)))||(Ne=_e-se,se+=Ne/++K,$e+=Ne*(_e-se));if(K>1)return $e/(K-1)}function d(j,ee){var me=h(j,ee);return me&&Math.sqrt(me)}function m(j,ee){var me=j.length,K=-1,$,se,_e;if(ee==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(se=_e=$;++K<me;)($=j[K])!=null&&(se>$&&(se=$),_e<$&&(_e=$))}else for(;++K<me;)if(($=ee(j[K],K,j))!=null&&$>=$)for(se=_e=$;++K<me;)($=ee(j[K],K,j))!=null&&(se>$&&(se=$),_e<$&&(_e=$));return[se,_e]}var p=Array.prototype,y=p.slice,b=p.map;function C(j){return function(){return j}}function x(j){return j}function _(j,ee,me){j=+j,ee=+ee,me=($=arguments.length)<2?(ee=j,j=0,1):$<3?1:+me;for(var K=-1,$=Math.max(0,Math.ceil((ee-j)/me))|0,se=new Array($);++K<$;)se[K]=j+K*me;return se}var A=Math.sqrt(50),T=Math.sqrt(10),M=Math.sqrt(2);function E(j,ee,me){var K,$=-1,se,_e,Ne;if(ee=+ee,j=+j,me=+me,j===ee&&me>0)return[j];if((K=ee<j)&&(se=j,j=ee,ee=se),(Ne=P(j,ee,me))===0||!isFinite(Ne))return[];if(Ne>0)for(j=Math.ceil(j/Ne),ee=Math.floor(ee/Ne),_e=new Array(se=Math.ceil(ee-j+1));++$<se;)_e[$]=(j+$)*Ne;else for(j=Math.floor(j*Ne),ee=Math.ceil(ee*Ne),_e=new Array(se=Math.ceil(j-ee+1));++$<se;)_e[$]=(j-$)/Ne;return K&&_e.reverse(),_e}function P(j,ee,me){var K=(ee-j)/Math.max(0,me),$=Math.floor(Math.log(K)/Math.LN10),se=K/Math.pow(10,$);return $>=0?(se>=A?10:se>=T?5:se>=M?2:1)*Math.pow(10,$):-Math.pow(10,-$)/(se>=A?10:se>=T?5:se>=M?2:1)}function z(j,ee,me){var K=Math.abs(ee-j)/Math.max(0,me),$=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),se=K/$;return se>=A?$*=10:se>=T?$*=5:se>=M&&($*=2),ee<j?-$:$}function B(j){return Math.ceil(Math.log(j.length)/Math.LN2)+1}function X(){var j=x,ee=m,me=B;function K($){var se,_e=$.length,Ne,$e=new Array(_e);for(se=0;se<_e;++se)$e[se]=j($[se],se,$);var ar=ee($e),tr=ar[0],fr=ar[1],Re=me($e,tr,fr);Array.isArray(Re)||(Re=z(tr,fr,Re),Re=_(Math.ceil(tr/Re)*Re,fr,Re));for(var ur=Re.length;Re[0]<=tr;)Re.shift(),--ur;for(;Re[ur-1]>fr;)Re.pop(),--ur;var hr=new Array(ur+1),dr;for(se=0;se<=ur;++se)dr=hr[se]=[],dr.x0=se>0?Re[se-1]:tr,dr.x1=se<ur?Re[se]:fr;for(se=0;se<_e;++se)Ne=$e[se],tr<=Ne&&Ne<=fr&&hr[i(Re,Ne,0,ur)].push($[se]);return hr}return K.value=function($){return arguments.length?(j=typeof $=="function"?$:C($),K):j},K.domain=function($){return arguments.length?(ee=typeof $=="function"?$:C([$[0],$[1]]),K):ee},K.thresholds=function($){return arguments.length?(me=typeof $=="function"?$:Array.isArray($)?C(y.call($)):C($),K):me},K}function H(j,ee,me){if(me==null&&(me=c),!!(K=j.length)){if((ee=+ee)<=0||K<2)return+me(j[0],0,j);if(ee>=1)return+me(j[K-1],K-1,j);var K,$=(K-1)*ee,se=Math.floor($),_e=+me(j[se],se,j),Ne=+me(j[se+1],se+1,j);return _e+(Ne-_e)*($-se)}}function V(j,ee,me){return j=b.call(j,c).sort(r),Math.ceil((me-ee)/(2*(H(j,.75)-H(j,.25))*Math.pow(j.length,-1/3)))}function I(j,ee,me){return Math.ceil((me-ee)/(3.5*d(j)*Math.pow(j.length,-1/3)))}function Q(j,ee){var me=j.length,K=-1,$,se;if(ee==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(se=$;++K<me;)($=j[K])!=null&&$>se&&(se=$)}else for(;++K<me;)if(($=ee(j[K],K,j))!=null&&$>=$)for(se=$;++K<me;)($=ee(j[K],K,j))!=null&&$>se&&(se=$);return se}function le(j,ee){var me=j.length,K=me,$=-1,se,_e=0;if(ee==null)for(;++$<me;)isNaN(se=c(j[$]))?--K:_e+=se;else for(;++$<me;)isNaN(se=c(ee(j[$],$,j)))?--K:_e+=se;if(K)return _e/K}function re(j,ee){var me=j.length,K=-1,$,se=[];if(ee==null)for(;++K<me;)isNaN($=c(j[K]))||se.push($);else for(;++K<me;)isNaN($=c(ee(j[K],K,j)))||se.push($);return H(se.sort(r),.5)}function te(j){for(var ee=j.length,me,K=-1,$=0,se,_e;++K<ee;)$+=j[K].length;for(se=new Array($);--ee>=0;)for(_e=j[ee],me=_e.length;--me>=0;)se[--$]=_e[me];return se}function oe(j,ee){var me=j.length,K=-1,$,se;if(ee==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(se=$;++K<me;)($=j[K])!=null&&se>$&&(se=$)}else for(;++K<me;)if(($=ee(j[K],K,j))!=null&&$>=$)for(se=$;++K<me;)($=ee(j[K],K,j))!=null&&se>$&&(se=$);return se}function ce(j,ee){for(var me=ee.length,K=new Array(me);me--;)K[me]=j[ee[me]];return K}function Me(j,ee){if(me=j.length){var me,K=0,$=0,se,_e=j[$];for(ee==null&&(ee=r);++K<me;)(ee(se=j[K],_e)<0||ee(_e,_e)!==0)&&(_e=se,$=K);if(ee(_e,_e)===0)return $}}function Se(j,ee,me){for(var K=(me==null?j.length:me)-(ee=ee==null?0:+ee),$,se;K;)se=Math.random()*K--|0,$=j[K+ee],j[K+ee]=j[se+ee],j[se+ee]=$;return j}function Ie(j,ee){var me=j.length,K=-1,$,se=0;if(ee==null)for(;++K<me;)($=+j[K])&&(se+=$);else for(;++K<me;)($=+ee(j[K],K,j))&&(se+=$);return se}function Ue(j){if(!(se=j.length))return[];for(var ee=-1,me=oe(j,ke),K=new Array(me);++ee<me;)for(var $=-1,se,_e=K[ee]=new Array(se);++$<se;)_e[$]=j[$][ee];return K}function ke(j){return j.length}function We(){return Ue(arguments)}e.bisect=i,e.bisectRight=i,e.bisectLeft=o,e.ascending=r,e.bisector=t,e.cross=s,e.descending=f,e.deviation=d,e.extent=m,e.histogram=X,e.thresholdFreedmanDiaconis=V,e.thresholdScott=I,e.thresholdSturges=B,e.max=Q,e.mean=le,e.median=re,e.merge=te,e.min=oe,e.pairs=l,e.permute=ce,e.quantile=H,e.range=_,e.scan=Me,e.shuffle=Se,e.sum=Ie,e.ticks=E,e.tickIncrement=P,e.tickStep=z,e.transpose=Ue,e.variance=h,e.zip=We,Object.defineProperty(e,"__esModule",{value:!0})}))});var I3=ae((B3,mU)=>{(function(e,r){typeof B3=="object"&&typeof mU!="undefined"?r(B3,pU()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(B3,(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,J,he){var ue=O.s=J+he,we=ue-J,He=ue-we;O.t=J-He+(he-we)}var o=1e-6,l=1e-12,u=Math.PI,s=u/2,f=u/4,c=u*2,h=180/u,d=u/180,m=Math.abs,p=Math.atan,y=Math.atan2,b=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?u:Math.acos(O)}function B(O){return O>1?s:O<-1?-s:Math.asin(O)}function X(O){return(O=T(O/2))*O}function H(){}function V(O,J){O&&Q.hasOwnProperty(O.type)&&Q[O.type](O,J)}var I={Feature:function(O,J){V(O.geometry,J)},FeatureCollection:function(O,J){for(var he=O.features,ue=-1,we=he.length;++ue<we;)V(he[ue].geometry,J)}},Q={Sphere:function(O,J){J.sphere()},Point:function(O,J){O=O.coordinates,J.point(O[0],O[1],O[2])},MultiPoint:function(O,J){for(var he=O.coordinates,ue=-1,we=he.length;++ue<we;)O=he[ue],J.point(O[0],O[1],O[2])},LineString:function(O,J){le(O.coordinates,J,0)},MultiLineString:function(O,J){for(var he=O.coordinates,ue=-1,we=he.length;++ue<we;)le(he[ue],J,0)},Polygon:function(O,J){re(O.coordinates,J)},MultiPolygon:function(O,J){for(var he=O.coordinates,ue=-1,we=he.length;++ue<we;)re(he[ue],J)},GeometryCollection:function(O,J){for(var he=O.geometries,ue=-1,we=he.length;++ue<we;)V(he[ue],J)}};function le(O,J,he){var ue=-1,we=O.length-he,He;for(J.lineStart();++ue<we;)He=O[ue],J.point(He[0],He[1],He[2]);J.lineEnd()}function re(O,J){var he=-1,ue=O.length;for(J.polygonStart();++he<ue;)le(O[he],J,1);J.polygonEnd()}function te(O,J){O&&I.hasOwnProperty(O.type)?I[O.type](O,J):V(O,J)}var oe=t(),ce=t(),Me,Se,Ie,Ue,ke,We={point:H,lineStart:H,lineEnd:H,polygonStart:function(){oe.reset(),We.lineStart=j,We.lineEnd=ee},polygonEnd:function(){var O=+oe;ce.add(O<0?c+O:O),this.lineStart=this.lineEnd=this.point=H},sphere:function(){ce.add(c)}};function j(){We.point=me}function ee(){K(Me,Se)}function me(O,J){We.point=K,Me=O,Se=J,O*=d,J*=d,Ie=O,Ue=b(J=J/2+f),ke=T(J)}function K(O,J){O*=d,J*=d,J=J/2+f;var he=O-Ie,ue=he>=0?1:-1,we=ue*he,He=b(J),je=T(J),er=ke*je,nr=Ue*He+er*b(we),br=er*ue*T(we);oe.add(y(br,nr)),Ie=O,Ue=He,ke=je}function $(O){return ce.reset(),te(O,We),ce*2}function se(O){return[y(O[1],O[0]),B(O[2])]}function _e(O){var J=O[0],he=O[1],ue=b(he);return[ue*b(J),ue*T(J),T(he)]}function Ne(O,J){return O[0]*J[0]+O[1]*J[1]+O[2]*J[2]}function $e(O,J){return[O[1]*J[2]-O[2]*J[1],O[2]*J[0]-O[0]*J[2],O[0]*J[1]-O[1]*J[0]]}function ar(O,J){O[0]+=J[0],O[1]+=J[1],O[2]+=J[2]}function tr(O,J){return[O[0]*J,O[1]*J,O[2]*J]}function fr(O){var J=E(O[0]*O[0]+O[1]*O[1]+O[2]*O[2]);O[0]/=J,O[1]/=J,O[2]/=J}var Re,ur,hr,dr,Ze,cr,Er,Te,Oe=t(),Ar,Nr,Qe={point:Be,lineStart:yr,lineEnd:kr,polygonStart:function(){Qe.point=pr,Qe.lineStart=xr,Qe.lineEnd=Pr,Oe.reset(),We.polygonStart()},polygonEnd:function(){We.polygonEnd(),Qe.point=Be,Qe.lineStart=yr,Qe.lineEnd=kr,oe<0?(Re=-(hr=180),ur=-(dr=90)):Oe>o?dr=90:Oe<-o&&(ur=-90),Nr[0]=Re,Nr[1]=hr},sphere:function(){Re=-(hr=180),ur=-(dr=90)}};function Be(O,J){Ar.push(Nr=[Re=O,hr=O]),J<ur&&(ur=J),J>dr&&(dr=J)}function Xe(O,J){var he=_e([O*d,J*d]);if(Te){var ue=$e(Te,he),we=[ue[1],-ue[0],0],He=$e(we,ue);fr(He),He=se(He);var je=O-Ze,er=je>0?1:-1,nr=He[0]*h*er,br,Je=m(je)>180;Je^(er*Ze<nr&&nr<er*O)?(br=He[1]*h,br>dr&&(dr=br)):(nr=(nr+360)%360-180,Je^(er*Ze<nr&&nr<er*O)?(br=-He[1]*h,br<ur&&(ur=br)):(J<ur&&(ur=J),J>dr&&(dr=J))),Je?O<Ze?Fr(Re,O)>Fr(Re,hr)&&(hr=O):Fr(O,hr)>Fr(Re,hr)&&(Re=O):hr>=Re?(O<Re&&(Re=O),O>hr&&(hr=O)):O>Ze?Fr(Re,O)>Fr(Re,hr)&&(hr=O):Fr(O,hr)>Fr(Re,hr)&&(Re=O)}else Ar.push(Nr=[Re=O,hr=O]);J<ur&&(ur=J),J>dr&&(dr=J),Te=he,Ze=O}function yr(){Qe.point=Xe}function kr(){Nr[0]=Re,Nr[1]=hr,Qe.point=Be,Te=null}function pr(O,J){if(Te){var he=O-Ze;Oe.add(m(he)>180?he+(he>0?360:-360):he)}else cr=O,Er=J;We.point(O,J),Xe(O,J)}function xr(){We.lineStart()}function Pr(){pr(cr,Er),We.lineEnd(),m(Oe)>o&&(Re=-(hr=180)),Nr[0]=Re,Nr[1]=hr,Te=null}function Fr(O,J){return(J-=O)<0?J+360:J}function Hr(O,J){return O[0]-J[0]}function rr(O,J){return O[0]<=O[1]?O[0]<=J&&J<=O[1]:J<O[0]||O[1]<J}function Cr(O){var J,he,ue,we,He,je,er;if(dr=hr=-(Re=ur=1/0),Ar=[],te(O,Qe),he=Ar.length){for(Ar.sort(Hr),J=1,ue=Ar[0],He=[ue];J<he;++J)we=Ar[J],rr(ue,we[0])||rr(ue,we[1])?(Fr(ue[0],we[1])>Fr(ue[0],ue[1])&&(ue[1]=we[1]),Fr(we[0],ue[1])>Fr(ue[0],ue[1])&&(ue[0]=we[0])):He.push(ue=we);for(je=-1/0,he=He.length-1,J=0,ue=He[he];J<=he;ue=we,++J)we=He[J],(er=Fr(ue[1],we[0]))>je&&(je=er,Re=we[0],hr=ue[1])}return Ar=Nr=null,Re===1/0||ur===1/0?[[NaN,NaN],[NaN,NaN]]:[[Re,ur],[hr,dr]]}var vr,Xr,Kr,Lr,Wr,Ae,Pe,sr,gr,Bt,Gt,na,Ma,It,jt,da,ea={sphere:H,point:mn,lineStart:Un,lineEnd:Rt,polygonStart:function(){ea.lineStart=pa,ea.lineEnd=ya},polygonEnd:function(){ea.lineStart=Un,ea.lineEnd=Rt}};function mn(O,J){O*=d,J*=d;var he=b(J);rn(he*b(O),he*T(O),T(J))}function rn(O,J,he){++vr,Kr+=(O-Kr)/vr,Lr+=(J-Lr)/vr,Wr+=(he-Wr)/vr}function Un(){ea.point=Jr}function Jr(O,J){O*=d,J*=d;var he=b(J);It=he*b(O),jt=he*T(O),da=T(J),ea.point=ua,rn(It,jt,da)}function ua(O,J){O*=d,J*=d;var he=b(J),ue=he*b(O),we=he*T(O),He=T(J),je=y(E((je=jt*He-da*we)*je+(je=da*ue-It*He)*je+(je=It*we-jt*ue)*je),It*ue+jt*we+da*He);Xr+=je,Ae+=je*(It+(It=ue)),Pe+=je*(jt+(jt=we)),sr+=je*(da+(da=He)),rn(It,jt,da)}function Rt(){ea.point=mn}function pa(){ea.point=ba}function ya(){Yt(na,Ma),ea.point=mn}function ba(O,J){na=O,Ma=J,O*=d,J*=d,ea.point=Yt;var he=b(J);It=he*b(O),jt=he*T(O),da=T(J),rn(It,jt,da)}function Yt(O,J){O*=d,J*=d;var he=b(J),ue=he*b(O),we=he*T(O),He=T(J),je=jt*He-da*we,er=da*ue-It*He,nr=It*we-jt*ue,br=E(je*je+er*er+nr*nr),Je=B(br),lr=br&&-Je/br;gr+=lr*je,Bt+=lr*er,Gt+=lr*nr,Xr+=Je,Ae+=Je*(It+(It=ue)),Pe+=Je*(jt+(jt=we)),sr+=Je*(da+(da=He)),rn(It,jt,da)}function za(O){vr=Xr=Kr=Lr=Wr=Ae=Pe=sr=gr=Bt=Gt=0,te(O,ea);var J=gr,he=Bt,ue=Gt,we=J*J+he*he+ue*ue;return we<l&&(J=Ae,he=Pe,ue=sr,Xr<o&&(J=Kr,he=Lr,ue=Wr),we=J*J+he*he+ue*ue,we<l)?[NaN,NaN]:[y(he,J)*h,B(ue/E(we))*h]}function gn(O){return function(){return O}}function ma(O,J){function he(ue,we){return ue=O(ue,we),J(ue[0],ue[1])}return O.invert&&J.invert&&(he.invert=function(ue,we){return ue=J.invert(ue,we),ue&&O.invert(ue[0],ue[1])}),he}function aa(O,J){return[m(O)>u?O+Math.round(-O/c)*c:O,J]}aa.invert=aa;function Fa(O,J,he){return(O%=c)?J||he?ma(Co(O),qi(J,he)):Co(O):J||he?qi(J,he):aa}function Da(O){return function(J,he){return J+=O,[J>u?J-c:J<-u?J+c:J,he]}}function Co(O){var J=Da(O);return J.invert=Da(-O),J}function qi(O,J){var he=b(O),ue=T(O),we=b(J),He=T(J);function je(er,nr){var br=b(nr),Je=b(er)*br,lr=T(er)*br,ir=T(nr),Mr=ir*he+Je*ue;return[y(lr*we-Mr*He,Je*he-ir*ue),B(Mr*we+lr*He)]}return je.invert=function(er,nr){var br=b(nr),Je=b(er)*br,lr=T(er)*br,ir=T(nr),Mr=ir*we-lr*He;return[y(lr*we+ir*He,Je*he+Mr*ue),B(Mr*he-Je*ue)]},je}function Xu(O){O=Fa(O[0]*d,O[1]*d,O.length>2?O[2]*d:0);function J(he){return he=O(he[0]*d,he[1]*d),he[0]*=h,he[1]*=h,he}return J.invert=function(he){return he=O.invert(he[0]*d,he[1]*d),he[0]*=h,he[1]*=h,he},J}function Ql(O,J,he,ue,we,He){if(he){var je=b(J),er=T(J),nr=ue*he;we==null?(we=J+ue*c,He=J-nr/2):(we=ul(je,we),He=ul(je,He),(ue>0?we<He:we>He)&&(we+=ue*c));for(var br,Je=we;ue>0?Je>He:Je<He;Je-=nr)br=se([je,-er*b(Je),-er*T(Je)]),O.point(br[0],br[1])}}function ul(O,J){J=_e(J),J[0]-=O,fr(J);var he=z(-J[1]);return((-J[2]<0?-he:he)+c-o)%c}function Wu(){var O=gn([0,0]),J=gn(90),he=gn(6),ue,we,He={point:je};function je(nr,br){ue.push(nr=we(nr,br)),nr[0]*=h,nr[1]*=h}function er(){var nr=O.apply(this,arguments),br=J.apply(this,arguments)*d,Je=he.apply(this,arguments)*d;return ue=[],we=Fa(-nr[0]*d,-nr[1]*d,0).invert,Ql(He,br,Je,1),nr={type:"Polygon",coordinates:[ue]},ue=we=null,nr}return er.center=function(nr){return arguments.length?(O=typeof nr=="function"?nr:gn([+nr[0],+nr[1]]),er):O},er.radius=function(nr){return arguments.length?(J=typeof nr=="function"?nr:gn(+nr),er):J},er.precision=function(nr){return arguments.length?(he=typeof nr=="function"?nr:gn(+nr),er):he},er}function sl(){var O=[],J;return{point:function(he,ue,we){J.push([he,ue,we])},lineStart:function(){O.push(J=[])},lineEnd:H,rejoin:function(){O.length>1&&O.push(O.pop().concat(O.shift()))},result:function(){var he=O;return O=[],J=null,he}}}function $a(O,J){return m(O[0]-J[0])<o&&m(O[1]-J[1])<o}function Pi(O,J,he,ue){this.x=O,this.z=J,this.o=he,this.e=ue,this.v=!1,this.n=this.p=null}function fl(O,J,he,ue,we){var He=[],je=[],er,nr;if(O.forEach(function(Sr){if(!((ot=Sr.length-1)<=0)){var ot,et=Sr[0],ut=Sr[ot],st;if($a(et,ut)){if(!et[2]&&!ut[2]){for(we.lineStart(),er=0;er<ot;++er)we.point((et=Sr[er])[0],et[1]);we.lineEnd();return}ut[0]+=2*o}He.push(st=new Pi(et,Sr,null,!0)),je.push(st.o=new Pi(et,null,st,!1)),He.push(st=new Pi(ut,Sr,null,!1)),je.push(st.o=new Pi(ut,null,st,!0))}}),!!He.length){for(je.sort(J),Ri(He),Ri(je),er=0,nr=je.length;er<nr;++er)je[er].e=he=!he;for(var br=He[0],Je,lr;;){for(var ir=br,Mr=!0;ir.v;)if((ir=ir.n)===br)return;Je=ir.z,we.lineStart();do{if(ir.v=ir.o.v=!0,ir.e){if(Mr)for(er=0,nr=Je.length;er<nr;++er)we.point((lr=Je[er])[0],lr[1]);else ue(ir.x,ir.n.x,1,we);ir=ir.n}else{if(Mr)for(Je=ir.p.z,er=Je.length-1;er>=0;--er)we.point((lr=Je[er])[0],lr[1]);else ue(ir.x,ir.p.x,-1,we);ir=ir.p}ir=ir.o,Je=ir.z,Mr=!Mr}while(!ir.v);we.lineEnd()}}}function Ri(O){if(J=O.length){for(var J,he=0,ue=O[0],we;++he<J;)ue.n=we=O[he],we.p=ue,ue=we;ue.n=we=O[0],we.p=ue}}var Ai=t();function eu(O){return m(O[0])<=u?O[0]:M(O[0])*((m(O[0])+u)%c-u)}function ru(O,J){var he=eu(J),ue=J[1],we=T(ue),He=[T(he),-b(he),0],je=0,er=0;Ai.reset(),we===1?ue=s+o:we===-1&&(ue=-s-o);for(var nr=0,br=O.length;nr<br;++nr)if(lr=(Je=O[nr]).length)for(var Je,lr,ir=Je[lr-1],Mr=eu(ir),Sr=ir[1]/2+f,ot=T(Sr),et=b(Sr),ut=0;ut<lr;++ut,Mr=qr,ot=ct,et=_t,ir=st){var st=Je[ut],qr=eu(st),Ur=st[1]/2+f,ct=T(Ur),_t=b(Ur),Vt=qr-Mr,oa=Vt>=0?1:-1,Zt=oa*Vt,_a=Zt>u,Et=ot*ct;if(Ai.add(y(Et*oa*T(Zt),et*_t+Et*b(Zt))),je+=_a?Vt+oa*c:Vt,_a^Mr>=he^qr>=he){var yn=$e(_e(ir),_e(st));fr(yn);var Ya=$e(He,yn);fr(Ya);var xa=(_a^Vt>=0?-1:1)*B(Ya[2]);(ue>xa||ue===xa&&(yn[0]||yn[1]))&&(er+=_a^Vt>=0?1:-1)}}return(je<-o||je<o&&Ai<-o)^er&1}function ju(O,J,he,ue){return function(we){var He=J(we),je=sl(),er=J(je),nr=!1,br,Je,lr,ir={point:Mr,lineStart:ot,lineEnd:et,polygonStart:function(){ir.point=ut,ir.lineStart=st,ir.lineEnd=qr,Je=[],br=[]},polygonEnd:function(){ir.point=Mr,ir.lineStart=ot,ir.lineEnd=et,Je=r.merge(Je);var Ur=ru(br,ue);Je.length?(nr||(we.polygonStart(),nr=!0),fl(Je,Zu,Ur,he,we)):Ur&&(nr||(we.polygonStart(),nr=!0),we.lineStart(),he(null,null,1,we),we.lineEnd()),nr&&(we.polygonEnd(),nr=!1),Je=br=null},sphere:function(){we.polygonStart(),we.lineStart(),he(null,null,1,we),we.lineEnd(),we.polygonEnd()}};function Mr(Ur,ct){O(Ur,ct)&&we.point(Ur,ct)}function Sr(Ur,ct){He.point(Ur,ct)}function ot(){ir.point=Sr,He.lineStart()}function et(){ir.point=Mr,He.lineEnd()}function ut(Ur,ct){lr.push([Ur,ct]),er.point(Ur,ct)}function st(){er.lineStart(),lr=[]}function qr(){ut(lr[0][0],lr[0][1]),er.lineEnd();var Ur=er.clean(),ct=je.result(),_t,Vt=ct.length,oa,Zt,_a;if(lr.pop(),br.push(lr),lr=null,!!Vt){if(Ur&1){if(Zt=ct[0],(oa=Zt.length-1)>0){for(nr||(we.polygonStart(),nr=!0),we.lineStart(),_t=0;_t<oa;++_t)we.point((_a=Zt[_t])[0],_a[1]);we.lineEnd()}return}Vt>1&&Ur&2&&ct.push(ct.pop().concat(ct.shift())),Je.push(ct.filter(tu))}}return ir}}function tu(O){return O.length>1}function Zu(O,J){return((O=O.x)[0]<0?O[1]-s-o:s-O[1])-((J=J.x)[0]<0?J[1]-s-o:s-J[1])}var it=ju(function(){return!0},lt,Or,[-u,-s]);function lt(O){var J=NaN,he=NaN,ue=NaN,we;return{lineStart:function(){O.lineStart(),we=1},point:function(He,je){var er=He>0?u:-u,nr=m(He-J);m(nr-u)<o?(O.point(J,he=(he+je)/2>0?s:-s),O.point(ue,he),O.lineEnd(),O.lineStart(),O.point(er,he),O.point(He,he),we=0):ue!==er&&nr>=u&&(m(J-ue)<o&&(J-=ue*o),m(He-er)<o&&(He-=er*o),he=Ut(J,he,He,je),O.point(ue,he),O.lineEnd(),O.lineStart(),O.point(er,he),we=0),O.point(J=He,he=je),ue=er},lineEnd:function(){O.lineEnd(),J=he=NaN},clean:function(){return 2-we}}}function Ut(O,J,he,ue){var we,He,je=T(O-he);return m(je)>o?p((T(J)*(He=b(ue))*T(he)-T(ue)*(we=b(J))*T(O))/(we*He*je)):(J+ue)/2}function Or(O,J,he,ue){var we;if(O==null)we=he*s,ue.point(-u,we),ue.point(0,we),ue.point(u,we),ue.point(u,0),ue.point(u,-we),ue.point(0,-we),ue.point(-u,-we),ue.point(-u,0),ue.point(-u,we);else if(m(O[0]-J[0])>o){var He=O[0]<J[0]?u:-u;we=he*He/2,ue.point(-He,we),ue.point(0,we),ue.point(He,we)}else ue.point(J[0],J[1])}function vn(O){var J=b(O),he=6*d,ue=J>0,we=m(J)>o;function He(Je,lr,ir,Mr){Ql(Mr,O,he,ir,Je,lr)}function je(Je,lr){return b(Je)*b(lr)>J}function er(Je){var lr,ir,Mr,Sr,ot;return{lineStart:function(){Sr=Mr=!1,ot=1},point:function(et,ut){var st=[et,ut],qr,Ur=je(et,ut),ct=ue?Ur?0:br(et,ut):Ur?br(et+(et<0?u:-u),ut):0;if(!lr&&(Sr=Mr=Ur)&&Je.lineStart(),Ur!==Mr&&(qr=nr(lr,st),(!qr||$a(lr,qr)||$a(st,qr))&&(st[2]=1)),Ur!==Mr)ot=0,Ur?(Je.lineStart(),qr=nr(st,lr),Je.point(qr[0],qr[1])):(qr=nr(lr,st),Je.point(qr[0],qr[1],2),Je.lineEnd()),lr=qr;else if(we&&lr&&ue^Ur){var _t;!(ct&ir)&&(_t=nr(st,lr,!0))&&(ot=0,ue?(Je.lineStart(),Je.point(_t[0][0],_t[0][1]),Je.point(_t[1][0],_t[1][1]),Je.lineEnd()):(Je.point(_t[1][0],_t[1][1]),Je.lineEnd(),Je.lineStart(),Je.point(_t[0][0],_t[0][1],3)))}Ur&&(!lr||!$a(lr,st))&&Je.point(st[0],st[1]),lr=st,Mr=Ur,ir=ct},lineEnd:function(){Mr&&Je.lineEnd(),lr=null},clean:function(){return ot|(Sr&&Mr)<<1}}}function nr(Je,lr,ir){var Mr=_e(Je),Sr=_e(lr),ot=[1,0,0],et=$e(Mr,Sr),ut=Ne(et,et),st=et[0],qr=ut-st*st;if(!qr)return!ir&&Je;var Ur=J*ut/qr,ct=-J*st/qr,_t=$e(ot,et),Vt=tr(ot,Ur),oa=tr(et,ct);ar(Vt,oa);var Zt=_t,_a=Ne(Vt,Zt),Et=Ne(Zt,Zt),yn=_a*_a-Et*(Ne(Vt,Vt)-1);if(!(yn<0)){var Ya=E(yn),xa=tr(Zt,(-_a-Ya)/Et);if(ar(xa,Vt),xa=se(xa),!ir)return xa;var Yr=Je[0],Xt=lr[0],Ka=Je[1],Cn=lr[1],si;Xt<Yr&&(si=Yr,Yr=Xt,Xt=si);var uo=Xt-Yr,Oi=m(uo-u)<o,Al=Oi||uo<o;if(!Oi&&Cn<Ka&&(si=Ka,Ka=Cn,Cn=si),Al?Oi?Ka+Cn>0^xa[1]<(m(xa[0]-Yr)<o?Ka:Cn):Ka<=xa[1]&&xa[1]<=Cn:uo>u^(Yr<=xa[0]&&xa[0]<=Xt)){var ki=tr(Zt,(-_a+Ya)/Et);return ar(ki,Vt),[xa,se(ki)]}}}function br(Je,lr){var ir=ue?O:u-O,Mr=0;return Je<-ir?Mr|=1:Je>ir&&(Mr|=2),lr<-ir?Mr|=4:lr>ir&&(Mr|=8),Mr}return ju(je,er,He,ue?[0,-O]:[-u,O-u])}function ia(O,J,he,ue,we,He){var je=O[0],er=O[1],nr=J[0],br=J[1],Je=0,lr=1,ir=nr-je,Mr=br-er,Sr;if(Sr=he-je,!(!ir&&Sr>0)){if(Sr/=ir,ir<0){if(Sr<Je)return;Sr<lr&&(lr=Sr)}else if(ir>0){if(Sr>lr)return;Sr>Je&&(Je=Sr)}if(Sr=we-je,!(!ir&&Sr<0)){if(Sr/=ir,ir<0){if(Sr>lr)return;Sr>Je&&(Je=Sr)}else if(ir>0){if(Sr<Je)return;Sr<lr&&(lr=Sr)}if(Sr=ue-er,!(!Mr&&Sr>0)){if(Sr/=Mr,Mr<0){if(Sr<Je)return;Sr<lr&&(lr=Sr)}else if(Mr>0){if(Sr>lr)return;Sr>Je&&(Je=Sr)}if(Sr=He-er,!(!Mr&&Sr<0)){if(Sr/=Mr,Mr<0){if(Sr>lr)return;Sr>Je&&(Je=Sr)}else if(Mr>0){if(Sr<Je)return;Sr<lr&&(lr=Sr)}return Je>0&&(O[0]=je+Je*ir,O[1]=er+Je*Mr),lr<1&&(J[0]=je+lr*ir,J[1]=er+lr*Mr),!0}}}}}var Ha=1e9,Ga=-Ha;function zn(O,J,he,ue){function we(br,Je){return O<=br&&br<=he&&J<=Je&&Je<=ue}function He(br,Je,lr,ir){var Mr=0,Sr=0;if(br==null||(Mr=je(br,lr))!==(Sr=je(Je,lr))||nr(br,Je)<0^lr>0)do ir.point(Mr===0||Mr===3?O:he,Mr>1?ue:J);while((Mr=(Mr+lr+4)%4)!==Sr);else ir.point(Je[0],Je[1])}function je(br,Je){return m(br[0]-O)<o?Je>0?0:3:m(br[0]-he)<o?Je>0?2:1:m(br[1]-J)<o?Je>0?1:0:Je>0?3:2}function er(br,Je){return nr(br.x,Je.x)}function nr(br,Je){var lr=je(br,1),ir=je(Je,1);return lr!==ir?lr-ir:lr===0?Je[1]-br[1]:lr===1?br[0]-Je[0]:lr===2?br[1]-Je[1]:Je[0]-br[0]}return function(br){var Je=br,lr=sl(),ir,Mr,Sr,ot,et,ut,st,qr,Ur,ct,_t,Vt={point:oa,lineStart:yn,lineEnd:Ya,polygonStart:_a,polygonEnd:Et};function oa(Yr,Xt){we(Yr,Xt)&&Je.point(Yr,Xt)}function Zt(){for(var Yr=0,Xt=0,Ka=Mr.length;Xt<Ka;++Xt)for(var Cn=Mr[Xt],si=1,uo=Cn.length,Oi=Cn[0],Al,ki,Ml=Oi[0],gu=Oi[1];si<uo;++si)Al=Ml,ki=gu,Oi=Cn[si],Ml=Oi[0],gu=Oi[1],ki<=ue?gu>ue&&(Ml-Al)*(ue-ki)>(gu-ki)*(O-Al)&&++Yr:gu<=ue&&(Ml-Al)*(ue-ki)<(gu-ki)*(O-Al)&&--Yr;return Yr}function _a(){Je=lr,ir=[],Mr=[],_t=!0}function Et(){var Yr=Zt(),Xt=_t&&Yr,Ka=(ir=r.merge(ir)).length;(Xt||Ka)&&(br.polygonStart(),Xt&&(br.lineStart(),He(null,null,1,br),br.lineEnd()),Ka&&fl(ir,er,Yr,He,br),br.polygonEnd()),Je=br,ir=Mr=Sr=null}function yn(){Vt.point=xa,Mr&&Mr.push(Sr=[]),ct=!0,Ur=!1,st=qr=NaN}function Ya(){ir&&(xa(ot,et),ut&&Ur&&lr.rejoin(),ir.push(lr.result())),Vt.point=oa,Ur&&Je.lineEnd()}function xa(Yr,Xt){var Ka=we(Yr,Xt);if(Mr&&Sr.push([Yr,Xt]),ct)ot=Yr,et=Xt,ut=Ka,ct=!1,Ka&&(Je.lineStart(),Je.point(Yr,Xt));else if(Ka&&Ur)Je.point(Yr,Xt);else{var Cn=[st=Math.max(Ga,Math.min(Ha,st)),qr=Math.max(Ga,Math.min(Ha,qr))],si=[Yr=Math.max(Ga,Math.min(Ha,Yr)),Xt=Math.max(Ga,Math.min(Ha,Xt))];ia(Cn,si,O,J,he,ue)?(Ur||(Je.lineStart(),Je.point(Cn[0],Cn[1])),Je.point(si[0],si[1]),Ka||Je.lineEnd(),_t=!1):Ka&&(Je.lineStart(),Je.point(Yr,Xt),_t=!1)}st=Yr,qr=Xt,Ur=Ka}return Vt}}function cl(){var O=0,J=0,he=960,ue=500,we,He,je;return je={stream:function(er){return we&&He===er?we:we=zn(O,J,he,ue)(He=er)},extent:function(er){return arguments.length?(O=+er[0][0],J=+er[0][1],he=+er[1][0],ue=+er[1][1],we=He=null,je):[[O,J],[he,ue]]}}}var au=t(),nu,zi,Do,vl={sphere:H,point:H,lineStart:iu,lineEnd:H,polygonStart:H,polygonEnd:H};function iu(){vl.point=rf,vl.lineEnd=Ju}function Ju(){vl.point=vl.lineEnd=H}function rf(O,J){O*=d,J*=d,nu=O,zi=T(J),Do=b(J),vl.point=Nc}function Nc(O,J){O*=d,J*=d;var he=T(J),ue=b(J),we=m(O-nu),He=b(we),je=T(we),er=ue*je,nr=Do*he-zi*ue*He,br=zi*he+Do*ue*He;au.add(y(E(er*er+nr*nr),br)),nu=O,zi=he,Do=ue}function $u(O){return au.reset(),te(O,vl),+au}var Ku=[null,null],Qu={type:"LineString",coordinates:Ku};function hl(O,J){return Ku[0]=O,Ku[1]=J,$u(Qu)}var So={Feature:function(O,J){return to(O.geometry,J)},FeatureCollection:function(O,J){for(var he=O.features,ue=-1,we=he.length;++ue<we;)if(to(he[ue].geometry,J))return!0;return!1}},Fo={Sphere:function(){return!0},Point:function(O,J){return tf(O.coordinates,J)},MultiPoint:function(O,J){for(var he=O.coordinates,ue=-1,we=he.length;++ue<we;)if(tf(he[ue],J))return!0;return!1},LineString:function(O,J){return Gs(O.coordinates,J)},MultiLineString:function(O,J){for(var he=O.coordinates,ue=-1,we=he.length;++ue<we;)if(Gs(he[ue],J))return!0;return!1},Polygon:function(O,J){return ou(O.coordinates,J)},MultiPolygon:function(O,J){for(var he=O.coordinates,ue=-1,we=he.length;++ue<we;)if(ou(he[ue],J))return!0;return!1},GeometryCollection:function(O,J){for(var he=O.geometries,ue=-1,we=he.length;++ue<we;)if(to(he[ue],J))return!0;return!1}};function to(O,J){return O&&Fo.hasOwnProperty(O.type)?Fo[O.type](O,J):!1}function tf(O,J){return hl(O,J)===0}function Gs(O,J){for(var he,ue,we,He=0,je=O.length;He<je;He++){if(ue=hl(O[He],J),ue===0||He>0&&(we=hl(O[He],O[He-1]),we>0&&he<=we&&ue<=we&&(he+ue-we)*(1-Math.pow((he-ue)/we,2))<l*we))return!0;he=ue}return!1}function ou(O,J){return!!ru(O.map(af),Bc(J))}function af(O){return O=O.map(Bc),O.pop(),O}function Bc(O){return[O[0]*d,O[1]*d]}function es(O,J){return(O&&So.hasOwnProperty(O.type)?So[O.type]:to)(O,J)}function ao(O,J,he){var ue=r.range(O,J-o,he).concat(J);return function(we){return ue.map(function(He){return[we,He]})}}function rs(O,J,he){var ue=r.range(O,J-o,he).concat(J);return function(we){return ue.map(function(He){return[He,we]})}}function Ic(){var O,J,he,ue,we,He,je,er,nr=10,br=nr,Je=90,lr=360,ir,Mr,Sr,ot,et=2.5;function ut(){return{type:"MultiLineString",coordinates:st()}}function st(){return r.range(C(ue/Je)*Je,he,Je).map(Sr).concat(r.range(C(er/lr)*lr,je,lr).map(ot)).concat(r.range(C(J/nr)*nr,O,nr).filter(function(qr){return m(qr%Je)>o}).map(ir)).concat(r.range(C(He/br)*br,we,br).filter(function(qr){return m(qr%lr)>o}).map(Mr))}return ut.lines=function(){return st().map(function(qr){return{type:"LineString",coordinates:qr}})},ut.outline=function(){return{type:"Polygon",coordinates:[Sr(ue).concat(ot(je).slice(1),Sr(he).reverse().slice(1),ot(er).reverse().slice(1))]}},ut.extent=function(qr){return arguments.length?ut.extentMajor(qr).extentMinor(qr):ut.extentMinor()},ut.extentMajor=function(qr){return arguments.length?(ue=+qr[0][0],he=+qr[1][0],er=+qr[0][1],je=+qr[1][1],ue>he&&(qr=ue,ue=he,he=qr),er>je&&(qr=er,er=je,je=qr),ut.precision(et)):[[ue,er],[he,je]]},ut.extentMinor=function(qr){return arguments.length?(J=+qr[0][0],O=+qr[1][0],He=+qr[0][1],we=+qr[1][1],J>O&&(qr=J,J=O,O=qr),He>we&&(qr=He,He=we,we=qr),ut.precision(et)):[[J,He],[O,we]]},ut.step=function(qr){return arguments.length?ut.stepMajor(qr).stepMinor(qr):ut.stepMinor()},ut.stepMajor=function(qr){return arguments.length?(Je=+qr[0],lr=+qr[1],ut):[Je,lr]},ut.stepMinor=function(qr){return arguments.length?(nr=+qr[0],br=+qr[1],ut):[nr,br]},ut.precision=function(qr){return arguments.length?(et=+qr,ir=ao(He,we,90),Mr=rs(J,O,et),Sr=ao(er,je,90),ot=rs(ue,he,et),ut):et},ut.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function ts(){return Ic()()}function z2(O,J){var he=O[0]*d,ue=O[1]*d,we=J[0]*d,He=J[1]*d,je=b(ue),er=T(ue),nr=b(He),br=T(He),Je=je*b(he),lr=je*T(he),ir=nr*b(we),Mr=nr*T(we),Sr=2*B(E(X(He-ue)+je*nr*X(we-he))),ot=T(Sr),et=Sr?function(ut){var st=T(ut*=Sr)/ot,qr=T(Sr-ut)/ot,Ur=qr*Je+st*ir,ct=qr*lr+st*Mr,_t=qr*er+st*br;return[y(ct,Ur)*h,y(_t,E(Ur*Ur+ct*ct))*h]}:function(){return[he*h,ue*h]};return et.distance=Sr,et}function dl(O){return O}var nf=t(),lu=t(),Hc,Eo,Lo,of,Ni={point:H,lineStart:H,lineEnd:H,polygonStart:function(){Ni.lineStart=N2,Ni.lineEnd=B2},polygonEnd:function(){Ni.lineStart=Ni.lineEnd=Ni.point=H,nf.add(m(lu)),lu.reset()},result:function(){var O=nf/2;return nf.reset(),O}};function N2(){Ni.point=no}function no(O,J){Ni.point=uu,Hc=Lo=O,Eo=of=J}function uu(O,J){lu.add(of*O-Lo*J),Lo=O,of=J}function B2(){uu(Hc,Eo)}var io=1/0,pl=io,ml=-io,gl=ml,qo={point:as,lineStart:H,lineEnd:H,polygonStart:H,polygonEnd:H,result:function(){var O=[[io,pl],[ml,gl]];return ml=gl=-(pl=io=1/0),O}};function as(O,J){O<io&&(io=O),O>ml&&(ml=O),J<pl&&(pl=J),J>gl&&(gl=J)}var Ys=0,ns=0,is=0,yl=0,su=0,fu=0,Vs=0,Xs=0,Mi=0,Ws,js,$n,hn,Nn={point:oo,lineStart:os,lineEnd:lf,polygonStart:function(){Nn.lineStart=Oc,Nn.lineEnd=I2},polygonEnd:function(){Nn.point=oo,Nn.lineStart=os,Nn.lineEnd=lf},result:function(){var O=Mi?[Vs/Mi,Xs/Mi]:fu?[yl/fu,su/fu]:is?[Ys/is,ns/is]:[NaN,NaN];return Ys=ns=is=yl=su=fu=Vs=Xs=Mi=0,O}};function oo(O,J){Ys+=O,ns+=J,++is}function os(){Nn.point=bl}function bl(O,J){Nn.point=cu,oo($n=O,hn=J)}function cu(O,J){var he=O-$n,ue=J-hn,we=E(he*he+ue*ue);yl+=we*($n+O)/2,su+=we*(hn+J)/2,fu+=we,oo($n=O,hn=J)}function lf(){Nn.point=oo}function Oc(){Nn.point=H2}function I2(){uf(Ws,js)}function H2(O,J){Nn.point=uf,oo(Ws=$n=O,js=hn=J)}function uf(O,J){var he=O-$n,ue=J-hn,we=E(he*he+ue*ue);yl+=we*($n+O)/2,su+=we*(hn+J)/2,fu+=we,we=hn*O-$n*J,Vs+=we*($n+O),Xs+=we*(hn+J),Mi+=we*3,oo($n=O,hn=J)}function sf(O){this._context=O}sf.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,J){switch(this._point){case 0:{this._context.moveTo(O,J),this._point=1;break}case 1:{this._context.lineTo(O,J);break}default:{this._context.moveTo(O+this._radius,J),this._context.arc(O,J,this._radius,0,c);break}}},result:H};var ff=t(),cf,Uc,Gc,ls,us,Bi={point:H,lineStart:function(){Bi.point=Zs},lineEnd:function(){cf&&ss(Uc,Gc),Bi.point=H},polygonStart:function(){cf=!0},polygonEnd:function(){cf=null},result:function(){var O=+ff;return ff.reset(),O}};function Zs(O,J){Bi.point=ss,Uc=ls=O,Gc=us=J}function ss(O,J){ls-=O,us-=J,ff.add(E(ls*ls+us*us)),ls=O,us=J}function Js(){this._string=[]}Js.prototype={_radius:4.5,_circle:Yc(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,J){switch(this._point){case 0:{this._string.push("M",O,",",J),this._point=1;break}case 1:{this._string.push("L",O,",",J);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",O,",",J,this._circle);break}}},result:function(){if(this._string.length){var O=this._string.join("");return this._string=[],O}else return null}};function Yc(O){return"m0,"+O+"a"+O+","+O+" 0 1,1 0,"+-2*O+"a"+O+","+O+" 0 1,1 0,"+2*O+"z"}function vf(O,J){var he=4.5,ue,we;function He(je){return je&&(typeof he=="function"&&we.pointRadius(+he.apply(this,arguments)),te(je,ue(we))),we.result()}return He.area=function(je){return te(je,ue(Ni)),Ni.result()},He.measure=function(je){return te(je,ue(Bi)),Bi.result()},He.bounds=function(je){return te(je,ue(qo)),qo.result()},He.centroid=function(je){return te(je,ue(Nn)),Nn.result()},He.projection=function(je){return arguments.length?(ue=je==null?(O=null,dl):(O=je).stream,He):O},He.context=function(je){return arguments.length?(we=je==null?(J=null,new Js):new sf(J=je),typeof he!="function"&&we.pointRadius(he),He):J},He.pointRadius=function(je){return arguments.length?(he=typeof je=="function"?je:(we.pointRadius(+je),+je),He):he},He.projection(O).context(J)}function O2(O){return{stream:Po(O)}}function Po(O){return function(J){var he=new $s;for(var ue in O)he[ue]=O[ue];return he.stream=J,he}}function $s(){}$s.prototype={constructor:$s,point:function(O,J){this.stream.point(O,J)},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 vu(O,J,he){var ue=O.clipExtent&&O.clipExtent();return O.scale(150).translate([0,0]),ue!=null&&O.clipExtent(null),te(he,O.stream(qo)),J(qo.result()),ue!=null&&O.clipExtent(ue),O}function fs(O,J,he){return vu(O,function(ue){var we=J[1][0]-J[0][0],He=J[1][1]-J[0][1],je=Math.min(we/(ue[1][0]-ue[0][0]),He/(ue[1][1]-ue[0][1])),er=+J[0][0]+(we-je*(ue[1][0]+ue[0][0]))/2,nr=+J[0][1]+(He-je*(ue[1][1]+ue[0][1]))/2;O.scale(150*je).translate([er,nr])},he)}function cs(O,J,he){return fs(O,[[0,0],J],he)}function hf(O,J,he){return vu(O,function(ue){var we=+J,He=we/(ue[1][0]-ue[0][0]),je=(we-He*(ue[1][0]+ue[0][0]))/2,er=-He*ue[0][1];O.scale(150*He).translate([je,er])},he)}function Ro(O,J,he){return vu(O,function(ue){var we=+J,He=we/(ue[1][1]-ue[0][1]),je=-He*ue[0][0],er=(we-He*(ue[1][1]+ue[0][1]))/2;O.scale(150*He).translate([je,er])},he)}var Vc=16,df=b(30*d);function Xc(O,J){return+J?Ks(O,J):pf(O)}function pf(O){return Po({point:function(J,he){J=O(J,he),this.stream.point(J[0],J[1])}})}function Ks(O,J){function he(ue,we,He,je,er,nr,br,Je,lr,ir,Mr,Sr,ot,et){var ut=br-ue,st=Je-we,qr=ut*ut+st*st;if(qr>4*J&&ot--){var Ur=je+ir,ct=er+Mr,_t=nr+Sr,Vt=E(Ur*Ur+ct*ct+_t*_t),oa=B(_t/=Vt),Zt=m(m(_t)-1)<o||m(He-lr)<o?(He+lr)/2:y(ct,Ur),_a=O(Zt,oa),Et=_a[0],yn=_a[1],Ya=Et-ue,xa=yn-we,Yr=st*Ya-ut*xa;(Yr*Yr/qr>J||m((ut*Ya+st*xa)/qr-.5)>.3||je*ir+er*Mr+nr*Sr<df)&&(he(ue,we,He,je,er,nr,Et,yn,Zt,Ur/=Vt,ct/=Vt,_t,ot,et),et.point(Et,yn),he(Et,yn,Zt,Ur,ct,_t,br,Je,lr,ir,Mr,Sr,ot,et))}}return function(ue){var we,He,je,er,nr,br,Je,lr,ir,Mr,Sr,ot,et={point:ut,lineStart:st,lineEnd:Ur,polygonStart:function(){ue.polygonStart(),et.lineStart=ct},polygonEnd:function(){ue.polygonEnd(),et.lineStart=st}};function ut(oa,Zt){oa=O(oa,Zt),ue.point(oa[0],oa[1])}function st(){lr=NaN,et.point=qr,ue.lineStart()}function qr(oa,Zt){var _a=_e([oa,Zt]),Et=O(oa,Zt);he(lr,ir,Je,Mr,Sr,ot,lr=Et[0],ir=Et[1],Je=oa,Mr=_a[0],Sr=_a[1],ot=_a[2],Vc,ue),ue.point(lr,ir)}function Ur(){et.point=ut,ue.lineEnd()}function ct(){st(),et.point=_t,et.lineEnd=Vt}function _t(oa,Zt){qr(we=oa,Zt),He=lr,je=ir,er=Mr,nr=Sr,br=ot,et.point=qr}function Vt(){he(lr,ir,Je,Mr,Sr,ot,He,je,we,er,nr,br,Vc,ue),et.lineEnd=Ur,Ur()}return et}}var mf=Po({point:function(O,J){this.stream.point(O*d,J*d)}});function gf(O){return Po({point:function(J,he){var ue=O(J,he);return this.stream.point(ue[0],ue[1])}})}function U2(O,J,he,ue,we){function He(je,er){return je*=ue,er*=we,[J+O*je,he-O*er]}return He.invert=function(je,er){return[(je-J)/O*ue,(he-er)/O*we]},He}function yf(O,J,he,ue,we,He){var je=b(He),er=T(He),nr=je*O,br=er*O,Je=je/O,lr=er/O,ir=(er*he-je*J)/O,Mr=(er*J+je*he)/O;function Sr(ot,et){return ot*=ue,et*=we,[nr*ot-br*et+J,he-br*ot-nr*et]}return Sr.invert=function(ot,et){return[ue*(Je*ot-lr*et+ir),we*(Mr-lr*ot-Je*et)]},Sr}function Ii(O){return bf(function(){return O})()}function bf(O){var J,he=150,ue=480,we=250,He=0,je=0,er=0,nr=0,br=0,Je,lr=0,ir=1,Mr=1,Sr=null,ot=it,et=null,ut,st,qr,Ur=dl,ct=.5,_t,Vt,oa,Zt,_a;function Et(Yr){return oa(Yr[0]*d,Yr[1]*d)}function yn(Yr){return Yr=oa.invert(Yr[0],Yr[1]),Yr&&[Yr[0]*h,Yr[1]*h]}Et.stream=function(Yr){return Zt&&_a===Yr?Zt:Zt=mf(gf(Je)(ot(_t(Ur(_a=Yr)))))},Et.preclip=function(Yr){return arguments.length?(ot=Yr,Sr=void 0,xa()):ot},Et.postclip=function(Yr){return arguments.length?(Ur=Yr,et=ut=st=qr=null,xa()):Ur},Et.clipAngle=function(Yr){return arguments.length?(ot=+Yr?vn(Sr=Yr*d):(Sr=null,it),xa()):Sr*h},Et.clipExtent=function(Yr){return arguments.length?(Ur=Yr==null?(et=ut=st=qr=null,dl):zn(et=+Yr[0][0],ut=+Yr[0][1],st=+Yr[1][0],qr=+Yr[1][1]),xa()):et==null?null:[[et,ut],[st,qr]]},Et.scale=function(Yr){return arguments.length?(he=+Yr,Ya()):he},Et.translate=function(Yr){return arguments.length?(ue=+Yr[0],we=+Yr[1],Ya()):[ue,we]},Et.center=function(Yr){return arguments.length?(He=Yr[0]%360*d,je=Yr[1]%360*d,Ya()):[He*h,je*h]},Et.rotate=function(Yr){return arguments.length?(er=Yr[0]%360*d,nr=Yr[1]%360*d,br=Yr.length>2?Yr[2]%360*d:0,Ya()):[er*h,nr*h,br*h]},Et.angle=function(Yr){return arguments.length?(lr=Yr%360*d,Ya()):lr*h},Et.reflectX=function(Yr){return arguments.length?(ir=Yr?-1:1,Ya()):ir<0},Et.reflectY=function(Yr){return arguments.length?(Mr=Yr?-1:1,Ya()):Mr<0},Et.precision=function(Yr){return arguments.length?(_t=Xc(Vt,ct=Yr*Yr),xa()):E(ct)},Et.fitExtent=function(Yr,Xt){return fs(Et,Yr,Xt)},Et.fitSize=function(Yr,Xt){return cs(Et,Yr,Xt)},Et.fitWidth=function(Yr,Xt){return hf(Et,Yr,Xt)},Et.fitHeight=function(Yr,Xt){return Ro(Et,Yr,Xt)};function Ya(){var Yr=yf(he,0,0,ir,Mr,lr).apply(null,J(He,je)),Xt=(lr?yf:U2)(he,ue-Yr[0],we-Yr[1],ir,Mr,lr);return Je=Fa(er,nr,br),Vt=ma(J,Xt),oa=ma(Je,Vt),_t=Xc(Vt,ct),xa()}function xa(){return Zt=_a=null,Et}return function(){return J=O.apply(this,arguments),Et.invert=J.invert&&yn,Ya()}}function hu(O){var J=0,he=u/3,ue=bf(O),we=ue(J,he);return we.parallels=function(He){return arguments.length?ue(J=He[0]*d,he=He[1]*d):[J*h,he*h]},we}function _f(O){var J=b(O);function he(ue,we){return[ue*J,T(we)/J]}return he.invert=function(ue,we){return[ue/J,B(we*J)]},he}function Wc(O,J){var he=T(O),ue=(he+T(J))/2;if(m(ue)<o)return _f(O);var we=1+he*(2*ue-he),He=E(we)/ue;function je(er,nr){var br=E(we-2*ue*T(nr))/ue;return[br*T(er*=ue),He-br*b(er)]}return je.invert=function(er,nr){var br=He-nr,Je=y(er,m(br))*M(br);return br*ue<0&&(Je-=u*M(er)*M(br)),[Je/ue,B((we-(er*er+br*br)*ue*ue)/(2*ue))]},je}function _l(){return hu(Wc).scale(155.424).center([0,33.6442])}function jc(){return _l().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function G2(O){var J=O.length;return{point:function(he,ue){for(var we=-1;++we<J;)O[we].point(he,ue)},sphere:function(){for(var he=-1;++he<J;)O[he].sphere()},lineStart:function(){for(var he=-1;++he<J;)O[he].lineStart()},lineEnd:function(){for(var he=-1;++he<J;)O[he].lineEnd()},polygonStart:function(){for(var he=-1;++he<J;)O[he].polygonStart()},polygonEnd:function(){for(var he=-1;++he<J;)O[he].polygonEnd()}}}function Y2(){var O,J,he=jc(),ue,we=_l().rotate([154,0]).center([-2,58.5]).parallels([55,65]),He,je=_l().rotate([157,0]).center([-3,19.9]).parallels([8,18]),er,nr,br={point:function(ir,Mr){nr=[ir,Mr]}};function Je(ir){var Mr=ir[0],Sr=ir[1];return nr=null,ue.point(Mr,Sr),nr||(He.point(Mr,Sr),nr)||(er.point(Mr,Sr),nr)}Je.invert=function(ir){var Mr=he.scale(),Sr=he.translate(),ot=(ir[0]-Sr[0])/Mr,et=(ir[1]-Sr[1])/Mr;return(et>=.12&&et<.234&&ot>=-.425&&ot<-.214?we:et>=.166&&et<.234&&ot>=-.214&&ot<-.115?je:he).invert(ir)},Je.stream=function(ir){return O&&J===ir?O:O=G2([he.stream(J=ir),we.stream(ir),je.stream(ir)])},Je.precision=function(ir){return arguments.length?(he.precision(ir),we.precision(ir),je.precision(ir),lr()):he.precision()},Je.scale=function(ir){return arguments.length?(he.scale(ir),we.scale(ir*.35),je.scale(ir),Je.translate(he.translate())):he.scale()},Je.translate=function(ir){if(!arguments.length)return he.translate();var Mr=he.scale(),Sr=+ir[0],ot=+ir[1];return ue=he.translate(ir).clipExtent([[Sr-.455*Mr,ot-.238*Mr],[Sr+.455*Mr,ot+.238*Mr]]).stream(br),He=we.translate([Sr-.307*Mr,ot+.201*Mr]).clipExtent([[Sr-.425*Mr+o,ot+.12*Mr+o],[Sr-.214*Mr-o,ot+.234*Mr-o]]).stream(br),er=je.translate([Sr-.205*Mr,ot+.212*Mr]).clipExtent([[Sr-.214*Mr+o,ot+.166*Mr+o],[Sr-.115*Mr-o,ot+.234*Mr-o]]).stream(br),lr()},Je.fitExtent=function(ir,Mr){return fs(Je,ir,Mr)},Je.fitSize=function(ir,Mr){return cs(Je,ir,Mr)},Je.fitWidth=function(ir,Mr){return hf(Je,ir,Mr)},Je.fitHeight=function(ir,Mr){return Ro(Je,ir,Mr)};function lr(){return O=J=null,Je}return Je.scale(1070)}function lo(O){return function(J,he){var ue=b(J),we=b(he),He=O(ue*we);return[He*we*T(J),He*T(he)]}}function Hi(O){return function(J,he){var ue=E(J*J+he*he),we=O(ue),He=T(we),je=b(we);return[y(J*He,ue*je),B(ue&&he*He/ue)]}}var Kn=lo(function(O){return E(2/(1+O))});Kn.invert=Hi(function(O){return 2*B(O/2)});function V2(){return Ii(Kn).scale(124.75).clipAngle(180-.001)}var du=lo(function(O){return(O=z(O))&&O/T(O)});du.invert=Hi(function(O){return O});function Zc(){return Ii(du).scale(79.4188).clipAngle(180-.001)}function ui(O,J){return[O,_(P((s+J)/2))]}ui.invert=function(O,J){return[O,2*p(x(J))-s]};function Jc(){return $c(ui).scale(961/c)}function $c(O){var J=Ii(O),he=J.center,ue=J.scale,we=J.translate,He=J.clipExtent,je=null,er,nr,br;J.scale=function(lr){return arguments.length?(ue(lr),Je()):ue()},J.translate=function(lr){return arguments.length?(we(lr),Je()):we()},J.center=function(lr){return arguments.length?(he(lr),Je()):he()},J.clipExtent=function(lr){return arguments.length?(lr==null?je=er=nr=br=null:(je=+lr[0][0],er=+lr[0][1],nr=+lr[1][0],br=+lr[1][1]),Je()):je==null?null:[[je,er],[nr,br]]};function Je(){var lr=u*ue(),ir=J(Xu(J.rotate()).invert([0,0]));return He(je==null?[[ir[0]-lr,ir[1]-lr],[ir[0]+lr,ir[1]+lr]]:O===ui?[[Math.max(ir[0]-lr,je),er],[Math.min(ir[0]+lr,nr),br]]:[[je,Math.max(ir[1]-lr,er)],[nr,Math.min(ir[1]+lr,br)]])}return Je()}function vs(O){return P((s+O)/2)}function Kc(O,J){var he=b(O),ue=O===J?T(O):_(he/b(J))/_(vs(J)/vs(O)),we=he*A(vs(O),ue)/ue;if(!ue)return ui;function He(je,er){we>0?er<-s+o&&(er=-s+o):er>s-o&&(er=s-o);var nr=we/A(vs(er),ue);return[nr*T(ue*je),we-nr*b(ue*je)]}return He.invert=function(je,er){var nr=we-er,br=M(ue)*E(je*je+nr*nr),Je=y(je,m(nr))*M(nr);return nr*ue<0&&(Je-=u*M(je)*M(nr)),[Je/ue,2*p(A(we/br,1/ue))-s]},He}function Qs(){return hu(Kc).scale(109.5).parallels([30,30])}function hs(O,J){return[O,J]}hs.invert=hs;function e0(){return Ii(hs).scale(152.63)}function ds(O,J){var he=b(O),ue=O===J?T(O):(he-b(J))/(J-O),we=he/ue+O;if(m(ue)<o)return hs;function He(je,er){var nr=we-er,br=ue*je;return[nr*T(br),we-nr*b(br)]}return He.invert=function(je,er){var nr=we-er,br=y(je,m(nr))*M(nr);return nr*ue<0&&(br-=u*M(je)*M(nr)),[br/ue,we-M(ue)*E(je*je+nr*nr)]},He}function X2(){return hu(ds).scale(131.154).center([0,13.9389])}var ps=1.340264,xl=-.081106,ms=893e-6,wl=.003796,pu=E(3)/2,r0=12;function gs(O,J){var he=B(pu*T(J)),ue=he*he,we=ue*ue*ue;return[O*b(he)/(pu*(ps+3*xl*ue+we*(7*ms+9*wl*ue))),he*(ps+xl*ue+we*(ms+wl*ue))]}gs.invert=function(O,J){for(var he=J,ue=he*he,we=ue*ue*ue,He=0,je,er,nr;He<r0&&(er=he*(ps+xl*ue+we*(ms+wl*ue))-J,nr=ps+3*xl*ue+we*(7*ms+9*wl*ue),he-=je=er/nr,ue=he*he,we=ue*ue*ue,!(m(je)<l));++He);return[pu*O*(ps+3*xl*ue+we*(7*ms+9*wl*ue))/b(he),B(T(he)/pu)]};function Qc(){return Ii(gs).scale(177.158)}function t0(O,J){var he=b(J),ue=b(O)*he;return[he*T(O)/ue,T(J)/ue]}t0.invert=Hi(p);function e1(){return Ii(t0).scale(144.049).clipAngle(60)}function r1(){var O=1,J=0,he=0,ue=1,we=1,He=0,je,er,nr=null,br,Je,lr,ir=1,Mr=1,Sr=Po({point:function(Ur,ct){var _t=qr([Ur,ct]);this.stream.point(_t[0],_t[1])}}),ot=dl,et,ut;function st(){return ir=O*ue,Mr=O*we,et=ut=null,qr}function qr(Ur){var ct=Ur[0]*ir,_t=Ur[1]*Mr;if(He){var Vt=_t*je-ct*er;ct=ct*je+_t*er,_t=Vt}return[ct+J,_t+he]}return qr.invert=function(Ur){var ct=Ur[0]-J,_t=Ur[1]-he;if(He){var Vt=_t*je+ct*er;ct=ct*je-_t*er,_t=Vt}return[ct/ir,_t/Mr]},qr.stream=function(Ur){return et&&ut===Ur?et:et=Sr(ot(ut=Ur))},qr.postclip=function(Ur){return arguments.length?(ot=Ur,nr=br=Je=lr=null,st()):ot},qr.clipExtent=function(Ur){return arguments.length?(ot=Ur==null?(nr=br=Je=lr=null,dl):zn(nr=+Ur[0][0],br=+Ur[0][1],Je=+Ur[1][0],lr=+Ur[1][1]),st()):nr==null?null:[[nr,br],[Je,lr]]},qr.scale=function(Ur){return arguments.length?(O=+Ur,st()):O},qr.translate=function(Ur){return arguments.length?(J=+Ur[0],he=+Ur[1],st()):[J,he]},qr.angle=function(Ur){return arguments.length?(He=Ur%360*d,er=T(He),je=b(He),st()):He*h},qr.reflectX=function(Ur){return arguments.length?(ue=Ur?-1:1,st()):ue<0},qr.reflectY=function(Ur){return arguments.length?(we=Ur?-1:1,st()):we<0},qr.fitExtent=function(Ur,ct){return fs(qr,Ur,ct)},qr.fitSize=function(Ur,ct){return cs(qr,Ur,ct)},qr.fitWidth=function(Ur,ct){return hf(qr,Ur,ct)},qr.fitHeight=function(Ur,ct){return Ro(qr,Ur,ct)},qr}function xf(O,J){var he=J*J,ue=he*he;return[O*(.8707-.131979*he+ue*(-.013791+ue*(.003971*he-.001529*ue))),J*(1.007226+he*(.015085+ue*(-.044475+.028874*he-.005916*ue)))]}xf.invert=function(O,J){var he=J,ue=25,we;do{var He=he*he,je=He*He;he-=we=(he*(1.007226+He*(.015085+je*(-.044475+.028874*He-.005916*je)))-J)/(1.007226+He*(.015085*3+je*(-.044475*7+.028874*9*He-.005916*11*je)))}while(m(we)>o&&--ue>0);return[O/(.8707+(He=he*he)*(-.131979+He*(-.013791+He*He*He*(.003971-.001529*He)))),he]};function a0(){return Ii(xf).scale(175.295)}function tn(O,J){return[b(J)*T(O),T(J)]}tn.invert=Hi(B);function Ti(){return Ii(tn).scale(249.5).clipAngle(90+o)}function mu(O,J){var he=b(J),ue=1+b(O)*he;return[he*T(O)/ue,T(J)/ue]}mu.invert=Hi(function(O){return 2*p(O)});function n0(){return Ii(mu).scale(250).clipAngle(142)}function ys(O,J){return[_(P((s+J)/2)),-O]}ys.invert=function(O,J){return[-J,2*p(x(O))-s]};function wf(){var O=$c(ys),J=O.center,he=O.rotate;return O.center=function(ue){return arguments.length?J([-ue[1],ue[0]]):(ue=J(),[ue[1],-ue[0]])},O.rotate=function(ue){return arguments.length?he([ue[0],ue[1],ue.length>2?ue[2]+90:90]):(ue=he(),[ue[0],ue[1],ue[2]-90])},he([0,0,90]).scale(159.155)}e.geoAlbers=jc,e.geoAlbersUsa=Y2,e.geoArea=$,e.geoAzimuthalEqualArea=V2,e.geoAzimuthalEqualAreaRaw=Kn,e.geoAzimuthalEquidistant=Zc,e.geoAzimuthalEquidistantRaw=du,e.geoBounds=Cr,e.geoCentroid=za,e.geoCircle=Wu,e.geoClipAntimeridian=it,e.geoClipCircle=vn,e.geoClipExtent=cl,e.geoClipRectangle=zn,e.geoConicConformal=Qs,e.geoConicConformalRaw=Kc,e.geoConicEqualArea=_l,e.geoConicEqualAreaRaw=Wc,e.geoConicEquidistant=X2,e.geoConicEquidistantRaw=ds,e.geoContains=es,e.geoDistance=hl,e.geoEqualEarth=Qc,e.geoEqualEarthRaw=gs,e.geoEquirectangular=e0,e.geoEquirectangularRaw=hs,e.geoGnomonic=e1,e.geoGnomonicRaw=t0,e.geoGraticule=Ic,e.geoGraticule10=ts,e.geoIdentity=r1,e.geoInterpolate=z2,e.geoLength=$u,e.geoMercator=Jc,e.geoMercatorRaw=ui,e.geoNaturalEarth1=a0,e.geoNaturalEarth1Raw=xf,e.geoOrthographic=Ti,e.geoOrthographicRaw=tn,e.geoPath=vf,e.geoProjection=Ii,e.geoProjectionMutator=bf,e.geoRotation=Xu,e.geoStereographic=n0,e.geoStereographicRaw=mu,e.geoStream=te,e.geoTransform=O2,e.geoTransverseMercator=wf,e.geoTransverseMercatorRaw=ys,Object.defineProperty(e,"__esModule",{value:!0})}))});var bU=ae((B6e,yU)=>{"use strict";var gU={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"},Xve=new Set(Object.values(gU));yU.exports={usaLocationAbbreviations:Xve,usaLocationList:gU}});var _U={};u1(_U,{COUNTRIES_X:()=>Wve});var Wve,xU=l1(()=>{"use strict";Wve=[{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 F2=ae((I6e,MU)=>{"use strict";var jve=St(),{COUNTRIES:Zve,createLookup:Jve}=$O(),{area:$ve}=cU(),{centroid:Kve}=hU(),{coordAll:Qve}=P3(),{geoBounds:ehe}=I3(),rhe=dp(),W0=As(),the=l0(),ahe=K2(),H3=ng(),{usaLocationAbbreviations:nhe,usaLocationList:ihe}=bU(),{COUNTRIES_X:ohe}=(xU(),ei(_U)),{lookupAlpha3:lhe}=Jve([...Zve,...ohe]),uhe={"ISO-3":rhe,"USA-states":fhe,"country names":she};function she(e){let r=lhe(e);return r||(W0.log("Unrecognized country name: "+e+"."),!1)}function fhe(e){e=e.trim();let r=nhe.has(e.toUpperCase())?e.toUpperCase():ihe[e.toLowerCase()];return r||(W0.log("Unrecognized US location: "+e+"."),!1)}function che(e,r,t){var n;if(!r||typeof r!="string")return!1;let a=uhe[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;W0.log(`Location with id ${a} does not have a matching topojson feature at this resolution.`)}return!1}var O3=360;function b8(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 vhe(e){var r=e.geometry,t=r.coordinates,a=e.id,n=[],i,o,l,u;switch(a==="RUS"||a==="FJI"?i=function(s){var f;if(b8(s)===null)f=s;else for(f=new Array(s.length),u=0;u<s.length;u++)f[u]=[s[u][0]<0?s[u][0]+O3:s[u][0],s[u][1]];n.push(H3.tester(f))}:a==="ATA"?i=function(s){var f=b8(s);if(f===null)return n.push(H3.tester(s));var c=new Array(s.length+1),h=0;for(u=0;u<s.length;u++)u>f?c[h++]=[s[u][0]+O3,s[u][1]]:u===f?(c[h++]=s[u],c[h++]=[s[u][0],-90]):c[h++]=s[u];var d=H3.tester(c);d.pts.pop(),n.push(d)}:i=function(s){n.push(H3.tester(s))},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 _8(e){var r=e.geojson,t=window.PlotlyGeoAssets||{},a=typeof r=="string"?t[r]:r;return the(a)?a:(W0.error("Oops ... something went wrong when fetching "+r),!1)}function hhe(e){var r=e[0].trace,t=_8(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=ahe(f,r.featureidkey||"id").get(),h=a[c];if(h){var d=f.geometry;if(d.type==="Polygon"||d.type==="MultiPolygon"){var m={type:"Feature",id:c,geometry:d,properties:{}};m.properties.ct=dhe(m),isNaN(m.properties.ct[0])&&W0.log(["Location",h.loc,"has no polygon with positive area.","Its centroid could not be computed,","so hover and selection will not work for it."].join(" ")),h.fIn=f,h.fOut=m,n.push(m)}else W0.log(["Location",h.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 u=t.features;for(i=0;i<u.length;i++)l(u[i]);break;case"Feature":l(t);break;default:return W0.warn(["Invalid GeoJSON type",(t.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var s in a)W0.log(["Location *"+s+"*","does not have a matching feature with id-key","*"+r.featureidkey+"*."].join(" "));return n}function dhe(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=$ve(o);l>n&&(n=l,t=o)}else t=r;return!t||!t.coordinates.some(u=>u.length>0)?[NaN,NaN]:Kve(t).geometry.coordinates}function phe(e){var r=window.PlotlyGeoAssets||{},t=[];function a(u){return new Promise(function(s,f){jve.json(u,function(c,h){if(c){delete r[u];var d=c.status===404?'GeoJSON at URL "'+u+'" does not exist.':"Unexpected error while fetching from "+u;return f(new Error(d))}return r[u]=h,s(h)})})}function n(u){return new Promise(function(s,f){var c=0,h=setInterval(function(){if(r[u]&&r[u]!=="pending")return clearInterval(h),s(r[u]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+u);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 mhe=e=>w8(x8(e));function x8(e){try{return Qve(e)}catch(r){return[]}}function w8(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]]=ehe({type:"MultiPoint",coordinates:e});return[r,t,AU([r,a])[1],n]}var ghe=(e,r)=>r.fitbounds==="geojson"&&e.locationmode==="geojson-id",wU=(e,r)=>ghe(e,r)?x8(_8(e)):[],yhe=(e,r)=>w8(wU(e,r));function AU([e,r]){return[e,e>r?r+O3:r]}MU.exports={locationToFeature:che,feature2polygons:vhe,getTraceGeojson:_8,extractTraceFeature:hhe,fetchTraceGeoData:phe,boundsOfCoords:w8,computeBbox:mhe,coordsOf:x8,doesCrossAntiMeridian:b8,fitGeojsonBbox:yhe,fitGeojsonCoords:wU,unwrapLonRange:AU,ANTIMERIDIAN_LON_SHIFT:O3}});var A8=ae((H6e,CU)=>{"use strict";var bhe=St(),_he=va(),TU=Lt(),kU=Bh(),xhe=kU.stylePoints,whe=kU.styleText;CU.exports=function(r,t){t&&Ahe(r,t)};function Ahe(e,r){var t=r[0].trace,a=r[0].node3;a.style("opacity",r[0].trace.opacity),xhe(a,t,e),whe(a,t,e),a.selectAll("path.js-line").style("fill","none").each(function(n){var i=bhe.select(this),o=n.trace,l=o.line||{};i.call(TU.stroke,l.color).call(_he.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(TU.fill,o.fillcolor)})}});var Y3=ae((O6e,FU)=>{"use strict";var DU=St(),U3=mr(),Mhe=S3().getTopojsonFeatures,M8=XO(),G3=F2(),SU=D0().findExtremes,k8=Oa().BADNUM,The=Hg().calcMarkerSize,T8=pi(),khe=A8();function Che(e,r,t){var a=r.layers.frontplot.select(".scatterlayer"),n=U3.makeTraceGroups(a,t,"trace scattergeo");function i(o,l){o.lonlat[0]===k8&&DU.select(l).remove()}n.selectAll("*").remove(),n.each(function(o){var l=DU.select(this),u=o[0].trace;if(T8.hasLines(u)||u.fill!=="none"){var s=M8.calcTraceToLineCoords(o),f=u.fill!=="none"?M8.makePolygon(s):M8.makeLine(s);l.selectAll("path.js-line").data([{geojson:f,trace:u}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}T8.hasMarkers(u)&&l.selectAll("path.point").data(U3.identity).enter().append("path").classed("point",!0).each(function(c){i(c,this)}),T8.hasText(u)&&l.selectAll("g").data(U3.identity).enter().append("g").append("text").each(function(c){i(c,this)}),khe(e,o)})}function Dhe(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t._length,o,l;if(U3.isArrayOrTypedArray(t.locations)){var u=t.locationmode,s=u==="geojson-id"?G3.extractTraceFeature(e):Mhe(t,n.topojson);for(o=0;o<i;o++){l=e[o];var f=u==="geojson-id"?l.fOut:G3.locationToFeature(u,l.loc,s);l.lonlat=f?f.properties.ct:[k8,k8]}}var c={padded:!0},h,d;let m=G3.fitGeojsonBbox(t,a);if(m){let[p,y,b,C]=m;h=[p,b],d=[y,C]}else{for(h=new Array(i),d=new Array(i),o=0;o<i;o++)l=e[o],h[o]=l.lonlat[0],d[o]=l.lonlat[1];c.ppad=The(t,i)}t._extremes.lon=SU(a.lonaxis._ax,h,c),t._extremes.lat=SU(a.lataxis._ax,d,c)}function She(e,r){let t=G3.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}FU.exports={calcGeoJSON:Dhe,fitCoords:She,plot:Che}});var LU=ae((U6e,EU)=>{"use strict";var Fhe=Hl(),Ehe=Oa().BADNUM,Lhe=t9(),qhe=mr().fillText,Phe=Kh();EU.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.xa,l=r.ya,u=r.subplot,s=u.projection.isLonLatOverEdges,f=u.project;function c(C){var x=C.lonlat;if(x[0]===Ehe||s(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(Fhe.getClosest(n,c,r),r.index!==!1){var h=n[r.index],d=h.lonlat,m=[o.c2p(d),l.c2p(d)],p=h.mrc||1;r.x0=m[0]-p,r.x1=m[0]+p,r.y0=m[1]-p,r.y1=m[1]+p,r.loc=h.loc,r.lon=d[0],r.lat=d[1];var y={};y[i.geo]={_subplot:u};var b=i._module.formatLabels(h,i,y);return r.lonLabel=b.lonLabel,r.latLabel=b.latLabel,r.color=Lhe(i,h),r.extraText=Rhe(i,h,r,n[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function Rhe(e,r,t,a){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,i=n==="all"?Phe.hoverinfo.flags:n.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,u=i.indexOf("lat")!==-1,s=i.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(r.loc):l&&u?f.push("("+c(t.latLabel)+", "+c(t.lonLabel)+")"):l?f.push(a.lon+c(t.lonLabel)):u&&f.push(a.lat+c(t.latLabel)),s&&qhe(r,e,f),f.join("<br>")}});var PU=ae((G6e,qU)=>{"use strict";qU.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 NU=ae((Y6e,zU)=>{"use strict";var RU=pi(),zhe=Oa().BADNUM;zU.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,u,s,f,c,h,d=!RU.hasMarkers(l)&&!RU.hasText(l);if(d)return[];if(t===!1)for(h=0;h<a.length;h++)a[h].selected=0;else for(h=0;h<a.length;h++)u=a[h],s=u.lonlat,s[0]!==zhe&&(f=n.c2p(s),c=i.c2p(s),t.contains([f,c],null,h,r)?(o.push({pointNumber:h,lon:s[0],lat:s[1]}),u.selected=1):u.selected=0);return o}});var IU=ae((V3,BU)=>{(function(e,r){r(typeof V3=="object"&&typeof BU!="undefined"?V3:e.d3=e.d3||{})})(V3,(function(e){"use strict";function r(j,ee){return j<ee?-1:j>ee?1:j>=ee?0:NaN}function t(j){return j.length===1&&(j=a(j)),{left:function(ee,me,K,$){for(K==null&&(K=0),$==null&&($=ee.length);K<$;){var se=K+$>>>1;j(ee[se],me)<0?K=se+1:$=se}return K},right:function(ee,me,K,$){for(K==null&&(K=0),$==null&&($=ee.length);K<$;){var se=K+$>>>1;j(ee[se],me)>0?$=se:K=se+1}return K}}}function a(j){return function(ee,me){return r(j(ee),me)}}var n=t(r),i=n.right,o=n.left;function l(j,ee){ee==null&&(ee=u);for(var me=0,K=j.length-1,$=j[0],se=new Array(K<0?0:K);me<K;)se[me]=ee($,$=j[++me]);return se}function u(j,ee){return[j,ee]}function s(j,ee,me){var K=j.length,$=ee.length,se=new Array(K*$),_e,Ne,$e,ar;for(me==null&&(me=u),_e=$e=0;_e<K;++_e)for(ar=j[_e],Ne=0;Ne<$;++Ne,++$e)se[$e]=me(ar,ee[Ne]);return se}function f(j,ee){return ee<j?-1:ee>j?1:ee>=j?0:NaN}function c(j){return j===null?NaN:+j}function h(j,ee){var me=j.length,K=0,$=-1,se=0,_e,Ne,$e=0;if(ee==null)for(;++$<me;)isNaN(_e=c(j[$]))||(Ne=_e-se,se+=Ne/++K,$e+=Ne*(_e-se));else for(;++$<me;)isNaN(_e=c(ee(j[$],$,j)))||(Ne=_e-se,se+=Ne/++K,$e+=Ne*(_e-se));if(K>1)return $e/(K-1)}function d(j,ee){var me=h(j,ee);return me&&Math.sqrt(me)}function m(j,ee){var me=j.length,K=-1,$,se,_e;if(ee==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(se=_e=$;++K<me;)($=j[K])!=null&&(se>$&&(se=$),_e<$&&(_e=$))}else for(;++K<me;)if(($=ee(j[K],K,j))!=null&&$>=$)for(se=_e=$;++K<me;)($=ee(j[K],K,j))!=null&&(se>$&&(se=$),_e<$&&(_e=$));return[se,_e]}var p=Array.prototype,y=p.slice,b=p.map;function C(j){return function(){return j}}function x(j){return j}function _(j,ee,me){j=+j,ee=+ee,me=($=arguments.length)<2?(ee=j,j=0,1):$<3?1:+me;for(var K=-1,$=Math.max(0,Math.ceil((ee-j)/me))|0,se=new Array($);++K<$;)se[K]=j+K*me;return se}var A=Math.sqrt(50),T=Math.sqrt(10),M=Math.sqrt(2);function E(j,ee,me){var K,$=-1,se,_e,Ne;if(ee=+ee,j=+j,me=+me,j===ee&&me>0)return[j];if((K=ee<j)&&(se=j,j=ee,ee=se),(Ne=P(j,ee,me))===0||!isFinite(Ne))return[];if(Ne>0)for(j=Math.ceil(j/Ne),ee=Math.floor(ee/Ne),_e=new Array(se=Math.ceil(ee-j+1));++$<se;)_e[$]=(j+$)*Ne;else for(j=Math.floor(j*Ne),ee=Math.ceil(ee*Ne),_e=new Array(se=Math.ceil(j-ee+1));++$<se;)_e[$]=(j-$)/Ne;return K&&_e.reverse(),_e}function P(j,ee,me){var K=(ee-j)/Math.max(0,me),$=Math.floor(Math.log(K)/Math.LN10),se=K/Math.pow(10,$);return $>=0?(se>=A?10:se>=T?5:se>=M?2:1)*Math.pow(10,$):-Math.pow(10,-$)/(se>=A?10:se>=T?5:se>=M?2:1)}function z(j,ee,me){var K=Math.abs(ee-j)/Math.max(0,me),$=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),se=K/$;return se>=A?$*=10:se>=T?$*=5:se>=M&&($*=2),ee<j?-$:$}function B(j){return Math.ceil(Math.log(j.length)/Math.LN2)+1}function X(){var j=x,ee=m,me=B;function K($){var se,_e=$.length,Ne,$e=new Array(_e);for(se=0;se<_e;++se)$e[se]=j($[se],se,$);var ar=ee($e),tr=ar[0],fr=ar[1],Re=me($e,tr,fr);Array.isArray(Re)||(Re=z(tr,fr,Re),Re=_(Math.ceil(tr/Re)*Re,fr,Re));for(var ur=Re.length;Re[0]<=tr;)Re.shift(),--ur;for(;Re[ur-1]>fr;)Re.pop(),--ur;var hr=new Array(ur+1),dr;for(se=0;se<=ur;++se)dr=hr[se]=[],dr.x0=se>0?Re[se-1]:tr,dr.x1=se<ur?Re[se]:fr;for(se=0;se<_e;++se)Ne=$e[se],tr<=Ne&&Ne<=fr&&hr[i(Re,Ne,0,ur)].push($[se]);return hr}return K.value=function($){return arguments.length?(j=typeof $=="function"?$:C($),K):j},K.domain=function($){return arguments.length?(ee=typeof $=="function"?$:C([$[0],$[1]]),K):ee},K.thresholds=function($){return arguments.length?(me=typeof $=="function"?$:Array.isArray($)?C(y.call($)):C($),K):me},K}function H(j,ee,me){if(me==null&&(me=c),!!(K=j.length)){if((ee=+ee)<=0||K<2)return+me(j[0],0,j);if(ee>=1)return+me(j[K-1],K-1,j);var K,$=(K-1)*ee,se=Math.floor($),_e=+me(j[se],se,j),Ne=+me(j[se+1],se+1,j);return _e+(Ne-_e)*($-se)}}function V(j,ee,me){return j=b.call(j,c).sort(r),Math.ceil((me-ee)/(2*(H(j,.75)-H(j,.25))*Math.pow(j.length,-1/3)))}function I(j,ee,me){return Math.ceil((me-ee)/(3.5*d(j)*Math.pow(j.length,-1/3)))}function Q(j,ee){var me=j.length,K=-1,$,se;if(ee==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(se=$;++K<me;)($=j[K])!=null&&$>se&&(se=$)}else for(;++K<me;)if(($=ee(j[K],K,j))!=null&&$>=$)for(se=$;++K<me;)($=ee(j[K],K,j))!=null&&$>se&&(se=$);return se}function le(j,ee){var me=j.length,K=me,$=-1,se,_e=0;if(ee==null)for(;++$<me;)isNaN(se=c(j[$]))?--K:_e+=se;else for(;++$<me;)isNaN(se=c(ee(j[$],$,j)))?--K:_e+=se;if(K)return _e/K}function re(j,ee){var me=j.length,K=-1,$,se=[];if(ee==null)for(;++K<me;)isNaN($=c(j[K]))||se.push($);else for(;++K<me;)isNaN($=c(ee(j[K],K,j)))||se.push($);return H(se.sort(r),.5)}function te(j){for(var ee=j.length,me,K=-1,$=0,se,_e;++K<ee;)$+=j[K].length;for(se=new Array($);--ee>=0;)for(_e=j[ee],me=_e.length;--me>=0;)se[--$]=_e[me];return se}function oe(j,ee){var me=j.length,K=-1,$,se;if(ee==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(se=$;++K<me;)($=j[K])!=null&&se>$&&(se=$)}else for(;++K<me;)if(($=ee(j[K],K,j))!=null&&$>=$)for(se=$;++K<me;)($=ee(j[K],K,j))!=null&&se>$&&(se=$);return se}function ce(j,ee){for(var me=ee.length,K=new Array(me);me--;)K[me]=j[ee[me]];return K}function Me(j,ee){if(me=j.length){var me,K=0,$=0,se,_e=j[$];for(ee==null&&(ee=r);++K<me;)(ee(se=j[K],_e)<0||ee(_e,_e)!==0)&&(_e=se,$=K);if(ee(_e,_e)===0)return $}}function Se(j,ee,me){for(var K=(me==null?j.length:me)-(ee=ee==null?0:+ee),$,se;K;)se=Math.random()*K--|0,$=j[K+ee],j[K+ee]=j[se+ee],j[se+ee]=$;return j}function Ie(j,ee){var me=j.length,K=-1,$,se=0;if(ee==null)for(;++K<me;)($=+j[K])&&(se+=$);else for(;++K<me;)($=+ee(j[K],K,j))&&(se+=$);return se}function Ue(j){if(!(se=j.length))return[];for(var ee=-1,me=oe(j,ke),K=new Array(me);++ee<me;)for(var $=-1,se,_e=K[ee]=new Array(se);++$<se;)_e[$]=j[$][ee];return K}function ke(j){return j.length}function We(){return Ue(arguments)}e.bisect=i,e.bisectRight=i,e.bisectLeft=o,e.ascending=r,e.bisector=t,e.cross=s,e.descending=f,e.deviation=d,e.extent=m,e.histogram=X,e.thresholdFreedmanDiaconis=V,e.thresholdScott=I,e.thresholdSturges=B,e.max=Q,e.mean=le,e.median=re,e.merge=te,e.min=oe,e.pairs=l,e.permute=ce,e.quantile=H,e.range=_,e.scan=Me,e.shuffle=Se,e.sum=Ie,e.ticks=E,e.tickIncrement=P,e.tickStep=z,e.transpose=Ue,e.variance=h,e.zip=We,Object.defineProperty(e,"__esModule",{value:!0})}))});var OU=ae((X3,HU)=>{(function(e,r){typeof X3=="object"&&typeof HU!="undefined"?r(X3,I3(),IU()):r(e.d3=e.d3||{},e.d3,e.d3)})(X3,(function(e,r,t){"use strict";var a=Math.abs,n=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,u=Math.floor,s=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,m=Math.sign||function(k){return k>0?1:k<0?-1:0},p=Math.sin,y=Math.tan,b=1e-6,C=1e-12,x=Math.PI,_=x/2,A=x/4,T=Math.SQRT1_2,M=I(2),E=I(x),P=x*2,z=180/x,B=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 I(k){return k>0?Math.sqrt(k):0}function Q(k){return k=l(2*k),(k-1)/(k+1)}function le(k){return(l(k)-l(-k))/2}function re(k){return(l(k)+l(-k))/2}function te(k){return s(k+I(k*k+1))}function oe(k){return s(k+I(k*k-1))}function ce(k){var S=y(k/2),q=2*s(o(k/2))/(S*S);function R(G,U){var W=o(G),ve=o(U),de=p(U),fe=ve*W,pe=-((1-fe?s((1+fe)/2)/(1-fe):-.5)+q/(1+fe));return[pe*ve*p(G),pe*de]}return R.invert=function(G,U){var W=I(G*G+U*U),ve=-k/2,de=50,fe;if(!W)return[0,0];do{var pe=ve/2,xe=o(pe),De=p(pe),ze=De/xe,Ke=-s(a(xe));ve-=fe=(2/ze*Ke-q*ze-W)/(-Ke/(De*De)+1-q/(2*xe*xe))*(xe<0?.7:1)}while(a(fe)>b&&--de>0);var or=p(ve);return[i(G*or,W*o(ve)),H(U*or/W)]},R}function Me(){var k=_,S=r.geoProjectionMutator(ce),q=S(k);return q.radius=function(R){return arguments.length?S(k=R*B):k*z},q.scale(179.976).clipAngle(147)}function Se(k,S){var q=o(S),R=X(V(q*o(k/=2)));return[2*q*p(k)*R,p(S)*R]}Se.invert=function(k,S){if(!(k*k+4*S*S>x*x+b)){var q=k,R=S,G=25;do{var U=p(q),W=p(q/2),ve=o(q/2),de=p(R),fe=o(R),pe=p(2*R),xe=de*de,De=fe*fe,ze=W*W,Ke=1-De*ve*ve,or=Ke?V(fe*ve)*I(Tr=1/Ke):Tr=0,Tr,$r=2*or*fe*W-k,ft=or*de-S,vt=Tr*(De*ze+or*fe*ve*xe),dt=Tr*(.5*U*pe-or*2*de*W),gt=Tr*.25*(pe*W-or*de*De*U),sa=Tr*(xe*ve+or*ze*fe),Sa=dt*gt-sa*vt;if(!Sa)break;var Ht=(ft*dt-$r*sa)/Sa,Va=($r*gt-ft*vt)/Sa;q-=Ht,R-=Va}while((a(Ht)>b||a(Va)>b)&&--G>0);return[q,R]}};function Ie(){return r.geoProjection(Se).scale(152.63)}function Ue(k){var S=p(k),q=o(k),R=k>=0?1:-1,G=y(R*k),U=(1+S-q)/2;function W(ve,de){var fe=o(de),pe=o(ve/=2);return[(1+fe)*p(ve),(R*de>-i(pe,G)-.001?0:-R*10)+U+p(de)*q-(1+fe)*S*pe]}return W.invert=function(ve,de){var fe=0,pe=0,xe=50;do{var De=o(fe),ze=p(fe),Ke=o(pe),or=p(pe),Tr=1+Ke,$r=Tr*ze-ve,ft=U+or*q-Tr*S*De-de,vt=Tr*De/2,dt=-ze*or,gt=S*Tr*ze/2,sa=q*Ke+S*De*or,Sa=dt*gt-sa*vt,Ht=(ft*dt-$r*sa)/Sa/2,Va=($r*gt-ft*vt)/Sa;a(Va)>2&&(Va/=2),fe-=Ht,pe-=Va}while((a(Ht)>b||a(Va)>b)&&--xe>0);return R*pe>-i(o(fe),G)-.001?[fe*2,pe]:null},W}function ke(){var k=20*B,S=k>=0?1:-1,q=y(S*k),R=r.geoProjectionMutator(Ue),G=R(k),U=G.stream;return G.parallel=function(W){return arguments.length?(q=y((S=(k=W*B)>=0?1:-1)*k),R(k)):k*z},G.stream=function(W){var ve=G.rotate(),de=U(W),fe=(G.rotate([0,0]),U(W)),pe=G.precision();return G.rotate(ve),de.sphere=function(){fe.polygonStart(),fe.lineStart();for(var xe=S*-180;S*xe<180;xe+=S*90)fe.point(xe,S*90);if(k)for(;S*(xe-=3*S*pe)>=-180;)fe.point(xe,S*-i(o(xe*B/2),q)*z);fe.lineEnd(),fe.polygonEnd()},de},G.scale(218.695).center([0,28.0974])}function We(k,S){var q=y(S/2),R=I(1-q*q),G=1+R*o(k/=2),U=p(k)*R/G,W=q/G,ve=U*U,de=W*W;return[4/3*U*(3+ve-3*de),4/3*W*(3+3*ve-de)]}We.invert=function(k,S){if(k*=3/8,S*=3/8,!k&&a(S)>1)return null;var q=k*k,R=S*S,G=1+q+R,U=I((G-I(G*G-4*S*S))/2),W=H(U)/3,ve=U?oe(a(S/U))/3:te(a(k))/3,de=o(W),fe=re(ve),pe=fe*fe-de*de;return[m(k)*2*i(le(ve)*de,.25-pe),m(S)*2*i(fe*p(W),.25+pe)]};function j(){return r.geoProjection(We).scale(66.1603)}var ee=I(8),me=s(1+M);function K(k,S){var q=a(S);return q<A?[k,s(y(A+S/2))]:[k*o(q)*(2*M-1/p(q)),m(S)*(2*M*(q-A)-s(y(q/2)))]}K.invert=function(k,S){if((U=a(S))<me)return[k,2*n(l(S))-_];var q=A,R=25,G,U;do{var W=o(q/2),ve=y(q/2);q-=G=(ee*(q-A)-s(ve)-U)/(ee-W*W/(2*ve))}while(a(G)>C&&--R>0);return[k/(o(q)*(ee-1/p(q))),m(S)*q]};function $(){return r.geoProjection(K).scale(112.314)}function se(k){var S=2*x/k;function q(R,G){var U=r.geoAzimuthalEquidistantRaw(R,G);if(a(R)>_){var W=i(U[1],U[0]),ve=I(U[0]*U[0]+U[1]*U[1]),de=S*d((W-_)/S)+_,fe=i(p(W-=de),2-o(W));W=de+H(x/ve*p(fe))-fe,U[0]=ve*o(W),U[1]=ve*p(W)}return U}return q.invert=function(R,G){var U=I(R*R+G*G);if(U>_){var W=i(G,R),ve=S*d((W-_)/S)+_,de=W>ve?-1:1,fe=U*o(ve-W),pe=1/y(de*V((fe-x)/I(x*(x-2*fe)+U*U)));W=ve+2*n((pe+de*I(pe*pe-3))/3),R=U*o(W),G=U*p(W)}return r.geoAzimuthalEquidistantRaw.invert(R,G)},q}function _e(){var k=5,S=r.geoProjectionMutator(se),q=S(k),R=q.stream,G=.01,U=-o(G*B),W=p(G*B);return q.lobes=function(ve){return arguments.length?S(k=+ve):k},q.stream=function(ve){var de=q.rotate(),fe=R(ve),pe=(q.rotate([0,0]),R(ve));return q.rotate(de),fe.sphere=function(){pe.polygonStart(),pe.lineStart();for(var xe=0,De=360/k,ze=2*x/k,Ke=90-180/k,or=_;xe<k;++xe,Ke-=De,or-=ze)pe.point(i(W*o(or),U)*z,H(W*p(or))*z),Ke<-90?(pe.point(-90,-180-Ke-G),pe.point(-90,-180-Ke+G)):(pe.point(90,Ke+G),pe.point(90,Ke-G));pe.lineEnd(),pe.polygonEnd()},fe},q.scale(87.8076).center([0,17.1875]).clipAngle(180-.001)}function Ne(k,S){if(arguments.length<2&&(S=k),S===1)return r.geoAzimuthalEqualAreaRaw;if(S===1/0)return $e;function q(R,G){var U=r.geoAzimuthalEqualAreaRaw(R/S,G);return U[0]*=k,U}return q.invert=function(R,G){var U=r.geoAzimuthalEqualAreaRaw.invert(R/k,G);return U[0]*=S,U},q}function $e(k,S){return[k*o(S)/o(S/=2),2*p(S)]}$e.invert=function(k,S){var q=2*H(S/2);return[k*o(q/2)/o(q),q]};function ar(){var k=2,S=r.geoProjectionMutator(Ne),q=S(k);return q.coefficient=function(R){return arguments.length?S(k=+R):k},q.scale(169.529)}function tr(k,S,q){var R=100,G,U,W;q=q===void 0?0:+q,S=+S;do U=k(q),W=k(q+b),U===W&&(W=U+b),q-=G=-1*b*(U-S)/(U-W);while(R-- >0&&a(G)>b);return R<0?NaN:q}function fr(k,S,q){return S===void 0&&(S=40),q===void 0&&(q=C),function(R,G,U,W){var ve,de,fe;U=U===void 0?0:+U,W=W===void 0?0:+W;for(var pe=0;pe<S;pe++){var xe=k(U,W),De=xe[0]-R,ze=xe[1]-G;if(a(De)<q&&a(ze)<q)break;var Ke=De*De+ze*ze;if(Ke>ve){U-=de/=2,W-=fe/=2;continue}ve=Ke;var or=(U>0?-1:1)*q,Tr=(W>0?-1:1)*q,$r=k(U+or,W),ft=k(U,W+Tr),vt=($r[0]-xe[0])/or,dt=($r[1]-xe[1])/or,gt=(ft[0]-xe[0])/Tr,sa=(ft[1]-xe[1])/Tr,Sa=sa*vt-dt*gt,Ht=(a(Sa)<.5?.5:1)/Sa;if(de=(ze*gt-De*sa)*Ht,fe=(De*dt-ze*vt)*Ht,U+=de,W+=fe,a(de)<q&&a(fe)<q)break}return[U,W]}}function Re(){var k=Ne(1.68,2),S=1.4,q=12;function R(G,U){if(G+U<-S){var W=(G-U+1.6)*(G+U+S)/8;G+=W,U-=.8*W*p(U+x/2)}var ve=k(G,U),de=(1-o(G*U))/q;return ve[1]<0&&(ve[0]*=1+de),ve[1]>0&&(ve[1]*=1+de/1.5*ve[0]*ve[0]),ve}return R.invert=fr(R),R}function ur(){return r.geoProjection(Re()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function hr(k,S){var q=k*p(S),R=30,G;do S-=G=(S+p(S)-q)/(1+o(S));while(a(G)>b&&--R>0);return S/2}function dr(k,S,q){function R(G,U){return[k*G*o(U=hr(q,U)),S*p(U)]}return R.invert=function(G,U){return U=H(U/S),[G/(k*o(U)),H((2*U+p(2*U))/q)]},R}var Ze=dr(M/_,M,x);function cr(){return r.geoProjection(Ze).scale(169.529)}var Er=2.00276,Te=1.11072;function Oe(k,S){var q=hr(x,S);return[Er*k/(1/o(S)+Te/o(q)),(S+M*p(q))/Er]}Oe.invert=function(k,S){var q=Er*S,R=S<0?-A:A,G=25,U,W;do W=q-M*p(R),R-=U=(p(2*R)+2*R-x*p(W))/(2*o(2*R)+2+x*o(W)*M*o(R));while(a(U)>b&&--G>0);return W=q-M*p(R),[k*(1/o(W)+Te/o(R))/Er,W]};function Ar(){return r.geoProjection(Oe).scale(160.857)}function Nr(k){var S=0,q=r.geoProjectionMutator(k),R=q(S);return R.parallel=function(G){return arguments.length?q(S=G*B):S*z},R}function Qe(k,S){return[k*o(S),S]}Qe.invert=function(k,S){return[k/o(S),S]};function Be(){return r.geoProjection(Qe).scale(152.63)}function Xe(k){if(!k)return Qe;var S=1/y(k);function q(R,G){var U=S+k-G,W=U&&R*o(G)/U;return[U*p(W),S-U*o(W)]}return q.invert=function(R,G){var U=I(R*R+(G=S-G)*G),W=S+k-U;return[U/o(W)*i(R,G),W]},q}function yr(){return Nr(Xe).scale(123.082).center([0,26.1441]).parallel(45)}function kr(k){function S(q,R){var G=_-R,U=G&&q*k*p(G)/G;return[G*p(U)/k,_-G*o(U)]}return S.invert=function(q,R){var G=q*k,U=_-R,W=I(G*G+U*U),ve=i(G,U);return[(W?W/p(W):1)*ve/k,_-W]},S}function pr(){var k=.5,S=r.geoProjectionMutator(kr),q=S(k);return q.fraction=function(R){return arguments.length?S(k=+R):k},q.scale(158.837)}var xr=dr(1,4/x,x);function Pr(){return r.geoProjection(xr).scale(152.63)}function Fr(k,S,q,R,G,U){var W=o(U),ve;if(a(k)>1||a(U)>1)ve=V(q*G+S*R*W);else{var de=p(k/2),fe=p(U/2);ve=2*H(I(de*de+S*R*fe*fe))}return a(ve)>b?[ve,i(R*p(U),S*G-q*R*W)]:[0,0]}function Hr(k,S,q){return V((k*k+S*S-q*q)/(2*k*S))}function rr(k){return k-2*x*u((k+x)/(2*x))}function Cr(k,S,q){for(var R=[[k[0],k[1],p(k[1]),o(k[1])],[S[0],S[1],p(S[1]),o(S[1])],[q[0],q[1],p(q[1]),o(q[1])]],G=R[2],U,W=0;W<3;++W,G=U)U=R[W],G.v=Fr(U[1]-G[1],G[3],G[2],U[3],U[2],U[0]-G[0]),G.point=[0,0];var ve=Hr(R[0].v[0],R[2].v[0],R[1].v[0]),de=Hr(R[0].v[0],R[1].v[0],R[2].v[0]),fe=x-ve;R[2].point[1]=0,R[0].point[0]=-(R[1].point[0]=R[0].v[0]/2);var pe=[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]*p(ve))];function xe(De,ze){var Ke=p(ze),or=o(ze),Tr=new Array(3),$r;for($r=0;$r<3;++$r){var ft=R[$r];if(Tr[$r]=Fr(ze-ft[1],ft[3],ft[2],or,Ke,De-ft[0]),!Tr[$r][0])return ft.point;Tr[$r][1]=rr(Tr[$r][1]-ft.v[1])}var vt=pe.slice();for($r=0;$r<3;++$r){var dt=$r==2?0:$r+1,gt=Hr(R[$r].v[0],Tr[$r][0],Tr[dt][0]);Tr[$r][1]<0&&(gt=-gt),$r?$r==1?(gt=de-gt,vt[0]-=Tr[$r][0]*o(gt),vt[1]-=Tr[$r][0]*p(gt)):(gt=fe-gt,vt[0]+=Tr[$r][0]*o(gt),vt[1]+=Tr[$r][0]*p(gt)):(vt[0]+=Tr[$r][0]*o(gt),vt[1]-=Tr[$r][0]*p(gt))}return vt[0]/=3,vt[1]/=3,vt}return xe}function vr(k){return k[0]*=B,k[1]*=B,k}function Xr(){return Kr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Kr(k,S,q){var R=r.geoCentroid({type:"MultiPoint",coordinates:[k,S,q]}),G=[-R[0],-R[1]],U=r.geoRotation(G),W=Cr(vr(U(k)),vr(U(S)),vr(U(q)));W.invert=fr(W);var ve=r.geoProjection(W).rotate(G),de=ve.center;return delete ve.rotate,ve.center=function(fe){return arguments.length?de(U(fe)):U.invert(de())},ve.clipAngle(90)}function Lr(k,S){var q=I(1-p(S));return[2/E*k*q,E*(1-q)]}Lr.invert=function(k,S){var q=(q=S/E-1)*q;return[q>0?k*I(x/q)/2:0,H(1-q)]};function Wr(){return r.geoProjection(Lr).scale(95.6464).center([0,30])}function Ae(k){var S=y(k);function q(R,G){return[R,(R?R/p(R):1)*(p(G)*o(R)-S*o(G))]}return q.invert=S?function(R,G){R&&(G*=p(R)/R);var U=o(R);return[R,2*i(I(U*U+S*S-G*G)-U,S-G)]}:function(R,G){return[R,H(R?G*y(R)/R:G)]},q}function Pe(){return Nr(Ae).scale(249.828).clipAngle(90)}var sr=I(3);function gr(k,S){return[sr*k*(2*o(2*S/3)-1)/E,sr*E*p(S/3)]}gr.invert=function(k,S){var q=3*H(S/(sr*E));return[E*k/(sr*(2*o(2*q/3)-1)),q]};function Bt(){return r.geoProjection(gr).scale(156.19)}function Gt(k){var S=o(k);function q(R,G){return[R*S,p(G)/S]}return q.invert=function(R,G){return[R/S,H(G*S)]},q}function na(){return Nr(Gt).parallel(38.58).scale(195.044)}function Ma(k){var S=o(k);function q(R,G){return[R*S,(1+S)*y(G/2)]}return q.invert=function(R,G){return[R/S,n(G/(1+S))*2]},q}function It(){return Nr(Ma).scale(124.75)}function jt(k,S){var q=I(8/(3*x));return[q*k*(1-a(S)/x),q*S]}jt.invert=function(k,S){var q=I(8/(3*x)),R=S/q;return[k/(q*(1-a(R)/x)),R]};function da(){return r.geoProjection(jt).scale(165.664)}function ea(k,S){var q=I(4-3*p(a(S)));return[2/I(6*x)*k*q,m(S)*I(2*x/3)*(2-q)]}ea.invert=function(k,S){var q=2-a(S)/I(2*x/3);return[k*I(6*x)/(2*q),m(S)*H((4-q*q)/3)]};function mn(){return r.geoProjection(ea).scale(165.664)}function rn(k,S){var q=I(x*(4+x));return[2/q*k*(1+I(1-4*S*S/(x*x))),4/q*S]}rn.invert=function(k,S){var q=I(x*(4+x))/2;return[k*q/(1+I(1-S*S*(4+x)/(4*x))),S*q/2]};function Un(){return r.geoProjection(rn).scale(180.739)}function Jr(k,S){var q=(2+_)*p(S);S/=2;for(var R=0,G=1/0;R<10&&a(G)>b;R++){var U=o(S);S-=G=(S+p(S)*(U+2)-q)/(2*U*(1+U))}return[2/I(x*(4+x))*k*(1+o(S)),2*I(x/(4+x))*p(S)]}Jr.invert=function(k,S){var q=S*I((4+x)/x)/2,R=H(q),G=o(R);return[k/(2/I(x*(4+x))*(1+G)),H((R+q*(G+2))/(2+_))]};function ua(){return r.geoProjection(Jr).scale(180.739)}function Rt(k,S){return[k*(1+o(S))/I(2+x),2*S/I(2+x)]}Rt.invert=function(k,S){var q=I(2+x),R=S*q/2;return[q*k/(1+o(R)),R]};function pa(){return r.geoProjection(Rt).scale(173.044)}function ya(k,S){for(var q=(1+_)*p(S),R=0,G=1/0;R<10&&a(G)>b;R++)S-=G=(S+p(S)-q)/(1+o(S));return q=I(2+x),[k*(1+o(S))/q,2*S/q]}ya.invert=function(k,S){var q=1+_,R=I(q/2);return[k*2*R/(1+o(S*=R)),H((S+p(S))/q)]};function ba(){return r.geoProjection(ya).scale(173.044)}var Yt=3+2*M;function za(k,S){var q=p(k/=2),R=o(k),G=I(o(S)),U=o(S/=2),W=p(S)/(U+M*R*G),ve=I(2/(1+W*W)),de=I((M*U+(R+q)*G)/(M*U+(R-q)*G));return[Yt*(ve*(de-1/de)-2*s(de)),Yt*(ve*W*(de+1/de)-2*n(W))]}za.invert=function(k,S){if(!(U=We.invert(k/1.2,S*1.065)))return null;var q=U[0],R=U[1],G=20,U;k/=Yt,S/=Yt;do{var W=q/2,ve=R/2,de=p(W),fe=o(W),pe=p(ve),xe=o(ve),De=o(R),ze=I(De),Ke=pe/(xe+M*fe*ze),or=Ke*Ke,Tr=I(2/(1+or)),$r=M*xe+(fe+de)*ze,ft=M*xe+(fe-de)*ze,vt=$r/ft,dt=I(vt),gt=dt-1/dt,sa=dt+1/dt,Sa=Tr*gt-2*s(dt)-k,Ht=Tr*Ke*sa-2*n(Ke)-S,Va=pe&&T*ze*de*or/pe,Dn=(M*fe*xe+ze)/(2*(xe+M*fe*ze)*(xe+M*fe*ze)*ze),Ci=-.5*Ke*Tr*Tr*Tr,Tl=Ci*Va,bs=Ci*Dn,Gn=(Gn=2*xe+M*ze*(fe-de))*Gn*dt,Yn=(M*fe*xe*ze+De)/Gn,fo=-(M*de*pe)/(ze*Gn),kl=gt*Tl-2*Yn/dt+Tr*(Yn+Yn/vt),Cl=gt*bs-2*fo/dt+Tr*(fo+fo/vt),Dl=Ke*sa*Tl-2*Va/(1+or)+Tr*sa*Va+Tr*Ke*(Yn-Yn/vt),yu=Ke*sa*bs-2*Dn/(1+or)+Tr*sa*Dn+Tr*Ke*(fo-fo/vt),zo=Cl*Dl-yu*kl;if(!zo)break;var _s=(Ht*Cl-Sa*yu)/zo,Tf=(Sa*Dl-Ht*kl)/zo;q-=_s,R=f(-_,c(_,R-Tf))}while((a(_s)>b||a(Tf)>b)&&--G>0);return a(a(R)-_)<b?[0,R]:G&&[q,R]};function gn(){return r.geoProjection(za).scale(62.5271)}var ma=o(35*B);function aa(k,S){var q=y(S/2);return[k*ma*I(1-q*q),(1+ma)*q]}aa.invert=function(k,S){var q=S/(1+ma);return[k&&k/(ma*I(1-q*q)),2*n(q)]};function Fa(){return r.geoProjection(aa).scale(137.152)}function Da(k,S){var q=S/2,R=o(q);return[2*k/E*o(S)*R*R,E*y(q)]}Da.invert=function(k,S){var q=n(S/E),R=o(q),G=2*q;return[k*E/2/(o(G)*R*R),G]};function Co(){return r.geoProjection(Da).scale(135.264)}function qi(k){var S=1-k,q=U(x,0)[0]-U(-x,0)[0],R=U(0,_)[1]-U(0,-_)[1],G=I(2*R/q);function U(de,fe){var pe=o(fe),xe=p(fe);return[pe/(S+k*pe)*de,S*fe+k*xe]}function W(de,fe){var pe=U(de,fe);return[pe[0]*G,pe[1]/G]}function ve(de){return W(0,de)[1]}return W.invert=function(de,fe){var pe=tr(ve,fe),xe=de/G*(k+S/o(pe));return[xe,pe]},W}function Xu(){var k=.5,S=r.geoProjectionMutator(qi),q=S(k);return q.alpha=function(R){return arguments.length?S(k=+R):k},q.scale(168.725)}function Ql(k){return[k[0]/2,H(y(k[1]/2*B))*z]}function ul(k){return[k[0]*2,2*n(p(k[1]*B))*z]}function Wu(k){k==null&&(k=r.geoOrthographic);var S=k(),q=r.geoEquirectangular().scale(z).precision(0).clipAngle(null).translate([0,0]);function R(U){return S(Ql(U))}S.invert&&(R.invert=function(U){return ul(S.invert(U))}),R.stream=function(U){var W=S.stream(U),ve=q.stream({point:function(de,fe){W.point(de/2,H(y(-fe/2*B))*z)},lineStart:function(){W.lineStart()},lineEnd:function(){W.lineEnd()},polygonStart:function(){W.polygonStart()},polygonEnd:function(){W.polygonEnd()}});return ve.sphere=W.sphere,ve};function G(U){R[U]=function(){return arguments.length?(S[U].apply(S,arguments),R):S[U]()}}return R.rotate=function(U){return arguments.length?(q.rotate(U),R):q.rotate()},R.center=function(U){return arguments.length?(S.center(Ql(U)),R):ul(S.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 sl(k,S){var q=2*x/S,R=k*k;function G(U,W){var ve=r.geoAzimuthalEquidistantRaw(U,W),de=ve[0],fe=ve[1],pe=de*de+fe*fe;if(pe>R){var xe=I(pe),De=i(fe,de),ze=q*d(De/q),Ke=De-ze,or=k*o(Ke),Tr=(k*p(Ke)-Ke*p(or))/(_-or),$r=$a(Ke,Tr),ft=(x-k)/Pi($r,or,x);de=xe;var vt=50,dt;do de-=dt=(k+Pi($r,or,de)*ft-xe)/($r(de)*ft);while(a(dt)>b&&--vt>0);fe=Ke*p(de),de<_&&(fe-=Tr*(de-_));var gt=p(ze),sa=o(ze);ve[0]=de*sa-fe*gt,ve[1]=de*gt+fe*sa}return ve}return G.invert=function(U,W){var ve=U*U+W*W;if(ve>R){var de=I(ve),fe=i(W,U),pe=q*d(fe/q),xe=fe-pe;U=de*o(xe),W=de*p(xe);for(var De=U-_,ze=p(U),Ke=W/ze,or=U<_?1/0:0,Tr=10;;){var $r=k*p(Ke),ft=k*o(Ke),vt=p(ft),dt=_-ft,gt=($r-Ke*vt)/dt,sa=$a(Ke,gt);if(a(or)<C||!--Tr)break;Ke-=or=(Ke*ze-gt*De-W)/(ze-De*2*(dt*(ft+Ke*$r*o(ft)-vt)-$r*($r-Ke*vt))/(dt*dt))}de=k+Pi(sa,ft,U)*(x-k)/Pi(sa,ft,x),fe=pe+Ke,U=de*o(fe),W=de*p(fe)}return r.geoAzimuthalEquidistantRaw.invert(U,W)},G}function $a(k,S){return function(q){var R=k*o(q);return q<_&&(R-=S),I(1+R*R)}}function Pi(k,S,q){for(var R=50,G=(q-S)/R,U=k(S)+k(q),W=1,ve=S;W<R;++W)U+=2*k(ve+=G);return U*.5*G}function fl(){var k=6,S=30*B,q=o(S),R=p(S),G=r.geoProjectionMutator(sl),U=G(S,k),W=U.stream,ve=.01,de=-o(ve*B),fe=p(ve*B);return U.radius=function(pe){return arguments.length?(q=o(S=pe*B),R=p(S),G(S,k)):S*z},U.lobes=function(pe){return arguments.length?G(S,k=+pe):k},U.stream=function(pe){var xe=U.rotate(),De=W(pe),ze=(U.rotate([0,0]),W(pe));return U.rotate(xe),De.sphere=function(){ze.polygonStart(),ze.lineStart();for(var Ke=0,or=2*x/k,Tr=0;Ke<k;++Ke,Tr-=or)ze.point(i(fe*o(Tr),de)*z,H(fe*p(Tr))*z),ze.point(i(R*o(Tr-or/2),q)*z,H(R*p(Tr-or/2))*z);ze.lineEnd(),ze.polygonEnd()},De},U.rotate([90,-40]).scale(91.7095).clipAngle(180-.001)}function Ri(k,S,q,R,G,U,W,ve){arguments.length<8&&(ve=0);function de(fe,pe){if(!pe)return[k*fe/x,0];var xe=pe*pe,De=k+xe*(S+xe*(q+xe*R)),ze=pe*(G-1+xe*(U-ve+xe*W)),Ke=(De*De+ze*ze)/(2*ze),or=fe*H(De/Ke)/x;return[Ke*p(or),pe*(1+xe*ve)+Ke*(1-o(or))]}return de.invert=function(fe,pe){var xe=x*fe/k,De=pe,ze,Ke,or=50;do{var Tr=De*De,$r=k+Tr*(S+Tr*(q+Tr*R)),ft=De*(G-1+Tr*(U-ve+Tr*W)),vt=$r*$r+ft*ft,dt=2*ft,gt=vt/dt,sa=gt*gt,Sa=H($r/gt)/x,Ht=xe*Sa,Va=$r*$r,Dn=(2*S+Tr*(4*q+Tr*6*R))*De,Ci=G+Tr*(3*U+Tr*5*W),Tl=2*($r*Dn+ft*(Ci-1)),bs=2*(Ci-1),Gn=(Tl*dt-vt*bs)/(dt*dt),Yn=o(Ht),fo=p(Ht),kl=gt*Yn,Cl=gt*fo,Dl=xe/x*(1/I(1-Va/sa))*(Dn*gt-$r*Gn)/sa,yu=Cl-fe,zo=De*(1+Tr*ve)+gt-kl-pe,_s=Gn*fo+kl*Dl,Tf=kl*Sa,v=1+Gn-(Gn*Yn-Cl*Dl),g=Cl*Sa,w=_s*g-v*Tf;if(!w)break;xe-=ze=(zo*_s-yu*v)/w,De-=Ke=(yu*g-zo*Tf)/w}while((a(ze)>b||a(Ke)>b)&&--or>0);return[xe,De]},de}var Ai=Ri(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function eu(){return r.geoProjection(Ai).scale(149.995)}var ru=Ri(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function ju(){return r.geoProjection(ru).scale(153.93)}var tu=Ri(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Zu(){return r.geoProjection(tu).scale(130.945)}function it(k,S){var q=k*k,R=S*S;return[k*(1-.162388*R)*(.87-952426e-9*q*q),S*(1+R/12)]}it.invert=function(k,S){var q=k,R=S,G=50,U;do{var W=R*R;R-=U=(R*(1+W/12)-S)/(1+W/4)}while(a(U)>b&&--G>0);G=50,k/=1-.162388*W;do{var ve=(ve=q*q)*ve;q-=U=(q*(.87-952426e-9*ve)-k)/(.87-.00476213*ve)}while(a(U)>b&&--G>0);return[q,R]};function lt(){return r.geoProjection(it).scale(131.747)}var Ut=Ri(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Or(){return r.geoProjection(Ut).scale(131.087)}function vn(k){var S=k(_,0)[0]-k(-_,0)[0];function q(R,G){var U=R>0?-.5:.5,W=k(R+U*x,G);return W[0]-=U*S,W}return k.invert&&(q.invert=function(R,G){var U=R>0?-.5:.5,W=k.invert(R+U*S,G),ve=W[0]-U*x;return ve<-x?ve+=2*x:ve>x&&(ve-=2*x),W[0]=ve,W}),q}function ia(k,S){var q=m(k),R=m(S),G=o(S),U=o(k)*G,W=p(k)*G,ve=p(R*S);k=a(i(W,ve)),S=H(U),a(k-_)>b&&(k%=_);var de=Ha(k>x/4?_-k:k,S);return k>x/4&&(ve=de[0],de[0]=-de[1],de[1]=-ve),de[0]*=q,de[1]*=-R,de}ia.invert=function(k,S){a(k)>1&&(k=m(k)*2-k),a(S)>1&&(S=m(S)*2-S);var q=m(k),R=m(S),G=-q*k,U=-R*S,W=U/G<1,ve=Ga(W?U:G,W?G:U),de=ve[0],fe=ve[1],pe=o(fe);return W&&(de=-_-de),[q*(i(p(de)*pe,-p(fe))+x),R*H(o(de)*pe)]};function Ha(k,S){if(S===_)return[0,0];var q=p(S),R=q*q,G=R*R,U=1+G,W=1+3*G,ve=1-G,de=H(1/I(U)),fe=ve+R*U*de,pe=(1-q)/fe,xe=I(pe),De=pe*U,ze=I(De),Ke=xe*ve,or,Tr;if(k===0)return[0,-(Ke+R*ze)];var $r=o(S),ft=1/$r,vt=2*q*$r,dt=(-3*R+de*W)*vt,gt=(-fe*$r-(1-q)*dt)/(fe*fe),sa=.5*gt/xe,Sa=ve*sa-2*R*xe*vt,Ht=R*U*gt+pe*W*vt,Va=-ft*vt,Dn=-ft*Ht,Ci=-2*ft*Sa,Tl=4*k/x,bs;if(k>.222*x||S<x/4&&k>.175*x){if(or=(Ke+R*I(De*(1+G)-Ke*Ke))/(1+G),k>x/4)return[or,or];var Gn=or,Yn=.5*or;or=.5*(Yn+Gn),Tr=50;do{var fo=I(De-or*or),kl=or*(Ci+Va*fo)+Dn*H(or/ze)-Tl;if(!kl)break;kl<0?Yn=or:Gn=or,or=.5*(Yn+Gn)}while(a(Gn-Yn)>b&&--Tr>0)}else{or=b,Tr=25;do{var Cl=or*or,Dl=I(De-Cl),yu=Ci+Va*Dl,zo=or*yu+Dn*H(or/ze)-Tl,_s=yu+(Dn-Va*Cl)/Dl;or-=bs=Dl?zo/_s:0}while(a(bs)>b&&--Tr>0)}return[or,-Ke-R*I(De-or*or)]}function Ga(k,S){for(var q=0,R=1,G=.5,U=50;;){var W=G*G,ve=I(G),de=H(1/I(1+W)),fe=1-W+G*(1+W)*de,pe=(1-ve)/fe,xe=I(pe),De=pe*(1+W),ze=xe*(1-W),Ke=De-k*k,or=I(Ke),Tr=S+ze+G*or;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 $r=H(ve),ft=o($r),vt=1/ft,dt=2*ve*ft,gt=(-3*G+de*(1+3*W))*dt,sa=(-fe*ft-(1-ve)*gt)/(fe*fe),Sa=.5*sa/xe,Ht=(1-W)*Sa-2*G*xe*dt,Va=-2*vt*Ht,Dn=-vt*dt,Ci=-vt*(G*(1+W)*sa+pe*(1+3*W)*dt);return[x/4*(k*(Va+Dn*or)+Ci*H(k/I(De))),$r]}function zn(){return r.geoProjection(vn(ia)).scale(239.75)}function cl(k,S,q){var R,G,U;return k?(R=au(k,q),S?(G=au(S,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=au(S,1-q),[[0,G[0]/G[1]],[1/G[1],0],[G[2]/G[1],0]])}function au(k,S){var q,R,G,U,W;if(S<b)return U=p(k),R=o(k),q=S*(k-U*R)/4,[U-q*R,R+q*U,1-S*U*U/2,k-q];if(S>=1-b)return q=(1-S)/4,R=re(k),U=Q(k),G=1/R,W=R*le(k),[U+q*(W-k)/(R*R),G-q*U*G*(W-k),G+q*U*G*(W+k),2*n(l(k))-_+q*(W-k)/R];var ve=[1,0,0,0,0,0,0,0,0],de=[I(S),0,0,0,0,0,0,0,0],fe=0;for(R=I(1-S),W=1;a(de[fe]/ve[fe])>b&&fe<8;)q=ve[fe++],de[fe]=(q-R)/2,ve[fe]=(q+R)/2,R=I(q*R),W*=2;G=W*ve[fe]*k;do U=de[fe]*p(R=G)/ve[fe],G=(H(U)+G)/2;while(--fe);return[p(G),U=o(G),U/o(G-R),G]}function nu(k,S,q){var R=a(k),G=a(S),U=le(G);if(R){var W=1/p(R),ve=1/(y(R)*y(R)),de=-(ve+q*(U*U*W*W)-1+q),fe=(q-1)*ve,pe=(-de+I(de*de-4*fe))/2;return[zi(n(1/I(pe)),q)*m(k),zi(n(I((pe/ve-1)/q)),1-q)*m(S)]}return[0,zi(n(U),1-q)*m(S)]}function zi(k,S){if(!S)return k;if(S===1)return s(y(k/2+A));for(var q=1,R=I(1-S),G=I(S),U=0;a(G)>b;U++){if(k%x){var W=n(R*y(k)/q);W<0&&(W+=x),k+=W+~~(k/x)*x}else k+=k;G=(q+R)/2,R=I(q*R),G=((q=G)-R)/2}return k/(h(2,U)*q)}function Do(k,S){var q=(M-1)/(M+1),R=I(1-q*q),G=zi(_,R*R),U=-1,W=s(y(x/4+a(S)/2)),ve=l(U*W)/I(q),de=vl(ve*o(U*k),ve*p(U*k)),fe=nu(de[0],de[1],R*R);return[-fe[1],(S>=0?1:-1)*(.5*G-fe[0])]}function vl(k,S){var q=k*k,R=S+1,G=1-q-S*S;return[.5*((k>=0?_:-_)-i(G,2*k)),-.25*s(G*G+4*q)+.5*s(R*R+q)]}function iu(k,S){var q=S[0]*S[0]+S[1]*S[1];return[(k[0]*S[0]+k[1]*S[1])/q,(k[1]*S[0]-k[0]*S[1])/q]}Do.invert=function(k,S){var q=(M-1)/(M+1),R=I(1-q*q),G=zi(_,R*R),U=-1,W=cl(.5*G-S,-k,R*R),ve=iu(W[0],W[1]),de=i(ve[1],ve[0])/U;return[de,2*n(l(.5/U*s(q*ve[0]*ve[0]+q*ve[1]*ve[1])))-_]};function Ju(){return r.geoProjection(vn(Do)).scale(151.496)}function rf(k){var S=p(k),q=o(k),R=Nc(k);R.invert=Nc(-k);function G(U,W){var ve=R(U,W);U=ve[0],W=ve[1];var de=p(W),fe=o(W),pe=o(U),xe=V(S*de+q*fe*pe),De=p(xe),ze=a(De)>b?xe/De:1;return[ze*q*p(U),(a(U)>_?ze:-ze)*(S*fe-q*de*pe)]}return G.invert=function(U,W){var ve=I(U*U+W*W),de=-p(ve),fe=o(ve),pe=ve*fe,xe=-W*de,De=ve*S,ze=I(pe*pe+xe*xe-De*De),Ke=i(pe*De+xe*ze,xe*De-pe*ze),or=(ve>_?-1:1)*i(U*de,ve*o(Ke)*fe+W*p(Ke)*de);return R.invert(or,Ke)},G}function Nc(k){var S=p(k),q=o(k);return function(R,G){var U=o(G),W=o(R)*U,ve=p(R)*U,de=p(G);return[i(ve,W*q-de*S),H(de*q+W*S)]}}function $u(){var k=0,S=r.geoProjectionMutator(rf),q=S(k),R=q.rotate,G=q.stream,U=r.geoCircle();return q.parallel=function(W){if(!arguments.length)return k*z;var ve=q.rotate();return S(k=W*B).rotate(ve)},q.rotate=function(W){return arguments.length?(R.call(q,[W[0],W[1]-k*z]),U.center([-W[0],-W[1]]),q):(W=R.call(q),W[1]+=k*z,W)},q.stream=function(W){return W=G(W),W.sphere=function(){W.polygonStart();var ve=.01,de=U.radius(90-ve)().coordinates[0],fe=de.length-1,pe=-1,xe;for(W.lineStart();++pe<fe;)W.point((xe=de[pe])[0],xe[1]);for(W.lineEnd(),de=U.radius(90+ve)().coordinates[0],fe=de.length-1,W.lineStart();--pe>=0;)W.point((xe=de[pe])[0],xe[1]);W.lineEnd(),W.polygonEnd()},W},q.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ku=3,Qu=H(1-1/Ku)*z,hl=Gt(0);function So(k){var S=Qu*B,q=Lr(x,S)[0]-Lr(-x,S)[0],R=hl(0,S)[1],G=Lr(0,S)[1],U=E-G,W=P/k,ve=4/P,de=R+U*U*4/P;function fe(pe,xe){var De,ze=a(xe);if(ze>S){var Ke=c(k-1,f(0,u((pe+x)/W)));pe+=x*(k-1)/k-Ke*W,De=Lr(pe,ze),De[0]=De[0]*P/q-P*(k-1)/(2*k)+Ke*P/k,De[1]=R+(De[1]-G)*4*U/P,xe<0&&(De[1]=-De[1])}else De=hl(pe,xe);return De[0]*=ve,De[1]/=de,De}return fe.invert=function(pe,xe){pe/=ve,xe*=de;var De=a(xe);if(De>R){var ze=c(k-1,f(0,u((pe+x)/W)));pe=(pe+x*(k-1)/k-ze*W)*q/P;var Ke=Lr.invert(pe,.25*(De-R)*P/U+G);return Ke[0]-=x*(k-1)/k-ze*W,xe<0&&(Ke[1]=-Ke[1]),Ke}return hl.invert(pe,xe)},fe}function Fo(k,S){return[k,S&1?90-b:Qu]}function to(k,S){return[k,S&1?-90+b:-Qu]}function tf(k){return[k[0]*(1-b),k[1]]}function Gs(k){var S=[].concat(t.range(-180,180+k/2,k).map(Fo),t.range(180,-180-k/2,-k).map(to));return{type:"Polygon",coordinates:[k===180?S.map(tf):S]}}function ou(){var k=4,S=r.geoProjectionMutator(So),q=S(k),R=q.stream;return q.lobes=function(G){return arguments.length?S(k=+G):k},q.stream=function(G){var U=q.rotate(),W=R(G),ve=(q.rotate([0,0]),R(G));return q.rotate(U),W.sphere=function(){r.geoStream(Gs(180/k),ve)},W},q.scale(239.75)}function af(k){var S=1+k,q=p(1/S),R=H(q),G=2*I(x/(U=x+4*R*S)),U,W=.5*G*(S+I(k*(2+k))),ve=k*k,de=S*S;function fe(pe,xe){var De=1-p(xe),ze,Ke;if(De&&De<2){var or=_-xe,Tr=25,$r;do{var ft=p(or),vt=o(or),dt=R+i(ft,S-vt),gt=1+de-2*S*vt;or-=$r=(or-ve*R-S*ft+gt*dt-.5*De*U)/(2*S*ft*dt)}while(a($r)>C&&--Tr>0);ze=G*I(gt),Ke=pe*dt/x}else ze=G*(k+De),Ke=pe*R/x;return[ze*p(Ke),W-ze*o(Ke)]}return fe.invert=function(pe,xe){var De=pe*pe+(xe-=W)*xe,ze=(1+de-De/(G*G))/(2*S),Ke=V(ze),or=p(Ke),Tr=R+i(or,S-ze);return[H(pe/I(De))*x/Tr,H(1-2*(Ke-ve*R-S*or+(1+de-2*S*ze)*Tr)/U)]},fe}function Bc(){var k=1,S=r.geoProjectionMutator(af),q=S(k);return q.ratio=function(R){return arguments.length?S(k=+R):k},q.scale(167.774).center([0,18.67])}var es=.7109889596207567,ao=.0528035274542;function rs(k,S){return S>-es?(k=Ze(k,S),k[1]+=ao,k):Qe(k,S)}rs.invert=function(k,S){return S>-es?Ze.invert(k,S-ao):Qe.invert(k,S)};function Ic(){return r.geoProjection(rs).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ts(k,S){return a(S)>es?(k=Ze(k,S),k[1]-=S>0?ao:-ao,k):Qe(k,S)}ts.invert=function(k,S){return a(S)>es?Ze.invert(k,S+(S>0?ao:-ao)):Qe.invert(k,S)};function z2(){return r.geoProjection(ts).scale(152.63)}function dl(k,S,q,R){var G=I(4*x/(2*q+(1+k-S/2)*p(2*q)+(k+S)/2*p(4*q)+S/2*p(6*q))),U=I(R*p(q)*I((1+k*o(2*q)+S*o(4*q))/(1+k+S))),W=q*de(1);function ve(xe){return I(1+k*o(2*xe)+S*o(4*xe))}function de(xe){var De=xe*q;return(2*De+(1+k-S/2)*p(2*De)+(k+S)/2*p(4*De)+S/2*p(6*De))/q}function fe(xe){return ve(xe)*p(xe)}var pe=function(xe,De){var ze=q*tr(de,W*p(De)/q,De/x);isNaN(ze)&&(ze=q*m(De));var Ke=G*ve(ze);return[Ke*U*xe/x*o(ze),Ke/U*p(ze)]};return pe.invert=function(xe,De){var ze=tr(fe,De*U/G);return[xe*x/(o(ze)*G*U*ve(ze)),H(q*de(ze/q)/W)]},q===0&&(G=I(R/x),pe=function(xe,De){return[xe*G,p(De)/G]},pe.invert=function(xe,De){return[xe/G,H(De*G)]}),pe}function nf(){var k=1,S=0,q=45*B,R=2,G=r.geoProjectionMutator(dl),U=G(k,S,q,R);return U.a=function(W){return arguments.length?G(k=+W,S,q,R):k},U.b=function(W){return arguments.length?G(k,S=+W,q,R):S},U.psiMax=function(W){return arguments.length?G(k,S,q=+W*B,R):q*z},U.ratio=function(W){return arguments.length?G(k,S,q,R=+W):R},U.scale(180.739)}function lu(k,S,q,R,G,U,W,ve,de,fe,pe){if(pe.nanEncountered)return NaN;var xe,De,ze,Ke,or,Tr,$r,ft,vt,dt;if(xe=q-S,De=k(S+xe*.25),ze=k(q-xe*.25),isNaN(De)){pe.nanEncountered=!0;return}if(isNaN(ze)){pe.nanEncountered=!0;return}return Ke=xe*(R+4*De+G)/12,or=xe*(G+4*ze+U)/12,Tr=Ke+or,dt=(Tr-W)/15,fe>de?(pe.maxDepthCount++,Tr+dt):Math.abs(dt)<ve?Tr+dt:($r=S+xe*.5,ft=lu(k,S,$r,R,De,G,Ke,ve*.5,de,fe+1,pe),isNaN(ft)?(pe.nanEncountered=!0,NaN):(vt=lu(k,$r,q,G,ze,U,or,ve*.5,de,fe+1,pe),isNaN(vt)?(pe.nanEncountered=!0,NaN):ft+vt))}function Hc(k,S,q,R,G){var U={maxDepthCount:0,nanEncountered:!1};R===void 0&&(R=1e-8),G===void 0&&(G=20);var W=k(S),ve=k(.5*(S+q)),de=k(q),fe=(W+4*ve+de)*(q-S)/6,pe=lu(k,S,q,W,ve,de,fe,R,G,1,U);return pe}function Eo(k,S,q){function R(ze){return k+(1-k)*h(1-h(ze,S),1/S)}function G(ze){return Hc(R,0,ze,1e-4)}for(var U=1/G(1),W=1e3,ve=(1+1e-8)*U,de=[],fe=0;fe<=W;fe++)de.push(G(fe/W)*ve);function pe(ze){var Ke=0,or=W,Tr=W>>1;do de[Tr]>ze?or=Tr:Ke=Tr,Tr=Ke+or>>1;while(Tr>Ke);var $r=de[Tr+1]-de[Tr];return $r&&($r=(ze-de[Tr+1])/$r),(Tr+1+$r)/W}var xe=2*pe(1)/x*U/q,De=function(ze,Ke){var or=pe(a(p(Ke))),Tr=R(or)*ze;return or/=xe,[Tr,Ke>=0?or:-or]};return De.invert=function(ze,Ke){var or;return Ke*=xe,a(Ke)<1&&(or=m(Ke)*H(G(a(Ke))*U)),[ze/R(a(Ke)),or]},De}function Lo(){var k=0,S=2.5,q=1.183136,R=r.geoProjectionMutator(Eo),G=R(k,S,q);return G.alpha=function(U){return arguments.length?R(k=+U,S,q):k},G.k=function(U){return arguments.length?R(k,S=+U,q):S},G.gamma=function(U){return arguments.length?R(k,S,q=+U):q},G.scale(152.63)}function of(k,S){return a(k[0]-S[0])<b&&a(k[1]-S[1])<b}function Ni(k,S){for(var q=-1,R=k.length,G=k[0],U,W,ve,de=[];++q<R;){U=k[q],W=(U[0]-G[0])/S,ve=(U[1]-G[1])/S;for(var fe=0;fe<S;++fe)de.push([G[0]+fe*W,G[1]+fe*ve]);G=U}return de.push(U),de}function N2(k){var S=[],q,R,G,U,W,ve,de,fe=k[0].length;for(de=0;de<fe;++de)q=k[0][de],R=q[0][0],G=q[0][1],U=q[1][1],W=q[2][0],ve=q[2][1],S.push(Ni([[R+b,G+b],[R+b,U-b],[W-b,U-b],[W-b,ve+b]],30));for(de=k[1].length-1;de>=0;--de)q=k[1][de],R=q[0][0],G=q[0][1],U=q[1][1],W=q[2][0],ve=q[2][1],S.push(Ni([[W-b,ve-b],[W-b,U+b],[R+b,U+b],[R+b,G-b]],30));return{type:"Polygon",coordinates:[t.merge(S)]}}function no(k,S,q){var R,G;function U(de,fe){for(var pe=fe<0?-1:1,xe=S[+(fe<0)],De=0,ze=xe.length-1;De<ze&&de>xe[De][2][0];++De);var Ke=k(de-xe[De][1][0],fe);return Ke[0]+=k(xe[De][1][0],pe*fe>pe*xe[De][0][1]?xe[De][0][1]:fe)[0],Ke}q?U.invert=q(U):k.invert&&(U.invert=function(de,fe){for(var pe=G[+(fe<0)],xe=S[+(fe<0)],De=0,ze=pe.length;De<ze;++De){var Ke=pe[De];if(Ke[0][0]<=de&&de<Ke[1][0]&&Ke[0][1]<=fe&&fe<Ke[1][1]){var or=k.invert(de-k(xe[De][1][0],0)[0],fe);return or[0]+=xe[De][1][0],of(U(or[0],or[1]),[de,fe])?or:null}}});var W=r.geoProjection(U),ve=W.stream;return W.stream=function(de){var fe=W.rotate(),pe=ve(de),xe=(W.rotate([0,0]),ve(de));return W.rotate(fe),pe.sphere=function(){r.geoStream(R,xe)},pe},W.lobes=function(de){return arguments.length?(R=N2(de),S=de.map(function(fe){return fe.map(function(pe){return[[pe[0][0]*B,pe[0][1]*B],[pe[1][0]*B,pe[1][1]*B],[pe[2][0]*B,pe[2][1]*B]]})}),G=S.map(function(fe){return fe.map(function(pe){var xe=k(pe[0][0],pe[0][1])[0],De=k(pe[2][0],pe[2][1])[0],ze=k(pe[1][0],pe[0][1])[1],Ke=k(pe[1][0],pe[1][1])[1],or;return ze>Ke&&(or=ze,ze=Ke,Ke=or),[[xe,ze],[De,Ke]]})}),W):S.map(function(fe){return fe.map(function(pe){return[[pe[0][0]*z,pe[0][1]*z],[pe[1][0]*z,pe[1][1]*z],[pe[2][0]*z,pe[2][1]*z]]})})},S!=null&&W.lobes(S),W}var uu=[[[[-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 B2(){return no(Oe,uu).scale(160.857)}var io=[[[[-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 pl(){return no(ts,io).scale(152.63)}var ml=[[[[-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 gl(){return no(Ze,ml).scale(169.529)}var qo=[[[[-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 as(){return no(Ze,qo).scale(169.529).rotate([20,0])}var Ys=[[[[-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 ns(){return no(rs,Ys,fr).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var is=[[[[-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 yl(){return no(Qe,is).scale(152.63).rotate([-20,0])}function su(k,S){return[3/P*k*I(x*x/3-S*S),S]}su.invert=function(k,S){return[P/3*k/I(x*x/3-S*S),S]};function fu(){return r.geoProjection(su).scale(158.837)}function Vs(k){function S(q,R){if(a(a(R)-_)<b)return[0,R<0?-2:2];var G=p(R),U=h((1+G)/(1-G),k/2),W=.5*(U+1/U)+o(q*=k);return[2*p(q)/W,(U-1/U)/W]}return S.invert=function(q,R){var G=a(R);if(a(G-2)<b)return q?null:[0,m(R)*_];if(G>2)return null;q/=2,R/=2;var U=q*q,W=R*R,ve=2*R/(1+U+W);return ve=h((1+ve)/(1-ve),1/k),[i(2*q,1-U-W)/k,H((ve-1)/(ve+1))]},S}function Xs(){var k=.5,S=r.geoProjectionMutator(Vs),q=S(k);return q.spacing=function(R){return arguments.length?S(k=+R):k},q.scale(124.75)}var Mi=x/M;function Ws(k,S){return[k*(1+I(o(S)))/2,S/(o(S/2)*o(k/6))]}Ws.invert=function(k,S){var q=a(k),R=a(S),G=b,U=_;R<Mi?U*=R/Mi:G+=6*V(Mi/R);for(var W=0;W<25;W++){var ve=p(U),de=I(o(U)),fe=p(U/2),pe=o(U/2),xe=p(G/6),De=o(G/6),ze=.5*G*(1+de)-q,Ke=U/(pe*De)-R,or=de?-.25*G*ve/de:0,Tr=.5*(1+de),$r=(1+.5*U*fe/pe)/(pe*De),ft=U/pe*(xe/6)/(De*De),vt=or*ft-$r*Tr,dt=(ze*ft-Ke*Tr)/vt,gt=(Ke*or-ze*$r)/vt;if(U-=dt,G-=gt,a(dt)<b&&a(gt)<b)break}return[k<0?-G:G,S<0?-U:U]};function js(){return r.geoProjection(Ws).scale(97.2672)}function $n(k,S){var q=k*k,R=S*S;return[k*(.975534+R*(-.119161+q*-.0143059+R*-.0547009)),S*(1.00384+q*(.0802894+R*-.02855+q*199025e-9)+R*(.0998909+R*-.0491032))]}$n.invert=function(k,S){var q=m(k)*x,R=S/2,G=50;do{var U=q*q,W=R*R,ve=q*R,de=q*(.975534+W*(-.119161+U*-.0143059+W*-.0547009))-k,fe=R*(1.00384+U*(.0802894+W*-.02855+U*199025e-9)+W*(.0998909+W*-.0491032))-S,pe=.975534-W*(.119161+3*U*.0143059+W*.0547009),xe=-ve*(2*.119161+4*.0547009*W+2*.0143059*U),De=ve*(2*.0802894+4*199025e-9*U+2*-.02855*W),ze=1.00384+U*(.0802894+199025e-9*U)+W*(3*(.0998909-.02855*U)-5*.0491032*W),Ke=xe*De-ze*pe,or=(fe*xe-de*ze)/Ke,Tr=(de*De-fe*pe)/Ke;q-=or,R-=Tr}while((a(or)>b||a(Tr)>b)&&--G>0);return G&&[q,R]};function hn(){return r.geoProjection($n).scale(139.98)}function Nn(k,S){return[p(k)/o(S),y(S)*o(k)]}Nn.invert=function(k,S){var q=k*k,R=S*S,G=R+1,U=q+G,W=k?T*I((U-I(U*U-4*q))/q):1/I(G);return[H(k*W),m(S)*V(W)]};function oo(){return r.geoProjection(Nn).scale(144.049).clipAngle(90-.001)}function os(k){var S=o(k),q=y(A+k/2);function R(G,U){var W=U-k,ve=a(W)<b?G*S:a(ve=A+U/2)<b||a(a(ve)-_)<b?0:G*W/s(y(ve)/q);return[ve,W]}return R.invert=function(G,U){var W,ve=U+k;return[a(U)<b?G/S:a(W=A+ve/2)<b||a(a(W)-_)<b?0:G*s(y(W)/q)/U,ve]},R}function bl(){return Nr(os).parallel(40).scale(158.837)}function cu(k,S){return[k,1.25*s(y(A+.4*S))]}cu.invert=function(k,S){return[k,2.5*n(l(.8*S))-.625*x]};function lf(){return r.geoProjection(cu).scale(108.318)}function Oc(k){var S=k.length-1;function q(R,G){for(var U=o(G),W=2/(1+U*o(R)),ve=W*U*p(R),de=W*p(G),fe=S,pe=k[fe],xe=pe[0],De=pe[1],ze;--fe>=0;)pe=k[fe],xe=pe[0]+ve*(ze=xe)-de*De,De=pe[1]+ve*De+de*ze;return xe=ve*(ze=xe)-de*De,De=ve*De+de*ze,[xe,De]}return q.invert=function(R,G){var U=20,W=R,ve=G;do{for(var de=S,fe=k[de],pe=fe[0],xe=fe[1],De=0,ze=0,Ke;--de>=0;)fe=k[de],De=pe+W*(Ke=De)-ve*ze,ze=xe+W*ze+ve*Ke,pe=fe[0]+W*(Ke=pe)-ve*xe,xe=fe[1]+W*xe+ve*Ke;De=pe+W*(Ke=De)-ve*ze,ze=xe+W*ze+ve*Ke,pe=W*(Ke=pe)-ve*xe-R,xe=W*xe+ve*Ke-G;var or=De*De+ze*ze,Tr,$r;W-=Tr=(pe*De+xe*ze)/or,ve-=$r=(xe*De-pe*ze)/or}while(a(Tr)+a($r)>b*b&&--U>0);if(U){var ft=I(W*W+ve*ve),vt=2*n(ft*.5),dt=p(vt);return[i(W*dt,ft*o(vt)),ft?H(ve*dt/ft):0]}},q}var I2=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],H2=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],uf=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],sf=[[.9245,0],[0,0],[.01943,0]],ff=[[.721316,0],[0,0],[-.00881625,-.00617325]];function cf(){return Bi(I2,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Uc(){return Bi(H2,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Gc(){return Bi(uf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function ls(){return Bi(sf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function us(){return Bi(ff,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Bi(k,S){var q=r.geoProjection(Oc(k)).rotate(S).clipAngle(90),R=r.geoRotation(S),G=q.center;return delete q.rotate,q.center=function(U){return arguments.length?G(R(U)):R.invert(G())},q}var Zs=I(6),ss=I(7);function Js(k,S){var q=H(7*p(S)/(3*Zs));return[Zs*k*(2*o(2*q/3)-1)/ss,9*p(q/3)/ss]}Js.invert=function(k,S){var q=3*H(S*ss/9);return[k*ss/(Zs*(2*o(2*q/3)-1)),H(p(q)*3*Zs/7)]};function Yc(){return r.geoProjection(Js).scale(164.859)}function vf(k,S){for(var q=(1+T)*p(S),R=S,G=0,U;G<25&&(R-=U=(p(R/2)+p(R)-q)/(.5*o(R/2)+o(R)),!(a(U)<b));G++);return[k*(1+2*o(R)/o(R/2))/(3*M),2*I(3)*p(R/2)/I(2+M)]}vf.invert=function(k,S){var q=S*I(2+M)/(2*I(3)),R=2*H(q);return[3*M*k/(1+2*o(R)/o(R/2)),H((q+p(R))/(1+T))]};function O2(){return r.geoProjection(vf).scale(188.209)}function Po(k,S){for(var q=I(6/(4+x)),R=(1+x/4)*p(S),G=S/2,U=0,W;U<25&&(G-=W=(G/2+p(G)-R)/(.5+o(G)),!(a(W)<b));U++);return[q*(.5+o(G))*k/1.5,q*G]}Po.invert=function(k,S){var q=I(6/(4+x)),R=S/q;return a(a(R)-_)<b&&(R=R<0?-_:_),[1.5*k/(q*(.5+o(R))),H((R/2+p(R))/(1+x/4))]};function $s(){return r.geoProjection(Po).scale(166.518)}function vu(k,S){var q=S*S,R=q*q,G=q*R;return[k*(.84719-.13063*q+G*G*(-.04515+.05494*q-.02326*R+.00331*G)),S*(1.01183+R*R*(-.02625+.01926*q-.00396*R))]}vu.invert=function(k,S){var q=S,R=25,G,U,W,ve;do U=q*q,W=U*U,q-=G=(q*(1.01183+W*W*(-.02625+.01926*U-.00396*W))-S)/(1.01183+W*W*(9*-.02625+11*.01926*U+13*-.00396*W));while(a(G)>C&&--R>0);return U=q*q,W=U*U,ve=U*W,[k/(.84719-.13063*U+ve*ve*(-.04515+.05494*U-.02326*W+.00331*ve)),q]};function fs(){return r.geoProjection(vu).scale(175.295)}function cs(k,S){return[k*(1+o(S))/2,2*(S-y(S/2))]}cs.invert=function(k,S){for(var q=S/2,R=0,G=1/0;R<10&&a(G)>b;++R){var U=o(S/2);S-=G=(S-y(S/2)-q)/(1-.5/(U*U))}return[2*k/(1+o(S)),S]};function hf(){return r.geoProjection(cs).scale(152.63)}var Ro=[[[[-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 Vc(){return no(Ne(1/0),Ro).rotate([20,0]).scale(152.63)}function df(k,S){var q=p(S),R=o(S),G=m(k);if(k===0||a(S)===_)return[0,S];if(S===0)return[k,0];if(a(k)===_)return[k*R,_*q];var U=x/(2*k)-2*k/x,W=2*S/x,ve=(1-W*W)/(q-W),de=U*U,fe=ve*ve,pe=1+de/fe,xe=1+fe/de,De=(U*q/ve-U/2)/pe,ze=(fe*q/de+ve/2)/xe,Ke=De*De+R*R/pe,or=ze*ze-(fe*q*q/de+ve*q-1)/xe;return[_*(De+I(Ke)*G),_*(ze+I(or<0?0:or)*m(-S*U)*G)]}df.invert=function(k,S){k/=_,S/=_;var q=k*k,R=S*S,G=q+R,U=x*x;return[k?(G-1+I((1-G)*(1-G)+4*q))/(2*k)*_:0,tr(function(W){return G*(x*p(W)-2*W)*x+4*W*W*(S-p(W))+2*x*W-U*S},0)]};function Xc(){return r.geoProjection(df).scale(127.267)}var pf=1.0148,Ks=.23185,mf=-.14499,gf=.02406,U2=pf,yf=5*Ks,Ii=7*mf,bf=9*gf,hu=1.790857183;function _f(k,S){var q=S*S;return[k,S*(pf+q*q*(Ks+q*(mf+gf*q)))]}_f.invert=function(k,S){S>hu?S=hu:S<-hu&&(S=-hu);var q=S,R;do{var G=q*q;q-=R=(q*(pf+G*G*(Ks+G*(mf+gf*G)))-S)/(U2+G*G*(yf+G*(Ii+bf*G)))}while(a(R)>b);return[k,q]};function Wc(){return r.geoProjection(_f).scale(139.319)}function _l(k,S){if(a(S)<b)return[k,0];var q=y(S),R=k*p(S);return[p(R)/q,S+(1-o(R))/q]}_l.invert=function(k,S){if(a(S)<b)return[k,0];var q=k*k+S*S,R=S*.5,G=10,U;do{var W=y(R),ve=1/o(R),de=q-2*S*R+R*R;R-=U=(W*de+2*(R-S))/(2+de*ve*ve+2*(R-S)*W)}while(a(U)>b&&--G>0);return W=y(R),[(a(S)<a(R+1/W)?H(k*W):m(S)*m(k)*(V(a(k*W))+_))/p(R),R]};function jc(){return r.geoProjection(_l).scale(103.74)}function G2(k,S){var q=Hi(k[1],k[0]),R=Hi(S[1],S[0]),G=V2(q,R),U=Kn(q)/Kn(R);return lo([1,0,k[0][0],0,1,k[0][1]],lo([U,0,0,0,U,0],lo([o(G),p(G),0,-p(G),o(G),0],[1,0,-S[0][0],0,1,-S[0][1]])))}function Y2(k){var S=1/(k[0]*k[4]-k[1]*k[3]);return[S*k[4],-S*k[1],S*(k[1]*k[5]-k[2]*k[4]),-S*k[3],S*k[0],S*(k[2]*k[3]-k[0]*k[5])]}function lo(k,S){return[k[0]*S[0]+k[1]*S[3],k[0]*S[1]+k[1]*S[4],k[0]*S[2]+k[1]*S[5]+k[2],k[3]*S[0]+k[4]*S[3],k[3]*S[1]+k[4]*S[4],k[3]*S[2]+k[4]*S[5]+k[5]]}function Hi(k,S){return[k[0]-S[0],k[1]-S[1]]}function Kn(k){return I(k[0]*k[0]+k[1]*k[1])}function V2(k,S){return i(k[0]*S[1]-k[1]*S[0],k[0]*S[0]+k[1]*S[1])}function du(k,S,q){R(k,{transform:null});function R(fe,pe){if(fe.edges=$c(fe.face),pe.face){var xe=fe.shared=Jc(fe.face,pe.face),De=G2(xe.map(pe.project),xe.map(fe.project));fe.transform=pe.transform?lo(pe.transform,De):De;for(var ze=pe.edges,Ke=0,or=ze.length;Ke<or;++Ke)ui(xe[0],ze[Ke][1])&&ui(xe[1],ze[Ke][0])&&(ze[Ke]=fe),ui(xe[0],ze[Ke][0])&&ui(xe[1],ze[Ke][1])&&(ze[Ke]=fe);for(ze=fe.edges,Ke=0,or=ze.length;Ke<or;++Ke)ui(xe[0],ze[Ke][0])&&ui(xe[1],ze[Ke][1])&&(ze[Ke]=pe),ui(xe[0],ze[Ke][1])&&ui(xe[1],ze[Ke][0])&&(ze[Ke]=pe)}else fe.transform=pe.transform;return fe.children&&fe.children.forEach(function(Tr){R(Tr,fe)}),fe}function G(fe,pe){var xe=S(fe,pe),De=xe.project([fe*z,pe*z]),ze;return(ze=xe.transform)?[ze[0]*De[0]+ze[1]*De[1]+ze[2],-(ze[3]*De[0]+ze[4]*De[1]+ze[5])]:(De[1]=-De[1],De)}vs(k)&&(G.invert=function(fe,pe){var xe=U(k,[fe,-pe]);return xe&&(xe[0]*=B,xe[1]*=B,xe)});function U(fe,pe){var xe=fe.project.invert,De=fe.transform,ze=pe;if(De&&(De=Y2(De),ze=[De[0]*ze[0]+De[1]*ze[1]+De[2],De[3]*ze[0]+De[4]*ze[1]+De[5]]),xe&&fe===W(Ke=xe(ze)))return Ke;for(var Ke,or=fe.children,Tr=0,$r=or&&or.length;Tr<$r;++Tr)if(Ke=U(or[Tr],pe))return Ke}function W(fe){return S(fe[0]*B,fe[1]*B)}var ve=r.geoProjection(G),de=ve.stream;return ve.stream=function(fe){var pe=ve.rotate(),xe=de(fe),De=(ve.rotate([0,0]),de(fe));return ve.rotate(pe),xe.sphere=function(){De.polygonStart(),De.lineStart(),Zc(De,k),De.lineEnd(),De.polygonEnd()},xe},ve.angle(q==null?-30:q*z)}function Zc(k,S,q){var R,G=S.edges,U=G.length,W,ve={type:"MultiPoint",coordinates:S.face},de=S.face.filter(function(or){return a(or[1])!==90}),fe=r.geoBounds({type:"MultiPoint",coordinates:de}),pe=!1,xe=-1,De=fe[1][0]-fe[0][0],ze=De===180||De===360?[(fe[0][0]+fe[1][0])/2,(fe[0][1]+fe[1][1])/2]:r.geoCentroid(ve);if(q)for(;++xe<U&&G[xe]!==q;);++xe;for(var Ke=0;Ke<U;++Ke)W=G[(Ke+xe)%U],Array.isArray(W)?(pe||(k.point((R=r.geoInterpolate(W[0],ze)(b))[0],R[1]),pe=!0),k.point((R=r.geoInterpolate(W[1],ze)(b))[0],R[1])):(pe=!1,W!==q&&Zc(k,W,S))}function ui(k,S){return k&&S&&k[0]===S[0]&&k[1]===S[1]}function Jc(k,S){for(var q,R,G=k.length,U=null,W=0;W<G;++W){q=k[W];for(var ve=S.length;--ve>=0;)if(R=S[ve],q[0]===R[0]&&q[1]===R[1]){if(U)return[U,q];U=q}}}function $c(k){for(var S=k.length,q=[],R=k[S-1],G=0;G<S;++G)q.push([R,R=k[G]]);return q}function vs(k){return k.project.invert||k.children&&k.children.some(vs)}var Kc=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],Qs=[[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(S){return Kc[S]})});function hs(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 S=Qs.map(function(q){return{face:q,project:k(q)}});return[-1,0,0,1,0,1,4,5].forEach(function(q,R){var G=S[q];G&&(G.children||(G.children=[])).push(S[R])}),du(S[0],function(q,R){return S[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 e0=2/I(3);function ds(k,S){var q=Lr(k,S);return[q[0]*e0,q[1]]}ds.invert=function(k,S){return Lr.invert(k/e0,S)};function X2(k){k=k||function(q){var R=r.geoCentroid({type:"MultiPoint",coordinates:q});return r.geoProjection(ds).translate([0,0]).scale(1).rotate(R[1]>0?[-R[0],0]:[180-R[0],180])};var S=Qs.map(function(q){return{face:q,project:k(q)}});return[-1,0,0,1,0,1,4,5].forEach(function(q,R){var G=S[q];G&&(G.children||(G.children=[])).push(S[R])}),du(S[0],function(q,R){return S[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 ps(k){k=k||function(W){var ve=W.length===6?r.geoCentroid({type:"MultiPoint",coordinates:W}):W[0];return r.geoGnomonic().scale(1).translate([0,0]).rotate([-ve[0],-ve[1]])};var S=Qs.map(function(W){for(var ve=W.map(pu),de=ve.length,fe=ve[de-1],pe,xe=[],De=0;De<de;++De)pe=ve[De],xe.push(wl([fe[0]*.9486832980505138+pe[0]*.31622776601683794,fe[1]*.9486832980505138+pe[1]*.31622776601683794,fe[2]*.9486832980505138+pe[2]*.31622776601683794]),wl([pe[0]*.9486832980505138+fe[0]*.31622776601683794,pe[1]*.9486832980505138+fe[1]*.31622776601683794,pe[2]*.9486832980505138+fe[2]*.31622776601683794])),fe=pe;return xe}),q=[],R=[-1,0,0,1,0,1,4,5];S.forEach(function(W,ve){for(var de=Qs[ve],fe=de.length,pe=q[ve]=[],xe=0;xe<fe;++xe)S.push([de[xe],W[(xe*2+2)%(2*fe)],W[(xe*2+1)%(2*fe)]]),R.push(ve),pe.push(ms(pu(W[(xe*2+2)%(2*fe)]),pu(W[(xe*2+1)%(2*fe)])))});var G=S.map(function(W){return{project:k(W),face:W}});R.forEach(function(W,ve){var de=G[W];de&&(de.children||(de.children=[])).push(G[ve])});function U(W,ve){var de=o(ve),fe=[de*o(W),de*p(W),p(ve)],pe=W<-x/2?ve<0?6:4:W<0?ve<0?2:0:W<x/2?ve<0?3:1:ve<0?7:5,xe=q[pe];return G[xl(xe[0],fe)<0?8+3*pe:xl(xe[1],fe)<0?8+3*pe+1:xl(xe[2],fe)<0?8+3*pe+2:pe]}return du(G[0],U).angle(-30).scale(110.625).center([0,45])}function xl(k,S){for(var q=0,R=k.length,G=0;q<R;++q)G+=k[q]*S[q];return G}function ms(k,S){return[k[1]*S[2]-k[2]*S[1],k[2]*S[0]-k[0]*S[2],k[0]*S[1]-k[1]*S[0]]}function wl(k){return[i(k[1],k[0])*z,H(f(-1,c(1,k[2])))*z]}function pu(k){var S=k[0]*B,q=k[1]*B,R=o(q);return[R*o(S),R*p(S),p(q)]}function r0(){}function gs(k){if((q=k.length)<4)return!1;for(var S=0,q,R=k[q-1][1]*k[0][0]-k[q-1][0]*k[0][1];++S<q;)R+=k[S-1][1]*k[S][0]-k[S-1][0]*k[S][1];return R<=0}function Qc(k,S){for(var q=S[0],R=S[1],G=!1,U=0,W=k.length,ve=W-1;U<W;ve=U++){var de=k[U],fe=de[0],pe=de[1],xe=k[ve],De=xe[0],ze=xe[1];pe>R^ze>R&&q<(De-fe)*(R-pe)/(ze-pe)+fe&&(G=!G)}return G}function t0(k,S){var q=S.stream,R;if(!q)throw new Error("invalid projection");switch(k&&k.type){case"Feature":R=r1;break;case"FeatureCollection":R=e1;break;default:R=a0;break}return R(k,q)}function e1(k,S){return{type:"FeatureCollection",features:k.features.map(function(q){return r1(q,S)})}}function r1(k,S){return{type:"Feature",id:k.id,properties:k.properties,geometry:a0(k.geometry,S)}}function xf(k,S){return{type:"GeometryCollection",geometries:k.geometries.map(function(q){return a0(q,S)})}}function a0(k,S){if(!k)return null;if(k.type==="GeometryCollection")return xf(k,S);var q;switch(k.type){case"Point":q=mu;break;case"MultiPoint":q=mu;break;case"LineString":q=n0;break;case"MultiLineString":q=n0;break;case"Polygon":q=ys;break;case"MultiPolygon":q=ys;break;case"Sphere":q=ys;break;default:return null}return r.geoStream(k,S(q)),q.result()}var tn=[],Ti=[],mu={point:function(k,S){tn.push([k,S])},result:function(){var k=tn.length?tn.length<2?{type:"Point",coordinates:tn[0]}:{type:"MultiPoint",coordinates:tn}:null;return tn=[],k}},n0={lineStart:r0,point:function(k,S){tn.push([k,S])},lineEnd:function(){tn.length&&(Ti.push(tn),tn=[])},result:function(){var k=Ti.length?Ti.length<2?{type:"LineString",coordinates:Ti[0]}:{type:"MultiLineString",coordinates:Ti}:null;return Ti=[],k}},ys={polygonStart:r0,lineStart:r0,point:function(k,S){tn.push([k,S])},lineEnd:function(){var k=tn.length;if(k){do tn.push(tn[0].slice());while(++k<4);Ti.push(tn),tn=[]}},polygonEnd:r0,result:function(){if(!Ti.length)return null;var k=[],S=[];return Ti.forEach(function(q){gs(q)?k.push([q]):S.push(q)}),S.forEach(function(q){var R=q[0];k.some(function(G){if(Qc(G[0],R))return G.push(q),!0})||k.push([q])}),Ti=[],k.length?k.length>1?{type:"MultiPolygon",coordinates:k}:{type:"Polygon",coordinates:k[0]}:null}};function wf(k){var S=k(_,0)[0]-k(-_,0)[0];function q(R,G){var U=a(R)<_,W=k(U?R:R>0?R-x:R+x,G),ve=(W[0]-W[1])*T,de=(W[0]+W[1])*T;if(U)return[ve,de];var fe=S*T,pe=ve>0^de>0?-1:1;return[pe*ve-m(de)*fe,pe*de-m(ve)*fe]}return k.invert&&(q.invert=function(R,G){var U=(R+G)*T,W=(G-R)*T,ve=a(U)<.5*S&&a(W)<.5*S;if(!ve){var de=S*T,fe=U>0^W>0?-1:1,pe=-fe*R+(W>0?1:-1)*de,xe=-fe*G+(U>0?1:-1)*de;U=(-pe-xe)*T,W=(pe-xe)*T}var De=k.invert(U,W);return ve||(De[0]+=U>0?x:-x),De}),r.geoProjection(q).rotate([-90,-90,45]).clipAngle(180-.001)}function O(){return wf(ia).scale(176.423)}function J(){return wf(Do).scale(111.48)}function he(k,S){if(!(0<=(S=+S)&&S<=20))throw new Error("invalid digits");function q(fe){var pe=fe.length,xe=2,De=new Array(pe);for(De[0]=+fe[0].toFixed(S),De[1]=+fe[1].toFixed(S);xe<pe;)De[xe]=fe[xe],++xe;return De}function R(fe){return fe.map(q)}function G(fe){for(var pe=q(fe[0]),xe=[pe],De=1;De<fe.length;De++){var ze=q(fe[De]);(ze.length>2||ze[0]!=pe[0]||ze[1]!=pe[1])&&(xe.push(ze),pe=ze)}return xe.length===1&&fe.length>1&&xe.push(q(fe[fe.length-1])),xe}function U(fe){return fe.map(G)}function W(fe){if(fe==null)return fe;var pe;switch(fe.type){case"GeometryCollection":pe={type:"GeometryCollection",geometries:fe.geometries.map(W)};break;case"Point":pe={type:"Point",coordinates:q(fe.coordinates)};break;case"MultiPoint":pe={type:fe.type,coordinates:R(fe.coordinates)};break;case"LineString":pe={type:fe.type,coordinates:G(fe.coordinates)};break;case"MultiLineString":case"Polygon":pe={type:fe.type,coordinates:U(fe.coordinates)};break;case"MultiPolygon":pe={type:"MultiPolygon",coordinates:fe.coordinates.map(U)};break;default:return fe}return fe.bbox!=null&&(pe.bbox=fe.bbox),pe}function ve(fe){var pe={type:"Feature",properties:fe.properties,geometry:W(fe.geometry)};return fe.id!=null&&(pe.id=fe.id),fe.bbox!=null&&(pe.bbox=fe.bbox),pe}if(k!=null)switch(k.type){case"Feature":return ve(k);case"FeatureCollection":{var de={type:"FeatureCollection",features:k.features.map(ve)};return k.bbox!=null&&(de.bbox=k.bbox),de}default:return W(k)}return k}function ue(k){var S=p(k);function q(R,G){var U=S?y(R*S/2)/S:R/2;if(!G)return[2*U,-k];var W=2*n(U*p(G)),ve=1/y(G);return[p(W)*ve,G+(1-o(W))*ve-k]}return q.invert=function(R,G){if(a(G+=k)<b)return[S?2*n(S*R/2)/S:R,0];var U=R*R+G*G,W=0,ve=10,de;do{var fe=y(W),pe=1/o(W),xe=U-2*G*W+W*W;W-=de=(fe*xe+2*(W-G))/(2+xe*pe*pe+2*(W-G)*fe)}while(a(de)>b&&--ve>0);var De=R*(fe=y(W)),ze=y(a(G)<a(W+1/fe)?H(De)*.5:V(De)*.5+x/4)/p(W);return[S?2*n(S*ze)/S:2*ze,W]},q}function we(){return Nr(ue).scale(131.215)}var He=[[.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]];He.forEach(function(k){k[1]*=1.0144});function je(k,S){var q=c(18,a(S)*36/x),R=u(q),G=q-R,U=(xe=He[R])[0],W=xe[1],ve=(xe=He[++R])[0],de=xe[1],fe=(xe=He[c(19,++R)])[0],pe=xe[1],xe;return[k*(ve+G*(fe-U)/2+G*G*(fe-2*ve+U)/2),(S>0?_:-_)*(de+G*(pe-W)/2+G*G*(pe-2*de+W)/2)]}je.invert=function(k,S){var q=S/_,R=q*90,G=c(18,a(R/5)),U=f(0,u(G));do{var W=He[U][1],ve=He[U+1][1],de=He[c(19,U+2)][1],fe=de-W,pe=de-2*ve+W,xe=2*(a(q)-ve)/fe,De=pe/fe,ze=xe*(1-De*xe*(1-2*De*xe));if(ze>=0||U===1){R=(S>=0?5:-5)*(ze+G);var Ke=50,or;do G=c(18,a(R)/5),U=u(G),ze=G-U,W=He[U][1],ve=He[U+1][1],de=He[c(19,U+2)][1],R-=(or=(S>=0?_:-_)*(ve+ze*(de-W)/2+ze*ze*(de-2*ve+W)/2)-S)*z;while(a(or)>C&&--Ke>0);break}}while(--U>=0);var Tr=He[U][0],$r=He[U+1][0],ft=He[c(19,U+2)][0];return[k/($r+ze*(ft-Tr)/2+ze*ze*(ft-2*$r+Tr)/2),R*B]};function er(){return r.geoProjection(je).scale(152.63)}function nr(k){function S(q,R){var G=o(R),U=(k-1)/(k-G*o(q));return[U*G*p(q),U*p(R)]}return S.invert=function(q,R){var G=q*q+R*R,U=I(G),W=(k-I(1-G*(k+1)/(k-1)))/((k-1)/U+U/(k-1));return[i(q*W,U*I(1-W*W)),U?H(R*W/U):0]},S}function br(k,S){var q=nr(k);if(!S)return q;var R=o(S),G=p(S);function U(W,ve){var de=q(W,ve),fe=de[1],pe=fe*G/(k-1)+R;return[de[0]*R/pe,fe/pe]}return U.invert=function(W,ve){var de=(k-1)/(k-1-ve*G);return q.invert(de*W,de*ve*R)},U}function Je(){var k=2,S=0,q=r.geoProjectionMutator(br),R=q(k,S);return R.distance=function(G){return arguments.length?q(k=+G,S):k},R.tilt=function(G){return arguments.length?q(k,S=G*B):S*z},R.scale(432.147).clipAngle(V(1/k)*z-1e-6)}var lr=1e-4,ir=1e4,Mr=-180,Sr=Mr+lr,ot=180,et=ot-lr,ut=-90,st=ut+lr,qr=90,Ur=qr-lr;function ct(k){return k.length>0}function _t(k){return Math.floor(k*ir)/ir}function Vt(k){return k===ut||k===qr?[0,k]:[Mr,_t(k)]}function oa(k){var S=k[0],q=k[1],R=!1;return S<=Sr?(S=Mr,R=!0):S>=et&&(S=ot,R=!0),q<=st?(q=ut,R=!0):q>=Ur&&(q=qr,R=!0),R?[S,q]:k}function Zt(k){return k.map(oa)}function _a(k,S,q){for(var R=0,G=k.length;R<G;++R){var U=k[R].slice();q.push({index:-1,polygon:S,ring:U});for(var W=0,ve=U.length;W<ve;++W){var de=U[W],fe=de[0],pe=de[1];if(fe<=Sr||fe>=et||pe<=st||pe>=Ur){U[W]=oa(de);for(var xe=W+1;xe<ve;++xe){var De=U[xe],ze=De[0],Ke=De[1];if(ze>Sr&&ze<et&&Ke>st&&Ke<Ur)break}if(xe===W+1)continue;if(W){var or={index:-1,polygon:S,ring:U.slice(0,W+1)};or.ring[or.ring.length-1]=Vt(pe),q[q.length-1]=or}else q.pop();if(xe>=ve)break;q.push({index:-1,polygon:S,ring:U=U.slice(xe-1)}),U[0]=Vt(U[0][1]),W=-1,ve=U.length}}}}function Et(k){var S,q=k.length,R={},G={},U,W,ve,de,fe;for(S=0;S<q;++S){if(U=k[S],W=U.ring[0],de=U.ring[U.ring.length-1],W[0]===de[0]&&W[1]===de[1]){U.polygon.push(U.ring),k[S]=null;continue}U.index=S,R[W]=G[de]=U}for(S=0;S<q;++S)if(U=k[S],U){if(W=U.ring[0],de=U.ring[U.ring.length-1],ve=G[W],fe=R[de],delete R[W],delete G[de],W[0]===de[0]&&W[1]===de[1]){U.polygon.push(U.ring);continue}ve?(delete G[W],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===fe?U.polygon.push(U.ring):(U.index=q++,k.push(R[U.ring[0]]=G[U.ring[U.ring.length-1]]=U))):fe?(delete R[de],delete G[fe.ring[fe.ring.length-1]],U.ring.pop(),U={index:q++,polygon:fe.polygon,ring:U.ring.concat(fe.ring)},k[fe.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 yn(k){var S={type:"Feature",geometry:Ya(k.geometry)};return k.id!=null&&(S.id=k.id),k.bbox!=null&&(S.bbox=k.bbox),k.properties!=null&&(S.properties=k.properties),S}function Ya(k){if(k==null)return k;var S,q,R,G;switch(k.type){case"GeometryCollection":S={type:"GeometryCollection",geometries:k.geometries.map(Ya)};break;case"Point":S={type:"Point",coordinates:oa(k.coordinates)};break;case"MultiPoint":case"LineString":S={type:k.type,coordinates:Zt(k.coordinates)};break;case"MultiLineString":S={type:"MultiLineString",coordinates:k.coordinates.map(Zt)};break;case"Polygon":{var U=[];_a(k.coordinates,U,q=[]),Et(q),S={type:"Polygon",coordinates:U};break}case"MultiPolygon":{q=[],R=-1,G=k.coordinates.length;for(var W=new Array(G);++R<G;)_a(k.coordinates[R],W[R]=[],q);Et(q),S={type:"MultiPolygon",coordinates:W.filter(ct)};break}default:return k}return k.bbox!=null&&(S.bbox=k.bbox),S}function xa(k){if(k==null)return k;switch(k.type){case"Feature":return yn(k);case"FeatureCollection":{var S={type:"FeatureCollection",features:k.features.map(yn)};return k.bbox!=null&&(S.bbox=k.bbox),S}default:return Ya(k)}}function Yr(k,S){var q=y(S/2),R=p(A*q);return[k*(.74482-.34588*R*R),1.70711*q]}Yr.invert=function(k,S){var q=S/1.70711,R=p(A*q);return[k/(.74482-.34588*R*R),2*n(q)]};function Xt(){return r.geoProjection(Yr).scale(146.153)}function Ka(k,S,q){var R=r.geoInterpolate(S,q),G=R(.5),U=r.geoRotation([-G[0],-G[1]])(S),W=R.distance/2,ve=-H(p(U[1]*B)/p(W)),de=[-G[0],-G[1],-(U[0]>0?x-ve:ve)*z],fe=r.geoProjection(k(W)).rotate(de),pe=r.geoRotation(de),xe=fe.center;return delete fe.rotate,fe.center=function(De){return arguments.length?xe(pe(De)):pe.invert(xe())},fe.clipAngle(90)}function Cn(k){var S=o(k);function q(R,G){var U=r.geoGnomonicRaw(R,G);return U[0]*=S,U}return q.invert=function(R,G){return r.geoGnomonicRaw.invert(R/S,G)},q}function si(){return uo([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function uo(k,S){return Ka(Cn,k,S)}function Oi(k){if(!(k*=2))return r.geoAzimuthalEquidistantRaw;var S=-k/2,q=-S,R=k*k,G=y(q),U=.5/p(q);function W(ve,de){var fe=V(o(de)*o(ve-S)),pe=V(o(de)*o(ve-q)),xe=de<0?-1:1;return fe*=fe,pe*=pe,[(fe-pe)/(2*k),xe*I(4*R*pe-(R-fe+pe)*(R-fe+pe))/(2*k)]}return W.invert=function(ve,de){var fe=de*de,pe=o(I(fe+(De=ve+S)*De)),xe=o(I(fe+(De=ve+q)*De)),De,ze;return[i(ze=pe-xe,De=(pe+xe)*G),(de<0?-1:1)*V(I(De*De+ze*ze)*U)]},W}function Al(){return ki([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function ki(k,S){return Ka(Oi,k,S)}function Ml(k,S){if(a(S)<b)return[k,0];var q=a(S/_),R=H(q);if(a(k)<b||a(a(S)-_)<b)return[0,m(S)*x*y(R/2)];var G=o(R),U=a(x/k-k/x)/2,W=U*U,ve=G/(q+G-1),de=ve*(2/q-1),fe=de*de,pe=fe+W,xe=ve-fe,De=W+ve;return[m(k)*x*(U*xe+I(W*xe*xe-pe*(ve*ve-fe)))/pe,m(S)*x*(de*De-U*I((W+1)*pe-De*De))/pe]}Ml.invert=function(k,S){if(a(S)<b)return[k,0];if(a(k)<b)return[0,_*p(2*n(S/x))];var q=(k/=x)*k,R=(S/=x)*S,G=q+R,U=G*G,W=-a(S)*(1+G),ve=W-2*R+q,de=-2*W+1+2*R+U,fe=R/de+(2*ve*ve*ve/(de*de*de)-9*W*ve/(de*de))/27,pe=(W-ve*ve/(3*de))/de,xe=2*I(-pe/3),De=V(3*fe/(pe*xe))/3;return[x*(G-1+I(1+2*(q-R)+U))/(2*k),m(S)*x*(-xe*o(De+x/3)-ve/(3*de))]};function gu(){return r.geoProjection(Ml).scale(79.4183)}function i0(k,S){if(a(S)<b)return[k,0];var q=a(S/_),R=H(q);if(a(k)<b||a(a(S)-_)<b)return[0,m(S)*x*y(R/2)];var G=o(R),U=a(x/k-k/x)/2,W=U*U,ve=G*(I(1+W)-U*G)/(1+W*q*q);return[m(k)*x*ve,m(S)*x*I(1-ve*(2*U+ve))]}i0.invert=function(k,S){if(!k)return[0,_*p(2*n(S/x))];var q=a(k/x),R=(1-q*q-(S/=x)*S)/(2*q),G=R*R,U=I(G+1);return[m(k)*x*(U-R),m(S)*_*p(2*i(I((1-2*R*q)*(R+U)-q),I(U+R+q)))]};function t1(){return r.geoProjection(i0).scale(79.4183)}function a1(k,S){if(a(S)<b)return[k,0];var q=S/_,R=H(q);if(a(k)<b||a(a(S)-_)<b)return[0,x*y(R/2)];var G=(x/k-k/x)/2,U=q/(1+o(R));return[x*(m(k)*I(G*G+1-U*U)-G),x*U]}a1.invert=function(k,S){if(!S)return[k,0];var q=S/x,R=(x*x*(1-q*q)-k*k)/(2*x*k);return[k?x*(m(k)*I(R*R+1)-R):0,_*p(2*n(q))]};function fd(){return r.geoProjection(a1).scale(79.4183)}function Af(k,S){if(!S)return[k,0];var q=a(S);if(!k||q===_)return[0,S];var R=q/_,G=R*R,U=(8*R-G*(G+2)-5)/(2*G*(R-1)),W=U*U,ve=R*U,de=G+W+2*ve,fe=R+3*U,pe=k/_,xe=pe+1/pe,De=m(a(k)-_)*I(xe*xe-4),ze=De*De,Ke=de*(G+W*ze-1)+(1-G)*(G*(fe*fe+4*W)+12*ve*W+4*W*W),or=(De*(de+W-1)+2*I(Ke))/(4*de+ze);return[m(k)*_*or,m(S)*_*I(1+De*a(or)-or*or)]}Af.invert=function(k,S){var q;if(!k||!S)return[k,S];S/=x;var R=m(k)*k/_,G=(R*R-1+4*S*S)/a(R),U=G*G,W=2*S,ve=50;do{var de=W*W,fe=(8*W-de*(de+2)-5)/(2*de*(W-1)),pe=(3*W-de*W-10)/(2*de*W),xe=fe*fe,De=W*fe,ze=W+fe,Ke=ze*ze,or=W+3*fe,Tr=Ke*(de+xe*U-1)+(1-de)*(de*(or*or+4*xe)+xe*(12*De+4*xe)),$r=-2*ze*(4*De*xe+(1-4*de+3*de*de)*(1+pe)+xe*(-6+14*de-U+(-8+8*de-2*U)*pe)+De*(-8+12*de+(-10+10*de-U)*pe)),ft=I(Tr),vt=G*(Ke+xe-1)+2*ft-R*(4*Ke+U),dt=G*(2*fe*pe+2*ze*(1+pe))+$r/ft-8*ze*(G*(-1+xe+Ke)+2*ft)*(1+pe)/(U+4*Ke);W-=q=vt/dt}while(q>b&&--ve>0);return[m(k)*(I(G*G+4)+G)*x/4,_*W]};function so(){return r.geoProjection(Af).scale(127.16)}function cd(k,S,q,R,G){function U(W,ve){var de=q*p(R*ve),fe=I(1-de*de),pe=I(2/(1+fe*o(W*=G)));return[k*fe*pe*p(W),S*de*pe]}return U.invert=function(W,ve){var de=W/k,fe=ve/S,pe=I(de*de+fe*fe),xe=2*H(pe/2);return[i(W*y(xe),k*pe)/G,pe&&H(ve*p(xe)/(S*q*pe))/R]},U}function vd(k,S,q,R){var G=x/3;k=f(k,b),S=f(S,b),k=c(k,_),S=c(S,x-b),q=f(q,0),q=c(q,100-b),R=f(R,b);var U=q/100+1,W=R/100,ve=V(U*o(G))/G,de=p(k)/p(ve*_),fe=S/x,pe=I(W*p(k/2)/p(S/2)),xe=pe/I(fe*de*ve),De=1/(pe*I(fe*de*ve));return cd(xe,De,de,ve,fe)}function n1(){var k=65*B,S=60*B,q=20,R=200,G=r.geoProjectionMutator(vd),U=G(k,S,q,R);return U.poleline=function(W){return arguments.length?G(k=+W*B,S,q,R):k*z},U.parallels=function(W){return arguments.length?G(k,S=+W*B,q,R):S*z},U.inflation=function(W){return arguments.length?G(k,S,q=+W,R):q},U.ratio=function(W){return arguments.length?G(k,S,q,R=+W):R},U.scale(163.775)}function W2(){return n1().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var hd=4*x+3*I(3),dd=2*I(2*x*I(3)/hd),pd=dr(dd*I(3)/x,dd,hd/6);function i1(){return r.geoProjection(pd).scale(176.84)}function Mf(k,S){return[k*I(1-3*S*S/(x*x)),S]}Mf.invert=function(k,S){return[k/I(1-3*S*S/(x*x)),S]};function md(){return r.geoProjection(Mf).scale(152.63)}function j2(k,S){var q=o(S),R=o(k)*q,G=1-R,U=o(k=i(p(k)*q,-p(S))),W=p(k);return q=I(1-R*R),[W*q-U*G,-U*q-W*G]}j2.invert=function(k,S){var q=(k*k+S*S)/-2,R=I(-q*(2+q)),G=S*q+k*R,U=k*q-S*R,W=I(U*U+G*G);return[i(R*G,W*(1+q)),W?-H(R*U/W):0]};function sy(){return r.geoProjection(j2).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Z2(k,S){var q=Se(k,S);return[(q[0]+k/_)/2,(q[1]+S)/2]}Z2.invert=function(k,S){var q=k,R=S,G=25;do{var U=o(R),W=p(R),ve=p(2*R),de=W*W,fe=U*U,pe=p(q),xe=o(q/2),De=p(q/2),ze=De*De,Ke=1-fe*xe*xe,or=Ke?V(U*xe)*I(Tr=1/Ke):Tr=0,Tr,$r=.5*(2*or*U*De+q/_)-k,ft=.5*(or*W+R)-S,vt=.5*Tr*(fe*ze+or*U*xe*de)+.5/_,dt=Tr*(pe*ve/4-or*W*De),gt=.125*Tr*(ve*De-or*W*fe*pe),sa=.5*Tr*(de*xe+or*ze*U)+.5,Sa=dt*gt-sa*vt,Ht=(ft*dt-$r*sa)/Sa,Va=($r*gt-ft*vt)/Sa;q-=Ht,R-=Va}while((a(Ht)>b||a(Va)>b)&&--G>0);return[q,R]};function Ui(){return r.geoProjection(Z2).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=Me,e.geoAiryRaw=ce,e.geoAitoff=Ie,e.geoAitoffRaw=Se,e.geoArmadillo=ke,e.geoArmadilloRaw=Ue,e.geoAugust=j,e.geoAugustRaw=We,e.geoBaker=$,e.geoBakerRaw=K,e.geoBerghaus=_e,e.geoBerghausRaw=se,e.geoBertin1953=ur,e.geoBertin1953Raw=Re,e.geoBoggs=Ar,e.geoBoggsRaw=Oe,e.geoBonne=yr,e.geoBonneRaw=Xe,e.geoBottomley=pr,e.geoBottomleyRaw=kr,e.geoBromley=Pr,e.geoBromleyRaw=xr,e.geoChamberlin=Kr,e.geoChamberlinRaw=Cr,e.geoChamberlinAfrica=Xr,e.geoCollignon=Wr,e.geoCollignonRaw=Lr,e.geoCraig=Pe,e.geoCraigRaw=Ae,e.geoCraster=Bt,e.geoCrasterRaw=gr,e.geoCylindricalEqualArea=na,e.geoCylindricalEqualAreaRaw=Gt,e.geoCylindricalStereographic=It,e.geoCylindricalStereographicRaw=Ma,e.geoEckert1=da,e.geoEckert1Raw=jt,e.geoEckert2=mn,e.geoEckert2Raw=ea,e.geoEckert3=Un,e.geoEckert3Raw=rn,e.geoEckert4=ua,e.geoEckert4Raw=Jr,e.geoEckert5=pa,e.geoEckert5Raw=Rt,e.geoEckert6=ba,e.geoEckert6Raw=ya,e.geoEisenlohr=gn,e.geoEisenlohrRaw=za,e.geoFahey=Fa,e.geoFaheyRaw=aa,e.geoFoucaut=Co,e.geoFoucautRaw=Da,e.geoFoucautSinusoidal=Xu,e.geoFoucautSinusoidalRaw=qi,e.geoGilbert=Wu,e.geoGingery=fl,e.geoGingeryRaw=sl,e.geoGinzburg4=eu,e.geoGinzburg4Raw=Ai,e.geoGinzburg5=ju,e.geoGinzburg5Raw=ru,e.geoGinzburg6=Zu,e.geoGinzburg6Raw=tu,e.geoGinzburg8=lt,e.geoGinzburg8Raw=it,e.geoGinzburg9=Or,e.geoGinzburg9Raw=Ut,e.geoGringorten=zn,e.geoGringortenRaw=ia,e.geoGuyou=Ju,e.geoGuyouRaw=Do,e.geoHammer=ar,e.geoHammerRaw=Ne,e.geoHammerRetroazimuthal=$u,e.geoHammerRetroazimuthalRaw=rf,e.geoHealpix=ou,e.geoHealpixRaw=So,e.geoHill=Bc,e.geoHillRaw=af,e.geoHomolosine=z2,e.geoHomolosineRaw=ts,e.geoHufnagel=nf,e.geoHufnagelRaw=dl,e.geoHyperelliptical=Lo,e.geoHyperellipticalRaw=Eo,e.geoInterrupt=no,e.geoInterruptedBoggs=B2,e.geoInterruptedHomolosine=pl,e.geoInterruptedMollweide=gl,e.geoInterruptedMollweideHemispheres=as,e.geoInterruptedSinuMollweide=ns,e.geoInterruptedSinusoidal=yl,e.geoKavrayskiy7=fu,e.geoKavrayskiy7Raw=su,e.geoLagrange=Xs,e.geoLagrangeRaw=Vs,e.geoLarrivee=js,e.geoLarriveeRaw=Ws,e.geoLaskowski=hn,e.geoLaskowskiRaw=$n,e.geoLittrow=oo,e.geoLittrowRaw=Nn,e.geoLoximuthal=bl,e.geoLoximuthalRaw=os,e.geoMiller=lf,e.geoMillerRaw=cu,e.geoModifiedStereographic=Bi,e.geoModifiedStereographicRaw=Oc,e.geoModifiedStereographicAlaska=cf,e.geoModifiedStereographicGs48=Uc,e.geoModifiedStereographicGs50=Gc,e.geoModifiedStereographicMiller=ls,e.geoModifiedStereographicLee=us,e.geoMollweide=cr,e.geoMollweideRaw=Ze,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=Js,e.geoMtFlatPolarQuartic=O2,e.geoMtFlatPolarQuarticRaw=vf,e.geoMtFlatPolarSinusoidal=$s,e.geoMtFlatPolarSinusoidalRaw=Po,e.geoNaturalEarth2=fs,e.geoNaturalEarth2Raw=vu,e.geoNellHammer=hf,e.geoNellHammerRaw=cs,e.geoInterruptedQuarticAuthalic=Vc,e.geoNicolosi=Xc,e.geoNicolosiRaw=df,e.geoPatterson=Wc,e.geoPattersonRaw=_f,e.geoPolyconic=jc,e.geoPolyconicRaw=_l,e.geoPolyhedral=du,e.geoPolyhedralButterfly=hs,e.geoPolyhedralCollignon=X2,e.geoPolyhedralWaterman=ps,e.geoProject=t0,e.geoGringortenQuincuncial=O,e.geoPeirceQuincuncial=J,e.geoPierceQuincuncial=J,e.geoQuantize=he,e.geoQuincuncial=wf,e.geoRectangularPolyconic=we,e.geoRectangularPolyconicRaw=ue,e.geoRobinson=er,e.geoRobinsonRaw=je,e.geoSatellite=Je,e.geoSatelliteRaw=br,e.geoSinuMollweide=Ic,e.geoSinuMollweideRaw=rs,e.geoSinusoidal=Be,e.geoSinusoidalRaw=Qe,e.geoStitch=xa,e.geoTimes=Xt,e.geoTimesRaw=Yr,e.geoTwoPointAzimuthal=uo,e.geoTwoPointAzimuthalRaw=Cn,e.geoTwoPointAzimuthalUsa=si,e.geoTwoPointEquidistant=ki,e.geoTwoPointEquidistantRaw=Oi,e.geoTwoPointEquidistantUsa=Al,e.geoVanDerGrinten=gu,e.geoVanDerGrintenRaw=Ml,e.geoVanDerGrinten2=t1,e.geoVanDerGrinten2Raw=i0,e.geoVanDerGrinten3=fd,e.geoVanDerGrinten3Raw=a1,e.geoVanDerGrinten4=so,e.geoVanDerGrinten4Raw=Af,e.geoWagner=n1,e.geoWagner7=W2,e.geoWagnerRaw=vd,e.geoWagner4=i1,e.geoWagner4Raw=pd,e.geoWagner6=md,e.geoWagner6Raw=Mf,e.geoWiechel=sy,e.geoWiechelRaw=j2,e.geoWinkel3=Ui,e.geoWinkel3Raw=Z2,Object.defineProperty(e,"__esModule",{value:!0})}))});var XU=ae((V6e,VU)=>{"use strict";var Ja=St(),C8=mr(),Nhe=bt(),E2=Math.PI/180,Dc=180/Math.PI,S8={cursor:"pointer"},F8={cursor:"auto"};function Bhe(e,r){var t=e.projection,a;return r._isScoped?a=Ihe:r._isClipped?a=Ohe:a=Hhe,a(e,t)}VU.exports=Bhe;function E8(e,r){return Ja.behavior.zoom().translate(r.translate()).scaleExtent(r.scaleExtent()).scale(r.scale())}function L8(e,r,t){var a=e.id,n=e.graphDiv,i=n.layout,o=i[a],l=n._fullLayout,u=l[a],s={},f={};function c(h,d){s[a+"."+h]=C8.nestedProperty(o,h).get(),Nhe.call("_storeDirectGUIEdit",i,l._preGUI,s);var m=C8.nestedProperty(u,h);m.get()!==d&&(m.set(d),C8.nestedProperty(o,h).set(d),f[a+"."+h]=d)}t(c),c("projection.scale",r.scale()/e.fitScale),c("fitbounds",!1),n.emit("plotly_relayout",f)}function Ihe(e,r){var t=E8(e,r);function a(){Ja.select(this).style(S8)}function n(){r.scale(Ja.event.scale).translate(Ja.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 u=r.invert(e.midPt);l("center.lon",u[0]),l("center.lat",u[1])}function o(){Ja.select(this).style(F8),L8(e,r,i)}return t.on("zoomstart",a).on("zoom",n).on("zoomend",o),t}function Hhe(e,r){var t=E8(e,r),a=2,n,i,o,l,u,s,f,c,h;function d(x){return r.invert(x)}function m(x){var _=d(x);if(!_)return!0;var A=r(_);return Math.abs(A[0]-x[0])>a||Math.abs(A[1]-x[1])>a}function p(){Ja.select(this).style(S8);let{x,y:_,width:A,height:T}=this.getBBox();n=Ja.event.sourceEvent?Ja.mouse(this):[x+A/2,_+T/2],i=r.rotate(),o=r.translate(),l=i,u=d(n)}function y(){let{x,y:_,width:A,height:T}=this.getBBox();if(s=Ja.event.sourceEvent?Ja.mouse(this):[x+A/2,_+T/2],m(n)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(Ja.event.scale),r.translate([o[0],Ja.event.translate[1]]),u?d(s)&&(c=d(s),f=[l[0]+(c[0]-u[0]),i[1],i[2]],r.rotate(f),l=f):(n=s,u=d(n)),h=!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 b(){Ja.select(this).style(F8),h&&L8(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",p).on("zoom",y).on("zoomend",b),t}function Ohe(e,r){var t={r:r.rotate(),k:r.scale()},a=E8(e,r),n=Zhe(a,"zoomstart","zoom","zoomend"),i=0,o=a.on,l;a.on("zoomstart",function(){Ja.select(this).style(S8);let{x:h,y:d,width:m,height:p}=this.getBBox(),y=Ja.event.sourceEvent?Ja.mouse(this):[h+m/2,d+p/2],b=r.rotate(),C=b,x=r.translate(),_=Uhe(b);l=W3(r,y),o.call(a,"zoom",function(){let{x:A,y:T,width:M,height:E}=this.getBBox(),P=Ja.event.sourceEvent?Ja.mouse(this):[A+M/2,T+E/2];if(r.scale(t.k=Ja.event.scale),!l)y=P,l=W3(r,y);else if(W3(r,P)){r.rotate(b).translate(x);var z=W3(r,P),B=Yhe(l,z),X=Xhe(Ghe(_,B)),H=t.r=Vhe(X,l,C);(!isFinite(H[0])||!isFinite(H[1])||!isFinite(H[2]))&&(H=C),r.rotate(H),C=H}s(n.of(this,arguments))}),u(n.of(this,arguments))}).on("zoomend",function(){Ja.select(this).style(F8),o.call(a,"zoom",null),f(n.of(this,arguments)),L8(e,r,c)}).on("zoom.redraw",function(){e.render(!0);var h=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function u(h){i++||h({type:"zoomstart"})}function s(h){h({type:"zoom"})}function f(h){--i||h({type:"zoomend"})}function c(h){var d=r.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return Ja.rebind(a,n,"on")}function W3(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&Whe(t)}function Uhe(e){var r=.5*e[0]*E2,t=.5*e[1]*E2,a=.5*e[2]*E2,n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),u=Math.sin(a),s=Math.cos(a);return[i*l*s+n*o*u,n*l*s-i*o*u,i*o*s+n*l*u,i*l*u-n*o*s]}function Ghe(e,r){var t=e[0],a=e[1],n=e[2],i=e[3],o=r[0],l=r[1],u=r[2],s=r[3];return[t*o-a*l-n*u-i*s,t*l+a*o+n*s-i*u,t*u-a*s+n*o+i*l,t*s+a*u-n*l+i*o]}function Yhe(e,r){if(!(!e||!r)){var t=jhe(e,r),a=Math.sqrt(YU(t,t)),n=.5*Math.acos(Math.max(-1,Math.min(1,YU(e,r)))),i=Math.sin(n)/a;return a&&[Math.cos(n),t[2]*i,-t[1]*i,t[0]*i]}}function Vhe(e,r,t){var a=D8(r,2,e[0]);a=D8(a,1,e[1]),a=D8(a,0,e[2]-t[2]);var n=r[0],i=r[1],o=r[2],l=a[0],u=a[1],s=a[2],f=Math.atan2(i,n)*Dc,c=Math.sqrt(n*n+i*i),h,d;Math.abs(u)>c?(d=(u>0?90:-90)-f,h=0):(d=Math.asin(u/c)*Dc-f,h=Math.sqrt(c*c-u*u));var m=180-d-2*f,p=(Math.atan2(s,l)-Math.atan2(o,h))*Dc,y=(Math.atan2(s,l)-Math.atan2(o,-h))*Dc,b=UU(t[0],t[1],d,p),C=UU(t[0],t[1],m,y);return b<=C?[d,p,t[2]]:[m,y,t[2]]}function UU(e,r,t,a){var n=GU(t-e),i=GU(a-r);return Math.sqrt(n*n+i*i)}function GU(e){return(e%360+540)%360-180}function D8(e,r,t){var a=t*E2,n=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(a),u=Math.sin(a);return n[i]=e[i]*l-e[o]*u,n[o]=e[o]*l+e[i]*u,n}function Xhe(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*Dc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*Dc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*Dc]}function Whe(e){var r=e[0]*E2,t=e[1]*E2,a=Math.cos(t);return[a*Math.cos(r),a*Math.sin(r),Math.sin(t)]}function YU(e,r){for(var t=0,a=0,n=e.length;a<n;++a)t+=e[a]*r[a];return t}function jhe(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 Zhe(e){for(var r=0,t=arguments.length,a=[];++r<t;)a.push(arguments[r]);var n=Ja.dispatch.apply(null,a);return n.of=function(i,o){return function(l){var u;try{u=l.sourceEvent=Ja.event,l.target=e,Ja.event=l,n[l.type].apply(i,o)}finally{Ja.event=u}}},n}});var eG=ae((X6e,QU)=>{"use strict";var Gu=St(),R8=I3(),Jhe=R8.geoPath,$he=R8.geoDistance,Khe=OU(),Qhe=bt(),nd=mr(),ede=nd.strTranslate,j3=Lt(),ad=va(),WU=Hl(),rde=An(),P8=Ba(),{concatExtremes:tde,getAutoRange:jU,makePadFn:ZU}=D0(),q8=Vo(),ade=Rs().prepSelect,nde=Rs().clearOutline,ide=Rs().selectOnClick,ode=XU(),Li=Qh(),z8=F2(),{unwrapLonRange:lde}=z8,$U=S3(),ude=l8().feature;function KU(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 Kl=KU.prototype;QU.exports=function(r){return new KU(r)};Kl.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 u in Li.layerNameToAdjective)if(u!=="frame"&&i["show"+u]){l=!0;break}for(var s=!1,f=0;f<e.length;f++){var c=e[0][0].trace;c._geo=n,c.locationmode&&(l=!0);var h=c.marker;if(h){var d=h.angle,m=h.angleref;(d||m==="north"||m==="previous")&&(s=!0)}}if(this._hasMarkerAngles=s,l){var p=$U.getTopojsonName(i);(n.topojson===null||p!==n.topojsonName)&&(n.topojsonName=p,PlotlyGeoAssets.topojson[n.topojsonName]===void 0&&o.push(n.fetchTopojson()))}o=o.concat(z8.fetchTraceGeoData(e)),t.push(new Promise(function(y,b){Promise.all(o).then(function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(e,r),y()}).catch(b)}))};Kl.fetchTopojson=function(){var e=this,r=$U.getTopojsonPath(e.topojsonURL,e.topojsonName);return new Promise(function(t,a){Gu.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()})})};Kl.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),rde.generalUpdatePerTraceModule(this.graphDiv,this,e,a);var u=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=u.selectAll(".point"),this.dataPoints.text=u.selectAll("text"),this.dataPaths.line=u.selectAll(".js-line");var s=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=s.selectAll("path"),this._render()};Kl.updateProjection=function(e,r){var t=this.graphDiv,a=r[this.id],n=r._size,i=a.domain,o=a.projection,l=a.lonaxis,u=a.lataxis,s=l._ax,f=u._ax,c=this.projection=sde(a),h=[[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])]],d=a.center||{},m=o.rotation||{},p=l.range||[],y=u.range||[];if(a.fitbounds){s._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],s.range=jU(t,s),f.range=jU(t,f);let I=[];for(let Ue of e){let ke=Ue[0].trace;ke.visible===!0&&ke._module.fitCoords&&I.push(ke._module.fitCoords(Ue,a))}let Q=tde(t,s),le=Q.min.reduce((Ue,{val:ke})=>Math.min(Ue,ke),1/0),te=Q.max.reduce((Ue,{val:ke})=>Math.max(Ue,ke),-1/0)-le,oe=z8.boundsOfCoords(I.flat()),[ce,,Me]=oe||[],Se=Me-ce;if(!!oe&&(te>360||te<360&&Se<te)){let Ue=ZU(r,s,0),ke=ZU(r,s,1),We=Q.min.reduce(($,se)=>Math.max($,Ue(se)),0),j=Q.max.reduce(($,se)=>Math.max($,ke(se)),0),ee=s._length-We-j,me=ee>s._length/10?Se*s._length/ee:Se,K=(ce+Me)/2;s.range=[K-me/2,K+me/2]}var b=(s.range[0]+s.range[1])/2,C=(f.range[0]+f.range[1])/2;if(a._isScoped)d={lon:b,lat:C};else if(a._isClipped){d={lon:b,lat:C},m={lon:b,lat:C,roll:m.roll};var x=o.type,_=Li.lonaxisSpan[x]/2||180,A=Li.lataxisSpan[x]/2||90;p=[b-_,b+_],y=[C-A,C+A]}else d={lon:b,lat:C},m={lon:b,lat:m.lat,roll:m.roll}}c.center([d.lon-m.lon,d.lat-m.lat]).rotate([-m.lon,-m.lat,m.roll]).parallels(o.parallels);var T=JU(p,y);c.fitExtent(h,T);var M=this.bounds=c.getBounds(T),E=this.fitScale=c.scale(),P=c.translate();if(c.scaleExtent=()=>{var le;let{minscale:I}=o,Q=(le=o.maxscale)!=null?le:1/0;return[E*Math.min(I,Q),E*Math.max(I,Q)]},a.fitbounds){var z=c.getBounds(JU(s.range,f.range)),B=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(B)?c.scale(B*E):nd.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([d.lon,d.lat]);if(H){var V=c.translate();c.translate([V[0]-(H[0]-V[0]),V[1]-(H[1]-V[1])])}}};Kl.updateBaseLayers=function(e,r){var t=this,a=t.topojson,n=t.layers,i=t.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function l(h){return!!Li.lineLayers[h]}function u(h){return!!Li.fillLayers[h]}var s=this.hasChoropleth?Li.layersForChoropleth:Li.layers,f=s.filter(function(h){return l(h)||u(h)?r["show"+h]:o(h)?r[h].showgrid:!0}),c=t.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete n[h],delete i[h],Gu.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=n[h]=Gu.select(this);h==="bg"?t.bgRect=d.append("rect").style("pointer-events","all"):o(h)?i[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):l(h)?i[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):u(h)&&(i[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=i[h],m=Li.layerNameToAdjective[h];h==="frame"?d.datum(Li.sphereSVG):l(h)||u(h)?d.datum(ude(a,a.objects[h])):o(h)&&d.datum(fde(h,r,e)).call(j3.stroke,r[h].gridcolor).call(ad.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(j3.stroke,r[m+"color"]).call(ad.dashLine,"",r[m+"width"]):u(h)&&d.call(j3.fill,r[m+"color"])})};Kl.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;ad.setRect(this.clipRect,n,i,o,l),this.bgRect.call(ad.setRect,n,i,o,l).call(j3.fill,r.bgcolor),this.xaxis._offset=n,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};Kl.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,h={};for(var d in c)h[t.id+"."+d]=c[d];Qhe.call("_guiRelayout",a,h),a.emit("plotly_doubleclick",null)}function u(c){return t.projection.invert([c[0]+t.xaxis._offset,c[1]+t.yaxis._offset])}var s=function(c,h){if(h.isRect){var d=c.range={};d[t.id]=[u([h.xmin,h.ymin]),u([h.xmax,h.ymax])]}else{var m=c.lassoPoints={};m[t.id]=h.map(u)}},f={element:t.bgRect.node(),gd:a,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:s},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(c){c===2&&nde(a)}};if(i==="pan"){n.node().onmousedown=null;let c=ode(t,r);if(n.call(c),!Gu.event){let h=t.projection.scale(),[d,m]=t.projection.scaleExtent();(h<d||h>m)&&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,h,d){ade(c,h,d,f,i)},q8.init(f));n.on("mousemove",function(){var c=t.projection.invert(nd.getPositionFromD3Event());if(!c)return q8.unhover(a,Gu.event);t.xaxis.p2c=function(){return c[0]},t.yaxis.p2c=function(){return c[1]},WU.hover(a,Gu.event,t.id)}),n.on("mouseout",function(){a._dragging||q8.unhover(a,Gu.event)}),n.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&ide(Gu.event,a,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&WU.click(a,Gu.event))})};Kl.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=Gu.select(e.container).append("g").attr("class","geo "+e.id).call(ad.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"},P8.setConvert(e.mockAxis,t)};Kl.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},nd.extendFlat(this.viewInitial,n)};Kl.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};Kl._render=function(){var e=this.projection,r=e.getPath(),t;function a(i){var o=e(i.lonlat);return o?ede(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 sde(e){var r=e.projection,t=r.type,a=Li.projNames[t];a="geo"+nd.titleCase(a);for(var n=R8[a]||Khe[a],i=n(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?Li.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],u=function(c){return c?i:[]},s=0;s<l.length;s++){var f=l[s];typeof i[f]!="function"&&(i[f]=u)}return i.isLonLatOverEdges=function(c){if(i(c)===null)return!0;if(o){var h=i.rotate(),d=$he(c,[-h[0],-h[1]]),m=o*Math.PI/180;return d>m}else return!1},i.getPath=function(){return Jhe().projection(i)},i.getBounds=function(c){return i.getPath().bounds(c)},i.precision(Li.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-Li.clipPad),i}function fde(e,r,t){var a=1e-6,n=2.5,i=r[e],o=Li.scopeDefaults[r.scope],l,u,s;e==="lonaxis"?(l=o.lonaxisRange,u=o.lataxisRange,s=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,u=o.lonaxisRange,s=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-a],tick0:i.tick0,dtick:i.dtick};P8.setConvert(f,t);var c=P8.calcTicks(f);!r.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),m=0;m<h;m++)for(var p=c[m].x,y=d[m]=[],b=u[0];b<u[1]+n;b+=n)y.push(s(p,b));return{type:"MultiLineString",coordinates:d}}function JU(e,r){var t=Li.clipPad;let[a,n]=lde([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 N8=ae((W6e,aG)=>{"use strict";var q2=Ll(),cde=w3().attributes,vde=Au().dash,L2=Qh(),hde=Ho().overrideAll,rG=(mp(),ei(pp)).default,tG={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:q2.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:vde},dde=aG.exports=hde({domain:cde({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:rG(L2.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:rG(L2.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:q2.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:L2.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:L2.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:L2.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:L2.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:q2.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:q2.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:q2.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:q2.background},lonaxis:tG,lataxis:tG},"plot","from-root");dde.uirevision={valType:"any",editType:"none"}});var iG=ae((j6e,nG)=>{"use strict";var pde=mr(),mde=Ta(),gde=w3().defaults;nG.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,u=n.partition||"x",s=t._subplots[i],f=s.length,c=f&&s[0].replace(/\d+$/,""),h,d;function m(C,x){return pde.coerce(h,d,o,C,x)}for(var p=0;p<f;p++){var y=s[p];r[y]?h=r[y]:h=r[y]={},d=mde.newContainer(t,y,c),n.noUirevision||m("uirevision",t.uirevision);var b={};b[u]=[p/f,(p+1)/f],gde(d,t,m,b),n.id=y,l(h,d,m,n)}}});var uG=ae((Z6e,lG)=>{"use strict";var Z3=mr(),yde=iG(),bde=Lv().getSubplotData,{unwrapLonRange:_de}=F2(),id=Qh(),xde=N8(),oG=id.axesNames;lG.exports=function(r,t,a){yde(r,t,a,{type:"geo",attributes:xde,handleDefaults:wde,fullData:a,partition:"y"})};function wde(e,r,t,a){var n=bde(a.fullData,"geo",a.id),i=n.map(function(oe){return oe.index}),o=t("resolution"),l=t("scope"),u=id.scopeDefaults[l],s=t("projection.type",u.projType),f=r._isAlbersUsa=s==="albers usa";f&&(l=r.scope="usa");var c=r._isScoped=l!=="world",h=r._isSatellite=s==="satellite",d=r._isConic=s.indexOf("conic")!==-1||s==="albers",m=r._isClipped=!!id.lonaxisSpan[s];if(e.visible===!1){var p=Z3.extendDeep({},r._template);p.showcoastlines=!1,p.showcountries=!1,p.showframe=!1,p.showlakes=!1,p.showland=!1,p.showocean=!1,p.showrivers=!1,p.showsubunits=!1,p.lonaxis&&(p.lonaxis.showgrid=!1),p.lataxis&&(p.lataxis.showgrid=!1),r._template=p}for(var y=t("visible"),b,C=0;C<oG.length;C++){var x=oG[C],_=[30,10][C],A;if(c)A=u[x+"Range"];else{var T=id[x+"Span"],M=(T[s]||T["*"])/2,E=t("projection.rotation."+x.slice(0,3),u.projRotate[C]);A=[E-M,E+M]}var P=t(x+".range",A);t(x+".tick0"),t(x+".dtick",_),b=t(x+".showgrid",y?void 0:!1),b&&(t(x+".gridcolor"),t(x+".gridwidth"),t(x+".griddash")),r[x]._ax={type:"linear",_id:x.slice(0,3),_traceIndices:i,setScale:Z3.identity,c2l:Z3.identity,r2l:Z3.identity,autorange:!0,range:P.slice(),_m:1,_input:{}}}var z=r.lonaxis.range,B=r.lataxis.range;let[X,H]=_de(z);var V=(X+H)/2,I;if(!f){var Q=c?u.projRotate:[V,0,0];I=t("projection.rotation.lon",Q[0]),t("projection.rotation.lat",Q[1]),t("projection.rotation.roll",Q[2]),b=t("showcoastlines",!c&&y),b&&(t("coastlinecolor"),t("coastlinewidth")),b=t("showocean",y?void 0:!1),b&&t("oceancolor")}var le,re;if(f?(le=-96.6,re=38.7):(le=c?V:I,re=(B[0]+B[1])/2),t("center.lon",le),t("center.lat",re),h&&(t("projection.tilt"),t("projection.distance")),d){var te=u.projParallels||[0,60];t("projection.parallels",te)}if(t("projection.scale"),t("projection.minscale"),t("projection.maxscale"),b=t("showland",y?void 0:!1),b&&t("landcolor"),b=t("showlakes",y?void 0:!1),b&&t("lakecolor"),b=t("showrivers",y?void 0:!1),b&&(t("rivercolor"),t("riverwidth")),b=t("showcountries",c&&l!=="usa"&&y),b&&(t("countrycolor"),t("countrywidth")),(l==="usa"||l==="north america"&&o===50)&&(t("showsubunits",y),t("subunitcolor"),t("subunitwidth")),c||(b=t("showframe",y),b&&(t("framecolor"),t("framewidth"))),t("bgcolor"),t("fitbounds"),r.fitbounds){let oe=e.center||{},ce=e.projection||{},Me=ce.rotation||{},Se=e.lonaxis||{},Ie=e.lataxis||{},Ue=[{dst:r.center,key:"lon",src:oe},{dst:r.center,key:"lat",src:oe},{dst:r.projection,key:"scale",src:ce}];c||(m?Ue.push({dst:r.projection.rotation,key:"lon",src:Me},{dst:r.projection.rotation,key:"lat",src:Me},{dst:r.lonaxis,key:"range",src:Se},{dst:r.lataxis,key:"range",src:Ie}):Ue.push({dst:r.projection.rotation,key:"lon",src:Me})),m||Ue.push({key:"range",src:Se},{key:"range",src:Ie}),Ue.some(({src:We,key:j})=>We[j]!=null)||id.fitboundsIncompatible.has(s)?r.fitbounds=!1:Ue.forEach(({dst:We,key:j})=>We&&(We[j]=null))}}});var B8=ae((J6e,cG)=>{"use strict";var Ade=Lv().getSubplotCalcData,Mde=mr().counterRegex,Tde=eG(),Yu="geo",sG=Mde(Yu),fG={};fG[Yu]={valType:"subplotid",dflt:Yu,editType:"calc"};function kde(e){for(var r=e._fullLayout,t=e.calcdata,a=r._subplots[Yu],n=0;n<a.length;n++){var i=a[n],o=Ade(t,Yu,i),l=r[i],u=l._subplot;u||(u=Tde({id:i,graphDiv:e,container:r._geolayer.node(),topojsonURL:e._context.topojsonURL,staticPlot:e._context.staticPlot}),r[i]._subplot=u),u.plot(o,r,e._promises)}}function Cde(e,r,t,a){for(var n=a._subplots[Yu]||[],i=0;i<n.length;i++){var o=n[i],l=a[o]._subplot;!r[o]&&l&&(l.framework.remove(),l.clipDef.remove())}}function Dde(e){for(var r=e._fullLayout,t=r._subplots[Yu],a=0;a<t.length;a++){var n=r[t[a]],i=n._subplot;i.updateFx(r,n)}}cG.exports={attr:Yu,name:Yu,idRoot:Yu,idRegex:sG,attrRegex:sG,attributes:fG,layoutAttributes:N8(),supplyLayoutDefaults:uG(),plot:kde,updateFx:Dde,clean:Cde}});var hG=ae(($6e,vG)=>{"use strict";vG.exports={attributes:Kh(),supplyDefaults:RO(),colorbar:K7(),formatLabels:BO(),calc:GO(),calcGeoJSON:Y3().calcGeoJSON,fitCoords:Y3().fitCoords,plot:Y3().plot,style:A8(),styleOnSelect:Bh().styleOnSelect,hoverPoints:LU(),eventData:PU(),selectPoints:NU(),moduleType:"trace",name:"scattergeo",basePlotModule:B8(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var pG=ae((K6e,dG)=>{"use strict";dG.exports=hG()});var J3=ae((Q6e,yG)=>{"use strict";var{hovertemplateAttrs:Sde,templatefallbackAttrs:Fde}=Bf(),Z0=Kh(),Ede=O1(),mG=Io(),Lde=Ll().defaultLine,j0=_n().extendFlat,gG=Z0.marker.line;yG.exports=j0({locations:{valType:"data_array",editType:"calc"},locationmode:Z0.locationmode,z:{valType:"data_array",editType:"calc"},geojson:j0({},Z0.geojson,{}),featureidkey:Z0.featureidkey,text:j0({},Z0.text,{}),hovertext:j0({},Z0.hovertext,{}),marker:{line:{color:j0({},gG.color,{dflt:Lde}),width:j0({},gG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:Z0.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Z0.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:j0({},mG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Sde(),hovertemplatefallback:Fde(),showlegend:j0({},mG.showlegend,{dflt:!1})},Ede("",{cLetter:"z",editTypeOverride:"calc"}))});var _G=ae((ebe,bG)=>{"use strict";var $3=mr(),qde=U1(),Pde=J3();bG.exports=function(r,t,a,n){function i(h,d){return $3.coerce(r,t,Pde,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&$3.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var u=i("geojson"),s;(typeof u=="string"&&u!==""||$3.isPlainObject(u))&&(s="geojson-id");var f=i("locationmode",s);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"),qde(r,t,n,i,{prefix:"",cLetter:"z"}),$3.coerceSelectionMarkerOpacity(t,i)}});var wG=ae((rbe,xG)=>{"use strict";xG.exports={min:"zmin",max:"zmax"}});var kG=ae((tbe,TG)=>{"use strict";var AG=Wt(),Rde=Oa().BADNUM,zde=Up(),Nde=qh(),Bde=Ig();function MG(e){return e&&typeof e=="string"}TG.exports=function(r,t){var a=t._length,n=new Array(a),i;t.geojson?i=function(f){return MG(f)||AG(f)}:i=MG;for(var o=0;o<a;o++){var l=n[o]={},u=t.locations[o],s=t.z[o];i(u)&&AG(s)?(l.loc=u,l.z=s):(l.loc=null,l.z=Rde),l.index=o}return Nde(n,t),zde(r,t,{vals:t.z,containerStr:"",cLetter:"z"}),Bde(n,t),n}});var K3=ae((abe,DG)=>{"use strict";var Ide=St(),Hde=Lt(),I8=va(),Ode=Yp();function Ude(e,r){r&&CG(e,r)}function CG(e,r){var t=r[0].trace,a=r[0].node3,n=a.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=Ode.makeColorScaleFuncFromTrace(t);n.each(function(u){Ide.select(this).attr("fill",l(u.z)).call(Hde.stroke,u.mlc||o.color).call(I8.dashLine,"",u.mlw||o.width||0).style("opacity",i.opacity)}),I8.selectedPointStyle(n,t)}function Gde(e,r){var t=r[0].node3,a=r[0].trace;a.selectedpoints?I8.selectedPointStyle(t.selectAll(".choroplethlocation"),a):CG(e,r)}DG.exports={style:Ude,styleOnSelect:Gde}});var Q3=ae((nbe,EG)=>{"use strict";var Yde=St(),SG=mr(),Sc=F2(),Vde=S3().getTopojsonFeatures,FG=D0().findExtremes,Xde=K3().style;function Wde(e,r,t){var a=r.layers.backplot.select(".choroplethlayer");SG.makeTraceGroups(a,t,"trace choropleth").each(function(n){var i=Yde.select(this),o=i.selectAll("path.choroplethlocation").data(SG.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Xde(e,n)})}function jde(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Sc.extractTraceFeature(e):Vde(t,n.topojson);let u=Sc.fitGeojsonBbox(t,a);for(var s=[],f=[],c=0;c<o;c++){var h=e[c],d=i==="geojson-id"?h.fOut:Sc.locationToFeature(i,h.loc,l);if(d){if(h.geojson=d,h.ct=d.properties.ct,h._polygons=Sc.feature2polygons(d),!u){let p=Sc.computeBbox(d);if(p){let[y,b,C,x]=p;s.push(y,C),f.push(b,x)}}}else h.geojson=null}if(u){let[p,y,b,C]=u;s=[p,b],f=[y,C]}var m={padded:!0};t._extremes.lon=FG(a.lonaxis._ax,s,m),t._extremes.lat=FG(a.lataxis._ax,f,m)}function Zde(e,r){let t=Sc.fitGeojsonCoords(e[0].trace,r);if(t.length)return t;let a=[];for(let n of e)n.geojson&&a.push(Sc.coordsOf(n.geojson));return a.flat()}EG.exports={calcGeoJSON:jde,fitCoords:Zde,plot:Wde}});var qG=ae((ibe,LG)=>{"use strict";var Jde=Ba(),$de=J3(),Kde=mr().fillText,{ANTIMERIDIAN_LON_SHIFT:Qde}=F2();LG.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.subplot,l,u,s,f,c=[t,a];let h=[t+Qde,a];for(u=0;u<n.length;u++)if(l=n[u],f=!1,l._polygons){for(s=0;s<l._polygons.length;s++)l._polygons[s].contains(c)&&(f=!f),l._polygons[s].contains(h)&&(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=Jde.tickText(o.mockAxis,o.mockAxis.c2l(l.z),"hover").text,r.hovertemplate=l.hovertemplate,epe(r,i,l),[r]};function epe(e,r,t){if(!r.hovertemplate){var a=t.hi||r.hoverinfo,n=String(t.loc),i=a==="all"?$de.hoverinfo.flags:a.split("+"),o=i.indexOf("name")!==-1,l=i.indexOf("location")!==-1,u=i.indexOf("z")!==-1,s=i.indexOf("text")!==-1,f=!o&&l,c=[];f?e.nameOverride=n:(o&&(e.nameOverride=r.name),l&&c.push(n)),u&&c.push(e.zLabel),s&&Kde(t,r,c),e.extraText=c.join("<br>")}}});var RG=ae((obe,PG)=>{"use strict";PG.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 NG=ae((lbe,zG)=>{"use strict";zG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,u,s,f,c;if(t===!1)for(l=0;l<a.length;l++)a[l].selected=0;else for(l=0;l<a.length;l++)u=a[l],s=u.ct,s&&(f=n.c2p(s),c=i.c2p(s),t.contains([f,c],null,l,r)?(o.push({pointNumber:l,lon:s[0],lat:s[1]}),u.selected=1):u.selected=0);return o}});var IG=ae((ube,BG)=>{"use strict";BG.exports={attributes:J3(),supplyDefaults:_G(),colorbar:wG(),calc:kG(),calcGeoJSON:Q3().calcGeoJSON,fitCoords:Q3().fitCoords,plot:Q3().plot,style:K3().style,styleOnSelect:K3().styleOnSelect,hoverPoints:qG(),eventData:RG(),selectPoints:NG(),moduleType:"trace",name:"choropleth",basePlotModule:B8(),categories:["geo","noOpacity","showLegend"],meta:{}}});var OG=ae((sbe,HG)=>{"use strict";HG.exports=IG()});var oi=ae((fbe,GG)=>{"use strict";var UG=Object.getOwnPropertySymbols,rpe=Object.prototype.hasOwnProperty,tpe=Object.prototype.propertyIsEnumerable;function ape(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function npe(){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}}GG.exports=npe()?Object.assign:function(e,r){for(var t,a=ape(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var o in t)rpe.call(t,o)&&(a[o]=t[o]);if(UG){n=UG(t);for(var l=0;l<n.length;l++)tpe.call(t,n[l])&&(a[n[l]]=t[n[l]])}}return a}});var li=ae((cbe,VG)=>{var ry=oi();function YG(){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={}}ry(YG.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 H8(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(Ft.local.invalidDate||Ft.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function ey(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}ry(H8.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(Ft.local.invalidDate||Ft.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(Ft.local.differentCalendars||Ft.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?"-":"")+ey(Math.abs(this.year()),4)+"-"+ey(this.month(),2)+"-"+ey(this.day(),2)}});function O8(){this.shortYearCutoff="+10"}ry(O8.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Ft.local.invalidDate||Ft.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new H8(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ft.local.invalidYear||Ft.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,Ft.local.invalidYear||Ft.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+ey(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ft.local.invalidYear||Ft.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Ft.local.invalidMonth||Ft.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,Ft.local.invalidMonth||Ft.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ft.local.invalidYear||Ft.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Ft.local.invalidDate||Ft.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,Ft.local.invalidDate||Ft.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Ft.local.invalidDate||Ft.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Ft.local.invalidDate||Ft.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 u=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_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,Ft.local.invalidDate||Ft.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,Ft.local.invalidDate||Ft.regionalOptions[""].invalidDate);return Ft.instance().fromJD(this.toJD(a)).toJSDate()},fromJSDate:function(e){return this.fromJD(Ft.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,a){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Ft.local.differentCalendars||Ft.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 U8(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}U8.prototype=new O8;ry(U8.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,Ft.local.invalidYear||Ft.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,Ft.local.invalidMonth||Ft.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,Ft.local.invalidDate||Ft.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),u=o-(o>13.5?13:1),s=n-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Ft.local.invalidDate||Ft.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 Ft=VG.exports=new YG;Ft.cdate=H8;Ft.baseCalendar=O8;Ft.calendars.gregorian=U8});var XG=ae(()=>{var G8=oi(),On=li();G8(On.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"});On.local=On.regionalOptions[""];G8(On.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});G8(On.baseCalendar.prototype,{UNIX_EPOCH:On.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:On.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 On.local.invalidFormat||On.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,u=t.calculateWeek||this.local.calculateWeek,s=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(s(_,M))for(;E.length<T;)E="0"+E;return E},c=function(_,A,T,M){return s(_)?M[A]:T[A]},h=this,d=function(_){return typeof i=="function"?i.call(h,_,s("m")):y(f("m",_.month(),2))},m=function(_,A){return A?typeof l=="function"?l.call(h,_):l[_.month()-h.minMonth]:typeof o=="function"?o.call(h,_):o[_.month()-h.minMonth]},p=this.local.digits,y=function(_){return t.localNumbers&&p?p(_):_},b="",C=!1,x=0;x<e.length;x++)if(C)e.charAt(x)==="'"&&!s("'")?C=!1:b+=e.charAt(x);else switch(e.charAt(x)){case"d":b+=y(f("d",r.day(),2));break;case"D":b+=c("D",r.dayOfWeek(),a,n);break;case"o":b+=f("o",r.dayOfYear(),3);break;case"w":b+=f("w",r.weekOfYear(),2);break;case"m":b+=d(r);break;case"M":b+=m(r,s("M"));break;case"y":b+=s("y",2)?r.year():(r.year()%100<10?"0":"")+r.year()%100;break;case"Y":s("Y",2),b+=r.formatYear();break;case"J":b+=r.toJD();break;case"@":b+=(r.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":b+=(r.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":s("'")?b+="'":C=!0;break;default:b+=e.charAt(x)}return b},parseDate:function(e,r,t){if(r==null)throw On.local.invalidArguments||On.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,u=t.monthNamesShort||this.local.monthNamesShort,s=t.monthNames||this.local.monthNames,f=-1,c=-1,h=-1,d=-1,m=-1,p=!1,y=!1,b=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=b(X,H),I=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],Q=new RegExp("^-?\\d{1,"+I+"}"),le=r.substring(E).match(Q);if(!le)throw(On.local.missingNumberAt||On.regionalOptions[""].missingNumberAt).replace(/\{0\}/,E);return E+=le[0].length,parseInt(le[0],10)},x=this,_=function(){if(typeof l=="function"){b("m");var X=l.call(x,r.substring(E));return E+=X.length,X}return C("m")},A=function(X,H,V,I){for(var Q=b(X,I)?V:H,le=0;le<Q.length;le++)if(r.substr(E,Q[le].length).toLowerCase()===Q[le].toLowerCase())return E+=Q[le].length,le+x.minMonth;throw(On.local.unknownNameAt||On.regionalOptions[""].unknownNameAt).replace(/\{0\}/,E)},T=function(){if(typeof s=="function"){var X=b("M")?s.call(x,r.substring(E)):u.call(x,r.substring(E));return E+=X.length,X}return A("M",u,s)},M=function(){if(r.charAt(E)!==e.charAt(P))throw(On.local.unexpectedLiteralAt||On.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,E);E++},E=0,P=0;P<e.length;P++)if(y)e.charAt(P)==="'"&&!b("'")?y=!1:M();else switch(e.charAt(P)){case"d":d=C("d");break;case"D":A("D",n,i);break;case"o":m=C("o");break;case"w":C("w");break;case"m":h=_();break;case"M":h=T();break;case"y":var z=P;p=!b("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"'":b("'")?M():y=!0;break;default:M()}if(E<r.length)throw On.local.unexpectedText||On.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&p&&(c+=a===-1?1900:this.today().year()-this.today().year()%100-(c<=a?0:100)),typeof h=="string"&&(h=o.call(this,c,h)),m>-1){h=1,d=m;for(var B=this.daysInMonth(c,h);d>B;B=this.daysInMonth(c,h))h++,d-=B}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||i.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var WG=ae(()=>{var J0=li(),ipe=oi(),Y8=J0.instance();function ty(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ty.prototype=new J0.baseCalendar;ipe(ty.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(lpe);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(upe);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(spe);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 J0.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 J0.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=$0[e-$0[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,J0.local.invalidyear),n=K0[a-K0[0]],i=n>>9&4095,o=n>>5&15,l=n&31,u;u=Y8.newDate(i,o,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=$0[e-$0[0]],a=t>>13,n=a?12:11;if(r>n)throw J0.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,J0.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=cpe(e,i,t,n);return Y8.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=Y8.fromJD(e),t=fpe(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(ope),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(ty.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,o),c=i&&f?this.toMonthIndex(u,o,!0):this.toMonthIndex(u,o,!1);c!==s&&l.month(c)}return l}});var ope=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,lpe=/^\d?\d[iI]?/m,upe=/^闰?十?[一二三四五六七八九]?月/m,spe=/^闰?十?[一二三四五六七八九]?/m;J0.calendars.chinese=ty;var $0=[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],K0=[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 fpe(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 u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var s=K0[n.year-K0[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=s?n.year:n.year-1,s=K0[i.year-K0[0]];var c=s>>9&4095,h=s>>5&15,d=s&31,m,p=new Date(c,h-1,d),y=new Date(n.year,n.month-1,n.day);m=Math.round((y-p)/(24*3600*1e3));var b=$0[i.year-$0[0]],C;for(C=0;C<13;C++){var x=b&1<<12-C?30:29;if(m<x)break;m-=x}var _=b>>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+m,i}function cpe(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 u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof 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 h=$0[o.year-$0[0]],d=h>>13,m;d&&(o.month>d||o.isIntercalary)?m=o.month:m=o.month-1;for(var p=0;p<m;p++){var y=h&1<<12-p?30:29;c+=y}var b=K0[o.year-K0[0]],C=b>>9&4095,x=b>>5&15,_=b&31,A=new Date(C,x-1,_+c);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var jG=ae(()=>{var Fc=li(),vpe=oi();function V8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V8.prototype=new Fc.baseCalendar;vpe(V8.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,Fc.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,Fc.local.invalidYear||Fc.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,Fc.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,Fc.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)}});Fc.calendars.coptic=V8});var ZG=ae(()=>{var Us=li(),hpe=oi();function X8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X8.prototype=new Us.baseCalendar;hpe(X8.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,Us.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Us.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Us.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,Us.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Us.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,Us.local.invalidDate);return{century:dpe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Us.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 dpe={20:"Fruitbat",21:"Anchovy"};Us.calendars.discworld=X8});var JG=ae(()=>{var Ec=li(),ppe=oi();function W8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W8.prototype=new Ec.baseCalendar;ppe(W8.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,Ec.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,Ec.local.invalidYear||Ec.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,Ec.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,Ec.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)}});Ec.calendars.ethiopian=W8});var $G=ae(()=>{var Q0=li(),mpe=oi();function j8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}j8.prototype=new Q0.baseCalendar;mpe(j8.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,Q0.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,ay(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Q0.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,Q0.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,Q0.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&ay(this.daysInYear(e),10)===5?30:r===9&&ay(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,Q0.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,Q0.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 ay(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 ay(e,r){return e-r*Math.floor(e/r)}Q0.calendars.hebrew=j8});var KG=ae(()=>{var od=li(),gpe=oi();function Z8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z8.prototype=new od.baseCalendar;gpe(Z8.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,od.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,od.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,od.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)}});od.calendars.islamic=Z8});var QG=ae(()=>{var ld=li(),ype=oi();function J8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J8.prototype=new ld.baseCalendar;ype(J8.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,ld.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,ld.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,ld.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),u=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,u)}});ld.calendars.julian=J8});var rY=ae(()=>{var ll=li(),bpe=oi();function K8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K8.prototype=new ll.baseCalendar;bpe(K8.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,ll.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ll.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,ll.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,ll.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ll.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,ll.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ll.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,ll.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ll.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=$8(e+8+340,365);return[Math.floor(r/20)+1,$8(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[eY(e+20,20),eY(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,ll.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 $8(e,r){return e-r*Math.floor(e/r)}function eY(e,r){return $8(e-1,r)+1}ll.calendars.mayan=K8});var aY=ae(()=>{var Lc=li(),_pe=oi();function Q8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Q8.prototype=new Lc.baseCalendar;var tY=Lc.instance("gregorian");_pe(Q8.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,Lc.local.invalidYear||Lc.regionalOptions[""].invalidYear);return tY.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,Lc.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,Lc.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+tY.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)}});Lc.calendars.nanakshahi=Q8});var nY=ae(()=>{var qc=li(),xpe=oi();function e_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}e_.prototype=new qc.baseCalendar;xpe(e_.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,qc.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,qc.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,qc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=qc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var u=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(u))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(u,1,1).add(i,"d").toJD()},fromJD:function(e){var r=qc.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],u=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>u;)o++,o>12&&(o=1,i++),u+=this.NEPALI_CALENDAR_DATA[i][o];var s=this.NEPALI_CALENDAR_DATA[i][o]-(u-n);return this.newDate(i,o,s)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t<e+2;t++)typeof this.NEPALI_CALENDAR_DATA[t]=="undefined"&&(this.NEPALI_CALENDAR_DATA[t]=r)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}});qc.calendars.nepali=e_});var iY=ae(()=>{var P2=li(),wpe=oi();function iy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function ny(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}iy.prototype=new P2.baseCalendar;wpe(iy.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,P2.local.invalidYear);return ny(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,P2.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,P2.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i<e;i++)ny(i)&&n++;else if(e<0)for(var i=e;i<0;i++)ny(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,ny(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)}});P2.calendars.persian=iy;P2.calendars.jalali=iy});var oY=ae(()=>{var Pc=li(),Ape=oi(),oy=Pc.instance();function r_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}r_.prototype=new Pc.baseCalendar;Ape(r_.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,Pc.local.invalidYear),t=this._t2gYear(r.year());return oy.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Pc.local.invalidYear),n=this._t2gYear(a.year());return oy.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Pc.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,Pc.local.invalidDate),n=this._t2gYear(a.year());return oy.toJD(n,a.month(),a.day())},fromJD:function(e){var r=oy.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)}});Pc.calendars.taiwan=r_});var lY=ae(()=>{var Rc=li(),Mpe=oi(),ly=Rc.instance();function t_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}t_.prototype=new Rc.baseCalendar;Mpe(t_.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,Rc.local.invalidYear),t=this._t2gYear(r.year());return ly.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Rc.local.invalidYear),n=this._t2gYear(a.year());return ly.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Rc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Rc.local.invalidDate),n=this._t2gYear(a.year());return ly.toJD(n,a.month(),a.day())},fromJD:function(e){var r=ly.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)}});Rc.calendars.thai=t_});var uY=ae(()=>{var zc=li(),Tpe=oi();function a_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}a_.prototype=new zc.baseCalendar;Tpe(a_.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,zc.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,zc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;i<ef.length;i++){if(ef[i]>a)return ef[n]-ef[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,zc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+ef[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;a<ef.length&&!(ef[a]>r);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,u=r-ef[t-1]+1;return this.newDate(o,l,u)},isValid:function(e,r,t){var a=zc.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=zc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});zc.calendars.ummalqura=a_;var ef=[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 fY=ae((Ube,sY)=>{"use strict";sY.exports=li();XG();WG();jG();ZG();JG();$G();KG();QG();rY();aY();nY();iY();oY();lY();uY()});var gY=ae((Gbe,mY)=>{"use strict";var vY=fY(),ud=mr(),hY=Oa(),kpe=hY.EPOCHJD,Cpe=hY.ONEDAY,o_={valType:"enumerated",values:ud.sortObjectKeys(vY.calendars),editType:"calc",dflt:"gregorian"},dY=function(e,r,t,a){var n={};return n[t]=o_,ud.coerce(e,r,n,t,a)},Dpe=function(e,r,t,a){for(var n=0;n<t.length;n++)dY(e,r,t[n]+"calendar",a.calendar)},Spe={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"},Fpe={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"},Epe={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"]},uy="##",Lpe={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:uy,w:uy,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function qpe(e,r,t){for(var a=Math.floor((r+.05)/Cpe)+kpe,n=pY(t).fromJD(a),i=0,o,l,u,s,f;(i=e.indexOf("%",i))!==-1;)o=e.charAt(i+1),o==="0"||o==="-"||o==="_"?(u=3,l=e.charAt(i+2),o==="_"&&(o="-")):(l=o,o="0",u=2),s=Lpe[l],s?(s===uy?f=uy:f=n.formatDate(s[o]),e=e.slice(0,i)+f+e.slice(i+u),i+=f.length):i+=u;return e}var cY={};function pY(e){var r=cY[e];return r||(r=cY[e]=vY.instance(e),r)}function sd(e){return ud.extendFlat({},o_,{description:e})}function l_(e){return"Sets the calendar system to use with `"+e+"` date data."}var i_={xcalendar:sd(l_("x"))},Vu=ud.extendFlat({},i_,{ycalendar:sd(l_("y"))}),n_=ud.extendFlat({},Vu,{zcalendar:sd(l_("z"))}),R2=sd(["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(" "));mY.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:Vu,bar:Vu,box:Vu,heatmap:Vu,contour:Vu,histogram:Vu,histogram2d:Vu,histogram2dcontour:Vu,scatter3d:n_,surface:n_,mesh3d:n_,scattergl:Vu,ohlc:i_,candlestick:i_},layout:{calendar:sd(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:R2},yaxis:{calendar:R2},scene:{xaxis:{calendar:R2},yaxis:{calendar:R2},zaxis:{calendar:R2}},polar:{radialaxis:{calendar:R2}}}},layoutAttributes:o_,handleDefaults:dY,handleTraceDefaults:Dpe,CANONICAL_SUNDAY:Fpe,CANONICAL_TICK:Spe,DFLTRANGE:Epe,getCal:pY,worldCalFmt:qpe}});var bY=ae((Ybe,yY)=>{"use strict";yY.exports=gY()});var Ppe=ae((Vbe,xY)=>{var _Y=DO();_Y.register([pG(),OG(),bY()]);xY.exports=_Y});return Ppe();})();
/*! 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;
}));