victory-voronoi-container 37.3.0 → 37.3.2
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.
- package/CHANGELOG.md +4 -0
- package/dist/victory-voronoi-container.js +3 -14
- package/dist/victory-voronoi-container.min.js +1 -1
- package/es/victory-voronoi-container.js +0 -1
- package/es/voronoi-helpers.js +0 -1
- package/lib/victory-voronoi-container.js +0 -2
- package/lib/voronoi-helpers.js +0 -1
- package/package.json +7 -11
- package/src/victory-voronoi-container.tsx +0 -1
- package/src/voronoi-helpers.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -36,7 +36,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36
36
|
/* harmony import */ var _voronoi_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./voronoi-helpers */ "./voronoi-helpers.ts");
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
/* eslint-disable react/no-multi-comp */
|
|
40
39
|
|
|
41
40
|
|
|
42
41
|
|
|
@@ -485,7 +484,6 @@ class VoronoiHelpersClass {
|
|
|
485
484
|
return this.getParentMutation([]).concat(...inactiveMutations);
|
|
486
485
|
};
|
|
487
486
|
handleMouseMove = (evt, targetProps) => {
|
|
488
|
-
// eslint-disable-line max-statements
|
|
489
487
|
const activePoints = targetProps.activePoints || [];
|
|
490
488
|
const parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_9__.getParentSVG(evt);
|
|
491
489
|
const mousePosition = victory_core__WEBPACK_IMPORTED_MODULE_9__.getSVGEventCoordinates(evt, parentSVG);
|
|
@@ -6122,9 +6120,9 @@ const VictoryContainer = initialProps => {
|
|
|
6122
6120
|
...style,
|
|
6123
6121
|
width: responsive ? style?.width : dimensions.width,
|
|
6124
6122
|
height: responsive ? style?.height : dimensions.height,
|
|
6125
|
-
pointerEvents: "none",
|
|
6126
|
-
touchAction: "none",
|
|
6127
|
-
position: "relative"
|
|
6123
|
+
pointerEvents: style?.pointerEvents ?? "none",
|
|
6124
|
+
touchAction: style?.touchAction ?? "none",
|
|
6125
|
+
position: style?.position ?? "relative"
|
|
6128
6126
|
},
|
|
6129
6127
|
"data-ouia-component-id": ouiaId,
|
|
6130
6128
|
"data-ouia-component-type": ouiaType,
|
|
@@ -8251,7 +8249,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8251
8249
|
|
|
8252
8250
|
|
|
8253
8251
|
|
|
8254
|
-
/* eslint-disable no-use-before-define */
|
|
8255
8252
|
|
|
8256
8253
|
|
|
8257
8254
|
|
|
@@ -8377,8 +8374,6 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
|
|
|
8377
8374
|
const isUnderMinY = underMin(minDomainY);
|
|
8378
8375
|
const isOverMaxX = overMax(maxDomainX);
|
|
8379
8376
|
const isOverMaxY = overMax(maxDomainY);
|
|
8380
|
-
|
|
8381
|
-
// eslint-disable-next-line complexity
|
|
8382
8377
|
return dataset.map(datum => {
|
|
8383
8378
|
let {
|
|
8384
8379
|
_x,
|
|
@@ -8489,7 +8484,6 @@ function formatData(dataset, props, expectedKeys) {
|
|
|
8489
8484
|
};
|
|
8490
8485
|
}
|
|
8491
8486
|
const data = preformattedData ? dataset : dataset.reduce((dataArr, datum, index) => {
|
|
8492
|
-
// eslint-disable-line complexity
|
|
8493
8487
|
const parsedDatum = parseDatum(datum);
|
|
8494
8488
|
const fallbackValues = {
|
|
8495
8489
|
x: index,
|
|
@@ -8690,7 +8684,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8690
8684
|
|
|
8691
8685
|
|
|
8692
8686
|
|
|
8693
|
-
/* eslint-disable no-use-before-define */
|
|
8694
8687
|
|
|
8695
8688
|
// Private Functions
|
|
8696
8689
|
|
|
@@ -9159,7 +9152,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9159
9152
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
9160
9153
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9161
9154
|
|
|
9162
|
-
/* eslint-disable no-use-before-define */
|
|
9163
9155
|
|
|
9164
9156
|
// Private Functions
|
|
9165
9157
|
|
|
@@ -9479,7 +9471,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9479
9471
|
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
9480
9472
|
/* harmony import */ var victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-scale */ "../../victory-vendor/es/d3-scale.js");
|
|
9481
9473
|
|
|
9482
|
-
/* eslint-disable no-use-before-define */
|
|
9483
9474
|
|
|
9484
9475
|
|
|
9485
9476
|
|
|
@@ -10748,8 +10739,6 @@ class VictoryTooltip extends (react__WEBPACK_IMPORTED_MODULE_4___default().Compo
|
|
|
10748
10739
|
y: Math.round(y + adjustments.y[0] - adjustments.y[1])
|
|
10749
10740
|
};
|
|
10750
10741
|
}
|
|
10751
|
-
|
|
10752
|
-
// eslint-disable-next-line complexity
|
|
10753
10742
|
getFlyoutCenter(props, dimensions) {
|
|
10754
10743
|
const {
|
|
10755
10744
|
x,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryVoronoiContainer=n(require("react")):t.VictoryVoronoiContainer=n(t.React)}(self,(function(t){return function(){var n={3644:function(t){t.exports=function(){"use strict";var t=Math.pow(2,-52),n=new Uint32Array(512),e=function(t){var n=t.length>>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;var 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()};function r(t,n,e,r){var i=t-e,o=n-r;return i*i+o*o}function i(t,n,e,r,i,o){var a=(r-n)*(i-t),u=(e-t)*(o-n);return Math.abs(a-u)>=33306690738754716e-32*Math.abs(a+u)?a-u:0}function o(t,n,e,r,o,a){return(i(o,a,t,n,e,r)||i(t,n,e,r,o,a)||i(e,r,o,a,t,n))<0}function a(t,n,e,r,i,o){var a=e-t,u=r-n,s=i-t,l=o-n,c=a*a+u*u,f=s*s+l*l,h=.5/(a*l-u*s),d=(l*c-u*f)*h,g=(a*f-s*c)*h;return d*d+g*g}function u(t,n,e,r){if(r-e<=20)for(var i=e+1;i<=r;i++){for(var o=t[i],a=n[o],l=i-1;l>=e&&n[t[l]]>a;)t[l+1]=t[l--];t[l+1]=o}else{var c=e+1,f=r;s(t,e+r>>1,c),n[t[e]]>n[t[r]]&&s(t,e,r),n[t[c]]>n[t[r]]&&s(t,c,r),n[t[e]]>n[t[c]]&&s(t,e,c);for(var h=t[c],d=n[h];;){do{c++}while(n[t[c]]<d);do{f--}while(n[t[f]]>d);if(f<c)break;s(t,c,f)}t[e+1]=t[f],t[f]=h,r-c+1>=f-e?(u(t,n,c,r),u(t,n,e,f-1)):(u(t,n,e,f-1),u(t,n,c,r))}}function s(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function l(t){return t[0]}function c(t){return t[1]}return e.from=function(t,n,r){void 0===n&&(n=l),void 0===r&&(r=c);for(var i=t.length,o=new Float64Array(2*i),a=0;a<i;a++){var u=t[a];o[2*a]=n(u),o[2*a+1]=r(u)}return new e(o)},e.prototype.update=function(){for(var n=this,e=n.coords,i=n._hullPrev,s=n._hullNext,l=n._hullTri,c=n._hullHash,f=e.length>>1,h=1/0,d=1/0,g=-1/0,p=-1/0,y=0;y<f;y++){var v=e[2*y],m=e[2*y+1];v<h&&(h=v),m<d&&(d=m),v>g&&(g=v),m>p&&(p=m),this._ids[y]=y}for(var b,x,w,M=(h+g)/2,k=(d+p)/2,A=1/0,O=0;O<f;O++){var S=r(M,k,e[2*O],e[2*O+1]);S<A&&(b=O,A=S)}var j=e[2*b],C=e[2*b+1];A=1/0;for(var _=0;_<f;_++)if(_!==b){var E=r(j,C,e[2*_],e[2*_+1]);E<A&&E>0&&(x=_,A=E)}for(var D=e[2*x],F=e[2*x+1],T=1/0,$=0;$<f;$++)if($!==b&&$!==x){var N=a(j,C,D,F,e[2*$],e[2*$+1]);N<T&&(w=$,T=N)}var L=e[2*w],P=e[2*w+1];if(T===1/0){for(var z=0;z<f;z++)this._dists[z]=e[2*z]-e[0]||e[2*z+1]-e[1];u(this._ids,this._dists,0,f-1);for(var U=new Uint32Array(f),W=0,H=0,B=-1/0;H<f;H++){var I=this._ids[H];this._dists[I]>B&&(U[W++]=I,B=this._dists[I])}return this.hull=U.subarray(0,W),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(o(j,C,D,F,L,P)){var R=x,q=D,Y=F;x=w,D=L,F=P,w=R,L=q,P=Y}var V=function(t,n,e,r,i,o){var a=e-t,u=r-n,s=i-t,l=o-n,c=a*a+u*u,f=s*s+l*l,h=.5/(a*l-u*s);return{x:t+(l*c-u*f)*h,y:n+(a*f-s*c)*h}}(j,C,D,F,L,P);this._cx=V.x,this._cy=V.y;for(var K=0;K<f;K++)this._dists[K]=r(e[2*K],e[2*K+1],V.x,V.y);u(this._ids,this._dists,0,f-1),this._hullStart=b;var Z=3;s[b]=i[w]=x,s[x]=i[b]=w,s[w]=i[x]=b,l[b]=0,l[x]=1,l[w]=2,c.fill(-1),c[this._hashKey(j,C)]=b,c[this._hashKey(D,F)]=x,c[this._hashKey(L,P)]=w,this.trianglesLen=0,this._addTriangle(b,x,w,-1,-1,-1);for(var X=0,G=void 0,Q=void 0;X<this._ids.length;X++){var J=this._ids[X],tt=e[2*J],nt=e[2*J+1];if(!(X>0&&Math.abs(tt-G)<=t&&Math.abs(nt-Q)<=t)&&(G=tt,Q=nt,J!==b&&J!==x&&J!==w)){for(var et=0,rt=0,it=this._hashKey(tt,nt);rt<this._hashSize&&(-1===(et=c[(it+rt)%this._hashSize])||et===s[et]);rt++);for(var ot=et=i[et],at=void 0;at=s[ot],!o(tt,nt,e[2*ot],e[2*ot+1],e[2*at],e[2*at+1]);)if((ot=at)===et){ot=-1;break}if(-1!==ot){var ut=this._addTriangle(ot,J,s[ot],-1,-1,l[ot]);l[J]=this._legalize(ut+2),l[ot]=ut,Z++;for(var st=s[ot];at=s[st],o(tt,nt,e[2*st],e[2*st+1],e[2*at],e[2*at+1]);)ut=this._addTriangle(st,J,at,l[J],-1,l[st]),l[J]=this._legalize(ut+2),s[st]=st,Z--,st=at;if(ot===et)for(;o(tt,nt,e[2*(at=i[ot])],e[2*at+1],e[2*ot],e[2*ot+1]);)ut=this._addTriangle(at,J,ot,-1,l[ot],l[at]),this._legalize(ut+2),l[at]=ut,s[ot]=ot,Z--,ot=at;this._hullStart=i[J]=ot,s[ot]=i[st]=J,s[J]=st,c[this._hashKey(tt,nt)]=J,c[this._hashKey(e[2*ot],e[2*ot+1])]=ot}}}this.hull=new Uint32Array(Z);for(var lt=0,ct=this._hullStart;lt<Z;lt++)this.hull[lt]=ct,ct=s[ct];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},e.prototype._hashKey=function(t,n){return Math.floor((e=t-this._cx,r=n-this._cy,i=e/(Math.abs(e)+Math.abs(r)),(r>0?3-i:1+i)/4*this._hashSize))%this._hashSize;var e,r,i},e.prototype._legalize=function(t){for(var e=this,r=e._triangles,i=e._halfedges,o=e.coords,a=0,u=0;;){var s=i[t],l=t-t%3;if(u=l+(t+2)%3,-1!==s){var c=s-s%3,f=l+(t+1)%3,h=c+(s+2)%3,d=r[u],g=r[t],p=r[f],y=r[h];if(x=o[2*d],w=o[2*d+1],M=o[2*g],k=o[2*g+1],A=o[2*p],O=o[2*p+1],S=o[2*y],j=o[2*y+1],C=void 0,_=void 0,E=void 0,D=void 0,F=void 0,T=void 0,$=void 0,N=void 0,(C=x-S)*((D=k-j)*(N=(F=A-S)*F+(T=O-j)*T)-($=(E=M-S)*E+D*D)*T)-(_=w-j)*(E*N-$*F)+(C*C+_*_)*(E*T-D*F)<0){r[t]=y,r[s]=d;var v=i[h];if(-1===v){var m=this._hullStart;do{if(this._hullTri[m]===h){this._hullTri[m]=t;break}m=this._hullPrev[m]}while(m!==this._hullStart)}this._link(t,v),this._link(s,i[u]),this._link(u,h);var b=c+(s+1)%3;a<n.length&&(n[a++]=b)}else{if(0===a)break;t=n[--a]}}else{if(0===a)break;t=n[--a]}}var x,w,M,k,A,O,S,j,C,_,E,D,F,T,$,N;return u},e.prototype._link=function(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)},e.prototype._addTriangle=function(t,n,e,r,i,o){var 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},e}()},6898:function(t,n,e){"use strict";n.Z=void 0;var r,i=(r=e(3644))&&r.__esModule?r:{default:r};function o(t){return t[0]}function a(t){return t[1]}function u(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}var s=function(){function t(t){var n=new i.default(t);this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=n.coords,this._init(n)}var n=t.prototype;return n._init=function(t){var n=t,e=this.points;if(n.hull&&n.hull.length>2&&function(t){for(var n=t.triangles,e=t.coords,r=0;r<n.length;r+=3){var i=2*n[r],o=2*n[r+1],a=2*n[r+2];if((e[a]-e[i])*(e[o+1]-e[i+1])-(e[o]-e[i])*(e[a+1]-e[i+1])>1e-10)return!1}return!0}(n)){this.collinear=Int32Array.from({length:e.length/2},(function(t,n){return n})).sort((function(t,n){return e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]}));for(var r=this.collinear[0],o=this.collinear[this.collinear.length-1],a=[e[2*r],e[2*r+1],e[2*o],e[2*o+1]],s=1e-8*Math.sqrt(Math.pow(a[3]-a[1],2)+Math.pow(a[2]-a[0],2)),l=0,c=e.length/2;l<c;++l){var f=u(e[2*l],e[2*l+1],s);e[2*l]=f[0],e[2*l+1]=f[1]}t=new i.default(e)}for(var h=this.halfedges=t.halfedges,d=this.hull=t.hull,g=this.triangles=t.triangles,p=this.inedges.fill(-1),y=this._hullIndex.fill(-1),v=0,m=h.length;v<m;++v){var b=g[v%3==2?v-2:v+1];-1!==h[v]&&-1!==p[b]||(p[b]=v)}for(var x=0,w=d.length;x<w;++x)y[d[x]]=x;d.length<=2&&d.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=d[0],this.triangles[1]=d[1],this.triangles[2]=d[1],p[d[0]]=1,2===d.length&&(p[d[1]]=0))},n.neighbors=function(t){var n=[],e=this.inedges,r=this.hull,i=this._hullIndex,o=this.halfedges,a=this.triangles,u=e[t];if(-1===u)return n;var s=u,l=-1;do{if(l=a[s],n.push(l),a[s=s%3==2?s-2:s+1]!==t)break;if(-1===(s=o[s])){var c=r[(i[t]+1)%r.length];c!==l&&n.push(c);break}}while(s!==u);return n},n.find=function(t,n,e){if(void 0===e&&(e=0),(t=+t)!=t||(n=+n)!=n)return-1;for(var r,i=e;(r=this._step(e,t,n))>=0&&r!==e&&r!==i;)e=r;return r},n._step=function(t,n,e){var r=this.inedges,i=this.points;if(-1===r[t]||!i.length)return(t+1)%(i.length>>1);var o=t,a=Math.pow(n-i[2*t],2)+Math.pow(e-i[2*t+1],2),u=this.neighbors(t),s=Array.isArray(u),l=0;for(u=s?u:u[Symbol.iterator]();;){var c;if(s){if(l>=u.length)break;c=u[l++]}else{if((l=u.next()).done)break;c=l.value}var f=c,h=Math.pow(n-i[2*f],2)+Math.pow(e-i[2*f+1],2);h<a&&(a=h,o=f)}return o},t}();n.Z=s,s.from=function(t,n,e,r){return void 0===n&&(n=o),void 0===e&&(e=a),new s(function(t,n,e,r){for(var i=t.length,o=new Float64Array(2*i),a=0;a<i;++a){var u=t[a];o[2*a]=n.call(r,u,a,t),o[2*a+1]=e.call(r,u,a,t)}return o}(t,n,e,r))}},503:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),u=e(8541);function s(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=u,t.exports=s},3273:function(t,n,e){var r=e(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),u=e(8541);function s(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=u,t.exports=s},2596:function(t,n,e){var r=e(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},5510:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9955:function(t){t.exports=function(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}},8644:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},9559:function(t){t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},1634:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},4132:function(t,n,e){var r=e(8347),i=e(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];o.call(t,n)&&i(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3162:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},8347:function(t,n,e){var r=e(5525);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},6457:function(t,n,e){var r=e(9559),i=e(3608);t.exports=function t(n,e,o,a,u){var s=-1,l=n.length;for(o||(o=i),u||(u=[]);++s<l;){var c=n[s];e>0&&o(c)?e>1?t(c,e-1,o,a,u):r(u,c):a||(u[u.length]=c)}return u}},4432:function(t,n,e){var r=e(9026),i=e(3110);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},563:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},6776:function(t){t.exports=function(t,n){return null!=t&&n in Object(t)}},6123:function(t){t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},9070:function(t,n,e){var r=e(7028),i=e(3474);t.exports=function t(n,e,o,a,u){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,u))}},7028:function(t,n,e){var r=e(8708),i=e(8705),o=e(2813),a=e(6682),u=e(9667),s=e(163),l=e(4801),c=e(4289),f="[object Arguments]",h="[object Array]",d="[object Object]",g=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,p,y,v){var m=s(t),b=s(n),x=m?h:u(t),w=b?h:u(n),M=(x=x==f?d:x)==d,k=(w=w==f?d:w)==d,A=x==w;if(A&&l(t)){if(!l(n))return!1;m=!0,M=!1}if(A&&!M)return v||(v=new r),m||c(t)?i(t,n,e,p,y,v):o(t,n,x,e,p,y,v);if(!(1&e)){var O=M&&g.call(t,"__wrapped__"),S=k&&g.call(n,"__wrapped__");if(O||S){var j=O?t.value():t,C=S?n.value():n;return v||(v=new r),y(j,C,e,p,v)}}return!!A&&(v||(v=new r),a(t,n,e,p,y,v))}},9548:function(t,n,e){var r=e(8708),i=e(9070);t.exports=function(t,n,e,o){var a=e.length,u=a,s=!o;if(null==t)return!u;for(t=Object(t);a--;){var l=e[a];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var c=(l=e[a])[0],f=t[c],h=l[1];if(s&&l[2]){if(void 0===f&&!(c in t))return!1}else{var d=new r;if(o)var g=o(f,h,c,t,n,d);if(!(void 0===g?i(h,f,3,o,d):g))return!1}}return!0}},2229:function(t,n,e){var r=e(563),i=e(3474);t.exports=function(t){return i(t)&&"[object RegExp]"==r(t)}},3472:function(t,n,e){var r=e(758),i=e(5223),o=e(5346),a=e(163),u=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):u(t)}},7190:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},758:function(t,n,e){var r=e(9548),i=e(597),o=e(6878);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:function(t,n,e){var r=e(9070),i=e(9201),o=e(5066),a=e(726),u=e(5385),s=e(6878),l=e(3110);t.exports=function(t,n){return a(t)&&u(n)?s(l(t),n):function(e){var a=i(e,t);return void 0===a&&a===n?o(e,t):r(n,a,3)}}},8245:function(t,n,e){var r=e(8644),i=e(4432),o=e(3472),a=e(383),u=e(9521),s=e(9110),l=e(9409),c=e(5346),f=e(163);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return f(t)?function(n){return i(n,1===t.length?t[0]:t)}:t})):[c];var h=-1;n=r(n,s(o));var d=a(t,(function(t,e,i){return{criteria:r(n,(function(n){return n(t)})),index:++h,value:t}}));return u(d,(function(t,n){return l(t,n,e)}))}},5436:function(t,n,e){var r=e(6371),i=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},6371:function(t,n,e){var r=e(4432),i=e(6539),o=e(9026);t.exports=function(t,n,e){for(var a=-1,u=n.length,s={};++a<u;){var l=n[a],c=r(t,l);e(c,l)&&i(s,o(l,t),c)}return s}},1600:function(t){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},3301:function(t,n,e){var r=e(4432);t.exports=function(t){return function(n){return r(n,t)}}},6317:function(t,n,e){var r=e(5346),i=e(4280),o=e(201);t.exports=function(t,n){return o(i(t,n,r),t+"")}},6539:function(t,n,e){var r=e(4132),i=e(9026),o=e(9099),a=e(7709),u=e(3110);t.exports=function(t,n,e,s){if(!a(t))return t;for(var l=-1,c=(n=i(n,t)).length,f=c-1,h=t;null!=h&&++l<c;){var d=u(n[l]),g=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(l!=f){var p=h[d];void 0===(g=s?s(p,d,h):void 0)&&(g=a(p)?p:o(n[l+1])?[]:{})}r(h,d,g),h=h[d]}return t}},9521:function(t){t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},6316:function(t,n,e){var r=e(2596),i=e(8644),o=e(163),a=e(1995),u=r?r.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(o(n))return i(n,t)+"";if(a(n))return s?s.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},9110:function(t){t.exports=function(t){return function(n){return t(n)}}},946:function(t,n,e){var r=e(3273),i=e(5510),o=e(9955),a=e(9914),u=e(6602),s=e(6226);t.exports=function(t,n,e){var l=-1,c=i,f=t.length,h=!0,d=[],g=d;if(e)h=!1,c=o;else if(f>=200){var p=n?null:u(t);if(p)return s(p);h=!1,c=a,g=new r}else g=n?[]:d;t:for(;++l<f;){var y=t[l],v=n?n(y):y;if(y=e||0!==y?y:0,h&&v==v){for(var m=g.length;m--;)if(g[m]===v)continue t;n&&g.push(v),d.push(y)}else c(g,v,e)||(g!==d&&g.push(v),d.push(y))}return d}},9914:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9026:function(t,n,e){var r=e(163),i=e(726),o=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(a(t))}},522:function(t,n,e){var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,i=null===t,o=t==t,a=r(t),u=void 0!==n,s=null===n,l=n==n,c=r(n);if(!s&&!c&&!a&&t>n||a&&u&&l&&!s&&!c||i&&u&&l||!e&&l||!o)return 1;if(!i&&!a&&!c&&t<n||c&&e&&o&&!i&&!a||s&&e&&o||!u&&o||!l)return-1}return 0}},9409:function(t,n,e){var r=e(522);t.exports=function(t,n,e){for(var i=-1,o=t.criteria,a=n.criteria,u=o.length,s=e.length;++i<u;){var l=r(o[i],a[i]);if(l)return i>=s?l:l*("desc"==e[i]?-1:1)}return t.index-n.index}},6602:function(t){t.exports=function(){}},5525:function(t,n,e){var r=e(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,n,e){var r=e(3273),i=e(1634),o=e(9914);t.exports=function(t,n,e,a,u,s){var l=1&e,c=t.length,f=n.length;if(c!=f&&!(l&&f>c))return!1;var h=s.get(t),d=s.get(n);if(h&&d)return h==n&&d==t;var g=-1,p=!0,y=2&e?new r:void 0;for(s.set(t,n),s.set(n,t);++g<c;){var v=t[g],m=n[g];if(a)var b=l?a(m,v,g,n,t,s):a(v,m,g,t,n,s);if(void 0!==b){if(b)continue;p=!1;break}if(y){if(!i(n,(function(t,n){if(!o(y,n)&&(v===t||u(v,t,e,a,s)))return y.push(n)}))){p=!1;break}}else if(v!==m&&!u(v,m,e,a,s)){p=!1;break}}return s.delete(t),s.delete(n),p}},2813:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:function(t,n,e){var r=e(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,a,u){var s=1&e,l=r(t),c=l.length;if(c!=r(n).length&&!s)return!1;for(var f=c;f--;){var h=l[f];if(!(s?h in n:i.call(n,h)))return!1}var d=u.get(t),g=u.get(n);if(d&&g)return d==n&&g==t;var p=!0;u.set(t,n),u.set(n,t);for(var y=s;++f<c;){var v=t[h=l[f]],m=n[h];if(o)var b=s?o(m,v,h,n,t,u):o(v,m,h,t,n,u);if(!(void 0===b?v===m||a(v,m,e,o,u):b)){p=!1;break}y||(y="constructor"==h)}if(p&&!y){var x=t.constructor,w=n.constructor;x==w||!("constructor"in t)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(p=!1)}return u.delete(t),u.delete(n),p}},5557:function(t,n,e){var r=e(2645),i=e(4280),o=e(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,n,e){var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},8143:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},7271:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},597:function(t,n,e){var r=e(5385),i=e(7747);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],a=t[o];n[e]=[o,a,r(a)]}return n}},3743:function(t){t.exports=function(t,n){return null==t?void 0:t[n]}},9817:function(t,n,e){var r=e(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},3096:function(t,n,e){var r=e(9026),i=e(5075),o=e(163),a=e(9099),u=e(8454),s=e(3110);t.exports=function(t,n,e){for(var l=-1,c=(n=r(n,t)).length,f=!1;++l<c;){var h=s(n[l]);if(!(f=null!=t&&e(t,h)))break;t=t[h]}return f||++l!=c?f:!!(c=null==t?0:t.length)&&u(c)&&a(h,c)&&(o(t)||i(t))}},3608:function(t,n,e){var r=e(2596),i=e(5075),o=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},8286:function(t){t.exports=function(){return!1}},726:function(t,n,e){var r=e(163),i=e(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=n&&t in Object(n)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,n,e){var r=e(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,n,e){var r=e(3162),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},4859:function(t,n,e){var r=e(3162);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},4073:function(t,n,e){var r=e(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,n,e){var r=e(3162);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},6878:function(t){t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},2453:function(t){t.exports=function(t){return t}},2348:function(t,n,e){t=e.nmd(t);var r=e(2117),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,u=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},5125:function(t){t.exports=function(t,n){return function(e){return t(n(e))}}},4280:function(t,n,e){var r=e(6082),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,a=-1,u=i(o.length-n,0),s=Array(u);++a<u;)s[a]=o[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=o[a];return l[n]=e(s),r(t,this,l)}}},2373:function(t,n,e){var r=e(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6226:function(t){t.exports=function(){return[]}},201:function(t){t.exports=function(t){return t}},7801:function(t,n,e){var r=e(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=a},3110:function(t,n,e){var r=e(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},5034:function(t,n,e){var r=e(7709),i=e(6987),o=e(5812),a=Math.max,u=Math.min;t.exports=function(t,n,e){var s,l,c,f,h,d,g=0,p=!1,y=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(n){var e=s,r=l;return s=l=void 0,g=n,f=t.apply(r,e)}function b(t){return g=t,h=setTimeout(w,n),p?m(t):f}function x(t){var e=t-d;return void 0===d||e>=n||e<0||y&&t-g>=c}function w(){var t=i();if(x(t))return M(t);h=setTimeout(w,function(t){var e=n-(t-d);return y?u(e,c-(t-g)):e}(t))}function M(t){return h=void 0,v&&s?m(t):(s=l=void 0,f)}function k(){var t=i(),e=x(t);if(s=arguments,l=this,d=t,e){if(void 0===h)return b(d);if(y)return clearTimeout(h),h=setTimeout(w,n),m(d)}return void 0===h&&(h=setTimeout(w,n)),f}return n=o(n)||0,r(e)&&(p=!!e.leading,c=(y="maxWait"in e)?a(o(e.maxWait)||0,n):c,v="trailing"in e?!!e.trailing:v),k.cancel=function(){void 0!==h&&clearTimeout(h),g=0,s=d=l=h=void 0},k.flush=function(){return void 0===h?f:M(i())},k}},1893:function(t,n,e){var r=e(6317),i=e(788),o=e(8286),a=e(8855),u=Object.prototype,s=u.hasOwnProperty,l=r((function(t,n){t=Object(t);var e=-1,r=n.length,l=r>2?n[2]:void 0;for(l&&o(n[0],n[1],l)&&(r=1);++e<r;)for(var c=n[e],f=a(c),h=-1,d=f.length;++h<d;){var g=f[h],p=t[g];(void 0===p||i(p,u[g])&&!s.call(t,g))&&(t[g]=c[g])}return t}));t.exports=l},788:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},2645:function(t,n,e){var r=e(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9201:function(t,n,e){var r=e(4432);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},5066:function(t,n,e){var r=e(6776),i=e(3096);t.exports=function(t,n){return null!=t&&i(t,n,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var n=Array.isArray;t.exports=n},981:function(t,n,e){var r=e(9642),i=e(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4155:function(t,n,e){var r=e(7190),i=e(9667),o=e(5075),a=e(163),u=e(981),s=e(4801),l=e(5782),c=e(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||c(t)||o(t)))return!t.length;var n=i(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(l(t))return!r(t).length;for(var e in t)if(f.call(t,e))return!1;return!0}},8254:function(t,n,e){var r=e(9070);t.exports=function(t,n){return r(t,n)}},9642:function(t,n,e){var r=e(563),i=e(7709);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,n,e){var r=e(563),i=e(9817),o=e(3474),a=Function.prototype,u=Object.prototype,s=a.toString,l=u.hasOwnProperty,c=s.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=l.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&s.call(e)==c}},5395:function(t,n,e){var r=e(2229),i=e(9110),o=e(2348),a=o&&o.isRegExp,u=a?i(a):r;t.exports=u},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},8999:function(t){t.exports=function(t){return void 0===t}},7747:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},1594:function(t,n,e){var r=e(503);function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return e.cache=o.set(i,a)||o,a};return e.cache=new(i.Cache||r),e}i.Cache=r,t.exports=i},6051:function(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}},6987:function(t,n,e){var r=e(2373);t.exports=function(){return r.Date.now()}},1616:function(t,n,e){var r=e(3472),i=e(6051),o=e(4912);t.exports=function(t,n){return o(t,i(r(n)))}},4143:function(t,n,e){var r=e(8245),i=e(163);t.exports=function(t,n,e,o){return null==t?[]:(i(n)||(n=null==n?[]:[n]),i(e=o?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:function(t,n,e){var r=e(5436),i=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},4912:function(t,n,e){var r=e(8644),i=e(3472),o=e(6371),a=e(7271);t.exports=function(t,n){if(null==t)return{};var e=r(a(t),(function(t){return[t]}));return n=i(n),o(t,e,(function(t,e){return n(t,e[0])}))}},8532:function(t,n,e){var r=e(1600),i=e(3301),o=e(726),a=e(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},8163:function(t,n,e){var r=e(5034),i=e(7709);t.exports=function(t,n,e){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(e)&&(o="leading"in e?!!e.leading:o,a="trailing"in e?!!e.trailing:a),r(t,n,{leading:o,maxWait:n,trailing:a})}},5812:function(t){t.exports=function(t){return t}},7010:function(t,n,e){var r=e(6316);t.exports=function(t){return null==t?"":r(t)}},9602:function(t,n,e){var r=e(946);t.exports=function(t){return t&&t.length?r(t):[]}},660:function(t,n,e){var r=e(7010),i=0;t.exports=function(t){var n=++i;return r(t)+n}},7491:function(t){var n="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,s,l,c;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(!o(t[s],a[s]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(c=t.entries();!(s=c.next()).done;)if(!a.has(s.value[0]))return!1;for(c=t.entries();!(s=c.next()).done;)if(!o(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(c=t.entries();!(s=c.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(t[s]!==a[s])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(s=u;0!=s--;)if(!Object.prototype.hasOwnProperty.call(a,l[s]))return!1;if(n&&t instanceof Element)return!1;for(s=u;0!=s--;)if(("_owner"!==l[s]&&"__v"!==l[s]&&"__o"!==l[s]||!t.$$typeof)&&!o(t[l[s]],a[l[s]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return o(t,n)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:function(n){"use strict";n.exports=t}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var i={};return function(){"use strict";r.r(i),r.d(i,{VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS:function(){return Au},VictoryVoronoiContainer:function(){return ju},VoronoiHelpers:function(){return ku},useVictoryVoronoiContainer:function(){return Su}});var t={};r.r(t),r.d(t,{scaleBand:function(){return Zn},scaleDiverging:function(){return Qa},scaleDivergingLog:function(){return Ja},scaleDivergingPow:function(){return nu},scaleDivergingSqrt:function(){return eu},scaleDivergingSymlog:function(){return tu},scaleIdentity:function(){return $r},scaleImplicit:function(){return Vn},scaleLinear:function(){return Tr},scaleLog:function(){return Ir},scaleOrdinal:function(){return Kn},scalePoint:function(){return Gn},scalePow:function(){return Qr},scaleQuantile:function(){return ci},scaleQuantize:function(){return fi},scaleRadial:function(){return ei},scaleSequential:function(){return Ra},scaleSequentialLog:function(){return qa},scaleSequentialPow:function(){return Va},scaleSequentialQuantile:function(){return Za},scaleSequentialSqrt:function(){return Ka},scaleSequentialSymlog:function(){return Ya},scaleSqrt:function(){return Jr},scaleSymlog:function(){return Vr},scaleThreshold:function(){return hi},scaleTime:function(){return Wa},scaleUtc:function(){return Ha},tickFormat:function(){return Dr}});var n=r(9082),e=r.n(n),o=r(1893),a=r.n(o),u=r(9787),s=r.n(u),l=r(4143),c=r.n(l),f=r(3849),h=r.n(f),d=r(660),g=r.n(d),p=r(4155),y=r.n(p);var v=r(8532),m=r.n(v);function b(t,n){void 0===n&&(n=[]);const e={};for(const r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function x(t){const n=t=>void 0!==t,{_x:e,_x1:r,_x0:i,_voronoiX:o,_y:u,_y1:s,_y0:l,_voronoiY:c}=t,f=n(r)?r:e,h=n(s)?s:u,d={x:n(o)?o:f,x0:n(i)?i:e,y:n(c)?c:h,y0:n(l)?l:u};return a()({},d,t)}function w(t,n){const{scale:e,polar:r,horizontal:i}=t,o=x(n),a=t.origin||{x:0,y:0},u=i?e.y(o.y):e.x(o.x),s=i?e.y(o.y0):e.x(o.x0),l=i?e.x(o.x):e.y(o.y),c=i?e.x(o.x0):e.y(o.y0);return{x:r?l*Math.cos(u)+a.x:u,x0:r?c*Math.cos(s)+a.x:s,y:r?-l*Math.sin(u)+a.y:l,y0:r?-c*Math.sin(s)+a.x:c}}function M(t,n){void 0===n&&(n="padding");const e=t[n],r="number"==typeof e?e:0,i="object"==typeof e?e:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function k(t,n){return O(t)?t(n):t}function A(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>O(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=k(t[r],n),e)),{}):t}function O(t){return"function"==typeof t}function S(t){return O(t)?t:null==t?t=>t:m()(t)}const j=s().createContext(void 0);j.displayName="PortalContext";const C=()=>s().useContext(j),_=t=>{let{children:n}=t;const[e,r]=s().useState(new Map),i=s().useCallback(((t,n)=>{r((e=>{const r=new Map(e);return r.set(t,n),r}))}),[r]),o=s().useCallback((t=>{r((n=>{const e=new Map(n);return e.delete(t),e}))}),[r]),a=s().useMemo((()=>({addChild:i,removeChild:o,children:e})),[i,o,e]);return s().createElement(j.Provider,{value:a},n)},E={groupComponent:s().createElement("g",null)},D=t=>{const n={...E,...t},[e]=(0,u.useState)(g()()),r=C(),i=Array.isArray(n.children)?n.children[0]:n.children,{groupComponent:o}=n,l=i&&i.props||{},c=l.groupComponent?{groupComponent:o,standalone:!1}:{},f=a()(c,l,b(n,["children","groupComponent"]),{key:l.key??e}),h=i&&s().cloneElement(i,f);return s().useEffect((()=>{r?.addChild(e,h)}),[n.children]),s().useEffect((()=>()=>r?.removeChild(e)),[]),r?null:h};function F(){return F=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},F.apply(this,arguments)}D.role="portal";const T=(0,u.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,u={vectorEffect:"non-scaling-stroke",id:k(r,t)?.toString(),tabIndex:k(i,t),...a};return e?s().createElement("rect",F({},u,{ref:n}),s().createElement("desc",null,e)):s().createElement("rect",F({},u,{ref:n}))})),$=t=>{const{children:n,desc:e,id:r,origin:i,tabIndex:o,title:a,...u}=t,l={id:k(r,t)?.toString(),tabIndex:k(o,t),...u};return s().createElement("text",l,a&&s().createElement("title",null,a),e&&s().createElement("desc",null,e),n)},N=t=>{const{desc:n,id:e,tabIndex:r,origin:i,...o}=t,a={id:k(e,t)?.toString(),tabIndex:k(r,t),...o};return s().createElement("tspan",a)};function L(t,n){const{x:e}=x(n);return("number"==typeof(r=t.scale.x(e))?r/(Math.PI/180):r)%360;var r}const P=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];if(e.length>0)return e.reduce(((t,n)=>[t,P(n)].join(" ")),P(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const n in t)if(t.hasOwnProperty(n)){const e=t[n];i.push(`${n}(${e})`)}return i.join(" ").trim()};var z=r(1594),U=r.n(z);const W={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},H={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},B={em:1,ex:.5},I={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},R=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),q=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},Y=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=e?H.hasOwnProperty(e)?r*H[e]:B.hasOwnProperty(e)?(n?r*n:r*I.fontSize)*B[e]:r:r||0,i},V=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=a()({},e,I);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Y(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Y(String(r.fontSize))})},K=(t,n)=>{const e=Array.isArray(n)?n[0]&&n[0].angle:n&&n.angle,r=((t,n)=>void 0===t||""===t||null===t?0:R(t).reduce(((t,e,r)=>{const i=V(n,r),o=e.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,n),i=((t,n)=>{if(void 0===t||""===t||null===t)return 0;const e=R(t).map(((t,e)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=V(n,e),u=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>W[t]))||"Helvetica";return W[n]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<u.widths.length?u.widths[t.charCodeAt(0)]:u.avg)).reduce(((t,n)=>n+t),0)*i+o*Math.max(r-1,0)}));return Math.max(...e)})(t,n);return{width:e?q(i,r,e):i,height:1.05*(e?q(r,i,e):r)}},Z=U()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const n=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(n),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),n})),X=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",G=U()(((t,n)=>{let e=Z();e.isConnected||(Z.cache.clear?.(),e=Z());const r=R(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=V(n,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),e.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=e.getBoundingClientRect();return e.innerHTML="",{width:n?.angle?q(o,i,n?.angle):o,height:n?.angle?q(i,o,n?.angle):i}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(X).join():X(n)}`)),Q=(t,n)=>function(t,n,e){return void 0===e&&(e=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||e?K(t,n):G(t,n)}(t,n),J={startsWith:["data-","aria-"],exactMatch:[]};function tt(t,n){if(null==t)throw new Error(n)}const nt=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return J.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>J.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,k(r,t)]})))},et={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},rt=(t,n)=>t.datum?w(t,t.datum)[n]:0,it=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return et.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?et.fontSize:t}return et.fontSize},ot=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},at=t=>{const{backgroundStyle:n,backgroundPadding:e}=t;return Array.isArray(n)&&!y()(n)||Array.isArray(e)&&!y()(e)},ut=(t,n)=>{const{direction:e,textAnchor:r,x:i,dx:o}=t;if("rtl"===e)return i-n;switch(r){case"middle":return Math.round(i-n/2);case"end":return Math.round(i-n);default:return i+(o||0)}},st=(t,n)=>{const{verticalAnchor:e,y:r,originalDy:i=0}=t,o=r+i;switch(e){case"start":return Math.floor(o);case"end":return Math.ceil(o-n);default:return Math.floor(o-n/2)}},lt=(t,n)=>at(t)?((t,n)=>{const{dy:e,dx:r,transform:i,backgroundStyle:o,backgroundPadding:u,backgroundComponent:l,inline:c,y:f}=t,h=n.map(((t,i)=>{const o=ot(n,i-1),a=t.textSize,s=t.fontSize*t.lineHeight,l=Math.ceil(s),h=ot(u,i),d=ot(u,i-1),g=c&&r||0,p=i&&!c?o.fontSize*o.lineHeight+d.top+d.bottom:e-.5*s-(t.fontSize-t.capHeight);return{textHeight:l,labelSize:a,heightWithPadding:l+h.top+h.bottom,widthWithPadding:a.width+h.left+h.right+g,y:f,fontSize:t.fontSize,dy:p}}));return h.map(((n,e)=>{const r=ut(t,n.labelSize.width),d=h.slice(0,e+1).reduce(((t,n)=>t+n.dy),f),g=ot(u,e),p=n.heightWithPadding,y=c?((t,n,e)=>{const{textAnchor:r}=t,i=n.map((t=>t.widthWithPadding)),o=-i.reduce(((t,n)=>t+n),0)/2;switch(r){case"start":return i.reduce(((t,n,r)=>r<e?t+n:t),0);case"end":return i.reduce(((t,n,r)=>r>e?t-n:t),0);default:return i.reduce(((t,n,r)=>r===e?t+n/2:t+(r<e?n:0)),o)}})(t,h,e)+r-g.left:r,v=c?st(t,p)-g.top:d,m={key:`tspan-background-${e}`,height:p,style:ot(o,e),width:n.widthWithPadding,transform:i,x:y-g.left,y:v};return s().cloneElement(l,a()({},l.props,m))}))})(t,n):((t,n)=>{const{dx:e=0,transform:r,backgroundComponent:i,backgroundStyle:o,inline:u,backgroundPadding:l,capHeight:c}=t,f=n.map((t=>t.textSize)),h=u?Math.max(...f.map((t=>t.height))):f.reduce(((t,e,r)=>{const i=r?0:c/2;return t+e.height*(n[r].lineHeight-i)}),0),d=u?f.reduce(((t,n,r)=>{const i=r?e:0;return t+n.width+i}),0):Math.max(...f.map((t=>t.width))),g=ut(t,d),p=st(t,h),y={key:"background",height:h+l.top+l.bottom,style:o,transform:r,width:d+l.left+l.right,x:u?g-l.left:g+e-l.left,y:p};return s().cloneElement(i,a()({},i.props,y))})(t,n),ct=(t,n,e)=>{const{inline:r}=n,i=ot(t,e);return e&&!r?((t,n,e)=>{const r=ot(t,n),i=ot(t,n-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,u=i.fontSize-i.capHeight,s=r.fontSize-r.capHeight,l=o-i.fontSize/2+r.fontSize/2-o/2+a/2-s/2+u/2;return at(e)?l+r.backgroundPadding.top+i.backgroundPadding.bottom:l})(t,e,n):r?0===e?i.backgroundPadding.top:void 0:i.backgroundPadding.top},ft=t=>{const n=k(t.ariaLabel,t),e=ot(t.style),r=(t=>{const n=k(t.lineHeight,t);return Array.isArray(n)&&y()(n)?[1]:n})(t),i=t.direction?k(t.direction,t):"inherit",o=t.textAnchor?k(t.textAnchor,t):e.textAnchor||"start",a=t.verticalAnchor?k(t.verticalAnchor,t):e.verticalAnchor||"middle",u=t.dx?k(t.dx,t):0,s=((t,n,e)=>{const r=t.dy?k(t.dy,t):0,i=t.inline?1:t.text.length,o=k(t.capHeight,t),a=n?k(n,t):"middle",u=[...Array(i).keys()].map((n=>ot(t.style,n).fontSize)),s=[...Array(i).keys()].map((t=>ot(e,t)));if("start"===a)return r+(o/2+s[0]/2)*u[0];if(t.inline)return"end"===a?r+(o/2-s[0]/2)*u[0]:r+o/2*u[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*s[0])*u[0]:r+(o/2+(.5-i/2)*s[0])*u[0];const l=[...Array(i).keys()].reduce(((t,n)=>t+(o/2+(.5-i)*s[n])*u[n]/i),0);return"end"===a?r+l:r+l/2+o/2*s[i-1]*u[i-1]})(t,a,r),l=void 0!==t.x?t.x:rt(t,"x"),c=void 0!==t.y?t.y:rt(t,"y"),f=((t,n,e)=>{const{polar:r}=t,i=ot(t.style),o=r?function(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const i=L(t,r);let o=0;return 0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===e?0:90)}(t):0,a=void 0===i.angle?k(t.angle,t):i.angle,u=void 0===a?o:a,s=t.transform||i.transform,l=s&&k(s,t);return l||u?P(l,u&&{rotate:[u,n,e]}):void 0})(t,l,c);return Object.assign({},t,{ariaLabel:n,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:u,dy:s,originalDy:k(t.dy,t),transform:f,x:l,y:c})},ht={backgroundComponent:s().createElement(T,null),groupComponent:s().createElement("g",null),direction:"inherit",textComponent:s().createElement($,null),tspanComponent:s().createElement(N,null),capHeight:.71,lineHeight:1},dt=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>k(t,n)));const e=k(t,n);return null!=e?Array.isArray(e)?e:`${e}`.split("\n"):void 0})(t.text,t),e=((t,n)=>{if(n.disableInlineStyles){const e=A(t,n);return{fontSize:it(e)}}const e=t=>{const e=A(t?a()({},t,et):et,n);return Object.assign({},e,{fontSize:it(e)})};return Array.isArray(t)&&!y()(t)?t.map((t=>e(t))):e(t)})(t.style,Object.assign({},t,{text:n})),r=((t,n)=>{if(t)return Array.isArray(t)&&!y()(t)?t.map((t=>A(t,n))):A(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:e})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>M({padding:k(n,t)}))):M({padding:k(t.backgroundPadding,t)}))(Object.assign({},t,{text:n,style:e,backgroundStyle:r})),o=k(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:e,text:n,id:o})})(a()({},t,ht));if(null===n.text||void 0===n.text)return null;const e=ft(n),{text:r,style:i,capHeight:o,backgroundPadding:u,lineHeight:l}=e,c=r.map(((t,n)=>{const e=ot(i,n),r=Y(`${o}em`,e.fontSize),a=ot(l,n);return{style:e,fontSize:e.fontSize||et.fontSize,capHeight:r,text:t,textSize:Q(t,e),lineHeight:a,backgroundPadding:ot(u,n)}})),f=((t,n)=>{const{ariaLabel:e,inline:r,className:i,title:o,events:a,direction:u,text:l,textAnchor:c,dx:f,dy:h,transform:d,x:g,y:p,desc:y,id:v,tabIndex:m,tspanComponent:b,textComponent:x}=t,w=nt(t),M={"aria-label":e,key:"text",...a,direction:u,dx:f,x:g,y:p+h,transform:d,className:i,title:o,desc:k(y,t),tabIndex:k(m,t),id:v,...w},A=l.map(((e,i)=>{const o=n[i].style,a={key:`${v}-key-${i}`,x:r?void 0:g,dx:r?f+n[i].backgroundPadding.left:f,dy:ct(n,t,i),textAnchor:o.textAnchor||c,style:o,children:e};return s().cloneElement(b,a)}));return s().cloneElement(x,M,A)})(e,c);if(n.backgroundStyle){const t=[lt(e,c),f],r=s().cloneElement(n.groupComponent,{},t);return n.renderInPortal?s().createElement(D,null,r):r}return n.renderInPortal?s().createElement(D,null,f):f};dt.displayName="VictoryLabel",dt.role="label",dt.defaultStyles=et;const gt=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],pt="#252525",yt="#969696",vt={width:450,height:300,padding:50,colorScale:gt},mt={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:pt,stroke:"transparent"},bt=Object.assign({textAnchor:"middle"},mt),xt={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:gt,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:pt},labels:mt}},vt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:pt,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},bt,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:mt}},vt),bar:Object.assign({style:{data:{fill:pt,padding:8,strokeWidth:0},labels:mt}},vt),boxplot:Object.assign({style:{max:{padding:8,stroke:pt,strokeWidth:1},maxLabels:Object.assign({},mt,{padding:3}),median:{padding:8,stroke:pt,strokeWidth:1},medianLabels:Object.assign({},mt,{padding:3}),min:{padding:8,stroke:pt,strokeWidth:1},minLabels:Object.assign({},mt,{padding:3}),q1:{padding:8,fill:yt},q1Labels:Object.assign({},mt,{padding:3}),q3:{padding:8,fill:yt},q3Labels:Object.assign({},mt,{padding:3})},boxWidth:20},vt),candlestick:Object.assign({style:{data:{stroke:pt,strokeWidth:1},labels:Object.assign({},mt,{padding:5})},candleColors:{positive:"#ffffff",negative:pt}},vt),chart:vt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:pt,strokeWidth:2},labels:mt}},vt),group:Object.assign({colorScale:gt},vt),histogram:Object.assign({style:{data:{fill:yt,stroke:pt,strokeWidth:2},labels:mt}},vt),legend:{colorScale:gt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:mt,title:Object.assign({},mt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:pt,strokeWidth:2},labels:mt}},vt),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},mt,{padding:20})},colorScale:gt,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:pt,stroke:"transparent",strokeWidth:0},labels:mt}},vt),stack:Object.assign({colorScale:gt},vt),tooltip:{style:Object.assign({},mt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:pt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},mt,{padding:5,pointerEvents:"none"}),flyout:{stroke:pt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},vt)},wt="#FFF59D",Mt="#F4511E",kt="#8BC34A",At="#00796B",Ot="#006064",St=[Mt,wt,"#DCE775",kt,At,Ot],jt="#ECEFF1",Ct="#90A4AE",_t="#455A64",Et="#212121",Dt={blue:"#4F7DA1",pink:"#E2A37F",teal:At,purple:"#DF948A",green:kt,orange:Mt,cyan:Ot,red:"#DF5A49",yellow:wt},Ft=[jt,Ct,_t,Et],Tt={width:350,height:350,padding:50},$t={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:_t,stroke:"transparent",strokeWidth:0},Nt=Object.assign({textAnchor:"middle"},$t),Lt="round",Pt="round",zt={palette:{colors:Dt,grayscale:Ft,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:Et},labels:$t}},Tt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Ct,strokeWidth:2,strokeLinecap:Lt,strokeLinejoin:Pt},axisLabel:Object.assign({},Nt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:jt,strokeDasharray:"10, 5",strokeLinecap:Lt,strokeLinejoin:Pt,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Ct,strokeWidth:1,strokeLinecap:Lt,strokeLinejoin:Pt},tickLabels:Object.assign({},$t,{fill:_t})}},Tt),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:_t,padding:8,strokeWidth:0},labels:$t}},Tt),boxplot:Object.assign({style:{max:{padding:8,stroke:_t,strokeWidth:1},maxLabels:Object.assign({},$t,{padding:3}),median:{padding:8,stroke:_t,strokeWidth:1},medianLabels:Object.assign({},$t,{padding:3}),min:{padding:8,stroke:_t,strokeWidth:1},minLabels:Object.assign({},$t,{padding:3}),q1:{padding:8,fill:_t},q1Labels:Object.assign({},$t,{padding:3}),q3:{padding:8,fill:_t},q3Labels:Object.assign({},$t,{padding:3})},boxWidth:20},Tt),candlestick:Object.assign({style:{data:{stroke:_t},labels:Object.assign({},$t,{padding:5})},candleColors:{positive:"#ffffff",negative:_t}},Tt),chart:Tt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:_t,strokeWidth:2},labels:$t}},Tt),group:Object.assign({colorScale:St},Tt),histogram:Object.assign({style:{data:{fill:_t,stroke:Et,strokeWidth:2},labels:$t}},Tt),legend:{colorScale:St,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:$t,title:Object.assign({},$t,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:_t,strokeWidth:2},labels:$t}},Tt),pie:Object.assign({colorScale:St,style:{data:{padding:8,stroke:jt,strokeWidth:1},labels:Object.assign({},$t,{padding:20})}},Tt),scatter:Object.assign({style:{data:{fill:_t,opacity:1,stroke:"transparent",strokeWidth:0},labels:$t}},Tt),stack:Object.assign({colorScale:St},Tt),tooltip:{style:Object.assign({},$t,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Et,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},$t,{padding:5,pointerEvents:"none"}),flyout:{stroke:Et,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Tt)},Ut="#FFFFFF",Wt="#F2F2F2",Ht="#E0E0E0",Bt="#D1D1D1",It="#757575",Rt="#424242",qt="#292929",Yt="#FCB400",Vt="#FF6F2C",Kt={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},Zt="#8B46FF",Xt={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},Gt="#18BFFF",Qt="#20D9D2",Jt={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},tn={blue:Xt[500],cyan:Gt,green:Jt[500],yellow:Yt,orange:Vt,red:Kt[500],purple:Zt,teal:Qt},nn=Object.values(tn),en=[Wt,Ht,It,Rt,qt],rn=["#FFD66E",Yt,Vt,"#D74D26",Kt[500]],on=[Zt,Xt[500],Gt,Qt,Jt[500]],an=[Jt[900],Jt[500],Yt,Vt,Kt[500]],un=Object.values(Kt),sn=Object.values(Jt),ln=Object.values(Xt),cn=Xt[500],fn={width:450,height:300,padding:60,colorScale:nn},hn={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:qt,stroke:"transparent"},dn=Object.assign({textAnchor:"middle"},hn),gn="10, 5",pn="round",yn="round",vn={grayscale:xt,material:zt,clean:{palette:{colors:tn,grayscale:en,qualitative:nn,heatmap:an,warm:rn,cool:on,red:un,green:sn,blue:ln},area:Object.assign({style:{data:{fill:cn,strokeWidth:2,fillOpacity:.5},labels:hn}},fn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:It,strokeWidth:1,strokeLinecap:pn,strokeLinejoin:yn},axisLabel:Object.assign({},dn,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:hn}},fn),polarAxis:Object.assign({style:{axis:{stroke:It},grid:{stroke:Bt,strokeDasharray:gn,strokeLinecap:pn,strokeLinejoin:yn,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Bt,strokeWidth:1,strokeLinecap:pn,strokeLinejoin:yn},tickLabels:hn}}),polarDependentAxis:Object.assign({style:{axis:{stroke:It},grid:{stroke:Bt,strokeDasharray:gn,strokeLinecap:pn,strokeLinejoin:yn,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Ht,strokeWidth:1,strokeLinecap:pn,strokeLinejoin:yn},tickLabels:hn}}),bar:Object.assign({style:{data:{fill:cn,padding:8,strokeWidth:1,fillOpacity:.5},labels:hn},cornerRadius:{top:1}},fn),boxplot:Object.assign({style:{max:{padding:8,stroke:Bt,strokeWidth:2},maxLabels:Object.assign({},hn,{padding:3}),median:{padding:8,stroke:Ut,strokeWidth:2},medianLabels:Object.assign({},hn,{padding:3}),min:{padding:8,stroke:Bt,strokeWidth:2},minLabels:Object.assign({},hn,{padding:3}),q1:{padding:8,fill:nn[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},hn,{padding:3}),q3:{padding:8,fill:nn[1],rx:1},q3Labels:Object.assign({},hn,{padding:3})},boxWidth:20},fn),candlestick:Object.assign({style:{data:{stroke:Ht,strokeWidth:0,rx:1},labels:Object.assign({},hn,{padding:5})},candleColors:{positive:Jt[500],negative:Kt[500]},wickStrokeWidth:2},fn),chart:fn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Rt,strokeWidth:2,strokeLinecap:pn},labels:hn}},fn),group:Object.assign({colorScale:nn},fn),histogram:Object.assign({style:{data:{fill:Gt,fillOpacity:.5},labels:hn},binSpacing:4,cornerRadius:{top:1}},fn),label:hn,legend:{colorScale:nn,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...hn,fontSize:12},title:Object.assign({},hn,{padding:8,fontSize:16}),border:{stroke:"#E8E8E8",strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:cn,strokeWidth:2,strokeLinecap:pn,strokeLinejoin:yn},labels:hn}},fn),pie:Object.assign({style:{parent:{backgroundColor:Ut},data:{padding:8,stroke:Ut,strokeWidth:1},labels:{...hn,padding:20,fill:"#5C5C5C",fontSize:10}},colorScale:nn,cornerRadius:1},fn),scatter:Object.assign({style:{data:{fill:cn,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...hn,padding:20}}},fn),stack:Object.assign({colorScale:nn},fn),tooltip:{style:Object.assign({},hn,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Ht,strokeWidth:2,fill:Ut,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:Xt[100],stroke:cn,strokeWidth:2},labels:Object.assign({},hn,{padding:5,pointerEvents:"none"}),flyout:{stroke:qt,strokeWidth:1,fill:Wt,pointerEvents:"none"},padding:{left:2,bottom:2}}},fn)}};function mn(){return mn=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},mn.apply(this,arguments)}const bn=(0,u.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,u={id:k(r,t)?.toString(),tabIndex:k(i,t),...a};return e?s().createElement("path",mn({},u,{ref:n}),s().createElement("desc",null,e)):s().createElement("path",mn({},u,{ref:n}))})),xn=t=>{const n=t.orientation||"top";return"left"===n||"right"===n?(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:i,height:o,center:a}=t,u="left"===r?1:-1,s=t.x+(t.dx||0),l=t.y+(t.dy||0),c=a.x,f=a.y,h=c-u*(i/2),d=c+u*(i/2),g=f+o/2,p=f-o/2,y=u*(s-h)>0?0:t.pointerLength,v=`${e} ${e} ${"left"===r?"0 0 0":"0 0 1"}`;return`M ${h}, ${f-n/2}\n L ${y?s:h}, ${y?l:f+n/2}\n L ${h}, ${f+n/2}\n L ${h}, ${g-e}\n A ${v} ${h+u*e}, ${g}\n L ${d-u*e}, ${g}\n A ${v} ${d}, ${g-e}\n L ${d}, ${p+e}\n A ${v} ${d-u*e}, ${p}\n L ${h+u*e}, ${p}\n A ${v} ${h}, ${p+e}\n z`})(t):(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:i,height:o,center:a}=t,u="bottom"===r?1:-1,s=t.x+(t.dx||0),l=t.y+(t.dy||0),c=a.x,f=a.y,h=f+u*(o/2),d=f-u*(o/2),g=c+i/2,p=c-i/2,y=u*(l-h)<0?0:t.pointerLength,v=`${e} ${e} ${"bottom"===r?"0 0 0":"0 0 1"}`;return`M ${c-n/2}, ${h}\n L ${y?s:c+n/2}, ${y?l:h}\n L ${c+n/2}, ${h}\n L ${g-e}, ${h}\n A ${v} ${g}, ${h-u*e}\n L ${g}, ${d+u*e}\n A ${v} ${g-e}, ${d}\n L ${p+e}, ${d}\n A ${v} ${p}, ${d+u*e}\n L ${p}, ${h-u*e}\n A ${v} ${p+e}, ${h}\n z`})(t)},wn={pathComponent:s().createElement(bn,null),role:"presentation",shapeRendering:"auto"},Mn=t=>{const n=(t=>{const n=k(t.id,t),e=A(t.style,t);return{...t,id:n,style:e}})(a()({},t,wn)),e=nt(n);tt(n.height,"Flyout props[height] is undefined"),tt(n.width,"Flyout props[width] is undefined"),tt(n.x,"Flyout props[x] is undefined"),tt(n.y,"Flyout props[y] is undefined");const r={center:n.center||{x:0,y:0},cornerRadius:n.cornerRadius||0,dx:n.dx,dy:n.dy,height:n.height,orientation:n.orientation||"top",pointerLength:n.pointerLength||0,pointerWidth:n.pointerWidth||0,width:n.width,x:n.x,y:n.y};return s().cloneElement(n.pathComponent,{...n.events,...e,style:n.style,d:xn(r),className:n.className,shapeRendering:n.shapeRendering,role:n.role,transform:n.transform,clipPath:n.clipPath})},kn={cornerRadius:5,pointerLength:10,pointerWidth:10};class An extends s().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:s().createElement(dt,null),flyoutComponent:s().createElement(Mn,null),groupComponent:s().createElement("g",null)};static defaultEvents(t){const n=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],e=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>n,onFocus:()=>n,onTouchStart:()=>n,onMouseOut:()=>e,onBlur:()=>e,onTouchEnd:()=>e}}]}constructor(t){super(t),this.id=void 0===t.id?g()("tooltip-"):t.id}getDefaultOrientation(t){const{datum:n,horizontal:e,polar:r}=t;if(!r){const t=e?"right":"top",r=e?"left":"bottom";return n&&n.y<0?r:t}return this.getPolarOrientation(t)}getPolarOrientation(t){const n=L(t,t.datum),e=t.labelPlacement||"vertical";return"vertical"===e?this.getVerticalOrientations(n):"parallel"===e?n<90||n>270?"right":"left":n>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const n=t.theme||vn.grayscale,e=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>a()({},t,e))):a()({},t.style,e),i=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},o=t.flyoutStyle?a()({},t.flyoutStyle,i):i,u=Array.isArray(r)?r.map((n=>A(n,t))):A(r,t);return{style:u,flyoutStyle:A(o,Object.assign({},t,{style:u}))}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:e,dx:r,dy:i}=t,o=k(t.active,t);let a=k(t.text,Object.assign({},t,{active:o}));null==a&&(a=""),"number"==typeof a&&(a=a.toString());const{style:u,flyoutStyle:s}=this.getStyles(Object.assign({},t,{active:o,text:a})),l=k(t.orientation,Object.assign({},t,{active:o,text:a,style:u,flyoutStyle:s}))||this.getDefaultOrientation(t),c=M({padding:k(t.flyoutPadding,Object.assign({},t,{active:o,text:a,style:u,flyoutStyle:s,orientation:l}))||this.getLabelPadding(u)}),f=k(t.pointerWidth,Object.assign({},t,{active:o,text:a,style:u,flyoutStyle:s,orientation:l})),d=k(t.pointerLength,Object.assign({},t,{active:o,text:a,style:u,flyoutStyle:s,orientation:l})),g=Q(a,u),{flyoutHeight:p,flyoutWidth:y}=this.getDimensions(Object.assign({},t,{style:u,flyoutStyle:s,active:o,text:a,orientation:l,flyoutPadding:c,pointerWidth:f,pointerLength:d}),g),v=Object.assign({},t,{active:o,text:a,style:u,flyoutStyle:s,orientation:l,flyoutHeight:p,flyoutWidth:y,flyoutPadding:c,pointerWidth:f,pointerLength:d}),m=h()(e)&&void 0!==e?.x?k(e.x,v):0,b=h()(e)&&void 0!==e?.y?k(e.y,v):0;return{...v,centerOffset:{x:m,y:b},dx:void 0!==r?k(r,v):0,dy:void 0!==i?k(i,v):0,cornerRadius:k(n,v)}}getCalculatedValues(t){const{style:n,text:e,flyoutStyle:r,flyoutHeight:i,flyoutWidth:o}=t,a={height:i,width:o};return{style:n,flyoutStyle:r,labelSize:Q(e,n),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:n,y:e,style:r}=t,i=(r||{}).angle||t.angle||this.getDefaultAngle(t);return i?`rotate(${i} ${n} ${e})`:void 0}getDefaultAngle(t){const{polar:n,labelPlacement:e,orientation:r,datum:i}=t;if(!n||!e||"vertical"===e)return 0;const o=L(t,i);let a=0;return 0===o||180===o?a="top"===r&&180===o?270:90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===e?0:90)}constrainTooltip(t,n,e){const{x:r,y:i}=t,{width:o,height:a}=e,u=[0,n.width],s=[0,n.height],l=[r-o/2,r+o/2],c=[i-a/2,i+a/2],f=[l[0]<u[0]?u[0]-l[0]:0,l[1]>u[1]?l[1]-u[1]:0],h=[c[0]<s[0]?s[0]-c[0]:0,c[1]>s[1]?c[1]-s[1]:0];return{x:Math.round(r+f[0]-f[1]),y:Math.round(i+h[0]-h[1])}}getFlyoutCenter(t,n){const{x:e,y:r,dx:i,dy:o,pointerLength:a,orientation:u,constrainToVisibleArea:s,centerOffset:l}=t,{height:c,width:f}=n,d="left"===u?-1:1,g="bottom"===u?-1:1,p={x:"left"===u||"right"===u?e+d*(a+f/2+d*i):e+i,y:"top"===u||"bottom"===u?r-g*(a+c/2-g*o):r+o},y=h()(t.center)&&void 0!==t.center.x?t.center.x:p.x,v=h()(t.center)&&void 0!==t.center.y?t.center.y:p.y,m={x:y+l.x,y:v+l.y};return s?this.constrainTooltip(m,t,n):m}getLabelPadding(t){if(!t)return 0;const n=Array.isArray(t)?t.map((t=>t.padding)):[t.padding];return Math.max(...n,0)}getDimensions(t,n){const{orientation:e,pointerLength:r,pointerWidth:i,flyoutHeight:o,flyoutWidth:a,flyoutPadding:u}=t,s=k(t.cornerRadius,t);return{flyoutHeight:o?k(o,t):(()=>{const t=n.height+u.top+u.bottom,r="top"===e||"bottom"===e?2*s:2*s+i;return Math.max(r,t)})(),flyoutWidth:a?k(a,t):(()=>{const t=n.width+u.left+u.right,i="left"===e||"right"===e?2*s+r:2*s;return Math.max(i,t)})()}}getLabelProps(t,n){const{flyoutCenter:e,style:r,labelSize:i,dy:o=0,dx:u=0}=n,{text:s,datum:l,activePoints:c,labelComponent:f,index:h,flyoutPadding:d}=t,g=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return a()({},f.props,{key:`${this.id}-label-${h}`,text:s,datum:l,activePoints:c,textAnchor:g,dy:o,dx:u,style:r,x:(()=>{if(!g||"middle"===g)return e.x;const t="end"===g?-1:1;return e.x-t*(i.width/2)})()+(d.left-d.right)/2,y:e.y+(d.top-d.bottom)/2,verticalAnchor:"middle",angle:r.angle})}getPointerOrientation(t,n,e){const r=n.y+e.height/2,i=n.y-e.height/2,o=n.x-e.width/2,a=n.x+e.width/2,u=[{side:"top",val:i>t.y?i-t.y:-1},{side:"bottom",val:r<t.y?t.y-r:-1},{side:"right",val:a<t.x?t.x-a:-1},{side:"left",val:o>t.x?o-t.x:-1}];return c()(u,"val","desc")[0].side}getFlyoutProps(t,n){const{flyoutDimensions:e,flyoutStyle:r,flyoutCenter:i}=n,{x:o,y:u,dx:s,dy:l,datum:c,activePoints:f,index:h,pointerLength:d,pointerWidth:g,cornerRadius:p,events:y,flyoutComponent:v}=t,m=k(t.pointerOrientation,t);return a()({},v.props,{x:o,y:u,dx:s,dy:l,datum:c,activePoints:f,index:h,pointerLength:d,pointerWidth:g,cornerRadius:p,events:y,orientation:m||this.getPointerOrientation({x:o,y:u},i,e),key:`${this.id}-tooltip-${h}`,width:e.width,height:e.height,style:r,center:i})}renderTooltip(t){const n=k(t.active,t),{renderInPortal:e}=t;if(!n)return null;const r=this.getEvaluatedProps(t),{flyoutComponent:i,labelComponent:o,groupComponent:a}=r,u=this.getCalculatedValues(r),l=[s().cloneElement(i,this.getFlyoutProps(r,u)),s().cloneElement(o,this.getLabelProps(r,u))],c=s().cloneElement(a,{role:"presentation",transform:u.transform},l);return e?s().createElement(D,null,c):c}render(){const t=function(t,n,e){const r=b(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),i=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const n=t=>t.reduce(((t,e)=>{const r=e.props||{};return t||r.horizontal||!r.children?t||r.horizontal:n(s().Children.toArray(r.children))}),!1);return n(s().Children.toArray(t.children))}(t),o=void 0===i?{}:{horizontal:i};return a()(o,t,r,n)}(this.props,kn,"tooltip");return this.renderTooltip(t)}}function On(){return On=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},On.apply(this,arguments)}const Sn=s().forwardRef(((t,n)=>s().createElement("svg",On({ref:n},t)))),jn=t=>{let{as:n,...e}=t;const r=C();if(!r)return null;const i=Array.from(r.children.values());return s().cloneElement(n,e,i)};function Cn(){return Cn=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Cn.apply(this,arguments)}const _n={className:"VictoryContainer",portalComponent:s().createElement(Sn,null),portalZIndex:99,responsive:!0,role:"img"},En=t=>{const{role:n,title:e,desc:r,children:i,className:o,portalZIndex:a,portalComponent:l,width:c,height:f,style:h,tabIndex:d,responsive:p,events:y,ouiaId:v,ouiaSafe:m,ouiaType:b,dimensions:x,ariaDescribedBy:w,ariaLabelledBy:M,viewBox:k,preserveAspectRatio:A,userProps:S,titleId:j,descId:C,containerRef:E,localContainerRef:D}=function(t){const n={..._n,...t},{title:e,desc:r,width:i,height:o,responsive:a}=n,s=(0,u.useRef)(null),l=(0,u.useRef)(g()("victory-container-")),c=n.containerId??l.current,f=t=>`${c}-${t}`,h=nt(n),d=a?{width:"100%",height:"100%"}:{width:i,height:o},p=a?`0 0 ${i} ${o}`:void 0,y=a?n.preserveAspectRatio:void 0,v=[e&&f("title"),n["aria-labelledby"]].filter(Boolean).join(" ")||void 0,m=[r&&f("desc"),n["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=f("title"),x=f("desc");return{...n,titleId:b,descId:x,dimensions:d,viewBox:p,preserveAspectRatio:y,ariaLabelledBy:v,ariaDescribedBy:m,userProps:h,localContainerRef:s}}(t);return s().useEffect((()=>{if(!y?.onWheel)return;const t=t=>t.preventDefault(),n=D?.current;return n?.addEventListener("wheel",t),()=>{n?.removeEventListener("wheel",t)}}),[]),s().createElement("div",{className:o,style:{...h,width:p?h?.width:x.width,height:p?h?.height:x.height,pointerEvents:"none",touchAction:"none",position:"relative"},"data-ouia-component-id":v,"data-ouia-component-type":b,"data-ouia-safe":m,ref:(F=[D,E],t=>{F.forEach((n=>{O(n)?n(t):null!=n&&(n.current=t)}))})},s().createElement(_,null,s().createElement("svg",Cn({width:c,height:f,tabIndex:d,role:n,"aria-labelledby":M,"aria-describedby":w,viewBox:k,preserveAspectRatio:A,style:{...x,pointerEvents:"all"}},S,y),e?s().createElement("title",{id:j},e):null,r?s().createElement("desc",{id:C},r):null,i),s().createElement("div",{style:{...x,zIndex:a,position:"absolute",top:0,left:0}},s().createElement(jn,{as:l,width:c,height:f,viewBox:k,preserveAspectRatio:A,style:{...x,overflow:"visible"}}))));var F};En.role="container";var Dn=r(8163),Fn=r.n(Dn),Tn=r(5395),$n=r.n(Tn);function Nn(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function Ln(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return Nn(i)?new Date(Math.min(...i)):Math.min(...i)}r(1616),r(8999);var Pn=r(8254),zn=r.n(Pn),Un=r(9602),Wn=r.n(Un);function Hn(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 Bn(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function In(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}class Rn extends Map{constructor(t,n=Yn){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(qn(this,t))}has(t){return super.has(qn(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}(this,t))}}function qn({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function Yn(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Vn=Symbol("implicit");function Kn(){var t=new Rn,n=[],e=[],r=Vn;function i(i){let o=t.get(i);if(void 0===o){if(r!==Vn)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 Rn;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 Kn(n,e).unknown(r)},Bn.apply(i,arguments),i}function Zn(){var t,n,e=Kn().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var e=r().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,e-s+2*l),u&&(t=Math.floor(t)),h+=(d-h-t*(e-s))*c,n=t*(1-s),u&&(h=Math.round(h),n=Math.round(n));var g=Hn(e).map((function(n){return h+t*n}));return i(f?g.reverse():g)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),f()):r()},e.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},e.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,f()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,f()):u},e.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),f()):s},e.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},e.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},e.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),f()):c},e.copy=function(){return Zn(r(),[o,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},Bn.apply(f(),arguments)}function Xn(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Xn(n())},t}function Gn(){return Xn(Zn.apply(null,arguments).paddingInner(1))}var Qn=Math.sqrt(50),Jn=Math.sqrt(10),te=Math.sqrt(2);function ne(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=ee(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 ee(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>=Qn?10:o>=Jn?5:o>=te?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Qn?10:o>=Jn?5:o>=te?2:1)}function re(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>=Qn?i*=10:o>=Jn?i*=5:o>=te&&(i*=2),n<t?-i:i}function ie(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function oe(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function ae(t){let n,e,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<0?i=n+1:o=n}while(i<o)}return i}return 2!==t.length?(n=ie,e=(n,e)=>ie(t(n),e),r=(n,e)=>t(n)-e):(n=t===ie||t===oe?t:ue,e=t,r=t),{left:i,center:function(t,n,e=0,o=t.length){const a=i(t,n,e,o-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<=0?i=n+1:o=n}while(i<o)}return i}}}function ue(){return 0}function se(t){return null===t?NaN:+t}const le=ae(ie),ce=le.right;le.left,ae(se).center;var fe=ce;function he(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function de(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function ge(){}var pe=.7,ye=1/pe,ve="\\s*([+-]?\\d+)\\s*",me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xe=/^#([0-9a-f]{3,8})$/,we=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),Me=new RegExp(`^rgb\\(${be},${be},${be}\\)$`),ke=new RegExp(`^rgba\\(${ve},${ve},${ve},${me}\\)$`),Ae=new RegExp(`^rgba\\(${be},${be},${be},${me}\\)$`),Oe=new RegExp(`^hsl\\(${me},${be},${be}\\)$`),Se=new RegExp(`^hsla\\(${me},${be},${be},${me}\\)$`),je={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 Ce(){return this.rgb().formatHex()}function _e(){return this.rgb().formatRgb()}function Ee(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=xe.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?De(n):3===e?new Ne(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Fe(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Fe(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=we.exec(t))?new Ne(n[1],n[2],n[3],1):(n=Me.exec(t))?new Ne(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=ke.exec(t))?Fe(n[1],n[2],n[3],n[4]):(n=Ae.exec(t))?Fe(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Oe.exec(t))?He(n[1],n[2]/100,n[3]/100,1):(n=Se.exec(t))?He(n[1],n[2]/100,n[3]/100,n[4]):je.hasOwnProperty(t)?De(je[t]):"transparent"===t?new Ne(NaN,NaN,NaN,0):null}function De(t){return new Ne(t>>16&255,t>>8&255,255&t,1)}function Fe(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ne(t,n,e,r)}function Te(t){return t instanceof ge||(t=Ee(t)),t?new Ne((t=t.rgb()).r,t.g,t.b,t.opacity):new Ne}function $e(t,n,e,r){return 1===arguments.length?Te(t):new Ne(t,n,e,null==r?1:r)}function Ne(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Le(){return`#${We(this.r)}${We(this.g)}${We(this.b)}`}function Pe(){const t=ze(this.opacity);return`${1===t?"rgb(":"rgba("}${Ue(this.r)}, ${Ue(this.g)}, ${Ue(this.b)}${1===t?")":`, ${t})`}`}function ze(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ue(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function We(t){return((t=Ue(t))<16?"0":"")+t.toString(16)}function He(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ie(t,n,e,r)}function Be(t){if(t instanceof Ie)return new Ie(t.h,t.s,t.l,t.opacity);if(t instanceof ge||(t=Ee(t)),!t)return new Ie;if(t instanceof Ie)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,s=(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/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new Ie(a,u,s,t.opacity)}function Ie(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Re(t){return(t=(t||0)%360)<0?t+360:t}function qe(t){return Math.max(0,Math.min(1,t||0))}function Ye(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 Ve(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}he(ge,Ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ce,formatHex:Ce,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Be(this).formatHsl()},formatRgb:_e,toString:_e}),he(Ne,$e,de(ge,{brighter(t){return t=null==t?ye:Math.pow(ye,t),new Ne(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?pe:Math.pow(pe,t),new Ne(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ne(Ue(this.r),Ue(this.g),Ue(this.b),ze(this.opacity))},displayable(){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:Le,formatHex:Le,formatHex8:function(){return`#${We(this.r)}${We(this.g)}${We(this.b)}${We(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Pe,toString:Pe})),he(Ie,(function(t,n,e,r){return 1===arguments.length?Be(t):new Ie(t,n,e,null==r?1:r)}),de(ge,{brighter(t){return t=null==t?ye:Math.pow(ye,t),new Ie(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?pe:Math.pow(pe,t),new Ie(this.h,this.s,this.l*t,this.opacity)},rgb(){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 Ne(Ye(t>=240?t-240:t+120,i,r),Ye(t,i,r),Ye(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Ie(Re(this.h),qe(this.s),qe(this.l),ze(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ze(this.opacity);return`${1===t?"hsl(":"hsla("}${Re(this.h)}, ${100*qe(this.s)}%, ${100*qe(this.l)}%${1===t?")":`, ${t})`}`}}));var Ke=t=>()=>t;function Ze(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Ke(isNaN(t)?n:t)}var Xe=function t(n){var e=function(t){return 1==(t=+t)?Ze: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):Ke(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=$e(t)).r,(n=$e(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=Ze(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 Ge(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=$e(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+""}}}function Qe(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]=ar(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 Je(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function tr(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]=ar(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}Ge((function(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 Ve((e-r/n)*n,a,i,o,u)}})),Ge((function(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 Ve((e-r/n)*n,i,o,a,u)}}));var er=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rr=new RegExp(er.source,"g");function ir(t,n){var e,r,i,o=er.lastIndex=rr.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=er.exec(t))&&(r=rr.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,s.push({i:a,x:tr(e,r)})),o=rr.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})}function or(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 ar(t,n){var e,r,i=typeof n;return null==n||"boolean"===i?Ke(n):("number"===i?tr:"string"===i?(e=Ee(n))?(n=e,Xe):ir:n instanceof Ee?Xe:n instanceof Date?Je:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?Qe:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?nr:tr:or))(t,n)}function ur(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function sr(t){return+t}var lr=[0,1];function cr(t){return t}function fr(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function hr(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=fr(i,r),o=e(a,o)):(r=fr(r,i),o=e(o,a)),function(t){return o(r(t))}}function dr(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]=fr(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=fe(t,n,1,r)-1;return o[e](i[e](n))}}function gr(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function pr(){var t,n,e,r,i,o,a=lr,u=lr,s=ar,l=cr;function c(){var t,n,e,s=Math.min(a.length,u.length);return l!==cr&&(t=a[0],n=a[s-1],t>n&&(e=t,t=n,n=e),l=function(e){return Math.max(t,Math.min(n,e))}),r=s>2?dr:hr,i=o=null,f}function f(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),u,s)))(t(l(n)))}return f.invert=function(e){return l(n((o||(o=r(u,a.map(t),tr)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,sr),c()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),c()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=ur,c()},f.clamp=function(t){return arguments.length?(l=!!t||cr,c()):l!==cr},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(e=t,f):e},function(e,r){return t=e,n=r,c()}}function yr(){return pr()(cr,cr)}var vr,mr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function br(t){if(!(n=mr.exec(t)))throw new Error("invalid format: "+t);var n;return new xr({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 xr(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 wr(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 Mr(t){return(t=wr(Math.abs(t)))?t[1]:NaN}function kr(t,n){var e=wr(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")}br.prototype=xr.prototype,xr.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};var Ar={"%":(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)=>kr(100*t,n),r:kr,s:function(t,n){var e=wr(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(vr=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")+wr(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Or(t){return t}var Sr,jr,Cr,_r=Array.prototype.map,Er=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Dr(t,n,e,r){var i,o=re(t,n,e);switch((r=br(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Mr(n)/3)))-Mr(Math.abs(t)))}(o,a))||(r.precision=i),Cr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Mr(n)-Mr(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Mr(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return jr(r)}function Fr(t){var n=t.domain;return t.ticks=function(t){var e=n();return ne(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Dr(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,s=o[a],l=o[u],c=10;for(l<s&&(i=s,s=l,l=i,i=a,a=u,u=i);c-- >0;){if((i=ee(s,l,e))===r)return o[a]=s,o[u]=l,n(o);if(i>0)s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function Tr(){var t=yr();return t.copy=function(){return gr(t,Tr())},Bn.apply(t,arguments),Fr(t)}function $r(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,sr),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return $r(t).unknown(n)},t=arguments.length?Array.from(t,sr):[0,1],Fr(e)}function Nr(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 Lr(t){return Math.log(t)}function Pr(t){return Math.exp(t)}function zr(t){return-Math.log(-t)}function Ur(t){return-Math.exp(-t)}function Wr(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Hr(t){return(n,e)=>-t(-n,e)}function Br(t){const n=t(Lr,Pr),e=n.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(o),i=function(t){return 10===t?Wr:t===Math.E?Math.exp:n=>Math.pow(t,n)}(o),e()[0]<0?(r=Hr(r),i=Hr(i),t(zr,Ur)):t(Lr,Pr),n}return n.base=function(t){return arguments.length?(o=+t,a()):o},n.domain=function(t){return arguments.length?(e(t),a()):e()},n.ticks=t=>{const n=e();let a=n[0],u=n[n.length-1];const s=u<a;s&&([a,u]=[u,a]);let l,c,f=r(a),h=r(u);const d=null==t?10:+t;let g=[];if(!(o%1)&&h-f<d){if(f=Math.floor(f),h=Math.ceil(h),a>0){for(;f<=h;++f)for(l=1;l<o;++l)if(c=f<0?l/i(-f):l*i(f),!(c<a)){if(c>u)break;g.push(c)}}else for(;f<=h;++f)for(l=o-1;l>=1;--l)if(c=f>0?l/i(-f):l*i(f),!(c<a)){if(c>u)break;g.push(c)}2*g.length<d&&(g=ne(a,u,d))}else g=ne(f,h,Math.min(h-f,d)).map(i);return s?g.reverse():g},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===o?"s":","),"function"!=typeof e&&(o%1||null!=(e=br(e)).precision||(e.trim=!0),e=jr(e)),t===1/0)return e;const a=Math.max(1,o*t/n.ticks().length);return t=>{let n=t/i(Math.round(r(t)));return n*o<o-.5&&(n*=o),n<=a?e(t):""}},n.nice=()=>e(Nr(e(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),n}function Ir(){const t=Br(pr()).domain([1,10]);return t.copy=()=>gr(t,Ir()).base(t.base()),Bn.apply(t,arguments),t}function Rr(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function qr(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function Yr(t){var n=1,e=t(Rr(n),qr(n));return e.constant=function(e){return arguments.length?t(Rr(n=+e),qr(n)):n},Fr(e)}function Vr(){var t=Yr(pr());return t.copy=function(){return gr(t,Vr()).constant(t.constant())},Bn.apply(t,arguments)}function Kr(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Zr(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Xr(t){return t<0?-t*t:t*t}function Gr(t){var n=t(cr,cr),e=1;function r(){return 1===e?t(cr,cr):.5===e?t(Zr,Xr):t(Kr(e),Kr(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},Fr(n)}function Qr(){var t=Gr(pr());return t.copy=function(){return gr(t,Qr()).exponent(t.exponent())},Bn.apply(t,arguments),t}function Jr(){return Qr.apply(null,arguments).exponent(.5)}function ti(t){return Math.sign(t)*t*t}function ni(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function ei(){var t,n=yr(),e=[0,1],r=!1;function i(e){var i=ni(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(ti(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,sr)).map(ti)),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 ei(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},Bn.apply(i,arguments),Fr(i)}function ri(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 ii(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 oi(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function ai(t,n,e=0,r=t.length-1,i){for(i=void 0===i?oi:function(t=ie){if(t===ie)return oi;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))}}(i);r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,u=Math.log(o),s=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*s*(o-s)/o)*(a-o/2<0?-1:1);ai(t,n,Math.max(e,Math.floor(n-a*s/o+l)),Math.min(r,Math.floor(n+(o-a)*s/o+l)),i)}const o=t[n];let a=e,u=r;for(ui(t,e,n),i(t[r],o)>0&&ui(t,e,r);a<u;){for(ui(t,a,u),++a,--u;i(t[a],o)<0;)++a;for(;i(t[u],o)>0;)--u}0===i(t[e],o)?ui(t,e,u):(++u,ui(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function ui(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function si(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 ii(t);if(n>=1)return ri(t);var r,i=(r-1)*n,o=Math.floor(i),a=ri(ai(t,o).subarray(0,o+1));return a+(ii(t.subarray(o+1))-a)*(i-o)}}function li(t,n,e=se){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,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function ci(){var t,n=[],e=[],r=[];function i(){var t=0,i=Math.max(1,e.length);for(r=new Array(i-1);++t<i;)r[t-1]=li(n,t/i);return o}function o(n){return null==n||isNaN(n=+n)?t:e[fe(r,n)]}return o.invertExtent=function(t){var i=e.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:n[0],i<r.length?r[i]:n[n.length-1]]},o.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(ie),i()},o.range=function(t){return arguments.length?(e=Array.from(t),i()):e.slice()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return ci().domain(n).range(e).unknown(t)},Bn.apply(o,arguments)}function fi(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[fe(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 fi().domain([n,e]).range(o).unknown(t)},Bn.apply(Fr(a),arguments)}function hi(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[fe(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 hi().domain(n).range(e).unknown(t)},Bn.apply(i,arguments)}Sr=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Or:(n=_r.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=n[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(t.substring(i-=u,i+u)),!((s+=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?Or:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(_r.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=br(t)).fill,e=t.align,f=t.sign,h=t.symbol,d=t.zero,g=t.width,p=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(p=!0,m="g"):Ar[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():"",x="$"===h?o:/[%p]/.test(m)?s:"",w=Ar[m],M=/[defgprs%]/.test(m);function k(t){var i,o,s,h=b,k=x;if("c"===m)k=w(t)+k,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(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)),A&&0==+t&&"+"!==f&&(A=!1),h=(A?"("===f?f:l:"-"===f||"("===f?"":f)+h,k=("s"===m?Er[8+vr/3]:"")+k+(A&&"("===f?")":""),M)for(i=-1,o=t.length;++i<o;)if(48>(s=t.charCodeAt(i))||s>57){k=(46===s?a+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}p&&!d&&(t=r(t,1/0));var O=h.length+t.length+k.length,S=O<g?new Array(g-O+1).join(n):"";switch(p&&d&&(t=r(S+t,S.length?g-k.length:1/0),S=""),e){case"<":t=h+t+k+S;break;case"=":t=h+S+t+k;break;case"^":t=S.slice(0,O=S.length>>1)+h+t+k+S.slice(O);break;default:t=S+h+t+k}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)),k.toString=function(){return t+""},k}return{format:f,formatPrefix:function(t,n){var e=f(((t=br(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Mr(n)/3))),i=Math.pow(10,-r),o=Er[8+r/3];return function(t){return e(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),jr=Sr.format,Cr=Sr.formatPrefix;const di=1e3,gi=6e4,pi=36e5,yi=864e5,vi=6048e5,mi=31536e6;var bi=new Date,xi=new Date;function wi(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 wi((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 bi.setTime(+n),xi.setTime(+r),t(bi),t(xi),Math.floor(e(bi,xi))},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 Mi=wi((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Mi.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?wi((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Mi:null};var ki=Mi,Ai=(Mi.range,wi((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*di)}),(function(t,n){return(n-t)/di}),(function(t){return t.getUTCSeconds()}))),Oi=Ai,Si=(Ai.range,wi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*di)}),(function(t,n){t.setTime(+t+n*gi)}),(function(t,n){return(n-t)/gi}),(function(t){return t.getMinutes()}))),ji=Si,Ci=(Si.range,wi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*di-t.getMinutes()*gi)}),(function(t,n){t.setTime(+t+n*pi)}),(function(t,n){return(n-t)/pi}),(function(t){return t.getHours()}))),_i=Ci,Ei=(Ci.range,wi((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*gi)/yi),(t=>t.getDate()-1))),Di=Ei;function Fi(t){return wi((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())*gi)/vi}))}Ei.range;var Ti=Fi(0),$i=Fi(1),Ni=Fi(2),Li=Fi(3),Pi=Fi(4),zi=Fi(5),Ui=Fi(6),Wi=(Ti.range,$i.range,Ni.range,Li.range,Pi.range,zi.range,Ui.range,wi((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()}))),Hi=Wi,Bi=(Wi.range,wi((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()})));Bi.every=function(t){return isFinite(t=Math.floor(t))&&t>0?wi((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};var Ii=Bi,Ri=(Bi.range,wi((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*gi)}),(function(t,n){return(n-t)/gi}),(function(t){return t.getUTCMinutes()}))),qi=Ri,Yi=(Ri.range,wi((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*pi)}),(function(t,n){return(n-t)/pi}),(function(t){return t.getUTCHours()}))),Vi=Yi,Ki=(Yi.range,wi((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/yi}),(function(t){return t.getUTCDate()-1}))),Zi=Ki;function Xi(t){return wi((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)/vi}))}Ki.range;var Gi=Xi(0),Qi=Xi(1),Ji=Xi(2),to=Xi(3),no=Xi(4),eo=Xi(5),ro=Xi(6),io=(Gi.range,Qi.range,Ji.range,to.range,no.range,eo.range,ro.range,wi((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()}))),oo=io,ao=(io.range,wi((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()})));ao.every=function(t){return isFinite(t=Math.floor(t))&&t>0?wi((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};var uo=ao;function so(t,n,e,r,i,o){const a=[[Oi,1,di],[Oi,5,5e3],[Oi,15,15e3],[Oi,30,3e4],[o,1,gi],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,pi],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,yi],[r,2,1728e5],[e,1,vi],[n,1,2592e6],[n,3,7776e6],[t,1,mi]];function u(n,e,r){const i=Math.abs(e-n)/r,o=ae((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(re(n/mi,e/mi,r));if(0===o)return ki.every(Math.max(re(n,e,r),1));const[u,s]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return u.every(s)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"==typeof e.range?e:u(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},u]}ao.range;const[lo,co]=so(uo,oo,Gi,Zi,Vi,qi),[fo,ho]=so(Ii,Hi,Ti,Di,_i,ji);function go(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 po(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 yo(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var vo,mo,bo,xo={"-":"",_:" ",0:"0"},wo=/^\s*\d+/,Mo=/^%/,ko=/[\\^$*+?|[\]().{}]/g;function Ao(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 Oo(t){return t.replace(ko,"\\$&")}function So(t){return new RegExp("^(?:"+t.map(Oo).join("|")+")","i")}function jo(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function Co(t,n,e){var r=wo.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function _o(t,n,e){var r=wo.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Eo(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Do(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Fo(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function To(t,n,e){var r=wo.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function $o(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function No(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 Lo(t,n,e){var r=wo.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Po(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function zo(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Uo(t,n,e){var r=wo.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Wo(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Ho(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Bo(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Io(t,n,e){var r=wo.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Ro(t,n,e){var r=wo.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function qo(t,n,e){var r=Mo.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Yo(t,n,e){var r=wo.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Vo(t,n,e){var r=wo.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Ko(t,n){return Ao(t.getDate(),n,2)}function Zo(t,n){return Ao(t.getHours(),n,2)}function Xo(t,n){return Ao(t.getHours()%12||12,n,2)}function Go(t,n){return Ao(1+Di.count(Ii(t),t),n,3)}function Qo(t,n){return Ao(t.getMilliseconds(),n,3)}function Jo(t,n){return Qo(t,n)+"000"}function ta(t,n){return Ao(t.getMonth()+1,n,2)}function na(t,n){return Ao(t.getMinutes(),n,2)}function ea(t,n){return Ao(t.getSeconds(),n,2)}function ra(t){var n=t.getDay();return 0===n?7:n}function ia(t,n){return Ao(Ti.count(Ii(t)-1,t),n,2)}function oa(t){var n=t.getDay();return n>=4||0===n?Pi(t):Pi.ceil(t)}function aa(t,n){return t=oa(t),Ao(Pi.count(Ii(t),t)+(4===Ii(t).getDay()),n,2)}function ua(t){return t.getDay()}function sa(t,n){return Ao($i.count(Ii(t)-1,t),n,2)}function la(t,n){return Ao(t.getFullYear()%100,n,2)}function ca(t,n){return Ao((t=oa(t)).getFullYear()%100,n,2)}function fa(t,n){return Ao(t.getFullYear()%1e4,n,4)}function ha(t,n){var e=t.getDay();return Ao((t=e>=4||0===e?Pi(t):Pi.ceil(t)).getFullYear()%1e4,n,4)}function da(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Ao(n/60|0,"0",2)+Ao(n%60,"0",2)}function ga(t,n){return Ao(t.getUTCDate(),n,2)}function pa(t,n){return Ao(t.getUTCHours(),n,2)}function ya(t,n){return Ao(t.getUTCHours()%12||12,n,2)}function va(t,n){return Ao(1+Zi.count(uo(t),t),n,3)}function ma(t,n){return Ao(t.getUTCMilliseconds(),n,3)}function ba(t,n){return ma(t,n)+"000"}function xa(t,n){return Ao(t.getUTCMonth()+1,n,2)}function wa(t,n){return Ao(t.getUTCMinutes(),n,2)}function Ma(t,n){return Ao(t.getUTCSeconds(),n,2)}function ka(t){var n=t.getUTCDay();return 0===n?7:n}function Aa(t,n){return Ao(Gi.count(uo(t)-1,t),n,2)}function Oa(t){var n=t.getUTCDay();return n>=4||0===n?no(t):no.ceil(t)}function Sa(t,n){return t=Oa(t),Ao(no.count(uo(t),t)+(4===uo(t).getUTCDay()),n,2)}function ja(t){return t.getUTCDay()}function Ca(t,n){return Ao(Qi.count(uo(t)-1,t),n,2)}function _a(t,n){return Ao(t.getUTCFullYear()%100,n,2)}function Ea(t,n){return Ao((t=Oa(t)).getUTCFullYear()%100,n,2)}function Da(t,n){return Ao(t.getUTCFullYear()%1e4,n,4)}function Fa(t,n){var e=t.getUTCDay();return Ao((t=e>=4||0===e?no(t):no.ceil(t)).getUTCFullYear()%1e4,n,4)}function Ta(){return"+0000"}function $a(){return"%"}function Na(t){return+t}function La(t){return Math.floor(+t/1e3)}function Pa(t){return new Date(t)}function za(t){return t instanceof Date?+t:+new Date(+t)}function Ua(t,n,e,r,i,o,a,u,s,l){var c=yr(),f=c.invert,h=c.domain,d=l(".%L"),g=l(":%S"),p=l("%I:%M"),y=l("%I %p"),v=l("%a %d"),m=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(s(t)<t?d:u(t)<t?g:a(t)<t?p:o(t)<t?y:r(t)<t?i(t)<t?v:m:e(t)<t?b:x)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,za)):h().map(Pa)},c.ticks=function(n){var e=h();return t(e[0],e[e.length-1],null==n?10:n)},c.tickFormat=function(t,n){return null==n?w:l(n)},c.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(Nr(e,t)):c},c.copy=function(){return gr(c,Ua(t,n,e,r,i,o,a,u,s,l))},c}function Wa(){return Bn.apply(Ua(fo,ho,Ii,Hi,Ti,Di,_i,ji,Oi,mo).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ha(){return Bn.apply(Ua(lo,co,uo,oo,Gi,Zi,Vi,qi,Oi,bo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ba(){var t,n,e,r,i,o=0,a=1,u=cr,s=!1;function l(n){return null==n||isNaN(n=+n)?i:u(0===e?.5:(n=(r(n)-t)*e,s?Math.max(0,Math.min(1,n)):n))}function c(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),l):[u(0),u(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),n=r(a=+a),e=t===n?0:1/(n-t),l):[o,a]},l.clamp=function(t){return arguments.length?(s=!!t,l):s},l.interpolator=function(t){return arguments.length?(u=t,l):u},l.range=c(ar),l.rangeRound=c(ur),l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),l}}function Ia(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ra(){var t=Fr(Ba()(cr));return t.copy=function(){return Ia(t,Ra())},In.apply(t,arguments)}function qa(){var t=Br(Ba()).domain([1,10]);return t.copy=function(){return Ia(t,qa()).base(t.base())},In.apply(t,arguments)}function Ya(){var t=Yr(Ba());return t.copy=function(){return Ia(t,Ya()).constant(t.constant())},In.apply(t,arguments)}function Va(){var t=Gr(Ba());return t.copy=function(){return Ia(t,Va()).exponent(t.exponent())},In.apply(t,arguments)}function Ka(){return Va.apply(null,arguments).exponent(.5)}function Za(){var t=[],n=cr;function e(e){if(null!=e&&!isNaN(e=+e))return n((fe(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(ie),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)=>si(t,r/n)))},e.copy=function(){return Za(n).domain(t)},In.apply(e,arguments)}function Xa(t,n){void 0===n&&(n=t,t=ar);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 Ga(){var t,n,e,r,i,o,a,u=0,s=.5,l=1,c=1,f=cr,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(c*t<c*n?r:i),f(h?Math.max(0,Math.min(1,t)):t))}function g(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,f=Xa(t,[e,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,s,l]=a,t=o(u=+u),n=o(s=+s),e=o(l=+l),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),c=n<t?-1:1,d):[u,s,l]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=g(ar),d.rangeRound=g(ur),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(u),n=a(s),e=a(l),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),c=n<t?-1:1,d}}function Qa(){var t=Fr(Ga()(cr));return t.copy=function(){return Ia(t,Qa())},In.apply(t,arguments)}function Ja(){var t=Br(Ga()).domain([.1,1,10]);return t.copy=function(){return Ia(t,Ja()).base(t.base())},In.apply(t,arguments)}function tu(){var t=Yr(Ga());return t.copy=function(){return Ia(t,tu()).constant(t.constant())},In.apply(t,arguments)}function nu(){var t=Gr(Ga());return t.copy=function(){return Ia(t,nu()).exponent(t.exponent())},In.apply(t,arguments)}function eu(){return nu.apply(null,arguments).exponent(.5)}vo=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,l=So(i),c=jo(i),f=So(o),h=jo(o),d=So(a),g=jo(a),p=So(u),y=jo(u),v=So(s),m=jo(s),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Ko,e:Ko,f:Jo,g:ca,G:ha,H:Zo,I:Xo,j:Go,L:Qo,m:ta,M:na,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Na,s:La,S:ea,u:ra,U:ia,V:aa,w:ua,W:sa,x:null,X:null,y:la,Y:fa,Z:da,"%":$a},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:ga,e:ga,f:ba,g:Ea,G:Fa,H:pa,I:ya,j:va,L:ma,m:xa,M:wa,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Na,s:La,S:Ma,u:ka,U:Aa,V:Sa,w:ja,W:Ca,x:null,X:null,y:_a,Y:Da,Z:Ta,"%":$a},w={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=g.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=f.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=p.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:zo,e:zo,f:Ro,g:$o,G:To,H:Wo,I:Wo,j:Uo,L:Io,m:Po,M:Ho,p:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.p=c.get(r[0].toLowerCase()),e+r[0].length):-1},q:Lo,Q:Yo,s:Vo,S:Bo,u:_o,U:Eo,V:Do,w:Co,W:Fo,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:$o,Y:To,Z:No,"%":qo};function M(t,n){return function(e){var r,i,o,a=[],u=-1,s=0,l=t.length;for(e instanceof Date||(e=new Date(+e));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(i=xo[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function k(t,n){return function(e){var r,i,o=yo(1900,void 0,1);if(A(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=po(yo(o.y,0,1))).getUTCDay(),r=i>4||0===i?Qi.ceil(r):Qi(r),r=Zi.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=go(yo(o.y,0,1))).getDay(),r=i>4||0===i?$i.ceil(r):$i(r),r=Di.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?po(yo(o.y,0,1)).getUTCDay():go(yo(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,po(o)):go(o)}}function A(t,n,e,r){for(var i,o,a=0,u=n.length,s=e.length;a<u;){if(r>=s)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=w[i in xo?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=M(e,b),b.X=M(r,b),b.c=M(n,b),x.x=M(e,x),x.X=M(r,x),x.c=M(n,x),{format:function(t){var n=M(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=k(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=M(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=k(t+="",!0);return n.toString=function(){return t},n}}}({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"]}),mo=vo.format,vo.parse,bo=vo.utcFormat,vo.utcParse;const ru=["linear","time","log","sqrt"];function iu(t){return"function"==typeof t?O(t.copy)&&O(t.domain)&&O(t.range):"string"==typeof t&&ru.includes(t)}function ou(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function au(t,n){if(!t.data)return"linear";const e=S(t[n]);return Nn(t.data.map((t=>{const r=h()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function uu(n){if(iu(n)){const r=`scale${e=n,e&&e[0].toUpperCase()+e.slice(1)}`;return t[r]()}var e;return Tr()}function su(t,n){return function(t,n){if(!ou(t,n))return;const e=t.scale[n]||t.scale;return"string"==typeof e?e:function(t){if("string"==typeof t)return t;const n=lu.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}(e)}(t,n)||au(t,n)}const lu=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function cu(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function fu(t,n){return cu(t)?t.reduce(((t,e,r)=>{let i=e;return n&&n[r]&&(i=fu(e)),t[r]=i,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function hu(t){return cu(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?fu(t,{errorX:!0,errorY:!0}):t;var n}function du(t,n){const e=(h()(t.domain)?t.domain[n]:t.domain)||function(t,n){const e=function(t,n){if(!ou(t,n))return;const e=t.scale[n]||t.scale;return iu(e)?O(e)?e:uu(e):void 0}(t,n);return e?"string"==typeof e?uu(e):e:uu(function(t,n){let e;if(t.domain&&t.domain[n]?e=t.domain[n]:t.domain&&Array.isArray(t.domain)&&(e=t.domain),e)return Nn(e)?"time":"linear"}(t,n)||au(t,n))}(t,n).domain(),r=t.samples||1,i=Math.max(...e),o=Math.min(...e),a=function(t,n,e){const r=n?t:0;let i=n||t;i||(i=0);const o=i-r,a=Math.abs(o),u=o/a||1,s=e||1,l=Math.max(Math.ceil(a/s),0);return Array.from(Array(l),((t,n)=>r+n*u*s))}(o,i,(i-o)/r);return a[a.length-1]===i?a:a.concat(i)}function gu(t,n,e){if(void 0===e&&(e="ascending"),!n)return t;let r=n;"x"!==n&&"y"!==n||(r=`_${n}`);const i="ascending"===e?"asc":"desc";return c()(t,r,i)}function pu(t,n){const e=function(t,n){const{tickValues:e,tickFormat:r}=t;let i;return i=e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[],i.filter((t=>"string"==typeof t))}(t,n),r=function(t,n){if(!t.categories)return[];const e=function(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?r.filter((t=>void 0!==t)):[]}(t,n),i=function(t,n){if(!Array.isArray(t.data)&&!cu(t.data))return[];const e=S(void 0===t[n]?n:t[n]);return gu(t.data.reduce(((t,n)=>(t.push(hu(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=hu(n);return t.push(e(r)),t}),[]).filter((t=>"string"==typeof t)).reduce(((t,n)=>(null!=n&&-1===t.indexOf(n)&&t.push(n),t)),[])}(t,n),o=Wn()([...e,...r,...i]);return 0===o.length?null:o.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function yu(t,n,e){if(!Array.isArray(t)&&!cu(t)||function(t){return cu(t)?t.size:t.length}(t)<1)return[];const r=["x","y","y0"],i=(e=Array.isArray(e)?e:r).reduce(((t,e)=>{var r;return t[e]=S(void 0!==n[r=e]?n[r]:r),t}),{}),o=zn()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let a;!1===o&&(a={x:-1!==e.indexOf("x")?pu(n,"x"):void 0,y:-1!==e.indexOf("y")?pu(n,"y"):void 0,y0:-1!==e.indexOf("y0")?pu(n,"y"):void 0});const u=o?t:t.reduce(((t,n,r)=>{const o=hu(n),u={x:r,y:o},s=e.reduce(((t,n)=>{const e=i[n](o),r=void 0!==e?e:u[n];return void 0!==r&&("string"==typeof r&&a[n]?(t[`${n}Name`]=r,t[`_${n}`]=a[n][r]):t[`_${n}`]=r),t}),{}),l=Object.assign({},s,o);return y()(l)||t.push(l),t}),[]),s=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:su(n,"x"),y:su(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;const i=(t,n)=>"log"!==r[n]||0!==t[`_${n}`];return t.map((t=>i(t,"x")&&i(t,"y")&&i(t,"y0")?t:(t=>{const n=i(t,"x")?t._x:e,r=i(t,"y")?t._y:e,o=i(t,"y0")?t._y0:e;return Object.assign({},t,{_x:n,_y:r,_y0:o})})(t)))}(gu(u,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=O(i=t.eventKey)?i:null==i?()=>{}:m()(i);var i;return n.map(((t,n)=>{if(void 0!==t.eventKey)return t;if(e){const e=r(t,n);return void 0!==e?Object.assign({eventKey:e},t):t}return t}))}(n,s)}function vu(t,n,e){const{a:r,d:i,e:o,f:a}=n;return"y"===e?i*t+a:r*t+o}function mu(t){return!(!t||void 0===t.identifier)}function bu(t){if(mu(t.nativeEvent))return;const n=t=>"svg"===t.nodeName?t:t.parentNode?n(t.parentNode):t;return n(t.target)}var xu=r(7491),wu=r.n(xu),Mu=r(6898);const ku=new class{withinBounds(t,n){const{width:e,height:r,polar:i,origin:o,scale:a}=t,u=M(t,"voronoiPadding"),{x:s,y:l}=n;if(i){const t=Math.pow(s-o.x,2)+Math.pow(l-o.y,2),n=Math.max(...a.y.range());return t<Math.pow(n,2)}return s>=u.left&&s<=e-u.right&&l>=u.top&&l<=r-u.bottom}getDatasets(t){const n={x:Ln(t.domain.x),y:Ln(t.domain.y)},r=s().Children.toArray(t.children),i=(e,r,i)=>{const o=i&&i.type&&i.type.continuous,a=i?i.props&&i.props.style:t.style;return e.map(((e,i)=>{const{x:u,y:s,y0:l,x0:c}=x(e),f=(Number(u)+Number(c))/2,h=(Number(s)+Number(l))/2;return Object.assign({_voronoiX:"y"===t.voronoiDimension?n.x:f,_voronoiY:"x"===t.voronoiDimension?n.y:h,eventKey:i,childName:r,continuous:o,style:a},e)}))};if(t.data)return i(t.data);const o=t=>{const n=function(t){return t.data?yu(t.data,t):yu(function(t){const n=du(t,"x"),e=du(t,"y");return n.map(((t,n)=>({x:t,y:e[n]})))}(t),t)}(t);return Array.isArray(n)&&n.length>0?n:void 0};return function(n,r,a,l,c){void 0===a&&(a={}),void 0===l&&(l=[]),void 0===c&&(c=(t,n)=>t.concat(n));const f=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],h=(n,r,u)=>n.reduce(((n,u,l)=>{let d=n;const g=u.type&&u.type.role,p=u.props.name||`${g}-${r[l]}`;if(u.props&&u.props.children){const t=Object.assign({},u.props,e()(a,f)),n=u.type&&"stack"===u.type.role&&O(u.type.getChildren)?u.type.getChildren(t):s().Children.toArray(u.props.children).map((n=>{const r=Object.assign({},n.props,e()(t,f));return s().cloneElement(n,r)})),r=n.map(((t,n)=>`${p}-${n}`)),i=h(n,r,u);d=c(d,i)}else{const n=((n,e)=>{const r=(n.props||{}).name||e,a=t.voronoiBlacklist||[],u=a.filter((t=>!!t&&"string"==typeof t.valueOf())),l=a.filter($n()).some((t=>t.test(r)));if(!function(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=s().Children.toArray(t.props.children);e=r.length?n(r[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(e)}(n)||u.includes(r)||l)return null;const c=(n.type&&O(n.type.getData)?n.type.getData:o)(n.props);return c?i(c,r,n):null})(u,p);n&&(d=c(d,n))}return d}),l),d=n.filter(u.isValidElement),g=d.map(((t,n)=>n));return h(d,g)}(r,0,t)}findPoints(t,n){return t.filter((t=>n._voronoiX===t._voronoiX&&n._voronoiY===t._voronoiY))}withinRadius(t,n,e){if(!t)return!1;if(!e)return!0;const{x:r,y:i}=n;return Math.pow(r-t[0],2)+Math.pow(i-t[1],2)<Math.pow(e,2)}getVoronoiPoints(t,n){const e=this.getDatasets(t),r=e.map((n=>{const{x:e,y:r}=w(t,n);return[e,r]})),i=Mu.Z.from(r).find(n.x,n.y);return{points:this.withinRadius(r[i],n,t.radius)?this.findPoints(e,e[i]):[],index:i}}getActiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:i,activateLabels:o,labels:a}=t;if(!i&&!o)return[];const u=i?["data"]:[],s=a&&!o?u:u.concat("labels");return y()(s)?[]:s.map((t=>{const i=!0===r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:i,target:t,mutation:()=>({active:!0})}}))}getInactiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:i,activateLabels:o,labels:a}=t;if(!i&&!o)return[];const u=i?["data"]:[],s=a&&!o?u:u.concat("labels");return y()(s)?[]:s.map((t=>{const i=r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:i,target:t,mutation:()=>null}}))}getParentMutation(t,n,e,r){return[{target:"parent",eventKey:"parent",mutation:()=>({activePoints:t,mousePosition:n,parentSVG:e,vIndex:r})}]}onActivated(t,n){O(t.onActivated)&&t.onActivated(n,t)}onDeactivated(t,n){O(t.onDeactivated)&&t.onDeactivated(n,t)}onMouseLeave=(t,n)=>{this.onMouseMove.cancel();const e=n.activePoints||[];this.onDeactivated(n,e);const r=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return this.getParentMutation([]).concat(...r)};handleMouseMove=(t,n)=>{const e=n.activePoints||[],r=n.parentSVG||bu(t),i=function(t,n){if(mu(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};const e=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,r=function(t){return t.getScreenCTM().inverse()}(n||bu(e));return{x:vu(e.clientX,r,"x"),y:vu(e.clientY,r,"y")}}(t,r);if(!this.withinBounds(n,i)){this.onDeactivated(n,e);const t=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return this.getParentMutation([],i,r).concat(...t)}const{points:o=[],index:a}=this.getVoronoiPoints(n,i),u=this.getParentMutation(o,i,r,a);if(e.length&&wu()(o,e))return u;this.onActivated(n,o),this.onDeactivated(n,e);const s=o.length?o.map((t=>this.getActiveMutations(n,t))):[],l=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return u.concat(...l,...s)};onMouseMove=Fn()(this.handleMouseMove,32,{leading:!0,trailing:!1})},Au={activateData:!0,activateLabels:!0,labelComponent:s().createElement(An,null),voronoiPadding:5},Ou=t=>e()(t,["_x","_x1","_x0","_y","_y1","_y0"]),Su=t=>{const n={...Au,...t},{children:e}=n,r=(t,e)=>{const{labels:r,labelComponent:i,theme:o}=n,u=i.props||{},s=o&&o.voronoi&&o.voronoi.style?o.voronoi.style:{},l="flyout"===e?u.flyoutStyle:u.style;return t.reduce(((t,n,i)=>{const o=a()({},u,{datum:n,active:!0}),c=O(r)?r(o):void 0,f=void 0!==c?`${c}`.split("\n"):[],h=n.style&&n.style[e]||{},d=Array.isArray(l)?l[i]:l,g=A(a()({},d,h,s[e]),o),p=f.length?f.map((()=>g)):[g];return t.concat(p)}),[])},i=t=>{const{labels:e,scale:i,labelComponent:o,theme:u,width:s,height:l}=n,c=o.props||{},f=t.reduce(((t,n)=>{const r=a()({},c,{datum:n,active:!0}),i=O(e)?e(r):null;return null==i?t:t.concat(`${i}`.split("\n"))}),[]),{childName:h,eventKey:d,style:g,continuous:p,...y}=t[0],v=n.name===h?h:`${n.name}-${h}`,m=a()({key:`${v}-${d}-voronoi-tooltip`,id:`${v}-${d}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:t,datum:y,scale:i,theme:u},c,{text:f,width:s,height:l,style:r(t,"labels"),flyoutStyle:r(t,"flyout")[0]},(t=>{const{voronoiDimension:e,horizontal:r,mouseFollowTooltips:i}=n,o=Ou(t[0]),a=e&&t.length>1,u=void 0!==o._y1?o._y1:o._y;return{orientation:i?void 0:r?u<0?"left":"right":u<0?"bottom":"top",pointerLength:a?0:void 0,constrainToVisibleArea:!(!a&&!i)||void 0}})(t)),b=((t,e)=>{const{mousePosition:r,mouseFollowTooltips:i}=n,o=(()=>{const{horizontal:t,voronoiDimension:e}=n;return t&&e?"x"===e?"y":"x":e})(),u=Ou(e[0]),s=w(n,u);let l=i?r:void 0;if(!o||e.length<2)return{...s,center:a()({},t.center,l)};const c="y"===o?r.x:s.x,f="x"===o?r.y:s.y;return l=i?r:{x:c,y:f},{x:c,y:f,center:a()({},t.center,l)}})(m,t);return a()({},b,m)};return{props:n,children:[...s().Children.toArray(e),(()=>{const{labels:t,activePoints:e,labelComponent:r}=n;if(!t)return null;if(Array.isArray(e)&&e.length){const t=i(e),{text:n}=t;return(Array.isArray(n)?n.filter(Boolean).length:n)?s().cloneElement(r,t):null}return null})()]}},ju=t=>{const{props:n,children:e}=Su(t);return s().createElement(En,n,e)};ju.role="container",ju.defaultEvents=t=>{const n={...Au,...t},e=(t,e)=>(r,i,o,a)=>e||n.disable?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseLeave:e(ku.onMouseLeave),onTouchCancel:e(ku.onMouseLeave),onMouseMove:e(ku.onMouseMove),onTouchMove:e(ku.onMouseMove)}},{target:"data",eventHandlers:n.disable?{}:{onMouseOver:()=>null,onMouseOut:()=>null,onMouseMove:()=>null}}]}}(),i}()}));
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryVoronoiContainer=n(require("react")):t.VictoryVoronoiContainer=n(t.React)}(self,(function(t){return function(){var n={3644:function(t){t.exports=function(){"use strict";var t=Math.pow(2,-52),n=new Uint32Array(512),e=function(t){var n=t.length>>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;var 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()};function r(t,n,e,r){var i=t-e,o=n-r;return i*i+o*o}function i(t,n,e,r,i,o){var a=(r-n)*(i-t),u=(e-t)*(o-n);return Math.abs(a-u)>=33306690738754716e-32*Math.abs(a+u)?a-u:0}function o(t,n,e,r,o,a){return(i(o,a,t,n,e,r)||i(t,n,e,r,o,a)||i(e,r,o,a,t,n))<0}function a(t,n,e,r,i,o){var a=e-t,u=r-n,s=i-t,l=o-n,c=a*a+u*u,f=s*s+l*l,h=.5/(a*l-u*s),d=(l*c-u*f)*h,g=(a*f-s*c)*h;return d*d+g*g}function u(t,n,e,r){if(r-e<=20)for(var i=e+1;i<=r;i++){for(var o=t[i],a=n[o],l=i-1;l>=e&&n[t[l]]>a;)t[l+1]=t[l--];t[l+1]=o}else{var c=e+1,f=r;s(t,e+r>>1,c),n[t[e]]>n[t[r]]&&s(t,e,r),n[t[c]]>n[t[r]]&&s(t,c,r),n[t[e]]>n[t[c]]&&s(t,e,c);for(var h=t[c],d=n[h];;){do{c++}while(n[t[c]]<d);do{f--}while(n[t[f]]>d);if(f<c)break;s(t,c,f)}t[e+1]=t[f],t[f]=h,r-c+1>=f-e?(u(t,n,c,r),u(t,n,e,f-1)):(u(t,n,e,f-1),u(t,n,c,r))}}function s(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function l(t){return t[0]}function c(t){return t[1]}return e.from=function(t,n,r){void 0===n&&(n=l),void 0===r&&(r=c);for(var i=t.length,o=new Float64Array(2*i),a=0;a<i;a++){var u=t[a];o[2*a]=n(u),o[2*a+1]=r(u)}return new e(o)},e.prototype.update=function(){for(var n=this,e=n.coords,i=n._hullPrev,s=n._hullNext,l=n._hullTri,c=n._hullHash,f=e.length>>1,h=1/0,d=1/0,g=-1/0,p=-1/0,y=0;y<f;y++){var v=e[2*y],m=e[2*y+1];v<h&&(h=v),m<d&&(d=m),v>g&&(g=v),m>p&&(p=m),this._ids[y]=y}for(var b,x,w,M=(h+g)/2,k=(d+p)/2,A=1/0,O=0;O<f;O++){var S=r(M,k,e[2*O],e[2*O+1]);S<A&&(b=O,A=S)}var j=e[2*b],C=e[2*b+1];A=1/0;for(var _=0;_<f;_++)if(_!==b){var E=r(j,C,e[2*_],e[2*_+1]);E<A&&E>0&&(x=_,A=E)}for(var D=e[2*x],F=e[2*x+1],T=1/0,$=0;$<f;$++)if($!==b&&$!==x){var N=a(j,C,D,F,e[2*$],e[2*$+1]);N<T&&(w=$,T=N)}var L=e[2*w],P=e[2*w+1];if(T===1/0){for(var z=0;z<f;z++)this._dists[z]=e[2*z]-e[0]||e[2*z+1]-e[1];u(this._ids,this._dists,0,f-1);for(var U=new Uint32Array(f),W=0,H=0,B=-1/0;H<f;H++){var I=this._ids[H];this._dists[I]>B&&(U[W++]=I,B=this._dists[I])}return this.hull=U.subarray(0,W),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(o(j,C,D,F,L,P)){var R=x,q=D,Y=F;x=w,D=L,F=P,w=R,L=q,P=Y}var V=function(t,n,e,r,i,o){var a=e-t,u=r-n,s=i-t,l=o-n,c=a*a+u*u,f=s*s+l*l,h=.5/(a*l-u*s);return{x:t+(l*c-u*f)*h,y:n+(a*f-s*c)*h}}(j,C,D,F,L,P);this._cx=V.x,this._cy=V.y;for(var K=0;K<f;K++)this._dists[K]=r(e[2*K],e[2*K+1],V.x,V.y);u(this._ids,this._dists,0,f-1),this._hullStart=b;var Z=3;s[b]=i[w]=x,s[x]=i[b]=w,s[w]=i[x]=b,l[b]=0,l[x]=1,l[w]=2,c.fill(-1),c[this._hashKey(j,C)]=b,c[this._hashKey(D,F)]=x,c[this._hashKey(L,P)]=w,this.trianglesLen=0,this._addTriangle(b,x,w,-1,-1,-1);for(var X=0,G=void 0,Q=void 0;X<this._ids.length;X++){var J=this._ids[X],tt=e[2*J],nt=e[2*J+1];if(!(X>0&&Math.abs(tt-G)<=t&&Math.abs(nt-Q)<=t)&&(G=tt,Q=nt,J!==b&&J!==x&&J!==w)){for(var et=0,rt=0,it=this._hashKey(tt,nt);rt<this._hashSize&&(-1===(et=c[(it+rt)%this._hashSize])||et===s[et]);rt++);for(var ot=et=i[et],at=void 0;at=s[ot],!o(tt,nt,e[2*ot],e[2*ot+1],e[2*at],e[2*at+1]);)if((ot=at)===et){ot=-1;break}if(-1!==ot){var ut=this._addTriangle(ot,J,s[ot],-1,-1,l[ot]);l[J]=this._legalize(ut+2),l[ot]=ut,Z++;for(var st=s[ot];at=s[st],o(tt,nt,e[2*st],e[2*st+1],e[2*at],e[2*at+1]);)ut=this._addTriangle(st,J,at,l[J],-1,l[st]),l[J]=this._legalize(ut+2),s[st]=st,Z--,st=at;if(ot===et)for(;o(tt,nt,e[2*(at=i[ot])],e[2*at+1],e[2*ot],e[2*ot+1]);)ut=this._addTriangle(at,J,ot,-1,l[ot],l[at]),this._legalize(ut+2),l[at]=ut,s[ot]=ot,Z--,ot=at;this._hullStart=i[J]=ot,s[ot]=i[st]=J,s[J]=st,c[this._hashKey(tt,nt)]=J,c[this._hashKey(e[2*ot],e[2*ot+1])]=ot}}}this.hull=new Uint32Array(Z);for(var lt=0,ct=this._hullStart;lt<Z;lt++)this.hull[lt]=ct,ct=s[ct];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},e.prototype._hashKey=function(t,n){return Math.floor((e=t-this._cx,r=n-this._cy,i=e/(Math.abs(e)+Math.abs(r)),(r>0?3-i:1+i)/4*this._hashSize))%this._hashSize;var e,r,i},e.prototype._legalize=function(t){for(var e=this,r=e._triangles,i=e._halfedges,o=e.coords,a=0,u=0;;){var s=i[t],l=t-t%3;if(u=l+(t+2)%3,-1!==s){var c=s-s%3,f=l+(t+1)%3,h=c+(s+2)%3,d=r[u],g=r[t],p=r[f],y=r[h];if(x=o[2*d],w=o[2*d+1],M=o[2*g],k=o[2*g+1],A=o[2*p],O=o[2*p+1],S=o[2*y],j=o[2*y+1],C=void 0,_=void 0,E=void 0,D=void 0,F=void 0,T=void 0,$=void 0,N=void 0,(C=x-S)*((D=k-j)*(N=(F=A-S)*F+(T=O-j)*T)-($=(E=M-S)*E+D*D)*T)-(_=w-j)*(E*N-$*F)+(C*C+_*_)*(E*T-D*F)<0){r[t]=y,r[s]=d;var v=i[h];if(-1===v){var m=this._hullStart;do{if(this._hullTri[m]===h){this._hullTri[m]=t;break}m=this._hullPrev[m]}while(m!==this._hullStart)}this._link(t,v),this._link(s,i[u]),this._link(u,h);var b=c+(s+1)%3;a<n.length&&(n[a++]=b)}else{if(0===a)break;t=n[--a]}}else{if(0===a)break;t=n[--a]}}var x,w,M,k,A,O,S,j,C,_,E,D,F,T,$,N;return u},e.prototype._link=function(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)},e.prototype._addTriangle=function(t,n,e,r,i,o){var 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},e}()},6898:function(t,n,e){"use strict";n.Z=void 0;var r,i=(r=e(3644))&&r.__esModule?r:{default:r};function o(t){return t[0]}function a(t){return t[1]}function u(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}var s=function(){function t(t){var n=new i.default(t);this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=n.coords,this._init(n)}var n=t.prototype;return n._init=function(t){var n=t,e=this.points;if(n.hull&&n.hull.length>2&&function(t){for(var n=t.triangles,e=t.coords,r=0;r<n.length;r+=3){var i=2*n[r],o=2*n[r+1],a=2*n[r+2];if((e[a]-e[i])*(e[o+1]-e[i+1])-(e[o]-e[i])*(e[a+1]-e[i+1])>1e-10)return!1}return!0}(n)){this.collinear=Int32Array.from({length:e.length/2},(function(t,n){return n})).sort((function(t,n){return e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]}));for(var r=this.collinear[0],o=this.collinear[this.collinear.length-1],a=[e[2*r],e[2*r+1],e[2*o],e[2*o+1]],s=1e-8*Math.sqrt(Math.pow(a[3]-a[1],2)+Math.pow(a[2]-a[0],2)),l=0,c=e.length/2;l<c;++l){var f=u(e[2*l],e[2*l+1],s);e[2*l]=f[0],e[2*l+1]=f[1]}t=new i.default(e)}for(var h=this.halfedges=t.halfedges,d=this.hull=t.hull,g=this.triangles=t.triangles,p=this.inedges.fill(-1),y=this._hullIndex.fill(-1),v=0,m=h.length;v<m;++v){var b=g[v%3==2?v-2:v+1];-1!==h[v]&&-1!==p[b]||(p[b]=v)}for(var x=0,w=d.length;x<w;++x)y[d[x]]=x;d.length<=2&&d.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=d[0],this.triangles[1]=d[1],this.triangles[2]=d[1],p[d[0]]=1,2===d.length&&(p[d[1]]=0))},n.neighbors=function(t){var n=[],e=this.inedges,r=this.hull,i=this._hullIndex,o=this.halfedges,a=this.triangles,u=e[t];if(-1===u)return n;var s=u,l=-1;do{if(l=a[s],n.push(l),a[s=s%3==2?s-2:s+1]!==t)break;if(-1===(s=o[s])){var c=r[(i[t]+1)%r.length];c!==l&&n.push(c);break}}while(s!==u);return n},n.find=function(t,n,e){if(void 0===e&&(e=0),(t=+t)!=t||(n=+n)!=n)return-1;for(var r,i=e;(r=this._step(e,t,n))>=0&&r!==e&&r!==i;)e=r;return r},n._step=function(t,n,e){var r=this.inedges,i=this.points;if(-1===r[t]||!i.length)return(t+1)%(i.length>>1);var o=t,a=Math.pow(n-i[2*t],2)+Math.pow(e-i[2*t+1],2),u=this.neighbors(t),s=Array.isArray(u),l=0;for(u=s?u:u[Symbol.iterator]();;){var c;if(s){if(l>=u.length)break;c=u[l++]}else{if((l=u.next()).done)break;c=l.value}var f=c,h=Math.pow(n-i[2*f],2)+Math.pow(e-i[2*f+1],2);h<a&&(a=h,o=f)}return o},t}();n.Z=s,s.from=function(t,n,e,r){return void 0===n&&(n=o),void 0===e&&(e=a),new s(function(t,n,e,r){for(var i=t.length,o=new Float64Array(2*i),a=0;a<i;++a){var u=t[a];o[2*a]=n.call(r,u,a,t),o[2*a+1]=e.call(r,u,a,t)}return o}(t,n,e,r))}},503:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),u=e(8541);function s(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=u,t.exports=s},3273:function(t,n,e){var r=e(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),u=e(8541);function s(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=u,t.exports=s},2596:function(t,n,e){var r=e(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},5510:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9955:function(t){t.exports=function(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}},8644:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},9559:function(t){t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},1634:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},4132:function(t,n,e){var r=e(8347),i=e(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];o.call(t,n)&&i(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3162:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},8347:function(t,n,e){var r=e(5525);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},6457:function(t,n,e){var r=e(9559),i=e(3608);t.exports=function t(n,e,o,a,u){var s=-1,l=n.length;for(o||(o=i),u||(u=[]);++s<l;){var c=n[s];e>0&&o(c)?e>1?t(c,e-1,o,a,u):r(u,c):a||(u[u.length]=c)}return u}},4432:function(t,n,e){var r=e(9026),i=e(3110);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},563:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},6776:function(t){t.exports=function(t,n){return null!=t&&n in Object(t)}},6123:function(t){t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},9070:function(t,n,e){var r=e(7028),i=e(3474);t.exports=function t(n,e,o,a,u){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,u))}},7028:function(t,n,e){var r=e(8708),i=e(8705),o=e(2813),a=e(6682),u=e(9667),s=e(163),l=e(4801),c=e(4289),f="[object Arguments]",h="[object Array]",d="[object Object]",g=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,p,y,v){var m=s(t),b=s(n),x=m?h:u(t),w=b?h:u(n),M=(x=x==f?d:x)==d,k=(w=w==f?d:w)==d,A=x==w;if(A&&l(t)){if(!l(n))return!1;m=!0,M=!1}if(A&&!M)return v||(v=new r),m||c(t)?i(t,n,e,p,y,v):o(t,n,x,e,p,y,v);if(!(1&e)){var O=M&&g.call(t,"__wrapped__"),S=k&&g.call(n,"__wrapped__");if(O||S){var j=O?t.value():t,C=S?n.value():n;return v||(v=new r),y(j,C,e,p,v)}}return!!A&&(v||(v=new r),a(t,n,e,p,y,v))}},9548:function(t,n,e){var r=e(8708),i=e(9070);t.exports=function(t,n,e,o){var a=e.length,u=a,s=!o;if(null==t)return!u;for(t=Object(t);a--;){var l=e[a];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var c=(l=e[a])[0],f=t[c],h=l[1];if(s&&l[2]){if(void 0===f&&!(c in t))return!1}else{var d=new r;if(o)var g=o(f,h,c,t,n,d);if(!(void 0===g?i(h,f,3,o,d):g))return!1}}return!0}},2229:function(t,n,e){var r=e(563),i=e(3474);t.exports=function(t){return i(t)&&"[object RegExp]"==r(t)}},3472:function(t,n,e){var r=e(758),i=e(5223),o=e(5346),a=e(163),u=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):u(t)}},7190:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},758:function(t,n,e){var r=e(9548),i=e(597),o=e(6878);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:function(t,n,e){var r=e(9070),i=e(9201),o=e(5066),a=e(726),u=e(5385),s=e(6878),l=e(3110);t.exports=function(t,n){return a(t)&&u(n)?s(l(t),n):function(e){var a=i(e,t);return void 0===a&&a===n?o(e,t):r(n,a,3)}}},8245:function(t,n,e){var r=e(8644),i=e(4432),o=e(3472),a=e(383),u=e(9521),s=e(9110),l=e(9409),c=e(5346),f=e(163);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return f(t)?function(n){return i(n,1===t.length?t[0]:t)}:t})):[c];var h=-1;n=r(n,s(o));var d=a(t,(function(t,e,i){return{criteria:r(n,(function(n){return n(t)})),index:++h,value:t}}));return u(d,(function(t,n){return l(t,n,e)}))}},5436:function(t,n,e){var r=e(6371),i=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},6371:function(t,n,e){var r=e(4432),i=e(6539),o=e(9026);t.exports=function(t,n,e){for(var a=-1,u=n.length,s={};++a<u;){var l=n[a],c=r(t,l);e(c,l)&&i(s,o(l,t),c)}return s}},1600:function(t){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},3301:function(t,n,e){var r=e(4432);t.exports=function(t){return function(n){return r(n,t)}}},6317:function(t,n,e){var r=e(5346),i=e(4280),o=e(201);t.exports=function(t,n){return o(i(t,n,r),t+"")}},6539:function(t,n,e){var r=e(4132),i=e(9026),o=e(9099),a=e(7709),u=e(3110);t.exports=function(t,n,e,s){if(!a(t))return t;for(var l=-1,c=(n=i(n,t)).length,f=c-1,h=t;null!=h&&++l<c;){var d=u(n[l]),g=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(l!=f){var p=h[d];void 0===(g=s?s(p,d,h):void 0)&&(g=a(p)?p:o(n[l+1])?[]:{})}r(h,d,g),h=h[d]}return t}},9521:function(t){t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},6316:function(t,n,e){var r=e(2596),i=e(8644),o=e(163),a=e(1995),u=r?r.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(o(n))return i(n,t)+"";if(a(n))return s?s.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},9110:function(t){t.exports=function(t){return function(n){return t(n)}}},946:function(t,n,e){var r=e(3273),i=e(5510),o=e(9955),a=e(9914),u=e(6602),s=e(6226);t.exports=function(t,n,e){var l=-1,c=i,f=t.length,h=!0,d=[],g=d;if(e)h=!1,c=o;else if(f>=200){var p=n?null:u(t);if(p)return s(p);h=!1,c=a,g=new r}else g=n?[]:d;t:for(;++l<f;){var y=t[l],v=n?n(y):y;if(y=e||0!==y?y:0,h&&v==v){for(var m=g.length;m--;)if(g[m]===v)continue t;n&&g.push(v),d.push(y)}else c(g,v,e)||(g!==d&&g.push(v),d.push(y))}return d}},9914:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9026:function(t,n,e){var r=e(163),i=e(726),o=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(a(t))}},522:function(t,n,e){var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,i=null===t,o=t==t,a=r(t),u=void 0!==n,s=null===n,l=n==n,c=r(n);if(!s&&!c&&!a&&t>n||a&&u&&l&&!s&&!c||i&&u&&l||!e&&l||!o)return 1;if(!i&&!a&&!c&&t<n||c&&e&&o&&!i&&!a||s&&e&&o||!u&&o||!l)return-1}return 0}},9409:function(t,n,e){var r=e(522);t.exports=function(t,n,e){for(var i=-1,o=t.criteria,a=n.criteria,u=o.length,s=e.length;++i<u;){var l=r(o[i],a[i]);if(l)return i>=s?l:l*("desc"==e[i]?-1:1)}return t.index-n.index}},6602:function(t){t.exports=function(){}},5525:function(t,n,e){var r=e(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,n,e){var r=e(3273),i=e(1634),o=e(9914);t.exports=function(t,n,e,a,u,s){var l=1&e,c=t.length,f=n.length;if(c!=f&&!(l&&f>c))return!1;var h=s.get(t),d=s.get(n);if(h&&d)return h==n&&d==t;var g=-1,p=!0,y=2&e?new r:void 0;for(s.set(t,n),s.set(n,t);++g<c;){var v=t[g],m=n[g];if(a)var b=l?a(m,v,g,n,t,s):a(v,m,g,t,n,s);if(void 0!==b){if(b)continue;p=!1;break}if(y){if(!i(n,(function(t,n){if(!o(y,n)&&(v===t||u(v,t,e,a,s)))return y.push(n)}))){p=!1;break}}else if(v!==m&&!u(v,m,e,a,s)){p=!1;break}}return s.delete(t),s.delete(n),p}},2813:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:function(t,n,e){var r=e(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,a,u){var s=1&e,l=r(t),c=l.length;if(c!=r(n).length&&!s)return!1;for(var f=c;f--;){var h=l[f];if(!(s?h in n:i.call(n,h)))return!1}var d=u.get(t),g=u.get(n);if(d&&g)return d==n&&g==t;var p=!0;u.set(t,n),u.set(n,t);for(var y=s;++f<c;){var v=t[h=l[f]],m=n[h];if(o)var b=s?o(m,v,h,n,t,u):o(v,m,h,t,n,u);if(!(void 0===b?v===m||a(v,m,e,o,u):b)){p=!1;break}y||(y="constructor"==h)}if(p&&!y){var x=t.constructor,w=n.constructor;x==w||!("constructor"in t)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(p=!1)}return u.delete(t),u.delete(n),p}},5557:function(t,n,e){var r=e(2645),i=e(4280),o=e(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,n,e){var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},8143:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},7271:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},597:function(t,n,e){var r=e(5385),i=e(7747);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],a=t[o];n[e]=[o,a,r(a)]}return n}},3743:function(t){t.exports=function(t,n){return null==t?void 0:t[n]}},9817:function(t,n,e){var r=e(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},3096:function(t,n,e){var r=e(9026),i=e(5075),o=e(163),a=e(9099),u=e(8454),s=e(3110);t.exports=function(t,n,e){for(var l=-1,c=(n=r(n,t)).length,f=!1;++l<c;){var h=s(n[l]);if(!(f=null!=t&&e(t,h)))break;t=t[h]}return f||++l!=c?f:!!(c=null==t?0:t.length)&&u(c)&&a(h,c)&&(o(t)||i(t))}},3608:function(t,n,e){var r=e(2596),i=e(5075),o=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},8286:function(t){t.exports=function(){return!1}},726:function(t,n,e){var r=e(163),i=e(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=n&&t in Object(n)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,n,e){var r=e(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,n,e){var r=e(3162),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},4859:function(t,n,e){var r=e(3162);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},4073:function(t,n,e){var r=e(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,n,e){var r=e(3162);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},6878:function(t){t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},2453:function(t){t.exports=function(t){return t}},2348:function(t,n,e){t=e.nmd(t);var r=e(2117),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,u=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},5125:function(t){t.exports=function(t,n){return function(e){return t(n(e))}}},4280:function(t,n,e){var r=e(6082),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,a=-1,u=i(o.length-n,0),s=Array(u);++a<u;)s[a]=o[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=o[a];return l[n]=e(s),r(t,this,l)}}},2373:function(t,n,e){var r=e(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6226:function(t){t.exports=function(){return[]}},201:function(t){t.exports=function(t){return t}},7801:function(t,n,e){var r=e(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=a},3110:function(t,n,e){var r=e(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},5034:function(t,n,e){var r=e(7709),i=e(6987),o=e(5812),a=Math.max,u=Math.min;t.exports=function(t,n,e){var s,l,c,f,h,d,g=0,p=!1,y=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(n){var e=s,r=l;return s=l=void 0,g=n,f=t.apply(r,e)}function b(t){return g=t,h=setTimeout(w,n),p?m(t):f}function x(t){var e=t-d;return void 0===d||e>=n||e<0||y&&t-g>=c}function w(){var t=i();if(x(t))return M(t);h=setTimeout(w,function(t){var e=n-(t-d);return y?u(e,c-(t-g)):e}(t))}function M(t){return h=void 0,v&&s?m(t):(s=l=void 0,f)}function k(){var t=i(),e=x(t);if(s=arguments,l=this,d=t,e){if(void 0===h)return b(d);if(y)return clearTimeout(h),h=setTimeout(w,n),m(d)}return void 0===h&&(h=setTimeout(w,n)),f}return n=o(n)||0,r(e)&&(p=!!e.leading,c=(y="maxWait"in e)?a(o(e.maxWait)||0,n):c,v="trailing"in e?!!e.trailing:v),k.cancel=function(){void 0!==h&&clearTimeout(h),g=0,s=d=l=h=void 0},k.flush=function(){return void 0===h?f:M(i())},k}},1893:function(t,n,e){var r=e(6317),i=e(788),o=e(8286),a=e(8855),u=Object.prototype,s=u.hasOwnProperty,l=r((function(t,n){t=Object(t);var e=-1,r=n.length,l=r>2?n[2]:void 0;for(l&&o(n[0],n[1],l)&&(r=1);++e<r;)for(var c=n[e],f=a(c),h=-1,d=f.length;++h<d;){var g=f[h],p=t[g];(void 0===p||i(p,u[g])&&!s.call(t,g))&&(t[g]=c[g])}return t}));t.exports=l},788:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},2645:function(t,n,e){var r=e(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9201:function(t,n,e){var r=e(4432);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},5066:function(t,n,e){var r=e(6776),i=e(3096);t.exports=function(t,n){return null!=t&&i(t,n,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var n=Array.isArray;t.exports=n},981:function(t,n,e){var r=e(9642),i=e(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4155:function(t,n,e){var r=e(7190),i=e(9667),o=e(5075),a=e(163),u=e(981),s=e(4801),l=e(5782),c=e(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||c(t)||o(t)))return!t.length;var n=i(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(l(t))return!r(t).length;for(var e in t)if(f.call(t,e))return!1;return!0}},8254:function(t,n,e){var r=e(9070);t.exports=function(t,n){return r(t,n)}},9642:function(t,n,e){var r=e(563),i=e(7709);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,n,e){var r=e(563),i=e(9817),o=e(3474),a=Function.prototype,u=Object.prototype,s=a.toString,l=u.hasOwnProperty,c=s.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=l.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&s.call(e)==c}},5395:function(t,n,e){var r=e(2229),i=e(9110),o=e(2348),a=o&&o.isRegExp,u=a?i(a):r;t.exports=u},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},8999:function(t){t.exports=function(t){return void 0===t}},7747:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},1594:function(t,n,e){var r=e(503);function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return e.cache=o.set(i,a)||o,a};return e.cache=new(i.Cache||r),e}i.Cache=r,t.exports=i},6051:function(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}},6987:function(t,n,e){var r=e(2373);t.exports=function(){return r.Date.now()}},1616:function(t,n,e){var r=e(3472),i=e(6051),o=e(4912);t.exports=function(t,n){return o(t,i(r(n)))}},4143:function(t,n,e){var r=e(8245),i=e(163);t.exports=function(t,n,e,o){return null==t?[]:(i(n)||(n=null==n?[]:[n]),i(e=o?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:function(t,n,e){var r=e(5436),i=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},4912:function(t,n,e){var r=e(8644),i=e(3472),o=e(6371),a=e(7271);t.exports=function(t,n){if(null==t)return{};var e=r(a(t),(function(t){return[t]}));return n=i(n),o(t,e,(function(t,e){return n(t,e[0])}))}},8532:function(t,n,e){var r=e(1600),i=e(3301),o=e(726),a=e(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},8163:function(t,n,e){var r=e(5034),i=e(7709);t.exports=function(t,n,e){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(e)&&(o="leading"in e?!!e.leading:o,a="trailing"in e?!!e.trailing:a),r(t,n,{leading:o,maxWait:n,trailing:a})}},5812:function(t){t.exports=function(t){return t}},7010:function(t,n,e){var r=e(6316);t.exports=function(t){return null==t?"":r(t)}},9602:function(t,n,e){var r=e(946);t.exports=function(t){return t&&t.length?r(t):[]}},660:function(t,n,e){var r=e(7010),i=0;t.exports=function(t){var n=++i;return r(t)+n}},7491:function(t){var n="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,s,l,c;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(!o(t[s],a[s]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(c=t.entries();!(s=c.next()).done;)if(!a.has(s.value[0]))return!1;for(c=t.entries();!(s=c.next()).done;)if(!o(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(c=t.entries();!(s=c.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(t[s]!==a[s])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(s=u;0!=s--;)if(!Object.prototype.hasOwnProperty.call(a,l[s]))return!1;if(n&&t instanceof Element)return!1;for(s=u;0!=s--;)if(("_owner"!==l[s]&&"__v"!==l[s]&&"__o"!==l[s]||!t.$$typeof)&&!o(t[l[s]],a[l[s]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return o(t,n)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:function(n){"use strict";n.exports=t}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var i={};return function(){"use strict";r.r(i),r.d(i,{VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS:function(){return Au},VictoryVoronoiContainer:function(){return ju},VoronoiHelpers:function(){return ku},useVictoryVoronoiContainer:function(){return Su}});var t={};r.r(t),r.d(t,{scaleBand:function(){return Zn},scaleDiverging:function(){return Qa},scaleDivergingLog:function(){return Ja},scaleDivergingPow:function(){return nu},scaleDivergingSqrt:function(){return eu},scaleDivergingSymlog:function(){return tu},scaleIdentity:function(){return $r},scaleImplicit:function(){return Vn},scaleLinear:function(){return Tr},scaleLog:function(){return Ir},scaleOrdinal:function(){return Kn},scalePoint:function(){return Gn},scalePow:function(){return Qr},scaleQuantile:function(){return ci},scaleQuantize:function(){return fi},scaleRadial:function(){return ei},scaleSequential:function(){return Ra},scaleSequentialLog:function(){return qa},scaleSequentialPow:function(){return Va},scaleSequentialQuantile:function(){return Za},scaleSequentialSqrt:function(){return Ka},scaleSequentialSymlog:function(){return Ya},scaleSqrt:function(){return Jr},scaleSymlog:function(){return Vr},scaleThreshold:function(){return hi},scaleTime:function(){return Wa},scaleUtc:function(){return Ha},tickFormat:function(){return Dr}});var n=r(9082),e=r.n(n),o=r(1893),a=r.n(o),u=r(9787),s=r.n(u),l=r(4143),c=r.n(l),f=r(3849),h=r.n(f),d=r(660),g=r.n(d),p=r(4155),y=r.n(p);var v=r(8532),m=r.n(v);function b(t,n){void 0===n&&(n=[]);const e={};for(const r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function x(t){const n=t=>void 0!==t,{_x:e,_x1:r,_x0:i,_voronoiX:o,_y:u,_y1:s,_y0:l,_voronoiY:c}=t,f=n(r)?r:e,h=n(s)?s:u,d={x:n(o)?o:f,x0:n(i)?i:e,y:n(c)?c:h,y0:n(l)?l:u};return a()({},d,t)}function w(t,n){const{scale:e,polar:r,horizontal:i}=t,o=x(n),a=t.origin||{x:0,y:0},u=i?e.y(o.y):e.x(o.x),s=i?e.y(o.y0):e.x(o.x0),l=i?e.x(o.x):e.y(o.y),c=i?e.x(o.x0):e.y(o.y0);return{x:r?l*Math.cos(u)+a.x:u,x0:r?c*Math.cos(s)+a.x:s,y:r?-l*Math.sin(u)+a.y:l,y0:r?-c*Math.sin(s)+a.x:c}}function M(t,n){void 0===n&&(n="padding");const e=t[n],r="number"==typeof e?e:0,i="object"==typeof e?e:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function k(t,n){return O(t)?t(n):t}function A(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>O(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=k(t[r],n),e)),{}):t}function O(t){return"function"==typeof t}function S(t){return O(t)?t:null==t?t=>t:m()(t)}const j=s().createContext(void 0);j.displayName="PortalContext";const C=()=>s().useContext(j),_=t=>{let{children:n}=t;const[e,r]=s().useState(new Map),i=s().useCallback(((t,n)=>{r((e=>{const r=new Map(e);return r.set(t,n),r}))}),[r]),o=s().useCallback((t=>{r((n=>{const e=new Map(n);return e.delete(t),e}))}),[r]),a=s().useMemo((()=>({addChild:i,removeChild:o,children:e})),[i,o,e]);return s().createElement(j.Provider,{value:a},n)},E={groupComponent:s().createElement("g",null)},D=t=>{const n={...E,...t},[e]=(0,u.useState)(g()()),r=C(),i=Array.isArray(n.children)?n.children[0]:n.children,{groupComponent:o}=n,l=i&&i.props||{},c=l.groupComponent?{groupComponent:o,standalone:!1}:{},f=a()(c,l,b(n,["children","groupComponent"]),{key:l.key??e}),h=i&&s().cloneElement(i,f);return s().useEffect((()=>{r?.addChild(e,h)}),[n.children]),s().useEffect((()=>()=>r?.removeChild(e)),[]),r?null:h};function F(){return F=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},F.apply(this,arguments)}D.role="portal";const T=(0,u.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,u={vectorEffect:"non-scaling-stroke",id:k(r,t)?.toString(),tabIndex:k(i,t),...a};return e?s().createElement("rect",F({},u,{ref:n}),s().createElement("desc",null,e)):s().createElement("rect",F({},u,{ref:n}))})),$=t=>{const{children:n,desc:e,id:r,origin:i,tabIndex:o,title:a,...u}=t,l={id:k(r,t)?.toString(),tabIndex:k(o,t),...u};return s().createElement("text",l,a&&s().createElement("title",null,a),e&&s().createElement("desc",null,e),n)},N=t=>{const{desc:n,id:e,tabIndex:r,origin:i,...o}=t,a={id:k(e,t)?.toString(),tabIndex:k(r,t),...o};return s().createElement("tspan",a)};function L(t,n){const{x:e}=x(n);return("number"==typeof(r=t.scale.x(e))?r/(Math.PI/180):r)%360;var r}const P=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];if(e.length>0)return e.reduce(((t,n)=>[t,P(n)].join(" ")),P(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const n in t)if(t.hasOwnProperty(n)){const e=t[n];i.push(`${n}(${e})`)}return i.join(" ").trim()};var z=r(1594),U=r.n(z);const W={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},H={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},B={em:1,ex:.5},I={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},R=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),q=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},Y=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=e?H.hasOwnProperty(e)?r*H[e]:B.hasOwnProperty(e)?(n?r*n:r*I.fontSize)*B[e]:r:r||0,i},V=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=a()({},e,I);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Y(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Y(String(r.fontSize))})},K=(t,n)=>{const e=Array.isArray(n)?n[0]&&n[0].angle:n&&n.angle,r=((t,n)=>void 0===t||""===t||null===t?0:R(t).reduce(((t,e,r)=>{const i=V(n,r),o=e.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,n),i=((t,n)=>{if(void 0===t||""===t||null===t)return 0;const e=R(t).map(((t,e)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=V(n,e),u=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>W[t]))||"Helvetica";return W[n]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<u.widths.length?u.widths[t.charCodeAt(0)]:u.avg)).reduce(((t,n)=>n+t),0)*i+o*Math.max(r-1,0)}));return Math.max(...e)})(t,n);return{width:e?q(i,r,e):i,height:1.05*(e?q(r,i,e):r)}},Z=U()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const n=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(n),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),n})),X=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",G=U()(((t,n)=>{let e=Z();e.isConnected||(Z.cache.clear?.(),e=Z());const r=R(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=V(n,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),e.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=e.getBoundingClientRect();return e.innerHTML="",{width:n?.angle?q(o,i,n?.angle):o,height:n?.angle?q(i,o,n?.angle):i}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(X).join():X(n)}`)),Q=(t,n)=>function(t,n,e){return void 0===e&&(e=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||e?K(t,n):G(t,n)}(t,n),J={startsWith:["data-","aria-"],exactMatch:[]};function tt(t,n){if(null==t)throw new Error(n)}const nt=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return J.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>J.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,k(r,t)]})))},et={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},rt=(t,n)=>t.datum?w(t,t.datum)[n]:0,it=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return et.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?et.fontSize:t}return et.fontSize},ot=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},at=t=>{const{backgroundStyle:n,backgroundPadding:e}=t;return Array.isArray(n)&&!y()(n)||Array.isArray(e)&&!y()(e)},ut=(t,n)=>{const{direction:e,textAnchor:r,x:i,dx:o}=t;if("rtl"===e)return i-n;switch(r){case"middle":return Math.round(i-n/2);case"end":return Math.round(i-n);default:return i+(o||0)}},st=(t,n)=>{const{verticalAnchor:e,y:r,originalDy:i=0}=t,o=r+i;switch(e){case"start":return Math.floor(o);case"end":return Math.ceil(o-n);default:return Math.floor(o-n/2)}},lt=(t,n)=>at(t)?((t,n)=>{const{dy:e,dx:r,transform:i,backgroundStyle:o,backgroundPadding:u,backgroundComponent:l,inline:c,y:f}=t,h=n.map(((t,i)=>{const o=ot(n,i-1),a=t.textSize,s=t.fontSize*t.lineHeight,l=Math.ceil(s),h=ot(u,i),d=ot(u,i-1),g=c&&r||0,p=i&&!c?o.fontSize*o.lineHeight+d.top+d.bottom:e-.5*s-(t.fontSize-t.capHeight);return{textHeight:l,labelSize:a,heightWithPadding:l+h.top+h.bottom,widthWithPadding:a.width+h.left+h.right+g,y:f,fontSize:t.fontSize,dy:p}}));return h.map(((n,e)=>{const r=ut(t,n.labelSize.width),d=h.slice(0,e+1).reduce(((t,n)=>t+n.dy),f),g=ot(u,e),p=n.heightWithPadding,y=c?((t,n,e)=>{const{textAnchor:r}=t,i=n.map((t=>t.widthWithPadding)),o=-i.reduce(((t,n)=>t+n),0)/2;switch(r){case"start":return i.reduce(((t,n,r)=>r<e?t+n:t),0);case"end":return i.reduce(((t,n,r)=>r>e?t-n:t),0);default:return i.reduce(((t,n,r)=>r===e?t+n/2:t+(r<e?n:0)),o)}})(t,h,e)+r-g.left:r,v=c?st(t,p)-g.top:d,m={key:`tspan-background-${e}`,height:p,style:ot(o,e),width:n.widthWithPadding,transform:i,x:y-g.left,y:v};return s().cloneElement(l,a()({},l.props,m))}))})(t,n):((t,n)=>{const{dx:e=0,transform:r,backgroundComponent:i,backgroundStyle:o,inline:u,backgroundPadding:l,capHeight:c}=t,f=n.map((t=>t.textSize)),h=u?Math.max(...f.map((t=>t.height))):f.reduce(((t,e,r)=>{const i=r?0:c/2;return t+e.height*(n[r].lineHeight-i)}),0),d=u?f.reduce(((t,n,r)=>{const i=r?e:0;return t+n.width+i}),0):Math.max(...f.map((t=>t.width))),g=ut(t,d),p=st(t,h),y={key:"background",height:h+l.top+l.bottom,style:o,transform:r,width:d+l.left+l.right,x:u?g-l.left:g+e-l.left,y:p};return s().cloneElement(i,a()({},i.props,y))})(t,n),ct=(t,n,e)=>{const{inline:r}=n,i=ot(t,e);return e&&!r?((t,n,e)=>{const r=ot(t,n),i=ot(t,n-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,u=i.fontSize-i.capHeight,s=r.fontSize-r.capHeight,l=o-i.fontSize/2+r.fontSize/2-o/2+a/2-s/2+u/2;return at(e)?l+r.backgroundPadding.top+i.backgroundPadding.bottom:l})(t,e,n):r?0===e?i.backgroundPadding.top:void 0:i.backgroundPadding.top},ft=t=>{const n=k(t.ariaLabel,t),e=ot(t.style),r=(t=>{const n=k(t.lineHeight,t);return Array.isArray(n)&&y()(n)?[1]:n})(t),i=t.direction?k(t.direction,t):"inherit",o=t.textAnchor?k(t.textAnchor,t):e.textAnchor||"start",a=t.verticalAnchor?k(t.verticalAnchor,t):e.verticalAnchor||"middle",u=t.dx?k(t.dx,t):0,s=((t,n,e)=>{const r=t.dy?k(t.dy,t):0,i=t.inline?1:t.text.length,o=k(t.capHeight,t),a=n?k(n,t):"middle",u=[...Array(i).keys()].map((n=>ot(t.style,n).fontSize)),s=[...Array(i).keys()].map((t=>ot(e,t)));if("start"===a)return r+(o/2+s[0]/2)*u[0];if(t.inline)return"end"===a?r+(o/2-s[0]/2)*u[0]:r+o/2*u[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*s[0])*u[0]:r+(o/2+(.5-i/2)*s[0])*u[0];const l=[...Array(i).keys()].reduce(((t,n)=>t+(o/2+(.5-i)*s[n])*u[n]/i),0);return"end"===a?r+l:r+l/2+o/2*s[i-1]*u[i-1]})(t,a,r),l=void 0!==t.x?t.x:rt(t,"x"),c=void 0!==t.y?t.y:rt(t,"y"),f=((t,n,e)=>{const{polar:r}=t,i=ot(t.style),o=r?function(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const i=L(t,r);let o=0;return 0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===e?0:90)}(t):0,a=void 0===i.angle?k(t.angle,t):i.angle,u=void 0===a?o:a,s=t.transform||i.transform,l=s&&k(s,t);return l||u?P(l,u&&{rotate:[u,n,e]}):void 0})(t,l,c);return Object.assign({},t,{ariaLabel:n,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:u,dy:s,originalDy:k(t.dy,t),transform:f,x:l,y:c})},ht={backgroundComponent:s().createElement(T,null),groupComponent:s().createElement("g",null),direction:"inherit",textComponent:s().createElement($,null),tspanComponent:s().createElement(N,null),capHeight:.71,lineHeight:1},dt=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>k(t,n)));const e=k(t,n);return null!=e?Array.isArray(e)?e:`${e}`.split("\n"):void 0})(t.text,t),e=((t,n)=>{if(n.disableInlineStyles){const e=A(t,n);return{fontSize:it(e)}}const e=t=>{const e=A(t?a()({},t,et):et,n);return Object.assign({},e,{fontSize:it(e)})};return Array.isArray(t)&&!y()(t)?t.map((t=>e(t))):e(t)})(t.style,Object.assign({},t,{text:n})),r=((t,n)=>{if(t)return Array.isArray(t)&&!y()(t)?t.map((t=>A(t,n))):A(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:e})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>M({padding:k(n,t)}))):M({padding:k(t.backgroundPadding,t)}))(Object.assign({},t,{text:n,style:e,backgroundStyle:r})),o=k(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:e,text:n,id:o})})(a()({},t,ht));if(null===n.text||void 0===n.text)return null;const e=ft(n),{text:r,style:i,capHeight:o,backgroundPadding:u,lineHeight:l}=e,c=r.map(((t,n)=>{const e=ot(i,n),r=Y(`${o}em`,e.fontSize),a=ot(l,n);return{style:e,fontSize:e.fontSize||et.fontSize,capHeight:r,text:t,textSize:Q(t,e),lineHeight:a,backgroundPadding:ot(u,n)}})),f=((t,n)=>{const{ariaLabel:e,inline:r,className:i,title:o,events:a,direction:u,text:l,textAnchor:c,dx:f,dy:h,transform:d,x:g,y:p,desc:y,id:v,tabIndex:m,tspanComponent:b,textComponent:x}=t,w=nt(t),M={"aria-label":e,key:"text",...a,direction:u,dx:f,x:g,y:p+h,transform:d,className:i,title:o,desc:k(y,t),tabIndex:k(m,t),id:v,...w},A=l.map(((e,i)=>{const o=n[i].style,a={key:`${v}-key-${i}`,x:r?void 0:g,dx:r?f+n[i].backgroundPadding.left:f,dy:ct(n,t,i),textAnchor:o.textAnchor||c,style:o,children:e};return s().cloneElement(b,a)}));return s().cloneElement(x,M,A)})(e,c);if(n.backgroundStyle){const t=[lt(e,c),f],r=s().cloneElement(n.groupComponent,{},t);return n.renderInPortal?s().createElement(D,null,r):r}return n.renderInPortal?s().createElement(D,null,f):f};dt.displayName="VictoryLabel",dt.role="label",dt.defaultStyles=et;const gt=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],pt="#252525",yt="#969696",vt={width:450,height:300,padding:50,colorScale:gt},mt={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:pt,stroke:"transparent"},bt=Object.assign({textAnchor:"middle"},mt),xt={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:gt,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:pt},labels:mt}},vt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:pt,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},bt,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:mt}},vt),bar:Object.assign({style:{data:{fill:pt,padding:8,strokeWidth:0},labels:mt}},vt),boxplot:Object.assign({style:{max:{padding:8,stroke:pt,strokeWidth:1},maxLabels:Object.assign({},mt,{padding:3}),median:{padding:8,stroke:pt,strokeWidth:1},medianLabels:Object.assign({},mt,{padding:3}),min:{padding:8,stroke:pt,strokeWidth:1},minLabels:Object.assign({},mt,{padding:3}),q1:{padding:8,fill:yt},q1Labels:Object.assign({},mt,{padding:3}),q3:{padding:8,fill:yt},q3Labels:Object.assign({},mt,{padding:3})},boxWidth:20},vt),candlestick:Object.assign({style:{data:{stroke:pt,strokeWidth:1},labels:Object.assign({},mt,{padding:5})},candleColors:{positive:"#ffffff",negative:pt}},vt),chart:vt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:pt,strokeWidth:2},labels:mt}},vt),group:Object.assign({colorScale:gt},vt),histogram:Object.assign({style:{data:{fill:yt,stroke:pt,strokeWidth:2},labels:mt}},vt),legend:{colorScale:gt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:mt,title:Object.assign({},mt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:pt,strokeWidth:2},labels:mt}},vt),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},mt,{padding:20})},colorScale:gt,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:pt,stroke:"transparent",strokeWidth:0},labels:mt}},vt),stack:Object.assign({colorScale:gt},vt),tooltip:{style:Object.assign({},mt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:pt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},mt,{padding:5,pointerEvents:"none"}),flyout:{stroke:pt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},vt)},wt="#FFF59D",Mt="#F4511E",kt="#8BC34A",At="#00796B",Ot="#006064",St=[Mt,wt,"#DCE775",kt,At,Ot],jt="#ECEFF1",Ct="#90A4AE",_t="#455A64",Et="#212121",Dt={blue:"#4F7DA1",pink:"#E2A37F",teal:At,purple:"#DF948A",green:kt,orange:Mt,cyan:Ot,red:"#DF5A49",yellow:wt},Ft=[jt,Ct,_t,Et],Tt={width:350,height:350,padding:50},$t={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:_t,stroke:"transparent",strokeWidth:0},Nt=Object.assign({textAnchor:"middle"},$t),Lt="round",Pt="round",zt={palette:{colors:Dt,grayscale:Ft,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:Et},labels:$t}},Tt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Ct,strokeWidth:2,strokeLinecap:Lt,strokeLinejoin:Pt},axisLabel:Object.assign({},Nt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:jt,strokeDasharray:"10, 5",strokeLinecap:Lt,strokeLinejoin:Pt,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Ct,strokeWidth:1,strokeLinecap:Lt,strokeLinejoin:Pt},tickLabels:Object.assign({},$t,{fill:_t})}},Tt),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:_t,padding:8,strokeWidth:0},labels:$t}},Tt),boxplot:Object.assign({style:{max:{padding:8,stroke:_t,strokeWidth:1},maxLabels:Object.assign({},$t,{padding:3}),median:{padding:8,stroke:_t,strokeWidth:1},medianLabels:Object.assign({},$t,{padding:3}),min:{padding:8,stroke:_t,strokeWidth:1},minLabels:Object.assign({},$t,{padding:3}),q1:{padding:8,fill:_t},q1Labels:Object.assign({},$t,{padding:3}),q3:{padding:8,fill:_t},q3Labels:Object.assign({},$t,{padding:3})},boxWidth:20},Tt),candlestick:Object.assign({style:{data:{stroke:_t},labels:Object.assign({},$t,{padding:5})},candleColors:{positive:"#ffffff",negative:_t}},Tt),chart:Tt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:_t,strokeWidth:2},labels:$t}},Tt),group:Object.assign({colorScale:St},Tt),histogram:Object.assign({style:{data:{fill:_t,stroke:Et,strokeWidth:2},labels:$t}},Tt),legend:{colorScale:St,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:$t,title:Object.assign({},$t,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:_t,strokeWidth:2},labels:$t}},Tt),pie:Object.assign({colorScale:St,style:{data:{padding:8,stroke:jt,strokeWidth:1},labels:Object.assign({},$t,{padding:20})}},Tt),scatter:Object.assign({style:{data:{fill:_t,opacity:1,stroke:"transparent",strokeWidth:0},labels:$t}},Tt),stack:Object.assign({colorScale:St},Tt),tooltip:{style:Object.assign({},$t,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Et,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},$t,{padding:5,pointerEvents:"none"}),flyout:{stroke:Et,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Tt)},Ut="#FFFFFF",Wt="#F2F2F2",Ht="#E0E0E0",Bt="#D1D1D1",It="#757575",Rt="#424242",qt="#292929",Yt="#FCB400",Vt="#FF6F2C",Kt={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},Zt="#8B46FF",Xt={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},Gt="#18BFFF",Qt="#20D9D2",Jt={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},tn={blue:Xt[500],cyan:Gt,green:Jt[500],yellow:Yt,orange:Vt,red:Kt[500],purple:Zt,teal:Qt},nn=Object.values(tn),en=[Wt,Ht,It,Rt,qt],rn=["#FFD66E",Yt,Vt,"#D74D26",Kt[500]],on=[Zt,Xt[500],Gt,Qt,Jt[500]],an=[Jt[900],Jt[500],Yt,Vt,Kt[500]],un=Object.values(Kt),sn=Object.values(Jt),ln=Object.values(Xt),cn=Xt[500],fn={width:450,height:300,padding:60,colorScale:nn},hn={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:qt,stroke:"transparent"},dn=Object.assign({textAnchor:"middle"},hn),gn="10, 5",pn="round",yn="round",vn={grayscale:xt,material:zt,clean:{palette:{colors:tn,grayscale:en,qualitative:nn,heatmap:an,warm:rn,cool:on,red:un,green:sn,blue:ln},area:Object.assign({style:{data:{fill:cn,strokeWidth:2,fillOpacity:.5},labels:hn}},fn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:It,strokeWidth:1,strokeLinecap:pn,strokeLinejoin:yn},axisLabel:Object.assign({},dn,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:hn}},fn),polarAxis:Object.assign({style:{axis:{stroke:It},grid:{stroke:Bt,strokeDasharray:gn,strokeLinecap:pn,strokeLinejoin:yn,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Bt,strokeWidth:1,strokeLinecap:pn,strokeLinejoin:yn},tickLabels:hn}}),polarDependentAxis:Object.assign({style:{axis:{stroke:It},grid:{stroke:Bt,strokeDasharray:gn,strokeLinecap:pn,strokeLinejoin:yn,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Ht,strokeWidth:1,strokeLinecap:pn,strokeLinejoin:yn},tickLabels:hn}}),bar:Object.assign({style:{data:{fill:cn,padding:8,strokeWidth:1,fillOpacity:.5},labels:hn},cornerRadius:{top:1}},fn),boxplot:Object.assign({style:{max:{padding:8,stroke:Bt,strokeWidth:2},maxLabels:Object.assign({},hn,{padding:3}),median:{padding:8,stroke:Ut,strokeWidth:2},medianLabels:Object.assign({},hn,{padding:3}),min:{padding:8,stroke:Bt,strokeWidth:2},minLabels:Object.assign({},hn,{padding:3}),q1:{padding:8,fill:nn[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},hn,{padding:3}),q3:{padding:8,fill:nn[1],rx:1},q3Labels:Object.assign({},hn,{padding:3})},boxWidth:20},fn),candlestick:Object.assign({style:{data:{stroke:Ht,strokeWidth:0,rx:1},labels:Object.assign({},hn,{padding:5})},candleColors:{positive:Jt[500],negative:Kt[500]},wickStrokeWidth:2},fn),chart:fn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Rt,strokeWidth:2,strokeLinecap:pn},labels:hn}},fn),group:Object.assign({colorScale:nn},fn),histogram:Object.assign({style:{data:{fill:Gt,fillOpacity:.5},labels:hn},binSpacing:4,cornerRadius:{top:1}},fn),label:hn,legend:{colorScale:nn,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...hn,fontSize:12},title:Object.assign({},hn,{padding:8,fontSize:16}),border:{stroke:"#E8E8E8",strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:cn,strokeWidth:2,strokeLinecap:pn,strokeLinejoin:yn},labels:hn}},fn),pie:Object.assign({style:{parent:{backgroundColor:Ut},data:{padding:8,stroke:Ut,strokeWidth:1},labels:{...hn,padding:20,fill:"#5C5C5C",fontSize:10}},colorScale:nn,cornerRadius:1},fn),scatter:Object.assign({style:{data:{fill:cn,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...hn,padding:20}}},fn),stack:Object.assign({colorScale:nn},fn),tooltip:{style:Object.assign({},hn,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Ht,strokeWidth:2,fill:Ut,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:Xt[100],stroke:cn,strokeWidth:2},labels:Object.assign({},hn,{padding:5,pointerEvents:"none"}),flyout:{stroke:qt,strokeWidth:1,fill:Wt,pointerEvents:"none"},padding:{left:2,bottom:2}}},fn)}};function mn(){return mn=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},mn.apply(this,arguments)}const bn=(0,u.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,u={id:k(r,t)?.toString(),tabIndex:k(i,t),...a};return e?s().createElement("path",mn({},u,{ref:n}),s().createElement("desc",null,e)):s().createElement("path",mn({},u,{ref:n}))})),xn=t=>{const n=t.orientation||"top";return"left"===n||"right"===n?(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:i,height:o,center:a}=t,u="left"===r?1:-1,s=t.x+(t.dx||0),l=t.y+(t.dy||0),c=a.x,f=a.y,h=c-u*(i/2),d=c+u*(i/2),g=f+o/2,p=f-o/2,y=u*(s-h)>0?0:t.pointerLength,v=`${e} ${e} ${"left"===r?"0 0 0":"0 0 1"}`;return`M ${h}, ${f-n/2}\n L ${y?s:h}, ${y?l:f+n/2}\n L ${h}, ${f+n/2}\n L ${h}, ${g-e}\n A ${v} ${h+u*e}, ${g}\n L ${d-u*e}, ${g}\n A ${v} ${d}, ${g-e}\n L ${d}, ${p+e}\n A ${v} ${d-u*e}, ${p}\n L ${h+u*e}, ${p}\n A ${v} ${h}, ${p+e}\n z`})(t):(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:i,height:o,center:a}=t,u="bottom"===r?1:-1,s=t.x+(t.dx||0),l=t.y+(t.dy||0),c=a.x,f=a.y,h=f+u*(o/2),d=f-u*(o/2),g=c+i/2,p=c-i/2,y=u*(l-h)<0?0:t.pointerLength,v=`${e} ${e} ${"bottom"===r?"0 0 0":"0 0 1"}`;return`M ${c-n/2}, ${h}\n L ${y?s:c+n/2}, ${y?l:h}\n L ${c+n/2}, ${h}\n L ${g-e}, ${h}\n A ${v} ${g}, ${h-u*e}\n L ${g}, ${d+u*e}\n A ${v} ${g-e}, ${d}\n L ${p+e}, ${d}\n A ${v} ${p}, ${d+u*e}\n L ${p}, ${h-u*e}\n A ${v} ${p+e}, ${h}\n z`})(t)},wn={pathComponent:s().createElement(bn,null),role:"presentation",shapeRendering:"auto"},Mn=t=>{const n=(t=>{const n=k(t.id,t),e=A(t.style,t);return{...t,id:n,style:e}})(a()({},t,wn)),e=nt(n);tt(n.height,"Flyout props[height] is undefined"),tt(n.width,"Flyout props[width] is undefined"),tt(n.x,"Flyout props[x] is undefined"),tt(n.y,"Flyout props[y] is undefined");const r={center:n.center||{x:0,y:0},cornerRadius:n.cornerRadius||0,dx:n.dx,dy:n.dy,height:n.height,orientation:n.orientation||"top",pointerLength:n.pointerLength||0,pointerWidth:n.pointerWidth||0,width:n.width,x:n.x,y:n.y};return s().cloneElement(n.pathComponent,{...n.events,...e,style:n.style,d:xn(r),className:n.className,shapeRendering:n.shapeRendering,role:n.role,transform:n.transform,clipPath:n.clipPath})},kn={cornerRadius:5,pointerLength:10,pointerWidth:10};class An extends s().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:s().createElement(dt,null),flyoutComponent:s().createElement(Mn,null),groupComponent:s().createElement("g",null)};static defaultEvents(t){const n=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],e=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>n,onFocus:()=>n,onTouchStart:()=>n,onMouseOut:()=>e,onBlur:()=>e,onTouchEnd:()=>e}}]}constructor(t){super(t),this.id=void 0===t.id?g()("tooltip-"):t.id}getDefaultOrientation(t){const{datum:n,horizontal:e,polar:r}=t;if(!r){const t=e?"right":"top",r=e?"left":"bottom";return n&&n.y<0?r:t}return this.getPolarOrientation(t)}getPolarOrientation(t){const n=L(t,t.datum),e=t.labelPlacement||"vertical";return"vertical"===e?this.getVerticalOrientations(n):"parallel"===e?n<90||n>270?"right":"left":n>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const n=t.theme||vn.grayscale,e=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>a()({},t,e))):a()({},t.style,e),i=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},o=t.flyoutStyle?a()({},t.flyoutStyle,i):i,u=Array.isArray(r)?r.map((n=>A(n,t))):A(r,t);return{style:u,flyoutStyle:A(o,Object.assign({},t,{style:u}))}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:e,dx:r,dy:i}=t,o=k(t.active,t);let a=k(t.text,Object.assign({},t,{active:o}));null==a&&(a=""),"number"==typeof a&&(a=a.toString());const{style:u,flyoutStyle:s}=this.getStyles(Object.assign({},t,{active:o,text:a})),l=k(t.orientation,Object.assign({},t,{active:o,text:a,style:u,flyoutStyle:s}))||this.getDefaultOrientation(t),c=M({padding:k(t.flyoutPadding,Object.assign({},t,{active:o,text:a,style:u,flyoutStyle:s,orientation:l}))||this.getLabelPadding(u)}),f=k(t.pointerWidth,Object.assign({},t,{active:o,text:a,style:u,flyoutStyle:s,orientation:l})),d=k(t.pointerLength,Object.assign({},t,{active:o,text:a,style:u,flyoutStyle:s,orientation:l})),g=Q(a,u),{flyoutHeight:p,flyoutWidth:y}=this.getDimensions(Object.assign({},t,{style:u,flyoutStyle:s,active:o,text:a,orientation:l,flyoutPadding:c,pointerWidth:f,pointerLength:d}),g),v=Object.assign({},t,{active:o,text:a,style:u,flyoutStyle:s,orientation:l,flyoutHeight:p,flyoutWidth:y,flyoutPadding:c,pointerWidth:f,pointerLength:d}),m=h()(e)&&void 0!==e?.x?k(e.x,v):0,b=h()(e)&&void 0!==e?.y?k(e.y,v):0;return{...v,centerOffset:{x:m,y:b},dx:void 0!==r?k(r,v):0,dy:void 0!==i?k(i,v):0,cornerRadius:k(n,v)}}getCalculatedValues(t){const{style:n,text:e,flyoutStyle:r,flyoutHeight:i,flyoutWidth:o}=t,a={height:i,width:o};return{style:n,flyoutStyle:r,labelSize:Q(e,n),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:n,y:e,style:r}=t,i=(r||{}).angle||t.angle||this.getDefaultAngle(t);return i?`rotate(${i} ${n} ${e})`:void 0}getDefaultAngle(t){const{polar:n,labelPlacement:e,orientation:r,datum:i}=t;if(!n||!e||"vertical"===e)return 0;const o=L(t,i);let a=0;return 0===o||180===o?a="top"===r&&180===o?270:90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===e?0:90)}constrainTooltip(t,n,e){const{x:r,y:i}=t,{width:o,height:a}=e,u=[0,n.width],s=[0,n.height],l=[r-o/2,r+o/2],c=[i-a/2,i+a/2],f=[l[0]<u[0]?u[0]-l[0]:0,l[1]>u[1]?l[1]-u[1]:0],h=[c[0]<s[0]?s[0]-c[0]:0,c[1]>s[1]?c[1]-s[1]:0];return{x:Math.round(r+f[0]-f[1]),y:Math.round(i+h[0]-h[1])}}getFlyoutCenter(t,n){const{x:e,y:r,dx:i,dy:o,pointerLength:a,orientation:u,constrainToVisibleArea:s,centerOffset:l}=t,{height:c,width:f}=n,d="left"===u?-1:1,g="bottom"===u?-1:1,p={x:"left"===u||"right"===u?e+d*(a+f/2+d*i):e+i,y:"top"===u||"bottom"===u?r-g*(a+c/2-g*o):r+o},y=h()(t.center)&&void 0!==t.center.x?t.center.x:p.x,v=h()(t.center)&&void 0!==t.center.y?t.center.y:p.y,m={x:y+l.x,y:v+l.y};return s?this.constrainTooltip(m,t,n):m}getLabelPadding(t){if(!t)return 0;const n=Array.isArray(t)?t.map((t=>t.padding)):[t.padding];return Math.max(...n,0)}getDimensions(t,n){const{orientation:e,pointerLength:r,pointerWidth:i,flyoutHeight:o,flyoutWidth:a,flyoutPadding:u}=t,s=k(t.cornerRadius,t);return{flyoutHeight:o?k(o,t):(()=>{const t=n.height+u.top+u.bottom,r="top"===e||"bottom"===e?2*s:2*s+i;return Math.max(r,t)})(),flyoutWidth:a?k(a,t):(()=>{const t=n.width+u.left+u.right,i="left"===e||"right"===e?2*s+r:2*s;return Math.max(i,t)})()}}getLabelProps(t,n){const{flyoutCenter:e,style:r,labelSize:i,dy:o=0,dx:u=0}=n,{text:s,datum:l,activePoints:c,labelComponent:f,index:h,flyoutPadding:d}=t,g=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return a()({},f.props,{key:`${this.id}-label-${h}`,text:s,datum:l,activePoints:c,textAnchor:g,dy:o,dx:u,style:r,x:(()=>{if(!g||"middle"===g)return e.x;const t="end"===g?-1:1;return e.x-t*(i.width/2)})()+(d.left-d.right)/2,y:e.y+(d.top-d.bottom)/2,verticalAnchor:"middle",angle:r.angle})}getPointerOrientation(t,n,e){const r=n.y+e.height/2,i=n.y-e.height/2,o=n.x-e.width/2,a=n.x+e.width/2,u=[{side:"top",val:i>t.y?i-t.y:-1},{side:"bottom",val:r<t.y?t.y-r:-1},{side:"right",val:a<t.x?t.x-a:-1},{side:"left",val:o>t.x?o-t.x:-1}];return c()(u,"val","desc")[0].side}getFlyoutProps(t,n){const{flyoutDimensions:e,flyoutStyle:r,flyoutCenter:i}=n,{x:o,y:u,dx:s,dy:l,datum:c,activePoints:f,index:h,pointerLength:d,pointerWidth:g,cornerRadius:p,events:y,flyoutComponent:v}=t,m=k(t.pointerOrientation,t);return a()({},v.props,{x:o,y:u,dx:s,dy:l,datum:c,activePoints:f,index:h,pointerLength:d,pointerWidth:g,cornerRadius:p,events:y,orientation:m||this.getPointerOrientation({x:o,y:u},i,e),key:`${this.id}-tooltip-${h}`,width:e.width,height:e.height,style:r,center:i})}renderTooltip(t){const n=k(t.active,t),{renderInPortal:e}=t;if(!n)return null;const r=this.getEvaluatedProps(t),{flyoutComponent:i,labelComponent:o,groupComponent:a}=r,u=this.getCalculatedValues(r),l=[s().cloneElement(i,this.getFlyoutProps(r,u)),s().cloneElement(o,this.getLabelProps(r,u))],c=s().cloneElement(a,{role:"presentation",transform:u.transform},l);return e?s().createElement(D,null,c):c}render(){const t=function(t,n,e){const r=b(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),i=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const n=t=>t.reduce(((t,e)=>{const r=e.props||{};return t||r.horizontal||!r.children?t||r.horizontal:n(s().Children.toArray(r.children))}),!1);return n(s().Children.toArray(t.children))}(t),o=void 0===i?{}:{horizontal:i};return a()(o,t,r,n)}(this.props,kn,"tooltip");return this.renderTooltip(t)}}function On(){return On=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},On.apply(this,arguments)}const Sn=s().forwardRef(((t,n)=>s().createElement("svg",On({ref:n},t)))),jn=t=>{let{as:n,...e}=t;const r=C();if(!r)return null;const i=Array.from(r.children.values());return s().cloneElement(n,e,i)};function Cn(){return Cn=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Cn.apply(this,arguments)}const _n={className:"VictoryContainer",portalComponent:s().createElement(Sn,null),portalZIndex:99,responsive:!0,role:"img"},En=t=>{const{role:n,title:e,desc:r,children:i,className:o,portalZIndex:a,portalComponent:l,width:c,height:f,style:h,tabIndex:d,responsive:p,events:y,ouiaId:v,ouiaSafe:m,ouiaType:b,dimensions:x,ariaDescribedBy:w,ariaLabelledBy:M,viewBox:k,preserveAspectRatio:A,userProps:S,titleId:j,descId:C,containerRef:E,localContainerRef:D}=function(t){const n={..._n,...t},{title:e,desc:r,width:i,height:o,responsive:a}=n,s=(0,u.useRef)(null),l=(0,u.useRef)(g()("victory-container-")),c=n.containerId??l.current,f=t=>`${c}-${t}`,h=nt(n),d=a?{width:"100%",height:"100%"}:{width:i,height:o},p=a?`0 0 ${i} ${o}`:void 0,y=a?n.preserveAspectRatio:void 0,v=[e&&f("title"),n["aria-labelledby"]].filter(Boolean).join(" ")||void 0,m=[r&&f("desc"),n["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=f("title"),x=f("desc");return{...n,titleId:b,descId:x,dimensions:d,viewBox:p,preserveAspectRatio:y,ariaLabelledBy:v,ariaDescribedBy:m,userProps:h,localContainerRef:s}}(t);return s().useEffect((()=>{if(!y?.onWheel)return;const t=t=>t.preventDefault(),n=D?.current;return n?.addEventListener("wheel",t),()=>{n?.removeEventListener("wheel",t)}}),[]),s().createElement("div",{className:o,style:{...h,width:p?h?.width:x.width,height:p?h?.height:x.height,pointerEvents:h?.pointerEvents??"none",touchAction:h?.touchAction??"none",position:h?.position??"relative"},"data-ouia-component-id":v,"data-ouia-component-type":b,"data-ouia-safe":m,ref:(F=[D,E],t=>{F.forEach((n=>{O(n)?n(t):null!=n&&(n.current=t)}))})},s().createElement(_,null,s().createElement("svg",Cn({width:c,height:f,tabIndex:d,role:n,"aria-labelledby":M,"aria-describedby":w,viewBox:k,preserveAspectRatio:A,style:{...x,pointerEvents:"all"}},S,y),e?s().createElement("title",{id:j},e):null,r?s().createElement("desc",{id:C},r):null,i),s().createElement("div",{style:{...x,zIndex:a,position:"absolute",top:0,left:0}},s().createElement(jn,{as:l,width:c,height:f,viewBox:k,preserveAspectRatio:A,style:{...x,overflow:"visible"}}))));var F};En.role="container";var Dn=r(8163),Fn=r.n(Dn),Tn=r(5395),$n=r.n(Tn);function Nn(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function Ln(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return Nn(i)?new Date(Math.min(...i)):Math.min(...i)}r(1616),r(8999);var Pn=r(8254),zn=r.n(Pn),Un=r(9602),Wn=r.n(Un);function Hn(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 Bn(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function In(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}class Rn extends Map{constructor(t,n=Yn){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(qn(this,t))}has(t){return super.has(qn(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}(this,t))}}function qn({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function Yn(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Vn=Symbol("implicit");function Kn(){var t=new Rn,n=[],e=[],r=Vn;function i(i){let o=t.get(i);if(void 0===o){if(r!==Vn)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 Rn;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 Kn(n,e).unknown(r)},Bn.apply(i,arguments),i}function Zn(){var t,n,e=Kn().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var e=r().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,e-s+2*l),u&&(t=Math.floor(t)),h+=(d-h-t*(e-s))*c,n=t*(1-s),u&&(h=Math.round(h),n=Math.round(n));var g=Hn(e).map((function(n){return h+t*n}));return i(f?g.reverse():g)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),f()):r()},e.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},e.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,f()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,f()):u},e.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),f()):s},e.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},e.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},e.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),f()):c},e.copy=function(){return Zn(r(),[o,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},Bn.apply(f(),arguments)}function Xn(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Xn(n())},t}function Gn(){return Xn(Zn.apply(null,arguments).paddingInner(1))}var Qn=Math.sqrt(50),Jn=Math.sqrt(10),te=Math.sqrt(2);function ne(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=ee(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 ee(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>=Qn?10:o>=Jn?5:o>=te?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Qn?10:o>=Jn?5:o>=te?2:1)}function re(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>=Qn?i*=10:o>=Jn?i*=5:o>=te&&(i*=2),n<t?-i:i}function ie(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function oe(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function ae(t){let n,e,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<0?i=n+1:o=n}while(i<o)}return i}return 2!==t.length?(n=ie,e=(n,e)=>ie(t(n),e),r=(n,e)=>t(n)-e):(n=t===ie||t===oe?t:ue,e=t,r=t),{left:i,center:function(t,n,e=0,o=t.length){const a=i(t,n,e,o-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<=0?i=n+1:o=n}while(i<o)}return i}}}function ue(){return 0}function se(t){return null===t?NaN:+t}const le=ae(ie),ce=le.right;le.left,ae(se).center;var fe=ce;function he(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function de(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function ge(){}var pe=.7,ye=1/pe,ve="\\s*([+-]?\\d+)\\s*",me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xe=/^#([0-9a-f]{3,8})$/,we=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),Me=new RegExp(`^rgb\\(${be},${be},${be}\\)$`),ke=new RegExp(`^rgba\\(${ve},${ve},${ve},${me}\\)$`),Ae=new RegExp(`^rgba\\(${be},${be},${be},${me}\\)$`),Oe=new RegExp(`^hsl\\(${me},${be},${be}\\)$`),Se=new RegExp(`^hsla\\(${me},${be},${be},${me}\\)$`),je={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 Ce(){return this.rgb().formatHex()}function _e(){return this.rgb().formatRgb()}function Ee(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=xe.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?De(n):3===e?new Ne(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Fe(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Fe(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=we.exec(t))?new Ne(n[1],n[2],n[3],1):(n=Me.exec(t))?new Ne(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=ke.exec(t))?Fe(n[1],n[2],n[3],n[4]):(n=Ae.exec(t))?Fe(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Oe.exec(t))?He(n[1],n[2]/100,n[3]/100,1):(n=Se.exec(t))?He(n[1],n[2]/100,n[3]/100,n[4]):je.hasOwnProperty(t)?De(je[t]):"transparent"===t?new Ne(NaN,NaN,NaN,0):null}function De(t){return new Ne(t>>16&255,t>>8&255,255&t,1)}function Fe(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ne(t,n,e,r)}function Te(t){return t instanceof ge||(t=Ee(t)),t?new Ne((t=t.rgb()).r,t.g,t.b,t.opacity):new Ne}function $e(t,n,e,r){return 1===arguments.length?Te(t):new Ne(t,n,e,null==r?1:r)}function Ne(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Le(){return`#${We(this.r)}${We(this.g)}${We(this.b)}`}function Pe(){const t=ze(this.opacity);return`${1===t?"rgb(":"rgba("}${Ue(this.r)}, ${Ue(this.g)}, ${Ue(this.b)}${1===t?")":`, ${t})`}`}function ze(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ue(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function We(t){return((t=Ue(t))<16?"0":"")+t.toString(16)}function He(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ie(t,n,e,r)}function Be(t){if(t instanceof Ie)return new Ie(t.h,t.s,t.l,t.opacity);if(t instanceof ge||(t=Ee(t)),!t)return new Ie;if(t instanceof Ie)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,s=(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/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new Ie(a,u,s,t.opacity)}function Ie(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Re(t){return(t=(t||0)%360)<0?t+360:t}function qe(t){return Math.max(0,Math.min(1,t||0))}function Ye(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 Ve(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}he(ge,Ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ce,formatHex:Ce,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Be(this).formatHsl()},formatRgb:_e,toString:_e}),he(Ne,$e,de(ge,{brighter(t){return t=null==t?ye:Math.pow(ye,t),new Ne(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?pe:Math.pow(pe,t),new Ne(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ne(Ue(this.r),Ue(this.g),Ue(this.b),ze(this.opacity))},displayable(){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:Le,formatHex:Le,formatHex8:function(){return`#${We(this.r)}${We(this.g)}${We(this.b)}${We(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Pe,toString:Pe})),he(Ie,(function(t,n,e,r){return 1===arguments.length?Be(t):new Ie(t,n,e,null==r?1:r)}),de(ge,{brighter(t){return t=null==t?ye:Math.pow(ye,t),new Ie(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?pe:Math.pow(pe,t),new Ie(this.h,this.s,this.l*t,this.opacity)},rgb(){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 Ne(Ye(t>=240?t-240:t+120,i,r),Ye(t,i,r),Ye(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Ie(Re(this.h),qe(this.s),qe(this.l),ze(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ze(this.opacity);return`${1===t?"hsl(":"hsla("}${Re(this.h)}, ${100*qe(this.s)}%, ${100*qe(this.l)}%${1===t?")":`, ${t})`}`}}));var Ke=t=>()=>t;function Ze(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Ke(isNaN(t)?n:t)}var Xe=function t(n){var e=function(t){return 1==(t=+t)?Ze: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):Ke(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=$e(t)).r,(n=$e(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=Ze(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 Ge(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=$e(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+""}}}function Qe(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]=ar(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 Je(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function tr(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]=ar(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}Ge((function(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 Ve((e-r/n)*n,a,i,o,u)}})),Ge((function(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 Ve((e-r/n)*n,i,o,a,u)}}));var er=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rr=new RegExp(er.source,"g");function ir(t,n){var e,r,i,o=er.lastIndex=rr.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=er.exec(t))&&(r=rr.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,s.push({i:a,x:tr(e,r)})),o=rr.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})}function or(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 ar(t,n){var e,r,i=typeof n;return null==n||"boolean"===i?Ke(n):("number"===i?tr:"string"===i?(e=Ee(n))?(n=e,Xe):ir:n instanceof Ee?Xe:n instanceof Date?Je:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?Qe:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?nr:tr:or))(t,n)}function ur(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function sr(t){return+t}var lr=[0,1];function cr(t){return t}function fr(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function hr(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=fr(i,r),o=e(a,o)):(r=fr(r,i),o=e(o,a)),function(t){return o(r(t))}}function dr(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]=fr(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=fe(t,n,1,r)-1;return o[e](i[e](n))}}function gr(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function pr(){var t,n,e,r,i,o,a=lr,u=lr,s=ar,l=cr;function c(){var t,n,e,s=Math.min(a.length,u.length);return l!==cr&&(t=a[0],n=a[s-1],t>n&&(e=t,t=n,n=e),l=function(e){return Math.max(t,Math.min(n,e))}),r=s>2?dr:hr,i=o=null,f}function f(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),u,s)))(t(l(n)))}return f.invert=function(e){return l(n((o||(o=r(u,a.map(t),tr)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,sr),c()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),c()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=ur,c()},f.clamp=function(t){return arguments.length?(l=!!t||cr,c()):l!==cr},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(e=t,f):e},function(e,r){return t=e,n=r,c()}}function yr(){return pr()(cr,cr)}var vr,mr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function br(t){if(!(n=mr.exec(t)))throw new Error("invalid format: "+t);var n;return new xr({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 xr(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 wr(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 Mr(t){return(t=wr(Math.abs(t)))?t[1]:NaN}function kr(t,n){var e=wr(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")}br.prototype=xr.prototype,xr.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};var Ar={"%":(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)=>kr(100*t,n),r:kr,s:function(t,n){var e=wr(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(vr=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")+wr(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Or(t){return t}var Sr,jr,Cr,_r=Array.prototype.map,Er=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Dr(t,n,e,r){var i,o=re(t,n,e);switch((r=br(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Mr(n)/3)))-Mr(Math.abs(t)))}(o,a))||(r.precision=i),Cr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Mr(n)-Mr(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Mr(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return jr(r)}function Fr(t){var n=t.domain;return t.ticks=function(t){var e=n();return ne(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Dr(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,s=o[a],l=o[u],c=10;for(l<s&&(i=s,s=l,l=i,i=a,a=u,u=i);c-- >0;){if((i=ee(s,l,e))===r)return o[a]=s,o[u]=l,n(o);if(i>0)s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function Tr(){var t=yr();return t.copy=function(){return gr(t,Tr())},Bn.apply(t,arguments),Fr(t)}function $r(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,sr),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return $r(t).unknown(n)},t=arguments.length?Array.from(t,sr):[0,1],Fr(e)}function Nr(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 Lr(t){return Math.log(t)}function Pr(t){return Math.exp(t)}function zr(t){return-Math.log(-t)}function Ur(t){return-Math.exp(-t)}function Wr(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Hr(t){return(n,e)=>-t(-n,e)}function Br(t){const n=t(Lr,Pr),e=n.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(o),i=function(t){return 10===t?Wr:t===Math.E?Math.exp:n=>Math.pow(t,n)}(o),e()[0]<0?(r=Hr(r),i=Hr(i),t(zr,Ur)):t(Lr,Pr),n}return n.base=function(t){return arguments.length?(o=+t,a()):o},n.domain=function(t){return arguments.length?(e(t),a()):e()},n.ticks=t=>{const n=e();let a=n[0],u=n[n.length-1];const s=u<a;s&&([a,u]=[u,a]);let l,c,f=r(a),h=r(u);const d=null==t?10:+t;let g=[];if(!(o%1)&&h-f<d){if(f=Math.floor(f),h=Math.ceil(h),a>0){for(;f<=h;++f)for(l=1;l<o;++l)if(c=f<0?l/i(-f):l*i(f),!(c<a)){if(c>u)break;g.push(c)}}else for(;f<=h;++f)for(l=o-1;l>=1;--l)if(c=f>0?l/i(-f):l*i(f),!(c<a)){if(c>u)break;g.push(c)}2*g.length<d&&(g=ne(a,u,d))}else g=ne(f,h,Math.min(h-f,d)).map(i);return s?g.reverse():g},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===o?"s":","),"function"!=typeof e&&(o%1||null!=(e=br(e)).precision||(e.trim=!0),e=jr(e)),t===1/0)return e;const a=Math.max(1,o*t/n.ticks().length);return t=>{let n=t/i(Math.round(r(t)));return n*o<o-.5&&(n*=o),n<=a?e(t):""}},n.nice=()=>e(Nr(e(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),n}function Ir(){const t=Br(pr()).domain([1,10]);return t.copy=()=>gr(t,Ir()).base(t.base()),Bn.apply(t,arguments),t}function Rr(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function qr(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function Yr(t){var n=1,e=t(Rr(n),qr(n));return e.constant=function(e){return arguments.length?t(Rr(n=+e),qr(n)):n},Fr(e)}function Vr(){var t=Yr(pr());return t.copy=function(){return gr(t,Vr()).constant(t.constant())},Bn.apply(t,arguments)}function Kr(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Zr(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Xr(t){return t<0?-t*t:t*t}function Gr(t){var n=t(cr,cr),e=1;function r(){return 1===e?t(cr,cr):.5===e?t(Zr,Xr):t(Kr(e),Kr(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},Fr(n)}function Qr(){var t=Gr(pr());return t.copy=function(){return gr(t,Qr()).exponent(t.exponent())},Bn.apply(t,arguments),t}function Jr(){return Qr.apply(null,arguments).exponent(.5)}function ti(t){return Math.sign(t)*t*t}function ni(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function ei(){var t,n=yr(),e=[0,1],r=!1;function i(e){var i=ni(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(ti(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,sr)).map(ti)),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 ei(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},Bn.apply(i,arguments),Fr(i)}function ri(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 ii(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 oi(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function ai(t,n,e=0,r=t.length-1,i){for(i=void 0===i?oi:function(t=ie){if(t===ie)return oi;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))}}(i);r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,u=Math.log(o),s=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*s*(o-s)/o)*(a-o/2<0?-1:1);ai(t,n,Math.max(e,Math.floor(n-a*s/o+l)),Math.min(r,Math.floor(n+(o-a)*s/o+l)),i)}const o=t[n];let a=e,u=r;for(ui(t,e,n),i(t[r],o)>0&&ui(t,e,r);a<u;){for(ui(t,a,u),++a,--u;i(t[a],o)<0;)++a;for(;i(t[u],o)>0;)--u}0===i(t[e],o)?ui(t,e,u):(++u,ui(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function ui(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function si(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 ii(t);if(n>=1)return ri(t);var r,i=(r-1)*n,o=Math.floor(i),a=ri(ai(t,o).subarray(0,o+1));return a+(ii(t.subarray(o+1))-a)*(i-o)}}function li(t,n,e=se){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,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function ci(){var t,n=[],e=[],r=[];function i(){var t=0,i=Math.max(1,e.length);for(r=new Array(i-1);++t<i;)r[t-1]=li(n,t/i);return o}function o(n){return null==n||isNaN(n=+n)?t:e[fe(r,n)]}return o.invertExtent=function(t){var i=e.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:n[0],i<r.length?r[i]:n[n.length-1]]},o.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(ie),i()},o.range=function(t){return arguments.length?(e=Array.from(t),i()):e.slice()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return ci().domain(n).range(e).unknown(t)},Bn.apply(o,arguments)}function fi(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[fe(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 fi().domain([n,e]).range(o).unknown(t)},Bn.apply(Fr(a),arguments)}function hi(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[fe(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 hi().domain(n).range(e).unknown(t)},Bn.apply(i,arguments)}Sr=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Or:(n=_r.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=n[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(t.substring(i-=u,i+u)),!((s+=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?Or:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(_r.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=br(t)).fill,e=t.align,f=t.sign,h=t.symbol,d=t.zero,g=t.width,p=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(p=!0,m="g"):Ar[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():"",x="$"===h?o:/[%p]/.test(m)?s:"",w=Ar[m],M=/[defgprs%]/.test(m);function k(t){var i,o,s,h=b,k=x;if("c"===m)k=w(t)+k,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(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)),A&&0==+t&&"+"!==f&&(A=!1),h=(A?"("===f?f:l:"-"===f||"("===f?"":f)+h,k=("s"===m?Er[8+vr/3]:"")+k+(A&&"("===f?")":""),M)for(i=-1,o=t.length;++i<o;)if(48>(s=t.charCodeAt(i))||s>57){k=(46===s?a+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}p&&!d&&(t=r(t,1/0));var O=h.length+t.length+k.length,S=O<g?new Array(g-O+1).join(n):"";switch(p&&d&&(t=r(S+t,S.length?g-k.length:1/0),S=""),e){case"<":t=h+t+k+S;break;case"=":t=h+S+t+k;break;case"^":t=S.slice(0,O=S.length>>1)+h+t+k+S.slice(O);break;default:t=S+h+t+k}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)),k.toString=function(){return t+""},k}return{format:f,formatPrefix:function(t,n){var e=f(((t=br(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Mr(n)/3))),i=Math.pow(10,-r),o=Er[8+r/3];return function(t){return e(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),jr=Sr.format,Cr=Sr.formatPrefix;const di=1e3,gi=6e4,pi=36e5,yi=864e5,vi=6048e5,mi=31536e6;var bi=new Date,xi=new Date;function wi(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 wi((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 bi.setTime(+n),xi.setTime(+r),t(bi),t(xi),Math.floor(e(bi,xi))},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 Mi=wi((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Mi.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?wi((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Mi:null};var ki=Mi,Ai=(Mi.range,wi((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*di)}),(function(t,n){return(n-t)/di}),(function(t){return t.getUTCSeconds()}))),Oi=Ai,Si=(Ai.range,wi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*di)}),(function(t,n){t.setTime(+t+n*gi)}),(function(t,n){return(n-t)/gi}),(function(t){return t.getMinutes()}))),ji=Si,Ci=(Si.range,wi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*di-t.getMinutes()*gi)}),(function(t,n){t.setTime(+t+n*pi)}),(function(t,n){return(n-t)/pi}),(function(t){return t.getHours()}))),_i=Ci,Ei=(Ci.range,wi((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*gi)/yi),(t=>t.getDate()-1))),Di=Ei;function Fi(t){return wi((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())*gi)/vi}))}Ei.range;var Ti=Fi(0),$i=Fi(1),Ni=Fi(2),Li=Fi(3),Pi=Fi(4),zi=Fi(5),Ui=Fi(6),Wi=(Ti.range,$i.range,Ni.range,Li.range,Pi.range,zi.range,Ui.range,wi((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()}))),Hi=Wi,Bi=(Wi.range,wi((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()})));Bi.every=function(t){return isFinite(t=Math.floor(t))&&t>0?wi((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};var Ii=Bi,Ri=(Bi.range,wi((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*gi)}),(function(t,n){return(n-t)/gi}),(function(t){return t.getUTCMinutes()}))),qi=Ri,Yi=(Ri.range,wi((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*pi)}),(function(t,n){return(n-t)/pi}),(function(t){return t.getUTCHours()}))),Vi=Yi,Ki=(Yi.range,wi((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/yi}),(function(t){return t.getUTCDate()-1}))),Zi=Ki;function Xi(t){return wi((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)/vi}))}Ki.range;var Gi=Xi(0),Qi=Xi(1),Ji=Xi(2),to=Xi(3),no=Xi(4),eo=Xi(5),ro=Xi(6),io=(Gi.range,Qi.range,Ji.range,to.range,no.range,eo.range,ro.range,wi((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()}))),oo=io,ao=(io.range,wi((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()})));ao.every=function(t){return isFinite(t=Math.floor(t))&&t>0?wi((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};var uo=ao;function so(t,n,e,r,i,o){const a=[[Oi,1,di],[Oi,5,5e3],[Oi,15,15e3],[Oi,30,3e4],[o,1,gi],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,pi],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,yi],[r,2,1728e5],[e,1,vi],[n,1,2592e6],[n,3,7776e6],[t,1,mi]];function u(n,e,r){const i=Math.abs(e-n)/r,o=ae((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(re(n/mi,e/mi,r));if(0===o)return ki.every(Math.max(re(n,e,r),1));const[u,s]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return u.every(s)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"==typeof e.range?e:u(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},u]}ao.range;const[lo,co]=so(uo,oo,Gi,Zi,Vi,qi),[fo,ho]=so(Ii,Hi,Ti,Di,_i,ji);function go(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 po(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 yo(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var vo,mo,bo,xo={"-":"",_:" ",0:"0"},wo=/^\s*\d+/,Mo=/^%/,ko=/[\\^$*+?|[\]().{}]/g;function Ao(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 Oo(t){return t.replace(ko,"\\$&")}function So(t){return new RegExp("^(?:"+t.map(Oo).join("|")+")","i")}function jo(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function Co(t,n,e){var r=wo.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function _o(t,n,e){var r=wo.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Eo(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Do(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Fo(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function To(t,n,e){var r=wo.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function $o(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function No(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 Lo(t,n,e){var r=wo.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Po(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function zo(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Uo(t,n,e){var r=wo.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Wo(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Ho(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Bo(t,n,e){var r=wo.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Io(t,n,e){var r=wo.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Ro(t,n,e){var r=wo.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function qo(t,n,e){var r=Mo.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Yo(t,n,e){var r=wo.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Vo(t,n,e){var r=wo.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Ko(t,n){return Ao(t.getDate(),n,2)}function Zo(t,n){return Ao(t.getHours(),n,2)}function Xo(t,n){return Ao(t.getHours()%12||12,n,2)}function Go(t,n){return Ao(1+Di.count(Ii(t),t),n,3)}function Qo(t,n){return Ao(t.getMilliseconds(),n,3)}function Jo(t,n){return Qo(t,n)+"000"}function ta(t,n){return Ao(t.getMonth()+1,n,2)}function na(t,n){return Ao(t.getMinutes(),n,2)}function ea(t,n){return Ao(t.getSeconds(),n,2)}function ra(t){var n=t.getDay();return 0===n?7:n}function ia(t,n){return Ao(Ti.count(Ii(t)-1,t),n,2)}function oa(t){var n=t.getDay();return n>=4||0===n?Pi(t):Pi.ceil(t)}function aa(t,n){return t=oa(t),Ao(Pi.count(Ii(t),t)+(4===Ii(t).getDay()),n,2)}function ua(t){return t.getDay()}function sa(t,n){return Ao($i.count(Ii(t)-1,t),n,2)}function la(t,n){return Ao(t.getFullYear()%100,n,2)}function ca(t,n){return Ao((t=oa(t)).getFullYear()%100,n,2)}function fa(t,n){return Ao(t.getFullYear()%1e4,n,4)}function ha(t,n){var e=t.getDay();return Ao((t=e>=4||0===e?Pi(t):Pi.ceil(t)).getFullYear()%1e4,n,4)}function da(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Ao(n/60|0,"0",2)+Ao(n%60,"0",2)}function ga(t,n){return Ao(t.getUTCDate(),n,2)}function pa(t,n){return Ao(t.getUTCHours(),n,2)}function ya(t,n){return Ao(t.getUTCHours()%12||12,n,2)}function va(t,n){return Ao(1+Zi.count(uo(t),t),n,3)}function ma(t,n){return Ao(t.getUTCMilliseconds(),n,3)}function ba(t,n){return ma(t,n)+"000"}function xa(t,n){return Ao(t.getUTCMonth()+1,n,2)}function wa(t,n){return Ao(t.getUTCMinutes(),n,2)}function Ma(t,n){return Ao(t.getUTCSeconds(),n,2)}function ka(t){var n=t.getUTCDay();return 0===n?7:n}function Aa(t,n){return Ao(Gi.count(uo(t)-1,t),n,2)}function Oa(t){var n=t.getUTCDay();return n>=4||0===n?no(t):no.ceil(t)}function Sa(t,n){return t=Oa(t),Ao(no.count(uo(t),t)+(4===uo(t).getUTCDay()),n,2)}function ja(t){return t.getUTCDay()}function Ca(t,n){return Ao(Qi.count(uo(t)-1,t),n,2)}function _a(t,n){return Ao(t.getUTCFullYear()%100,n,2)}function Ea(t,n){return Ao((t=Oa(t)).getUTCFullYear()%100,n,2)}function Da(t,n){return Ao(t.getUTCFullYear()%1e4,n,4)}function Fa(t,n){var e=t.getUTCDay();return Ao((t=e>=4||0===e?no(t):no.ceil(t)).getUTCFullYear()%1e4,n,4)}function Ta(){return"+0000"}function $a(){return"%"}function Na(t){return+t}function La(t){return Math.floor(+t/1e3)}function Pa(t){return new Date(t)}function za(t){return t instanceof Date?+t:+new Date(+t)}function Ua(t,n,e,r,i,o,a,u,s,l){var c=yr(),f=c.invert,h=c.domain,d=l(".%L"),g=l(":%S"),p=l("%I:%M"),y=l("%I %p"),v=l("%a %d"),m=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(s(t)<t?d:u(t)<t?g:a(t)<t?p:o(t)<t?y:r(t)<t?i(t)<t?v:m:e(t)<t?b:x)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,za)):h().map(Pa)},c.ticks=function(n){var e=h();return t(e[0],e[e.length-1],null==n?10:n)},c.tickFormat=function(t,n){return null==n?w:l(n)},c.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(Nr(e,t)):c},c.copy=function(){return gr(c,Ua(t,n,e,r,i,o,a,u,s,l))},c}function Wa(){return Bn.apply(Ua(fo,ho,Ii,Hi,Ti,Di,_i,ji,Oi,mo).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ha(){return Bn.apply(Ua(lo,co,uo,oo,Gi,Zi,Vi,qi,Oi,bo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ba(){var t,n,e,r,i,o=0,a=1,u=cr,s=!1;function l(n){return null==n||isNaN(n=+n)?i:u(0===e?.5:(n=(r(n)-t)*e,s?Math.max(0,Math.min(1,n)):n))}function c(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),l):[u(0),u(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),n=r(a=+a),e=t===n?0:1/(n-t),l):[o,a]},l.clamp=function(t){return arguments.length?(s=!!t,l):s},l.interpolator=function(t){return arguments.length?(u=t,l):u},l.range=c(ar),l.rangeRound=c(ur),l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),l}}function Ia(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ra(){var t=Fr(Ba()(cr));return t.copy=function(){return Ia(t,Ra())},In.apply(t,arguments)}function qa(){var t=Br(Ba()).domain([1,10]);return t.copy=function(){return Ia(t,qa()).base(t.base())},In.apply(t,arguments)}function Ya(){var t=Yr(Ba());return t.copy=function(){return Ia(t,Ya()).constant(t.constant())},In.apply(t,arguments)}function Va(){var t=Gr(Ba());return t.copy=function(){return Ia(t,Va()).exponent(t.exponent())},In.apply(t,arguments)}function Ka(){return Va.apply(null,arguments).exponent(.5)}function Za(){var t=[],n=cr;function e(e){if(null!=e&&!isNaN(e=+e))return n((fe(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(ie),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)=>si(t,r/n)))},e.copy=function(){return Za(n).domain(t)},In.apply(e,arguments)}function Xa(t,n){void 0===n&&(n=t,t=ar);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 Ga(){var t,n,e,r,i,o,a,u=0,s=.5,l=1,c=1,f=cr,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(c*t<c*n?r:i),f(h?Math.max(0,Math.min(1,t)):t))}function g(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,f=Xa(t,[e,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,s,l]=a,t=o(u=+u),n=o(s=+s),e=o(l=+l),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),c=n<t?-1:1,d):[u,s,l]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=g(ar),d.rangeRound=g(ur),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(u),n=a(s),e=a(l),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),c=n<t?-1:1,d}}function Qa(){var t=Fr(Ga()(cr));return t.copy=function(){return Ia(t,Qa())},In.apply(t,arguments)}function Ja(){var t=Br(Ga()).domain([.1,1,10]);return t.copy=function(){return Ia(t,Ja()).base(t.base())},In.apply(t,arguments)}function tu(){var t=Yr(Ga());return t.copy=function(){return Ia(t,tu()).constant(t.constant())},In.apply(t,arguments)}function nu(){var t=Gr(Ga());return t.copy=function(){return Ia(t,nu()).exponent(t.exponent())},In.apply(t,arguments)}function eu(){return nu.apply(null,arguments).exponent(.5)}vo=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,l=So(i),c=jo(i),f=So(o),h=jo(o),d=So(a),g=jo(a),p=So(u),y=jo(u),v=So(s),m=jo(s),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Ko,e:Ko,f:Jo,g:ca,G:ha,H:Zo,I:Xo,j:Go,L:Qo,m:ta,M:na,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Na,s:La,S:ea,u:ra,U:ia,V:aa,w:ua,W:sa,x:null,X:null,y:la,Y:fa,Z:da,"%":$a},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:ga,e:ga,f:ba,g:Ea,G:Fa,H:pa,I:ya,j:va,L:ma,m:xa,M:wa,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Na,s:La,S:Ma,u:ka,U:Aa,V:Sa,w:ja,W:Ca,x:null,X:null,y:_a,Y:Da,Z:Ta,"%":$a},w={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=g.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=f.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=p.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:zo,e:zo,f:Ro,g:$o,G:To,H:Wo,I:Wo,j:Uo,L:Io,m:Po,M:Ho,p:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.p=c.get(r[0].toLowerCase()),e+r[0].length):-1},q:Lo,Q:Yo,s:Vo,S:Bo,u:_o,U:Eo,V:Do,w:Co,W:Fo,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:$o,Y:To,Z:No,"%":qo};function M(t,n){return function(e){var r,i,o,a=[],u=-1,s=0,l=t.length;for(e instanceof Date||(e=new Date(+e));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(i=xo[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function k(t,n){return function(e){var r,i,o=yo(1900,void 0,1);if(A(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=po(yo(o.y,0,1))).getUTCDay(),r=i>4||0===i?Qi.ceil(r):Qi(r),r=Zi.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=go(yo(o.y,0,1))).getDay(),r=i>4||0===i?$i.ceil(r):$i(r),r=Di.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?po(yo(o.y,0,1)).getUTCDay():go(yo(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,po(o)):go(o)}}function A(t,n,e,r){for(var i,o,a=0,u=n.length,s=e.length;a<u;){if(r>=s)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=w[i in xo?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=M(e,b),b.X=M(r,b),b.c=M(n,b),x.x=M(e,x),x.X=M(r,x),x.c=M(n,x),{format:function(t){var n=M(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=k(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=M(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=k(t+="",!0);return n.toString=function(){return t},n}}}({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"]}),mo=vo.format,vo.parse,bo=vo.utcFormat,vo.utcParse;const ru=["linear","time","log","sqrt"];function iu(t){return"function"==typeof t?O(t.copy)&&O(t.domain)&&O(t.range):"string"==typeof t&&ru.includes(t)}function ou(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function au(t,n){if(!t.data)return"linear";const e=S(t[n]);return Nn(t.data.map((t=>{const r=h()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function uu(n){if(iu(n)){const r=`scale${e=n,e&&e[0].toUpperCase()+e.slice(1)}`;return t[r]()}var e;return Tr()}function su(t,n){return function(t,n){if(!ou(t,n))return;const e=t.scale[n]||t.scale;return"string"==typeof e?e:function(t){if("string"==typeof t)return t;const n=lu.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}(e)}(t,n)||au(t,n)}const lu=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function cu(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function fu(t,n){return cu(t)?t.reduce(((t,e,r)=>{let i=e;return n&&n[r]&&(i=fu(e)),t[r]=i,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function hu(t){return cu(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?fu(t,{errorX:!0,errorY:!0}):t;var n}function du(t,n){const e=(h()(t.domain)?t.domain[n]:t.domain)||function(t,n){const e=function(t,n){if(!ou(t,n))return;const e=t.scale[n]||t.scale;return iu(e)?O(e)?e:uu(e):void 0}(t,n);return e?"string"==typeof e?uu(e):e:uu(function(t,n){let e;if(t.domain&&t.domain[n]?e=t.domain[n]:t.domain&&Array.isArray(t.domain)&&(e=t.domain),e)return Nn(e)?"time":"linear"}(t,n)||au(t,n))}(t,n).domain(),r=t.samples||1,i=Math.max(...e),o=Math.min(...e),a=function(t,n,e){const r=n?t:0;let i=n||t;i||(i=0);const o=i-r,a=Math.abs(o),u=o/a||1,s=e||1,l=Math.max(Math.ceil(a/s),0);return Array.from(Array(l),((t,n)=>r+n*u*s))}(o,i,(i-o)/r);return a[a.length-1]===i?a:a.concat(i)}function gu(t,n,e){if(void 0===e&&(e="ascending"),!n)return t;let r=n;"x"!==n&&"y"!==n||(r=`_${n}`);const i="ascending"===e?"asc":"desc";return c()(t,r,i)}function pu(t,n){const e=function(t,n){const{tickValues:e,tickFormat:r}=t;let i;return i=e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[],i.filter((t=>"string"==typeof t))}(t,n),r=function(t,n){if(!t.categories)return[];const e=function(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?r.filter((t=>void 0!==t)):[]}(t,n),i=function(t,n){if(!Array.isArray(t.data)&&!cu(t.data))return[];const e=S(void 0===t[n]?n:t[n]);return gu(t.data.reduce(((t,n)=>(t.push(hu(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=hu(n);return t.push(e(r)),t}),[]).filter((t=>"string"==typeof t)).reduce(((t,n)=>(null!=n&&-1===t.indexOf(n)&&t.push(n),t)),[])}(t,n),o=Wn()([...e,...r,...i]);return 0===o.length?null:o.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function yu(t,n,e){if(!Array.isArray(t)&&!cu(t)||function(t){return cu(t)?t.size:t.length}(t)<1)return[];const r=["x","y","y0"],i=(e=Array.isArray(e)?e:r).reduce(((t,e)=>{var r;return t[e]=S(void 0!==n[r=e]?n[r]:r),t}),{}),o=zn()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let a;!1===o&&(a={x:-1!==e.indexOf("x")?pu(n,"x"):void 0,y:-1!==e.indexOf("y")?pu(n,"y"):void 0,y0:-1!==e.indexOf("y0")?pu(n,"y"):void 0});const u=o?t:t.reduce(((t,n,r)=>{const o=hu(n),u={x:r,y:o},s=e.reduce(((t,n)=>{const e=i[n](o),r=void 0!==e?e:u[n];return void 0!==r&&("string"==typeof r&&a[n]?(t[`${n}Name`]=r,t[`_${n}`]=a[n][r]):t[`_${n}`]=r),t}),{}),l=Object.assign({},s,o);return y()(l)||t.push(l),t}),[]),s=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:su(n,"x"),y:su(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;const i=(t,n)=>"log"!==r[n]||0!==t[`_${n}`];return t.map((t=>i(t,"x")&&i(t,"y")&&i(t,"y0")?t:(t=>{const n=i(t,"x")?t._x:e,r=i(t,"y")?t._y:e,o=i(t,"y0")?t._y0:e;return Object.assign({},t,{_x:n,_y:r,_y0:o})})(t)))}(gu(u,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=O(i=t.eventKey)?i:null==i?()=>{}:m()(i);var i;return n.map(((t,n)=>{if(void 0!==t.eventKey)return t;if(e){const e=r(t,n);return void 0!==e?Object.assign({eventKey:e},t):t}return t}))}(n,s)}function vu(t,n,e){const{a:r,d:i,e:o,f:a}=n;return"y"===e?i*t+a:r*t+o}function mu(t){return!(!t||void 0===t.identifier)}function bu(t){if(mu(t.nativeEvent))return;const n=t=>"svg"===t.nodeName?t:t.parentNode?n(t.parentNode):t;return n(t.target)}var xu=r(7491),wu=r.n(xu),Mu=r(6898);const ku=new class{withinBounds(t,n){const{width:e,height:r,polar:i,origin:o,scale:a}=t,u=M(t,"voronoiPadding"),{x:s,y:l}=n;if(i){const t=Math.pow(s-o.x,2)+Math.pow(l-o.y,2),n=Math.max(...a.y.range());return t<Math.pow(n,2)}return s>=u.left&&s<=e-u.right&&l>=u.top&&l<=r-u.bottom}getDatasets(t){const n={x:Ln(t.domain.x),y:Ln(t.domain.y)},r=s().Children.toArray(t.children),i=(e,r,i)=>{const o=i&&i.type&&i.type.continuous,a=i?i.props&&i.props.style:t.style;return e.map(((e,i)=>{const{x:u,y:s,y0:l,x0:c}=x(e),f=(Number(u)+Number(c))/2,h=(Number(s)+Number(l))/2;return Object.assign({_voronoiX:"y"===t.voronoiDimension?n.x:f,_voronoiY:"x"===t.voronoiDimension?n.y:h,eventKey:i,childName:r,continuous:o,style:a},e)}))};if(t.data)return i(t.data);const o=t=>{const n=function(t){return t.data?yu(t.data,t):yu(function(t){const n=du(t,"x"),e=du(t,"y");return n.map(((t,n)=>({x:t,y:e[n]})))}(t),t)}(t);return Array.isArray(n)&&n.length>0?n:void 0};return function(n,r,a,l,c){void 0===a&&(a={}),void 0===l&&(l=[]),void 0===c&&(c=(t,n)=>t.concat(n));const f=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],h=(n,r,u)=>n.reduce(((n,u,l)=>{let d=n;const g=u.type&&u.type.role,p=u.props.name||`${g}-${r[l]}`;if(u.props&&u.props.children){const t=Object.assign({},u.props,e()(a,f)),n=u.type&&"stack"===u.type.role&&O(u.type.getChildren)?u.type.getChildren(t):s().Children.toArray(u.props.children).map((n=>{const r=Object.assign({},n.props,e()(t,f));return s().cloneElement(n,r)})),r=n.map(((t,n)=>`${p}-${n}`)),i=h(n,r,u);d=c(d,i)}else{const n=((n,e)=>{const r=(n.props||{}).name||e,a=t.voronoiBlacklist||[],u=a.filter((t=>!!t&&"string"==typeof t.valueOf())),l=a.filter($n()).some((t=>t.test(r)));if(!function(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=s().Children.toArray(t.props.children);e=r.length?n(r[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(e)}(n)||u.includes(r)||l)return null;const c=(n.type&&O(n.type.getData)?n.type.getData:o)(n.props);return c?i(c,r,n):null})(u,p);n&&(d=c(d,n))}return d}),l),d=n.filter(u.isValidElement),g=d.map(((t,n)=>n));return h(d,g)}(r,0,t)}findPoints(t,n){return t.filter((t=>n._voronoiX===t._voronoiX&&n._voronoiY===t._voronoiY))}withinRadius(t,n,e){if(!t)return!1;if(!e)return!0;const{x:r,y:i}=n;return Math.pow(r-t[0],2)+Math.pow(i-t[1],2)<Math.pow(e,2)}getVoronoiPoints(t,n){const e=this.getDatasets(t),r=e.map((n=>{const{x:e,y:r}=w(t,n);return[e,r]})),i=Mu.Z.from(r).find(n.x,n.y);return{points:this.withinRadius(r[i],n,t.radius)?this.findPoints(e,e[i]):[],index:i}}getActiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:i,activateLabels:o,labels:a}=t;if(!i&&!o)return[];const u=i?["data"]:[],s=a&&!o?u:u.concat("labels");return y()(s)?[]:s.map((t=>{const i=!0===r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:i,target:t,mutation:()=>({active:!0})}}))}getInactiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:i,activateLabels:o,labels:a}=t;if(!i&&!o)return[];const u=i?["data"]:[],s=a&&!o?u:u.concat("labels");return y()(s)?[]:s.map((t=>{const i=r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:i,target:t,mutation:()=>null}}))}getParentMutation(t,n,e,r){return[{target:"parent",eventKey:"parent",mutation:()=>({activePoints:t,mousePosition:n,parentSVG:e,vIndex:r})}]}onActivated(t,n){O(t.onActivated)&&t.onActivated(n,t)}onDeactivated(t,n){O(t.onDeactivated)&&t.onDeactivated(n,t)}onMouseLeave=(t,n)=>{this.onMouseMove.cancel();const e=n.activePoints||[];this.onDeactivated(n,e);const r=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return this.getParentMutation([]).concat(...r)};handleMouseMove=(t,n)=>{const e=n.activePoints||[],r=n.parentSVG||bu(t),i=function(t,n){if(mu(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};const e=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,r=function(t){return t.getScreenCTM().inverse()}(n||bu(e));return{x:vu(e.clientX,r,"x"),y:vu(e.clientY,r,"y")}}(t,r);if(!this.withinBounds(n,i)){this.onDeactivated(n,e);const t=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return this.getParentMutation([],i,r).concat(...t)}const{points:o=[],index:a}=this.getVoronoiPoints(n,i),u=this.getParentMutation(o,i,r,a);if(e.length&&wu()(o,e))return u;this.onActivated(n,o),this.onDeactivated(n,e);const s=o.length?o.map((t=>this.getActiveMutations(n,t))):[],l=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return u.concat(...l,...s)};onMouseMove=Fn()(this.handleMouseMove,32,{leading:!0,trailing:!1})},Au={activateData:!0,activateLabels:!0,labelComponent:s().createElement(An,null),voronoiPadding:5},Ou=t=>e()(t,["_x","_x1","_x0","_y","_y1","_y0"]),Su=t=>{const n={...Au,...t},{children:e}=n,r=(t,e)=>{const{labels:r,labelComponent:i,theme:o}=n,u=i.props||{},s=o&&o.voronoi&&o.voronoi.style?o.voronoi.style:{},l="flyout"===e?u.flyoutStyle:u.style;return t.reduce(((t,n,i)=>{const o=a()({},u,{datum:n,active:!0}),c=O(r)?r(o):void 0,f=void 0!==c?`${c}`.split("\n"):[],h=n.style&&n.style[e]||{},d=Array.isArray(l)?l[i]:l,g=A(a()({},d,h,s[e]),o),p=f.length?f.map((()=>g)):[g];return t.concat(p)}),[])},i=t=>{const{labels:e,scale:i,labelComponent:o,theme:u,width:s,height:l}=n,c=o.props||{},f=t.reduce(((t,n)=>{const r=a()({},c,{datum:n,active:!0}),i=O(e)?e(r):null;return null==i?t:t.concat(`${i}`.split("\n"))}),[]),{childName:h,eventKey:d,style:g,continuous:p,...y}=t[0],v=n.name===h?h:`${n.name}-${h}`,m=a()({key:`${v}-${d}-voronoi-tooltip`,id:`${v}-${d}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:t,datum:y,scale:i,theme:u},c,{text:f,width:s,height:l,style:r(t,"labels"),flyoutStyle:r(t,"flyout")[0]},(t=>{const{voronoiDimension:e,horizontal:r,mouseFollowTooltips:i}=n,o=Ou(t[0]),a=e&&t.length>1,u=void 0!==o._y1?o._y1:o._y;return{orientation:i?void 0:r?u<0?"left":"right":u<0?"bottom":"top",pointerLength:a?0:void 0,constrainToVisibleArea:!(!a&&!i)||void 0}})(t)),b=((t,e)=>{const{mousePosition:r,mouseFollowTooltips:i}=n,o=(()=>{const{horizontal:t,voronoiDimension:e}=n;return t&&e?"x"===e?"y":"x":e})(),u=Ou(e[0]),s=w(n,u);let l=i?r:void 0;if(!o||e.length<2)return{...s,center:a()({},t.center,l)};const c="y"===o?r.x:s.x,f="x"===o?r.y:s.y;return l=i?r:{x:c,y:f},{x:c,y:f,center:a()({},t.center,l)}})(m,t);return a()({},b,m)};return{props:n,children:[...s().Children.toArray(e),(()=>{const{labels:t,activePoints:e,labelComponent:r}=n;if(!t)return null;if(Array.isArray(e)&&e.length){const t=i(e),{text:n}=t;return(Array.isArray(n)?n.filter(Boolean).length:n)?s().cloneElement(r,t):null}return null})()]}},ju=t=>{const{props:n,children:e}=Su(t);return s().createElement(En,n,e)};ju.role="container",ju.defaultEvents=t=>{const n={...Au,...t},e=(t,e)=>(r,i,o,a)=>e||n.disable?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseLeave:e(ku.onMouseLeave),onTouchCancel:e(ku.onMouseLeave),onMouseMove:e(ku.onMouseMove),onTouchMove:e(ku.onMouseMove)}},{target:"data",eventHandlers:n.disable?{}:{onMouseOver:()=>null,onMouseOut:()=>null,onMouseMove:()=>null}}]}}(),i}()}));
|
|
2
2
|
//# sourceMappingURL=victory-voronoi-container.min.js.map
|
package/es/voronoi-helpers.js
CHANGED
|
@@ -205,7 +205,6 @@ class VoronoiHelpersClass {
|
|
|
205
205
|
return this.getParentMutation([]).concat(...inactiveMutations);
|
|
206
206
|
};
|
|
207
207
|
handleMouseMove = (evt, targetProps) => {
|
|
208
|
-
// eslint-disable-line max-statements
|
|
209
208
|
const activePoints = targetProps.activePoints || [];
|
|
210
209
|
const parentSVG = targetProps.parentSVG || Selection.getParentSVG(evt);
|
|
211
210
|
const mousePosition = Selection.getSVGEventCoordinates(evt, parentSVG);
|
|
@@ -11,8 +11,6 @@ var _victoryTooltip = require("victory-tooltip");
|
|
|
11
11
|
var _victoryCore = require("victory-core");
|
|
12
12
|
var _voronoiHelpers = require("./voronoi-helpers");
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
/* eslint-disable react/no-multi-comp */
|
|
15
|
-
|
|
16
14
|
const VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS = exports.VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS = {
|
|
17
15
|
activateData: true,
|
|
18
16
|
activateLabels: true,
|
package/lib/voronoi-helpers.js
CHANGED
|
@@ -212,7 +212,6 @@ class VoronoiHelpersClass {
|
|
|
212
212
|
return this.getParentMutation([]).concat(...inactiveMutations);
|
|
213
213
|
};
|
|
214
214
|
handleMouseMove = (evt, targetProps) => {
|
|
215
|
-
// eslint-disable-line max-statements
|
|
216
215
|
const activePoints = targetProps.activePoints || [];
|
|
217
216
|
const parentSVG = targetProps.parentSVG || _victoryCore.Selection.getParentSVG(evt);
|
|
218
217
|
const mousePosition = _victoryCore.Selection.getSVGEventCoordinates(evt, parentSVG);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-voronoi-container",
|
|
3
|
-
"version": "37.3.
|
|
3
|
+
"version": "37.3.2",
|
|
4
4
|
"description": "Interactive Voronoi Mouseover Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"delaunay-find": "0.0.6",
|
|
24
24
|
"lodash": "^4.17.19",
|
|
25
25
|
"react-fast-compare": "^3.2.0",
|
|
26
|
-
"victory-core": "37.3.
|
|
27
|
-
"victory-tooltip": "37.3.
|
|
26
|
+
"victory-core": "37.3.2",
|
|
27
|
+
"victory-tooltip": "37.3.2"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": ">=16.6.0"
|
|
@@ -216,11 +216,9 @@
|
|
|
216
216
|
]
|
|
217
217
|
},
|
|
218
218
|
"lint": {
|
|
219
|
-
"command": "
|
|
219
|
+
"command": "eslint src",
|
|
220
220
|
"files": [
|
|
221
|
-
"src/**"
|
|
222
|
-
"../../.eslintignore",
|
|
223
|
-
"../../.eslintrc.js"
|
|
221
|
+
"src/**"
|
|
224
222
|
],
|
|
225
223
|
"output": [],
|
|
226
224
|
"dependencies": [
|
|
@@ -234,11 +232,9 @@
|
|
|
234
232
|
]
|
|
235
233
|
},
|
|
236
234
|
"lint:fix": {
|
|
237
|
-
"command": "
|
|
235
|
+
"command": "eslint --fix src",
|
|
238
236
|
"files": [
|
|
239
|
-
"src/**"
|
|
240
|
-
"../../.eslintignore",
|
|
241
|
-
"../../.eslintrc.js"
|
|
237
|
+
"src/**"
|
|
242
238
|
],
|
|
243
239
|
"output": [],
|
|
244
240
|
"dependencies": [
|
package/src/voronoi-helpers.ts
CHANGED
|
@@ -214,7 +214,6 @@ class VoronoiHelpersClass {
|
|
|
214
214
|
};
|
|
215
215
|
|
|
216
216
|
private handleMouseMove = (evt, targetProps) => {
|
|
217
|
-
// eslint-disable-line max-statements
|
|
218
217
|
const activePoints = targetProps.activePoints || [];
|
|
219
218
|
const parentSVG = targetProps.parentSVG || Selection.getParentSVG(evt);
|
|
220
219
|
const mousePosition = Selection.getSVGEventCoordinates(evt, parentSVG);
|