victory-create-container 37.3.1 → 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.
|
@@ -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.VictoryCreateContainer=n(require("react")):t.VictoryCreateContainer=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 o=t-e,i=n-r;return o*o+i*i}function o(t,n,e,r,o,i){var a=(r-n)*(o-t),u=(e-t)*(i-n);return Math.abs(a-u)>=33306690738754716e-32*Math.abs(a+u)?a-u:0}function i(t,n,e,r,i,a){return(o(i,a,t,n,e,r)||o(t,n,e,r,i,a)||o(e,r,i,a,t,n))<0}function a(t,n,e,r,o,i){var a=e-t,u=r-n,s=o-t,l=i-n,c=a*a+u*u,f=s*s+l*l,h=.5/(a*l-u*s),d=(l*c-u*f)*h,p=(a*f-s*c)*h;return d*d+p*p}function u(t,n,e,r){if(r-e<=20)for(var o=e+1;o<=r;o++){for(var i=t[o],a=n[i],l=o-1;l>=e&&n[t[l]]>a;)t[l+1]=t[l--];t[l+1]=i}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 o=t.length,i=new Float64Array(2*o),a=0;a<o;a++){var u=t[a];i[2*a]=n(u),i[2*a+1]=r(u)}return new e(i)},e.prototype.update=function(){for(var n=this,e=n.coords,o=n._hullPrev,s=n._hullNext,l=n._hullTri,c=n._hullHash,f=e.length>>1,h=1/0,d=1/0,p=-1/0,g=-1/0,y=0;y<f;y++){var m=e[2*y],v=e[2*y+1];m<h&&(h=m),v<d&&(d=v),m>p&&(p=m),v>g&&(g=v),this._ids[y]=y}for(var x,b,M,w=(h+p)/2,D=(d+g)/2,k=1/0,A=0;A<f;A++){var S=r(w,D,e[2*A],e[2*A+1]);S<k&&(x=A,k=S)}var C=e[2*x],O=e[2*x+1];k=1/0;for(var E=0;E<f;E++)if(E!==x){var j=r(C,O,e[2*E],e[2*E+1]);j<k&&j>0&&(b=E,k=j)}for(var _=e[2*b],T=e[2*b+1],$=1/0,F=0;F<f;F++)if(F!==x&&F!==b){var N=a(C,O,_,T,e[2*F],e[2*F+1]);N<$&&(M=F,$=N)}var P=e[2*M],z=e[2*M+1];if($===1/0){for(var L=0;L<f;L++)this._dists[L]=e[2*L]-e[0]||e[2*L+1]-e[1];u(this._ids,this._dists,0,f-1);for(var B=new Uint32Array(f),U=0,W=0,H=-1/0;W<f;W++){var I=this._ids[W];this._dists[I]>H&&(B[U++]=I,H=this._dists[I])}return this.hull=B.subarray(0,U),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(i(C,O,_,T,P,z)){var R=b,q=_,V=T;b=M,_=P,T=z,M=R,P=q,z=V}var Y=function(t,n,e,r,o,i){var a=e-t,u=r-n,s=o-t,l=i-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}}(C,O,_,T,P,z);this._cx=Y.x,this._cy=Y.y;for(var G=0;G<f;G++)this._dists[G]=r(e[2*G],e[2*G+1],Y.x,Y.y);u(this._ids,this._dists,0,f-1),this._hullStart=x;var X=3;s[x]=o[M]=b,s[b]=o[x]=M,s[M]=o[b]=x,l[x]=0,l[b]=1,l[M]=2,c.fill(-1),c[this._hashKey(C,O)]=x,c[this._hashKey(_,T)]=b,c[this._hashKey(P,z)]=M,this.trianglesLen=0,this._addTriangle(x,b,M,-1,-1,-1);for(var Z=0,K=void 0,Q=void 0;Z<this._ids.length;Z++){var J=this._ids[Z],tt=e[2*J],nt=e[2*J+1];if(!(Z>0&&Math.abs(tt-K)<=t&&Math.abs(nt-Q)<=t)&&(K=tt,Q=nt,J!==x&&J!==b&&J!==M)){for(var et=0,rt=0,ot=this._hashKey(tt,nt);rt<this._hashSize&&(-1===(et=c[(ot+rt)%this._hashSize])||et===s[et]);rt++);for(var it=et=o[et],at=void 0;at=s[it],!i(tt,nt,e[2*it],e[2*it+1],e[2*at],e[2*at+1]);)if((it=at)===et){it=-1;break}if(-1!==it){var ut=this._addTriangle(it,J,s[it],-1,-1,l[it]);l[J]=this._legalize(ut+2),l[it]=ut,X++;for(var st=s[it];at=s[st],i(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,X--,st=at;if(it===et)for(;i(tt,nt,e[2*(at=o[it])],e[2*at+1],e[2*it],e[2*it+1]);)ut=this._addTriangle(at,J,it,-1,l[it],l[at]),this._legalize(ut+2),l[at]=ut,s[it]=it,X--,it=at;this._hullStart=o[J]=it,s[it]=o[st]=J,s[J]=st,c[this._hashKey(tt,nt)]=J,c[this._hashKey(e[2*it],e[2*it+1])]=it}}}this.hull=new Uint32Array(X);for(var lt=0,ct=this._hullStart;lt<X;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,o=e/(Math.abs(e)+Math.abs(r)),(r>0?3-o:1+o)/4*this._hashSize))%this._hashSize;var e,r,o},e.prototype._legalize=function(t){for(var e=this,r=e._triangles,o=e._halfedges,i=e.coords,a=0,u=0;;){var s=o[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],p=r[t],g=r[f],y=r[h];if(b=i[2*d],M=i[2*d+1],w=i[2*p],D=i[2*p+1],k=i[2*g],A=i[2*g+1],S=i[2*y],C=i[2*y+1],O=void 0,E=void 0,j=void 0,_=void 0,T=void 0,$=void 0,F=void 0,N=void 0,(O=b-S)*((_=D-C)*(N=(T=k-S)*T+($=A-C)*$)-(F=(j=w-S)*j+_*_)*$)-(E=M-C)*(j*N-F*T)+(O*O+E*E)*(j*$-_*T)<0){r[t]=y,r[s]=d;var m=o[h];if(-1===m){var v=this._hullStart;do{if(this._hullTri[v]===h){this._hullTri[v]=t;break}v=this._hullPrev[v]}while(v!==this._hullStart)}this._link(t,m),this._link(s,o[u]),this._link(u,h);var x=c+(s+1)%3;a<n.length&&(n[a++]=x)}else{if(0===a)break;t=n[--a]}}else{if(0===a)break;t=n[--a]}}var b,M,w,D,k,A,S,C,O,E,j,_,T,$,F,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,o,i){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,o),this._link(a+2,i),this.trianglesLen+=3,a},e}()},6898:function(t,n,e){"use strict";n.Z=void 0;var r,o=(r=e(3644))&&r.__esModule?r:{default:r};function i(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 o.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 o=2*n[r],i=2*n[r+1],a=2*n[r+2];if((e[a]-e[o])*(e[i+1]-e[o+1])-(e[i]-e[o])*(e[a+1]-e[o+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],i=this.collinear[this.collinear.length-1],a=[e[2*r],e[2*r+1],e[2*i],e[2*i+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 o.default(e)}for(var h=this.halfedges=t.halfedges,d=this.hull=t.hull,p=this.triangles=t.triangles,g=this.inedges.fill(-1),y=this._hullIndex.fill(-1),m=0,v=h.length;m<v;++m){var x=p[m%3==2?m-2:m+1];-1!==h[m]&&-1!==g[x]||(g[x]=m)}for(var b=0,M=d.length;b<M;++b)y[d[b]]=b;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],g[d[0]]=1,2===d.length&&(g[d[1]]=0))},n.neighbors=function(t){var n=[],e=this.inedges,r=this.hull,o=this._hullIndex,i=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=i[s])){var c=r[(o[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,o=e;(r=this._step(e,t,n))>=0&&r!==e&&r!==o;)e=r;return r},n._step=function(t,n,e){var r=this.inedges,o=this.points;if(-1===r[t]||!o.length)return(t+1)%(o.length>>1);var i=t,a=Math.pow(n-o[2*t],2)+Math.pow(e-o[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-o[2*f],2)+Math.pow(e-o[2*f+1],2);h<a&&(a=h,i=f)}return i},t}();n.Z=s,s.from=function(t,n,e,r){return void 0===n&&(n=i),void 0===e&&(e=a),new s(function(t,n,e,r){for(var o=t.length,i=new Float64Array(2*o),a=0;a<o;++a){var u=t[a];i[2*a]=n.call(r,u,a,t),i[2*a+1]=e.call(r,u,a,t)}return i}(t,n,e,r))}},503:function(t,n,e){var r=e(1171),o=e(7838),i=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=o,s.prototype.get=i,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),o=e(7838),i=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=o,s.prototype.get=i,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)}},6649:function(t){t.exports=function(t,n,e,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];n(r,a,e(a),t)}return r}},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,o=null==t?0:t.length;++r<o;)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,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},9559:function(t){t.exports=function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+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),o=e(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];i.call(t,n)&&o(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}},4508:function(t){t.exports=function(t,n,e,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];n(r,a,e(a),t)}return r}},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}},7451:function(t){t.exports=function(t,n,e){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,e)}),n)}},6457:function(t,n,e){var r=e(9559),o=e(3608);t.exports=function t(n,e,i,a,u){var s=-1,l=n.length;for(i||(i=o),u||(u=[]);++s<l;){var c=n[s];e>0&&i(c)?e>1?t(c,e-1,i,a,u):r(u,c):a||(u[u.length]=c)}return u}},320:function(t,n,e){var r=e(4710)();t.exports=r},2446:function(t,n,e){var r=e(320),o=e(7747);t.exports=function(t,n){return t&&r(t,n,o)}},4432:function(t,n,e){var r=e(9026),o=e(3110);t.exports=function(t,n){for(var e=0,i=(n=r(n,t)).length;null!=t&&e<i;)t=t[o(n[e++])];return e&&e==i?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,o=t.length;++r<o;)if(t[r]===n)return r;return-1}},7537:function(t,n,e){var r=e(563),o=e(3474);t.exports=function(t){return o(t)&&"[object Date]"==r(t)}},9070:function(t,n,e){var r=e(7028),o=e(3474);t.exports=function t(n,e,i,a,u){return n===e||(null==n||null==e||!o(n)&&!o(e)?n!=n&&e!=e:r(n,e,i,a,t,u))}},7028:function(t,n,e){var r=e(8708),o=e(8705),i=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]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,g,y,m){var v=s(t),x=s(n),b=v?h:u(t),M=x?h:u(n),w=(b=b==f?d:b)==d,D=(M=M==f?d:M)==d,k=b==M;if(k&&l(t)){if(!l(n))return!1;v=!0,w=!1}if(k&&!w)return m||(m=new r),v||c(t)?o(t,n,e,g,y,m):i(t,n,b,e,g,y,m);if(!(1&e)){var A=w&&p.call(t,"__wrapped__"),S=D&&p.call(n,"__wrapped__");if(A||S){var C=A?t.value():t,O=S?n.value():n;return m||(m=new r),y(C,O,e,g,m)}}return!!k&&(m||(m=new r),a(t,n,e,g,y,m))}},9548:function(t,n,e){var r=e(8708),o=e(9070);t.exports=function(t,n,e,i){var a=e.length,u=a,s=!i;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(i)var p=i(f,h,c,t,n,d);if(!(void 0===p?o(h,f,3,i,d):p))return!1}}return!0}},2229:function(t,n,e){var r=e(563),o=e(3474);t.exports=function(t){return o(t)&&"[object RegExp]"==r(t)}},3472:function(t,n,e){var r=e(758),o=e(5223),i=e(5346),a=e(163),u=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(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,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},758:function(t,n,e){var r=e(9548),o=e(597),i=e(6878);t.exports=function(t){var n=o(t);return 1==n.length&&n[0][2]?i(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:function(t,n,e){var r=e(9070),o=e(9201),i=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=o(e,t);return void 0===a&&a===n?i(e,t):r(n,a,3)}}},8245:function(t,n,e){var r=e(8644),o=e(4432),i=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 o(n,1===t.length?t[0]:t)}:t})):[c];var h=-1;n=r(n,s(i));var d=a(t,(function(t,e,o){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),o=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return o(t,e)}))}},6371:function(t,n,e){var r=e(4432),o=e(6539),i=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)&&o(s,i(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),o=e(4280),i=e(201);t.exports=function(t,n){return i(o(t,n,r),t+"")}},6539:function(t,n,e){var r=e(4132),o=e(9026),i=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=o(n,t)).length,f=c-1,h=t;null!=h&&++l<c;){var d=u(n[l]),p=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(l!=f){var g=h[d];void 0===(p=s?s(g,d,h):void 0)&&(p=a(g)?g:i(n[l+1])?[]:{})}r(h,d,p),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}},7556:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=-1,o=t.length,i=0,a=[];++e<o;){var u=t[e],s=n?n(u):u;if(!e||!r(s,l)){var l=s;a[i++]=0===u?0:u}}return a}},4738:function(t,n,e){var r=e(8644);t.exports=function(t,n){return r(n,(function(n){return[n,t[n]]}))}},6316:function(t,n,e){var r=e(2596),o=e(8644),i=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(i(n))return o(n,t)+"";if(a(n))return s?s.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},1367:function(t,n,e){var r=e(4120),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},9110:function(t){t.exports=function(t){return function(n){return t(n)}}},946:function(t,n,e){var r=e(3273),o=e(5510),i=e(9955),a=e(9914),u=e(6602),s=e(6226);t.exports=function(t,n,e){var l=-1,c=o,f=t.length,h=!0,d=[],p=d;if(e)h=!1,c=i;else if(f>=200){var g=n?null:u(t);if(g)return s(g);h=!1,c=a,p=new r}else p=n?[]:d;t:for(;++l<f;){var y=t[l],m=n?n(y):y;if(y=e||0!==y?y:0,h&&m==m){for(var v=p.length;v--;)if(p[v]===m)continue t;n&&p.push(m),d.push(y)}else c(p,m,e)||(p!==d&&p.push(m),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}},674:function(t){t.exports=function(t){return t}},9026:function(t,n,e){var r=e(163),o=e(726),i=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:o(t,n)?[t]:i(a(t))}},522:function(t,n,e){var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,o=null===t,i=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||o&&u&&l||!e&&l||!i)return 1;if(!o&&!a&&!c&&t<n||c&&e&&i&&!o&&!a||s&&e&&i||!u&&i||!l)return-1}return 0}},9409:function(t,n,e){var r=e(522);t.exports=function(t,n,e){for(var o=-1,i=t.criteria,a=n.criteria,u=i.length,s=e.length;++o<u;){var l=r(i[o],a[o]);if(l)return o>=s?l:l*("desc"==e[o]?-1:1)}return t.index-n.index}},5659:function(t,n,e){var r=e(6649),o=e(4508),i=e(3472),a=e(163);t.exports=function(t,n){return function(e,u){var s=a(e)?r:o,l=n?n():{};return s(e,t,i(u,2),l)}}},4710:function(t){t.exports=function(t){return function(n,e,r){for(var o=-1,i=Object(n),a=r(n),u=a.length;u--;){var s=a[t?u:++o];if(!1===e(i[s],s,i))break}return n}}},6602:function(t){t.exports=function(){}},5976:function(t,n,e){var r=e(4738),o=e(9667),i=e(2900),a=e(3757);t.exports=function(t){return function(n){var e=o(n);return"[object Map]"==e?i(n):"[object Set]"==e?a(n):r(n,t(n))}}},5525:function(t,n,e){var r=e(3743),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:function(t,n,e){var r=e(3273),o=e(1634),i=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 p=-1,g=!0,y=2&e?new r:void 0;for(s.set(t,n),s.set(n,t);++p<c;){var m=t[p],v=n[p];if(a)var x=l?a(v,m,p,n,t,s):a(m,v,p,t,n,s);if(void 0!==x){if(x)continue;g=!1;break}if(y){if(!o(n,(function(t,n){if(!i(y,n)&&(m===t||u(m,t,e,a,s)))return y.push(n)}))){g=!1;break}}else if(m!==v&&!u(m,v,e,a,s)){g=!1;break}}return s.delete(t),s.delete(n),g}},2813:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:function(t,n,e){var r=e(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,i,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:o.call(n,h)))return!1}var d=u.get(t),p=u.get(n);if(d&&p)return d==n&&p==t;var g=!0;u.set(t,n),u.set(n,t);for(var y=s;++f<c;){var m=t[h=l[f]],v=n[h];if(i)var x=s?i(v,m,h,n,t,u):i(m,v,h,t,n,u);if(!(void 0===x?m===v||a(m,v,e,i,u):x)){g=!1;break}y||(y="constructor"==h)}if(g&&!y){var b=t.constructor,M=n.constructor;b==M||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof M&&M instanceof M||(g=!1)}return u.delete(t),u.delete(n),g}},5557:function(t,n,e){var r=e(2645),o=e(4280),i=e(201);t.exports=function(t){return i(o(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),o=e(7747);t.exports=function(t){for(var n=o(t),e=n.length;e--;){var i=n[e],a=t[i];n[e]=[i,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),o=e(5075),i=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)&&(i(t)||o(t))}},3608:function(t,n,e){var r=e(2596),o=e(5075),i=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(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),o=e(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\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&&!o(t))||a.test(t)||!i.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),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():o.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__,o=r(e,t);return o<0?(++this.size,e.push([t,n])):e[o][1]=n,this}},2900:function(t){t.exports=function(){return[]}},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),o=n&&!n.nodeType&&n,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{return i&&i.require&&i.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),o=Math.max;t.exports=function(t,n,e){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,a=-1,u=o(i.length-n,0),s=Array(u);++a<u;)s[a]=i[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=i[a];return l[n]=e(s),r(t,this,l)}}},2373:function(t,n,e){var r=e(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},6226:function(t){t.exports=function(){return[]}},3757:function(t){t.exports=function(){return[]}},201:function(t){t.exports=function(t){return t}},7801:function(t,n,e){var r=e(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,(function(t,e,r,o){n.push(r?o.replace(i,"$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}},4120:function(t){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},5034:function(t,n,e){var r=e(7709),o=e(6987),i=e(5812),a=Math.max,u=Math.min;t.exports=function(t,n,e){var s,l,c,f,h,d,p=0,g=!1,y=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(n){var e=s,r=l;return s=l=void 0,p=n,f=t.apply(r,e)}function x(t){return p=t,h=setTimeout(M,n),g?v(t):f}function b(t){var e=t-d;return void 0===d||e>=n||e<0||y&&t-p>=c}function M(){var t=o();if(b(t))return w(t);h=setTimeout(M,function(t){var e=n-(t-d);return y?u(e,c-(t-p)):e}(t))}function w(t){return h=void 0,m&&s?v(t):(s=l=void 0,f)}function D(){var t=o(),e=b(t);if(s=arguments,l=this,d=t,e){if(void 0===h)return x(d);if(y)return clearTimeout(h),h=setTimeout(M,n),v(d)}return void 0===h&&(h=setTimeout(M,n)),f}return n=i(n)||0,r(e)&&(g=!!e.leading,c=(y="maxWait"in e)?a(i(e.maxWait)||0,n):c,m="trailing"in e?!!e.trailing:m),D.cancel=function(){void 0!==h&&clearTimeout(h),p=0,s=d=l=h=void 0},D.flush=function(){return void 0===h?f:w(o())},D}},1893:function(t,n,e){var r=e(6317),o=e(788),i=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&&i(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 p=f[h],g=t[p];(void 0===g||o(g,u[p])&&!s.call(t,p))&&(t[p]=c[p])}return t}));t.exports=l},9324:function(t,n,e){var r=e(7451),o=e(6317),i=e(5812),a=o((function(t,n,e){return r(t,i(n)||0,e)}));t.exports=a},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):[]}},3105:function(t,n,e){var r=e(2446),o=e(674);t.exports=function(t,n){return t&&r(t,o(n))}},9201:function(t,n,e){var r=e(4432);t.exports=function(t,n,e){var o=null==t?void 0:r(t,n);return void 0===o?e:o}},9056:function(t,n,e){var r=e(8347),o=e(5659),i=Object.prototype.hasOwnProperty,a=o((function(t,n,e){i.call(t,e)?t[e].push(n):r(t,e,[n])}));t.exports=a},5066:function(t,n,e){var r=e(6776),o=e(3096);t.exports=function(t,n){return null!=t&&o(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),o=e(8454);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4295:function(t,n,e){var r=e(7537),o=e(9110),i=e(2348),a=i&&i.isDate,u=a?o(a):r;t.exports=u},4155:function(t,n,e){var r=e(7190),o=e(9667),i=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)||i(t)))return!t.length;var n=o(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),o=e(7709);t.exports=function(t){if(!o(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),o=e(9817),i=e(3474),a=Function.prototype,u=Object.prototype,s=a.toString,l=u.hasOwnProperty,c=s.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var n=o(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),o=e(9110),i=e(2348),a=i&&i.isRegExp,u=a?o(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 o(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,o=n?n.apply(this,r):r[0],i=e.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return e.cache=i.set(o,a)||i,a};return e.cache=new(o.Cache||r),e}o.Cache=r,t.exports=o},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),o=e(6051),i=e(4912);t.exports=function(t,n){return i(t,o(r(n)))}},4143:function(t,n,e){var r=e(8245),o=e(163);t.exports=function(t,n,e,i){return null==t?[]:(o(n)||(n=null==n?[]:[n]),o(e=i?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:function(t,n,e){var r=e(5436),o=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=o},4912:function(t,n,e){var r=e(8644),o=e(3472),i=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=o(n),i(t,e,(function(t,e){return n(t,e[0])}))}},8532:function(t,n,e){var r=e(1600),o=e(3301),i=e(726),a=e(3110);t.exports=function(t){return i(t)?r(a(t)):o(t)}},2829:function(t,n,e){var r=e(7556);t.exports=function(t){return t&&t.length?r(t):[]}},8163:function(t,n,e){var r=e(5034),o=e(7709);t.exports=function(t,n,e){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(e)&&(i="leading"in e?!!e.leading:i,a="trailing"in e?!!e.trailing:a),r(t,n,{leading:i,maxWait:n,trailing:a})}},5812:function(t,n,e){var r=e(1367),o=e(7709),i=e(1995),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=o(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=u.test(t);return e||s.test(t)?l(t.slice(2),e?2:8):a.test(t)?NaN:+t}},4542:function(t,n,e){var r=e(5976)(e(7747));t.exports=r},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):[]}},8961:function(t,n,e){var r=e(3472),o=e(946);t.exports=function(t,n){return t&&t.length?o(t,r(n,2)):[]}},660:function(t,n,e){var r=e(7010),o=0;t.exports=function(t){var n=++o;return r(t)+n}},7491:function(t){var n="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(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(!i(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(!i(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(o&&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)&&!i(t[l[s]],a[l[s]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return i(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 o=e[t];if(void 0!==o)return o.exports;var i=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.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 o={};return function(){"use strict";r.r(o),r.d(o,{createContainer:function(){return Ws},makeCreateContainerFunction:function(){return Us}});var t={};r.r(t),r.d(t,{scaleBand:function(){return st},scaleDiverging:function(){return hi},scaleDivergingLog:function(){return di},scaleDivergingPow:function(){return gi},scaleDivergingSqrt:function(){return yi},scaleDivergingSymlog:function(){return pi},scaleIdentity:function(){return Gn},scaleImplicit:function(){return at},scaleLinear:function(){return Yn},scaleLog:function(){return re},scaleOrdinal:function(){return ut},scalePoint:function(){return ct},scalePow:function(){return he},scaleQuantile:function(){return ke},scaleQuantize:function(){return Ae},scaleRadial:function(){return ye},scaleSequential:function(){return oi},scaleSequentialLog:function(){return ii},scaleSequentialPow:function(){return ui},scaleSequentialQuantile:function(){return li},scaleSequentialSqrt:function(){return si},scaleSequentialSymlog:function(){return ai},scaleSqrt:function(){return de},scaleSymlog:function(){return ue},scaleThreshold:function(){return Se},scaleTime:function(){return ti},scaleUtc:function(){return ni},tickFormat:function(){return qn}});var n=r(4542),e=r.n(n),i=r(4155),a=r.n(i),u=r(9056),s=r.n(u),l=r(3105),c=r.n(l),f=r(1893),h=r.n(f),d=r(9787),p=r.n(d),g=r(9324),y=r.n(g),m=r(8163),v=r.n(m);function x(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function b(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 o=t.concat(e);return x(o)?new Date(Math.max(...o)):Math.max(...o)}function M(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 o=t.concat(e);return x(o)?new Date(Math.min(...o)):Math.min(...o)}function w(t,n,e){const{a:r,d:o,e:i,f:a}=n;return"y"===e?o*t+a:r*t+i}function D(t){return!(!t||void 0===t.identifier)}function k(t){if(D(t.nativeEvent))return;const n=t=>"svg"===t.nodeName?t:t.parentNode?n(t.parentNode):t;return n(t.target)}function A(t,n){if(D(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||k(e));return{x:w(e.clientX,r,"x"),y:w(e.clientY,r,"y")}}function S(t,n){const{horizontal:e}=t,r=t.scale,o=n||{x:r.x.domain(),y:r.y.domain()};return{x:e?[r.y(o.y[0]),r.y(o.y[1])]:[r.x(o.x[0]),r.x(o.x[1])],y:e?[r.x(o.x[0]),r.x(o.x[1])]:[r.y(o.y[0]),r.y(o.y[1])]}}function C(t,n,e,r){const{polar:o,horizontal:i}=t;if(!o)return{x:i?n.x.invert(r):n.x.invert(e),y:i?n.y.invert(e):n.y.invert(r)};const a=t.origin||{x:0,y:0},u=e-a.x,s=r-a.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-s/u,2))),c=(-Math.atan2(s,u)+2*Math.PI)%(2*Math.PI);return{x:n.x.invert(c),y:n.y.invert(l)}}function O(t){const{x1:n,x2:e,y1:r,y2:o,scale:i}=t,a=C(t,i,n,r),u=C(t,i,e,o),s=(t,n)=>[M([t,n]),b([t,n])];return{x:s(a.x,u.x),y:s(a.y,u.y)}}r(8961);var E=r(9602),j=r.n(E),_=(r(1616),r(8999),r(8254)),T=r.n(_),$=r(4143),F=r.n($),N=r(8532),P=r.n(N),z=r(3849),L=r.n(z),B=r(9082),U=r.n(B);function W(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 H(t){const n=t=>void 0!==t,{_x:e,_x1:r,_x0:o,_voronoiX:i,_y:a,_y1:u,_y0:s,_voronoiY:l}=t,c=n(r)?r:e,f=n(u)?u:a,d={x:n(i)?i:c,x0:n(o)?o:e,y:n(l)?l:f,y0:n(s)?s:a};return h()({},d,t)}function I(t,n){const{scale:e,polar:r,horizontal:o}=t,i=H(n),a=t.origin||{x:0,y:0},u=o?e.y(i.y):e.x(i.x),s=o?e.y(i.y0):e.x(i.x0),l=o?e.x(i.x):e.y(i.y),c=o?e.x(i.x0):e.y(i.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 R(t,n){void 0===n&&(n="padding");const e=t[n],r="number"==typeof e?e:0,o="object"==typeof e?e:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function q(t,n){return Z(t)?t(n):t}function V(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>Z(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=q(t[r],n),e)),{}):t}function Y(t){return"number"==typeof t?t*(Math.PI/180):t}function G(t){const{left:n,right:e,top:r,bottom:o}=R(t),{width:i,height:a}=t;return Math.min(i-n-e,a-r-o)/2}function X(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,n){return"x"===n?[Y(t.startAngle||0),Y(t.endAngle||360)]:[t.innerRadius||0,G(t)]}(t,n):function(t,n){const e="x"!==n,r=R(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)}function Z(t){return"function"==typeof t}function K(t){return Z(t)?t:null==t?t=>t:P()(t)}function Q(t,n){if(t)return Object.keys(t).reduce(((e,r)=>(e[r]=n(t[r]),e)),{})}function J(t,n,e,r,o){void 0===e&&(e={}),void 0===r&&(r=[]),void 0===o&&(o=(t,n)=>t.concat(n));const i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(t,u,s)=>t.reduce(((t,r,l)=>{let c=t;const f=r.type&&r.type.role,h=r.props.name||`${f}-${u[l]}`;if(r.props&&r.props.children){const t=Object.assign({},r.props,U()(e,i)),n=r.type&&"stack"===r.type.role&&Z(r.type.getChildren)?r.type.getChildren(t):p().Children.toArray(r.props.children).map((n=>{const e=Object.assign({},n.props,U()(t,i));return p().cloneElement(n,e)})),u=n.map(((t,n)=>`${h}-${n}`)),s=a(n,u,r);c=o(c,s)}else{const t=n(r,h,s);t&&(c=o(c,t))}return c}),r),u=t.filter(d.isValidElement),s=u.map(((t,n)=>n));return a(u,s)}function tt(t,n,e){t=+t,n=+n,e=(o=arguments.length)<2?(n=t,t=0,1):o<3?1:+e;for(var r=-1,o=0|Math.max(0,Math.ceil((n-t)/e)),i=new Array(o);++r<o;)i[r]=t+r*e;return i}function nt(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function et(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 rt extends Map{constructor(t,n=it){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(ot(this,t))}has(t){return super.has(ot(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 ot({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function it(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const at=Symbol("implicit");function ut(){var t=new rt,n=[],e=[],r=at;function o(o){let i=t.get(o);if(void 0===i){if(r!==at)return r;t.set(o,i=n.push(o)-1)}return e[i%e.length]}return o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new rt;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return o},o.range=function(t){return arguments.length?(e=Array.from(t),o):e.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return ut(n,e).unknown(r)},nt.apply(o,arguments),o}function st(){var t,n,e=ut().unknown(void 0),r=e.domain,o=e.range,i=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var e=r().length,f=a<i,h=f?a:i,d=f?i: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 p=tt(e).map((function(n){return h+t*n}));return o(f?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),f()):r()},e.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},e.rangeRound=function(t){return[i,a]=t,i=+i,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 st(r(),[i,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},nt.apply(f(),arguments)}function lt(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return lt(n())},t}function ct(){return lt(st.apply(null,arguments).paddingInner(1))}var ft=Math.sqrt(50),ht=Math.sqrt(10),dt=Math.sqrt(2);function pt(t,n,e){var r,o,i,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(o=t,t=n,n=o),0===(a=gt(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,i=new Array(o=r-e+1);++u<o;)i[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,i=new Array(o=r-e+1);++u<o;)i[u]=(e+u)/a}return r&&i.reverse(),i}function gt(t,n,e){var r=(n-t)/Math.max(0,e),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=ft?10:i>=ht?5:i>=dt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=ft?10:i>=ht?5:i>=dt?2:1)}function yt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=ft?o*=10:i>=ht?o*=5:i>=dt&&(o*=2),n<t?-o:o}function mt(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function vt(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function xt(t){let n,e,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<0?o=n+1:i=n}while(o<i)}return o}return 2!==t.length?(n=mt,e=(n,e)=>mt(t(n),e),r=(n,e)=>t(n)-e):(n=t===mt||t===vt?t:bt,e=t,r=t),{left:o,center:function(t,n,e=0,i=t.length){const a=o(t,n,e,i-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<=0?o=n+1:i=n}while(o<i)}return o}}}function bt(){return 0}function Mt(t){return null===t?NaN:+t}const wt=xt(mt),Dt=wt.right;wt.left,xt(Mt).center;var kt=Dt;function At(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function St(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Ct(){}var Ot=.7,Et=1/Ot,jt="\\s*([+-]?\\d+)\\s*",_t="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$t=/^#([0-9a-f]{3,8})$/,Ft=new RegExp(`^rgb\\(${jt},${jt},${jt}\\)$`),Nt=new RegExp(`^rgb\\(${Tt},${Tt},${Tt}\\)$`),Pt=new RegExp(`^rgba\\(${jt},${jt},${jt},${_t}\\)$`),zt=new RegExp(`^rgba\\(${Tt},${Tt},${Tt},${_t}\\)$`),Lt=new RegExp(`^hsl\\(${_t},${Tt},${Tt}\\)$`),Bt=new RegExp(`^hsla\\(${_t},${Tt},${Tt},${_t}\\)$`),Ut={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 Wt(){return this.rgb().formatHex()}function Ht(){return this.rgb().formatRgb()}function It(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=$t.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Rt(n):3===e?new Gt(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?qt(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?qt(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=Ft.exec(t))?new Gt(n[1],n[2],n[3],1):(n=Nt.exec(t))?new Gt(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Pt.exec(t))?qt(n[1],n[2],n[3],n[4]):(n=zt.exec(t))?qt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Lt.exec(t))?tn(n[1],n[2]/100,n[3]/100,1):(n=Bt.exec(t))?tn(n[1],n[2]/100,n[3]/100,n[4]):Ut.hasOwnProperty(t)?Rt(Ut[t]):"transparent"===t?new Gt(NaN,NaN,NaN,0):null}function Rt(t){return new Gt(t>>16&255,t>>8&255,255&t,1)}function qt(t,n,e,r){return r<=0&&(t=n=e=NaN),new Gt(t,n,e,r)}function Vt(t){return t instanceof Ct||(t=It(t)),t?new Gt((t=t.rgb()).r,t.g,t.b,t.opacity):new Gt}function Yt(t,n,e,r){return 1===arguments.length?Vt(t):new Gt(t,n,e,null==r?1:r)}function Gt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Xt(){return`#${Jt(this.r)}${Jt(this.g)}${Jt(this.b)}`}function Zt(){const t=Kt(this.opacity);return`${1===t?"rgb(":"rgba("}${Qt(this.r)}, ${Qt(this.g)}, ${Qt(this.b)}${1===t?")":`, ${t})`}`}function Kt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Jt(t){return((t=Qt(t))<16?"0":"")+t.toString(16)}function tn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new en(t,n,e,r)}function nn(t){if(t instanceof en)return new en(t.h,t.s,t.l,t.opacity);if(t instanceof Ct||(t=It(t)),!t)return new en;if(t instanceof en)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,o=Math.min(n,e,r),i=Math.max(n,e,r),a=NaN,u=i-o,s=(i+o)/2;return u?(a=n===i?(e-r)/u+6*(e<r):e===i?(r-n)/u+2:(n-e)/u+4,u/=s<.5?i+o:2-i-o,a*=60):u=s>0&&s<1?0:a,new en(a,u,s,t.opacity)}function en(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function rn(t){return(t=(t||0)%360)<0?t+360:t}function on(t){return Math.max(0,Math.min(1,t||0))}function an(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 un(t,n,e,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*n+(4-6*i+3*a)*e+(1+3*t+3*i-3*a)*r+a*o)/6}At(Ct,It,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Wt,formatHex:Wt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nn(this).formatHsl()},formatRgb:Ht,toString:Ht}),At(Gt,Yt,St(Ct,{brighter(t){return t=null==t?Et:Math.pow(Et,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ot:Math.pow(Ot,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Gt(Qt(this.r),Qt(this.g),Qt(this.b),Kt(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:Xt,formatHex:Xt,formatHex8:function(){return`#${Jt(this.r)}${Jt(this.g)}${Jt(this.b)}${Jt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zt,toString:Zt})),At(en,(function(t,n,e,r){return 1===arguments.length?nn(t):new en(t,n,e,null==r?1:r)}),St(Ct,{brighter(t){return t=null==t?Et:Math.pow(Et,t),new en(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ot:Math.pow(Ot,t),new en(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,o=2*e-r;return new Gt(an(t>=240?t-240:t+120,o,r),an(t,o,r),an(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new en(rn(this.h),on(this.s),on(this.l),Kt(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=Kt(this.opacity);return`${1===t?"hsl(":"hsla("}${rn(this.h)}, ${100*on(this.s)}%, ${100*on(this.l)}%${1===t?")":`, ${t})`}`}}));var sn=t=>()=>t;function ln(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):sn(isNaN(t)?n:t)}var cn=function t(n){var e=function(t){return 1==(t=+t)?ln: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):sn(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=Yt(t)).r,(n=Yt(n)).r),o=e(t.g,n.g),i=e(t.b,n.b),a=ln(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=o(n),t.b=i(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function fn(t){return function(n){var e,r,o=n.length,i=new Array(o),a=new Array(o),u=new Array(o);for(e=0;e<o;++e)r=Yt(n[e]),i[e]=r.r||0,a[e]=r.g||0,u[e]=r.b||0;return i=t(i),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=u(t),r+""}}}function hn(t,n){var e,r=n?n.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(e=0;e<o;++e)i[e]=bn(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<o;++e)a[e]=i[e](t);return a}}function dn(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function pn(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function gn(t,n){var e,r={},o={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=bn(t[e],n[e]):o[e]=n[e];return function(t){for(e in r)o[e]=r[e](t);return o}}fn((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),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<n-1?t[r+2]:2*i-o;return un((e-r/n)*n,a,o,i,u)}})),fn((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),o=t[(r+n-1)%n],i=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return un((e-r/n)*n,o,i,a,u)}}));var yn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mn=new RegExp(yn.source,"g");function vn(t,n){var e,r,o,i=yn.lastIndex=mn.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=yn.exec(t))&&(r=mn.exec(n));)(o=r.index)>i&&(o=n.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:pn(e,r)})),i=mn.lastIndex;return i<n.length&&(o=n.slice(i),u[a]?u[a]+=o:u[++a]=o),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 xn(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,o=n.slice();return function(i){for(e=0;e<r;++e)o[e]=t[e]*(1-i)+n[e]*i;return o}}function bn(t,n){var e,r,o=typeof n;return null==n||"boolean"===o?sn(n):("number"===o?pn:"string"===o?(e=It(n))?(n=e,cn):vn:n instanceof It?cn:n instanceof Date?dn:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?hn:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?gn:pn:xn))(t,n)}function Mn(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function wn(t){return+t}var Dn=[0,1];function kn(t){return t}function An(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function Sn(t,n,e){var r=t[0],o=t[1],i=n[0],a=n[1];return o<r?(r=An(o,r),i=e(a,i)):(r=An(r,o),i=e(i,a)),function(t){return i(r(t))}}function Cn(t,n,e){var r=Math.min(t.length,n.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)o[a]=An(t[a],t[a+1]),i[a]=e(n[a],n[a+1]);return function(n){var e=kt(t,n,1,r)-1;return i[e](o[e](n))}}function On(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function En(){var t,n,e,r,o,i,a=Dn,u=Dn,s=bn,l=kn;function c(){var t,n,e,s=Math.min(a.length,u.length);return l!==kn&&(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?Cn:Sn,o=i=null,f}function f(n){return null==n||isNaN(n=+n)?e:(o||(o=r(a.map(t),u,s)))(t(l(n)))}return f.invert=function(e){return l(n((i||(i=r(u,a.map(t),pn)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,wn),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=Mn,c()},f.clamp=function(t){return arguments.length?(l=!!t||kn,c()):l!==kn},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 jn(){return En()(kn,kn)}var _n,Tn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $n(t){if(!(n=Tn.exec(t)))throw new Error("invalid format: "+t);var n;return new Fn({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 Fn(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 Nn(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 Pn(t){return(t=Nn(Math.abs(t)))?t[1]:NaN}function zn(t,n){var e=Nn(t,n);if(!e)return t+"";var r=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}$n.prototype=Fn.prototype,Fn.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 Ln={"%":(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)=>zn(100*t,n),r:zn,s:function(t,n){var e=Nn(t,n);if(!e)return t+"";var r=e[0],o=e[1],i=o-(_n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Nn(t,Math.max(0,n+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Bn(t){return t}var Un,Wn,Hn,In=Array.prototype.map,Rn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qn(t,n,e,r){var o,i=yt(t,n,e);switch((r=$n(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(o=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Pn(n)/3)))-Pn(Math.abs(t)))}(i,a))||(r.precision=o),Hn(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Pn(n)-Pn(t))+1}(i,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-Pn(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return Wn(r)}function Vn(t){var n=t.domain;return t.ticks=function(t){var e=n();return pt(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return qn(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,o,i=n(),a=0,u=i.length-1,s=i[a],l=i[u],c=10;for(l<s&&(o=s,s=l,l=o,o=a,a=u,u=o);c-- >0;){if((o=gt(s,l,e))===r)return i[a]=s,i[u]=l,n(i);if(o>0)s=Math.floor(s/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,l=Math.floor(l*o)/o}r=o}return t},t}function Yn(){var t=jn();return t.copy=function(){return On(t,Yn())},nt.apply(t,arguments),Vn(t)}function Gn(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,wn),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return Gn(t).unknown(n)},t=arguments.length?Array.from(t,wn):[0,1],Vn(e)}function Xn(t,n){var e,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(e=r,r=o,o=e,e=i,i=a,a=e),t[r]=n.floor(i),t[o]=n.ceil(a),t}function Zn(t){return Math.log(t)}function Kn(t){return Math.exp(t)}function Qn(t){return-Math.log(-t)}function Jn(t){return-Math.exp(-t)}function te(t){return isFinite(t)?+("1e"+t):t<0?0:t}function ne(t){return(n,e)=>-t(-n,e)}function ee(t){const n=t(Zn,Kn),e=n.domain;let r,o,i=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)}(i),o=function(t){return 10===t?te:t===Math.E?Math.exp:n=>Math.pow(t,n)}(i),e()[0]<0?(r=ne(r),o=ne(o),t(Qn,Jn)):t(Zn,Kn),n}return n.base=function(t){return arguments.length?(i=+t,a()):i},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 p=[];if(!(i%1)&&h-f<d){if(f=Math.floor(f),h=Math.ceil(h),a>0){for(;f<=h;++f)for(l=1;l<i;++l)if(c=f<0?l/o(-f):l*o(f),!(c<a)){if(c>u)break;p.push(c)}}else for(;f<=h;++f)for(l=i-1;l>=1;--l)if(c=f>0?l/o(-f):l*o(f),!(c<a)){if(c>u)break;p.push(c)}2*p.length<d&&(p=pt(a,u,d))}else p=pt(f,h,Math.min(h-f,d)).map(o);return s?p.reverse():p},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===i?"s":","),"function"!=typeof e&&(i%1||null!=(e=$n(e)).precision||(e.trim=!0),e=Wn(e)),t===1/0)return e;const a=Math.max(1,i*t/n.ticks().length);return t=>{let n=t/o(Math.round(r(t)));return n*i<i-.5&&(n*=i),n<=a?e(t):""}},n.nice=()=>e(Xn(e(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),n}function re(){const t=ee(En()).domain([1,10]);return t.copy=()=>On(t,re()).base(t.base()),nt.apply(t,arguments),t}function oe(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function ie(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function ae(t){var n=1,e=t(oe(n),ie(n));return e.constant=function(e){return arguments.length?t(oe(n=+e),ie(n)):n},Vn(e)}function ue(){var t=ae(En());return t.copy=function(){return On(t,ue()).constant(t.constant())},nt.apply(t,arguments)}function se(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function le(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ce(t){return t<0?-t*t:t*t}function fe(t){var n=t(kn,kn),e=1;function r(){return 1===e?t(kn,kn):.5===e?t(le,ce):t(se(e),se(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},Vn(n)}function he(){var t=fe(En());return t.copy=function(){return On(t,he()).exponent(t.exponent())},nt.apply(t,arguments),t}function de(){return he.apply(null,arguments).exponent(.5)}function pe(t){return Math.sign(t)*t*t}function ge(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function ye(){var t,n=jn(),e=[0,1],r=!1;function o(e){var o=ge(n(e));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return n.invert(pe(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((e=Array.from(t,wn)).map(pe)),o):e.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(r=!!t,o):r},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return ye(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},nt.apply(o,arguments),Vn(o)}function me(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 o of t)null!=(o=n(o,++r,t))&&(e<o||void 0===e&&o>=o)&&(e=o)}return e}function ve(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 o of t)null!=(o=n(o,++r,t))&&(e>o||void 0===e&&o>=o)&&(e=o)}return e}function xe(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function be(t,n,e=0,r=t.length-1,o){for(o=void 0===o?xe:function(t=mt){if(t===mt)return xe;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))}}(o);r>e;){if(r-e>600){const i=r-e+1,a=n-e+1,u=Math.log(i),s=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*s*(i-s)/i)*(a-i/2<0?-1:1);be(t,n,Math.max(e,Math.floor(n-a*s/i+l)),Math.min(r,Math.floor(n+(i-a)*s/i+l)),o)}const i=t[n];let a=e,u=r;for(Me(t,e,n),o(t[r],i)>0&&Me(t,e,r);a<u;){for(Me(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[e],i)?Me(t,e,u):(++u,Me(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function Me(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function we(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 ve(t);if(n>=1)return me(t);var r,o=(r-1)*n,i=Math.floor(o),a=me(be(t,i).subarray(0,i+1));return a+(ve(t.subarray(i+1))-a)*(o-i)}}function De(t,n,e=Mt){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,o=(r-1)*n,i=Math.floor(o),a=+e(t[i],i,t);return a+(+e(t[i+1],i+1,t)-a)*(o-i)}}function ke(){var t,n=[],e=[],r=[];function o(){var t=0,o=Math.max(1,e.length);for(r=new Array(o-1);++t<o;)r[t-1]=De(n,t/o);return i}function i(n){return null==n||isNaN(n=+n)?t:e[kt(r,n)]}return i.invertExtent=function(t){var o=e.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:n[0],o<r.length?r[o]:n[n.length-1]]},i.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(mt),o()},i.range=function(t){return arguments.length?(e=Array.from(t),o()):e.slice()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return ke().domain(n).range(e).unknown(t)},nt.apply(i,arguments)}function Ae(){var t,n=0,e=1,r=1,o=[.5],i=[0,1];function a(n){return null!=n&&n<=n?i[kt(o,n,0,r)]:t}function u(){var t=-1;for(o=new Array(r);++t<r;)o[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=(i=Array.from(t)).length-1,u()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[n,o[0]]:a>=r?[o[r-1],e]:[o[a-1],o[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Ae().domain([n,e]).range(i).unknown(t)},nt.apply(Vn(a),arguments)}function Se(){var t,n=[.5],e=[0,1],r=1;function o(o){return null!=o&&o<=o?e[kt(n,o,0,r)]:t}return o.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),o):n.slice()},o.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),o):e.slice()},o.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return Se().domain(n).range(e).unknown(t)},nt.apply(o,arguments)}Un=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Bn:(n=In.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,u=n[0],s=0;o>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),i.push(t.substring(o-=u,o+u)),!((s+=u+1)>r));)u=n[a=(a+1)%n.length];return i.reverse().join(e)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Bn:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(In.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=$n(t)).fill,e=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,m=t.trim,v=t.type;"n"===v?(g=!0,v="g"):Ln[v]||(void 0===y&&(y=12),m=!0,v="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var x="$"===h?o:"#"===h&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",b="$"===h?i:/[%p]/.test(v)?s:"",M=Ln[v],w=/[defgprs%]/.test(v);function D(t){var o,i,s,h=x,D=b;if("c"===v)D=M(t)+D,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:M(Math.abs(t),y),m&&(t=function(t){t:for(var n,e=t.length,r=1,o=-1;r<e;++r)switch(t[r]){case".":o=n=r;break;case"0":0===o&&(o=r),n=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t}(t)),k&&0==+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:l:"-"===f||"("===f?"":f)+h,D=("s"===v?Rn[8+_n/3]:"")+D+(k&&"("===f?")":""),w)for(o=-1,i=t.length;++o<i;)if(48>(s=t.charCodeAt(o))||s>57){D=(46===s?a+t.slice(o+1):t.slice(o))+D,t=t.slice(0,o);break}}g&&!d&&(t=r(t,1/0));var A=h.length+t.length+D.length,S=A<p?new Array(p-A+1).join(n):"";switch(g&&d&&(t=r(S+t,S.length?p-D.length:1/0),S=""),e){case"<":t=h+t+D+S;break;case"=":t=h+S+t+D;break;case"^":t=S.slice(0,A=S.length>>1)+h+t+D+S.slice(A);break;default:t=S+h+t+D}return u(t)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),D.toString=function(){return t+""},D}return{format:f,formatPrefix:function(t,n){var e=f(((t=$n(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Pn(n)/3))),o=Math.pow(10,-r),i=Rn[8+r/3];return function(t){return e(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),Wn=Un.format,Hn=Un.formatPrefix;const Ce=1e3,Oe=6e4,Ee=36e5,je=864e5,_e=6048e5,Te=31536e6;var $e=new Date,Fe=new Date;function Ne(t,n,e,r){function o(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return o.floor=function(n){return t(n=new Date(+n)),n},o.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},o.round=function(t){var n=o(t),e=o.ceil(t);return t-n<e-t?n:e},o.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},o.range=function(e,r,i){var a,u=[];if(e=o.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return u;do{u.push(a=new Date(+e)),n(e,i),t(e)}while(a<e&&e<r);return u},o.filter=function(e){return Ne((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&&(o.count=function(n,r){return $e.setTime(+n),Fe.setTime(+r),t($e),t(Fe),Math.floor(e($e,Fe))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(n){return r(n)%t==0}:function(n){return o.count(0,n)%t==0}):o:null}),o}var Pe=Ne((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Pe.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ne((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Pe:null};var ze=Pe,Le=(Pe.range,Ne((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Ce)}),(function(t,n){return(n-t)/Ce}),(function(t){return t.getUTCSeconds()}))),Be=Le,Ue=(Le.range,Ne((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ce)}),(function(t,n){t.setTime(+t+n*Oe)}),(function(t,n){return(n-t)/Oe}),(function(t){return t.getMinutes()}))),We=Ue,He=(Ue.range,Ne((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ce-t.getMinutes()*Oe)}),(function(t,n){t.setTime(+t+n*Ee)}),(function(t,n){return(n-t)/Ee}),(function(t){return t.getHours()}))),Ie=He,Re=(He.range,Ne((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Oe)/je),(t=>t.getDate()-1))),qe=Re;function Ve(t){return Ne((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())*Oe)/_e}))}Re.range;var Ye=Ve(0),Ge=Ve(1),Xe=Ve(2),Ze=Ve(3),Ke=Ve(4),Qe=Ve(5),Je=Ve(6),tr=(Ye.range,Ge.range,Xe.range,Ze.range,Ke.range,Qe.range,Je.range,Ne((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()}))),nr=tr,er=(tr.range,Ne((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()})));er.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ne((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 rr=er,or=(er.range,Ne((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Oe)}),(function(t,n){return(n-t)/Oe}),(function(t){return t.getUTCMinutes()}))),ir=or,ar=(or.range,Ne((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Ee)}),(function(t,n){return(n-t)/Ee}),(function(t){return t.getUTCHours()}))),ur=ar,sr=(ar.range,Ne((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/je}),(function(t){return t.getUTCDate()-1}))),lr=sr;function cr(t){return Ne((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)/_e}))}sr.range;var fr=cr(0),hr=cr(1),dr=cr(2),pr=cr(3),gr=cr(4),yr=cr(5),mr=cr(6),vr=(fr.range,hr.range,dr.range,pr.range,gr.range,yr.range,mr.range,Ne((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()}))),xr=vr,br=(vr.range,Ne((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()})));br.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ne((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 Mr=br;function wr(t,n,e,r,o,i){const a=[[Be,1,Ce],[Be,5,5e3],[Be,15,15e3],[Be,30,3e4],[i,1,Oe],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Ee],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,je],[r,2,1728e5],[e,1,_e],[n,1,2592e6],[n,3,7776e6],[t,1,Te]];function u(n,e,r){const o=Math.abs(e-n)/r,i=xt((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(yt(n/Te,e/Te,r));if(0===i)return ze.every(Math.max(yt(n,e,r),1));const[u,s]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(s)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const o=e&&"function"==typeof e.range?e:u(t,n,e),i=o?o.range(t,+n+1):[];return r?i.reverse():i},u]}br.range;const[Dr,kr]=wr(Mr,xr,fr,lr,ur,ir),[Ar,Sr]=wr(rr,nr,Ye,qe,Ie,We);function Cr(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 Or(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 Er(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var jr,_r,Tr,$r={"-":"",_:" ",0:"0"},Fr=/^\s*\d+/,Nr=/^%/,Pr=/[\\^$*+?|[\]().{}]/g;function zr(t,n,e){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<e?new Array(e-i+1).join(n)+o:o)}function Lr(t){return t.replace(Pr,"\\$&")}function Br(t){return new RegExp("^(?:"+t.map(Lr).join("|")+")","i")}function Ur(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function Wr(t,n,e){var r=Fr.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Hr(t,n,e){var r=Fr.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Ir(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Rr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function qr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Vr(t,n,e){var r=Fr.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Yr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Gr(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 Xr(t,n,e){var r=Fr.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Zr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Kr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Qr(t,n,e){var r=Fr.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Jr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function to(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function no(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function eo(t,n,e){var r=Fr.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ro(t,n,e){var r=Fr.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function oo(t,n,e){var r=Nr.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function io(t,n,e){var r=Fr.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function ao(t,n,e){var r=Fr.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function uo(t,n){return zr(t.getDate(),n,2)}function so(t,n){return zr(t.getHours(),n,2)}function lo(t,n){return zr(t.getHours()%12||12,n,2)}function co(t,n){return zr(1+qe.count(rr(t),t),n,3)}function fo(t,n){return zr(t.getMilliseconds(),n,3)}function ho(t,n){return fo(t,n)+"000"}function po(t,n){return zr(t.getMonth()+1,n,2)}function go(t,n){return zr(t.getMinutes(),n,2)}function yo(t,n){return zr(t.getSeconds(),n,2)}function mo(t){var n=t.getDay();return 0===n?7:n}function vo(t,n){return zr(Ye.count(rr(t)-1,t),n,2)}function xo(t){var n=t.getDay();return n>=4||0===n?Ke(t):Ke.ceil(t)}function bo(t,n){return t=xo(t),zr(Ke.count(rr(t),t)+(4===rr(t).getDay()),n,2)}function Mo(t){return t.getDay()}function wo(t,n){return zr(Ge.count(rr(t)-1,t),n,2)}function Do(t,n){return zr(t.getFullYear()%100,n,2)}function ko(t,n){return zr((t=xo(t)).getFullYear()%100,n,2)}function Ao(t,n){return zr(t.getFullYear()%1e4,n,4)}function So(t,n){var e=t.getDay();return zr((t=e>=4||0===e?Ke(t):Ke.ceil(t)).getFullYear()%1e4,n,4)}function Co(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+zr(n/60|0,"0",2)+zr(n%60,"0",2)}function Oo(t,n){return zr(t.getUTCDate(),n,2)}function Eo(t,n){return zr(t.getUTCHours(),n,2)}function jo(t,n){return zr(t.getUTCHours()%12||12,n,2)}function _o(t,n){return zr(1+lr.count(Mr(t),t),n,3)}function To(t,n){return zr(t.getUTCMilliseconds(),n,3)}function $o(t,n){return To(t,n)+"000"}function Fo(t,n){return zr(t.getUTCMonth()+1,n,2)}function No(t,n){return zr(t.getUTCMinutes(),n,2)}function Po(t,n){return zr(t.getUTCSeconds(),n,2)}function zo(t){var n=t.getUTCDay();return 0===n?7:n}function Lo(t,n){return zr(fr.count(Mr(t)-1,t),n,2)}function Bo(t){var n=t.getUTCDay();return n>=4||0===n?gr(t):gr.ceil(t)}function Uo(t,n){return t=Bo(t),zr(gr.count(Mr(t),t)+(4===Mr(t).getUTCDay()),n,2)}function Wo(t){return t.getUTCDay()}function Ho(t,n){return zr(hr.count(Mr(t)-1,t),n,2)}function Io(t,n){return zr(t.getUTCFullYear()%100,n,2)}function Ro(t,n){return zr((t=Bo(t)).getUTCFullYear()%100,n,2)}function qo(t,n){return zr(t.getUTCFullYear()%1e4,n,4)}function Vo(t,n){var e=t.getUTCDay();return zr((t=e>=4||0===e?gr(t):gr.ceil(t)).getUTCFullYear()%1e4,n,4)}function Yo(){return"+0000"}function Go(){return"%"}function Xo(t){return+t}function Zo(t){return Math.floor(+t/1e3)}function Ko(t){return new Date(t)}function Qo(t){return t instanceof Date?+t:+new Date(+t)}function Jo(t,n,e,r,o,i,a,u,s,l){var c=jn(),f=c.invert,h=c.domain,d=l(".%L"),p=l(":%S"),g=l("%I:%M"),y=l("%I %p"),m=l("%a %d"),v=l("%b %d"),x=l("%B"),b=l("%Y");function M(t){return(s(t)<t?d:u(t)<t?p:a(t)<t?g:i(t)<t?y:r(t)<t?o(t)<t?m:v:e(t)<t?x:b)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,Qo)):h().map(Ko)},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?M: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(Xn(e,t)):c},c.copy=function(){return On(c,Jo(t,n,e,r,o,i,a,u,s,l))},c}function ti(){return nt.apply(Jo(Ar,Sr,rr,nr,Ye,qe,Ie,We,Be,_r).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ni(){return nt.apply(Jo(Dr,kr,Mr,xr,fr,lr,ur,ir,Be,Tr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ei(){var t,n,e,r,o,i=0,a=1,u=kn,s=!1;function l(n){return null==n||isNaN(n=+n)?o: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(o){return arguments.length?([i,a]=o,t=r(i=+i),n=r(a=+a),e=t===n?0:1/(n-t),l):[i,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(bn),l.rangeRound=c(Mn),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return r=o,t=o(i),n=o(a),e=t===n?0:1/(n-t),l}}function ri(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function oi(){var t=Vn(ei()(kn));return t.copy=function(){return ri(t,oi())},et.apply(t,arguments)}function ii(){var t=ee(ei()).domain([1,10]);return t.copy=function(){return ri(t,ii()).base(t.base())},et.apply(t,arguments)}function ai(){var t=ae(ei());return t.copy=function(){return ri(t,ai()).constant(t.constant())},et.apply(t,arguments)}function ui(){var t=fe(ei());return t.copy=function(){return ri(t,ui()).exponent(t.exponent())},et.apply(t,arguments)}function si(){return ui.apply(null,arguments).exponent(.5)}function li(){var t=[],n=kn;function e(e){if(null!=e&&!isNaN(e=+e))return n((kt(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(mt),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)=>we(t,r/n)))},e.copy=function(){return li(n).domain(t)},et.apply(e,arguments)}function ci(t,n){void 0===n&&(n=t,t=bn);for(var e=0,r=n.length-1,o=n[0],i=new Array(r<0?0:r);e<r;)i[e]=t(o,o=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[n](t-n)}}function fi(){var t,n,e,r,o,i,a,u=0,s=.5,l=1,c=1,f=kn,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-n)*(c*t<c*n?r:o),f(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,o;return arguments.length?([e,r,o]=n,f=ci(t,[e,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,s,l]=a,t=i(u=+u),n=i(s=+s),e=i(l=+l),r=t===n?0:.5/(n-t),o=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=p(bn),d.rangeRound=p(Mn),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(u),n=a(s),e=a(l),r=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),c=n<t?-1:1,d}}function hi(){var t=Vn(fi()(kn));return t.copy=function(){return ri(t,hi())},et.apply(t,arguments)}function di(){var t=ee(fi()).domain([.1,1,10]);return t.copy=function(){return ri(t,di()).base(t.base())},et.apply(t,arguments)}function pi(){var t=ae(fi());return t.copy=function(){return ri(t,pi()).constant(t.constant())},et.apply(t,arguments)}function gi(){var t=fe(fi());return t.copy=function(){return ri(t,gi()).exponent(t.exponent())},et.apply(t,arguments)}function yi(){return gi.apply(null,arguments).exponent(.5)}jr=function(t){var n=t.dateTime,e=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,l=Br(o),c=Ur(o),f=Br(i),h=Ur(i),d=Br(a),p=Ur(a),g=Br(u),y=Ur(u),m=Br(s),v=Ur(s),x={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:uo,e:uo,f:ho,g:ko,G:So,H:so,I:lo,j:co,L:fo,m:po,M:go,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Xo,s:Zo,S:yo,u:mo,U:vo,V:bo,w:Mo,W:wo,x:null,X:null,y:Do,Y:Ao,Z:Co,"%":Go},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Oo,e:Oo,f:$o,g:Ro,G:Vo,H:Eo,I:jo,j:_o,L:To,m:Fo,M:No,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Xo,s:Zo,S:Po,u:zo,U:Lo,V:Uo,w:Wo,W:Ho,x:null,X:null,y:Io,Y:qo,Z:Yo,"%":Go},M={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=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=m.exec(n.slice(e));return r?(t.m=v.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return k(t,n,e,r)},d:Kr,e:Kr,f:ro,g:Yr,G:Vr,H:Jr,I:Jr,j:Qr,L:eo,m:Zr,M:to,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:Xr,Q:io,s:ao,S:no,u:Hr,U:Ir,V:Rr,w:Wr,W:qr,x:function(t,n,r){return k(t,e,n,r)},X:function(t,n,e){return k(t,r,n,e)},y:Yr,Y:Vr,Z:Gr,"%":oo};function w(t,n){return function(e){var r,o,i,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!=(o=$r[r=t.charAt(++u)])?r=t.charAt(++u):o="e"===r?" ":"0",(i=n[r])&&(r=i(e,o)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function D(t,n){return function(e){var r,o,i=Er(1900,void 0,1);if(k(i,t,e+="",0)!=e.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(n&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Or(Er(i.y,0,1))).getUTCDay(),r=o>4||0===o?hr.ceil(r):hr(r),r=lr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Cr(Er(i.y,0,1))).getDay(),r=o>4||0===o?Ge.ceil(r):Ge(r),r=qe.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Or(Er(i.y,0,1)).getUTCDay():Cr(Er(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Or(i)):Cr(i)}}function k(t,n,e,r){for(var o,i,a=0,u=n.length,s=e.length;a<u;){if(r>=s)return-1;if(37===(o=n.charCodeAt(a++))){if(o=n.charAt(a++),!(i=M[o in $r?n.charAt(a++):o])||(r=i(t,e,r))<0)return-1}else if(o!=e.charCodeAt(r++))return-1}return r}return x.x=w(e,x),x.X=w(r,x),x.c=w(n,x),b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),{format:function(t){var n=w(t+="",x);return n.toString=function(){return t},n},parse:function(t){var n=D(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=D(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"]}),_r=jr.format,jr.parse,Tr=jr.utcFormat,jr.utcParse;const mi=["linear","time","log","sqrt"];function vi(t){return"function"==typeof t?Z(t.copy)&&Z(t.domain)&&Z(t.range):"string"==typeof t&&mi.includes(t)}function xi(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function bi(t,n){if(!t.data)return"linear";const e=K(t[n]);return x(t.data.map((t=>{const r=L()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function Mi(n){if(vi(n)){const r=`scale${e=n,e&&e[0].toUpperCase()+e.slice(1)}`;return t[r]()}var e;return Yn()}function wi(t,n){return function(t,n){if(!xi(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=Di.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}(e)}(t,n)||bi(t,n)}const Di=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function ki(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function Ai(t,n){return ki(t)?t.reduce(((t,e,r)=>{let o=e;return n&&n[r]&&(o=Ai(e)),t[r]=o,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function Si(t){return ki(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?Ai(t,{errorX:!0,errorY:!0}):t;var n}function Ci(t){return ki(t)?t.size:t.length}function Oi(t,n){const e=(L()(t.domain)?t.domain[n]:t.domain)||function(t,n){const e=function(t,n){if(!xi(t,n))return;const e=t.scale[n]||t.scale;return vi(e)?Z(e)?e:Mi(e):void 0}(t,n);return e?"string"==typeof e?Mi(e):e:Mi(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 x(e)?"time":"linear"}(t,n)||bi(t,n))}(t,n).domain(),r=t.samples||1,o=Math.max(...e),i=Math.min(...e),a=function(t,n,e){const r=n?t:0;let o=n||t;o||(o=0);const i=o-r,a=Math.abs(i),u=i/a||1,s=e||1,l=Math.max(Math.ceil(a/s),0);return Array.from(Array(l),((t,n)=>r+n*u*s))}(i,o,(o-i)/r);return a[a.length-1]===o?a:a.concat(o)}function Ei(t,n,e){if(void 0===e&&(e="ascending"),!n)return t;let r=n;"x"!==n&&"y"!==n||(r=`_${n}`);const o="ascending"===e?"asc":"desc";return F()(t,r,o)}function ji(t,n){const e=function(t,n){const{tickValues:e,tickFormat:r}=t;let o;return o=e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[],o.filter((t=>"string"==typeof t))}(t,n),r=Fi(t,n),o=function(t,n){if(!Array.isArray(t.data)&&!ki(t.data))return[];const e=K(void 0===t[n]?n:t[n]);return Ei(t.data.reduce(((t,n)=>(t.push(Si(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=Si(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),i=j()([...e,...r,...o]);return 0===i.length?null:i.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function _i(t,n,e){if(!Array.isArray(t)&&!ki(t)||Ci(t)<1)return[];const r=["x","y","y0"],o=(e=Array.isArray(e)?e:r).reduce(((t,e)=>{var r;return t[e]=K(void 0!==n[r=e]?n[r]:r),t}),{}),i=T()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let u;!1===i&&(u={x:-1!==e.indexOf("x")?ji(n,"x"):void 0,y:-1!==e.indexOf("y")?ji(n,"y"):void 0,y0:-1!==e.indexOf("y0")?ji(n,"y"):void 0});const s=i?t:t.reduce(((t,n,r)=>{const i=Si(n),s={x:r,y:i},l=e.reduce(((t,n)=>{const e=o[n](i),r=void 0!==e?e:s[n];return void 0!==r&&("string"==typeof r&&u[n]?(t[`${n}Name`]=r,t[`_${n}`]=u[n][r]):t[`_${n}`]=r),t}),{}),c=Object.assign({},l,i);return a()(c)||t.push(c),t}),[]),l=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:wi(n,"x"),y:wi(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;const o=(t,n)=>"log"!==r[n]||0!==t[`_${n}`];return t.map((t=>o(t,"x")&&o(t,"y")&&o(t,"y0")?t:(t=>{const n=o(t,"x")?t._x:e,r=o(t,"y")?t._y:e,i=o(t,"y0")?t._y0:e;return Object.assign({},t,{_x:n,_y:r,_y0:i})})(t)))}(Ei(s,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=Z(o=t.eventKey)?o:null==o?()=>{}:P()(o);var o;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,l)}function Ti(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function $i(t){return t.data?_i(t.data,t):_i(function(t){const n=Oi(t,"x"),e=Oi(t,"y");return n.map(((t,n)=>({x:t,y:e[n]})))}(t),t)}function Fi(t,n){if(!t.categories)return[];const e=Ti(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?r.filter((t=>void 0!==t)):[]}function Ni(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=p().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)}var Pi=r(4295),zi=r.n(Pi),Li=r(2829),Bi=r.n(Li);function Ui(t,n,e){void 0===e&&(e="min");const r=t=>"max"===e?Math.max(...t):Math.min(...t),o="max"===e?-1/0:1/0;let i=!1;const a=t.flat().reduce(((t,e)=>{const o=void 0!==e[`_${n}0`]?e[`_${n}0`]:e[`_${n}`],a=void 0!==e[`_${n}1`]?e[`_${n}1`]:e[`_${n}`],u=r([o,a]);return i=i||o instanceof Date||a instanceof Date,r([t,u])}),o);return i?new Date(a):a}function Wi(t,n){const e=Z(t)?t:Ii,r=Z(n)?n:Hi;return(t,n)=>{const o=function(t,n){const e=Vi(t,n),r=qi(t,n);return L()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?Ri(e,r):void 0}(t,n);if(o)return r(o,t,n);const i=Ti(t,n),a=i?function(t,n,e){const r=e||Ti(t,n),{polar:o,startAngle:i=0,endAngle:a=360}=t;if(!r)return;const u=Vi(t,n),s=qi(t,n),l=(d=r,Array.isArray(d)&&d.some((t=>"string"==typeof t))?Fi(t,n):[]),c=0===l.length?null:l.reduce(((t,n,e)=>(t[n]=e+1,t)),{}),f=c?r.map((t=>c[t])):r,h=Ri(void 0!==u?u:M(f),void 0!==s?s:b(f));var d;return o&&"x"===n&&360===Math.abs(i-a)?Yi(h,f):h}(t,n,i):e(t,n);return a?r(a,t,n):void 0}}function Hi(t,n,e){return function(t,n,e){return"log"!==wi(n,e)?t:(t=>{const n=t[0]<0||t[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER;return[0===t[0]?n:t[0],0===t[1]?n:t[1]]})(t)}(function(t,n,e){if(!n.domainPadding)return t;const r=Vi(n,e),o=qi(n,e),i=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return L()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!i.left&&!i.right)return t;const a=M(t),u=b(t),s=function(t,n){return n?"x"===t?"y":"x":t}(e,n.horizontal),l=X(n,s),c=Math.abs(l[0]-l[1]),f=Math.max(c-i.left-i.right,1),h=Math.abs(u.valueOf()-a.valueOf())/f*c,d=h*i.left/c,p=h*i.right/c;let g={min:a.valueOf()-d,max:u.valueOf()+p};const y=L()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,m=(t,n)=>"min"===n&&a>=0&&t<=0||"max"===n&&u<=0&&t>=0?0:t;if((a>=0&&g.min<=0||u<=0&&g.max>=0)&&!1!==y){const t={left:Math.abs(u-a)*i.left/c,right:Math.abs(u-a)*i.right/c},n={min:m(a.valueOf()-t.left,"min"),max:m(u.valueOf()+t.right,"max")},e={left:Math.abs(n.max-n.min)*i.left/c,right:Math.abs(n.max-n.min)*i.right/c};g={min:m(a.valueOf()-e.left,"min"),max:m(u.valueOf()+e.right,"max")}}const v={min:void 0!==r?r:g.min,max:void 0!==o?o:g.max};return a instanceof Date||u instanceof Date?Ri(new Date(v.min),new Date(v.max)):Ri(v.min,v.max)}(t,n,e),n,e)}function Ii(t,n,e){const r=e||$i(t),{polar:o,startAngle:i=0,endAngle:a=360}=t,u=Vi(t,n),s=qi(t,n);if(r.length<1)return void 0!==u&&void 0!==s?Ri(u,s):void 0;const l=Ri(void 0!==u?u:Ui(r,n,"min"),void 0!==s?s:Ui(r,n,"max"));return o&&"x"===n&&360===Math.abs(i-a)?Yi(l,function(t,n){const e=`_${n}`;return t.flat().map((t=>t[e]&&void 0!==t[e][1]?t[e][1]:t[e]))}(r,n)):l}function Ri(t,n){return Number(t)===Number(n)?(t=>{const n=0===t?2*Math.pow(10,-10):Math.pow(10,-10),e=t instanceof Date?new Date(Number(t)-1):Number(t)-n,r=t instanceof Date?new Date(Number(t)+1):Number(t)+n;return 0===t?[0,r]:[e,r]})(n):[t,n]}function qi(t,n){return L()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||zi()(t.maxDomain)?t.maxDomain:void 0}function Vi(t,n){return L()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||zi()(t.minDomain)?t.minDomain:void 0}function Yi(t,n){const e=Bi()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}function Gi(t,n,e){const r=e?e.slice(0):p().Children.toArray(t.children),o=t.data?$i(t):void 0,{polar:i,startAngle:a,endAngle:u,categories:s,minDomain:l,maxDomain:c,horizontal:f}=t,h={horizontal:f,polar:i,startAngle:a,endAngle:u,minDomain:l,maxDomain:c,categories:s},d=o?Object.assign(h,{data:o}):h,g=J(r,(t=>{const e=Object.assign({},t.props,d);return function(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=p().Children.toArray(t.props.children);e=r.length?n(r[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(e)}(t)?t.type&&Z(t.type.getDomain)?t.props&&t.type.getDomain(e,n):function(t,n){return Wi()(t,n)}(e,n):null}),t);return[0===g.length?0:M(g),0===g.length?1:b(g)]}const Xi={checkDomainEquality(t,n){const e=e=>{const r=t&&t[e],o=n&&n[e];return!r&&!o||!(!r||!o)&&Number(r[0])===Number(o[0])&&Number(r[1])===Number(o[1])};return e("x")&&e("y")},scale(t,n,e,r){const[o,i]=t,a=Math.abs(i-o),u=e.minimumZoom&&e.minimumZoom[r],s=this.getScaleFactor(n);if(u&&a<=u&&s<1)return t;const[l,c]=this.getDomain(e)[r],f=this.getScalePercent(n,e,r),h=s*o+f*(s*a),d=this.getMinimumDomain(h,e,r),[p,g]=this.getScaledDomain(t,s,f),y=[p>l&&p<c?p:l,g<c&&g>l?g:c],m=Math.abs(d[1]-d[0])>Math.abs(y[1]-y[0])?d:y;return x([l,c])?[new Date(m[0]),new Date(m[1])]:m},getScaledDomain(t,n,e){const[r,o]=t,i=Math.abs(o-r),a=i-i*n,u=Number(r)+a*Math.max(e,0),s=Number(o)-a*Math.max(1-e,0);return[Math.min(u,s),Math.max(u,s)]},getMinimumDomain(t,n,e){const{minimumZoom:r}=n,o=this.getDomain(n)[e],[i,a]=o,u=Math.abs(i-a)/1e3,s=r&&r[e]||u,l=t-s/2,c=t+s/2;return[l>i&&l<a?l:i,c<a&&c>i?c:Number(i)+s/2]},zoommingOut:t=>t.deltaY>0,getScaleFactor(t){const n=this.zoommingOut(t)?1:-1,e=Math.min(Math.abs(t.deltaY/300),.5);return Math.abs(1+n*e)},getScalePercent(t,n,e){const r=this.getDomain(n),[o,i]=r[e];return(this.getPosition(t,n,r)[e]-o)/Math.abs(i-o)},getPosition(t,n,e){const{x:r,y:o}=A(t),i={x:n.scale.x.domain(e.x),y:n.scale.y.domain(e.y)};return C(n,i,r,o)},pan(t,n,e){const[r,o]=t.map((t=>Number(t))),[i,a]=n.map((t=>Number(t))),u=r+e,s=o+e;let l;return l=u>i&&s<a?[u,s]:u<i?[i,i+(o-r)]:s>a?[a-(o-r),a]:t,x(t)||x(n)?l.map((t=>new Date(t))):l},getDomainScale(t,n,e){const r=Array.isArray(t)?t:t[e],[o,i]=r,a=n[e].range();return Math.abs(a[0]-a[1])/(i-o)},handleAnimation(t){const n=t.context.animationTimer,e=t.context.transitionTimer;return e.bypassAnimation(),n.bypassAnimation(),y()((()=>{n.resumeAnimation(),e.resumeAnimation()}),16)},getLastDomain(t,n){const{zoomDomain:e,cachedZoomDomain:r,currentDomain:o,domain:i}=t;return e&&!this.checkDomainEquality(e,r)?h()({},e,i):h()({},o||e||n,i)},getDomain(t){const{originalDomain:n,domain:e,children:r,zoomDimension:o}=t,i=d.Children.toArray(r);let a={};return i.length&&(a=o?{[o]:Gi(t,o,i)}:{x:Gi(t,"x",i),y:Gi(t,"y",i)}),h()({},a,n,e)},onMouseDown(t,n){if(t.preventDefault(),!n.allowPan)return;const e=n.parentSVG||k(t),{x:r,y:o}=A(t,e);return[{target:"parent",mutation:()=>({startX:r,startY:o,panning:!0,parentSVG:e,parentControlledProps:["domain"]})}]},onMouseUp(t,n){if(n.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseLeave(t,n){if(n.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseMove(t,n,e,r){if(n.panning&&n.allowPan){const{scale:e,startX:o,startY:i,onZoomDomainChange:a,zoomDomain:u,zoomDimension:s,horizontal:l}=n,c=n.parentSVG||k(t),{x:f,y:d}=A(t,c),p=this.getDomain(n),g=this.getLastDomain(n,p),y=l?o-f:d-i,m=(l?d-i:o-f)/this.getDomainScale(g,e,"x"),v=y/this.getDomainScale(g,e,"y"),x={x:"y"===s?p.x:this.pan(g.x,p.x,m),y:"x"===s?p.y:this.pan(g.y,p.y,v)},b=this.handleAnimation(r),M={parentControlledProps:["domain"],startX:f,startY:d,parentSVG:c,currentDomain:x,originalDomain:p,cachedZoomDomain:u,zoomActive:!this.checkDomainEquality(p,g)};return Z(a)&&a(x,h()({},M,n)),[{target:"parent",callback:b,mutation:()=>M}]}},onWheel(t,n,e,r){if(!n.allowZoom)return;const{onZoomDomainChange:o,zoomDimension:i,zoomDomain:a}=n,u=this.getDomain(n),s=this.getLastDomain(n,u),{x:l,y:c}=s,f={x:"y"===i?s.x:this.scale(l,t,n,"x"),y:"x"===i?s.y:this.scale(c,t,n,"y")},d=this.handleAnimation(r),p={currentDomain:f,originalDomain:u,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(t)||n.zoomActive&&!this.checkDomainEquality(u,s)};return Z(o)&&o(f,h()({},p,n)),[{target:"parent",callback:d,mutation:()=>p}]}},Zi={checkDomainEquality:Xi.checkDomainEquality.bind(Xi),onMouseDown:Xi.onMouseDown.bind(Xi),onMouseUp:Xi.onMouseUp.bind(Xi),onMouseLeave:Xi.onMouseLeave.bind(Xi),onMouseMove:v()(Xi.onMouseMove.bind(Xi),16,{leading:!0,trailing:!1}),onWheel:v()(Xi.onWheel.bind(Xi),16,{leading:!0,trailing:!1})};var Ki=r(660),Qi=r.n(Ki),Ji=r(7709),ta=r.n(Ji);const na={startsWith:["data-","aria-"],exactMatch:[]};function ea(t,n){if(null==t)throw new Error(n)}const ra=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return na.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>na.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,q(r,t)]})))},oa=t=>p().createElement("defs",null,p().createElement("clipPath",{id:t.clipId?.toString()},t.children));function ia(){return ia=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},ia.apply(this,arguments)}const aa=(0,d.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:q(r,t)?.toString(),tabIndex:q(o,t),...a};return e?p().createElement("circle",ia({},u,{ref:n}),p().createElement("desc",null,e)):p().createElement("circle",ia({},u,{ref:n}))}));function ua(){return ua=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},ua.apply(this,arguments)}const sa=(0,d.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:q(r,t)?.toString(),tabIndex:q(o,t),...a};return e?p().createElement("rect",ua({},u,{ref:n}),p().createElement("desc",null,e)):p().createElement("rect",ua({},u,{ref:n}))}));class la extends p().Component{static displayName="VictoryClipContainer";static role="container";static defaultProps={circleComponent:p().createElement(aa,null),rectComponent:p().createElement(sa,null),clipPathComponent:p().createElement(oa,null),groupComponent:p().createElement("g",null)};constructor(t){super(t),this.clipId=ta()(t)&&void 0!==t.clipId?t.clipId:Qi()("victory-clip-")}calculateAttributes(t){const{polar:n,origin:e,clipWidth:r=0,clipHeight:o=0,translateX:i=0,translateY:a=0}=t,u=R({padding:t.clipPadding}),s=t.radius||G(t);return{x:(n?e.x:i)-u.left,y:(n?e.y:a)-u.top,width:Math.max((n?s:r)+u.left+u.right,0),height:Math.max((n?s:o)+u.top+u.bottom,0)}}renderClippedGroup(t,n){const e=ra(t),{style:r,events:o,transform:i,children:a,className:u,groupComponent:s,tabIndex:l}=t,c=this.renderClipComponent(t,n),f=Object.assign({className:u,style:r,transform:i,key:`clipped-group-${n}`,clipPath:`url(#${n})`},o);return p().cloneElement(s,{...f,tabIndex:l,...e},[c,...p().Children.toArray(a)])}renderGroup(t){const{style:n,events:e,transform:r,children:o,className:i,groupComponent:a,tabIndex:u}=t;return p().cloneElement(a,Object.assign({className:i,style:n,transform:r,"aria-label":t["aria-label"],tabIndex:u},e),o)}renderClipComponent(t,n){const{polar:e,origin:r,clipWidth:o=0,clipHeight:i=0,translateX:a=0,translateY:u=0,circleComponent:s,rectComponent:l,clipPathComponent:c}=t,{top:f,bottom:h,left:d,right:g}=R({padding:t.clipPadding});let y;if(e){const n=t.radius||G(t),e={r:Math.max(n+d+g,n+f+h,0),cx:r.x-d,cy:r.y-f};y=p().cloneElement(s,e)}else{const t={x:a-d,y:u-f,width:Math.max(o+d+g,0),height:Math.max(i+f+h,0)};y=p().cloneElement(l,t)}return p().cloneElement(c,Object.assign({key:`clip-path-${n}`},t,{clipId:n}),y)}getClipValue(t,n){const e={x:t.clipWidth,y:t.clipHeight};if(void 0!==e[n])return e[n];const r=X(t,n);return r&&Math.abs(r[0]-r[1])||void 0}getTranslateValue(t,n){const e={x:t.translateX,y:t.translateY};if(void 0!==e[n])return e[n];const r=X(t,n);return r?Math.min(...r):void 0}render(){const t=this.getClipValue(this.props,"y"),n=this.getClipValue(this.props,"x");if(void 0===n||void 0===t)return this.renderGroup(this.props);const e=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),o=h()({},this.props,{clipHeight:t,clipWidth:n,translateX:e,translateY:r});return this.renderClippedGroup(o,this.clipId)}}function ca(){return ca=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},ca.apply(this,arguments)}const fa=p().forwardRef(((t,n)=>p().createElement("svg",ca({ref:n},t)))),ha=p().createContext(void 0);ha.displayName="PortalContext";const da=()=>p().useContext(ha),pa=t=>{let{children:n}=t;const[e,r]=p().useState(new Map),o=p().useCallback(((t,n)=>{r((e=>{const r=new Map(e);return r.set(t,n),r}))}),[r]),i=p().useCallback((t=>{r((n=>{const e=new Map(n);return e.delete(t),e}))}),[r]),a=p().useMemo((()=>({addChild:o,removeChild:i,children:e})),[o,i,e]);return p().createElement(ha.Provider,{value:a},n)},ga=t=>{let{as:n,...e}=t;const r=da();if(!r)return null;const o=Array.from(r.children.values());return p().cloneElement(n,e,o)};function ya(){return ya=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},ya.apply(this,arguments)}const ma={className:"VictoryContainer",portalComponent:p().createElement(fa,null),portalZIndex:99,responsive:!0,role:"img"},va=t=>{const{role:n,title:e,desc:r,children:o,className:i,portalZIndex:a,portalComponent:u,width:s,height:l,style:c,tabIndex:f,responsive:h,events:g,ouiaId:y,ouiaSafe:m,ouiaType:v,dimensions:x,ariaDescribedBy:b,ariaLabelledBy:M,viewBox:w,preserveAspectRatio:D,userProps:k,titleId:A,descId:S,containerRef:C,localContainerRef:O}=function(t){const n={...ma,...t},{title:e,desc:r,width:o,height:i,responsive:a}=n,u=(0,d.useRef)(null),s=(0,d.useRef)(Qi()("victory-container-")),l=n.containerId??s.current,c=t=>`${l}-${t}`,f=ra(n),h=a?{width:"100%",height:"100%"}:{width:o,height:i},p=a?`0 0 ${o} ${i}`:void 0,g=a?n.preserveAspectRatio:void 0,y=[e&&c("title"),n["aria-labelledby"]].filter(Boolean).join(" ")||void 0,m=[r&&c("desc"),n["aria-describedby"]].filter(Boolean).join(" ")||void 0,v=c("title"),x=c("desc");return{...n,titleId:v,descId:x,dimensions:h,viewBox:p,preserveAspectRatio:g,ariaLabelledBy:y,ariaDescribedBy:m,userProps:f,localContainerRef:u}}(t);return p().useEffect((()=>{if(!g?.onWheel)return;const t=t=>t.preventDefault(),n=O?.current;return n?.addEventListener("wheel",t),()=>{n?.removeEventListener("wheel",t)}}),[]),p().createElement("div",{className:i,style:{...c,width:h?c?.width:x.width,height:h?c?.height:x.height,pointerEvents:"none",touchAction:"none",position:"relative"},"data-ouia-component-id":y,"data-ouia-component-type":v,"data-ouia-safe":m,ref:(E=[O,C],t=>{E.forEach((n=>{Z(n)?n(t):null!=n&&(n.current=t)}))})},p().createElement(pa,null,p().createElement("svg",ya({width:s,height:l,tabIndex:f,role:n,"aria-labelledby":M,"aria-describedby":b,viewBox:w,preserveAspectRatio:D,style:{...x,pointerEvents:"all"}},k,g),e?p().createElement("title",{id:A},e):null,r?p().createElement("desc",{id:S},r):null,o),p().createElement("div",{style:{...x,zIndex:a,position:"absolute",top:0,left:0}},p().createElement(ga,{as:u,width:s,height:l,viewBox:w,preserveAspectRatio:D,style:{...x,overflow:"visible"}}))));var E};va.role="container";const xa={clipContainerComponent:p().createElement(la,null),allowPan:!0,allowZoom:!0,zoomActive:!1},ba=t=>{const n={...xa,...t},{children:e,currentDomain:r,zoomActive:o,allowZoom:i,downsample:a,scale:u,clipContainerComponent:s,polar:l,origin:c,horizontal:f}=n,d=(t,e)=>{const r=(n=>{const{data:e,x:r,y:o}=n,i=t.type&&"function"==typeof t.type.getData?t.type.getData:()=>{};return!Array.isArray(e)||r||o?i(n):e})(t.props);if(!a||!e||!r)return;const o=!0===a?150:a,i=n.zoomDimension||"x";let u=r.findIndex((t=>t[i]>=e[i][0])),s=r.findIndex((t=>t[i]>e[i][1]));return 0!==u&&(u-=1),-1!==s&&(s+=1),function(t,n,e){void 0===e&&(e=0);const r=Ci(t);if(r>n){const o=Math.pow(2,Math.ceil(Math.log2(r/n)));return t.filter(((t,n)=>(n+e)%o==0))}return t}(r.slice(u,s),o,u)},g=p().Children.toArray(e).map((t=>{const e=t.type&&t.type.role,a=Ni(t),g=h()({},n.originalDomain,n.domain),y=h()({},n.zoomDomain,n.domain),m=h()({},n.cachedZoomDomain,n.domain);let v;v=Zi.checkDomainEquality(y,m)?i&&!o?t.props.domain:h()({},r,g):y;let x=n.polar?{x:g.x,y:[0,v.y[1]]}:v;x&&n.zoomDimension&&(x={...y,[n.zoomDimension]:x[n.zoomDimension]});const b=a&&"stack"!==e?{domain:x,data:d(t,x)}:{domain:x},M=p().cloneElement(t,h()(b,t.props));if(Ni(M)){const t=f?u.y.range():u.x.range(),n=f?u.x.range():u.y.range(),e=Math.abs(t[0]-t[1]),r=Math.abs(n[0]-n[1]),o=Math.max(...n),i=p().cloneElement(s,{clipWidth:e,clipHeight:r,translateX:Math.min(...t),translateY:Math.min(...n),polar:l,origin:l?c:void 0,radius:l?o:void 0,...s.props});return p().cloneElement(M,{groupComponent:i})}return M}));return{props:n,children:g}},Ma=t=>{const{props:n,children:e}=ba(t);return p().createElement(va,n,e)};Ma.role="container",Ma.defaultEvents=t=>{const n={...xa,...t},e=(t,e)=>(r,o,i,a)=>e||n.disable?{}:t(r,{...n,...o},i,a);return[{target:"parent",eventHandlers:{onMouseDown:e(Zi.onMouseDown),onTouchStart:e(Zi.onMouseDown),onMouseUp:e(Zi.onMouseUp),onTouchEnd:e(Zi.onMouseUp),onMouseLeave:e(Zi.onMouseLeave),onTouchCancel:e(Zi.onMouseLeave),onMouseMove:e(Zi.onMouseMove),onTouchMove:e(Zi.onMouseMove),onWheel:e(Zi.onWheel,!n.allowZoom)}}]};const wa=new class{getDimension(t){const{horizontal:n,selectionDimension:e}=t;return n&&e?"x"===e?"y":"x":e}getDatasets(t){return t.data?[{data:t.data}]:J(p().Children.toArray(t.children),((n,e,r)=>{const o=t.selectionBlacklist||[];let i;if(!Ni(n)||o.includes(e))return null;if(n.type&&Z(n.type.getData)){i=r?p().cloneElement(n,r.props):n;const t=i.props&&i.type.getData(i.props);return t?{childName:e,data:t}:null}const a=(t=>{const n=$i(t);return Array.isArray(n)&&n.length>0?n:void 0})(i.props);return a?{childName:e,data:a}:null}),t)}filterDatasets(t,n){const e=n.reduce(((n,e)=>{const r=this.getSelectedData(t,e.data);return r?n.concat({childName:e.childName,eventKey:r.eventKey,data:r.data}):n}),[]);return e.length?e:null}getSelectedData(t,n){const{x1:e,y1:r,x2:o,y2:i}=t,a=n=>{const a=I(t,n);return a.x>=Math.min(e,o)&&a.x<=Math.max(e,o)&&a.y>=Math.min(r,i)&&a.y<=Math.max(r,i)},u=[],s=[];let l=0;for(let t=0,e=n.length;t<e;t++){const e=n[t];a(e)&&(s[l]=e,u[l]=void 0===e.eventKey?t:e.eventKey,l++)}return l>0?{eventKey:u,data:s}:null}onMouseDown=(t,n)=>{t.preventDefault();const{activateSelectedData:e,allowSelection:r,polar:o,selectedData:i}=n;if(!r)return{};const a=this.getDimension(n),u=n.parentSVG||k(t),{x:s,y:l}=A(t,u),c={x1:o||"y"!==a?s:S(n).x[0],y1:o||"x"!==a?l:S(n).y[0],select:!0,x2:o||"y"!==a?s:S(n).x[1],y2:o||"x"!==a?l:S(n).y[1],parentSVG:u};i&&Z(n.onSelectionCleared)&&n.onSelectionCleared(h()({},c,n));const f=[{target:"parent",mutation:()=>c}],d=i&&e?i.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>null}))):[];return f.concat(...d)};handleMouseMove=(t,n)=>{const{allowSelection:e,select:r,polar:o}=n,i=this.getDimension(n);if(!e||!r)return null;const a=n.parentSVG||k(t),{x:u,y:s}=A(t,a),l=o||"y"!==i?u:S(n).x[1],c=o||"x"!==i?s:S(n).y[1];return{target:"parent",mutation:()=>({x2:l,y2:c,parentSVG:a})}};onMouseMove=v()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseUp=(t,n)=>{const{activateSelectedData:e,allowSelection:r,x2:o,y2:i}=n;if(!r)return null;if(!o||!i)return[{target:"parent",mutation:()=>({select:!1,x1:null,x2:null,y1:null,y2:null})}];const a=this.getDatasets(n),u=O(n),s=this.filterDatasets(n,a),l={selectedData:s,datasets:a,select:!1,x1:null,x2:null,y1:null,y2:null},c=s&&Z(n.onSelection)?n.onSelection(s,u,h()({},l,n)):{},f=[{target:"parent",mutation:()=>l}],d=s&&e?s.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>Object.assign({active:!0},c)}))):[];return f.concat(d)}},Da={activateSelectedData:!0,allowSelection:!0,selectionComponent:p().createElement(sa,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}},ka=t=>{const n={...Da,...t},{x1:e,x2:r,y1:o,y2:i,selectionStyle:a,selectionComponent:u,children:s,name:l}=n,c=Math.abs(r-e)||1,f=Math.abs(i-o)||1,h=Math.min(e,r),d=Math.min(o,i);return{props:n,children:[s,o&&i&&e&&r&&p().cloneElement(u,{key:`${l}-selection`,x:h,y:d,width:c,height:f,style:a})]}},Aa=t=>{const{props:n,children:e}=ka(t);return p().createElement(va,n,e)};Aa.role="container",Aa.defaultEvents=t=>{const n={...Da,...t},e=(t,e)=>(r,o,i,a)=>e||n.disable?{}:t(r,{...n,...o},i,a);return[{target:"parent",eventHandlers:{onMouseDown:e(wa.onMouseDown),onTouchStart:e(wa.onMouseDown),onMouseMove:e(wa.onMouseMove),onTouchMove:e(wa.onMouseMove),onMouseUp:e(wa.onMouseUp),onTouchEnd:e(wa.onMouseUp)}}]};const Sa={groupComponent:p().createElement("g",null)},Ca=t=>{const n={...Sa,...t},[e]=(0,d.useState)(Qi()()),r=da(),o=Array.isArray(n.children)?n.children[0]:n.children,{groupComponent:i}=n,a=o&&o.props||{},u=a.groupComponent?{groupComponent:i,standalone:!1}:{},s=h()(u,a,W(n,["children","groupComponent"]),{key:a.key??e}),l=o&&p().cloneElement(o,s);return p().useEffect((()=>{r?.addChild(e,l)}),[n.children]),p().useEffect((()=>()=>r?.removeChild(e)),[]),r?null:l};Ca.role="portal";const Oa=t=>{const{children:n,desc:e,id:r,origin:o,tabIndex:i,title:a,...u}=t,s={id:q(r,t)?.toString(),tabIndex:q(i,t),...u};return p().createElement("text",s,a&&p().createElement("title",null,a),e&&p().createElement("desc",null,e),n)},Ea=t=>{const{desc:n,id:e,tabIndex:r,origin:o,...i}=t,a={id:q(e,t)?.toString(),tabIndex:q(r,t),...i};return p().createElement("tspan",a)};function ja(t,n){const{x:e}=H(n);return("number"==typeof(r=t.scale.x(e))?r/(Math.PI/180):r)%360;var r}const _a=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,_a(n)].join(" ")),_a(t)).trim();if(null==t||"string"==typeof t)return t;const o=[];for(const n in t)if(t.hasOwnProperty(n)){const e=t[n];o.push(`${n}(${e})`)}return o.join(" ").trim()};var Ta=r(1594),$a=r.n(Ta);const Fa={"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}},Na={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Pa={em:1,ex:.5},za={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},La=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),Ba=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},Ua=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let o;return o=e?Na.hasOwnProperty(e)?r*Na[e]:Pa.hasOwnProperty(e)?(n?r*n:r*za.fontSize)*Pa[e]:r:r||0,o},Wa=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=h()({},e,za);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Ua(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Ua(String(r.fontSize))})},Ha=(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:La(t).reduce(((t,e,r)=>{const o=Wa(n,r),i=e.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0))(t,n),o=((t,n)=>{if(void 0===t||""===t||null===t)return 0;const e=La(t).map(((t,e)=>{const r=t.toString().length,{fontSize:o,letterSpacing:i,fontFamily:a}=Wa(n,e),u=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>Fa[t]))||"Helvetica";return Fa[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)*o+i*Math.max(r-1,0)}));return Math.max(...e)})(t,n);return{width:e?Ba(o,r,e):o,height:1.05*(e?Ba(r,o,e):r)}},Ia=$a()((()=>{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})),Ra=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",qa=$a()(((t,n)=>{let e=Ia();e.isConnected||(Ia.cache.clear?.(),e=Ia());const r=La(t);let o=0;for(const[t,i]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=Wa(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=i,r.setAttribute("x","0"),r.setAttribute("y",`${o}`),e.appendChild(r),o+=a.lineHeight*r.getBoundingClientRect().height}const{width:i}=e.getBoundingClientRect();return e.innerHTML="",{width:n?.angle?Ba(i,o,n?.angle):i,height:n?.angle?Ba(o,i,n?.angle):o}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(Ra).join():Ra(n)}`)),Va=(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?Ha(t,n):qa(t,n)}(t,n),Ya={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Ga=(t,n)=>t.datum?I(t,t.datum)[n]:0,Xa=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return Ya.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?Ya.fontSize:t}return Ya.fontSize},Za=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},Ka=t=>{const{backgroundStyle:n,backgroundPadding:e}=t;return Array.isArray(n)&&!a()(n)||Array.isArray(e)&&!a()(e)},Qa=(t,n)=>{const{direction:e,textAnchor:r,x:o,dx:i}=t;if("rtl"===e)return o-n;switch(r){case"middle":return Math.round(o-n/2);case"end":return Math.round(o-n);default:return o+(i||0)}},Ja=(t,n)=>{const{verticalAnchor:e,y:r,originalDy:o=0}=t,i=r+o;switch(e){case"start":return Math.floor(i);case"end":return Math.ceil(i-n);default:return Math.floor(i-n/2)}},tu=(t,n)=>Ka(t)?((t,n)=>{const{dy:e,dx:r,transform:o,backgroundStyle:i,backgroundPadding:a,backgroundComponent:u,inline:s,y:l}=t,c=n.map(((t,o)=>{const i=Za(n,o-1),u=t.textSize,c=t.fontSize*t.lineHeight,f=Math.ceil(c),h=Za(a,o),d=Za(a,o-1),p=s&&r||0,g=o&&!s?i.fontSize*i.lineHeight+d.top+d.bottom:e-.5*c-(t.fontSize-t.capHeight);return{textHeight:f,labelSize:u,heightWithPadding:f+h.top+h.bottom,widthWithPadding:u.width+h.left+h.right+p,y:l,fontSize:t.fontSize,dy:g}}));return c.map(((n,e)=>{const r=Qa(t,n.labelSize.width),f=c.slice(0,e+1).reduce(((t,n)=>t+n.dy),l),d=Za(a,e),g=n.heightWithPadding,y=s?((t,n,e)=>{const{textAnchor:r}=t,o=n.map((t=>t.widthWithPadding)),i=-o.reduce(((t,n)=>t+n),0)/2;switch(r){case"start":return o.reduce(((t,n,r)=>r<e?t+n:t),0);case"end":return o.reduce(((t,n,r)=>r>e?t-n:t),0);default:return o.reduce(((t,n,r)=>r===e?t+n/2:t+(r<e?n:0)),i)}})(t,c,e)+r-d.left:r,m=s?Ja(t,g)-d.top:f,v={key:`tspan-background-${e}`,height:g,style:Za(i,e),width:n.widthWithPadding,transform:o,x:y-d.left,y:m};return p().cloneElement(u,h()({},u.props,v))}))})(t,n):((t,n)=>{const{dx:e=0,transform:r,backgroundComponent:o,backgroundStyle:i,inline:a,backgroundPadding:u,capHeight:s}=t,l=n.map((t=>t.textSize)),c=a?Math.max(...l.map((t=>t.height))):l.reduce(((t,e,r)=>{const o=r?0:s/2;return t+e.height*(n[r].lineHeight-o)}),0),f=a?l.reduce(((t,n,r)=>{const o=r?e:0;return t+n.width+o}),0):Math.max(...l.map((t=>t.width))),d=Qa(t,f),g=Ja(t,c),y={key:"background",height:c+u.top+u.bottom,style:i,transform:r,width:f+u.left+u.right,x:a?d-u.left:d+e-u.left,y:g};return p().cloneElement(o,h()({},o.props,y))})(t,n),nu=(t,n,e)=>{const{inline:r}=n,o=Za(t,e);return e&&!r?((t,n,e)=>{const r=Za(t,n),o=Za(t,n-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,u=o.fontSize-o.capHeight,s=r.fontSize-r.capHeight,l=i-o.fontSize/2+r.fontSize/2-i/2+a/2-s/2+u/2;return Ka(e)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l})(t,e,n):r?0===e?o.backgroundPadding.top:void 0:o.backgroundPadding.top},eu=t=>{const n=q(t.ariaLabel,t),e=Za(t.style),r=(t=>{const n=q(t.lineHeight,t);return Array.isArray(n)&&a()(n)?[1]:n})(t),o=t.direction?q(t.direction,t):"inherit",i=t.textAnchor?q(t.textAnchor,t):e.textAnchor||"start",u=t.verticalAnchor?q(t.verticalAnchor,t):e.verticalAnchor||"middle",s=t.dx?q(t.dx,t):0,l=((t,n,e)=>{const r=t.dy?q(t.dy,t):0,o=t.inline?1:t.text.length,i=q(t.capHeight,t),a=n?q(n,t):"middle",u=[...Array(o).keys()].map((n=>Za(t.style,n).fontSize)),s=[...Array(o).keys()].map((t=>Za(e,t)));if("start"===a)return r+(i/2+s[0]/2)*u[0];if(t.inline)return"end"===a?r+(i/2-s[0]/2)*u[0]:r+i/2*u[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*s[0])*u[0]:r+(i/2+(.5-o/2)*s[0])*u[0];const l=[...Array(o).keys()].reduce(((t,n)=>t+(i/2+(.5-o)*s[n])*u[n]/o),0);return"end"===a?r+l:r+l/2+i/2*s[o-1]*u[o-1]})(t,u,r),c=void 0!==t.x?t.x:Ga(t,"x"),f=void 0!==t.y?t.y:Ga(t,"y"),h=((t,n,e)=>{const{polar:r}=t,o=Za(t.style),i=r?function(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const o=ja(t,r);let i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===e?0:90)}(t):0,a=void 0===o.angle?q(t.angle,t):o.angle,u=void 0===a?i:a,s=t.transform||o.transform,l=s&&q(s,t);return l||u?_a(l,u&&{rotate:[u,n,e]}):void 0})(t,c,f);return Object.assign({},t,{ariaLabel:n,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:u,dx:s,dy:l,originalDy:q(t.dy,t),transform:h,x:c,y:f})},ru={backgroundComponent:p().createElement(sa,null),groupComponent:p().createElement("g",null),direction:"inherit",textComponent:p().createElement(Oa,null),tspanComponent:p().createElement(Ea,null),capHeight:.71,lineHeight:1},ou=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>q(t,n)));const e=q(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=V(t,n);return{fontSize:Xa(e)}}const e=t=>{const e=V(t?h()({},t,Ya):Ya,n);return Object.assign({},e,{fontSize:Xa(e)})};return Array.isArray(t)&&!a()(t)?t.map((t=>e(t))):e(t)})(t.style,Object.assign({},t,{text:n})),r=((t,n)=>{if(t)return Array.isArray(t)&&!a()(t)?t.map((t=>V(t,n))):V(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:e})),o=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>R({padding:q(n,t)}))):R({padding:q(t.backgroundPadding,t)}))(Object.assign({},t,{text:n,style:e,backgroundStyle:r})),i=q(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:o,style:e,text:n,id:i})})(h()({},t,ru));if(null===n.text||void 0===n.text)return null;const e=eu(n),{text:r,style:o,capHeight:i,backgroundPadding:u,lineHeight:s}=e,l=r.map(((t,n)=>{const e=Za(o,n),r=Ua(`${i}em`,e.fontSize),a=Za(s,n);return{style:e,fontSize:e.fontSize||Ya.fontSize,capHeight:r,text:t,textSize:Va(t,e),lineHeight:a,backgroundPadding:Za(u,n)}})),c=((t,n)=>{const{ariaLabel:e,inline:r,className:o,title:i,events:a,direction:u,text:s,textAnchor:l,dx:c,dy:f,transform:h,x:d,y:g,desc:y,id:m,tabIndex:v,tspanComponent:x,textComponent:b}=t,M=ra(t),w={"aria-label":e,key:"text",...a,direction:u,dx:c,x:d,y:g+f,transform:h,className:o,title:i,desc:q(y,t),tabIndex:q(v,t),id:m,...M},D=s.map(((e,o)=>{const i=n[o].style,a={key:`${m}-key-${o}`,x:r?void 0:d,dx:r?c+n[o].backgroundPadding.left:c,dy:nu(n,t,o),textAnchor:i.textAnchor||l,style:i,children:e};return p().cloneElement(x,a)}));return p().cloneElement(b,w,D)})(e,l);if(n.backgroundStyle){const t=[tu(e,l),c],r=p().cloneElement(n.groupComponent,{},t);return n.renderInPortal?p().createElement(Ca,null,r):r}return n.renderInPortal?p().createElement(Ca,null,c):c};ou.displayName="VictoryLabel",ou.role="label",ou.defaultStyles=Ya;const iu=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],au="#252525",uu="#969696",su={width:450,height:300,padding:50,colorScale:iu},lu={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:au,stroke:"transparent"},cu=Object.assign({textAnchor:"middle"},lu),fu={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:iu,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:au},labels:lu}},su),axis:Object.assign({style:{axis:{fill:"transparent",stroke:au,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},cu,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:lu}},su),bar:Object.assign({style:{data:{fill:au,padding:8,strokeWidth:0},labels:lu}},su),boxplot:Object.assign({style:{max:{padding:8,stroke:au,strokeWidth:1},maxLabels:Object.assign({},lu,{padding:3}),median:{padding:8,stroke:au,strokeWidth:1},medianLabels:Object.assign({},lu,{padding:3}),min:{padding:8,stroke:au,strokeWidth:1},minLabels:Object.assign({},lu,{padding:3}),q1:{padding:8,fill:uu},q1Labels:Object.assign({},lu,{padding:3}),q3:{padding:8,fill:uu},q3Labels:Object.assign({},lu,{padding:3})},boxWidth:20},su),candlestick:Object.assign({style:{data:{stroke:au,strokeWidth:1},labels:Object.assign({},lu,{padding:5})},candleColors:{positive:"#ffffff",negative:au}},su),chart:su,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:au,strokeWidth:2},labels:lu}},su),group:Object.assign({colorScale:iu},su),histogram:Object.assign({style:{data:{fill:uu,stroke:au,strokeWidth:2},labels:lu}},su),legend:{colorScale:iu,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:lu,title:Object.assign({},lu,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:au,strokeWidth:2},labels:lu}},su),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},lu,{padding:20})},colorScale:iu,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:au,stroke:"transparent",strokeWidth:0},labels:lu}},su),stack:Object.assign({colorScale:iu},su),tooltip:{style:Object.assign({},lu,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:au,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({},lu,{padding:5,pointerEvents:"none"}),flyout:{stroke:au,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},su)},hu="#FFF59D",du="#F4511E",pu="#8BC34A",gu="#00796B",yu="#006064",mu=[du,hu,"#DCE775",pu,gu,yu],vu="#ECEFF1",xu="#90A4AE",bu="#455A64",Mu="#212121",wu={blue:"#4F7DA1",pink:"#E2A37F",teal:gu,purple:"#DF948A",green:pu,orange:du,cyan:yu,red:"#DF5A49",yellow:hu},Du=[vu,xu,bu,Mu],ku={width:350,height:350,padding:50},Au={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:bu,stroke:"transparent",strokeWidth:0},Su=Object.assign({textAnchor:"middle"},Au),Cu="round",Ou="round",Eu={palette:{colors:wu,grayscale:Du,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:Mu},labels:Au}},ku),axis:Object.assign({style:{axis:{fill:"transparent",stroke:xu,strokeWidth:2,strokeLinecap:Cu,strokeLinejoin:Ou},axisLabel:Object.assign({},Su,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:vu,strokeDasharray:"10, 5",strokeLinecap:Cu,strokeLinejoin:Ou,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:xu,strokeWidth:1,strokeLinecap:Cu,strokeLinejoin:Ou},tickLabels:Object.assign({},Au,{fill:bu})}},ku),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:bu,padding:8,strokeWidth:0},labels:Au}},ku),boxplot:Object.assign({style:{max:{padding:8,stroke:bu,strokeWidth:1},maxLabels:Object.assign({},Au,{padding:3}),median:{padding:8,stroke:bu,strokeWidth:1},medianLabels:Object.assign({},Au,{padding:3}),min:{padding:8,stroke:bu,strokeWidth:1},minLabels:Object.assign({},Au,{padding:3}),q1:{padding:8,fill:bu},q1Labels:Object.assign({},Au,{padding:3}),q3:{padding:8,fill:bu},q3Labels:Object.assign({},Au,{padding:3})},boxWidth:20},ku),candlestick:Object.assign({style:{data:{stroke:bu},labels:Object.assign({},Au,{padding:5})},candleColors:{positive:"#ffffff",negative:bu}},ku),chart:ku,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:bu,strokeWidth:2},labels:Au}},ku),group:Object.assign({colorScale:mu},ku),histogram:Object.assign({style:{data:{fill:bu,stroke:Mu,strokeWidth:2},labels:Au}},ku),legend:{colorScale:mu,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Au,title:Object.assign({},Au,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:bu,strokeWidth:2},labels:Au}},ku),pie:Object.assign({colorScale:mu,style:{data:{padding:8,stroke:vu,strokeWidth:1},labels:Object.assign({},Au,{padding:20})}},ku),scatter:Object.assign({style:{data:{fill:bu,opacity:1,stroke:"transparent",strokeWidth:0},labels:Au}},ku),stack:Object.assign({colorScale:mu},ku),tooltip:{style:Object.assign({},Au,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Mu,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({},Au,{padding:5,pointerEvents:"none"}),flyout:{stroke:Mu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},ku)},ju="#FFFFFF",_u="#F2F2F2",Tu="#E0E0E0",$u="#D1D1D1",Fu="#757575",Nu="#424242",Pu="#292929",zu="#FCB400",Lu="#FF6F2C",Bu={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},Uu="#8B46FF",Wu={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},Hu="#18BFFF",Iu="#20D9D2",Ru={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},qu={blue:Wu[500],cyan:Hu,green:Ru[500],yellow:zu,orange:Lu,red:Bu[500],purple:Uu,teal:Iu},Vu=Object.values(qu),Yu=[_u,Tu,Fu,Nu,Pu],Gu=["#FFD66E",zu,Lu,"#D74D26",Bu[500]],Xu=[Uu,Wu[500],Hu,Iu,Ru[500]],Zu=[Ru[900],Ru[500],zu,Lu,Bu[500]],Ku=Object.values(Bu),Qu=Object.values(Ru),Ju=Object.values(Wu),ts=Wu[500],ns={width:450,height:300,padding:60,colorScale:Vu},es={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:Pu,stroke:"transparent"},rs=Object.assign({textAnchor:"middle"},es),os="10, 5",is="round",as="round",us={grayscale:fu,material:Eu,clean:{palette:{colors:qu,grayscale:Yu,qualitative:Vu,heatmap:Zu,warm:Gu,cool:Xu,red:Ku,green:Qu,blue:Ju},area:Object.assign({style:{data:{fill:ts,strokeWidth:2,fillOpacity:.5},labels:es}},ns),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Fu,strokeWidth:1,strokeLinecap:is,strokeLinejoin:as},axisLabel:Object.assign({},rs,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:es}},ns),polarAxis:Object.assign({style:{axis:{stroke:Fu},grid:{stroke:$u,strokeDasharray:os,strokeLinecap:is,strokeLinejoin:as,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:$u,strokeWidth:1,strokeLinecap:is,strokeLinejoin:as},tickLabels:es}}),polarDependentAxis:Object.assign({style:{axis:{stroke:Fu},grid:{stroke:$u,strokeDasharray:os,strokeLinecap:is,strokeLinejoin:as,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Tu,strokeWidth:1,strokeLinecap:is,strokeLinejoin:as},tickLabels:es}}),bar:Object.assign({style:{data:{fill:ts,padding:8,strokeWidth:1,fillOpacity:.5},labels:es},cornerRadius:{top:1}},ns),boxplot:Object.assign({style:{max:{padding:8,stroke:$u,strokeWidth:2},maxLabels:Object.assign({},es,{padding:3}),median:{padding:8,stroke:ju,strokeWidth:2},medianLabels:Object.assign({},es,{padding:3}),min:{padding:8,stroke:$u,strokeWidth:2},minLabels:Object.assign({},es,{padding:3}),q1:{padding:8,fill:Vu[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},es,{padding:3}),q3:{padding:8,fill:Vu[1],rx:1},q3Labels:Object.assign({},es,{padding:3})},boxWidth:20},ns),candlestick:Object.assign({style:{data:{stroke:Tu,strokeWidth:0,rx:1},labels:Object.assign({},es,{padding:5})},candleColors:{positive:Ru[500],negative:Bu[500]},wickStrokeWidth:2},ns),chart:ns,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Nu,strokeWidth:2,strokeLinecap:is},labels:es}},ns),group:Object.assign({colorScale:Vu},ns),histogram:Object.assign({style:{data:{fill:Hu,fillOpacity:.5},labels:es},binSpacing:4,cornerRadius:{top:1}},ns),label:es,legend:{colorScale:Vu,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...es,fontSize:12},title:Object.assign({},es,{padding:8,fontSize:16}),border:{stroke:"#E8E8E8",strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:ts,strokeWidth:2,strokeLinecap:is,strokeLinejoin:as},labels:es}},ns),pie:Object.assign({style:{parent:{backgroundColor:ju},data:{padding:8,stroke:ju,strokeWidth:1},labels:{...es,padding:20,fill:"#5C5C5C",fontSize:10}},colorScale:Vu,cornerRadius:1},ns),scatter:Object.assign({style:{data:{fill:ts,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...es,padding:20}}},ns),stack:Object.assign({colorScale:Vu},ns),tooltip:{style:Object.assign({},es,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Tu,strokeWidth:2,fill:ju,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:Wu[100],stroke:ts,strokeWidth:2},labels:Object.assign({},es,{padding:5,pointerEvents:"none"}),flyout:{stroke:Pu,strokeWidth:1,fill:_u,pointerEvents:"none"},padding:{left:2,bottom:2}}},ns)}};function ss(){return ss=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},ss.apply(this,arguments)}const ls=(0,d.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={id:q(r,t)?.toString(),tabIndex:q(o,t),...a};return e?p().createElement("path",ss({},u,{ref:n}),p().createElement("desc",null,e)):p().createElement("path",ss({},u,{ref:n}))})),cs=t=>{const n=t.orientation||"top";return"left"===n||"right"===n?(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:o,height:i,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*(o/2),d=c+u*(o/2),p=f+i/2,g=f-i/2,y=u*(s-h)>0?0:t.pointerLength,m=`${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}, ${p-e}\n A ${m} ${h+u*e}, ${p}\n L ${d-u*e}, ${p}\n A ${m} ${d}, ${p-e}\n L ${d}, ${g+e}\n A ${m} ${d-u*e}, ${g}\n L ${h+u*e}, ${g}\n A ${m} ${h}, ${g+e}\n z`})(t):(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:o,height:i,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*(i/2),d=f-u*(i/2),p=c+o/2,g=c-o/2,y=u*(l-h)<0?0:t.pointerLength,m=`${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 ${p-e}, ${h}\n A ${m} ${p}, ${h-u*e}\n L ${p}, ${d+u*e}\n A ${m} ${p-e}, ${d}\n L ${g+e}, ${d}\n A ${m} ${g}, ${d+u*e}\n L ${g}, ${h-u*e}\n A ${m} ${g+e}, ${h}\n z`})(t)},fs={pathComponent:p().createElement(ls,null),role:"presentation",shapeRendering:"auto"},hs=t=>{const n=(t=>{const n=q(t.id,t),e=V(t.style,t);return{...t,id:n,style:e}})(h()({},t,fs)),e=ra(n);ea(n.height,"Flyout props[height] is undefined"),ea(n.width,"Flyout props[width] is undefined"),ea(n.x,"Flyout props[x] is undefined"),ea(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 p().cloneElement(n.pathComponent,{...n.events,...e,style:n.style,d:cs(r),className:n.className,shapeRendering:n.shapeRendering,role:n.role,transform:n.transform,clipPath:n.clipPath})},ds={cornerRadius:5,pointerLength:10,pointerWidth:10};class ps extends p().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:p().createElement(ou,null),flyoutComponent:p().createElement(hs,null),groupComponent:p().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?Qi()("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=ja(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||us.grayscale,e=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>h()({},t,e))):h()({},t.style,e),o=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},i=t.flyoutStyle?h()({},t.flyoutStyle,o):o,a=Array.isArray(r)?r.map((n=>V(n,t))):V(r,t);return{style:a,flyoutStyle:V(i,Object.assign({},t,{style:a}))}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:e,dx:r,dy:o}=t,i=q(t.active,t);let a=q(t.text,Object.assign({},t,{active:i}));null==a&&(a=""),"number"==typeof a&&(a=a.toString());const{style:u,flyoutStyle:s}=this.getStyles(Object.assign({},t,{active:i,text:a})),l=q(t.orientation,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s}))||this.getDefaultOrientation(t),c=R({padding:q(t.flyoutPadding,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s,orientation:l}))||this.getLabelPadding(u)}),f=q(t.pointerWidth,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s,orientation:l})),h=q(t.pointerLength,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s,orientation:l})),d=Va(a,u),{flyoutHeight:p,flyoutWidth:g}=this.getDimensions(Object.assign({},t,{style:u,flyoutStyle:s,active:i,text:a,orientation:l,flyoutPadding:c,pointerWidth:f,pointerLength:h}),d),y=Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s,orientation:l,flyoutHeight:p,flyoutWidth:g,flyoutPadding:c,pointerWidth:f,pointerLength:h}),m=L()(e)&&void 0!==e?.x?q(e.x,y):0,v=L()(e)&&void 0!==e?.y?q(e.y,y):0;return{...y,centerOffset:{x:m,y:v},dx:void 0!==r?q(r,y):0,dy:void 0!==o?q(o,y):0,cornerRadius:q(n,y)}}getCalculatedValues(t){const{style:n,text:e,flyoutStyle:r,flyoutHeight:o,flyoutWidth:i}=t,a={height:o,width:i};return{style:n,flyoutStyle:r,labelSize:Va(e,n),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:n,y:e,style:r}=t,o=(r||{}).angle||t.angle||this.getDefaultAngle(t);return o?`rotate(${o} ${n} ${e})`:void 0}getDefaultAngle(t){const{polar:n,labelPlacement:e,orientation:r,datum:o}=t;if(!n||!e||"vertical"===e)return 0;const i=ja(t,o);let a=0;return 0===i||180===i?a="top"===r&&180===i?270:90:i>0&&i<180?a=90-i:i>180&&i<360&&(a=270-i),a+(i>90&&i<180||i>270?1:-1)*("perpendicular"===e?0:90)}constrainTooltip(t,n,e){const{x:r,y:o}=t,{width:i,height:a}=e,u=[0,n.width],s=[0,n.height],l=[r-i/2,r+i/2],c=[o-a/2,o+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(o+h[0]-h[1])}}getFlyoutCenter(t,n){const{x:e,y:r,dx:o,dy:i,pointerLength:a,orientation:u,constrainToVisibleArea:s,centerOffset:l}=t,{height:c,width:f}=n,h="left"===u?-1:1,d="bottom"===u?-1:1,p={x:"left"===u||"right"===u?e+h*(a+f/2+h*o):e+o,y:"top"===u||"bottom"===u?r-d*(a+c/2-d*i):r+i},g=L()(t.center)&&void 0!==t.center.x?t.center.x:p.x,y=L()(t.center)&&void 0!==t.center.y?t.center.y:p.y,m={x:g+l.x,y:y+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:o,flyoutHeight:i,flyoutWidth:a,flyoutPadding:u}=t,s=q(t.cornerRadius,t);return{flyoutHeight:i?q(i,t):(()=>{const t=n.height+u.top+u.bottom,r="top"===e||"bottom"===e?2*s:2*s+o;return Math.max(r,t)})(),flyoutWidth:a?q(a,t):(()=>{const t=n.width+u.left+u.right,o="left"===e||"right"===e?2*s+r:2*s;return Math.max(o,t)})()}}getLabelProps(t,n){const{flyoutCenter:e,style:r,labelSize:o,dy:i=0,dx:a=0}=n,{text:u,datum:s,activePoints:l,labelComponent:c,index:f,flyoutPadding:d}=t,p=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return h()({},c.props,{key:`${this.id}-label-${f}`,text:u,datum:s,activePoints:l,textAnchor:p,dy:i,dx:a,style:r,x:(()=>{if(!p||"middle"===p)return e.x;const t="end"===p?-1:1;return e.x-t*(o.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,o=n.y-e.height/2,i=n.x-e.width/2,a=n.x+e.width/2,u=[{side:"top",val:o>t.y?o-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:i>t.x?i-t.x:-1}];return F()(u,"val","desc")[0].side}getFlyoutProps(t,n){const{flyoutDimensions:e,flyoutStyle:r,flyoutCenter:o}=n,{x:i,y:a,dx:u,dy:s,datum:l,activePoints:c,index:f,pointerLength:d,pointerWidth:p,cornerRadius:g,events:y,flyoutComponent:m}=t,v=q(t.pointerOrientation,t);return h()({},m.props,{x:i,y:a,dx:u,dy:s,datum:l,activePoints:c,index:f,pointerLength:d,pointerWidth:p,cornerRadius:g,events:y,orientation:v||this.getPointerOrientation({x:i,y:a},o,e),key:`${this.id}-tooltip-${f}`,width:e.width,height:e.height,style:r,center:o})}renderTooltip(t){const n=q(t.active,t),{renderInPortal:e}=t;if(!n)return null;const r=this.getEvaluatedProps(t),{flyoutComponent:o,labelComponent:i,groupComponent:a}=r,u=this.getCalculatedValues(r),s=[p().cloneElement(o,this.getFlyoutProps(r,u)),p().cloneElement(i,this.getLabelProps(r,u))],l=p().cloneElement(a,{role:"presentation",transform:u.transform},s);return e?p().createElement(Ca,null,l):l}render(){const t=function(t,n,e){const r=W(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),o=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(p().Children.toArray(r.children))}),!1);return n(p().Children.toArray(t.children))}(t),i=void 0===o?{}:{horizontal:o};return h()(i,t,r,n)}(this.props,ds,"tooltip");return this.renderTooltip(t)}}var gs=r(5395),ys=r.n(gs),ms=r(7491),vs=r.n(ms),xs=r(6898);const bs=new class{withinBounds(t,n){const{width:e,height:r,polar:o,origin:i,scale:a}=t,u=R(t,"voronoiPadding"),{x:s,y:l}=n;if(o){const t=Math.pow(s-i.x,2)+Math.pow(l-i.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:M(t.domain.x),y:M(t.domain.y)},e=p().Children.toArray(t.children),r=(e,r,o)=>{const i=o&&o.type&&o.type.continuous,a=o?o.props&&o.props.style:t.style;return e.map(((e,o)=>{const{x:u,y:s,y0:l,x0:c}=H(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:o,childName:r,continuous:i,style:a},e)}))};if(t.data)return r(t.data);const o=t=>{const n=$i(t);return Array.isArray(n)&&n.length>0?n:void 0};return J(e,((n,e)=>{const i=(n.props||{}).name||e,a=t.voronoiBlacklist||[],u=a.filter((t=>!!t&&"string"==typeof t.valueOf())),s=a.filter(ys()).some((t=>t.test(i)));if(!Ni(n)||u.includes(i)||s)return null;const l=(n.type&&Z(n.type.getData)?n.type.getData:o)(n.props);return l?r(l,i,n):null}),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:o}=n;return Math.pow(r-t[0],2)+Math.pow(o-t[1],2)<Math.pow(e,2)}getVoronoiPoints(t,n){const e=this.getDatasets(t),r=e.map((n=>{const{x:e,y:r}=I(t,n);return[e,r]})),o=xs.Z.from(r).find(n.x,n.y);return{points:this.withinRadius(r[o],n,t.radius)?this.findPoints(e,e[o]):[],index:o}}getActiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:o,activateLabels:i,labels:u}=t;if(!o&&!i)return[];const s=o?["data"]:[],l=u&&!i?s:s.concat("labels");return a()(l)?[]:l.map((t=>{const o=!0===r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:o,target:t,mutation:()=>({active:!0})}}))}getInactiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:o,activateLabels:i,labels:u}=t;if(!o&&!i)return[];const s=o?["data"]:[],l=u&&!i?s:s.concat("labels");return a()(l)?[]:l.map((t=>{const o=r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:o,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){Z(t.onActivated)&&t.onActivated(n,t)}onDeactivated(t,n){Z(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||k(t),o=A(t,r);if(!this.withinBounds(n,o)){this.onDeactivated(n,e);const t=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return this.getParentMutation([],o,r).concat(...t)}const{points:i=[],index:a}=this.getVoronoiPoints(n,o),u=this.getParentMutation(i,o,r,a);if(e.length&&vs()(i,e))return u;this.onActivated(n,i),this.onDeactivated(n,e);const s=i.length?i.map((t=>this.getActiveMutations(n,t))):[],l=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return u.concat(...l,...s)};onMouseMove=v()(this.handleMouseMove,32,{leading:!0,trailing:!1})},Ms={activateData:!0,activateLabels:!0,labelComponent:p().createElement(ps,null),voronoiPadding:5},ws=t=>U()(t,["_x","_x1","_x0","_y","_y1","_y0"]),Ds=t=>{const n={...Ms,...t},{children:e}=n,r=(t,e)=>{const{labels:r,labelComponent:o,theme:i}=n,a=o.props||{},u=i&&i.voronoi&&i.voronoi.style?i.voronoi.style:{},s="flyout"===e?a.flyoutStyle:a.style;return t.reduce(((t,n,o)=>{const i=h()({},a,{datum:n,active:!0}),l=Z(r)?r(i):void 0,c=void 0!==l?`${l}`.split("\n"):[],f=n.style&&n.style[e]||{},d=Array.isArray(s)?s[o]:s,p=V(h()({},d,f,u[e]),i),g=c.length?c.map((()=>p)):[p];return t.concat(g)}),[])},o=t=>{const{labels:e,scale:o,labelComponent:i,theme:a,width:u,height:s}=n,l=i.props||{},c=t.reduce(((t,n)=>{const r=h()({},l,{datum:n,active:!0}),o=Z(e)?e(r):null;return null==o?t:t.concat(`${o}`.split("\n"))}),[]),{childName:f,eventKey:d,style:p,continuous:g,...y}=t[0],m=n.name===f?f:`${n.name}-${f}`,v=h()({key:`${m}-${d}-voronoi-tooltip`,id:`${m}-${d}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:t,datum:y,scale:o,theme:a},l,{text:c,width:u,height:s,style:r(t,"labels"),flyoutStyle:r(t,"flyout")[0]},(t=>{const{voronoiDimension:e,horizontal:r,mouseFollowTooltips:o}=n,i=ws(t[0]),a=e&&t.length>1,u=void 0!==i._y1?i._y1:i._y;return{orientation:o?void 0:r?u<0?"left":"right":u<0?"bottom":"top",pointerLength:a?0:void 0,constrainToVisibleArea:!(!a&&!o)||void 0}})(t)),x=((t,e)=>{const{mousePosition:r,mouseFollowTooltips:o}=n,i=(()=>{const{horizontal:t,voronoiDimension:e}=n;return t&&e?"x"===e?"y":"x":e})(),a=ws(e[0]),u=I(n,a);let s=o?r:void 0;if(!i||e.length<2)return{...u,center:h()({},t.center,s)};const l="y"===i?r.x:u.x,c="x"===i?r.y:u.y;return s=o?r:{x:l,y:c},{x:l,y:c,center:h()({},t.center,s)}})(v,t);return h()({},x,v)};return{props:n,children:[...p().Children.toArray(e),(()=>{const{labels:t,activePoints:e,labelComponent:r}=n;if(!t)return null;if(Array.isArray(e)&&e.length){const t=o(e),{text:n}=t;return(Array.isArray(n)?n.filter(Boolean).length:n)?p().cloneElement(r,t):null}return null})()]}},ks=t=>{const{props:n,children:e}=Ds(t);return p().createElement(va,n,e)};function As(){return As=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},As.apply(this,arguments)}ks.role="container",ks.defaultEvents=t=>{const n={...Ms,...t},e=(t,e)=>(r,o,i,a)=>e||n.disable?{}:t(r,{...n,...o},i,a);return[{target:"parent",eventHandlers:{onMouseLeave:e(bs.onMouseLeave),onTouchCancel:e(bs.onMouseLeave),onMouseMove:e(bs.onMouseMove),onTouchMove:e(bs.onMouseMove)}},{target:"data",eventHandlers:n.disable?{}:{onMouseOver:()=>null,onMouseOut:()=>null,onMouseMove:()=>null}}]};const Ss=(0,d.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:q(r,t)?.toString(),tabIndex:q(o,t),...a};return e?p().createElement("line",As({},u,{ref:n}),p().createElement("desc",null,e)):p().createElement("line",As({},u,{ref:n}))})),Cs={lineComponent:p().createElement(Ss,null),role:"presentation",shapeRendering:"auto"},Os=t=>{const n=(t=>{const n=q(t.ariaLabel,t),e=q(t.desc,t),r=q(t.id,t),o=V(Object.assign({stroke:"black"},t.style),t),i=q(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:o,tabIndex:i})})(h()({},t,Cs));return p().cloneElement(n.lineComponent,{...n.events,"aria-label":n.ariaLabel,style:n.style,desc:n.desc,tabIndex:n.tabIndex,className:n.className,role:n.role,shapeRendering:n.shapeRendering,x1:n.x1,x2:n.x2,y1:n.y1,y2:n.y2,transform:n.transform,clipPath:n.clipPath})},Es=new class{getDimension(t){const{horizontal:n,cursorDimension:e}=t;return n&&e?"x"===e?"y":"x":e}withinBounds(t,n){const{x1:e,x2:r,y1:o,y2:i}=Q(n,Number),{x:a,y:u}=Q(t,Number);return a>=Math.min(e,r)&&a<=Math.max(e,r)&&u>=Math.min(o,i)&&u<=Math.max(o,i)}handleMouseMove=(t,n)=>{const{onCursorChange:e,domain:r}=n,o=this.getDimension(n),i=n.parentSVG||k(t),a=A(t,i);let u=C(n,n.scale,a.x,a.y);return this.withinBounds(u,{x1:r.x[0],x2:r.x[1],y1:r.y[0],y2:r.y[1]})||(u=null),Z(e)&&(u?e(o?u[o]:u,n):u!==n.cursorValue&&e(n.defaultCursorValue||null,n)),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:u,parentSVG:i})}]};onMouseMove=v()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseLeave=this.handleMouseMove;onTouchEnd=(t,n)=>{const{onCursorChange:e}=n;return Z(n.onCursorChange)&&e(null,n),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]}},js={cursorLabelComponent:p().createElement(ou,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:p().createElement(Os,null)},_s=t=>{const n={...js,...t},{children:e}=n;return{props:n,children:[...p().Children.toArray(e),...(()=>{const{scale:t,cursorLabelComponent:e,cursorLabel:r,cursorComponent:o,width:i,height:a,name:u,horizontal:s,theme:l}=n,c=Es.getDimension(n),f=(()=>{const{cursorValue:t,defaultCursorValue:e,domain:r,cursorDimension:o}=n;return t||("number"==typeof e?{x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2,...o?{[o]:e}:{}}:e)})(),d=(()=>{const{cursorLabelOffset:t}=n;return"number"==typeof t?{x:t,y:t}:t})();if(!f)return[];const g=[],y=void 0===n.padding?R((Array.isArray(n.children)?n.children.find((t=>ta()(t.props)&&void 0!==t.props.padding)):n.children)?.props):R(n),m=t&&"x"in t&&"y"in t&&"function"==typeof t.y&&"function"==typeof t.x?{x:s?t.y(f.y):t.x(f.x),y:s?t.x(f.x):t.y(f.y)}:{x:f.x,y:f.y};if(r){let t=h()({active:!0},e.props,{x:m.x+d.x,y:m.y+d.y,datum:f,active:!0,key:`${u}-cursor-label`});if("tooltip"===((v=e)&&v.type&&v.type.role)){const n=l&&l.tooltip||{};t=h()({},t,n)}g.push(p().cloneElement(e,h()({},t,{text:q(r,t)})))}var v;const x=Object.assign({stroke:"black"},o.props.style);return"x"!==c&&void 0!==c||g.push(p().cloneElement(o,{key:`${u}-x-cursor`,x1:m.x,x2:m.x,y1:y.top,y2:("number"==typeof a?a:0)-y.bottom,style:x})),"y"!==c&&void 0!==c||g.push(p().cloneElement(o,{key:`${u}-y-cursor`,x1:y.left,x2:("number"==typeof i?i:0)-y.right,y1:m.y,y2:m.y,style:x})),g})()]}},Ts=t=>{const{props:n,children:e}=_s(t);return p().createElement(va,n,e)};Ts.role="container",Ts.defaultEvents=t=>{const n={...js,...t},e=(t,e)=>(r,o,i,a)=>e||n.disable?{}:t(r,{...n,...o},i,a);return[{target:"parent",eventHandlers:{onMouseLeave:e(Es.onMouseLeave),onMouseMove:e(Es.onMouseMove),onTouchMove:e(Es.onMouseMove)}}]};const $s={getDimension(t){const{horizontal:n,brushDimension:e}=t;return n&&e?"x"===e?"y":"x":e},withinBounds(t,n,e){const{x1:r,x2:o,y1:i,y2:a}=Q(n,Number),{x:u,y:s}=Q(t,Number),l=e?e/2:0;return u+l>=Math.min(r,o)&&u-l<=Math.max(r,o)&&s+l>=Math.min(i,a)&&s-l<=Math.max(i,a)},getDomainBox(t,n,e){const r=this.getDimension(t),o=h()({},n,t.domain),i=h()({},e,o),a=S(t,o),u=S(t,i);return{x1:"y"!==r?Math.min(...u.x):Math.min(...a.x),x2:"y"!==r?Math.max(...u.x):Math.max(...a.x),y1:"x"!==r?Math.min(...u.y):Math.min(...a.y),y2:"x"!==r?Math.max(...u.y):Math.max(...a.y)}},getHandles(t,n){const e=this.getDimension(t),{x1:r,x2:o,y1:i,y2:a}=n,u=Math.min(r,o),s=Math.max(r,o),l=Math.min(i,a),c=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==e&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==e&&{x1:s-f,x2:s+f,y1:i,y2:a},top:"x"!==e&&{x1:r,x2:o,y1:l-f,y2:l+f},bottom:"x"!==e&&{x1:r,x2:o,y1:c-f,y2:c+f}}},getActiveHandles(t,n,e){const r=this.getHandles(n,e),o=["top","bottom","left","right"].reduce(((n,e)=>r[e]&&this.withinBounds(t,r[e])?n.concat(e):n),[]);return o.length&&o},getResizeMutation(t,n){const{x1:e,y1:r,x2:o,y2:i}=t,a={left:{x1:Math.max(e,o),x2:Math.min(e,o),y1:r,y2:i},right:{x1:Math.min(e,o),x2:Math.max(e,o),y1:r,y2:i},top:{y1:Math.max(r,i),y2:Math.min(r,i),x1:e,x2:o},bottom:{y1:Math.min(r,i),y2:Math.max(r,i),x1:e,x2:o}};return n.reduce(((t,n)=>Object.assign(t,a[n])),{})},getMinimumDomain:()=>({x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}),getDefaultBrushArea(t,n,e){const{domain:r,fullDomain:o,scale:i,horizontal:a,allowResize:u}=t,s=u||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===s)return this.getMinimumDomain();if("disable"===s)return n;if("move"===s){const r=this.getDomainBox(t,o,n),u=t.parentSVG||k(e),s=this.panBox({...t,...r,brushDomain:n,startX:(r.x1+r.x2)/2,startY:(r.y1+r.y2)/2},A(e,u)),l=t.fullDomainBox||this.getDomainBox(t,o);return O({...this.constrainBox(s,l),scale:i,horizontal:a})}return r},getSelectionMutation(t,n,e){const{x:r,y:o}=t,{x1:i,x2:a,y1:u,y2:s}=n;return{x1:"y"!==e?r:i,y1:"x"!==e?o:u,x2:"y"!==e?r:a,y2:"x"!==e?o:s}},panBox(t,n){const{domain:e,startX:r,startY:o}=t,i=this.getDimension(t),a=h()({},t.brushDomain,e),u=h()({},t.fullDomain,e),{x1:s,x2:l,y1:c,y2:f}=t.x1?t:this.getDomainBox(t,u,a),{x:d,y:p}=n,g=r?r-d:0,y=o?o-p:0;return{x1:"y"!==i?Math.min(s,l)-g:Math.min(s,l),x2:"y"!==i?Math.max(s,l)-g:Math.max(s,l),y1:"x"!==i?Math.min(c,f)-y:Math.min(c,f),y2:"x"!==i?Math.max(c,f)-y:Math.max(c,f)}},constrainBox(t,n){const{x1:e,y1:r,x2:o,y2:i}=Q(n,Number);return{x1:t.x2>o?o-Math.abs(t.x2-t.x1):Math.max(t.x1,e),y1:t.y2>i?i-Math.abs(t.y2-t.y1):Math.max(t.y1,r),x2:t.x1<e?e+Math.abs(t.x2-t.x1):Math.min(t.x2,o),y2:t.y1<r?r+Math.abs(t.y2-t.y1):Math.min(t.y2,i)}},constrainPoint(t,n){const{x1:e,y1:r,x2:o,y2:i}=Q(n,Number);return{x:Math.min(Math.max(t.x,e),o),y:Math.min(Math.max(t.y,r),i)}},hasMoved(t){const{x1:n,x2:e,y1:r,y2:o,mouseMoveThreshold:i}=t,a=this.getDimension(t),u=Math.abs(n-e)>=i,s=Math.abs(r-o)>=i;switch(a){case"x":return u;case"y":return s;default:return u||s}},onMouseDown(t,n){t.preventDefault();const{handleWidth:e,cachedBrushDomain:r,domain:o,allowResize:i,allowDrag:a,allowDraw:u}=n,s=this.getDimension(n),l=i||n.defaultBrushArea?n.defaultBrushArea:"move";if(!i&&!a)return{};const c=n.fullDomainBox||this.getDomainBox(n,o),f=n.parentSVG||k(t),{x:d,y:p}=A(t,f);if(!this.withinBounds({x:d,y:p},c,e))return{};const g=h()({},n.brushDomain,o),y=vs()(g,r)?n.currentDomain||g||o:g||o,m=this.getDomainBox(n,o,y),v=i&&this.getActiveHandles({x:d,y:p},n,m);return v?[{target:"parent",mutation:()=>({isSelecting:!0,domainBox:m,fullDomainBox:c,cachedBrushDomain:g,currentDomain:y,parentSVG:f,...this.getResizeMutation(m,v)})}]:this.withinBounds({x:d,y:p},m)&&!vs()(o,y)?[{target:"parent",mutation:()=>({isPanning:a,startX:d,startY:p,domainBox:m,fullDomainBox:c,currentDomain:y,cachedBrushDomain:g,parentSVG:f,...m})}]:u?[{target:"parent",mutation:()=>({isSelecting:i||"move"===l,domainBox:m,fullDomainBox:c,parentSVG:f,cachedBrushDomain:g,cachedCurrentDomain:y,currentDomain:this.getMinimumDomain(),...this.getSelectionMutation({x:d,y:p},m,s)})}]:{}},onGlobalMouseMove(t,n){const{scale:e,isPanning:r,isSelecting:o,fullDomainBox:i,onBrushDomainChange:a,allowResize:u,allowDrag:s,horizontal:l,mouseMoveThreshold:c,parentSVG:f}=n,d=this.getDimension(n),{x:p,y:g}=A(t,f);if(!u&&!s||c>0&&!this.hasMoved({...n,x2:p,y2:g}))return{};if(s&&r){const{startX:t,startY:r}=n,o=this.panBox(n,{x:p,y:g}),u=this.constrainBox(o,i),s=O({...u,scale:e,horizontal:l}),c={currentDomain:s,parentSVG:f,startX:o.x2>=i.x2||o.x1<=i.x1?t:p,startY:o.y2>=i.y2||o.y1<=i.y1?r:g,...u};return Z(a)&&a(s,h()({},c,n)),[{target:"parent",mutation:()=>c}]}if(u&&o){const{x:t,y:r}=this.constrainPoint({x:"y"!==d?p:n.x2,y:"x"!==d?g:n.y2},i),o=O({x2:t,y2:r,x1:n.x1,y1:n.y1,scale:e,horizontal:l}),u={x2:t,y2:r,currentDomain:o,parentSVG:f};return Z(a)&&a(o,h()({},u,n)),[{target:"parent",mutation:()=>u}]}return{}},onGlobalMouseUp(t,n){if(!n.isPanning&&!n.isSelecting)return{};const{x1:e,y1:r,x2:o,y2:i,isPanning:a,isSelecting:u,onBrushDomainChange:s,onBrushDomainChangeEnd:l,onBrushCleared:c,currentDomain:f,allowResize:d,allowDrag:p}=n,g=d||n.defaultBrushArea?n.defaultBrushArea:"move",y={isPanning:!1,isSelecting:!1};if(!d&&(void 0===g||"none"===g)||e!==o&&r!==i)(p&&a||d&&u)&&Z(l)&&l(f,h()({},y,n));else{const e=n.cachedCurrentDomain||f,r=this.getDefaultBrushArea(n,e,t);y.currentDomain=r,Z(s)&&s(r,h()({},y,n)),Z(l)&&l(r,h()({},y,n)),Z(c)&&c(r,h()({},y,n))}return[{target:"parent",mutation:()=>y}]}},Fs={...$s,onMouseDown:$s.onMouseDown.bind($s),onGlobalMouseUp:$s.onGlobalMouseUp.bind($s),onGlobalMouseMove:v()($s.onGlobalMouseMove.bind($s),16,{leading:!0,trailing:!1})},Ns={allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:p().createElement(sa,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:p().createElement(sa,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0},Ps=t=>{const n={...Ns,...t},{children:e}=n,r=t=>{const{handleWidth:e,handleStyle:r,handleComponent:o,name:i}=n,a=Fs.getDomainBox(n,t),{x1:u,x2:s,y1:l,y2:c}=a,{top:f,bottom:d,left:g,right:y}=Fs.getHandles(n,a),m=Math.abs(s-u)||1,v=Math.abs(c-l)||1,x=o.props&&o.props.style||{},b=h()({},x,r),M=(()=>{const t={yProps:"ns-resize",xProps:"ew-resize"};return!n.allowResize&&n.allowDrag?(t.xProps="move",t.yProps="move"):n.allowResize||n.allowDrag||(t.xProps="auto",t.yProps="auto"),t})(),w={style:b,width:m,height:e,cursor:M.yProps},D={style:b,width:e,height:v,cursor:M.xProps},k={top:f&&Object.assign({x:f.x1,y:f.y1},w),bottom:d&&Object.assign({x:d.x1,y:d.y1},w),left:g&&Object.assign({y:g.y1,x:g.x1},D),right:y&&Object.assign({y:y.y1,x:y.x1},D)},A=["top","bottom","left","right"].reduce(((t,n)=>k[n]?t.concat(p().cloneElement(o,Object.assign({key:`${i}-handle-${n}`},k[n]))):t),[]);return A.length?A:null};return{props:n,children:[...p().Children.toArray(e),...(()=>{const{currentDomain:t,cachedBrushDomain:e}=n,o=h()({},n.brushDomain,n.domain),i=vs()(o,e)?h()({},t,o):o,a=(t=>{const{x:e,y:r}=t,{brushStyle:o,brushComponent:i,name:a}=n,u=i.props&&i.props.style,s=n.allowDrag||n.allowResize?"move":"auto";return e[0]!==e[1]&&r[0]!==r[1]?p().cloneElement(i,{key:`${a}-brush`,width:Math.abs(e[1]-e[0])||1,height:Math.abs(r[1]-r[0])||1,x:Math.min(e[0],e[1]),y:Math.min(r[0],r[1]),cursor:s,style:h()({},u,o)}):null})(S(n,i));return a?[a,r(i)]:[]})()]}},zs=t=>{const{props:n,children:e}=Ps(t);return p().createElement(va,n,e)};function Ls(t){return t?Array.isArray(t)?t:[t]:[]}zs.role="container",zs.defaultEvents=t=>{const n={...Ns,...t},e=(t,e)=>(r,o,i,a)=>n.disable||e?.(o)?{}:t(r,{...n,...o},i,a);return[{target:"parent",eventHandlers:{onMouseDown:e(Fs.onMouseDown),onTouchStart:e(Fs.onMouseDown),onGlobalMouseMove:e(Fs.onGlobalMouseMove,(t=>!t.isPanning&&!t.isSelecting)),onGlobalTouchMove:e(Fs.onGlobalMouseMove,(t=>!t.isPanning&&!t.isSelecting)),onGlobalMouseUp:e(Fs.onGlobalMouseUp),onGlobalTouchEnd:e(Fs.onGlobalMouseUp),onGlobalTouchCancel:e(Fs.onGlobalMouseUp)}}]};const Bs={zoom:ba,selection:ka,brush:Ps,cursor:_s,voronoi:Ds};function Us(t,n){return function(r,o){const i=t[r],u=t[o],l=Bs[r],f=Bs[o],h=t=>{const{children:e,props:r}=l(t),{children:o,props:i}=f({...r,children:e});return p().createElement(n,i,o)};return h.displayName=`Victory${r}${o}Container`,h.role="container",h.defaultEvents=t=>(t=>{const n=s()(t,"target"),r=e()(n).map((t=>{let[n,e]=t;const r=e.filter(Boolean);return a()(r)?null:{target:n,eventHandlers:(o=e.map((t=>t.eventHandlers)),o.reduce(((t,n)=>(c()(t,((t,e)=>{const r=n[e];n[e]=r?function(){const n=Ls(r(...arguments)),e=Ls(t(...arguments));return n.concat(e)}:t})),n))))};var o}));return r.filter(Boolean)})([...i.defaultEvents(t),...u.defaultEvents(t)]),h}}const Ws=Us({zoom:Ma,selection:Aa,brush:zs,cursor:Ts,voronoi:ks},va)}(),o}()}));
|
|
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.VictoryCreateContainer=n(require("react")):t.VictoryCreateContainer=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 o=t-e,i=n-r;return o*o+i*i}function o(t,n,e,r,o,i){var a=(r-n)*(o-t),u=(e-t)*(i-n);return Math.abs(a-u)>=33306690738754716e-32*Math.abs(a+u)?a-u:0}function i(t,n,e,r,i,a){return(o(i,a,t,n,e,r)||o(t,n,e,r,i,a)||o(e,r,i,a,t,n))<0}function a(t,n,e,r,o,i){var a=e-t,u=r-n,s=o-t,l=i-n,c=a*a+u*u,f=s*s+l*l,h=.5/(a*l-u*s),d=(l*c-u*f)*h,p=(a*f-s*c)*h;return d*d+p*p}function u(t,n,e,r){if(r-e<=20)for(var o=e+1;o<=r;o++){for(var i=t[o],a=n[i],l=o-1;l>=e&&n[t[l]]>a;)t[l+1]=t[l--];t[l+1]=i}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 o=t.length,i=new Float64Array(2*o),a=0;a<o;a++){var u=t[a];i[2*a]=n(u),i[2*a+1]=r(u)}return new e(i)},e.prototype.update=function(){for(var n=this,e=n.coords,o=n._hullPrev,s=n._hullNext,l=n._hullTri,c=n._hullHash,f=e.length>>1,h=1/0,d=1/0,p=-1/0,g=-1/0,y=0;y<f;y++){var m=e[2*y],v=e[2*y+1];m<h&&(h=m),v<d&&(d=v),m>p&&(p=m),v>g&&(g=v),this._ids[y]=y}for(var x,b,M,w=(h+p)/2,D=(d+g)/2,k=1/0,A=0;A<f;A++){var S=r(w,D,e[2*A],e[2*A+1]);S<k&&(x=A,k=S)}var C=e[2*x],O=e[2*x+1];k=1/0;for(var E=0;E<f;E++)if(E!==x){var j=r(C,O,e[2*E],e[2*E+1]);j<k&&j>0&&(b=E,k=j)}for(var _=e[2*b],T=e[2*b+1],$=1/0,F=0;F<f;F++)if(F!==x&&F!==b){var N=a(C,O,_,T,e[2*F],e[2*F+1]);N<$&&(M=F,$=N)}var P=e[2*M],z=e[2*M+1];if($===1/0){for(var L=0;L<f;L++)this._dists[L]=e[2*L]-e[0]||e[2*L+1]-e[1];u(this._ids,this._dists,0,f-1);for(var B=new Uint32Array(f),U=0,W=0,H=-1/0;W<f;W++){var I=this._ids[W];this._dists[I]>H&&(B[U++]=I,H=this._dists[I])}return this.hull=B.subarray(0,U),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(i(C,O,_,T,P,z)){var R=b,q=_,V=T;b=M,_=P,T=z,M=R,P=q,z=V}var Y=function(t,n,e,r,o,i){var a=e-t,u=r-n,s=o-t,l=i-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}}(C,O,_,T,P,z);this._cx=Y.x,this._cy=Y.y;for(var G=0;G<f;G++)this._dists[G]=r(e[2*G],e[2*G+1],Y.x,Y.y);u(this._ids,this._dists,0,f-1),this._hullStart=x;var X=3;s[x]=o[M]=b,s[b]=o[x]=M,s[M]=o[b]=x,l[x]=0,l[b]=1,l[M]=2,c.fill(-1),c[this._hashKey(C,O)]=x,c[this._hashKey(_,T)]=b,c[this._hashKey(P,z)]=M,this.trianglesLen=0,this._addTriangle(x,b,M,-1,-1,-1);for(var Z=0,K=void 0,Q=void 0;Z<this._ids.length;Z++){var J=this._ids[Z],tt=e[2*J],nt=e[2*J+1];if(!(Z>0&&Math.abs(tt-K)<=t&&Math.abs(nt-Q)<=t)&&(K=tt,Q=nt,J!==x&&J!==b&&J!==M)){for(var et=0,rt=0,ot=this._hashKey(tt,nt);rt<this._hashSize&&(-1===(et=c[(ot+rt)%this._hashSize])||et===s[et]);rt++);for(var it=et=o[et],at=void 0;at=s[it],!i(tt,nt,e[2*it],e[2*it+1],e[2*at],e[2*at+1]);)if((it=at)===et){it=-1;break}if(-1!==it){var ut=this._addTriangle(it,J,s[it],-1,-1,l[it]);l[J]=this._legalize(ut+2),l[it]=ut,X++;for(var st=s[it];at=s[st],i(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,X--,st=at;if(it===et)for(;i(tt,nt,e[2*(at=o[it])],e[2*at+1],e[2*it],e[2*it+1]);)ut=this._addTriangle(at,J,it,-1,l[it],l[at]),this._legalize(ut+2),l[at]=ut,s[it]=it,X--,it=at;this._hullStart=o[J]=it,s[it]=o[st]=J,s[J]=st,c[this._hashKey(tt,nt)]=J,c[this._hashKey(e[2*it],e[2*it+1])]=it}}}this.hull=new Uint32Array(X);for(var lt=0,ct=this._hullStart;lt<X;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,o=e/(Math.abs(e)+Math.abs(r)),(r>0?3-o:1+o)/4*this._hashSize))%this._hashSize;var e,r,o},e.prototype._legalize=function(t){for(var e=this,r=e._triangles,o=e._halfedges,i=e.coords,a=0,u=0;;){var s=o[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],p=r[t],g=r[f],y=r[h];if(b=i[2*d],M=i[2*d+1],w=i[2*p],D=i[2*p+1],k=i[2*g],A=i[2*g+1],S=i[2*y],C=i[2*y+1],O=void 0,E=void 0,j=void 0,_=void 0,T=void 0,$=void 0,F=void 0,N=void 0,(O=b-S)*((_=D-C)*(N=(T=k-S)*T+($=A-C)*$)-(F=(j=w-S)*j+_*_)*$)-(E=M-C)*(j*N-F*T)+(O*O+E*E)*(j*$-_*T)<0){r[t]=y,r[s]=d;var m=o[h];if(-1===m){var v=this._hullStart;do{if(this._hullTri[v]===h){this._hullTri[v]=t;break}v=this._hullPrev[v]}while(v!==this._hullStart)}this._link(t,m),this._link(s,o[u]),this._link(u,h);var x=c+(s+1)%3;a<n.length&&(n[a++]=x)}else{if(0===a)break;t=n[--a]}}else{if(0===a)break;t=n[--a]}}var b,M,w,D,k,A,S,C,O,E,j,_,T,$,F,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,o,i){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,o),this._link(a+2,i),this.trianglesLen+=3,a},e}()},6898:function(t,n,e){"use strict";n.Z=void 0;var r,o=(r=e(3644))&&r.__esModule?r:{default:r};function i(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 o.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 o=2*n[r],i=2*n[r+1],a=2*n[r+2];if((e[a]-e[o])*(e[i+1]-e[o+1])-(e[i]-e[o])*(e[a+1]-e[o+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],i=this.collinear[this.collinear.length-1],a=[e[2*r],e[2*r+1],e[2*i],e[2*i+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 o.default(e)}for(var h=this.halfedges=t.halfedges,d=this.hull=t.hull,p=this.triangles=t.triangles,g=this.inedges.fill(-1),y=this._hullIndex.fill(-1),m=0,v=h.length;m<v;++m){var x=p[m%3==2?m-2:m+1];-1!==h[m]&&-1!==g[x]||(g[x]=m)}for(var b=0,M=d.length;b<M;++b)y[d[b]]=b;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],g[d[0]]=1,2===d.length&&(g[d[1]]=0))},n.neighbors=function(t){var n=[],e=this.inedges,r=this.hull,o=this._hullIndex,i=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=i[s])){var c=r[(o[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,o=e;(r=this._step(e,t,n))>=0&&r!==e&&r!==o;)e=r;return r},n._step=function(t,n,e){var r=this.inedges,o=this.points;if(-1===r[t]||!o.length)return(t+1)%(o.length>>1);var i=t,a=Math.pow(n-o[2*t],2)+Math.pow(e-o[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-o[2*f],2)+Math.pow(e-o[2*f+1],2);h<a&&(a=h,i=f)}return i},t}();n.Z=s,s.from=function(t,n,e,r){return void 0===n&&(n=i),void 0===e&&(e=a),new s(function(t,n,e,r){for(var o=t.length,i=new Float64Array(2*o),a=0;a<o;++a){var u=t[a];i[2*a]=n.call(r,u,a,t),i[2*a+1]=e.call(r,u,a,t)}return i}(t,n,e,r))}},503:function(t,n,e){var r=e(1171),o=e(7838),i=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=o,s.prototype.get=i,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),o=e(7838),i=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=o,s.prototype.get=i,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)}},6649:function(t){t.exports=function(t,n,e,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];n(r,a,e(a),t)}return r}},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,o=null==t?0:t.length;++r<o;)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,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},9559:function(t){t.exports=function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+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),o=e(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];i.call(t,n)&&o(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}},4508:function(t){t.exports=function(t,n,e,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];n(r,a,e(a),t)}return r}},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}},7451:function(t){t.exports=function(t,n,e){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,e)}),n)}},6457:function(t,n,e){var r=e(9559),o=e(3608);t.exports=function t(n,e,i,a,u){var s=-1,l=n.length;for(i||(i=o),u||(u=[]);++s<l;){var c=n[s];e>0&&i(c)?e>1?t(c,e-1,i,a,u):r(u,c):a||(u[u.length]=c)}return u}},320:function(t,n,e){var r=e(4710)();t.exports=r},2446:function(t,n,e){var r=e(320),o=e(7747);t.exports=function(t,n){return t&&r(t,n,o)}},4432:function(t,n,e){var r=e(9026),o=e(3110);t.exports=function(t,n){for(var e=0,i=(n=r(n,t)).length;null!=t&&e<i;)t=t[o(n[e++])];return e&&e==i?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,o=t.length;++r<o;)if(t[r]===n)return r;return-1}},7537:function(t,n,e){var r=e(563),o=e(3474);t.exports=function(t){return o(t)&&"[object Date]"==r(t)}},9070:function(t,n,e){var r=e(7028),o=e(3474);t.exports=function t(n,e,i,a,u){return n===e||(null==n||null==e||!o(n)&&!o(e)?n!=n&&e!=e:r(n,e,i,a,t,u))}},7028:function(t,n,e){var r=e(8708),o=e(8705),i=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]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,g,y,m){var v=s(t),x=s(n),b=v?h:u(t),M=x?h:u(n),w=(b=b==f?d:b)==d,D=(M=M==f?d:M)==d,k=b==M;if(k&&l(t)){if(!l(n))return!1;v=!0,w=!1}if(k&&!w)return m||(m=new r),v||c(t)?o(t,n,e,g,y,m):i(t,n,b,e,g,y,m);if(!(1&e)){var A=w&&p.call(t,"__wrapped__"),S=D&&p.call(n,"__wrapped__");if(A||S){var C=A?t.value():t,O=S?n.value():n;return m||(m=new r),y(C,O,e,g,m)}}return!!k&&(m||(m=new r),a(t,n,e,g,y,m))}},9548:function(t,n,e){var r=e(8708),o=e(9070);t.exports=function(t,n,e,i){var a=e.length,u=a,s=!i;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(i)var p=i(f,h,c,t,n,d);if(!(void 0===p?o(h,f,3,i,d):p))return!1}}return!0}},2229:function(t,n,e){var r=e(563),o=e(3474);t.exports=function(t){return o(t)&&"[object RegExp]"==r(t)}},3472:function(t,n,e){var r=e(758),o=e(5223),i=e(5346),a=e(163),u=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(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,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},758:function(t,n,e){var r=e(9548),o=e(597),i=e(6878);t.exports=function(t){var n=o(t);return 1==n.length&&n[0][2]?i(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:function(t,n,e){var r=e(9070),o=e(9201),i=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=o(e,t);return void 0===a&&a===n?i(e,t):r(n,a,3)}}},8245:function(t,n,e){var r=e(8644),o=e(4432),i=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 o(n,1===t.length?t[0]:t)}:t})):[c];var h=-1;n=r(n,s(i));var d=a(t,(function(t,e,o){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),o=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return o(t,e)}))}},6371:function(t,n,e){var r=e(4432),o=e(6539),i=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)&&o(s,i(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),o=e(4280),i=e(201);t.exports=function(t,n){return i(o(t,n,r),t+"")}},6539:function(t,n,e){var r=e(4132),o=e(9026),i=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=o(n,t)).length,f=c-1,h=t;null!=h&&++l<c;){var d=u(n[l]),p=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(l!=f){var g=h[d];void 0===(p=s?s(g,d,h):void 0)&&(p=a(g)?g:i(n[l+1])?[]:{})}r(h,d,p),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}},7556:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=-1,o=t.length,i=0,a=[];++e<o;){var u=t[e],s=n?n(u):u;if(!e||!r(s,l)){var l=s;a[i++]=0===u?0:u}}return a}},4738:function(t,n,e){var r=e(8644);t.exports=function(t,n){return r(n,(function(n){return[n,t[n]]}))}},6316:function(t,n,e){var r=e(2596),o=e(8644),i=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(i(n))return o(n,t)+"";if(a(n))return s?s.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},1367:function(t,n,e){var r=e(4120),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},9110:function(t){t.exports=function(t){return function(n){return t(n)}}},946:function(t,n,e){var r=e(3273),o=e(5510),i=e(9955),a=e(9914),u=e(6602),s=e(6226);t.exports=function(t,n,e){var l=-1,c=o,f=t.length,h=!0,d=[],p=d;if(e)h=!1,c=i;else if(f>=200){var g=n?null:u(t);if(g)return s(g);h=!1,c=a,p=new r}else p=n?[]:d;t:for(;++l<f;){var y=t[l],m=n?n(y):y;if(y=e||0!==y?y:0,h&&m==m){for(var v=p.length;v--;)if(p[v]===m)continue t;n&&p.push(m),d.push(y)}else c(p,m,e)||(p!==d&&p.push(m),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}},674:function(t){t.exports=function(t){return t}},9026:function(t,n,e){var r=e(163),o=e(726),i=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:o(t,n)?[t]:i(a(t))}},522:function(t,n,e){var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,o=null===t,i=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||o&&u&&l||!e&&l||!i)return 1;if(!o&&!a&&!c&&t<n||c&&e&&i&&!o&&!a||s&&e&&i||!u&&i||!l)return-1}return 0}},9409:function(t,n,e){var r=e(522);t.exports=function(t,n,e){for(var o=-1,i=t.criteria,a=n.criteria,u=i.length,s=e.length;++o<u;){var l=r(i[o],a[o]);if(l)return o>=s?l:l*("desc"==e[o]?-1:1)}return t.index-n.index}},5659:function(t,n,e){var r=e(6649),o=e(4508),i=e(3472),a=e(163);t.exports=function(t,n){return function(e,u){var s=a(e)?r:o,l=n?n():{};return s(e,t,i(u,2),l)}}},4710:function(t){t.exports=function(t){return function(n,e,r){for(var o=-1,i=Object(n),a=r(n),u=a.length;u--;){var s=a[t?u:++o];if(!1===e(i[s],s,i))break}return n}}},6602:function(t){t.exports=function(){}},5976:function(t,n,e){var r=e(4738),o=e(9667),i=e(2900),a=e(3757);t.exports=function(t){return function(n){var e=o(n);return"[object Map]"==e?i(n):"[object Set]"==e?a(n):r(n,t(n))}}},5525:function(t,n,e){var r=e(3743),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:function(t,n,e){var r=e(3273),o=e(1634),i=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 p=-1,g=!0,y=2&e?new r:void 0;for(s.set(t,n),s.set(n,t);++p<c;){var m=t[p],v=n[p];if(a)var x=l?a(v,m,p,n,t,s):a(m,v,p,t,n,s);if(void 0!==x){if(x)continue;g=!1;break}if(y){if(!o(n,(function(t,n){if(!i(y,n)&&(m===t||u(m,t,e,a,s)))return y.push(n)}))){g=!1;break}}else if(m!==v&&!u(m,v,e,a,s)){g=!1;break}}return s.delete(t),s.delete(n),g}},2813:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:function(t,n,e){var r=e(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,i,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:o.call(n,h)))return!1}var d=u.get(t),p=u.get(n);if(d&&p)return d==n&&p==t;var g=!0;u.set(t,n),u.set(n,t);for(var y=s;++f<c;){var m=t[h=l[f]],v=n[h];if(i)var x=s?i(v,m,h,n,t,u):i(m,v,h,t,n,u);if(!(void 0===x?m===v||a(m,v,e,i,u):x)){g=!1;break}y||(y="constructor"==h)}if(g&&!y){var b=t.constructor,M=n.constructor;b==M||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof M&&M instanceof M||(g=!1)}return u.delete(t),u.delete(n),g}},5557:function(t,n,e){var r=e(2645),o=e(4280),i=e(201);t.exports=function(t){return i(o(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),o=e(7747);t.exports=function(t){for(var n=o(t),e=n.length;e--;){var i=n[e],a=t[i];n[e]=[i,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),o=e(5075),i=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)&&(i(t)||o(t))}},3608:function(t,n,e){var r=e(2596),o=e(5075),i=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(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),o=e(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\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&&!o(t))||a.test(t)||!i.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),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():o.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__,o=r(e,t);return o<0?(++this.size,e.push([t,n])):e[o][1]=n,this}},2900:function(t){t.exports=function(){return[]}},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),o=n&&!n.nodeType&&n,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{return i&&i.require&&i.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),o=Math.max;t.exports=function(t,n,e){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,a=-1,u=o(i.length-n,0),s=Array(u);++a<u;)s[a]=i[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=i[a];return l[n]=e(s),r(t,this,l)}}},2373:function(t,n,e){var r=e(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},6226:function(t){t.exports=function(){return[]}},3757:function(t){t.exports=function(){return[]}},201:function(t){t.exports=function(t){return t}},7801:function(t,n,e){var r=e(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,(function(t,e,r,o){n.push(r?o.replace(i,"$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}},4120:function(t){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},5034:function(t,n,e){var r=e(7709),o=e(6987),i=e(5812),a=Math.max,u=Math.min;t.exports=function(t,n,e){var s,l,c,f,h,d,p=0,g=!1,y=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(n){var e=s,r=l;return s=l=void 0,p=n,f=t.apply(r,e)}function x(t){return p=t,h=setTimeout(M,n),g?v(t):f}function b(t){var e=t-d;return void 0===d||e>=n||e<0||y&&t-p>=c}function M(){var t=o();if(b(t))return w(t);h=setTimeout(M,function(t){var e=n-(t-d);return y?u(e,c-(t-p)):e}(t))}function w(t){return h=void 0,m&&s?v(t):(s=l=void 0,f)}function D(){var t=o(),e=b(t);if(s=arguments,l=this,d=t,e){if(void 0===h)return x(d);if(y)return clearTimeout(h),h=setTimeout(M,n),v(d)}return void 0===h&&(h=setTimeout(M,n)),f}return n=i(n)||0,r(e)&&(g=!!e.leading,c=(y="maxWait"in e)?a(i(e.maxWait)||0,n):c,m="trailing"in e?!!e.trailing:m),D.cancel=function(){void 0!==h&&clearTimeout(h),p=0,s=d=l=h=void 0},D.flush=function(){return void 0===h?f:w(o())},D}},1893:function(t,n,e){var r=e(6317),o=e(788),i=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&&i(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 p=f[h],g=t[p];(void 0===g||o(g,u[p])&&!s.call(t,p))&&(t[p]=c[p])}return t}));t.exports=l},9324:function(t,n,e){var r=e(7451),o=e(6317),i=e(5812),a=o((function(t,n,e){return r(t,i(n)||0,e)}));t.exports=a},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):[]}},3105:function(t,n,e){var r=e(2446),o=e(674);t.exports=function(t,n){return t&&r(t,o(n))}},9201:function(t,n,e){var r=e(4432);t.exports=function(t,n,e){var o=null==t?void 0:r(t,n);return void 0===o?e:o}},9056:function(t,n,e){var r=e(8347),o=e(5659),i=Object.prototype.hasOwnProperty,a=o((function(t,n,e){i.call(t,e)?t[e].push(n):r(t,e,[n])}));t.exports=a},5066:function(t,n,e){var r=e(6776),o=e(3096);t.exports=function(t,n){return null!=t&&o(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),o=e(8454);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4295:function(t,n,e){var r=e(7537),o=e(9110),i=e(2348),a=i&&i.isDate,u=a?o(a):r;t.exports=u},4155:function(t,n,e){var r=e(7190),o=e(9667),i=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)||i(t)))return!t.length;var n=o(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),o=e(7709);t.exports=function(t){if(!o(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),o=e(9817),i=e(3474),a=Function.prototype,u=Object.prototype,s=a.toString,l=u.hasOwnProperty,c=s.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var n=o(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),o=e(9110),i=e(2348),a=i&&i.isRegExp,u=a?o(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 o(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,o=n?n.apply(this,r):r[0],i=e.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return e.cache=i.set(o,a)||i,a};return e.cache=new(o.Cache||r),e}o.Cache=r,t.exports=o},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),o=e(6051),i=e(4912);t.exports=function(t,n){return i(t,o(r(n)))}},4143:function(t,n,e){var r=e(8245),o=e(163);t.exports=function(t,n,e,i){return null==t?[]:(o(n)||(n=null==n?[]:[n]),o(e=i?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:function(t,n,e){var r=e(5436),o=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=o},4912:function(t,n,e){var r=e(8644),o=e(3472),i=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=o(n),i(t,e,(function(t,e){return n(t,e[0])}))}},8532:function(t,n,e){var r=e(1600),o=e(3301),i=e(726),a=e(3110);t.exports=function(t){return i(t)?r(a(t)):o(t)}},2829:function(t,n,e){var r=e(7556);t.exports=function(t){return t&&t.length?r(t):[]}},8163:function(t,n,e){var r=e(5034),o=e(7709);t.exports=function(t,n,e){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(e)&&(i="leading"in e?!!e.leading:i,a="trailing"in e?!!e.trailing:a),r(t,n,{leading:i,maxWait:n,trailing:a})}},5812:function(t,n,e){var r=e(1367),o=e(7709),i=e(1995),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=o(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=u.test(t);return e||s.test(t)?l(t.slice(2),e?2:8):a.test(t)?NaN:+t}},4542:function(t,n,e){var r=e(5976)(e(7747));t.exports=r},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):[]}},8961:function(t,n,e){var r=e(3472),o=e(946);t.exports=function(t,n){return t&&t.length?o(t,r(n,2)):[]}},660:function(t,n,e){var r=e(7010),o=0;t.exports=function(t){var n=++o;return r(t)+n}},7491:function(t){var n="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(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(!i(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(!i(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(o&&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)&&!i(t[l[s]],a[l[s]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return i(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 o=e[t];if(void 0!==o)return o.exports;var i=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.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 o={};return function(){"use strict";r.r(o),r.d(o,{createContainer:function(){return Ws},makeCreateContainerFunction:function(){return Us}});var t={};r.r(t),r.d(t,{scaleBand:function(){return st},scaleDiverging:function(){return hi},scaleDivergingLog:function(){return di},scaleDivergingPow:function(){return gi},scaleDivergingSqrt:function(){return yi},scaleDivergingSymlog:function(){return pi},scaleIdentity:function(){return Gn},scaleImplicit:function(){return at},scaleLinear:function(){return Yn},scaleLog:function(){return re},scaleOrdinal:function(){return ut},scalePoint:function(){return ct},scalePow:function(){return he},scaleQuantile:function(){return ke},scaleQuantize:function(){return Ae},scaleRadial:function(){return ye},scaleSequential:function(){return oi},scaleSequentialLog:function(){return ii},scaleSequentialPow:function(){return ui},scaleSequentialQuantile:function(){return li},scaleSequentialSqrt:function(){return si},scaleSequentialSymlog:function(){return ai},scaleSqrt:function(){return de},scaleSymlog:function(){return ue},scaleThreshold:function(){return Se},scaleTime:function(){return ti},scaleUtc:function(){return ni},tickFormat:function(){return qn}});var n=r(4542),e=r.n(n),i=r(4155),a=r.n(i),u=r(9056),s=r.n(u),l=r(3105),c=r.n(l),f=r(1893),h=r.n(f),d=r(9787),p=r.n(d),g=r(9324),y=r.n(g),m=r(8163),v=r.n(m);function x(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function b(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 o=t.concat(e);return x(o)?new Date(Math.max(...o)):Math.max(...o)}function M(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 o=t.concat(e);return x(o)?new Date(Math.min(...o)):Math.min(...o)}function w(t,n,e){const{a:r,d:o,e:i,f:a}=n;return"y"===e?o*t+a:r*t+i}function D(t){return!(!t||void 0===t.identifier)}function k(t){if(D(t.nativeEvent))return;const n=t=>"svg"===t.nodeName?t:t.parentNode?n(t.parentNode):t;return n(t.target)}function A(t,n){if(D(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||k(e));return{x:w(e.clientX,r,"x"),y:w(e.clientY,r,"y")}}function S(t,n){const{horizontal:e}=t,r=t.scale,o=n||{x:r.x.domain(),y:r.y.domain()};return{x:e?[r.y(o.y[0]),r.y(o.y[1])]:[r.x(o.x[0]),r.x(o.x[1])],y:e?[r.x(o.x[0]),r.x(o.x[1])]:[r.y(o.y[0]),r.y(o.y[1])]}}function C(t,n,e,r){const{polar:o,horizontal:i}=t;if(!o)return{x:i?n.x.invert(r):n.x.invert(e),y:i?n.y.invert(e):n.y.invert(r)};const a=t.origin||{x:0,y:0},u=e-a.x,s=r-a.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-s/u,2))),c=(-Math.atan2(s,u)+2*Math.PI)%(2*Math.PI);return{x:n.x.invert(c),y:n.y.invert(l)}}function O(t){const{x1:n,x2:e,y1:r,y2:o,scale:i}=t,a=C(t,i,n,r),u=C(t,i,e,o),s=(t,n)=>[M([t,n]),b([t,n])];return{x:s(a.x,u.x),y:s(a.y,u.y)}}r(8961);var E=r(9602),j=r.n(E),_=(r(1616),r(8999),r(8254)),T=r.n(_),$=r(4143),F=r.n($),N=r(8532),P=r.n(N),z=r(3849),L=r.n(z),B=r(9082),U=r.n(B);function W(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 H(t){const n=t=>void 0!==t,{_x:e,_x1:r,_x0:o,_voronoiX:i,_y:a,_y1:u,_y0:s,_voronoiY:l}=t,c=n(r)?r:e,f=n(u)?u:a,d={x:n(i)?i:c,x0:n(o)?o:e,y:n(l)?l:f,y0:n(s)?s:a};return h()({},d,t)}function I(t,n){const{scale:e,polar:r,horizontal:o}=t,i=H(n),a=t.origin||{x:0,y:0},u=o?e.y(i.y):e.x(i.x),s=o?e.y(i.y0):e.x(i.x0),l=o?e.x(i.x):e.y(i.y),c=o?e.x(i.x0):e.y(i.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 R(t,n){void 0===n&&(n="padding");const e=t[n],r="number"==typeof e?e:0,o="object"==typeof e?e:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function q(t,n){return Z(t)?t(n):t}function V(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>Z(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=q(t[r],n),e)),{}):t}function Y(t){return"number"==typeof t?t*(Math.PI/180):t}function G(t){const{left:n,right:e,top:r,bottom:o}=R(t),{width:i,height:a}=t;return Math.min(i-n-e,a-r-o)/2}function X(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,n){return"x"===n?[Y(t.startAngle||0),Y(t.endAngle||360)]:[t.innerRadius||0,G(t)]}(t,n):function(t,n){const e="x"!==n,r=R(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)}function Z(t){return"function"==typeof t}function K(t){return Z(t)?t:null==t?t=>t:P()(t)}function Q(t,n){if(t)return Object.keys(t).reduce(((e,r)=>(e[r]=n(t[r]),e)),{})}function J(t,n,e,r,o){void 0===e&&(e={}),void 0===r&&(r=[]),void 0===o&&(o=(t,n)=>t.concat(n));const i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(t,u,s)=>t.reduce(((t,r,l)=>{let c=t;const f=r.type&&r.type.role,h=r.props.name||`${f}-${u[l]}`;if(r.props&&r.props.children){const t=Object.assign({},r.props,U()(e,i)),n=r.type&&"stack"===r.type.role&&Z(r.type.getChildren)?r.type.getChildren(t):p().Children.toArray(r.props.children).map((n=>{const e=Object.assign({},n.props,U()(t,i));return p().cloneElement(n,e)})),u=n.map(((t,n)=>`${h}-${n}`)),s=a(n,u,r);c=o(c,s)}else{const t=n(r,h,s);t&&(c=o(c,t))}return c}),r),u=t.filter(d.isValidElement),s=u.map(((t,n)=>n));return a(u,s)}function tt(t,n,e){t=+t,n=+n,e=(o=arguments.length)<2?(n=t,t=0,1):o<3?1:+e;for(var r=-1,o=0|Math.max(0,Math.ceil((n-t)/e)),i=new Array(o);++r<o;)i[r]=t+r*e;return i}function nt(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function et(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 rt extends Map{constructor(t,n=it){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(ot(this,t))}has(t){return super.has(ot(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 ot({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function it(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const at=Symbol("implicit");function ut(){var t=new rt,n=[],e=[],r=at;function o(o){let i=t.get(o);if(void 0===i){if(r!==at)return r;t.set(o,i=n.push(o)-1)}return e[i%e.length]}return o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new rt;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return o},o.range=function(t){return arguments.length?(e=Array.from(t),o):e.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return ut(n,e).unknown(r)},nt.apply(o,arguments),o}function st(){var t,n,e=ut().unknown(void 0),r=e.domain,o=e.range,i=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var e=r().length,f=a<i,h=f?a:i,d=f?i: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 p=tt(e).map((function(n){return h+t*n}));return o(f?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),f()):r()},e.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},e.rangeRound=function(t){return[i,a]=t,i=+i,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 st(r(),[i,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},nt.apply(f(),arguments)}function lt(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return lt(n())},t}function ct(){return lt(st.apply(null,arguments).paddingInner(1))}var ft=Math.sqrt(50),ht=Math.sqrt(10),dt=Math.sqrt(2);function pt(t,n,e){var r,o,i,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(o=t,t=n,n=o),0===(a=gt(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,i=new Array(o=r-e+1);++u<o;)i[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,i=new Array(o=r-e+1);++u<o;)i[u]=(e+u)/a}return r&&i.reverse(),i}function gt(t,n,e){var r=(n-t)/Math.max(0,e),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=ft?10:i>=ht?5:i>=dt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=ft?10:i>=ht?5:i>=dt?2:1)}function yt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=ft?o*=10:i>=ht?o*=5:i>=dt&&(o*=2),n<t?-o:o}function mt(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function vt(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function xt(t){let n,e,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<0?o=n+1:i=n}while(o<i)}return o}return 2!==t.length?(n=mt,e=(n,e)=>mt(t(n),e),r=(n,e)=>t(n)-e):(n=t===mt||t===vt?t:bt,e=t,r=t),{left:o,center:function(t,n,e=0,i=t.length){const a=o(t,n,e,i-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<=0?o=n+1:i=n}while(o<i)}return o}}}function bt(){return 0}function Mt(t){return null===t?NaN:+t}const wt=xt(mt),Dt=wt.right;wt.left,xt(Mt).center;var kt=Dt;function At(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function St(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Ct(){}var Ot=.7,Et=1/Ot,jt="\\s*([+-]?\\d+)\\s*",_t="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$t=/^#([0-9a-f]{3,8})$/,Ft=new RegExp(`^rgb\\(${jt},${jt},${jt}\\)$`),Nt=new RegExp(`^rgb\\(${Tt},${Tt},${Tt}\\)$`),Pt=new RegExp(`^rgba\\(${jt},${jt},${jt},${_t}\\)$`),zt=new RegExp(`^rgba\\(${Tt},${Tt},${Tt},${_t}\\)$`),Lt=new RegExp(`^hsl\\(${_t},${Tt},${Tt}\\)$`),Bt=new RegExp(`^hsla\\(${_t},${Tt},${Tt},${_t}\\)$`),Ut={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 Wt(){return this.rgb().formatHex()}function Ht(){return this.rgb().formatRgb()}function It(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=$t.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Rt(n):3===e?new Gt(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?qt(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?qt(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=Ft.exec(t))?new Gt(n[1],n[2],n[3],1):(n=Nt.exec(t))?new Gt(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Pt.exec(t))?qt(n[1],n[2],n[3],n[4]):(n=zt.exec(t))?qt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Lt.exec(t))?tn(n[1],n[2]/100,n[3]/100,1):(n=Bt.exec(t))?tn(n[1],n[2]/100,n[3]/100,n[4]):Ut.hasOwnProperty(t)?Rt(Ut[t]):"transparent"===t?new Gt(NaN,NaN,NaN,0):null}function Rt(t){return new Gt(t>>16&255,t>>8&255,255&t,1)}function qt(t,n,e,r){return r<=0&&(t=n=e=NaN),new Gt(t,n,e,r)}function Vt(t){return t instanceof Ct||(t=It(t)),t?new Gt((t=t.rgb()).r,t.g,t.b,t.opacity):new Gt}function Yt(t,n,e,r){return 1===arguments.length?Vt(t):new Gt(t,n,e,null==r?1:r)}function Gt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Xt(){return`#${Jt(this.r)}${Jt(this.g)}${Jt(this.b)}`}function Zt(){const t=Kt(this.opacity);return`${1===t?"rgb(":"rgba("}${Qt(this.r)}, ${Qt(this.g)}, ${Qt(this.b)}${1===t?")":`, ${t})`}`}function Kt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Jt(t){return((t=Qt(t))<16?"0":"")+t.toString(16)}function tn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new en(t,n,e,r)}function nn(t){if(t instanceof en)return new en(t.h,t.s,t.l,t.opacity);if(t instanceof Ct||(t=It(t)),!t)return new en;if(t instanceof en)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,o=Math.min(n,e,r),i=Math.max(n,e,r),a=NaN,u=i-o,s=(i+o)/2;return u?(a=n===i?(e-r)/u+6*(e<r):e===i?(r-n)/u+2:(n-e)/u+4,u/=s<.5?i+o:2-i-o,a*=60):u=s>0&&s<1?0:a,new en(a,u,s,t.opacity)}function en(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function rn(t){return(t=(t||0)%360)<0?t+360:t}function on(t){return Math.max(0,Math.min(1,t||0))}function an(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 un(t,n,e,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*n+(4-6*i+3*a)*e+(1+3*t+3*i-3*a)*r+a*o)/6}At(Ct,It,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Wt,formatHex:Wt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nn(this).formatHsl()},formatRgb:Ht,toString:Ht}),At(Gt,Yt,St(Ct,{brighter(t){return t=null==t?Et:Math.pow(Et,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ot:Math.pow(Ot,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Gt(Qt(this.r),Qt(this.g),Qt(this.b),Kt(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:Xt,formatHex:Xt,formatHex8:function(){return`#${Jt(this.r)}${Jt(this.g)}${Jt(this.b)}${Jt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zt,toString:Zt})),At(en,(function(t,n,e,r){return 1===arguments.length?nn(t):new en(t,n,e,null==r?1:r)}),St(Ct,{brighter(t){return t=null==t?Et:Math.pow(Et,t),new en(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ot:Math.pow(Ot,t),new en(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,o=2*e-r;return new Gt(an(t>=240?t-240:t+120,o,r),an(t,o,r),an(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new en(rn(this.h),on(this.s),on(this.l),Kt(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=Kt(this.opacity);return`${1===t?"hsl(":"hsla("}${rn(this.h)}, ${100*on(this.s)}%, ${100*on(this.l)}%${1===t?")":`, ${t})`}`}}));var sn=t=>()=>t;function ln(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):sn(isNaN(t)?n:t)}var cn=function t(n){var e=function(t){return 1==(t=+t)?ln: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):sn(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=Yt(t)).r,(n=Yt(n)).r),o=e(t.g,n.g),i=e(t.b,n.b),a=ln(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=o(n),t.b=i(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function fn(t){return function(n){var e,r,o=n.length,i=new Array(o),a=new Array(o),u=new Array(o);for(e=0;e<o;++e)r=Yt(n[e]),i[e]=r.r||0,a[e]=r.g||0,u[e]=r.b||0;return i=t(i),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=u(t),r+""}}}function hn(t,n){var e,r=n?n.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(e=0;e<o;++e)i[e]=bn(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<o;++e)a[e]=i[e](t);return a}}function dn(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function pn(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function gn(t,n){var e,r={},o={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=bn(t[e],n[e]):o[e]=n[e];return function(t){for(e in r)o[e]=r[e](t);return o}}fn((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),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<n-1?t[r+2]:2*i-o;return un((e-r/n)*n,a,o,i,u)}})),fn((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),o=t[(r+n-1)%n],i=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return un((e-r/n)*n,o,i,a,u)}}));var yn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mn=new RegExp(yn.source,"g");function vn(t,n){var e,r,o,i=yn.lastIndex=mn.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=yn.exec(t))&&(r=mn.exec(n));)(o=r.index)>i&&(o=n.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:pn(e,r)})),i=mn.lastIndex;return i<n.length&&(o=n.slice(i),u[a]?u[a]+=o:u[++a]=o),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 xn(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,o=n.slice();return function(i){for(e=0;e<r;++e)o[e]=t[e]*(1-i)+n[e]*i;return o}}function bn(t,n){var e,r,o=typeof n;return null==n||"boolean"===o?sn(n):("number"===o?pn:"string"===o?(e=It(n))?(n=e,cn):vn:n instanceof It?cn:n instanceof Date?dn:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?hn:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?gn:pn:xn))(t,n)}function Mn(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function wn(t){return+t}var Dn=[0,1];function kn(t){return t}function An(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function Sn(t,n,e){var r=t[0],o=t[1],i=n[0],a=n[1];return o<r?(r=An(o,r),i=e(a,i)):(r=An(r,o),i=e(i,a)),function(t){return i(r(t))}}function Cn(t,n,e){var r=Math.min(t.length,n.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)o[a]=An(t[a],t[a+1]),i[a]=e(n[a],n[a+1]);return function(n){var e=kt(t,n,1,r)-1;return i[e](o[e](n))}}function On(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function En(){var t,n,e,r,o,i,a=Dn,u=Dn,s=bn,l=kn;function c(){var t,n,e,s=Math.min(a.length,u.length);return l!==kn&&(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?Cn:Sn,o=i=null,f}function f(n){return null==n||isNaN(n=+n)?e:(o||(o=r(a.map(t),u,s)))(t(l(n)))}return f.invert=function(e){return l(n((i||(i=r(u,a.map(t),pn)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,wn),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=Mn,c()},f.clamp=function(t){return arguments.length?(l=!!t||kn,c()):l!==kn},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 jn(){return En()(kn,kn)}var _n,Tn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $n(t){if(!(n=Tn.exec(t)))throw new Error("invalid format: "+t);var n;return new Fn({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 Fn(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 Nn(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 Pn(t){return(t=Nn(Math.abs(t)))?t[1]:NaN}function zn(t,n){var e=Nn(t,n);if(!e)return t+"";var r=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}$n.prototype=Fn.prototype,Fn.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 Ln={"%":(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)=>zn(100*t,n),r:zn,s:function(t,n){var e=Nn(t,n);if(!e)return t+"";var r=e[0],o=e[1],i=o-(_n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Nn(t,Math.max(0,n+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Bn(t){return t}var Un,Wn,Hn,In=Array.prototype.map,Rn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qn(t,n,e,r){var o,i=yt(t,n,e);switch((r=$n(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(o=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Pn(n)/3)))-Pn(Math.abs(t)))}(i,a))||(r.precision=o),Hn(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Pn(n)-Pn(t))+1}(i,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-Pn(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return Wn(r)}function Vn(t){var n=t.domain;return t.ticks=function(t){var e=n();return pt(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return qn(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,o,i=n(),a=0,u=i.length-1,s=i[a],l=i[u],c=10;for(l<s&&(o=s,s=l,l=o,o=a,a=u,u=o);c-- >0;){if((o=gt(s,l,e))===r)return i[a]=s,i[u]=l,n(i);if(o>0)s=Math.floor(s/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,l=Math.floor(l*o)/o}r=o}return t},t}function Yn(){var t=jn();return t.copy=function(){return On(t,Yn())},nt.apply(t,arguments),Vn(t)}function Gn(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,wn),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return Gn(t).unknown(n)},t=arguments.length?Array.from(t,wn):[0,1],Vn(e)}function Xn(t,n){var e,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(e=r,r=o,o=e,e=i,i=a,a=e),t[r]=n.floor(i),t[o]=n.ceil(a),t}function Zn(t){return Math.log(t)}function Kn(t){return Math.exp(t)}function Qn(t){return-Math.log(-t)}function Jn(t){return-Math.exp(-t)}function te(t){return isFinite(t)?+("1e"+t):t<0?0:t}function ne(t){return(n,e)=>-t(-n,e)}function ee(t){const n=t(Zn,Kn),e=n.domain;let r,o,i=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)}(i),o=function(t){return 10===t?te:t===Math.E?Math.exp:n=>Math.pow(t,n)}(i),e()[0]<0?(r=ne(r),o=ne(o),t(Qn,Jn)):t(Zn,Kn),n}return n.base=function(t){return arguments.length?(i=+t,a()):i},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 p=[];if(!(i%1)&&h-f<d){if(f=Math.floor(f),h=Math.ceil(h),a>0){for(;f<=h;++f)for(l=1;l<i;++l)if(c=f<0?l/o(-f):l*o(f),!(c<a)){if(c>u)break;p.push(c)}}else for(;f<=h;++f)for(l=i-1;l>=1;--l)if(c=f>0?l/o(-f):l*o(f),!(c<a)){if(c>u)break;p.push(c)}2*p.length<d&&(p=pt(a,u,d))}else p=pt(f,h,Math.min(h-f,d)).map(o);return s?p.reverse():p},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===i?"s":","),"function"!=typeof e&&(i%1||null!=(e=$n(e)).precision||(e.trim=!0),e=Wn(e)),t===1/0)return e;const a=Math.max(1,i*t/n.ticks().length);return t=>{let n=t/o(Math.round(r(t)));return n*i<i-.5&&(n*=i),n<=a?e(t):""}},n.nice=()=>e(Xn(e(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),n}function re(){const t=ee(En()).domain([1,10]);return t.copy=()=>On(t,re()).base(t.base()),nt.apply(t,arguments),t}function oe(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function ie(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function ae(t){var n=1,e=t(oe(n),ie(n));return e.constant=function(e){return arguments.length?t(oe(n=+e),ie(n)):n},Vn(e)}function ue(){var t=ae(En());return t.copy=function(){return On(t,ue()).constant(t.constant())},nt.apply(t,arguments)}function se(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function le(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ce(t){return t<0?-t*t:t*t}function fe(t){var n=t(kn,kn),e=1;function r(){return 1===e?t(kn,kn):.5===e?t(le,ce):t(se(e),se(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},Vn(n)}function he(){var t=fe(En());return t.copy=function(){return On(t,he()).exponent(t.exponent())},nt.apply(t,arguments),t}function de(){return he.apply(null,arguments).exponent(.5)}function pe(t){return Math.sign(t)*t*t}function ge(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function ye(){var t,n=jn(),e=[0,1],r=!1;function o(e){var o=ge(n(e));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return n.invert(pe(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((e=Array.from(t,wn)).map(pe)),o):e.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(r=!!t,o):r},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return ye(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},nt.apply(o,arguments),Vn(o)}function me(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 o of t)null!=(o=n(o,++r,t))&&(e<o||void 0===e&&o>=o)&&(e=o)}return e}function ve(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 o of t)null!=(o=n(o,++r,t))&&(e>o||void 0===e&&o>=o)&&(e=o)}return e}function xe(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function be(t,n,e=0,r=t.length-1,o){for(o=void 0===o?xe:function(t=mt){if(t===mt)return xe;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))}}(o);r>e;){if(r-e>600){const i=r-e+1,a=n-e+1,u=Math.log(i),s=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*s*(i-s)/i)*(a-i/2<0?-1:1);be(t,n,Math.max(e,Math.floor(n-a*s/i+l)),Math.min(r,Math.floor(n+(i-a)*s/i+l)),o)}const i=t[n];let a=e,u=r;for(Me(t,e,n),o(t[r],i)>0&&Me(t,e,r);a<u;){for(Me(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[e],i)?Me(t,e,u):(++u,Me(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function Me(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function we(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 ve(t);if(n>=1)return me(t);var r,o=(r-1)*n,i=Math.floor(o),a=me(be(t,i).subarray(0,i+1));return a+(ve(t.subarray(i+1))-a)*(o-i)}}function De(t,n,e=Mt){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,o=(r-1)*n,i=Math.floor(o),a=+e(t[i],i,t);return a+(+e(t[i+1],i+1,t)-a)*(o-i)}}function ke(){var t,n=[],e=[],r=[];function o(){var t=0,o=Math.max(1,e.length);for(r=new Array(o-1);++t<o;)r[t-1]=De(n,t/o);return i}function i(n){return null==n||isNaN(n=+n)?t:e[kt(r,n)]}return i.invertExtent=function(t){var o=e.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:n[0],o<r.length?r[o]:n[n.length-1]]},i.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(mt),o()},i.range=function(t){return arguments.length?(e=Array.from(t),o()):e.slice()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return ke().domain(n).range(e).unknown(t)},nt.apply(i,arguments)}function Ae(){var t,n=0,e=1,r=1,o=[.5],i=[0,1];function a(n){return null!=n&&n<=n?i[kt(o,n,0,r)]:t}function u(){var t=-1;for(o=new Array(r);++t<r;)o[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=(i=Array.from(t)).length-1,u()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[n,o[0]]:a>=r?[o[r-1],e]:[o[a-1],o[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Ae().domain([n,e]).range(i).unknown(t)},nt.apply(Vn(a),arguments)}function Se(){var t,n=[.5],e=[0,1],r=1;function o(o){return null!=o&&o<=o?e[kt(n,o,0,r)]:t}return o.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),o):n.slice()},o.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),o):e.slice()},o.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return Se().domain(n).range(e).unknown(t)},nt.apply(o,arguments)}Un=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Bn:(n=In.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,u=n[0],s=0;o>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),i.push(t.substring(o-=u,o+u)),!((s+=u+1)>r));)u=n[a=(a+1)%n.length];return i.reverse().join(e)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Bn:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(In.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=$n(t)).fill,e=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,m=t.trim,v=t.type;"n"===v?(g=!0,v="g"):Ln[v]||(void 0===y&&(y=12),m=!0,v="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var x="$"===h?o:"#"===h&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",b="$"===h?i:/[%p]/.test(v)?s:"",M=Ln[v],w=/[defgprs%]/.test(v);function D(t){var o,i,s,h=x,D=b;if("c"===v)D=M(t)+D,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:M(Math.abs(t),y),m&&(t=function(t){t:for(var n,e=t.length,r=1,o=-1;r<e;++r)switch(t[r]){case".":o=n=r;break;case"0":0===o&&(o=r),n=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t}(t)),k&&0==+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:l:"-"===f||"("===f?"":f)+h,D=("s"===v?Rn[8+_n/3]:"")+D+(k&&"("===f?")":""),w)for(o=-1,i=t.length;++o<i;)if(48>(s=t.charCodeAt(o))||s>57){D=(46===s?a+t.slice(o+1):t.slice(o))+D,t=t.slice(0,o);break}}g&&!d&&(t=r(t,1/0));var A=h.length+t.length+D.length,S=A<p?new Array(p-A+1).join(n):"";switch(g&&d&&(t=r(S+t,S.length?p-D.length:1/0),S=""),e){case"<":t=h+t+D+S;break;case"=":t=h+S+t+D;break;case"^":t=S.slice(0,A=S.length>>1)+h+t+D+S.slice(A);break;default:t=S+h+t+D}return u(t)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),D.toString=function(){return t+""},D}return{format:f,formatPrefix:function(t,n){var e=f(((t=$n(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Pn(n)/3))),o=Math.pow(10,-r),i=Rn[8+r/3];return function(t){return e(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),Wn=Un.format,Hn=Un.formatPrefix;const Ce=1e3,Oe=6e4,Ee=36e5,je=864e5,_e=6048e5,Te=31536e6;var $e=new Date,Fe=new Date;function Ne(t,n,e,r){function o(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return o.floor=function(n){return t(n=new Date(+n)),n},o.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},o.round=function(t){var n=o(t),e=o.ceil(t);return t-n<e-t?n:e},o.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},o.range=function(e,r,i){var a,u=[];if(e=o.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return u;do{u.push(a=new Date(+e)),n(e,i),t(e)}while(a<e&&e<r);return u},o.filter=function(e){return Ne((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&&(o.count=function(n,r){return $e.setTime(+n),Fe.setTime(+r),t($e),t(Fe),Math.floor(e($e,Fe))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(n){return r(n)%t==0}:function(n){return o.count(0,n)%t==0}):o:null}),o}var Pe=Ne((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Pe.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ne((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Pe:null};var ze=Pe,Le=(Pe.range,Ne((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Ce)}),(function(t,n){return(n-t)/Ce}),(function(t){return t.getUTCSeconds()}))),Be=Le,Ue=(Le.range,Ne((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ce)}),(function(t,n){t.setTime(+t+n*Oe)}),(function(t,n){return(n-t)/Oe}),(function(t){return t.getMinutes()}))),We=Ue,He=(Ue.range,Ne((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ce-t.getMinutes()*Oe)}),(function(t,n){t.setTime(+t+n*Ee)}),(function(t,n){return(n-t)/Ee}),(function(t){return t.getHours()}))),Ie=He,Re=(He.range,Ne((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Oe)/je),(t=>t.getDate()-1))),qe=Re;function Ve(t){return Ne((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())*Oe)/_e}))}Re.range;var Ye=Ve(0),Ge=Ve(1),Xe=Ve(2),Ze=Ve(3),Ke=Ve(4),Qe=Ve(5),Je=Ve(6),tr=(Ye.range,Ge.range,Xe.range,Ze.range,Ke.range,Qe.range,Je.range,Ne((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()}))),nr=tr,er=(tr.range,Ne((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()})));er.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ne((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 rr=er,or=(er.range,Ne((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Oe)}),(function(t,n){return(n-t)/Oe}),(function(t){return t.getUTCMinutes()}))),ir=or,ar=(or.range,Ne((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Ee)}),(function(t,n){return(n-t)/Ee}),(function(t){return t.getUTCHours()}))),ur=ar,sr=(ar.range,Ne((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/je}),(function(t){return t.getUTCDate()-1}))),lr=sr;function cr(t){return Ne((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)/_e}))}sr.range;var fr=cr(0),hr=cr(1),dr=cr(2),pr=cr(3),gr=cr(4),yr=cr(5),mr=cr(6),vr=(fr.range,hr.range,dr.range,pr.range,gr.range,yr.range,mr.range,Ne((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()}))),xr=vr,br=(vr.range,Ne((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()})));br.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ne((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 Mr=br;function wr(t,n,e,r,o,i){const a=[[Be,1,Ce],[Be,5,5e3],[Be,15,15e3],[Be,30,3e4],[i,1,Oe],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Ee],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,je],[r,2,1728e5],[e,1,_e],[n,1,2592e6],[n,3,7776e6],[t,1,Te]];function u(n,e,r){const o=Math.abs(e-n)/r,i=xt((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(yt(n/Te,e/Te,r));if(0===i)return ze.every(Math.max(yt(n,e,r),1));const[u,s]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(s)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const o=e&&"function"==typeof e.range?e:u(t,n,e),i=o?o.range(t,+n+1):[];return r?i.reverse():i},u]}br.range;const[Dr,kr]=wr(Mr,xr,fr,lr,ur,ir),[Ar,Sr]=wr(rr,nr,Ye,qe,Ie,We);function Cr(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 Or(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 Er(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var jr,_r,Tr,$r={"-":"",_:" ",0:"0"},Fr=/^\s*\d+/,Nr=/^%/,Pr=/[\\^$*+?|[\]().{}]/g;function zr(t,n,e){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<e?new Array(e-i+1).join(n)+o:o)}function Lr(t){return t.replace(Pr,"\\$&")}function Br(t){return new RegExp("^(?:"+t.map(Lr).join("|")+")","i")}function Ur(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function Wr(t,n,e){var r=Fr.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Hr(t,n,e){var r=Fr.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Ir(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Rr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function qr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Vr(t,n,e){var r=Fr.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Yr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Gr(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 Xr(t,n,e){var r=Fr.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Zr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Kr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Qr(t,n,e){var r=Fr.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Jr(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function to(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function no(t,n,e){var r=Fr.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function eo(t,n,e){var r=Fr.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ro(t,n,e){var r=Fr.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function oo(t,n,e){var r=Nr.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function io(t,n,e){var r=Fr.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function ao(t,n,e){var r=Fr.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function uo(t,n){return zr(t.getDate(),n,2)}function so(t,n){return zr(t.getHours(),n,2)}function lo(t,n){return zr(t.getHours()%12||12,n,2)}function co(t,n){return zr(1+qe.count(rr(t),t),n,3)}function fo(t,n){return zr(t.getMilliseconds(),n,3)}function ho(t,n){return fo(t,n)+"000"}function po(t,n){return zr(t.getMonth()+1,n,2)}function go(t,n){return zr(t.getMinutes(),n,2)}function yo(t,n){return zr(t.getSeconds(),n,2)}function mo(t){var n=t.getDay();return 0===n?7:n}function vo(t,n){return zr(Ye.count(rr(t)-1,t),n,2)}function xo(t){var n=t.getDay();return n>=4||0===n?Ke(t):Ke.ceil(t)}function bo(t,n){return t=xo(t),zr(Ke.count(rr(t),t)+(4===rr(t).getDay()),n,2)}function Mo(t){return t.getDay()}function wo(t,n){return zr(Ge.count(rr(t)-1,t),n,2)}function Do(t,n){return zr(t.getFullYear()%100,n,2)}function ko(t,n){return zr((t=xo(t)).getFullYear()%100,n,2)}function Ao(t,n){return zr(t.getFullYear()%1e4,n,4)}function So(t,n){var e=t.getDay();return zr((t=e>=4||0===e?Ke(t):Ke.ceil(t)).getFullYear()%1e4,n,4)}function Co(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+zr(n/60|0,"0",2)+zr(n%60,"0",2)}function Oo(t,n){return zr(t.getUTCDate(),n,2)}function Eo(t,n){return zr(t.getUTCHours(),n,2)}function jo(t,n){return zr(t.getUTCHours()%12||12,n,2)}function _o(t,n){return zr(1+lr.count(Mr(t),t),n,3)}function To(t,n){return zr(t.getUTCMilliseconds(),n,3)}function $o(t,n){return To(t,n)+"000"}function Fo(t,n){return zr(t.getUTCMonth()+1,n,2)}function No(t,n){return zr(t.getUTCMinutes(),n,2)}function Po(t,n){return zr(t.getUTCSeconds(),n,2)}function zo(t){var n=t.getUTCDay();return 0===n?7:n}function Lo(t,n){return zr(fr.count(Mr(t)-1,t),n,2)}function Bo(t){var n=t.getUTCDay();return n>=4||0===n?gr(t):gr.ceil(t)}function Uo(t,n){return t=Bo(t),zr(gr.count(Mr(t),t)+(4===Mr(t).getUTCDay()),n,2)}function Wo(t){return t.getUTCDay()}function Ho(t,n){return zr(hr.count(Mr(t)-1,t),n,2)}function Io(t,n){return zr(t.getUTCFullYear()%100,n,2)}function Ro(t,n){return zr((t=Bo(t)).getUTCFullYear()%100,n,2)}function qo(t,n){return zr(t.getUTCFullYear()%1e4,n,4)}function Vo(t,n){var e=t.getUTCDay();return zr((t=e>=4||0===e?gr(t):gr.ceil(t)).getUTCFullYear()%1e4,n,4)}function Yo(){return"+0000"}function Go(){return"%"}function Xo(t){return+t}function Zo(t){return Math.floor(+t/1e3)}function Ko(t){return new Date(t)}function Qo(t){return t instanceof Date?+t:+new Date(+t)}function Jo(t,n,e,r,o,i,a,u,s,l){var c=jn(),f=c.invert,h=c.domain,d=l(".%L"),p=l(":%S"),g=l("%I:%M"),y=l("%I %p"),m=l("%a %d"),v=l("%b %d"),x=l("%B"),b=l("%Y");function M(t){return(s(t)<t?d:u(t)<t?p:a(t)<t?g:i(t)<t?y:r(t)<t?o(t)<t?m:v:e(t)<t?x:b)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,Qo)):h().map(Ko)},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?M: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(Xn(e,t)):c},c.copy=function(){return On(c,Jo(t,n,e,r,o,i,a,u,s,l))},c}function ti(){return nt.apply(Jo(Ar,Sr,rr,nr,Ye,qe,Ie,We,Be,_r).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ni(){return nt.apply(Jo(Dr,kr,Mr,xr,fr,lr,ur,ir,Be,Tr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ei(){var t,n,e,r,o,i=0,a=1,u=kn,s=!1;function l(n){return null==n||isNaN(n=+n)?o: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(o){return arguments.length?([i,a]=o,t=r(i=+i),n=r(a=+a),e=t===n?0:1/(n-t),l):[i,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(bn),l.rangeRound=c(Mn),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return r=o,t=o(i),n=o(a),e=t===n?0:1/(n-t),l}}function ri(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function oi(){var t=Vn(ei()(kn));return t.copy=function(){return ri(t,oi())},et.apply(t,arguments)}function ii(){var t=ee(ei()).domain([1,10]);return t.copy=function(){return ri(t,ii()).base(t.base())},et.apply(t,arguments)}function ai(){var t=ae(ei());return t.copy=function(){return ri(t,ai()).constant(t.constant())},et.apply(t,arguments)}function ui(){var t=fe(ei());return t.copy=function(){return ri(t,ui()).exponent(t.exponent())},et.apply(t,arguments)}function si(){return ui.apply(null,arguments).exponent(.5)}function li(){var t=[],n=kn;function e(e){if(null!=e&&!isNaN(e=+e))return n((kt(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(mt),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)=>we(t,r/n)))},e.copy=function(){return li(n).domain(t)},et.apply(e,arguments)}function ci(t,n){void 0===n&&(n=t,t=bn);for(var e=0,r=n.length-1,o=n[0],i=new Array(r<0?0:r);e<r;)i[e]=t(o,o=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[n](t-n)}}function fi(){var t,n,e,r,o,i,a,u=0,s=.5,l=1,c=1,f=kn,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-n)*(c*t<c*n?r:o),f(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,o;return arguments.length?([e,r,o]=n,f=ci(t,[e,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,s,l]=a,t=i(u=+u),n=i(s=+s),e=i(l=+l),r=t===n?0:.5/(n-t),o=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=p(bn),d.rangeRound=p(Mn),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(u),n=a(s),e=a(l),r=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),c=n<t?-1:1,d}}function hi(){var t=Vn(fi()(kn));return t.copy=function(){return ri(t,hi())},et.apply(t,arguments)}function di(){var t=ee(fi()).domain([.1,1,10]);return t.copy=function(){return ri(t,di()).base(t.base())},et.apply(t,arguments)}function pi(){var t=ae(fi());return t.copy=function(){return ri(t,pi()).constant(t.constant())},et.apply(t,arguments)}function gi(){var t=fe(fi());return t.copy=function(){return ri(t,gi()).exponent(t.exponent())},et.apply(t,arguments)}function yi(){return gi.apply(null,arguments).exponent(.5)}jr=function(t){var n=t.dateTime,e=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,l=Br(o),c=Ur(o),f=Br(i),h=Ur(i),d=Br(a),p=Ur(a),g=Br(u),y=Ur(u),m=Br(s),v=Ur(s),x={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:uo,e:uo,f:ho,g:ko,G:So,H:so,I:lo,j:co,L:fo,m:po,M:go,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Xo,s:Zo,S:yo,u:mo,U:vo,V:bo,w:Mo,W:wo,x:null,X:null,y:Do,Y:Ao,Z:Co,"%":Go},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Oo,e:Oo,f:$o,g:Ro,G:Vo,H:Eo,I:jo,j:_o,L:To,m:Fo,M:No,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Xo,s:Zo,S:Po,u:zo,U:Lo,V:Uo,w:Wo,W:Ho,x:null,X:null,y:Io,Y:qo,Z:Yo,"%":Go},M={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=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=m.exec(n.slice(e));return r?(t.m=v.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return k(t,n,e,r)},d:Kr,e:Kr,f:ro,g:Yr,G:Vr,H:Jr,I:Jr,j:Qr,L:eo,m:Zr,M:to,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:Xr,Q:io,s:ao,S:no,u:Hr,U:Ir,V:Rr,w:Wr,W:qr,x:function(t,n,r){return k(t,e,n,r)},X:function(t,n,e){return k(t,r,n,e)},y:Yr,Y:Vr,Z:Gr,"%":oo};function w(t,n){return function(e){var r,o,i,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!=(o=$r[r=t.charAt(++u)])?r=t.charAt(++u):o="e"===r?" ":"0",(i=n[r])&&(r=i(e,o)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function D(t,n){return function(e){var r,o,i=Er(1900,void 0,1);if(k(i,t,e+="",0)!=e.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(n&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Or(Er(i.y,0,1))).getUTCDay(),r=o>4||0===o?hr.ceil(r):hr(r),r=lr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Cr(Er(i.y,0,1))).getDay(),r=o>4||0===o?Ge.ceil(r):Ge(r),r=qe.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Or(Er(i.y,0,1)).getUTCDay():Cr(Er(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Or(i)):Cr(i)}}function k(t,n,e,r){for(var o,i,a=0,u=n.length,s=e.length;a<u;){if(r>=s)return-1;if(37===(o=n.charCodeAt(a++))){if(o=n.charAt(a++),!(i=M[o in $r?n.charAt(a++):o])||(r=i(t,e,r))<0)return-1}else if(o!=e.charCodeAt(r++))return-1}return r}return x.x=w(e,x),x.X=w(r,x),x.c=w(n,x),b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),{format:function(t){var n=w(t+="",x);return n.toString=function(){return t},n},parse:function(t){var n=D(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=D(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"]}),_r=jr.format,jr.parse,Tr=jr.utcFormat,jr.utcParse;const mi=["linear","time","log","sqrt"];function vi(t){return"function"==typeof t?Z(t.copy)&&Z(t.domain)&&Z(t.range):"string"==typeof t&&mi.includes(t)}function xi(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function bi(t,n){if(!t.data)return"linear";const e=K(t[n]);return x(t.data.map((t=>{const r=L()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function Mi(n){if(vi(n)){const r=`scale${e=n,e&&e[0].toUpperCase()+e.slice(1)}`;return t[r]()}var e;return Yn()}function wi(t,n){return function(t,n){if(!xi(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=Di.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}(e)}(t,n)||bi(t,n)}const Di=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function ki(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function Ai(t,n){return ki(t)?t.reduce(((t,e,r)=>{let o=e;return n&&n[r]&&(o=Ai(e)),t[r]=o,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function Si(t){return ki(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?Ai(t,{errorX:!0,errorY:!0}):t;var n}function Ci(t){return ki(t)?t.size:t.length}function Oi(t,n){const e=(L()(t.domain)?t.domain[n]:t.domain)||function(t,n){const e=function(t,n){if(!xi(t,n))return;const e=t.scale[n]||t.scale;return vi(e)?Z(e)?e:Mi(e):void 0}(t,n);return e?"string"==typeof e?Mi(e):e:Mi(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 x(e)?"time":"linear"}(t,n)||bi(t,n))}(t,n).domain(),r=t.samples||1,o=Math.max(...e),i=Math.min(...e),a=function(t,n,e){const r=n?t:0;let o=n||t;o||(o=0);const i=o-r,a=Math.abs(i),u=i/a||1,s=e||1,l=Math.max(Math.ceil(a/s),0);return Array.from(Array(l),((t,n)=>r+n*u*s))}(i,o,(o-i)/r);return a[a.length-1]===o?a:a.concat(o)}function Ei(t,n,e){if(void 0===e&&(e="ascending"),!n)return t;let r=n;"x"!==n&&"y"!==n||(r=`_${n}`);const o="ascending"===e?"asc":"desc";return F()(t,r,o)}function ji(t,n){const e=function(t,n){const{tickValues:e,tickFormat:r}=t;let o;return o=e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[],o.filter((t=>"string"==typeof t))}(t,n),r=Fi(t,n),o=function(t,n){if(!Array.isArray(t.data)&&!ki(t.data))return[];const e=K(void 0===t[n]?n:t[n]);return Ei(t.data.reduce(((t,n)=>(t.push(Si(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=Si(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),i=j()([...e,...r,...o]);return 0===i.length?null:i.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function _i(t,n,e){if(!Array.isArray(t)&&!ki(t)||Ci(t)<1)return[];const r=["x","y","y0"],o=(e=Array.isArray(e)?e:r).reduce(((t,e)=>{var r;return t[e]=K(void 0!==n[r=e]?n[r]:r),t}),{}),i=T()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let u;!1===i&&(u={x:-1!==e.indexOf("x")?ji(n,"x"):void 0,y:-1!==e.indexOf("y")?ji(n,"y"):void 0,y0:-1!==e.indexOf("y0")?ji(n,"y"):void 0});const s=i?t:t.reduce(((t,n,r)=>{const i=Si(n),s={x:r,y:i},l=e.reduce(((t,n)=>{const e=o[n](i),r=void 0!==e?e:s[n];return void 0!==r&&("string"==typeof r&&u[n]?(t[`${n}Name`]=r,t[`_${n}`]=u[n][r]):t[`_${n}`]=r),t}),{}),c=Object.assign({},l,i);return a()(c)||t.push(c),t}),[]),l=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:wi(n,"x"),y:wi(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;const o=(t,n)=>"log"!==r[n]||0!==t[`_${n}`];return t.map((t=>o(t,"x")&&o(t,"y")&&o(t,"y0")?t:(t=>{const n=o(t,"x")?t._x:e,r=o(t,"y")?t._y:e,i=o(t,"y0")?t._y0:e;return Object.assign({},t,{_x:n,_y:r,_y0:i})})(t)))}(Ei(s,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=Z(o=t.eventKey)?o:null==o?()=>{}:P()(o);var o;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,l)}function Ti(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function $i(t){return t.data?_i(t.data,t):_i(function(t){const n=Oi(t,"x"),e=Oi(t,"y");return n.map(((t,n)=>({x:t,y:e[n]})))}(t),t)}function Fi(t,n){if(!t.categories)return[];const e=Ti(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?r.filter((t=>void 0!==t)):[]}function Ni(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=p().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)}var Pi=r(4295),zi=r.n(Pi),Li=r(2829),Bi=r.n(Li);function Ui(t,n,e){void 0===e&&(e="min");const r=t=>"max"===e?Math.max(...t):Math.min(...t),o="max"===e?-1/0:1/0;let i=!1;const a=t.flat().reduce(((t,e)=>{const o=void 0!==e[`_${n}0`]?e[`_${n}0`]:e[`_${n}`],a=void 0!==e[`_${n}1`]?e[`_${n}1`]:e[`_${n}`],u=r([o,a]);return i=i||o instanceof Date||a instanceof Date,r([t,u])}),o);return i?new Date(a):a}function Wi(t,n){const e=Z(t)?t:Ii,r=Z(n)?n:Hi;return(t,n)=>{const o=function(t,n){const e=Vi(t,n),r=qi(t,n);return L()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?Ri(e,r):void 0}(t,n);if(o)return r(o,t,n);const i=Ti(t,n),a=i?function(t,n,e){const r=e||Ti(t,n),{polar:o,startAngle:i=0,endAngle:a=360}=t;if(!r)return;const u=Vi(t,n),s=qi(t,n),l=(d=r,Array.isArray(d)&&d.some((t=>"string"==typeof t))?Fi(t,n):[]),c=0===l.length?null:l.reduce(((t,n,e)=>(t[n]=e+1,t)),{}),f=c?r.map((t=>c[t])):r,h=Ri(void 0!==u?u:M(f),void 0!==s?s:b(f));var d;return o&&"x"===n&&360===Math.abs(i-a)?Yi(h,f):h}(t,n,i):e(t,n);return a?r(a,t,n):void 0}}function Hi(t,n,e){return function(t,n,e){return"log"!==wi(n,e)?t:(t=>{const n=t[0]<0||t[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER;return[0===t[0]?n:t[0],0===t[1]?n:t[1]]})(t)}(function(t,n,e){if(!n.domainPadding)return t;const r=Vi(n,e),o=qi(n,e),i=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return L()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!i.left&&!i.right)return t;const a=M(t),u=b(t),s=function(t,n){return n?"x"===t?"y":"x":t}(e,n.horizontal),l=X(n,s),c=Math.abs(l[0]-l[1]),f=Math.max(c-i.left-i.right,1),h=Math.abs(u.valueOf()-a.valueOf())/f*c,d=h*i.left/c,p=h*i.right/c;let g={min:a.valueOf()-d,max:u.valueOf()+p};const y=L()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,m=(t,n)=>"min"===n&&a>=0&&t<=0||"max"===n&&u<=0&&t>=0?0:t;if((a>=0&&g.min<=0||u<=0&&g.max>=0)&&!1!==y){const t={left:Math.abs(u-a)*i.left/c,right:Math.abs(u-a)*i.right/c},n={min:m(a.valueOf()-t.left,"min"),max:m(u.valueOf()+t.right,"max")},e={left:Math.abs(n.max-n.min)*i.left/c,right:Math.abs(n.max-n.min)*i.right/c};g={min:m(a.valueOf()-e.left,"min"),max:m(u.valueOf()+e.right,"max")}}const v={min:void 0!==r?r:g.min,max:void 0!==o?o:g.max};return a instanceof Date||u instanceof Date?Ri(new Date(v.min),new Date(v.max)):Ri(v.min,v.max)}(t,n,e),n,e)}function Ii(t,n,e){const r=e||$i(t),{polar:o,startAngle:i=0,endAngle:a=360}=t,u=Vi(t,n),s=qi(t,n);if(r.length<1)return void 0!==u&&void 0!==s?Ri(u,s):void 0;const l=Ri(void 0!==u?u:Ui(r,n,"min"),void 0!==s?s:Ui(r,n,"max"));return o&&"x"===n&&360===Math.abs(i-a)?Yi(l,function(t,n){const e=`_${n}`;return t.flat().map((t=>t[e]&&void 0!==t[e][1]?t[e][1]:t[e]))}(r,n)):l}function Ri(t,n){return Number(t)===Number(n)?(t=>{const n=0===t?2*Math.pow(10,-10):Math.pow(10,-10),e=t instanceof Date?new Date(Number(t)-1):Number(t)-n,r=t instanceof Date?new Date(Number(t)+1):Number(t)+n;return 0===t?[0,r]:[e,r]})(n):[t,n]}function qi(t,n){return L()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||zi()(t.maxDomain)?t.maxDomain:void 0}function Vi(t,n){return L()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||zi()(t.minDomain)?t.minDomain:void 0}function Yi(t,n){const e=Bi()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}function Gi(t,n,e){const r=e?e.slice(0):p().Children.toArray(t.children),o=t.data?$i(t):void 0,{polar:i,startAngle:a,endAngle:u,categories:s,minDomain:l,maxDomain:c,horizontal:f}=t,h={horizontal:f,polar:i,startAngle:a,endAngle:u,minDomain:l,maxDomain:c,categories:s},d=o?Object.assign(h,{data:o}):h,g=J(r,(t=>{const e=Object.assign({},t.props,d);return function(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=p().Children.toArray(t.props.children);e=r.length?n(r[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(e)}(t)?t.type&&Z(t.type.getDomain)?t.props&&t.type.getDomain(e,n):function(t,n){return Wi()(t,n)}(e,n):null}),t);return[0===g.length?0:M(g),0===g.length?1:b(g)]}const Xi={checkDomainEquality(t,n){const e=e=>{const r=t&&t[e],o=n&&n[e];return!r&&!o||!(!r||!o)&&Number(r[0])===Number(o[0])&&Number(r[1])===Number(o[1])};return e("x")&&e("y")},scale(t,n,e,r){const[o,i]=t,a=Math.abs(i-o),u=e.minimumZoom&&e.minimumZoom[r],s=this.getScaleFactor(n);if(u&&a<=u&&s<1)return t;const[l,c]=this.getDomain(e)[r],f=this.getScalePercent(n,e,r),h=s*o+f*(s*a),d=this.getMinimumDomain(h,e,r),[p,g]=this.getScaledDomain(t,s,f),y=[p>l&&p<c?p:l,g<c&&g>l?g:c],m=Math.abs(d[1]-d[0])>Math.abs(y[1]-y[0])?d:y;return x([l,c])?[new Date(m[0]),new Date(m[1])]:m},getScaledDomain(t,n,e){const[r,o]=t,i=Math.abs(o-r),a=i-i*n,u=Number(r)+a*Math.max(e,0),s=Number(o)-a*Math.max(1-e,0);return[Math.min(u,s),Math.max(u,s)]},getMinimumDomain(t,n,e){const{minimumZoom:r}=n,o=this.getDomain(n)[e],[i,a]=o,u=Math.abs(i-a)/1e3,s=r&&r[e]||u,l=t-s/2,c=t+s/2;return[l>i&&l<a?l:i,c<a&&c>i?c:Number(i)+s/2]},zoommingOut:t=>t.deltaY>0,getScaleFactor(t){const n=this.zoommingOut(t)?1:-1,e=Math.min(Math.abs(t.deltaY/300),.5);return Math.abs(1+n*e)},getScalePercent(t,n,e){const r=this.getDomain(n),[o,i]=r[e];return(this.getPosition(t,n,r)[e]-o)/Math.abs(i-o)},getPosition(t,n,e){const{x:r,y:o}=A(t),i={x:n.scale.x.domain(e.x),y:n.scale.y.domain(e.y)};return C(n,i,r,o)},pan(t,n,e){const[r,o]=t.map((t=>Number(t))),[i,a]=n.map((t=>Number(t))),u=r+e,s=o+e;let l;return l=u>i&&s<a?[u,s]:u<i?[i,i+(o-r)]:s>a?[a-(o-r),a]:t,x(t)||x(n)?l.map((t=>new Date(t))):l},getDomainScale(t,n,e){const r=Array.isArray(t)?t:t[e],[o,i]=r,a=n[e].range();return Math.abs(a[0]-a[1])/(i-o)},handleAnimation(t){const n=t.context.animationTimer,e=t.context.transitionTimer;return e.bypassAnimation(),n.bypassAnimation(),y()((()=>{n.resumeAnimation(),e.resumeAnimation()}),16)},getLastDomain(t,n){const{zoomDomain:e,cachedZoomDomain:r,currentDomain:o,domain:i}=t;return e&&!this.checkDomainEquality(e,r)?h()({},e,i):h()({},o||e||n,i)},getDomain(t){const{originalDomain:n,domain:e,children:r,zoomDimension:o}=t,i=d.Children.toArray(r);let a={};return i.length&&(a=o?{[o]:Gi(t,o,i)}:{x:Gi(t,"x",i),y:Gi(t,"y",i)}),h()({},a,n,e)},onMouseDown(t,n){if(t.preventDefault(),!n.allowPan)return;const e=n.parentSVG||k(t),{x:r,y:o}=A(t,e);return[{target:"parent",mutation:()=>({startX:r,startY:o,panning:!0,parentSVG:e,parentControlledProps:["domain"]})}]},onMouseUp(t,n){if(n.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseLeave(t,n){if(n.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseMove(t,n,e,r){if(n.panning&&n.allowPan){const{scale:e,startX:o,startY:i,onZoomDomainChange:a,zoomDomain:u,zoomDimension:s,horizontal:l}=n,c=n.parentSVG||k(t),{x:f,y:d}=A(t,c),p=this.getDomain(n),g=this.getLastDomain(n,p),y=l?o-f:d-i,m=(l?d-i:o-f)/this.getDomainScale(g,e,"x"),v=y/this.getDomainScale(g,e,"y"),x={x:"y"===s?p.x:this.pan(g.x,p.x,m),y:"x"===s?p.y:this.pan(g.y,p.y,v)},b=this.handleAnimation(r),M={parentControlledProps:["domain"],startX:f,startY:d,parentSVG:c,currentDomain:x,originalDomain:p,cachedZoomDomain:u,zoomActive:!this.checkDomainEquality(p,g)};return Z(a)&&a(x,h()({},M,n)),[{target:"parent",callback:b,mutation:()=>M}]}},onWheel(t,n,e,r){if(!n.allowZoom)return;const{onZoomDomainChange:o,zoomDimension:i,zoomDomain:a}=n,u=this.getDomain(n),s=this.getLastDomain(n,u),{x:l,y:c}=s,f={x:"y"===i?s.x:this.scale(l,t,n,"x"),y:"x"===i?s.y:this.scale(c,t,n,"y")},d=this.handleAnimation(r),p={currentDomain:f,originalDomain:u,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(t)||n.zoomActive&&!this.checkDomainEquality(u,s)};return Z(o)&&o(f,h()({},p,n)),[{target:"parent",callback:d,mutation:()=>p}]}},Zi={checkDomainEquality:Xi.checkDomainEquality.bind(Xi),onMouseDown:Xi.onMouseDown.bind(Xi),onMouseUp:Xi.onMouseUp.bind(Xi),onMouseLeave:Xi.onMouseLeave.bind(Xi),onMouseMove:v()(Xi.onMouseMove.bind(Xi),16,{leading:!0,trailing:!1}),onWheel:v()(Xi.onWheel.bind(Xi),16,{leading:!0,trailing:!1})};var Ki=r(660),Qi=r.n(Ki),Ji=r(7709),ta=r.n(Ji);const na={startsWith:["data-","aria-"],exactMatch:[]};function ea(t,n){if(null==t)throw new Error(n)}const ra=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return na.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>na.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,q(r,t)]})))},oa=t=>p().createElement("defs",null,p().createElement("clipPath",{id:t.clipId?.toString()},t.children));function ia(){return ia=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},ia.apply(this,arguments)}const aa=(0,d.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:q(r,t)?.toString(),tabIndex:q(o,t),...a};return e?p().createElement("circle",ia({},u,{ref:n}),p().createElement("desc",null,e)):p().createElement("circle",ia({},u,{ref:n}))}));function ua(){return ua=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},ua.apply(this,arguments)}const sa=(0,d.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:q(r,t)?.toString(),tabIndex:q(o,t),...a};return e?p().createElement("rect",ua({},u,{ref:n}),p().createElement("desc",null,e)):p().createElement("rect",ua({},u,{ref:n}))}));class la extends p().Component{static displayName="VictoryClipContainer";static role="container";static defaultProps={circleComponent:p().createElement(aa,null),rectComponent:p().createElement(sa,null),clipPathComponent:p().createElement(oa,null),groupComponent:p().createElement("g",null)};constructor(t){super(t),this.clipId=ta()(t)&&void 0!==t.clipId?t.clipId:Qi()("victory-clip-")}calculateAttributes(t){const{polar:n,origin:e,clipWidth:r=0,clipHeight:o=0,translateX:i=0,translateY:a=0}=t,u=R({padding:t.clipPadding}),s=t.radius||G(t);return{x:(n?e.x:i)-u.left,y:(n?e.y:a)-u.top,width:Math.max((n?s:r)+u.left+u.right,0),height:Math.max((n?s:o)+u.top+u.bottom,0)}}renderClippedGroup(t,n){const e=ra(t),{style:r,events:o,transform:i,children:a,className:u,groupComponent:s,tabIndex:l}=t,c=this.renderClipComponent(t,n),f=Object.assign({className:u,style:r,transform:i,key:`clipped-group-${n}`,clipPath:`url(#${n})`},o);return p().cloneElement(s,{...f,tabIndex:l,...e},[c,...p().Children.toArray(a)])}renderGroup(t){const{style:n,events:e,transform:r,children:o,className:i,groupComponent:a,tabIndex:u}=t;return p().cloneElement(a,Object.assign({className:i,style:n,transform:r,"aria-label":t["aria-label"],tabIndex:u},e),o)}renderClipComponent(t,n){const{polar:e,origin:r,clipWidth:o=0,clipHeight:i=0,translateX:a=0,translateY:u=0,circleComponent:s,rectComponent:l,clipPathComponent:c}=t,{top:f,bottom:h,left:d,right:g}=R({padding:t.clipPadding});let y;if(e){const n=t.radius||G(t),e={r:Math.max(n+d+g,n+f+h,0),cx:r.x-d,cy:r.y-f};y=p().cloneElement(s,e)}else{const t={x:a-d,y:u-f,width:Math.max(o+d+g,0),height:Math.max(i+f+h,0)};y=p().cloneElement(l,t)}return p().cloneElement(c,Object.assign({key:`clip-path-${n}`},t,{clipId:n}),y)}getClipValue(t,n){const e={x:t.clipWidth,y:t.clipHeight};if(void 0!==e[n])return e[n];const r=X(t,n);return r&&Math.abs(r[0]-r[1])||void 0}getTranslateValue(t,n){const e={x:t.translateX,y:t.translateY};if(void 0!==e[n])return e[n];const r=X(t,n);return r?Math.min(...r):void 0}render(){const t=this.getClipValue(this.props,"y"),n=this.getClipValue(this.props,"x");if(void 0===n||void 0===t)return this.renderGroup(this.props);const e=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),o=h()({},this.props,{clipHeight:t,clipWidth:n,translateX:e,translateY:r});return this.renderClippedGroup(o,this.clipId)}}function ca(){return ca=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},ca.apply(this,arguments)}const fa=p().forwardRef(((t,n)=>p().createElement("svg",ca({ref:n},t)))),ha=p().createContext(void 0);ha.displayName="PortalContext";const da=()=>p().useContext(ha),pa=t=>{let{children:n}=t;const[e,r]=p().useState(new Map),o=p().useCallback(((t,n)=>{r((e=>{const r=new Map(e);return r.set(t,n),r}))}),[r]),i=p().useCallback((t=>{r((n=>{const e=new Map(n);return e.delete(t),e}))}),[r]),a=p().useMemo((()=>({addChild:o,removeChild:i,children:e})),[o,i,e]);return p().createElement(ha.Provider,{value:a},n)},ga=t=>{let{as:n,...e}=t;const r=da();if(!r)return null;const o=Array.from(r.children.values());return p().cloneElement(n,e,o)};function ya(){return ya=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},ya.apply(this,arguments)}const ma={className:"VictoryContainer",portalComponent:p().createElement(fa,null),portalZIndex:99,responsive:!0,role:"img"},va=t=>{const{role:n,title:e,desc:r,children:o,className:i,portalZIndex:a,portalComponent:u,width:s,height:l,style:c,tabIndex:f,responsive:h,events:g,ouiaId:y,ouiaSafe:m,ouiaType:v,dimensions:x,ariaDescribedBy:b,ariaLabelledBy:M,viewBox:w,preserveAspectRatio:D,userProps:k,titleId:A,descId:S,containerRef:C,localContainerRef:O}=function(t){const n={...ma,...t},{title:e,desc:r,width:o,height:i,responsive:a}=n,u=(0,d.useRef)(null),s=(0,d.useRef)(Qi()("victory-container-")),l=n.containerId??s.current,c=t=>`${l}-${t}`,f=ra(n),h=a?{width:"100%",height:"100%"}:{width:o,height:i},p=a?`0 0 ${o} ${i}`:void 0,g=a?n.preserveAspectRatio:void 0,y=[e&&c("title"),n["aria-labelledby"]].filter(Boolean).join(" ")||void 0,m=[r&&c("desc"),n["aria-describedby"]].filter(Boolean).join(" ")||void 0,v=c("title"),x=c("desc");return{...n,titleId:v,descId:x,dimensions:h,viewBox:p,preserveAspectRatio:g,ariaLabelledBy:y,ariaDescribedBy:m,userProps:f,localContainerRef:u}}(t);return p().useEffect((()=>{if(!g?.onWheel)return;const t=t=>t.preventDefault(),n=O?.current;return n?.addEventListener("wheel",t),()=>{n?.removeEventListener("wheel",t)}}),[]),p().createElement("div",{className:i,style:{...c,width:h?c?.width:x.width,height:h?c?.height:x.height,pointerEvents:c?.pointerEvents??"none",touchAction:c?.touchAction??"none",position:c?.position??"relative"},"data-ouia-component-id":y,"data-ouia-component-type":v,"data-ouia-safe":m,ref:(E=[O,C],t=>{E.forEach((n=>{Z(n)?n(t):null!=n&&(n.current=t)}))})},p().createElement(pa,null,p().createElement("svg",ya({width:s,height:l,tabIndex:f,role:n,"aria-labelledby":M,"aria-describedby":b,viewBox:w,preserveAspectRatio:D,style:{...x,pointerEvents:"all"}},k,g),e?p().createElement("title",{id:A},e):null,r?p().createElement("desc",{id:S},r):null,o),p().createElement("div",{style:{...x,zIndex:a,position:"absolute",top:0,left:0}},p().createElement(ga,{as:u,width:s,height:l,viewBox:w,preserveAspectRatio:D,style:{...x,overflow:"visible"}}))));var E};va.role="container";const xa={clipContainerComponent:p().createElement(la,null),allowPan:!0,allowZoom:!0,zoomActive:!1},ba=t=>{const n={...xa,...t},{children:e,currentDomain:r,zoomActive:o,allowZoom:i,downsample:a,scale:u,clipContainerComponent:s,polar:l,origin:c,horizontal:f}=n,d=(t,e)=>{const r=(n=>{const{data:e,x:r,y:o}=n,i=t.type&&"function"==typeof t.type.getData?t.type.getData:()=>{};return!Array.isArray(e)||r||o?i(n):e})(t.props);if(!a||!e||!r)return;const o=!0===a?150:a,i=n.zoomDimension||"x";let u=r.findIndex((t=>t[i]>=e[i][0])),s=r.findIndex((t=>t[i]>e[i][1]));return 0!==u&&(u-=1),-1!==s&&(s+=1),function(t,n,e){void 0===e&&(e=0);const r=Ci(t);if(r>n){const o=Math.pow(2,Math.ceil(Math.log2(r/n)));return t.filter(((t,n)=>(n+e)%o==0))}return t}(r.slice(u,s),o,u)},g=p().Children.toArray(e).map((t=>{const e=t.type&&t.type.role,a=Ni(t),g=h()({},n.originalDomain,n.domain),y=h()({},n.zoomDomain,n.domain),m=h()({},n.cachedZoomDomain,n.domain);let v;v=Zi.checkDomainEquality(y,m)?i&&!o?t.props.domain:h()({},r,g):y;let x=n.polar?{x:g.x,y:[0,v.y[1]]}:v;x&&n.zoomDimension&&(x={...y,[n.zoomDimension]:x[n.zoomDimension]});const b=a&&"stack"!==e?{domain:x,data:d(t,x)}:{domain:x},M=p().cloneElement(t,h()(b,t.props));if(Ni(M)){const t=f?u.y.range():u.x.range(),n=f?u.x.range():u.y.range(),e=Math.abs(t[0]-t[1]),r=Math.abs(n[0]-n[1]),o=Math.max(...n),i=p().cloneElement(s,{clipWidth:e,clipHeight:r,translateX:Math.min(...t),translateY:Math.min(...n),polar:l,origin:l?c:void 0,radius:l?o:void 0,...s.props});return p().cloneElement(M,{groupComponent:i})}return M}));return{props:n,children:g}},Ma=t=>{const{props:n,children:e}=ba(t);return p().createElement(va,n,e)};Ma.role="container",Ma.defaultEvents=t=>{const n={...xa,...t},e=(t,e)=>(r,o,i,a)=>e||n.disable?{}:t(r,{...n,...o},i,a);return[{target:"parent",eventHandlers:{onMouseDown:e(Zi.onMouseDown),onTouchStart:e(Zi.onMouseDown),onMouseUp:e(Zi.onMouseUp),onTouchEnd:e(Zi.onMouseUp),onMouseLeave:e(Zi.onMouseLeave),onTouchCancel:e(Zi.onMouseLeave),onMouseMove:e(Zi.onMouseMove),onTouchMove:e(Zi.onMouseMove),onWheel:e(Zi.onWheel,!n.allowZoom)}}]};const wa=new class{getDimension(t){const{horizontal:n,selectionDimension:e}=t;return n&&e?"x"===e?"y":"x":e}getDatasets(t){return t.data?[{data:t.data}]:J(p().Children.toArray(t.children),((n,e,r)=>{const o=t.selectionBlacklist||[];let i;if(!Ni(n)||o.includes(e))return null;if(n.type&&Z(n.type.getData)){i=r?p().cloneElement(n,r.props):n;const t=i.props&&i.type.getData(i.props);return t?{childName:e,data:t}:null}const a=(t=>{const n=$i(t);return Array.isArray(n)&&n.length>0?n:void 0})(i.props);return a?{childName:e,data:a}:null}),t)}filterDatasets(t,n){const e=n.reduce(((n,e)=>{const r=this.getSelectedData(t,e.data);return r?n.concat({childName:e.childName,eventKey:r.eventKey,data:r.data}):n}),[]);return e.length?e:null}getSelectedData(t,n){const{x1:e,y1:r,x2:o,y2:i}=t,a=n=>{const a=I(t,n);return a.x>=Math.min(e,o)&&a.x<=Math.max(e,o)&&a.y>=Math.min(r,i)&&a.y<=Math.max(r,i)},u=[],s=[];let l=0;for(let t=0,e=n.length;t<e;t++){const e=n[t];a(e)&&(s[l]=e,u[l]=void 0===e.eventKey?t:e.eventKey,l++)}return l>0?{eventKey:u,data:s}:null}onMouseDown=(t,n)=>{t.preventDefault();const{activateSelectedData:e,allowSelection:r,polar:o,selectedData:i}=n;if(!r)return{};const a=this.getDimension(n),u=n.parentSVG||k(t),{x:s,y:l}=A(t,u),c={x1:o||"y"!==a?s:S(n).x[0],y1:o||"x"!==a?l:S(n).y[0],select:!0,x2:o||"y"!==a?s:S(n).x[1],y2:o||"x"!==a?l:S(n).y[1],parentSVG:u};i&&Z(n.onSelectionCleared)&&n.onSelectionCleared(h()({},c,n));const f=[{target:"parent",mutation:()=>c}],d=i&&e?i.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>null}))):[];return f.concat(...d)};handleMouseMove=(t,n)=>{const{allowSelection:e,select:r,polar:o}=n,i=this.getDimension(n);if(!e||!r)return null;const a=n.parentSVG||k(t),{x:u,y:s}=A(t,a),l=o||"y"!==i?u:S(n).x[1],c=o||"x"!==i?s:S(n).y[1];return{target:"parent",mutation:()=>({x2:l,y2:c,parentSVG:a})}};onMouseMove=v()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseUp=(t,n)=>{const{activateSelectedData:e,allowSelection:r,x2:o,y2:i}=n;if(!r)return null;if(!o||!i)return[{target:"parent",mutation:()=>({select:!1,x1:null,x2:null,y1:null,y2:null})}];const a=this.getDatasets(n),u=O(n),s=this.filterDatasets(n,a),l={selectedData:s,datasets:a,select:!1,x1:null,x2:null,y1:null,y2:null},c=s&&Z(n.onSelection)?n.onSelection(s,u,h()({},l,n)):{},f=[{target:"parent",mutation:()=>l}],d=s&&e?s.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>Object.assign({active:!0},c)}))):[];return f.concat(d)}},Da={activateSelectedData:!0,allowSelection:!0,selectionComponent:p().createElement(sa,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}},ka=t=>{const n={...Da,...t},{x1:e,x2:r,y1:o,y2:i,selectionStyle:a,selectionComponent:u,children:s,name:l}=n,c=Math.abs(r-e)||1,f=Math.abs(i-o)||1,h=Math.min(e,r),d=Math.min(o,i);return{props:n,children:[s,o&&i&&e&&r&&p().cloneElement(u,{key:`${l}-selection`,x:h,y:d,width:c,height:f,style:a})]}},Aa=t=>{const{props:n,children:e}=ka(t);return p().createElement(va,n,e)};Aa.role="container",Aa.defaultEvents=t=>{const n={...Da,...t},e=(t,e)=>(r,o,i,a)=>e||n.disable?{}:t(r,{...n,...o},i,a);return[{target:"parent",eventHandlers:{onMouseDown:e(wa.onMouseDown),onTouchStart:e(wa.onMouseDown),onMouseMove:e(wa.onMouseMove),onTouchMove:e(wa.onMouseMove),onMouseUp:e(wa.onMouseUp),onTouchEnd:e(wa.onMouseUp)}}]};const Sa={groupComponent:p().createElement("g",null)},Ca=t=>{const n={...Sa,...t},[e]=(0,d.useState)(Qi()()),r=da(),o=Array.isArray(n.children)?n.children[0]:n.children,{groupComponent:i}=n,a=o&&o.props||{},u=a.groupComponent?{groupComponent:i,standalone:!1}:{},s=h()(u,a,W(n,["children","groupComponent"]),{key:a.key??e}),l=o&&p().cloneElement(o,s);return p().useEffect((()=>{r?.addChild(e,l)}),[n.children]),p().useEffect((()=>()=>r?.removeChild(e)),[]),r?null:l};Ca.role="portal";const Oa=t=>{const{children:n,desc:e,id:r,origin:o,tabIndex:i,title:a,...u}=t,s={id:q(r,t)?.toString(),tabIndex:q(i,t),...u};return p().createElement("text",s,a&&p().createElement("title",null,a),e&&p().createElement("desc",null,e),n)},Ea=t=>{const{desc:n,id:e,tabIndex:r,origin:o,...i}=t,a={id:q(e,t)?.toString(),tabIndex:q(r,t),...i};return p().createElement("tspan",a)};function ja(t,n){const{x:e}=H(n);return("number"==typeof(r=t.scale.x(e))?r/(Math.PI/180):r)%360;var r}const _a=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,_a(n)].join(" ")),_a(t)).trim();if(null==t||"string"==typeof t)return t;const o=[];for(const n in t)if(t.hasOwnProperty(n)){const e=t[n];o.push(`${n}(${e})`)}return o.join(" ").trim()};var Ta=r(1594),$a=r.n(Ta);const Fa={"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}},Na={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Pa={em:1,ex:.5},za={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},La=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),Ba=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},Ua=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let o;return o=e?Na.hasOwnProperty(e)?r*Na[e]:Pa.hasOwnProperty(e)?(n?r*n:r*za.fontSize)*Pa[e]:r:r||0,o},Wa=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=h()({},e,za);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Ua(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Ua(String(r.fontSize))})},Ha=(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:La(t).reduce(((t,e,r)=>{const o=Wa(n,r),i=e.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0))(t,n),o=((t,n)=>{if(void 0===t||""===t||null===t)return 0;const e=La(t).map(((t,e)=>{const r=t.toString().length,{fontSize:o,letterSpacing:i,fontFamily:a}=Wa(n,e),u=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>Fa[t]))||"Helvetica";return Fa[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)*o+i*Math.max(r-1,0)}));return Math.max(...e)})(t,n);return{width:e?Ba(o,r,e):o,height:1.05*(e?Ba(r,o,e):r)}},Ia=$a()((()=>{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})),Ra=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",qa=$a()(((t,n)=>{let e=Ia();e.isConnected||(Ia.cache.clear?.(),e=Ia());const r=La(t);let o=0;for(const[t,i]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=Wa(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=i,r.setAttribute("x","0"),r.setAttribute("y",`${o}`),e.appendChild(r),o+=a.lineHeight*r.getBoundingClientRect().height}const{width:i}=e.getBoundingClientRect();return e.innerHTML="",{width:n?.angle?Ba(i,o,n?.angle):i,height:n?.angle?Ba(o,i,n?.angle):o}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(Ra).join():Ra(n)}`)),Va=(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?Ha(t,n):qa(t,n)}(t,n),Ya={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Ga=(t,n)=>t.datum?I(t,t.datum)[n]:0,Xa=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return Ya.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?Ya.fontSize:t}return Ya.fontSize},Za=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},Ka=t=>{const{backgroundStyle:n,backgroundPadding:e}=t;return Array.isArray(n)&&!a()(n)||Array.isArray(e)&&!a()(e)},Qa=(t,n)=>{const{direction:e,textAnchor:r,x:o,dx:i}=t;if("rtl"===e)return o-n;switch(r){case"middle":return Math.round(o-n/2);case"end":return Math.round(o-n);default:return o+(i||0)}},Ja=(t,n)=>{const{verticalAnchor:e,y:r,originalDy:o=0}=t,i=r+o;switch(e){case"start":return Math.floor(i);case"end":return Math.ceil(i-n);default:return Math.floor(i-n/2)}},tu=(t,n)=>Ka(t)?((t,n)=>{const{dy:e,dx:r,transform:o,backgroundStyle:i,backgroundPadding:a,backgroundComponent:u,inline:s,y:l}=t,c=n.map(((t,o)=>{const i=Za(n,o-1),u=t.textSize,c=t.fontSize*t.lineHeight,f=Math.ceil(c),h=Za(a,o),d=Za(a,o-1),p=s&&r||0,g=o&&!s?i.fontSize*i.lineHeight+d.top+d.bottom:e-.5*c-(t.fontSize-t.capHeight);return{textHeight:f,labelSize:u,heightWithPadding:f+h.top+h.bottom,widthWithPadding:u.width+h.left+h.right+p,y:l,fontSize:t.fontSize,dy:g}}));return c.map(((n,e)=>{const r=Qa(t,n.labelSize.width),f=c.slice(0,e+1).reduce(((t,n)=>t+n.dy),l),d=Za(a,e),g=n.heightWithPadding,y=s?((t,n,e)=>{const{textAnchor:r}=t,o=n.map((t=>t.widthWithPadding)),i=-o.reduce(((t,n)=>t+n),0)/2;switch(r){case"start":return o.reduce(((t,n,r)=>r<e?t+n:t),0);case"end":return o.reduce(((t,n,r)=>r>e?t-n:t),0);default:return o.reduce(((t,n,r)=>r===e?t+n/2:t+(r<e?n:0)),i)}})(t,c,e)+r-d.left:r,m=s?Ja(t,g)-d.top:f,v={key:`tspan-background-${e}`,height:g,style:Za(i,e),width:n.widthWithPadding,transform:o,x:y-d.left,y:m};return p().cloneElement(u,h()({},u.props,v))}))})(t,n):((t,n)=>{const{dx:e=0,transform:r,backgroundComponent:o,backgroundStyle:i,inline:a,backgroundPadding:u,capHeight:s}=t,l=n.map((t=>t.textSize)),c=a?Math.max(...l.map((t=>t.height))):l.reduce(((t,e,r)=>{const o=r?0:s/2;return t+e.height*(n[r].lineHeight-o)}),0),f=a?l.reduce(((t,n,r)=>{const o=r?e:0;return t+n.width+o}),0):Math.max(...l.map((t=>t.width))),d=Qa(t,f),g=Ja(t,c),y={key:"background",height:c+u.top+u.bottom,style:i,transform:r,width:f+u.left+u.right,x:a?d-u.left:d+e-u.left,y:g};return p().cloneElement(o,h()({},o.props,y))})(t,n),nu=(t,n,e)=>{const{inline:r}=n,o=Za(t,e);return e&&!r?((t,n,e)=>{const r=Za(t,n),o=Za(t,n-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,u=o.fontSize-o.capHeight,s=r.fontSize-r.capHeight,l=i-o.fontSize/2+r.fontSize/2-i/2+a/2-s/2+u/2;return Ka(e)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l})(t,e,n):r?0===e?o.backgroundPadding.top:void 0:o.backgroundPadding.top},eu=t=>{const n=q(t.ariaLabel,t),e=Za(t.style),r=(t=>{const n=q(t.lineHeight,t);return Array.isArray(n)&&a()(n)?[1]:n})(t),o=t.direction?q(t.direction,t):"inherit",i=t.textAnchor?q(t.textAnchor,t):e.textAnchor||"start",u=t.verticalAnchor?q(t.verticalAnchor,t):e.verticalAnchor||"middle",s=t.dx?q(t.dx,t):0,l=((t,n,e)=>{const r=t.dy?q(t.dy,t):0,o=t.inline?1:t.text.length,i=q(t.capHeight,t),a=n?q(n,t):"middle",u=[...Array(o).keys()].map((n=>Za(t.style,n).fontSize)),s=[...Array(o).keys()].map((t=>Za(e,t)));if("start"===a)return r+(i/2+s[0]/2)*u[0];if(t.inline)return"end"===a?r+(i/2-s[0]/2)*u[0]:r+i/2*u[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*s[0])*u[0]:r+(i/2+(.5-o/2)*s[0])*u[0];const l=[...Array(o).keys()].reduce(((t,n)=>t+(i/2+(.5-o)*s[n])*u[n]/o),0);return"end"===a?r+l:r+l/2+i/2*s[o-1]*u[o-1]})(t,u,r),c=void 0!==t.x?t.x:Ga(t,"x"),f=void 0!==t.y?t.y:Ga(t,"y"),h=((t,n,e)=>{const{polar:r}=t,o=Za(t.style),i=r?function(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const o=ja(t,r);let i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===e?0:90)}(t):0,a=void 0===o.angle?q(t.angle,t):o.angle,u=void 0===a?i:a,s=t.transform||o.transform,l=s&&q(s,t);return l||u?_a(l,u&&{rotate:[u,n,e]}):void 0})(t,c,f);return Object.assign({},t,{ariaLabel:n,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:u,dx:s,dy:l,originalDy:q(t.dy,t),transform:h,x:c,y:f})},ru={backgroundComponent:p().createElement(sa,null),groupComponent:p().createElement("g",null),direction:"inherit",textComponent:p().createElement(Oa,null),tspanComponent:p().createElement(Ea,null),capHeight:.71,lineHeight:1},ou=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>q(t,n)));const e=q(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=V(t,n);return{fontSize:Xa(e)}}const e=t=>{const e=V(t?h()({},t,Ya):Ya,n);return Object.assign({},e,{fontSize:Xa(e)})};return Array.isArray(t)&&!a()(t)?t.map((t=>e(t))):e(t)})(t.style,Object.assign({},t,{text:n})),r=((t,n)=>{if(t)return Array.isArray(t)&&!a()(t)?t.map((t=>V(t,n))):V(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:e})),o=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>R({padding:q(n,t)}))):R({padding:q(t.backgroundPadding,t)}))(Object.assign({},t,{text:n,style:e,backgroundStyle:r})),i=q(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:o,style:e,text:n,id:i})})(h()({},t,ru));if(null===n.text||void 0===n.text)return null;const e=eu(n),{text:r,style:o,capHeight:i,backgroundPadding:u,lineHeight:s}=e,l=r.map(((t,n)=>{const e=Za(o,n),r=Ua(`${i}em`,e.fontSize),a=Za(s,n);return{style:e,fontSize:e.fontSize||Ya.fontSize,capHeight:r,text:t,textSize:Va(t,e),lineHeight:a,backgroundPadding:Za(u,n)}})),c=((t,n)=>{const{ariaLabel:e,inline:r,className:o,title:i,events:a,direction:u,text:s,textAnchor:l,dx:c,dy:f,transform:h,x:d,y:g,desc:y,id:m,tabIndex:v,tspanComponent:x,textComponent:b}=t,M=ra(t),w={"aria-label":e,key:"text",...a,direction:u,dx:c,x:d,y:g+f,transform:h,className:o,title:i,desc:q(y,t),tabIndex:q(v,t),id:m,...M},D=s.map(((e,o)=>{const i=n[o].style,a={key:`${m}-key-${o}`,x:r?void 0:d,dx:r?c+n[o].backgroundPadding.left:c,dy:nu(n,t,o),textAnchor:i.textAnchor||l,style:i,children:e};return p().cloneElement(x,a)}));return p().cloneElement(b,w,D)})(e,l);if(n.backgroundStyle){const t=[tu(e,l),c],r=p().cloneElement(n.groupComponent,{},t);return n.renderInPortal?p().createElement(Ca,null,r):r}return n.renderInPortal?p().createElement(Ca,null,c):c};ou.displayName="VictoryLabel",ou.role="label",ou.defaultStyles=Ya;const iu=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],au="#252525",uu="#969696",su={width:450,height:300,padding:50,colorScale:iu},lu={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:au,stroke:"transparent"},cu=Object.assign({textAnchor:"middle"},lu),fu={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:iu,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:au},labels:lu}},su),axis:Object.assign({style:{axis:{fill:"transparent",stroke:au,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},cu,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:lu}},su),bar:Object.assign({style:{data:{fill:au,padding:8,strokeWidth:0},labels:lu}},su),boxplot:Object.assign({style:{max:{padding:8,stroke:au,strokeWidth:1},maxLabels:Object.assign({},lu,{padding:3}),median:{padding:8,stroke:au,strokeWidth:1},medianLabels:Object.assign({},lu,{padding:3}),min:{padding:8,stroke:au,strokeWidth:1},minLabels:Object.assign({},lu,{padding:3}),q1:{padding:8,fill:uu},q1Labels:Object.assign({},lu,{padding:3}),q3:{padding:8,fill:uu},q3Labels:Object.assign({},lu,{padding:3})},boxWidth:20},su),candlestick:Object.assign({style:{data:{stroke:au,strokeWidth:1},labels:Object.assign({},lu,{padding:5})},candleColors:{positive:"#ffffff",negative:au}},su),chart:su,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:au,strokeWidth:2},labels:lu}},su),group:Object.assign({colorScale:iu},su),histogram:Object.assign({style:{data:{fill:uu,stroke:au,strokeWidth:2},labels:lu}},su),legend:{colorScale:iu,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:lu,title:Object.assign({},lu,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:au,strokeWidth:2},labels:lu}},su),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},lu,{padding:20})},colorScale:iu,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:au,stroke:"transparent",strokeWidth:0},labels:lu}},su),stack:Object.assign({colorScale:iu},su),tooltip:{style:Object.assign({},lu,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:au,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({},lu,{padding:5,pointerEvents:"none"}),flyout:{stroke:au,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},su)},hu="#FFF59D",du="#F4511E",pu="#8BC34A",gu="#00796B",yu="#006064",mu=[du,hu,"#DCE775",pu,gu,yu],vu="#ECEFF1",xu="#90A4AE",bu="#455A64",Mu="#212121",wu={blue:"#4F7DA1",pink:"#E2A37F",teal:gu,purple:"#DF948A",green:pu,orange:du,cyan:yu,red:"#DF5A49",yellow:hu},Du=[vu,xu,bu,Mu],ku={width:350,height:350,padding:50},Au={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:bu,stroke:"transparent",strokeWidth:0},Su=Object.assign({textAnchor:"middle"},Au),Cu="round",Ou="round",Eu={palette:{colors:wu,grayscale:Du,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:Mu},labels:Au}},ku),axis:Object.assign({style:{axis:{fill:"transparent",stroke:xu,strokeWidth:2,strokeLinecap:Cu,strokeLinejoin:Ou},axisLabel:Object.assign({},Su,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:vu,strokeDasharray:"10, 5",strokeLinecap:Cu,strokeLinejoin:Ou,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:xu,strokeWidth:1,strokeLinecap:Cu,strokeLinejoin:Ou},tickLabels:Object.assign({},Au,{fill:bu})}},ku),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:bu,padding:8,strokeWidth:0},labels:Au}},ku),boxplot:Object.assign({style:{max:{padding:8,stroke:bu,strokeWidth:1},maxLabels:Object.assign({},Au,{padding:3}),median:{padding:8,stroke:bu,strokeWidth:1},medianLabels:Object.assign({},Au,{padding:3}),min:{padding:8,stroke:bu,strokeWidth:1},minLabels:Object.assign({},Au,{padding:3}),q1:{padding:8,fill:bu},q1Labels:Object.assign({},Au,{padding:3}),q3:{padding:8,fill:bu},q3Labels:Object.assign({},Au,{padding:3})},boxWidth:20},ku),candlestick:Object.assign({style:{data:{stroke:bu},labels:Object.assign({},Au,{padding:5})},candleColors:{positive:"#ffffff",negative:bu}},ku),chart:ku,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:bu,strokeWidth:2},labels:Au}},ku),group:Object.assign({colorScale:mu},ku),histogram:Object.assign({style:{data:{fill:bu,stroke:Mu,strokeWidth:2},labels:Au}},ku),legend:{colorScale:mu,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Au,title:Object.assign({},Au,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:bu,strokeWidth:2},labels:Au}},ku),pie:Object.assign({colorScale:mu,style:{data:{padding:8,stroke:vu,strokeWidth:1},labels:Object.assign({},Au,{padding:20})}},ku),scatter:Object.assign({style:{data:{fill:bu,opacity:1,stroke:"transparent",strokeWidth:0},labels:Au}},ku),stack:Object.assign({colorScale:mu},ku),tooltip:{style:Object.assign({},Au,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Mu,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({},Au,{padding:5,pointerEvents:"none"}),flyout:{stroke:Mu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},ku)},ju="#FFFFFF",_u="#F2F2F2",Tu="#E0E0E0",$u="#D1D1D1",Fu="#757575",Nu="#424242",Pu="#292929",zu="#FCB400",Lu="#FF6F2C",Bu={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},Uu="#8B46FF",Wu={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},Hu="#18BFFF",Iu="#20D9D2",Ru={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},qu={blue:Wu[500],cyan:Hu,green:Ru[500],yellow:zu,orange:Lu,red:Bu[500],purple:Uu,teal:Iu},Vu=Object.values(qu),Yu=[_u,Tu,Fu,Nu,Pu],Gu=["#FFD66E",zu,Lu,"#D74D26",Bu[500]],Xu=[Uu,Wu[500],Hu,Iu,Ru[500]],Zu=[Ru[900],Ru[500],zu,Lu,Bu[500]],Ku=Object.values(Bu),Qu=Object.values(Ru),Ju=Object.values(Wu),ts=Wu[500],ns={width:450,height:300,padding:60,colorScale:Vu},es={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:Pu,stroke:"transparent"},rs=Object.assign({textAnchor:"middle"},es),os="10, 5",is="round",as="round",us={grayscale:fu,material:Eu,clean:{palette:{colors:qu,grayscale:Yu,qualitative:Vu,heatmap:Zu,warm:Gu,cool:Xu,red:Ku,green:Qu,blue:Ju},area:Object.assign({style:{data:{fill:ts,strokeWidth:2,fillOpacity:.5},labels:es}},ns),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Fu,strokeWidth:1,strokeLinecap:is,strokeLinejoin:as},axisLabel:Object.assign({},rs,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:es}},ns),polarAxis:Object.assign({style:{axis:{stroke:Fu},grid:{stroke:$u,strokeDasharray:os,strokeLinecap:is,strokeLinejoin:as,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:$u,strokeWidth:1,strokeLinecap:is,strokeLinejoin:as},tickLabels:es}}),polarDependentAxis:Object.assign({style:{axis:{stroke:Fu},grid:{stroke:$u,strokeDasharray:os,strokeLinecap:is,strokeLinejoin:as,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Tu,strokeWidth:1,strokeLinecap:is,strokeLinejoin:as},tickLabels:es}}),bar:Object.assign({style:{data:{fill:ts,padding:8,strokeWidth:1,fillOpacity:.5},labels:es},cornerRadius:{top:1}},ns),boxplot:Object.assign({style:{max:{padding:8,stroke:$u,strokeWidth:2},maxLabels:Object.assign({},es,{padding:3}),median:{padding:8,stroke:ju,strokeWidth:2},medianLabels:Object.assign({},es,{padding:3}),min:{padding:8,stroke:$u,strokeWidth:2},minLabels:Object.assign({},es,{padding:3}),q1:{padding:8,fill:Vu[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},es,{padding:3}),q3:{padding:8,fill:Vu[1],rx:1},q3Labels:Object.assign({},es,{padding:3})},boxWidth:20},ns),candlestick:Object.assign({style:{data:{stroke:Tu,strokeWidth:0,rx:1},labels:Object.assign({},es,{padding:5})},candleColors:{positive:Ru[500],negative:Bu[500]},wickStrokeWidth:2},ns),chart:ns,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Nu,strokeWidth:2,strokeLinecap:is},labels:es}},ns),group:Object.assign({colorScale:Vu},ns),histogram:Object.assign({style:{data:{fill:Hu,fillOpacity:.5},labels:es},binSpacing:4,cornerRadius:{top:1}},ns),label:es,legend:{colorScale:Vu,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...es,fontSize:12},title:Object.assign({},es,{padding:8,fontSize:16}),border:{stroke:"#E8E8E8",strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:ts,strokeWidth:2,strokeLinecap:is,strokeLinejoin:as},labels:es}},ns),pie:Object.assign({style:{parent:{backgroundColor:ju},data:{padding:8,stroke:ju,strokeWidth:1},labels:{...es,padding:20,fill:"#5C5C5C",fontSize:10}},colorScale:Vu,cornerRadius:1},ns),scatter:Object.assign({style:{data:{fill:ts,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...es,padding:20}}},ns),stack:Object.assign({colorScale:Vu},ns),tooltip:{style:Object.assign({},es,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Tu,strokeWidth:2,fill:ju,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:Wu[100],stroke:ts,strokeWidth:2},labels:Object.assign({},es,{padding:5,pointerEvents:"none"}),flyout:{stroke:Pu,strokeWidth:1,fill:_u,pointerEvents:"none"},padding:{left:2,bottom:2}}},ns)}};function ss(){return ss=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},ss.apply(this,arguments)}const ls=(0,d.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={id:q(r,t)?.toString(),tabIndex:q(o,t),...a};return e?p().createElement("path",ss({},u,{ref:n}),p().createElement("desc",null,e)):p().createElement("path",ss({},u,{ref:n}))})),cs=t=>{const n=t.orientation||"top";return"left"===n||"right"===n?(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:o,height:i,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*(o/2),d=c+u*(o/2),p=f+i/2,g=f-i/2,y=u*(s-h)>0?0:t.pointerLength,m=`${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}, ${p-e}\n A ${m} ${h+u*e}, ${p}\n L ${d-u*e}, ${p}\n A ${m} ${d}, ${p-e}\n L ${d}, ${g+e}\n A ${m} ${d-u*e}, ${g}\n L ${h+u*e}, ${g}\n A ${m} ${h}, ${g+e}\n z`})(t):(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:o,height:i,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*(i/2),d=f-u*(i/2),p=c+o/2,g=c-o/2,y=u*(l-h)<0?0:t.pointerLength,m=`${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 ${p-e}, ${h}\n A ${m} ${p}, ${h-u*e}\n L ${p}, ${d+u*e}\n A ${m} ${p-e}, ${d}\n L ${g+e}, ${d}\n A ${m} ${g}, ${d+u*e}\n L ${g}, ${h-u*e}\n A ${m} ${g+e}, ${h}\n z`})(t)},fs={pathComponent:p().createElement(ls,null),role:"presentation",shapeRendering:"auto"},hs=t=>{const n=(t=>{const n=q(t.id,t),e=V(t.style,t);return{...t,id:n,style:e}})(h()({},t,fs)),e=ra(n);ea(n.height,"Flyout props[height] is undefined"),ea(n.width,"Flyout props[width] is undefined"),ea(n.x,"Flyout props[x] is undefined"),ea(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 p().cloneElement(n.pathComponent,{...n.events,...e,style:n.style,d:cs(r),className:n.className,shapeRendering:n.shapeRendering,role:n.role,transform:n.transform,clipPath:n.clipPath})},ds={cornerRadius:5,pointerLength:10,pointerWidth:10};class ps extends p().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:p().createElement(ou,null),flyoutComponent:p().createElement(hs,null),groupComponent:p().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?Qi()("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=ja(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||us.grayscale,e=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>h()({},t,e))):h()({},t.style,e),o=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},i=t.flyoutStyle?h()({},t.flyoutStyle,o):o,a=Array.isArray(r)?r.map((n=>V(n,t))):V(r,t);return{style:a,flyoutStyle:V(i,Object.assign({},t,{style:a}))}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:e,dx:r,dy:o}=t,i=q(t.active,t);let a=q(t.text,Object.assign({},t,{active:i}));null==a&&(a=""),"number"==typeof a&&(a=a.toString());const{style:u,flyoutStyle:s}=this.getStyles(Object.assign({},t,{active:i,text:a})),l=q(t.orientation,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s}))||this.getDefaultOrientation(t),c=R({padding:q(t.flyoutPadding,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s,orientation:l}))||this.getLabelPadding(u)}),f=q(t.pointerWidth,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s,orientation:l})),h=q(t.pointerLength,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s,orientation:l})),d=Va(a,u),{flyoutHeight:p,flyoutWidth:g}=this.getDimensions(Object.assign({},t,{style:u,flyoutStyle:s,active:i,text:a,orientation:l,flyoutPadding:c,pointerWidth:f,pointerLength:h}),d),y=Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s,orientation:l,flyoutHeight:p,flyoutWidth:g,flyoutPadding:c,pointerWidth:f,pointerLength:h}),m=L()(e)&&void 0!==e?.x?q(e.x,y):0,v=L()(e)&&void 0!==e?.y?q(e.y,y):0;return{...y,centerOffset:{x:m,y:v},dx:void 0!==r?q(r,y):0,dy:void 0!==o?q(o,y):0,cornerRadius:q(n,y)}}getCalculatedValues(t){const{style:n,text:e,flyoutStyle:r,flyoutHeight:o,flyoutWidth:i}=t,a={height:o,width:i};return{style:n,flyoutStyle:r,labelSize:Va(e,n),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:n,y:e,style:r}=t,o=(r||{}).angle||t.angle||this.getDefaultAngle(t);return o?`rotate(${o} ${n} ${e})`:void 0}getDefaultAngle(t){const{polar:n,labelPlacement:e,orientation:r,datum:o}=t;if(!n||!e||"vertical"===e)return 0;const i=ja(t,o);let a=0;return 0===i||180===i?a="top"===r&&180===i?270:90:i>0&&i<180?a=90-i:i>180&&i<360&&(a=270-i),a+(i>90&&i<180||i>270?1:-1)*("perpendicular"===e?0:90)}constrainTooltip(t,n,e){const{x:r,y:o}=t,{width:i,height:a}=e,u=[0,n.width],s=[0,n.height],l=[r-i/2,r+i/2],c=[o-a/2,o+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(o+h[0]-h[1])}}getFlyoutCenter(t,n){const{x:e,y:r,dx:o,dy:i,pointerLength:a,orientation:u,constrainToVisibleArea:s,centerOffset:l}=t,{height:c,width:f}=n,h="left"===u?-1:1,d="bottom"===u?-1:1,p={x:"left"===u||"right"===u?e+h*(a+f/2+h*o):e+o,y:"top"===u||"bottom"===u?r-d*(a+c/2-d*i):r+i},g=L()(t.center)&&void 0!==t.center.x?t.center.x:p.x,y=L()(t.center)&&void 0!==t.center.y?t.center.y:p.y,m={x:g+l.x,y:y+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:o,flyoutHeight:i,flyoutWidth:a,flyoutPadding:u}=t,s=q(t.cornerRadius,t);return{flyoutHeight:i?q(i,t):(()=>{const t=n.height+u.top+u.bottom,r="top"===e||"bottom"===e?2*s:2*s+o;return Math.max(r,t)})(),flyoutWidth:a?q(a,t):(()=>{const t=n.width+u.left+u.right,o="left"===e||"right"===e?2*s+r:2*s;return Math.max(o,t)})()}}getLabelProps(t,n){const{flyoutCenter:e,style:r,labelSize:o,dy:i=0,dx:a=0}=n,{text:u,datum:s,activePoints:l,labelComponent:c,index:f,flyoutPadding:d}=t,p=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return h()({},c.props,{key:`${this.id}-label-${f}`,text:u,datum:s,activePoints:l,textAnchor:p,dy:i,dx:a,style:r,x:(()=>{if(!p||"middle"===p)return e.x;const t="end"===p?-1:1;return e.x-t*(o.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,o=n.y-e.height/2,i=n.x-e.width/2,a=n.x+e.width/2,u=[{side:"top",val:o>t.y?o-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:i>t.x?i-t.x:-1}];return F()(u,"val","desc")[0].side}getFlyoutProps(t,n){const{flyoutDimensions:e,flyoutStyle:r,flyoutCenter:o}=n,{x:i,y:a,dx:u,dy:s,datum:l,activePoints:c,index:f,pointerLength:d,pointerWidth:p,cornerRadius:g,events:y,flyoutComponent:m}=t,v=q(t.pointerOrientation,t);return h()({},m.props,{x:i,y:a,dx:u,dy:s,datum:l,activePoints:c,index:f,pointerLength:d,pointerWidth:p,cornerRadius:g,events:y,orientation:v||this.getPointerOrientation({x:i,y:a},o,e),key:`${this.id}-tooltip-${f}`,width:e.width,height:e.height,style:r,center:o})}renderTooltip(t){const n=q(t.active,t),{renderInPortal:e}=t;if(!n)return null;const r=this.getEvaluatedProps(t),{flyoutComponent:o,labelComponent:i,groupComponent:a}=r,u=this.getCalculatedValues(r),s=[p().cloneElement(o,this.getFlyoutProps(r,u)),p().cloneElement(i,this.getLabelProps(r,u))],l=p().cloneElement(a,{role:"presentation",transform:u.transform},s);return e?p().createElement(Ca,null,l):l}render(){const t=function(t,n,e){const r=W(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),o=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(p().Children.toArray(r.children))}),!1);return n(p().Children.toArray(t.children))}(t),i=void 0===o?{}:{horizontal:o};return h()(i,t,r,n)}(this.props,ds,"tooltip");return this.renderTooltip(t)}}var gs=r(5395),ys=r.n(gs),ms=r(7491),vs=r.n(ms),xs=r(6898);const bs=new class{withinBounds(t,n){const{width:e,height:r,polar:o,origin:i,scale:a}=t,u=R(t,"voronoiPadding"),{x:s,y:l}=n;if(o){const t=Math.pow(s-i.x,2)+Math.pow(l-i.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:M(t.domain.x),y:M(t.domain.y)},e=p().Children.toArray(t.children),r=(e,r,o)=>{const i=o&&o.type&&o.type.continuous,a=o?o.props&&o.props.style:t.style;return e.map(((e,o)=>{const{x:u,y:s,y0:l,x0:c}=H(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:o,childName:r,continuous:i,style:a},e)}))};if(t.data)return r(t.data);const o=t=>{const n=$i(t);return Array.isArray(n)&&n.length>0?n:void 0};return J(e,((n,e)=>{const i=(n.props||{}).name||e,a=t.voronoiBlacklist||[],u=a.filter((t=>!!t&&"string"==typeof t.valueOf())),s=a.filter(ys()).some((t=>t.test(i)));if(!Ni(n)||u.includes(i)||s)return null;const l=(n.type&&Z(n.type.getData)?n.type.getData:o)(n.props);return l?r(l,i,n):null}),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:o}=n;return Math.pow(r-t[0],2)+Math.pow(o-t[1],2)<Math.pow(e,2)}getVoronoiPoints(t,n){const e=this.getDatasets(t),r=e.map((n=>{const{x:e,y:r}=I(t,n);return[e,r]})),o=xs.Z.from(r).find(n.x,n.y);return{points:this.withinRadius(r[o],n,t.radius)?this.findPoints(e,e[o]):[],index:o}}getActiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:o,activateLabels:i,labels:u}=t;if(!o&&!i)return[];const s=o?["data"]:[],l=u&&!i?s:s.concat("labels");return a()(l)?[]:l.map((t=>{const o=!0===r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:o,target:t,mutation:()=>({active:!0})}}))}getInactiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:o,activateLabels:i,labels:u}=t;if(!o&&!i)return[];const s=o?["data"]:[],l=u&&!i?s:s.concat("labels");return a()(l)?[]:l.map((t=>{const o=r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:o,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){Z(t.onActivated)&&t.onActivated(n,t)}onDeactivated(t,n){Z(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||k(t),o=A(t,r);if(!this.withinBounds(n,o)){this.onDeactivated(n,e);const t=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return this.getParentMutation([],o,r).concat(...t)}const{points:i=[],index:a}=this.getVoronoiPoints(n,o),u=this.getParentMutation(i,o,r,a);if(e.length&&vs()(i,e))return u;this.onActivated(n,i),this.onDeactivated(n,e);const s=i.length?i.map((t=>this.getActiveMutations(n,t))):[],l=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return u.concat(...l,...s)};onMouseMove=v()(this.handleMouseMove,32,{leading:!0,trailing:!1})},Ms={activateData:!0,activateLabels:!0,labelComponent:p().createElement(ps,null),voronoiPadding:5},ws=t=>U()(t,["_x","_x1","_x0","_y","_y1","_y0"]),Ds=t=>{const n={...Ms,...t},{children:e}=n,r=(t,e)=>{const{labels:r,labelComponent:o,theme:i}=n,a=o.props||{},u=i&&i.voronoi&&i.voronoi.style?i.voronoi.style:{},s="flyout"===e?a.flyoutStyle:a.style;return t.reduce(((t,n,o)=>{const i=h()({},a,{datum:n,active:!0}),l=Z(r)?r(i):void 0,c=void 0!==l?`${l}`.split("\n"):[],f=n.style&&n.style[e]||{},d=Array.isArray(s)?s[o]:s,p=V(h()({},d,f,u[e]),i),g=c.length?c.map((()=>p)):[p];return t.concat(g)}),[])},o=t=>{const{labels:e,scale:o,labelComponent:i,theme:a,width:u,height:s}=n,l=i.props||{},c=t.reduce(((t,n)=>{const r=h()({},l,{datum:n,active:!0}),o=Z(e)?e(r):null;return null==o?t:t.concat(`${o}`.split("\n"))}),[]),{childName:f,eventKey:d,style:p,continuous:g,...y}=t[0],m=n.name===f?f:`${n.name}-${f}`,v=h()({key:`${m}-${d}-voronoi-tooltip`,id:`${m}-${d}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:t,datum:y,scale:o,theme:a},l,{text:c,width:u,height:s,style:r(t,"labels"),flyoutStyle:r(t,"flyout")[0]},(t=>{const{voronoiDimension:e,horizontal:r,mouseFollowTooltips:o}=n,i=ws(t[0]),a=e&&t.length>1,u=void 0!==i._y1?i._y1:i._y;return{orientation:o?void 0:r?u<0?"left":"right":u<0?"bottom":"top",pointerLength:a?0:void 0,constrainToVisibleArea:!(!a&&!o)||void 0}})(t)),x=((t,e)=>{const{mousePosition:r,mouseFollowTooltips:o}=n,i=(()=>{const{horizontal:t,voronoiDimension:e}=n;return t&&e?"x"===e?"y":"x":e})(),a=ws(e[0]),u=I(n,a);let s=o?r:void 0;if(!i||e.length<2)return{...u,center:h()({},t.center,s)};const l="y"===i?r.x:u.x,c="x"===i?r.y:u.y;return s=o?r:{x:l,y:c},{x:l,y:c,center:h()({},t.center,s)}})(v,t);return h()({},x,v)};return{props:n,children:[...p().Children.toArray(e),(()=>{const{labels:t,activePoints:e,labelComponent:r}=n;if(!t)return null;if(Array.isArray(e)&&e.length){const t=o(e),{text:n}=t;return(Array.isArray(n)?n.filter(Boolean).length:n)?p().cloneElement(r,t):null}return null})()]}},ks=t=>{const{props:n,children:e}=Ds(t);return p().createElement(va,n,e)};function As(){return As=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},As.apply(this,arguments)}ks.role="container",ks.defaultEvents=t=>{const n={...Ms,...t},e=(t,e)=>(r,o,i,a)=>e||n.disable?{}:t(r,{...n,...o},i,a);return[{target:"parent",eventHandlers:{onMouseLeave:e(bs.onMouseLeave),onTouchCancel:e(bs.onMouseLeave),onMouseMove:e(bs.onMouseMove),onTouchMove:e(bs.onMouseMove)}},{target:"data",eventHandlers:n.disable?{}:{onMouseOver:()=>null,onMouseOut:()=>null,onMouseMove:()=>null}}]};const Ss=(0,d.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:q(r,t)?.toString(),tabIndex:q(o,t),...a};return e?p().createElement("line",As({},u,{ref:n}),p().createElement("desc",null,e)):p().createElement("line",As({},u,{ref:n}))})),Cs={lineComponent:p().createElement(Ss,null),role:"presentation",shapeRendering:"auto"},Os=t=>{const n=(t=>{const n=q(t.ariaLabel,t),e=q(t.desc,t),r=q(t.id,t),o=V(Object.assign({stroke:"black"},t.style),t),i=q(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:o,tabIndex:i})})(h()({},t,Cs));return p().cloneElement(n.lineComponent,{...n.events,"aria-label":n.ariaLabel,style:n.style,desc:n.desc,tabIndex:n.tabIndex,className:n.className,role:n.role,shapeRendering:n.shapeRendering,x1:n.x1,x2:n.x2,y1:n.y1,y2:n.y2,transform:n.transform,clipPath:n.clipPath})},Es=new class{getDimension(t){const{horizontal:n,cursorDimension:e}=t;return n&&e?"x"===e?"y":"x":e}withinBounds(t,n){const{x1:e,x2:r,y1:o,y2:i}=Q(n,Number),{x:a,y:u}=Q(t,Number);return a>=Math.min(e,r)&&a<=Math.max(e,r)&&u>=Math.min(o,i)&&u<=Math.max(o,i)}handleMouseMove=(t,n)=>{const{onCursorChange:e,domain:r}=n,o=this.getDimension(n),i=n.parentSVG||k(t),a=A(t,i);let u=C(n,n.scale,a.x,a.y);return this.withinBounds(u,{x1:r.x[0],x2:r.x[1],y1:r.y[0],y2:r.y[1]})||(u=null),Z(e)&&(u?e(o?u[o]:u,n):u!==n.cursorValue&&e(n.defaultCursorValue||null,n)),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:u,parentSVG:i})}]};onMouseMove=v()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseLeave=this.handleMouseMove;onTouchEnd=(t,n)=>{const{onCursorChange:e}=n;return Z(n.onCursorChange)&&e(null,n),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]}},js={cursorLabelComponent:p().createElement(ou,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:p().createElement(Os,null)},_s=t=>{const n={...js,...t},{children:e}=n;return{props:n,children:[...p().Children.toArray(e),...(()=>{const{scale:t,cursorLabelComponent:e,cursorLabel:r,cursorComponent:o,width:i,height:a,name:u,horizontal:s,theme:l}=n,c=Es.getDimension(n),f=(()=>{const{cursorValue:t,defaultCursorValue:e,domain:r,cursorDimension:o}=n;return t||("number"==typeof e?{x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2,...o?{[o]:e}:{}}:e)})(),d=(()=>{const{cursorLabelOffset:t}=n;return"number"==typeof t?{x:t,y:t}:t})();if(!f)return[];const g=[],y=void 0===n.padding?R((Array.isArray(n.children)?n.children.find((t=>ta()(t.props)&&void 0!==t.props.padding)):n.children)?.props):R(n),m=t&&"x"in t&&"y"in t&&"function"==typeof t.y&&"function"==typeof t.x?{x:s?t.y(f.y):t.x(f.x),y:s?t.x(f.x):t.y(f.y)}:{x:f.x,y:f.y};if(r){let t=h()({active:!0},e.props,{x:m.x+d.x,y:m.y+d.y,datum:f,active:!0,key:`${u}-cursor-label`});if("tooltip"===((v=e)&&v.type&&v.type.role)){const n=l&&l.tooltip||{};t=h()({},t,n)}g.push(p().cloneElement(e,h()({},t,{text:q(r,t)})))}var v;const x=Object.assign({stroke:"black"},o.props.style);return"x"!==c&&void 0!==c||g.push(p().cloneElement(o,{key:`${u}-x-cursor`,x1:m.x,x2:m.x,y1:y.top,y2:("number"==typeof a?a:0)-y.bottom,style:x})),"y"!==c&&void 0!==c||g.push(p().cloneElement(o,{key:`${u}-y-cursor`,x1:y.left,x2:("number"==typeof i?i:0)-y.right,y1:m.y,y2:m.y,style:x})),g})()]}},Ts=t=>{const{props:n,children:e}=_s(t);return p().createElement(va,n,e)};Ts.role="container",Ts.defaultEvents=t=>{const n={...js,...t},e=(t,e)=>(r,o,i,a)=>e||n.disable?{}:t(r,{...n,...o},i,a);return[{target:"parent",eventHandlers:{onMouseLeave:e(Es.onMouseLeave),onMouseMove:e(Es.onMouseMove),onTouchMove:e(Es.onMouseMove)}}]};const $s={getDimension(t){const{horizontal:n,brushDimension:e}=t;return n&&e?"x"===e?"y":"x":e},withinBounds(t,n,e){const{x1:r,x2:o,y1:i,y2:a}=Q(n,Number),{x:u,y:s}=Q(t,Number),l=e?e/2:0;return u+l>=Math.min(r,o)&&u-l<=Math.max(r,o)&&s+l>=Math.min(i,a)&&s-l<=Math.max(i,a)},getDomainBox(t,n,e){const r=this.getDimension(t),o=h()({},n,t.domain),i=h()({},e,o),a=S(t,o),u=S(t,i);return{x1:"y"!==r?Math.min(...u.x):Math.min(...a.x),x2:"y"!==r?Math.max(...u.x):Math.max(...a.x),y1:"x"!==r?Math.min(...u.y):Math.min(...a.y),y2:"x"!==r?Math.max(...u.y):Math.max(...a.y)}},getHandles(t,n){const e=this.getDimension(t),{x1:r,x2:o,y1:i,y2:a}=n,u=Math.min(r,o),s=Math.max(r,o),l=Math.min(i,a),c=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==e&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==e&&{x1:s-f,x2:s+f,y1:i,y2:a},top:"x"!==e&&{x1:r,x2:o,y1:l-f,y2:l+f},bottom:"x"!==e&&{x1:r,x2:o,y1:c-f,y2:c+f}}},getActiveHandles(t,n,e){const r=this.getHandles(n,e),o=["top","bottom","left","right"].reduce(((n,e)=>r[e]&&this.withinBounds(t,r[e])?n.concat(e):n),[]);return o.length&&o},getResizeMutation(t,n){const{x1:e,y1:r,x2:o,y2:i}=t,a={left:{x1:Math.max(e,o),x2:Math.min(e,o),y1:r,y2:i},right:{x1:Math.min(e,o),x2:Math.max(e,o),y1:r,y2:i},top:{y1:Math.max(r,i),y2:Math.min(r,i),x1:e,x2:o},bottom:{y1:Math.min(r,i),y2:Math.max(r,i),x1:e,x2:o}};return n.reduce(((t,n)=>Object.assign(t,a[n])),{})},getMinimumDomain:()=>({x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}),getDefaultBrushArea(t,n,e){const{domain:r,fullDomain:o,scale:i,horizontal:a,allowResize:u}=t,s=u||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===s)return this.getMinimumDomain();if("disable"===s)return n;if("move"===s){const r=this.getDomainBox(t,o,n),u=t.parentSVG||k(e),s=this.panBox({...t,...r,brushDomain:n,startX:(r.x1+r.x2)/2,startY:(r.y1+r.y2)/2},A(e,u)),l=t.fullDomainBox||this.getDomainBox(t,o);return O({...this.constrainBox(s,l),scale:i,horizontal:a})}return r},getSelectionMutation(t,n,e){const{x:r,y:o}=t,{x1:i,x2:a,y1:u,y2:s}=n;return{x1:"y"!==e?r:i,y1:"x"!==e?o:u,x2:"y"!==e?r:a,y2:"x"!==e?o:s}},panBox(t,n){const{domain:e,startX:r,startY:o}=t,i=this.getDimension(t),a=h()({},t.brushDomain,e),u=h()({},t.fullDomain,e),{x1:s,x2:l,y1:c,y2:f}=t.x1?t:this.getDomainBox(t,u,a),{x:d,y:p}=n,g=r?r-d:0,y=o?o-p:0;return{x1:"y"!==i?Math.min(s,l)-g:Math.min(s,l),x2:"y"!==i?Math.max(s,l)-g:Math.max(s,l),y1:"x"!==i?Math.min(c,f)-y:Math.min(c,f),y2:"x"!==i?Math.max(c,f)-y:Math.max(c,f)}},constrainBox(t,n){const{x1:e,y1:r,x2:o,y2:i}=Q(n,Number);return{x1:t.x2>o?o-Math.abs(t.x2-t.x1):Math.max(t.x1,e),y1:t.y2>i?i-Math.abs(t.y2-t.y1):Math.max(t.y1,r),x2:t.x1<e?e+Math.abs(t.x2-t.x1):Math.min(t.x2,o),y2:t.y1<r?r+Math.abs(t.y2-t.y1):Math.min(t.y2,i)}},constrainPoint(t,n){const{x1:e,y1:r,x2:o,y2:i}=Q(n,Number);return{x:Math.min(Math.max(t.x,e),o),y:Math.min(Math.max(t.y,r),i)}},hasMoved(t){const{x1:n,x2:e,y1:r,y2:o,mouseMoveThreshold:i}=t,a=this.getDimension(t),u=Math.abs(n-e)>=i,s=Math.abs(r-o)>=i;switch(a){case"x":return u;case"y":return s;default:return u||s}},onMouseDown(t,n){t.preventDefault();const{handleWidth:e,cachedBrushDomain:r,domain:o,allowResize:i,allowDrag:a,allowDraw:u}=n,s=this.getDimension(n),l=i||n.defaultBrushArea?n.defaultBrushArea:"move";if(!i&&!a)return{};const c=n.fullDomainBox||this.getDomainBox(n,o),f=n.parentSVG||k(t),{x:d,y:p}=A(t,f);if(!this.withinBounds({x:d,y:p},c,e))return{};const g=h()({},n.brushDomain,o),y=vs()(g,r)?n.currentDomain||g||o:g||o,m=this.getDomainBox(n,o,y),v=i&&this.getActiveHandles({x:d,y:p},n,m);return v?[{target:"parent",mutation:()=>({isSelecting:!0,domainBox:m,fullDomainBox:c,cachedBrushDomain:g,currentDomain:y,parentSVG:f,...this.getResizeMutation(m,v)})}]:this.withinBounds({x:d,y:p},m)&&!vs()(o,y)?[{target:"parent",mutation:()=>({isPanning:a,startX:d,startY:p,domainBox:m,fullDomainBox:c,currentDomain:y,cachedBrushDomain:g,parentSVG:f,...m})}]:u?[{target:"parent",mutation:()=>({isSelecting:i||"move"===l,domainBox:m,fullDomainBox:c,parentSVG:f,cachedBrushDomain:g,cachedCurrentDomain:y,currentDomain:this.getMinimumDomain(),...this.getSelectionMutation({x:d,y:p},m,s)})}]:{}},onGlobalMouseMove(t,n){const{scale:e,isPanning:r,isSelecting:o,fullDomainBox:i,onBrushDomainChange:a,allowResize:u,allowDrag:s,horizontal:l,mouseMoveThreshold:c,parentSVG:f}=n,d=this.getDimension(n),{x:p,y:g}=A(t,f);if(!u&&!s||c>0&&!this.hasMoved({...n,x2:p,y2:g}))return{};if(s&&r){const{startX:t,startY:r}=n,o=this.panBox(n,{x:p,y:g}),u=this.constrainBox(o,i),s=O({...u,scale:e,horizontal:l}),c={currentDomain:s,parentSVG:f,startX:o.x2>=i.x2||o.x1<=i.x1?t:p,startY:o.y2>=i.y2||o.y1<=i.y1?r:g,...u};return Z(a)&&a(s,h()({},c,n)),[{target:"parent",mutation:()=>c}]}if(u&&o){const{x:t,y:r}=this.constrainPoint({x:"y"!==d?p:n.x2,y:"x"!==d?g:n.y2},i),o=O({x2:t,y2:r,x1:n.x1,y1:n.y1,scale:e,horizontal:l}),u={x2:t,y2:r,currentDomain:o,parentSVG:f};return Z(a)&&a(o,h()({},u,n)),[{target:"parent",mutation:()=>u}]}return{}},onGlobalMouseUp(t,n){if(!n.isPanning&&!n.isSelecting)return{};const{x1:e,y1:r,x2:o,y2:i,isPanning:a,isSelecting:u,onBrushDomainChange:s,onBrushDomainChangeEnd:l,onBrushCleared:c,currentDomain:f,allowResize:d,allowDrag:p}=n,g=d||n.defaultBrushArea?n.defaultBrushArea:"move",y={isPanning:!1,isSelecting:!1};if(!d&&(void 0===g||"none"===g)||e!==o&&r!==i)(p&&a||d&&u)&&Z(l)&&l(f,h()({},y,n));else{const e=n.cachedCurrentDomain||f,r=this.getDefaultBrushArea(n,e,t);y.currentDomain=r,Z(s)&&s(r,h()({},y,n)),Z(l)&&l(r,h()({},y,n)),Z(c)&&c(r,h()({},y,n))}return[{target:"parent",mutation:()=>y}]}},Fs={...$s,onMouseDown:$s.onMouseDown.bind($s),onGlobalMouseUp:$s.onGlobalMouseUp.bind($s),onGlobalMouseMove:v()($s.onGlobalMouseMove.bind($s),16,{leading:!0,trailing:!1})},Ns={allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:p().createElement(sa,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:p().createElement(sa,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0},Ps=t=>{const n={...Ns,...t},{children:e}=n,r=t=>{const{handleWidth:e,handleStyle:r,handleComponent:o,name:i}=n,a=Fs.getDomainBox(n,t),{x1:u,x2:s,y1:l,y2:c}=a,{top:f,bottom:d,left:g,right:y}=Fs.getHandles(n,a),m=Math.abs(s-u)||1,v=Math.abs(c-l)||1,x=o.props&&o.props.style||{},b=h()({},x,r),M=(()=>{const t={yProps:"ns-resize",xProps:"ew-resize"};return!n.allowResize&&n.allowDrag?(t.xProps="move",t.yProps="move"):n.allowResize||n.allowDrag||(t.xProps="auto",t.yProps="auto"),t})(),w={style:b,width:m,height:e,cursor:M.yProps},D={style:b,width:e,height:v,cursor:M.xProps},k={top:f&&Object.assign({x:f.x1,y:f.y1},w),bottom:d&&Object.assign({x:d.x1,y:d.y1},w),left:g&&Object.assign({y:g.y1,x:g.x1},D),right:y&&Object.assign({y:y.y1,x:y.x1},D)},A=["top","bottom","left","right"].reduce(((t,n)=>k[n]?t.concat(p().cloneElement(o,Object.assign({key:`${i}-handle-${n}`},k[n]))):t),[]);return A.length?A:null};return{props:n,children:[...p().Children.toArray(e),...(()=>{const{currentDomain:t,cachedBrushDomain:e}=n,o=h()({},n.brushDomain,n.domain),i=vs()(o,e)?h()({},t,o):o,a=(t=>{const{x:e,y:r}=t,{brushStyle:o,brushComponent:i,name:a}=n,u=i.props&&i.props.style,s=n.allowDrag||n.allowResize?"move":"auto";return e[0]!==e[1]&&r[0]!==r[1]?p().cloneElement(i,{key:`${a}-brush`,width:Math.abs(e[1]-e[0])||1,height:Math.abs(r[1]-r[0])||1,x:Math.min(e[0],e[1]),y:Math.min(r[0],r[1]),cursor:s,style:h()({},u,o)}):null})(S(n,i));return a?[a,r(i)]:[]})()]}},zs=t=>{const{props:n,children:e}=Ps(t);return p().createElement(va,n,e)};function Ls(t){return t?Array.isArray(t)?t:[t]:[]}zs.role="container",zs.defaultEvents=t=>{const n={...Ns,...t},e=(t,e)=>(r,o,i,a)=>n.disable||e?.(o)?{}:t(r,{...n,...o},i,a);return[{target:"parent",eventHandlers:{onMouseDown:e(Fs.onMouseDown),onTouchStart:e(Fs.onMouseDown),onGlobalMouseMove:e(Fs.onGlobalMouseMove,(t=>!t.isPanning&&!t.isSelecting)),onGlobalTouchMove:e(Fs.onGlobalMouseMove,(t=>!t.isPanning&&!t.isSelecting)),onGlobalMouseUp:e(Fs.onGlobalMouseUp),onGlobalTouchEnd:e(Fs.onGlobalMouseUp),onGlobalTouchCancel:e(Fs.onGlobalMouseUp)}}]};const Bs={zoom:ba,selection:ka,brush:Ps,cursor:_s,voronoi:Ds};function Us(t,n){return function(r,o){const i=t[r],u=t[o],l=Bs[r],f=Bs[o],h=t=>{const{children:e,props:r}=l(t),{children:o,props:i}=f({...r,children:e});return p().createElement(n,i,o)};return h.displayName=`Victory${r}${o}Container`,h.role="container",h.defaultEvents=t=>(t=>{const n=s()(t,"target"),r=e()(n).map((t=>{let[n,e]=t;const r=e.filter(Boolean);return a()(r)?null:{target:n,eventHandlers:(o=e.map((t=>t.eventHandlers)),o.reduce(((t,n)=>(c()(t,((t,e)=>{const r=n[e];n[e]=r?function(){const n=Ls(r(...arguments)),e=Ls(t(...arguments));return n.concat(e)}:t})),n))))};var o}));return r.filter(Boolean)})([...i.defaultEvents(t),...u.defaultEvents(t)]),h}}const Ws=Us({zoom:Ma,selection:Aa,brush:zs,cursor:Ts,voronoi:ks},va)}(),o}()}));
|
|
2
2
|
//# sourceMappingURL=victory-create-container.min.js.map
|