@bicharts/chart-mcp 0.6.117 → 0.6.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ var AY=Object.create;var R8=Object.defineProperty;var wY=Object.getOwnPropertyDe
8
8
  `+Object.keys(o).map(n=>`${n}: ${o[n]}`).join(`\r
9
9
  `)+`\r
10
10
  \r
11
- `+e)}function py(r,t,e,o,n,i){if(r.listenerCount("wsClientError")){let a=new Error(n);Error.captureStackTrace(a,py),r.emit("wsClientError",a,e,t)}else y3(e,o,n,i)}});var TH=ar((a7,MH)=>{(function(r,t){typeof a7=="object"&&typeof MH<"u"?t(a7):typeof define=="function"&&define.amd?define(["exports"],t):(r=typeof globalThis<"u"?globalThis:r||self,t(r.d3=r.d3||{}))})(a7,(function(r){"use strict";function t(P,x){return P<x?-1:P>x?1:P>=x?0:NaN}function e(P){let x=P,E=P;P.length===1&&(x=(Q,dt)=>P(Q)-dt,E=o(P));function R(Q,dt,jt,ie){for(jt==null&&(jt=0),ie==null&&(ie=Q.length);jt<ie;){let le=jt+ie>>>1;E(Q[le],dt)<0?jt=le+1:ie=le}return jt}function U(Q,dt,jt,ie){for(jt==null&&(jt=0),ie==null&&(ie=Q.length);jt<ie;){let le=jt+ie>>>1;E(Q[le],dt)>0?ie=le:jt=le+1}return jt}function G(Q,dt,jt,ie){jt==null&&(jt=0),ie==null&&(ie=Q.length);let le=R(Q,dt,jt,ie-1);return le>jt&&x(Q[le-1],dt)>-x(Q[le],dt)?le-1:le}return{left:R,center:G,right:U}}function o(P){return(x,E)=>t(P(x),E)}function n(P){return P===null?NaN:+P}function*i(P,x){if(x===void 0)for(let E of P)E!=null&&(E=+E)>=E&&(yield E);else{let E=-1;for(let R of P)(R=x(R,++E,P))!=null&&(R=+R)>=R&&(yield R)}}let a=e(t),s=a.right,l=a.left,u=e(n).center;function c(P,x){let E=0;if(x===void 0)for(let R of P)R!=null&&(R=+R)>=R&&++E;else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(U=+U)>=U&&++E}return E}function h(P){return P.length|0}function m(P){return!(P>0)}function p(P){return typeof P!="object"||"length"in P?P:Array.from(P)}function g(P){return x=>P(...x)}function d(...P){let x=typeof P[P.length-1]=="function"&&g(P.pop());P=P.map(p);let E=P.map(h),R=P.length-1,U=new Array(R+1).fill(0),G=[];if(R<0||E.some(m))return G;for(;;){G.push(U.map((dt,jt)=>P[jt][dt]));let Q=R;for(;++U[Q]===E[Q];){if(Q===0)return x?G.map(x):G;U[Q--]=0}}}function f(P,x){var E=0,R=0;return Float64Array.from(P,x===void 0?U=>E+=+U||0:U=>E+=+x(U,R++,P)||0)}function b(P,x){return x<P?-1:x>P?1:x>=P?0:NaN}function S(P,x){let E=0,R,U=0,G=0;if(x===void 0)for(let Q of P)Q!=null&&(Q=+Q)>=Q&&(R=Q-U,U+=R/++E,G+=R*(Q-U));else{let Q=-1;for(let dt of P)(dt=x(dt,++Q,P))!=null&&(dt=+dt)>=dt&&(R=dt-U,U+=R/++E,G+=R*(dt-U))}if(E>1)return G/(E-1)}function v(P,x){let E=S(P,x);return E&&Math.sqrt(E)}function A(P,x){let E,R;if(x===void 0)for(let U of P)U!=null&&(E===void 0?U>=U&&(E=R=U):(E>U&&(E=U),R<U&&(R=U)));else{let U=-1;for(let G of P)(G=x(G,++U,P))!=null&&(E===void 0?G>=G&&(E=R=G):(E>G&&(E=G),R<G&&(R=G)))}return[E,R]}class M{constructor(){this._partials=new Float64Array(32),this._n=0}add(x){let E=this._partials,R=0;for(let U=0;U<this._n&&U<32;U++){let G=E[U],Q=x+G,dt=Math.abs(x)<Math.abs(G)?x-(Q-G):G-(Q-x);dt&&(E[R++]=dt),x=Q}return E[R]=x,this._n=R+1,this}valueOf(){let x=this._partials,E=this._n,R,U,G,Q=0;if(E>0){for(Q=x[--E];E>0&&(R=Q,U=x[--E],Q=R+U,G=U-(Q-R),!G););E>0&&(G<0&&x[E-1]<0||G>0&&x[E-1]>0)&&(U=G*2,R=Q+U,U==R-Q&&(Q=R))}return Q}}function C(P,x){let E=new M;if(x===void 0)for(let R of P)(R=+R)&&E.add(R);else{let R=-1;for(let U of P)(U=+x(U,++R,P))&&E.add(U)}return+E}function B(P,x){let E=new M,R=-1;return Float64Array.from(P,x===void 0?U=>E.add(+U||0):U=>E.add(+x(U,++R,P)||0))}class F extends Map{constructor(x,E=O){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:E}}),x!=null)for(let[R,U]of x)this.set(R,U)}get(x){return super.get(I(this,x))}has(x){return super.has(I(this,x))}set(x,E){return super.set(N(this,x),E)}delete(x){return super.delete(_(this,x))}}class L extends Set{constructor(x,E=O){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:E}}),x!=null)for(let R of x)this.add(R)}has(x){return super.has(I(this,x))}add(x){return super.add(N(this,x))}delete(x){return super.delete(_(this,x))}}function I({_intern:P,_key:x},E){let R=x(E);return P.has(R)?P.get(R):E}function N({_intern:P,_key:x},E){let R=x(E);return P.has(R)?P.get(R):(P.set(R,E),E)}function _({_intern:P,_key:x},E){let R=x(E);return P.has(R)&&(E=P.get(E),P.delete(R)),E}function O(P){return P!==null&&typeof P=="object"?P.valueOf():P}function T(P){return P}function D(P,...x){return J(P,T,T,x)}function V(P,...x){return J(P,Array.from,T,x)}function j(P,x,...E){return J(P,T,x,E)}function K(P,x,...E){return J(P,Array.from,x,E)}function z(P,...x){return J(P,T,ct,x)}function X(P,...x){return J(P,Array.from,ct,x)}function ct(P){if(P.length!==1)throw new Error("duplicate key");return P[0]}function J(P,x,E,R){return(function U(G,Q){if(Q>=R.length)return E(G);let dt=new F,jt=R[Q++],ie=-1;for(let le of G){let pe=jt(le,++ie,G),Oe=dt.get(pe);Oe?Oe.push(le):dt.set(pe,[le])}for(let[le,pe]of dt)dt.set(le,U(pe,Q));return x(dt)})(P,0)}function bt(P,x){return Array.from(x,E=>P[E])}function Nt(P,...x){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");P=Array.from(P);let[E=t]=x;if(E.length===1||x.length>1){let R=Uint32Array.from(P,(U,G)=>G);return x.length>1?(x=x.map(U=>P.map(U)),R.sort((U,G)=>{for(let Q of x){let dt=t(Q[U],Q[G]);if(dt)return dt}})):(E=P.map(E),R.sort((U,G)=>t(E[U],E[G]))),bt(P,R)}return P.sort(E)}function zt(P,x,E){return(x.length===1?Nt(j(P,x,E),(([R,U],[G,Q])=>t(U,Q)||t(R,G))):Nt(D(P,E),(([R,U],[G,Q])=>x(U,Q)||t(R,G)))).map(([R])=>R)}var tt=Array.prototype,et=tt.slice;function gt(P){return function(){return P}}var at=Math.sqrt(50),nt=Math.sqrt(10),Ct=Math.sqrt(2);function st(P,x,E){var R,U=-1,G,Q,dt;if(x=+x,P=+P,E=+E,P===x&&E>0)return[P];if((R=x<P)&&(G=P,P=x,x=G),(dt=Jt(P,x,E))===0||!isFinite(dt))return[];if(dt>0){let jt=Math.round(P/dt),ie=Math.round(x/dt);for(jt*dt<P&&++jt,ie*dt>x&&--ie,Q=new Array(G=ie-jt+1);++U<G;)Q[U]=(jt+U)*dt}else{dt=-dt;let jt=Math.round(P*dt),ie=Math.round(x*dt);for(jt/dt<P&&++jt,ie/dt>x&&--ie,Q=new Array(G=ie-jt+1);++U<G;)Q[U]=(jt+U)/dt}return R&&Q.reverse(),Q}function Jt(P,x,E){var R=(x-P)/Math.max(0,E),U=Math.floor(Math.log(R)/Math.LN10),G=R/Math.pow(10,U);return U>=0?(G>=at?10:G>=nt?5:G>=Ct?2:1)*Math.pow(10,U):-Math.pow(10,-U)/(G>=at?10:G>=nt?5:G>=Ct?2:1)}function ne(P,x,E){var R=Math.abs(x-P)/Math.max(0,E),U=Math.pow(10,Math.floor(Math.log(R)/Math.LN10)),G=R/U;return G>=at?U*=10:G>=nt?U*=5:G>=Ct&&(U*=2),x<P?-U:U}function qt(P,x,E){let R;for(;;){let U=Jt(P,x,E);if(U===R||U===0||!isFinite(U))return[P,x];U>0?(P=Math.floor(P/U)*U,x=Math.ceil(x/U)*U):U<0&&(P=Math.ceil(P*U)/U,x=Math.floor(x*U)/U),R=U}}function se(P){return Math.ceil(Math.log(c(P))/Math.LN2)+1}function ot(){var P=T,x=A,E=se;function R(U){Array.isArray(U)||(U=Array.from(U));var G,Q=U.length,dt,jt=new Array(Q);for(G=0;G<Q;++G)jt[G]=P(U[G],G,U);var ie=x(jt),le=ie[0],pe=ie[1],Oe=E(jt,le,pe);if(!Array.isArray(Oe)){let QS=pe,pa=+Oe;if(x===A&&([le,pe]=qt(le,pe,pa)),Oe=st(le,pe,pa),Oe[Oe.length-1]>=pe)if(QS>=pe&&x===A){let $o=Jt(le,pe,pa);isFinite($o)&&($o>0?pe=(Math.floor(pe/$o)+1)*$o:$o<0&&(pe=(Math.ceil(pe*-$o)+1)/-$o))}else Oe.pop()}for(var Eo=Oe.length;Oe[0]<=le;)Oe.shift(),--Eo;for(;Oe[Eo-1]>pe;)Oe.pop(),--Eo;var Ba=new Array(Eo+1),Tc;for(G=0;G<=Eo;++G)Tc=Ba[G]=[],Tc.x0=G>0?Oe[G-1]:le,Tc.x1=G<Eo?Oe[G]:pe;for(G=0;G<Q;++G)dt=jt[G],le<=dt&&dt<=pe&&Ba[s(Oe,dt,0,Eo)].push(U[G]);return Ba}return R.value=function(U){return arguments.length?(P=typeof U=="function"?U:gt(U),R):P},R.domain=function(U){return arguments.length?(x=typeof U=="function"?U:gt([U[0],U[1]]),R):x},R.thresholds=function(U){return arguments.length?(E=typeof U=="function"?U:Array.isArray(U)?gt(et.call(U)):gt(U),R):E},R}function Ot(P,x){let E;if(x===void 0)for(let R of P)R!=null&&(E<R||E===void 0&&R>=R)&&(E=R);else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(E<U||E===void 0&&U>=U)&&(E=U)}return E}function _t(P,x){let E;if(x===void 0)for(let R of P)R!=null&&(E>R||E===void 0&&R>=R)&&(E=R);else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(E>U||E===void 0&&U>=U)&&(E=U)}return E}function Dt(P,x,E=0,R=P.length-1,U=t){for(;R>E;){if(R-E>600){let jt=R-E+1,ie=x-E+1,le=Math.log(jt),pe=.5*Math.exp(2*le/3),Oe=.5*Math.sqrt(le*pe*(jt-pe)/jt)*(ie-jt/2<0?-1:1),Eo=Math.max(E,Math.floor(x-ie*pe/jt+Oe)),Ba=Math.min(R,Math.floor(x+(jt-ie)*pe/jt+Oe));Dt(P,x,Eo,Ba,U)}let G=P[x],Q=E,dt=R;for(Tt(P,E,x),U(P[R],G)>0&&Tt(P,E,R);Q<dt;){for(Tt(P,Q,dt),++Q,--dt;U(P[Q],G)<0;)++Q;for(;U(P[dt],G)>0;)--dt}U(P[E],G)===0?Tt(P,E,dt):(++dt,Tt(P,dt,R)),dt<=x&&(E=dt+1),x<=dt&&(R=dt-1)}return P}function Tt(P,x,E){let R=P[x];P[x]=P[E],P[E]=R}function Ft(P,x,E){if(P=Float64Array.from(i(P,E)),!!(R=P.length)){if((x=+x)<=0||R<2)return _t(P);if(x>=1)return Ot(P);var R,U=(R-1)*x,G=Math.floor(U),Q=Ot(Dt(P,G).subarray(0,G+1)),dt=_t(P.subarray(G+1));return Q+(dt-Q)*(U-G)}}function fe(P,x,E=n){if(R=P.length){if((x=+x)<=0||R<2)return+E(P[0],0,P);if(x>=1)return+E(P[R-1],R-1,P);var R,U=(R-1)*x,G=Math.floor(U),Q=+E(P[G],G,P),dt=+E(P[G+1],G+1,P);return Q+(dt-Q)*(U-G)}}function Rr(P,x,E){return Math.ceil((E-x)/(2*(Ft(P,.75)-Ft(P,.25))*Math.pow(c(P),-1/3)))}function Xe(P,x,E){return Math.ceil((E-x)/(3.5*v(P)*Math.pow(c(P),-1/3)))}function re(P,x){let E,R=-1,U=-1;if(x===void 0)for(let G of P)++U,G!=null&&(E<G||E===void 0&&G>=G)&&(E=G,R=U);else for(let G of P)(G=x(G,++U,P))!=null&&(E<G||E===void 0&&G>=G)&&(E=G,R=U);return R}function Rt(P,x){let E=0,R=0;if(x===void 0)for(let U of P)U!=null&&(U=+U)>=U&&(++E,R+=U);else{let U=-1;for(let G of P)(G=x(G,++U,P))!=null&&(G=+G)>=G&&(++E,R+=G)}if(E)return R/E}function ee(P,x){return Ft(P,.5,x)}function*we(P){for(let x of P)yield*x}function We(P){return Array.from(we(P))}function qe(P,x){let E,R=-1,U=-1;if(x===void 0)for(let G of P)++U,G!=null&&(E>G||E===void 0&&G>=G)&&(E=G,R=U);else for(let G of P)(G=x(G,++U,P))!=null&&(E>G||E===void 0&&G>=G)&&(E=G,R=U);return R}function $e(P,x=mr){let E=[],R,U=!1;for(let G of P)U&&E.push(x(R,G)),R=G,U=!0;return E}function mr(P,x){return[P,x]}function pr(P,x,E){P=+P,x=+x,E=(U=arguments.length)<2?(x=P,P=0,1):U<3?1:+E;for(var R=-1,U=Math.max(0,Math.ceil((x-P)/E))|0,G=new Array(U);++R<U;)G[R]=P+R*E;return G}function jr(P,x=t){let E,R=!1;if(x.length===1){let U;for(let G of P){let Q=x(G);(R?t(Q,U)<0:t(Q,Q)===0)&&(E=G,U=Q,R=!0)}}else for(let U of P)(R?x(U,E)<0:x(U,U)===0)&&(E=U,R=!0);return E}function co(P,x=t){if(x.length===1)return qe(P,x);let E,R=-1,U=-1;for(let G of P)++U,(R<0?x(G,G)===0:x(G,E)<0)&&(E=G,R=U);return R}function ma(P,x=t){let E,R=!1;if(x.length===1){let U;for(let G of P){let Q=x(G);(R?t(Q,U)>0:t(Q,Q)===0)&&(E=G,U=Q,R=!0)}}else for(let U of P)(R?x(U,E)>0:x(U,U)===0)&&(E=U,R=!0);return E}function wi(P,x=t){if(x.length===1)return re(P,x);let E,R=-1,U=-1;for(let G of P)++U,(R<0?x(G,G)===0:x(G,E)>0)&&(E=G,R=U);return R}function hs(P,x){let E=co(P,x);return E<0?void 0:E}var Ec=Jl(Math.random);function Jl(P){return function(E,R=0,U=E.length){let G=U-(R=+R);for(;G;){let Q=P()*G--|0,dt=E[G+R];E[G+R]=E[Q+R],E[Q+R]=dt}return E}}function om(P,x){let E=0;if(x===void 0)for(let R of P)(R=+R)&&(E+=R);else{let R=-1;for(let U of P)(U=+x(U,++R,P))&&(E+=U)}return E}function ms(P){if(!(G=P.length))return[];for(var x=-1,E=_t(P,ps),R=new Array(E);++x<E;)for(var U=-1,G,Q=R[x]=new Array(G);++U<G;)Q[U]=P[U][x];return R}function ps(P){return P.length}function ds(){return ms(arguments)}function Cc(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=-1;for(let R of P)if(!x(R,++E,P))return!1;return!0}function Ql(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=-1;for(let R of P)if(x(R,++E,P))return!0;return!1}function nm(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=[],R=-1;for(let U of P)x(U,++R,P)&&E.push(U);return E}function Bn(P,x){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof x!="function")throw new TypeError("mapper is not a function");return Array.from(P,(E,R)=>x(E,R,P))}function kc(P,x,E){if(typeof x!="function")throw new TypeError("reducer is not a function");let R=P[Symbol.iterator](),U,G,Q=-1;if(arguments.length<3){if({done:U,value:E}=R.next(),U)return;++Q}for(;{done:U,value:G}=R.next(),!U;)E=x(E,G,++Q,P);return E}function Zl(P){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(P).reverse()}function im(P,...x){P=new Set(P);for(let E of x)for(let R of E)P.delete(R);return P}function am(P,x){let E=x[Symbol.iterator](),R=new Set;for(let U of P){if(R.has(U))return!1;let G,Q;for(;({value:G,done:Q}=E.next())&&!Q;){if(Object.is(U,G))return!1;R.add(G)}}return!0}function sm(P){return P instanceof Set?P:new Set(P)}function Mc(P,...x){P=new Set(P),x=x.map(sm);t:for(let E of P)for(let R of x)if(!R.has(E)){P.delete(E);continue t}return P}function tu(P,x){let E=P[Symbol.iterator](),R=new Set;for(let U of x){if(R.has(U))continue;let G,Q;for(;{value:G,done:Q}=E.next();){if(Q)return!1;if(R.add(G),Object.is(U,G))break}}return!0}function lm(P,x){return tu(x,P)}function eu(...P){let x=new Set;for(let E of P)for(let R of E)x.add(R);return x}r.Adder=M,r.InternMap=F,r.InternSet=L,r.ascending=t,r.bin=ot,r.bisect=s,r.bisectCenter=u,r.bisectLeft=l,r.bisectRight=s,r.bisector=e,r.count=c,r.cross=d,r.cumsum=f,r.descending=b,r.deviation=v,r.difference=im,r.disjoint=am,r.every=Cc,r.extent=A,r.fcumsum=B,r.filter=nm,r.fsum=C,r.greatest=ma,r.greatestIndex=wi,r.group=D,r.groupSort=zt,r.groups=V,r.histogram=ot,r.index=z,r.indexes=X,r.intersection=Mc,r.least=jr,r.leastIndex=co,r.map=Bn,r.max=Ot,r.maxIndex=re,r.mean=Rt,r.median=ee,r.merge=We,r.min=_t,r.minIndex=qe,r.nice=qt,r.pairs=$e,r.permute=bt,r.quantile=Ft,r.quantileSorted=fe,r.quickselect=Dt,r.range=pr,r.reduce=kc,r.reverse=Zl,r.rollup=j,r.rollups=K,r.scan=hs,r.shuffle=Ec,r.shuffler=Jl,r.some=Ql,r.sort=Nt,r.subset=lm,r.sum=om,r.superset=tu,r.thresholdFreedmanDiaconis=Rr,r.thresholdScott=Xe,r.thresholdSturges=se,r.tickIncrement=Jt,r.tickStep=ne,r.ticks=st,r.transpose=ms,r.union=eu,r.variance=S,r.zip=ds,Object.defineProperty(r,"__esModule",{value:!0})}))});var LH=ar((s7,WH)=>{(function(r,t){typeof s7=="object"&&typeof WH<"u"?t(s7):typeof define=="function"&&define.amd?define(["exports"],t):(r=r||self,t(r.d3=r.d3||{}))})(s7,function(r){"use strict";var t=Math.PI,e=2*t,o=1e-6,n=e-o;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new i}i.prototype=a.prototype={constructor:i,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,c){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+c)},bezierCurveTo:function(s,l,u,c,h,m){this._+="C"+ +s+","+ +l+","+ +u+","+ +c+","+(this._x1=+h)+","+(this._y1=+m)},arcTo:function(s,l,u,c,h){s=+s,l=+l,u=+u,c=+c,h=+h;var m=this._x1,p=this._y1,g=u-s,d=c-l,f=m-s,b=p-l,S=f*f+b*b;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(S>o)if(!(Math.abs(b*g-d*f)>o)||!h)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var v=u-m,A=c-p,M=g*g+d*d,C=v*v+A*A,B=Math.sqrt(M),F=Math.sqrt(S),L=h*Math.tan((t-Math.acos((M+S-C)/(2*B*F)))/2),I=L/F,N=L/B;Math.abs(I-1)>o&&(this._+="L"+(s+I*f)+","+(l+I*b)),this._+="A"+h+","+h+",0,0,"+ +(b*v>f*A)+","+(this._x1=s+N*g)+","+(this._y1=l+N*d)}},arc:function(s,l,u,c,h,m){s=+s,l=+l,u=+u,m=!!m;var p=u*Math.cos(c),g=u*Math.sin(c),d=s+p,f=l+g,b=1^m,S=m?c-h:h-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+d+","+f:(Math.abs(this._x1-d)>o||Math.abs(this._y1-f)>o)&&(this._+="L"+d+","+f),u&&(S<0&&(S=S%e+e),S>n?this._+="A"+u+","+u+",0,1,"+b+","+(s-p)+","+(l-g)+"A"+u+","+u+",0,1,"+b+","+(this._x1=d)+","+(this._y1=f):S>o&&(this._+="A"+u+","+u+",0,"+ +(S>=t)+","+b+","+(this._x1=s+u*Math.cos(h))+","+(this._y1=l+u*Math.sin(h))))},rect:function(s,l,u,c){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +c+"h"+-u+"Z"},toString:function(){return this._}},r.path=a,Object.defineProperty(r,"__esModule",{value:!0})})});var RH=ar((l7,IH)=>{(function(r,t){typeof l7=="object"&&typeof IH<"u"?t(l7,LH()):typeof define=="function"&&define.amd?define(["exports","d3-path"],t):(r=r||self,t(r.d3=r.d3||{},r.d3))})(l7,function(r,t){"use strict";function e(W){return function(){return W}}var o=Math.abs,n=Math.atan2,i=Math.cos,a=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,h=Math.PI,m=h/2,p=2*h;function g(W){return W>1?0:W<-1?h:Math.acos(W)}function d(W){return W>=1?m:W<=-1?-m:Math.asin(W)}function f(W){return W.innerRadius}function b(W){return W.outerRadius}function S(W){return W.startAngle}function v(W){return W.endAngle}function A(W){return W&&W.padAngle}function M(W,H,$,ut,Et,Wt,Ut,pt){var Gt=$-W,Pe=ut-H,be=Ut-Et,Le=pt-Wt,Je=Le*Gt-be*Pe;if(!(Je*Je<c))return Je=(be*(H-Wt)-Le*(W-Et))/Je,[W+Je*Gt,H+Je*Pe]}function C(W,H,$,ut,Et,Wt,Ut){var pt=W-$,Gt=H-ut,Pe=(Ut?Wt:-Wt)/u(pt*pt+Gt*Gt),be=Pe*Gt,Le=-Pe*pt,Je=W+be,io=H+Le,Ir=$+be,Lo=ut+Le,Zr=(Je+Ir)/2,On=(io+Lo)/2,En=Ir-Je,bn=Lo-io,Dn=En*En+bn*bn,ys=Et-Wt,da=Je*Lo-Ir*io,um=(bn<0?-1:1)*u(a(0,ys*ys*Dn-da*da)),cm=(da*bn-En*um)/Dn,fs=(-da*En-bn*um)/Dn,il=(da*bn+En*um)/Dn,al=(-da*En+bn*um)/Dn,yr=cm-Zr,mo=fs-On,yd=il-Zr,fd=al-On;return yr*yr+mo*mo>yd*yd+fd*fd&&(cm=il,fs=al),{cx:cm,cy:fs,x01:-be,y01:-Le,x11:cm*(Et/ys-1),y11:fs*(Et/ys-1)}}function B(){var W=f,H=b,$=e(0),ut=null,Et=S,Wt=v,Ut=A,pt=null;function Gt(){var Pe,be,Le=+W.apply(this,arguments),Je=+H.apply(this,arguments),io=Et.apply(this,arguments)-m,Ir=Wt.apply(this,arguments)-m,Lo=o(Ir-io),Zr=Ir>io;if(pt||(pt=Pe=t.path()),Je<Le&&(be=Je,Je=Le,Le=be),!(Je>c))pt.moveTo(0,0);else if(Lo>p-c)pt.moveTo(Je*i(io),Je*l(io)),pt.arc(0,0,Je,io,Ir,!Zr),Le>c&&(pt.moveTo(Le*i(Ir),Le*l(Ir)),pt.arc(0,0,Le,Ir,io,Zr));else{var On=io,En=Ir,bn=io,Dn=Ir,ys=Lo,da=Lo,um=Ut.apply(this,arguments)/2,cm=um>c&&(ut?+ut.apply(this,arguments):u(Le*Le+Je*Je)),fs=s(o(Je-Le)/2,+$.apply(this,arguments)),il=fs,al=fs,yr,mo;if(cm>c){var yd=d(cm/Le*l(um)),fd=d(cm/Je*l(um));(ys-=yd*2)>c?(yd*=Zr?1:-1,bn+=yd,Dn-=yd):(ys=0,bn=Dn=(io+Ir)/2),(da-=fd*2)>c?(fd*=Zr?1:-1,On+=fd,En-=fd):(da=0,On=En=(io+Ir)/2)}var Bf=Je*i(On),Of=Je*l(On),OP=Le*i(Dn),DP=Le*l(Dn);if(fs>c){var FP=Je*i(En),GP=Je*l(En),k8=Le*i(bn),M8=Le*l(bn),Wc;if(Lo<h&&(Wc=M(Bf,Of,k8,M8,FP,GP,OP,DP))){var T8=Bf-Wc[0],W8=Of-Wc[1],L8=FP-Wc[0],I8=GP-Wc[1],DT=1/l(g((T8*L8+W8*I8)/(u(T8*T8+W8*W8)*u(L8*L8+I8*I8)))/2),FT=u(Wc[0]*Wc[0]+Wc[1]*Wc[1]);il=s(fs,(Le-FT)/(DT-1)),al=s(fs,(Je-FT)/(DT+1))}}da>c?al>c?(yr=C(k8,M8,Bf,Of,Je,al,Zr),mo=C(FP,GP,OP,DP,Je,al,Zr),pt.moveTo(yr.cx+yr.x01,yr.cy+yr.y01),al<fs?pt.arc(yr.cx,yr.cy,al,n(yr.y01,yr.x01),n(mo.y01,mo.x01),!Zr):(pt.arc(yr.cx,yr.cy,al,n(yr.y01,yr.x01),n(yr.y11,yr.x11),!Zr),pt.arc(0,0,Je,n(yr.cy+yr.y11,yr.cx+yr.x11),n(mo.cy+mo.y11,mo.cx+mo.x11),!Zr),pt.arc(mo.cx,mo.cy,al,n(mo.y11,mo.x11),n(mo.y01,mo.x01),!Zr))):(pt.moveTo(Bf,Of),pt.arc(0,0,Je,On,En,!Zr)):pt.moveTo(Bf,Of),!(Le>c)||!(ys>c)?pt.lineTo(OP,DP):il>c?(yr=C(OP,DP,FP,GP,Le,-il,Zr),mo=C(Bf,Of,k8,M8,Le,-il,Zr),pt.lineTo(yr.cx+yr.x01,yr.cy+yr.y01),il<fs?pt.arc(yr.cx,yr.cy,il,n(yr.y01,yr.x01),n(mo.y01,mo.x01),!Zr):(pt.arc(yr.cx,yr.cy,il,n(yr.y01,yr.x01),n(yr.y11,yr.x11),!Zr),pt.arc(0,0,Le,n(yr.cy+yr.y11,yr.cx+yr.x11),n(mo.cy+mo.y11,mo.cx+mo.x11),Zr),pt.arc(mo.cx,mo.cy,il,n(mo.y11,mo.x11),n(mo.y01,mo.x01),!Zr))):pt.arc(0,0,Le,Dn,bn,Zr)}if(pt.closePath(),Pe)return pt=null,Pe+""||null}return Gt.centroid=function(){var Pe=(+W.apply(this,arguments)+ +H.apply(this,arguments))/2,be=(+Et.apply(this,arguments)+ +Wt.apply(this,arguments))/2-h/2;return[i(be)*Pe,l(be)*Pe]},Gt.innerRadius=function(Pe){return arguments.length?(W=typeof Pe=="function"?Pe:e(+Pe),Gt):W},Gt.outerRadius=function(Pe){return arguments.length?(H=typeof Pe=="function"?Pe:e(+Pe),Gt):H},Gt.cornerRadius=function(Pe){return arguments.length?($=typeof Pe=="function"?Pe:e(+Pe),Gt):$},Gt.padRadius=function(Pe){return arguments.length?(ut=Pe==null?null:typeof Pe=="function"?Pe:e(+Pe),Gt):ut},Gt.startAngle=function(Pe){return arguments.length?(Et=typeof Pe=="function"?Pe:e(+Pe),Gt):Et},Gt.endAngle=function(Pe){return arguments.length?(Wt=typeof Pe=="function"?Pe:e(+Pe),Gt):Wt},Gt.padAngle=function(Pe){return arguments.length?(Ut=typeof Pe=="function"?Pe:e(+Pe),Gt):Ut},Gt.context=function(Pe){return arguments.length?(pt=Pe??null,Gt):pt},Gt}function F(W){this._context=W}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2;default:this._context.lineTo(W,H);break}}};function L(W){return new F(W)}function I(W){return W[0]}function N(W){return W[1]}function _(){var W=I,H=N,$=e(!0),ut=null,Et=L,Wt=null;function Ut(pt){var Gt,Pe=pt.length,be,Le=!1,Je;for(ut==null&&(Wt=Et(Je=t.path())),Gt=0;Gt<=Pe;++Gt)!(Gt<Pe&&$(be=pt[Gt],Gt,pt))===Le&&((Le=!Le)?Wt.lineStart():Wt.lineEnd()),Le&&Wt.point(+W(be,Gt,pt),+H(be,Gt,pt));if(Je)return Wt=null,Je+""||null}return Ut.x=function(pt){return arguments.length?(W=typeof pt=="function"?pt:e(+pt),Ut):W},Ut.y=function(pt){return arguments.length?(H=typeof pt=="function"?pt:e(+pt),Ut):H},Ut.defined=function(pt){return arguments.length?($=typeof pt=="function"?pt:e(!!pt),Ut):$},Ut.curve=function(pt){return arguments.length?(Et=pt,ut!=null&&(Wt=Et(ut)),Ut):Et},Ut.context=function(pt){return arguments.length?(pt==null?ut=Wt=null:Wt=Et(ut=pt),Ut):ut},Ut}function O(){var W=I,H=null,$=e(0),ut=N,Et=e(!0),Wt=null,Ut=L,pt=null;function Gt(be){var Le,Je,io,Ir=be.length,Lo,Zr=!1,On,En=new Array(Ir),bn=new Array(Ir);for(Wt==null&&(pt=Ut(On=t.path())),Le=0;Le<=Ir;++Le){if(!(Le<Ir&&Et(Lo=be[Le],Le,be))===Zr)if(Zr=!Zr)Je=Le,pt.areaStart(),pt.lineStart();else{for(pt.lineEnd(),pt.lineStart(),io=Le-1;io>=Je;--io)pt.point(En[io],bn[io]);pt.lineEnd(),pt.areaEnd()}Zr&&(En[Le]=+W(Lo,Le,be),bn[Le]=+$(Lo,Le,be),pt.point(H?+H(Lo,Le,be):En[Le],ut?+ut(Lo,Le,be):bn[Le]))}if(On)return pt=null,On+""||null}function Pe(){return _().defined(Et).curve(Ut).context(Wt)}return Gt.x=function(be){return arguments.length?(W=typeof be=="function"?be:e(+be),H=null,Gt):W},Gt.x0=function(be){return arguments.length?(W=typeof be=="function"?be:e(+be),Gt):W},Gt.x1=function(be){return arguments.length?(H=be==null?null:typeof be=="function"?be:e(+be),Gt):H},Gt.y=function(be){return arguments.length?($=typeof be=="function"?be:e(+be),ut=null,Gt):$},Gt.y0=function(be){return arguments.length?($=typeof be=="function"?be:e(+be),Gt):$},Gt.y1=function(be){return arguments.length?(ut=be==null?null:typeof be=="function"?be:e(+be),Gt):ut},Gt.lineX0=Gt.lineY0=function(){return Pe().x(W).y($)},Gt.lineY1=function(){return Pe().x(W).y(ut)},Gt.lineX1=function(){return Pe().x(H).y($)},Gt.defined=function(be){return arguments.length?(Et=typeof be=="function"?be:e(!!be),Gt):Et},Gt.curve=function(be){return arguments.length?(Ut=be,Wt!=null&&(pt=Ut(Wt)),Gt):Ut},Gt.context=function(be){return arguments.length?(be==null?Wt=pt=null:pt=Ut(Wt=be),Gt):Wt},Gt}function T(W,H){return H<W?-1:H>W?1:H>=W?0:NaN}function D(W){return W}function V(){var W=D,H=T,$=null,ut=e(0),Et=e(p),Wt=e(0);function Ut(pt){var Gt,Pe=pt.length,be,Le,Je=0,io=new Array(Pe),Ir=new Array(Pe),Lo=+ut.apply(this,arguments),Zr=Math.min(p,Math.max(-p,Et.apply(this,arguments)-Lo)),On,En=Math.min(Math.abs(Zr)/Pe,Wt.apply(this,arguments)),bn=En*(Zr<0?-1:1),Dn;for(Gt=0;Gt<Pe;++Gt)(Dn=Ir[io[Gt]=Gt]=+W(pt[Gt],Gt,pt))>0&&(Je+=Dn);for(H!=null?io.sort(function(ys,da){return H(Ir[ys],Ir[da])}):$!=null&&io.sort(function(ys,da){return $(pt[ys],pt[da])}),Gt=0,Le=Je?(Zr-Pe*bn)/Je:0;Gt<Pe;++Gt,Lo=On)be=io[Gt],Dn=Ir[be],On=Lo+(Dn>0?Dn*Le:0)+bn,Ir[be]={data:pt[be],index:Gt,value:Dn,startAngle:Lo,endAngle:On,padAngle:En};return Ir}return Ut.value=function(pt){return arguments.length?(W=typeof pt=="function"?pt:e(+pt),Ut):W},Ut.sortValues=function(pt){return arguments.length?(H=pt,$=null,Ut):H},Ut.sort=function(pt){return arguments.length?($=pt,H=null,Ut):$},Ut.startAngle=function(pt){return arguments.length?(ut=typeof pt=="function"?pt:e(+pt),Ut):ut},Ut.endAngle=function(pt){return arguments.length?(Et=typeof pt=="function"?pt:e(+pt),Ut):Et},Ut.padAngle=function(pt){return arguments.length?(Wt=typeof pt=="function"?pt:e(+pt),Ut):Wt},Ut}var j=z(L);function K(W){this._curve=W}K.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(W,H){this._curve.point(H*Math.sin(W),H*-Math.cos(W))}};function z(W){function H($){return new K(W($))}return H._curve=W,H}function X(W){var H=W.curve;return W.angle=W.x,delete W.x,W.radius=W.y,delete W.y,W.curve=function($){return arguments.length?H(z($)):H()._curve},W}function ct(){return X(_().curve(j))}function J(){var W=O().curve(j),H=W.curve,$=W.lineX0,ut=W.lineX1,Et=W.lineY0,Wt=W.lineY1;return W.angle=W.x,delete W.x,W.startAngle=W.x0,delete W.x0,W.endAngle=W.x1,delete W.x1,W.radius=W.y,delete W.y,W.innerRadius=W.y0,delete W.y0,W.outerRadius=W.y1,delete W.y1,W.lineStartAngle=function(){return X($())},delete W.lineX0,W.lineEndAngle=function(){return X(ut())},delete W.lineX1,W.lineInnerRadius=function(){return X(Et())},delete W.lineY0,W.lineOuterRadius=function(){return X(Wt())},delete W.lineY1,W.curve=function(Ut){return arguments.length?H(z(Ut)):H()._curve},W}function bt(W,H){return[(H=+H)*Math.cos(W-=Math.PI/2),H*Math.sin(W)]}var Nt=Array.prototype.slice;function zt(W){return W.source}function tt(W){return W.target}function et(W){var H=zt,$=tt,ut=I,Et=N,Wt=null;function Ut(){var pt,Gt=Nt.call(arguments),Pe=H.apply(this,Gt),be=$.apply(this,Gt);if(Wt||(Wt=pt=t.path()),W(Wt,+ut.apply(this,(Gt[0]=Pe,Gt)),+Et.apply(this,Gt),+ut.apply(this,(Gt[0]=be,Gt)),+Et.apply(this,Gt)),pt)return Wt=null,pt+""||null}return Ut.source=function(pt){return arguments.length?(H=pt,Ut):H},Ut.target=function(pt){return arguments.length?($=pt,Ut):$},Ut.x=function(pt){return arguments.length?(ut=typeof pt=="function"?pt:e(+pt),Ut):ut},Ut.y=function(pt){return arguments.length?(Et=typeof pt=="function"?pt:e(+pt),Ut):Et},Ut.context=function(pt){return arguments.length?(Wt=pt??null,Ut):Wt},Ut}function gt(W,H,$,ut,Et){W.moveTo(H,$),W.bezierCurveTo(H=(H+ut)/2,$,H,Et,ut,Et)}function at(W,H,$,ut,Et){W.moveTo(H,$),W.bezierCurveTo(H,$=($+Et)/2,ut,$,ut,Et)}function nt(W,H,$,ut,Et){var Wt=bt(H,$),Ut=bt(H,$=($+Et)/2),pt=bt(ut,$),Gt=bt(ut,Et);W.moveTo(Wt[0],Wt[1]),W.bezierCurveTo(Ut[0],Ut[1],pt[0],pt[1],Gt[0],Gt[1])}function Ct(){return et(gt)}function st(){return et(at)}function Jt(){var W=et(nt);return W.angle=W.x,delete W.x,W.radius=W.y,delete W.y,W}var ne={draw:function(W,H){var $=Math.sqrt(H/h);W.moveTo($,0),W.arc(0,0,$,0,p)}},qt={draw:function(W,H){var $=Math.sqrt(H/5)/2;W.moveTo(-3*$,-$),W.lineTo(-$,-$),W.lineTo(-$,-3*$),W.lineTo($,-3*$),W.lineTo($,-$),W.lineTo(3*$,-$),W.lineTo(3*$,$),W.lineTo($,$),W.lineTo($,3*$),W.lineTo(-$,3*$),W.lineTo(-$,$),W.lineTo(-3*$,$),W.closePath()}},se=Math.sqrt(1/3),ot=se*2,Ot={draw:function(W,H){var $=Math.sqrt(H/ot),ut=$*se;W.moveTo(0,-$),W.lineTo(ut,0),W.lineTo(0,$),W.lineTo(-ut,0),W.closePath()}},_t=.8908130915292852,Dt=Math.sin(h/10)/Math.sin(7*h/10),Tt=Math.sin(p/10)*Dt,Ft=-Math.cos(p/10)*Dt,fe={draw:function(W,H){var $=Math.sqrt(H*_t),ut=Tt*$,Et=Ft*$;W.moveTo(0,-$),W.lineTo(ut,Et);for(var Wt=1;Wt<5;++Wt){var Ut=p*Wt/5,pt=Math.cos(Ut),Gt=Math.sin(Ut);W.lineTo(Gt*$,-pt*$),W.lineTo(pt*ut-Gt*Et,Gt*ut+pt*Et)}W.closePath()}},Rr={draw:function(W,H){var $=Math.sqrt(H),ut=-$/2;W.rect(ut,ut,$,$)}},Xe=Math.sqrt(3),re={draw:function(W,H){var $=-Math.sqrt(H/(Xe*3));W.moveTo(0,$*2),W.lineTo(-Xe*$,-$),W.lineTo(Xe*$,-$),W.closePath()}},Rt=-.5,ee=Math.sqrt(3)/2,we=1/Math.sqrt(12),We=(we/2+1)*3,qe={draw:function(W,H){var $=Math.sqrt(H/We),ut=$/2,Et=$*we,Wt=ut,Ut=$*we+$,pt=-Wt,Gt=Ut;W.moveTo(ut,Et),W.lineTo(Wt,Ut),W.lineTo(pt,Gt),W.lineTo(Rt*ut-ee*Et,ee*ut+Rt*Et),W.lineTo(Rt*Wt-ee*Ut,ee*Wt+Rt*Ut),W.lineTo(Rt*pt-ee*Gt,ee*pt+Rt*Gt),W.lineTo(Rt*ut+ee*Et,Rt*Et-ee*ut),W.lineTo(Rt*Wt+ee*Ut,Rt*Ut-ee*Wt),W.lineTo(Rt*pt+ee*Gt,Rt*Gt-ee*pt),W.closePath()}},$e=[ne,qt,Ot,Rr,fe,re,qe];function mr(){var W=e(ne),H=e(64),$=null;function ut(){var Et;if($||($=Et=t.path()),W.apply(this,arguments).draw($,+H.apply(this,arguments)),Et)return $=null,Et+""||null}return ut.type=function(Et){return arguments.length?(W=typeof Et=="function"?Et:e(Et),ut):W},ut.size=function(Et){return arguments.length?(H=typeof Et=="function"?Et:e(+Et),ut):H},ut.context=function(Et){return arguments.length?($=Et??null,ut):$},ut}function pr(){}function jr(W,H,$){W._context.bezierCurveTo((2*W._x0+W._x1)/3,(2*W._y0+W._y1)/3,(W._x0+2*W._x1)/3,(W._y0+2*W._y1)/3,(W._x0+4*W._x1+H)/6,(W._y0+4*W._y1+$)/6)}function co(W){this._context=W}co.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:jr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:jr(this,W,H);break}this._x0=this._x1,this._x1=W,this._y0=this._y1,this._y1=H}};function ma(W){return new co(W)}function wi(W){this._context=W}wi.prototype={areaStart:pr,areaEnd:pr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._x2=W,this._y2=H;break;case 1:this._point=2,this._x3=W,this._y3=H;break;case 2:this._point=3,this._x4=W,this._y4=H,this._context.moveTo((this._x0+4*this._x1+W)/6,(this._y0+4*this._y1+H)/6);break;default:jr(this,W,H);break}this._x0=this._x1,this._x1=W,this._y0=this._y1,this._y1=H}};function hs(W){return new wi(W)}function Ec(W){this._context=W}Ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var $=(this._x0+4*this._x1+W)/6,ut=(this._y0+4*this._y1+H)/6;this._line?this._context.lineTo($,ut):this._context.moveTo($,ut);break;case 3:this._point=4;default:jr(this,W,H);break}this._x0=this._x1,this._x1=W,this._y0=this._y1,this._y1=H}};function Jl(W){return new Ec(W)}function om(W,H){this._basis=new co(W),this._beta=H}om.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var W=this._x,H=this._y,$=W.length-1;if($>0)for(var ut=W[0],Et=H[0],Wt=W[$]-ut,Ut=H[$]-Et,pt=-1,Gt;++pt<=$;)Gt=pt/$,this._basis.point(this._beta*W[pt]+(1-this._beta)*(ut+Gt*Wt),this._beta*H[pt]+(1-this._beta)*(Et+Gt*Ut));this._x=this._y=null,this._basis.lineEnd()},point:function(W,H){this._x.push(+W),this._y.push(+H)}};var ms=(function W(H){function $(ut){return H===1?new co(ut):new om(ut,H)}return $.beta=function(ut){return W(+ut)},$})(.85);function ps(W,H,$){W._context.bezierCurveTo(W._x1+W._k*(W._x2-W._x0),W._y1+W._k*(W._y2-W._y0),W._x2+W._k*(W._x1-H),W._y2+W._k*(W._y1-$),W._x2,W._y2)}function ds(W,H){this._context=W,this._k=(1-H)/6}ds.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ps(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2,this._x1=W,this._y1=H;break;case 2:this._point=3;default:ps(this,W,H);break}this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var Cc=(function W(H){function $(ut){return new ds(ut,H)}return $.tension=function(ut){return W(+ut)},$})(0);function Ql(W,H){this._context=W,this._k=(1-H)/6}Ql.prototype={areaStart:pr,areaEnd:pr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._x3=W,this._y3=H;break;case 1:this._point=2,this._context.moveTo(this._x4=W,this._y4=H);break;case 2:this._point=3,this._x5=W,this._y5=H;break;default:ps(this,W,H);break}this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var nm=(function W(H){function $(ut){return new Ql(ut,H)}return $.tension=function(ut){return W(+ut)},$})(0);function Bn(W,H){this._context=W,this._k=(1-H)/6}Bn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ps(this,W,H);break}this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var kc=(function W(H){function $(ut){return new Bn(ut,H)}return $.tension=function(ut){return W(+ut)},$})(0);function Zl(W,H,$){var ut=W._x1,Et=W._y1,Wt=W._x2,Ut=W._y2;if(W._l01_a>c){var pt=2*W._l01_2a+3*W._l01_a*W._l12_a+W._l12_2a,Gt=3*W._l01_a*(W._l01_a+W._l12_a);ut=(ut*pt-W._x0*W._l12_2a+W._x2*W._l01_2a)/Gt,Et=(Et*pt-W._y0*W._l12_2a+W._y2*W._l01_2a)/Gt}if(W._l23_a>c){var Pe=2*W._l23_2a+3*W._l23_a*W._l12_a+W._l12_2a,be=3*W._l23_a*(W._l23_a+W._l12_a);Wt=(Wt*Pe+W._x1*W._l23_2a-H*W._l12_2a)/be,Ut=(Ut*Pe+W._y1*W._l23_2a-$*W._l12_2a)/be}W._context.bezierCurveTo(ut,Et,Wt,Ut,W._x2,W._y2)}function im(W,H){this._context=W,this._alpha=H}im.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){if(W=+W,H=+H,this._point){var $=this._x2-W,ut=this._y2-H;this._l23_a=Math.sqrt(this._l23_2a=Math.pow($*$+ut*ut,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2;break;case 2:this._point=3;default:Zl(this,W,H);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var am=(function W(H){function $(ut){return H?new im(ut,H):new ds(ut,0)}return $.alpha=function(ut){return W(+ut)},$})(.5);function sm(W,H){this._context=W,this._alpha=H}sm.prototype={areaStart:pr,areaEnd:pr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(W,H){if(W=+W,H=+H,this._point){var $=this._x2-W,ut=this._y2-H;this._l23_a=Math.sqrt(this._l23_2a=Math.pow($*$+ut*ut,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=W,this._y3=H;break;case 1:this._point=2,this._context.moveTo(this._x4=W,this._y4=H);break;case 2:this._point=3,this._x5=W,this._y5=H;break;default:Zl(this,W,H);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var Mc=(function W(H){function $(ut){return H?new sm(ut,H):new Ql(ut,0)}return $.alpha=function(ut){return W(+ut)},$})(.5);function tu(W,H){this._context=W,this._alpha=H}tu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){if(W=+W,H=+H,this._point){var $=this._x2-W,ut=this._y2-H;this._l23_a=Math.sqrt(this._l23_2a=Math.pow($*$+ut*ut,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Zl(this,W,H);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var lm=(function W(H){function $(ut){return H?new tu(ut,H):new Bn(ut,0)}return $.alpha=function(ut){return W(+ut)},$})(.5);function eu(W){this._context=W}eu.prototype={areaStart:pr,areaEnd:pr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(W,H){W=+W,H=+H,this._point?this._context.lineTo(W,H):(this._point=1,this._context.moveTo(W,H))}};function P(W){return new eu(W)}function x(W){return W<0?-1:1}function E(W,H,$){var ut=W._x1-W._x0,Et=H-W._x1,Wt=(W._y1-W._y0)/(ut||Et<0&&-0),Ut=($-W._y1)/(Et||ut<0&&-0),pt=(Wt*Et+Ut*ut)/(ut+Et);return(x(Wt)+x(Ut))*Math.min(Math.abs(Wt),Math.abs(Ut),.5*Math.abs(pt))||0}function R(W,H){var $=W._x1-W._x0;return $?(3*(W._y1-W._y0)/$-H)/2:H}function U(W,H,$){var ut=W._x0,Et=W._y0,Wt=W._x1,Ut=W._y1,pt=(Wt-ut)/3;W._context.bezierCurveTo(ut+pt,Et+pt*H,Wt-pt,Ut-pt*$,Wt,Ut)}function G(W){this._context=W}G.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:U(this,this._t0,R(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){var $=NaN;if(W=+W,H=+H,!(W===this._x1&&H===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2;break;case 2:this._point=3,U(this,R(this,$=E(this,W,H)),$);break;default:U(this,this._t0,$=E(this,W,H));break}this._x0=this._x1,this._x1=W,this._y0=this._y1,this._y1=H,this._t0=$}}};function Q(W){this._context=new dt(W)}(Q.prototype=Object.create(G.prototype)).point=function(W,H){G.prototype.point.call(this,H,W)};function dt(W){this._context=W}dt.prototype={moveTo:function(W,H){this._context.moveTo(H,W)},closePath:function(){this._context.closePath()},lineTo:function(W,H){this._context.lineTo(H,W)},bezierCurveTo:function(W,H,$,ut,Et,Wt){this._context.bezierCurveTo(H,W,ut,$,Wt,Et)}};function jt(W){return new G(W)}function ie(W){return new Q(W)}function le(W){this._context=W}le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var W=this._x,H=this._y,$=W.length;if($)if(this._line?this._context.lineTo(W[0],H[0]):this._context.moveTo(W[0],H[0]),$===2)this._context.lineTo(W[1],H[1]);else for(var ut=pe(W),Et=pe(H),Wt=0,Ut=1;Ut<$;++Wt,++Ut)this._context.bezierCurveTo(ut[0][Wt],Et[0][Wt],ut[1][Wt],Et[1][Wt],W[Ut],H[Ut]);(this._line||this._line!==0&&$===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(W,H){this._x.push(+W),this._y.push(+H)}};function pe(W){var H,$=W.length-1,ut,Et=new Array($),Wt=new Array($),Ut=new Array($);for(Et[0]=0,Wt[0]=2,Ut[0]=W[0]+2*W[1],H=1;H<$-1;++H)Et[H]=1,Wt[H]=4,Ut[H]=4*W[H]+2*W[H+1];for(Et[$-1]=2,Wt[$-1]=7,Ut[$-1]=8*W[$-1]+W[$],H=1;H<$;++H)ut=Et[H]/Wt[H-1],Wt[H]-=ut,Ut[H]-=ut*Ut[H-1];for(Et[$-1]=Ut[$-1]/Wt[$-1],H=$-2;H>=0;--H)Et[H]=(Ut[H]-Et[H+1])/Wt[H];for(Wt[$-1]=(W[$]+Et[$-1])/2,H=0;H<$-1;++H)Wt[H]=2*W[H+1]-Et[H+1];return[Et,Wt]}function Oe(W){return new le(W)}function Eo(W,H){this._context=W,this._t=H}Eo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,H),this._context.lineTo(W,H);else{var $=this._x*(1-this._t)+W*this._t;this._context.lineTo($,this._y),this._context.lineTo($,H)}break}}this._x=W,this._y=H}};function Ba(W){return new Eo(W,.5)}function Tc(W){return new Eo(W,0)}function QS(W){return new Eo(W,1)}function pa(W,H){if((Ut=W.length)>1)for(var $=1,ut,Et,Wt=W[H[0]],Ut,pt=Wt.length;$<Ut;++$)for(Et=Wt,Wt=W[H[$]],ut=0;ut<pt;++ut)Wt[ut][1]+=Wt[ut][0]=isNaN(Et[ut][1])?Et[ut][0]:Et[ut][1]}function $o(W){for(var H=W.length,$=new Array(H);--H>=0;)$[H]=H;return $}function cY(W,H){return W[H]}function hY(){var W=e([]),H=$o,$=pa,ut=cY;function Et(Wt){var Ut=W.apply(this,arguments),pt,Gt=Wt.length,Pe=Ut.length,be=new Array(Pe),Le;for(pt=0;pt<Pe;++pt){for(var Je=Ut[pt],io=be[pt]=new Array(Gt),Ir=0,Lo;Ir<Gt;++Ir)io[Ir]=Lo=[0,+ut(Wt[Ir],Je,Ir,Wt)],Lo.data=Wt[Ir];io.key=Je}for(pt=0,Le=H(be);pt<Pe;++pt)be[Le[pt]].index=pt;return $(be,Le),be}return Et.keys=function(Wt){return arguments.length?(W=typeof Wt=="function"?Wt:e(Nt.call(Wt)),Et):W},Et.value=function(Wt){return arguments.length?(ut=typeof Wt=="function"?Wt:e(+Wt),Et):ut},Et.order=function(Wt){return arguments.length?(H=Wt==null?$o:typeof Wt=="function"?Wt:e(Nt.call(Wt)),Et):H},Et.offset=function(Wt){return arguments.length?($=Wt??pa,Et):$},Et}function mY(W,H){if((ut=W.length)>0){for(var $,ut,Et=0,Wt=W[0].length,Ut;Et<Wt;++Et){for(Ut=$=0;$<ut;++$)Ut+=W[$][Et][1]||0;if(Ut)for($=0;$<ut;++$)W[$][Et][1]/=Ut}pa(W,H)}}function pY(W,H){if((Gt=W.length)>0)for(var $,ut=0,Et,Wt,Ut,pt,Gt,Pe=W[H[0]].length;ut<Pe;++ut)for(Ut=pt=0,$=0;$<Gt;++$)(Wt=(Et=W[H[$]][ut])[1]-Et[0])>0?(Et[0]=Ut,Et[1]=Ut+=Wt):Wt<0?(Et[1]=pt,Et[0]=pt+=Wt):(Et[0]=0,Et[1]=Wt)}function dY(W,H){if((Et=W.length)>0){for(var $=0,ut=W[H[0]],Et,Wt=ut.length;$<Wt;++$){for(var Ut=0,pt=0;Ut<Et;++Ut)pt+=W[Ut][$][1]||0;ut[$][1]+=ut[$][0]=-pt/2}pa(W,H)}}function yY(W,H){if(!(!((Ut=W.length)>0)||!((Wt=(Et=W[H[0]]).length)>0))){for(var $=0,ut=1,Et,Wt,Ut;ut<Wt;++ut){for(var pt=0,Gt=0,Pe=0;pt<Ut;++pt){for(var be=W[H[pt]],Le=be[ut][1]||0,Je=be[ut-1][1]||0,io=(Le-Je)/2,Ir=0;Ir<pt;++Ir){var Lo=W[H[Ir]],Zr=Lo[ut][1]||0,On=Lo[ut-1][1]||0;io+=Zr-On}Gt+=Le,Pe+=io*Le}Et[ut-1][1]+=Et[ut-1][0]=$,Gt&&($-=Pe/Gt)}Et[ut-1][1]+=Et[ut-1][0]=$,pa(W,H)}}function UT(W){var H=W.map(fY);return $o(W).sort(function($,ut){return H[$]-H[ut]})}function fY(W){for(var H=-1,$=0,ut=W.length,Et,Wt=-1/0;++H<ut;)(Et=+W[H][1])>Wt&&(Wt=Et,$=H);return $}function BT(W){var H=W.map(OT);return $o(W).sort(function($,ut){return H[$]-H[ut]})}function OT(W){for(var H=0,$=-1,ut=W.length,Et;++$<ut;)(Et=+W[$][1])&&(H+=Et);return H}function gY(W){return BT(W).reverse()}function bY(W){var H=W.length,$,ut,Et=W.map(OT),Wt=UT(W),Ut=0,pt=0,Gt=[],Pe=[];for($=0;$<H;++$)ut=Wt[$],Ut<pt?(Ut+=Et[ut],Gt.push(ut)):(pt+=Et[ut],Pe.push(ut));return Pe.reverse().concat(Gt)}function SY(W){return $o(W).reverse()}r.arc=B,r.area=O,r.areaRadial=J,r.curveBasis=ma,r.curveBasisClosed=hs,r.curveBasisOpen=Jl,r.curveBundle=ms,r.curveCardinal=Cc,r.curveCardinalClosed=nm,r.curveCardinalOpen=kc,r.curveCatmullRom=am,r.curveCatmullRomClosed=Mc,r.curveCatmullRomOpen=lm,r.curveLinear=L,r.curveLinearClosed=P,r.curveMonotoneX=jt,r.curveMonotoneY=ie,r.curveNatural=Oe,r.curveStep=Ba,r.curveStepAfter=QS,r.curveStepBefore=Tc,r.line=_,r.lineRadial=ct,r.linkHorizontal=Ct,r.linkRadial=Jt,r.linkVertical=st,r.pie=V,r.pointRadial=bt,r.radialArea=J,r.radialLine=ct,r.stack=hY,r.stackOffsetDiverging=pY,r.stackOffsetExpand=mY,r.stackOffsetNone=pa,r.stackOffsetSilhouette=dY,r.stackOffsetWiggle=yY,r.stackOrderAppearance=UT,r.stackOrderAscending=BT,r.stackOrderDescending=gY,r.stackOrderInsideOut=bY,r.stackOrderNone=$o,r.stackOrderReverse=SY,r.symbol=mr,r.symbolCircle=ne,r.symbolCross=qt,r.symbolDiamond=Ot,r.symbolSquare=Rr,r.symbolStar=fe,r.symbolTriangle=re,r.symbolWye=qe,r.symbols=$e,Object.defineProperty(r,"__esModule",{value:!0})})});var UH=ar((u7,_H)=>{(function(r,t){typeof u7=="object"&&typeof _H<"u"?t(u7,TH(),RH()):typeof define=="function"&&define.amd?define(["exports","d3-array","d3-shape"],t):(r=r||self,t(r.d3=r.d3||{},r.d3,r.d3))})(u7,function(r,t,e){"use strict";function o(C){return C.target.depth}function n(C){return C.depth}function i(C,B){return B-1-C.height}function a(C,B){return C.sourceLinks.length?C.depth:B-1}function s(C){return C.targetLinks.length?C.depth:C.sourceLinks.length?t.min(C.sourceLinks,o)-1:0}function l(C){return function(){return C}}function u(C,B){return h(C.source,B.source)||C.index-B.index}function c(C,B){return h(C.target,B.target)||C.index-B.index}function h(C,B){return C.y0-B.y0}function m(C){return C.value}function p(C){return C.index}function g(C){return C.nodes}function d(C){return C.links}function f(C,B){let F=C.get(B);if(!F)throw new Error("missing: "+B);return F}function b({nodes:C}){for(let B of C){let F=B.y0,L=F;for(let I of B.sourceLinks)I.y0=F+I.width/2,F+=I.width;for(let I of B.targetLinks)I.y1=L+I.width/2,L+=I.width}}function S(){let C=0,B=0,F=1,L=1,I=24,N=8,_,O=p,T=a,D,V,j=g,K=d,z=6;function X(){let ot={nodes:j.apply(null,arguments),links:K.apply(null,arguments)};return ct(ot),J(ot),bt(ot),Nt(ot),et(ot),b(ot),ot}X.update=function(ot){return b(ot),ot},X.nodeId=function(ot){return arguments.length?(O=typeof ot=="function"?ot:l(ot),X):O},X.nodeAlign=function(ot){return arguments.length?(T=typeof ot=="function"?ot:l(ot),X):T},X.nodeSort=function(ot){return arguments.length?(D=ot,X):D},X.nodeWidth=function(ot){return arguments.length?(I=+ot,X):I},X.nodePadding=function(ot){return arguments.length?(N=_=+ot,X):N},X.nodes=function(ot){return arguments.length?(j=typeof ot=="function"?ot:l(ot),X):j},X.links=function(ot){return arguments.length?(K=typeof ot=="function"?ot:l(ot),X):K},X.linkSort=function(ot){return arguments.length?(V=ot,X):V},X.size=function(ot){return arguments.length?(C=B=0,F=+ot[0],L=+ot[1],X):[F-C,L-B]},X.extent=function(ot){return arguments.length?(C=+ot[0][0],F=+ot[1][0],B=+ot[0][1],L=+ot[1][1],X):[[C,B],[F,L]]},X.iterations=function(ot){return arguments.length?(z=+ot,X):z};function ct({nodes:ot,links:Ot}){for(let[Dt,Tt]of ot.entries())Tt.index=Dt,Tt.sourceLinks=[],Tt.targetLinks=[];let _t=new Map(ot.map((Dt,Tt)=>[O(Dt,Tt,ot),Dt]));for(let[Dt,Tt]of Ot.entries()){Tt.index=Dt;let{source:Ft,target:fe}=Tt;typeof Ft!="object"&&(Ft=Tt.source=f(_t,Ft)),typeof fe!="object"&&(fe=Tt.target=f(_t,fe)),Ft.sourceLinks.push(Tt),fe.targetLinks.push(Tt)}if(V!=null)for(let{sourceLinks:Dt,targetLinks:Tt}of ot)Dt.sort(V),Tt.sort(V)}function J({nodes:ot}){for(let Ot of ot)Ot.value=Ot.fixedValue===void 0?Math.max(t.sum(Ot.sourceLinks,m),t.sum(Ot.targetLinks,m)):Ot.fixedValue}function bt({nodes:ot}){let Ot=ot.length,_t=new Set(ot),Dt=new Set,Tt=0;for(;_t.size;){for(let Ft of _t){Ft.depth=Tt;for(let{target:fe}of Ft.sourceLinks)Dt.add(fe)}if(++Tt>Ot)throw new Error("circular link");_t=Dt,Dt=new Set}}function Nt({nodes:ot}){let Ot=ot.length,_t=new Set(ot),Dt=new Set,Tt=0;for(;_t.size;){for(let Ft of _t){Ft.height=Tt;for(let{source:fe}of Ft.targetLinks)Dt.add(fe)}if(++Tt>Ot)throw new Error("circular link");_t=Dt,Dt=new Set}}function zt({nodes:ot}){let Ot=t.max(ot,Tt=>Tt.depth)+1,_t=(F-C-I)/(Ot-1),Dt=new Array(Ot);for(let Tt of ot){let Ft=Math.max(0,Math.min(Ot-1,Math.floor(T.call(null,Tt,Ot))));Tt.layer=Ft,Tt.x0=C+Ft*_t,Tt.x1=Tt.x0+I,Dt[Ft]?Dt[Ft].push(Tt):Dt[Ft]=[Tt]}if(D)for(let Tt of Dt)Tt.sort(D);return Dt}function tt(ot){let Ot=t.min(ot,_t=>(L-B-(_t.length-1)*_)/t.sum(_t,m));for(let _t of ot){let Dt=B;for(let Tt of _t){Tt.y0=Dt,Tt.y1=Dt+Tt.value*Ot,Dt=Tt.y1+_;for(let Ft of Tt.sourceLinks)Ft.width=Ft.value*Ot}Dt=(L-Dt+_)/(_t.length+1);for(let Tt=0;Tt<_t.length;++Tt){let Ft=_t[Tt];Ft.y0+=Dt*(Tt+1),Ft.y1+=Dt*(Tt+1)}ne(_t)}}function et(ot){let Ot=zt(ot);_=Math.min(N,(L-B)/(t.max(Ot,_t=>_t.length)-1)),tt(Ot);for(let _t=0;_t<z;++_t){let Dt=Math.pow(.99,_t),Tt=Math.max(1-Dt,(_t+1)/z);at(Ot,Dt,Tt),gt(Ot,Dt,Tt)}}function gt(ot,Ot,_t){for(let Dt=1,Tt=ot.length;Dt<Tt;++Dt){let Ft=ot[Dt];for(let fe of Ft){let Rr=0,Xe=0;for(let{source:Rt,value:ee}of fe.targetLinks){let we=ee*(fe.layer-Rt.layer);Rr+=qt(Rt,fe)*we,Xe+=we}if(!(Xe>0))continue;let re=(Rr/Xe-fe.y0)*Ot;fe.y0+=re,fe.y1+=re,Jt(fe)}D===void 0&&Ft.sort(h),nt(Ft,_t)}}function at(ot,Ot,_t){for(let Dt=ot.length,Tt=Dt-2;Tt>=0;--Tt){let Ft=ot[Tt];for(let fe of Ft){let Rr=0,Xe=0;for(let{target:Rt,value:ee}of fe.sourceLinks){let we=ee*(Rt.layer-fe.layer);Rr+=se(fe,Rt)*we,Xe+=we}if(!(Xe>0))continue;let re=(Rr/Xe-fe.y0)*Ot;fe.y0+=re,fe.y1+=re,Jt(fe)}D===void 0&&Ft.sort(h),nt(Ft,_t)}}function nt(ot,Ot){let _t=ot.length>>1,Dt=ot[_t];st(ot,Dt.y0-_,_t-1,Ot),Ct(ot,Dt.y1+_,_t+1,Ot),st(ot,L,ot.length-1,Ot),Ct(ot,B,0,Ot)}function Ct(ot,Ot,_t,Dt){for(;_t<ot.length;++_t){let Tt=ot[_t],Ft=(Ot-Tt.y0)*Dt;Ft>1e-6&&(Tt.y0+=Ft,Tt.y1+=Ft),Ot=Tt.y1+_}}function st(ot,Ot,_t,Dt){for(;_t>=0;--_t){let Tt=ot[_t],Ft=(Tt.y1-Ot)*Dt;Ft>1e-6&&(Tt.y0-=Ft,Tt.y1-=Ft),Ot=Tt.y0-_}}function Jt({sourceLinks:ot,targetLinks:Ot}){if(V===void 0){for(let{source:{sourceLinks:_t}}of Ot)_t.sort(c);for(let{target:{targetLinks:_t}}of ot)_t.sort(u)}}function ne(ot){if(V===void 0)for(let{sourceLinks:Ot,targetLinks:_t}of ot)Ot.sort(c),_t.sort(u)}function qt(ot,Ot){let _t=ot.y0-(ot.sourceLinks.length-1)*_/2;for(let{target:Dt,width:Tt}of ot.sourceLinks){if(Dt===Ot)break;_t+=Tt+_}for(let{source:Dt,width:Tt}of Ot.targetLinks){if(Dt===ot)break;_t-=Tt}return _t}function se(ot,Ot){let _t=Ot.y0-(Ot.targetLinks.length-1)*_/2;for(let{source:Dt,width:Tt}of Ot.targetLinks){if(Dt===ot)break;_t+=Tt+_}for(let{target:Dt,width:Tt}of ot.sourceLinks){if(Dt===Ot)break;_t-=Tt}return _t}return X}function v(C){return[C.source.x1,C.y0]}function A(C){return[C.target.x0,C.y1]}function M(){return e.linkHorizontal().source(v).target(A)}r.sankey=S,r.sankeyCenter=s,r.sankeyJustify=a,r.sankeyLeft=n,r.sankeyLinkHorizontal=M,r.sankeyRight=i,Object.defineProperty(r,"__esModule",{value:!0})})});var OH=ar((c7,BH)=>{(function(r,t){typeof c7=="object"&&typeof BH<"u"?t(c7):typeof define=="function"&&define.amd?define(["exports"],t):t(r.d3=r.d3||{})})(c7,(function(r){"use strict";var t=Math.PI/3,e=[0,t,2*t,3*t,4*t,5*t];function o(a){return a[0]}function n(a){return a[1]}var i=function(){var a=0,s=0,l=1,u=1,c=o,h=n,m,p,g;function d(b){var S={},v=[],A,M=b.length;for(A=0;A<M;++A)if(!(isNaN(B=+c.call(null,C=b[A],A,b))||isNaN(F=+h.call(null,C,A,b)))){var C,B,F,L=Math.round(F=F/g),I=Math.round(B=B/p-(L&1)/2),N=F-L;if(Math.abs(N)*3>1){var _=B-I,O=I+(B<I?-1:1)/2,T=L+(F<L?-1:1),D=B-O,V=F-T;_*_+N*N>D*D+V*V&&(I=O+(L&1?1:-1)/2,L=T)}var j=I+"-"+L,K=S[j];K?K.push(C):(v.push(K=S[j]=[C]),K.x=(I+(L&1)/2)*p,K.y=L*g)}return v}function f(b){var S=0,v=0;return e.map(function(A){var M=Math.sin(A)*b,C=-Math.cos(A)*b,B=M-S,F=C-v;return S=M,v=C,[B,F]})}return d.hexagon=function(b){return"m"+f(b==null?m:+b).join("l")+"z"},d.centers=function(){for(var b=[],S=Math.round(s/g),v=Math.round(a/p),A=S*g;A<u+m;A+=g,++S)for(var M=v*p+(S&1)*p/2;M<l+p/2;M+=p)b.push([M,A]);return b},d.mesh=function(){var b=f(m).slice(0,4).join("l");return d.centers().map(function(S){return"M"+S+"m"+b}).join("")},d.x=function(b){return arguments.length?(c=b,d):c},d.y=function(b){return arguments.length?(h=b,d):h},d.radius=function(b){return arguments.length?(m=+b,p=m*2*Math.sin(t),g=m*1.5,d):m},d.size=function(b){return arguments.length?(a=s=0,l=+b[0],u=+b[1],d):[l-a,u-s]},d.extent=function(b){return arguments.length?(a=+b[0][0],s=+b[0][1],l=+b[1][0],u=+b[1][1],d):[[a,s],[l,u]]},d.radius(1)};r.hexbin=i,Object.defineProperty(r,"__esModule",{value:!0})}))});var FH=ar((h7,DH)=>{(function(r,t){typeof h7=="object"&&typeof DH<"u"?t(h7):typeof define=="function"&&define.amd?define(["exports"],t):(r=r||self,t(r.d3=r.d3||{}))})(h7,function(r){"use strict";function t(u){for(var c=-1,h=u.length,m,p=u[h-1],g=0;++c<h;)m=p,p=u[c],g+=m[1]*p[0]-m[0]*p[1];return g/2}function e(u){for(var c=-1,h=u.length,m=0,p=0,g,d=u[h-1],f,b=0;++c<h;)g=d,d=u[c],b+=f=g[0]*d[1]-d[0]*g[1],m+=(g[0]+d[0])*f,p+=(g[1]+d[1])*f;return b*=3,[m/b,p/b]}function o(u,c,h){return(c[0]-u[0])*(h[1]-u[1])-(c[1]-u[1])*(h[0]-u[0])}function n(u,c){return u[0]-c[0]||u[1]-c[1]}function i(u){let c=u.length,h=[0,1],m=2,p;for(p=2;p<c;++p){for(;m>1&&o(u[h[m-2]],u[h[m-1]],u[p])<=0;)--m;h[m++]=p}return h.slice(0,m)}function a(u){if((h=u.length)<3)return null;var c,h,m=new Array(h),p=new Array(h);for(c=0;c<h;++c)m[c]=[+u[c][0],+u[c][1],c];for(m.sort(n),c=0;c<h;++c)p[c]=[m[c][0],-m[c][1]];var g=i(m),d=i(p),f=d[0]===g[0],b=d[d.length-1]===g[g.length-1],S=[];for(c=g.length-1;c>=0;--c)S.push(u[m[g[c]][2]]);for(c=+f;c<d.length-b;++c)S.push(u[m[d[c]][2]]);return S}function s(u,c){for(var h=u.length,m=u[h-1],p=c[0],g=c[1],d=m[0],f=m[1],b,S,v=!1,A=0;A<h;++A)m=u[A],b=m[0],S=m[1],S>g!=f>g&&p<(d-b)*(g-S)/(f-S)+b&&(v=!v),d=b,f=S;return v}function l(u){for(var c=-1,h=u.length,m=u[h-1],p,g,d=m[0],f=m[1],b=0;++c<h;)p=d,g=f,m=u[c],d=m[0],f=m[1],p-=d,g-=f,b+=Math.hypot(p,g);return b}r.polygonArea=t,r.polygonCentroid=e,r.polygonContains=s,r.polygonHull=a,r.polygonLength=l,Object.defineProperty(r,"__esModule",{value:!0})})});var VH=ar((m7,GH)=>{(function(r,t){typeof m7=="object"&&typeof GH<"u"?t(m7):typeof define=="function"&&define.amd?define(["exports"],t):(r=r||self,t(r.d3=r.d3||{}))})(m7,function(r){"use strict";var t=0,e=0,o=0,n=1e3,i,a,s=0,l=0,u=0,c=typeof performance=="object"&&performance.now?performance:Date,h=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(B){setTimeout(B,17)};function m(){return l||(h(p),l=c.now()+u)}function p(){l=0}function g(){this._call=this._time=this._next=null}g.prototype=d.prototype={constructor:g,restart:function(B,F,L){if(typeof B!="function")throw new TypeError("callback is not a function");L=(L==null?m():+L)+(F==null?0:+F),!this._next&&a!==this&&(a?a._next=this:i=this,a=this),this._call=B,this._time=L,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};function d(B,F,L){var I=new g;return I.restart(B,F,L),I}function f(){m(),++t;for(var B=i,F;B;)(F=l-B._time)>=0&&B._call.call(null,F),B=B._next;--t}function b(){l=(s=c.now())+u,t=e=0;try{f()}finally{t=0,v(),l=0}}function S(){var B=c.now(),F=B-s;F>n&&(u-=F,s=B)}function v(){for(var B,F=i,L,I=1/0;F;)F._call?(I>F._time&&(I=F._time),B=F,F=F._next):(L=F._next,F._next=null,F=B?B._next=L:i=L);a=B,A(I)}function A(B){if(!t){e&&(e=clearTimeout(e));var F=B-l;F>24?(B<1/0&&(e=setTimeout(b,B-c.now()-u)),o&&(o=clearInterval(o))):(o||(s=c.now(),o=setInterval(S,n)),t=1,h(b))}}function M(B,F,L){var I=new g;return F=F==null?0:+F,I.restart(N=>{I.stop(),B(N+F)},F,L),I}function C(B,F,L){var I=new g,N=F;return F==null?(I.restart(B,F,L),I):(I._restart=I.restart,I.restart=function(_,O,T){O=+O,T=T==null?m():+T,I._restart(function D(V){V+=N,I._restart(D,N+=O,T),_(V)},O,T)},I.restart(B,F,L),I)}r.interval=C,r.now=m,r.timeout=M,r.timer=d,r.timerFlush=f,Object.defineProperty(r,"__esModule",{value:!0})})});var zH=ar((p7,HH)=>{(function(r,t){typeof p7=="object"&&typeof HH<"u"?t(p7):typeof define=="function"&&define.amd?define(["exports"],t):(r=r||self,t(r.d3=r.d3||{}))})(p7,function(r){"use strict";var t={value:()=>{}};function e(){for(var s=0,l=arguments.length,u={},c;s<l;++s){if(!(c=arguments[s]+"")||c in u||/[\s.]/.test(c))throw new Error("illegal type: "+c);u[c]=[]}return new o(u)}function o(s){this._=s}function n(s,l){return s.trim().split(/^|\s+/).map(function(u){var c="",h=u.indexOf(".");if(h>=0&&(c=u.slice(h+1),u=u.slice(0,h)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:c}})}o.prototype=e.prototype={constructor:o,on:function(s,l){var u=this._,c=n(s+"",u),h,m=-1,p=c.length;if(arguments.length<2){for(;++m<p;)if((h=(s=c[m]).type)&&(h=i(u[h],s.name)))return h;return}if(l!=null&&typeof l!="function")throw new Error("invalid callback: "+l);for(;++m<p;)if(h=(s=c[m]).type)u[h]=a(u[h],s.name,l);else if(l==null)for(h in u)u[h]=a(u[h],s.name,null);return this},copy:function(){var s={},l=this._;for(var u in l)s[u]=l[u].slice();return new o(s)},call:function(s,l){if((h=arguments.length-2)>0)for(var u=new Array(h),c=0,h,m;c<h;++c)u[c]=arguments[c+2];if(!this._.hasOwnProperty(s))throw new Error("unknown type: "+s);for(m=this._[s],c=0,h=m.length;c<h;++c)m[c].value.apply(l,u)},apply:function(s,l,u){if(!this._.hasOwnProperty(s))throw new Error("unknown type: "+s);for(var c=this._[s],h=0,m=c.length;h<m;++h)c[h].value.apply(l,u)}};function i(s,l){for(var u=0,c=s.length,h;u<c;++u)if((h=s[u]).name===l)return h.value}function a(s,l,u){for(var c=0,h=s.length;c<h;++c)if(s[c].name===l){s[c]=t,s=s.slice(0,c).concat(s.slice(c+1));break}return u!=null&&s.push({name:l,value:u}),s}r.dispatch=e,Object.defineProperty(r,"__esModule",{value:!0})})});var XH=ar((d7,jH)=>{(function(r,t){typeof d7=="object"&&typeof jH<"u"?t(d7):typeof define=="function"&&define.amd?define(["exports"],t):(r=typeof globalThis<"u"?globalThis:r||self,t(r.d3=r.d3||{}))})(d7,(function(r){"use strict";function t(P,x){return P<x?-1:P>x?1:P>=x?0:NaN}function e(P){let x=P,E=P;P.length===1&&(x=(Q,dt)=>P(Q)-dt,E=o(P));function R(Q,dt,jt,ie){for(jt==null&&(jt=0),ie==null&&(ie=Q.length);jt<ie;){let le=jt+ie>>>1;E(Q[le],dt)<0?jt=le+1:ie=le}return jt}function U(Q,dt,jt,ie){for(jt==null&&(jt=0),ie==null&&(ie=Q.length);jt<ie;){let le=jt+ie>>>1;E(Q[le],dt)>0?ie=le:jt=le+1}return jt}function G(Q,dt,jt,ie){jt==null&&(jt=0),ie==null&&(ie=Q.length);let le=R(Q,dt,jt,ie-1);return le>jt&&x(Q[le-1],dt)>-x(Q[le],dt)?le-1:le}return{left:R,center:G,right:U}}function o(P){return(x,E)=>t(P(x),E)}function n(P){return P===null?NaN:+P}function*i(P,x){if(x===void 0)for(let E of P)E!=null&&(E=+E)>=E&&(yield E);else{let E=-1;for(let R of P)(R=x(R,++E,P))!=null&&(R=+R)>=R&&(yield R)}}let a=e(t),s=a.right,l=a.left,u=e(n).center;function c(P,x){let E=0;if(x===void 0)for(let R of P)R!=null&&(R=+R)>=R&&++E;else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(U=+U)>=U&&++E}return E}function h(P){return P.length|0}function m(P){return!(P>0)}function p(P){return typeof P!="object"||"length"in P?P:Array.from(P)}function g(P){return x=>P(...x)}function d(...P){let x=typeof P[P.length-1]=="function"&&g(P.pop());P=P.map(p);let E=P.map(h),R=P.length-1,U=new Array(R+1).fill(0),G=[];if(R<0||E.some(m))return G;for(;;){G.push(U.map((dt,jt)=>P[jt][dt]));let Q=R;for(;++U[Q]===E[Q];){if(Q===0)return x?G.map(x):G;U[Q--]=0}}}function f(P,x){var E=0,R=0;return Float64Array.from(P,x===void 0?U=>E+=+U||0:U=>E+=+x(U,R++,P)||0)}function b(P,x){return x<P?-1:x>P?1:x>=P?0:NaN}function S(P,x){let E=0,R,U=0,G=0;if(x===void 0)for(let Q of P)Q!=null&&(Q=+Q)>=Q&&(R=Q-U,U+=R/++E,G+=R*(Q-U));else{let Q=-1;for(let dt of P)(dt=x(dt,++Q,P))!=null&&(dt=+dt)>=dt&&(R=dt-U,U+=R/++E,G+=R*(dt-U))}if(E>1)return G/(E-1)}function v(P,x){let E=S(P,x);return E&&Math.sqrt(E)}function A(P,x){let E,R;if(x===void 0)for(let U of P)U!=null&&(E===void 0?U>=U&&(E=R=U):(E>U&&(E=U),R<U&&(R=U)));else{let U=-1;for(let G of P)(G=x(G,++U,P))!=null&&(E===void 0?G>=G&&(E=R=G):(E>G&&(E=G),R<G&&(R=G)))}return[E,R]}class M{constructor(){this._partials=new Float64Array(32),this._n=0}add(x){let E=this._partials,R=0;for(let U=0;U<this._n&&U<32;U++){let G=E[U],Q=x+G,dt=Math.abs(x)<Math.abs(G)?x-(Q-G):G-(Q-x);dt&&(E[R++]=dt),x=Q}return E[R]=x,this._n=R+1,this}valueOf(){let x=this._partials,E=this._n,R,U,G,Q=0;if(E>0){for(Q=x[--E];E>0&&(R=Q,U=x[--E],Q=R+U,G=U-(Q-R),!G););E>0&&(G<0&&x[E-1]<0||G>0&&x[E-1]>0)&&(U=G*2,R=Q+U,U==R-Q&&(Q=R))}return Q}}function C(P,x){let E=new M;if(x===void 0)for(let R of P)(R=+R)&&E.add(R);else{let R=-1;for(let U of P)(U=+x(U,++R,P))&&E.add(U)}return+E}function B(P,x){let E=new M,R=-1;return Float64Array.from(P,x===void 0?U=>E.add(+U||0):U=>E.add(+x(U,++R,P)||0))}class F extends Map{constructor(x,E=O){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:E}}),x!=null)for(let[R,U]of x)this.set(R,U)}get(x){return super.get(I(this,x))}has(x){return super.has(I(this,x))}set(x,E){return super.set(N(this,x),E)}delete(x){return super.delete(_(this,x))}}class L extends Set{constructor(x,E=O){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:E}}),x!=null)for(let R of x)this.add(R)}has(x){return super.has(I(this,x))}add(x){return super.add(N(this,x))}delete(x){return super.delete(_(this,x))}}function I({_intern:P,_key:x},E){let R=x(E);return P.has(R)?P.get(R):E}function N({_intern:P,_key:x},E){let R=x(E);return P.has(R)?P.get(R):(P.set(R,E),E)}function _({_intern:P,_key:x},E){let R=x(E);return P.has(R)&&(E=P.get(E),P.delete(R)),E}function O(P){return P!==null&&typeof P=="object"?P.valueOf():P}function T(P){return P}function D(P,...x){return J(P,T,T,x)}function V(P,...x){return J(P,Array.from,T,x)}function j(P,x,...E){return J(P,T,x,E)}function K(P,x,...E){return J(P,Array.from,x,E)}function z(P,...x){return J(P,T,ct,x)}function X(P,...x){return J(P,Array.from,ct,x)}function ct(P){if(P.length!==1)throw new Error("duplicate key");return P[0]}function J(P,x,E,R){return(function U(G,Q){if(Q>=R.length)return E(G);let dt=new F,jt=R[Q++],ie=-1;for(let le of G){let pe=jt(le,++ie,G),Oe=dt.get(pe);Oe?Oe.push(le):dt.set(pe,[le])}for(let[le,pe]of dt)dt.set(le,U(pe,Q));return x(dt)})(P,0)}function bt(P,x){return Array.from(x,E=>P[E])}function Nt(P,...x){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");P=Array.from(P);let[E=t]=x;if(E.length===1||x.length>1){let R=Uint32Array.from(P,(U,G)=>G);return x.length>1?(x=x.map(U=>P.map(U)),R.sort((U,G)=>{for(let Q of x){let dt=t(Q[U],Q[G]);if(dt)return dt}})):(E=P.map(E),R.sort((U,G)=>t(E[U],E[G]))),bt(P,R)}return P.sort(E)}function zt(P,x,E){return(x.length===1?Nt(j(P,x,E),(([R,U],[G,Q])=>t(U,Q)||t(R,G))):Nt(D(P,E),(([R,U],[G,Q])=>x(U,Q)||t(R,G)))).map(([R])=>R)}var tt=Array.prototype,et=tt.slice;function gt(P){return function(){return P}}var at=Math.sqrt(50),nt=Math.sqrt(10),Ct=Math.sqrt(2);function st(P,x,E){var R,U=-1,G,Q,dt;if(x=+x,P=+P,E=+E,P===x&&E>0)return[P];if((R=x<P)&&(G=P,P=x,x=G),(dt=Jt(P,x,E))===0||!isFinite(dt))return[];if(dt>0){let jt=Math.round(P/dt),ie=Math.round(x/dt);for(jt*dt<P&&++jt,ie*dt>x&&--ie,Q=new Array(G=ie-jt+1);++U<G;)Q[U]=(jt+U)*dt}else{dt=-dt;let jt=Math.round(P*dt),ie=Math.round(x*dt);for(jt/dt<P&&++jt,ie/dt>x&&--ie,Q=new Array(G=ie-jt+1);++U<G;)Q[U]=(jt+U)/dt}return R&&Q.reverse(),Q}function Jt(P,x,E){var R=(x-P)/Math.max(0,E),U=Math.floor(Math.log(R)/Math.LN10),G=R/Math.pow(10,U);return U>=0?(G>=at?10:G>=nt?5:G>=Ct?2:1)*Math.pow(10,U):-Math.pow(10,-U)/(G>=at?10:G>=nt?5:G>=Ct?2:1)}function ne(P,x,E){var R=Math.abs(x-P)/Math.max(0,E),U=Math.pow(10,Math.floor(Math.log(R)/Math.LN10)),G=R/U;return G>=at?U*=10:G>=nt?U*=5:G>=Ct&&(U*=2),x<P?-U:U}function qt(P,x,E){let R;for(;;){let U=Jt(P,x,E);if(U===R||U===0||!isFinite(U))return[P,x];U>0?(P=Math.floor(P/U)*U,x=Math.ceil(x/U)*U):U<0&&(P=Math.ceil(P*U)/U,x=Math.floor(x*U)/U),R=U}}function se(P){return Math.ceil(Math.log(c(P))/Math.LN2)+1}function ot(){var P=T,x=A,E=se;function R(U){Array.isArray(U)||(U=Array.from(U));var G,Q=U.length,dt,jt=new Array(Q);for(G=0;G<Q;++G)jt[G]=P(U[G],G,U);var ie=x(jt),le=ie[0],pe=ie[1],Oe=E(jt,le,pe);if(!Array.isArray(Oe)){let QS=pe,pa=+Oe;if(x===A&&([le,pe]=qt(le,pe,pa)),Oe=st(le,pe,pa),Oe[Oe.length-1]>=pe)if(QS>=pe&&x===A){let $o=Jt(le,pe,pa);isFinite($o)&&($o>0?pe=(Math.floor(pe/$o)+1)*$o:$o<0&&(pe=(Math.ceil(pe*-$o)+1)/-$o))}else Oe.pop()}for(var Eo=Oe.length;Oe[0]<=le;)Oe.shift(),--Eo;for(;Oe[Eo-1]>pe;)Oe.pop(),--Eo;var Ba=new Array(Eo+1),Tc;for(G=0;G<=Eo;++G)Tc=Ba[G]=[],Tc.x0=G>0?Oe[G-1]:le,Tc.x1=G<Eo?Oe[G]:pe;for(G=0;G<Q;++G)dt=jt[G],le<=dt&&dt<=pe&&Ba[s(Oe,dt,0,Eo)].push(U[G]);return Ba}return R.value=function(U){return arguments.length?(P=typeof U=="function"?U:gt(U),R):P},R.domain=function(U){return arguments.length?(x=typeof U=="function"?U:gt([U[0],U[1]]),R):x},R.thresholds=function(U){return arguments.length?(E=typeof U=="function"?U:Array.isArray(U)?gt(et.call(U)):gt(U),R):E},R}function Ot(P,x){let E;if(x===void 0)for(let R of P)R!=null&&(E<R||E===void 0&&R>=R)&&(E=R);else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(E<U||E===void 0&&U>=U)&&(E=U)}return E}function _t(P,x){let E;if(x===void 0)for(let R of P)R!=null&&(E>R||E===void 0&&R>=R)&&(E=R);else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(E>U||E===void 0&&U>=U)&&(E=U)}return E}function Dt(P,x,E=0,R=P.length-1,U=t){for(;R>E;){if(R-E>600){let jt=R-E+1,ie=x-E+1,le=Math.log(jt),pe=.5*Math.exp(2*le/3),Oe=.5*Math.sqrt(le*pe*(jt-pe)/jt)*(ie-jt/2<0?-1:1),Eo=Math.max(E,Math.floor(x-ie*pe/jt+Oe)),Ba=Math.min(R,Math.floor(x+(jt-ie)*pe/jt+Oe));Dt(P,x,Eo,Ba,U)}let G=P[x],Q=E,dt=R;for(Tt(P,E,x),U(P[R],G)>0&&Tt(P,E,R);Q<dt;){for(Tt(P,Q,dt),++Q,--dt;U(P[Q],G)<0;)++Q;for(;U(P[dt],G)>0;)--dt}U(P[E],G)===0?Tt(P,E,dt):(++dt,Tt(P,dt,R)),dt<=x&&(E=dt+1),x<=dt&&(R=dt-1)}return P}function Tt(P,x,E){let R=P[x];P[x]=P[E],P[E]=R}function Ft(P,x,E){if(P=Float64Array.from(i(P,E)),!!(R=P.length)){if((x=+x)<=0||R<2)return _t(P);if(x>=1)return Ot(P);var R,U=(R-1)*x,G=Math.floor(U),Q=Ot(Dt(P,G).subarray(0,G+1)),dt=_t(P.subarray(G+1));return Q+(dt-Q)*(U-G)}}function fe(P,x,E=n){if(R=P.length){if((x=+x)<=0||R<2)return+E(P[0],0,P);if(x>=1)return+E(P[R-1],R-1,P);var R,U=(R-1)*x,G=Math.floor(U),Q=+E(P[G],G,P),dt=+E(P[G+1],G+1,P);return Q+(dt-Q)*(U-G)}}function Rr(P,x,E){return Math.ceil((E-x)/(2*(Ft(P,.75)-Ft(P,.25))*Math.pow(c(P),-1/3)))}function Xe(P,x,E){return Math.ceil((E-x)/(3.5*v(P)*Math.pow(c(P),-1/3)))}function re(P,x){let E,R=-1,U=-1;if(x===void 0)for(let G of P)++U,G!=null&&(E<G||E===void 0&&G>=G)&&(E=G,R=U);else for(let G of P)(G=x(G,++U,P))!=null&&(E<G||E===void 0&&G>=G)&&(E=G,R=U);return R}function Rt(P,x){let E=0,R=0;if(x===void 0)for(let U of P)U!=null&&(U=+U)>=U&&(++E,R+=U);else{let U=-1;for(let G of P)(G=x(G,++U,P))!=null&&(G=+G)>=G&&(++E,R+=G)}if(E)return R/E}function ee(P,x){return Ft(P,.5,x)}function*we(P){for(let x of P)yield*x}function We(P){return Array.from(we(P))}function qe(P,x){let E,R=-1,U=-1;if(x===void 0)for(let G of P)++U,G!=null&&(E>G||E===void 0&&G>=G)&&(E=G,R=U);else for(let G of P)(G=x(G,++U,P))!=null&&(E>G||E===void 0&&G>=G)&&(E=G,R=U);return R}function $e(P,x=mr){let E=[],R,U=!1;for(let G of P)U&&E.push(x(R,G)),R=G,U=!0;return E}function mr(P,x){return[P,x]}function pr(P,x,E){P=+P,x=+x,E=(U=arguments.length)<2?(x=P,P=0,1):U<3?1:+E;for(var R=-1,U=Math.max(0,Math.ceil((x-P)/E))|0,G=new Array(U);++R<U;)G[R]=P+R*E;return G}function jr(P,x=t){let E,R=!1;if(x.length===1){let U;for(let G of P){let Q=x(G);(R?t(Q,U)<0:t(Q,Q)===0)&&(E=G,U=Q,R=!0)}}else for(let U of P)(R?x(U,E)<0:x(U,U)===0)&&(E=U,R=!0);return E}function co(P,x=t){if(x.length===1)return qe(P,x);let E,R=-1,U=-1;for(let G of P)++U,(R<0?x(G,G)===0:x(G,E)<0)&&(E=G,R=U);return R}function ma(P,x=t){let E,R=!1;if(x.length===1){let U;for(let G of P){let Q=x(G);(R?t(Q,U)>0:t(Q,Q)===0)&&(E=G,U=Q,R=!0)}}else for(let U of P)(R?x(U,E)>0:x(U,U)===0)&&(E=U,R=!0);return E}function wi(P,x=t){if(x.length===1)return re(P,x);let E,R=-1,U=-1;for(let G of P)++U,(R<0?x(G,G)===0:x(G,E)>0)&&(E=G,R=U);return R}function hs(P,x){let E=co(P,x);return E<0?void 0:E}var Ec=Jl(Math.random);function Jl(P){return function(E,R=0,U=E.length){let G=U-(R=+R);for(;G;){let Q=P()*G--|0,dt=E[G+R];E[G+R]=E[Q+R],E[Q+R]=dt}return E}}function om(P,x){let E=0;if(x===void 0)for(let R of P)(R=+R)&&(E+=R);else{let R=-1;for(let U of P)(U=+x(U,++R,P))&&(E+=U)}return E}function ms(P){if(!(G=P.length))return[];for(var x=-1,E=_t(P,ps),R=new Array(E);++x<E;)for(var U=-1,G,Q=R[x]=new Array(G);++U<G;)Q[U]=P[U][x];return R}function ps(P){return P.length}function ds(){return ms(arguments)}function Cc(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=-1;for(let R of P)if(!x(R,++E,P))return!1;return!0}function Ql(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=-1;for(let R of P)if(x(R,++E,P))return!0;return!1}function nm(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=[],R=-1;for(let U of P)x(U,++R,P)&&E.push(U);return E}function Bn(P,x){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof x!="function")throw new TypeError("mapper is not a function");return Array.from(P,(E,R)=>x(E,R,P))}function kc(P,x,E){if(typeof x!="function")throw new TypeError("reducer is not a function");let R=P[Symbol.iterator](),U,G,Q=-1;if(arguments.length<3){if({done:U,value:E}=R.next(),U)return;++Q}for(;{done:U,value:G}=R.next(),!U;)E=x(E,G,++Q,P);return E}function Zl(P){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(P).reverse()}function im(P,...x){P=new Set(P);for(let E of x)for(let R of E)P.delete(R);return P}function am(P,x){let E=x[Symbol.iterator](),R=new Set;for(let U of P){if(R.has(U))return!1;let G,Q;for(;({value:G,done:Q}=E.next())&&!Q;){if(Object.is(U,G))return!1;R.add(G)}}return!0}function sm(P){return P instanceof Set?P:new Set(P)}function Mc(P,...x){P=new Set(P),x=x.map(sm);t:for(let E of P)for(let R of x)if(!R.has(E)){P.delete(E);continue t}return P}function tu(P,x){let E=P[Symbol.iterator](),R=new Set;for(let U of x){if(R.has(U))continue;let G,Q;for(;{value:G,done:Q}=E.next();){if(Q)return!1;if(R.add(G),Object.is(U,G))break}}return!0}function lm(P,x){return tu(x,P)}function eu(...P){let x=new Set;for(let E of P)for(let R of E)x.add(R);return x}r.Adder=M,r.InternMap=F,r.InternSet=L,r.ascending=t,r.bin=ot,r.bisect=s,r.bisectCenter=u,r.bisectLeft=l,r.bisectRight=s,r.bisector=e,r.count=c,r.cross=d,r.cumsum=f,r.descending=b,r.deviation=v,r.difference=im,r.disjoint=am,r.every=Cc,r.extent=A,r.fcumsum=B,r.filter=nm,r.fsum=C,r.greatest=ma,r.greatestIndex=wi,r.group=D,r.groupSort=zt,r.groups=V,r.histogram=ot,r.index=z,r.indexes=X,r.intersection=Mc,r.least=jr,r.leastIndex=co,r.map=Bn,r.max=Ot,r.maxIndex=re,r.mean=Rt,r.median=ee,r.merge=We,r.min=_t,r.minIndex=qe,r.nice=qt,r.pairs=$e,r.permute=bt,r.quantile=Ft,r.quantileSorted=fe,r.quickselect=Dt,r.range=pr,r.reduce=kc,r.reverse=Zl,r.rollup=j,r.rollups=K,r.scan=hs,r.shuffle=Ec,r.shuffler=Jl,r.some=Ql,r.sort=Nt,r.subset=lm,r.sum=om,r.superset=tu,r.thresholdFreedmanDiaconis=Rr,r.thresholdScott=Xe,r.thresholdSturges=se,r.tickIncrement=Jt,r.tickStep=ne,r.ticks=st,r.transpose=ms,r.union=eu,r.variance=S,r.zip=ds,Object.defineProperty(r,"__esModule",{value:!0})}))});var YH=ar((y7,KH)=>{(function(r,t){typeof y7=="object"&&typeof KH<"u"?t(y7):typeof define=="function"&&define.amd?define(["exports"],t):(r=r||self,t(r.d3=r.d3||{}))})(y7,function(r){"use strict";function t(u){for(var c=-1,h=u.length,m,p=u[h-1],g=0;++c<h;)m=p,p=u[c],g+=m[1]*p[0]-m[0]*p[1];return g/2}function e(u){for(var c=-1,h=u.length,m=0,p=0,g,d=u[h-1],f,b=0;++c<h;)g=d,d=u[c],b+=f=g[0]*d[1]-d[0]*g[1],m+=(g[0]+d[0])*f,p+=(g[1]+d[1])*f;return b*=3,[m/b,p/b]}function o(u,c,h){return(c[0]-u[0])*(h[1]-u[1])-(c[1]-u[1])*(h[0]-u[0])}function n(u,c){return u[0]-c[0]||u[1]-c[1]}function i(u){let c=u.length,h=[0,1],m=2,p;for(p=2;p<c;++p){for(;m>1&&o(u[h[m-2]],u[h[m-1]],u[p])<=0;)--m;h[m++]=p}return h.slice(0,m)}function a(u){if((h=u.length)<3)return null;var c,h,m=new Array(h),p=new Array(h);for(c=0;c<h;++c)m[c]=[+u[c][0],+u[c][1],c];for(m.sort(n),c=0;c<h;++c)p[c]=[m[c][0],-m[c][1]];var g=i(m),d=i(p),f=d[0]===g[0],b=d[d.length-1]===g[g.length-1],S=[];for(c=g.length-1;c>=0;--c)S.push(u[m[g[c]][2]]);for(c=+f;c<d.length-b;++c)S.push(u[m[d[c]][2]]);return S}function s(u,c){for(var h=u.length,m=u[h-1],p=c[0],g=c[1],d=m[0],f=m[1],b,S,v=!1,A=0;A<h;++A)m=u[A],b=m[0],S=m[1],S>g!=f>g&&p<(d-b)*(g-S)/(f-S)+b&&(v=!v),d=b,f=S;return v}function l(u){for(var c=-1,h=u.length,m=u[h-1],p,g,d=m[0],f=m[1],b=0;++c<h;)p=d,g=f,m=u[c],d=m[0],f=m[1],p-=d,g-=f,b+=Math.hypot(p,g);return b}r.polygonArea=t,r.polygonCentroid=e,r.polygonContains=s,r.polygonHull=a,r.polygonLength=l,Object.defineProperty(r,"__esModule",{value:!0})})});var $H=ar((f7,qH)=>{(function(r,t){typeof f7=="object"&&typeof qH<"u"?t(f7,XH(),YH()):typeof define=="function"&&define.amd?define(["exports","d3-array","d3-polygon"],t):t(r.d3=r.d3||{},r.d3,r.d3)})(f7,function(r,t,e){"use strict";var o=1e-10;function n(N){return N<=o&&N>=-o}function i(N,_){return N.x*_.x+N.y*_.y+N.z*_.z}function a(N,_){return n(N.x*_.y-N.y*_.x)&&n(N.y*_.z-N.z*_.y)&&n(N.z*_.x-N.x*_.z)}function s(N){var _,O,T,D,V,j,K,z;if(T=N[N.length-2],D=N[N.length-1],V=N[0],j=l(T,D),K=l(D,V),O=u(j,K),_=Math.sign(O),T=D,D=V,V=N[1],j=K,K=l(D,V),O=u(j,K),Math.sign(O)===_){for(z=2;z<N.length-1;z++)if(T=D,D=V,V=N[z],j=K,K=l(D,V),O=u(j,K),Math.sign(O)!==_)return;return _}}function l(N,_){return[_[0]-N[0],_[1]-N[1]]}function u(N,_){return N[0]*_[1]-N[1]*_[0]}function c(N,_){this.face=N,this.vert=_,this.nextf=null,this.prevf=null,this.nextv=null,this.prevv=null}function h(N){this.forFace=N,this.head=null}h.prototype.add=function(N){this.head===null?this.head=N:this.forFace?(this.head.prevv=N,N.nextv=this.head,this.head=N):(this.head.prevf=N,N.nextf=this.head,this.head=N)},h.prototype.isEmpty=function(){return this.head===null},h.prototype.fill=function(N){if(!this.forFace){var _=this.head;do N.push(_.face),_.face.marked=!0,_=_.nextf;while(_!==null)}},h.prototype.removeAll=function(){if(this.forFace){var N=this.head;do N.prevf===null?N.nextf===null?N.vert.conflicts.head=null:(N.nextf.prevf=null,N.vert.conflicts.head=N.nextf):(N.nextf!=null&&(N.nextf.prevf=N.prevf),N.prevf.nextf=N.nextf),N=N.nextv,N!=null&&(N.prevv=null);while(N!=null)}else{var N=this.head;do N.prevv==null?N.nextv==null?N.face.conflicts.head=null:(N.nextv.prevv=null,N.face.conflicts.head=N.nextv):(N.nextv!=null&&(N.nextv.prevv=N.prevv),N.prevv.nextv=N.nextv),N=N.nextf,N!=null&&(N.prevf=null);while(N!=null)}},h.prototype.getVertices=function(){for(var N=[],_=this.head;_!==null;)N.push(_.vert),_=_.nextv;return N};function m(N,_,O,T,D,V){this.x=N,this.y=_,this.weight=o,this.index=0,this.conflicts=new h(!1),this.neighbours=null,this.nonClippedPolygon=null,this.polygon=null,this.originalObject=null,this.isDummy=!1,D!==void 0&&(this.originalObject=D),V!=null&&(this.isDummy=V),T!=null&&(this.weight=T),O!=null?this.z=O:this.z=this.projectZ(this.x,this.y,this.weight)}m.prototype.projectZ=function(N,_,O){return N*N+_*_-O},m.prototype.setWeight=function(N){this.weight=N,this.z=this.projectZ(this.x,this.y,this.weight)},m.prototype.subtract=function(N){return new m(N.x-this.x,N.y-this.y,N.z-this.z)},m.prototype.crossproduct=function(N){return new m(this.y*N.z-this.z*N.y,this.z*N.x-this.x*N.z,this.x*N.y-this.y*N.x)},m.prototype.equals=function(N){return this.x===N.x&&this.y===N.y&&this.z===N.z};function p(N){var _=N.verts[0],O=N.verts[1],T=N.verts[2];this.a=_.y*(O.z-T.z)+O.y*(T.z-_.z)+T.y*(_.z-O.z),this.b=_.z*(O.x-T.x)+O.z*(T.x-_.x)+T.z*(_.x-O.x),this.c=_.x*(O.y-T.y)+O.x*(T.y-_.y)+T.x*(_.y-O.y),this.d=-1*(_.x*(O.y*T.z-T.y*O.z)+O.x*(T.y*_.z-_.y*T.z)+T.x*(_.y*O.z-O.y*_.z))}p.prototype.getNormZPlane=function(){return[-1*(this.a/this.c),-1*(this.b/this.c),-1*(this.d/this.c)]},p.prototype.getDualPointMappedToPlane=function(){var N=this.getNormZPlane(),_=new g(N[0]/2,N[1]/2);return _};function g(N,_){this.x=N,this.y=_}function d(N,_,O){this.x=N,this.y=_,this.z=O}d.prototype.negate=function(){this.x*=-1,this.y*=-1,this.z*=-1},d.prototype.normalize=function(){var N=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);N>0&&(this.x/=N,this.y/=N,this.z/=N)};function f(N,_,O){this.next=null,this.prev=null,this.twin=null,this.orig=N,this.dest=_,this.iFace=O}f.prototype.isHorizon=function(){return this.twin!==null&&!this.iFace.marked&&this.twin.iFace.marked},f.prototype.findHorizon=function(N){if(this.isHorizon()){if(N.length>0&&this===N[0])return;N.push(this),this.next.findHorizon(N)}else this.twin!==null&&this.twin.next.findHorizon(N)},f.prototype.isEqual=function(N,_){return this.orig.equals(N)&&this.dest.equals(_)||this.orig.equals(_)&&this.dest.equals(N)};function b(N){this.message=N,this.stack=new Error().stack}b.prototype.name="d3WeightedVoronoiError",b.prototype=new Error;function S(N,_,O,T){this.conflicts=new h(!0),this.verts=[N,_,O],this.marked=!1;var D=N.subtract(_).crossproduct(_.subtract(O));this.normal=new d(-D.x,-D.y,-D.z),this.normal.normalize(),this.createEdges(),this.dualPoint=null,T!=null&&this.orient(T)}S.prototype.getDualPoint=function(){if(this.dualPoint==null){var N=new p(this);this.dualPoint=N.getDualPointMappedToPlane()}return this.dualPoint},S.prototype.isVisibleFromBelow=function(){return this.normal.z<-14259414393190911e-25},S.prototype.createEdges=function(){this.edges=[],this.edges[0]=new f(this.verts[0],this.verts[1],this),this.edges[1]=new f(this.verts[1],this.verts[2],this),this.edges[2]=new f(this.verts[2],this.verts[0],this),this.edges[0].next=this.edges[1],this.edges[0].prev=this.edges[2],this.edges[1].next=this.edges[2],this.edges[1].prev=this.edges[0],this.edges[2].next=this.edges[0],this.edges[2].prev=this.edges[1]},S.prototype.orient=function(N){if(!(i(this.normal,N)<i(this.normal,this.verts[0]))){var _=this.verts[1];this.verts[1]=this.verts[2],this.verts[2]=_,this.normal.negate(),this.createEdges()}},S.prototype.getEdge=function(N,_){for(var O=0;O<3;O++)if(this.edges[O].isEqual(N,_))return this.edges[O];return null},S.prototype.link=function(N,_,O){if(N instanceof S){var T=N.getEdge(_,O);if(T===null)throw new b("when linking, twin is null");var D=this.getEdge(_,O);if(D===null)throw new b("when linking, twin is null");T.twin=D,D.twin=T}else{var T=N,D=this.getEdge(T.orig,T.dest);T.twin=D,D.twin=T}},S.prototype.conflict=function(N){return i(this.normal,N)>i(this.normal,this.verts[0])+o},S.prototype.getHorizon=function(){for(var N=0;N<3;N++)if(this.edges[N].twin!==null&&this.edges[N].twin.isHorizon())return this.edges[N];return null},S.prototype.removeConflict=function(){this.conflicts.removeAll()};function v(){this.points=[],this.facets=[],this.created=[],this.horizon=[],this.visible=[],this.current=0}v.prototype.init=function(N,_){this.points=[];for(var O=0;O<_.length;O++)this.points[O]=new m(_[O].x,_[O].y,_[O].z,null,_[O],!1);this.points=this.points.concat(N)},v.prototype.permutate=function(){for(var N=this.points.length,_=N-1;_>0;_--){var O=Math.floor(Math.random()*_),T=this.points[O];T.index=_;var D=this.points[_];D.index=O,this.points.splice(O,1,D),this.points.splice(_,1,T)}},v.prototype.prep=function(){if(this.points.length<=3)throw new b("Less than 4 points");for(var N=0;N<this.points.length;N++)this.points[N].index=N;var _,O,T,D,V,j,K,z;_=this.points[0],O=this.points[1],T=D=null;for(var N=2;N<this.points.length;N++)if(!(a(_,this.points[N])&&a(O,this.points[N]))){T=this.points[N],T.index=2,this.points[2].index=N,this.points.splice(N,1,this.points[2]),this.points.splice(2,1,T);break}if(T===null)throw new b("Not enough non-planar Points (v2 is null)");z=new S(_,O,T);for(var N=3;N<this.points.length;N++)if(!n(i(z.normal,z.verts[0])-i(z.normal,this.points[N]))){D=this.points[N],D.index=3,this.points[3].index=N,this.points.splice(N,1,this.points[3]),this.points.splice(3,1,D);break}if(D===null)throw new b("Not enough non-planar Points (v3 is null)");z.orient(D),V=new S(_,T,D,O),j=new S(_,O,D,T),K=new S(O,T,D,_),this.addFacet(z),this.addFacet(V),this.addFacet(j),this.addFacet(K),z.link(V,_,T),z.link(j,_,O),z.link(K,O,T),V.link(j,_,D),V.link(K,T,D),j.link(K,D,O),this.current=4;for(var X,N=this.current;N<this.points.length;N++)X=this.points[N],z.conflict(X)&&this.addConflict(z,X),V.conflict(X)&&this.addConflict(V,X),j.conflict(X)&&this.addConflict(j,X),K.conflict(X)&&this.addConflict(K,X)},v.prototype.addConflicts=function(N,_,O){var T=N.conflicts.getVertices(),D=_.conflicts.getVertices(),V=[],j,K,z,X;for(z=X=0;z<T.length||X<D.length;)z<T.length&&X<D.length?(j=T[z],K=D[X],j.index===K.index?(V.push(j),z++,X++):j.index>K.index?(V.push(j),z++):(V.push(K),X++)):z<T.length?V.push(T[z++]):V.push(D[X++]);for(var z=V.length-1;z>=0;z--)j=V[z],O.conflict(j)&&this.addConflict(O,j)},v.prototype.addConflict=function(N,_){var O=new c(N,_);N.conflicts.add(O),_.conflicts.add(O)},v.prototype.removeConflict=function(N){N.removeConflict();var _=N.index;if(N.index=-1,_===this.facets.length-1){this.facets.splice(this.facets.length-1,1);return}if(!(_>=this.facets.length||_<0)){var O=this.facets.splice(this.facets.length-1,1);O[0].index=_,this.facets.splice(_,1,O[0])}},v.prototype.addFacet=function(N){N.index=this.facets.length,this.facets.push(N)},v.prototype.compute=function(){for(this.prep();this.current<this.points.length;){var N=this.points[this.current];if(N.conflicts.isEmpty()){this.current++;continue}this.created=[],this.horizon=[],this.visible=[],N.conflicts.fill(this.visible);for(var _,O=0;O<this.visible.length;O++)if(_=this.visible[O].getHorizon(),_!==null){_.findHorizon(this.horizon);break}for(var T=null,D=null,V=0;V<this.horizon.length;V++){var j=this.horizon[V],K=new S(N,j.orig,j.dest,j.twin.next.dest);K.conflicts=new h(!0),this.addFacet(K),this.created.push(K),this.addConflicts(j.iFace,j.twin.iFace,K),K.link(j),T!==null&&K.link(T,N,j.orig),T=K,D===null&&(D=K)}if(D!==null&&T!==null&&T.link(D,N,this.horizon[0].orig),this.created.length!=0){for(var z=0;z<this.visible.length;z++)this.removeConflict(this.visible[z]);this.current++,this.created=[]}}return this.facets},v.prototype.clear=function(){this.points=[],this.facets=[],this.created=[],this.horizon=[],this.visible=[],this.current=0};function A(N,_){for(var O,T=B(_),D=-1,V=N.length-B(N),j,K,z=N[V-1],X,ct,J,bt;++D<V;){for(O=_.slice(),_.length=0,X=N[D],ct=O[(K=O.length-T)-1],j=-1;++j<K;)J=O[j],M(J,z,X)?(M(ct,z,X)||(bt=C(ct,J,z,X),isFinite(bt[0])&&_.push(bt)),_.push(J)):M(ct,z,X)&&(bt=C(ct,J,z,X),isFinite(bt[0])&&_.push(bt)),ct=J;T&&_.push(_[0]),z=X}return _}function M(N,_,O){return(O[0]-_[0])*(N[1]-_[1])<(O[1]-_[1])*(N[0]-_[0])}function C(N,_,O,T){var D=N[0],V=O[0],j=_[0]-D,K=T[0]-V,z=N[1],X=O[1],ct=_[1]-z,J=T[1]-X,bt=(K*(z-X)-J*(D-V))/(J*j-K*ct);return[D+bt*j,z+bt*ct]}function B(N){var _=N[0],O=N[N.length-1];return!(_[0]-O[0]||_[1]-O[1])}function F(N){var _=[],O=N,T=N.dest,D=T.originalObject,V=[];do{O=O.twin.prev;var j=O.orig.originalObject;j.isDummy||V.push(j);var K=O.iFace;K.isVisibleFromBelow()&&_.push(K)}while(O!==N);return D.neighbours=V,_}function L(N,_,O){var T=new v;T.clear(),T.init(_,N);for(var D=T.compute(N),V=[],j=[],K=D.length,z=0;z<K;z++){var X=D[z];if(X.isVisibleFromBelow())for(var ct=0;ct<3;ct++){var J=X.edges[ct],bt=J.dest,Nt=bt.originalObject;if(!j[bt.index]){if(j[bt.index]=!0,Nt.isDummy)continue;for(var zt=F(J),tt=[],et=null,gt=null,at=1,nt=1,Ct=0;Ct<zt.length;Ct++){var st=zt[Ct].getDualPoint(),Jt=st.x,ne=st.y;et!==null&&(at=et-Jt,nt=gt-ne,at<0&&(at=-at),nt<0&&(nt=-nt)),(at>o||nt>o)&&(tt.push([Jt,ne]),et=Jt,gt=ne)}if(Nt.nonClippedPolygon=tt.reverse(),!Nt.isDummy&&e.polygonLength(Nt.nonClippedPolygon)>0){var qt=A(O,Nt.nonClippedPolygon);Nt.polygon=qt,qt.site=Nt,qt.length>0&&V.push(qt)}}}}return V}function I(){var N=function(z){return z.x},_=function(z){return z.y},O=function(z){return z.weight},T=[[0,0],[0,1],[1,1],[1,0]],D=[[0,0],[1,1]],V=[1,1];function j(z){var X;return X=z.map(function(ct){return new m(N(ct),_(ct),null,O(ct),ct,!1)}),L(X,K(),T)}j.x=function(z){return arguments.length?(N=z,j):N},j.y=function(z){return arguments.length?(_=z,j):_},j.weight=function(z){return arguments.length?(O=z,j):O},j.clip=function(z){var X,ct,J;return arguments.length?(ct=t.extent(z.map(function(bt){return bt[0]})),J=t.extent(z.map(function(bt){return bt[1]})),X=s(z),X===void 0?T=e.polygonHull(z):X===1?T=z.reverse():T=z,D=[[ct[0],J[0]],[ct[1],J[1]]],V=[ct[1]-ct[0],J[1]-J[0]],j):T},j.extent=function(z){return arguments.length?(T=[z[0],[z[0][0],z[1][1]],z[1],[z[1][0],z[0][1]]],D=z,V=[z[1][0]-z[0][0],z[1][1]-z[0][1]],j):D},j.size=function(z){return arguments.length?(T=[[0,0],[0,z[1]],[z[0],z[1]],[z[0],0]],D=[[0,0],z],V=z,j):V};function K(){var z,X,ct,J,bt,Nt,zt,tt,et,gt,at=[],nt=[];z=D[0][0],X=D[1][0],ct=D[0][1],J=D[1][1],bt=X-z,Nt=J-ct,zt=z-bt,tt=X+bt,et=ct-Nt,gt=J+Nt,at[0]=[zt,et],at[1]=[zt,gt],at[2]=[tt,gt],at[3]=[tt,et];for(var Ct=0;Ct<4;Ct++)nt.push(new m(at[Ct][0],at[Ct][1],null,o,new m(at[Ct][0],at[Ct][1],null,o,null,!0),!0));return nt}return j}r.weightedVoronoi=I,r.d3WeightedVoronoiError=b,Object.defineProperty(r,"__esModule",{value:!0})})});var QH=ar((g7,JH)=>{(function(r,t){typeof g7=="object"&&typeof JH<"u"?t(g7,FH(),VH(),zH(),$H()):typeof define=="function"&&define.amd?define(["exports","d3-polygon","d3-timer","d3-dispatch","d3-weighted-voronoi"],t):t(r.d3=r.d3||{},r.d3,r.d3,r.d3,r.d3)})(g7,function(r,t,e,o,n){"use strict";function i(){this.growthChangesLength=a,this.totalAvailableArea=NaN,this.lastAreaError=NaN,this.lastGrowth=NaN,this.growthChanges=[],this.growthChangeWeights=l(this.growthChangesLength),this.growthChangeWeightsSum=u(this.growthChangeWeights)}var a=10;function s(d,f){return d>=f?1:-1}function l(d){for(var f=3,b=1,S=1,v=f,A=[],M=0;M<d;M++)A.push(v),v-=b,v<S&&(v=S);return A}function u(d){for(var f=0,b=0;b<d.length;b++)f+=d[b];return f}i.prototype.reset=function(){return this.lastAreaError=NaN,this.lastGrowth=NaN,this.growthChanges=[],this.growthChangesLength=a,this.growthChangeWeights=l(this.growthChangesLength),this.growthChangeWeightsSum=u(this.growthChangeWeights),this.totalAvailableArea=NaN,this},i.prototype.clear=function(){return this.lastAreaError=NaN,this.lastGrowth=NaN,this.growthChanges=[],this},i.prototype.length=function(d){return arguments.length?(parseInt(d)>0?(this.growthChangesLength=Math.floor(parseInt(d)),this.growthChangeWeights=l(this.growthChangesLength),this.growthChangeWeightsSum=u(this.growthChangeWeights)):console.warn("FlickeringMitigation.length() accepts only positive integers; unable to handle "+d),this):this.growthChangesLength},i.prototype.totalArea=function(d){return arguments.length?(parseFloat(d)>0?this.totalAvailableArea=parseFloat(d):console.warn("FlickeringMitigation.totalArea() accepts only positive numbers; unable to handle "+d),this):this.totalAvailableArea},i.prototype.add=function(d){var f,b;return f=this.lastAreaError,this.lastAreaError=d,isNaN(f)||(b=this.lastGrowth,this.lastGrowth=s(this.lastAreaError,f)),isNaN(b)||this.growthChanges.unshift(this.lastGrowth!=b),this.growthChanges.length>this.growthChangesLength&&this.growthChanges.pop(),this},i.prototype.ratio=function(){var d=0,f;if(this.growthChanges.length<this.growthChangesLength||this.lastAreaError>this.totalAvailableArea/10)return 0;for(var b=0;b<this.growthChangesLength;b++)this.growthChanges[b]&&(d+=this.growthChangeWeights[b]);return f=d/this.growthChangeWeightsSum,f};function c(){var d,f,b,S,v,A,M,C;function B(L,I,N,_){var O=!1,T,D;for(d!==_.clip()&&(d=_.clip(),f=_.extent(),O=!0),O&&F(),T=b+M*_.prng()(),D=v+C*_.prng()();!t.polygonContains(d,[T,D]);)T=b+M*_.prng()(),D=v+C*_.prng()();return[T,D]}function F(){b=f[0][0],S=f[1][0],v=f[0][1],A=f[1][1],M=S-b,C=A-v}return B}function h(){var d=0,f,b,S,v,A,M;function C(I,N,_,O){var T=!1;return f!==O.clip()&&(f=O.clip(),T|=!0),b!==_&&(b=_,T|=!0),T&&B(),[v[0]+Math.cos(d+N*M)*A+(O.prng()()-.5)*.001,v[1]+Math.sin(d+N*M)*A+(O.prng()()-.5)*.001]}C.startAngle=function(I){return arguments.length?(d=I,C):d};function B(){v=t.polygonCentroid(f),A=F(v,f)/2,S=b.length,M=2*Math.PI/S}function F(I,N){for(var _=1/0,O=0,T=N[N.length-1],D=N[O],V;O<N.length;)V=L(I,T,D),V<_&&(_=V),O++,T=D,D=N[O];return _}function L(I,N,_){var O=I[0],T=I[1],D=N[0],V=N[1],j=_[0],K=_[1],z=O-D,X=T-V,ct=j-D,J=K-V,bt=z*ct+X*J,Nt=ct*ct+J*J,zt=-1;Nt!=0&&(zt=bt/Nt);var tt,et;zt<0?(tt=D,et=V):zt>1?(tt=j,et=K):(tt=D+zt*ct,et=V+zt*J);var gt=O-tt,at=T-et;return Math.sqrt(gt*gt+at*at)}return C}function m(){var d,f,b,S,v;function A(C,B,F,L){var I=!1;return d!==L.clip()&&(d=L.clip(),I|=!0),f!==F&&(f=F,I|=!0),I&&M(),v}function M(){b=f.length,S=t.polygonArea(d),v=S/b/2}return A}function p(d){this.message=d,this.stack=new Error().stack}p.prototype.name="d3VoronoiMapError",p.prototype=new Error;function g(d){var f=.01,b=50,S=.01,v=Math.random,A=c(),M=m(),C=c(),B=1e-10,F=function(re){return re.weight},L=f,I=b,N=S,_=v,O=A,T=M,D=n.weightedVoronoi(),V=new i,j=!0,K,z,X,ct,J,bt,Nt,zt,tt,et=e.timer(ne),gt=o.dispatch("tick","end");let at=1,nt=1e3;var Ct;function st(re){return Math.pow(re,2)}function Jt(re,Rt){return st(Rt.x-re.x)+st(Rt.y-re.y)}tt={tick:qt,restart:function(){return et.restart(ne),tt},stop:function(){return et.stop(),tt},weight:function(re){return arguments.length?(F=re,j=!0,tt):F},convergenceRatio:function(re){return arguments.length?(L=re,j=!0,tt):L},maxIterationCount:function(re){return arguments.length?(I=re,tt):I},minWeightRatio:function(re){return arguments.length?(N=re,j=!0,tt):N},clip:function(re){return arguments.length?(D.clip(re),j=!0,tt):D.clip()},extent:function(re){return arguments.length?(D.extent(re),j=!0,tt):D.extent()},size:function(re){return arguments.length?(D.size(re),j=!0,tt):D.size()},prng:function(re){return arguments.length?(_=re,j=!0,tt):_},initialPosition:function(re){return arguments.length?(O=re,j=!0,tt):O},initialWeight:function(re){return arguments.length?(T=re,j=!0,tt):T},state:function(){return j&&se(),{ended:zt,iterationCount:ct,convergenceRatio:bt/z,polygons:J}},on:function(re,Rt){return arguments.length===1?gt.on(re):(gt.on(re,Rt),tt)}};function ne(){qt(),gt.call("tick",tt),zt&&(et.stop(),gt.call("end",tt))}function qt(){zt||(j&&se(),J=_t(J,V.ratio()),ct++,bt=Rr(J),V.add(bt),Nt=bt<X,zt=Nt||ct>=I)}function se(){Xe(),K=d.length,z=Math.abs(t.polygonArea(D.clip())),X=L*z,V.clear().totalArea(z),ct=0,Nt=!1,J=ot(d,tt),zt=!1,j=!1}function ot(re,Rt){var ee=re.reduce(function($e,mr){return Math.max($e,F(mr))},-1/0),we=ee*N,We,qe;return We=re.map(function($e,mr,pr){return{index:mr,weight:Math.max(F($e),we),initialPosition:O($e,mr,pr,Rt),initialWeight:T($e,mr,pr,Rt),originalData:$e}}),qe=Ot(We,Rt),Ct(qe),D(qe)}function Ot(re,Rt){var ee=re.reduce(function(We,qe){return We+=qe.weight},0),we;return re.map(function(We,qe,$e){return we=We.initialPosition,t.polygonContains(D.clip(),we)||(we=A(We,qe,$e,Rt)),{index:We.index,targetedArea:z*We.weight/ee,data:We,x:we[0],y:we[1],weight:We.initialWeight}})}function _t(re,Rt){var ee;if(Dt(re,Rt),ee=re.map(function(we){return we.site.originalObject}),re=D(ee),re.length<K)throw new p("at least 1 site has no area, which is not supposed to arise");if(Tt(re,Rt),ee=re.map(function(we){return we.site.originalObject}),re=D(ee),re.length<K)throw new p("at least 1 site has no area, which is not supposed to arise");return re}function Dt(re,Rt){var ee=[],we=.5,We,qe,$e,mr,pr,jr,co;We=we*Rt,qe=1-We;for(var ma=0;ma<K;ma++)$e=re[ma],mr=$e.site.originalObject,pr=t.polygonCentroid($e),jr=pr[0]-mr.x,co=pr[1]-mr.y,jr*=qe,co*=qe,mr.x+=jr,mr.y+=co,ee.push(mr);Ct(ee)}function Tt(re,Rt){var ee=[],we=.1,We,qe,$e,mr,pr,jr;We=we*Rt;for(var co=0;co<K;co++)qe=re[co],$e=qe.site.originalObject,mr=t.polygonArea(qe),pr=$e.targetedArea/mr,pr=Math.max(pr,1-we+We),pr=Math.min(pr,1+we-We),jr=$e.weight*pr,jr=Math.max(jr,B),$e.weight=jr,ee.push($e);Ct(ee)}function Ft(re){var Rt=0,ee,we,We,qe,$e,mr,pr;do{if(Rt>nt)throw new p("handleOverweighted0 is looping too much");ee=!1;for(var jr=0;jr<K;jr++){we=re[jr];for(var co=jr+1;co<K;co++)if(We=re[co],we.weight>We.weight?(qe=we,$e=We):(qe=We,$e=we),mr=Jt(we,We),mr<qe.weight-$e.weight){pr=mr+$e.weight/2,pr=Math.max(pr,B),qe.weight=pr,ee=!0,Rt++;break}if(ee)break}}while(ee)}function fe(re){var Rt=0,ee,we,We,qe,$e,mr,pr;do{if(Rt>nt)throw new p("handleOverweighted1 is looping too much");ee=!1;for(var jr=0;jr<K;jr++){we=re[jr];for(var co=jr+1;co<K;co++)if(We=re[co],we.weight>We.weight?(qe=we,$e=We):(qe=We,$e=we),mr=Jt(we,We),mr<qe.weight-$e.weight){pr=qe.weight-$e.weight-mr,$e.weight+=pr+B,ee=!0,Rt++;break}if(ee)break}}while(ee)}function Rr(re){for(var Rt=0,ee,we,We,qe=0;qe<K;qe++)ee=re[qe],we=ee.site.originalObject,We=t.polygonArea(ee),Rt+=Math.abs(we.targetedArea-We);return Rt}function Xe(){switch(at){case 0:Ct=Ft;break;case 1:Ct=fe;break;default:console.error("unknown 'handleOverweighted' variant; using variant #1"),Ct=Ft}}return tt}r.voronoiMapSimulation=g,r.voronoiMapInitialPositionRandom=c,r.voronoiMapInitialPositionPie=h,r.d3VoronoiMapError=p,Object.defineProperty(r,"__esModule",{value:!0})})});var tz=ar((b7,ZH)=>{(function(r,t){typeof b7=="object"&&typeof ZH<"u"?t(b7,QH()):typeof define=="function"&&define.amd?define(["exports","d3-voronoi-map"],t):t(r.d3=r.d3||{},r.d3)})(b7,function(r,t){"use strict";function e(){var o=.01,n=50,i=.01,a=Math.random,s=[[0,0],[0,1],[1,1],[1,0]],l=[[0,0],[1,1]],u=[1,1],c=o,h=n,m=i,p=a,g=[{weight:1},{weight:1}],d=t.voronoiMapSimulation(g).stop();function f(S){b(s,S)}f.convergenceRatio=function(S){return arguments.length?(c=S,f):c},f.maxIterationCount=function(S){return arguments.length?(h=S,f):h},f.minWeightRatio=function(S){return arguments.length?(m=S,f):m},f.clip=function(S){return arguments.length?(d.clip(S),s=d.clip(),l=d.extent(),u=d.size(),f):s},f.extent=function(S){return arguments.length?(d.extent(S),s=d.clip(),l=d.extent(),u=d.size(),f):l},f.size=function(S){return arguments.length?(d.size(S),s=d.clip(),l=d.extent(),u=d.size(),f):u},f.prng=function(S){return arguments.length?(p=S,f):p};function b(S,v){var A;if(v.polygon=S,v.height!=0){A=t.voronoiMapSimulation(v.children).clip(S).weight(function(C){return C.value}).convergenceRatio(c).maxIterationCount(h).minWeightRatio(m).prng(p).stop();for(var M=A.state();!M.ended;)A.tick(),M=A.state();M.polygons.forEach(function(C){b(C,C.site.originalObject.data.originalData)})}}return f}r.voronoiTreemap=e,Object.defineProperty(r,"__esModule",{value:!0})})});var Gat,ez,Vat,rz,Hat,zat,oz,jat,nz,iz=VP(()=>{/*! @bicharts/chart-host — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; Natural Earth and US Census/TIGER (public domain). Full text: NOTICE in this package. */Gat=Object.create,ez=Object.defineProperty,Vat=Object.getOwnPropertyDescriptor,rz=Object.getOwnPropertyNames,Hat=Object.getPrototypeOf,zat=Object.prototype.hasOwnProperty,oz=(r,t)=>function(){try{return t||(0,r[rz(r)[0]])((t={exports:{}}).exports,t),t.exports}catch(o){throw t=0,o}},jat=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of rz(t))!zat.call(r,n)&&n!==e&&ez(r,n,{get:()=>t[n],enumerable:!(o=Vat(t,n))||o.enumerable});return r},nz=(r,t,e)=>(e=r!=null?Gat(Hat(r)):{},jat(t||!r||!r.__esModule?ez(e,"default",{value:r,enumerable:!0}):e,r))});function W7(r){return!!r&&(!!r[yP]||!!r[C7])}function tM(r,t){return r&&t}var N7,oo,Ra,wc,mP,Pc,Lr,x7,E7,Yk,qk,$k,pP,dP,Jk,C7,yP,Qk,k7,US,M7,T7,Plt,Un,Mf,el,BS,Tf,id,fP,Zk,OS,L7,I7,R7,_7,U7,B7,O7,D7,eM,rM,oM,F7,Oz,G7,nM,V7,H7,z7,tm=VP(()=>{/*! @bicharts/chart-host — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; Natural Earth and US Census/TIGER (public domain). Full text: NOTICE in this package. */N7="1.24.0",oo="d3-mark",Ra="d3-legend-mark",wc="d3-axis-filter",mP="d3-lift-selected",Pc="lch-control",Lr="data-row-idx",x7="data-bic-note-style",E7="data-lch-sel-rule",Yk="clicked-marks",qk="data-mark-key",$k="data-lch-no-row-marks",pP="data-lch-snapshot",dP="llm-xfilter-refresh",Jk="__lchHostSelection",C7="__llmAnimStop",yP="__llmXfClear",Qk="__llmInitialXfMark",k7="__lchUiState",US="__lchScroll",M7="lch-table-body",T7="__lchClickedMarks",Plt=Object.freeze(["camera","llmZoom"]),Un="bic-chart-host",Mf="lch-has-selection",el="lch-mark-selected",BS="lch-marks-inert",Tf="lch-tick-active",id="--lch-dim-opacity",fP=.25,Zk=.01,OS=25;L7=1e3,I7=250,R7=5e3,_7=3,U7=0,B7=60,O7=3,D7=500,eM=95,rM=50,oM=100,F7="both",Oz=12e4,G7="horizontal",nM="mark",V7="fit",H7="auto",z7=2e3});function NM(r){let t=r/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xM(r){return r>CM?Math.cbrt(r):(Q7*r+16)/116}function kM(r,t,e){let o=NM(r),n=NM(t),i=NM(e),a=.4124564*o+.3575761*n+.1804375*i,s=.2126729*o+.7151522*n+.072175*i,l=.0193339*o+.119192*n+.9503041*i,u=xM(a/Mj),c=xM(s/Tj),h=xM(l/Wj);return{L:116*c-16,a:500*(u-c),b:200*(c-h)}}function Kl(r){let t=/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(r.trim());if(!t)return null;let e=t[1].length===3?t[1][0]+t[1][0]+t[1][1]+t[1][1]+t[1][2]+t[1][2]:t[1];return kM(parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16))}function ss(r,t){let e=Math.hypot(r.a,r.b),o=Math.hypot(t.a,t.b),n=(e+o)/2,i=Math.pow(n,7),a=.5*(1-Math.sqrt(i/(i+Math.pow(25,7)))),s=(1+a)*r.a,l=(1+a)*t.a,u=Math.hypot(s,r.b),c=Math.hypot(l,t.b),h=u<J7||c<J7,m=u<J7?0:(Math.atan2(r.b,s)*Cj+360)%360,p=c<J7?0:(Math.atan2(t.b,l)*Cj+360)%360,g=t.L-r.L,d=c-u,f;h?f=0:Math.abs(p-m)<=180?f=p-m:p-m>180?f=p-m-360:f=p-m+360;let b=2*Math.sqrt(u*c)*Math.sin(f/2*FS),S=(r.L+t.L)/2,v=(u+c)/2,A;h?A=m+p:Math.abs(m-p)<=180?A=(m+p)/2:m+p<360?A=(m+p+360)/2:A=(m+p-360)/2;let M=1-.17*Math.cos((A-30)*FS)+.24*Math.cos(2*A*FS)+.32*Math.cos((3*A+6)*FS)-.2*Math.cos((4*A-63)*FS),C=30*Math.exp(-Math.pow((A-275)/25,2)),B=Math.pow(v,7),L=-(2*Math.sqrt(B/(B+Math.pow(25,7))))*Math.sin(2*C*FS),I=Math.pow(S-50,2),N=1+.015*I/Math.sqrt(20+I),_=1+.045*v,O=1+.015*v*M,T=g/N,D=d/_,V=b/O;return Math.sqrt(T*T+D*D+V*V+L*D*V)}function GS(r){let t=u=>{let c=u*u*u;return c>CM?c:(116*u-16)/Q7},e=(r.L+16)/116,o=e+r.a/500,n=e-r.b/200,i=Mj*t(o),a=Tj*(r.L>Q7*CM?e*e*e:r.L/Q7),s=Wj*t(n);return"#"+[3.2404542*i-1.5371385*a-.4985314*s,-.969266*i+1.8760108*a+.041556*s,.0556434*i-.2040259*a+1.0572252*s].map(u=>{let c=Math.max(0,Math.min(1,u)),h=c<=.0031308?12.92*c:1.055*Math.pow(c,1/2.4)-.055;return Math.round(h*255).toString(16).padStart(2,"0")}).join("")}function Fut(r,t){try{let e=t?.defaultView;return e?.getComputedStyle?e.getComputedStyle(r):null}catch{return null}}function Gut(r,t){let e=r.getAttribute?.("fill");if(e!=null&&String(e).trim()!=="")return String(e).trim();let o=t?.fill;return o==null?"":String(o).trim()}function Vut(r){let t=r.trim().toLowerCase();if(!t||t==="none"||t==="transparent")return null;let e=/^#([0-9a-f]{3}|[0-9a-f]{6})$/.exec(t);if(e){let n=e[1],i=n.length===3?n[0]+n[0]+n[1]+n[1]+n[2]+n[2]:n;return[parseInt(i.slice(0,2),16),parseInt(i.slice(2,4),16),parseInt(i.slice(4,6),16)]}let o=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)\s*(?:[,/]\s*([\d.]+)\s*)?\)$/.exec(t);return!o||o[4]!==void 0&&parseFloat(o[4])===0?null:[Math.round(parseFloat(o[1])),Math.round(parseFloat(o[2])),Math.round(parseFloat(o[3]))]}function Hut(r){return[Math.round(r[0]/EM),Math.round(r[1]/EM),Math.round(r[2]/EM)].join(",")}function zut(r){return"#"+r.map(t=>Math.max(0,Math.min(255,t)).toString(16).padStart(2,"0")).join("")}function Lj(r,t){if(!r||typeof r.querySelectorAll!="function")return Wf;try{let e=Array.from(r.querySelectorAll(`.${oo}, [${Lr}]`));if(e.length===0||e.length>Out)return Wf;let o=t??r.ownerDocument,n=[];for(let M of e){let C=Vut(Gut(M,Fut(M,o)));C&&n.push({rgb:C,tag:String(M.tagName||"").toLowerCase()})}let i=new Map;for(let M of n){let C=i.get(M.tag)??{fills:new Set,n:0};C.fills.add(M.rgb.join(",")),C.n++,i.set(M.tag,C)}let a=new Set([...i].filter(([,M])=>M.fills.size===1&&M.n>=kj).map(([M])=>M)),l=new Set([...i].filter(([M])=>!a.has(M)).flatMap(([,M])=>[...M.fills])).size>1?n.filter(M=>!a.has(M.tag)):n,u=new Set,c=new Map,h=0;for(let{rgb:M}of l){h++,u.add(M.join(","));let C=Hut(M),B=c.get(C);B?B.n++:c.set(C,{rgb:M,n:1})}if(h<kj||u.size<Z7)return Wf;let m=[...c.values()].sort((M,C)=>C.n-M.n).slice(0,Dut),p=m.map(M=>Kl(zut(M.rgb))).filter(M=>M!==null);if(p.length<Z7)return Wf;let g=p.map(()=>new Array(p.length).fill(0)),d=0,f=0,b=1;for(let M=0;M<p.length;M++)for(let C=M+1;C<p.length;C++){let B=ss(p[M],p[C]);g[M][C]=B,g[C][M]=B,B>d&&(d=B,f=M,b=C)}if(d<=0)return Wf;let S=0,v=0;for(let M=0;M<p.length;M++)M===f||M===b||(S+=(g[f][M]+g[M][b])/d-1,v++);if(v<2||S/v>TM)return Wf;let A=0;for(let M=0;M<p.length;M++){let C=0;for(let B=0;B<p.length;B++)(M===B||g[M][B]<=MM)&&(C+=m[B].n);C>A&&(A=C)}return{marks:h,distinctFills:u.size,crowdShare:Math.round(A/h*100),spanDeltaE:Math.round(d)}}catch{return Wf}}var Mj,Tj,Wj,CM,Q7,FS,Cj,J7,MM,Z7,TM,kj,Out,Dut,EM,Wf,WM=VP(()=>{tm();/*! @bicharts/chart-host — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; Natural Earth and US Census/TIGER (public domain). Full text: NOTICE in this package. */Mj=.95047,Tj=1,Wj=1.08883,CM=216/24389,Q7=24389/27;FS=Math.PI/180,Cj=180/Math.PI,J7=1e-4;MM=5,Z7=4,TM=.15,kj=24,Out=5e3,Dut=48,EM=32,Wf={marks:0,distinctFills:0,crowdShare:0,spanDeltaE:0}});var Dj={};GT(Dj,{MAX_CATEGORY_SLOTS:()=>Uj,MAX_LISTED_PAIRS:()=>Oj,RAMP_DECLINE_MIN_SLOTS:()=>Bj,censusCategoryColours:()=>oct});function Lf(r,t,e=0,o=""){return{source:o,declined:r,slots:e,closestPair:[],closestDeltaE:null,closestDeltaEPainted:null,closestDeltaEDimmed:null,dimOpacity:t,rampLike:!1,legendMatchesMarks:null,floor:OS,belowFloor:null,pairsBelowFloorCount:0,pairsBelowFloor:[],closestPairPainted:[],closestDeltaEDeutan:null,closestDeltaEProtan:null}}function Xut(r,t){try{let e=t?.defaultView;return e?.getComputedStyle?e.getComputedStyle(r):null}catch{return null}}function IM(r){if(r==null)return null;let t=String(r).trim().toLowerCase();if(!t||t==="none"||t==="transparent"||t.startsWith("url("))return null;let e=/^#([0-9a-f]{3}|[0-9a-f]{6})$/.exec(t);if(e){let i=e[1].length===3?e[1].replace(/./g,a=>a+a):e[1];return{rgb:[parseInt(i.slice(0,2),16),parseInt(i.slice(2,4),16),parseInt(i.slice(4,6),16)],alpha:1}}let o=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)\s*(?:[,/]\s*([\d.]+%?)\s*)?\)$/.exec(t);if(!o)return null;let n=1;return o[4]!==void 0&&(n=o[4].endsWith("%")?parseFloat(o[4])/100:parseFloat(o[4])),n>0?{rgb:[Math.round(+o[1]),Math.round(+o[2]),Math.round(+o[3])],alpha:Math.min(1,n)}:null}function e8(r){if(r==null||String(r).trim()==="")return 1;let t=parseFloat(String(r));return Number.isFinite(t)?Math.max(0,Math.min(1,t)):1}function Kut(r,t){let e=1;for(let o=r;o&&o!==t&&typeof o.getAttribute=="function";o=o.parentNode)e*=e8(o.getAttribute("opacity")),e*=e8(o.style?.opacity);return e}function Ij(r,t){let e=Xut(r,t),o=IM(t8(r.getAttribute?.("fill"),r.style?.fill,e?.fill));if(o)return{rgb:o.rgb,alpha:o.alpha*e8(t8(r.getAttribute?.("fill-opacity"),r.style?.fillOpacity))};let n=IM(t8(r.getAttribute?.("stroke"),r.style?.stroke,e?.stroke));return n?{rgb:n.rgb,alpha:n.alpha*e8(t8(r.getAttribute?.("stroke-opacity"),r.style?.strokeOpacity))}:null}function t8(...r){for(let t of r)if(t!=null&&String(t).trim()!=="")return String(t);return null}function Yut(r,t,e){let o=Ij(r,t),n=r;if(!o&&typeof r.querySelectorAll=="function"){for(let i of Array.from(r.querySelectorAll("*")))if(o=Ij(i,t),o){n=i;break}}return o?{rgb:o.rgb,alpha:o.alpha*Kut(n,e)}:null}function LM(r,t,e){let o=Math.max(0,Math.min(1,t));return[r[0]*o+e[0]*(1-o),r[1]*o+e[1]*(1-o),r[2]*o+e[2]*(1-o)].map(Math.round)}function Rj(r){let t=new Map;for(let e of r){let o=e.rgb.join(","),n=t.get(o)??{rgb:e.rgb,alphas:new Map},i=Math.round(e.alpha*100)/100;n.alphas.set(i,(n.alphas.get(i)??0)+1),t.set(o,n)}return[...t.values()].map(e=>({rgb:e.rgb,alpha:[...e.alphas].sort((o,n)=>n[1]-o[1]||n[0]-o[0])[0][0]}))}function _j(r,t){let e=r.map(Jut),o=t.map(n=>Qut(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]));return kM(o[0],o[1],o[2])}function Zut(r,t){let e=[];for(let o=0;o<r.length;o++)for(let n=o+1;n<r.length;n++){let i=ss(r[o],r[n]);i<t&&e.push({i:o,j:n,d:i})}return e.sort((o,n)=>o.d-n.d)}function PP(r){let t={i:0,j:1,d:1/0};for(let e=0;e<r.length;e++)for(let o=e+1;o<r.length;o++){let n=ss(r[e],r[o]);n<t.d&&(t={i:e,j:o,d:n})}return t}function tct(r){if(r.length<Z7)return!1;let t=0,e=0,o=1;for(let a=0;a<r.length;a++)for(let s=a+1;s<r.length;s++){let l=ss(r[a],r[s]);l>t&&(t=l,e=a,o=s)}if(t<=0)return!1;let n=0,i=0;for(let a=0;a<r.length;a++)a===e||a===o||(n+=(ss(r[e],r[a])+ss(r[a],r[o]))/t-1,i++);return i>=2&&n/i<=TM}function rct(r){let t=-1,e=0;for(let a=0;a<r.length;a++)for(let s=a+1;s<r.length;s++){let l=ss(r[a],r[s]);l>t&&(t=l,e=a)}let o=r.map(a=>({L:a.L,d:ss(r[e],a)})).sort((a,s)=>a.d-s.d),n=0,i=0;for(let a=1;a<o.length;a++){let s=o[a].L-o[a-1].L;if(Math.abs(s)<ect)continue;let l=Math.sign(s);i!==0&&l!==i&&n++,i=l}return n<=1}function oct(r,t,e={}){let o=typeof e.dimOpacity=="number"&&e.dimOpacity>=0&&e.dimOpacity<=1?e.dimOpacity:fP;if(!r||typeof r.querySelectorAll!="function")return Lf("none",o);try{let n=t??r.ownerDocument,i=Array.from(r.querySelectorAll(`.${Ra}`)),a=Array.from(r.querySelectorAll(`.${oo}, [${Lr}]`)).filter(N=>!N.classList?.contains(Ra));if(i.length+a.length>jut)return Lf("too-many",o);let s=N=>N.map(_=>Yut(_,n,r)).filter(_=>_!==null),l=Rj(s(i)),u=Rj(s(a)),c=l.length>=2,h=c?l:u,m=c?"legend":u.length?"marks":"";if(h.length<2)return Lf("none",o,h.length,m);if(h.length>Uj)return Lf("too-many",o,h.length,m);let p=h.map(N=>Kl(ld(N.rgb))).filter(N=>N!==null);if(p.length!==h.length)return Lf("none",o,h.length,m);let g=tct(p);if(g&&h.length>=Bj&&rct(p))return{...Lf("ramp",o,h.length,m),rampLike:g};let d=IM(e.pageBg),f=d?LM(d.rgb,d.alpha,[255,255,255]):[255,255,255],b=N=>h.map(_=>Kl(ld(LM(_.rgb,N(_),f)))),S=PP(p),v=b(N=>N.alpha),A=PP(v),M=PP(b(N=>N.alpha*o)),C=Zut(v,OS),B=h.map(N=>LM(N.rgb,N.alpha,f)),F=PP(B.map(N=>_j(N,qut))),L=PP(B.map(N=>_j(N,$ut))),I=null;if(c&&u.length>0){let N=new Set(u.map(_=>_.rgb.join(",")));I=l.every(_=>N.has(_.rgb.join(",")))}return{source:m,declined:"",slots:h.length,closestPair:[ld(h[S.i].rgb),ld(h[S.j].rgb)],closestDeltaE:VS(S.d),closestDeltaEPainted:VS(A.d),closestDeltaEDimmed:VS(M.d),dimOpacity:o,rampLike:g,legendMatchesMarks:I,floor:OS,belowFloor:A.d<OS,pairsBelowFloorCount:C.length,pairsBelowFloor:C.slice(0,Oj).map(N=>({colours:[ld(h[N.i].rgb),ld(h[N.j].rgb)],deltaE:VS(N.d)})),closestPairPainted:[ld(h[A.i].rgb),ld(h[A.j].rgb)],closestDeltaEDeutan:VS(F.d),closestDeltaEProtan:VS(L.d)}}catch{return Lf("none",o)}}var Uj,Bj,jut,Oj,ld,qut,$ut,Jut,Qut,ect,VS,Fj=VP(()=>{WM();tm();/*! @bicharts/chart-host — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; Natural Earth and US Census/TIGER (public domain). Full text: NOTICE in this package. */Uj=24,Bj=6,jut=5e3,Oj=10;ld=r=>"#"+r.map(t=>Math.max(0,Math.min(255,t)).toString(16).padStart(2,"0")).join("");qut=[[.367322,.860646,-.227968],[.280085,.672501,.047413],[-.01182,.04294,.968881]],$ut=[[.152286,1.052583,-.204868],[.114503,.786281,.099216],[-.003882,-.048116,1.051998]],Jut=r=>{let t=r/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Qut=r=>{let t=Math.max(0,Math.min(1,r));return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)};ect=1.5;VS=r=>Math.round(r*10)/10});import{isMainThread as Kht,parentPort as eY,workerData as rY}from"node:worker_threads";var sl=Symbol("abort"),Io=Symbol("activeElement"),_e=Symbol("asyncTaskManager"),ll=Symbol("bodyBuffer"),Fe=Symbol("buffer"),gs=Symbol("cachedResponse"),ru=Symbol("callbacks"),hm=Symbol("checked"),Df=Symbol("childNodes"),oi=Symbol("children"),Ff=Symbol("classList"),_i=Symbol("connectedToNode"),ou=Symbol("disconnectedFromNode"),Co=Symbol("connectedToDocument"),zo=Symbol("disconnectedFromDocument"),gd=Symbol("contentLength"),Po=Symbol("contentType"),Pi=Symbol("cssText"),Da=Symbol("currentScript"),Fa=Symbol("currentTarget"),sr=Symbol("data"),ni=Symbol("defaultView"),Ge=Symbol("destroy"),mm=Symbol("dirtyness"),Xt=Symbol("end"),un=Symbol("entries");var Ga=Symbol("evaluateScript"),Cn=Symbol("exceptionObserver"),Sr=Symbol("formNode"),pm=Symbol("internalId"),Pt=Symbol("height"),Lc=Symbol("immediatePropagationStopped"),dm=Symbol("indeterminate"),nu=Symbol("isFirstWrite"),iu=Symbol("isFirstWriteAfterOpen"),Gf=Symbol("isInPassiveEventListener"),ul=Symbol("isValue"),Ic=Symbol("listenerOptions"),Xr=Symbol("listeners"),bs=Symbol("itemsByName"),Rc=Symbol("nextActiveElement"),bd=Symbol("observeMutations"),cl=Symbol("mutationListeners"),lt=Symbol("ownerDocument"),er=Symbol("ownerElement"),_c=Symbol("propagationStopped"),ya=Symbol("readyStateManager"),Fn=Symbol("referrer"),Va=Symbol("registry"),Ui=Symbol("relList"),Vf=Symbol("resetSelection"),jo=Symbol("rootNode"),cn=Symbol("selectNode"),Gn=Symbol("selectedness"),ym=Symbol("selection"),ZS=Symbol("setupVMContext"),ao=Symbol("shadowRoot"),Lt=Symbol("start"),so=Symbol("style"),Vn=Symbol("target"),ii=Symbol("textAreaNode"),Hf=Symbol("unobserveMutations"),au=Symbol("reportMutation"),fm=Symbol("updateSelectedness"),po=Symbol("url"),oe=Symbol("value"),vt=Symbol("width"),y=Symbol("window"),HP=Symbol("windowResizeListener"),gm=Symbol("mutationObservers"),vi=Symbol("openerFrame"),Ss=Symbol("openerWindow"),t0=Symbol("pointerCaptures"),Uc=Symbol("popup"),Ae=Symbol("isConnected"),Bt=Symbol("parentNode"),xt=Symbol("nodeType"),ce=Symbol("tagName"),lr=Symbol("prefix"),_8=Symbol("scrollHeight"),U8=Symbol("scrollWidth"),zP=Symbol("scrollTop"),jP=Symbol("scrollLeft"),Ye=Symbol("attributes"),zf=Symbol("attributesProxy"),XP=Symbol("animations"),de=Symbol("namespaceURI"),jf=Symbol("accessKey");var B8=Symbol("offsetHeight"),O8=Symbol("offsetWidth"),D8=Symbol("offsetLeft"),F8=Symbol("offsetTop"),G8=Symbol("clientHeight"),V8=Symbol("clientWidth"),H8=Symbol("clientLeft"),z8=Symbol("clientTop"),ge=Symbol("name"),e0=Symbol("specified"),Bc=Symbol("adoptedStyleSheets"),KP=Symbol("implementation"),bm=Symbol("readyState"),Oc=Symbol("publicId"),Dc=Symbol("systemId"),ko=Symbol("validationMessage"),Jo=Symbol("validity"),YP=Symbol("returnValue"),su=Symbol("elements");var lu=Symbol("complete"),As=Symbol("naturalHeight"),ws=Symbol("naturalWidth"),VT=Symbol("loading"),St=Symbol("x"),At=Symbol("y");var Ps=Symbol("files"),Do=Symbol("sheet"),qP=Symbol("volume"),Sd=Symbol("paused"),$P=Symbol("currentTime"),JP=Symbol("playbackRate"),QP=Symbol("defaultPlaybackRate"),Xf=Symbol("muted"),Ad=Symbol("defaultMuted"),ZP=Symbol("preservesPitch"),j8=Symbol("buffered"),X8=Symbol("duration"),Qo=Symbol("error"),K8=Symbol("ended"),Y8=Symbol("networkState"),t4=Symbol("textTracks"),q8=Symbol("seeking"),$8=Symbol("seekable"),J8=Symbol("played"),Ni=Symbol("options"),Bi=Symbol("content"),So=Symbol("mode"),Sm=Symbol("host"),ai=Symbol("setURL"),ve=Symbol("localName"),Kf=Symbol("classRegistry"),r0=Symbol("nodeStream"),xi=Symbol("location"),Ro=Symbol("history"),e4=Symbol("navigator"),r4=Symbol("screen"),o4=Symbol("sessionStorage"),n4=Symbol("localStorage"),o0=Symbol("sandbox"),Ie=Symbol("cloneNode"),Ke=Symbol("appendChild"),kn=Symbol("removeChild"),si=Symbol("insertBefore"),Yf=Symbol("replaceChild"),hl=Symbol("tracks"),qf=Symbol("constraints"),ml=Symbol("capabilities"),Am=Symbol("settings");var Fc=Symbol("removeNamedItem"),$t=Symbol("items"),wm=Symbol("selectedOptions"),Mn=Symbol("styleNode"),Pm=Symbol("updateSheet"),Oi=Symbol("clearCache"),Ao=Symbol("onSetAttribute"),Zo=Symbol("onRemoveAttribute"),Vt=Symbol("nodeArray"),Be=Symbol("elementArray"),kt=Symbol("cache"),tn=Symbol("affectsCache"),$f=Symbol("forms"),Jf=Symbol("links"),Qf=Symbol("affectsComputedStyleCache"),wd=Symbol("query"),Pd=Symbol("computedStyle"),Di=Symbol("getFormControlItems"),n0=Symbol("getFormControlNamedItem"),i4=Symbol("dataset");var vd=Symbol("itemsByNamespaceURI"),tr=Symbol("proxy"),vs=Symbol("setNamedItem"),Hn=Symbol("getTokenList"),Gc=Symbol("attributeName"),Ha=Symbol("selectedIndex"),vm=Symbol("self"),Fi=Symbol("parent"),Ns=Symbol("top"),i0=Symbol("areas"),Gi=Symbol("defaultValue"),pl=Symbol("elementIdMap"),Nm=Symbol("clonable"),Nd=Symbol("delegatesFocus"),uu=Symbol("serializable"),dl=Symbol("slotAssignment"),cu=Symbol("assignedNodes"),xs=Symbol("assignedToSlot"),a0=Symbol("cells"),s0=Symbol("rows"),a4=Symbol("headers"),l0=Symbol("tBodies"),Zf=Symbol("track"),u0=Symbol("controlsList"),s4=Symbol("mediaKeys"),Q8=Symbol("remote"),l4=Symbol("sinkId"),u4=Symbol("srcObject"),xd=Symbol("cues"),Z8=Symbol("activeCues"),fa=Symbol("kind"),Vc=Symbol("label"),Ed=Symbol("language"),c0=Symbol("id"),k=Symbol("illegalConstructor"),tx=Symbol("state"),hu=Symbol("canvas"),xm=Symbol("popoverTargetElement"),h0=Symbol("composed"),Hc=Symbol("bubbles"),mu=Symbol("cancelable"),Sn=Symbol("defaultPrevented"),zn=Symbol("eventPhase"),ex=Symbol("timeStamp"),Ar=Symbol("type"),m0=Symbol("detail");var p0=Symbol("destroyed"),lo=Symbol("aborted"),d0=Symbol("browserFrames"),c4=Symbol("windowInternalId"),Kt=Symbol("getItemList"),pu=Symbol("requiredExtensions"),du=Symbol("systemLanguage"),y0=Symbol("transform"),Br=Symbol("baseVal"),Or=Symbol("animVal"),f0=Symbol("pathLength");var yu=Symbol("viewBox"),g0=Symbol("markerUnits"),b0=Symbol("markerWidth"),S0=Symbol("markerHeight"),hn=Symbol("values"),A0=Symbol("orientType"),w0=Symbol("orientAngle"),P0=Symbol("refX"),v0=Symbol("refY"),Qt=Symbol("readOnly"),An=Symbol("preserveAspectRatio"),fu=Symbol("animatedPoints"),gu=Symbol("points"),bu=Symbol("rx"),Su=Symbol("ry"),Vi=Symbol("cx"),Hi=Symbol("cy"),Au=Symbol("r"),N0=Symbol("clipPathUnits"),x0=Symbol("maskUnits"),E0=Symbol("maskContentUnits"),C0=Symbol("filterUnits"),k0=Symbol("primitiveUnits"),rr=Symbol("href"),wu=Symbol("x1"),Pu=Symbol("y1"),vu=Symbol("x2"),Nu=Symbol("y2"),M0=Symbol("gradientUnits"),T0=Symbol("gradientTransform"),W0=Symbol("spreadMethod"),L0=Symbol("patternUnits"),I0=Symbol("patternContentUnits"),R0=Symbol("patternTransform"),_0=Symbol("fx"),U0=Symbol("fy"),xu=Symbol("offset"),Em=Symbol("disabled"),B0=Symbol("textLength"),O0=Symbol("lengthAdjust"),ht=Symbol("getAttribute"),rt=Symbol("setAttribute"),li=Symbol("z"),Cd=Symbol("w"),D0=Symbol("toArray"),kd=Symbol("fromString"),ga=Symbol("fromArray");var or=Symbol("m11"),ur=Symbol("m12"),Er=Symbol("m13"),Cr=Symbol("m14"),nr=Symbol("m21"),cr=Symbol("m22"),kr=Symbol("m23"),Mr=Symbol("m24"),fr=Symbol("m31"),wr=Symbol("m32"),Pr=Symbol("m33"),gr=Symbol("m34"),ir=Symbol("m41"),hr=Symbol("m42"),vr=Symbol("m43"),Nr=Symbol("m44"),tg=Symbol("setMatrixValue"),ba=Symbol("translateSelf"),zc=Symbol("rotateSelf"),jc=Symbol("rotateAxisAngleSelf"),Eu=Symbol("scaleSelf"),F0=Symbol("scale3dSelf"),G0=Symbol("scaleNonUniformSelf"),Md=Symbol("skewXSelf"),Td=Symbol("skewYSelf"),zi=Symbol("multiplySelf"),Xc=Symbol("matrix");var Mo=Symbol("getDOMMatrix"),Tn=Symbol("setDOMMatrix"),wt=Symbol("attributeValue"),V0=Symbol("startOffset"),Kc=Symbol("method"),H0=Symbol("spacing"),Ce=Symbol("in1"),ji=Symbol("in2"),ye=Symbol("result"),z0=Symbol("bias"),j0=Symbol("divisor"),Cu=Symbol("edgeMode"),X0=Symbol("kernelMatrix"),Xi=Symbol("kernelUnitLengthX"),Ki=Symbol("kernelUnitLengthY"),K0=Symbol("orderX"),Y0=Symbol("orderY"),q0=Symbol("preserveAlpha"),$0=Symbol("targetX"),J0=Symbol("targetY"),Q0=Symbol("diffuseConstant"),ku=Symbol("surfaceScale"),Z0=Symbol("scale"),t2=Symbol("xChannelSelector"),e2=Symbol("yChannelSelector"),r2=Symbol("azimuth"),o2=Symbol("elevation"),Yi=Symbol("dx"),qi=Symbol("dy"),Mu=Symbol("stdDeviationX"),Tu=Symbol("stdDeviationY"),n2=Symbol("tableValues"),i2=Symbol("slope"),a2=Symbol("intercept"),s2=Symbol("amplitude"),l2=Symbol("exponent"),HT=Symbol("crossOrigin"),u2=Symbol("operator"),c2=Symbol("radiusX"),h2=Symbol("radiusY"),m2=Symbol("specularConstant"),Wu=Symbol("specularExponent"),p2=Symbol("pointsAtX"),d2=Symbol("pointsAtY"),y2=Symbol("pointsAtZ"),f2=Symbol("limitingConeAngle"),g2=Symbol("baseFrequencyX"),b2=Symbol("baseFrequencyY"),S2=Symbol("numOctaves"),A2=Symbol("seed"),w2=Symbol("stitchTiles"),P2=Symbol("rotateFromVectorSelf"),v2=Symbol("flipXSelf"),N2=Symbol("flipYSelf"),x2=Symbol("invertSelf"),rx=Symbol("getLength"),h4=Symbol("currentScale"),E2=Symbol("rotate"),ox=Symbol("bindMethods"),Cm=Symbol("xmlProcessingInstruction");var za=Symbol("filterNode"),Yc=Symbol("customElementReactionStack"),km=Symbol("customElementDefineCallback"),m4=Symbol("onCustomElementConnected"),p4=Symbol("addIdentifierToWindow"),eg=Symbol("removeIdentifierFromWindow"),rg=Symbol("onSlotChange"),Mm=Symbol("dispatching"),Lu=Symbol("modules"),ui=Symbol("preloads"),yl=Symbol("body"),d4=Symbol("redirect"),og=Symbol("referrerPolicy"),y4=Symbol("signal"),fl=Symbol("bodyUsed"),f4=Symbol("credentials"),C2=Symbol("blocking"),Wd=Symbol("moduleImportMap"),Dr=Symbol("dispatchError"),g4=Symbol("supports"),Sa=Symbol("reason"),w=Symbol("propertyEventListeners"),Xo=Symbol("cssRules"),qc=Symbol("parentRule"),Aa=Symbol("parentStyleSheet"),$i=Symbol("conditionText"),Iu=Symbol("keyText"),nx=Symbol("media"),k2=Symbol("styleMap"),Ld=Symbol("selectorText"),Id=Symbol("cssParser"),$c=Symbol("cssRule"),ci=Symbol("rulePrefix"),Ei=Symbol("virtualServerFile"),ix=Symbol("frames"),Jc=Symbol("disableEvaluation"),ax=Symbol("validateJavaScriptExecutionEnvironment");var Tm=Symbol("openWebSockets"),jn=Symbol("webSocket"),Rd=Symbol("moduleCache"),b4=Symbol("cookieStore"),M2=Symbol("context"),ng=Symbol("querySelectorCache"),wa=Symbol("customElementUpgradeTarget"),sx=Symbol("timeline"),ja=Symbol("element"),Wm=Symbol("computed"),Qc=Symbol("getPropertyManager"),Xn=Symbol("clearComputedStyleCache");var lx;(function(r){r[r.elementNode=1]="elementNode",r[r.attributeNode=2]="attributeNode",r[r.textNode=3]="textNode",r[r.cdataSectionNode=4]="cdataSectionNode",r[r.commentNode=8]="commentNode",r[r.documentNode=9]="documentNode",r[r.documentTypeNode=10]="documentTypeNode",r[r.documentFragmentNode=11]="documentFragmentNode",r[r.processingInstructionNode=7]="processingInstructionNode"})(lx||(lx={}));var mt=lx;var ux;(function(r){r[r.none=0]="none",r[r.capturing=1]="capturing",r[r.atTarget=2]="atTarget",r[r.bubbling=3]="bubbling"})(ux||(ux={}));var Fr=ux;var yt=class r{static NONE=Fr.none;static CAPTURING_PHASE=Fr.capturing;static AT_TARGET=Fr.atTarget;static BUBBLING_PHASE=Fr.bubbling;NONE=r.NONE;CAPTURING_PHASE=r.CAPTURING_PHASE;AT_TARGET=r.AT_TARGET;BUBBLING_PHASE=r.BUBBLING_PHASE;[h0]=!1;[Hc]=!1;[mu]=!1;[Sn]=!1;[zn]=Fr.none;[ex]=performance.now();[Ar];[Mm]=!1;[Lc]=!1;[_c]=!1;[Vn]=null;[Fa]=null;[Gf]=!1;constructor(t,e=null){this[Ar]=t,this[Hc]=e?.bubbles??!1,this[mu]=e?.cancelable??!1,this[h0]=e?.composed??!1}get composed(){return this[h0]}get bubbles(){return this[Hc]}get cancelable(){return this[mu]}get defaultPrevented(){return this[Sn]}get eventPhase(){return this[zn]}get timeStamp(){return this[ex]}get type(){return this[Ar]}get target(){return this[Vn]}get currentTarget(){return this[Fa]}get cancelBubble(){return this[_c]}composedPath(){if(!this[Vn])return[];let t=[],e=this[Vn];for(;e;)if(t.push(e),e.parentNode)e=e.parentNode;else if(this[h0]&&e[xt]===mt.documentFragmentNode&&e.host)e=e.host;else if(e[xt]===mt.documentNode&&this[Ar]!=="load")e=e[y];else break;return t}initEvent(t,e=!1,o=!1){this[Ar]=t,this[Hc]=e,this[mu]=o,this[_c]=!1,this[Lc]=!1,this[Sn]=!1}preventDefault(){!this[Gf]&&this.cancelable&&(this[Sn]=!0)}stopImmediatePropagation(){this[Lc]=!0}stopPropagation(){this[_c]=!0}};var Zt=class{static[d0]=new Map;static[c4]=0;#t;constructor(t){this.#t=t}getSettings(){return this.getBrowserFrame()?.page.context.browser.settings||null}getBrowser(){return this.getBrowserFrame()?.page.context.browser||null}getBrowserPage(){return this.getBrowserFrame()?.page||null}getBrowserContext(){return this.getBrowserFrame()?.page.context||null}getBrowserFrame(){return this.#t&&this.constructor[d0].get(this.#t[pm])||null}getAsyncTaskManager(){return this.getBrowserFrame()?.[_e]||null}static setWindowBrowserFrameRelation(t,e){let o=this[d0];t[pm]===-1&&(t[pm]=this[c4],this[c4]++),o.set(t[pm],e)}static removeWindowBrowserFrameRelation(t){this[d0].delete(t[pm])}};var cx;(function(r){r.tryAndCatch="tryAndCatch",r.processLevel="processLevel",r.disabled="disabled"})(cx||(cx={}));var _r=cx;var Ve=class{constructor(){if(this.constructor[wa])return this.constructor[wa];this[Xr]={bubbling:new Map,capturing:new Map},this[Ic]={bubbling:new Map,capturing:new Map}}get[Symbol.toStringTag](){return"EventTarget"}addEventListener(t,e,o){o=typeof o=="boolean"?{capture:o}:o||{};let n=o.capture?"capturing":"bubbling",i=this[Xr][n].get(t),a;i?a=this[Ic][n].get(t):(i=[],a=[],this[Xr][n].set(t,i),this[Ic][n].set(t,a)),!i.includes(e)&&(i.push(e),a.push(o),o.signal&&!o.signal.aborted&&o.signal.addEventListener("abort",()=>{this.removeEventListener(t,e)}))}removeEventListener(t,e){let o=this[Xr].bubbling.get(t);if(o){let i=o.indexOf(e);if(i!==-1){o.splice(i,1),this[Ic].bubbling.get(t).splice(i,1);return}}let n=this[Xr].capturing.get(t);if(n){let i=n.indexOf(e);i!==-1&&(n.splice(i,1),this[Ic].capturing.get(t).splice(i,1))}}dispatchEvent(t){if(!(t instanceof yt))throw new this[y].TypeError("Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.");return!t[Mm]&&(t[Ar]!=="load"||!t[Vn])?(t[Mm]=!0,t[Vn]=this[tr]||this,this.#t(t),t[Mm]=!1,!(t[mu]&&t[Sn])):(this.#e(t),!(t[mu]&&t[Sn]))}attachEvent(t,e){this.addEventListener(t.replace("on",""),e)}detachEvent(t,e){this.removeEventListener(t.replace("on",""),e)}[Ge](){this[Xr].capturing.clear(),this[Xr].bubbling.clear(),this[Ic].capturing.clear(),this[Ic].bubbling.clear()}#t(t){let e=t.composedPath();t[zn]=Fr.capturing;for(let o=e.length-1;o>=0;o--)if(t[Fa]=e[o],e[o].dispatchEvent(t),t[_c]||t[Lc]){t[zn]=Fr.none,t[Fa]=null;return}if(t[zn]=Fr.atTarget,t[Fa]=this[tr]||this,t[Vn].dispatchEvent(t),t[zn]=Fr.bubbling,t[Hc]&&!t[_c]&&!t[Lc]){for(let o=1,n=e.length;o<n;o++)if(t[Fa]=e[o],e[o].dispatchEvent(t),t[_c]||t[Lc]){t[zn]=Fr.none,t[Fa]=null;return}}t[zn]=Fr.none,t[Fa]=null}#e(t){let e=this[y],o=e?new Zt(e).getSettings():null,n=t.eventPhase===Fr.capturing?"capturing":"bubbling",i=this[Xr][n].get(t.type)?.slice();if(i&&i.length){let a=this[Ic][n].get(t.type).slice();for(let s=0,l=i.length;s<l;s++){let u=i[s],c=a[s];if(c?.passive&&(t[Gf]=!0),e&&(this!==e||t.type!=="error")&&!o?.disableErrorCapturing&&o?.errorCapture===_r.tryAndCatch)if(u.handleEvent){let h;try{h=u.handleEvent.call(u,t)}catch(m){e[Dr](m)}h instanceof Promise&&h.catch(m=>e[Dr](m))}else{let h;try{h=u.call(this,t)}catch(m){e[Dr](m)}h instanceof Promise&&h.catch(m=>e[Dr](m))}else u.handleEvent?u.handleEvent.call(u,t):u.call(this,t);if(t[Gf]=!1,c?.once&&(i.splice(s,1),a.splice(s,1),this.removeEventListener(t.type,u),s--,l--),t[Lc])return}}if(t.eventPhase!==Fr.capturing){let a="on"+t.type.toLowerCase(),s=this[w],l=!s&&Object.hasOwn(this,a)&&this.constructor.name!=="EventTarget";if(s||l){let u=s?.get(a)??this[a];if(typeof u=="function")if(e&&(this!==e||t.type!=="error")&&!o?.disableErrorCapturing&&o?.errorCapture===_r.tryAndCatch){let c;try{c=u(t)}catch(h){e[Dr](h)}c instanceof Promise&&c.catch(h=>e[Dr](h))}else u(t)}}}};var hx;(function(r){r.invalidStateError="InvalidStateError",r.indexSizeError="IndexSizeError",r.syntaxError="SyntaxError",r.hierarchyRequestError="HierarchyRequestError",r.notSupportedError="NotSupportedError",r.wrongDocumentError="WrongDocumentError",r.invalidNodeTypeError="InvalidNodeTypeError",r.invalidCharacterError="InvalidCharacterError",r.notFoundError="NotFoundError",r.securityError="SecurityError",r.networkError="NetworkError",r.domException="DOMException",r.invalidAccessError="InvalidAccessError",r.unknownError="UnknownError",r.abortError="AbortError",r.timeoutError="TimeoutError",r.encodingError="EncodingError",r.uriMismatchError="URIMismatchError",r.inUseAttributeError="InUseAttributeError",r.namespaceError="NamespaceError"})(hx||(hx={}));var Z=hx;var ig=class extends Ve{id="";effect;timeline;startTime=null;playbackRate=1;replaceState="active";ready;finished;#t="idle";#e=null;#r=null;#o=null;#n=null;[w]=new Map;constructor(t=null,e){super(),this.effect=t,this.timeline=e===void 0?this[y].document.timeline:e,this.ready=Promise.resolve(this),this.finished=this.#a()}get oncancel(){return this[w].get("oncancel")??null}set oncancel(t){this[w].set("oncancel",t)}get onfinish(){return this[w].get("onfinish")??null}set onfinish(t){this[w].set("onfinish",t)}get onremove(){return this[w].get("onremove")??null}set onremove(t){this[w].set("onremove",t)}get currentTime(){let t=this.timeline?.currentTime;return this.#t==="running"&&this.startTime!==null&&t!=null?(t-this.startTime)*this.playbackRate:this.#e}set currentTime(t){this.#e=t;let e=this.timeline?.currentTime;t!==null&&e!=null&&this.playbackRate!==0&&(this.startTime=e-t/this.playbackRate),this.#t==="running"&&this.#u()}get playState(){return this.#t}get pending(){return!1}play(){(this.#t==="finished"||this.#t==="idle")&&(this.finished=this.#a());let t=this.#e??(this.playbackRate<0?this.#i():0);this.#e=t;let e=this.timeline?.currentTime;e!=null&&this.playbackRate!==0&&(this.startTime=e-t/this.playbackRate),this.#t="running",this.#u()}pause(){this.#t==="running"&&(this.#e=this.currentTime,this.startTime=null,this.#t="paused",this.#s())}reverse(){this.playbackRate=this.playbackRate===0?-1:-this.playbackRate,this.play()}finish(){if(this.playbackRate===0)throw new this[y].DOMException("The animation playback rate is zero.",Z.invalidStateError);this.#s(),this.#e=this.playbackRate<0?0:this.#i(),this.startTime=null,this.#t="finished",this.#o?.(this),this.dispatchEvent(new this[y].Event("finish"))}cancel(){this.#t!=="idle"&&(this.#s(),this.#t="idle",this.#e=null,this.startTime=null,this.#n?.(new this[y].DOMException("The animation was canceled.",Z.abortError)),this.dispatchEvent(new this[y].Event("cancel")))}persist(){this.replaceState="persisted"}updatePlaybackRate(t){let e=this.currentTime;this.playbackRate=t,this.currentTime=e}#i(){return this.effect?.getComputedTiming().endTime??0}#a(){return new Promise((t,e)=>{this.#o=t,this.#n=e})}#u(){if(this.#s(),!this.effect||this.playbackRate===0)return;let t=this.currentTime??0,e=this.playbackRate<0?t/-this.playbackRate:(this.#i()-t)/this.playbackRate;Number.isFinite(e)&&(this.#r=this[y].setTimeout(()=>this.finish(),Math.max(0,e)))}#s(){this.#r!==null&&(this[y].clearTimeout(this.#r),this.#r=null)}};var Lm=class{get currentTime(){return null}};var Im=class extends Lm{#t;constructor(t={}){super(),this.#t=t.originTime??0}get currentTime(){return performance.now()-this.#t}};var ag=class{target;pseudoElement=null;composite;iterationComposite;#t;#e;constructor(t,e,o={}){this.target=t,this.#t=this.#o(e),this.#e=this.#r(o),this.composite=typeof o=="number"?"replace":o.composite??"replace",this.iterationComposite=typeof o=="number"?"replace":o.iterationComposite??"replace"}getTiming(){return{...this.#e}}getComputedTiming(){let e=(this.#e.duration==="auto"?0:this.#e.duration)*this.#e.iterations;return{...this.#e,activeDuration:e,currentIteration:null,endTime:Math.max(0,this.#e.delay+e+this.#e.endDelay),localTime:null,progress:null}}updateTiming(t={}){this.#e=this.#r({...this.#e,...t})}getKeyframes(){return this.#t.map(t=>({...t}))}setKeyframes(t){this.#t=this.#o(t)}#r(t){let e=typeof t=="number"?{duration:t}:t,o=e.duration??"auto",n=e.iterations??1;if(o!=="auto"&&(!Number.isFinite(o)||o<0)||n<0)throw new this[y].TypeError("Invalid animation timing options.");return{delay:e.delay??0,direction:e.direction??"normal",duration:o,easing:e.easing??"linear",endDelay:e.endDelay??0,fill:e.fill??"auto",iterationStart:e.iterationStart??0,iterations:n}}#o(t){if(!t)return[];if(Array.isArray(t)){let l=t.map(u=>this.#n(u));return this.#i(l),l}let e=Object.keys(t).filter(l=>!["composite","easing","offset"].includes(l)),o=Math.max(0,...["composite","easing","offset"].map(l=>Array.isArray(t[l])?t[l].length:0),...e.map(l=>Array.isArray(t[l])?t[l].length:1)),n=Array.isArray(t.offset)?t.offset:[t.offset??null],i=Array.isArray(t.easing)?t.easing:[t.easing??"linear"],a=Array.isArray(t.composite)?t.composite:[t.composite??"auto"],s=Array.from({length:o},(l,u)=>({offset:n[u]??null,easing:i[u]??"linear",composite:a[u]??"auto",computedOffset:0}));for(let l of e){let u=Array.isArray(t[l])?t[l]:[t[l]];for(let c=0;c<u.length;c++)u[c]!==void 0&&(s[c][l]=String(u[c]))}return this.#i(s),s}#n(t){let e={offset:t.offset??null,easing:t.easing??"linear",composite:t.composite??"auto",computedOffset:0};for(let o of Object.keys(t))!["composite","easing","offset"].includes(o)&&t[o]!==void 0&&(e[o]=String(t[o]));return e}#i(t){let e=-1/0;for(let i of t)if(i.offset!==null&&i.offset!==void 0){if(i.offset<e||i.offset<0||i.offset>1)throw new this[y].TypeError("Keyframe offsets must be in non-decreasing order between 0 and 1.");e=i.offset}if(!t.length)return;let o=t.map(i=>i.offset);o[0]===null&&(o[0]=t.length===1?1:0),o.at(-1)===null&&(o[o.length-1]=1);let n=0;for(;n<o.length-1;){let i=n+1;for(;o[i]===null;)i++;let a=o[n],s=o[i];for(let l=n+1;l<i;l++)o[l]=a+(s-a)*(l-n)/(i-n);n=i}for(let i=0;i<t.length;i++)t[i].computedOffset=o[i]}};var mx;(function(r){r.strict="Strict",r.lax="Lax",r.none="None"})(mx||(mx={}));var hi=mx;var S4={key:null,originURL:null,value:null,domain:"",path:"",expires:null,httpOnly:!1,secure:!1,sameSite:hi.lax};var sg=class{static hasExpired(t){return t.expires&&t.expires.getTime()<Date.now()}};var T2=class{static cookieMatchesURL(t,e){let o=e.hostname==="localhost"||e.hostname?.endsWith(".localhost");return(!t.secure||e.protocol==="https:"||o)&&(!t.domain||e.hostname?.endsWith(t.domain))&&(!t.path||e.pathname?.startsWith(t.path))&&(t.sameSite===hi.none&&t.secure||t.originURL?.hostname===e.hostname)}};var _d=class{#t=[];addCookies(t){let e={changed:[],deleted:[]},o=this.#t;for(let n of t){let i=Object.assign({},S4,n);if(i&&i.key&&i.originURL){let a=sg.hasExpired(i);for(let s=0,l=o.length;s<l;s++){let u=o[s];if(u.key===i.key&&u.originURL.hostname===i.originURL.hostname&&u.path===i.path&&typeof u.value==typeof i.value){a&&e.deleted.push(u),o.splice(s,1);break}}a||(o.push(i),e.changed.push(i))}}return e}getCookies(t=null,e=!1){let o=[];for(let n of this.#t)!sg.hasExpired(n)&&(!e||!n.httpOnly)&&(!t||T2.cookieMatchesURL(n,t))&&o.push(n);return o}clearCookies(){this.#t=[]}};var px;(function(r){r.fresh="fresh",r.stale="stale"})(px||(px={}));var Rm=px;var Tr=class extends Error{constructor(t,e=null){super(t),this.name=e||Z.domException}};var gl=class r{[un]={};constructor(t){if(t)if(t instanceof r)this[un]=JSON.parse(JSON.stringify(t[un]));else if(Array.isArray(t))for(let e of t){if(e.length!==2)throw new Tr('Failed to construct "Headers": The provided init is not a valid array.',Z.invalidStateError);this.append(e[0],e[1])}else for(let e of Object.keys(t))this.set(e,t[e])}append(t,e){let o=t.toLowerCase();this[un][o]?this[un][o].value.push(e):this[un][o]={name:t,value:[e]}}delete(t){delete this[un][t.toLowerCase()]}get(t){return this[un][t.toLowerCase()]?.value.join(", ")??null}set(t,e){this[un][t.toLowerCase()]={name:t,value:[e]}}getSetCookie(){let t=this[un]["set-cookie"];return t?t.value:[]}has(t){return!!this[un][t.toLowerCase()]}forEach(t,e){let o=e??this[y];for(let n of Object.values(this[un]))t.call(o,n.value.join(", "),n.name,this)}*keys(){for(let t of Object.values(this[un]))yield t.name}*values(){for(let t of Object.values(this[un]))yield t.value.join(", ")}*entries(){for(let t of Object.values(this[un]))yield[t.name,t.value.join(", ")]}*[Symbol.iterator](){for(let t of Object.values(this[un]))yield[t.name,t.value.join(", ")]}};import lg from"fs";import ug from"path";import EY from"crypto";var W2=class{#t=new Set;#e=new Set;#r;constructor(t){this.#r=t}async load(t){if(!t)throw new Error("Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.");let e=ug.resolve(t),o=[];try{o=await lg.promises.readdir(e)}catch{return}let n=[],i=this.#r;for(let a of o)a.endsWith(".json")&&n.push(lg.promises.readFile(ug.join(e,a),"utf8").then(s=>{let l=JSON.parse(s);if(l.response&&l.request&&!l.virtual)return l.response.headers=new gl(l.response.headers),l.request.headers=new gl(l.request.headers),lg.promises.readFile(ug.join(e,a.split(".")[0]+".data")).then(u=>{l.response.body=u;let c=i.get(l.response.url);c||(c=[],i.set(l.response.url,c)),c.push(l)}).catch(()=>{let u=i.get(l.response.url);u||(u=[],i.set(l.response.url,u)),u.push(l)})}).catch(()=>{}));await Promise.all(n)}async save(t){if(!t)throw new Error("Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.");if(!this.#r.size)return;let e=ug.resolve(t);if(!this.#t.has(e)){this.#t.add(e);try{await lg.promises.mkdir(e,{recursive:!0})}catch{}}let n=this.#r,i=[];for(let a of n.values())for(let s of a)if(!s.virtual){let l={},u={};for(let[p,g]of s.response.headers.entries())l[p]=g;for(let[p,g]of s.request.headers.entries())u[p]=g;let c={...s,response:{...s.response,headers:l,body:null},request:{...s.request,headers:u}},h=JSON.stringify(c,null,3),m=EY.createHash("md5").update(h).digest("hex");this.#e.has(m)||(this.#e.add(m),i.push(lg.promises.writeFile(ug.join(e,`${m}.json`),h)),s.response.body&&i.push(lg.promises.writeFile(ug.join(e,`${m}.data`),s.response.body)))}await Promise.all(i)}};var CY=["Cache-Control","Last-Modified","Vary","ETag"],Ud=class{fileSystem;#t=new Map;constructor(){this.fileSystem=new W2(this.#t)}get(t){if(t.headers.get("Cache-Control")?.includes("no-cache"))return null;let e=t.url,o=this.#t.get(e);if(o)for(let n=0,i=o.length;n<i;n++){let a=o[n],s=a.request.method===t.method;if(s)for(let l of Object.keys(a.vary)){let u=t.headers.get(l);if(u!==null&&a.vary[l]!==u){s=!1;break}}if(s){if(a.expires&&a.expires<Date.now()){if(a.lastModified)a.state=Rm.stale;else if(!a.etag)return o.splice(n,1),null}return a}}return null}add(t,e){if(t.method!=="GET"&&t.method!=="HEAD"||t.headers.get("Cache-Control")?.includes("no-cache"))return null;let o=t.url,n=this.get(t);if(e.status===304){if(!n)throw new Error("ResponseCache: Cached response not found.");for(let i of CY)e.headers.has(i)&&n.response.headers.set(i,e.headers.get(i));n.cacheUpdateTime=Date.now(),n.state=Rm.fresh}else{if(n){let a=this.#t.get(o);if(a){let s=a.indexOf(n);s!==-1&&a.splice(s,1)}}n={response:{status:e.status,statusText:e.statusText,url:e.url,headers:new gl(e.headers),waitingForBody:e.waitingForBody,body:e.body??null},request:{headers:t.headers,method:t.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:!1,staleWhileRevalidate:!1,state:Rm.fresh,virtual:e.virtual??!1};let i=this.#t.get(o);i||(i=[],this.#t.set(o,i)),i.push(n)}if(e.headers.has("Cache-Control")){let i=e.headers.get("Age");for(let a of e.headers.get("Cache-Control").split(",")){let[s,l]=a.trim().split("=");switch(s){case"max-age":n.expires=Date.now()+parseFloat(l)*1e3-(i?parseFloat(i)*1e3:0);break;case"no-cache":case"no-store":let u=this.#t.get(o);if(u){let c=u.indexOf(n);c!==-1&&u.splice(c,1)}return null;case"must-revalidate":n.mustRevalidate=!0;break;case"stale-while-revalidate":n.staleWhileRevalidate=!0;break}}}if(e.headers.has("Last-Modified")&&(n.lastModified=Date.parse(e.headers.get("Last-Modified"))),e.headers.has("Vary"))for(let i of e.headers.get("Vary").split(",")){let a=i.trim(),s=t.headers.get(a);s&&(n.vary[a]=s)}if(e.headers.has("ETag")&&(n.etag=e.headers.get("ETag")),!n.expires){let i=e.headers.get("Expires");i&&(n.expires=Date.parse(i))}if(!n.etag&&(!n.expires||n.expires<Date.now())){let i=this.#t.get(o);if(i){let a=i.indexOf(n);a!==-1&&i.splice(a,1)}return null}return n}clear(t){if(t)if(t.toTime)for(let e of t.url?[t.url]:this.#t.keys()){let o=this.#t.get(e);if(o)for(let n=0,i=o.length;n<i;n++)o[n].cacheUpdateTime<t.toTime&&(o.splice(n,1),n--,i--)}else t.url&&this.#t.delete(t.url);else this.#t.clear()}};var dx;(function(r){r[r.log=0]="log",r[r.info=1]="info",r[r.warn=2]="warn",r[r.error=3]="error"})(dx||(dx={}));var wn=dx;var yx;(function(r){r.log="log",r.table="table",r.trace="trace",r.dir="dir",r.dirxml="dirxml",r.group="group",r.groupCollapsed="groupCollapsed",r.debug="debug",r.timeLog="timeLog",r.info="info",r.count="count",r.timeEnd="timeEnd",r.warn="warn",r.countReset="countReset",r.error="error",r.assert="assert"})(yx||(yx={}));var _o=yx;var L2=class{static toString(t){if(this.isLogEntryCollapsed(t))return"";let e=this.getLogEntryGroupTabbing(t),o=e;for(let n of t.message)if(o+=o!==""&&o!==e?" ":"",typeof n=="object"&&(n===null||n.constructor.name==="Object"||Array.isArray(n)))try{o+=JSON.stringify(n)}catch{o+=new Error("Failed to JSON stringify object in log entry.").stack.replace(/\n at/gm,`
11
+ `+e)}function py(r,t,e,o,n,i){if(r.listenerCount("wsClientError")){let a=new Error(n);Error.captureStackTrace(a,py),r.emit("wsClientError",a,e,t)}else y3(e,o,n,i)}});var TH=ar((a7,MH)=>{(function(r,t){typeof a7=="object"&&typeof MH<"u"?t(a7):typeof define=="function"&&define.amd?define(["exports"],t):(r=typeof globalThis<"u"?globalThis:r||self,t(r.d3=r.d3||{}))})(a7,(function(r){"use strict";function t(P,x){return P<x?-1:P>x?1:P>=x?0:NaN}function e(P){let x=P,E=P;P.length===1&&(x=(Q,dt)=>P(Q)-dt,E=o(P));function R(Q,dt,jt,ie){for(jt==null&&(jt=0),ie==null&&(ie=Q.length);jt<ie;){let le=jt+ie>>>1;E(Q[le],dt)<0?jt=le+1:ie=le}return jt}function U(Q,dt,jt,ie){for(jt==null&&(jt=0),ie==null&&(ie=Q.length);jt<ie;){let le=jt+ie>>>1;E(Q[le],dt)>0?ie=le:jt=le+1}return jt}function G(Q,dt,jt,ie){jt==null&&(jt=0),ie==null&&(ie=Q.length);let le=R(Q,dt,jt,ie-1);return le>jt&&x(Q[le-1],dt)>-x(Q[le],dt)?le-1:le}return{left:R,center:G,right:U}}function o(P){return(x,E)=>t(P(x),E)}function n(P){return P===null?NaN:+P}function*i(P,x){if(x===void 0)for(let E of P)E!=null&&(E=+E)>=E&&(yield E);else{let E=-1;for(let R of P)(R=x(R,++E,P))!=null&&(R=+R)>=R&&(yield R)}}let a=e(t),s=a.right,l=a.left,u=e(n).center;function c(P,x){let E=0;if(x===void 0)for(let R of P)R!=null&&(R=+R)>=R&&++E;else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(U=+U)>=U&&++E}return E}function h(P){return P.length|0}function m(P){return!(P>0)}function p(P){return typeof P!="object"||"length"in P?P:Array.from(P)}function g(P){return x=>P(...x)}function d(...P){let x=typeof P[P.length-1]=="function"&&g(P.pop());P=P.map(p);let E=P.map(h),R=P.length-1,U=new Array(R+1).fill(0),G=[];if(R<0||E.some(m))return G;for(;;){G.push(U.map((dt,jt)=>P[jt][dt]));let Q=R;for(;++U[Q]===E[Q];){if(Q===0)return x?G.map(x):G;U[Q--]=0}}}function f(P,x){var E=0,R=0;return Float64Array.from(P,x===void 0?U=>E+=+U||0:U=>E+=+x(U,R++,P)||0)}function b(P,x){return x<P?-1:x>P?1:x>=P?0:NaN}function S(P,x){let E=0,R,U=0,G=0;if(x===void 0)for(let Q of P)Q!=null&&(Q=+Q)>=Q&&(R=Q-U,U+=R/++E,G+=R*(Q-U));else{let Q=-1;for(let dt of P)(dt=x(dt,++Q,P))!=null&&(dt=+dt)>=dt&&(R=dt-U,U+=R/++E,G+=R*(dt-U))}if(E>1)return G/(E-1)}function v(P,x){let E=S(P,x);return E&&Math.sqrt(E)}function A(P,x){let E,R;if(x===void 0)for(let U of P)U!=null&&(E===void 0?U>=U&&(E=R=U):(E>U&&(E=U),R<U&&(R=U)));else{let U=-1;for(let G of P)(G=x(G,++U,P))!=null&&(E===void 0?G>=G&&(E=R=G):(E>G&&(E=G),R<G&&(R=G)))}return[E,R]}class M{constructor(){this._partials=new Float64Array(32),this._n=0}add(x){let E=this._partials,R=0;for(let U=0;U<this._n&&U<32;U++){let G=E[U],Q=x+G,dt=Math.abs(x)<Math.abs(G)?x-(Q-G):G-(Q-x);dt&&(E[R++]=dt),x=Q}return E[R]=x,this._n=R+1,this}valueOf(){let x=this._partials,E=this._n,R,U,G,Q=0;if(E>0){for(Q=x[--E];E>0&&(R=Q,U=x[--E],Q=R+U,G=U-(Q-R),!G););E>0&&(G<0&&x[E-1]<0||G>0&&x[E-1]>0)&&(U=G*2,R=Q+U,U==R-Q&&(Q=R))}return Q}}function C(P,x){let E=new M;if(x===void 0)for(let R of P)(R=+R)&&E.add(R);else{let R=-1;for(let U of P)(U=+x(U,++R,P))&&E.add(U)}return+E}function B(P,x){let E=new M,R=-1;return Float64Array.from(P,x===void 0?U=>E.add(+U||0):U=>E.add(+x(U,++R,P)||0))}class F extends Map{constructor(x,E=O){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:E}}),x!=null)for(let[R,U]of x)this.set(R,U)}get(x){return super.get(I(this,x))}has(x){return super.has(I(this,x))}set(x,E){return super.set(N(this,x),E)}delete(x){return super.delete(_(this,x))}}class L extends Set{constructor(x,E=O){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:E}}),x!=null)for(let R of x)this.add(R)}has(x){return super.has(I(this,x))}add(x){return super.add(N(this,x))}delete(x){return super.delete(_(this,x))}}function I({_intern:P,_key:x},E){let R=x(E);return P.has(R)?P.get(R):E}function N({_intern:P,_key:x},E){let R=x(E);return P.has(R)?P.get(R):(P.set(R,E),E)}function _({_intern:P,_key:x},E){let R=x(E);return P.has(R)&&(E=P.get(E),P.delete(R)),E}function O(P){return P!==null&&typeof P=="object"?P.valueOf():P}function T(P){return P}function D(P,...x){return J(P,T,T,x)}function V(P,...x){return J(P,Array.from,T,x)}function j(P,x,...E){return J(P,T,x,E)}function K(P,x,...E){return J(P,Array.from,x,E)}function z(P,...x){return J(P,T,ct,x)}function X(P,...x){return J(P,Array.from,ct,x)}function ct(P){if(P.length!==1)throw new Error("duplicate key");return P[0]}function J(P,x,E,R){return(function U(G,Q){if(Q>=R.length)return E(G);let dt=new F,jt=R[Q++],ie=-1;for(let le of G){let pe=jt(le,++ie,G),Oe=dt.get(pe);Oe?Oe.push(le):dt.set(pe,[le])}for(let[le,pe]of dt)dt.set(le,U(pe,Q));return x(dt)})(P,0)}function bt(P,x){return Array.from(x,E=>P[E])}function Nt(P,...x){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");P=Array.from(P);let[E=t]=x;if(E.length===1||x.length>1){let R=Uint32Array.from(P,(U,G)=>G);return x.length>1?(x=x.map(U=>P.map(U)),R.sort((U,G)=>{for(let Q of x){let dt=t(Q[U],Q[G]);if(dt)return dt}})):(E=P.map(E),R.sort((U,G)=>t(E[U],E[G]))),bt(P,R)}return P.sort(E)}function zt(P,x,E){return(x.length===1?Nt(j(P,x,E),(([R,U],[G,Q])=>t(U,Q)||t(R,G))):Nt(D(P,E),(([R,U],[G,Q])=>x(U,Q)||t(R,G)))).map(([R])=>R)}var tt=Array.prototype,et=tt.slice;function gt(P){return function(){return P}}var at=Math.sqrt(50),nt=Math.sqrt(10),Ct=Math.sqrt(2);function st(P,x,E){var R,U=-1,G,Q,dt;if(x=+x,P=+P,E=+E,P===x&&E>0)return[P];if((R=x<P)&&(G=P,P=x,x=G),(dt=Jt(P,x,E))===0||!isFinite(dt))return[];if(dt>0){let jt=Math.round(P/dt),ie=Math.round(x/dt);for(jt*dt<P&&++jt,ie*dt>x&&--ie,Q=new Array(G=ie-jt+1);++U<G;)Q[U]=(jt+U)*dt}else{dt=-dt;let jt=Math.round(P*dt),ie=Math.round(x*dt);for(jt/dt<P&&++jt,ie/dt>x&&--ie,Q=new Array(G=ie-jt+1);++U<G;)Q[U]=(jt+U)/dt}return R&&Q.reverse(),Q}function Jt(P,x,E){var R=(x-P)/Math.max(0,E),U=Math.floor(Math.log(R)/Math.LN10),G=R/Math.pow(10,U);return U>=0?(G>=at?10:G>=nt?5:G>=Ct?2:1)*Math.pow(10,U):-Math.pow(10,-U)/(G>=at?10:G>=nt?5:G>=Ct?2:1)}function ne(P,x,E){var R=Math.abs(x-P)/Math.max(0,E),U=Math.pow(10,Math.floor(Math.log(R)/Math.LN10)),G=R/U;return G>=at?U*=10:G>=nt?U*=5:G>=Ct&&(U*=2),x<P?-U:U}function qt(P,x,E){let R;for(;;){let U=Jt(P,x,E);if(U===R||U===0||!isFinite(U))return[P,x];U>0?(P=Math.floor(P/U)*U,x=Math.ceil(x/U)*U):U<0&&(P=Math.ceil(P*U)/U,x=Math.floor(x*U)/U),R=U}}function se(P){return Math.ceil(Math.log(c(P))/Math.LN2)+1}function ot(){var P=T,x=A,E=se;function R(U){Array.isArray(U)||(U=Array.from(U));var G,Q=U.length,dt,jt=new Array(Q);for(G=0;G<Q;++G)jt[G]=P(U[G],G,U);var ie=x(jt),le=ie[0],pe=ie[1],Oe=E(jt,le,pe);if(!Array.isArray(Oe)){let QS=pe,pa=+Oe;if(x===A&&([le,pe]=qt(le,pe,pa)),Oe=st(le,pe,pa),Oe[Oe.length-1]>=pe)if(QS>=pe&&x===A){let $o=Jt(le,pe,pa);isFinite($o)&&($o>0?pe=(Math.floor(pe/$o)+1)*$o:$o<0&&(pe=(Math.ceil(pe*-$o)+1)/-$o))}else Oe.pop()}for(var Eo=Oe.length;Oe[0]<=le;)Oe.shift(),--Eo;for(;Oe[Eo-1]>pe;)Oe.pop(),--Eo;var Ba=new Array(Eo+1),Tc;for(G=0;G<=Eo;++G)Tc=Ba[G]=[],Tc.x0=G>0?Oe[G-1]:le,Tc.x1=G<Eo?Oe[G]:pe;for(G=0;G<Q;++G)dt=jt[G],le<=dt&&dt<=pe&&Ba[s(Oe,dt,0,Eo)].push(U[G]);return Ba}return R.value=function(U){return arguments.length?(P=typeof U=="function"?U:gt(U),R):P},R.domain=function(U){return arguments.length?(x=typeof U=="function"?U:gt([U[0],U[1]]),R):x},R.thresholds=function(U){return arguments.length?(E=typeof U=="function"?U:Array.isArray(U)?gt(et.call(U)):gt(U),R):E},R}function Ot(P,x){let E;if(x===void 0)for(let R of P)R!=null&&(E<R||E===void 0&&R>=R)&&(E=R);else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(E<U||E===void 0&&U>=U)&&(E=U)}return E}function _t(P,x){let E;if(x===void 0)for(let R of P)R!=null&&(E>R||E===void 0&&R>=R)&&(E=R);else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(E>U||E===void 0&&U>=U)&&(E=U)}return E}function Dt(P,x,E=0,R=P.length-1,U=t){for(;R>E;){if(R-E>600){let jt=R-E+1,ie=x-E+1,le=Math.log(jt),pe=.5*Math.exp(2*le/3),Oe=.5*Math.sqrt(le*pe*(jt-pe)/jt)*(ie-jt/2<0?-1:1),Eo=Math.max(E,Math.floor(x-ie*pe/jt+Oe)),Ba=Math.min(R,Math.floor(x+(jt-ie)*pe/jt+Oe));Dt(P,x,Eo,Ba,U)}let G=P[x],Q=E,dt=R;for(Tt(P,E,x),U(P[R],G)>0&&Tt(P,E,R);Q<dt;){for(Tt(P,Q,dt),++Q,--dt;U(P[Q],G)<0;)++Q;for(;U(P[dt],G)>0;)--dt}U(P[E],G)===0?Tt(P,E,dt):(++dt,Tt(P,dt,R)),dt<=x&&(E=dt+1),x<=dt&&(R=dt-1)}return P}function Tt(P,x,E){let R=P[x];P[x]=P[E],P[E]=R}function Ft(P,x,E){if(P=Float64Array.from(i(P,E)),!!(R=P.length)){if((x=+x)<=0||R<2)return _t(P);if(x>=1)return Ot(P);var R,U=(R-1)*x,G=Math.floor(U),Q=Ot(Dt(P,G).subarray(0,G+1)),dt=_t(P.subarray(G+1));return Q+(dt-Q)*(U-G)}}function fe(P,x,E=n){if(R=P.length){if((x=+x)<=0||R<2)return+E(P[0],0,P);if(x>=1)return+E(P[R-1],R-1,P);var R,U=(R-1)*x,G=Math.floor(U),Q=+E(P[G],G,P),dt=+E(P[G+1],G+1,P);return Q+(dt-Q)*(U-G)}}function Rr(P,x,E){return Math.ceil((E-x)/(2*(Ft(P,.75)-Ft(P,.25))*Math.pow(c(P),-1/3)))}function Xe(P,x,E){return Math.ceil((E-x)/(3.5*v(P)*Math.pow(c(P),-1/3)))}function re(P,x){let E,R=-1,U=-1;if(x===void 0)for(let G of P)++U,G!=null&&(E<G||E===void 0&&G>=G)&&(E=G,R=U);else for(let G of P)(G=x(G,++U,P))!=null&&(E<G||E===void 0&&G>=G)&&(E=G,R=U);return R}function Rt(P,x){let E=0,R=0;if(x===void 0)for(let U of P)U!=null&&(U=+U)>=U&&(++E,R+=U);else{let U=-1;for(let G of P)(G=x(G,++U,P))!=null&&(G=+G)>=G&&(++E,R+=G)}if(E)return R/E}function ee(P,x){return Ft(P,.5,x)}function*we(P){for(let x of P)yield*x}function We(P){return Array.from(we(P))}function qe(P,x){let E,R=-1,U=-1;if(x===void 0)for(let G of P)++U,G!=null&&(E>G||E===void 0&&G>=G)&&(E=G,R=U);else for(let G of P)(G=x(G,++U,P))!=null&&(E>G||E===void 0&&G>=G)&&(E=G,R=U);return R}function $e(P,x=mr){let E=[],R,U=!1;for(let G of P)U&&E.push(x(R,G)),R=G,U=!0;return E}function mr(P,x){return[P,x]}function pr(P,x,E){P=+P,x=+x,E=(U=arguments.length)<2?(x=P,P=0,1):U<3?1:+E;for(var R=-1,U=Math.max(0,Math.ceil((x-P)/E))|0,G=new Array(U);++R<U;)G[R]=P+R*E;return G}function jr(P,x=t){let E,R=!1;if(x.length===1){let U;for(let G of P){let Q=x(G);(R?t(Q,U)<0:t(Q,Q)===0)&&(E=G,U=Q,R=!0)}}else for(let U of P)(R?x(U,E)<0:x(U,U)===0)&&(E=U,R=!0);return E}function co(P,x=t){if(x.length===1)return qe(P,x);let E,R=-1,U=-1;for(let G of P)++U,(R<0?x(G,G)===0:x(G,E)<0)&&(E=G,R=U);return R}function ma(P,x=t){let E,R=!1;if(x.length===1){let U;for(let G of P){let Q=x(G);(R?t(Q,U)>0:t(Q,Q)===0)&&(E=G,U=Q,R=!0)}}else for(let U of P)(R?x(U,E)>0:x(U,U)===0)&&(E=U,R=!0);return E}function wi(P,x=t){if(x.length===1)return re(P,x);let E,R=-1,U=-1;for(let G of P)++U,(R<0?x(G,G)===0:x(G,E)>0)&&(E=G,R=U);return R}function hs(P,x){let E=co(P,x);return E<0?void 0:E}var Ec=Jl(Math.random);function Jl(P){return function(E,R=0,U=E.length){let G=U-(R=+R);for(;G;){let Q=P()*G--|0,dt=E[G+R];E[G+R]=E[Q+R],E[Q+R]=dt}return E}}function om(P,x){let E=0;if(x===void 0)for(let R of P)(R=+R)&&(E+=R);else{let R=-1;for(let U of P)(U=+x(U,++R,P))&&(E+=U)}return E}function ms(P){if(!(G=P.length))return[];for(var x=-1,E=_t(P,ps),R=new Array(E);++x<E;)for(var U=-1,G,Q=R[x]=new Array(G);++U<G;)Q[U]=P[U][x];return R}function ps(P){return P.length}function ds(){return ms(arguments)}function Cc(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=-1;for(let R of P)if(!x(R,++E,P))return!1;return!0}function Ql(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=-1;for(let R of P)if(x(R,++E,P))return!0;return!1}function nm(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=[],R=-1;for(let U of P)x(U,++R,P)&&E.push(U);return E}function Bn(P,x){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof x!="function")throw new TypeError("mapper is not a function");return Array.from(P,(E,R)=>x(E,R,P))}function kc(P,x,E){if(typeof x!="function")throw new TypeError("reducer is not a function");let R=P[Symbol.iterator](),U,G,Q=-1;if(arguments.length<3){if({done:U,value:E}=R.next(),U)return;++Q}for(;{done:U,value:G}=R.next(),!U;)E=x(E,G,++Q,P);return E}function Zl(P){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(P).reverse()}function im(P,...x){P=new Set(P);for(let E of x)for(let R of E)P.delete(R);return P}function am(P,x){let E=x[Symbol.iterator](),R=new Set;for(let U of P){if(R.has(U))return!1;let G,Q;for(;({value:G,done:Q}=E.next())&&!Q;){if(Object.is(U,G))return!1;R.add(G)}}return!0}function sm(P){return P instanceof Set?P:new Set(P)}function Mc(P,...x){P=new Set(P),x=x.map(sm);t:for(let E of P)for(let R of x)if(!R.has(E)){P.delete(E);continue t}return P}function tu(P,x){let E=P[Symbol.iterator](),R=new Set;for(let U of x){if(R.has(U))continue;let G,Q;for(;{value:G,done:Q}=E.next();){if(Q)return!1;if(R.add(G),Object.is(U,G))break}}return!0}function lm(P,x){return tu(x,P)}function eu(...P){let x=new Set;for(let E of P)for(let R of E)x.add(R);return x}r.Adder=M,r.InternMap=F,r.InternSet=L,r.ascending=t,r.bin=ot,r.bisect=s,r.bisectCenter=u,r.bisectLeft=l,r.bisectRight=s,r.bisector=e,r.count=c,r.cross=d,r.cumsum=f,r.descending=b,r.deviation=v,r.difference=im,r.disjoint=am,r.every=Cc,r.extent=A,r.fcumsum=B,r.filter=nm,r.fsum=C,r.greatest=ma,r.greatestIndex=wi,r.group=D,r.groupSort=zt,r.groups=V,r.histogram=ot,r.index=z,r.indexes=X,r.intersection=Mc,r.least=jr,r.leastIndex=co,r.map=Bn,r.max=Ot,r.maxIndex=re,r.mean=Rt,r.median=ee,r.merge=We,r.min=_t,r.minIndex=qe,r.nice=qt,r.pairs=$e,r.permute=bt,r.quantile=Ft,r.quantileSorted=fe,r.quickselect=Dt,r.range=pr,r.reduce=kc,r.reverse=Zl,r.rollup=j,r.rollups=K,r.scan=hs,r.shuffle=Ec,r.shuffler=Jl,r.some=Ql,r.sort=Nt,r.subset=lm,r.sum=om,r.superset=tu,r.thresholdFreedmanDiaconis=Rr,r.thresholdScott=Xe,r.thresholdSturges=se,r.tickIncrement=Jt,r.tickStep=ne,r.ticks=st,r.transpose=ms,r.union=eu,r.variance=S,r.zip=ds,Object.defineProperty(r,"__esModule",{value:!0})}))});var LH=ar((s7,WH)=>{(function(r,t){typeof s7=="object"&&typeof WH<"u"?t(s7):typeof define=="function"&&define.amd?define(["exports"],t):(r=r||self,t(r.d3=r.d3||{}))})(s7,function(r){"use strict";var t=Math.PI,e=2*t,o=1e-6,n=e-o;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new i}i.prototype=a.prototype={constructor:i,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,c){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+c)},bezierCurveTo:function(s,l,u,c,h,m){this._+="C"+ +s+","+ +l+","+ +u+","+ +c+","+(this._x1=+h)+","+(this._y1=+m)},arcTo:function(s,l,u,c,h){s=+s,l=+l,u=+u,c=+c,h=+h;var m=this._x1,p=this._y1,g=u-s,d=c-l,f=m-s,b=p-l,S=f*f+b*b;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(S>o)if(!(Math.abs(b*g-d*f)>o)||!h)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var v=u-m,A=c-p,M=g*g+d*d,C=v*v+A*A,B=Math.sqrt(M),F=Math.sqrt(S),L=h*Math.tan((t-Math.acos((M+S-C)/(2*B*F)))/2),I=L/F,N=L/B;Math.abs(I-1)>o&&(this._+="L"+(s+I*f)+","+(l+I*b)),this._+="A"+h+","+h+",0,0,"+ +(b*v>f*A)+","+(this._x1=s+N*g)+","+(this._y1=l+N*d)}},arc:function(s,l,u,c,h,m){s=+s,l=+l,u=+u,m=!!m;var p=u*Math.cos(c),g=u*Math.sin(c),d=s+p,f=l+g,b=1^m,S=m?c-h:h-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+d+","+f:(Math.abs(this._x1-d)>o||Math.abs(this._y1-f)>o)&&(this._+="L"+d+","+f),u&&(S<0&&(S=S%e+e),S>n?this._+="A"+u+","+u+",0,1,"+b+","+(s-p)+","+(l-g)+"A"+u+","+u+",0,1,"+b+","+(this._x1=d)+","+(this._y1=f):S>o&&(this._+="A"+u+","+u+",0,"+ +(S>=t)+","+b+","+(this._x1=s+u*Math.cos(h))+","+(this._y1=l+u*Math.sin(h))))},rect:function(s,l,u,c){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +c+"h"+-u+"Z"},toString:function(){return this._}},r.path=a,Object.defineProperty(r,"__esModule",{value:!0})})});var RH=ar((l7,IH)=>{(function(r,t){typeof l7=="object"&&typeof IH<"u"?t(l7,LH()):typeof define=="function"&&define.amd?define(["exports","d3-path"],t):(r=r||self,t(r.d3=r.d3||{},r.d3))})(l7,function(r,t){"use strict";function e(W){return function(){return W}}var o=Math.abs,n=Math.atan2,i=Math.cos,a=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,h=Math.PI,m=h/2,p=2*h;function g(W){return W>1?0:W<-1?h:Math.acos(W)}function d(W){return W>=1?m:W<=-1?-m:Math.asin(W)}function f(W){return W.innerRadius}function b(W){return W.outerRadius}function S(W){return W.startAngle}function v(W){return W.endAngle}function A(W){return W&&W.padAngle}function M(W,H,$,ut,Et,Wt,Ut,pt){var Gt=$-W,Pe=ut-H,be=Ut-Et,Le=pt-Wt,Je=Le*Gt-be*Pe;if(!(Je*Je<c))return Je=(be*(H-Wt)-Le*(W-Et))/Je,[W+Je*Gt,H+Je*Pe]}function C(W,H,$,ut,Et,Wt,Ut){var pt=W-$,Gt=H-ut,Pe=(Ut?Wt:-Wt)/u(pt*pt+Gt*Gt),be=Pe*Gt,Le=-Pe*pt,Je=W+be,io=H+Le,Ir=$+be,Lo=ut+Le,Zr=(Je+Ir)/2,On=(io+Lo)/2,En=Ir-Je,bn=Lo-io,Dn=En*En+bn*bn,ys=Et-Wt,da=Je*Lo-Ir*io,um=(bn<0?-1:1)*u(a(0,ys*ys*Dn-da*da)),cm=(da*bn-En*um)/Dn,fs=(-da*En-bn*um)/Dn,il=(da*bn+En*um)/Dn,al=(-da*En+bn*um)/Dn,yr=cm-Zr,mo=fs-On,yd=il-Zr,fd=al-On;return yr*yr+mo*mo>yd*yd+fd*fd&&(cm=il,fs=al),{cx:cm,cy:fs,x01:-be,y01:-Le,x11:cm*(Et/ys-1),y11:fs*(Et/ys-1)}}function B(){var W=f,H=b,$=e(0),ut=null,Et=S,Wt=v,Ut=A,pt=null;function Gt(){var Pe,be,Le=+W.apply(this,arguments),Je=+H.apply(this,arguments),io=Et.apply(this,arguments)-m,Ir=Wt.apply(this,arguments)-m,Lo=o(Ir-io),Zr=Ir>io;if(pt||(pt=Pe=t.path()),Je<Le&&(be=Je,Je=Le,Le=be),!(Je>c))pt.moveTo(0,0);else if(Lo>p-c)pt.moveTo(Je*i(io),Je*l(io)),pt.arc(0,0,Je,io,Ir,!Zr),Le>c&&(pt.moveTo(Le*i(Ir),Le*l(Ir)),pt.arc(0,0,Le,Ir,io,Zr));else{var On=io,En=Ir,bn=io,Dn=Ir,ys=Lo,da=Lo,um=Ut.apply(this,arguments)/2,cm=um>c&&(ut?+ut.apply(this,arguments):u(Le*Le+Je*Je)),fs=s(o(Je-Le)/2,+$.apply(this,arguments)),il=fs,al=fs,yr,mo;if(cm>c){var yd=d(cm/Le*l(um)),fd=d(cm/Je*l(um));(ys-=yd*2)>c?(yd*=Zr?1:-1,bn+=yd,Dn-=yd):(ys=0,bn=Dn=(io+Ir)/2),(da-=fd*2)>c?(fd*=Zr?1:-1,On+=fd,En-=fd):(da=0,On=En=(io+Ir)/2)}var Bf=Je*i(On),Of=Je*l(On),OP=Le*i(Dn),DP=Le*l(Dn);if(fs>c){var FP=Je*i(En),GP=Je*l(En),k8=Le*i(bn),M8=Le*l(bn),Wc;if(Lo<h&&(Wc=M(Bf,Of,k8,M8,FP,GP,OP,DP))){var T8=Bf-Wc[0],W8=Of-Wc[1],L8=FP-Wc[0],I8=GP-Wc[1],DT=1/l(g((T8*L8+W8*I8)/(u(T8*T8+W8*W8)*u(L8*L8+I8*I8)))/2),FT=u(Wc[0]*Wc[0]+Wc[1]*Wc[1]);il=s(fs,(Le-FT)/(DT-1)),al=s(fs,(Je-FT)/(DT+1))}}da>c?al>c?(yr=C(k8,M8,Bf,Of,Je,al,Zr),mo=C(FP,GP,OP,DP,Je,al,Zr),pt.moveTo(yr.cx+yr.x01,yr.cy+yr.y01),al<fs?pt.arc(yr.cx,yr.cy,al,n(yr.y01,yr.x01),n(mo.y01,mo.x01),!Zr):(pt.arc(yr.cx,yr.cy,al,n(yr.y01,yr.x01),n(yr.y11,yr.x11),!Zr),pt.arc(0,0,Je,n(yr.cy+yr.y11,yr.cx+yr.x11),n(mo.cy+mo.y11,mo.cx+mo.x11),!Zr),pt.arc(mo.cx,mo.cy,al,n(mo.y11,mo.x11),n(mo.y01,mo.x01),!Zr))):(pt.moveTo(Bf,Of),pt.arc(0,0,Je,On,En,!Zr)):pt.moveTo(Bf,Of),!(Le>c)||!(ys>c)?pt.lineTo(OP,DP):il>c?(yr=C(OP,DP,FP,GP,Le,-il,Zr),mo=C(Bf,Of,k8,M8,Le,-il,Zr),pt.lineTo(yr.cx+yr.x01,yr.cy+yr.y01),il<fs?pt.arc(yr.cx,yr.cy,il,n(yr.y01,yr.x01),n(mo.y01,mo.x01),!Zr):(pt.arc(yr.cx,yr.cy,il,n(yr.y01,yr.x01),n(yr.y11,yr.x11),!Zr),pt.arc(0,0,Le,n(yr.cy+yr.y11,yr.cx+yr.x11),n(mo.cy+mo.y11,mo.cx+mo.x11),Zr),pt.arc(mo.cx,mo.cy,il,n(mo.y11,mo.x11),n(mo.y01,mo.x01),!Zr))):pt.arc(0,0,Le,Dn,bn,Zr)}if(pt.closePath(),Pe)return pt=null,Pe+""||null}return Gt.centroid=function(){var Pe=(+W.apply(this,arguments)+ +H.apply(this,arguments))/2,be=(+Et.apply(this,arguments)+ +Wt.apply(this,arguments))/2-h/2;return[i(be)*Pe,l(be)*Pe]},Gt.innerRadius=function(Pe){return arguments.length?(W=typeof Pe=="function"?Pe:e(+Pe),Gt):W},Gt.outerRadius=function(Pe){return arguments.length?(H=typeof Pe=="function"?Pe:e(+Pe),Gt):H},Gt.cornerRadius=function(Pe){return arguments.length?($=typeof Pe=="function"?Pe:e(+Pe),Gt):$},Gt.padRadius=function(Pe){return arguments.length?(ut=Pe==null?null:typeof Pe=="function"?Pe:e(+Pe),Gt):ut},Gt.startAngle=function(Pe){return arguments.length?(Et=typeof Pe=="function"?Pe:e(+Pe),Gt):Et},Gt.endAngle=function(Pe){return arguments.length?(Wt=typeof Pe=="function"?Pe:e(+Pe),Gt):Wt},Gt.padAngle=function(Pe){return arguments.length?(Ut=typeof Pe=="function"?Pe:e(+Pe),Gt):Ut},Gt.context=function(Pe){return arguments.length?(pt=Pe??null,Gt):pt},Gt}function F(W){this._context=W}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2;default:this._context.lineTo(W,H);break}}};function L(W){return new F(W)}function I(W){return W[0]}function N(W){return W[1]}function _(){var W=I,H=N,$=e(!0),ut=null,Et=L,Wt=null;function Ut(pt){var Gt,Pe=pt.length,be,Le=!1,Je;for(ut==null&&(Wt=Et(Je=t.path())),Gt=0;Gt<=Pe;++Gt)!(Gt<Pe&&$(be=pt[Gt],Gt,pt))===Le&&((Le=!Le)?Wt.lineStart():Wt.lineEnd()),Le&&Wt.point(+W(be,Gt,pt),+H(be,Gt,pt));if(Je)return Wt=null,Je+""||null}return Ut.x=function(pt){return arguments.length?(W=typeof pt=="function"?pt:e(+pt),Ut):W},Ut.y=function(pt){return arguments.length?(H=typeof pt=="function"?pt:e(+pt),Ut):H},Ut.defined=function(pt){return arguments.length?($=typeof pt=="function"?pt:e(!!pt),Ut):$},Ut.curve=function(pt){return arguments.length?(Et=pt,ut!=null&&(Wt=Et(ut)),Ut):Et},Ut.context=function(pt){return arguments.length?(pt==null?ut=Wt=null:Wt=Et(ut=pt),Ut):ut},Ut}function O(){var W=I,H=null,$=e(0),ut=N,Et=e(!0),Wt=null,Ut=L,pt=null;function Gt(be){var Le,Je,io,Ir=be.length,Lo,Zr=!1,On,En=new Array(Ir),bn=new Array(Ir);for(Wt==null&&(pt=Ut(On=t.path())),Le=0;Le<=Ir;++Le){if(!(Le<Ir&&Et(Lo=be[Le],Le,be))===Zr)if(Zr=!Zr)Je=Le,pt.areaStart(),pt.lineStart();else{for(pt.lineEnd(),pt.lineStart(),io=Le-1;io>=Je;--io)pt.point(En[io],bn[io]);pt.lineEnd(),pt.areaEnd()}Zr&&(En[Le]=+W(Lo,Le,be),bn[Le]=+$(Lo,Le,be),pt.point(H?+H(Lo,Le,be):En[Le],ut?+ut(Lo,Le,be):bn[Le]))}if(On)return pt=null,On+""||null}function Pe(){return _().defined(Et).curve(Ut).context(Wt)}return Gt.x=function(be){return arguments.length?(W=typeof be=="function"?be:e(+be),H=null,Gt):W},Gt.x0=function(be){return arguments.length?(W=typeof be=="function"?be:e(+be),Gt):W},Gt.x1=function(be){return arguments.length?(H=be==null?null:typeof be=="function"?be:e(+be),Gt):H},Gt.y=function(be){return arguments.length?($=typeof be=="function"?be:e(+be),ut=null,Gt):$},Gt.y0=function(be){return arguments.length?($=typeof be=="function"?be:e(+be),Gt):$},Gt.y1=function(be){return arguments.length?(ut=be==null?null:typeof be=="function"?be:e(+be),Gt):ut},Gt.lineX0=Gt.lineY0=function(){return Pe().x(W).y($)},Gt.lineY1=function(){return Pe().x(W).y(ut)},Gt.lineX1=function(){return Pe().x(H).y($)},Gt.defined=function(be){return arguments.length?(Et=typeof be=="function"?be:e(!!be),Gt):Et},Gt.curve=function(be){return arguments.length?(Ut=be,Wt!=null&&(pt=Ut(Wt)),Gt):Ut},Gt.context=function(be){return arguments.length?(be==null?Wt=pt=null:pt=Ut(Wt=be),Gt):Wt},Gt}function T(W,H){return H<W?-1:H>W?1:H>=W?0:NaN}function D(W){return W}function V(){var W=D,H=T,$=null,ut=e(0),Et=e(p),Wt=e(0);function Ut(pt){var Gt,Pe=pt.length,be,Le,Je=0,io=new Array(Pe),Ir=new Array(Pe),Lo=+ut.apply(this,arguments),Zr=Math.min(p,Math.max(-p,Et.apply(this,arguments)-Lo)),On,En=Math.min(Math.abs(Zr)/Pe,Wt.apply(this,arguments)),bn=En*(Zr<0?-1:1),Dn;for(Gt=0;Gt<Pe;++Gt)(Dn=Ir[io[Gt]=Gt]=+W(pt[Gt],Gt,pt))>0&&(Je+=Dn);for(H!=null?io.sort(function(ys,da){return H(Ir[ys],Ir[da])}):$!=null&&io.sort(function(ys,da){return $(pt[ys],pt[da])}),Gt=0,Le=Je?(Zr-Pe*bn)/Je:0;Gt<Pe;++Gt,Lo=On)be=io[Gt],Dn=Ir[be],On=Lo+(Dn>0?Dn*Le:0)+bn,Ir[be]={data:pt[be],index:Gt,value:Dn,startAngle:Lo,endAngle:On,padAngle:En};return Ir}return Ut.value=function(pt){return arguments.length?(W=typeof pt=="function"?pt:e(+pt),Ut):W},Ut.sortValues=function(pt){return arguments.length?(H=pt,$=null,Ut):H},Ut.sort=function(pt){return arguments.length?($=pt,H=null,Ut):$},Ut.startAngle=function(pt){return arguments.length?(ut=typeof pt=="function"?pt:e(+pt),Ut):ut},Ut.endAngle=function(pt){return arguments.length?(Et=typeof pt=="function"?pt:e(+pt),Ut):Et},Ut.padAngle=function(pt){return arguments.length?(Wt=typeof pt=="function"?pt:e(+pt),Ut):Wt},Ut}var j=z(L);function K(W){this._curve=W}K.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(W,H){this._curve.point(H*Math.sin(W),H*-Math.cos(W))}};function z(W){function H($){return new K(W($))}return H._curve=W,H}function X(W){var H=W.curve;return W.angle=W.x,delete W.x,W.radius=W.y,delete W.y,W.curve=function($){return arguments.length?H(z($)):H()._curve},W}function ct(){return X(_().curve(j))}function J(){var W=O().curve(j),H=W.curve,$=W.lineX0,ut=W.lineX1,Et=W.lineY0,Wt=W.lineY1;return W.angle=W.x,delete W.x,W.startAngle=W.x0,delete W.x0,W.endAngle=W.x1,delete W.x1,W.radius=W.y,delete W.y,W.innerRadius=W.y0,delete W.y0,W.outerRadius=W.y1,delete W.y1,W.lineStartAngle=function(){return X($())},delete W.lineX0,W.lineEndAngle=function(){return X(ut())},delete W.lineX1,W.lineInnerRadius=function(){return X(Et())},delete W.lineY0,W.lineOuterRadius=function(){return X(Wt())},delete W.lineY1,W.curve=function(Ut){return arguments.length?H(z(Ut)):H()._curve},W}function bt(W,H){return[(H=+H)*Math.cos(W-=Math.PI/2),H*Math.sin(W)]}var Nt=Array.prototype.slice;function zt(W){return W.source}function tt(W){return W.target}function et(W){var H=zt,$=tt,ut=I,Et=N,Wt=null;function Ut(){var pt,Gt=Nt.call(arguments),Pe=H.apply(this,Gt),be=$.apply(this,Gt);if(Wt||(Wt=pt=t.path()),W(Wt,+ut.apply(this,(Gt[0]=Pe,Gt)),+Et.apply(this,Gt),+ut.apply(this,(Gt[0]=be,Gt)),+Et.apply(this,Gt)),pt)return Wt=null,pt+""||null}return Ut.source=function(pt){return arguments.length?(H=pt,Ut):H},Ut.target=function(pt){return arguments.length?($=pt,Ut):$},Ut.x=function(pt){return arguments.length?(ut=typeof pt=="function"?pt:e(+pt),Ut):ut},Ut.y=function(pt){return arguments.length?(Et=typeof pt=="function"?pt:e(+pt),Ut):Et},Ut.context=function(pt){return arguments.length?(Wt=pt??null,Ut):Wt},Ut}function gt(W,H,$,ut,Et){W.moveTo(H,$),W.bezierCurveTo(H=(H+ut)/2,$,H,Et,ut,Et)}function at(W,H,$,ut,Et){W.moveTo(H,$),W.bezierCurveTo(H,$=($+Et)/2,ut,$,ut,Et)}function nt(W,H,$,ut,Et){var Wt=bt(H,$),Ut=bt(H,$=($+Et)/2),pt=bt(ut,$),Gt=bt(ut,Et);W.moveTo(Wt[0],Wt[1]),W.bezierCurveTo(Ut[0],Ut[1],pt[0],pt[1],Gt[0],Gt[1])}function Ct(){return et(gt)}function st(){return et(at)}function Jt(){var W=et(nt);return W.angle=W.x,delete W.x,W.radius=W.y,delete W.y,W}var ne={draw:function(W,H){var $=Math.sqrt(H/h);W.moveTo($,0),W.arc(0,0,$,0,p)}},qt={draw:function(W,H){var $=Math.sqrt(H/5)/2;W.moveTo(-3*$,-$),W.lineTo(-$,-$),W.lineTo(-$,-3*$),W.lineTo($,-3*$),W.lineTo($,-$),W.lineTo(3*$,-$),W.lineTo(3*$,$),W.lineTo($,$),W.lineTo($,3*$),W.lineTo(-$,3*$),W.lineTo(-$,$),W.lineTo(-3*$,$),W.closePath()}},se=Math.sqrt(1/3),ot=se*2,Ot={draw:function(W,H){var $=Math.sqrt(H/ot),ut=$*se;W.moveTo(0,-$),W.lineTo(ut,0),W.lineTo(0,$),W.lineTo(-ut,0),W.closePath()}},_t=.8908130915292852,Dt=Math.sin(h/10)/Math.sin(7*h/10),Tt=Math.sin(p/10)*Dt,Ft=-Math.cos(p/10)*Dt,fe={draw:function(W,H){var $=Math.sqrt(H*_t),ut=Tt*$,Et=Ft*$;W.moveTo(0,-$),W.lineTo(ut,Et);for(var Wt=1;Wt<5;++Wt){var Ut=p*Wt/5,pt=Math.cos(Ut),Gt=Math.sin(Ut);W.lineTo(Gt*$,-pt*$),W.lineTo(pt*ut-Gt*Et,Gt*ut+pt*Et)}W.closePath()}},Rr={draw:function(W,H){var $=Math.sqrt(H),ut=-$/2;W.rect(ut,ut,$,$)}},Xe=Math.sqrt(3),re={draw:function(W,H){var $=-Math.sqrt(H/(Xe*3));W.moveTo(0,$*2),W.lineTo(-Xe*$,-$),W.lineTo(Xe*$,-$),W.closePath()}},Rt=-.5,ee=Math.sqrt(3)/2,we=1/Math.sqrt(12),We=(we/2+1)*3,qe={draw:function(W,H){var $=Math.sqrt(H/We),ut=$/2,Et=$*we,Wt=ut,Ut=$*we+$,pt=-Wt,Gt=Ut;W.moveTo(ut,Et),W.lineTo(Wt,Ut),W.lineTo(pt,Gt),W.lineTo(Rt*ut-ee*Et,ee*ut+Rt*Et),W.lineTo(Rt*Wt-ee*Ut,ee*Wt+Rt*Ut),W.lineTo(Rt*pt-ee*Gt,ee*pt+Rt*Gt),W.lineTo(Rt*ut+ee*Et,Rt*Et-ee*ut),W.lineTo(Rt*Wt+ee*Ut,Rt*Ut-ee*Wt),W.lineTo(Rt*pt+ee*Gt,Rt*Gt-ee*pt),W.closePath()}},$e=[ne,qt,Ot,Rr,fe,re,qe];function mr(){var W=e(ne),H=e(64),$=null;function ut(){var Et;if($||($=Et=t.path()),W.apply(this,arguments).draw($,+H.apply(this,arguments)),Et)return $=null,Et+""||null}return ut.type=function(Et){return arguments.length?(W=typeof Et=="function"?Et:e(Et),ut):W},ut.size=function(Et){return arguments.length?(H=typeof Et=="function"?Et:e(+Et),ut):H},ut.context=function(Et){return arguments.length?($=Et??null,ut):$},ut}function pr(){}function jr(W,H,$){W._context.bezierCurveTo((2*W._x0+W._x1)/3,(2*W._y0+W._y1)/3,(W._x0+2*W._x1)/3,(W._y0+2*W._y1)/3,(W._x0+4*W._x1+H)/6,(W._y0+4*W._y1+$)/6)}function co(W){this._context=W}co.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:jr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:jr(this,W,H);break}this._x0=this._x1,this._x1=W,this._y0=this._y1,this._y1=H}};function ma(W){return new co(W)}function wi(W){this._context=W}wi.prototype={areaStart:pr,areaEnd:pr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._x2=W,this._y2=H;break;case 1:this._point=2,this._x3=W,this._y3=H;break;case 2:this._point=3,this._x4=W,this._y4=H,this._context.moveTo((this._x0+4*this._x1+W)/6,(this._y0+4*this._y1+H)/6);break;default:jr(this,W,H);break}this._x0=this._x1,this._x1=W,this._y0=this._y1,this._y1=H}};function hs(W){return new wi(W)}function Ec(W){this._context=W}Ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var $=(this._x0+4*this._x1+W)/6,ut=(this._y0+4*this._y1+H)/6;this._line?this._context.lineTo($,ut):this._context.moveTo($,ut);break;case 3:this._point=4;default:jr(this,W,H);break}this._x0=this._x1,this._x1=W,this._y0=this._y1,this._y1=H}};function Jl(W){return new Ec(W)}function om(W,H){this._basis=new co(W),this._beta=H}om.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var W=this._x,H=this._y,$=W.length-1;if($>0)for(var ut=W[0],Et=H[0],Wt=W[$]-ut,Ut=H[$]-Et,pt=-1,Gt;++pt<=$;)Gt=pt/$,this._basis.point(this._beta*W[pt]+(1-this._beta)*(ut+Gt*Wt),this._beta*H[pt]+(1-this._beta)*(Et+Gt*Ut));this._x=this._y=null,this._basis.lineEnd()},point:function(W,H){this._x.push(+W),this._y.push(+H)}};var ms=(function W(H){function $(ut){return H===1?new co(ut):new om(ut,H)}return $.beta=function(ut){return W(+ut)},$})(.85);function ps(W,H,$){W._context.bezierCurveTo(W._x1+W._k*(W._x2-W._x0),W._y1+W._k*(W._y2-W._y0),W._x2+W._k*(W._x1-H),W._y2+W._k*(W._y1-$),W._x2,W._y2)}function ds(W,H){this._context=W,this._k=(1-H)/6}ds.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ps(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2,this._x1=W,this._y1=H;break;case 2:this._point=3;default:ps(this,W,H);break}this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var Cc=(function W(H){function $(ut){return new ds(ut,H)}return $.tension=function(ut){return W(+ut)},$})(0);function Ql(W,H){this._context=W,this._k=(1-H)/6}Ql.prototype={areaStart:pr,areaEnd:pr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._x3=W,this._y3=H;break;case 1:this._point=2,this._context.moveTo(this._x4=W,this._y4=H);break;case 2:this._point=3,this._x5=W,this._y5=H;break;default:ps(this,W,H);break}this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var nm=(function W(H){function $(ut){return new Ql(ut,H)}return $.tension=function(ut){return W(+ut)},$})(0);function Bn(W,H){this._context=W,this._k=(1-H)/6}Bn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ps(this,W,H);break}this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var kc=(function W(H){function $(ut){return new Bn(ut,H)}return $.tension=function(ut){return W(+ut)},$})(0);function Zl(W,H,$){var ut=W._x1,Et=W._y1,Wt=W._x2,Ut=W._y2;if(W._l01_a>c){var pt=2*W._l01_2a+3*W._l01_a*W._l12_a+W._l12_2a,Gt=3*W._l01_a*(W._l01_a+W._l12_a);ut=(ut*pt-W._x0*W._l12_2a+W._x2*W._l01_2a)/Gt,Et=(Et*pt-W._y0*W._l12_2a+W._y2*W._l01_2a)/Gt}if(W._l23_a>c){var Pe=2*W._l23_2a+3*W._l23_a*W._l12_a+W._l12_2a,be=3*W._l23_a*(W._l23_a+W._l12_a);Wt=(Wt*Pe+W._x1*W._l23_2a-H*W._l12_2a)/be,Ut=(Ut*Pe+W._y1*W._l23_2a-$*W._l12_2a)/be}W._context.bezierCurveTo(ut,Et,Wt,Ut,W._x2,W._y2)}function im(W,H){this._context=W,this._alpha=H}im.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){if(W=+W,H=+H,this._point){var $=this._x2-W,ut=this._y2-H;this._l23_a=Math.sqrt(this._l23_2a=Math.pow($*$+ut*ut,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2;break;case 2:this._point=3;default:Zl(this,W,H);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var am=(function W(H){function $(ut){return H?new im(ut,H):new ds(ut,0)}return $.alpha=function(ut){return W(+ut)},$})(.5);function sm(W,H){this._context=W,this._alpha=H}sm.prototype={areaStart:pr,areaEnd:pr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(W,H){if(W=+W,H=+H,this._point){var $=this._x2-W,ut=this._y2-H;this._l23_a=Math.sqrt(this._l23_2a=Math.pow($*$+ut*ut,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=W,this._y3=H;break;case 1:this._point=2,this._context.moveTo(this._x4=W,this._y4=H);break;case 2:this._point=3,this._x5=W,this._y5=H;break;default:Zl(this,W,H);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var Mc=(function W(H){function $(ut){return H?new sm(ut,H):new Ql(ut,0)}return $.alpha=function(ut){return W(+ut)},$})(.5);function tu(W,H){this._context=W,this._alpha=H}tu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){if(W=+W,H=+H,this._point){var $=this._x2-W,ut=this._y2-H;this._l23_a=Math.sqrt(this._l23_2a=Math.pow($*$+ut*ut,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Zl(this,W,H);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=W,this._y0=this._y1,this._y1=this._y2,this._y2=H}};var lm=(function W(H){function $(ut){return H?new tu(ut,H):new Bn(ut,0)}return $.alpha=function(ut){return W(+ut)},$})(.5);function eu(W){this._context=W}eu.prototype={areaStart:pr,areaEnd:pr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(W,H){W=+W,H=+H,this._point?this._context.lineTo(W,H):(this._point=1,this._context.moveTo(W,H))}};function P(W){return new eu(W)}function x(W){return W<0?-1:1}function E(W,H,$){var ut=W._x1-W._x0,Et=H-W._x1,Wt=(W._y1-W._y0)/(ut||Et<0&&-0),Ut=($-W._y1)/(Et||ut<0&&-0),pt=(Wt*Et+Ut*ut)/(ut+Et);return(x(Wt)+x(Ut))*Math.min(Math.abs(Wt),Math.abs(Ut),.5*Math.abs(pt))||0}function R(W,H){var $=W._x1-W._x0;return $?(3*(W._y1-W._y0)/$-H)/2:H}function U(W,H,$){var ut=W._x0,Et=W._y0,Wt=W._x1,Ut=W._y1,pt=(Wt-ut)/3;W._context.bezierCurveTo(ut+pt,Et+pt*H,Wt-pt,Ut-pt*$,Wt,Ut)}function G(W){this._context=W}G.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:U(this,this._t0,R(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(W,H){var $=NaN;if(W=+W,H=+H,!(W===this._x1&&H===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2;break;case 2:this._point=3,U(this,R(this,$=E(this,W,H)),$);break;default:U(this,this._t0,$=E(this,W,H));break}this._x0=this._x1,this._x1=W,this._y0=this._y1,this._y1=H,this._t0=$}}};function Q(W){this._context=new dt(W)}(Q.prototype=Object.create(G.prototype)).point=function(W,H){G.prototype.point.call(this,H,W)};function dt(W){this._context=W}dt.prototype={moveTo:function(W,H){this._context.moveTo(H,W)},closePath:function(){this._context.closePath()},lineTo:function(W,H){this._context.lineTo(H,W)},bezierCurveTo:function(W,H,$,ut,Et,Wt){this._context.bezierCurveTo(H,W,ut,$,Wt,Et)}};function jt(W){return new G(W)}function ie(W){return new Q(W)}function le(W){this._context=W}le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var W=this._x,H=this._y,$=W.length;if($)if(this._line?this._context.lineTo(W[0],H[0]):this._context.moveTo(W[0],H[0]),$===2)this._context.lineTo(W[1],H[1]);else for(var ut=pe(W),Et=pe(H),Wt=0,Ut=1;Ut<$;++Wt,++Ut)this._context.bezierCurveTo(ut[0][Wt],Et[0][Wt],ut[1][Wt],Et[1][Wt],W[Ut],H[Ut]);(this._line||this._line!==0&&$===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(W,H){this._x.push(+W),this._y.push(+H)}};function pe(W){var H,$=W.length-1,ut,Et=new Array($),Wt=new Array($),Ut=new Array($);for(Et[0]=0,Wt[0]=2,Ut[0]=W[0]+2*W[1],H=1;H<$-1;++H)Et[H]=1,Wt[H]=4,Ut[H]=4*W[H]+2*W[H+1];for(Et[$-1]=2,Wt[$-1]=7,Ut[$-1]=8*W[$-1]+W[$],H=1;H<$;++H)ut=Et[H]/Wt[H-1],Wt[H]-=ut,Ut[H]-=ut*Ut[H-1];for(Et[$-1]=Ut[$-1]/Wt[$-1],H=$-2;H>=0;--H)Et[H]=(Ut[H]-Et[H+1])/Wt[H];for(Wt[$-1]=(W[$]+Et[$-1])/2,H=0;H<$-1;++H)Wt[H]=2*W[H+1]-Et[H+1];return[Et,Wt]}function Oe(W){return new le(W)}function Eo(W,H){this._context=W,this._t=H}Eo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(W,H){switch(W=+W,H=+H,this._point){case 0:this._point=1,this._line?this._context.lineTo(W,H):this._context.moveTo(W,H);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,H),this._context.lineTo(W,H);else{var $=this._x*(1-this._t)+W*this._t;this._context.lineTo($,this._y),this._context.lineTo($,H)}break}}this._x=W,this._y=H}};function Ba(W){return new Eo(W,.5)}function Tc(W){return new Eo(W,0)}function QS(W){return new Eo(W,1)}function pa(W,H){if((Ut=W.length)>1)for(var $=1,ut,Et,Wt=W[H[0]],Ut,pt=Wt.length;$<Ut;++$)for(Et=Wt,Wt=W[H[$]],ut=0;ut<pt;++ut)Wt[ut][1]+=Wt[ut][0]=isNaN(Et[ut][1])?Et[ut][0]:Et[ut][1]}function $o(W){for(var H=W.length,$=new Array(H);--H>=0;)$[H]=H;return $}function cY(W,H){return W[H]}function hY(){var W=e([]),H=$o,$=pa,ut=cY;function Et(Wt){var Ut=W.apply(this,arguments),pt,Gt=Wt.length,Pe=Ut.length,be=new Array(Pe),Le;for(pt=0;pt<Pe;++pt){for(var Je=Ut[pt],io=be[pt]=new Array(Gt),Ir=0,Lo;Ir<Gt;++Ir)io[Ir]=Lo=[0,+ut(Wt[Ir],Je,Ir,Wt)],Lo.data=Wt[Ir];io.key=Je}for(pt=0,Le=H(be);pt<Pe;++pt)be[Le[pt]].index=pt;return $(be,Le),be}return Et.keys=function(Wt){return arguments.length?(W=typeof Wt=="function"?Wt:e(Nt.call(Wt)),Et):W},Et.value=function(Wt){return arguments.length?(ut=typeof Wt=="function"?Wt:e(+Wt),Et):ut},Et.order=function(Wt){return arguments.length?(H=Wt==null?$o:typeof Wt=="function"?Wt:e(Nt.call(Wt)),Et):H},Et.offset=function(Wt){return arguments.length?($=Wt??pa,Et):$},Et}function mY(W,H){if((ut=W.length)>0){for(var $,ut,Et=0,Wt=W[0].length,Ut;Et<Wt;++Et){for(Ut=$=0;$<ut;++$)Ut+=W[$][Et][1]||0;if(Ut)for($=0;$<ut;++$)W[$][Et][1]/=Ut}pa(W,H)}}function pY(W,H){if((Gt=W.length)>0)for(var $,ut=0,Et,Wt,Ut,pt,Gt,Pe=W[H[0]].length;ut<Pe;++ut)for(Ut=pt=0,$=0;$<Gt;++$)(Wt=(Et=W[H[$]][ut])[1]-Et[0])>0?(Et[0]=Ut,Et[1]=Ut+=Wt):Wt<0?(Et[1]=pt,Et[0]=pt+=Wt):(Et[0]=0,Et[1]=Wt)}function dY(W,H){if((Et=W.length)>0){for(var $=0,ut=W[H[0]],Et,Wt=ut.length;$<Wt;++$){for(var Ut=0,pt=0;Ut<Et;++Ut)pt+=W[Ut][$][1]||0;ut[$][1]+=ut[$][0]=-pt/2}pa(W,H)}}function yY(W,H){if(!(!((Ut=W.length)>0)||!((Wt=(Et=W[H[0]]).length)>0))){for(var $=0,ut=1,Et,Wt,Ut;ut<Wt;++ut){for(var pt=0,Gt=0,Pe=0;pt<Ut;++pt){for(var be=W[H[pt]],Le=be[ut][1]||0,Je=be[ut-1][1]||0,io=(Le-Je)/2,Ir=0;Ir<pt;++Ir){var Lo=W[H[Ir]],Zr=Lo[ut][1]||0,On=Lo[ut-1][1]||0;io+=Zr-On}Gt+=Le,Pe+=io*Le}Et[ut-1][1]+=Et[ut-1][0]=$,Gt&&($-=Pe/Gt)}Et[ut-1][1]+=Et[ut-1][0]=$,pa(W,H)}}function UT(W){var H=W.map(fY);return $o(W).sort(function($,ut){return H[$]-H[ut]})}function fY(W){for(var H=-1,$=0,ut=W.length,Et,Wt=-1/0;++H<ut;)(Et=+W[H][1])>Wt&&(Wt=Et,$=H);return $}function BT(W){var H=W.map(OT);return $o(W).sort(function($,ut){return H[$]-H[ut]})}function OT(W){for(var H=0,$=-1,ut=W.length,Et;++$<ut;)(Et=+W[$][1])&&(H+=Et);return H}function gY(W){return BT(W).reverse()}function bY(W){var H=W.length,$,ut,Et=W.map(OT),Wt=UT(W),Ut=0,pt=0,Gt=[],Pe=[];for($=0;$<H;++$)ut=Wt[$],Ut<pt?(Ut+=Et[ut],Gt.push(ut)):(pt+=Et[ut],Pe.push(ut));return Pe.reverse().concat(Gt)}function SY(W){return $o(W).reverse()}r.arc=B,r.area=O,r.areaRadial=J,r.curveBasis=ma,r.curveBasisClosed=hs,r.curveBasisOpen=Jl,r.curveBundle=ms,r.curveCardinal=Cc,r.curveCardinalClosed=nm,r.curveCardinalOpen=kc,r.curveCatmullRom=am,r.curveCatmullRomClosed=Mc,r.curveCatmullRomOpen=lm,r.curveLinear=L,r.curveLinearClosed=P,r.curveMonotoneX=jt,r.curveMonotoneY=ie,r.curveNatural=Oe,r.curveStep=Ba,r.curveStepAfter=QS,r.curveStepBefore=Tc,r.line=_,r.lineRadial=ct,r.linkHorizontal=Ct,r.linkRadial=Jt,r.linkVertical=st,r.pie=V,r.pointRadial=bt,r.radialArea=J,r.radialLine=ct,r.stack=hY,r.stackOffsetDiverging=pY,r.stackOffsetExpand=mY,r.stackOffsetNone=pa,r.stackOffsetSilhouette=dY,r.stackOffsetWiggle=yY,r.stackOrderAppearance=UT,r.stackOrderAscending=BT,r.stackOrderDescending=gY,r.stackOrderInsideOut=bY,r.stackOrderNone=$o,r.stackOrderReverse=SY,r.symbol=mr,r.symbolCircle=ne,r.symbolCross=qt,r.symbolDiamond=Ot,r.symbolSquare=Rr,r.symbolStar=fe,r.symbolTriangle=re,r.symbolWye=qe,r.symbols=$e,Object.defineProperty(r,"__esModule",{value:!0})})});var UH=ar((u7,_H)=>{(function(r,t){typeof u7=="object"&&typeof _H<"u"?t(u7,TH(),RH()):typeof define=="function"&&define.amd?define(["exports","d3-array","d3-shape"],t):(r=r||self,t(r.d3=r.d3||{},r.d3,r.d3))})(u7,function(r,t,e){"use strict";function o(C){return C.target.depth}function n(C){return C.depth}function i(C,B){return B-1-C.height}function a(C,B){return C.sourceLinks.length?C.depth:B-1}function s(C){return C.targetLinks.length?C.depth:C.sourceLinks.length?t.min(C.sourceLinks,o)-1:0}function l(C){return function(){return C}}function u(C,B){return h(C.source,B.source)||C.index-B.index}function c(C,B){return h(C.target,B.target)||C.index-B.index}function h(C,B){return C.y0-B.y0}function m(C){return C.value}function p(C){return C.index}function g(C){return C.nodes}function d(C){return C.links}function f(C,B){let F=C.get(B);if(!F)throw new Error("missing: "+B);return F}function b({nodes:C}){for(let B of C){let F=B.y0,L=F;for(let I of B.sourceLinks)I.y0=F+I.width/2,F+=I.width;for(let I of B.targetLinks)I.y1=L+I.width/2,L+=I.width}}function S(){let C=0,B=0,F=1,L=1,I=24,N=8,_,O=p,T=a,D,V,j=g,K=d,z=6;function X(){let ot={nodes:j.apply(null,arguments),links:K.apply(null,arguments)};return ct(ot),J(ot),bt(ot),Nt(ot),et(ot),b(ot),ot}X.update=function(ot){return b(ot),ot},X.nodeId=function(ot){return arguments.length?(O=typeof ot=="function"?ot:l(ot),X):O},X.nodeAlign=function(ot){return arguments.length?(T=typeof ot=="function"?ot:l(ot),X):T},X.nodeSort=function(ot){return arguments.length?(D=ot,X):D},X.nodeWidth=function(ot){return arguments.length?(I=+ot,X):I},X.nodePadding=function(ot){return arguments.length?(N=_=+ot,X):N},X.nodes=function(ot){return arguments.length?(j=typeof ot=="function"?ot:l(ot),X):j},X.links=function(ot){return arguments.length?(K=typeof ot=="function"?ot:l(ot),X):K},X.linkSort=function(ot){return arguments.length?(V=ot,X):V},X.size=function(ot){return arguments.length?(C=B=0,F=+ot[0],L=+ot[1],X):[F-C,L-B]},X.extent=function(ot){return arguments.length?(C=+ot[0][0],F=+ot[1][0],B=+ot[0][1],L=+ot[1][1],X):[[C,B],[F,L]]},X.iterations=function(ot){return arguments.length?(z=+ot,X):z};function ct({nodes:ot,links:Ot}){for(let[Dt,Tt]of ot.entries())Tt.index=Dt,Tt.sourceLinks=[],Tt.targetLinks=[];let _t=new Map(ot.map((Dt,Tt)=>[O(Dt,Tt,ot),Dt]));for(let[Dt,Tt]of Ot.entries()){Tt.index=Dt;let{source:Ft,target:fe}=Tt;typeof Ft!="object"&&(Ft=Tt.source=f(_t,Ft)),typeof fe!="object"&&(fe=Tt.target=f(_t,fe)),Ft.sourceLinks.push(Tt),fe.targetLinks.push(Tt)}if(V!=null)for(let{sourceLinks:Dt,targetLinks:Tt}of ot)Dt.sort(V),Tt.sort(V)}function J({nodes:ot}){for(let Ot of ot)Ot.value=Ot.fixedValue===void 0?Math.max(t.sum(Ot.sourceLinks,m),t.sum(Ot.targetLinks,m)):Ot.fixedValue}function bt({nodes:ot}){let Ot=ot.length,_t=new Set(ot),Dt=new Set,Tt=0;for(;_t.size;){for(let Ft of _t){Ft.depth=Tt;for(let{target:fe}of Ft.sourceLinks)Dt.add(fe)}if(++Tt>Ot)throw new Error("circular link");_t=Dt,Dt=new Set}}function Nt({nodes:ot}){let Ot=ot.length,_t=new Set(ot),Dt=new Set,Tt=0;for(;_t.size;){for(let Ft of _t){Ft.height=Tt;for(let{source:fe}of Ft.targetLinks)Dt.add(fe)}if(++Tt>Ot)throw new Error("circular link");_t=Dt,Dt=new Set}}function zt({nodes:ot}){let Ot=t.max(ot,Tt=>Tt.depth)+1,_t=(F-C-I)/(Ot-1),Dt=new Array(Ot);for(let Tt of ot){let Ft=Math.max(0,Math.min(Ot-1,Math.floor(T.call(null,Tt,Ot))));Tt.layer=Ft,Tt.x0=C+Ft*_t,Tt.x1=Tt.x0+I,Dt[Ft]?Dt[Ft].push(Tt):Dt[Ft]=[Tt]}if(D)for(let Tt of Dt)Tt.sort(D);return Dt}function tt(ot){let Ot=t.min(ot,_t=>(L-B-(_t.length-1)*_)/t.sum(_t,m));for(let _t of ot){let Dt=B;for(let Tt of _t){Tt.y0=Dt,Tt.y1=Dt+Tt.value*Ot,Dt=Tt.y1+_;for(let Ft of Tt.sourceLinks)Ft.width=Ft.value*Ot}Dt=(L-Dt+_)/(_t.length+1);for(let Tt=0;Tt<_t.length;++Tt){let Ft=_t[Tt];Ft.y0+=Dt*(Tt+1),Ft.y1+=Dt*(Tt+1)}ne(_t)}}function et(ot){let Ot=zt(ot);_=Math.min(N,(L-B)/(t.max(Ot,_t=>_t.length)-1)),tt(Ot);for(let _t=0;_t<z;++_t){let Dt=Math.pow(.99,_t),Tt=Math.max(1-Dt,(_t+1)/z);at(Ot,Dt,Tt),gt(Ot,Dt,Tt)}}function gt(ot,Ot,_t){for(let Dt=1,Tt=ot.length;Dt<Tt;++Dt){let Ft=ot[Dt];for(let fe of Ft){let Rr=0,Xe=0;for(let{source:Rt,value:ee}of fe.targetLinks){let we=ee*(fe.layer-Rt.layer);Rr+=qt(Rt,fe)*we,Xe+=we}if(!(Xe>0))continue;let re=(Rr/Xe-fe.y0)*Ot;fe.y0+=re,fe.y1+=re,Jt(fe)}D===void 0&&Ft.sort(h),nt(Ft,_t)}}function at(ot,Ot,_t){for(let Dt=ot.length,Tt=Dt-2;Tt>=0;--Tt){let Ft=ot[Tt];for(let fe of Ft){let Rr=0,Xe=0;for(let{target:Rt,value:ee}of fe.sourceLinks){let we=ee*(Rt.layer-fe.layer);Rr+=se(fe,Rt)*we,Xe+=we}if(!(Xe>0))continue;let re=(Rr/Xe-fe.y0)*Ot;fe.y0+=re,fe.y1+=re,Jt(fe)}D===void 0&&Ft.sort(h),nt(Ft,_t)}}function nt(ot,Ot){let _t=ot.length>>1,Dt=ot[_t];st(ot,Dt.y0-_,_t-1,Ot),Ct(ot,Dt.y1+_,_t+1,Ot),st(ot,L,ot.length-1,Ot),Ct(ot,B,0,Ot)}function Ct(ot,Ot,_t,Dt){for(;_t<ot.length;++_t){let Tt=ot[_t],Ft=(Ot-Tt.y0)*Dt;Ft>1e-6&&(Tt.y0+=Ft,Tt.y1+=Ft),Ot=Tt.y1+_}}function st(ot,Ot,_t,Dt){for(;_t>=0;--_t){let Tt=ot[_t],Ft=(Tt.y1-Ot)*Dt;Ft>1e-6&&(Tt.y0-=Ft,Tt.y1-=Ft),Ot=Tt.y0-_}}function Jt({sourceLinks:ot,targetLinks:Ot}){if(V===void 0){for(let{source:{sourceLinks:_t}}of Ot)_t.sort(c);for(let{target:{targetLinks:_t}}of ot)_t.sort(u)}}function ne(ot){if(V===void 0)for(let{sourceLinks:Ot,targetLinks:_t}of ot)Ot.sort(c),_t.sort(u)}function qt(ot,Ot){let _t=ot.y0-(ot.sourceLinks.length-1)*_/2;for(let{target:Dt,width:Tt}of ot.sourceLinks){if(Dt===Ot)break;_t+=Tt+_}for(let{source:Dt,width:Tt}of Ot.targetLinks){if(Dt===ot)break;_t-=Tt}return _t}function se(ot,Ot){let _t=Ot.y0-(Ot.targetLinks.length-1)*_/2;for(let{source:Dt,width:Tt}of Ot.targetLinks){if(Dt===ot)break;_t+=Tt+_}for(let{target:Dt,width:Tt}of ot.sourceLinks){if(Dt===Ot)break;_t-=Tt}return _t}return X}function v(C){return[C.source.x1,C.y0]}function A(C){return[C.target.x0,C.y1]}function M(){return e.linkHorizontal().source(v).target(A)}r.sankey=S,r.sankeyCenter=s,r.sankeyJustify=a,r.sankeyLeft=n,r.sankeyLinkHorizontal=M,r.sankeyRight=i,Object.defineProperty(r,"__esModule",{value:!0})})});var OH=ar((c7,BH)=>{(function(r,t){typeof c7=="object"&&typeof BH<"u"?t(c7):typeof define=="function"&&define.amd?define(["exports"],t):t(r.d3=r.d3||{})})(c7,(function(r){"use strict";var t=Math.PI/3,e=[0,t,2*t,3*t,4*t,5*t];function o(a){return a[0]}function n(a){return a[1]}var i=function(){var a=0,s=0,l=1,u=1,c=o,h=n,m,p,g;function d(b){var S={},v=[],A,M=b.length;for(A=0;A<M;++A)if(!(isNaN(B=+c.call(null,C=b[A],A,b))||isNaN(F=+h.call(null,C,A,b)))){var C,B,F,L=Math.round(F=F/g),I=Math.round(B=B/p-(L&1)/2),N=F-L;if(Math.abs(N)*3>1){var _=B-I,O=I+(B<I?-1:1)/2,T=L+(F<L?-1:1),D=B-O,V=F-T;_*_+N*N>D*D+V*V&&(I=O+(L&1?1:-1)/2,L=T)}var j=I+"-"+L,K=S[j];K?K.push(C):(v.push(K=S[j]=[C]),K.x=(I+(L&1)/2)*p,K.y=L*g)}return v}function f(b){var S=0,v=0;return e.map(function(A){var M=Math.sin(A)*b,C=-Math.cos(A)*b,B=M-S,F=C-v;return S=M,v=C,[B,F]})}return d.hexagon=function(b){return"m"+f(b==null?m:+b).join("l")+"z"},d.centers=function(){for(var b=[],S=Math.round(s/g),v=Math.round(a/p),A=S*g;A<u+m;A+=g,++S)for(var M=v*p+(S&1)*p/2;M<l+p/2;M+=p)b.push([M,A]);return b},d.mesh=function(){var b=f(m).slice(0,4).join("l");return d.centers().map(function(S){return"M"+S+"m"+b}).join("")},d.x=function(b){return arguments.length?(c=b,d):c},d.y=function(b){return arguments.length?(h=b,d):h},d.radius=function(b){return arguments.length?(m=+b,p=m*2*Math.sin(t),g=m*1.5,d):m},d.size=function(b){return arguments.length?(a=s=0,l=+b[0],u=+b[1],d):[l-a,u-s]},d.extent=function(b){return arguments.length?(a=+b[0][0],s=+b[0][1],l=+b[1][0],u=+b[1][1],d):[[a,s],[l,u]]},d.radius(1)};r.hexbin=i,Object.defineProperty(r,"__esModule",{value:!0})}))});var FH=ar((h7,DH)=>{(function(r,t){typeof h7=="object"&&typeof DH<"u"?t(h7):typeof define=="function"&&define.amd?define(["exports"],t):(r=r||self,t(r.d3=r.d3||{}))})(h7,function(r){"use strict";function t(u){for(var c=-1,h=u.length,m,p=u[h-1],g=0;++c<h;)m=p,p=u[c],g+=m[1]*p[0]-m[0]*p[1];return g/2}function e(u){for(var c=-1,h=u.length,m=0,p=0,g,d=u[h-1],f,b=0;++c<h;)g=d,d=u[c],b+=f=g[0]*d[1]-d[0]*g[1],m+=(g[0]+d[0])*f,p+=(g[1]+d[1])*f;return b*=3,[m/b,p/b]}function o(u,c,h){return(c[0]-u[0])*(h[1]-u[1])-(c[1]-u[1])*(h[0]-u[0])}function n(u,c){return u[0]-c[0]||u[1]-c[1]}function i(u){let c=u.length,h=[0,1],m=2,p;for(p=2;p<c;++p){for(;m>1&&o(u[h[m-2]],u[h[m-1]],u[p])<=0;)--m;h[m++]=p}return h.slice(0,m)}function a(u){if((h=u.length)<3)return null;var c,h,m=new Array(h),p=new Array(h);for(c=0;c<h;++c)m[c]=[+u[c][0],+u[c][1],c];for(m.sort(n),c=0;c<h;++c)p[c]=[m[c][0],-m[c][1]];var g=i(m),d=i(p),f=d[0]===g[0],b=d[d.length-1]===g[g.length-1],S=[];for(c=g.length-1;c>=0;--c)S.push(u[m[g[c]][2]]);for(c=+f;c<d.length-b;++c)S.push(u[m[d[c]][2]]);return S}function s(u,c){for(var h=u.length,m=u[h-1],p=c[0],g=c[1],d=m[0],f=m[1],b,S,v=!1,A=0;A<h;++A)m=u[A],b=m[0],S=m[1],S>g!=f>g&&p<(d-b)*(g-S)/(f-S)+b&&(v=!v),d=b,f=S;return v}function l(u){for(var c=-1,h=u.length,m=u[h-1],p,g,d=m[0],f=m[1],b=0;++c<h;)p=d,g=f,m=u[c],d=m[0],f=m[1],p-=d,g-=f,b+=Math.hypot(p,g);return b}r.polygonArea=t,r.polygonCentroid=e,r.polygonContains=s,r.polygonHull=a,r.polygonLength=l,Object.defineProperty(r,"__esModule",{value:!0})})});var VH=ar((m7,GH)=>{(function(r,t){typeof m7=="object"&&typeof GH<"u"?t(m7):typeof define=="function"&&define.amd?define(["exports"],t):(r=r||self,t(r.d3=r.d3||{}))})(m7,function(r){"use strict";var t=0,e=0,o=0,n=1e3,i,a,s=0,l=0,u=0,c=typeof performance=="object"&&performance.now?performance:Date,h=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(B){setTimeout(B,17)};function m(){return l||(h(p),l=c.now()+u)}function p(){l=0}function g(){this._call=this._time=this._next=null}g.prototype=d.prototype={constructor:g,restart:function(B,F,L){if(typeof B!="function")throw new TypeError("callback is not a function");L=(L==null?m():+L)+(F==null?0:+F),!this._next&&a!==this&&(a?a._next=this:i=this,a=this),this._call=B,this._time=L,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};function d(B,F,L){var I=new g;return I.restart(B,F,L),I}function f(){m(),++t;for(var B=i,F;B;)(F=l-B._time)>=0&&B._call.call(null,F),B=B._next;--t}function b(){l=(s=c.now())+u,t=e=0;try{f()}finally{t=0,v(),l=0}}function S(){var B=c.now(),F=B-s;F>n&&(u-=F,s=B)}function v(){for(var B,F=i,L,I=1/0;F;)F._call?(I>F._time&&(I=F._time),B=F,F=F._next):(L=F._next,F._next=null,F=B?B._next=L:i=L);a=B,A(I)}function A(B){if(!t){e&&(e=clearTimeout(e));var F=B-l;F>24?(B<1/0&&(e=setTimeout(b,B-c.now()-u)),o&&(o=clearInterval(o))):(o||(s=c.now(),o=setInterval(S,n)),t=1,h(b))}}function M(B,F,L){var I=new g;return F=F==null?0:+F,I.restart(N=>{I.stop(),B(N+F)},F,L),I}function C(B,F,L){var I=new g,N=F;return F==null?(I.restart(B,F,L),I):(I._restart=I.restart,I.restart=function(_,O,T){O=+O,T=T==null?m():+T,I._restart(function D(V){V+=N,I._restart(D,N+=O,T),_(V)},O,T)},I.restart(B,F,L),I)}r.interval=C,r.now=m,r.timeout=M,r.timer=d,r.timerFlush=f,Object.defineProperty(r,"__esModule",{value:!0})})});var zH=ar((p7,HH)=>{(function(r,t){typeof p7=="object"&&typeof HH<"u"?t(p7):typeof define=="function"&&define.amd?define(["exports"],t):(r=r||self,t(r.d3=r.d3||{}))})(p7,function(r){"use strict";var t={value:()=>{}};function e(){for(var s=0,l=arguments.length,u={},c;s<l;++s){if(!(c=arguments[s]+"")||c in u||/[\s.]/.test(c))throw new Error("illegal type: "+c);u[c]=[]}return new o(u)}function o(s){this._=s}function n(s,l){return s.trim().split(/^|\s+/).map(function(u){var c="",h=u.indexOf(".");if(h>=0&&(c=u.slice(h+1),u=u.slice(0,h)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:c}})}o.prototype=e.prototype={constructor:o,on:function(s,l){var u=this._,c=n(s+"",u),h,m=-1,p=c.length;if(arguments.length<2){for(;++m<p;)if((h=(s=c[m]).type)&&(h=i(u[h],s.name)))return h;return}if(l!=null&&typeof l!="function")throw new Error("invalid callback: "+l);for(;++m<p;)if(h=(s=c[m]).type)u[h]=a(u[h],s.name,l);else if(l==null)for(h in u)u[h]=a(u[h],s.name,null);return this},copy:function(){var s={},l=this._;for(var u in l)s[u]=l[u].slice();return new o(s)},call:function(s,l){if((h=arguments.length-2)>0)for(var u=new Array(h),c=0,h,m;c<h;++c)u[c]=arguments[c+2];if(!this._.hasOwnProperty(s))throw new Error("unknown type: "+s);for(m=this._[s],c=0,h=m.length;c<h;++c)m[c].value.apply(l,u)},apply:function(s,l,u){if(!this._.hasOwnProperty(s))throw new Error("unknown type: "+s);for(var c=this._[s],h=0,m=c.length;h<m;++h)c[h].value.apply(l,u)}};function i(s,l){for(var u=0,c=s.length,h;u<c;++u)if((h=s[u]).name===l)return h.value}function a(s,l,u){for(var c=0,h=s.length;c<h;++c)if(s[c].name===l){s[c]=t,s=s.slice(0,c).concat(s.slice(c+1));break}return u!=null&&s.push({name:l,value:u}),s}r.dispatch=e,Object.defineProperty(r,"__esModule",{value:!0})})});var XH=ar((d7,jH)=>{(function(r,t){typeof d7=="object"&&typeof jH<"u"?t(d7):typeof define=="function"&&define.amd?define(["exports"],t):(r=typeof globalThis<"u"?globalThis:r||self,t(r.d3=r.d3||{}))})(d7,(function(r){"use strict";function t(P,x){return P<x?-1:P>x?1:P>=x?0:NaN}function e(P){let x=P,E=P;P.length===1&&(x=(Q,dt)=>P(Q)-dt,E=o(P));function R(Q,dt,jt,ie){for(jt==null&&(jt=0),ie==null&&(ie=Q.length);jt<ie;){let le=jt+ie>>>1;E(Q[le],dt)<0?jt=le+1:ie=le}return jt}function U(Q,dt,jt,ie){for(jt==null&&(jt=0),ie==null&&(ie=Q.length);jt<ie;){let le=jt+ie>>>1;E(Q[le],dt)>0?ie=le:jt=le+1}return jt}function G(Q,dt,jt,ie){jt==null&&(jt=0),ie==null&&(ie=Q.length);let le=R(Q,dt,jt,ie-1);return le>jt&&x(Q[le-1],dt)>-x(Q[le],dt)?le-1:le}return{left:R,center:G,right:U}}function o(P){return(x,E)=>t(P(x),E)}function n(P){return P===null?NaN:+P}function*i(P,x){if(x===void 0)for(let E of P)E!=null&&(E=+E)>=E&&(yield E);else{let E=-1;for(let R of P)(R=x(R,++E,P))!=null&&(R=+R)>=R&&(yield R)}}let a=e(t),s=a.right,l=a.left,u=e(n).center;function c(P,x){let E=0;if(x===void 0)for(let R of P)R!=null&&(R=+R)>=R&&++E;else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(U=+U)>=U&&++E}return E}function h(P){return P.length|0}function m(P){return!(P>0)}function p(P){return typeof P!="object"||"length"in P?P:Array.from(P)}function g(P){return x=>P(...x)}function d(...P){let x=typeof P[P.length-1]=="function"&&g(P.pop());P=P.map(p);let E=P.map(h),R=P.length-1,U=new Array(R+1).fill(0),G=[];if(R<0||E.some(m))return G;for(;;){G.push(U.map((dt,jt)=>P[jt][dt]));let Q=R;for(;++U[Q]===E[Q];){if(Q===0)return x?G.map(x):G;U[Q--]=0}}}function f(P,x){var E=0,R=0;return Float64Array.from(P,x===void 0?U=>E+=+U||0:U=>E+=+x(U,R++,P)||0)}function b(P,x){return x<P?-1:x>P?1:x>=P?0:NaN}function S(P,x){let E=0,R,U=0,G=0;if(x===void 0)for(let Q of P)Q!=null&&(Q=+Q)>=Q&&(R=Q-U,U+=R/++E,G+=R*(Q-U));else{let Q=-1;for(let dt of P)(dt=x(dt,++Q,P))!=null&&(dt=+dt)>=dt&&(R=dt-U,U+=R/++E,G+=R*(dt-U))}if(E>1)return G/(E-1)}function v(P,x){let E=S(P,x);return E&&Math.sqrt(E)}function A(P,x){let E,R;if(x===void 0)for(let U of P)U!=null&&(E===void 0?U>=U&&(E=R=U):(E>U&&(E=U),R<U&&(R=U)));else{let U=-1;for(let G of P)(G=x(G,++U,P))!=null&&(E===void 0?G>=G&&(E=R=G):(E>G&&(E=G),R<G&&(R=G)))}return[E,R]}class M{constructor(){this._partials=new Float64Array(32),this._n=0}add(x){let E=this._partials,R=0;for(let U=0;U<this._n&&U<32;U++){let G=E[U],Q=x+G,dt=Math.abs(x)<Math.abs(G)?x-(Q-G):G-(Q-x);dt&&(E[R++]=dt),x=Q}return E[R]=x,this._n=R+1,this}valueOf(){let x=this._partials,E=this._n,R,U,G,Q=0;if(E>0){for(Q=x[--E];E>0&&(R=Q,U=x[--E],Q=R+U,G=U-(Q-R),!G););E>0&&(G<0&&x[E-1]<0||G>0&&x[E-1]>0)&&(U=G*2,R=Q+U,U==R-Q&&(Q=R))}return Q}}function C(P,x){let E=new M;if(x===void 0)for(let R of P)(R=+R)&&E.add(R);else{let R=-1;for(let U of P)(U=+x(U,++R,P))&&E.add(U)}return+E}function B(P,x){let E=new M,R=-1;return Float64Array.from(P,x===void 0?U=>E.add(+U||0):U=>E.add(+x(U,++R,P)||0))}class F extends Map{constructor(x,E=O){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:E}}),x!=null)for(let[R,U]of x)this.set(R,U)}get(x){return super.get(I(this,x))}has(x){return super.has(I(this,x))}set(x,E){return super.set(N(this,x),E)}delete(x){return super.delete(_(this,x))}}class L extends Set{constructor(x,E=O){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:E}}),x!=null)for(let R of x)this.add(R)}has(x){return super.has(I(this,x))}add(x){return super.add(N(this,x))}delete(x){return super.delete(_(this,x))}}function I({_intern:P,_key:x},E){let R=x(E);return P.has(R)?P.get(R):E}function N({_intern:P,_key:x},E){let R=x(E);return P.has(R)?P.get(R):(P.set(R,E),E)}function _({_intern:P,_key:x},E){let R=x(E);return P.has(R)&&(E=P.get(E),P.delete(R)),E}function O(P){return P!==null&&typeof P=="object"?P.valueOf():P}function T(P){return P}function D(P,...x){return J(P,T,T,x)}function V(P,...x){return J(P,Array.from,T,x)}function j(P,x,...E){return J(P,T,x,E)}function K(P,x,...E){return J(P,Array.from,x,E)}function z(P,...x){return J(P,T,ct,x)}function X(P,...x){return J(P,Array.from,ct,x)}function ct(P){if(P.length!==1)throw new Error("duplicate key");return P[0]}function J(P,x,E,R){return(function U(G,Q){if(Q>=R.length)return E(G);let dt=new F,jt=R[Q++],ie=-1;for(let le of G){let pe=jt(le,++ie,G),Oe=dt.get(pe);Oe?Oe.push(le):dt.set(pe,[le])}for(let[le,pe]of dt)dt.set(le,U(pe,Q));return x(dt)})(P,0)}function bt(P,x){return Array.from(x,E=>P[E])}function Nt(P,...x){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");P=Array.from(P);let[E=t]=x;if(E.length===1||x.length>1){let R=Uint32Array.from(P,(U,G)=>G);return x.length>1?(x=x.map(U=>P.map(U)),R.sort((U,G)=>{for(let Q of x){let dt=t(Q[U],Q[G]);if(dt)return dt}})):(E=P.map(E),R.sort((U,G)=>t(E[U],E[G]))),bt(P,R)}return P.sort(E)}function zt(P,x,E){return(x.length===1?Nt(j(P,x,E),(([R,U],[G,Q])=>t(U,Q)||t(R,G))):Nt(D(P,E),(([R,U],[G,Q])=>x(U,Q)||t(R,G)))).map(([R])=>R)}var tt=Array.prototype,et=tt.slice;function gt(P){return function(){return P}}var at=Math.sqrt(50),nt=Math.sqrt(10),Ct=Math.sqrt(2);function st(P,x,E){var R,U=-1,G,Q,dt;if(x=+x,P=+P,E=+E,P===x&&E>0)return[P];if((R=x<P)&&(G=P,P=x,x=G),(dt=Jt(P,x,E))===0||!isFinite(dt))return[];if(dt>0){let jt=Math.round(P/dt),ie=Math.round(x/dt);for(jt*dt<P&&++jt,ie*dt>x&&--ie,Q=new Array(G=ie-jt+1);++U<G;)Q[U]=(jt+U)*dt}else{dt=-dt;let jt=Math.round(P*dt),ie=Math.round(x*dt);for(jt/dt<P&&++jt,ie/dt>x&&--ie,Q=new Array(G=ie-jt+1);++U<G;)Q[U]=(jt+U)/dt}return R&&Q.reverse(),Q}function Jt(P,x,E){var R=(x-P)/Math.max(0,E),U=Math.floor(Math.log(R)/Math.LN10),G=R/Math.pow(10,U);return U>=0?(G>=at?10:G>=nt?5:G>=Ct?2:1)*Math.pow(10,U):-Math.pow(10,-U)/(G>=at?10:G>=nt?5:G>=Ct?2:1)}function ne(P,x,E){var R=Math.abs(x-P)/Math.max(0,E),U=Math.pow(10,Math.floor(Math.log(R)/Math.LN10)),G=R/U;return G>=at?U*=10:G>=nt?U*=5:G>=Ct&&(U*=2),x<P?-U:U}function qt(P,x,E){let R;for(;;){let U=Jt(P,x,E);if(U===R||U===0||!isFinite(U))return[P,x];U>0?(P=Math.floor(P/U)*U,x=Math.ceil(x/U)*U):U<0&&(P=Math.ceil(P*U)/U,x=Math.floor(x*U)/U),R=U}}function se(P){return Math.ceil(Math.log(c(P))/Math.LN2)+1}function ot(){var P=T,x=A,E=se;function R(U){Array.isArray(U)||(U=Array.from(U));var G,Q=U.length,dt,jt=new Array(Q);for(G=0;G<Q;++G)jt[G]=P(U[G],G,U);var ie=x(jt),le=ie[0],pe=ie[1],Oe=E(jt,le,pe);if(!Array.isArray(Oe)){let QS=pe,pa=+Oe;if(x===A&&([le,pe]=qt(le,pe,pa)),Oe=st(le,pe,pa),Oe[Oe.length-1]>=pe)if(QS>=pe&&x===A){let $o=Jt(le,pe,pa);isFinite($o)&&($o>0?pe=(Math.floor(pe/$o)+1)*$o:$o<0&&(pe=(Math.ceil(pe*-$o)+1)/-$o))}else Oe.pop()}for(var Eo=Oe.length;Oe[0]<=le;)Oe.shift(),--Eo;for(;Oe[Eo-1]>pe;)Oe.pop(),--Eo;var Ba=new Array(Eo+1),Tc;for(G=0;G<=Eo;++G)Tc=Ba[G]=[],Tc.x0=G>0?Oe[G-1]:le,Tc.x1=G<Eo?Oe[G]:pe;for(G=0;G<Q;++G)dt=jt[G],le<=dt&&dt<=pe&&Ba[s(Oe,dt,0,Eo)].push(U[G]);return Ba}return R.value=function(U){return arguments.length?(P=typeof U=="function"?U:gt(U),R):P},R.domain=function(U){return arguments.length?(x=typeof U=="function"?U:gt([U[0],U[1]]),R):x},R.thresholds=function(U){return arguments.length?(E=typeof U=="function"?U:Array.isArray(U)?gt(et.call(U)):gt(U),R):E},R}function Ot(P,x){let E;if(x===void 0)for(let R of P)R!=null&&(E<R||E===void 0&&R>=R)&&(E=R);else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(E<U||E===void 0&&U>=U)&&(E=U)}return E}function _t(P,x){let E;if(x===void 0)for(let R of P)R!=null&&(E>R||E===void 0&&R>=R)&&(E=R);else{let R=-1;for(let U of P)(U=x(U,++R,P))!=null&&(E>U||E===void 0&&U>=U)&&(E=U)}return E}function Dt(P,x,E=0,R=P.length-1,U=t){for(;R>E;){if(R-E>600){let jt=R-E+1,ie=x-E+1,le=Math.log(jt),pe=.5*Math.exp(2*le/3),Oe=.5*Math.sqrt(le*pe*(jt-pe)/jt)*(ie-jt/2<0?-1:1),Eo=Math.max(E,Math.floor(x-ie*pe/jt+Oe)),Ba=Math.min(R,Math.floor(x+(jt-ie)*pe/jt+Oe));Dt(P,x,Eo,Ba,U)}let G=P[x],Q=E,dt=R;for(Tt(P,E,x),U(P[R],G)>0&&Tt(P,E,R);Q<dt;){for(Tt(P,Q,dt),++Q,--dt;U(P[Q],G)<0;)++Q;for(;U(P[dt],G)>0;)--dt}U(P[E],G)===0?Tt(P,E,dt):(++dt,Tt(P,dt,R)),dt<=x&&(E=dt+1),x<=dt&&(R=dt-1)}return P}function Tt(P,x,E){let R=P[x];P[x]=P[E],P[E]=R}function Ft(P,x,E){if(P=Float64Array.from(i(P,E)),!!(R=P.length)){if((x=+x)<=0||R<2)return _t(P);if(x>=1)return Ot(P);var R,U=(R-1)*x,G=Math.floor(U),Q=Ot(Dt(P,G).subarray(0,G+1)),dt=_t(P.subarray(G+1));return Q+(dt-Q)*(U-G)}}function fe(P,x,E=n){if(R=P.length){if((x=+x)<=0||R<2)return+E(P[0],0,P);if(x>=1)return+E(P[R-1],R-1,P);var R,U=(R-1)*x,G=Math.floor(U),Q=+E(P[G],G,P),dt=+E(P[G+1],G+1,P);return Q+(dt-Q)*(U-G)}}function Rr(P,x,E){return Math.ceil((E-x)/(2*(Ft(P,.75)-Ft(P,.25))*Math.pow(c(P),-1/3)))}function Xe(P,x,E){return Math.ceil((E-x)/(3.5*v(P)*Math.pow(c(P),-1/3)))}function re(P,x){let E,R=-1,U=-1;if(x===void 0)for(let G of P)++U,G!=null&&(E<G||E===void 0&&G>=G)&&(E=G,R=U);else for(let G of P)(G=x(G,++U,P))!=null&&(E<G||E===void 0&&G>=G)&&(E=G,R=U);return R}function Rt(P,x){let E=0,R=0;if(x===void 0)for(let U of P)U!=null&&(U=+U)>=U&&(++E,R+=U);else{let U=-1;for(let G of P)(G=x(G,++U,P))!=null&&(G=+G)>=G&&(++E,R+=G)}if(E)return R/E}function ee(P,x){return Ft(P,.5,x)}function*we(P){for(let x of P)yield*x}function We(P){return Array.from(we(P))}function qe(P,x){let E,R=-1,U=-1;if(x===void 0)for(let G of P)++U,G!=null&&(E>G||E===void 0&&G>=G)&&(E=G,R=U);else for(let G of P)(G=x(G,++U,P))!=null&&(E>G||E===void 0&&G>=G)&&(E=G,R=U);return R}function $e(P,x=mr){let E=[],R,U=!1;for(let G of P)U&&E.push(x(R,G)),R=G,U=!0;return E}function mr(P,x){return[P,x]}function pr(P,x,E){P=+P,x=+x,E=(U=arguments.length)<2?(x=P,P=0,1):U<3?1:+E;for(var R=-1,U=Math.max(0,Math.ceil((x-P)/E))|0,G=new Array(U);++R<U;)G[R]=P+R*E;return G}function jr(P,x=t){let E,R=!1;if(x.length===1){let U;for(let G of P){let Q=x(G);(R?t(Q,U)<0:t(Q,Q)===0)&&(E=G,U=Q,R=!0)}}else for(let U of P)(R?x(U,E)<0:x(U,U)===0)&&(E=U,R=!0);return E}function co(P,x=t){if(x.length===1)return qe(P,x);let E,R=-1,U=-1;for(let G of P)++U,(R<0?x(G,G)===0:x(G,E)<0)&&(E=G,R=U);return R}function ma(P,x=t){let E,R=!1;if(x.length===1){let U;for(let G of P){let Q=x(G);(R?t(Q,U)>0:t(Q,Q)===0)&&(E=G,U=Q,R=!0)}}else for(let U of P)(R?x(U,E)>0:x(U,U)===0)&&(E=U,R=!0);return E}function wi(P,x=t){if(x.length===1)return re(P,x);let E,R=-1,U=-1;for(let G of P)++U,(R<0?x(G,G)===0:x(G,E)>0)&&(E=G,R=U);return R}function hs(P,x){let E=co(P,x);return E<0?void 0:E}var Ec=Jl(Math.random);function Jl(P){return function(E,R=0,U=E.length){let G=U-(R=+R);for(;G;){let Q=P()*G--|0,dt=E[G+R];E[G+R]=E[Q+R],E[Q+R]=dt}return E}}function om(P,x){let E=0;if(x===void 0)for(let R of P)(R=+R)&&(E+=R);else{let R=-1;for(let U of P)(U=+x(U,++R,P))&&(E+=U)}return E}function ms(P){if(!(G=P.length))return[];for(var x=-1,E=_t(P,ps),R=new Array(E);++x<E;)for(var U=-1,G,Q=R[x]=new Array(G);++U<G;)Q[U]=P[U][x];return R}function ps(P){return P.length}function ds(){return ms(arguments)}function Cc(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=-1;for(let R of P)if(!x(R,++E,P))return!1;return!0}function Ql(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=-1;for(let R of P)if(x(R,++E,P))return!0;return!1}function nm(P,x){if(typeof x!="function")throw new TypeError("test is not a function");let E=[],R=-1;for(let U of P)x(U,++R,P)&&E.push(U);return E}function Bn(P,x){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof x!="function")throw new TypeError("mapper is not a function");return Array.from(P,(E,R)=>x(E,R,P))}function kc(P,x,E){if(typeof x!="function")throw new TypeError("reducer is not a function");let R=P[Symbol.iterator](),U,G,Q=-1;if(arguments.length<3){if({done:U,value:E}=R.next(),U)return;++Q}for(;{done:U,value:G}=R.next(),!U;)E=x(E,G,++Q,P);return E}function Zl(P){if(typeof P[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(P).reverse()}function im(P,...x){P=new Set(P);for(let E of x)for(let R of E)P.delete(R);return P}function am(P,x){let E=x[Symbol.iterator](),R=new Set;for(let U of P){if(R.has(U))return!1;let G,Q;for(;({value:G,done:Q}=E.next())&&!Q;){if(Object.is(U,G))return!1;R.add(G)}}return!0}function sm(P){return P instanceof Set?P:new Set(P)}function Mc(P,...x){P=new Set(P),x=x.map(sm);t:for(let E of P)for(let R of x)if(!R.has(E)){P.delete(E);continue t}return P}function tu(P,x){let E=P[Symbol.iterator](),R=new Set;for(let U of x){if(R.has(U))continue;let G,Q;for(;{value:G,done:Q}=E.next();){if(Q)return!1;if(R.add(G),Object.is(U,G))break}}return!0}function lm(P,x){return tu(x,P)}function eu(...P){let x=new Set;for(let E of P)for(let R of E)x.add(R);return x}r.Adder=M,r.InternMap=F,r.InternSet=L,r.ascending=t,r.bin=ot,r.bisect=s,r.bisectCenter=u,r.bisectLeft=l,r.bisectRight=s,r.bisector=e,r.count=c,r.cross=d,r.cumsum=f,r.descending=b,r.deviation=v,r.difference=im,r.disjoint=am,r.every=Cc,r.extent=A,r.fcumsum=B,r.filter=nm,r.fsum=C,r.greatest=ma,r.greatestIndex=wi,r.group=D,r.groupSort=zt,r.groups=V,r.histogram=ot,r.index=z,r.indexes=X,r.intersection=Mc,r.least=jr,r.leastIndex=co,r.map=Bn,r.max=Ot,r.maxIndex=re,r.mean=Rt,r.median=ee,r.merge=We,r.min=_t,r.minIndex=qe,r.nice=qt,r.pairs=$e,r.permute=bt,r.quantile=Ft,r.quantileSorted=fe,r.quickselect=Dt,r.range=pr,r.reduce=kc,r.reverse=Zl,r.rollup=j,r.rollups=K,r.scan=hs,r.shuffle=Ec,r.shuffler=Jl,r.some=Ql,r.sort=Nt,r.subset=lm,r.sum=om,r.superset=tu,r.thresholdFreedmanDiaconis=Rr,r.thresholdScott=Xe,r.thresholdSturges=se,r.tickIncrement=Jt,r.tickStep=ne,r.ticks=st,r.transpose=ms,r.union=eu,r.variance=S,r.zip=ds,Object.defineProperty(r,"__esModule",{value:!0})}))});var YH=ar((y7,KH)=>{(function(r,t){typeof y7=="object"&&typeof KH<"u"?t(y7):typeof define=="function"&&define.amd?define(["exports"],t):(r=r||self,t(r.d3=r.d3||{}))})(y7,function(r){"use strict";function t(u){for(var c=-1,h=u.length,m,p=u[h-1],g=0;++c<h;)m=p,p=u[c],g+=m[1]*p[0]-m[0]*p[1];return g/2}function e(u){for(var c=-1,h=u.length,m=0,p=0,g,d=u[h-1],f,b=0;++c<h;)g=d,d=u[c],b+=f=g[0]*d[1]-d[0]*g[1],m+=(g[0]+d[0])*f,p+=(g[1]+d[1])*f;return b*=3,[m/b,p/b]}function o(u,c,h){return(c[0]-u[0])*(h[1]-u[1])-(c[1]-u[1])*(h[0]-u[0])}function n(u,c){return u[0]-c[0]||u[1]-c[1]}function i(u){let c=u.length,h=[0,1],m=2,p;for(p=2;p<c;++p){for(;m>1&&o(u[h[m-2]],u[h[m-1]],u[p])<=0;)--m;h[m++]=p}return h.slice(0,m)}function a(u){if((h=u.length)<3)return null;var c,h,m=new Array(h),p=new Array(h);for(c=0;c<h;++c)m[c]=[+u[c][0],+u[c][1],c];for(m.sort(n),c=0;c<h;++c)p[c]=[m[c][0],-m[c][1]];var g=i(m),d=i(p),f=d[0]===g[0],b=d[d.length-1]===g[g.length-1],S=[];for(c=g.length-1;c>=0;--c)S.push(u[m[g[c]][2]]);for(c=+f;c<d.length-b;++c)S.push(u[m[d[c]][2]]);return S}function s(u,c){for(var h=u.length,m=u[h-1],p=c[0],g=c[1],d=m[0],f=m[1],b,S,v=!1,A=0;A<h;++A)m=u[A],b=m[0],S=m[1],S>g!=f>g&&p<(d-b)*(g-S)/(f-S)+b&&(v=!v),d=b,f=S;return v}function l(u){for(var c=-1,h=u.length,m=u[h-1],p,g,d=m[0],f=m[1],b=0;++c<h;)p=d,g=f,m=u[c],d=m[0],f=m[1],p-=d,g-=f,b+=Math.hypot(p,g);return b}r.polygonArea=t,r.polygonCentroid=e,r.polygonContains=s,r.polygonHull=a,r.polygonLength=l,Object.defineProperty(r,"__esModule",{value:!0})})});var $H=ar((f7,qH)=>{(function(r,t){typeof f7=="object"&&typeof qH<"u"?t(f7,XH(),YH()):typeof define=="function"&&define.amd?define(["exports","d3-array","d3-polygon"],t):t(r.d3=r.d3||{},r.d3,r.d3)})(f7,function(r,t,e){"use strict";var o=1e-10;function n(N){return N<=o&&N>=-o}function i(N,_){return N.x*_.x+N.y*_.y+N.z*_.z}function a(N,_){return n(N.x*_.y-N.y*_.x)&&n(N.y*_.z-N.z*_.y)&&n(N.z*_.x-N.x*_.z)}function s(N){var _,O,T,D,V,j,K,z;if(T=N[N.length-2],D=N[N.length-1],V=N[0],j=l(T,D),K=l(D,V),O=u(j,K),_=Math.sign(O),T=D,D=V,V=N[1],j=K,K=l(D,V),O=u(j,K),Math.sign(O)===_){for(z=2;z<N.length-1;z++)if(T=D,D=V,V=N[z],j=K,K=l(D,V),O=u(j,K),Math.sign(O)!==_)return;return _}}function l(N,_){return[_[0]-N[0],_[1]-N[1]]}function u(N,_){return N[0]*_[1]-N[1]*_[0]}function c(N,_){this.face=N,this.vert=_,this.nextf=null,this.prevf=null,this.nextv=null,this.prevv=null}function h(N){this.forFace=N,this.head=null}h.prototype.add=function(N){this.head===null?this.head=N:this.forFace?(this.head.prevv=N,N.nextv=this.head,this.head=N):(this.head.prevf=N,N.nextf=this.head,this.head=N)},h.prototype.isEmpty=function(){return this.head===null},h.prototype.fill=function(N){if(!this.forFace){var _=this.head;do N.push(_.face),_.face.marked=!0,_=_.nextf;while(_!==null)}},h.prototype.removeAll=function(){if(this.forFace){var N=this.head;do N.prevf===null?N.nextf===null?N.vert.conflicts.head=null:(N.nextf.prevf=null,N.vert.conflicts.head=N.nextf):(N.nextf!=null&&(N.nextf.prevf=N.prevf),N.prevf.nextf=N.nextf),N=N.nextv,N!=null&&(N.prevv=null);while(N!=null)}else{var N=this.head;do N.prevv==null?N.nextv==null?N.face.conflicts.head=null:(N.nextv.prevv=null,N.face.conflicts.head=N.nextv):(N.nextv!=null&&(N.nextv.prevv=N.prevv),N.prevv.nextv=N.nextv),N=N.nextf,N!=null&&(N.prevf=null);while(N!=null)}},h.prototype.getVertices=function(){for(var N=[],_=this.head;_!==null;)N.push(_.vert),_=_.nextv;return N};function m(N,_,O,T,D,V){this.x=N,this.y=_,this.weight=o,this.index=0,this.conflicts=new h(!1),this.neighbours=null,this.nonClippedPolygon=null,this.polygon=null,this.originalObject=null,this.isDummy=!1,D!==void 0&&(this.originalObject=D),V!=null&&(this.isDummy=V),T!=null&&(this.weight=T),O!=null?this.z=O:this.z=this.projectZ(this.x,this.y,this.weight)}m.prototype.projectZ=function(N,_,O){return N*N+_*_-O},m.prototype.setWeight=function(N){this.weight=N,this.z=this.projectZ(this.x,this.y,this.weight)},m.prototype.subtract=function(N){return new m(N.x-this.x,N.y-this.y,N.z-this.z)},m.prototype.crossproduct=function(N){return new m(this.y*N.z-this.z*N.y,this.z*N.x-this.x*N.z,this.x*N.y-this.y*N.x)},m.prototype.equals=function(N){return this.x===N.x&&this.y===N.y&&this.z===N.z};function p(N){var _=N.verts[0],O=N.verts[1],T=N.verts[2];this.a=_.y*(O.z-T.z)+O.y*(T.z-_.z)+T.y*(_.z-O.z),this.b=_.z*(O.x-T.x)+O.z*(T.x-_.x)+T.z*(_.x-O.x),this.c=_.x*(O.y-T.y)+O.x*(T.y-_.y)+T.x*(_.y-O.y),this.d=-1*(_.x*(O.y*T.z-T.y*O.z)+O.x*(T.y*_.z-_.y*T.z)+T.x*(_.y*O.z-O.y*_.z))}p.prototype.getNormZPlane=function(){return[-1*(this.a/this.c),-1*(this.b/this.c),-1*(this.d/this.c)]},p.prototype.getDualPointMappedToPlane=function(){var N=this.getNormZPlane(),_=new g(N[0]/2,N[1]/2);return _};function g(N,_){this.x=N,this.y=_}function d(N,_,O){this.x=N,this.y=_,this.z=O}d.prototype.negate=function(){this.x*=-1,this.y*=-1,this.z*=-1},d.prototype.normalize=function(){var N=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);N>0&&(this.x/=N,this.y/=N,this.z/=N)};function f(N,_,O){this.next=null,this.prev=null,this.twin=null,this.orig=N,this.dest=_,this.iFace=O}f.prototype.isHorizon=function(){return this.twin!==null&&!this.iFace.marked&&this.twin.iFace.marked},f.prototype.findHorizon=function(N){if(this.isHorizon()){if(N.length>0&&this===N[0])return;N.push(this),this.next.findHorizon(N)}else this.twin!==null&&this.twin.next.findHorizon(N)},f.prototype.isEqual=function(N,_){return this.orig.equals(N)&&this.dest.equals(_)||this.orig.equals(_)&&this.dest.equals(N)};function b(N){this.message=N,this.stack=new Error().stack}b.prototype.name="d3WeightedVoronoiError",b.prototype=new Error;function S(N,_,O,T){this.conflicts=new h(!0),this.verts=[N,_,O],this.marked=!1;var D=N.subtract(_).crossproduct(_.subtract(O));this.normal=new d(-D.x,-D.y,-D.z),this.normal.normalize(),this.createEdges(),this.dualPoint=null,T!=null&&this.orient(T)}S.prototype.getDualPoint=function(){if(this.dualPoint==null){var N=new p(this);this.dualPoint=N.getDualPointMappedToPlane()}return this.dualPoint},S.prototype.isVisibleFromBelow=function(){return this.normal.z<-14259414393190911e-25},S.prototype.createEdges=function(){this.edges=[],this.edges[0]=new f(this.verts[0],this.verts[1],this),this.edges[1]=new f(this.verts[1],this.verts[2],this),this.edges[2]=new f(this.verts[2],this.verts[0],this),this.edges[0].next=this.edges[1],this.edges[0].prev=this.edges[2],this.edges[1].next=this.edges[2],this.edges[1].prev=this.edges[0],this.edges[2].next=this.edges[0],this.edges[2].prev=this.edges[1]},S.prototype.orient=function(N){if(!(i(this.normal,N)<i(this.normal,this.verts[0]))){var _=this.verts[1];this.verts[1]=this.verts[2],this.verts[2]=_,this.normal.negate(),this.createEdges()}},S.prototype.getEdge=function(N,_){for(var O=0;O<3;O++)if(this.edges[O].isEqual(N,_))return this.edges[O];return null},S.prototype.link=function(N,_,O){if(N instanceof S){var T=N.getEdge(_,O);if(T===null)throw new b("when linking, twin is null");var D=this.getEdge(_,O);if(D===null)throw new b("when linking, twin is null");T.twin=D,D.twin=T}else{var T=N,D=this.getEdge(T.orig,T.dest);T.twin=D,D.twin=T}},S.prototype.conflict=function(N){return i(this.normal,N)>i(this.normal,this.verts[0])+o},S.prototype.getHorizon=function(){for(var N=0;N<3;N++)if(this.edges[N].twin!==null&&this.edges[N].twin.isHorizon())return this.edges[N];return null},S.prototype.removeConflict=function(){this.conflicts.removeAll()};function v(){this.points=[],this.facets=[],this.created=[],this.horizon=[],this.visible=[],this.current=0}v.prototype.init=function(N,_){this.points=[];for(var O=0;O<_.length;O++)this.points[O]=new m(_[O].x,_[O].y,_[O].z,null,_[O],!1);this.points=this.points.concat(N)},v.prototype.permutate=function(){for(var N=this.points.length,_=N-1;_>0;_--){var O=Math.floor(Math.random()*_),T=this.points[O];T.index=_;var D=this.points[_];D.index=O,this.points.splice(O,1,D),this.points.splice(_,1,T)}},v.prototype.prep=function(){if(this.points.length<=3)throw new b("Less than 4 points");for(var N=0;N<this.points.length;N++)this.points[N].index=N;var _,O,T,D,V,j,K,z;_=this.points[0],O=this.points[1],T=D=null;for(var N=2;N<this.points.length;N++)if(!(a(_,this.points[N])&&a(O,this.points[N]))){T=this.points[N],T.index=2,this.points[2].index=N,this.points.splice(N,1,this.points[2]),this.points.splice(2,1,T);break}if(T===null)throw new b("Not enough non-planar Points (v2 is null)");z=new S(_,O,T);for(var N=3;N<this.points.length;N++)if(!n(i(z.normal,z.verts[0])-i(z.normal,this.points[N]))){D=this.points[N],D.index=3,this.points[3].index=N,this.points.splice(N,1,this.points[3]),this.points.splice(3,1,D);break}if(D===null)throw new b("Not enough non-planar Points (v3 is null)");z.orient(D),V=new S(_,T,D,O),j=new S(_,O,D,T),K=new S(O,T,D,_),this.addFacet(z),this.addFacet(V),this.addFacet(j),this.addFacet(K),z.link(V,_,T),z.link(j,_,O),z.link(K,O,T),V.link(j,_,D),V.link(K,T,D),j.link(K,D,O),this.current=4;for(var X,N=this.current;N<this.points.length;N++)X=this.points[N],z.conflict(X)&&this.addConflict(z,X),V.conflict(X)&&this.addConflict(V,X),j.conflict(X)&&this.addConflict(j,X),K.conflict(X)&&this.addConflict(K,X)},v.prototype.addConflicts=function(N,_,O){var T=N.conflicts.getVertices(),D=_.conflicts.getVertices(),V=[],j,K,z,X;for(z=X=0;z<T.length||X<D.length;)z<T.length&&X<D.length?(j=T[z],K=D[X],j.index===K.index?(V.push(j),z++,X++):j.index>K.index?(V.push(j),z++):(V.push(K),X++)):z<T.length?V.push(T[z++]):V.push(D[X++]);for(var z=V.length-1;z>=0;z--)j=V[z],O.conflict(j)&&this.addConflict(O,j)},v.prototype.addConflict=function(N,_){var O=new c(N,_);N.conflicts.add(O),_.conflicts.add(O)},v.prototype.removeConflict=function(N){N.removeConflict();var _=N.index;if(N.index=-1,_===this.facets.length-1){this.facets.splice(this.facets.length-1,1);return}if(!(_>=this.facets.length||_<0)){var O=this.facets.splice(this.facets.length-1,1);O[0].index=_,this.facets.splice(_,1,O[0])}},v.prototype.addFacet=function(N){N.index=this.facets.length,this.facets.push(N)},v.prototype.compute=function(){for(this.prep();this.current<this.points.length;){var N=this.points[this.current];if(N.conflicts.isEmpty()){this.current++;continue}this.created=[],this.horizon=[],this.visible=[],N.conflicts.fill(this.visible);for(var _,O=0;O<this.visible.length;O++)if(_=this.visible[O].getHorizon(),_!==null){_.findHorizon(this.horizon);break}for(var T=null,D=null,V=0;V<this.horizon.length;V++){var j=this.horizon[V],K=new S(N,j.orig,j.dest,j.twin.next.dest);K.conflicts=new h(!0),this.addFacet(K),this.created.push(K),this.addConflicts(j.iFace,j.twin.iFace,K),K.link(j),T!==null&&K.link(T,N,j.orig),T=K,D===null&&(D=K)}if(D!==null&&T!==null&&T.link(D,N,this.horizon[0].orig),this.created.length!=0){for(var z=0;z<this.visible.length;z++)this.removeConflict(this.visible[z]);this.current++,this.created=[]}}return this.facets},v.prototype.clear=function(){this.points=[],this.facets=[],this.created=[],this.horizon=[],this.visible=[],this.current=0};function A(N,_){for(var O,T=B(_),D=-1,V=N.length-B(N),j,K,z=N[V-1],X,ct,J,bt;++D<V;){for(O=_.slice(),_.length=0,X=N[D],ct=O[(K=O.length-T)-1],j=-1;++j<K;)J=O[j],M(J,z,X)?(M(ct,z,X)||(bt=C(ct,J,z,X),isFinite(bt[0])&&_.push(bt)),_.push(J)):M(ct,z,X)&&(bt=C(ct,J,z,X),isFinite(bt[0])&&_.push(bt)),ct=J;T&&_.push(_[0]),z=X}return _}function M(N,_,O){return(O[0]-_[0])*(N[1]-_[1])<(O[1]-_[1])*(N[0]-_[0])}function C(N,_,O,T){var D=N[0],V=O[0],j=_[0]-D,K=T[0]-V,z=N[1],X=O[1],ct=_[1]-z,J=T[1]-X,bt=(K*(z-X)-J*(D-V))/(J*j-K*ct);return[D+bt*j,z+bt*ct]}function B(N){var _=N[0],O=N[N.length-1];return!(_[0]-O[0]||_[1]-O[1])}function F(N){var _=[],O=N,T=N.dest,D=T.originalObject,V=[];do{O=O.twin.prev;var j=O.orig.originalObject;j.isDummy||V.push(j);var K=O.iFace;K.isVisibleFromBelow()&&_.push(K)}while(O!==N);return D.neighbours=V,_}function L(N,_,O){var T=new v;T.clear(),T.init(_,N);for(var D=T.compute(N),V=[],j=[],K=D.length,z=0;z<K;z++){var X=D[z];if(X.isVisibleFromBelow())for(var ct=0;ct<3;ct++){var J=X.edges[ct],bt=J.dest,Nt=bt.originalObject;if(!j[bt.index]){if(j[bt.index]=!0,Nt.isDummy)continue;for(var zt=F(J),tt=[],et=null,gt=null,at=1,nt=1,Ct=0;Ct<zt.length;Ct++){var st=zt[Ct].getDualPoint(),Jt=st.x,ne=st.y;et!==null&&(at=et-Jt,nt=gt-ne,at<0&&(at=-at),nt<0&&(nt=-nt)),(at>o||nt>o)&&(tt.push([Jt,ne]),et=Jt,gt=ne)}if(Nt.nonClippedPolygon=tt.reverse(),!Nt.isDummy&&e.polygonLength(Nt.nonClippedPolygon)>0){var qt=A(O,Nt.nonClippedPolygon);Nt.polygon=qt,qt.site=Nt,qt.length>0&&V.push(qt)}}}}return V}function I(){var N=function(z){return z.x},_=function(z){return z.y},O=function(z){return z.weight},T=[[0,0],[0,1],[1,1],[1,0]],D=[[0,0],[1,1]],V=[1,1];function j(z){var X;return X=z.map(function(ct){return new m(N(ct),_(ct),null,O(ct),ct,!1)}),L(X,K(),T)}j.x=function(z){return arguments.length?(N=z,j):N},j.y=function(z){return arguments.length?(_=z,j):_},j.weight=function(z){return arguments.length?(O=z,j):O},j.clip=function(z){var X,ct,J;return arguments.length?(ct=t.extent(z.map(function(bt){return bt[0]})),J=t.extent(z.map(function(bt){return bt[1]})),X=s(z),X===void 0?T=e.polygonHull(z):X===1?T=z.reverse():T=z,D=[[ct[0],J[0]],[ct[1],J[1]]],V=[ct[1]-ct[0],J[1]-J[0]],j):T},j.extent=function(z){return arguments.length?(T=[z[0],[z[0][0],z[1][1]],z[1],[z[1][0],z[0][1]]],D=z,V=[z[1][0]-z[0][0],z[1][1]-z[0][1]],j):D},j.size=function(z){return arguments.length?(T=[[0,0],[0,z[1]],[z[0],z[1]],[z[0],0]],D=[[0,0],z],V=z,j):V};function K(){var z,X,ct,J,bt,Nt,zt,tt,et,gt,at=[],nt=[];z=D[0][0],X=D[1][0],ct=D[0][1],J=D[1][1],bt=X-z,Nt=J-ct,zt=z-bt,tt=X+bt,et=ct-Nt,gt=J+Nt,at[0]=[zt,et],at[1]=[zt,gt],at[2]=[tt,gt],at[3]=[tt,et];for(var Ct=0;Ct<4;Ct++)nt.push(new m(at[Ct][0],at[Ct][1],null,o,new m(at[Ct][0],at[Ct][1],null,o,null,!0),!0));return nt}return j}r.weightedVoronoi=I,r.d3WeightedVoronoiError=b,Object.defineProperty(r,"__esModule",{value:!0})})});var QH=ar((g7,JH)=>{(function(r,t){typeof g7=="object"&&typeof JH<"u"?t(g7,FH(),VH(),zH(),$H()):typeof define=="function"&&define.amd?define(["exports","d3-polygon","d3-timer","d3-dispatch","d3-weighted-voronoi"],t):t(r.d3=r.d3||{},r.d3,r.d3,r.d3,r.d3)})(g7,function(r,t,e,o,n){"use strict";function i(){this.growthChangesLength=a,this.totalAvailableArea=NaN,this.lastAreaError=NaN,this.lastGrowth=NaN,this.growthChanges=[],this.growthChangeWeights=l(this.growthChangesLength),this.growthChangeWeightsSum=u(this.growthChangeWeights)}var a=10;function s(d,f){return d>=f?1:-1}function l(d){for(var f=3,b=1,S=1,v=f,A=[],M=0;M<d;M++)A.push(v),v-=b,v<S&&(v=S);return A}function u(d){for(var f=0,b=0;b<d.length;b++)f+=d[b];return f}i.prototype.reset=function(){return this.lastAreaError=NaN,this.lastGrowth=NaN,this.growthChanges=[],this.growthChangesLength=a,this.growthChangeWeights=l(this.growthChangesLength),this.growthChangeWeightsSum=u(this.growthChangeWeights),this.totalAvailableArea=NaN,this},i.prototype.clear=function(){return this.lastAreaError=NaN,this.lastGrowth=NaN,this.growthChanges=[],this},i.prototype.length=function(d){return arguments.length?(parseInt(d)>0?(this.growthChangesLength=Math.floor(parseInt(d)),this.growthChangeWeights=l(this.growthChangesLength),this.growthChangeWeightsSum=u(this.growthChangeWeights)):console.warn("FlickeringMitigation.length() accepts only positive integers; unable to handle "+d),this):this.growthChangesLength},i.prototype.totalArea=function(d){return arguments.length?(parseFloat(d)>0?this.totalAvailableArea=parseFloat(d):console.warn("FlickeringMitigation.totalArea() accepts only positive numbers; unable to handle "+d),this):this.totalAvailableArea},i.prototype.add=function(d){var f,b;return f=this.lastAreaError,this.lastAreaError=d,isNaN(f)||(b=this.lastGrowth,this.lastGrowth=s(this.lastAreaError,f)),isNaN(b)||this.growthChanges.unshift(this.lastGrowth!=b),this.growthChanges.length>this.growthChangesLength&&this.growthChanges.pop(),this},i.prototype.ratio=function(){var d=0,f;if(this.growthChanges.length<this.growthChangesLength||this.lastAreaError>this.totalAvailableArea/10)return 0;for(var b=0;b<this.growthChangesLength;b++)this.growthChanges[b]&&(d+=this.growthChangeWeights[b]);return f=d/this.growthChangeWeightsSum,f};function c(){var d,f,b,S,v,A,M,C;function B(L,I,N,_){var O=!1,T,D;for(d!==_.clip()&&(d=_.clip(),f=_.extent(),O=!0),O&&F(),T=b+M*_.prng()(),D=v+C*_.prng()();!t.polygonContains(d,[T,D]);)T=b+M*_.prng()(),D=v+C*_.prng()();return[T,D]}function F(){b=f[0][0],S=f[1][0],v=f[0][1],A=f[1][1],M=S-b,C=A-v}return B}function h(){var d=0,f,b,S,v,A,M;function C(I,N,_,O){var T=!1;return f!==O.clip()&&(f=O.clip(),T|=!0),b!==_&&(b=_,T|=!0),T&&B(),[v[0]+Math.cos(d+N*M)*A+(O.prng()()-.5)*.001,v[1]+Math.sin(d+N*M)*A+(O.prng()()-.5)*.001]}C.startAngle=function(I){return arguments.length?(d=I,C):d};function B(){v=t.polygonCentroid(f),A=F(v,f)/2,S=b.length,M=2*Math.PI/S}function F(I,N){for(var _=1/0,O=0,T=N[N.length-1],D=N[O],V;O<N.length;)V=L(I,T,D),V<_&&(_=V),O++,T=D,D=N[O];return _}function L(I,N,_){var O=I[0],T=I[1],D=N[0],V=N[1],j=_[0],K=_[1],z=O-D,X=T-V,ct=j-D,J=K-V,bt=z*ct+X*J,Nt=ct*ct+J*J,zt=-1;Nt!=0&&(zt=bt/Nt);var tt,et;zt<0?(tt=D,et=V):zt>1?(tt=j,et=K):(tt=D+zt*ct,et=V+zt*J);var gt=O-tt,at=T-et;return Math.sqrt(gt*gt+at*at)}return C}function m(){var d,f,b,S,v;function A(C,B,F,L){var I=!1;return d!==L.clip()&&(d=L.clip(),I|=!0),f!==F&&(f=F,I|=!0),I&&M(),v}function M(){b=f.length,S=t.polygonArea(d),v=S/b/2}return A}function p(d){this.message=d,this.stack=new Error().stack}p.prototype.name="d3VoronoiMapError",p.prototype=new Error;function g(d){var f=.01,b=50,S=.01,v=Math.random,A=c(),M=m(),C=c(),B=1e-10,F=function(re){return re.weight},L=f,I=b,N=S,_=v,O=A,T=M,D=n.weightedVoronoi(),V=new i,j=!0,K,z,X,ct,J,bt,Nt,zt,tt,et=e.timer(ne),gt=o.dispatch("tick","end");let at=1,nt=1e3;var Ct;function st(re){return Math.pow(re,2)}function Jt(re,Rt){return st(Rt.x-re.x)+st(Rt.y-re.y)}tt={tick:qt,restart:function(){return et.restart(ne),tt},stop:function(){return et.stop(),tt},weight:function(re){return arguments.length?(F=re,j=!0,tt):F},convergenceRatio:function(re){return arguments.length?(L=re,j=!0,tt):L},maxIterationCount:function(re){return arguments.length?(I=re,tt):I},minWeightRatio:function(re){return arguments.length?(N=re,j=!0,tt):N},clip:function(re){return arguments.length?(D.clip(re),j=!0,tt):D.clip()},extent:function(re){return arguments.length?(D.extent(re),j=!0,tt):D.extent()},size:function(re){return arguments.length?(D.size(re),j=!0,tt):D.size()},prng:function(re){return arguments.length?(_=re,j=!0,tt):_},initialPosition:function(re){return arguments.length?(O=re,j=!0,tt):O},initialWeight:function(re){return arguments.length?(T=re,j=!0,tt):T},state:function(){return j&&se(),{ended:zt,iterationCount:ct,convergenceRatio:bt/z,polygons:J}},on:function(re,Rt){return arguments.length===1?gt.on(re):(gt.on(re,Rt),tt)}};function ne(){qt(),gt.call("tick",tt),zt&&(et.stop(),gt.call("end",tt))}function qt(){zt||(j&&se(),J=_t(J,V.ratio()),ct++,bt=Rr(J),V.add(bt),Nt=bt<X,zt=Nt||ct>=I)}function se(){Xe(),K=d.length,z=Math.abs(t.polygonArea(D.clip())),X=L*z,V.clear().totalArea(z),ct=0,Nt=!1,J=ot(d,tt),zt=!1,j=!1}function ot(re,Rt){var ee=re.reduce(function($e,mr){return Math.max($e,F(mr))},-1/0),we=ee*N,We,qe;return We=re.map(function($e,mr,pr){return{index:mr,weight:Math.max(F($e),we),initialPosition:O($e,mr,pr,Rt),initialWeight:T($e,mr,pr,Rt),originalData:$e}}),qe=Ot(We,Rt),Ct(qe),D(qe)}function Ot(re,Rt){var ee=re.reduce(function(We,qe){return We+=qe.weight},0),we;return re.map(function(We,qe,$e){return we=We.initialPosition,t.polygonContains(D.clip(),we)||(we=A(We,qe,$e,Rt)),{index:We.index,targetedArea:z*We.weight/ee,data:We,x:we[0],y:we[1],weight:We.initialWeight}})}function _t(re,Rt){var ee;if(Dt(re,Rt),ee=re.map(function(we){return we.site.originalObject}),re=D(ee),re.length<K)throw new p("at least 1 site has no area, which is not supposed to arise");if(Tt(re,Rt),ee=re.map(function(we){return we.site.originalObject}),re=D(ee),re.length<K)throw new p("at least 1 site has no area, which is not supposed to arise");return re}function Dt(re,Rt){var ee=[],we=.5,We,qe,$e,mr,pr,jr,co;We=we*Rt,qe=1-We;for(var ma=0;ma<K;ma++)$e=re[ma],mr=$e.site.originalObject,pr=t.polygonCentroid($e),jr=pr[0]-mr.x,co=pr[1]-mr.y,jr*=qe,co*=qe,mr.x+=jr,mr.y+=co,ee.push(mr);Ct(ee)}function Tt(re,Rt){var ee=[],we=.1,We,qe,$e,mr,pr,jr;We=we*Rt;for(var co=0;co<K;co++)qe=re[co],$e=qe.site.originalObject,mr=t.polygonArea(qe),pr=$e.targetedArea/mr,pr=Math.max(pr,1-we+We),pr=Math.min(pr,1+we-We),jr=$e.weight*pr,jr=Math.max(jr,B),$e.weight=jr,ee.push($e);Ct(ee)}function Ft(re){var Rt=0,ee,we,We,qe,$e,mr,pr;do{if(Rt>nt)throw new p("handleOverweighted0 is looping too much");ee=!1;for(var jr=0;jr<K;jr++){we=re[jr];for(var co=jr+1;co<K;co++)if(We=re[co],we.weight>We.weight?(qe=we,$e=We):(qe=We,$e=we),mr=Jt(we,We),mr<qe.weight-$e.weight){pr=mr+$e.weight/2,pr=Math.max(pr,B),qe.weight=pr,ee=!0,Rt++;break}if(ee)break}}while(ee)}function fe(re){var Rt=0,ee,we,We,qe,$e,mr,pr;do{if(Rt>nt)throw new p("handleOverweighted1 is looping too much");ee=!1;for(var jr=0;jr<K;jr++){we=re[jr];for(var co=jr+1;co<K;co++)if(We=re[co],we.weight>We.weight?(qe=we,$e=We):(qe=We,$e=we),mr=Jt(we,We),mr<qe.weight-$e.weight){pr=qe.weight-$e.weight-mr,$e.weight+=pr+B,ee=!0,Rt++;break}if(ee)break}}while(ee)}function Rr(re){for(var Rt=0,ee,we,We,qe=0;qe<K;qe++)ee=re[qe],we=ee.site.originalObject,We=t.polygonArea(ee),Rt+=Math.abs(we.targetedArea-We);return Rt}function Xe(){switch(at){case 0:Ct=Ft;break;case 1:Ct=fe;break;default:console.error("unknown 'handleOverweighted' variant; using variant #1"),Ct=Ft}}return tt}r.voronoiMapSimulation=g,r.voronoiMapInitialPositionRandom=c,r.voronoiMapInitialPositionPie=h,r.d3VoronoiMapError=p,Object.defineProperty(r,"__esModule",{value:!0})})});var tz=ar((b7,ZH)=>{(function(r,t){typeof b7=="object"&&typeof ZH<"u"?t(b7,QH()):typeof define=="function"&&define.amd?define(["exports","d3-voronoi-map"],t):t(r.d3=r.d3||{},r.d3)})(b7,function(r,t){"use strict";function e(){var o=.01,n=50,i=.01,a=Math.random,s=[[0,0],[0,1],[1,1],[1,0]],l=[[0,0],[1,1]],u=[1,1],c=o,h=n,m=i,p=a,g=[{weight:1},{weight:1}],d=t.voronoiMapSimulation(g).stop();function f(S){b(s,S)}f.convergenceRatio=function(S){return arguments.length?(c=S,f):c},f.maxIterationCount=function(S){return arguments.length?(h=S,f):h},f.minWeightRatio=function(S){return arguments.length?(m=S,f):m},f.clip=function(S){return arguments.length?(d.clip(S),s=d.clip(),l=d.extent(),u=d.size(),f):s},f.extent=function(S){return arguments.length?(d.extent(S),s=d.clip(),l=d.extent(),u=d.size(),f):l},f.size=function(S){return arguments.length?(d.size(S),s=d.clip(),l=d.extent(),u=d.size(),f):u},f.prng=function(S){return arguments.length?(p=S,f):p};function b(S,v){var A;if(v.polygon=S,v.height!=0){A=t.voronoiMapSimulation(v.children).clip(S).weight(function(C){return C.value}).convergenceRatio(c).maxIterationCount(h).minWeightRatio(m).prng(p).stop();for(var M=A.state();!M.ended;)A.tick(),M=A.state();M.polygons.forEach(function(C){b(C,C.site.originalObject.data.originalData)})}}return f}r.voronoiTreemap=e,Object.defineProperty(r,"__esModule",{value:!0})})});var Gat,ez,Vat,rz,Hat,zat,oz,jat,nz,iz=VP(()=>{/*! @bicharts/chart-host — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; Natural Earth and US Census/TIGER (public domain). Full text: NOTICE in this package. */Gat=Object.create,ez=Object.defineProperty,Vat=Object.getOwnPropertyDescriptor,rz=Object.getOwnPropertyNames,Hat=Object.getPrototypeOf,zat=Object.prototype.hasOwnProperty,oz=(r,t)=>function(){try{return t||(0,r[rz(r)[0]])((t={exports:{}}).exports,t),t.exports}catch(o){throw t=0,o}},jat=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of rz(t))!zat.call(r,n)&&n!==e&&ez(r,n,{get:()=>t[n],enumerable:!(o=Vat(t,n))||o.enumerable});return r},nz=(r,t,e)=>(e=r!=null?Gat(Hat(r)):{},jat(t||!r||!r.__esModule?ez(e,"default",{value:r,enumerable:!0}):e,r))});function W7(r){return!!r&&(!!r[yP]||!!r[C7])}function tM(r,t){return r&&t}var N7,oo,Ra,wc,mP,Pc,Lr,x7,E7,Yk,qk,$k,pP,dP,Jk,C7,yP,Qk,k7,US,M7,T7,Plt,Un,Mf,el,BS,Tf,id,fP,Zk,OS,L7,I7,R7,_7,U7,B7,O7,D7,eM,rM,oM,F7,Oz,G7,nM,V7,H7,z7,tm=VP(()=>{/*! @bicharts/chart-host — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; Natural Earth and US Census/TIGER (public domain). Full text: NOTICE in this package. */N7="1.25.0",oo="d3-mark",Ra="d3-legend-mark",wc="d3-axis-filter",mP="d3-lift-selected",Pc="lch-control",Lr="data-row-idx",x7="data-bic-note-style",E7="data-lch-sel-rule",Yk="clicked-marks",qk="data-mark-key",$k="data-lch-no-row-marks",pP="data-lch-snapshot",dP="llm-xfilter-refresh",Jk="__lchHostSelection",C7="__llmAnimStop",yP="__llmXfClear",Qk="__llmInitialXfMark",k7="__lchUiState",US="__lchScroll",M7="lch-table-body",T7="__lchClickedMarks",Plt=Object.freeze(["camera","llmZoom"]),Un="bic-chart-host",Mf="lch-has-selection",el="lch-mark-selected",BS="lch-marks-inert",Tf="lch-tick-active",id="--lch-dim-opacity",fP=.25,Zk=.01,OS=25;L7=1e3,I7=250,R7=5e3,_7=3,U7=0,B7=60,O7=3,D7=500,eM=95,rM=50,oM=100,F7="both",Oz=12e4,G7="horizontal",nM="mark",V7="fit",H7="auto",z7=2e3});function NM(r){let t=r/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xM(r){return r>CM?Math.cbrt(r):(Q7*r+16)/116}function kM(r,t,e){let o=NM(r),n=NM(t),i=NM(e),a=.4124564*o+.3575761*n+.1804375*i,s=.2126729*o+.7151522*n+.072175*i,l=.0193339*o+.119192*n+.9503041*i,u=xM(a/Mj),c=xM(s/Tj),h=xM(l/Wj);return{L:116*c-16,a:500*(u-c),b:200*(c-h)}}function Kl(r){let t=/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(r.trim());if(!t)return null;let e=t[1].length===3?t[1][0]+t[1][0]+t[1][1]+t[1][1]+t[1][2]+t[1][2]:t[1];return kM(parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16))}function ss(r,t){let e=Math.hypot(r.a,r.b),o=Math.hypot(t.a,t.b),n=(e+o)/2,i=Math.pow(n,7),a=.5*(1-Math.sqrt(i/(i+Math.pow(25,7)))),s=(1+a)*r.a,l=(1+a)*t.a,u=Math.hypot(s,r.b),c=Math.hypot(l,t.b),h=u<J7||c<J7,m=u<J7?0:(Math.atan2(r.b,s)*Cj+360)%360,p=c<J7?0:(Math.atan2(t.b,l)*Cj+360)%360,g=t.L-r.L,d=c-u,f;h?f=0:Math.abs(p-m)<=180?f=p-m:p-m>180?f=p-m-360:f=p-m+360;let b=2*Math.sqrt(u*c)*Math.sin(f/2*FS),S=(r.L+t.L)/2,v=(u+c)/2,A;h?A=m+p:Math.abs(m-p)<=180?A=(m+p)/2:m+p<360?A=(m+p+360)/2:A=(m+p-360)/2;let M=1-.17*Math.cos((A-30)*FS)+.24*Math.cos(2*A*FS)+.32*Math.cos((3*A+6)*FS)-.2*Math.cos((4*A-63)*FS),C=30*Math.exp(-Math.pow((A-275)/25,2)),B=Math.pow(v,7),L=-(2*Math.sqrt(B/(B+Math.pow(25,7))))*Math.sin(2*C*FS),I=Math.pow(S-50,2),N=1+.015*I/Math.sqrt(20+I),_=1+.045*v,O=1+.015*v*M,T=g/N,D=d/_,V=b/O;return Math.sqrt(T*T+D*D+V*V+L*D*V)}function GS(r){let t=u=>{let c=u*u*u;return c>CM?c:(116*u-16)/Q7},e=(r.L+16)/116,o=e+r.a/500,n=e-r.b/200,i=Mj*t(o),a=Tj*(r.L>Q7*CM?e*e*e:r.L/Q7),s=Wj*t(n);return"#"+[3.2404542*i-1.5371385*a-.4985314*s,-.969266*i+1.8760108*a+.041556*s,.0556434*i-.2040259*a+1.0572252*s].map(u=>{let c=Math.max(0,Math.min(1,u)),h=c<=.0031308?12.92*c:1.055*Math.pow(c,1/2.4)-.055;return Math.round(h*255).toString(16).padStart(2,"0")}).join("")}function Fut(r,t){try{let e=t?.defaultView;return e?.getComputedStyle?e.getComputedStyle(r):null}catch{return null}}function Gut(r,t){let e=r.getAttribute?.("fill");if(e!=null&&String(e).trim()!=="")return String(e).trim();let o=t?.fill;return o==null?"":String(o).trim()}function Vut(r){let t=r.trim().toLowerCase();if(!t||t==="none"||t==="transparent")return null;let e=/^#([0-9a-f]{3}|[0-9a-f]{6})$/.exec(t);if(e){let n=e[1],i=n.length===3?n[0]+n[0]+n[1]+n[1]+n[2]+n[2]:n;return[parseInt(i.slice(0,2),16),parseInt(i.slice(2,4),16),parseInt(i.slice(4,6),16)]}let o=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)\s*(?:[,/]\s*([\d.]+)\s*)?\)$/.exec(t);return!o||o[4]!==void 0&&parseFloat(o[4])===0?null:[Math.round(parseFloat(o[1])),Math.round(parseFloat(o[2])),Math.round(parseFloat(o[3]))]}function Hut(r){return[Math.round(r[0]/EM),Math.round(r[1]/EM),Math.round(r[2]/EM)].join(",")}function zut(r){return"#"+r.map(t=>Math.max(0,Math.min(255,t)).toString(16).padStart(2,"0")).join("")}function Lj(r,t){if(!r||typeof r.querySelectorAll!="function")return Wf;try{let e=Array.from(r.querySelectorAll(`.${oo}, [${Lr}]`));if(e.length===0||e.length>Out)return Wf;let o=t??r.ownerDocument,n=[];for(let M of e){let C=Vut(Gut(M,Fut(M,o)));C&&n.push({rgb:C,tag:String(M.tagName||"").toLowerCase()})}let i=new Map;for(let M of n){let C=i.get(M.tag)??{fills:new Set,n:0};C.fills.add(M.rgb.join(",")),C.n++,i.set(M.tag,C)}let a=new Set([...i].filter(([,M])=>M.fills.size===1&&M.n>=kj).map(([M])=>M)),l=new Set([...i].filter(([M])=>!a.has(M)).flatMap(([,M])=>[...M.fills])).size>1?n.filter(M=>!a.has(M.tag)):n,u=new Set,c=new Map,h=0;for(let{rgb:M}of l){h++,u.add(M.join(","));let C=Hut(M),B=c.get(C);B?B.n++:c.set(C,{rgb:M,n:1})}if(h<kj||u.size<Z7)return Wf;let m=[...c.values()].sort((M,C)=>C.n-M.n).slice(0,Dut),p=m.map(M=>Kl(zut(M.rgb))).filter(M=>M!==null);if(p.length<Z7)return Wf;let g=p.map(()=>new Array(p.length).fill(0)),d=0,f=0,b=1;for(let M=0;M<p.length;M++)for(let C=M+1;C<p.length;C++){let B=ss(p[M],p[C]);g[M][C]=B,g[C][M]=B,B>d&&(d=B,f=M,b=C)}if(d<=0)return Wf;let S=0,v=0;for(let M=0;M<p.length;M++)M===f||M===b||(S+=(g[f][M]+g[M][b])/d-1,v++);if(v<2||S/v>TM)return Wf;let A=0;for(let M=0;M<p.length;M++){let C=0;for(let B=0;B<p.length;B++)(M===B||g[M][B]<=MM)&&(C+=m[B].n);C>A&&(A=C)}return{marks:h,distinctFills:u.size,crowdShare:Math.round(A/h*100),spanDeltaE:Math.round(d)}}catch{return Wf}}var Mj,Tj,Wj,CM,Q7,FS,Cj,J7,MM,Z7,TM,kj,Out,Dut,EM,Wf,WM=VP(()=>{tm();/*! @bicharts/chart-host — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; Natural Earth and US Census/TIGER (public domain). Full text: NOTICE in this package. */Mj=.95047,Tj=1,Wj=1.08883,CM=216/24389,Q7=24389/27;FS=Math.PI/180,Cj=180/Math.PI,J7=1e-4;MM=5,Z7=4,TM=.15,kj=24,Out=5e3,Dut=48,EM=32,Wf={marks:0,distinctFills:0,crowdShare:0,spanDeltaE:0}});var Dj={};GT(Dj,{MAX_CATEGORY_SLOTS:()=>Uj,MAX_LISTED_PAIRS:()=>Oj,RAMP_DECLINE_MIN_SLOTS:()=>Bj,censusCategoryColours:()=>oct});function Lf(r,t,e=0,o=""){return{source:o,declined:r,slots:e,closestPair:[],closestDeltaE:null,closestDeltaEPainted:null,closestDeltaEDimmed:null,dimOpacity:t,rampLike:!1,legendMatchesMarks:null,floor:OS,belowFloor:null,pairsBelowFloorCount:0,pairsBelowFloor:[],closestPairPainted:[],closestDeltaEDeutan:null,closestDeltaEProtan:null}}function Xut(r,t){try{let e=t?.defaultView;return e?.getComputedStyle?e.getComputedStyle(r):null}catch{return null}}function IM(r){if(r==null)return null;let t=String(r).trim().toLowerCase();if(!t||t==="none"||t==="transparent"||t.startsWith("url("))return null;let e=/^#([0-9a-f]{3}|[0-9a-f]{6})$/.exec(t);if(e){let i=e[1].length===3?e[1].replace(/./g,a=>a+a):e[1];return{rgb:[parseInt(i.slice(0,2),16),parseInt(i.slice(2,4),16),parseInt(i.slice(4,6),16)],alpha:1}}let o=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)\s*(?:[,/]\s*([\d.]+%?)\s*)?\)$/.exec(t);if(!o)return null;let n=1;return o[4]!==void 0&&(n=o[4].endsWith("%")?parseFloat(o[4])/100:parseFloat(o[4])),n>0?{rgb:[Math.round(+o[1]),Math.round(+o[2]),Math.round(+o[3])],alpha:Math.min(1,n)}:null}function e8(r){if(r==null||String(r).trim()==="")return 1;let t=parseFloat(String(r));return Number.isFinite(t)?Math.max(0,Math.min(1,t)):1}function Kut(r,t){let e=1;for(let o=r;o&&o!==t&&typeof o.getAttribute=="function";o=o.parentNode)e*=e8(o.getAttribute("opacity")),e*=e8(o.style?.opacity);return e}function Ij(r,t){let e=Xut(r,t),o=IM(t8(r.getAttribute?.("fill"),r.style?.fill,e?.fill));if(o)return{rgb:o.rgb,alpha:o.alpha*e8(t8(r.getAttribute?.("fill-opacity"),r.style?.fillOpacity))};let n=IM(t8(r.getAttribute?.("stroke"),r.style?.stroke,e?.stroke));return n?{rgb:n.rgb,alpha:n.alpha*e8(t8(r.getAttribute?.("stroke-opacity"),r.style?.strokeOpacity))}:null}function t8(...r){for(let t of r)if(t!=null&&String(t).trim()!=="")return String(t);return null}function Yut(r,t,e){let o=Ij(r,t),n=r;if(!o&&typeof r.querySelectorAll=="function"){for(let i of Array.from(r.querySelectorAll("*")))if(o=Ij(i,t),o){n=i;break}}return o?{rgb:o.rgb,alpha:o.alpha*Kut(n,e)}:null}function LM(r,t,e){let o=Math.max(0,Math.min(1,t));return[r[0]*o+e[0]*(1-o),r[1]*o+e[1]*(1-o),r[2]*o+e[2]*(1-o)].map(Math.round)}function Rj(r){let t=new Map;for(let e of r){let o=e.rgb.join(","),n=t.get(o)??{rgb:e.rgb,alphas:new Map},i=Math.round(e.alpha*100)/100;n.alphas.set(i,(n.alphas.get(i)??0)+1),t.set(o,n)}return[...t.values()].map(e=>({rgb:e.rgb,alpha:[...e.alphas].sort((o,n)=>n[1]-o[1]||n[0]-o[0])[0][0]}))}function _j(r,t){let e=r.map(Jut),o=t.map(n=>Qut(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]));return kM(o[0],o[1],o[2])}function Zut(r,t){let e=[];for(let o=0;o<r.length;o++)for(let n=o+1;n<r.length;n++){let i=ss(r[o],r[n]);i<t&&e.push({i:o,j:n,d:i})}return e.sort((o,n)=>o.d-n.d)}function PP(r){let t={i:0,j:1,d:1/0};for(let e=0;e<r.length;e++)for(let o=e+1;o<r.length;o++){let n=ss(r[e],r[o]);n<t.d&&(t={i:e,j:o,d:n})}return t}function tct(r){if(r.length<Z7)return!1;let t=0,e=0,o=1;for(let a=0;a<r.length;a++)for(let s=a+1;s<r.length;s++){let l=ss(r[a],r[s]);l>t&&(t=l,e=a,o=s)}if(t<=0)return!1;let n=0,i=0;for(let a=0;a<r.length;a++)a===e||a===o||(n+=(ss(r[e],r[a])+ss(r[a],r[o]))/t-1,i++);return i>=2&&n/i<=TM}function rct(r){let t=-1,e=0;for(let a=0;a<r.length;a++)for(let s=a+1;s<r.length;s++){let l=ss(r[a],r[s]);l>t&&(t=l,e=a)}let o=r.map(a=>({L:a.L,d:ss(r[e],a)})).sort((a,s)=>a.d-s.d),n=0,i=0;for(let a=1;a<o.length;a++){let s=o[a].L-o[a-1].L;if(Math.abs(s)<ect)continue;let l=Math.sign(s);i!==0&&l!==i&&n++,i=l}return n<=1}function oct(r,t,e={}){let o=typeof e.dimOpacity=="number"&&e.dimOpacity>=0&&e.dimOpacity<=1?e.dimOpacity:fP;if(!r||typeof r.querySelectorAll!="function")return Lf("none",o);try{let n=t??r.ownerDocument,i=Array.from(r.querySelectorAll(`.${Ra}`)),a=Array.from(r.querySelectorAll(`.${oo}, [${Lr}]`)).filter(N=>!N.classList?.contains(Ra));if(i.length+a.length>jut)return Lf("too-many",o);let s=N=>N.map(_=>Yut(_,n,r)).filter(_=>_!==null),l=Rj(s(i)),u=Rj(s(a)),c=l.length>=2,h=c?l:u,m=c?"legend":u.length?"marks":"";if(h.length<2)return Lf("none",o,h.length,m);if(h.length>Uj)return Lf("too-many",o,h.length,m);let p=h.map(N=>Kl(ld(N.rgb))).filter(N=>N!==null);if(p.length!==h.length)return Lf("none",o,h.length,m);let g=tct(p);if(g&&h.length>=Bj&&rct(p))return{...Lf("ramp",o,h.length,m),rampLike:g};let d=IM(e.pageBg),f=d?LM(d.rgb,d.alpha,[255,255,255]):[255,255,255],b=N=>h.map(_=>Kl(ld(LM(_.rgb,N(_),f)))),S=PP(p),v=b(N=>N.alpha),A=PP(v),M=PP(b(N=>N.alpha*o)),C=Zut(v,OS),B=h.map(N=>LM(N.rgb,N.alpha,f)),F=PP(B.map(N=>_j(N,qut))),L=PP(B.map(N=>_j(N,$ut))),I=null;if(c&&u.length>0){let N=new Set(u.map(_=>_.rgb.join(",")));I=l.every(_=>N.has(_.rgb.join(",")))}return{source:m,declined:"",slots:h.length,closestPair:[ld(h[S.i].rgb),ld(h[S.j].rgb)],closestDeltaE:VS(S.d),closestDeltaEPainted:VS(A.d),closestDeltaEDimmed:VS(M.d),dimOpacity:o,rampLike:g,legendMatchesMarks:I,floor:OS,belowFloor:A.d<OS,pairsBelowFloorCount:C.length,pairsBelowFloor:C.slice(0,Oj).map(N=>({colours:[ld(h[N.i].rgb),ld(h[N.j].rgb)],deltaE:VS(N.d)})),closestPairPainted:[ld(h[A.i].rgb),ld(h[A.j].rgb)],closestDeltaEDeutan:VS(F.d),closestDeltaEProtan:VS(L.d)}}catch{return Lf("none",o)}}var Uj,Bj,jut,Oj,ld,qut,$ut,Jut,Qut,ect,VS,Fj=VP(()=>{WM();tm();/*! @bicharts/chart-host — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; Natural Earth and US Census/TIGER (public domain). Full text: NOTICE in this package. */Uj=24,Bj=6,jut=5e3,Oj=10;ld=r=>"#"+r.map(t=>Math.max(0,Math.min(255,t)).toString(16).padStart(2,"0")).join("");qut=[[.367322,.860646,-.227968],[.280085,.672501,.047413],[-.01182,.04294,.968881]],$ut=[[.152286,1.052583,-.204868],[.114503,.786281,.099216],[-.003882,-.048116,1.051998]],Jut=r=>{let t=r/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Qut=r=>{let t=Math.max(0,Math.min(1,r));return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)};ect=1.5;VS=r=>Math.round(r*10)/10});import{isMainThread as Kht,parentPort as eY,workerData as rY}from"node:worker_threads";var sl=Symbol("abort"),Io=Symbol("activeElement"),_e=Symbol("asyncTaskManager"),ll=Symbol("bodyBuffer"),Fe=Symbol("buffer"),gs=Symbol("cachedResponse"),ru=Symbol("callbacks"),hm=Symbol("checked"),Df=Symbol("childNodes"),oi=Symbol("children"),Ff=Symbol("classList"),_i=Symbol("connectedToNode"),ou=Symbol("disconnectedFromNode"),Co=Symbol("connectedToDocument"),zo=Symbol("disconnectedFromDocument"),gd=Symbol("contentLength"),Po=Symbol("contentType"),Pi=Symbol("cssText"),Da=Symbol("currentScript"),Fa=Symbol("currentTarget"),sr=Symbol("data"),ni=Symbol("defaultView"),Ge=Symbol("destroy"),mm=Symbol("dirtyness"),Xt=Symbol("end"),un=Symbol("entries");var Ga=Symbol("evaluateScript"),Cn=Symbol("exceptionObserver"),Sr=Symbol("formNode"),pm=Symbol("internalId"),Pt=Symbol("height"),Lc=Symbol("immediatePropagationStopped"),dm=Symbol("indeterminate"),nu=Symbol("isFirstWrite"),iu=Symbol("isFirstWriteAfterOpen"),Gf=Symbol("isInPassiveEventListener"),ul=Symbol("isValue"),Ic=Symbol("listenerOptions"),Xr=Symbol("listeners"),bs=Symbol("itemsByName"),Rc=Symbol("nextActiveElement"),bd=Symbol("observeMutations"),cl=Symbol("mutationListeners"),lt=Symbol("ownerDocument"),er=Symbol("ownerElement"),_c=Symbol("propagationStopped"),ya=Symbol("readyStateManager"),Fn=Symbol("referrer"),Va=Symbol("registry"),Ui=Symbol("relList"),Vf=Symbol("resetSelection"),jo=Symbol("rootNode"),cn=Symbol("selectNode"),Gn=Symbol("selectedness"),ym=Symbol("selection"),ZS=Symbol("setupVMContext"),ao=Symbol("shadowRoot"),Lt=Symbol("start"),so=Symbol("style"),Vn=Symbol("target"),ii=Symbol("textAreaNode"),Hf=Symbol("unobserveMutations"),au=Symbol("reportMutation"),fm=Symbol("updateSelectedness"),po=Symbol("url"),oe=Symbol("value"),vt=Symbol("width"),y=Symbol("window"),HP=Symbol("windowResizeListener"),gm=Symbol("mutationObservers"),vi=Symbol("openerFrame"),Ss=Symbol("openerWindow"),t0=Symbol("pointerCaptures"),Uc=Symbol("popup"),Ae=Symbol("isConnected"),Bt=Symbol("parentNode"),xt=Symbol("nodeType"),ce=Symbol("tagName"),lr=Symbol("prefix"),_8=Symbol("scrollHeight"),U8=Symbol("scrollWidth"),zP=Symbol("scrollTop"),jP=Symbol("scrollLeft"),Ye=Symbol("attributes"),zf=Symbol("attributesProxy"),XP=Symbol("animations"),de=Symbol("namespaceURI"),jf=Symbol("accessKey");var B8=Symbol("offsetHeight"),O8=Symbol("offsetWidth"),D8=Symbol("offsetLeft"),F8=Symbol("offsetTop"),G8=Symbol("clientHeight"),V8=Symbol("clientWidth"),H8=Symbol("clientLeft"),z8=Symbol("clientTop"),ge=Symbol("name"),e0=Symbol("specified"),Bc=Symbol("adoptedStyleSheets"),KP=Symbol("implementation"),bm=Symbol("readyState"),Oc=Symbol("publicId"),Dc=Symbol("systemId"),ko=Symbol("validationMessage"),Jo=Symbol("validity"),YP=Symbol("returnValue"),su=Symbol("elements");var lu=Symbol("complete"),As=Symbol("naturalHeight"),ws=Symbol("naturalWidth"),VT=Symbol("loading"),St=Symbol("x"),At=Symbol("y");var Ps=Symbol("files"),Do=Symbol("sheet"),qP=Symbol("volume"),Sd=Symbol("paused"),$P=Symbol("currentTime"),JP=Symbol("playbackRate"),QP=Symbol("defaultPlaybackRate"),Xf=Symbol("muted"),Ad=Symbol("defaultMuted"),ZP=Symbol("preservesPitch"),j8=Symbol("buffered"),X8=Symbol("duration"),Qo=Symbol("error"),K8=Symbol("ended"),Y8=Symbol("networkState"),t4=Symbol("textTracks"),q8=Symbol("seeking"),$8=Symbol("seekable"),J8=Symbol("played"),Ni=Symbol("options"),Bi=Symbol("content"),So=Symbol("mode"),Sm=Symbol("host"),ai=Symbol("setURL"),ve=Symbol("localName"),Kf=Symbol("classRegistry"),r0=Symbol("nodeStream"),xi=Symbol("location"),Ro=Symbol("history"),e4=Symbol("navigator"),r4=Symbol("screen"),o4=Symbol("sessionStorage"),n4=Symbol("localStorage"),o0=Symbol("sandbox"),Ie=Symbol("cloneNode"),Ke=Symbol("appendChild"),kn=Symbol("removeChild"),si=Symbol("insertBefore"),Yf=Symbol("replaceChild"),hl=Symbol("tracks"),qf=Symbol("constraints"),ml=Symbol("capabilities"),Am=Symbol("settings");var Fc=Symbol("removeNamedItem"),$t=Symbol("items"),wm=Symbol("selectedOptions"),Mn=Symbol("styleNode"),Pm=Symbol("updateSheet"),Oi=Symbol("clearCache"),Ao=Symbol("onSetAttribute"),Zo=Symbol("onRemoveAttribute"),Vt=Symbol("nodeArray"),Be=Symbol("elementArray"),kt=Symbol("cache"),tn=Symbol("affectsCache"),$f=Symbol("forms"),Jf=Symbol("links"),Qf=Symbol("affectsComputedStyleCache"),wd=Symbol("query"),Pd=Symbol("computedStyle"),Di=Symbol("getFormControlItems"),n0=Symbol("getFormControlNamedItem"),i4=Symbol("dataset");var vd=Symbol("itemsByNamespaceURI"),tr=Symbol("proxy"),vs=Symbol("setNamedItem"),Hn=Symbol("getTokenList"),Gc=Symbol("attributeName"),Ha=Symbol("selectedIndex"),vm=Symbol("self"),Fi=Symbol("parent"),Ns=Symbol("top"),i0=Symbol("areas"),Gi=Symbol("defaultValue"),pl=Symbol("elementIdMap"),Nm=Symbol("clonable"),Nd=Symbol("delegatesFocus"),uu=Symbol("serializable"),dl=Symbol("slotAssignment"),cu=Symbol("assignedNodes"),xs=Symbol("assignedToSlot"),a0=Symbol("cells"),s0=Symbol("rows"),a4=Symbol("headers"),l0=Symbol("tBodies"),Zf=Symbol("track"),u0=Symbol("controlsList"),s4=Symbol("mediaKeys"),Q8=Symbol("remote"),l4=Symbol("sinkId"),u4=Symbol("srcObject"),xd=Symbol("cues"),Z8=Symbol("activeCues"),fa=Symbol("kind"),Vc=Symbol("label"),Ed=Symbol("language"),c0=Symbol("id"),k=Symbol("illegalConstructor"),tx=Symbol("state"),hu=Symbol("canvas"),xm=Symbol("popoverTargetElement"),h0=Symbol("composed"),Hc=Symbol("bubbles"),mu=Symbol("cancelable"),Sn=Symbol("defaultPrevented"),zn=Symbol("eventPhase"),ex=Symbol("timeStamp"),Ar=Symbol("type"),m0=Symbol("detail");var p0=Symbol("destroyed"),lo=Symbol("aborted"),d0=Symbol("browserFrames"),c4=Symbol("windowInternalId"),Kt=Symbol("getItemList"),pu=Symbol("requiredExtensions"),du=Symbol("systemLanguage"),y0=Symbol("transform"),Br=Symbol("baseVal"),Or=Symbol("animVal"),f0=Symbol("pathLength");var yu=Symbol("viewBox"),g0=Symbol("markerUnits"),b0=Symbol("markerWidth"),S0=Symbol("markerHeight"),hn=Symbol("values"),A0=Symbol("orientType"),w0=Symbol("orientAngle"),P0=Symbol("refX"),v0=Symbol("refY"),Qt=Symbol("readOnly"),An=Symbol("preserveAspectRatio"),fu=Symbol("animatedPoints"),gu=Symbol("points"),bu=Symbol("rx"),Su=Symbol("ry"),Vi=Symbol("cx"),Hi=Symbol("cy"),Au=Symbol("r"),N0=Symbol("clipPathUnits"),x0=Symbol("maskUnits"),E0=Symbol("maskContentUnits"),C0=Symbol("filterUnits"),k0=Symbol("primitiveUnits"),rr=Symbol("href"),wu=Symbol("x1"),Pu=Symbol("y1"),vu=Symbol("x2"),Nu=Symbol("y2"),M0=Symbol("gradientUnits"),T0=Symbol("gradientTransform"),W0=Symbol("spreadMethod"),L0=Symbol("patternUnits"),I0=Symbol("patternContentUnits"),R0=Symbol("patternTransform"),_0=Symbol("fx"),U0=Symbol("fy"),xu=Symbol("offset"),Em=Symbol("disabled"),B0=Symbol("textLength"),O0=Symbol("lengthAdjust"),ht=Symbol("getAttribute"),rt=Symbol("setAttribute"),li=Symbol("z"),Cd=Symbol("w"),D0=Symbol("toArray"),kd=Symbol("fromString"),ga=Symbol("fromArray");var or=Symbol("m11"),ur=Symbol("m12"),Er=Symbol("m13"),Cr=Symbol("m14"),nr=Symbol("m21"),cr=Symbol("m22"),kr=Symbol("m23"),Mr=Symbol("m24"),fr=Symbol("m31"),wr=Symbol("m32"),Pr=Symbol("m33"),gr=Symbol("m34"),ir=Symbol("m41"),hr=Symbol("m42"),vr=Symbol("m43"),Nr=Symbol("m44"),tg=Symbol("setMatrixValue"),ba=Symbol("translateSelf"),zc=Symbol("rotateSelf"),jc=Symbol("rotateAxisAngleSelf"),Eu=Symbol("scaleSelf"),F0=Symbol("scale3dSelf"),G0=Symbol("scaleNonUniformSelf"),Md=Symbol("skewXSelf"),Td=Symbol("skewYSelf"),zi=Symbol("multiplySelf"),Xc=Symbol("matrix");var Mo=Symbol("getDOMMatrix"),Tn=Symbol("setDOMMatrix"),wt=Symbol("attributeValue"),V0=Symbol("startOffset"),Kc=Symbol("method"),H0=Symbol("spacing"),Ce=Symbol("in1"),ji=Symbol("in2"),ye=Symbol("result"),z0=Symbol("bias"),j0=Symbol("divisor"),Cu=Symbol("edgeMode"),X0=Symbol("kernelMatrix"),Xi=Symbol("kernelUnitLengthX"),Ki=Symbol("kernelUnitLengthY"),K0=Symbol("orderX"),Y0=Symbol("orderY"),q0=Symbol("preserveAlpha"),$0=Symbol("targetX"),J0=Symbol("targetY"),Q0=Symbol("diffuseConstant"),ku=Symbol("surfaceScale"),Z0=Symbol("scale"),t2=Symbol("xChannelSelector"),e2=Symbol("yChannelSelector"),r2=Symbol("azimuth"),o2=Symbol("elevation"),Yi=Symbol("dx"),qi=Symbol("dy"),Mu=Symbol("stdDeviationX"),Tu=Symbol("stdDeviationY"),n2=Symbol("tableValues"),i2=Symbol("slope"),a2=Symbol("intercept"),s2=Symbol("amplitude"),l2=Symbol("exponent"),HT=Symbol("crossOrigin"),u2=Symbol("operator"),c2=Symbol("radiusX"),h2=Symbol("radiusY"),m2=Symbol("specularConstant"),Wu=Symbol("specularExponent"),p2=Symbol("pointsAtX"),d2=Symbol("pointsAtY"),y2=Symbol("pointsAtZ"),f2=Symbol("limitingConeAngle"),g2=Symbol("baseFrequencyX"),b2=Symbol("baseFrequencyY"),S2=Symbol("numOctaves"),A2=Symbol("seed"),w2=Symbol("stitchTiles"),P2=Symbol("rotateFromVectorSelf"),v2=Symbol("flipXSelf"),N2=Symbol("flipYSelf"),x2=Symbol("invertSelf"),rx=Symbol("getLength"),h4=Symbol("currentScale"),E2=Symbol("rotate"),ox=Symbol("bindMethods"),Cm=Symbol("xmlProcessingInstruction");var za=Symbol("filterNode"),Yc=Symbol("customElementReactionStack"),km=Symbol("customElementDefineCallback"),m4=Symbol("onCustomElementConnected"),p4=Symbol("addIdentifierToWindow"),eg=Symbol("removeIdentifierFromWindow"),rg=Symbol("onSlotChange"),Mm=Symbol("dispatching"),Lu=Symbol("modules"),ui=Symbol("preloads"),yl=Symbol("body"),d4=Symbol("redirect"),og=Symbol("referrerPolicy"),y4=Symbol("signal"),fl=Symbol("bodyUsed"),f4=Symbol("credentials"),C2=Symbol("blocking"),Wd=Symbol("moduleImportMap"),Dr=Symbol("dispatchError"),g4=Symbol("supports"),Sa=Symbol("reason"),w=Symbol("propertyEventListeners"),Xo=Symbol("cssRules"),qc=Symbol("parentRule"),Aa=Symbol("parentStyleSheet"),$i=Symbol("conditionText"),Iu=Symbol("keyText"),nx=Symbol("media"),k2=Symbol("styleMap"),Ld=Symbol("selectorText"),Id=Symbol("cssParser"),$c=Symbol("cssRule"),ci=Symbol("rulePrefix"),Ei=Symbol("virtualServerFile"),ix=Symbol("frames"),Jc=Symbol("disableEvaluation"),ax=Symbol("validateJavaScriptExecutionEnvironment");var Tm=Symbol("openWebSockets"),jn=Symbol("webSocket"),Rd=Symbol("moduleCache"),b4=Symbol("cookieStore"),M2=Symbol("context"),ng=Symbol("querySelectorCache"),wa=Symbol("customElementUpgradeTarget"),sx=Symbol("timeline"),ja=Symbol("element"),Wm=Symbol("computed"),Qc=Symbol("getPropertyManager"),Xn=Symbol("clearComputedStyleCache");var lx;(function(r){r[r.elementNode=1]="elementNode",r[r.attributeNode=2]="attributeNode",r[r.textNode=3]="textNode",r[r.cdataSectionNode=4]="cdataSectionNode",r[r.commentNode=8]="commentNode",r[r.documentNode=9]="documentNode",r[r.documentTypeNode=10]="documentTypeNode",r[r.documentFragmentNode=11]="documentFragmentNode",r[r.processingInstructionNode=7]="processingInstructionNode"})(lx||(lx={}));var mt=lx;var ux;(function(r){r[r.none=0]="none",r[r.capturing=1]="capturing",r[r.atTarget=2]="atTarget",r[r.bubbling=3]="bubbling"})(ux||(ux={}));var Fr=ux;var yt=class r{static NONE=Fr.none;static CAPTURING_PHASE=Fr.capturing;static AT_TARGET=Fr.atTarget;static BUBBLING_PHASE=Fr.bubbling;NONE=r.NONE;CAPTURING_PHASE=r.CAPTURING_PHASE;AT_TARGET=r.AT_TARGET;BUBBLING_PHASE=r.BUBBLING_PHASE;[h0]=!1;[Hc]=!1;[mu]=!1;[Sn]=!1;[zn]=Fr.none;[ex]=performance.now();[Ar];[Mm]=!1;[Lc]=!1;[_c]=!1;[Vn]=null;[Fa]=null;[Gf]=!1;constructor(t,e=null){this[Ar]=t,this[Hc]=e?.bubbles??!1,this[mu]=e?.cancelable??!1,this[h0]=e?.composed??!1}get composed(){return this[h0]}get bubbles(){return this[Hc]}get cancelable(){return this[mu]}get defaultPrevented(){return this[Sn]}get eventPhase(){return this[zn]}get timeStamp(){return this[ex]}get type(){return this[Ar]}get target(){return this[Vn]}get currentTarget(){return this[Fa]}get cancelBubble(){return this[_c]}composedPath(){if(!this[Vn])return[];let t=[],e=this[Vn];for(;e;)if(t.push(e),e.parentNode)e=e.parentNode;else if(this[h0]&&e[xt]===mt.documentFragmentNode&&e.host)e=e.host;else if(e[xt]===mt.documentNode&&this[Ar]!=="load")e=e[y];else break;return t}initEvent(t,e=!1,o=!1){this[Ar]=t,this[Hc]=e,this[mu]=o,this[_c]=!1,this[Lc]=!1,this[Sn]=!1}preventDefault(){!this[Gf]&&this.cancelable&&(this[Sn]=!0)}stopImmediatePropagation(){this[Lc]=!0}stopPropagation(){this[_c]=!0}};var Zt=class{static[d0]=new Map;static[c4]=0;#t;constructor(t){this.#t=t}getSettings(){return this.getBrowserFrame()?.page.context.browser.settings||null}getBrowser(){return this.getBrowserFrame()?.page.context.browser||null}getBrowserPage(){return this.getBrowserFrame()?.page||null}getBrowserContext(){return this.getBrowserFrame()?.page.context||null}getBrowserFrame(){return this.#t&&this.constructor[d0].get(this.#t[pm])||null}getAsyncTaskManager(){return this.getBrowserFrame()?.[_e]||null}static setWindowBrowserFrameRelation(t,e){let o=this[d0];t[pm]===-1&&(t[pm]=this[c4],this[c4]++),o.set(t[pm],e)}static removeWindowBrowserFrameRelation(t){this[d0].delete(t[pm])}};var cx;(function(r){r.tryAndCatch="tryAndCatch",r.processLevel="processLevel",r.disabled="disabled"})(cx||(cx={}));var _r=cx;var Ve=class{constructor(){if(this.constructor[wa])return this.constructor[wa];this[Xr]={bubbling:new Map,capturing:new Map},this[Ic]={bubbling:new Map,capturing:new Map}}get[Symbol.toStringTag](){return"EventTarget"}addEventListener(t,e,o){o=typeof o=="boolean"?{capture:o}:o||{};let n=o.capture?"capturing":"bubbling",i=this[Xr][n].get(t),a;i?a=this[Ic][n].get(t):(i=[],a=[],this[Xr][n].set(t,i),this[Ic][n].set(t,a)),!i.includes(e)&&(i.push(e),a.push(o),o.signal&&!o.signal.aborted&&o.signal.addEventListener("abort",()=>{this.removeEventListener(t,e)}))}removeEventListener(t,e){let o=this[Xr].bubbling.get(t);if(o){let i=o.indexOf(e);if(i!==-1){o.splice(i,1),this[Ic].bubbling.get(t).splice(i,1);return}}let n=this[Xr].capturing.get(t);if(n){let i=n.indexOf(e);i!==-1&&(n.splice(i,1),this[Ic].capturing.get(t).splice(i,1))}}dispatchEvent(t){if(!(t instanceof yt))throw new this[y].TypeError("Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.");return!t[Mm]&&(t[Ar]!=="load"||!t[Vn])?(t[Mm]=!0,t[Vn]=this[tr]||this,this.#t(t),t[Mm]=!1,!(t[mu]&&t[Sn])):(this.#e(t),!(t[mu]&&t[Sn]))}attachEvent(t,e){this.addEventListener(t.replace("on",""),e)}detachEvent(t,e){this.removeEventListener(t.replace("on",""),e)}[Ge](){this[Xr].capturing.clear(),this[Xr].bubbling.clear(),this[Ic].capturing.clear(),this[Ic].bubbling.clear()}#t(t){let e=t.composedPath();t[zn]=Fr.capturing;for(let o=e.length-1;o>=0;o--)if(t[Fa]=e[o],e[o].dispatchEvent(t),t[_c]||t[Lc]){t[zn]=Fr.none,t[Fa]=null;return}if(t[zn]=Fr.atTarget,t[Fa]=this[tr]||this,t[Vn].dispatchEvent(t),t[zn]=Fr.bubbling,t[Hc]&&!t[_c]&&!t[Lc]){for(let o=1,n=e.length;o<n;o++)if(t[Fa]=e[o],e[o].dispatchEvent(t),t[_c]||t[Lc]){t[zn]=Fr.none,t[Fa]=null;return}}t[zn]=Fr.none,t[Fa]=null}#e(t){let e=this[y],o=e?new Zt(e).getSettings():null,n=t.eventPhase===Fr.capturing?"capturing":"bubbling",i=this[Xr][n].get(t.type)?.slice();if(i&&i.length){let a=this[Ic][n].get(t.type).slice();for(let s=0,l=i.length;s<l;s++){let u=i[s],c=a[s];if(c?.passive&&(t[Gf]=!0),e&&(this!==e||t.type!=="error")&&!o?.disableErrorCapturing&&o?.errorCapture===_r.tryAndCatch)if(u.handleEvent){let h;try{h=u.handleEvent.call(u,t)}catch(m){e[Dr](m)}h instanceof Promise&&h.catch(m=>e[Dr](m))}else{let h;try{h=u.call(this,t)}catch(m){e[Dr](m)}h instanceof Promise&&h.catch(m=>e[Dr](m))}else u.handleEvent?u.handleEvent.call(u,t):u.call(this,t);if(t[Gf]=!1,c?.once&&(i.splice(s,1),a.splice(s,1),this.removeEventListener(t.type,u),s--,l--),t[Lc])return}}if(t.eventPhase!==Fr.capturing){let a="on"+t.type.toLowerCase(),s=this[w],l=!s&&Object.hasOwn(this,a)&&this.constructor.name!=="EventTarget";if(s||l){let u=s?.get(a)??this[a];if(typeof u=="function")if(e&&(this!==e||t.type!=="error")&&!o?.disableErrorCapturing&&o?.errorCapture===_r.tryAndCatch){let c;try{c=u(t)}catch(h){e[Dr](h)}c instanceof Promise&&c.catch(h=>e[Dr](h))}else u(t)}}}};var hx;(function(r){r.invalidStateError="InvalidStateError",r.indexSizeError="IndexSizeError",r.syntaxError="SyntaxError",r.hierarchyRequestError="HierarchyRequestError",r.notSupportedError="NotSupportedError",r.wrongDocumentError="WrongDocumentError",r.invalidNodeTypeError="InvalidNodeTypeError",r.invalidCharacterError="InvalidCharacterError",r.notFoundError="NotFoundError",r.securityError="SecurityError",r.networkError="NetworkError",r.domException="DOMException",r.invalidAccessError="InvalidAccessError",r.unknownError="UnknownError",r.abortError="AbortError",r.timeoutError="TimeoutError",r.encodingError="EncodingError",r.uriMismatchError="URIMismatchError",r.inUseAttributeError="InUseAttributeError",r.namespaceError="NamespaceError"})(hx||(hx={}));var Z=hx;var ig=class extends Ve{id="";effect;timeline;startTime=null;playbackRate=1;replaceState="active";ready;finished;#t="idle";#e=null;#r=null;#o=null;#n=null;[w]=new Map;constructor(t=null,e){super(),this.effect=t,this.timeline=e===void 0?this[y].document.timeline:e,this.ready=Promise.resolve(this),this.finished=this.#a()}get oncancel(){return this[w].get("oncancel")??null}set oncancel(t){this[w].set("oncancel",t)}get onfinish(){return this[w].get("onfinish")??null}set onfinish(t){this[w].set("onfinish",t)}get onremove(){return this[w].get("onremove")??null}set onremove(t){this[w].set("onremove",t)}get currentTime(){let t=this.timeline?.currentTime;return this.#t==="running"&&this.startTime!==null&&t!=null?(t-this.startTime)*this.playbackRate:this.#e}set currentTime(t){this.#e=t;let e=this.timeline?.currentTime;t!==null&&e!=null&&this.playbackRate!==0&&(this.startTime=e-t/this.playbackRate),this.#t==="running"&&this.#u()}get playState(){return this.#t}get pending(){return!1}play(){(this.#t==="finished"||this.#t==="idle")&&(this.finished=this.#a());let t=this.#e??(this.playbackRate<0?this.#i():0);this.#e=t;let e=this.timeline?.currentTime;e!=null&&this.playbackRate!==0&&(this.startTime=e-t/this.playbackRate),this.#t="running",this.#u()}pause(){this.#t==="running"&&(this.#e=this.currentTime,this.startTime=null,this.#t="paused",this.#s())}reverse(){this.playbackRate=this.playbackRate===0?-1:-this.playbackRate,this.play()}finish(){if(this.playbackRate===0)throw new this[y].DOMException("The animation playback rate is zero.",Z.invalidStateError);this.#s(),this.#e=this.playbackRate<0?0:this.#i(),this.startTime=null,this.#t="finished",this.#o?.(this),this.dispatchEvent(new this[y].Event("finish"))}cancel(){this.#t!=="idle"&&(this.#s(),this.#t="idle",this.#e=null,this.startTime=null,this.#n?.(new this[y].DOMException("The animation was canceled.",Z.abortError)),this.dispatchEvent(new this[y].Event("cancel")))}persist(){this.replaceState="persisted"}updatePlaybackRate(t){let e=this.currentTime;this.playbackRate=t,this.currentTime=e}#i(){return this.effect?.getComputedTiming().endTime??0}#a(){return new Promise((t,e)=>{this.#o=t,this.#n=e})}#u(){if(this.#s(),!this.effect||this.playbackRate===0)return;let t=this.currentTime??0,e=this.playbackRate<0?t/-this.playbackRate:(this.#i()-t)/this.playbackRate;Number.isFinite(e)&&(this.#r=this[y].setTimeout(()=>this.finish(),Math.max(0,e)))}#s(){this.#r!==null&&(this[y].clearTimeout(this.#r),this.#r=null)}};var Lm=class{get currentTime(){return null}};var Im=class extends Lm{#t;constructor(t={}){super(),this.#t=t.originTime??0}get currentTime(){return performance.now()-this.#t}};var ag=class{target;pseudoElement=null;composite;iterationComposite;#t;#e;constructor(t,e,o={}){this.target=t,this.#t=this.#o(e),this.#e=this.#r(o),this.composite=typeof o=="number"?"replace":o.composite??"replace",this.iterationComposite=typeof o=="number"?"replace":o.iterationComposite??"replace"}getTiming(){return{...this.#e}}getComputedTiming(){let e=(this.#e.duration==="auto"?0:this.#e.duration)*this.#e.iterations;return{...this.#e,activeDuration:e,currentIteration:null,endTime:Math.max(0,this.#e.delay+e+this.#e.endDelay),localTime:null,progress:null}}updateTiming(t={}){this.#e=this.#r({...this.#e,...t})}getKeyframes(){return this.#t.map(t=>({...t}))}setKeyframes(t){this.#t=this.#o(t)}#r(t){let e=typeof t=="number"?{duration:t}:t,o=e.duration??"auto",n=e.iterations??1;if(o!=="auto"&&(!Number.isFinite(o)||o<0)||n<0)throw new this[y].TypeError("Invalid animation timing options.");return{delay:e.delay??0,direction:e.direction??"normal",duration:o,easing:e.easing??"linear",endDelay:e.endDelay??0,fill:e.fill??"auto",iterationStart:e.iterationStart??0,iterations:n}}#o(t){if(!t)return[];if(Array.isArray(t)){let l=t.map(u=>this.#n(u));return this.#i(l),l}let e=Object.keys(t).filter(l=>!["composite","easing","offset"].includes(l)),o=Math.max(0,...["composite","easing","offset"].map(l=>Array.isArray(t[l])?t[l].length:0),...e.map(l=>Array.isArray(t[l])?t[l].length:1)),n=Array.isArray(t.offset)?t.offset:[t.offset??null],i=Array.isArray(t.easing)?t.easing:[t.easing??"linear"],a=Array.isArray(t.composite)?t.composite:[t.composite??"auto"],s=Array.from({length:o},(l,u)=>({offset:n[u]??null,easing:i[u]??"linear",composite:a[u]??"auto",computedOffset:0}));for(let l of e){let u=Array.isArray(t[l])?t[l]:[t[l]];for(let c=0;c<u.length;c++)u[c]!==void 0&&(s[c][l]=String(u[c]))}return this.#i(s),s}#n(t){let e={offset:t.offset??null,easing:t.easing??"linear",composite:t.composite??"auto",computedOffset:0};for(let o of Object.keys(t))!["composite","easing","offset"].includes(o)&&t[o]!==void 0&&(e[o]=String(t[o]));return e}#i(t){let e=-1/0;for(let i of t)if(i.offset!==null&&i.offset!==void 0){if(i.offset<e||i.offset<0||i.offset>1)throw new this[y].TypeError("Keyframe offsets must be in non-decreasing order between 0 and 1.");e=i.offset}if(!t.length)return;let o=t.map(i=>i.offset);o[0]===null&&(o[0]=t.length===1?1:0),o.at(-1)===null&&(o[o.length-1]=1);let n=0;for(;n<o.length-1;){let i=n+1;for(;o[i]===null;)i++;let a=o[n],s=o[i];for(let l=n+1;l<i;l++)o[l]=a+(s-a)*(l-n)/(i-n);n=i}for(let i=0;i<t.length;i++)t[i].computedOffset=o[i]}};var mx;(function(r){r.strict="Strict",r.lax="Lax",r.none="None"})(mx||(mx={}));var hi=mx;var S4={key:null,originURL:null,value:null,domain:"",path:"",expires:null,httpOnly:!1,secure:!1,sameSite:hi.lax};var sg=class{static hasExpired(t){return t.expires&&t.expires.getTime()<Date.now()}};var T2=class{static cookieMatchesURL(t,e){let o=e.hostname==="localhost"||e.hostname?.endsWith(".localhost");return(!t.secure||e.protocol==="https:"||o)&&(!t.domain||e.hostname?.endsWith(t.domain))&&(!t.path||e.pathname?.startsWith(t.path))&&(t.sameSite===hi.none&&t.secure||t.originURL?.hostname===e.hostname)}};var _d=class{#t=[];addCookies(t){let e={changed:[],deleted:[]},o=this.#t;for(let n of t){let i=Object.assign({},S4,n);if(i&&i.key&&i.originURL){let a=sg.hasExpired(i);for(let s=0,l=o.length;s<l;s++){let u=o[s];if(u.key===i.key&&u.originURL.hostname===i.originURL.hostname&&u.path===i.path&&typeof u.value==typeof i.value){a&&e.deleted.push(u),o.splice(s,1);break}}a||(o.push(i),e.changed.push(i))}}return e}getCookies(t=null,e=!1){let o=[];for(let n of this.#t)!sg.hasExpired(n)&&(!e||!n.httpOnly)&&(!t||T2.cookieMatchesURL(n,t))&&o.push(n);return o}clearCookies(){this.#t=[]}};var px;(function(r){r.fresh="fresh",r.stale="stale"})(px||(px={}));var Rm=px;var Tr=class extends Error{constructor(t,e=null){super(t),this.name=e||Z.domException}};var gl=class r{[un]={};constructor(t){if(t)if(t instanceof r)this[un]=JSON.parse(JSON.stringify(t[un]));else if(Array.isArray(t))for(let e of t){if(e.length!==2)throw new Tr('Failed to construct "Headers": The provided init is not a valid array.',Z.invalidStateError);this.append(e[0],e[1])}else for(let e of Object.keys(t))this.set(e,t[e])}append(t,e){let o=t.toLowerCase();this[un][o]?this[un][o].value.push(e):this[un][o]={name:t,value:[e]}}delete(t){delete this[un][t.toLowerCase()]}get(t){return this[un][t.toLowerCase()]?.value.join(", ")??null}set(t,e){this[un][t.toLowerCase()]={name:t,value:[e]}}getSetCookie(){let t=this[un]["set-cookie"];return t?t.value:[]}has(t){return!!this[un][t.toLowerCase()]}forEach(t,e){let o=e??this[y];for(let n of Object.values(this[un]))t.call(o,n.value.join(", "),n.name,this)}*keys(){for(let t of Object.values(this[un]))yield t.name}*values(){for(let t of Object.values(this[un]))yield t.value.join(", ")}*entries(){for(let t of Object.values(this[un]))yield[t.name,t.value.join(", ")]}*[Symbol.iterator](){for(let t of Object.values(this[un]))yield[t.name,t.value.join(", ")]}};import lg from"fs";import ug from"path";import EY from"crypto";var W2=class{#t=new Set;#e=new Set;#r;constructor(t){this.#r=t}async load(t){if(!t)throw new Error("Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.");let e=ug.resolve(t),o=[];try{o=await lg.promises.readdir(e)}catch{return}let n=[],i=this.#r;for(let a of o)a.endsWith(".json")&&n.push(lg.promises.readFile(ug.join(e,a),"utf8").then(s=>{let l=JSON.parse(s);if(l.response&&l.request&&!l.virtual)return l.response.headers=new gl(l.response.headers),l.request.headers=new gl(l.request.headers),lg.promises.readFile(ug.join(e,a.split(".")[0]+".data")).then(u=>{l.response.body=u;let c=i.get(l.response.url);c||(c=[],i.set(l.response.url,c)),c.push(l)}).catch(()=>{let u=i.get(l.response.url);u||(u=[],i.set(l.response.url,u)),u.push(l)})}).catch(()=>{}));await Promise.all(n)}async save(t){if(!t)throw new Error("Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.");if(!this.#r.size)return;let e=ug.resolve(t);if(!this.#t.has(e)){this.#t.add(e);try{await lg.promises.mkdir(e,{recursive:!0})}catch{}}let n=this.#r,i=[];for(let a of n.values())for(let s of a)if(!s.virtual){let l={},u={};for(let[p,g]of s.response.headers.entries())l[p]=g;for(let[p,g]of s.request.headers.entries())u[p]=g;let c={...s,response:{...s.response,headers:l,body:null},request:{...s.request,headers:u}},h=JSON.stringify(c,null,3),m=EY.createHash("md5").update(h).digest("hex");this.#e.has(m)||(this.#e.add(m),i.push(lg.promises.writeFile(ug.join(e,`${m}.json`),h)),s.response.body&&i.push(lg.promises.writeFile(ug.join(e,`${m}.data`),s.response.body)))}await Promise.all(i)}};var CY=["Cache-Control","Last-Modified","Vary","ETag"],Ud=class{fileSystem;#t=new Map;constructor(){this.fileSystem=new W2(this.#t)}get(t){if(t.headers.get("Cache-Control")?.includes("no-cache"))return null;let e=t.url,o=this.#t.get(e);if(o)for(let n=0,i=o.length;n<i;n++){let a=o[n],s=a.request.method===t.method;if(s)for(let l of Object.keys(a.vary)){let u=t.headers.get(l);if(u!==null&&a.vary[l]!==u){s=!1;break}}if(s){if(a.expires&&a.expires<Date.now()){if(a.lastModified)a.state=Rm.stale;else if(!a.etag)return o.splice(n,1),null}return a}}return null}add(t,e){if(t.method!=="GET"&&t.method!=="HEAD"||t.headers.get("Cache-Control")?.includes("no-cache"))return null;let o=t.url,n=this.get(t);if(e.status===304){if(!n)throw new Error("ResponseCache: Cached response not found.");for(let i of CY)e.headers.has(i)&&n.response.headers.set(i,e.headers.get(i));n.cacheUpdateTime=Date.now(),n.state=Rm.fresh}else{if(n){let a=this.#t.get(o);if(a){let s=a.indexOf(n);s!==-1&&a.splice(s,1)}}n={response:{status:e.status,statusText:e.statusText,url:e.url,headers:new gl(e.headers),waitingForBody:e.waitingForBody,body:e.body??null},request:{headers:t.headers,method:t.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:!1,staleWhileRevalidate:!1,state:Rm.fresh,virtual:e.virtual??!1};let i=this.#t.get(o);i||(i=[],this.#t.set(o,i)),i.push(n)}if(e.headers.has("Cache-Control")){let i=e.headers.get("Age");for(let a of e.headers.get("Cache-Control").split(",")){let[s,l]=a.trim().split("=");switch(s){case"max-age":n.expires=Date.now()+parseFloat(l)*1e3-(i?parseFloat(i)*1e3:0);break;case"no-cache":case"no-store":let u=this.#t.get(o);if(u){let c=u.indexOf(n);c!==-1&&u.splice(c,1)}return null;case"must-revalidate":n.mustRevalidate=!0;break;case"stale-while-revalidate":n.staleWhileRevalidate=!0;break}}}if(e.headers.has("Last-Modified")&&(n.lastModified=Date.parse(e.headers.get("Last-Modified"))),e.headers.has("Vary"))for(let i of e.headers.get("Vary").split(",")){let a=i.trim(),s=t.headers.get(a);s&&(n.vary[a]=s)}if(e.headers.has("ETag")&&(n.etag=e.headers.get("ETag")),!n.expires){let i=e.headers.get("Expires");i&&(n.expires=Date.parse(i))}if(!n.etag&&(!n.expires||n.expires<Date.now())){let i=this.#t.get(o);if(i){let a=i.indexOf(n);a!==-1&&i.splice(a,1)}return null}return n}clear(t){if(t)if(t.toTime)for(let e of t.url?[t.url]:this.#t.keys()){let o=this.#t.get(e);if(o)for(let n=0,i=o.length;n<i;n++)o[n].cacheUpdateTime<t.toTime&&(o.splice(n,1),n--,i--)}else t.url&&this.#t.delete(t.url);else this.#t.clear()}};var dx;(function(r){r[r.log=0]="log",r[r.info=1]="info",r[r.warn=2]="warn",r[r.error=3]="error"})(dx||(dx={}));var wn=dx;var yx;(function(r){r.log="log",r.table="table",r.trace="trace",r.dir="dir",r.dirxml="dirxml",r.group="group",r.groupCollapsed="groupCollapsed",r.debug="debug",r.timeLog="timeLog",r.info="info",r.count="count",r.timeEnd="timeEnd",r.warn="warn",r.countReset="countReset",r.error="error",r.assert="assert"})(yx||(yx={}));var _o=yx;var L2=class{static toString(t){if(this.isLogEntryCollapsed(t))return"";let e=this.getLogEntryGroupTabbing(t),o=e;for(let n of t.message)if(o+=o!==""&&o!==e?" ":"",typeof n=="object"&&(n===null||n.constructor.name==="Object"||Array.isArray(n)))try{o+=JSON.stringify(n)}catch{o+=new Error("Failed to JSON stringify object in log entry.").stack.replace(/\n at/gm,`
12
12
  `+e+"at")}else typeof n=="object"&&n.message&&n.stack?o+=n.stack.replace(/\n at/gm,`
13
13
  `+e+"at"):o+=this.getLogEntryIcon(t)+String(n);return o+`
14
14
  `}static getLogEntryIcon(t){switch(t.type){case _o.group:return"\u25BC ";case _o.groupCollapsed:return"\u25B6 "}return""}static getLogEntryGroupTabbing(t){let e="",o=t.type===_o.group||t.type===_o.groupCollapsed?t.group?.parent:t.group;for(;o;)e+=" ",o=o.parent;return e}static isLogEntryCollapsed(t){let e=t.type===_o.group||t.type===_o.groupCollapsed?t.group?.parent:t.group;for(;e;){if(e.collapsed)return!0;e=e.parent}return!1}};var _m=class{#t=[];#e={print:[],clear:[]};#r=!1;get closed(){return this.#r}print(t){this.#r||(this.#t.push(t),this.dispatchEvent(new yt("print")))}clear(){this.#r||(this.#t=[],this.dispatchEvent(new yt("clear")))}close(){this.#r||(this.#t=[],this.#e={print:[],clear:[]},this.#r=!0)}addEventListener(t,e){if(!this.#r){if(!this.#e[t])throw new Error(`Event type "${t}" is not supported.`);this.#e[t].push(e)}}removeEventListener(t,e){if(this.#r)return;if(!this.#e[t])throw new Error(`Event type "${t}" is not supported.`);let o=this.#e[t].indexOf(e);o!==-1&&this.#e[t].splice(o,1)}dispatchEvent(t){if(!this.#r)switch(t.type){case"print":case"clear":for(let e of this.#e[t.type])e(t);break;default:throw new Error(`Event type "${t.type}" is not supported.`)}}read(){let t=this.#t;return this.#t=[],t}readAsString(t=wn.log){let e=this.read(),o="";for(let n of e)n.level>=t&&(o+=L2.toString(n));return o}};var Bd=class extends Error{constructor(t){super(t),this.name="AsyncTaskManagerDebugError"}};var Pa={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},bl=class{static taskID=0;runningTasks={};runningTaskCount=0;runningTimers=[];runningImmediates=[];debugTrace=new Map;waitUntilCompleteTimer=null;waitUntilCompleteResolvers=[];destroyed=!1;#t=null;#e;constructor(t){this.#e=t}waitUntilComplete(){return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()})}abort(){return this.destroyed?new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()}):this.abortAll(!1)}destroy(){return this.destroyed?new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()}):this.abortAll(!0)}startTimer(t){if(this.destroyed){Pa.clearTimeout(t);return}this.waitUntilCompleteTimer&&(Pa.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningTimers.push(t),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(t,new Bd().stack)}endTimer(t){if(this.destroyed){Pa.clearTimeout(t);return}let e=this.runningTimers.indexOf(t);e!==-1&&(this.runningTimers.splice(e,1),this.resolveWhenComplete()),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(t)}startImmediate(t){if(this.destroyed){Pa.clearImmediate(t);return}this.waitUntilCompleteTimer&&(Pa.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningImmediates.push(t),this.#e.page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0&&this.debugTrace.set(t,new Bd().stack)}endImmediate(t){if(this.destroyed){Pa.clearImmediate(t);return}let e=this.runningImmediates.indexOf(t);e!==-1&&(this.runningImmediates.splice(e,1),this.resolveWhenComplete()),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(t)}startTask(t){if(this.destroyed)throw t&&t(this.destroyed),new this.#e.window.Error("Failed to execute 'startTask()' on 'AsyncTaskManager': The asynchronous task manager has been destroyed. This error can be thrown if scripts continue to run while a browser frame is closed.");this.waitUntilCompleteTimer&&(Pa.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null);let e=this.newTaskID();return this.runningTasks[e]=t||(()=>{}),this.runningTaskCount++,this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(e,new Bd().stack),e}endTask(t){this.destroyed||(this.runningTasks[t]&&(delete this.runningTasks[t],this.runningTaskCount--,this.resolveWhenComplete()),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(t))}getTaskCount(){return this.runningTaskCount}newTaskID(){return this.constructor.taskID++,this.constructor.taskID}resolveWhenComplete(){this.applyDebugging(),!(this.runningTaskCount||this.runningTimers.length||this.runningImmediates.length)&&(this.waitUntilCompleteTimer&&(Pa.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.waitUntilCompleteTimer=Pa.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){this.#t&&Pa.clearTimeout(this.#t);let t=this.waitUntilCompleteResolvers;this.waitUntilCompleteResolvers=[];for(let e of t)e.resolve();this.destroyed=!1}else this.applyDebugging()},1))}applyDebugging(){let t=this.#e.page.context.browser.settings.debug;!t?.traceWaitUntilComplete||t.traceWaitUntilComplete<1||this.#t||(this.#t=Pa.setTimeout(()=>{this.#t=null;let e=`The maximum time was reached for "waitUntilComplete()".