victory-create-container 36.9.2 → 37.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/victory-create-container.js +5167 -6947
- package/dist/victory-create-container.min.js +1 -1
- package/es/create-container.js +58 -145
- package/lib/create-container.js +59 -155
- package/lib/index.js +0 -2
- package/package.json +7 -7
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryCreateContainer=e(require("react")):t.VictoryCreateContainer=e(t.React)}(self,(t=>(()=>{var e={3644:function(t){t.exports=function(){"use strict";var t=Math.pow(2,-52),e=new Uint32Array(512),n=function(t){var e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;var n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()};function r(t,e,n,r){var o=t-n,i=e-r;return o*o+i*i}function o(t,e,n,r,o,i){var a=(r-e)*(o-t),u=(n-t)*(i-e);return Math.abs(a-u)>=33306690738754716e-32*Math.abs(a+u)?a-u:0}function i(t,e,n,r,i,a){return(o(i,a,t,e,n,r)||o(t,e,n,r,i,a)||o(n,r,i,a,t,e))<0}function a(t,e,n,r,o,i){var a=n-t,u=r-e,c=o-t,l=i-e,s=a*a+u*u,f=c*c+l*l,p=.5/(a*l-u*c),h=(l*s-u*f)*p,y=(a*f-c*s)*p;return h*h+y*y}function u(t,e,n,r){if(r-n<=20)for(var o=n+1;o<=r;o++){for(var i=t[o],a=e[i],l=o-1;l>=n&&e[t[l]]>a;)t[l+1]=t[l--];t[l+1]=i}else{var s=n+1,f=r;c(t,n+r>>1,s),e[t[n]]>e[t[r]]&&c(t,n,r),e[t[s]]>e[t[r]]&&c(t,s,r),e[t[n]]>e[t[s]]&&c(t,n,s);for(var p=t[s],h=e[p];;){do{s++}while(e[t[s]]<h);do{f--}while(e[t[f]]>h);if(f<s)break;c(t,s,f)}t[n+1]=t[f],t[f]=p,r-s+1>=f-n?(u(t,e,s,r),u(t,e,n,f-1)):(u(t,e,n,f-1),u(t,e,s,r))}}function c(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function l(t){return t[0]}function s(t){return t[1]}return n.from=function(t,e,r){void 0===e&&(e=l),void 0===r&&(r=s);for(var o=t.length,i=new Float64Array(2*o),a=0;a<o;a++){var u=t[a];i[2*a]=e(u),i[2*a+1]=r(u)}return new n(i)},n.prototype.update=function(){for(var e=this,n=e.coords,o=e._hullPrev,c=e._hullNext,l=e._hullTri,s=e._hullHash,f=n.length>>1,p=1/0,h=1/0,y=-1/0,d=-1/0,v=0;v<f;v++){var g=n[2*v],b=n[2*v+1];g<p&&(p=g),b<h&&(h=b),g>y&&(y=g),b>d&&(d=b),this._ids[v]=v}for(var m,x,O,w=(p+y)/2,j=(h+d)/2,M=1/0,P=0;P<f;P++){var S=r(w,j,n[2*P],n[2*P+1]);S<M&&(m=P,M=S)}var A=n[2*m],k=n[2*m+1];M=1/0;for(var D=0;D<f;D++)if(D!==m){var E=r(A,k,n[2*D],n[2*D+1]);E<M&&E>0&&(x=D,M=E)}for(var C=n[2*x],_=n[2*x+1],T=1/0,N=0;N<f;N++)if(N!==m&&N!==x){var I=a(A,k,C,_,n[2*N],n[2*N+1]);I<T&&(O=N,T=I)}var R=n[2*O],z=n[2*O+1];if(T===1/0){for(var U=0;U<f;U++)this._dists[U]=n[2*U]-n[0]||n[2*U+1]-n[1];u(this._ids,this._dists,0,f-1);for(var L=new Uint32Array(f),F=0,B=0,H=-1/0;B<f;B++){var W=this._ids[B];this._dists[W]>H&&(L[F++]=W,H=this._dists[W])}return this.hull=L.subarray(0,F),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(i(A,k,C,_,R,z)){var $=x,V=C,Y=_;x=O,C=R,_=z,O=$,R=V,z=Y}var q=function(t,e,n,r,o,i){var a=n-t,u=r-e,c=o-t,l=i-e,s=a*a+u*u,f=c*c+l*l,p=.5/(a*l-u*c);return{x:t+(l*s-u*f)*p,y:e+(a*f-c*s)*p}}(A,k,C,_,R,z);this._cx=q.x,this._cy=q.y;for(var G=0;G<f;G++)this._dists[G]=r(n[2*G],n[2*G+1],q.x,q.y);u(this._ids,this._dists,0,f-1),this._hullStart=m;var K=3;c[m]=o[O]=x,c[x]=o[m]=O,c[O]=o[x]=m,l[m]=0,l[x]=1,l[O]=2,s.fill(-1),s[this._hashKey(A,k)]=m,s[this._hashKey(C,_)]=x,s[this._hashKey(R,z)]=O,this.trianglesLen=0,this._addTriangle(m,x,O,-1,-1,-1);for(var Z=0,X=void 0,Q=void 0;Z<this._ids.length;Z++){var J=this._ids[Z],tt=n[2*J],et=n[2*J+1];if(!(Z>0&&Math.abs(tt-X)<=t&&Math.abs(et-Q)<=t)&&(X=tt,Q=et,J!==m&&J!==x&&J!==O)){for(var nt=0,rt=0,ot=this._hashKey(tt,et);rt<this._hashSize&&(-1===(nt=s[(ot+rt)%this._hashSize])||nt===c[nt]);rt++);for(var it=nt=o[nt],at=void 0;at=c[it],!i(tt,et,n[2*it],n[2*it+1],n[2*at],n[2*at+1]);)if((it=at)===nt){it=-1;break}if(-1!==it){var ut=this._addTriangle(it,J,c[it],-1,-1,l[it]);l[J]=this._legalize(ut+2),l[it]=ut,K++;for(var ct=c[it];at=c[ct],i(tt,et,n[2*ct],n[2*ct+1],n[2*at],n[2*at+1]);)ut=this._addTriangle(ct,J,at,l[J],-1,l[ct]),l[J]=this._legalize(ut+2),c[ct]=ct,K--,ct=at;if(it===nt)for(;i(tt,et,n[2*(at=o[it])],n[2*at+1],n[2*it],n[2*it+1]);)ut=this._addTriangle(at,J,it,-1,l[it],l[at]),this._legalize(ut+2),l[at]=ut,c[it]=it,K--,it=at;this._hullStart=o[J]=it,c[it]=o[ct]=J,c[J]=ct,s[this._hashKey(tt,et)]=J,s[this._hashKey(n[2*it],n[2*it+1])]=it}}}this.hull=new Uint32Array(K);for(var lt=0,st=this._hullStart;lt<K;lt++)this.hull[lt]=st,st=c[st];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},n.prototype._hashKey=function(t,e){return Math.floor((n=t-this._cx,r=e-this._cy,o=n/(Math.abs(n)+Math.abs(r)),(r>0?3-o:1+o)/4*this._hashSize))%this._hashSize;var n,r,o},n.prototype._legalize=function(t){for(var n=this,r=n._triangles,o=n._halfedges,i=n.coords,a=0,u=0;;){var c=o[t],l=t-t%3;if(u=l+(t+2)%3,-1!==c){var s=c-c%3,f=l+(t+1)%3,p=s+(c+2)%3,h=r[u],y=r[t],d=r[f],v=r[p];if(x=i[2*h],O=i[2*h+1],w=i[2*y],j=i[2*y+1],M=i[2*d],P=i[2*d+1],S=i[2*v],A=i[2*v+1],k=void 0,D=void 0,E=void 0,C=void 0,_=void 0,T=void 0,N=void 0,I=void 0,(k=x-S)*((C=j-A)*(I=(_=M-S)*_+(T=P-A)*T)-(N=(E=w-S)*E+C*C)*T)-(D=O-A)*(E*I-N*_)+(k*k+D*D)*(E*T-C*_)<0){r[t]=v,r[c]=h;var g=o[p];if(-1===g){var b=this._hullStart;do{if(this._hullTri[b]===p){this._hullTri[b]=t;break}b=this._hullPrev[b]}while(b!==this._hullStart)}this._link(t,g),this._link(c,o[u]),this._link(u,p);var m=s+(c+1)%3;a<e.length&&(e[a++]=m)}else{if(0===a)break;t=e[--a]}}else{if(0===a)break;t=e[--a]}}var x,O,w,j,M,P,S,A,k,D,E,C,_,T,N,I;return u},n.prototype._link=function(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)},n.prototype._addTriangle=function(t,e,n,r,o,i){var a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,o),this._link(a+2,i),this.trianglesLen+=3,a},n}()},6898:(t,e,n)=>{"use strict";e.Z=void 0;var r,o=(r=n(3644))&&r.__esModule?r:{default:r};function i(t){return t[0]}function a(t){return t[1]}function u(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}var c=function(){function t(t){var e=new o.default(t);this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=e.coords,this._init(e)}var e=t.prototype;return e._init=function(t){var e=t,n=this.points;if(e.hull&&e.hull.length>2&&function(t){for(var e=t.triangles,n=t.coords,r=0;r<e.length;r+=3){var o=2*e[r],i=2*e[r+1],a=2*e[r+2];if((n[a]-n[o])*(n[i+1]-n[o+1])-(n[i]-n[o])*(n[a+1]-n[o+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:n.length/2},(function(t,e){return e})).sort((function(t,e){return n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]}));for(var r=this.collinear[0],i=this.collinear[this.collinear.length-1],a=[n[2*r],n[2*r+1],n[2*i],n[2*i+1]],c=1e-8*Math.sqrt(Math.pow(a[3]-a[1],2)+Math.pow(a[2]-a[0],2)),l=0,s=n.length/2;l<s;++l){var f=u(n[2*l],n[2*l+1],c);n[2*l]=f[0],n[2*l+1]=f[1]}t=new o.default(n)}for(var p=this.halfedges=t.halfedges,h=this.hull=t.hull,y=this.triangles=t.triangles,d=this.inedges.fill(-1),v=this._hullIndex.fill(-1),g=0,b=p.length;g<b;++g){var m=y[g%3==2?g-2:g+1];-1!==p[g]&&-1!==d[m]||(d[m]=g)}for(var x=0,O=h.length;x<O;++x)v[h[x]]=x;h.length<=2&&h.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=h[0],this.triangles[1]=h[1],this.triangles[2]=h[1],d[h[0]]=1,2===h.length&&(d[h[1]]=0))},e.neighbors=function(t){var e=[],n=this.inedges,r=this.hull,o=this._hullIndex,i=this.halfedges,a=this.triangles,u=n[t];if(-1===u)return e;var c=u,l=-1;do{if(l=a[c],e.push(l),a[c=c%3==2?c-2:c+1]!==t)break;if(-1===(c=i[c])){var s=r[(o[t]+1)%r.length];s!==l&&e.push(s);break}}while(c!==u);return e},e.find=function(t,e,n){if(void 0===n&&(n=0),(t=+t)!=t||(e=+e)!=e)return-1;for(var r,o=n;(r=this._step(n,t,e))>=0&&r!==n&&r!==o;)n=r;return r},e._step=function(t,e,n){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(e-o[2*t],2)+Math.pow(n-o[2*t+1],2),u=this.neighbors(t),c=Array.isArray(u),l=0;for(u=c?u:u[Symbol.iterator]();;){var s;if(c){if(l>=u.length)break;s=u[l++]}else{if((l=u.next()).done)break;s=l.value}var f=s,p=Math.pow(e-o[2*f],2)+Math.pow(n-o[2*f+1],2);p<a&&(a=p,i=f)}return i},t}();e.Z=c,c.from=function(t,e,n,r){return void 0===e&&(e=i),void 0===n&&(n=a),new c(function(t,e,n,r){for(var o=t.length,i=new Float64Array(2*o),a=0;a<o;++a){var u=t[a];i[2*a]=e.call(r,u,a,t),i[2*a+1]=n.call(r,u,a,t)}return i}(t,e,n,r))}},1179:t=>{t.exports=function(){}},503:(t,e,n)=>{var r=n(1171),o=n(7838),i=n(4859),a=n(4073),u=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},3273:(t,e,n)=>{var r=n(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:(t,e,n)=>{var r=n(1171),o=n(7838),i=n(4859),a=n(4073),u=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},2596:(t,e,n)=>{var r=n(2373).Symbol;t.exports=r},6082:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},6649:t=>{t.exports=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}},5510:(t,e,n)=>{var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9955:t=>{t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},8644:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},9559:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},1634:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4132:(t,e,n)=>{var r=n(8347),o=n(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3162:(t,e,n)=>{var r=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4508:t=>{t.exports=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}},8347:(t,e,n)=>{var r=n(5525);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},7451:t=>{t.exports=function(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,n)}),e)}},6457:(t,e,n)=>{var r=n(9559),o=n(3608);t.exports=function t(e,n,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];n>0&&i(s)?n>1?t(s,n-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},320:(t,e,n)=>{var r=n(4710)();t.exports=r},2446:(t,e,n)=>{var r=n(320),o=n(7747);t.exports=function(t,e){return t&&r(t,e,o)}},4432:(t,e,n)=>{var r=n(9026),o=n(3110);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},563:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:t=>{t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},7537:(t,e,n)=>{var r=n(563),o=n(3474);t.exports=function(t){return o(t)&&"[object Date]"==r(t)}},9070:(t,e,n)=>{var r=n(7028),o=n(3474);t.exports=function t(e,n,i,a,u){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,u))}},7028:(t,e,n)=>{var r=n(8708),o=n(8705),i=n(2813),a=n(6682),u=n(9667),c=n(163),l=n(4801),s=n(4289),f="[object Arguments]",p="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,v,g){var b=c(t),m=c(e),x=b?p:u(t),O=m?p:u(e),w=(x=x==f?h:x)==h,j=(O=O==f?h:O)==h,M=x==O;if(M&&l(t)){if(!l(e))return!1;b=!0,w=!1}if(M&&!w)return g||(g=new r),b||s(t)?o(t,e,n,d,v,g):i(t,e,x,n,d,v,g);if(!(1&n)){var P=w&&y.call(t,"__wrapped__"),S=j&&y.call(e,"__wrapped__");if(P||S){var A=P?t.value():t,k=S?e.value():e;return g||(g=new r),v(A,k,n,d,g)}}return!!M&&(g||(g=new r),a(t,e,n,d,v,g))}},9548:(t,e,n)=>{var r=n(8708),o=n(9070);t.exports=function(t,e,n,i){var a=n.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=n[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=n[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var h=new r;if(i)var y=i(f,p,s,t,e,h);if(!(void 0===y?o(p,f,3,i,h):y))return!1}}return!0}},2229:(t,e,n)=>{var r=n(563),o=n(3474);t.exports=function(t){return o(t)&&"[object RegExp]"==r(t)}},3472:(t,e,n)=>{var r=n(758),o=n(5223),i=n(5346),a=n(163),u=n(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:(t,e,n)=>{var r=n(5125)(Object.keys,Object);t.exports=r},383:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},758:(t,e,n)=>{var r=n(9548),o=n(597),i=n(6878);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},5223:(t,e,n)=>{var r=n(9070),o=n(9201),i=n(5066),a=n(726),u=n(5385),c=n(6878),l=n(3110);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},8245:(t,e,n)=>{var r=n(8644),o=n(4432),i=n(3472),a=n(383),u=n(9521),c=n(9110),l=n(9409),s=n(5346),f=n(163);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[s];var p=-1;e=r(e,c(i));var h=a(t,(function(t,n,o){return{criteria:r(e,(function(e){return e(t)})),index:++p,value:t}}));return u(h,(function(t,e){return l(t,e,n)}))}},5436:(t,e,n)=>{var r=n(6371),o=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return o(t,n)}))}},6371:(t,e,n)=>{var r=n(4432),o=n(6539),i=n(9026);t.exports=function(t,e,n){for(var a=-1,u=e.length,c={};++a<u;){var l=e[a],s=r(t,l);n(s,l)&&o(c,i(l,t),s)}return c}},1600:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:(t,e,n)=>{var r=n(4432);t.exports=function(t){return function(e){return r(e,t)}}},6317:(t,e,n)=>{var r=n(5346),o=n(4280),i=n(201);t.exports=function(t,e){return i(o(t,e,r),t+"")}},6539:(t,e,n)=>{var r=n(4132),o=n(9026),i=n(9099),a=n(7709),u=n(3110);t.exports=function(t,e,n,c){if(!a(t))return t;for(var l=-1,s=(e=o(e,t)).length,f=s-1,p=t;null!=p&&++l<s;){var h=u(e[l]),y=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(l!=f){var d=p[h];void 0===(y=c?c(d,h,p):void 0)&&(y=a(d)?d:i(e[l+1])?[]:{})}r(p,h,y),p=p[h]}return t}},9521:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},7556:(t,e,n)=>{var r=n(788);t.exports=function(t,e){for(var n=-1,o=t.length,i=0,a=[];++n<o;){var u=t[n],c=e?e(u):u;if(!n||!r(c,l)){var l=c;a[i++]=0===u?0:u}}return a}},4738:(t,e,n)=>{var r=n(8644);t.exports=function(t,e){return r(e,(function(e){return[e,t[e]]}))}},6316:(t,e,n)=>{var r=n(2596),o=n(8644),i=n(163),a=n(1995),u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},1367:(t,e,n)=>{var r=n(4120),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},9110:t=>{t.exports=function(t){return function(e){return t(e)}}},946:(t,e,n)=>{var r=n(3273),o=n(5510),i=n(9955),a=n(9914),u=n(6602),c=n(6226);t.exports=function(t,e,n){var l=-1,s=o,f=t.length,p=!0,h=[],y=h;if(n)p=!1,s=i;else if(f>=200){var d=e?null:u(t);if(d)return c(d);p=!1,s=a,y=new r}else y=e?[]:h;t:for(;++l<f;){var v=t[l],g=e?e(v):v;if(v=n||0!==v?v:0,p&&g==g){for(var b=y.length;b--;)if(y[b]===g)continue t;e&&y.push(g),h.push(v)}else s(y,g,n)||(y!==h&&y.push(g),h.push(v))}return h}},9914:(t,e,n)=>{var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},674:t=>{t.exports=function(t){return t}},9026:(t,e,n)=>{var r=n(163),o=n(726),i=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},522:(t,e,n)=>{var r=n(1995);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),u=void 0!==e,c=null===e,l=e==e,s=r(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||o&&u&&l||!n&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&n&&i&&!o&&!a||c&&n&&i||!u&&i||!l)return-1}return 0}},9409:(t,e,n)=>{var r=n(522);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,c=n.length;++o<u;){var l=r(i[o],a[o]);if(l)return o>=c?l:l*("desc"==n[o]?-1:1)}return t.index-e.index}},5659:(t,e,n)=>{var r=n(6649),o=n(4508),i=n(3472),a=n(163);t.exports=function(t,e){return function(n,u){var c=a(n)?r:o,l=e?e():{};return c(n,t,i(u,2),l)}}},4710:t=>{t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===n(i[c],c,i))break}return e}}},2740:(t,e,n)=>{var r=n(1179),o=n(5557),i=n(7356),a=n(9267),u=n(163),c=n(7423);t.exports=function(t){return o((function(e){var n=e.length,o=n,l=r.prototype.thru;for(t&&e.reverse();o--;){var s=e[o];if("function"!=typeof s)throw new TypeError("Expected a function");if(l&&!f&&"wrapper"==a(s))var f=new r([],!0)}for(o=f?o:n;++o<n;){s=e[o];var p=a(s),h="wrapper"==p?i(s):void 0;f=h&&c(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?f[a(h[0])].apply(f,h[3]):1==s.length&&c(s)?f[p]():f.thru(s)}return function(){var t=arguments,r=t[0];if(f&&1==t.length&&u(r))return f.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}}))}},6602:t=>{t.exports=function(){}},5976:(t,e,n)=>{var r=n(4738),o=n(9667),i=n(2900),a=n(3757);t.exports=function(t){return function(e){var n=o(e);return"[object Map]"==n?i(e):"[object Set]"==n?a(e):r(e,t(e))}}},5525:(t,e,n)=>{var r=n(3743),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:(t,e,n)=>{var r=n(3273),o=n(1634),i=n(9914);t.exports=function(t,e,n,a,u,c){var l=1&n,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var y=-1,d=!0,v=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++y<s;){var g=t[y],b=e[y];if(a)var m=l?a(b,g,y,e,t,c):a(g,b,y,t,e,c);if(void 0!==m){if(m)continue;d=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(g===t||u(g,t,n,a,c)))return v.push(e)}))){d=!1;break}}else if(g!==b&&!u(g,b,n,a,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},2813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:(t,e,n)=>{var r=n(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,u){var c=1&n,l=r(t),s=l.length;if(s!=r(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),y=u.get(e);if(h&&y)return h==e&&y==t;var d=!0;u.set(t,e),u.set(e,t);for(var v=c;++f<s;){var g=t[p=l[f]],b=e[p];if(i)var m=c?i(b,g,p,e,t,u):i(g,b,p,t,e,u);if(!(void 0===m?g===b||a(g,b,n,i,u):m)){d=!1;break}v||(v="constructor"==p)}if(d&&!v){var x=t.constructor,O=e.constructor;x==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(d=!1)}return u.delete(t),u.delete(e),d}},5557:(t,e,n)=>{var r=n(2645),o=n(4280),i=n(201);t.exports=function(t){return i(o(t,void 0,r),t+"")}},2117:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8143:(t,e,n)=>{var r=n(5125)(Object.keys,Object);t.exports=r},7271:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},7356:t=>{t.exports=function(){}},9267:t=>{t.exports=function(){return""}},597:(t,e,n)=>{var r=n(5385),o=n(7747);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},3743:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},9817:(t,e,n)=>{var r=n(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:(t,e,n)=>{var r=n(9026),o=n(5075),i=n(163),a=n(9099),u=n(8454),c=n(3110);t.exports=function(t,e,n){for(var l=-1,s=(e=r(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&n(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},3608:(t,e,n)=>{var r=n(2596),o=n(5075),i=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},9099:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:t=>{t.exports=function(){return!1}},726:(t,e,n)=>{var r=n(163),o=n(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},7423:t=>{t.exports=function(){return!1}},5782:t=>{t.exports=function(){return!1}},5385:(t,e,n)=>{var r=n(7709);t.exports=function(t){return t==t&&!r(t)}},1171:t=>{t.exports=function(){this.__data__=[],this.size=0}},7838:(t,e,n)=>{var r=n(3162),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},4859:(t,e,n)=>{var r=n(3162);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4073:(t,e,n)=>{var r=n(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:(t,e,n)=>{var r=n(3162);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},2900:t=>{t.exports=function(){return[]}},6878:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},2453:t=>{t.exports=function(t){return t}},2348:(t,e,n)=>{t=n.nmd(t);var r=n(2117),o=e&&!e.nodeType&&e,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:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},4280:(t,e,n)=>{var r=n(6082),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=n(c),r(t,this,l)}}},2373:(t,e,n)=>{var r=n(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},6226:t=>{t.exports=function(){return[]}},3757:t=>{t.exports=function(){return[]}},201:t=>{t.exports=function(t){return t}},7801:(t,e,n)=>{var r=n(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)})),e}));t.exports=a},3110:(t,e,n)=>{var r=n(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},4120:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},5034:(t,e,n)=>{var r=n(7709),o=n(6987),i=n(5812),a=Math.max,u=Math.min;t.exports=function(t,e,n){var c,l,s,f,p,h,y=0,d=!1,v=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var n=c,r=l;return c=l=void 0,y=e,f=t.apply(r,n)}function m(t){return y=t,p=setTimeout(O,e),d?b(t):f}function x(t){var n=t-h;return void 0===h||n>=e||n<0||v&&t-y>=s}function O(){var t=o();if(x(t))return w(t);p=setTimeout(O,function(t){var n=e-(t-h);return v?u(n,s-(t-y)):n}(t))}function w(t){return p=void 0,g&&c?b(t):(c=l=void 0,f)}function j(){var t=o(),n=x(t);if(c=arguments,l=this,h=t,n){if(void 0===p)return m(h);if(v)return clearTimeout(p),p=setTimeout(O,e),b(h)}return void 0===p&&(p=setTimeout(O,e)),f}return e=i(e)||0,r(n)&&(d=!!n.leading,s=(v="maxWait"in n)?a(i(n.maxWait)||0,e):s,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==p&&clearTimeout(p),y=0,c=h=l=p=void 0},j.flush=function(){return void 0===p?f:w(o())},j}},1893:(t,e,n)=>{var r=n(6317),o=n(788),i=n(8286),a=n(8855),u=Object.prototype,c=u.hasOwnProperty,l=r((function(t,e){t=Object(t);var n=-1,r=e.length,l=r>2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(r=1);++n<r;)for(var s=e[n],f=a(s),p=-1,h=f.length;++p<h;){var y=f[p],d=t[y];(void 0===d||o(d,u[y])&&!c.call(t,y))&&(t[y]=s[y])}return t}));t.exports=l},9324:(t,e,n)=>{var r=n(7451),o=n(6317),i=n(5812),a=o((function(t,e,n){return r(t,i(e)||0,n)}));t.exports=a},788:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:(t,e,n)=>{var r=n(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9560:(t,e,n)=>{var r=n(2740)();t.exports=r},3105:(t,e,n)=>{var r=n(2446),o=n(674);t.exports=function(t,e){return t&&r(t,o(e))}},9201:(t,e,n)=>{var r=n(4432);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},9056:(t,e,n)=>{var r=n(8347),o=n(5659),i=Object.prototype.hasOwnProperty,a=o((function(t,e,n){i.call(t,n)?t[n].push(e):r(t,n,[e])}));t.exports=a},5066:(t,e,n)=>{var r=n(6776),o=n(3096);t.exports=function(t,e){return null!=t&&o(t,e,r)}},5346:t=>{t.exports=function(t){return t}},5075:t=>{t.exports=function(){return!1}},163:t=>{var e=Array.isArray;t.exports=e},981:(t,e,n)=>{var r=n(9642),o=n(8454);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4801:t=>{t.exports=function(){return!1}},4295:(t,e,n)=>{var r=n(7537),o=n(9110),i=n(2348),a=i&&i.isDate,u=a?o(a):r;t.exports=u},4155:(t,e,n)=>{var r=n(7190),o=n(9667),i=n(5075),a=n(163),u=n(981),c=n(4801),l=n(5782),s=n(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||c(t)||s(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(f.call(t,n))return!1;return!0}},8254:(t,e,n)=>{var r=n(9070);t.exports=function(t,e){return r(t,e)}},9642:(t,e,n)=>{var r=n(563),o=n(7709);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3849:(t,e,n)=>{var r=n(563),o=n(9817),i=n(3474),a=Function.prototype,u=Object.prototype,c=a.toString,l=u.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==s}},5395:(t,e,n)=>{var r=n(2229),o=n(9110),i=n(2348),a=i&&i.isRegExp,u=a?o(a):r;t.exports=u},1995:t=>{t.exports=function(){return!1}},4289:t=>{t.exports=function(){return!1}},8999:t=>{t.exports=function(t){return void 0===t}},7747:(t,e,n)=>{var r=n(5125)(Object.keys,Object);t.exports=r},8855:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1594:(t,e,n)=>{var r=n(503);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},6051:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},6987:(t,e,n)=>{var r=n(2373);t.exports=function(){return r.Date.now()}},1616:(t,e,n)=>{var r=n(3472),o=n(6051),i=n(4912);t.exports=function(t,e){return i(t,o(r(e)))}},4143:(t,e,n)=>{var r=n(8245),o=n(163);t.exports=function(t,e,n,i){return null==t?[]:(o(e)||(e=null==e?[]:[e]),o(n=i?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},9082:(t,e,n)=>{var r=n(5436),o=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},4912:(t,e,n)=>{var r=n(8644),o=n(3472),i=n(6371),a=n(7271);t.exports=function(t,e){if(null==t)return{};var n=r(a(t),(function(t){return[t]}));return e=o(e),i(t,n,(function(t,n){return e(t,n[0])}))}},8532:(t,e,n)=>{var r=n(1600),o=n(3301),i=n(726),a=n(3110);t.exports=function(t){return i(t)?r(a(t)):o(t)}},2829:(t,e,n)=>{var r=n(7556);t.exports=function(t){return t&&t.length?r(t):[]}},8163:(t,e,n)=>{var r=n(5034),o=n(7709);t.exports=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:i,maxWait:e,trailing:a})}},5812:(t,e,n)=>{var r=n(1367),o=n(7709),i=n(1995),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^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 e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+t}},4542:(t,e,n)=>{var r=n(5976)(n(7747));t.exports=r},7010:(t,e,n)=>{var r=n(6316);t.exports=function(t){return null==t?"":r(t)}},9602:(t,e,n)=>{var r=n(946);t.exports=function(t){return t&&t.length?r(t):[]}},8961:(t,e,n)=>{var r=n(3472),o=n(946);t.exports=function(t,e){return t&&t.length?o(t,r(e,2)):[]}},660:(t,e,n)=>{var r=n(7010),o=0;t.exports=function(t){var e=++o;return r(t)+e}},7491:t=>{var e="undefined"!=typeof Element,n="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,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(n&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])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(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},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=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";r.r(o),r.d(o,{combineContainerMixins:()=>Ks,createContainer:()=>Qs,makeCreateContainerFunction:()=>Xs});var t={};r.r(t),r.d(t,{scaleBand:()=>Gn,scaleDiverging:()=>Xu,scaleDivergingLog:()=>Qu,scaleDivergingPow:()=>tc,scaleDivergingSqrt:()=>ec,scaleDivergingSymlog:()=>Ju,scaleIdentity:()=>No,scaleImplicit:()=>Yn,scaleLinear:()=>To,scaleLog:()=>Wo,scaleOrdinal:()=>qn,scalePoint:()=>Zn,scalePow:()=>Qo,scaleQuantile:()=>si,scaleQuantize:()=>fi,scaleRadial:()=>ni,scaleSequential:()=>Wu,scaleSequentialLog:()=>$u,scaleSequentialPow:()=>Yu,scaleSequentialQuantile:()=>Gu,scaleSequentialSqrt:()=>qu,scaleSequentialSymlog:()=>Vu,scaleSqrt:()=>Jo,scaleSymlog:()=>qo,scaleThreshold:()=>pi,scaleTime:()=>Lu,scaleUtc:()=>Fu,tickFormat:()=>Co});var e=r(4155),n=r.n(e),i=r(9560),a=r.n(i),u=r(3105),c=r.n(u),l=r(9056),s=r.n(l),f=r(4542),p=r.n(f),h=r(9082),y=r.n(h),d=r(8532),v=r.n(d),g=r(1893),b=r.n(g),m=r(9787),x=r.n(m);function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function w(t){var e=function(t){return void 0!==t},n=t._x,r=t._x1,o=t._x0,i=t._voronoiX,a=t._y,u=t._y1,c=t._y0,l=t._voronoiY,s=e(r)?r:n,f=e(u)?u:a,p={x:e(i)?i:s,x0:e(o)?o:n,y:e(l)?l:f,y0:e(c)?c:a};return b()({},p,t)}function j(t,e){var n=t.scale,r=t.polar,o=t.horizontal,i=w(e),a=t.origin||{x:0,y:0},u=o?n.y(i.y):n.x(i.x),c=o?n.y(i.y0):n.x(i.x0),l=o?n.x(i.x):n.y(i.y),s=o?n.x(i.x0):n.y(i.y0);return{x:r?l*Math.cos(u)+a.x:u,x0:r?s*Math.cos(c)+a.x:c,y:r?-l*Math.sin(u)+a.y:l,y0:r?-s*Math.sin(c)+a.x:s}}function M(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding",n=t[e],r="number"==typeof n?n:0,o="object"==typeof n?n:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function P(t,e){return E(t)?t(e):t}function S(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((function(e){return E(t[e])}))?Object.keys(t).reduce((function(n,r){return n[r]=P(t[r],e),n}),{}):t}function A(t){return"number"==typeof t?t*(Math.PI/180):t}function k(t){var e=M(t),n=e.left,r=e.right,o=e.top,i=e.bottom,a=t.width,u=t.height;return Math.min(a-n-r,u-o-i)/2}function D(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,e){return"x"===e?[A(t.startAngle||0),A(t.endAngle||360)]:[t.innerRadius||0,k(t)]}(t,e):function(t,e){var n="x"!==e,r=M(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)}function E(t){return"function"==typeof t}function C(t){return E(t)?t:null==t?function(t){return t}:v()(t)}function _(t,e){if(t)return Object.keys(t).reduce((function(n,r){return n[r]=e(t[r]),n}),{})}function T(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,e){return t.concat(e)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=function(t,u,c){return t.reduce((function(t,r,l){var s=t,f=r.type&&r.type.role,p=r.props.name||"".concat(f,"-").concat(u[l]);if(r.props&&r.props.children){var h=Object.assign({},r.props,y()(n,i)),d=r.type&&"stack"===r.type.role&&E(r.type.getChildren)?r.type.getChildren(h):x().Children.toArray(r.props.children).map((function(t){var e=Object.assign({},t.props,y()(h,i));return x().cloneElement(t,e)})),v=d.map((function(t,e){return"".concat(p,"-").concat(e)})),g=a(d,v,r);s=o(s,g)}else{var b=e(r,p,c);b&&(s=o(s,b))}return s}),r)},u=t.filter(m.isValidElement),c=u.map((function(t,e){return e}));return a(u,c)}var N=r(7709),I=r.n(N),R=r(660),z=r.n(R);function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},L(t,e)}function F(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function B(t){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(t)}var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&L(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=B(r);if(o){var n=B(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return F(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map=void 0,e.index=void 0,e.portalRegister=function(){return++e.index},e.portalUpdate=function(t,n){e.map[t]=n,e.forceUpdate()},e.portalDeregister=function(t){delete e.map[t],e.forceUpdate()},e.map={},e.index=1,e}return e=a,(n=[{key:"getChildren",value:function(){var t=this;return Object.keys(this.map).map((function(e){var n=t.map[e];return n?x().cloneElement(n,{key:e}):n}))}},{key:"render",value:function(){return x().createElement("svg",this.props,this.getChildren())}}])&&U(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(x().Component);H.displayName="Portal";var W=x().createContext({});W.displayName="PortalContext";var $,V,Y=0,q=0,G=0,K=0,Z=0,X=0,Q="object"==typeof performance&&performance.now?performance:Date,J="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tt(){return Z||(J(et),Z=Q.now()+X)}function et(){Z=0}function nt(){this._call=this._time=this._next=null}function rt(t,e,n){var r=new nt;return r.restart(t,e,n),r}function ot(){Z=(K=Q.now())+X,Y=q=0;try{!function(){tt(),++Y;for(var t,e=$;e;)(t=Z-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Y}()}finally{Y=0,function(){for(var t,e,n=$,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:$=e);V=t,at(r)}(),Z=0}}function it(){var t=Q.now(),e=t-K;e>1e3&&(X-=e,K=t)}function at(t){Y||(q&&(q=clearTimeout(q)),t-Z>24?(t<1/0&&(q=setTimeout(ot,t-Q.now()-X)),G&&(G=clearInterval(G))):(G||(K=Q.now(),G=setInterval(it,1e3)),Y=1,J(ot)))}function ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}nt.prototype=rt.prototype={constructor:nt,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?tt():+n)+(null==e?0:+e),this._next||V===this||(V?V._next=this:$=this,V=this),this._call=t,this._time=n,at()},stop:function(){this._call&&(this._call=null,this._time=1/0,at())}};var ct=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){e.subscribers.forEach((function(t){t.callback(tt()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var e,n;return e=t,(n=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=rt(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){var n=this.subscribers.push({startTime:tt(),callback:t,duration:this.shouldAnimate?e:0});return this.activeSubscriptions++,this.start(),n}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&ut(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),lt=x().createContext({transitionTimer:new ct,animationTimer:new ct});lt.displayName="TimerContext";const st=lt;function ft(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return pt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dt={startsWith:["data-","aria-"],exactMatch:[]};function vt(t,e){if(null==t)throw new Error(e)}var gt=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ht(Object(n),!0).forEach((function(e){yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return dt.startsWith.forEach((function(n){new RegExp("\\b(".concat(n,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return dt.exactMatch.includes(t)}(t))}(ft(t,1)[0])})).map((function(e){var n=ft(e,2);return[n[0],P(n[1],t)]})))};function bt(){return bt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bt.apply(this,arguments)}function mt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(n),!0).forEach((function(e){Ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ot(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jt(t,e){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jt(t,e)}function Mt(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Pt(t){return Pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pt(t)}var St=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jt(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Pt(r);if(o){var n=Pt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Mt(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).containerId=void 0,e.portalRef=void 0,e.containerRef=void 0,e.shouldHandleWheel=void 0,e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,n){return e.portalRef.portalUpdate(t,n)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=function(t){return E(e.props.containerRef)&&e.props.containerRef(t),e.containerRef=t,t},e.handleWheel=function(t){return t.preventDefault()},e.containerId=I()(t)&&void 0!==t.containerId?t.containerId:z()("victory-container-"),e.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel),e}return e=a,(n=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var e=t.ouiaId,n=t.ouiaSafe,r=t.ouiaType;return xt(xt(xt({},e&&{"data-ouia-component-id":e}),r&&{"data-ouia-component-type":r}),void 0!==n&&{"data-ouia-safe":n})}},{key:"renderContainer",value:function(t,e,n){var r=t.title,o=t.desc,i=t.portalComponent,a=t.className,u=t.width,c=t.height,l=t.portalZIndex,s=t.responsive,f=this.getChildren(t),p=s?{width:"100%",height:"100%"}:{width:u,height:c},h=Object.assign({pointerEvents:"none",touchAction:"none",position:"relative"},p),y=Object.assign({zIndex:l,position:"absolute",top:0,left:0},p),d=Object.assign({pointerEvents:"all"},p),v=Object.assign({overflow:"visible"},p),g={width:u,height:c,viewBox:e.viewBox,preserveAspectRatio:e.preserveAspectRatio,style:v};return x().createElement(W.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},x().createElement("div",bt({style:b()({},n,h),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),x().createElement("svg",bt({},e,{style:d}),r?x().createElement("title",{id:this.getIdForElement("title")},r):null,o?x().createElement("desc",{id:this.getIdForElement("desc")},o):null,f),x().createElement("div",{style:y},x().cloneElement(i,xt(xt({},g),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,n=t.height,r=t.responsive,o=t.events,i=t.title,a=t.desc,u=t.tabIndex,c=t.preserveAspectRatio,l=t.role,s=r?this.props.style:O(this.props.style,["height","width"]),f=gt(this.props),p=Object.assign(xt({width:e,height:n,tabIndex:u,role:l,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[a&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(e," ").concat(n):void 0,preserveAspectRatio:r?c:void 0},f),o);return this.renderContainer(this.props,p,s)}}])&&wt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(x().Component);St.displayName="VictoryContainer",St.role="container",St.defaultProps={className:"VictoryContainer",portalComponent:x().createElement(H,null),portalZIndex:99,responsive:!0,role:"img"},St.contextType=st;var At=r(4143),kt=r.n(At),Dt=r(3849),Et=r.n(Dt);function Ct(t,e){var n,r=w(e).x;return("number"==typeof(n=t.scale.x(r))?n/(Math.PI/180):n)%360}var _t=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Tt="#252525",Nt="#969696",It={width:450,height:300,padding:50,colorScale:_t},Rt={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:Tt,stroke:"transparent"},zt=Object.assign({textAnchor:"middle"},Rt),Ut={area:Object.assign({style:{data:{fill:Tt},labels:Rt}},It),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Tt,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},zt,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Rt}},It),bar:Object.assign({style:{data:{fill:Tt,padding:8,strokeWidth:0},labels:Rt}},It),boxplot:Object.assign({style:{max:{padding:8,stroke:Tt,strokeWidth:1},maxLabels:Object.assign({},Rt,{padding:3}),median:{padding:8,stroke:Tt,strokeWidth:1},medianLabels:Object.assign({},Rt,{padding:3}),min:{padding:8,stroke:Tt,strokeWidth:1},minLabels:Object.assign({},Rt,{padding:3}),q1:{padding:8,fill:Nt},q1Labels:Object.assign({},Rt,{padding:3}),q3:{padding:8,fill:Nt},q3Labels:Object.assign({},Rt,{padding:3})},boxWidth:20},It),candlestick:Object.assign({style:{data:{stroke:Tt,strokeWidth:1},labels:Object.assign({},Rt,{padding:5})},candleColors:{positive:"#ffffff",negative:Tt}},It),chart:It,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:Tt,strokeWidth:2},labels:Rt}},It),group:Object.assign({colorScale:_t},It),histogram:Object.assign({style:{data:{fill:Nt,stroke:Tt,strokeWidth:2},labels:Rt}},It),legend:{colorScale:_t,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Rt,title:Object.assign({},Rt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:Tt,strokeWidth:2},labels:Rt}},It),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},Rt,{padding:20})},colorScale:_t,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:Tt,stroke:"transparent",strokeWidth:0},labels:Rt}},It),stack:Object.assign({colorScale:_t},It),tooltip:{style:Object.assign({},Rt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Tt,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({},Rt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Tt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},It)},Lt=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],Ft="#ECEFF1",Bt="#90A4AE",Ht="#455A64",Wt="#212121",$t={width:350,height:350,padding:50},Vt={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:Ht,stroke:"transparent",strokeWidth:0},Yt=Object.assign({textAnchor:"middle"},Vt),qt="round",Gt="round",Kt={grayscale:Ut,material:{area:Object.assign({style:{data:{fill:Wt},labels:Vt}},$t),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Bt,strokeWidth:2,strokeLinecap:qt,strokeLinejoin:Gt},axisLabel:Object.assign({},Yt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:Ft,strokeDasharray:"10, 5",strokeLinecap:qt,strokeLinejoin:Gt,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Bt,strokeWidth:1,strokeLinecap:qt,strokeLinejoin:Gt},tickLabels:Object.assign({},Vt,{fill:Ht})}},$t),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:Ht,padding:8,strokeWidth:0},labels:Vt}},$t),boxplot:Object.assign({style:{max:{padding:8,stroke:Ht,strokeWidth:1},maxLabels:Object.assign({},Vt,{padding:3}),median:{padding:8,stroke:Ht,strokeWidth:1},medianLabels:Object.assign({},Vt,{padding:3}),min:{padding:8,stroke:Ht,strokeWidth:1},minLabels:Object.assign({},Vt,{padding:3}),q1:{padding:8,fill:Ht},q1Labels:Object.assign({},Vt,{padding:3}),q3:{padding:8,fill:Ht},q3Labels:Object.assign({},Vt,{padding:3})},boxWidth:20},$t),candlestick:Object.assign({style:{data:{stroke:Ht},labels:Object.assign({},Vt,{padding:5})},candleColors:{positive:"#ffffff",negative:Ht}},$t),chart:$t,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Ht,strokeWidth:2},labels:Vt}},$t),group:Object.assign({colorScale:Lt},$t),histogram:Object.assign({style:{data:{fill:Ht,stroke:Wt,strokeWidth:2},labels:Vt}},$t),legend:{colorScale:Lt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Vt,title:Object.assign({},Vt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Ht,strokeWidth:2},labels:Vt}},$t),pie:Object.assign({colorScale:Lt,style:{data:{padding:8,stroke:Ft,strokeWidth:1},labels:Object.assign({},Vt,{padding:20})}},$t),scatter:Object.assign({style:{data:{fill:Ht,opacity:1,stroke:"transparent",strokeWidth:0},labels:Vt}},$t),stack:Object.assign({colorScale:Lt},$t),tooltip:{style:Object.assign({},Vt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Wt,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({},Vt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Wt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},$t)}},Zt=r(1594),Xt=r.n(Zt);function Qt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||Jt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(t,e){if(t){if("string"==typeof t)return te(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(t,e):void 0}}function te(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ee={"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},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}},ne={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},re={em:1,ex:.5},oe={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},ie=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},ae=function(t,e,n){var r=function(t){return t*Math.PI/180}(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},ue=function(t,e){var n,r=null===(n=t.match(/[a-zA-Z%]+/))||void 0===n?void 0:n[0],o=Number(t.match(/[0-9.,]+/));return r?ne.hasOwnProperty(r)?o*ne[r]:re.hasOwnProperty(r)?(e?o*e:o*oe.fontSize)*re[r]:o:o||0},ce=function(t,e){var n=Array.isArray(t)?t[e]:t,r=b()({},n,oe);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:ue(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:ue(String(r.fontSize))})},le=function(t,e){if(void 0===t||""===t||null===t)return 0;var n,r=ie(t).map((function(t,n){var r,o,i=t.toString().length,a=ce(e,n),u=a.fontSize,c=a.letterSpacing,l=(r=a.fontFamily,o=r.split(",").map((function(t){return t.replace(/'|"/g,"")})).find((function(t){return ee[t]}))||"Helvetica",ee[o]);return t.toString().split("").map((function(t){return t.charCodeAt(0)<l.widths.length?l.widths[t.charCodeAt(0)]:l.avg})).reduce((function(t,e){return e+t}),0)*u+c*Math.max(i-1,0)}));return Math.max.apply(Math,function(t){if(Array.isArray(t))return te(t)}(n=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Jt(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},se=function(t,e){var n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=function(t,e){return void 0===t||""===t||null===t?0:ie(t).reduce((function(t,n,r){var o=ce(e,r),i=n.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0)}(t,e),o=le(t,e);return{width:n?ae(o,r,n):o,height:1.05*(n?ae(r,o,n):r)}},fe=Xt()((function(){var 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");var e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),pe=function(t){return t?"".concat(t.angle,":").concat(t.fontFamily,":").concat(t.fontSize,":").concat(t.letterSpacing,":").concat(t.lineHeight):"null"},he=Xt()((function(t,e){var n,r,o=fe();o.isConnected||(null===(n=(r=fe.cache).clear)||void 0===n||n.call(r),o=fe());var i=ie(t),a=0;for(var u of i.entries()){var c=Qt(u,2),l=c[0],s=c[1],f=document.createElementNS("http://www.w3.org/2000/svg","tspan"),p=ce(e,l);f.style.fontFamily=p.fontFamily,f.style.fontSize="".concat(p.fontSize,"px"),f.style.lineHeight=p.lineHeight,f.style.fontFamily=p.fontFamily,f.style.letterSpacing=p.letterSpacing,f.textContent=s,f.setAttribute("x","0"),f.setAttribute("y","".concat(a)),o.appendChild(f),a+=p.lineHeight*f.getBoundingClientRect().height}var h=o.getBoundingClientRect().width;return o.innerHTML="",{width:null!=e&&e.angle?ae(h,a,null==e?void 0:e.angle):h,height:null!=e&&e.angle?ae(a,h,null==e?void 0:e.angle):a}}),(function(t,e){var n=Array.isArray(t)?t.join():t,r=Array.isArray(e)?e.map(pe).join():pe(e);return"".concat(n,"::").concat(r)})),ye=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n?se(t,e):he(t,e)}(t,e)};function de(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ve(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ge(t,e){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ge(t,e)}function be(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function me(t){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},me(t)}var xe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ge(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=me(r);if(o){var n=me(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return be(this,t)});function a(){var t;de(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).checkedContext=void 0,t.portalKey=void 0,t.renderInPlace=void 0,t.element=void 0,t}return e=a,(n=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(t){return this.renderInPlace?t:(this.element=t,null)}},{key:"render",value:function(){var t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,e=this.props.groupComponent,n=t&&t.props||{},r=n.groupComponent?{groupComponent:e,standalone:!1}:{},o=b()(r,n,O(this.props,["children","groupComponent"])),i=t&&x().cloneElement(t,o);return this.renderPortal(i)}}])&&ve(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(x().Component);xe.displayName="VictoryPortal",xe.role="portal",xe.defaultProps={groupComponent:x().createElement("g",null)},xe.contextType=W;var Oe=["desc","id","tabIndex","origin"];function we(){return we=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},we.apply(this,arguments)}function je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Me(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pe=(0,m.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Oe)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?je(Object(n),!0).forEach((function(e){Me(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=P(o,t))||void 0===n?void 0:n.toString(),tabIndex:P(i,t)},a);return r?x().createElement("rect",we({},u,{ref:e}),x().createElement("desc",null,r)):x().createElement("rect",we({},u,{ref:e}))})),Se=["children","desc","id","origin","tabIndex","title"];function Ae(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ke(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var De=function(t){var e,n=t.children,r=t.desc,o=t.id,i=(t.origin,t.tabIndex),a=t.title,u=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Se),c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(n),!0).forEach((function(e){ke(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(e=P(o,t))||void 0===e?void 0:e.toString(),tabIndex:P(i,t)},u);return x().createElement("text",c,a&&x().createElement("title",null,a),r&&x().createElement("desc",null,r),n)},Ee=["desc","id","tabIndex","origin"];function Ce(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Te=function(t){t.desc;var e,n=t.id,r=t.tabIndex,o=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Ee)),i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ce(Object(n),!0).forEach((function(e){_e(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(e=P(n,t))||void 0===e?void 0:e.toString(),tabIndex:P(r,t)},o);return x().createElement("tspan",i)},Ne=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((function(t,e){return[t,Ne(e)].join(" ")}),Ne(t)).trim();if(null==t||"string"==typeof t)return t;var o=[];for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];o.push("".concat(i,"(").concat(a,")"))}return o.join(" ").trim()};function Ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Re(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ue(t){return function(t){if(Array.isArray(t))return Le(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Le(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Le(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Fe={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Be=function(t,e){return t.datum?j(t,t.datum)[e]:0},He=function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return Fe.fontSize;if("string"==typeof e){var n=Number(e.replace("px",""));return isNaN(n)?Fe.fontSize:n}return Fe.fontSize},We=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(t)?t[e]||t[0]:t},$e=function(t){var e=t.backgroundStyle,r=t.backgroundPadding;return Array.isArray(e)&&!n()(e)||Array.isArray(r)&&!n()(r)},Ve=function(t,e){var n=t.direction,r=t.textAnchor,o=t.x,i=t.dx;if("rtl"===n)return o-e;switch(r){case"middle":return Math.round(o-e/2);case"end":return Math.round(o-e);default:return o+(i||0)}},Ye=function(t,e){var n=t.verticalAnchor,r=t.y,o=t.originalDy,i=r+(void 0===o?0:o);switch(n){case"start":return Math.floor(i);case"end":return Math.ceil(i-e);default:return Math.floor(i-e/2)}},qe=function(t,e){return $e(t)?function(t,e){var n=t.dy,r=t.dx,o=t.transform,i=t.backgroundStyle,a=t.backgroundPadding,u=t.backgroundComponent,c=t.inline,l=t.y,s=e.map((function(t,o){var i=We(e,o-1),u=t.textSize,s=t.fontSize*t.lineHeight,f=Math.ceil(s),p=We(a,o),h=We(a,o-1),y=c&&r||0,d=o&&!c?i.fontSize*i.lineHeight+h.top+h.bottom:n-.5*s-(t.fontSize-t.capHeight);return{textHeight:f,labelSize:u,heightWithPadding:f+p.top+p.bottom,widthWithPadding:u.width+p.left+p.right+y,y:l,fontSize:t.fontSize,dy:d}}));return s.map((function(e,n){var r=Ve(t,e.labelSize.width),f=s.slice(0,n+1).reduce((function(t,e){return t+e.dy}),l),p=We(a,n),h=e.heightWithPadding,y=c?function(t,e,n){var r=t.textAnchor,o=e.map((function(t){return t.widthWithPadding})),i=-o.reduce((function(t,e){return t+e}),0)/2;switch(r){case"start":return o.reduce((function(t,e,r){return r<n?t+e:t}),0);case"end":return o.reduce((function(t,e,r){return r>n?t-e:t}),0);default:return o.reduce((function(t,e,r){return r===n?t+e/2:t+(r<n?e:0)}),i)}}(t,s,n)+r-p.left:r,d=c?Ye(t,h)-p.top:f,v={key:"tspan-background-".concat(n),height:h,style:We(i,n),width:e.widthWithPadding,transform:o,x:y-p.left,y:d};return x().cloneElement(u,b()({},u.props,v))}))}(t,e):function(t,e){var n=t.dx,r=void 0===n?0:n,o=t.transform,i=t.backgroundComponent,a=t.backgroundStyle,u=t.inline,c=t.backgroundPadding,l=t.capHeight,s=e.map((function(t){return t.textSize})),f=u?Math.max.apply(Math,Ue(s.map((function(t){return t.height})))):s.reduce((function(t,n,r){var o=r?0:l/2;return t+n.height*(e[r].lineHeight-o)}),0),p=u?s.reduce((function(t,e,n){var o=n?r:0;return t+e.width+o}),0):Math.max.apply(Math,Ue(s.map((function(t){return t.width})))),h=Ve(t,p),y=Ye(t,f),d={key:"background",height:f+c.top+c.bottom,style:a,transform:o,width:p+c.left+c.right,x:u?h-c.left:h+r-c.left,y};return x().cloneElement(i,b()({},i.props,d))}(t,e)},Ge=function(t,e,n){var r=e.inline,o=We(t,n);return n&&!r?function(t,e,n){var r=We(t,e),o=We(t,e-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,u=o.fontSize-o.capHeight,c=r.fontSize-r.capHeight,l=i-o.fontSize/2+r.fontSize/2-i/2+a/2-c/2+u/2;return $e(n)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l}(t,n,e):r?0===n?o.backgroundPadding.top:void 0:o.backgroundPadding.top},Ke=function(t){var e=P(t.ariaLabel,t),r=We(t.style),o=function(t){var e=P(t.lineHeight,t);return Array.isArray(e)&&n()(e)?[1]:e}(t),i=t.direction?P(t.direction,t):"inherit",a=t.textAnchor?P(t.textAnchor,t):r.textAnchor||"start",u=t.verticalAnchor?P(t.verticalAnchor,t):r.verticalAnchor||"middle",c=t.dx?P(t.dx,t):0,l=function(t,e,n){var r=t.dy?P(t.dy,t):0,o=t.inline?1:t.text.length,i=P(t.capHeight,t),a=e?P(e,t):"middle",u=Ue(Array(o).keys()).map((function(e){return We(t.style,e).fontSize})),c=Ue(Array(o).keys()).map((function(t){return We(n,t)}));if("start"===a)return r+(i/2+c[0]/2)*u[0];if(t.inline)return"end"===a?r+(i/2-c[0]/2)*u[0]:r+i/2*u[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*c[0])*u[0]:r+(i/2+(.5-o/2)*c[0])*u[0];var l=Ue(Array(o).keys()).reduce((function(t,e){return t+(i/2+(.5-o)*c[e])*u[e]/o}),0);return"end"===a?r+l:r+l/2+i/2*c[o-1]*u[o-1]}(t,u,o),s=void 0!==t.x?t.x:Be(t,"x"),f=void 0!==t.y?t.y:Be(t,"y"),p=function(t,e,n){var r=t.polar,o=We(t.style),i=r?function(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var o=Ct(t,r),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"===n?0:90)}(t):0,a=void 0===o.angle?P(t.angle,t):o.angle,u=void 0===a?i:a,c=t.transform||o.transform,l=c&&P(c,t);return l||u?Ne(l,u&&{rotate:[u,e,n]}):void 0}(t,s,f);return Object.assign({},t,{ariaLabel:e,lineHeight:o,direction:i,textAnchor:a,verticalAnchor:u,dx:c,dy:l,originalDy:P(t.dy,t),transform:p,x:s,y:f})},Ze={backgroundComponent:x().createElement(Pe,null),groupComponent:x().createElement("g",null),direction:"inherit",textComponent:x().createElement(De,null),tspanComponent:x().createElement(Te,null),capHeight:.71,lineHeight:1},Xe=function(t){var e=function(t){var e=function(t,e){if(null!=t){if(Array.isArray(t))return t.map((function(t){return P(t,e)}));var n=P(t,e);if(null!=n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(t.text,t),r=function(t,e){if(e.disableInlineStyles){var r=S(t,e);return{fontSize:He(r)}}var o=function(t){var n=S(t?b()({},t,Fe):Fe,e);return Object.assign({},n,{fontSize:He(n)})};return Array.isArray(t)&&!n()(t)?t.map((function(t){return o(t)})):o(t)}(t.style,Object.assign({},t,{text:e})),o=function(t,e){if(t)return Array.isArray(t)&&!n()(t)?t.map((function(t){return S(t,e)})):S(t,e)}(t.backgroundStyle,Object.assign({},t,{text:e,style:r})),i=function(t){return t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((function(e){return M({padding:P(e,t)})})):M({padding:P(t.backgroundPadding,t)})}(Object.assign({},t,{text:e,style:r,backgroundStyle:o})),a=P(t.id,t);return Object.assign({},t,{backgroundStyle:o,backgroundPadding:i,style:r,text:e,id:a})}(Re(Re({},Ze),t));if(null===e.text||void 0===e.text)return null;var r=Ke(e),o=r.text,i=r.style,a=r.capHeight,u=r.backgroundPadding,c=r.lineHeight,l=o.map((function(t,e){var n=We(i,e),r=ue("".concat(a,"em"),n.fontSize),o=We(c,e);return{style:n,fontSize:n.fontSize||Fe.fontSize,capHeight:r,text:t,textSize:ye(t,n),lineHeight:o,backgroundPadding:We(u,e)}})),s=function(t,e){var n=t.ariaLabel,r=t.inline,o=t.className,i=t.title,a=t.events,u=t.direction,c=t.text,l=t.textAnchor,s=t.dx,f=t.dy,p=t.transform,h=t.x,y=t.y,d=t.desc,v=t.id,g=t.tabIndex,b=t.tspanComponent,m=t.textComponent,O=gt(t),w=Re(Re({"aria-label":n,key:"text"},a),{},{direction:u,dx:s,x:h,y:y+f,transform:p,className:o,title:i,desc:P(d,t),tabIndex:P(g,t),id:v},O),j=c.map((function(n,o){var i=e[o].style,a={key:"".concat(v,"-key-").concat(o),x:r?void 0:h,dx:r?s+e[o].backgroundPadding.left:s,dy:Ge(e,t,o),textAnchor:i.textAnchor||l,style:i,children:n};return x().cloneElement(b,a)}));return x().cloneElement(m,w,j)}(r,l);if(e.backgroundStyle){var f=[qe(r,l),s],p=x().cloneElement(e.groupComponent,{},f);return e.renderInPortal?x().createElement(xe,null,p):p}return e.renderInPortal?x().createElement(xe,null,s):s};Xe.displayName="VictoryLabel",Xe.role="label",Xe.defaultStyles=Fe;var Qe=["desc","id","tabIndex","origin"];function Je(){return Je=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Je.apply(this,arguments)}function tn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function en(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nn=(0,m.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Qe)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tn(Object(n),!0).forEach((function(e){en(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(n=P(o,t))||void 0===n?void 0:n.toString(),tabIndex:P(i,t)},a);return r?x().createElement("path",Je({},u,{ref:e}),x().createElement("desc",null,r)):x().createElement("path",Je({},u,{ref:e}))}));function rn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function on(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rn(Object(n),!0).forEach((function(e){an(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function an(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var un=function(t){var e=t.orientation||"top";return"left"===e||"right"===e?function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,o=t.width,i=t.height,a=t.center,u="left"===r?1:-1,c=t.x+(t.dx||0),l=t.y+(t.dy||0),s=a.x,f=a.y,p=s-u*(o/2),h=s+u*(o/2),y=f+i/2,d=f-i/2,v=u*(c-p)>0?0:t.pointerLength,g="left"===r?"0 0 0":"0 0 1",b="".concat(n," ").concat(n," ").concat(g);return"M ".concat(p,", ").concat(f-e/2,"\n L ").concat(v?c:p,", ").concat(v?l:f+e/2,"\n L ").concat(p,", ").concat(f+e/2,"\n L ").concat(p,", ").concat(y-n,"\n A ").concat(b," ").concat(p+u*n,", ").concat(y,"\n L ").concat(h-u*n,", ").concat(y,"\n A ").concat(b," ").concat(h,", ").concat(y-n,"\n L ").concat(h,", ").concat(d+n,"\n A ").concat(b," ").concat(h-u*n,", ").concat(d,"\n L ").concat(p+u*n,", ").concat(d,"\n A ").concat(b," ").concat(p,", ").concat(d+n,"\n z")}(t):function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,o=t.width,i=t.height,a=t.center,u="bottom"===r?1:-1,c=t.x+(t.dx||0),l=t.y+(t.dy||0),s=a.x,f=a.y,p=f+u*(i/2),h=f-u*(i/2),y=s+o/2,d=s-o/2,v=u*(l-p)<0?0:t.pointerLength,g="bottom"===r?"0 0 0":"0 0 1",b="".concat(n," ").concat(n," ").concat(g);return"M ".concat(s-e/2,", ").concat(p,"\n L ").concat(v?c:s+e/2,", ").concat(v?l:p,"\n L ").concat(s+e/2,", ").concat(p,"\n L ").concat(y-n,", ").concat(p,"\n A ").concat(b," ").concat(y,", ").concat(p-u*n,"\n L ").concat(y,", ").concat(h+u*n,"\n A ").concat(b," ").concat(y-n,", ").concat(h,"\n L ").concat(d+n,", ").concat(h,"\n A ").concat(b," ").concat(d,", ").concat(h+u*n,"\n L ").concat(d,", ").concat(p-u*n,"\n A ").concat(b," ").concat(d+n,", ").concat(p,"\n z")}(t)},cn={pathComponent:x().createElement(nn,null),role:"presentation",shapeRendering:"auto"},ln=function(t){var e=function(t){var e=P(t.id,t),n=S(t.style,t);return on(on({},t),{},{id:e,style:n})}(on(on({},cn),t)),n=gt(e);vt(e.height,"Flyout props[height] is undefined"),vt(e.width,"Flyout props[width] is undefined"),vt(e.x,"Flyout props[x] is undefined"),vt(e.y,"Flyout props[y] is undefined");var r={center:e.center||{x:0,y:0},cornerRadius:e.cornerRadius||0,dx:e.dx,dy:e.dy,height:e.height,orientation:e.orientation||"top",pointerLength:e.pointerLength||0,pointerWidth:e.pointerWidth||0,width:e.width,x:e.x,y:e.y};return x().cloneElement(e.pathComponent,on(on(on({},e.events),n),{},{style:e.style,d:un(r),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath}))};function sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fn(Object(n),!0).forEach((function(e){hn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dn(t,e){return dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dn(t,e)}function vn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function gn(t){return gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gn(t)}var bn={cornerRadius:5,pointerLength:10,pointerWidth:10},mn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dn(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=gn(r);if(o){var n=gn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return vn(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).id=void 0,e.id=void 0===t.id?z()("tooltip-"):t.id,e}return e=a,n=[{key:"getDefaultOrientation",value:function(t){var e=t.datum,n=t.horizontal;if(!t.polar){var r=n?"right":"top",o=n?"left":"bottom";return e&&e.y<0?o:r}return this.getPolarOrientation(t)}},{key:"getPolarOrientation",value:function(t){var e=Ct(t,t.datum),n=t.labelPlacement||"vertical";return"vertical"===n?this.getVerticalOrientations(e):"parallel"===n?e<90||e>270?"right":"left":e>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}},{key:"getStyles",value:function(t){var e=t.theme||Kt.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((function(t){return b()({},t,n)})):b()({},t.style,n),o=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},i=t.flyoutStyle?b()({},t.flyoutStyle,o):o,a=Array.isArray(r)?r.map((function(e){return S(e,t)})):S(r,t);return{style:a,flyoutStyle:S(i,Object.assign({},t,{style:a}))}}},{key:"getEvaluatedProps",value:function(t){var e=t.cornerRadius,n=t.centerOffset,r=t.dx,o=t.dy,i=P(t.active,t),a=P(t.text,Object.assign({},t,{active:i}));null==a&&(a=""),"number"==typeof a&&(a=a.toString());var u=this.getStyles(Object.assign({},t,{active:i,text:a})),c=u.style,l=u.flyoutStyle,s=P(t.orientation,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l}))||this.getDefaultOrientation(t),f=M({padding:P(t.flyoutPadding,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s}))||this.getLabelPadding(c)}),p=P(t.pointerWidth,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s})),h=P(t.pointerLength,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s})),y=ye(a,c),d=this.getDimensions(Object.assign({},t,{style:c,flyoutStyle:l,active:i,text:a,orientation:s,flyoutPadding:f,pointerWidth:p,pointerLength:h}),y),v=d.flyoutHeight,g=d.flyoutWidth,b=Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s,flyoutHeight:v,flyoutWidth:g,flyoutPadding:f,pointerWidth:p,pointerLength:h}),m=Et()(n)&&void 0!==(null==n?void 0:n.x)?P(n.x,b):0,x=Et()(n)&&void 0!==(null==n?void 0:n.y)?P(n.y,b):0;return pn(pn({},b),{},{centerOffset:{x:m,y:x},dx:void 0!==r?P(r,b):0,dy:void 0!==o?P(o,b):0,cornerRadius:P(e,b)})}},{key:"getCalculatedValues",value:function(t){var e=t.style,n=t.text,r=t.flyoutStyle,o={height:t.flyoutHeight,width:t.flyoutWidth};return{style:e,flyoutStyle:r,labelSize:ye(n,e),flyoutDimensions:o,flyoutCenter:this.getFlyoutCenter(t,o),transform:this.getTransform(t)}}},{key:"getTransform",value:function(t){var e=t.x,n=t.y,r=(t.style||{}).angle||t.angle||this.getDefaultAngle(t);return r?"rotate(".concat(r," ").concat(e," ").concat(n,")"):void 0}},{key:"getDefaultAngle",value:function(t){var e=t.polar,n=t.labelPlacement,r=t.orientation,o=t.datum;if(!e||!n||"vertical"===n)return 0;var i=Ct(t,o),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"===n?0:90)}},{key:"constrainTooltip",value:function(t,e,n){var r=t.x,o=t.y,i=n.width,a=n.height,u=[0,e.width],c=[0,e.height],l=[r-i/2,r+i/2],s=[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],p=[s[0]<c[0]?c[0]-s[0]:0,s[1]>c[1]?s[1]-c[1]:0];return{x:Math.round(r+f[0]-f[1]),y:Math.round(o+p[0]-p[1])}}},{key:"getFlyoutCenter",value:function(t,e){var n=t.x,r=t.y,o=t.dx,i=t.dy,a=t.pointerLength,u=t.orientation,c=t.constrainToVisibleArea,l=t.centerOffset,s=e.height,f=e.width,p="left"===u?-1:1,h="bottom"===u?-1:1,y={x:"left"===u||"right"===u?n+p*(a+f/2+p*o):n+o,y:"top"===u||"bottom"===u?r-h*(a+s/2-h*i):r+i},d=Et()(t.center)&&void 0!==t.center.x?t.center.x:y.x,v=Et()(t.center)&&void 0!==t.center.y?t.center.y:y.y,g={x:d+l.x,y:v+l.y};return c?this.constrainTooltip(g,t,e):g}},{key:"getLabelPadding",value:function(t){if(!t)return 0;var e,n=Array.isArray(t)?t.map((function(t){return t.padding})):[t.padding];return Math.max.apply(Math,(e=n,function(t){if(Array.isArray(t))return sn(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return sn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sn(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([0]))}},{key:"getDimensions",value:function(t,e){var n,r,o,i,a=t.orientation,u=t.pointerLength,c=t.pointerWidth,l=t.flyoutHeight,s=t.flyoutWidth,f=t.flyoutPadding,p=P(t.cornerRadius,t);return{flyoutHeight:l?P(l,t):(o=e.height+f.top+f.bottom,i="top"===a||"bottom"===a?2*p:2*p+c,Math.max(i,o)),flyoutWidth:s?P(s,t):(n=e.width+f.left+f.right,r="left"===a||"right"===a?2*p+u:2*p,Math.max(r,n))}}},{key:"getLabelProps",value:function(t,e){var n=e.flyoutCenter,r=e.style,o=e.labelSize,i=e.dy,a=void 0===i?0:i,u=e.dx,c=void 0===u?0:u,l=t.text,s=t.datum,f=t.activePoints,p=t.labelComponent,h=t.index,y=t.flyoutPadding,d=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return b()({},p.props,{key:"".concat(this.id,"-label-").concat(h),text:l,datum:s,activePoints:f,textAnchor:d,dy:a,dx:c,style:r,x:function(){if(!d||"middle"===d)return n.x;var t="end"===d?-1:1;return n.x-t*(o.width/2)}()+(y.left-y.right)/2,y:n.y+(y.top-y.bottom)/2,verticalAnchor:"middle",angle:r.angle})}},{key:"getPointerOrientation",value:function(t,e,n){var r=e.y+n.height/2,o=e.y-n.height/2,i=e.x-n.width/2,a=e.x+n.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 kt()(u,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(t,e){var n=e.flyoutDimensions,r=e.flyoutStyle,o=e.flyoutCenter,i=t.x,a=t.y,u=t.dx,c=t.dy,l=t.datum,s=t.activePoints,f=t.index,p=t.pointerLength,h=t.pointerWidth,y=t.cornerRadius,d=t.events,v=t.flyoutComponent,g=P(t.pointerOrientation,t);return b()({},v.props,{x:i,y:a,dx:u,dy:c,datum:l,activePoints:s,index:f,pointerLength:p,pointerWidth:h,cornerRadius:y,events:d,orientation:g||this.getPointerOrientation({x:i,y:a},o,n),key:"".concat(this.id,"-tooltip-").concat(f),width:n.width,height:n.height,style:r,center:o})}},{key:"renderTooltip",value:function(t){var e=P(t.active,t),n=t.renderInPortal;if(!e)return n?x().createElement(xe,null):null;var r=this.getEvaluatedProps(t),o=r.flyoutComponent,i=r.labelComponent,a=r.groupComponent,u=this.getCalculatedValues(r),c=[x().cloneElement(o,this.getFlyoutProps(r,u)),x().cloneElement(i,this.getLabelProps(r,u))],l=x().cloneElement(a,{role:"presentation",transform:u.transform},c);return n?x().createElement(xe,null,l):l}},{key:"render",value:function(){var t=function(t,e,n){var r=O(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),o=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var e=function(t){return t.reduce((function(t,n){var r=n.props||{};return t||r.horizontal||!r.children?t||r.horizontal:e(x().Children.toArray(r.children))}),!1)};return e(x().Children.toArray(t.children))}(t),i=void 0===o?{}:{horizontal:o};return b()(i,t,r,e)}(this.props,bn,"tooltip");return this.renderTooltip(t)}}],n&&yn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(x().Component);mn.displayName="VictoryTooltip",mn.role="tooltip",mn.defaultProps={active:!1,renderInPortal:!0,labelComponent:x().createElement(Xe,null),flyoutComponent:x().createElement(ln,null),groupComponent:x().createElement("g",null)},mn.defaultEvents=function(t){var e=t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],n=t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return e},onFocus:function(){return e},onTouchStart:function(){return e},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]};var xn=r(8163),On=r.n(xn),wn=r(5395),jn=r.n(wn);function Mn(t){return function(t){if(Array.isArray(t))return Pn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Pn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Sn(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function An(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.concat(n);return Sn(o)?new Date(Math.max.apply(Math,Mn(o))):Math.max.apply(Math,Mn(o))}function kn(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.concat(n);return Sn(o)?new Date(Math.min.apply(Math,Mn(o))):Math.min.apply(Math,Mn(o))}function Dn(t,e,n){var r=e.a,o=e.d,i=e.e,a=e.f;return"y"===n?o*t+a:r*t+i}function En(t){return!(!t||void 0===t.identifier)}function Cn(t){if(!En(t.nativeEvent)){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function _n(t,e){if(En(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};var n=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,r=function(t){return t.getScreenCTM().inverse()}(e||Cn(n));return{x:Dn(n.clientX,r,"x"),y:Dn(n.clientY,r,"y")}}function Tn(t,e){var n=t.horizontal,r=t.scale,o=e||{x:r.x.domain(),y:r.y.domain()};return{x:n?[r.y(o.y[0]),r.y(o.y[1])]:[r.x(o.x[0]),r.x(o.x[1])],y:n?[r.x(o.x[0]),r.x(o.x[1])]:[r.y(o.y[0]),r.y(o.y[1])]}}function Nn(t,e,n,r){var o=t.polar,i=t.horizontal;if(!o)return{x:i?e.x.invert(r):e.x.invert(n),y:i?e.y.invert(n):e.y.invert(r)};var a=t.origin||{x:0,y:0},u=n-a.x,c=r-a.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),s=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:e.x.invert(s),y:e.y.invert(l)}}function In(t){var e=t.x1,n=t.x2,r=t.y1,o=t.y2,i=t.scale,a=Nn(t,i,e,r),u=Nn(t,i,n,o),c=function(t,e){return[kn([t,e]),An([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}r(1616),r(8999);var Rn=r(8254),zn=r.n(Rn),Un=r(9602),Ln=r.n(Un);function Fn(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}function Bn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Hn(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}class Wn extends Map{constructor(t,e=Vn){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get($n(this,t))}has(t){return super.has($n(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function $n({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Vn(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Yn=Symbol("implicit");function qn(){var t=new Wn,e=[],n=[],r=Yn;function o(o){let i=t.get(o);if(void 0===i){if(r!==Yn)return r;t.set(o,i=e.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Wn;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return qn(e,n).unknown(r)},Bn.apply(o,arguments),o}function Gn(){var t,e,n=qn().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,u=!1,c=0,l=0,s=.5;function f(){var n=r().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,n-c+2*l),u&&(t=Math.floor(t)),p+=(h-p-t*(n-c))*s,e=t*(1-c),u&&(p=Math.round(p),e=Math.round(e));var y=Fn(n).map((function(e){return p+t*e}));return o(f?y.reverse():y)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),f()):r()},n.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,u=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,f()):u},n.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),f()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},n.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},n.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},n.copy=function(){return Gn(r(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},Bn.apply(f(),arguments)}function Kn(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Kn(e())},t}function Zn(){return Kn(Gn.apply(null,arguments).paddingInner(1))}var Xn=Math.sqrt(50),Qn=Math.sqrt(10),Jn=Math.sqrt(2);function tr(t,e,n){var r,o,i,a,u=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(a=er(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);for(n*a<t&&++n,r*a>e&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);for(n/a<t&&++n,r/a>e&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)/a}return r&&i.reverse(),i}function er(t,e,n){var r=(e-t)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=Xn?10:i>=Qn?5:i>=Jn?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Xn?10:i>=Qn?5:i>=Jn?2:1)}function nr(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Xn?o*=10:i>=Qn?o*=5:i>=Jn&&(o*=2),e<t?-o:o}function rr(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function or(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ir(t){let e,n,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=rr,n=(e,n)=>rr(t(e),n),r=(e,n)=>t(e)-n):(e=t===rr||t===or?t:ar,n=t,r=t),{left:o,center:function(t,e,n=0,i=t.length){const a=o(t,e,n,i-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<=0?o=e+1:i=e}while(o<i)}return o}}}function ar(){return 0}function ur(t){return null===t?NaN:+t}const cr=ir(rr),lr=cr.right,sr=(cr.left,ir(ur).center,lr);function fr(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function pr(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function hr(){}var yr=.7,dr=1/yr,vr="\\s*([+-]?\\d+)\\s*",gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",br="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mr=/^#([0-9a-f]{3,8})$/,xr=new RegExp(`^rgb\\(${vr},${vr},${vr}\\)$`),Or=new RegExp(`^rgb\\(${br},${br},${br}\\)$`),wr=new RegExp(`^rgba\\(${vr},${vr},${vr},${gr}\\)$`),jr=new RegExp(`^rgba\\(${br},${br},${br},${gr}\\)$`),Mr=new RegExp(`^hsl\\(${gr},${br},${br}\\)$`),Pr=new RegExp(`^hsla\\(${gr},${br},${br},${gr}\\)$`),Sr={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 Ar(){return this.rgb().formatHex()}function kr(){return this.rgb().formatRgb()}function Dr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=mr.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Er(e):3===n?new Nr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Cr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Cr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=xr.exec(t))?new Nr(e[1],e[2],e[3],1):(e=Or.exec(t))?new Nr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=wr.exec(t))?Cr(e[1],e[2],e[3],e[4]):(e=jr.exec(t))?Cr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Mr.exec(t))?Fr(e[1],e[2]/100,e[3]/100,1):(e=Pr.exec(t))?Fr(e[1],e[2]/100,e[3]/100,e[4]):Sr.hasOwnProperty(t)?Er(Sr[t]):"transparent"===t?new Nr(NaN,NaN,NaN,0):null}function Er(t){return new Nr(t>>16&255,t>>8&255,255&t,1)}function Cr(t,e,n,r){return r<=0&&(t=e=n=NaN),new Nr(t,e,n,r)}function _r(t){return t instanceof hr||(t=Dr(t)),t?new Nr((t=t.rgb()).r,t.g,t.b,t.opacity):new Nr}function Tr(t,e,n,r){return 1===arguments.length?_r(t):new Nr(t,e,n,null==r?1:r)}function Nr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ir(){return`#${Lr(this.r)}${Lr(this.g)}${Lr(this.b)}`}function Rr(){const t=zr(this.opacity);return`${1===t?"rgb(":"rgba("}${Ur(this.r)}, ${Ur(this.g)}, ${Ur(this.b)}${1===t?")":`, ${t})`}`}function zr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ur(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Lr(t){return((t=Ur(t))<16?"0":"")+t.toString(16)}function Fr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Hr(t,e,n,r)}function Br(t){if(t instanceof Hr)return new Hr(t.h,t.s,t.l,t.opacity);if(t instanceof hr||(t=Dr(t)),!t)return new Hr;if(t instanceof Hr)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(n-r)/u+6*(n<r):n===i?(r-e)/u+2:(e-n)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new Hr(a,u,c,t.opacity)}function Hr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Wr(t){return(t=(t||0)%360)<0?t+360:t}function $r(t){return Math.max(0,Math.min(1,t||0))}function Vr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Yr(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}fr(hr,Dr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ar,formatHex:Ar,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Br(this).formatHsl()},formatRgb:kr,toString:kr}),fr(Nr,Tr,pr(hr,{brighter(t){return t=null==t?dr:Math.pow(dr,t),new Nr(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?yr:Math.pow(yr,t),new Nr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Nr(Ur(this.r),Ur(this.g),Ur(this.b),zr(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:Ir,formatHex:Ir,formatHex8:function(){return`#${Lr(this.r)}${Lr(this.g)}${Lr(this.b)}${Lr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Rr,toString:Rr})),fr(Hr,(function(t,e,n,r){return 1===arguments.length?Br(t):new Hr(t,e,n,null==r?1:r)}),pr(hr,{brighter(t){return t=null==t?dr:Math.pow(dr,t),new Hr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?yr:Math.pow(yr,t),new Hr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new Nr(Vr(t>=240?t-240:t+120,o,r),Vr(t,o,r),Vr(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new Hr(Wr(this.h),$r(this.s),$r(this.l),zr(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=zr(this.opacity);return`${1===t?"hsl(":"hsla("}${Wr(this.h)}, ${100*$r(this.s)}%, ${100*$r(this.l)}%${1===t?")":`, ${t})`}`}}));const qr=t=>()=>t;function Gr(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):qr(isNaN(t)?e:t)}const Kr=function t(e){var n=function(t){return 1==(t=+t)?Gr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):qr(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Tr(t)).r,(e=Tr(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=Gr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Zr(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),u=new Array(o);for(n=0;n<o;++n)r=Tr(e[n]),i[n]=r.r||0,a[n]=r.g||0,u[n]=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 Xr(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=io(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}function Qr(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Jr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function to(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=io(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}Zr((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<e-1?t[r+2]:2*i-o;return Yr((n-r/e)*e,a,o,i,u)}})),Zr((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return Yr((n-r/e)*e,o,i,a,u)}}));var eo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,no=new RegExp(eo.source,"g");function ro(t,e){var n,r,o,i=eo.lastIndex=no.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(n=eo.exec(t))&&(r=no.exec(e));)(o=r.index)>i&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Jr(n,r)})),i=no.lastIndex;return i<e.length&&(o=e.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)u[(n=c[r]).i]=n.x(t);return u.join("")})}function oo(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}}function io(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?qr(e):("number"===o?Jr:"string"===o?(n=Dr(e))?(e=n,Kr):ro:e instanceof Dr?Kr:e instanceof Date?Qr:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Xr:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?to:Jr:oo))(t,e)}function ao(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function uo(t){return+t}var co=[0,1];function lo(t){return t}function so(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function fo(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=so(o,r),i=n(a,i)):(r=so(r,o),i=n(i,a)),function(t){return i(r(t))}}function po(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)o[a]=so(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(e){var n=sr(t,e,1,r)-1;return i[n](o[n](e))}}function ho(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function yo(){var t,e,n,r,o,i,a=co,u=co,c=io,l=lo;function s(){var t,e,n,c=Math.min(a.length,u.length);return l!==lo&&(t=a[0],e=a[c-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?po:fo,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?n:(o||(o=r(a.map(t),u,c)))(t(l(e)))}return f.invert=function(n){return l(e((i||(i=r(u,a.map(t),Jr)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,uo),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=ao,s()},f.clamp=function(t){return arguments.length?(l=!!t||lo,s()):l!==lo},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,s()}}function vo(){return yo()(lo,lo)}var go,bo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mo(t){if(!(e=bo.exec(t)))throw new Error("invalid format: "+t);var e;return new xo({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function xo(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 Oo(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function wo(t){return(t=Oo(Math.abs(t)))?t[1]:NaN}function jo(t,e){var n=Oo(t,e);if(!n)return t+"";var r=n[0],o=n[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")}mo.prototype=xo.prototype,xo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Mo={"%":(t,e)=>(100*t).toFixed(e),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,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>jo(100*t,e),r:jo,s:function(t,e){var n=Oo(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(go=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")+Oo(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Po(t){return t}var So,Ao,ko,Do=Array.prototype.map,Eo=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Co(t,e,n,r){var o,i=nr(t,e,n);switch((r=mo(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(wo(e)/3)))-wo(Math.abs(t)))}(i,a))||(r.precision=o),ko(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,wo(e)-wo(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-wo(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return Ao(r)}function _o(t){var e=t.domain;return t.ticks=function(t){var n=e();return tr(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Co(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,i=e(),a=0,u=i.length-1,c=i[a],l=i[u],s=10;for(l<c&&(o=c,c=l,l=o,o=a,a=u,u=o);s-- >0;){if((o=er(c,l,n))===r)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return t},t}function To(){var t=vo();return t.copy=function(){return ho(t,To())},Bn.apply(t,arguments),_o(t)}function No(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,uo),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return No(t).unknown(e)},t=arguments.length?Array.from(t,uo):[0,1],_o(n)}function Io(t,e){var n,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),t[r]=e.floor(i),t[o]=e.ceil(a),t}function Ro(t){return Math.log(t)}function zo(t){return Math.exp(t)}function Uo(t){return-Math.log(-t)}function Lo(t){return-Math.exp(-t)}function Fo(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Bo(t){return(e,n)=>-t(-e,n)}function Ho(t){const e=t(Ro,zo),n=e.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),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Fo:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),n()[0]<0?(r=Bo(r),o=Bo(o),t(Uo,Lo)):t(Ro,zo),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],u=e[e.length-1];const c=u<a;c&&([a,u]=[u,a]);let l,s,f=r(a),p=r(u);const h=null==t?10:+t;let y=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;y.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;y.push(s)}2*y.length<h&&(y=tr(a,u,h))}else y=tr(f,p,Math.min(p-f,h)).map(o);return c?y.reverse():y},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=mo(n)).precision||(n.trim=!0),n=Ao(n)),t===1/0)return n;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(r(t)));return e*i<i-.5&&(e*=i),e<=a?n(t):""}},e.nice=()=>n(Io(n(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),e}function Wo(){const t=Ho(yo()).domain([1,10]);return t.copy=()=>ho(t,Wo()).base(t.base()),Bn.apply(t,arguments),t}function $o(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Vo(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Yo(t){var e=1,n=t($o(e),Vo(e));return n.constant=function(n){return arguments.length?t($o(e=+n),Vo(e)):e},_o(n)}function qo(){var t=Yo(yo());return t.copy=function(){return ho(t,qo()).constant(t.constant())},Bn.apply(t,arguments)}function Go(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Ko(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Zo(t){return t<0?-t*t:t*t}function Xo(t){var e=t(lo,lo),n=1;function r(){return 1===n?t(lo,lo):.5===n?t(Ko,Zo):t(Go(n),Go(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},_o(e)}function Qo(){var t=Xo(yo());return t.copy=function(){return ho(t,Qo()).exponent(t.exponent())},Bn.apply(t,arguments),t}function Jo(){return Qo.apply(null,arguments).exponent(.5)}function ti(t){return Math.sign(t)*t*t}function ei(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function ni(){var t,e=vo(),n=[0,1],r=!1;function o(n){var o=ei(e(n));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return e.invert(ti(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((n=Array.from(t,uo)).map(ti)),o):n.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?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return ni(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},Bn.apply(o,arguments),_o(o)}function ri(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function oi(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function ii(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function ai(t,e,n=0,r=t.length-1,o){for(o=void 0===o?ii:function(t=rr){if(t===rr)return ii;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=e-n+1,u=Math.log(i),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(i-c)/i)*(a-i/2<0?-1:1);ai(t,e,Math.max(n,Math.floor(e-a*c/i+l)),Math.min(r,Math.floor(e+(i-a)*c/i+l)),o)}const i=t[e];let a=n,u=r;for(ui(t,n,e),o(t[r],i)>0&&ui(t,n,r);a<u;){for(ui(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[n],i)?ui(t,n,u):(++u,ui(t,u,r)),u<=e&&(n=u+1),e<=u&&(r=u-1)}return t}function ui(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function ci(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),r=t.length){if((e=+e)<=0||r<2)return oi(t);if(e>=1)return ri(t);var r,o=(r-1)*e,i=Math.floor(o),a=ri(ai(t,i).subarray(0,i+1));return a+(oi(t.subarray(i+1))-a)*(o-i)}}function li(t,e,n=ur){if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}}function si(){var t,e=[],n=[],r=[];function o(){var t=0,o=Math.max(1,n.length);for(r=new Array(o-1);++t<o;)r[t-1]=li(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:n[sr(r,e)]}return i.invertExtent=function(t){var o=n.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(rr),o()},i.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return si().domain(e).range(n).unknown(t)},Bn.apply(i,arguments)}function fi(){var t,e=0,n=1,r=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[sr(o,e,0,r)]:t}function u(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,u()):[e,n]},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?[e,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return fi().domain([e,n]).range(i).unknown(t)},Bn.apply(_o(a),arguments)}function pi(){var t,e=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[sr(e,o,0,r)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return pi().domain(e).range(n).unknown(t)},Bn.apply(o,arguments)}So=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Po:(e=Do.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return i.reverse().join(n)}),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?Po:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Do.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=mo(t)).fill,n=t.align,f=t.sign,p=t.symbol,h=t.zero,y=t.width,d=t.comma,v=t.precision,g=t.trim,b=t.type;"n"===b?(d=!0,b="g"):Mo[b]||(void 0===v&&(v=12),g=!0,b="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var m="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===p?i:/[%p]/.test(b)?c:"",O=Mo[b],w=/[defgprs%]/.test(b);function j(t){var o,i,c,p=m,j=x;if("c"===b)j=O(t)+j,t="";else{var M=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:O(Math.abs(t),v),g&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),M&&0==+t&&"+"!==f&&(M=!1),p=(M?"("===f?f:l:"-"===f||"("===f?"":f)+p,j=("s"===b?Eo[8+go/3]:"")+j+(M&&"("===f?")":""),w)for(o=-1,i=t.length;++o<i;)if(48>(c=t.charCodeAt(o))||c>57){j=(46===c?a+t.slice(o+1):t.slice(o))+j,t=t.slice(0,o);break}}d&&!h&&(t=r(t,1/0));var P=p.length+t.length+j.length,S=P<y?new Array(y-P+1).join(e):"";switch(d&&h&&(t=r(S+t,S.length?y-j.length:1/0),S=""),n){case"<":t=p+t+j+S;break;case"=":t=p+S+t+j;break;case"^":t=S.slice(0,P=S.length>>1)+p+t+j+S.slice(P);break;default:t=S+p+t+j}return u(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return t+""},j}return{format:f,formatPrefix:function(t,e){var n=f(((t=mo(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(wo(e)/3))),o=Math.pow(10,-r),i=Eo[8+r/3];return function(t){return n(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ao=So.format,ko=So.formatPrefix;const hi=1e3,yi=6e4,di=36e5,vi=864e5,gi=6048e5,bi=31536e6;var mi=new Date,xi=new Date;function Oi(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,i){var a,u=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return u;do{u.push(a=new Date(+n)),e(n,i),t(n)}while(a<n&&n<r);return u},o.filter=function(n){return Oi((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return mi.setTime(+e),xi.setTime(+r),t(mi),t(xi),Math.floor(n(mi,xi))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var wi=Oi((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));wi.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Oi((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):wi:null};const ji=wi;wi.range;var Mi=Oi((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*hi)}),(function(t,e){return(e-t)/hi}),(function(t){return t.getUTCSeconds()}));const Pi=Mi;Mi.range;var Si=Oi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*hi)}),(function(t,e){t.setTime(+t+e*yi)}),(function(t,e){return(e-t)/yi}),(function(t){return t.getMinutes()}));const Ai=Si;Si.range;var ki=Oi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*hi-t.getMinutes()*yi)}),(function(t,e){t.setTime(+t+e*di)}),(function(t,e){return(e-t)/di}),(function(t){return t.getHours()}));const Di=ki;ki.range;var Ei=Oi((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yi)/vi),(t=>t.getDate()-1));const Ci=Ei;function _i(t){return Oi((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yi)/gi}))}Ei.range;var Ti=_i(0),Ni=_i(1),Ii=_i(2),Ri=_i(3),zi=_i(4),Ui=_i(5),Li=_i(6),Fi=(Ti.range,Ni.range,Ii.range,Ri.range,zi.range,Ui.range,Li.range,Oi((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const Bi=Fi;Fi.range;var Hi=Oi((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Hi.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Oi((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Wi=Hi;Hi.range;var $i=Oi((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*yi)}),(function(t,e){return(e-t)/yi}),(function(t){return t.getUTCMinutes()}));const Vi=$i;$i.range;var Yi=Oi((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*di)}),(function(t,e){return(e-t)/di}),(function(t){return t.getUTCHours()}));const qi=Yi;Yi.range;var Gi=Oi((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/vi}),(function(t){return t.getUTCDate()-1}));const Ki=Gi;function Zi(t){return Oi((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/gi}))}Gi.range;var Xi=Zi(0),Qi=Zi(1),Ji=Zi(2),ta=Zi(3),ea=Zi(4),na=Zi(5),ra=Zi(6),oa=(Xi.range,Qi.range,Ji.range,ta.range,ea.range,na.range,ra.range,Oi((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const ia=oa;oa.range;var aa=Oi((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));aa.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Oi((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const ua=aa;function ca(t,e,n,r,o,i){const a=[[Pi,1,hi],[Pi,5,5e3],[Pi,15,15e3],[Pi,30,3e4],[i,1,yi],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,di],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,vi],[r,2,1728e5],[n,1,gi],[e,1,2592e6],[e,3,7776e6],[t,1,bi]];function u(e,n,r){const o=Math.abs(n-e)/r,i=ir((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(nr(e/bi,n/bi,r));if(0===i)return ji.every(Math.max(nr(e,n,r),1));const[u,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(c)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:u(t,e,n),i=o?o.range(t,+e+1):[];return r?i.reverse():i},u]}aa.range;const[la,sa]=ca(ua,ia,Xi,Ki,qi,Vi),[fa,pa]=ca(Wi,Bi,Ti,Ci,Di,Ai);function ha(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ya(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function da(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var va,ga,ba,ma={"-":"",_:" ",0:"0"},xa=/^\s*\d+/,Oa=/^%/,wa=/[\\^$*+?|[\]().{}]/g;function ja(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function Ma(t){return t.replace(wa,"\\$&")}function Pa(t){return new RegExp("^(?:"+t.map(Ma).join("|")+")","i")}function Sa(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Aa(t,e,n){var r=xa.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function ka(t,e,n){var r=xa.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Da(t,e,n){var r=xa.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ea(t,e,n){var r=xa.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ca(t,e,n){var r=xa.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function _a(t,e,n){var r=xa.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ta(t,e,n){var r=xa.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Na(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ia(t,e,n){var r=xa.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Ra(t,e,n){var r=xa.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function za(t,e,n){var r=xa.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Ua(t,e,n){var r=xa.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function La(t,e,n){var r=xa.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Fa(t,e,n){var r=xa.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ba(t,e,n){var r=xa.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ha(t,e,n){var r=xa.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Wa(t,e,n){var r=xa.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function $a(t,e,n){var r=Oa.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Va(t,e,n){var r=xa.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ya(t,e,n){var r=xa.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function qa(t,e){return ja(t.getDate(),e,2)}function Ga(t,e){return ja(t.getHours(),e,2)}function Ka(t,e){return ja(t.getHours()%12||12,e,2)}function Za(t,e){return ja(1+Ci.count(Wi(t),t),e,3)}function Xa(t,e){return ja(t.getMilliseconds(),e,3)}function Qa(t,e){return Xa(t,e)+"000"}function Ja(t,e){return ja(t.getMonth()+1,e,2)}function tu(t,e){return ja(t.getMinutes(),e,2)}function eu(t,e){return ja(t.getSeconds(),e,2)}function nu(t){var e=t.getDay();return 0===e?7:e}function ru(t,e){return ja(Ti.count(Wi(t)-1,t),e,2)}function ou(t){var e=t.getDay();return e>=4||0===e?zi(t):zi.ceil(t)}function iu(t,e){return t=ou(t),ja(zi.count(Wi(t),t)+(4===Wi(t).getDay()),e,2)}function au(t){return t.getDay()}function uu(t,e){return ja(Ni.count(Wi(t)-1,t),e,2)}function cu(t,e){return ja(t.getFullYear()%100,e,2)}function lu(t,e){return ja((t=ou(t)).getFullYear()%100,e,2)}function su(t,e){return ja(t.getFullYear()%1e4,e,4)}function fu(t,e){var n=t.getDay();return ja((t=n>=4||0===n?zi(t):zi.ceil(t)).getFullYear()%1e4,e,4)}function pu(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ja(e/60|0,"0",2)+ja(e%60,"0",2)}function hu(t,e){return ja(t.getUTCDate(),e,2)}function yu(t,e){return ja(t.getUTCHours(),e,2)}function du(t,e){return ja(t.getUTCHours()%12||12,e,2)}function vu(t,e){return ja(1+Ki.count(ua(t),t),e,3)}function gu(t,e){return ja(t.getUTCMilliseconds(),e,3)}function bu(t,e){return gu(t,e)+"000"}function mu(t,e){return ja(t.getUTCMonth()+1,e,2)}function xu(t,e){return ja(t.getUTCMinutes(),e,2)}function Ou(t,e){return ja(t.getUTCSeconds(),e,2)}function wu(t){var e=t.getUTCDay();return 0===e?7:e}function ju(t,e){return ja(Xi.count(ua(t)-1,t),e,2)}function Mu(t){var e=t.getUTCDay();return e>=4||0===e?ea(t):ea.ceil(t)}function Pu(t,e){return t=Mu(t),ja(ea.count(ua(t),t)+(4===ua(t).getUTCDay()),e,2)}function Su(t){return t.getUTCDay()}function Au(t,e){return ja(Qi.count(ua(t)-1,t),e,2)}function ku(t,e){return ja(t.getUTCFullYear()%100,e,2)}function Du(t,e){return ja((t=Mu(t)).getUTCFullYear()%100,e,2)}function Eu(t,e){return ja(t.getUTCFullYear()%1e4,e,4)}function Cu(t,e){var n=t.getUTCDay();return ja((t=n>=4||0===n?ea(t):ea.ceil(t)).getUTCFullYear()%1e4,e,4)}function _u(){return"+0000"}function Tu(){return"%"}function Nu(t){return+t}function Iu(t){return Math.floor(+t/1e3)}function Ru(t){return new Date(t)}function zu(t){return t instanceof Date?+t:+new Date(+t)}function Uu(t,e,n,r,o,i,a,u,c,l){var s=vo(),f=s.invert,p=s.domain,h=l(".%L"),y=l(":%S"),d=l("%I:%M"),v=l("%I %p"),g=l("%a %d"),b=l("%b %d"),m=l("%B"),x=l("%Y");function O(t){return(c(t)<t?h:u(t)<t?y:a(t)<t?d:i(t)<t?v:r(t)<t?o(t)<t?g:b:n(t)<t?m:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,zu)):p().map(Ru)},s.ticks=function(e){var n=p();return t(n[0],n[n.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?O:l(e)},s.nice=function(t){var n=p();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?p(Io(n,t)):s},s.copy=function(){return ho(s,Uu(t,e,n,r,o,i,a,u,c,l))},s}function Lu(){return Bn.apply(Uu(fa,pa,Wi,Bi,Ti,Ci,Di,Ai,Pi,ga).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Fu(){return Bn.apply(Uu(la,sa,ua,ia,Xi,Ki,qi,Vi,Pi,ba).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Bu(){var t,e,n,r,o,i=0,a=1,u=lo,c=!1;function l(e){return null==e||isNaN(e=+e)?o:u(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var n,r;return arguments.length?([n,r]=e,u=t(n,r),l):[u(0),u(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),e=r(a=+a),n=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(u=t,l):u},l.range=s(io),l.rangeRound=s(ao),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return r=o,t=o(i),e=o(a),n=t===e?0:1/(e-t),l}}function Hu(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Wu(){var t=_o(Bu()(lo));return t.copy=function(){return Hu(t,Wu())},Hn.apply(t,arguments)}function $u(){var t=Ho(Bu()).domain([1,10]);return t.copy=function(){return Hu(t,$u()).base(t.base())},Hn.apply(t,arguments)}function Vu(){var t=Yo(Bu());return t.copy=function(){return Hu(t,Vu()).constant(t.constant())},Hn.apply(t,arguments)}function Yu(){var t=Xo(Bu());return t.copy=function(){return Hu(t,Yu()).exponent(t.exponent())},Hn.apply(t,arguments)}function qu(){return Yu.apply(null,arguments).exponent(.5)}function Gu(){var t=[],e=lo;function n(n){if(null!=n&&!isNaN(n=+n))return e((sr(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(rr),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>ci(t,r/e)))},n.copy=function(){return Gu(e).domain(t)},Hn.apply(n,arguments)}function Ku(t,e){void 0===e&&(e=t,t=io);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[e](t-e)}}function Zu(){var t,e,n,r,o,i,a,u=0,c=.5,l=1,s=1,f=lo,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?r:o),f(p?Math.max(0,Math.min(1,t)):t))}function y(t){return function(e){var n,r,o;return arguments.length?([n,r,o]=e,f=Ku(t,[n,r,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([u,c,l]=a,t=i(u=+u),e=i(c=+c),n=i(l=+l),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),s=e<t?-1:1,h):[u,c,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=y(io),h.rangeRound=y(ao),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(u),e=a(c),n=a(l),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),s=e<t?-1:1,h}}function Xu(){var t=_o(Zu()(lo));return t.copy=function(){return Hu(t,Xu())},Hn.apply(t,arguments)}function Qu(){var t=Ho(Zu()).domain([.1,1,10]);return t.copy=function(){return Hu(t,Qu()).base(t.base())},Hn.apply(t,arguments)}function Ju(){var t=Yo(Zu());return t.copy=function(){return Hu(t,Ju()).constant(t.constant())},Hn.apply(t,arguments)}function tc(){var t=Xo(Zu());return t.copy=function(){return Hu(t,tc()).exponent(t.exponent())},Hn.apply(t,arguments)}function ec(){return tc.apply(null,arguments).exponent(.5)}va=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=Pa(o),s=Sa(o),f=Pa(i),p=Sa(i),h=Pa(a),y=Sa(a),d=Pa(u),v=Sa(u),g=Pa(c),b=Sa(c),m={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:qa,e:qa,f:Qa,g:lu,G:fu,H:Ga,I:Ka,j:Za,L:Xa,m:Ja,M:tu,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Nu,s:Iu,S:eu,u:nu,U:ru,V:iu,w:au,W:uu,x:null,X:null,y:cu,Y:su,Z:pu,"%":Tu},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:hu,e:hu,f:bu,g:Du,G:Cu,H:yu,I:du,j:vu,L:gu,m:mu,M:xu,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Nu,s:Iu,S:Ou,u:wu,U:ju,V:Pu,w:Su,W:Au,x:null,X:null,y:ku,Y:Eu,Z:_u,"%":Tu},O={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=y.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return M(t,e,n,r)},d:za,e:za,f:Wa,g:Ta,G:_a,H:La,I:La,j:Ua,L:Ha,m:Ra,M:Fa,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:Ia,Q:Va,s:Ya,S:Ba,u:ka,U:Da,V:Ea,w:Aa,W:Ca,x:function(t,e,r){return M(t,n,e,r)},X:function(t,e,n){return M(t,r,e,n)},y:Ta,Y:_a,Z:Na,"%":$a};function w(t,e){return function(n){var r,o,i,a=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=ma[r=t.charAt(++u)])?r=t.charAt(++u):o="e"===r?" ":"0",(i=e[r])&&(r=i(n,o)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function j(t,e){return function(n){var r,o,i=da(1900,void 0,1);if(M(i,t,n+="",0)!=n.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(e&&!("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=ya(da(i.y,0,1))).getUTCDay(),r=o>4||0===o?Qi.ceil(r):Qi(r),r=Ki.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=ha(da(i.y,0,1))).getDay(),r=o>4||0===o?Ni.ceil(r):Ni(r),r=Ci.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?ya(da(i.y,0,1)).getUTCDay():ha(da(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,ya(i)):ha(i)}}function M(t,e,n,r){for(var o,i,a=0,u=e.length,c=n.length;a<u;){if(r>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=O[o in ma?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return m.x=w(n,m),m.X=w(r,m),m.c=w(e,m),x.x=w(n,x),x.X=w(r,x),x.c=w(e,x),{format:function(t){var e=w(t+="",m);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),ga=va.format,va.parse,ba=va.utcFormat,va.utcParse;var nc=["linear","time","log","sqrt"];function rc(t){return"function"==typeof t?E(t.copy)&&E(t.domain)&&E(t.range):"string"==typeof t&&nc.includes(t)}function oc(t,e){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[e])}function ic(t,e){if(!t.data)return"linear";var n=C(t[e]);return Sn(t.data.map((function(t){var r=Et()(n(t))?n(t)[e]:n(t);return void 0!==r?r:t[e]})))?"time":"linear"}function ac(e){if(rc(e)){var n="scale".concat((r=e)&&r[0].toUpperCase()+r.slice(1));return t[n]()}var r;return To()}function uc(t,e){return function(t,e){if(oc(t,e)){var n=t.scale[e]||t.scale;return"string"==typeof n?n:function(t){if("string"==typeof t)return t;var e=cc.filter((function(e){return void 0!==t[e.method]}))[0];return e?e.name:void 0}(n)}}(t,e)||ic(t,e)}var cc=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function lc(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function sc(t,e){return lc(t)?t.reduce((function(t,n,r){var o=n;return e&&e[r]&&(o=sc(n)),t[r]=o,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function fc(t){return function(t){if(Array.isArray(t))return pc(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return pc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pc(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function hc(t){var e;return lc(e=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(e)?sc(t,{errorX:!0,errorY:!0}):t}function yc(t){return lc(t)?t.size:t.length}function dc(t,e){var n=(Et()(t.domain)?t.domain[e]:t.domain)||function(t,e){var n=function(t,e){if(oc(t,e)){var n=t.scale[e]||t.scale;return rc(n)?E(n)?n:ac(n):void 0}}(t,e);return n?"string"==typeof n?ac(n):n:ac(function(t,e){var n;if(t.domain&&t.domain[e]?n=t.domain[e]:t.domain&&Array.isArray(t.domain)&&(n=t.domain),n)return Sn(n)?"time":"linear"}(t,e)||ic(t,e))}(t,e).domain(),r=t.samples||1,o=Math.max.apply(Math,fc(n)),i=Math.min.apply(Math,fc(n)),a=function(t,e,n){var r=e?t:0,o=e||t;o||(o=0);var i=o-r,a=Math.abs(i),u=i/a||1,c=n||1,l=Math.max(Math.ceil(a/c),0);return Array.from(Array(l),(function(t,e){return r+e*u*c}))}(i,o,(o-i)/r);return a[a.length-1]===o?a:a.concat(o)}function vc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if(!e)return t;var r=e;"x"!==e&&"y"!==e||(r="_".concat(e));var o="ascending"===n?"asc":"desc";return kt()(t,r,o)}function gc(t,e){var n=function(t,e){var n=t.tickValues,r=t.tickFormat;return(n&&(Array.isArray(n)||n[e])?n[e]||n:r&&Array.isArray(r)?r:[]).filter((function(t){return"string"==typeof t}))}(t,e),r=Oc(t,e),o=function(t,e){if(!Array.isArray(t.data)&&!lc(t.data))return[];var n=C(void 0===t[e]?e:t[e]);return vc(t.data.reduce((function(t,e){return t.push(hc(e)),t}),[]),t.sortKey,t.sortOrder).reduce((function(t,e){var r=hc(e);return t.push(n(r)),t}),[]).filter((function(t){return"string"==typeof t})).reduce((function(t,e){return null!=e&&-1===t.indexOf(e)&&t.push(e),t}),[])}(t,e),i=Ln()([].concat(fc(n),fc(r),fc(o)));return 0===i.length?null:i.reduce((function(t,e,n){return t[e]=n+1,t}),{})}function bc(t,e,r){if(!Array.isArray(t)&&!lc(t)||yc(t)<1)return[];var o,i=["x","y","y0"],a=(r=Array.isArray(r)?r:i).reduce((function(t,n){var r;return t[n]=C(void 0!==e[r=n]?e[r]:r),t}),{}),u=zn()(r,i)&&"_x"===e.x&&"_y"===e.y&&"_y0"===e.y0;!1===u&&(o={x:-1!==r.indexOf("x")?gc(e,"x"):void 0,y:-1!==r.indexOf("y")?gc(e,"y"):void 0,y0:-1!==r.indexOf("y0")?gc(e,"y"):void 0});var c=u?t:t.reduce((function(t,e,i){var u=hc(e),c={x:i,y:u},l=r.reduce((function(t,e){var n=a[e](u),r=void 0!==n?n:c[e];return void 0!==r&&("string"==typeof r&&o[e]?(t["".concat(e,"Name")]=r,t["_".concat(e)]=o[e][r]):t["_".concat(e)]=r),t}),{}),s=Object.assign({},l,u);return n()(s)||t.push(s),t}),[]),l=function(t,e){var n=1/Number.MAX_SAFE_INTEGER,r={x:uc(e,"x"),y:uc(e,"y")};if("log"!==r.x&&"log"!==r.y)return t;var o=function(t,e){return"log"!==r[e]||0!==t["_".concat(e)]};return t.map((function(t){return o(t,"x")&&o(t,"y")&&o(t,"y0")?t:function(t){var e=o(t,"x")?t._x:n,r=o(t,"y")?t._y:n,i=o(t,"y0")?t._y0:n;return Object.assign({},t,{_x:e,_y:r,_y0:i})}(t)}))}(vc(c,e.sortKey,e.sortOrder),e);return function(t,e){var n,r=!!t.eventKey,o=E(n=t.eventKey)?n:null==n?function(){}:v()(n);return e.map((function(t,e){if(void 0!==t.eventKey)return t;if(r){var n=o(t,e);return void 0!==n?Object.assign({eventKey:n},t):t}return t}))}(e,l)}function mc(t,e){return t.categories&&!Array.isArray(t.categories)?t.categories[e]:t.categories}function xc(t){return t.data?bc(t.data,t):bc(function(t){var e=dc(t,"x"),n=dc(t,"y");return e.map((function(t,e){return{x:t,y:n[e]}}))}(t),t)}function Oc(t,e){if(!t.categories)return[];var n=mc(t,e),r=n&&n.filter((function(t){return"string"==typeof t}));return r?r.filter((function(t){return void 0!==t})):[]}function wc(t){var e=function(t){return t&&t.type?t.type.role:""},n=e(t);if("portal"===n){var r=x().Children.toArray(t.props.children);n=r.length?e(r[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}var jc=r(7491),Mc=r.n(jc),Pc=r(6898);function Sc(t){return function(t){if(Array.isArray(t))return Ac(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ac(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ac(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ac(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Dc=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onMouseLeave=function(t,n){var r,o=n.activePoints||[];e.onDeactivated(n,o);var i=o.length?o.map((function(t){return e.getInactiveMutations(n,t)})):[];return(r=e.getParentMutation([])).concat.apply(r,Sc(i))},this.handleMouseMove=function(t,n){var r=n.activePoints||[],o=n.parentSVG||Cn(t),i=_n(t,o);if(!e.withinBounds(n,i)){var a;e.onDeactivated(n,r);var u=r.length?r.map((function(t){return e.getInactiveMutations(n,t)})):[];return(a=e.getParentMutation([],i,o)).concat.apply(a,Sc(u))}var c=e.getVoronoiPoints(n,i),l=c.points,s=void 0===l?[]:l,f=c.index,p=e.getParentMutation(s,i,o,f);if(r.length&&Mc()(s,r))return p;e.onActivated(n,s),e.onDeactivated(n,r);var h=s.length?s.map((function(t){return e.getActiveMutations(n,t)})):[],y=r.length?r.map((function(t){return e.getInactiveMutations(n,t)})):[];return p.concat.apply(p,Sc(y).concat(Sc(h)))},this.onMouseMove=On()(this.handleMouseMove,32,{leading:!0,trailing:!1})}var e,r;return e=t,r=[{key:"withinBounds",value:function(t,e){var n=t.width,r=t.height,o=t.polar,i=t.origin,a=t.scale,u=M(t,"voronoiPadding"),c=e.x,l=e.y;if(o){var s=Math.pow(c-i.x,2)+Math.pow(l-i.y,2),f=Math.max.apply(Math,Sc(a.y.range()));return s<Math.pow(f,2)}return c>=u.left&&c<=n-u.right&&l>=u.top&&l<=r-u.bottom}},{key:"getDatasets",value:function(t){var e={x:kn(t.domain.x),y:kn(t.domain.y)},n=x().Children.toArray(t.children),r=function(n,r,o){var i=o&&o.type&&o.type.continuous,a=o?o.props&&o.props.style:t.style;return n.map((function(n,o){var u=w(n),c=u.x,l=u.y,s=u.y0,f=u.x0,p=(Number(c)+Number(f))/2,h=(Number(l)+Number(s))/2;return Object.assign({_voronoiX:"y"===t.voronoiDimension?e.x:p,_voronoiY:"x"===t.voronoiDimension?e.y:h,eventKey:o,childName:r,continuous:i,style:a},n)}))};if(t.data)return r(t.data);var o=function(t){var e=xc(t);return Array.isArray(e)&&e.length>0?e:void 0};return T(n,(function(e,n){var i=(e.props||{}).name||n,a=t.voronoiBlacklist||[],u=a.filter((function(t){return!!t&&"string"==typeof t.valueOf()})),c=a.filter(jn()).some((function(t){return t.test(i)}));if(!wc(e)||u.includes(i)||c)return null;var l=(e.type&&E(e.type.getData)?e.type.getData:o)(e.props);return l?r(l,i,e):null}),t)}},{key:"findPoints",value:function(t,e){return t.filter((function(t){return e._voronoiX===t._voronoiX&&e._voronoiY===t._voronoiY}))}},{key:"withinRadius",value:function(t,e,n){if(!t)return!1;if(!n)return!0;var r=e.x,o=e.y;return Math.pow(r-t[0],2)+Math.pow(o-t[1],2)<Math.pow(n,2)}},{key:"getVoronoiPoints",value:function(t,e){var n=this.getDatasets(t),r=n.map((function(e){var n=j(t,e);return[n.x,n.y]})),o=Pc.Z.from(r).find(e.x,e.y);return{points:this.withinRadius(r[o],e,t.radius)?this.findPoints(n,n[o]):[],index:o}}},{key:"getActiveMutations",value:function(t,e){var r=e.childName,o=e.continuous,i=t.activateData,a=t.activateLabels,u=t.labels;if(!i&&!a)return[];var c=i?["data"]:[],l=u&&!a?c:c.concat("labels");return n()(l)?[]:l.map((function(t){var n=!0===o&&"data"===t?"all":e.eventKey;return{childName:r,eventKey:n,target:t,mutation:function(){return{active:!0}}}}))}},{key:"getInactiveMutations",value:function(t,e){var r=e.childName,o=e.continuous,i=t.activateData,a=t.activateLabels,u=t.labels;if(!i&&!a)return[];var c=i?["data"]:[],l=u&&!a?c:c.concat("labels");return n()(l)?[]:l.map((function(t){var n=o&&"data"===t?"all":e.eventKey;return{childName:r,eventKey:n,target:t,mutation:function(){return null}}}))}},{key:"getParentMutation",value:function(t,e,n,r){return[{target:"parent",eventKey:"parent",mutation:function(){return{activePoints:t,mousePosition:e,parentSVG:n,vIndex:r}}}]}},{key:"onActivated",value:function(t,e){E(t.onActivated)&&t.onActivated(e,t)}},{key:"onDeactivated",value:function(t,e){E(t.onDeactivated)&&t.onDeactivated(e,t)}}],r&&kc(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ec=new Dc,Cc=["childName","eventKey","style","continuous"];function _c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Tc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tc(Object(n),!0).forEach((function(e){Ic(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ic(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Uc(t,e){return Uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Uc(t,e)}function Lc(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Fc(t){return Fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fc(t)}function Bc(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Uc(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Fc(r);if(o){var n=Fc(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Lc(this,t)});function a(){return Rc(this,a),i.apply(this,arguments)}return e=a,n=[{key:"getDimension",value:function(t){var e=t.horizontal,n=t.voronoiDimension;return e&&n?"x"===n?"y":"x":n}},{key:"getPoint",value:function(t){return y()(t,["_x","_x1","_x0","_y","_y1","_y0"])}},{key:"getLabelPosition",value:function(t,e,n){var r=t.mousePosition,o=t.mouseFollowTooltips,i=this.getDimension(t),a=j(t,this.getPoint(n[0])),u=o?r:void 0;if(!i||n.length<2)return Nc(Nc({},a),{},{center:b()({},e.center,u)});var c="y"===i?r.x:a.x,l="x"===i?r.y:a.y;return u=o?r:{x:c,y:l},{x:c,y:l,center:b()({},e.center,u)}}},{key:"getStyle",value:function(t,e,n){var r=t.labels,o=t.labelComponent,i=t.theme,a=o.props||{},u=i&&i.voronoi&&i.voronoi.style?i.voronoi.style:{},c="flyout"===n?a.flyoutStyle:a.style;return e.reduce((function(t,e,o){var i=b()({},a,{datum:e,active:!0}),l=E(r)?r(i):void 0,s=void 0!==l?"".concat(l).split("\n"):[],f=e.style&&e.style[n]||{},p=Array.isArray(c)?c[o]:c,h=S(b()({},p,f,u[n]),i),y=s.length?s.map((function(){return h})):[h];return t.concat(y)}),[])}},{key:"getDefaultLabelProps",value:function(t,e){var n=t.voronoiDimension,r=t.horizontal,o=t.mouseFollowTooltips,i=this.getPoint(e[0]),a=n&&e.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}}},{key:"getLabelProps",value:function(t,e){var n=t.labels,r=t.scale,o=t.labelComponent,i=t.theme,a=t.width,u=t.height,c=o.props||{},l=e.reduce((function(t,e){var r=b()({},c,{datum:e,active:!0}),o=E(n)?n(r):null;return null==o?t:t.concat("".concat(o).split("\n"))}),[]),s=e[0],f=s.childName,p=s.eventKey,h=(s.style,s.continuous,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(s,Cc)),y=t.name===f?f:"".concat(t.name,"-").concat(f),d=b()({key:"".concat(y,"-").concat(p,"-voronoi-tooltip"),id:"".concat(y,"-").concat(p,"-voronoi-tooltip"),active:!0,renderInPortal:!1,activePoints:e,datum:h,scale:r,theme:i},c,{text:l,width:a,height:u,style:this.getStyle(t,e,"labels"),flyoutStyle:this.getStyle(t,e,"flyout")[0]},this.getDefaultLabelProps(t,e)),v=this.getLabelPosition(t,d,e);return b()({},v,d)}},{key:"getTooltip",value:function(t){var e=t.labels,n=t.activePoints,r=t.labelComponent;if(!e)return null;if(Array.isArray(n)&&n.length){var o=this.getLabelProps(t,n),i=o.text;return(Array.isArray(i)?i.filter(Boolean).length:i)?x().cloneElement(r,o):null}return null}},{key:"getChildren",value:function(t){return[].concat(function(t){if(Array.isArray(t))return _c(t)}(e=x().Children.toArray(t.children))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return _c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_c(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[this.getTooltip(t)]);var e}}],n&&zc(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryVoronoiContainer",e.defaultProps=Nc(Nc({},St.defaultProps),{},{activateData:!0,activateLabels:!0,labelComponent:x().createElement(mn,null),voronoiPadding:5}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,n){return t.disable?{}:Ec.onMouseLeave(e,n)},onTouchCancel:function(e,n){return t.disable?{}:Ec.onMouseLeave(e,n)},onMouseMove:function(e,n){return t.disable?{}:Ec.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:Ec.onMouseMove(e,n)}}},{target:"data",eventHandlers:t.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]},e}Bc(St);var Hc=r(9324),Wc=r.n(Hc),$c=(r(8961),r(4295)),Vc=r.n($c),Yc=r(2829),qc=r.n(Yc);function Gc(t){return function(t){if(Array.isArray(t))return Kc(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Kc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kc(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"min",r=function(t){return"max"===n?Math.max.apply(Math,Gc(t)):Math.min.apply(Math,Gc(t))},o="max"===n?-1/0:1/0,i=!1,a=t.flat().reduce((function(t,n){var o=void 0!==n["_".concat(e,"0")]?n["_".concat(e,"0")]:n["_".concat(e)],a=void 0!==n["_".concat(e,"1")]?n["_".concat(e,"1")]:n["_".concat(e)],u=r([o,a]);return i=i||o instanceof Date||a instanceof Date,r([t,u])}),o);return i?new Date(a):a}function Xc(t,e){var n=E(t)?t:Jc,r=E(e)?e:Qc;return function(t,e){var o=function(t,e){var n=nl(t,e),r=el(t,e);return Et()(t.domain)&&t.domain[e]?t.domain[e]:Array.isArray(t.domain)?t.domain:void 0!==n&&void 0!==r?tl(n,r):void 0}(t,e);if(o)return r(o,t,e);var i=mc(t,e),a=i?function(t,e,n){var r=n||mc(t,e),o=t.polar,i=t.startAngle,a=void 0===i?0:i,u=t.endAngle,c=void 0===u?360:u;if(r){var l,s=nl(t,e),f=el(t,e),p=(l=r,Array.isArray(l)&&l.some((function(t){return"string"==typeof t}))?Oc(t,e):[]),h=0===p.length?null:p.reduce((function(t,e,n){return t[e]=n+1,t}),{}),y=h?r.map((function(t){return h[t]})):r,d=tl(void 0!==s?s:kn(y),void 0!==f?f:An(y));return o&&"x"===e&&360===Math.abs(a-c)?rl(d,y):d}}(t,e,i):n(t,e);return a?r(a,t,e):void 0}}function Qc(t,e,n){return function(t,e,n){return"log"!==uc(e,n)?t:(o=(r=t)[0]<0||r[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,[0===r[0]?o:r[0],0===r[1]?o:r[1]]);var r,o}(function(t,e,n){if(!e.domainPadding)return t;var r=nl(e,n),o=el(e,n),i=function(t,e){var n=function(t){return Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t}};return Et()(t.domainPadding)?n(t.domainPadding[e]):n(t.domainPadding)}(e,n);if(!i.left&&!i.right)return t;var a=kn(t),u=An(t),c=function(t,e){return e?"x"===t?"y":"x":t}(n,e.horizontal),l=D(e,c),s=Math.abs(l[0]-l[1]),f=Math.max(s-i.left-i.right,1),p=Math.abs(u.valueOf()-a.valueOf())/f*s,h=p*i.left/s,y=p*i.right/s,d={min:a.valueOf()-h,max:u.valueOf()+y},v=Et()(e.singleQuadrantDomainPadding)?e.singleQuadrantDomainPadding[n]:e.singleQuadrantDomainPadding,g=function(t,e){return"min"===e&&a>=0&&t<=0||"max"===e&&u<=0&&t>=0?0:t};if((a>=0&&d.min<=0||u<=0&&d.max>=0)&&!1!==v){var b={left:Math.abs(u-a)*i.left/s,right:Math.abs(u-a)*i.right/s},m={min:g(a.valueOf()-b.left,"min"),max:g(u.valueOf()+b.right,"max")},x={left:Math.abs(m.max-m.min)*i.left/s,right:Math.abs(m.max-m.min)*i.right/s};d={min:g(a.valueOf()-x.left,"min"),max:g(u.valueOf()+x.right,"max")}}var O={min:void 0!==r?r:d.min,max:void 0!==o?o:d.max};return a instanceof Date||u instanceof Date?tl(new Date(O.min),new Date(O.max)):tl(O.min,O.max)}(t,e,n),e,n)}function Jc(t,e,n){var r=n||xc(t),o=t.polar,i=t.startAngle,a=void 0===i?0:i,u=t.endAngle,c=void 0===u?360:u,l=nl(t,e),s=el(t,e);if(r.length<1)return void 0!==l&&void 0!==s?tl(l,s):void 0;var f=tl(void 0!==l?l:Zc(r,e,"min"),void 0!==s?s:Zc(r,e,"max"));return o&&"x"===e&&360===Math.abs(a-c)?rl(f,function(t,e){var n="_".concat(e);return t.flat().map((function(t){return t[n]&&void 0!==t[n][1]?t[n][1]:t[n]}))}(r,e)):f}function tl(t,e){var n,r,o,i;return Number(t)===Number(e)?(r=0===(n=e)?2*Math.pow(10,-10):Math.pow(10,-10),o=n instanceof Date?new Date(Number(n)-1):Number(n)-r,i=n instanceof Date?new Date(Number(n)+1):Number(n)+r,0===n?[0,i]:[o,i]):[t,e]}function el(t,e){return Et()(t.maxDomain)&&void 0!==t.maxDomain[e]?t.maxDomain[e]:"number"==typeof t.maxDomain||Vc()(t.maxDomain)?t.maxDomain:void 0}function nl(t,e){return Et()(t.minDomain)&&void 0!==t.minDomain[e]?t.minDomain[e]:"number"==typeof t.minDomain||Vc()(t.minDomain)?t.minDomain:void 0}function rl(t,e){var n=qc()(e.sort((function(t,e){return t-e}))),r=n[1]-n[0];return[t[0],t[1]+r]}function ol(t,e,n){var r=n?n.slice(0):x().Children.toArray(t.children),o=t.data?xc(t):void 0,i=t.polar,a=t.startAngle,u=t.endAngle,c=t.categories,l=t.minDomain,s=t.maxDomain,f={horizontal:t.horizontal,polar:i,startAngle:a,endAngle:u,minDomain:l,maxDomain:s,categories:c},p=o?Object.assign(f,{data:o}):f,h=T(r,(function(t){var n=Object.assign({},t.props,p);return function(t){var e=function(t){return t&&t.type?t.type.role:""},n=e(t);if("portal"===n){var r=x().Children.toArray(t.props.children);n=r.length?e(r[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}(t)?t.type&&E(t.type.getDomain)?t.props&&t.type.getDomain(n,e):function(t,e){return Xc()(t,e)}(n,e):null}),t);return[0===h.length?0:kn(h),0===h.length?1:An(h)]}function il(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return al(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?al(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function al(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ul={checkDomainEquality:function(t,e){var n=function(n){var r=t&&t[n],o=e&&e[n];return!r&&!o||!(!r||!o)&&Number(r[0])===Number(o[0])&&Number(r[1])===Number(o[1])};return n("x")&&n("y")},scale:function(t,e,n,r){var o=il(t,2),i=o[0],a=o[1],u=Math.abs(a-i),c=n.minimumZoom&&n.minimumZoom[r],l=this.getScaleFactor(e);if(c&&u<=c&&l<1)return t;var s=il(this.getDomain(n)[r],2),f=s[0],p=s[1],h=this.getScalePercent(e,n,r),y=l*i+h*(l*u),d=this.getMinimumDomain(y,n,r),v=il(this.getScaledDomain(t,l,h),2),g=v[0],b=v[1],m=[g>f&&g<p?g:f,b<p&&b>f?b:p],x=Math.abs(d[1]-d[0])>Math.abs(m[1]-m[0])?d:m;return Sn([f,p])?[new Date(x[0]),new Date(x[1])]:x},getScaledDomain:function(t,e,n){var r=il(t,2),o=r[0],i=r[1],a=Math.abs(i-o),u=a-a*e,c=Number(o)+u*n,l=Number(i)-u*(1-n);return[Math.min(c,l),Math.max(c,l)]},getMinimumDomain:function(t,e,n){var r=e.minimumZoom,o=il(this.getDomain(e)[n],2),i=o[0],a=o[1],u=Math.abs(i-a)/1e3,c=r&&r[n]||u,l=t-c/2,s=t+c/2;return[l>i&&l<a?l:i,s<a&&s>i?s:Number(i)+c/2]},zoommingOut:function(t){return t.deltaY>0},getScaleFactor:function(t){var e=this.zoommingOut(t)?1:-1,n=Math.min(Math.abs(t.deltaY/300),.5);return Math.abs(1+e*n)},getScalePercent:function(t,e,n){var r=this.getDomain(e),o=il(r[n],2),i=o[0],a=o[1];return(this.getPosition(t,e,r)[n]-i)/Math.abs(a-i)},getPosition:function(t,e,n){var r=_n(t),o=r.x,i=r.y,a={x:e.scale.x.domain(n.x),y:e.scale.y.domain(n.y)};return Nn(e,a,o,i)},pan:function(t,e,n){var r,o=il(t.map((function(t){return Number(t)})),2),i=o[0],a=o[1],u=il(e.map((function(t){return Number(t)})),2),c=u[0],l=u[1],s=i+n,f=a+n;return r=s>c&&f<l?[s,f]:s<c?[c,c+(a-i)]:f>l?[l-(a-i),l]:t,Sn(t)||Sn(e)?r.map((function(t){return new Date(t)})):r},getDomainScale:function(t,e,n){var r=il(Array.isArray(t)?t:t[n],2),o=r[0],i=r[1],a=e[n].range();return Math.abs(a[0]-a[1])/(i-o)},handleAnimation:function(t){var e=t.context.animationTimer,n=t.context.transitionTimer;return n.bypassAnimation(),e.bypassAnimation(),Wc()((function(){e.resumeAnimation(),n.resumeAnimation()}),16)},getLastDomain:function(t,e){var n=t.zoomDomain,r=t.cachedZoomDomain,o=t.currentDomain,i=t.domain;return n&&!this.checkDomainEquality(n,r)?b()({},n,i):b()({},o||n||e,i)},getDomain:function(t){var e=t.originalDomain,n=t.domain,r=t.children,o=t.zoomDimension,i=m.Children.toArray(r),a={};return i.length&&(a=o?function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},o,ol(t,o,i)):{x:ol(t,"x",i),y:ol(t,"y",i)}),b()({},a,e,n)},onMouseDown:function(t,e){if(t.preventDefault(),e.allowPan){var n=e.parentSVG||Cn(t),r=_n(t,n),o=r.x,i=r.y;return[{target:"parent",mutation:function(){return{startX:o,startY:i,panning:!0,parentSVG:n,parentControlledProps:["domain"]}}}]}},onMouseUp:function(t,e){if(e.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseLeave:function(t,e){if(e.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseMove:function(t,e,n,r){if(e.panning&&e.allowPan){var o=e.scale,i=e.startX,a=e.startY,u=e.onZoomDomainChange,c=e.zoomDomain,l=e.zoomDimension,s=e.horizontal,f=e.parentSVG||Cn(t),p=_n(t,f),h=p.x,y=p.y,d=this.getDomain(e),v=this.getLastDomain(e,d),g=s?i-h:y-a,m=(s?y-a:i-h)/this.getDomainScale(v,o,"x"),x=g/this.getDomainScale(v,o,"y"),O={x:"y"===l?d.x:this.pan(v.x,d.x,m),y:"x"===l?d.y:this.pan(v.y,d.y,x)},w=this.handleAnimation(r),j={parentControlledProps:["domain"],startX:h,startY:y,parentSVG:f,currentDomain:O,originalDomain:d,cachedZoomDomain:c,zoomActive:!this.checkDomainEquality(d,v)};return E(u)&&u(O,b()({},j,e)),[{target:"parent",callback:w,mutation:function(){return j}}]}},onWheel:function(t,e,n,r){if(e.allowZoom){var o=e.onZoomDomainChange,i=e.zoomDimension,a=e.zoomDomain,u=this.getDomain(e),c=this.getLastDomain(e,u),l=c.x,s=c.y,f={x:"y"===i?c.x:this.scale(l,t,e,"x"),y:"x"===i?c.y:this.scale(s,t,e,"y")},p=this.handleAnimation(r),h={currentDomain:f,originalDomain:u,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(t)||e.zoomActive&&!this.checkDomainEquality(u,c)};return E(o)&&o(f,b()({},h,e)),[{target:"parent",callback:p,mutation:function(){return h}}]}}},cl={checkDomainEquality:ul.checkDomainEquality.bind(ul),onMouseDown:ul.onMouseDown.bind(ul),onMouseUp:ul.onMouseUp.bind(ul),onMouseLeave:ul.onMouseLeave.bind(ul),onMouseMove:On()(ul.onMouseMove.bind(ul),16,{leading:!0,trailing:!1}),onWheel:On()(ul.onWheel.bind(ul),16,{leading:!0,trailing:!1})},ll=function(t){var e;return x().createElement("defs",null,x().createElement("clipPath",{id:null===(e=t.clipId)||void 0===e?void 0:e.toString()},t.children))},sl=["desc","id","tabIndex","origin"];function fl(){return fl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fl.apply(this,arguments)}function pl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function hl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yl=(0,m.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,sl)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pl(Object(n),!0).forEach((function(e){hl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=P(o,t))||void 0===n?void 0:n.toString(),tabIndex:P(i,t)},a);return r?x().createElement("circle",fl({},u,{ref:e}),x().createElement("desc",null,r)):x().createElement("circle",fl({},u,{ref:e}))}));function dl(t){return function(t){if(Array.isArray(t))return vl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return vl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vl(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function gl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gl(Object(n),!0).forEach((function(e){ml(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ml(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ol(t,e){return Ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ol(t,e)}function wl(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function jl(t){return jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jl(t)}var Ml=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ol(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=jl(r);if(o){var n=jl(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return wl(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).clipId=void 0,e.clipId=I()(t)&&void 0!==t.clipId?t.clipId:z()("victory-clip-"),e}return e=a,(n=[{key:"calculateAttributes",value:function(t){var e=t.polar,n=t.origin,r=t.clipWidth,o=void 0===r?0:r,i=t.clipHeight,a=void 0===i?0:i,u=t.translateX,c=void 0===u?0:u,l=t.translateY,s=void 0===l?0:l,f=M({padding:t.clipPadding}),p=t.radius||k(t);return{x:(e?n.x:c)-f.left,y:(e?n.y:s)-f.top,width:Math.max((e?p:o)+f.left+f.right,0),height:Math.max((e?p:a)+f.top+f.bottom,0)}}},{key:"renderClippedGroup",value:function(t,e){var n=gt(t),r=t.style,o=t.events,i=t.transform,a=t.children,u=t.className,c=t.groupComponent,l=t.tabIndex,s=this.renderClipComponent(t,e),f=Object.assign({className:u,style:r,transform:i,key:"clipped-group-".concat(e),clipPath:"url(#".concat(e,")")},o);return x().cloneElement(c,bl(bl({},f),{},{tabIndex:l},n),[s].concat(dl(x().Children.toArray(a))))}},{key:"renderGroup",value:function(t){var e=t.style,n=t.events,r=t.transform,o=t.children,i=t.className,a=t.groupComponent,u=t.tabIndex;return x().cloneElement(a,Object.assign({className:i,style:e,transform:r,"aria-label":t["aria-label"],tabIndex:u},n),o)}},{key:"renderClipComponent",value:function(t,e){var n,r=t.polar,o=t.origin,i=t.clipWidth,a=void 0===i?0:i,u=t.clipHeight,c=void 0===u?0:u,l=t.translateX,s=void 0===l?0:l,f=t.translateY,p=void 0===f?0:f,h=t.circleComponent,y=t.rectComponent,d=t.clipPathComponent,v=M({padding:t.clipPadding}),g=v.top,b=v.bottom,m=v.left,O=v.right;if(r){var w=t.radius||k(t),j={r:Math.max(w+m+O,w+g+b,0),cx:o.x-m,cy:o.y-g};n=x().cloneElement(h,j)}else{var P={x:s-m,y:p-g,width:Math.max(a+m+O,0),height:Math.max(c+g+b,0)};n=x().cloneElement(y,P)}return x().cloneElement(d,Object.assign({key:"clip-path-".concat(e)},t,{clipId:e}),n)}},{key:"getClipValue",value:function(t,e){var n={x:t.clipWidth,y:t.clipHeight};if(void 0!==n[e])return n[e];var r=D(t,e);return r&&Math.abs(r[0]-r[1])||void 0}},{key:"getTranslateValue",value:function(t,e){var n={x:t.translateX,y:t.translateY};if(void 0!==n[e])return n[e];var r=D(t,e);return r?Math.min.apply(Math,dl(r)):void 0}},{key:"render",value:function(){var t=this.getClipValue(this.props,"y"),e=this.getClipValue(this.props,"x");if(void 0===e||void 0===t)return this.renderGroup(this.props);var n=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),o=b()({},this.props,{clipHeight:t,clipWidth:e,translateX:n,translateY:r});return this.renderClippedGroup(o,this.clipId)}}])&&xl(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(x().Component);function Pl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Sl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pl(Object(n),!0).forEach((function(e){Al(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Al(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kl(t){return function(t){if(Array.isArray(t))return Dl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Dl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dl(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function El(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _l(t,e){return _l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_l(t,e)}function Tl(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Nl(t){return Nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nl(t)}function Il(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_l(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Nl(r);if(o){var n=Nl(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Tl(this,t)});function a(){return El(this,a),i.apply(this,arguments)}return e=a,n=[{key:"clipDataComponents",value:function(t,e){var n=e.scale,r=e.clipContainerComponent,o=e.polar,i=e.origin,a=e.horizontal,u=a?n.y.range():n.x.range(),c=a?n.x.range():n.y.range(),l=Math.abs(u[0]-u[1]),s=Math.abs(c[0]-c[1]),f=Math.max.apply(Math,kl(c)),p=x().cloneElement(r,Sl({clipWidth:l,clipHeight:s,translateX:Math.min.apply(Math,kl(u)),translateY:Math.min.apply(Math,kl(c)),polar:o,origin:o?i:void 0,radius:o?f:void 0},r.props));return x().Children.toArray(t).map((function(t){return wc(t)?x().cloneElement(t,{groupComponent:p}):t}))}},{key:"modifyPolarDomain",value:function(t,e){return{x:e.x,y:[0,t.y[1]]}}},{key:"downsampleZoomData",value:function(t,e,n){var r=t.downsample,o=function(t){var n=t.data,r=t.x,o=t.y,i=e.type&&E(e.type.getData)?e.type.getData:function(){};return!Array.isArray(n)||r||o?i(t):n}(e.props);if(r&&n&&o){var i=!0===r?150:r,a=t.zoomDimension||"x",u=o.findIndex((function(t){return t[a]>=n[a][0]})),c=o.findIndex((function(t){return t[a]>n[a][1]}));return 0!==u&&(u-=1),-1!==c&&(c+=1),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=yc(t);if(r>e){var o=Math.pow(2,Math.ceil(Math.log2(r/e)));return t.filter((function(t,e){return(e+n)%o==0}))}return t}(o.slice(u,c),i,u)}}},{key:"modifyChildren",value:function(t){var e=this;return x().Children.toArray(t.children).map((function(n){var r,o=n.type&&n.type.role,i=wc(n),a=t.currentDomain,u=t.zoomActive,c=t.allowZoom,l=b()({},t.originalDomain,t.domain),s=b()({},t.zoomDomain,t.domain),f=b()({},t.cachedZoomDomain,t.domain);r=cl.checkDomainEquality(s,f)?c&&!u?n.props.domain:b()({},a,l):s;var p=t.polar?e.modifyPolarDomain(r,l):r;p&&t.zoomDimension&&(p=Sl(Sl({},s),{},Al({},t.zoomDimension,p[t.zoomDimension])));var h=i&&"stack"!==o?{domain:p,data:e.downsampleZoomData(t,n,p)}:{domain:p};return x().cloneElement(n,b()(h,n.props))}))}},{key:"getChildren",value:function(t){var e=this.modifyChildren(t);return this.clipDataComponents(e,t)}}],n&&Cl(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryZoomContainer",e.defaultProps=Sl(Sl({},St.defaultProps),{},{clipContainerComponent:x().createElement(Ml,null),allowPan:!0,allowZoom:!0,zoomActive:!1}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:Sl({onMouseDown:function(e,n){return t.disable?{}:cl.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:cl.onMouseDown(e,n)},onMouseUp:function(e,n){return t.disable?{}:cl.onMouseUp(e,n)},onTouchEnd:function(e,n){return t.disable?{}:cl.onMouseUp(e,n)},onMouseLeave:function(e,n){return t.disable?{}:cl.onMouseLeave(e,n)},onTouchCancel:function(e,n){return t.disable?{}:cl.onMouseLeave(e,n)},onMouseMove:function(e,n,r,o){return t.disable?{}:cl.onMouseMove(e,n,r,o)},onTouchMove:function(e,n,r,o){return t.disable?{}:(e.preventDefault(),cl.onMouseMove(e,n,r,o))}},t.disable||!t.allowZoom?{}:{onWheel:cl.onWheel})}]},e}function Rl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function zl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Ml.displayName="VictoryClipContainer",Ml.role="container",Ml.defaultProps={circleComponent:x().createElement(yl,null),rectComponent:x().createElement(Pe,null),clipPathComponent:x().createElement(ll,null),groupComponent:x().createElement("g",null)},Il(St);var Ul=new(function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onMouseDown=function(t,n){t.preventDefault();var r=n.activateSelectedData,o=n.allowSelection,i=n.polar,a=n.selectedData;if(!o)return{};var u=e.getDimension(n),c=n.parentSVG||Cn(t),l=_n(t,c),s=l.x,f=l.y,p={x1:i||"y"!==u?s:Tn(n).x[0],y1:i||"x"!==u?f:Tn(n).y[0],select:!0,x2:i||"y"!==u?s:Tn(n).x[1],y2:i||"x"!==u?f:Tn(n).y[1],parentSVG:c};a&&E(n.onSelectionCleared)&&n.onSelectionCleared(b()({},p,n));var h,y=[{target:"parent",mutation:function(){return p}}],d=a&&r?a.map((function(t){return{childName:t.childName,eventKey:t.eventKey,target:"data",mutation:function(){return null}}})):[];return y.concat.apply(y,function(t){if(Array.isArray(t))return Rl(t)}(h=d)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(h)||function(t,e){if(t){if("string"==typeof t)return Rl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rl(t,e):void 0}}(h)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},this.handleMouseMove=function(t,n){var r=n.allowSelection,o=n.select,i=n.polar,a=e.getDimension(n);if(!r||!o)return null;var u=n.parentSVG||Cn(t),c=_n(t,u),l=c.x,s=c.y,f=i||"y"!==a?l:Tn(n).x[1],p=i||"x"!==a?s:Tn(n).y[1];return{target:"parent",mutation:function(){return{x2:f,y2:p,parentSVG:u}}}},this.onMouseMove=On()(this.handleMouseMove,16,{leading:!0,trailing:!1}),this.onMouseUp=function(t,n){var r=n.activateSelectedData,o=n.allowSelection,i=n.x2,a=n.y2;if(!o)return null;if(!i||!a)return[{target:"parent",mutation:function(){return{select:!1,x1:null,x2:null,y1:null,y2:null}}}];var u=e.getDatasets(n),c=In(n),l=e.filterDatasets(n,u),s={selectedData:l,datasets:u,select:!1,x1:null,x2:null,y1:null,y2:null},f=l&&E(n.onSelection)?n.onSelection(l,c,b()({},s,n)):{},p=[{target:"parent",mutation:function(){return s}}],h=l&&r?l.map((function(t){return{childName:t.childName,eventKey:t.eventKey,target:"data",mutation:function(){return Object.assign({active:!0},f)}}})):[];return p.concat(h)}}var e,n;return e=t,(n=[{key:"getDimension",value:function(t){var e=t.horizontal,n=t.selectionDimension;return e&&n?"x"===n?"y":"x":n}},{key:"getDatasets",value:function(t){return t.data?[{data:t.data}]:T(x().Children.toArray(t.children),(function(e,n,r){var o,i=t.selectionBlacklist||[];if(!wc(e)||i.includes(n))return null;if(e.type&&E(e.type.getData)){var a=(o=r?x().cloneElement(e,r.props):e).props&&o.type.getData(o.props);return a?{childName:n,data:a}:null}var u,c=(u=xc(o.props),Array.isArray(u)&&u.length>0?u:void 0);return c?{childName:n,data:c}:null}),t)}},{key:"filterDatasets",value:function(t,e){var n=this,r=e.reduce((function(e,r){var o=n.getSelectedData(t,r.data);return o?e.concat({childName:r.childName,eventKey:o.eventKey,data:o.data}):e}),[]);return r.length?r:null}},{key:"getSelectedData",value:function(t,e){for(var n,r=t.x1,o=t.y1,i=t.x2,a=t.y2,u=[],c=[],l=0,s=0,f=e.length;s<f;s++){var p=e[s];void 0,(n=j(t,p)).x>=Math.min(r,i)&&n.x<=Math.max(r,i)&&n.y>=Math.min(o,a)&&n.y<=Math.max(o,a)&&(c[l]=p,u[l]=void 0===p.eventKey?s:p.eventKey,l++)}return l>0?{eventKey:u,data:c}:null}}])&&zl(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function Ll(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ll(Object(n),!0).forEach((function(e){Bl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Wl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vl(t,e){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vl(t,e)}function Yl(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ql(t){return ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ql(t)}function Gl(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vl(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ql(r);if(o){var n=ql(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Yl(this,t)});function a(){return Wl(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"getRect",value:function(t){var e=t.x1,n=t.x2,r=t.y1,o=t.y2,i=t.selectionStyle,a=t.selectionComponent,u=t.name,c=Math.abs(n-e)||1,l=Math.abs(o-r)||1,s=Math.min(e,n),f=Math.min(r,o);return o&&n&&e&&r?x().cloneElement(a,{key:"".concat(u,"-selection"),x:s,y:f,width:c,height:l,style:i}):null}},{key:"getChildren",value:function(t){return[].concat(function(t){if(Array.isArray(t))return Hl(t)}(e=x().Children.toArray(t.children))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return Hl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hl(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[this.getRect(t)]);var e}}])&&$l(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictorySelectionContainer",e.defaultProps=Fl(Fl({},St.defaultProps),{},{activateSelectedData:!0,allowSelection:!0,selectionComponent:x().createElement(Pe,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,n){return t.disable?{}:Ul.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:Ul.onMouseDown(e,n)},onMouseMove:function(e,n){return t.disable?{}:Ul.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:Ul.onMouseMove(e,n)},onMouseUp:function(e,n){return t.disable?{}:Ul.onMouseUp(e,n)},onTouchEnd:function(e,n){return t.disable?{}:Ul.onMouseUp(e,n)}}}]},e}function Kl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kl(Object(n),!0).forEach((function(e){Xl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ql(t){return function(t){if(Array.isArray(t))return Jl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Jl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jl(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Gl(St);var ts={getDimension:function(t){var e=t.horizontal,n=t.brushDimension;return e&&n?"x"===n?"y":"x":n},withinBounds:function(t,e,n){var r=_(e,Number),o=r.x1,i=r.x2,a=r.y1,u=r.y2,c=_(t,Number),l=c.x,s=c.y,f=n?n/2:0;return l+f>=Math.min(o,i)&&l-f<=Math.max(o,i)&&s+f>=Math.min(a,u)&&s-f<=Math.max(a,u)},getDomainBox:function(t,e,n){var r=this.getDimension(t),o=b()({},e,t.domain),i=b()({},n,o),a=Tn(t,o),u=Tn(t,i);return{x1:"y"!==r?Math.min.apply(Math,Ql(u.x)):Math.min.apply(Math,Ql(a.x)),x2:"y"!==r?Math.max.apply(Math,Ql(u.x)):Math.max.apply(Math,Ql(a.x)),y1:"x"!==r?Math.min.apply(Math,Ql(u.y)):Math.min.apply(Math,Ql(a.y)),y2:"x"!==r?Math.max.apply(Math,Ql(u.y)):Math.max.apply(Math,Ql(a.y))}},getHandles:function(t,e){var n=this.getDimension(t),r=e.x1,o=e.x2,i=e.y1,a=e.y2,u=Math.min(r,o),c=Math.max(r,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==n&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==n&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==n&&{x1:r,x2:o,y1:l-f,y2:l+f},bottom:"x"!==n&&{x1:r,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,e,n){var r=this,o=this.getHandles(e,n),i=["top","bottom","left","right"].reduce((function(e,n){return o[n]&&r.withinBounds(t,o[n])?e.concat(n):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var n=t.x1,r=t.y1,o=t.x2,i=t.y2,a={left:{x1:Math.max(n,o),x2:Math.min(n,o),y1:r,y2:i},right:{x1:Math.min(n,o),x2:Math.max(n,o),y1:r,y2:i},top:{y1:Math.max(r,i),y2:Math.min(r,i),x1:n,x2:o},bottom:{y1:Math.min(r,i),y2:Math.max(r,i),x1:n,x2:o}};return e.reduce((function(t,e){return Object.assign(t,a[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,n){var r=t.domain,o=t.fullDomain,i=t.scale,a=t.horizontal,u=t.allowResize||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return e;if("move"===u){var c=this.getDomainBox(t,o,e),l=t.parentSVG||Cn(n),s=this.panBox(Zl(Zl(Zl({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),_n(n,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return In(Zl(Zl({},this.constrainBox(s,f)),{},{scale:i,horizontal:a}))}return r},getSelectionMutation:function(t,e,n){var r=t.x,o=t.y,i=e.x1,a=e.x2,u=e.y1,c=e.y2;return{x1:"y"!==n?r:i,y1:"x"!==n?o:u,x2:"y"!==n?r:a,y2:"x"!==n?o:c}},panBox:function(t,e){var n=t.domain,r=t.startX,o=t.startY,i=this.getDimension(t),a=b()({},t.brushDomain,n),u=b()({},t.fullDomain,n),c=t.x1?t:this.getDomainBox(t,u,a),l=c.x1,s=c.x2,f=c.y1,p=c.y2,h=e.x,y=e.y,d=r?r-h:0,v=o?o-y:0;return{x1:"y"!==i?Math.min(l,s)-d:Math.min(l,s),x2:"y"!==i?Math.max(l,s)-d:Math.max(l,s),y1:"x"!==i?Math.min(f,p)-v:Math.min(f,p),y2:"x"!==i?Math.max(f,p)-v:Math.max(f,p)}},constrainBox:function(t,e){var n=_(e,Number),r=n.x1,o=n.y1,i=n.x2,a=n.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,r),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<r?r+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,e){var n=_(e,Number),r=n.x1,o=n.y1,i=n.x2,a=n.y2;return{x:Math.min(Math.max(t.x,r),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,n=t.x2,r=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(e-n)>=i,c=Math.abs(r-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,e){var n=this;t.preventDefault();var r=e.handleWidth,o=e.cachedBrushDomain,i=e.domain,a=e.allowResize,u=e.allowDrag,c=e.allowDraw,l=this.getDimension(e),s=a||e.defaultBrushArea?e.defaultBrushArea:"move";if(!a&&!u)return{};var f=e.fullDomainBox||this.getDomainBox(e,i),p=e.parentSVG||Cn(t),h=_n(t,p),y=h.x,d=h.y;if(!this.withinBounds({x:y,y:d},f,r))return{};var v=b()({},e.brushDomain,i),g=Mc()(v,o)?e.currentDomain||v||i:v||i,m=this.getDomainBox(e,i,g),x=a&&this.getActiveHandles({x:y,y:d},e,m);return x?[{target:"parent",mutation:function(){return Zl({isSelecting:!0,domainBox:m,fullDomainBox:f,cachedBrushDomain:v,currentDomain:g,parentSVG:p},n.getResizeMutation(m,x))}}]:this.withinBounds({x:y,y:d},m)&&!Mc()(i,g)?[{target:"parent",mutation:function(){return Zl({isPanning:u,startX:y,startY:d,domainBox:m,fullDomainBox:f,currentDomain:g,cachedBrushDomain:v,parentSVG:p},m)}}]:c?[{target:"parent",mutation:function(){return Zl({isSelecting:a||"move"===s,domainBox:m,fullDomainBox:f,parentSVG:p,cachedBrushDomain:v,cachedCurrentDomain:g,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:y,y:d},m,l))}}]:{}},onGlobalMouseMove:function(t,e){var n=e.scale,r=e.isPanning,o=e.isSelecting,i=e.fullDomainBox,a=e.onBrushDomainChange,u=e.allowResize,c=e.allowDrag,l=e.horizontal,s=e.mouseMoveThreshold,f=e.parentSVG,p=this.getDimension(e),h=_n(t,f),y=h.x,d=h.y;if(!u&&!c||s>0&&!this.hasMoved(Zl(Zl({},e),{},{x2:y,y2:d})))return{};if(c&&r){var v=e.startX,g=e.startY,m=this.panBox(e,{x:y,y:d}),x=this.constrainBox(m,i),O=In(Zl(Zl({},x),{},{scale:n,horizontal:l})),w=Zl({currentDomain:O,parentSVG:f,startX:m.x2>=i.x2||m.x1<=i.x1?v:y,startY:m.y2>=i.y2||m.y1<=i.y1?g:d},x);return E(a)&&a(O,b()({},w,e)),[{target:"parent",mutation:function(){return w}}]}if(u&&o){var j=this.constrainPoint({x:"y"!==p?y:e.x2,y:"x"!==p?d:e.y2},i),M=j.x,P=j.y,S=In({x2:M,y2:P,x1:e.x1,y1:e.y1,scale:n,horizontal:l}),A={x2:M,y2:P,currentDomain:S,parentSVG:f};return E(a)&&a(S,b()({},A,e)),[{target:"parent",mutation:function(){return A}}]}return{}},onGlobalMouseUp:function(t,e){if(!e.isPanning&&!e.isSelecting)return{};var n=e.x1,r=e.y1,o=e.x2,i=e.y2,a=e.isPanning,u=e.isSelecting,c=e.onBrushDomainChange,l=e.onBrushDomainChangeEnd,s=e.onBrushCleared,f=e.currentDomain,p=e.allowResize,h=e.allowDrag,y=p||e.defaultBrushArea?e.defaultBrushArea:"move",d={isPanning:!1,isSelecting:!1};if(!p&&(void 0===y||"none"===y)||n!==o&&r!==i)(h&&a||p&&u)&&E(l)&&l(f,b()({},d,e));else{var v=e.cachedCurrentDomain||f,g=this.getDefaultBrushArea(e,v,t);d.currentDomain=g,E(c)&&c(g,b()({},d,e)),E(l)&&l(g,b()({},d,e)),E(s)&&s(g,b()({},d,e))}return[{target:"parent",mutation:function(){return d}}]}},es=Zl(Zl({},ts),{},{onMouseDown:ts.onMouseDown.bind(ts),onGlobalMouseUp:ts.onGlobalMouseUp.bind(ts),onGlobalMouseMove:On()(ts.onGlobalMouseMove.bind(ts),16,{leading:!0,trailing:!1})});function ns(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function rs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ns(Object(n),!0).forEach((function(e){os(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ns(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function os(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function is(t){return function(t){if(Array.isArray(t))return as(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return as(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?as(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function as(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function us(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ls(t,e){return ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ls(t,e)}function ss(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function fs(t){return fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fs(t)}function ps(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ls(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=fs(r);if(o){var n=fs(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return ss(this,t)});function a(){return us(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"getSelectBox",value:function(t,e){var n=e.x,r=e.y,o=t.brushStyle,i=t.brushComponent,a=t.name,u=i.props&&i.props.style,c=t.allowDrag||t.allowResize?"move":"auto";return n[0]!==n[1]&&r[0]!==r[1]?x().cloneElement(i,{key:"".concat(a,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(r[1]-r[0])||1,x:Math.min(n[0],n[1]),y:Math.min(r[0],r[1]),cursor:c,style:b()({},u,o)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,e){var n=t.handleWidth,r=t.handleStyle,o=t.handleComponent,i=t.name,a=es.getDomainBox(t,e),u=a.x1,c=a.x2,l=a.y1,s=a.y2,f=es.getHandles(t,a),p=f.top,h=f.bottom,y=f.left,d=f.right,v=Math.abs(c-u)||1,g=Math.abs(s-l)||1,m=o.props&&o.props.style||{},O=b()({},m,r),w=this.getCursorPointers(t),j={style:O,width:v,height:n,cursor:w.yProps},M={style:O,width:n,height:g,cursor:w.xProps},P={top:p&&Object.assign({x:p.x1,y:p.y1},j),bottom:h&&Object.assign({x:h.x1,y:h.y1},j),left:y&&Object.assign({y:y.y1,x:y.x1},M),right:d&&Object.assign({y:d.y1,x:d.x1},M)},S=["top","bottom","left","right"].reduce((function(t,e){return P[e]?t.concat(x().cloneElement(o,Object.assign({key:"".concat(i,"-handle-").concat(e)},P[e]))):t}),[]);return S.length?S:null}},{key:"getRect",value:function(t){var e=t.currentDomain,n=t.cachedBrushDomain,r=b()({},t.brushDomain,t.domain),o=Mc()(r,n)?b()({},e,r):r,i=Tn(t,o),a=this.getSelectBox(t,i);return a?[a,this.getHandles(t,o)]:[]}},{key:"getChildren",value:function(t){return[].concat(is(x().Children.toArray(t.children)),is(this.getRect(t)))}}])&&cs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryBrushContainer",e.defaultProps=rs(rs({},St.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:x().createElement(Pe,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:x().createElement(Pe,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,n){return t.disable?{}:es.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:es.onMouseDown(e,n)},onGlobalMouseMove:function(e,n){return t.disable||!n.isPanning&&!n.isSelecting?{}:es.onGlobalMouseMove(e,n)},onGlobalTouchMove:function(e,n){return t.disable||!n.isPanning&&!n.isSelecting?{}:es.onGlobalMouseMove(e,n)},onGlobalMouseUp:function(e,n){return t.disable?{}:es.onGlobalMouseUp(e,n)},onGlobalTouchEnd:function(e,n){return t.disable?{}:es.onGlobalMouseUp(e,n)},onGlobalTouchCancel:function(e,n){return t.disable?{}:es.onGlobalMouseUp(e,n)}}}]},e}ps(St);var hs=["desc","id","tabIndex","origin"];function ys(){return ys=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ys.apply(this,arguments)}function ds(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gs=(0,m.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,hs)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ds(Object(n),!0).forEach((function(e){vs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=P(o,t))||void 0===n?void 0:n.toString(),tabIndex:P(i,t)},a);return r?x().createElement("line",ys({},u,{ref:e}),x().createElement("desc",null,r)):x().createElement("line",ys({},u,{ref:e}))}));function bs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ms(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bs(Object(n),!0).forEach((function(e){xs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Os={lineComponent:x().createElement(gs,null),role:"presentation",shapeRendering:"auto"},ws=function(t){var e=function(t){var e=P(t.ariaLabel,t),n=P(t.desc,t),r=P(t.id,t),o=S(Object.assign({stroke:"black"},t.style),t),i=P(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(ms(ms({},Os),t));return x().cloneElement(e.lineComponent,ms(ms({},e.events),{},{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,transform:e.transform,clipPath:e.clipPath}))};function js(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ms=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.handleMouseMove=function(t,n){var r=n.onCursorChange,o=n.domain,i=e.getDimension(n),a=n.parentSVG||Cn(t),u=_n(t,a),c=Nn(n,n.scale,u.x,u.y);return e.withinBounds(c,{x1:o.x[0],x2:o.x[1],y1:o.y[0],y2:o.y[1]})||(c=null),E(r)&&(c?r(i?c[i]:c,n):c!==n.cursorValue&&r(n.defaultCursorValue||null,n)),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:c,parentSVG:a}}}]},this.onMouseMove=On()(this.handleMouseMove,16,{leading:!0,trailing:!1}),this.onMouseLeave=this.handleMouseMove,this.onTouchEnd=function(t,e){var n=e.onCursorChange;return E(e.onCursorChange)&&n(null,e),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}}var e,n;return e=t,n=[{key:"getDimension",value:function(t){var e=t.horizontal,n=t.cursorDimension;return e&&n?"x"===n?"y":"x":n}},{key:"withinBounds",value:function(t,e){var n=_(e,Number),r=n.x1,o=n.x2,i=n.y1,a=n.y2,u=_(t,Number),c=u.x,l=u.y;return c>=Math.min(r,o)&&c<=Math.max(r,o)&&l>=Math.min(i,a)&&l<=Math.max(i,a)}}],n&&js(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ps=new Ms;function Ss(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function As(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ss(Object(n),!0).forEach((function(e){Es(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ks(t){return function(t){if(Array.isArray(t))return Ds(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ds(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ds(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ds(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Es(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ts(t,e){return Ts=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ts(t,e)}function Ns(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Is(t){return Is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Is(t)}function Rs(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ts(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Is(r);if(o){var n=Is(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Ns(this,t)});function a(){return Cs(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"getCursorPosition",value:function(t){var e=t.cursorValue,n=t.defaultCursorValue,r=t.domain,o=t.cursorDimension;return e||("number"==typeof n?Es({x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2},o,n):n)}},{key:"getCursorLabelOffset",value:function(t){var e=t.cursorLabelOffset;return"number"==typeof e?{x:e,y:e}:e}},{key:"getPadding",value:function(t){return void 0===t.padding?M(t.children.find((function(t){return I()(t.props)&&void 0!==t.props.padding})).props):M(t)}},{key:"getCursorElements",value:function(t){var e=t.scale,n=t.cursorLabelComponent,r=t.cursorLabel,o=t.cursorComponent,i=t.width,a=t.height,u=t.name,c=t.horizontal,l=t.theme,s=Ps.getDimension(t),f=this.getCursorPosition(t),p=this.getCursorLabelOffset(t);if(!f)return[];var h,y=[],d=this.getPadding(t),v={x:c?e.y(f.y):e.x(f.x),y:c?e.x(f.x):e.y(f.y)};if(r){var g=b()({active:!0},n.props,{x:v.x+p.x,y:v.y+p.y,datum:f,active:!0,key:"".concat(u,"-cursor-label")});if("tooltip"===((h=n)&&h.type&&h.type.role)){var m=l&&l.tooltip||{};g=b()({},g,m)}y.push(x().cloneElement(n,b()({},g,{text:P(r,g)})))}var O=Object.assign({stroke:"black"},o.props.style);return"x"!==s&&void 0!==s||y.push(x().cloneElement(o,{key:"".concat(u,"-x-cursor"),x1:v.x,x2:v.x,y1:d.top,y2:a-d.bottom,style:O})),"y"!==s&&void 0!==s||y.push(x().cloneElement(o,{key:"".concat(u,"-y-cursor"),x1:d.left,x2:i-d.right,y1:v.y,y2:v.y,style:O})),y}},{key:"getChildren",value:function(t){return[].concat(ks(x().Children.toArray(t.children)),ks(this.getCursorElements(t)))}}])&&_s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryCursorContainer",e.defaultProps=As(As({},St.defaultProps),{},{cursorLabelComponent:x().createElement(Xe,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:x().createElement(ws,null)}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,n){return t.disable?{}:Ps.onMouseLeave(e,n)},onTouchCancel:function(){return[]},onMouseMove:function(e,n){return t.disable?{}:Ps.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:Ps.onMouseMove(e,n)}}}]},e}function zs(t){return function(t){if(Array.isArray(t))return qs(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ys(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Us(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ls(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Us(Object(n),!0).forEach((function(e){Fs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ws(t,e){return Ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ws(t,e)}function $s(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Vs(t){return Vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vs(t)}function Ys(t,e){if(t){if("string"==typeof t)return qs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qs(t,e):void 0}}function qs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Gs(t){return t?Array.isArray(t)?t:[t]:[]}Rs(St);var Ks=function(t,e){var r,o=t.map((function(t){return t(e)})),i=o.map((function(t){return new t})),u=a()(t)(e),l=o.map((function(t){return t.displayName.match(/Victory(.*)Container/)[1]||""})).join("");return r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ws(t,e)}(u,t);var e,n,r,o,a=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Vs(r);if(o){var n=Vs(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return $s(this,t)});function u(){return Bs(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"getChildren",value:function(t){return i.reduce((function(e,n){return n.getChildren(Ls(Ls({},t),{},{children:e}))}),t.children)}}])&&Hs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(u),r.displayName="Victory".concat(l,"Container"),r.propTypes=o.reduce((function(t,e){return Ls(Ls({},t),e.propTypes)}),{}),r.defaultProps=o.reduce((function(t,e){return Ls(Ls({},t),e.defaultProps)}),{}),r.defaultEvents=function(t){return e=o.reduce((function(e,n){var r=E(n.defaultEvents)?n.defaultEvents(t):n.defaultEvents;return[].concat(zs(e),zs(r))}),[]),r=s()(e,"target"),i=p()(r).map((function(t){var e,r,o,i=(o=2,function(t){if(Array.isArray(t))return t}(r=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(r,o)||Ys(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],u=i[1],l=u.filter(Boolean);return n()(l)?null:{target:a,eventHandlers:(e=u.map((function(t){return t.eventHandlers})),e.reduce((function(t,e){return c()(t,(function(t,n){var r=e[n];e[n]=r?function(){var e=Gs(r.apply(void 0,arguments)),n=Gs(t.apply(void 0,arguments));return e.concat(n)}:t})),e})))}})),i.filter(Boolean);var e,r,i},r},Zs=function(t,e){t&&!e.includes(t)&&'"'.concat(t,'" is not a valid behavior. Choose from [').concat(e.join(", "),"].")},Xs=function(t,e){return function(n,r){var o=Object.keys(t);Zs(n,o),Zs(r,o);var i=t[n],a=t[r]||[];return i?Ks([].concat(zs(i),zs(a)),e):e}},Qs=Xs({zoom:[Il],voronoi:[Bc],selection:[Gl],cursor:[Rs],brush:[ps]},St)})(),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,A=1/0,k=0;k<f;k++){var S=r(w,D,e[2*k],e[2*k+1]);S<A&&(x=k,A=S)}var C=e[2*x],O=e[2*x+1];A=1/0;for(var _=0;_<f;_++)if(_!==x){var j=r(C,O,e[2*_],e[2*_+1]);j<A&&j>0&&(b=_,A=j)}for(var E=e[2*b],P=e[2*b+1],T=1/0,N=0;N<f;N++)if(N!==x&&N!==b){var $=a(C,O,E,P,e[2*N],e[2*N+1]);$<T&&(M=N,T=$)}var z=e[2*M],L=e[2*M+1];if(T===1/0){for(var U=0;U<f;U++)this._dists[U]=e[2*U]-e[0]||e[2*U+1]-e[1];u(this._ids,this._dists,0,f-1);for(var F=new Uint32Array(f),I=0,H=0,R=-1/0;H<f;H++){var W=this._ids[H];this._dists[W]>R&&(F[I++]=W,R=this._dists[W])}return this.hull=F.subarray(0,I),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(i(C,O,E,P,z,L)){var B=b,V=E,Y=P;b=M,E=z,P=L,M=B,z=V,L=Y}var q=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,E,P,z,L);this._cx=q.x,this._cy=q.y;for(var G=0;G<f;G++)this._dists[G]=r(e[2*G],e[2*G+1],q.x,q.y);u(this._ids,this._dists,0,f-1),this._hullStart=x;var Z=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(E,P)]=b,c[this._hashKey(z,L)]=M,this.trianglesLen=0,this._addTriangle(x,b,M,-1,-1,-1);for(var K=0,X=void 0,Q=void 0;K<this._ids.length;K++){var J=this._ids[K],tt=e[2*J],nt=e[2*J+1];if(!(K>0&&Math.abs(tt-X)<=t&&Math.abs(nt-Q)<=t)&&(X=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,Z++;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,Z--,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,Z--,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(Z);for(var lt=0,ct=this._hullStart;lt<Z;lt++)this.hull[lt]=ct,ct=s[ct];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},e.prototype._hashKey=function(t,n){return Math.floor((e=t-this._cx,r=n-this._cy,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],A=i[2*g],k=i[2*g+1],S=i[2*y],C=i[2*y+1],O=void 0,_=void 0,j=void 0,E=void 0,P=void 0,T=void 0,N=void 0,$=void 0,(O=b-S)*((E=D-C)*($=(P=A-S)*P+(T=k-C)*T)-(N=(j=w-S)*j+E*E)*T)-(_=M-C)*(j*$-N*P)+(O*O+_*_)*(j*T-E*P)<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,A,k,S,C,O,_,j,E,P,T,N,$;return u},e.prototype._link=function(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)},e.prototype._addTriangle=function(t,n,e,r,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))}},1179:function(t){t.exports=function(){}},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,A=b==M;if(A&&l(t)){if(!l(n))return!1;v=!0,w=!1}if(A&&!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 k=w&&p.call(t,"__wrapped__"),S=D&&p.call(n,"__wrapped__");if(k||S){var C=k?t.value():t,O=S?n.value():n;return m||(m=new r),y(C,O,e,g,m)}}return!!A&&(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}}},2740:function(t,n,e){var r=e(1179),o=e(5557),i=e(7356),a=e(9267),u=e(163),s=e(7423);t.exports=function(t){return o((function(n){var e=n.length,o=e,l=r.prototype.thru;for(t&&n.reverse();o--;){var c=n[o];if("function"!=typeof c)throw new TypeError("Expected a function");if(l&&!f&&"wrapper"==a(c))var f=new r([],!0)}for(o=f?o:e;++o<e;){c=n[o];var h=a(c),d="wrapper"==h?i(c):void 0;f=d&&s(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?f[a(d[0])].apply(f,d[3]):1==c.length&&s(c)?f[h]():f.thru(c)}return function(){var t=arguments,r=t[0];if(f&&1==t.length&&u(r))return f.plant(r).value();for(var o=0,i=e?n[o].apply(this,t):r;++o<e;)i=n[o].call(this,i);return i}}))}},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}},7356:function(t){t.exports=function(){}},9267:function(t){t.exports=function(){return""}},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)}},7423:function(t){t.exports=function(){return!1}},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):[]}},9560:function(t,n,e){var r=e(2740)();t.exports=r},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,{combineContainerMixins:function(){return is},createContainer:function(){return ss},makeCreateContainerFunction:function(){return us}});var t={};r.r(t),r.d(t,{scaleBand:function(){return In},scaleDiverging:function(){return Wa},scaleDivergingLog:function(){return Ba},scaleDivergingPow:function(){return Ya},scaleDivergingSqrt:function(){return qa},scaleDivergingSymlog:function(){return Va},scaleIdentity:function(){return kr},scaleImplicit:function(){return Un},scaleLinear:function(){return Ar},scaleLog:function(){return Nr},scaleOrdinal:function(){return Fn},scalePoint:function(){return Rn},scalePow:function(){return Wr},scaleQuantile:function(){return no},scaleQuantize:function(){return eo},scaleRadial:function(){return qr},scaleSequential:function(){return $a},scaleSequentialLog:function(){return za},scaleSequentialPow:function(){return Ua},scaleSequentialQuantile:function(){return Ia},scaleSequentialSqrt:function(){return Fa},scaleSequentialSymlog:function(){return La},scaleSqrt:function(){return Br},scaleSymlog:function(){return Ur},scaleThreshold:function(){return ro},scaleTime:function(){return Ea},scaleUtc:function(){return Pa},tickFormat:function(){return wr}});var n=r(4155),e=r.n(n),i=r(9560),a=r.n(i),u=r(3105),s=r.n(u),l=r(9056),c=r.n(l),f=r(4542),h=r.n(f),d=r(9082),p=r.n(d),g=r(8532),y=r.n(g),m=r(1893),v=r.n(m),x=r(9787),b=r.n(x);function M(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 w(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,h={x:n(i)?i:c,x0:n(o)?o:e,y:n(l)?l:f,y0:n(s)?s:a};return v()({},h,t)}function D(t,n){const{scale:e,polar:r,horizontal:o}=t,i=w(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 A(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 k(t,n){return j(t)?t(n):t}function S(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>j(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=k(t[r],n),e)),{}):t}function C(t){return"number"==typeof t?t*(Math.PI/180):t}function O(t){const{left:n,right:e,top:r,bottom:o}=A(t),{width:i,height:a}=t;return Math.min(i-n-e,a-r-o)/2}function _(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?[C(t.startAngle||0),C(t.endAngle||360)]:[t.innerRadius||0,O(t)]}(t,n):function(t,n){const e="x"!==n,r=A(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)}function j(t){return"function"==typeof t}function E(t){return j(t)?t:null==t?t=>t:y()(t)}function P(t,n){if(t)return Object.keys(t).reduce(((e,r)=>(e[r]=n(t[r]),e)),{})}function T(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,p()(e,i)),n=r.type&&"stack"===r.type.role&&j(r.type.getChildren)?r.type.getChildren(t):b().Children.toArray(r.props.children).map((n=>{const e=Object.assign({},n.props,p()(t,i));return b().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(x.isValidElement),s=u.map(((t,n)=>n));return a(u,s)}var N=r(7709),$=r.n(N),z=r(660),L=r.n(z);class U extends b().Component{static displayName="Portal";constructor(t){super(t),this.map={},this.index=1}portalRegister=()=>++this.index;portalUpdate=(t,n)=>{this.map[t]=n,this.forceUpdate()};portalDeregister=t=>{delete this.map[t],this.forceUpdate()};getChildren(){return Object.keys(this.map).map((t=>{const n=this.map[t];return n?b().cloneElement(n,{key:t}):n}))}render(){return b().createElement("svg",this.props,this.getChildren())}}const F=b().createContext({});F.displayName="PortalContext";var I,H,R=0,W=0,B=0,V=0,Y=0,q=0,G="object"==typeof performance&&performance.now?performance:Date,Z="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function K(){return Y||(Z(X),Y=G.now()+q)}function X(){Y=0}function Q(){this._call=this._time=this._next=null}function J(t,n,e){var r=new Q;return r.restart(t,n,e),r}function tt(){Y=(V=G.now())+q,R=W=0;try{!function(){K(),++R;for(var t,n=I;n;)(t=Y-n._time)>=0&&n._call.call(void 0,t),n=n._next;--R}()}finally{R=0,function(){for(var t,n,e=I,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:I=n);H=t,et(r)}(),Y=0}}function nt(){var t=G.now(),n=t-V;n>1e3&&(q-=n,V=t)}function et(t){R||(W&&(W=clearTimeout(W)),t-Y>24?(t<1/0&&(W=setTimeout(tt,t-G.now()-q)),B&&(B=clearInterval(B))):(B||(V=G.now(),B=setInterval(nt,1e3)),R=1,Z(tt)))}Q.prototype=J.prototype={constructor:Q,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?K():+e)+(null==n?0:+n),this._next||H===this||(H?H._next=this:I=this,H=this),this._call=t,this._time=e,et()},stop:function(){this._call&&(this._call=null,this._time=1/0,et())}};class rt{constructor(){this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}loop=()=>{this.subscribers.forEach((t=>{t.callback(K()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=J(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:K(),callback:t,duration:this.shouldAnimate?n:0});return this.activeSubscriptions++,this.start(),e}unsubscribe(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}const ot=b().createContext({transitionTimer:new rt,animationTimer:new rt});ot.displayName="TimerContext";var it=ot;const at={startsWith:["data-","aria-"],exactMatch:[]};function ut(t,n){if(null==t)throw new Error(n)}const st=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return at.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>at.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,k(r,t)]})))};function lt(){return lt=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},lt.apply(this,arguments)}class ct extends b().Component{static displayName="VictoryContainer";static role="container";static defaultProps={className:"VictoryContainer",portalComponent:b().createElement(U,null),portalZIndex:99,responsive:!0,role:"img"};static contextType=it;constructor(t){super(t),this.containerId=$()(t)&&void 0!==t.containerId?t.containerId:L()("victory-container-"),this.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel)}savePortalRef=t=>(this.portalRef=t,t);portalUpdate=(t,n)=>this.portalRef.portalUpdate(t,n);portalRegister=()=>this.portalRef.portalRegister();portalDeregister=t=>this.portalRef.portalDeregister(t);saveContainerRef=t=>(j(this.props.containerRef)&&this.props.containerRef(t),this.containerRef=t,t);handleWheel=t=>t.preventDefault();componentDidMount(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}componentWillUnmount(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}getIdForElement(t){return`${this.containerId}-${t}`}getChildren(t){return t.children}getOUIAProps(t){const{ouiaId:n,ouiaSafe:e,ouiaType:r}=t;return{...n&&{"data-ouia-component-id":n},...r&&{"data-ouia-component-type":r},...void 0!==e&&{"data-ouia-safe":e}}}renderContainer(t,n,e){const{title:r,desc:o,portalComponent:i,className:a,width:u,height:s,portalZIndex:l,responsive:c}=t,f=this.getChildren(t),h=c?{width:"100%",height:"100%"}:{width:u,height:s},d=Object.assign({pointerEvents:"none",touchAction:"none",position:"relative"},h),p=Object.assign({zIndex:l,position:"absolute",top:0,left:0},h),g=Object.assign({pointerEvents:"all"},h),y=Object.assign({overflow:"visible"},h),m={width:u,height:s,viewBox:n.viewBox,preserveAspectRatio:n.preserveAspectRatio,style:y};return b().createElement(F.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},b().createElement("div",lt({style:v()({},e,d),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),b().createElement("svg",lt({},n,{style:g}),r?b().createElement("title",{id:this.getIdForElement("title")},r):null,o?b().createElement("desc",{id:this.getIdForElement("desc")},o):null,f),b().createElement("div",{style:p},b().cloneElement(i,{...m,ref:this.savePortalRef}))))}render(){const{width:t,height:n,responsive:e,events:r,title:o,desc:i,tabIndex:a,preserveAspectRatio:u,role:s}=this.props,l=e?this.props.style:M(this.props.style,["height","width"]),c=st(this.props),f=Object.assign({width:t,height:n,tabIndex:a,role:s,"aria-labelledby":[o&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[i&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:e?`0 0 ${t} ${n}`:void 0,preserveAspectRatio:e?u:void 0,...c},r);return this.renderContainer(this.props,f,l)}}var ft=r(4143),ht=r.n(ft),dt=r(3849),pt=r.n(dt);class gt extends b().Component{static displayName="VictoryPortal";static role="portal";static defaultProps={groupComponent:b().createElement("g",null)};static contextType=F;componentDidMount(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}componentDidUpdate(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}componentWillUnmount(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}renderPortal(t){return this.renderInPlace?t:(this.element=t,null)}render(){const t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,{groupComponent:n}=this.props,e=t&&t.props||{},r=e.groupComponent?{groupComponent:n,standalone:!1}:{},o=v()(r,e,M(this.props,["children","groupComponent"])),i=t&&b().cloneElement(t,o);return this.renderPortal(i)}}function yt(){return yt=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},yt.apply(this,arguments)}const mt=(0,x.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:k(r,t)?.toString(),tabIndex:k(o,t),...a};return e?b().createElement("rect",yt({},u,{ref:n}),b().createElement("desc",null,e)):b().createElement("rect",yt({},u,{ref:n}))})),vt=t=>{const{children:n,desc:e,id:r,origin:o,tabIndex:i,title:a,...u}=t,s={id:k(r,t)?.toString(),tabIndex:k(i,t),...u};return b().createElement("text",s,a&&b().createElement("title",null,a),e&&b().createElement("desc",null,e),n)},xt=t=>{const{desc:n,id:e,tabIndex:r,origin:o,...i}=t,a={id:k(e,t)?.toString(),tabIndex:k(r,t),...i};return b().createElement("tspan",a)};function bt(t,n){const{x:e}=w(n);return("number"==typeof(r=t.scale.x(e))?r/(Math.PI/180):r)%360;var r}const Mt=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,Mt(n)].join(" ")),Mt(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 wt=r(1594),Dt=r.n(wt);const At={"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},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}},kt={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},St={em:1,ex:.5},Ct={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Ot=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),_t=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},jt=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let o;return o=e?kt.hasOwnProperty(e)?r*kt[e]:St.hasOwnProperty(e)?(n?r*n:r*Ct.fontSize)*St[e]:r:r||0,o},Et=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=v()({},e,Ct);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:jt(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:jt(String(r.fontSize))})},Pt=(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:Ot(t).reduce(((t,e,r)=>{const o=Et(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=Ot(t).map(((t,e)=>{const r=t.toString().length,{fontSize:o,letterSpacing:i,fontFamily:a}=Et(n,e),u=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>At[t]))||"Helvetica";return At[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?_t(o,r,e):o,height:1.05*(e?_t(r,o,e):r)}},Tt=Dt()((()=>{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})),Nt=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",$t=Dt()(((t,n)=>{let e=Tt();e.isConnected||(Tt.cache.clear?.(),e=Tt());const r=Ot(t);let o=0;for(const[t,i]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=Et(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?_t(i,o,n?.angle):i,height:n?.angle?_t(o,i,n?.angle):o}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(Nt).join():Nt(n)}`)),zt=(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?Pt(t,n):$t(t,n)}(t,n),Lt={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Ut=(t,n)=>t.datum?D(t,t.datum)[n]:0,Ft=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return Lt.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?Lt.fontSize:t}return Lt.fontSize},It=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},Ht=t=>{const{backgroundStyle:n,backgroundPadding:r}=t;return Array.isArray(n)&&!e()(n)||Array.isArray(r)&&!e()(r)},Rt=(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)}},Wt=(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)}},Bt=(t,n)=>Ht(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=It(n,o-1),u=t.textSize,c=t.fontSize*t.lineHeight,f=Math.ceil(c),h=It(a,o),d=It(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=Rt(t,n.labelSize.width),f=c.slice(0,e+1).reduce(((t,n)=>t+n.dy),l),h=It(a,e),d=n.heightWithPadding,p=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-h.left:r,g=s?Wt(t,d)-h.top:f,y={key:`tspan-background-${e}`,height:d,style:It(i,e),width:n.widthWithPadding,transform:o,x:p-h.left,y:g};return b().cloneElement(u,v()({},u.props,y))}))})(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))),h=Rt(t,f),d=Wt(t,c),p={key:"background",height:c+u.top+u.bottom,style:i,transform:r,width:f+u.left+u.right,x:a?h-u.left:h+e-u.left,y:d};return b().cloneElement(o,v()({},o.props,p))})(t,n),Vt=(t,n,e)=>{const{inline:r}=n,o=It(t,e);return e&&!r?((t,n,e)=>{const r=It(t,n),o=It(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 Ht(e)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l})(t,e,n):r?0===e?o.backgroundPadding.top:void 0:o.backgroundPadding.top},Yt=t=>{const n=k(t.ariaLabel,t),r=It(t.style),o=(t=>{const n=k(t.lineHeight,t);return Array.isArray(n)&&e()(n)?[1]:n})(t),i=t.direction?k(t.direction,t):"inherit",a=t.textAnchor?k(t.textAnchor,t):r.textAnchor||"start",u=t.verticalAnchor?k(t.verticalAnchor,t):r.verticalAnchor||"middle",s=t.dx?k(t.dx,t):0,l=((t,n,e)=>{const r=t.dy?k(t.dy,t):0,o=t.inline?1:t.text.length,i=k(t.capHeight,t),a=n?k(n,t):"middle",u=[...Array(o).keys()].map((n=>It(t.style,n).fontSize)),s=[...Array(o).keys()].map((t=>It(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,o),c=void 0!==t.x?t.x:Ut(t,"x"),f=void 0!==t.y?t.y:Ut(t,"y"),h=((t,n,e)=>{const{polar:r}=t,o=It(t.style),i=r?function(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const o=bt(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?k(t.angle,t):o.angle,u=void 0===a?i:a,s=t.transform||o.transform,l=s&&k(s,t);return l||u?Mt(l,u&&{rotate:[u,n,e]}):void 0})(t,c,f);return Object.assign({},t,{ariaLabel:n,lineHeight:o,direction:i,textAnchor:a,verticalAnchor:u,dx:s,dy:l,originalDy:k(t.dy,t),transform:h,x:c,y:f})},qt={backgroundComponent:b().createElement(mt,null),groupComponent:b().createElement("g",null),direction:"inherit",textComponent:b().createElement(vt,null),tspanComponent:b().createElement(xt,null),capHeight:.71,lineHeight:1},Gt=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>k(t,n)));const e=k(t,n);return null!=e?Array.isArray(e)?e:`${e}`.split("\n"):void 0})(t.text,t),r=((t,n)=>{if(n.disableInlineStyles){const e=S(t,n);return{fontSize:Ft(e)}}const r=t=>{const e=S(t?v()({},t,Lt):Lt,n);return Object.assign({},e,{fontSize:Ft(e)})};return Array.isArray(t)&&!e()(t)?t.map((t=>r(t))):r(t)})(t.style,Object.assign({},t,{text:n})),o=((t,n)=>{if(t)return Array.isArray(t)&&!e()(t)?t.map((t=>S(t,n))):S(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:r})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>A({padding:k(n,t)}))):A({padding:k(t.backgroundPadding,t)}))(Object.assign({},t,{text:n,style:r,backgroundStyle:o})),a=k(t.id,t);return Object.assign({},t,{backgroundStyle:o,backgroundPadding:i,style:r,text:n,id:a})})({...qt,...t});if(null===n.text||void 0===n.text)return null;const r=Yt(n),{text:o,style:i,capHeight:a,backgroundPadding:u,lineHeight:s}=r,l=o.map(((t,n)=>{const e=It(i,n),r=jt(`${a}em`,e.fontSize),o=It(s,n);return{style:e,fontSize:e.fontSize||Lt.fontSize,capHeight:r,text:t,textSize:zt(t,e),lineHeight:o,backgroundPadding:It(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:p,desc:g,id:y,tabIndex:m,tspanComponent:v,textComponent:x}=t,M=st(t),w={"aria-label":e,key:"text",...a,direction:u,dx:c,x:d,y:p+f,transform:h,className:o,title:i,desc:k(g,t),tabIndex:k(m,t),id:y,...M},D=s.map(((e,o)=>{const i=n[o].style,a={key:`${y}-key-${o}`,x:r?void 0:d,dx:r?c+n[o].backgroundPadding.left:c,dy:Vt(n,t,o),textAnchor:i.textAnchor||l,style:i,children:e};return b().cloneElement(v,a)}));return b().cloneElement(x,w,D)})(r,l);if(n.backgroundStyle){const t=[Bt(r,l),c],e=b().cloneElement(n.groupComponent,{},t);return n.renderInPortal?b().createElement(gt,null,e):e}return n.renderInPortal?b().createElement(gt,null,c):c};Gt.displayName="VictoryLabel",Gt.role="label",Gt.defaultStyles=Lt;const Zt=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Kt="#252525",Xt="#969696",Qt={width:450,height:300,padding:50,colorScale:Zt},Jt={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:Kt,stroke:"transparent"},tn=Object.assign({textAnchor:"middle"},Jt),nn={area:Object.assign({style:{data:{fill:Kt},labels:Jt}},Qt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Kt,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},tn,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Jt}},Qt),bar:Object.assign({style:{data:{fill:Kt,padding:8,strokeWidth:0},labels:Jt}},Qt),boxplot:Object.assign({style:{max:{padding:8,stroke:Kt,strokeWidth:1},maxLabels:Object.assign({},Jt,{padding:3}),median:{padding:8,stroke:Kt,strokeWidth:1},medianLabels:Object.assign({},Jt,{padding:3}),min:{padding:8,stroke:Kt,strokeWidth:1},minLabels:Object.assign({},Jt,{padding:3}),q1:{padding:8,fill:Xt},q1Labels:Object.assign({},Jt,{padding:3}),q3:{padding:8,fill:Xt},q3Labels:Object.assign({},Jt,{padding:3})},boxWidth:20},Qt),candlestick:Object.assign({style:{data:{stroke:Kt,strokeWidth:1},labels:Object.assign({},Jt,{padding:5})},candleColors:{positive:"#ffffff",negative:Kt}},Qt),chart:Qt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:Kt,strokeWidth:2},labels:Jt}},Qt),group:Object.assign({colorScale:Zt},Qt),histogram:Object.assign({style:{data:{fill:Xt,stroke:Kt,strokeWidth:2},labels:Jt}},Qt),legend:{colorScale:Zt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Jt,title:Object.assign({},Jt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:Kt,strokeWidth:2},labels:Jt}},Qt),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},Jt,{padding:20})},colorScale:Zt,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:Kt,stroke:"transparent",strokeWidth:0},labels:Jt}},Qt),stack:Object.assign({colorScale:Zt},Qt),tooltip:{style:Object.assign({},Jt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Kt,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({},Jt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Kt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Qt)},en=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],rn="#ECEFF1",on="#90A4AE",an="#455A64",un="#212121",sn={width:350,height:350,padding:50},ln={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:an,stroke:"transparent",strokeWidth:0},cn=Object.assign({textAnchor:"middle"},ln),fn="round",hn="round",dn={grayscale:nn,material:{area:Object.assign({style:{data:{fill:un},labels:ln}},sn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:on,strokeWidth:2,strokeLinecap:fn,strokeLinejoin:hn},axisLabel:Object.assign({},cn,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:rn,strokeDasharray:"10, 5",strokeLinecap:fn,strokeLinejoin:hn,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:on,strokeWidth:1,strokeLinecap:fn,strokeLinejoin:hn},tickLabels:Object.assign({},ln,{fill:an})}},sn),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:an,padding:8,strokeWidth:0},labels:ln}},sn),boxplot:Object.assign({style:{max:{padding:8,stroke:an,strokeWidth:1},maxLabels:Object.assign({},ln,{padding:3}),median:{padding:8,stroke:an,strokeWidth:1},medianLabels:Object.assign({},ln,{padding:3}),min:{padding:8,stroke:an,strokeWidth:1},minLabels:Object.assign({},ln,{padding:3}),q1:{padding:8,fill:an},q1Labels:Object.assign({},ln,{padding:3}),q3:{padding:8,fill:an},q3Labels:Object.assign({},ln,{padding:3})},boxWidth:20},sn),candlestick:Object.assign({style:{data:{stroke:an},labels:Object.assign({},ln,{padding:5})},candleColors:{positive:"#ffffff",negative:an}},sn),chart:sn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:an,strokeWidth:2},labels:ln}},sn),group:Object.assign({colorScale:en},sn),histogram:Object.assign({style:{data:{fill:an,stroke:un,strokeWidth:2},labels:ln}},sn),legend:{colorScale:en,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:ln,title:Object.assign({},ln,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:an,strokeWidth:2},labels:ln}},sn),pie:Object.assign({colorScale:en,style:{data:{padding:8,stroke:rn,strokeWidth:1},labels:Object.assign({},ln,{padding:20})}},sn),scatter:Object.assign({style:{data:{fill:an,opacity:1,stroke:"transparent",strokeWidth:0},labels:ln}},sn),stack:Object.assign({colorScale:en},sn),tooltip:{style:Object.assign({},ln,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:un,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({},ln,{padding:5,pointerEvents:"none"}),flyout:{stroke:un,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},sn)}};function pn(){return pn=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},pn.apply(this,arguments)}const gn=(0,x.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={id:k(r,t)?.toString(),tabIndex:k(o,t),...a};return e?b().createElement("path",pn({},u,{ref:n}),b().createElement("desc",null,e)):b().createElement("path",pn({},u,{ref:n}))})),yn=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)},mn={pathComponent:b().createElement(gn,null),role:"presentation",shapeRendering:"auto"},vn=t=>{const n=(t=>{const n=k(t.id,t),e=S(t.style,t);return{...t,id:n,style:e}})({...mn,...t}),e=st(n);ut(n.height,"Flyout props[height] is undefined"),ut(n.width,"Flyout props[width] is undefined"),ut(n.x,"Flyout props[x] is undefined"),ut(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 b().cloneElement(n.pathComponent,{...n.events,...e,style:n.style,d:yn(r),className:n.className,shapeRendering:n.shapeRendering,role:n.role,transform:n.transform,clipPath:n.clipPath})},xn={cornerRadius:5,pointerLength:10,pointerWidth:10};class bn extends b().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:b().createElement(Gt,null),flyoutComponent:b().createElement(vn,null),groupComponent:b().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?L()("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=bt(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||dn.grayscale,e=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>v()({},t,e))):v()({},t.style,e),o=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},i=t.flyoutStyle?v()({},t.flyoutStyle,o):o,a=Array.isArray(r)?r.map((n=>S(n,t))):S(r,t);return{style:a,flyoutStyle:S(i,Object.assign({},t,{style:a}))}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:e,dx:r,dy:o}=t,i=k(t.active,t);let a=k(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=k(t.orientation,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s}))||this.getDefaultOrientation(t),c=A({padding:k(t.flyoutPadding,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s,orientation:l}))||this.getLabelPadding(u)}),f=k(t.pointerWidth,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s,orientation:l})),h=k(t.pointerLength,Object.assign({},t,{active:i,text:a,style:u,flyoutStyle:s,orientation:l})),d=zt(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=pt()(e)&&void 0!==e?.x?k(e.x,y):0,v=pt()(e)&&void 0!==e?.y?k(e.y,y):0;return{...y,centerOffset:{x:m,y:v},dx:void 0!==r?k(r,y):0,dy:void 0!==o?k(o,y):0,cornerRadius:k(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:zt(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=bt(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=pt()(t.center)&&void 0!==t.center.x?t.center.x:p.x,y=pt()(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=k(t.cornerRadius,t);return{flyoutHeight:i?k(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?k(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:h}=t,d=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return v()({},c.props,{key:`${this.id}-label-${f}`,text:u,datum:s,activePoints:l,textAnchor:d,dy:i,dx:a,style:r,x:(()=>{if(!d||"middle"===d)return e.x;const t="end"===d?-1:1;return e.x-t*(o.width/2)})()+(h.left-h.right)/2,y:e.y+(h.top-h.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 ht()(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:h,pointerWidth:d,cornerRadius:p,events:g,flyoutComponent:y}=t,m=k(t.pointerOrientation,t);return v()({},y.props,{x:i,y:a,dx:u,dy:s,datum:l,activePoints:c,index:f,pointerLength:h,pointerWidth:d,cornerRadius:p,events:g,orientation:m||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=k(t.active,t),{renderInPortal:e}=t;if(!n)return e?b().createElement(gt,null):null;const r=this.getEvaluatedProps(t),{flyoutComponent:o,labelComponent:i,groupComponent:a}=r,u=this.getCalculatedValues(r),s=[b().cloneElement(o,this.getFlyoutProps(r,u)),b().cloneElement(i,this.getLabelProps(r,u))],l=b().cloneElement(a,{role:"presentation",transform:u.transform},s);return e?b().createElement(gt,null,l):l}render(){const t=function(t,n,e){const r=M(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(b().Children.toArray(r.children))}),!1);return n(b().Children.toArray(t.children))}(t),i=void 0===o?{}:{horizontal:o};return v()(i,t,r,n)}(this.props,xn,"tooltip");return this.renderTooltip(t)}}var Mn=r(8163),wn=r.n(Mn),Dn=r(5395),An=r.n(Dn);function kn(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function Sn(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 kn(o)?new Date(Math.max(...o)):Math.max(...o)}function Cn(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 kn(o)?new Date(Math.min(...o)):Math.min(...o)}r(1616),r(8999);var On=r(8254),_n=r.n(On),jn=r(9602),En=r.n(jn);function Pn(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 Tn(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function Nn(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 $n extends Map{constructor(t,n=Ln){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(zn(this,t))}has(t){return super.has(zn(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 zn({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function Ln(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Un=Symbol("implicit");function Fn(){var t=new $n,n=[],e=[],r=Un;function o(o){let i=t.get(o);if(void 0===i){if(r!==Un)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 $n;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 Fn(n,e).unknown(r)},Tn.apply(o,arguments),o}function In(){var t,n,e=Fn().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=Pn(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 In(r(),[i,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},Tn.apply(f(),arguments)}function Hn(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Hn(n())},t}function Rn(){return Hn(In.apply(null,arguments).paddingInner(1))}var Wn=Math.sqrt(50),Bn=Math.sqrt(10),Vn=Math.sqrt(2);function Yn(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=qn(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 qn(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>=Wn?10:i>=Bn?5:i>=Vn?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Wn?10:i>=Bn?5:i>=Vn?2:1)}function Gn(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>=Wn?o*=10:i>=Bn?o*=5:i>=Vn&&(o*=2),n<t?-o:o}function Zn(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Kn(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Xn(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=Zn,e=(n,e)=>Zn(t(n),e),r=(n,e)=>t(n)-e):(n=t===Zn||t===Kn?t:Qn,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 Qn(){return 0}function Jn(t){return null===t?NaN:+t}const te=Xn(Zn),ne=te.right;te.left,Xn(Jn).center;var ee=ne;function re(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function oe(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function ie(){}var ae=.7,ue=1/ae,se="\\s*([+-]?\\d+)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fe=/^#([0-9a-f]{3,8})$/,he=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),de=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),pe=new RegExp(`^rgba\\(${se},${se},${se},${le}\\)$`),ge=new RegExp(`^rgba\\(${ce},${ce},${ce},${le}\\)$`),ye=new RegExp(`^hsl\\(${le},${ce},${ce}\\)$`),me=new RegExp(`^hsla\\(${le},${ce},${ce},${le}\\)$`),ve={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 xe(){return this.rgb().formatHex()}function be(){return this.rgb().formatRgb()}function Me(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=fe.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?we(n):3===e?new Se(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?De(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?De(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=he.exec(t))?new Se(n[1],n[2],n[3],1):(n=de.exec(t))?new Se(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=pe.exec(t))?De(n[1],n[2],n[3],n[4]):(n=ge.exec(t))?De(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=ye.exec(t))?Pe(n[1],n[2]/100,n[3]/100,1):(n=me.exec(t))?Pe(n[1],n[2]/100,n[3]/100,n[4]):ve.hasOwnProperty(t)?we(ve[t]):"transparent"===t?new Se(NaN,NaN,NaN,0):null}function we(t){return new Se(t>>16&255,t>>8&255,255&t,1)}function De(t,n,e,r){return r<=0&&(t=n=e=NaN),new Se(t,n,e,r)}function Ae(t){return t instanceof ie||(t=Me(t)),t?new Se((t=t.rgb()).r,t.g,t.b,t.opacity):new Se}function ke(t,n,e,r){return 1===arguments.length?Ae(t):new Se(t,n,e,null==r?1:r)}function Se(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Ce(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}`}function Oe(){const t=_e(this.opacity);return`${1===t?"rgb(":"rgba("}${je(this.r)}, ${je(this.g)}, ${je(this.b)}${1===t?")":`, ${t})`}`}function _e(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function je(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ee(t){return((t=je(t))<16?"0":"")+t.toString(16)}function Pe(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ne(t,n,e,r)}function Te(t){if(t instanceof Ne)return new Ne(t.h,t.s,t.l,t.opacity);if(t instanceof ie||(t=Me(t)),!t)return new Ne;if(t instanceof Ne)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 Ne(a,u,s,t.opacity)}function Ne(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function $e(t){return(t=(t||0)%360)<0?t+360:t}function ze(t){return Math.max(0,Math.min(1,t||0))}function Le(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 Ue(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}re(ie,Me,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:xe,formatHex:xe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Te(this).formatHsl()},formatRgb:be,toString:be}),re(Se,ke,oe(ie,{brighter(t){return t=null==t?ue:Math.pow(ue,t),new Se(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?ae:Math.pow(ae,t),new Se(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Se(je(this.r),je(this.g),je(this.b),_e(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:Ce,formatHex:Ce,formatHex8:function(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}${Ee(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Oe,toString:Oe})),re(Ne,(function(t,n,e,r){return 1===arguments.length?Te(t):new Ne(t,n,e,null==r?1:r)}),oe(ie,{brighter(t){return t=null==t?ue:Math.pow(ue,t),new Ne(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?ae:Math.pow(ae,t),new Ne(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 Se(Le(t>=240?t-240:t+120,o,r),Le(t,o,r),Le(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new Ne($e(this.h),ze(this.s),ze(this.l),_e(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=_e(this.opacity);return`${1===t?"hsl(":"hsla("}${$e(this.h)}, ${100*ze(this.s)}%, ${100*ze(this.l)}%${1===t?")":`, ${t})`}`}}));var Fe=t=>()=>t;function Ie(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Fe(isNaN(t)?n:t)}var He=function t(n){var e=function(t){return 1==(t=+t)?Ie: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):Fe(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=ke(t)).r,(n=ke(n)).r),o=e(t.g,n.g),i=e(t.b,n.b),a=Ie(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 Re(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=ke(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 We(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]=Xe(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 Be(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function Ve(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Ye(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]=Xe(t[e],n[e]):o[e]=n[e];return function(t){for(e in r)o[e]=r[e](t);return o}}Re((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 Ue((e-r/n)*n,a,o,i,u)}})),Re((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 Ue((e-r/n)*n,o,i,a,u)}}));var qe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ge=new RegExp(qe.source,"g");function Ze(t,n){var e,r,o,i=qe.lastIndex=Ge.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=qe.exec(t))&&(r=Ge.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:Ve(e,r)})),i=Ge.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 Ke(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 Xe(t,n){var e,r,o=typeof n;return null==n||"boolean"===o?Fe(n):("number"===o?Ve:"string"===o?(e=Me(n))?(n=e,He):Ze:n instanceof Me?He:n instanceof Date?Be:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?We:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Ye:Ve:Ke))(t,n)}function Qe(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Je(t){return+t}var tr=[0,1];function nr(t){return t}function er(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function rr(t,n,e){var r=t[0],o=t[1],i=n[0],a=n[1];return o<r?(r=er(o,r),i=e(a,i)):(r=er(r,o),i=e(i,a)),function(t){return i(r(t))}}function or(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]=er(t[a],t[a+1]),i[a]=e(n[a],n[a+1]);return function(n){var e=ee(t,n,1,r)-1;return i[e](o[e](n))}}function ir(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ar(){var t,n,e,r,o,i,a=tr,u=tr,s=Xe,l=nr;function c(){var t,n,e,s=Math.min(a.length,u.length);return l!==nr&&(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?or:rr,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),Ve)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Je),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=Qe,c()},f.clamp=function(t){return arguments.length?(l=!!t||nr,c()):l!==nr},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 ur(){return ar()(nr,nr)}var sr,lr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cr(t){if(!(n=lr.exec(t)))throw new Error("invalid format: "+t);var n;return new fr({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 fr(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 hr(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 dr(t){return(t=hr(Math.abs(t)))?t[1]:NaN}function pr(t,n){var e=hr(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")}cr.prototype=fr.prototype,fr.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 gr={"%":(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)=>pr(100*t,n),r:pr,s:function(t,n){var e=hr(t,n);if(!e)return t+"";var r=e[0],o=e[1],i=o-(sr=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")+hr(t,Math.max(0,n+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function yr(t){return t}var mr,vr,xr,br=Array.prototype.map,Mr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wr(t,n,e,r){var o,i=Gn(t,n,e);switch((r=cr(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(dr(n)/3)))-dr(Math.abs(t)))}(i,a))||(r.precision=o),xr(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,dr(n)-dr(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,-dr(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return vr(r)}function Dr(t){var n=t.domain;return t.ticks=function(t){var e=n();return Yn(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return wr(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=qn(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 Ar(){var t=ur();return t.copy=function(){return ir(t,Ar())},Tn.apply(t,arguments),Dr(t)}function kr(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,Je),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return kr(t).unknown(n)},t=arguments.length?Array.from(t,Je):[0,1],Dr(e)}function Sr(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 Cr(t){return Math.log(t)}function Or(t){return Math.exp(t)}function _r(t){return-Math.log(-t)}function jr(t){return-Math.exp(-t)}function Er(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Pr(t){return(n,e)=>-t(-n,e)}function Tr(t){const n=t(Cr,Or),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?Er:t===Math.E?Math.exp:n=>Math.pow(t,n)}(i),e()[0]<0?(r=Pr(r),o=Pr(o),t(_r,jr)):t(Cr,Or),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=Yn(a,u,d))}else p=Yn(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=cr(e)).precision||(e.trim=!0),e=vr(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(Sr(e(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),n}function Nr(){const t=Tr(ar()).domain([1,10]);return t.copy=()=>ir(t,Nr()).base(t.base()),Tn.apply(t,arguments),t}function $r(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function zr(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function Lr(t){var n=1,e=t($r(n),zr(n));return e.constant=function(e){return arguments.length?t($r(n=+e),zr(n)):n},Dr(e)}function Ur(){var t=Lr(ar());return t.copy=function(){return ir(t,Ur()).constant(t.constant())},Tn.apply(t,arguments)}function Fr(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Ir(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Hr(t){return t<0?-t*t:t*t}function Rr(t){var n=t(nr,nr),e=1;function r(){return 1===e?t(nr,nr):.5===e?t(Ir,Hr):t(Fr(e),Fr(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},Dr(n)}function Wr(){var t=Rr(ar());return t.copy=function(){return ir(t,Wr()).exponent(t.exponent())},Tn.apply(t,arguments),t}function Br(){return Wr.apply(null,arguments).exponent(.5)}function Vr(t){return Math.sign(t)*t*t}function Yr(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function qr(){var t,n=ur(),e=[0,1],r=!1;function o(e){var o=Yr(n(e));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return n.invert(Vr(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,Je)).map(Vr)),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 qr(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},Tn.apply(o,arguments),Dr(o)}function Gr(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 Zr(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 Kr(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Xr(t,n,e=0,r=t.length-1,o){for(o=void 0===o?Kr:function(t=Zn){if(t===Zn)return Kr;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);Xr(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(Qr(t,e,n),o(t[r],i)>0&&Qr(t,e,r);a<u;){for(Qr(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[e],i)?Qr(t,e,u):(++u,Qr(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function Qr(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function Jr(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 Zr(t);if(n>=1)return Gr(t);var r,o=(r-1)*n,i=Math.floor(o),a=Gr(Xr(t,i).subarray(0,i+1));return a+(Zr(t.subarray(i+1))-a)*(o-i)}}function to(t,n,e=Jn){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 no(){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]=to(n,t/o);return i}function i(n){return null==n||isNaN(n=+n)?t:e[ee(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(Zn),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 no().domain(n).range(e).unknown(t)},Tn.apply(i,arguments)}function eo(){var t,n=0,e=1,r=1,o=[.5],i=[0,1];function a(n){return null!=n&&n<=n?i[ee(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 eo().domain([n,e]).range(i).unknown(t)},Tn.apply(Dr(a),arguments)}function ro(){var t,n=[.5],e=[0,1],r=1;function o(o){return null!=o&&o<=o?e[ee(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 ro().domain(n).range(e).unknown(t)},Tn.apply(o,arguments)}mr=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?yr:(n=br.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?yr:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(br.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=cr(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"):gr[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=gr[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 A=(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)),A&&0==+t&&"+"!==f&&(A=!1),h=(A?"("===f?f:l:"-"===f||"("===f?"":f)+h,D=("s"===v?Mr[8+sr/3]:"")+D+(A&&"("===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 k=h.length+t.length+D.length,S=k<p?new Array(p-k+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,k=S.length>>1)+h+t+D+S.slice(k);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=cr(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(dr(n)/3))),o=Math.pow(10,-r),i=Mr[8+r/3];return function(t){return e(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),vr=mr.format,xr=mr.formatPrefix;const oo=1e3,io=6e4,ao=36e5,uo=864e5,so=6048e5,lo=31536e6;var co=new Date,fo=new Date;function ho(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 ho((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 co.setTime(+n),fo.setTime(+r),t(co),t(fo),Math.floor(e(co,fo))},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 po=ho((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));po.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ho((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):po:null};var go=po,yo=(po.range,ho((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*oo)}),(function(t,n){return(n-t)/oo}),(function(t){return t.getUTCSeconds()}))),mo=yo,vo=(yo.range,ho((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*oo)}),(function(t,n){t.setTime(+t+n*io)}),(function(t,n){return(n-t)/io}),(function(t){return t.getMinutes()}))),xo=vo,bo=(vo.range,ho((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*oo-t.getMinutes()*io)}),(function(t,n){t.setTime(+t+n*ao)}),(function(t,n){return(n-t)/ao}),(function(t){return t.getHours()}))),Mo=bo,wo=(bo.range,ho((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*io)/uo),(t=>t.getDate()-1))),Do=wo;function Ao(t){return ho((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())*io)/so}))}wo.range;var ko=Ao(0),So=Ao(1),Co=Ao(2),Oo=Ao(3),_o=Ao(4),jo=Ao(5),Eo=Ao(6),Po=(ko.range,So.range,Co.range,Oo.range,_o.range,jo.range,Eo.range,ho((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()}))),To=Po,No=(Po.range,ho((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()})));No.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ho((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 $o=No,zo=(No.range,ho((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*io)}),(function(t,n){return(n-t)/io}),(function(t){return t.getUTCMinutes()}))),Lo=zo,Uo=(zo.range,ho((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*ao)}),(function(t,n){return(n-t)/ao}),(function(t){return t.getUTCHours()}))),Fo=Uo,Io=(Uo.range,ho((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/uo}),(function(t){return t.getUTCDate()-1}))),Ho=Io;function Ro(t){return ho((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)/so}))}Io.range;var Wo=Ro(0),Bo=Ro(1),Vo=Ro(2),Yo=Ro(3),qo=Ro(4),Go=Ro(5),Zo=Ro(6),Ko=(Wo.range,Bo.range,Vo.range,Yo.range,qo.range,Go.range,Zo.range,ho((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()}))),Xo=Ko,Qo=(Ko.range,ho((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()})));Qo.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ho((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 Jo=Qo;function ti(t,n,e,r,o,i){const a=[[mo,1,oo],[mo,5,5e3],[mo,15,15e3],[mo,30,3e4],[i,1,io],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,ao],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,uo],[r,2,1728e5],[e,1,so],[n,1,2592e6],[n,3,7776e6],[t,1,lo]];function u(n,e,r){const o=Math.abs(e-n)/r,i=Xn((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(Gn(n/lo,e/lo,r));if(0===i)return go.every(Math.max(Gn(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]}Qo.range;const[ni,ei]=ti(Jo,Xo,Wo,Ho,Fo,Lo),[ri,oi]=ti($o,To,ko,Do,Mo,xo);function ii(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 ai(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 ui(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var si,li,ci,fi={"-":"",_:" ",0:"0"},hi=/^\s*\d+/,di=/^%/,pi=/[\\^$*+?|[\]().{}]/g;function gi(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 yi(t){return t.replace(pi,"\\$&")}function mi(t){return new RegExp("^(?:"+t.map(yi).join("|")+")","i")}function vi(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function xi(t,n,e){var r=hi.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function bi(t,n,e){var r=hi.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Mi(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function wi(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Di(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Ai(t,n,e){var r=hi.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function ki(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Si(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 Ci(t,n,e){var r=hi.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Oi(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function _i(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function ji(t,n,e){var r=hi.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Ei(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Pi(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Ti(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Ni(t,n,e){var r=hi.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function $i(t,n,e){var r=hi.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function zi(t,n,e){var r=di.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Li(t,n,e){var r=hi.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Ui(t,n,e){var r=hi.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Fi(t,n){return gi(t.getDate(),n,2)}function Ii(t,n){return gi(t.getHours(),n,2)}function Hi(t,n){return gi(t.getHours()%12||12,n,2)}function Ri(t,n){return gi(1+Do.count($o(t),t),n,3)}function Wi(t,n){return gi(t.getMilliseconds(),n,3)}function Bi(t,n){return Wi(t,n)+"000"}function Vi(t,n){return gi(t.getMonth()+1,n,2)}function Yi(t,n){return gi(t.getMinutes(),n,2)}function qi(t,n){return gi(t.getSeconds(),n,2)}function Gi(t){var n=t.getDay();return 0===n?7:n}function Zi(t,n){return gi(ko.count($o(t)-1,t),n,2)}function Ki(t){var n=t.getDay();return n>=4||0===n?_o(t):_o.ceil(t)}function Xi(t,n){return t=Ki(t),gi(_o.count($o(t),t)+(4===$o(t).getDay()),n,2)}function Qi(t){return t.getDay()}function Ji(t,n){return gi(So.count($o(t)-1,t),n,2)}function ta(t,n){return gi(t.getFullYear()%100,n,2)}function na(t,n){return gi((t=Ki(t)).getFullYear()%100,n,2)}function ea(t,n){return gi(t.getFullYear()%1e4,n,4)}function ra(t,n){var e=t.getDay();return gi((t=e>=4||0===e?_o(t):_o.ceil(t)).getFullYear()%1e4,n,4)}function oa(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+gi(n/60|0,"0",2)+gi(n%60,"0",2)}function ia(t,n){return gi(t.getUTCDate(),n,2)}function aa(t,n){return gi(t.getUTCHours(),n,2)}function ua(t,n){return gi(t.getUTCHours()%12||12,n,2)}function sa(t,n){return gi(1+Ho.count(Jo(t),t),n,3)}function la(t,n){return gi(t.getUTCMilliseconds(),n,3)}function ca(t,n){return la(t,n)+"000"}function fa(t,n){return gi(t.getUTCMonth()+1,n,2)}function ha(t,n){return gi(t.getUTCMinutes(),n,2)}function da(t,n){return gi(t.getUTCSeconds(),n,2)}function pa(t){var n=t.getUTCDay();return 0===n?7:n}function ga(t,n){return gi(Wo.count(Jo(t)-1,t),n,2)}function ya(t){var n=t.getUTCDay();return n>=4||0===n?qo(t):qo.ceil(t)}function ma(t,n){return t=ya(t),gi(qo.count(Jo(t),t)+(4===Jo(t).getUTCDay()),n,2)}function va(t){return t.getUTCDay()}function xa(t,n){return gi(Bo.count(Jo(t)-1,t),n,2)}function ba(t,n){return gi(t.getUTCFullYear()%100,n,2)}function Ma(t,n){return gi((t=ya(t)).getUTCFullYear()%100,n,2)}function wa(t,n){return gi(t.getUTCFullYear()%1e4,n,4)}function Da(t,n){var e=t.getUTCDay();return gi((t=e>=4||0===e?qo(t):qo.ceil(t)).getUTCFullYear()%1e4,n,4)}function Aa(){return"+0000"}function ka(){return"%"}function Sa(t){return+t}function Ca(t){return Math.floor(+t/1e3)}function Oa(t){return new Date(t)}function _a(t){return t instanceof Date?+t:+new Date(+t)}function ja(t,n,e,r,o,i,a,u,s,l){var c=ur(),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,_a)):h().map(Oa)},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(Sr(e,t)):c},c.copy=function(){return ir(c,ja(t,n,e,r,o,i,a,u,s,l))},c}function Ea(){return Tn.apply(ja(ri,oi,$o,To,ko,Do,Mo,xo,mo,li).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Pa(){return Tn.apply(ja(ni,ei,Jo,Xo,Wo,Ho,Fo,Lo,mo,ci).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ta(){var t,n,e,r,o,i=0,a=1,u=nr,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(Xe),l.rangeRound=c(Qe),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 Na(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function $a(){var t=Dr(Ta()(nr));return t.copy=function(){return Na(t,$a())},Nn.apply(t,arguments)}function za(){var t=Tr(Ta()).domain([1,10]);return t.copy=function(){return Na(t,za()).base(t.base())},Nn.apply(t,arguments)}function La(){var t=Lr(Ta());return t.copy=function(){return Na(t,La()).constant(t.constant())},Nn.apply(t,arguments)}function Ua(){var t=Rr(Ta());return t.copy=function(){return Na(t,Ua()).exponent(t.exponent())},Nn.apply(t,arguments)}function Fa(){return Ua.apply(null,arguments).exponent(.5)}function Ia(){var t=[],n=nr;function e(e){if(null!=e&&!isNaN(e=+e))return n((ee(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(Zn),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)=>Jr(t,r/n)))},e.copy=function(){return Ia(n).domain(t)},Nn.apply(e,arguments)}function Ha(t,n){void 0===n&&(n=t,t=Xe);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 Ra(){var t,n,e,r,o,i,a,u=0,s=.5,l=1,c=1,f=nr,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=Ha(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(Xe),d.rangeRound=p(Qe),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 Wa(){var t=Dr(Ra()(nr));return t.copy=function(){return Na(t,Wa())},Nn.apply(t,arguments)}function Ba(){var t=Tr(Ra()).domain([.1,1,10]);return t.copy=function(){return Na(t,Ba()).base(t.base())},Nn.apply(t,arguments)}function Va(){var t=Lr(Ra());return t.copy=function(){return Na(t,Va()).constant(t.constant())},Nn.apply(t,arguments)}function Ya(){var t=Rr(Ra());return t.copy=function(){return Na(t,Ya()).exponent(t.exponent())},Nn.apply(t,arguments)}function qa(){return Ya.apply(null,arguments).exponent(.5)}si=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=mi(o),c=vi(o),f=mi(i),h=vi(i),d=mi(a),p=vi(a),g=mi(u),y=vi(u),m=mi(s),v=vi(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:Fi,e:Fi,f:Bi,g:na,G:ra,H:Ii,I:Hi,j:Ri,L:Wi,m:Vi,M:Yi,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Sa,s:Ca,S:qi,u:Gi,U:Zi,V:Xi,w:Qi,W:Ji,x:null,X:null,y:ta,Y:ea,Z:oa,"%":ka},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:ia,e:ia,f:ca,g:Ma,G:Da,H:aa,I:ua,j:sa,L:la,m:fa,M:ha,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Sa,s:Ca,S:da,u:pa,U:ga,V:ma,w:va,W:xa,x:null,X:null,y:ba,Y:wa,Z:Aa,"%":ka},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 A(t,n,e,r)},d:_i,e:_i,f:$i,g:ki,G:Ai,H:Ei,I:Ei,j:ji,L:Ni,m:Oi,M:Pi,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:Ci,Q:Li,s:Ui,S:Ti,u:bi,U:Mi,V:wi,w:xi,W:Di,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:ki,Y:Ai,Z:Si,"%":zi};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=fi[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=ui(1900,void 0,1);if(A(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=ai(ui(i.y,0,1))).getUTCDay(),r=o>4||0===o?Bo.ceil(r):Bo(r),r=Ho.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=ii(ui(i.y,0,1))).getDay(),r=o>4||0===o?So.ceil(r):So(r),r=Do.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?ai(ui(i.y,0,1)).getUTCDay():ii(ui(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,ai(i)):ii(i)}}function A(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 fi?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"]}),li=si.format,si.parse,ci=si.utcFormat,si.utcParse;const Ga=["linear","time","log","sqrt"];function Za(t){return"function"==typeof t?j(t.copy)&&j(t.domain)&&j(t.range):"string"==typeof t&&Ga.includes(t)}function Ka(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function Xa(t,n){if(!t.data)return"linear";const e=E(t[n]);return kn(t.data.map((t=>{const r=pt()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function Qa(n){if(Za(n)){const r=`scale${e=n,e&&e[0].toUpperCase()+e.slice(1)}`;return t[r]()}var e;return Ar()}function Ja(t,n){return function(t,n){if(!Ka(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=tu.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}(e)}(t,n)||Xa(t,n)}const tu=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function nu(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function eu(t,n){return nu(t)?t.reduce(((t,e,r)=>{let o=e;return n&&n[r]&&(o=eu(e)),t[r]=o,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function ru(t){return nu(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?eu(t,{errorX:!0,errorY:!0}):t;var n}function ou(t){return nu(t)?t.size:t.length}function iu(t,n){const e=(pt()(t.domain)?t.domain[n]:t.domain)||function(t,n){const e=function(t,n){if(!Ka(t,n))return;const e=t.scale[n]||t.scale;return Za(e)?j(e)?e:Qa(e):void 0}(t,n);return e?"string"==typeof e?Qa(e):e:Qa(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 kn(e)?"time":"linear"}(t,n)||Xa(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 au(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 ht()(t,r,o)}function uu(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=fu(t,n),o=function(t,n){if(!Array.isArray(t.data)&&!nu(t.data))return[];const e=E(void 0===t[n]?n:t[n]);return au(t.data.reduce(((t,n)=>(t.push(ru(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=ru(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=En()([...e,...r,...o]);return 0===i.length?null:i.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function su(t,n,r){if(!Array.isArray(t)&&!nu(t)||ou(t)<1)return[];const o=["x","y","y0"],i=(r=Array.isArray(r)?r:o).reduce(((t,e)=>{var r;return t[e]=E(void 0!==n[r=e]?n[r]:r),t}),{}),a=_n()(r,o)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let u;!1===a&&(u={x:-1!==r.indexOf("x")?uu(n,"x"):void 0,y:-1!==r.indexOf("y")?uu(n,"y"):void 0,y0:-1!==r.indexOf("y0")?uu(n,"y"):void 0});const s=a?t:t.reduce(((t,n,o)=>{const a=ru(n),s={x:o,y:a},l=r.reduce(((t,n)=>{const e=i[n](a),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,a);return e()(c)||t.push(c),t}),[]),l=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:Ja(n,"x"),y:Ja(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)))}(au(s,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=j(o=t.eventKey)?o:null==o?()=>{}:y()(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 lu(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function cu(t){return t.data?su(t.data,t):su(function(t){const n=iu(t,"x"),e=iu(t,"y");return n.map(((t,n)=>({x:t,y:e[n]})))}(t),t)}function fu(t,n){if(!t.categories)return[];const e=lu(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?r.filter((t=>void 0!==t)):[]}function hu(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=b().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)}function du(t,n,e){const{a:r,d:o,e:i,f:a}=n;return"y"===e?o*t+a:r*t+i}function pu(t){return!(!t||void 0===t.identifier)}function gu(t){if(pu(t.nativeEvent))return;const n=t=>"svg"===t.nodeName?t:t.parentNode?n(t.parentNode):t;return n(t.target)}function yu(t,n){if(pu(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||gu(e));return{x:du(e.clientX,r,"x"),y:du(e.clientY,r,"y")}}function mu(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 vu(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 xu(t){const{x1:n,x2:e,y1:r,y2:o,scale:i}=t,a=vu(t,i,n,r),u=vu(t,i,e,o),s=(t,n)=>[Cn([t,n]),Sn([t,n])];return{x:s(a.x,u.x),y:s(a.y,u.y)}}var bu=r(7491),Mu=r.n(bu),wu=r(6898);const Du=new class{withinBounds(t,n){const{width:e,height:r,polar:o,origin:i,scale:a}=t,u=A(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:Cn(t.domain.x),y:Cn(t.domain.y)},e=b().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}=w(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=cu(t);return Array.isArray(n)&&n.length>0?n:void 0};return T(e,((n,e)=>{const i=(n.props||{}).name||e,a=t.voronoiBlacklist||[],u=a.filter((t=>!!t&&"string"==typeof t.valueOf())),s=a.filter(An()).some((t=>t.test(i)));if(!hu(n)||u.includes(i)||s)return null;const l=(n.type&&j(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}=D(t,n);return[e,r]})),o=wu.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:r,continuous:o}=n,{activateData:i,activateLabels:a,labels:u}=t;if(!i&&!a)return[];const s=i?["data"]:[],l=u&&!a?s:s.concat("labels");return e()(l)?[]:l.map((t=>{const e=!0===o&&"data"===t?"all":n.eventKey;return{childName:r,eventKey:e,target:t,mutation:()=>({active:!0})}}))}getInactiveMutations(t,n){const{childName:r,continuous:o}=n,{activateData:i,activateLabels:a,labels:u}=t;if(!i&&!a)return[];const s=i?["data"]:[],l=u&&!a?s:s.concat("labels");return e()(l)?[]:l.map((t=>{const e=o&&"data"===t?"all":n.eventKey;return{childName:r,eventKey:e,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){j(t.onActivated)&&t.onActivated(n,t)}onDeactivated(t,n){j(t.onDeactivated)&&t.onDeactivated(n,t)}onMouseLeave=(t,n)=>{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||gu(t),o=yu(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&&Mu()(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=wn()(this.handleMouseMove,32,{leading:!0,trailing:!1})};function Au(t){return class extends t{static displayName="VictoryVoronoiContainer";static defaultProps={...ct.defaultProps,activateData:!0,activateLabels:!0,labelComponent:b().createElement(bn,null),voronoiPadding:5};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseLeave:(n,e)=>t.disable?{}:Du.onMouseLeave(n,e),onTouchCancel:(n,e)=>t.disable?{}:Du.onMouseLeave(n,e),onMouseMove:(n,e)=>t.disable?{}:Du.onMouseMove(n,e),onTouchMove:(n,e)=>t.disable?{}:Du.onMouseMove(n,e)}},{target:"data",eventHandlers:t.disable?{}:{onMouseOver:()=>null,onMouseOut:()=>null,onMouseMove:()=>null}}];getDimension(t){const{horizontal:n,voronoiDimension:e}=t;return n&&e?"x"===e?"y":"x":e}getPoint(t){return p()(t,["_x","_x1","_x0","_y","_y1","_y0"])}getLabelPosition(t,n,e){const{mousePosition:r,mouseFollowTooltips:o}=t,i=this.getDimension(t),a=D(t,this.getPoint(e[0]));let u=o?r:void 0;if(!i||e.length<2)return{...a,center:v()({},n.center,u)};const s="y"===i?r.x:a.x,l="x"===i?r.y:a.y;return u=o?r:{x:s,y:l},{x:s,y:l,center:v()({},n.center,u)}}getStyle(t,n,e){const{labels:r,labelComponent:o,theme:i}=t,a=o.props||{},u=i&&i.voronoi&&i.voronoi.style?i.voronoi.style:{},s="flyout"===e?a.flyoutStyle:a.style;return n.reduce(((t,n,o)=>{const i=v()({},a,{datum:n,active:!0}),l=j(r)?r(i):void 0,c=void 0!==l?`${l}`.split("\n"):[],f=n.style&&n.style[e]||{},h=Array.isArray(s)?s[o]:s,d=S(v()({},h,f,u[e]),i),p=c.length?c.map((()=>d)):[d];return t.concat(p)}),[])}getDefaultLabelProps(t,n){const{voronoiDimension:e,horizontal:r,mouseFollowTooltips:o}=t,i=this.getPoint(n[0]),a=e&&n.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}}getLabelProps(t,n){const{labels:e,scale:r,labelComponent:o,theme:i,width:a,height:u}=t,s=o.props||{},l=n.reduce(((t,n)=>{const r=v()({},s,{datum:n,active:!0}),o=j(e)?e(r):null;return null==o?t:t.concat(`${o}`.split("\n"))}),[]),{childName:c,eventKey:f,style:h,continuous:d,...p}=n[0],g=t.name===c?c:`${t.name}-${c}`,y=v()({key:`${g}-${f}-voronoi-tooltip`,id:`${g}-${f}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:n,datum:p,scale:r,theme:i},s,{text:l,width:a,height:u,style:this.getStyle(t,n,"labels"),flyoutStyle:this.getStyle(t,n,"flyout")[0]},this.getDefaultLabelProps(t,n)),m=this.getLabelPosition(t,y,n);return v()({},m,y)}getTooltip(t){const{labels:n,activePoints:e,labelComponent:r}=t;if(!n)return null;if(Array.isArray(e)&&e.length){const n=this.getLabelProps(t,e),{text:o}=n;return(Array.isArray(o)?o.filter(Boolean).length:o)?b().cloneElement(r,n):null}return null}getChildren(t){return[...b().Children.toArray(t.children),this.getTooltip(t)]}}}Au(ct);var ku=r(9324),Su=r.n(ku),Cu=(r(8961),r(4295)),Ou=r.n(Cu),_u=r(2829),ju=r.n(_u);function Eu(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 Pu(t,n){const e=j(t)?t:Nu,r=j(n)?n:Tu;return(t,n)=>{const o=function(t,n){const e=Lu(t,n),r=zu(t,n);return pt()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?$u(e,r):void 0}(t,n);if(o)return r(o,t,n);const i=lu(t,n),a=i?function(t,n,e){const r=e||lu(t,n),{polar:o,startAngle:i=0,endAngle:a=360}=t;if(!r)return;const u=Lu(t,n),s=zu(t,n),l=(d=r,Array.isArray(d)&&d.some((t=>"string"==typeof t))?fu(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=$u(void 0!==u?u:Cn(f),void 0!==s?s:Sn(f));var d;return o&&"x"===n&&360===Math.abs(i-a)?Uu(h,f):h}(t,n,i):e(t,n);return a?r(a,t,n):void 0}}function Tu(t,n,e){return function(t,n,e){return"log"!==Ja(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=Lu(n,e),o=zu(n,e),i=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return pt()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!i.left&&!i.right)return t;const a=Cn(t),u=Sn(t),s=function(t,n){return n?"x"===t?"y":"x":t}(e,n.horizontal),l=_(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=pt()(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?$u(new Date(v.min),new Date(v.max)):$u(v.min,v.max)}(t,n,e),n,e)}function Nu(t,n,e){const r=e||cu(t),{polar:o,startAngle:i=0,endAngle:a=360}=t,u=Lu(t,n),s=zu(t,n);if(r.length<1)return void 0!==u&&void 0!==s?$u(u,s):void 0;const l=$u(void 0!==u?u:Eu(r,n,"min"),void 0!==s?s:Eu(r,n,"max"));return o&&"x"===n&&360===Math.abs(i-a)?Uu(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 $u(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 zu(t,n){return pt()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||Ou()(t.maxDomain)?t.maxDomain:void 0}function Lu(t,n){return pt()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||Ou()(t.minDomain)?t.minDomain:void 0}function Uu(t,n){const e=ju()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}function Fu(t,n,e){const r=e?e.slice(0):b().Children.toArray(t.children),o=t.data?cu(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,p=T(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=b().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&&j(t.type.getDomain)?t.props&&t.type.getDomain(e,n):function(t,n){return Pu()(t,n)}(e,n):null}),t);return[0===p.length?0:Cn(p),0===p.length?1:Sn(p)]}const Iu={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 kn([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*e,s=Number(o)-a*(1-e);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}=yu(t),i={x:n.scale.x.domain(e.x),y:n.scale.y.domain(e.y)};return vu(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,kn(t)||kn(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(),Su()((()=>{n.resumeAnimation(),e.resumeAnimation()}),16)},getLastDomain(t,n){const{zoomDomain:e,cachedZoomDomain:r,currentDomain:o,domain:i}=t;return e&&!this.checkDomainEquality(e,r)?v()({},e,i):v()({},o||e||n,i)},getDomain(t){const{originalDomain:n,domain:e,children:r,zoomDimension:o}=t,i=x.Children.toArray(r);let a={};return i.length&&(a=o?{[o]:Fu(t,o,i)}:{x:Fu(t,"x",i),y:Fu(t,"y",i)}),v()({},a,n,e)},onMouseDown(t,n){if(t.preventDefault(),!n.allowPan)return;const e=n.parentSVG||gu(t),{x:r,y:o}=yu(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||gu(t),{x:f,y:h}=yu(t,c),d=this.getDomain(n),p=this.getLastDomain(n,d),g=l?o-f:h-i,y=(l?h-i:o-f)/this.getDomainScale(p,e,"x"),m=g/this.getDomainScale(p,e,"y"),x={x:"y"===s?d.x:this.pan(p.x,d.x,y),y:"x"===s?d.y:this.pan(p.y,d.y,m)},b=this.handleAnimation(r),M={parentControlledProps:["domain"],startX:f,startY:h,parentSVG:c,currentDomain:x,originalDomain:d,cachedZoomDomain:u,zoomActive:!this.checkDomainEquality(d,p)};return j(a)&&a(x,v()({},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")},h=this.handleAnimation(r),d={currentDomain:f,originalDomain:u,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(t)||n.zoomActive&&!this.checkDomainEquality(u,s)};return j(o)&&o(f,v()({},d,n)),[{target:"parent",callback:h,mutation:()=>d}]}},Hu={checkDomainEquality:Iu.checkDomainEquality.bind(Iu),onMouseDown:Iu.onMouseDown.bind(Iu),onMouseUp:Iu.onMouseUp.bind(Iu),onMouseLeave:Iu.onMouseLeave.bind(Iu),onMouseMove:wn()(Iu.onMouseMove.bind(Iu),16,{leading:!0,trailing:!1}),onWheel:wn()(Iu.onWheel.bind(Iu),16,{leading:!0,trailing:!1})},Ru=t=>b().createElement("defs",null,b().createElement("clipPath",{id:t.clipId?.toString()},t.children));function Wu(){return Wu=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},Wu.apply(this,arguments)}const Bu=(0,x.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:k(r,t)?.toString(),tabIndex:k(o,t),...a};return e?b().createElement("circle",Wu({},u,{ref:n}),b().createElement("desc",null,e)):b().createElement("circle",Wu({},u,{ref:n}))}));class Vu extends b().Component{static displayName="VictoryClipContainer";static role="container";static defaultProps={circleComponent:b().createElement(Bu,null),rectComponent:b().createElement(mt,null),clipPathComponent:b().createElement(Ru,null),groupComponent:b().createElement("g",null)};constructor(t){super(t),this.clipId=$()(t)&&void 0!==t.clipId?t.clipId:L()("victory-clip-")}calculateAttributes(t){const{polar:n,origin:e,clipWidth:r=0,clipHeight:o=0,translateX:i=0,translateY:a=0}=t,u=A({padding:t.clipPadding}),s=t.radius||O(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=st(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 b().cloneElement(s,{...f,tabIndex:l,...e},[c,...b().Children.toArray(a)])}renderGroup(t){const{style:n,events:e,transform:r,children:o,className:i,groupComponent:a,tabIndex:u}=t;return b().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:p}=A({padding:t.clipPadding});let g;if(e){const n=t.radius||O(t),e={r:Math.max(n+d+p,n+f+h,0),cx:r.x-d,cy:r.y-f};g=b().cloneElement(s,e)}else{const t={x:a-d,y:u-f,width:Math.max(o+d+p,0),height:Math.max(i+f+h,0)};g=b().cloneElement(l,t)}return b().cloneElement(c,Object.assign({key:`clip-path-${n}`},t,{clipId:n}),g)}getClipValue(t,n){const e={x:t.clipWidth,y:t.clipHeight};if(void 0!==e[n])return e[n];const r=_(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=_(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=v()({},this.props,{clipHeight:t,clipWidth:n,translateX:e,translateY:r});return this.renderClippedGroup(o,this.clipId)}}function Yu(t){return class extends t{static displayName="VictoryZoomContainer";static defaultProps={...ct.defaultProps,clipContainerComponent:b().createElement(Vu,null),allowPan:!0,allowZoom:!0,zoomActive:!1};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseDown:(n,e)=>t.disable?{}:Hu.onMouseDown(n,e),onTouchStart:(n,e)=>t.disable?{}:Hu.onMouseDown(n,e),onMouseUp:(n,e)=>t.disable?{}:Hu.onMouseUp(n,e),onTouchEnd:(n,e)=>t.disable?{}:Hu.onMouseUp(n,e),onMouseLeave:(n,e)=>t.disable?{}:Hu.onMouseLeave(n,e),onTouchCancel:(n,e)=>t.disable?{}:Hu.onMouseLeave(n,e),onMouseMove:(n,e,r,o)=>t.disable?{}:Hu.onMouseMove(n,e,r,o),onTouchMove:(n,e,r,o)=>t.disable?{}:(n.preventDefault(),Hu.onMouseMove(n,e,r,o)),...t.disable||!t.allowZoom?{}:{onWheel:Hu.onWheel}}}];clipDataComponents(t,n){const{scale:e,clipContainerComponent:r,polar:o,origin:i,horizontal:a}=n,u=a?e.y.range():e.x.range(),s=a?e.x.range():e.y.range(),l=Math.abs(u[0]-u[1]),c=Math.abs(s[0]-s[1]),f=Math.max(...s),h=b().cloneElement(r,{clipWidth:l,clipHeight:c,translateX:Math.min(...u),translateY:Math.min(...s),polar:o,origin:o?i:void 0,radius:o?f:void 0,...r.props});return b().Children.toArray(t).map((t=>hu(t)?b().cloneElement(t,{groupComponent:h}):t))}modifyPolarDomain(t,n){return{x:n.x,y:[0,t.y[1]]}}downsampleZoomData(t,n,e){const{downsample:r}=t,o=(t=>{const{data:e,x:r,y:o}=t,i=n.type&&j(n.type.getData)?n.type.getData:()=>{};return!Array.isArray(e)||r||o?i(t):e})(n.props);if(!r||!e||!o)return;const i=!0===r?150:r,a=t.zoomDimension||"x";let u=o.findIndex((t=>t[a]>=e[a][0])),s=o.findIndex((t=>t[a]>e[a][1]));return 0!==u&&(u-=1),-1!==s&&(s+=1),function(t,n,e){void 0===e&&(e=0);const r=ou(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}(o.slice(u,s),i,u)}modifyChildren(t){return b().Children.toArray(t.children).map((n=>{const e=n.type&&n.type.role,r=hu(n),{currentDomain:o,zoomActive:i,allowZoom:a}=t,u=v()({},t.originalDomain,t.domain),s=v()({},t.zoomDomain,t.domain),l=v()({},t.cachedZoomDomain,t.domain);let c;c=Hu.checkDomainEquality(s,l)?a&&!i?n.props.domain:v()({},o,u):s;let f=t.polar?this.modifyPolarDomain(c,u):c;f&&t.zoomDimension&&(f={...s,[t.zoomDimension]:f[t.zoomDimension]});const h=r&&"stack"!==e?{domain:f,data:this.downsampleZoomData(t,n,f)}:{domain:f};return b().cloneElement(n,v()(h,n.props))}))}getChildren(t){const n=this.modifyChildren(t);return this.clipDataComponents(n,t)}}}Yu(ct);const qu=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}]:T(b().Children.toArray(t.children),((n,e,r)=>{const o=t.selectionBlacklist||[];let i;if(!hu(n)||o.includes(e))return null;if(n.type&&j(n.type.getData)){i=r?b().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=cu(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=D(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||gu(t),{x:s,y:l}=yu(t,u),c={x1:o||"y"!==a?s:mu(n).x[0],y1:o||"x"!==a?l:mu(n).y[0],select:!0,x2:o||"y"!==a?s:mu(n).x[1],y2:o||"x"!==a?l:mu(n).y[1],parentSVG:u};i&&j(n.onSelectionCleared)&&n.onSelectionCleared(v()({},c,n));const f=[{target:"parent",mutation:()=>c}],h=i&&e?i.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>null}))):[];return f.concat(...h)};handleMouseMove=(t,n)=>{const{allowSelection:e,select:r,polar:o}=n,i=this.getDimension(n);if(!e||!r)return null;const a=n.parentSVG||gu(t),{x:u,y:s}=yu(t,a),l=o||"y"!==i?u:mu(n).x[1],c=o||"x"!==i?s:mu(n).y[1];return{target:"parent",mutation:()=>({x2:l,y2:c,parentSVG:a})}};onMouseMove=wn()(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=xu(n),s=this.filterDatasets(n,a),l={selectedData:s,datasets:a,select:!1,x1:null,x2:null,y1:null,y2:null},c=s&&j(n.onSelection)?n.onSelection(s,u,v()({},l,n)):{},f=[{target:"parent",mutation:()=>l}],h=s&&e?s.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>Object.assign({active:!0},c)}))):[];return f.concat(h)}};function Gu(t){return class extends t{static displayName="VictorySelectionContainer";static defaultProps={...ct.defaultProps,activateSelectedData:!0,allowSelection:!0,selectionComponent:b().createElement(mt,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseDown:(n,e)=>t.disable?{}:qu.onMouseDown(n,e),onTouchStart:(n,e)=>t.disable?{}:qu.onMouseDown(n,e),onMouseMove:(n,e)=>t.disable?{}:qu.onMouseMove(n,e),onTouchMove:(n,e)=>t.disable?{}:qu.onMouseMove(n,e),onMouseUp:(n,e)=>t.disable?{}:qu.onMouseUp(n,e),onTouchEnd:(n,e)=>t.disable?{}:qu.onMouseUp(n,e)}}];getRect(t){const{x1:n,x2:e,y1:r,y2:o,selectionStyle:i,selectionComponent:a,name:u}=t,s=Math.abs(e-n)||1,l=Math.abs(o-r)||1,c=Math.min(n,e),f=Math.min(r,o);return o&&e&&n&&r?b().cloneElement(a,{key:`${u}-selection`,x:c,y:f,width:s,height:l,style:i}):null}getChildren(t){return[...b().Children.toArray(t.children),this.getRect(t)]}}}Gu(ct);const Zu={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}=P(n,Number),{x:u,y:s}=P(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=v()({},n,t.domain),i=v()({},e,o),a=mu(t,o),u=mu(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||gu(e),s=this.panBox({...t,...r,brushDomain:n,startX:(r.x1+r.x2)/2,startY:(r.y1+r.y2)/2},yu(e,u)),l=t.fullDomainBox||this.getDomainBox(t,o);return xu({...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=v()({},t.brushDomain,e),u=v()({},t.fullDomain,e),{x1:s,x2:l,y1:c,y2:f}=t.x1?t:this.getDomainBox(t,u,a),{x:h,y:d}=n,p=r?r-h:0,g=o?o-d:0;return{x1:"y"!==i?Math.min(s,l)-p:Math.min(s,l),x2:"y"!==i?Math.max(s,l)-p:Math.max(s,l),y1:"x"!==i?Math.min(c,f)-g:Math.min(c,f),y2:"x"!==i?Math.max(c,f)-g:Math.max(c,f)}},constrainBox(t,n){const{x1:e,y1:r,x2:o,y2:i}=P(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}=P(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||gu(t),{x:h,y:d}=yu(t,f);if(!this.withinBounds({x:h,y:d},c,e))return{};const p=v()({},n.brushDomain,o),g=Mu()(p,r)?n.currentDomain||p||o:p||o,y=this.getDomainBox(n,o,g),m=i&&this.getActiveHandles({x:h,y:d},n,y);return m?[{target:"parent",mutation:()=>({isSelecting:!0,domainBox:y,fullDomainBox:c,cachedBrushDomain:p,currentDomain:g,parentSVG:f,...this.getResizeMutation(y,m)})}]:this.withinBounds({x:h,y:d},y)&&!Mu()(o,g)?[{target:"parent",mutation:()=>({isPanning:a,startX:h,startY:d,domainBox:y,fullDomainBox:c,currentDomain:g,cachedBrushDomain:p,parentSVG:f,...y})}]:u?[{target:"parent",mutation:()=>({isSelecting:i||"move"===l,domainBox:y,fullDomainBox:c,parentSVG:f,cachedBrushDomain:p,cachedCurrentDomain:g,currentDomain:this.getMinimumDomain(),...this.getSelectionMutation({x:h,y:d},y,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,h=this.getDimension(n),{x:d,y:p}=yu(t,f);if(!u&&!s||c>0&&!this.hasMoved({...n,x2:d,y2:p}))return{};if(s&&r){const{startX:t,startY:r}=n,o=this.panBox(n,{x:d,y:p}),u=this.constrainBox(o,i),s=xu({...u,scale:e,horizontal:l}),c={currentDomain:s,parentSVG:f,startX:o.x2>=i.x2||o.x1<=i.x1?t:d,startY:o.y2>=i.y2||o.y1<=i.y1?r:p,...u};return j(a)&&a(s,v()({},c,n)),[{target:"parent",mutation:()=>c}]}if(u&&o){const{x:t,y:r}=this.constrainPoint({x:"y"!==h?d:n.x2,y:"x"!==h?p:n.y2},i),o=xu({x2:t,y2:r,x1:n.x1,y1:n.y1,scale:e,horizontal:l}),u={x2:t,y2:r,currentDomain:o,parentSVG:f};return j(a)&&a(o,v()({},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:h,allowDrag:d}=n,p=h||n.defaultBrushArea?n.defaultBrushArea:"move",g={isPanning:!1,isSelecting:!1};if(!h&&(void 0===p||"none"===p)||e!==o&&r!==i)(d&&a||h&&u)&&j(l)&&l(f,v()({},g,n));else{const e=n.cachedCurrentDomain||f,r=this.getDefaultBrushArea(n,e,t);g.currentDomain=r,j(s)&&s(r,v()({},g,n)),j(l)&&l(r,v()({},g,n)),j(c)&&c(r,v()({},g,n))}return[{target:"parent",mutation:()=>g}]}},Ku={...Zu,onMouseDown:Zu.onMouseDown.bind(Zu),onGlobalMouseUp:Zu.onGlobalMouseUp.bind(Zu),onGlobalMouseMove:wn()(Zu.onGlobalMouseMove.bind(Zu),16,{leading:!0,trailing:!1})};function Xu(t){return class extends t{static displayName="VictoryBrushContainer";static defaultProps={...ct.defaultProps,allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:b().createElement(mt,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:b().createElement(mt,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseDown:(n,e)=>t.disable?{}:Ku.onMouseDown(n,e),onTouchStart:(n,e)=>t.disable?{}:Ku.onMouseDown(n,e),onGlobalMouseMove:(n,e)=>t.disable||!e.isPanning&&!e.isSelecting?{}:Ku.onGlobalMouseMove(n,e),onGlobalTouchMove:(n,e)=>t.disable||!e.isPanning&&!e.isSelecting?{}:Ku.onGlobalMouseMove(n,e),onGlobalMouseUp:(n,e)=>t.disable?{}:Ku.onGlobalMouseUp(n,e),onGlobalTouchEnd:(n,e)=>t.disable?{}:Ku.onGlobalMouseUp(n,e),onGlobalTouchCancel:(n,e)=>t.disable?{}:Ku.onGlobalMouseUp(n,e)}}];getSelectBox(t,n){const{x:e,y:r}=n,{brushStyle:o,brushComponent:i,name:a}=t,u=i.props&&i.props.style,s=t.allowDrag||t.allowResize?"move":"auto";return e[0]!==e[1]&&r[0]!==r[1]?b().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:v()({},u,o)}):null}getCursorPointers(t){const n={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(n.xProps="move",n.yProps="move"):t.allowResize||t.allowDrag||(n.xProps="auto",n.yProps="auto"),n}getHandles(t,n){const{handleWidth:e,handleStyle:r,handleComponent:o,name:i}=t,a=Ku.getDomainBox(t,n),{x1:u,x2:s,y1:l,y2:c}=a,{top:f,bottom:h,left:d,right:p}=Ku.getHandles(t,a),g=Math.abs(s-u)||1,y=Math.abs(c-l)||1,m=o.props&&o.props.style||{},x=v()({},m,r),M=this.getCursorPointers(t),w={style:x,width:g,height:e,cursor:M.yProps},D={style:x,width:e,height:y,cursor:M.xProps},A={top:f&&Object.assign({x:f.x1,y:f.y1},w),bottom:h&&Object.assign({x:h.x1,y:h.y1},w),left:d&&Object.assign({y:d.y1,x:d.x1},D),right:p&&Object.assign({y:p.y1,x:p.x1},D)},k=["top","bottom","left","right"].reduce(((t,n)=>A[n]?t.concat(b().cloneElement(o,Object.assign({key:`${i}-handle-${n}`},A[n]))):t),[]);return k.length?k:null}getRect(t){const{currentDomain:n,cachedBrushDomain:e}=t,r=v()({},t.brushDomain,t.domain),o=Mu()(r,e)?v()({},n,r):r,i=mu(t,o),a=this.getSelectBox(t,i);return a?[a,this.getHandles(t,o)]:[]}getChildren(t){return[...b().Children.toArray(t.children),...this.getRect(t)]}}}function Qu(){return Qu=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},Qu.apply(this,arguments)}Xu(ct);const Ju=(0,x.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:k(r,t)?.toString(),tabIndex:k(o,t),...a};return e?b().createElement("line",Qu({},u,{ref:n}),b().createElement("desc",null,e)):b().createElement("line",Qu({},u,{ref:n}))})),ts={lineComponent:b().createElement(Ju,null),role:"presentation",shapeRendering:"auto"},ns=t=>{const n=(t=>{const n=k(t.ariaLabel,t),e=k(t.desc,t),r=k(t.id,t),o=S(Object.assign({stroke:"black"},t.style),t),i=k(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:o,tabIndex:i})})({...ts,...t});return b().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}=P(n,Number),{x:a,y:u}=P(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||gu(t),a=yu(t,i);let u=vu(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),j(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=wn()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseLeave=this.handleMouseMove;onTouchEnd=(t,n)=>{const{onCursorChange:e}=n;return j(n.onCursorChange)&&e(null,n),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]}};function rs(t){return class extends t{static displayName="VictoryCursorContainer";static defaultProps={...ct.defaultProps,cursorLabelComponent:b().createElement(Gt,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:b().createElement(ns,null)};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseLeave:(n,e)=>t.disable?{}:es.onMouseLeave(n,e),onTouchCancel:()=>[],onMouseMove:(n,e)=>t.disable?{}:es.onMouseMove(n,e),onTouchMove:(n,e)=>t.disable?{}:es.onMouseMove(n,e)}}];getCursorPosition(t){const{cursorValue:n,defaultCursorValue:e,domain:r,cursorDimension:o}=t;return n||("number"==typeof e?{x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2,[o]:e}:e)}getCursorLabelOffset(t){const{cursorLabelOffset:n}=t;return"number"==typeof n?{x:n,y:n}:n}getPadding(t){return void 0===t.padding?A(t.children.find((t=>$()(t.props)&&void 0!==t.props.padding)).props):A(t)}getCursorElements(t){const{scale:n,cursorLabelComponent:e,cursorLabel:r,cursorComponent:o,width:i,height:a,name:u,horizontal:s,theme:l}=t,c=es.getDimension(t),f=this.getCursorPosition(t),h=this.getCursorLabelOffset(t);if(!f)return[];const d=[],p=this.getPadding(t),g={x:s?n.y(f.y):n.x(f.x),y:s?n.x(f.x):n.y(f.y)};if(r){let t=v()({active:!0},e.props,{x:g.x+h.x,y:g.y+h.y,datum:f,active:!0,key:`${u}-cursor-label`});if("tooltip"===((y=e)&&y.type&&y.type.role)){const n=l&&l.tooltip||{};t=v()({},t,n)}d.push(b().cloneElement(e,v()({},t,{text:k(r,t)})))}var y;const m=Object.assign({stroke:"black"},o.props.style);return"x"!==c&&void 0!==c||d.push(b().cloneElement(o,{key:`${u}-x-cursor`,x1:g.x,x2:g.x,y1:p.top,y2:a-p.bottom,style:m})),"y"!==c&&void 0!==c||d.push(b().cloneElement(o,{key:`${u}-y-cursor`,x1:p.left,x2:i-p.right,y1:g.y,y2:g.y,style:m})),d}getChildren(t){return[...b().Children.toArray(t.children),...this.getCursorElements(t)]}}}function os(t){return t?Array.isArray(t)?t:[t]:[]}rs(ct);const is=(t,n)=>{const r=t.map((t=>t(n))),o=r.map((t=>new t)),i=a()(t)(n),u=r.map((t=>t.displayName.match(/Victory(.*)Container/)[1]||"")).join("");return class extends i{static displayName=`Victory${u}Container`;static propTypes=r.reduce(((t,n)=>({...t,...n.propTypes})),{});static defaultProps=r.reduce(((t,n)=>({...t,...n.defaultProps})),{});static defaultEvents=t=>(t=>{const n=c()(t,"target"),r=h()(n).map((t=>{let[n,r]=t;const o=r.filter(Boolean);return e()(o)?null:{target:n,eventHandlers:(i=r.map((t=>t.eventHandlers)),i.reduce(((t,n)=>(s()(t,((t,e)=>{const r=n[e];n[e]=r?function(){const n=os(r(...arguments)),e=os(t(...arguments));return n.concat(e)}:t})),n))))};var i}));return r.filter(Boolean)})(r.reduce(((n,e)=>[...n,...j(e.defaultEvents)?e.defaultEvents(t):e.defaultEvents]),[]));getChildren(t){return o.reduce(((n,e)=>e.getChildren({...t,children:n})),t.children)}}},as=(t,n)=>{t&&!n.includes(t)&&n.join(", ")},us=(t,n)=>function(e,r){const o=Object.keys(t);as(e,o),as(r,o);const i=t[e],a=t[r]||[];return i?is([...i,...a],n):n},ss=us({zoom:[Yu],voronoi:[Au],selection:[Gu],cursor:[rs],brush:[Xu]},ct)}(),o}()}));
|
|
2
2
|
//# sourceMappingURL=victory-create-container.min.js.map
|