@sap/ux-specification 1.100.4 → 1.100.8

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see runDocu-min.js.LICENSE.txt */
2
- (()=>{var t={176:(t,n,e)=>{"use strict";function r(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function i(t){let n=t,e=t,i=t;function o(t,n,r=0,o=t.length){if(r<o){if(0!==e(n,n))return o;do{const e=r+o>>>1;i(t[e],n)<0?r=e+1:o=e}while(r<o)}return r}return 1===t.length&&(n=(n,e)=>t(n)-e,e=r,i=(n,e)=>r(t(n),e)),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,r=0,o=t.length){if(r<o){if(0!==e(n,n))return o;do{const e=r+o>>>1;i(t[e],n)<=0?r=e+1:o=e}while(r<o)}return r}}}function o(t){return null===t?NaN:+t}e.r(n),e.d(n,{Adder:()=>x,Delaunay:()=>Du,FormatSpecifier:()=>js,InternMap:()=>T,InternSet:()=>A,Node:()=>Jp,Voronoi:()=>Au,ZoomTransform:()=>KT,active:()=>Ki,arc:()=>$w,area:()=>tM,areaRadial:()=>sM,ascending:()=>r,autoType:()=>uc,axisBottom:()=>en,axisLeft:()=>rn,axisRight:()=>nn,axisTop:()=>tn,bin:()=>it,bisect:()=>f,bisectCenter:()=>s,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>i,blob:()=>Fc,brush:()=>Co,brushSelection:()=>Eo,brushX:()=>ko,brushY:()=>No,buffer:()=>Uc,chord:()=>Bo,chordDirected:()=>Yo,chordTranspose:()=>Uo,cluster:()=>$p,color:()=>Ke,contourDensity:()=>eu,contours:()=>Za,count:()=>l,create:()=>bw,creator:()=>he,cross:()=>g,csv:()=>Vc,csvFormat:()=>Vu,csvFormatBody:()=>Gu,csvFormatRow:()=>Qu,csvFormatRows:()=>Zu,csvFormatValue:()=>Ku,csvParse:()=>$u,csvParseRows:()=>Xu,cubehelix:()=>Ha,cumsum:()=>y,curveBasis:()=>BM,curveBasisClosed:()=>YM,curveBasisOpen:()=>$M,curveBumpX:()=>VM,curveBumpY:()=>GM,curveBundle:()=>QM,curveCardinal:()=>tT,curveCardinalClosed:()=>eT,curveCardinalOpen:()=>iT,curveCatmullRom:()=>uT,curveCatmullRomClosed:()=>sT,curveCatmullRomOpen:()=>lT,curveLinear:()=>Zw,curveLinearClosed:()=>dT,curveMonotoneX:()=>xT,curveMonotoneY:()=>wT,curveNatural:()=>AT,curveStep:()=>ET,curveStepAfter:()=>NT,curveStepBefore:()=>kT,descending:()=>v,deviation:()=>b,difference:()=>It,disjoint:()=>Ht,dispatch:()=>ln,drag:()=>zu,dragDisable:()=>Pe,dragEnable:()=>qe,dsv:()=>Xc,dsvFormat:()=>Yu,easeBack:()=>Lc,easeBackIn:()=>qc,easeBackInOut:()=>Lc,easeBackOut:()=>jc,easeBounce:()=>Cc,easeBounceIn:()=>Nc,easeBounceInOut:()=>Dc,easeBounceOut:()=>Cc,easeCircle:()=>Ec,easeCircleIn:()=>Ac,easeCircleInOut:()=>Ec,easeCircleOut:()=>Sc,easeCubic:()=>Vi,easeCubicIn:()=>$i,easeCubicInOut:()=>Vi,easeCubicOut:()=>Xi,easeElastic:()=>zc,easeElasticIn:()=>Rc,easeElasticInOut:()=>Ic,easeElasticOut:()=>zc,easeExp:()=>Tc,easeExpIn:()=>wc,easeExpInOut:()=>Tc,easeExpOut:()=>Mc,easeLinear:()=>sc,easePoly:()=>gc,easePolyIn:()=>dc,easePolyInOut:()=>gc,easePolyOut:()=>pc,easeQuad:()=>hc,easeQuadIn:()=>fc,easeQuadInOut:()=>hc,easeQuadOut:()=>lc,easeSin:()=>_c,easeSinIn:()=>mc,easeSinInOut:()=>_c,easeSinOut:()=>bc,every:()=>qt,extent:()=>_,fcumsum:()=>M,filter:()=>Lt,flatGroup:()=>j,flatRollup:()=>L,forceCenter:()=>rs,forceCollide:()=>ys,forceLink:()=>bs,forceManyBody:()=>As,forceRadial:()=>Ss,forceSimulation:()=>Ts,forceX:()=>Es,forceY:()=>ks,format:()=>Is,formatDefaultLocale:()=>Ys,formatLocale:()=>Us,formatPrefix:()=>Hs,formatSpecifier:()=>qs,fsum:()=>w,geoAlbers:()=>up,geoAlbersUsa:()=>cp,geoArea:()=>Gf,geoAzimuthalEqualArea:()=>hp,geoAzimuthalEqualAreaRaw:()=>lp,geoAzimuthalEquidistant:()=>pp,geoAzimuthalEquidistantRaw:()=>dp,geoBounds:()=>Cl,geoCentroid:()=>Bl,geoCircle:()=>Jl,geoClipAntimeridian:()=>fh,geoClipCircle:()=>lh,geoClipExtent:()=>bh,geoClipRectangle:()=>mh,geoConicConformal:()=>_p,geoConicConformalRaw:()=>bp,geoConicEqualArea:()=>ap,geoConicEqualAreaRaw:()=>op,geoConicEquidistant:()=>Tp,geoConicEquidistantRaw:()=>Mp,geoContains:()=>Oh,geoDistance:()=>Eh,geoEqualEarth:()=>Dp,geoEqualEarthRaw:()=>Cp,geoEquirectangular:()=>wp,geoEquirectangularRaw:()=>xp,geoGnomonic:()=>qp,geoGnomonicRaw:()=>Pp,geoGraticule:()=>Ih,geoGraticule10:()=>Hh,geoIdentity:()=>jp,geoInterpolate:()=>Fh,geoLength:()=>Th,geoMercator:()=>yp,geoMercatorRaw:()=>gp,geoNaturalEarth1:()=>Op,geoNaturalEarth1Raw:()=>Lp,geoOrthographic:()=>zp,geoOrthographicRaw:()=>Rp,geoPath:()=>Ud,geoProjection:()=>ep,geoProjectionMutator:()=>rp,geoRotation:()=>Zl,geoStereographic:()=>Hp,geoStereographicRaw:()=>Ip,geoStream:()=>Af,geoTransform:()=>Yd,geoTransverseMercator:()=>Bp,geoTransverseMercatorRaw:()=>Fp,gray:()=>ba,greatest:()=>Tt,greatestIndex:()=>At,group:()=>D,groupSort:()=>$,groups:()=>P,hcl:()=>ka,hierarchy:()=>Vp,histogram:()=>it,hsl:()=>sr,html:()=>ns,image:()=>Zc,index:()=>z,indexes:()=>I,interpolate:()=>qr,interpolateArray:()=>Ar,interpolateBasis:()=>dr,interpolateBasisClosed:()=>pr,interpolateBlues:()=>$x,interpolateBrBG:()=>ix,interpolateBuGn:()=>wx,interpolateBuPu:()=>Tx,interpolateCividis:()=>rw,interpolateCool:()=>aw,interpolateCubehelix:()=>oy,interpolateCubehelixDefault:()=>iw,interpolateCubehelixLong:()=>ay,interpolateDate:()=>Er,interpolateDiscrete:()=>$g,interpolateGnBu:()=>Sx,interpolateGreens:()=>Vx,interpolateGreys:()=>Zx,interpolateHcl:()=>ey,interpolateHclLong:()=>ry,interpolateHsl:()=>Kg,interpolateHslLong:()=>Jg,interpolateHue:()=>Xg,interpolateInferno:()=>vw,interpolateLab:()=>ty,interpolateMagma:()=>yw,interpolateNumber:()=>kr,interpolateNumberArray:()=>Mr,interpolateObject:()=>Nr,interpolateOrRd:()=>kx,interpolateOranges:()=>ew,interpolatePRGn:()=>ax,interpolatePiYG:()=>cx,interpolatePlasma:()=>mw,interpolatePuBu:()=>Px,interpolatePuBuGn:()=>Cx,interpolatePuOr:()=>fx,interpolatePuRd:()=>jx,interpolatePurples:()=>Kx,interpolateRainbow:()=>cw,interpolateRdBu:()=>hx,interpolateRdGy:()=>px,interpolateRdPu:()=>Ox,interpolateRdYlBu:()=>yx,interpolateRdYlGn:()=>mx,interpolateReds:()=>tw,interpolateRgb:()=>br,interpolateRgbBasis:()=>xr,interpolateRgbBasisClosed:()=>wr,interpolateRound:()=>Vg,interpolateSinebow:()=>hw,interpolateSpectral:()=>_x,interpolateString:()=>Pr,interpolateTransformCss:()=>di,interpolateTransformSvg:()=>pi,interpolateTurbo:()=>dw,interpolateViridis:()=>gw,interpolateWarm:()=>ow,interpolateYlGn:()=>Hx,interpolateYlGnBu:()=>zx,interpolateYlOrBr:()=>Bx,interpolateYlOrRd:()=>Yx,interpolateZoom:()=>Zg,interrupt:()=>ui,intersection:()=>Bt,interval:()=>GT,isoFormat:()=>XT,isoParse:()=>VT,json:()=>Kc,lab:()=>_a,lch:()=>Ea,least:()=>wt,leastIndex:()=>Mt,line:()=>Jw,lineRadial:()=>cM,linkHorizontal:()=>vM,linkRadial:()=>bM,linkVertical:()=>mM,local:()=>xw,map:()=>Ot,matcher:()=>vn,max:()=>ot,maxIndex:()=>dt,mean:()=>pt,median:()=>gt,merge:()=>yt,min:()=>at,minIndex:()=>vt,mode:()=>mt,namespace:()=>qn,namespaces:()=>Pn,nice:()=>et,now:()=>$r,pack:()=>bg,packEnclose:()=>tg,packSiblings:()=>dg,pairs:()=>bt,partition:()=>Ag,path:()=>Ko,permute:()=>B,pie:()=>rM,piecewise:()=>uy,pointRadial:()=>fM,pointer:()=>Lr,pointers:()=>Mw,polygonArea:()=>sy,polygonCentroid:()=>fy,polygonContains:()=>py,polygonHull:()=>dy,polygonLength:()=>gy,precisionFixed:()=>Ws,precisionPrefix:()=>$s,precisionRound:()=>Xs,quadtree:()=>cs,quantile:()=>st,quantileSorted:()=>ft,quantize:()=>cy,quickselect:()=>ut,radialArea:()=>sM,radialLine:()=>cM,randomBates:()=>wy,randomBernoulli:()=>Ay,randomBeta:()=>ky,randomBinomial:()=>Ny,randomCauchy:()=>Dy,randomExponential:()=>My,randomGamma:()=>Ey,randomGeometric:()=>Sy,randomInt:()=>my,randomIrwinHall:()=>xy,randomLcg:()=>Ly,randomLogNormal:()=>_y,randomLogistic:()=>Py,randomNormal:()=>by,randomPareto:()=>Ty,randomPoisson:()=>qy,randomUniform:()=>vy,randomWeibull:()=>Cy,range:()=>xt,reduce:()=>Rt,reverse:()=>zt,rgb:()=>er,ribbon:()=>sa,ribbonArrow:()=>fa,rollup:()=>O,rollups:()=>R,scaleBand:()=>Hy,scaleDiverging:()=>H_,scaleDivergingLog:()=>F_,scaleDivergingPow:()=>U_,scaleDivergingSqrt:()=>Y_,scaleDivergingSymlog:()=>B_,scaleIdentity:()=>nv,scaleImplicit:()=>zy,scaleLinear:()=>tv,scaleLog:()=>fv,scaleOrdinal:()=>Iy,scalePoint:()=>By,scalePow:()=>bv,scaleQuantile:()=>Tv,scaleQuantize:()=>Av,scaleRadial:()=>Mv,scaleSequential:()=>q_,scaleSequentialLog:()=>j_,scaleSequentialPow:()=>O_,scaleSequentialQuantile:()=>z_,scaleSequentialSqrt:()=>R_,scaleSequentialSymlog:()=>L_,scaleSqrt:()=>_v,scaleSymlog:()=>pv,scaleThreshold:()=>Sv,scaleTime:()=>N_,scaleUtc:()=>C_,scan:()=>St,schemeAccent:()=>X_,schemeBlues:()=>Wx,schemeBrBG:()=>rx,schemeBuGn:()=>xx,schemeBuPu:()=>Mx,schemeCategory10:()=>$_,schemeDark2:()=>V_,schemeGnBu:()=>Ax,schemeGreens:()=>Xx,schemeGreys:()=>Gx,schemeOrRd:()=>Ex,schemeOranges:()=>nw,schemePRGn:()=>ox,schemePaired:()=>G_,schemePastel1:()=>Z_,schemePastel2:()=>Q_,schemePiYG:()=>ux,schemePuBu:()=>Dx,schemePuBuGn:()=>Nx,schemePuOr:()=>sx,schemePuRd:()=>qx,schemePurples:()=>Qx,schemeRdBu:()=>lx,schemeRdGy:()=>dx,schemeRdPu:()=>Lx,schemeRdYlBu:()=>gx,schemeRdYlGn:()=>vx,schemeReds:()=>Jx,schemeSet1:()=>K_,schemeSet2:()=>J_,schemeSet3:()=>tx,schemeSpectral:()=>bx,schemeTableau10:()=>nx,schemeYlGn:()=>Ix,schemeYlGnBu:()=>Rx,schemeYlOrBr:()=>Fx,schemeYlOrRd:()=>Ux,select:()=>Ee,selectAll:()=>Tw,selection:()=>Se,selector:()=>dn,selectorAll:()=>yn,shuffle:()=>Et,shuffler:()=>kt,some:()=>jt,sort:()=>U,stack:()=>jT,stackOffsetDiverging:()=>OT,stackOffsetExpand:()=>LT,stackOffsetNone:()=>CT,stackOffsetSilhouette:()=>RT,stackOffsetWiggle:()=>zT,stackOrderAppearance:()=>IT,stackOrderAscending:()=>FT,stackOrderDescending:()=>UT,stackOrderInsideOut:()=>YT,stackOrderNone:()=>DT,stackOrderReverse:()=>WT,stratify:()=>Cg,style:()=>Yn,subset:()=>Yt,sum:()=>Nt,superset:()=>Ut,svg:()=>es,symbol:()=>zM,symbolCircle:()=>_M,symbolCross:()=>xM,symbolDiamond:()=>TM,symbolSquare:()=>NM,symbolStar:()=>kM,symbolTriangle:()=>DM,symbolWye:()=>OM,symbols:()=>RM,text:()=>Wc,thresholdFreedmanDiaconis:()=>lt,thresholdScott:()=>ht,thresholdSturges:()=>rt,tickFormat:()=>Ky,tickIncrement:()=>tt,tickStep:()=>nt,ticks:()=>J,timeDay:()=>Gv,timeDays:()=>Zv,timeFormat:()=>ib,timeFormatDefaultLocale:()=>A_,timeFormatLocale:()=>eb,timeFriday:()=>rm,timeFridays:()=>fm,timeHour:()=>$v,timeHours:()=>Xv,timeInterval:()=>Lv,timeMillisecond:()=>Rv,timeMilliseconds:()=>zv,timeMinute:()=>Uv,timeMinutes:()=>Yv,timeMonday:()=>Jv,timeMondays:()=>am,timeMonth:()=>dm,timeMonths:()=>pm,timeParse:()=>ob,timeSaturday:()=>im,timeSaturdays:()=>lm,timeSecond:()=>Hv,timeSeconds:()=>Fv,timeSunday:()=>Kv,timeSundays:()=>om,timeThursday:()=>em,timeThursdays:()=>sm,timeTickInterval:()=>Km,timeTicks:()=>Qm,timeTuesday:()=>tm,timeTuesdays:()=>um,timeWednesday:()=>nm,timeWednesdays:()=>cm,timeWeek:()=>Kv,timeWeeks:()=>om,timeYear:()=>ym,timeYears:()=>vm,timeout:()=>ti,timer:()=>Gr,timerFlush:()=>Zr,transition:()=>Ui,transpose:()=>Ct,tree:()=>Rg,treemap:()=>Bg,treemapBinary:()=>Ug,treemapDice:()=>Tg,treemapResquarify:()=>Wg,treemapSlice:()=>zg,treemapSliceDice:()=>Yg,treemapSquarify:()=>Fg,tsv:()=>Gc,tsvFormat:()=>ec,tsvFormatBody:()=>rc,tsvFormatRow:()=>oc,tsvFormatRows:()=>ic,tsvFormatValue:()=>ac,tsvParse:()=>tc,tsvParseRows:()=>nc,union:()=>Wt,utcDay:()=>Am,utcDays:()=>Sm,utcFormat:()=>ab,utcFriday:()=>qm,utcFridays:()=>Hm,utcHour:()=>wm,utcHours:()=>Mm,utcMillisecond:()=>Rv,utcMilliseconds:()=>zv,utcMinute:()=>bm,utcMinutes:()=>_m,utcMonday:()=>Nm,utcMondays:()=>Om,utcMonth:()=>Um,utcMonths:()=>Ym,utcParse:()=>ub,utcSaturday:()=>jm,utcSaturdays:()=>Fm,utcSecond:()=>Hv,utcSeconds:()=>Fv,utcSunday:()=>km,utcSundays:()=>Lm,utcThursday:()=>Pm,utcThursdays:()=>Im,utcTickInterval:()=>Zm,utcTicks:()=>Gm,utcTuesday:()=>Cm,utcTuesdays:()=>Rm,utcWednesday:()=>Dm,utcWednesdays:()=>zm,utcWeek:()=>km,utcWeeks:()=>Lm,utcYear:()=>$m,utcYears:()=>Xm,variance:()=>m,window:()=>Hn,xml:()=>ts,zip:()=>Pt,zoom:()=>sA,zoomIdentity:()=>JT,zoomTransform:()=>tA});const a=i(r),u=a.right,c=a.left,s=i(o).center,f=u;function l(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function h(t){return 0|t.length}function d(t){return!(t>0)}function p(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function g(...t){const n="function"==typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),e=(t=t.map(p)).map(h),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||e.some(d))return o;for(;;){o.push(i.map(((n,e)=>t[e][n])));let a=r;for(;++i[a]===e[a];){if(0===a)return n?o.map(n):o;i[a--]=0}}}function y(t,n){var e=0,r=0;return Float64Array.from(t,void 0===n?t=>e+=+t||0:i=>e+=+n(i,r++,t)||0)}function v(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function m(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,o+=e*(n-i));else{let a=-1;for(let u of t)null!=(u=n(u,++a,t))&&(u=+u)>=u&&(e=u-i,i+=e/++r,o+=e*(u-i))}if(r>1)return o/(r-1)}function b(t,n){const e=m(t,n);return e?Math.sqrt(e):e}function _(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}class x{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let r=0;r<this._n&&r<32;r++){const i=n[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(n[e++]=a),t=o}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}function w(t,n){const e=new x;if(void 0===n)for(let n of t)(n=+n)&&e.add(n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&e.add(i)}return+e}function M(t,n){const e=new x;let r=-1;return Float64Array.from(t,void 0===n?t=>e.add(+t||0):i=>e.add(+n(i,++r,t)||0))}class T extends Map{constructor(t,n=N){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(S(this,t))}has(t){return super.has(S(this,t))}set(t,n){return super.set(E(this,t),n)}delete(t){return super.delete(k(this,t))}}class A extends Set{constructor(t,n=N){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(S(this,t))}add(t){return super.add(E(this,t))}delete(t){return super.delete(k(this,t))}}function S({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function E({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function k({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(e),t.delete(r)),e}function N(t){return null!==t&&"object"==typeof t?t.valueOf():t}function C(t){return t}function D(t,...n){return F(t,C,C,n)}function P(t,...n){return F(t,Array.from,C,n)}function q(t,n){for(let e=1,r=n.length;e<r;++e)t=t.flatMap((t=>t.pop().map((([n,e])=>[...t,n,e]))));return t}function j(t,...n){return q(P(t,...n),n)}function L(t,n,...e){return q(R(t,n,...e),e)}function O(t,n,...e){return F(t,C,n,e)}function R(t,n,...e){return F(t,Array.from,n,e)}function z(t,...n){return F(t,C,H,n)}function I(t,...n){return F(t,Array.from,H,n)}function H(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function F(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new T,u=r[o++];let c=-1;for(const t of i){const n=u(t,++c,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}function B(t,n){return Array.from(n,(n=>t[n]))}function U(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[e]=n;if(e&&1===e.length||n.length>1){const r=Uint32Array.from(t,((t,n)=>n));return n.length>1?(n=n.map((n=>t.map(n))),r.sort(((t,e)=>{for(const r of n){const n=W(r[t],r[e]);if(n)return n}}))):(e=t.map(e),r.sort(((t,n)=>W(e[t],e[n])))),B(t,r)}return t.sort(void 0===e?W:Y(e))}function Y(t){if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function W(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function $(t,n,e){return(1===n.length?U(O(t,n,e),(([t,n],[e,i])=>r(n,i)||r(t,e))):U(D(t,e),(([t,e],[i,o])=>n(e,o)||r(t,i)))).map((([t])=>t))}var X=Array.prototype,V=X.slice;function G(t){return()=>t}X.map;var Z=Math.sqrt(50),Q=Math.sqrt(10),K=Math.sqrt(2);function J(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=tt(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)/a}return r&&o.reverse(),o}function tt(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Z?10:o>=Q?5:o>=K?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Z?10:o>=Q?5:o>=K?2:1)}function nt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Z?i*=10:o>=Q?i*=5:o>=K&&(i*=2),n<t?-i:i}function et(t,n,e){let r;for(;;){const i=tt(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}function rt(t){return Math.ceil(Math.log(l(t))/Math.LN2)+1}function it(){var t=C,n=_,e=rt;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a=r.length,u=new Array(a);for(i=0;i<a;++i)u[i]=t(r[i],i,r);var c=n(u),s=c[0],l=c[1],h=e(u,s,l);if(!Array.isArray(h)){const t=l,e=+h;if(n===_&&([s,l]=et(s,l,e)),(h=J(s,l,e))[h.length-1]>=l)if(t>=l&&n===_){const t=tt(s,l,e);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else h.pop()}for(var d=h.length;h[0]<=s;)h.shift(),--d;for(;h[d-1]>l;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:s,p.x1=i<d?h[i]:l;for(i=0;i<a;++i)null!=(o=u[i])&&s<=o&&o<=l&&g[f(h,o,0,d)].push(r[i]);return g}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:G(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:G([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?G(V.call(t)):G(t),r):e},r}function ot(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function at(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function ut(t,n,e=0,r=t.length-1,i){for(i=void 0===i?W:Y(i);r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,u=Math.log(o),c=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*c*(o-c)/o)*(a-o/2<0?-1:1);ut(t,n,Math.max(e,Math.floor(n-a*c/o+s)),Math.min(r,Math.floor(n+(o-a)*c/o+s)),i)}const o=t[n];let a=e,u=r;for(ct(t,e,n),i(t[r],o)>0&&ct(t,e,r);a<u;){for(ct(t,a,u),++a,--u;i(t[a],o)<0;)++a;for(;i(t[u],o)>0;)--u}0===i(t[e],o)?ct(t,e,u):(++u,ct(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function ct(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function st(t,n,e){if(r=(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e))).length){if((n=+n)<=0||r<2)return at(t);if(n>=1)return ot(t);var r,i=(r-1)*n,o=Math.floor(i),a=ot(ut(t,o).subarray(0,o+1));return a+(at(t.subarray(o+1))-a)*(i-o)}}function ft(t,n,e=o){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,a=Math.floor(i),u=+e(t[a],a,t);return u+(+e(t[a+1],a+1,t)-u)*(i-a)}}function lt(t,n,e){return Math.ceil((e-n)/(2*(st(t,.75)-st(t,.25))*Math.pow(l(t),-1/3)))}function ht(t,n,e){return Math.ceil((e-n)/(3.5*b(t)*Math.pow(l(t),-1/3)))}function dt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e<n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e<o||void 0===e&&o>=o)&&(e=o,r=i);return r}function pt(t,n){let e=0,r=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(++e,r+=n);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(o=+o)>=o&&(++e,r+=o)}if(e)return r/e}function gt(t,n){return st(t,.5,n)}function yt(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function vt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e>n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);return r}function mt(t,n){const e=new T;if(void 0===n)for(let n of t)null!=n&&n>=n&&e.set(n,(e.get(n)||0)+1);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&i>=i&&e.set(i,(e.get(i)||0)+1)}let r,i=0;for(const[t,n]of e)n>i&&(i=n,r=t);return r}function bt(t,n=_t){const e=[];let r,i=!1;for(const o of t)i&&e.push(n(r,o)),r=o,i=!0;return e}function _t(t,n){return[t,n]}function xt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function wt(t,n=r){let e,i=!1;if(1===n.length){let o;for(const a of t){const t=n(a);(i?r(t,o)<0:0===r(t,t))&&(e=a,o=t,i=!0)}}else for(const r of t)(i?n(r,e)<0:0===n(r,r))&&(e=r,i=!0);return e}function Mt(t,n=r){if(1===n.length)return vt(t,n);let e,i=-1,o=-1;for(const r of t)++o,(i<0?0===n(r,r):n(r,e)<0)&&(e=r,i=o);return i}function Tt(t,n=r){let e,i=!1;if(1===n.length){let o;for(const a of t){const t=n(a);(i?r(t,o)>0:0===r(t,t))&&(e=a,o=t,i=!0)}}else for(const r of t)(i?n(r,e)>0:0===n(r,r))&&(e=r,i=!0);return e}function At(t,n=r){if(1===n.length)return dt(t,n);let e,i=-1,o=-1;for(const r of t)++o,(i<0?0===n(r,r):n(r,e)>0)&&(e=r,i=o);return i}function St(t,n){const e=Mt(t,n);return e<0?void 0:e}const Et=kt(Math.random);function kt(t){return function(n,e=0,r=n.length){let i=r-(e=+e);for(;i;){const r=t()*i--|0,o=n[i+e];n[i+e]=n[r+e],n[r+e]=o}return n}}function Nt(t,n){let e=0;if(void 0===n)for(let n of t)(n=+n)&&(e+=n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&(e+=i)}return e}function Ct(t){if(!(i=t.length))return[];for(var n=-1,e=at(t,Dt),r=new Array(e);++n<e;)for(var i,o=-1,a=r[n]=new Array(i);++o<i;)a[o]=t[o][n];return r}function Dt(t){return t.length}function Pt(){return Ct(arguments)}function qt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(!n(r,++e,t))return!1;return!0}function jt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(n(r,++e,t))return!0;return!1}function Lt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");const e=[];let r=-1;for(const i of t)n(i,++r,t)&&e.push(i);return e}function Ot(t,n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof n)throw new TypeError("mapper is not a function");return Array.from(t,((e,r)=>n(e,r,t)))}function Rt(t,n,e){if("function"!=typeof n)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:e}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)e=n(e,o,++a,t);return e}function zt(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function It(t,...n){t=new Set(t);for(const e of n)for(const n of e)t.delete(n);return t}function Ht(t,n){const e=n[Symbol.iterator](),r=new Set;for(const n of t){if(r.has(n))return!1;let t,i;for(;({value:t,done:i}=e.next())&&!i;){if(Object.is(n,t))return!1;r.add(t)}}return!0}function Ft(t){return t instanceof Set?t:new Set(t)}function Bt(t,...n){t=new Set(t),n=n.map(Ft);t:for(const e of t)for(const r of n)if(!r.has(e)){t.delete(e);continue t}return t}function Ut(t,n){const e=t[Symbol.iterator](),r=new Set;for(const t of n){if(r.has(t))continue;let n,i;for(;({value:n,done:i}=e.next());){if(i)return!1;if(r.add(n),Object.is(t,n))break}}return!0}function Yt(t,n){return Ut(n,t)}function Wt(...t){const n=new Set;for(const e of t)for(const t of e)n.add(t);return n}function $t(t){return t}var Xt=1e-6;function Vt(t){return"translate("+t+",0)"}function Gt(t){return"translate(0,"+t+")"}function Zt(t){return n=>+t(n)}function Qt(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function Kt(){return!this.__axis}function Jt(t,n){var e=[],r=null,i=null,o=6,a=6,u=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,s=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",l=1===t||3===t?Vt:Gt;function h(h){var d=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,p=null==i?n.tickFormat?n.tickFormat.apply(n,e):$t:i,g=Math.max(o,0)+u,y=n.range(),v=+y[0]+c,m=+y[y.length-1]+c,b=(n.bandwidth?Qt:Zt)(n.copy(),c),_=h.selection?h.selection():h,x=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(d,n).order(),M=w.exit(),T=w.enter().append("g").attr("class","tick"),A=w.select("line"),S=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(T),A=A.merge(T.append("line").attr("stroke","currentColor").attr(f+"2",s*o)),S=S.merge(T.append("text").attr("fill","currentColor").attr(f,s*g).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==_&&(x=x.transition(h),w=w.transition(h),A=A.transition(h),S=S.transition(h),M=M.transition(h).attr("opacity",Xt).attr("transform",(function(t){return isFinite(t=b(t))?l(t+c):this.getAttribute("transform")})),T.attr("opacity",Xt).attr("transform",(function(t){var n=this.parentNode.__axis;return l((n&&isFinite(n=n(t))?n:b(t))+c)}))),M.remove(),x.attr("d",4===t||2===t?a?"M"+s*a+","+v+"H"+c+"V"+m+"H"+s*a:"M"+c+","+v+"V"+m:a?"M"+v+","+s*a+"V"+c+"H"+m+"V"+s*a:"M"+v+","+c+"H"+m),w.attr("opacity",1).attr("transform",(function(t){return l(b(t)+c)})),A.attr(f+"2",s*o),S.attr(f,s*g).text(p),_.filter(Kt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),_.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return e=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(e=null==t?[]:Array.from(t),h):e.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(c=+t,h):c},h}function tn(t){return Jt(1,t)}function nn(t){return Jt(2,t)}function en(t){return Jt(3,t)}function rn(t){return Jt(4,t)}var on={value:()=>{}};function an(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new un(r)}function un(t){this._=t}function cn(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function sn(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function fn(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=on,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}un.prototype=an.prototype={constructor:un,on:function(t,n){var e,r=this._,i=cn(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<a;)if(e=(t=i[o]).type)r[e]=fn(r[e],t.name,n);else if(null==n)for(e in r)r[e]=fn(r[e],t.name,null);return this}for(;++o<a;)if((e=(t=i[o]).type)&&(e=sn(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new un(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};const ln=an;function hn(){}function dn(t){return null==t?hn:function(){return this.querySelector(t)}}function pn(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function gn(){return[]}function yn(t){return null==t?gn:function(){return this.querySelectorAll(t)}}function vn(t){return function(){return this.matches(t)}}function mn(t){return function(n){return n.matches(t)}}var bn=Array.prototype.find;function _n(){return this.firstElementChild}var xn=Array.prototype.filter;function wn(){return Array.from(this.children)}function Mn(t){return new Array(t.length)}function Tn(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function An(t){return function(){return t}}function Sn(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;u<s;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new Tn(t,o[u]);for(;u<c;++u)(a=n[u])&&(i[u]=a)}function En(t,n,e,r,i,o,a){var u,c,s,f=new Map,l=n.length,h=o.length,d=new Array(l);for(u=0;u<l;++u)(c=n[u])&&(d[u]=s=a.call(c,c.__data__,u,n)+"",f.has(s)?i[u]=c:f.set(s,c));for(u=0;u<h;++u)s=a.call(t,o[u],u,o)+"",(c=f.get(s))?(r[u]=c,c.__data__=o[u],f.delete(s)):e[u]=new Tn(t,o[u]);for(u=0;u<l;++u)(c=n[u])&&f.get(d[u])===c&&(i[u]=c)}function kn(t){return t.__data__}function Nn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Cn(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Tn.prototype={constructor:Tn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Dn="http://www.w3.org/1999/xhtml";const Pn={svg:"http://www.w3.org/2000/svg",xhtml:Dn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qn(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Pn.hasOwnProperty(n)?{space:Pn[n],local:t}:t}function jn(t){return function(){this.removeAttribute(t)}}function Ln(t){return function(){this.removeAttributeNS(t.space,t.local)}}function On(t,n){return function(){this.setAttribute(t,n)}}function Rn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function zn(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function In(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Hn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Fn(t){return function(){this.style.removeProperty(t)}}function Bn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Un(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Yn(t,n){return t.style.getPropertyValue(n)||Hn(t).getComputedStyle(t,null).getPropertyValue(n)}function Wn(t){return function(){delete this[t]}}function $n(t,n){return function(){this[t]=n}}function Xn(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Vn(t){return t.trim().split(/^|\s+/)}function Gn(t){return t.classList||new Zn(t)}function Zn(t){this._node=t,this._names=Vn(t.getAttribute("class")||"")}function Qn(t,n){for(var e=Gn(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Kn(t,n){for(var e=Gn(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Jn(t){return function(){Qn(this,t)}}function te(t){return function(){Kn(this,t)}}function ne(t,n){return function(){(n.apply(this,arguments)?Qn:Kn)(this,t)}}function ee(){this.textContent=""}function re(t){return function(){this.textContent=t}}function ie(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function oe(){this.innerHTML=""}function ae(t){return function(){this.innerHTML=t}}function ue(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ce(){this.nextSibling&&this.parentNode.appendChild(this)}function se(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fe(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Dn&&n.documentElement.namespaceURI===Dn?n.createElement(t):n.createElementNS(e,t)}}function le(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function he(t){var n=qn(t);return(n.local?le:fe)(n)}function de(){return null}function pe(){var t=this.parentNode;t&&t.removeChild(this)}function ge(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ye(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ve(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function me(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function be(t,n,e){return function(){var r,i=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(i)for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=e),void(r.value=n);this.addEventListener(t.type,o,e),r={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(r):this.__on=[r]}}function _e(t,n,e){var r=Hn(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function xe(t,n){return function(){return _e(this,t,n)}}function we(t,n){return function(){return _e(this,t,n.apply(this,arguments))}}Zn.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Me=[null];function Te(t,n){this._groups=t,this._parents=n}function Ae(){return new Te([[document.documentElement]],Me)}Te.prototype=Ae.prototype={constructor:Te,select:function(t){"function"!=typeof t&&(t=dn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,u=n[i],c=u.length,s=r[i]=new Array(c),f=0;f<c;++f)(o=u[f])&&(a=t.call(o,o.__data__,f,u))&&("__data__"in o&&(a.__data__=o.__data__),s[f]=a);return new Te(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return pn(t.apply(this,arguments))}}(t):yn(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a,u=n[o],c=u.length,s=0;s<c;++s)(a=u[s])&&(r.push(t.call(a,a.__data__,s,u)),i.push(a));return new Te(r,i)},selectChild:function(t){return this.select(null==t?_n:function(t){return function(){return bn.call(this.children,t)}}("function"==typeof t?t:mn(t)))},selectChildren:function(t){return this.selectAll(null==t?wn:function(t){return function(){return xn.call(this.children,t)}}("function"==typeof t?t:mn(t)))},filter:function(t){"function"!=typeof t&&(t=vn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new Te(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,kn);var e=n?En:Sn,r=this._parents,i=this._groups;"function"!=typeof t&&(t=An(t));for(var o=i.length,a=new Array(o),u=new Array(o),c=new Array(o),s=0;s<o;++s){var f=r[s],l=i[s],h=l.length,d=Nn(t.call(f,f&&f.__data__,s,r)),p=d.length,g=u[s]=new Array(p),y=a[s]=new Array(p),v=c[s]=new Array(h);e(f,l,g,y,v,d,n);for(var m,b,_=0,x=0;_<p;++_)if(m=g[_]){for(_>=x&&(x=_+1);!(b=y[x])&&++x<p;);m._next=b||null}}return(a=new Te(a,r))._enter=u,a._exit=c,a},enter:function(){return new Te(this._enter||this._groups.map(Mn),this._parents)},exit:function(){return new Te(this._exit||this._groups.map(Mn),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=n&&(i=n(i))&&(i=i.selection()),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,a=Math.min(i,o),u=new Array(i),c=0;c<a;++c)for(var s,f=e[c],l=r[c],h=f.length,d=u[c]=new Array(h),p=0;p<h;++p)(s=f[p]||l[p])&&(d[p]=s);for(;c<i;++c)u[c]=e[c];return new Te(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Cn);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],c=u.length,s=i[o]=new Array(c),f=0;f<c;++f)(a=u[f])&&(s[f]=a);s.sort(n)}return new Te(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,n){var e=qn(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?Ln:jn:"function"==typeof n?e.local?In:zn:e.local?Rn:On)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?Fn:"function"==typeof n?Un:Bn)(t,n,null==e?"":e)):Yn(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Wn:"function"==typeof n?Xn:$n)(t,n)):this.node()[t]},classed:function(t,n){var e=Vn(t+"");if(arguments.length<2){for(var r=Gn(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?ne:n?Jn:te)(e,n))},text:function(t){return arguments.length?this.each(null==t?ee:("function"==typeof t?ie:re)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?oe:("function"==typeof t?ue:ae)(t)):this.node().innerHTML},raise:function(){return this.each(ce)},lower:function(){return this.each(se)},append:function(t){var n="function"==typeof t?t:he(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:he(t),r=null==n?de:"function"==typeof n?n:dn(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(pe)},clone:function(t){return this.select(t?ye:ge)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=ve(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?be:me,r=0;r<a;++r)this.each(u(o[r],n,e));return this}var u=this.node().__on;if(u)for(var c,s=0,f=u.length;s<f;++s)for(r=0,c=u[s];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?we:xe)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};const Se=Ae;function Ee(t){return"string"==typeof t?new Te([[document.querySelector(t)]],[document.documentElement]):new Te([[t]],Me)}const ke={passive:!1},Ne={capture:!0,passive:!1};function Ce(t){t.stopImmediatePropagation()}function De(t){t.preventDefault(),t.stopImmediatePropagation()}function Pe(t){var n=t.document.documentElement,e=Ee(t).on("dragstart.drag",De,Ne);"onselectstart"in n?e.on("selectstart.drag",De,Ne):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function qe(t,n){var e=t.document.documentElement,r=Ee(t).on("dragstart.drag",null);n&&(r.on("click.drag",De,Ne),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function je(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Le(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Oe(){}var Re=.7,ze=1/Re,Ie="\\s*([+-]?\\d+)\\s*",He="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Be=/^#([0-9a-f]{3,8})$/,Ue=new RegExp("^rgb\\("+[Ie,Ie,Ie]+"\\)$"),Ye=new RegExp("^rgb\\("+[Fe,Fe,Fe]+"\\)$"),We=new RegExp("^rgba\\("+[Ie,Ie,Ie,He]+"\\)$"),$e=new RegExp("^rgba\\("+[Fe,Fe,Fe,He]+"\\)$"),Xe=new RegExp("^hsl\\("+[He,Fe,Fe]+"\\)$"),Ve=new RegExp("^hsla\\("+[He,Fe,Fe,He]+"\\)$"),Ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ze(){return this.rgb().formatHex()}function Qe(){return this.rgb().formatRgb()}function Ke(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Be.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Je(n):3===e?new rr(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?tr(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?tr(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Ue.exec(t))?new rr(n[1],n[2],n[3],1):(n=Ye.exec(t))?new rr(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=We.exec(t))?tr(n[1],n[2],n[3],n[4]):(n=$e.exec(t))?tr(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Xe.exec(t))?ur(n[1],n[2]/100,n[3]/100,1):(n=Ve.exec(t))?ur(n[1],n[2]/100,n[3]/100,n[4]):Ge.hasOwnProperty(t)?Je(Ge[t]):"transparent"===t?new rr(NaN,NaN,NaN,0):null}function Je(t){return new rr(t>>16&255,t>>8&255,255&t,1)}function tr(t,n,e,r){return r<=0&&(t=n=e=NaN),new rr(t,n,e,r)}function nr(t){return t instanceof Oe||(t=Ke(t)),t?new rr((t=t.rgb()).r,t.g,t.b,t.opacity):new rr}function er(t,n,e,r){return 1===arguments.length?nr(t):new rr(t,n,e,null==r?1:r)}function rr(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ir(){return"#"+ar(this.r)+ar(this.g)+ar(this.b)}function or(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ar(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ur(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new fr(t,n,e,r)}function cr(t){if(t instanceof fr)return new fr(t.h,t.s,t.l,t.opacity);if(t instanceof Oe||(t=Ke(t)),!t)return new fr;if(t instanceof fr)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e<r):e===o?(r-n)/u+2:(n-e)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new fr(a,u,c,t.opacity)}function sr(t,n,e,r){return 1===arguments.length?cr(t):new fr(t,n,e,null==r?1:r)}function fr(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function lr(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function hr(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function dr(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<n-1?t[r+2]:2*o-i;return hr((e-r/n)*n,a,i,o,u)}}function pr(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return hr((e-r/n)*n,i,o,a,u)}}je(Oe,Ke,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ze,formatHex:Ze,formatHsl:function(){return cr(this).formatHsl()},formatRgb:Qe,toString:Qe}),je(rr,er,Le(Oe,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new rr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Re:Math.pow(Re,t),new rr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ir,formatHex:ir,formatRgb:or,toString:or})),je(fr,sr,Le(Oe,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new fr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Re:Math.pow(Re,t),new fr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new rr(lr(t>=240?t-240:t+120,i,r),lr(t,i,r),lr(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const gr=t=>()=>t;function yr(t,n){return function(e){return t+e*n}}function vr(t,n){var e=n-t;return e?yr(t,e>180||e<-180?e-360*Math.round(e/360):e):gr(isNaN(t)?n:t)}function mr(t,n){var e=n-t;return e?yr(t,e):gr(isNaN(t)?n:t)}const br=function t(n){var e=function(t){return 1==(t=+t)?mr:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):gr(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=er(t)).r,(n=er(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=mr(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function _r(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e<i;++e)r=er(n[e]),o[e]=r.r||0,a[e]=r.g||0,u[e]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}var xr=_r(dr),wr=_r(pr);function Mr(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}}function Tr(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ar(t,n){return(Tr(n)?Mr:Sr)(t,n)}function Sr(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(e=0;e<i;++e)o[e]=qr(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}}function Er(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function kr(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Nr(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=qr(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}var Cr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Dr=new RegExp(Cr.source,"g");function Pr(t,n){var e,r,i,o=Cr.lastIndex=Dr.lastIndex=0,a=-1,u=[],c=[];for(t+="",n+="";(e=Cr.exec(t))&&(r=Dr.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:kr(e,r)})),o=Dr.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)u[(e=c[r]).i]=e.x(t);return u.join("")})}function qr(t,n){var e,r=typeof n;return null==n||"boolean"===r?gr(n):("number"===r?kr:"string"===r?(e=Ke(n))?(n=e,br):Pr:n instanceof Ke?br:n instanceof Date?Er:Tr(n)?Mr:Array.isArray(n)?Sr:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Nr:kr)(t,n)}function jr(t){let n;for(;n=t.sourceEvent;)t=n;return t}function Lr(t,n){if(t=jr(t),void 0===n&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(n.getScreenCTM().inverse())).x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}var Or,Rr,zr=0,Ir=0,Hr=0,Fr=0,Br=0,Ur=0,Yr="object"==typeof performance&&performance.now?performance:Date,Wr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $r(){return Br||(Wr(Xr),Br=Yr.now()+Ur)}function Xr(){Br=0}function Vr(){this._call=this._time=this._next=null}function Gr(t,n,e){var r=new Vr;return r.restart(t,n,e),r}function Zr(){$r(),++zr;for(var t,n=Or;n;)(t=Br-n._time)>=0&&n._call.call(void 0,t),n=n._next;--zr}function Qr(){Br=(Fr=Yr.now())+Ur,zr=Ir=0;try{Zr()}finally{zr=0,function(){for(var t,n,e=Or,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Or=n);Rr=t,Jr(r)}(),Br=0}}function Kr(){var t=Yr.now(),n=t-Fr;n>1e3&&(Ur-=n,Fr=t)}function Jr(t){zr||(Ir&&(Ir=clearTimeout(Ir)),t-Br>24?(t<1/0&&(Ir=setTimeout(Qr,t-Yr.now()-Ur)),Hr&&(Hr=clearInterval(Hr))):(Hr||(Fr=Yr.now(),Hr=setInterval(Kr,1e3)),zr=1,Wr(Qr)))}function ti(t,n,e){var r=new Vr;return n=null==n?0:+n,r.restart((e=>{r.stop(),t(e+n)}),n,e),r}Vr.prototype=Gr.prototype={constructor:Vr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?$r():+e)+(null==n?0:+n),this._next||Rr===this||(Rr?Rr._next=this:Or=this,Rr=this),this._call=t,this._time=e,Jr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jr())}};var ni=ln("start","end","cancel","interrupt"),ei=[];function ri(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var s,f,l,h;if(1!==e.state)return u();for(s in i)if((h=i[s]).name===e.name){if(3===h.state)return ti(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+s<n&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[s])}if(ti((function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(c))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(l=e.tween.length),s=0,f=-1;s<l;++s)(h=e.tween[s].value.call(t,t.__data__,e.index,e.group))&&(r[++f]=h);r.length=f+1}}function a(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(u),e.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=Gr((function(t){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:ni,tween:ei,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ii(t,n){var e=ai(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function oi(t,n){var e=ai(t,n);if(e.state>3)throw new Error("too late; already running");return e}function ai(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function ui(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}}var ci,si=180/Math.PI,fi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function li(t,n,e,r,i,o){var a,u,c;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,c/=u),t*r<n*e&&(t=-t,n=-n,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*si,skewX:Math.atan(c)*si,scaleX:a,scaleY:u}}function hi(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],c=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var c=a.push("translate(",null,n,null,e);u.push({i:c-4,x:kr(t,i)},{i:c-2,x:kr(r,o)})}else(i||o)&&a.push("translate("+i+n+o+e)}(o.translateX,o.translateY,a.translateX,a.translateY,u,c),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:kr(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:kr(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:kr(t,e)},{i:u-2,x:kr(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e<r;)u[(n=c[e]).i]=n.x(t);return u.join("")}}}var di=hi((function(t){const n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?fi:li(n.a,n.b,n.c,n.d,n.e,n.f)}),"px, ","px)","deg)"),pi=hi((function(t){return null==t?fi:(ci||(ci=document.createElementNS("http://www.w3.org/2000/svg","g")),ci.setAttribute("transform",t),(t=ci.transform.baseVal.consolidate())?li((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):fi)}),", ",")",")");function gi(t,n){var e,r;return function(){var i=oi(this,t),o=i.tween;if(o!==e)for(var a=0,u=(r=e=o).length;a<u;++a)if(r[a].name===n){(r=r.slice()).splice(a,1);break}i.tween=r}}function yi(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=oi(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},c=0,s=i.length;c<s;++c)if(i[c].name===n){i[c]=u;break}c===s&&i.push(u)}o.tween=i}}function vi(t,n,e){var r=t._id;return t.each((function(){var t=oi(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return ai(t,r).value[n]}}function mi(t,n){var e;return("number"==typeof n?kr:n instanceof Ke?br:(e=Ke(n))?(n=e,br):Pr)(t,n)}function bi(t){return function(){this.removeAttribute(t)}}function _i(t){return function(){this.removeAttributeNS(t.space,t.local)}}function xi(t,n,e){var r,i,o=e+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=n(r=a,e)}}function wi(t,n,e){var r,i,o=e+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=n(r=a,e)}}function Mi(t,n,e){var r,i,o;return function(){var a,u,c=e(this);if(null!=c)return(a=this.getAttribute(t))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=n(r=a,c));this.removeAttribute(t)}}function Ti(t,n,e){var r,i,o;return function(){var a,u,c=e(this);if(null!=c)return(a=this.getAttributeNS(t.space,t.local))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=n(r=a,c));this.removeAttributeNS(t.space,t.local)}}function Ai(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Si(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function Ei(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Si(t,i)),e}return i._value=n,i}function ki(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Ai(t,i)),e}return i._value=n,i}function Ni(t,n){return function(){ii(this,t).delay=+n.apply(this,arguments)}}function Ci(t,n){return n=+n,function(){ii(this,t).delay=n}}function Di(t,n){return function(){oi(this,t).duration=+n.apply(this,arguments)}}function Pi(t,n){return n=+n,function(){oi(this,t).duration=n}}function qi(t,n){if("function"!=typeof n)throw new Error;return function(){oi(this,t).ease=n}}function ji(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?ii:oi;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}var Li=Se.prototype.constructor;function Oi(t){return function(){this.style.removeProperty(t)}}function Ri(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function zi(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&Ri(t,o,e)),r}return o._value=n,o}function Ii(t){return function(n){this.textContent=t.call(this,n)}}function Hi(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&Ii(r)),n}return r._value=t,r}var Fi=0;function Bi(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Ui(t){return Se().transition(t)}function Yi(){return++Fi}var Wi=Se.prototype;function $i(t){return t*t*t}function Xi(t){return--t*t*t+1}function Vi(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Bi.prototype=Ui.prototype={constructor:Bi,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=dn(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,c,s=r[a],f=s.length,l=o[a]=new Array(f),h=0;h<f;++h)(u=s[h])&&(c=t.call(u,u.__data__,h,s))&&("__data__"in u&&(c.__data__=u.__data__),l[h]=c,ri(l[h],n,e,h,l,ai(u,e)));return new Bi(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=yn(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c,s=r[u],f=s.length,l=0;l<f;++l)if(c=s[l]){for(var h,d=t.call(c,c.__data__,l,s),p=ai(c,e),g=0,y=d.length;g<y;++g)(h=d[g])&&ri(h,n,e,g,d,p);o.push(d),a.push(c)}return new Bi(o,a,n,e)},selectChild:Wi.selectChild,selectChildren:Wi.selectChildren,filter:function(t){"function"!=typeof t&&(t=vn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new Bi(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=n[u],f=e[u],l=s.length,h=a[u]=new Array(l),d=0;d<l;++d)(c=s[d]||f[d])&&(h[d]=c);for(;u<r;++u)a[u]=n[u];return new Bi(a,this._parents,this._name,this._id)},selection:function(){return new Li(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Yi(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)if(a=u[s]){var f=ai(a,n);ri(a,t,e,s,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Bi(r,this._parents,t,e)},call:Wi.call,nodes:Wi.nodes,node:Wi.node,size:Wi.size,empty:Wi.empty,each:Wi.each,on:function(t,n){var e=this._id;return arguments.length<2?ai(this.node(),e).on.on(t):this.each(ji(e,t,n))},attr:function(t,n){var e=qn(t),r="transform"===e?pi:mi;return this.attrTween(t,"function"==typeof n?(e.local?Ti:Mi)(e,r,vi(this,"attr."+t,n)):null==n?(e.local?_i:bi)(e):(e.local?wi:xi)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=qn(t);return this.tween(e,(r.local?Ei:ki)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?di:mi;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=Yn(this,t),a=(this.style.removeProperty(t),Yn(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,Oi(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var a=Yn(this,t),u=e(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=Yn(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=n(r=a,u))}}(t,r,vi(this,"style."+t,n))).each(function(t,n){var e,r,i,o,a="style."+n,u="end."+a;return function(){var c=oi(this,t),s=c.on,f=null==c.value[a]?o||(o=Oi(n)):void 0;s===e&&i===f||(r=(e=s).copy()).on(u,i=f),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var a=Yn(this,t);return a===o?null:a===r?i:i=n(r=a,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,zi(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(vi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,Hi(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=ai(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?gi:yi)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Ni:Ci)(n,t)):ai(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Di:Pi)(n,t)):ai(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(qi(n,t)):ai(this.node(),n).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!=typeof e)throw new Error;oi(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,a){var u={value:a},c={value:function(){0==--i&&o()}};e.each((function(){var e=oi(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(u),n._.interrupt.push(u),n._.end.push(c)),e.on=n})),0===i&&o()}))},[Symbol.iterator]:Wi[Symbol.iterator]};var Gi={time:null,delay:0,duration:250,ease:Vi};function Zi(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}Se.prototype.interrupt=function(t){return this.each((function(){ui(this,t)}))},Se.prototype.transition=function(t){var n,e;t instanceof Bi?(n=t._id,t=t._name):(n=Yi(),(e=Gi).time=$r(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)(a=u[s])&&ri(a,t,n,s,u,e||Zi(a,n));return new Bi(r,this._parents,t,n)};var Qi=[null];function Ki(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>1&&e.name===n)return new Bi([[t]],Qi,n,+r);return null}const Ji=t=>()=>t;function to(t,{sourceEvent:n,target:e,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function no(t){t.stopImmediatePropagation()}function eo(t){t.preventDefault(),t.stopImmediatePropagation()}var ro={name:"drag"},io={name:"space"},oo={name:"handle"},ao={name:"center"};const{abs:uo,max:co,min:so}=Math;function fo(t){return[+t[0],+t[1]]}function lo(t){return[fo(t[0]),fo(t[1])]}var ho={name:"x",handles:["w","e"].map(xo),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},po={name:"y",handles:["n","s"].map(xo),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},go={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(xo),input:function(t){return null==t?null:lo(t)},output:function(t){return t}},yo={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},vo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},mo={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},bo={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},_o={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function xo(t){return{type:t}}function wo(t){return!t.ctrlKey&&!t.button}function Mo(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function To(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ao(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function So(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Eo(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function ko(){return Do(ho)}function No(){return Do(po)}function Co(){return Do(go)}function Do(t){var n,e=Mo,r=wo,i=To,o=!0,a=ln("start","brush","end"),u=6;function c(n){var e=n.property("__brush",g).selectAll(".overlay").data([xo("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",yo.overlay).merge(e).each((function(){var t=Ao(this).extent;Ee(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([xo("selection")]).enter().append("rect").attr("class","selection").attr("cursor",yo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return yo[t.type]})),n.each(s).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function s(){var t=Ee(this),n=Ao(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-u/2:n[0][0]-u/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-u/2:n[0][1]-u/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+u:u})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+u:u}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function f(t,n,e){var r=t.__brush.emitter;return!r||e&&r.clean?new l(t,n,e):r}function l(t,n,e){this.that=t,this.args=n,this.state=t.__brush,this.active=0,this.clean=e}function h(e){if((!n||e.touches)&&r.apply(this,arguments)){var i,a,u,c,l,h,d,p,g,y,v,m=this,b=e.target.__data__.type,_="selection"===(o&&e.metaKey?b="overlay":b)?ro:o&&e.altKey?ao:oo,x=t===po?null:bo[b],w=t===ho?null:_o[b],M=Ao(m),T=M.extent,A=M.selection,S=T[0][0],E=T[0][1],k=T[1][0],N=T[1][1],C=0,D=0,P=x&&w&&o&&e.shiftKey,q=Array.from(e.touches||[e],(t=>{const n=t.identifier;return(t=Lr(t,m)).point0=t.slice(),t.identifier=n,t}));ui(m);var j=f(m,arguments,!0).beforestart();if("overlay"===b){A&&(g=!0);const n=[q[0],q[1]||q[0]];M.selection=A=[[i=t===po?S:so(n[0][0],n[1][0]),u=t===ho?E:so(n[0][1],n[1][1])],[l=t===po?k:co(n[0][0],n[1][0]),d=t===ho?N:co(n[0][1],n[1][1])]],q.length>1&&I(e)}else i=A[0][0],u=A[0][1],l=A[1][0],d=A[1][1];a=i,c=u,h=l,p=d;var L=Ee(m).attr("pointer-events","none"),O=L.selectAll(".overlay").attr("cursor",yo[b]);if(e.touches)j.moved=z,j.ended=H;else{var R=Ee(e.view).on("mousemove.brush",z,!0).on("mouseup.brush",H,!0);o&&R.on("keydown.brush",F,!0).on("keyup.brush",B,!0),Pe(e.view)}s.call(m),j.start(e,_.name)}function z(t){for(const n of t.changedTouches||[t])for(const t of q)t.identifier===n.identifier&&(t.cur=Lr(n,m));if(P&&!y&&!v&&1===q.length){const t=q[0];uo(t.cur[0]-t[0])>uo(t.cur[1]-t[1])?v=!0:y=!0}for(const t of q)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);g=!0,eo(t),I(t)}function I(t){const n=q[0],e=n.point0;var r;switch(C=n[0]-e[0],D=n[1]-e[1],_){case io:case ro:x&&(C=co(S-i,so(k-l,C)),a=i+C,h=l+C),w&&(D=co(E-u,so(N-d,D)),c=u+D,p=d+D);break;case oo:q[1]?(x&&(a=co(S,so(k,q[0][0])),h=co(S,so(k,q[1][0])),x=1),w&&(c=co(E,so(N,q[0][1])),p=co(E,so(N,q[1][1])),w=1)):(x<0?(C=co(S-i,so(k-i,C)),a=i+C,h=l):x>0&&(C=co(S-l,so(k-l,C)),a=i,h=l+C),w<0?(D=co(E-u,so(N-u,D)),c=u+D,p=d):w>0&&(D=co(E-d,so(N-d,D)),c=u,p=d+D));break;case ao:x&&(a=co(S,so(k,i-C*x)),h=co(S,so(k,l+C*x))),w&&(c=co(E,so(N,u-D*w)),p=co(E,so(N,d+D*w)))}h<a&&(x*=-1,r=i,i=l,l=r,r=a,a=h,h=r,b in vo&&O.attr("cursor",yo[b=vo[b]])),p<c&&(w*=-1,r=u,u=d,d=r,r=c,c=p,p=r,b in mo&&O.attr("cursor",yo[b=mo[b]])),M.selection&&(A=M.selection),y&&(a=A[0][0],h=A[1][0]),v&&(c=A[0][1],p=A[1][1]),A[0][0]===a&&A[0][1]===c&&A[1][0]===h&&A[1][1]===p||(M.selection=[[a,c],[h,p]],s.call(m),j.brush(t,_.name))}function H(t){if(no(t),t.touches){if(t.touches.length)return;n&&clearTimeout(n),n=setTimeout((function(){n=null}),500)}else qe(t.view,g),R.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);L.attr("pointer-events","all"),O.attr("cursor",yo.overlay),M.selection&&(A=M.selection),So(A)&&(M.selection=null,s.call(m)),j.end(t,_.name)}function F(t){switch(t.keyCode){case 16:P=x&&w;break;case 18:_===oo&&(x&&(l=h-C*x,i=a+C*x),w&&(d=p-D*w,u=c+D*w),_=ao,I(t));break;case 32:_!==oo&&_!==ao||(x<0?l=h-C:x>0&&(i=a-C),w<0?d=p-D:w>0&&(u=c-D),_=io,O.attr("cursor",yo.selection),I(t));break;default:return}eo(t)}function B(t){switch(t.keyCode){case 16:P&&(y=v=P=!1,I(t));break;case 18:_===ao&&(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),_=oo,I(t));break;case 32:_===io&&(t.altKey?(x&&(l=h-C*x,i=a+C*x),w&&(d=p-D*w,u=c+D*w),_=ao):(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),_=oo),O.attr("cursor",yo[b]),I(t));break;default:return}eo(t)}}function d(t){f(this,arguments).moved(t)}function p(t){f(this,arguments).ended(t)}function g(){var n=this.__brush||{selection:null};return n.extent=lo(e.apply(this,arguments)),n.dim=t,n}return c.move=function(n,e,r){n.tween?n.on("start.brush",(function(t){f(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){f(this,arguments).end(t)})).tween("brush",(function(){var n=this,r=n.__brush,i=f(n,arguments),o=r.selection,a=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),u=qr(o,a);function c(t){r.selection=1===t&&null===a?null:u(t),s.call(n),i.brush()}return null!==o&&null!==a?c:c(1)})):n.each((function(){var n=this,i=arguments,o=n.__brush,a=t.input("function"==typeof e?e.apply(n,i):e,o.extent),u=f(n,i).beforestart();ui(n),o.selection=null===a?null:a,s.call(n),u.start(r).brush(r).end(r)}))},c.clear=function(t,n){c.move(t,null,n)},l.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,n){return this.starting?(this.starting=!1,this.emit("start",t,n)):this.emit("brush",t),this},brush:function(t,n){return this.emit("brush",t,n),this},end:function(t,n){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,n)),this},emit:function(n,e,r){var i=Ee(this.that).datum();a.call(n,this.that,new to(n,{sourceEvent:e,target:c,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},c.extent=function(t){return arguments.length?(e="function"==typeof t?t:Ji(lo(t)),c):e},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Ji(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Ji(!!t),c):i},c.handleSize=function(t){return arguments.length?(u=+t,c):u},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=a.on.apply(a,arguments);return t===a?c:t},c}var Po=Math.abs,qo=Math.cos,jo=Math.sin,Lo=Math.PI,Oo=Lo/2,Ro=2*Lo,zo=Math.max,Io=1e-12;function Ho(t,n){return Array.from({length:n-t},((n,e)=>t+e))}function Fo(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function Bo(){return Wo(!1,!1)}function Uo(){return Wo(!1,!0)}function Yo(){return Wo(!0,!1)}function Wo(t,n){var e=0,r=null,i=null,o=null;function a(a){var u,c=a.length,s=new Array(c),f=Ho(0,c),l=new Array(c*c),h=new Array(c),d=0;a=Float64Array.from({length:c*c},n?(t,n)=>a[n%c][n/c|0]:(t,n)=>a[n/c|0][n%c]);for(let n=0;n<c;++n){let e=0;for(let r=0;r<c;++r)e+=a[n*c+r]+t*a[r*c+n];d+=s[n]=e}u=(d=zo(0,Ro-e*c)/d)?e:Ro/c;{let n=0;r&&f.sort(((t,n)=>r(s[t],s[n])));for(const e of f){const r=n;if(t){const t=Ho(1+~c,c).filter((t=>t<0?a[~t*c+e]:a[e*c+t]));i&&t.sort(((t,n)=>i(t<0?-a[~t*c+e]:a[e*c+t],n<0?-a[~n*c+e]:a[e*c+n])));for(const r of t)r<0?(l[~r*c+e]||(l[~r*c+e]={source:null,target:null})).target={index:e,startAngle:n,endAngle:n+=a[~r*c+e]*d,value:a[~r*c+e]}:(l[e*c+r]||(l[e*c+r]={source:null,target:null})).source={index:e,startAngle:n,endAngle:n+=a[e*c+r]*d,value:a[e*c+r]};h[e]={index:e,startAngle:r,endAngle:n,value:s[e]}}else{const t=Ho(0,c).filter((t=>a[e*c+t]||a[t*c+e]));i&&t.sort(((t,n)=>i(a[e*c+t],a[e*c+n])));for(const r of t){let t;if(e<r?(t=l[e*c+r]||(l[e*c+r]={source:null,target:null}),t.source={index:e,startAngle:n,endAngle:n+=a[e*c+r]*d,value:a[e*c+r]}):(t=l[r*c+e]||(l[r*c+e]={source:null,target:null}),t.target={index:e,startAngle:n,endAngle:n+=a[e*c+r]*d,value:a[e*c+r]},e===r&&(t.source=t.target)),t.source&&t.target&&t.source.value<t.target.value){const n=t.source;t.source=t.target,t.target=n}}h[e]={index:e,startAngle:r,endAngle:n,value:s[e]}}n+=u}}return(l=Object.values(l)).groups=h,o?l.sort(o):l}return a.padAngle=function(t){return arguments.length?(e=zo(0,t),a):e},a.sortGroups=function(t){return arguments.length?(r=t,a):r},a.sortSubgroups=function(t){return arguments.length?(i=t,a):i},a.sortChords=function(t){return arguments.length?(null==t?o=null:(o=Fo(t))._=t,a):o&&o._},a}const $o=Math.PI,Xo=2*$o,Vo=1e-6,Go=Xo-Vo;function Zo(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Qo(){return new Zo}Zo.prototype=Qo.prototype={constructor:Zo,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,u=e-t,c=r-n,s=o-t,f=a-n,l=s*s+f*f;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>Vo)if(Math.abs(f*u-c*s)>Vo&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,y=Math.sqrt(p),v=Math.sqrt(l),m=i*Math.tan(($o-Math.acos((p+l-g)/(2*y*v)))/2),b=m/v,_=m/y;Math.abs(b-1)>Vo&&(this._+="L"+(t+b*s)+","+(n+b*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>s*d)+","+(this._x1=t+_*u)+","+(this._y1=n+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,s=n+u,f=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>Vo||Math.abs(this._y1-s)>Vo)&&(this._+="L"+c+","+s),e&&(l<0&&(l=l%Xo+Xo),l>Go?this._+="A"+e+","+e+",0,1,"+f+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+f+","+(this._x1=c)+","+(this._y1=s):l>Vo&&(this._+="A"+e+","+e+",0,"+ +(l>=$o)+","+f+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const Ko=Qo;var Jo=Array.prototype.slice;function ta(t){return function(){return t}}function na(t){return t.source}function ea(t){return t.target}function ra(t){return t.radius}function ia(t){return t.startAngle}function oa(t){return t.endAngle}function aa(){return 0}function ua(){return 10}function ca(t){var n=na,e=ea,r=ra,i=ra,o=ia,a=oa,u=aa,c=null;function s(){var s,f=n.apply(this,arguments),l=e.apply(this,arguments),h=u.apply(this,arguments)/2,d=Jo.call(arguments),p=+r.apply(this,(d[0]=f,d)),g=o.apply(this,d)-Oo,y=a.apply(this,d)-Oo,v=+i.apply(this,(d[0]=l,d)),m=o.apply(this,d)-Oo,b=a.apply(this,d)-Oo;if(c||(c=s=Ko()),h>Io&&(Po(y-g)>2*h+Io?y>g?(g+=h,y-=h):(g-=h,y+=h):g=y=(g+y)/2,Po(b-m)>2*h+Io?b>m?(m+=h,b-=h):(m-=h,b+=h):m=b=(m+b)/2),c.moveTo(p*qo(g),p*jo(g)),c.arc(0,0,p,g,y),g!==m||y!==b)if(t){var _=+t.apply(this,arguments),x=v-_,w=(m+b)/2;c.quadraticCurveTo(0,0,x*qo(m),x*jo(m)),c.lineTo(v*qo(w),v*jo(w)),c.lineTo(x*qo(b),x*jo(b))}else c.quadraticCurveTo(0,0,v*qo(m),v*jo(m)),c.arc(0,0,v,m,b);if(c.quadraticCurveTo(0,0,p*qo(g),p*jo(g)),c.closePath(),s)return c=null,s+""||null}return t&&(s.headRadius=function(n){return arguments.length?(t="function"==typeof n?n:ta(+n),s):t}),s.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:ta(+t),s):r},s.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:ta(+t),s):r},s.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:ta(+t),s):i},s.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:ta(+t),s):o},s.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:ta(+t),s):a},s.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:ta(+t),s):u},s.source=function(t){return arguments.length?(n=t,s):n},s.target=function(t){return arguments.length?(e=t,s):e},s.context=function(t){return arguments.length?(c=null==t?null:t,s):c},s}function sa(){return ca()}function fa(){return ca(ua)}const la=Math.PI/180,ha=180/Math.PI,da=.96422,pa=.82521,ga=4/29,ya=6/29,va=3*ya*ya;function ma(t){if(t instanceof xa)return new xa(t.l,t.a,t.b,t.opacity);if(t instanceof Na)return Ca(t);t instanceof rr||(t=nr(t));var n,e,r=Aa(t.r),i=Aa(t.g),o=Aa(t.b),a=wa((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?n=e=a:(n=wa((.4360747*r+.3850649*i+.1430804*o)/da),e=wa((.0139322*r+.0971045*i+.7141733*o)/pa)),new xa(116*a-16,500*(n-a),200*(a-e),t.opacity)}function ba(t,n){return new xa(t,0,0,null==n?1:n)}function _a(t,n,e,r){return 1===arguments.length?ma(t):new xa(t,n,e,null==r?1:r)}function xa(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function wa(t){return t>.008856451679035631?Math.pow(t,1/3):t/va+ga}function Ma(t){return t>ya?t*t*t:va*(t-ga)}function Ta(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Aa(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Sa(t){if(t instanceof Na)return new Na(t.h,t.c,t.l,t.opacity);if(t instanceof xa||(t=ma(t)),0===t.a&&0===t.b)return new Na(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*ha;return new Na(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ea(t,n,e,r){return 1===arguments.length?Sa(t):new Na(e,n,t,null==r?1:r)}function ka(t,n,e,r){return 1===arguments.length?Sa(t):new Na(t,n,e,null==r?1:r)}function Na(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Ca(t){if(isNaN(t.h))return new xa(t.l,0,0,t.opacity);var n=t.h*la;return new xa(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}je(xa,_a,Le(Oe,{brighter:function(t){return new xa(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new xa(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new rr(Ta(3.1338561*(n=da*Ma(n))-1.6168667*(t=1*Ma(t))-.4906146*(e=pa*Ma(e))),Ta(-.9787684*n+1.9161415*t+.033454*e),Ta(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),je(Na,ka,Le(Oe,{brighter:function(t){return new Na(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Na(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ca(this).rgb()}}));var Da=-.14861,Pa=1.78277,qa=-.29227,ja=-.90649,La=1.97294,Oa=La*ja,Ra=La*Pa,za=Pa*qa-ja*Da;function Ia(t){if(t instanceof Fa)return new Fa(t.h,t.s,t.l,t.opacity);t instanceof rr||(t=nr(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(za*r+Oa*n-Ra*e)/(za+Oa-Ra),o=r-i,a=(La*(e-i)-qa*o)/ja,u=Math.sqrt(a*a+o*o)/(La*i*(1-i)),c=u?Math.atan2(a,o)*ha-120:NaN;return new Fa(c<0?c+360:c,u,i,t.opacity)}function Ha(t,n,e,r){return 1===arguments.length?Ia(t):new Fa(t,n,e,null==r?1:r)}function Fa(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}je(Fa,Ha,Le(Oe,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new Fa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Re:Math.pow(Re,t),new Fa(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*la,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new rr(255*(n+e*(Da*r+Pa*i)),255*(n+e*(qa*r+ja*i)),255*(n+e*(La*r)),this.opacity)}}));var Ba=Array.prototype.slice;function Ua(t,n){return t-n}const Ya=t=>()=>t;function Wa(t,n){for(var e,r=-1,i=n.length;++r<i;)if(e=$a(t,n[r]))return e;return 0}function $a(t,n){for(var e=n[0],r=n[1],i=-1,o=0,a=t.length,u=a-1;o<a;u=o++){var c=t[o],s=c[0],f=c[1],l=t[u],h=l[0],d=l[1];if(Xa(c,l,n))return 0;f>r!=d>r&&e<(h-s)*(r-f)/(d-f)+s&&(i=-i)}return i}function Xa(t,n,e){var r,i,o,a;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],o=e[r],a=n[r],i<=o&&o<=a||a<=o&&o<=i)}function Va(){}var Ga=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Za(){var t=1,n=1,e=rt,r=u;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(Ua);else{const e=_(t),r=nt(e[0],e[1],n);n=J(Math.floor(e[0]/r)*r,Math.floor(e[1]/r-1)*r,n)}return n.map((n=>o(t,n)))}function o(e,i){var o=[],u=[];return function(e,r,i){var o,u,c,s,f,l,h=new Array,d=new Array;for(o=u=-1,s=e[0]>=r,Ga[s<<1].forEach(p);++o<t-1;)c=s,s=e[o+1]>=r,Ga[c|s<<1].forEach(p);for(Ga[s<<0].forEach(p);++u<n-1;){for(o=-1,s=e[u*t+t]>=r,f=e[u*t]>=r,Ga[s<<1|f<<2].forEach(p);++o<t-1;)c=s,s=e[u*t+t+o+1]>=r,l=f,f=e[u*t+o+1]>=r,Ga[c|s<<1|f<<2|l<<3].forEach(p);Ga[s|f<<3].forEach(p)}for(o=-1,f=e[u*t]>=r,Ga[f<<2].forEach(p);++o<t-1;)l=f,f=e[u*t+o+1]>=r,Ga[f<<2|l<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+o,t[0][1]+u],c=[t[1][0]+o,t[1][1]+u],s=a(r),f=a(c);(n=d[s])?(e=h[f])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(c),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(c),d[n.end=f]=n):(n=h[f])?(e=d[s])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(c),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=s]=n):h[s]=d[f]={start:s,end:f,ring:[r,c]}}Ga[f<<3].forEach(p)}(e,i,(function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r}(t)>0?o.push([t]):u.push(t)})),u.forEach((function(t){for(var n,e=0,r=o.length;e<r;++e)if(-1!==Wa((n=o[e])[0],t))return void n.push(t)})),{type:"MultiPolygon",value:i,coordinates:o}}function a(n){return 2*n[0]+n[1]*(t+1)*4}function u(e,r,i){e.forEach((function(e){var o,a=e[0],u=e[1],c=0|a,s=0|u,f=r[s*t+c];a>0&&a<t&&c===a&&(o=r[s*t+c-1],e[0]=a+(i-o)/(f-o)-.5),u>0&&u<n&&s===u&&(o=r[(s-1)*t+c],e[1]=u+(i-o)/(f-o)-.5)}))}return i.contour=o,i.size=function(e){if(!arguments.length)return[t,n];var r=Math.floor(e[0]),o=Math.floor(e[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return t=r,n=o,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Ya(Ba.call(t)):Ya(t),i):e},i.smooth=function(t){return arguments.length?(r=t?u:Va,i):r===u},i}function Qa(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a<i;++a)for(var u=0,c=0;u<r+e;++u)u<r&&(c+=t.data[u+a*r]),u>=e&&(u>=o&&(c-=t.data[u-o+a*r]),n.data[u-e+a*r]=c/Math.min(u+1,r-1+o-u,o))}function Ka(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a<r;++a)for(var u=0,c=0;u<i+e;++u)u<i&&(c+=t.data[a+u*r]),u>=e&&(u>=o&&(c-=t.data[a+(u-o)*r]),n.data[a+(u-e)*r]=c/Math.min(u+1,i-1+o-u,o))}function Ja(t){return t[0]}function tu(t){return t[1]}function nu(){return 1}function eu(){var t=Ja,n=tu,e=nu,r=960,i=500,o=20,a=2,u=3*o,c=r+2*u>>a,s=i+2*u>>a,f=Ya(20);function l(r){var i=new Float32Array(c*s),l=new Float32Array(c*s),d=Math.pow(2,-a);r.forEach((function(r,o,a){var f=(t(r,o,a)+u)*d,l=(n(r,o,a)+u)*d,h=+e(r,o,a);if(f>=0&&f<c&&l>=0&&l<s){var p=Math.floor(f),g=Math.floor(l),y=f-p-.5,v=l-g-.5;i[p+g*c]+=(1-y)*(1-v)*h,i[p+1+g*c]+=y*(1-v)*h,i[p+1+(g+1)*c]+=y*v*h,i[p+(g+1)*c]+=(1-y)*v*h}})),Qa({width:c,height:s,data:i},{width:c,height:s,data:l},o>>a),Ka({width:c,height:s,data:l},{width:c,height:s,data:i},o>>a),Qa({width:c,height:s,data:i},{width:c,height:s,data:l},o>>a),Ka({width:c,height:s,data:l},{width:c,height:s,data:i},o>>a),Qa({width:c,height:s,data:i},{width:c,height:s,data:l},o>>a),Ka({width:c,height:s,data:l},{width:c,height:s,data:i},o>>a);var p=f(i);if(!Array.isArray(p)){var g=ot(i);p=nt(0,g,p),(p=xt(0,Math.floor(g/p)*p,p)).shift()}return Za().thresholds(p).size([c,s])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*a),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,a)-u,t[1]=t[1]*Math.pow(2,a)-u}function y(){return c=r+2*(u=3*o)>>a,s=i+2*u>>a,l}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:Ya(+n),l):t},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Ya(+t),l):n},l.weight=function(t){return arguments.length?(e="function"==typeof t?t:Ya(+t),l):e},l.size=function(t){if(!arguments.length)return[r,i];var n=+t[0],e=+t[1];if(!(n>=0&&e>=0))throw new Error("invalid size");return r=n,i=e,y()},l.cellSize=function(t){if(!arguments.length)return 1<<a;if(!((t=+t)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),y()},l.thresholds=function(t){return arguments.length?(f="function"==typeof t?t:Array.isArray(t)?Ya(Ba.call(t)):Ya(t),l):f},l.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*t*t+1)-1)/2),y()},l}const ru=134217729;function iu(t,n,e,r,i){let o,a,u,c,s=n[0],f=r[0],l=0,h=0;f>s==f>-s?(o=s,s=n[++l]):(o=f,f=r[++h]);let d=0;if(l<t&&h<e)for(f>s==f>-s?(a=s+o,u=o-(a-s),s=n[++l]):(a=f+o,u=o-(a-f),f=r[++h]),o=a,0!==u&&(i[d++]=u);l<t&&h<e;)f>s==f>-s?(a=o+s,c=a-o,u=o-(a-c)+(s-c),s=n[++l]):(a=o+f,c=a-o,u=o-(a-c)+(f-c),f=r[++h]),o=a,0!==u&&(i[d++]=u);for(;l<t;)a=o+s,c=a-o,u=o-(a-c)+(s-c),s=n[++l],o=a,0!==u&&(i[d++]=u);for(;h<e;)a=o+f,c=a-o,u=o-(a-c)+(f-c),f=r[++h],o=a,0!==u&&(i[d++]=u);return 0===o&&0!==d||(i[d++]=o),d}function ou(t){return new Float64Array(t)}const au=ou(4),uu=ou(8),cu=ou(12),su=ou(16),fu=ou(4);function lu(t,n,e,r,i,o){const a=(n-o)*(e-i),u=(t-i)*(r-o),c=a-u;if(0===a||0===u||a>0!=u>0)return c;const s=Math.abs(a+u);return Math.abs(c)>=33306690738754716e-32*s?c:-function(t,n,e,r,i,o,a){let u,c,s,f,l,h,d,p,g,y,v,m,b,_,x,w,M,T;const A=t-i,S=e-i,E=n-o,k=r-o;_=A*k,h=ru*A,d=h-(h-A),p=A-d,h=ru*k,g=h-(h-k),y=k-g,x=p*y-(_-d*g-p*g-d*y),w=E*S,h=ru*E,d=h-(h-E),p=E-d,h=ru*S,g=h-(h-S),y=S-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,au[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,au[1]=b-(v+l)+(l-w),T=m+v,l=T-m,au[2]=m-(T-l)+(v-l),au[3]=T;let N=function(t,n){let e=n[0];for(let t=1;t<4;t++)e+=n[t];return e}(0,au),C=22204460492503146e-32*a;if(N>=C||-N>=C)return N;if(l=t-A,u=t-(A+l)+(l-i),l=e-S,s=e-(S+l)+(l-i),l=n-E,c=n-(E+l)+(l-o),l=r-k,f=r-(k+l)+(l-o),0===u&&0===c&&0===s&&0===f)return N;if(C=11093356479670487e-47*a+33306690738754706e-32*Math.abs(N),N+=A*f+k*u-(E*s+S*c),N>=C||-N>=C)return N;_=u*k,h=ru*u,d=h-(h-u),p=u-d,h=ru*k,g=h-(h-k),y=k-g,x=p*y-(_-d*g-p*g-d*y),w=c*S,h=ru*c,d=h-(h-c),p=c-d,h=ru*S,g=h-(h-S),y=S-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,fu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,fu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,fu[2]=m-(T-l)+(v-l),fu[3]=T;const D=iu(4,au,4,fu,uu);_=A*f,h=ru*A,d=h-(h-A),p=A-d,h=ru*f,g=h-(h-f),y=f-g,x=p*y-(_-d*g-p*g-d*y),w=E*s,h=ru*E,d=h-(h-E),p=E-d,h=ru*s,g=h-(h-s),y=s-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,fu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,fu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,fu[2]=m-(T-l)+(v-l),fu[3]=T;const P=iu(D,uu,4,fu,cu);_=u*f,h=ru*u,d=h-(h-u),p=u-d,h=ru*f,g=h-(h-f),y=f-g,x=p*y-(_-d*g-p*g-d*y),w=c*s,h=ru*c,d=h-(h-c),p=c-d,h=ru*s,g=h-(h-s),y=s-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,fu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,fu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,fu[2]=m-(T-l)+(v-l),fu[3]=T;const q=iu(P,cu,4,fu,su);return su[q-1]}(t,n,e,r,i,o,s)}ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(8),ou(8),ou(8),ou(4),ou(8),ou(8),ou(8),ou(12),ou(192),ou(192),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(4),ou(4),ou(4),ou(8),ou(16),ou(16),ou(16),ou(32),ou(32),ou(48),ou(64),ou(1152),ou(1152),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(1152),ou(1152),ou(1152),ou(1152),ou(1152),ou(2304),ou(2304),ou(3456),ou(5760),ou(8),ou(8),ou(8),ou(16),ou(24),ou(48),ou(48),ou(96),ou(192),ou(384),ou(384),ou(384),ou(768),ou(96),ou(96),ou(96),ou(1152);const hu=Math.pow(2,-52),du=new Uint32Array(512);class pu{static from(t,n=_u,e=xu){const r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=t[o];i[2*o]=n(r),i[2*o+1]=e(r)}return new pu(i)}constructor(t){const n=t.length>>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const e=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:e,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let a=1/0,u=1/0,c=-1/0,s=-1/0;for(let n=0;n<o;n++){const e=t[2*n],r=t[2*n+1];e<a&&(a=e),r<u&&(u=r),e>c&&(c=e),r>s&&(s=r),this._ids[n]=n}const f=(a+c)/2,l=(u+s)/2;let h,d,p,g=1/0;for(let n=0;n<o;n++){const e=gu(f,l,t[2*n],t[2*n+1]);e<g&&(h=n,g=e)}const y=t[2*h],v=t[2*h+1];g=1/0;for(let n=0;n<o;n++){if(n===h)continue;const e=gu(y,v,t[2*n],t[2*n+1]);e<g&&e>0&&(d=n,g=e)}let m=t[2*d],b=t[2*d+1],_=1/0;for(let n=0;n<o;n++){if(n===h||n===d)continue;const e=vu(y,v,m,b,t[2*n],t[2*n+1]);e<_&&(p=n,_=e)}let x=t[2*p],w=t[2*p+1];if(_===1/0){for(let n=0;n<o;n++)this._dists[n]=t[2*n]-t[0]||t[2*n+1]-t[1];mu(this._ids,this._dists,0,o-1);const n=new Uint32Array(o);let e=0;for(let t=0,r=-1/0;t<o;t++){const i=this._ids[t];this._dists[i]>r&&(n[e++]=i,r=this._dists[i])}return this.hull=n.subarray(0,e),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(lu(y,v,m,b,x,w)<0){const t=d,n=m,e=b;d=p,m=x,b=w,p=t,x=n,w=e}const M=function(t,n,e,r,i,o){const a=e-t,u=r-n,c=i-t,s=o-n,f=a*a+u*u,l=c*c+s*s,h=.5/(a*s-u*c);return{x:t+(s*f-u*l)*h,y:n+(a*l-c*f)*h}}(y,v,m,b,x,w);this._cx=M.x,this._cy=M.y;for(let n=0;n<o;n++)this._dists[n]=gu(t[2*n],t[2*n+1],M.x,M.y);mu(this._ids,this._dists,0,o-1),this._hullStart=h;let T=3;e[h]=n[p]=d,e[d]=n[h]=p,e[p]=n[d]=h,r[h]=0,r[d]=1,r[p]=2,i.fill(-1),i[this._hashKey(y,v)]=h,i[this._hashKey(m,b)]=d,i[this._hashKey(x,w)]=p,this.trianglesLen=0,this._addTriangle(h,d,p,-1,-1,-1);for(let o,a,u=0;u<this._ids.length;u++){const c=this._ids[u],s=t[2*c],f=t[2*c+1];if(u>0&&Math.abs(s-o)<=hu&&Math.abs(f-a)<=hu)continue;if(o=s,a=f,c===h||c===d||c===p)continue;let l=0;for(let t=0,n=this._hashKey(s,f);t<this._hashSize&&(l=i[(n+t)%this._hashSize],-1===l||l===e[l]);t++);l=n[l];let g,y=l;for(;g=e[y],lu(s,f,t[2*y],t[2*y+1],t[2*g],t[2*g+1])>=0;)if(y=g,y===l){y=-1;break}if(-1===y)continue;let v=this._addTriangle(y,c,e[y],-1,-1,r[y]);r[c]=this._legalize(v+2),r[y]=v,T++;let m=e[y];for(;g=e[m],lu(s,f,t[2*m],t[2*m+1],t[2*g],t[2*g+1])<0;)v=this._addTriangle(m,c,g,r[c],-1,r[m]),r[c]=this._legalize(v+2),e[m]=m,T--,m=g;if(y===l)for(;g=n[y],lu(s,f,t[2*g],t[2*g+1],t[2*y],t[2*y+1])<0;)v=this._addTriangle(g,c,y,-1,r[y],r[g]),this._legalize(v+2),r[g]=v,e[y]=y,T--,y=g;this._hullStart=n[c]=y,e[y]=n[m]=c,e[c]=m,i[this._hashKey(s,f)]=c,i[this._hashKey(t[2*y],t[2*y+1])]=y}this.hull=new Uint32Array(T);for(let t=0,n=this._hullStart;t<T;t++)this.hull[t]=n,n=e[n];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(function(t,n){const e=t/(Math.abs(t)+Math.abs(n));return(n>0?3-e:1+e)/4}(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:e,coords:r}=this;let i=0,o=0;for(;;){const a=e[t],u=t-t%3;if(o=u+(t+2)%3,-1===a){if(0===i)break;t=du[--i];continue}const c=a-a%3,s=u+(t+1)%3,f=c+(a+2)%3,l=n[o],h=n[t],d=n[s],p=n[f];if(yu(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){n[t]=p,n[a]=l;const r=e[f];if(-1===r){let n=this._hullStart;do{if(this._hullTri[n]===f){this._hullTri[n]=t;break}n=this._hullPrev[n]}while(n!==this._hullStart)}this._link(t,r),this._link(a,e[o]),this._link(o,f);const u=c+(a+1)%3;i<du.length&&(du[i++]=u)}else{if(0===i)break;t=du[--i]}}return o}_link(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)}_addTriangle(t,n,e,r,i,o){const a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=n,this._triangles[a+2]=e,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function gu(t,n,e,r){const i=t-e,o=n-r;return i*i+o*o}function yu(t,n,e,r,i,o,a,u){const c=t-a,s=n-u,f=e-a,l=r-u,h=i-a,d=o-u,p=f*f+l*l,g=h*h+d*d;return c*(l*g-p*d)-s*(f*g-p*h)+(c*c+s*s)*(f*d-l*h)<0}function vu(t,n,e,r,i,o){const a=e-t,u=r-n,c=i-t,s=o-n,f=a*a+u*u,l=c*c+s*s,h=.5/(a*s-u*c),d=(s*f-u*l)*h,p=(a*l-c*f)*h;return d*d+p*p}function mu(t,n,e,r){if(r-e<=20)for(let i=e+1;i<=r;i++){const r=t[i],o=n[r];let a=i-1;for(;a>=e&&n[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=e+1,o=r;bu(t,e+r>>1,i),n[t[e]]>n[t[r]]&&bu(t,e,r),n[t[i]]>n[t[r]]&&bu(t,i,r),n[t[e]]>n[t[i]]&&bu(t,e,i);const a=t[i],u=n[a];for(;;){do{i++}while(n[t[i]]<u);do{o--}while(n[t[o]]>u);if(o<i)break;bu(t,i,o)}t[e+1]=t[o],t[o]=a,r-i+1>=o-e?(mu(t,n,i,r),mu(t,n,e,o-1)):(mu(t,n,e,o-1),mu(t,n,i,r))}}function bu(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function _u(t){return t[0]}function xu(t){return t[1]}const wu=1e-6;class Mu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,e){const r=(t=+t)+(e=+e),i=n=+n;if(e<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>wu||Math.abs(this._y1-i)>wu)&&(this._+="L"+r+","+i),e&&(this._+=`A${e},${e},0,1,1,${t-e},${n}A${e},${e},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,n,e,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+e}v${+r}h${-e}Z`}value(){return this._||null}}class Tu{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Au{constructor(t,[n,e,r,i]=[0,0,960,500]){if(!((r=+r)>=(n=+n)&&(i=+i)>=(e=+e)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=n,this.ymax=i,this.ymin=e,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:e},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,e.length/3*2);for(let n,r,o=0,a=0,u=e.length;o<u;o+=3,a+=2){const u=2*e[o],c=2*e[o+1],s=2*e[o+2],f=t[u],l=t[u+1],h=t[c],d=t[c+1],p=t[s],g=t[s+1],y=h-f,v=d-l,m=p-f,b=g-l,_=2*(y*b-v*m);if(Math.abs(_)<1e-9){let i=1e9;const o=2*e[0];i*=Math.sign((t[o]-f)*b-(t[o+1]-l)*m),n=(f+p)/2-i*b,r=(l+g)/2+i*m}else{const t=1/_,e=y*y+v*v,i=m*m+b*b;n=f+(b*e-v*i)*t,r=l+(y*i-m*e)*t}i[a]=n,i[a+1]=r}let o,a,u,c=n[n.length-1],s=4*c,f=t[2*c],l=t[2*c+1];r.fill(0);for(let e=0;e<n.length;++e)c=n[e],o=s,a=f,u=l,s=4*c,f=t[2*c],l=t[2*c+1],r[o+2]=r[s]=u-l,r[o+3]=r[s+1]=f-a}render(t){const n=null==t?t=new Mu:void 0,{delaunay:{halfedges:e,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(r<n)continue;const i=2*Math.floor(n/3),a=2*Math.floor(r/3),u=o[i],c=o[i+1],s=o[a],f=o[a+1];this._renderSegment(u,c,s,f,t)}let u,c=i[i.length-1];for(let n=0;n<i.length;++n){u=c,c=i[n];const e=2*Math.floor(r[c]/3),s=o[e],f=o[e+1],l=4*u,h=this._project(s,f,a[l+2],a[l+3]);h&&this._renderSegment(s,f,h[0],h[1],t)}return n&&n.value()}renderBounds(t){const n=null==t?t=new Mu:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const e=null==n?n=new Mu:void 0,r=this._clip(t);if(null===r||!r.length)return;n.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let t=2;t<i;t+=2)r[t]===r[t-2]&&r[t+1]===r[t-1]||n.lineTo(r[t],r[t+1]);return n.closePath(),e&&e.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,e=t.length/2;n<e;++n){const t=this.cellPolygon(n);t&&(t.index=n,yield t)}}cellPolygon(t){const n=new Tu;return this.renderCell(t,n),n.value()}_renderSegment(t,n,e,r,i){let o;const a=this._regioncode(t,n),u=this._regioncode(e,r);0===a&&0===u?(i.moveTo(t,n),i.lineTo(e,r)):(o=this._clipSegment(t,n,e,r,a,u))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,n,e){return(n=+n)==n&&(e=+e)==e&&this.delaunay._step(t,n,e)===t}*neighbors(t){const n=this._clip(t);if(n)for(const e of this.delaunay.neighbors(t)){const t=this._clip(e);if(t)t:for(let r=0,i=n.length;r<i;r+=2)for(let o=0,a=t.length;o<a;o+=2)if(n[r]==t[o]&&n[r+1]==t[o+1]&&n[(r+2)%i]==t[(o+a-2)%a]&&n[(r+3)%i]==t[(o+a-1)%a]){yield e;break t}}}_cell(t){const{circumcenters:n,delaunay:{inedges:e,halfedges:r,triangles:i}}=this,o=e[t];if(-1===o)return null;const a=[];let u=o;do{const e=Math.floor(u/3);if(a.push(n[2*e],n[2*e+1]),u=u%3==2?u-2:u+1,i[u]!==t)break;u=r[u]}while(u!==o&&-1!==u);return a}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(null===n)return null;const{vectors:e}=this,r=4*t;return e[r]||e[r+1]?this._clipInfinite(t,n,e[r],e[r+1],e[r+2],e[r+3]):this._clipFinite(t,n)}_clipFinite(t,n){const e=n.length;let r,i,o,a,u=null,c=n[e-2],s=n[e-1],f=this._regioncode(c,s),l=0;for(let h=0;h<e;h+=2)if(r=c,i=s,c=n[h],s=n[h+1],o=f,f=this._regioncode(c,s),0===o&&0===f)a=l,l=0,u?u.push(c,s):u=[c,s];else{let n,e,h,d,p;if(0===o){if(null===(n=this._clipSegment(r,i,c,s,o,f)))continue;[e,h,d,p]=n}else{if(null===(n=this._clipSegment(c,s,r,i,f,o)))continue;[d,p,e,h]=n,a=l,l=this._edgecode(e,h),a&&l&&this._edge(t,a,l,u,u.length),u?u.push(e,h):u=[e,h]}a=l,l=this._edgecode(d,p),a&&l&&this._edge(t,a,l,u,u.length),u?u.push(d,p):u=[d,p]}if(u)a=l,l=this._edgecode(u[0],u[1]),a&&l&&this._edge(t,a,l,u,u.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return u}_clipSegment(t,n,e,r,i,o){for(;;){if(0===i&&0===o)return[t,n,e,r];if(i&o)return null;let a,u,c=i||o;8&c?(a=t+(e-t)*(this.ymax-n)/(r-n),u=this.ymax):4&c?(a=t+(e-t)*(this.ymin-n)/(r-n),u=this.ymin):2&c?(u=n+(r-n)*(this.xmax-t)/(e-t),a=this.xmax):(u=n+(r-n)*(this.xmin-t)/(e-t),a=this.xmin),i?(t=a,n=u,i=this._regioncode(t,n)):(e=a,r=u,o=this._regioncode(e,r))}}_clipInfinite(t,n,e,r,i,o){let a,u=Array.from(n);if((a=this._project(u[0],u[1],e,r))&&u.unshift(a[0],a[1]),(a=this._project(u[u.length-2],u[u.length-1],i,o))&&u.push(a[0],a[1]),u=this._clipFinite(t,u))for(let n,e=0,r=u.length,i=this._edgecode(u[r-2],u[r-1]);e<r;e+=2)n=i,i=this._edgecode(u[e],u[e+1]),n&&i&&(e=this._edge(t,n,i,u,e),r=u.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(u=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return u}_edge(t,n,e,r,i){for(;n!==e;){let e,o;switch(n){case 5:n=4;continue;case 4:n=6,e=this.xmax,o=this.ymin;break;case 6:n=2;continue;case 2:n=10,e=this.xmax,o=this.ymax;break;case 10:n=8;continue;case 8:n=9,e=this.xmin,o=this.ymax;break;case 9:n=1;continue;case 1:n=5,e=this.xmin,o=this.ymin}r[i]===e&&r[i+1]===o||!this.contains(t,e,o)||(r.splice(i,0,e,o),i+=2)}if(r.length>4)for(let t=0;t<r.length;t+=2){const n=(t+2)%r.length,e=(t+4)%r.length;(r[t]===r[n]&&r[n]===r[e]||r[t+1]===r[n+1]&&r[n+1]===r[e+1])&&(r.splice(n,2),t-=2)}return i}_project(t,n,e,r){let i,o,a,u=1/0;if(r<0){if(n<=this.ymin)return null;(i=(this.ymin-n)/r)<u&&(a=this.ymin,o=t+(u=i)*e)}else if(r>0){if(n>=this.ymax)return null;(i=(this.ymax-n)/r)<u&&(a=this.ymax,o=t+(u=i)*e)}if(e>0){if(t>=this.xmax)return null;(i=(this.xmax-t)/e)<u&&(o=this.xmax,a=n+(u=i)*r)}else if(e<0){if(t<=this.xmin)return null;(i=(this.xmin-t)/e)<u&&(o=this.xmin,a=n+(u=i)*r)}return[o,a]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}}const Su=2*Math.PI,Eu=Math.pow;function ku(t){return t[0]}function Nu(t){return t[1]}function Cu(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}class Du{static from(t,n=ku,e=Nu,r){return new Du("length"in t?function(t,n,e,r){const i=t.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=t[a];o[2*a]=n.call(r,i,a,t),o[2*a+1]=e.call(r,i,a,t)}return o}(t,n,e,r):Float64Array.from(function*(t,n,e,r){let i=0;for(const o of t)yield n.call(r,o,i,t),yield e.call(r,o,i,t),++i}(t,n,e,r)))}constructor(t){this._delaunator=new pu(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:n,coords:e}=t;for(let t=0;t<n.length;t+=3){const r=2*n[t],i=2*n[t+1],o=2*n[t+2];if((e[o]-e[r])*(e[i+1]-e[r+1])-(e[i]-e[r])*(e[o+1]-e[r+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},((t,n)=>n)).sort(((t,e)=>n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]));const t=this.collinear[0],e=this.collinear[this.collinear.length-1],r=[n[2*t],n[2*t+1],n[2*e],n[2*e+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,e=n.length/2;t<e;++t){const e=Cu(n[2*t],n[2*t+1],i);n[2*t]=e[0],n[2*t+1]=e[1]}this._delaunator=new pu(n)}else delete this.collinear;const e=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let t=0,n=e.length;t<n;++t){const n=i[t%3==2?t-2:t+1];-1!==e[t]&&-1!==o[n]||(o[n]=t)}for(let t=0,n=r.length;t<n;++t)a[r[t]]=t;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new Au(this,t)}*neighbors(t){const{inedges:n,hull:e,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const n=a.indexOf(t);return n>0&&(yield a[n-1]),void(n<a.length-1&&(yield a[n+1]))}const u=n[t];if(-1===u)return;let c=u,s=-1;do{if(yield s=o[c],c=c%3==2?c-2:c+1,o[c]!==t)return;if(c=i[c],-1===c){const n=e[(r[t]+1)%e.length];return void(n!==s&&(yield n))}}while(c!==u)}find(t,n,e=0){if((t=+t)!=t||(n=+n)!=n)return-1;const r=e;let i;for(;(i=this._step(e,t,n))>=0&&i!==e&&i!==r;)e=i;return i}_step(t,n,e){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:u,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let s=t,f=Eu(n-c[2*t],2)+Eu(e-c[2*t+1],2);const l=r[t];let h=l;do{let r=u[h];const l=Eu(n-c[2*r],2)+Eu(e-c[2*r+1],2);if(l<f&&(f=l,s=r),h=h%3==2?h-2:h+1,u[h]!==t)break;if(h=a[h],-1===h){if(h=i[(o[t]+1)%i.length],h!==r&&Eu(n-c[2*h],2)+Eu(e-c[2*h+1],2)<f)return h;break}}while(h!==l);return s}render(t){const n=null==t?t=new Mu:void 0,{points:e,halfedges:r,triangles:i}=this;for(let n=0,o=r.length;n<o;++n){const o=r[n];if(o<n)continue;const a=2*i[n],u=2*i[o];t.moveTo(e[a],e[a+1]),t.lineTo(e[u],e[u+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){void 0!==n||t&&"function"==typeof t.moveTo||(n=t,t=null),n=null==n?2:+n;const e=null==t?t=new Mu:void 0,{points:r}=this;for(let e=0,i=r.length;e<i;e+=2){const i=r[e],o=r[e+1];t.moveTo(i+n,o),t.arc(i,o,n,0,Su)}return e&&e.value()}renderHull(t){const n=null==t?t=new Mu:void 0,{hull:e,points:r}=this,i=2*e[0],o=e.length;t.moveTo(r[i],r[i+1]);for(let n=1;n<o;++n){const i=2*e[n];t.lineTo(r[i],r[i+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new Tu;return this.renderHull(t),t.value()}renderTriangle(t,n){const e=null==n?n=new Mu:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],a=2*i[t+1],u=2*i[t+2];return n.moveTo(r[o],r[o+1]),n.lineTo(r[a],r[a+1]),n.lineTo(r[u],r[u+1]),n.closePath(),e&&e.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,e=t.length/3;n<e;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new Tu;return this.renderTriangle(t,n),n.value()}}const Pu=t=>()=>t;function qu(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:a,y:u,dx:c,dy:s,dispatch:f}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:f}})}function ju(t){return!t.ctrlKey&&!t.button}function Lu(){return this.parentNode}function Ou(t,n){return null==n?{x:t.x,y:t.y}:n}function Ru(){return navigator.maxTouchPoints||"ontouchstart"in this}function zu(){var t,n,e,r,i=ju,o=Lu,a=Ou,u=Ru,c={},s=ln("start","drag","end"),f=0,l=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",y).on("touchmove.drag",v,ke).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&i.call(this,a,u)){var c=b(this,o.call(this,a,u),a,u,"mouse");c&&(Ee(a.view).on("mousemove.drag",p,Ne).on("mouseup.drag",g,Ne),Pe(a.view),Ce(a),e=!1,t=a.clientX,n=a.clientY,c("start",a))}}function p(r){if(De(r),!e){var i=r.clientX-t,o=r.clientY-n;e=i*i+o*o>l}c.mouse("drag",r)}function g(t){Ee(t.view).on("mousemove.drag mouseup.drag",null),qe(t.view,e),De(t),c.mouse("end",t)}function y(t,n){if(i.call(this,t,n)){var e,r,a=t.changedTouches,u=o.call(this,t,n),c=a.length;for(e=0;e<c;++e)(r=b(this,u,t,n,a[e].identifier,a[e]))&&(Ce(t),r("start",t,a[e]))}}function v(t){var n,e,r=t.changedTouches,i=r.length;for(n=0;n<i;++n)(e=c[r[n].identifier])&&(De(t),e("drag",t,r[n]))}function m(t){var n,e,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),n=0;n<o;++n)(e=c[i[n].identifier])&&(Ce(t),e("end",t,i[n]))}function b(t,n,e,r,i,o){var u,l,d,p=s.copy(),g=Lr(o||e,n);if(null!=(d=a.call(t,new qu("beforestart",{sourceEvent:e,target:h,identifier:i,active:f,x:g[0],y:g[1],dx:0,dy:0,dispatch:p}),r)))return u=d.x-g[0]||0,l=d.y-g[1]||0,function e(o,a,s){var y,v=g;switch(o){case"start":c[i]=e,y=f++;break;case"end":delete c[i],--f;case"drag":g=Lr(s||a,n),y=f}p.call(o,t,new qu(o,{sourceEvent:a,subject:d,target:h,identifier:i,active:y,x:g[0]+u,y:g[1]+l,dx:g[0]-v[0],dy:g[1]-v[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:Pu(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:Pu(t),h):o},h.subject=function(t){return arguments.length?(a="function"==typeof t?t:Pu(t),h):a},h.touchable=function(t){return arguments.length?(u="function"==typeof t?t:Pu(!!t),h):u},h.on=function(){var t=s.on.apply(s,arguments);return t===s?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h}qu.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Iu={},Hu={};function Fu(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function Bu(t){var n=Object.create(null),e=[];return t.forEach((function(t){for(var r in t)r in n||e.push(n[r]=r)})),e}function Uu(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function Yu(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,a=0,u=0,c=o<=0,s=!1;function f(){if(c)return Hu;if(s)return s=!1,Iu;var n,r,i=a;if(34===t.charCodeAt(i)){for(;a++<o&&34!==t.charCodeAt(a)||34===t.charCodeAt(++a););return(n=a)>=o?c=!0:10===(r=t.charCodeAt(a++))?s=!0:13===r&&(s=!0,10===t.charCodeAt(a)&&++a),t.slice(i+1,n-1).replace(/""/g,'"')}for(;a<o;){if(10===(r=t.charCodeAt(n=a++)))s=!0;else if(13===r)s=!0,10===t.charCodeAt(a)&&++a;else if(r!==e)continue;return t.slice(i,n)}return c=!0,t.slice(i,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(r=f())!==Hu;){for(var l=[];r!==Iu&&r!==Hu;)l.push(r),r=f();n&&null==(l=n(l,u++))||i.push(l)}return i}function i(n,e){return n.map((function(n){return e.map((function(t){return a(n[t])})).join(t)}))}function o(n){return n.map(a).join(t)}function a(t){return null==t?"":t instanceof Date?function(t){var n=t.getUTCHours(),e=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+Uu(-t,6):t>9999?"+"+Uu(t,6):Uu(t,4)}(t.getUTCFullYear())+"-"+Uu(t.getUTCMonth()+1,2)+"-"+Uu(t.getUTCDate(),2)+(i?"T"+Uu(n,2)+":"+Uu(e,2)+":"+Uu(r,2)+"."+Uu(i,3)+"Z":r?"T"+Uu(n,2)+":"+Uu(e,2)+":"+Uu(r,2)+"Z":e||n?"T"+Uu(n,2)+":"+Uu(e,2)+"Z":"")}(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,o=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=Fu(t);return function(r,i){return n(e(r),i,t)}}(t,n):Fu(t)}));return o.columns=i||[],o},parseRows:r,format:function(n,e){return null==e&&(e=Bu(n)),[e.map(a).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=Bu(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}}var Wu=Yu(","),$u=Wu.parse,Xu=Wu.parseRows,Vu=Wu.format,Gu=Wu.formatBody,Zu=Wu.formatRows,Qu=Wu.formatRow,Ku=Wu.formatValue,Ju=Yu("\t"),tc=Ju.parse,nc=Ju.parseRows,ec=Ju.format,rc=Ju.formatBody,ic=Ju.formatRows,oc=Ju.formatRow,ac=Ju.formatValue;function uc(t){for(var n in t){var e,r,i=t[n].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(e=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;cc&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=e;else i=null;t[n]=i}return t}const cc=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),sc=t=>+t;function fc(t){return t*t}function lc(t){return t*(2-t)}function hc(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var dc=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),pc=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),gc=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),yc=Math.PI,vc=yc/2;function mc(t){return 1==+t?1:1-Math.cos(t*vc)}function bc(t){return Math.sin(t*vc)}function _c(t){return(1-Math.cos(yc*t))/2}function xc(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function wc(t){return xc(1-+t)}function Mc(t){return 1-xc(t)}function Tc(t){return((t*=2)<=1?xc(1-t):2-xc(t-1))/2}function Ac(t){return 1-Math.sqrt(1-t*t)}function Sc(t){return Math.sqrt(1- --t*t)}function Ec(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var kc=7.5625;function Nc(t){return 1-Cc(1-t)}function Cc(t){return(t=+t)<.36363636363636365?kc*t*t:t<.7272727272727273?kc*(t-=.5454545454545454)*t+.75:t<.9090909090909091?kc*(t-=.8181818181818182)*t+.9375:kc*(t-=.9545454545454546)*t+.984375}function Dc(t){return((t*=2)<=1?1-Cc(1-t):Cc(t-1)+1)/2}var Pc=1.70158,qc=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(Pc),jc=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(Pc),Lc=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(Pc),Oc=2*Math.PI,Rc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Oc);function i(t){return n*xc(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Oc)},i.period=function(e){return t(n,e)},i}(1,.3),zc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Oc);function i(t){return 1-n*xc(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Oc)},i.period=function(e){return t(n,e)},i}(1,.3),Ic=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Oc);function i(t){return((t=2*t-1)<0?n*xc(-t)*Math.sin((r-t)/e):2-n*xc(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Oc)},i.period=function(e){return t(n,e)},i}(1,.3);function Hc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function Fc(t,n){return fetch(t,n).then(Hc)}function Bc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function Uc(t,n){return fetch(t,n).then(Bc)}function Yc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Wc(t,n){return fetch(t,n).then(Yc)}function $c(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),Wc(n,e).then((function(n){return t(n,r)}))}}function Xc(t,n,e,r){3===arguments.length&&"function"==typeof e&&(r=e,e=void 0);var i=Yu(t);return Wc(n,e).then((function(t){return i.parse(t,r)}))}var Vc=$c($u),Gc=$c(tc);function Zc(t,n){return new Promise((function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t}))}function Qc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Kc(t,n){return fetch(t,n).then(Qc)}function Jc(t){return(n,e)=>Wc(n,e).then((n=>(new DOMParser).parseFromString(n,t)))}const ts=Jc("application/xml");var ns=Jc("text/html"),es=Jc("image/svg+xml");function rs(t,n){var e,r=1;function i(){var i,o,a=e.length,u=0,c=0;for(i=0;i<a;++i)u+=(o=e[i]).x,c+=o.y;for(u=(u/a-t)*r,c=(c/a-n)*r,i=0;i<a;++i)(o=e[i]).x-=u,o.y-=c}return null==t&&(t=0),null==n&&(n=0),i.initialize=function(t){e=t},i.x=function(n){return arguments.length?(t=+n,i):t},i.y=function(t){return arguments.length?(n=+t,i):n},i.strength=function(t){return arguments.length?(r=+t,i):r},i}function is(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,a,u,c,s,f,l,h,d=t._root,p={data:r},g=t._x0,y=t._y0,v=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((s=n>=(o=(g+v)/2))?g=o:v=o,(f=e>=(a=(y+m)/2))?y=a:m=a,i=d,!(d=d[l=f<<1|s]))return i[l]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(s=n>=(o=(g+v)/2))?g=o:v=o,(f=e>=(a=(y+m)/2))?y=a:m=a}while((l=f<<1|s)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[l]=p,t}function os(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function as(t){return t[0]}function us(t){return t[1]}function cs(t,n,e){var r=new ss(null==n?as:n,null==e?us:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function ss(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function fs(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var ls=cs.prototype=ss.prototype;function hs(t){return function(){return t}}function ds(t){return 1e-6*(t()-.5)}function ps(t){return t.x+t.vx}function gs(t){return t.y+t.vy}function ys(t){var n,e,r,i=1,o=1;function a(){for(var t,a,c,s,f,l,h,d=n.length,p=0;p<o;++p)for(a=cs(n,ps,gs).visitAfter(u),t=0;t<d;++t)c=n[t],l=e[c.index],h=l*l,s=c.x+c.vx,f=c.y+c.vy,a.visit(g);function g(t,n,e,o,a){var u=t.data,d=t.r,p=l+d;if(!u)return n>s+p||o<s-p||e>f+p||a<f-p;if(u.index>c.index){var g=s-u.x-u.vx,y=f-u.y-u.vy,v=g*g+y*y;v<p*p&&(0===g&&(v+=(g=ds(r))*g),0===y&&(v+=(y=ds(r))*y),v=(p-(v=Math.sqrt(v)))/v*i,c.vx+=(g*=v)*(p=(d*=d)/(h+d)),c.vy+=(y*=v)*p,u.vx-=g*(p=1-p),u.vy-=y*p)}}}function u(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function c(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r<o;++r)i=n[r],e[i.index]=+t(i,r,n)}}return"function"!=typeof t&&(t=hs(null==t?1:+t)),a.initialize=function(t,e){n=t,r=e,c()},a.iterations=function(t){return arguments.length?(o=+t,a):o},a.strength=function(t){return arguments.length?(i=+t,a):i},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),c(),a):t},a}function vs(t){return t.index}function ms(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}function bs(t){var n,e,r,i,o,a,u=vs,c=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},s=hs(30),f=1;function l(r){for(var i=0,u=t.length;i<f;++i)for(var c,s,l,h,d,p,g,y=0;y<u;++y)s=(c=t[y]).source,h=(l=c.target).x+l.vx-s.x-s.vx||ds(a),d=l.y+l.vy-s.y-s.vy||ds(a),h*=p=((p=Math.sqrt(h*h+d*d))-e[y])/p*r*n[y],d*=p,l.vx-=h*(g=o[y]),l.vy-=d*g,s.vx+=h*(g=1-g),s.vy+=d*g}function h(){if(r){var a,c,s=r.length,f=t.length,l=new Map(r.map(((t,n)=>[u(t,n,r),t])));for(a=0,i=new Array(s);a<f;++a)(c=t[a]).index=a,"object"!=typeof c.source&&(c.source=ms(l,c.source)),"object"!=typeof c.target&&(c.target=ms(l,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(a=0,o=new Array(f);a<f;++a)c=t[a],o[a]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);n=new Array(f),d(),e=new Array(f),p()}}function d(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+c(t[e],e,t)}function p(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+s(t[n],n,t)}return null==t&&(t=[]),l.initialize=function(t,n){r=t,a=n,h()},l.links=function(n){return arguments.length?(t=n,h(),l):t},l.id=function(t){return arguments.length?(u=t,l):u},l.iterations=function(t){return arguments.length?(f=+t,l):f},l.strength=function(t){return arguments.length?(c="function"==typeof t?t:hs(+t),d(),l):c},l.distance=function(t){return arguments.length?(s="function"==typeof t?t:hs(+t),p(),l):s},l}ls.copy=function(){var t,n,e=new ss(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=fs(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=fs(n));return e},ls.add=function(t){const n=+this._x.call(null,t),e=+this._y.call(null,t);return is(this.cover(n,e),n,e,t)},ls.addAll=function(t){var n,e,r,i,o=t.length,a=new Array(o),u=new Array(o),c=1/0,s=1/0,f=-1/0,l=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(a[e]=r,u[e]=i,r<c&&(c=r),r>f&&(f=r),i<s&&(s=i),i>l&&(l=i));if(c>f||s>l)return this;for(this.cover(c,s).cover(f,l),e=0;e<o;++e)is(this,a[e],u[e],t[e]);return this},ls.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{for(var a,u,c=i-e||1,s=this._root;e>t||t>=i||r>n||n>=o;)switch(u=(n<r)<<1|t<e,(a=new Array(4))[u]=s,s=a,c*=2,u){case 0:i=e+c,o=r+c;break;case 1:e=i-c,o=r+c;break;case 2:i=e+c,r=o-c;break;case 3:e=i-c,r=o-c}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},ls.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},ls.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ls.find=function(t,n,e){var r,i,o,a,u,c,s,f=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new os(g,f,l,h,d)),null==e?e=1/0:(f=t-e,l=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)<f||(u=c.y1)<l))if(g.length){var y=(i+a)/2,v=(o+u)/2;p.push(new os(g[3],y,v,a,u),new os(g[2],i,v,y,u),new os(g[1],y,o,a,v),new os(g[0],i,o,y,v)),(s=(n>=v)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var m=t-+this._x.call(null,g.data),b=n-+this._y.call(null,g.data),_=m*m+b*b;if(_<e){var x=Math.sqrt(e=_);f=t-x,l=n-x,h=t+x,d=n+x,r=g.data}}return r},ls.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var n,e,r,i,o,a,u,c,s,f,l,h,d=this._root,p=this._x0,g=this._y0,y=this._x1,v=this._y1;if(!d)return this;if(d.length)for(;;){if((s=o>=(u=(p+y)/2))?p=u:y=u,(f=a>=(c=(g+v)/2))?g=c:v=c,n=d,!(d=d[l=f<<1|s]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},ls.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},ls.root=function(){return this._root},ls.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},ls.visit=function(t){var n,e,r,i,o,a,u=[],c=this._root;for(c&&u.push(new os(c,this._x0,this._y0,this._x1,this._y1));n=u.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,o=n.x1,a=n.y1)&&c.length){var s=(r+o)/2,f=(i+a)/2;(e=c[3])&&u.push(new os(e,s,f,o,a)),(e=c[2])&&u.push(new os(e,r,f,s,a)),(e=c[1])&&u.push(new os(e,s,i,o,f)),(e=c[0])&&u.push(new os(e,r,i,s,f))}return this},ls.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new os(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,a=n.x0,u=n.y0,c=n.x1,s=n.y1,f=(a+c)/2,l=(u+s)/2;(o=i[0])&&e.push(new os(o,a,u,f,l)),(o=i[1])&&e.push(new os(o,f,u,c,l)),(o=i[2])&&e.push(new os(o,a,l,f,s)),(o=i[3])&&e.push(new os(o,f,l,c,s))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},ls.x=function(t){return arguments.length?(this._x=t,this):this._x},ls.y=function(t){return arguments.length?(this._y=t,this):this._y};const _s=4294967296;function xs(t){return t.x}function ws(t){return t.y}var Ms=Math.PI*(3-Math.sqrt(5));function Ts(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=new Map,c=Gr(l),s=ln("tick","end"),f=function(){let t=1;return()=>(t=(1664525*t+1013904223)%_s)/_s}();function l(){h(),s.call("tick",n),e<r&&(c.stop(),s.call("end",n))}function h(r){var c,s,f=t.length;void 0===r&&(r=1);for(var l=0;l<r;++l)for(e+=(o-e)*i,u.forEach((function(t){t(e)})),c=0;c<f;++c)null==(s=t[c]).fx?s.x+=s.vx*=a:(s.x=s.fx,s.vx=0),null==s.fy?s.y+=s.vy*=a:(s.y=s.fy,s.vy=0);return n}function d(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var i=10*Math.sqrt(.5+e),o=e*Ms;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function p(n){return n.initialize&&n.initialize(t,f),n}return null==t&&(t=[]),d(),n={tick:h,restart:function(){return c.restart(l),n},stop:function(){return c.stop(),n},nodes:function(e){return arguments.length?(t=e,d(),u.forEach(p),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(o=+t,n):o},velocityDecay:function(t){return arguments.length?(a=1-t,n):1-a},randomSource:function(t){return arguments.length?(f=t,u.forEach(p),n):f},force:function(t,e){return arguments.length>1?(null==e?u.delete(t):u.set(t,p(e)),n):u.get(t)},find:function(n,e,r){var i,o,a,u,c,s=0,f=t.length;for(null==r?r=1/0:r*=r,s=0;s<f;++s)(a=(i=n-(u=t[s]).x)*i+(o=e-u.y)*o)<r&&(c=u,r=a);return c},on:function(t,e){return arguments.length>1?(s.on(t,e),n):s.on(t)}}}function As(){var t,n,e,r,i,o=hs(-30),a=1,u=1/0,c=.81;function s(e){var i,o=t.length,a=cs(t,xs,ws).visitAfter(l);for(r=e,i=0;i<o;++i)n=t[i],a.visit(h)}function f(){if(t){var n,e,r=t.length;for(i=new Array(r),n=0;n<r;++n)e=t[n],i[e.index]=+o(e,n,t)}}function l(t){var n,e,r,o,a,u=0,c=0;if(t.length){for(r=o=a=0;a<4;++a)(n=t[a])&&(e=Math.abs(n.value))&&(u+=n.value,c+=e,r+=e*n.x,o+=e*n.y);t.x=r/c,t.y=o/c}else{(n=t).x=n.data.x,n.y=n.data.y;do{u+=i[n.data.index]}while(n=n.next)}t.value=u}function h(t,o,s,f){if(!t.value)return!0;var l=t.x-n.x,h=t.y-n.y,d=f-o,p=l*l+h*h;if(d*d/c<p)return p<u&&(0===l&&(p+=(l=ds(e))*l),0===h&&(p+=(h=ds(e))*h),p<a&&(p=Math.sqrt(a*p)),n.vx+=l*t.value*r/p,n.vy+=h*t.value*r/p),!0;if(!(t.length||p>=u)){(t.data!==n||t.next)&&(0===l&&(p+=(l=ds(e))*l),0===h&&(p+=(h=ds(e))*h),p<a&&(p=Math.sqrt(a*p)));do{t.data!==n&&(d=i[t.data.index]*r/p,n.vx+=l*d,n.vy+=h*d)}while(t=t.next)}}return s.initialize=function(n,r){t=n,e=r,f()},s.strength=function(t){return arguments.length?(o="function"==typeof t?t:hs(+t),f(),s):o},s.distanceMin=function(t){return arguments.length?(a=t*t,s):Math.sqrt(a)},s.distanceMax=function(t){return arguments.length?(u=t*t,s):Math.sqrt(u)},s.theta=function(t){return arguments.length?(c=t*t,s):Math.sqrt(c)},s}function Ss(t,n,e){var r,i,o,a=hs(.1);function u(t){for(var a=0,u=r.length;a<u;++a){var c=r[a],s=c.x-n||1e-6,f=c.y-e||1e-6,l=Math.sqrt(s*s+f*f),h=(o[a]-l)*i[a]*t/l;c.vx+=s*h,c.vy+=f*h}}function c(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)o[n]=+t(r[n],n,r),i[n]=isNaN(o[n])?0:+a(r[n],n,r)}}return"function"!=typeof t&&(t=hs(+t)),null==n&&(n=0),null==e&&(e=0),u.initialize=function(t){r=t,c()},u.strength=function(t){return arguments.length?(a="function"==typeof t?t:hs(+t),c(),u):a},u.radius=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),c(),u):t},u.x=function(t){return arguments.length?(n=+t,u):n},u.y=function(t){return arguments.length?(e=+t,u):e},u}function Es(t){var n,e,r,i=hs(.1);function o(t){for(var i,o=0,a=n.length;o<a;++o)(i=n[o]).vx+=(r[o]-i.x)*e[o]*t}function a(){if(n){var o,a=n.length;for(e=new Array(a),r=new Array(a),o=0;o<a;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=hs(null==t?0:+t)),o.initialize=function(t){n=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:hs(+t),a(),o):i},o.x=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),a(),o):t},o}function ks(t){var n,e,r,i=hs(.1);function o(t){for(var i,o=0,a=n.length;o<a;++o)(i=n[o]).vy+=(r[o]-i.y)*e[o]*t}function a(){if(n){var o,a=n.length;for(e=new Array(a),r=new Array(a),o=0;o<a;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=hs(null==t?0:+t)),o.initialize=function(t){n=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:hs(+t),a(),o):i},o.y=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),a(),o):t},o}function Ns(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Cs(t){return(t=Ns(Math.abs(t)))?t[1]:NaN}var Ds,Ps=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qs(t){if(!(n=Ps.exec(t)))throw new Error("invalid format: "+t);var n;return new js({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function js(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ls(t,n){var e=Ns(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}qs.prototype=js.prototype,js.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Os={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ls(100*t,n),r:Ls,s:function(t,n){var e=Ns(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Ds=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ns(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Rs(t){return t}var zs,Is,Hs,Fs=Array.prototype.map,Bs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Us(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Rs:(n=Fs.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Rs:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Fs.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=qs(t)).fill,e=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(g=!0,m="g"):Os[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===h?o:/[%p]/.test(m)?c:"",x=Os[m],w=/[defgprs%]/.test(m);function M(t){var i,o,c,h=b,M=_;if("c"===m)M=x(t)+M,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?f:x(Math.abs(t),y),v&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),T&&0==+t&&"+"!==l&&(T=!1),h=(T?"("===l?l:s:"-"===l||"("===l?"":l)+h,M=("s"===m?Bs[8+Ds/3]:"")+M+(T&&"("===l?")":""),w)for(i=-1,o=t.length;++i<o;)if(48>(c=t.charCodeAt(i))||c>57){M=(46===c?a+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var A=h.length+t.length+M.length,S=A<p?new Array(p-A+1).join(n):"";switch(g&&d&&(t=r(S+t,S.length?p-M.length:1/0),S=""),e){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,A=S.length>>1)+h+t+M+S.slice(A);break;default:t=S+h+t+M}return u(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=qs(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Cs(n)/3))),i=Math.pow(10,-r),o=Bs[8+r/3];return function(t){return e(i*t)+o}}}}function Ys(t){return zs=Us(t),Is=zs.format,Hs=zs.formatPrefix,zs}function Ws(t){return Math.max(0,-Cs(Math.abs(t)))}function $s(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Cs(n)/3)))-Cs(Math.abs(t)))}function Xs(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Cs(n)-Cs(t))+1}Ys({thousands:",",grouping:[3],currency:["$",""]});var Vs=1e-6,Gs=1e-12,Zs=Math.PI,Qs=Zs/2,Ks=Zs/4,Js=2*Zs,tf=180/Zs,nf=Zs/180,ef=Math.abs,rf=Math.atan,of=Math.atan2,af=Math.cos,uf=Math.ceil,cf=Math.exp,sf=(Math.floor,Math.hypot),ff=Math.log,lf=Math.pow,hf=Math.sin,df=Math.sign||function(t){return t>0?1:t<0?-1:0},pf=Math.sqrt,gf=Math.tan;function yf(t){return t>1?0:t<-1?Zs:Math.acos(t)}function vf(t){return t>1?Qs:t<-1?-Qs:Math.asin(t)}function mf(t){return(t=hf(t/2))*t}function bf(){}function _f(t,n){t&&wf.hasOwnProperty(t.type)&&wf[t.type](t,n)}var xf={Feature:function(t,n){_f(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)_f(e[r].geometry,n)}},wf={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){Mf(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Mf(e[r],n,0)},Polygon:function(t,n){Tf(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Tf(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)_f(e[r],n)}};function Mf(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function Tf(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Mf(t[e],n,1);n.polygonEnd()}function Af(t,n){t&&xf.hasOwnProperty(t.type)?xf[t.type](t,n):_f(t,n)}var Sf,Ef,kf,Nf,Cf,Df,Pf,qf,jf,Lf,Of,Rf,zf,If,Hf,Ff,Bf=new x,Uf=new x,Yf={point:bf,lineStart:bf,lineEnd:bf,polygonStart:function(){Bf=new x,Yf.lineStart=Wf,Yf.lineEnd=$f},polygonEnd:function(){var t=+Bf;Uf.add(t<0?Js+t:t),this.lineStart=this.lineEnd=this.point=bf},sphere:function(){Uf.add(Js)}};function Wf(){Yf.point=Xf}function $f(){Vf(Sf,Ef)}function Xf(t,n){Yf.point=Vf,Sf=t,Ef=n,kf=t*=nf,Nf=af(n=(n*=nf)/2+Ks),Cf=hf(n)}function Vf(t,n){var e=(t*=nf)-kf,r=e>=0?1:-1,i=r*e,o=af(n=(n*=nf)/2+Ks),a=hf(n),u=Cf*a,c=Nf*o+u*af(i),s=u*r*hf(i);Bf.add(of(s,c)),kf=t,Nf=o,Cf=a}function Gf(t){return Uf=new x,Af(t,Yf),2*Uf}function Zf(t){return[of(t[1],t[0]),vf(t[2])]}function Qf(t){var n=t[0],e=t[1],r=af(e);return[r*af(n),r*hf(n),hf(e)]}function Kf(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Jf(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function tl(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function nl(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function el(t){var n=pf(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var rl,il,ol,al,ul,cl,sl,fl,ll,hl,dl,pl,gl,yl,vl,ml,bl={point:_l,lineStart:wl,lineEnd:Ml,polygonStart:function(){bl.point=Tl,bl.lineStart=Al,bl.lineEnd=Sl,If=new x,Yf.polygonStart()},polygonEnd:function(){Yf.polygonEnd(),bl.point=_l,bl.lineStart=wl,bl.lineEnd=Ml,Bf<0?(Df=-(qf=180),Pf=-(jf=90)):If>Vs?jf=90:If<-1e-6&&(Pf=-90),Ff[0]=Df,Ff[1]=qf},sphere:function(){Df=-(qf=180),Pf=-(jf=90)}};function _l(t,n){Hf.push(Ff=[Df=t,qf=t]),n<Pf&&(Pf=n),n>jf&&(jf=n)}function xl(t,n){var e=Qf([t*nf,n*nf]);if(zf){var r=Jf(zf,e),i=Jf([r[1],-r[0],0],r);el(i),i=Zf(i);var o,a=t-Lf,u=a>0?1:-1,c=i[0]*tf*u,s=ef(a)>180;s^(u*Lf<c&&c<u*t)?(o=i[1]*tf)>jf&&(jf=o):s^(u*Lf<(c=(c+360)%360-180)&&c<u*t)?(o=-i[1]*tf)<Pf&&(Pf=o):(n<Pf&&(Pf=n),n>jf&&(jf=n)),s?t<Lf?El(Df,t)>El(Df,qf)&&(qf=t):El(t,qf)>El(Df,qf)&&(Df=t):qf>=Df?(t<Df&&(Df=t),t>qf&&(qf=t)):t>Lf?El(Df,t)>El(Df,qf)&&(qf=t):El(t,qf)>El(Df,qf)&&(Df=t)}else Hf.push(Ff=[Df=t,qf=t]);n<Pf&&(Pf=n),n>jf&&(jf=n),zf=e,Lf=t}function wl(){bl.point=xl}function Ml(){Ff[0]=Df,Ff[1]=qf,bl.point=_l,zf=null}function Tl(t,n){if(zf){var e=t-Lf;If.add(ef(e)>180?e+(e>0?360:-360):e)}else Of=t,Rf=n;Yf.point(t,n),xl(t,n)}function Al(){Yf.lineStart()}function Sl(){Tl(Of,Rf),Yf.lineEnd(),ef(If)>Vs&&(Df=-(qf=180)),Ff[0]=Df,Ff[1]=qf,zf=null}function El(t,n){return(n-=t)<0?n+360:n}function kl(t,n){return t[0]-n[0]}function Nl(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function Cl(t){var n,e,r,i,o,a,u;if(jf=qf=-(Df=Pf=1/0),Hf=[],Af(t,bl),e=Hf.length){for(Hf.sort(kl),n=1,o=[r=Hf[0]];n<e;++n)Nl(r,(i=Hf[n])[0])||Nl(r,i[1])?(El(r[0],i[1])>El(r[0],r[1])&&(r[1]=i[1]),El(i[0],r[1])>El(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(u=El(r[1],i[0]))>a&&(a=u,Df=i[0],qf=r[1])}return Hf=Ff=null,Df===1/0||Pf===1/0?[[NaN,NaN],[NaN,NaN]]:[[Df,Pf],[qf,jf]]}var Dl={sphere:bf,point:Pl,lineStart:jl,lineEnd:Rl,polygonStart:function(){Dl.lineStart=zl,Dl.lineEnd=Il},polygonEnd:function(){Dl.lineStart=jl,Dl.lineEnd=Rl}};function Pl(t,n){t*=nf;var e=af(n*=nf);ql(e*af(t),e*hf(t),hf(n))}function ql(t,n,e){++rl,ol+=(t-ol)/rl,al+=(n-al)/rl,ul+=(e-ul)/rl}function jl(){Dl.point=Ll}function Ll(t,n){t*=nf;var e=af(n*=nf);yl=e*af(t),vl=e*hf(t),ml=hf(n),Dl.point=Ol,ql(yl,vl,ml)}function Ol(t,n){t*=nf;var e=af(n*=nf),r=e*af(t),i=e*hf(t),o=hf(n),a=of(pf((a=vl*o-ml*i)*a+(a=ml*r-yl*o)*a+(a=yl*i-vl*r)*a),yl*r+vl*i+ml*o);il+=a,cl+=a*(yl+(yl=r)),sl+=a*(vl+(vl=i)),fl+=a*(ml+(ml=o)),ql(yl,vl,ml)}function Rl(){Dl.point=Pl}function zl(){Dl.point=Hl}function Il(){Fl(pl,gl),Dl.point=Pl}function Hl(t,n){pl=t,gl=n,t*=nf,n*=nf,Dl.point=Fl;var e=af(n);yl=e*af(t),vl=e*hf(t),ml=hf(n),ql(yl,vl,ml)}function Fl(t,n){t*=nf;var e=af(n*=nf),r=e*af(t),i=e*hf(t),o=hf(n),a=vl*o-ml*i,u=ml*r-yl*o,c=yl*i-vl*r,s=sf(a,u,c),f=vf(s),l=s&&-f/s;ll.add(l*a),hl.add(l*u),dl.add(l*c),il+=f,cl+=f*(yl+(yl=r)),sl+=f*(vl+(vl=i)),fl+=f*(ml+(ml=o)),ql(yl,vl,ml)}function Bl(t){rl=il=ol=al=ul=cl=sl=fl=0,ll=new x,hl=new x,dl=new x,Af(t,Dl);var n=+ll,e=+hl,r=+dl,i=sf(n,e,r);return i<Gs&&(n=cl,e=sl,r=fl,il<Vs&&(n=ol,e=al,r=ul),(i=sf(n,e,r))<Gs)?[NaN,NaN]:[of(e,n)*tf,vf(r/i)*tf]}function Ul(t){return function(){return t}}function Yl(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e}function Wl(t,n){return[ef(t)>Zs?t+Math.round(-t/Js)*Js:t,n]}function $l(t,n,e){return(t%=Js)?n||e?Yl(Vl(t),Gl(n,e)):Vl(t):n||e?Gl(n,e):Wl}function Xl(t){return function(n,e){return[(n+=t)>Zs?n-Js:n<-Zs?n+Js:n,e]}}function Vl(t){var n=Xl(t);return n.invert=Xl(-t),n}function Gl(t,n){var e=af(t),r=hf(t),i=af(n),o=hf(n);function a(t,n){var a=af(n),u=af(t)*a,c=hf(t)*a,s=hf(n),f=s*e+u*r;return[of(c*i-f*o,u*e-s*r),vf(f*i+c*o)]}return a.invert=function(t,n){var a=af(n),u=af(t)*a,c=hf(t)*a,s=hf(n),f=s*i-c*o;return[of(c*i+s*o,u*e+f*r),vf(f*e-u*r)]},a}function Zl(t){function n(n){return(n=t(n[0]*nf,n[1]*nf))[0]*=tf,n[1]*=tf,n}return t=$l(t[0]*nf,t[1]*nf,t.length>2?t[2]*nf:0),n.invert=function(n){return(n=t.invert(n[0]*nf,n[1]*nf))[0]*=tf,n[1]*=tf,n},n}function Ql(t,n,e,r,i,o){if(e){var a=af(n),u=hf(n),c=r*e;null==i?(i=n+r*Js,o=n-c/2):(i=Kl(a,i),o=Kl(a,o),(r>0?i<o:i>o)&&(i+=r*Js));for(var s,f=i;r>0?f>o:f<o;f-=c)s=Zf([a,-u*af(f),-u*hf(f)]),t.point(s[0],s[1])}}function Kl(t,n){(n=Qf(n))[0]-=t,el(n);var e=yf(-n[1]);return((-n[2]<0?-e:e)+Js-Vs)%Js}function Jl(){var t,n,e=Ul([0,0]),r=Ul(90),i=Ul(6),o={point:function(e,r){t.push(e=n(e,r)),e[0]*=tf,e[1]*=tf}};function a(){var a=e.apply(this,arguments),u=r.apply(this,arguments)*nf,c=i.apply(this,arguments)*nf;return t=[],n=$l(-a[0]*nf,-a[1]*nf,0).invert,Ql(o,u,c,1),a={type:"Polygon",coordinates:[t]},t=n=null,a}return a.center=function(t){return arguments.length?(e="function"==typeof t?t:Ul([+t[0],+t[1]]),a):e},a.radius=function(t){return arguments.length?(r="function"==typeof t?t:Ul(+t),a):r},a.precision=function(t){return arguments.length?(i="function"==typeof t?t:Ul(+t),a):i},a}function th(){var t,n=[];return{point:function(n,e,r){t.push([n,e,r])},lineStart:function(){n.push(t=[])},lineEnd:bf,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function nh(t,n){return ef(t[0]-n[0])<Vs&&ef(t[1]-n[1])<Vs}function eh(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function rh(t,n,e,r,i){var o,a,u=[],c=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],a=t[n];if(nh(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}a[0]+=2e-6}u.push(e=new eh(r,t,null,!0)),c.push(e.o=new eh(r,null,e,!1)),u.push(e=new eh(a,t,null,!1)),c.push(e.o=new eh(a,null,e,!0))}})),u.length){for(c.sort(n),ih(u),ih(c),o=0,a=c.length;o<a;++o)c[o].e=e=!e;for(var s,f,l=u[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;s=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,a=s.length;o<a;++o)i.point((f=s[o])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(s=h.p.z,o=s.length-1;o>=0;--o)i.point((f=s[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function ih(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function oh(t){return ef(t[0])<=Zs?t[0]:df(t[0])*((ef(t[0])+Zs)%Js-Zs)}function ah(t,n){var e=oh(n),r=n[1],i=hf(r),o=[hf(e),-af(e),0],a=0,u=0,c=new x;1===i?r=Qs+Vs:-1===i&&(r=-Qs-Vs);for(var s=0,f=t.length;s<f;++s)if(h=(l=t[s]).length)for(var l,h,d=l[h-1],p=oh(d),g=d[1]/2+Ks,y=hf(g),v=af(g),m=0;m<h;++m,p=_,y=M,v=T,d=b){var b=l[m],_=oh(b),w=b[1]/2+Ks,M=hf(w),T=af(w),A=_-p,S=A>=0?1:-1,E=S*A,k=E>Zs,N=y*M;if(c.add(of(N*S*hf(E),v*T+N*af(E))),a+=k?A+S*Js:A,k^p>=e^_>=e){var C=Jf(Qf(d),Qf(b));el(C);var D=Jf(o,C);el(D);var P=(k^A>=0?-1:1)*vf(D[2]);(r>P||r===P&&(C[0]||C[1]))&&(u+=k^A>=0?1:-1)}}return(a<-1e-6||a<Vs&&c<-1e-12)^1&u}function uh(t,n,e,r){return function(i){var o,a,u,c=n(i),s=th(),f=n(s),l=!1,h={point:d,lineStart:g,lineEnd:y,polygonStart:function(){h.point=v,h.lineStart=m,h.lineEnd=b,a=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=g,h.lineEnd=y,a=yt(a);var t=ah(o,r);a.length?(l||(i.polygonStart(),l=!0),rh(a,sh,t,e,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){c.point(t,n)}function g(){h.point=p,c.lineStart()}function y(){h.point=d,c.lineEnd()}function v(t,n){u.push([t,n]),f.point(t,n)}function m(){f.lineStart(),u=[]}function b(){v(u[0][0],u[0][1]),f.lineEnd();var t,n,e,r,c=f.clean(),h=s.result(),d=h.length;if(u.pop(),o.push(u),u=null,d)if(1&c){if((n=(e=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(ch))}return h}}function ch(t){return t.length>1}function sh(t,n){return((t=t.x)[0]<0?t[1]-Qs-Vs:Qs-t[1])-((n=n.x)[0]<0?n[1]-Qs-Vs:Qs-n[1])}Wl.invert=Wl;const fh=uh((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?Zs:-Zs,c=ef(o-e);ef(c-Zs)<Vs?(t.point(e,r=(r+a)/2>0?Qs:-Qs),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&c>=Zs&&(ef(e-i)<Vs&&(e-=i*Vs),ef(o-u)<Vs&&(o-=u*Vs),r=function(t,n,e,r){var i,o,a=hf(t-e);return ef(a)>Vs?rf((hf(n)*(o=af(r))*hf(e)-hf(r)*(i=af(n))*hf(t))/(i*o*a)):(n+r)/2}(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*Qs,r.point(-Zs,i),r.point(0,i),r.point(Zs,i),r.point(Zs,0),r.point(Zs,-i),r.point(0,-i),r.point(-Zs,-i),r.point(-Zs,0),r.point(-Zs,i);else if(ef(t[0]-n[0])>Vs){var o=t[0]<n[0]?Zs:-Zs;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}),[-Zs,-Qs]);function lh(t){var n=af(t),e=6*nf,r=n>0,i=ef(n)>Vs;function o(t,e){return af(t)*af(e)>n}function a(t,e,r){var i=[1,0,0],o=Jf(Qf(t),Qf(e)),a=Kf(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var s=n*a/c,f=-n*u/c,l=Jf(i,o),h=nl(i,s);tl(h,nl(o,f));var d=l,p=Kf(h,d),g=Kf(d,d),y=p*p-g*(Kf(h,h)-1);if(!(y<0)){var v=pf(y),m=nl(d,(-p-v)/g);if(tl(m,h),m=Zf(m),!r)return m;var b,_=t[0],x=e[0],w=t[1],M=e[1];x<_&&(b=_,_=x,x=b);var T=x-_,A=ef(T-Zs)<Vs;if(!A&&M<w&&(b=w,w=M,M=b),A||T<Vs?A?w+M>0^m[1]<(ef(m[0]-_)<Vs?w:M):w<=m[1]&&m[1]<=M:T>Zs^(_<=m[0]&&m[0]<=x)){var S=nl(d,(-p+v)/g);return tl(S,h),[m,Zf(S)]}}}function u(n,e){var i=r?t:Zs-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return uh(o,(function(t){var n,e,c,s,f;return{lineStart:function(){s=c=!1,f=1},point:function(l,h){var d,p=[l,h],g=o(l,h),y=r?g?0:u(l,h):g?u(l+(l<0?Zs:-Zs),h):0;if(!n&&(s=c=g)&&t.lineStart(),g!==c&&(!(d=a(n,p))||nh(n,d)||nh(p,d))&&(p[2]=1),g!==c)f=0,g?(t.lineStart(),d=a(p,n),t.point(d[0],d[1])):(d=a(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(i&&n&&r^g){var v;y&e||!(v=a(p,n,!0))||(f=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1],3)))}!g||n&&nh(n,p)||t.point(p[0],p[1]),n=p,c=g,e=y},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return f|(s&&c)<<1}}}),(function(n,r,i,o){Ql(o,t,e,i,n,r)}),r?[0,-t]:[-Zs,t-Zs])}var hh,dh,ph,gh,yh=1e9,vh=-yh;function mh(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,s){var f=0,l=0;if(null==i||(f=a(i,u))!==(l=a(o,u))||c(i,o)<0^u>0)do{s.point(0===f||3===f?t:e,f>1?r:n)}while((f=(f+u+4)%4)!==l);else s.point(o[0],o[1])}function a(r,i){return ef(r[0]-t)<Vs?i>0?0:3:ef(r[0]-e)<Vs?i>0?2:1:ef(r[1]-n)<Vs?i>0?1:0:i>0?3:2}function u(t,n){return c(t.x,n.x)}function c(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){var c,s,f,l,h,d,p,g,y,v,m,b=a,_=th(),x={point:w,lineStart:function(){x.point=M,s&&s.push(f=[]),v=!0,y=!1,p=g=NaN},lineEnd:function(){c&&(M(l,h),d&&y&&_.rejoin(),c.push(_.result())),x.point=w,y&&b.lineEnd()},polygonStart:function(){b=_,c=[],s=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=s.length;e<i;++e)for(var o,a,u=s[e],c=1,f=u.length,l=u[0],h=l[0],d=l[1];c<f;++c)o=h,a=d,h=(l=u[c])[0],d=l[1],a<=r?d>r&&(h-o)*(r-a)>(d-a)*(t-o)&&++n:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--n;return n}(),e=m&&n,i=(c=yt(c)).length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&rh(c,u,n,o,a),a.polygonEnd()),b=a,c=s=f=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(o,a){var u=i(o,a);if(s&&f.push([o,a]),v)l=o,h=a,d=u,v=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&y)b.point(o,a);else{var c=[p=Math.max(vh,Math.min(yh,p)),g=Math.max(vh,Math.min(yh,g))],_=[o=Math.max(vh,Math.min(yh,o)),a=Math.max(vh,Math.min(yh,a))];!function(t,n,e,r,i,o){var a,u=t[0],c=t[1],s=0,f=1,l=n[0]-u,h=n[1]-c;if(a=e-u,l||!(a>0)){if(a/=l,l<0){if(a<s)return;a<f&&(f=a)}else if(l>0){if(a>f)return;a>s&&(s=a)}if(a=i-u,l||!(a<0)){if(a/=l,l<0){if(a>f)return;a>s&&(s=a)}else if(l>0){if(a<s)return;a<f&&(f=a)}if(a=r-c,h||!(a>0)){if(a/=h,h<0){if(a<s)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>s&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>s&&(s=a)}else if(h>0){if(a<s)return;a<f&&(f=a)}return s>0&&(t[0]=u+s*l,t[1]=c+s*h),f<1&&(n[0]=u+f*l,n[1]=c+f*h),!0}}}}}(c,_,t,n,e,r)?u&&(b.lineStart(),b.point(o,a),m=!1):(y||(b.lineStart(),b.point(c[0],c[1])),b.point(_[0],_[1]),u||b.lineEnd(),m=!1)}p=o,g=a,y=u}return x}}function bh(){var t,n,e,r=0,i=0,o=960,a=500;return e={stream:function(e){return t&&n===e?t:t=mh(r,i,o,a)(n=e)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=n=null,e):[[r,i],[o,a]]}}}var _h={sphere:bf,point:bf,lineStart:function(){_h.point=wh,_h.lineEnd=xh},lineEnd:bf,polygonStart:bf,polygonEnd:bf};function xh(){_h.point=_h.lineEnd=bf}function wh(t,n){dh=t*=nf,ph=hf(n*=nf),gh=af(n),_h.point=Mh}function Mh(t,n){t*=nf;var e=hf(n*=nf),r=af(n),i=ef(t-dh),o=af(i),a=r*hf(i),u=gh*e-ph*r*o,c=ph*e+gh*r*o;hh.add(of(pf(a*a+u*u),c)),dh=t,ph=e,gh=r}function Th(t){return hh=new x,Af(t,_h),+hh}var Ah=[null,null],Sh={type:"LineString",coordinates:Ah};function Eh(t,n){return Ah[0]=t,Ah[1]=n,Th(Sh)}var kh={Feature:function(t,n){return Ch(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(Ch(e[r].geometry,n))return!0;return!1}},Nh={Sphere:function(){return!0},Point:function(t,n){return Dh(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Dh(e[r],n))return!0;return!1},LineString:function(t,n){return Ph(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Ph(e[r],n))return!0;return!1},Polygon:function(t,n){return qh(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(qh(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(Ch(e[r],n))return!0;return!1}};function Ch(t,n){return!(!t||!Nh.hasOwnProperty(t.type))&&Nh[t.type](t,n)}function Dh(t,n){return 0===Eh(t,n)}function Ph(t,n){for(var e,r,i,o=0,a=t.length;o<a;o++){if(0===(r=Eh(t[o],n)))return!0;if(o>0&&(i=Eh(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<Gs*i)return!0;e=r}return!1}function qh(t,n){return!!ah(t.map(jh),Lh(n))}function jh(t){return(t=t.map(Lh)).pop(),t}function Lh(t){return[t[0]*nf,t[1]*nf]}function Oh(t,n){return(t&&kh.hasOwnProperty(t.type)?kh[t.type]:Ch)(t,n)}function Rh(t,n,e){var r=xt(t,n-Vs,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function zh(t,n,e){var r=xt(t,n-Vs,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function Ih(){var t,n,e,r,i,o,a,u,c,s,f,l,h=10,d=h,p=90,g=360,y=2.5;function v(){return{type:"MultiLineString",coordinates:m()}}function m(){return xt(uf(r/p)*p,e,p).map(f).concat(xt(uf(u/g)*g,a,g).map(l)).concat(xt(uf(n/h)*h,t,h).filter((function(t){return ef(t%p)>Vs})).map(c)).concat(xt(uf(o/d)*d,i,d).filter((function(t){return ef(t%g)>Vs})).map(s))}return v.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},v.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(l(a).slice(1),f(e).reverse().slice(1),l(u).reverse().slice(1))]}},v.extent=function(t){return arguments.length?v.extentMajor(t).extentMinor(t):v.extentMinor()},v.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],u=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),u>a&&(t=u,u=a,a=t),v.precision(y)):[[r,u],[e,a]]},v.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),v.precision(y)):[[n,o],[t,i]]},v.step=function(t){return arguments.length?v.stepMajor(t).stepMinor(t):v.stepMinor()},v.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],v):[p,g]},v.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],v):[h,d]},v.precision=function(h){return arguments.length?(y=+h,c=Rh(o,i,90),s=zh(n,t,y),f=Rh(u,a,90),l=zh(r,e,y),v):y},v.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Hh(){return Ih()()}function Fh(t,n){var e=t[0]*nf,r=t[1]*nf,i=n[0]*nf,o=n[1]*nf,a=af(r),u=hf(r),c=af(o),s=hf(o),f=a*af(e),l=a*hf(e),h=c*af(i),d=c*hf(i),p=2*vf(pf(mf(o-r)+a*c*mf(i-e))),g=hf(p),y=p?function(t){var n=hf(t*=p)/g,e=hf(p-t)/g,r=e*f+n*h,i=e*l+n*d,o=e*u+n*s;return[of(i,r)*tf,of(o,pf(r*r+i*i))*tf]}:function(){return[e*tf,r*tf]};return y.distance=p,y}const Bh=t=>t;var Uh,Yh,Wh,$h,Xh=new x,Vh=new x,Gh={point:bf,lineStart:bf,lineEnd:bf,polygonStart:function(){Gh.lineStart=Zh,Gh.lineEnd=Jh},polygonEnd:function(){Gh.lineStart=Gh.lineEnd=Gh.point=bf,Xh.add(ef(Vh)),Vh=new x},result:function(){var t=Xh/2;return Xh=new x,t}};function Zh(){Gh.point=Qh}function Qh(t,n){Gh.point=Kh,Uh=Wh=t,Yh=$h=n}function Kh(t,n){Vh.add($h*t-Wh*n),Wh=t,$h=n}function Jh(){Kh(Uh,Yh)}const td=Gh;var nd=1/0,ed=nd,rd=-nd,id=rd;const od={point:function(t,n){t<nd&&(nd=t),t>rd&&(rd=t),n<ed&&(ed=n),n>id&&(id=n)},lineStart:bf,lineEnd:bf,polygonStart:bf,polygonEnd:bf,result:function(){var t=[[nd,ed],[rd,id]];return rd=id=-(ed=nd=1/0),t}};var ad,ud,cd,sd,fd=0,ld=0,hd=0,dd=0,pd=0,gd=0,yd=0,vd=0,md=0,bd={point:_d,lineStart:xd,lineEnd:Td,polygonStart:function(){bd.lineStart=Ad,bd.lineEnd=Sd},polygonEnd:function(){bd.point=_d,bd.lineStart=xd,bd.lineEnd=Td},result:function(){var t=md?[yd/md,vd/md]:gd?[dd/gd,pd/gd]:hd?[fd/hd,ld/hd]:[NaN,NaN];return fd=ld=hd=dd=pd=gd=yd=vd=md=0,t}};function _d(t,n){fd+=t,ld+=n,++hd}function xd(){bd.point=wd}function wd(t,n){bd.point=Md,_d(cd=t,sd=n)}function Md(t,n){var e=t-cd,r=n-sd,i=pf(e*e+r*r);dd+=i*(cd+t)/2,pd+=i*(sd+n)/2,gd+=i,_d(cd=t,sd=n)}function Td(){bd.point=_d}function Ad(){bd.point=Ed}function Sd(){kd(ad,ud)}function Ed(t,n){bd.point=kd,_d(ad=cd=t,ud=sd=n)}function kd(t,n){var e=t-cd,r=n-sd,i=pf(e*e+r*r);dd+=i*(cd+t)/2,pd+=i*(sd+n)/2,gd+=i,yd+=(i=sd*t-cd*n)*(cd+t),vd+=i*(sd+n),md+=3*i,_d(cd=t,sd=n)}const Nd=bd;function Cd(t){this._context=t}Cd.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Js)}},result:bf};var Dd,Pd,qd,jd,Ld,Od=new x,Rd={point:bf,lineStart:function(){Rd.point=zd},lineEnd:function(){Dd&&Id(Pd,qd),Rd.point=bf},polygonStart:function(){Dd=!0},polygonEnd:function(){Dd=null},result:function(){var t=+Od;return Od=new x,t}};function zd(t,n){Rd.point=Id,Pd=jd=t,qd=Ld=n}function Id(t,n){jd-=t,Ld-=n,Od.add(pf(jd*jd+Ld*Ld)),jd=t,Ld=n}const Hd=Rd;function Fd(){this._string=[]}function Bd(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Ud(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Af(t,e(r))),r.result()}return o.area=function(t){return Af(t,e(td)),td.result()},o.measure=function(t){return Af(t,e(Hd)),Hd.result()},o.bounds=function(t){return Af(t,e(od)),od.result()},o.centroid=function(t){return Af(t,e(Nd)),Nd.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,Bh):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new Fd):new Cd(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)}function Yd(t){return{stream:Wd(t)}}function Wd(t){return function(n){var e=new $d;for(var r in t)e[r]=t[r];return e.stream=n,e}}function $d(){}function Xd(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Af(e,t.stream(od)),n(od.result()),null!=r&&t.clipExtent(r),t}function Vd(t,n,e){return Xd(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),a=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,u=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([a,u])}),e)}function Gd(t,n,e){return Vd(t,[[0,0],n],e)}function Zd(t,n,e){return Xd(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,a=-i*e[0][1];t.scale(150*i).translate([o,a])}),e)}function Qd(t,n,e){return Xd(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],a=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,a])}),e)}Fd.prototype={_radius:4.5,_circle:Bd(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Bd(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},$d.prototype={constructor:$d,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Kd=af(30*nf);function Jd(t,n){return+n?function(t,n){function e(r,i,o,a,u,c,s,f,l,h,d,p,g,y){var v=s-r,m=f-i,b=v*v+m*m;if(b>4*n&&g--){var _=a+h,x=u+d,w=c+p,M=pf(_*_+x*x+w*w),T=vf(w/=M),A=ef(ef(w)-1)<Vs||ef(o-l)<Vs?(o+l)/2:of(x,_),S=t(A,T),E=S[0],k=S[1],N=E-r,C=k-i,D=m*N-v*C;(D*D/b>n||ef((v*N+m*C)/b-.5)>.3||a*h+u*d+c*p<Kd)&&(e(r,i,o,a,u,c,E,k,A,_/=M,x/=M,w,g,y),y.point(E,k),e(E,k,A,_,x,w,s,f,l,h,d,p,g,y))}}return function(n){var r,i,o,a,u,c,s,f,l,h,d,p,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){n.polygonStart(),g.lineStart=_},polygonEnd:function(){n.polygonEnd(),g.lineStart=v}};function y(e,r){e=t(e,r),n.point(e[0],e[1])}function v(){f=NaN,g.point=m,n.lineStart()}function m(r,i){var o=Qf([r,i]),a=t(r,i);e(f,l,s,h,d,p,f=a[0],l=a[1],s=r,h=o[0],d=o[1],p=o[2],16,n),n.point(f,l)}function b(){g.point=y,n.lineEnd()}function _(){v(),g.point=x,g.lineEnd=w}function x(t,n){m(r=t,n),i=f,o=l,a=h,u=d,c=p,g.point=m}function w(){e(f,l,s,h,d,p,i,o,r,a,u,c,16,n),g.lineEnd=b,b()}return g}}(t,n):function(t){return Wd({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}(t)}var tp=Wd({point:function(t,n){this.stream.point(t*nf,n*nf)}});function np(t,n,e,r,i,o){if(!o)return function(t,n,e,r,i){function o(o,a){return[n+t*(o*=r),e-t*(a*=i)]}return o.invert=function(o,a){return[(o-n)/t*r,(e-a)/t*i]},o}(t,n,e,r,i);var a=af(o),u=hf(o),c=a*t,s=u*t,f=a/t,l=u/t,h=(u*e-a*n)/t,d=(u*n+a*e)/t;function p(t,o){return[c*(t*=r)-s*(o*=i)+n,e-s*t-c*o]}return p.invert=function(t,n){return[r*(f*t-l*n+h),i*(d-l*t-f*n)]},p}function ep(t){return rp((function(){return t}))()}function rp(t){var n,e,r,i,o,a,u,c,s,f,l=150,h=480,d=250,p=0,g=0,y=0,v=0,m=0,b=0,_=1,x=1,w=null,M=fh,T=null,A=Bh,S=.5;function E(t){return c(t[0]*nf,t[1]*nf)}function k(t){return(t=c.invert(t[0],t[1]))&&[t[0]*tf,t[1]*tf]}function N(){var t=np(l,0,0,_,x,b).apply(null,n(p,g)),r=np(l,h-t[0],d-t[1],_,x,b);return e=$l(y,v,m),u=Yl(n,r),c=Yl(e,u),a=Jd(u,S),C()}function C(){return s=f=null,E}return E.stream=function(t){return s&&f===t?s:s=tp(function(t){return Wd({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}(e)(M(a(A(f=t)))))},E.preclip=function(t){return arguments.length?(M=t,w=void 0,C()):M},E.postclip=function(t){return arguments.length?(A=t,T=r=i=o=null,C()):A},E.clipAngle=function(t){return arguments.length?(M=+t?lh(w=t*nf):(w=null,fh),C()):w*tf},E.clipExtent=function(t){return arguments.length?(A=null==t?(T=r=i=o=null,Bh):mh(T=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),C()):null==T?null:[[T,r],[i,o]]},E.scale=function(t){return arguments.length?(l=+t,N()):l},E.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],N()):[h,d]},E.center=function(t){return arguments.length?(p=t[0]%360*nf,g=t[1]%360*nf,N()):[p*tf,g*tf]},E.rotate=function(t){return arguments.length?(y=t[0]%360*nf,v=t[1]%360*nf,m=t.length>2?t[2]%360*nf:0,N()):[y*tf,v*tf,m*tf]},E.angle=function(t){return arguments.length?(b=t%360*nf,N()):b*tf},E.reflectX=function(t){return arguments.length?(_=t?-1:1,N()):_<0},E.reflectY=function(t){return arguments.length?(x=t?-1:1,N()):x<0},E.precision=function(t){return arguments.length?(a=Jd(u,S=t*t),C()):pf(S)},E.fitExtent=function(t,n){return Vd(E,t,n)},E.fitSize=function(t,n){return Gd(E,t,n)},E.fitWidth=function(t,n){return Zd(E,t,n)},E.fitHeight=function(t,n){return Qd(E,t,n)},function(){return n=t.apply(this,arguments),E.invert=n.invert&&k,N()}}function ip(t){var n=0,e=Zs/3,r=rp(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*nf,e=t[1]*nf):[n*tf,e*tf]},i}function op(t,n){var e=hf(t),r=(e+hf(n))/2;if(ef(r)<Vs)return function(t){var n=af(t);function e(t,e){return[t*n,hf(e)/n]}return e.invert=function(t,e){return[t/n,vf(e*n)]},e}(t);var i=1+e*(2*r-e),o=pf(i)/r;function a(t,n){var e=pf(i-2*r*hf(n))/r;return[e*hf(t*=r),o-e*af(t)]}return a.invert=function(t,n){var e=o-n,a=of(t,ef(e))*df(e);return e*r<0&&(a-=Zs*df(t)*df(e)),[a/r,vf((i-(t*t+e*e)*r*r)/(2*r))]},a}function ap(){return ip(op).scale(155.424).center([0,33.6442])}function up(){return ap().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function cp(){var t,n,e,r,i,o,a=up(),u=ap().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=ap().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){o=[t,n]}};function f(t){var n=t[0],a=t[1];return o=null,e.point(n,a),o||(r.point(n,a),o)||(i.point(n,a),o)}function l(){return t=n=null,f}return f.invert=function(t){var n=a.scale(),e=a.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},f.stream=function(e){return t&&n===e?t:(r=[a.stream(n=e),u.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e<i;)r[e].point(t,n)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},f.precision=function(t){return arguments.length?(a.precision(t),u.precision(t),c.precision(t),l()):a.precision()},f.scale=function(t){return arguments.length?(a.scale(t),u.scale(.35*t),c.scale(t),f.translate(a.translate())):a.scale()},f.translate=function(t){if(!arguments.length)return a.translate();var n=a.scale(),o=+t[0],f=+t[1];return e=a.translate(t).clipExtent([[o-.455*n,f-.238*n],[o+.455*n,f+.238*n]]).stream(s),r=u.translate([o-.307*n,f+.201*n]).clipExtent([[o-.425*n+Vs,f+.12*n+Vs],[o-.214*n-Vs,f+.234*n-Vs]]).stream(s),i=c.translate([o-.205*n,f+.212*n]).clipExtent([[o-.214*n+Vs,f+.166*n+Vs],[o-.115*n-Vs,f+.234*n-Vs]]).stream(s),l()},f.fitExtent=function(t,n){return Vd(f,t,n)},f.fitSize=function(t,n){return Gd(f,t,n)},f.fitWidth=function(t,n){return Zd(f,t,n)},f.fitHeight=function(t,n){return Qd(f,t,n)},f.scale(1070)}function sp(t){return function(n,e){var r=af(n),i=af(e),o=t(r*i);return o===1/0?[2,0]:[o*i*hf(n),o*hf(e)]}}function fp(t){return function(n,e){var r=pf(n*n+e*e),i=t(r),o=hf(i),a=af(i);return[of(n*o,r*a),vf(r&&e*o/r)]}}var lp=sp((function(t){return pf(2/(1+t))}));function hp(){return ep(lp).scale(124.75).clipAngle(179.999)}lp.invert=fp((function(t){return 2*vf(t/2)}));var dp=sp((function(t){return(t=yf(t))&&t/hf(t)}));function pp(){return ep(dp).scale(79.4188).clipAngle(179.999)}function gp(t,n){return[t,ff(gf((Qs+n)/2))]}function yp(){return vp(gp).scale(961/Js)}function vp(t){var n,e,r,i=ep(t),o=i.center,a=i.scale,u=i.translate,c=i.clipExtent,s=null;function f(){var o=Zs*a(),u=i(Zl(i.rotate()).invert([0,0]));return c(null==s?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:t===gp?[[Math.max(u[0]-o,s),n],[Math.min(u[0]+o,e),r]]:[[s,Math.max(u[1]-o,n)],[e,Math.min(u[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),f()):a()},i.translate=function(t){return arguments.length?(u(t),f()):u()},i.center=function(t){return arguments.length?(o(t),f()):o()},i.clipExtent=function(t){return arguments.length?(null==t?s=n=e=r=null:(s=+t[0][0],n=+t[0][1],e=+t[1][0],r=+t[1][1]),f()):null==s?null:[[s,n],[e,r]]},f()}function mp(t){return gf((Qs+t)/2)}function bp(t,n){var e=af(t),r=t===n?hf(t):ff(e/af(n))/ff(mp(n)/mp(t)),i=e*lf(mp(t),r)/r;if(!r)return gp;function o(t,n){i>0?n<-Qs+Vs&&(n=-Qs+Vs):n>Qs-Vs&&(n=Qs-Vs);var e=i/lf(mp(n),r);return[e*hf(r*t),i-e*af(r*t)]}return o.invert=function(t,n){var e=i-n,o=df(r)*pf(t*t+e*e),a=of(t,ef(e))*df(e);return e*r<0&&(a-=Zs*df(t)*df(e)),[a/r,2*rf(lf(i/o,1/r))-Qs]},o}function _p(){return ip(bp).scale(109.5).parallels([30,30])}function xp(t,n){return[t,n]}function wp(){return ep(xp).scale(152.63)}function Mp(t,n){var e=af(t),r=t===n?hf(t):(e-af(n))/(n-t),i=e/r+t;if(ef(r)<Vs)return xp;function o(t,n){var e=i-n,o=r*t;return[e*hf(o),i-e*af(o)]}return o.invert=function(t,n){var e=i-n,o=of(t,ef(e))*df(e);return e*r<0&&(o-=Zs*df(t)*df(e)),[o/r,i-df(r)*pf(t*t+e*e)]},o}function Tp(){return ip(Mp).scale(131.154).center([0,13.9389])}dp.invert=fp((function(t){return t})),gp.invert=function(t,n){return[t,2*rf(cf(n))-Qs]},xp.invert=xp;var Ap=1.340264,Sp=-.081106,Ep=893e-6,kp=.003796,Np=pf(3)/2;function Cp(t,n){var e=vf(Np*hf(n)),r=e*e,i=r*r*r;return[t*af(e)/(Np*(Ap+3*Sp*r+i*(7*Ep+9*kp*r))),e*(Ap+Sp*r+i*(Ep+kp*r))]}function Dp(){return ep(Cp).scale(177.158)}function Pp(t,n){var e=af(n),r=af(t)*e;return[e*hf(t)/r,hf(n)/r]}function qp(){return ep(Pp).scale(144.049).clipAngle(60)}function jp(){var t,n,e,r,i,o,a,u=1,c=0,s=0,f=1,l=1,h=0,d=null,p=1,g=1,y=Wd({point:function(t,n){var e=b([t,n]);this.stream.point(e[0],e[1])}}),v=Bh;function m(){return p=u*f,g=u*l,o=a=null,b}function b(e){var r=e[0]*p,i=e[1]*g;if(h){var o=i*t-r*n;r=r*t+i*n,i=o}return[r+c,i+s]}return b.invert=function(e){var r=e[0]-c,i=e[1]-s;if(h){var o=i*t+r*n;r=r*t-i*n,i=o}return[r/p,i/g]},b.stream=function(t){return o&&a===t?o:o=y(v(a=t))},b.postclip=function(t){return arguments.length?(v=t,d=e=r=i=null,m()):v},b.clipExtent=function(t){return arguments.length?(v=null==t?(d=e=r=i=null,Bh):mh(d=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),m()):null==d?null:[[d,e],[r,i]]},b.scale=function(t){return arguments.length?(u=+t,m()):u},b.translate=function(t){return arguments.length?(c=+t[0],s=+t[1],m()):[c,s]},b.angle=function(e){return arguments.length?(n=hf(h=e%360*nf),t=af(h),m()):h*tf},b.reflectX=function(t){return arguments.length?(f=t?-1:1,m()):f<0},b.reflectY=function(t){return arguments.length?(l=t?-1:1,m()):l<0},b.fitExtent=function(t,n){return Vd(b,t,n)},b.fitSize=function(t,n){return Gd(b,t,n)},b.fitWidth=function(t,n){return Zd(b,t,n)},b.fitHeight=function(t,n){return Qd(b,t,n)},b}function Lp(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}function Op(){return ep(Lp).scale(175.295)}function Rp(t,n){return[af(n)*hf(t),hf(n)]}function zp(){return ep(Rp).scale(249.5).clipAngle(90.000001)}function Ip(t,n){var e=af(n),r=1+af(t)*e;return[e*hf(t)/r,hf(n)/r]}function Hp(){return ep(Ip).scale(250).clipAngle(142)}function Fp(t,n){return[ff(gf((Qs+n)/2)),-t]}function Bp(){var t=vp(Fp),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}function Up(t,n){return t.parent===n.parent?1:2}function Yp(t,n){return t+n.x}function Wp(t,n){return Math.max(t,n.y)}function $p(){var t=Up,n=1,e=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(Yp,0)/t.length}(e),n.y=function(t){return 1+t.reduce(Wp,0)}(e)):(n.x=o?a+=t(n,o):0,n.y=0,o=n)}));var u=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),s=u.x-t(u,c)/2,f=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-s)/(f-s)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Xp(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Vp(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Zp)):void 0===n&&(n=Gp);for(var e,r,i,o,a,u=new Jp(t),c=[u];e=c.pop();)if((i=n(e.data))&&(a=(i=Array.from(i)).length))for(e.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new Jp(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(Kp)}function Gp(t){return t.children}function Zp(t){return Array.isArray(t)?t[1]:null}function Qp(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Kp(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Jp(t){this.data=t,this.depth=this.height=0,this.parent=null}function tg(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(Array.from(t))).length,o=[];r<i;)n=t[r],e&&rg(e,n)?++r:(e=og(o=ng(o,n)),r=0);return e}function ng(t,n){var e,r;if(ig(n,t))return[n];for(e=0;e<t.length;++e)if(eg(n,t[e])&&ig(ag(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(eg(ag(t[e],t[r]),n)&&eg(ag(t[e],n),t[r])&&eg(ag(t[r],n),t[e])&&ig(ug(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function eg(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function rg(t,n){var e=t.r-n.r+1e-9*Math.max(t.r,n.r,1),r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function ig(t,n){for(var e=0;e<n.length;++e)if(!rg(t,n[e]))return!1;return!0}function og(t){switch(t.length){case 1:return{x:(n=t[0]).x,y:n.y,r:n.r};case 2:return ag(t[0],t[1]);case 3:return ug(t[0],t[1],t[2])}var n}function ag(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,a=n.y,u=n.r,c=o-e,s=a-r,f=u-i,l=Math.sqrt(c*c+s*s);return{x:(e+o+c/l*f)/2,y:(r+a+s/l*f)/2,r:(l+i+u)/2}}function ug(t,n,e){var r=t.x,i=t.y,o=t.r,a=n.x,u=n.y,c=n.r,s=e.x,f=e.y,l=e.r,h=r-a,d=r-s,p=i-u,g=i-f,y=c-o,v=l-o,m=r*r+i*i-o*o,b=m-a*a-u*u+c*c,_=m-s*s-f*f+l*l,x=d*p-h*g,w=(p*_-g*b)/(2*x)-r,M=(g*y-p*v)/x,T=(d*b-h*_)/(2*x)-i,A=(h*v-d*y)/x,S=M*M+A*A-1,E=2*(o+w*M+T*A),k=w*w+T*T-o*o,N=-(S?(E+Math.sqrt(E*E-4*S*k))/(2*S):k/E);return{x:r+w+M*N,y:i+T+A*N,r:N}}function cg(t,n,e){var r,i,o,a,u=t.x-n.x,c=t.y-n.y,s=u*u+c*c;s?(i=n.r+e.r,i*=i,a=t.r+e.r,i>(a*=a)?(r=(s+a-i)/(2*s),o=Math.sqrt(Math.max(0,a/s-r*r)),e.x=t.x-r*u-o*c,e.y=t.y-r*c+o*u):(r=(s+i-a)/(2*s),o=Math.sqrt(Math.max(0,i/s-r*r)),e.x=n.x+r*u-o*c,e.y=n.y+r*c+o*u)):(e.x=n.x+e.r,e.y=n.y)}function sg(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function fg(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function lg(t){this._=t,this.next=null,this.previous=null}function hg(t){if(!(o=(n=t,t="object"==typeof n&&"length"in n?n:Array.from(n)).length))return 0;var n,e,r,i,o,a,u,c,s,f,l,h;if((e=t[0]).x=0,e.y=0,!(o>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(o>2))return e.r+r.r;cg(r,e,i=t[2]),e=new lg(e),r=new lg(r),i=new lg(i),e.next=i.previous=r,r.next=e.previous=i,i.next=r.previous=e;t:for(c=3;c<o;++c){cg(e._,r._,i=t[c]),i=new lg(i),s=r.next,f=e.previous,l=r._.r,h=e._.r;do{if(l<=h){if(sg(s._,i._)){r=s,e.next=r,r.previous=e,--c;continue t}l+=s._.r,s=s.next}else{if(sg(f._,i._)){(e=f).next=r,r.previous=e,--c;continue t}h+=f._.r,f=f.previous}}while(s!==f.next);for(i.previous=e,i.next=r,e.next=r.previous=r=i,a=fg(e);(i=i.next)!==r;)(u=fg(i))<a&&(e=i,a=u);r=e.next}for(e=[r._],i=r;(i=i.next)!==r;)e.push(i._);for(i=tg(e),c=0;c<o;++c)(e=t[c]).x-=i.x,e.y-=i.y;return i.r}function dg(t){return hg(t),t}function pg(t){return null==t?null:gg(t)}function gg(t){if("function"!=typeof t)throw new Error;return t}function yg(){return 0}function vg(t){return function(){return t}}function mg(t){return Math.sqrt(t.value)}function bg(){var t=null,n=1,e=1,r=yg;function i(i){return i.x=n/2,i.y=e/2,t?i.eachBefore(_g(t)).eachAfter(xg(r,.5)).eachBefore(wg(1)):i.eachBefore(_g(mg)).eachAfter(xg(yg,1)).eachAfter(xg(r,i.r/Math.min(n,e))).eachBefore(wg(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=pg(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:vg(+t),i):r},i}function _g(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function xg(t,n){return function(e){if(r=e.children){var r,i,o,a=r.length,u=t(e)*n||0;if(u)for(i=0;i<a;++i)r[i].r+=u;if(o=hg(r),u)for(i=0;i<a;++i)r[i].r-=u;e.r=o+u}}}function wg(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}function Mg(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Tg(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(r-n)/t.value;++u<c;)(o=a[u]).y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*s}function Ag(){var t=1,n=1,e=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/o,i.eachBefore(function(t,n){return function(r){r.children&&Tg(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,o=r.y0,a=r.x1-e,u=r.y1-e;a<i&&(i=a=(i+a)/2),u<o&&(o=u=(o+u)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=u}}(n,o)),r&&i.eachBefore(Mg),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i}Cp.invert=function(t,n){for(var e,r=n,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=e=(r*(Ap+Sp*i+o*(Ep+kp*i))-n)/(Ap+3*Sp*i+o*(7*Ep+9*kp*i)))*r)*i*i,!(ef(e)<Gs));++a);return[Np*t*(Ap+3*Sp*i+o*(7*Ep+9*kp*i))/af(r),vf(hf(r)/Np)]},Pp.invert=fp(rf),Lp.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,a=o*o;r-=e=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-n)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(ef(e)>Vs&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},Rp.invert=fp(vf),Ip.invert=fp((function(t){return 2*rf(t)})),Fp.invert=function(t,n){return[-n,2*rf(cf(t))-Qs]},Jp.prototype=Vp.prototype={constructor:Jp,count:function(){return this.eachAfter(Xp)},each:function(t,n){let e=-1;for(const r of this)t.call(n,r,++e,this);return this},eachAfter:function(t,n){for(var e,r,i,o=this,a=[o],u=[],c=-1;o=a.pop();)if(u.push(o),e=o.children)for(r=0,i=e.length;r<i;++r)a.push(e[r]);for(;o=u.pop();)t.call(n,o,++c,this);return this},eachBefore:function(t,n){for(var e,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(n,i,++a,this),e=i.children)for(r=e.length-1;r>=0;--r)o.push(e[r]);return this},find:function(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Vp(this).eachBefore(Qp)},[Symbol.iterator]:function*(){var t,n,e,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e])}while(o.length)}};var Sg={depth:-1},Eg={};function kg(t){return t.id}function Ng(t){return t.parentId}function Cg(){var t=kg,n=Ng;function e(e){var r,i,o,a,u,c,s,f=Array.from(e),l=f.length,h=new Map;for(i=0;i<l;++i)r=f[i],u=f[i]=new Jp(r),null!=(c=t(r,i,e))&&(c+="")&&(s=u.id=c,h.set(s,h.has(s)?Eg:u)),null!=(c=n(r,i,e))&&(c+="")&&(u.parent=c);for(i=0;i<l;++i)if(c=(u=f[i]).parent){if(!(a=h.get(c)))throw new Error("missing: "+c);if(a===Eg)throw new Error("ambiguous: "+c);a.children?a.children.push(u):a.children=[u],u.parent=a}else{if(o)throw new Error("multiple roots");o=u}if(!o)throw new Error("no root");if(o.parent=Sg,o.eachBefore((function(t){t.depth=t.parent.depth+1,--l})).eachBefore(Kp),o.parent=null,l>0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=gg(n),e):t},e.parentId=function(t){return arguments.length?(n=gg(t),e):n},e}function Dg(t,n){return t.parent===n.parent?1:2}function Pg(t){var n=t.children;return n?n[0]:t.t}function qg(t){var n=t.children;return n?n[n.length-1]:t.t}function jg(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Lg(t,n,e){return t.a.parent===n.parent?t.a:e}function Og(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function Rg(){var t=Dg,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,a=new Og(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new Og(r[i],i)),e.parent=n;return(a.parent=new Og(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var s=i,f=i,l=i;i.eachBefore((function(t){t.x<s.x&&(s=t),t.x>f.x&&(f=t),t.depth>l.depth&&(l=t)}));var h=s===f?1:t(s,f)/2,d=h-s.x,p=n/(f.x+h+d),g=e/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,a=n,u=e,c=o.parent.children[0],s=o.m,f=a.m,l=u.m,h=c.m;u=qg(u),o=Pg(o),u&&o;)c=Pg(c),(a=qg(a)).a=n,(i=u.z+l-o.z-s+t(u._,o._))>0&&(jg(Lg(u,n,r),n,i),s+=i,f+=i),l+=u.m,s+=o.m,h+=c.m,f+=a.m;u&&!qg(a)&&(a.t=u,a.m+=l-f),o&&!Pg(c)&&(c.t=o,c.m+=s-h,r=n)}return r}(n,i,n.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function zg(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(i-e)/t.value;++u<c;)(o=a[u]).x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*s}Og.prototype=Object.create(Jp.prototype);var Ig=(1+Math.sqrt(5))/2;function Hg(t,n,e,r,i,o){for(var a,u,c,s,f,l,h,d,p,g,y,v=[],m=n.children,b=0,_=0,x=m.length,w=n.value;b<x;){c=i-e,s=o-r;do{f=m[_++].value}while(!f&&_<x);for(l=h=f,y=f*f*(g=Math.max(s/c,c/s)/(w*t)),p=Math.max(h/y,y/l);_<x;++_){if(f+=u=m[_].value,u<l&&(l=u),u>h&&(h=u),y=f*f*g,(d=Math.max(h/y,y/l))>p){f-=u;break}p=d}v.push(a={value:f,dice:c<s,children:m.slice(b,_)}),a.dice?Tg(a,e,r,i,w?r+=s*f/w:o):zg(a,e,r,w?e+=c*f/w:i,o),w-=f,b=_}return v}const Fg=function t(n){function e(t,e,r,i,o){Hg(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Ig);function Bg(){var t=Fg,n=!1,e=1,r=1,i=[0],o=yg,a=yg,u=yg,c=yg,s=yg;function f(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(Mg),t}function l(n){var e=i[n.depth],r=n.x0+e,f=n.y0+e,l=n.x1-e,h=n.y1-e;l<r&&(r=l=(r+l)/2),h<f&&(f=h=(f+h)/2),n.x0=r,n.y0=f,n.x1=l,n.y1=h,n.children&&(e=i[n.depth+1]=o(n)/2,r+=s(n)-e,f+=a(n)-e,(l-=u(n)-e)<r&&(r=l=(r+l)/2),(h-=c(n)-e)<f&&(f=h=(f+h)/2),t(n,r,f,l,h))}return f.round=function(t){return arguments.length?(n=!!t,f):n},f.size=function(t){return arguments.length?(e=+t[0],r=+t[1],f):[e,r]},f.tile=function(n){return arguments.length?(t=gg(n),f):t},f.padding=function(t){return arguments.length?f.paddingInner(t).paddingOuter(t):f.paddingInner()},f.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:vg(+t),f):o},f.paddingOuter=function(t){return arguments.length?f.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):f.paddingTop()},f.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:vg(+t),f):a},f.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:vg(+t),f):u},f.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:vg(+t),f):c},f.paddingLeft=function(t){return arguments.length?(s="function"==typeof t?t:vg(+t),f):s},f}function Ug(t,n,e,r,i){var o,a,u=t.children,c=u.length,s=new Array(c+1);for(s[0]=a=o=0;o<c;++o)s[o+1]=a+=u[o].value;!function t(n,e,r,i,o,a,c){if(n>=e-1){var f=u[n];return f.x0=i,f.y0=o,f.x1=a,void(f.y1=c)}for(var l=s[n],h=r/2+l,d=n+1,p=e-1;d<p;){var g=d+p>>>1;s[g]<h?d=g+1:p=g}h-s[d-1]<s[d]-h&&n+1<d&&--d;var y=s[d]-l,v=r-y;if(a-i>c-o){var m=r?(i*v+a*y)/r:a;t(n,d,y,i,o,m,c),t(d,e,v,m,o,a,c)}else{var b=r?(o*v+c*y)/r:c;t(n,d,y,i,o,a,b),t(d,e,v,i,b,a,c)}}(0,c,t.value,n,e,r,i)}function Yg(t,n,e,r,i){(1&t.depth?zg:Tg)(t,n,e,r,i)}const Wg=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,c,s,f,l=-1,h=a.length,d=t.value;++l<h;){for(c=(u=a[l]).children,s=u.value=0,f=c.length;s<f;++s)u.value+=c[s].value;u.dice?Tg(u,e,r,i,d?r+=(o-r)*u.value/d:o):zg(u,e,r,d?e+=(i-e)*u.value/d:i,o),d-=u.value}else t._squarify=a=Hg(n,t,e,r,i,o),a.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Ig);function $g(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function Xg(t,n){var e=vr(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}}function Vg(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Gg(t){return((t=Math.exp(t))+1/t)/2}const Zg=function t(n,e,r){function i(t,i){var o,a,u=t[0],c=t[1],s=t[2],f=i[0],l=i[1],h=i[2],d=f-u,p=l-c,g=d*d+p*p;if(g<1e-12)a=Math.log(h/s)/n,o=function(t){return[u+t*d,c+t*p,s*Math.exp(n*t*a)]};else{var y=Math.sqrt(g),v=(h*h-s*s+r*g)/(2*s*e*y),m=(h*h-s*s-r*g)/(2*h*e*y),b=Math.log(Math.sqrt(v*v+1)-v),_=Math.log(Math.sqrt(m*m+1)-m);a=(_-b)/n,o=function(t){var r,i=t*a,o=Gg(b),f=s/(e*y)*(o*(r=n*i+b,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[u+f*d,c+f*p,s*o/Gg(n*i+b)]}}return o.duration=1e3*a*n/Math.SQRT2,o}return i.rho=function(n){var e=Math.max(.001,+n),r=e*e;return t(e,r,r*r)},i}(Math.SQRT2,2,4);function Qg(t){return function(n,e){var r=t((n=sr(n)).h,(e=sr(e)).h),i=mr(n.s,e.s),o=mr(n.l,e.l),a=mr(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=a(t),n+""}}}const Kg=Qg(vr);var Jg=Qg(mr);function ty(t,n){var e=mr((t=_a(t)).l,(n=_a(n)).l),r=mr(t.a,n.a),i=mr(t.b,n.b),o=mr(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function ny(t){return function(n,e){var r=t((n=ka(n)).h,(e=ka(e)).h),i=mr(n.c,e.c),o=mr(n.l,e.l),a=mr(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=a(t),n+""}}}const ey=ny(vr);var ry=ny(mr);function iy(t){return function n(e){function r(n,r){var i=t((n=Ha(n)).h,(r=Ha(r)).h),o=mr(n.s,r.s),a=mr(n.l,r.l),u=mr(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=a(Math.pow(t,e)),n.opacity=u(t),n+""}}return e=+e,r.gamma=n,r}(1)}const oy=iy(vr);var ay=iy(mr);function uy(t,n){void 0===n&&(n=t,t=qr);for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}function cy(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e}function sy(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2}function fy(t){for(var n,e,r=-1,i=t.length,o=0,a=0,u=t[i-1],c=0;++r<i;)n=u,u=t[r],c+=e=n[0]*u[1]-u[0]*n[1],o+=(n[0]+u[0])*e,a+=(n[1]+u[1])*e;return[o/(c*=3),a/c]}function ly(t,n){return t[0]-n[0]||t[1]-n[1]}function hy(t){const n=t.length,e=[0,1];let r,i=2;for(r=2;r<n;++r){for(;i>1&&(o=t[e[i-2]],a=t[e[i-1]],u=t[r],(a[0]-o[0])*(u[1]-o[1])-(a[1]-o[1])*(u[0]-o[0])<=0);)--i;e[i++]=r}var o,a,u;return e.slice(0,i)}function dy(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(ly),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=hy(r),a=hy(i),u=a[0]===o[0],c=a[a.length-1]===o[o.length-1],s=[];for(n=o.length-1;n>=0;--n)s.push(t[r[o[n]][2]]);for(n=+u;n<a.length-c;++n)s.push(t[r[a[n]][2]]);return s}function py(t,n){for(var e,r,i=t.length,o=t[i-1],a=n[0],u=n[1],c=o[0],s=o[1],f=!1,l=0;l<i;++l)e=(o=t[l])[0],(r=o[1])>u!=s>u&&a<(c-e)*(u-r)/(s-r)+e&&(f=!f),c=e,s=r;return f}function gy(t){for(var n,e,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r<i;)n=a,e=u,n-=a=(o=t[r])[0],e-=u=o[1],c+=Math.hypot(n,e);return c}const yy=Math.random,vy=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(yy),my=function t(n){function e(t,e){return arguments.length<2&&(e=t,t=0),t=Math.floor(t),e=Math.floor(e)-t,function(){return Math.floor(n()*e+t)}}return e.source=t,e}(yy),by=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(yy),_y=function t(n){var e=by.source(n);function r(){var t=e.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(yy),xy=function t(n){function e(t){return(t=+t)<=0?()=>0:function(){for(var e=0,r=t;r>1;--r)e+=n();return e+r*n()}}return e.source=t,e}(yy),wy=function t(n){var e=xy.source(n);function r(t){if(0==(t=+t))return n;var r=e(t);return function(){return r()/t}}return r.source=t,r}(yy),My=function t(n){function e(t){return function(){return-Math.log1p(-n())/t}}return e.source=t,e}(yy),Ty=function t(n){function e(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-n(),t)}}return e.source=t,e}(yy),Ay=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+t)}}return e.source=t,e}(yy),Sy=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-n())/t)})}return e.source=t,e}(yy),Ey=function t(n){var e=by.source(n)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-n())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),a=t<1?()=>Math.pow(n(),1/t):()=>1;return function(){do{do{var t=e(),u=1+o*t}while(u<=0);u*=u*u;var c=1-n()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-u+Math.log(u)));return i*u*a()*r}}return r.source=t,r}(yy),ky=function t(n){var e=Ey.source(n);function r(t,n){var r=e(t),i=e(n);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(yy),Ny=function t(n){var e=Sy.source(n),r=ky.source(n);function i(t,n){return t=+t,(n=+n)>=1?()=>t:n<=0?()=>0:function(){for(var i=0,o=t,a=n;o*a>16&&o*(1-a)>16;){var u=Math.floor((o+1)*a),c=r(u,o-u+1)();c<=a?(i+=u,o-=u,a=(a-c)/(1-c)):(o=u-1,a/=c)}for(var s=a<.5,f=e(s?a:1-a),l=f(),h=0;l<=o;++h)l+=f();return i+(s?h:o-h)}}return i.source=t,i}(yy),Cy=function t(n){function e(t,e,r){var i;return 0==(t=+t)?i=t=>-Math.log(t):(t=1/t,i=n=>Math.pow(n,t)),e=null==e?0:+e,r=null==r?1:+r,function(){return e+r*i(-Math.log1p(-n()))}}return e.source=t,e}(yy),Dy=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){return t+e*Math.tan(Math.PI*n())}}return e.source=t,e}(yy),Py=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){var r=n();return t+e*Math.log(r/(1-r))}}return e.source=t,e}(yy),qy=function t(n){var e=Ey.source(n),r=Ny.source(n);function i(t){return function(){for(var i=0,o=t;o>16;){var a=Math.floor(.875*o),u=e(a)();if(u>o)return i+r(a-1,o/u)();i+=a,o-=u}for(var c=-Math.log1p(-n()),s=0;c<=o;++s)c-=Math.log1p(-n());return i+s}}return i.source=t,i}(yy),jy=1/4294967296;function Ly(t=Math.random()){let n=0|(0<=t&&t<1?t/jy:Math.abs(t));return()=>(n=1664525*n+1013904223|0,jy*(n>>>0))}function Oy(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function Ry(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}const zy=Symbol("implicit");function Iy(){var t=new T,n=[],e=[],r=zy;function i(i){let o=t.get(i);if(void 0===o){if(r!==zy)return r;t.set(i,o=n.push(i)-1)}return e[o%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new T;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Iy(n,e).unknown(r)},Oy.apply(i,arguments),i}function Hy(){var t,n,e=Iy().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,u=!1,c=0,s=0,f=.5;function l(){var e=r().length,l=a<o,h=l?a:o,d=l?o:a;t=(d-h)/Math.max(1,e-c+2*s),u&&(t=Math.floor(t)),h+=(d-h-t*(e-c))*f,n=t*(1-c),u&&(h=Math.round(h),n=Math.round(n));var p=xt(e).map((function(n){return h+t*n}));return i(l?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),l()):r()},e.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,l()):[o,a]},e.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,l()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,l()):u},e.padding=function(t){return arguments.length?(c=Math.min(1,s=+t),l()):c},e.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),l()):c},e.paddingOuter=function(t){return arguments.length?(s=+t,l()):s},e.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),l()):f},e.copy=function(){return Hy(r(),[o,a]).round(u).paddingInner(c).paddingOuter(s).align(f)},Oy.apply(l(),arguments)}function Fy(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Fy(n())},t}function By(){return Fy(Hy.apply(null,arguments).paddingInner(1))}function Uy(t){return+t}var Yy=[0,1];function Wy(t){return t}function $y(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function Xy(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=$y(i,r),o=e(a,o)):(r=$y(r,i),o=e(o,a)),function(t){return o(r(t))}}function Vy(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)i[a]=$y(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=f(t,n,1,r)-1;return o[e](i[e](n))}}function Gy(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Zy(){var t,n,e,r,i,o,a=Yy,u=Yy,c=qr,s=Wy;function f(){var t,n,e,c=Math.min(a.length,u.length);return s!==Wy&&(t=a[0],n=a[c-1],t>n&&(e=t,t=n,n=e),s=function(e){return Math.max(t,Math.min(n,e))}),r=c>2?Vy:Xy,i=o=null,l}function l(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),u,c)))(t(s(n)))}return l.invert=function(e){return s(n((o||(o=r(u,a.map(t),kr)))(e)))},l.domain=function(t){return arguments.length?(a=Array.from(t,Uy),f()):a.slice()},l.range=function(t){return arguments.length?(u=Array.from(t),f()):u.slice()},l.rangeRound=function(t){return u=Array.from(t),c=Vg,f()},l.clamp=function(t){return arguments.length?(s=!!t||Wy,f()):s!==Wy},l.interpolate=function(t){return arguments.length?(c=t,f()):c},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,f()}}function Qy(){return Zy()(Wy,Wy)}function Ky(t,n,e,r){var i,o=nt(t,n,e);switch((r=qs(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=$s(o,a))||(r.precision=i),Hs(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Xs(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Ws(o))||(r.precision=i-2*("%"===r.type))}return Is(r)}function Jy(t){var n=t.domain;return t.ticks=function(t){var e=n();return J(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Ky(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),a=0,u=o.length-1,c=o[a],s=o[u],f=10;for(s<c&&(i=c,c=s,s=i,i=a,a=u,u=i);f-- >0;){if((i=tt(c,s,e))===r)return o[a]=c,o[u]=s,n(o);if(i>0)c=Math.floor(c/i)*i,s=Math.ceil(s/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,s=Math.floor(s*i)/i}r=i}return t},t}function tv(){var t=Qy();return t.copy=function(){return Gy(t,tv())},Oy.apply(t,arguments),Jy(t)}function nv(t){var n;function e(t){return null==t||isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,Uy),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return nv(t).unknown(n)},t=arguments.length?Array.from(t,Uy):[0,1],Jy(e)}function ev(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t}function rv(t){return Math.log(t)}function iv(t){return Math.exp(t)}function ov(t){return-Math.log(-t)}function av(t){return-Math.exp(-t)}function uv(t){return isFinite(t)?+("1e"+t):t<0?0:t}function cv(t){return function(n){return-t(-n)}}function sv(t){var n,e,r=t(rv,iv),i=r.domain,o=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}(o),e=function(t){return 10===t?uv:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}(o),i()[0]<0?(n=cv(n),e=cv(e),t(ov,av)):t(rv,iv),r}return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=function(t){var r,a=i(),u=a[0],c=a[a.length-1];(r=c<u)&&(h=u,u=c,c=h);var s,f,l,h=n(u),d=n(c),p=null==t?10:+t,g=[];if(!(o%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),u>0){for(;h<=d;++h)for(f=1,s=e(h);f<o;++f)if(!((l=s*f)<u)){if(l>c)break;g.push(l)}}else for(;h<=d;++h)for(f=o-1,s=e(h);f>=1;--f)if(!((l=s*f)<u)){if(l>c)break;g.push(l)}2*g.length<p&&(g=J(u,c,p))}else g=J(h,d,Math.min(d-h,p)).map(e);return r?g.reverse():g},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=Is(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/e(Math.round(n(t)));return r*o<o-.5&&(r*=o),r<=a?i(t):""}},r.nice=function(){return i(ev(i(),{floor:function(t){return e(Math.floor(n(t)))},ceil:function(t){return e(Math.ceil(n(t)))}}))},r}function fv(){var t=sv(Zy()).domain([1,10]);return t.copy=function(){return Gy(t,fv()).base(t.base())},Oy.apply(t,arguments),t}function lv(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function hv(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function dv(t){var n=1,e=t(lv(n),hv(n));return e.constant=function(e){return arguments.length?t(lv(n=+e),hv(n)):n},Jy(e)}function pv(){var t=dv(Zy());return t.copy=function(){return Gy(t,pv()).constant(t.constant())},Oy.apply(t,arguments)}function gv(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function yv(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function vv(t){return t<0?-t*t:t*t}function mv(t){var n=t(Wy,Wy),e=1;function r(){return 1===e?t(Wy,Wy):.5===e?t(yv,vv):t(gv(e),gv(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},Jy(n)}function bv(){var t=mv(Zy());return t.copy=function(){return Gy(t,bv()).exponent(t.exponent())},Oy.apply(t,arguments),t}function _v(){return bv.apply(null,arguments).exponent(.5)}function xv(t){return Math.sign(t)*t*t}function wv(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Mv(){var t,n=Qy(),e=[0,1],r=!1;function i(e){var i=wv(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(xv(t))},i.domain=function(t){return arguments.length?(n.domain(t),i):n.domain()},i.range=function(t){return arguments.length?(n.range((e=Array.from(t,Uy)).map(xv)),i):e.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(n.clamp(t),i):n.clamp()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Mv(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},Oy.apply(i,arguments),Jy(i)}function Tv(){var t,n=[],e=[],i=[];function o(){var t=0,r=Math.max(1,e.length);for(i=new Array(r-1);++t<r;)i[t-1]=ft(n,t/r);return a}function a(n){return null==n||isNaN(n=+n)?t:e[f(i,n)]}return a.invertExtent=function(t){var r=e.indexOf(t);return r<0?[NaN,NaN]:[r>0?i[r-1]:n[0],r<i.length?i[r]:n[n.length-1]]},a.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(r),o()},a.range=function(t){return arguments.length?(e=Array.from(t),o()):e.slice()},a.unknown=function(n){return arguments.length?(t=n,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return Tv().domain(n).range(e).unknown(t)},Oy.apply(a,arguments)}function Av(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[f(i,n,0,r)]:t}function u(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,u()):[n,e]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,u()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[n,i[0]]:a>=r?[i[r-1],e]:[i[a-1],i[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Av().domain([n,e]).range(o).unknown(t)},Oy.apply(Jy(a),arguments)}function Sv(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[f(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Sv().domain(n).range(e).unknown(t)},Oy.apply(i,arguments)}const Ev=1e3,kv=6e4,Nv=36e5,Cv=864e5,Dv=6048e5,Pv=31536e6;var qv=new Date,jv=new Date;function Lv(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var a,u=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a<e&&e<r);return u},i.filter=function(e){return Lv((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return qv.setTime(+n),jv.setTime(+r),t(qv),t(jv),Math.floor(e(qv,jv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Ov=Lv((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Ov.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Lv((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Ov:null};const Rv=Ov;var zv=Ov.range,Iv=Lv((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Ev)}),(function(t,n){return(n-t)/Ev}),(function(t){return t.getUTCSeconds()}));const Hv=Iv;var Fv=Iv.range,Bv=Lv((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ev)}),(function(t,n){t.setTime(+t+n*kv)}),(function(t,n){return(n-t)/kv}),(function(t){return t.getMinutes()}));const Uv=Bv;var Yv=Bv.range,Wv=Lv((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ev-t.getMinutes()*kv)}),(function(t,n){t.setTime(+t+n*Nv)}),(function(t,n){return(n-t)/Nv}),(function(t){return t.getHours()}));const $v=Wv;var Xv=Wv.range,Vv=Lv((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*kv)/Cv),(t=>t.getDate()-1));const Gv=Vv;var Zv=Vv.range;function Qv(t){return Lv((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*kv)/Dv}))}var Kv=Qv(0),Jv=Qv(1),tm=Qv(2),nm=Qv(3),em=Qv(4),rm=Qv(5),im=Qv(6),om=Kv.range,am=Jv.range,um=tm.range,cm=nm.range,sm=em.range,fm=rm.range,lm=im.range,hm=Lv((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const dm=hm;var pm=hm.range,gm=Lv((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));gm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Lv((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const ym=gm;var vm=gm.range,mm=Lv((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*kv)}),(function(t,n){return(n-t)/kv}),(function(t){return t.getUTCMinutes()}));const bm=mm;var _m=mm.range,xm=Lv((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Nv)}),(function(t,n){return(n-t)/Nv}),(function(t){return t.getUTCHours()}));const wm=xm;var Mm=xm.range,Tm=Lv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Cv}),(function(t){return t.getUTCDate()-1}));const Am=Tm;var Sm=Tm.range;function Em(t){return Lv((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Dv}))}var km=Em(0),Nm=Em(1),Cm=Em(2),Dm=Em(3),Pm=Em(4),qm=Em(5),jm=Em(6),Lm=km.range,Om=Nm.range,Rm=Cm.range,zm=Dm.range,Im=Pm.range,Hm=qm.range,Fm=jm.range,Bm=Lv((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Um=Bm;var Ym=Bm.range,Wm=Lv((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Wm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Lv((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const $m=Wm;var Xm=Wm.range;function Vm(t,n,e,r,o,a){const u=[[Hv,1,Ev],[Hv,5,5e3],[Hv,15,15e3],[Hv,30,3e4],[a,1,kv],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,Nv],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Cv],[r,2,1728e5],[e,1,Dv],[n,1,2592e6],[n,3,7776e6],[t,1,Pv]];function c(n,e,r){const o=Math.abs(e-n)/r,a=i((([,,t])=>t)).right(u,o);if(a===u.length)return t.every(nt(n/Pv,e/Pv,r));if(0===a)return Rv.every(Math.max(nt(n,e,r),1));const[c,s]=u[o/u[a-1][2]<u[a][2]/o?a-1:a];return c.every(s)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"==typeof e.range?e:c(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},c]}const[Gm,Zm]=Vm($m,Um,km,Am,wm,bm),[Qm,Km]=Vm(ym,dm,Kv,Gv,$v,Uv);function Jm(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function tb(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function nb(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function eb(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=pb(i),f=gb(i),l=pb(o),h=gb(o),d=pb(a),p=gb(a),g=pb(u),y=gb(u),v=pb(c),m=gb(c),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Ob,e:Ob,f:Fb,g:Kb,G:t_,H:Rb,I:zb,j:Ib,L:Hb,m:Bb,M:Ub,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:M_,s:T_,S:Yb,u:Wb,U:$b,V:Vb,w:Gb,W:Zb,x:null,X:null,y:Qb,Y:Jb,Z:n_,"%":w_},_={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:e_,e:e_,f:u_,g:m_,G:__,H:r_,I:i_,j:o_,L:a_,m:c_,M:s_,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:M_,s:T_,S:f_,u:l_,U:h_,V:p_,w:g_,W:y_,x:null,X:null,y:v_,Y:b_,Z:x_,"%":w_},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=m.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return T(t,n,e,r)},d:Sb,e:Sb,f:Pb,g:wb,G:xb,H:kb,I:kb,j:Eb,L:Db,m:Ab,M:Nb,p:function(t,n,e){var r=s.exec(n.slice(e));return r?(t.p=f.get(r[0].toLowerCase()),e+r[0].length):-1},q:Tb,Q:jb,s:Lb,S:Cb,u:vb,U:mb,V:bb,w:yb,W:_b,x:function(t,n,r){return T(t,e,n,r)},X:function(t,n,e){return T(t,r,n,e)},y:wb,Y:xb,Z:Mb,"%":qb};function w(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++u<s;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(i=cb[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function M(t,n){return function(e){var r,i,o=nb(1900,void 0,1);if(T(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=tb(nb(o.y,0,1))).getUTCDay(),r=i>4||0===i?Nm.ceil(r):Nm(r),r=Am.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Jm(nb(o.y,0,1))).getDay(),r=i>4||0===i?Jv.ceil(r):Jv(r),r=Gv.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?tb(nb(o.y,0,1)).getUTCDay():Jm(nb(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,tb(o)):Jm(o)}}function T(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a<u;){if(r>=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=x[i in cb?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),_.x=w(e,_),_.X=w(r,_),_.c=w(n,_),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",_);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var rb,ib,ob,ab,ub,cb={"-":"",_:" ",0:"0"},sb=/^\s*\d+/,fb=/^%/,lb=/[\\^$*+?|[\]().{}]/g;function hb(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function db(t){return t.replace(lb,"\\$&")}function pb(t){return new RegExp("^(?:"+t.map(db).join("|")+")","i")}function gb(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function yb(t,n,e){var r=sb.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function vb(t,n,e){var r=sb.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function mb(t,n,e){var r=sb.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function bb(t,n,e){var r=sb.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function _b(t,n,e){var r=sb.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function xb(t,n,e){var r=sb.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function wb(t,n,e){var r=sb.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Mb(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Tb(t,n,e){var r=sb.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Ab(t,n,e){var r=sb.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Sb(t,n,e){var r=sb.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Eb(t,n,e){var r=sb.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function kb(t,n,e){var r=sb.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Nb(t,n,e){var r=sb.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Cb(t,n,e){var r=sb.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Db(t,n,e){var r=sb.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Pb(t,n,e){var r=sb.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function qb(t,n,e){var r=fb.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function jb(t,n,e){var r=sb.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Lb(t,n,e){var r=sb.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Ob(t,n){return hb(t.getDate(),n,2)}function Rb(t,n){return hb(t.getHours(),n,2)}function zb(t,n){return hb(t.getHours()%12||12,n,2)}function Ib(t,n){return hb(1+Gv.count(ym(t),t),n,3)}function Hb(t,n){return hb(t.getMilliseconds(),n,3)}function Fb(t,n){return Hb(t,n)+"000"}function Bb(t,n){return hb(t.getMonth()+1,n,2)}function Ub(t,n){return hb(t.getMinutes(),n,2)}function Yb(t,n){return hb(t.getSeconds(),n,2)}function Wb(t){var n=t.getDay();return 0===n?7:n}function $b(t,n){return hb(Kv.count(ym(t)-1,t),n,2)}function Xb(t){var n=t.getDay();return n>=4||0===n?em(t):em.ceil(t)}function Vb(t,n){return t=Xb(t),hb(em.count(ym(t),t)+(4===ym(t).getDay()),n,2)}function Gb(t){return t.getDay()}function Zb(t,n){return hb(Jv.count(ym(t)-1,t),n,2)}function Qb(t,n){return hb(t.getFullYear()%100,n,2)}function Kb(t,n){return hb((t=Xb(t)).getFullYear()%100,n,2)}function Jb(t,n){return hb(t.getFullYear()%1e4,n,4)}function t_(t,n){var e=t.getDay();return hb((t=e>=4||0===e?em(t):em.ceil(t)).getFullYear()%1e4,n,4)}function n_(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+hb(n/60|0,"0",2)+hb(n%60,"0",2)}function e_(t,n){return hb(t.getUTCDate(),n,2)}function r_(t,n){return hb(t.getUTCHours(),n,2)}function i_(t,n){return hb(t.getUTCHours()%12||12,n,2)}function o_(t,n){return hb(1+Am.count($m(t),t),n,3)}function a_(t,n){return hb(t.getUTCMilliseconds(),n,3)}function u_(t,n){return a_(t,n)+"000"}function c_(t,n){return hb(t.getUTCMonth()+1,n,2)}function s_(t,n){return hb(t.getUTCMinutes(),n,2)}function f_(t,n){return hb(t.getUTCSeconds(),n,2)}function l_(t){var n=t.getUTCDay();return 0===n?7:n}function h_(t,n){return hb(km.count($m(t)-1,t),n,2)}function d_(t){var n=t.getUTCDay();return n>=4||0===n?Pm(t):Pm.ceil(t)}function p_(t,n){return t=d_(t),hb(Pm.count($m(t),t)+(4===$m(t).getUTCDay()),n,2)}function g_(t){return t.getUTCDay()}function y_(t,n){return hb(Nm.count($m(t)-1,t),n,2)}function v_(t,n){return hb(t.getUTCFullYear()%100,n,2)}function m_(t,n){return hb((t=d_(t)).getUTCFullYear()%100,n,2)}function b_(t,n){return hb(t.getUTCFullYear()%1e4,n,4)}function __(t,n){var e=t.getUTCDay();return hb((t=e>=4||0===e?Pm(t):Pm.ceil(t)).getUTCFullYear()%1e4,n,4)}function x_(){return"+0000"}function w_(){return"%"}function M_(t){return+t}function T_(t){return Math.floor(+t/1e3)}function A_(t){return rb=eb(t),ib=rb.format,ob=rb.parse,ab=rb.utcFormat,ub=rb.utcParse,rb}function S_(t){return new Date(t)}function E_(t){return t instanceof Date?+t:+new Date(+t)}function k_(t,n,e,r,i,o,a,u,c,s){var f=Qy(),l=f.invert,h=f.domain,d=s(".%L"),p=s(":%S"),g=s("%I:%M"),y=s("%I %p"),v=s("%a %d"),m=s("%b %d"),b=s("%B"),_=s("%Y");function x(t){return(c(t)<t?d:u(t)<t?p:a(t)<t?g:o(t)<t?y:r(t)<t?i(t)<t?v:m:e(t)<t?b:_)(t)}return f.invert=function(t){return new Date(l(t))},f.domain=function(t){return arguments.length?h(Array.from(t,E_)):h().map(S_)},f.ticks=function(n){var e=h();return t(e[0],e[e.length-1],null==n?10:n)},f.tickFormat=function(t,n){return null==n?x:s(n)},f.nice=function(t){var e=h();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?h(ev(e,t)):f},f.copy=function(){return Gy(f,k_(t,n,e,r,i,o,a,u,c,s))},f}function N_(){return Oy.apply(k_(Qm,Km,ym,dm,Kv,Gv,$v,Uv,Hv,ib).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function C_(){return Oy.apply(k_(Gm,Zm,$m,Um,km,Am,wm,bm,Hv,ab).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function D_(){var t,n,e,r,i,o=0,a=1,u=Wy,c=!1;function s(n){return null==n||isNaN(n=+n)?i:u(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}function f(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),s):[u(0),u(1)]}}return s.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),n=r(a=+a),e=t===n?0:1/(n-t),s):[o,a]},s.clamp=function(t){return arguments.length?(c=!!t,s):c},s.interpolator=function(t){return arguments.length?(u=t,s):u},s.range=f(qr),s.rangeRound=f(Vg),s.unknown=function(t){return arguments.length?(i=t,s):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),s}}function P_(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function q_(){var t=Jy(D_()(Wy));return t.copy=function(){return P_(t,q_())},Ry.apply(t,arguments)}function j_(){var t=sv(D_()).domain([1,10]);return t.copy=function(){return P_(t,j_()).base(t.base())},Ry.apply(t,arguments)}function L_(){var t=dv(D_());return t.copy=function(){return P_(t,L_()).constant(t.constant())},Ry.apply(t,arguments)}function O_(){var t=mv(D_());return t.copy=function(){return P_(t,O_()).exponent(t.exponent())},Ry.apply(t,arguments)}function R_(){return O_.apply(null,arguments).exponent(.5)}function z_(){var t=[],n=Wy;function e(e){if(null!=e&&!isNaN(e=+e))return n((f(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(r),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},e.quantiles=function(n){return Array.from({length:n+1},((e,r)=>st(t,r/n)))},e.copy=function(){return z_(n).domain(t)},Ry.apply(e,arguments)}function I_(){var t,n,e,r,i,o,a,u=0,c=.5,s=1,f=1,l=Wy,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(f*t<f*n?r:i),l(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,l=uy(t,[e,r,i]),d):[l(0),l(.5),l(1)]}}return d.domain=function(a){return arguments.length?([u,c,s]=a,t=o(u=+u),n=o(c=+c),e=o(s=+s),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),f=n<t?-1:1,d):[u,c,s]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(l=t,d):l},d.range=p(qr),d.rangeRound=p(Vg),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(u),n=a(c),e=a(s),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),f=n<t?-1:1,d}}function H_(){var t=Jy(I_()(Wy));return t.copy=function(){return P_(t,H_())},Ry.apply(t,arguments)}function F_(){var t=sv(I_()).domain([.1,1,10]);return t.copy=function(){return P_(t,F_()).base(t.base())},Ry.apply(t,arguments)}function B_(){var t=dv(I_());return t.copy=function(){return P_(t,B_()).constant(t.constant())},Ry.apply(t,arguments)}function U_(){var t=mv(I_());return t.copy=function(){return P_(t,U_()).exponent(t.exponent())},Ry.apply(t,arguments)}function Y_(){return U_.apply(null,arguments).exponent(.5)}function W_(t){for(var n=t.length/6|0,e=new Array(n),r=0;r<n;)e[r]="#"+t.slice(6*r,6*++r);return e}A_({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const $_=W_("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),X_=W_("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),V_=W_("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),G_=W_("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Z_=W_("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Q_=W_("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),K_=W_("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),J_=W_("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),tx=W_("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),nx=W_("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),ex=t=>xr(t[t.length-1]);var rx=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(W_);const ix=ex(rx);var ox=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(W_);const ax=ex(ox);var ux=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(W_);const cx=ex(ux);var sx=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(W_);const fx=ex(sx);var lx=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(W_);const hx=ex(lx);var dx=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(W_);const px=ex(dx);var gx=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(W_);const yx=ex(gx);var vx=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(W_);const mx=ex(vx);var bx=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(W_);const _x=ex(bx);var xx=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(W_);const wx=ex(xx);var Mx=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(W_);const Tx=ex(Mx);var Ax=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(W_);const Sx=ex(Ax);var Ex=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(W_);const kx=ex(Ex);var Nx=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(W_);const Cx=ex(Nx);var Dx=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(W_);const Px=ex(Dx);var qx=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(W_);const jx=ex(qx);var Lx=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(W_);const Ox=ex(Lx);var Rx=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(W_);const zx=ex(Rx);var Ix=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(W_);const Hx=ex(Ix);var Fx=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(W_);const Bx=ex(Fx);var Ux=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(W_);const Yx=ex(Ux);var Wx=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(W_);const $x=ex(Wx);var Xx=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(W_);const Vx=ex(Xx);var Gx=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(W_);const Zx=ex(Gx);var Qx=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(W_);const Kx=ex(Qx);var Jx=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(W_);const tw=ex(Jx);var nw=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(W_);const ew=ex(nw);function rw(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const iw=ay(Ha(300,.5,0),Ha(-240,.5,1));var ow=ay(Ha(-100,.75,.35),Ha(80,1.5,.8)),aw=ay(Ha(260,.75,.35),Ha(80,1.5,.8)),uw=Ha();function cw(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return uw.h=360*t-100,uw.s=1.5-1.5*n,uw.l=.8-.9*n,uw+""}var sw=er(),fw=Math.PI/3,lw=2*Math.PI/3;function hw(t){var n;return t=(.5-t)*Math.PI,sw.r=255*(n=Math.sin(t))*n,sw.g=255*(n=Math.sin(t+fw))*n,sw.b=255*(n=Math.sin(t+lw))*n,sw+""}function dw(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function pw(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}const gw=pw(W_("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var yw=pw(W_("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),vw=pw(W_("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),mw=pw(W_("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function bw(t){return Ee(he(t).call(document.documentElement))}var _w=0;function xw(){return new ww}function ww(){this._="@"+(++_w).toString(36)}function Mw(t,n){return t.target&&(t=jr(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,(t=>Lr(t,n)))}function Tw(t){return"string"==typeof t?new Te([document.querySelectorAll(t)],[document.documentElement]):new Te([pn(t)],Me)}function Aw(t){return function(){return t}}ww.prototype=xw.prototype={constructor:ww,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Sw=Math.abs,Ew=Math.atan2,kw=Math.cos,Nw=Math.max,Cw=Math.min,Dw=Math.sin,Pw=Math.sqrt,qw=1e-12,jw=Math.PI,Lw=jw/2,Ow=2*jw;function Rw(t){return t>1?0:t<-1?jw:Math.acos(t)}function zw(t){return t>=1?Lw:t<=-1?-Lw:Math.asin(t)}function Iw(t){return t.innerRadius}function Hw(t){return t.outerRadius}function Fw(t){return t.startAngle}function Bw(t){return t.endAngle}function Uw(t){return t&&t.padAngle}function Yw(t,n,e,r,i,o,a,u){var c=e-t,s=r-n,f=a-i,l=u-o,h=l*c-f*s;if(!(h*h<qw))return[t+(h=(f*(n-o)-l*(t-i))/h)*c,n+h*s]}function Ww(t,n,e,r,i,o,a){var u=t-e,c=n-r,s=(a?o:-o)/Pw(u*u+c*c),f=s*c,l=-s*u,h=t+f,d=n+l,p=e+f,g=r+l,y=(h+p)/2,v=(d+g)/2,m=p-h,b=g-d,_=m*m+b*b,x=i-o,w=h*g-p*d,M=(b<0?-1:1)*Pw(Nw(0,x*x*_-w*w)),T=(w*b-m*M)/_,A=(-w*m-b*M)/_,S=(w*b+m*M)/_,E=(-w*m+b*M)/_,k=T-y,N=A-v,C=S-y,D=E-v;return k*k+N*N>C*C+D*D&&(T=S,A=E),{cx:T,cy:A,x01:-f,y01:-l,x11:T*(i/x-1),y11:A*(i/x-1)}}function $w(){var t=Iw,n=Hw,e=Aw(0),r=null,i=Fw,o=Bw,a=Uw,u=null;function c(){var c,s,f=+t.apply(this,arguments),l=+n.apply(this,arguments),h=i.apply(this,arguments)-Lw,d=o.apply(this,arguments)-Lw,p=Sw(d-h),g=d>h;if(u||(u=c=Ko()),l<f&&(s=l,l=f,f=s),l>qw)if(p>Ow-qw)u.moveTo(l*kw(h),l*Dw(h)),u.arc(0,0,l,h,d,!g),f>qw&&(u.moveTo(f*kw(d),f*Dw(d)),u.arc(0,0,f,d,h,g));else{var y,v,m=h,b=d,_=h,x=d,w=p,M=p,T=a.apply(this,arguments)/2,A=T>qw&&(r?+r.apply(this,arguments):Pw(f*f+l*l)),S=Cw(Sw(l-f)/2,+e.apply(this,arguments)),E=S,k=S;if(A>qw){var N=zw(A/f*Dw(T)),C=zw(A/l*Dw(T));(w-=2*N)>qw?(_+=N*=g?1:-1,x-=N):(w=0,_=x=(h+d)/2),(M-=2*C)>qw?(m+=C*=g?1:-1,b-=C):(M=0,m=b=(h+d)/2)}var D=l*kw(m),P=l*Dw(m),q=f*kw(x),j=f*Dw(x);if(S>qw){var L,O=l*kw(b),R=l*Dw(b),z=f*kw(_),I=f*Dw(_);if(p<jw&&(L=Yw(D,P,z,I,O,R,q,j))){var H=D-L[0],F=P-L[1],B=O-L[0],U=R-L[1],Y=1/Dw(Rw((H*B+F*U)/(Pw(H*H+F*F)*Pw(B*B+U*U)))/2),W=Pw(L[0]*L[0]+L[1]*L[1]);E=Cw(S,(f-W)/(Y-1)),k=Cw(S,(l-W)/(Y+1))}}M>qw?k>qw?(y=Ww(z,I,D,P,l,k,g),v=Ww(O,R,q,j,l,k,g),u.moveTo(y.cx+y.x01,y.cy+y.y01),k<S?u.arc(y.cx,y.cy,k,Ew(y.y01,y.x01),Ew(v.y01,v.x01),!g):(u.arc(y.cx,y.cy,k,Ew(y.y01,y.x01),Ew(y.y11,y.x11),!g),u.arc(0,0,l,Ew(y.cy+y.y11,y.cx+y.x11),Ew(v.cy+v.y11,v.cx+v.x11),!g),u.arc(v.cx,v.cy,k,Ew(v.y11,v.x11),Ew(v.y01,v.x01),!g))):(u.moveTo(D,P),u.arc(0,0,l,m,b,!g)):u.moveTo(D,P),f>qw&&w>qw?E>qw?(y=Ww(q,j,O,R,f,-E,g),v=Ww(D,P,z,I,f,-E,g),u.lineTo(y.cx+y.x01,y.cy+y.y01),E<S?u.arc(y.cx,y.cy,E,Ew(y.y01,y.x01),Ew(v.y01,v.x01),!g):(u.arc(y.cx,y.cy,E,Ew(y.y01,y.x01),Ew(y.y11,y.x11),!g),u.arc(0,0,f,Ew(y.cy+y.y11,y.cx+y.x11),Ew(v.cy+v.y11,v.cx+v.x11),g),u.arc(v.cx,v.cy,E,Ew(v.y11,v.x11),Ew(v.y01,v.x01),!g))):u.arc(0,0,f,x,_,g):u.lineTo(q,j)}else u.moveTo(0,0);if(u.closePath(),c)return u=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-jw/2;return[kw(r)*e,Dw(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Aw(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Aw(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Aw(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Aw(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Aw(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Aw(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Aw(+t),c):a},c.context=function(t){return arguments.length?(u=null==t?null:t,c):u},c}var Xw=Array.prototype.slice;function Vw(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Gw(t){this._context=t}function Zw(t){return new Gw(t)}function Qw(t){return t[0]}function Kw(t){return t[1]}function Jw(t,n){var e=Aw(!0),r=null,i=Zw,o=null;function a(a){var u,c,s,f=(a=Vw(a)).length,l=!1;for(null==r&&(o=i(s=Ko())),u=0;u<=f;++u)!(u<f&&e(c=a[u],u,a))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(c,u,a),+n(c,u,a));if(s)return o=null,s+""||null}return t="function"==typeof t?t:void 0===t?Qw:Aw(t),n="function"==typeof n?n:void 0===n?Kw:Aw(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:Aw(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:Aw(+t),a):n},a.defined=function(t){return arguments.length?(e="function"==typeof t?t:Aw(!!t),a):e},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function tM(t,n,e){var r=null,i=Aw(!0),o=null,a=Zw,u=null;function c(c){var s,f,l,h,d,p=(c=Vw(c)).length,g=!1,y=new Array(p),v=new Array(p);for(null==o&&(u=a(d=Ko())),s=0;s<=p;++s){if(!(s<p&&i(h=c[s],s,c))===g)if(g=!g)f=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),l=s-1;l>=f;--l)u.point(y[l],v[l]);u.lineEnd(),u.areaEnd()}g&&(y[s]=+t(h,s,c),v[s]=+n(h,s,c),u.point(r?+r(h,s,c):y[s],e?+e(h,s,c):v[s]))}if(d)return u=null,d+""||null}function s(){return Jw().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Qw:Aw(+t),n="function"==typeof n?n:Aw(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?Kw:Aw(+e),c.x=function(n){return arguments.length?(t="function"==typeof n?n:Aw(+n),r=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:Aw(+n),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Aw(+t),c):r},c.y=function(t){return arguments.length?(n="function"==typeof t?t:Aw(+t),e=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:Aw(+t),c):n},c.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Aw(+t),c):e},c.lineX0=c.lineY0=function(){return s().x(t).y(n)},c.lineY1=function(){return s().x(t).y(e)},c.lineX1=function(){return s().x(r).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Aw(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c}function nM(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function eM(t){return t}function rM(){var t=eM,n=nM,e=null,r=Aw(0),i=Aw(Ow),o=Aw(0);function a(a){var u,c,s,f,l,h=(a=Vw(a)).length,d=0,p=new Array(h),g=new Array(h),y=+r.apply(this,arguments),v=Math.min(Ow,Math.max(-Ow,i.apply(this,arguments)-y)),m=Math.min(Math.abs(v)/h,o.apply(this,arguments)),b=m*(v<0?-1:1);for(u=0;u<h;++u)(l=g[p[u]=u]=+t(a[u],u,a))>0&&(d+=l);for(null!=n?p.sort((function(t,e){return n(g[t],g[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),u=0,s=d?(v-h*b)/d:0;u<h;++u,y=f)c=p[u],f=y+((l=g[c])>0?l*s:0)+b,g[c]={data:a[c],index:u,value:l,startAngle:y,endAngle:f,padAngle:m};return g}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:Aw(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Aw(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Aw(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Aw(+t),a):o},a}Gw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var iM=aM(Zw);function oM(t){this._curve=t}function aM(t){function n(n){return new oM(t(n))}return n._curve=t,n}function uM(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(aM(t)):n()._curve},t}function cM(){return uM(Jw().curve(iM))}function sM(){var t=tM().curve(iM),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return uM(e())},delete t.lineX0,t.lineEndAngle=function(){return uM(r())},delete t.lineX1,t.lineInnerRadius=function(){return uM(i())},delete t.lineY0,t.lineOuterRadius=function(){return uM(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(aM(t)):n()._curve},t}function fM(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}function lM(t){return t.source}function hM(t){return t.target}function dM(t){var n=lM,e=hM,r=Qw,i=Kw,o=null;function a(){var a,u=Xw.call(arguments),c=n.apply(this,u),s=e.apply(this,u);if(o||(o=a=Ko()),t(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=s,u)),+i.apply(this,u)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(n=t,a):n},a.target=function(t){return arguments.length?(e=t,a):e},a.x=function(t){return arguments.length?(r="function"==typeof t?t:Aw(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:Aw(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function pM(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function gM(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function yM(t,n,e,r,i){var o=fM(n,e),a=fM(n,e=(e+i)/2),u=fM(r,e),c=fM(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function vM(){return dM(pM)}function mM(){return dM(gM)}function bM(){var t=dM(yM);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}oM.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};const _M={draw:function(t,n){var e=Math.sqrt(n/jw);t.moveTo(e,0),t.arc(0,0,e,0,Ow)}},xM={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};var wM=Math.sqrt(1/3),MM=2*wM;const TM={draw:function(t,n){var e=Math.sqrt(n/MM),r=e*wM;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}};var AM=Math.sin(jw/10)/Math.sin(7*jw/10),SM=Math.sin(Ow/10)*AM,EM=-Math.cos(Ow/10)*AM;const kM={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=SM*e,i=EM*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=Ow*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*e,-u*e),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},NM={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}};var CM=Math.sqrt(3);const DM={draw:function(t,n){var e=-Math.sqrt(n/(3*CM));t.moveTo(0,2*e),t.lineTo(-CM*e,-e),t.lineTo(CM*e,-e),t.closePath()}};var PM=-.5,qM=Math.sqrt(3)/2,jM=1/Math.sqrt(12),LM=3*(jM/2+1);const OM={draw:function(t,n){var e=Math.sqrt(n/LM),r=e/2,i=e*jM,o=r,a=e*jM+e,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(PM*r-qM*i,qM*r+PM*i),t.lineTo(PM*o-qM*a,qM*o+PM*a),t.lineTo(PM*u-qM*c,qM*u+PM*c),t.lineTo(PM*r+qM*i,PM*i-qM*r),t.lineTo(PM*o+qM*a,PM*a-qM*o),t.lineTo(PM*u+qM*c,PM*c-qM*u),t.closePath()}};var RM=[_M,xM,TM,NM,kM,DM,OM];function zM(t,n){var e=null;function r(){var r;if(e||(e=r=Ko()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:Aw(t||_M),n="function"==typeof n?n:Aw(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:Aw(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:Aw(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function IM(){}function HM(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function FM(t){this._context=t}function BM(t){return new FM(t)}function UM(t){this._context=t}function YM(t){return new UM(t)}function WM(t){this._context=t}function $M(t){return new WM(t)}FM.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:HM(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:HM(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},UM.prototype={areaStart:IM,areaEnd:IM,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)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:HM(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},WM.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:HM(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};class XM{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}function VM(t){return new XM(t,!0)}function GM(t){return new XM(t,!1)}function ZM(t,n){this._basis=new FM(t),this._beta=n}ZM.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const QM=function t(n){function e(t){return 1===n?new FM(t):new ZM(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function KM(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function JM(t,n){this._context=t,this._k=(1-n)/6}JM.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:KM(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:KM(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const tT=function t(n){function e(t){return new JM(t,n)}return e.tension=function(n){return t(+n)},e}(0);function nT(t,n){this._context=t,this._k=(1-n)/6}nT.prototype={areaStart:IM,areaEnd:IM,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)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:KM(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const eT=function t(n){function e(t){return new nT(t,n)}return e.tension=function(n){return t(+n)},e}(0);function rT(t,n){this._context=t,this._k=(1-n)/6}rT.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,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:KM(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const iT=function t(n){function e(t){return new rT(t,n)}return e.tension=function(n){return t(+n)},e}(0);function oT(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>qw){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>qw){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-n*t._l12_2a)/f,a=(a*s+t._y1*t._l23_2a-e*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function aT(t,n){this._context=t,this._alpha=n}aT.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)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:oT(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const uT=function t(n){function e(t){return n?new aT(t,n):new JM(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function cT(t,n){this._context=t,this._alpha=n}cT.prototype={areaStart:IM,areaEnd:IM,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)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:oT(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const sT=function t(n){function e(t){return n?new cT(t,n):new nT(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function fT(t,n){this._context=t,this._alpha=n}fT.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,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:oT(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const lT=function t(n){function e(t){return n?new fT(t,n):new rT(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function hT(t){this._context=t}function dT(t){return new hT(t)}function pT(t){return t<0?-1:1}function gT(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(pT(o)+pT(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function yT(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function vT(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function mT(t){this._context=t}function bT(t){this._context=new _T(t)}function _T(t){this._context=t}function xT(t){return new mT(t)}function wT(t){return new bT(t)}function MT(t){this._context=t}function TT(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function AT(t){return new MT(t)}function ST(t,n){this._context=t,this._t=n}function ET(t){return new ST(t,.5)}function kT(t){return new ST(t,0)}function NT(t){return new ST(t,1)}function CT(t,n){if((i=t.length)>1)for(var e,r,i,o=1,a=t[n[0]],u=a.length;o<i;++o)for(r=a,a=t[n[o]],e=0;e<u;++e)a[e][1]+=a[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function DT(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function PT(t,n){return t[n]}function qT(t){const n=[];return n.key=t,n}function jT(){var t=Aw([]),n=DT,e=CT,r=PT;function i(i){var o,a,u=Array.from(t.apply(this,arguments),qT),c=u.length,s=-1;for(const t of i)for(o=0,++s;o<c;++o)(u[o][s]=[0,+r(t,u[o].key,s,i)]).data=t;for(o=0,a=Vw(n(u));o<c;++o)u[a[o]].index=o;return e(u,a),u}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:Aw(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:Aw(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?DT:"function"==typeof t?t:Aw(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?CT:t,i):e},i}function LT(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}CT(t,n)}}function OT(t,n){if((u=t.length)>0)for(var e,r,i,o,a,u,c=0,s=t[n[0]].length;c<s;++c)for(o=a=0,e=0;e<u;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function RT(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<e;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}CT(t,n)}}function zT(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var u=0,c=0,s=0;u<i;++u){for(var f=t[n[u]],l=f[a][1]||0,h=(l-(f[a-1][1]||0))/2,d=0;d<u;++d){var p=t[n[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}c+=l,s+=h*l}e[a-1][1]+=e[a-1][0]=o,c&&(o-=s/c)}e[a-1][1]+=e[a-1][0]=o,CT(t,n)}}function IT(t){var n=t.map(HT);return DT(t).sort((function(t,e){return n[t]-n[e]}))}function HT(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function FT(t){var n=t.map(BT);return DT(t).sort((function(t,e){return n[t]-n[e]}))}function BT(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function UT(t){return FT(t).reverse()}function YT(t){var n,e,r=t.length,i=t.map(BT),o=IT(t),a=0,u=0,c=[],s=[];for(n=0;n<r;++n)e=o[n],a<u?(a+=i[e],c.push(e)):(u+=i[e],s.push(e));return s.reverse().concat(c)}function WT(t){return DT(t).reverse()}hT.prototype={areaStart:IM,areaEnd:IM,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},mT.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:vT(this,this._t0,yT(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,vT(this,yT(this,e=gT(this,t,n)),e);break;default:vT(this,this._t0,e=gT(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(bT.prototype=Object.create(mT.prototype)).point=function(t,n){mT.prototype.point.call(this,n,t)},_T.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},MT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=TT(t),i=TT(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},ST.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var $T="%Y-%m-%dT%H:%M:%S.%LZ";const XT=Date.prototype.toISOString?function(t){return t.toISOString()}:ab($T),VT=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:ub($T);function GT(t,n,e){var r=new Vr,i=n;return null==n?(r.restart(t,n,e),r):(r._restart=r.restart,r.restart=function(t,n,e){n=+n,e=null==e?$r():+e,r._restart((function o(a){a+=i,r._restart(o,i+=n,e),t(a)}),n,e)},r.restart(t,n,e),r)}const ZT=t=>()=>t;function QT(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function KT(t,n,e){this.k=t,this.x=n,this.y=e}KT.prototype={constructor:KT,scale:function(t){return 1===t?this:new KT(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new KT(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var JT=new KT(1,0,0);function tA(t){for(;!t.__zoom;)if(!(t=t.parentNode))return JT;return t.__zoom}function nA(t){t.stopImmediatePropagation()}function eA(t){t.preventDefault(),t.stopImmediatePropagation()}function rA(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function iA(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function oA(){return this.__zoom||JT}function aA(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function uA(){return navigator.maxTouchPoints||"ontouchstart"in this}function cA(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function sA(){var t,n,e,r=rA,i=iA,o=cA,a=aA,u=uA,c=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],f=250,l=Zg,h=ln("start","zoom","end"),d=500,p=0,g=10;function y(t){t.property("__zoom",oA).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",A).filter(u).on("touchstart.zoom",S).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,n){return(n=Math.max(c[0],Math.min(c[1],n)))===t.k?t:new KT(n,t.x,t.y)}function m(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new KT(t.k,r,i)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function _(t,n,e,r){t.on("start.zoom",(function(){x(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=x(t,o).event(r),u=i.apply(t,o),c=null==e?b(u):"function"==typeof e?e.apply(t,o):e,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),f=t.__zoom,h="function"==typeof n?n.apply(t,o):n,d=l(f.invert(c).concat(s/f.k),h.invert(c).concat(s/h.k));return function(t){if(1===t)t=h;else{var n=d(t),e=s/n[2];t=new KT(e,c[0]-n[0]*e,c[1]-n[1]*e)}a.zoom(null,t)}}))}function x(t,n,e){return!e&&t.__zooming||new w(t,n)}function w(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,n),this.taps=0}function M(t,...n){if(r.apply(this,arguments)){var e=x(this,n).event(t),i=this.__zoom,u=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),f=Lr(t);if(e.wheel)e.mouse[0][0]===f[0]&&e.mouse[0][1]===f[1]||(e.mouse[1]=i.invert(e.mouse[0]=f)),clearTimeout(e.wheel);else{if(i.k===u)return;e.mouse=[f,i.invert(f)],ui(this),e.start()}eA(t),e.wheel=setTimeout(l,150),e.zoom("mouse",o(m(v(i,u),e.mouse[0],e.mouse[1]),e.extent,s))}function l(){e.wheel=null,e.end()}}function T(t,...n){if(!e&&r.apply(this,arguments)){var i=t.currentTarget,a=x(this,n,!0).event(t),u=Ee(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",d,!0),c=Lr(t,i),f=t.clientX,l=t.clientY;Pe(t.view),nA(t),a.mouse=[c,this.__zoom.invert(c)],ui(this),a.start()}function h(t){if(eA(t),!a.moved){var n=t.clientX-f,e=t.clientY-l;a.moved=n*n+e*e>p}a.event(t).zoom("mouse",o(m(a.that.__zoom,a.mouse[0]=Lr(t,i),a.mouse[1]),a.extent,s))}function d(t){u.on("mousemove.zoom mouseup.zoom",null),qe(t.view,a.moved),eA(t),a.event(t).end()}}function A(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,a=Lr(t.changedTouches?t.changedTouches[0]:t,this),u=e.invert(a),c=e.k*(t.shiftKey?.5:2),l=o(m(v(e,c),a,u),i.apply(this,n),s);eA(t),f>0?Ee(this).transition().duration(f).call(_,l,a,t):Ee(this).call(y.transform,l,a,t)}}function S(e,...i){if(r.apply(this,arguments)){var o,a,u,c,s=e.touches,f=s.length,l=x(this,i,e.changedTouches.length===f).event(e);for(nA(e),a=0;a<f;++a)c=[c=Lr(u=s[a],this),this.__zoom.invert(c),u.identifier],l.touch0?l.touch1||l.touch0[2]===c[2]||(l.touch1=c,l.taps=0):(l.touch0=c,o=!0,l.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(l.taps<2&&(n=c[0],t=setTimeout((function(){t=null}),d)),ui(this),l.start())}}function E(t,...n){if(this.__zooming){var e,r,i,a,u=x(this,n).event(t),c=t.changedTouches,f=c.length;for(eA(t),e=0;e<f;++e)i=Lr(r=c[e],this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=i:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=i);if(r=u.that.__zoom,u.touch1){var l=u.touch0[0],h=u.touch0[1],d=u.touch1[0],p=u.touch1[1],g=(g=d[0]-l[0])*g+(g=d[1]-l[1])*g,y=(y=p[0]-h[0])*y+(y=p[1]-h[1])*y;r=v(r,Math.sqrt(g/y)),i=[(l[0]+d[0])/2,(l[1]+d[1])/2],a=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],a=u.touch0[1]}u.zoom("touch",o(m(r,i,a),u.extent,s))}}function k(t,...r){if(this.__zooming){var i,o,a=x(this,r).event(t),u=t.changedTouches,c=u.length;for(nA(t),e&&clearTimeout(e),e=setTimeout((function(){e=null}),d),i=0;i<c;++i)o=u[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=Lr(o,this),Math.hypot(n[0]-o[0],n[1]-o[1])<g)){var s=Ee(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}return y.transform=function(t,n,e,r){var i=t.selection?t.selection():t;i.property("__zoom",oA),t!==i?_(t,n,e,r):i.interrupt().each((function(){x(this,arguments).event(r).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()}))},y.scaleBy=function(t,n,e,r){y.scaleTo(t,(function(){var t=this.__zoom.k,e="function"==typeof n?n.apply(this,arguments):n;return t*e}),e,r)},y.scaleTo=function(t,n,e,r){y.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==e?b(t):"function"==typeof e?e.apply(this,arguments):e,u=r.invert(a),c="function"==typeof n?n.apply(this,arguments):n;return o(m(v(r,c),a,u),t,s)}),e,r)},y.translateBy=function(t,n,e,r){y.transform(t,(function(){return o(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),i.apply(this,arguments),s)}),null,r)},y.translateTo=function(t,n,e,r,a){y.transform(t,(function(){var t=i.apply(this,arguments),a=this.__zoom,u=null==r?b(t):"function"==typeof r?r.apply(this,arguments):r;return o(JT.translate(u[0],u[1]).scale(a.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,s)}),r,a)},w.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var n=Ee(this.that).datum();h.call(t,this.that,new QT(t,{sourceEvent:this.sourceEvent,target:y,type:t,transform:this.that.__zoom,dispatch:h}),n)}},y.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:ZT(+t),y):a},y.filter=function(t){return arguments.length?(r="function"==typeof t?t:ZT(!!t),y):r},y.touchable=function(t){return arguments.length?(u="function"==typeof t?t:ZT(!!t),y):u},y.extent=function(t){return arguments.length?(i="function"==typeof t?t:ZT([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),y):i},y.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],y):[c[0],c[1]]},y.translateExtent=function(t){return arguments.length?(s[0][0]=+t[0][0],s[1][0]=+t[1][0],s[0][1]=+t[0][1],s[1][1]=+t[1][1],y):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},y.constrain=function(t){return arguments.length?(o=t,y):o},y.duration=function(t){return arguments.length?(f=+t,y):f},y.interpolate=function(t){return arguments.length?(l=t,y):l},y.on=function(){var t=h.on.apply(h,arguments);return t===h?y:t},y.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,y):Math.sqrt(p)},y.tapDistance=function(t){return arguments.length?(g=+t,y):g},y}tA.prototype=KT.prototype},291:function(t,n){var e;!function(n,e){"use strict";"object"==typeof t.exports?t.exports=n.document?e(n,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(n)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,u=o.slice,c=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},s=o.push,f=o.indexOf,l={},h=l.toString,d=l.hasOwnProperty,p=d.toString,g=p.call(Object),y={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},m=function(t){return null!=t&&t===t.window},b=r.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,n,e){var r,i,o=(e=e||b).createElement("script");if(o.text=t,n)for(r in _)(i=n[r]||n.getAttribute&&n.getAttribute(r))&&o.setAttribute(r,i);e.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[h.call(t)]||"object":typeof t}var M="3.6.0",T=function(t,n){return new T.fn.init(t,n)};function A(t){var n=!!t&&"length"in t&&t.length,e=w(t);return!v(t)&&!m(t)&&("array"===e||0===n||"number"==typeof n&&n>0&&n-1 in t)}T.fn=T.prototype={jquery:M,constructor:T,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var n=T.merge(this.constructor(),t);return n.prevObject=this,n},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(n,e){return t.call(n,e,n)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,n){return(n+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,n){return n%2})))},eq:function(t){var n=this.length,e=+t+(t<0?n:0);return this.pushStack(e>=0&&e<n?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var t,n,e,r,i,o,a=arguments[0]||{},u=1,c=arguments.length,s=!1;for("boolean"==typeof a&&(s=a,a=arguments[u]||{},u++),"object"==typeof a||v(a)||(a={}),u===c&&(a=this,u--);u<c;u++)if(null!=(t=arguments[u]))for(n in t)r=t[n],"__proto__"!==n&&a!==r&&(s&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(e=a[n],o=i&&!Array.isArray(e)?[]:i||T.isPlainObject(e)?e:{},i=!1,a[n]=T.extend(s,o,r)):void 0!==r&&(a[n]=r));return a},T.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var n,e;return!(!t||"[object Object]"!==h.call(t)||(n=a(t))&&("function"!=typeof(e=d.call(n,"constructor")&&n.constructor)||p.call(e)!==g))},isEmptyObject:function(t){var n;for(n in t)return!1;return!0},globalEval:function(t,n,e){x(t,{nonce:n&&n.nonce},e)},each:function(t,n){var e,r=0;if(A(t))for(e=t.length;r<e&&!1!==n.call(t[r],r,t[r]);r++);else for(r in t)if(!1===n.call(t[r],r,t[r]))break;return t},makeArray:function(t,n){var e=n||[];return null!=t&&(A(Object(t))?T.merge(e,"string"==typeof t?[t]:t):s.call(e,t)),e},inArray:function(t,n,e){return null==n?-1:f.call(n,t,e)},merge:function(t,n){for(var e=+n.length,r=0,i=t.length;r<e;r++)t[i++]=n[r];return t.length=i,t},grep:function(t,n,e){for(var r=[],i=0,o=t.length,a=!e;i<o;i++)!n(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,n,e){var r,i,o=0,a=[];if(A(t))for(r=t.length;o<r;o++)null!=(i=n(t[o],o,e))&&a.push(i);else for(o in t)null!=(i=n(t[o],o,e))&&a.push(i);return c(a)},guid:1,support:y}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,n){l["[object "+n+"]"]=n.toLowerCase()}));var S=function(t){var n,e,r,i,o,a,u,c,s,f,l,h,d,p,g,y,v,m,b,_="sizzle"+1*new Date,x=t.document,w=0,M=0,T=ct(),A=ct(),S=ct(),E=ct(),k=function(t,n){return t===n&&(l=!0),0},N={}.hasOwnProperty,C=[],D=C.pop,P=C.push,q=C.push,j=C.slice,L=function(t,n){for(var e=0,r=t.length;e<r;e++)if(t[e]===n)return e;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\[[\\x20\\t\\r\\n\\f]*("+z+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+R+"*\\]",H=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",F=new RegExp(R+"+","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),Y=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),W=new RegExp(R+"|>"),$=new RegExp(H),X=new RegExp("^"+z+"$"),V={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,nt=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),et=function(t,n){var e="0x"+t.slice(1)-65536;return n||(e<0?String.fromCharCode(e+65536):String.fromCharCode(e>>10|55296,1023&e|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,n){return n?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=_t((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{q.apply(C=j.call(x.childNodes),x.childNodes),C[x.childNodes.length].nodeType}catch(t){q={apply:C.length?function(t,n){P.apply(t,j.call(n))}:function(t,n){for(var e=t.length,r=0;t[e++]=n[r++];);t.length=e-1}}}function ut(t,n,r,i){var o,u,s,f,l,p,v,m=n&&n.ownerDocument,x=n?n.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return r;if(!i&&(h(n),n=n||d,g)){if(11!==x&&(l=J.exec(t)))if(o=l[1]){if(9===x){if(!(s=n.getElementById(o)))return r;if(s.id===o)return r.push(s),r}else if(m&&(s=m.getElementById(o))&&b(n,s)&&s.id===o)return r.push(s),r}else{if(l[2])return q.apply(r,n.getElementsByTagName(t)),r;if((o=l[3])&&e.getElementsByClassName&&n.getElementsByClassName)return q.apply(r,n.getElementsByClassName(o)),r}if(e.qsa&&!E[t+" "]&&(!y||!y.test(t))&&(1!==x||"object"!==n.nodeName.toLowerCase())){if(v=t,m=n,1===x&&(W.test(t)||Y.test(t))){for((m=tt.test(t)&&vt(n.parentNode)||n)===n&&e.scope||((f=n.getAttribute("id"))?f=f.replace(rt,it):n.setAttribute("id",f=_)),u=(p=a(t)).length;u--;)p[u]=(f?"#"+f:":scope")+" "+bt(p[u]);v=p.join(",")}try{return q.apply(r,m.querySelectorAll(v)),r}catch(n){E(t,!0)}finally{f===_&&n.removeAttribute("id")}}}return c(t.replace(B,"$1"),n,r,i)}function ct(){var t=[];return function n(e,i){return t.push(e+" ")>r.cacheLength&&delete n[t.shift()],n[e+" "]=i}}function st(t){return t[_]=!0,t}function ft(t){var n=d.createElement("fieldset");try{return!!t(n)}catch(t){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function lt(t,n){for(var e=t.split("|"),i=e.length;i--;)r.attrHandle[e[i]]=n}function ht(t,n){var e=n&&t,r=e&&1===t.nodeType&&1===n.nodeType&&t.sourceIndex-n.sourceIndex;if(r)return r;if(e)for(;e=e.nextSibling;)if(e===n)return-1;return t?1:-1}function dt(t){return function(n){return"input"===n.nodeName.toLowerCase()&&n.type===t}}function pt(t){return function(n){var e=n.nodeName.toLowerCase();return("input"===e||"button"===e)&&n.type===t}}function gt(t){return function(n){return"form"in n?n.parentNode&&!1===n.disabled?"label"in n?"label"in n.parentNode?n.parentNode.disabled===t:n.disabled===t:n.isDisabled===t||n.isDisabled!==!t&&at(n)===t:n.disabled===t:"label"in n&&n.disabled===t}}function yt(t){return st((function(n){return n=+n,st((function(e,r){for(var i,o=t([],e.length,n),a=o.length;a--;)e[i=o[a]]&&(e[i]=!(r[i]=e[i]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(n in e=ut.support={},o=ut.isXML=function(t){var n=t&&t.namespaceURI,e=t&&(t.ownerDocument||t).documentElement;return!G.test(n||e&&e.nodeName||"HTML")},h=ut.setDocument=function(t){var n,i,a=t?t.ownerDocument||t:x;return a!=d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,g=!o(d),x!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),e.scope=ft((function(t){return p.appendChild(t).appendChild(d.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),e.attributes=ft((function(t){return t.className="i",!t.getAttribute("className")})),e.getElementsByTagName=ft((function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length})),e.getElementsByClassName=K.test(d.getElementsByClassName),e.getById=ft((function(t){return p.appendChild(t).id=_,!d.getElementsByName||!d.getElementsByName(_).length})),e.getById?(r.filter.ID=function(t){var n=t.replace(nt,et);return function(t){return t.getAttribute("id")===n}},r.find.ID=function(t,n){if(void 0!==n.getElementById&&g){var e=n.getElementById(t);return e?[e]:[]}}):(r.filter.ID=function(t){var n=t.replace(nt,et);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},r.find.ID=function(t,n){if(void 0!==n.getElementById&&g){var e,r,i,o=n.getElementById(t);if(o){if((e=o.getAttributeNode("id"))&&e.value===t)return[o];for(i=n.getElementsByName(t),r=0;o=i[r++];)if((e=o.getAttributeNode("id"))&&e.value===t)return[o]}return[]}}),r.find.TAG=e.getElementsByTagName?function(t,n){return void 0!==n.getElementsByTagName?n.getElementsByTagName(t):e.qsa?n.querySelectorAll(t):void 0}:function(t,n){var e,r=[],i=0,o=n.getElementsByTagName(t);if("*"===t){for(;e=o[i++];)1===e.nodeType&&r.push(e);return r}return o},r.find.CLASS=e.getElementsByClassName&&function(t,n){if(void 0!==n.getElementsByClassName&&g)return n.getElementsByClassName(t)},v=[],y=[],(e.qsa=K.test(d.querySelectorAll))&&(ft((function(t){var n;p.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||y.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+O+")"),t.querySelectorAll("[id~="+_+"-]").length||y.push("~="),(n=d.createElement("input")).setAttribute("name",""),t.appendChild(n),t.querySelectorAll("[name='']").length||y.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||y.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||y.push(".#.+[+~]"),t.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")})),ft((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var n=d.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&y.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),y.push(",.*:")}))),(e.matchesSelector=K.test(m=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ft((function(t){e.disconnectedMatch=m.call(t,"*"),m.call(t,"[s!='']:x"),v.push("!=",H)})),y=y.length&&new RegExp(y.join("|")),v=v.length&&new RegExp(v.join("|")),n=K.test(p.compareDocumentPosition),b=n||K.test(p.contains)?function(t,n){var e=9===t.nodeType?t.documentElement:t,r=n&&n.parentNode;return t===r||!(!r||1!==r.nodeType||!(e.contains?e.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,n){if(n)for(;n=n.parentNode;)if(n===t)return!0;return!1},k=n?function(t,n){if(t===n)return l=!0,0;var r=!t.compareDocumentPosition-!n.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(n.ownerDocument||n)?t.compareDocumentPosition(n):1)||!e.sortDetached&&n.compareDocumentPosition(t)===r?t==d||t.ownerDocument==x&&b(x,t)?-1:n==d||n.ownerDocument==x&&b(x,n)?1:f?L(f,t)-L(f,n):0:4&r?-1:1)}:function(t,n){if(t===n)return l=!0,0;var e,r=0,i=t.parentNode,o=n.parentNode,a=[t],u=[n];if(!i||!o)return t==d?-1:n==d?1:i?-1:o?1:f?L(f,t)-L(f,n):0;if(i===o)return ht(t,n);for(e=t;e=e.parentNode;)a.unshift(e);for(e=n;e=e.parentNode;)u.unshift(e);for(;a[r]===u[r];)r++;return r?ht(a[r],u[r]):a[r]==x?-1:u[r]==x?1:0},d):d},ut.matches=function(t,n){return ut(t,null,null,n)},ut.matchesSelector=function(t,n){if(h(t),e.matchesSelector&&g&&!E[n+" "]&&(!v||!v.test(n))&&(!y||!y.test(n)))try{var r=m.call(t,n);if(r||e.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){E(n,!0)}return ut(n,d,null,[t]).length>0},ut.contains=function(t,n){return(t.ownerDocument||t)!=d&&h(t),b(t,n)},ut.attr=function(t,n){(t.ownerDocument||t)!=d&&h(t);var i=r.attrHandle[n.toLowerCase()],o=i&&N.call(r.attrHandle,n.toLowerCase())?i(t,n,!g):void 0;return void 0!==o?o:e.attributes||!g?t.getAttribute(n):(o=t.getAttributeNode(n))&&o.specified?o.value:null},ut.escape=function(t){return(t+"").replace(rt,it)},ut.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ut.uniqueSort=function(t){var n,r=[],i=0,o=0;if(l=!e.detectDuplicates,f=!e.sortStable&&t.slice(0),t.sort(k),l){for(;n=t[o++];)n===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return f=null,t},i=ut.getText=function(t){var n,e="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)e+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;n=t[r++];)e+=i(n);return e},(r=ut.selectors={cacheLength:50,createPseudo:st,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,et),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,et),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ut.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ut.error(t[0]),t},PSEUDO:function(t){var n,e=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":e&&$.test(e)&&(n=a(e,!0))&&(n=e.indexOf(")",e.length-n)-e.length)&&(t[0]=t[0].slice(0,n),t[2]=e.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var n=t.replace(nt,et).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===n}},CLASS:function(t){var n=T[t+" "];return n||(n=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+R+"|$)"))&&T(t,(function(t){return n.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,n,e){return function(r){var i=ut.attr(r,t);return null==i?"!="===n:!n||(i+="","="===n?i===e:"!="===n?i!==e:"^="===n?e&&0===i.indexOf(e):"*="===n?e&&i.indexOf(e)>-1:"$="===n?e&&i.slice(-e.length)===e:"~="===n?(" "+i.replace(F," ")+" ").indexOf(e)>-1:"|="===n&&(i===e||i.slice(0,e.length+1)===e+"-"))}},CHILD:function(t,n,e,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===n;return 1===r&&0===i?function(t){return!!t.parentNode}:function(n,e,c){var s,f,l,h,d,p,g=o!==a?"nextSibling":"previousSibling",y=n.parentNode,v=u&&n.nodeName.toLowerCase(),m=!c&&!u,b=!1;if(y){if(o){for(;g;){for(h=n;h=h[g];)if(u?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?y.firstChild:y.lastChild],a&&m){for(b=(d=(s=(f=(l=(h=y)[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]||[])[0]===w&&s[1])&&s[2],h=d&&y.childNodes[d];h=++d&&h&&h[g]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===n){f[t]=[w,d,b];break}}else if(m&&(b=d=(s=(f=(l=(h=n)[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]||[])[0]===w&&s[1]),!1===b)for(;(h=++d&&h&&h[g]||(b=d=0)||p.pop())&&((u?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(m&&((f=(l=h[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]=[w,b]),h!==n)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,n){var e,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ut.error("unsupported pseudo: "+t);return i[_]?i(n):i.length>1?(e=[t,t,"",n],r.setFilters.hasOwnProperty(t.toLowerCase())?st((function(t,e){for(var r,o=i(t,n),a=o.length;a--;)t[r=L(t,o[a])]=!(e[r]=o[a])})):function(t){return i(t,0,e)}):i}},pseudos:{not:st((function(t){var n=[],e=[],r=u(t.replace(B,"$1"));return r[_]?st((function(t,n,e,i){for(var o,a=r(t,null,i,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(n[u]=o))})):function(t,i,o){return n[0]=t,r(n,null,o,e),n[0]=null,!e.pop()}})),has:st((function(t){return function(n){return ut(t,n).length>0}})),contains:st((function(t){return t=t.replace(nt,et),function(n){return(n.textContent||i(n)).indexOf(t)>-1}})),lang:st((function(t){return X.test(t||"")||ut.error("unsupported lang: "+t),t=t.replace(nt,et).toLowerCase(),function(n){var e;do{if(e=g?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return(e=e.toLowerCase())===t||0===e.indexOf(t+"-")}while((n=n.parentNode)&&1===n.nodeType);return!1}})),target:function(n){var e=t.location&&t.location.hash;return e&&e.slice(1)===n.id},root:function(t){return t===p},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&!!t.checked||"option"===n&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&"button"===t.type||"button"===n},text:function(t){var n;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(n=t.getAttribute("type"))||"text"===n.toLowerCase())},first:yt((function(){return[0]})),last:yt((function(t,n){return[n-1]})),eq:yt((function(t,n,e){return[e<0?e+n:e]})),even:yt((function(t,n){for(var e=0;e<n;e+=2)t.push(e);return t})),odd:yt((function(t,n){for(var e=1;e<n;e+=2)t.push(e);return t})),lt:yt((function(t,n,e){for(var r=e<0?e+n:e>n?n:e;--r>=0;)t.push(r);return t})),gt:yt((function(t,n,e){for(var r=e<0?e+n:e;++r<n;)t.push(r);return t}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[n]=dt(n);for(n in{submit:!0,reset:!0})r.pseudos[n]=pt(n);function mt(){}function bt(t){for(var n=0,e=t.length,r="";n<e;n++)r+=t[n].value;return r}function _t(t,n,e){var r=n.dir,i=n.next,o=i||r,a=e&&"parentNode"===o,u=M++;return n.first?function(n,e,i){for(;n=n[r];)if(1===n.nodeType||a)return t(n,e,i);return!1}:function(n,e,c){var s,f,l,h=[w,u];if(c){for(;n=n[r];)if((1===n.nodeType||a)&&t(n,e,c))return!0}else for(;n=n[r];)if(1===n.nodeType||a)if(f=(l=n[_]||(n[_]={}))[n.uniqueID]||(l[n.uniqueID]={}),i&&i===n.nodeName.toLowerCase())n=n[r]||n;else{if((s=f[o])&&s[0]===w&&s[1]===u)return h[2]=s[2];if(f[o]=h,h[2]=t(n,e,c))return!0}return!1}}function xt(t){return t.length>1?function(n,e,r){for(var i=t.length;i--;)if(!t[i](n,e,r))return!1;return!0}:t[0]}function wt(t,n,e,r,i){for(var o,a=[],u=0,c=t.length,s=null!=n;u<c;u++)(o=t[u])&&(e&&!e(o,r,i)||(a.push(o),s&&n.push(u)));return a}function Mt(t,n,e,r,i,o){return r&&!r[_]&&(r=Mt(r)),i&&!i[_]&&(i=Mt(i,o)),st((function(o,a,u,c){var s,f,l,h=[],d=[],p=a.length,g=o||function(t,n,e){for(var r=0,i=n.length;r<i;r++)ut(t,n[r],e);return e}(n||"*",u.nodeType?[u]:u,[]),y=!t||!o&&n?g:wt(g,h,t,u,c),v=e?i||(o?t:p||r)?[]:a:y;if(e&&e(y,v,u,c),r)for(s=wt(v,d),r(s,[],u,c),f=s.length;f--;)(l=s[f])&&(v[d[f]]=!(y[d[f]]=l));if(o){if(i||t){if(i){for(s=[],f=v.length;f--;)(l=v[f])&&s.push(y[f]=l);i(null,v=[],s,c)}for(f=v.length;f--;)(l=v[f])&&(s=i?L(o,l):h[f])>-1&&(o[s]=!(a[s]=l))}}else v=wt(v===a?v.splice(p,v.length):v),i?i(null,a,v,c):q.apply(a,v)}))}function Tt(t){for(var n,e,i,o=t.length,a=r.relative[t[0].type],u=a||r.relative[" "],c=a?1:0,f=_t((function(t){return t===n}),u,!0),l=_t((function(t){return L(n,t)>-1}),u,!0),h=[function(t,e,r){var i=!a&&(r||e!==s)||((n=e).nodeType?f(t,e,r):l(t,e,r));return n=null,i}];c<o;c++)if(e=r.relative[t[c].type])h=[_t(xt(h),e)];else{if((e=r.filter[t[c].type].apply(null,t[c].matches))[_]){for(i=++c;i<o&&!r.relative[t[i].type];i++);return Mt(c>1&&xt(h),c>1&&bt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(B,"$1"),e,c<i&&Tt(t.slice(c,i)),i<o&&Tt(t=t.slice(i)),i<o&&bt(t))}h.push(e)}return xt(h)}return mt.prototype=r.filters=r.pseudos,r.setFilters=new mt,a=ut.tokenize=function(t,n){var e,i,o,a,u,c,s,f=A[t+" "];if(f)return n?0:f.slice(0);for(u=t,c=[],s=r.preFilter;u;){for(a in e&&!(i=U.exec(u))||(i&&(u=u.slice(i[0].length)||u),c.push(o=[])),e=!1,(i=Y.exec(u))&&(e=i.shift(),o.push({value:e,type:i[0].replace(B," ")}),u=u.slice(e.length)),r.filter)!(i=V[a].exec(u))||s[a]&&!(i=s[a](i))||(e=i.shift(),o.push({value:e,type:a,matches:i}),u=u.slice(e.length));if(!e)break}return n?u.length:u?ut.error(t):A(t,c).slice(0)},u=ut.compile=function(t,n){var e,i=[],o=[],u=S[t+" "];if(!u){for(n||(n=a(t)),e=n.length;e--;)(u=Tt(n[e]))[_]?i.push(u):o.push(u);(u=S(t,function(t,n){var e=n.length>0,i=t.length>0,o=function(o,a,u,c,f){var l,p,y,v=0,m="0",b=o&&[],_=[],x=s,M=o||i&&r.find.TAG("*",f),T=w+=null==x?1:Math.random()||.1,A=M.length;for(f&&(s=a==d||a||f);m!==A&&null!=(l=M[m]);m++){if(i&&l){for(p=0,a||l.ownerDocument==d||(h(l),u=!g);y=t[p++];)if(y(l,a||d,u)){c.push(l);break}f&&(w=T)}e&&((l=!y&&l)&&v--,o&&b.push(l))}if(v+=m,e&&m!==v){for(p=0;y=n[p++];)y(b,_,a,u);if(o){if(v>0)for(;m--;)b[m]||_[m]||(_[m]=D.call(c));_=wt(_)}q.apply(c,_),f&&!o&&_.length>0&&v+n.length>1&&ut.uniqueSort(c)}return f&&(w=T,s=x),b};return e?st(o):o}(o,i))).selector=t}return u},c=ut.select=function(t,n,e,i){var o,c,s,f,l,h="function"==typeof t&&t,d=!i&&a(t=h.selector||t);if(e=e||[],1===d.length){if((c=d[0]=d[0].slice(0)).length>2&&"ID"===(s=c[0]).type&&9===n.nodeType&&g&&r.relative[c[1].type]){if(!(n=(r.find.ID(s.matches[0].replace(nt,et),n)||[])[0]))return e;h&&(n=n.parentNode),t=t.slice(c.shift().value.length)}for(o=V.needsContext.test(t)?0:c.length;o--&&(s=c[o],!r.relative[f=s.type]);)if((l=r.find[f])&&(i=l(s.matches[0].replace(nt,et),tt.test(c[0].type)&&vt(n.parentNode)||n))){if(c.splice(o,1),!(t=i.length&&bt(c)))return q.apply(e,i),e;break}}return(h||u(t,d))(i,n,!g,e,!n||tt.test(t)&&vt(n.parentNode)||n),e},e.sortStable=_.split("").sort(k).join("")===_,e.detectDuplicates=!!l,h(),e.sortDetached=ft((function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))})),ft((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||lt("type|href|height|width",(function(t,n,e){if(!e)return t.getAttribute(n,"type"===n.toLowerCase()?1:2)})),e.attributes&&ft((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||lt("value",(function(t,n,e){if(!e&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ft((function(t){return null==t.getAttribute("disabled")}))||lt(O,(function(t,n,e){var r;if(!e)return!0===t[n]?n.toLowerCase():(r=t.getAttributeNode(n))&&r.specified?r.value:null})),ut}(r);T.find=S,T.expr=S.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=S.uniqueSort,T.text=S.getText,T.isXMLDoc=S.isXML,T.contains=S.contains,T.escapeSelector=S.escape;var E=function(t,n,e){for(var r=[],i=void 0!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&T(t).is(e))break;r.push(t)}return r},k=function(t,n){for(var e=[];t;t=t.nextSibling)1===t.nodeType&&t!==n&&e.push(t);return e},N=T.expr.match.needsContext;function C(t,n){return t.nodeName&&t.nodeName.toLowerCase()===n.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(t,n,e){return v(n)?T.grep(t,(function(t,r){return!!n.call(t,r,t)!==e})):n.nodeType?T.grep(t,(function(t){return t===n!==e})):"string"!=typeof n?T.grep(t,(function(t){return f.call(n,t)>-1!==e})):T.filter(n,t,e)}T.filter=function(t,n,e){var r=n[0];return e&&(t=":not("+t+")"),1===n.length&&1===r.nodeType?T.find.matchesSelector(r,t)?[r]:[]:T.find.matches(t,T.grep(n,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var n,e,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(n=0;n<r;n++)if(T.contains(i[n],this))return!0})));for(e=this.pushStack([]),n=0;n<r;n++)T.find(t,i[n],e);return r>1?T.uniqueSort(e):e},filter:function(t){return this.pushStack(P(this,t||[],!1))},not:function(t){return this.pushStack(P(this,t||[],!0))},is:function(t){return!!P(this,"string"==typeof t&&N.test(t)?T(t):t||[],!1).length}});var q,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,n,e){var r,i;if(!t)return this;if(e=e||q,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:j.exec(t))||!r[1]&&n)return!n||n.jquery?(n||e).find(t):this.constructor(n).find(t);if(r[1]){if(n=n instanceof T?n[0]:n,T.merge(this,T.parseHTML(r[1],n&&n.nodeType?n.ownerDocument||n:b,!0)),D.test(r[1])&&T.isPlainObject(n))for(r in n)v(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==e.ready?e.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,q=T(b);var L=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function R(t,n){for(;(t=t[n])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var n=T(t,this),e=n.length;return this.filter((function(){for(var t=0;t<e;t++)if(T.contains(this,n[t]))return!0}))},closest:function(t,n){var e,r=0,i=this.length,o=[],a="string"!=typeof t&&T(t);if(!N.test(t))for(;r<i;r++)for(e=this[r];e&&e!==n;e=e.parentNode)if(e.nodeType<11&&(a?a.index(e)>-1:1===e.nodeType&&T.find.matchesSelector(e,t))){o.push(e);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?f.call(T(t),this[0]):f.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,n){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,n))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var n=t.parentNode;return n&&11!==n.nodeType?n:null},parents:function(t){return E(t,"parentNode")},parentsUntil:function(t,n,e){return E(t,"parentNode",e)},next:function(t){return R(t,"nextSibling")},prev:function(t){return R(t,"previousSibling")},nextAll:function(t){return E(t,"nextSibling")},prevAll:function(t){return E(t,"previousSibling")},nextUntil:function(t,n,e){return E(t,"nextSibling",e)},prevUntil:function(t,n,e){return E(t,"previousSibling",e)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,n){T.fn[t]=function(e,r){var i=T.map(this,n,e);return"Until"!==t.slice(-5)&&(r=e),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(O[t]||T.uniqueSort(i),L.test(t)&&i.reverse()),this.pushStack(i)}}));var z=/[^\x20\t\r\n\f]+/g;function I(t){return t}function H(t){throw t}function F(t,n,e,r){var i;try{t&&v(i=t.promise)?i.call(t).done(n).fail(e):t&&v(i=t.then)?i.call(t,n,e):n.apply(void 0,[t].slice(r))}catch(t){e.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var n={};return T.each(t.match(z)||[],(function(t,e){n[e]=!0})),n}(t):T.extend({},t);var n,e,r,i,o=[],a=[],u=-1,c=function(){for(i=i||t.once,r=n=!0;a.length;u=-1)for(e=a.shift();++u<o.length;)!1===o[u].apply(e[0],e[1])&&t.stopOnFalse&&(u=o.length,e=!1);t.memory||(e=!1),n=!1,i&&(o=e?[]:"")},s={add:function(){return o&&(e&&!n&&(u=o.length-1,a.push(e)),function n(e){T.each(e,(function(e,r){v(r)?t.unique&&s.has(r)||o.push(r):r&&r.length&&"string"!==w(r)&&n(r)}))}(arguments),e&&!n&&c()),this},remove:function(){return T.each(arguments,(function(t,n){for(var e;(e=T.inArray(n,o,e))>-1;)o.splice(e,1),e<=u&&u--})),this},has:function(t){return t?T.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=e="",this},disabled:function(){return!o},lock:function(){return i=a=[],e||n||(o=e=""),this},locked:function(){return!!i},fireWith:function(t,e){return i||(e=[t,(e=e||[]).slice?e.slice():e],a.push(e),n||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!r}};return s},T.extend({Deferred:function(t){var n=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],e="pending",i={state:function(){return e},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(e){T.each(n,(function(n,r){var i=v(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,e,i){var o=0;function a(t,n,e,i){return function(){var u=this,c=arguments,s=function(){var r,s;if(!(t<o)){if((r=e.apply(u,c))===n.promise())throw new TypeError("Thenable self-resolution");s=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(s)?i?s.call(r,a(o,n,I,i),a(o,n,H,i)):(o++,s.call(r,a(o,n,I,i),a(o,n,H,i),a(o,n,I,n.notifyWith))):(e!==I&&(u=void 0,c=[r]),(i||n.resolveWith)(u,c))}},f=i?s:function(){try{s()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,f.stackTrace),t+1>=o&&(e!==H&&(u=void 0,c=[r]),n.rejectWith(u,c))}};t?f():(T.Deferred.getStackHook&&(f.stackTrace=T.Deferred.getStackHook()),r.setTimeout(f))}}return T.Deferred((function(r){n[0][3].add(a(0,r,v(i)?i:I,r.notifyWith)),n[1][3].add(a(0,r,v(t)?t:I)),n[2][3].add(a(0,r,v(e)?e:H))})).promise()},promise:function(t){return null!=t?T.extend(t,i):i}},o={};return T.each(n,(function(t,r){var a=r[2],u=r[5];i[r[1]]=a.add,u&&a.add((function(){e=u}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var n=arguments.length,e=n,r=Array(e),i=u.call(arguments),o=T.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=arguments.length>1?u.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(F(t,o.done(a(e)).resolve,o.reject,!n),"pending"===o.state()||v(i[e]&&i[e].then)))return o.then();for(;e--;)F(i[e],a(e),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,n){r.console&&r.console.warn&&t&&B.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},T.readyException=function(t){r.setTimeout((function(){throw t}))};var U=T.Deferred();function Y(){b.removeEventListener("DOMContentLoaded",Y),r.removeEventListener("load",Y),T.ready()}T.fn.ready=function(t){return U.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||U.resolveWith(b,[T]))}}),T.ready.then=U.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",Y),r.addEventListener("load",Y));var W=function(t,n,e,r,i,o,a){var u=0,c=t.length,s=null==e;if("object"===w(e))for(u in i=!0,e)W(t,n,u,e[u],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),s&&(a?(n.call(t,r),n=null):(s=n,n=function(t,n,e){return s.call(T(t),e)})),n))for(;u<c;u++)n(t[u],e,a?r:r.call(t[u],u,n(t[u],e)));return i?t:s?n.call(t):c?n(t[0],e):o},$=/^-ms-/,X=/-([a-z])/g;function V(t,n){return n.toUpperCase()}function G(t){return t.replace($,"ms-").replace(X,V)}var Z=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Q(){this.expando=T.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(t){var n=t[this.expando];return n||(n={},Z(t)&&(t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,configurable:!0}))),n},set:function(t,n,e){var r,i=this.cache(t);if("string"==typeof n)i[G(n)]=e;else for(r in n)i[G(r)]=n[r];return i},get:function(t,n){return void 0===n?this.cache(t):t[this.expando]&&t[this.expando][G(n)]},access:function(t,n,e){return void 0===n||n&&"string"==typeof n&&void 0===e?this.get(t,n):(this.set(t,n,e),void 0!==e?e:n)},remove:function(t,n){var e,r=t[this.expando];if(void 0!==r){if(void 0!==n){e=(n=Array.isArray(n)?n.map(G):(n=G(n))in r?[n]:n.match(z)||[]).length;for(;e--;)delete r[n[e]]}(void 0===n||T.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var n=t[this.expando];return void 0!==n&&!T.isEmptyObject(n)}};var K=new Q,J=new Q,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,nt=/[A-Z]/g;function et(t,n,e){var r;if(void 0===e&&1===t.nodeType)if(r="data-"+n.replace(nt,"-$&").toLowerCase(),"string"==typeof(e=t.getAttribute(r))){try{e=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(e)}catch(t){}J.set(t,n,e)}else e=void 0;return e}T.extend({hasData:function(t){return J.hasData(t)||K.hasData(t)},data:function(t,n,e){return J.access(t,n,e)},removeData:function(t,n){J.remove(t,n)},_data:function(t,n,e){return K.access(t,n,e)},_removeData:function(t,n){K.remove(t,n)}}),T.fn.extend({data:function(t,n){var e,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=J.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(r=a[e].name).indexOf("data-")&&(r=G(r.slice(5)),et(o,r,i[r]));K.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each((function(){J.set(this,t)})):W(this,(function(n){var e;if(o&&void 0===n)return void 0!==(e=J.get(o,t))||void 0!==(e=et(o,t))?e:void 0;this.each((function(){J.set(this,t,n)}))}),null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){J.remove(this,t)}))}}),T.extend({queue:function(t,n,e){var r;if(t)return n=(n||"fx")+"queue",r=K.get(t,n),e&&(!r||Array.isArray(e)?r=K.access(t,n,T.makeArray(e)):r.push(e)),r||[]},dequeue:function(t,n){n=n||"fx";var e=T.queue(t,n),r=e.length,i=e.shift(),o=T._queueHooks(t,n);"inprogress"===i&&(i=e.shift(),r--),i&&("fx"===n&&e.unshift("inprogress"),delete o.stop,i.call(t,(function(){T.dequeue(t,n)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,n){var e=n+"queueHooks";return K.get(t,e)||K.access(t,e,{empty:T.Callbacks("once memory").add((function(){K.remove(t,[n+"queue",e])}))})}}),T.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?T.queue(this[0],t):void 0===n?this:this.each((function(){var e=T.queue(this,t,n);T._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&T.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){T.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var e,r=1,i=T.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(n=t,t=void 0),t=t||"fx";a--;)(e=K.get(o[a],t+"queueHooks"))&&e.empty&&(r++,e.empty.add(u));return u(),i.promise(n)}});var rt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+rt+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],at=b.documentElement,ut=function(t){return T.contains(t.ownerDocument,t)},ct={composed:!0};at.getRootNode&&(ut=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(ct)===t.ownerDocument});var st=function(t,n){return"none"===(t=n||t).style.display||""===t.style.display&&ut(t)&&"none"===T.css(t,"display")};function ft(t,n,e,r){var i,o,a=20,u=r?function(){return r.cur()}:function(){return T.css(t,n,"")},c=u(),s=e&&e[3]||(T.cssNumber[n]?"":"px"),f=t.nodeType&&(T.cssNumber[n]||"px"!==s&&+c)&&it.exec(T.css(t,n));if(f&&f[3]!==s){for(c/=2,s=s||f[3],f=+c||1;a--;)T.style(t,n,f+s),(1-o)*(1-(o=u()/c||.5))<=0&&(a=0),f/=o;f*=2,T.style(t,n,f+s),e=e||[]}return e&&(f=+f||+c||0,i=e[1]?f+(e[1]+1)*e[2]:+e[2],r&&(r.unit=s,r.start=f,r.end=i)),i}var lt={};function ht(t){var n,e=t.ownerDocument,r=t.nodeName,i=lt[r];return i||(n=e.body.appendChild(e.createElement(r)),i=T.css(n,"display"),n.parentNode.removeChild(n),"none"===i&&(i="block"),lt[r]=i,i)}function dt(t,n){for(var e,r,i=[],o=0,a=t.length;o<a;o++)(r=t[o]).style&&(e=r.style.display,n?("none"===e&&(i[o]=K.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&st(r)&&(i[o]=ht(r))):"none"!==e&&(i[o]="none",K.set(r,"display",e)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}T.fn.extend({show:function(){return dt(this,!0)},hide:function(){return dt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){st(this)?T(this).show():T(this).hide()}))}});var pt,gt,yt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i;pt=b.createDocumentFragment().appendChild(b.createElement("div")),(gt=b.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),pt.appendChild(gt),y.checkClone=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue,pt.innerHTML="<option></option>",y.option=!!pt.lastChild;var bt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function _t(t,n){var e;return e=void 0!==t.getElementsByTagName?t.getElementsByTagName(n||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(n||"*"):[],void 0===n||n&&C(t,n)?T.merge([t],e):e}function xt(t,n){for(var e=0,r=t.length;e<r;e++)K.set(t[e],"globalEval",!n||K.get(n[e],"globalEval"))}bt.tbody=bt.tfoot=bt.colgroup=bt.caption=bt.thead,bt.th=bt.td,y.option||(bt.optgroup=bt.option=[1,"<select multiple='multiple'>","</select>"]);var wt=/<|&#?\w+;/;function Mt(t,n,e,r,i){for(var o,a,u,c,s,f,l=n.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if((o=t[d])||0===o)if("object"===w(o))T.merge(h,o.nodeType?[o]:o);else if(wt.test(o)){for(a=a||l.appendChild(n.createElement("div")),u=(vt.exec(o)||["",""])[1].toLowerCase(),c=bt[u]||bt._default,a.innerHTML=c[1]+T.htmlPrefilter(o)+c[2],f=c[0];f--;)a=a.lastChild;T.merge(h,a.childNodes),(a=l.firstChild).textContent=""}else h.push(n.createTextNode(o));for(l.textContent="",d=0;o=h[d++];)if(r&&T.inArray(o,r)>-1)i&&i.push(o);else if(s=ut(o),a=_t(l.appendChild(o),"script"),s&&xt(a),e)for(f=0;o=a[f++];)mt.test(o.type||"")&&e.push(o);return l}var Tt=/^([^.]*)(?:\.(.+)|)/;function At(){return!0}function St(){return!1}function Et(t,n){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===n)}function kt(t,n,e,r,i,o){var a,u;if("object"==typeof n){for(u in"string"!=typeof e&&(r=r||e,e=void 0),n)kt(t,u,e,r,n[u],o);return t}if(null==r&&null==i?(i=e,r=e=void 0):null==i&&("string"==typeof e?(i=r,r=void 0):(i=r,r=e,e=void 0)),!1===i)i=St;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return T().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=T.guid++)),t.each((function(){T.event.add(this,n,i,r,e)}))}function Nt(t,n,e){e?(K.set(t,n,!1),T.event.add(t,n,{namespace:!1,handler:function(t){var r,i,o=K.get(this,n);if(1&t.isTrigger&&this[n]){if(o.length)(T.event.special[n]||{}).delegateType&&t.stopPropagation();else if(o=u.call(arguments),K.set(this,n,o),r=e(this,n),this[n](),o!==(i=K.get(this,n))||r?K.set(this,n,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else o.length&&(K.set(this,n,{value:T.event.trigger(T.extend(o[0],T.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,n)&&T.event.add(t,n,At)}T.event={global:{},add:function(t,n,e,r,i){var o,a,u,c,s,f,l,h,d,p,g,y=K.get(t);if(Z(t))for(e.handler&&(e=(o=e).handler,i=o.selector),i&&T.find.matchesSelector(at,i),e.guid||(e.guid=T.guid++),(c=y.events)||(c=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(n){return void 0!==T&&T.event.triggered!==n.type?T.event.dispatch.apply(t,arguments):void 0}),s=(n=(n||"").match(z)||[""]).length;s--;)d=g=(u=Tt.exec(n[s])||[])[1],p=(u[2]||"").split(".").sort(),d&&(l=T.event.special[d]||{},d=(i?l.delegateType:l.bindType)||d,l=T.event.special[d]||{},f=T.extend({type:d,origType:g,data:r,handler:e,guid:e.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=c[d])||((h=c[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(d,a)),l.add&&(l.add.call(t,f),f.handler.guid||(f.handler.guid=e.guid)),i?h.splice(h.delegateCount++,0,f):h.push(f),T.event.global[d]=!0)},remove:function(t,n,e,r,i){var o,a,u,c,s,f,l,h,d,p,g,y=K.hasData(t)&&K.get(t);if(y&&(c=y.events)){for(s=(n=(n||"").match(z)||[""]).length;s--;)if(d=g=(u=Tt.exec(n[s])||[])[1],p=(u[2]||"").split(".").sort(),d){for(l=T.event.special[d]||{},h=c[d=(r?l.delegateType:l.bindType)||d]||[],u=u[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)f=h[o],!i&&g!==f.origType||e&&e.guid!==f.guid||u&&!u.test(f.namespace)||r&&r!==f.selector&&("**"!==r||!f.selector)||(h.splice(o,1),f.selector&&h.delegateCount--,l.remove&&l.remove.call(t,f));a&&!h.length&&(l.teardown&&!1!==l.teardown.call(t,p,y.handle)||T.removeEvent(t,d,y.handle),delete c[d])}else for(d in c)T.event.remove(t,d+n[s],e,r,!0);T.isEmptyObject(c)&&K.remove(t,"handle events")}},dispatch:function(t){var n,e,r,i,o,a,u=new Array(arguments.length),c=T.event.fix(t),s=(K.get(this,"events")||Object.create(null))[c.type]||[],f=T.event.special[c.type]||{};for(u[0]=c,n=1;n<arguments.length;n++)u[n]=arguments[n];if(c.delegateTarget=this,!f.preDispatch||!1!==f.preDispatch.call(this,c)){for(a=T.event.handlers.call(this,c,s),n=0;(i=a[n++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,e=0;(o=i.handlers[e++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==o.namespace&&!c.rnamespace.test(o.namespace)||(c.handleObj=o,c.data=o.data,void 0!==(r=((T.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,c),c.result}},handlers:function(t,n){var e,r,i,o,a,u=[],c=n.delegateCount,s=t.target;if(c&&s.nodeType&&!("click"===t.type&&t.button>=1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&("click"!==t.type||!0!==s.disabled)){for(o=[],a={},e=0;e<c;e++)void 0===a[i=(r=n[e]).selector+" "]&&(a[i]=r.needsContext?T(i,this).index(s)>-1:T.find(i,this,null,[s]).length),a[i]&&o.push(r);o.length&&u.push({elem:s,handlers:o})}return s=this,c<n.length&&u.push({elem:s,handlers:n.slice(c)}),u},addProp:function(t,n){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(n){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var n=this||t;return yt.test(n.type)&&n.click&&C(n,"input")&&Nt(n,"click",At),!1},trigger:function(t){var n=this||t;return yt.test(n.type)&&n.click&&C(n,"input")&&Nt(n,"click"),!0},_default:function(t){var n=t.target;return yt.test(n.type)&&n.click&&C(n,"input")&&K.get(n,"click")||C(n,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,n,e){t.removeEventListener&&t.removeEventListener(n,e)},T.Event=function(t,n){if(!(this instanceof T.Event))return new T.Event(t,n);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?At:St,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,n&&T.extend(this,n),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=At,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=At,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=At,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(t,n){T.event.special[t]={setup:function(){return Nt(this,t,Et),!1},trigger:function(){return Nt(this,t),!0},_default:function(){return!0},delegateType:n}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,n){T.event.special[t]={delegateType:n,bindType:n,handle:function(t){var e,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||T.contains(r,i))||(t.type=o.origType,e=o.handler.apply(this,arguments),t.type=n),e}}})),T.fn.extend({on:function(t,n,e,r){return kt(this,t,n,e,r)},one:function(t,n,e,r){return kt(this,t,n,e,r,1)},off:function(t,n,e){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,T(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,n,t[i]);return this}return!1!==n&&"function"!=typeof n||(e=n,n=void 0),!1===e&&(e=St),this.each((function(){T.event.remove(this,t,e,n)}))}});var Ct=/<script|<style|<link/i,Dt=/checked\s*(?:[^=]|=\s*.checked.)/i,Pt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qt(t,n){return C(t,"table")&&C(11!==n.nodeType?n:n.firstChild,"tr")&&T(t).children("tbody")[0]||t}function jt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Lt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ot(t,n){var e,r,i,o,a,u;if(1===n.nodeType){if(K.hasData(t)&&(u=K.get(t).events))for(i in K.remove(n,"handle events"),u)for(e=0,r=u[i].length;e<r;e++)T.event.add(n,i,u[i][e]);J.hasData(t)&&(o=J.access(t),a=T.extend({},o),J.set(n,a))}}function Rt(t,n){var e=n.nodeName.toLowerCase();"input"===e&&yt.test(t.type)?n.checked=t.checked:"input"!==e&&"textarea"!==e||(n.defaultValue=t.defaultValue)}function zt(t,n,e,r){n=c(n);var i,o,a,u,s,f,l=0,h=t.length,d=h-1,p=n[0],g=v(p);if(g||h>1&&"string"==typeof p&&!y.checkClone&&Dt.test(p))return t.each((function(i){var o=t.eq(i);g&&(n[0]=p.call(this,i,o.html())),zt(o,n,e,r)}));if(h&&(o=(i=Mt(n,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(a=T.map(_t(i,"script"),jt)).length;l<h;l++)s=i,l!==d&&(s=T.clone(s,!0,!0),u&&T.merge(a,_t(s,"script"))),e.call(t[l],s,l);if(u)for(f=a[a.length-1].ownerDocument,T.map(a,Lt),l=0;l<u;l++)s=a[l],mt.test(s.type||"")&&!K.access(s,"globalEval")&&T.contains(f,s)&&(s.src&&"module"!==(s.type||"").toLowerCase()?T._evalUrl&&!s.noModule&&T._evalUrl(s.src,{nonce:s.nonce||s.getAttribute("nonce")},f):x(s.textContent.replace(Pt,""),s,f))}return t}function It(t,n,e){for(var r,i=n?T.filter(n,t):t,o=0;null!=(r=i[o]);o++)e||1!==r.nodeType||T.cleanData(_t(r)),r.parentNode&&(e&&ut(r)&&xt(_t(r,"script")),r.parentNode.removeChild(r));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,n,e){var r,i,o,a,u=t.cloneNode(!0),c=ut(t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(a=_t(u),r=0,i=(o=_t(t)).length;r<i;r++)Rt(o[r],a[r]);if(n)if(e)for(o=o||_t(t),a=a||_t(u),r=0,i=o.length;r<i;r++)Ot(o[r],a[r]);else Ot(t,u);return(a=_t(u,"script")).length>0&&xt(a,!c&&_t(t,"script")),u},cleanData:function(t){for(var n,e,r,i=T.event.special,o=0;void 0!==(e=t[o]);o++)if(Z(e)){if(n=e[K.expando]){if(n.events)for(r in n.events)i[r]?T.event.remove(e,r):T.removeEvent(e,r,n.handle);e[K.expando]=void 0}e[J.expando]&&(e[J.expando]=void 0)}}}),T.fn.extend({detach:function(t){return It(this,t,!0)},remove:function(t){return It(this,t)},text:function(t){return W(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return zt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qt(this,t).appendChild(t)}))},prepend:function(){return zt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=qt(this,t);n.insertBefore(t,n.firstChild)}}))},before:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,n=0;null!=(t=this[n]);n++)1===t.nodeType&&(T.cleanData(_t(t,!1)),t.textContent="");return this},clone:function(t,n){return t=null!=t&&t,n=null==n?t:n,this.map((function(){return T.clone(this,t,n)}))},html:function(t){return W(this,(function(t){var n=this[0]||{},e=0,r=this.length;if(void 0===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof t&&!Ct.test(t)&&!bt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;e<r;e++)1===(n=this[e]||{}).nodeType&&(T.cleanData(_t(n,!1)),n.innerHTML=t);n=0}catch(t){}}n&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return zt(this,arguments,(function(n){var e=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(_t(this)),e&&e.replaceChild(n,this))}),t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,n){T.fn[t]=function(t){for(var e,r=[],i=T(t),o=i.length-1,a=0;a<=o;a++)e=a===o?this:this.clone(!0),T(i[a])[n](e),s.apply(r,e.get());return this.pushStack(r)}}));var Ht=new RegExp("^("+rt+")(?!px)[a-z%]+$","i"),Ft=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=r),n.getComputedStyle(t)},Bt=function(t,n,e){var r,i,o={};for(i in n)o[i]=t.style[i],t.style[i]=n[i];for(i in r=e.call(t),n)t.style[i]=o[i];return r},Ut=new RegExp(ot.join("|"),"i");function Yt(t,n,e){var r,i,o,a,u=t.style;return(e=e||Ft(t))&&(""!==(a=e.getPropertyValue(n)||e[n])||ut(t)||(a=T.style(t,n)),!y.pixelBoxStyles()&&Ht.test(a)&&Ut.test(n)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=e.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Wt(t,n){return{get:function(){if(!t())return(this.get=n).apply(this,arguments);delete this.get}}}!function(){function t(){if(f){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",f.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",at.appendChild(s).appendChild(f);var t=r.getComputedStyle(f);e="1%"!==t.top,c=12===n(t.marginLeft),f.style.right="60%",a=36===n(t.right),i=36===n(t.width),f.style.position="absolute",o=12===n(f.offsetWidth/3),at.removeChild(s),f=null}}function n(t){return Math.round(parseFloat(t))}var e,i,o,a,u,c,s=b.createElement("div"),f=b.createElement("div");f.style&&(f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===f.style.backgroundClip,T.extend(y,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),e},reliableMarginLeft:function(){return t(),c},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,e,i;return null==u&&(t=b.createElement("table"),n=b.createElement("tr"),e=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",e.style.height="9px",e.style.display="block",at.appendChild(t).appendChild(n).appendChild(e),i=r.getComputedStyle(n),u=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,at.removeChild(t)),u}}))}();var $t=["Webkit","Moz","ms"],Xt=b.createElement("div").style,Vt={};function Gt(t){return T.cssProps[t]||Vt[t]||(t in Xt?t:Vt[t]=function(t){for(var n=t[0].toUpperCase()+t.slice(1),e=$t.length;e--;)if((t=$t[e]+n)in Xt)return t}(t)||t)}var Zt=/^(none|table(?!-c[ea]).+)/,Qt=/^--/,Kt={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:"0",fontWeight:"400"};function tn(t,n,e){var r=it.exec(n);return r?Math.max(0,r[2]-(e||0))+(r[3]||"px"):n}function nn(t,n,e,r,i,o){var a="width"===n?1:0,u=0,c=0;if(e===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===e&&(c+=T.css(t,e+ot[a],!0,i)),r?("content"===e&&(c-=T.css(t,"padding"+ot[a],!0,i)),"margin"!==e&&(c-=T.css(t,"border"+ot[a]+"Width",!0,i))):(c+=T.css(t,"padding"+ot[a],!0,i),"padding"!==e?c+=T.css(t,"border"+ot[a]+"Width",!0,i):u+=T.css(t,"border"+ot[a]+"Width",!0,i));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(t["offset"+n[0].toUpperCase()+n.slice(1)]-o-c-u-.5))||0),c}function en(t,n,e){var r=Ft(t),i=(!y.boxSizingReliable()||e)&&"border-box"===T.css(t,"boxSizing",!1,r),o=i,a=Yt(t,n,r),u="offset"+n[0].toUpperCase()+n.slice(1);if(Ht.test(a)){if(!e)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&C(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===T.css(t,"boxSizing",!1,r),(o=u in t)&&(a=t[u])),(a=parseFloat(a)||0)+nn(t,n,e||(i?"border":"content"),o,r,a)+"px"}function rn(t,n,e,r,i){return new rn.prototype.init(t,n,e,r,i)}T.extend({cssHooks:{opacity:{get:function(t,n){if(n){var e=Yt(t,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,n,e,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=G(n),c=Qt.test(n),s=t.style;if(c||(n=Gt(u)),a=T.cssHooks[n]||T.cssHooks[u],void 0===e)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:s[n];"string"==(o=typeof e)&&(i=it.exec(e))&&i[1]&&(e=ft(t,n,i),o="number"),null!=e&&e==e&&("number"!==o||c||(e+=i&&i[3]||(T.cssNumber[u]?"":"px")),y.clearCloneStyle||""!==e||0!==n.indexOf("background")||(s[n]="inherit"),a&&"set"in a&&void 0===(e=a.set(t,e,r))||(c?s.setProperty(n,e):s[n]=e))}},css:function(t,n,e,r){var i,o,a,u=G(n);return Qt.test(n)||(n=Gt(u)),(a=T.cssHooks[n]||T.cssHooks[u])&&"get"in a&&(i=a.get(t,!0,e)),void 0===i&&(i=Yt(t,n,r)),"normal"===i&&n in Jt&&(i=Jt[n]),""===e||e?(o=parseFloat(i),!0===e||isFinite(o)?o||0:i):i}}),T.each(["height","width"],(function(t,n){T.cssHooks[n]={get:function(t,e,r){if(e)return!Zt.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?en(t,n,r):Bt(t,Kt,(function(){return en(t,n,r)}))},set:function(t,e,r){var i,o=Ft(t),a=!y.scrollboxSize()&&"absolute"===o.position,u=(a||r)&&"border-box"===T.css(t,"boxSizing",!1,o),c=r?nn(t,n,r,u,o):0;return u&&a&&(c-=Math.ceil(t["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(o[n])-nn(t,n,"border",!1,o)-.5)),c&&(i=it.exec(e))&&"px"!==(i[3]||"px")&&(t.style[n]=e,e=T.css(t,n)),tn(0,e,c)}}})),T.cssHooks.marginLeft=Wt(y.reliableMarginLeft,(function(t,n){if(n)return(parseFloat(Yt(t,"marginLeft"))||t.getBoundingClientRect().left-Bt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,n){T.cssHooks[t+n]={expand:function(e){for(var r=0,i={},o="string"==typeof e?e.split(" "):[e];r<4;r++)i[t+ot[r]+n]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(T.cssHooks[t+n].set=tn)})),T.fn.extend({css:function(t,n){return W(this,(function(t,n,e){var r,i,o={},a=0;if(Array.isArray(n)){for(r=Ft(t),i=n.length;a<i;a++)o[n[a]]=T.css(t,n[a],!1,r);return o}return void 0!==e?T.style(t,n,e):T.css(t,n)}),t,n,arguments.length>1)}}),T.Tween=rn,rn.prototype={constructor:rn,init:function(t,n,e,r,i,o){this.elem=t,this.prop=e,this.easing=i||T.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[e]?"":"px")},cur:function(){var t=rn.propHooks[this.prop];return t&&t.get?t.get(this):rn.propHooks._default.get(this)},run:function(t){var n,e=rn.propHooks[this.prop];return this.options.duration?this.pos=n=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=n=t,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),e&&e.set?e.set(this):rn.propHooks._default.set(this),this}},rn.prototype.init.prototype=rn.prototype,rn.propHooks={_default:{get:function(t){var n;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(n=T.css(t.elem,t.prop,""))&&"auto"!==n?n:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[Gt(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},rn.propHooks.scrollTop=rn.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=rn.prototype.init,T.fx.step={};var on,an,un=/^(?:toggle|show|hide)$/,cn=/queueHooks$/;function sn(){an&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(sn):r.setTimeout(sn,T.fx.interval),T.fx.tick())}function fn(){return r.setTimeout((function(){on=void 0})),on=Date.now()}function ln(t,n){var e,r=0,i={height:t};for(n=n?1:0;r<4;r+=2-n)i["margin"+(e=ot[r])]=i["padding"+e]=t;return n&&(i.opacity=i.width=t),i}function hn(t,n,e){for(var r,i=(dn.tweeners[n]||[]).concat(dn.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(e,n,t))return r}function dn(t,n,e){var r,i,o=0,a=dn.prefilters.length,u=T.Deferred().always((function(){delete c.elem})),c=function(){if(i)return!1;for(var n=on||fn(),e=Math.max(0,s.startTime+s.duration-n),r=1-(e/s.duration||0),o=0,a=s.tweens.length;o<a;o++)s.tweens[o].run(r);return u.notifyWith(t,[s,r,e]),r<1&&a?e:(a||u.notifyWith(t,[s,1,0]),u.resolveWith(t,[s]),!1)},s=u.promise({elem:t,props:T.extend({},n),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},e),originalProperties:n,originalOptions:e,startTime:on||fn(),duration:e.duration,tweens:[],createTween:function(n,e){var r=T.Tween(t,s.opts,n,e,s.opts.specialEasing[n]||s.opts.easing);return s.tweens.push(r),r},stop:function(n){var e=0,r=n?s.tweens.length:0;if(i)return this;for(i=!0;e<r;e++)s.tweens[e].run(1);return n?(u.notifyWith(t,[s,1,0]),u.resolveWith(t,[s,n])):u.rejectWith(t,[s,n]),this}}),f=s.props;for(function(t,n){var e,r,i,o,a;for(e in t)if(i=n[r=G(e)],o=t[e],Array.isArray(o)&&(i=o[1],o=t[e]=o[0]),e!==r&&(t[r]=o,delete t[e]),(a=T.cssHooks[r])&&"expand"in a)for(e in o=a.expand(o),delete t[r],o)e in t||(t[e]=o[e],n[e]=i);else n[r]=i}(f,s.opts.specialEasing);o<a;o++)if(r=dn.prefilters[o].call(s,t,f,s.opts))return v(r.stop)&&(T._queueHooks(s.elem,s.opts.queue).stop=r.stop.bind(r)),r;return T.map(f,hn,s),v(s.opts.start)&&s.opts.start.call(t,s),s.progress(s.opts.progress).done(s.opts.done,s.opts.complete).fail(s.opts.fail).always(s.opts.always),T.fx.timer(T.extend(c,{elem:t,anim:s,queue:s.opts.queue})),s}T.Animation=T.extend(dn,{tweeners:{"*":[function(t,n){var e=this.createTween(t,n);return ft(e.elem,t,it.exec(n),e),e}]},tweener:function(t,n){v(t)?(n=t,t=["*"]):t=t.match(z);for(var e,r=0,i=t.length;r<i;r++)e=t[r],dn.tweeners[e]=dn.tweeners[e]||[],dn.tweeners[e].unshift(n)},prefilters:[function(t,n,e){var r,i,o,a,u,c,s,f,l="width"in n||"height"in n,h=this,d={},p=t.style,g=t.nodeType&&st(t),y=K.get(t,"fxshow");for(r in e.queue||(null==(a=T._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,T.queue(t,"fx").length||a.empty.fire()}))}))),n)if(i=n[r],un.test(i)){if(delete n[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!y||void 0===y[r])continue;g=!0}d[r]=y&&y[r]||T.style(t,r)}if((c=!T.isEmptyObject(n))||!T.isEmptyObject(d))for(r in l&&1===t.nodeType&&(e.overflow=[p.overflow,p.overflowX,p.overflowY],null==(s=y&&y.display)&&(s=K.get(t,"display")),"none"===(f=T.css(t,"display"))&&(s?f=s:(dt([t],!0),s=t.style.display||s,f=T.css(t,"display"),dt([t]))),("inline"===f||"inline-block"===f&&null!=s)&&"none"===T.css(t,"float")&&(c||(h.done((function(){p.display=s})),null==s&&(f=p.display,s="none"===f?"":f)),p.display="inline-block")),e.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=e.overflow[0],p.overflowX=e.overflow[1],p.overflowY=e.overflow[2]}))),c=!1,d)c||(y?"hidden"in y&&(g=y.hidden):y=K.access(t,"fxshow",{display:s}),o&&(y.hidden=!g),g&&dt([t],!0),h.done((function(){for(r in g||dt([t]),K.remove(t,"fxshow"),d)T.style(t,r,d[r])}))),c=hn(g?y[r]:0,r,h),r in y||(y[r]=c.start,g&&(c.end=c.start,c.start=0))}],prefilter:function(t,n){n?dn.prefilters.unshift(t):dn.prefilters.push(t)}}),T.speed=function(t,n,e){var r=t&&"object"==typeof t?T.extend({},t):{complete:e||!e&&n||v(t)&&t,duration:t,easing:e&&n||n&&!v(n)&&n};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(t,n,e,r){return this.filter(st).css("opacity",0).show().end().animate({opacity:n},t,e,r)},animate:function(t,n,e,r){var i=T.isEmptyObject(t),o=T.speed(n,e,r),a=function(){var n=dn(this,T.extend({},t),o);(i||K.get(this,"finish"))&&n.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,n,e){var r=function(t){var n=t.stop;delete t.stop,n(e)};return"string"!=typeof t&&(e=n,n=t,t=void 0),n&&this.queue(t||"fx",[]),this.each((function(){var n=!0,i=null!=t&&t+"queueHooks",o=T.timers,a=K.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&cn.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(e),n=!1,o.splice(i,1));!n&&e||T.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var n,e=K.get(this),r=e[t+"queue"],i=e[t+"queueHooks"],o=T.timers,a=r?r.length:0;for(e.finish=!0,T.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),n=o.length;n--;)o[n].elem===this&&o[n].queue===t&&(o[n].anim.stop(!0),o.splice(n,1));for(n=0;n<a;n++)r[n]&&r[n].finish&&r[n].finish.call(this);delete e.finish}))}}),T.each(["toggle","show","hide"],(function(t,n){var e=T.fn[n];T.fn[n]=function(t,r,i){return null==t||"boolean"==typeof t?e.apply(this,arguments):this.animate(ln(n,!0),t,r,i)}})),T.each({slideDown:ln("show"),slideUp:ln("hide"),slideToggle:ln("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,n){T.fn[t]=function(t,e,r){return this.animate(n,t,e,r)}})),T.timers=[],T.fx.tick=function(){var t,n=0,e=T.timers;for(on=Date.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||T.fx.stop(),on=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){an||(an=!0,sn())},T.fx.stop=function(){an=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,n){return t=T.fx&&T.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,e){var i=r.setTimeout(n,t);e.stop=function(){r.clearTimeout(i)}}))},function(){var t=b.createElement("input"),n=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",y.checkOn=""!==t.value,y.optSelected=n.selected,(t=b.createElement("input")).value="t",t.type="radio",y.radioValue="t"===t.value}();var pn,gn=T.expr.attrHandle;T.fn.extend({attr:function(t,n){return W(this,T.attr,t,n,arguments.length>1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?T.prop(t,n,e):(1===o&&T.isXMLDoc(t)||(i=T.attrHooks[n.toLowerCase()]||(T.expr.match.bool.test(n)?pn:void 0)),void 0!==e?null===e?void T.removeAttr(t,n):i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:(t.setAttribute(n,e+""),e):i&&"get"in i&&null!==(r=i.get(t,n))?r:null==(r=T.find.attr(t,n))?void 0:r)},attrHooks:{type:{set:function(t,n){if(!y.radioValue&&"radio"===n&&C(t,"input")){var e=t.value;return t.setAttribute("type",n),e&&(t.value=e),n}}}},removeAttr:function(t,n){var e,r=0,i=n&&n.match(z);if(i&&1===t.nodeType)for(;e=i[r++];)t.removeAttribute(e)}}),pn={set:function(t,n,e){return!1===n?T.removeAttr(t,e):t.setAttribute(e,e),e}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,n){var e=gn[n]||T.find.attr;gn[n]=function(t,n,r){var i,o,a=n.toLowerCase();return r||(o=gn[a],gn[a]=i,i=null!=e(t,n,r)?a:null,gn[a]=o),i}}));var yn=/^(?:input|select|textarea|button)$/i,vn=/^(?:a|area)$/i;function mn(t){return(t.match(z)||[]).join(" ")}function bn(t){return t.getAttribute&&t.getAttribute("class")||""}function _n(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(z)||[]}T.fn.extend({prop:function(t,n){return W(this,T.prop,t,n,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(t)||(n=T.propFix[n]||n,i=T.propHooks[n]),void 0!==e?i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:t[n]=e:i&&"get"in i&&null!==(r=i.get(t,n))?r:t[n]},propHooks:{tabIndex:{get:function(t){var n=T.find.attr(t,"tabindex");return n?parseInt(n,10):yn.test(t.nodeName)||vn.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(T.propHooks.selected={get:function(t){var n=t.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(t){var n=t.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var n,e,r,i,o,a,u,c=0;if(v(t))return this.each((function(n){T(this).addClass(t.call(this,n,bn(this)))}));if((n=_n(t)).length)for(;e=this[c++];)if(i=bn(e),r=1===e.nodeType&&" "+mn(i)+" "){for(a=0;o=n[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(u=mn(r))&&e.setAttribute("class",u)}return this},removeClass:function(t){var n,e,r,i,o,a,u,c=0;if(v(t))return this.each((function(n){T(this).removeClass(t.call(this,n,bn(this)))}));if(!arguments.length)return this.attr("class","");if((n=_n(t)).length)for(;e=this[c++];)if(i=bn(e),r=1===e.nodeType&&" "+mn(i)+" "){for(a=0;o=n[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(u=mn(r))&&e.setAttribute("class",u)}return this},toggleClass:function(t,n){var e=typeof t,r="string"===e||Array.isArray(t);return"boolean"==typeof n&&r?n?this.addClass(t):this.removeClass(t):v(t)?this.each((function(e){T(this).toggleClass(t.call(this,e,bn(this),n),n)})):this.each((function(){var n,i,o,a;if(r)for(i=0,o=T(this),a=_n(t);n=a[i++];)o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==t&&"boolean"!==e||((n=bn(this))&&K.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":K.get(this,"__className__")||""))}))},hasClass:function(t){var n,e,r=0;for(n=" "+t+" ";e=this[r++];)if(1===e.nodeType&&(" "+mn(bn(e))+" ").indexOf(n)>-1)return!0;return!1}});var xn=/\r/g;T.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=v(t),this.each((function(e){var i;1===this.nodeType&&(null==(i=r?t.call(this,e,T(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(t){return null==t?"":t+""}))),(n=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,i,"value")||(this.value=i))}))):i?(n=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:"string"==typeof(e=i.value)?e.replace(xn,""):null==e?"":e:void 0}}),T.extend({valHooks:{option:{get:function(t){var n=T.find.attr(t,"value");return null!=n?n:mn(T.text(t))}},select:{get:function(t){var n,e,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,u=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r<c;r++)if(((e=i[r]).selected||r===o)&&!e.disabled&&(!e.parentNode.disabled||!C(e.parentNode,"optgroup"))){if(n=T(e).val(),a)return n;u.push(n)}return u},set:function(t,n){for(var e,r,i=t.options,o=T.makeArray(n),a=i.length;a--;)((r=i[a]).selected=T.inArray(T.valHooks.option.get(r),o)>-1)&&(e=!0);return e||(t.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,n){if(Array.isArray(n))return t.checked=T.inArray(T(t).val(),n)>-1}},y.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),y.focusin="onfocusin"in r;var wn=/^(?:focusinfocus|focusoutblur)$/,Mn=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,n,e,i){var o,a,u,c,s,f,l,h,p=[e||b],g=d.call(t,"type")?t.type:t,y=d.call(t,"namespace")?t.namespace.split("."):[];if(a=h=u=e=e||b,3!==e.nodeType&&8!==e.nodeType&&!wn.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(y=g.split("."),g=y.shift(),y.sort()),s=g.indexOf(":")<0&&"on"+g,(t=t[T.expando]?t:new T.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),n=null==n?[t]:T.makeArray(n,[t]),l=T.event.special[g]||{},i||!l.trigger||!1!==l.trigger.apply(e,n))){if(!i&&!l.noBubble&&!m(e)){for(c=l.delegateType||g,wn.test(c+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),u=a;u===(e.ownerDocument||b)&&p.push(u.defaultView||u.parentWindow||r)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?c:l.bindType||g,(f=(K.get(a,"events")||Object.create(null))[t.type]&&K.get(a,"handle"))&&f.apply(a,n),(f=s&&a[s])&&f.apply&&Z(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||l._default&&!1!==l._default.apply(p.pop(),n)||!Z(e)||s&&v(e[g])&&!m(e)&&((u=e[s])&&(e[s]=null),T.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Mn),e[g](),t.isPropagationStopped()&&h.removeEventListener(g,Mn),T.event.triggered=void 0,u&&(e[s]=u)),t.result}},simulate:function(t,n,e){var r=T.extend(new T.Event,e,{type:t,isSimulated:!0});T.event.trigger(r,null,n)}}),T.fn.extend({trigger:function(t,n){return this.each((function(){T.event.trigger(t,n,this)}))},triggerHandler:function(t,n){var e=this[0];if(e)return T.event.trigger(t,n,e,!0)}}),y.focusin||T.each({focus:"focusin",blur:"focusout"},(function(t,n){var e=function(t){T.event.simulate(n,t.target,T.event.fix(t))};T.event.special[n]={setup:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,n);i||r.addEventListener(t,e,!0),K.access(r,n,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,n)-1;i?K.access(r,n,i):(r.removeEventListener(t,e,!0),K.remove(r,n))}}}));var Tn=r.location,An={guid:Date.now()},Sn=/\?/;T.parseXML=function(t){var n,e;if(!t||"string"!=typeof t)return null;try{n=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return e=n&&n.getElementsByTagName("parsererror")[0],n&&!e||T.error("Invalid XML: "+(e?T.map(e.childNodes,(function(t){return t.textContent})).join("\n"):t)),n};var En=/\[\]$/,kn=/\r?\n/g,Nn=/^(?:submit|button|image|reset|file)$/i,Cn=/^(?:input|select|textarea|keygen)/i;function Dn(t,n,e,r){var i;if(Array.isArray(n))T.each(n,(function(n,i){e||En.test(t)?r(t,i):Dn(t+"["+("object"==typeof i&&null!=i?n:"")+"]",i,e,r)}));else if(e||"object"!==w(n))r(t,n);else for(i in n)Dn(t+"["+i+"]",n[i],e,r)}T.param=function(t,n){var e,r=[],i=function(t,n){var e=v(n)?n():n;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){i(this.name,this.value)}));else for(e in t)Dn(e,t[e],n,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Cn.test(this.nodeName)&&!Nn.test(t)&&(this.checked||!yt.test(t))})).map((function(t,n){var e=T(this).val();return null==e?null:Array.isArray(e)?T.map(e,(function(t){return{name:n.name,value:t.replace(kn,"\r\n")}})):{name:n.name,value:e.replace(kn,"\r\n")}})).get()}});var Pn=/%20/g,qn=/#.*$/,jn=/([?&])_=[^&]*/,Ln=/^(.*?):[ \t]*([^\r\n]*)$/gm,On=/^(?:GET|HEAD)$/,Rn=/^\/\//,zn={},In={},Hn="*/".concat("*"),Fn=b.createElement("a");function Bn(t){return function(n,e){"string"!=typeof n&&(e=n,n="*");var r,i=0,o=n.toLowerCase().match(z)||[];if(v(e))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(e)):(t[r]=t[r]||[]).push(e)}}function Un(t,n,e,r){var i={},o=t===In;function a(u){var c;return i[u]=!0,T.each(t[u]||[],(function(t,u){var s=u(n,e,r);return"string"!=typeof s||o||i[s]?o?!(c=s):void 0:(n.dataTypes.unshift(s),a(s),!1)})),c}return a(n.dataTypes[0])||!i["*"]&&a("*")}function Yn(t,n){var e,r,i=T.ajaxSettings.flatOptions||{};for(e in n)void 0!==n[e]&&((i[e]?t:r||(r={}))[e]=n[e]);return r&&T.extend(!0,t,r),t}Fn.href=Tn.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tn.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,n){return n?Yn(Yn(t,T.ajaxSettings),n):Yn(T.ajaxSettings,t)},ajaxPrefilter:Bn(zn),ajaxTransport:Bn(In),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var e,i,o,a,u,c,s,f,l,h,d=T.ajaxSetup({},n),p=d.context||d,g=d.context&&(p.nodeType||p.jquery)?T(p):T.event,y=T.Deferred(),v=T.Callbacks("once memory"),m=d.statusCode||{},_={},x={},w="canceled",M={readyState:0,getResponseHeader:function(t){var n;if(s){if(!a)for(a={};n=Ln.exec(o);)a[n[1].toLowerCase()+" "]=(a[n[1].toLowerCase()+" "]||[]).concat(n[2]);n=a[t.toLowerCase()+" "]}return null==n?null:n.join(", ")},getAllResponseHeaders:function(){return s?o:null},setRequestHeader:function(t,n){return null==s&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,_[t]=n),this},overrideMimeType:function(t){return null==s&&(d.mimeType=t),this},statusCode:function(t){var n;if(t)if(s)M.always(t[M.status]);else for(n in t)m[n]=[m[n],t[n]];return this},abort:function(t){var n=t||w;return e&&e.abort(n),A(0,n),this}};if(y.promise(M),d.url=((t||d.url||Tn.href)+"").replace(Rn,Tn.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(z)||[""],null==d.crossDomain){c=b.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Fn.protocol+"//"+Fn.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=T.param(d.data,d.traditional)),Un(zn,d,n,M),s)return M;for(l in(f=T.event&&d.global)&&0==T.active++&&T.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!On.test(d.type),i=d.url.replace(qn,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Pn,"+")):(h=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Sn.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(jn,"$1"),h=(Sn.test(i)?"&":"?")+"_="+An.guid+++h),d.url=i+h),d.ifModified&&(T.lastModified[i]&&M.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&M.setRequestHeader("If-None-Match",T.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&M.setRequestHeader("Content-Type",d.contentType),M.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Hn+"; q=0.01":""):d.accepts["*"]),d.headers)M.setRequestHeader(l,d.headers[l]);if(d.beforeSend&&(!1===d.beforeSend.call(p,M,d)||s))return M.abort();if(w="abort",v.add(d.complete),M.done(d.success),M.fail(d.error),e=Un(In,d,n,M)){if(M.readyState=1,f&&g.trigger("ajaxSend",[M,d]),s)return M;d.async&&d.timeout>0&&(u=r.setTimeout((function(){M.abort("timeout")}),d.timeout));try{s=!1,e.send(_,A)}catch(t){if(s)throw t;A(-1,t)}}else A(-1,"No Transport");function A(t,n,a,c){var l,h,b,_,x,w=n;s||(s=!0,u&&r.clearTimeout(u),e=void 0,o=c||"",M.readyState=t>0?4:0,l=t>=200&&t<300||304===t,a&&(_=function(t,n,e){for(var r,i,o,a,u=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=t.mimeType||n.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){c.unshift(i);break}if(c[0]in e)o=c[0];else{for(i in e){if(!c[0]||t.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),e[o]}(d,M,a)),!l&&T.inArray("script",d.dataTypes)>-1&&T.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),_=function(t,n,e,r){var i,o,a,u,c,s={},f=t.dataTypes.slice();if(f[1])for(a in t.converters)s[a.toLowerCase()]=t.converters[a];for(o=f.shift();o;)if(t.responseFields[o]&&(e[t.responseFields[o]]=n),!c&&r&&t.dataFilter&&(n=t.dataFilter(n,t.dataType)),c=o,o=f.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=s[c+" "+o]||s["* "+o]))for(i in s)if((u=i.split(" "))[1]===o&&(a=s[c+" "+u[0]]||s["* "+u[0]])){!0===a?a=s[i]:!0!==s[i]&&(o=u[0],f.unshift(u[1]));break}if(!0!==a)if(a&&t.throws)n=a(n);else try{n=a(n)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+c+" to "+o}}}return{state:"success",data:n}}(d,_,M,l),l?(d.ifModified&&((x=M.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=x),(x=M.getResponseHeader("etag"))&&(T.etag[i]=x)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=_.state,h=_.data,l=!(b=_.error))):(b=w,!t&&w||(w="error",t<0&&(t=0))),M.status=t,M.statusText=(n||w)+"",l?y.resolveWith(p,[h,w,M]):y.rejectWith(p,[M,w,b]),M.statusCode(m),m=void 0,f&&g.trigger(l?"ajaxSuccess":"ajaxError",[M,d,l?h:b]),v.fireWith(p,[M,w]),f&&(g.trigger("ajaxComplete",[M,d]),--T.active||T.event.trigger("ajaxStop")))}return M},getJSON:function(t,n,e){return T.get(t,n,e,"json")},getScript:function(t,n){return T.get(t,void 0,n,"script")}}),T.each(["get","post"],(function(t,n){T[n]=function(t,e,r,i){return v(e)&&(i=i||r,r=e,e=void 0),T.ajax(T.extend({url:t,type:n,dataType:i,data:e,success:r},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var n;for(n in t.headers)"content-type"===n.toLowerCase()&&(t.contentType=t.headers[n]||"")})),T._evalUrl=function(t,n,e){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,n,e)}})},T.fn.extend({wrapAll:function(t){var n;return this[0]&&(v(t)&&(t=t.call(this[0])),n=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(n){T(this).wrapInner(t.call(this,n))})):this.each((function(){var n=T(this),e=n.contents();e.length?e.wrapAll(t):n.append(t)}))},wrap:function(t){var n=v(t);return this.each((function(e){T(this).wrapAll(n?t.call(this,e):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Wn={0:200,1223:204},$n=T.ajaxSettings.xhr();y.cors=!!$n&&"withCredentials"in $n,y.ajax=$n=!!$n,T.ajaxTransport((function(t){var n,e;if(y.cors||$n&&!t.crossDomain)return{send:function(i,o){var a,u=t.xhr();if(u.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];for(a in t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)u.setRequestHeader(a,i[a]);n=function(t){return function(){n&&(n=e=u.onload=u.onerror=u.onabort=u.ontimeout=u.onreadystatechange=null,"abort"===t?u.abort():"error"===t?"number"!=typeof u.status?o(0,"error"):o(u.status,u.statusText):o(Wn[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!=typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=n(),e=u.onerror=u.ontimeout=n("error"),void 0!==u.onabort?u.onabort=e:u.onreadystatechange=function(){4===u.readyState&&r.setTimeout((function(){n&&e()}))},n=n("abort");try{u.send(t.hasContent&&t.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var n,e;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){n=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",e=function(t){n.remove(),e=null,t&&i("error"===t.type?404:200,t.type)}),b.head.appendChild(n[0])},abort:function(){e&&e()}}}));var Xn,Vn=[],Gn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Vn.pop()||T.expando+"_"+An.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",(function(t,n,e){var i,o,a,u=!1!==t.jsonp&&(Gn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gn.test(t.data)&&"data");if(u||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(Gn,"$1"+i):!1!==t.jsonp&&(t.url+=(Sn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||T.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},e.always((function(){void 0===o?T(r).removeProp(i):r[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Vn.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),y.createHTMLDocument=((Xn=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xn.childNodes.length),T.parseHTML=function(t,n,e){return"string"!=typeof t?[]:("boolean"==typeof n&&(e=n,n=!1),n||(y.createHTMLDocument?((r=(n=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,n.head.appendChild(r)):n=b),o=!e&&[],(i=D.exec(t))?[n.createElement(i[1])]:(i=Mt([t],n,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes)));var r,i,o},T.fn.load=function(t,n,e){var r,i,o,a=this,u=t.indexOf(" ");return u>-1&&(r=mn(t.slice(u)),t=t.slice(0,u)),v(n)?(e=n,n=void 0):n&&"object"==typeof n&&(i="POST"),a.length>0&&T.ajax({url:t,type:i||"GET",dataType:"html",data:n}).done((function(t){o=arguments,a.html(r?T("<div>").append(T.parseHTML(t)).find(r):t)})).always(e&&function(t,n){a.each((function(){e.apply(this,o||[t.responseText,n,t])}))}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,(function(n){return t===n.elem})).length},T.offset={setOffset:function(t,n,e){var r,i,o,a,u,c,s=T.css(t,"position"),f=T(t),l={};"static"===s&&(t.style.position="relative"),u=f.offset(),o=T.css(t,"top"),c=T.css(t,"left"),("absolute"===s||"fixed"===s)&&(o+c).indexOf("auto")>-1?(a=(r=f.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),v(n)&&(n=n.call(t,e,T.extend({},u))),null!=n.top&&(l.top=n.top-u.top+a),null!=n.left&&(l.left=n.left-u.left+i),"using"in n?n.using.call(t,l):f.css(l)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(n){T.offset.setOffset(this,t,n)}));var n,e,r=this[0];return r?r.getClientRects().length?(n=r.getBoundingClientRect(),e=r.ownerDocument.defaultView,{top:n.top+e.pageYOffset,left:n.left+e.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,n,e,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))n=r.getBoundingClientRect();else{for(n=this.offset(),e=r.ownerDocument,t=r.offsetParent||e.documentElement;t&&(t===e.body||t===e.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),i.left+=T.css(t,"borderLeftWidth",!0))}return{top:n.top-i.top-T.css(r,"marginTop",!0),left:n.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||at}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,n){var e="pageYOffset"===n;T.fn[t]=function(r){return W(this,(function(t,r,i){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[n]:t[r];o?o.scrollTo(e?o.pageXOffset:i,e?i:o.pageYOffset):t[r]=i}),t,r,arguments.length)}})),T.each(["top","left"],(function(t,n){T.cssHooks[n]=Wt(y.pixelPosition,(function(t,e){if(e)return e=Yt(t,n),Ht.test(e)?T(t).position()[n]+"px":e}))})),T.each({Height:"height",Width:"width"},(function(t,n){T.each({padding:"inner"+t,content:n,"":"outer"+t},(function(e,r){T.fn[r]=function(i,o){var a=arguments.length&&(e||"boolean"!=typeof i),u=e||(!0===i||!0===o?"margin":"border");return W(this,(function(n,e,i){var o;return m(n)?0===r.indexOf("outer")?n["inner"+t]:n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?T.css(n,e,u):T.style(n,e,i,u)}),n,a?i:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,n){T.fn[n]=function(t){return this.on(n,t)}})),T.fn.extend({bind:function(t,n,e){return this.on(t,null,n,e)},unbind:function(t,n){return this.off(t,null,n)},delegate:function(t,n,e,r){return this.on(n,t,e,r)},undelegate:function(t,n,e){return 1===arguments.length?this.off(t,"**"):this.off(n,t||"**",e)},hover:function(t,n){return this.mouseenter(t).mouseleave(n||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,n){T.fn[n]=function(t,e){return arguments.length>0?this.on(n,null,t,e):this.trigger(n)}}));var Zn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(t,n){var e,r,i;if("string"==typeof n&&(e=t[n],n=t,t=e),v(t))return r=u.call(arguments,2),(i=function(){return t.apply(n||this,r.concat(u.call(arguments)))}).guid=t.guid=t.guid||T.guid++,i},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=v,T.isWindow=m,T.camelCase=G,T.type=w,T.now=Date.now,T.isNumeric=function(t){var n=T.type(t);return("number"===n||"string"===n)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(Zn,"")},void 0===(e=function(){return T}.apply(n,[]))||(t.exports=e);var Qn=r.jQuery,Kn=r.$;return T.noConflict=function(t){return r.$===T&&(r.$=Kn),t&&r.jQuery===T&&(r.jQuery=Qn),T},void 0===i&&(r.jQuery=r.$=T),T}))},80:function(t,n,e){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});const o=r(e(176)),a=i(e(291));let u,c;c=document.body.clientWidth,u=document.body.clientHeight;const s=450,f=a.default("#resetTree"),l=a.default("#expandTree");let h=0,d=0,p=o.tree().size([u,c]);const g=o.hierarchy(treeData,(function(t){return t.children}));g.x0=u/2,g.y0=0;const y=o.select("body").append("div").style("opacity",1e-6).attr("class","tooltip");function v(){y.style("opacity",1e-6),y.style("display","none")}const m=o.zoom().scaleExtent([.3,3]).on("zoom",(function(t){_.attr("transform",t.transform),v()})),b=o.select("svg#tree-container").attr("width",c).attr("height",u).call(m),_=b.append("g").attr("id","svg-group").attr("transform","translate(0,0)");function x(t){t.each((function(t){return t.bbox=this.getBBox(),t.bbox}))}function w(t){return t.split(/(?=[A-Z])/).map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")}function M(t){t.children&&(t._children=t.children,t._children.forEach(M),t.children=null)}function T(t){if(t._children&&(t.children=t._children,t._children=null),t.children){const n=t.children.length;for(let e=0;e<n;e++)t.children[e].name&&T(t.children[e])}}function A(t){t._children&&(t.children=t._children,t._children=null);const n=t.children?t.children:t._children;n&&n.forEach(A)}function S(t,n,e){if(!t)return;n(t);const r=e(t);if(r){const t=r.length;for(let i=0;i<t;i++)S(r[i],n,e)}}function E(t,n){const e=n||2,r=o.zoomTransform(b.node());let i=-t.y0,a=-t.x0;i=i*r.k+c/e,a=a*r.k+u/2,o.select("svg#tree-container").transition().duration(s).call(m.transform,o.zoomIdentity.translate(i,a).scale(r.k))}function k(t){let n,e=0;return t.source.id&&(n=o.select("#n-"+t.source.id).node()),n&&(e=n.getBBox().width),"M"+(t.source.y+e+20)+","+t.source.x+"H"+(t.target.y-15)+"V"+t.target.x+"h15"}function N(t,n){const e=n||[],r=t.parent;if(r){const n=r.children||r._children;return e.unshift(n.indexOf(t)),N(r,e)}return e}function C(t){const n=[1];!function t(e,r){r.children&&r.children.length>0&&(n.length<=e+1&&n.push(0),n[e+1]+=r.children.length,r.children.forEach((function(n){t(e+1,n)})))}(0,g);const e=40*o.max(n);p=p.size([e,c]);const r=p(g),i=r.descendants(),a=r.links();i.forEach((function(t){t.y=t.depth*(5*d)}));const u=_.selectAll("g.node").data(i,(function(t){return t.id||(t.id=++h)})),f=u.enter().append("g").attr("class","node").attr("id",(function(t){return"n-"+t.id})).attr("transform",(function(){return"translate("+t.y0+","+t.x0+")"}));f.append("text").attr("class","node-text").attr("dy",".35em").attr("x",10).attr("text-anchor","start").attr("text-decoration",(function(t){return t.data.description?"underline":"none"})).attr("cursor",(function(t){return t.data.description?"pointer":"default"})).text((function(t){return w(t.data.name)})).on("click",(function(t,n){!function(t,n){n.data.description||n.data.type?(y.transition().duration(300).style("opacity",1).style("display","flex"),y.html(function(t){const n='<div class="tip_prop">'+t.data.name+" </div>",e='<div class="tip_desc">'+t.data.description+"</div>",r='<div class="tip_type">'+t.data.type+"</div>",i='<div class="tip_enums">'+t.data.type.replaceAll("|"," | ")+"</div>",o='<div class="tip_control">'+t.data.control+"</div>";let a='<div id="b1"><svg id="close-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g>\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M3.71313 3L3.00699 3.7049L6.79636 7.497L3 11.2941L3.70714 12L7.5025 8.20391L11.2939 11.996L12 11.2901L8.20863 7.497L11.994 3.71089L11.2869 3.00499L7.5025 6.7901L3.71313 3Z"\n fill="#C5C5C5"\n />\n </g>\n </svg></div>';return a+=n,t.data.description&&(a+=e),t.data.type&&(a+='<div class="tip_type-container">',t.data.type.includes("|")?a+=i:a+=r),t.data.artifact&&(a+='<div class="tip_type">'+w(t.data.artifact)+"</div>"),t.data.control&&(a+=o),t.data.type&&(a+="</div>"),a}(n)),o.select("#b1").on("click",(function(){v()}))):n.data.type||v();const e=b.node().getBoundingClientRect().width-420,r=b.node().getBoundingClientRect().height-220;t.pageX>e&&t.pageY>r?y.style("top",t.pageY-20+"px").style("left",t.pageX-20+"px").style("transform","translate(-100%, -100%)"):t.pageX>e&&!(t.pageY>r)?y.style("top",t.pageY+20+"px").style("left",t.pageX-20+"px").style("transform","translate(-100%, 0)"):!(t.pageX>e)&&t.pageY>r?y.style("top",t.pageY-20+"px").style("left",t.pageX+20+"px").style("transform","translate(0, -100%)"):y.style("top",t.pageY+20+"px").style("left",t.pageX+20+"px").style("transform","translate(0, 0)")}(t,n)})).call(x);const l=f.filter((function(t){if(t.data.children.length>0)return t.data.children}));l.append("text").attr("class","node-child-text").attr("x",(function(t){return t.bbox.x+t.bbox.width+20})).attr("dy",".35em").text((function(t){return t.data.children.length})).call(x),l.insert("rect","text").attr("class","node-child").attr("x",(function(t){return t.bbox.x-7})).attr("y",(function(t){return t.bbox.y-1})).attr("width",(function(t){return t.bbox.width+14})).attr("height",(function(t){return t.bbox.height+2})).attr("ry","8"),l.append("text").attr("class","node-circle-text").attr("x",(function(t){return t.bbox.x+t.bbox.width+15})).attr("dy",".35em").text("+").on("click",D).call(x),l.insert("circle","text").attr("class","node-circle").attr("r",(function(t){return t.bbox.height/2})).attr("cx",(function(t){return t.bbox.x+t.bbox.width/2})).attr("cy",(function(t){return t.bbox.y+t.bbox.height/2})).on("click",D);const m=f.merge(u);m.transition().duration(s).attr("transform",(function(t){return"translate("+t.y+","+t.x+")"})),m.select("rect").style("fill",(function(t){return t._children?"var(--vscode-foreground)":"var(--vscode-editor-background)"})).style("stroke",(function(t){return t._children?"none":"var( --vscode-editorWidget-border)"})).style("stroke-width",(function(t){return t._children?"none":"1px solid"})),m.select("circle").style("fill",(function(t){return t._children?"var(--vscode-button-background)":"var(--vscode-button-secondaryBackground)"})),m.select(".node-child-text").style("fill",(function(t){return t._children?"var( --vscode-editor-background)":"var(--vscode-foreground)"})),m.select(".node-circle-text").text((function(t){return t._children?"+":"−"})),m.selectAll("text").style("fill-opacity",1);const M=u.exit().transition().duration(s).attr("transform",(function(){return"translate("+t.y+","+t.x+")"})).remove();M.select("circle").attr("r",1e-6).style("fill-opacity",1e-6),M.selectAll("rect").attr("x",1e-6).style("fill-opacity",1e-6),M.selectAll("text").style("fill-opacity",1e-6);const T=_.selectAll("path.link").data(a,(function(t){return t.target.id}));T.enter().insert("path","g").attr("class","link").attr("d",(function(){const n={x:t.x0,y:t.y0};return k({source:n,target:n})})).merge(T).transition().duration(s).attr("d",k),T.exit().transition().duration(s).attr("d",(function(){const n={x:t.x,y:t.y};return k({source:n,target:n})})).remove(),i.forEach((function(t){t.x0=t.x,t.y0=t.y}))}function D(t,n){t.defaultPrevented||(C(n=function(t){return t.children?M(t):t._children&&T(t),t}(n)),E(n,2),v())}S(treeData,(function(t){d=Math.max(t.name.length+25,d)}),(function(t){return t.children&&t.children.length>0?t.children:null})),g.children.forEach(M),C(g),E(g,2.5),function(){const t=[];S(g,(function(n){n&&t.push(n.data.name+"|"+N(n,[]).join("-"))}),(function(t){return t.children||t._children})),t.splice(t.indexOf(g.data.name+"|"),1),t.sort(),function(t){const n=a.default("ul#search-result"),e=a.default("#search-input");a.default.each(t,(function(t,e){const r=e.split("|");a.default("<li/>").attr("data-path",r[1]).text(w(r[0])).appendTo(n)})),e.on("keyup",(function(){let t=a.default(this).val();var e;t=t.toUpperCase(),t.length>0?(e=t,a.default("#search-result li").each((function(){a.default(this).text().toUpperCase().indexOf(e)>=0?a.default(this).show():a.default(this).hide()})),n.show()):n.hide()})),n.hide(),a.default("#search-result li").on("click",(function(t){!function(t){let n=4;const e=a.default("#n-"+t.id+" text");for(;n--;)e.fadeTo(350,0).fadeTo(350,1)}(function(t){let n=g;for(let e=0;e<t.length;e++)n._children&&T(n),n=n.children[t[e]];return C(g),E(n,2),n}(a.default(t.target).attr("data-path").split("-")))}))}(t)}(),a.default("#n-1").append(floorPlanIcon),o.select("#floorPlan-icon").attr("y",-7).attr("x",-15),f.on("click",(function(){g.children.forEach(M),C(g),E(g,2.5)})),l.on("click",(function(){A(g),C(g),E(g,5)})),o.select(window).on("resize",(function(){c=a.default(window).width(),u=a.default(window).height(),b.attr("width",c),b.attr("height",u),E(g,5)}))}},n={};function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={exports:{}};return t[r].call(o.exports,o,o.exports,e),o.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e(80)})();
2
+ (()=>{var t={291:function(t,n){var e;!function(n,e){"use strict";"object"==typeof t.exports?t.exports=n.document?e(n,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(n)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,u=o.slice,c=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},s=o.push,f=o.indexOf,l={},h=l.toString,d=l.hasOwnProperty,p=d.toString,g=p.call(Object),y={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},m=function(t){return null!=t&&t===t.window},b=r.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,n,e){var r,i,o=(e=e||b).createElement("script");if(o.text=t,n)for(r in _)(i=n[r]||n.getAttribute&&n.getAttribute(r))&&o.setAttribute(r,i);e.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[h.call(t)]||"object":typeof t}var M="3.6.0",T=function(t,n){return new T.fn.init(t,n)};function A(t){var n=!!t&&"length"in t&&t.length,e=w(t);return!v(t)&&!m(t)&&("array"===e||0===n||"number"==typeof n&&n>0&&n-1 in t)}T.fn=T.prototype={jquery:M,constructor:T,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var n=T.merge(this.constructor(),t);return n.prevObject=this,n},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(n,e){return t.call(n,e,n)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,n){return(n+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,n){return n%2})))},eq:function(t){var n=this.length,e=+t+(t<0?n:0);return this.pushStack(e>=0&&e<n?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var t,n,e,r,i,o,a=arguments[0]||{},u=1,c=arguments.length,s=!1;for("boolean"==typeof a&&(s=a,a=arguments[u]||{},u++),"object"==typeof a||v(a)||(a={}),u===c&&(a=this,u--);u<c;u++)if(null!=(t=arguments[u]))for(n in t)r=t[n],"__proto__"!==n&&a!==r&&(s&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(e=a[n],o=i&&!Array.isArray(e)?[]:i||T.isPlainObject(e)?e:{},i=!1,a[n]=T.extend(s,o,r)):void 0!==r&&(a[n]=r));return a},T.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var n,e;return!(!t||"[object Object]"!==h.call(t)||(n=a(t))&&("function"!=typeof(e=d.call(n,"constructor")&&n.constructor)||p.call(e)!==g))},isEmptyObject:function(t){var n;for(n in t)return!1;return!0},globalEval:function(t,n,e){x(t,{nonce:n&&n.nonce},e)},each:function(t,n){var e,r=0;if(A(t))for(e=t.length;r<e&&!1!==n.call(t[r],r,t[r]);r++);else for(r in t)if(!1===n.call(t[r],r,t[r]))break;return t},makeArray:function(t,n){var e=n||[];return null!=t&&(A(Object(t))?T.merge(e,"string"==typeof t?[t]:t):s.call(e,t)),e},inArray:function(t,n,e){return null==n?-1:f.call(n,t,e)},merge:function(t,n){for(var e=+n.length,r=0,i=t.length;r<e;r++)t[i++]=n[r];return t.length=i,t},grep:function(t,n,e){for(var r=[],i=0,o=t.length,a=!e;i<o;i++)!n(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,n,e){var r,i,o=0,a=[];if(A(t))for(r=t.length;o<r;o++)null!=(i=n(t[o],o,e))&&a.push(i);else for(o in t)null!=(i=n(t[o],o,e))&&a.push(i);return c(a)},guid:1,support:y}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,n){l["[object "+n+"]"]=n.toLowerCase()}));var S=function(t){var n,e,r,i,o,a,u,c,s,f,l,h,d,p,g,y,v,m,b,_="sizzle"+1*new Date,x=t.document,w=0,M=0,T=ct(),A=ct(),S=ct(),E=ct(),k=function(t,n){return t===n&&(l=!0),0},N={}.hasOwnProperty,C=[],D=C.pop,P=C.push,q=C.push,j=C.slice,L=function(t,n){for(var e=0,r=t.length;e<r;e++)if(t[e]===n)return e;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\[[\\x20\\t\\r\\n\\f]*("+z+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+R+"*\\]",H=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",F=new RegExp(R+"+","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),Y=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),W=new RegExp(R+"|>"),$=new RegExp(H),X=new RegExp("^"+z+"$"),V={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,nt=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),et=function(t,n){var e="0x"+t.slice(1)-65536;return n||(e<0?String.fromCharCode(e+65536):String.fromCharCode(e>>10|55296,1023&e|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,n){return n?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=_t((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{q.apply(C=j.call(x.childNodes),x.childNodes),C[x.childNodes.length].nodeType}catch(t){q={apply:C.length?function(t,n){P.apply(t,j.call(n))}:function(t,n){for(var e=t.length,r=0;t[e++]=n[r++];);t.length=e-1}}}function ut(t,n,r,i){var o,u,s,f,l,p,v,m=n&&n.ownerDocument,x=n?n.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return r;if(!i&&(h(n),n=n||d,g)){if(11!==x&&(l=J.exec(t)))if(o=l[1]){if(9===x){if(!(s=n.getElementById(o)))return r;if(s.id===o)return r.push(s),r}else if(m&&(s=m.getElementById(o))&&b(n,s)&&s.id===o)return r.push(s),r}else{if(l[2])return q.apply(r,n.getElementsByTagName(t)),r;if((o=l[3])&&e.getElementsByClassName&&n.getElementsByClassName)return q.apply(r,n.getElementsByClassName(o)),r}if(e.qsa&&!E[t+" "]&&(!y||!y.test(t))&&(1!==x||"object"!==n.nodeName.toLowerCase())){if(v=t,m=n,1===x&&(W.test(t)||Y.test(t))){for((m=tt.test(t)&&vt(n.parentNode)||n)===n&&e.scope||((f=n.getAttribute("id"))?f=f.replace(rt,it):n.setAttribute("id",f=_)),u=(p=a(t)).length;u--;)p[u]=(f?"#"+f:":scope")+" "+bt(p[u]);v=p.join(",")}try{return q.apply(r,m.querySelectorAll(v)),r}catch(n){E(t,!0)}finally{f===_&&n.removeAttribute("id")}}}return c(t.replace(B,"$1"),n,r,i)}function ct(){var t=[];return function n(e,i){return t.push(e+" ")>r.cacheLength&&delete n[t.shift()],n[e+" "]=i}}function st(t){return t[_]=!0,t}function ft(t){var n=d.createElement("fieldset");try{return!!t(n)}catch(t){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function lt(t,n){for(var e=t.split("|"),i=e.length;i--;)r.attrHandle[e[i]]=n}function ht(t,n){var e=n&&t,r=e&&1===t.nodeType&&1===n.nodeType&&t.sourceIndex-n.sourceIndex;if(r)return r;if(e)for(;e=e.nextSibling;)if(e===n)return-1;return t?1:-1}function dt(t){return function(n){return"input"===n.nodeName.toLowerCase()&&n.type===t}}function pt(t){return function(n){var e=n.nodeName.toLowerCase();return("input"===e||"button"===e)&&n.type===t}}function gt(t){return function(n){return"form"in n?n.parentNode&&!1===n.disabled?"label"in n?"label"in n.parentNode?n.parentNode.disabled===t:n.disabled===t:n.isDisabled===t||n.isDisabled!==!t&&at(n)===t:n.disabled===t:"label"in n&&n.disabled===t}}function yt(t){return st((function(n){return n=+n,st((function(e,r){for(var i,o=t([],e.length,n),a=o.length;a--;)e[i=o[a]]&&(e[i]=!(r[i]=e[i]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(n in e=ut.support={},o=ut.isXML=function(t){var n=t&&t.namespaceURI,e=t&&(t.ownerDocument||t).documentElement;return!G.test(n||e&&e.nodeName||"HTML")},h=ut.setDocument=function(t){var n,i,a=t?t.ownerDocument||t:x;return a!=d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,g=!o(d),x!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),e.scope=ft((function(t){return p.appendChild(t).appendChild(d.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),e.attributes=ft((function(t){return t.className="i",!t.getAttribute("className")})),e.getElementsByTagName=ft((function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length})),e.getElementsByClassName=K.test(d.getElementsByClassName),e.getById=ft((function(t){return p.appendChild(t).id=_,!d.getElementsByName||!d.getElementsByName(_).length})),e.getById?(r.filter.ID=function(t){var n=t.replace(nt,et);return function(t){return t.getAttribute("id")===n}},r.find.ID=function(t,n){if(void 0!==n.getElementById&&g){var e=n.getElementById(t);return e?[e]:[]}}):(r.filter.ID=function(t){var n=t.replace(nt,et);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},r.find.ID=function(t,n){if(void 0!==n.getElementById&&g){var e,r,i,o=n.getElementById(t);if(o){if((e=o.getAttributeNode("id"))&&e.value===t)return[o];for(i=n.getElementsByName(t),r=0;o=i[r++];)if((e=o.getAttributeNode("id"))&&e.value===t)return[o]}return[]}}),r.find.TAG=e.getElementsByTagName?function(t,n){return void 0!==n.getElementsByTagName?n.getElementsByTagName(t):e.qsa?n.querySelectorAll(t):void 0}:function(t,n){var e,r=[],i=0,o=n.getElementsByTagName(t);if("*"===t){for(;e=o[i++];)1===e.nodeType&&r.push(e);return r}return o},r.find.CLASS=e.getElementsByClassName&&function(t,n){if(void 0!==n.getElementsByClassName&&g)return n.getElementsByClassName(t)},v=[],y=[],(e.qsa=K.test(d.querySelectorAll))&&(ft((function(t){var n;p.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||y.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+O+")"),t.querySelectorAll("[id~="+_+"-]").length||y.push("~="),(n=d.createElement("input")).setAttribute("name",""),t.appendChild(n),t.querySelectorAll("[name='']").length||y.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||y.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||y.push(".#.+[+~]"),t.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")})),ft((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var n=d.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&y.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),y.push(",.*:")}))),(e.matchesSelector=K.test(m=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ft((function(t){e.disconnectedMatch=m.call(t,"*"),m.call(t,"[s!='']:x"),v.push("!=",H)})),y=y.length&&new RegExp(y.join("|")),v=v.length&&new RegExp(v.join("|")),n=K.test(p.compareDocumentPosition),b=n||K.test(p.contains)?function(t,n){var e=9===t.nodeType?t.documentElement:t,r=n&&n.parentNode;return t===r||!(!r||1!==r.nodeType||!(e.contains?e.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,n){if(n)for(;n=n.parentNode;)if(n===t)return!0;return!1},k=n?function(t,n){if(t===n)return l=!0,0;var r=!t.compareDocumentPosition-!n.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(n.ownerDocument||n)?t.compareDocumentPosition(n):1)||!e.sortDetached&&n.compareDocumentPosition(t)===r?t==d||t.ownerDocument==x&&b(x,t)?-1:n==d||n.ownerDocument==x&&b(x,n)?1:f?L(f,t)-L(f,n):0:4&r?-1:1)}:function(t,n){if(t===n)return l=!0,0;var e,r=0,i=t.parentNode,o=n.parentNode,a=[t],u=[n];if(!i||!o)return t==d?-1:n==d?1:i?-1:o?1:f?L(f,t)-L(f,n):0;if(i===o)return ht(t,n);for(e=t;e=e.parentNode;)a.unshift(e);for(e=n;e=e.parentNode;)u.unshift(e);for(;a[r]===u[r];)r++;return r?ht(a[r],u[r]):a[r]==x?-1:u[r]==x?1:0},d):d},ut.matches=function(t,n){return ut(t,null,null,n)},ut.matchesSelector=function(t,n){if(h(t),e.matchesSelector&&g&&!E[n+" "]&&(!v||!v.test(n))&&(!y||!y.test(n)))try{var r=m.call(t,n);if(r||e.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){E(n,!0)}return ut(n,d,null,[t]).length>0},ut.contains=function(t,n){return(t.ownerDocument||t)!=d&&h(t),b(t,n)},ut.attr=function(t,n){(t.ownerDocument||t)!=d&&h(t);var i=r.attrHandle[n.toLowerCase()],o=i&&N.call(r.attrHandle,n.toLowerCase())?i(t,n,!g):void 0;return void 0!==o?o:e.attributes||!g?t.getAttribute(n):(o=t.getAttributeNode(n))&&o.specified?o.value:null},ut.escape=function(t){return(t+"").replace(rt,it)},ut.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ut.uniqueSort=function(t){var n,r=[],i=0,o=0;if(l=!e.detectDuplicates,f=!e.sortStable&&t.slice(0),t.sort(k),l){for(;n=t[o++];)n===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return f=null,t},i=ut.getText=function(t){var n,e="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)e+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;n=t[r++];)e+=i(n);return e},r=ut.selectors={cacheLength:50,createPseudo:st,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,et),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,et),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ut.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ut.error(t[0]),t},PSEUDO:function(t){var n,e=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":e&&$.test(e)&&(n=a(e,!0))&&(n=e.indexOf(")",e.length-n)-e.length)&&(t[0]=t[0].slice(0,n),t[2]=e.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var n=t.replace(nt,et).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===n}},CLASS:function(t){var n=T[t+" "];return n||(n=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+R+"|$)"))&&T(t,(function(t){return n.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,n,e){return function(r){var i=ut.attr(r,t);return null==i?"!="===n:!n||(i+="","="===n?i===e:"!="===n?i!==e:"^="===n?e&&0===i.indexOf(e):"*="===n?e&&i.indexOf(e)>-1:"$="===n?e&&i.slice(-e.length)===e:"~="===n?(" "+i.replace(F," ")+" ").indexOf(e)>-1:"|="===n&&(i===e||i.slice(0,e.length+1)===e+"-"))}},CHILD:function(t,n,e,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===n;return 1===r&&0===i?function(t){return!!t.parentNode}:function(n,e,c){var s,f,l,h,d,p,g=o!==a?"nextSibling":"previousSibling",y=n.parentNode,v=u&&n.nodeName.toLowerCase(),m=!c&&!u,b=!1;if(y){if(o){for(;g;){for(h=n;h=h[g];)if(u?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?y.firstChild:y.lastChild],a&&m){for(b=(d=(s=(f=(l=(h=y)[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]||[])[0]===w&&s[1])&&s[2],h=d&&y.childNodes[d];h=++d&&h&&h[g]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===n){f[t]=[w,d,b];break}}else if(m&&(b=d=(s=(f=(l=(h=n)[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]||[])[0]===w&&s[1]),!1===b)for(;(h=++d&&h&&h[g]||(b=d=0)||p.pop())&&((u?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(m&&((f=(l=h[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]=[w,b]),h!==n)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,n){var e,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ut.error("unsupported pseudo: "+t);return i[_]?i(n):i.length>1?(e=[t,t,"",n],r.setFilters.hasOwnProperty(t.toLowerCase())?st((function(t,e){for(var r,o=i(t,n),a=o.length;a--;)t[r=L(t,o[a])]=!(e[r]=o[a])})):function(t){return i(t,0,e)}):i}},pseudos:{not:st((function(t){var n=[],e=[],r=u(t.replace(B,"$1"));return r[_]?st((function(t,n,e,i){for(var o,a=r(t,null,i,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(n[u]=o))})):function(t,i,o){return n[0]=t,r(n,null,o,e),n[0]=null,!e.pop()}})),has:st((function(t){return function(n){return ut(t,n).length>0}})),contains:st((function(t){return t=t.replace(nt,et),function(n){return(n.textContent||i(n)).indexOf(t)>-1}})),lang:st((function(t){return X.test(t||"")||ut.error("unsupported lang: "+t),t=t.replace(nt,et).toLowerCase(),function(n){var e;do{if(e=g?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return(e=e.toLowerCase())===t||0===e.indexOf(t+"-")}while((n=n.parentNode)&&1===n.nodeType);return!1}})),target:function(n){var e=t.location&&t.location.hash;return e&&e.slice(1)===n.id},root:function(t){return t===p},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&!!t.checked||"option"===n&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&"button"===t.type||"button"===n},text:function(t){var n;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(n=t.getAttribute("type"))||"text"===n.toLowerCase())},first:yt((function(){return[0]})),last:yt((function(t,n){return[n-1]})),eq:yt((function(t,n,e){return[e<0?e+n:e]})),even:yt((function(t,n){for(var e=0;e<n;e+=2)t.push(e);return t})),odd:yt((function(t,n){for(var e=1;e<n;e+=2)t.push(e);return t})),lt:yt((function(t,n,e){for(var r=e<0?e+n:e>n?n:e;--r>=0;)t.push(r);return t})),gt:yt((function(t,n,e){for(var r=e<0?e+n:e;++r<n;)t.push(r);return t}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[n]=dt(n);for(n in{submit:!0,reset:!0})r.pseudos[n]=pt(n);function mt(){}function bt(t){for(var n=0,e=t.length,r="";n<e;n++)r+=t[n].value;return r}function _t(t,n,e){var r=n.dir,i=n.next,o=i||r,a=e&&"parentNode"===o,u=M++;return n.first?function(n,e,i){for(;n=n[r];)if(1===n.nodeType||a)return t(n,e,i);return!1}:function(n,e,c){var s,f,l,h=[w,u];if(c){for(;n=n[r];)if((1===n.nodeType||a)&&t(n,e,c))return!0}else for(;n=n[r];)if(1===n.nodeType||a)if(f=(l=n[_]||(n[_]={}))[n.uniqueID]||(l[n.uniqueID]={}),i&&i===n.nodeName.toLowerCase())n=n[r]||n;else{if((s=f[o])&&s[0]===w&&s[1]===u)return h[2]=s[2];if(f[o]=h,h[2]=t(n,e,c))return!0}return!1}}function xt(t){return t.length>1?function(n,e,r){for(var i=t.length;i--;)if(!t[i](n,e,r))return!1;return!0}:t[0]}function wt(t,n,e,r,i){for(var o,a=[],u=0,c=t.length,s=null!=n;u<c;u++)(o=t[u])&&(e&&!e(o,r,i)||(a.push(o),s&&n.push(u)));return a}function Mt(t,n,e,r,i,o){return r&&!r[_]&&(r=Mt(r)),i&&!i[_]&&(i=Mt(i,o)),st((function(o,a,u,c){var s,f,l,h=[],d=[],p=a.length,g=o||function(t,n,e){for(var r=0,i=n.length;r<i;r++)ut(t,n[r],e);return e}(n||"*",u.nodeType?[u]:u,[]),y=!t||!o&&n?g:wt(g,h,t,u,c),v=e?i||(o?t:p||r)?[]:a:y;if(e&&e(y,v,u,c),r)for(s=wt(v,d),r(s,[],u,c),f=s.length;f--;)(l=s[f])&&(v[d[f]]=!(y[d[f]]=l));if(o){if(i||t){if(i){for(s=[],f=v.length;f--;)(l=v[f])&&s.push(y[f]=l);i(null,v=[],s,c)}for(f=v.length;f--;)(l=v[f])&&(s=i?L(o,l):h[f])>-1&&(o[s]=!(a[s]=l))}}else v=wt(v===a?v.splice(p,v.length):v),i?i(null,a,v,c):q.apply(a,v)}))}function Tt(t){for(var n,e,i,o=t.length,a=r.relative[t[0].type],u=a||r.relative[" "],c=a?1:0,f=_t((function(t){return t===n}),u,!0),l=_t((function(t){return L(n,t)>-1}),u,!0),h=[function(t,e,r){var i=!a&&(r||e!==s)||((n=e).nodeType?f(t,e,r):l(t,e,r));return n=null,i}];c<o;c++)if(e=r.relative[t[c].type])h=[_t(xt(h),e)];else{if((e=r.filter[t[c].type].apply(null,t[c].matches))[_]){for(i=++c;i<o&&!r.relative[t[i].type];i++);return Mt(c>1&&xt(h),c>1&&bt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(B,"$1"),e,c<i&&Tt(t.slice(c,i)),i<o&&Tt(t=t.slice(i)),i<o&&bt(t))}h.push(e)}return xt(h)}return mt.prototype=r.filters=r.pseudos,r.setFilters=new mt,a=ut.tokenize=function(t,n){var e,i,o,a,u,c,s,f=A[t+" "];if(f)return n?0:f.slice(0);for(u=t,c=[],s=r.preFilter;u;){for(a in e&&!(i=U.exec(u))||(i&&(u=u.slice(i[0].length)||u),c.push(o=[])),e=!1,(i=Y.exec(u))&&(e=i.shift(),o.push({value:e,type:i[0].replace(B," ")}),u=u.slice(e.length)),r.filter)!(i=V[a].exec(u))||s[a]&&!(i=s[a](i))||(e=i.shift(),o.push({value:e,type:a,matches:i}),u=u.slice(e.length));if(!e)break}return n?u.length:u?ut.error(t):A(t,c).slice(0)},u=ut.compile=function(t,n){var e,i=[],o=[],u=S[t+" "];if(!u){for(n||(n=a(t)),e=n.length;e--;)(u=Tt(n[e]))[_]?i.push(u):o.push(u);u=S(t,function(t,n){var e=n.length>0,i=t.length>0,o=function(o,a,u,c,f){var l,p,y,v=0,m="0",b=o&&[],_=[],x=s,M=o||i&&r.find.TAG("*",f),T=w+=null==x?1:Math.random()||.1,A=M.length;for(f&&(s=a==d||a||f);m!==A&&null!=(l=M[m]);m++){if(i&&l){for(p=0,a||l.ownerDocument==d||(h(l),u=!g);y=t[p++];)if(y(l,a||d,u)){c.push(l);break}f&&(w=T)}e&&((l=!y&&l)&&v--,o&&b.push(l))}if(v+=m,e&&m!==v){for(p=0;y=n[p++];)y(b,_,a,u);if(o){if(v>0)for(;m--;)b[m]||_[m]||(_[m]=D.call(c));_=wt(_)}q.apply(c,_),f&&!o&&_.length>0&&v+n.length>1&&ut.uniqueSort(c)}return f&&(w=T,s=x),b};return e?st(o):o}(o,i)),u.selector=t}return u},c=ut.select=function(t,n,e,i){var o,c,s,f,l,h="function"==typeof t&&t,d=!i&&a(t=h.selector||t);if(e=e||[],1===d.length){if((c=d[0]=d[0].slice(0)).length>2&&"ID"===(s=c[0]).type&&9===n.nodeType&&g&&r.relative[c[1].type]){if(!(n=(r.find.ID(s.matches[0].replace(nt,et),n)||[])[0]))return e;h&&(n=n.parentNode),t=t.slice(c.shift().value.length)}for(o=V.needsContext.test(t)?0:c.length;o--&&(s=c[o],!r.relative[f=s.type]);)if((l=r.find[f])&&(i=l(s.matches[0].replace(nt,et),tt.test(c[0].type)&&vt(n.parentNode)||n))){if(c.splice(o,1),!(t=i.length&&bt(c)))return q.apply(e,i),e;break}}return(h||u(t,d))(i,n,!g,e,!n||tt.test(t)&&vt(n.parentNode)||n),e},e.sortStable=_.split("").sort(k).join("")===_,e.detectDuplicates=!!l,h(),e.sortDetached=ft((function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))})),ft((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||lt("type|href|height|width",(function(t,n,e){if(!e)return t.getAttribute(n,"type"===n.toLowerCase()?1:2)})),e.attributes&&ft((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||lt("value",(function(t,n,e){if(!e&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ft((function(t){return null==t.getAttribute("disabled")}))||lt(O,(function(t,n,e){var r;if(!e)return!0===t[n]?n.toLowerCase():(r=t.getAttributeNode(n))&&r.specified?r.value:null})),ut}(r);T.find=S,T.expr=S.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=S.uniqueSort,T.text=S.getText,T.isXMLDoc=S.isXML,T.contains=S.contains,T.escapeSelector=S.escape;var E=function(t,n,e){for(var r=[],i=void 0!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&T(t).is(e))break;r.push(t)}return r},k=function(t,n){for(var e=[];t;t=t.nextSibling)1===t.nodeType&&t!==n&&e.push(t);return e},N=T.expr.match.needsContext;function C(t,n){return t.nodeName&&t.nodeName.toLowerCase()===n.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(t,n,e){return v(n)?T.grep(t,(function(t,r){return!!n.call(t,r,t)!==e})):n.nodeType?T.grep(t,(function(t){return t===n!==e})):"string"!=typeof n?T.grep(t,(function(t){return f.call(n,t)>-1!==e})):T.filter(n,t,e)}T.filter=function(t,n,e){var r=n[0];return e&&(t=":not("+t+")"),1===n.length&&1===r.nodeType?T.find.matchesSelector(r,t)?[r]:[]:T.find.matches(t,T.grep(n,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var n,e,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(n=0;n<r;n++)if(T.contains(i[n],this))return!0})));for(e=this.pushStack([]),n=0;n<r;n++)T.find(t,i[n],e);return r>1?T.uniqueSort(e):e},filter:function(t){return this.pushStack(P(this,t||[],!1))},not:function(t){return this.pushStack(P(this,t||[],!0))},is:function(t){return!!P(this,"string"==typeof t&&N.test(t)?T(t):t||[],!1).length}});var q,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,n,e){var r,i;if(!t)return this;if(e=e||q,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:j.exec(t))||!r[1]&&n)return!n||n.jquery?(n||e).find(t):this.constructor(n).find(t);if(r[1]){if(n=n instanceof T?n[0]:n,T.merge(this,T.parseHTML(r[1],n&&n.nodeType?n.ownerDocument||n:b,!0)),D.test(r[1])&&T.isPlainObject(n))for(r in n)v(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==e.ready?e.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,q=T(b);var L=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function R(t,n){for(;(t=t[n])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var n=T(t,this),e=n.length;return this.filter((function(){for(var t=0;t<e;t++)if(T.contains(this,n[t]))return!0}))},closest:function(t,n){var e,r=0,i=this.length,o=[],a="string"!=typeof t&&T(t);if(!N.test(t))for(;r<i;r++)for(e=this[r];e&&e!==n;e=e.parentNode)if(e.nodeType<11&&(a?a.index(e)>-1:1===e.nodeType&&T.find.matchesSelector(e,t))){o.push(e);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?f.call(T(t),this[0]):f.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,n){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,n))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var n=t.parentNode;return n&&11!==n.nodeType?n:null},parents:function(t){return E(t,"parentNode")},parentsUntil:function(t,n,e){return E(t,"parentNode",e)},next:function(t){return R(t,"nextSibling")},prev:function(t){return R(t,"previousSibling")},nextAll:function(t){return E(t,"nextSibling")},prevAll:function(t){return E(t,"previousSibling")},nextUntil:function(t,n,e){return E(t,"nextSibling",e)},prevUntil:function(t,n,e){return E(t,"previousSibling",e)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,n){T.fn[t]=function(e,r){var i=T.map(this,n,e);return"Until"!==t.slice(-5)&&(r=e),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(O[t]||T.uniqueSort(i),L.test(t)&&i.reverse()),this.pushStack(i)}}));var z=/[^\x20\t\r\n\f]+/g;function I(t){return t}function H(t){throw t}function F(t,n,e,r){var i;try{t&&v(i=t.promise)?i.call(t).done(n).fail(e):t&&v(i=t.then)?i.call(t,n,e):n.apply(void 0,[t].slice(r))}catch(t){e.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var n={};return T.each(t.match(z)||[],(function(t,e){n[e]=!0})),n}(t):T.extend({},t);var n,e,r,i,o=[],a=[],u=-1,c=function(){for(i=i||t.once,r=n=!0;a.length;u=-1)for(e=a.shift();++u<o.length;)!1===o[u].apply(e[0],e[1])&&t.stopOnFalse&&(u=o.length,e=!1);t.memory||(e=!1),n=!1,i&&(o=e?[]:"")},s={add:function(){return o&&(e&&!n&&(u=o.length-1,a.push(e)),function n(e){T.each(e,(function(e,r){v(r)?t.unique&&s.has(r)||o.push(r):r&&r.length&&"string"!==w(r)&&n(r)}))}(arguments),e&&!n&&c()),this},remove:function(){return T.each(arguments,(function(t,n){for(var e;(e=T.inArray(n,o,e))>-1;)o.splice(e,1),e<=u&&u--})),this},has:function(t){return t?T.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=e="",this},disabled:function(){return!o},lock:function(){return i=a=[],e||n||(o=e=""),this},locked:function(){return!!i},fireWith:function(t,e){return i||(e=[t,(e=e||[]).slice?e.slice():e],a.push(e),n||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!r}};return s},T.extend({Deferred:function(t){var n=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],e="pending",i={state:function(){return e},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(e){T.each(n,(function(n,r){var i=v(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,e,i){var o=0;function a(t,n,e,i){return function(){var u=this,c=arguments,s=function(){var r,s;if(!(t<o)){if((r=e.apply(u,c))===n.promise())throw new TypeError("Thenable self-resolution");s=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(s)?i?s.call(r,a(o,n,I,i),a(o,n,H,i)):(o++,s.call(r,a(o,n,I,i),a(o,n,H,i),a(o,n,I,n.notifyWith))):(e!==I&&(u=void 0,c=[r]),(i||n.resolveWith)(u,c))}},f=i?s:function(){try{s()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,f.stackTrace),t+1>=o&&(e!==H&&(u=void 0,c=[r]),n.rejectWith(u,c))}};t?f():(T.Deferred.getStackHook&&(f.stackTrace=T.Deferred.getStackHook()),r.setTimeout(f))}}return T.Deferred((function(r){n[0][3].add(a(0,r,v(i)?i:I,r.notifyWith)),n[1][3].add(a(0,r,v(t)?t:I)),n[2][3].add(a(0,r,v(e)?e:H))})).promise()},promise:function(t){return null!=t?T.extend(t,i):i}},o={};return T.each(n,(function(t,r){var a=r[2],u=r[5];i[r[1]]=a.add,u&&a.add((function(){e=u}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var n=arguments.length,e=n,r=Array(e),i=u.call(arguments),o=T.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=arguments.length>1?u.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(F(t,o.done(a(e)).resolve,o.reject,!n),"pending"===o.state()||v(i[e]&&i[e].then)))return o.then();for(;e--;)F(i[e],a(e),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,n){r.console&&r.console.warn&&t&&B.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},T.readyException=function(t){r.setTimeout((function(){throw t}))};var U=T.Deferred();function Y(){b.removeEventListener("DOMContentLoaded",Y),r.removeEventListener("load",Y),T.ready()}T.fn.ready=function(t){return U.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||U.resolveWith(b,[T]))}}),T.ready.then=U.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",Y),r.addEventListener("load",Y));var W=function(t,n,e,r,i,o,a){var u=0,c=t.length,s=null==e;if("object"===w(e))for(u in i=!0,e)W(t,n,u,e[u],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),s&&(a?(n.call(t,r),n=null):(s=n,n=function(t,n,e){return s.call(T(t),e)})),n))for(;u<c;u++)n(t[u],e,a?r:r.call(t[u],u,n(t[u],e)));return i?t:s?n.call(t):c?n(t[0],e):o},$=/^-ms-/,X=/-([a-z])/g;function V(t,n){return n.toUpperCase()}function G(t){return t.replace($,"ms-").replace(X,V)}var Z=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Q(){this.expando=T.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(t){var n=t[this.expando];return n||(n={},Z(t)&&(t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,configurable:!0}))),n},set:function(t,n,e){var r,i=this.cache(t);if("string"==typeof n)i[G(n)]=e;else for(r in n)i[G(r)]=n[r];return i},get:function(t,n){return void 0===n?this.cache(t):t[this.expando]&&t[this.expando][G(n)]},access:function(t,n,e){return void 0===n||n&&"string"==typeof n&&void 0===e?this.get(t,n):(this.set(t,n,e),void 0!==e?e:n)},remove:function(t,n){var e,r=t[this.expando];if(void 0!==r){if(void 0!==n){e=(n=Array.isArray(n)?n.map(G):(n=G(n))in r?[n]:n.match(z)||[]).length;for(;e--;)delete r[n[e]]}(void 0===n||T.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var n=t[this.expando];return void 0!==n&&!T.isEmptyObject(n)}};var K=new Q,J=new Q,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,nt=/[A-Z]/g;function et(t,n,e){var r;if(void 0===e&&1===t.nodeType)if(r="data-"+n.replace(nt,"-$&").toLowerCase(),"string"==typeof(e=t.getAttribute(r))){try{e=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(e)}catch(t){}J.set(t,n,e)}else e=void 0;return e}T.extend({hasData:function(t){return J.hasData(t)||K.hasData(t)},data:function(t,n,e){return J.access(t,n,e)},removeData:function(t,n){J.remove(t,n)},_data:function(t,n,e){return K.access(t,n,e)},_removeData:function(t,n){K.remove(t,n)}}),T.fn.extend({data:function(t,n){var e,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=J.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(r=a[e].name).indexOf("data-")&&(r=G(r.slice(5)),et(o,r,i[r]));K.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each((function(){J.set(this,t)})):W(this,(function(n){var e;if(o&&void 0===n)return void 0!==(e=J.get(o,t))||void 0!==(e=et(o,t))?e:void 0;this.each((function(){J.set(this,t,n)}))}),null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){J.remove(this,t)}))}}),T.extend({queue:function(t,n,e){var r;if(t)return n=(n||"fx")+"queue",r=K.get(t,n),e&&(!r||Array.isArray(e)?r=K.access(t,n,T.makeArray(e)):r.push(e)),r||[]},dequeue:function(t,n){n=n||"fx";var e=T.queue(t,n),r=e.length,i=e.shift(),o=T._queueHooks(t,n);"inprogress"===i&&(i=e.shift(),r--),i&&("fx"===n&&e.unshift("inprogress"),delete o.stop,i.call(t,(function(){T.dequeue(t,n)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,n){var e=n+"queueHooks";return K.get(t,e)||K.access(t,e,{empty:T.Callbacks("once memory").add((function(){K.remove(t,[n+"queue",e])}))})}}),T.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?T.queue(this[0],t):void 0===n?this:this.each((function(){var e=T.queue(this,t,n);T._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&T.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){T.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var e,r=1,i=T.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(n=t,t=void 0),t=t||"fx";a--;)(e=K.get(o[a],t+"queueHooks"))&&e.empty&&(r++,e.empty.add(u));return u(),i.promise(n)}});var rt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+rt+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],at=b.documentElement,ut=function(t){return T.contains(t.ownerDocument,t)},ct={composed:!0};at.getRootNode&&(ut=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(ct)===t.ownerDocument});var st=function(t,n){return"none"===(t=n||t).style.display||""===t.style.display&&ut(t)&&"none"===T.css(t,"display")};function ft(t,n,e,r){var i,o,a=20,u=r?function(){return r.cur()}:function(){return T.css(t,n,"")},c=u(),s=e&&e[3]||(T.cssNumber[n]?"":"px"),f=t.nodeType&&(T.cssNumber[n]||"px"!==s&&+c)&&it.exec(T.css(t,n));if(f&&f[3]!==s){for(c/=2,s=s||f[3],f=+c||1;a--;)T.style(t,n,f+s),(1-o)*(1-(o=u()/c||.5))<=0&&(a=0),f/=o;f*=2,T.style(t,n,f+s),e=e||[]}return e&&(f=+f||+c||0,i=e[1]?f+(e[1]+1)*e[2]:+e[2],r&&(r.unit=s,r.start=f,r.end=i)),i}var lt={};function ht(t){var n,e=t.ownerDocument,r=t.nodeName,i=lt[r];return i||(n=e.body.appendChild(e.createElement(r)),i=T.css(n,"display"),n.parentNode.removeChild(n),"none"===i&&(i="block"),lt[r]=i,i)}function dt(t,n){for(var e,r,i=[],o=0,a=t.length;o<a;o++)(r=t[o]).style&&(e=r.style.display,n?("none"===e&&(i[o]=K.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&st(r)&&(i[o]=ht(r))):"none"!==e&&(i[o]="none",K.set(r,"display",e)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}T.fn.extend({show:function(){return dt(this,!0)},hide:function(){return dt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){st(this)?T(this).show():T(this).hide()}))}});var pt,gt,yt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i;pt=b.createDocumentFragment().appendChild(b.createElement("div")),(gt=b.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),pt.appendChild(gt),y.checkClone=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue,pt.innerHTML="<option></option>",y.option=!!pt.lastChild;var bt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function _t(t,n){var e;return e=void 0!==t.getElementsByTagName?t.getElementsByTagName(n||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(n||"*"):[],void 0===n||n&&C(t,n)?T.merge([t],e):e}function xt(t,n){for(var e=0,r=t.length;e<r;e++)K.set(t[e],"globalEval",!n||K.get(n[e],"globalEval"))}bt.tbody=bt.tfoot=bt.colgroup=bt.caption=bt.thead,bt.th=bt.td,y.option||(bt.optgroup=bt.option=[1,"<select multiple='multiple'>","</select>"]);var wt=/<|&#?\w+;/;function Mt(t,n,e,r,i){for(var o,a,u,c,s,f,l=n.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if((o=t[d])||0===o)if("object"===w(o))T.merge(h,o.nodeType?[o]:o);else if(wt.test(o)){for(a=a||l.appendChild(n.createElement("div")),u=(vt.exec(o)||["",""])[1].toLowerCase(),c=bt[u]||bt._default,a.innerHTML=c[1]+T.htmlPrefilter(o)+c[2],f=c[0];f--;)a=a.lastChild;T.merge(h,a.childNodes),(a=l.firstChild).textContent=""}else h.push(n.createTextNode(o));for(l.textContent="",d=0;o=h[d++];)if(r&&T.inArray(o,r)>-1)i&&i.push(o);else if(s=ut(o),a=_t(l.appendChild(o),"script"),s&&xt(a),e)for(f=0;o=a[f++];)mt.test(o.type||"")&&e.push(o);return l}var Tt=/^([^.]*)(?:\.(.+)|)/;function At(){return!0}function St(){return!1}function Et(t,n){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===n)}function kt(t,n,e,r,i,o){var a,u;if("object"==typeof n){for(u in"string"!=typeof e&&(r=r||e,e=void 0),n)kt(t,u,e,r,n[u],o);return t}if(null==r&&null==i?(i=e,r=e=void 0):null==i&&("string"==typeof e?(i=r,r=void 0):(i=r,r=e,e=void 0)),!1===i)i=St;else if(!i)return t;return 1===o&&(a=i,i=function(t){return T().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=T.guid++)),t.each((function(){T.event.add(this,n,i,r,e)}))}function Nt(t,n,e){e?(K.set(t,n,!1),T.event.add(t,n,{namespace:!1,handler:function(t){var r,i,o=K.get(this,n);if(1&t.isTrigger&&this[n]){if(o.length)(T.event.special[n]||{}).delegateType&&t.stopPropagation();else if(o=u.call(arguments),K.set(this,n,o),r=e(this,n),this[n](),o!==(i=K.get(this,n))||r?K.set(this,n,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else o.length&&(K.set(this,n,{value:T.event.trigger(T.extend(o[0],T.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,n)&&T.event.add(t,n,At)}T.event={global:{},add:function(t,n,e,r,i){var o,a,u,c,s,f,l,h,d,p,g,y=K.get(t);if(Z(t))for(e.handler&&(e=(o=e).handler,i=o.selector),i&&T.find.matchesSelector(at,i),e.guid||(e.guid=T.guid++),(c=y.events)||(c=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(n){return void 0!==T&&T.event.triggered!==n.type?T.event.dispatch.apply(t,arguments):void 0}),s=(n=(n||"").match(z)||[""]).length;s--;)d=g=(u=Tt.exec(n[s])||[])[1],p=(u[2]||"").split(".").sort(),d&&(l=T.event.special[d]||{},d=(i?l.delegateType:l.bindType)||d,l=T.event.special[d]||{},f=T.extend({type:d,origType:g,data:r,handler:e,guid:e.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=c[d])||((h=c[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(d,a)),l.add&&(l.add.call(t,f),f.handler.guid||(f.handler.guid=e.guid)),i?h.splice(h.delegateCount++,0,f):h.push(f),T.event.global[d]=!0)},remove:function(t,n,e,r,i){var o,a,u,c,s,f,l,h,d,p,g,y=K.hasData(t)&&K.get(t);if(y&&(c=y.events)){for(s=(n=(n||"").match(z)||[""]).length;s--;)if(d=g=(u=Tt.exec(n[s])||[])[1],p=(u[2]||"").split(".").sort(),d){for(l=T.event.special[d]||{},h=c[d=(r?l.delegateType:l.bindType)||d]||[],u=u[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)f=h[o],!i&&g!==f.origType||e&&e.guid!==f.guid||u&&!u.test(f.namespace)||r&&r!==f.selector&&("**"!==r||!f.selector)||(h.splice(o,1),f.selector&&h.delegateCount--,l.remove&&l.remove.call(t,f));a&&!h.length&&(l.teardown&&!1!==l.teardown.call(t,p,y.handle)||T.removeEvent(t,d,y.handle),delete c[d])}else for(d in c)T.event.remove(t,d+n[s],e,r,!0);T.isEmptyObject(c)&&K.remove(t,"handle events")}},dispatch:function(t){var n,e,r,i,o,a,u=new Array(arguments.length),c=T.event.fix(t),s=(K.get(this,"events")||Object.create(null))[c.type]||[],f=T.event.special[c.type]||{};for(u[0]=c,n=1;n<arguments.length;n++)u[n]=arguments[n];if(c.delegateTarget=this,!f.preDispatch||!1!==f.preDispatch.call(this,c)){for(a=T.event.handlers.call(this,c,s),n=0;(i=a[n++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,e=0;(o=i.handlers[e++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==o.namespace&&!c.rnamespace.test(o.namespace)||(c.handleObj=o,c.data=o.data,void 0!==(r=((T.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,c),c.result}},handlers:function(t,n){var e,r,i,o,a,u=[],c=n.delegateCount,s=t.target;if(c&&s.nodeType&&!("click"===t.type&&t.button>=1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&("click"!==t.type||!0!==s.disabled)){for(o=[],a={},e=0;e<c;e++)void 0===a[i=(r=n[e]).selector+" "]&&(a[i]=r.needsContext?T(i,this).index(s)>-1:T.find(i,this,null,[s]).length),a[i]&&o.push(r);o.length&&u.push({elem:s,handlers:o})}return s=this,c<n.length&&u.push({elem:s,handlers:n.slice(c)}),u},addProp:function(t,n){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(n){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var n=this||t;return yt.test(n.type)&&n.click&&C(n,"input")&&Nt(n,"click",At),!1},trigger:function(t){var n=this||t;return yt.test(n.type)&&n.click&&C(n,"input")&&Nt(n,"click"),!0},_default:function(t){var n=t.target;return yt.test(n.type)&&n.click&&C(n,"input")&&K.get(n,"click")||C(n,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,n,e){t.removeEventListener&&t.removeEventListener(n,e)},T.Event=function(t,n){if(!(this instanceof T.Event))return new T.Event(t,n);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?At:St,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,n&&T.extend(this,n),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=At,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=At,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=At,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(t,n){T.event.special[t]={setup:function(){return Nt(this,t,Et),!1},trigger:function(){return Nt(this,t),!0},_default:function(){return!0},delegateType:n}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,n){T.event.special[t]={delegateType:n,bindType:n,handle:function(t){var e,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||T.contains(r,i))||(t.type=o.origType,e=o.handler.apply(this,arguments),t.type=n),e}}})),T.fn.extend({on:function(t,n,e,r){return kt(this,t,n,e,r)},one:function(t,n,e,r){return kt(this,t,n,e,r,1)},off:function(t,n,e){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,T(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,n,t[i]);return this}return!1!==n&&"function"!=typeof n||(e=n,n=void 0),!1===e&&(e=St),this.each((function(){T.event.remove(this,t,e,n)}))}});var Ct=/<script|<style|<link/i,Dt=/checked\s*(?:[^=]|=\s*.checked.)/i,Pt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qt(t,n){return C(t,"table")&&C(11!==n.nodeType?n:n.firstChild,"tr")&&T(t).children("tbody")[0]||t}function jt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Lt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ot(t,n){var e,r,i,o,a,u;if(1===n.nodeType){if(K.hasData(t)&&(u=K.get(t).events))for(i in K.remove(n,"handle events"),u)for(e=0,r=u[i].length;e<r;e++)T.event.add(n,i,u[i][e]);J.hasData(t)&&(o=J.access(t),a=T.extend({},o),J.set(n,a))}}function Rt(t,n){var e=n.nodeName.toLowerCase();"input"===e&&yt.test(t.type)?n.checked=t.checked:"input"!==e&&"textarea"!==e||(n.defaultValue=t.defaultValue)}function zt(t,n,e,r){n=c(n);var i,o,a,u,s,f,l=0,h=t.length,d=h-1,p=n[0],g=v(p);if(g||h>1&&"string"==typeof p&&!y.checkClone&&Dt.test(p))return t.each((function(i){var o=t.eq(i);g&&(n[0]=p.call(this,i,o.html())),zt(o,n,e,r)}));if(h&&(o=(i=Mt(n,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(a=T.map(_t(i,"script"),jt)).length;l<h;l++)s=i,l!==d&&(s=T.clone(s,!0,!0),u&&T.merge(a,_t(s,"script"))),e.call(t[l],s,l);if(u)for(f=a[a.length-1].ownerDocument,T.map(a,Lt),l=0;l<u;l++)s=a[l],mt.test(s.type||"")&&!K.access(s,"globalEval")&&T.contains(f,s)&&(s.src&&"module"!==(s.type||"").toLowerCase()?T._evalUrl&&!s.noModule&&T._evalUrl(s.src,{nonce:s.nonce||s.getAttribute("nonce")},f):x(s.textContent.replace(Pt,""),s,f))}return t}function It(t,n,e){for(var r,i=n?T.filter(n,t):t,o=0;null!=(r=i[o]);o++)e||1!==r.nodeType||T.cleanData(_t(r)),r.parentNode&&(e&&ut(r)&&xt(_t(r,"script")),r.parentNode.removeChild(r));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,n,e){var r,i,o,a,u=t.cloneNode(!0),c=ut(t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(a=_t(u),r=0,i=(o=_t(t)).length;r<i;r++)Rt(o[r],a[r]);if(n)if(e)for(o=o||_t(t),a=a||_t(u),r=0,i=o.length;r<i;r++)Ot(o[r],a[r]);else Ot(t,u);return(a=_t(u,"script")).length>0&&xt(a,!c&&_t(t,"script")),u},cleanData:function(t){for(var n,e,r,i=T.event.special,o=0;void 0!==(e=t[o]);o++)if(Z(e)){if(n=e[K.expando]){if(n.events)for(r in n.events)i[r]?T.event.remove(e,r):T.removeEvent(e,r,n.handle);e[K.expando]=void 0}e[J.expando]&&(e[J.expando]=void 0)}}}),T.fn.extend({detach:function(t){return It(this,t,!0)},remove:function(t){return It(this,t)},text:function(t){return W(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return zt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qt(this,t).appendChild(t)}))},prepend:function(){return zt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=qt(this,t);n.insertBefore(t,n.firstChild)}}))},before:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,n=0;null!=(t=this[n]);n++)1===t.nodeType&&(T.cleanData(_t(t,!1)),t.textContent="");return this},clone:function(t,n){return t=null!=t&&t,n=null==n?t:n,this.map((function(){return T.clone(this,t,n)}))},html:function(t){return W(this,(function(t){var n=this[0]||{},e=0,r=this.length;if(void 0===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof t&&!Ct.test(t)&&!bt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;e<r;e++)1===(n=this[e]||{}).nodeType&&(T.cleanData(_t(n,!1)),n.innerHTML=t);n=0}catch(t){}}n&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return zt(this,arguments,(function(n){var e=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(_t(this)),e&&e.replaceChild(n,this))}),t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,n){T.fn[t]=function(t){for(var e,r=[],i=T(t),o=i.length-1,a=0;a<=o;a++)e=a===o?this:this.clone(!0),T(i[a])[n](e),s.apply(r,e.get());return this.pushStack(r)}}));var Ht=new RegExp("^("+rt+")(?!px)[a-z%]+$","i"),Ft=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=r),n.getComputedStyle(t)},Bt=function(t,n,e){var r,i,o={};for(i in n)o[i]=t.style[i],t.style[i]=n[i];for(i in r=e.call(t),n)t.style[i]=o[i];return r},Ut=new RegExp(ot.join("|"),"i");function Yt(t,n,e){var r,i,o,a,u=t.style;return(e=e||Ft(t))&&(""!==(a=e.getPropertyValue(n)||e[n])||ut(t)||(a=T.style(t,n)),!y.pixelBoxStyles()&&Ht.test(a)&&Ut.test(n)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=e.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Wt(t,n){return{get:function(){if(!t())return(this.get=n).apply(this,arguments);delete this.get}}}!function(){function t(){if(f){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",f.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",at.appendChild(s).appendChild(f);var t=r.getComputedStyle(f);e="1%"!==t.top,c=12===n(t.marginLeft),f.style.right="60%",a=36===n(t.right),i=36===n(t.width),f.style.position="absolute",o=12===n(f.offsetWidth/3),at.removeChild(s),f=null}}function n(t){return Math.round(parseFloat(t))}var e,i,o,a,u,c,s=b.createElement("div"),f=b.createElement("div");f.style&&(f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===f.style.backgroundClip,T.extend(y,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),e},reliableMarginLeft:function(){return t(),c},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,e,i;return null==u&&(t=b.createElement("table"),n=b.createElement("tr"),e=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",e.style.height="9px",e.style.display="block",at.appendChild(t).appendChild(n).appendChild(e),i=r.getComputedStyle(n),u=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,at.removeChild(t)),u}}))}();var $t=["Webkit","Moz","ms"],Xt=b.createElement("div").style,Vt={};function Gt(t){return T.cssProps[t]||Vt[t]||(t in Xt?t:Vt[t]=function(t){for(var n=t[0].toUpperCase()+t.slice(1),e=$t.length;e--;)if((t=$t[e]+n)in Xt)return t}(t)||t)}var Zt=/^(none|table(?!-c[ea]).+)/,Qt=/^--/,Kt={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:"0",fontWeight:"400"};function tn(t,n,e){var r=it.exec(n);return r?Math.max(0,r[2]-(e||0))+(r[3]||"px"):n}function nn(t,n,e,r,i,o){var a="width"===n?1:0,u=0,c=0;if(e===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===e&&(c+=T.css(t,e+ot[a],!0,i)),r?("content"===e&&(c-=T.css(t,"padding"+ot[a],!0,i)),"margin"!==e&&(c-=T.css(t,"border"+ot[a]+"Width",!0,i))):(c+=T.css(t,"padding"+ot[a],!0,i),"padding"!==e?c+=T.css(t,"border"+ot[a]+"Width",!0,i):u+=T.css(t,"border"+ot[a]+"Width",!0,i));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(t["offset"+n[0].toUpperCase()+n.slice(1)]-o-c-u-.5))||0),c}function en(t,n,e){var r=Ft(t),i=(!y.boxSizingReliable()||e)&&"border-box"===T.css(t,"boxSizing",!1,r),o=i,a=Yt(t,n,r),u="offset"+n[0].toUpperCase()+n.slice(1);if(Ht.test(a)){if(!e)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&C(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===T.css(t,"boxSizing",!1,r),(o=u in t)&&(a=t[u])),(a=parseFloat(a)||0)+nn(t,n,e||(i?"border":"content"),o,r,a)+"px"}function rn(t,n,e,r,i){return new rn.prototype.init(t,n,e,r,i)}T.extend({cssHooks:{opacity:{get:function(t,n){if(n){var e=Yt(t,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,n,e,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=G(n),c=Qt.test(n),s=t.style;if(c||(n=Gt(u)),a=T.cssHooks[n]||T.cssHooks[u],void 0===e)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:s[n];"string"==(o=typeof e)&&(i=it.exec(e))&&i[1]&&(e=ft(t,n,i),o="number"),null!=e&&e==e&&("number"!==o||c||(e+=i&&i[3]||(T.cssNumber[u]?"":"px")),y.clearCloneStyle||""!==e||0!==n.indexOf("background")||(s[n]="inherit"),a&&"set"in a&&void 0===(e=a.set(t,e,r))||(c?s.setProperty(n,e):s[n]=e))}},css:function(t,n,e,r){var i,o,a,u=G(n);return Qt.test(n)||(n=Gt(u)),(a=T.cssHooks[n]||T.cssHooks[u])&&"get"in a&&(i=a.get(t,!0,e)),void 0===i&&(i=Yt(t,n,r)),"normal"===i&&n in Jt&&(i=Jt[n]),""===e||e?(o=parseFloat(i),!0===e||isFinite(o)?o||0:i):i}}),T.each(["height","width"],(function(t,n){T.cssHooks[n]={get:function(t,e,r){if(e)return!Zt.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?en(t,n,r):Bt(t,Kt,(function(){return en(t,n,r)}))},set:function(t,e,r){var i,o=Ft(t),a=!y.scrollboxSize()&&"absolute"===o.position,u=(a||r)&&"border-box"===T.css(t,"boxSizing",!1,o),c=r?nn(t,n,r,u,o):0;return u&&a&&(c-=Math.ceil(t["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(o[n])-nn(t,n,"border",!1,o)-.5)),c&&(i=it.exec(e))&&"px"!==(i[3]||"px")&&(t.style[n]=e,e=T.css(t,n)),tn(0,e,c)}}})),T.cssHooks.marginLeft=Wt(y.reliableMarginLeft,(function(t,n){if(n)return(parseFloat(Yt(t,"marginLeft"))||t.getBoundingClientRect().left-Bt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,n){T.cssHooks[t+n]={expand:function(e){for(var r=0,i={},o="string"==typeof e?e.split(" "):[e];r<4;r++)i[t+ot[r]+n]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(T.cssHooks[t+n].set=tn)})),T.fn.extend({css:function(t,n){return W(this,(function(t,n,e){var r,i,o={},a=0;if(Array.isArray(n)){for(r=Ft(t),i=n.length;a<i;a++)o[n[a]]=T.css(t,n[a],!1,r);return o}return void 0!==e?T.style(t,n,e):T.css(t,n)}),t,n,arguments.length>1)}}),T.Tween=rn,rn.prototype={constructor:rn,init:function(t,n,e,r,i,o){this.elem=t,this.prop=e,this.easing=i||T.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[e]?"":"px")},cur:function(){var t=rn.propHooks[this.prop];return t&&t.get?t.get(this):rn.propHooks._default.get(this)},run:function(t){var n,e=rn.propHooks[this.prop];return this.options.duration?this.pos=n=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=n=t,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),e&&e.set?e.set(this):rn.propHooks._default.set(this),this}},rn.prototype.init.prototype=rn.prototype,rn.propHooks={_default:{get:function(t){var n;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(n=T.css(t.elem,t.prop,""))&&"auto"!==n?n:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[Gt(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},rn.propHooks.scrollTop=rn.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=rn.prototype.init,T.fx.step={};var on,an,un=/^(?:toggle|show|hide)$/,cn=/queueHooks$/;function sn(){an&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(sn):r.setTimeout(sn,T.fx.interval),T.fx.tick())}function fn(){return r.setTimeout((function(){on=void 0})),on=Date.now()}function ln(t,n){var e,r=0,i={height:t};for(n=n?1:0;r<4;r+=2-n)i["margin"+(e=ot[r])]=i["padding"+e]=t;return n&&(i.opacity=i.width=t),i}function hn(t,n,e){for(var r,i=(dn.tweeners[n]||[]).concat(dn.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(e,n,t))return r}function dn(t,n,e){var r,i,o=0,a=dn.prefilters.length,u=T.Deferred().always((function(){delete c.elem})),c=function(){if(i)return!1;for(var n=on||fn(),e=Math.max(0,s.startTime+s.duration-n),r=1-(e/s.duration||0),o=0,a=s.tweens.length;o<a;o++)s.tweens[o].run(r);return u.notifyWith(t,[s,r,e]),r<1&&a?e:(a||u.notifyWith(t,[s,1,0]),u.resolveWith(t,[s]),!1)},s=u.promise({elem:t,props:T.extend({},n),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},e),originalProperties:n,originalOptions:e,startTime:on||fn(),duration:e.duration,tweens:[],createTween:function(n,e){var r=T.Tween(t,s.opts,n,e,s.opts.specialEasing[n]||s.opts.easing);return s.tweens.push(r),r},stop:function(n){var e=0,r=n?s.tweens.length:0;if(i)return this;for(i=!0;e<r;e++)s.tweens[e].run(1);return n?(u.notifyWith(t,[s,1,0]),u.resolveWith(t,[s,n])):u.rejectWith(t,[s,n]),this}}),f=s.props;for(function(t,n){var e,r,i,o,a;for(e in t)if(i=n[r=G(e)],o=t[e],Array.isArray(o)&&(i=o[1],o=t[e]=o[0]),e!==r&&(t[r]=o,delete t[e]),(a=T.cssHooks[r])&&"expand"in a)for(e in o=a.expand(o),delete t[r],o)e in t||(t[e]=o[e],n[e]=i);else n[r]=i}(f,s.opts.specialEasing);o<a;o++)if(r=dn.prefilters[o].call(s,t,f,s.opts))return v(r.stop)&&(T._queueHooks(s.elem,s.opts.queue).stop=r.stop.bind(r)),r;return T.map(f,hn,s),v(s.opts.start)&&s.opts.start.call(t,s),s.progress(s.opts.progress).done(s.opts.done,s.opts.complete).fail(s.opts.fail).always(s.opts.always),T.fx.timer(T.extend(c,{elem:t,anim:s,queue:s.opts.queue})),s}T.Animation=T.extend(dn,{tweeners:{"*":[function(t,n){var e=this.createTween(t,n);return ft(e.elem,t,it.exec(n),e),e}]},tweener:function(t,n){v(t)?(n=t,t=["*"]):t=t.match(z);for(var e,r=0,i=t.length;r<i;r++)e=t[r],dn.tweeners[e]=dn.tweeners[e]||[],dn.tweeners[e].unshift(n)},prefilters:[function(t,n,e){var r,i,o,a,u,c,s,f,l="width"in n||"height"in n,h=this,d={},p=t.style,g=t.nodeType&&st(t),y=K.get(t,"fxshow");for(r in e.queue||(null==(a=T._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,T.queue(t,"fx").length||a.empty.fire()}))}))),n)if(i=n[r],un.test(i)){if(delete n[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!y||void 0===y[r])continue;g=!0}d[r]=y&&y[r]||T.style(t,r)}if((c=!T.isEmptyObject(n))||!T.isEmptyObject(d))for(r in l&&1===t.nodeType&&(e.overflow=[p.overflow,p.overflowX,p.overflowY],null==(s=y&&y.display)&&(s=K.get(t,"display")),"none"===(f=T.css(t,"display"))&&(s?f=s:(dt([t],!0),s=t.style.display||s,f=T.css(t,"display"),dt([t]))),("inline"===f||"inline-block"===f&&null!=s)&&"none"===T.css(t,"float")&&(c||(h.done((function(){p.display=s})),null==s&&(f=p.display,s="none"===f?"":f)),p.display="inline-block")),e.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=e.overflow[0],p.overflowX=e.overflow[1],p.overflowY=e.overflow[2]}))),c=!1,d)c||(y?"hidden"in y&&(g=y.hidden):y=K.access(t,"fxshow",{display:s}),o&&(y.hidden=!g),g&&dt([t],!0),h.done((function(){for(r in g||dt([t]),K.remove(t,"fxshow"),d)T.style(t,r,d[r])}))),c=hn(g?y[r]:0,r,h),r in y||(y[r]=c.start,g&&(c.end=c.start,c.start=0))}],prefilter:function(t,n){n?dn.prefilters.unshift(t):dn.prefilters.push(t)}}),T.speed=function(t,n,e){var r=t&&"object"==typeof t?T.extend({},t):{complete:e||!e&&n||v(t)&&t,duration:t,easing:e&&n||n&&!v(n)&&n};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(t,n,e,r){return this.filter(st).css("opacity",0).show().end().animate({opacity:n},t,e,r)},animate:function(t,n,e,r){var i=T.isEmptyObject(t),o=T.speed(n,e,r),a=function(){var n=dn(this,T.extend({},t),o);(i||K.get(this,"finish"))&&n.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,n,e){var r=function(t){var n=t.stop;delete t.stop,n(e)};return"string"!=typeof t&&(e=n,n=t,t=void 0),n&&this.queue(t||"fx",[]),this.each((function(){var n=!0,i=null!=t&&t+"queueHooks",o=T.timers,a=K.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&cn.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(e),n=!1,o.splice(i,1));!n&&e||T.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var n,e=K.get(this),r=e[t+"queue"],i=e[t+"queueHooks"],o=T.timers,a=r?r.length:0;for(e.finish=!0,T.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),n=o.length;n--;)o[n].elem===this&&o[n].queue===t&&(o[n].anim.stop(!0),o.splice(n,1));for(n=0;n<a;n++)r[n]&&r[n].finish&&r[n].finish.call(this);delete e.finish}))}}),T.each(["toggle","show","hide"],(function(t,n){var e=T.fn[n];T.fn[n]=function(t,r,i){return null==t||"boolean"==typeof t?e.apply(this,arguments):this.animate(ln(n,!0),t,r,i)}})),T.each({slideDown:ln("show"),slideUp:ln("hide"),slideToggle:ln("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,n){T.fn[t]=function(t,e,r){return this.animate(n,t,e,r)}})),T.timers=[],T.fx.tick=function(){var t,n=0,e=T.timers;for(on=Date.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||T.fx.stop(),on=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){an||(an=!0,sn())},T.fx.stop=function(){an=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,n){return t=T.fx&&T.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,e){var i=r.setTimeout(n,t);e.stop=function(){r.clearTimeout(i)}}))},function(){var t=b.createElement("input"),n=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",y.checkOn=""!==t.value,y.optSelected=n.selected,(t=b.createElement("input")).value="t",t.type="radio",y.radioValue="t"===t.value}();var pn,gn=T.expr.attrHandle;T.fn.extend({attr:function(t,n){return W(this,T.attr,t,n,arguments.length>1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?T.prop(t,n,e):(1===o&&T.isXMLDoc(t)||(i=T.attrHooks[n.toLowerCase()]||(T.expr.match.bool.test(n)?pn:void 0)),void 0!==e?null===e?void T.removeAttr(t,n):i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:(t.setAttribute(n,e+""),e):i&&"get"in i&&null!==(r=i.get(t,n))?r:null==(r=T.find.attr(t,n))?void 0:r)},attrHooks:{type:{set:function(t,n){if(!y.radioValue&&"radio"===n&&C(t,"input")){var e=t.value;return t.setAttribute("type",n),e&&(t.value=e),n}}}},removeAttr:function(t,n){var e,r=0,i=n&&n.match(z);if(i&&1===t.nodeType)for(;e=i[r++];)t.removeAttribute(e)}}),pn={set:function(t,n,e){return!1===n?T.removeAttr(t,e):t.setAttribute(e,e),e}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,n){var e=gn[n]||T.find.attr;gn[n]=function(t,n,r){var i,o,a=n.toLowerCase();return r||(o=gn[a],gn[a]=i,i=null!=e(t,n,r)?a:null,gn[a]=o),i}}));var yn=/^(?:input|select|textarea|button)$/i,vn=/^(?:a|area)$/i;function mn(t){return(t.match(z)||[]).join(" ")}function bn(t){return t.getAttribute&&t.getAttribute("class")||""}function _n(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(z)||[]}T.fn.extend({prop:function(t,n){return W(this,T.prop,t,n,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(t)||(n=T.propFix[n]||n,i=T.propHooks[n]),void 0!==e?i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:t[n]=e:i&&"get"in i&&null!==(r=i.get(t,n))?r:t[n]},propHooks:{tabIndex:{get:function(t){var n=T.find.attr(t,"tabindex");return n?parseInt(n,10):yn.test(t.nodeName)||vn.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(T.propHooks.selected={get:function(t){var n=t.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(t){var n=t.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var n,e,r,i,o,a,u,c=0;if(v(t))return this.each((function(n){T(this).addClass(t.call(this,n,bn(this)))}));if((n=_n(t)).length)for(;e=this[c++];)if(i=bn(e),r=1===e.nodeType&&" "+mn(i)+" "){for(a=0;o=n[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(u=mn(r))&&e.setAttribute("class",u)}return this},removeClass:function(t){var n,e,r,i,o,a,u,c=0;if(v(t))return this.each((function(n){T(this).removeClass(t.call(this,n,bn(this)))}));if(!arguments.length)return this.attr("class","");if((n=_n(t)).length)for(;e=this[c++];)if(i=bn(e),r=1===e.nodeType&&" "+mn(i)+" "){for(a=0;o=n[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(u=mn(r))&&e.setAttribute("class",u)}return this},toggleClass:function(t,n){var e=typeof t,r="string"===e||Array.isArray(t);return"boolean"==typeof n&&r?n?this.addClass(t):this.removeClass(t):v(t)?this.each((function(e){T(this).toggleClass(t.call(this,e,bn(this),n),n)})):this.each((function(){var n,i,o,a;if(r)for(i=0,o=T(this),a=_n(t);n=a[i++];)o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==t&&"boolean"!==e||((n=bn(this))&&K.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":K.get(this,"__className__")||""))}))},hasClass:function(t){var n,e,r=0;for(n=" "+t+" ";e=this[r++];)if(1===e.nodeType&&(" "+mn(bn(e))+" ").indexOf(n)>-1)return!0;return!1}});var xn=/\r/g;T.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=v(t),this.each((function(e){var i;1===this.nodeType&&(null==(i=r?t.call(this,e,T(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(t){return null==t?"":t+""}))),(n=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,i,"value")||(this.value=i))}))):i?(n=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:"string"==typeof(e=i.value)?e.replace(xn,""):null==e?"":e:void 0}}),T.extend({valHooks:{option:{get:function(t){var n=T.find.attr(t,"value");return null!=n?n:mn(T.text(t))}},select:{get:function(t){var n,e,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,u=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r<c;r++)if(((e=i[r]).selected||r===o)&&!e.disabled&&(!e.parentNode.disabled||!C(e.parentNode,"optgroup"))){if(n=T(e).val(),a)return n;u.push(n)}return u},set:function(t,n){for(var e,r,i=t.options,o=T.makeArray(n),a=i.length;a--;)((r=i[a]).selected=T.inArray(T.valHooks.option.get(r),o)>-1)&&(e=!0);return e||(t.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,n){if(Array.isArray(n))return t.checked=T.inArray(T(t).val(),n)>-1}},y.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),y.focusin="onfocusin"in r;var wn=/^(?:focusinfocus|focusoutblur)$/,Mn=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,n,e,i){var o,a,u,c,s,f,l,h,p=[e||b],g=d.call(t,"type")?t.type:t,y=d.call(t,"namespace")?t.namespace.split("."):[];if(a=h=u=e=e||b,3!==e.nodeType&&8!==e.nodeType&&!wn.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(y=g.split("."),g=y.shift(),y.sort()),s=g.indexOf(":")<0&&"on"+g,(t=t[T.expando]?t:new T.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),n=null==n?[t]:T.makeArray(n,[t]),l=T.event.special[g]||{},i||!l.trigger||!1!==l.trigger.apply(e,n))){if(!i&&!l.noBubble&&!m(e)){for(c=l.delegateType||g,wn.test(c+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),u=a;u===(e.ownerDocument||b)&&p.push(u.defaultView||u.parentWindow||r)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?c:l.bindType||g,(f=(K.get(a,"events")||Object.create(null))[t.type]&&K.get(a,"handle"))&&f.apply(a,n),(f=s&&a[s])&&f.apply&&Z(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||l._default&&!1!==l._default.apply(p.pop(),n)||!Z(e)||s&&v(e[g])&&!m(e)&&((u=e[s])&&(e[s]=null),T.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Mn),e[g](),t.isPropagationStopped()&&h.removeEventListener(g,Mn),T.event.triggered=void 0,u&&(e[s]=u)),t.result}},simulate:function(t,n,e){var r=T.extend(new T.Event,e,{type:t,isSimulated:!0});T.event.trigger(r,null,n)}}),T.fn.extend({trigger:function(t,n){return this.each((function(){T.event.trigger(t,n,this)}))},triggerHandler:function(t,n){var e=this[0];if(e)return T.event.trigger(t,n,e,!0)}}),y.focusin||T.each({focus:"focusin",blur:"focusout"},(function(t,n){var e=function(t){T.event.simulate(n,t.target,T.event.fix(t))};T.event.special[n]={setup:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,n);i||r.addEventListener(t,e,!0),K.access(r,n,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,n)-1;i?K.access(r,n,i):(r.removeEventListener(t,e,!0),K.remove(r,n))}}}));var Tn=r.location,An={guid:Date.now()},Sn=/\?/;T.parseXML=function(t){var n,e;if(!t||"string"!=typeof t)return null;try{n=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return e=n&&n.getElementsByTagName("parsererror")[0],n&&!e||T.error("Invalid XML: "+(e?T.map(e.childNodes,(function(t){return t.textContent})).join("\n"):t)),n};var En=/\[\]$/,kn=/\r?\n/g,Nn=/^(?:submit|button|image|reset|file)$/i,Cn=/^(?:input|select|textarea|keygen)/i;function Dn(t,n,e,r){var i;if(Array.isArray(n))T.each(n,(function(n,i){e||En.test(t)?r(t,i):Dn(t+"["+("object"==typeof i&&null!=i?n:"")+"]",i,e,r)}));else if(e||"object"!==w(n))r(t,n);else for(i in n)Dn(t+"["+i+"]",n[i],e,r)}T.param=function(t,n){var e,r=[],i=function(t,n){var e=v(n)?n():n;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){i(this.name,this.value)}));else for(e in t)Dn(e,t[e],n,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Cn.test(this.nodeName)&&!Nn.test(t)&&(this.checked||!yt.test(t))})).map((function(t,n){var e=T(this).val();return null==e?null:Array.isArray(e)?T.map(e,(function(t){return{name:n.name,value:t.replace(kn,"\r\n")}})):{name:n.name,value:e.replace(kn,"\r\n")}})).get()}});var Pn=/%20/g,qn=/#.*$/,jn=/([?&])_=[^&]*/,Ln=/^(.*?):[ \t]*([^\r\n]*)$/gm,On=/^(?:GET|HEAD)$/,Rn=/^\/\//,zn={},In={},Hn="*/".concat("*"),Fn=b.createElement("a");function Bn(t){return function(n,e){"string"!=typeof n&&(e=n,n="*");var r,i=0,o=n.toLowerCase().match(z)||[];if(v(e))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(e)):(t[r]=t[r]||[]).push(e)}}function Un(t,n,e,r){var i={},o=t===In;function a(u){var c;return i[u]=!0,T.each(t[u]||[],(function(t,u){var s=u(n,e,r);return"string"!=typeof s||o||i[s]?o?!(c=s):void 0:(n.dataTypes.unshift(s),a(s),!1)})),c}return a(n.dataTypes[0])||!i["*"]&&a("*")}function Yn(t,n){var e,r,i=T.ajaxSettings.flatOptions||{};for(e in n)void 0!==n[e]&&((i[e]?t:r||(r={}))[e]=n[e]);return r&&T.extend(!0,t,r),t}Fn.href=Tn.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tn.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,n){return n?Yn(Yn(t,T.ajaxSettings),n):Yn(T.ajaxSettings,t)},ajaxPrefilter:Bn(zn),ajaxTransport:Bn(In),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var e,i,o,a,u,c,s,f,l,h,d=T.ajaxSetup({},n),p=d.context||d,g=d.context&&(p.nodeType||p.jquery)?T(p):T.event,y=T.Deferred(),v=T.Callbacks("once memory"),m=d.statusCode||{},_={},x={},w="canceled",M={readyState:0,getResponseHeader:function(t){var n;if(s){if(!a)for(a={};n=Ln.exec(o);)a[n[1].toLowerCase()+" "]=(a[n[1].toLowerCase()+" "]||[]).concat(n[2]);n=a[t.toLowerCase()+" "]}return null==n?null:n.join(", ")},getAllResponseHeaders:function(){return s?o:null},setRequestHeader:function(t,n){return null==s&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,_[t]=n),this},overrideMimeType:function(t){return null==s&&(d.mimeType=t),this},statusCode:function(t){var n;if(t)if(s)M.always(t[M.status]);else for(n in t)m[n]=[m[n],t[n]];return this},abort:function(t){var n=t||w;return e&&e.abort(n),A(0,n),this}};if(y.promise(M),d.url=((t||d.url||Tn.href)+"").replace(Rn,Tn.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(z)||[""],null==d.crossDomain){c=b.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Fn.protocol+"//"+Fn.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=T.param(d.data,d.traditional)),Un(zn,d,n,M),s)return M;for(l in(f=T.event&&d.global)&&0==T.active++&&T.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!On.test(d.type),i=d.url.replace(qn,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Pn,"+")):(h=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Sn.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(jn,"$1"),h=(Sn.test(i)?"&":"?")+"_="+An.guid+++h),d.url=i+h),d.ifModified&&(T.lastModified[i]&&M.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&M.setRequestHeader("If-None-Match",T.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&M.setRequestHeader("Content-Type",d.contentType),M.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Hn+"; q=0.01":""):d.accepts["*"]),d.headers)M.setRequestHeader(l,d.headers[l]);if(d.beforeSend&&(!1===d.beforeSend.call(p,M,d)||s))return M.abort();if(w="abort",v.add(d.complete),M.done(d.success),M.fail(d.error),e=Un(In,d,n,M)){if(M.readyState=1,f&&g.trigger("ajaxSend",[M,d]),s)return M;d.async&&d.timeout>0&&(u=r.setTimeout((function(){M.abort("timeout")}),d.timeout));try{s=!1,e.send(_,A)}catch(t){if(s)throw t;A(-1,t)}}else A(-1,"No Transport");function A(t,n,a,c){var l,h,b,_,x,w=n;s||(s=!0,u&&r.clearTimeout(u),e=void 0,o=c||"",M.readyState=t>0?4:0,l=t>=200&&t<300||304===t,a&&(_=function(t,n,e){for(var r,i,o,a,u=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=t.mimeType||n.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){c.unshift(i);break}if(c[0]in e)o=c[0];else{for(i in e){if(!c[0]||t.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),e[o]}(d,M,a)),!l&&T.inArray("script",d.dataTypes)>-1&&T.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),_=function(t,n,e,r){var i,o,a,u,c,s={},f=t.dataTypes.slice();if(f[1])for(a in t.converters)s[a.toLowerCase()]=t.converters[a];for(o=f.shift();o;)if(t.responseFields[o]&&(e[t.responseFields[o]]=n),!c&&r&&t.dataFilter&&(n=t.dataFilter(n,t.dataType)),c=o,o=f.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=s[c+" "+o]||s["* "+o]))for(i in s)if((u=i.split(" "))[1]===o&&(a=s[c+" "+u[0]]||s["* "+u[0]])){!0===a?a=s[i]:!0!==s[i]&&(o=u[0],f.unshift(u[1]));break}if(!0!==a)if(a&&t.throws)n=a(n);else try{n=a(n)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+c+" to "+o}}}return{state:"success",data:n}}(d,_,M,l),l?(d.ifModified&&((x=M.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=x),(x=M.getResponseHeader("etag"))&&(T.etag[i]=x)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=_.state,h=_.data,l=!(b=_.error))):(b=w,!t&&w||(w="error",t<0&&(t=0))),M.status=t,M.statusText=(n||w)+"",l?y.resolveWith(p,[h,w,M]):y.rejectWith(p,[M,w,b]),M.statusCode(m),m=void 0,f&&g.trigger(l?"ajaxSuccess":"ajaxError",[M,d,l?h:b]),v.fireWith(p,[M,w]),f&&(g.trigger("ajaxComplete",[M,d]),--T.active||T.event.trigger("ajaxStop")))}return M},getJSON:function(t,n,e){return T.get(t,n,e,"json")},getScript:function(t,n){return T.get(t,void 0,n,"script")}}),T.each(["get","post"],(function(t,n){T[n]=function(t,e,r,i){return v(e)&&(i=i||r,r=e,e=void 0),T.ajax(T.extend({url:t,type:n,dataType:i,data:e,success:r},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var n;for(n in t.headers)"content-type"===n.toLowerCase()&&(t.contentType=t.headers[n]||"")})),T._evalUrl=function(t,n,e){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,n,e)}})},T.fn.extend({wrapAll:function(t){var n;return this[0]&&(v(t)&&(t=t.call(this[0])),n=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(n){T(this).wrapInner(t.call(this,n))})):this.each((function(){var n=T(this),e=n.contents();e.length?e.wrapAll(t):n.append(t)}))},wrap:function(t){var n=v(t);return this.each((function(e){T(this).wrapAll(n?t.call(this,e):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Wn={0:200,1223:204},$n=T.ajaxSettings.xhr();y.cors=!!$n&&"withCredentials"in $n,y.ajax=$n=!!$n,T.ajaxTransport((function(t){var n,e;if(y.cors||$n&&!t.crossDomain)return{send:function(i,o){var a,u=t.xhr();if(u.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];for(a in t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)u.setRequestHeader(a,i[a]);n=function(t){return function(){n&&(n=e=u.onload=u.onerror=u.onabort=u.ontimeout=u.onreadystatechange=null,"abort"===t?u.abort():"error"===t?"number"!=typeof u.status?o(0,"error"):o(u.status,u.statusText):o(Wn[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!=typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=n(),e=u.onerror=u.ontimeout=n("error"),void 0!==u.onabort?u.onabort=e:u.onreadystatechange=function(){4===u.readyState&&r.setTimeout((function(){n&&e()}))},n=n("abort");try{u.send(t.hasContent&&t.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var n,e;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){n=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",e=function(t){n.remove(),e=null,t&&i("error"===t.type?404:200,t.type)}),b.head.appendChild(n[0])},abort:function(){e&&e()}}}));var Xn,Vn=[],Gn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Vn.pop()||T.expando+"_"+An.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",(function(t,n,e){var i,o,a,u=!1!==t.jsonp&&(Gn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gn.test(t.data)&&"data");if(u||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(Gn,"$1"+i):!1!==t.jsonp&&(t.url+=(Sn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||T.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},e.always((function(){void 0===o?T(r).removeProp(i):r[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Vn.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),y.createHTMLDocument=((Xn=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xn.childNodes.length),T.parseHTML=function(t,n,e){return"string"!=typeof t?[]:("boolean"==typeof n&&(e=n,n=!1),n||(y.createHTMLDocument?((r=(n=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,n.head.appendChild(r)):n=b),o=!e&&[],(i=D.exec(t))?[n.createElement(i[1])]:(i=Mt([t],n,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes)));var r,i,o},T.fn.load=function(t,n,e){var r,i,o,a=this,u=t.indexOf(" ");return u>-1&&(r=mn(t.slice(u)),t=t.slice(0,u)),v(n)?(e=n,n=void 0):n&&"object"==typeof n&&(i="POST"),a.length>0&&T.ajax({url:t,type:i||"GET",dataType:"html",data:n}).done((function(t){o=arguments,a.html(r?T("<div>").append(T.parseHTML(t)).find(r):t)})).always(e&&function(t,n){a.each((function(){e.apply(this,o||[t.responseText,n,t])}))}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,(function(n){return t===n.elem})).length},T.offset={setOffset:function(t,n,e){var r,i,o,a,u,c,s=T.css(t,"position"),f=T(t),l={};"static"===s&&(t.style.position="relative"),u=f.offset(),o=T.css(t,"top"),c=T.css(t,"left"),("absolute"===s||"fixed"===s)&&(o+c).indexOf("auto")>-1?(a=(r=f.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),v(n)&&(n=n.call(t,e,T.extend({},u))),null!=n.top&&(l.top=n.top-u.top+a),null!=n.left&&(l.left=n.left-u.left+i),"using"in n?n.using.call(t,l):f.css(l)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(n){T.offset.setOffset(this,t,n)}));var n,e,r=this[0];return r?r.getClientRects().length?(n=r.getBoundingClientRect(),e=r.ownerDocument.defaultView,{top:n.top+e.pageYOffset,left:n.left+e.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,n,e,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))n=r.getBoundingClientRect();else{for(n=this.offset(),e=r.ownerDocument,t=r.offsetParent||e.documentElement;t&&(t===e.body||t===e.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),i.left+=T.css(t,"borderLeftWidth",!0))}return{top:n.top-i.top-T.css(r,"marginTop",!0),left:n.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||at}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,n){var e="pageYOffset"===n;T.fn[t]=function(r){return W(this,(function(t,r,i){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[n]:t[r];o?o.scrollTo(e?o.pageXOffset:i,e?i:o.pageYOffset):t[r]=i}),t,r,arguments.length)}})),T.each(["top","left"],(function(t,n){T.cssHooks[n]=Wt(y.pixelPosition,(function(t,e){if(e)return e=Yt(t,n),Ht.test(e)?T(t).position()[n]+"px":e}))})),T.each({Height:"height",Width:"width"},(function(t,n){T.each({padding:"inner"+t,content:n,"":"outer"+t},(function(e,r){T.fn[r]=function(i,o){var a=arguments.length&&(e||"boolean"!=typeof i),u=e||(!0===i||!0===o?"margin":"border");return W(this,(function(n,e,i){var o;return m(n)?0===r.indexOf("outer")?n["inner"+t]:n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?T.css(n,e,u):T.style(n,e,i,u)}),n,a?i:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,n){T.fn[n]=function(t){return this.on(n,t)}})),T.fn.extend({bind:function(t,n,e){return this.on(t,null,n,e)},unbind:function(t,n){return this.off(t,null,n)},delegate:function(t,n,e,r){return this.on(n,t,e,r)},undelegate:function(t,n,e){return 1===arguments.length?this.off(t,"**"):this.off(n,t||"**",e)},hover:function(t,n){return this.mouseenter(t).mouseleave(n||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,n){T.fn[n]=function(t,e){return arguments.length>0?this.on(n,null,t,e):this.trigger(n)}}));var Zn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(t,n){var e,r,i;if("string"==typeof n&&(e=t[n],n=t,t=e),v(t))return r=u.call(arguments,2),i=function(){return t.apply(n||this,r.concat(u.call(arguments)))},i.guid=t.guid=t.guid||T.guid++,i},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=v,T.isWindow=m,T.camelCase=G,T.type=w,T.now=Date.now,T.isNumeric=function(t){var n=T.type(t);return("number"===n||"string"===n)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(Zn,"")},void 0===(e=function(){return T}.apply(n,[]))||(t.exports=e);var Qn=r.jQuery,Kn=r.$;return T.noConflict=function(t){return r.$===T&&(r.$=Kn),t&&r.jQuery===T&&(r.jQuery=Qn),T},void 0===i&&(r.jQuery=r.$=T),T}))},80:function(t,n,e){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});const o=r(e(734)),a=i(e(291));let u,c;c=document.body.clientWidth,u=document.body.clientHeight;const s=450,f=a.default("#resetTree"),l=a.default("#expandTree");let h=0,d=0,p=o.tree().size([u,c]);const g=o.hierarchy(treeData,(function(t){return t.children}));g.x0=u/2,g.y0=0;const y=o.select("body").append("div").style("opacity",1e-6).attr("class","tooltip");function v(){y.style("opacity",1e-6),y.style("display","none")}const m=o.zoom().scaleExtent([.3,3]).on("zoom",(function(t){_.attr("transform",t.transform),v()})),b=o.select("svg#tree-container").attr("width",c).attr("height",u).call(m),_=b.append("g").attr("id","svg-group").attr("transform","translate(0,0)");function x(t){t.each((function(t){return t.bbox=this.getBBox(),t.bbox}))}function w(t){return t.split(/(?=[A-Z])/).map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")}function M(t){t.children&&(t._children=t.children,t._children.forEach(M),t.children=null)}function T(t){if(t._children&&(t.children=t._children,t._children=null),t.children){const n=t.children.length;for(let e=0;e<n;e++)t.children[e].name&&T(t.children[e])}}function A(t){t._children&&(t.children=t._children,t._children=null);const n=t.children?t.children:t._children;n&&n.forEach(A)}function S(t,n,e){if(!t)return;n(t);const r=e(t);if(r){const t=r.length;for(let i=0;i<t;i++)S(r[i],n,e)}}function E(t,n){const e=n||2,r=o.zoomTransform(b.node());let i=-t.y0,a=-t.x0;i=i*r.k+c/e,a=a*r.k+u/2,o.select("svg#tree-container").transition().duration(s).call(m.transform,o.zoomIdentity.translate(i,a).scale(r.k))}function k(t){let n,e=0;return t.source.id&&(n=o.select("#n-"+t.source.id).node()),n&&(e=n.getBBox().width),"M"+(t.source.y+e+20)+","+t.source.x+"H"+(t.target.y-15)+"V"+t.target.x+"h15"}function N(t,n){const e=n||[],r=t.parent;if(r){const n=r.children||r._children;return e.unshift(n.indexOf(t)),N(r,e)}return e}function C(t){const n=[1];!function t(e,r){r.children&&r.children.length>0&&(n.length<=e+1&&n.push(0),n[e+1]+=r.children.length,r.children.forEach((function(n){t(e+1,n)})))}(0,g);const e=40*o.max(n);p=p.size([e,c]);const r=p(g),i=r.descendants(),a=r.links();i.forEach((function(t){t.y=t.depth*(5*d)}));const u=_.selectAll("g.node").data(i,(function(t){return t.id||(t.id=++h)})),f=u.enter().append("g").attr("class","node").attr("id",(function(t){return"n-"+t.id})).attr("transform",(function(){return"translate("+t.y0+","+t.x0+")"}));f.append("text").attr("class","node-text").attr("dy",".35em").attr("x",10).attr("text-anchor","start").attr("text-decoration",(function(t){return t.data.description?"underline":"none"})).attr("cursor",(function(t){return t.data.description?"pointer":"default"})).text((function(t){return w(t.data.name)})).on("click",(function(t,n){!function(t,n){n.data.description||n.data.type?(y.transition().duration(300).style("opacity",1).style("display","flex"),y.html(function(t){const n='<div class="tip_prop">'+t.data.name+" </div>",e='<div class="tip_desc">'+t.data.description+"</div>",r='<div class="tip_type">'+t.data.type+"</div>",i='<div class="tip_enums">'+t.data.type.replaceAll("|"," | ")+"</div>",o='<div class="tip_control">'+t.data.control+"</div>";let a='<div id="b1"><svg id="close-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g>\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M3.71313 3L3.00699 3.7049L6.79636 7.497L3 11.2941L3.70714 12L7.5025 8.20391L11.2939 11.996L12 11.2901L8.20863 7.497L11.994 3.71089L11.2869 3.00499L7.5025 6.7901L3.71313 3Z"\n fill="#C5C5C5"\n />\n </g>\n </svg></div>';return a+=n,t.data.description&&(a+=e),t.data.type&&(a+='<div class="tip_type-container">',t.data.type.includes("|")?a+=i:a+=r),t.data.artifact&&(a+='<div class="tip_type">'+w(t.data.artifact)+"</div>"),t.data.control&&(a+=o),t.data.type&&(a+="</div>"),a}(n)),o.select("#b1").on("click",(function(){v()}))):n.data.type||v();const e=b.node().getBoundingClientRect().width-420,r=b.node().getBoundingClientRect().height-220;t.pageX>e&&t.pageY>r?y.style("top",t.pageY-20+"px").style("left",t.pageX-20+"px").style("transform","translate(-100%, -100%)"):t.pageX>e&&!(t.pageY>r)?y.style("top",t.pageY+20+"px").style("left",t.pageX-20+"px").style("transform","translate(-100%, 0)"):!(t.pageX>e)&&t.pageY>r?y.style("top",t.pageY-20+"px").style("left",t.pageX+20+"px").style("transform","translate(0, -100%)"):y.style("top",t.pageY+20+"px").style("left",t.pageX+20+"px").style("transform","translate(0, 0)")}(t,n)})).call(x);const l=f.filter((function(t){if(t.data.children.length>0)return t.data.children}));l.append("text").attr("class","node-child-text").attr("x",(function(t){return t.bbox.x+t.bbox.width+20})).attr("dy",".35em").text((function(t){return t.data.children.length})).call(x),l.insert("rect","text").attr("class","node-child").attr("x",(function(t){return t.bbox.x-7})).attr("y",(function(t){return t.bbox.y-1})).attr("width",(function(t){return t.bbox.width+14})).attr("height",(function(t){return t.bbox.height+2})).attr("ry","8"),l.append("text").attr("class","node-circle-text").attr("x",(function(t){return t.bbox.x+t.bbox.width+15})).attr("dy",".35em").text("+").on("click",D).call(x),l.insert("circle","text").attr("class","node-circle").attr("r",(function(t){return t.bbox.height/2})).attr("cx",(function(t){return t.bbox.x+t.bbox.width/2})).attr("cy",(function(t){return t.bbox.y+t.bbox.height/2})).on("click",D);const m=f.merge(u);m.transition().duration(s).attr("transform",(function(t){return"translate("+t.y+","+t.x+")"})),m.select("rect").style("fill",(function(t){return t._children?"var(--vscode-foreground)":"var(--vscode-editor-background)"})).style("stroke",(function(t){return t._children?"none":"var( --vscode-editorWidget-border)"})).style("stroke-width",(function(t){return t._children?"none":"1px solid"})),m.select("circle").style("fill",(function(t){return t._children?"var(--vscode-button-background)":"var(--vscode-button-secondaryBackground)"})),m.select(".node-child-text").style("fill",(function(t){return t._children?"var( --vscode-editor-background)":"var(--vscode-foreground)"})),m.select(".node-circle-text").text((function(t){return t._children?"+":"−"})),m.selectAll("text").style("fill-opacity",1);const M=u.exit().transition().duration(s).attr("transform",(function(){return"translate("+t.y+","+t.x+")"})).remove();M.select("circle").attr("r",1e-6).style("fill-opacity",1e-6),M.selectAll("rect").attr("x",1e-6).style("fill-opacity",1e-6),M.selectAll("text").style("fill-opacity",1e-6);const T=_.selectAll("path.link").data(a,(function(t){return t.target.id}));T.enter().insert("path","g").attr("class","link").attr("d",(function(){const n={x:t.x0,y:t.y0};return k({source:n,target:n})})).merge(T).transition().duration(s).attr("d",k),T.exit().transition().duration(s).attr("d",(function(){const n={x:t.x,y:t.y};return k({source:n,target:n})})).remove(),i.forEach((function(t){t.x0=t.x,t.y0=t.y}))}function D(t,n){t.defaultPrevented||(C(n=function(t){return t.children?M(t):t._children&&T(t),t}(n)),E(n,2),v())}S(treeData,(function(t){d=Math.max(t.name.length+25,d)}),(function(t){return t.children&&t.children.length>0?t.children:null})),g.children.forEach(M),C(g),E(g,2.5),function(){const t=[];S(g,(function(n){n&&t.push(n.data.name+"|"+N(n,[]).join("-"))}),(function(t){return t.children||t._children})),t.splice(t.indexOf(g.data.name+"|"),1),t.sort(),function(t){const n=a.default("ul#search-result"),e=a.default("#search-input");a.default.each(t,(function(t,e){const r=e.split("|");a.default("<li/>").attr("data-path",r[1]).text(w(r[0])).appendTo(n)})),e.on("keyup",(function(){let t=a.default(this).val();var e;t=t.toUpperCase(),t.length>0?(e=t,a.default("#search-result li").each((function(){a.default(this).text().toUpperCase().indexOf(e)>=0?a.default(this).show():a.default(this).hide()})),n.show()):n.hide()})),n.hide(),a.default("#search-result li").on("click",(function(t){const n=function(t){let n=g;for(let e=0;e<t.length;e++)n._children&&T(n),n=n.children[t[e]];return C(g),E(n,2),n}(a.default(t.target).attr("data-path").split("-"));!function(t){let n=4;const e=a.default("#n-"+t.id+" text");for(;n--;)e.fadeTo(350,0).fadeTo(350,1)}(n)}))}(t)}(),a.default("#n-1").append(floorPlanIcon),o.select("#floorPlan-icon").attr("y",-7).attr("x",-15),f.on("click",(function(){g.children.forEach(M),C(g),E(g,2.5)})),l.on("click",(function(){A(g),C(g),E(g,5)})),o.select(window).on("resize",(function(){c=a.default(window).width(),u=a.default(window).height(),b.attr("width",c),b.attr("height",u),E(g,5)}))},734:(t,n,e)=>{"use strict";function r(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function i(t){let n=t,e=t,i=t;function o(t,n,r=0,o=t.length){if(r<o){if(0!==e(n,n))return o;do{const e=r+o>>>1;i(t[e],n)<0?r=e+1:o=e}while(r<o)}return r}return 1===t.length&&(n=(n,e)=>t(n)-e,e=r,i=(n,e)=>r(t(n),e)),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,r=0,o=t.length){if(r<o){if(0!==e(n,n))return o;do{const e=r+o>>>1;i(t[e],n)<=0?r=e+1:o=e}while(r<o)}return r}}}function o(t){return null===t?NaN:+t}e.r(n),e.d(n,{Adder:()=>x,Delaunay:()=>Du,FormatSpecifier:()=>js,InternMap:()=>T,InternSet:()=>A,Node:()=>tg,Voronoi:()=>Au,ZoomTransform:()=>nA,active:()=>Ki,arc:()=>Xw,area:()=>nM,areaRadial:()=>fM,ascending:()=>r,autoType:()=>uc,axisBottom:()=>en,axisLeft:()=>rn,axisRight:()=>nn,axisTop:()=>tn,bin:()=>it,bisect:()=>f,bisectCenter:()=>s,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>i,blob:()=>Fc,brush:()=>Co,brushSelection:()=>Eo,brushX:()=>ko,brushY:()=>No,buffer:()=>Uc,chord:()=>Bo,chordDirected:()=>Yo,chordTranspose:()=>Uo,cluster:()=>Xp,color:()=>Ke,contourDensity:()=>eu,contours:()=>Za,count:()=>l,create:()=>_w,creator:()=>he,cross:()=>g,csv:()=>Vc,csvFormat:()=>Vu,csvFormatBody:()=>Gu,csvFormatRow:()=>Qu,csvFormatRows:()=>Zu,csvFormatValue:()=>Ku,csvParse:()=>$u,csvParseRows:()=>Xu,cubehelix:()=>Ha,cumsum:()=>y,curveBasis:()=>UM,curveBasisClosed:()=>WM,curveBasisOpen:()=>XM,curveBumpX:()=>GM,curveBumpY:()=>ZM,curveBundle:()=>KM,curveCardinal:()=>nT,curveCardinalClosed:()=>rT,curveCardinalOpen:()=>oT,curveCatmullRom:()=>cT,curveCatmullRomClosed:()=>fT,curveCatmullRomOpen:()=>hT,curveLinear:()=>Qw,curveLinearClosed:()=>pT,curveMonotoneX:()=>wT,curveMonotoneY:()=>MT,curveNatural:()=>ST,curveStep:()=>kT,curveStepAfter:()=>CT,curveStepBefore:()=>NT,descending:()=>v,deviation:()=>b,difference:()=>It,disjoint:()=>Ht,dispatch:()=>ln,drag:()=>zu,dragDisable:()=>Pe,dragEnable:()=>qe,dsv:()=>Xc,dsvFormat:()=>Yu,easeBack:()=>Lc,easeBackIn:()=>qc,easeBackInOut:()=>Lc,easeBackOut:()=>jc,easeBounce:()=>Cc,easeBounceIn:()=>Nc,easeBounceInOut:()=>Dc,easeBounceOut:()=>Cc,easeCircle:()=>Ec,easeCircleIn:()=>Ac,easeCircleInOut:()=>Ec,easeCircleOut:()=>Sc,easeCubic:()=>Vi,easeCubicIn:()=>$i,easeCubicInOut:()=>Vi,easeCubicOut:()=>Xi,easeElastic:()=>zc,easeElasticIn:()=>Rc,easeElasticInOut:()=>Ic,easeElasticOut:()=>zc,easeExp:()=>Tc,easeExpIn:()=>wc,easeExpInOut:()=>Tc,easeExpOut:()=>Mc,easeLinear:()=>sc,easePoly:()=>gc,easePolyIn:()=>dc,easePolyInOut:()=>gc,easePolyOut:()=>pc,easeQuad:()=>hc,easeQuadIn:()=>fc,easeQuadInOut:()=>hc,easeQuadOut:()=>lc,easeSin:()=>_c,easeSinIn:()=>mc,easeSinInOut:()=>_c,easeSinOut:()=>bc,every:()=>qt,extent:()=>_,fcumsum:()=>M,filter:()=>Lt,flatGroup:()=>j,flatRollup:()=>L,forceCenter:()=>rs,forceCollide:()=>ys,forceLink:()=>bs,forceManyBody:()=>As,forceRadial:()=>Ss,forceSimulation:()=>Ts,forceX:()=>Es,forceY:()=>ks,format:()=>Is,formatDefaultLocale:()=>Ys,formatLocale:()=>Us,formatPrefix:()=>Hs,formatSpecifier:()=>qs,fsum:()=>w,geoAlbers:()=>cp,geoAlbersUsa:()=>sp,geoArea:()=>Gf,geoAzimuthalEqualArea:()=>dp,geoAzimuthalEqualAreaRaw:()=>hp,geoAzimuthalEquidistant:()=>gp,geoAzimuthalEquidistantRaw:()=>pp,geoBounds:()=>Cl,geoCentroid:()=>Bl,geoCircle:()=>Jl,geoClipAntimeridian:()=>fh,geoClipCircle:()=>lh,geoClipExtent:()=>bh,geoClipRectangle:()=>mh,geoConicConformal:()=>xp,geoConicConformalRaw:()=>_p,geoConicEqualArea:()=>up,geoConicEqualAreaRaw:()=>ap,geoConicEquidistant:()=>Ap,geoConicEquidistantRaw:()=>Tp,geoContains:()=>Oh,geoDistance:()=>Eh,geoEqualEarth:()=>Pp,geoEqualEarthRaw:()=>Dp,geoEquirectangular:()=>Mp,geoEquirectangularRaw:()=>wp,geoGnomonic:()=>jp,geoGnomonicRaw:()=>qp,geoGraticule:()=>Ih,geoGraticule10:()=>Hh,geoIdentity:()=>Lp,geoInterpolate:()=>Fh,geoLength:()=>Th,geoMercator:()=>vp,geoMercatorRaw:()=>yp,geoNaturalEarth1:()=>Rp,geoNaturalEarth1Raw:()=>Op,geoOrthographic:()=>Ip,geoOrthographicRaw:()=>zp,geoPath:()=>Yd,geoProjection:()=>rp,geoProjectionMutator:()=>ip,geoRotation:()=>Zl,geoStereographic:()=>Fp,geoStereographicRaw:()=>Hp,geoStream:()=>Af,geoTransform:()=>Wd,geoTransverseMercator:()=>Up,geoTransverseMercatorRaw:()=>Bp,gray:()=>ba,greatest:()=>Tt,greatestIndex:()=>At,group:()=>D,groupSort:()=>$,groups:()=>P,hcl:()=>ka,hierarchy:()=>Gp,histogram:()=>it,hsl:()=>sr,html:()=>ns,image:()=>Zc,index:()=>z,indexes:()=>I,interpolate:()=>qr,interpolateArray:()=>Ar,interpolateBasis:()=>dr,interpolateBasisClosed:()=>pr,interpolateBlues:()=>Xx,interpolateBrBG:()=>ox,interpolateBuGn:()=>Mx,interpolateBuPu:()=>Ax,interpolateCividis:()=>iw,interpolateCool:()=>uw,interpolateCubehelix:()=>ay,interpolateCubehelixDefault:()=>ow,interpolateCubehelixLong:()=>uy,interpolateDate:()=>Er,interpolateDiscrete:()=>Xg,interpolateGnBu:()=>Ex,interpolateGreens:()=>Gx,interpolateGreys:()=>Qx,interpolateHcl:()=>ry,interpolateHclLong:()=>iy,interpolateHsl:()=>Jg,interpolateHslLong:()=>ty,interpolateHue:()=>Vg,interpolateInferno:()=>mw,interpolateLab:()=>ny,interpolateMagma:()=>vw,interpolateNumber:()=>kr,interpolateNumberArray:()=>Mr,interpolateObject:()=>Nr,interpolateOrRd:()=>Nx,interpolateOranges:()=>rw,interpolatePRGn:()=>ux,interpolatePiYG:()=>sx,interpolatePlasma:()=>bw,interpolatePuBu:()=>qx,interpolatePuBuGn:()=>Dx,interpolatePuOr:()=>lx,interpolatePuRd:()=>Lx,interpolatePurples:()=>Jx,interpolateRainbow:()=>sw,interpolateRdBu:()=>dx,interpolateRdGy:()=>gx,interpolateRdPu:()=>Rx,interpolateRdYlBu:()=>vx,interpolateRdYlGn:()=>bx,interpolateReds:()=>nw,interpolateRgb:()=>br,interpolateRgbBasis:()=>xr,interpolateRgbBasisClosed:()=>wr,interpolateRound:()=>Gg,interpolateSinebow:()=>dw,interpolateSpectral:()=>xx,interpolateString:()=>Pr,interpolateTransformCss:()=>di,interpolateTransformSvg:()=>pi,interpolateTurbo:()=>pw,interpolateViridis:()=>yw,interpolateWarm:()=>aw,interpolateYlGn:()=>Fx,interpolateYlGnBu:()=>Ix,interpolateYlOrBr:()=>Ux,interpolateYlOrRd:()=>Wx,interpolateZoom:()=>Qg,interrupt:()=>ui,intersection:()=>Bt,interval:()=>KT,isoFormat:()=>GT,isoParse:()=>QT,json:()=>Kc,lab:()=>_a,lch:()=>Ea,least:()=>wt,leastIndex:()=>Mt,line:()=>tM,lineRadial:()=>sM,linkHorizontal:()=>mM,linkRadial:()=>_M,linkVertical:()=>bM,local:()=>ww,map:()=>Ot,matcher:()=>vn,max:()=>ot,maxIndex:()=>dt,mean:()=>pt,median:()=>gt,merge:()=>yt,min:()=>at,minIndex:()=>vt,mode:()=>mt,namespace:()=>qn,namespaces:()=>Pn,nice:()=>et,now:()=>$r,pack:()=>_g,packEnclose:()=>ng,packSiblings:()=>pg,pairs:()=>bt,partition:()=>Sg,path:()=>Ko,permute:()=>B,pie:()=>iM,piecewise:()=>cy,pointRadial:()=>lM,pointer:()=>Lr,pointers:()=>Tw,polygonArea:()=>fy,polygonCentroid:()=>ly,polygonContains:()=>gy,polygonHull:()=>py,polygonLength:()=>yy,precisionFixed:()=>Ws,precisionPrefix:()=>$s,precisionRound:()=>Xs,quadtree:()=>cs,quantile:()=>st,quantileSorted:()=>ft,quantize:()=>sy,quickselect:()=>ut,radialArea:()=>fM,radialLine:()=>sM,randomBates:()=>My,randomBernoulli:()=>Sy,randomBeta:()=>Ny,randomBinomial:()=>Cy,randomCauchy:()=>Py,randomExponential:()=>Ty,randomGamma:()=>ky,randomGeometric:()=>Ey,randomInt:()=>by,randomIrwinHall:()=>wy,randomLcg:()=>Oy,randomLogNormal:()=>xy,randomLogistic:()=>qy,randomNormal:()=>_y,randomPareto:()=>Ay,randomPoisson:()=>jy,randomUniform:()=>my,randomWeibull:()=>Dy,range:()=>xt,reduce:()=>Rt,reverse:()=>zt,rgb:()=>er,ribbon:()=>sa,ribbonArrow:()=>fa,rollup:()=>O,rollups:()=>R,scaleBand:()=>Fy,scaleDiverging:()=>F_,scaleDivergingLog:()=>B_,scaleDivergingPow:()=>Y_,scaleDivergingSqrt:()=>W_,scaleDivergingSymlog:()=>U_,scaleIdentity:()=>ev,scaleImplicit:()=>Iy,scaleLinear:()=>nv,scaleLog:()=>lv,scaleOrdinal:()=>Hy,scalePoint:()=>Uy,scalePow:()=>_v,scaleQuantile:()=>Av,scaleQuantize:()=>Sv,scaleRadial:()=>Tv,scaleSequential:()=>j_,scaleSequentialLog:()=>L_,scaleSequentialPow:()=>R_,scaleSequentialQuantile:()=>I_,scaleSequentialSqrt:()=>z_,scaleSequentialSymlog:()=>O_,scaleSqrt:()=>xv,scaleSymlog:()=>gv,scaleThreshold:()=>Ev,scaleTime:()=>C_,scaleUtc:()=>D_,scan:()=>St,schemeAccent:()=>V_,schemeBlues:()=>$x,schemeBrBG:()=>ix,schemeBuGn:()=>wx,schemeBuPu:()=>Tx,schemeCategory10:()=>X_,schemeDark2:()=>G_,schemeGnBu:()=>Sx,schemeGreens:()=>Vx,schemeGreys:()=>Zx,schemeOrRd:()=>kx,schemeOranges:()=>ew,schemePRGn:()=>ax,schemePaired:()=>Z_,schemePastel1:()=>Q_,schemePastel2:()=>K_,schemePiYG:()=>cx,schemePuBu:()=>Px,schemePuBuGn:()=>Cx,schemePuOr:()=>fx,schemePuRd:()=>jx,schemePurples:()=>Kx,schemeRdBu:()=>hx,schemeRdGy:()=>px,schemeRdPu:()=>Ox,schemeRdYlBu:()=>yx,schemeRdYlGn:()=>mx,schemeReds:()=>tw,schemeSet1:()=>J_,schemeSet2:()=>tx,schemeSet3:()=>nx,schemeSpectral:()=>_x,schemeTableau10:()=>ex,schemeYlGn:()=>Hx,schemeYlGnBu:()=>zx,schemeYlOrBr:()=>Bx,schemeYlOrRd:()=>Yx,select:()=>Ee,selectAll:()=>Aw,selection:()=>Se,selector:()=>dn,selectorAll:()=>yn,shuffle:()=>Et,shuffler:()=>kt,some:()=>jt,sort:()=>U,stack:()=>LT,stackOffsetDiverging:()=>RT,stackOffsetExpand:()=>OT,stackOffsetNone:()=>DT,stackOffsetSilhouette:()=>zT,stackOffsetWiggle:()=>IT,stackOrderAppearance:()=>HT,stackOrderAscending:()=>BT,stackOrderDescending:()=>YT,stackOrderInsideOut:()=>WT,stackOrderNone:()=>PT,stackOrderReverse:()=>$T,stratify:()=>Dg,style:()=>Yn,subset:()=>Yt,sum:()=>Nt,superset:()=>Ut,svg:()=>es,symbol:()=>IM,symbolCircle:()=>xM,symbolCross:()=>wM,symbolDiamond:()=>AM,symbolSquare:()=>CM,symbolStar:()=>NM,symbolTriangle:()=>PM,symbolWye:()=>RM,symbols:()=>zM,text:()=>Wc,thresholdFreedmanDiaconis:()=>lt,thresholdScott:()=>ht,thresholdSturges:()=>rt,tickFormat:()=>Jy,tickIncrement:()=>tt,tickStep:()=>nt,ticks:()=>J,timeDay:()=>Zv,timeDays:()=>Qv,timeFormat:()=>ob,timeFormatDefaultLocale:()=>S_,timeFormatLocale:()=>rb,timeFriday:()=>im,timeFridays:()=>lm,timeHour:()=>Xv,timeHours:()=>Vv,timeInterval:()=>Ov,timeMillisecond:()=>zv,timeMilliseconds:()=>Iv,timeMinute:()=>Yv,timeMinutes:()=>Wv,timeMonday:()=>tm,timeMondays:()=>um,timeMonth:()=>pm,timeMonths:()=>gm,timeParse:()=>ab,timeSaturday:()=>om,timeSaturdays:()=>hm,timeSecond:()=>Fv,timeSeconds:()=>Bv,timeSunday:()=>Jv,timeSundays:()=>am,timeThursday:()=>rm,timeThursdays:()=>fm,timeTickInterval:()=>Jm,timeTicks:()=>Km,timeTuesday:()=>nm,timeTuesdays:()=>cm,timeWednesday:()=>em,timeWednesdays:()=>sm,timeWeek:()=>Jv,timeWeeks:()=>am,timeYear:()=>vm,timeYears:()=>mm,timeout:()=>ti,timer:()=>Gr,timerFlush:()=>Zr,transition:()=>Ui,transpose:()=>Ct,tree:()=>zg,treemap:()=>Ug,treemapBinary:()=>Yg,treemapDice:()=>Ag,treemapResquarify:()=>$g,treemapSlice:()=>Ig,treemapSliceDice:()=>Wg,treemapSquarify:()=>Bg,tsv:()=>Gc,tsvFormat:()=>ec,tsvFormatBody:()=>rc,tsvFormatRow:()=>oc,tsvFormatRows:()=>ic,tsvFormatValue:()=>ac,tsvParse:()=>tc,tsvParseRows:()=>nc,union:()=>Wt,utcDay:()=>Sm,utcDays:()=>Em,utcFormat:()=>ub,utcFriday:()=>jm,utcFridays:()=>Fm,utcHour:()=>Mm,utcHours:()=>Tm,utcMillisecond:()=>zv,utcMilliseconds:()=>Iv,utcMinute:()=>_m,utcMinutes:()=>xm,utcMonday:()=>Cm,utcMondays:()=>Rm,utcMonth:()=>Ym,utcMonths:()=>Wm,utcParse:()=>cb,utcSaturday:()=>Lm,utcSaturdays:()=>Bm,utcSecond:()=>Fv,utcSeconds:()=>Bv,utcSunday:()=>Nm,utcSundays:()=>Om,utcThursday:()=>qm,utcThursdays:()=>Hm,utcTickInterval:()=>Qm,utcTicks:()=>Zm,utcTuesday:()=>Dm,utcTuesdays:()=>zm,utcWednesday:()=>Pm,utcWednesdays:()=>Im,utcWeek:()=>Nm,utcWeeks:()=>Om,utcYear:()=>Xm,utcYears:()=>Vm,variance:()=>m,window:()=>Hn,xml:()=>ts,zip:()=>Pt,zoom:()=>hA,zoomIdentity:()=>eA,zoomTransform:()=>rA});const a=i(r),u=a.right,c=a.left,s=i(o).center,f=u;function l(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function h(t){return 0|t.length}function d(t){return!(t>0)}function p(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function g(...t){const n="function"==typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),e=(t=t.map(p)).map(h),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||e.some(d))return o;for(;;){o.push(i.map(((n,e)=>t[e][n])));let a=r;for(;++i[a]===e[a];){if(0===a)return n?o.map(n):o;i[a--]=0}}}function y(t,n){var e=0,r=0;return Float64Array.from(t,void 0===n?t=>e+=+t||0:i=>e+=+n(i,r++,t)||0)}function v(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function m(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,o+=e*(n-i));else{let a=-1;for(let u of t)null!=(u=n(u,++a,t))&&(u=+u)>=u&&(e=u-i,i+=e/++r,o+=e*(u-i))}if(r>1)return o/(r-1)}function b(t,n){const e=m(t,n);return e?Math.sqrt(e):e}function _(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}class x{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let r=0;r<this._n&&r<32;r++){const i=n[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(n[e++]=a),t=o}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}function w(t,n){const e=new x;if(void 0===n)for(let n of t)(n=+n)&&e.add(n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&e.add(i)}return+e}function M(t,n){const e=new x;let r=-1;return Float64Array.from(t,void 0===n?t=>e.add(+t||0):i=>e.add(+n(i,++r,t)||0))}class T extends Map{constructor(t,n=N){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(S(this,t))}has(t){return super.has(S(this,t))}set(t,n){return super.set(E(this,t),n)}delete(t){return super.delete(k(this,t))}}class A extends Set{constructor(t,n=N){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(S(this,t))}add(t){return super.add(E(this,t))}delete(t){return super.delete(k(this,t))}}function S({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function E({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function k({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(e),t.delete(r)),e}function N(t){return null!==t&&"object"==typeof t?t.valueOf():t}function C(t){return t}function D(t,...n){return F(t,C,C,n)}function P(t,...n){return F(t,Array.from,C,n)}function q(t,n){for(let e=1,r=n.length;e<r;++e)t=t.flatMap((t=>t.pop().map((([n,e])=>[...t,n,e]))));return t}function j(t,...n){return q(P(t,...n),n)}function L(t,n,...e){return q(R(t,n,...e),e)}function O(t,n,...e){return F(t,C,n,e)}function R(t,n,...e){return F(t,Array.from,n,e)}function z(t,...n){return F(t,C,H,n)}function I(t,...n){return F(t,Array.from,H,n)}function H(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function F(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new T,u=r[o++];let c=-1;for(const t of i){const n=u(t,++c,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}function B(t,n){return Array.from(n,(n=>t[n]))}function U(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[e]=n;if(e&&1===e.length||n.length>1){const r=Uint32Array.from(t,((t,n)=>n));return n.length>1?(n=n.map((n=>t.map(n))),r.sort(((t,e)=>{for(const r of n){const n=W(r[t],r[e]);if(n)return n}}))):(e=t.map(e),r.sort(((t,n)=>W(e[t],e[n])))),B(t,r)}return t.sort(void 0===e?W:Y(e))}function Y(t){if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function W(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function $(t,n,e){return(1===n.length?U(O(t,n,e),(([t,n],[e,i])=>r(n,i)||r(t,e))):U(D(t,e),(([t,e],[i,o])=>n(e,o)||r(t,i)))).map((([t])=>t))}var X=Array.prototype,V=X.slice;function G(t){return()=>t}X.map;var Z=Math.sqrt(50),Q=Math.sqrt(10),K=Math.sqrt(2);function J(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=tt(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)/a}return r&&o.reverse(),o}function tt(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Z?10:o>=Q?5:o>=K?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Z?10:o>=Q?5:o>=K?2:1)}function nt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Z?i*=10:o>=Q?i*=5:o>=K&&(i*=2),n<t?-i:i}function et(t,n,e){let r;for(;;){const i=tt(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}function rt(t){return Math.ceil(Math.log(l(t))/Math.LN2)+1}function it(){var t=C,n=_,e=rt;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a=r.length,u=new Array(a);for(i=0;i<a;++i)u[i]=t(r[i],i,r);var c=n(u),s=c[0],l=c[1],h=e(u,s,l);if(!Array.isArray(h)){const t=l,e=+h;if(n===_&&([s,l]=et(s,l,e)),(h=J(s,l,e))[h.length-1]>=l)if(t>=l&&n===_){const t=tt(s,l,e);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else h.pop()}for(var d=h.length;h[0]<=s;)h.shift(),--d;for(;h[d-1]>l;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:s,p.x1=i<d?h[i]:l;for(i=0;i<a;++i)null!=(o=u[i])&&s<=o&&o<=l&&g[f(h,o,0,d)].push(r[i]);return g}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:G(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:G([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?G(V.call(t)):G(t),r):e},r}function ot(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function at(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function ut(t,n,e=0,r=t.length-1,i){for(i=void 0===i?W:Y(i);r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,u=Math.log(o),c=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*c*(o-c)/o)*(a-o/2<0?-1:1);ut(t,n,Math.max(e,Math.floor(n-a*c/o+s)),Math.min(r,Math.floor(n+(o-a)*c/o+s)),i)}const o=t[n];let a=e,u=r;for(ct(t,e,n),i(t[r],o)>0&&ct(t,e,r);a<u;){for(ct(t,a,u),++a,--u;i(t[a],o)<0;)++a;for(;i(t[u],o)>0;)--u}0===i(t[e],o)?ct(t,e,u):(++u,ct(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function ct(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function st(t,n,e){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),r=t.length){if((n=+n)<=0||r<2)return at(t);if(n>=1)return ot(t);var r,i=(r-1)*n,o=Math.floor(i),a=ot(ut(t,o).subarray(0,o+1));return a+(at(t.subarray(o+1))-a)*(i-o)}}function ft(t,n,e=o){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,a=Math.floor(i),u=+e(t[a],a,t);return u+(+e(t[a+1],a+1,t)-u)*(i-a)}}function lt(t,n,e){return Math.ceil((e-n)/(2*(st(t,.75)-st(t,.25))*Math.pow(l(t),-1/3)))}function ht(t,n,e){return Math.ceil((e-n)/(3.5*b(t)*Math.pow(l(t),-1/3)))}function dt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e<n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e<o||void 0===e&&o>=o)&&(e=o,r=i);return r}function pt(t,n){let e=0,r=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(++e,r+=n);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(o=+o)>=o&&(++e,r+=o)}if(e)return r/e}function gt(t,n){return st(t,.5,n)}function yt(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function vt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e>n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);return r}function mt(t,n){const e=new T;if(void 0===n)for(let n of t)null!=n&&n>=n&&e.set(n,(e.get(n)||0)+1);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&i>=i&&e.set(i,(e.get(i)||0)+1)}let r,i=0;for(const[t,n]of e)n>i&&(i=n,r=t);return r}function bt(t,n=_t){const e=[];let r,i=!1;for(const o of t)i&&e.push(n(r,o)),r=o,i=!0;return e}function _t(t,n){return[t,n]}function xt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function wt(t,n=r){let e,i=!1;if(1===n.length){let o;for(const a of t){const t=n(a);(i?r(t,o)<0:0===r(t,t))&&(e=a,o=t,i=!0)}}else for(const r of t)(i?n(r,e)<0:0===n(r,r))&&(e=r,i=!0);return e}function Mt(t,n=r){if(1===n.length)return vt(t,n);let e,i=-1,o=-1;for(const r of t)++o,(i<0?0===n(r,r):n(r,e)<0)&&(e=r,i=o);return i}function Tt(t,n=r){let e,i=!1;if(1===n.length){let o;for(const a of t){const t=n(a);(i?r(t,o)>0:0===r(t,t))&&(e=a,o=t,i=!0)}}else for(const r of t)(i?n(r,e)>0:0===n(r,r))&&(e=r,i=!0);return e}function At(t,n=r){if(1===n.length)return dt(t,n);let e,i=-1,o=-1;for(const r of t)++o,(i<0?0===n(r,r):n(r,e)>0)&&(e=r,i=o);return i}function St(t,n){const e=Mt(t,n);return e<0?void 0:e}const Et=kt(Math.random);function kt(t){return function(n,e=0,r=n.length){let i=r-(e=+e);for(;i;){const r=t()*i--|0,o=n[i+e];n[i+e]=n[r+e],n[r+e]=o}return n}}function Nt(t,n){let e=0;if(void 0===n)for(let n of t)(n=+n)&&(e+=n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&(e+=i)}return e}function Ct(t){if(!(i=t.length))return[];for(var n=-1,e=at(t,Dt),r=new Array(e);++n<e;)for(var i,o=-1,a=r[n]=new Array(i);++o<i;)a[o]=t[o][n];return r}function Dt(t){return t.length}function Pt(){return Ct(arguments)}function qt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(!n(r,++e,t))return!1;return!0}function jt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(n(r,++e,t))return!0;return!1}function Lt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");const e=[];let r=-1;for(const i of t)n(i,++r,t)&&e.push(i);return e}function Ot(t,n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof n)throw new TypeError("mapper is not a function");return Array.from(t,((e,r)=>n(e,r,t)))}function Rt(t,n,e){if("function"!=typeof n)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:e}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)e=n(e,o,++a,t);return e}function zt(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function It(t,...n){t=new Set(t);for(const e of n)for(const n of e)t.delete(n);return t}function Ht(t,n){const e=n[Symbol.iterator](),r=new Set;for(const n of t){if(r.has(n))return!1;let t,i;for(;({value:t,done:i}=e.next())&&!i;){if(Object.is(n,t))return!1;r.add(t)}}return!0}function Ft(t){return t instanceof Set?t:new Set(t)}function Bt(t,...n){t=new Set(t),n=n.map(Ft);t:for(const e of t)for(const r of n)if(!r.has(e)){t.delete(e);continue t}return t}function Ut(t,n){const e=t[Symbol.iterator](),r=new Set;for(const t of n){if(r.has(t))continue;let n,i;for(;({value:n,done:i}=e.next());){if(i)return!1;if(r.add(n),Object.is(t,n))break}}return!0}function Yt(t,n){return Ut(n,t)}function Wt(...t){const n=new Set;for(const e of t)for(const t of e)n.add(t);return n}function $t(t){return t}var Xt=1e-6;function Vt(t){return"translate("+t+",0)"}function Gt(t){return"translate(0,"+t+")"}function Zt(t){return n=>+t(n)}function Qt(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function Kt(){return!this.__axis}function Jt(t,n){var e=[],r=null,i=null,o=6,a=6,u=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,s=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",l=1===t||3===t?Vt:Gt;function h(h){var d=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,p=null==i?n.tickFormat?n.tickFormat.apply(n,e):$t:i,g=Math.max(o,0)+u,y=n.range(),v=+y[0]+c,m=+y[y.length-1]+c,b=(n.bandwidth?Qt:Zt)(n.copy(),c),_=h.selection?h.selection():h,x=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(d,n).order(),M=w.exit(),T=w.enter().append("g").attr("class","tick"),A=w.select("line"),S=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(T),A=A.merge(T.append("line").attr("stroke","currentColor").attr(f+"2",s*o)),S=S.merge(T.append("text").attr("fill","currentColor").attr(f,s*g).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==_&&(x=x.transition(h),w=w.transition(h),A=A.transition(h),S=S.transition(h),M=M.transition(h).attr("opacity",Xt).attr("transform",(function(t){return isFinite(t=b(t))?l(t+c):this.getAttribute("transform")})),T.attr("opacity",Xt).attr("transform",(function(t){var n=this.parentNode.__axis;return l((n&&isFinite(n=n(t))?n:b(t))+c)}))),M.remove(),x.attr("d",4===t||2===t?a?"M"+s*a+","+v+"H"+c+"V"+m+"H"+s*a:"M"+c+","+v+"V"+m:a?"M"+v+","+s*a+"V"+c+"H"+m+"V"+s*a:"M"+v+","+c+"H"+m),w.attr("opacity",1).attr("transform",(function(t){return l(b(t)+c)})),A.attr(f+"2",s*o),S.attr(f,s*g).text(p),_.filter(Kt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),_.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return e=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(e=null==t?[]:Array.from(t),h):e.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(c=+t,h):c},h}function tn(t){return Jt(1,t)}function nn(t){return Jt(2,t)}function en(t){return Jt(3,t)}function rn(t){return Jt(4,t)}var on={value:()=>{}};function an(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new un(r)}function un(t){this._=t}function cn(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function sn(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function fn(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=on,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}un.prototype=an.prototype={constructor:un,on:function(t,n){var e,r=this._,i=cn(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<a;)if(e=(t=i[o]).type)r[e]=fn(r[e],t.name,n);else if(null==n)for(e in r)r[e]=fn(r[e],t.name,null);return this}for(;++o<a;)if((e=(t=i[o]).type)&&(e=sn(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new un(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};const ln=an;function hn(){}function dn(t){return null==t?hn:function(){return this.querySelector(t)}}function pn(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function gn(){return[]}function yn(t){return null==t?gn:function(){return this.querySelectorAll(t)}}function vn(t){return function(){return this.matches(t)}}function mn(t){return function(n){return n.matches(t)}}var bn=Array.prototype.find;function _n(){return this.firstElementChild}var xn=Array.prototype.filter;function wn(){return Array.from(this.children)}function Mn(t){return new Array(t.length)}function Tn(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function An(t){return function(){return t}}function Sn(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;u<s;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new Tn(t,o[u]);for(;u<c;++u)(a=n[u])&&(i[u]=a)}function En(t,n,e,r,i,o,a){var u,c,s,f=new Map,l=n.length,h=o.length,d=new Array(l);for(u=0;u<l;++u)(c=n[u])&&(d[u]=s=a.call(c,c.__data__,u,n)+"",f.has(s)?i[u]=c:f.set(s,c));for(u=0;u<h;++u)s=a.call(t,o[u],u,o)+"",(c=f.get(s))?(r[u]=c,c.__data__=o[u],f.delete(s)):e[u]=new Tn(t,o[u]);for(u=0;u<l;++u)(c=n[u])&&f.get(d[u])===c&&(i[u]=c)}function kn(t){return t.__data__}function Nn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Cn(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Tn.prototype={constructor:Tn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Dn="http://www.w3.org/1999/xhtml";const Pn={svg:"http://www.w3.org/2000/svg",xhtml:Dn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qn(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Pn.hasOwnProperty(n)?{space:Pn[n],local:t}:t}function jn(t){return function(){this.removeAttribute(t)}}function Ln(t){return function(){this.removeAttributeNS(t.space,t.local)}}function On(t,n){return function(){this.setAttribute(t,n)}}function Rn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function zn(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function In(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Hn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Fn(t){return function(){this.style.removeProperty(t)}}function Bn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Un(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Yn(t,n){return t.style.getPropertyValue(n)||Hn(t).getComputedStyle(t,null).getPropertyValue(n)}function Wn(t){return function(){delete this[t]}}function $n(t,n){return function(){this[t]=n}}function Xn(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Vn(t){return t.trim().split(/^|\s+/)}function Gn(t){return t.classList||new Zn(t)}function Zn(t){this._node=t,this._names=Vn(t.getAttribute("class")||"")}function Qn(t,n){for(var e=Gn(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Kn(t,n){for(var e=Gn(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Jn(t){return function(){Qn(this,t)}}function te(t){return function(){Kn(this,t)}}function ne(t,n){return function(){(n.apply(this,arguments)?Qn:Kn)(this,t)}}function ee(){this.textContent=""}function re(t){return function(){this.textContent=t}}function ie(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function oe(){this.innerHTML=""}function ae(t){return function(){this.innerHTML=t}}function ue(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ce(){this.nextSibling&&this.parentNode.appendChild(this)}function se(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fe(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Dn&&n.documentElement.namespaceURI===Dn?n.createElement(t):n.createElementNS(e,t)}}function le(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function he(t){var n=qn(t);return(n.local?le:fe)(n)}function de(){return null}function pe(){var t=this.parentNode;t&&t.removeChild(this)}function ge(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ye(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ve(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function me(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function be(t,n,e){return function(){var r,i=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(i)for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=e),void(r.value=n);this.addEventListener(t.type,o,e),r={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(r):this.__on=[r]}}function _e(t,n,e){var r=Hn(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function xe(t,n){return function(){return _e(this,t,n)}}function we(t,n){return function(){return _e(this,t,n.apply(this,arguments))}}Zn.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Me=[null];function Te(t,n){this._groups=t,this._parents=n}function Ae(){return new Te([[document.documentElement]],Me)}Te.prototype=Ae.prototype={constructor:Te,select:function(t){"function"!=typeof t&&(t=dn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,u=n[i],c=u.length,s=r[i]=new Array(c),f=0;f<c;++f)(o=u[f])&&(a=t.call(o,o.__data__,f,u))&&("__data__"in o&&(a.__data__=o.__data__),s[f]=a);return new Te(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return pn(t.apply(this,arguments))}}(t):yn(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a,u=n[o],c=u.length,s=0;s<c;++s)(a=u[s])&&(r.push(t.call(a,a.__data__,s,u)),i.push(a));return new Te(r,i)},selectChild:function(t){return this.select(null==t?_n:function(t){return function(){return bn.call(this.children,t)}}("function"==typeof t?t:mn(t)))},selectChildren:function(t){return this.selectAll(null==t?wn:function(t){return function(){return xn.call(this.children,t)}}("function"==typeof t?t:mn(t)))},filter:function(t){"function"!=typeof t&&(t=vn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new Te(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,kn);var e=n?En:Sn,r=this._parents,i=this._groups;"function"!=typeof t&&(t=An(t));for(var o=i.length,a=new Array(o),u=new Array(o),c=new Array(o),s=0;s<o;++s){var f=r[s],l=i[s],h=l.length,d=Nn(t.call(f,f&&f.__data__,s,r)),p=d.length,g=u[s]=new Array(p),y=a[s]=new Array(p),v=c[s]=new Array(h);e(f,l,g,y,v,d,n);for(var m,b,_=0,x=0;_<p;++_)if(m=g[_]){for(_>=x&&(x=_+1);!(b=y[x])&&++x<p;);m._next=b||null}}return(a=new Te(a,r))._enter=u,a._exit=c,a},enter:function(){return new Te(this._enter||this._groups.map(Mn),this._parents)},exit:function(){return new Te(this._exit||this._groups.map(Mn),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=n&&(i=n(i))&&(i=i.selection()),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,a=Math.min(i,o),u=new Array(i),c=0;c<a;++c)for(var s,f=e[c],l=r[c],h=f.length,d=u[c]=new Array(h),p=0;p<h;++p)(s=f[p]||l[p])&&(d[p]=s);for(;c<i;++c)u[c]=e[c];return new Te(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Cn);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],c=u.length,s=i[o]=new Array(c),f=0;f<c;++f)(a=u[f])&&(s[f]=a);s.sort(n)}return new Te(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,n){var e=qn(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?Ln:jn:"function"==typeof n?e.local?In:zn:e.local?Rn:On)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?Fn:"function"==typeof n?Un:Bn)(t,n,null==e?"":e)):Yn(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Wn:"function"==typeof n?Xn:$n)(t,n)):this.node()[t]},classed:function(t,n){var e=Vn(t+"");if(arguments.length<2){for(var r=Gn(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?ne:n?Jn:te)(e,n))},text:function(t){return arguments.length?this.each(null==t?ee:("function"==typeof t?ie:re)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?oe:("function"==typeof t?ue:ae)(t)):this.node().innerHTML},raise:function(){return this.each(ce)},lower:function(){return this.each(se)},append:function(t){var n="function"==typeof t?t:he(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:he(t),r=null==n?de:"function"==typeof n?n:dn(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(pe)},clone:function(t){return this.select(t?ye:ge)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=ve(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?be:me,r=0;r<a;++r)this.each(u(o[r],n,e));return this}var u=this.node().__on;if(u)for(var c,s=0,f=u.length;s<f;++s)for(r=0,c=u[s];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?we:xe)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};const Se=Ae;function Ee(t){return"string"==typeof t?new Te([[document.querySelector(t)]],[document.documentElement]):new Te([[t]],Me)}const ke={passive:!1},Ne={capture:!0,passive:!1};function Ce(t){t.stopImmediatePropagation()}function De(t){t.preventDefault(),t.stopImmediatePropagation()}function Pe(t){var n=t.document.documentElement,e=Ee(t).on("dragstart.drag",De,Ne);"onselectstart"in n?e.on("selectstart.drag",De,Ne):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function qe(t,n){var e=t.document.documentElement,r=Ee(t).on("dragstart.drag",null);n&&(r.on("click.drag",De,Ne),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function je(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Le(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Oe(){}var Re=.7,ze=1/Re,Ie="\\s*([+-]?\\d+)\\s*",He="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Be=/^#([0-9a-f]{3,8})$/,Ue=new RegExp("^rgb\\("+[Ie,Ie,Ie]+"\\)$"),Ye=new RegExp("^rgb\\("+[Fe,Fe,Fe]+"\\)$"),We=new RegExp("^rgba\\("+[Ie,Ie,Ie,He]+"\\)$"),$e=new RegExp("^rgba\\("+[Fe,Fe,Fe,He]+"\\)$"),Xe=new RegExp("^hsl\\("+[He,Fe,Fe]+"\\)$"),Ve=new RegExp("^hsla\\("+[He,Fe,Fe,He]+"\\)$"),Ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ze(){return this.rgb().formatHex()}function Qe(){return this.rgb().formatRgb()}function Ke(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Be.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Je(n):3===e?new rr(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?tr(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?tr(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Ue.exec(t))?new rr(n[1],n[2],n[3],1):(n=Ye.exec(t))?new rr(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=We.exec(t))?tr(n[1],n[2],n[3],n[4]):(n=$e.exec(t))?tr(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Xe.exec(t))?ur(n[1],n[2]/100,n[3]/100,1):(n=Ve.exec(t))?ur(n[1],n[2]/100,n[3]/100,n[4]):Ge.hasOwnProperty(t)?Je(Ge[t]):"transparent"===t?new rr(NaN,NaN,NaN,0):null}function Je(t){return new rr(t>>16&255,t>>8&255,255&t,1)}function tr(t,n,e,r){return r<=0&&(t=n=e=NaN),new rr(t,n,e,r)}function nr(t){return t instanceof Oe||(t=Ke(t)),t?new rr((t=t.rgb()).r,t.g,t.b,t.opacity):new rr}function er(t,n,e,r){return 1===arguments.length?nr(t):new rr(t,n,e,null==r?1:r)}function rr(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ir(){return"#"+ar(this.r)+ar(this.g)+ar(this.b)}function or(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ar(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ur(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new fr(t,n,e,r)}function cr(t){if(t instanceof fr)return new fr(t.h,t.s,t.l,t.opacity);if(t instanceof Oe||(t=Ke(t)),!t)return new fr;if(t instanceof fr)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e<r):e===o?(r-n)/u+2:(n-e)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new fr(a,u,c,t.opacity)}function sr(t,n,e,r){return 1===arguments.length?cr(t):new fr(t,n,e,null==r?1:r)}function fr(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function lr(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function hr(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function dr(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<n-1?t[r+2]:2*o-i;return hr((e-r/n)*n,a,i,o,u)}}function pr(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return hr((e-r/n)*n,i,o,a,u)}}je(Oe,Ke,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ze,formatHex:Ze,formatHsl:function(){return cr(this).formatHsl()},formatRgb:Qe,toString:Qe}),je(rr,er,Le(Oe,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new rr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Re:Math.pow(Re,t),new rr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ir,formatHex:ir,formatRgb:or,toString:or})),je(fr,sr,Le(Oe,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new fr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Re:Math.pow(Re,t),new fr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new rr(lr(t>=240?t-240:t+120,i,r),lr(t,i,r),lr(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const gr=t=>()=>t;function yr(t,n){return function(e){return t+e*n}}function vr(t,n){var e=n-t;return e?yr(t,e>180||e<-180?e-360*Math.round(e/360):e):gr(isNaN(t)?n:t)}function mr(t,n){var e=n-t;return e?yr(t,e):gr(isNaN(t)?n:t)}const br=function t(n){var e=function(t){return 1==(t=+t)?mr:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):gr(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=er(t)).r,(n=er(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=mr(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function _r(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e<i;++e)r=er(n[e]),o[e]=r.r||0,a[e]=r.g||0,u[e]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}var xr=_r(dr),wr=_r(pr);function Mr(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}}function Tr(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ar(t,n){return(Tr(n)?Mr:Sr)(t,n)}function Sr(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(e=0;e<i;++e)o[e]=qr(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}}function Er(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function kr(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Nr(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=qr(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}var Cr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Dr=new RegExp(Cr.source,"g");function Pr(t,n){var e,r,i,o=Cr.lastIndex=Dr.lastIndex=0,a=-1,u=[],c=[];for(t+="",n+="";(e=Cr.exec(t))&&(r=Dr.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:kr(e,r)})),o=Dr.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)u[(e=c[r]).i]=e.x(t);return u.join("")})}function qr(t,n){var e,r=typeof n;return null==n||"boolean"===r?gr(n):("number"===r?kr:"string"===r?(e=Ke(n))?(n=e,br):Pr:n instanceof Ke?br:n instanceof Date?Er:Tr(n)?Mr:Array.isArray(n)?Sr:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Nr:kr)(t,n)}function jr(t){let n;for(;n=t.sourceEvent;)t=n;return t}function Lr(t,n){if(t=jr(t),void 0===n&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(n.getScreenCTM().inverse())).x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}var Or,Rr,zr=0,Ir=0,Hr=0,Fr=0,Br=0,Ur=0,Yr="object"==typeof performance&&performance.now?performance:Date,Wr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $r(){return Br||(Wr(Xr),Br=Yr.now()+Ur)}function Xr(){Br=0}function Vr(){this._call=this._time=this._next=null}function Gr(t,n,e){var r=new Vr;return r.restart(t,n,e),r}function Zr(){$r(),++zr;for(var t,n=Or;n;)(t=Br-n._time)>=0&&n._call.call(void 0,t),n=n._next;--zr}function Qr(){Br=(Fr=Yr.now())+Ur,zr=Ir=0;try{Zr()}finally{zr=0,function(){for(var t,n,e=Or,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Or=n);Rr=t,Jr(r)}(),Br=0}}function Kr(){var t=Yr.now(),n=t-Fr;n>1e3&&(Ur-=n,Fr=t)}function Jr(t){zr||(Ir&&(Ir=clearTimeout(Ir)),t-Br>24?(t<1/0&&(Ir=setTimeout(Qr,t-Yr.now()-Ur)),Hr&&(Hr=clearInterval(Hr))):(Hr||(Fr=Yr.now(),Hr=setInterval(Kr,1e3)),zr=1,Wr(Qr)))}function ti(t,n,e){var r=new Vr;return n=null==n?0:+n,r.restart((e=>{r.stop(),t(e+n)}),n,e),r}Vr.prototype=Gr.prototype={constructor:Vr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?$r():+e)+(null==n?0:+n),this._next||Rr===this||(Rr?Rr._next=this:Or=this,Rr=this),this._call=t,this._time=e,Jr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jr())}};var ni=ln("start","end","cancel","interrupt"),ei=[];function ri(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var s,f,l,h;if(1!==e.state)return u();for(s in i)if((h=i[s]).name===e.name){if(3===h.state)return ti(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+s<n&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[s])}if(ti((function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(c))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(l=e.tween.length),s=0,f=-1;s<l;++s)(h=e.tween[s].value.call(t,t.__data__,e.index,e.group))&&(r[++f]=h);r.length=f+1}}function a(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(u),e.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=Gr((function(t){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:ni,tween:ei,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ii(t,n){var e=ai(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function oi(t,n){var e=ai(t,n);if(e.state>3)throw new Error("too late; already running");return e}function ai(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function ui(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}}var ci,si=180/Math.PI,fi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function li(t,n,e,r,i,o){var a,u,c;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,c/=u),t*r<n*e&&(t=-t,n=-n,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*si,skewX:Math.atan(c)*si,scaleX:a,scaleY:u}}function hi(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],c=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var c=a.push("translate(",null,n,null,e);u.push({i:c-4,x:kr(t,i)},{i:c-2,x:kr(r,o)})}else(i||o)&&a.push("translate("+i+n+o+e)}(o.translateX,o.translateY,a.translateX,a.translateY,u,c),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:kr(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:kr(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:kr(t,e)},{i:u-2,x:kr(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e<r;)u[(n=c[e]).i]=n.x(t);return u.join("")}}}var di=hi((function(t){const n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?fi:li(n.a,n.b,n.c,n.d,n.e,n.f)}),"px, ","px)","deg)"),pi=hi((function(t){return null==t?fi:(ci||(ci=document.createElementNS("http://www.w3.org/2000/svg","g")),ci.setAttribute("transform",t),(t=ci.transform.baseVal.consolidate())?li((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):fi)}),", ",")",")");function gi(t,n){var e,r;return function(){var i=oi(this,t),o=i.tween;if(o!==e)for(var a=0,u=(r=e=o).length;a<u;++a)if(r[a].name===n){(r=r.slice()).splice(a,1);break}i.tween=r}}function yi(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=oi(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},c=0,s=i.length;c<s;++c)if(i[c].name===n){i[c]=u;break}c===s&&i.push(u)}o.tween=i}}function vi(t,n,e){var r=t._id;return t.each((function(){var t=oi(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return ai(t,r).value[n]}}function mi(t,n){var e;return("number"==typeof n?kr:n instanceof Ke?br:(e=Ke(n))?(n=e,br):Pr)(t,n)}function bi(t){return function(){this.removeAttribute(t)}}function _i(t){return function(){this.removeAttributeNS(t.space,t.local)}}function xi(t,n,e){var r,i,o=e+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=n(r=a,e)}}function wi(t,n,e){var r,i,o=e+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=n(r=a,e)}}function Mi(t,n,e){var r,i,o;return function(){var a,u,c=e(this);if(null!=c)return(a=this.getAttribute(t))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=n(r=a,c));this.removeAttribute(t)}}function Ti(t,n,e){var r,i,o;return function(){var a,u,c=e(this);if(null!=c)return(a=this.getAttributeNS(t.space,t.local))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=n(r=a,c));this.removeAttributeNS(t.space,t.local)}}function Ai(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Si(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function Ei(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Si(t,i)),e}return i._value=n,i}function ki(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Ai(t,i)),e}return i._value=n,i}function Ni(t,n){return function(){ii(this,t).delay=+n.apply(this,arguments)}}function Ci(t,n){return n=+n,function(){ii(this,t).delay=n}}function Di(t,n){return function(){oi(this,t).duration=+n.apply(this,arguments)}}function Pi(t,n){return n=+n,function(){oi(this,t).duration=n}}function qi(t,n){if("function"!=typeof n)throw new Error;return function(){oi(this,t).ease=n}}function ji(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?ii:oi;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}var Li=Se.prototype.constructor;function Oi(t){return function(){this.style.removeProperty(t)}}function Ri(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function zi(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&Ri(t,o,e)),r}return o._value=n,o}function Ii(t){return function(n){this.textContent=t.call(this,n)}}function Hi(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&Ii(r)),n}return r._value=t,r}var Fi=0;function Bi(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Ui(t){return Se().transition(t)}function Yi(){return++Fi}var Wi=Se.prototype;function $i(t){return t*t*t}function Xi(t){return--t*t*t+1}function Vi(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Bi.prototype=Ui.prototype={constructor:Bi,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=dn(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,c,s=r[a],f=s.length,l=o[a]=new Array(f),h=0;h<f;++h)(u=s[h])&&(c=t.call(u,u.__data__,h,s))&&("__data__"in u&&(c.__data__=u.__data__),l[h]=c,ri(l[h],n,e,h,l,ai(u,e)));return new Bi(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=yn(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c,s=r[u],f=s.length,l=0;l<f;++l)if(c=s[l]){for(var h,d=t.call(c,c.__data__,l,s),p=ai(c,e),g=0,y=d.length;g<y;++g)(h=d[g])&&ri(h,n,e,g,d,p);o.push(d),a.push(c)}return new Bi(o,a,n,e)},selectChild:Wi.selectChild,selectChildren:Wi.selectChildren,filter:function(t){"function"!=typeof t&&(t=vn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new Bi(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=n[u],f=e[u],l=s.length,h=a[u]=new Array(l),d=0;d<l;++d)(c=s[d]||f[d])&&(h[d]=c);for(;u<r;++u)a[u]=n[u];return new Bi(a,this._parents,this._name,this._id)},selection:function(){return new Li(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Yi(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)if(a=u[s]){var f=ai(a,n);ri(a,t,e,s,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Bi(r,this._parents,t,e)},call:Wi.call,nodes:Wi.nodes,node:Wi.node,size:Wi.size,empty:Wi.empty,each:Wi.each,on:function(t,n){var e=this._id;return arguments.length<2?ai(this.node(),e).on.on(t):this.each(ji(e,t,n))},attr:function(t,n){var e=qn(t),r="transform"===e?pi:mi;return this.attrTween(t,"function"==typeof n?(e.local?Ti:Mi)(e,r,vi(this,"attr."+t,n)):null==n?(e.local?_i:bi)(e):(e.local?wi:xi)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=qn(t);return this.tween(e,(r.local?Ei:ki)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?di:mi;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=Yn(this,t),a=(this.style.removeProperty(t),Yn(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,Oi(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var a=Yn(this,t),u=e(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=Yn(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=n(r=a,u))}}(t,r,vi(this,"style."+t,n))).each(function(t,n){var e,r,i,o,a="style."+n,u="end."+a;return function(){var c=oi(this,t),s=c.on,f=null==c.value[a]?o||(o=Oi(n)):void 0;s===e&&i===f||(r=(e=s).copy()).on(u,i=f),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var a=Yn(this,t);return a===o?null:a===r?i:i=n(r=a,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,zi(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(vi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,Hi(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=ai(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?gi:yi)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Ni:Ci)(n,t)):ai(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Di:Pi)(n,t)):ai(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(qi(n,t)):ai(this.node(),n).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!=typeof e)throw new Error;oi(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,a){var u={value:a},c={value:function(){0==--i&&o()}};e.each((function(){var e=oi(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(u),n._.interrupt.push(u),n._.end.push(c)),e.on=n})),0===i&&o()}))},[Symbol.iterator]:Wi[Symbol.iterator]};var Gi={time:null,delay:0,duration:250,ease:Vi};function Zi(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}Se.prototype.interrupt=function(t){return this.each((function(){ui(this,t)}))},Se.prototype.transition=function(t){var n,e;t instanceof Bi?(n=t._id,t=t._name):(n=Yi(),(e=Gi).time=$r(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)(a=u[s])&&ri(a,t,n,s,u,e||Zi(a,n));return new Bi(r,this._parents,t,n)};var Qi=[null];function Ki(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>1&&e.name===n)return new Bi([[t]],Qi,n,+r);return null}const Ji=t=>()=>t;function to(t,{sourceEvent:n,target:e,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function no(t){t.stopImmediatePropagation()}function eo(t){t.preventDefault(),t.stopImmediatePropagation()}var ro={name:"drag"},io={name:"space"},oo={name:"handle"},ao={name:"center"};const{abs:uo,max:co,min:so}=Math;function fo(t){return[+t[0],+t[1]]}function lo(t){return[fo(t[0]),fo(t[1])]}var ho={name:"x",handles:["w","e"].map(xo),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},po={name:"y",handles:["n","s"].map(xo),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},go={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(xo),input:function(t){return null==t?null:lo(t)},output:function(t){return t}},yo={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},vo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},mo={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},bo={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},_o={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function xo(t){return{type:t}}function wo(t){return!t.ctrlKey&&!t.button}function Mo(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function To(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ao(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function So(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Eo(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function ko(){return Do(ho)}function No(){return Do(po)}function Co(){return Do(go)}function Do(t){var n,e=Mo,r=wo,i=To,o=!0,a=ln("start","brush","end"),u=6;function c(n){var e=n.property("__brush",g).selectAll(".overlay").data([xo("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",yo.overlay).merge(e).each((function(){var t=Ao(this).extent;Ee(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([xo("selection")]).enter().append("rect").attr("class","selection").attr("cursor",yo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return yo[t.type]})),n.each(s).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function s(){var t=Ee(this),n=Ao(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-u/2:n[0][0]-u/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-u/2:n[0][1]-u/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+u:u})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+u:u}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function f(t,n,e){var r=t.__brush.emitter;return!r||e&&r.clean?new l(t,n,e):r}function l(t,n,e){this.that=t,this.args=n,this.state=t.__brush,this.active=0,this.clean=e}function h(e){if((!n||e.touches)&&r.apply(this,arguments)){var i,a,u,c,l,h,d,p,g,y,v,m=this,b=e.target.__data__.type,_="selection"===(o&&e.metaKey?b="overlay":b)?ro:o&&e.altKey?ao:oo,x=t===po?null:bo[b],w=t===ho?null:_o[b],M=Ao(m),T=M.extent,A=M.selection,S=T[0][0],E=T[0][1],k=T[1][0],N=T[1][1],C=0,D=0,P=x&&w&&o&&e.shiftKey,q=Array.from(e.touches||[e],(t=>{const n=t.identifier;return(t=Lr(t,m)).point0=t.slice(),t.identifier=n,t}));ui(m);var j=f(m,arguments,!0).beforestart();if("overlay"===b){A&&(g=!0);const n=[q[0],q[1]||q[0]];M.selection=A=[[i=t===po?S:so(n[0][0],n[1][0]),u=t===ho?E:so(n[0][1],n[1][1])],[l=t===po?k:co(n[0][0],n[1][0]),d=t===ho?N:co(n[0][1],n[1][1])]],q.length>1&&I(e)}else i=A[0][0],u=A[0][1],l=A[1][0],d=A[1][1];a=i,c=u,h=l,p=d;var L=Ee(m).attr("pointer-events","none"),O=L.selectAll(".overlay").attr("cursor",yo[b]);if(e.touches)j.moved=z,j.ended=H;else{var R=Ee(e.view).on("mousemove.brush",z,!0).on("mouseup.brush",H,!0);o&&R.on("keydown.brush",F,!0).on("keyup.brush",B,!0),Pe(e.view)}s.call(m),j.start(e,_.name)}function z(t){for(const n of t.changedTouches||[t])for(const t of q)t.identifier===n.identifier&&(t.cur=Lr(n,m));if(P&&!y&&!v&&1===q.length){const t=q[0];uo(t.cur[0]-t[0])>uo(t.cur[1]-t[1])?v=!0:y=!0}for(const t of q)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);g=!0,eo(t),I(t)}function I(t){const n=q[0],e=n.point0;var r;switch(C=n[0]-e[0],D=n[1]-e[1],_){case io:case ro:x&&(C=co(S-i,so(k-l,C)),a=i+C,h=l+C),w&&(D=co(E-u,so(N-d,D)),c=u+D,p=d+D);break;case oo:q[1]?(x&&(a=co(S,so(k,q[0][0])),h=co(S,so(k,q[1][0])),x=1),w&&(c=co(E,so(N,q[0][1])),p=co(E,so(N,q[1][1])),w=1)):(x<0?(C=co(S-i,so(k-i,C)),a=i+C,h=l):x>0&&(C=co(S-l,so(k-l,C)),a=i,h=l+C),w<0?(D=co(E-u,so(N-u,D)),c=u+D,p=d):w>0&&(D=co(E-d,so(N-d,D)),c=u,p=d+D));break;case ao:x&&(a=co(S,so(k,i-C*x)),h=co(S,so(k,l+C*x))),w&&(c=co(E,so(N,u-D*w)),p=co(E,so(N,d+D*w)))}h<a&&(x*=-1,r=i,i=l,l=r,r=a,a=h,h=r,b in vo&&O.attr("cursor",yo[b=vo[b]])),p<c&&(w*=-1,r=u,u=d,d=r,r=c,c=p,p=r,b in mo&&O.attr("cursor",yo[b=mo[b]])),M.selection&&(A=M.selection),y&&(a=A[0][0],h=A[1][0]),v&&(c=A[0][1],p=A[1][1]),A[0][0]===a&&A[0][1]===c&&A[1][0]===h&&A[1][1]===p||(M.selection=[[a,c],[h,p]],s.call(m),j.brush(t,_.name))}function H(t){if(no(t),t.touches){if(t.touches.length)return;n&&clearTimeout(n),n=setTimeout((function(){n=null}),500)}else qe(t.view,g),R.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);L.attr("pointer-events","all"),O.attr("cursor",yo.overlay),M.selection&&(A=M.selection),So(A)&&(M.selection=null,s.call(m)),j.end(t,_.name)}function F(t){switch(t.keyCode){case 16:P=x&&w;break;case 18:_===oo&&(x&&(l=h-C*x,i=a+C*x),w&&(d=p-D*w,u=c+D*w),_=ao,I(t));break;case 32:_!==oo&&_!==ao||(x<0?l=h-C:x>0&&(i=a-C),w<0?d=p-D:w>0&&(u=c-D),_=io,O.attr("cursor",yo.selection),I(t));break;default:return}eo(t)}function B(t){switch(t.keyCode){case 16:P&&(y=v=P=!1,I(t));break;case 18:_===ao&&(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),_=oo,I(t));break;case 32:_===io&&(t.altKey?(x&&(l=h-C*x,i=a+C*x),w&&(d=p-D*w,u=c+D*w),_=ao):(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),_=oo),O.attr("cursor",yo[b]),I(t));break;default:return}eo(t)}}function d(t){f(this,arguments).moved(t)}function p(t){f(this,arguments).ended(t)}function g(){var n=this.__brush||{selection:null};return n.extent=lo(e.apply(this,arguments)),n.dim=t,n}return c.move=function(n,e,r){n.tween?n.on("start.brush",(function(t){f(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){f(this,arguments).end(t)})).tween("brush",(function(){var n=this,r=n.__brush,i=f(n,arguments),o=r.selection,a=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),u=qr(o,a);function c(t){r.selection=1===t&&null===a?null:u(t),s.call(n),i.brush()}return null!==o&&null!==a?c:c(1)})):n.each((function(){var n=this,i=arguments,o=n.__brush,a=t.input("function"==typeof e?e.apply(n,i):e,o.extent),u=f(n,i).beforestart();ui(n),o.selection=null===a?null:a,s.call(n),u.start(r).brush(r).end(r)}))},c.clear=function(t,n){c.move(t,null,n)},l.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,n){return this.starting?(this.starting=!1,this.emit("start",t,n)):this.emit("brush",t),this},brush:function(t,n){return this.emit("brush",t,n),this},end:function(t,n){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,n)),this},emit:function(n,e,r){var i=Ee(this.that).datum();a.call(n,this.that,new to(n,{sourceEvent:e,target:c,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},c.extent=function(t){return arguments.length?(e="function"==typeof t?t:Ji(lo(t)),c):e},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Ji(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Ji(!!t),c):i},c.handleSize=function(t){return arguments.length?(u=+t,c):u},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=a.on.apply(a,arguments);return t===a?c:t},c}var Po=Math.abs,qo=Math.cos,jo=Math.sin,Lo=Math.PI,Oo=Lo/2,Ro=2*Lo,zo=Math.max,Io=1e-12;function Ho(t,n){return Array.from({length:n-t},((n,e)=>t+e))}function Fo(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function Bo(){return Wo(!1,!1)}function Uo(){return Wo(!1,!0)}function Yo(){return Wo(!0,!1)}function Wo(t,n){var e=0,r=null,i=null,o=null;function a(a){var u,c=a.length,s=new Array(c),f=Ho(0,c),l=new Array(c*c),h=new Array(c),d=0;a=Float64Array.from({length:c*c},n?(t,n)=>a[n%c][n/c|0]:(t,n)=>a[n/c|0][n%c]);for(let n=0;n<c;++n){let e=0;for(let r=0;r<c;++r)e+=a[n*c+r]+t*a[r*c+n];d+=s[n]=e}u=(d=zo(0,Ro-e*c)/d)?e:Ro/c;{let n=0;r&&f.sort(((t,n)=>r(s[t],s[n])));for(const e of f){const r=n;if(t){const t=Ho(1+~c,c).filter((t=>t<0?a[~t*c+e]:a[e*c+t]));i&&t.sort(((t,n)=>i(t<0?-a[~t*c+e]:a[e*c+t],n<0?-a[~n*c+e]:a[e*c+n])));for(const r of t)r<0?(l[~r*c+e]||(l[~r*c+e]={source:null,target:null})).target={index:e,startAngle:n,endAngle:n+=a[~r*c+e]*d,value:a[~r*c+e]}:(l[e*c+r]||(l[e*c+r]={source:null,target:null})).source={index:e,startAngle:n,endAngle:n+=a[e*c+r]*d,value:a[e*c+r]};h[e]={index:e,startAngle:r,endAngle:n,value:s[e]}}else{const t=Ho(0,c).filter((t=>a[e*c+t]||a[t*c+e]));i&&t.sort(((t,n)=>i(a[e*c+t],a[e*c+n])));for(const r of t){let t;if(e<r?(t=l[e*c+r]||(l[e*c+r]={source:null,target:null}),t.source={index:e,startAngle:n,endAngle:n+=a[e*c+r]*d,value:a[e*c+r]}):(t=l[r*c+e]||(l[r*c+e]={source:null,target:null}),t.target={index:e,startAngle:n,endAngle:n+=a[e*c+r]*d,value:a[e*c+r]},e===r&&(t.source=t.target)),t.source&&t.target&&t.source.value<t.target.value){const n=t.source;t.source=t.target,t.target=n}}h[e]={index:e,startAngle:r,endAngle:n,value:s[e]}}n+=u}}return(l=Object.values(l)).groups=h,o?l.sort(o):l}return a.padAngle=function(t){return arguments.length?(e=zo(0,t),a):e},a.sortGroups=function(t){return arguments.length?(r=t,a):r},a.sortSubgroups=function(t){return arguments.length?(i=t,a):i},a.sortChords=function(t){return arguments.length?(null==t?o=null:(o=Fo(t))._=t,a):o&&o._},a}const $o=Math.PI,Xo=2*$o,Vo=1e-6,Go=Xo-Vo;function Zo(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Qo(){return new Zo}Zo.prototype=Qo.prototype={constructor:Zo,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,u=e-t,c=r-n,s=o-t,f=a-n,l=s*s+f*f;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>Vo)if(Math.abs(f*u-c*s)>Vo&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,y=Math.sqrt(p),v=Math.sqrt(l),m=i*Math.tan(($o-Math.acos((p+l-g)/(2*y*v)))/2),b=m/v,_=m/y;Math.abs(b-1)>Vo&&(this._+="L"+(t+b*s)+","+(n+b*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>s*d)+","+(this._x1=t+_*u)+","+(this._y1=n+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,s=n+u,f=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>Vo||Math.abs(this._y1-s)>Vo)&&(this._+="L"+c+","+s),e&&(l<0&&(l=l%Xo+Xo),l>Go?this._+="A"+e+","+e+",0,1,"+f+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+f+","+(this._x1=c)+","+(this._y1=s):l>Vo&&(this._+="A"+e+","+e+",0,"+ +(l>=$o)+","+f+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const Ko=Qo;var Jo=Array.prototype.slice;function ta(t){return function(){return t}}function na(t){return t.source}function ea(t){return t.target}function ra(t){return t.radius}function ia(t){return t.startAngle}function oa(t){return t.endAngle}function aa(){return 0}function ua(){return 10}function ca(t){var n=na,e=ea,r=ra,i=ra,o=ia,a=oa,u=aa,c=null;function s(){var s,f=n.apply(this,arguments),l=e.apply(this,arguments),h=u.apply(this,arguments)/2,d=Jo.call(arguments),p=+r.apply(this,(d[0]=f,d)),g=o.apply(this,d)-Oo,y=a.apply(this,d)-Oo,v=+i.apply(this,(d[0]=l,d)),m=o.apply(this,d)-Oo,b=a.apply(this,d)-Oo;if(c||(c=s=Ko()),h>Io&&(Po(y-g)>2*h+Io?y>g?(g+=h,y-=h):(g-=h,y+=h):g=y=(g+y)/2,Po(b-m)>2*h+Io?b>m?(m+=h,b-=h):(m-=h,b+=h):m=b=(m+b)/2),c.moveTo(p*qo(g),p*jo(g)),c.arc(0,0,p,g,y),g!==m||y!==b)if(t){var _=+t.apply(this,arguments),x=v-_,w=(m+b)/2;c.quadraticCurveTo(0,0,x*qo(m),x*jo(m)),c.lineTo(v*qo(w),v*jo(w)),c.lineTo(x*qo(b),x*jo(b))}else c.quadraticCurveTo(0,0,v*qo(m),v*jo(m)),c.arc(0,0,v,m,b);if(c.quadraticCurveTo(0,0,p*qo(g),p*jo(g)),c.closePath(),s)return c=null,s+""||null}return t&&(s.headRadius=function(n){return arguments.length?(t="function"==typeof n?n:ta(+n),s):t}),s.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:ta(+t),s):r},s.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:ta(+t),s):r},s.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:ta(+t),s):i},s.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:ta(+t),s):o},s.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:ta(+t),s):a},s.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:ta(+t),s):u},s.source=function(t){return arguments.length?(n=t,s):n},s.target=function(t){return arguments.length?(e=t,s):e},s.context=function(t){return arguments.length?(c=null==t?null:t,s):c},s}function sa(){return ca()}function fa(){return ca(ua)}const la=Math.PI/180,ha=180/Math.PI,da=.96422,pa=.82521,ga=4/29,ya=6/29,va=3*ya*ya;function ma(t){if(t instanceof xa)return new xa(t.l,t.a,t.b,t.opacity);if(t instanceof Na)return Ca(t);t instanceof rr||(t=nr(t));var n,e,r=Aa(t.r),i=Aa(t.g),o=Aa(t.b),a=wa((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?n=e=a:(n=wa((.4360747*r+.3850649*i+.1430804*o)/da),e=wa((.0139322*r+.0971045*i+.7141733*o)/pa)),new xa(116*a-16,500*(n-a),200*(a-e),t.opacity)}function ba(t,n){return new xa(t,0,0,null==n?1:n)}function _a(t,n,e,r){return 1===arguments.length?ma(t):new xa(t,n,e,null==r?1:r)}function xa(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function wa(t){return t>.008856451679035631?Math.pow(t,1/3):t/va+ga}function Ma(t){return t>ya?t*t*t:va*(t-ga)}function Ta(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Aa(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Sa(t){if(t instanceof Na)return new Na(t.h,t.c,t.l,t.opacity);if(t instanceof xa||(t=ma(t)),0===t.a&&0===t.b)return new Na(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*ha;return new Na(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ea(t,n,e,r){return 1===arguments.length?Sa(t):new Na(e,n,t,null==r?1:r)}function ka(t,n,e,r){return 1===arguments.length?Sa(t):new Na(t,n,e,null==r?1:r)}function Na(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Ca(t){if(isNaN(t.h))return new xa(t.l,0,0,t.opacity);var n=t.h*la;return new xa(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}je(xa,_a,Le(Oe,{brighter:function(t){return new xa(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new xa(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new rr(Ta(3.1338561*(n=da*Ma(n))-1.6168667*(t=1*Ma(t))-.4906146*(e=pa*Ma(e))),Ta(-.9787684*n+1.9161415*t+.033454*e),Ta(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),je(Na,ka,Le(Oe,{brighter:function(t){return new Na(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Na(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ca(this).rgb()}}));var Da=-.14861,Pa=1.78277,qa=-.29227,ja=-.90649,La=1.97294,Oa=La*ja,Ra=La*Pa,za=Pa*qa-ja*Da;function Ia(t){if(t instanceof Fa)return new Fa(t.h,t.s,t.l,t.opacity);t instanceof rr||(t=nr(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(za*r+Oa*n-Ra*e)/(za+Oa-Ra),o=r-i,a=(La*(e-i)-qa*o)/ja,u=Math.sqrt(a*a+o*o)/(La*i*(1-i)),c=u?Math.atan2(a,o)*ha-120:NaN;return new Fa(c<0?c+360:c,u,i,t.opacity)}function Ha(t,n,e,r){return 1===arguments.length?Ia(t):new Fa(t,n,e,null==r?1:r)}function Fa(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}je(Fa,Ha,Le(Oe,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new Fa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Re:Math.pow(Re,t),new Fa(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*la,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new rr(255*(n+e*(Da*r+Pa*i)),255*(n+e*(qa*r+ja*i)),255*(n+e*(La*r)),this.opacity)}}));var Ba=Array.prototype.slice;function Ua(t,n){return t-n}const Ya=t=>()=>t;function Wa(t,n){for(var e,r=-1,i=n.length;++r<i;)if(e=$a(t,n[r]))return e;return 0}function $a(t,n){for(var e=n[0],r=n[1],i=-1,o=0,a=t.length,u=a-1;o<a;u=o++){var c=t[o],s=c[0],f=c[1],l=t[u],h=l[0],d=l[1];if(Xa(c,l,n))return 0;f>r!=d>r&&e<(h-s)*(r-f)/(d-f)+s&&(i=-i)}return i}function Xa(t,n,e){var r,i,o,a;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],o=e[r],a=n[r],i<=o&&o<=a||a<=o&&o<=i)}function Va(){}var Ga=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Za(){var t=1,n=1,e=rt,r=u;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(Ua);else{const e=_(t),r=nt(e[0],e[1],n);n=J(Math.floor(e[0]/r)*r,Math.floor(e[1]/r-1)*r,n)}return n.map((n=>o(t,n)))}function o(e,i){var o=[],u=[];return function(e,r,i){var o,u,c,s,f,l,h=new Array,d=new Array;for(o=u=-1,s=e[0]>=r,Ga[s<<1].forEach(p);++o<t-1;)c=s,s=e[o+1]>=r,Ga[c|s<<1].forEach(p);for(Ga[s<<0].forEach(p);++u<n-1;){for(o=-1,s=e[u*t+t]>=r,f=e[u*t]>=r,Ga[s<<1|f<<2].forEach(p);++o<t-1;)c=s,s=e[u*t+t+o+1]>=r,l=f,f=e[u*t+o+1]>=r,Ga[c|s<<1|f<<2|l<<3].forEach(p);Ga[s|f<<3].forEach(p)}for(o=-1,f=e[u*t]>=r,Ga[f<<2].forEach(p);++o<t-1;)l=f,f=e[u*t+o+1]>=r,Ga[f<<2|l<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+o,t[0][1]+u],c=[t[1][0]+o,t[1][1]+u],s=a(r),f=a(c);(n=d[s])?(e=h[f])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(c),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(c),d[n.end=f]=n):(n=h[f])?(e=d[s])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(c),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=s]=n):h[s]=d[f]={start:s,end:f,ring:[r,c]}}Ga[f<<3].forEach(p)}(e,i,(function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r}(t)>0?o.push([t]):u.push(t)})),u.forEach((function(t){for(var n,e=0,r=o.length;e<r;++e)if(-1!==Wa((n=o[e])[0],t))return void n.push(t)})),{type:"MultiPolygon",value:i,coordinates:o}}function a(n){return 2*n[0]+n[1]*(t+1)*4}function u(e,r,i){e.forEach((function(e){var o,a=e[0],u=e[1],c=0|a,s=0|u,f=r[s*t+c];a>0&&a<t&&c===a&&(o=r[s*t+c-1],e[0]=a+(i-o)/(f-o)-.5),u>0&&u<n&&s===u&&(o=r[(s-1)*t+c],e[1]=u+(i-o)/(f-o)-.5)}))}return i.contour=o,i.size=function(e){if(!arguments.length)return[t,n];var r=Math.floor(e[0]),o=Math.floor(e[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return t=r,n=o,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Ya(Ba.call(t)):Ya(t),i):e},i.smooth=function(t){return arguments.length?(r=t?u:Va,i):r===u},i}function Qa(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a<i;++a)for(var u=0,c=0;u<r+e;++u)u<r&&(c+=t.data[u+a*r]),u>=e&&(u>=o&&(c-=t.data[u-o+a*r]),n.data[u-e+a*r]=c/Math.min(u+1,r-1+o-u,o))}function Ka(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a<r;++a)for(var u=0,c=0;u<i+e;++u)u<i&&(c+=t.data[a+u*r]),u>=e&&(u>=o&&(c-=t.data[a+(u-o)*r]),n.data[a+(u-e)*r]=c/Math.min(u+1,i-1+o-u,o))}function Ja(t){return t[0]}function tu(t){return t[1]}function nu(){return 1}function eu(){var t=Ja,n=tu,e=nu,r=960,i=500,o=20,a=2,u=3*o,c=r+2*u>>a,s=i+2*u>>a,f=Ya(20);function l(r){var i=new Float32Array(c*s),l=new Float32Array(c*s),d=Math.pow(2,-a);r.forEach((function(r,o,a){var f=(t(r,o,a)+u)*d,l=(n(r,o,a)+u)*d,h=+e(r,o,a);if(f>=0&&f<c&&l>=0&&l<s){var p=Math.floor(f),g=Math.floor(l),y=f-p-.5,v=l-g-.5;i[p+g*c]+=(1-y)*(1-v)*h,i[p+1+g*c]+=y*(1-v)*h,i[p+1+(g+1)*c]+=y*v*h,i[p+(g+1)*c]+=(1-y)*v*h}})),Qa({width:c,height:s,data:i},{width:c,height:s,data:l},o>>a),Ka({width:c,height:s,data:l},{width:c,height:s,data:i},o>>a),Qa({width:c,height:s,data:i},{width:c,height:s,data:l},o>>a),Ka({width:c,height:s,data:l},{width:c,height:s,data:i},o>>a),Qa({width:c,height:s,data:i},{width:c,height:s,data:l},o>>a),Ka({width:c,height:s,data:l},{width:c,height:s,data:i},o>>a);var p=f(i);if(!Array.isArray(p)){var g=ot(i);p=nt(0,g,p),(p=xt(0,Math.floor(g/p)*p,p)).shift()}return Za().thresholds(p).size([c,s])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*a),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,a)-u,t[1]=t[1]*Math.pow(2,a)-u}function y(){return c=r+2*(u=3*o)>>a,s=i+2*u>>a,l}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:Ya(+n),l):t},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Ya(+t),l):n},l.weight=function(t){return arguments.length?(e="function"==typeof t?t:Ya(+t),l):e},l.size=function(t){if(!arguments.length)return[r,i];var n=+t[0],e=+t[1];if(!(n>=0&&e>=0))throw new Error("invalid size");return r=n,i=e,y()},l.cellSize=function(t){if(!arguments.length)return 1<<a;if(!((t=+t)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),y()},l.thresholds=function(t){return arguments.length?(f="function"==typeof t?t:Array.isArray(t)?Ya(Ba.call(t)):Ya(t),l):f},l.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*t*t+1)-1)/2),y()},l}const ru=134217729;function iu(t,n,e,r,i){let o,a,u,c,s=n[0],f=r[0],l=0,h=0;f>s==f>-s?(o=s,s=n[++l]):(o=f,f=r[++h]);let d=0;if(l<t&&h<e)for(f>s==f>-s?(a=s+o,u=o-(a-s),s=n[++l]):(a=f+o,u=o-(a-f),f=r[++h]),o=a,0!==u&&(i[d++]=u);l<t&&h<e;)f>s==f>-s?(a=o+s,c=a-o,u=o-(a-c)+(s-c),s=n[++l]):(a=o+f,c=a-o,u=o-(a-c)+(f-c),f=r[++h]),o=a,0!==u&&(i[d++]=u);for(;l<t;)a=o+s,c=a-o,u=o-(a-c)+(s-c),s=n[++l],o=a,0!==u&&(i[d++]=u);for(;h<e;)a=o+f,c=a-o,u=o-(a-c)+(f-c),f=r[++h],o=a,0!==u&&(i[d++]=u);return 0===o&&0!==d||(i[d++]=o),d}function ou(t){return new Float64Array(t)}const au=ou(4),uu=ou(8),cu=ou(12),su=ou(16),fu=ou(4);function lu(t,n,e,r,i,o){const a=(n-o)*(e-i),u=(t-i)*(r-o),c=a-u;if(0===a||0===u||a>0!=u>0)return c;const s=Math.abs(a+u);return Math.abs(c)>=33306690738754716e-32*s?c:-function(t,n,e,r,i,o,a){let u,c,s,f,l,h,d,p,g,y,v,m,b,_,x,w,M,T;const A=t-i,S=e-i,E=n-o,k=r-o;_=A*k,h=ru*A,d=h-(h-A),p=A-d,h=ru*k,g=h-(h-k),y=k-g,x=p*y-(_-d*g-p*g-d*y),w=E*S,h=ru*E,d=h-(h-E),p=E-d,h=ru*S,g=h-(h-S),y=S-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,au[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,au[1]=b-(v+l)+(l-w),T=m+v,l=T-m,au[2]=m-(T-l)+(v-l),au[3]=T;let N=function(t,n){let e=n[0];for(let t=1;t<4;t++)e+=n[t];return e}(0,au),C=22204460492503146e-32*a;if(N>=C||-N>=C)return N;if(l=t-A,u=t-(A+l)+(l-i),l=e-S,s=e-(S+l)+(l-i),l=n-E,c=n-(E+l)+(l-o),l=r-k,f=r-(k+l)+(l-o),0===u&&0===c&&0===s&&0===f)return N;if(C=11093356479670487e-47*a+33306690738754706e-32*Math.abs(N),N+=A*f+k*u-(E*s+S*c),N>=C||-N>=C)return N;_=u*k,h=ru*u,d=h-(h-u),p=u-d,h=ru*k,g=h-(h-k),y=k-g,x=p*y-(_-d*g-p*g-d*y),w=c*S,h=ru*c,d=h-(h-c),p=c-d,h=ru*S,g=h-(h-S),y=S-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,fu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,fu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,fu[2]=m-(T-l)+(v-l),fu[3]=T;const D=iu(4,au,4,fu,uu);_=A*f,h=ru*A,d=h-(h-A),p=A-d,h=ru*f,g=h-(h-f),y=f-g,x=p*y-(_-d*g-p*g-d*y),w=E*s,h=ru*E,d=h-(h-E),p=E-d,h=ru*s,g=h-(h-s),y=s-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,fu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,fu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,fu[2]=m-(T-l)+(v-l),fu[3]=T;const P=iu(D,uu,4,fu,cu);_=u*f,h=ru*u,d=h-(h-u),p=u-d,h=ru*f,g=h-(h-f),y=f-g,x=p*y-(_-d*g-p*g-d*y),w=c*s,h=ru*c,d=h-(h-c),p=c-d,h=ru*s,g=h-(h-s),y=s-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,fu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,fu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,fu[2]=m-(T-l)+(v-l),fu[3]=T;const q=iu(P,cu,4,fu,su);return su[q-1]}(t,n,e,r,i,o,s)}ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(8),ou(8),ou(8),ou(4),ou(8),ou(8),ou(8),ou(12),ou(192),ou(192),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(4),ou(4),ou(4),ou(8),ou(16),ou(16),ou(16),ou(32),ou(32),ou(48),ou(64),ou(1152),ou(1152),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(1152),ou(1152),ou(1152),ou(1152),ou(1152),ou(2304),ou(2304),ou(3456),ou(5760),ou(8),ou(8),ou(8),ou(16),ou(24),ou(48),ou(48),ou(96),ou(192),ou(384),ou(384),ou(384),ou(768),ou(96),ou(96),ou(96),ou(1152);const hu=Math.pow(2,-52),du=new Uint32Array(512);class pu{static from(t,n=_u,e=xu){const r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=t[o];i[2*o]=n(r),i[2*o+1]=e(r)}return new pu(i)}constructor(t){const n=t.length>>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const e=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:e,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let a=1/0,u=1/0,c=-1/0,s=-1/0;for(let n=0;n<o;n++){const e=t[2*n],r=t[2*n+1];e<a&&(a=e),r<u&&(u=r),e>c&&(c=e),r>s&&(s=r),this._ids[n]=n}const f=(a+c)/2,l=(u+s)/2;let h,d,p,g=1/0;for(let n=0;n<o;n++){const e=gu(f,l,t[2*n],t[2*n+1]);e<g&&(h=n,g=e)}const y=t[2*h],v=t[2*h+1];g=1/0;for(let n=0;n<o;n++){if(n===h)continue;const e=gu(y,v,t[2*n],t[2*n+1]);e<g&&e>0&&(d=n,g=e)}let m=t[2*d],b=t[2*d+1],_=1/0;for(let n=0;n<o;n++){if(n===h||n===d)continue;const e=vu(y,v,m,b,t[2*n],t[2*n+1]);e<_&&(p=n,_=e)}let x=t[2*p],w=t[2*p+1];if(_===1/0){for(let n=0;n<o;n++)this._dists[n]=t[2*n]-t[0]||t[2*n+1]-t[1];mu(this._ids,this._dists,0,o-1);const n=new Uint32Array(o);let e=0;for(let t=0,r=-1/0;t<o;t++){const i=this._ids[t];this._dists[i]>r&&(n[e++]=i,r=this._dists[i])}return this.hull=n.subarray(0,e),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(lu(y,v,m,b,x,w)<0){const t=d,n=m,e=b;d=p,m=x,b=w,p=t,x=n,w=e}const M=function(t,n,e,r,i,o){const a=e-t,u=r-n,c=i-t,s=o-n,f=a*a+u*u,l=c*c+s*s,h=.5/(a*s-u*c);return{x:t+(s*f-u*l)*h,y:n+(a*l-c*f)*h}}(y,v,m,b,x,w);this._cx=M.x,this._cy=M.y;for(let n=0;n<o;n++)this._dists[n]=gu(t[2*n],t[2*n+1],M.x,M.y);mu(this._ids,this._dists,0,o-1),this._hullStart=h;let T=3;e[h]=n[p]=d,e[d]=n[h]=p,e[p]=n[d]=h,r[h]=0,r[d]=1,r[p]=2,i.fill(-1),i[this._hashKey(y,v)]=h,i[this._hashKey(m,b)]=d,i[this._hashKey(x,w)]=p,this.trianglesLen=0,this._addTriangle(h,d,p,-1,-1,-1);for(let o,a,u=0;u<this._ids.length;u++){const c=this._ids[u],s=t[2*c],f=t[2*c+1];if(u>0&&Math.abs(s-o)<=hu&&Math.abs(f-a)<=hu)continue;if(o=s,a=f,c===h||c===d||c===p)continue;let l=0;for(let t=0,n=this._hashKey(s,f);t<this._hashSize&&(l=i[(n+t)%this._hashSize],-1===l||l===e[l]);t++);l=n[l];let g,y=l;for(;g=e[y],lu(s,f,t[2*y],t[2*y+1],t[2*g],t[2*g+1])>=0;)if(y=g,y===l){y=-1;break}if(-1===y)continue;let v=this._addTriangle(y,c,e[y],-1,-1,r[y]);r[c]=this._legalize(v+2),r[y]=v,T++;let m=e[y];for(;g=e[m],lu(s,f,t[2*m],t[2*m+1],t[2*g],t[2*g+1])<0;)v=this._addTriangle(m,c,g,r[c],-1,r[m]),r[c]=this._legalize(v+2),e[m]=m,T--,m=g;if(y===l)for(;g=n[y],lu(s,f,t[2*g],t[2*g+1],t[2*y],t[2*y+1])<0;)v=this._addTriangle(g,c,y,-1,r[y],r[g]),this._legalize(v+2),r[g]=v,e[y]=y,T--,y=g;this._hullStart=n[c]=y,e[y]=n[m]=c,e[c]=m,i[this._hashKey(s,f)]=c,i[this._hashKey(t[2*y],t[2*y+1])]=y}this.hull=new Uint32Array(T);for(let t=0,n=this._hullStart;t<T;t++)this.hull[t]=n,n=e[n];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(function(t,n){const e=t/(Math.abs(t)+Math.abs(n));return(n>0?3-e:1+e)/4}(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:e,coords:r}=this;let i=0,o=0;for(;;){const a=e[t],u=t-t%3;if(o=u+(t+2)%3,-1===a){if(0===i)break;t=du[--i];continue}const c=a-a%3,s=u+(t+1)%3,f=c+(a+2)%3,l=n[o],h=n[t],d=n[s],p=n[f];if(yu(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){n[t]=p,n[a]=l;const r=e[f];if(-1===r){let n=this._hullStart;do{if(this._hullTri[n]===f){this._hullTri[n]=t;break}n=this._hullPrev[n]}while(n!==this._hullStart)}this._link(t,r),this._link(a,e[o]),this._link(o,f);const u=c+(a+1)%3;i<du.length&&(du[i++]=u)}else{if(0===i)break;t=du[--i]}}return o}_link(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)}_addTriangle(t,n,e,r,i,o){const a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=n,this._triangles[a+2]=e,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function gu(t,n,e,r){const i=t-e,o=n-r;return i*i+o*o}function yu(t,n,e,r,i,o,a,u){const c=t-a,s=n-u,f=e-a,l=r-u,h=i-a,d=o-u,p=f*f+l*l,g=h*h+d*d;return c*(l*g-p*d)-s*(f*g-p*h)+(c*c+s*s)*(f*d-l*h)<0}function vu(t,n,e,r,i,o){const a=e-t,u=r-n,c=i-t,s=o-n,f=a*a+u*u,l=c*c+s*s,h=.5/(a*s-u*c),d=(s*f-u*l)*h,p=(a*l-c*f)*h;return d*d+p*p}function mu(t,n,e,r){if(r-e<=20)for(let i=e+1;i<=r;i++){const r=t[i],o=n[r];let a=i-1;for(;a>=e&&n[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=e+1,o=r;bu(t,e+r>>1,i),n[t[e]]>n[t[r]]&&bu(t,e,r),n[t[i]]>n[t[r]]&&bu(t,i,r),n[t[e]]>n[t[i]]&&bu(t,e,i);const a=t[i],u=n[a];for(;;){do{i++}while(n[t[i]]<u);do{o--}while(n[t[o]]>u);if(o<i)break;bu(t,i,o)}t[e+1]=t[o],t[o]=a,r-i+1>=o-e?(mu(t,n,i,r),mu(t,n,e,o-1)):(mu(t,n,e,o-1),mu(t,n,i,r))}}function bu(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function _u(t){return t[0]}function xu(t){return t[1]}const wu=1e-6;class Mu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,e){const r=(t=+t)+(e=+e),i=n=+n;if(e<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>wu||Math.abs(this._y1-i)>wu)&&(this._+="L"+r+","+i),e&&(this._+=`A${e},${e},0,1,1,${t-e},${n}A${e},${e},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,n,e,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+e}v${+r}h${-e}Z`}value(){return this._||null}}class Tu{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Au{constructor(t,[n,e,r,i]=[0,0,960,500]){if(!((r=+r)>=(n=+n)&&(i=+i)>=(e=+e)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=n,this.ymax=i,this.ymin=e,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:e},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,e.length/3*2);for(let n,r,o=0,a=0,u=e.length;o<u;o+=3,a+=2){const u=2*e[o],c=2*e[o+1],s=2*e[o+2],f=t[u],l=t[u+1],h=t[c],d=t[c+1],p=t[s],g=t[s+1],y=h-f,v=d-l,m=p-f,b=g-l,_=2*(y*b-v*m);if(Math.abs(_)<1e-9){let i=1e9;const o=2*e[0];i*=Math.sign((t[o]-f)*b-(t[o+1]-l)*m),n=(f+p)/2-i*b,r=(l+g)/2+i*m}else{const t=1/_,e=y*y+v*v,i=m*m+b*b;n=f+(b*e-v*i)*t,r=l+(y*i-m*e)*t}i[a]=n,i[a+1]=r}let o,a,u,c=n[n.length-1],s=4*c,f=t[2*c],l=t[2*c+1];r.fill(0);for(let e=0;e<n.length;++e)c=n[e],o=s,a=f,u=l,s=4*c,f=t[2*c],l=t[2*c+1],r[o+2]=r[s]=u-l,r[o+3]=r[s+1]=f-a}render(t){const n=null==t?t=new Mu:void 0,{delaunay:{halfedges:e,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(r<n)continue;const i=2*Math.floor(n/3),a=2*Math.floor(r/3),u=o[i],c=o[i+1],s=o[a],f=o[a+1];this._renderSegment(u,c,s,f,t)}let u,c=i[i.length-1];for(let n=0;n<i.length;++n){u=c,c=i[n];const e=2*Math.floor(r[c]/3),s=o[e],f=o[e+1],l=4*u,h=this._project(s,f,a[l+2],a[l+3]);h&&this._renderSegment(s,f,h[0],h[1],t)}return n&&n.value()}renderBounds(t){const n=null==t?t=new Mu:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const e=null==n?n=new Mu:void 0,r=this._clip(t);if(null===r||!r.length)return;n.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let t=2;t<i;t+=2)r[t]===r[t-2]&&r[t+1]===r[t-1]||n.lineTo(r[t],r[t+1]);return n.closePath(),e&&e.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,e=t.length/2;n<e;++n){const t=this.cellPolygon(n);t&&(t.index=n,yield t)}}cellPolygon(t){const n=new Tu;return this.renderCell(t,n),n.value()}_renderSegment(t,n,e,r,i){let o;const a=this._regioncode(t,n),u=this._regioncode(e,r);0===a&&0===u?(i.moveTo(t,n),i.lineTo(e,r)):(o=this._clipSegment(t,n,e,r,a,u))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,n,e){return(n=+n)==n&&(e=+e)==e&&this.delaunay._step(t,n,e)===t}*neighbors(t){const n=this._clip(t);if(n)for(const e of this.delaunay.neighbors(t)){const t=this._clip(e);if(t)t:for(let r=0,i=n.length;r<i;r+=2)for(let o=0,a=t.length;o<a;o+=2)if(n[r]==t[o]&&n[r+1]==t[o+1]&&n[(r+2)%i]==t[(o+a-2)%a]&&n[(r+3)%i]==t[(o+a-1)%a]){yield e;break t}}}_cell(t){const{circumcenters:n,delaunay:{inedges:e,halfedges:r,triangles:i}}=this,o=e[t];if(-1===o)return null;const a=[];let u=o;do{const e=Math.floor(u/3);if(a.push(n[2*e],n[2*e+1]),u=u%3==2?u-2:u+1,i[u]!==t)break;u=r[u]}while(u!==o&&-1!==u);return a}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(null===n)return null;const{vectors:e}=this,r=4*t;return e[r]||e[r+1]?this._clipInfinite(t,n,e[r],e[r+1],e[r+2],e[r+3]):this._clipFinite(t,n)}_clipFinite(t,n){const e=n.length;let r,i,o,a,u=null,c=n[e-2],s=n[e-1],f=this._regioncode(c,s),l=0;for(let h=0;h<e;h+=2)if(r=c,i=s,c=n[h],s=n[h+1],o=f,f=this._regioncode(c,s),0===o&&0===f)a=l,l=0,u?u.push(c,s):u=[c,s];else{let n,e,h,d,p;if(0===o){if(null===(n=this._clipSegment(r,i,c,s,o,f)))continue;[e,h,d,p]=n}else{if(null===(n=this._clipSegment(c,s,r,i,f,o)))continue;[d,p,e,h]=n,a=l,l=this._edgecode(e,h),a&&l&&this._edge(t,a,l,u,u.length),u?u.push(e,h):u=[e,h]}a=l,l=this._edgecode(d,p),a&&l&&this._edge(t,a,l,u,u.length),u?u.push(d,p):u=[d,p]}if(u)a=l,l=this._edgecode(u[0],u[1]),a&&l&&this._edge(t,a,l,u,u.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return u}_clipSegment(t,n,e,r,i,o){for(;;){if(0===i&&0===o)return[t,n,e,r];if(i&o)return null;let a,u,c=i||o;8&c?(a=t+(e-t)*(this.ymax-n)/(r-n),u=this.ymax):4&c?(a=t+(e-t)*(this.ymin-n)/(r-n),u=this.ymin):2&c?(u=n+(r-n)*(this.xmax-t)/(e-t),a=this.xmax):(u=n+(r-n)*(this.xmin-t)/(e-t),a=this.xmin),i?(t=a,n=u,i=this._regioncode(t,n)):(e=a,r=u,o=this._regioncode(e,r))}}_clipInfinite(t,n,e,r,i,o){let a,u=Array.from(n);if((a=this._project(u[0],u[1],e,r))&&u.unshift(a[0],a[1]),(a=this._project(u[u.length-2],u[u.length-1],i,o))&&u.push(a[0],a[1]),u=this._clipFinite(t,u))for(let n,e=0,r=u.length,i=this._edgecode(u[r-2],u[r-1]);e<r;e+=2)n=i,i=this._edgecode(u[e],u[e+1]),n&&i&&(e=this._edge(t,n,i,u,e),r=u.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(u=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return u}_edge(t,n,e,r,i){for(;n!==e;){let e,o;switch(n){case 5:n=4;continue;case 4:n=6,e=this.xmax,o=this.ymin;break;case 6:n=2;continue;case 2:n=10,e=this.xmax,o=this.ymax;break;case 10:n=8;continue;case 8:n=9,e=this.xmin,o=this.ymax;break;case 9:n=1;continue;case 1:n=5,e=this.xmin,o=this.ymin}r[i]===e&&r[i+1]===o||!this.contains(t,e,o)||(r.splice(i,0,e,o),i+=2)}if(r.length>4)for(let t=0;t<r.length;t+=2){const n=(t+2)%r.length,e=(t+4)%r.length;(r[t]===r[n]&&r[n]===r[e]||r[t+1]===r[n+1]&&r[n+1]===r[e+1])&&(r.splice(n,2),t-=2)}return i}_project(t,n,e,r){let i,o,a,u=1/0;if(r<0){if(n<=this.ymin)return null;(i=(this.ymin-n)/r)<u&&(a=this.ymin,o=t+(u=i)*e)}else if(r>0){if(n>=this.ymax)return null;(i=(this.ymax-n)/r)<u&&(a=this.ymax,o=t+(u=i)*e)}if(e>0){if(t>=this.xmax)return null;(i=(this.xmax-t)/e)<u&&(o=this.xmax,a=n+(u=i)*r)}else if(e<0){if(t<=this.xmin)return null;(i=(this.xmin-t)/e)<u&&(o=this.xmin,a=n+(u=i)*r)}return[o,a]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}}const Su=2*Math.PI,Eu=Math.pow;function ku(t){return t[0]}function Nu(t){return t[1]}function Cu(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}class Du{static from(t,n=ku,e=Nu,r){return new Du("length"in t?function(t,n,e,r){const i=t.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=t[a];o[2*a]=n.call(r,i,a,t),o[2*a+1]=e.call(r,i,a,t)}return o}(t,n,e,r):Float64Array.from(function*(t,n,e,r){let i=0;for(const o of t)yield n.call(r,o,i,t),yield e.call(r,o,i,t),++i}(t,n,e,r)))}constructor(t){this._delaunator=new pu(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:n,coords:e}=t;for(let t=0;t<n.length;t+=3){const r=2*n[t],i=2*n[t+1],o=2*n[t+2];if((e[o]-e[r])*(e[i+1]-e[r+1])-(e[i]-e[r])*(e[o+1]-e[r+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},((t,n)=>n)).sort(((t,e)=>n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]));const t=this.collinear[0],e=this.collinear[this.collinear.length-1],r=[n[2*t],n[2*t+1],n[2*e],n[2*e+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,e=n.length/2;t<e;++t){const e=Cu(n[2*t],n[2*t+1],i);n[2*t]=e[0],n[2*t+1]=e[1]}this._delaunator=new pu(n)}else delete this.collinear;const e=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let t=0,n=e.length;t<n;++t){const n=i[t%3==2?t-2:t+1];-1!==e[t]&&-1!==o[n]||(o[n]=t)}for(let t=0,n=r.length;t<n;++t)a[r[t]]=t;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new Au(this,t)}*neighbors(t){const{inedges:n,hull:e,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const n=a.indexOf(t);return n>0&&(yield a[n-1]),void(n<a.length-1&&(yield a[n+1]))}const u=n[t];if(-1===u)return;let c=u,s=-1;do{if(yield s=o[c],c=c%3==2?c-2:c+1,o[c]!==t)return;if(c=i[c],-1===c){const n=e[(r[t]+1)%e.length];return void(n!==s&&(yield n))}}while(c!==u)}find(t,n,e=0){if((t=+t)!=t||(n=+n)!=n)return-1;const r=e;let i;for(;(i=this._step(e,t,n))>=0&&i!==e&&i!==r;)e=i;return i}_step(t,n,e){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:u,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let s=t,f=Eu(n-c[2*t],2)+Eu(e-c[2*t+1],2);const l=r[t];let h=l;do{let r=u[h];const l=Eu(n-c[2*r],2)+Eu(e-c[2*r+1],2);if(l<f&&(f=l,s=r),h=h%3==2?h-2:h+1,u[h]!==t)break;if(h=a[h],-1===h){if(h=i[(o[t]+1)%i.length],h!==r&&Eu(n-c[2*h],2)+Eu(e-c[2*h+1],2)<f)return h;break}}while(h!==l);return s}render(t){const n=null==t?t=new Mu:void 0,{points:e,halfedges:r,triangles:i}=this;for(let n=0,o=r.length;n<o;++n){const o=r[n];if(o<n)continue;const a=2*i[n],u=2*i[o];t.moveTo(e[a],e[a+1]),t.lineTo(e[u],e[u+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){void 0!==n||t&&"function"==typeof t.moveTo||(n=t,t=null),n=null==n?2:+n;const e=null==t?t=new Mu:void 0,{points:r}=this;for(let e=0,i=r.length;e<i;e+=2){const i=r[e],o=r[e+1];t.moveTo(i+n,o),t.arc(i,o,n,0,Su)}return e&&e.value()}renderHull(t){const n=null==t?t=new Mu:void 0,{hull:e,points:r}=this,i=2*e[0],o=e.length;t.moveTo(r[i],r[i+1]);for(let n=1;n<o;++n){const i=2*e[n];t.lineTo(r[i],r[i+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new Tu;return this.renderHull(t),t.value()}renderTriangle(t,n){const e=null==n?n=new Mu:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],a=2*i[t+1],u=2*i[t+2];return n.moveTo(r[o],r[o+1]),n.lineTo(r[a],r[a+1]),n.lineTo(r[u],r[u+1]),n.closePath(),e&&e.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,e=t.length/3;n<e;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new Tu;return this.renderTriangle(t,n),n.value()}}const Pu=t=>()=>t;function qu(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:a,y:u,dx:c,dy:s,dispatch:f}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:f}})}function ju(t){return!t.ctrlKey&&!t.button}function Lu(){return this.parentNode}function Ou(t,n){return null==n?{x:t.x,y:t.y}:n}function Ru(){return navigator.maxTouchPoints||"ontouchstart"in this}function zu(){var t,n,e,r,i=ju,o=Lu,a=Ou,u=Ru,c={},s=ln("start","drag","end"),f=0,l=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",y).on("touchmove.drag",v,ke).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&i.call(this,a,u)){var c=b(this,o.call(this,a,u),a,u,"mouse");c&&(Ee(a.view).on("mousemove.drag",p,Ne).on("mouseup.drag",g,Ne),Pe(a.view),Ce(a),e=!1,t=a.clientX,n=a.clientY,c("start",a))}}function p(r){if(De(r),!e){var i=r.clientX-t,o=r.clientY-n;e=i*i+o*o>l}c.mouse("drag",r)}function g(t){Ee(t.view).on("mousemove.drag mouseup.drag",null),qe(t.view,e),De(t),c.mouse("end",t)}function y(t,n){if(i.call(this,t,n)){var e,r,a=t.changedTouches,u=o.call(this,t,n),c=a.length;for(e=0;e<c;++e)(r=b(this,u,t,n,a[e].identifier,a[e]))&&(Ce(t),r("start",t,a[e]))}}function v(t){var n,e,r=t.changedTouches,i=r.length;for(n=0;n<i;++n)(e=c[r[n].identifier])&&(De(t),e("drag",t,r[n]))}function m(t){var n,e,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),n=0;n<o;++n)(e=c[i[n].identifier])&&(Ce(t),e("end",t,i[n]))}function b(t,n,e,r,i,o){var u,l,d,p=s.copy(),g=Lr(o||e,n);if(null!=(d=a.call(t,new qu("beforestart",{sourceEvent:e,target:h,identifier:i,active:f,x:g[0],y:g[1],dx:0,dy:0,dispatch:p}),r)))return u=d.x-g[0]||0,l=d.y-g[1]||0,function e(o,a,s){var y,v=g;switch(o){case"start":c[i]=e,y=f++;break;case"end":delete c[i],--f;case"drag":g=Lr(s||a,n),y=f}p.call(o,t,new qu(o,{sourceEvent:a,subject:d,target:h,identifier:i,active:y,x:g[0]+u,y:g[1]+l,dx:g[0]-v[0],dy:g[1]-v[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:Pu(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:Pu(t),h):o},h.subject=function(t){return arguments.length?(a="function"==typeof t?t:Pu(t),h):a},h.touchable=function(t){return arguments.length?(u="function"==typeof t?t:Pu(!!t),h):u},h.on=function(){var t=s.on.apply(s,arguments);return t===s?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h}qu.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Iu={},Hu={};function Fu(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function Bu(t){var n=Object.create(null),e=[];return t.forEach((function(t){for(var r in t)r in n||e.push(n[r]=r)})),e}function Uu(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function Yu(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,a=0,u=0,c=o<=0,s=!1;function f(){if(c)return Hu;if(s)return s=!1,Iu;var n,r,i=a;if(34===t.charCodeAt(i)){for(;a++<o&&34!==t.charCodeAt(a)||34===t.charCodeAt(++a););return(n=a)>=o?c=!0:10===(r=t.charCodeAt(a++))?s=!0:13===r&&(s=!0,10===t.charCodeAt(a)&&++a),t.slice(i+1,n-1).replace(/""/g,'"')}for(;a<o;){if(10===(r=t.charCodeAt(n=a++)))s=!0;else if(13===r)s=!0,10===t.charCodeAt(a)&&++a;else if(r!==e)continue;return t.slice(i,n)}return c=!0,t.slice(i,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(r=f())!==Hu;){for(var l=[];r!==Iu&&r!==Hu;)l.push(r),r=f();n&&null==(l=n(l,u++))||i.push(l)}return i}function i(n,e){return n.map((function(n){return e.map((function(t){return a(n[t])})).join(t)}))}function o(n){return n.map(a).join(t)}function a(t){return null==t?"":t instanceof Date?function(t){var n=t.getUTCHours(),e=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+Uu(-t,6):t>9999?"+"+Uu(t,6):Uu(t,4)}(t.getUTCFullYear())+"-"+Uu(t.getUTCMonth()+1,2)+"-"+Uu(t.getUTCDate(),2)+(i?"T"+Uu(n,2)+":"+Uu(e,2)+":"+Uu(r,2)+"."+Uu(i,3)+"Z":r?"T"+Uu(n,2)+":"+Uu(e,2)+":"+Uu(r,2)+"Z":e||n?"T"+Uu(n,2)+":"+Uu(e,2)+"Z":"")}(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,o=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=Fu(t);return function(r,i){return n(e(r),i,t)}}(t,n):Fu(t)}));return o.columns=i||[],o},parseRows:r,format:function(n,e){return null==e&&(e=Bu(n)),[e.map(a).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=Bu(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}}var Wu=Yu(","),$u=Wu.parse,Xu=Wu.parseRows,Vu=Wu.format,Gu=Wu.formatBody,Zu=Wu.formatRows,Qu=Wu.formatRow,Ku=Wu.formatValue,Ju=Yu("\t"),tc=Ju.parse,nc=Ju.parseRows,ec=Ju.format,rc=Ju.formatBody,ic=Ju.formatRows,oc=Ju.formatRow,ac=Ju.formatValue;function uc(t){for(var n in t){var e,r,i=t[n].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(e=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;cc&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=e;else i=null;t[n]=i}return t}const cc=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),sc=t=>+t;function fc(t){return t*t}function lc(t){return t*(2-t)}function hc(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var dc=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),pc=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),gc=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),yc=Math.PI,vc=yc/2;function mc(t){return 1==+t?1:1-Math.cos(t*vc)}function bc(t){return Math.sin(t*vc)}function _c(t){return(1-Math.cos(yc*t))/2}function xc(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function wc(t){return xc(1-+t)}function Mc(t){return 1-xc(t)}function Tc(t){return((t*=2)<=1?xc(1-t):2-xc(t-1))/2}function Ac(t){return 1-Math.sqrt(1-t*t)}function Sc(t){return Math.sqrt(1- --t*t)}function Ec(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var kc=7.5625;function Nc(t){return 1-Cc(1-t)}function Cc(t){return(t=+t)<.36363636363636365?kc*t*t:t<.7272727272727273?kc*(t-=.5454545454545454)*t+.75:t<.9090909090909091?kc*(t-=.8181818181818182)*t+.9375:kc*(t-=.9545454545454546)*t+.984375}function Dc(t){return((t*=2)<=1?1-Cc(1-t):Cc(t-1)+1)/2}var Pc=1.70158,qc=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(Pc),jc=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(Pc),Lc=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(Pc),Oc=2*Math.PI,Rc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Oc);function i(t){return n*xc(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Oc)},i.period=function(e){return t(n,e)},i}(1,.3),zc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Oc);function i(t){return 1-n*xc(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Oc)},i.period=function(e){return t(n,e)},i}(1,.3),Ic=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Oc);function i(t){return((t=2*t-1)<0?n*xc(-t)*Math.sin((r-t)/e):2-n*xc(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Oc)},i.period=function(e){return t(n,e)},i}(1,.3);function Hc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function Fc(t,n){return fetch(t,n).then(Hc)}function Bc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function Uc(t,n){return fetch(t,n).then(Bc)}function Yc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Wc(t,n){return fetch(t,n).then(Yc)}function $c(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),Wc(n,e).then((function(n){return t(n,r)}))}}function Xc(t,n,e,r){3===arguments.length&&"function"==typeof e&&(r=e,e=void 0);var i=Yu(t);return Wc(n,e).then((function(t){return i.parse(t,r)}))}var Vc=$c($u),Gc=$c(tc);function Zc(t,n){return new Promise((function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t}))}function Qc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Kc(t,n){return fetch(t,n).then(Qc)}function Jc(t){return(n,e)=>Wc(n,e).then((n=>(new DOMParser).parseFromString(n,t)))}const ts=Jc("application/xml");var ns=Jc("text/html"),es=Jc("image/svg+xml");function rs(t,n){var e,r=1;function i(){var i,o,a=e.length,u=0,c=0;for(i=0;i<a;++i)u+=(o=e[i]).x,c+=o.y;for(u=(u/a-t)*r,c=(c/a-n)*r,i=0;i<a;++i)(o=e[i]).x-=u,o.y-=c}return null==t&&(t=0),null==n&&(n=0),i.initialize=function(t){e=t},i.x=function(n){return arguments.length?(t=+n,i):t},i.y=function(t){return arguments.length?(n=+t,i):n},i.strength=function(t){return arguments.length?(r=+t,i):r},i}function is(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,a,u,c,s,f,l,h,d=t._root,p={data:r},g=t._x0,y=t._y0,v=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((s=n>=(o=(g+v)/2))?g=o:v=o,(f=e>=(a=(y+m)/2))?y=a:m=a,i=d,!(d=d[l=f<<1|s]))return i[l]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(s=n>=(o=(g+v)/2))?g=o:v=o,(f=e>=(a=(y+m)/2))?y=a:m=a}while((l=f<<1|s)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[l]=p,t}function os(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function as(t){return t[0]}function us(t){return t[1]}function cs(t,n,e){var r=new ss(null==n?as:n,null==e?us:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function ss(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function fs(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var ls=cs.prototype=ss.prototype;function hs(t){return function(){return t}}function ds(t){return 1e-6*(t()-.5)}function ps(t){return t.x+t.vx}function gs(t){return t.y+t.vy}function ys(t){var n,e,r,i=1,o=1;function a(){for(var t,a,c,s,f,l,h,d=n.length,p=0;p<o;++p)for(a=cs(n,ps,gs).visitAfter(u),t=0;t<d;++t)c=n[t],l=e[c.index],h=l*l,s=c.x+c.vx,f=c.y+c.vy,a.visit(g);function g(t,n,e,o,a){var u=t.data,d=t.r,p=l+d;if(!u)return n>s+p||o<s-p||e>f+p||a<f-p;if(u.index>c.index){var g=s-u.x-u.vx,y=f-u.y-u.vy,v=g*g+y*y;v<p*p&&(0===g&&(v+=(g=ds(r))*g),0===y&&(v+=(y=ds(r))*y),v=(p-(v=Math.sqrt(v)))/v*i,c.vx+=(g*=v)*(p=(d*=d)/(h+d)),c.vy+=(y*=v)*p,u.vx-=g*(p=1-p),u.vy-=y*p)}}}function u(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function c(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r<o;++r)i=n[r],e[i.index]=+t(i,r,n)}}return"function"!=typeof t&&(t=hs(null==t?1:+t)),a.initialize=function(t,e){n=t,r=e,c()},a.iterations=function(t){return arguments.length?(o=+t,a):o},a.strength=function(t){return arguments.length?(i=+t,a):i},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),c(),a):t},a}function vs(t){return t.index}function ms(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}function bs(t){var n,e,r,i,o,a,u=vs,c=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},s=hs(30),f=1;function l(r){for(var i=0,u=t.length;i<f;++i)for(var c,s,l,h,d,p,g,y=0;y<u;++y)s=(c=t[y]).source,h=(l=c.target).x+l.vx-s.x-s.vx||ds(a),d=l.y+l.vy-s.y-s.vy||ds(a),h*=p=((p=Math.sqrt(h*h+d*d))-e[y])/p*r*n[y],d*=p,l.vx-=h*(g=o[y]),l.vy-=d*g,s.vx+=h*(g=1-g),s.vy+=d*g}function h(){if(r){var a,c,s=r.length,f=t.length,l=new Map(r.map(((t,n)=>[u(t,n,r),t])));for(a=0,i=new Array(s);a<f;++a)(c=t[a]).index=a,"object"!=typeof c.source&&(c.source=ms(l,c.source)),"object"!=typeof c.target&&(c.target=ms(l,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(a=0,o=new Array(f);a<f;++a)c=t[a],o[a]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);n=new Array(f),d(),e=new Array(f),p()}}function d(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+c(t[e],e,t)}function p(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+s(t[n],n,t)}return null==t&&(t=[]),l.initialize=function(t,n){r=t,a=n,h()},l.links=function(n){return arguments.length?(t=n,h(),l):t},l.id=function(t){return arguments.length?(u=t,l):u},l.iterations=function(t){return arguments.length?(f=+t,l):f},l.strength=function(t){return arguments.length?(c="function"==typeof t?t:hs(+t),d(),l):c},l.distance=function(t){return arguments.length?(s="function"==typeof t?t:hs(+t),p(),l):s},l}ls.copy=function(){var t,n,e=new ss(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=fs(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=fs(n));return e},ls.add=function(t){const n=+this._x.call(null,t),e=+this._y.call(null,t);return is(this.cover(n,e),n,e,t)},ls.addAll=function(t){var n,e,r,i,o=t.length,a=new Array(o),u=new Array(o),c=1/0,s=1/0,f=-1/0,l=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(a[e]=r,u[e]=i,r<c&&(c=r),r>f&&(f=r),i<s&&(s=i),i>l&&(l=i));if(c>f||s>l)return this;for(this.cover(c,s).cover(f,l),e=0;e<o;++e)is(this,a[e],u[e],t[e]);return this},ls.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{for(var a,u,c=i-e||1,s=this._root;e>t||t>=i||r>n||n>=o;)switch(u=(n<r)<<1|t<e,(a=new Array(4))[u]=s,s=a,c*=2,u){case 0:i=e+c,o=r+c;break;case 1:e=i-c,o=r+c;break;case 2:i=e+c,r=o-c;break;case 3:e=i-c,r=o-c}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},ls.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},ls.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ls.find=function(t,n,e){var r,i,o,a,u,c,s,f=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new os(g,f,l,h,d)),null==e?e=1/0:(f=t-e,l=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)<f||(u=c.y1)<l))if(g.length){var y=(i+a)/2,v=(o+u)/2;p.push(new os(g[3],y,v,a,u),new os(g[2],i,v,y,u),new os(g[1],y,o,a,v),new os(g[0],i,o,y,v)),(s=(n>=v)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var m=t-+this._x.call(null,g.data),b=n-+this._y.call(null,g.data),_=m*m+b*b;if(_<e){var x=Math.sqrt(e=_);f=t-x,l=n-x,h=t+x,d=n+x,r=g.data}}return r},ls.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var n,e,r,i,o,a,u,c,s,f,l,h,d=this._root,p=this._x0,g=this._y0,y=this._x1,v=this._y1;if(!d)return this;if(d.length)for(;;){if((s=o>=(u=(p+y)/2))?p=u:y=u,(f=a>=(c=(g+v)/2))?g=c:v=c,n=d,!(d=d[l=f<<1|s]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},ls.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},ls.root=function(){return this._root},ls.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},ls.visit=function(t){var n,e,r,i,o,a,u=[],c=this._root;for(c&&u.push(new os(c,this._x0,this._y0,this._x1,this._y1));n=u.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,o=n.x1,a=n.y1)&&c.length){var s=(r+o)/2,f=(i+a)/2;(e=c[3])&&u.push(new os(e,s,f,o,a)),(e=c[2])&&u.push(new os(e,r,f,s,a)),(e=c[1])&&u.push(new os(e,s,i,o,f)),(e=c[0])&&u.push(new os(e,r,i,s,f))}return this},ls.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new os(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,a=n.x0,u=n.y0,c=n.x1,s=n.y1,f=(a+c)/2,l=(u+s)/2;(o=i[0])&&e.push(new os(o,a,u,f,l)),(o=i[1])&&e.push(new os(o,f,u,c,l)),(o=i[2])&&e.push(new os(o,a,l,f,s)),(o=i[3])&&e.push(new os(o,f,l,c,s))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},ls.x=function(t){return arguments.length?(this._x=t,this):this._x},ls.y=function(t){return arguments.length?(this._y=t,this):this._y};const _s=4294967296;function xs(t){return t.x}function ws(t){return t.y}var Ms=Math.PI*(3-Math.sqrt(5));function Ts(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=new Map,c=Gr(l),s=ln("tick","end"),f=function(){let t=1;return()=>(t=(1664525*t+1013904223)%_s)/_s}();function l(){h(),s.call("tick",n),e<r&&(c.stop(),s.call("end",n))}function h(r){var c,s,f=t.length;void 0===r&&(r=1);for(var l=0;l<r;++l)for(e+=(o-e)*i,u.forEach((function(t){t(e)})),c=0;c<f;++c)null==(s=t[c]).fx?s.x+=s.vx*=a:(s.x=s.fx,s.vx=0),null==s.fy?s.y+=s.vy*=a:(s.y=s.fy,s.vy=0);return n}function d(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var i=10*Math.sqrt(.5+e),o=e*Ms;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function p(n){return n.initialize&&n.initialize(t,f),n}return null==t&&(t=[]),d(),n={tick:h,restart:function(){return c.restart(l),n},stop:function(){return c.stop(),n},nodes:function(e){return arguments.length?(t=e,d(),u.forEach(p),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(o=+t,n):o},velocityDecay:function(t){return arguments.length?(a=1-t,n):1-a},randomSource:function(t){return arguments.length?(f=t,u.forEach(p),n):f},force:function(t,e){return arguments.length>1?(null==e?u.delete(t):u.set(t,p(e)),n):u.get(t)},find:function(n,e,r){var i,o,a,u,c,s=0,f=t.length;for(null==r?r=1/0:r*=r,s=0;s<f;++s)(a=(i=n-(u=t[s]).x)*i+(o=e-u.y)*o)<r&&(c=u,r=a);return c},on:function(t,e){return arguments.length>1?(s.on(t,e),n):s.on(t)}}}function As(){var t,n,e,r,i,o=hs(-30),a=1,u=1/0,c=.81;function s(e){var i,o=t.length,a=cs(t,xs,ws).visitAfter(l);for(r=e,i=0;i<o;++i)n=t[i],a.visit(h)}function f(){if(t){var n,e,r=t.length;for(i=new Array(r),n=0;n<r;++n)e=t[n],i[e.index]=+o(e,n,t)}}function l(t){var n,e,r,o,a,u=0,c=0;if(t.length){for(r=o=a=0;a<4;++a)(n=t[a])&&(e=Math.abs(n.value))&&(u+=n.value,c+=e,r+=e*n.x,o+=e*n.y);t.x=r/c,t.y=o/c}else{(n=t).x=n.data.x,n.y=n.data.y;do{u+=i[n.data.index]}while(n=n.next)}t.value=u}function h(t,o,s,f){if(!t.value)return!0;var l=t.x-n.x,h=t.y-n.y,d=f-o,p=l*l+h*h;if(d*d/c<p)return p<u&&(0===l&&(p+=(l=ds(e))*l),0===h&&(p+=(h=ds(e))*h),p<a&&(p=Math.sqrt(a*p)),n.vx+=l*t.value*r/p,n.vy+=h*t.value*r/p),!0;if(!(t.length||p>=u)){(t.data!==n||t.next)&&(0===l&&(p+=(l=ds(e))*l),0===h&&(p+=(h=ds(e))*h),p<a&&(p=Math.sqrt(a*p)));do{t.data!==n&&(d=i[t.data.index]*r/p,n.vx+=l*d,n.vy+=h*d)}while(t=t.next)}}return s.initialize=function(n,r){t=n,e=r,f()},s.strength=function(t){return arguments.length?(o="function"==typeof t?t:hs(+t),f(),s):o},s.distanceMin=function(t){return arguments.length?(a=t*t,s):Math.sqrt(a)},s.distanceMax=function(t){return arguments.length?(u=t*t,s):Math.sqrt(u)},s.theta=function(t){return arguments.length?(c=t*t,s):Math.sqrt(c)},s}function Ss(t,n,e){var r,i,o,a=hs(.1);function u(t){for(var a=0,u=r.length;a<u;++a){var c=r[a],s=c.x-n||1e-6,f=c.y-e||1e-6,l=Math.sqrt(s*s+f*f),h=(o[a]-l)*i[a]*t/l;c.vx+=s*h,c.vy+=f*h}}function c(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)o[n]=+t(r[n],n,r),i[n]=isNaN(o[n])?0:+a(r[n],n,r)}}return"function"!=typeof t&&(t=hs(+t)),null==n&&(n=0),null==e&&(e=0),u.initialize=function(t){r=t,c()},u.strength=function(t){return arguments.length?(a="function"==typeof t?t:hs(+t),c(),u):a},u.radius=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),c(),u):t},u.x=function(t){return arguments.length?(n=+t,u):n},u.y=function(t){return arguments.length?(e=+t,u):e},u}function Es(t){var n,e,r,i=hs(.1);function o(t){for(var i,o=0,a=n.length;o<a;++o)(i=n[o]).vx+=(r[o]-i.x)*e[o]*t}function a(){if(n){var o,a=n.length;for(e=new Array(a),r=new Array(a),o=0;o<a;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=hs(null==t?0:+t)),o.initialize=function(t){n=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:hs(+t),a(),o):i},o.x=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),a(),o):t},o}function ks(t){var n,e,r,i=hs(.1);function o(t){for(var i,o=0,a=n.length;o<a;++o)(i=n[o]).vy+=(r[o]-i.y)*e[o]*t}function a(){if(n){var o,a=n.length;for(e=new Array(a),r=new Array(a),o=0;o<a;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=hs(null==t?0:+t)),o.initialize=function(t){n=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:hs(+t),a(),o):i},o.y=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),a(),o):t},o}function Ns(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Cs(t){return(t=Ns(Math.abs(t)))?t[1]:NaN}var Ds,Ps=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qs(t){if(!(n=Ps.exec(t)))throw new Error("invalid format: "+t);var n;return new js({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function js(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ls(t,n){var e=Ns(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}qs.prototype=js.prototype,js.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Os={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ls(100*t,n),r:Ls,s:function(t,n){var e=Ns(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Ds=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ns(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Rs(t){return t}var zs,Is,Hs,Fs=Array.prototype.map,Bs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Us(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Rs:(n=Fs.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Rs:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Fs.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=qs(t)).fill,e=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(g=!0,m="g"):Os[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===h?o:/[%p]/.test(m)?c:"",x=Os[m],w=/[defgprs%]/.test(m);function M(t){var i,o,c,h=b,M=_;if("c"===m)M=x(t)+M,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?f:x(Math.abs(t),y),v&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),T&&0==+t&&"+"!==l&&(T=!1),h=(T?"("===l?l:s:"-"===l||"("===l?"":l)+h,M=("s"===m?Bs[8+Ds/3]:"")+M+(T&&"("===l?")":""),w)for(i=-1,o=t.length;++i<o;)if(48>(c=t.charCodeAt(i))||c>57){M=(46===c?a+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var A=h.length+t.length+M.length,S=A<p?new Array(p-A+1).join(n):"";switch(g&&d&&(t=r(S+t,S.length?p-M.length:1/0),S=""),e){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,A=S.length>>1)+h+t+M+S.slice(A);break;default:t=S+h+t+M}return u(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=qs(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Cs(n)/3))),i=Math.pow(10,-r),o=Bs[8+r/3];return function(t){return e(i*t)+o}}}}function Ys(t){return zs=Us(t),Is=zs.format,Hs=zs.formatPrefix,zs}function Ws(t){return Math.max(0,-Cs(Math.abs(t)))}function $s(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Cs(n)/3)))-Cs(Math.abs(t)))}function Xs(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Cs(n)-Cs(t))+1}Ys({thousands:",",grouping:[3],currency:["$",""]});var Vs=1e-6,Gs=1e-12,Zs=Math.PI,Qs=Zs/2,Ks=Zs/4,Js=2*Zs,tf=180/Zs,nf=Zs/180,ef=Math.abs,rf=Math.atan,of=Math.atan2,af=Math.cos,uf=Math.ceil,cf=Math.exp,sf=(Math.floor,Math.hypot),ff=Math.log,lf=Math.pow,hf=Math.sin,df=Math.sign||function(t){return t>0?1:t<0?-1:0},pf=Math.sqrt,gf=Math.tan;function yf(t){return t>1?0:t<-1?Zs:Math.acos(t)}function vf(t){return t>1?Qs:t<-1?-Qs:Math.asin(t)}function mf(t){return(t=hf(t/2))*t}function bf(){}function _f(t,n){t&&wf.hasOwnProperty(t.type)&&wf[t.type](t,n)}var xf={Feature:function(t,n){_f(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)_f(e[r].geometry,n)}},wf={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){Mf(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Mf(e[r],n,0)},Polygon:function(t,n){Tf(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Tf(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)_f(e[r],n)}};function Mf(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function Tf(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Mf(t[e],n,1);n.polygonEnd()}function Af(t,n){t&&xf.hasOwnProperty(t.type)?xf[t.type](t,n):_f(t,n)}var Sf,Ef,kf,Nf,Cf,Df,Pf,qf,jf,Lf,Of,Rf,zf,If,Hf,Ff,Bf=new x,Uf=new x,Yf={point:bf,lineStart:bf,lineEnd:bf,polygonStart:function(){Bf=new x,Yf.lineStart=Wf,Yf.lineEnd=$f},polygonEnd:function(){var t=+Bf;Uf.add(t<0?Js+t:t),this.lineStart=this.lineEnd=this.point=bf},sphere:function(){Uf.add(Js)}};function Wf(){Yf.point=Xf}function $f(){Vf(Sf,Ef)}function Xf(t,n){Yf.point=Vf,Sf=t,Ef=n,kf=t*=nf,Nf=af(n=(n*=nf)/2+Ks),Cf=hf(n)}function Vf(t,n){var e=(t*=nf)-kf,r=e>=0?1:-1,i=r*e,o=af(n=(n*=nf)/2+Ks),a=hf(n),u=Cf*a,c=Nf*o+u*af(i),s=u*r*hf(i);Bf.add(of(s,c)),kf=t,Nf=o,Cf=a}function Gf(t){return Uf=new x,Af(t,Yf),2*Uf}function Zf(t){return[of(t[1],t[0]),vf(t[2])]}function Qf(t){var n=t[0],e=t[1],r=af(e);return[r*af(n),r*hf(n),hf(e)]}function Kf(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Jf(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function tl(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function nl(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function el(t){var n=pf(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var rl,il,ol,al,ul,cl,sl,fl,ll,hl,dl,pl,gl,yl,vl,ml,bl={point:_l,lineStart:wl,lineEnd:Ml,polygonStart:function(){bl.point=Tl,bl.lineStart=Al,bl.lineEnd=Sl,If=new x,Yf.polygonStart()},polygonEnd:function(){Yf.polygonEnd(),bl.point=_l,bl.lineStart=wl,bl.lineEnd=Ml,Bf<0?(Df=-(qf=180),Pf=-(jf=90)):If>Vs?jf=90:If<-1e-6&&(Pf=-90),Ff[0]=Df,Ff[1]=qf},sphere:function(){Df=-(qf=180),Pf=-(jf=90)}};function _l(t,n){Hf.push(Ff=[Df=t,qf=t]),n<Pf&&(Pf=n),n>jf&&(jf=n)}function xl(t,n){var e=Qf([t*nf,n*nf]);if(zf){var r=Jf(zf,e),i=Jf([r[1],-r[0],0],r);el(i),i=Zf(i);var o,a=t-Lf,u=a>0?1:-1,c=i[0]*tf*u,s=ef(a)>180;s^(u*Lf<c&&c<u*t)?(o=i[1]*tf)>jf&&(jf=o):s^(u*Lf<(c=(c+360)%360-180)&&c<u*t)?(o=-i[1]*tf)<Pf&&(Pf=o):(n<Pf&&(Pf=n),n>jf&&(jf=n)),s?t<Lf?El(Df,t)>El(Df,qf)&&(qf=t):El(t,qf)>El(Df,qf)&&(Df=t):qf>=Df?(t<Df&&(Df=t),t>qf&&(qf=t)):t>Lf?El(Df,t)>El(Df,qf)&&(qf=t):El(t,qf)>El(Df,qf)&&(Df=t)}else Hf.push(Ff=[Df=t,qf=t]);n<Pf&&(Pf=n),n>jf&&(jf=n),zf=e,Lf=t}function wl(){bl.point=xl}function Ml(){Ff[0]=Df,Ff[1]=qf,bl.point=_l,zf=null}function Tl(t,n){if(zf){var e=t-Lf;If.add(ef(e)>180?e+(e>0?360:-360):e)}else Of=t,Rf=n;Yf.point(t,n),xl(t,n)}function Al(){Yf.lineStart()}function Sl(){Tl(Of,Rf),Yf.lineEnd(),ef(If)>Vs&&(Df=-(qf=180)),Ff[0]=Df,Ff[1]=qf,zf=null}function El(t,n){return(n-=t)<0?n+360:n}function kl(t,n){return t[0]-n[0]}function Nl(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function Cl(t){var n,e,r,i,o,a,u;if(jf=qf=-(Df=Pf=1/0),Hf=[],Af(t,bl),e=Hf.length){for(Hf.sort(kl),n=1,o=[r=Hf[0]];n<e;++n)Nl(r,(i=Hf[n])[0])||Nl(r,i[1])?(El(r[0],i[1])>El(r[0],r[1])&&(r[1]=i[1]),El(i[0],r[1])>El(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(u=El(r[1],i[0]))>a&&(a=u,Df=i[0],qf=r[1])}return Hf=Ff=null,Df===1/0||Pf===1/0?[[NaN,NaN],[NaN,NaN]]:[[Df,Pf],[qf,jf]]}var Dl={sphere:bf,point:Pl,lineStart:jl,lineEnd:Rl,polygonStart:function(){Dl.lineStart=zl,Dl.lineEnd=Il},polygonEnd:function(){Dl.lineStart=jl,Dl.lineEnd=Rl}};function Pl(t,n){t*=nf;var e=af(n*=nf);ql(e*af(t),e*hf(t),hf(n))}function ql(t,n,e){++rl,ol+=(t-ol)/rl,al+=(n-al)/rl,ul+=(e-ul)/rl}function jl(){Dl.point=Ll}function Ll(t,n){t*=nf;var e=af(n*=nf);yl=e*af(t),vl=e*hf(t),ml=hf(n),Dl.point=Ol,ql(yl,vl,ml)}function Ol(t,n){t*=nf;var e=af(n*=nf),r=e*af(t),i=e*hf(t),o=hf(n),a=of(pf((a=vl*o-ml*i)*a+(a=ml*r-yl*o)*a+(a=yl*i-vl*r)*a),yl*r+vl*i+ml*o);il+=a,cl+=a*(yl+(yl=r)),sl+=a*(vl+(vl=i)),fl+=a*(ml+(ml=o)),ql(yl,vl,ml)}function Rl(){Dl.point=Pl}function zl(){Dl.point=Hl}function Il(){Fl(pl,gl),Dl.point=Pl}function Hl(t,n){pl=t,gl=n,t*=nf,n*=nf,Dl.point=Fl;var e=af(n);yl=e*af(t),vl=e*hf(t),ml=hf(n),ql(yl,vl,ml)}function Fl(t,n){t*=nf;var e=af(n*=nf),r=e*af(t),i=e*hf(t),o=hf(n),a=vl*o-ml*i,u=ml*r-yl*o,c=yl*i-vl*r,s=sf(a,u,c),f=vf(s),l=s&&-f/s;ll.add(l*a),hl.add(l*u),dl.add(l*c),il+=f,cl+=f*(yl+(yl=r)),sl+=f*(vl+(vl=i)),fl+=f*(ml+(ml=o)),ql(yl,vl,ml)}function Bl(t){rl=il=ol=al=ul=cl=sl=fl=0,ll=new x,hl=new x,dl=new x,Af(t,Dl);var n=+ll,e=+hl,r=+dl,i=sf(n,e,r);return i<Gs&&(n=cl,e=sl,r=fl,il<Vs&&(n=ol,e=al,r=ul),(i=sf(n,e,r))<Gs)?[NaN,NaN]:[of(e,n)*tf,vf(r/i)*tf]}function Ul(t){return function(){return t}}function Yl(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e}function Wl(t,n){return[ef(t)>Zs?t+Math.round(-t/Js)*Js:t,n]}function $l(t,n,e){return(t%=Js)?n||e?Yl(Vl(t),Gl(n,e)):Vl(t):n||e?Gl(n,e):Wl}function Xl(t){return function(n,e){return[(n+=t)>Zs?n-Js:n<-Zs?n+Js:n,e]}}function Vl(t){var n=Xl(t);return n.invert=Xl(-t),n}function Gl(t,n){var e=af(t),r=hf(t),i=af(n),o=hf(n);function a(t,n){var a=af(n),u=af(t)*a,c=hf(t)*a,s=hf(n),f=s*e+u*r;return[of(c*i-f*o,u*e-s*r),vf(f*i+c*o)]}return a.invert=function(t,n){var a=af(n),u=af(t)*a,c=hf(t)*a,s=hf(n),f=s*i-c*o;return[of(c*i+s*o,u*e+f*r),vf(f*e-u*r)]},a}function Zl(t){function n(n){return(n=t(n[0]*nf,n[1]*nf))[0]*=tf,n[1]*=tf,n}return t=$l(t[0]*nf,t[1]*nf,t.length>2?t[2]*nf:0),n.invert=function(n){return(n=t.invert(n[0]*nf,n[1]*nf))[0]*=tf,n[1]*=tf,n},n}function Ql(t,n,e,r,i,o){if(e){var a=af(n),u=hf(n),c=r*e;null==i?(i=n+r*Js,o=n-c/2):(i=Kl(a,i),o=Kl(a,o),(r>0?i<o:i>o)&&(i+=r*Js));for(var s,f=i;r>0?f>o:f<o;f-=c)s=Zf([a,-u*af(f),-u*hf(f)]),t.point(s[0],s[1])}}function Kl(t,n){(n=Qf(n))[0]-=t,el(n);var e=yf(-n[1]);return((-n[2]<0?-e:e)+Js-Vs)%Js}function Jl(){var t,n,e=Ul([0,0]),r=Ul(90),i=Ul(6),o={point:function(e,r){t.push(e=n(e,r)),e[0]*=tf,e[1]*=tf}};function a(){var a=e.apply(this,arguments),u=r.apply(this,arguments)*nf,c=i.apply(this,arguments)*nf;return t=[],n=$l(-a[0]*nf,-a[1]*nf,0).invert,Ql(o,u,c,1),a={type:"Polygon",coordinates:[t]},t=n=null,a}return a.center=function(t){return arguments.length?(e="function"==typeof t?t:Ul([+t[0],+t[1]]),a):e},a.radius=function(t){return arguments.length?(r="function"==typeof t?t:Ul(+t),a):r},a.precision=function(t){return arguments.length?(i="function"==typeof t?t:Ul(+t),a):i},a}function th(){var t,n=[];return{point:function(n,e,r){t.push([n,e,r])},lineStart:function(){n.push(t=[])},lineEnd:bf,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function nh(t,n){return ef(t[0]-n[0])<Vs&&ef(t[1]-n[1])<Vs}function eh(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function rh(t,n,e,r,i){var o,a,u=[],c=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],a=t[n];if(nh(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}a[0]+=2e-6}u.push(e=new eh(r,t,null,!0)),c.push(e.o=new eh(r,null,e,!1)),u.push(e=new eh(a,t,null,!1)),c.push(e.o=new eh(a,null,e,!0))}})),u.length){for(c.sort(n),ih(u),ih(c),o=0,a=c.length;o<a;++o)c[o].e=e=!e;for(var s,f,l=u[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;s=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,a=s.length;o<a;++o)i.point((f=s[o])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(s=h.p.z,o=s.length-1;o>=0;--o)i.point((f=s[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function ih(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function oh(t){return ef(t[0])<=Zs?t[0]:df(t[0])*((ef(t[0])+Zs)%Js-Zs)}function ah(t,n){var e=oh(n),r=n[1],i=hf(r),o=[hf(e),-af(e),0],a=0,u=0,c=new x;1===i?r=Qs+Vs:-1===i&&(r=-Qs-Vs);for(var s=0,f=t.length;s<f;++s)if(h=(l=t[s]).length)for(var l,h,d=l[h-1],p=oh(d),g=d[1]/2+Ks,y=hf(g),v=af(g),m=0;m<h;++m,p=_,y=M,v=T,d=b){var b=l[m],_=oh(b),w=b[1]/2+Ks,M=hf(w),T=af(w),A=_-p,S=A>=0?1:-1,E=S*A,k=E>Zs,N=y*M;if(c.add(of(N*S*hf(E),v*T+N*af(E))),a+=k?A+S*Js:A,k^p>=e^_>=e){var C=Jf(Qf(d),Qf(b));el(C);var D=Jf(o,C);el(D);var P=(k^A>=0?-1:1)*vf(D[2]);(r>P||r===P&&(C[0]||C[1]))&&(u+=k^A>=0?1:-1)}}return(a<-1e-6||a<Vs&&c<-1e-12)^1&u}function uh(t,n,e,r){return function(i){var o,a,u,c=n(i),s=th(),f=n(s),l=!1,h={point:d,lineStart:g,lineEnd:y,polygonStart:function(){h.point=v,h.lineStart=m,h.lineEnd=b,a=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=g,h.lineEnd=y,a=yt(a);var t=ah(o,r);a.length?(l||(i.polygonStart(),l=!0),rh(a,sh,t,e,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){c.point(t,n)}function g(){h.point=p,c.lineStart()}function y(){h.point=d,c.lineEnd()}function v(t,n){u.push([t,n]),f.point(t,n)}function m(){f.lineStart(),u=[]}function b(){v(u[0][0],u[0][1]),f.lineEnd();var t,n,e,r,c=f.clean(),h=s.result(),d=h.length;if(u.pop(),o.push(u),u=null,d)if(1&c){if((n=(e=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(ch))}return h}}function ch(t){return t.length>1}function sh(t,n){return((t=t.x)[0]<0?t[1]-Qs-Vs:Qs-t[1])-((n=n.x)[0]<0?n[1]-Qs-Vs:Qs-n[1])}Wl.invert=Wl;const fh=uh((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?Zs:-Zs,c=ef(o-e);ef(c-Zs)<Vs?(t.point(e,r=(r+a)/2>0?Qs:-Qs),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&c>=Zs&&(ef(e-i)<Vs&&(e-=i*Vs),ef(o-u)<Vs&&(o-=u*Vs),r=function(t,n,e,r){var i,o,a=hf(t-e);return ef(a)>Vs?rf((hf(n)*(o=af(r))*hf(e)-hf(r)*(i=af(n))*hf(t))/(i*o*a)):(n+r)/2}(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*Qs,r.point(-Zs,i),r.point(0,i),r.point(Zs,i),r.point(Zs,0),r.point(Zs,-i),r.point(0,-i),r.point(-Zs,-i),r.point(-Zs,0),r.point(-Zs,i);else if(ef(t[0]-n[0])>Vs){var o=t[0]<n[0]?Zs:-Zs;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}),[-Zs,-Qs]);function lh(t){var n=af(t),e=6*nf,r=n>0,i=ef(n)>Vs;function o(t,e){return af(t)*af(e)>n}function a(t,e,r){var i=[1,0,0],o=Jf(Qf(t),Qf(e)),a=Kf(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var s=n*a/c,f=-n*u/c,l=Jf(i,o),h=nl(i,s);tl(h,nl(o,f));var d=l,p=Kf(h,d),g=Kf(d,d),y=p*p-g*(Kf(h,h)-1);if(!(y<0)){var v=pf(y),m=nl(d,(-p-v)/g);if(tl(m,h),m=Zf(m),!r)return m;var b,_=t[0],x=e[0],w=t[1],M=e[1];x<_&&(b=_,_=x,x=b);var T=x-_,A=ef(T-Zs)<Vs;if(!A&&M<w&&(b=w,w=M,M=b),A||T<Vs?A?w+M>0^m[1]<(ef(m[0]-_)<Vs?w:M):w<=m[1]&&m[1]<=M:T>Zs^(_<=m[0]&&m[0]<=x)){var S=nl(d,(-p+v)/g);return tl(S,h),[m,Zf(S)]}}}function u(n,e){var i=r?t:Zs-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return uh(o,(function(t){var n,e,c,s,f;return{lineStart:function(){s=c=!1,f=1},point:function(l,h){var d,p=[l,h],g=o(l,h),y=r?g?0:u(l,h):g?u(l+(l<0?Zs:-Zs),h):0;if(!n&&(s=c=g)&&t.lineStart(),g!==c&&(!(d=a(n,p))||nh(n,d)||nh(p,d))&&(p[2]=1),g!==c)f=0,g?(t.lineStart(),d=a(p,n),t.point(d[0],d[1])):(d=a(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(i&&n&&r^g){var v;y&e||!(v=a(p,n,!0))||(f=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1],3)))}!g||n&&nh(n,p)||t.point(p[0],p[1]),n=p,c=g,e=y},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return f|(s&&c)<<1}}}),(function(n,r,i,o){Ql(o,t,e,i,n,r)}),r?[0,-t]:[-Zs,t-Zs])}var hh,dh,ph,gh,yh=1e9,vh=-yh;function mh(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,s){var f=0,l=0;if(null==i||(f=a(i,u))!==(l=a(o,u))||c(i,o)<0^u>0)do{s.point(0===f||3===f?t:e,f>1?r:n)}while((f=(f+u+4)%4)!==l);else s.point(o[0],o[1])}function a(r,i){return ef(r[0]-t)<Vs?i>0?0:3:ef(r[0]-e)<Vs?i>0?2:1:ef(r[1]-n)<Vs?i>0?1:0:i>0?3:2}function u(t,n){return c(t.x,n.x)}function c(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){var c,s,f,l,h,d,p,g,y,v,m,b=a,_=th(),x={point:w,lineStart:function(){x.point=M,s&&s.push(f=[]),v=!0,y=!1,p=g=NaN},lineEnd:function(){c&&(M(l,h),d&&y&&_.rejoin(),c.push(_.result())),x.point=w,y&&b.lineEnd()},polygonStart:function(){b=_,c=[],s=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=s.length;e<i;++e)for(var o,a,u=s[e],c=1,f=u.length,l=u[0],h=l[0],d=l[1];c<f;++c)o=h,a=d,h=(l=u[c])[0],d=l[1],a<=r?d>r&&(h-o)*(r-a)>(d-a)*(t-o)&&++n:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--n;return n}(),e=m&&n,i=(c=yt(c)).length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&rh(c,u,n,o,a),a.polygonEnd()),b=a,c=s=f=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(o,a){var u=i(o,a);if(s&&f.push([o,a]),v)l=o,h=a,d=u,v=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&y)b.point(o,a);else{var c=[p=Math.max(vh,Math.min(yh,p)),g=Math.max(vh,Math.min(yh,g))],_=[o=Math.max(vh,Math.min(yh,o)),a=Math.max(vh,Math.min(yh,a))];!function(t,n,e,r,i,o){var a,u=t[0],c=t[1],s=0,f=1,l=n[0]-u,h=n[1]-c;if(a=e-u,l||!(a>0)){if(a/=l,l<0){if(a<s)return;a<f&&(f=a)}else if(l>0){if(a>f)return;a>s&&(s=a)}if(a=i-u,l||!(a<0)){if(a/=l,l<0){if(a>f)return;a>s&&(s=a)}else if(l>0){if(a<s)return;a<f&&(f=a)}if(a=r-c,h||!(a>0)){if(a/=h,h<0){if(a<s)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>s&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>s&&(s=a)}else if(h>0){if(a<s)return;a<f&&(f=a)}return s>0&&(t[0]=u+s*l,t[1]=c+s*h),f<1&&(n[0]=u+f*l,n[1]=c+f*h),!0}}}}}(c,_,t,n,e,r)?u&&(b.lineStart(),b.point(o,a),m=!1):(y||(b.lineStart(),b.point(c[0],c[1])),b.point(_[0],_[1]),u||b.lineEnd(),m=!1)}p=o,g=a,y=u}return x}}function bh(){var t,n,e,r=0,i=0,o=960,a=500;return e={stream:function(e){return t&&n===e?t:t=mh(r,i,o,a)(n=e)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=n=null,e):[[r,i],[o,a]]}}}var _h={sphere:bf,point:bf,lineStart:function(){_h.point=wh,_h.lineEnd=xh},lineEnd:bf,polygonStart:bf,polygonEnd:bf};function xh(){_h.point=_h.lineEnd=bf}function wh(t,n){dh=t*=nf,ph=hf(n*=nf),gh=af(n),_h.point=Mh}function Mh(t,n){t*=nf;var e=hf(n*=nf),r=af(n),i=ef(t-dh),o=af(i),a=r*hf(i),u=gh*e-ph*r*o,c=ph*e+gh*r*o;hh.add(of(pf(a*a+u*u),c)),dh=t,ph=e,gh=r}function Th(t){return hh=new x,Af(t,_h),+hh}var Ah=[null,null],Sh={type:"LineString",coordinates:Ah};function Eh(t,n){return Ah[0]=t,Ah[1]=n,Th(Sh)}var kh={Feature:function(t,n){return Ch(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(Ch(e[r].geometry,n))return!0;return!1}},Nh={Sphere:function(){return!0},Point:function(t,n){return Dh(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Dh(e[r],n))return!0;return!1},LineString:function(t,n){return Ph(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Ph(e[r],n))return!0;return!1},Polygon:function(t,n){return qh(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(qh(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(Ch(e[r],n))return!0;return!1}};function Ch(t,n){return!(!t||!Nh.hasOwnProperty(t.type))&&Nh[t.type](t,n)}function Dh(t,n){return 0===Eh(t,n)}function Ph(t,n){for(var e,r,i,o=0,a=t.length;o<a;o++){if(0===(r=Eh(t[o],n)))return!0;if(o>0&&(i=Eh(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<Gs*i)return!0;e=r}return!1}function qh(t,n){return!!ah(t.map(jh),Lh(n))}function jh(t){return(t=t.map(Lh)).pop(),t}function Lh(t){return[t[0]*nf,t[1]*nf]}function Oh(t,n){return(t&&kh.hasOwnProperty(t.type)?kh[t.type]:Ch)(t,n)}function Rh(t,n,e){var r=xt(t,n-Vs,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function zh(t,n,e){var r=xt(t,n-Vs,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function Ih(){var t,n,e,r,i,o,a,u,c,s,f,l,h=10,d=h,p=90,g=360,y=2.5;function v(){return{type:"MultiLineString",coordinates:m()}}function m(){return xt(uf(r/p)*p,e,p).map(f).concat(xt(uf(u/g)*g,a,g).map(l)).concat(xt(uf(n/h)*h,t,h).filter((function(t){return ef(t%p)>Vs})).map(c)).concat(xt(uf(o/d)*d,i,d).filter((function(t){return ef(t%g)>Vs})).map(s))}return v.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},v.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(l(a).slice(1),f(e).reverse().slice(1),l(u).reverse().slice(1))]}},v.extent=function(t){return arguments.length?v.extentMajor(t).extentMinor(t):v.extentMinor()},v.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],u=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),u>a&&(t=u,u=a,a=t),v.precision(y)):[[r,u],[e,a]]},v.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),v.precision(y)):[[n,o],[t,i]]},v.step=function(t){return arguments.length?v.stepMajor(t).stepMinor(t):v.stepMinor()},v.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],v):[p,g]},v.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],v):[h,d]},v.precision=function(h){return arguments.length?(y=+h,c=Rh(o,i,90),s=zh(n,t,y),f=Rh(u,a,90),l=zh(r,e,y),v):y},v.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Hh(){return Ih()()}function Fh(t,n){var e=t[0]*nf,r=t[1]*nf,i=n[0]*nf,o=n[1]*nf,a=af(r),u=hf(r),c=af(o),s=hf(o),f=a*af(e),l=a*hf(e),h=c*af(i),d=c*hf(i),p=2*vf(pf(mf(o-r)+a*c*mf(i-e))),g=hf(p),y=p?function(t){var n=hf(t*=p)/g,e=hf(p-t)/g,r=e*f+n*h,i=e*l+n*d,o=e*u+n*s;return[of(i,r)*tf,of(o,pf(r*r+i*i))*tf]}:function(){return[e*tf,r*tf]};return y.distance=p,y}const Bh=t=>t;var Uh,Yh,Wh,$h,Xh=new x,Vh=new x,Gh={point:bf,lineStart:bf,lineEnd:bf,polygonStart:function(){Gh.lineStart=Zh,Gh.lineEnd=Jh},polygonEnd:function(){Gh.lineStart=Gh.lineEnd=Gh.point=bf,Xh.add(ef(Vh)),Vh=new x},result:function(){var t=Xh/2;return Xh=new x,t}};function Zh(){Gh.point=Qh}function Qh(t,n){Gh.point=Kh,Uh=Wh=t,Yh=$h=n}function Kh(t,n){Vh.add($h*t-Wh*n),Wh=t,$h=n}function Jh(){Kh(Uh,Yh)}const td=Gh;var nd=1/0,ed=nd,rd=-nd,id=rd,od={point:function(t,n){t<nd&&(nd=t),t>rd&&(rd=t),n<ed&&(ed=n),n>id&&(id=n)},lineStart:bf,lineEnd:bf,polygonStart:bf,polygonEnd:bf,result:function(){var t=[[nd,ed],[rd,id]];return rd=id=-(ed=nd=1/0),t}};const ad=od;var ud,cd,sd,fd,ld=0,hd=0,dd=0,pd=0,gd=0,yd=0,vd=0,md=0,bd=0,_d={point:xd,lineStart:wd,lineEnd:Ad,polygonStart:function(){_d.lineStart=Sd,_d.lineEnd=Ed},polygonEnd:function(){_d.point=xd,_d.lineStart=wd,_d.lineEnd=Ad},result:function(){var t=bd?[vd/bd,md/bd]:yd?[pd/yd,gd/yd]:dd?[ld/dd,hd/dd]:[NaN,NaN];return ld=hd=dd=pd=gd=yd=vd=md=bd=0,t}};function xd(t,n){ld+=t,hd+=n,++dd}function wd(){_d.point=Md}function Md(t,n){_d.point=Td,xd(sd=t,fd=n)}function Td(t,n){var e=t-sd,r=n-fd,i=pf(e*e+r*r);pd+=i*(sd+t)/2,gd+=i*(fd+n)/2,yd+=i,xd(sd=t,fd=n)}function Ad(){_d.point=xd}function Sd(){_d.point=kd}function Ed(){Nd(ud,cd)}function kd(t,n){_d.point=Nd,xd(ud=sd=t,cd=fd=n)}function Nd(t,n){var e=t-sd,r=n-fd,i=pf(e*e+r*r);pd+=i*(sd+t)/2,gd+=i*(fd+n)/2,yd+=i,vd+=(i=fd*t-sd*n)*(sd+t),md+=i*(fd+n),bd+=3*i,xd(sd=t,fd=n)}const Cd=_d;function Dd(t){this._context=t}Dd.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Js)}},result:bf};var Pd,qd,jd,Ld,Od,Rd=new x,zd={point:bf,lineStart:function(){zd.point=Id},lineEnd:function(){Pd&&Hd(qd,jd),zd.point=bf},polygonStart:function(){Pd=!0},polygonEnd:function(){Pd=null},result:function(){var t=+Rd;return Rd=new x,t}};function Id(t,n){zd.point=Hd,qd=Ld=t,jd=Od=n}function Hd(t,n){Ld-=t,Od-=n,Rd.add(pf(Ld*Ld+Od*Od)),Ld=t,Od=n}const Fd=zd;function Bd(){this._string=[]}function Ud(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Yd(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Af(t,e(r))),r.result()}return o.area=function(t){return Af(t,e(td)),td.result()},o.measure=function(t){return Af(t,e(Fd)),Fd.result()},o.bounds=function(t){return Af(t,e(ad)),ad.result()},o.centroid=function(t){return Af(t,e(Cd)),Cd.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,Bh):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new Bd):new Dd(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)}function Wd(t){return{stream:$d(t)}}function $d(t){return function(n){var e=new Xd;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Xd(){}function Vd(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Af(e,t.stream(ad)),n(ad.result()),null!=r&&t.clipExtent(r),t}function Gd(t,n,e){return Vd(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),a=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,u=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([a,u])}),e)}function Zd(t,n,e){return Gd(t,[[0,0],n],e)}function Qd(t,n,e){return Vd(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,a=-i*e[0][1];t.scale(150*i).translate([o,a])}),e)}function Kd(t,n,e){return Vd(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],a=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,a])}),e)}Bd.prototype={_radius:4.5,_circle:Ud(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Ud(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Xd.prototype={constructor:Xd,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Jd=af(30*nf);function tp(t,n){return+n?function(t,n){function e(r,i,o,a,u,c,s,f,l,h,d,p,g,y){var v=s-r,m=f-i,b=v*v+m*m;if(b>4*n&&g--){var _=a+h,x=u+d,w=c+p,M=pf(_*_+x*x+w*w),T=vf(w/=M),A=ef(ef(w)-1)<Vs||ef(o-l)<Vs?(o+l)/2:of(x,_),S=t(A,T),E=S[0],k=S[1],N=E-r,C=k-i,D=m*N-v*C;(D*D/b>n||ef((v*N+m*C)/b-.5)>.3||a*h+u*d+c*p<Jd)&&(e(r,i,o,a,u,c,E,k,A,_/=M,x/=M,w,g,y),y.point(E,k),e(E,k,A,_,x,w,s,f,l,h,d,p,g,y))}}return function(n){var r,i,o,a,u,c,s,f,l,h,d,p,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){n.polygonStart(),g.lineStart=_},polygonEnd:function(){n.polygonEnd(),g.lineStart=v}};function y(e,r){e=t(e,r),n.point(e[0],e[1])}function v(){f=NaN,g.point=m,n.lineStart()}function m(r,i){var o=Qf([r,i]),a=t(r,i);e(f,l,s,h,d,p,f=a[0],l=a[1],s=r,h=o[0],d=o[1],p=o[2],16,n),n.point(f,l)}function b(){g.point=y,n.lineEnd()}function _(){v(),g.point=x,g.lineEnd=w}function x(t,n){m(r=t,n),i=f,o=l,a=h,u=d,c=p,g.point=m}function w(){e(f,l,s,h,d,p,i,o,r,a,u,c,16,n),g.lineEnd=b,b()}return g}}(t,n):function(t){return $d({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}(t)}var np=$d({point:function(t,n){this.stream.point(t*nf,n*nf)}});function ep(t,n,e,r,i,o){if(!o)return function(t,n,e,r,i){function o(o,a){return[n+t*(o*=r),e-t*(a*=i)]}return o.invert=function(o,a){return[(o-n)/t*r,(e-a)/t*i]},o}(t,n,e,r,i);var a=af(o),u=hf(o),c=a*t,s=u*t,f=a/t,l=u/t,h=(u*e-a*n)/t,d=(u*n+a*e)/t;function p(t,o){return[c*(t*=r)-s*(o*=i)+n,e-s*t-c*o]}return p.invert=function(t,n){return[r*(f*t-l*n+h),i*(d-l*t-f*n)]},p}function rp(t){return ip((function(){return t}))()}function ip(t){var n,e,r,i,o,a,u,c,s,f,l=150,h=480,d=250,p=0,g=0,y=0,v=0,m=0,b=0,_=1,x=1,w=null,M=fh,T=null,A=Bh,S=.5;function E(t){return c(t[0]*nf,t[1]*nf)}function k(t){return(t=c.invert(t[0],t[1]))&&[t[0]*tf,t[1]*tf]}function N(){var t=ep(l,0,0,_,x,b).apply(null,n(p,g)),r=ep(l,h-t[0],d-t[1],_,x,b);return e=$l(y,v,m),u=Yl(n,r),c=Yl(e,u),a=tp(u,S),C()}function C(){return s=f=null,E}return E.stream=function(t){return s&&f===t?s:s=np(function(t){return $d({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}(e)(M(a(A(f=t)))))},E.preclip=function(t){return arguments.length?(M=t,w=void 0,C()):M},E.postclip=function(t){return arguments.length?(A=t,T=r=i=o=null,C()):A},E.clipAngle=function(t){return arguments.length?(M=+t?lh(w=t*nf):(w=null,fh),C()):w*tf},E.clipExtent=function(t){return arguments.length?(A=null==t?(T=r=i=o=null,Bh):mh(T=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),C()):null==T?null:[[T,r],[i,o]]},E.scale=function(t){return arguments.length?(l=+t,N()):l},E.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],N()):[h,d]},E.center=function(t){return arguments.length?(p=t[0]%360*nf,g=t[1]%360*nf,N()):[p*tf,g*tf]},E.rotate=function(t){return arguments.length?(y=t[0]%360*nf,v=t[1]%360*nf,m=t.length>2?t[2]%360*nf:0,N()):[y*tf,v*tf,m*tf]},E.angle=function(t){return arguments.length?(b=t%360*nf,N()):b*tf},E.reflectX=function(t){return arguments.length?(_=t?-1:1,N()):_<0},E.reflectY=function(t){return arguments.length?(x=t?-1:1,N()):x<0},E.precision=function(t){return arguments.length?(a=tp(u,S=t*t),C()):pf(S)},E.fitExtent=function(t,n){return Gd(E,t,n)},E.fitSize=function(t,n){return Zd(E,t,n)},E.fitWidth=function(t,n){return Qd(E,t,n)},E.fitHeight=function(t,n){return Kd(E,t,n)},function(){return n=t.apply(this,arguments),E.invert=n.invert&&k,N()}}function op(t){var n=0,e=Zs/3,r=ip(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*nf,e=t[1]*nf):[n*tf,e*tf]},i}function ap(t,n){var e=hf(t),r=(e+hf(n))/2;if(ef(r)<Vs)return function(t){var n=af(t);function e(t,e){return[t*n,hf(e)/n]}return e.invert=function(t,e){return[t/n,vf(e*n)]},e}(t);var i=1+e*(2*r-e),o=pf(i)/r;function a(t,n){var e=pf(i-2*r*hf(n))/r;return[e*hf(t*=r),o-e*af(t)]}return a.invert=function(t,n){var e=o-n,a=of(t,ef(e))*df(e);return e*r<0&&(a-=Zs*df(t)*df(e)),[a/r,vf((i-(t*t+e*e)*r*r)/(2*r))]},a}function up(){return op(ap).scale(155.424).center([0,33.6442])}function cp(){return up().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function sp(){var t,n,e,r,i,o,a=cp(),u=up().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=up().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){o=[t,n]}};function f(t){var n=t[0],a=t[1];return o=null,e.point(n,a),o||(r.point(n,a),o)||(i.point(n,a),o)}function l(){return t=n=null,f}return f.invert=function(t){var n=a.scale(),e=a.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},f.stream=function(e){return t&&n===e?t:(r=[a.stream(n=e),u.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e<i;)r[e].point(t,n)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},f.precision=function(t){return arguments.length?(a.precision(t),u.precision(t),c.precision(t),l()):a.precision()},f.scale=function(t){return arguments.length?(a.scale(t),u.scale(.35*t),c.scale(t),f.translate(a.translate())):a.scale()},f.translate=function(t){if(!arguments.length)return a.translate();var n=a.scale(),o=+t[0],f=+t[1];return e=a.translate(t).clipExtent([[o-.455*n,f-.238*n],[o+.455*n,f+.238*n]]).stream(s),r=u.translate([o-.307*n,f+.201*n]).clipExtent([[o-.425*n+Vs,f+.12*n+Vs],[o-.214*n-Vs,f+.234*n-Vs]]).stream(s),i=c.translate([o-.205*n,f+.212*n]).clipExtent([[o-.214*n+Vs,f+.166*n+Vs],[o-.115*n-Vs,f+.234*n-Vs]]).stream(s),l()},f.fitExtent=function(t,n){return Gd(f,t,n)},f.fitSize=function(t,n){return Zd(f,t,n)},f.fitWidth=function(t,n){return Qd(f,t,n)},f.fitHeight=function(t,n){return Kd(f,t,n)},f.scale(1070)}function fp(t){return function(n,e){var r=af(n),i=af(e),o=t(r*i);return o===1/0?[2,0]:[o*i*hf(n),o*hf(e)]}}function lp(t){return function(n,e){var r=pf(n*n+e*e),i=t(r),o=hf(i),a=af(i);return[of(n*o,r*a),vf(r&&e*o/r)]}}var hp=fp((function(t){return pf(2/(1+t))}));function dp(){return rp(hp).scale(124.75).clipAngle(179.999)}hp.invert=lp((function(t){return 2*vf(t/2)}));var pp=fp((function(t){return(t=yf(t))&&t/hf(t)}));function gp(){return rp(pp).scale(79.4188).clipAngle(179.999)}function yp(t,n){return[t,ff(gf((Qs+n)/2))]}function vp(){return mp(yp).scale(961/Js)}function mp(t){var n,e,r,i=rp(t),o=i.center,a=i.scale,u=i.translate,c=i.clipExtent,s=null;function f(){var o=Zs*a(),u=i(Zl(i.rotate()).invert([0,0]));return c(null==s?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:t===yp?[[Math.max(u[0]-o,s),n],[Math.min(u[0]+o,e),r]]:[[s,Math.max(u[1]-o,n)],[e,Math.min(u[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),f()):a()},i.translate=function(t){return arguments.length?(u(t),f()):u()},i.center=function(t){return arguments.length?(o(t),f()):o()},i.clipExtent=function(t){return arguments.length?(null==t?s=n=e=r=null:(s=+t[0][0],n=+t[0][1],e=+t[1][0],r=+t[1][1]),f()):null==s?null:[[s,n],[e,r]]},f()}function bp(t){return gf((Qs+t)/2)}function _p(t,n){var e=af(t),r=t===n?hf(t):ff(e/af(n))/ff(bp(n)/bp(t)),i=e*lf(bp(t),r)/r;if(!r)return yp;function o(t,n){i>0?n<-Qs+Vs&&(n=-Qs+Vs):n>Qs-Vs&&(n=Qs-Vs);var e=i/lf(bp(n),r);return[e*hf(r*t),i-e*af(r*t)]}return o.invert=function(t,n){var e=i-n,o=df(r)*pf(t*t+e*e),a=of(t,ef(e))*df(e);return e*r<0&&(a-=Zs*df(t)*df(e)),[a/r,2*rf(lf(i/o,1/r))-Qs]},o}function xp(){return op(_p).scale(109.5).parallels([30,30])}function wp(t,n){return[t,n]}function Mp(){return rp(wp).scale(152.63)}function Tp(t,n){var e=af(t),r=t===n?hf(t):(e-af(n))/(n-t),i=e/r+t;if(ef(r)<Vs)return wp;function o(t,n){var e=i-n,o=r*t;return[e*hf(o),i-e*af(o)]}return o.invert=function(t,n){var e=i-n,o=of(t,ef(e))*df(e);return e*r<0&&(o-=Zs*df(t)*df(e)),[o/r,i-df(r)*pf(t*t+e*e)]},o}function Ap(){return op(Tp).scale(131.154).center([0,13.9389])}pp.invert=lp((function(t){return t})),yp.invert=function(t,n){return[t,2*rf(cf(n))-Qs]},wp.invert=wp;var Sp=1.340264,Ep=-.081106,kp=893e-6,Np=.003796,Cp=pf(3)/2;function Dp(t,n){var e=vf(Cp*hf(n)),r=e*e,i=r*r*r;return[t*af(e)/(Cp*(Sp+3*Ep*r+i*(7*kp+9*Np*r))),e*(Sp+Ep*r+i*(kp+Np*r))]}function Pp(){return rp(Dp).scale(177.158)}function qp(t,n){var e=af(n),r=af(t)*e;return[e*hf(t)/r,hf(n)/r]}function jp(){return rp(qp).scale(144.049).clipAngle(60)}function Lp(){var t,n,e,r,i,o,a,u=1,c=0,s=0,f=1,l=1,h=0,d=null,p=1,g=1,y=$d({point:function(t,n){var e=b([t,n]);this.stream.point(e[0],e[1])}}),v=Bh;function m(){return p=u*f,g=u*l,o=a=null,b}function b(e){var r=e[0]*p,i=e[1]*g;if(h){var o=i*t-r*n;r=r*t+i*n,i=o}return[r+c,i+s]}return b.invert=function(e){var r=e[0]-c,i=e[1]-s;if(h){var o=i*t+r*n;r=r*t-i*n,i=o}return[r/p,i/g]},b.stream=function(t){return o&&a===t?o:o=y(v(a=t))},b.postclip=function(t){return arguments.length?(v=t,d=e=r=i=null,m()):v},b.clipExtent=function(t){return arguments.length?(v=null==t?(d=e=r=i=null,Bh):mh(d=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),m()):null==d?null:[[d,e],[r,i]]},b.scale=function(t){return arguments.length?(u=+t,m()):u},b.translate=function(t){return arguments.length?(c=+t[0],s=+t[1],m()):[c,s]},b.angle=function(e){return arguments.length?(n=hf(h=e%360*nf),t=af(h),m()):h*tf},b.reflectX=function(t){return arguments.length?(f=t?-1:1,m()):f<0},b.reflectY=function(t){return arguments.length?(l=t?-1:1,m()):l<0},b.fitExtent=function(t,n){return Gd(b,t,n)},b.fitSize=function(t,n){return Zd(b,t,n)},b.fitWidth=function(t,n){return Qd(b,t,n)},b.fitHeight=function(t,n){return Kd(b,t,n)},b}function Op(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}function Rp(){return rp(Op).scale(175.295)}function zp(t,n){return[af(n)*hf(t),hf(n)]}function Ip(){return rp(zp).scale(249.5).clipAngle(90.000001)}function Hp(t,n){var e=af(n),r=1+af(t)*e;return[e*hf(t)/r,hf(n)/r]}function Fp(){return rp(Hp).scale(250).clipAngle(142)}function Bp(t,n){return[ff(gf((Qs+n)/2)),-t]}function Up(){var t=mp(Bp),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}function Yp(t,n){return t.parent===n.parent?1:2}function Wp(t,n){return t+n.x}function $p(t,n){return Math.max(t,n.y)}function Xp(){var t=Yp,n=1,e=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(Wp,0)/t.length}(e),n.y=function(t){return 1+t.reduce($p,0)}(e)):(n.x=o?a+=t(n,o):0,n.y=0,o=n)}));var u=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),s=u.x-t(u,c)/2,f=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-s)/(f-s)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Vp(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Gp(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Qp)):void 0===n&&(n=Zp);for(var e,r,i,o,a,u=new tg(t),c=[u];e=c.pop();)if((i=n(e.data))&&(a=(i=Array.from(i)).length))for(e.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new tg(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(Jp)}function Zp(t){return t.children}function Qp(t){return Array.isArray(t)?t[1]:null}function Kp(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Jp(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function tg(t){this.data=t,this.depth=this.height=0,this.parent=null}function ng(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(Array.from(t))).length,o=[];r<i;)n=t[r],e&&ig(e,n)?++r:(e=ag(o=eg(o,n)),r=0);return e}function eg(t,n){var e,r;if(og(n,t))return[n];for(e=0;e<t.length;++e)if(rg(n,t[e])&&og(ug(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(rg(ug(t[e],t[r]),n)&&rg(ug(t[e],n),t[r])&&rg(ug(t[r],n),t[e])&&og(cg(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function rg(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function ig(t,n){var e=t.r-n.r+1e-9*Math.max(t.r,n.r,1),r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function og(t,n){for(var e=0;e<n.length;++e)if(!ig(t,n[e]))return!1;return!0}function ag(t){switch(t.length){case 1:return{x:(n=t[0]).x,y:n.y,r:n.r};case 2:return ug(t[0],t[1]);case 3:return cg(t[0],t[1],t[2])}var n}function ug(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,a=n.y,u=n.r,c=o-e,s=a-r,f=u-i,l=Math.sqrt(c*c+s*s);return{x:(e+o+c/l*f)/2,y:(r+a+s/l*f)/2,r:(l+i+u)/2}}function cg(t,n,e){var r=t.x,i=t.y,o=t.r,a=n.x,u=n.y,c=n.r,s=e.x,f=e.y,l=e.r,h=r-a,d=r-s,p=i-u,g=i-f,y=c-o,v=l-o,m=r*r+i*i-o*o,b=m-a*a-u*u+c*c,_=m-s*s-f*f+l*l,x=d*p-h*g,w=(p*_-g*b)/(2*x)-r,M=(g*y-p*v)/x,T=(d*b-h*_)/(2*x)-i,A=(h*v-d*y)/x,S=M*M+A*A-1,E=2*(o+w*M+T*A),k=w*w+T*T-o*o,N=-(S?(E+Math.sqrt(E*E-4*S*k))/(2*S):k/E);return{x:r+w+M*N,y:i+T+A*N,r:N}}function sg(t,n,e){var r,i,o,a,u=t.x-n.x,c=t.y-n.y,s=u*u+c*c;s?(i=n.r+e.r,i*=i,a=t.r+e.r,i>(a*=a)?(r=(s+a-i)/(2*s),o=Math.sqrt(Math.max(0,a/s-r*r)),e.x=t.x-r*u-o*c,e.y=t.y-r*c+o*u):(r=(s+i-a)/(2*s),o=Math.sqrt(Math.max(0,i/s-r*r)),e.x=n.x+r*u-o*c,e.y=n.y+r*c+o*u)):(e.x=n.x+e.r,e.y=n.y)}function fg(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function lg(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function hg(t){this._=t,this.next=null,this.previous=null}function dg(t){if(!(o=(n=t,t="object"==typeof n&&"length"in n?n:Array.from(n)).length))return 0;var n,e,r,i,o,a,u,c,s,f,l,h;if((e=t[0]).x=0,e.y=0,!(o>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(o>2))return e.r+r.r;sg(r,e,i=t[2]),e=new hg(e),r=new hg(r),i=new hg(i),e.next=i.previous=r,r.next=e.previous=i,i.next=r.previous=e;t:for(c=3;c<o;++c){sg(e._,r._,i=t[c]),i=new hg(i),s=r.next,f=e.previous,l=r._.r,h=e._.r;do{if(l<=h){if(fg(s._,i._)){r=s,e.next=r,r.previous=e,--c;continue t}l+=s._.r,s=s.next}else{if(fg(f._,i._)){(e=f).next=r,r.previous=e,--c;continue t}h+=f._.r,f=f.previous}}while(s!==f.next);for(i.previous=e,i.next=r,e.next=r.previous=r=i,a=lg(e);(i=i.next)!==r;)(u=lg(i))<a&&(e=i,a=u);r=e.next}for(e=[r._],i=r;(i=i.next)!==r;)e.push(i._);for(i=ng(e),c=0;c<o;++c)(e=t[c]).x-=i.x,e.y-=i.y;return i.r}function pg(t){return dg(t),t}function gg(t){return null==t?null:yg(t)}function yg(t){if("function"!=typeof t)throw new Error;return t}function vg(){return 0}function mg(t){return function(){return t}}function bg(t){return Math.sqrt(t.value)}function _g(){var t=null,n=1,e=1,r=vg;function i(i){return i.x=n/2,i.y=e/2,t?i.eachBefore(xg(t)).eachAfter(wg(r,.5)).eachBefore(Mg(1)):i.eachBefore(xg(bg)).eachAfter(wg(vg,1)).eachAfter(wg(r,i.r/Math.min(n,e))).eachBefore(Mg(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=gg(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:mg(+t),i):r},i}function xg(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function wg(t,n){return function(e){if(r=e.children){var r,i,o,a=r.length,u=t(e)*n||0;if(u)for(i=0;i<a;++i)r[i].r+=u;if(o=dg(r),u)for(i=0;i<a;++i)r[i].r-=u;e.r=o+u}}}function Mg(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}function Tg(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ag(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(r-n)/t.value;++u<c;)(o=a[u]).y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*s}function Sg(){var t=1,n=1,e=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/o,i.eachBefore(function(t,n){return function(r){r.children&&Ag(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,o=r.y0,a=r.x1-e,u=r.y1-e;a<i&&(i=a=(i+a)/2),u<o&&(o=u=(o+u)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=u}}(n,o)),r&&i.eachBefore(Tg),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i}Dp.invert=function(t,n){for(var e,r=n,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=e=(r*(Sp+Ep*i+o*(kp+Np*i))-n)/(Sp+3*Ep*i+o*(7*kp+9*Np*i)))*r)*i*i,!(ef(e)<Gs));++a);return[Cp*t*(Sp+3*Ep*i+o*(7*kp+9*Np*i))/af(r),vf(hf(r)/Cp)]},qp.invert=lp(rf),Op.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,a=o*o;r-=e=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-n)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(ef(e)>Vs&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},zp.invert=lp(vf),Hp.invert=lp((function(t){return 2*rf(t)})),Bp.invert=function(t,n){return[-n,2*rf(cf(t))-Qs]},tg.prototype=Gp.prototype={constructor:tg,count:function(){return this.eachAfter(Vp)},each:function(t,n){let e=-1;for(const r of this)t.call(n,r,++e,this);return this},eachAfter:function(t,n){for(var e,r,i,o=this,a=[o],u=[],c=-1;o=a.pop();)if(u.push(o),e=o.children)for(r=0,i=e.length;r<i;++r)a.push(e[r]);for(;o=u.pop();)t.call(n,o,++c,this);return this},eachBefore:function(t,n){for(var e,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(n,i,++a,this),e=i.children)for(r=e.length-1;r>=0;--r)o.push(e[r]);return this},find:function(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Gp(this).eachBefore(Kp)},[Symbol.iterator]:function*(){var t,n,e,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e])}while(o.length)}};var Eg={depth:-1},kg={};function Ng(t){return t.id}function Cg(t){return t.parentId}function Dg(){var t=Ng,n=Cg;function e(e){var r,i,o,a,u,c,s,f=Array.from(e),l=f.length,h=new Map;for(i=0;i<l;++i)r=f[i],u=f[i]=new tg(r),null!=(c=t(r,i,e))&&(c+="")&&(s=u.id=c,h.set(s,h.has(s)?kg:u)),null!=(c=n(r,i,e))&&(c+="")&&(u.parent=c);for(i=0;i<l;++i)if(c=(u=f[i]).parent){if(!(a=h.get(c)))throw new Error("missing: "+c);if(a===kg)throw new Error("ambiguous: "+c);a.children?a.children.push(u):a.children=[u],u.parent=a}else{if(o)throw new Error("multiple roots");o=u}if(!o)throw new Error("no root");if(o.parent=Eg,o.eachBefore((function(t){t.depth=t.parent.depth+1,--l})).eachBefore(Jp),o.parent=null,l>0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=yg(n),e):t},e.parentId=function(t){return arguments.length?(n=yg(t),e):n},e}function Pg(t,n){return t.parent===n.parent?1:2}function qg(t){var n=t.children;return n?n[0]:t.t}function jg(t){var n=t.children;return n?n[n.length-1]:t.t}function Lg(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Og(t,n,e){return t.a.parent===n.parent?t.a:e}function Rg(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function zg(){var t=Pg,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,a=new Rg(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new Rg(r[i],i)),e.parent=n;return(a.parent=new Rg(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var s=i,f=i,l=i;i.eachBefore((function(t){t.x<s.x&&(s=t),t.x>f.x&&(f=t),t.depth>l.depth&&(l=t)}));var h=s===f?1:t(s,f)/2,d=h-s.x,p=n/(f.x+h+d),g=e/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,a=n,u=e,c=o.parent.children[0],s=o.m,f=a.m,l=u.m,h=c.m;u=jg(u),o=qg(o),u&&o;)c=qg(c),(a=jg(a)).a=n,(i=u.z+l-o.z-s+t(u._,o._))>0&&(Lg(Og(u,n,r),n,i),s+=i,f+=i),l+=u.m,s+=o.m,h+=c.m,f+=a.m;u&&!jg(a)&&(a.t=u,a.m+=l-f),o&&!qg(c)&&(c.t=o,c.m+=s-h,r=n)}return r}(n,i,n.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Ig(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(i-e)/t.value;++u<c;)(o=a[u]).x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*s}Rg.prototype=Object.create(tg.prototype);var Hg=(1+Math.sqrt(5))/2;function Fg(t,n,e,r,i,o){for(var a,u,c,s,f,l,h,d,p,g,y,v=[],m=n.children,b=0,_=0,x=m.length,w=n.value;b<x;){c=i-e,s=o-r;do{f=m[_++].value}while(!f&&_<x);for(l=h=f,y=f*f*(g=Math.max(s/c,c/s)/(w*t)),p=Math.max(h/y,y/l);_<x;++_){if(f+=u=m[_].value,u<l&&(l=u),u>h&&(h=u),y=f*f*g,(d=Math.max(h/y,y/l))>p){f-=u;break}p=d}v.push(a={value:f,dice:c<s,children:m.slice(b,_)}),a.dice?Ag(a,e,r,i,w?r+=s*f/w:o):Ig(a,e,r,w?e+=c*f/w:i,o),w-=f,b=_}return v}const Bg=function t(n){function e(t,e,r,i,o){Fg(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Hg);function Ug(){var t=Bg,n=!1,e=1,r=1,i=[0],o=vg,a=vg,u=vg,c=vg,s=vg;function f(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(Tg),t}function l(n){var e=i[n.depth],r=n.x0+e,f=n.y0+e,l=n.x1-e,h=n.y1-e;l<r&&(r=l=(r+l)/2),h<f&&(f=h=(f+h)/2),n.x0=r,n.y0=f,n.x1=l,n.y1=h,n.children&&(e=i[n.depth+1]=o(n)/2,r+=s(n)-e,f+=a(n)-e,(l-=u(n)-e)<r&&(r=l=(r+l)/2),(h-=c(n)-e)<f&&(f=h=(f+h)/2),t(n,r,f,l,h))}return f.round=function(t){return arguments.length?(n=!!t,f):n},f.size=function(t){return arguments.length?(e=+t[0],r=+t[1],f):[e,r]},f.tile=function(n){return arguments.length?(t=yg(n),f):t},f.padding=function(t){return arguments.length?f.paddingInner(t).paddingOuter(t):f.paddingInner()},f.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:mg(+t),f):o},f.paddingOuter=function(t){return arguments.length?f.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):f.paddingTop()},f.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:mg(+t),f):a},f.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:mg(+t),f):u},f.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:mg(+t),f):c},f.paddingLeft=function(t){return arguments.length?(s="function"==typeof t?t:mg(+t),f):s},f}function Yg(t,n,e,r,i){var o,a,u=t.children,c=u.length,s=new Array(c+1);for(s[0]=a=o=0;o<c;++o)s[o+1]=a+=u[o].value;!function t(n,e,r,i,o,a,c){if(n>=e-1){var f=u[n];return f.x0=i,f.y0=o,f.x1=a,void(f.y1=c)}for(var l=s[n],h=r/2+l,d=n+1,p=e-1;d<p;){var g=d+p>>>1;s[g]<h?d=g+1:p=g}h-s[d-1]<s[d]-h&&n+1<d&&--d;var y=s[d]-l,v=r-y;if(a-i>c-o){var m=r?(i*v+a*y)/r:a;t(n,d,y,i,o,m,c),t(d,e,v,m,o,a,c)}else{var b=r?(o*v+c*y)/r:c;t(n,d,y,i,o,a,b),t(d,e,v,i,b,a,c)}}(0,c,t.value,n,e,r,i)}function Wg(t,n,e,r,i){(1&t.depth?Ig:Ag)(t,n,e,r,i)}const $g=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,c,s,f,l=-1,h=a.length,d=t.value;++l<h;){for(c=(u=a[l]).children,s=u.value=0,f=c.length;s<f;++s)u.value+=c[s].value;u.dice?Ag(u,e,r,i,d?r+=(o-r)*u.value/d:o):Ig(u,e,r,d?e+=(i-e)*u.value/d:i,o),d-=u.value}else t._squarify=a=Fg(n,t,e,r,i,o),a.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Hg);function Xg(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function Vg(t,n){var e=vr(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}}function Gg(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Zg(t){return((t=Math.exp(t))+1/t)/2}const Qg=function t(n,e,r){function i(t,i){var o,a,u=t[0],c=t[1],s=t[2],f=i[0],l=i[1],h=i[2],d=f-u,p=l-c,g=d*d+p*p;if(g<1e-12)a=Math.log(h/s)/n,o=function(t){return[u+t*d,c+t*p,s*Math.exp(n*t*a)]};else{var y=Math.sqrt(g),v=(h*h-s*s+r*g)/(2*s*e*y),m=(h*h-s*s-r*g)/(2*h*e*y),b=Math.log(Math.sqrt(v*v+1)-v),_=Math.log(Math.sqrt(m*m+1)-m);a=(_-b)/n,o=function(t){var r,i=t*a,o=Zg(b),f=s/(e*y)*(o*(r=n*i+b,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[u+f*d,c+f*p,s*o/Zg(n*i+b)]}}return o.duration=1e3*a*n/Math.SQRT2,o}return i.rho=function(n){var e=Math.max(.001,+n),r=e*e;return t(e,r,r*r)},i}(Math.SQRT2,2,4);function Kg(t){return function(n,e){var r=t((n=sr(n)).h,(e=sr(e)).h),i=mr(n.s,e.s),o=mr(n.l,e.l),a=mr(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=a(t),n+""}}}const Jg=Kg(vr);var ty=Kg(mr);function ny(t,n){var e=mr((t=_a(t)).l,(n=_a(n)).l),r=mr(t.a,n.a),i=mr(t.b,n.b),o=mr(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function ey(t){return function(n,e){var r=t((n=ka(n)).h,(e=ka(e)).h),i=mr(n.c,e.c),o=mr(n.l,e.l),a=mr(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=a(t),n+""}}}const ry=ey(vr);var iy=ey(mr);function oy(t){return function n(e){function r(n,r){var i=t((n=Ha(n)).h,(r=Ha(r)).h),o=mr(n.s,r.s),a=mr(n.l,r.l),u=mr(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=a(Math.pow(t,e)),n.opacity=u(t),n+""}}return e=+e,r.gamma=n,r}(1)}const ay=oy(vr);var uy=oy(mr);function cy(t,n){void 0===n&&(n=t,t=qr);for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}function sy(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e}function fy(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2}function ly(t){for(var n,e,r=-1,i=t.length,o=0,a=0,u=t[i-1],c=0;++r<i;)n=u,u=t[r],c+=e=n[0]*u[1]-u[0]*n[1],o+=(n[0]+u[0])*e,a+=(n[1]+u[1])*e;return[o/(c*=3),a/c]}function hy(t,n){return t[0]-n[0]||t[1]-n[1]}function dy(t){const n=t.length,e=[0,1];let r,i=2;for(r=2;r<n;++r){for(;i>1&&(o=t[e[i-2]],a=t[e[i-1]],u=t[r],(a[0]-o[0])*(u[1]-o[1])-(a[1]-o[1])*(u[0]-o[0])<=0);)--i;e[i++]=r}var o,a,u;return e.slice(0,i)}function py(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(hy),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=dy(r),a=dy(i),u=a[0]===o[0],c=a[a.length-1]===o[o.length-1],s=[];for(n=o.length-1;n>=0;--n)s.push(t[r[o[n]][2]]);for(n=+u;n<a.length-c;++n)s.push(t[r[a[n]][2]]);return s}function gy(t,n){for(var e,r,i=t.length,o=t[i-1],a=n[0],u=n[1],c=o[0],s=o[1],f=!1,l=0;l<i;++l)e=(o=t[l])[0],(r=o[1])>u!=s>u&&a<(c-e)*(u-r)/(s-r)+e&&(f=!f),c=e,s=r;return f}function yy(t){for(var n,e,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r<i;)n=a,e=u,n-=a=(o=t[r])[0],e-=u=o[1],c+=Math.hypot(n,e);return c}const vy=Math.random,my=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(vy),by=function t(n){function e(t,e){return arguments.length<2&&(e=t,t=0),t=Math.floor(t),e=Math.floor(e)-t,function(){return Math.floor(n()*e+t)}}return e.source=t,e}(vy),_y=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(vy),xy=function t(n){var e=_y.source(n);function r(){var t=e.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(vy),wy=function t(n){function e(t){return(t=+t)<=0?()=>0:function(){for(var e=0,r=t;r>1;--r)e+=n();return e+r*n()}}return e.source=t,e}(vy),My=function t(n){var e=wy.source(n);function r(t){if(0==(t=+t))return n;var r=e(t);return function(){return r()/t}}return r.source=t,r}(vy),Ty=function t(n){function e(t){return function(){return-Math.log1p(-n())/t}}return e.source=t,e}(vy),Ay=function t(n){function e(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-n(),t)}}return e.source=t,e}(vy),Sy=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+t)}}return e.source=t,e}(vy),Ey=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-n())/t)})}return e.source=t,e}(vy),ky=function t(n){var e=_y.source(n)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-n())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),a=t<1?()=>Math.pow(n(),1/t):()=>1;return function(){do{do{var t=e(),u=1+o*t}while(u<=0);u*=u*u;var c=1-n()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-u+Math.log(u)));return i*u*a()*r}}return r.source=t,r}(vy),Ny=function t(n){var e=ky.source(n);function r(t,n){var r=e(t),i=e(n);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(vy),Cy=function t(n){var e=Ey.source(n),r=Ny.source(n);function i(t,n){return t=+t,(n=+n)>=1?()=>t:n<=0?()=>0:function(){for(var i=0,o=t,a=n;o*a>16&&o*(1-a)>16;){var u=Math.floor((o+1)*a),c=r(u,o-u+1)();c<=a?(i+=u,o-=u,a=(a-c)/(1-c)):(o=u-1,a/=c)}for(var s=a<.5,f=e(s?a:1-a),l=f(),h=0;l<=o;++h)l+=f();return i+(s?h:o-h)}}return i.source=t,i}(vy),Dy=function t(n){function e(t,e,r){var i;return 0==(t=+t)?i=t=>-Math.log(t):(t=1/t,i=n=>Math.pow(n,t)),e=null==e?0:+e,r=null==r?1:+r,function(){return e+r*i(-Math.log1p(-n()))}}return e.source=t,e}(vy),Py=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){return t+e*Math.tan(Math.PI*n())}}return e.source=t,e}(vy),qy=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){var r=n();return t+e*Math.log(r/(1-r))}}return e.source=t,e}(vy),jy=function t(n){var e=ky.source(n),r=Cy.source(n);function i(t){return function(){for(var i=0,o=t;o>16;){var a=Math.floor(.875*o),u=e(a)();if(u>o)return i+r(a-1,o/u)();i+=a,o-=u}for(var c=-Math.log1p(-n()),s=0;c<=o;++s)c-=Math.log1p(-n());return i+s}}return i.source=t,i}(vy),Ly=1/4294967296;function Oy(t=Math.random()){let n=0|(0<=t&&t<1?t/Ly:Math.abs(t));return()=>(n=1664525*n+1013904223|0,Ly*(n>>>0))}function Ry(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function zy(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}const Iy=Symbol("implicit");function Hy(){var t=new T,n=[],e=[],r=Iy;function i(i){let o=t.get(i);if(void 0===o){if(r!==Iy)return r;t.set(i,o=n.push(i)-1)}return e[o%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new T;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Hy(n,e).unknown(r)},Ry.apply(i,arguments),i}function Fy(){var t,n,e=Hy().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,u=!1,c=0,s=0,f=.5;function l(){var e=r().length,l=a<o,h=l?a:o,d=l?o:a;t=(d-h)/Math.max(1,e-c+2*s),u&&(t=Math.floor(t)),h+=(d-h-t*(e-c))*f,n=t*(1-c),u&&(h=Math.round(h),n=Math.round(n));var p=xt(e).map((function(n){return h+t*n}));return i(l?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),l()):r()},e.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,l()):[o,a]},e.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,l()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,l()):u},e.padding=function(t){return arguments.length?(c=Math.min(1,s=+t),l()):c},e.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),l()):c},e.paddingOuter=function(t){return arguments.length?(s=+t,l()):s},e.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),l()):f},e.copy=function(){return Fy(r(),[o,a]).round(u).paddingInner(c).paddingOuter(s).align(f)},Ry.apply(l(),arguments)}function By(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return By(n())},t}function Uy(){return By(Fy.apply(null,arguments).paddingInner(1))}function Yy(t){return+t}var Wy=[0,1];function $y(t){return t}function Xy(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function Vy(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=Xy(i,r),o=e(a,o)):(r=Xy(r,i),o=e(o,a)),function(t){return o(r(t))}}function Gy(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)i[a]=Xy(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=f(t,n,1,r)-1;return o[e](i[e](n))}}function Zy(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Qy(){var t,n,e,r,i,o,a=Wy,u=Wy,c=qr,s=$y;function f(){var t,n,e,c=Math.min(a.length,u.length);return s!==$y&&(t=a[0],n=a[c-1],t>n&&(e=t,t=n,n=e),s=function(e){return Math.max(t,Math.min(n,e))}),r=c>2?Gy:Vy,i=o=null,l}function l(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),u,c)))(t(s(n)))}return l.invert=function(e){return s(n((o||(o=r(u,a.map(t),kr)))(e)))},l.domain=function(t){return arguments.length?(a=Array.from(t,Yy),f()):a.slice()},l.range=function(t){return arguments.length?(u=Array.from(t),f()):u.slice()},l.rangeRound=function(t){return u=Array.from(t),c=Gg,f()},l.clamp=function(t){return arguments.length?(s=!!t||$y,f()):s!==$y},l.interpolate=function(t){return arguments.length?(c=t,f()):c},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,f()}}function Ky(){return Qy()($y,$y)}function Jy(t,n,e,r){var i,o=nt(t,n,e);switch((r=qs(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=$s(o,a))||(r.precision=i),Hs(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Xs(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Ws(o))||(r.precision=i-2*("%"===r.type))}return Is(r)}function tv(t){var n=t.domain;return t.ticks=function(t){var e=n();return J(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Jy(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),a=0,u=o.length-1,c=o[a],s=o[u],f=10;for(s<c&&(i=c,c=s,s=i,i=a,a=u,u=i);f-- >0;){if((i=tt(c,s,e))===r)return o[a]=c,o[u]=s,n(o);if(i>0)c=Math.floor(c/i)*i,s=Math.ceil(s/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,s=Math.floor(s*i)/i}r=i}return t},t}function nv(){var t=Ky();return t.copy=function(){return Zy(t,nv())},Ry.apply(t,arguments),tv(t)}function ev(t){var n;function e(t){return null==t||isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,Yy),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return ev(t).unknown(n)},t=arguments.length?Array.from(t,Yy):[0,1],tv(e)}function rv(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t}function iv(t){return Math.log(t)}function ov(t){return Math.exp(t)}function av(t){return-Math.log(-t)}function uv(t){return-Math.exp(-t)}function cv(t){return isFinite(t)?+("1e"+t):t<0?0:t}function sv(t){return function(n){return-t(-n)}}function fv(t){var n,e,r=t(iv,ov),i=r.domain,o=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}(o),e=function(t){return 10===t?cv:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}(o),i()[0]<0?(n=sv(n),e=sv(e),t(av,uv)):t(iv,ov),r}return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=function(t){var r,a=i(),u=a[0],c=a[a.length-1];(r=c<u)&&(h=u,u=c,c=h);var s,f,l,h=n(u),d=n(c),p=null==t?10:+t,g=[];if(!(o%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),u>0){for(;h<=d;++h)for(f=1,s=e(h);f<o;++f)if(!((l=s*f)<u)){if(l>c)break;g.push(l)}}else for(;h<=d;++h)for(f=o-1,s=e(h);f>=1;--f)if(!((l=s*f)<u)){if(l>c)break;g.push(l)}2*g.length<p&&(g=J(u,c,p))}else g=J(h,d,Math.min(d-h,p)).map(e);return r?g.reverse():g},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=Is(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/e(Math.round(n(t)));return r*o<o-.5&&(r*=o),r<=a?i(t):""}},r.nice=function(){return i(rv(i(),{floor:function(t){return e(Math.floor(n(t)))},ceil:function(t){return e(Math.ceil(n(t)))}}))},r}function lv(){var t=fv(Qy()).domain([1,10]);return t.copy=function(){return Zy(t,lv()).base(t.base())},Ry.apply(t,arguments),t}function hv(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function dv(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function pv(t){var n=1,e=t(hv(n),dv(n));return e.constant=function(e){return arguments.length?t(hv(n=+e),dv(n)):n},tv(e)}function gv(){var t=pv(Qy());return t.copy=function(){return Zy(t,gv()).constant(t.constant())},Ry.apply(t,arguments)}function yv(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function vv(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function mv(t){return t<0?-t*t:t*t}function bv(t){var n=t($y,$y),e=1;function r(){return 1===e?t($y,$y):.5===e?t(vv,mv):t(yv(e),yv(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},tv(n)}function _v(){var t=bv(Qy());return t.copy=function(){return Zy(t,_v()).exponent(t.exponent())},Ry.apply(t,arguments),t}function xv(){return _v.apply(null,arguments).exponent(.5)}function wv(t){return Math.sign(t)*t*t}function Mv(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Tv(){var t,n=Ky(),e=[0,1],r=!1;function i(e){var i=Mv(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(wv(t))},i.domain=function(t){return arguments.length?(n.domain(t),i):n.domain()},i.range=function(t){return arguments.length?(n.range((e=Array.from(t,Yy)).map(wv)),i):e.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(n.clamp(t),i):n.clamp()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Tv(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},Ry.apply(i,arguments),tv(i)}function Av(){var t,n=[],e=[],i=[];function o(){var t=0,r=Math.max(1,e.length);for(i=new Array(r-1);++t<r;)i[t-1]=ft(n,t/r);return a}function a(n){return null==n||isNaN(n=+n)?t:e[f(i,n)]}return a.invertExtent=function(t){var r=e.indexOf(t);return r<0?[NaN,NaN]:[r>0?i[r-1]:n[0],r<i.length?i[r]:n[n.length-1]]},a.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(r),o()},a.range=function(t){return arguments.length?(e=Array.from(t),o()):e.slice()},a.unknown=function(n){return arguments.length?(t=n,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return Av().domain(n).range(e).unknown(t)},Ry.apply(a,arguments)}function Sv(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[f(i,n,0,r)]:t}function u(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,u()):[n,e]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,u()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[n,i[0]]:a>=r?[i[r-1],e]:[i[a-1],i[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Sv().domain([n,e]).range(o).unknown(t)},Ry.apply(tv(a),arguments)}function Ev(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[f(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Ev().domain(n).range(e).unknown(t)},Ry.apply(i,arguments)}const kv=1e3,Nv=6e4,Cv=36e5,Dv=864e5,Pv=6048e5,qv=31536e6;var jv=new Date,Lv=new Date;function Ov(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var a,u=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a<e&&e<r);return u},i.filter=function(e){return Ov((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return jv.setTime(+n),Lv.setTime(+r),t(jv),t(Lv),Math.floor(e(jv,Lv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Rv=Ov((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Rv.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ov((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Rv:null};const zv=Rv;var Iv=Rv.range,Hv=Ov((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*kv)}),(function(t,n){return(n-t)/kv}),(function(t){return t.getUTCSeconds()}));const Fv=Hv;var Bv=Hv.range,Uv=Ov((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*kv)}),(function(t,n){t.setTime(+t+n*Nv)}),(function(t,n){return(n-t)/Nv}),(function(t){return t.getMinutes()}));const Yv=Uv;var Wv=Uv.range,$v=Ov((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*kv-t.getMinutes()*Nv)}),(function(t,n){t.setTime(+t+n*Cv)}),(function(t,n){return(n-t)/Cv}),(function(t){return t.getHours()}));const Xv=$v;var Vv=$v.range,Gv=Ov((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nv)/Dv),(t=>t.getDate()-1));const Zv=Gv;var Qv=Gv.range;function Kv(t){return Ov((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nv)/Pv}))}var Jv=Kv(0),tm=Kv(1),nm=Kv(2),em=Kv(3),rm=Kv(4),im=Kv(5),om=Kv(6),am=Jv.range,um=tm.range,cm=nm.range,sm=em.range,fm=rm.range,lm=im.range,hm=om.range,dm=Ov((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const pm=dm;var gm=dm.range,ym=Ov((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ym.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ov((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const vm=ym;var mm=ym.range,bm=Ov((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Nv)}),(function(t,n){return(n-t)/Nv}),(function(t){return t.getUTCMinutes()}));const _m=bm;var xm=bm.range,wm=Ov((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Cv)}),(function(t,n){return(n-t)/Cv}),(function(t){return t.getUTCHours()}));const Mm=wm;var Tm=wm.range,Am=Ov((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Dv}),(function(t){return t.getUTCDate()-1}));const Sm=Am;var Em=Am.range;function km(t){return Ov((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Pv}))}var Nm=km(0),Cm=km(1),Dm=km(2),Pm=km(3),qm=km(4),jm=km(5),Lm=km(6),Om=Nm.range,Rm=Cm.range,zm=Dm.range,Im=Pm.range,Hm=qm.range,Fm=jm.range,Bm=Lm.range,Um=Ov((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Ym=Um;var Wm=Um.range,$m=Ov((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));$m.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ov((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const Xm=$m;var Vm=$m.range;function Gm(t,n,e,r,o,a){const u=[[Fv,1,kv],[Fv,5,5e3],[Fv,15,15e3],[Fv,30,3e4],[a,1,Nv],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,Cv],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Dv],[r,2,1728e5],[e,1,Pv],[n,1,2592e6],[n,3,7776e6],[t,1,qv]];function c(n,e,r){const o=Math.abs(e-n)/r,a=i((([,,t])=>t)).right(u,o);if(a===u.length)return t.every(nt(n/qv,e/qv,r));if(0===a)return zv.every(Math.max(nt(n,e,r),1));const[c,s]=u[o/u[a-1][2]<u[a][2]/o?a-1:a];return c.every(s)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"==typeof e.range?e:c(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},c]}const[Zm,Qm]=Gm(Xm,Ym,Nm,Sm,Mm,_m),[Km,Jm]=Gm(vm,pm,Jv,Zv,Xv,Yv);function tb(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function nb(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function eb(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function rb(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=gb(i),f=yb(i),l=gb(o),h=yb(o),d=gb(a),p=yb(a),g=gb(u),y=yb(u),v=gb(c),m=yb(c),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Rb,e:Rb,f:Bb,g:Jb,G:n_,H:zb,I:Ib,j:Hb,L:Fb,m:Ub,M:Yb,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:T_,s:A_,S:Wb,u:$b,U:Xb,V:Gb,w:Zb,W:Qb,x:null,X:null,y:Kb,Y:t_,Z:e_,"%":M_},_={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:r_,e:r_,f:c_,g:b_,G:x_,H:i_,I:o_,j:a_,L:u_,m:s_,M:f_,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:T_,s:A_,S:l_,u:h_,U:d_,V:g_,w:y_,W:v_,x:null,X:null,y:m_,Y:__,Z:w_,"%":M_},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=m.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return T(t,n,e,r)},d:Eb,e:Eb,f:qb,g:Mb,G:wb,H:Nb,I:Nb,j:kb,L:Pb,m:Sb,M:Cb,p:function(t,n,e){var r=s.exec(n.slice(e));return r?(t.p=f.get(r[0].toLowerCase()),e+r[0].length):-1},q:Ab,Q:Lb,s:Ob,S:Db,u:mb,U:bb,V:_b,w:vb,W:xb,x:function(t,n,r){return T(t,e,n,r)},X:function(t,n,e){return T(t,r,n,e)},y:Mb,Y:wb,Z:Tb,"%":jb};function w(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++u<s;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(i=sb[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function M(t,n){return function(e){var r,i,o=eb(1900,void 0,1);if(T(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=nb(eb(o.y,0,1))).getUTCDay(),r=i>4||0===i?Cm.ceil(r):Cm(r),r=Sm.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=tb(eb(o.y,0,1))).getDay(),r=i>4||0===i?tm.ceil(r):tm(r),r=Zv.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?nb(eb(o.y,0,1)).getUTCDay():tb(eb(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,nb(o)):tb(o)}}function T(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a<u;){if(r>=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=x[i in sb?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),_.x=w(e,_),_.X=w(r,_),_.c=w(n,_),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",_);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var ib,ob,ab,ub,cb,sb={"-":"",_:" ",0:"0"},fb=/^\s*\d+/,lb=/^%/,hb=/[\\^$*+?|[\]().{}]/g;function db(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function pb(t){return t.replace(hb,"\\$&")}function gb(t){return new RegExp("^(?:"+t.map(pb).join("|")+")","i")}function yb(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function vb(t,n,e){var r=fb.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function mb(t,n,e){var r=fb.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function bb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function _b(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function xb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function wb(t,n,e){var r=fb.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Mb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Tb(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Ab(t,n,e){var r=fb.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Sb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Eb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function kb(t,n,e){var r=fb.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Nb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Cb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Db(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Pb(t,n,e){var r=fb.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function qb(t,n,e){var r=fb.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function jb(t,n,e){var r=lb.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Lb(t,n,e){var r=fb.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Ob(t,n,e){var r=fb.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Rb(t,n){return db(t.getDate(),n,2)}function zb(t,n){return db(t.getHours(),n,2)}function Ib(t,n){return db(t.getHours()%12||12,n,2)}function Hb(t,n){return db(1+Zv.count(vm(t),t),n,3)}function Fb(t,n){return db(t.getMilliseconds(),n,3)}function Bb(t,n){return Fb(t,n)+"000"}function Ub(t,n){return db(t.getMonth()+1,n,2)}function Yb(t,n){return db(t.getMinutes(),n,2)}function Wb(t,n){return db(t.getSeconds(),n,2)}function $b(t){var n=t.getDay();return 0===n?7:n}function Xb(t,n){return db(Jv.count(vm(t)-1,t),n,2)}function Vb(t){var n=t.getDay();return n>=4||0===n?rm(t):rm.ceil(t)}function Gb(t,n){return t=Vb(t),db(rm.count(vm(t),t)+(4===vm(t).getDay()),n,2)}function Zb(t){return t.getDay()}function Qb(t,n){return db(tm.count(vm(t)-1,t),n,2)}function Kb(t,n){return db(t.getFullYear()%100,n,2)}function Jb(t,n){return db((t=Vb(t)).getFullYear()%100,n,2)}function t_(t,n){return db(t.getFullYear()%1e4,n,4)}function n_(t,n){var e=t.getDay();return db((t=e>=4||0===e?rm(t):rm.ceil(t)).getFullYear()%1e4,n,4)}function e_(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+db(n/60|0,"0",2)+db(n%60,"0",2)}function r_(t,n){return db(t.getUTCDate(),n,2)}function i_(t,n){return db(t.getUTCHours(),n,2)}function o_(t,n){return db(t.getUTCHours()%12||12,n,2)}function a_(t,n){return db(1+Sm.count(Xm(t),t),n,3)}function u_(t,n){return db(t.getUTCMilliseconds(),n,3)}function c_(t,n){return u_(t,n)+"000"}function s_(t,n){return db(t.getUTCMonth()+1,n,2)}function f_(t,n){return db(t.getUTCMinutes(),n,2)}function l_(t,n){return db(t.getUTCSeconds(),n,2)}function h_(t){var n=t.getUTCDay();return 0===n?7:n}function d_(t,n){return db(Nm.count(Xm(t)-1,t),n,2)}function p_(t){var n=t.getUTCDay();return n>=4||0===n?qm(t):qm.ceil(t)}function g_(t,n){return t=p_(t),db(qm.count(Xm(t),t)+(4===Xm(t).getUTCDay()),n,2)}function y_(t){return t.getUTCDay()}function v_(t,n){return db(Cm.count(Xm(t)-1,t),n,2)}function m_(t,n){return db(t.getUTCFullYear()%100,n,2)}function b_(t,n){return db((t=p_(t)).getUTCFullYear()%100,n,2)}function __(t,n){return db(t.getUTCFullYear()%1e4,n,4)}function x_(t,n){var e=t.getUTCDay();return db((t=e>=4||0===e?qm(t):qm.ceil(t)).getUTCFullYear()%1e4,n,4)}function w_(){return"+0000"}function M_(){return"%"}function T_(t){return+t}function A_(t){return Math.floor(+t/1e3)}function S_(t){return ib=rb(t),ob=ib.format,ab=ib.parse,ub=ib.utcFormat,cb=ib.utcParse,ib}function E_(t){return new Date(t)}function k_(t){return t instanceof Date?+t:+new Date(+t)}function N_(t,n,e,r,i,o,a,u,c,s){var f=Ky(),l=f.invert,h=f.domain,d=s(".%L"),p=s(":%S"),g=s("%I:%M"),y=s("%I %p"),v=s("%a %d"),m=s("%b %d"),b=s("%B"),_=s("%Y");function x(t){return(c(t)<t?d:u(t)<t?p:a(t)<t?g:o(t)<t?y:r(t)<t?i(t)<t?v:m:e(t)<t?b:_)(t)}return f.invert=function(t){return new Date(l(t))},f.domain=function(t){return arguments.length?h(Array.from(t,k_)):h().map(E_)},f.ticks=function(n){var e=h();return t(e[0],e[e.length-1],null==n?10:n)},f.tickFormat=function(t,n){return null==n?x:s(n)},f.nice=function(t){var e=h();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?h(rv(e,t)):f},f.copy=function(){return Zy(f,N_(t,n,e,r,i,o,a,u,c,s))},f}function C_(){return Ry.apply(N_(Km,Jm,vm,pm,Jv,Zv,Xv,Yv,Fv,ob).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function D_(){return Ry.apply(N_(Zm,Qm,Xm,Ym,Nm,Sm,Mm,_m,Fv,ub).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function P_(){var t,n,e,r,i,o=0,a=1,u=$y,c=!1;function s(n){return null==n||isNaN(n=+n)?i:u(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}function f(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),s):[u(0),u(1)]}}return s.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),n=r(a=+a),e=t===n?0:1/(n-t),s):[o,a]},s.clamp=function(t){return arguments.length?(c=!!t,s):c},s.interpolator=function(t){return arguments.length?(u=t,s):u},s.range=f(qr),s.rangeRound=f(Gg),s.unknown=function(t){return arguments.length?(i=t,s):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),s}}function q_(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function j_(){var t=tv(P_()($y));return t.copy=function(){return q_(t,j_())},zy.apply(t,arguments)}function L_(){var t=fv(P_()).domain([1,10]);return t.copy=function(){return q_(t,L_()).base(t.base())},zy.apply(t,arguments)}function O_(){var t=pv(P_());return t.copy=function(){return q_(t,O_()).constant(t.constant())},zy.apply(t,arguments)}function R_(){var t=bv(P_());return t.copy=function(){return q_(t,R_()).exponent(t.exponent())},zy.apply(t,arguments)}function z_(){return R_.apply(null,arguments).exponent(.5)}function I_(){var t=[],n=$y;function e(e){if(null!=e&&!isNaN(e=+e))return n((f(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(r),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},e.quantiles=function(n){return Array.from({length:n+1},((e,r)=>st(t,r/n)))},e.copy=function(){return I_(n).domain(t)},zy.apply(e,arguments)}function H_(){var t,n,e,r,i,o,a,u=0,c=.5,s=1,f=1,l=$y,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(f*t<f*n?r:i),l(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,l=cy(t,[e,r,i]),d):[l(0),l(.5),l(1)]}}return d.domain=function(a){return arguments.length?([u,c,s]=a,t=o(u=+u),n=o(c=+c),e=o(s=+s),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),f=n<t?-1:1,d):[u,c,s]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(l=t,d):l},d.range=p(qr),d.rangeRound=p(Gg),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(u),n=a(c),e=a(s),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),f=n<t?-1:1,d}}function F_(){var t=tv(H_()($y));return t.copy=function(){return q_(t,F_())},zy.apply(t,arguments)}function B_(){var t=fv(H_()).domain([.1,1,10]);return t.copy=function(){return q_(t,B_()).base(t.base())},zy.apply(t,arguments)}function U_(){var t=pv(H_());return t.copy=function(){return q_(t,U_()).constant(t.constant())},zy.apply(t,arguments)}function Y_(){var t=bv(H_());return t.copy=function(){return q_(t,Y_()).exponent(t.exponent())},zy.apply(t,arguments)}function W_(){return Y_.apply(null,arguments).exponent(.5)}function $_(t){for(var n=t.length/6|0,e=new Array(n),r=0;r<n;)e[r]="#"+t.slice(6*r,6*++r);return e}S_({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const X_=$_("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),V_=$_("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),G_=$_("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Z_=$_("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Q_=$_("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),K_=$_("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),J_=$_("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),tx=$_("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),nx=$_("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),ex=$_("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),rx=t=>xr(t[t.length-1]);var ix=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($_);const ox=rx(ix);var ax=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($_);const ux=rx(ax);var cx=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($_);const sx=rx(cx);var fx=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($_);const lx=rx(fx);var hx=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($_);const dx=rx(hx);var px=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($_);const gx=rx(px);var yx=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($_);const vx=rx(yx);var mx=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($_);const bx=rx(mx);var _x=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($_);const xx=rx(_x);var wx=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($_);const Mx=rx(wx);var Tx=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($_);const Ax=rx(Tx);var Sx=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($_);const Ex=rx(Sx);var kx=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($_);const Nx=rx(kx);var Cx=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($_);const Dx=rx(Cx);var Px=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($_);const qx=rx(Px);var jx=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($_);const Lx=rx(jx);var Ox=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($_);const Rx=rx(Ox);var zx=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($_);const Ix=rx(zx);var Hx=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($_);const Fx=rx(Hx);var Bx=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($_);const Ux=rx(Bx);var Yx=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($_);const Wx=rx(Yx);var $x=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($_);const Xx=rx($x);var Vx=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($_);const Gx=rx(Vx);var Zx=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($_);const Qx=rx(Zx);var Kx=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($_);const Jx=rx(Kx);var tw=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($_);const nw=rx(tw);var ew=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($_);const rw=rx(ew);function iw(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const ow=uy(Ha(300,.5,0),Ha(-240,.5,1));var aw=uy(Ha(-100,.75,.35),Ha(80,1.5,.8)),uw=uy(Ha(260,.75,.35),Ha(80,1.5,.8)),cw=Ha();function sw(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return cw.h=360*t-100,cw.s=1.5-1.5*n,cw.l=.8-.9*n,cw+""}var fw=er(),lw=Math.PI/3,hw=2*Math.PI/3;function dw(t){var n;return t=(.5-t)*Math.PI,fw.r=255*(n=Math.sin(t))*n,fw.g=255*(n=Math.sin(t+lw))*n,fw.b=255*(n=Math.sin(t+hw))*n,fw+""}function pw(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function gw(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}const yw=gw($_("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var vw=gw($_("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),mw=gw($_("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),bw=gw($_("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function _w(t){return Ee(he(t).call(document.documentElement))}var xw=0;function ww(){return new Mw}function Mw(){this._="@"+(++xw).toString(36)}function Tw(t,n){return t.target&&(t=jr(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,(t=>Lr(t,n)))}function Aw(t){return"string"==typeof t?new Te([document.querySelectorAll(t)],[document.documentElement]):new Te([pn(t)],Me)}function Sw(t){return function(){return t}}Mw.prototype=ww.prototype={constructor:Mw,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Ew=Math.abs,kw=Math.atan2,Nw=Math.cos,Cw=Math.max,Dw=Math.min,Pw=Math.sin,qw=Math.sqrt,jw=1e-12,Lw=Math.PI,Ow=Lw/2,Rw=2*Lw;function zw(t){return t>1?0:t<-1?Lw:Math.acos(t)}function Iw(t){return t>=1?Ow:t<=-1?-Ow:Math.asin(t)}function Hw(t){return t.innerRadius}function Fw(t){return t.outerRadius}function Bw(t){return t.startAngle}function Uw(t){return t.endAngle}function Yw(t){return t&&t.padAngle}function Ww(t,n,e,r,i,o,a,u){var c=e-t,s=r-n,f=a-i,l=u-o,h=l*c-f*s;if(!(h*h<jw))return[t+(h=(f*(n-o)-l*(t-i))/h)*c,n+h*s]}function $w(t,n,e,r,i,o,a){var u=t-e,c=n-r,s=(a?o:-o)/qw(u*u+c*c),f=s*c,l=-s*u,h=t+f,d=n+l,p=e+f,g=r+l,y=(h+p)/2,v=(d+g)/2,m=p-h,b=g-d,_=m*m+b*b,x=i-o,w=h*g-p*d,M=(b<0?-1:1)*qw(Cw(0,x*x*_-w*w)),T=(w*b-m*M)/_,A=(-w*m-b*M)/_,S=(w*b+m*M)/_,E=(-w*m+b*M)/_,k=T-y,N=A-v,C=S-y,D=E-v;return k*k+N*N>C*C+D*D&&(T=S,A=E),{cx:T,cy:A,x01:-f,y01:-l,x11:T*(i/x-1),y11:A*(i/x-1)}}function Xw(){var t=Hw,n=Fw,e=Sw(0),r=null,i=Bw,o=Uw,a=Yw,u=null;function c(){var c,s,f=+t.apply(this,arguments),l=+n.apply(this,arguments),h=i.apply(this,arguments)-Ow,d=o.apply(this,arguments)-Ow,p=Ew(d-h),g=d>h;if(u||(u=c=Ko()),l<f&&(s=l,l=f,f=s),l>jw)if(p>Rw-jw)u.moveTo(l*Nw(h),l*Pw(h)),u.arc(0,0,l,h,d,!g),f>jw&&(u.moveTo(f*Nw(d),f*Pw(d)),u.arc(0,0,f,d,h,g));else{var y,v,m=h,b=d,_=h,x=d,w=p,M=p,T=a.apply(this,arguments)/2,A=T>jw&&(r?+r.apply(this,arguments):qw(f*f+l*l)),S=Dw(Ew(l-f)/2,+e.apply(this,arguments)),E=S,k=S;if(A>jw){var N=Iw(A/f*Pw(T)),C=Iw(A/l*Pw(T));(w-=2*N)>jw?(_+=N*=g?1:-1,x-=N):(w=0,_=x=(h+d)/2),(M-=2*C)>jw?(m+=C*=g?1:-1,b-=C):(M=0,m=b=(h+d)/2)}var D=l*Nw(m),P=l*Pw(m),q=f*Nw(x),j=f*Pw(x);if(S>jw){var L,O=l*Nw(b),R=l*Pw(b),z=f*Nw(_),I=f*Pw(_);if(p<Lw&&(L=Ww(D,P,z,I,O,R,q,j))){var H=D-L[0],F=P-L[1],B=O-L[0],U=R-L[1],Y=1/Pw(zw((H*B+F*U)/(qw(H*H+F*F)*qw(B*B+U*U)))/2),W=qw(L[0]*L[0]+L[1]*L[1]);E=Dw(S,(f-W)/(Y-1)),k=Dw(S,(l-W)/(Y+1))}}M>jw?k>jw?(y=$w(z,I,D,P,l,k,g),v=$w(O,R,q,j,l,k,g),u.moveTo(y.cx+y.x01,y.cy+y.y01),k<S?u.arc(y.cx,y.cy,k,kw(y.y01,y.x01),kw(v.y01,v.x01),!g):(u.arc(y.cx,y.cy,k,kw(y.y01,y.x01),kw(y.y11,y.x11),!g),u.arc(0,0,l,kw(y.cy+y.y11,y.cx+y.x11),kw(v.cy+v.y11,v.cx+v.x11),!g),u.arc(v.cx,v.cy,k,kw(v.y11,v.x11),kw(v.y01,v.x01),!g))):(u.moveTo(D,P),u.arc(0,0,l,m,b,!g)):u.moveTo(D,P),f>jw&&w>jw?E>jw?(y=$w(q,j,O,R,f,-E,g),v=$w(D,P,z,I,f,-E,g),u.lineTo(y.cx+y.x01,y.cy+y.y01),E<S?u.arc(y.cx,y.cy,E,kw(y.y01,y.x01),kw(v.y01,v.x01),!g):(u.arc(y.cx,y.cy,E,kw(y.y01,y.x01),kw(y.y11,y.x11),!g),u.arc(0,0,f,kw(y.cy+y.y11,y.cx+y.x11),kw(v.cy+v.y11,v.cx+v.x11),g),u.arc(v.cx,v.cy,E,kw(v.y11,v.x11),kw(v.y01,v.x01),!g))):u.arc(0,0,f,x,_,g):u.lineTo(q,j)}else u.moveTo(0,0);if(u.closePath(),c)return u=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Lw/2;return[Nw(r)*e,Pw(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Sw(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Sw(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Sw(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Sw(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Sw(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Sw(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Sw(+t),c):a},c.context=function(t){return arguments.length?(u=null==t?null:t,c):u},c}var Vw=Array.prototype.slice;function Gw(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Zw(t){this._context=t}function Qw(t){return new Zw(t)}function Kw(t){return t[0]}function Jw(t){return t[1]}function tM(t,n){var e=Sw(!0),r=null,i=Qw,o=null;function a(a){var u,c,s,f=(a=Gw(a)).length,l=!1;for(null==r&&(o=i(s=Ko())),u=0;u<=f;++u)!(u<f&&e(c=a[u],u,a))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(c,u,a),+n(c,u,a));if(s)return o=null,s+""||null}return t="function"==typeof t?t:void 0===t?Kw:Sw(t),n="function"==typeof n?n:void 0===n?Jw:Sw(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:Sw(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:Sw(+t),a):n},a.defined=function(t){return arguments.length?(e="function"==typeof t?t:Sw(!!t),a):e},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function nM(t,n,e){var r=null,i=Sw(!0),o=null,a=Qw,u=null;function c(c){var s,f,l,h,d,p=(c=Gw(c)).length,g=!1,y=new Array(p),v=new Array(p);for(null==o&&(u=a(d=Ko())),s=0;s<=p;++s){if(!(s<p&&i(h=c[s],s,c))===g)if(g=!g)f=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),l=s-1;l>=f;--l)u.point(y[l],v[l]);u.lineEnd(),u.areaEnd()}g&&(y[s]=+t(h,s,c),v[s]=+n(h,s,c),u.point(r?+r(h,s,c):y[s],e?+e(h,s,c):v[s]))}if(d)return u=null,d+""||null}function s(){return tM().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Kw:Sw(+t),n="function"==typeof n?n:Sw(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?Jw:Sw(+e),c.x=function(n){return arguments.length?(t="function"==typeof n?n:Sw(+n),r=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:Sw(+n),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Sw(+t),c):r},c.y=function(t){return arguments.length?(n="function"==typeof t?t:Sw(+t),e=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:Sw(+t),c):n},c.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Sw(+t),c):e},c.lineX0=c.lineY0=function(){return s().x(t).y(n)},c.lineY1=function(){return s().x(t).y(e)},c.lineX1=function(){return s().x(r).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Sw(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c}function eM(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function rM(t){return t}function iM(){var t=rM,n=eM,e=null,r=Sw(0),i=Sw(Rw),o=Sw(0);function a(a){var u,c,s,f,l,h=(a=Gw(a)).length,d=0,p=new Array(h),g=new Array(h),y=+r.apply(this,arguments),v=Math.min(Rw,Math.max(-Rw,i.apply(this,arguments)-y)),m=Math.min(Math.abs(v)/h,o.apply(this,arguments)),b=m*(v<0?-1:1);for(u=0;u<h;++u)(l=g[p[u]=u]=+t(a[u],u,a))>0&&(d+=l);for(null!=n?p.sort((function(t,e){return n(g[t],g[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),u=0,s=d?(v-h*b)/d:0;u<h;++u,y=f)c=p[u],f=y+((l=g[c])>0?l*s:0)+b,g[c]={data:a[c],index:u,value:l,startAngle:y,endAngle:f,padAngle:m};return g}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:Sw(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Sw(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Sw(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Sw(+t),a):o},a}Zw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var oM=uM(Qw);function aM(t){this._curve=t}function uM(t){function n(n){return new aM(t(n))}return n._curve=t,n}function cM(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(uM(t)):n()._curve},t}function sM(){return cM(tM().curve(oM))}function fM(){var t=nM().curve(oM),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return cM(e())},delete t.lineX0,t.lineEndAngle=function(){return cM(r())},delete t.lineX1,t.lineInnerRadius=function(){return cM(i())},delete t.lineY0,t.lineOuterRadius=function(){return cM(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(uM(t)):n()._curve},t}function lM(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}function hM(t){return t.source}function dM(t){return t.target}function pM(t){var n=hM,e=dM,r=Kw,i=Jw,o=null;function a(){var a,u=Vw.call(arguments),c=n.apply(this,u),s=e.apply(this,u);if(o||(o=a=Ko()),t(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=s,u)),+i.apply(this,u)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(n=t,a):n},a.target=function(t){return arguments.length?(e=t,a):e},a.x=function(t){return arguments.length?(r="function"==typeof t?t:Sw(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:Sw(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function gM(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function yM(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function vM(t,n,e,r,i){var o=lM(n,e),a=lM(n,e=(e+i)/2),u=lM(r,e),c=lM(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function mM(){return pM(gM)}function bM(){return pM(yM)}function _M(){var t=pM(vM);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}aM.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};const xM={draw:function(t,n){var e=Math.sqrt(n/Lw);t.moveTo(e,0),t.arc(0,0,e,0,Rw)}},wM={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};var MM=Math.sqrt(1/3),TM=2*MM;const AM={draw:function(t,n){var e=Math.sqrt(n/TM),r=e*MM;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}};var SM=Math.sin(Lw/10)/Math.sin(7*Lw/10),EM=Math.sin(Rw/10)*SM,kM=-Math.cos(Rw/10)*SM;const NM={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=EM*e,i=kM*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=Rw*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*e,-u*e),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},CM={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}};var DM=Math.sqrt(3);const PM={draw:function(t,n){var e=-Math.sqrt(n/(3*DM));t.moveTo(0,2*e),t.lineTo(-DM*e,-e),t.lineTo(DM*e,-e),t.closePath()}};var qM=-.5,jM=Math.sqrt(3)/2,LM=1/Math.sqrt(12),OM=3*(LM/2+1);const RM={draw:function(t,n){var e=Math.sqrt(n/OM),r=e/2,i=e*LM,o=r,a=e*LM+e,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(qM*r-jM*i,jM*r+qM*i),t.lineTo(qM*o-jM*a,jM*o+qM*a),t.lineTo(qM*u-jM*c,jM*u+qM*c),t.lineTo(qM*r+jM*i,qM*i-jM*r),t.lineTo(qM*o+jM*a,qM*a-jM*o),t.lineTo(qM*u+jM*c,qM*c-jM*u),t.closePath()}};var zM=[xM,wM,AM,CM,NM,PM,RM];function IM(t,n){var e=null;function r(){var r;if(e||(e=r=Ko()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:Sw(t||xM),n="function"==typeof n?n:Sw(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:Sw(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:Sw(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function HM(){}function FM(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function BM(t){this._context=t}function UM(t){return new BM(t)}function YM(t){this._context=t}function WM(t){return new YM(t)}function $M(t){this._context=t}function XM(t){return new $M(t)}BM.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:FM(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:FM(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},YM.prototype={areaStart:HM,areaEnd:HM,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)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:FM(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},$M.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:FM(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};class VM{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}function GM(t){return new VM(t,!0)}function ZM(t){return new VM(t,!1)}function QM(t,n){this._basis=new BM(t),this._beta=n}QM.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const KM=function t(n){function e(t){return 1===n?new BM(t):new QM(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function JM(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function tT(t,n){this._context=t,this._k=(1-n)/6}tT.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:JM(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:JM(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const nT=function t(n){function e(t){return new tT(t,n)}return e.tension=function(n){return t(+n)},e}(0);function eT(t,n){this._context=t,this._k=(1-n)/6}eT.prototype={areaStart:HM,areaEnd:HM,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)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:JM(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const rT=function t(n){function e(t){return new eT(t,n)}return e.tension=function(n){return t(+n)},e}(0);function iT(t,n){this._context=t,this._k=(1-n)/6}iT.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,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:JM(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const oT=function t(n){function e(t){return new iT(t,n)}return e.tension=function(n){return t(+n)},e}(0);function aT(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>jw){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>jw){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-n*t._l12_2a)/f,a=(a*s+t._y1*t._l23_2a-e*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function uT(t,n){this._context=t,this._alpha=n}uT.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)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:aT(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const cT=function t(n){function e(t){return n?new uT(t,n):new tT(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function sT(t,n){this._context=t,this._alpha=n}sT.prototype={areaStart:HM,areaEnd:HM,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)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:aT(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const fT=function t(n){function e(t){return n?new sT(t,n):new eT(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function lT(t,n){this._context=t,this._alpha=n}lT.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,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:aT(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const hT=function t(n){function e(t){return n?new lT(t,n):new iT(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function dT(t){this._context=t}function pT(t){return new dT(t)}function gT(t){return t<0?-1:1}function yT(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(gT(o)+gT(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function vT(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function mT(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function bT(t){this._context=t}function _T(t){this._context=new xT(t)}function xT(t){this._context=t}function wT(t){return new bT(t)}function MT(t){return new _T(t)}function TT(t){this._context=t}function AT(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function ST(t){return new TT(t)}function ET(t,n){this._context=t,this._t=n}function kT(t){return new ET(t,.5)}function NT(t){return new ET(t,0)}function CT(t){return new ET(t,1)}function DT(t,n){if((i=t.length)>1)for(var e,r,i,o=1,a=t[n[0]],u=a.length;o<i;++o)for(r=a,a=t[n[o]],e=0;e<u;++e)a[e][1]+=a[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function PT(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function qT(t,n){return t[n]}function jT(t){const n=[];return n.key=t,n}function LT(){var t=Sw([]),n=PT,e=DT,r=qT;function i(i){var o,a,u=Array.from(t.apply(this,arguments),jT),c=u.length,s=-1;for(const t of i)for(o=0,++s;o<c;++o)(u[o][s]=[0,+r(t,u[o].key,s,i)]).data=t;for(o=0,a=Gw(n(u));o<c;++o)u[a[o]].index=o;return e(u,a),u}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:Sw(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:Sw(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?PT:"function"==typeof t?t:Sw(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?DT:t,i):e},i}function OT(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}DT(t,n)}}function RT(t,n){if((u=t.length)>0)for(var e,r,i,o,a,u,c=0,s=t[n[0]].length;c<s;++c)for(o=a=0,e=0;e<u;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function zT(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<e;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}DT(t,n)}}function IT(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var u=0,c=0,s=0;u<i;++u){for(var f=t[n[u]],l=f[a][1]||0,h=(l-(f[a-1][1]||0))/2,d=0;d<u;++d){var p=t[n[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}c+=l,s+=h*l}e[a-1][1]+=e[a-1][0]=o,c&&(o-=s/c)}e[a-1][1]+=e[a-1][0]=o,DT(t,n)}}function HT(t){var n=t.map(FT);return PT(t).sort((function(t,e){return n[t]-n[e]}))}function FT(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function BT(t){var n=t.map(UT);return PT(t).sort((function(t,e){return n[t]-n[e]}))}function UT(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function YT(t){return BT(t).reverse()}function WT(t){var n,e,r=t.length,i=t.map(UT),o=HT(t),a=0,u=0,c=[],s=[];for(n=0;n<r;++n)e=o[n],a<u?(a+=i[e],c.push(e)):(u+=i[e],s.push(e));return s.reverse().concat(c)}function $T(t){return PT(t).reverse()}dT.prototype={areaStart:HM,areaEnd:HM,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},bT.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:mT(this,this._t0,vT(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,mT(this,vT(this,e=yT(this,t,n)),e);break;default:mT(this,this._t0,e=yT(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(_T.prototype=Object.create(bT.prototype)).point=function(t,n){bT.prototype.point.call(this,n,t)},xT.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},TT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=AT(t),i=AT(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},ET.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var XT="%Y-%m-%dT%H:%M:%S.%LZ",VT=Date.prototype.toISOString?function(t){return t.toISOString()}:ub(XT);const GT=VT;var ZT=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:cb(XT);const QT=ZT;function KT(t,n,e){var r=new Vr,i=n;return null==n?(r.restart(t,n,e),r):(r._restart=r.restart,r.restart=function(t,n,e){n=+n,e=null==e?$r():+e,r._restart((function o(a){a+=i,r._restart(o,i+=n,e),t(a)}),n,e)},r.restart(t,n,e),r)}const JT=t=>()=>t;function tA(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function nA(t,n,e){this.k=t,this.x=n,this.y=e}nA.prototype={constructor:nA,scale:function(t){return 1===t?this:new nA(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new nA(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eA=new nA(1,0,0);function rA(t){for(;!t.__zoom;)if(!(t=t.parentNode))return eA;return t.__zoom}function iA(t){t.stopImmediatePropagation()}function oA(t){t.preventDefault(),t.stopImmediatePropagation()}function aA(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function uA(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function cA(){return this.__zoom||eA}function sA(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function fA(){return navigator.maxTouchPoints||"ontouchstart"in this}function lA(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function hA(){var t,n,e,r=aA,i=uA,o=lA,a=sA,u=fA,c=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],f=250,l=Qg,h=ln("start","zoom","end"),d=500,p=0,g=10;function y(t){t.property("__zoom",cA).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",A).filter(u).on("touchstart.zoom",S).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,n){return(n=Math.max(c[0],Math.min(c[1],n)))===t.k?t:new nA(n,t.x,t.y)}function m(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new nA(t.k,r,i)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function _(t,n,e,r){t.on("start.zoom",(function(){x(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=x(t,o).event(r),u=i.apply(t,o),c=null==e?b(u):"function"==typeof e?e.apply(t,o):e,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),f=t.__zoom,h="function"==typeof n?n.apply(t,o):n,d=l(f.invert(c).concat(s/f.k),h.invert(c).concat(s/h.k));return function(t){if(1===t)t=h;else{var n=d(t),e=s/n[2];t=new nA(e,c[0]-n[0]*e,c[1]-n[1]*e)}a.zoom(null,t)}}))}function x(t,n,e){return!e&&t.__zooming||new w(t,n)}function w(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,n),this.taps=0}function M(t,...n){if(r.apply(this,arguments)){var e=x(this,n).event(t),i=this.__zoom,u=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),f=Lr(t);if(e.wheel)e.mouse[0][0]===f[0]&&e.mouse[0][1]===f[1]||(e.mouse[1]=i.invert(e.mouse[0]=f)),clearTimeout(e.wheel);else{if(i.k===u)return;e.mouse=[f,i.invert(f)],ui(this),e.start()}oA(t),e.wheel=setTimeout(l,150),e.zoom("mouse",o(m(v(i,u),e.mouse[0],e.mouse[1]),e.extent,s))}function l(){e.wheel=null,e.end()}}function T(t,...n){if(!e&&r.apply(this,arguments)){var i=t.currentTarget,a=x(this,n,!0).event(t),u=Ee(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",d,!0),c=Lr(t,i),f=t.clientX,l=t.clientY;Pe(t.view),iA(t),a.mouse=[c,this.__zoom.invert(c)],ui(this),a.start()}function h(t){if(oA(t),!a.moved){var n=t.clientX-f,e=t.clientY-l;a.moved=n*n+e*e>p}a.event(t).zoom("mouse",o(m(a.that.__zoom,a.mouse[0]=Lr(t,i),a.mouse[1]),a.extent,s))}function d(t){u.on("mousemove.zoom mouseup.zoom",null),qe(t.view,a.moved),oA(t),a.event(t).end()}}function A(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,a=Lr(t.changedTouches?t.changedTouches[0]:t,this),u=e.invert(a),c=e.k*(t.shiftKey?.5:2),l=o(m(v(e,c),a,u),i.apply(this,n),s);oA(t),f>0?Ee(this).transition().duration(f).call(_,l,a,t):Ee(this).call(y.transform,l,a,t)}}function S(e,...i){if(r.apply(this,arguments)){var o,a,u,c,s=e.touches,f=s.length,l=x(this,i,e.changedTouches.length===f).event(e);for(iA(e),a=0;a<f;++a)c=[c=Lr(u=s[a],this),this.__zoom.invert(c),u.identifier],l.touch0?l.touch1||l.touch0[2]===c[2]||(l.touch1=c,l.taps=0):(l.touch0=c,o=!0,l.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(l.taps<2&&(n=c[0],t=setTimeout((function(){t=null}),d)),ui(this),l.start())}}function E(t,...n){if(this.__zooming){var e,r,i,a,u=x(this,n).event(t),c=t.changedTouches,f=c.length;for(oA(t),e=0;e<f;++e)i=Lr(r=c[e],this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=i:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=i);if(r=u.that.__zoom,u.touch1){var l=u.touch0[0],h=u.touch0[1],d=u.touch1[0],p=u.touch1[1],g=(g=d[0]-l[0])*g+(g=d[1]-l[1])*g,y=(y=p[0]-h[0])*y+(y=p[1]-h[1])*y;r=v(r,Math.sqrt(g/y)),i=[(l[0]+d[0])/2,(l[1]+d[1])/2],a=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],a=u.touch0[1]}u.zoom("touch",o(m(r,i,a),u.extent,s))}}function k(t,...r){if(this.__zooming){var i,o,a=x(this,r).event(t),u=t.changedTouches,c=u.length;for(iA(t),e&&clearTimeout(e),e=setTimeout((function(){e=null}),d),i=0;i<c;++i)o=u[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=Lr(o,this),Math.hypot(n[0]-o[0],n[1]-o[1])<g)){var s=Ee(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}return y.transform=function(t,n,e,r){var i=t.selection?t.selection():t;i.property("__zoom",cA),t!==i?_(t,n,e,r):i.interrupt().each((function(){x(this,arguments).event(r).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()}))},y.scaleBy=function(t,n,e,r){y.scaleTo(t,(function(){var t=this.__zoom.k,e="function"==typeof n?n.apply(this,arguments):n;return t*e}),e,r)},y.scaleTo=function(t,n,e,r){y.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==e?b(t):"function"==typeof e?e.apply(this,arguments):e,u=r.invert(a),c="function"==typeof n?n.apply(this,arguments):n;return o(m(v(r,c),a,u),t,s)}),e,r)},y.translateBy=function(t,n,e,r){y.transform(t,(function(){return o(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),i.apply(this,arguments),s)}),null,r)},y.translateTo=function(t,n,e,r,a){y.transform(t,(function(){var t=i.apply(this,arguments),a=this.__zoom,u=null==r?b(t):"function"==typeof r?r.apply(this,arguments):r;return o(eA.translate(u[0],u[1]).scale(a.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,s)}),r,a)},w.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var n=Ee(this.that).datum();h.call(t,this.that,new tA(t,{sourceEvent:this.sourceEvent,target:y,type:t,transform:this.that.__zoom,dispatch:h}),n)}},y.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:JT(+t),y):a},y.filter=function(t){return arguments.length?(r="function"==typeof t?t:JT(!!t),y):r},y.touchable=function(t){return arguments.length?(u="function"==typeof t?t:JT(!!t),y):u},y.extent=function(t){return arguments.length?(i="function"==typeof t?t:JT([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),y):i},y.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],y):[c[0],c[1]]},y.translateExtent=function(t){return arguments.length?(s[0][0]=+t[0][0],s[1][0]=+t[1][0],s[0][1]=+t[0][1],s[1][1]=+t[1][1],y):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},y.constrain=function(t){return arguments.length?(o=t,y):o},y.duration=function(t){return arguments.length?(f=+t,y):f},y.interpolate=function(t){return arguments.length?(l=t,y):l},y.on=function(){var t=h.on.apply(h,arguments);return t===h?y:t},y.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,y):Math.sqrt(p)},y.tapDistance=function(t){return arguments.length?(g=+t,y):g},y}rA.prototype=nA.prototype}},n={};function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={exports:{}};return t[r].call(o.exports,o,o.exports,e),o.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e(80)})();