victory 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.
@@ -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.Victory=e(require("react")):t.Victory=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,d=(a*f-c*s)*p;return h*h+d*d}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,d=-1/0,y=-1/0,v=0;v<f;v++){var m=n[2*v],g=n[2*v+1];m<p&&(p=m),g<h&&(h=g),m>d&&(d=m),g>y&&(y=g),this._ids[v]=v}for(var b,x,O,_=(p+d)/2,w=(h+y)/2,j=1/0,P=0;P<f;P++){var A=r(_,w,n[2*P],n[2*P+1]);A<j&&(b=P,j=A)}var M=n[2*b],E=n[2*b+1];j=1/0;for(var C=0;C<f;C++)if(C!==b){var S=r(M,E,n[2*C],n[2*C+1]);S<j&&S>0&&(x=C,j=S)}for(var k=n[2*x],D=n[2*x+1],T=1/0,R=0;R<f;R++)if(R!==b&&R!==x){var L=a(M,E,k,D,n[2*R],n[2*R+1]);L<T&&(O=R,T=L)}var I=n[2*O],N=n[2*O+1];if(T===1/0){for(var z=0;z<f;z++)this._dists[z]=n[2*z]-n[0]||n[2*z+1]-n[1];u(this._ids,this._dists,0,f-1);for(var B=new Uint32Array(f),W=0,U=0,V=-1/0;U<f;U++){var F=this._ids[U];this._dists[F]>V&&(B[W++]=F,V=this._dists[F])}return this.hull=B.subarray(0,W),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(i(M,E,k,D,I,N)){var H=x,q=k,G=D;x=O,k=I,D=N,O=H,I=q,N=G}var K=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}}(M,E,k,D,I,N);this._cx=K.x,this._cy=K.y;for(var $=0;$<f;$++)this._dists[$]=r(n[2*$],n[2*$+1],K.x,K.y);u(this._ids,this._dists,0,f-1),this._hullStart=b;var Y=3;c[b]=o[O]=x,c[x]=o[b]=O,c[O]=o[x]=b,l[b]=0,l[x]=1,l[O]=2,s.fill(-1),s[this._hashKey(M,E)]=b,s[this._hashKey(k,D)]=x,s[this._hashKey(I,N)]=O,this.trianglesLen=0,this._addTriangle(b,x,O,-1,-1,-1);for(var X=0,Z=void 0,Q=void 0;X<this._ids.length;X++){var J=this._ids[X],tt=n[2*J],et=n[2*J+1];if(!(X>0&&Math.abs(tt-Z)<=t&&Math.abs(et-Q)<=t)&&(Z=tt,Q=et,J!==b&&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,Y++;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,Y--,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,Y--,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(Y);for(var lt=0,st=this._hullStart;lt<Y;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],d=r[t],y=r[f],v=r[p];if(x=i[2*h],O=i[2*h+1],_=i[2*d],w=i[2*d+1],j=i[2*y],P=i[2*y+1],A=i[2*v],M=i[2*v+1],E=void 0,C=void 0,S=void 0,k=void 0,D=void 0,T=void 0,R=void 0,L=void 0,(E=x-A)*((k=w-M)*(L=(D=j-A)*D+(T=P-M)*T)-(R=(S=_-A)*S+k*k)*T)-(C=O-M)*(S*L-R*D)+(E*E+C*C)*(S*T-k*D)<0){r[t]=v,r[c]=h;var m=o[p];if(-1===m){var g=this._hullStart;do{if(this._hullTri[g]===p){this._hullTri[g]=t;break}g=this._hullPrev[g]}while(g!==this._hullStart)}this._link(t,m),this._link(c,o[u]),this._link(u,p);var b=s+(c+1)%3;a<e.length&&(e[a++]=b)}else{if(0===a)break;t=e[--a]}}else{if(0===a)break;t=e[--a]}}var x,O,_,w,j,P,A,M,E,C,S,k,D,T,R,L;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,d=this.triangles=t.triangles,y=this.inedges.fill(-1),v=this._hullIndex.fill(-1),m=0,g=p.length;m<g;++m){var b=d[m%3==2?m-2:m+1];-1!==p[m]&&-1!==y[b]||(y[b]=m)}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],y[h[0]]=1,2===h.length&&(y[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))}},2516:(t,e)=>{function n(t,e){var n=[],r=[];return null==e&&(e=function(t,e){return n[0]===e?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(e)).join(".")+"]"}),function(o,i){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,o):r.push(o),~n.indexOf(i)&&(i=e.call(this,o,i))}else n.push(i);return null==t?i:t.call(this,o,i)}}(t.exports=function(t,e,r,o){return JSON.stringify(t,n(e,o),r)}).getSerialize=n},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]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,v,m){var g=c(t),b=c(e),x=g?p:u(t),O=b?p:u(e),_=(x=x==f?h:x)==h,w=(O=O==f?h:O)==h,j=x==O;if(j&&l(t)){if(!l(e))return!1;g=!0,_=!1}if(j&&!_)return m||(m=new r),g||s(t)?o(t,e,n,y,v,m):i(t,e,x,n,y,v,m);if(!(1&n)){var P=_&&d.call(t,"__wrapped__"),A=w&&d.call(e,"__wrapped__");if(P||A){var M=P?t.value():t,E=A?e.value():e;return m||(m=new r),v(M,E,n,y,m)}}return!!j&&(m||(m=new r),a(t,e,n,y,v,m))}},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 d=i(f,p,s,t,e,h);if(!(void 0===d?o(p,f,3,i,h):d))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)}}},7805:t=>{var e=Math.ceil,n=Math.max;t.exports=function(t,r,o,i){for(var a=-1,u=n(e((r-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},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]),d=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(l!=f){var y=p[h];void 0===(d=c?c(y,h,p):void 0)&&(d=a(y)?y:i(e[l+1])?[]:{})}r(p,h,d),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=[],d=h;if(n)p=!1,s=i;else if(f>=200){var y=e?null:u(t);if(y)return c(y);p=!1,s=a,d=new r}else d=e?[]:h;t:for(;++l<f;){var v=t[l],m=e?e(v):v;if(v=n||0!==v?v:0,p&&m==m){for(var g=d.length;g--;)if(d[g]===m)continue t;e&&d.push(m),h.push(v)}else s(d,m,n)||(d!==h&&d.push(m),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}},9021:(t,e,n)=>{var r=n(4132),o=n(8347);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,c=e.length;++u<c;){var l=e[u],s=i?i(n[l],t[l],l,n,t):void 0;void 0===s&&(s=t[l]),a?o(n,l,s):r(n,l,s)}return n}},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)}}},6092:(t,e,n)=>{var r=n(6317),o=n(8286);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var c=n[r];c&&t(e,c,r,a)}return e}))}},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}}))}},2507:(t,e,n)=>{var r=n(7805),o=n(8286),i=n(9139);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e<n?1:-1:i(a),r(e,n,a,t)}}},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 d=-1,y=!0,v=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++d<s;){var m=t[d],g=e[d];if(a)var b=l?a(g,m,d,e,t,c):a(m,g,d,t,e,c);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(m===t||u(m,t,n,a,c)))return v.push(e)}))){y=!1;break}}else if(m!==g&&!u(m,g,n,a,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},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),d=u.get(e);if(h&&d)return h==e&&d==t;var y=!0;u.set(t,e),u.set(e,t);for(var v=c;++f<s;){var m=t[p=l[f]],g=e[p];if(i)var b=c?i(g,m,p,e,t,u):i(m,g,p,t,e,u);if(!(void 0===b?m===g||a(m,g,n,i,u):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!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||(y=!1)}return u.delete(t),u.delete(e),y}},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}},156:(t,e,n)=>{var r=n(4132),o=n(9021),i=n(6092),a=n(981),u=n(5782),c=n(7747),l=Object.prototype.hasOwnProperty,s=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var n in e)l.call(e,n)&&r(t,n,e[n])}));t.exports=s},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,d=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=c,r=l;return c=l=void 0,d=e,f=t.apply(r,n)}function b(t){return d=t,p=setTimeout(O,e),y?g(t):f}function x(t){var n=t-h;return void 0===h||n>=e||n<0||v&&t-d>=s}function O(){var t=o();if(x(t))return _(t);p=setTimeout(O,function(t){var n=e-(t-h);return v?u(n,s-(t-d)):n}(t))}function _(t){return p=void 0,m&&c?g(t):(c=l=void 0,f)}function w(){var t=o(),n=x(t);if(c=arguments,l=this,h=t,n){if(void 0===p)return b(h);if(v)return clearTimeout(p),p=setTimeout(O,e),g(h)}return void 0===p&&(p=setTimeout(O,e)),f}return e=i(e)||0,r(n)&&(y=!!n.leading,s=(v="maxWait"in n)?a(i(n.maxWait)||0,e):s,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=l=p=void 0},w.flush=function(){return void 0===p?f:_(o())},w}},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 d=f[p],y=t[d];(void 0===y||o(y,u[d])&&!c.call(t,d))&&(t[d]=s[d])}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))}},7314:t=>{t.exports=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r}},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)}},8825:(t,e,n)=>{var r=n(2507)();t.exports=r},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})}},9139:(t,e,n)=>{var r=n(5812);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},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,{Arc:()=>Ob,Area:()=>fs,Axis:()=>x,Background:()=>Pg,Bar:()=>tv,Border:()=>hv,Box:()=>hv,BrushHelpers:()=>tm,Candle:()=>zm,CanvasBar:()=>cg,CanvasCurve:()=>sg,CanvasGroup:()=>lg,CanvasPoint:()=>xg,Circle:()=>rf,ClipPath:()=>Qs,Collection:()=>e,CursorHelpers:()=>TO,Curve:()=>Jw,Data:()=>u,DefaultTransitions:()=>v,Domain:()=>c,ErrorBar:()=>d_,Events:()=>b,Flyout:()=>Ox,Helpers:()=>t,Hooks:()=>j,Immutable:()=>a,LabelHelpers:()=>l,Line:()=>Zd,LineHelpers:()=>f,LineSegment:()=>ny,Log:()=>h,Path:()=>$l,Point:()=>lx,PointPathHelpers:()=>_,Portal:()=>xs,PortalContext:()=>Os,RawZoomHelpers:()=>nO,Rect:()=>lf,Scale:()=>i,Selection:()=>O,SelectionHelpers:()=>bO,Slice:()=>mj,Style:()=>d,TSpan:()=>Rf,Text:()=>Sf,TextSize:()=>y,Timer:()=>Ws,TimerContext:()=>Vs,Transitions:()=>g,UserProps:()=>p,VictoryAccessibleGroup:()=>rx,VictoryAnimation:()=>Mh,VictoryArea:()=>Md,VictoryAxis:()=>Ey,VictoryBar:()=>cv,VictoryBoxPlot:()=>zv,VictoryBrushContainer:()=>pm,VictoryBrushLine:()=>Tm,VictoryCandlestick:()=>ig,VictoryChart:()=>ex,VictoryClipContainer:()=>bf,VictoryContainer:()=>Zs,VictoryCursorContainer:()=>qO,VictoryErrorBar:()=>E_,VictoryGroup:()=>$_,VictoryHistogram:()=>xw,VictoryLabel:()=>gp,VictoryLegend:()=>$w,VictoryLine:()=>aj,VictoryPie:()=>Ej,VictoryPolarAxis:()=>Fb,VictoryPortal:()=>Af,VictoryScatter:()=>Wj,VictorySelectionContainer:()=>SO,VictorySharedEvents:()=>yb,VictoryStack:()=>oP,VictoryTheme:()=>Ip,VictoryTooltip:()=>kx,VictoryTransition:()=>Uh,VictoryVoronoi:()=>iA,VictoryVoronoiContainer:()=>Zx,VictoryZoomContainer:()=>yO,Voronoi:()=>lP,VoronoiHelpers:()=>Bx,Whisker:()=>gv,Wrapper:()=>w,ZoomHelpers:()=>rO,addEvents:()=>bd,brushContainerMixin:()=>fm,combineContainerMixins:()=>o_,createContainer:()=>u_,cursorContainerMixin:()=>HO,getBarPath:()=>$y,getBarPosition:()=>Cy,getBarWidth:()=>Sy,getCornerRadius:()=>ky,getCustomBarPath:()=>Fy,getHorizontalBarPath:()=>Gy,getPolarBarPath:()=>Yy,getStyle:()=>Dy,getVerticalBarPath:()=>qy,getVerticalPolarBarPath:()=>Ky,makeCreateContainerFunction:()=>a_,selectionContainerMixin:()=>CO,useCanvasContext:()=>ug,voronoiContainerMixin:()=>Xx,zoomContainerMixin:()=>dO});var t={};r.r(t),r.d(t,{createAccessor:()=>st,degreesToRadians:()=>rt,evaluateProp:()=>et,evaluateStyle:()=>nt,getCurrentAxis:()=>pt,getDefaultStyles:()=>J,getPadding:()=>Z,getPoint:()=>Y,getPolarOrigin:()=>at,getRadius:()=>it,getRange:()=>ut,getStyles:()=>tt,invert:()=>K,isFunction:()=>lt,isHorizontal:()=>vt,isNil:()=>ct,isTooltip:()=>Q,mapValues:()=>ht,modifyProps:()=>ft,omit:()=>$,radiansToDegrees:()=>ot,range:()=>dt,reduceChildren:()=>yt,scalePoint:()=>X});var e={};r.r(e),r.d(e,{containsDates:()=>Ot,containsNumbers:()=>_t,containsOnlyStrings:()=>wt,containsStrings:()=>xt,difference:()=>jt,getMaxValue:()=>Mt,getMinValue:()=>Et,isArrayOfArrays:()=>Pt,removeUndefined:()=>At});var n={};r.r(n),r.d(n,{scaleBand:()=>Nt,scaleDiverging:()=>Ui,scaleDivergingLog:()=>Vi,scaleDivergingPow:()=>Hi,scaleDivergingSqrt:()=>qi,scaleDivergingSymlog:()=>Fi,scaleIdentity:()=>wn,scaleImplicit:()=>Lt,scaleLinear:()=>_n,scaleLog:()=>Dn,scaleOrdinal:()=>It,scalePoint:()=>Bt,scalePow:()=>Un,scaleQuantile:()=>Jn,scaleQuantize:()=>tr,scaleRadial:()=>qn,scaleSequential:()=>Ti,scaleSequentialLog:()=>Ri,scaleSequentialPow:()=>Ii,scaleSequentialQuantile:()=>zi,scaleSequentialSqrt:()=>Ni,scaleSequentialSymlog:()=>Li,scaleSqrt:()=>Vn,scaleSymlog:()=>In,scaleThreshold:()=>er,scaleTime:()=>Ci,scaleUtc:()=>Si,tickFormat:()=>xn});var i={};r.r(i),r.d(i,{getBaseScale:()=>Zi,getDefaultScale:()=>Qi,getScaleFromName:()=>Xi,getScaleFromProps:()=>Ji,getScaleType:()=>ta,getType:()=>na,validScale:()=>Ki});var a={};r.r(a),r.d(a,{IMMUTABLE_ITERABLE:()=>ra,IMMUTABLE_LIST:()=>ia,IMMUTABLE_MAP:()=>aa,IMMUTABLE_RECORD:()=>oa,isImmutable:()=>la,isIterable:()=>ua,isList:()=>sa,isMap:()=>fa,isRecord:()=>ca,shallowToJS:()=>pa});var u={};r.r(u),r.d(u,{createStringMap:()=>xa,downsample:()=>Oa,formatData:()=>_a,formatDataFromDomain:()=>ba,generateData:()=>wa,getCategories:()=>ja,getData:()=>Pa,getStringsFromAxes:()=>Aa,getStringsFromCategories:()=>Ma,getStringsFromData:()=>Ea,isDataComponent:()=>Ca});var c={};r.r(c),r.d(c,{createDomainFunction:()=>Na,formatDomain:()=>za,getDomain:()=>Ba,getDomainFromCategories:()=>Wa,getDomainFromData:()=>Ua,getDomainFromMinMax:()=>Va,getDomainFromProps:()=>Fa,getDomainWithZero:()=>Ha,getMaxFromProps:()=>qa,getMinFromProps:()=>Ga,getSymmetricDomain:()=>Ka,isDomainComponent:()=>$a});var l={};r.r(l),r.d(l,{getDegrees:()=>tu,getPolarAngle:()=>Ja,getPolarTextAnchor:()=>Za,getPolarVerticalAnchor:()=>Qa,getProps:()=>eu,getText:()=>Xa});var s={};r.r(s),r.d(s,{arc:()=>Hu,area:()=>mu,areaRadial:()=>wu,curveBasis:()=>Nc,curveBasisClosed:()=>Bc,curveBasisOpen:()=>Uc,curveBumpX:()=>Zu,curveBumpY:()=>Qu,curveBundle:()=>Fc,curveCardinal:()=>Gc,curveCardinalClosed:()=>$c,curveCardinalOpen:()=>Xc,curveCatmullRom:()=>Jc,curveCatmullRomClosed:()=>el,curveCatmullRomOpen:()=>rl,curveLinear:()=>hu,curveLinearClosed:()=>il,curveMonotoneX:()=>hl,curveMonotoneY:()=>dl,curveNatural:()=>ml,curveStep:()=>bl,curveStepAfter:()=>Ol,curveStepBefore:()=>xl,line:()=>vu,lineRadial:()=>_u,link:()=>nc,linkHorizontal:()=>rc,linkRadial:()=>ic,linkVertical:()=>oc,pie:()=>Ku,pointRadial:()=>$u,radialArea:()=>wu,radialLine:()=>_u,stack:()=>Al,stackOffsetDiverging:()=>El,stackOffsetExpand:()=>Ml,stackOffsetNone:()=>_l,stackOffsetSilhouette:()=>Cl,stackOffsetWiggle:()=>Sl,stackOrderAppearance:()=>kl,stackOrderAscending:()=>Tl,stackOrderDescending:()=>Ll,stackOrderInsideOut:()=>Il,stackOrderNone:()=>wl,stackOrderReverse:()=>Nl,symbol:()=>Tc,symbolAsterisk:()=>uc,symbolCircle:()=>cc,symbolCross:()=>lc,symbolDiamond:()=>pc,symbolDiamond2:()=>hc,symbolPlus:()=>dc,symbolSquare:()=>yc,symbolSquare2:()=>vc,symbolStar:()=>xc,symbolTriangle:()=>_c,symbolTriangle2:()=>jc,symbolWye:()=>Cc,symbolX:()=>Sc,symbols:()=>kc,symbolsFill:()=>kc,symbolsStroke:()=>Dc});var f={};r.r(f),r.d(f,{getInterpolationFunction:()=>Vl,getLineFunction:()=>Fl});var p={};r.r(p),r.d(p,{assert:()=>ts,getSafeUserProps:()=>es,withSafeUserProps:()=>ns});var h={};r.r(h),r.d(h,{warn:()=>xf});var d={};r.r(d),r.d(d,{getColorScale:()=>If,toTransformString:()=>Lf});var y={};r.r(y),r.d(y,{_approximateTextSizeInternal:()=>ep,approximateTextSize:()=>np,convertLengthToPixels:()=>$f});var v={};r.r(v),r.d(v,{continuousPolarTransitions:()=>zp,continuousTransitions:()=>Np,discreteTransitions:()=>Bp});var m={};r.r(m),r.d(m,{easeBack:()=>mh,easeBackIn:()=>yh,easeBackInOut:()=>mh,easeBackOut:()=>vh,easeBounce:()=>ph,easeBounceIn:()=>fh,easeBounceInOut:()=>hh,easeBounceOut:()=>ph,easeCircle:()=>lh,easeCircleIn:()=>uh,easeCircleInOut:()=>lh,easeCircleOut:()=>ch,easeCubic:()=>$p,easeCubicIn:()=>Gp,easeCubicInOut:()=>$p,easeCubicOut:()=>Kp,easeElastic:()=>xh,easeElasticIn:()=>bh,easeElasticInOut:()=>Oh,easeElasticOut:()=>xh,easeExp:()=>ah,easeExpIn:()=>oh,easeExpInOut:()=>ah,easeExpOut:()=>ih,easeLinear:()=>Vp,easePoly:()=>Zp,easePolyIn:()=>Yp,easePolyInOut:()=>Zp,easePolyOut:()=>Xp,easeQuad:()=>qp,easeQuadIn:()=>Fp,easeQuadInOut:()=>qp,easeQuadOut:()=>Hp,easeSin:()=>nh,easeSinIn:()=>th,easeSinInOut:()=>nh,easeSinOut:()=>eh});var g={};r.r(g),r.d(g,{getInitialTransitionState:()=>Rh,getTransitionPropsFactory:()=>Lh});var b={};r.r(b),r.d(b,{emulateReactEvent:()=>id,getComponentEvents:()=>ed,getEventState:()=>Zh,getEvents:()=>$h,getExternalMutation:()=>td,getExternalMutations:()=>Jh,getExternalMutationsWithChildren:()=>Qh,getGlobalEventNameFromKey:()=>nd,getGlobalEvents:()=>rd,getPartialEvents:()=>Xh,getScopedEvents:()=>Yh,omitGlobalEvents:()=>od});var x={};r.r(x),r.d(x,{findAxisComponents:()=>Dd,getAxis:()=>kd,getAxisComponent:()=>Td,getAxisComponentsWithParent:()=>Rd,getAxisValue:()=>qd,getDomain:()=>Hd,getOrigin:()=>Ld,getOriginSign:()=>Id,getTickFormat:()=>Wd,getTicks:()=>Vd,isVertical:()=>Nd,modifyProps:()=>Gd,stringTicks:()=>zd});var O={};r.r(O),r.d(O,{getBounds:()=>qv,getDataCoordinates:()=>Hv,getDomainCoordinates:()=>Fv,getParentSVG:()=>Uv,getSVGEventCoordinates:()=>Vv});var _={};r.r(_),r.d(_,{circle:()=>fg,cross:()=>mg,diamond:()=>hg,minus:()=>gg,plus:()=>vg,square:()=>pg,star:()=>bg,triangleDown:()=>dg,triangleUp:()=>yg});var w={};r.r(w),r.d(w,{addBinsToParentPropsIfHistogram:()=>Wg,getAllEvents:()=>$g,getCategories:()=>nb,getCategoryAndAxisStringsFromChildren:()=>tb,getChildStyle:()=>Zg,getColor:()=>Yg,getData:()=>Vg,getDataFromChildren:()=>Ug,getDefaultDomainPadding:()=>Hg,getDomain:()=>Gg,getDomainFromChildren:()=>qg,getScale:()=>Kg,getStringsFromCategories:()=>Qg,getStringsFromChildren:()=>eb,getStringsFromData:()=>Jg,getStyle:()=>Xg,getWidth:()=>Fg});var j={};r.r(j),r.d(j,{useAnimationState:()=>Dg,usePreviousProps:()=>rb});var P=r(9787),A=r.n(P),M=r(1616),E=r.n(M),C=r(8999),S=r.n(C),k=r(8254),D=r.n(k),T=r(4155),R=r.n(T),L=r(4143),I=r.n(L),N=r(8532),z=r.n(N),B=r(3849),W=r.n(B),U=r(9602),V=r.n(U),F=r(9082),H=r.n(F),q=r(1893),G=r.n(q);function K(t){return Object.entries(t).reduce((function(t,e){return t[e[1]]=e[0],t}),{})}function $(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 Y(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 G()({},p,t)}function X(t,e){var n=t.scale,r=t.polar,o=t.horizontal,i=Y(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 Z(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 Q(t){return"tooltip"===(t&&t.type&&t.type.role)}function J(t,e){var n=t.theme,r=void 0===n?{}:n,o=t.labelComponent,i=r[e]&&r[e].style||{};if(!Q(o))return i;var a=r.tooltip&&r.tooltip.style||{},u=G()({},a,i.labels);return G()({},{labels:u},i)}function tt(t,e){var n="100%",r="100%";if(!t)return G()({parent:{height:r,width:n}},e);var o=t.data,i=t.labels,a=t.parent,u=e&&e.parent||{},c=e&&e.labels||{},l=e&&e.data||{};return{parent:G()({},a,u,{width:n,height:r}),labels:G()({},i,c),data:G()({},o,l)}}function et(t,e){return lt(t)?t(e):t}function nt(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((function(e){return lt(t[e])}))?Object.keys(t).reduce((function(n,r){return n[r]=et(t[r],e),n}),{}):t}function rt(t){return"number"==typeof t?t*(Math.PI/180):t}function ot(t){return"number"==typeof t?t/(Math.PI/180):t}function it(t){var e=Z(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 at(t){var e=t.width,n=t.height,r=Z(t),o=r.top,i=r.bottom,a=r.left,u=r.right,c=Math.min(e-a-u,n-o-i)/2,l=e/2+a-u,s=n/2+o-i;return{x:l+c>e?c+a-u:l,y:s+c>n?c+o-i:s}}function ut(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?[rt(t.startAngle||0),rt(t.endAngle||360)]:[t.innerRadius||0,it(t)]}(t,e):function(t,e){var n="x"!==e,r=Z(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)}function ct(t){return null==t}function lt(t){return"function"==typeof t}function st(t){return lt(t)?t:null==t?function(t){return t}:z()(t)}function ft(t,e,n){var r=$(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),o=vt(t),i=void 0===o?{}:{horizontal:o};return G()(i,t,r,e)}function pt(t,e){return e?"x"===t?"y":"x":t}function ht(t,e){if(t)return Object.keys(t).reduce((function(n,r){return n[r]=e(t[r]),n}),{})}function dt(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}))}function yt(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,H()(n,i)),d=r.type&&"stack"===r.type.role&&lt(r.type.getChildren)?r.type.getChildren(h):A().Children.toArray(r.props.children).map((function(t){var e=Object.assign({},t.props,H()(h,i));return A().cloneElement(t,e)})),y=d.map((function(t,e){return"".concat(p,"-").concat(e)})),v=a(d,y,r);s=o(s,v)}else{var m=e(r,p,c);m&&(s=o(s,m))}return s}),r)},u=t.filter(P.isValidElement),c=u.map((function(t,e){return e}));return a(u,c)}function vt(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(A().Children.toArray(r.children))}),!1)};return e(A().Children.toArray(t.children))}function mt(t){return function(t){if(Array.isArray(t))return gt(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 gt(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)?gt(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 gt(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 bt(t){return Array.isArray(t)&&t.length>0}function xt(t){return Array.isArray(t)&&t.some((function(t){return"string"==typeof t}))}function Ot(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function _t(t){return Array.isArray(t)&&t.some((function(t){return"number"==typeof t}))}function wt(t){return bt(t)&&t.every((function(t){return"string"==typeof t}))}function jt(t,e){return t&&e?t.filter((function(t){return!e.includes(t)})):[]}function Pt(t){return bt(t)&&t.every(Array.isArray)}function At(t){return t.filter((function(t){return void 0!==t}))}function Mt(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 Ot(o)?new Date(Math.max.apply(Math,mt(o))):Math.max.apply(Math,mt(o))}function Et(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 Ot(o)?new Date(Math.min.apply(Math,mt(o))):Math.min.apply(Math,mt(o))}function Ct(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 St(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function kt(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 Dt extends Map{constructor(t,e=Rt){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(Tt(this,t))}has(t){return super.has(Tt(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 Tt({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Rt(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Lt=Symbol("implicit");function It(){var t=new Dt,e=[],n=[],r=Lt;function o(o){let i=t.get(o);if(void 0===i){if(r!==Lt)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 Dt;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 It(e,n).unknown(r)},St.apply(o,arguments),o}function Nt(){var t,e,n=It().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 d=Ct(n).map((function(e){return p+t*e}));return o(f?d.reverse():d)}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 Nt(r(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},St.apply(f(),arguments)}function zt(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return zt(e())},t}function Bt(){return zt(Nt.apply(null,arguments).paddingInner(1))}var Wt=Math.sqrt(50),Ut=Math.sqrt(10),Vt=Math.sqrt(2);function Ft(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=Ht(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 Ht(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>=Wt?10:i>=Ut?5:i>=Vt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Wt?10:i>=Ut?5:i>=Vt?2:1)}function qt(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>=Wt?o*=10:i>=Ut?o*=5:i>=Vt&&(o*=2),e<t?-o:o}function Gt(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Kt(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function $t(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=Gt,n=(e,n)=>Gt(t(e),n),r=(e,n)=>t(e)-n):(e=t===Gt||t===Kt?t:Yt,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 Yt(){return 0}function Xt(t){return null===t?NaN:+t}const Zt=$t(Gt),Qt=Zt.right,Jt=(Zt.left,$t(Xt).center,Qt);function te(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ee(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ne(){}var re=.7,oe=1/re,ie="\\s*([+-]?\\d+)\\s*",ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ce=/^#([0-9a-f]{3,8})$/,le=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),se=new RegExp(`^rgb\\(${ue},${ue},${ue}\\)$`),fe=new RegExp(`^rgba\\(${ie},${ie},${ie},${ae}\\)$`),pe=new RegExp(`^rgba\\(${ue},${ue},${ue},${ae}\\)$`),he=new RegExp(`^hsl\\(${ae},${ue},${ue}\\)$`),de=new RegExp(`^hsla\\(${ae},${ue},${ue},${ae}\\)$`),ye={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 ve(){return this.rgb().formatHex()}function me(){return this.rgb().formatRgb()}function ge(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ce.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?be(e):3===n?new we(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?xe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?xe(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=le.exec(t))?new we(e[1],e[2],e[3],1):(e=se.exec(t))?new we(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=fe.exec(t))?xe(e[1],e[2],e[3],e[4]):(e=pe.exec(t))?xe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=he.exec(t))?Ce(e[1],e[2]/100,e[3]/100,1):(e=de.exec(t))?Ce(e[1],e[2]/100,e[3]/100,e[4]):ye.hasOwnProperty(t)?be(ye[t]):"transparent"===t?new we(NaN,NaN,NaN,0):null}function be(t){return new we(t>>16&255,t>>8&255,255&t,1)}function xe(t,e,n,r){return r<=0&&(t=e=n=NaN),new we(t,e,n,r)}function Oe(t){return t instanceof ne||(t=ge(t)),t?new we((t=t.rgb()).r,t.g,t.b,t.opacity):new we}function _e(t,e,n,r){return 1===arguments.length?Oe(t):new we(t,e,n,null==r?1:r)}function we(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function je(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}`}function Pe(){const t=Ae(this.opacity);return`${1===t?"rgb(":"rgba("}${Me(this.r)}, ${Me(this.g)}, ${Me(this.b)}${1===t?")":`, ${t})`}`}function Ae(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Me(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ee(t){return((t=Me(t))<16?"0":"")+t.toString(16)}function Ce(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ke(t,e,n,r)}function Se(t){if(t instanceof ke)return new ke(t.h,t.s,t.l,t.opacity);if(t instanceof ne||(t=ge(t)),!t)return new ke;if(t instanceof ke)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 ke(a,u,c,t.opacity)}function ke(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function De(t){return(t=(t||0)%360)<0?t+360:t}function Te(t){return Math.max(0,Math.min(1,t||0))}function Re(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 Le(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}te(ne,ge,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ve,formatHex:ve,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Se(this).formatHsl()},formatRgb:me,toString:me}),te(we,_e,ee(ne,{brighter(t){return t=null==t?oe:Math.pow(oe,t),new we(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?re:Math.pow(re,t),new we(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new we(Me(this.r),Me(this.g),Me(this.b),Ae(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:je,formatHex:je,formatHex8:function(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}${Ee(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Pe,toString:Pe})),te(ke,(function(t,e,n,r){return 1===arguments.length?Se(t):new ke(t,e,n,null==r?1:r)}),ee(ne,{brighter(t){return t=null==t?oe:Math.pow(oe,t),new ke(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?re:Math.pow(re,t),new ke(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 we(Re(t>=240?t-240:t+120,o,r),Re(t,o,r),Re(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new ke(De(this.h),Te(this.s),Te(this.l),Ae(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=Ae(this.opacity);return`${1===t?"hsl(":"hsla("}${De(this.h)}, ${100*Te(this.s)}%, ${100*Te(this.l)}%${1===t?")":`, ${t})`}`}}));const Ie=t=>()=>t;function Ne(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ie(isNaN(t)?e:t)}const ze=function t(e){var n=function(t){return 1==(t=+t)?Ne: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):Ie(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=_e(t)).r,(e=_e(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=Ne(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 Be(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=_e(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 We(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]=$e(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 Ue(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Ve(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Fe(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]=$e(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}Be((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 Le((n-r/e)*e,a,o,i,u)}})),Be((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 Le((n-r/e)*e,o,i,a,u)}}));var He=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qe=new RegExp(He.source,"g");function Ge(t,e){var n,r,o,i=He.lastIndex=qe.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(n=He.exec(t))&&(r=qe.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:Ve(n,r)})),i=qe.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 Ke(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 $e(t,e){var n,r=typeof e;return null==e||"boolean"===r?Ie(e):("number"===r?Ve:"string"===r?(n=ge(e))?(e=n,ze):Ge:e instanceof ge?ze:e instanceof Date?Ue:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Ke:Array.isArray(e)?We:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Fe:Ve)(t,e)}function Ye(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Xe(t){return+t}var Ze=[0,1];function Qe(t){return t}function Je(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function tn(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=Je(o,r),i=n(a,i)):(r=Je(r,o),i=n(i,a)),function(t){return i(r(t))}}function en(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]=Je(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(e){var n=Jt(t,e,1,r)-1;return i[n](o[n](e))}}function nn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function rn(){var t,e,n,r,o,i,a=Ze,u=Ze,c=$e,l=Qe;function s(){var t=Math.min(a.length,u.length);return l!==Qe&&(l=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?en:tn,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),Ve)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Xe),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=Ye,s()},f.clamp=function(t){return arguments.length?(l=!!t||Qe,s()):l!==Qe},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 on(){return rn()(Qe,Qe)}var an,un=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cn(t){if(!(e=un.exec(t)))throw new Error("invalid format: "+t);var e;return new ln({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 ln(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 sn(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 fn(t){return(t=sn(Math.abs(t)))?t[1]:NaN}function pn(t,e){var n=sn(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")}cn.prototype=ln.prototype,ln.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 hn={"%":(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)=>pn(100*t,e),r:pn,s:function(t,e){var n=sn(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(an=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")+sn(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function dn(t){return t}var yn,vn,mn,gn=Array.prototype.map,bn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xn(t,e,n,r){var o,i=qt(t,e,n);switch((r=cn(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(fn(e)/3)))-fn(Math.abs(t)))}(i,a))||(r.precision=o),mn(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,fn(e)-fn(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,-fn(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return vn(r)}function On(t){var e=t.domain;return t.ticks=function(t){var n=e();return Ft(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return xn(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=Ht(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 _n(){var t=on();return t.copy=function(){return nn(t,_n())},St.apply(t,arguments),On(t)}function wn(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,Xe),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return wn(t).unknown(e)},t=arguments.length?Array.from(t,Xe):[0,1],On(n)}function jn(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 Pn(t){return Math.log(t)}function An(t){return Math.exp(t)}function Mn(t){return-Math.log(-t)}function En(t){return-Math.exp(-t)}function Cn(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Sn(t){return(e,n)=>-t(-e,n)}function kn(t){const e=t(Pn,An),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?Cn:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),n()[0]<0?(r=Sn(r),o=Sn(o),t(Mn,En)):t(Pn,An),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 d=[];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;d.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;d.push(s)}2*d.length<h&&(d=Ft(a,u,h))}else d=Ft(f,p,Math.min(p-f,h)).map(o);return c?d.reverse():d},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=cn(n)).precision||(n.trim=!0),n=vn(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(jn(n(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),e}function Dn(){const t=kn(rn()).domain([1,10]);return t.copy=()=>nn(t,Dn()).base(t.base()),St.apply(t,arguments),t}function Tn(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Rn(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Ln(t){var e=1,n=t(Tn(e),Rn(e));return n.constant=function(n){return arguments.length?t(Tn(e=+n),Rn(e)):e},On(n)}function In(){var t=Ln(rn());return t.copy=function(){return nn(t,In()).constant(t.constant())},St.apply(t,arguments)}function Nn(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function zn(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Bn(t){return t<0?-t*t:t*t}function Wn(t){var e=t(Qe,Qe),n=1;function r(){return 1===n?t(Qe,Qe):.5===n?t(zn,Bn):t(Nn(n),Nn(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},On(e)}function Un(){var t=Wn(rn());return t.copy=function(){return nn(t,Un()).exponent(t.exponent())},St.apply(t,arguments),t}function Vn(){return Un.apply(null,arguments).exponent(.5)}function Fn(t){return Math.sign(t)*t*t}function Hn(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function qn(){var t,e=on(),n=[0,1],r=!1;function o(n){var o=Hn(e(n));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return e.invert(Fn(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,Xe)).map(Fn)),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 qn(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},St.apply(o,arguments),On(o)}function Gn(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 Kn(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 $n(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function Yn(t,e,n=0,r=t.length-1,o){for(o=void 0===o?$n:function(t=Gt){if(t===Gt)return $n;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);Yn(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(Xn(t,n,e),o(t[r],i)>0&&Xn(t,n,r);a<u;){for(Xn(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[n],i)?Xn(t,n,u):(++u,Xn(t,u,r)),u<=e&&(n=u+1),e<=u&&(r=u-1)}return t}function Xn(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Zn(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 Kn(t);if(e>=1)return Gn(t);var r,o=(r-1)*e,i=Math.floor(o),a=Gn(Yn(t,i).subarray(0,i+1));return a+(Kn(t.subarray(i+1))-a)*(o-i)}}function Qn(t,e,n=Xt){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 Jn(){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]=Qn(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:n[Jt(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(Gt),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 Jn().domain(e).range(n).unknown(t)},St.apply(i,arguments)}function tr(){var t,e=0,n=1,r=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[Jt(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 tr().domain([e,n]).range(i).unknown(t)},St.apply(On(a),arguments)}function er(){var t,e=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[Jt(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 er().domain(e).range(n).unknown(t)},St.apply(o,arguments)}yn=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?dn:(e=gn.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?dn:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(gn.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=cn(t)).fill,n=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,m=t.trim,g=t.type;"n"===g?(y=!0,g="g"):hn[g]||(void 0===v&&(v=12),m=!0,g="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?i:/[%p]/.test(g)?c:"",O=hn[g],_=/[defgprs%]/.test(g);function w(t){var o,i,c,p=b,w=x;if("c"===g)w=O(t)+w,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:O(Math.abs(t),v),m&&(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)),j&&0==+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:l:"-"===f||"("===f?"":f)+p,w=("s"===g?bn[8+an/3]:"")+w+(j&&"("===f?")":""),_)for(o=-1,i=t.length;++o<i;)if(48>(c=t.charCodeAt(o))||c>57){w=(46===c?a+t.slice(o+1):t.slice(o))+w,t=t.slice(0,o);break}}y&&!h&&(t=r(t,1/0));var P=p.length+t.length+w.length,A=P<d?new Array(d-P+1).join(e):"";switch(y&&h&&(t=r(A+t,A.length?d-w.length:1/0),A=""),n){case"<":t=p+t+w+A;break;case"=":t=p+A+t+w;break;case"^":t=A.slice(0,P=A.length>>1)+p+t+w+A.slice(P);break;default:t=A+p+t+w}return u(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),w.toString=function(){return t+""},w}return{format:f,formatPrefix:function(t,e){var n=f(((t=cn(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(fn(e)/3))),o=Math.pow(10,-r),i=bn[8+r/3];return function(t){return n(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),vn=yn.format,mn=yn.formatPrefix;const nr=1e3,rr=6e4,or=36e5,ir=864e5,ar=6048e5,ur=31536e6;var cr=new Date,lr=new Date;function sr(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 sr((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 cr.setTime(+e),lr.setTime(+r),t(cr),t(lr),Math.floor(n(cr,lr))},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 fr=sr((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));fr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?sr((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):fr:null};const pr=fr;fr.range;var hr=sr((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*nr)}),(function(t,e){return(e-t)/nr}),(function(t){return t.getUTCSeconds()}));const dr=hr;hr.range;var yr=sr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*nr)}),(function(t,e){t.setTime(+t+e*rr)}),(function(t,e){return(e-t)/rr}),(function(t){return t.getMinutes()}));const vr=yr;yr.range;var mr=sr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*nr-t.getMinutes()*rr)}),(function(t,e){t.setTime(+t+e*or)}),(function(t,e){return(e-t)/or}),(function(t){return t.getHours()}));const gr=mr;mr.range;var br=sr((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rr)/ir),(t=>t.getDate()-1));const xr=br;function Or(t){return sr((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())*rr)/ar}))}br.range;var _r=Or(0),wr=Or(1),jr=Or(2),Pr=Or(3),Ar=Or(4),Mr=Or(5),Er=Or(6),Cr=(_r.range,wr.range,jr.range,Pr.range,Ar.range,Mr.range,Er.range,sr((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 Sr=Cr;Cr.range;var kr=sr((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()}));kr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sr((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 Dr=kr;kr.range;var Tr=sr((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*rr)}),(function(t,e){return(e-t)/rr}),(function(t){return t.getUTCMinutes()}));const Rr=Tr;Tr.range;var Lr=sr((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*or)}),(function(t,e){return(e-t)/or}),(function(t){return t.getUTCHours()}));const Ir=Lr;Lr.range;var Nr=sr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/ir}),(function(t){return t.getUTCDate()-1}));const zr=Nr;function Br(t){return sr((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)/ar}))}Nr.range;var Wr=Br(0),Ur=Br(1),Vr=Br(2),Fr=Br(3),Hr=Br(4),qr=Br(5),Gr=Br(6),Kr=(Wr.range,Ur.range,Vr.range,Fr.range,Hr.range,qr.range,Gr.range,sr((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 $r=Kr;Kr.range;var Yr=sr((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()}));Yr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sr((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 Xr=Yr;function Zr(t,e,n,r,o,i){const a=[[dr,1,nr],[dr,5,5e3],[dr,15,15e3],[dr,30,3e4],[i,1,rr],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,or],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,ir],[r,2,1728e5],[n,1,ar],[e,1,2592e6],[e,3,7776e6],[t,1,ur]];function u(e,n,r){const o=Math.abs(n-e)/r,i=$t((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(qt(e/ur,n/ur,r));if(0===i)return pr.every(Math.max(qt(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]}Yr.range;const[Qr,Jr]=Zr(Xr,$r,Wr,zr,Ir,Rr),[to,eo]=Zr(Dr,Sr,_r,xr,gr,vr);function no(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 ro(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 oo(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var io,ao,uo,co={"-":"",_:" ",0:"0"},lo=/^\s*\d+/,so=/^%/,fo=/[\\^$*+?|[\]().{}]/g;function po(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 ho(t){return t.replace(fo,"\\$&")}function yo(t){return new RegExp("^(?:"+t.map(ho).join("|")+")","i")}function vo(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function mo(t,e,n){var r=lo.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function go(t,e,n){var r=lo.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function bo(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function xo(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Oo(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function _o(t,e,n){var r=lo.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function wo(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function jo(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 Po(t,e,n){var r=lo.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Ao(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Mo(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Eo(t,e,n){var r=lo.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Co(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function So(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ko(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Do(t,e,n){var r=lo.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function To(t,e,n){var r=lo.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ro(t,e,n){var r=so.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lo(t,e,n){var r=lo.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Io(t,e,n){var r=lo.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function No(t,e){return po(t.getDate(),e,2)}function zo(t,e){return po(t.getHours(),e,2)}function Bo(t,e){return po(t.getHours()%12||12,e,2)}function Wo(t,e){return po(1+xr.count(Dr(t),t),e,3)}function Uo(t,e){return po(t.getMilliseconds(),e,3)}function Vo(t,e){return Uo(t,e)+"000"}function Fo(t,e){return po(t.getMonth()+1,e,2)}function Ho(t,e){return po(t.getMinutes(),e,2)}function qo(t,e){return po(t.getSeconds(),e,2)}function Go(t){var e=t.getDay();return 0===e?7:e}function Ko(t,e){return po(_r.count(Dr(t)-1,t),e,2)}function $o(t){var e=t.getDay();return e>=4||0===e?Ar(t):Ar.ceil(t)}function Yo(t,e){return t=$o(t),po(Ar.count(Dr(t),t)+(4===Dr(t).getDay()),e,2)}function Xo(t){return t.getDay()}function Zo(t,e){return po(wr.count(Dr(t)-1,t),e,2)}function Qo(t,e){return po(t.getFullYear()%100,e,2)}function Jo(t,e){return po((t=$o(t)).getFullYear()%100,e,2)}function ti(t,e){return po(t.getFullYear()%1e4,e,4)}function ei(t,e){var n=t.getDay();return po((t=n>=4||0===n?Ar(t):Ar.ceil(t)).getFullYear()%1e4,e,4)}function ni(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+po(e/60|0,"0",2)+po(e%60,"0",2)}function ri(t,e){return po(t.getUTCDate(),e,2)}function oi(t,e){return po(t.getUTCHours(),e,2)}function ii(t,e){return po(t.getUTCHours()%12||12,e,2)}function ai(t,e){return po(1+zr.count(Xr(t),t),e,3)}function ui(t,e){return po(t.getUTCMilliseconds(),e,3)}function ci(t,e){return ui(t,e)+"000"}function li(t,e){return po(t.getUTCMonth()+1,e,2)}function si(t,e){return po(t.getUTCMinutes(),e,2)}function fi(t,e){return po(t.getUTCSeconds(),e,2)}function pi(t){var e=t.getUTCDay();return 0===e?7:e}function hi(t,e){return po(Wr.count(Xr(t)-1,t),e,2)}function di(t){var e=t.getUTCDay();return e>=4||0===e?Hr(t):Hr.ceil(t)}function yi(t,e){return t=di(t),po(Hr.count(Xr(t),t)+(4===Xr(t).getUTCDay()),e,2)}function vi(t){return t.getUTCDay()}function mi(t,e){return po(Ur.count(Xr(t)-1,t),e,2)}function gi(t,e){return po(t.getUTCFullYear()%100,e,2)}function bi(t,e){return po((t=di(t)).getUTCFullYear()%100,e,2)}function xi(t,e){return po(t.getUTCFullYear()%1e4,e,4)}function Oi(t,e){var n=t.getUTCDay();return po((t=n>=4||0===n?Hr(t):Hr.ceil(t)).getUTCFullYear()%1e4,e,4)}function _i(){return"+0000"}function wi(){return"%"}function ji(t){return+t}function Pi(t){return Math.floor(+t/1e3)}function Ai(t){return new Date(t)}function Mi(t){return t instanceof Date?+t:+new Date(+t)}function Ei(t,e,n,r,o,i,a,u,c,l){var s=on(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function O(t){return(c(t)<t?h:u(t)<t?d:a(t)<t?y:i(t)<t?v:r(t)<t?o(t)<t?m:g:n(t)<t?b:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Mi)):p().map(Ai)},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(jn(n,t)):s},s.copy=function(){return nn(s,Ei(t,e,n,r,o,i,a,u,c,l))},s}function Ci(){return St.apply(Ei(to,eo,Dr,Sr,_r,xr,gr,vr,dr,ao).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Si(){return St.apply(Ei(Qr,Jr,Xr,$r,Wr,zr,Ir,Rr,dr,uo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ki(){var t,e,n,r,o,i=0,a=1,u=Qe,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($e),l.rangeRound=s(Ye),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 Di(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ti(){var t=On(ki()(Qe));return t.copy=function(){return Di(t,Ti())},kt.apply(t,arguments)}function Ri(){var t=kn(ki()).domain([1,10]);return t.copy=function(){return Di(t,Ri()).base(t.base())},kt.apply(t,arguments)}function Li(){var t=Ln(ki());return t.copy=function(){return Di(t,Li()).constant(t.constant())},kt.apply(t,arguments)}function Ii(){var t=Wn(ki());return t.copy=function(){return Di(t,Ii()).exponent(t.exponent())},kt.apply(t,arguments)}function Ni(){return Ii.apply(null,arguments).exponent(.5)}function zi(){var t=[],e=Qe;function n(n){if(null!=n&&!isNaN(n=+n))return e((Jt(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(Gt),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)=>Zn(t,r/e)))},n.copy=function(){return zi(e).domain(t)},kt.apply(n,arguments)}function Bi(t,e){void 0===e&&(e=t,t=$e);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 Wi(){var t,e,n,r,o,i,a,u=0,c=.5,l=1,s=1,f=Qe,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 d(t){return function(e){var n,r,o;return arguments.length?([n,r,o]=e,f=Bi(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=d($e),h.rangeRound=d(Ye),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 Ui(){var t=On(Wi()(Qe));return t.copy=function(){return Di(t,Ui())},kt.apply(t,arguments)}function Vi(){var t=kn(Wi()).domain([.1,1,10]);return t.copy=function(){return Di(t,Vi()).base(t.base())},kt.apply(t,arguments)}function Fi(){var t=Ln(Wi());return t.copy=function(){return Di(t,Fi()).constant(t.constant())},kt.apply(t,arguments)}function Hi(){var t=Wn(Wi());return t.copy=function(){return Di(t,Hi()).exponent(t.exponent())},kt.apply(t,arguments)}function qi(){return Hi.apply(null,arguments).exponent(.5)}io=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=yo(o),s=vo(o),f=yo(i),p=vo(i),h=yo(a),d=vo(a),y=yo(u),v=vo(u),m=yo(c),g=vo(c),b={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:No,e:No,f:Vo,g:Jo,G:ei,H:zo,I:Bo,j:Wo,L:Uo,m:Fo,M:Ho,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ji,s:Pi,S:qo,u:Go,U:Ko,V:Yo,w:Xo,W:Zo,x:null,X:null,y:Qo,Y:ti,Z:ni,"%":wi},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:ri,e:ri,f:ci,g:bi,G:Oi,H:oi,I:ii,j:ai,L:ui,m:li,M:si,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ji,s:Pi,S:fi,u:pi,U:hi,V:yi,w:vi,W:mi,x:null,X:null,y:gi,Y:xi,Z:_i,"%":wi},O={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.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=m.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return j(t,e,n,r)},d:Mo,e:Mo,f:To,g:wo,G:_o,H:Co,I:Co,j:Eo,L:Do,m:Ao,M:So,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:Po,Q:Lo,s:Io,S:ko,u:go,U:bo,V:xo,w:mo,W:Oo,x:function(t,e,r){return j(t,n,e,r)},X:function(t,e,n){return j(t,r,e,n)},y:wo,Y:_o,Z:jo,"%":Ro};function _(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=co[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 w(t,e){return function(n){var r,o,i=oo(1900,void 0,1);if(j(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=ro(oo(i.y,0,1))).getUTCDay(),r=o>4||0===o?Ur.ceil(r):Ur(r),r=zr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=no(oo(i.y,0,1))).getDay(),r=o>4||0===o?wr.ceil(r):wr(r),r=xr.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?ro(oo(i.y,0,1)).getUTCDay():no(oo(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,ro(i)):no(i)}}function j(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 co?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(e,b),x.x=_(n,x),x.X=_(r,x),x.c=_(e,x),{format:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=w(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"]}),ao=io.format,io.parse,uo=io.utcFormat,io.utcParse;var Gi=["linear","time","log","sqrt"];function Ki(t){return"function"==typeof t?lt(t.copy)&&lt(t.domain)&&lt(t.range):"string"==typeof t&&Gi.includes(t)}function $i(t,e){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[e])}function Yi(t,e){if(!t.data)return"linear";var n=st(t[e]);return Ot(t.data.map((function(t){var r=W()(n(t))?n(t)[e]:n(t);return void 0!==r?r:t[e]})))?"time":"linear"}function Xi(t){if(Ki(t)){var e="scale".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t));return n[e]()}return _n()}function Zi(t,e){var n=Ji(t,e);return n?"string"==typeof n?Xi(n):n:Xi(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 Ot(n)?"time":"linear"}(t,e)||Yi(t,e))}function Qi(){return _n()}function Ji(t,e){if($i(t,e)){var n=t.scale[e]||t.scale;return Ki(n)?lt(n)?n:Xi(n):void 0}}function ta(t,e){return function(t,e){if($i(t,e)){var n=t.scale[e]||t.scale;return"string"==typeof n?n:na(n)}}(t,e)||Yi(t,e)}var ea=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function na(t){if("string"==typeof t)return t;var e=ea.filter((function(e){return void 0!==t[e.method]}))[0];return e?e.name:void 0}var ra="@@__IMMUTABLE_ITERABLE__@@",oa="@@__IMMUTABLE_RECORD__@@",ia="@@__IMMUTABLE_LIST__@@",aa="@@__IMMUTABLE_MAP__@@";function ua(t){return!(!t||!t[ra])}function ca(t){return!(!t||!t[oa])}function la(t){return ua(t)||ca(t)}function sa(t){return!(!t||!t[ia])}function fa(t){return!(!t||!t[aa])}function pa(t,e){return ua(t)?t.reduce((function(t,n,r){var o=n;return e&&e[r]&&(o=pa(n)),t[r]=o,t}),sa(t)?[]:{}):t}function ha(t){return function(t){if(Array.isArray(t))return da(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 da(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)?da(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 da(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 ya(t){return la(t)?pa(t,{errorX:!0,errorY:!0}):t}function va(t){return ua(t)?t.size:t.length}function ma(t,e){var n=(W()(t.domain)?t.domain[e]:t.domain)||Zi(t,e).domain(),r=t.samples||1,o=Math.max.apply(Math,ha(n)),i=Math.min.apply(Math,ha(n)),a=dt(i,o,(o-i)/r);return a[a.length-1]===o?a:a.concat(o)}function ga(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 I()(t,r,o)}function ba(t,e,n){var r=function(t){return void 0!==t},o=Et(e.x),i=Mt(e.x),a=Et(e.y),u=Mt(e.y),c=function(t){return function(e){return r(e)&&e<t}},l=function(t){return function(e){return r(e)&&e>t}},s=c(o),f=c(a),p=l(i),h=l(u);return t.map((function(t){var e=t._x,o=t._y,i=t._y0,c=t._y1;(s(e)||p(e))&&(e=null);var l=r(i)?i:n,d=r(c)?c:o;return r(d)?(r(l)||!f(d)&&!h(d)||(o=null),(f(l)&&f(d)||h(l)&&h(d))&&(o=i=c=null),f(l)&&!f(d)&&(i=a),h(l)&&!h(d)&&(i=u),Object.assign({},t,E()({_x:e,_y:o,_y0:i,_y1:c},S()))):t}))}function xa(t,e){var n=Aa(t,e),r=Ma(t,e),o=Ea(t,e),i=V()([].concat(ha(n),ha(r),ha(o)));return 0===i.length?null:i.reduce((function(t,e,n){return t[e]=n+1,t}),{})}function Oa(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=va(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}function _a(t,e,n){if(!Array.isArray(t)&&!ua(t)||va(t)<1)return[];var r,o=["x","y","y0"],i=(n=Array.isArray(n)?n:o).reduce((function(t,n){var r;return t[n]=st(void 0!==e[r=n]?e[r]:r),t}),{}),a=D()(n,o)&&"_x"===e.x&&"_y"===e.y&&"_y0"===e.y0;!1===a&&(r={x:-1!==n.indexOf("x")?xa(e,"x"):void 0,y:-1!==n.indexOf("y")?xa(e,"y"):void 0,y0:-1!==n.indexOf("y0")?xa(e,"y"):void 0});var u=a?t:t.reduce((function(t,e,o){var a=ya(e),u={x:o,y:a},c=n.reduce((function(t,e){var n=i[e](a),o=void 0!==n?n:u[e];return void 0!==o&&("string"==typeof o&&r[e]?(t["".concat(e,"Name")]=o,t["_".concat(e)]=r[e][o]):t["_".concat(e)]=o),t}),{}),l=Object.assign({},c,a);return R()(l)||t.push(l),t}),[]),c=function(t,e){var n=1/Number.MAX_SAFE_INTEGER,r={x:ta(e,"x"),y:ta(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)}))}(ga(u,e.sortKey,e.sortOrder),e);return function(t,e){var n,r=!!t.eventKey,o=lt(n=t.eventKey)?n:null==n?function(){}:z()(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,c)}function wa(t){var e=ma(t,"x"),n=ma(t,"y"),r=e.map((function(t,e){return{x:t,y:n[e]}}));return r}function ja(t,e){return t.categories&&!Array.isArray(t.categories)?t.categories[e]:t.categories}function Pa(t){return t.data?_a(t.data,t):_a(wa(t),t)}function Aa(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}))}function Ma(t,e){if(!t.categories)return[];var n=ja(t,e),r=n&&n.filter((function(t){return"string"==typeof t}));return r?At(r):[]}function Ea(t,e){if(!Array.isArray(t.data)&&!ua(t.data))return[];var n=st(void 0===t[e]?e:t[e]);return ga(t.data.reduce((function(t,e){return t.push(ya(e)),t}),[]),t.sortKey,t.sortOrder).reduce((function(t,e){var r=ya(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}),[])}function Ca(t){var e=function(t){return t&&t.type?t.type.role:""},n=e(t);if("portal"===n){var r=A().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 Sa=r(4295),ka=r.n(Sa),Da=r(2829),Ta=r.n(Da);function Ra(t){return function(t){if(Array.isArray(t))return La(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 La(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)?La(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 La(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 Ia(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"min",r=function(t){return"max"===n?Math.max.apply(Math,Ra(t)):Math.min.apply(Math,Ra(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 Na(t,e){var n=lt(t)?t:Ua,r=lt(e)?e:za;return function(t,e){var o=Fa(t,e);if(o)return r(o,t,e);var i=ja(t,e),a=i?Wa(t,e,i):n(t,e);return a?r(a,t,e):void 0}}function za(t,e,n){return function(t,e,n){return"log"!==ta(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=Ga(e,n),o=qa(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 W()(t.domainPadding)?n(t.domainPadding[e]):n(t.domainPadding)}(e,n);if(!i.left&&!i.right)return t;var a=Et(t),u=Mt(t),c=ut(e,pt(n,e.horizontal)),l=Math.abs(c[0]-c[1]),s=Math.max(l-i.left-i.right,1),f=Math.abs(u.valueOf()-a.valueOf())/s*l,p=f*i.left/l,h=f*i.right/l,d={min:a.valueOf()-p,max:u.valueOf()+h},y=W()(e.singleQuadrantDomainPadding)?e.singleQuadrantDomainPadding[n]:e.singleQuadrantDomainPadding,v=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!==y){var m={left:Math.abs(u-a)*i.left/l,right:Math.abs(u-a)*i.right/l},g={min:v(a.valueOf()-m.left,"min"),max:v(u.valueOf()+m.right,"max")},b={left:Math.abs(g.max-g.min)*i.left/l,right:Math.abs(g.max-g.min)*i.right/l};d={min:v(a.valueOf()-b.left,"min"),max:v(u.valueOf()+b.right,"max")}}var x={min:void 0!==r?r:d.min,max:void 0!==o?o:d.max};return a instanceof Date||u instanceof Date?Va(new Date(x.min),new Date(x.max)):Va(x.min,x.max)}(t,e,n),e,n)}function Ba(t,e){return Na()(t,e)}function Wa(t,e,n){var r=n||ja(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=Ga(t,e),s=qa(t,e),f=xt(r)?Ma(t,e):[],p=0===f.length?null:f.reduce((function(t,e,n){return t[e]=n+1,t}),{}),h=p?r.map((function(t){return p[t]})):r,d=Va(void 0!==l?l:Et(h),void 0!==s?s:Mt(h));return o&&"x"===e&&360===Math.abs(a-c)?Ka(d,h):d}}function Ua(t,e,n){var r=n||Pa(t),o=t.polar,i=t.startAngle,a=void 0===i?0:i,u=t.endAngle,c=void 0===u?360:u,l=Ga(t,e),s=qa(t,e);if(r.length<1)return void 0!==l&&void 0!==s?Va(l,s):void 0;var f=Va(void 0!==l?l:Ia(r,e,"min"),void 0!==s?s:Ia(r,e,"max"));return o&&"x"===e&&360===Math.abs(a-c)?Ka(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 Va(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 Fa(t,e){var n=Ga(t,e),r=qa(t,e);return W()(t.domain)&&t.domain[e]?t.domain[e]:Array.isArray(t.domain)?t.domain:void 0!==n&&void 0!==r?Va(n,r):void 0}function Ha(t,e){var n=Fa(t,e);if(n)return n;var r=Pa(t),o=r.reduce((function(t,e){return e._y0<t?e._y0:t}),1/0);return Na((function(){return Ua(t,e,r)}),(function(n){return za(function(n){if("x"===e)return n;var r=o!==1/0?o:0,i=qa(t,e),a=Ga(t,e),u=void 0!==i?i:Mt(n,r);return Va(void 0!==a?a:Et(n,r),u)}(n),t,e)}))(t,e)}function qa(t,e){return W()(t.maxDomain)&&void 0!==t.maxDomain[e]?t.maxDomain[e]:"number"==typeof t.maxDomain||ka()(t.maxDomain)?t.maxDomain:void 0}function Ga(t,e){return W()(t.minDomain)&&void 0!==t.minDomain[e]?t.minDomain[e]:"number"==typeof t.minDomain||ka()(t.minDomain)?t.minDomain:void 0}function Ka(t,e){var n=Ta()(e.sort((function(t,e){return t-e}))),r=n[1]-n[0];return[t[0],t[1]+r]}function $a(t){var e=function(t){return t&&t.type?t.type.role:""},n=e(t);if("portal"===n){var r=A().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)}function Ya(t){var e=t.labelComponent,n=t.labelPlacement,r=t.polar?"perpendicular":"vertical";return n||e.props&&e.props.labelPlacement||r}function Xa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return void 0!==e.label?e.label:Array.isArray(t.labels)?t.labels[n]:t.labels}function Za(t,e){var n=Ya(t);return"perpendicular"===n||"vertical"===n&&(90===e||270===e)?"middle":e<=90||e>270?"start":"end"}function Qa(t,e){var n=Ya(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(e);return"parallel"===n||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function Ja(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var o=void 0!==e?e%360:tu(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)}function tu(t,e){var n=Y(e).x;return ot(t.scale.x(n))%360}function eu(t,e){var n=t.scale,r=t.data,o=t.style,i=t.horizontal,a=t.polar,u=t.width,c=t.height,l=t.theme,s=t.labelComponent,f=t.disableInlineStyles,p=r[e],h=tu(t,p),d=a?Za(t,h):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.style,r=t.horizontal,o=e._y>=0?1:-1,i=n&&n.labels||{};return e.verticalAnchor||i.verticalAnchor?e.verticalAnchor||i.verticalAnchor:r?o>=0?"start":"end":"middle"}(t,p),y=a?Qa(t,h):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e._y>=0?1:-1,r=t.style&&t.style.labels||{};return e.verticalAnchor||r.verticalAnchor?e.verticalAnchor||r.verticalAnchor:t.horizontal?"middle":n>=0?"end":"start"}(t,p),v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.style&&t.style.labels||{};return void 0===e.angle?n.angle:e.angle}(t,p),m=Xa(t,p,e),g=Ya(t),b=function(t,e){var n=t.polar,r=X(t,e),o=r.x,i=r.y;if(!n)return{x:o,y:i};var a=function(t,e){var n=t.style,r=tu(t,e),o=et((n.labels||{}).padding,t)||0,i=rt(r);return{x:o*Math.cos(i),y:-o*Math.sin(i)}}(t,e);return{x:o+a.x,y:i+a.y}}(t,p),x=b.x,O=b.y,_=function(t,e){if(t.polar)return{};var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.horizontal,r=et((t.style.labels||{}).padding,t)||0,o=e._y<0?-1:1;return{x:n?o*r:0,y:n?0:-1*o*r}}(t,e);return{dx:n.x,dy:n.y}}(t,p),w={angle:v,data:r,datum:p,disableInlineStyles:f,horizontal:i,index:e,polar:a,scale:n,labelPlacement:g,text:m,textAnchor:d,verticalAnchor:y,x,y:O,dx:_.dx,dy:_.dy,width:u,height:c,style:o.labels};if(!Q(s))return w;var j=l&&l.tooltip||{};return G()({},w,$(j,["style"]))}const nu=Math.PI,ru=2*nu,ou=1e-6,iu=ru-ou;function au(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function uu(){return new au}au.prototype=uu.prototype={constructor:au,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,o,i){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(t,e,n,r,o){t=+t,e=+e,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,u=n-t,c=r-e,l=i-t,s=a-e,f=l*l+s*s;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>ou)if(Math.abs(s*u-c*l)>ou&&o){var p=n-i,h=r-a,d=u*u+c*c,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),g=o*Math.tan((nu-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>ou&&(this._+="L"+(t+b*l)+","+(e+b*s)),this._+="A"+o+","+o+",0,0,"+ +(s*p>l*h)+","+(this._x1=t+x*u)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,o,i){t=+t,e=+e,i=!!i;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+a,l=e+u,s=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>ou||Math.abs(this._y1-l)>ou)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%ru+ru),f>iu?this._+="A"+n+","+n+",0,1,"+s+","+(t-a)+","+(e-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>ou&&(this._+="A"+n+","+n+",0,"+ +(f>=nu)+","+s+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const cu=uu;var lu=Array.prototype.slice;function su(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function fu(t){return function(){return t}}function pu(t){this._context=t}function hu(t){return new pu(t)}function du(t){return t[0]}function yu(t){return t[1]}function vu(t,e){var n=fu(!0),r=null,o=hu,i=null;function a(a){var u,c,l,s=(a=su(a)).length,f=!1;for(null==r&&(i=o(l=cu())),u=0;u<=s;++u)!(u<s&&n(c=a[u],u,a))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+t(c,u,a),+e(c,u,a));if(l)return i=null,l+""||null}return t="function"==typeof t?t:void 0===t?du:fu(t),e="function"==typeof e?e:void 0===e?yu:fu(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:fu(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:fu(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:fu(!!t),a):n},a.curve=function(t){return arguments.length?(o=t,null!=r&&(i=o(r)),a):o},a.context=function(t){return arguments.length?(null==t?r=i=null:i=o(r=t),a):r},a}function mu(t,e,n){var r=null,o=fu(!0),i=null,a=hu,u=null;function c(c){var l,s,f,p,h,d=(c=su(c)).length,y=!1,v=new Array(d),m=new Array(d);for(null==i&&(u=a(h=cu())),l=0;l<=d;++l){if(!(l<d&&o(p=c[l],l,c))===y)if(y=!y)s=l,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),f=l-1;f>=s;--f)u.point(v[f],m[f]);u.lineEnd(),u.areaEnd()}y&&(v[l]=+t(p,l,c),m[l]=+e(p,l,c),u.point(r?+r(p,l,c):v[l],n?+n(p,l,c):m[l]))}if(h)return u=null,h+""||null}function l(){return vu().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?du:fu(+t),e="function"==typeof e?e:fu(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?yu:fu(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:fu(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:fu(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:fu(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:fu(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:fu(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:fu(+t),c):n},c.lineX0=c.lineY0=function(){return l().x(t).y(e)},c.lineY1=function(){return l().x(t).y(n)},c.lineX1=function(){return l().x(r).y(e)},c.defined=function(t){return arguments.length?(o="function"==typeof t?t:fu(!!t),c):o},c.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),c):a},c.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),c):i},c}pu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var gu=xu(hu);function bu(t){this._curve=t}function xu(t){function e(e){return new bu(t(e))}return e._curve=t,e}function Ou(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(xu(t)):e()._curve},t}function _u(){return Ou(vu().curve(gu))}function wu(){var t=mu().curve(gu),e=t.curve,n=t.lineX0,r=t.lineX1,o=t.lineY0,i=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Ou(n())},delete t.lineX0,t.lineEndAngle=function(){return Ou(r())},delete t.lineX1,t.lineInnerRadius=function(){return Ou(o())},delete t.lineY0,t.lineOuterRadius=function(){return Ou(i())},delete t.lineY1,t.curve=function(t){return arguments.length?e(xu(t)):e()._curve},t}bu.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};const ju=Math.abs,Pu=Math.atan2,Au=Math.cos,Mu=Math.max,Eu=Math.min,Cu=Math.sin,Su=Math.sqrt,ku=1e-12,Du=Math.PI,Tu=Du/2,Ru=2*Du;function Lu(t){return t>1?0:t<-1?Du:Math.acos(t)}function Iu(t){return t>=1?Tu:t<=-1?-Tu:Math.asin(t)}function Nu(t){return t.innerRadius}function zu(t){return t.outerRadius}function Bu(t){return t.startAngle}function Wu(t){return t.endAngle}function Uu(t){return t&&t.padAngle}function Vu(t,e,n,r,o,i,a,u){var c=n-t,l=r-e,s=a-o,f=u-i,p=f*c-s*l;if(!(p*p<ku))return[t+(p=(s*(e-i)-f*(t-o))/p)*c,e+p*l]}function Fu(t,e,n,r,o,i,a){var u=t-n,c=e-r,l=(a?i:-i)/Su(u*u+c*c),s=l*c,f=-l*u,p=t+s,h=e+f,d=n+s,y=r+f,v=(p+d)/2,m=(h+y)/2,g=d-p,b=y-h,x=g*g+b*b,O=o-i,_=p*y-d*h,w=(b<0?-1:1)*Su(Mu(0,O*O*x-_*_)),j=(_*b-g*w)/x,P=(-_*g-b*w)/x,A=(_*b+g*w)/x,M=(-_*g+b*w)/x,E=j-v,C=P-m,S=A-v,k=M-m;return E*E+C*C>S*S+k*k&&(j=A,P=M),{cx:j,cy:P,x01:-s,y01:-f,x11:j*(o/O-1),y11:P*(o/O-1)}}function Hu(){var t=Nu,e=zu,n=fu(0),r=null,o=Bu,i=Wu,a=Uu,u=null;function c(){var c,l,s=+t.apply(this,arguments),f=+e.apply(this,arguments),p=o.apply(this,arguments)-Tu,h=i.apply(this,arguments)-Tu,d=ju(h-p),y=h>p;if(u||(u=c=cu()),f<s&&(l=f,f=s,s=l),f>ku)if(d>Ru-ku)u.moveTo(f*Au(p),f*Cu(p)),u.arc(0,0,f,p,h,!y),s>ku&&(u.moveTo(s*Au(h),s*Cu(h)),u.arc(0,0,s,h,p,y));else{var v,m,g=p,b=h,x=p,O=h,_=d,w=d,j=a.apply(this,arguments)/2,P=j>ku&&(r?+r.apply(this,arguments):Su(s*s+f*f)),A=Eu(ju(f-s)/2,+n.apply(this,arguments)),M=A,E=A;if(P>ku){var C=Iu(P/s*Cu(j)),S=Iu(P/f*Cu(j));(_-=2*C)>ku?(x+=C*=y?1:-1,O-=C):(_=0,x=O=(p+h)/2),(w-=2*S)>ku?(g+=S*=y?1:-1,b-=S):(w=0,g=b=(p+h)/2)}var k=f*Au(g),D=f*Cu(g),T=s*Au(O),R=s*Cu(O);if(A>ku){var L,I=f*Au(b),N=f*Cu(b),z=s*Au(x),B=s*Cu(x);if(d<Du&&(L=Vu(k,D,z,B,I,N,T,R))){var W=k-L[0],U=D-L[1],V=I-L[0],F=N-L[1],H=1/Cu(Lu((W*V+U*F)/(Su(W*W+U*U)*Su(V*V+F*F)))/2),q=Su(L[0]*L[0]+L[1]*L[1]);M=Eu(A,(s-q)/(H-1)),E=Eu(A,(f-q)/(H+1))}}w>ku?E>ku?(v=Fu(z,B,k,D,f,E,y),m=Fu(I,N,T,R,f,E,y),u.moveTo(v.cx+v.x01,v.cy+v.y01),E<A?u.arc(v.cx,v.cy,E,Pu(v.y01,v.x01),Pu(m.y01,m.x01),!y):(u.arc(v.cx,v.cy,E,Pu(v.y01,v.x01),Pu(v.y11,v.x11),!y),u.arc(0,0,f,Pu(v.cy+v.y11,v.cx+v.x11),Pu(m.cy+m.y11,m.cx+m.x11),!y),u.arc(m.cx,m.cy,E,Pu(m.y11,m.x11),Pu(m.y01,m.x01),!y))):(u.moveTo(k,D),u.arc(0,0,f,g,b,!y)):u.moveTo(k,D),s>ku&&_>ku?M>ku?(v=Fu(T,R,I,N,s,-M,y),m=Fu(k,D,z,B,s,-M,y),u.lineTo(v.cx+v.x01,v.cy+v.y01),M<A?u.arc(v.cx,v.cy,M,Pu(v.y01,v.x01),Pu(m.y01,m.x01),!y):(u.arc(v.cx,v.cy,M,Pu(v.y01,v.x01),Pu(v.y11,v.x11),!y),u.arc(0,0,s,Pu(v.cy+v.y11,v.cx+v.x11),Pu(m.cy+m.y11,m.cx+m.x11),y),u.arc(m.cx,m.cy,M,Pu(m.y11,m.x11),Pu(m.y01,m.x01),!y))):u.arc(0,0,s,O,x,y):u.lineTo(T,R)}else u.moveTo(0,0);if(u.closePath(),c)return u=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-Du/2;return[Au(r)*n,Cu(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:fu(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:fu(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:fu(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:fu(+t),c):r},c.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:fu(+t),c):o},c.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:fu(+t),c):i},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:fu(+t),c):a},c.context=function(t){return arguments.length?(u=null==t?null:t,c):u},c}function qu(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Gu(t){return t}function Ku(){var t=Gu,e=qu,n=null,r=fu(0),o=fu(Ru),i=fu(0);function a(a){var u,c,l,s,f,p=(a=su(a)).length,h=0,d=new Array(p),y=new Array(p),v=+r.apply(this,arguments),m=Math.min(Ru,Math.max(-Ru,o.apply(this,arguments)-v)),g=Math.min(Math.abs(m)/p,i.apply(this,arguments)),b=g*(m<0?-1:1);for(u=0;u<p;++u)(f=y[d[u]=u]=+t(a[u],u,a))>0&&(h+=f);for(null!=e?d.sort((function(t,n){return e(y[t],y[n])})):null!=n&&d.sort((function(t,e){return n(a[t],a[e])})),u=0,l=h?(m-p*b)/h:0;u<p;++u,v=s)c=d[u],s=v+((f=y[c])>0?f*l:0)+b,y[c]={data:a[c],index:u,value:f,startAngle:v,endAngle:s,padAngle:g};return y}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:fu(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:fu(+t),a):r},a.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:fu(+t),a):o},a.padAngle=function(t){return arguments.length?(i="function"==typeof t?t:fu(+t),a):i},a}function $u(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}class Yu{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}class Xu{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,e){if(t=+t,e=+e,0==this._point++)this._x0=t,this._y0=e;else{const n=$u(this._x0,this._y0),r=$u(this._x0,this._y0=(this._y0+e)/2),o=$u(t,this._y0),i=$u(t,e);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...o,...i)}}}function Zu(t){return new Yu(t,!0)}function Qu(t){return new Yu(t,!1)}function Ju(t){return new Xu(t)}function tc(t){return t.source}function ec(t){return t.target}function nc(t){let e=tc,n=ec,r=du,o=yu,i=null,a=null;function u(){let u;const c=lu.call(arguments),l=e.apply(this,c),s=n.apply(this,c);if(null==i&&(a=t(u=cu())),a.lineStart(),c[0]=l,a.point(+r.apply(this,c),+o.apply(this,c)),c[0]=s,a.point(+r.apply(this,c),+o.apply(this,c)),a.lineEnd(),u)return a=null,u+""||null}return u.source=function(t){return arguments.length?(e=t,u):e},u.target=function(t){return arguments.length?(n=t,u):n},u.x=function(t){return arguments.length?(r="function"==typeof t?t:fu(+t),u):r},u.y=function(t){return arguments.length?(o="function"==typeof t?t:fu(+t),u):o},u.context=function(e){return arguments.length?(null==e?i=a=null:a=t(i=e),u):i},u}function rc(){return nc(Zu)}function oc(){return nc(Qu)}function ic(){const t=nc(Ju);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const ac=Su(3),uc={draw(t,e){const n=.59436*Su(e+Eu(e/28,.75)),r=n/2,o=r*ac;t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-o,-r),t.lineTo(o,r),t.moveTo(-o,r),t.lineTo(o,-r)}},cc={draw(t,e){const n=Su(e/Du);t.moveTo(n,0),t.arc(0,0,n,0,Ru)}},lc={draw(t,e){const n=Su(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},sc=Su(1/3),fc=2*sc,pc={draw(t,e){const n=Su(e/fc),r=n*sc;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},hc={draw(t,e){const n=.62625*Su(e);t.moveTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.lineTo(-n,0),t.closePath()}},dc={draw(t,e){const n=.87559*Su(e-Eu(e/7,2));t.moveTo(-n,0),t.lineTo(n,0),t.moveTo(0,n),t.lineTo(0,-n)}},yc={draw(t,e){const n=Su(e),r=-n/2;t.rect(r,r,n,n)}},vc={draw(t,e){const n=.4431*Su(e);t.moveTo(n,n),t.lineTo(n,-n),t.lineTo(-n,-n),t.lineTo(-n,n),t.closePath()}},mc=Cu(Du/10)/Cu(7*Du/10),gc=Cu(Ru/10)*mc,bc=-Au(Ru/10)*mc,xc={draw(t,e){const n=Su(.8908130915292852*e),r=gc*n,o=bc*n;t.moveTo(0,-n),t.lineTo(r,o);for(let e=1;e<5;++e){const i=Ru*e/5,a=Au(i),u=Cu(i);t.lineTo(u*n,-a*n),t.lineTo(a*r-u*o,u*r+a*o)}t.closePath()}},Oc=Su(3),_c={draw(t,e){const n=-Su(e/(3*Oc));t.moveTo(0,2*n),t.lineTo(-Oc*n,-n),t.lineTo(Oc*n,-n),t.closePath()}},wc=Su(3),jc={draw(t,e){const n=.6824*Su(e),r=n/2,o=n*wc/2;t.moveTo(0,-n),t.lineTo(o,r),t.lineTo(-o,r),t.closePath()}},Pc=-.5,Ac=Su(3)/2,Mc=1/Su(12),Ec=3*(Mc/2+1),Cc={draw(t,e){const n=Su(e/Ec),r=n/2,o=n*Mc,i=r,a=n*Mc+n,u=-i,c=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(u,c),t.lineTo(Pc*r-Ac*o,Ac*r+Pc*o),t.lineTo(Pc*i-Ac*a,Ac*i+Pc*a),t.lineTo(Pc*u-Ac*c,Ac*u+Pc*c),t.lineTo(Pc*r+Ac*o,Pc*o-Ac*r),t.lineTo(Pc*i+Ac*a,Pc*a-Ac*i),t.lineTo(Pc*u+Ac*c,Pc*c-Ac*u),t.closePath()}},Sc={draw(t,e){const n=.6189*Su(e-Eu(e/6,1.7));t.moveTo(-n,-n),t.lineTo(n,n),t.moveTo(-n,n),t.lineTo(n,-n)}},kc=[cc,lc,pc,yc,xc,_c,Cc],Dc=[cc,dc,Sc,jc,uc,vc,hc];function Tc(t,e){let n=null;function r(){let r;if(n||(n=r=cu()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return t="function"==typeof t?t:fu(t||cc),e="function"==typeof e?e:fu(void 0===e?64:+e),r.type=function(e){return arguments.length?(t="function"==typeof e?e:fu(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:fu(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function Rc(){}function Lc(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Ic(t){this._context=t}function Nc(t){return new Ic(t)}function zc(t){this._context=t}function Bc(t){return new zc(t)}function Wc(t){this._context=t}function Uc(t){return new Wc(t)}function Vc(t,e){this._basis=new Ic(t),this._beta=e}Ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Lc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Lc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},zc.prototype={areaStart:Rc,areaEnd:Rc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Lc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Lc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Vc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,o=t[0],i=e[0],a=t[n]-o,u=e[n]-i,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(o+r*a),this._beta*e[c]+(1-this._beta)*(i+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Fc=function t(e){function n(t){return 1===e?new Ic(t):new Vc(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Hc(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function qc(t,e){this._context=t,this._k=(1-e)/6}qc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Hc(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Hc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Gc=function t(e){function n(t){return new qc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Kc(t,e){this._context=t,this._k=(1-e)/6}Kc.prototype={areaStart:Rc,areaEnd:Rc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Hc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const $c=function t(e){function n(t){return new Kc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Yc(t,e){this._context=t,this._k=(1-e)/6}Yc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Hc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Xc=function t(e){function n(t){return new Yc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Zc(t,e,n){var r=t._x1,o=t._y1,i=t._x2,a=t._y2;if(t._l01_a>ku){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,o=(o*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>ku){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*l+t._x1*t._l23_2a-e*t._l12_2a)/s,a=(a*l+t._y1*t._l23_2a-n*t._l12_2a)/s}t._context.bezierCurveTo(r,o,i,a,t._x2,t._y2)}function Qc(t,e){this._context=t,this._alpha=e}Qc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Zc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Jc=function t(e){function n(t){return e?new Qc(t,e):new qc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function tl(t,e){this._context=t,this._alpha=e}tl.prototype={areaStart:Rc,areaEnd:Rc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Zc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const el=function t(e){function n(t){return e?new tl(t,e):new Kc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function nl(t,e){this._context=t,this._alpha=e}nl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Zc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const rl=function t(e){function n(t){return e?new nl(t,e):new Yc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ol(t){this._context=t}function il(t){return new ol(t)}function al(t){return t<0?-1:1}function ul(t,e,n){var r=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(r||o<0&&-0),a=(n-t._y1)/(o||r<0&&-0),u=(i*o+a*r)/(r+o);return(al(i)+al(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function cl(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ll(t,e,n){var r=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-r)/3;t._context.bezierCurveTo(r+u,o+u*e,i-u,a-u*n,i,a)}function sl(t){this._context=t}function fl(t){this._context=new pl(t)}function pl(t){this._context=t}function hl(t){return new sl(t)}function dl(t){return new fl(t)}function yl(t){this._context=t}function vl(t){var e,n,r=t.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=o[e]/i[e-1],i[e]-=n,a[e]-=n*a[e-1];for(o[r-1]=a[r-1]/i[r-1],e=r-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[r-1]=(t[r]+o[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function ml(t){return new yl(t)}function gl(t,e){this._context=t,this._t=e}function bl(t){return new gl(t,.5)}function xl(t){return new gl(t,0)}function Ol(t){return new gl(t,1)}function _l(t,e){if((o=t.length)>1)for(var n,r,o,i=1,a=t[e[0]],u=a.length;i<o;++i)for(r=a,a=t[e[i]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function wl(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function jl(t,e){return t[e]}function Pl(t){const e=[];return e.key=t,e}function Al(){var t=fu([]),e=wl,n=_l,r=jl;function o(o){var i,a,u=Array.from(t.apply(this,arguments),Pl),c=u.length,l=-1;for(const t of o)for(i=0,++l;i<c;++i)(u[i][l]=[0,+r(t,u[i].key,l,o)]).data=t;for(i=0,a=su(e(u));i<c;++i)u[a[i]].index=i;return n(u,a),u}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:fu(Array.from(e)),o):t},o.value=function(t){return arguments.length?(r="function"==typeof t?t:fu(+t),o):r},o.order=function(t){return arguments.length?(e=null==t?wl:"function"==typeof t?t:fu(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?_l:t,o):n},o}function Ml(t,e){if((r=t.length)>0){for(var n,r,o,i=0,a=t[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=t[n][i][1]||0;if(o)for(n=0;n<r;++n)t[n][i][1]/=o}_l(t,e)}}function El(t,e){if((u=t.length)>0)for(var n,r,o,i,a,u,c=0,l=t[e[0]].length;c<l;++c)for(i=a=0,n=0;n<u;++n)(o=(r=t[e[n]][c])[1]-r[0])>0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):(r[0]=0,r[1]=o)}function Cl(t,e){if((n=t.length)>0){for(var n,r=0,o=t[e[0]],i=o.length;r<i;++r){for(var a=0,u=0;a<n;++a)u+=t[a][r][1]||0;o[r][1]+=o[r][0]=-u/2}_l(t,e)}}function Sl(t,e){if((o=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var u=0,c=0,l=0;u<o;++u){for(var s=t[e[u]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<u;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}c+=f,l+=p*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=l/c)}n[a-1][1]+=n[a-1][0]=i,_l(t,e)}}function kl(t){var e=t.map(Dl);return wl(t).sort((function(t,n){return e[t]-e[n]}))}function Dl(t){for(var e,n=-1,r=0,o=t.length,i=-1/0;++n<o;)(e=+t[n][1])>i&&(i=e,r=n);return r}function Tl(t){var e=t.map(Rl);return wl(t).sort((function(t,n){return e[t]-e[n]}))}function Rl(t){for(var e,n=0,r=-1,o=t.length;++r<o;)(e=+t[r][1])&&(n+=e);return n}function Ll(t){return Tl(t).reverse()}function Il(t){var e,n,r=t.length,o=t.map(Rl),i=kl(t),a=0,u=0,c=[],l=[];for(e=0;e<r;++e)n=i[e],a<u?(a+=o[n],c.push(n)):(u+=o[n],l.push(n));return l.reverse().concat(c)}function Nl(t){return wl(t).reverse()}ol.prototype={areaStart:Rc,areaEnd:Rc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},sl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ll(this,this._t0,cl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ll(this,cl(this,n=ul(this,t,e)),n);break;default:ll(this,this._t0,n=ul(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(fl.prototype=Object.create(sl.prototype)).point=function(t,e){sl.prototype.point.call(this,e,t)},pl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,o,i){this._context.bezierCurveTo(e,t,r,n,i,o)}},yl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=vl(t),o=vl(e),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},gl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var zl=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},Bl=function(t){return function(e){return t.x(void 0!==e._x1?e._x1:e._x)}},Wl=function(t){return function(e){return t.y(void 0!==e._y1?e._y1:e._y)}},Ul=function(t){return"curve".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t))},Vl=function(t){var e=t.interpolation;if("function"==typeof e)return e;if("string"==typeof e){var n=t.polar,r=t.openCurve,o=(void 0===r?!n:r)?Ul(e):function(t){return"".concat(Ul(t),"Closed")}(e);return s[o]}return hu},Fl=function(t){var e=t.polar,n=t.scale,r=t.horizontal;return e?_u().defined(zl).curve(Vl(t)).angle(function(t){return function(e){return-1*t.x(void 0!==e._x1?e._x1:e._x)+Math.PI/2}}(n)).radius(Wl(n)):vu().defined(zl).curve(Vl(t)).x(r?Wl(n):Bl(n)).y(r?Bl(n):Wl(n))},Hl=["desc","id","tabIndex","origin"];function ql(){return ql=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},ql.apply(this,arguments)}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 Kl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $l=(0,P.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,Hl)),u=function(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){Kl(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}({id:null===(n=et(o,t))||void 0===n?void 0:n.toString(),tabIndex:et(i,t)},a);return r?A().createElement("path",ql({},u,{ref:e}),A().createElement("desc",null,r)):A().createElement("path",ql({},u,{ref:e}))}));function Yl(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 Xl(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)?Xl(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 Xl(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){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 Ql(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jl={startsWith:["data-","aria-"],exactMatch:[]};function ts(t,e){if(null==t)throw new Error(e)}var es=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zl(Object(n),!0).forEach((function(e){Ql(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zl(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 Jl.startsWith.forEach((function(n){new RegExp("\\b(".concat(n,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return Jl.exactMatch.includes(t)}(t))}(Yl(t,1)[0])})).map((function(e){var n=Yl(e,2);return[n[0],et(n[1],t)]})))},ns=function(t,e){return P.cloneElement(t,es(e))};function rs(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 os(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rs(Object(n),!0).forEach((function(e){is(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function is(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var as=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},us=function(t){return function(e){return t.x(void 0!==e._x1?e._x1:e._x)}},cs=function(t){return function(e){return t.y(void 0!==e._y1?e._y1:e._y)}},ls=function(t){return function(e){return t.y(e._y0)}},ss={groupComponent:A().createElement("g",null),pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},fs=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=nt(Object.assign({fill:"black"},t.style),t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(os(os({},ss),t)),n=e.ariaLabel,r=e.role,o=e.shapeRendering,i=e.className,a=e.polar,u=e.origin,c=e.data,l=e.pathComponent,s=e.events,f=e.groupComponent,p=e.clipPath,h=e.id,d=e.style,y=e.desc,v=e.tabIndex,m=es(e),g=a&&u?"translate(".concat(u.x,", ").concat(u.y,")"):void 0,b=e.transform||g,x=d.stroke&&"none"!==d.stroke&&"transparent"!==d.stroke,O=function(t){var e=t.polar,n=t.scale,r=Vl(t);return e?wu().defined(as).curve(r).angle(function(t){return function(e){return-1*t.x(void 0!==e._x1?e._x1:e._x)+Math.PI/2}}(n)).outerRadius(cs(n)).innerRadius(ls(n)):function(t){var e=t.horizontal,n=t.scale,r=Vl(t);return e?mu().defined(as).curve(r).x0(ls(n)).x1(cs(n)).y(us(n)):mu().defined(as).curve(r).x(us(n)).y1(cs(n)).y0(ls(n))}(t)}(e),_=x&&Fl(e),w=d.stroke?"none":d.fill,j=os(os({"aria-label":n,className:i,role:r,shapeRendering:o,transform:b},s),{},{clipPath:p,tabIndex:v}),P=A().cloneElement(l,Object.assign({key:"".concat(h,"-area"),style:Object.assign({},d,{stroke:w}),d:O(c),desc:y,tabIndex:v},j,m)),M=x?A().cloneElement(l,Object.assign({key:"".concat(h,"-area-stroke"),style:Object.assign({},d,{fill:"none"}),d:_(c)},j)):null;return x?A().cloneElement(f,m,[P,M]):P},ps=r(7709),hs=r.n(ps),ds=r(660),ys=r.n(ds);function vs(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 ms(t,e){return ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ms(t,e)}function gs(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 bs(t){return bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bs(t)}var xs=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&&ms(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=bs(r);if(o){var n=bs(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return gs(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?A().cloneElement(n,{key:e}):n}))}},{key:"render",value:function(){return A().createElement("svg",this.props,this.getChildren())}}])&&vs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);xs.displayName="Portal";var Os=A().createContext({});Os.displayName="PortalContext";var _s,ws,js=0,Ps=0,As=0,Ms=0,Es=0,Cs=0,Ss="object"==typeof performance&&performance.now?performance:Date,ks="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ds(){return Es||(ks(Ts),Es=Ss.now()+Cs)}function Ts(){Es=0}function Rs(){this._call=this._time=this._next=null}function Ls(t,e,n){var r=new Rs;return r.restart(t,e,n),r}function Is(){Es=(Ms=Ss.now())+Cs,js=Ps=0;try{!function(){Ds(),++js;for(var t,e=_s;e;)(t=Es-e._time)>=0&&e._call.call(void 0,t),e=e._next;--js}()}finally{js=0,function(){for(var t,e,n=_s,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:_s=e);ws=t,zs(r)}(),Es=0}}function Ns(){var t=Ss.now(),e=t-Ms;e>1e3&&(Cs-=e,Ms=t)}function zs(t){js||(Ps&&(Ps=clearTimeout(Ps)),t-Es>24?(t<1/0&&(Ps=setTimeout(Is,t-Ss.now()-Cs)),As&&(As=clearInterval(As))):(As||(Ms=Ss.now(),As=setInterval(Ns,1e3)),js=1,ks(Is)))}function Bs(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)}}Rs.prototype=Ls.prototype={constructor:Rs,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Ds():+n)+(null==e?0:+e),this._next||ws===this||(ws?ws._next=this:_s=this,ws=this),this._call=t,this._time=n,zs()},stop:function(){this._call&&(this._call=null,this._time=1/0,zs())}};var Ws=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(Ds()-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=Ls(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:Ds(),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()}}])&&Bs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Us=A().createContext({transitionTimer:new Ws,animationTimer:new Ws});Us.displayName="TimerContext";const Vs=Us;function Fs(){return Fs=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},Fs.apply(this,arguments)}function Hs(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 qs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hs(Object(n),!0).forEach((function(e){Gs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Gs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ks(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 $s(t,e){return $s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$s(t,e)}function Ys(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 Xs(t){return Xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xs(t)}var Zs=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&&$s(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=Xs(r);if(o){var n=Xs(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Ys(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 lt(e.props.containerRef)&&e.props.containerRef(t),e.containerRef=t,t},e.handleWheel=function(t){return t.preventDefault()},e.containerId=hs()(t)&&void 0!==t.containerId?t.containerId:ys()("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 qs(qs(qs({},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),d=Object.assign({zIndex:l,position:"absolute",top:0,left:0},p),y=Object.assign({pointerEvents:"all"},p),v=Object.assign({overflow:"visible"},p),m={width:u,height:c,viewBox:e.viewBox,preserveAspectRatio:e.preserveAspectRatio,style:v};return A().createElement(Os.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},A().createElement("div",Fs({style:G()({},n,h),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),A().createElement("svg",Fs({},e,{style:y}),r?A().createElement("title",{id:this.getIdForElement("title")},r):null,o?A().createElement("desc",{id:this.getIdForElement("desc")},o):null,f),A().createElement("div",{style:d},A().cloneElement(i,qs(qs({},m),{},{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:$(this.props.style,["height","width"]),f=es(this.props),p=Object.assign(qs({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)}}])&&Ks(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Zs.displayName="VictoryContainer",Zs.role="container",Zs.defaultProps={className:"VictoryContainer",portalComponent:A().createElement(xs,null),portalZIndex:99,responsive:!0,role:"img"},Zs.contextType=Vs;var Qs=function(t){var e;return A().createElement("defs",null,A().createElement("clipPath",{id:null===(e=t.clipId)||void 0===e?void 0:e.toString()},t.children))},Js=["desc","id","tabIndex","origin"];function tf(){return tf=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},tf.apply(this,arguments)}function ef(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 nf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rf=(0,P.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,Js)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ef(Object(n),!0).forEach((function(e){nf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=et(o,t))||void 0===n?void 0:n.toString(),tabIndex:et(i,t)},a);return r?A().createElement("circle",tf({},u,{ref:e}),A().createElement("desc",null,r)):A().createElement("circle",tf({},u,{ref:e}))})),of=["desc","id","tabIndex","origin"];function af(){return af=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},af.apply(this,arguments)}function uf(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 cf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lf=(0,P.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,of)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uf(Object(n),!0).forEach((function(e){cf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=et(o,t))||void 0===n?void 0:n.toString(),tabIndex:et(i,t)},a);return r?A().createElement("rect",af({},u,{ref:e}),A().createElement("desc",null,r)):A().createElement("rect",af({},u,{ref:e}))}));function sf(t){return function(t){if(Array.isArray(t))return ff(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 ff(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)?ff(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 ff(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 pf(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 hf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pf(Object(n),!0).forEach((function(e){df(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function df(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yf(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 vf(t,e){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vf(t,e)}function mf(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 gf(t){return gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gf(t)}var bf=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&&vf(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=gf(r);if(o){var n=gf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return mf(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=hs()(t)&&void 0!==t.clipId?t.clipId:ys()("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=Z({padding:t.clipPadding}),p=t.radius||it(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=es(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 A().cloneElement(c,hf(hf({},f),{},{tabIndex:l},n),[s].concat(sf(A().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 A().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,d=t.rectComponent,y=t.clipPathComponent,v=Z({padding:t.clipPadding}),m=v.top,g=v.bottom,b=v.left,x=v.right;if(r){var O=t.radius||it(t),_={r:Math.max(O+b+x,O+m+g,0),cx:o.x-b,cy:o.y-m};n=A().cloneElement(h,_)}else{var w={x:s-b,y:p-m,width:Math.max(a+b+x,0),height:Math.max(c+m+g,0)};n=A().cloneElement(d,w)}return A().cloneElement(y,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=ut(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=ut(t,e);return r?Math.min.apply(Math,sf(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=G()({},this.props,{clipHeight:t,clipWidth:e,translateX:n,translateY:r});return this.renderClippedGroup(o,this.clipId)}}],n&&yf(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);function xf(t){}function Of(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _f(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 wf(t,e){return wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wf(t,e)}function jf(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 Pf(t){return Pf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pf(t)}bf.displayName="VictoryClipContainer",bf.role="container",bf.defaultProps={circleComponent:A().createElement(rf,null),rectComponent:A().createElement(lf,null),clipPathComponent:A().createElement(Qs,null),groupComponent:A().createElement("g",null)};var Af=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&&wf(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=Pf(r);if(o){var n=Pf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return jf(this,t)});function a(){var t;Of(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=G()(r,n,$(this.props,["children","groupComponent"])),i=t&&A().cloneElement(t,o);return this.renderPortal(i)}}])&&_f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Af.displayName="VictoryPortal",Af.role="portal",Af.defaultProps={groupComponent:A().createElement("g",null)},Af.contextType=Os;var Mf=["children","desc","id","origin","tabIndex","title"];function Ef(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 Cf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sf=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,Mf),c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ef(Object(n),!0).forEach((function(e){Cf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(e=et(o,t))||void 0===e?void 0:e.toString(),tabIndex:et(i,t)},u);return A().createElement("text",c,a&&A().createElement("title",null,a),r&&A().createElement("desc",null,r),n)},kf=["desc","id","tabIndex","origin"];function Df(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 Tf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rf=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,kf)),i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Df(Object(n),!0).forEach((function(e){Tf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Df(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(e=et(n,t))||void 0===e?void 0:e.toString(),tabIndex:et(r,t)},o);return A().createElement("tspan",i)},Lf=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,Lf(e)].join(" ")}),Lf(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 If(t){var e={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return t?e[t]:e.grayscale}var Nf=r(1594),zf=r.n(Nf);function Bf(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)||Wf(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 Wf(t,e){if(t){if("string"==typeof t)return Uf(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)?Uf(t,e):void 0}}function Uf(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 Vf={"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}},Ff={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Hf={em:1,ex:.5},qf={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Gf=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},Kf=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)},$f=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?Ff.hasOwnProperty(r)?o*Ff[r]:Hf.hasOwnProperty(r)?(e?o*e:o*qf.fontSize)*Hf[r]:o:o||0},Yf=function(t,e){var n=Array.isArray(t)?t[e]:t,r=G()({},n,qf);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:$f(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:$f(String(r.fontSize))})},Xf=function(t,e){if(void 0===t||""===t||null===t)return 0;var n,r=Gf(t).map((function(t,n){var r,o,i=t.toString().length,a=Yf(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 Vf[t]}))||"Helvetica",Vf[o]),s=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;return s+c*Math.max(i-1,0)}));return Math.max.apply(Math,function(t){if(Array.isArray(t))return Uf(t)}(n=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Wf(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.")}())},Zf=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:Gf(t).reduce((function(t,n,r){var o=Yf(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=Xf(t,e);return{width:n?Kf(o,r,n):o,height:1.05*(n?Kf(r,o,n):r)}},Qf=zf()((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})),Jf=function(t){return t?"".concat(t.angle,":").concat(t.fontFamily,":").concat(t.fontSize,":").concat(t.letterSpacing,":").concat(t.lineHeight):"null"},tp=zf()((function(t,e){var n,r,o=Qf();o.isConnected||(null===(n=(r=Qf.cache).clear)||void 0===n||n.call(r),o=Qf());var i=Gf(t),a=0;for(var u of i.entries()){var c=Bf(u,2),l=c[0],s=c[1],f=document.createElementNS("http://www.w3.org/2000/svg","tspan"),p=Yf(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?Kf(h,a,null==e?void 0:e.angle):h,height:null!=e&&e.angle?Kf(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(Jf).join():Jf(e);return"".concat(n,"::").concat(r)})),ep={impl:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;return!r||n?Zf(t,e):tp(t,e)}},np=function(t,e){return ep.impl(t,e)};function rp(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 op(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rp(Object(n),!0).forEach((function(e){ip(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ip(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ap(t){return function(t){if(Array.isArray(t))return up(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 up(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)?up(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 up(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 cp={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},lp=function(t,e){return t.datum?X(t,t.datum)[e]:0},sp=function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return cp.fontSize;if("string"==typeof e){var n=Number(e.replace("px",""));return isNaN(n)?cp.fontSize:n}return cp.fontSize},fp=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(t)?t[e]||t[0]:t},pp=function(t){var e=t.backgroundStyle,n=t.backgroundPadding;return Array.isArray(e)&&!R()(e)||Array.isArray(n)&&!R()(n)},hp=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)}},dp=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)}},yp=function(t,e){return pp(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=fp(e,o-1),u=t.textSize,s=t.fontSize*t.lineHeight,f=Math.ceil(s),p=fp(a,o),h=fp(a,o-1),d=c&&r||0,y=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+d,y:l,fontSize:t.fontSize,dy:y}}));return s.map((function(e,n){var r=hp(t,e.labelSize.width),f=s.slice(0,n+1).reduce((function(t,e){return t+e.dy}),l),p=fp(a,n),h=e.heightWithPadding,d=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,y=c?dp(t,h)-p.top:f,v={key:"tspan-background-".concat(n),height:h,style:fp(i,n),width:e.widthWithPadding,transform:o,x:d-p.left,y};return A().cloneElement(u,G()({},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,ap(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,ap(s.map((function(t){return t.width})))),h=hp(t,p),d=dp(t,f),y={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:d};return A().cloneElement(i,G()({},i.props,y))}(t,e)},vp=function(t,e,n){var r=e.inline,o=fp(t,n);return n&&!r?function(t,e,n){var r=fp(t,e),o=fp(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 pp(n)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l}(t,n,e):r?0===n?o.backgroundPadding.top:void 0:o.backgroundPadding.top},mp={backgroundComponent:A().createElement(lf,null),groupComponent:A().createElement("g",null),direction:"inherit",textComponent:A().createElement(Sf,null),tspanComponent:A().createElement(Rf,null),capHeight:.71,lineHeight:1},gp=function(t){var e=function(t){var e=function(t,e){if(null!=t){if(Array.isArray(t))return t.map((function(t){return et(t,e)}));var n=et(t,e);if(null!=n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(t.text,t),n=function(t,e){if(e.disableInlineStyles){var n=nt(t,e);return{fontSize:sp(n)}}var r=function(t){var n=nt(t?G()({},t,cp):cp,e);return Object.assign({},n,{fontSize:sp(n)})};return Array.isArray(t)&&!R()(t)?t.map((function(t){return r(t)})):r(t)}(t.style,Object.assign({},t,{text:e})),r=function(t,e){if(t)return Array.isArray(t)&&!R()(t)?t.map((function(t){return nt(t,e)})):nt(t,e)}(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),o=function(t){return t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((function(e){return Z({padding:et(e,t)})})):Z({padding:et(t.backgroundPadding,t)})}(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),i=et(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:o,style:n,text:e,id:i})}(op(op({},mp),t));if(null===e.text||void 0===e.text)return null;var n=function(t){var e=et(t.ariaLabel,t),n=fp(t.style),r=function(t){var e=et(t.lineHeight,t);return Array.isArray(e)&&R()(e)?[1]:e}(t),o=t.direction?et(t.direction,t):"inherit",i=t.textAnchor?et(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?et(t.verticalAnchor,t):n.verticalAnchor||"middle",u=t.dx?et(t.dx,t):0,c=function(t,e,n){var r=t.dy?et(t.dy,t):0,o=t.inline?1:t.text.length,i=et(t.capHeight,t),a=e?et(e,t):"middle",u=ap(Array(o).keys()).map((function(e){return fp(t.style,e).fontSize})),c=ap(Array(o).keys()).map((function(t){return fp(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=ap(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,a,r),l=void 0!==t.x?t.x:lp(t,"x"),s=void 0!==t.y?t.y:lp(t,"y"),f=function(t,e,n){var r=t.polar,o=fp(t.style),i=r?Ja(t):0,a=void 0===o.angle?et(t.angle,t):o.angle,u=void 0===a?i:a,c=t.transform||o.transform,l=c&&et(c,t);return l||u?Lf(l,u&&{rotate:[u,e,n]}):void 0}(t,l,s);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:a,dx:u,dy:c,originalDy:et(t.dy,t),transform:f,x:l,y:s})}(e),r=n.text,o=n.style,i=n.capHeight,a=n.backgroundPadding,u=n.lineHeight,c=r.map((function(t,e){var n=fp(o,e),r=$f("".concat(i,"em"),n.fontSize),c=fp(u,e);return{style:n,fontSize:n.fontSize||cp.fontSize,capHeight:r,text:t,textSize:np(t,n),lineHeight:c,backgroundPadding:fp(a,e)}})),l=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,d=t.y,y=t.desc,v=t.id,m=t.tabIndex,g=t.tspanComponent,b=t.textComponent,x=es(t),O=op(op({"aria-label":n,key:"text"},a),{},{direction:u,dx:s,x:h,y:d+f,transform:p,className:o,title:i,desc:et(y,t),tabIndex:et(m,t),id:v},x),_=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:vp(e,t,o),textAnchor:i.textAnchor||l,style:i,children:n};return A().cloneElement(g,a)}));return A().cloneElement(b,O,_)}(n,c);if(e.backgroundStyle){var s=[yp(n,c),l],f=A().cloneElement(e.groupComponent,{},s);return e.renderInPortal?A().createElement(Af,null,f):f}return e.renderInPortal?A().createElement(Af,null,l):l};gp.displayName="VictoryLabel",gp.role="label",gp.defaultStyles=cp;var bp=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],xp="#252525",Op="#969696",_p={width:450,height:300,padding:50,colorScale:bp},wp={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:xp,stroke:"transparent"},jp=Object.assign({textAnchor:"middle"},wp),Pp={area:Object.assign({style:{data:{fill:xp},labels:wp}},_p),axis:Object.assign({style:{axis:{fill:"transparent",stroke:xp,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},jp,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:wp}},_p),bar:Object.assign({style:{data:{fill:xp,padding:8,strokeWidth:0},labels:wp}},_p),boxplot:Object.assign({style:{max:{padding:8,stroke:xp,strokeWidth:1},maxLabels:Object.assign({},wp,{padding:3}),median:{padding:8,stroke:xp,strokeWidth:1},medianLabels:Object.assign({},wp,{padding:3}),min:{padding:8,stroke:xp,strokeWidth:1},minLabels:Object.assign({},wp,{padding:3}),q1:{padding:8,fill:Op},q1Labels:Object.assign({},wp,{padding:3}),q3:{padding:8,fill:Op},q3Labels:Object.assign({},wp,{padding:3})},boxWidth:20},_p),candlestick:Object.assign({style:{data:{stroke:xp,strokeWidth:1},labels:Object.assign({},wp,{padding:5})},candleColors:{positive:"#ffffff",negative:xp}},_p),chart:_p,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:xp,strokeWidth:2},labels:wp}},_p),group:Object.assign({colorScale:bp},_p),histogram:Object.assign({style:{data:{fill:Op,stroke:xp,strokeWidth:2},labels:wp}},_p),legend:{colorScale:bp,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:wp,title:Object.assign({},wp,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:xp,strokeWidth:2},labels:wp}},_p),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},wp,{padding:20})},colorScale:bp,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:xp,stroke:"transparent",strokeWidth:0},labels:wp}},_p),stack:Object.assign({colorScale:bp},_p),tooltip:{style:Object.assign({},wp,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:xp,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({},wp,{padding:5,pointerEvents:"none"}),flyout:{stroke:xp,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},_p)},Ap=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],Mp="#ECEFF1",Ep="#90A4AE",Cp="#455A64",Sp="#212121",kp={width:350,height:350,padding:50},Dp={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:Cp,stroke:"transparent",strokeWidth:0},Tp=Object.assign({textAnchor:"middle"},Dp),Rp="round",Lp="round",Ip={grayscale:Pp,material:{area:Object.assign({style:{data:{fill:Sp},labels:Dp}},kp),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Ep,strokeWidth:2,strokeLinecap:Rp,strokeLinejoin:Lp},axisLabel:Object.assign({},Tp,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:Mp,strokeDasharray:"10, 5",strokeLinecap:Rp,strokeLinejoin:Lp,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Ep,strokeWidth:1,strokeLinecap:Rp,strokeLinejoin:Lp},tickLabels:Object.assign({},Dp,{fill:Cp})}},kp),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:Cp,padding:8,strokeWidth:0},labels:Dp}},kp),boxplot:Object.assign({style:{max:{padding:8,stroke:Cp,strokeWidth:1},maxLabels:Object.assign({},Dp,{padding:3}),median:{padding:8,stroke:Cp,strokeWidth:1},medianLabels:Object.assign({},Dp,{padding:3}),min:{padding:8,stroke:Cp,strokeWidth:1},minLabels:Object.assign({},Dp,{padding:3}),q1:{padding:8,fill:Cp},q1Labels:Object.assign({},Dp,{padding:3}),q3:{padding:8,fill:Cp},q3Labels:Object.assign({},Dp,{padding:3})},boxWidth:20},kp),candlestick:Object.assign({style:{data:{stroke:Cp},labels:Object.assign({},Dp,{padding:5})},candleColors:{positive:"#ffffff",negative:Cp}},kp),chart:kp,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Cp,strokeWidth:2},labels:Dp}},kp),group:Object.assign({colorScale:Ap},kp),histogram:Object.assign({style:{data:{fill:Cp,stroke:Sp,strokeWidth:2},labels:Dp}},kp),legend:{colorScale:Ap,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Dp,title:Object.assign({},Dp,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Cp,strokeWidth:2},labels:Dp}},kp),pie:Object.assign({colorScale:Ap,style:{data:{padding:8,stroke:Mp,strokeWidth:1},labels:Object.assign({},Dp,{padding:20})}},kp),scatter:Object.assign({style:{data:{fill:Cp,opacity:1,stroke:"transparent",strokeWidth:0},labels:Dp}},kp),stack:Object.assign({colorScale:Ap},kp),tooltip:{style:Object.assign({},Dp,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Sp,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({},Dp,{padding:5,pointerEvents:"none"}),flyout:{stroke:Sp,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},kp)}};function Np(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function zp(){return{onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(t){return{_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0}}}}}function Bp(){return{onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}}}var Wp=r(7491),Up=r.n(Wp);const Vp=t=>+t;function Fp(t){return t*t}function Hp(t){return t*(2-t)}function qp(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Gp(t){return t*t*t}function Kp(t){return--t*t*t+1}function $p(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Yp=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),Xp=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Zp=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Qp=Math.PI,Jp=Qp/2;function th(t){return 1==+t?1:1-Math.cos(t*Jp)}function eh(t){return Math.sin(t*Jp)}function nh(t){return(1-Math.cos(Qp*t))/2}function rh(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function oh(t){return rh(1-+t)}function ih(t){return 1-rh(t)}function ah(t){return((t*=2)<=1?rh(1-t):2-rh(t-1))/2}function uh(t){return 1-Math.sqrt(1-t*t)}function ch(t){return Math.sqrt(1- --t*t)}function lh(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var sh=7.5625;function fh(t){return 1-ph(1-t)}function ph(t){return(t=+t)<.36363636363636365?sh*t*t:t<.7272727272727273?sh*(t-=.5454545454545454)*t+.75:t<.9090909090909091?sh*(t-=.8181818181818182)*t+.9375:sh*(t-=.9545454545454546)*t+.984375}function hh(t){return((t*=2)<=1?1-ph(1-t):ph(t-1)+1)/2}var dh=1.70158,yh=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(dh),vh=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(dh),mh=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(dh),gh=2*Math.PI,bh=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=gh);function o(t){return e*rh(- --t)*Math.sin((r-t)/n)}return o.amplitude=function(e){return t(e,n*gh)},o.period=function(n){return t(e,n)},o}(1,.3),xh=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=gh);function o(t){return 1-e*rh(t=+t)*Math.sin((t+r)/n)}return o.amplitude=function(e){return t(e,n*gh)},o.period=function(n){return t(e,n)},o}(1,.3),Oh=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=gh);function o(t){return((t=2*t-1)<0?e*rh(-t)*Math.sin((r-t)/n):2-e*rh(t)*Math.sin((r+t)/n))/2}return o.amplitude=function(e){return t(e,n*gh)},o.period=function(n){return t(e,n)},o}(1,.3),_h=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||W()(t)}return!1},wh=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(r){return r<n?t:e}},jh=function(t,e){return function(n){return n>=1?e:function(){var r="function"==typeof t?t.apply(this,arguments):t,o="function"==typeof e?e.apply(this,arguments):e;return $e(r,o)(n)}}},Ph=function(t,e){var n,r=function(t,e){return t!==e&&_h(t)&&_h(e)?"function"==typeof t||"function"==typeof e?jh(t,e):"object"==typeof t&&W()(t)||"object"==typeof e&&W()(e)?Ph(t,e):$e(t,e):wh(t,e)},o=function(t){return Array.isArray(t)?I()(t,"key"):t},i={},a={},u=t,c=e;for(n in null!==u&&"object"==typeof u||(u={}),null!==c&&"object"==typeof c||(c={}),c)n in u?i[n]=r(o(u[n]),o(c[n])):a[n]=c[n];return function(t){for(n in i)a[n]=i[n](t);return a}};function Ah(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 Mh=function(t){var e,n,r,o,i=t.duration,a=void 0===i?1e3:i,u=t.easing,c=void 0===u?"quadInOut":u,l=t.delay,s=void 0===l?0:l,f=t.data,p=t.children,h=t.onEnd,d=(r=A().useState({data:Array.isArray(f)?f[0]:f,animationInfo:{progress:0,animating:!1}}),o=2,function(t){if(Array.isArray(t))return t}(r)||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)||function(t,e){if(t){if("string"==typeof t)return Ah(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)?Ah(t,e):void 0}}(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.")}()),y=d[0],v=d[1],g=A().useContext(Vs).animationTimer,b=A().useRef(Array.isArray(f)?f.slice(1):[]),x=A().useRef(null),O=A().useRef(void 0),_=m[(e=c,n=e.charAt(0).toUpperCase()+e.slice(1),"ease".concat(n))];A().useEffect((function(){return b.current.length&&w(),function(){O.current?g.unsubscribe(O.current):g.stop()}}),[]),A().useEffect((function(){x.current&&y.animationInfo&&y.animationInfo.progress<1?v({data:x.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(g.unsubscribe(O.current),b.current=Array.isArray(f)?f:[f],w())}),[f]);var w=function(){if(b.current.length){var t=b.current[0];x.current=function(t,e){return t!==e&&_h(t)&&_h(e)?"function"==typeof t||"function"==typeof e?jh(t,e):W()(t)||W()(e)?Ph(t,e):"string"==typeof t||"string"==typeof e?function(t,e){var n=function(t){return"string"==typeof t?t.replace(/,/g,""):t};return $e(n(t),n(e))}(t,e):$e(t,e):wh(t,e)}(y.data,t),s?setTimeout((function(){O.current=g.subscribe(j,a)}),s):O.current=g.subscribe(j,a)}else h&&h()},j=function(t){if(x.current){var e=a?t/a:1;if(e>=1)return v({data:x.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),O.current&&g.unsubscribe(O.current),b.current.shift(),void w();v({data:x.current(_(e)),animationInfo:{progress:e,animating:e<1}})}};return p(y.data,y.animationInfo)},Eh=r(5346),Ch=r.n(Eh);function Sh(t,e){return(t.key||e).toString()}function kh(t){return t.reduce((function(t,e,n){return t[Sh(e,n)]=e,t}),{})}function Dh(t,e){var n=!1,r=Object.keys(t).reduce((function(t,r){return r in e||(n=!0,t[r]=!0),t}),{});return n&&r}function Th(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function Rh(t,e){var n=!1,r=!1,o=function(t,e){return t.map((function(i,a){return i&&i.props&&i.props.children&&e[a]?o(A().Children.toArray(t[a].props.children),A().Children.toArray(e[a].props.children)):function(t,e){if(!e||t.type!==e.type)return{};var o,i,a,u,c=(o=Th(t),i=Th(e),a=o&&kh(o),u=i&&kh(i),{entering:a&&Dh(u,a),exiting:u&&Dh(a,u)}||{}),l=c.entering,s=c.exiting;return n=n||!!s,r=r||!!l,{entering:l||!1,exiting:s||!1}}(i,e[a])}))},i=o(A().Children.toArray(t),A().Children.toArray(e));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:i,nodesShouldEnter:!1}}function Lh(t,e,n){var r=e&&e.nodesWillExit,o=e&&e.nodesWillEnter,i=e&&e.nodesShouldEnter,a=e&&e.nodesShouldLoad,u=e&&e.nodesDoneLoad,c=e&&e.childrenTransitions||[],l={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},s=function(t,e,r){return a?function(t,e,r){var o=Object.assign({},t,{onEnd:function(){n({nodesShouldLoad:!1,nodesDoneLoad:!0})}});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:t,data:e};var i=t.onLoad&&t.onLoad.after?t.onLoad.after:Ch();return{animate:o,data:e.map((function(t,n){return Object.assign({},t,i(t,n,e))}))}}(r,e):function(t,e,r,o){var i=Object.assign({},t,{onEnd:function(){n({nodesDoneLoad:!0})}});if(i&&i.onLoad&&!i.onLoad.duration)return{animate:i,data:r};var a=i.onLoad&&i.onLoad.before?i.onLoad.before:Ch();return{animate:i,data:r.map((function(t,e){return Object.assign({},t,a(t,e,r))})),clipWidth:0}}(r,0,e)},f=function(t,e,r,o){return function(t,e,r,o,i){var a=t&&t.onExit,u=Object.assign({},t,a),c=r;if(o){t.onEnd=function(){n({nodesWillExit:!1})};var l=t.onExit&&t.onExit.before?t.onExit.before:Ch();c=r.map((function(t,e){var n=(t.key||e).toString();return o[n]?Object.assign({},t,l(t,e,r)):t}))}return{animate:u,data:c}}(o,0,r,t)},p=function(t,e,r,o){return i?function(t,e,r,o){var i=t&&t.onEnter,a=Object.assign({},t,i),u=e;if(r){a.onEnd=function(){n({nodesWillEnter:!1})};var c=a.onEnter&&a.onEnter.after?a.onEnter.after:Ch();u=e.map((function(t,n){var o=Sh(t,n);return r[o]?Object.assign({},t,c(t,n,e)):t}))}return{animate:a,data:u}}(o,r,t):function(t,e,r,o,i){var a=t,u=r;if(o){a=Object.assign({},t,{onEnd:function(){n({nodesShouldEnter:!0})}});var c=t.onEnter&&t.onEnter.before?t.onEnter.before:Ch();u=r.map((function(t,e){var n=(t.key||e).toString();return o[n]?Object.assign({},t,c(t,e,r)):t}))}return{animate:a,data:u}}(o,0,r,t)},h=function(t,e){var n=t.props.animate;if(!t.type)return{};var r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){var o=n[e]&&n[e].duration;return void 0!==o?o:r[e]&&r[e].duration}return{}};return function(n,a){var d=Th(n)||[],y=G()({},t.animate,n.props.animate),v=n.props.polar&&n.type.defaultPolarTransitions||n.type.defaultTransitions;y.onExit=G()({},y.onExit,v&&v.onExit),y.onEnter=G()({},y.onEnter,v&&v.onEnter),y.onLoad=G()({},y.onLoad,v&&v.onLoad);var m=c[a]||c[0];if(!u){var g={duration:void 0!==l.load?l.load:h(n,"onLoad")};return s(0,d,Object.assign({},y,g))}if(r){var b=m&&m.exiting,x=void 0!==l.exit?l.exit:h(n,"onExit"),O=b?{duration:x}:{delay:x};return f(b,0,d,Object.assign({},y,O))}if(o){var _=m&&m.entering,w=void 0!==l.enter?l.enter:h(n,"onEnter"),j=void 0!==l.move?l.move:n.props.animate&&n.props.animate.duration,P={duration:i&&_?w:j};return p(_,0,d,Object.assign({},y,P))}return!e&&y&&y.onExit?function(t,e){var n=t.onEnter&&t.onEnter.after?t.onEnter.after:Ch();return{data:e.map((function(t,r){return Object.assign({},t,n(t,r,e))}))}}(y,d):{animate:y,data:d}}}function Ih(){return Ih=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},Ih.apply(this,arguments)}function Nh(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 zh(t,e){return zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zh(t,e)}function Bh(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 Wh(t){return Wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wh(t)}var Uh=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&&zh(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=Wh(r);if(o){var n=Wh(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Bh(this,t)});function a(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,t,e)).continuous=void 0,n.timer=void 0,n.transitionProps=void 0,n.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var r=n.props.children,o=r.props.polar;return n.continuous=!o&&r.type&&!0===r.type.continuous,n.timer=n.context.transitionTimer,n}return e=a,n=[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(t){var e=this;return Up()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(function(){return e.timer.resumeAnimation()}))),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(t,e){var n=t.animate;if(!n)return{};if(n.parentState)return{oldProps:n.parentState.nodesWillExit?t:null,nextProps:e};var r=Rh(A().Children.toArray(t.children),A().Children.toArray(e.children)),o=r.nodesWillExit;return{nodesWillExit:o,nodesWillEnter:r.nodesWillEnter,childrenTransitions:r.childrenTransitions,nodesShouldEnter:r.nodesShouldEnter,oldProps:o?t:null,nextProps:e}}},{key:"getDomainFromChildren",value:function(t,e){var n=function(t){return t.reduce((function(t,r){if(r.type&&lt(r.type.getDomain)){var o=r.props&&r.type.getDomain(r.props,e);return o?t.concat(o):t}return r.props&&r.props.children?t.concat(n(A().Children.toArray(r.props.children))):t}),[])},r=A().Children.toArray(t.children)[0],o=r.props||{},i=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[e];if(!o.children&&i)return i;var a=n([r]);return 0===a.length?[0,1]:[Et(a),Mt(a)]}},{key:"pickProps",value:function(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}},{key:"pickDomainProps",value:function(t){var e,n=null===(e=t.animate)||void 0===e?void 0:e.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}},{key:"getClipWidth",value:function(t,e){var n=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==n?n:function(){var n=ut(e.props,"x");return n?Math.abs(n[1]-n[0]):t.width}()}},{key:"render",value:function(){var t,e=this,n=this.pickProps(),r=null!==(t=this.props.animate)&&void 0!==t&&t.getTransitions?this.props.animate.getTransitions:Lh(n,this.state,(function(t){return e.setState(t)})),o=A().Children.toArray(n.children)[0],i=r(o);this.transitionProps=i;var a={x:this.getDomainFromChildren(this.pickDomainProps(n),"x"),y:this.getDomainFromChildren(n,"y")},u=this.getClipWidth(n,o),c=G()({domain:a,clipWidth:u},i,o.props),l=(n.animationWhitelist||[]).concat(["clipWidth"]),s=l.length?H()(c,l):c;return A().createElement(Mh,Ih({},c.animate,{data:s}),(function(t){if(o.props.groupComponent){var n=e.continuous?A().cloneElement(o.props.groupComponent,{clipWidth:t.clipWidth||0}):o.props.groupComponent;return A().cloneElement(o,G()({animate:null,animating:!0,groupComponent:n},t,c))}return A().cloneElement(o,G()({animate:null,animating:!0},t,c))}))}}],n&&Nh(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Uh.displayName="VictoryTransition",Uh.contextType=Vs;var Vh=r(4912),Fh=r.n(Vh);function Hh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qh(t){return function(t){if(Array.isArray(t))return Gh(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 Gh(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)?Gh(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 Gh(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 Kh=/^onGlobal(.*)$/;function $h(t,e,n,r){var o,i=this,a=function(t){var r,o=(r=t.reduce((function(t,n){return void 0!==n.target?(Array.isArray(n.target)?n.target.includes(e):"".concat(n.target)==="".concat(e))?t.concat(n):t:t.concat(n)}),[]),void 0!==n&&"parent"!==e?r.filter((function(t){var e=t.eventKey,r=function(t){return!t||"".concat(t)==="".concat(n)};return Array.isArray(e)?e.some((function(t){return r(t)})):r(e)})):r);return Array.isArray(o)&&o.reduce((function(t,e){return e?Object.assign(t,e.eventHandlers):t}),{})},u=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,qh(t.events)):i.componentEvents:t.events,c=u&&lt(r)?r(a(u),e):void 0;if(!t.sharedEvents)return c;var l=t.sharedEvents.getEvents,s=t.sharedEvents.events&&l(a(t.sharedEvents.events),e);return Object.assign({},s,c)}function Yh(t,e,n,r){var o=this;if(R()(t))return{};var i=r||this.baseProps,a=function(t,e){var n=t.childName,r=t.target,a=t.key,u="props"===e?i:o.state||{},c=null!=n&&u[n]?u[n]:u;return"parent"===a?c.parent:c[a]&&c[a][r]},u=function(t,r){var u="parent"===e?t.childName:t.childName||n,c=t.target||e,l=function(e,n){var r=o.state||{};if(!lt(t.mutation))return r;var u=a({childName:n,key:e,target:c},"props"),l=a({childName:n,key:e,target:c},"state"),s=t.mutation(Object.assign({},u,l),i),f=r[n]||{},p=function(t){return s?function(t){return"parent"===c?Object.assign(t,Hh({},e,Object.assign(t[e]||{},s))):Object.assign(t,Hh({},e,Object.assign(t[e]||{},Hh({},c,s))))}(t):function(t){return t[e]&&t[e][c]&&delete t[e][c],t[e]&&!Object.keys(t[e]).length&&delete t[e],t}(t)};return null!=n?Object.assign(r,Hh({},n,p(f))):p(r)},s=function(e){var n=function(e){return"parent"===c?"parent":"all"===t.eventKey?i[e]?Object.keys(i[e]).filter((function(t){return"parent"!==t})):Object.keys(i).filter((function(t){return"parent"!==t})):void 0===t.eventKey&&"parent"===r?i[e]?Object.keys(i[e]):Object.keys(i):void 0!==t.eventKey?t.eventKey:r}(e);return Array.isArray(n)?n.reduce((function(t,n){return Object.assign(t,l(n,e))}),{}):l(n,e)},f="all"===u?Object.keys(i).filter((function(t){return"parent"!==t})):u;return Array.isArray(f)?f.reduce((function(t,e){return Object.assign(t,s(e))}),{}):s(f)},c=function(e,n,r,i){var a=t[i](e,n,r,o);if(!R()(a)){var c=function(t){var e=function(t){return lt(t.callback)&&t.callback},n=(Array.isArray(t)?t.map((function(t){return e(t)})):[e(t)]).filter((function(t){return!1!==t}));return n.length?function(){return n.forEach((function(t){return t()}))}:void 0}(a);o.setState(function(t,e){return Array.isArray(t)?t.reduce((function(t,n){return Object.assign({},t,u(n,e))}),{}):u(t,e)}(a,r),c)}};return Object.keys(t).reduce((function(t,e){return t[e]=c,t}),{})}function Xh(t,e,n){return t?Object.keys(t).reduce((function(r,o){return r[o]=function(r){return t[o](r,n,e,o)},r}),{}):{}}function Zh(t,e,n){var r=this.state||{};return n?r[n]&&r[n][t]&&r[n][t][e]:"parent"===t?r[t]&&r[t][e]||r[t]:r[t]&&r[t][e]}function Qh(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return r.reduce((function(r,o){var i=n[o],a=Jh(t,e[o],n[o],o);return r[o]=a||i,Fh()(r,(function(t){return!R()(t)}))}),{})}function Jh(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=Object.keys(e);return o.reduce((function(o,i){var a=n[i]||{},u=e[i]||{};if("parent"===i){var c=td(t,u,a,{eventKey:i,target:"parent"});o[i]=void 0!==c?Object.assign({},a,c):a}else{var l=V()(Object.keys(u).concat(Object.keys(a)));o[i]=l.reduce((function(e,n){var o={eventKey:i,target:n,childName:r},c=td(t,u[n],a[n],o);return e[n]=void 0!==c?Object.assign({},a[n],c):a[n],Fh()(e,(function(t){return!R()(t)}))}),{})}return Fh()(o,(function(t){return!R()(t)}))}),{})}function td(t,e,n,r){var o=function(t,e){return"string"==typeof t[e]?"all"===t[e]||t[e]===r[e]:!!Array.isArray(t[e])&&t[e].map((function(t){return"".concat(t)})).includes(r[e])},i=Array.isArray(t)?t:[t];r.childName&&(i=t.filter((function(t){return o(t,"childName")})));var a=i.filter((function(t){return o(t,"target")}));if(!R()(a)){var u=a.filter((function(t){return o(t,"eventKey")}));if(!R()(u))return u.reduce((function(t,r){var o=(r&&lt(r.mutation)?r.mutation:function(){})(Object.assign({},e,n));return Object.assign({},t,o)}),{})}}function ed(t,e){var n=Array.isArray(e)&&e.reduce((function(e,n){var r=t[n],o=r&&r.type&&r.type.defaultEvents,i=lt(o)?o(r.props):o;return Array.isArray(i)?e.concat.apply(e,qh(i)):e}),[]);return n&&n.length?n:void 0}function nd(t){var e=t.match(Kh);return e&&e[1]&&e[1].toLowerCase()}var rd=function(t){return Fh()(t,(function(t,e){return Kh.test(e)}))},od=function(t){return E()(t,(function(t,e){return Kh.test(e)}))},id=function(t){return Object.assign(t,{nativeEvent:t})};function ad(t){return function(t){if(Array.isArray(t))return ud(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 ud(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)?ud(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 ud(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 cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ld(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 sd(t,e,n){return e&&ld(t.prototype,e),n&&ld(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function fd(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&&pd(t,e)}function pd(t,e){return pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pd(t,e)}function hd(t){var e=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}}();return function(){var n,r=vd(t);if(e){var o=vd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dd(this,n)}}function dd(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 yd(t)}function yd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vd(t){return vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vd(t)}var md=function(t){return!ct(t._x)&&!ct(t._y)},gd=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function bd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(n){fd(o,n);var r=hd(o);function o(t){var e;return cd(this,o),(e=r.call(this,t)).state={},e.getEventState=Zh.bind(yd(e)),e.getScopedEvents=Yh.bind(yd(e)),e.getEvents=function(t,n,r){return $h.call(yd(e),t,n,r,e.getScopedEvents)},e.externalMutations=e.getExternalMutations(e.props),e.calculatedState=e.getStateChanges(e.props),e.globalEvents={},e.prevGlobalEventKeys=[],e.boundGlobalEvents={},e.cacheValues(e.getCalculatedValues(t)),e}return sd(o,[{key:"shouldComponentUpdate",value:function(t){var e=this.getExternalMutations(t),n=this.props.animating||this.props.animate,r=!Up()(e,this.externalMutations);if(n||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=e,this.applyExternalMutations(t,e),!0;var o=this.getStateChanges(t);return Up()(this.calculatedState,o)?!Up()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}},{key:"componentDidMount",value:function(){var t=this,e=Object.keys(this.globalEvents);e.forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentDidUpdate",value:function(t){var e=this,n=this.getStateChanges(t);this.calculatedState=n;var r=Object.keys(this.globalEvents);jt(this.prevGlobalEventKeys,r).forEach((function(t){return e.removeGlobalListener(t)})),jt(r,this.prevGlobalEventKeys).forEach((function(t){return e.addGlobalListener(t)})),this.prevGlobalEventKeys=r}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(e){return t.removeGlobalListener(e)}))}},{key:"addGlobalListener",value:function(t){var e=this,n=function(n){var r=e.globalEvents[t];return r&&r(id(n))};this.boundGlobalEvents[t]=n,window.addEventListener(nd(t),n)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(nd(t),this.boundGlobalEvents[t])}},{key:"getStateChanges",value:function(t){var n=this;if(!this.hasEvents)return{};var r=function(t,e){var r=G()({},n.getEventState(t,e),n.getSharedEventState(t,e));return R()(r)?void 0:r};return(e.components||gd).map((function(e){if(t.standalone||"parent"!==e.name)return void 0!==e.index?r(e.index,e.name):n.dataKeys.map((function(t){return r(t,e.name)})).filter(Boolean)})).filter(Boolean)}},{key:"applyExternalMutations",value:function(t,e){if(!R()(e)){var n=t.externalEventMutations.reduce((function(t,e){return lt(e.callback)?t.concat(e.callback):t}),[]),r=n.length?function(){n.forEach((function(t){return t()}))}:void 0;this.setState(e,r)}}},{key:"getCalculatedValues",value:function(e){var n=e.sharedEvents,r=ed(e,t.expectedComponents),o=n&&lt(n.getEventState)?n.getEventState:function(){},i=this.getBaseProps(e,o);return{componentEvents:r,getSharedEventState:o,baseProps:i,dataKeys:Object.keys(i).filter((function(t){return"parent"!==t})),hasEvents:e.events||e.sharedEvents||r,events:this.getAllEvents(e)}}},{key:"getExternalMutations",value:function(t){var e=t.sharedEvents,n=t.externalEventMutations;return R()(n)||e?void 0:Jh(n,this.baseProps,this.state)}},{key:"cacheValues",value:function(t){var e=this;Object.keys(t).forEach((function(n){e[n]=t[n]}))}},{key:"getBaseProps",value:function(e,n){var r=(n||this.getSharedEventState.bind(this))("parent","parent"),o=this.getEventState("parent","parent"),i=G()({},o,r),a=i.parentControlledProps,u=a?H()(i,a):{},c=G()({},u,e);return"function"==typeof t.getBaseProps?t.getBaseProps(c):{}}},{key:"getAllEvents",value:function(t){var e;return Array.isArray(this.componentEvents)?Array.isArray(t.events)?(e=this.componentEvents).concat.apply(e,ad(t.events)):this.componentEvents:t.events}},{key:"getComponentProps",value:function(e,n,r){var o=this.props.name||t.role,i=this.dataKeys&&this.dataKeys[r]||r,a="".concat(o,"-").concat(n,"-").concat(i),u=this.baseProps[i]&&this.baseProps[i][n]||this.baseProps[i];if(u||this.hasEvents){var c=e&&"object"==typeof e&&"props"in e?e.props:void 0;if(this.hasEvents){var l=this.getEvents(this.props,n,i),s=G()({index:r,key:a},this.getEventState(i,n),this.getSharedEventState(i,n),c,u,{id:a}),f=G()({},Xh(l,i,s),s.events);return Object.assign({},s,{events:f})}return G()({index:r,key:a},c,u,{id:a})}}},{key:"renderContainer",value:function(t,e){var n=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};return n.events&&(this.globalEvents=rd(n.events),n.events=od(n.events)),A().cloneElement(t,n,e)}},{key:"animateComponent",value:function(t,e){var n,r="object"==typeof t.animate&&(null===(n=t.animate)||void 0===n?void 0:n.animationWhitelist)||e,o=this.constructor;return A().createElement(Uh,{animate:t.animate,animationWhitelist:r},A().createElement(o,t))}},{key:"renderContinuousData",value:function(t){var e=this,n=t.dataComponent,r=t.labelComponent,o=t.groupComponent,i=this.dataKeys.filter((function(t){return"all"!==t})),a=i.reduce((function(t,n){var o=t,i=e.getComponentProps(r,"labels",n);return i&&void 0!==i.text&&null!==i.text&&(o=o.concat(A().cloneElement(r,i))),o}),[]),u=this.getComponentProps(n,"data","all"),c=[A().cloneElement(n,u)].concat(ad(a));return this.renderContainer(o,c)}},{key:"renderData",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:md,r=t.dataComponent,o=t.labelComponent,i=t.groupComponent,a=this.dataKeys.reduce((function(t,o,i){var a=e.getComponentProps(r,"data",i);return n(a.datum)&&t.push(A().cloneElement(r,a)),t}),[]),u=this.dataKeys.map((function(t,n){var r=e.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return A().cloneElement(o,r)})).filter(Boolean),c=[].concat(ad(a),ad(u));return this.renderContainer(i,c)}}]),o}(t);return n}function xd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Od(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 _d(t,e){return _d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_d(t,e)}function wd(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 jd(t){return jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jd(t)}var Pd={width:450,height:300,padding:50,interpolation:"linear"},Ad=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&&_d(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=jd(r);if(o){var n=jd(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return wd(this,t)});function a(){return xd(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,n=ft(this.props,Pd,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderContinuousData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&Od(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Ad.animationWhitelist=["data","domain","height","padding","style","width"],Ad.defaultProps={containerComponent:A().createElement(Zs,null),dataComponent:A().createElement(fs,null),groupComponent:A().createElement(bf,null),labelComponent:A().createElement(gp,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},Ad.displayName="VictoryArea",Ad.role="area",Ad.continuous=!0,Ad.defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}},Ad.defaultPolarTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(t){return{_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0}}}},Ad.getDomain=Ha,Ad.getData=Pa,Ad.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"area"),r=Object.assign({},n,function(t){var e=t.polar,n=J(t,"area"),r=tt(t.style,n),o={x:ut(t,"x"),y:ut(t,"y")},i={x:Ha(t,"x"),y:Ha(t,"y")},a={x:Zi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Zi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},u=e?t.origin||at(t):void 0,c=function(t,e){var n=Pa(t);n.length<2&&(n=[]);var r=function(t){var n="log"===na(e[t])?1/Number.MAX_SAFE_INTEGER:0,r=e[t].domain(),o=Et(r),i=Mt(r),a=n;return o<0&&i<=0?a=i:o>=0&&i>0&&(a=o),Ot(r)?new Date(a):a};return n.map((function(t){var e=void 0!==t._y1?t._y1:t._y,n=void 0!==t._y0?t._y0:r("y"),o=void 0!==t._x1?t._x1:t._x,i=void 0!==t._x0?t._x0:r("x");return Object.assign({},t,{_y0:n,_y1:e,_x0:i,_x1:o})}))}(t,a);return{style:r,data:c,scale:a,domain:i,origin:u}}(n)),o=r.data,i=r.domain,a=r.events,u=r.groupComponent,c=r.height,l=r.horizontal,s=r.interpolation,f=r.origin,p=r.padding,h=r.polar,d=r.scale,y=r.sharedEvents,v=r.standalone,m=r.style,g=r.theme,b=r.width,x=r.labels,O=r.name,_=r.disableInlineStyles,w={parent:{style:m.parent,width:b,height:c,scale:d,data:o,domain:i,standalone:v,theme:g,polar:h,origin:f,padding:p,name:O,horizontal:l},all:{data:{horizontal:l,polar:h,origin:f,scale:d,data:o,interpolation:s,groupComponent:u,style:_?{}:m.data,disableInlineStyles:_}}};return o.reduce((function(t,e,n){return(null!=Xa(r,e,n)||x&&(a||y))&&(t[ct(e.eventKey)?n:e.eventKey]={labels:eu(r,n)}),t}),w)}(t,Pd)},Ad.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var Md=bd(Ad,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]});function Ed(t){return function(t){if(Array.isArray(t))return Cd(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 Cd(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)?Cd(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 Cd(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 Sd(t){return t}function kd(t){return t.dependentAxis?"y":"x"}function Dd(t,e){var n=e||Sd,r=function(t){return t.reduce((function(t,e){return e.type&&"axis"===e.type.role&&n(e)?t.concat(e):e.props&&e.props.children?t.concat(r(A().Children.toArray(e.props.children))):t}),[])};return r(t)}function Td(t,e){return Dd(t,(function(t){return t.type.getAxis(t.props)===e}))[0]}function Rd(t,e){var n=function(t){return t.reduce((function(t,r){return r.type&&"axis"===r.type.role&&function(t){return"dependent"===e?t.props.dependentAxis:!t.props.dependentAxis}(r)||r.props&&r.props.children&&n(A().Children.toArray(r.props.children)).length>0?t.concat(r):t}),[])};return n(t)}function Ld(t){var e=function(t){var e=Math.min.apply(Math,Ed(t)),n=Math.max.apply(Math,Ed(t));return n<0?n:Math.max(0,e)};return{x:Ot(t.x)?new Date(Math.min.apply(Math,Ed(t.x))):e(t.x),y:Ot(t.y)?new Date(Math.min.apply(Math,Ed(t.y))):e(t.y)}}function Id(t,e){return Ot(e)?"positive":t<=0&&Math.max.apply(Math,Ed(e))<=0?"negative":"positive"}function Nd(t){return{top:!1,bottom:!1,left:!0,right:!0}[t.orientation||(t.dependentAxis?"left":"bottom")]}function zd(t){return void 0!==t.tickValues&&xt(t.tickValues)}function Bd(t){var e=t.tickValues,n=t.tickFormat;if(0===(null==e?void 0:e.length))return[];var r=kd(t),o=t.stringMap&&t.stringMap[r],i=e;o&&(i=function(t){var e=kd(t),n=t.stringMap&&t.stringMap[e],r=Array.isArray(t.categories)?t.categories:t.categories&&t.categories[e],o=r&&wt(r)?r.map((function(t){return n[t]})):void 0,i=n&&Object.values(n);return o&&0!==o.length?o:i}(t)),e&&xt(e)&&(i=o?e.map((function(t){return o[t]})):dt(1,e.length+1));var a=i?V()(i):function(){if(n&&Array.isArray(n))return xt(n)?n.map((function(t,e){return e})):n}();return Array.isArray(a)&&a.length?function(e){var n=[],o=t.domain&&t.domain[r]||t.domain;if(e)return e.forEach((function(t,e){Array.isArray(o)?t>=Et(o)&&t<=Mt(o)&&n.push({value:t,index:e}):n.push({value:t,index:e})})),n}(a):void 0}function Wd(t,e){var n=t.tickFormat,r=kd(t),o=t.stringMap&&t.stringMap[r];if(!n){var i=function(t){var e=t.tickValues,n=kd(t),r=t.stringMap&&t.stringMap[n],o=e&&!Ot(e)?function(t){return t}:void 0;if(!r)return zd(t)?function(t,n){return e[n]}:o;var i=r&&K(r),a=I()(Object.values(r),(function(t){return t})).map((function(t){return i[t]})),u=[""].concat(Ed(a),[""]);return function(t){return u[t]}}(t),a=e.tickFormat&&lt(e.tickFormat)?e.tickFormat():function(t){return t};return i||a}if(n&&Array.isArray(n)){var u=Bd(t),c=null==u?void 0:u.map((function(t){return t.index})),l=n.filter((function(t,e){return null==c?void 0:c.includes(e)}));return function(t,e){return l[e]}}return n&&lt(n)?o?function(e,n,r){var i=K(o),a=r.map((function(t){return i[t]}));return t.tickFormat(i[e],n,a)}:n:function(t){return t}}function Ud(t,e){if(!e||!Array.isArray(t)||t.length<=e)return t;var n=Math.floor(t.length/e);return t.filter((function(t,e){return e%n==0}))}function Vd(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.tickCount,o=Bd(t);if(0===(null==o?void 0:o.length))return[""];var i=o?o.map((function(t){return t.value})):void 0;if(i)return Ud(i,r);if(e.ticks&&lt(e.ticks)){var a=r||5,u=e.ticks(a),c=Array.isArray(u)&&u.length?u:e.domain(),l=Ud(c,r);if(n){var s=l.filter((function(t){return 0!==t}));return s.length?s:l}return l}return e.domain()}function Fd(t,e){var n=t.polar,r=t.startAngle,o=void 0===r?0:r,i=t.endAngle,a=void 0===i?360:i,u=Bd(t),c=u&&0!==(null==u?void 0:u.length)?u.map((function(t){return t.value})):void 0;if(Array.isArray(c)){var l=Ga(t,e),s=qa(t,e),f=zd(t),p=c.map((function(t){return Number(t)})),h=f?1:Et(p),d=f?c.length:Mt(p),y=Va(void 0!==l?l:h,void 0!==s?s:d),v=n&&"x"===e&&360===Math.abs(o-a)?Ka(y,p):y;return Nd(t)&&!n&&v.reverse(),v}}function Hd(t,e){var n=kd(t);if(!e||e===n)return Na(Fd)(t,n)}function qd(t,e){if(t.axisValue){var n="x"===e?"y":"x",r=hs()(t.scale)&&lt(t.scale[n])?t.scale[n]:void 0;if(r){var o="x"===e?"y":"x",i=hs()(t.stringMap)&&t.stringMap[o];return r(i&&"string"==typeof t.axisValue?i[t.axisValue]:t.axisValue)}}}function Gd(t,e){if(!hs()(t.theme))return ft(t,e,"axis");var n="axis";if(t.dependentAxis&&t.theme.dependentAxis?n="dependentAxis":!t.dependentAxis&&t.theme.independentAxis&&(n="independentAxis"),"axis"===n)return ft(t,e,"axis");var r=G()({},t.theme[n],t.theme.axis),o=Object.assign({},t.theme,{axis:r});return ft(Object.assign({},t,{theme:o}),e,"axis")}var Kd=["desc","id","tabIndex","origin"];function $d(){return $d=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},$d.apply(this,arguments)}function Yd(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 Xd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zd=(0,P.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,Kd)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yd(Object(n),!0).forEach((function(e){Xd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=et(o,t))||void 0===n?void 0:n.toString(),tabIndex:et(i,t)},a);return r?A().createElement("line",$d({},u,{ref:e}),A().createElement("desc",null,r)):A().createElement("line",$d({},u,{ref:e}))}));function Qd(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 Jd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qd(Object(n),!0).forEach((function(e){ty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ey={lineComponent:A().createElement(Zd,null),role:"presentation",shapeRendering:"auto"},ny=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=nt(Object.assign({stroke:"black"},t.style),t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(Jd(Jd({},ey),t));return A().cloneElement(e.lineComponent,Jd(Jd({},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 ry(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 oy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var iy={top:-1,left:-1,right:1,bottom:1},ay=function(t){return null!=t},uy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.style||{},r={height:"100%",width:"100%"};return{parent:G()(n.parent,e.parent,r),axis:G()({},n.axis,e.axis),axisLabel:G()({},n.axisLabel,e.axisLabel),grid:G()({},n.grid,e.grid),ticks:G()({},n.ticks,e.ticks),tickLabels:G()({},n.tickLabels,e.tickLabels)}},cy=function(t,e,n){var r=t.position,o=t.transform;return{x1:o.x,y1:o.y,x2:o.x+r.x2,y2:o.y+r.y2,style:e,datum:n}},ly=function(t,e,n,r,o){var i=t.position,a=t.transform;return{style:e,x:a.x+i.x,y:a.y+i.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:e.angle,text:o,datum:r}},sy=function(t,e,n){var r=t.edge,o=t.transform;return{x1:o.x,y1:o.y,x2:r.x+o.x,y2:r.y+o.y,style:e,datum:n}},fy=function(t,e,n){var r=e||"positive";return n?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[r][t]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[r][t]},py=function(t,e){return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():t===e},hy=function(t,e,n){var r=e.orientation,o=qd(t,e.axis);return{top:{x:0,y:void 0!==o?o:n.y},bottom:{x:0,y:void 0!==o?o:t.height-n.y},left:{x:void 0!==o?o:n.x,y:0},right:{x:void 0!==o?o:t.width-n.x,y:0}}[r]},dy=function(t,e,n){var r=t.tickStyle,o=t.labelStyle,i=r.size||0,a=i+(r.padding||0)+(o.padding||0),u=iy[e];return{x:n?u*a:0,x2:n?u*i:0,y:n?0:u*a,y2:n?0:u*i}},yy=function(t,e,n){return{x:n?e.x:t+e.x,y:n?t+e.y:e.y}},vy=function(t,e){var n=e.orientation,r=e.padding,o=e.isVertical,i=-iy[n];return{x:o?i*(t.width-(r.left+r.right)):0,y:o?0:i*(t.height-(r.top+r.bottom))}},my=function(t,e){var n=t.padding,r=t.orientation,o=t.crossAxis,i="right"===r?n.right:n.left,a="top"===r?n.top:n.bottom;return{x:o?e.x-i:0,y:o?e.y-a:0}},gy=function(t,e){var n;return n=e.domain.x&&e.domain.y?t.horizontal?function(t,e){var n=e.scale,r=e.origin,o=e.orientation,i=e.orientations,a=e.domain,u=e.padding,c=u.top,l=u.bottom,s=u.left,f=u.right,p="bottom"===o||"top"===o?o:i.x,h="left"===o||"right"===o?o:i.y,d={x:"bottom"===p?l:c,y:"left"===h?s:f},y="left"===h?0:t.width,v="bottom"===p?t.height:0,m=py(r.x,a.x[0])||py(r.x,a.x[1])?0:n.x(r.x),g=py(r.y,a.y[0])||py(r.y,a.y[1])?0:n.y(r.y),b=m?Math.abs(v-m):d.x,x=g?Math.abs(y-g):d.y;return{x:ay(t.offsetX)?t.offsetX:x,y:ay(t.offsetY)?t.offsetY:b}}(t,e):function(t,e){var n=e.scale,r=e.origin,o=e.orientation,i=e.orientations,a=e.domain,u=e.padding,c=u.top,l=u.bottom,s=u.left,f=u.right,p="bottom"===o||"top"===o?o:i.x,h="left"===o||"right"===o?o:i.y,d={x:"left"===h?s:f,y:"bottom"===p?l:c},y="left"===h?0:t.width,v="bottom"===p?t.height:0,m=py(r.x,a.x[0])||py(r.x,a.x[1])?0:n.x(r.x),g=py(r.y,a.y[0])||py(r.y,a.y[1])?0:n.y(r.y),b=m?Math.abs(y-m):d.x,x=g?Math.abs(v-g):d.y;return{x:ay(t.offsetX)?t.offsetX:b,y:ay(t.offsetY)?t.offsetY:x}}(t,e):function(t,e){var n,r=e.style,o=e.scale,i=e.orientation,a=e.padding,u=e.axis,c=e.ticks,l=e.stringTicks,s=e.isVertical,f=e.labelPadding,p=t.polar,h=t.horizontal,d={scale:oy({},u,o),polar:p,horizontal:h,ticks:c,stringTicks:l},y="right"===i?a.right:a.left,v="top"===i?a.top:a.bottom,m=null!==t.offsetX&&void 0!==t.offsetX?t.offsetX:y,g=null!==t.offsetY&&void 0!==t.offsetY?t.offsetY:v,b=r.axisLabel.fontSize||14,x=c.map((function(e,n){var o=l?t.tickValues[e-1]:e;return nt(r.ticks,Object.assign({},d,{tick:o,index:n})).size||0})),O=b+2*Math.max.apply(Math,function(t){if(Array.isArray(t))return ry(t)}(n=x)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return ry(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)?ry(t,e):void 0}}(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.")}())+f,_=1.2*b;return{x:null!=m?m:s?O:_,y:null!=g?g:s?_:O}}(t,e),{globalTransform:hy(t,e,n),gridOffset:my(e,n),gridEdge:vy(t,e)}},by=function(t,e){var n=Gd(t,e),r=function(t){var e=function(t){var e=t.theme,n=t.dependentAxis,r=e&&e.axis&&e.axis.style,o=n?"dependentAxis":"independentAxis",i=e&&e[o]&&e[o].style;return r&&i?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((function(t,e){return t[e]=G()({},i[e],r[e]),t}),{}):i||r}(t),n=uy(t,e),r=Z(t),o=function(t,e){var n=e.axisLabel||{};if(void 0!==n.padding&&null!==n.padding)return n.padding;var r=Nd(t),o=n.fontSize||14;return t.label?o*(r?2.3:1.6):0}(t,n),i=zd(t)?t.tickValues:void 0,a=kd(t),u=Hd(t),c=function(t){var e=kd(t),n=function(t,e){var n=t.orientation,r=t.horizontal;return n?{top:"x",bottom:"x",left:"y",right:"y"}[n]:r?"x"===e?"y":"x":e}(t,e),r=Zi(t,e),o=t.domain&&t.domain[e]||Hd(t)||r.domain();return r.range(ut(t,n)),r.domain(o),r}(t),l="x"===a?u:void 0,s="y"===a?u:void 0,f="x"===a?c:void 0,p="y"===a?c:void 0,h=!(!1===t.crossAxis||!0===t.standalone),d=Vd(t,c,h),y=Wd(t,c),v={x:ut(t,"x"),y:ut(t,"y")},m={x:t.domain&&t.domain.x?t.domain.x:l,y:t.domain&&t.domain.y?t.domain.y:s},g={x:t.domain&&t.domain.x?Zi(t,"x").domain(t.domain.x).range(t.horizontal?v.y:v.x):f,y:t.domain&&t.domain.y?Zi(t,"y").domain(t.domain.y).range(t.horizontal?v.x:v.y):p},b=m.x&&m.y?Ld(m):void 0,x=b?{x:Id(b.x,m.x),y:Id(b.y,m.y)}:void 0,O=x?{x:fy("x",x.y,t.horizontal),y:fy("y",x.x,t.horizontal)}:void 0,_=O?t.orientation||O[a]:function(t){if(t.orientation)return t.orientation;var e={dependent:t.horizontal?"bottom":"left",independent:t.horizontal?"left":"bottom"};return t.dependentAxis?e.dependent:e.independent}(t),w=Nd(Object.assign({},t,{orientation:_})),j=function(t,e){var n={top:"end",left:"end",right:"start",bottom:"start"}[t];return{textAnchor:e?n:"middle",verticalAnchor:e?"middle":n}}(_,w);return{anchors:j,axis:a,crossAxis:h,domain:m,isVertical:w,labelPadding:o,orientation:_,orientations:O,origin:b,padding:r,scale:g,stringTicks:i,style:n,tickFormat:y,ticks:d}}(n),o=r.axis,i=r.style,a=r.orientation,u=r.isVertical,c=r.scale,l=r.ticks,s=r.tickFormat,f=r.anchors,p=r.domain,h=r.stringTicks,d="x"===o?"y":"x",y=n.width,v=n.height,m=n.standalone,g=n.theme,b=n.polar,x=n.padding,O=n.horizontal,_=gy(n,r),w=_.globalTransform,j=_.gridOffset,P=_.gridEdge,A={scale:oy({},o,c[o]),polar:b,horizontal:O,ticks:l,stringTicks:h},M=function(t,e,n){var r=e.style,o=e.padding,i=e.isVertical,a=t.width,u=t.height;return{style:r.axis,x1:i?n.x:o.left+n.x,x2:i?n.x:a-o.right+n.x,y1:i?o.top+n.y:n.y,y2:i?u-o.bottom+n.y:n.y}}(n,r,w),E=function(t,e,n){var r=e.style,o=e.orientation,i=e.padding,a=e.labelPadding,u=e.isVertical,c=iy[o],l=i.left+i.right,s=i.top+i.bottom,f=c<0?"end":"start",p=r.axisLabel,h=u?-90:0;return{x:u?n.x+c*a:(t.width-l)/2+i.left+n.x,y:u?(t.height-s)/2+i.top+n.y:c*a+n.y,verticalAnchor:p.verticalAnchor||f,textAnchor:p.textAnchor||"middle",angle:void 0===p.angle?h:p.angle,style:p,text:t.label}}(n,r,w),C={parent:Object.assign({style:i.parent,ticks:l,standalone:m,theme:g,width:y,height:v,padding:x,domain:p},A)},S={dimension:d,range:oy({},d,ut(n,d)),scale:n.scale&&n.scale[d]?oy({},d,n.scale[d]):void 0};return l.reduce((function(t,e,n){var r,p,d,y=h?h[n]:e,v=s(e,n,l),m=function(t,e){return{tickStyle:nt(t.ticks,e),labelStyle:nt(t.tickLabels,e),gridStyle:nt(t.grid,e)}}(i,Object.assign({},A,{tick:y,tickValue:e,index:n,text:v})),g={position:dy(m,a,u),transform:yy(null===(r=c[o])||void 0===r?void 0:r.call(c,e),w,u)},b={edge:P,transform:{x:u?-j.x+w.x:(null===(p=c[o])||void 0===p?void 0:p.call(c,e))+w.x,y:u?(null===(d=c[o])||void 0===d?void 0:d.call(c,e))+w.y:j.y+w.y}};return t[n]={axis:Object.assign({dimension:o},A,M),axisLabel:Object.assign({},A,E),ticks:Object.assign({},A,cy(g,m.tickStyle,e)),tickLabels:Object.assign({},A,ly(g,m.labelStyle,f,e,v)),grid:Object.assign({},A,S,sy(b,m.gridStyle,e))},t}),C)};function xy(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 Oy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _y(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 wy(t,e){return wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wy(t,e)}function jy(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 Py(t){return Py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Py(t)}var Ay={width:450,height:300,padding:50},My=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&&wy(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=Py(r);if(o){var n=Py(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return jy(this,t)});function a(){return Oy(this,a),i.apply(this,arguments)}return e=a,n=[{key:"renderLine",value:function(t){var e=t.axisComponent,n=this.getComponentProps(e,"axis",0);return A().cloneElement(e,n)}},{key:"renderLabel",value:function(t){var e=t.axisLabelComponent;if(!t.label)return null;var n=this.getComponentProps(e,"axisLabel",0);return A().cloneElement(e,n)}},{key:"renderGridAndTicks",value:function(t){var e=this,n=t.tickComponent,r=t.tickLabelComponent,o=t.gridComponent,i=t.name,a=function(t){var e=t.style,n=void 0===e?{}:e,r=t.events,o=void 0===r?{}:r;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!R()(o)};return this.dataKeys.map((function(u,c){var l=e.getComponentProps(n,"ticks",c),s=A().cloneElement(n,l),f=a(s.props)?s:void 0,p=e.getComponentProps(o,"grid",c),h=A().cloneElement(o,p),d=a(h.props)?h:void 0,y=e.getComponentProps(r,"tickLabels",c),v=[d,f,A().cloneElement(r,y)].filter(Boolean);return A().cloneElement(t.groupComponent,{key:"".concat(i,"-tick-group-").concat(u)},v)}))}},{key:"fixLabelOverlap",value:function(t,e){var n=Nd(e),r=n?e.height:e.width,o=function(t){return t.type&&"label"===t.type.role},i=t.map((function(t){return t.props.children})).reduce((function(t,e){return t.concat(e)}),[]).filter(o).map((function(t){return t.props})).reduce((function(t,e){var r=function(t){return"object"==typeof t?Object.assign({},{top:0,right:0,bottom:0,left:0},t):{top:t,right:t,bottom:t,left:t}}(e.style.padding),o=np(e.text,{angle:e.angle,fontSize:e.style.fontSize,letterSpacing:e.style.letterSpacing,fontFamily:e.style.fontFamily});return t+(n?o.height+r.top+r.bottom:o.width+r.right+r.left)}),0),a=Math.floor(r*t.length/i),u=Math.ceil(t.length/a)||1,c=function(t){return t.props.children.filter(o).reduce((function(t,e){return(n?e.props.y:e.props.x)||0}),0)},l=t.sort((function(t,e){return n?c(e)-c(t):c(t)-c(e)}));return l.filter((function(t,e){return e%u==0}))}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=Ey.animationWhitelist,e=Gd(this.props,Ay),n=es(this.props);if(this.shouldAnimate())return this.animateComponent(e,t);var r,o=this.renderGridAndTicks(e),i=e.fixLabelOverlap?this.fixLabelOverlap(o,e):o,a=[this.renderLine(e),this.renderLabel(e)].concat(function(t){if(Array.isArray(t))return xy(t)}(r=i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return xy(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)?xy(t,e):void 0}}(r)||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.")}()),u=A().cloneElement(e.containerComponent,n);return e.standalone?this.renderContainer(u,a):A().cloneElement(e.groupComponent,n,a)}}],n&&_y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);My.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"],My.displayName="VictoryAxis",My.role="axis",My.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},My.defaultProps={axisComponent:A().createElement(ny,null),axisLabelComponent:A().createElement(gp,null),tickLabelComponent:A().createElement(gp,null),tickComponent:A().createElement(ny,null),gridComponent:A().createElement(ny,null),standalone:!0,theme:Ip.grayscale,containerComponent:A().createElement(Zs,null),groupComponent:A().createElement("g",{role:"presentation"}),fixLabelOverlap:!1},My.getDomain=Hd,My.getAxis=kd,My.getStyles=function(t){return uy(t)},My.getBaseProps=function(t){return by(t,Ay)},My.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var Ey=bd(My,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),Cy=function(t,e){var n=function(n){var r="log"===na(t.scale[n])?1/Number.MAX_SAFE_INTEGER:0,o=Et(t.domain[n]),i=Mt(t.domain[n]);return o<0&&i<=0?r=i:o>=0&&i>0&&(r=o),e["_".concat(n)]instanceof Date?new Date(r):r},r=void 0!==e._y0?e._y0:n("y"),o=void 0!==e._x0?e._x0:n("x");return X(t,Object.assign({},e,{_y0:r,_x0:o}))},Sy=function(t,e){var n=e.scale,r=e.data,o=e.style;if(t)return et(t,e);if(o.width)return o.width;var i=n.x.range(),a=Math.abs(i[1]-i[0]),u=r.length+2,c=(e.barRatio||.5)*(r.length<2?8:a/u);return Math.max(1,c)},ky=function(t,e){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?function(t){return W()(t)}(t)?function(t,e){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(r,o){ct(t[r])?ct(t[o])||(n[r]=et(t[o],e)):n[r]=et(t[r],e)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),n}(t,e):(n.topLeft=et(t,e),n.topRight=et(t,e),n):n},Dy=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(e.disableInlineStyles)return{};var n=t.fill||"black",r={fill:"black",stroke:n};return nt(Object.assign(r,t),e)},Ty=function(t,e){return{x:t,y:e,distance:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add:function(t){return Ty(this.x+t.x,this.y+t.y)},subtract:function(t){return Ty(this.x-t.x,this.y-t.y)},scalarMult:function(t){return Ty(this.x*t,this.y*t)},scalarDivide:function(t){if(0===t)throw new Error("Division by 0 error");return Ty(this.x/t,this.y/t)},equals:function(t){return this.x===t.x&&this.y===t.y}}},Ry=function(t,e){return{center:t,radius:e,hasIntersection:function(t){var e=this.center,n=t.center,r=this.radius,o=t.radius,i=e.distance(n);return!(i>r+o||i<Math.abs(r-o))},equals:function(t){var e=this.center,n=t.center;return this.radius===t.radius&&e.equals(n)},intersection:function(t){var e=this.center,n=t.center,r=this.radius,o=t.radius,i=e.distance(n);if(!this.hasIntersection(t)||this.equals(t))return[];var a=(Math.pow(r,2)-Math.pow(o,2)+Math.pow(i,2))/(2*i),u=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),c=e.add(n.subtract(e).scalarMult(a).scalarDivide(i)),l=e.x,s=e.y,f=n.x,p=n.y,h=c.x,d=c.y,y=[Ty(h-u*(p-s)/i,d+u*(f-l)/i),Ty(h+u*(p-s)/i,d-u*(f-l)/i)];return y.sort((function(t,e){return t.x-e.x})),y},solveX:function(t){var e=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-e,this.center.x+e]},solveY:function(t){var e=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-e,this.center.y+e]}}};function Ly(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 Iy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ly(Object(n),!0).forEach((function(e){Ny(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ly(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ny(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zy(t){return function(t){if(Array.isArray(t))return By(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 By(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)?By(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 By(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 Wy=function(t,e){var n=t.x,r=t.x0,o=t.y,i=t.y0,a=t.horizontal,u=t.alignment||"middle",c="middle"===u?e/2:e,l=a?-1:1;return a?{x0:r,x1:n,y0:"start"===u?o:o-l*c,y1:"end"===u?o:o+l*c}:{x0:"start"===u?n:n-l*c,x1:"end"===u?n:n+l*c,y0:i,y1:o}},Uy=function(t,e){var n=t.data,r=t.scale,o=void 0===n[e]._x1?"_x":"_x1";return r.x(n[e][o])},Vy=function(t){return-1*t+Math.PI/2},Fy=function(t,e){var n=t.getPath;if("function"==typeof n)return n(Iy(Iy({},t),Wy(t,e)))},Hy=function(t,e,n){var r="".concat(e.topLeft," ").concat(e.topLeft," ").concat(n),o="".concat(e.topRight," ").concat(e.topRight," ").concat(n),i="".concat(e.bottomLeft," ").concat(e.bottomLeft," ").concat(n),a="".concat(e.bottomRight," ").concat(e.bottomRight," ").concat(n),u=["M","A ".concat(i,","),"L","A ".concat(r,","),"L","A ".concat(o,","),"L","A ".concat(a,",")].reduce((function(e,n,r){return"".concat(e).concat(n," ").concat(t[r].x,", ").concat(t[r].y," \n")}),"");return"".concat(u," z")},qy=function(t,e,n){var r=Wy(t,e),o=r.y0>r.y1?1:-1,i=o>0?"0 0 1":"0 0 0",a=function(t,e,n){var r=t.x0,o=t.x1,i=t.y0,a=t.y1,u=function(t){var u="Left"===t,c=u?1:-1,l=u?r:o,s={x:l+c*n["bottom".concat(t)],y:i},f={x:l,y:i-e*n["bottom".concat(t)]},p={x:l,y:a+e*n["top".concat(t)]},h={x:l+c*n["top".concat(t)],y:a};if(1===e?i-n["bottom".concat(t)]<a+n["top".concat(t)]:i+n["bottom".concat(t)]>a-n["top".concat(t)]){var d=Ty(l+c*n["top".concat(t)],a+e*n["top".concat(t)]),y=Ry(d,n["top".concat(t)]),v=Ty(l+c*n["bottom".concat(t)],i-e*n["bottom".concat(t)]),m=Ry(v,n["bottom".concat(t)]),g=y.intersection(m);if(g.length>0){var b=g[u?0:1];f={x:b.x,y:b.y},p={x:b.x,y:b.y}}else if(n["top".concat(t)]>n["bottom".concat(t)]){var x=y.solveX(i)[u?0:1];s={x,y:i},f={x,y:i},p={x,y:i}}else{var O=m.solveX(a)[u?0:1];f={x:O,y:a},p={x:O,y:a},h={x:O,y:a}}}var _=[s,f,p,h];return u?_:_.reverse()};return u("Left").concat(u("Right"))}(r,o,n);return Hy(a,n,i)},Gy=function(t,e,n){var r=Wy(t,e),o=r.x0<r.x1?1:-1,i={topRight:o>0?n.topLeft:n.bottomLeft,bottomRight:o>0?n.topRight:n.bottomRight,bottomLeft:o>0?n.bottomRight:n.topRight,topLeft:o>0?n.bottomLeft:n.topLeft},a=function(t,e,n){var r=t.y0,o=t.y1,i=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,u=function(t){var u="top"===t,c=u?-1:1,l=u?o:r,s={x:i,y:l-c*n["".concat(t,"Left")]},f={x:i+n["".concat(t,"Left")],y:l},p={x:a-n["".concat(t,"Right")],y:l},h={x:a,y:l-c*n["".concat(t,"Right")]};if(f.x>p.x){var d=Ty(i+n["".concat(t,"Left")],l-c*n["".concat(t,"Left")]),y=Ry(d,n["".concat(t,"Left")]),v=Ty(a-n["".concat(t,"Right")],l-c*n["".concat(t,"Right")]),m=Ry(v,n["".concat(t,"Right")]),g=y.intersection(m);if(g.length>0){var b=g[e>0?1:0];f={x:b.x,y:b.y},p={x:b.x,y:b.y}}else if(n["".concat(t,"Right")]>n["".concat(t,"Left")]){var x=m.solveY(i)[u?0:1];s={x:i,y:x},f={x:i,y:x},p={x:i,y:x}}else{var O=y.solveY(a)[u?0:1];h={x:a,y:O},p={x:a,y:O},f={x:a,y:O}}}return[s,f,p,h]},c=u("top"),l=u("bottom");return[l[1],l[0]].concat(zy(c),[l[3],l[2]])}(r,o,i);return Hy(a,i,"0 0 1")},Ky=function(t,e){var n,r,o=t.datum,i=t.scale,a=t.index,u=t.alignment,c=t.style,l=i.y(o._y0||0),s=i.y(void 0!==o._y1?o._y1:o._y),f=i.x(void 0!==o._x1?o._x1:o._x);if(c.width){var p=function(t,e){var n=t.scale,r=n.y.range(),o=Math.max.apply(Math,zy(r)),i=Math.abs(n.x.range()[1]-n.x.range()[0]);return e/(2*Math.PI*o)*i}(t,c.width),h="middle"===u?p/2:p;n="start"===u?f:f-h,r="end"===u?f:f+h}else n=function(t,e){var n=t.data,r=t.scale,o=t.alignment,i=Uy(t,e),a=Math.abs(r.x.range()[1]-r.x.range()[0]),u=0===e?Uy(t,n.length-1)-2*Math.PI:Uy(t,e-1);return 0===e&&a<2*Math.PI?r.x.range()[0]:"start"===o||"end"===o?"start"===o?u:i:(i+u)/2}(t,Number(a)),r=function(t,e){var n=t.data,r=t.scale,o=t.alignment,i=Uy(t,e),a=Math.abs(r.x.range()[1]-r.x.range()[0]),u=r.x.range()[1]===2*Math.PI?Uy(t,0)+2*Math.PI:r.x.range()[1],c=e===n.length-1?Uy(t,0)+2*Math.PI:Uy(t,e+1);return e===n.length-1&&a<2*Math.PI?u:"start"===o||"end"===o?"start"===o?i:c:(i+c)/2}(t,Number(a));var d=function(t){return Hu().innerRadius(l).outerRadius(s).startAngle(Vy(n)).endAngle(Vy(r)).cornerRadius(e[t])()},y=function(t){var e=d("".concat(t,"Right")),n=e.match(/[A-Z]/g)||[],r=e.split(/[A-Z]/).slice(1),o=n.indexOf("L"),i=d("".concat(t,"Left")),a=i.match(/[A-Z]/g)||[],u=i.split(/[A-Z]/).slice(1),c=a.indexOf("L");return{rightMoves:n,rightCoords:r,rightMiddle:o,leftMoves:a,leftCoords:u,leftMiddle:c}},v=function(){var t,o,i=e.topRight,a=e.topLeft,u=s*Math.abs(r-n),c=y("top"),l=c.rightMoves,f=c.rightCoords,p=c.rightMiddle,h=c.leftMoves,d=c.leftCoords,v=c.leftMiddle;if(i===a||u<2*i+2*a)t=i>a?l:h,o=i>a?f:d;else{var m,g=function(t){return t<3},b=a>i&&g(p)?1:2;if(i>a){var x=g(p)?v:v-2;m=g(v)?v-1:x}else{var O=g(v)?1:2;m=g(p)?O:v-2}t=[].concat(zy(l.slice(0,b)),zy(h.slice(m))),o=[].concat(zy(f.slice(0,b)),zy(d.slice(m)))}var _=t.indexOf("L"),w=t.slice(0,_),j=o.slice(0,_);return w.map((function(t,e){return{command:t,coords:j[e].split(",")}}))}(),m=function(){var t,o,i=e.bottomRight,a=e.bottomLeft,u=l*Math.abs(r-n),c=y("bottom"),s=c.rightMoves,f=c.rightCoords,p=c.rightMiddle,h=c.leftMoves,d=c.leftCoords,v=c.leftMiddle;if(i===a||u<2*i+2*a)t=i>a?s:h,o=i>a?f:d;else{var m=function(t,e){return t.length-e<4},g=(i>a?m(s,p):m(h,v))?-1:-3;t=[].concat(zy(h.slice(0,v+2)),zy(s.slice(g))),o=[].concat(zy(d.slice(0,v+2)),zy(f.slice(g)))}var b=t.indexOf("L"),x=t.slice(b,-1),O=o.slice(b,-1);return x.map((function(t,e){return{command:t,coords:O[e].split(",")}}))}(),g=[].concat(zy(v),zy(m)).reduce((function(t,e){return"".concat(t).concat(e.command," ").concat(e.coords.join())}),"");return"".concat(g," z")},$y=function(t,e,n){return t.getPath?Fy(t,e):t.horizontal?Gy(t,e,n):qy(t,e,n)},Yy=function(t,e){return Ky(t,e)};function Xy(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 Zy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xy(Object(n),!0).forEach((function(e){Qy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jy={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},tv=(0,P.forwardRef)((function(t,e){var n=function(t){var e=Dy(t.style,t),n=Sy(t.barWidth,Object.assign({},t,{style:e})),r=ky(t.cornerRadius,Object.assign({},t,{style:e,barWidth:n})),o=et(t.ariaLabel,t),i=et(t.desc,t),a=et(t.id,t),u=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:o,style:e,barWidth:n,cornerRadius:r,desc:i,id:a,tabIndex:u})}(Zy(Zy({},Jy),t)),r=n.polar,o=n.origin,i=n.style,a=n.barWidth,u=n.cornerRadius,c=r?Yy(n,u):$y(n,a,u),l=r&&o?"translate(".concat(o.x,", ").concat(o.y,")"):void 0;return n.pathComponent?A().cloneElement(n.pathComponent,Zy(Zy({},n.events),{},{"aria-label":n.ariaLabel,style:i,d:c,className:n.className,clipPath:n.clipPath,desc:n.desc,index:n.index,role:n.role,shapeRendering:n.shapeRendering,transform:n.transform||l,tabIndex:n.tabIndex,ref:e})):null}));function ev(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nv(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 rv(t,e){return rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rv(t,e)}function ov(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 iv(t){return iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},iv(t)}var av={width:450,height:300,padding:50},uv=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&&rv(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=iv(r);if(o){var n=iv(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return ov(this,t)});function a(){return ev(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=cv.animationWhitelist,e=cv.role,n=ft(this.props,av,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&nv(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);uv.animationWhitelist=["data","domain","height","padding","style","width"],uv.displayName="VictoryBar",uv.role="bar",uv.defaultTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}}},uv.defaultProps={containerComponent:A().createElement(Zs,null),data:[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}],dataComponent:A().createElement(tv,null),groupComponent:A().createElement("g",{role:"presentation"}),labelComponent:A().createElement(gp,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},uv.getDomain=Ha,uv.getData=Pa,uv.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"bar"),r=Object.assign({},n,function(t){var e=t.polar,n=J(t,"bar"),r=t.disableInlineStyles?{}:tt(t.style,n),o=t.range||{x:ut(t,"x"),y:ut(t,"y")},i={x:Ha(t,"x"),y:Ha(t,"y")},a={x:Zi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Zi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},u=e?t.origin||at(t):void 0,c=Pa(t);return{style:r,data:c=ba(c,i,0),scale:a,domain:i,origin:u}}(n)),o=r.alignment,i=r.barRatio,a=r.cornerRadius,u=r.data,c=r.disableInlineStyles,l=r.domain,s=r.events,f=r.height,p=r.horizontal,h=r.origin,d=r.padding,y=r.polar,v=r.scale,m=r.sharedEvents,g=r.standalone,b=r.style,x=r.theme,O=r.width,_=r.labels,w=r.name,j=r.barWidth,P=r.getPath,A={parent:{horizontal:p,domain:l,scale:v,width:O,height:f,data:u,standalone:g,name:w,theme:x,polar:y,origin:h,padding:d,style:b.parent}};return u.reduce((function(t,e,n){var l=ct(e.eventKey)?n:e.eventKey,d=Cy(r,e),g=d.x,x=d.y,w=d.y0,A=d.x0,M={alignment:o,barRatio:i,barWidth:j,cornerRadius:a,data:u,datum:e,disableInlineStyles:c,getPath:P,horizontal:p,index:n,polar:y,origin:h,scale:v,style:b.data,width:O,height:f,x:g,y:x,y0:w,x0:A};return t[l]={data:M},(null!=Xa(r,e,n)||_&&(s||m))&&(t[l].labels=eu(r,n)),t}),A)}(t,av)},uv.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var cv=bd(uv);function lv(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 sv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lv(Object(n),!0).forEach((function(e){fv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pv={rectComponent:A().createElement(lf,null),role:"presentation",shapeRendering:"auto"},hv=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=nt(Object.assign({fill:"none"},t.style),t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(sv(sv({},pv),t));return A().cloneElement(e.rectComponent,sv(sv({},e.events),{},{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,transform:e.transform,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,width:e.width,height:e.height,clipPath:e.clipPath}))};function dv(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 yv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dv(Object(n),!0).forEach((function(e){vv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mv={groupComponent:A().createElement("g",null),lineComponent:A().createElement(Zd,null),role:"presentation",shapeRendering:"auto"},gv=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=nt(t.style,t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(yv(yv({},mv),t)),n=e.ariaLabel,r=e.groupComponent,o=e.lineComponent,i=e.events,a=e.className,u=e.majorWhisker,c=e.minorWhisker,l=e.transform,s=e.clipPath,f=e.role,p=e.shapeRendering,h=e.style,d=e.desc,y=e.tabIndex,v=yv(yv({},i),{},{style:h,desc:d,tabIndex:y,className:a,transform:l,clipPath:s,role:f,shapeRendering:p});return A().cloneElement(r,{},[A().cloneElement(o,Object.assign({key:"major-whisker","aria-label":n},v,u)),A().cloneElement(o,Object.assign({key:"minor-whisker","aria-label":n},v,c))])},bv=r(9056),xv=r.n(bv),Ov=["max","min","median","q1","q3"],_v=function(t){return Number.isNaN(t)?null:t},wv=function(t){var e=t.map((function(t){return t._y})),n={_q1:_v(Zn(e,.25)),_q3:_v(Zn(e,.75)),_min:_v(Kn(e)),_median:_v(Zn(e,.5)),_max:_v(Gn(e))};return Object.assign({},t[0],n,{_y:t[0]._y})},jv=function(t){var e=Ov.concat("x","y"),n=_a(t.data,t,e);return n.length?function(t){var e=function(t){if(t.every((function(t){return Ov.every((function(e){return void 0!==t["_".concat(e)]}))}))){var e=t.map((function(t){return t._x}));if(!V()(e).length===e.length)throw new Error("\n data prop may only take an array of objects with a unique\n independent variable. Make sure your x values are distinct.\n ");return!0}return!1}(t);if(e)return t;var n=t.every((function(t){return Array.isArray(t._x)})),r=t.every((function(t){return Array.isArray(t._y)})),o="_y";if(n)throw new Error("\n data should not be given as in array for x\n ");if(r)return t.map((function(t){var e=t._y.map((function(e){return Object.assign({},t,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t._y=n,t}({},o,e))})),n=I()(e,o);return wv(n)}));var i=xv()(t,"_x");return Object.keys(i).map((function(t){var e=i[t],n=I()(e,o);return wv(n)}))}(n):[]},Pv=function(t,e){var n=Ga(t,e),r=qa(t,e),o=jv(t);return o.length<1?void 0!==n&&void 0!==r?Va(n,r):void 0:"y"===e?function(t,e,n){var r=Ga(e,n),o=qa(e,n);return Va(void 0!==r?r:t.reduce((function(t,e){return t<e._min?t:e._min}),1/0),void 0!==o?o:t.reduce((function(t,e){return t>e._max?t:e._max}),-1/0))}(o,t,e):function(t,e,n){var r=Ga(e,n),o=qa(e,n);return Va(void 0!==r?r:t.reduce((function(t,e){return t<e["_".concat(n)]?t:e["_".concat(n)]}),1/0),void 0!==o?o:t.reduce((function(t,e){return t>e["_".concat(n)]?t:e["_".concat(n)]}),-1/0))}(o,t,e)},Av=function(t,e){return Na(Pv)(t,e)},Mv=function(t,e,n){var r=t["".concat(n,"LabelComponent")]||t.labelComponent,o=e["".concat(n,"Labels")]||e.labels;if(!Q(r))return o;var i=t.theme&&t.theme.tooltip||{};return G()({},i.style,o)},Ev=function(t,e){var n=ft(t,e,"boxplot"),r=Object.assign({},n,function(t){var e=t.theme,n=t.horizontal,r=jv(t),o={x:ut(t,"x"),y:ut(t,"y")},i={x:Av(t,"x"),y:Av(t,"y")},a={x:Zi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Zi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.disableInlineStyles)return{};var n=t.style||{},r={height:"100%",width:"100%"},o=G()({},n.labels,Mv(t,e)),i=G()({},n.boxes,e.boxes),a=G()({},n.whiskers,e.whiskers);return{boxes:i,labels:o,parent:G()({},n.parent,e.parent,r),max:G()({},n.max,e.max,a),maxLabels:G()({},n.maxLabels,Mv(t,e,"max"),o),median:G()({},n.median,e.median,a),medianLabels:G()({},n.medianLabels,Mv(t,e,"median"),o),min:G()({},n.min,e.min,a),minLabels:G()({},n.minLabels,Mv(t,e,"min"),o),q1:G()({},n.q1,e.q1,i),q1Labels:G()({},n.q1Labels,Mv(t,e,"q1"),o),q3:G()({},n.q3,e.q3,i),q3Labels:G()({},n.q3Labels,Mv(t,e,"q3"),o),whiskers:a}}(t,e&&e.boxplot&&e.boxplot.style?e.boxplot.style:{}),c=t.horizontal?"top":"right";return{data:r,horizontal:n,domain:i,scale:a,style:u,labelOrientation:t.labelOrientation||c,boxWidth:t.boxWidth||1}}(n)),o=r.groupComponent,i=r.width,a=r.height,u=r.padding,c=r.standalone,l=r.theme,s=r.events,f=r.sharedEvents,p=r.scale,h=r.horizontal,d=r.data,y=r.style,v=r.domain,m=r.name,g={parent:{domain:v,scale:p,width:i,height:a,data:d,standalone:c,name:m,theme:l,style:y.parent||{},padding:u,groupComponent:o,horizontal:h}},b=p.y;return d.reduce((function(t,e,n){var o=ct(e.eventKey)?n:e.eventKey;if(function(t,e){var n,r,o=function(t){return void 0!==t},i=t._x,a=t._min,u=t._max,c=Et(e.x),l=Mt(e.x),s=Et(e.y),f=Mt(e.y),p=function(t){return function(e){return o(e)&&e<t}},h=function(t){return function(e){return o(e)&&e>t}},d=p(c),y=p(s),v=h(l),m=h(f);return(d(i)||v(i))&&(r=!0),(y(a)&&y(u)||m(a)&&m(u))&&(n=!0),n||r}(e,v))return t;var i={x:h?p.y(e._y):p.x(e._x),y:h?p.x(e._x):p.y(e._y),min:b(e._min),max:b(e._max),median:b(e._median),q1:b(e._q1),q3:b(e._q3)},a=Object.assign({index:n,datum:e,positions:i},r),u=Ov.reduce((function(t,e){return t[e]=function(t,e){return"median"===e?function(t){var e=t.boxWidth,n=t.horizontal,r=t.style,o=t.datum,i=t.scale,a=t.index,u=t.disableInlineStyles,c=t.positions,l=c.median,s=c.x,f=c.y;return{datum:o,scale:i,index:a,x1:n?l:s-e/2,y1:n?f-e/2:l,x2:n?l:s+e/2,y2:n?f+e/2:l,style:u?{}:r.median,disableInlineStyles:u}}(t):"min"===e||"max"===e?function(t,e){var n=t.horizontal,r=t.style,o=t.boxWidth,i=t.whiskerWidth,a=t.datum,u=t.scale,c=t.index,l=t.disableInlineStyles,s=t.positions,f=s.min,p=s.max,h=s.q1,d=s.q3,y=s.x,v=s.y,m="min"===e?h:d,g="min"===e?f:p,b="number"==typeof i?i:o;return{datum:a,index:c,scale:u,majorWhisker:{x1:n?m:y,y1:n?v:m,x2:n?g:y,y2:n?v:g},minorWhisker:{x1:n?g:y-b/2,y1:n?v-b/2:g,x2:n?g:y+b/2,y2:n?v+b/2:g},style:l?{}:r[e]||r.whisker,disableInlineStyles:l}}(t,e):function(t,e){var n=t.horizontal,r=t.boxWidth,o=t.style,i=t.scale,a=t.datum,u=t.index,c=t.disableInlineStyles,l=t.positions,s=l.median,f=l.q1,p=l.q3,h=l.x,d=l.y;return{datum:a,scale:i,index:u,x:n?"q1"===e?f:s:h-r/2,y:n?d-r/2:"q1"===e?s:p,width:n?"q1"===e?s-f:p-s:r,height:n?r:"q1"===e?f-s:s-p,style:c?{}:o[e]||o.boxes,disableInlineStyles:c}}(t,e)}(a,e),t}),{});return t[o]=u,Ov.forEach((function(e){var n=function(t,e){var n=t.datum,r=t.index,o=t.labels,i=t["".concat(e,"Labels")];if(!i&&!o)return null;if(!0===i||!0===o){var a="_".concat(e);return"".concat(n[a])}return Array.isArray(i)?i[r]:i}(a,e),i=r.labels||r["".concat(e,"Labels")];if(null!=n||i&&(s||f)){var u="".concat(e,"Labels");t[o][u]=function(t,e,n){var r=t.datum,o=t.positions,i=t.index,a=t.boxWidth,u=t.horizontal,c=t.labelOrientation,l=t.style,s=t.theme,f=t.disableInlineStyles,p=function(t,e){return"object"==typeof t&&t[e]||t}(c,n),h=l["".concat(n,"Labels")]||l.labels,d="number"==typeof t.whiskerWidth?t.whiskerWidth:a,y="min"===n||"max"===n?d:a,v=function(t){var e={x:"left"===p?-1:1,y:"top"===p?-1:1};return e[t]*y/2+e[t]*(h.padding||0)},m={text:e,datum:r,index:i,orientation:p,style:f?{}:h,y:u?o.y:o[n],x:u?o[n]:o.x,dy:u?v("y"):0,dx:u?0:v("x"),textAnchor:h.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[p],verticalAnchor:h.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[p],angle:h.angle,horizontal:u,disableInlineStyles:f};if(!Q(t["".concat(n,"LabelComponent")]))return m;var g=s&&s.tooltip||{};return G()({},m,$(g,["style"]))}(Object.assign({},r,a),n,e)}})),t}),g)};function Cv(t){return function(t){if(Array.isArray(t))return Sv(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 Sv(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)?Sv(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 Sv(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 kv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dv(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 Tv(t,e){return Tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Tv(t,e)}function Rv(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 Lv(t){return Lv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lv(t)}var Iv={width:450,height:300,padding:{top:20,right:20,bottom:20,left:20}},Nv=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&&Tv(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=Lv(r);if(o){var n=Lv(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Rv(this,t)});function a(){return kv(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"renderBoxPlot",value:function(t){var e=this,n=["q1","q3","max","min","median"],r=n.map((function(n){return e.dataKeys.reduce((function(r,o,i){var a=t["".concat(n,"Component")],u=e.getComponentProps(a,n,i);return e.shouldRenderDatum(u.datum)&&r.push(A().cloneElement(a,u)),r}),[])})).flat(),o=n.map((function(n){return e.dataKeys.reduce((function(r,o,i){var a="".concat(n,"Labels"),u=t["".concat(n,"LabelComponent")],c=e.getComponentProps(u,a,i);return void 0!==c.text&&null!==c.text&&r.push(A().cloneElement(u,c)),r}),[]).filter(Boolean)})).flat(),i=[].concat(Cv(r),Cv(o));return this.renderContainer(t.groupComponent,i)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"shouldRenderDatum",value:function(t){var e=!ct(t._x),n=!ct(t._y);return!(ct(t._min)||ct(t._max)||ct(t._median)||ct(t._q1)||ct(t._q3))&&(this.props.horizontal?n:e)}},{key:"render",value:function(){var t=zv.animationWhitelist,e=zv.role,n=ft(this.props,Iv,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderBoxPlot(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&Dv(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Nv.animationWhitelist=["data","domain","height","padding","style","width"],Nv.displayName="VictoryBoxPlot",Nv.role="boxplot",Nv.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},Nv.defaultProps={containerComponent:A().createElement(Zs,null),data:[{x:1,min:5,q1:7,median:12,q3:18,max:20},{x:2,min:2,q1:5,median:8,q3:12,max:15}],dataComponent:A().createElement(hv,null),groupComponent:A().createElement("g",{role:"presentation"}),maxComponent:A().createElement(gv,null),maxLabelComponent:A().createElement(gp,null),medianComponent:A().createElement(ny,null),medianLabelComponent:A().createElement(gp,null),minComponent:A().createElement(gv,null),minLabelComponent:A().createElement(gp,null),q1Component:A().createElement(hv,null),q1LabelComponent:A().createElement(gp,null),q3Component:A().createElement(hv,null),q3LabelComponent:A().createElement(gp,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},Nv.getDomain=Av,Nv.getData=jv,Nv.getBaseProps=function(t){return Ev(t,Iv)},Nv.expectedComponents=["maxComponent","maxLabelComponent","medianComponent","medianLabelComponent","minComponent","minLabelComponent","q1Component","q1LabelComponent","q3Component","q3LabelComponent","groupComponent","containerComponent"];var zv=bd(Nv,{components:[{name:"min"},{name:"minLabels"},{name:"max"},{name:"maxLabels"},{name:"median"},{name:"medianLabels"},{name:"q1"},{name:"q1Labels"},{name:"q3"},{name:"q3Labels"},{name:"parent",index:"parent"}]});function Bv(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 Wv(t){return!(!t||void 0===t.identifier)}function Uv(t){if(!Wv(t.nativeEvent)){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function Vv(t,e){if(Wv(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||Uv(n));return{x:Bv(n.clientX,r,"x"),y:Bv(n.clientY,r,"y")}}function Fv(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 Hv(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 qv(t){var e=t.x1,n=t.x2,r=t.y1,o=t.y2,i=t.scale,a=Hv(t,i,e,r),u=Hv(t,i,n,o),c=function(t,e){return[Et([t,e]),Mt([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var Gv=r(8163),Kv=r.n(Gv);function $v(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 Yv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$v(Object(n),!0).forEach((function(e){Xv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zv(t){return function(t){if(Array.isArray(t))return Qv(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 Qv(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)?Qv(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 Qv(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 Jv={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=ht(e,Number),o=r.x1,i=r.x2,a=r.y1,u=r.y2,c=ht(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=G()({},e,t.domain),i=G()({},n,o),a=Fv(t,o),u=Fv(t,i);return{x1:"y"!==r?Math.min.apply(Math,Zv(u.x)):Math.min.apply(Math,Zv(a.x)),x2:"y"!==r?Math.max.apply(Math,Zv(u.x)):Math.max.apply(Math,Zv(a.x)),y1:"x"!==r?Math.min.apply(Math,Zv(u.y)):Math.min.apply(Math,Zv(a.y)),y2:"x"!==r?Math.max.apply(Math,Zv(u.y)):Math.max.apply(Math,Zv(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||Uv(n),s=this.panBox(Yv(Yv(Yv({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),Vv(n,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return qv(Yv(Yv({},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=G()({},t.brushDomain,n),u=G()({},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,d=e.y,y=r?r-h:0,v=o?o-d:0;return{x1:"y"!==i?Math.min(l,s)-y:Math.min(l,s),x2:"y"!==i?Math.max(l,s)-y: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=ht(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=ht(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||Uv(t),h=Vv(t,p),d=h.x,y=h.y;if(!this.withinBounds({x:d,y},f,r))return{};var v=G()({},e.brushDomain,i),m=Up()(v,o)?e.currentDomain||v||i:v||i,g=this.getDomainBox(e,i,m),b=a&&this.getActiveHandles({x:d,y},e,g);return b?[{target:"parent",mutation:function(){return Yv({isSelecting:!0,domainBox:g,fullDomainBox:f,cachedBrushDomain:v,currentDomain:m,parentSVG:p},n.getResizeMutation(g,b))}}]:this.withinBounds({x:d,y},g)&&!Up()(i,m)?[{target:"parent",mutation:function(){return Yv({isPanning:u,startX:d,startY:y,domainBox:g,fullDomainBox:f,currentDomain:m,cachedBrushDomain:v,parentSVG:p},g)}}]:c?[{target:"parent",mutation:function(){return Yv({isSelecting:a||"move"===s,domainBox:g,fullDomainBox:f,parentSVG:p,cachedBrushDomain:v,cachedCurrentDomain:m,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:d,y},g,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=Vv(t,f),d=h.x,y=h.y;if(!u&&!c||s>0&&!this.hasMoved(Yv(Yv({},e),{},{x2:d,y2:y})))return{};if(c&&r){var v=e.startX,m=e.startY,g=this.panBox(e,{x:d,y}),b=this.constrainBox(g,i),x=qv(Yv(Yv({},b),{},{scale:n,horizontal:l})),O=Yv({currentDomain:x,parentSVG:f,startX:g.x2>=i.x2||g.x1<=i.x1?v:d,startY:g.y2>=i.y2||g.y1<=i.y1?m:y},b);return lt(a)&&a(x,G()({},O,e)),[{target:"parent",mutation:function(){return O}}]}if(u&&o){var _=this.constrainPoint({x:"y"!==p?d:e.x2,y:"x"!==p?y:e.y2},i),w=_.x,j=_.y,P=qv({x2:w,y2:j,x1:e.x1,y1:e.y1,scale:n,horizontal:l}),A={x2:w,y2:j,currentDomain:P,parentSVG:f};return lt(a)&&a(P,G()({},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,d=p||e.defaultBrushArea?e.defaultBrushArea:"move",y={isPanning:!1,isSelecting:!1};if(!p&&(void 0===d||"none"===d)||n!==o&&r!==i)(h&&a||p&&u)&&lt(l)&&l(f,G()({},y,e));else{var v=e.cachedCurrentDomain||f,m=this.getDefaultBrushArea(e,v,t);y.currentDomain=m,lt(c)&&c(m,G()({},y,e)),lt(l)&&l(m,G()({},y,e)),lt(s)&&s(m,G()({},y,e))}return[{target:"parent",mutation:function(){return y}}]}},tm=Yv(Yv({},Jv),{},{onMouseDown:Jv.onMouseDown.bind(Jv),onGlobalMouseUp:Jv.onGlobalMouseUp.bind(Jv),onGlobalMouseMove:Kv()(Jv.onGlobalMouseMove.bind(Jv),16,{leading:!0,trailing:!1})});function em(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 nm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?em(Object(n),!0).forEach((function(e){rm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):em(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function om(t){return function(t){if(Array.isArray(t))return im(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 im(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)?im(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 im(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 am(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function um(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 cm(t,e){return cm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cm(t,e)}function lm(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 sm(t){return sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sm(t)}function fm(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&&cm(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=sm(r);if(o){var n=sm(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return lm(this,t)});function a(){return am(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]?A().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:G()({},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=tm.getDomainBox(t,e),u=a.x1,c=a.x2,l=a.y1,s=a.y2,f=tm.getHandles(t,a),p=f.top,h=f.bottom,d=f.left,y=f.right,v=Math.abs(c-u)||1,m=Math.abs(s-l)||1,g=o.props&&o.props.style||{},b=G()({},g,r),x=this.getCursorPointers(t),O={style:b,width:v,height:n,cursor:x.yProps},_={style:b,width:n,height:m,cursor:x.xProps},w={top:p&&Object.assign({x:p.x1,y:p.y1},O),bottom:h&&Object.assign({x:h.x1,y:h.y1},O),left:d&&Object.assign({y:d.y1,x:d.x1},_),right:y&&Object.assign({y:y.y1,x:y.x1},_)},j=["top","bottom","left","right"].reduce((function(t,e){return w[e]?t.concat(A().cloneElement(o,Object.assign({key:"".concat(i,"-handle-").concat(e)},w[e]))):t}),[]);return j.length?j:null}},{key:"getRect",value:function(t){var e=t.currentDomain,n=t.cachedBrushDomain,r=G()({},t.brushDomain,t.domain),o=Up()(r,n)?G()({},e,r):r,i=Fv(t,o),a=this.getSelectBox(t,i);return a?[a,this.getHandles(t,o)]:[]}},{key:"getChildren",value:function(t){return[].concat(om(A().Children.toArray(t.children)),om(this.getRect(t)))}}],n&&um(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryBrushContainer",e.defaultProps=nm(nm({},Zs.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:A().createElement(lf,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:A().createElement(lf,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?{}:tm.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:tm.onMouseDown(e,n)},onGlobalMouseMove:function(e,n){return t.disable||!n.isPanning&&!n.isSelecting?{}:tm.onGlobalMouseMove(e,n)},onGlobalTouchMove:function(e,n){return t.disable||!n.isPanning&&!n.isSelecting?{}:tm.onGlobalMouseMove(e,n)},onGlobalMouseUp:function(e,n){return t.disable?{}:tm.onGlobalMouseUp(e,n)},onGlobalTouchEnd:function(e,n){return t.disable?{}:tm.onGlobalMouseUp(e,n)},onGlobalTouchCancel:function(e,n){return t.disable?{}:tm.onGlobalMouseUp(e,n)}}}]},e}var pm=fm(Zs);function hm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dm(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 ym(t,e){return ym=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ym(t,e)}function vm(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 mm(t){return mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mm(t)}function gm(t){return function(t){if(Array.isArray(t))return bm(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 bm(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)?bm(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 bm(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 xm=1/Number.MAX_SAFE_INTEGER,Om=function(t){var e=t.scale,n=void 0===e?{}:e,r=t.dimension,o=void 0===r?"x":r;if(n[o])return n[o];var i=Zi(t,o),a=ut(t,o),u=Fa(t,o)||[0,1];return i.range(a).domain(u),i},_m=function(t){var e=t.horizontal,n=t.dimension,r=void 0===n?"x":n;return e?"x"===r?"y":"x":r},wm=function(t,e){var n=Om(t);return[n(Math.min.apply(Math,gm(e))),n(Math.max.apply(Math,gm(e)))]},jm=function(t,e){var n=Om(t);return[n.invert(Math.min.apply(Math,gm(e))),n.invert(Math.max.apply(Math,gm(e)))]},Pm=function(t){return Om(t).range()},Am=function(t){return Om(t).domain()},Mm=function(t,e){return t>=Et(e)&&t<=Mt(e)},Em=function(t,e){if(t){var n=Et(t),r=Mt(t),o=Et(e),i=Mt(e),a=n<o?o:Number(i)-xm,u=r>i?i:Number(o)+xm;return[Mm(n,e)?n:a,Mm(r,e)?r:u]}return e},Cm=function(t,e,n){var r=t.handleWidth/2,o=_m(t),i=["min","max"].reduce((function(t,i){return t[i]=Mm(e,function(t){var e={min:"x"===o?Math.min.apply(Math,gm(n)):Math.max.apply(Math,gm(n)),max:"x"===o?Math.max.apply(Math,gm(n)):Math.min.apply(Math,gm(n))};return[e[t]-r,e[t]+r]}(i))?i:void 0,t}),{});return i.min&&i.max?"both":i.min||i.max},Sm={stroke:"none",fill:"black",opacity:function(t){return t.active?.2:.1}},km={pointerEvents:"none",stroke:"none",fill:"black",opacity:function(t){return t.active?.4:.3}},Dm={pointerEvents:"none",stroke:"none",fill:"none"},Tm=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&&ym(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=mm(r);if(o){var n=mm(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return vm(this,t)});function a(){return hm(this,a),i.apply(this,arguments)}return e=a,n=[{key:"getRectDimensions",value:function(t,e,n){var r=t.brushDomain,o=_m(t),i=wm(t,n||Em(r,Am(t))),a="x"===o?{y1:t.y1,y2:t.y2,x1:Math.min.apply(Math,gm(i)),x2:Math.max.apply(Math,gm(i))}:{x1:t.x1,x2:t.x2,y1:Math.min.apply(Math,gm(i)),y2:Math.max.apply(Math,gm(i))},u=a.x1,c=a.x2,l=a.y1,s=a.y2,f="x"===o?0:e/2,p="y"===o?0:e/2,h=Math.min(u,c)-f,d=Math.min(l,s)-p;return{x:h,y:d,width:Math.max(u,c)+f-h,height:Math.max(l,s)+p-d}}},{key:"getHandleDimensions",value:function(t){var e=t.handleWidth,n=t.x1,r=t.x2,o=t.y1,i=t.y2,a=t.brushDomain,u=_m(t),c=t.brushWidth||t.width,l=Em(a,Am(t)),s=wm(t,l),f=Math.min(n,r)-c/2,p=Math.min(o,i)-c/2,h={min:"x"===u?Math.min.apply(Math,gm(s))-e/2:f,max:"x"===u?Math.max.apply(Math,gm(s))-e/2:f},d={min:"y"===u?Math.max.apply(Math,gm(s))-e/2:p,max:"y"===u?Math.min.apply(Math,gm(s))-e/2:p},y="x"===u?e:c,v="x"===u?c:e;return{min:{x:h.min,y:d.min,width:y,height:v},max:{x:h.max,y:d.max,width:y,height:v}}}},{key:"getCursor",value:function(t){var e=t.activeBrushes,n=void 0===e?{}:e,r=_m(t);return n.minHandle||n.maxHandle?"x"===r?"ew-resize":"ns-resize":n.brush?"move":"crosshair"}},{key:"renderHandles",value:function(t){var e=t.handleComponent,n=t.handleStyle,r=t.id,o=t.brushDomain,i=t.datum,a=void 0===i?{}:i,u=t.activeBrushes,c=void 0===u?{}:u;if(!o)return null;var l=this.getHandleDimensions(t),s=Object.assign({},Dm,n),f=Object.assign({handleValue:Et(o)},a),p=Object.assign({handleValue:Mt(o)},a),h=Object.assign({key:"".concat(r,"-min"),style:nt(s,{datum:f,active:c.minHandle})},l.min),d=Object.assign({key:"".concat(r,"-max"),style:nt(s,{datum:p,active:c.maxHandle})},l.max);return[A().cloneElement(e,h),A().cloneElement(e,d)]}},{key:"renderBrush",value:function(t){var e=t.brushComponent,n=t.brushStyle,r=t.activeBrushes,o=void 0===r?{}:r,i=t.datum,a=void 0===i?{}:i;if(!t.brushDomain)return null;var u=t.brushWidth||t.width,c=this.getRectDimensions(t,u),l=nt(Object.assign({},km,n),{datum:a,active:o.brush}),s=Object.assign({style:l},c);return A().cloneElement(e,s)}},{key:"renderBrushArea",value:function(t){var e=t.brushAreaComponent,n=t.brushAreaStyle,r=t.activeBrushes,o=void 0===r?{}:r,i=t.datum,a=void 0===i?{}:i,u=t.brushAreaWidth||t.width,c=this.getCursor(t),l=this.getRectDimensions(t,u,Am(t)),s=nt(Object.assign({cursor:c},Sm,n),{datum:a,active:o.brushArea}),f=Object.assign({style:s},l);return A().cloneElement(e,f)}},{key:"renderLine",value:function(t){var e=H()(t,["x1","x2","y1","y2","datum","scale","active","style"]);return A().cloneElement(t.lineComponent,e)}},{key:"render",value:function(){return A().createElement("g",this.props.events,this.renderLine(this.props),this.renderBrushArea(this.props),this.renderBrush(this.props),this.renderHandles(this.props))}}],n&&dm(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);function Rm(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 Lm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rm(Object(n),!0).forEach((function(e){Im(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Im(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Tm.defaultProps={allowDrag:!0,allowDraw:!0,allowResize:!0,brushAreaComponent:A().createElement(hv,null),brushComponent:A().createElement(hv,null),groupComponent:A().createElement("g",null),handleComponent:A().createElement(hv,null),handleWidth:10,lineComponent:A().createElement(ny,null),width:10},Tm.defaultEvents=function(t){return t.disable?void 0:[{target:t.type,eventHandlers:{onMouseEnter:function(t,e){t.preventDefault();var n=e.allowResize,r=e.brushDomain,o=_m(e),i=e.parentSVG||Uv(t),a=Vv(t,i)[o],u=Am(e),c=Em(r,u),l=wm(e,c),s=n&&Cm(e,a,l),f={brushArea:!e.brushDomain,brush:Mm(a,l)&&!Up()(u,c),minHandle:"min"===s||"both"===s,maxHandle:"min"===s||"both"===s};return[{mutation:function(){return{activeBrushes:f,brushDomain:e.brushDomain,parentSVG:i}}}]},onMouseDown:function(t,e){t.preventDefault();var n=e.allowResize,r=e.allowDrag,o=e.allowDraw,i=e.activeBrushes,a=e.brushDomain,u=_m(e);if(!n&&!r)return[];var c=Am(e),l=Em(a,c),s=e.parentSVG||Uv(t),f=Vv(t,s)[u],p=wm(e,l),h=n&&Cm(e,f,p);return h?[{mutation:function(){return{parentSVG:s,isSelecting:!0,activeHandle:h,brushDomain:l,startPosition:f,activeBrushes:i}}}]:Mm(f,p)&&!Up()(c,l)?[{mutation:function(){return{isPanning:r,startPosition:f,brushDomain:l,activeBrushes:i,parentSVG:s}}}]:o?[{mutation:function(){return{isSelecting:n,brushDomain:null,startPosition:f,activeBrushes:i,parentSVG:s}}}]:[]},onMouseMove:function(t,e){var n=e.isPanning,r=e.isSelecting,o=e.allowResize,i=e.allowDrag,a=e.onBrushDomainChange,u=e.brushDomain,c=_m(e);(n||r)&&(t.preventDefault(),t.stopPropagation());var l=e.parentSVG||Uv(t),s=Vv(t,l)[c],f=Am(e),p=Em(u,f),h=wm(e,p),d=Cm(e,s,h),y={brushArea:!e.brushDomain,brush:Mm(s,h)&&!Up()(f,p),minHandle:"min"===d||"both"===d,maxHandle:"max"===d||"both"===d};if(!e.isPanning&&!e.isSelecting)return[{mutation:function(){return{activeBrushes:y,brushDomain:e.brushDomain,parentSVG:l}}}];if(i&&n){var v=Pm(e),m=function(t,e){var n=t.brushDomain,r=t.startPosition,o=wm(t,n),i=Pm(t),a=Math.abs(o[1]-o[0]),u=Math.min.apply(Math,gm(i)),c=Math.max.apply(Math,gm(i)),l=r?r-e:0,s=Math.min.apply(Math,gm(o))-l,f=Math.max.apply(Math,gm(o))-l;return[s>c-a?c-a:Math.max(s,u),f<u+a?u+a:Math.min(f,c)]}(e,s),g=jm(e,m),b={startPosition:Math.max.apply(Math,gm(m))>=Math.max.apply(Math,gm(v))||Math.min.apply(Math,gm(m))<=Math.min.apply(Math,gm(v))?e.startPosition:s,isPanning:!0,brushDomain:g,activeBrushes:{brush:!0},parentSVG:l};return lt(a)&&a(g,G()({},b,e)),[{mutation:function(){return b}}]}if(o&&r){var x=u||[0,xm],O=wm(e,x),_="min"===e.activeHandle?"max":"min",w=e.activeHandle&&"both"===Cm(e,s,O)?_:e.activeHandle;if(w){var j="x"===c?Math.max.apply(Math,gm(O)):Math.min.apply(Math,gm(O)),P="x"===c?Math.min.apply(Math,gm(O)):Math.max.apply(Math,gm(O));x=jm(e,["max"===w?P:s,"min"===w?j:s])}else x=jm(e,[e.startPosition,s]);var A={brushDomain:x,startPosition:e.startPosition,isSelecting:r,activeHandle:w,parentSVG:l,activeBrushes:{brush:!0,minHandle:"min"===d,maxHandle:"max"===d}};return lt(a)&&a(x,G()({},A,e)),[{mutation:function(){return A}}]}return[]},onMouseUp:function(t,e){var n=e.onBrushDomainChange,r=e.brushDomain,o=e.allowResize,i={isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:r,activeBrushes:e.activeBrushes};return o&&lt(n)&&n(r,G()({},i,e)),[{mutation:function(){return i}}]},onMouseLeave:function(t,e){var n=e.brushDomain;return[{mutation:function(){return{isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:n,activeBrushes:{}}}}]}}}]};var Nm={groupComponent:A().createElement("g",null),lineComponent:A().createElement(Zd,null),rectComponent:A().createElement(lf,null),role:"presentation",shapeRendering:"auto"},zm=function(t){var e=function(t){var e=nt(Object.assign({stroke:"black"},t.style),t),n=function(t,e){var n=e.style;return t?lt(t)?et(t,e):t:n.width?n.width:t}(t.candleWidth,Object.assign({},t,{style:e})),r=et(t.ariaLabel,t),o=et(t.desc,t),i=et(t.id,t),a=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:r,style:e,candleWidth:n,desc:o,id:i,tabIndex:a})}(Lm(Lm({},Nm),t)),n=e.ariaLabel,r=e.events,o=e.groupComponent,i=e.clipPath,a=e.rectComponent,u=e.lineComponent,c=e.role,l=e.shapeRendering,s=e.className,f=e.wickStrokeWidth,p=e.transform,h=e.style,d=e.desc,y=e.tabIndex,v=G()({strokeWidth:f},h),m=Lm(Lm({},r),{},{"aria-label":n,role:c,shapeRendering:l,className:s,transform:p,clipPath:i,desc:d,tabIndex:y}),g=Object.assign(function(t,e){var n=t.id,r=t.x,o=t.close,i=t.open,a=t.horizontal,u=t.candleWidth,c=Math.abs(o-i);return{key:"".concat(n,"-candle"),style:$(e,["width"]),x:a?Math.min(i,o):r-u/2,y:a?r-u/2:Math.min(i,o),width:a?c:u,height:a?u:c}}(e,h),m),b=Object.assign(function(t,e){var n=t.horizontal,r=t.high,o=t.open,i=t.close,a=t.x,u=t.id;return{key:"".concat(u,"-highWick"),style:$(e,["width"]),x1:n?r:a,x2:n?Math.max(o,i):a,y1:n?a:r,y2:n?a:Math.min(o,i)}}(e,v),m),x=Object.assign(function(t,e){var n=t.horizontal,r=t.low,o=t.open,i=t.close,a=t.x,u=t.id;return{key:"".concat(u,"-lowWick"),style:$(e,["width"]),x1:n?Math.min(o,i):a,x2:n?r:a,y1:n?a:Math.max(o,i),y2:n?a:r}}(e,v),m);return A().cloneElement(o,{},[A().cloneElement(a,g),A().cloneElement(u,b),A().cloneElement(u,x)])},Bm=["close","open","high","low"],Wm=function(t){return _a(t.data,t,["x","high","low","close","open"])},Um=function(t,e,n){var r="x"===e?"_x":{min:"_low",max:"_high"}[n],o="min"===n?1/0:-1/0;return t.reduce((function(t,e){var o=e[r];return t<o&&"min"===n||t>o&&"max"===n?t:o}),o)},Vm=function(t,e){var n=Ga(t,e),r=qa(t,e),o=Wm(t);return o.length<1?void 0!==n&&void 0!==r?Va(n,r):void 0:Va(void 0!==n?n:Um(o,e,"min"),void 0!==r?r:Um(o,e,"max"))},Fm=function(t,e){return Na(Vm)(t,e)},Hm=function(t,e,n){var r=t["".concat(n,"LabelComponent")],o=e["".concat(n,"Labels")]||e.labels;if(!Q(r))return o;var i=t.theme&&t.theme.tooltip||{};return G()({},i.style,o)},qm=function(t){return"none"===t||"transparent"===t},Gm=function(t,e,n,r){var o=t.x,i=t.high,a=t.low,u=t.open,c=t.close,l=t.index,s=t.scale,f=t.datum,p=t.data,h=t.horizontal,d=t.candleWidth,y=t.labelOrientation,v=t.theme,m=t["".concat(r,"LabelComponent")]||t.labelComponent,g=h?"top":"right",b=m.props&&m.props.orientation||function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"labels";return W()(t)?t[e]:t}(y,r)||g,x={high:i,low:a,open:u,close:c},O=n[r?"".concat(r,"Labels"):"labels"]||n.labels,_=function(t){var e=t.positions,n=t.labelStyle,r=t.x,o=t.horizontal,i=t.computedType,a=t.candleWidth,u=t.orientation;e.labels=(e.open+e.close)/2;var c="left"===u?-1:1,l="top"===u?-1:1;if(o){var s=r,f=e[i],p="top"===u||"bottom"===u?l*(a/2)+l*(n.padding||0):0;return{yValue:s,xValue:f,dx:"top"===u||"bottom"===u?0:c*(n.padding||1),dy:p}}var h=r,d=e[i],y="top"===u||"bottom"===u?l*(n.padding||1):0;return{yValue:d,xValue:h,dx:"top"===u||"bottom"===u?0:c*(a/2)+c*(n.padding||0),dy:y}}({positions:x,labelStyle:O,x:o,horizontal:h,computedType:r||"labels",candleWidth:d,orientation:b}),w={style:O,y:_.yValue,x:_.xValue,dx:_.dx,dy:_.dy,text:e,index:l,scale:s,datum:f,data:p,orientation:b,textAnchor:O.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[b],verticalAnchor:O.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[b],angle:O.angle,horizontal:h};if(!Q(m))return w;var j=v&&v.tooltip||{};return G()({},w,$(j,["style"]))},Km=function(t,e){var n=ft(t,e,"candlestick"),r=function(t){var e=t.polar,n=J(t,"candlestick"),r=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.disableInlineStyles)return{};var r="100%",o="100%";if(!e)return G()({parent:{height:o,width:r}},n);var i=n.parent||{},a=n.labels||{},u=n.data||{},c=G()({},e.labels,a);return{parent:G()({},e.parent,i,{width:r,height:o}),labels:c,data:G()({},e.data,u),openLabels:G()({},e.openLabels,Hm(t,n,"open"),c),closeLabels:G()({},e.closeLabels,Hm(t,n,"close"),c),lowLabels:G()({},e.lowLabels,Hm(t,n,"low"),c),highLabels:G()({},e.highLabels,Hm(t,n,"high"),c)}}(t,t.style,n),o=Wm(t),i={x:ut(t,"x"),y:ut(t,"y")},a={x:Fm(t,"x"),y:Fm(t,"y")},u={x:Zi(t,"x").domain(a.x).range(t.horizontal?i.y:i.x),y:Zi(t,"y").domain(a.y).range(t.horizontal?i.x:i.y)},c=e?t.origin||at(t):void 0,l=t.horizontal?"top":"right";return{domain:a,data:o,scale:u,style:r,origin:c,labelOrientation:t.labelOrientation||l}}(n),o=r.data,i=r.style,a=r.scale,u=r.domain,c=r.origin,l=r.labelOrientation,s=n.groupComponent,f=n.width,p=n.height,h=n.padding,d=n.standalone,y=n.name,v=n.candleWidth,m=n.candleRatio,g=n.theme,b=n.polar,x=n.wickStrokeWidth,O=n.labels,_=n.events,w=n.sharedEvents,j=n.horizontal,P=n.disableInlineStyles,A={parent:{domain:u,scale:a,width:f,height:p,data:o,standalone:d,theme:g,polar:b,origin:c,name:y,style:i.parent,padding:h,horizontal:j}};return o.reduce((function(t,e,r){var p=ct(e.eventKey)?r:e.eventKey,h=a.x(void 0!==e._x1?e._x1:e._x),d=function(t,e){var n=Et(e.x),r=Mt(e.x),o=Et(e.y),i=Mt(e.y),a=t._x,u=t._low,c=t._open,l=t._close,s=t._high;return(a<n||a>r)&&(a=null),u<o&&c<o&&l<o&&s<o&&(u=c=l=s=null),u>i&&c>i&&l>i&&s>i&&(u=c=l=s=null),Object.assign({},t,{_x:a,_low:u,_open:c,_close:l,_high:s})}(e,u),y=d._low,g=d._open,A=d._close,M=d._high,E=a.y(M),C=a.y(A),S=a.y(g),k=a.y(y),D=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(n.disableInlineStyles)return{};var r=t._open>t._close?n.candleColors.negative:n.candleColors.positive,o=e.fill||r,i=e.stroke,a=qm(i)?o:i||"black";return Object.assign({},e,{stroke:a,fill:o})}(d,i.data,n),T={x:h,high:E,low:k,candleWidth:v,candleRatio:m,scale:a,data:o,datum:d,groupComponent:s,index:r,style:D,width:f,polar:b,origin:c,wickStrokeWidth:x,open:S,close:C,horizontal:j,labelOrientation:l,disableInlineStyles:P};T.candleWidth=function(t,e){var n=t.data,r=t.candleWidth,o=t.scale;if(r)return lt(r)?et(r,t):r;var i=o.x.range(),a=Math.abs(i[1]-i[0]),u=n.length+2,c=(t.candleRatio||.5)*(n.length<2?8:a/u);return Math.max(1,c)}(T);var R=G()(Object.assign({},T),n);if(t[p]={data:T},O){var L=Xa(n,d,r);(null!=L||O&&(_||w))&&(t[p].labels=Gm(R,L,i))}return Bm.forEach((function(e){var r=function(t,e){var n=t.datum,r=t.index,o=t.labels,i=t["".concat(e,"Labels")];if(!i&&!o)return null;if(!0===i||!0===o){var a="_".concat(e);return"".concat(n[a])}return Array.isArray(i)?i[r]:i}(R,e),o=n.labels||n["".concat(e,"Labels")];if(null!=r||o&&(_||w)){var a="".concat(e,"Labels");t[p][a]=Gm(R,r,i,e)}})),t}),A)};function $m(t){return function(t){if(Array.isArray(t))return Ym(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 Ym(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)?Ym(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 Ym(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 Xm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zm(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 Qm(t,e){return Qm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Qm(t,e)}function Jm(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 tg(t){return tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tg(t)}var eg={width:450,height:300,padding:50,candleColors:{positive:"#ffffff",negative:"#252525"}},ng=[{x:new Date(2016,6,1),open:5,close:10,high:15,low:0},{x:new Date(2016,6,2),open:10,close:15,high:20,low:5},{x:new Date(2016,6,3),open:15,close:20,high:25,low:10},{x:new Date(2016,6,4),open:20,close:25,high:30,low:15},{x:new Date(2016,6,5),open:25,close:30,high:35,low:20},{x:new Date(2016,6,6),open:30,close:35,high:40,low:25},{x:new Date(2016,6,7),open:35,close:40,high:45,low:30},{x:new Date(2016,6,8),open:40,close:45,high:50,low:35}],rg=function(t){return!ct(t._x)&&!ct(t._y)},og=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&&Qm(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=tg(r);if(o){var n=tg(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Jm(this,t)});function a(){var t;Xm(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))).shouldRenderDatum=function(t){return!(ct(t._x)||ct(t._high)||ct(t._low)||ct(t._close)||ct(t._open))},t}return e=a,n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"renderCandleData",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rg,r=t.dataComponent,o=t.labelComponent,i=t.groupComponent,a=["close","open","low","high"];if(!i)throw new Error("VictoryCandlestick expects a groupComponent prop");var u=[];if(r){var c=this.dataKeys.reduce((function(t,o,i){var a=e.getComponentProps(r,"data",i);return n(a.datum)&&t.push(A().cloneElement(r,a)),t}),[]);u.push.apply(u,$m(c))}var l=a.flatMap((function(n){return e.dataKeys.map((function(r,o){var i="".concat(n,"Labels"),a=t["".concat(n,"LabelComponent")],u=e.getComponentProps(a,i,o);if(void 0!==u.text&&null!==u.text)return A().cloneElement(a,u)})).filter((function(t){return void 0!==t}))}));if(u.push.apply(u,$m(l)),o){var s=this.dataKeys.map((function(t,n){var r=e.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return A().cloneElement(o,r)})).filter((function(t){return void 0!==t}));u.push.apply(u,$m(s))}return this.renderContainer(i,u)}},{key:"render",value:function(){var t=ig.animationWhitelist,e=ig.role,n=ft(this.props,eg,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderCandleData(n,this.shouldRenderDatum),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}],n&&Zm(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);og.animationWhitelist=["data","domain","height","padding","samples","size","style","width"],og.displayName="VictoryCandlestick",og.role="candlestick",og.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},og.defaultProps={containerComponent:A().createElement(Zs,null),data:ng,dataComponent:A().createElement(zm,null),groupComponent:A().createElement("g",{role:"presentation"}),labelComponent:A().createElement(gp,null),highLabelComponent:A().createElement(gp,null),lowLabelComponent:A().createElement(gp,null),openLabelComponent:A().createElement(gp,null),closeLabelComponent:A().createElement(gp,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},og.getDomain=Fm,og.getData=Wm,og.getBaseProps=function(t){return Km(t,eg)},og.expectedComponents=["openLabelComponent","closeLabelComponent","highLabelComponent","lowLabelComponent","dataComponent","labelComponent","groupComponent","containerComponent"];var ig=bd(og,{components:[{name:"lowLabels"},{name:"highLabels"},{name:"openLabels"},{name:"closeLabels"},{name:"labels"},{name:"data"},{name:"parent",index:"parent"}]}),ag=A().createContext(void 0),ug=function(){var t=A().useContext(ag);if(!t)throw new Error("This component must be wrapped in a CanvasContext.Provider component.\n Try setting groupComponent={<CanvasGroup />} in your chart component.");return t},cg=function(t){var e=ug().canvasRef,n=function(t){var e=Dy(t.style,t),n=Sy(t.barWidth,Object.assign({},t,{style:e})),r=ky(t.cornerRadius,Object.assign({},t,{style:e,barWidth:n}));return Object.assign({},t,{style:e,barWidth:n,cornerRadius:r})}(t),r=n.polar,o=n.style,i=n.barWidth,a=n.cornerRadius,u=n.origin,c=A().useMemo((function(){var t=r?Yy(n,a):$y(n,i,a);return new Path2D(t)}),[r,i,a,n]),l=function(t){var e=A().useRef();return A().useEffect((function(){e.current=t})),e.current}(c),s=A().useCallback((function(t,e){t.fillStyle=o.fill,t.strokeStyle=o.stroke,t.globalAlpha=o.fillOpacity,t.lineWidth=o.strokeWidth,r&&t.translate((null==u?void 0:u.x)||0,(null==u?void 0:u.y)||0),t.fill(e),t.setTransform(1,0,0,1,0,0)}),[o,u,r]),f=A().useCallback((function(t){if(l){t.save();var e=o.strokeWidth||0;t.lineWidth=e+2,t.globalCompositeOperation="destination-out",s(t,l),t.stroke(l),t.restore()}}),[s,l,o]);return A().useEffect((function(){var t,n=null===(t=e.current)||void 0===t?void 0:t.getContext("2d");n&&(f(n),s(n,c))}),[e,s,r,i,a,n,c,f]),null},lg=function(t){var e=A().useRef(null),n=t.children,r=t.width,o=void 0===r?0:r,i=t.height,a=void 0===i?0:i,u=t.clipWidth,c=t.padding,l=A().useCallback((function(t){return t.clearRect(0,0,o,a)}),[o,a]),s=A().useCallback((function(t){var e="number"==typeof c?c:(null==c?void 0:c.right)||0,n="number"==typeof c?c:(null==c?void 0:c.left)||0,r=o-e-n;t.clearRect(o-e,0,u?-1*(r-u):0,a)}),[o,a,c,u]);return A().createElement(ag.Provider,{value:{canvasRef:e,clear:l,clip:s}},A().createElement("foreignObject",{width:o,height:a,x:0,y:0},A().createElement("canvas",{width:o,height:a,ref:e})),n)};lg.role="container";var sg=function(t){var e=ug(),n=e.canvasRef,r=e.clear,o=e.clip,i=t.style,a=t.data,u=i.stroke,c=i.strokeWidth,l=A().useCallback((function(e){var n=Fl(t);e.strokeStyle=u,e.lineWidth=c,n.context(e)(a),e.stroke()}),[a,t,u,c]);return A().useEffect((function(){var t,e=null===(t=n.current)||void 0===t?void 0:t.getContext("2d");e&&(r(e),l(e),o(e))}),[n,l,r,o]),null};function fg(t,e,n){return"M ".concat(t,", ").concat(e,"\n m ").concat(-n,", 0\n a ").concat(n,", ").concat(n," 0 1,0 ").concat(2*n,",0\n a ").concat(n,", ").concat(n," 0 1,0 ").concat(2*-n,",0")}function pg(t,e,n){var r=.87*n,o=t-r,i=e+r,a=t+r-o;return"M ".concat(o,", ").concat(i,"\n h").concat(a,"\n v-").concat(a,"\n h-").concat(a,"\n z")}function hg(t,e,n){var r=.87*n,o=Math.sqrt(r*r*2);return"M ".concat(t,", ").concat(e+o,"\n l ").concat(o,", -").concat(o,"\n l -").concat(o,", -").concat(o,"\n l -").concat(o,", ").concat(o,"\n l ").concat(o,", ").concat(o,"\n z")}function dg(t,e,n){var r=t+n,o=e-n,i=e+n/2*Math.sqrt(3);return"M ".concat(t-n,", ").concat(o,"\n L ").concat(r,", ").concat(o,"\n L ").concat(t,", ").concat(i,"\n z")}function yg(t,e,n){var r=t+n,o=e-n/2*Math.sqrt(3),i=e+n;return"M ".concat(t-n,", ").concat(i,"\n L ").concat(r,", ").concat(i,"\n L ").concat(t,", ").concat(o,"\n z")}function vg(t,e,n){var r=1.1*n,o=r/1.5;return"\n M ".concat(t-o/2,", ").concat(e+r,"\n v-").concat(o,"\n h-").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h-").concat(o,"\n v").concat(o,"\n z")}function mg(t,e,n){var r=.8*n,o=r/1.5;return"\n M ".concat(t-o/2,", ").concat(e+r+o,"\n v-").concat(2*o,"\n h-").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h-").concat(o,"\n v").concat(2*o,"\n z")}function gg(t,e,n){var r=1.1*n,o=r-.3*r,i=t-r,a=e+o/2,u=t+r-i;return"M ".concat(i,", ").concat(a,"\n h").concat(u,"\n v-").concat(o,"\n h-").concat(u,"\n z")}function bg(t,e,n){var r=1.35*n,o=Math.PI/5,i=dt(10).map((function(n){var i=n%2==0?r:r/2;return"".concat(i*Math.sin(o*(n+1))+t,",\n ").concat(i*Math.cos(o*(n+1))+e)}));return"M ".concat(i.join("L")," z")}var xg=function(t){var e=ug().canvasRef,n=function(t){var e=et(t.size,t),n=nt(t.style,t),r=et(t.symbol,t);return Object.assign({},t,{size:e,style:n,symbol:r})}(t),r=A().useCallback((function(t){var e=n.style,r=function(t){var e=t.x,n=t.y,r=t.size,o=t.symbol;if(t.getPath)return t.getPath(e,n,r);var i={circle:fg,square:pg,diamond:hg,triangleDown:dg,triangleUp:yg,plus:vg,minus:gg,star:bg,cross:mg};return("function"==typeof i[o]?i[o]:i.circle)(e,n,r)}(n);t.fillStyle=e.fill;var o=new Path2D(r);t.fill(o)}),[n]);return A().useEffect((function(){var t,n=null===(t=e.current)||void 0===t?void 0:t.getContext("2d");n&&r(n)}),[]),null};function Og(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 _g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Og(Object(n),!0).forEach((function(e){wg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Og(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function wg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jg={circleComponent:A().createElement(rf,null),rectComponent:A().createElement(lf,null),role:"presentation",shapeRendering:"auto"},Pg=function(t){var e=function(t){var e=et(t.id,t);return Object.assign({},t,{id:e})}(_g(_g({},jg),t));return e.polar?A().cloneElement(e.circleComponent,_g(_g({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,cx:e.x,cy:e.y,r:e.height,className:e.className})):A().cloneElement(e.rectComponent,_g(_g({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,rx:e.rx,ry:e.ry,width:e.width,height:e.height,className:e.className}))};function Ag(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 Mg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ag(Object(n),!0).forEach((function(e){Eg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Eg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cg(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 Sg(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)?Sg(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 Sg(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 kg={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},Dg=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kg,e=A().useState(t),n=Cg(e,2),r=n[0],o=n[1],i=A().useCallback((function(t){o((function(e){return Mg(Mg({},e),t)}))}),[o]),a=A().useCallback((function(t,e,n){if(null==t||!t.animate)return e.props.animate;var o,a=t.animate&&t.animate.getTransitions,u=(o=Pt(o=r&&r.childrenTransitions)?o[n]:o,G()({childrenTransitions:o},r)),c=t.animate&&t.animate.parentState||u;if(!a){var l=Lh(t,u,(function(t){return i(t)}));a=function(t){return l(t,n)}}return G()({getTransitions:a,parentState:c},t.animate,e.props.animate)}),[r,i]),u=A().useCallback((function(t,e){if(null!=t&&t.animate)if(t.animate.parentState){var n=t.animate.parentState.nodesWillExit?t:null,r=G()({oldProps:n,nextProps:e},t.animate.parentState);i(r)}else{var o=A().Children.toArray(t.children),a=A().Children.toArray(e.children),u=function(t){var e=function(t){return t.type&&t.type.continuous};return Array.isArray(t)?t.some(e):e(t)},c=!t.polar&&o.some((function(t){var e;return u(t)||(null==t||null===(e=t.props)||void 0===e?void 0:e.children)&&u(t.props.children)})),l=Rh(o,a),s=l.nodesWillExit,f=l.nodesWillEnter,p=l.childrenTransitions,h=l.nodesShouldEnter;i({nodesWillExit:s,nodesWillEnter:f,nodesShouldEnter:h,childrenTransitions:Pt(p)?p[0]:p,oldProps:s?t:void 0,nextProps:e,continuous:c})}}),[i]),c=A().useCallback((function(t){return r&&r.nodesWillExit&&r.oldProps||t}),[r]);return{state:r,setState:i,getAnimationProps:a,setAnimationState:u,getProps:c}},Tg=r(8961),Rg=r.n(Tg);function Lg(t){return function(t){if(Array.isArray(t))return Ig(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 Ig(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)?Ig(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 Ig(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 Ng(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 zg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ng(Object(n),!0).forEach((function(e){Bg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ng(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wg(t){var e=t.children,n=t.props,r=t.childComponents,o=t.parentProps,i=e.some((function(t){return t.type&&"histogram"===t.type.role})),a=i&&e.length&&e.every((function(t){return t.type&&"histogram"===t.type.role}));if(!a)return o;var u=n.bins||r[0].props.bins;if(!Array.isArray(u)){var c=e.reduce((function(t,e){var n=st(e.props.x||"x");return t.concat(e.props.data.map((function(t){return{x:n(t)}})))}),[]);u=(0,e[0].type.getFormattedData)({data:c,bins:u}).reduce((function(t,e,n){var r=e.x0,o=e.x1;return 0===n?t.concat([r,o]):t.concat(o)}),[])}return zg(zg({},o),{},{bins:u})}function Ug(t,e){var n={polar:t.polar,startAngle:t.startAngle,endAngle:t.endAngle,categories:t.categories,minDomain:t.minDomain,maxDomain:t.maxDomain},r=0,o=e?e.slice(0):A().Children.toArray(t.children);n=Wg({children:o,props:t,childComponents:e,parentProps:n});var i=o.filter((function(t){return t.type&&"stack"===t.type.role})).length,a=yt(o,(function(t,e,o){var i,a=Object.assign({},t.props,n);return Ca(t)?(i=t.type&&lt(t.type.getData)?(o?A().cloneElement(t,o.props):t).type.getData(a):Pa(a),r+=1,i.map((function(t,e){return Object.assign({_stack:r,_group:e},t)}))):null}),t,[],(function(t,e){return t.concat(Rg()(e,"_group"))})),u=i?"_group":"_stack";return Object.values(xv()(a,u))}function Vg(t,e){return t.data?Pa(t):Ug(t,e||A().Children.toArray(t.children))}function Fg(t,e,n){var r=t.datasets,o=ut(t,t.horizontal?"y":"x"),i=Math.abs(o[1]-o[0]),a=void 0!==n?n:Array.isArray(r[0])&&r[0].length||1,u=(e||r.length)*a;return Math.round(.5*i/u)}function Hg(t,e,n){if(!t.polar&&"x"===e){var r=n.filter((function(t){return t.type&&t.type.role&&"group"===t.type.role}));if(!(r.length<1)){var o=r[0].props,i=o.offset,a=o.children;if(i){var u=Array.isArray(a)&&a[0];if(u){var c=u.props.barWidth,l=u.props.data&&u.props.data.length||1;if(u&&"stack"===u.type.role){var s=u.props.children&&u.props.children[0];if(!s)return;c=s.props.barWidth,l=u.props.children.length}var f=c||Fg(t,a.length,l);return{x:f*a.length/2+(i-f*((a.length-1)/2))}}}}}}function qg(t,e,n){var r=n?n.slice(0):A().Children.toArray(t.children),o=t.data?Pa(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=yt(r,(function(t){var n=Object.assign({},t.props,p);return $a(t)?t.type&&lt(t.type.getDomain)?t.props&&t.type.getDomain(n,e):Ba(n,e):null}),t);return[0===h.length?0:Et(h),0===h.length?1:Mt(h)]}function Gg(t,e,n){var r,o=n||A().Children.toArray(t.children),i=Fa(t,e),a=Hg(t,e,o);if(i)r=i;else{var u=Ga(t,e),c=qa(t,e),l=(t.data||t.y)&&Pa(t),s=l?Ua(t,e,l):[],f=qg(t,e,o);r=Va(u||Et([].concat(Lg(s),Lg(f))),c||Mt([].concat(Lg(s),Lg(f))))}return za(r,Object.assign({domainPadding:a},t),e)}function Kg(t,e,n){if(t.data)return Zi(t,e);var r=n?n.slice(0):A().Children.toArray(t.children),o=V()(yt(r,(function(n){return ta(Object.assign({},n.props,{horizontal:t.horizontal}),e)}),t));return o.length>1?Xi("linear"):Xi(o[0])}function $g(t){var e=ed(t,["groupComponent","containerComponent","labelComponent"]),n=t.events;return Array.isArray(e)&&(n=Array.isArray(t.events)?e.concat.apply(e,Lg(t.events)):e),n||[]}function Yg(t,e,n){var r=t.style,o=t.colorScale,i=t.color;if(r&&r.data&&r.data.fill)return r.data.fill;if(o=e.props&&e.props.colorScale?e.props.colorScale:o,i=e.props&&e.props.color?e.props.color:i,o||i){var a=Array.isArray(o)?o:If(o);return i||a[n%a.length]}}function Xg(t,e,n){return tt(e,t&&t[n]&&t[n].style?t[n].style:{})}function Zg(t,e,n){var r=n.style,o=n.role,i=t.props.style||{};if(Array.isArray(i))return i;var a=t.type&&t.type.role,u="stack"===a?void 0:Yg(n,t,e),c="line"===a?{fill:"none",stroke:u}:{fill:u},l="stack"===o?{}:{width:Fg(n)},s=G()({},i.data,Object.assign({},l,r.data,c)),f=G()({},i.labels,r.labels);return zg(zg({},i),{},{parent:r.parent,data:s,labels:f})}function Qg(t,e){return yt(t.slice(0),(function(t){var n=t.props||{};if(!$a(t)||!n.categories)return null;var r=n.categories&&!Array.isArray(n.categories)?n.categories[e]:n.props.categories,o=r&&r.filter((function(t){return"string"==typeof t}));return o?At(o):[]}))}function Jg(t){return yt(t.slice(0),(function(t){var e=t.props||{};return Ca(t)?(t.type&&lt(t.type.getData)?t.type.getData(e):Pa(e)).map((function(t){return{x:t.xName,y:t.yName}})):null}),{},{x:[],y:[]},(function(t,e){var n=Array.isArray(e)?e.map((function(t){return t.x})).filter(Boolean):e.x,r=Array.isArray(e)?e.map((function(t){return t.y})).filter(Boolean):e.y;return{x:void 0!==n?t.x.concat(n):t.x,y:void 0!==r?t.y.concat(r):t.y}}))}function tb(t,e,n){var r=W()(t.categories)?t.categories[e]:t.categories,o=Td(n,e),i=o?Aa(o.props,e):[],a=r||Qg(n,e);return V()([].concat(Lg(a),Lg(i)).flat())}function eb(t,e){var n=e||A().Children.toArray(t.children),r=tb(t,"x",n),o=tb(t,"y",n),i=Jg(n);return{x:V()([].concat(Lg(r),Lg(i.x)).flat()),y:V()([].concat(Lg(o),Lg(i.y)).flat())}}function nb(t,e,n){var r=t.categories&&!Array.isArray(t.categories)?t.categories.x:t.categories,o=t.categories&&!Array.isArray(t.categories)?t.categories.y:t.categories,i=r&&o?{}:n||eb(t,e),a=r||i.x,u=o||i.y;return{x:a.length>0?a:void 0,y:u.length>0?u:void 0}}function rb(t){var e=A().useRef();return A().useEffect((function(){e.current=t})),e.current}var ob=r(7314),ib=r.n(ob),ab=r(2516),ub=r.n(ab);function cb(t,e){if(t){if("string"==typeof t)return lb(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)?lb(t,e):void 0}}function lb(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 sb(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 fb(t,e){return fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fb(t,e)}function pb(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 hb(t)}function hb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function db(t){return db=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},db(t)}var yb=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&&fb(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=db(r);if(o){var n=db(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return pb(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)).getScopedEvents=void 0,e.getEventState=void 0,e.baseProps=void 0,e.sharedEventsCache=void 0,e.globalEvents=void 0,e.prevGlobalEventKeys=void 0,e.boundGlobalEvents=void 0,e.getScopedEvents=Yh.bind(hb(e)),e.getEventState=Zh.bind(hb(e)),e.state=e.state||{},e.sharedEventsCache={},e.globalEvents={},e.prevGlobalEventKeys=[],e.boundGlobalEvents={},e.baseProps=e.getBaseProps(t),e}return e=a,n=[{key:"shouldComponentUpdate",value:function(t){if(!Up()(this.props,t)){this.baseProps=this.getBaseProps(t);var e=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,e)}return!0}},{key:"componentDidMount",value:function(){var t=this,e=Object.keys(this.globalEvents);e.forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentDidUpdate",value:function(){var t=this,e=Object.keys(this.globalEvents);jt(this.prevGlobalEventKeys,e).forEach((function(e){return t.removeGlobalListener(e)})),jt(e,this.prevGlobalEventKeys).forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(e){return t.removeGlobalListener(e)}))}},{key:"addGlobalListener",value:function(t){var e=this,n=function(n){var r=e.globalEvents[t];return r&&r(id(n))};this.boundGlobalEvents[t]=n,window.addEventListener(nd(t),n)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(nd(t),this.boundGlobalEvents[t])}},{key:"getAllEvents",value:function(t){var e,n=ed(t,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(t.events)?n.concat.apply(n,function(t){if(Array.isArray(t))return lb(t)}(e=t.events)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||cb(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.")}()):n:t.events}},{key:"applyExternalMutations",value:function(t,e){if(!R()(e)){var n=t.externalEventMutations.reduce((function(t,e){return lt(e.callback)?t.concat(e.callback):t}),[]),r=n.length?function(){n.forEach((function(t){return t()}))}:void 0;this.setState(e,r)}}},{key:"getExternalMutations",value:function(t,e){return R()(t.externalEventMutations)?void 0:Qh(t.externalEventMutations,e,this.state,Object.keys(e))}},{key:"cacheSharedEvents",value:function(t,e,n){this.sharedEventsCache[t]=[e,n]}},{key:"getCachedSharedEvents",value:function(t,e){var n,r,o=(n=this.sharedEventsCache[t]||[],r=2,function(t){if(Array.isArray(t))return t}(n)||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}}(n,r)||cb(n,r)||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.")}()),i=o[0],a=o[1];if(i&&Up()(e,a))return i}},{key:"getBaseProps",value:function(t){var e=t.container,n=A().Children.toArray(this.props.children),r=this.getBasePropsFromChildren(n),o=e?e.props:{};return Object.assign({},r,{parent:o})}},{key:"getBasePropsFromChildren",value:function(t){var e=yt(t,(function(t,e){if(t.type&&lt(t.type.getBaseProps)){var n=t.props&&t.type.getBaseProps(t.props);return n?[[e,n]]:null}return null}));return ib()(e)}},{key:"getNewChildren",value:function(t,e){var n=this,r=t.events,o=t.eventKey,i=function(t,a){return t.reduce((function(t,u,c){if(u.props.children){var l=A().Children.toArray(u.props.children),s=a.slice(c,c+l.length),f=A().cloneElement(u,u.props,i(l,s));return t.concat(f)}if("parent"!==a[c]&&u.type&&lt(u.type.getBaseProps)){var p=u.props.name||a[c],h=Array.isArray(r)&&r.filter((function(t){return"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(p)>-1:t.childName===p||"all"===t.childName)})),d=[p,e,h,ub()(n.state[p])],y=n.getCachedSharedEvents(p,d)||{events:h,getEvents:function(t,r){return n.getScopedEvents(t,r,p,e)},getEventState:function(t,e){return n.getEventState(t,e,p)}};return n.cacheSharedEvents(p,y,d),t.concat(A().cloneElement(u,Object.assign({key:"events-".concat(p),sharedEvents:y,eventKey:o,name:p},u.props)))}return t.concat(u)}),[])},a=Object.keys(e),u=A().Children.toArray(t.children);return i(u,a)}},{key:"getContainer",value:function(t,e,n){var r=this,o=this.getNewChildren(t,e),i=Array.isArray(n)?n.filter((function(t){return"parent"===t.target})):[],a=i.length>0?{events:i,getEvents:function(t,n){return r.getScopedEvents(t,n,null,e)},getEventState:this.getEventState}:null,u=t.container||t.groupComponent,c=u.type&&u.type.role,l=u.props||{},s=$h.bind(this),f=a&&s({sharedEvents:a},"parent"),p=G()({},this.getEventState("parent","parent"),l,e.parent,{children:o}),h=G()({},Xh(f,"parent",p),l.events);this.globalEvents=rd(h);var d=od(h);return"container"===c?A().cloneElement(u,Object.assign({},p,{events:d})):A().cloneElement(u,d,o)}},{key:"render",value:function(){var t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):A().cloneElement(this.props.container,{children:this.props.children})}}],n&&sb(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);function vb(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 mb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vb(Object(n),!0).forEach((function(e){gb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vb(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}yb.displayName="VictorySharedEvents",yb.role="shared-event-wrapper",yb.contextType=Vs,yb.defaultProps={groupComponent:A().createElement("g",null)};var bb=function(t){var e=t.cx,n=t.cy,r=t.r,o=t.startAngle,i=t.endAngle,a=t.closedPath,u=Math.abs(i-o)/2+o,c=e+r*Math.cos(rt(o)),l=n-r*Math.sin(rt(o)),s=e+r*Math.cos(rt(u)),f=n-r*Math.sin(rt(u)),p=e+r*Math.cos(rt(i)),h=n-r*Math.sin(rt(i)),d=u-o<=180?0:1,y=i-u<=180?0:1,v=a?" M ".concat(e,", ").concat(n," L ").concat(c,", ").concat(l):"M ".concat(c,", ").concat(l),m="A ".concat(r,", ").concat(r,", 0, ").concat(d,", 0, ").concat(s,", ").concat(f),g="A ".concat(r,", ").concat(r,", 0, ").concat(y,", 0, ").concat(p,", ").concat(h),b=a?"Z":"";return"".concat(v," ").concat(m," ").concat(g," ").concat(b)},xb={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},Ob=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=nt(Object.assign({stroke:"black",fill:"none"},t.style),t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(mb(mb({},xb),t));return A().cloneElement(e.pathComponent,mb(mb({},e.events),{},{"aria-label":e.ariaLabel,d:bb(e),style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,transform:e.transform,clipPath:e.clipPath}))},_b=function(t,e,n){return"x"===n?t*Math.cos(e):-t*Math.sin(e)},wb=function(t){var e=t.dependentAxis?"radial":"angular",n="angular"===e?"radial":"angular";return t.horizontal?n:e},jb=function(t,e){return{tickStyle:nt(t.ticks,e),labelStyle:nt(t.tickLabels,e),gridStyle:nt(t.grid,e)}},Pb=function(t){var e=Z(t),n=e.left,r=e.right,o=e.top,i=e.bottom,a=t.width,u=t.height;if(void 0===a||void 0===u)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(a-n-r,u-o-i)/2},Ab=function(t,e){if(t.range&&t.range[e])return t.range[e];if(t.range&&Array.isArray(t.range))return t.range;if("angular"===wb(t))return[rt(t.startAngle),rt(t.endAngle)];var n=Pb(t);return[t.innerRadius||0,n]},Mb=function(t){var e=kd(t),n=Zi(t,e),r=Hd(t,e)||n.domain(),o=Ab(t,e);return n.range(o),n.domain(r),n},Eb=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.disableInlineStyles)return{};var n=t.style||{},r={height:"auto",width:"100%"};return{parent:G()(r,n.parent,e.parent),axis:G()({},n.axis,e.axis),axisLabel:G()({},n.axisLabel,e.axisLabel),grid:G()({},n.grid,e.grid),ticks:G()({},n.ticks,e.ticks),tickLabels:G()({},n.tickLabels,e.tickLabels)}},Cb=function(t){var e=t.axisAngle,n=t.startAngle,r=t.dependentAxis,o=qd(t,kd(t));return void 0!==o&&r?ot(o):void 0===e?n:e},Sb=function(t,e,n,r){var o=e.axisType,i=e.radius,a=e.scale,u=e.style,c=e.stringTicks,l=e.ticks,s=e.tickFormat,f=e.origin,p=s(n,r,l),h=c?c[r]:n,d=jb(u,{tick:h,tickValue:n,index:r,ticks:l,stringTicks:c,radius:i,scale:a,axisType:o,text:p}).tickStyle,y="radial"===o?Cb(t):void 0,v=d.padding||d.size||0,m=rt(90-y),g="angular"===o?a(n):rt(-1*y),b="angular"===o?i:a(n);return"angular"===o?{index:r,datum:h,style:d,x1:_b(b,g,"x")+f.x,y1:_b(b,g,"y")+f.y,x2:_b(b+v,g,"x")+f.x,y2:_b(b+v,g,"y")+f.y}:{index:r,datum:h,style:d,x1:b*Math.cos(g)+Math.cos(m)*v+f.x,x2:b*Math.cos(g)-Math.cos(m)*v+f.x,y1:b*Math.sin(g)+Math.sin(m)*v+f.y,y2:b*Math.sin(g)-Math.sin(m)*v+f.y}},kb=function(t,e,n,r){var o=e.axisType,i=e.radius,a=e.tickFormat,u=e.style,c=e.scale,l=e.ticks,s=e.stringTicks,f=e.origin,p=a(n,r,l),h=s?s[r]:n,d=jb(u,{text:p,tick:h,tickValue:n,index:r,ticks:l,stringTicks:s,radius:i,scale:c,axisType:o}).labelStyle,y=t.tickLabelComponent,v=null!=y&&y.props.labelPlacement?y.props.labelPlacement:t.labelPlacement,m=d.padding||0,g="radial"===o?Cb(t):void 0,b="angular"===o?ot(c(n)):g+0,x=void 0===d.angle?Ja(Object.assign({},t,{labelPlacement:v}),b):d.angle,O="angular"===o?i+m:c(n);return{index:r,datum:h,style:d,angle:x,textAnchor:d.textAnchor||Za(Object.assign({},t,{labelPlacement:v}),b),text:p,x:O*Math.cos(rt(b))+f.x,y:-O*Math.sin(rt(b))+f.y}},Db=function(t,e,n,r){var o=e.axisType,i=e.radius,a=e.style,u=e.scale,c=e.stringTicks,l=e.ticks,s=e.tickFormat,f=e.origin,p=s(n,r,l),h=t.startAngle,d=t.endAngle,y=t.innerRadius,v=void 0===y?0:y,m=c?c[r]:n,g=jb(a,{tick:m,tickValue:n,index:r,ticks:l,stringTicks:c,radius:i,scale:u,axisType:o,text:p}).gridStyle,b=u(n);return"angular"===o?{index:r,datum:m,style:g,x1:_b(i,b,"x")+f.x,y1:_b(i,b,"y")+f.y,x2:_b(v,b,"x")+f.x,y2:_b(v,b,"y")+f.y}:{style:g,index:r,datum:m,cx:f.x,cy:f.y,r:u(n),startAngle:h,endAngle:d}},Tb=function(t,e){var n=Gd(t,e),r=function(t){var e=Object.assign({polar:!0},t),n=function(t){var e,n,r=t.theme,o=void 0===r?{}:r,i=t.dependentAxis,a=o.polarAxis&&o.polarAxis.style||o.axis&&o.axis.style,u=i?"dependentAxis":"independentAxis",c=(null==o||null===(e=o[i?"polarDependentAxis":"polarIndependentAxis"])||void 0===e?void 0:e.style)||(null==o||null===(n=o[u])||void 0===n?void 0:n.style);return a&&c?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((function(t,e){return t[e]=G()({},null==c?void 0:c[e],null==a?void 0:a[e]),t}),{}):c||a}(e),r=Eb(e,n),o=Z(e),i=kd(e),a=wb(e),u=zd(e)?e.tickValues:void 0,c=Hd(e,i),l=Ab(e,i),s=Mb(e),f=Vd(e,s),p="angular"===a?function(t,e){return Rg()(t,(function(t){return e(t)%(2*Math.PI)}))}(f,s):f;return{axis:i,style:r,padding:o,stringTicks:u,axisType:a,scale:s,ticks:p,tickFormat:Wd(e,s),domain:c,range:l,radius:Pb(e),origin:at(e)}}(n),o=r.style,i=r.scale,a=r.ticks,u=r.domain,c=n.width,l=n.height,s=n.standalone,f=n.theme,p=n.name,h=function(t,e){var n=e.style,r=e.axisType,o=e.radius,i=e.origin,a=t.startAngle,u=t.endAngle,c=t.innerRadius,l=void 0===c?0:c,s="radial"===r?rt(Cb(t)):void 0;return"radial"===r?{style:n.axis,x1:_b(l,s,"x")+i.x,x2:_b(o,s,"x")+i.x,y1:_b(l,s,"y")+i.y,y2:_b(o,s,"y")+i.y}:{style:n.axis,cx:i.x,cy:i.y,r:o,startAngle:a,endAngle:u}}(n,r),d=function(t,e){var n=e.axisType,r=e.radius,o=e.style,i=e.origin,a=t.axisLabelComponent;if("radial"!==n)return{};var u=null!=a&&a.props.labelPlacement?a.props.labelPlacement:t.labelPlacement,c=o&&o.axisLabel||{},l="radial"===n?Cb(t):void 0,s=void 0===c.angle?Ja(Object.assign({},t,{labelPlacement:u}),l):c.angle,f=r+(c.padding||0);return{style:c,angle:s,textAnchor:c.textAnchor||Za(Object.assign({},t,{labelPlacement:u}),l),verticalAnchor:c.verticalAnchor||Qa(Object.assign({},t,{labelPlacement:u}),l),text:t.label,x:_b(f,rt(l),"x")+i.x,y:_b(f,rt(l),"y")+i.y}}(n,r),y={parent:{style:o.parent,ticks:a,scale:i,width:c,height:l,domain:u,standalone:s,theme:f,name:p}};return a.reduce((function(t,e,o){return t[o]={axis:h,axisLabel:d,ticks:Sb(n,r,e,o),tickLabels:kb(n,r,e,o),grid:Db(n,r,e,o)},t}),y)};function Rb(t){return function(t){if(Array.isArray(t))return Lb(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 Lb(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)?Lb(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 Lb(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 Ib(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nb(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 zb(t,e){return zb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zb(t,e)}function Bb(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 Wb(t){return Wb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wb(t)}var Ub={width:450,height:300,padding:50},Vb=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&&zb(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=Wb(r);if(o){var n=Wb(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Bb(this,t)});function a(){return Ib(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"renderAxisLine",value:function(t){var e=t.dependentAxis?t.axisComponent:t.circularAxisComponent,n=this.getComponentProps(e,"axis",0);return A().cloneElement(e,n)}},{key:"renderLabel",value:function(t){var e=t.axisLabelComponent,n=t.dependentAxis;if(!t.label||!n)return null;var r=this.getComponentProps(e,"axisLabel",0);return A().cloneElement(e,r)}},{key:"renderAxis",value:function(t){var e=this,n=t.tickComponent,r=t.tickLabelComponent,o=t.name,i=function(t){var e=t.style,n=void 0===e?{}:e,r=t.events,o=void 0===r?{}:r;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!R()(o)},a="radial"==(t.dependentAxis?"radial":"angular")?t.circularGridComponent:t.gridComponent,u=this.dataKeys.map((function(t,r){var a=Object.assign({key:"".concat(o,"-tick-").concat(t)},e.getComponentProps(n,"ticks",r)),u=A().cloneElement(n,a);return i(u.props)?u:void 0})).filter(Boolean),c=this.dataKeys.map((function(t,n){var r=Object.assign({key:"".concat(o,"-grid-").concat(t)},e.getComponentProps(a,"grid",n)),u=A().cloneElement(a,r);return i(u.props)?u:void 0})).filter(Boolean),l=this.dataKeys.map((function(t,n){var i=Object.assign({key:"".concat(o,"-tick-").concat(t)},e.getComponentProps(r,"tickLabels",n));return A().cloneElement(r,i)})),s=[this.renderAxisLine(t),this.renderLabel(t)].concat(Rb(u),Rb(c),Rb(l));return this.renderGroup(t,s)}},{key:"renderGroup",value:function(t,e){var n=t.groupComponent;return A().cloneElement(n,{},e)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=Fb.animationWhitelist,e=Gd(this.props,Ub);if(this.shouldAnimate())return this.animateComponent(e,t);var n=this.renderAxis(e);return e.standalone?this.renderContainer(e.containerComponent,n):n}}])&&Nb(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Vb.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"],Vb.displayName="VictoryAxis",Vb.role="axis",Vb.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},Vb.defaultProps={axisComponent:A().createElement(ny,null),axisLabelComponent:A().createElement(gp,null),circularAxisComponent:A().createElement(Ob,null),circularGridComponent:A().createElement(Ob,null),containerComponent:A().createElement(Zs,null),endAngle:360,gridComponent:A().createElement(ny,null),groupComponent:A().createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Ip.grayscale,tickComponent:A().createElement(ny,null),tickLabelComponent:A().createElement(gp,null)},Vb.getDomain=Hd,Vb.getAxis=kd,Vb.getScale=Mb,Vb.getStyles=function(t){return Eb(t,Ub.style)},Vb.getBaseProps=function(t){return Tb(t,Ub)},Vb.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];var Fb=bd(Vb,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),Hb={width:450,height:300,padding:50};function qb(t,e){var n=function(t){var e=t.style&&t.style.parent;return{parent:G()({},e,{height:"100%",width:"100%",userSelect:"none"})}}(t),r=ft(t,Hb,"chart"),o=r.horizontal,i=r.polar,a=eb(r,e),u=nb(r,e,a),c=$b(r,e,a),l={x:Kb(Object.assign({},r,{categories:u}),"x",e),y:Kb(Object.assign({},r,{categories:u}),"y",e)},s={x:ut(r,"x"),y:ut(r,"y")},f={x:Ji(r,"x")||Kg(r,"x"),y:Ji(r,"y")||Kg(r,"y")};return{categories:u,domain:l,range:s,horizontal:o,scale:{x:f.x.domain(l.x).range(o?s.y:s.x),y:f.y.domain(l.y).range(o?s.x:s.y)},stringMap:c,style:n,origin:i?at(r):Ld(l),padding:Z(r)}}var Gb=function(t,e){var n=A().Children.toArray(t.children);if(0===n.length)n.push(e.independent,e.dependent);else{var r={dependent:Rd(n,"dependent"),independent:Rd(n,"independent")};0===r.dependent.length&&0===r.independent.length&&(n=t.prependDefaultAxes?[e.independent,e.dependent].concat(n):n.concat([e.independent,e.dependent]))}return n},Kb=function(t,e,n){var r=n||A().Children.toArray(t.children),o=Gg(t,e,r),i=Td(r,e);return i&&i.props&&i.props.invertAxis?o.concat().reverse():o},$b=function(t,e,n){var r=n.x&&0!==n.x.length?n.x.reduce((function(t,e,n){return t[e]=n+1,t}),{}):null,o=n.y&&0!==n.y.length?n.y.reduce((function(t,e,n){return t[e]=n+1,t}),{}):null;return{x:r,y:o}};function Yb(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 Xb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yb(Object(n),!0).forEach((function(e){Zb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yb(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qb={width:450,height:300,padding:50},Jb={backgroundComponent:A().createElement(Pg,null),containerComponent:A().createElement(Zs,null),defaultAxes:{independent:A().createElement(Ey,null),dependent:A().createElement(Ey,{dependentAxis:!0})},defaultPolarAxes:{independent:A().createElement(Fb,null),dependent:A().createElement(Fb,{dependentAxis:!0})},groupComponent:A().createElement("g",null),standalone:!0,theme:Ip.grayscale},tx=function(t){var e=A().useMemo((function(){return Xb(Xb({},Jb),t)}),[t]),n=Dg(),r=n.getAnimationProps,o=n.setAnimationState,i=(0,n.getProps)(e),a=ft(i,Qb,"chart"),u=a.desc,c=a.eventKey,l=a.containerComponent,s=a.standalone,f=a.groupComponent,p=a.externalEventMutations,h=a.width,d=a.height,y=a.theme,v=a.polar,m=a.name,g=a.title,b=i.polar?a.defaultPolarAxes:a.defaultAxes,x=A().useMemo((function(){return Gb(a,b)}),[a,b]),O=A().useMemo((function(){return qb(a,x)}),[a,x]),_=O.domain,w=O.scale,j=O.style,P=O.origin,M=O.horizontal,E=A().useMemo((function(){var t=function(t,e,n){var r=e||Gb(t),o=n||qb(t,r),i=o.style.parent,a=t.height,u=t.polar,c=t.theme,l=t.width,s=o.origin,f=o.horizontal,p=t.name||"chart";return r.filter(A().isValidElement).map((function(e,n){var r=e.type&&e.type.role,h=Array.isArray(e.props.style)?e.props.style:G()({},e.props.style,{parent:i}),d=function(t,e,n){var r=Dd([t]);return r.length>0?function(t,e,n){var r=n.domain,o=n.scale,i=n.stringMap,a=n.categories;return{stringMap:i,horizontal:n.horizontal,categories:a,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,domain:r,scale:o}}(r[0],e,n):{categories:n.categories,domain:n.domain,range:n.range,scale:n.scale,stringMap:n.stringMap,horizontal:n.horizontal}}(e,t,o),y=e.props.name||"".concat(p,"-").concat(r,"-").concat(n),v=G()({horizontal:f,height:a,polar:u,theme:c,width:l,style:h,name:y,origin:u?s:void 0,padding:o.padding,key:"".concat(y,"-key-").concat(n),standalone:!1},d);return A().cloneElement(e,v)}))}(i,x,O).map((function(t,e){var n=Object.assign({animate:r(i,t,e)},t.props);return A().cloneElement(t,n)}));if(i.style&&i.style.background){var e=function(t,e){var n=t.backgroundComponent,r=t.polar?e.range.y[1]:e.range.y[0]-e.range.y[1],o=e.range.x[1]-e.range.x[0],i=t.horizontal?e.scale.y.range()[0]:e.scale.x.range()[0],a=t.horizontal?e.scale.x.range()[1]:e.scale.y.range()[1],u=t.polar?e.origin.x:i,c=t.polar?e.origin.y:a,l=t.name||"chart",s={height:r,polar:t.polar,scale:e.scale,style:t.style.background,x:u,y:c,key:"".concat(l,"-background"),width:o};return A().cloneElement(n,G()({},n.props,s))}(i,O);t.unshift(e)}return t}),[r,x,i,O]),C=A().useMemo((function(){return s?{desc:u,domain:_,width:h,height:d,horizontal:M,name:m,origin:v?P:void 0,polar:v,theme:y,title:g,scale:w,standalone:s,style:j.parent}:{}}),[u,_,d,M,m,P,v,w,s,j,g,y,h]),S=A().useMemo((function(){if(s){var t=G()({},l.props,C,es(e));return A().cloneElement(l,t)}return f}),[f,s,l,C,e]),k=A().useMemo((function(){return $g(i)}),[i]),D=rb(e);return A().useEffect((function(){return function(){e.animate&&o(D,e)}}),[o,D,e]),R()(k)?A().cloneElement(S,S.props,E):A().createElement(yb,{container:S,eventKey:c,events:k,externalEventMutations:p},E)},ex=A().memo(tx,Up());ex.displayName="VictoryChart",ex.expectedComponents=["groupComponent","containerComponent"];var nx=["desc","children","tabIndex","className"];var rx=function(t){var e=t.desc,n=t.children,r=t.tabIndex,o=t.className,i=void 0===o?"VictoryAccessibleGroup":o,a=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,nx),u=e&&(a["aria-describedby"]||e.split(" ").join("-"));return e?A().createElement("g",{"aria-label":a["aria-label"],"aria-describedby":u,className:i,tabIndex:r},A().createElement("desc",{id:u},e),n):A().createElement("g",{"aria-label":a["aria-label"],"aria-describedby":a["aria-describedby"],className:i,tabIndex:r},n)};function ox(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 ix(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ox(Object(n),!0).forEach((function(e){ax(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ox(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ax(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ux=function(t){var e=t.x,n=t.y,r=t.size,o=t.symbol;if(t.getPath)return t.getPath(e,n,r);var i=_;return("function"==typeof i[o]?i[o]:i.circle)(e,n,r)},cx={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},lx=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=et(t.size,t),i=nt(t.style,t),a=et(t.symbol,t),u=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,size:o,style:i,symbol:a,tabIndex:u})}(ix(ix({},cx),t)),n=es(e);return A().cloneElement(e.pathComponent,ix(ix({},e.events),{},{"aria-label":e.ariaLabel,d:ux(e),style:e.style,desc:e.desc,tabIndex:e.tabIndex,role:e.role,shapeRendering:e.shapeRendering,className:e.className,transform:e.transform,clipPath:e.clipPath},n))},sx=r(9560),fx=r.n(sx),px=r(3105),hx=r.n(px),dx=r(4542),yx=r.n(dx);function vx(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 mx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vx(Object(n),!0).forEach((function(e){gx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bx=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),d=f+i/2,y=f-i/2,v=u*(c-p)>0?0:t.pointerLength,m="left"===r?"0 0 0":"0 0 1",g="".concat(n," ").concat(n," ").concat(m);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(d-n,"\n A ").concat(g," ").concat(p+u*n,", ").concat(d,"\n L ").concat(h-u*n,", ").concat(d,"\n A ").concat(g," ").concat(h,", ").concat(d-n,"\n L ").concat(h,", ").concat(y+n,"\n A ").concat(g," ").concat(h-u*n,", ").concat(y,"\n L ").concat(p+u*n,", ").concat(y,"\n A ").concat(g," ").concat(p,", ").concat(y+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),d=s+o/2,y=s-o/2,v=u*(l-p)<0?0:t.pointerLength,m="bottom"===r?"0 0 0":"0 0 1",g="".concat(n," ").concat(n," ").concat(m);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(d-n,", ").concat(p,"\n A ").concat(g," ").concat(d,", ").concat(p-u*n,"\n L ").concat(d,", ").concat(h+u*n,"\n A ").concat(g," ").concat(d-n,", ").concat(h,"\n L ").concat(y+n,", ").concat(h,"\n A ").concat(g," ").concat(y,", ").concat(h+u*n,"\n L ").concat(y,", ").concat(p-u*n,"\n A ").concat(g," ").concat(y+n,", ").concat(p,"\n z")}(t)},xx={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},Ox=function(t){var e=function(t){var e=et(t.id,t),n=nt(t.style,t);return mx(mx({},t),{},{id:e,style:n})}(mx(mx({},xx),t)),n=es(e);ts(e.height,"Flyout props[height] is undefined"),ts(e.width,"Flyout props[width] is undefined"),ts(e.x,"Flyout props[x] is undefined"),ts(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 A().cloneElement(e.pathComponent,mx(mx(mx({},e.events),n),{},{style:e.style,d:bx(r),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath}))};function _x(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 wx(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 jx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wx(Object(n),!0).forEach((function(e){Px(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Px(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ax(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 Mx(t,e){return Mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mx(t,e)}function Ex(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 Cx(t){return Cx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cx(t)}var Sx={cornerRadius:5,pointerLength:10,pointerWidth:10},kx=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&&Mx(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=Cx(r);if(o){var n=Cx(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Ex(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?ys()("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=tu(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||Ip.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((function(t){return G()({},t,n)})):G()({},t.style,n),o=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},i=t.flyoutStyle?G()({},t.flyoutStyle,o):o,a=Array.isArray(r)?r.map((function(e){return nt(e,t)})):nt(r,t);return{style:a,flyoutStyle:nt(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=et(t.active,t),a=et(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=et(t.orientation,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l}))||this.getDefaultOrientation(t),f=Z({padding:et(t.flyoutPadding,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s}))||this.getLabelPadding(c)}),p=et(t.pointerWidth,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s})),h=et(t.pointerLength,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s})),d=np(a,c),y=this.getDimensions(Object.assign({},t,{style:c,flyoutStyle:l,active:i,text:a,orientation:s,flyoutPadding:f,pointerWidth:p,pointerLength:h}),d),v=y.flyoutHeight,m=y.flyoutWidth,g=Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s,flyoutHeight:v,flyoutWidth:m,flyoutPadding:f,pointerWidth:p,pointerLength:h}),b=W()(n)&&void 0!==(null==n?void 0:n.x)?et(n.x,g):0,x=W()(n)&&void 0!==(null==n?void 0:n.y)?et(n.y,g):0;return jx(jx({},g),{},{centerOffset:{x:b,y:x},dx:void 0!==r?et(r,g):0,dy:void 0!==o?et(o,g):0,cornerRadius:et(e,g)})}},{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:np(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=tu(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,d={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},y=W()(t.center)&&void 0!==t.center.x?t.center.x:d.x,v=W()(t.center)&&void 0!==t.center.y?t.center.y:d.y,m={x:y+l.x,y:v+l.y};return c?this.constrainTooltip(m,t,e):m}},{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 _x(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 _x(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)?_x(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=et(t.cornerRadius,t);return{flyoutHeight:l?et(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?et(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,d=t.flyoutPadding,y=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return G()({},p.props,{key:"".concat(this.id,"-label-").concat(h),text:l,datum:s,activePoints:f,textAnchor:y,dy:a,dx:c,style:r,x:function(){if(!y||"middle"===y)return n.x;var t="end"===y?-1:1;return n.x-t*(o.width/2)}()+(d.left-d.right)/2,y:n.y+(d.top-d.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 I()(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,d=t.cornerRadius,y=t.events,v=t.flyoutComponent,m=et(t.pointerOrientation,t);return G()({},v.props,{x:i,y:a,dx:u,dy:c,datum:l,activePoints:s,index:f,pointerLength:p,pointerWidth:h,cornerRadius:d,events:y,orientation:m||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=et(t.active,t),n=t.renderInPortal;if(!e)return n?A().createElement(Af,null):null;var r=this.getEvaluatedProps(t),o=r.flyoutComponent,i=r.labelComponent,a=r.groupComponent,u=this.getCalculatedValues(r),c=[A().cloneElement(o,this.getFlyoutProps(r,u)),A().cloneElement(i,this.getLabelProps(r,u))],l=A().cloneElement(a,{role:"presentation",transform:u.transform},c);return n?A().createElement(Af,null,l):l}},{key:"render",value:function(){var t=ft(this.props,Sx,"tooltip");return this.renderTooltip(t)}}],n&&Ax(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);kx.displayName="VictoryTooltip",kx.role="tooltip",kx.defaultProps={active:!1,renderInPortal:!0,labelComponent:A().createElement(gp,null),flyoutComponent:A().createElement(Ox,null),groupComponent:A().createElement("g",null)},kx.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 Dx=r(5395),Tx=r.n(Dx),Rx=r(6898);function Lx(t){return function(t){if(Array.isArray(t))return Ix(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 Ix(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)?Ix(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 Ix(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 Nx(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 zx=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,Lx(i))},this.handleMouseMove=function(t,n){var r=n.activePoints||[],o=n.parentSVG||Uv(t),i=Vv(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,Lx(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&&Up()(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)})):[],d=r.length?r.map((function(t){return e.getInactiveMutations(n,t)})):[];return p.concat.apply(p,Lx(d).concat(Lx(h)))},this.onMouseMove=Kv()(this.handleMouseMove,32,{leading:!0,trailing:!1})}var e,n;return e=t,n=[{key:"withinBounds",value:function(t,e){var n=t.width,r=t.height,o=t.polar,i=t.origin,a=t.scale,u=Z(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,Lx(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:Et(t.domain.x),y:Et(t.domain.y)},n=A().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=Y(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=Pa(t);return Array.isArray(e)&&e.length>0?e:void 0};return yt(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(Tx()).some((function(t){return t.test(i)}));if(!Ca(e)||u.includes(i)||c)return null;var l=(e.type&&lt(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=X(t,e);return[n.x,n.y]})),o=Rx.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 n=e.childName,r=e.continuous,o=t.activateData,i=t.activateLabels,a=t.labels;if(!o&&!i)return[];var u=o?["data"]:[],c=a&&!i?u:u.concat("labels");return R()(c)?[]:c.map((function(t){var o=!0===r&&"data"===t?"all":e.eventKey;return{childName:n,eventKey:o,target:t,mutation:function(){return{active:!0}}}}))}},{key:"getInactiveMutations",value:function(t,e){var n=e.childName,r=e.continuous,o=t.activateData,i=t.activateLabels,a=t.labels;if(!o&&!i)return[];var u=o?["data"]:[],c=a&&!i?u:u.concat("labels");return R()(c)?[]:c.map((function(t){var o=r&&"data"===t?"all":e.eventKey;return{childName:n,eventKey:o,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){lt(t.onActivated)&&t.onActivated(e,t)}},{key:"onDeactivated",value:function(t,e){lt(t.onDeactivated)&&t.onDeactivated(e,t)}}],n&&Nx(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Bx=new zx,Wx=["childName","eventKey","style","continuous"];function Ux(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 Vx(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 Fx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vx(Object(n),!0).forEach((function(e){Hx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gx(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 Kx(t,e){return Kx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Kx(t,e)}function $x(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 Yx(t){return Yx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yx(t)}function Xx(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&&Kx(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=Yx(r);if(o){var n=Yx(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return $x(this,t)});function a(){return qx(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 H()(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=X(t,this.getPoint(n[0])),u=o?r:void 0;if(!i||n.length<2)return Fx(Fx({},a),{},{center:G()({},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:G()({},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=G()({},a,{datum:e,active:!0}),l=lt(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=nt(G()({},p,f,u[n]),i),d=s.length?s.map((function(){return h})):[h];return t.concat(d)}),[])}},{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=G()({},c,{datum:e,active:!0}),o=lt(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,Wx)),d=t.name===f?f:"".concat(t.name,"-").concat(f),y=G()({key:"".concat(d,"-").concat(p,"-voronoi-tooltip"),id:"".concat(d,"-").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,y,e);return G()({},v,y)}},{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)?A().cloneElement(r,o):null}return null}},{key:"getChildren",value:function(t){return[].concat(function(t){if(Array.isArray(t))return Ux(t)}(e=A().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 Ux(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)?Ux(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&&Gx(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryVoronoiContainer",e.defaultProps=Fx(Fx({},Zs.defaultProps),{},{activateData:!0,activateLabels:!0,labelComponent:A().createElement(kx,null),voronoiPadding:5}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,n){return t.disable?{}:Bx.onMouseLeave(e,n)},onTouchCancel:function(e,n){return t.disable?{}:Bx.onMouseLeave(e,n)},onMouseMove:function(e,n){return t.disable?{}:Bx.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:Bx.onMouseMove(e,n)}}},{target:"data",eventHandlers:t.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]},e}var Zx=Xx(Zs),Qx=r(9324),Jx=r.n(Qx);function tO(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 eO(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)?eO(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 eO(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 nO={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=tO(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=tO(this.getDomain(n)[r],2),f=s[0],p=s[1],h=this.getScalePercent(e,n,r),d=l*i+h*(l*u),y=this.getMinimumDomain(d,n,r),v=tO(this.getScaledDomain(t,l,h),2),m=v[0],g=v[1],b=[m>f&&m<p?m:f,g<p&&g>f?g:p],x=Math.abs(y[1]-y[0])>Math.abs(b[1]-b[0])?y:b;return Ot([f,p])?[new Date(x[0]),new Date(x[1])]:x},getScaledDomain:function(t,e,n){var r=tO(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=tO(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=tO(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=Vv(t),o=r.x,i=r.y,a={x:e.scale.x.domain(n.x),y:e.scale.y.domain(n.y)};return Hv(e,a,o,i)},pan:function(t,e,n){var r,o=tO(t.map((function(t){return Number(t)})),2),i=o[0],a=o[1],u=tO(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,Ot(t)||Ot(e)?r.map((function(t){return new Date(t)})):r},getDomainScale:function(t,e,n){var r=tO(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(),Jx()((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)?G()({},n,i):G()({},o||n||e,i)},getDomain:function(t){var e=t.originalDomain,n=t.domain,r=t.children,o=t.zoomDimension,i=P.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,qg(t,o,i)):{x:qg(t,"x",i),y:qg(t,"y",i)}),G()({},a,e,n)},onMouseDown:function(t,e){if(t.preventDefault(),e.allowPan){var n=e.parentSVG||Uv(t),r=Vv(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||Uv(t),p=Vv(t,f),h=p.x,d=p.y,y=this.getDomain(e),v=this.getLastDomain(e,y),m=s?i-h:d-a,g=(s?d-a:i-h)/this.getDomainScale(v,o,"x"),b=m/this.getDomainScale(v,o,"y"),x={x:"y"===l?y.x:this.pan(v.x,y.x,g),y:"x"===l?y.y:this.pan(v.y,y.y,b)},O=this.handleAnimation(r),_={parentControlledProps:["domain"],startX:h,startY:d,parentSVG:f,currentDomain:x,originalDomain:y,cachedZoomDomain:c,zoomActive:!this.checkDomainEquality(y,v)};return lt(u)&&u(x,G()({},_,e)),[{target:"parent",callback:O,mutation:function(){return _}}]}},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 lt(o)&&o(f,G()({},h,e)),[{target:"parent",callback:p,mutation:function(){return h}}]}}},rO={checkDomainEquality:nO.checkDomainEquality.bind(nO),onMouseDown:nO.onMouseDown.bind(nO),onMouseUp:nO.onMouseUp.bind(nO),onMouseLeave:nO.onMouseLeave.bind(nO),onMouseMove:Kv()(nO.onMouseMove.bind(nO),16,{leading:!0,trailing:!1}),onWheel:Kv()(nO.onWheel.bind(nO),16,{leading:!0,trailing:!1})};function oO(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 iO(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oO(Object(n),!0).forEach((function(e){aO(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oO(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function aO(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uO(t){return function(t){if(Array.isArray(t))return cO(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 cO(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)?cO(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 cO(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 lO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sO(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 fO(t,e){return fO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fO(t,e)}function pO(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 hO(t){return hO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hO(t)}function dO(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&&fO(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=hO(r);if(o){var n=hO(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return pO(this,t)});function a(){return lO(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,uO(c)),p=A().cloneElement(r,iO({clipWidth:l,clipHeight:s,translateX:Math.min.apply(Math,uO(u)),translateY:Math.min.apply(Math,uO(c)),polar:o,origin:o?i:void 0,radius:o?f:void 0},r.props));return A().Children.toArray(t).map((function(t){return Ca(t)?A().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&&lt(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),Oa(o.slice(u,c),i,u)}}},{key:"modifyChildren",value:function(t){var e=this;return A().Children.toArray(t.children).map((function(n){var r,o=n.type&&n.type.role,i=Ca(n),a=t.currentDomain,u=t.zoomActive,c=t.allowZoom,l=G()({},t.originalDomain,t.domain),s=G()({},t.zoomDomain,t.domain),f=G()({},t.cachedZoomDomain,t.domain);r=rO.checkDomainEquality(s,f)?c&&!u?n.props.domain:G()({},a,l):s;var p=t.polar?e.modifyPolarDomain(r,l):r;p&&t.zoomDimension&&(p=iO(iO({},s),{},aO({},t.zoomDimension,p[t.zoomDimension])));var h=i&&"stack"!==o?{domain:p,data:e.downsampleZoomData(t,n,p)}:{domain:p};return A().cloneElement(n,G()(h,n.props))}))}},{key:"getChildren",value:function(t){var e=this.modifyChildren(t);return this.clipDataComponents(e,t)}}],n&&sO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryZoomContainer",e.defaultProps=iO(iO({},Zs.defaultProps),{},{clipContainerComponent:A().createElement(bf,null),allowPan:!0,allowZoom:!0,zoomActive:!1}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:iO({onMouseDown:function(e,n){return t.disable?{}:rO.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:rO.onMouseDown(e,n)},onMouseUp:function(e,n){return t.disable?{}:rO.onMouseUp(e,n)},onTouchEnd:function(e,n){return t.disable?{}:rO.onMouseUp(e,n)},onMouseLeave:function(e,n){return t.disable?{}:rO.onMouseLeave(e,n)},onTouchCancel:function(e,n){return t.disable?{}:rO.onMouseLeave(e,n)},onMouseMove:function(e,n,r,o){return t.disable?{}:rO.onMouseMove(e,n,r,o)},onTouchMove:function(e,n,r,o){return t.disable?{}:(e.preventDefault(),rO.onMouseMove(e,n,r,o))}},t.disable||!t.allowZoom?{}:{onWheel:rO.onWheel})}]},e}var yO=dO(Zs);function vO(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 mO(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 gO=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||Uv(t),l=Vv(t,c),s=l.x,f=l.y,p={x1:i||"y"!==u?s:Fv(n).x[0],y1:i||"x"!==u?f:Fv(n).y[0],select:!0,x2:i||"y"!==u?s:Fv(n).x[1],y2:i||"x"!==u?f:Fv(n).y[1],parentSVG:c};a&&lt(n.onSelectionCleared)&&n.onSelectionCleared(G()({},p,n));var h,d=[{target:"parent",mutation:function(){return p}}],y=a&&r?a.map((function(t){return{childName:t.childName,eventKey:t.eventKey,target:"data",mutation:function(){return null}}})):[];return d.concat.apply(d,function(t){if(Array.isArray(t))return vO(t)}(h=y)||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 vO(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)?vO(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||Uv(t),c=Vv(t,u),l=c.x,s=c.y,f=i||"y"!==a?l:Fv(n).x[1],p=i||"x"!==a?s:Fv(n).y[1];return{target:"parent",mutation:function(){return{x2:f,y2:p,parentSVG:u}}}},this.onMouseMove=Kv()(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=qv(n),l=e.filterDatasets(n,u),s={selectedData:l,datasets:u,select:!1,x1:null,x2:null,y1:null,y2:null},f=l&&lt(n.onSelection)?n.onSelection(l,c,G()({},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}]:yt(A().Children.toArray(t.children),(function(e,n,r){var o,i=t.selectionBlacklist||[];if(!Ca(e)||i.includes(n))return null;if(e.type&&lt(e.type.getData)){var a=(o=r?A().cloneElement(e,r.props):e).props&&o.type.getData(o.props);return a?{childName:n,data:a}:null}var u,c=(u=Pa(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=X(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}}])&&mO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),bO=new gO;function xO(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 OO(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xO(Object(n),!0).forEach((function(e){_O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xO(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wO(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 jO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PO(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 AO(t,e){return AO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},AO(t,e)}function MO(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 EO(t){return EO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},EO(t)}function CO(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&&AO(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=EO(r);if(o){var n=EO(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return MO(this,t)});function a(){return jO(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?A().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 wO(t)}(e=A().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 wO(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)?wO(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}}],n&&PO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictorySelectionContainer",e.defaultProps=OO(OO({},Zs.defaultProps),{},{activateSelectedData:!0,allowSelection:!0,selectionComponent:A().createElement(lf,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,n){return t.disable?{}:bO.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:bO.onMouseDown(e,n)},onMouseMove:function(e,n){return t.disable?{}:bO.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:bO.onMouseMove(e,n)},onMouseUp:function(e,n){return t.disable?{}:bO.onMouseUp(e,n)},onTouchEnd:function(e,n){return t.disable?{}:bO.onMouseUp(e,n)}}}]},e}var SO=CO(Zs);function kO(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 DO=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||Uv(t),u=Vv(t,a),c=Hv(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),lt(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=Kv()(this.handleMouseMove,16,{leading:!0,trailing:!1}),this.onMouseLeave=this.handleMouseMove,this.onTouchEnd=function(t,e){var n=e.onCursorChange;return lt(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=ht(e,Number),r=n.x1,o=n.x2,i=n.y1,a=n.y2,u=ht(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&&kO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),TO=new DO;function RO(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 LO(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?RO(Object(n),!0).forEach((function(e){zO(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):RO(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function IO(t){return function(t){if(Array.isArray(t))return NO(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 NO(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)?NO(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 NO(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 zO(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function BO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WO(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 UO(t,e){return UO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},UO(t,e)}function VO(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 FO(t){return FO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},FO(t)}function HO(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&&UO(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=FO(r);if(o){var n=FO(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return VO(this,t)});function a(){return BO(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?zO({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){if(void 0===t.padding){var e=t.children.find((function(t){return hs()(t.props)&&void 0!==t.props.padding}));return Z(e.props)}return Z(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=TO.getDimension(t),f=this.getCursorPosition(t),p=this.getCursorLabelOffset(t);if(!f)return[];var h=[],d=this.getPadding(t),y={x:c?e.y(f.y):e.x(f.x),y:c?e.x(f.x):e.y(f.y)};if(r){var v=G()({active:!0},n.props,{x:y.x+p.x,y:y.y+p.y,datum:f,active:!0,key:"".concat(u,"-cursor-label")});if(Q(n)){var m=l&&l.tooltip||{};v=G()({},v,m)}h.push(A().cloneElement(n,G()({},v,{text:et(r,v)})))}var g=Object.assign({stroke:"black"},o.props.style);return"x"!==s&&void 0!==s||h.push(A().cloneElement(o,{key:"".concat(u,"-x-cursor"),x1:y.x,x2:y.x,y1:d.top,y2:a-d.bottom,style:g})),"y"!==s&&void 0!==s||h.push(A().cloneElement(o,{key:"".concat(u,"-y-cursor"),x1:d.left,x2:i-d.right,y1:y.y,y2:y.y,style:g})),h}},{key:"getChildren",value:function(t){return[].concat(IO(A().Children.toArray(t.children)),IO(this.getCursorElements(t)))}}],n&&WO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryCursorContainer",e.defaultProps=LO(LO({},Zs.defaultProps),{},{cursorLabelComponent:A().createElement(gp,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:A().createElement(ny,null)}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,n){return t.disable?{}:TO.onMouseLeave(e,n)},onTouchCancel:function(){return[]},onMouseMove:function(e,n){return t.disable?{}:TO.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:TO.onMouseMove(e,n)}}}]},e}var qO=HO(Zs);function GO(t){return function(t){if(Array.isArray(t))return n_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e_(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 KO(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 $O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?KO(Object(n),!0).forEach((function(e){YO(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function YO(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function XO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ZO(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 QO(t,e){return QO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},QO(t,e)}function JO(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 t_(t){return t_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t_(t)}function e_(t,e){if(t){if("string"==typeof t)return n_(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)?n_(t,e):void 0}}function n_(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 r_(t){return t?Array.isArray(t)?t:[t]:[]}var o_=function(t,e){var n,r=t.map((function(t){return t(e)})),o=r.map((function(t){return new t})),i=fx()(t)(e),a=r.map((function(t){return t.displayName.match(/Victory(.*)Container/)[1]||""})).join("");return n=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&&QO(t,e)}(u,t);var e,n,r,i,a=(r=u,i=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=t_(r);if(i){var n=t_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return JO(this,t)});function u(){return XO(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"getChildren",value:function(t){return o.reduce((function(e,n){return n.getChildren($O($O({},t),{},{children:e}))}),t.children)}}])&&ZO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(i),n.displayName="Victory".concat(a,"Container"),n.propTypes=r.reduce((function(t,e){return $O($O({},t),e.propTypes)}),{}),n.defaultProps=r.reduce((function(t,e){return $O($O({},t),e.defaultProps)}),{}),n.defaultEvents=function(t){return e=r.reduce((function(e,n){var r=lt(n.defaultEvents)?n.defaultEvents(t):n.defaultEvents;return[].concat(GO(e),GO(r))}),[]),n=xv()(e,"target"),o=yx()(n).map((function(t){var e,n,r,o=(r=2,function(t){if(Array.isArray(t))return t}(n=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}}(n,r)||e_(n,r)||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.")}()),i=o[0],a=o[1],u=a.filter(Boolean);return R()(u)?null:{target:i,eventHandlers:(e=a.map((function(t){return t.eventHandlers})),e.reduce((function(t,e){return hx()(t,(function(t,n){var r=e[n];e[n]=r?function(){var e=r_(r.apply(void 0,arguments)),n=r_(t.apply(void 0,arguments));return e.concat(n)}:t})),e})))}})),o.filter(Boolean);var e,n,o},n},i_=function(t,e){t&&!e.includes(t)&&'"'.concat(t,'" is not a valid behavior. Choose from [').concat(e.join(", "),"].")},a_=function(t,e){return function(n,r){var o=Object.keys(t);i_(n,o),i_(r,o);var i=t[n],a=t[r]||[];return i?o_([].concat(GO(i),GO(a)),e):e}},u_=a_({zoom:[dO],voronoi:[Xx],selection:[CO],cursor:[HO],brush:[fm]},Zs);function c_(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 l_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c_(Object(n),!0).forEach((function(e){s_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f_=function(t,e,n){var r="right"===n||"left"===n;return A().cloneElement(t.lineComponent,l_(l_({},t.events),{},{role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:"".concat(t.id,"-border-").concat(n),x1:r?e[n]:t.x-t.borderWidth,x2:r?e[n]:t.x+t.borderWidth,y1:r?t.y-t.borderWidth:e[n],y2:r?t.y+t.borderWidth:e[n],"data-type":"border-".concat(n)}))},p_=function(t,e,n){var r="top"===n||"bottom"===n;return A().cloneElement(t.lineComponent,l_(l_({},t.events),{},{role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:"".concat(t.id,"-cross-").concat(n),x1:t.x,x2:r?t.x:e[n],y1:t.y,y2:r?e[n]:t.y,"data-type":"cross-".concat(n)}))},h_={groupComponent:A().createElement("g",null),lineComponent:A().createElement(Zd,null),role:"presentation",shapeRendering:"auto"},d_=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.id,t),r=nt(Object.assign({stroke:"black"},t.style),t),o=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,id:n,style:r,tabIndex:o})}(l_(l_({},h_),t)),n=e.groupComponent,r=es(e),o=e.tabIndex,i=e.ariaLabel,a=function(t){var e=t.errorX,n=t.errorY,r={right:{error:e,errorIndex:0},left:{error:e,errorIndex:1},top:{error:n,errorIndex:1},bottom:{error:n,errorIndex:0}};return["right","left","top","bottom"].reduce((function(t,e){var n,o,i;return t[e]=(o=(n=r[e]).error,i=n.errorIndex,o?o[i]:void 0),t}),{})}(e),u=[a.right?f_(e,a,"right"):null,a.left?f_(e,a,"left"):null,a.bottom?f_(e,a,"bottom"):null,a.top?f_(e,a,"top"):null,a.right?p_(e,a,"right"):null,a.left?p_(e,a,"left"):null,a.bottom?p_(e,a,"bottom"):null,a.top?p_(e,a,"top"):null].filter(Boolean);return A().cloneElement(n,l_({tabIndex:o,"aria-label":i},r),u)},y_=r(156),v_=r.n(y_),m_=function(t,e,n){var r=e[{x:"_errorX",y:"_errorY"}[n]];if(0===r)return!1;var o=t.scale[n];return Array.isArray(r)?[0!==r[0]&&o(r[0]+e["_".concat(n)]),0!==r[1]&&o(e["_".concat(n)]-r[1])]:[o(r+e["_".concat(n)]),o(e["_".concat(n)]-r)]},g_=function(t){var e=["x","y","errorX","errorY"];return t.data?_a(t.data,t,e):_a(t.errorX||t.errorY?wa(t):[],t,e)},b_=function(t,e){var n=Ga(t,e),r=qa(t,e),o=g_(t);if(o.length<1)return void 0!==n&&void 0!==r?Va(n,r):void 0;var i="x"===e?"_errorX":"_errorY",a=function(t){var n="min"===t?1/0:-1/0,r="min"===t?1:0,a="min"===t?-1:1;return o.reduce((function(n,o){var u=Array.isArray(o[i])?o[i][r]:o[i],c=o["_".concat(e)]+a*(u||0);return n<c&&"min"===t||n>c&&"max"===t?n:c}),n)};return Va(void 0!==n?n:a("min"),void 0!==r?r:a("max"))},x_=function(t,e){return Na(b_)(t,e)};function O_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function __(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 w_(t,e){return w_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w_(t,e)}function j_(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 P_(t){return P_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P_(t)}var A_={width:450,height:300,padding:50},M_=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&&w_(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=P_(r);if(o){var n=P_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return j_(this,t)});function a(){return O_(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=E_.animationWhitelist,e=E_.role,n=ft(this.props,A_,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&__(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);M_.animationWhitelist=["data","domain","height","padding","samples","style","width","errorX","errorY","borderWidth"],M_.displayName="VictoryErrorBar",M_.role="errorbar",M_.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},M_.defaultProps={containerComponent:A().createElement(Zs,null),data:[{x:1,y:1,errorX:.1,errorY:.1},{x:2,y:2,errorX:.2,errorY:.2},{x:3,y:3,errorX:.3,errorY:.3},{x:4,y:4,errorX:.4,errorY:.4}],dataComponent:A().createElement(d_,null),labelComponent:A().createElement(gp,null),groupComponent:A().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},M_.getDomain=x_,M_.getData=g_,M_.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"errorbar"),r=Object.assign({},n,function(t){var e=J(t,"errorbar"),n=tt(t.style,e)||{},r=g_(t),o={x:ut(t,"x"),y:ut(t,"y")},i={x:x_(t,"x"),y:x_(t,"y")};return{domain:i,data:r,scale:{x:Zi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Zi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},style:n,origin:t.polar?t.origin||at(t):void 0}}(n)),o=r.borderWidth,i=r.data,a=r.domain,u=r.events,c=r.groupComponent,l=r.height,s=r.horizontal,f=r.labels,p=r.name,h=r.origin,d=r.padding,y=r.polar,v=r.scale,m=r.sharedEvents,g=r.standalone,b=r.style,x=r.theme,O=r.width,_=r.disableInlineStyles,w={parent:{data:i,domain:a,height:l,horizontal:s,name:p,origin:h,padding:d,polar:y,scale:v,standalone:g,style:b.parent,theme:x,width:O}};return i.reduce((function(t,e,n){var l=ct(e.eventKey)?n:e.eventKey,p=X(v_()({},r,{scale:v}),e),h=p.x,d=p.y,y=function(t,e){var n=Et(e.x),r=Mt(e.x),o=Et(e.y),i=Mt(e.y),a=t._x,u=t._y;return(a<n||a>r||u<o||u>i)&&(a=u=null),Object.assign({},t,{_x:a,_y:u})}(e,a),g=m_(r,y,"x"),x=m_(r,y,"y"),O={borderWidth:o,data:i,datum:y,errorX:s?x:g,errorY:s?g:x,groupComponent:c,horizontal:s,index:n,scale:v,style:_?{}:b.data,x:h,y:d,disableInlineStyles:_};t[l]={data:O};var w=Xa(r,e,n);return(null!=w||f&&(u||m))&&(t[l].labels=function(t,e,n){var r=t.x,o=t.y,i=t.index,a=t.scale,u=t.errorY,c=t.errorX,l=t.horizontal,s=t.labelComponent,f=t.theme,p=t.disableInlineStyles,h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",n="y"===e?u:c;return(n&&Array.isArray(n)?n[0]:n)||t[e]},d=n.labels||{},y=d.padding||0,v=l?"start":"middle",m=l?"middle":"end",g={style:d,y:l?o:h("y"),x:l?h("x"):r,dy:l?0:-y,dx:l?y:0,text:e,index:i,scale:a,datum:t.datum,data:t.data,textAnchor:d.textAnchor||v,verticalAnchor:d.verticalAnchor||m,angle:d.angle,horizontal:l,disableInlineStyles:p};if(!Q(s))return g;var b=f&&f.tooltip||{};return G()({},g,$(b,["style"]))}(Object.assign({},r,O),w,b)),t}),w)}(t,A_)},M_.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var E_=bd(M_);function C_(t){return function(t){if(Array.isArray(t))return k_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||S_(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 S_(t,e){if(t){if("string"==typeof t)return k_(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)?k_(t,e):void 0}}function k_(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 D_(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 T_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D_(Object(n),!0).forEach((function(e){R_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function R_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L_={width:450,height:300,padding:50,offset:0};function I_(t,e){var n="group",r=ft(t,L_,n),o=Xg(r.theme,r.style,n),i=r.offset,a=r.colorScale,u=r.color,c=r.polar,l=r.horizontal,s=r.categories||nb(r,e,null),f=r.datasets||Ug(r,null),p={x:Gg(Object.assign({},r,{categories:s}),"x",e),y:Gg(Object.assign({},r,{categories:s}),"y",e)},h=r.range||{x:ut(r,"x"),y:ut(r,"y")},d={x:Ji(r,"x")||Kg(r,"x"),y:Ji(r,"y")||Kg(r,"y")};return{datasets:f,categories:s,range:h,domain:p,horizontal:l,scale:{x:d.x.domain(p.x).range(r.horizontal?h.y:h.x),y:d.y.domain(p.y).range(r.horizontal?h.x:h.y)},style:o,colorScale:a,color:u,offset:i,origin:c?r.origin:at(r),padding:Z(r)}}function N_(t){var e,n,r=function(t){var e=t.children,n=A().Children.toArray(e).map((function(t){return T_(T_({},t),{},{props:$(t.props,["sharedEvents"])})}));return t.children=n,t}(t),o=(e=A().useState(r),n=2,function(t){if(Array.isArray(t))return t}(e)||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}}(e,n)||S_(e,n)||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.")}()),i=o[0],a=o[1];return A().useEffect((function(){Up()(r,i)||a(r)}),[i,a,r]),A().useMemo((function(){return I_(i,i.children)}),[i])}function z_(t,e){var n=e.type&&e.type.role,r=e.props.colorScale||t.colorScale;if("group"===n||"stack"===n)return t.theme&&t.theme.group?r||t.theme.group.colorScale:r}function B_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=t.data||t.y?Pa(t):e,o=n||0;return r.map((function(t){var e=t._x instanceof Date?new Date(t._x.getTime()+o):t._x+o;return Object.assign({},t,{_x1:e})}))}function W_(t,e,n){var r=ft(t,L_,"stack"),o=e||A().Children.toArray(r.children),i=n||I_(r,o),a=i.datasets,u=r.labelComponent,c=r.polar,l=function(t,e){var n=e.categories,r=e.domain,o=e.range,i=e.scale,a=e.horizontal,u=e.origin,c=e.padding,l=t.width;return{height:t.height,width:l,theme:t.theme,polar:t.polar,origin:u,categories:n,domain:r,range:o,scale:i,horizontal:a,padding:c,standalone:!1}}(r,i),s=r.name||"group";return o.map((function(t,e){var n=t.type&&t.type.role,o=c?function(t,e,n,r){var o=(("stack"===r?e.datasets[0].length:e.datasets.length)-1)/2,i=function(t,e){var n=e.range,r=Math.abs(n.x[1]-n.x[0]),o=Math.max.apply(Math,C_(n.y));return t.offset/(2*Math.PI*o)*r}(t,e);return(n-o)*i}(r,i,e,n):function(t,e,n,r){var o=(("stack"===r?e.datasets[0].length:e.datasets.length)-1)/2,i=function(t,e,n){if(!t.offset)return 0;var r=pt("x",t.horizontal),o=n.domain.x,i=n.range[r];return(Math.max.apply(Math,C_(o))-Math.min.apply(Math,C_(o)))/(Math.max.apply(Math,C_(i))-Math.min.apply(Math,C_(i)))*t.offset}(t,0,e);return(n-o)*i}(r,i,e,n),f="voronoi"===n||"tooltip"===n||"label"===n?t.props.style:Zg(t,e,i),p=r.labels?function(t,e,n){if(t.labels)return Math.floor(e.length/2)===n?t.labels:void 0}(r,a,e):t.props.labels,h=t.props.name||"".concat(s,"-").concat(n,"-").concat(e);return A().cloneElement(t,Object.assign({labels:p,style:f,key:"".concat(h,"-key-").concat(e),name:h,data:B_(r,a[e],o),colorScale:z_(r,t),labelComponent:u||t.props.labelComponent,xOffset:o},l))}))}function U_(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 V_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U_(Object(n),!0).forEach((function(e){F_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var H_={width:450,height:300,padding:50,offset:0},q_={containerComponent:A().createElement(Zs,null),groupComponent:A().createElement("g",null),samples:50,standalone:!0,theme:Ip.grayscale},G_=function(t){var e=null==$_?void 0:$_.role,n=Dg(),r=n.getAnimationProps,o=n.setAnimationState,i=n.getProps,a=A().useMemo((function(){return V_(V_({},q_),t)}),[t]),u=i(a),c=ft(u,H_,e),l=c.eventKey,s=c.containerComponent,f=c.standalone,p=c.groupComponent,h=c.externalEventMutations,d=c.width,y=c.height,v=c.theme,m=c.polar,g=c.horizontal,b=c.name,x=A().Children.toArray(c.children),O=N_(c),_=O.domain,w=O.scale,j=O.style,P=O.origin,M=A().useMemo((function(){return W_(u,x,O).map((function(t,e){var n=Object.assign({animate:r(u,t,e)},t.props);return A().cloneElement(t,n)}))}),[u,x,O,r]),E=A().useMemo((function(){return f?{domain:_,scale:w,width:d,height:y,standalone:f,theme:v,style:j.parent,horizontal:g,polar:m,origin:P,name:b}:{}}),[f,_,w,d,y,v,j,g,m,P,b]),C=A().useMemo((function(){return es(a)}),[a]),S=A().useMemo((function(){if(f){var t=G()({},s.props,E,C);return A().cloneElement(s,t)}return A().cloneElement(p,C)}),[p,f,s,E,C]),k=A().useMemo((function(){return $g(u)}),[u]),D=rb(a);return A().useEffect((function(){return function(){a.animate&&o(D,u)}}),[o,D,a,u]),R()(k)?A().cloneElement(S,S.props,M):A().createElement(yb,{container:S,eventKey:l,events:k,externalEventMutations:h},M)},K_={role:"group",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:W_},$_=Object.assign(A().memo(G_,Up()),K_);$_.displayName="VictoryGroup";var Y_=Array.prototype,X_=Y_.slice;function Z_(t){return()=>t}function Q_(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let o=-1;for(let i of t)null!=(i=e(i,++o,t))&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}function J_(t){return t}function tw(t){return Math.ceil(Math.log(function(t,e){let n=0;for(let e of t)null!=e&&(e=+e)>=e&&++n;return n}(t))/Math.LN2)+1}function ew(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 nw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ew(Object(n),!0).forEach((function(e){rw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ew(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ow(t){return function(t){if(Array.isArray(t))return iw(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 iw(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)?iw(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 iw(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}Y_.map;var aw,uw,cw,lw,sw=(aw=function(t){var e=t.data,n=void 0===e?[]:e,r=t.x,o=t.bins;if(!(n&&n.length||Array.isArray(o)))return[];var i=function(t){var e=t.data,n=t.bins,r=st(t.x||"x"),o=(null==e?void 0:e.some((function(t){return r(t)instanceof Date})))||!1,i=Array.isArray(n)&&n.some((function(t){return t instanceof Date}));return o||i}({data:n,bins:o,x:r}),a=function(t){var e=t.data,n=t.bins,r=t.dataOrBinsContainsDates,o=st(t.x||"x"),i=function(){var t=J_,e=Q_,n=tw;function r(r){Array.isArray(r)||(r=Array.from(r));var o,i,a,u=r.length,c=new Array(u);for(o=0;o<u;++o)c[o]=t(r[o],o,r);var l=e(c),s=l[0],f=l[1],p=n(c,s,f);if(!Array.isArray(p)){const t=f,n=+p;if(e===Q_&&([s,f]=function(t,e,n){let r;for(;;){const o=Ht(t,e,n);if(o===r||0===o||!isFinite(o))return[t,e];o>0?(t=Math.floor(t/o)*o,e=Math.ceil(e/o)*o):o<0&&(t=Math.ceil(t*o)/o,e=Math.floor(e*o)/o),r=o}}(s,f,n)),(p=Ft(s,f,n))[0]<=s&&(a=Ht(s,f,n)),p[p.length-1]>=f)if(t>=f&&e===Q_){const t=Ht(s,f,n);isFinite(t)&&(t>0?f=(Math.floor(f/t)+1)*t:t<0&&(f=(Math.ceil(f*-t)+1)/-t))}else p.pop()}for(var h=p.length;p[0]<=s;)p.shift(),--h;for(;p[h-1]>f;)p.pop(),--h;var d,y=new Array(h+1);for(o=0;o<=h;++o)(d=y[o]=[]).x0=o>0?p[o-1]:s,d.x1=o<h?p[o]:f;if(isFinite(a)){if(a>0)for(o=0;o<u;++o)null!=(i=c[o])&&s<=i&&i<=f&&y[Math.min(h,Math.floor((i-s)/a))].push(r[o]);else if(a<0)for(o=0;o<u;++o)if(null!=(i=c[o])&&s<=i&&i<=f){const t=Math.floor((s-i)*a);y[Math.min(h,t+(p[t]<=i))].push(r[o])}}else for(o=0;o<u;++o)null!=(i=c[o])&&s<=i&&i<=f&&y[Jt(p,i,0,h)].push(r[o]);return y}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:Z_(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:Z_([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Z_(X_.call(t)):Z_(t),r):n},r}().value(o),a=(r?Ci():_n()).domain(Q_(e,o)).nice();return Array.isArray(n)?(i.domain([n[0],n[n.length-1]]),i.thresholds(n.slice(1,n.length-1)),i):Number.isInteger(n)?(i.domain(a.domain()),i.thresholds(n),i):r?(i.domain(a.domain()),i.thresholds(a.ticks()),i):(i.domain(a.domain()),i)}({data:n,x:r,bins:o,dataOrBinsContainsDates:i});return ow(a(n)).filter((function(t){var e=t.x0,n=t.x1;return e instanceof Date&&n instanceof Date?new Date(e).getTime()!==new Date(n).getTime():e!==n})).map((function(t){var e=i?new Date(t.x0):t.x0||0,n=i?new Date(t.x1):t.x1||0;return{x0:e,x1:n,x:i?new Date((e.getTime()+n.getTime())/2):(e+n)/2,y:t.length,binnedData:ow(t)}}))},lw=!1,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(lw&&Up()(uw,e))return cw;var r=aw.apply(void 0,e);return lw=!0,cw=r,uw=e,r}),fw=function(t){var e=t.bins,n=t.data,r=t.x,o=(null==n?void 0:n.some((function(t){return!ct(t._y)})))?n:sw({data:n,x:r,bins:e});return Pa(nw(nw({},t),{},{data:o,x:"x"}))},pw=function(t,e){var n,r=fw(t);if(!r.length)return[0,1];if("x"===e){var o=r[0],i=r[r.length-1];return Ha(nw(nw({},t),{},{data:[{x:o.x0},{x:i.x1}],x:"x"}),"x")}return null!==(n=t.data)&&void 0!==n&&n.length?Ha(nw(nw({},t),{},{data:r}),"y"):[0,1]};function hw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dw(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 yw(t,e){return yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yw(t,e)}function vw(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 mw(t){return mw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mw(t)}var gw={width:450,height:300,padding:50},bw=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&&yw(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=mw(r);if(o){var n=mw(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return vw(this,t)});function a(){return hw(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,n=ft(this.props,gw,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&dw(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);bw.animationWhitelist=["data","domain","height","padding","style","width"],bw.displayName="VictoryHistogram",bw.role="histogram",bw.defaultTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}}},bw.getFormattedData=sw,bw.defaultProps={containerComponent:A().createElement(Zs,null),data:[],dataComponent:A().createElement(tv,null),groupComponent:A().createElement("g",{role:"presentation"}),labelComponent:A().createElement(gp,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},bw.getDomain=pw,bw.getData=fw,bw.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"histogram"),r=Object.assign({},n,function(t){var e=J(t,"histogram"),n=tt(t.style,e),r=t.range||{x:ut(t,"x"),y:ut(t,"y")},o={x:pw(t,"x"),y:pw(t,"y")},i=fw(t);return{style:n,data:i=ba(i,o,0),scale:{x:Zi(t,"x").domain(o.x).range(t.horizontal?r.y:r.x),y:Zi(t,"y").domain(o.y).range(t.horizontal?r.x:r.y)},domain:o}}(n)),o=r.binSpacing,i=r.cornerRadius,a=r.data,u=r.domain,c=r.events,l=r.height,s=r.horizontal,f=r.padding,p=r.scale,h=r.sharedEvents,d=r.standalone,y=r.style,v=r.theme,m=r.width,g=r.labels,b=r.name,x=r.getPath,O=r.disableInlineStyles,_={parent:{horizontal:s,domain:u,scale:p,width:m,height:l,data:a,standalone:d,name:b,theme:v,padding:f,style:y.parent}},w=function(t){var e=p.x(t.x0),n=p.x(t.x1);return Math.abs(n-e)};return a.reduce((function(t,e,n){var u=ct(e.eventKey)?n:e.eventKey,f=Cy(r,e),d=f.x,v=f.y,b=f.y0,_=f.x0,j=function(t){return o?w(t)-o:w(t)}(e),P={alignment:"middle",barWidth:j,cornerRadius:i,data:a,datum:e,horizontal:s,index:n,scale:p,style:O?{}:y.data,width:m,height:l,x:d,y:v,y0:b,x0:_,getPath:x,disableInlineStyles:O};return t[u]={data:P},(null!=Xa(r,e,n)||g&&(c||h))&&(t[u].labels=eu(r,n)),t}),_)}(t,gw)},bw.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var xw=bd(bw),Ow=r(8825),_w=r.n(Ow);function ww(t){return function(t){if(Array.isArray(t))return jw(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 jw(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)?jw(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 jw(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 Pw(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 Aw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pw(Object(n),!0).forEach((function(e){Mw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ew=function(t){var e=t.data,n=t.style;return e.map((function(t,r){return nt(G()({},t.labels,n.labels),{datum:t,index:r,data:e})}))},Cw=function(t){var e=t.orientation,n=t.theme,r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.style||{},r={height:"100%",width:"100%"};return{parent:G()(n.parent,e.parent,r),data:G()({},n.data,e.data),labels:G()({},n.labels,e.labels),border:G()({},n.border,e.border),title:G()({},n.title,e.title)}}(t,n&&n.legend&&n.legend.style?n.legend.style:{}),o=function(t){var e=t.colorScale;return"string"==typeof e?If(e):e||[]}(t),i="horizontal"===e,a=Z({padding:t.borderPadding});return Object.assign({},t,{style:r,isHorizontal:i,colorScale:o,borderPadding:a})},Sw=function(t,e){var n=t.itemsPerRow,r=t.isHorizontal;return n?r?e%n:Math.floor(e/n):r?e:0},kw=function(t,e){var n=t.itemsPerRow,r=t.isHorizontal;return n?r?Math.floor(e/n):e%n:r?0:e},Dw=function(t){var e=t.data,n=t.style&&t.style.data||{},r=Ew(t);return e.map((function(e,o){var i=e.symbol||{},a=r[o].fontSize,u=i.size||n.size||a/2.5,c=t.symbolSpacer||Math.max(u,a);return Aw(Aw({},e),{},{size:u,symbolSpacer:c,fontSize:a,textSize:np(e.name,r[o]),column:Sw(t,o),row:kw(t,o)})}))},Tw=function(t,e){var n=t.gutter||{},r="object"==typeof n?(n.left||0)+(n.right||0):n||0,o=xv()(e,"column");return Object.keys(o).reduce((function(t,e,n){var i=o[e].map((function(t){return t.textSize.width+t.size+t.symbolSpacer+r}));return t[n]=Math.max.apply(Math,ww(i)),t}),[])},Rw=function(t,e){var n=t.rowGutter||{},r="object"==typeof n?(n.top||0)+(n.bottom||0):n||0,o=xv()(e,"row");return Object.keys(o).reduce((function(t,e,n){var i=o[e].map((function(t){return t.textSize.height+t.symbolSpacer+r}));return t[n]=Math.max.apply(Math,ww(i)),t}),[])},Lw=function(t){var e=t.style&&t.style.title||{},n=np(t.title,e),r=e.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},Iw=function(t,e){var n=ft(t,e,"legend"),r=Object.assign({},n,Cw(n)),o=r.title,i=r.titleOrientation,a=Dw(r),u=Tw(r,a),c=Rw(r,a),l=o?Lw(r):{height:0,width:0};return{height:"left"===i||"right"===i?Math.max(zw(c),l.height):zw(c)+l.height,width:"left"===i||"right"===i?zw(u)+l.width:Math.max(zw(u),l.width)}},Nw=function(t,e){var n=ft(t,e,"legend"),r=Object.assign({},n,Cw(n)),o=r.data,i=r.standalone,a=r.theme,u=r.padding,c=r.style,l=r.colorScale,s=r.gutter,f=r.rowGutter,p=r.borderPadding,h=r.title,d=r.titleOrientation,y=r.name,v=r.x,m=void 0===v?0:v,g=r.y,b=void 0===g?0:g,x=Dw(r),O=Tw(r,x),_=Rw(r,x),w=Ew(r),j=h?Lw(r):{height:0,width:0},P="left"===d?j.width:0,A="top"===d?j.height:0,M=s&&"object"==typeof s&&s.left||0,E=f&&"object"==typeof f&&f.top||0,C=Iw(r,e),S=function(t,e,n){var r=t.x,o=t.y,i=t.borderPadding,a=t.style;return{x:r,y:o,height:(e||0)+i.top+i.bottom,width:(n||0)+i.left+i.right,style:Object.assign({fill:"none"},a.border)}}(r,C.height,C.width),k=function(t,e){var n=t.title,r=t.titleOrientation,o=t.centerTitle,i=t.borderPadding,a=e.height,u=e.width,c=function(t){var e=t.titleOrientation,n=t.centerTitle,r=t.titleComponent,o=t.style&&t.style.title||{},i=r.props&&r.props.style||{},a=function(t,e){var n={textAnchor:"right"===t?"end":"start",verticalAnchor:"bottom"===t?"end":"start"};if(e){var r="top"===t||"bottom"===t;return{textAnchor:r?"middle":n.textAnchor,verticalAnchor:r?n.verticalAnchor:"middle"}}return n}(e,n);return Array.isArray(i)?i.map((function(t){return G()({},t,o,a)})):G()({},i,o,a)}(t),l=Array.isArray(c)?c[0].padding:c.padding,s="top"===r||"bottom"===r,f="right"===r?"right":"left",p={x:o?u/2:i["bottom"===r?"bottom":"top"]+(l||0),y:o?a/2:i[f]+(l||0)},h=function(){return i[r]+(l||0)},d=s?p.x:h(),y=s?h():p.y;return{x:"right"===r?t.x+u-d:t.x+d,y:"bottom"===r?t.y+a-y:t.y+y,style:c,text:n}}(r,S),D={parent:{data:o,standalone:i,theme:a,padding:u,name:y,height:r.height,width:r.width,style:c.parent},all:{border:S,title:k}};return x.reduce((function(t,e,n){var r=l[n%l.length],i=G()({},e.symbol,c.data,{fill:r}),a=ct(e.eventKey)?n:e.eventKey,u=function(t,e,n){var r=t.column,o=t.row;return{x:_w()(r).reduce((function(t,e){return t+n[e]}),0),y:_w()(o).reduce((function(t,n){return t+e[n]}),0)}}(e,_,O),s=b+p.top+e.symbolSpacer,f=m+p.left+e.symbolSpacer,h={index:n,data:o,datum:e,symbol:i.type||i.symbol||"circle",size:e.size,style:i,y:s+u.y+A+E,x:f+u.x+P+M},d={datum:e,data:o,text:e.name,style:w[n],y:h.y,x:h.x+e.symbolSpacer+e.size/2};return t[a]={data:h,labels:d},t}),D)};function zw(t){if(t&&t.length){for(var e=0,n=0;n<t.length;n++)e+=t[n];return e}return 0}function Bw(t){return function(t){if(Array.isArray(t))return Ww(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 Ww(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)?Ww(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 Ww(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 Uw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vw(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 Fw(t,e){return Fw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fw(t,e)}function Hw(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 qw(t){return qw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qw(t)}var Gw={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},Kw=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&&Fw(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=qw(r);if(o){var n=qw(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Hw(this,t)});function a(){return Uw(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"renderChildren",value:function(t){var e=this,n=t.dataComponent,r=t.labelComponent,o=t.title,i=[];if(t.borderComponent){var a=this.getComponentProps(t.borderComponent,"border","all"),u=A().cloneElement(t.borderComponent,a);i.push(u)}if(n){var c=this.dataKeys.map((function(t,r){if("all"!==t){var o=e.getComponentProps(n,"data",r);return A().cloneElement(n,o)}})).filter((function(t){return void 0!==t}));i.push.apply(i,Bw(c))}if(o&&t.titleComponent){var l=this.getComponentProps(o,"title","all"),s=A().cloneElement(t.titleComponent,l);i.push(s)}if(r){var f=this.dataKeys.map((function(t,n){if("all"!==t){var o=e.getComponentProps(r,"labels",n);return void 0!==o.text&&null!==o.text?A().cloneElement(r,o):void 0}})).filter((function(t){return void 0!==t}));i.push.apply(i,Bw(f))}return i}},{key:"render",value:function(){var t=this.constructor.role,e=ft(this.props,Gw,t),n=this.renderChildren(e);return e.standalone?this.renderContainer(e.containerComponent,n):A().cloneElement(e.groupComponent,{},n)}}])&&Vw(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Kw.displayName="VictoryLegend",Kw.role="legend",Kw.defaultProps={borderComponent:A().createElement(hv,null),data:[{name:"Series 1"},{name:"Series 2"}],containerComponent:A().createElement(Zs,null),dataComponent:A().createElement(lx,null),groupComponent:A().createElement("g",null),labelComponent:A().createElement(gp,null),standalone:!0,theme:Ip.grayscale,titleComponent:A().createElement(gp,null)},Kw.getBaseProps=function(t){return Nw(t,Gw)},Kw.getDimensions=function(t){return Iw(t,Gw)},Kw.expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];var $w=bd(Kw);function Yw(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 Xw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yw(Object(n),!0).forEach((function(e){Zw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qw={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},Jw=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.id,t),r=nt(Object.assign({fill:"none",stroke:"black",pointerEvents:"stroke"},t.style),t),o=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,id:n,style:r,tabIndex:o})}(Xw(Xw({},Qw),t)),n=es(e),r=e.polar,o=e.origin,i=Fl(e),a=r&&o?"translate(".concat(o.x,", ").concat(o.y,")"):void 0,u=i(e.data);return A().cloneElement(e.pathComponent,Xw(Xw(Xw({},e.events),n),{},{"aria-label":e.ariaLabel,d:u,style:e.style,transform:e.transform||a,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};function tj(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 ej(t,e){return ej=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ej(t,e)}function nj(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 rj(t){return rj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rj(t)}var oj={width:450,height:300,padding:50,interpolation:"linear"},ij=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&&ej(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=rj(r);if(o){var n=rj(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return nj(this,t)});function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,n=ft(this.props,oj,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderContinuousData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&tj(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);ij.animationWhitelist=["data","domain","height","padding","samples","style","width"],ij.displayName="VictoryLine",ij.role="line",ij.defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}},ij.defaultPolarTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(t){return{_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0}}}},ij.continuous=!0,ij.defaultProps={containerComponent:A().createElement(Zs,null),dataComponent:A().createElement(Jw,null),labelComponent:A().createElement(gp,{renderInPortal:!0}),groupComponent:A().createElement(bf,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},ij.getDomain=Ba,ij.getData=Pa,ij.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"line"),r=Object.assign({},n,function(t){var e=Pa(t);e.length<2&&(e=[]);var n={x:ut(t,"x"),y:ut(t,"y")},r={x:Ba(t,"x"),y:Ba(t,"y")},o={x:Zi(t,"x").domain(r.x).range(t.horizontal?n.y:n.x),y:Zi(t,"y").domain(r.y).range(t.horizontal?n.x:n.y)},i=t.polar?t.origin||at(t):void 0,a=J(t,"line");return{domain:r,data:e,scale:o,style:tt(t.style,a),origin:i}}(n)),o=r.data,i=r.domain,a=r.events,u=r.groupComponent,c=r.height,l=r.horizontal,s=r.interpolation,f=r.origin,p=r.padding,h=r.polar,d=r.scale,y=r.sharedEvents,v=r.standalone,m=r.style,g=r.theme,b=r.width,x=r.labels,O=r.name,_=r.disableInlineStyles,w={parent:{style:m.parent,scale:d,data:o,height:c,width:b,name:O,domain:i,standalone:v,polar:h,origin:f,padding:p,horizontal:l},all:{data:{horizontal:l,polar:h,origin:f,scale:d,data:o,interpolation:s,groupComponent:u,style:_?{}:m.data,theme:g,disableInlineStyles:_}}};return o.reduce((function(t,e,n){return(null!=Xa(r,e,n)||x&&(a||y))&&(t[ct(e.eventKey)?n:e.eventKey]={labels:eu(r,n)}),t}),w)}(t,oj)},ij.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var aj=bd(ij,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]}),uj=function(t,e){var n=e.style,r=function(t,e,n){return t&&t.data&&t.data.fill?t.data.fill:e&&e[n%e.length]}(n,e.colors,t);return Object.assign({fill:r},n.data)},cj=function(t,e){return t*function(t){return Math.cos(t-rt(90))}(e)},lj=function(t,e){return t*function(t){return Math.sin(t-rt(90))}(e)},sj=function(t){return t.reduce((function(t,e){return t+e}),0)/t.length},fj=function(t,e){var n=ft(t,e,"pie"),r=function(t){var e=t.colorScale,n=J(t,"pie"),r=tt(t.style,n),o=Array.isArray(e)?e:If(e),i=Z(t),a=function(t,e){return"number"==typeof t.radius?t.radius:Math.min(t.width-e.left-e.right,t.height-e.top-e.bottom)/2}(t,i),u=function(t,e){var n=t.width,r=t.height,o=W()(t.origin)?t.origin:{};return{x:void 0!==o.x?o.x:(e.left-e.right+n)/2,y:void 0!==o.y?o.y:(e.top-e.bottom+r)/2}}(t,i),c=Pa(t),l=function(t,e){var n=lt(t.padAngle)?0:t.padAngle;return Ku().sort(null).startAngle(rt(t.startAngle)).endAngle(rt(t.endAngle)).padAngle(rt(n)).value((function(t){return t._y}))(e)}(t,c);return Object.assign({},t,{style:r,colors:o,padding:i,defaultRadius:a,data:c,slices:l,origin:u})}(n),o=r.slices,i=r.style,a=r.data,u=r.origin,c=r.defaultRadius,l=r.labels,s=r.events,f=r.sharedEvents,p=r.height,h=r.width,d=r.standalone,y=r.name,v=r.innerRadius,m=r.cornerRadius,g=r.padAngle,b=r.disableInlineStyles,x=r.labelIndicator,O=n.radius||c,_={parent:{standalone:d,height:p,width:h,slices:o,name:y,style:i.parent}};return o.reduce((function(t,e,o){var i=G()({},a[o],{startAngle:ot(e.startAngle),endAngle:ot(e.endAngle),padAngle:ot(e.padAngle)}),c=ct(i.eventKey)?o:i.eventKey,p={index:o,slice:e,datum:i,data:a,origin:u,innerRadius:v,radius:O,cornerRadius:m,padAngle:g,style:b?{}:uj(o,r),disableInlineStyles:b};t[c]={data:p};var h=function(t,e,n){return null==(r=e.label?e.label:Array.isArray(t.labels)?t.labels[n]:lt(t.labels)?t.labels:e.xName||e._x)||lt(r)?r:"".concat(r);var r}(n,i,o);if(null!=h||l&&(s||f)){var d=et(h,p);if(t[c].labels=function(t,e,n){var r=e.index,o=e.datum,i=e.data,a=e.slice,u=e.labelComponent,c=e.theme,l=n.style,s=n.defaultRadius,f=n.origin,p=n.width,h=n.height,d=et(n.labelRadius,Object.assign({text:t},e)),y=et(n.labelPosition,Object.assign({text:t},e))||"centroid",v=et(n.labelPlacement,Object.assign({text:t},e))||"vertical",m=Object.assign({padding:0},l.labels),g=function(t,e,n){var r=n&&n.padding||0;return e||t+r}(s,d,nt(m,Object.assign({labelRadius:d,text:t},e))),b=function(t){return Hu().outerRadius(t).innerRadius(t)}(g),x=function(t,e,n){var r={startAngle:"startAngle"===n?e.startAngle:e.endAngle,endAngle:"endAngle"===n?e.endAngle:e.startAngle},o=Object.assign({},e,r);return t.centroid(o)}(b,a,y),O=function(t,e,n){var r;return((r=void 0!==e.angle?n.angle:ot("centroid"===e?(t.startAngle+t.endAngle)/2:"startAngle"===e?t.startAngle:t.endAngle))<0?360-r:r)%360}(a,y,m),_=function(t,e){return"vertical"===e?0:"parallel"===e?t>180&&t<360?t+90:t-90:t>90&&t<270?t-180:t}(O,v),w=function(t,e){return"perpendicular"===e?t>90&&t<270?"bottom":"top":"parallel"===e?t>=0&&t<=180?"right":"left":t<45||t>315?"top":t>=45&&t<135?"right":t>=135&&t<225?"bottom":"left"}(O,v),j=m.textAnchor||function(t){return"top"===t||"bottom"===t?"middle":"right"===t?"start":"end"}(w),P=m.verticalAnchor||function(t){return"left"===t||"right"===t?"middle":"bottom"===t?"start":"end"}(w),A={width:p,height:h,index:r,datum:o,data:i,slice:a,orientation:w,text:t,style:m,x:Math.round(x[0])+f.x,y:Math.round(x[1])+f.y,textAnchor:j,verticalAnchor:P,angle:_,calculatedLabelRadius:g};if(!Q(u))return A;var M=c&&c.tooltip||{};return G()({},A,$(M,["style"]))}(d,Object.assign({},n,p),r),x){var y=t[c].labels;y.calculatedLabelRadius>O&&(t[c].labelIndicators=function(t,e,n){var r=t.innerRadius,o=t.radius,i=t.slice,a=i.startAngle,u=i.endAngle,c=t.labelIndicatorInnerOffset,l=t.labelIndicatorOuterOffset,s=t.index,f=e.height,p=e.width,h=n.calculatedLabelRadius,d=sj([r,o]),y=sj([u,a]),v=p/2,m=f/2,g=d+c,b=h-l,x={x1:v+cj(g,y),y1:m+lj(g,y),x2:v+cj(b,y),y2:m+lj(b,y),index:s};return G()({},x)}(Object.assign({},n,p),r,y))}}return t}),_)};function pj(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 hj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pj(Object(n),!0).forEach((function(e){dj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yj=function(t){var e=t.slice,n=t.radius,r=t.innerRadius,o=t.cornerRadius;if(lt(t.pathFunction))return t.pathFunction(e);var i=rt(t.padAngle),a=rt(t.sliceStartAngle),u=rt(t.sliceEndAngle);return Hu().cornerRadius(o).outerRadius(n).innerRadius(r||0)(G()({startAngle:a,endAngle:u,padAngle:i},e))},vj={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},mj=function(t){var e=function(t){var e=nt(t.style,t),n=et(t.radius,Object.assign({},t,{style:e})),r=et(t.innerRadius,Object.assign({},t,{style:e,radius:n})),o=et(t.ariaLabel,t),i=et(t.id,t),a=et(t.cornerRadius,t),u=et(t.padAngle,t),c=et(t.sliceStartAngle,t),l=et(t.sliceEndAngle,t),s=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:o,style:e,radius:n,innerRadius:r,id:i,cornerRadius:a,padAngle:u,sliceStartAngle:c,sliceEndAngle:l,tabIndex:s})}(hj(hj({},vj),t)),n=e.origin?"translate(".concat(e.origin.x,", ").concat(e.origin.y,")"):void 0;return A().cloneElement(e.pathComponent,hj(hj({},e.events),{},{"aria-label":e.ariaLabel,d:yj(e),style:e.style,transform:e.transform||n,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};function gj(t){return function(t){if(Array.isArray(t))return bj(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 bj(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)?bj(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 bj(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 xj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Oj(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 _j(t,e){return _j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_j(t,e)}function wj(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 jj(t){return jj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jj(t)}var Pj={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},Aj=function(t){return!ct(t._x)&&!ct(t._y)},Mj=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&&_j(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=jj(r);if(o){var n=jj(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return wj(this,t)});function a(){return xj(this,a),i.apply(this,arguments)}return e=a,n=[{key:"shouldAnimate",value:function(){return Boolean(this.props.animate)}},{key:"renderComponents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Aj,r=t.dataComponent,o=t.labelComponent,i=t.groupComponent,a=t.labelIndicator,u=t.labelPosition;if(!i)throw new Error("VictoryPie expects a groupComponent prop");var c=a&&"centroid"===u,l=[];if(r){var s=this.dataKeys.reduce((function(t,o,i){var a=e.getComponentProps(r,"data",i);return n(a.datum)&&t.push(A().cloneElement(r,a)),t}),[]);l.push.apply(l,gj(s))}if(o){var f=this.dataKeys.map((function(t,n){var r=e.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return A().cloneElement(o,r)})).filter((function(t){return void 0!==t}));l.push.apply(l,gj(f))}if(c&&a){var p=A().createElement(ny,null);"object"==typeof a&&(p=a);var h=this.dataKeys.map((function(t,n){var r=e.getComponentProps(p,"labelIndicators",n);return A().cloneElement(p,r)}));l.push.apply(l,gj(h))}return this.renderContainer(i,l)}},{key:"render",value:function(){var t=Ej.animationWhitelist,e=Ej.role,n=ft(this.props,Pj,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderComponents(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}],n&&Oj(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Mj.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],Mj.displayName="VictoryPie",Mj.role="pie",Mj.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(t){return{y_:t._y,label:t.label}}}},Mj.defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:A().createElement(mj,null),labelComponent:A().createElement(gp,null),containerComponent:A().createElement(Zs,null),groupComponent:A().createElement("g",null),sortOrder:"ascending",theme:Ip.grayscale},Mj.getBaseProps=function(t){return fj(t,Pj)},Mj.getData=Pa,Mj.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];var Ej=bd(Mj);function Cj(t){return function(t){if(Array.isArray(t))return Sj(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 Sj(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)?Sj(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 Sj(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 kj=function(t,e){return e.bubbleProperty?"circle":t.symbol||e.symbol},Dj=function(t,e){var n=e.size,r=e.z;return t.size?"function"==typeof t.size?t.size:Math.max(t.size,1):"function"==typeof e.size?n:t[r]?function(t,e){var n,r=e.data,o=e.z,i=e.maxBubbleSize,a=e.minBubbleSize,u=r.map((function(t){return t[o]})),c=Math.min.apply(Math,Cj(u)),l=Math.max.apply(Math,Cj(u)),s=i||(n=Math.min.apply(Math,Cj(Object.values(Z(e)))),Math.max(n,5)),f=a||.1*s;if(l===c)return Math.max(f,1);var p=Math.PI*Math.pow(s,2),h=Math.PI*Math.pow(f,2),d=(t[o]-c)/(l-c)*p,y=Math.max(d,h),v=Math.sqrt(y/Math.PI);return Math.max(v,1)}(t,e):Math.max(n||0,1)};function Tj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rj(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 Lj(t,e){return Lj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lj(t,e)}function Ij(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 Nj(t){return Nj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nj(t)}var zj={width:450,height:300,padding:50,size:3,symbol:"circle"},Bj=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&&Lj(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=Nj(r);if(o){var n=Nj(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Ij(this,t)});function a(){return Tj(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=Wj.animationWhitelist,e=Wj.role,n=ft(this.props,zj,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&Rj(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Bj.animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"],Bj.displayName="VictoryScatter",Bj.role="scatter",Bj.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},Bj.defaultProps={containerComponent:A().createElement(Zs,null),dataComponent:A().createElement(lx,null),labelComponent:A().createElement(gp,null),groupComponent:A().createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},Bj.getDomain=Ba,Bj.getData=Pa,Bj.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"scatter"),r=Object.assign({},n,function(t){var e=J(t,"scatter"),n=tt(t.style,e),r={x:ut(t,"x"),y:ut(t,"y")},o={x:Ba(t,"x"),y:Ba(t,"y")},i={x:Zi(t,"x").domain(o.x).range(t.horizontal?r.y:r.x),y:Zi(t,"y").domain(o.y).range(t.horizontal?r.x:r.y)},a=t.polar?t.origin||at(t):void 0,u=t.bubbleProperty||"z",c=Pa(t);return{domain:o,data:c=ba(c,o),scale:i,style:n,origin:a,z:u}}(n)),o=r.data,i=r.domain,a=r.events,u=r.height,c=r.origin,l=r.padding,s=r.polar,f=r.scale,p=r.name,h=r.sharedEvents,d=r.standalone,y=r.style,v=r.theme,m=r.width,g=r.labels,b=r.horizontal,x=r.disableInlineStyles,O={parent:{style:y.parent,scale:f,domain:i,data:o,height:u,width:m,standalone:d,theme:v,origin:c,polar:s,padding:l,name:p,horizontal:b}};return o.reduce((function(t,e,n){var i=ct(e.eventKey)?n:e.eventKey,u=X(r,e),l={x:u.x,y:u.y,datum:e,data:o,index:n,scale:f,polar:s,origin:c,horizontal:b,size:Dj(e,r),symbol:kj(e,r),style:x?{}:y.data,disableInlineStyles:x};return t[i]={data:l},(null!=Xa(r,e,n)||g&&(a||h))&&(t[i].labels=eu(r,n)),t}),O)}(t,zj)},Bj.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var Wj=bd(Bj);function Uj(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 Vj(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 Fj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vj(Object(n),!0).forEach((function(e){Hj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qj={width:450,height:300,padding:50};function Gj(t,e){var n=Ug(t,e).map((function(t){return t.filter((function(t){return null!==t._x&&null!==t._y}))})),r=function(t,e){var n=t.fillInMissingData,r=e.reduce((function(t,e){return e.forEach((function(e){t[e._x instanceof Date?e._x.getTime():e._x]=!0})),t}),{}),o=Object.keys(r).map((function(t){return Number(t)})),i=I()(o);return e.map((function(t){var e=0,r=t[0]&&t[0]._x instanceof Date,o=i.map((function(o,i){var a=Number(o),u=t[i-e];if(u){if((r?u._x.getTime():u._x)===a)return u;e++;var c=n?0:null;return{x:a=r?new Date(a):a,y:c,_x:a,_y:c}}var l=n?0:null;return{x:a=r?new Date(a):a,y:l,_x:a,_y:l}}));return o}))}(t,n);return r.map((function(e,n){return function(t,e,n){var r=t.xOffset||0;return e[n].map((function(t){var o=function(t,e,n){if(t.y0)return t.y0;var r=t._y,o=t._group,i=n[0].map((function(t){return t.y0})),a=n.slice(0,e).reduce((function(e,n){return e.concat(n.filter((function(e){return t._x instanceof Date?e._x.getTime()===t._x.getTime():e._x===t._x})).map((function(t){return t._y||0})))}),[]),u=a.length&&a.reduce((function(t,e){return r<0&&e<0||r>=0&&e>=0?Number(e)+t:t}),i[o]||0);return a.some((function(t){return t instanceof Date}))?new Date(u):u}(t,n,e)||0;return Object.assign({},t,{_y0:t._y instanceof Date?o?new Date(o):t._y:o,_y1:null===t._y?null:t._y instanceof Date?new Date(Number(t._y)+Number(o)):t._y+o,_x1:null===t._x?null:t._x instanceof Date?new Date(Number(t._x)+Number(r)):t._x+r})}))}(t,r,n)}))}function Kj(t,e){var n=e||A().Children.toArray(t.children),r="stack",o=ft(t,qj,r),i=Xg(o.theme,o.style,r),a=o.categories||nb(o,n),u=o.datasets||Gj(o,n),c=n.map((function(t,e){return A().cloneElement(t,{data:u[e]})})),l={x:Gg(Object.assign({},o,{categories:a}),"x",c),y:Gg(Object.assign({},o,{categories:a}),"y",c)},s=o.range||{x:ut(o,"x"),y:ut(o,"y")},f={x:Ji(o,"x")||Kg(o,"x"),y:Ji(o,"y")||Kg(o,"y")},p={x:f.x.domain(l.x).range(o.horizontal?s.y:s.x),y:f.y.domain(l.y).range(o.horizontal?s.x:s.y)},h=o.colorScale,d=o.horizontal;return{datasets:u,categories:a,range:s,domain:l,horizontal:d,scale:p,style:i,colorScale:h,role:r}}function $j(t){var e,n,r=function(t){var e=t.children,n=A().Children.toArray(e).map((function(t){var e=t;return Fj(Fj({},e),{},{props:$(e.props,["sharedEvents"])})}));return t.children=n,t}(t),o=(e=A().useState(r),n=2,function(t){if(Array.isArray(t))return t}(e)||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}}(e,n)||function(t,e){if(t){if("string"==typeof t)return Uj(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)?Uj(t,e):void 0}}(e,n)||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.")}()),i=o[0],a=o[1];return A().useEffect((function(){Up()(r,i)||a(r)}),[i,a,r]),A().useMemo((function(){return Kj(i,i.children)}),[i])}function Yj(t,e){var n=e.type&&e.type.role,r=e.props.colorScale||t.colorScale;if("group"===n||"stack"===n)return t.theme?r||t.theme.props.colorScale:r}function Xj(t,e,n){var r=ft(t,qj,"stack"),o=e||A().Children.toArray(r.children),i=n||Kj(r,o),a=i.datasets,u=function(t,e){var n=e.categories,r=e.domain,o=e.range,i=e.scale,a=e.horizontal;return{height:t.height,width:t.width,padding:Z(t),standalone:!1,theme:t.theme,categories:n,domain:r,range:o,scale:i,horizontal:a}}(r,i),c=r.name||"stack";return o.map((function(t,e){var n=t.type&&t.type.role,o=a[e],l=Zg(t,e,i),s=r.labels?function(t,e,n){if(t.labels)return e.length===n+1?t.labels:void 0}(r,a,e):t.props.labels,f=t.props.name||"".concat(c,"-").concat(n,"-").concat(e);return A().cloneElement(t,Object.assign({key:"".concat(f,"-key-").concat(e),labels:s,name:f,domainPadding:t.props.domainPadding||r.domainPadding,theme:r.theme,labelComponent:r.labelComponent||t.props.labelComponent,style:l,colorScale:Yj(r,t),data:o,polar:r.polar},u))}))}function Zj(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 Qj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zj(Object(n),!0).forEach((function(e){Jj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tP={width:450,height:300,padding:50},eP={containerComponent:A().createElement(Zs,null),groupComponent:A().createElement("g",null),standalone:!0,theme:Ip.grayscale,fillInMissingData:!0},nP=function(t){var e=oP.role,n=A().useMemo((function(){return Qj(Qj({},eP),t)}),[t]),r=Dg(),o=r.setAnimationState,i=r.getAnimationProps,a=(0,r.getProps)(n),u=ft(a,tP,e),c=u.eventKey,l=u.containerComponent,s=u.standalone,f=u.groupComponent,p=u.externalEventMutations,h=u.width,d=u.height,y=u.theme,v=u.polar,m=u.horizontal,g=u.name,b=A().Children.toArray(u.children),x=$j(u),O=x.domain,_=x.scale,w=x.style,j=A().useMemo((function(){return Xj(a,b,x).map((function(t,e){var n=Object.assign({animate:i(a,t,e)},t.props);return A().cloneElement(t,n)})).reverse()}),[a,b,x,i]),P=A().useMemo((function(){return s?{domain:O,scale:_,width:h,height:d,standalone:s,theme:y,style:w.parent,horizontal:m,polar:v,name:g}:{}}),[s,O,_,h,d,y,w,m,v,g]),M=A().useMemo((function(){return es(n)}),[n]),E=A().useMemo((function(){if(s){var t=G()({},l.props,P,M);return A().cloneElement(l,t)}return A().cloneElement(f,M)}),[f,s,l,P,M]),C=A().useMemo((function(){return $g(a)}),[a]),S=rb(n);return A().useEffect((function(){return function(){n.animate&&o(S,n)}}),[o,S,n]),R()(C)?A().cloneElement(E,E.props,j):A().createElement(yb,{container:E,eventKey:c,events:C,externalEventMutations:p},j)},rP={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:Xj},oP=Object.assign(A().memo(nP,Up()),rP);function iP(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 aP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?iP(Object(n),!0).forEach((function(e){uP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function uP(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}oP.displayName="VictoryStack";var cP={pathComponent:A().createElement($l,null),circleComponent:A().createElement(rf,null),clipPathComponent:A().createElement(Qs,null),groupComponent:A().createElement("g",null),role:"presentation",shapeRendering:"auto"},lP=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.id,t),r=et(t.size,t),o=nt(t.style,t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,id:n,size:r,style:o,tabIndex:i})}(aP(aP({},cP),t)),n=e.ariaLabel,r=e.role,o=e.shapeRendering,i=e.className,a=e.events,u=e.transform,c=e.style,l=e.size,s=e.tabIndex,f=function(t){var e,n=t.polygon;return Array.isArray(n)&&n.length?"M ".concat(null===(e=t.polygon)||void 0===e?void 0:e.join("L")," Z"):""}(e),p=aP({"aria-label":n,className:i,role:r,shapeRendering:o,style:c,tabIndex:s,transform:u},a),h=es(e);if(l){var d=A().cloneElement(e.circleComponent,aP(aP({},p),{},{key:"".concat(e.id,"-circle-clip"),clipPath:"url(#".concat(e.clipId,")"),cx:e.x,cy:e.y,r:l})),y=A().cloneElement(e.clipPathComponent,{key:"".concat(e.id,"-voronoi-clip"),clipId:e.clipId},A().cloneElement(e.pathComponent,{d:f,className:i}));return A().cloneElement(e.groupComponent,{},[y,d])}return A().cloneElement(e.pathComponent,aP(aP(aP({},p),h),{},{d:f}))};function sP(t){return function(){return t}}function fP(t){return t[0]}function pP(t){return t[1]}function hP(){this._=null}function dP(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function yP(t,e){var n=e,r=e.R,o=n.U;o?o.L===n?o.L=r:o.R=r:t._=r,r.U=o,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function vP(t,e){var n=e,r=e.L,o=n.U;o?o.L===n?o.L=r:o.R=r:t._=r,r.U=o,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function mP(t){for(;t.L;)t=t.L;return t}hP.prototype={constructor:hP,insert:function(t,e){var n,r,o;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=mP(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(o=r.R)&&o.C?(n.C=o.C=!1,r.C=!0,t=r):(t===n.R&&(yP(this,n),n=(t=n).U),n.C=!1,r.C=!0,vP(this,r)):(o=r.L)&&o.C?(n.C=o.C=!1,r.C=!0,t=r):(t===n.L&&(vP(this,n),n=(t=n).U),n.C=!1,r.C=!0,yP(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,o=t.U,i=t.L,a=t.R;if(n=i?a?mP(a):i:a,o?o.L===t?o.L=n:o.R=n:this._=n,i&&a?(r=n.C,n.C=t.C,n.L=i,i.U=n,n!==a?(o=n.U,n.U=t.U,t=n.R,o.L=t,n.R=a,a.U=n):(n.U=o,o=n,t=n.R)):(r=t.C,t=n),t&&(t.U=o),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===o.L){if((e=o.R).C&&(e.C=!1,o.C=!0,yP(this,o),e=o.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,vP(this,e),e=o.R),e.C=o.C,o.C=e.R.C=!1,yP(this,o),t=this._;break}}else if((e=o.L).C&&(e.C=!1,o.C=!0,vP(this,o),e=o.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,yP(this,e),e=o.L),e.C=o.C,o.C=e.L.C=!1,vP(this,o),t=this._;break}e.C=!0,t=o,o=o.U}while(!t.C);t&&(t.C=!1)}}};const gP=hP;function bP(t,e,n,r){var o=[null,null],i=FP.push(o)-1;return o.left=t,o.right=e,n&&OP(o,t,e,n),r&&OP(o,e,t,r),UP[t.index].halfedges.push(i),UP[e.index].halfedges.push(i),o}function xP(t,e,n){var r=[e,n];return r.left=t,r}function OP(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function _P(t,e,n,r,o){var i,a=t[0],u=t[1],c=a[0],l=a[1],s=0,f=1,p=u[0]-c,h=u[1]-l;if(i=e-c,p||!(i>0)){if(i/=p,p<0){if(i<s)return;i<f&&(f=i)}else if(p>0){if(i>f)return;i>s&&(s=i)}if(i=r-c,p||!(i<0)){if(i/=p,p<0){if(i>f)return;i>s&&(s=i)}else if(p>0){if(i<s)return;i<f&&(f=i)}if(i=n-l,h||!(i>0)){if(i/=h,h<0){if(i<s)return;i<f&&(f=i)}else if(h>0){if(i>f)return;i>s&&(s=i)}if(i=o-l,h||!(i<0)){if(i/=h,h<0){if(i>f)return;i>s&&(s=i)}else if(h>0){if(i<s)return;i<f&&(f=i)}return!(s>0||f<1)||(s>0&&(t[0]=[c+s*p,l+s*h]),f<1&&(t[1]=[c+f*p,l+f*h]),!0)}}}}}function wP(t,e,n,r,o){var i=t[1];if(i)return!0;var a,u,c=t[0],l=t.left,s=t.right,f=l[0],p=l[1],h=s[0],d=s[1],y=(f+h)/2,v=(p+d)/2;if(d===p){if(y<e||y>=r)return;if(f>h){if(c){if(c[1]>=o)return}else c=[y,n];i=[y,o]}else{if(c){if(c[1]<n)return}else c=[y,o];i=[y,n]}}else if(u=v-(a=(f-h)/(d-p))*y,a<-1||a>1)if(f>h){if(c){if(c[1]>=o)return}else c=[(n-u)/a,n];i=[(o-u)/a,o]}else{if(c){if(c[1]<n)return}else c=[(o-u)/a,o];i=[(n-u)/a,n]}else if(p<d){if(c){if(c[0]>=r)return}else c=[e,a*e+u];i=[r,a*r+u]}else{if(c){if(c[0]<e)return}else c=[r,a*r+u];i=[e,a*e+u]}return t[0]=c,t[1]=i,!0}function jP(t,e){var n=t.site,r=e.left,o=e.right;return n===o&&(o=r,r=n),o?Math.atan2(o[1]-r[1],o[0]-r[0]):(n===r?(r=e[1],o=e[0]):(r=e[0],o=e[1]),Math.atan2(r[0]-o[0],o[1]-r[1]))}function PP(t,e){return e[+(e.left!==t.site)]}function AP(t,e){return e[+(e.left===t.site)]}var MP,EP=[];function CP(){dP(this),this.x=this.y=this.arc=this.site=this.cy=null}function SP(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,o=t.site,i=n.site;if(r!==i){var a=o[0],u=o[1],c=r[0]-a,l=r[1]-u,s=i[0]-a,f=i[1]-u,p=2*(c*f-l*s);if(!(p>=-qP)){var h=c*c+l*l,d=s*s+f*f,y=(f*h-l*d)/p,v=(c*d-s*h)/p,m=EP.pop()||new CP;m.arc=t,m.site=o,m.x=y+a,m.y=(m.cy=v+u)+Math.sqrt(y*y+v*v),t.circle=m;for(var g=null,b=VP._;b;)if(m.y<b.y||m.y===b.y&&m.x<=b.x){if(!b.L){g=b.P;break}b=b.L}else{if(!b.R){g=b;break}b=b.R}VP.insert(g,m),g||(MP=m)}}}}function kP(t){var e=t.circle;e&&(e.P||(MP=e.N),VP.remove(e),EP.push(e),dP(e),t.circle=null)}var DP=[];function TP(){dP(this),this.edge=this.site=this.circle=null}function RP(t){var e=DP.pop()||new TP;return e.site=t,e}function LP(t){kP(t),WP.remove(t),DP.push(t),dP(t)}function IP(t){var e=t.circle,n=e.x,r=e.cy,o=[n,r],i=t.P,a=t.N,u=[t];LP(t);for(var c=i;c.circle&&Math.abs(n-c.circle.x)<HP&&Math.abs(r-c.circle.cy)<HP;)i=c.P,u.unshift(c),LP(c),c=i;u.unshift(c),kP(c);for(var l=a;l.circle&&Math.abs(n-l.circle.x)<HP&&Math.abs(r-l.circle.cy)<HP;)a=l.N,u.push(l),LP(l),l=a;u.push(l),kP(l);var s,f=u.length;for(s=1;s<f;++s)l=u[s],c=u[s-1],OP(l.edge,c.site,l.site,o);c=u[0],(l=u[f-1]).edge=bP(c.site,l.site,null,o),SP(c),SP(l)}function NP(t){for(var e,n,r,o,i=t[0],a=t[1],u=WP._;u;)if((r=zP(u,a)-i)>HP)u=u.L;else{if(!((o=i-BP(u,a))>HP)){r>-HP?(e=u.P,n=u):o>-HP?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){UP[t.index]={site:t,halfedges:[]}}(t);var c=RP(t);if(WP.insert(e,c),e||n){if(e===n)return kP(e),n=RP(e.site),WP.insert(c,n),c.edge=n.edge=bP(e.site,c.site),SP(e),void SP(n);if(n){kP(e),kP(n);var l=e.site,s=l[0],f=l[1],p=t[0]-s,h=t[1]-f,d=n.site,y=d[0]-s,v=d[1]-f,m=2*(p*v-h*y),g=p*p+h*h,b=y*y+v*v,x=[(v*g-h*b)/m+s,(p*b-y*g)/m+f];OP(n.edge,l,d,x),c.edge=bP(l,t,null,x),n.edge=bP(t,d,null,x),SP(e),SP(n)}else c.edge=bP(e.site,c.site)}}function zP(t,e){var n=t.site,r=n[0],o=n[1],i=o-e;if(!i)return r;var a=t.P;if(!a)return-1/0;var u=(n=a.site)[0],c=n[1],l=c-e;if(!l)return u;var s=u-r,f=1/i-1/l,p=s/l;return f?(-p+Math.sqrt(p*p-2*f*(s*s/(-2*l)-c+l/2+o-i/2)))/f+r:(r+u)/2}function BP(t,e){var n=t.N;if(n)return zP(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var WP,UP,VP,FP,HP=1e-6,qP=1e-12;function GP(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function KP(t,e){return e[1]-t[1]||e[0]-t[0]}function $P(t,e){var n,r,o,i=t.sort(KP).pop();for(FP=[],UP=new Array(t.length),WP=new gP,VP=new gP;;)if(o=MP,i&&(!o||i[1]<o.y||i[1]===o.y&&i[0]<o.x))i[0]===n&&i[1]===r||(NP(i),n=i[0],r=i[1]),i=t.pop();else{if(!o)break;IP(o.arc)}if(function(){for(var t,e,n,r,o=0,i=UP.length;o<i;++o)if((t=UP[o])&&(r=(e=t.halfedges).length)){var a=new Array(r),u=new Array(r);for(n=0;n<r;++n)a[n]=n,u[n]=jP(t,FP[e[n]]);for(a.sort((function(t,e){return u[e]-u[t]})),n=0;n<r;++n)u[n]=e[a[n]];for(n=0;n<r;++n)e[n]=u[n]}}(),e){var a=+e[0][0],u=+e[0][1],c=+e[1][0],l=+e[1][1];!function(t,e,n,r){for(var o,i=FP.length;i--;)wP(o=FP[i],t,e,n,r)&&_P(o,t,e,n,r)&&(Math.abs(o[0][0]-o[1][0])>HP||Math.abs(o[0][1]-o[1][1])>HP)||delete FP[i]}(a,u,c,l),function(t,e,n,r){var o,i,a,u,c,l,s,f,p,h,d,y,v=UP.length,m=!0;for(o=0;o<v;++o)if(i=UP[o]){for(a=i.site,u=(c=i.halfedges).length;u--;)FP[c[u]]||c.splice(u,1);for(u=0,l=c.length;u<l;)d=(h=AP(i,FP[c[u]]))[0],y=h[1],f=(s=PP(i,FP[c[++u%l]]))[0],p=s[1],(Math.abs(d-f)>HP||Math.abs(y-p)>HP)&&(c.splice(u,0,FP.push(xP(a,h,Math.abs(d-t)<HP&&r-y>HP?[t,Math.abs(f-t)<HP?p:r]:Math.abs(y-r)<HP&&n-d>HP?[Math.abs(p-r)<HP?f:n,r]:Math.abs(d-n)<HP&&y-e>HP?[n,Math.abs(f-n)<HP?p:e]:Math.abs(y-e)<HP&&d-t>HP?[Math.abs(p-e)<HP?f:t,e]:null))-1),++l);l&&(m=!1)}if(m){var g,b,x,O=1/0;for(o=0,m=null;o<v;++o)(i=UP[o])&&(x=(g=(a=i.site)[0]-t)*g+(b=a[1]-e)*b)<O&&(O=x,m=i);if(m){var _=[t,e],w=[t,r],j=[n,r],P=[n,e];m.halfedges.push(FP.push(xP(a=m.site,_,w))-1,FP.push(xP(a,w,j))-1,FP.push(xP(a,j,P))-1,FP.push(xP(a,P,_))-1)}}for(o=0;o<v;++o)(i=UP[o])&&(i.halfedges.length||delete UP[o])}(a,u,c,l)}this.edges=FP,this.cells=UP,WP=VP=FP=UP=null}function YP(t){return function(t){if(Array.isArray(t))return XP(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 XP(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)?XP(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 XP(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}$P.prototype={constructor:$P,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return PP(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,r){if(i=(o=n.halfedges).length)for(var o,i,a,u=n.site,c=-1,l=e[o[i-1]],s=l.left===u?l.right:l.left;++c<i;)a=s,s=(l=e[o[c]]).left===u?l.right:l.left,a&&s&&r<a.index&&r<s.index&&GP(u,a,s)<0&&t.push([u.data,a.data,s.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var r,o,i=this,a=i._found||0,u=i.cells.length;!(o=i.cells[a]);)if(++a>=u)return null;var c=t-o.site[0],l=e-o.site[1],s=c*c+l*l;do{o=i.cells[r=a],a=null,o.halfedges.forEach((function(n){var r=i.edges[n],u=r.left;if(u!==o.site&&u||(u=r.right)){var c=t-u[0],l=e-u[1],f=c*c+l*l;f<s&&(s=f,a=u.index)}}))}while(null!==a);return i._found=r,null==n||s<=n*n?o.site:null}};var ZP=function(t,e,n){var r=[Math.min.apply(Math,YP(e.x)),Math.min.apply(Math,YP(e.y))],o=[Math.max.apply(Math,YP(e.x)),Math.max.apply(Math,YP(e.y))];return function(){var t=fP,e=pP,n=null;function r(r){return new $P(r.map((function(n,o){var i=[Math.round(t(n,o,r)/HP)*HP,Math.round(e(n,o,r)/HP)*HP];return i.index=o,i.data=n,i})),n)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(e){return arguments.length?(t="function"==typeof e?e:sP(+e),r):t},r.y=function(t){return arguments.length?(e="function"==typeof t?t:sP(+t),r):e},r.extent=function(t){return arguments.length?(n=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(t){return arguments.length?(n=null==t?null:[[0,0],[+t[0],+t[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r}().x((function(e){return t.polar?function(t){return-1*n.x(void 0!==t._x1?t._x1:t._x)+Math.PI/2}(e):function(e){return t.horizontal?n.y(void 0!==e._y1?e._y1:e._y):n.x(void 0!==e._x1?e._x1:e._x)}(e)})).y((function(e){return function(e){return t.horizontal?n.x(void 0!==e._x1?e._x1:e._x):n.y(void 0!==e._y1?e._y1:e._y)}(e)})).extent([r,o])};function QP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JP(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 tA(t,e){return tA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tA(t,e)}function eA(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 nA(t){return nA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nA(t)}var rA={width:450,height:300,padding:50},oA=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&&tA(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=nA(r);if(o){var n=nA(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return eA(this,t)});function a(){return QP(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=iA.animationWhitelist,e=iA.role,n=ft(this.props,rA,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&JP(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);oA.animationWhitelist=["data","domain","height","padding","samples","size","style","width"],oA.displayName="VictoryVoronoi",oA.role="voronoi",oA.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},oA.defaultProps={containerComponent:A().createElement(Zs,null),dataComponent:A().createElement(lP,null),labelComponent:A().createElement(gp,null),groupComponent:A().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},oA.getDomain=Ba,oA.getData=Pa,oA.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"scatter"),r=Object.assign({},n,function(t){var e=t.theme&&t.theme.voronoi&&t.theme.voronoi.style?t.theme.voronoi.style:{},n=tt(t.style,e),r={x:ut(t,"x"),y:ut(t,"y")},o={x:Ba(t,"x"),y:Ba(t,"y")},i={x:Zi(t,"x").domain(o.x).range(t.horizontal?r.y:r.x),y:Zi(t,"y").domain(o.y).range(t.horizontal?r.x:r.y)},a=Pa(t);return{domain:o,data:a=(a=ba(a,o)).filter((function(t){return null!==t._x&&null!==t._y})),scale:i,style:n,polygons:ZP(t,r,i).polygons(a),origin:t.polar?t.origin||at(t):void 0}}(n)),o=r.data,i=r.domain,a=r.events,u=r.height,c=r.origin,l=r.padding,s=r.polar,f=r.polygons,p=r.scale,h=r.sharedEvents,d=r.standalone,y=r.style,v=r.theme,m=r.width,g=r.labels,b=r.name,x={parent:{style:y.parent,scale:p,domain:i,data:o,standalone:d,height:u,width:m,theme:v,origin:c,polar:s,padding:l,name:b}};return o.reduce((function(t,e,n){var i,u=null===(i=f[n])||void 0===i?void 0:i.filter((function(t){return"data"!==t})),l=ct(e.eventKey)?n:e.eventKey,s=X(r,e),d={x:s.x,y:s.y,datum:e,data:o,index:n,scale:p,polygon:u,origin:c,size:r.size,style:y.data};return t[l]={data:d},(null!=Xa(r,e,n)||g&&(a||h))&&(t[l].labels=eu(r,n)),t}),x)}(t,rA)},oA.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var iA=bd(oA)})(),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.Victory=n(require("react")):t.Victory=n(t.React)}(self,(function(t){return function(){var n={3644:function(t){t.exports=function(){"use strict";var t=Math.pow(2,-52),n=new Uint32Array(512),e=function(t){var n=t.length>>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;var e=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()};function r(t,n,e,r){var i=t-e,o=n-r;return i*i+o*o}function i(t,n,e,r,i,o){var a=(r-n)*(i-t),s=(e-t)*(o-n);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function o(t,n,e,r,o,a){return(i(o,a,t,n,e,r)||i(t,n,e,r,o,a)||i(e,r,o,a,t,n))<0}function a(t,n,e,r,i,o){var a=e-t,s=r-n,l=i-t,c=o-n,u=a*a+s*s,h=l*l+c*c,d=.5/(a*c-s*l),f=(c*u-s*h)*d,p=(a*h-l*u)*d;return f*f+p*p}function s(t,n,e,r){if(r-e<=20)for(var i=e+1;i<=r;i++){for(var o=t[i],a=n[o],c=i-1;c>=e&&n[t[c]]>a;)t[c+1]=t[c--];t[c+1]=o}else{var u=e+1,h=r;l(t,e+r>>1,u),n[t[e]]>n[t[r]]&&l(t,e,r),n[t[u]]>n[t[r]]&&l(t,u,r),n[t[e]]>n[t[u]]&&l(t,e,u);for(var d=t[u],f=n[d];;){do{u++}while(n[t[u]]<f);do{h--}while(n[t[h]]>f);if(h<u)break;l(t,u,h)}t[e+1]=t[h],t[h]=d,r-u+1>=h-e?(s(t,n,u,r),s(t,n,e,h-1)):(s(t,n,e,h-1),s(t,n,u,r))}}function l(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function c(t){return t[0]}function u(t){return t[1]}return e.from=function(t,n,r){void 0===n&&(n=c),void 0===r&&(r=u);for(var i=t.length,o=new Float64Array(2*i),a=0;a<i;a++){var s=t[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new e(o)},e.prototype.update=function(){for(var n=this,e=n.coords,i=n._hullPrev,l=n._hullNext,c=n._hullTri,u=n._hullHash,h=e.length>>1,d=1/0,f=1/0,p=-1/0,m=-1/0,y=0;y<h;y++){var g=e[2*y],x=e[2*y+1];g<d&&(d=g),x<f&&(f=x),g>p&&(p=g),x>m&&(m=x),this._ids[y]=y}for(var v,b,_,M=(d+p)/2,C=(f+m)/2,w=1/0,A=0;A<h;A++){var E=r(M,C,e[2*A],e[2*A+1]);E<w&&(v=A,w=E)}var k=e[2*v],S=e[2*v+1];w=1/0;for(var P=0;P<h;P++)if(P!==v){var D=r(k,S,e[2*P],e[2*P+1]);D<w&&D>0&&(b=P,w=D)}for(var O=e[2*b],L=e[2*b+1],T=1/0,j=0;j<h;j++)if(j!==v&&j!==b){var $=a(k,S,O,L,e[2*j],e[2*j+1]);$<T&&(_=j,T=$)}var N=e[2*_],z=e[2*_+1];if(T===1/0){for(var R=0;R<h;R++)this._dists[R]=e[2*R]-e[0]||e[2*R+1]-e[1];s(this._ids,this._dists,0,h-1);for(var I=new Uint32Array(h),W=0,B=0,V=-1/0;B<h;B++){var F=this._ids[B];this._dists[F]>V&&(I[W++]=F,V=this._dists[F])}return this.hull=I.subarray(0,W),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(o(k,S,O,L,N,z)){var U=b,H=O,q=L;b=_,O=N,L=z,_=U,N=H,z=q}var G=function(t,n,e,r,i,o){var a=e-t,s=r-n,l=i-t,c=o-n,u=a*a+s*s,h=l*l+c*c,d=.5/(a*c-s*l);return{x:t+(c*u-s*h)*d,y:n+(a*h-l*u)*d}}(k,S,O,L,N,z);this._cx=G.x,this._cy=G.y;for(var K=0;K<h;K++)this._dists[K]=r(e[2*K],e[2*K+1],G.x,G.y);s(this._ids,this._dists,0,h-1),this._hullStart=v;var Y=3;l[v]=i[_]=b,l[b]=i[v]=_,l[_]=i[b]=v,c[v]=0,c[b]=1,c[_]=2,u.fill(-1),u[this._hashKey(k,S)]=v,u[this._hashKey(O,L)]=b,u[this._hashKey(N,z)]=_,this.trianglesLen=0,this._addTriangle(v,b,_,-1,-1,-1);for(var X=0,Z=void 0,Q=void 0;X<this._ids.length;X++){var J=this._ids[X],tt=e[2*J],nt=e[2*J+1];if(!(X>0&&Math.abs(tt-Z)<=t&&Math.abs(nt-Q)<=t)&&(Z=tt,Q=nt,J!==v&&J!==b&&J!==_)){for(var et=0,rt=0,it=this._hashKey(tt,nt);rt<this._hashSize&&(-1===(et=u[(it+rt)%this._hashSize])||et===l[et]);rt++);for(var ot=et=i[et],at=void 0;at=l[ot],!o(tt,nt,e[2*ot],e[2*ot+1],e[2*at],e[2*at+1]);)if((ot=at)===et){ot=-1;break}if(-1!==ot){var st=this._addTriangle(ot,J,l[ot],-1,-1,c[ot]);c[J]=this._legalize(st+2),c[ot]=st,Y++;for(var lt=l[ot];at=l[lt],o(tt,nt,e[2*lt],e[2*lt+1],e[2*at],e[2*at+1]);)st=this._addTriangle(lt,J,at,c[J],-1,c[lt]),c[J]=this._legalize(st+2),l[lt]=lt,Y--,lt=at;if(ot===et)for(;o(tt,nt,e[2*(at=i[ot])],e[2*at+1],e[2*ot],e[2*ot+1]);)st=this._addTriangle(at,J,ot,-1,c[ot],c[at]),this._legalize(st+2),c[at]=st,l[ot]=ot,Y--,ot=at;this._hullStart=i[J]=ot,l[ot]=i[lt]=J,l[J]=lt,u[this._hashKey(tt,nt)]=J,u[this._hashKey(e[2*ot],e[2*ot+1])]=ot}}}this.hull=new Uint32Array(Y);for(var ct=0,ut=this._hullStart;ct<Y;ct++)this.hull[ct]=ut,ut=l[ut];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},e.prototype._hashKey=function(t,n){return Math.floor((e=t-this._cx,r=n-this._cy,i=e/(Math.abs(e)+Math.abs(r)),(r>0?3-i:1+i)/4*this._hashSize))%this._hashSize;var e,r,i},e.prototype._legalize=function(t){for(var e=this,r=e._triangles,i=e._halfedges,o=e.coords,a=0,s=0;;){var l=i[t],c=t-t%3;if(s=c+(t+2)%3,-1!==l){var u=l-l%3,h=c+(t+1)%3,d=u+(l+2)%3,f=r[s],p=r[t],m=r[h],y=r[d];if(b=o[2*f],_=o[2*f+1],M=o[2*p],C=o[2*p+1],w=o[2*m],A=o[2*m+1],E=o[2*y],k=o[2*y+1],S=void 0,P=void 0,D=void 0,O=void 0,L=void 0,T=void 0,j=void 0,$=void 0,(S=b-E)*((O=C-k)*($=(L=w-E)*L+(T=A-k)*T)-(j=(D=M-E)*D+O*O)*T)-(P=_-k)*(D*$-j*L)+(S*S+P*P)*(D*T-O*L)<0){r[t]=y,r[l]=f;var g=i[d];if(-1===g){var x=this._hullStart;do{if(this._hullTri[x]===d){this._hullTri[x]=t;break}x=this._hullPrev[x]}while(x!==this._hullStart)}this._link(t,g),this._link(l,i[s]),this._link(s,d);var v=u+(l+1)%3;a<n.length&&(n[a++]=v)}else{if(0===a)break;t=n[--a]}}else{if(0===a)break;t=n[--a]}}var b,_,M,C,w,A,E,k,S,P,D,O,L,T,j,$;return s},e.prototype._link=function(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)},e.prototype._addTriangle=function(t,n,e,r,i,o){var a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=n,this._triangles[a+2]=e,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a},e}()},6898:function(t,n,e){"use strict";n.Z=void 0;var r,i=(r=e(3644))&&r.__esModule?r:{default:r};function o(t){return t[0]}function a(t){return t[1]}function s(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}var l=function(){function t(t){var n=new i.default(t);this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=n.coords,this._init(n)}var n=t.prototype;return n._init=function(t){var n=t,e=this.points;if(n.hull&&n.hull.length>2&&function(t){for(var n=t.triangles,e=t.coords,r=0;r<n.length;r+=3){var i=2*n[r],o=2*n[r+1],a=2*n[r+2];if((e[a]-e[i])*(e[o+1]-e[i+1])-(e[o]-e[i])*(e[a+1]-e[i+1])>1e-10)return!1}return!0}(n)){this.collinear=Int32Array.from({length:e.length/2},(function(t,n){return n})).sort((function(t,n){return e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]}));for(var r=this.collinear[0],o=this.collinear[this.collinear.length-1],a=[e[2*r],e[2*r+1],e[2*o],e[2*o+1]],l=1e-8*Math.sqrt(Math.pow(a[3]-a[1],2)+Math.pow(a[2]-a[0],2)),c=0,u=e.length/2;c<u;++c){var h=s(e[2*c],e[2*c+1],l);e[2*c]=h[0],e[2*c+1]=h[1]}t=new i.default(e)}for(var d=this.halfedges=t.halfedges,f=this.hull=t.hull,p=this.triangles=t.triangles,m=this.inedges.fill(-1),y=this._hullIndex.fill(-1),g=0,x=d.length;g<x;++g){var v=p[g%3==2?g-2:g+1];-1!==d[g]&&-1!==m[v]||(m[v]=g)}for(var b=0,_=f.length;b<_;++b)y[f[b]]=b;f.length<=2&&f.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=f[0],this.triangles[1]=f[1],this.triangles[2]=f[1],m[f[0]]=1,2===f.length&&(m[f[1]]=0))},n.neighbors=function(t){var n=[],e=this.inedges,r=this.hull,i=this._hullIndex,o=this.halfedges,a=this.triangles,s=e[t];if(-1===s)return n;var l=s,c=-1;do{if(c=a[l],n.push(c),a[l=l%3==2?l-2:l+1]!==t)break;if(-1===(l=o[l])){var u=r[(i[t]+1)%r.length];u!==c&&n.push(u);break}}while(l!==s);return n},n.find=function(t,n,e){if(void 0===e&&(e=0),(t=+t)!=t||(n=+n)!=n)return-1;for(var r,i=e;(r=this._step(e,t,n))>=0&&r!==e&&r!==i;)e=r;return r},n._step=function(t,n,e){var r=this.inedges,i=this.points;if(-1===r[t]||!i.length)return(t+1)%(i.length>>1);var o=t,a=Math.pow(n-i[2*t],2)+Math.pow(e-i[2*t+1],2),s=this.neighbors(t),l=Array.isArray(s),c=0;for(s=l?s:s[Symbol.iterator]();;){var u;if(l){if(c>=s.length)break;u=s[c++]}else{if((c=s.next()).done)break;u=c.value}var h=u,d=Math.pow(n-i[2*h],2)+Math.pow(e-i[2*h+1],2);d<a&&(a=d,o=h)}return o},t}();n.Z=l,l.from=function(t,n,e,r){return void 0===n&&(n=o),void 0===e&&(e=a),new l(function(t,n,e,r){for(var i=t.length,o=new Float64Array(2*i),a=0;a<i;++a){var s=t[a];o[2*a]=n.call(r,s,a,t),o[2*a+1]=e.call(r,s,a,t)}return o}(t,n,e,r))}},2516:function(t,n){function e(t,n){var e=[],r=[];return null==n&&(n=function(t,n){return e[0]===n?"[Circular ~]":"[Circular ~."+r.slice(0,e.indexOf(n)).join(".")+"]"}),function(i,o){if(e.length>0){var a=e.indexOf(this);~a?e.splice(a+1):e.push(this),~a?r.splice(a,1/0,i):r.push(i),~e.indexOf(o)&&(o=n.call(this,i,o))}else e.push(o);return null==t?o:t.call(this,i,o)}}(t.exports=function(t,n,r,i){return JSON.stringify(t,e(n,i),r)}).getSerialize=e},1179:function(t){t.exports=function(){}},503:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),s=e(8541);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},3273:function(t,n,e){var r=e(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),s=e(8541);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},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 i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];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,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}},8644:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},9559:function(t){t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},1634:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},4132:function(t,n,e){var r=e(8347),i=e(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];o.call(t,n)&&i(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3162:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},4508:function(t){t.exports=function(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];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),i=e(3608);t.exports=function t(n,e,o,a,s){var l=-1,c=n.length;for(o||(o=i),s||(s=[]);++l<c;){var u=n[l];e>0&&o(u)?e>1?t(u,e-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},320:function(t,n,e){var r=e(4710)();t.exports=r},2446:function(t,n,e){var r=e(320),i=e(7747);t.exports=function(t,n){return t&&r(t,n,i)}},4432:function(t,n,e){var r=e(9026),i=e(3110);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},563:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},6776:function(t){t.exports=function(t,n){return null!=t&&n in Object(t)}},6123:function(t){t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},7537:function(t,n,e){var r=e(563),i=e(3474);t.exports=function(t){return i(t)&&"[object Date]"==r(t)}},9070:function(t,n,e){var r=e(7028),i=e(3474);t.exports=function t(n,e,o,a,s){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,s))}},7028:function(t,n,e){var r=e(8708),i=e(8705),o=e(2813),a=e(6682),s=e(9667),l=e(163),c=e(4801),u=e(4289),h="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,m,y,g){var x=l(t),v=l(n),b=x?d:s(t),_=v?d:s(n),M=(b=b==h?f:b)==f,C=(_=_==h?f:_)==f,w=b==_;if(w&&c(t)){if(!c(n))return!1;x=!0,M=!1}if(w&&!M)return g||(g=new r),x||u(t)?i(t,n,e,m,y,g):o(t,n,b,e,m,y,g);if(!(1&e)){var A=M&&p.call(t,"__wrapped__"),E=C&&p.call(n,"__wrapped__");if(A||E){var k=A?t.value():t,S=E?n.value():n;return g||(g=new r),y(k,S,e,m,g)}}return!!w&&(g||(g=new r),a(t,n,e,m,y,g))}},9548:function(t,n,e){var r=e(8708),i=e(9070);t.exports=function(t,n,e,o){var a=e.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=e[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=e[a])[0],h=t[u],d=c[1];if(l&&c[2]){if(void 0===h&&!(u in t))return!1}else{var f=new r;if(o)var p=o(h,d,u,t,n,f);if(!(void 0===p?i(d,h,3,o,f):p))return!1}}return!0}},2229:function(t,n,e){var r=e(563),i=e(3474);t.exports=function(t){return i(t)&&"[object RegExp]"==r(t)}},3472:function(t,n,e){var r=e(758),i=e(5223),o=e(5346),a=e(163),s=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},7190:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},758:function(t,n,e){var r=e(9548),i=e(597),o=e(6878);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:function(t,n,e){var r=e(9070),i=e(9201),o=e(5066),a=e(726),s=e(5385),l=e(6878),c=e(3110);t.exports=function(t,n){return a(t)&&s(n)?l(c(t),n):function(e){var a=i(e,t);return void 0===a&&a===n?o(e,t):r(n,a,3)}}},8245:function(t,n,e){var r=e(8644),i=e(4432),o=e(3472),a=e(383),s=e(9521),l=e(9110),c=e(9409),u=e(5346),h=e(163);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return h(t)?function(n){return i(n,1===t.length?t[0]:t)}:t})):[u];var d=-1;n=r(n,l(o));var f=a(t,(function(t,e,i){return{criteria:r(n,(function(n){return n(t)})),index:++d,value:t}}));return s(f,(function(t,n){return c(t,n,e)}))}},5436:function(t,n,e){var r=e(6371),i=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},6371:function(t,n,e){var r=e(4432),i=e(6539),o=e(9026);t.exports=function(t,n,e){for(var a=-1,s=n.length,l={};++a<s;){var c=n[a],u=r(t,c);e(u,c)&&i(l,o(c,t),u)}return l}},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)}}},7805:function(t){var n=Math.ceil,e=Math.max;t.exports=function(t,r,i,o){for(var a=-1,s=e(n((r-t)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=t,t+=i;return l}},6317:function(t,n,e){var r=e(5346),i=e(4280),o=e(201);t.exports=function(t,n){return o(i(t,n,r),t+"")}},6539:function(t,n,e){var r=e(4132),i=e(9026),o=e(9099),a=e(7709),s=e(3110);t.exports=function(t,n,e,l){if(!a(t))return t;for(var c=-1,u=(n=i(n,t)).length,h=u-1,d=t;null!=d&&++c<u;){var f=s(n[c]),p=e;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(c!=h){var m=d[f];void 0===(p=l?l(m,f,d):void 0)&&(p=a(m)?m:o(n[c+1])?[]:{})}r(d,f,p),d=d[f]}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,i=t.length,o=0,a=[];++e<i;){var s=t[e],l=n?n(s):s;if(!e||!r(l,c)){var c=l;a[o++]=0===s?0:s}}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),i=e(8644),o=e(163),a=e(1995),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(o(n))return i(n,t)+"";if(a(n))return l?l.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},1367:function(t,n,e){var r=e(4120),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},9110:function(t){t.exports=function(t){return function(n){return t(n)}}},946:function(t,n,e){var r=e(3273),i=e(5510),o=e(9955),a=e(9914),s=e(6602),l=e(6226);t.exports=function(t,n,e){var c=-1,u=i,h=t.length,d=!0,f=[],p=f;if(e)d=!1,u=o;else if(h>=200){var m=n?null:s(t);if(m)return l(m);d=!1,u=a,p=new r}else p=n?[]:f;t:for(;++c<h;){var y=t[c],g=n?n(y):y;if(y=e||0!==y?y:0,d&&g==g){for(var x=p.length;x--;)if(p[x]===g)continue t;n&&p.push(g),f.push(y)}else u(p,g,e)||(p!==f&&p.push(g),f.push(y))}return f}},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),i=e(726),o=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(a(t))}},522:function(t,n,e){var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==n,l=null===n,c=n==n,u=r(n);if(!l&&!u&&!a&&t>n||a&&s&&c&&!l&&!u||i&&s&&c||!e&&c||!o)return 1;if(!i&&!a&&!u&&t<n||u&&e&&o&&!i&&!a||l&&e&&o||!s&&o||!c)return-1}return 0}},9409:function(t,n,e){var r=e(522);t.exports=function(t,n,e){for(var i=-1,o=t.criteria,a=n.criteria,s=o.length,l=e.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*("desc"==e[i]?-1:1)}return t.index-n.index}},9021:function(t,n,e){var r=e(4132),i=e(8347);t.exports=function(t,n,e,o){var a=!e;e||(e={});for(var s=-1,l=n.length;++s<l;){var c=n[s],u=o?o(e[c],t[c],c,e,t):void 0;void 0===u&&(u=t[c]),a?i(e,c,u):r(e,c,u)}return e}},5659:function(t,n,e){var r=e(6649),i=e(4508),o=e(3472),a=e(163);t.exports=function(t,n){return function(e,s){var l=a(e)?r:i,c=n?n():{};return l(e,t,o(s,2),c)}}},6092:function(t,n,e){var r=e(6317),i=e(8286);t.exports=function(t){return r((function(n,e){var r=-1,o=e.length,a=o>1?e[o-1]:void 0,s=o>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(e[0],e[1],s)&&(a=o<3?void 0:a,o=1),n=Object(n);++r<o;){var l=e[r];l&&t(n,l,r,a)}return n}))}},4710:function(t){t.exports=function(t){return function(n,e,r){for(var i=-1,o=Object(n),a=r(n),s=a.length;s--;){var l=a[t?s:++i];if(!1===e(o[l],l,o))break}return n}}},2740:function(t,n,e){var r=e(1179),i=e(5557),o=e(7356),a=e(9267),s=e(163),l=e(7423);t.exports=function(t){return i((function(n){var e=n.length,i=e,c=r.prototype.thru;for(t&&n.reverse();i--;){var u=n[i];if("function"!=typeof u)throw new TypeError("Expected a function");if(c&&!h&&"wrapper"==a(u))var h=new r([],!0)}for(i=h?i:e;++i<e;){u=n[i];var d=a(u),f="wrapper"==d?o(u):void 0;h=f&&l(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?h[a(f[0])].apply(h,f[3]):1==u.length&&l(u)?h[d]():h.thru(u)}return function(){var t=arguments,r=t[0];if(h&&1==t.length&&s(r))return h.plant(r).value();for(var i=0,o=e?n[i].apply(this,t):r;++i<e;)o=n[i].call(this,o);return o}}))}},2507:function(t,n,e){var r=e(7805),i=e(8286),o=e(9139);t.exports=function(t){return function(n,e,a){return a&&"number"!=typeof a&&i(n,e,a)&&(e=a=void 0),n=o(n),void 0===e?(e=n,n=0):e=o(e),a=void 0===a?n<e?1:-1:o(a),r(n,e,a,t)}}},6602:function(t){t.exports=function(){}},5976:function(t,n,e){var r=e(4738),i=e(9667),o=e(2900),a=e(3757);t.exports=function(t){return function(n){var e=i(n);return"[object Map]"==e?o(n):"[object Set]"==e?a(n):r(n,t(n))}}},5525:function(t,n,e){var r=e(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,n,e){var r=e(3273),i=e(1634),o=e(9914);t.exports=function(t,n,e,a,s,l){var c=1&e,u=t.length,h=n.length;if(u!=h&&!(c&&h>u))return!1;var d=l.get(t),f=l.get(n);if(d&&f)return d==n&&f==t;var p=-1,m=!0,y=2&e?new r:void 0;for(l.set(t,n),l.set(n,t);++p<u;){var g=t[p],x=n[p];if(a)var v=c?a(x,g,p,n,t,l):a(g,x,p,t,n,l);if(void 0!==v){if(v)continue;m=!1;break}if(y){if(!i(n,(function(t,n){if(!o(y,n)&&(g===t||s(g,t,e,a,l)))return y.push(n)}))){m=!1;break}}else if(g!==x&&!s(g,x,e,a,l)){m=!1;break}}return l.delete(t),l.delete(n),m}},2813:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:function(t,n,e){var r=e(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,a,s){var l=1&e,c=r(t),u=c.length;if(u!=r(n).length&&!l)return!1;for(var h=u;h--;){var d=c[h];if(!(l?d in n:i.call(n,d)))return!1}var f=s.get(t),p=s.get(n);if(f&&p)return f==n&&p==t;var m=!0;s.set(t,n),s.set(n,t);for(var y=l;++h<u;){var g=t[d=c[h]],x=n[d];if(o)var v=l?o(x,g,d,n,t,s):o(g,x,d,t,n,s);if(!(void 0===v?g===x||a(g,x,e,o,s):v)){m=!1;break}y||(y="constructor"==d)}if(m&&!y){var b=t.constructor,_=n.constructor;b==_||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(m=!1)}return s.delete(t),s.delete(n),m}},5557:function(t,n,e){var r=e(2645),i=e(4280),o=e(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,n,e){var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},8143:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},7271:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},7356:function(t){t.exports=function(){}},9267:function(t){t.exports=function(){return""}},597:function(t,n,e){var r=e(5385),i=e(7747);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],a=t[o];n[e]=[o,a,r(a)]}return n}},3743:function(t){t.exports=function(t,n){return null==t?void 0:t[n]}},9817:function(t,n,e){var r=e(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},3096:function(t,n,e){var r=e(9026),i=e(5075),o=e(163),a=e(9099),s=e(8454),l=e(3110);t.exports=function(t,n,e){for(var c=-1,u=(n=r(n,t)).length,h=!1;++c<u;){var d=l(n[c]);if(!(h=null!=t&&e(t,d)))break;t=t[d]}return h||++c!=u?h:!!(u=null==t?0:t.length)&&s(u)&&a(d,u)&&(o(t)||i(t))}},3608:function(t,n,e){var r=e(2596),i=e(5075),o=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},8286:function(t){t.exports=function(){return!1}},726:function(t,n,e){var r=e(163),i=e(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=n&&t in Object(n)}},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),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},4859:function(t,n,e){var r=e(3162);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},4073:function(t,n,e){var r=e(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,n,e){var r=e(3162);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},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),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},5125:function(t){t.exports=function(t,n){return function(e){return t(n(e))}}},4280:function(t,n,e){var r=e(6082),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,a=-1,s=i(o.length-n,0),l=Array(s);++a<s;)l[a]=o[n+a];a=-1;for(var c=Array(n+1);++a<n;)c[a]=o[a];return c[n]=e(l),r(t,this,c)}}},2373:function(t,n,e){var r=e(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6226:function(t){t.exports=function(){return[]}},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),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=a},3110:function(t,n,e){var r=e(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4120:function(t){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},156:function(t,n,e){var r=e(4132),i=e(9021),o=e(6092),a=e(981),s=e(5782),l=e(7747),c=Object.prototype.hasOwnProperty,u=o((function(t,n){if(s(n)||a(n))i(n,l(n),t);else for(var e in n)c.call(n,e)&&r(t,e,n[e])}));t.exports=u},5034:function(t,n,e){var r=e(7709),i=e(6987),o=e(5812),a=Math.max,s=Math.min;t.exports=function(t,n,e){var l,c,u,h,d,f,p=0,m=!1,y=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(n){var e=l,r=c;return l=c=void 0,p=n,h=t.apply(r,e)}function v(t){return p=t,d=setTimeout(_,n),m?x(t):h}function b(t){var e=t-f;return void 0===f||e>=n||e<0||y&&t-p>=u}function _(){var t=i();if(b(t))return M(t);d=setTimeout(_,function(t){var e=n-(t-f);return y?s(e,u-(t-p)):e}(t))}function M(t){return d=void 0,g&&l?x(t):(l=c=void 0,h)}function C(){var t=i(),e=b(t);if(l=arguments,c=this,f=t,e){if(void 0===d)return v(f);if(y)return clearTimeout(d),d=setTimeout(_,n),x(f)}return void 0===d&&(d=setTimeout(_,n)),h}return n=o(n)||0,r(e)&&(m=!!e.leading,u=(y="maxWait"in e)?a(o(e.maxWait)||0,n):u,g="trailing"in e?!!e.trailing:g),C.cancel=function(){void 0!==d&&clearTimeout(d),p=0,l=f=c=d=void 0},C.flush=function(){return void 0===d?h:M(i())},C}},1893:function(t,n,e){var r=e(6317),i=e(788),o=e(8286),a=e(8855),s=Object.prototype,l=s.hasOwnProperty,c=r((function(t,n){t=Object(t);var e=-1,r=n.length,c=r>2?n[2]:void 0;for(c&&o(n[0],n[1],c)&&(r=1);++e<r;)for(var u=n[e],h=a(u),d=-1,f=h.length;++d<f;){var p=h[d],m=t[p];(void 0===m||i(m,s[p])&&!l.call(t,p))&&(t[p]=u[p])}return t}));t.exports=c},9324:function(t,n,e){var r=e(7451),i=e(6317),o=e(5812),a=i((function(t,n,e){return r(t,o(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),i=e(674);t.exports=function(t,n){return t&&r(t,i(n))}},7314:function(t){t.exports=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r}},9201:function(t,n,e){var r=e(4432);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},9056:function(t,n,e){var r=e(8347),i=e(5659),o=Object.prototype.hasOwnProperty,a=i((function(t,n,e){o.call(t,e)?t[e].push(n):r(t,e,[n])}));t.exports=a},5066:function(t,n,e){var r=e(6776),i=e(3096);t.exports=function(t,n){return null!=t&&i(t,n,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var n=Array.isArray;t.exports=n},981:function(t,n,e){var r=e(9642),i=e(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4295:function(t,n,e){var r=e(7537),i=e(9110),o=e(2348),a=o&&o.isDate,s=a?i(a):r;t.exports=s},4155:function(t,n,e){var r=e(7190),i=e(9667),o=e(5075),a=e(163),s=e(981),l=e(4801),c=e(5782),u=e(4289),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||o(t)))return!t.length;var n=i(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(c(t))return!r(t).length;for(var e in t)if(h.call(t,e))return!1;return!0}},8254:function(t,n,e){var r=e(9070);t.exports=function(t,n){return r(t,n)}},9642:function(t,n,e){var r=e(563),i=e(7709);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,n,e){var r=e(563),i=e(9817),o=e(3474),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=c.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&l.call(e)==u}},5395:function(t,n,e){var r=e(2229),i=e(9110),o=e(2348),a=o&&o.isRegExp,s=a?i(a):r;t.exports=s},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},8999:function(t){t.exports=function(t){return void 0===t}},7747:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},1594:function(t,n,e){var r=e(503);function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return e.cache=o.set(i,a)||o,a};return e.cache=new(i.Cache||r),e}i.Cache=r,t.exports=i},6051:function(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}},6987:function(t,n,e){var r=e(2373);t.exports=function(){return r.Date.now()}},1616:function(t,n,e){var r=e(3472),i=e(6051),o=e(4912);t.exports=function(t,n){return o(t,i(r(n)))}},4143:function(t,n,e){var r=e(8245),i=e(163);t.exports=function(t,n,e,o){return null==t?[]:(i(n)||(n=null==n?[]:[n]),i(e=o?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:function(t,n,e){var r=e(5436),i=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},4912:function(t,n,e){var r=e(8644),i=e(3472),o=e(6371),a=e(7271);t.exports=function(t,n){if(null==t)return{};var e=r(a(t),(function(t){return[t]}));return n=i(n),o(t,e,(function(t,e){return n(t,e[0])}))}},8532:function(t,n,e){var r=e(1600),i=e(3301),o=e(726),a=e(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},8825:function(t,n,e){var r=e(2507)();t.exports=r},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),i=e(7709);t.exports=function(t,n,e){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(e)&&(o="leading"in e?!!e.leading:o,a="trailing"in e?!!e.trailing:a),r(t,n,{leading:o,maxWait:n,trailing:a})}},9139:function(t,n,e){var r=e(5812);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5812:function(t,n,e){var r=e(1367),i=e(7709),o=e(1995),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=s.test(t);return e||l.test(t)?c(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),i=e(946);t.exports=function(t,n){return t&&t.length?i(t,r(n,2)):[]}},660:function(t,n,e){var r=e(7010),i=0;t.exports=function(t){var n=++i;return r(t)+n}},7491:function(t){var n="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(l=s;0!=l--;)if(!o(t[l],a[l]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(u=t.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=t.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(u=t.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(l=s;0!=l--;)if(t[l]!==a[l])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((s=(c=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(n&&t instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!t.$$typeof)&&!o(t[c[l]],a[c[l]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return o(t,n)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:function(n){"use strict";n.exports=t}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var i={};return function(){"use strict";r.r(i),r.d(i,{Arc:function(){return ty},Area:function(){return Yc},Axis:function(){return b},Background:function(){return wm},Bar:function(){return Zf},Border:function(){return rp},Box:function(){return rp},BrushHelpers:function(){return Dp},Candle:function(){return Kp},CanvasBar:function(){return um},CanvasCurve:function(){return dm},CanvasGroup:function(){return hm},CanvasPoint:function(){return Mm},Circle:function(){return Eu},ClipPath:function(){return wu},Collection:function(){return n},CursorHelpers:function(){return ng},Curve:function(){return ux},Data:function(){return s},DefaultTransitions:function(){return y},Domain:function(){return l},ErrorBar:function(){return dg},Events:function(){return v},Flyout:function(){return zy},Helpers:function(){return t},Hooks:function(){return w},Immutable:function(){return a},LabelHelpers:function(){return c},Line:function(){return Xd},LineHelpers:function(){return h},LineSegment:function(){return Qd},Log:function(){return f},Path:function(){return Ic},Point:function(){return Sy},PointPathHelpers:function(){return M},Portal:function(){return tu},PortalContext:function(){return nu},RawZoomHelpers:function(){return Ky},Rect:function(){return Su},Scale:function(){return o},Selection:function(){return _},SelectionHelpers:function(){return Qy},Slice:function(){return _x},Style:function(){return p},TSpan:function(){return Tu},Text:function(){return Lu},TextSize:function(){return m},Timer:function(){return vu},TimerContext:function(){return _u},Transitions:function(){return x},UserProps:function(){return d},VictoryAccessibleGroup:function(){return Ay},VictoryAnimation:function(){return gd},VictoryArea:function(){return Kd},VictoryAxis:function(){return Tf},VictoryBar:function(){return np},VictoryBoxPlot:function(){return vp},VictoryBrushContainer:function(){return Lp},VictoryBrushLine:function(){return qp},VictoryCandlestick:function(){return sm},VictoryChart:function(){return wy},VictoryClipContainer:function(){return Pu},VictoryContainer:function(){return Cu},VictoryCursorContainer:function(){return rg},VictoryErrorBar:function(){return Mg},VictoryGroup:function(){return Lg},VictoryHistogram:function(){return Hg},VictoryLabel:function(){return lh},VictoryLegend:function(){return lx},VictoryLine:function(){return fx},VictoryPie:function(){return Ax},VictoryPolarAxis:function(){return my},VictoryPortal:function(){return Ou},VictoryScatter:function(){return Dx},VictorySelectionContainer:function(){return tg},VictorySharedEvents:function(){return Zm},VictoryStack:function(){return Wx},VictoryTheme:function(){return Eh},VictoryTooltip:function(){return Iy},VictoryTransition:function(){return kd},VictoryVoronoi:function(){return Ov},VictoryVoronoiContainer:function(){return Hy},VictoryZoomContainer:function(){return Zy},Voronoi:function(){return Vx},VoronoiHelpers:function(){return Fy},Whisker:function(){return op},Wrapper:function(){return C},ZoomHelpers:function(){return Yy},addEvents:function(){return Hd},brushContainerMixin:function(){return Op},combineContainerMixins:function(){return og},createContainer:function(){return lg},cursorContainerMixin:function(){return eg},getBarPath:function(){return Kf},getBarPosition:function(){return jf},getBarWidth:function(){return $f},getCornerRadius:function(){return Nf},getCustomBarPath:function(){return Ff},getHorizontalBarPath:function(){return qf},getPolarBarPath:function(){return Yf},getStyle:function(){return zf},getVerticalBarPath:function(){return Hf},getVerticalPolarBarPath:function(){return Gf},makeCreateContainerFunction:function(){return sg},selectionContainerMixin:function(){return Jy},useCanvasContext:function(){return cm},voronoiContainerMixin:function(){return Uy},zoomContainerMixin:function(){return Xy}});var t={};r.r(t),r.d(t,{createAccessor:function(){return ut},degreesToRadians:function(){return rt},evaluateProp:function(){return nt},evaluateStyle:function(){return et},getCurrentAxis:function(){return dt},getDefaultStyles:function(){return J},getPadding:function(){return Z},getPoint:function(){return Y},getPolarOrigin:function(){return at},getRadius:function(){return ot},getRange:function(){return st},getStyles:function(){return tt},invert:function(){return G},isFunction:function(){return ct},isHorizontal:function(){return yt},isNil:function(){return lt},isTooltip:function(){return Q},mapValues:function(){return ft},modifyProps:function(){return ht},omit:function(){return K},radiansToDegrees:function(){return it},range:function(){return pt},reduceChildren:function(){return mt},scalePoint:function(){return X}});var n={};r.r(n),r.d(n,{containsDates:function(){return vt},containsNumbers:function(){return bt},containsOnlyStrings:function(){return _t},containsStrings:function(){return xt},difference:function(){return Mt},getMaxValue:function(){return At},getMinValue:function(){return Et},isArrayOfArrays:function(){return Ct},removeUndefined:function(){return wt}});var e={};r.r(e),r.d(e,{scaleBand:function(){return $t},scaleDiverging:function(){return Io},scaleDivergingLog:function(){return Wo},scaleDivergingPow:function(){return Vo},scaleDivergingSqrt:function(){return Fo},scaleDivergingSymlog:function(){return Bo},scaleIdentity:function(){return _e},scaleImplicit:function(){return Tt},scaleLinear:function(){return be},scaleLog:function(){return De},scaleOrdinal:function(){return jt},scalePoint:function(){return zt},scalePow:function(){return Ie},scaleQuantile:function(){return Ze},scaleQuantize:function(){return Qe},scaleRadial:function(){return Fe},scaleSequential:function(){return Oo},scaleSequentialLog:function(){return Lo},scaleSequentialPow:function(){return jo},scaleSequentialQuantile:function(){return No},scaleSequentialSqrt:function(){return $o},scaleSequentialSymlog:function(){return To},scaleSqrt:function(){return We},scaleSymlog:function(){return je},scaleThreshold:function(){return Je},scaleTime:function(){return ko},scaleUtc:function(){return So},tickFormat:function(){return xe}});var o={};r.r(o),r.d(o,{getBaseScale:function(){return Yo},getDefaultScale:function(){return Xo},getScaleFromName:function(){return Ko},getScaleFromProps:function(){return Zo},getScaleType:function(){return Qo},getType:function(){return ta},validScale:function(){return Ho}});var a={};r.r(a),r.d(a,{IMMUTABLE_ITERABLE:function(){return na},IMMUTABLE_LIST:function(){return ra},IMMUTABLE_MAP:function(){return ia},IMMUTABLE_RECORD:function(){return ea},isImmutable:function(){return sa},isIterable:function(){return oa},isList:function(){return la},isMap:function(){return ca},isRecord:function(){return aa},shallowToJS:function(){return ua}});var s={};r.r(s),r.d(s,{createStringMap:function(){return ya},downsample:function(){return ga},formatData:function(){return xa},formatDataFromDomain:function(){return ma},generateData:function(){return va},getCategories:function(){return ba},getData:function(){return _a},getStringsFromAxes:function(){return Ma},getStringsFromCategories:function(){return Ca},getStringsFromData:function(){return wa},isDataComponent:function(){return Aa}});var l={};r.r(l),r.d(l,{createDomainFunction:function(){return Oa},formatDomain:function(){return La},getDomain:function(){return Ta},getDomainFromCategories:function(){return ja},getDomainFromData:function(){return $a},getDomainFromMinMax:function(){return Na},getDomainFromProps:function(){return za},getDomainWithZero:function(){return Ra},getMaxFromProps:function(){return Ia},getMinFromProps:function(){return Wa},getSymmetricDomain:function(){return Ba},isDomainComponent:function(){return Va}});var c={};r.r(c),r.d(c,{getDegrees:function(){return Ka},getPolarAngle:function(){return Ga},getPolarTextAnchor:function(){return Ha},getPolarVerticalAnchor:function(){return qa},getProps:function(){return Ya},getText:function(){return Ua}});var u={};r.r(u),r.d(u,{arc:function(){return Rs},area:function(){return hs},areaRadial:function(){return gs},curveBasis:function(){return Ol},curveBasisClosed:function(){return Tl},curveBasisOpen:function(){return $l},curveBumpX:function(){return Hs},curveBumpY:function(){return qs},curveBundle:function(){return zl},curveCardinal:function(){return Wl},curveCardinalClosed:function(){return Vl},curveCardinalOpen:function(){return Ul},curveCatmullRom:function(){return Gl},curveCatmullRomClosed:function(){return Yl},curveCatmullRomOpen:function(){return Zl},curveLinear:function(){return ss},curveLinearClosed:function(){return Jl},curveMonotoneX:function(){return sc},curveMonotoneY:function(){return lc},curveNatural:function(){return hc},curveStep:function(){return fc},curveStepAfter:function(){return mc},curveStepBefore:function(){return pc},line:function(){return us},lineRadial:function(){return ys},link:function(){return Xs},linkHorizontal:function(){return Zs},linkRadial:function(){return Js},linkVertical:function(){return Qs},pie:function(){return Bs},pointRadial:function(){return Vs},radialArea:function(){return gs},radialLine:function(){return ys},stack:function(){return bc},stackOffsetDiverging:function(){return Mc},stackOffsetExpand:function(){return _c},stackOffsetNone:function(){return yc},stackOffsetSilhouette:function(){return Cc},stackOffsetWiggle:function(){return wc},stackOrderAppearance:function(){return Ac},stackOrderAscending:function(){return kc},stackOrderDescending:function(){return Pc},stackOrderInsideOut:function(){return Dc},stackOrderNone:function(){return gc},stackOrderReverse:function(){return Oc},symbol:function(){return kl},symbolAsterisk:function(){return nl},symbolCircle:function(){return el},symbolCross:function(){return rl},symbolDiamond:function(){return al},symbolDiamond2:function(){return sl},symbolPlus:function(){return ll},symbolSquare:function(){return cl},symbolSquare2:function(){return ul},symbolStar:function(){return pl},symbolTriangle:function(){return yl},symbolTriangle2:function(){return xl},symbolWye:function(){return Cl},symbolX:function(){return wl},symbols:function(){return Al},symbolsFill:function(){return Al},symbolsStroke:function(){return El}});var h={};r.r(h),r.d(h,{getInterpolationFunction:function(){return Nc},getLineFunction:function(){return zc}});var d={};r.r(d),r.d(d,{assert:function(){return Bc},getSafeUserProps:function(){return Vc},withSafeUserProps:function(){return Fc}});var f={};r.r(f),r.d(f,{warn:function(){return Du}});var p={};r.r(p),r.d(p,{getColorScale:function(){return $u},toTransformString:function(){return ju}});var m={};r.r(m),r.d(m,{_approximateTextSizeInternal:function(){return Xu},approximateTextSize:function(){return Zu},convertLengthToPixels:function(){return Uu}});var y={};r.r(y),r.d(y,{continuousPolarTransitions:function(){return Sh},continuousTransitions:function(){return kh},discreteTransitions:function(){return Ph}});var g={};r.r(g),r.d(g,{easeBack:function(){return sd},easeBackIn:function(){return od},easeBackInOut:function(){return sd},easeBackOut:function(){return ad},easeBounce:function(){return ed},easeBounceIn:function(){return nd},easeBounceInOut:function(){return rd},easeBounceOut:function(){return ed},easeCircle:function(){return Jh},easeCircleIn:function(){return Zh},easeCircleInOut:function(){return Jh},easeCircleOut:function(){return Qh},easeCubic:function(){return Rh},easeCubicIn:function(){return Nh},easeCubicInOut:function(){return Rh},easeCubicOut:function(){return zh},easeElastic:function(){return ud},easeElasticIn:function(){return cd},easeElasticInOut:function(){return hd},easeElasticOut:function(){return ud},easeExp:function(){return Xh},easeExpIn:function(){return Kh},easeExpInOut:function(){return Xh},easeExpOut:function(){return Yh},easeLinear:function(){return Lh},easePoly:function(){return Bh},easePolyIn:function(){return Ih},easePolyInOut:function(){return Bh},easePolyOut:function(){return Wh},easeQuad:function(){return $h},easeQuadIn:function(){return Th},easeQuadInOut:function(){return $h},easeQuadOut:function(){return jh},easeSin:function(){return qh},easeSinIn:function(){return Uh},easeSinInOut:function(){return qh},easeSinOut:function(){return Hh}});var x={};r.r(x),r.d(x,{getInitialTransitionState:function(){return wd},getTransitionPropsFactory:function(){return Ad}});var v={};r.r(v),r.d(v,{emulateReactEvent:function(){return Vd},getComponentEvents:function(){return Rd},getEventState:function(){return jd},getEvents:function(){return Od},getExternalMutation:function(){return zd},getExternalMutations:function(){return Nd},getExternalMutationsWithChildren:function(){return $d},getGlobalEventNameFromKey:function(){return Id},getGlobalEvents:function(){return Wd},getPartialEvents:function(){return Td},getScopedEvents:function(){return Ld},omitGlobalEvents:function(){return Bd}});var b={};r.r(b),r.d(b,{findAxisComponents:function(){return nf},getAxis:function(){return tf},getAxisComponent:function(){return ef},getAxisComponentsWithParent:function(){return rf},getAxisValue:function(){return mf},getDomain:function(){return pf},getOrigin:function(){return of},getOriginSign:function(){return af},getTickFormat:function(){return uf},getTicks:function(){return df},isVertical:function(){return sf},modifyProps:function(){return yf},stringTicks:function(){return lf}});var _={};r.r(_),r.d(_,{getBounds:function(){return Ep},getDataCoordinates:function(){return Ap},getDomainCoordinates:function(){return wp},getParentSVG:function(){return Mp},getSVGEventCoordinates:function(){return Cp}});var M={};r.r(M),r.d(M,{circle:function(){return fm},cross:function(){return vm},diamond:function(){return mm},minus:function(){return bm},plus:function(){return xm},square:function(){return pm},star:function(){return _m},triangleDown:function(){return ym},triangleUp:function(){return gm}});var C={};r.r(C),r.d(C,{addBinsToParentPropsIfHistogram:function(){return Pm},getAllEvents:function(){return zm},getCategories:function(){return Hm},getCategoryAndAxisStringsFromChildren:function(){return Fm},getChildStyle:function(){return Wm},getColor:function(){return Rm},getData:function(){return Om},getDataFromChildren:function(){return Dm},getDefaultDomainPadding:function(){return Tm},getDomain:function(){return $m},getDomainFromChildren:function(){return jm},getScale:function(){return Nm},getStringsFromCategories:function(){return Bm},getStringsFromChildren:function(){return Um},getStringsFromData:function(){return Vm},getStyle:function(){return Im},getWidth:function(){return Lm}});var w={};r.r(w),r.d(w,{useAnimationState:function(){return Em},usePreviousProps:function(){return qm}});var A=r(9787),E=r.n(A),k=r(1616),S=r.n(k),P=r(8999),D=r.n(P),O=r(8254),L=r.n(O),T=r(4155),j=r.n(T),$=r(4143),N=r.n($),z=r(8532),R=r.n(z),I=r(3849),W=r.n(I),B=r(9602),V=r.n(B),F=r(9082),U=r.n(F),H=r(1893),q=r.n(H);function G(t){return Object.entries(t).reduce(((t,n)=>(t[n[1]]=n[0],t)),{})}function K(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 Y(t){const n=t=>void 0!==t,{_x:e,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:l,_voronoiY:c}=t,u=n(r)?r:e,h=n(s)?s:a,d={x:n(o)?o:u,x0:n(i)?i:e,y:n(c)?c:h,y0:n(l)?l:a};return q()({},d,t)}function X(t,n){const{scale:e,polar:r,horizontal:i}=t,o=Y(n),a=t.origin||{x:0,y:0},s=i?e.y(o.y):e.x(o.x),l=i?e.y(o.y0):e.x(o.x0),c=i?e.x(o.x):e.y(o.y),u=i?e.x(o.x0):e.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}function Z(t,n){void 0===n&&(n="padding");const e=t[n],r="number"==typeof e?e:0,i="object"==typeof e?e:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function Q(t){return"tooltip"===(t&&t.type&&t.type.role)}function J(t,n){const{theme:e={},labelComponent:r}=t,i=e[n]&&e[n].style||{};if(!Q(r))return i;const o=e.tooltip&&e.tooltip.style||{},a=q()({},o,i.labels);return q()({},{labels:a},i)}function tt(t,n){const e="100%",r="100%";if(!t)return q()({parent:{height:r,width:e}},n);const{data:i,labels:o,parent:a}=t,s=n&&n.parent||{},l=n&&n.labels||{},c=n&&n.data||{};return{parent:q()({},a,s,{width:e,height:r}),labels:q()({},o,l),data:q()({},i,c)}}function nt(t,n){return ct(t)?t(n):t}function et(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>ct(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=nt(t[r],n),e)),{}):t}function rt(t){return"number"==typeof t?t*(Math.PI/180):t}function it(t){return"number"==typeof t?t/(Math.PI/180):t}function ot(t){const{left:n,right:e,top:r,bottom:i}=Z(t),{width:o,height:a}=t;return Math.min(o-n-e,a-r-i)/2}function at(t){const{width:n,height:e}=t,{top:r,bottom:i,left:o,right:a}=Z(t),s=Math.min(n-o-a,e-r-i)/2,l=n/2+o-a,c=e/2+r-i;return{x:l+s>n?s+o-a:l,y:c+s>e?s+r-i:c}}function st(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?[rt(t.startAngle||0),rt(t.endAngle||360)]:[t.innerRadius||0,ot(t)]}(t,n):function(t,n){const e="x"!==n,r=Z(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)}function lt(t){return null==t}function ct(t){return"function"==typeof t}function ut(t){return ct(t)?t:null==t?t=>t:R()(t)}function ht(t,n,e){const r=K(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),i=yt(t),o=void 0===i?{}:{horizontal:i};return q()(o,t,r,n)}function dt(t,n){return n?"x"===t?"y":"x":t}function ft(t,n){if(t)return Object.keys(t).reduce(((e,r)=>(e[r]=n(t[r]),e)),{})}function pt(t,n,e){const r=n?t:0;let i=n||t;i||(i=0);const o=i-r,a=Math.abs(o),s=o/a||1,l=e||1,c=Math.max(Math.ceil(a/l),0);return Array.from(Array(c),((t,n)=>r+n*s*l))}function mt(t,n,e,r,i){void 0===e&&(e={}),void 0===r&&(r=[]),void 0===i&&(i=(t,n)=>t.concat(n));const o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(t,s,l)=>t.reduce(((t,r,c)=>{let u=t;const h=r.type&&r.type.role,d=r.props.name||`${h}-${s[c]}`;if(r.props&&r.props.children){const t=Object.assign({},r.props,U()(e,o)),n=r.type&&"stack"===r.type.role&&ct(r.type.getChildren)?r.type.getChildren(t):E().Children.toArray(r.props.children).map((n=>{const e=Object.assign({},n.props,U()(t,o));return E().cloneElement(n,e)})),s=n.map(((t,n)=>`${d}-${n}`)),l=a(n,s,r);u=i(u,l)}else{const t=n(r,d,l);t&&(u=i(u,t))}return u}),r),s=t.filter(A.isValidElement),l=s.map(((t,n)=>n));return a(s,l)}function yt(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(E().Children.toArray(r.children))}),!1);return n(E().Children.toArray(t.children))}function gt(t){return Array.isArray(t)&&t.length>0}function xt(t){return Array.isArray(t)&&t.some((t=>"string"==typeof t))}function vt(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function bt(t){return Array.isArray(t)&&t.some((t=>"number"==typeof t))}function _t(t){return gt(t)&&t.every((t=>"string"==typeof t))}function Mt(t,n){return t&&n?t.filter((t=>!n.includes(t))):[]}function Ct(t){return gt(t)&&t.every(Array.isArray)}function wt(t){return t.filter((t=>void 0!==t))}function At(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return vt(i)?new Date(Math.max(...i)):Math.max(...i)}function Et(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return vt(i)?new Date(Math.min(...i)):Math.min(...i)}function kt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function St(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function Pt(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 Dt extends Map{constructor(t,n=Lt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(Ot(this,t))}has(t){return super.has(Ot(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}(this,t))}}function Ot({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function Lt(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Tt=Symbol("implicit");function jt(){var t=new Dt,n=[],e=[],r=Tt;function i(i){let o=t.get(i);if(void 0===o){if(r!==Tt)return r;t.set(i,o=n.push(i)-1)}return e[o%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new Dt;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return jt(n,e).unknown(r)},St.apply(i,arguments),i}function $t(){var t,n,e=jt().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,s=!1,l=0,c=0,u=.5;function h(){var e=r().length,h=a<o,d=h?a:o,f=h?o:a;t=(f-d)/Math.max(1,e-l+2*c),s&&(t=Math.floor(t)),d+=(f-d-t*(e-l))*u,n=t*(1-l),s&&(d=Math.round(d),n=Math.round(n));var p=kt(e).map((function(n){return d+t*n}));return i(h?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),h()):r()},e.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,h()):[o,a]},e.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,s=!0,h()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(s=!!t,h()):s},e.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},e.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},e.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},e.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),h()):u},e.copy=function(){return $t(r(),[o,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},St.apply(h(),arguments)}function Nt(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Nt(n())},t}function zt(){return Nt($t.apply(null,arguments).paddingInner(1))}var Rt=Math.sqrt(50),It=Math.sqrt(10),Wt=Math.sqrt(2);function Bt(t,n,e){var r,i,o,a,s=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=Vt(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++s<i;)o[s]=(e+s)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++s<i;)o[s]=(e+s)/a}return r&&o.reverse(),o}function Vt(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Rt?10:o>=It?5:o>=Wt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Rt?10:o>=It?5:o>=Wt?2:1)}function Ft(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Rt?i*=10:o>=It?i*=5:o>=Wt&&(i*=2),n<t?-i:i}function Ut(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Ht(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function qt(t){let n,e,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<0?i=n+1:o=n}while(i<o)}return i}return 2!==t.length?(n=Ut,e=(n,e)=>Ut(t(n),e),r=(n,e)=>t(n)-e):(n=t===Ut||t===Ht?t:Gt,e=t,r=t),{left:i,center:function(t,n,e=0,o=t.length){const a=i(t,n,e,o-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<=0?i=n+1:o=n}while(i<o)}return i}}}function Gt(){return 0}function Kt(t){return null===t?NaN:+t}const Yt=qt(Ut),Xt=Yt.right;Yt.left,qt(Kt).center;var Zt=Xt;function Qt(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Jt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function tn(){}var nn=.7,en=1/nn,rn="\\s*([+-]?\\d+)\\s*",on="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",an="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sn=/^#([0-9a-f]{3,8})$/,ln=new RegExp(`^rgb\\(${rn},${rn},${rn}\\)$`),cn=new RegExp(`^rgb\\(${an},${an},${an}\\)$`),un=new RegExp(`^rgba\\(${rn},${rn},${rn},${on}\\)$`),hn=new RegExp(`^rgba\\(${an},${an},${an},${on}\\)$`),dn=new RegExp(`^hsl\\(${on},${an},${an}\\)$`),fn=new RegExp(`^hsla\\(${on},${an},${an},${on}\\)$`),pn={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 mn(){return this.rgb().formatHex()}function yn(){return this.rgb().formatRgb()}function gn(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=sn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?xn(n):3===e?new Mn(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?vn(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?vn(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=ln.exec(t))?new Mn(n[1],n[2],n[3],1):(n=cn.exec(t))?new Mn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=un.exec(t))?vn(n[1],n[2],n[3],n[4]):(n=hn.exec(t))?vn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=dn.exec(t))?Sn(n[1],n[2]/100,n[3]/100,1):(n=fn.exec(t))?Sn(n[1],n[2]/100,n[3]/100,n[4]):pn.hasOwnProperty(t)?xn(pn[t]):"transparent"===t?new Mn(NaN,NaN,NaN,0):null}function xn(t){return new Mn(t>>16&255,t>>8&255,255&t,1)}function vn(t,n,e,r){return r<=0&&(t=n=e=NaN),new Mn(t,n,e,r)}function bn(t){return t instanceof tn||(t=gn(t)),t?new Mn((t=t.rgb()).r,t.g,t.b,t.opacity):new Mn}function _n(t,n,e,r){return 1===arguments.length?bn(t):new Mn(t,n,e,null==r?1:r)}function Mn(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Cn(){return`#${kn(this.r)}${kn(this.g)}${kn(this.b)}`}function wn(){const t=An(this.opacity);return`${1===t?"rgb(":"rgba("}${En(this.r)}, ${En(this.g)}, ${En(this.b)}${1===t?")":`, ${t})`}`}function An(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function En(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function kn(t){return((t=En(t))<16?"0":"")+t.toString(16)}function Sn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Dn(t,n,e,r)}function Pn(t){if(t instanceof Dn)return new Dn(t.h,t.s,t.l,t.opacity);if(t instanceof tn||(t=gn(t)),!t)return new Dn;if(t instanceof Dn)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=n===o?(e-r)/s+6*(e<r):e===o?(r-n)/s+2:(n-e)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Dn(a,s,l,t.opacity)}function Dn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function On(t){return(t=(t||0)%360)<0?t+360:t}function Ln(t){return Math.max(0,Math.min(1,t||0))}function Tn(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 jn(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}Qt(tn,gn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:mn,formatHex:mn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Pn(this).formatHsl()},formatRgb:yn,toString:yn}),Qt(Mn,_n,Jt(tn,{brighter(t){return t=null==t?en:Math.pow(en,t),new Mn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?nn:Math.pow(nn,t),new Mn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Mn(En(this.r),En(this.g),En(this.b),An(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:Cn,formatHex:Cn,formatHex8:function(){return`#${kn(this.r)}${kn(this.g)}${kn(this.b)}${kn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:wn,toString:wn})),Qt(Dn,(function(t,n,e,r){return 1===arguments.length?Pn(t):new Dn(t,n,e,null==r?1:r)}),Jt(tn,{brighter(t){return t=null==t?en:Math.pow(en,t),new Dn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?nn:Math.pow(nn,t),new Dn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Mn(Tn(t>=240?t-240:t+120,i,r),Tn(t,i,r),Tn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Dn(On(this.h),Ln(this.s),Ln(this.l),An(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=An(this.opacity);return`${1===t?"hsl(":"hsla("}${On(this.h)}, ${100*Ln(this.s)}%, ${100*Ln(this.l)}%${1===t?")":`, ${t})`}`}}));var $n=t=>()=>t;function Nn(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):$n(isNaN(t)?n:t)}var zn=function t(n){var e=function(t){return 1==(t=+t)?Nn: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):$n(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=_n(t)).r,(n=_n(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=Nn(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Rn(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),s=new Array(i);for(e=0;e<i;++e)r=_n(n[e]),o[e]=r.r||0,a[e]=r.g||0,s[e]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}function In(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(e=0;e<i;++e)o[e]=Gn(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}}function Wn(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function Bn(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Vn(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Gn(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}Rn((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<n-1?t[r+2]:2*o-i;return jn((e-r/n)*n,a,i,o,s)}})),Rn((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],a=t[(r+1)%n],s=t[(r+2)%n];return jn((e-r/n)*n,i,o,a,s)}}));var Fn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Un=new RegExp(Fn.source,"g");function Hn(t,n){var e,r,i,o=Fn.lastIndex=Un.lastIndex=0,a=-1,s=[],l=[];for(t+="",n+="";(e=Fn.exec(t))&&(r=Un.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(e=e[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Bn(e,r)})),o=Un.lastIndex;return o<n.length&&(i=n.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(n){return t(n)+""}}(l[0].x):function(t){return function(){return t}}(n):(n=l.length,function(t){for(var e,r=0;r<n;++r)s[(e=l[r]).i]=e.x(t);return s.join("")})}function qn(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}}function Gn(t,n){var e,r=typeof n;return null==n||"boolean"===r?$n(n):("number"===r?Bn:"string"===r?(e=gn(n))?(n=e,zn):Hn:n instanceof gn?zn:n instanceof Date?Wn:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(n)?qn:Array.isArray(n)?In:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Vn:Bn)(t,n)}function Kn(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Yn(t){return+t}var Xn=[0,1];function Zn(t){return t}function Qn(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function(t){return function(){return t}}(isNaN(n)?NaN:.5)}function Jn(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=Qn(i,r),o=e(a,o)):(r=Qn(r,i),o=e(o,a)),function(t){return o(r(t))}}function te(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)i[a]=Qn(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=Zt(t,n,1,r)-1;return o[e](i[e](n))}}function ne(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ee(){var t,n,e,r,i,o,a=Xn,s=Xn,l=Gn,c=Zn;function u(){var t=Math.min(a.length,s.length);return c!==Zn&&(c=function(t,n){var e;return t>n&&(e=t,t=n,n=e),function(e){return Math.max(t,Math.min(n,e))}}(a[0],a[t-1])),r=t>2?te:Jn,i=o=null,h}function h(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),s,l)))(t(c(n)))}return h.invert=function(e){return c(n((o||(o=r(s,a.map(t),Bn)))(e)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Yn),u()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=Kn,u()},h.clamp=function(t){return arguments.length?(c=!!t||Zn,u()):c!==Zn},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(e=t,h):e},function(e,r){return t=e,n=r,u()}}function re(){return ee()(Zn,Zn)}var ie,oe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ae(t){if(!(n=oe.exec(t)))throw new Error("invalid format: "+t);var n;return new se({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 se(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 le(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 ce(t){return(t=le(Math.abs(t)))?t[1]:NaN}function ue(t,n){var e=le(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}ae.prototype=se.prototype,se.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 he={"%":(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)=>ue(100*t,n),r:ue,s:function(t,n){var e=le(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(ie=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+le(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function de(t){return t}var fe,pe,me,ye=Array.prototype.map,ge=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xe(t,n,e,r){var i,o=Ft(t,n,e);switch((r=ae(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ce(n)/3)))-ce(Math.abs(t)))}(o,a))||(r.precision=i),me(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,ce(n)-ce(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-ce(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return pe(r)}function ve(t){var n=t.domain;return t.ticks=function(t){var e=n();return Bt(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return xe(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);u-- >0;){if((i=Vt(l,c,e))===r)return o[a]=l,o[s]=c,n(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function be(){var t=re();return t.copy=function(){return ne(t,be())},St.apply(t,arguments),ve(t)}function _e(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,Yn),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return _e(t).unknown(n)},t=arguments.length?Array.from(t,Yn):[0,1],ve(e)}function Me(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t}function Ce(t){return Math.log(t)}function we(t){return Math.exp(t)}function Ae(t){return-Math.log(-t)}function Ee(t){return-Math.exp(-t)}function ke(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Se(t){return(n,e)=>-t(-n,e)}function Pe(t){const n=t(Ce,we),e=n.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(o),i=function(t){return 10===t?ke:t===Math.E?Math.exp:n=>Math.pow(t,n)}(o),e()[0]<0?(r=Se(r),i=Se(i),t(Ae,Ee)):t(Ce,we),n}return n.base=function(t){return arguments.length?(o=+t,a()):o},n.domain=function(t){return arguments.length?(e(t),a()):e()},n.ticks=t=>{const n=e();let a=n[0],s=n[n.length-1];const l=s<a;l&&([a,s]=[s,a]);let c,u,h=r(a),d=r(s);const f=null==t?10:+t;let p=[];if(!(o%1)&&d-h<f){if(h=Math.floor(h),d=Math.ceil(d),a>0){for(;h<=d;++h)for(c=1;c<o;++c)if(u=h<0?c/i(-h):c*i(h),!(u<a)){if(u>s)break;p.push(u)}}else for(;h<=d;++h)for(c=o-1;c>=1;--c)if(u=h>0?c/i(-h):c*i(h),!(u<a)){if(u>s)break;p.push(u)}2*p.length<f&&(p=Bt(a,s,f))}else p=Bt(h,d,Math.min(d-h,f)).map(i);return l?p.reverse():p},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===o?"s":","),"function"!=typeof e&&(o%1||null!=(e=ae(e)).precision||(e.trim=!0),e=pe(e)),t===1/0)return e;const a=Math.max(1,o*t/n.ticks().length);return t=>{let n=t/i(Math.round(r(t)));return n*o<o-.5&&(n*=o),n<=a?e(t):""}},n.nice=()=>e(Me(e(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),n}function De(){const t=Pe(ee()).domain([1,10]);return t.copy=()=>ne(t,De()).base(t.base()),St.apply(t,arguments),t}function Oe(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function Le(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function Te(t){var n=1,e=t(Oe(n),Le(n));return e.constant=function(e){return arguments.length?t(Oe(n=+e),Le(n)):n},ve(e)}function je(){var t=Te(ee());return t.copy=function(){return ne(t,je()).constant(t.constant())},St.apply(t,arguments)}function $e(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Ne(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ze(t){return t<0?-t*t:t*t}function Re(t){var n=t(Zn,Zn),e=1;function r(){return 1===e?t(Zn,Zn):.5===e?t(Ne,ze):t($e(e),$e(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},ve(n)}function Ie(){var t=Re(ee());return t.copy=function(){return ne(t,Ie()).exponent(t.exponent())},St.apply(t,arguments),t}function We(){return Ie.apply(null,arguments).exponent(.5)}function Be(t){return Math.sign(t)*t*t}function Ve(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Fe(){var t,n=re(),e=[0,1],r=!1;function i(e){var i=Ve(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(Be(t))},i.domain=function(t){return arguments.length?(n.domain(t),i):n.domain()},i.range=function(t){return arguments.length?(n.range((e=Array.from(t,Yn)).map(Be)),i):e.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(n.clamp(t),i):n.clamp()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Fe(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},St.apply(i,arguments),ve(i)}function Ue(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function He(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function qe(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Ge(t,n,e=0,r=t.length-1,i){for(i=void 0===i?qe:function(t=Ut){if(t===Ut)return qe;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}(i);r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);Ge(t,n,Math.max(e,Math.floor(n-a*l/o+c)),Math.min(r,Math.floor(n+(o-a)*l/o+c)),i)}const o=t[n];let a=e,s=r;for(Ke(t,e,n),i(t[r],o)>0&&Ke(t,e,r);a<s;){for(Ke(t,a,s),++a,--s;i(t[a],o)<0;)++a;for(;i(t[s],o)>0;)--s}0===i(t[e],o)?Ke(t,e,s):(++s,Ke(t,s,r)),s<=n&&(e=s+1),n<=s&&(r=s-1)}return t}function Ke(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function Ye(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 He(t);if(n>=1)return Ue(t);var r,i=(r-1)*n,o=Math.floor(i),a=Ue(Ge(t,o).subarray(0,o+1));return a+(He(t.subarray(o+1))-a)*(i-o)}}function Xe(t,n,e=Kt){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function Ze(){var t,n=[],e=[],r=[];function i(){var t=0,i=Math.max(1,e.length);for(r=new Array(i-1);++t<i;)r[t-1]=Xe(n,t/i);return o}function o(n){return null==n||isNaN(n=+n)?t:e[Zt(r,n)]}return o.invertExtent=function(t){var i=e.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:n[0],i<r.length?r[i]:n[n.length-1]]},o.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(Ut),i()},o.range=function(t){return arguments.length?(e=Array.from(t),i()):e.slice()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return Ze().domain(n).range(e).unknown(t)},St.apply(o,arguments)}function Qe(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[Zt(i,n,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,s()):[n,e]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,s()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[n,i[0]]:a>=r?[i[r-1],e]:[i[a-1],i[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Qe().domain([n,e]).range(o).unknown(t)},St.apply(ve(a),arguments)}function Je(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[Zt(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Je().domain(n).range(e).unknown(t)},St.apply(i,arguments)}fe=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?de:(n=ye.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=n[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=n[a=(a+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?de:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(ye.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var n=(t=ae(t)).fill,e=t.align,h=t.sign,d=t.symbol,f=t.zero,p=t.width,m=t.comma,y=t.precision,g=t.trim,x=t.type;"n"===x?(m=!0,x="g"):he[x]||(void 0===y&&(y=12),g=!0,x="g"),(f||"0"===n&&"="===e)&&(f=!0,n="0",e="=");var v="$"===d?i:"#"===d&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",b="$"===d?o:/[%p]/.test(x)?l:"",_=he[x],M=/[defgprs%]/.test(x);function C(t){var i,o,l,d=v,C=b;if("c"===x)C=_(t)+C,t="";else{var w=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:_(Math.abs(t),y),g&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),w&&0==+t&&"+"!==h&&(w=!1),d=(w?"("===h?h:c:"-"===h||"("===h?"":h)+d,C=("s"===x?ge[8+ie/3]:"")+C+(w&&"("===h?")":""),M)for(i=-1,o=t.length;++i<o;)if(48>(l=t.charCodeAt(i))||l>57){C=(46===l?a+t.slice(i+1):t.slice(i))+C,t=t.slice(0,i);break}}m&&!f&&(t=r(t,1/0));var A=d.length+t.length+C.length,E=A<p?new Array(p-A+1).join(n):"";switch(m&&f&&(t=r(E+t,E.length?p-C.length:1/0),E=""),e){case"<":t=d+t+C+E;break;case"=":t=d+E+t+C;break;case"^":t=E.slice(0,A=E.length>>1)+d+t+C+E.slice(A);break;default:t=E+d+t+C}return s(t)}return y=void 0===y?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return t+""},C}return{format:h,formatPrefix:function(t,n){var e=h(((t=ae(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(ce(n)/3))),i=Math.pow(10,-r),o=ge[8+r/3];return function(t){return e(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),pe=fe.format,me=fe.formatPrefix;const tr=1e3,nr=6e4,er=36e5,rr=864e5,ir=6048e5,or=31536e6;var ar=new Date,sr=new Date;function lr(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var a,s=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return s;do{s.push(a=new Date(+e)),n(e,o),t(e)}while(a<e&&e<r);return s},i.filter=function(e){return lr((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return ar.setTime(+n),sr.setTime(+r),t(ar),t(sr),Math.floor(e(ar,sr))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var cr=lr((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));cr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?lr((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):cr:null};var ur=cr,hr=(cr.range,lr((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*tr)}),(function(t,n){return(n-t)/tr}),(function(t){return t.getUTCSeconds()}))),dr=hr,fr=(hr.range,lr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tr)}),(function(t,n){t.setTime(+t+n*nr)}),(function(t,n){return(n-t)/nr}),(function(t){return t.getMinutes()}))),pr=fr,mr=(fr.range,lr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tr-t.getMinutes()*nr)}),(function(t,n){t.setTime(+t+n*er)}),(function(t,n){return(n-t)/er}),(function(t){return t.getHours()}))),yr=mr,gr=(mr.range,lr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*nr)/rr),(t=>t.getDate()-1))),xr=gr;function vr(t){return lr((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())*nr)/ir}))}gr.range;var br=vr(0),_r=vr(1),Mr=vr(2),Cr=vr(3),wr=vr(4),Ar=vr(5),Er=vr(6),kr=(br.range,_r.range,Mr.range,Cr.range,wr.range,Ar.range,Er.range,lr((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()}))),Sr=kr,Pr=(kr.range,lr((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()})));Pr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lr((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 Dr=Pr,Or=(Pr.range,lr((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*nr)}),(function(t,n){return(n-t)/nr}),(function(t){return t.getUTCMinutes()}))),Lr=Or,Tr=(Or.range,lr((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*er)}),(function(t,n){return(n-t)/er}),(function(t){return t.getUTCHours()}))),jr=Tr,$r=(Tr.range,lr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/rr}),(function(t){return t.getUTCDate()-1}))),Nr=$r;function zr(t){return lr((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)/ir}))}$r.range;var Rr=zr(0),Ir=zr(1),Wr=zr(2),Br=zr(3),Vr=zr(4),Fr=zr(5),Ur=zr(6),Hr=(Rr.range,Ir.range,Wr.range,Br.range,Vr.range,Fr.range,Ur.range,lr((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()}))),qr=Hr,Gr=(Hr.range,lr((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()})));Gr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lr((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 Kr=Gr;function Yr(t,n,e,r,i,o){const a=[[dr,1,tr],[dr,5,5e3],[dr,15,15e3],[dr,30,3e4],[o,1,nr],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,er],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,rr],[r,2,1728e5],[e,1,ir],[n,1,2592e6],[n,3,7776e6],[t,1,or]];function s(n,e,r){const i=Math.abs(e-n)/r,o=qt((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(Ft(n/or,e/or,r));if(0===o)return ur.every(Math.max(Ft(n,e,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"==typeof e.range?e:s(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},s]}Gr.range;const[Xr,Zr]=Yr(Kr,qr,Rr,Nr,jr,Lr),[Qr,Jr]=Yr(Dr,Sr,br,xr,yr,pr);function ti(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 ni(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 ei(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var ri,ii,oi,ai={"-":"",_:" ",0:"0"},si=/^\s*\d+/,li=/^%/,ci=/[\\^$*+?|[\]().{}]/g;function ui(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function hi(t){return t.replace(ci,"\\$&")}function di(t){return new RegExp("^(?:"+t.map(hi).join("|")+")","i")}function fi(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function pi(t,n,e){var r=si.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function mi(t,n,e){var r=si.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function yi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function gi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function xi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function vi(t,n,e){var r=si.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function bi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function _i(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 Mi(t,n,e){var r=si.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Ci(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function wi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Ai(t,n,e){var r=si.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=si.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function ki(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Si(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Pi(t,n,e){var r=si.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Di(t,n,e){var r=si.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Oi(t,n,e){var r=li.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Li(t,n,e){var r=si.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Ti(t,n,e){var r=si.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function ji(t,n){return ui(t.getDate(),n,2)}function $i(t,n){return ui(t.getHours(),n,2)}function Ni(t,n){return ui(t.getHours()%12||12,n,2)}function zi(t,n){return ui(1+xr.count(Dr(t),t),n,3)}function Ri(t,n){return ui(t.getMilliseconds(),n,3)}function Ii(t,n){return Ri(t,n)+"000"}function Wi(t,n){return ui(t.getMonth()+1,n,2)}function Bi(t,n){return ui(t.getMinutes(),n,2)}function Vi(t,n){return ui(t.getSeconds(),n,2)}function Fi(t){var n=t.getDay();return 0===n?7:n}function Ui(t,n){return ui(br.count(Dr(t)-1,t),n,2)}function Hi(t){var n=t.getDay();return n>=4||0===n?wr(t):wr.ceil(t)}function qi(t,n){return t=Hi(t),ui(wr.count(Dr(t),t)+(4===Dr(t).getDay()),n,2)}function Gi(t){return t.getDay()}function Ki(t,n){return ui(_r.count(Dr(t)-1,t),n,2)}function Yi(t,n){return ui(t.getFullYear()%100,n,2)}function Xi(t,n){return ui((t=Hi(t)).getFullYear()%100,n,2)}function Zi(t,n){return ui(t.getFullYear()%1e4,n,4)}function Qi(t,n){var e=t.getDay();return ui((t=e>=4||0===e?wr(t):wr.ceil(t)).getFullYear()%1e4,n,4)}function Ji(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+ui(n/60|0,"0",2)+ui(n%60,"0",2)}function to(t,n){return ui(t.getUTCDate(),n,2)}function no(t,n){return ui(t.getUTCHours(),n,2)}function eo(t,n){return ui(t.getUTCHours()%12||12,n,2)}function ro(t,n){return ui(1+Nr.count(Kr(t),t),n,3)}function io(t,n){return ui(t.getUTCMilliseconds(),n,3)}function oo(t,n){return io(t,n)+"000"}function ao(t,n){return ui(t.getUTCMonth()+1,n,2)}function so(t,n){return ui(t.getUTCMinutes(),n,2)}function lo(t,n){return ui(t.getUTCSeconds(),n,2)}function co(t){var n=t.getUTCDay();return 0===n?7:n}function uo(t,n){return ui(Rr.count(Kr(t)-1,t),n,2)}function ho(t){var n=t.getUTCDay();return n>=4||0===n?Vr(t):Vr.ceil(t)}function fo(t,n){return t=ho(t),ui(Vr.count(Kr(t),t)+(4===Kr(t).getUTCDay()),n,2)}function po(t){return t.getUTCDay()}function mo(t,n){return ui(Ir.count(Kr(t)-1,t),n,2)}function yo(t,n){return ui(t.getUTCFullYear()%100,n,2)}function go(t,n){return ui((t=ho(t)).getUTCFullYear()%100,n,2)}function xo(t,n){return ui(t.getUTCFullYear()%1e4,n,4)}function vo(t,n){var e=t.getUTCDay();return ui((t=e>=4||0===e?Vr(t):Vr.ceil(t)).getUTCFullYear()%1e4,n,4)}function bo(){return"+0000"}function _o(){return"%"}function Mo(t){return+t}function Co(t){return Math.floor(+t/1e3)}function wo(t){return new Date(t)}function Ao(t){return t instanceof Date?+t:+new Date(+t)}function Eo(t,n,e,r,i,o,a,s,l,c){var u=re(),h=u.invert,d=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),x=c("%b %d"),v=c("%B"),b=c("%Y");function _(t){return(l(t)<t?f:s(t)<t?p:a(t)<t?m:o(t)<t?y:r(t)<t?i(t)<t?g:x:e(t)<t?v:b)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?d(Array.from(t,Ao)):d().map(wo)},u.ticks=function(n){var e=d();return t(e[0],e[e.length-1],null==n?10:n)},u.tickFormat=function(t,n){return null==n?_:c(n)},u.nice=function(t){var e=d();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?d(Me(e,t)):u},u.copy=function(){return ne(u,Eo(t,n,e,r,i,o,a,s,l,c))},u}function ko(){return St.apply(Eo(Qr,Jr,Dr,Sr,br,xr,yr,pr,dr,ii).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function So(){return St.apply(Eo(Xr,Zr,Kr,qr,Rr,Nr,jr,Lr,dr,oi).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Po(){var t,n,e,r,i,o=0,a=1,s=Zn,l=!1;function c(n){return null==n||isNaN(n=+n)?i:s(0===e?.5:(n=(r(n)-t)*e,l?Math.max(0,Math.min(1,n)):n))}function u(t){return function(n){var e,r;return arguments.length?([e,r]=n,s=t(e,r),c):[s(0),s(1)]}}return c.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),n=r(a=+a),e=t===n?0:1/(n-t),c):[o,a]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=u(Gn),c.rangeRound=u(Kn),c.unknown=function(t){return arguments.length?(i=t,c):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),c}}function Do(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Oo(){var t=ve(Po()(Zn));return t.copy=function(){return Do(t,Oo())},Pt.apply(t,arguments)}function Lo(){var t=Pe(Po()).domain([1,10]);return t.copy=function(){return Do(t,Lo()).base(t.base())},Pt.apply(t,arguments)}function To(){var t=Te(Po());return t.copy=function(){return Do(t,To()).constant(t.constant())},Pt.apply(t,arguments)}function jo(){var t=Re(Po());return t.copy=function(){return Do(t,jo()).exponent(t.exponent())},Pt.apply(t,arguments)}function $o(){return jo.apply(null,arguments).exponent(.5)}function No(){var t=[],n=Zn;function e(e){if(null!=e&&!isNaN(e=+e))return n((Zt(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(Ut),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)=>Ye(t,r/n)))},e.copy=function(){return No(n).domain(t)},Pt.apply(e,arguments)}function zo(t,n){void 0===n&&(n=t,t=Gn);for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}function Ro(){var t,n,e,r,i,o,a,s=0,l=.5,c=1,u=1,h=Zn,d=!1;function f(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(u*t<u*n?r:i),h(d?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,h=zo(t,[e,r,i]),f):[h(0),h(.5),h(1)]}}return f.domain=function(a){return arguments.length?([s,l,c]=a,t=o(s=+s),n=o(l=+l),e=o(c=+c),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),u=n<t?-1:1,f):[s,l,c]},f.clamp=function(t){return arguments.length?(d=!!t,f):d},f.interpolator=function(t){return arguments.length?(h=t,f):h},f.range=p(Gn),f.rangeRound=p(Kn),f.unknown=function(t){return arguments.length?(a=t,f):a},function(a){return o=a,t=a(s),n=a(l),e=a(c),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),u=n<t?-1:1,f}}function Io(){var t=ve(Ro()(Zn));return t.copy=function(){return Do(t,Io())},Pt.apply(t,arguments)}function Wo(){var t=Pe(Ro()).domain([.1,1,10]);return t.copy=function(){return Do(t,Wo()).base(t.base())},Pt.apply(t,arguments)}function Bo(){var t=Te(Ro());return t.copy=function(){return Do(t,Bo()).constant(t.constant())},Pt.apply(t,arguments)}function Vo(){var t=Re(Ro());return t.copy=function(){return Do(t,Vo()).exponent(t.exponent())},Pt.apply(t,arguments)}function Fo(){return Vo.apply(null,arguments).exponent(.5)}ri=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=di(i),u=fi(i),h=di(o),d=fi(o),f=di(a),p=fi(a),m=di(s),y=fi(s),g=di(l),x=fi(l),v={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:ji,e:ji,f:Ii,g:Xi,G:Qi,H:$i,I:Ni,j:zi,L:Ri,m:Wi,M:Bi,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Mo,s:Co,S:Vi,u:Fi,U:Ui,V:qi,w:Gi,W:Ki,x:null,X:null,y:Yi,Y:Zi,Z:Ji,"%":_o},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:to,e:to,f:oo,g:go,G:vo,H:no,I:eo,j:ro,L:io,m:ao,M:so,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Mo,s:Co,S:lo,u:co,U:uo,V:fo,w:po,W:mo,x:null,X:null,y:yo,Y:xo,Z:bo,"%":_o},_={a:function(t,n,e){var r=f.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=h.exec(n.slice(e));return r?(t.w=d.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=x.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=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return w(t,n,e,r)},d:wi,e:wi,f:Di,g:bi,G:vi,H:Ei,I:Ei,j:Ai,L:Pi,m:Ci,M:ki,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=u.get(r[0].toLowerCase()),e+r[0].length):-1},q:Mi,Q:Li,s:Ti,S:Si,u:mi,U:yi,V:gi,w:pi,W:xi,x:function(t,n,r){return w(t,e,n,r)},X:function(t,n,e){return w(t,r,n,e)},y:bi,Y:vi,Z:_i,"%":Oi};function M(t,n){return function(e){var r,i,o,a=[],s=-1,l=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=ai[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function C(t,n){return function(e){var r,i,o=ei(1900,void 0,1);if(w(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=ni(ei(o.y,0,1))).getUTCDay(),r=i>4||0===i?Ir.ceil(r):Ir(r),r=Nr.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=ti(ei(o.y,0,1))).getDay(),r=i>4||0===i?_r.ceil(r):_r(r),r=xr.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ni(ei(o.y,0,1)).getUTCDay():ti(ei(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ni(o)):ti(o)}}function w(t,n,e,r){for(var i,o,a=0,s=n.length,l=e.length;a<s;){if(r>=l)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=_[i in ai?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return v.x=M(e,v),v.X=M(r,v),v.c=M(n,v),b.x=M(e,b),b.X=M(r,b),b.c=M(n,b),{format:function(t){var n=M(t+="",v);return n.toString=function(){return t},n},parse:function(t){var n=C(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=M(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=C(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"]}),ii=ri.format,ri.parse,oi=ri.utcFormat,ri.utcParse;const Uo=["linear","time","log","sqrt"];function Ho(t){return"function"==typeof t?ct(t.copy)&&ct(t.domain)&&ct(t.range):"string"==typeof t&&Uo.includes(t)}function qo(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function Go(t,n){if(!t.data)return"linear";const e=ut(t[n]);return vt(t.data.map((t=>{const r=W()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function Ko(t){if(Ho(t)){const n=`scale${(t=>t&&t[0].toUpperCase()+t.slice(1))(t)}`;return e[n]()}return be()}function Yo(t,n){const e=Zo(t,n);return e?"string"==typeof e?Ko(e):e:Ko(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 vt(e)?"time":"linear"}(t,n)||Go(t,n))}function Xo(){return be()}function Zo(t,n){if(!qo(t,n))return;const e=t.scale[n]||t.scale;return Ho(e)?ct(e)?e:Ko(e):void 0}function Qo(t,n){return function(t,n){if(!qo(t,n))return;const e=t.scale[n]||t.scale;return"string"==typeof e?e:ta(e)}(t,n)||Go(t,n)}const Jo=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function ta(t){if("string"==typeof t)return t;const n=Jo.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}const na="@@__IMMUTABLE_ITERABLE__@@",ea="@@__IMMUTABLE_RECORD__@@",ra="@@__IMMUTABLE_LIST__@@",ia="@@__IMMUTABLE_MAP__@@";function oa(t){return!(!t||!t[na])}function aa(t){return!(!t||!t[ea])}function sa(t){return oa(t)||aa(t)}function la(t){return!(!t||!t[ra])}function ca(t){return!(!t||!t[ia])}function ua(t,n){return oa(t)?t.reduce(((t,e,r)=>{let i=e;return n&&n[r]&&(i=ua(e)),t[r]=i,t}),la(t)?[]:{}):t}function ha(t){return sa(t)?ua(t,{errorX:!0,errorY:!0}):t}function da(t){return oa(t)?t.size:t.length}function fa(t,n){const e=(W()(t.domain)?t.domain[n]:t.domain)||Yo(t,n).domain(),r=t.samples||1,i=Math.max(...e),o=Math.min(...e),a=pt(o,i,(i-o)/r);return a[a.length-1]===i?a:a.concat(i)}function pa(t,n,e){if(void 0===e&&(e="ascending"),!n)return t;let r=n;"x"!==n&&"y"!==n||(r=`_${n}`);const i="ascending"===e?"asc":"desc";return N()(t,r,i)}function ma(t,n,e){const r=t=>void 0!==t,i=Et(n.x),o=At(n.x),a=Et(n.y),s=At(n.y),l=t=>n=>r(n)&&n<t,c=t=>n=>r(n)&&n>t,u=l(i),h=l(a),d=c(o),f=c(s);return t.map((t=>{let{_x:n,_y:i,_y0:o,_y1:l}=t;(u(n)||d(n))&&(n=null);const c=r(o)?o:e,p=r(l)?l:i;return r(p)?(r(c)||!h(p)&&!f(p)||(i=null),(h(c)&&h(p)||f(c)&&f(p))&&(i=o=l=null),h(c)&&!h(p)&&(o=a),f(c)&&!f(p)&&(o=s),Object.assign({},t,S()({_x:n,_y:i,_y0:o,_y1:l},D()))):t}))}function ya(t,n){const e=Ma(t,n),r=Ca(t,n),i=wa(t,n),o=V()([...e,...r,...i]);return 0===o.length?null:o.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function ga(t,n,e){void 0===e&&(e=0);const r=da(t);if(r>n){const i=Math.pow(2,Math.ceil(Math.log2(r/n)));return t.filter(((t,n)=>(n+e)%i==0))}return t}function xa(t,n,e){if(!Array.isArray(t)&&!oa(t)||da(t)<1)return[];const r=["x","y","y0"],i=(e=Array.isArray(e)?e:r).reduce(((t,e)=>{var r;return t[e]=ut(void 0!==n[r=e]?n[r]:r),t}),{}),o=L()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let a;!1===o&&(a={x:-1!==e.indexOf("x")?ya(n,"x"):void 0,y:-1!==e.indexOf("y")?ya(n,"y"):void 0,y0:-1!==e.indexOf("y0")?ya(n,"y"):void 0});const s=o?t:t.reduce(((t,n,r)=>{const o=ha(n),s={x:r,y:o},l=e.reduce(((t,n)=>{const e=i[n](o),r=void 0!==e?e:s[n];return void 0!==r&&("string"==typeof r&&a[n]?(t[`${n}Name`]=r,t[`_${n}`]=a[n][r]):t[`_${n}`]=r),t}),{}),c=Object.assign({},l,o);return j()(c)||t.push(c),t}),[]),l=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:Qo(n,"x"),y:Qo(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;const i=(t,n)=>"log"!==r[n]||0!==t[`_${n}`];return t.map((t=>i(t,"x")&&i(t,"y")&&i(t,"y0")?t:(t=>{const n=i(t,"x")?t._x:e,r=i(t,"y")?t._y:e,o=i(t,"y0")?t._y0:e;return Object.assign({},t,{_x:n,_y:r,_y0:o})})(t)))}(pa(s,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=ct(i=t.eventKey)?i:null==i?()=>{}:R()(i);var i;return n.map(((t,n)=>{if(void 0!==t.eventKey)return t;if(e){const e=r(t,n);return void 0!==e?Object.assign({eventKey:e},t):t}return t}))}(n,l)}function va(t){const n=fa(t,"x"),e=fa(t,"y"),r=n.map(((t,n)=>({x:t,y:e[n]})));return r}function ba(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function _a(t){return t.data?xa(t.data,t):xa(va(t),t)}function Ma(t,n){const{tickValues:e,tickFormat:r}=t;let i;return i=e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[],i.filter((t=>"string"==typeof t))}function Ca(t,n){if(!t.categories)return[];const e=ba(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?wt(r):[]}function wa(t,n){if(!Array.isArray(t.data)&&!oa(t.data))return[];const e=ut(void 0===t[n]?n:t[n]);return pa(t.data.reduce(((t,n)=>(t.push(ha(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=ha(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)),[])}function Aa(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=E().Children.toArray(t.props.children);e=r.length?n(r[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(e)}var Ea=r(4295),ka=r.n(Ea),Sa=r(2829),Pa=r.n(Sa);function Da(t,n,e){void 0===e&&(e="min");const r=t=>"max"===e?Math.max(...t):Math.min(...t),i="max"===e?-1/0:1/0;let o=!1;const a=t.flat().reduce(((t,e)=>{const i=void 0!==e[`_${n}0`]?e[`_${n}0`]:e[`_${n}`],a=void 0!==e[`_${n}1`]?e[`_${n}1`]:e[`_${n}`],s=r([i,a]);return o=o||i instanceof Date||a instanceof Date,r([t,s])}),i);return o?new Date(a):a}function Oa(t,n){const e=ct(t)?t:$a,r=ct(n)?n:La;return(t,n)=>{const i=za(t,n);if(i)return r(i,t,n);const o=ba(t,n),a=o?ja(t,n,o):e(t,n);return a?r(a,t,n):void 0}}function La(t,n,e){return function(t,n,e){return"log"!==Qo(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=Wa(n,e),i=Ia(n,e),o=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return W()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!o.left&&!o.right)return t;const a=Et(t),s=At(t),l=st(n,dt(e,n.horizontal)),c=Math.abs(l[0]-l[1]),u=Math.max(c-o.left-o.right,1),h=Math.abs(s.valueOf()-a.valueOf())/u*c,d=h*o.left/c,f=h*o.right/c;let p={min:a.valueOf()-d,max:s.valueOf()+f};const m=W()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,y=(t,n)=>"min"===n&&a>=0&&t<=0||"max"===n&&s<=0&&t>=0?0:t;if((a>=0&&p.min<=0||s<=0&&p.max>=0)&&!1!==m){const t={left:Math.abs(s-a)*o.left/c,right:Math.abs(s-a)*o.right/c},n={min:y(a.valueOf()-t.left,"min"),max:y(s.valueOf()+t.right,"max")},e={left:Math.abs(n.max-n.min)*o.left/c,right:Math.abs(n.max-n.min)*o.right/c};p={min:y(a.valueOf()-e.left,"min"),max:y(s.valueOf()+e.right,"max")}}const g={min:void 0!==r?r:p.min,max:void 0!==i?i:p.max};return a instanceof Date||s instanceof Date?Na(new Date(g.min),new Date(g.max)):Na(g.min,g.max)}(t,n,e),n,e)}function Ta(t,n){return Oa()(t,n)}function ja(t,n,e){const r=e||ba(t,n),{polar:i,startAngle:o=0,endAngle:a=360}=t;if(!r)return;const s=Wa(t,n),l=Ia(t,n),c=xt(r)?Ca(t,n):[],u=0===c.length?null:c.reduce(((t,n,e)=>(t[n]=e+1,t)),{}),h=u?r.map((t=>u[t])):r,d=Na(void 0!==s?s:Et(h),void 0!==l?l:At(h));return i&&"x"===n&&360===Math.abs(o-a)?Ba(d,h):d}function $a(t,n,e){const r=e||_a(t),{polar:i,startAngle:o=0,endAngle:a=360}=t,s=Wa(t,n),l=Ia(t,n);if(r.length<1)return void 0!==s&&void 0!==l?Na(s,l):void 0;const c=Na(void 0!==s?s:Da(r,n,"min"),void 0!==l?l:Da(r,n,"max"));return i&&"x"===n&&360===Math.abs(o-a)?Ba(c,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)):c}function Na(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 za(t,n){const e=Wa(t,n),r=Ia(t,n);return W()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?Na(e,r):void 0}function Ra(t,n){const e=za(t,n);if(e)return e;const r=_a(t),i=r.reduce(((t,n)=>n._y0<t?n._y0:t),1/0);return Oa((()=>$a(t,n,r)),(e=>La((e=>{if("x"===n)return e;const r=i!==1/0?i:0,o=Ia(t,n),a=Wa(t,n),s=void 0!==o?o:At(e,r);return Na(void 0!==a?a:Et(e,r),s)})(e),t,n)))(t,n)}function Ia(t,n){return W()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||ka()(t.maxDomain)?t.maxDomain:void 0}function Wa(t,n){return W()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||ka()(t.minDomain)?t.minDomain:void 0}function Ba(t,n){const e=Pa()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}function Va(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=E().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)}function Fa(t){const{labelComponent:n,labelPlacement:e,polar:r}=t,i=r?"perpendicular":"vertical";return e||n.props&&n.props.labelPlacement||i}function Ua(t,n,e){return void 0===n&&(n={}),void 0!==n.label?n.label:Array.isArray(t.labels)?t.labels[e]:t.labels}function Ha(t,n){const e=Fa(t);return"perpendicular"===e||"vertical"===e&&(90===n||270===n)?"middle":n<=90||n>270?"start":"end"}function qa(t,n){const e=Fa(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(n);return"parallel"===e||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function Ga(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const i=void 0!==n?n%360:Ka(t,r);let o=0;return 0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===e?0:90)}function Ka(t,n){const{x:e}=Y(n);return it(t.scale.x(e))%360}function Ya(t,n){const{scale:e,data:r,style:i,horizontal:o,polar:a,width:s,height:l,theme:c,labelComponent:u,disableInlineStyles:h}=t,d=r[n],f=Ka(t,d),p=a?Ha(t,f):function(t,n){void 0===n&&(n={});const{style:e,horizontal:r}=t,i=n._y>=0?1:-1,o=e&&e.labels||{};return n.verticalAnchor||o.verticalAnchor?n.verticalAnchor||o.verticalAnchor:r?i>=0?"start":"end":"middle"}(t,d),m=a?qa(t,f):function(t,n){void 0===n&&(n={});const e=n._y>=0?1:-1,r=t.style&&t.style.labels||{};return n.verticalAnchor||r.verticalAnchor?n.verticalAnchor||r.verticalAnchor:t.horizontal?"middle":e>=0?"end":"start"}(t,d),y=function(t,n){void 0===n&&(n={});const e=t.style&&t.style.labels||{};return void 0===n.angle?e.angle:n.angle}(t,d),g=Ua(t,d,n),x=Fa(t),{x:v,y:b}=function(t,n){const{polar:e}=t,{x:r,y:i}=X(t,n);if(!e)return{x:r,y:i};const o=function(t,n){const{style:e}=t,r=Ka(t,n),i=nt((e.labels||{}).padding,t)||0,o=rt(r);return{x:i*Math.cos(o),y:-i*Math.sin(o)}}(t,n);return{x:r+o.x,y:i+o.y}}(t,d),{dx:_,dy:M}=function(t,n){if(t.polar)return{};const e=function(t,n){void 0===n&&(n={});const{horizontal:e,style:r}=t,i=nt((r.labels||{}).padding,t)||0,o=n._y<0?-1:1;return{x:e?o*i:0,y:e?0:-1*o*i}}(t,n);return{dx:e.x,dy:e.y}}(t,d),C={angle:y,data:r,datum:d,disableInlineStyles:h,horizontal:o,index:n,polar:a,scale:e,labelPlacement:x,text:g,textAnchor:p,verticalAnchor:m,x:v,y:b,dx:_,dy:M,width:s,height:l,style:i.labels};if(!Q(u))return C;const w=c&&c.tooltip||{};return q()({},C,K(w,["style"]))}const Xa=Math.PI,Za=2*Xa,Qa=1e-6,Ja=Za-Qa;function ts(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ns(){return new ts}ts.prototype=ns.prototype={constructor:ts,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,s=e-t,l=r-n,c=o-t,u=a-n,h=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>Qa)if(Math.abs(u*s-l*c)>Qa&&i){var d=e-o,f=r-a,p=s*s+l*l,m=d*d+f*f,y=Math.sqrt(p),g=Math.sqrt(h),x=i*Math.tan((Xa-Math.acos((p+h-m)/(2*y*g)))/2),v=x/g,b=x/y;Math.abs(v-1)>Qa&&(this._+="L"+(t+v*c)+","+(n+v*u)),this._+="A"+i+","+i+",0,0,"+ +(u*d>c*f)+","+(this._x1=t+b*s)+","+(this._y1=n+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),s=e*Math.sin(r),l=t+a,c=n+s,u=1^o,h=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Qa||Math.abs(this._y1-c)>Qa)&&(this._+="L"+l+","+c),e&&(h<0&&(h=h%Za+Za),h>Ja?this._+="A"+e+","+e+",0,1,"+u+","+(t-a)+","+(n-s)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>Qa&&(this._+="A"+e+","+e+",0,"+ +(h>=Xa)+","+u+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var es=ns,rs=Array.prototype.slice;function is(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function os(t){return function(){return t}}function as(t){this._context=t}function ss(t){return new as(t)}function ls(t){return t[0]}function cs(t){return t[1]}function us(t,n){var e=os(!0),r=null,i=ss,o=null;function a(a){var s,l,c,u=(a=is(a)).length,h=!1;for(null==r&&(o=i(c=es())),s=0;s<=u;++s)!(s<u&&e(l=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,a),+n(l,s,a));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?ls:os(t),n="function"==typeof n?n:void 0===n?cs:os(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),a):n},a.defined=function(t){return arguments.length?(e="function"==typeof t?t:os(!!t),a):e},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function hs(t,n,e){var r=null,i=os(!0),o=null,a=ss,s=null;function l(l){var c,u,h,d,f,p=(l=is(l)).length,m=!1,y=new Array(p),g=new Array(p);for(null==o&&(s=a(f=es())),c=0;c<=p;++c){if(!(c<p&&i(d=l[c],c,l))===m)if(m=!m)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=u;--h)s.point(y[h],g[h]);s.lineEnd(),s.areaEnd()}m&&(y[c]=+t(d,c,l),g[c]=+n(d,c,l),s.point(r?+r(d,c,l):y[c],e?+e(d,c,l):g[c]))}if(f)return s=null,f+""||null}function c(){return us().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?ls:os(+t),n="function"==typeof n?n:os(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?cs:os(+e),l.x=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),r=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:os(+t),l):r},l.y=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),e=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),l):n},l.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:os(+t),l):e},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(e)},l.lineX1=function(){return c().x(r).y(n)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:os(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),l):o},l}as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var ds=ps(ss);function fs(t){this._curve=t}function ps(t){function n(n){return new fs(t(n))}return n._curve=t,n}function ms(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(ps(t)):n()._curve},t}function ys(){return ms(us().curve(ds))}function gs(){var t=hs().curve(ds),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return ms(e())},delete t.lineX0,t.lineEndAngle=function(){return ms(r())},delete t.lineX1,t.lineInnerRadius=function(){return ms(i())},delete t.lineY0,t.lineOuterRadius=function(){return ms(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(ps(t)):n()._curve},t}fs.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};const xs=Math.abs,vs=Math.atan2,bs=Math.cos,_s=Math.max,Ms=Math.min,Cs=Math.sin,ws=Math.sqrt,As=1e-12,Es=Math.PI,ks=Es/2,Ss=2*Es;function Ps(t){return t>1?0:t<-1?Es:Math.acos(t)}function Ds(t){return t>=1?ks:t<=-1?-ks:Math.asin(t)}function Os(t){return t.innerRadius}function Ls(t){return t.outerRadius}function Ts(t){return t.startAngle}function js(t){return t.endAngle}function $s(t){return t&&t.padAngle}function Ns(t,n,e,r,i,o,a,s){var l=e-t,c=r-n,u=a-i,h=s-o,d=h*l-u*c;if(!(d*d<As))return[t+(d=(u*(n-o)-h*(t-i))/d)*l,n+d*c]}function zs(t,n,e,r,i,o,a){var s=t-e,l=n-r,c=(a?o:-o)/ws(s*s+l*l),u=c*l,h=-c*s,d=t+u,f=n+h,p=e+u,m=r+h,y=(d+p)/2,g=(f+m)/2,x=p-d,v=m-f,b=x*x+v*v,_=i-o,M=d*m-p*f,C=(v<0?-1:1)*ws(_s(0,_*_*b-M*M)),w=(M*v-x*C)/b,A=(-M*x-v*C)/b,E=(M*v+x*C)/b,k=(-M*x+v*C)/b,S=w-y,P=A-g,D=E-y,O=k-g;return S*S+P*P>D*D+O*O&&(w=E,A=k),{cx:w,cy:A,x01:-u,y01:-h,x11:w*(i/_-1),y11:A*(i/_-1)}}function Rs(){var t=Os,n=Ls,e=os(0),r=null,i=Ts,o=js,a=$s,s=null;function l(){var l,c,u=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-ks,f=o.apply(this,arguments)-ks,p=xs(f-d),m=f>d;if(s||(s=l=es()),h<u&&(c=h,h=u,u=c),h>As)if(p>Ss-As)s.moveTo(h*bs(d),h*Cs(d)),s.arc(0,0,h,d,f,!m),u>As&&(s.moveTo(u*bs(f),u*Cs(f)),s.arc(0,0,u,f,d,m));else{var y,g,x=d,v=f,b=d,_=f,M=p,C=p,w=a.apply(this,arguments)/2,A=w>As&&(r?+r.apply(this,arguments):ws(u*u+h*h)),E=Ms(xs(h-u)/2,+e.apply(this,arguments)),k=E,S=E;if(A>As){var P=Ds(A/u*Cs(w)),D=Ds(A/h*Cs(w));(M-=2*P)>As?(b+=P*=m?1:-1,_-=P):(M=0,b=_=(d+f)/2),(C-=2*D)>As?(x+=D*=m?1:-1,v-=D):(C=0,x=v=(d+f)/2)}var O=h*bs(x),L=h*Cs(x),T=u*bs(_),j=u*Cs(_);if(E>As){var $,N=h*bs(v),z=h*Cs(v),R=u*bs(b),I=u*Cs(b);if(p<Es&&($=Ns(O,L,R,I,N,z,T,j))){var W=O-$[0],B=L-$[1],V=N-$[0],F=z-$[1],U=1/Cs(Ps((W*V+B*F)/(ws(W*W+B*B)*ws(V*V+F*F)))/2),H=ws($[0]*$[0]+$[1]*$[1]);k=Ms(E,(u-H)/(U-1)),S=Ms(E,(h-H)/(U+1))}}C>As?S>As?(y=zs(R,I,O,L,h,S,m),g=zs(N,z,T,j,h,S,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),S<E?s.arc(y.cx,y.cy,S,vs(y.y01,y.x01),vs(g.y01,g.x01),!m):(s.arc(y.cx,y.cy,S,vs(y.y01,y.x01),vs(y.y11,y.x11),!m),s.arc(0,0,h,vs(y.cy+y.y11,y.cx+y.x11),vs(g.cy+g.y11,g.cx+g.x11),!m),s.arc(g.cx,g.cy,S,vs(g.y11,g.x11),vs(g.y01,g.x01),!m))):(s.moveTo(O,L),s.arc(0,0,h,x,v,!m)):s.moveTo(O,L),u>As&&M>As?k>As?(y=zs(T,j,N,z,u,-k,m),g=zs(O,L,R,I,u,-k,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),k<E?s.arc(y.cx,y.cy,k,vs(y.y01,y.x01),vs(g.y01,g.x01),!m):(s.arc(y.cx,y.cy,k,vs(y.y01,y.x01),vs(y.y11,y.x11),!m),s.arc(0,0,u,vs(y.cy+y.y11,y.cx+y.x11),vs(g.cy+g.y11,g.cx+g.x11),m),s.arc(g.cx,g.cy,k,vs(g.y11,g.x11),vs(g.y01,g.x01),!m))):s.arc(0,0,u,_,b,m):s.lineTo(T,j)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Es/2;return[bs(r)*e,Cs(r)*e]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),l):n},l.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:os(+t),l):e},l.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:os(+t),l):r},l.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:os(+t),l):i},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:os(+t),l):o},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:os(+t),l):a},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function Is(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Ws(t){return t}function Bs(){var t=Ws,n=Is,e=null,r=os(0),i=os(Ss),o=os(0);function a(a){var s,l,c,u,h,d=(a=is(a)).length,f=0,p=new Array(d),m=new Array(d),y=+r.apply(this,arguments),g=Math.min(Ss,Math.max(-Ss,i.apply(this,arguments)-y)),x=Math.min(Math.abs(g)/d,o.apply(this,arguments)),v=x*(g<0?-1:1);for(s=0;s<d;++s)(h=m[p[s]=s]=+t(a[s],s,a))>0&&(f+=h);for(null!=n?p.sort((function(t,e){return n(m[t],m[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),s=0,c=f?(g-d*v)/f:0;s<d;++s,y=u)l=p[s],u=y+((h=m[l])>0?h*c:0)+v,m[l]={data:a[l],index:s,value:h,startAngle:y,endAngle:u,padAngle:x};return m}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:os(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:os(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:os(+t),a):o},a}function Vs(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}class Fs{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}class Us{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,0==this._point++)this._x0=t,this._y0=n;else{const e=Vs(this._x0,this._y0),r=Vs(this._x0,this._y0=(this._y0+n)/2),i=Vs(t,this._y0),o=Vs(t,n);this._context.moveTo(...e),this._context.bezierCurveTo(...r,...i,...o)}}}function Hs(t){return new Fs(t,!0)}function qs(t){return new Fs(t,!1)}function Gs(t){return new Us(t)}function Ks(t){return t.source}function Ys(t){return t.target}function Xs(t){let n=Ks,e=Ys,r=ls,i=cs,o=null,a=null;function s(){let s;const l=rs.call(arguments),c=n.apply(this,l),u=e.apply(this,l);if(null==o&&(a=t(s=es())),a.lineStart(),l[0]=c,a.point(+r.apply(this,l),+i.apply(this,l)),l[0]=u,a.point(+r.apply(this,l),+i.apply(this,l)),a.lineEnd(),s)return a=null,s+""||null}return s.source=function(t){return arguments.length?(n=t,s):n},s.target=function(t){return arguments.length?(e=t,s):e},s.x=function(t){return arguments.length?(r="function"==typeof t?t:os(+t),s):r},s.y=function(t){return arguments.length?(i="function"==typeof t?t:os(+t),s):i},s.context=function(n){return arguments.length?(null==n?o=a=null:a=t(o=n),s):o},s}function Zs(){return Xs(Hs)}function Qs(){return Xs(qs)}function Js(){const t=Xs(Gs);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const tl=ws(3);var nl={draw(t,n){const e=.59436*ws(n+Ms(n/28,.75)),r=e/2,i=r*tl;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},el={draw(t,n){const e=ws(n/Es);t.moveTo(e,0),t.arc(0,0,e,0,Ss)}},rl={draw(t,n){const e=ws(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};const il=ws(1/3),ol=2*il;var al={draw(t,n){const e=ws(n/ol),r=e*il;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},sl={draw(t,n){const e=.62625*ws(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},ll={draw(t,n){const e=.87559*ws(n-Ms(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},cl={draw(t,n){const e=ws(n),r=-e/2;t.rect(r,r,e,e)}},ul={draw(t,n){const e=.4431*ws(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}};const hl=Cs(Es/10)/Cs(7*Es/10),dl=Cs(Ss/10)*hl,fl=-bs(Ss/10)*hl;var pl={draw(t,n){const e=ws(.8908130915292852*n),r=dl*e,i=fl*e;t.moveTo(0,-e),t.lineTo(r,i);for(let n=1;n<5;++n){const o=Ss*n/5,a=bs(o),s=Cs(o);t.lineTo(s*e,-a*e),t.lineTo(a*r-s*i,s*r+a*i)}t.closePath()}};const ml=ws(3);var yl={draw(t,n){const e=-ws(n/(3*ml));t.moveTo(0,2*e),t.lineTo(-ml*e,-e),t.lineTo(ml*e,-e),t.closePath()}};const gl=ws(3);var xl={draw(t,n){const e=.6824*ws(n),r=e/2,i=e*gl/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}};const vl=-.5,bl=ws(3)/2,_l=1/ws(12),Ml=3*(_l/2+1);var Cl={draw(t,n){const e=ws(n/Ml),r=e/2,i=e*_l,o=r,a=e*_l+e,s=-o,l=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,l),t.lineTo(vl*r-bl*i,bl*r+vl*i),t.lineTo(vl*o-bl*a,bl*o+vl*a),t.lineTo(vl*s-bl*l,bl*s+vl*l),t.lineTo(vl*r+bl*i,vl*i-bl*r),t.lineTo(vl*o+bl*a,vl*a-bl*o),t.lineTo(vl*s+bl*l,vl*l-bl*s),t.closePath()}},wl={draw(t,n){const e=.6189*ws(n-Ms(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}};const Al=[el,rl,al,cl,pl,yl,Cl],El=[el,ll,wl,xl,nl,ul,sl];function kl(t,n){let e=null;function r(){let r;if(e||(e=r=es()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:os(t||el),n="function"==typeof n?n:os(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:os(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function Sl(){}function Pl(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Dl(t){this._context=t}function Ol(t){return new Dl(t)}function Ll(t){this._context=t}function Tl(t){return new Ll(t)}function jl(t){this._context=t}function $l(t){return new jl(t)}function Nl(t,n){this._basis=new Dl(t),this._beta=n}Dl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Pl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pl(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Ll.prototype={areaStart:Sl,areaEnd:Sl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Pl(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},jl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Pl(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Nl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,s=n[e]-o,l=-1;++l<=e;)r=l/e,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*a),this._beta*n[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var zl=function t(n){function e(t){return 1===n?new Dl(t):new Nl(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Rl(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Il(t,n){this._context=t,this._k=(1-n)/6}Il.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Rl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Rl(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Wl=function t(n){function e(t){return new Il(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Bl(t,n){this._context=t,this._k=(1-n)/6}Bl.prototype={areaStart:Sl,areaEnd:Sl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Rl(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Vl=function t(n){function e(t){return new Bl(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Fl(t,n){this._context=t,this._k=(1-n)/6}Fl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rl(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ul=function t(n){function e(t){return new Fl(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Hl(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>As){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>As){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-n*t._l12_2a)/u,a=(a*c+t._y1*t._l23_2a-e*t._l12_2a)/u}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function ql(t,n){this._context=t,this._alpha=n}ql.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Hl(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Gl=function t(n){function e(t){return n?new ql(t,n):new Il(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Kl(t,n){this._context=t,this._alpha=n}Kl.prototype={areaStart:Sl,areaEnd:Sl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Hl(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Yl=function t(n){function e(t){return n?new Kl(t,n):new Bl(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Xl(t,n){this._context=t,this._alpha=n}Xl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Hl(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Zl=function t(n){function e(t){return n?new Xl(t,n):new Fl(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Ql(t){this._context=t}function Jl(t){return new Ql(t)}function tc(t){return t<0?-1:1}function nc(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(tc(o)+tc(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function ec(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function rc(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*n,o-s,a-s*e,o,a)}function ic(t){this._context=t}function oc(t){this._context=new ac(t)}function ac(t){this._context=t}function sc(t){return new ic(t)}function lc(t){return new oc(t)}function cc(t){this._context=t}function uc(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function hc(t){return new cc(t)}function dc(t,n){this._context=t,this._t=n}function fc(t){return new dc(t,.5)}function pc(t){return new dc(t,0)}function mc(t){return new dc(t,1)}function yc(t,n){if((i=t.length)>1)for(var e,r,i,o=1,a=t[n[0]],s=a.length;o<i;++o)for(r=a,a=t[n[o]],e=0;e<s;++e)a[e][1]+=a[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function gc(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function xc(t,n){return t[n]}function vc(t){const n=[];return n.key=t,n}function bc(){var t=os([]),n=gc,e=yc,r=xc;function i(i){var o,a,s=Array.from(t.apply(this,arguments),vc),l=s.length,c=-1;for(const t of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(t,s[o].key,c,i)]).data=t;for(o=0,a=is(n(s));o<l;++o)s[a[o]].index=o;return e(s,a),s}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:os(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:os(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?gc:"function"==typeof t?t:os(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?yc:t,i):e},i}function _c(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}yc(t,n)}}function Mc(t,n){if((s=t.length)>0)for(var e,r,i,o,a,s,l=0,c=t[n[0]].length;l<c;++l)for(o=a=0,e=0;e<s;++e)(i=(r=t[n[e]][l])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function Cc(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<e;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}yc(t,n)}}function wc(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var s=0,l=0,c=0;s<i;++s){for(var u=t[n[s]],h=u[a][1]||0,d=(h-(u[a-1][1]||0))/2,f=0;f<s;++f){var p=t[n[f]];d+=(p[a][1]||0)-(p[a-1][1]||0)}l+=h,c+=d*h}e[a-1][1]+=e[a-1][0]=o,l&&(o-=c/l)}e[a-1][1]+=e[a-1][0]=o,yc(t,n)}}function Ac(t){var n=t.map(Ec);return gc(t).sort((function(t,e){return n[t]-n[e]}))}function Ec(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function kc(t){var n=t.map(Sc);return gc(t).sort((function(t,e){return n[t]-n[e]}))}function Sc(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function Pc(t){return kc(t).reverse()}function Dc(t){var n,e,r=t.length,i=t.map(Sc),o=Ac(t),a=0,s=0,l=[],c=[];for(n=0;n<r;++n)e=o[n],a<s?(a+=i[e],l.push(e)):(s+=i[e],c.push(e));return c.reverse().concat(l)}function Oc(t){return gc(t).reverse()}Ql.prototype={areaStart:Sl,areaEnd:Sl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:rc(this,this._t0,ec(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,rc(this,ec(this,e=nc(this,t,n)),e);break;default:rc(this,this._t0,e=nc(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(oc.prototype=Object.create(ic.prototype)).point=function(t,n){ic.prototype.point.call(this,n,t)},ac.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},cc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=uc(t),i=uc(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};const Lc=t=>null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0,Tc=t=>n=>t.x(void 0!==n._x1?n._x1:n._x),jc=t=>n=>t.y(void 0!==n._y1?n._y1:n._y),$c=t=>`curve${(t=>t&&t[0].toUpperCase()+t.slice(1))(t)}`,Nc=t=>{const{interpolation:n}=t;if("function"==typeof n)return n;if("string"==typeof n){const{polar:e,openCurve:r=!e}=t,i=r?$c(n):(t=>`${$c(t)}Closed`)(n);return u[i]}return ss},zc=t=>{const{polar:n,scale:e,horizontal:r}=t;return n?ys().defined(Lc).curve(Nc(t)).angle((t=>n=>-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2)(e)).radius(jc(e)):us().defined(Lc).curve(Nc(t)).x(r?jc(e):Tc(e)).y(r?Tc(e):jc(e))};function Rc(){return Rc=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},Rc.apply(this,arguments)}const Ic=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("path",Rc({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("path",Rc({},s,{ref:n}))})),Wc={startsWith:["data-","aria-"],exactMatch:[]};function Bc(t,n){if(null==t)throw new Error(n)}const Vc=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return Wc.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>Wc.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,nt(r,t)]})))},Fc=(t,n)=>A.cloneElement(t,Vc(n)),Uc=t=>null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0,Hc=t=>n=>t.x(void 0!==n._x1?n._x1:n._x),qc=t=>n=>t.y(void 0!==n._y1?n._y1:n._y),Gc=t=>n=>t.y(n._y0),Kc={groupComponent:E().createElement("g",null),pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Yc=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({fill:"black"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...Kc,...t}),{ariaLabel:e,role:r,shapeRendering:i,className:o,polar:a,origin:s,data:l,pathComponent:c,events:u,groupComponent:h,clipPath:d,id:f,style:p,desc:m,tabIndex:y}=n,g=Vc(n),x=a&&s?`translate(${s.x}, ${s.y})`:void 0,v=n.transform||x,b=p.stroke&&"none"!==p.stroke&&"transparent"!==p.stroke,_=(t=>{const{polar:n,scale:e}=t,r=Nc(t);return n?gs().defined(Uc).curve(r).angle((t=>n=>-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2)(e)).outerRadius(qc(e)).innerRadius(Gc(e)):(t=>{const{horizontal:n,scale:e}=t,r=Nc(t);return n?hs().defined(Uc).curve(r).x0(Gc(e)).x1(qc(e)).y(Hc(e)):hs().defined(Uc).curve(r).x(Hc(e)).y1(qc(e)).y0(Gc(e))})(t)})(n),M=b&&zc(n),C=p.stroke?"none":p.fill,w={"aria-label":e,className:o,role:r,shapeRendering:i,transform:v,...u,clipPath:d,tabIndex:y},A=E().cloneElement(c,Object.assign({key:`${f}-area`,style:Object.assign({},p,{stroke:C}),d:_(l),desc:m,tabIndex:y},w,g)),k=b?E().cloneElement(c,Object.assign({key:`${f}-area-stroke`,style:Object.assign({},p,{fill:"none"}),d:M(l)},w)):null;return b?E().cloneElement(h,g,[A,k]):A};var Xc=r(7709),Zc=r.n(Xc),Qc=r(660),Jc=r.n(Qc);class tu extends E().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?E().cloneElement(n,{key:t}):n}))}render(){return E().createElement("svg",this.props,this.getChildren())}}const nu=E().createContext({});nu.displayName="PortalContext";var eu,ru,iu=0,ou=0,au=0,su=0,lu=0,cu=0,uu="object"==typeof performance&&performance.now?performance:Date,hu="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function du(){return lu||(hu(fu),lu=uu.now()+cu)}function fu(){lu=0}function pu(){this._call=this._time=this._next=null}function mu(t,n,e){var r=new pu;return r.restart(t,n,e),r}function yu(){lu=(su=uu.now())+cu,iu=ou=0;try{!function(){du(),++iu;for(var t,n=eu;n;)(t=lu-n._time)>=0&&n._call.call(void 0,t),n=n._next;--iu}()}finally{iu=0,function(){for(var t,n,e=eu,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:eu=n);ru=t,xu(r)}(),lu=0}}function gu(){var t=uu.now(),n=t-su;n>1e3&&(cu-=n,su=t)}function xu(t){iu||(ou&&(ou=clearTimeout(ou)),t-lu>24?(t<1/0&&(ou=setTimeout(yu,t-uu.now()-cu)),au&&(au=clearInterval(au))):(au||(su=uu.now(),au=setInterval(gu,1e3)),iu=1,hu(yu)))}pu.prototype=mu.prototype={constructor:pu,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?du():+e)+(null==n?0:+n),this._next||ru===this||(ru?ru._next=this:eu=this,ru=this),this._call=t,this._time=e,xu()},stop:function(){this._call&&(this._call=null,this._time=1/0,xu())}};class vu{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(du()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=mu(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:du(),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 bu=E().createContext({transitionTimer:new vu,animationTimer:new vu});bu.displayName="TimerContext";var _u=bu;function Mu(){return Mu=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},Mu.apply(this,arguments)}class Cu extends E().Component{static displayName="VictoryContainer";static role="container";static defaultProps={className:"VictoryContainer",portalComponent:E().createElement(tu,null),portalZIndex:99,responsive:!0,role:"img"};static contextType=_u;constructor(t){super(t),this.containerId=Zc()(t)&&void 0!==t.containerId?t.containerId:Jc()("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=>(ct(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:i,portalComponent:o,className:a,width:s,height:l,portalZIndex:c,responsive:u}=t,h=this.getChildren(t),d=u?{width:"100%",height:"100%"}:{width:s,height:l},f=Object.assign({pointerEvents:"none",touchAction:"none",position:"relative"},d),p=Object.assign({zIndex:c,position:"absolute",top:0,left:0},d),m=Object.assign({pointerEvents:"all"},d),y=Object.assign({overflow:"visible"},d),g={width:s,height:l,viewBox:n.viewBox,preserveAspectRatio:n.preserveAspectRatio,style:y};return E().createElement(nu.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},E().createElement("div",Mu({style:q()({},e,f),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),E().createElement("svg",Mu({},n,{style:m}),r?E().createElement("title",{id:this.getIdForElement("title")},r):null,i?E().createElement("desc",{id:this.getIdForElement("desc")},i):null,h),E().createElement("div",{style:p},E().cloneElement(o,{...g,ref:this.savePortalRef}))))}render(){const{width:t,height:n,responsive:e,events:r,title:i,desc:o,tabIndex:a,preserveAspectRatio:s,role:l}=this.props,c=e?this.props.style:K(this.props.style,["height","width"]),u=Vc(this.props),h=Object.assign({width:t,height:n,tabIndex:a,role:l,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[o&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:e?`0 0 ${t} ${n}`:void 0,preserveAspectRatio:e?s:void 0,...u},r);return this.renderContainer(this.props,h,c)}}const wu=t=>E().createElement("defs",null,E().createElement("clipPath",{id:t.clipId?.toString()},t.children));function Au(){return Au=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},Au.apply(this,arguments)}const Eu=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("circle",Au({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("circle",Au({},s,{ref:n}))}));function ku(){return ku=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},ku.apply(this,arguments)}const Su=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("rect",ku({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("rect",ku({},s,{ref:n}))}));class Pu extends E().Component{static displayName="VictoryClipContainer";static role="container";static defaultProps={circleComponent:E().createElement(Eu,null),rectComponent:E().createElement(Su,null),clipPathComponent:E().createElement(wu,null),groupComponent:E().createElement("g",null)};constructor(t){super(t),this.clipId=Zc()(t)&&void 0!==t.clipId?t.clipId:Jc()("victory-clip-")}calculateAttributes(t){const{polar:n,origin:e,clipWidth:r=0,clipHeight:i=0,translateX:o=0,translateY:a=0}=t,s=Z({padding:t.clipPadding}),l=t.radius||ot(t);return{x:(n?e.x:o)-s.left,y:(n?e.y:a)-s.top,width:Math.max((n?l:r)+s.left+s.right,0),height:Math.max((n?l:i)+s.top+s.bottom,0)}}renderClippedGroup(t,n){const e=Vc(t),{style:r,events:i,transform:o,children:a,className:s,groupComponent:l,tabIndex:c}=t,u=this.renderClipComponent(t,n),h=Object.assign({className:s,style:r,transform:o,key:`clipped-group-${n}`,clipPath:`url(#${n})`},i);return E().cloneElement(l,{...h,tabIndex:c,...e},[u,...E().Children.toArray(a)])}renderGroup(t){const{style:n,events:e,transform:r,children:i,className:o,groupComponent:a,tabIndex:s}=t;return E().cloneElement(a,Object.assign({className:o,style:n,transform:r,"aria-label":t["aria-label"],tabIndex:s},e),i)}renderClipComponent(t,n){const{polar:e,origin:r,clipWidth:i=0,clipHeight:o=0,translateX:a=0,translateY:s=0,circleComponent:l,rectComponent:c,clipPathComponent:u}=t,{top:h,bottom:d,left:f,right:p}=Z({padding:t.clipPadding});let m;if(e){const n=t.radius||ot(t),e={r:Math.max(n+f+p,n+h+d,0),cx:r.x-f,cy:r.y-h};m=E().cloneElement(l,e)}else{const t={x:a-f,y:s-h,width:Math.max(i+f+p,0),height:Math.max(o+h+d,0)};m=E().cloneElement(c,t)}return E().cloneElement(u,Object.assign({key:`clip-path-${n}`},t,{clipId:n}),m)}getClipValue(t,n){const e={x:t.clipWidth,y:t.clipHeight};if(void 0!==e[n])return e[n];const r=st(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=st(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"),i=q()({},this.props,{clipHeight:t,clipWidth:n,translateX:e,translateY:r});return this.renderClippedGroup(i,this.clipId)}}function Du(t){}class Ou extends E().Component{static displayName="VictoryPortal";static role="portal";static defaultProps={groupComponent:E().createElement("g",null)};static contextType=nu;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}:{},i=q()(r,e,K(this.props,["children","groupComponent"])),o=t&&E().cloneElement(t,i);return this.renderPortal(o)}}const Lu=t=>{const{children:n,desc:e,id:r,origin:i,tabIndex:o,title:a,...s}=t,l={id:nt(r,t)?.toString(),tabIndex:nt(o,t),...s};return E().createElement("text",l,a&&E().createElement("title",null,a),e&&E().createElement("desc",null,e),n)},Tu=t=>{const{desc:n,id:e,tabIndex:r,origin:i,...o}=t,a={id:nt(e,t)?.toString(),tabIndex:nt(r,t),...o};return E().createElement("tspan",a)},ju=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,ju(n)].join(" ")),ju(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const n in t)if(t.hasOwnProperty(n)){const e=t[n];i.push(`${n}(${e})`)}return i.join(" ").trim()};function $u(t){const n={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return t?n[t]:n.grayscale}var Nu=r(1594),zu=r.n(Nu);const Ru={"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}},Iu={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Wu={em:1,ex:.5},Bu={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Vu=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),Fu=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},Uu=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=e?Iu.hasOwnProperty(e)?r*Iu[e]:Wu.hasOwnProperty(e)?(n?r*n:r*Bu.fontSize)*Wu[e]:r:r||0,i},Hu=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=q()({},e,Bu);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Uu(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Uu(String(r.fontSize))})},qu=(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:Vu(t).reduce(((t,e,r)=>{const i=Hu(n,r),o=e.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,n),i=((t,n)=>{if(void 0===t||""===t||null===t)return 0;const e=Vu(t).map(((t,e)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=Hu(n,e),s=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>Ru[t]))||"Helvetica";return Ru[n]})(a),l=t.toString().split("").map((t=>t.charCodeAt(0)<s.widths.length?s.widths[t.charCodeAt(0)]:s.avg)).reduce(((t,n)=>n+t),0)*i;return l+o*Math.max(r-1,0)}));return Math.max(...e)})(t,n);return{width:e?Fu(i,r,e):i,height:1.05*(e?Fu(r,i,e):r)}},Gu=zu()((()=>{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})),Ku=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",Yu=zu()(((t,n)=>{let e=Gu();e.isConnected||(Gu.cache.clear?.(),e=Gu());const r=Vu(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=Hu(n,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),e.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=e.getBoundingClientRect();return e.innerHTML="",{width:n?.angle?Fu(o,i,n?.angle):o,height:n?.angle?Fu(i,o,n?.angle):i}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(Ku).join():Ku(n)}`)),Xu={impl:function(t,n,e){return void 0===e&&(e=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||e?qu(t,n):Yu(t,n)}},Zu=(t,n)=>Xu.impl(t,n),Qu={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Ju=(t,n)=>t.datum?X(t,t.datum)[n]:0,th=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return Qu.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?Qu.fontSize:t}return Qu.fontSize},nh=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},eh=t=>{const{backgroundStyle:n,backgroundPadding:e}=t;return Array.isArray(n)&&!j()(n)||Array.isArray(e)&&!j()(e)},rh=(t,n)=>{const{direction:e,textAnchor:r,x:i,dx:o}=t;if("rtl"===e)return i-n;switch(r){case"middle":return Math.round(i-n/2);case"end":return Math.round(i-n);default:return i+(o||0)}},ih=(t,n)=>{const{verticalAnchor:e,y:r,originalDy:i=0}=t,o=r+i;switch(e){case"start":return Math.floor(o);case"end":return Math.ceil(o-n);default:return Math.floor(o-n/2)}},oh=(t,n)=>eh(t)?((t,n)=>{const{dy:e,dx:r,transform:i,backgroundStyle:o,backgroundPadding:a,backgroundComponent:s,inline:l,y:c}=t,u=n.map(((t,i)=>{const o=nh(n,i-1),s=t.textSize,u=t.fontSize*t.lineHeight,h=Math.ceil(u),d=nh(a,i),f=nh(a,i-1),p=l&&r||0,m=i&&!l?o.fontSize*o.lineHeight+f.top+f.bottom:e-.5*u-(t.fontSize-t.capHeight);return{textHeight:h,labelSize:s,heightWithPadding:h+d.top+d.bottom,widthWithPadding:s.width+d.left+d.right+p,y:c,fontSize:t.fontSize,dy:m}}));return u.map(((n,e)=>{const r=rh(t,n.labelSize.width),h=u.slice(0,e+1).reduce(((t,n)=>t+n.dy),c),d=nh(a,e),f=n.heightWithPadding,p=l?((t,n,e)=>{const{textAnchor:r}=t,i=n.map((t=>t.widthWithPadding)),o=-i.reduce(((t,n)=>t+n),0)/2;switch(r){case"start":return i.reduce(((t,n,r)=>r<e?t+n:t),0);case"end":return i.reduce(((t,n,r)=>r>e?t-n:t),0);default:return i.reduce(((t,n,r)=>r===e?t+n/2:t+(r<e?n:0)),o)}})(t,u,e)+r-d.left:r,m=l?ih(t,f)-d.top:h,y={key:`tspan-background-${e}`,height:f,style:nh(o,e),width:n.widthWithPadding,transform:i,x:p-d.left,y:m};return E().cloneElement(s,q()({},s.props,y))}))})(t,n):((t,n)=>{const{dx:e=0,transform:r,backgroundComponent:i,backgroundStyle:o,inline:a,backgroundPadding:s,capHeight:l}=t,c=n.map((t=>t.textSize)),u=a?Math.max(...c.map((t=>t.height))):c.reduce(((t,e,r)=>{const i=r?0:l/2;return t+e.height*(n[r].lineHeight-i)}),0),h=a?c.reduce(((t,n,r)=>{const i=r?e:0;return t+n.width+i}),0):Math.max(...c.map((t=>t.width))),d=rh(t,h),f=ih(t,u),p={key:"background",height:u+s.top+s.bottom,style:o,transform:r,width:h+s.left+s.right,x:a?d-s.left:d+e-s.left,y:f};return E().cloneElement(i,q()({},i.props,p))})(t,n),ah=(t,n,e)=>{const{inline:r}=n,i=nh(t,e);return e&&!r?((t,n,e)=>{const r=nh(t,n),i=nh(t,n-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,l=r.fontSize-r.capHeight,c=o-i.fontSize/2+r.fontSize/2-o/2+a/2-l/2+s/2;return eh(e)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c})(t,e,n):r?0===e?i.backgroundPadding.top:void 0:i.backgroundPadding.top},sh={backgroundComponent:E().createElement(Su,null),groupComponent:E().createElement("g",null),direction:"inherit",textComponent:E().createElement(Lu,null),tspanComponent:E().createElement(Tu,null),capHeight:.71,lineHeight:1},lh=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>nt(t,n)));const e=nt(t,n);return null!=e?Array.isArray(e)?e:`${e}`.split("\n"):void 0})(t.text,t),e=((t,n)=>{if(n.disableInlineStyles){const e=et(t,n);return{fontSize:th(e)}}const e=t=>{const e=et(t?q()({},t,Qu):Qu,n);return Object.assign({},e,{fontSize:th(e)})};return Array.isArray(t)&&!j()(t)?t.map((t=>e(t))):e(t)})(t.style,Object.assign({},t,{text:n})),r=((t,n)=>{if(t)return Array.isArray(t)&&!j()(t)?t.map((t=>et(t,n))):et(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:e})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>Z({padding:nt(n,t)}))):Z({padding:nt(t.backgroundPadding,t)}))(Object.assign({},t,{text:n,style:e,backgroundStyle:r})),o=nt(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:e,text:n,id:o})})({...sh,...t});if(null===n.text||void 0===n.text)return null;const e=(t=>{const n=nt(t.ariaLabel,t),e=nh(t.style),r=(t=>{const n=nt(t.lineHeight,t);return Array.isArray(n)&&j()(n)?[1]:n})(t),i=t.direction?nt(t.direction,t):"inherit",o=t.textAnchor?nt(t.textAnchor,t):e.textAnchor||"start",a=t.verticalAnchor?nt(t.verticalAnchor,t):e.verticalAnchor||"middle",s=t.dx?nt(t.dx,t):0,l=((t,n,e)=>{const r=t.dy?nt(t.dy,t):0,i=t.inline?1:t.text.length,o=nt(t.capHeight,t),a=n?nt(n,t):"middle",s=[...Array(i).keys()].map((n=>nh(t.style,n).fontSize)),l=[...Array(i).keys()].map((t=>nh(e,t)));if("start"===a)return r+(o/2+l[0]/2)*s[0];if(t.inline)return"end"===a?r+(o/2-l[0]/2)*s[0]:r+o/2*s[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*l[0])*s[0]:r+(o/2+(.5-i/2)*l[0])*s[0];const c=[...Array(i).keys()].reduce(((t,n)=>t+(o/2+(.5-i)*l[n])*s[n]/i),0);return"end"===a?r+c:r+c/2+o/2*l[i-1]*s[i-1]})(t,a,r),c=void 0!==t.x?t.x:Ju(t,"x"),u=void 0!==t.y?t.y:Ju(t,"y"),h=((t,n,e)=>{const{polar:r}=t,i=nh(t.style),o=r?Ga(t):0,a=void 0===i.angle?nt(t.angle,t):i.angle,s=void 0===a?o:a,l=t.transform||i.transform,c=l&&nt(l,t);return c||s?ju(c,s&&{rotate:[s,n,e]}):void 0})(t,c,u);return Object.assign({},t,{ariaLabel:n,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:s,dy:l,originalDy:nt(t.dy,t),transform:h,x:c,y:u})})(n),{text:r,style:i,capHeight:o,backgroundPadding:a,lineHeight:s}=e,l=r.map(((t,n)=>{const e=nh(i,n),r=Uu(`${o}em`,e.fontSize),l=nh(s,n);return{style:e,fontSize:e.fontSize||Qu.fontSize,capHeight:r,text:t,textSize:Zu(t,e),lineHeight:l,backgroundPadding:nh(a,n)}})),c=((t,n)=>{const{ariaLabel:e,inline:r,className:i,title:o,events:a,direction:s,text:l,textAnchor:c,dx:u,dy:h,transform:d,x:f,y:p,desc:m,id:y,tabIndex:g,tspanComponent:x,textComponent:v}=t,b=Vc(t),_={"aria-label":e,key:"text",...a,direction:s,dx:u,x:f,y:p+h,transform:d,className:i,title:o,desc:nt(m,t),tabIndex:nt(g,t),id:y,...b},M=l.map(((e,i)=>{const o=n[i].style,a={key:`${y}-key-${i}`,x:r?void 0:f,dx:r?u+n[i].backgroundPadding.left:u,dy:ah(n,t,i),textAnchor:o.textAnchor||c,style:o,children:e};return E().cloneElement(x,a)}));return E().cloneElement(v,_,M)})(e,l);if(n.backgroundStyle){const t=[oh(e,l),c],r=E().cloneElement(n.groupComponent,{},t);return n.renderInPortal?E().createElement(Ou,null,r):r}return n.renderInPortal?E().createElement(Ou,null,c):c};lh.displayName="VictoryLabel",lh.role="label",lh.defaultStyles=Qu;const ch=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],uh="#252525",hh="#969696",dh={width:450,height:300,padding:50,colorScale:ch},fh={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:uh,stroke:"transparent"},ph=Object.assign({textAnchor:"middle"},fh),mh={area:Object.assign({style:{data:{fill:uh},labels:fh}},dh),axis:Object.assign({style:{axis:{fill:"transparent",stroke:uh,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},ph,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:fh}},dh),bar:Object.assign({style:{data:{fill:uh,padding:8,strokeWidth:0},labels:fh}},dh),boxplot:Object.assign({style:{max:{padding:8,stroke:uh,strokeWidth:1},maxLabels:Object.assign({},fh,{padding:3}),median:{padding:8,stroke:uh,strokeWidth:1},medianLabels:Object.assign({},fh,{padding:3}),min:{padding:8,stroke:uh,strokeWidth:1},minLabels:Object.assign({},fh,{padding:3}),q1:{padding:8,fill:hh},q1Labels:Object.assign({},fh,{padding:3}),q3:{padding:8,fill:hh},q3Labels:Object.assign({},fh,{padding:3})},boxWidth:20},dh),candlestick:Object.assign({style:{data:{stroke:uh,strokeWidth:1},labels:Object.assign({},fh,{padding:5})},candleColors:{positive:"#ffffff",negative:uh}},dh),chart:dh,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:uh,strokeWidth:2},labels:fh}},dh),group:Object.assign({colorScale:ch},dh),histogram:Object.assign({style:{data:{fill:hh,stroke:uh,strokeWidth:2},labels:fh}},dh),legend:{colorScale:ch,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:fh,title:Object.assign({},fh,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:uh,strokeWidth:2},labels:fh}},dh),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},fh,{padding:20})},colorScale:ch,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:uh,stroke:"transparent",strokeWidth:0},labels:fh}},dh),stack:Object.assign({colorScale:ch},dh),tooltip:{style:Object.assign({},fh,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:uh,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({},fh,{padding:5,pointerEvents:"none"}),flyout:{stroke:uh,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},dh)},yh=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],gh="#ECEFF1",xh="#90A4AE",vh="#455A64",bh="#212121",_h={width:350,height:350,padding:50},Mh={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:vh,stroke:"transparent",strokeWidth:0},Ch=Object.assign({textAnchor:"middle"},Mh),wh="round",Ah="round",Eh={grayscale:mh,material:{area:Object.assign({style:{data:{fill:bh},labels:Mh}},_h),axis:Object.assign({style:{axis:{fill:"transparent",stroke:xh,strokeWidth:2,strokeLinecap:wh,strokeLinejoin:Ah},axisLabel:Object.assign({},Ch,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:gh,strokeDasharray:"10, 5",strokeLinecap:wh,strokeLinejoin:Ah,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:xh,strokeWidth:1,strokeLinecap:wh,strokeLinejoin:Ah},tickLabels:Object.assign({},Mh,{fill:vh})}},_h),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:vh,padding:8,strokeWidth:0},labels:Mh}},_h),boxplot:Object.assign({style:{max:{padding:8,stroke:vh,strokeWidth:1},maxLabels:Object.assign({},Mh,{padding:3}),median:{padding:8,stroke:vh,strokeWidth:1},medianLabels:Object.assign({},Mh,{padding:3}),min:{padding:8,stroke:vh,strokeWidth:1},minLabels:Object.assign({},Mh,{padding:3}),q1:{padding:8,fill:vh},q1Labels:Object.assign({},Mh,{padding:3}),q3:{padding:8,fill:vh},q3Labels:Object.assign({},Mh,{padding:3})},boxWidth:20},_h),candlestick:Object.assign({style:{data:{stroke:vh},labels:Object.assign({},Mh,{padding:5})},candleColors:{positive:"#ffffff",negative:vh}},_h),chart:_h,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:vh,strokeWidth:2},labels:Mh}},_h),group:Object.assign({colorScale:yh},_h),histogram:Object.assign({style:{data:{fill:vh,stroke:bh,strokeWidth:2},labels:Mh}},_h),legend:{colorScale:yh,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Mh,title:Object.assign({},Mh,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:vh,strokeWidth:2},labels:Mh}},_h),pie:Object.assign({colorScale:yh,style:{data:{padding:8,stroke:gh,strokeWidth:1},labels:Object.assign({},Mh,{padding:20})}},_h),scatter:Object.assign({style:{data:{fill:vh,opacity:1,stroke:"transparent",strokeWidth:0},labels:Mh}},_h),stack:Object.assign({colorScale:yh},_h),tooltip:{style:Object.assign({},Mh,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:bh,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({},Mh,{padding:5,pointerEvents:"none"}),flyout:{stroke:bh,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},_h)}};function kh(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function Sh(){return{onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:t=>({_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0})}}}function Ph(){return{onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}}}var Dh=r(7491),Oh=r.n(Dh);const Lh=t=>+t;function Th(t){return t*t}function jh(t){return t*(2-t)}function $h(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Nh(t){return t*t*t}function zh(t){return--t*t*t+1}function Rh(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Ih=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),Wh=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),Bh=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),Vh=Math.PI,Fh=Vh/2;function Uh(t){return 1==+t?1:1-Math.cos(t*Fh)}function Hh(t){return Math.sin(t*Fh)}function qh(t){return(1-Math.cos(Vh*t))/2}function Gh(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Kh(t){return Gh(1-+t)}function Yh(t){return 1-Gh(t)}function Xh(t){return((t*=2)<=1?Gh(1-t):2-Gh(t-1))/2}function Zh(t){return 1-Math.sqrt(1-t*t)}function Qh(t){return Math.sqrt(1- --t*t)}function Jh(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var td=7.5625;function nd(t){return 1-ed(1-t)}function ed(t){return(t=+t)<.36363636363636365?td*t*t:t<.7272727272727273?td*(t-=.5454545454545454)*t+.75:t<.9090909090909091?td*(t-=.8181818181818182)*t+.9375:td*(t-=.9545454545454546)*t+.984375}function rd(t){return((t*=2)<=1?1-ed(1-t):ed(t-1)+1)/2}var id=1.70158,od=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(id),ad=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(id),sd=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(id),ld=2*Math.PI,cd=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=ld);function i(t){return n*Gh(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*ld)},i.period=function(e){return t(n,e)},i}(1,.3),ud=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=ld);function i(t){return 1-n*Gh(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*ld)},i.period=function(e){return t(n,e)},i}(1,.3),hd=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=ld);function i(t){return((t=2*t-1)<0?n*Gh(-t)*Math.sin((r-t)/e):2-n*Gh(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*ld)},i.period=function(e){return t(n,e)},i}(1,.3);const dd=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||W()(t)}return!1},fd=function(t,n,e){return void 0===e&&(e=0),function(r){return r<e?t:n}},pd=function(t,n){return function(e){return e>=1?n:function(){const r="function"==typeof t?t.apply(this,arguments):t,i="function"==typeof n?n.apply(this,arguments):n;return Gn(r,i)(e)}}},md=function(t,n){const e=(t,n)=>t!==n&&dd(t)&&dd(n)?"function"==typeof t||"function"==typeof n?pd(t,n):"object"==typeof t&&W()(t)||"object"==typeof n&&W()(n)?md(t,n):Gn(t,n):fd(t,n),r=t=>Array.isArray(t)?N()(t,"key"):t,i={},o={};let a,s=t,l=n;for(a in null!==s&&"object"==typeof s||(s={}),null!==l&&"object"==typeof l||(l={}),l)a in s?i[a]=e(r(s[a]),r(l[a])):o[a]=l[a];return function(t){for(a in i)o[a]=i[a](t);return o}},yd=1e3,gd=t=>{let{duration:n=yd,easing:e="quadInOut",delay:r=0,data:i,children:o,onEnd:a}=t;const[s,l]=E().useState({data:Array.isArray(i)?i[0]:i,animationInfo:{progress:0,animating:!1}}),c=E().useContext(_u).animationTimer,u=E().useRef(Array.isArray(i)?i.slice(1):[]),h=E().useRef(null),d=E().useRef(void 0),f=g[(p=e,`ease${p.charAt(0).toUpperCase()+p.slice(1)}`)];var p;E().useEffect((()=>(u.current.length&&m(),()=>{d.current?c.unsubscribe(d.current):c.stop()})),[]),E().useEffect((()=>{h.current&&s.animationInfo&&s.animationInfo.progress<1?l({data:h.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(c.unsubscribe(d.current),u.current=Array.isArray(i)?i:[i],m())}),[i]);const m=()=>{if(u.current.length){const t=u.current[0];h.current=function(t,n){return t!==n&&dd(t)&&dd(n)?"function"==typeof t||"function"==typeof n?pd(t,n):W()(t)||W()(n)?md(t,n):"string"==typeof t||"string"==typeof n?function(t,n){const e=t=>"string"==typeof t?t.replace(/,/g,""):t;return Gn(e(t),e(n))}(t,n):Gn(t,n):fd(t,n)}(s.data,t),r?setTimeout((()=>{d.current=c.subscribe(y,n)}),r):d.current=c.subscribe(y,n)}else a&&a()},y=t=>{if(!h.current)return;const e=n?t/n:1;if(e>=1)return l({data:h.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),d.current&&c.unsubscribe(d.current),u.current.shift(),void m();l({data:h.current(f(e)),animationInfo:{progress:e,animating:e<1}})};return o(s.data,s.animationInfo)};var xd=r(5346),vd=r.n(xd);function bd(t,n){return(t.key||n).toString()}function _d(t){return t.reduce(((t,n,e)=>(t[bd(n,e)]=n,t)),{})}function Md(t,n){let e=!1;const r=Object.keys(t).reduce(((t,r)=>(r in n||(e=!0,t[r]=!0),t)),{});return e&&r}function Cd(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function wd(t,n){let e=!1,r=!1;const i=(t,n)=>t.map(((o,a)=>o&&o.props&&o.props.children&&n[a]?i(E().Children.toArray(t[a].props.children),E().Children.toArray(n[a].props.children)):((t,n)=>{if(!n||t.type!==n.type)return{};const{entering:i,exiting:o}=function(t,n){const e=t&&_d(t),r=n&&_d(n);return{entering:e&&Md(r,e),exiting:r&&Md(e,r)}}(Cd(t),Cd(n))||{};return e=e||!!o,r=r||!!i,{entering:i||!1,exiting:o||!1}})(o,n[a]))),o=i(E().Children.toArray(t),E().Children.toArray(n));return{nodesWillExit:e,nodesWillEnter:r,childrenTransitions:o,nodesShouldEnter:!1}}function Ad(t,n,e){const r=n&&n.nodesWillExit,i=n&&n.nodesWillEnter,o=n&&n.nodesShouldEnter,a=n&&n.nodesShouldLoad,s=n&&n.nodesDoneLoad,l=n&&n.childrenTransitions||[],c={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},u=(t,n,r)=>a?function(t,n,r){const i=Object.assign({},t,{onEnd:()=>{e({nodesShouldLoad:!1,nodesDoneLoad:!0})}});let o=n;if(i&&i.onLoad&&!i.onLoad.duration)return{animate:t,data:n};const a=t.onLoad&&t.onLoad.after?t.onLoad.after:vd();return o=n.map(((t,e)=>Object.assign({},t,a(t,e,n)))),{animate:i,data:o}}(r,n):function(t,n,r,i){const o=Object.assign({},t,{onEnd:()=>{e({nodesDoneLoad:!0})}});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:o,data:r};const a=o.onLoad&&o.onLoad.before?o.onLoad.before:vd();return{animate:o,data:r.map(((t,n)=>Object.assign({},t,a(t,n,r)))),clipWidth:0}}(r,0,n),h=(t,n,r,i)=>function(t,n,r,i,o){const a=t&&t.onExit,s=Object.assign({},t,a);let l=r;if(i){t.onEnd=()=>{e({nodesWillExit:!1})};const n=t.onExit&&t.onExit.before?t.onExit.before:vd();l=r.map(((t,e)=>{const o=(t.key||e).toString();return i[o]?Object.assign({},t,n(t,e,r)):t}))}return{animate:s,data:l}}(i,0,r,t),d=(t,n,r,i)=>o?function(t,n,r,i){const o=t&&t.onEnter,a=Object.assign({},t,o);let s=n;if(r){a.onEnd=()=>{e({nodesWillEnter:!1})};const t=a.onEnter&&a.onEnter.after?a.onEnter.after:vd();s=n.map(((e,i)=>{const o=bd(e,i);return r[o]?Object.assign({},e,t(e,i,n)):e}))}return{animate:a,data:s}}(i,r,t):function(t,n,r,i,o){let a=t,s=r;if(i){a=Object.assign({},t,{onEnd:()=>{e({nodesShouldEnter:!0})}});const n=t.onEnter&&t.onEnter.before?t.onEnter.before:vd();s=r.map(((t,e)=>{const o=(t.key||e).toString();return i[o]?Object.assign({},t,n(t,e,r)):t}))}return{animate:a,data:s}}(i,0,r,t),f=function(t,n){const e=t.props.animate;if(!t.type)return{};const r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){const t=e[n]&&e[n].duration;return void 0!==t?t:r[n]&&r[n].duration}return{}};return function(e,a){const p=Cd(e)||[],m=q()({},t.animate,e.props.animate),y=e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;m.onExit=q()({},m.onExit,y&&y.onExit),m.onEnter=q()({},m.onEnter,y&&y.onEnter),m.onLoad=q()({},m.onLoad,y&&y.onLoad);const g=l[a]||l[0];if(!s){const t={duration:void 0!==c.load?c.load:f(e,"onLoad")};return u(0,p,Object.assign({},m,t))}if(r){const t=g&&g.exiting,n=void 0!==c.exit?c.exit:f(e,"onExit"),r=t?{duration:n}:{delay:n};return h(t,0,p,Object.assign({},m,r))}if(i){const t=g&&g.entering,n=void 0!==c.enter?c.enter:f(e,"onEnter"),r=void 0!==c.move?c.move:e.props.animate&&e.props.animate.duration,i={duration:o&&t?n:r};return d(t,0,p,Object.assign({},m,i))}return!n&&m&&m.onExit?function(t,n){const e=t.onEnter&&t.onEnter.after?t.onEnter.after:vd();return{data:n.map(((t,r)=>Object.assign({},t,e(t,r,n))))}}(m,p):{animate:m,data:p}}}function Ed(){return Ed=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},Ed.apply(this,arguments)}class kd extends E().Component{static displayName="VictoryTransition";static contextType=_u;constructor(t,n){super(t,n),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const e=this.props.children,r=e.props.polar;this.continuous=!r&&e.type&&!0===e.type.continuous,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(t){return Oh()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(()=>this.timer.resumeAnimation()))),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(t,n){const{animate:e}=t;if(!e)return{};if(e.parentState)return{oldProps:e.parentState.nodesWillExit?t:null,nextProps:n};const r=E().Children.toArray(t.children),i=E().Children.toArray(n.children),{nodesWillExit:o,nodesWillEnter:a,childrenTransitions:s,nodesShouldEnter:l}=wd(r,i);return{nodesWillExit:o,nodesWillEnter:a,childrenTransitions:s,nodesShouldEnter:l,oldProps:o?t:null,nextProps:n}}getDomainFromChildren(t,n){const e=t=>t.reduce(((t,r)=>{if(r.type&&ct(r.type.getDomain)){const e=r.props&&r.type.getDomain(r.props,n);return e?t.concat(e):t}return r.props&&r.props.children?t.concat(e(E().Children.toArray(r.props.children))):t}),[]),r=E().Children.toArray(t.children)[0],i=r.props||{},o=Array.isArray(i.domain)?i.domain:i.domain&&i.domain[n];if(!i.children&&o)return o;const a=e([r]);return 0===a.length?[0,1]:[Et(a),At(a)]}pickProps(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}pickDomainProps(t){const n=t.animate?.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}getClipWidth(t,n){const e=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==e?e:(()=>{const e=st(n.props,"x");return e?Math.abs(e[1]-e[0]):t.width})()}render(){const t=this.pickProps(),n=this.props.animate?.getTransitions?this.props.animate.getTransitions:Ad(t,this.state,(t=>this.setState(t))),e=E().Children.toArray(t.children)[0],r=n(e);this.transitionProps=r;const i={x:this.getDomainFromChildren(this.pickDomainProps(t),"x"),y:this.getDomainFromChildren(t,"y")},o=this.getClipWidth(t,e),a=q()({domain:i,clipWidth:o},r,e.props),s=(t.animationWhitelist||[]).concat(["clipWidth"]),l=s.length?U()(a,s):a;return E().createElement(gd,Ed({},a.animate,{data:l}),(t=>{if(e.props.groupComponent){const n=this.continuous?E().cloneElement(e.props.groupComponent,{clipWidth:t.clipWidth||0}):e.props.groupComponent;return E().cloneElement(e,q()({animate:null,animating:!0,groupComponent:n},t,a))}return E().cloneElement(e,q()({animate:null,animating:!0},t,a))}))}}var Sd=r(4912),Pd=r.n(Sd);const Dd=/^onGlobal(.*)$/;function Od(t,n,e,r){const i=t=>{const r=(()=>{const r=t.reduce(((t,e)=>void 0!==e.target?(Array.isArray(e.target)?e.target.includes(n):`${e.target}`==`${n}`)?t.concat(e):t:t.concat(e)),[]);return void 0!==e&&"parent"!==n?r.filter((t=>{const n=t.eventKey,r=t=>!t||`${t}`==`${e}`;return Array.isArray(n)?n.some((t=>r(t))):r(n)})):r})();return Array.isArray(r)&&r.reduce(((t,n)=>n?Object.assign(t,n.eventHandlers):t),{})},o=(()=>Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events)(),a=o&&ct(r)?r(i(o),n):void 0;if(!t.sharedEvents)return a;const s=t.sharedEvents.getEvents,l=t.sharedEvents.events&&s(i(t.sharedEvents.events),n);return Object.assign({},l,a)}function Ld(t,n,e,r){if(j()(t))return{};const i=r||this.baseProps,o=(t,n)=>{const{childName:e,target:r,key:o}=t,a="props"===n?i:this.state||{},s=null!=e&&a[e]?a[e]:a;return"parent"===o?s.parent:s[o]&&s[o][r]},a=(t,r)=>{const a="parent"===n?t.childName:t.childName||e,s=t.target||n,l=(n,e)=>{const r=this.state||{};if(!ct(t.mutation))return r;const a=o({childName:e,key:n,target:s},"props"),l=o({childName:e,key:n,target:s},"state"),c=t.mutation(Object.assign({},a,l),i),u=r[e]||{},h=t=>c?(t=>"parent"===s?Object.assign(t,{[n]:Object.assign(t[n]||{},c)}):Object.assign(t,{[n]:Object.assign(t[n]||{},{[s]:c})}))(t):(t=>(t[n]&&t[n][s]&&delete t[n][s],t[n]&&!Object.keys(t[n]).length&&delete t[n],t))(t);return null!=e?Object.assign(r,{[e]:h(u)}):h(r)},c=n=>{const e=(n=>"parent"===s?"parent":"all"===t.eventKey?i[n]?Object.keys(i[n]).filter((t=>"parent"!==t)):Object.keys(i).filter((t=>"parent"!==t)):void 0===t.eventKey&&"parent"===r?i[n]?Object.keys(i[n]):Object.keys(i):void 0!==t.eventKey?t.eventKey:r)(n);return Array.isArray(e)?e.reduce(((t,e)=>Object.assign(t,l(e,n))),{}):l(e,n)},u="all"===a?Object.keys(i).filter((t=>"parent"!==t)):a;return Array.isArray(u)?u.reduce(((t,n)=>Object.assign(t,c(n))),{}):c(u)},s=(n,e,r,i)=>{const o=t[i](n,e,r,this);if(!j()(o)){const t=(t=>{const n=t=>ct(t.callback)&&t.callback,e=(Array.isArray(t)?t.map((t=>n(t))):[n(t)]).filter((t=>!1!==t));return e.length?()=>e.forEach((t=>t())):void 0})(o);this.setState(((t,n)=>Array.isArray(t)?t.reduce(((t,e)=>Object.assign({},t,a(e,n))),{}):a(t,n))(o,r),t)}};return Object.keys(t).reduce(((t,n)=>(t[n]=s,t)),{})}function Td(t,n,e){return t?Object.keys(t).reduce(((r,i)=>(r[i]=r=>t[i](r,e,n,i),r)),{}):{}}function jd(t,n,e){const r=this.state||{};return e?r[e]&&r[e][t]&&r[e][t][n]:"parent"===t?r[t]&&r[t][n]||r[t]:r[t]&&r[t][n]}function $d(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),r.reduce(((r,i)=>{const o=e[i],a=Nd(t,n[i],e[i],i);return r[i]=a||o,Pd()(r,(t=>!j()(t)))}),{})}function Nd(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),Object.keys(n).reduce(((i,o)=>{const a=e[o]||{},s=n[o]||{};if("parent"===o){const n=zd(t,s,a,{eventKey:o,target:"parent"});i[o]=void 0!==n?Object.assign({},a,n):a}else{const n=V()(Object.keys(s).concat(Object.keys(a)));i[o]=n.reduce(((n,e)=>{const i={eventKey:o,target:e,childName:r},l=zd(t,s[e],a[e],i);return n[e]=void 0!==l?Object.assign({},a[e],l):a[e],Pd()(n,(t=>!j()(t)))}),{})}return Pd()(i,(t=>!j()(t)))}),{})}function zd(t,n,e,r){const i=(t,n)=>"string"==typeof t[n]?"all"===t[n]||t[n]===r[n]:!!Array.isArray(t[n])&&t[n].map((t=>`${t}`)).includes(r[n]);let o=Array.isArray(t)?t:[t];r.childName&&(o=t.filter((t=>i(t,"childName"))));const a=o.filter((t=>i(t,"target")));if(j()(a))return;const s=a.filter((t=>i(t,"eventKey")));return j()(s)?void 0:s.reduce(((t,r)=>{const i=(r&&ct(r.mutation)?r.mutation:()=>{})(Object.assign({},n,e));return Object.assign({},t,i)}),{})}function Rd(t,n){const e=Array.isArray(n)&&n.reduce(((n,e)=>{const r=t[e],i=r&&r.type&&r.type.defaultEvents,o=ct(i)?i(r.props):i;return Array.isArray(o)?n.concat(...o):n}),[]);return e&&e.length?e:void 0}function Id(t){const n=t.match(Dd);return n&&n[1]&&n[1].toLowerCase()}const Wd=t=>Pd()(t,((t,n)=>Dd.test(n))),Bd=t=>S()(t,((t,n)=>Dd.test(n))),Vd=t=>Object.assign(t,{nativeEvent:t}),Fd=t=>!lt(t._x)&&!lt(t._y),Ud=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function Hd(t,n){return void 0===n&&(n={}),class extends t{constructor(t){super(t),this.cacheValues(this.getCalculatedValues(t))}state={};getEventState=jd.bind(this);getScopedEvents=Ld.bind(this);getEvents=(t,n,e)=>Od.call(this,t,n,e,this.getScopedEvents);externalMutations=this.getExternalMutations(this.props);calculatedState=this.getStateChanges(this.props);globalEvents={};prevGlobalEventKeys=[];boundGlobalEvents={};shouldComponentUpdate(t){const n=this.getExternalMutations(t),e=this.props.animating||this.props.animate,r=!Oh()(n,this.externalMutations);if(e||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=n,this.applyExternalMutations(t,n),!0;const i=this.getStateChanges(t);return Oh()(this.calculatedState,i)?!Oh()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(t){const n=this.getStateChanges(t);this.calculatedState=n;const e=Object.keys(this.globalEvents);Mt(this.prevGlobalEventKeys,e).forEach((t=>this.removeGlobalListener(t))),Mt(e,this.prevGlobalEventKeys).forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=e}componentWillUnmount(){this.prevGlobalEventKeys.forEach((t=>this.removeGlobalListener(t)))}addGlobalListener(t){const n=n=>{const e=this.globalEvents[t];return e&&e(Vd(n))};this.boundGlobalEvents[t]=n,window.addEventListener(Id(t),n)}removeGlobalListener(t){window.removeEventListener(Id(t),this.boundGlobalEvents[t])}getStateChanges(t){if(!this.hasEvents)return{};const e=(t,n)=>{const e=q()({},this.getEventState(t,n),this.getSharedEventState(t,n));return j()(e)?void 0:e};return(n.components||Ud).map((n=>{if(t.standalone||"parent"!==n.name)return void 0!==n.index?e(n.index,n.name):this.dataKeys.map((t=>e(t,n.name))).filter(Boolean)})).filter(Boolean)}applyExternalMutations(t,n){if(!j()(n)){const e=t.externalEventMutations.reduce(((t,n)=>ct(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getCalculatedValues(n){const{sharedEvents:e}=n,r=Rd(n,t.expectedComponents),i=e&&ct(e.getEventState)?e.getEventState:()=>{},o=this.getBaseProps(n,i);return{componentEvents:r,getSharedEventState:i,baseProps:o,dataKeys:Object.keys(o).filter((t=>"parent"!==t)),hasEvents:n.events||n.sharedEvents||r,events:this.getAllEvents(n)}}getExternalMutations(t){const{sharedEvents:n,externalEventMutations:e}=t;return j()(e)||n?void 0:Nd(e,this.baseProps,this.state)}cacheValues(t){Object.keys(t).forEach((n=>{this[n]=t[n]}))}getBaseProps(n,e){const r=(e||this.getSharedEventState.bind(this))("parent","parent"),i=this.getEventState("parent","parent"),o=q()({},i,r),a=o.parentControlledProps,s=a?U()(o,a):{},l=q()({},s,n);return"function"==typeof t.getBaseProps?t.getBaseProps(l):{}}getAllEvents(t){return Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events}getComponentProps(n,e,r){const i=this.props.name||t.role,o=this.dataKeys&&this.dataKeys[r]||r,a=`${i}-${e}-${o}`,s=this.baseProps[o]&&this.baseProps[o][e]||this.baseProps[o];if(!s&&!this.hasEvents)return;const l=n&&"object"==typeof n&&"props"in n?n.props:void 0;if(this.hasEvents){const t=this.getEvents(this.props,e,o),n=q()({index:r,key:a},this.getEventState(o,e),this.getSharedEventState(o,e),l,s,{id:a}),i=q()({},Td(t,o,n),n.events);return Object.assign({},n,{events:i})}return q()({index:r,key:a},l,s,{id:a})}renderContainer(t,n){const e=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};return e.events&&(this.globalEvents=Wd(e.events),e.events=Bd(e.events)),E().cloneElement(t,e,n)}animateComponent(t,n){const e="object"==typeof t.animate&&t.animate?.animationWhitelist||n,r=this.constructor;return E().createElement(kd,{animate:t.animate,animationWhitelist:e},E().createElement(r,t))}renderContinuousData(t){const{dataComponent:n,labelComponent:e,groupComponent:r}=t,i=this.dataKeys.filter((t=>"all"!==t)),o=i.reduce(((t,n)=>{let r=t;const i=this.getComponentProps(e,"labels",n);return i&&void 0!==i.text&&null!==i.text&&(r=r.concat(E().cloneElement(e,i))),r}),[]),a=this.getComponentProps(n,"data","all"),s=[E().cloneElement(n,a),...o];return this.renderContainer(r,s)}renderData(t,n){void 0===n&&(n=Fd);const{dataComponent:e,labelComponent:r,groupComponent:i}=t,o=[...this.dataKeys.reduce(((t,r,i)=>{const o=this.getComponentProps(e,"data",i);return n(o.datum)&&t.push(E().cloneElement(e,o)),t}),[]),...this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text)return E().cloneElement(r,e)})).filter(Boolean)];return this.renderContainer(i,o)}}}const qd={width:450,height:300,padding:50,interpolation:"linear"};class Gd extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static defaultProps={containerComponent:E().createElement(Cu,null),dataComponent:E().createElement(Yc,null),groupComponent:E().createElement(Pu,null),labelComponent:E().createElement(lh,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Eh.grayscale};static displayName="VictoryArea";static role="area";static continuous=!0;static defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}};static defaultPolarTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:t=>({_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0})}};static getDomain=Ra;static getData=_a;static getBaseProps=t=>((t,n)=>{const e=ht(t,n,"area"),r=Object.assign({},e,(t=>{const{polar:n}=t,e=J(t,"area"),r=tt(t.style,e),i={x:st(t,"x"),y:st(t,"y")},o={x:Ra(t,"x"),y:Ra(t,"y")},a={x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},s=n?t.origin||at(t):void 0,l=((t,n)=>{let e=_a(t);e.length<2&&(e=[]);const r=t=>{const e="log"===ta(n[t])?1/Number.MAX_SAFE_INTEGER:0,r=n[t].domain(),i=Et(r),o=At(r);let a=e;return i<0&&o<=0?a=o:i>=0&&o>0&&(a=i),vt(r)?new Date(a):a};return e.map((t=>{const n=void 0!==t._y1?t._y1:t._y,e=void 0!==t._y0?t._y0:r("y"),i=void 0!==t._x1?t._x1:t._x,o=void 0!==t._x0?t._x0:r("x");return Object.assign({},t,{_y0:e,_y1:n,_x0:o,_x1:i})}))})(t,a);return{style:r,data:l,scale:a,domain:o,origin:s}})(e)),{data:i,domain:o,events:a,groupComponent:s,height:l,horizontal:c,interpolation:u,origin:h,padding:d,polar:f,scale:p,sharedEvents:m,standalone:y,style:g,theme:x,width:v,labels:b,name:_,disableInlineStyles:M}=r,C={parent:{style:g.parent,width:v,height:l,scale:p,data:i,domain:o,standalone:y,theme:x,polar:f,origin:h,padding:d,name:_,horizontal:c},all:{data:{horizontal:c,polar:f,origin:h,scale:p,data:i,interpolation:u,groupComponent:s,style:M?{}:g.data,disableInlineStyles:M}}};return i.reduce(((t,n,e)=>((null!=Ua(r,n,e)||b&&(a||m))&&(t[lt(n.eventKey)?e:n.eventKey]={labels:Ya(r,e)}),t)),C)})(t,qd);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Gd,e=ht(this.props,qd,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderContinuousData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Fc(i,e)}}const Kd=Hd(Gd,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]});function Yd(){return Yd=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},Yd.apply(this,arguments)}const Xd=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("line",Yd({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("line",Yd({},s,{ref:n}))})),Zd={lineComponent:E().createElement(Xd,null),role:"presentation",shapeRendering:"auto"},Qd=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({stroke:"black"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...Zd,...t});return E().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})};function Jd(t){return t}function tf(t){const{dependentAxis:n}=t;return n?"y":"x"}function nf(t,n){const e=n||Jd,r=t=>t.reduce(((t,n)=>n.type&&"axis"===n.type.role&&e(n)?t.concat(n):n.props&&n.props.children?t.concat(r(E().Children.toArray(n.props.children))):t),[]);return r(t)}function ef(t,n){return nf(t,(t=>t.type.getAxis(t.props)===n))[0]}function rf(t,n){const e=t=>t.reduce(((t,r)=>r.type&&"axis"===r.type.role&&(t=>"dependent"===n?t.props.dependentAxis:!t.props.dependentAxis)(r)||r.props&&r.props.children&&e(E().Children.toArray(r.props.children)).length>0?t.concat(r):t),[]);return e(t)}function of(t){const n=t=>{const n=Math.min(...t),e=Math.max(...t);return e<0?e:Math.max(0,n)};return{x:vt(t.x)?new Date(Math.min(...t.x)):n(t.x),y:vt(t.y)?new Date(Math.min(...t.y)):n(t.y)}}function af(t,n){return vt(n)?"positive":t<=0&&Math.max(...n)<=0?"negative":"positive"}function sf(t){return{top:!1,bottom:!1,left:!0,right:!0}[t.orientation||(t.dependentAxis?"left":"bottom")]}function lf(t){return void 0!==t.tickValues&&xt(t.tickValues)}function cf(t){const{tickValues:n,tickFormat:e}=t;if(0===n?.length)return[];const r=tf(t),i=t.stringMap&&t.stringMap[r];let o=n;i&&(o=function(t){const n=tf(t),e=t.stringMap&&t.stringMap[n],r=Array.isArray(t.categories)?t.categories:t.categories&&t.categories[n],i=r&&_t(r)?r.map((t=>e[t])):void 0,o=e&&Object.values(e);return i&&0!==i.length?i:o}(t)),n&&xt(n)&&(o=i?n.map((t=>i[t])):pt(1,n.length+1));const a=o?V()(o):(()=>{if(e&&Array.isArray(e))return xt(e)?e.map(((t,n)=>n)):e})();return Array.isArray(a)&&a.length?(n=>{const e=[],i=t.domain&&t.domain[r]||t.domain;if(n)return n.forEach(((t,n)=>{Array.isArray(i)?t>=Et(i)&&t<=At(i)&&e.push({value:t,index:n}):e.push({value:t,index:n})})),e})(a):void 0}function uf(t,n){const{tickFormat:e}=t,r=tf(t),i=t.stringMap&&t.stringMap[r];if(!e){const e=function(t){const{tickValues:n}=t,e=tf(t),r=t.stringMap&&t.stringMap[e],i=n&&!vt(n)?t=>t:void 0;if(!r)return lf(t)?(t,e)=>n[e]:i;const o=r&&G(r),a=["",...N()(Object.values(r),(t=>t)).map((t=>o[t])),""];return t=>a[t]}(t),r=n.tickFormat&&ct(n.tickFormat)?n.tickFormat():t=>t;return e||r}if(e&&Array.isArray(e)){const n=cf(t)?.map((t=>t.index)),r=e.filter(((t,e)=>n?.includes(e)));return(t,n)=>r[n]}if(e&&ct(e)){const n=(n,e,r)=>{const o=G(i),a=r.map((t=>o[t]));return t.tickFormat(o[n],e,a)};return i?n:e}return t=>t}function hf(t,n){if(!n||!Array.isArray(t)||t.length<=n)return t;const e=Math.floor(t.length/n);return t.filter(((t,n)=>n%e==0))}function df(t,n,e){void 0===e&&(e=!1);const{tickCount:r}=t,i=cf(t);if(0===i?.length)return[""];const o=i?i.map((t=>t.value)):void 0;if(o)return hf(o,r);if(n.ticks&&ct(n.ticks)){const t=r||5,i=n.ticks(t),o=hf(Array.isArray(i)&&i.length?i:n.domain(),r);if(e){const t=o.filter((t=>0!==t));return t.length?t:o}return o}return n.domain()}function ff(t,n){const{polar:e,startAngle:r=0,endAngle:i=360}=t,o=cf(t),a=o&&0!==o?.length?o.map((t=>t.value)):void 0;if(!Array.isArray(a))return;const s=Wa(t,n),l=Ia(t,n),c=lf(t),u=a.map((t=>Number(t))),h=c?1:Et(u),d=c?a.length:At(u),f=Na(void 0!==s?s:h,void 0!==l?l:d),p=e&&"x"===n&&360===Math.abs(r-i)?Ba(f,u):f;return sf(t)&&!e&&p.reverse(),p}function pf(t,n){const e=tf(t);if(!n||n===e)return Oa(ff)(t,e)}function mf(t,n){if(!t.axisValue)return;const e="x"===n?"y":"x",r=Zc()(t.scale)&&ct(t.scale[e])?t.scale[e]:void 0;if(!r)return;const i="x"===n?"y":"x",o=Zc()(t.stringMap)&&t.stringMap[i];return r(o&&"string"==typeof t.axisValue?o[t.axisValue]:t.axisValue)}function yf(t,n){if(!Zc()(t.theme))return ht(t,n,"axis");let e="axis";if(t.dependentAxis&&t.theme.dependentAxis?e="dependentAxis":!t.dependentAxis&&t.theme.independentAxis&&(e="independentAxis"),"axis"===e)return ht(t,n,"axis");const r=q()({},t.theme[e],t.theme.axis),i=Object.assign({},t.theme,{axis:r});return ht(Object.assign({},t,{theme:i}),n,"axis")}const gf={top:-1,left:-1,right:1,bottom:1},xf=t=>null!=t,vf=function(t,n){void 0===n&&(n={});const e=t.style||{};return{parent:q()(e.parent,n.parent,{height:"100%",width:"100%"}),axis:q()({},e.axis,n.axis),axisLabel:q()({},e.axisLabel,n.axisLabel),grid:q()({},e.grid,n.grid),ticks:q()({},e.ticks,n.ticks),tickLabels:q()({},e.tickLabels,n.tickLabels)}},bf=(t,n,e)=>{const{position:r,transform:i}=t;return{x1:i.x,y1:i.y,x2:i.x+r.x2,y2:i.y+r.y2,style:n,datum:e}},_f=(t,n,e,r,i)=>{const{position:o,transform:a}=t;return{style:n,x:a.x+o.x,y:a.y+o.y,verticalAnchor:e.verticalAnchor,textAnchor:e.textAnchor,angle:n.angle,text:i,datum:r}},Mf=(t,n,e)=>{const{edge:r,transform:i}=t;return{x1:i.x,y1:i.y,x2:r.x+i.x,y2:r.y+i.y,style:n,datum:e}},Cf=(t,n,e)=>{const r=n||"positive";return e?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[r][t]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[r][t]},wf=(t,n)=>t instanceof Date&&n instanceof Date?t.getTime()===n.getTime():t===n,Af=(t,n,e)=>{const{orientation:r,axis:i}=n,o=mf(t,i);return{top:{x:0,y:void 0!==o?o:e.y},bottom:{x:0,y:void 0!==o?o:t.height-e.y},left:{x:void 0!==o?o:e.x,y:0},right:{x:void 0!==o?o:t.width-e.x,y:0}}[r]},Ef=(t,n,e)=>{const{tickStyle:r,labelStyle:i}=t,o=r.size||0,a=o+(r.padding||0)+(i.padding||0),s=gf[n];return{x:e?s*a:0,x2:e?s*o:0,y:e?0:s*a,y2:e?0:s*o}},kf=(t,n,e)=>({x:e?n.x:t+n.x,y:e?t+n.y:n.y}),Sf=(t,n)=>{const{orientation:e,padding:r,isVertical:i}=n,o=-gf[e];return{x:i?o*(t.width-(r.left+r.right)):0,y:i?0:o*(t.height-(r.top+r.bottom))}},Pf=(t,n)=>{const{padding:e,orientation:r,crossAxis:i}=t,o="right"===r?e.right:e.left,a="top"===r?e.top:e.bottom;return{x:i?n.x-o:0,y:i?n.y-a:0}},Df=(t,n)=>{const e=yf(t,n),r=(t=>{const n=(t=>{const{theme:n,dependentAxis:e}=t,r=n&&n.axis&&n.axis.style,i=e?"dependentAxis":"independentAxis",o=n&&n[i]&&n[i].style;return r&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce(((t,n)=>(t[n]=q()({},o[n],r[n]),t)),{}):o||r})(t),e=vf(t,n),r=Z(t),i=((t,n)=>{const e=n.axisLabel||{};if(void 0!==e.padding&&null!==e.padding)return e.padding;const r=sf(t),i=e.fontSize||14;return t.label?i*(r?2.3:1.6):0})(t,e),o=lf(t)?t.tickValues:void 0,a=tf(t),s=pf(t),l=(t=>{const n=tf(t),e=((t,n)=>{const{orientation:e,horizontal:r}=t;return e?{top:"x",bottom:"x",left:"y",right:"y"}[e]:r?"x"===n?"y":"x":n})(t,n),r=Yo(t,n),i=t.domain&&t.domain[n]||pf(t)||r.domain();return r.range(st(t,e)),r.domain(i),r})(t),c="x"===a?s:void 0,u="y"===a?s:void 0,h="x"===a?l:void 0,d="y"===a?l:void 0,f=!(!1===t.crossAxis||!0===t.standalone),p=df(t,l,f),m=uf(t,l),y={x:st(t,"x"),y:st(t,"y")},g={x:t.domain&&t.domain.x?t.domain.x:c,y:t.domain&&t.domain.y?t.domain.y:u},x={x:t.domain&&t.domain.x?Yo(t,"x").domain(t.domain.x).range(t.horizontal?y.y:y.x):h,y:t.domain&&t.domain.y?Yo(t,"y").domain(t.domain.y).range(t.horizontal?y.x:y.y):d},v=g.x&&g.y?of(g):void 0,b=v?{x:af(v.x,g.x),y:af(v.y,g.y)}:void 0,_=b?{x:Cf("x",b.y,t.horizontal),y:Cf("y",b.x,t.horizontal)}:void 0,M=_?t.orientation||_[a]:(t=>{if(t.orientation)return t.orientation;const n={dependent:t.horizontal?"bottom":"left",independent:t.horizontal?"left":"bottom"};return t.dependentAxis?n.dependent:n.independent})(t),C=sf(Object.assign({},t,{orientation:M})),w=((t,n)=>{const e={top:"end",left:"end",right:"start",bottom:"start"}[t];return{textAnchor:n?e:"middle",verticalAnchor:n?"middle":e}})(M,C);return{anchors:w,axis:a,crossAxis:f,domain:g,isVertical:C,labelPadding:i,orientation:M,orientations:_,origin:v,padding:r,scale:x,stringTicks:o,style:e,tickFormat:m,ticks:p}})(e),{axis:i,style:o,orientation:a,isVertical:s,scale:l,ticks:c,tickFormat:u,anchors:h,domain:d,stringTicks:f}=r,p="x"===i?"y":"x",{width:m,height:y,standalone:g,theme:x,polar:v,padding:b,horizontal:_}=e,{globalTransform:M,gridOffset:C,gridEdge:w}=((t,n)=>{let e;return e=n.domain.x&&n.domain.y?t.horizontal?((t,n)=>{const{scale:e,origin:r,orientation:i,orientations:o,domain:a,padding:s}=n,{top:l,bottom:c,left:u,right:h}=s,d="bottom"===i||"top"===i?i:o.x,f="left"===i||"right"===i?i:o.y,p={x:"bottom"===d?c:l,y:"left"===f?u:h},m="left"===f?0:t.width,y="bottom"===d?t.height:0,g=wf(r.x,a.x[0])||wf(r.x,a.x[1])?0:e.x(r.x),x=wf(r.y,a.y[0])||wf(r.y,a.y[1])?0:e.y(r.y),v=g?Math.abs(y-g):p.x,b=x?Math.abs(m-x):p.y;return{x:xf(t.offsetX)?t.offsetX:b,y:xf(t.offsetY)?t.offsetY:v}})(t,n):((t,n)=>{const{scale:e,origin:r,orientation:i,orientations:o,domain:a,padding:s}=n,{top:l,bottom:c,left:u,right:h}=s,d="bottom"===i||"top"===i?i:o.x,f="left"===i||"right"===i?i:o.y,p={x:"left"===f?u:h,y:"bottom"===d?c:l},m="left"===f?0:t.width,y="bottom"===d?t.height:0,g=wf(r.x,a.x[0])||wf(r.x,a.x[1])?0:e.x(r.x),x=wf(r.y,a.y[0])||wf(r.y,a.y[1])?0:e.y(r.y),v=g?Math.abs(m-g):p.x,b=x?Math.abs(y-x):p.y;return{x:xf(t.offsetX)?t.offsetX:v,y:xf(t.offsetY)?t.offsetY:b}})(t,n):((t,n)=>{const{style:e,scale:r,orientation:i,padding:o,axis:a,ticks:s,stringTicks:l,isVertical:c,labelPadding:u}=n,{polar:h,horizontal:d}=t,f={scale:{[a]:r},polar:h,horizontal:d,ticks:s,stringTicks:l},p="right"===i?o.right:o.left,m="top"===i?o.top:o.bottom,y=null!==t.offsetX&&void 0!==t.offsetX?t.offsetX:p,g=null!==t.offsetY&&void 0!==t.offsetY?t.offsetY:m,x=e.axisLabel.fontSize||14,v=s.map(((n,r)=>{const i=l?t.tickValues[n-1]:n;return et(e.ticks,Object.assign({},f,{tick:i,index:r})).size||0})),b=x+2*Math.max(...v)+u,_=1.2*x;return{x:null!=y?y:c?b:_,y:null!=g?g:c?_:b}})(t,n),{globalTransform:Af(t,n,e),gridOffset:Pf(n,e),gridEdge:Sf(t,n)}})(e,r),A={scale:{[i]:l[i]},polar:v,horizontal:_,ticks:c,stringTicks:f},E=((t,n,e)=>{const{style:r,padding:i,isVertical:o}=n,{width:a,height:s}=t;return{style:r.axis,x1:o?e.x:i.left+e.x,x2:o?e.x:a-i.right+e.x,y1:o?i.top+e.y:e.y,y2:o?s-i.bottom+e.y:e.y}})(e,r,M),k=((t,n,e)=>{const{style:r,orientation:i,padding:o,labelPadding:a,isVertical:s}=n,l=gf[i],c=o.left+o.right,u=o.top+o.bottom,h=l<0?"end":"start",d=r.axisLabel,f=s?-90:0;return{x:s?e.x+l*a:(t.width-c)/2+o.left+e.x,y:s?(t.height-u)/2+o.top+e.y:l*a+e.y,verticalAnchor:d.verticalAnchor||h,textAnchor:d.textAnchor||"middle",angle:void 0===d.angle?f:d.angle,style:d,text:t.label}})(e,r,M),S={parent:Object.assign({style:o.parent,ticks:c,standalone:g,theme:x,width:m,height:y,padding:b,domain:d},A)},P={dimension:p,range:{[p]:st(e,p)},scale:e.scale&&e.scale[p]?{[p]:e.scale[p]}:void 0};return c.reduce(((t,n,e)=>{const r=f?f[e]:n,d=u(n,e,c),p=((t,n)=>({tickStyle:et(t.ticks,n),labelStyle:et(t.tickLabels,n),gridStyle:et(t.grid,n)}))(o,Object.assign({},A,{tick:r,tickValue:n,index:e,text:d})),m={position:Ef(p,a,s),transform:kf(l[i]?.(n),M,s)},y={edge:w,transform:{x:s?-C.x+M.x:l[i]?.(n)+M.x,y:s?l[i]?.(n)+M.y:C.y+M.y}};return t[e]={axis:Object.assign({dimension:i},A,E),axisLabel:Object.assign({},A,k),ticks:Object.assign({},A,bf(m,p.tickStyle,n)),tickLabels:Object.assign({},A,_f(m,p.labelStyle,h,n,d)),grid:Object.assign({},A,P,Mf(y,p.gridStyle,n))},t}),S)},Of={width:450,height:300,padding:50};class Lf extends E().Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:E().createElement(Qd,null),axisLabelComponent:E().createElement(lh,null),tickLabelComponent:E().createElement(lh,null),tickComponent:E().createElement(Qd,null),gridComponent:E().createElement(Qd,null),standalone:!0,theme:Eh.grayscale,containerComponent:E().createElement(Cu,null),groupComponent:E().createElement("g",{role:"presentation"}),fixLabelOverlap:!1};static getDomain=pf;static getAxis=tf;static getStyles=t=>vf(t);static getBaseProps=t=>Df(t,Of);static expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];renderLine(t){const{axisComponent:n}=t,e=this.getComponentProps(n,"axis",0);return E().cloneElement(n,e)}renderLabel(t){const{axisLabelComponent:n,label:e}=t;if(!e)return null;const r=this.getComponentProps(n,"axisLabel",0);return E().cloneElement(n,r)}renderGridAndTicks(t){const{tickComponent:n,tickLabelComponent:e,gridComponent:r,name:i}=t,o=t=>{const{style:n={},events:e={}}=t;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!j()(e)};return this.dataKeys.map(((a,s)=>{const l=this.getComponentProps(n,"ticks",s),c=E().cloneElement(n,l),u=o(c.props)?c:void 0,h=this.getComponentProps(r,"grid",s),d=E().cloneElement(r,h),f=o(d.props)?d:void 0,p=this.getComponentProps(e,"tickLabels",s),m=[f,u,E().cloneElement(e,p)].filter(Boolean);return E().cloneElement(t.groupComponent,{key:`${i}-tick-group-${a}`},m)}))}fixLabelOverlap(t,n){const e=sf(n),r=e?n.height:n.width,i=t=>t.type&&"label"===t.type.role,o=t.map((t=>t.props.children)).reduce(((t,n)=>t.concat(n)),[]).filter(i).map((t=>t.props)).reduce(((t,n)=>{const r=(t=>"object"==typeof t?Object.assign({},{top:0,right:0,bottom:0,left:0},t):{top:t,right:t,bottom:t,left:t})(n.style.padding),i=Zu(n.text,{angle:n.angle,fontSize:n.style.fontSize,letterSpacing:n.style.letterSpacing,fontFamily:n.style.fontFamily});return t+(e?i.height+r.top+r.bottom:i.width+r.right+r.left)}),0),a=Math.floor(r*t.length/o),s=Math.ceil(t.length/a)||1,l=t=>t.props.children.filter(i).reduce(((t,n)=>(e?n.props.y:n.props.x)||0),0),c=t.sort(((t,n)=>e?l(n)-l(t):l(t)-l(n)));return c.filter(((t,n)=>n%s==0))}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=Tf,n=yf(this.props,Of),e=Vc(this.props);if(this.shouldAnimate())return this.animateComponent(n,t);const r=this.renderGridAndTicks(n),i=n.fixLabelOverlap?this.fixLabelOverlap(r,n):r,o=[this.renderLine(n),this.renderLabel(n),...i],a=E().cloneElement(n.containerComponent,e);return n.standalone?this.renderContainer(a,o):E().cloneElement(n.groupComponent,e,o)}}const Tf=Hd(Lf,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),jf=(t,n)=>{const e=e=>{let r="log"===ta(t.scale[e])?1/Number.MAX_SAFE_INTEGER:0;const i=Et(t.domain[e]),o=At(t.domain[e]);return i<0&&o<=0?r=o:i>=0&&o>0&&(r=i),n[`_${e}`]instanceof Date?new Date(r):r},r=void 0!==n._y0?n._y0:e("y"),i=void 0!==n._x0?n._x0:e("x");return X(t,Object.assign({},n,{_y0:r,_x0:i}))},$f=(t,n)=>{const{scale:e,data:r,style:i}=n;if(t)return nt(t,n);if(i.width)return i.width;const o=e.x.range(),a=Math.abs(o[1]-o[0]),s=r.length+2,l=(n.barRatio||.5)*(r.length<2?8:a/s);return Math.max(1,l)},Nf=(t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?function(t){return W()(t)}(t)?((t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=(r,i)=>{lt(t[r])?lt(t[i])||(e[r]=nt(t[i],n)):e[r]=nt(t[r],n)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),e})(t,n):(e.topLeft=nt(t,n),e.topRight=nt(t,n),e):e},zf=function(t,n){if(void 0===t&&(t={}),n.disableInlineStyles)return{};const e={fill:"black",stroke:t.fill||"black"};return et(Object.assign(e,t),n)},Rf=(t,n)=>({x:t,y:n,distance(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add(t){return Rf(this.x+t.x,this.y+t.y)},subtract(t){return Rf(this.x-t.x,this.y-t.y)},scalarMult(t){return Rf(this.x*t,this.y*t)},scalarDivide(t){if(0===t)throw new Error("Division by 0 error");return Rf(this.x/t,this.y/t)},equals(t){return this.x===t.x&&this.y===t.y}}),If=(t,n)=>({center:t,radius:n,hasIntersection(t){const n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);return!(o>r+i||o<Math.abs(r-i))},equals(t){const n=this.center,e=t.center;return this.radius===t.radius&&n.equals(e)},intersection(t){const n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);if(!this.hasIntersection(t)||this.equals(t))return[];const a=(Math.pow(r,2)-Math.pow(i,2)+Math.pow(o,2))/(2*o),s=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),l=n.add(e.subtract(n).scalarMult(a).scalarDivide(o)),{x:c,y:u}=n,{x:h,y:d}=e,{x:f,y:p}=l,m=[Rf(f-s*(d-u)/o,p+s*(h-c)/o),Rf(f+s*(d-u)/o,p-s*(h-c)/o)];return m.sort(((t,n)=>t.x-n.x)),m},solveX(t){const n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-n,this.center.x+n]},solveY(t){const n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-n,this.center.y+n]}}),Wf=(t,n)=>{const{x:e,x0:r,y:i,y0:o,horizontal:a}=t,s=t.alignment||"middle",l="middle"===s?n/2:n,c=a?-1:1;return a?{x0:r,x1:e,y0:"start"===s?i:i-c*l,y1:"end"===s?i:i+c*l}:{x0:"start"===s?e:e-c*l,x1:"end"===s?e:e+c*l,y0:o,y1:i}},Bf=(t,n)=>{const{data:e,scale:r}=t,i=void 0===e[n]._x1?"_x":"_x1";return r.x(e[n][i])},Vf=t=>-1*t+Math.PI/2,Ff=(t,n)=>{const{getPath:e}=t;if("function"==typeof e)return e({...t,...Wf(t,n)})},Uf=(t,n,e)=>{const r=`${n.topLeft} ${n.topLeft} ${e}`,i=`${n.topRight} ${n.topRight} ${e}`;return`${["M",`A ${n.bottomLeft} ${n.bottomLeft} ${e},`,"L",`A ${r},`,"L",`A ${i},`,"L",`A ${n.bottomRight} ${n.bottomRight} ${e},`].reduce(((n,e,r)=>`${n}${e} ${t[r].x}, ${t[r].y} \n`),"")} z`},Hf=(t,n,e)=>{const r=Wf(t,n),i=r.y0>r.y1?1:-1,o=i>0?"0 0 1":"0 0 0",a=((t,n,e)=>{const{x0:r,x1:i,y0:o,y1:a}=t,s=t=>{const s="Left"===t,l=s?1:-1,c=s?r:i;let u={x:c+l*e[`bottom${t}`],y:o},h={x:c,y:o-n*e[`bottom${t}`]},d={x:c,y:a+n*e[`top${t}`]},f={x:c+l*e[`top${t}`],y:a};if(1===n?o-e[`bottom${t}`]<a+e[`top${t}`]:o+e[`bottom${t}`]>a-e[`top${t}`]){const r=Rf(c+l*e[`top${t}`],a+n*e[`top${t}`]),i=If(r,e[`top${t}`]),p=Rf(c+l*e[`bottom${t}`],o-n*e[`bottom${t}`]),m=If(p,e[`bottom${t}`]),y=i.intersection(m);if(y.length>0){const t=y[s?0:1];h={x:t.x,y:t.y},d={x:t.x,y:t.y}}else if(e[`top${t}`]>e[`bottom${t}`]){const t=i.solveX(o)[s?0:1];u={x:t,y:o},h={x:t,y:o},d={x:t,y:o}}else{const t=m.solveX(a)[s?0:1];h={x:t,y:a},d={x:t,y:a},f={x:t,y:a}}}const p=[u,h,d,f];return s?p:p.reverse()};return s("Left").concat(s("Right"))})(r,i,e);return Uf(a,e,o)},qf=(t,n,e)=>{const r=Wf(t,n),i=r.x0<r.x1?1:-1,o={topRight:i>0?e.topLeft:e.bottomLeft,bottomRight:i>0?e.topRight:e.bottomRight,bottomLeft:i>0?e.bottomRight:e.topRight,topLeft:i>0?e.bottomLeft:e.topLeft},a=((t,n,e)=>{const{y0:r,y1:i}=t,o=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,s=t=>{const s="top"===t,l=s?-1:1,c=s?i:r;let u={x:o,y:c-l*e[`${t}Left`]},h={x:o+e[`${t}Left`],y:c},d={x:a-e[`${t}Right`],y:c},f={x:a,y:c-l*e[`${t}Right`]};if(h.x>d.x){const r=Rf(o+e[`${t}Left`],c-l*e[`${t}Left`]),i=If(r,e[`${t}Left`]),p=Rf(a-e[`${t}Right`],c-l*e[`${t}Right`]),m=If(p,e[`${t}Right`]),y=i.intersection(m);if(y.length>0){const t=y[n>0?1:0];h={x:t.x,y:t.y},d={x:t.x,y:t.y}}else if(e[`${t}Right`]>e[`${t}Left`]){const t=m.solveY(o)[s?0:1];u={x:o,y:t},h={x:o,y:t},d={x:o,y:t}}else{const t=i.solveY(a)[s?0:1];f={x:a,y:t},d={x:a,y:t},h={x:a,y:t}}}return[u,h,d,f]},l=s("top"),c=s("bottom");return[c[1],c[0],...l,c[3],c[2]]})(r,i,o);return Uf(a,o,"0 0 1")},Gf=(t,n)=>{const{datum:e,scale:r,index:i,alignment:o,style:a}=t,s=r.y(e._y0||0),l=r.y(void 0!==e._y1?e._y1:e._y),c=r.x(void 0!==e._x1?e._x1:e._x);let u,h;if(a.width){const n=((t,n)=>{const{scale:e}=t,r=e.y.range(),i=Math.max(...r),o=Math.abs(e.x.range()[1]-e.x.range()[0]);return n/(2*Math.PI*i)*o})(t,a.width),e="middle"===o?n/2:n;u="start"===o?c:c-e,h="end"===o?c:c+e}else u=((t,n)=>{const{data:e,scale:r,alignment:i}=t,o=Bf(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=0===n?Bf(t,e.length-1)-2*Math.PI:Bf(t,n-1);return 0===n&&a<2*Math.PI?r.x.range()[0]:"start"===i||"end"===i?"start"===i?s:o:(o+s)/2})(t,Number(i)),h=((t,n)=>{const{data:e,scale:r,alignment:i}=t,o=Bf(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=r.x.range()[1]===2*Math.PI?Bf(t,0)+2*Math.PI:r.x.range()[1],l=n===e.length-1?Bf(t,0)+2*Math.PI:Bf(t,n+1);return n===e.length-1&&a<2*Math.PI?s:"start"===i||"end"===i?"start"===i?o:l:(o+l)/2})(t,Number(i));const d=t=>Rs().innerRadius(s).outerRadius(l).startAngle(Vf(u)).endAngle(Vf(h)).cornerRadius(n[t])(),f=t=>{const n=d(`${t}Right`),e=n.match(/[A-Z]/g)||[],r=n.split(/[A-Z]/).slice(1),i=e.indexOf("L"),o=d(`${t}Left`),a=o.match(/[A-Z]/g)||[],s=o.split(/[A-Z]/).slice(1),l=a.indexOf("L");return{rightMoves:e,rightCoords:r,rightMiddle:i,leftMoves:a,leftCoords:s,leftMiddle:l}};return`${[...(()=>{const{topRight:t,topLeft:e}=n,r=l*Math.abs(h-u),{rightMoves:i,rightCoords:o,rightMiddle:a,leftMoves:s,leftCoords:c,leftMiddle:d}=f("top");let p,m;if(t===e||r<2*t+2*e)p=t>e?i:s,m=t>e?o:c;else{const n=t=>t<3,r=e>t&&n(a)?1:2;let l;if(t>e){const t=n(a)?d:d-2;l=n(d)?d-1:t}else{const t=n(d)?1:2;l=n(a)?t:d-2}p=[...i.slice(0,r),...s.slice(l)],m=[...o.slice(0,r),...c.slice(l)]}const y=p.indexOf("L"),g=p.slice(0,y),x=m.slice(0,y);return g.map(((t,n)=>({command:t,coords:x[n].split(",")})))})(),...(()=>{const{bottomRight:t,bottomLeft:e}=n,r=s*Math.abs(h-u),{rightMoves:i,rightCoords:o,rightMiddle:a,leftMoves:l,leftCoords:c,leftMiddle:d}=f("bottom");let p,m;if(t===e||r<2*t+2*e)p=t>e?i:l,m=t>e?o:c;else{const n=(t,n)=>t.length-n<4,r=(t>e?n(i,a):n(l,d))?-1:-3;p=[...l.slice(0,d+2),...i.slice(r)],m=[...c.slice(0,d+2),...o.slice(r)]}const y=p.indexOf("L"),g=p.slice(y,-1),x=m.slice(y,-1);return g.map(((t,n)=>({command:t,coords:x[n].split(",")})))})()].reduce(((t,n)=>`${t}${n.command} ${n.coords.join()}`),"")} z`},Kf=(t,n,e)=>t.getPath?Ff(t,n):t.horizontal?qf(t,n,e):Hf(t,n,e),Yf=(t,n)=>Gf(t,n),Xf={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Zf=(0,A.forwardRef)((function(t,n){const e=(t=>{const n=zf(t.style,t),e=$f(t.barWidth,Object.assign({},t,{style:n})),r=Nf(t.cornerRadius,Object.assign({},t,{style:n,barWidth:e})),i=nt(t.ariaLabel,t),o=nt(t.desc,t),a=nt(t.id,t),s=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:i,style:n,barWidth:e,cornerRadius:r,desc:o,id:a,tabIndex:s})})({...Xf,...t}),{polar:r,origin:i,style:o,barWidth:a,cornerRadius:s}=e,l=r?Yf(e,s):Kf(e,a,s),c=r&&i?`translate(${i.x}, ${i.y})`:void 0;return e.pathComponent?E().cloneElement(e.pathComponent,{...e.events,"aria-label":e.ariaLabel,style:o,d:l,className:e.className,clipPath:e.clipPath,desc:e.desc,index:e.index,role:e.role,shapeRendering:e.shapeRendering,transform:e.transform||c,tabIndex:e.tabIndex,ref:n}):null})),Qf={width:450,height:300,padding:50},Jf=[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}];class tp extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryBar";static role="bar";static defaultTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:()=>({_y:0,yOffset:0})},onEnter:{duration:500,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})}};static defaultProps={containerComponent:E().createElement(Cu,null),data:Jf,dataComponent:E().createElement(Zf,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(lh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Eh.grayscale};static getDomain=Ra;static getData=_a;static getBaseProps=t=>((t,n)=>{const e=ht(t,n,"bar"),r=Object.assign({},e,(t=>{const{polar:n}=t,e=J(t,"bar"),r=t.disableInlineStyles?{}:tt(t.style,e),i=t.range||{x:st(t,"x"),y:st(t,"y")},o={x:Ra(t,"x"),y:Ra(t,"y")},a={x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},s=n?t.origin||at(t):void 0;let l=_a(t);return l=ma(l,o,0),{style:r,data:l,scale:a,domain:o,origin:s}})(e)),{alignment:i,barRatio:o,cornerRadius:a,data:s,disableInlineStyles:l,domain:c,events:u,height:h,horizontal:d,origin:f,padding:p,polar:m,scale:y,sharedEvents:g,standalone:x,style:v,theme:b,width:_,labels:M,name:C,barWidth:w,getPath:A}=r,E={parent:{horizontal:d,domain:c,scale:y,width:_,height:h,data:s,standalone:x,name:C,theme:b,polar:m,origin:f,padding:p,style:v.parent}};return s.reduce(((t,n,e)=>{const c=lt(n.eventKey)?e:n.eventKey,{x:p,y:x,y0:b,x0:C}=jf(r,n),E={alignment:i,barRatio:o,barWidth:w,cornerRadius:a,data:s,datum:n,disableInlineStyles:l,getPath:A,horizontal:d,index:e,polar:m,origin:f,scale:y,style:v.data,width:_,height:h,x:p,y:x,y0:b,x0:C};return t[c]={data:E},(null!=Ua(r,n,e)||M&&(u||g))&&(t[c].labels=Ya(r,e)),t}),E)})(t,Qf);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=np,e=ht(this.props,Qf,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Fc(i,e)}}const np=Hd(tp),ep={rectComponent:E().createElement(Su,null),role:"presentation",shapeRendering:"auto"},rp=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({fill:"none"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...ep,...t});return E().cloneElement(n.rectComponent,{...n.events,"aria-label":n.ariaLabel,style:n.style,desc:n.desc,tabIndex:n.tabIndex,transform:n.transform,className:n.className,role:n.role,shapeRendering:n.shapeRendering,x:n.x,y:n.y,width:n.width,height:n.height,clipPath:n.clipPath})},ip={groupComponent:E().createElement("g",null),lineComponent:E().createElement(Xd,null),role:"presentation",shapeRendering:"auto"},op=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(t.style,t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...ip,...t}),{ariaLabel:e,groupComponent:r,lineComponent:i,events:o,className:a,majorWhisker:s,minorWhisker:l,transform:c,clipPath:u,role:h,shapeRendering:d,style:f,desc:p,tabIndex:m}=n,y={...o,style:f,desc:p,tabIndex:m,className:a,transform:c,clipPath:u,role:h,shapeRendering:d};return E().cloneElement(r,{},[E().cloneElement(i,Object.assign({key:"major-whisker","aria-label":e},y,s)),E().cloneElement(i,Object.assign({key:"minor-whisker","aria-label":e},y,l))])};var ap=r(9056),sp=r.n(ap);const lp=["max","min","median","q1","q3"],cp=t=>Number.isNaN(t)?null:t,up=t=>{const n=t.map((t=>t._y)),e={_q1:cp(Ye(n,.25)),_q3:cp(Ye(n,.75)),_min:cp(He(n)),_median:cp(Ye(n,.5)),_max:cp(Ue(n))};return Object.assign({},t[0],e,{_y:t[0]._y})},hp=t=>{const n=lp.concat("x","y"),e=xa(t.data,t,n);return e.length?(t=>{const n=(t=>{if(t.every((t=>lp.every((n=>void 0!==t[`_${n}`]))))){const n=t.map((t=>t._x));if(!V()(n).length===n.length)throw new Error("\n data prop may only take an array of objects with a unique\n independent variable. Make sure your x values are distinct.\n ");return!0}return!1})(t);if(n)return t;{const n=t.every((t=>Array.isArray(t._x))),e=t.every((t=>Array.isArray(t._y))),r="_y",i="_x";if(n)throw new Error("\n data should not be given as in array for x\n ");if(e)return t.map((t=>{const n=t[r].map((n=>Object.assign({},t,{[r]:n}))),e=N()(n,r);return up(e)}));{const n=sp()(t,i);return Object.keys(n).map((t=>{const e=n[t],i=N()(e,r);return up(i)}))}}})(e):[]},dp=(t,n)=>{const e=Wa(t,n),r=Ia(t,n),i=hp(t);return i.length<1?void 0!==e&&void 0!==r?Na(e,r):void 0:"y"===n?((t,n,e)=>{const r=Wa(n,e),i=Ia(n,e);return Na(void 0!==r?r:t.reduce(((t,n)=>t<n._min?t:n._min),1/0),void 0!==i?i:t.reduce(((t,n)=>t>n._max?t:n._max),-1/0))})(i,t,n):((t,n,e)=>{const r=Wa(n,e),i=Ia(n,e);return Na(void 0!==r?r:t.reduce(((t,n)=>t<n[`_${e}`]?t:n[`_${e}`]),1/0),void 0!==i?i:t.reduce(((t,n)=>t>n[`_${e}`]?t:n[`_${e}`]),-1/0))})(i,t,n)},fp=(t,n)=>Oa(dp)(t,n),pp=(t,n,e)=>{const r=t[`${e}LabelComponent`]||t.labelComponent,i=n[`${e}Labels`]||n.labels;if(!Q(r))return i;const o=t.theme&&t.theme.tooltip||{};return q()({},o.style,i)},mp=(t,n)=>{const e=ht(t,n,"boxplot"),r=Object.assign({},e,(t=>{const{theme:n,horizontal:e}=t,r=hp(t),i={x:st(t,"x"),y:st(t,"y")},o={x:fp(t,"x"),y:fp(t,"y")},a={x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},s=function(t,n){if(void 0===n&&(n={}),t.disableInlineStyles)return{};const e=t.style||{},r=q()({},e.labels,pp(t,n)),i=q()({},e.boxes,n.boxes),o=q()({},e.whiskers,n.whiskers);return{boxes:i,labels:r,parent:q()({},e.parent,n.parent,{height:"100%",width:"100%"}),max:q()({},e.max,n.max,o),maxLabels:q()({},e.maxLabels,pp(t,n,"max"),r),median:q()({},e.median,n.median,o),medianLabels:q()({},e.medianLabels,pp(t,n,"median"),r),min:q()({},e.min,n.min,o),minLabels:q()({},e.minLabels,pp(t,n,"min"),r),q1:q()({},e.q1,n.q1,i),q1Labels:q()({},e.q1Labels,pp(t,n,"q1"),r),q3:q()({},e.q3,n.q3,i),q3Labels:q()({},e.q3Labels,pp(t,n,"q3"),r),whiskers:o}}(t,n&&n.boxplot&&n.boxplot.style?n.boxplot.style:{}),l=t.horizontal?"top":"right";return{data:r,horizontal:e,domain:o,scale:a,style:s,labelOrientation:t.labelOrientation||l,boxWidth:t.boxWidth||1}})(e)),{groupComponent:i,width:o,height:a,padding:s,standalone:l,theme:c,events:u,sharedEvents:h,scale:d,horizontal:f,data:p,style:m,domain:y,name:g}=r,x={parent:{domain:y,scale:d,width:o,height:a,data:p,standalone:l,name:g,theme:c,style:m.parent||{},padding:s,groupComponent:i,horizontal:f}},v=d.y;return p.reduce(((t,n,e)=>{const i=lt(n.eventKey)?e:n.eventKey;if(((t,n)=>{const e=t=>void 0!==t,{_x:r,_min:i,_max:o}=t,a=Et(n.x),s=At(n.x),l=Et(n.y),c=At(n.y),u=t=>n=>e(n)&&n<t,h=t=>n=>e(n)&&n>t,d=u(a),f=u(l),p=h(s),m=h(c);let y,g;return(d(r)||p(r))&&(g=!0),(f(i)&&f(o)||m(i)&&m(o))&&(y=!0),y||g})(n,y))return t;const o={x:f?d.y(n._y):d.x(n._x),y:f?d.x(n._x):d.y(n._y),min:v(n._min),max:v(n._max),median:v(n._median),q1:v(n._q1),q3:v(n._q3)},a=Object.assign({index:e,datum:n,positions:o},r),s=lp.reduce(((t,n)=>(t[n]=((t,n)=>"median"===n?(t=>{const{boxWidth:n,horizontal:e,style:r,datum:i,scale:o,index:a,disableInlineStyles:s}=t,{median:l,x:c,y:u}=t.positions;return{datum:i,scale:o,index:a,x1:e?l:c-n/2,y1:e?u-n/2:l,x2:e?l:c+n/2,y2:e?u+n/2:l,style:s?{}:r.median,disableInlineStyles:s}})(t):"min"===n||"max"===n?((t,n)=>{const{horizontal:e,style:r,boxWidth:i,whiskerWidth:o,datum:a,scale:s,index:l,disableInlineStyles:c}=t,{min:u,max:h,q1:d,q3:f,x:p,y:m}=t.positions,y="min"===n?d:f,g="min"===n?u:h,x="number"==typeof o?o:i;return{datum:a,index:l,scale:s,majorWhisker:{x1:e?y:p,y1:e?m:y,x2:e?g:p,y2:e?m:g},minorWhisker:{x1:e?g:p-x/2,y1:e?m-x/2:g,x2:e?g:p+x/2,y2:e?m+x/2:g},style:c?{}:r[n]||r.whisker,disableInlineStyles:c}})(t,n):((t,n)=>{const{horizontal:e,boxWidth:r,style:i,scale:o,datum:a,index:s,disableInlineStyles:l}=t,{median:c,q1:u,q3:h,x:d,y:f}=t.positions;return{datum:a,scale:o,index:s,x:e?"q1"===n?u:c:d-r/2,y:e?f-r/2:"q1"===n?c:h,width:e?"q1"===n?c-u:h-c:r,height:e?r:"q1"===n?u-c:c-h,style:l?{}:i[n]||i.boxes,disableInlineStyles:l}})(t,n))(a,n),t)),{});return t[i]=s,lp.forEach((n=>{const e=((t,n)=>{const{datum:e,index:r,labels:i}=t,o=t[`${n}Labels`];return o||i?!0===o||!0===i?`${e[`_${n}`]}`:Array.isArray(o)?o[r]:o:null})(a,n),o=r.labels||r[`${n}Labels`];if(null!=e||o&&(u||h)){const o=`${n}Labels`;t[i][o]=((t,n,e)=>{const{datum:r,positions:i,index:o,boxWidth:a,horizontal:s,labelOrientation:l,style:c,theme:u,disableInlineStyles:h}=t,d=((t,n)=>"object"==typeof t&&t[n]||t)(l,e),f=c[`${e}Labels`]||c.labels,p="number"==typeof t.whiskerWidth?t.whiskerWidth:a,m="min"===e||"max"===e?p:a,y=t=>{const n={x:"left"===d?-1:1,y:"top"===d?-1:1};return n[t]*m/2+n[t]*(f.padding||0)},g={text:n,datum:r,index:o,orientation:d,style:h?{}:f,y:s?i.y:i[e],x:s?i[e]:i.x,dy:s?y("y"):0,dx:s?0:y("x"),textAnchor:f.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[d],verticalAnchor:f.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[d],angle:f.angle,horizontal:s,disableInlineStyles:h};if(!Q(t[`${e}LabelComponent`]))return g;const x=u&&u.tooltip||{};return q()({},g,K(x,["style"]))})(Object.assign({},r,a),e,n)}})),t}),x)},yp={width:450,height:300,padding:{top:20,right:20,bottom:20,left:20}},gp=[{x:1,min:5,q1:7,median:12,q3:18,max:20},{x:2,min:2,q1:5,median:8,q3:12,max:15}];class xp extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryBoxPlot";static role="boxplot";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(Cu,null),data:gp,dataComponent:E().createElement(rp,null),groupComponent:E().createElement("g",{role:"presentation"}),maxComponent:E().createElement(op,null),maxLabelComponent:E().createElement(lh,null),medianComponent:E().createElement(Qd,null),medianLabelComponent:E().createElement(lh,null),minComponent:E().createElement(op,null),minLabelComponent:E().createElement(lh,null),q1Component:E().createElement(rp,null),q1LabelComponent:E().createElement(lh,null),q3Component:E().createElement(rp,null),q3LabelComponent:E().createElement(lh,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Eh.grayscale};static getDomain=fp;static getData=hp;static getBaseProps=t=>mp(t,yp);static expectedComponents=["maxComponent","maxLabelComponent","medianComponent","medianLabelComponent","minComponent","minLabelComponent","q1Component","q1LabelComponent","q3Component","q3LabelComponent","groupComponent","containerComponent"];renderBoxPlot(t){const n=["q1","q3","max","min","median"],e=[...n.map((n=>this.dataKeys.reduce(((e,r,i)=>{const o=t[`${n}Component`],a=this.getComponentProps(o,n,i);return this.shouldRenderDatum(a.datum)&&e.push(E().cloneElement(o,a)),e}),[]))).flat(),...n.map((n=>this.dataKeys.reduce(((e,r,i)=>{const o=`${n}Labels`,a=t[`${n}LabelComponent`],s=this.getComponentProps(a,o,i);return void 0!==s.text&&null!==s.text&&e.push(E().cloneElement(a,s)),e}),[]).filter(Boolean))).flat()];return this.renderContainer(t.groupComponent,e)}shouldAnimate(){return!!this.props.animate}shouldRenderDatum(t){const n=!lt(t._x),e=!lt(t._y);return!(lt(t._min)||lt(t._max)||lt(t._median)||lt(t._q1)||lt(t._q3))&&(this.props.horizontal?e:n)}render(){const{animationWhitelist:t,role:n}=vp,e=ht(this.props,yp,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderBoxPlot(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Fc(i,e)}}const vp=Hd(xp,{components:[{name:"min"},{name:"minLabels"},{name:"max"},{name:"maxLabels"},{name:"median"},{name:"medianLabels"},{name:"q1"},{name:"q1Labels"},{name:"q3"},{name:"q3Labels"},{name:"parent",index:"parent"}]});function bp(t,n,e){const{a:r,d:i,e:o,f:a}=n;return"y"===e?i*t+a:r*t+o}function _p(t){return!(!t||void 0===t.identifier)}function Mp(t){if(_p(t.nativeEvent))return;const n=t=>"svg"===t.nodeName?t:t.parentNode?n(t.parentNode):t;return n(t.target)}function Cp(t,n){if(_p(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||Mp(e));return{x:bp(e.clientX,r,"x"),y:bp(e.clientY,r,"y")}}function wp(t,n){const{horizontal:e}=t,r=t.scale,i=n||{x:r.x.domain(),y:r.y.domain()};return{x:e?[r.y(i.y[0]),r.y(i.y[1])]:[r.x(i.x[0]),r.x(i.x[1])],y:e?[r.x(i.x[0]),r.x(i.x[1])]:[r.y(i.y[0]),r.y(i.y[1])]}}function Ap(t,n,e,r){const{polar:i,horizontal:o}=t;if(!i)return{x:o?n.x.invert(r):n.x.invert(e),y:o?n.y.invert(e):n.y.invert(r)};const a=t.origin||{x:0,y:0},s=e-a.x,l=r-a.y,c=Math.abs(s*Math.sqrt(1+Math.pow(-l/s,2))),u=(-Math.atan2(l,s)+2*Math.PI)%(2*Math.PI);return{x:n.x.invert(u),y:n.y.invert(c)}}function Ep(t){const{x1:n,x2:e,y1:r,y2:i,scale:o}=t,a=Ap(t,o,n,r),s=Ap(t,o,e,i),l=(t,n)=>[Et([t,n]),At([t,n])];return{x:l(a.x,s.x),y:l(a.y,s.y)}}var kp=r(8163),Sp=r.n(kp);const Pp={getDimension(t){const{horizontal:n,brushDimension:e}=t;return n&&e?"x"===e?"y":"x":e},withinBounds(t,n,e){const{x1:r,x2:i,y1:o,y2:a}=ft(n,Number),{x:s,y:l}=ft(t,Number),c=e?e/2:0;return s+c>=Math.min(r,i)&&s-c<=Math.max(r,i)&&l+c>=Math.min(o,a)&&l-c<=Math.max(o,a)},getDomainBox(t,n,e){const r=this.getDimension(t),i=q()({},n,t.domain),o=q()({},e,i),a=wp(t,i),s=wp(t,o);return{x1:"y"!==r?Math.min(...s.x):Math.min(...a.x),x2:"y"!==r?Math.max(...s.x):Math.max(...a.x),y1:"x"!==r?Math.min(...s.y):Math.min(...a.y),y2:"x"!==r?Math.max(...s.y):Math.max(...a.y)}},getHandles(t,n){const e=this.getDimension(t),{x1:r,x2:i,y1:o,y2:a}=n,s=Math.min(r,i),l=Math.max(r,i),c=Math.min(o,a),u=Math.max(o,a),h=t.handleWidth/2;return{left:"y"!==e&&{x1:s-h,x2:s+h,y1:o,y2:a},right:"y"!==e&&{x1:l-h,x2:l+h,y1:o,y2:a},top:"x"!==e&&{x1:r,x2:i,y1:c-h,y2:c+h},bottom:"x"!==e&&{x1:r,x2:i,y1:u-h,y2:u+h}}},getActiveHandles(t,n,e){const r=this.getHandles(n,e),i=["top","bottom","left","right"].reduce(((n,e)=>r[e]&&this.withinBounds(t,r[e])?n.concat(e):n),[]);return i.length&&i},getResizeMutation(t,n){const{x1:e,y1:r,x2:i,y2:o}=t,a={left:{x1:Math.max(e,i),x2:Math.min(e,i),y1:r,y2:o},right:{x1:Math.min(e,i),x2:Math.max(e,i),y1:r,y2:o},top:{y1:Math.max(r,o),y2:Math.min(r,o),x1:e,x2:i},bottom:{y1:Math.min(r,o),y2:Math.max(r,o),x1:e,x2:i}};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:i,scale:o,horizontal:a,allowResize:s}=t,l=s||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===l)return this.getMinimumDomain();if("disable"===l)return n;if("move"===l){const r=this.getDomainBox(t,i,n),s=t.parentSVG||Mp(e),l=this.panBox({...t,...r,brushDomain:n,startX:(r.x1+r.x2)/2,startY:(r.y1+r.y2)/2},Cp(e,s)),c=t.fullDomainBox||this.getDomainBox(t,i);return Ep({...this.constrainBox(l,c),scale:o,horizontal:a})}return r},getSelectionMutation(t,n,e){const{x:r,y:i}=t,{x1:o,x2:a,y1:s,y2:l}=n;return{x1:"y"!==e?r:o,y1:"x"!==e?i:s,x2:"y"!==e?r:a,y2:"x"!==e?i:l}},panBox(t,n){const{domain:e,startX:r,startY:i}=t,o=this.getDimension(t),a=q()({},t.brushDomain,e),s=q()({},t.fullDomain,e),{x1:l,x2:c,y1:u,y2:h}=t.x1?t:this.getDomainBox(t,s,a),{x:d,y:f}=n,p=r?r-d:0,m=i?i-f:0;return{x1:"y"!==o?Math.min(l,c)-p:Math.min(l,c),x2:"y"!==o?Math.max(l,c)-p:Math.max(l,c),y1:"x"!==o?Math.min(u,h)-m:Math.min(u,h),y2:"x"!==o?Math.max(u,h)-m:Math.max(u,h)}},constrainBox(t,n){const{x1:e,y1:r,x2:i,y2:o}=ft(n,Number);return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,e),y1:t.y2>o?o-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,i),y2:t.y1<r?r+Math.abs(t.y2-t.y1):Math.min(t.y2,o)}},constrainPoint(t,n){const{x1:e,y1:r,x2:i,y2:o}=ft(n,Number);return{x:Math.min(Math.max(t.x,e),i),y:Math.min(Math.max(t.y,r),o)}},hasMoved(t){const{x1:n,x2:e,y1:r,y2:i,mouseMoveThreshold:o}=t,a=this.getDimension(t),s=Math.abs(n-e)>=o,l=Math.abs(r-i)>=o;switch(a){case"x":return s;case"y":return l;default:return s||l}},onMouseDown(t,n){t.preventDefault();const{handleWidth:e,cachedBrushDomain:r,domain:i,allowResize:o,allowDrag:a,allowDraw:s}=n,l=this.getDimension(n),c=o||n.defaultBrushArea?n.defaultBrushArea:"move";if(!o&&!a)return{};const u=n.fullDomainBox||this.getDomainBox(n,i),h=n.parentSVG||Mp(t),{x:d,y:f}=Cp(t,h);if(!this.withinBounds({x:d,y:f},u,e))return{};const p=q()({},n.brushDomain,i),m=Oh()(p,r)?n.currentDomain||p||i:p||i,y=this.getDomainBox(n,i,m),g=o&&this.getActiveHandles({x:d,y:f},n,y);return g?[{target:"parent",mutation:()=>({isSelecting:!0,domainBox:y,fullDomainBox:u,cachedBrushDomain:p,currentDomain:m,parentSVG:h,...this.getResizeMutation(y,g)})}]:this.withinBounds({x:d,y:f},y)&&!Oh()(i,m)?[{target:"parent",mutation:()=>({isPanning:a,startX:d,startY:f,domainBox:y,fullDomainBox:u,currentDomain:m,cachedBrushDomain:p,parentSVG:h,...y})}]:s?[{target:"parent",mutation:()=>({isSelecting:o||"move"===c,domainBox:y,fullDomainBox:u,parentSVG:h,cachedBrushDomain:p,cachedCurrentDomain:m,currentDomain:this.getMinimumDomain(),...this.getSelectionMutation({x:d,y:f},y,l)})}]:{}},onGlobalMouseMove(t,n){const{scale:e,isPanning:r,isSelecting:i,fullDomainBox:o,onBrushDomainChange:a,allowResize:s,allowDrag:l,horizontal:c,mouseMoveThreshold:u,parentSVG:h}=n,d=this.getDimension(n),{x:f,y:p}=Cp(t,h);if(!s&&!l||u>0&&!this.hasMoved({...n,x2:f,y2:p}))return{};if(l&&r){const{startX:t,startY:r}=n,i=this.panBox(n,{x:f,y:p}),s=this.constrainBox(i,o),l=Ep({...s,scale:e,horizontal:c}),u={currentDomain:l,parentSVG:h,startX:i.x2>=o.x2||i.x1<=o.x1?t:f,startY:i.y2>=o.y2||i.y1<=o.y1?r:p,...s};return ct(a)&&a(l,q()({},u,n)),[{target:"parent",mutation:()=>u}]}if(s&&i){const{x:t,y:r}=this.constrainPoint({x:"y"!==d?f:n.x2,y:"x"!==d?p:n.y2},o),i=Ep({x2:t,y2:r,x1:n.x1,y1:n.y1,scale:e,horizontal:c}),s={x2:t,y2:r,currentDomain:i,parentSVG:h};return ct(a)&&a(i,q()({},s,n)),[{target:"parent",mutation:()=>s}]}return{}},onGlobalMouseUp(t,n){if(!n.isPanning&&!n.isSelecting)return{};const{x1:e,y1:r,x2:i,y2:o,isPanning:a,isSelecting:s,onBrushDomainChange:l,onBrushDomainChangeEnd:c,onBrushCleared:u,currentDomain:h,allowResize:d,allowDrag:f}=n,p=d||n.defaultBrushArea?n.defaultBrushArea:"move",m={isPanning:!1,isSelecting:!1};if(!d&&(void 0===p||"none"===p)||e!==i&&r!==o)(f&&a||d&&s)&&ct(c)&&c(h,q()({},m,n));else{const e=n.cachedCurrentDomain||h,r=this.getDefaultBrushArea(n,e,t);m.currentDomain=r,ct(l)&&l(r,q()({},m,n)),ct(c)&&c(r,q()({},m,n)),ct(u)&&u(r,q()({},m,n))}return[{target:"parent",mutation:()=>m}]}},Dp={...Pp,onMouseDown:Pp.onMouseDown.bind(Pp),onGlobalMouseUp:Pp.onGlobalMouseUp.bind(Pp),onGlobalMouseMove:Sp()(Pp.onGlobalMouseMove.bind(Pp),16,{leading:!0,trailing:!1})};function Op(t){return class extends t{static displayName="VictoryBrushContainer";static defaultProps={...Cu.defaultProps,allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:E().createElement(Su,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:E().createElement(Su,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseDown:(n,e)=>t.disable?{}:Dp.onMouseDown(n,e),onTouchStart:(n,e)=>t.disable?{}:Dp.onMouseDown(n,e),onGlobalMouseMove:(n,e)=>t.disable||!e.isPanning&&!e.isSelecting?{}:Dp.onGlobalMouseMove(n,e),onGlobalTouchMove:(n,e)=>t.disable||!e.isPanning&&!e.isSelecting?{}:Dp.onGlobalMouseMove(n,e),onGlobalMouseUp:(n,e)=>t.disable?{}:Dp.onGlobalMouseUp(n,e),onGlobalTouchEnd:(n,e)=>t.disable?{}:Dp.onGlobalMouseUp(n,e),onGlobalTouchCancel:(n,e)=>t.disable?{}:Dp.onGlobalMouseUp(n,e)}}];getSelectBox(t,n){const{x:e,y:r}=n,{brushStyle:i,brushComponent:o,name:a}=t,s=o.props&&o.props.style,l=t.allowDrag||t.allowResize?"move":"auto";return e[0]!==e[1]&&r[0]!==r[1]?E().cloneElement(o,{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:l,style:q()({},s,i)}):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:i,name:o}=t,a=Dp.getDomainBox(t,n),{x1:s,x2:l,y1:c,y2:u}=a,{top:h,bottom:d,left:f,right:p}=Dp.getHandles(t,a),m=Math.abs(l-s)||1,y=Math.abs(u-c)||1,g=i.props&&i.props.style||{},x=q()({},g,r),v=this.getCursorPointers(t),b={style:x,width:m,height:e,cursor:v.yProps},_={style:x,width:e,height:y,cursor:v.xProps},M={top:h&&Object.assign({x:h.x1,y:h.y1},b),bottom:d&&Object.assign({x:d.x1,y:d.y1},b),left:f&&Object.assign({y:f.y1,x:f.x1},_),right:p&&Object.assign({y:p.y1,x:p.x1},_)},C=["top","bottom","left","right"].reduce(((t,n)=>M[n]?t.concat(E().cloneElement(i,Object.assign({key:`${o}-handle-${n}`},M[n]))):t),[]);return C.length?C:null}getRect(t){const{currentDomain:n,cachedBrushDomain:e}=t,r=q()({},t.brushDomain,t.domain),i=Oh()(r,e)?q()({},n,r):r,o=wp(t,i),a=this.getSelectBox(t,o);return a?[a,this.getHandles(t,i)]:[]}getChildren(t){return[...E().Children.toArray(t.children),...this.getRect(t)]}}}const Lp=Op(Cu),Tp=1/Number.MAX_SAFE_INTEGER,jp=t=>{const{scale:n={},dimension:e="x"}=t;if(n[e])return n[e];const r=Yo(t,e),i=st(t,e),o=za(t,e)||[0,1];return r.range(i).domain(o),r},$p=t=>{const{horizontal:n,dimension:e="x"}=t;return n?"x"===e?"y":"x":e},Np=(t,n)=>{const e=jp(t);return[e(Math.min(...n)),e(Math.max(...n))]},zp=(t,n)=>{const e=jp(t);return[e.invert(Math.min(...n)),e.invert(Math.max(...n))]},Rp=t=>jp(t).range(),Ip=t=>jp(t).domain(),Wp=(t,n)=>t>=Et(n)&&t<=At(n),Bp=(t,n)=>{if(t){const e=Et(t),r=At(t),i=Et(n),o=At(n),a=e<i?i:Number(o)-Tp,s=r>o?o:Number(i)+Tp;return[Wp(e,n)?e:a,Wp(r,n)?r:s]}return n},Vp=(t,n,e)=>{const r=t.handleWidth/2,i=$p(t),o=["min","max"].reduce(((t,o)=>(t[o]=Wp(n,(t=>{const n={min:"x"===i?Math.min(...e):Math.max(...e),max:"x"===i?Math.max(...e):Math.min(...e)};return[n[t]-r,n[t]+r]})(o))?o:void 0,t)),{});return o.min&&o.max?"both":o.min||o.max},Fp={stroke:"none",fill:"black",opacity:t=>{let{active:n}=t;return n?.2:.1}},Up={pointerEvents:"none",stroke:"none",fill:"black",opacity:t=>{let{active:n}=t;return n?.4:.3}},Hp={pointerEvents:"none",stroke:"none",fill:"none"};class qp extends E().Component{static defaultProps={allowDrag:!0,allowDraw:!0,allowResize:!0,brushAreaComponent:E().createElement(rp,null),brushComponent:E().createElement(rp,null),groupComponent:E().createElement("g",null),handleComponent:E().createElement(rp,null),handleWidth:10,lineComponent:E().createElement(Qd,null),width:10};static defaultEvents=function(t){return t.disable?void 0:[{target:t.type,eventHandlers:{onMouseEnter:(t,n)=>{t.preventDefault();const{allowResize:e,brushDomain:r}=n,i=$p(n),o=n.parentSVG||Mp(t),a=Cp(t,o)[i],s=Ip(n),l=Bp(r,s),c=Np(n,l),u=e&&Vp(n,a,c),h={brushArea:!n.brushDomain,brush:Wp(a,c)&&!Oh()(s,l),minHandle:"min"===u||"both"===u,maxHandle:"min"===u||"both"===u};return[{mutation:()=>({activeBrushes:h,brushDomain:n.brushDomain,parentSVG:o})}]},onMouseDown:(t,n)=>{t.preventDefault();const{allowResize:e,allowDrag:r,allowDraw:i,activeBrushes:o,brushDomain:a}=n,s=$p(n);if(!e&&!r)return[];const l=Ip(n),c=Bp(a,l),u=n.parentSVG||Mp(t),h=Cp(t,u)[s],d=Np(n,c),f=e&&Vp(n,h,d);return f?[{mutation:()=>({parentSVG:u,isSelecting:!0,activeHandle:f,brushDomain:c,startPosition:h,activeBrushes:o})}]:Wp(h,d)&&!Oh()(l,c)?[{mutation:()=>({isPanning:r,startPosition:h,brushDomain:c,activeBrushes:o,parentSVG:u})}]:i?[{mutation:()=>({isSelecting:e,brushDomain:null,startPosition:h,activeBrushes:o,parentSVG:u})}]:[]},onMouseMove:(t,n)=>{const{isPanning:e,isSelecting:r,allowResize:i,allowDrag:o,onBrushDomainChange:a,brushDomain:s}=n,l=$p(n);(e||r)&&(t.preventDefault(),t.stopPropagation());const c=n.parentSVG||Mp(t),u=Cp(t,c)[l],h=Ip(n),d=Bp(s,h),f=Np(n,d),p=Vp(n,u,f),m={brushArea:!n.brushDomain,brush:Wp(u,f)&&!Oh()(h,d),minHandle:"min"===p||"both"===p,maxHandle:"max"===p||"both"===p};if(!n.isPanning&&!n.isSelecting)return[{mutation:()=>({activeBrushes:m,brushDomain:n.brushDomain,parentSVG:c})}];if(o&&e){const t=Rp(n),e=((t,n)=>{const{brushDomain:e,startPosition:r}=t,i=Np(t,e),o=Rp(t),a=Math.abs(i[1]-i[0]),s=Math.min(...o),l=Math.max(...o),c=r?r-n:0,u=Math.min(...i)-c,h=Math.max(...i)-c;return[u>l-a?l-a:Math.max(u,s),h<s+a?s+a:Math.min(h,l)]})(n,u),r=zp(n,e),i={startPosition:Math.max(...e)>=Math.max(...t)||Math.min(...e)<=Math.min(...t)?n.startPosition:u,isPanning:!0,brushDomain:r,activeBrushes:{brush:!0},parentSVG:c};return ct(a)&&a(r,q()({},i,n)),[{mutation:()=>i}]}if(i&&r){let t=s||[0,Tp];const e=Np(n,t),i="min"===n.activeHandle?"max":"min",o=n.activeHandle&&"both"===Vp(n,u,e)?i:n.activeHandle;if(o){const r="x"===l?Math.max(...e):Math.min(...e),i="x"===l?Math.min(...e):Math.max(...e);t=zp(n,["max"===o?i:u,"min"===o?r:u])}else t=zp(n,[n.startPosition,u]);const h={brushDomain:t,startPosition:n.startPosition,isSelecting:r,activeHandle:o,parentSVG:c,activeBrushes:{brush:!0,minHandle:"min"===p,maxHandle:"max"===p}};return ct(a)&&a(t,q()({},h,n)),[{mutation:()=>h}]}return[]},onMouseUp:(t,n)=>{const{onBrushDomainChange:e,brushDomain:r,allowResize:i,activeBrushes:o}=n,a={isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:r,activeBrushes:o};return i&&ct(e)&&e(r,q()({},a,n)),[{mutation:()=>a}]},onMouseLeave:(t,n)=>{const{brushDomain:e}=n;return[{mutation:()=>({isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:e,activeBrushes:{}})}]}}}]};getRectDimensions(t,n,e){const{brushDomain:r}=t,i=$p(t),o=Np(t,e||Bp(r,Ip(t))),a="x"===i?{y1:t.y1,y2:t.y2,x1:Math.min(...o),x2:Math.max(...o)}:{x1:t.x1,x2:t.x2,y1:Math.min(...o),y2:Math.max(...o)},{x1:s,x2:l,y1:c,y2:u}=a,h="x"===i?0:n/2,d="y"===i?0:n/2,f=Math.min(s,l)-h,p=Math.min(c,u)-d;return{x:f,y:p,width:Math.max(s,l)+h-f,height:Math.max(c,u)+d-p}}getHandleDimensions(t){const{handleWidth:n,x1:e,x2:r,y1:i,y2:o,brushDomain:a}=t,s=$p(t),l=t.brushWidth||t.width,c=Bp(a,Ip(t)),u=Np(t,c),h=Math.min(e,r)-l/2,d=Math.min(i,o)-l/2,f={min:"x"===s?Math.min(...u)-n/2:h,max:"x"===s?Math.max(...u)-n/2:h},p={min:"y"===s?Math.max(...u)-n/2:d,max:"y"===s?Math.min(...u)-n/2:d},m="x"===s?n:l,y="x"===s?l:n;return{min:{x:f.min,y:p.min,width:m,height:y},max:{x:f.max,y:p.max,width:m,height:y}}}getCursor(t){const{activeBrushes:n={}}=t,e=$p(t);return n.minHandle||n.maxHandle?"x"===e?"ew-resize":"ns-resize":n.brush?"move":"crosshair"}renderHandles(t){const{handleComponent:n,handleStyle:e,id:r,brushDomain:i,datum:o={},activeBrushes:a={}}=t;if(!i)return null;const s=this.getHandleDimensions(t),l=Object.assign({},Hp,e),c=Object.assign({handleValue:Et(i)},o),u=Object.assign({handleValue:At(i)},o),h=Object.assign({key:`${r}-min`,style:et(l,{datum:c,active:a.minHandle})},s.min),d=Object.assign({key:`${r}-max`,style:et(l,{datum:u,active:a.maxHandle})},s.max);return[E().cloneElement(n,h),E().cloneElement(n,d)]}renderBrush(t){const{brushComponent:n,brushStyle:e,activeBrushes:r={},datum:i={},brushDomain:o}=t;if(!o)return null;const a=t.brushWidth||t.width,s=this.getRectDimensions(t,a),l=et(Object.assign({},Up,e),{datum:i,active:r.brush}),c=Object.assign({style:l},s);return E().cloneElement(n,c)}renderBrushArea(t){const{brushAreaComponent:n,brushAreaStyle:e,activeBrushes:r={},datum:i={}}=t,o=t.brushAreaWidth||t.width,a=this.getCursor(t),s=this.getRectDimensions(t,o,Ip(t)),l=et(Object.assign({cursor:a},Fp,e),{datum:i,active:r.brushArea}),c=Object.assign({style:l},s);return E().cloneElement(n,c)}renderLine(t){const n=U()(t,["x1","x2","y1","y2","datum","scale","active","style"]);return E().cloneElement(t.lineComponent,n)}render(){return E().createElement("g",this.props.events,this.renderLine(this.props),this.renderBrushArea(this.props),this.renderBrush(this.props),this.renderHandles(this.props))}}const Gp={groupComponent:E().createElement("g",null),lineComponent:E().createElement(Xd,null),rectComponent:E().createElement(Su,null),role:"presentation",shapeRendering:"auto"},Kp=t=>{const n=(t=>{const n=et(Object.assign({stroke:"black"},t.style),t),e=((t,n)=>{const{style:e}=n;return t?ct(t)?nt(t,n):t:e.width?e.width:t})(t.candleWidth,Object.assign({},t,{style:n})),r=nt(t.ariaLabel,t),i=nt(t.desc,t),o=nt(t.id,t),a=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:r,style:n,candleWidth:e,desc:i,id:o,tabIndex:a})})({...Gp,...t}),{ariaLabel:e,events:r,groupComponent:i,clipPath:o,rectComponent:a,lineComponent:s,role:l,shapeRendering:c,className:u,wickStrokeWidth:h,transform:d,style:f,desc:p,tabIndex:m}=n,y=q()({strokeWidth:h},f),g={...r,"aria-label":e,role:l,shapeRendering:c,className:u,transform:d,clipPath:o,desc:p,tabIndex:m},x=Object.assign(((t,n)=>{const{id:e,x:r,close:i,open:o,horizontal:a,candleWidth:s}=t,l=Math.abs(i-o);return{key:`${e}-candle`,style:K(n,["width"]),x:a?Math.min(o,i):r-s/2,y:a?r-s/2:Math.min(o,i),width:a?l:s,height:a?s:l}})(n,f),g),v=Object.assign(((t,n)=>{const{horizontal:e,high:r,open:i,close:o,x:a,id:s}=t;return{key:`${s}-highWick`,style:K(n,["width"]),x1:e?r:a,x2:e?Math.max(i,o):a,y1:e?a:r,y2:e?a:Math.min(i,o)}})(n,y),g),b=Object.assign(((t,n)=>{const{horizontal:e,low:r,open:i,close:o,x:a,id:s}=t;return{key:`${s}-lowWick`,style:K(n,["width"]),x1:e?Math.min(i,o):a,x2:e?r:a,y1:e?a:Math.max(i,o),y2:e?a:r}})(n,y),g);return E().cloneElement(i,{},[E().cloneElement(a,x),E().cloneElement(s,v),E().cloneElement(s,b)])},Yp=["close","open","high","low"],Xp=t=>xa(t.data,t,["x","high","low","close","open"]),Zp=(t,n,e)=>{const r="x"===n?"_x":{min:"_low",max:"_high"}[e],i="min"===e?1/0:-1/0;return t.reduce(((t,n)=>{const i=n[r];return t<i&&"min"===e||t>i&&"max"===e?t:i}),i)},Qp=(t,n)=>{const e=Wa(t,n),r=Ia(t,n),i=Xp(t);return i.length<1?void 0!==e&&void 0!==r?Na(e,r):void 0:Na(void 0!==e?e:Zp(i,n,"min"),void 0!==r?r:Zp(i,n,"max"))},Jp=(t,n)=>Oa(Qp)(t,n),tm=(t,n,e)=>{const r=t[`${e}LabelComponent`],i=n[`${e}Labels`]||n.labels;if(!Q(r))return i;const o=t.theme&&t.theme.tooltip||{};return q()({},o.style,i)},nm=(t,n,e,r)=>{const{x:i,high:o,low:a,open:s,close:l,index:c,scale:u,datum:h,data:d,horizontal:f,candleWidth:p,labelOrientation:m,theme:y}=t,g=t[`${r}LabelComponent`]||t.labelComponent,x=f?"top":"right",v=g.props&&g.props.orientation||function(t,n){return void 0===n&&(n="labels"),W()(t)?t[n]:t}(m,r)||x,b={high:o,low:a,open:s,close:l},_=e[r?`${r}Labels`:"labels"]||e.labels,M={positions:b,labelStyle:_,x:i,horizontal:f,computedType:r||"labels",candleWidth:p,orientation:v},{yValue:C,xValue:w,dx:A,dy:E}=(t=>{const{positions:n,labelStyle:e,x:r,horizontal:i,computedType:o,candleWidth:a,orientation:s}=t;n.labels=(n.open+n.close)/2;const l="left"===s?-1:1,c="top"===s?-1:1;if(i){const t=r,i=n[o],u="top"===s||"bottom"===s?c*(a/2)+c*(e.padding||0):0;return{yValue:t,xValue:i,dx:"top"===s||"bottom"===s?0:l*(e.padding||1),dy:u}}const u=r,h=n[o],d="top"===s||"bottom"===s?c*(e.padding||1):0;return{yValue:h,xValue:u,dx:"top"===s||"bottom"===s?0:l*(a/2)+l*(e.padding||0),dy:d}})(M),k={style:_,y:C,x:w,dx:A,dy:E,text:n,index:c,scale:u,datum:h,data:d,orientation:v,textAnchor:_.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[v],verticalAnchor:_.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[v],angle:_.angle,horizontal:f};if(!Q(g))return k;const S=y&&y.tooltip||{};return q()({},k,K(S,["style"]))},em=(t,n)=>{const e=ht(t,n,"candlestick"),r=(t=>{const{polar:n}=t,e=J(t,"candlestick"),r=function(t,n,e){if(void 0===e&&(e={}),t.disableInlineStyles)return{};const r="100%",i="100%";if(!n)return q()({parent:{height:i,width:r}},e);const o=e.parent||{},a=e.labels||{},s=e.data||{},l=q()({},n.labels,a);return{parent:q()({},n.parent,o,{width:r,height:i}),labels:l,data:q()({},n.data,s),openLabels:q()({},n.openLabels,tm(t,e,"open"),l),closeLabels:q()({},n.closeLabels,tm(t,e,"close"),l),lowLabels:q()({},n.lowLabels,tm(t,e,"low"),l),highLabels:q()({},n.highLabels,tm(t,e,"high"),l)}}(t,t.style,e),i=Xp(t),o={x:st(t,"x"),y:st(t,"y")},a={x:Jp(t,"x"),y:Jp(t,"y")},s={x:Yo(t,"x").domain(a.x).range(t.horizontal?o.y:o.x),y:Yo(t,"y").domain(a.y).range(t.horizontal?o.x:o.y)},l=n?t.origin||at(t):void 0,c=t.horizontal?"top":"right";return{domain:a,data:i,scale:s,style:r,origin:l,labelOrientation:t.labelOrientation||c}})(e),{data:i,style:o,scale:a,domain:s,origin:l,labelOrientation:c}=r,{groupComponent:u,width:h,height:d,padding:f,standalone:p,name:m,candleWidth:y,candleRatio:g,theme:x,polar:v,wickStrokeWidth:b,labels:_,events:M,sharedEvents:C,horizontal:w,disableInlineStyles:A}=e,E={parent:{domain:s,scale:a,width:h,height:d,data:i,standalone:p,theme:x,polar:v,origin:l,name:m,style:o.parent,padding:f,horizontal:w}};return i.reduce(((t,n,r)=>{const d=lt(n.eventKey)?r:n.eventKey,f=a.x(void 0!==n._x1?n._x1:n._x),p=((t,n)=>{const e=Et(n.x),r=At(n.x),i=Et(n.y),o=At(n.y);let{_x:a,_low:s,_open:l,_close:c,_high:u}=t;return(a<e||a>r)&&(a=null),s<i&&l<i&&c<i&&u<i&&(s=l=c=u=null),s>o&&l>o&&c>o&&u>o&&(s=l=c=u=null),Object.assign({},t,{_x:a,_low:s,_open:l,_close:c,_high:u})})(n,s),{_low:m,_open:x,_close:E,_high:k}=p,S=a.y(k),P=a.y(E),D=a.y(x),O=a.y(m),L=function(t,n,e){if(void 0===n&&(n={}),e.disableInlineStyles)return{};const r=t._open>t._close?e.candleColors.negative:e.candleColors.positive,i=n.fill||r,o=n.stroke,a="none"===(s=o)||"transparent"===s?i:o||"black";var s;return Object.assign({},n,{stroke:a,fill:i})}(p,o.data,e),T={x:f,high:S,low:O,candleWidth:y,candleRatio:g,scale:a,data:i,datum:p,groupComponent:u,index:r,style:L,width:h,polar:v,origin:l,wickStrokeWidth:b,open:D,close:P,horizontal:w,labelOrientation:c,disableInlineStyles:A};T.candleWidth=((t,n)=>{const{data:e,candleWidth:r,scale:i}=t;if(r)return ct(r)?nt(r,t):r;const o=i.x.range(),a=Math.abs(o[1]-o[0]),s=e.length+2,l=(t.candleRatio||.5)*(e.length<2?8:a/s);return Math.max(1,l)})(T);const j=q()(Object.assign({},T),e);if(t[d]={data:T},_){const n=Ua(e,p,r);(null!=n||_&&(M||C))&&(t[d].labels=nm(j,n,o))}return Yp.forEach((n=>{const r=((t,n)=>{const{datum:e,index:r,labels:i}=t,o=t[`${n}Labels`];return o||i?!0===o||!0===i?`${e[`_${n}`]}`:Array.isArray(o)?o[r]:o:null})(j,n),i=e.labels||e[`${n}Labels`];if(null!=r||i&&(M||C)){const e=`${n}Labels`;t[d][e]=nm(j,r,o,n)}})),t}),E)},rm={width:450,height:300,padding:50,candleColors:{positive:"#ffffff",negative:"#252525"}},im=[{x:new Date(2016,6,1),open:5,close:10,high:15,low:0},{x:new Date(2016,6,2),open:10,close:15,high:20,low:5},{x:new Date(2016,6,3),open:15,close:20,high:25,low:10},{x:new Date(2016,6,4),open:20,close:25,high:30,low:15},{x:new Date(2016,6,5),open:25,close:30,high:35,low:20},{x:new Date(2016,6,6),open:30,close:35,high:40,low:25},{x:new Date(2016,6,7),open:35,close:40,high:45,low:30},{x:new Date(2016,6,8),open:40,close:45,high:50,low:35}],om=t=>!lt(t._x)&&!lt(t._y);class am extends E().Component{static animationWhitelist=["data","domain","height","padding","samples","size","style","width"];static displayName="VictoryCandlestick";static role="candlestick";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(Cu,null),data:im,dataComponent:E().createElement(Kp,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(lh,null),highLabelComponent:E().createElement(lh,null),lowLabelComponent:E().createElement(lh,null),openLabelComponent:E().createElement(lh,null),closeLabelComponent:E().createElement(lh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Eh.grayscale};static getDomain=Jp;static getData=Xp;static getBaseProps=t=>em(t,rm);static expectedComponents=["openLabelComponent","closeLabelComponent","highLabelComponent","lowLabelComponent","dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}shouldRenderDatum=t=>!(lt(t._x)||lt(t._high)||lt(t._low)||lt(t._close)||lt(t._open));renderCandleData(t,n){void 0===n&&(n=om);const{dataComponent:e,labelComponent:r,groupComponent:i}=t;if(!i)throw new Error("VictoryCandlestick expects a groupComponent prop");const o=[];if(e){const t=this.dataKeys.reduce(((t,r,i)=>{const o=this.getComponentProps(e,"data",i);return n(o.datum)&&t.push(E().cloneElement(e,o)),t}),[]);o.push(...t)}const a=["close","open","low","high"].flatMap((n=>this.dataKeys.map(((e,r)=>{const i=`${n}Labels`,o=t[`${n}LabelComponent`],a=this.getComponentProps(o,i,r);if(void 0!==a.text&&null!==a.text)return E().cloneElement(o,a)})).filter((t=>void 0!==t))));if(o.push(...a),r){const t=this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text)return E().cloneElement(r,e)})).filter((t=>void 0!==t));o.push(...t)}return this.renderContainer(i,o)}render(){const{animationWhitelist:t,role:n}=sm,e=ht(this.props,rm,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderCandleData(e,this.shouldRenderDatum),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Fc(i,e)}}const sm=Hd(am,{components:[{name:"lowLabels"},{name:"highLabels"},{name:"openLabels"},{name:"closeLabels"},{name:"labels"},{name:"data"},{name:"parent",index:"parent"}]}),lm=E().createContext(void 0),cm=()=>{const t=E().useContext(lm);if(!t)throw new Error("This component must be wrapped in a CanvasContext.Provider component.\n Try setting groupComponent={<CanvasGroup />} in your chart component.");return t},um=t=>{const{canvasRef:n}=cm(),e=(t=>{const n=zf(t.style,t),e=$f(t.barWidth,Object.assign({},t,{style:n})),r=Nf(t.cornerRadius,Object.assign({},t,{style:n,barWidth:e}));return Object.assign({},t,{style:n,barWidth:e,cornerRadius:r})})(t),{polar:r,style:i,barWidth:o,cornerRadius:a,origin:s}=e,l=E().useMemo((()=>{const t=r?Yf(e,a):Kf(e,o,a);return new Path2D(t)}),[r,o,a,e]),c=(t=>{const n=E().useRef();return E().useEffect((()=>{n.current=t})),n.current})(l),u=E().useCallback(((t,n)=>{t.fillStyle=i.fill,t.strokeStyle=i.stroke,t.globalAlpha=i.fillOpacity,t.lineWidth=i.strokeWidth,r&&t.translate(s?.x||0,s?.y||0),t.fill(n),t.setTransform(1,0,0,1,0,0)}),[i,s,r]),h=E().useCallback((t=>{if(c){t.save();const n=i.strokeWidth||0;t.lineWidth=n+2,t.globalCompositeOperation="destination-out",u(t,c),t.stroke(c),t.restore()}}),[u,c,i]);return E().useEffect((()=>{const t=n.current?.getContext("2d");t&&(h(t),u(t,l))}),[n,u,r,o,a,e,l,h]),null},hm=t=>{const n=E().useRef(null),{children:e,width:r=0,height:i=0,clipWidth:o,padding:a}=t,s=E().useCallback((t=>t.clearRect(0,0,r,i)),[r,i]),l=E().useCallback((t=>{const n="number"==typeof a?a:a?.right||0,e=r-n-("number"==typeof a?a:a?.left||0);t.clearRect(r-n,0,o?-1*(e-o):0,i)}),[r,i,a,o]);return E().createElement(lm.Provider,{value:{canvasRef:n,clear:s,clip:l}},E().createElement("foreignObject",{width:r,height:i,x:0,y:0},E().createElement("canvas",{width:r,height:i,ref:n})),e)};hm.role="container";const dm=t=>{const{canvasRef:n,clear:e,clip:r}=cm(),{style:i,data:o}=t,{stroke:a,strokeWidth:s}=i,l=E().useCallback((n=>{const e=zc(t);n.strokeStyle=a,n.lineWidth=s,e.context(n)(o),n.stroke()}),[o,t,a,s]);return E().useEffect((()=>{const t=n.current?.getContext("2d");t&&(e(t),l(t),r(t))}),[n,l,e,r]),null};function fm(t,n,e){return`M ${t}, ${n}\n m ${-e}, 0\n a ${e}, ${e} 0 1,0 ${2*e},0\n a ${e}, ${e} 0 1,0 ${2*-e},0`}function pm(t,n,e){const r=.87*e,i=t-r,o=t+r-i;return`M ${i}, ${n+r}\n h${o}\n v-${o}\n h-${o}\n z`}function mm(t,n,e){const r=.87*e,i=Math.sqrt(r*r*2);return`M ${t}, ${n+i}\n l ${i}, -${i}\n l -${i}, -${i}\n l -${i}, ${i}\n l ${i}, ${i}\n z`}function ym(t,n,e){const r=n-e;return`M ${t-e}, ${r}\n L ${t+e}, ${r}\n L ${t}, ${n+e/2*Math.sqrt(3)}\n z`}function gm(t,n,e){const r=n+e;return`M ${t-e}, ${r}\n L ${t+e}, ${r}\n L ${t}, ${n-e/2*Math.sqrt(3)}\n z`}function xm(t,n,e){const r=1.1*e,i=r/1.5;return`\n M ${t-i/2}, ${n+r}\n v-${i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${i}\n z`}function vm(t,n,e){const r=.8*e,i=r/1.5;return`\n M ${t-i/2}, ${n+r+i}\n v-${2*i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${2*i}\n z`}function bm(t,n,e){const r=1.1*e,i=r-.3*r,o=t-r,a=t+r-o;return`M ${o}, ${n+i/2}\n h${a}\n v-${i}\n h-${a}\n z`}function _m(t,n,e){const r=1.35*e,i=Math.PI/5;return`M ${pt(10).map((e=>{const o=e%2==0?r:r/2;return`${o*Math.sin(i*(e+1))+t},\n ${o*Math.cos(i*(e+1))+n}`})).join("L")} z`}const Mm=t=>{const{canvasRef:n}=cm(),e=(t=>{const n=nt(t.size,t),e=et(t.style,t),r=nt(t.symbol,t);return Object.assign({},t,{size:n,style:e,symbol:r})})(t),r=E().useCallback((t=>{const{style:n}=e,r=(t=>{const{x:n,y:e,size:r,symbol:i}=t;if(t.getPath)return t.getPath(n,e,r);const o={circle:fm,square:pm,diamond:mm,triangleDown:ym,triangleUp:gm,plus:xm,minus:bm,star:_m,cross:vm};return("function"==typeof o[i]?o[i]:o.circle)(n,e,r)})(e);t.fillStyle=n.fill;const i=new Path2D(r);t.fill(i)}),[e]);return E().useEffect((()=>{const t=n.current?.getContext("2d");t&&r(t)}),[]),null},Cm={circleComponent:E().createElement(Eu,null),rectComponent:E().createElement(Su,null),role:"presentation",shapeRendering:"auto"},wm=t=>{const n=(t=>{const n=nt(t.id,t);return Object.assign({},t,{id:n})})({...Cm,...t});return n.polar?E().cloneElement(n.circleComponent,{...n.events,style:n.style,role:n.role,shapeRendering:n.shapeRendering,cx:n.x,cy:n.y,r:n.height,className:n.className}):E().cloneElement(n.rectComponent,{...n.events,style:n.style,role:n.role,shapeRendering:n.shapeRendering,x:n.x,y:n.y,rx:n.rx,ry:n.ry,width:n.width,height:n.height,className:n.className})},Am={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},Em=function(t){void 0===t&&(t=Am);const[n,e]=E().useState(t),r=E().useCallback((t=>{e((n=>({...n,...t})))}),[e]),i=E().useCallback(((t,e,i)=>{if(!t?.animate)return e.props.animate;let o=t.animate&&t.animate.getTransitions;const a=(()=>{let t=n&&n.childrenTransitions;return t=Ct(t)?t[i]:t,q()({childrenTransitions:t},n)})(),s=t.animate&&t.animate.parentState||a;if(!o){const n=Ad(t,a,(t=>r(t)));o=t=>n(t,i)}return q()({getTransitions:o,parentState:s},t.animate,e.props.animate)}),[n,r]),o=E().useCallback(((t,n)=>{if(t?.animate)if(t.animate.parentState){const e=t.animate.parentState.nodesWillExit?t:null,i=q()({oldProps:e,nextProps:n},t.animate.parentState);r(i)}else{const e=E().Children.toArray(t.children),i=E().Children.toArray(n.children),o=t=>{const n=t=>t.type&&t.type.continuous;return Array.isArray(t)?t.some(n):n(t)},a=!t.polar&&e.some((t=>o(t)||t?.props?.children&&o(t.props.children))),{nodesWillExit:s,nodesWillEnter:l,childrenTransitions:c,nodesShouldEnter:u}=wd(e,i);r({nodesWillExit:s,nodesWillEnter:l,nodesShouldEnter:u,childrenTransitions:Ct(c)?c[0]:c,oldProps:s?t:void 0,nextProps:n,continuous:a})}}),[r]),a=E().useCallback((t=>n&&n.nodesWillExit&&n.oldProps||t),[n]);return{state:n,setState:r,getAnimationProps:i,setAnimationState:o,getProps:a}};var km=r(8961),Sm=r.n(km);function Pm(t){let{children:n,props:e,childComponents:r,parentProps:i}=t;const o=n.some((t=>t.type&&"histogram"===t.type.role)),a=o&&n.length&&n.every((t=>t.type&&"histogram"===t.type.role));if(!a)return i;let s=e.bins||r[0].props.bins;if(!Array.isArray(s)){const t=n.reduce(((t,n)=>{const e=ut(n.props.x||"x");return t.concat(n.props.data.map((t=>({x:e(t)}))))}),[]);s=(0,n[0].type.getFormattedData)({data:t,bins:s}).reduce(((t,n,e)=>{let{x0:r,x1:i}=n;return 0===e?t.concat([r,i]):t.concat(i)}),[])}return{...i,bins:s}}function Dm(t,n){const{polar:e,startAngle:r,endAngle:i,categories:o,minDomain:a,maxDomain:s}=t;let l={polar:e,startAngle:r,endAngle:i,categories:o,minDomain:a,maxDomain:s},c=0;const u=n?n.slice(0):E().Children.toArray(t.children);l=Pm({children:u,props:t,childComponents:n,parentProps:l});const h=u.filter((t=>t.type&&"stack"===t.type.role)).length,d=mt(u,((t,n,e)=>{const r=Object.assign({},t.props,l);let i,o=t;return Aa(t)?(t.type&&ct(t.type.getData)?(o=e?E().cloneElement(t,e.props):t,i=o.type.getData(r)):i=_a(r),c+=1,i.map(((t,n)=>Object.assign({_stack:c,_group:n},t)))):null}),t,[],((t,n)=>t.concat(Sm()(n,"_group")))),f=h?"_group":"_stack";return Object.values(sp()(d,f))}function Om(t,n){return t.data?_a(t):Dm(t,n||E().Children.toArray(t.children))}function Lm(t,n,e){const{datasets:r,horizontal:i}=t,o=st(t,i?"y":"x"),a=Math.abs(o[1]-o[0]),s=void 0!==e?e:Array.isArray(r[0])&&r[0].length||1,l=(n||r.length)*s;return Math.round(.5*a/l)}function Tm(t,n,e){if(t.polar||"x"!==n)return;const r=e.filter((t=>t.type&&t.type.role&&"group"===t.type.role));if(r.length<1)return;const{offset:i,children:o}=r[0].props;if(!i)return;const a=Array.isArray(o)&&o[0];if(!a)return;let s=a.props.barWidth,l=a.props.data&&a.props.data.length||1;if(a&&"stack"===a.type.role){const t=a.props.children&&a.props.children[0];if(!t)return;s=t.props.barWidth,l=a.props.children.length}const c=s||Lm(t,o.length,l);return{x:c*o.length/2+(i-c*((o.length-1)/2))}}function jm(t,n,e){const r=e?e.slice(0):E().Children.toArray(t.children),i=t.data?_a(t):void 0,{polar:o,startAngle:a,endAngle:s,categories:l,minDomain:c,maxDomain:u,horizontal:h}=t,d={horizontal:h,polar:o,startAngle:a,endAngle:s,minDomain:c,maxDomain:u,categories:l},f=i?Object.assign(d,{data:i}):d,p=mt(r,(t=>{const e=Object.assign({},t.props,f);return Va(t)?t.type&&ct(t.type.getDomain)?t.props&&t.type.getDomain(e,n):Ta(e,n):null}),t);return[0===p.length?0:Et(p),0===p.length?1:At(p)]}function $m(t,n,e){const r=e||E().Children.toArray(t.children),i=za(t,n),o=Tm(t,n,r);let a;if(i)a=i;else{const e=Wa(t,n),i=Ia(t,n),o=(t.data||t.y)&&_a(t),s=o?$a(t,n,o):[],l=jm(t,n,r);a=Na(e||Et([...s,...l]),i||At([...s,...l]))}return La(a,Object.assign({domainPadding:o},t),n)}function Nm(t,n,e){if(t.data)return Yo(t,n);const r=e?e.slice(0):E().Children.toArray(t.children),i=V()(mt(r,(e=>Qo(Object.assign({},e.props,{horizontal:t.horizontal}),n)),t));return i.length>1?Ko("linear"):Ko(i[0])}function zm(t){const n=Rd(t,["groupComponent","containerComponent","labelComponent"]);let e=t.events;return Array.isArray(n)&&(e=Array.isArray(t.events)?n.concat(...t.events):n),e||[]}function Rm(t,n,e){const{style:r}=t;let{colorScale:i,color:o}=t;if(r&&r.data&&r.data.fill)return r.data.fill;if(i=n.props&&n.props.colorScale?n.props.colorScale:i,o=n.props&&n.props.color?n.props.color:o,!i&&!o)return;const a=Array.isArray(i)?i:$u(i);return o||a[e%a.length]}function Im(t,n,e){return tt(n,t&&t[e]&&t[e].style?t[e].style:{})}function Wm(t,n,e){const{style:r,role:i}=e,o=t.props.style||{};if(Array.isArray(o))return o;const a=t.type&&t.type.role,s="stack"===a?void 0:Rm(e,t,n),l="line"===a?{fill:"none",stroke:s}:{fill:s},c="stack"===i?{}:{width:Lm(e)},u=q()({},o.data,Object.assign({},c,r.data,l)),h=q()({},o.labels,r.labels);return{...o,parent:r.parent,data:u,labels:h}}function Bm(t,n){return mt(t.slice(0),(t=>{const e=t.props||{};if(!Va(t)||!e.categories)return null;const r=e.categories&&!Array.isArray(e.categories)?e.categories[n]:e.props.categories,i=r&&r.filter((t=>"string"==typeof t));return i?wt(i):[]}))}function Vm(t){return mt(t.slice(0),(t=>{const n=t.props||{};let e;return Aa(t)?(e=t.type&&ct(t.type.getData)?t.type.getData(n):_a(n),e.map((t=>({x:t.xName,y:t.yName})))):null}),{},{x:[],y:[]},((t,n)=>{const e=Array.isArray(n)?n.map((t=>t.x)).filter(Boolean):n.x,r=Array.isArray(n)?n.map((t=>t.y)).filter(Boolean):n.y;return{x:void 0!==e?t.x.concat(e):t.x,y:void 0!==r?t.y.concat(r):t.y}}))}function Fm(t,n,e){const r=W()(t.categories)?t.categories[n]:t.categories,i=ef(e,n),o=i?Ma(i.props,n):[],a=r||Bm(e,n);return V()([...a,...o].flat())}function Um(t,n){const e=n||E().Children.toArray(t.children),r=Fm(t,"x",e),i=Fm(t,"y",e),o=Vm(e);return{x:V()([...r,...o.x].flat()),y:V()([...i,...o.y].flat())}}function Hm(t,n,e){const r=t.categories&&!Array.isArray(t.categories)?t.categories.x:t.categories,i=t.categories&&!Array.isArray(t.categories)?t.categories.y:t.categories,o=r&&i?{}:e||Um(t,n),a=r||o.x,s=i||o.y;return{x:a.length>0?a:void 0,y:s.length>0?s:void 0}}function qm(t){const n=E().useRef();return E().useEffect((()=>{n.current=t})),n.current}var Gm=r(7314),Km=r.n(Gm),Ym=r(2516),Xm=r.n(Ym);class Zm extends E().Component{static displayName="VictorySharedEvents";static role="shared-event-wrapper";static contextType=_u;static defaultProps={groupComponent:E().createElement("g",null)};constructor(t){super(t),this.getScopedEvents=Ld.bind(this),this.getEventState=jd.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(t)}shouldComponentUpdate(t){if(!Oh()(this.props,t)){this.baseProps=this.getBaseProps(t);const n=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,n)}return!0}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(){const t=Object.keys(this.globalEvents);Mt(this.prevGlobalEventKeys,t).forEach((t=>this.removeGlobalListener(t))),Mt(t,this.prevGlobalEventKeys).forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentWillUnmount(){this.prevGlobalEventKeys.forEach((t=>this.removeGlobalListener(t)))}addGlobalListener(t){const n=n=>{const e=this.globalEvents[t];return e&&e(Vd(n))};this.boundGlobalEvents[t]=n,window.addEventListener(Id(t),n)}removeGlobalListener(t){window.removeEventListener(Id(t),this.boundGlobalEvents[t])}getAllEvents(t){const n=Rd(t,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(t.events)?n.concat(...t.events):n:t.events}applyExternalMutations(t,n){if(!j()(n)){const e=t.externalEventMutations.reduce(((t,n)=>ct(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getExternalMutations(t,n){return j()(t.externalEventMutations)?void 0:$d(t.externalEventMutations,n,this.state,Object.keys(n))}cacheSharedEvents(t,n,e){this.sharedEventsCache[t]=[n,e]}getCachedSharedEvents(t,n){const[e,r]=this.sharedEventsCache[t]||[];if(e&&Oh()(n,r))return e}getBaseProps(t){const{container:n}=t,e=E().Children.toArray(this.props.children),r=this.getBasePropsFromChildren(e),i=n?n.props:{};return Object.assign({},r,{parent:i})}getBasePropsFromChildren(t){const n=mt(t,((t,n)=>{if(t.type&&ct(t.type.getBaseProps)){const e=t.props&&t.type.getBaseProps(t.props);return e?[[n,e]]:null}return null}));return Km()(n)}getNewChildren(t,n){const{events:e,eventKey:r}=t,i=(t,o)=>t.reduce(((t,a,s)=>{if(a.props.children){const n=E().Children.toArray(a.props.children),e=o.slice(s,s+n.length),r=E().cloneElement(a,a.props,i(n,e));return t.concat(r)}if("parent"!==o[s]&&a.type&&ct(a.type.getBaseProps)){const i=a.props.name||o[s],l=Array.isArray(e)&&e.filter((t=>"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(i)>-1:t.childName===i||"all"===t.childName))),c=[i,n,l,Xm()(this.state[i])],u=this.getCachedSharedEvents(i,c)||{events:l,getEvents:(t,e)=>this.getScopedEvents(t,e,i,n),getEventState:(t,n)=>this.getEventState(t,n,i)};return this.cacheSharedEvents(i,u,c),t.concat(E().cloneElement(a,Object.assign({key:`events-${i}`,sharedEvents:u,eventKey:r,name:i},a.props)))}return t.concat(a)}),[]),o=Object.keys(n),a=E().Children.toArray(t.children);return i(a,o)}getContainer(t,n,e){const r=this.getNewChildren(t,n),i=Array.isArray(e)?e.filter((t=>"parent"===t.target)):[],o=i.length>0?{events:i,getEvents:(t,e)=>this.getScopedEvents(t,e,null,n),getEventState:this.getEventState}:null,a=t.container||t.groupComponent,s=a.type&&a.type.role,l=a.props||{},c=Od.bind(this),u=o&&c({sharedEvents:o},"parent"),h=q()({},this.getEventState("parent","parent"),l,n.parent,{children:r}),d=q()({},Td(u,"parent",h),l.events);this.globalEvents=Wd(d);const f=Bd(d);return"container"===s?E().cloneElement(a,Object.assign({},h,{events:f})):E().cloneElement(a,f,r)}render(){const t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):E().cloneElement(this.props.container,{children:this.props.children})}}const Qm=t=>{const{cx:n,cy:e,r:r,startAngle:i,endAngle:o,closedPath:a}=t,s=Math.abs(o-i)/2+i,l=n+r*Math.cos(rt(i)),c=e-r*Math.sin(rt(i));return`${a?` M ${n}, ${e} L ${l}, ${c}`:`M ${l}, ${c}`} A ${r}, ${r}, 0, ${s-i<=180?0:1}, 0, ${n+r*Math.cos(rt(s))}, ${e-r*Math.sin(rt(s))} A ${r}, ${r}, 0, ${o-s<=180?0:1}, 0, ${n+r*Math.cos(rt(o))}, ${e-r*Math.sin(rt(o))} ${a?"Z":""}`},Jm={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},ty=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({stroke:"black",fill:"none"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...Jm,...t});return E().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:Qm(n),style:n.style,desc:n.desc,tabIndex:n.tabIndex,className:n.className,role:n.role,shapeRendering:n.shapeRendering,transform:n.transform,clipPath:n.clipPath})},ny=(t,n,e)=>"x"===e?t*Math.cos(n):-t*Math.sin(n),ey=t=>{const n=t.dependentAxis?"radial":"angular",e="angular"===n?"radial":"angular";return t.horizontal?e:n},ry=(t,n)=>({tickStyle:et(t.ticks,n),labelStyle:et(t.tickLabels,n),gridStyle:et(t.grid,n)}),iy=t=>{const{left:n,right:e,top:r,bottom:i}=Z(t),{width:o,height:a}=t;if(void 0===o||void 0===a)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(o-n-e,a-r-i)/2},oy=(t,n)=>{if(t.range&&t.range[n])return t.range[n];if(t.range&&Array.isArray(t.range))return t.range;if("angular"===ey(t))return[rt(t.startAngle),rt(t.endAngle)];const e=iy(t);return[t.innerRadius||0,e]},ay=t=>{const n=tf(t),e=Yo(t,n),r=pf(t,n)||e.domain(),i=oy(t,n);return e.range(i),e.domain(r),e},sy=function(t,n){if(void 0===n&&(n={}),t.disableInlineStyles)return{};const e=t.style||{};return{parent:q()({height:"auto",width:"100%"},e.parent,n.parent),axis:q()({},e.axis,n.axis),axisLabel:q()({},e.axisLabel,n.axisLabel),grid:q()({},e.grid,n.grid),ticks:q()({},e.ticks,n.ticks),tickLabels:q()({},e.tickLabels,n.tickLabels)}},ly=t=>{const{axisAngle:n,startAngle:e,dependentAxis:r}=t,i=mf(t,tf(t));return void 0!==i&&r?it(i):void 0===n?e:n},cy=(t,n,e,r)=>{const{axisType:i,radius:o,scale:a,style:s,stringTicks:l,ticks:c,tickFormat:u,origin:h}=n,d=u(e,r,c),f=l?l[r]:e,{tickStyle:p}=ry(s,{tick:f,tickValue:e,index:r,ticks:c,stringTicks:l,radius:o,scale:a,axisType:i,text:d}),m="radial"===i?ly(t):void 0,y=p.padding||p.size||0,g=rt(90-m),x="angular"===i?a(e):rt(-1*m),v="angular"===i?o:a(e);return"angular"===i?{index:r,datum:f,style:p,x1:ny(v,x,"x")+h.x,y1:ny(v,x,"y")+h.y,x2:ny(v+y,x,"x")+h.x,y2:ny(v+y,x,"y")+h.y}:{index:r,datum:f,style:p,x1:v*Math.cos(x)+Math.cos(g)*y+h.x,x2:v*Math.cos(x)-Math.cos(g)*y+h.x,y1:v*Math.sin(x)+Math.sin(g)*y+h.y,y2:v*Math.sin(x)-Math.sin(g)*y+h.y}},uy=(t,n,e,r)=>{const{axisType:i,radius:o,tickFormat:a,style:s,scale:l,ticks:c,stringTicks:u,origin:h}=n,d=a(e,r,c),f=u?u[r]:e,{labelStyle:p}=ry(s,{text:d,tick:f,tickValue:e,index:r,ticks:c,stringTicks:u,radius:o,scale:l,axisType:i}),{tickLabelComponent:m}=t,y=m?.props.labelPlacement?m.props.labelPlacement:t.labelPlacement,g=p.padding||0,x="radial"===i?ly(t):void 0,v="angular"===i?it(l(e)):x+0,b=void 0===p.angle?Ga(Object.assign({},t,{labelPlacement:y}),v):p.angle,_="angular"===i?o+g:l(e);return{index:r,datum:f,style:p,angle:b,textAnchor:p.textAnchor||Ha(Object.assign({},t,{labelPlacement:y}),v),text:d,x:_*Math.cos(rt(v))+h.x,y:-_*Math.sin(rt(v))+h.y}},hy=(t,n,e,r)=>{const{axisType:i,radius:o,style:a,scale:s,stringTicks:l,ticks:c,tickFormat:u,origin:h}=n,d=u(e,r,c),{startAngle:f,endAngle:p,innerRadius:m=0}=t,y=l?l[r]:e,{gridStyle:g}=ry(a,{tick:y,tickValue:e,index:r,ticks:c,stringTicks:l,radius:o,scale:s,axisType:i,text:d}),x=s(e);return"angular"===i?{index:r,datum:y,style:g,x1:ny(o,x,"x")+h.x,y1:ny(o,x,"y")+h.y,x2:ny(m,x,"x")+h.x,y2:ny(m,x,"y")+h.y}:{style:g,index:r,datum:y,cx:h.x,cy:h.y,r:s(e),startAngle:f,endAngle:p}},dy=(t,n)=>{const e=yf(t,n),r=(t=>{const n=Object.assign({polar:!0},t),e=(t=>{const{theme:n={},dependentAxis:e}=t,r=n.polarAxis&&n.polarAxis.style||n.axis&&n.axis.style,i=e?"dependentAxis":"independentAxis",o=n?.[e?"polarDependentAxis":"polarIndependentAxis"]?.style||n?.[i]?.style;return r&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce(((t,n)=>(t[n]=q()({},o?.[n],r?.[n]),t)),{}):o||r})(n),r=sy(n,e),i=Z(n),o=tf(n),a=ey(n),s=lf(n)?n.tickValues:void 0,l=pf(n,o),c=oy(n,o),u=ay(n),h=df(n,u),d="angular"===a?((t,n)=>Sm()(t,(t=>n(t)%(2*Math.PI))))(h,u):h;return{axis:o,style:r,padding:i,stringTicks:s,axisType:a,scale:u,ticks:d,tickFormat:uf(n,u),domain:l,range:c,radius:iy(n),origin:at(n)}})(e),{style:i,scale:o,ticks:a,domain:s}=r,{width:l,height:c,standalone:u,theme:h,name:d}=e,f=((t,n)=>{const{style:e,axisType:r,radius:i,origin:o}=n,{startAngle:a,endAngle:s,innerRadius:l=0}=t,c="radial"===r?rt(ly(t)):void 0;return"radial"===r?{style:e.axis,x1:ny(l,c,"x")+o.x,x2:ny(i,c,"x")+o.x,y1:ny(l,c,"y")+o.y,y2:ny(i,c,"y")+o.y}:{style:e.axis,cx:o.x,cy:o.y,r:i,startAngle:a,endAngle:s}})(e,r),p=((t,n)=>{const{axisType:e,radius:r,style:i,origin:o}=n,{axisLabelComponent:a}=t;if("radial"!==e)return{};const s=a?.props.labelPlacement?a.props.labelPlacement:t.labelPlacement,l=i&&i.axisLabel||{},c="radial"===e?ly(t):void 0,u=void 0===l.angle?Ga(Object.assign({},t,{labelPlacement:s}),c):l.angle,h=r+(l.padding||0);return{style:l,angle:u,textAnchor:l.textAnchor||Ha(Object.assign({},t,{labelPlacement:s}),c),verticalAnchor:l.verticalAnchor||qa(Object.assign({},t,{labelPlacement:s}),c),text:t.label,x:ny(h,rt(c),"x")+o.x,y:ny(h,rt(c),"y")+o.y}})(e,r),m={parent:{style:i.parent,ticks:a,scale:o,width:l,height:c,domain:s,standalone:u,theme:h,name:d}};return a.reduce(((t,n,i)=>(t[i]={axis:f,axisLabel:p,ticks:cy(e,r,n,i),tickLabels:uy(e,r,n,i),grid:hy(e,r,n,i)},t)),m)},fy={width:450,height:300,padding:50};class py extends E().Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:E().createElement(Qd,null),axisLabelComponent:E().createElement(lh,null),circularAxisComponent:E().createElement(ty,null),circularGridComponent:E().createElement(ty,null),containerComponent:E().createElement(Cu,null),endAngle:360,gridComponent:E().createElement(Qd,null),groupComponent:E().createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Eh.grayscale,tickComponent:E().createElement(Qd,null),tickLabelComponent:E().createElement(lh,null)};static getDomain=pf;static getAxis=tf;static getScale=ay;static getStyles=t=>sy(t,fy.style);static getBaseProps=t=>dy(t,fy);static expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];renderAxisLine(t){const{dependentAxis:n}=t,e=n?t.axisComponent:t.circularAxisComponent,r=this.getComponentProps(e,"axis",0);return E().cloneElement(e,r)}renderLabel(t){const{axisLabelComponent:n,dependentAxis:e,label:r}=t;if(!r||!e)return null;const i=this.getComponentProps(n,"axisLabel",0);return E().cloneElement(n,i)}renderAxis(t){const{tickComponent:n,tickLabelComponent:e,name:r}=t,i=t=>{const{style:n={},events:e={}}=t;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!j()(e)},o="radial"==(t.dependentAxis?"radial":"angular")?t.circularGridComponent:t.gridComponent,a=this.dataKeys.map(((t,e)=>{const o=Object.assign({key:`${r}-tick-${t}`},this.getComponentProps(n,"ticks",e)),a=E().cloneElement(n,o);return i(a.props)?a:void 0})).filter(Boolean),s=this.dataKeys.map(((t,n)=>{const e=Object.assign({key:`${r}-grid-${t}`},this.getComponentProps(o,"grid",n)),a=E().cloneElement(o,e);return i(a.props)?a:void 0})).filter(Boolean),l=this.dataKeys.map(((t,n)=>{const i=Object.assign({key:`${r}-tick-${t}`},this.getComponentProps(e,"tickLabels",n));return E().cloneElement(e,i)})),c=[this.renderAxisLine(t),this.renderLabel(t),...a,...s,...l];return this.renderGroup(t,c)}renderGroup(t,n){const{groupComponent:e}=t;return E().cloneElement(e,{},n)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=my,n=yf(this.props,fy);if(this.shouldAnimate())return this.animateComponent(n,t);const e=this.renderAxis(n);return n.standalone?this.renderContainer(n.containerComponent,e):e}}const my=Hd(py,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),yy={width:450,height:300,padding:50};function gy(t,n){const e=function(t){const n=t.style&&t.style.parent;return{parent:q()({},n,{height:"100%",width:"100%",userSelect:"none"})}}(t),r=ht(t,yy,"chart"),{horizontal:i,polar:o}=r,a=Um(r,n),s=Hm(r,n,a),l=by(r,n,a),c={x:vy(Object.assign({},r,{categories:s}),"x",n),y:vy(Object.assign({},r,{categories:s}),"y",n)},u={x:st(r,"x"),y:st(r,"y")},h={x:Zo(r,"x")||Nm(r,"x"),y:Zo(r,"y")||Nm(r,"y")};return{categories:s,domain:c,range:u,horizontal:i,scale:{x:h.x.domain(c.x).range(i?u.y:u.x),y:h.y.domain(c.y).range(i?u.x:u.y)},stringMap:l,style:e,origin:o?at(r):of(c),padding:Z(r)}}const xy=(t,n)=>{let e=E().Children.toArray(t.children);if(0===e.length)e.push(n.independent,n.dependent);else{const r={dependent:rf(e,"dependent"),independent:rf(e,"independent")};0===r.dependent.length&&0===r.independent.length&&(e=t.prependDefaultAxes?[n.independent,n.dependent].concat(e):e.concat([n.independent,n.dependent]))}return e},vy=(t,n,e)=>{const r=e||E().Children.toArray(t.children),i=$m(t,n,r),o=ef(r,n);return o&&o.props&&o.props.invertAxis?i.concat().reverse():i},by=(t,n,e)=>{const r=e.x&&0!==e.x.length?e.x.reduce(((t,n,e)=>(t[n]=e+1,t)),{}):null,i=e.y&&0!==e.y.length?e.y.reduce(((t,n,e)=>(t[n]=e+1,t)),{}):null;return{x:r,y:i}},_y={width:450,height:300,padding:50},My={backgroundComponent:E().createElement(wm,null),containerComponent:E().createElement(Cu,null),defaultAxes:{independent:E().createElement(Tf,null),dependent:E().createElement(Tf,{dependentAxis:!0})},defaultPolarAxes:{independent:E().createElement(my,null),dependent:E().createElement(my,{dependentAxis:!0})},groupComponent:E().createElement("g",null),standalone:!0,theme:Eh.grayscale},Cy=t=>{const n=E().useMemo((()=>({...My,...t})),[t]),{getAnimationProps:e,setAnimationState:r,getProps:i}=Em(),o=i(n),a=ht(o,_y,"chart"),{desc:s,eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:y,name:g,title:x}=a,v=o.polar?a.defaultPolarAxes:a.defaultAxes,b=E().useMemo((()=>xy(a,v)),[a,v]),_=E().useMemo((()=>gy(a,b)),[a,b]),{domain:M,scale:C,style:w,origin:A,horizontal:k}=_,S=E().useMemo((()=>{const t=function(t,n,e){const r=n||xy(t),i=e||gy(t,r),o=i.style.parent,{height:a,polar:s,theme:l,width:c}=t,{origin:u,horizontal:h}=i,d=t.name||"chart";return r.filter(E().isValidElement).map(((n,e)=>{const r=n.type&&n.type.role,f=Array.isArray(n.props.style)?n.props.style:q()({},n.props.style,{parent:o}),p=function(t,n,e){const r=nf([t]);if(r.length>0)return function(t,n,e){const{domain:r,scale:i,stringMap:o,categories:a,horizontal:s}=e;return{stringMap:o,horizontal:s,categories:a,startAngle:n.startAngle,endAngle:n.endAngle,innerRadius:n.innerRadius,domain:r,scale:i}}(r[0],n,e);const{categories:i,domain:o,range:a,scale:s,stringMap:l,horizontal:c}=e;return{categories:i,domain:o,range:a,scale:s,stringMap:l,horizontal:c}}(n,t,i),m=n.props.name||`${d}-${r}-${e}`,y=q()({horizontal:h,height:a,polar:s,theme:l,width:c,style:f,name:m,origin:s?u:void 0,padding:i.padding,key:`${m}-key-${e}`,standalone:!1},p);return E().cloneElement(n,y)}))}(o,b,_).map(((t,n)=>{const r=Object.assign({animate:e(o,t,n)},t.props);return E().cloneElement(t,r)}));if(o.style&&o.style.background){const n=function(t,n){const e=t.backgroundComponent,r=t.polar?n.range.y[1]:n.range.y[0]-n.range.y[1],i=n.range.x[1]-n.range.x[0],o=t.horizontal?n.scale.y.range()[0]:n.scale.x.range()[0],a=t.horizontal?n.scale.x.range()[1]:n.scale.y.range()[1],s=t.polar?n.origin.x:o,l=t.polar?n.origin.y:a,c=t.name||"chart",u={height:r,polar:t.polar,scale:n.scale,style:t.style.background,x:s,y:l,key:`${c}-background`,width:i};return E().cloneElement(e,q()({},e.props,u))}(o,_);t.unshift(n)}return t}),[e,b,o,_]),P=E().useMemo((()=>u?{desc:s,domain:M,width:f,height:p,horizontal:k,name:g,origin:y?A:void 0,polar:y,theme:m,title:x,scale:C,standalone:u,style:w.parent}:{}),[s,M,p,k,g,A,y,C,u,w,x,m,f]),D=E().useMemo((()=>{if(u){const t=q()({},c.props,P,Vc(n));return E().cloneElement(c,t)}return h}),[h,u,c,P,n]),O=E().useMemo((()=>zm(o)),[o]),L=qm(n);return E().useEffect((()=>()=>{n.animate&&r(L,n)}),[r,L,n]),j()(O)?E().cloneElement(D,D.props,S):E().createElement(Zm,{container:D,eventKey:l,events:O,externalEventMutations:d},S)},wy=E().memo(Cy,Oh());wy.displayName="VictoryChart",wy.expectedComponents=["groupComponent","containerComponent"];const Ay=t=>{let{desc:n,children:e,tabIndex:r,className:i="VictoryAccessibleGroup",...o}=t;const a=n&&(o["aria-describedby"]||n.split(" ").join("-"));return n?E().createElement("g",{"aria-label":o["aria-label"],"aria-describedby":a,className:i,tabIndex:r},E().createElement("desc",{id:a},n),e):E().createElement("g",{"aria-label":o["aria-label"],"aria-describedby":o["aria-describedby"],className:i,tabIndex:r},e)},Ey=t=>{const{x:n,y:e,size:r,symbol:i}=t;if(t.getPath)return t.getPath(n,e,r);const o=M;return("function"==typeof o[i]?o[i]:o.circle)(n,e,r)},ky={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Sy=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=nt(t.size,t),o=et(t.style,t),a=nt(t.symbol,t),s=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,size:i,style:o,symbol:a,tabIndex:s})})({...ky,...t}),e=Vc(n);return E().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:Ey(n),style:n.style,desc:n.desc,tabIndex:n.tabIndex,role:n.role,shapeRendering:n.shapeRendering,className:n.className,transform:n.transform,clipPath:n.clipPath,...e})};var Py=r(9560),Dy=r.n(Py),Oy=r(3105),Ly=r.n(Oy),Ty=r(4542),jy=r.n(Ty);const $y=t=>{const n=t.orientation||"top";return"left"===n||"right"===n?(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:i,height:o,center:a}=t,s="left"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,h=a.y,d=u-s*(i/2),f=u+s*(i/2),p=h+o/2,m=h-o/2,y=s*(l-d)>0?0:t.pointerLength,g=`${e} ${e} ${"left"===r?"0 0 0":"0 0 1"}`;return`M ${d}, ${h-n/2}\n L ${y?l:d}, ${y?c:h+n/2}\n L ${d}, ${h+n/2}\n L ${d}, ${p-e}\n A ${g} ${d+s*e}, ${p}\n L ${f-s*e}, ${p}\n A ${g} ${f}, ${p-e}\n L ${f}, ${m+e}\n A ${g} ${f-s*e}, ${m}\n L ${d+s*e}, ${m}\n A ${g} ${d}, ${m+e}\n z`})(t):(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:i,height:o,center:a}=t,s="bottom"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,h=a.y,d=h+s*(o/2),f=h-s*(o/2),p=u+i/2,m=u-i/2,y=s*(c-d)<0?0:t.pointerLength,g=`${e} ${e} ${"bottom"===r?"0 0 0":"0 0 1"}`;return`M ${u-n/2}, ${d}\n L ${y?l:u+n/2}, ${y?c:d}\n L ${u+n/2}, ${d}\n L ${p-e}, ${d}\n A ${g} ${p}, ${d-s*e}\n L ${p}, ${f+s*e}\n A ${g} ${p-e}, ${f}\n L ${m+e}, ${f}\n A ${g} ${m}, ${f+s*e}\n L ${m}, ${d-s*e}\n A ${g} ${m+e}, ${d}\n z`})(t)},Ny={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},zy=t=>{const n=(t=>{const n=nt(t.id,t),e=et(t.style,t);return{...t,id:n,style:e}})({...Ny,...t}),e=Vc(n);Bc(n.height,"Flyout props[height] is undefined"),Bc(n.width,"Flyout props[width] is undefined"),Bc(n.x,"Flyout props[x] is undefined"),Bc(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 E().cloneElement(n.pathComponent,{...n.events,...e,style:n.style,d:$y(r),className:n.className,shapeRendering:n.shapeRendering,role:n.role,transform:n.transform,clipPath:n.clipPath})},Ry={cornerRadius:5,pointerLength:10,pointerWidth:10};class Iy extends E().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:E().createElement(lh,null),flyoutComponent:E().createElement(zy,null),groupComponent:E().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?Jc()("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=Ka(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||Eh.grayscale,e=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>q()({},t,e))):q()({},t.style,e),i=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},o=t.flyoutStyle?q()({},t.flyoutStyle,i):i,a=Array.isArray(r)?r.map((n=>et(n,t))):et(r,t);return{style:a,flyoutStyle:et(o,Object.assign({},t,{style:a}))}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:e,dx:r,dy:i}=t,o=nt(t.active,t);let a=nt(t.text,Object.assign({},t,{active:o}));null==a&&(a=""),"number"==typeof a&&(a=a.toString());const{style:s,flyoutStyle:l}=this.getStyles(Object.assign({},t,{active:o,text:a})),c=nt(t.orientation,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l}))||this.getDefaultOrientation(t),u=Z({padding:nt(t.flyoutPadding,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c}))||this.getLabelPadding(s)}),h=nt(t.pointerWidth,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c})),d=nt(t.pointerLength,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c})),f=Zu(a,s),{flyoutHeight:p,flyoutWidth:m}=this.getDimensions(Object.assign({},t,{style:s,flyoutStyle:l,active:o,text:a,orientation:c,flyoutPadding:u,pointerWidth:h,pointerLength:d}),f),y=Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c,flyoutHeight:p,flyoutWidth:m,flyoutPadding:u,pointerWidth:h,pointerLength:d}),g=W()(e)&&void 0!==e?.x?nt(e.x,y):0,x=W()(e)&&void 0!==e?.y?nt(e.y,y):0;return{...y,centerOffset:{x:g,y:x},dx:void 0!==r?nt(r,y):0,dy:void 0!==i?nt(i,y):0,cornerRadius:nt(n,y)}}getCalculatedValues(t){const{style:n,text:e,flyoutStyle:r,flyoutHeight:i,flyoutWidth:o}=t,a={height:i,width:o};return{style:n,flyoutStyle:r,labelSize:Zu(e,n),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:n,y:e,style:r}=t,i=(r||{}).angle||t.angle||this.getDefaultAngle(t);return i?`rotate(${i} ${n} ${e})`:void 0}getDefaultAngle(t){const{polar:n,labelPlacement:e,orientation:r,datum:i}=t;if(!n||!e||"vertical"===e)return 0;const o=Ka(t,i);let a=0;return 0===o||180===o?a="top"===r&&180===o?270:90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===e?0:90)}constrainTooltip(t,n,e){const{x:r,y:i}=t,{width:o,height:a}=e,s=[0,n.width],l=[0,n.height],c=[r-o/2,r+o/2],u=[i-a/2,i+a/2],h=[c[0]<s[0]?s[0]-c[0]:0,c[1]>s[1]?c[1]-s[1]:0],d=[u[0]<l[0]?l[0]-u[0]:0,u[1]>l[1]?u[1]-l[1]:0];return{x:Math.round(r+h[0]-h[1]),y:Math.round(i+d[0]-d[1])}}getFlyoutCenter(t,n){const{x:e,y:r,dx:i,dy:o,pointerLength:a,orientation:s,constrainToVisibleArea:l,centerOffset:c}=t,{height:u,width:h}=n,d="left"===s?-1:1,f="bottom"===s?-1:1,p={x:"left"===s||"right"===s?e+d*(a+h/2+d*i):e+i,y:"top"===s||"bottom"===s?r-f*(a+u/2-f*o):r+o},m=W()(t.center)&&void 0!==t.center.x?t.center.x:p.x,y=W()(t.center)&&void 0!==t.center.y?t.center.y:p.y,g={x:m+c.x,y:y+c.y};return l?this.constrainTooltip(g,t,n):g}getLabelPadding(t){if(!t)return 0;const n=Array.isArray(t)?t.map((t=>t.padding)):[t.padding];return Math.max(...n,0)}getDimensions(t,n){const{orientation:e,pointerLength:r,pointerWidth:i,flyoutHeight:o,flyoutWidth:a,flyoutPadding:s}=t,l=nt(t.cornerRadius,t);return{flyoutHeight:o?nt(o,t):(()=>{const t=n.height+s.top+s.bottom,r="top"===e||"bottom"===e?2*l:2*l+i;return Math.max(r,t)})(),flyoutWidth:a?nt(a,t):(()=>{const t=n.width+s.left+s.right,i="left"===e||"right"===e?2*l+r:2*l;return Math.max(i,t)})()}}getLabelProps(t,n){const{flyoutCenter:e,style:r,labelSize:i,dy:o=0,dx:a=0}=n,{text:s,datum:l,activePoints:c,labelComponent:u,index:h,flyoutPadding:d}=t,f=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return q()({},u.props,{key:`${this.id}-label-${h}`,text:s,datum:l,activePoints:c,textAnchor:f,dy:o,dx:a,style:r,x:(()=>{if(!f||"middle"===f)return e.x;const t="end"===f?-1:1;return e.x-t*(i.width/2)})()+(d.left-d.right)/2,y:e.y+(d.top-d.bottom)/2,verticalAnchor:"middle",angle:r.angle})}getPointerOrientation(t,n,e){const r=n.y+e.height/2,i=n.y-e.height/2,o=n.x-e.width/2,a=n.x+e.width/2,s=[{side:"top",val:i>t.y?i-t.y:-1},{side:"bottom",val:r<t.y?t.y-r:-1},{side:"right",val:a<t.x?t.x-a:-1},{side:"left",val:o>t.x?o-t.x:-1}];return N()(s,"val","desc")[0].side}getFlyoutProps(t,n){const{flyoutDimensions:e,flyoutStyle:r,flyoutCenter:i}=n,{x:o,y:a,dx:s,dy:l,datum:c,activePoints:u,index:h,pointerLength:d,pointerWidth:f,cornerRadius:p,events:m,flyoutComponent:y}=t,g=nt(t.pointerOrientation,t);return q()({},y.props,{x:o,y:a,dx:s,dy:l,datum:c,activePoints:u,index:h,pointerLength:d,pointerWidth:f,cornerRadius:p,events:m,orientation:g||this.getPointerOrientation({x:o,y:a},i,e),key:`${this.id}-tooltip-${h}`,width:e.width,height:e.height,style:r,center:i})}renderTooltip(t){const n=nt(t.active,t),{renderInPortal:e}=t;if(!n)return e?E().createElement(Ou,null):null;const r=this.getEvaluatedProps(t),{flyoutComponent:i,labelComponent:o,groupComponent:a}=r,s=this.getCalculatedValues(r),l=[E().cloneElement(i,this.getFlyoutProps(r,s)),E().cloneElement(o,this.getLabelProps(r,s))],c=E().cloneElement(a,{role:"presentation",transform:s.transform},l);return e?E().createElement(Ou,null,c):c}render(){const t=ht(this.props,Ry,"tooltip");return this.renderTooltip(t)}}var Wy=r(5395),By=r.n(Wy),Vy=r(6898);const Fy=new class{withinBounds(t,n){const{width:e,height:r,polar:i,origin:o,scale:a}=t,s=Z(t,"voronoiPadding"),{x:l,y:c}=n;if(i){const t=Math.pow(l-o.x,2)+Math.pow(c-o.y,2),n=Math.max(...a.y.range());return t<Math.pow(n,2)}return l>=s.left&&l<=e-s.right&&c>=s.top&&c<=r-s.bottom}getDatasets(t){const n={x:Et(t.domain.x),y:Et(t.domain.y)},e=E().Children.toArray(t.children),r=(e,r,i)=>{const o=i&&i.type&&i.type.continuous,a=i?i.props&&i.props.style:t.style;return e.map(((e,i)=>{const{x:s,y:l,y0:c,x0:u}=Y(e),h=(Number(s)+Number(u))/2,d=(Number(l)+Number(c))/2;return Object.assign({_voronoiX:"y"===t.voronoiDimension?n.x:h,_voronoiY:"x"===t.voronoiDimension?n.y:d,eventKey:i,childName:r,continuous:o,style:a},e)}))};if(t.data)return r(t.data);const i=t=>{const n=_a(t);return Array.isArray(n)&&n.length>0?n:void 0};return mt(e,((n,e)=>{const o=(n.props||{}).name||e,a=t.voronoiBlacklist||[],s=a.filter((t=>!!t&&"string"==typeof t.valueOf())),l=a.filter(By()).some((t=>t.test(o)));if(!Aa(n)||s.includes(o)||l)return null;const c=(n.type&&ct(n.type.getData)?n.type.getData:i)(n.props);return c?r(c,o,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:i}=n;return Math.pow(r-t[0],2)+Math.pow(i-t[1],2)<Math.pow(e,2)}getVoronoiPoints(t,n){const e=this.getDatasets(t),r=e.map((n=>{const{x:e,y:r}=X(t,n);return[e,r]})),i=Vy.Z.from(r).find(n.x,n.y);return{points:this.withinRadius(r[i],n,t.radius)?this.findPoints(e,e[i]):[],index:i}}getActiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:i,activateLabels:o,labels:a}=t;if(!i&&!o)return[];const s=i?["data"]:[],l=a&&!o?s:s.concat("labels");return j()(l)?[]:l.map((t=>{const i=!0===r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:i,target:t,mutation:()=>({active:!0})}}))}getInactiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:i,activateLabels:o,labels:a}=t;if(!i&&!o)return[];const s=i?["data"]:[],l=a&&!o?s:s.concat("labels");return j()(l)?[]:l.map((t=>{const i=r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:i,target:t,mutation:()=>null}}))}getParentMutation(t,n,e,r){return[{target:"parent",eventKey:"parent",mutation:()=>({activePoints:t,mousePosition:n,parentSVG:e,vIndex:r})}]}onActivated(t,n){ct(t.onActivated)&&t.onActivated(n,t)}onDeactivated(t,n){ct(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||Mp(t),i=Cp(t,r);if(!this.withinBounds(n,i)){this.onDeactivated(n,e);const t=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return this.getParentMutation([],i,r).concat(...t)}const{points:o=[],index:a}=this.getVoronoiPoints(n,i),s=this.getParentMutation(o,i,r,a);if(e.length&&Oh()(o,e))return s;this.onActivated(n,o),this.onDeactivated(n,e);const l=o.length?o.map((t=>this.getActiveMutations(n,t))):[],c=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return s.concat(...c,...l)};onMouseMove=Sp()(this.handleMouseMove,32,{leading:!0,trailing:!1})};function Uy(t){return class extends t{static displayName="VictoryVoronoiContainer";static defaultProps={...Cu.defaultProps,activateData:!0,activateLabels:!0,labelComponent:E().createElement(Iy,null),voronoiPadding:5};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseLeave:(n,e)=>t.disable?{}:Fy.onMouseLeave(n,e),onTouchCancel:(n,e)=>t.disable?{}:Fy.onMouseLeave(n,e),onMouseMove:(n,e)=>t.disable?{}:Fy.onMouseMove(n,e),onTouchMove:(n,e)=>t.disable?{}:Fy.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 U()(t,["_x","_x1","_x0","_y","_y1","_y0"])}getLabelPosition(t,n,e){const{mousePosition:r,mouseFollowTooltips:i}=t,o=this.getDimension(t),a=X(t,this.getPoint(e[0]));let s=i?r:void 0;if(!o||e.length<2)return{...a,center:q()({},n.center,s)};const l="y"===o?r.x:a.x,c="x"===o?r.y:a.y;return s=i?r:{x:l,y:c},{x:l,y:c,center:q()({},n.center,s)}}getStyle(t,n,e){const{labels:r,labelComponent:i,theme:o}=t,a=i.props||{},s=o&&o.voronoi&&o.voronoi.style?o.voronoi.style:{},l="flyout"===e?a.flyoutStyle:a.style;return n.reduce(((t,n,i)=>{const o=q()({},a,{datum:n,active:!0}),c=ct(r)?r(o):void 0,u=void 0!==c?`${c}`.split("\n"):[],h=n.style&&n.style[e]||{},d=Array.isArray(l)?l[i]:l,f=et(q()({},d,h,s[e]),o),p=u.length?u.map((()=>f)):[f];return t.concat(p)}),[])}getDefaultLabelProps(t,n){const{voronoiDimension:e,horizontal:r,mouseFollowTooltips:i}=t,o=this.getPoint(n[0]),a=e&&n.length>1,s=void 0!==o._y1?o._y1:o._y;return{orientation:i?void 0:r?s<0?"left":"right":s<0?"bottom":"top",pointerLength:a?0:void 0,constrainToVisibleArea:!(!a&&!i)||void 0}}getLabelProps(t,n){const{labels:e,scale:r,labelComponent:i,theme:o,width:a,height:s}=t,l=i.props||{},c=n.reduce(((t,n)=>{const r=q()({},l,{datum:n,active:!0}),i=ct(e)?e(r):null;return null==i?t:t.concat(`${i}`.split("\n"))}),[]),{childName:u,eventKey:h,style:d,continuous:f,...p}=n[0],m=t.name===u?u:`${t.name}-${u}`,y=q()({key:`${m}-${h}-voronoi-tooltip`,id:`${m}-${h}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:n,datum:p,scale:r,theme:o},l,{text:c,width:a,height:s,style:this.getStyle(t,n,"labels"),flyoutStyle:this.getStyle(t,n,"flyout")[0]},this.getDefaultLabelProps(t,n)),g=this.getLabelPosition(t,y,n);return q()({},g,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:i}=n;return(Array.isArray(i)?i.filter(Boolean).length:i)?E().cloneElement(r,n):null}return null}getChildren(t){return[...E().Children.toArray(t.children),this.getTooltip(t)]}}}const Hy=Uy(Cu);var qy=r(9324),Gy=r.n(qy);const Ky={checkDomainEquality(t,n){const e=e=>{const r=t&&t[e],i=n&&n[e];return!r&&!i||!(!r||!i)&&Number(r[0])===Number(i[0])&&Number(r[1])===Number(i[1])};return e("x")&&e("y")},scale(t,n,e,r){const[i,o]=t,a=Math.abs(o-i),s=e.minimumZoom&&e.minimumZoom[r],l=this.getScaleFactor(n);if(s&&a<=s&&l<1)return t;const[c,u]=this.getDomain(e)[r],h=this.getScalePercent(n,e,r),d=l*i+h*(l*a),f=this.getMinimumDomain(d,e,r),[p,m]=this.getScaledDomain(t,l,h),y=[p>c&&p<u?p:c,m<u&&m>c?m:u],g=Math.abs(f[1]-f[0])>Math.abs(y[1]-y[0])?f:y;return vt([c,u])?[new Date(g[0]),new Date(g[1])]:g},getScaledDomain(t,n,e){const[r,i]=t,o=Math.abs(i-r),a=o-o*n,s=Number(r)+a*e,l=Number(i)-a*(1-e);return[Math.min(s,l),Math.max(s,l)]},getMinimumDomain(t,n,e){const{minimumZoom:r}=n,i=this.getDomain(n)[e],[o,a]=i,s=Math.abs(o-a)/1e3,l=r&&r[e]||s,c=t-l/2,u=t+l/2;return[c>o&&c<a?c:o,u<a&&u>o?u:Number(o)+l/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),[i,o]=r[e];return(this.getPosition(t,n,r)[e]-i)/Math.abs(o-i)},getPosition(t,n,e){const{x:r,y:i}=Cp(t),o={x:n.scale.x.domain(e.x),y:n.scale.y.domain(e.y)};return Ap(n,o,r,i)},pan(t,n,e){const[r,i]=t.map((t=>Number(t))),[o,a]=n.map((t=>Number(t))),s=r+e,l=i+e;let c;return c=s>o&&l<a?[s,l]:s<o?[o,o+(i-r)]:l>a?[a-(i-r),a]:t,vt(t)||vt(n)?c.map((t=>new Date(t))):c},getDomainScale(t,n,e){const r=Array.isArray(t)?t:t[e],[i,o]=r,a=n[e].range();return Math.abs(a[0]-a[1])/(o-i)},handleAnimation(t){const n=t.context.animationTimer,e=t.context.transitionTimer;return e.bypassAnimation(),n.bypassAnimation(),Gy()((()=>{n.resumeAnimation(),e.resumeAnimation()}),16)},getLastDomain(t,n){const{zoomDomain:e,cachedZoomDomain:r,currentDomain:i,domain:o}=t;return e&&!this.checkDomainEquality(e,r)?q()({},e,o):q()({},i||e||n,o)},getDomain(t){const{originalDomain:n,domain:e,children:r,zoomDimension:i}=t,o=A.Children.toArray(r);let a={};return o.length&&(a=i?{[i]:jm(t,i,o)}:{x:jm(t,"x",o),y:jm(t,"y",o)}),q()({},a,n,e)},onMouseDown(t,n){if(t.preventDefault(),!n.allowPan)return;const e=n.parentSVG||Mp(t),{x:r,y:i}=Cp(t,e);return[{target:"parent",mutation:()=>({startX:r,startY:i,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:i,startY:o,onZoomDomainChange:a,zoomDomain:s,zoomDimension:l,horizontal:c}=n,u=n.parentSVG||Mp(t),{x:h,y:d}=Cp(t,u),f=this.getDomain(n),p=this.getLastDomain(n,f),m=c?i-h:d-o,y=(c?d-o:i-h)/this.getDomainScale(p,e,"x"),g=m/this.getDomainScale(p,e,"y"),x={x:"y"===l?f.x:this.pan(p.x,f.x,y),y:"x"===l?f.y:this.pan(p.y,f.y,g)},v=this.handleAnimation(r),b={parentControlledProps:["domain"],startX:h,startY:d,parentSVG:u,currentDomain:x,originalDomain:f,cachedZoomDomain:s,zoomActive:!this.checkDomainEquality(f,p)};return ct(a)&&a(x,q()({},b,n)),[{target:"parent",callback:v,mutation:()=>b}]}},onWheel(t,n,e,r){if(!n.allowZoom)return;const{onZoomDomainChange:i,zoomDimension:o,zoomDomain:a}=n,s=this.getDomain(n),l=this.getLastDomain(n,s),{x:c,y:u}=l,h={x:"y"===o?l.x:this.scale(c,t,n,"x"),y:"x"===o?l.y:this.scale(u,t,n,"y")},d=this.handleAnimation(r),f={currentDomain:h,originalDomain:s,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(t)||n.zoomActive&&!this.checkDomainEquality(s,l)};return ct(i)&&i(h,q()({},f,n)),[{target:"parent",callback:d,mutation:()=>f}]}},Yy={checkDomainEquality:Ky.checkDomainEquality.bind(Ky),onMouseDown:Ky.onMouseDown.bind(Ky),onMouseUp:Ky.onMouseUp.bind(Ky),onMouseLeave:Ky.onMouseLeave.bind(Ky),onMouseMove:Sp()(Ky.onMouseMove.bind(Ky),16,{leading:!0,trailing:!1}),onWheel:Sp()(Ky.onWheel.bind(Ky),16,{leading:!0,trailing:!1})};function Xy(t){return class extends t{static displayName="VictoryZoomContainer";static defaultProps={...Cu.defaultProps,clipContainerComponent:E().createElement(Pu,null),allowPan:!0,allowZoom:!0,zoomActive:!1};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseDown:(n,e)=>t.disable?{}:Yy.onMouseDown(n,e),onTouchStart:(n,e)=>t.disable?{}:Yy.onMouseDown(n,e),onMouseUp:(n,e)=>t.disable?{}:Yy.onMouseUp(n,e),onTouchEnd:(n,e)=>t.disable?{}:Yy.onMouseUp(n,e),onMouseLeave:(n,e)=>t.disable?{}:Yy.onMouseLeave(n,e),onTouchCancel:(n,e)=>t.disable?{}:Yy.onMouseLeave(n,e),onMouseMove:(n,e,r,i)=>t.disable?{}:Yy.onMouseMove(n,e,r,i),onTouchMove:(n,e,r,i)=>t.disable?{}:(n.preventDefault(),Yy.onMouseMove(n,e,r,i)),...t.disable||!t.allowZoom?{}:{onWheel:Yy.onWheel}}}];clipDataComponents(t,n){const{scale:e,clipContainerComponent:r,polar:i,origin:o,horizontal:a}=n,s=a?e.y.range():e.x.range(),l=a?e.x.range():e.y.range(),c=Math.abs(s[0]-s[1]),u=Math.abs(l[0]-l[1]),h=Math.max(...l),d=E().cloneElement(r,{clipWidth:c,clipHeight:u,translateX:Math.min(...s),translateY:Math.min(...l),polar:i,origin:i?o:void 0,radius:i?h:void 0,...r.props});return E().Children.toArray(t).map((t=>Aa(t)?E().cloneElement(t,{groupComponent:d}):t))}modifyPolarDomain(t,n){return{x:n.x,y:[0,t.y[1]]}}downsampleZoomData(t,n,e){const{downsample:r}=t,i=(t=>{const{data:e,x:r,y:i}=t,o=n.type&&ct(n.type.getData)?n.type.getData:()=>{};return!Array.isArray(e)||r||i?o(t):e})(n.props);if(!r||!e||!i)return;const o=!0===r?150:r,a=t.zoomDimension||"x";let s=i.findIndex((t=>t[a]>=e[a][0])),l=i.findIndex((t=>t[a]>e[a][1]));return 0!==s&&(s-=1),-1!==l&&(l+=1),ga(i.slice(s,l),o,s)}modifyChildren(t){return E().Children.toArray(t.children).map((n=>{const e=n.type&&n.type.role,r=Aa(n),{currentDomain:i,zoomActive:o,allowZoom:a}=t,s=q()({},t.originalDomain,t.domain),l=q()({},t.zoomDomain,t.domain),c=q()({},t.cachedZoomDomain,t.domain);let u;u=Yy.checkDomainEquality(l,c)?a&&!o?n.props.domain:q()({},i,s):l;let h=t.polar?this.modifyPolarDomain(u,s):u;h&&t.zoomDimension&&(h={...l,[t.zoomDimension]:h[t.zoomDimension]});const d=r&&"stack"!==e?{domain:h,data:this.downsampleZoomData(t,n,h)}:{domain:h};return E().cloneElement(n,q()(d,n.props))}))}getChildren(t){const n=this.modifyChildren(t);return this.clipDataComponents(n,t)}}}const Zy=Xy(Cu),Qy=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}]:mt(E().Children.toArray(t.children),((n,e,r)=>{const i=t.selectionBlacklist||[];let o;if(!Aa(n)||i.includes(e))return null;if(n.type&&ct(n.type.getData)){o=r?E().cloneElement(n,r.props):n;const t=o.props&&o.type.getData(o.props);return t?{childName:e,data:t}:null}const a=(t=>{const n=_a(t);return Array.isArray(n)&&n.length>0?n:void 0})(o.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:i,y2:o}=t,a=n=>{const a=X(t,n);return a.x>=Math.min(e,i)&&a.x<=Math.max(e,i)&&a.y>=Math.min(r,o)&&a.y<=Math.max(r,o)},s=[],l=[];let c=0;for(let t=0,e=n.length;t<e;t++){const e=n[t];a(e)&&(l[c]=e,s[c]=void 0===e.eventKey?t:e.eventKey,c++)}return c>0?{eventKey:s,data:l}:null}onMouseDown=(t,n)=>{t.preventDefault();const{activateSelectedData:e,allowSelection:r,polar:i,selectedData:o}=n;if(!r)return{};const a=this.getDimension(n),s=n.parentSVG||Mp(t),{x:l,y:c}=Cp(t,s),u={x1:i||"y"!==a?l:wp(n).x[0],y1:i||"x"!==a?c:wp(n).y[0],select:!0,x2:i||"y"!==a?l:wp(n).x[1],y2:i||"x"!==a?c:wp(n).y[1],parentSVG:s};o&&ct(n.onSelectionCleared)&&n.onSelectionCleared(q()({},u,n));const h=[{target:"parent",mutation:()=>u}],d=o&&e?o.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>null}))):[];return h.concat(...d)};handleMouseMove=(t,n)=>{const{allowSelection:e,select:r,polar:i}=n,o=this.getDimension(n);if(!e||!r)return null;const a=n.parentSVG||Mp(t),{x:s,y:l}=Cp(t,a),c=i||"y"!==o?s:wp(n).x[1],u=i||"x"!==o?l:wp(n).y[1];return{target:"parent",mutation:()=>({x2:c,y2:u,parentSVG:a})}};onMouseMove=Sp()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseUp=(t,n)=>{const{activateSelectedData:e,allowSelection:r,x2:i,y2:o}=n;if(!r)return null;if(!i||!o)return[{target:"parent",mutation:()=>({select:!1,x1:null,x2:null,y1:null,y2:null})}];const a=this.getDatasets(n),s=Ep(n),l=this.filterDatasets(n,a),c={selectedData:l,datasets:a,select:!1,x1:null,x2:null,y1:null,y2:null},u=l&&ct(n.onSelection)?n.onSelection(l,s,q()({},c,n)):{},h=[{target:"parent",mutation:()=>c}],d=l&&e?l.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>Object.assign({active:!0},u)}))):[];return h.concat(d)}};function Jy(t){return class extends t{static displayName="VictorySelectionContainer";static defaultProps={...Cu.defaultProps,activateSelectedData:!0,allowSelection:!0,selectionComponent:E().createElement(Su,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseDown:(n,e)=>t.disable?{}:Qy.onMouseDown(n,e),onTouchStart:(n,e)=>t.disable?{}:Qy.onMouseDown(n,e),onMouseMove:(n,e)=>t.disable?{}:Qy.onMouseMove(n,e),onTouchMove:(n,e)=>t.disable?{}:Qy.onMouseMove(n,e),onMouseUp:(n,e)=>t.disable?{}:Qy.onMouseUp(n,e),onTouchEnd:(n,e)=>t.disable?{}:Qy.onMouseUp(n,e)}}];getRect(t){const{x1:n,x2:e,y1:r,y2:i,selectionStyle:o,selectionComponent:a,name:s}=t,l=Math.abs(e-n)||1,c=Math.abs(i-r)||1,u=Math.min(n,e),h=Math.min(r,i);return i&&e&&n&&r?E().cloneElement(a,{key:`${s}-selection`,x:u,y:h,width:l,height:c,style:o}):null}getChildren(t){return[...E().Children.toArray(t.children),this.getRect(t)]}}}const tg=Jy(Cu),ng=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:i,y2:o}=ft(n,Number),{x:a,y:s}=ft(t,Number);return a>=Math.min(e,r)&&a<=Math.max(e,r)&&s>=Math.min(i,o)&&s<=Math.max(i,o)}handleMouseMove=(t,n)=>{const{onCursorChange:e,domain:r}=n,i=this.getDimension(n),o=n.parentSVG||Mp(t),a=Cp(t,o);let s=Ap(n,n.scale,a.x,a.y);return this.withinBounds(s,{x1:r.x[0],x2:r.x[1],y1:r.y[0],y2:r.y[1]})||(s=null),ct(e)&&(s?e(i?s[i]:s,n):s!==n.cursorValue&&e(n.defaultCursorValue||null,n)),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:s,parentSVG:o})}]};onMouseMove=Sp()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseLeave=this.handleMouseMove;onTouchEnd=(t,n)=>{const{onCursorChange:e}=n;return ct(n.onCursorChange)&&e(null,n),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]}};function eg(t){return class extends t{static displayName="VictoryCursorContainer";static defaultProps={...Cu.defaultProps,cursorLabelComponent:E().createElement(lh,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:E().createElement(Qd,null)};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseLeave:(n,e)=>t.disable?{}:ng.onMouseLeave(n,e),onTouchCancel:()=>[],onMouseMove:(n,e)=>t.disable?{}:ng.onMouseMove(n,e),onTouchMove:(n,e)=>t.disable?{}:ng.onMouseMove(n,e)}}];getCursorPosition(t){const{cursorValue:n,defaultCursorValue:e,domain:r,cursorDimension:i}=t;return n||("number"==typeof e?{x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2,[i]:e}:e)}getCursorLabelOffset(t){const{cursorLabelOffset:n}=t;return"number"==typeof n?{x:n,y:n}:n}getPadding(t){if(void 0===t.padding){const n=t.children.find((t=>Zc()(t.props)&&void 0!==t.props.padding));return Z(n.props)}return Z(t)}getCursorElements(t){const{scale:n,cursorLabelComponent:e,cursorLabel:r,cursorComponent:i,width:o,height:a,name:s,horizontal:l,theme:c}=t,u=ng.getDimension(t),h=this.getCursorPosition(t),d=this.getCursorLabelOffset(t);if(!h)return[];const f=[],p=this.getPadding(t),m={x:l?n.y(h.y):n.x(h.x),y:l?n.x(h.x):n.y(h.y)};if(r){let t=q()({active:!0},e.props,{x:m.x+d.x,y:m.y+d.y,datum:h,active:!0,key:`${s}-cursor-label`});if(Q(e)){const n=c&&c.tooltip||{};t=q()({},t,n)}f.push(E().cloneElement(e,q()({},t,{text:nt(r,t)})))}const y=Object.assign({stroke:"black"},i.props.style);return"x"!==u&&void 0!==u||f.push(E().cloneElement(i,{key:`${s}-x-cursor`,x1:m.x,x2:m.x,y1:p.top,y2:a-p.bottom,style:y})),"y"!==u&&void 0!==u||f.push(E().cloneElement(i,{key:`${s}-y-cursor`,x1:p.left,x2:o-p.right,y1:m.y,y2:m.y,style:y})),f}getChildren(t){return[...E().Children.toArray(t.children),...this.getCursorElements(t)]}}}const rg=eg(Cu);function ig(t){return t?Array.isArray(t)?t:[t]:[]}const og=(t,n)=>{const e=t.map((t=>t(n))),r=e.map((t=>new t)),i=Dy()(t)(n),o=e.map((t=>t.displayName.match(/Victory(.*)Container/)[1]||"")).join("");return class extends i{static displayName=`Victory${o}Container`;static propTypes=e.reduce(((t,n)=>({...t,...n.propTypes})),{});static defaultProps=e.reduce(((t,n)=>({...t,...n.defaultProps})),{});static defaultEvents=t=>(t=>{const n=sp()(t,"target"),e=jy()(n).map((t=>{let[n,e]=t;const r=e.filter(Boolean);return j()(r)?null:{target:n,eventHandlers:(i=e.map((t=>t.eventHandlers)),i.reduce(((t,n)=>(Ly()(t,((t,e)=>{const r=n[e];n[e]=r?function(){const n=ig(r(...arguments)),e=ig(t(...arguments));return n.concat(e)}:t})),n))))};var i}));return e.filter(Boolean)})(e.reduce(((n,e)=>[...n,...ct(e.defaultEvents)?e.defaultEvents(t):e.defaultEvents]),[]));getChildren(t){return r.reduce(((n,e)=>e.getChildren({...t,children:n})),t.children)}}},ag=(t,n)=>{t&&!n.includes(t)&&n.join(", ")},sg=(t,n)=>function(e,r){const i=Object.keys(t);ag(e,i),ag(r,i);const o=t[e],a=t[r]||[];return o?og([...o,...a],n):n},lg=sg({zoom:[Xy],voronoi:[Uy],selection:[Jy],cursor:[eg],brush:[Op]},Cu),cg=(t,n,e)=>{const r="right"===e||"left"===e;return E().cloneElement(t.lineComponent,{...t.events,role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:`${t.id}-border-${e}`,x1:r?n[e]:t.x-t.borderWidth,x2:r?n[e]:t.x+t.borderWidth,y1:r?t.y-t.borderWidth:n[e],y2:r?t.y+t.borderWidth:n[e],"data-type":`border-${e}`})},ug=(t,n,e)=>{const r="top"===e||"bottom"===e;return E().cloneElement(t.lineComponent,{...t.events,role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:`${t.id}-cross-${e}`,x1:t.x,x2:r?t.x:n[e],y1:t.y,y2:r?n[e]:t.y,"data-type":`cross-${e}`})},hg={groupComponent:E().createElement("g",null),lineComponent:E().createElement(Xd,null),role:"presentation",shapeRendering:"auto"},dg=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.id,t),r=et(Object.assign({stroke:"black"},t.style),t),i=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,style:r,tabIndex:i})})({...hg,...t}),{groupComponent:e}=n,r=Vc(n),{tabIndex:i,ariaLabel:o}=n,a=(t=>{const{errorX:n,errorY:e}=t,r={right:{error:n,errorIndex:0},left:{error:n,errorIndex:1},top:{error:e,errorIndex:1},bottom:{error:e,errorIndex:0}};return["right","left","top","bottom"].reduce(((t,n)=>(t[n]=(t=>{const{error:n,errorIndex:e}=r[t];return n?n[e]:void 0})(n),t)),{})})(n),s=[a.right?cg(n,a,"right"):null,a.left?cg(n,a,"left"):null,a.bottom?cg(n,a,"bottom"):null,a.top?cg(n,a,"top"):null,a.right?ug(n,a,"right"):null,a.left?ug(n,a,"left"):null,a.bottom?ug(n,a,"bottom"):null,a.top?ug(n,a,"top"):null].filter(Boolean);return E().cloneElement(e,{tabIndex:i,"aria-label":o,...r},s)};var fg=r(156),pg=r.n(fg);const mg=(t,n,e)=>{const r=n[{x:"_errorX",y:"_errorY"}[e]];if(0===r)return!1;const i=t.scale[e];return Array.isArray(r)?[0!==r[0]&&i(r[0]+n[`_${e}`]),0!==r[1]&&i(n[`_${e}`]-r[1])]:[i(r+n[`_${e}`]),i(n[`_${e}`]-r)]},yg=t=>{const n=["x","y","errorX","errorY"];return t.data?xa(t.data,t,n):xa(t.errorX||t.errorY?va(t):[],t,n)},gg=(t,n)=>{const e=Wa(t,n),r=Ia(t,n),i=yg(t);if(i.length<1)return void 0!==e&&void 0!==r?Na(e,r):void 0;const o="x"===n?"_errorX":"_errorY",a=t=>{const e="min"===t?1/0:-1/0,r="min"===t?1:0,a="min"===t?-1:1;return i.reduce(((e,i)=>{const s=Array.isArray(i[o])?i[o][r]:i[o],l=i[`_${n}`]+a*(s||0);return e<l&&"min"===t||e>l&&"max"===t?e:l}),e)};return Na(void 0!==e?e:a("min"),void 0!==r?r:a("max"))},xg=(t,n)=>Oa(gg)(t,n),vg={width:450,height:300,padding:50},bg=[{x:1,y:1,errorX:.1,errorY:.1},{x:2,y:2,errorX:.2,errorY:.2},{x:3,y:3,errorX:.3,errorY:.3},{x:4,y:4,errorX:.4,errorY:.4}];class _g extends E().Component{static animationWhitelist=["data","domain","height","padding","samples","style","width","errorX","errorY","borderWidth"];static displayName="VictoryErrorBar";static role="errorbar";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(Cu,null),data:bg,dataComponent:E().createElement(dg,null),labelComponent:E().createElement(lh,null),groupComponent:E().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Eh.grayscale};static getDomain=xg;static getData=yg;static getBaseProps=t=>((t,n)=>{const e=ht(t,n,"errorbar"),r=Object.assign({},e,(t=>{const n=J(t,"errorbar"),e=tt(t.style,n)||{},r=yg(t),i={x:st(t,"x"),y:st(t,"y")},o={x:xg(t,"x"),y:xg(t,"y")};return{domain:o,data:r,scale:{x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},style:e,origin:t.polar?t.origin||at(t):void 0}})(e)),{borderWidth:i,data:o,domain:a,events:s,groupComponent:l,height:c,horizontal:u,labels:h,name:d,origin:f,padding:p,polar:m,scale:y,sharedEvents:g,standalone:x,style:v,theme:b,width:_,disableInlineStyles:M}=r,C={parent:{data:o,domain:a,height:c,horizontal:u,name:d,origin:f,padding:p,polar:m,scale:y,standalone:x,style:v.parent,theme:b,width:_}};return o.reduce(((t,n,e)=>{const c=lt(n.eventKey)?e:n.eventKey,{x:d,y:f}=X(pg()({},r,{scale:y}),n),p=((t,n)=>{const e=Et(n.x),r=At(n.x),i=Et(n.y),o=At(n.y);let{_x:a,_y:s}=t;return(a<e||a>r||s<i||s>o)&&(a=s=null),Object.assign({},t,{_x:a,_y:s})})(n,a),m=mg(r,p,"x"),x=mg(r,p,"y"),b={borderWidth:i,data:o,datum:p,errorX:u?x:m,errorY:u?m:x,groupComponent:l,horizontal:u,index:e,scale:y,style:M?{}:v.data,x:d,y:f,disableInlineStyles:M};t[c]={data:b};const _=Ua(r,n,e);return(null!=_||h&&(s||g))&&(t[c].labels=((t,n,e)=>{const{x:r,y:i,index:o,scale:a,errorY:s,errorX:l,horizontal:c,labelComponent:u,theme:h,disableInlineStyles:d}=t,f=function(n){void 0===n&&(n="x");const e="y"===n?s:l;return(e&&Array.isArray(e)?e[0]:e)||t[n]},p=e.labels||{},m=p.padding||0,y=c?"start":"middle",g=c?"middle":"end",x={style:p,y:c?i:f("y"),x:c?f("x"):r,dy:c?0:-m,dx:c?m:0,text:n,index:o,scale:a,datum:t.datum,data:t.data,textAnchor:p.textAnchor||y,verticalAnchor:p.verticalAnchor||g,angle:p.angle,horizontal:c,disableInlineStyles:d};if(!Q(u))return x;const v=h&&h.tooltip||{};return q()({},x,K(v,["style"]))})(Object.assign({},r,b),_,v)),t}),C)})(t,vg);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Mg,e=ht(this.props,vg,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Fc(i,e)}}const Mg=Hd(_g),Cg={width:450,height:300,padding:50,offset:0};function wg(t,n){const e="group",r=ht(t,Cg,e),i=Im(r.theme,r.style,e),{offset:o,colorScale:a,color:s,polar:l,horizontal:c}=r,u=r.categories||Hm(r,n,null),h=r.datasets||Dm(r,null),d={x:$m(Object.assign({},r,{categories:u}),"x",n),y:$m(Object.assign({},r,{categories:u}),"y",n)},f=r.range||{x:st(r,"x"),y:st(r,"y")},p={x:Zo(r,"x")||Nm(r,"x"),y:Zo(r,"y")||Nm(r,"y")};return{datasets:h,categories:u,range:f,domain:d,horizontal:c,scale:{x:p.x.domain(d.x).range(r.horizontal?f.y:f.x),y:p.y.domain(d.y).range(r.horizontal?f.x:f.y)},style:i,colorScale:a,color:s,offset:o,origin:l?r.origin:at(r),padding:Z(r)}}function Ag(t,n){const e=n.type&&n.type.role,r=n.props.colorScale||t.colorScale;if("group"===e||"stack"===e)return t.theme&&t.theme.group?r||t.theme.group.colorScale:r}function Eg(t,n,e){void 0===n&&(n=[]);const r=t.data||t.y?_a(t):n,i=e||0;return r.map((t=>{const n=t._x instanceof Date?new Date(t._x.getTime()+i):t._x+i;return Object.assign({},t,{_x1:n})}))}function kg(t,n,e){const r=ht(t,Cg,"stack"),i=n||E().Children.toArray(r.children),o=e||wg(r,i),{datasets:a}=o,{labelComponent:s,polar:l}=r,c=function(t,n){const{categories:e,domain:r,range:i,scale:o,horizontal:a,origin:s,padding:l}=n,{width:c,height:u,theme:h,polar:d}=t;return{height:u,width:c,theme:h,polar:d,origin:s,categories:e,domain:r,range:i,scale:o,horizontal:a,padding:l,standalone:!1}}(r,o),u=r.name||"group";return i.map(((t,n)=>{const e=t.type&&t.type.role,i=l?function(t,n,e,r){const i=(("stack"===r?n.datasets[0].length:n.datasets.length)-1)/2,o=function(t,n){const{range:e}=n,r=Math.abs(e.x[1]-e.x[0]),i=Math.max(...e.y);return t.offset/(2*Math.PI*i)*r}(t,n);return(e-i)*o}(r,o,n,e):function(t,n,e,r){const i=(("stack"===r?n.datasets[0].length:n.datasets.length)-1)/2,o=function(t,n,e){if(!t.offset)return 0;const r=dt("x",t.horizontal),i=e.domain.x,o=e.range[r];return(Math.max(...i)-Math.min(...i))/(Math.max(...o)-Math.min(...o))*t.offset}(t,0,n);return(e-i)*o}(r,o,n,e),h="voronoi"===e||"tooltip"===e||"label"===e?t.props.style:Wm(t,n,o),d=r.labels?function(t,n,e){if(t.labels)return Math.floor(n.length/2)===e?t.labels:void 0}(r,a,n):t.props.labels,f=t.props.name||`${u}-${e}-${n}`;return E().cloneElement(t,Object.assign({labels:d,style:h,key:`${f}-key-${n}`,name:f,data:Eg(r,a[n],i),colorScale:Ag(r,t),labelComponent:s||t.props.labelComponent,xOffset:i},c))}))}const Sg={width:450,height:300,padding:50,offset:0},Pg={containerComponent:E().createElement(Cu,null),groupComponent:E().createElement("g",null),samples:50,standalone:!0,theme:Eh.grayscale},Dg=t=>{const n=Lg?.role,{getAnimationProps:e,setAnimationState:r,getProps:i}=Em(),o=E().useMemo((()=>({...Pg,...t})),[t]),a=i(o),s=ht(a,Sg,n),{eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:y,horizontal:g,name:x}=s,v=E().Children.toArray(s.children),b=function(t){const n=(t=>{const{children:n}=t,e=E().Children.toArray(n).map((t=>({...t,props:K(t.props,["sharedEvents"])})));return t.children=e,t})(t),[e,r]=E().useState(n);return E().useEffect((()=>{Oh()(n,e)||r(n)}),[e,r,n]),E().useMemo((()=>wg(e,e.children)),[e])}(s),{domain:_,scale:M,style:C,origin:w}=b,A=E().useMemo((()=>kg(a,v,b).map(((t,n)=>{const r=Object.assign({animate:e(a,t,n)},t.props);return E().cloneElement(t,r)}))),[a,v,b,e]),k=E().useMemo((()=>u?{domain:_,scale:M,width:f,height:p,standalone:u,theme:m,style:C.parent,horizontal:g,polar:y,origin:w,name:x}:{}),[u,_,M,f,p,m,C,g,y,w,x]),S=E().useMemo((()=>Vc(o)),[o]),P=E().useMemo((()=>{if(u){const t=q()({},c.props,k,S);return E().cloneElement(c,t)}return E().cloneElement(h,S)}),[h,u,c,k,S]),D=E().useMemo((()=>zm(a)),[a]),O=qm(o);return E().useEffect((()=>()=>{o.animate&&r(O,a)}),[r,O,o,a]),j()(D)?E().cloneElement(P,P.props,A):E().createElement(Zm,{container:P,eventKey:l,events:D,externalEventMutations:d},A)},Og={role:"group",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:kg},Lg=Object.assign(E().memo(Dg,Oh()),Og);Lg.displayName="VictoryGroup";var Tg=Array.prototype,jg=Tg.slice;function $g(t){return()=>t}function Ng(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}function zg(t){return t}function Rg(t){return Math.ceil(Math.log(function(t,n){let e=0;for(let n of t)null!=n&&(n=+n)>=n&&++e;return e}(t))/Math.LN2)+1}Tg.map;const Ig=(t=>{let n,e,r=!1;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];if(r&&Oh()(n,o))return e;const s=t(...o);return r=!0,e=s,n=o,s}})((t=>{let{data:n=[],x:e,bins:r}=t;if(!(n&&n.length||Array.isArray(r)))return[];const i=(t=>{let{data:n,bins:e,x:r}=t;const i=ut(r||"x"),o=n?.some((t=>i(t)instanceof Date))||!1,a=Array.isArray(e)&&e.some((t=>t instanceof Date));return o||a})({data:n,bins:r,x:e}),o=(t=>{let{data:n,x:e,bins:r,dataOrBinsContainsDates:i}=t;const o=ut(e||"x"),a=function(){var t=zg,n=Ng,e=Rg;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,s=r.length,l=new Array(s);for(i=0;i<s;++i)l[i]=t(r[i],i,r);var c=n(l),u=c[0],h=c[1],d=e(l,u,h);if(!Array.isArray(d)){const t=h,e=+d;if(n===Ng&&([u,h]=function(t,n,e){let r;for(;;){const i=Vt(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}(u,h,e)),(d=Bt(u,h,e))[0]<=u&&(a=Vt(u,h,e)),d[d.length-1]>=h)if(t>=h&&n===Ng){const t=Vt(u,h,e);isFinite(t)&&(t>0?h=(Math.floor(h/t)+1)*t:t<0&&(h=(Math.ceil(h*-t)+1)/-t))}else d.pop()}for(var f=d.length;d[0]<=u;)d.shift(),--f;for(;d[f-1]>h;)d.pop(),--f;var p,m=new Array(f+1);for(i=0;i<=f;++i)(p=m[i]=[]).x0=i>0?d[i-1]:u,p.x1=i<f?d[i]:h;if(isFinite(a)){if(a>0)for(i=0;i<s;++i)null!=(o=l[i])&&u<=o&&o<=h&&m[Math.min(f,Math.floor((o-u)/a))].push(r[i]);else if(a<0)for(i=0;i<s;++i)if(null!=(o=l[i])&&u<=o&&o<=h){const t=Math.floor((u-o)*a);m[Math.min(f,t+(d[t]<=o))].push(r[i])}}else for(i=0;i<s;++i)null!=(o=l[i])&&u<=o&&o<=h&&m[Zt(d,o,0,f)].push(r[i]);return m}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:$g(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:$g([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?$g(jg.call(t)):$g(t),r):e},r}().value(o),s=(i?ko():be()).domain(Ng(n,o)).nice();return Array.isArray(r)?(a.domain([r[0],r[r.length-1]]),a.thresholds(r.slice(1,r.length-1)),a):Number.isInteger(r)?(a.domain(s.domain()),a.thresholds(r),a):i?(a.domain(s.domain()),a.thresholds(s.ticks()),a):(a.domain(s.domain()),a)})({data:n,x:e,bins:r,dataOrBinsContainsDates:i});return[...o(n)].filter((t=>{let{x0:n,x1:e}=t;return n instanceof Date&&e instanceof Date?new Date(n).getTime()!==new Date(e).getTime():n!==e})).map((t=>{const n=i?new Date(t.x0):t.x0||0,e=i?new Date(t.x1):t.x1||0;return{x0:n,x1:e,x:i?new Date((n.getTime()+e.getTime())/2):(n+e)/2,y:t.length,binnedData:[...t]}}))})),Wg=t=>{const{bins:n,data:e,x:r}=t,i=e?.some((t=>{let{_y:n}=t;return!lt(n)})),o=i?e:Ig({data:e,x:r,bins:n});return _a({...t,data:o,x:"x"})},Bg=(t,n)=>{const e=Wg(t);if(!e.length)return[0,1];if("x"===n){const n=e[0],r=e[e.length-1];return Ra({...t,data:[{x:n.x0},{x:r.x1}],x:"x"},"x")}return t.data?.length?Ra({...t,data:e},"y"):[0,1]},Vg={width:450,height:300,padding:50},Fg=[];class Ug extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryHistogram";static role="histogram";static defaultTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:()=>({_y:0,yOffset:0})},onEnter:{duration:500,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})}};static getFormattedData=Ig;static defaultProps={containerComponent:E().createElement(Cu,null),data:Fg,dataComponent:E().createElement(Zf,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(lh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Eh.grayscale};static getDomain=Bg;static getData=Wg;static getBaseProps=t=>((t,n)=>{const e=ht(t,n,"histogram"),r=Object.assign({},e,(t=>{const n=J(t,"histogram"),e=tt(t.style,n),r=t.range||{x:st(t,"x"),y:st(t,"y")},i={x:Bg(t,"x"),y:Bg(t,"y")};let o=Wg(t);return o=ma(o,i,0),{style:e,data:o,scale:{x:Yo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Yo(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)},domain:i}})(e)),{binSpacing:i,cornerRadius:o,data:a,domain:s,events:l,height:c,horizontal:u,padding:h,scale:d,sharedEvents:f,standalone:p,style:m,theme:y,width:g,labels:x,name:v,getPath:b,disableInlineStyles:_}=r,M={parent:{horizontal:u,domain:s,scale:d,width:g,height:c,data:a,standalone:p,name:v,theme:y,padding:h,style:m.parent}},C=t=>{const n=d.x(t.x0),e=d.x(t.x1);return Math.abs(e-n)};return a.reduce(((t,n,e)=>{const s=lt(n.eventKey)?e:n.eventKey,{x:h,y:p,y0:y,x0:v}=jf(r,n),M=(t=>i?C(t)-i:C(t))(n),w={alignment:"middle",barWidth:M,cornerRadius:o,data:a,datum:n,horizontal:u,index:e,scale:d,style:_?{}:m.data,width:g,height:c,x:h,y:p,y0:y,x0:v,getPath:b,disableInlineStyles:_};return t[s]={data:w},(null!=Ua(r,n,e)||x&&(l||f))&&(t[s].labels=Ya(r,e)),t}),M)})(t,Vg);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Ug,e=ht(this.props,Vg,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Fc(i,e)}}const Hg=Hd(Ug);var qg=r(8825),Gg=r.n(qg);const Kg=t=>{const{data:n,style:e}=t;return n.map(((t,r)=>et(q()({},t.labels,e.labels),{datum:t,index:r,data:n})))},Yg=t=>{const{orientation:n,theme:e}=t,r=function(t,n){void 0===n&&(n={});const e=t.style||{};return{parent:q()(e.parent,n.parent,{height:"100%",width:"100%"}),data:q()({},e.data,n.data),labels:q()({},e.labels,n.labels),border:q()({},e.border,n.border),title:q()({},e.title,n.title)}}(t,e&&e.legend&&e.legend.style?e.legend.style:{}),i=(t=>{const{colorScale:n}=t;return"string"==typeof n?$u(n):n||[]})(t),o="horizontal"===n,a=Z({padding:t.borderPadding});return Object.assign({},t,{style:r,isHorizontal:o,colorScale:i,borderPadding:a})},Xg=(t,n)=>{const{itemsPerRow:e,isHorizontal:r}=t;return e?r?n%e:Math.floor(n/e):r?n:0},Zg=(t,n)=>{const{itemsPerRow:e,isHorizontal:r}=t;return e?r?Math.floor(n/e):n%e:r?0:n},Qg=t=>{const{data:n}=t,e=t.style&&t.style.data||{},r=Kg(t);return n.map(((n,i)=>{const o=n.symbol||{},{fontSize:a}=r[i],s=o.size||e.size||a/2.5,l=t.symbolSpacer||Math.max(s,a);return{...n,size:s,symbolSpacer:l,fontSize:a,textSize:Zu(n.name,r[i]),column:Xg(t,i),row:Zg(t,i)}}))},Jg=(t,n)=>{const e=t.gutter||{},r="object"==typeof e?(e.left||0)+(e.right||0):e||0,i=sp()(n,"column");return Object.keys(i).reduce(((t,n,e)=>{const o=i[n].map((t=>t.textSize.width+t.size+t.symbolSpacer+r));return t[e]=Math.max(...o),t}),[])},tx=(t,n)=>{const e=t.rowGutter||{},r="object"==typeof e?(e.top||0)+(e.bottom||0):e||0,i=sp()(n,"row");return Object.keys(i).reduce(((t,n,e)=>{const o=i[n].map((t=>t.textSize.height+t.symbolSpacer+r));return t[e]=Math.max(...o),t}),[])},nx=t=>{const n=t.style&&t.style.title||{},e=Zu(t.title,n),r=n.padding||0;return{height:e.height+2*r||0,width:e.width+2*r||0}},ex=(t,n)=>{const e=ht(t,n,"legend"),r=Object.assign({},e,Yg(e)),{title:i,titleOrientation:o}=r,a=Qg(r),s=Jg(r,a),l=tx(r,a),c=i?nx(r):{height:0,width:0};return{height:"left"===o||"right"===o?Math.max(ix(l),c.height):ix(l)+c.height,width:"left"===o||"right"===o?ix(s)+c.width:Math.max(ix(s),c.width)}},rx=(t,n)=>{const e=ht(t,n,"legend"),r=Object.assign({},e,Yg(e)),{data:i,standalone:o,theme:a,padding:s,style:l,colorScale:c,gutter:u,rowGutter:h,borderPadding:d,title:f,titleOrientation:p,name:m,x:y=0,y:g=0}=r,x=Qg(r),v=Jg(r,x),b=tx(r,x),_=Kg(r),M=f?nx(r):{height:0,width:0},C="left"===p?M.width:0,w="top"===p?M.height:0,A=u&&"object"==typeof u&&u.left||0,E=h&&"object"==typeof h&&h.top||0,{height:k,width:S}=ex(r,n),P=((t,n,e)=>{const{x:r,y:i,borderPadding:o,style:a}=t;return{x:r,y:i,height:(n||0)+o.top+o.bottom,width:(e||0)+o.left+o.right,style:Object.assign({fill:"none"},a.border)}})(r,k,S),D=((t,n)=>{const{title:e,titleOrientation:r,centerTitle:i,borderPadding:o}=t,{height:a,width:s}=n,l=(t=>{const{titleOrientation:n,centerTitle:e,titleComponent:r}=t,i=t.style&&t.style.title||{},o=r.props&&r.props.style||{},a=((t,n)=>{const e={textAnchor:"right"===t?"end":"start",verticalAnchor:"bottom"===t?"end":"start"};if(n){const n="top"===t||"bottom"===t;return{textAnchor:n?"middle":e.textAnchor,verticalAnchor:n?e.verticalAnchor:"middle"}}return e})(n,e);return Array.isArray(o)?o.map((t=>q()({},t,i,a))):q()({},o,i,a)})(t),c=Array.isArray(l)?l[0].padding:l.padding,u="top"===r||"bottom"===r,h="right"===r?"right":"left",d={x:i?s/2:o["bottom"===r?"bottom":"top"]+(c||0),y:i?a/2:o[h]+(c||0)},f=()=>o[r]+(c||0),p=u?d.x:f(),m=u?f():d.y;return{x:"right"===r?t.x+s-p:t.x+p,y:"bottom"===r?t.y+a-m:t.y+m,style:l,text:e}})(r,P),O={parent:{data:i,standalone:o,theme:a,padding:s,name:m,height:r.height,width:r.width,style:l.parent},all:{border:P,title:D}};return x.reduce(((t,n,e)=>{const r=c[e%c.length],o=q()({},n.symbol,l.data,{fill:r}),a=lt(n.eventKey)?e:n.eventKey,s=((t,n,e)=>{const{column:r,row:i}=t;return{x:Gg()(r).reduce(((t,n)=>t+e[n]),0),y:Gg()(i).reduce(((t,e)=>t+n[e]),0)}})(n,b,v),u=g+d.top+n.symbolSpacer,h=y+d.left+n.symbolSpacer,f={index:e,data:i,datum:n,symbol:o.type||o.symbol||"circle",size:n.size,style:o,y:u+s.y+w+E,x:h+s.x+C+A},p={datum:n,data:i,text:n.name,style:_[e],y:f.y,x:f.x+n.symbolSpacer+n.size/2};return t[a]={data:f,labels:p},t}),O)};function ix(t){if(t&&t.length){let n=0;for(let e=0;e<t.length;e++)n+=t[e];return n}return 0}const ox={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},ax=[{name:"Series 1"},{name:"Series 2"}];class sx extends E().Component{static displayName="VictoryLegend";static role="legend";static defaultProps={borderComponent:E().createElement(rp,null),data:ax,containerComponent:E().createElement(Cu,null),dataComponent:E().createElement(Sy,null),groupComponent:E().createElement("g",null),labelComponent:E().createElement(lh,null),standalone:!0,theme:Eh.grayscale,titleComponent:E().createElement(lh,null)};static getBaseProps=t=>rx(t,ox);static getDimensions=t=>ex(t,ox);static expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];renderChildren(t){const{dataComponent:n,labelComponent:e,title:r}=t,i=[];if(t.borderComponent){const n=this.getComponentProps(t.borderComponent,"border","all"),e=E().cloneElement(t.borderComponent,n);i.push(e)}if(n){const t=this.dataKeys.map(((t,e)=>{if("all"===t)return;const r=this.getComponentProps(n,"data",e);return E().cloneElement(n,r)})).filter((t=>void 0!==t));i.push(...t)}if(r&&t.titleComponent){const n=this.getComponentProps(r,"title","all"),e=E().cloneElement(t.titleComponent,n);i.push(e)}if(e){const t=this.dataKeys.map(((t,n)=>{if("all"===t)return;const r=this.getComponentProps(e,"labels",n);return void 0!==r.text&&null!==r.text?E().cloneElement(e,r):void 0})).filter((t=>void 0!==t));i.push(...t)}return i}render(){const{role:t}=this.constructor,n=ht(this.props,ox,t),e=this.renderChildren(n);return n.standalone?this.renderContainer(n.containerComponent,e):E().cloneElement(n.groupComponent,{},e)}}const lx=Hd(sx),cx={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},ux=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.id,t),r=et(Object.assign({fill:"none",stroke:"black",pointerEvents:"stroke"},t.style),t),i=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,style:r,tabIndex:i})})({...cx,...t}),e=Vc(n),{polar:r,origin:i}=n,o=zc(n),a=r&&i?`translate(${i.x}, ${i.y})`:void 0,s=o(n.data);return E().cloneElement(n.pathComponent,{...n.events,...e,"aria-label":n.ariaLabel,d:s,style:n.style,transform:n.transform||a,className:n.className,role:n.role,shapeRendering:n.shapeRendering,clipPath:n.clipPath,tabIndex:n.tabIndex})},hx={width:450,height:300,padding:50,interpolation:"linear"};class dx extends E().Component{constructor(t){super(t)}static animationWhitelist=["data","domain","height","padding","samples","style","width"];static displayName="VictoryLine";static role="line";static defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}};static defaultPolarTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:t=>({_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0})}};static continuous=!0;static defaultProps={containerComponent:E().createElement(Cu,null),dataComponent:E().createElement(ux,null),labelComponent:E().createElement(lh,{renderInPortal:!0}),groupComponent:E().createElement(Pu,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Eh.grayscale};static getDomain=Ta;static getData=_a;static getBaseProps=t=>((t,n)=>{const e=ht(t,n,"line"),r=Object.assign({},e,(t=>{let n=_a(t);n.length<2&&(n=[]);const e={x:st(t,"x"),y:st(t,"y")},r={x:Ta(t,"x"),y:Ta(t,"y")},i={x:Yo(t,"x").domain(r.x).range(t.horizontal?e.y:e.x),y:Yo(t,"y").domain(r.y).range(t.horizontal?e.x:e.y)},o=t.polar?t.origin||at(t):void 0,a=J(t,"line");return{domain:r,data:n,scale:i,style:tt(t.style,a),origin:o}})(e)),{data:i,domain:o,events:a,groupComponent:s,height:l,horizontal:c,interpolation:u,origin:h,padding:d,polar:f,scale:p,sharedEvents:m,standalone:y,style:g,theme:x,width:v,labels:b,name:_,disableInlineStyles:M}=r,C={parent:{style:g.parent,scale:p,data:i,height:l,width:v,name:_,domain:o,standalone:y,polar:f,origin:h,padding:d,horizontal:c},all:{data:{horizontal:c,polar:f,origin:h,scale:p,data:i,interpolation:u,groupComponent:s,style:M?{}:g.data,theme:x,disableInlineStyles:M}}};return i.reduce(((t,n,e)=>((null!=Ua(r,n,e)||b&&(a||m))&&(t[lt(n.eventKey)?e:n.eventKey]={labels:Ya(r,e)}),t)),C)})(t,hx);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=dx,e=ht(this.props,hx,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderContinuousData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Fc(i,e)}}const fx=Hd(dx,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]}),px=(t,n)=>{const{style:e,colors:r}=n,i=((t,n,e)=>t&&t.data&&t.data.fill?t.data.fill:n&&n[e%n.length])(e,r,t);return Object.assign({fill:i},e.data)},mx=(t,n)=>t*(t=>Math.cos(t-rt(90)))(n),yx=(t,n)=>t*(t=>Math.sin(t-rt(90)))(n),gx=t=>t.reduce(((t,n)=>t+n),0)/t.length,xx=(t,n)=>{const e=ht(t,n,"pie"),r=(t=>{const{colorScale:n}=t,e=J(t,"pie"),r=tt(t.style,e),i=Array.isArray(n)?n:$u(n),o=Z(t),a=((t,n)=>"number"==typeof t.radius?t.radius:Math.min(t.width-n.left-n.right,t.height-n.top-n.bottom)/2)(t,o),s=((t,n)=>{const{width:e,height:r}=t,i=W()(t.origin)?t.origin:{};return{x:void 0!==i.x?i.x:(n.left-n.right+e)/2,y:void 0!==i.y?i.y:(n.top-n.bottom+r)/2}})(t,o),l=_a(t),c=((t,n)=>{const e=ct(t.padAngle)?0:t.padAngle;return Bs().sort(null).startAngle(rt(t.startAngle)).endAngle(rt(t.endAngle)).padAngle(rt(e)).value((t=>t._y))(n)})(t,l);return Object.assign({},t,{style:r,colors:i,padding:o,defaultRadius:a,data:l,slices:c,origin:s})})(e),{slices:i,style:o,data:a,origin:s,defaultRadius:l,labels:c,events:u,sharedEvents:h,height:d,width:f,standalone:p,name:m,innerRadius:y,cornerRadius:g,padAngle:x,disableInlineStyles:v,labelIndicator:b}=r,_=e.radius||l,M={parent:{standalone:p,height:d,width:f,slices:i,name:m,style:o.parent}};return i.reduce(((t,n,i)=>{const o=q()({},a[i],{startAngle:it(n.startAngle),endAngle:it(n.endAngle),padAngle:it(n.padAngle)}),l=lt(o.eventKey)?i:o.eventKey,d={index:i,slice:n,datum:o,data:a,origin:s,innerRadius:y,radius:_,cornerRadius:g,padAngle:x,style:v?{}:px(i,r),disableInlineStyles:v};t[l]={data:d};const f=((t,n,e)=>{let r;return r=n.label?n.label:Array.isArray(t.labels)?t.labels[e]:ct(t.labels)?t.labels:n.xName||n._x,(t=>null==t||ct(t)?t:`${t}`)(r)})(e,o,i);if(null!=f||c&&(u||h)){const n=nt(f,d);if(t[l].labels=((t,n,e)=>{const{index:r,datum:i,data:o,slice:a,labelComponent:s,theme:l}=n,{style:c,defaultRadius:u,origin:h,width:d,height:f}=e,p=nt(e.labelRadius,Object.assign({text:t},n)),m=nt(e.labelPosition,Object.assign({text:t},n))||"centroid",y=nt(e.labelPlacement,Object.assign({text:t},n))||"vertical",g=Object.assign({padding:0},c.labels),x=((t,n,e)=>{const r=e&&e.padding||0;return n||t+r})(u,p,et(g,Object.assign({labelRadius:p,text:t},n))),v=(t=>Rs().outerRadius(t).innerRadius(t))(x),b=((t,n,e)=>{const r={startAngle:"startAngle"===e?n.startAngle:n.endAngle,endAngle:"endAngle"===e?n.endAngle:n.startAngle},i=Object.assign({},n,r);return t.centroid(i)})(v,a,m),_=((t,n,e)=>{let r=0;return r=void 0!==n.angle?e.angle:it("centroid"===n?(t.startAngle+t.endAngle)/2:"startAngle"===n?t.startAngle:t.endAngle),(r<0?360-r:r)%360})(a,m,g),M=((t,n)=>"vertical"===n?0:"parallel"===n?t>180&&t<360?t+90:t-90:t>90&&t<270?t-180:t)(_,y),C=((t,n)=>"perpendicular"===n?t>90&&t<270?"bottom":"top":"parallel"===n?t>=0&&t<=180?"right":"left":t<45||t>315?"top":t>=45&&t<135?"right":t>=135&&t<225?"bottom":"left")(_,y),w=g.textAnchor||(t=>"top"===t||"bottom"===t?"middle":"right"===t?"start":"end")(C),A=g.verticalAnchor||(t=>"left"===t||"right"===t?"middle":"bottom"===t?"start":"end")(C),E={width:d,height:f,index:r,datum:i,data:o,slice:a,orientation:C,text:t,style:g,x:Math.round(b[0])+h.x,y:Math.round(b[1])+h.y,textAnchor:w,verticalAnchor:A,angle:M,calculatedLabelRadius:x};if(!Q(s))return E;const k=l&&l.tooltip||{};return q()({},E,K(k,["style"]))})(n,Object.assign({},e,d),r),b){const n=t[l].labels;n.calculatedLabelRadius>_&&(t[l].labelIndicators=((t,n,e)=>{const{innerRadius:r,radius:i,slice:{startAngle:o,endAngle:a},labelIndicatorInnerOffset:s,labelIndicatorOuterOffset:l,index:c}=t,{height:u,width:h}=n,{calculatedLabelRadius:d}=e,f=gx([r,i]),p=gx([a,o]),m=h/2,y=u/2,g=f+s,x=d-l,v={x1:m+mx(g,p),y1:y+yx(g,p),x2:m+mx(x,p),y2:y+yx(x,p),index:c};return q()({},v)})(Object.assign({},e,d),r,n))}}return t}),M)},vx=t=>{const{slice:n,radius:e,innerRadius:r,cornerRadius:i}=t;if(ct(t.pathFunction))return t.pathFunction(n);const o=rt(t.padAngle),a=rt(t.sliceStartAngle),s=rt(t.sliceEndAngle);return Rs().cornerRadius(i).outerRadius(e).innerRadius(r||0)(q()({startAngle:a,endAngle:s,padAngle:o},n))},bx={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},_x=t=>{const n=(t=>{const n=et(t.style,t),e=nt(t.radius,Object.assign({},t,{style:n})),r=nt(t.innerRadius,Object.assign({},t,{style:n,radius:e})),i=nt(t.ariaLabel,t),o=nt(t.id,t),a=nt(t.cornerRadius,t),s=nt(t.padAngle,t),l=nt(t.sliceStartAngle,t),c=nt(t.sliceEndAngle,t),u=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:i,style:n,radius:e,innerRadius:r,id:o,cornerRadius:a,padAngle:s,sliceStartAngle:l,sliceEndAngle:c,tabIndex:u})})({...bx,...t}),e=n.origin?`translate(${n.origin.x}, ${n.origin.y})`:void 0;return E().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:vx(n),style:n.style,transform:n.transform||e,className:n.className,role:n.role,shapeRendering:n.shapeRendering,clipPath:n.clipPath,tabIndex:n.tabIndex})},Mx={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},Cx=t=>!lt(t._x)&&!lt(t._y);class wx extends E().Component{static animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"];static displayName="VictoryPie";static role="pie";static defaultTransitions={onExit:{duration:500,before:()=>({_y:0,label:" "})},onEnter:{duration:500,before:()=>({_y:0,label:" "}),after:t=>({y_:t._y,label:t.label})}};static defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:E().createElement(_x,null),labelComponent:E().createElement(lh,null),containerComponent:E().createElement(Cu,null),groupComponent:E().createElement("g",null),sortOrder:"ascending",theme:Eh.grayscale};static getBaseProps=t=>xx(t,Mx);static getData=_a;static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];shouldAnimate(){return Boolean(this.props.animate)}renderComponents(t,n){void 0===n&&(n=Cx);const{dataComponent:e,labelComponent:r,groupComponent:i,labelIndicator:o,labelPosition:a}=t;if(!i)throw new Error("VictoryPie expects a groupComponent prop");const s=o&&"centroid"===a,l=[];if(e){const t=this.dataKeys.reduce(((t,r,i)=>{const o=this.getComponentProps(e,"data",i);return n(o.datum)&&t.push(E().cloneElement(e,o)),t}),[]);l.push(...t)}if(r){const t=this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text)return E().cloneElement(r,e)})).filter((t=>void 0!==t));l.push(...t)}if(s&&o){let t=E().createElement(Qd,null);"object"==typeof o&&(t=o);const n=this.dataKeys.map(((n,e)=>{const r=this.getComponentProps(t,"labelIndicators",e);return E().cloneElement(t,r)}));l.push(...n)}return this.renderContainer(i,l)}render(){const{animationWhitelist:t,role:n}=Ax,e=ht(this.props,Mx,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderComponents(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Fc(i,e)}}const Ax=Hd(wx),Ex=(t,n)=>n.bubbleProperty?"circle":t.symbol||n.symbol,kx=(t,n)=>{const{size:e,z:r}=n;return t.size?"function"==typeof t.size?t.size:Math.max(t.size,1):"function"==typeof n.size?e:t[r]?((t,n)=>{const{data:e,z:r,maxBubbleSize:i,minBubbleSize:o}=n,a=e.map((t=>t[r])),s=Math.min(...a),l=Math.max(...a),c=i||(()=>{const t=Math.min(...Object.values(Z(n)));return Math.max(t,5)})(),u=o||.1*c;if(l===s)return Math.max(u,1);const h=Math.PI*Math.pow(c,2),d=Math.PI*Math.pow(u,2),f=(t[r]-s)/(l-s)*h,p=Math.max(f,d),m=Math.sqrt(p/Math.PI);return Math.max(m,1)})(t,n):Math.max(e||0,1)},Sx={width:450,height:300,padding:50,size:3,symbol:"circle"};class Px extends E().Component{static animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"];static displayName="VictoryScatter";static role="scatter";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(Cu,null),dataComponent:E().createElement(Sy,null),labelComponent:E().createElement(lh,null),groupComponent:E().createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Eh.grayscale};static getDomain=Ta;static getData=_a;static getBaseProps=t=>((t,n)=>{const e=ht(t,n,"scatter"),r=Object.assign({},e,(t=>{const n=J(t,"scatter"),e=tt(t.style,n),r={x:st(t,"x"),y:st(t,"y")},i={x:Ta(t,"x"),y:Ta(t,"y")},o={x:Yo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Yo(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)},a=t.polar?t.origin||at(t):void 0,s=t.bubbleProperty||"z";let l=_a(t);return l=ma(l,i),{domain:i,data:l,scale:o,style:e,origin:a,z:s}})(e)),{data:i,domain:o,events:a,height:s,origin:l,padding:c,polar:u,scale:h,name:d,sharedEvents:f,standalone:p,style:m,theme:y,width:g,labels:x,horizontal:v,disableInlineStyles:b}=r,_={parent:{style:m.parent,scale:h,domain:o,data:i,height:s,width:g,standalone:p,theme:y,origin:l,polar:u,padding:c,name:d,horizontal:v}};return i.reduce(((t,n,e)=>{const o=lt(n.eventKey)?e:n.eventKey,{x:s,y:c}=X(r,n),d={x:s,y:c,datum:n,data:i,index:e,scale:h,polar:u,origin:l,horizontal:v,size:kx(n,r),symbol:Ex(n,r),style:b?{}:m.data,disableInlineStyles:b};return t[o]={data:d},(null!=Ua(r,n,e)||x&&(a||f))&&(t[o].labels=Ya(r,e)),t}),_)})(t,Sx);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Dx,e=ht(this.props,Sx,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Fc(i,e)}}const Dx=Hd(Px),Ox={width:450,height:300,padding:50};function Lx(t,n){const e=Dm(t,n).map((t=>t.filter((t=>null!==t._x&&null!==t._y)))),r=function(t,n){const{fillInMissingData:e}=t,r=n.reduce(((t,n)=>(n.forEach((n=>{t[n._x instanceof Date?n._x.getTime():n._x]=!0})),t)),{}),i=Object.keys(r).map((t=>Number(t))),o=N()(i);return n.map((t=>{let n=0;const r=t[0]&&t[0]._x instanceof Date,i=o.map(((i,o)=>{let a=Number(i);const s=t[o-n];if(s){if((r?s._x.getTime():s._x)===a)return s;n++;const t=e?0:null;return a=r?new Date(a):a,{x:a,y:t,_x:a,_y:t}}const l=e?0:null;return a=r?new Date(a):a,{x:a,y:l,_x:a,_y:l}}));return i}))}(t,e);return r.map(((n,e)=>function(t,n,e){const r=t.xOffset||0;return n[e].map((t=>{const i=function(t,n,e){if(t.y0)return t.y0;const r=t._y,i=t._group,o=e[0].map((t=>t.y0)),a=e.slice(0,n).reduce(((n,e)=>n.concat(e.filter((n=>t._x instanceof Date?n._x.getTime()===t._x.getTime():n._x===t._x)).map((t=>t._y||0)))),[]),s=a.length&&a.reduce(((t,n)=>r<0&&n<0||r>=0&&n>=0?Number(n)+t:t),o[i]||0);return a.some((t=>t instanceof Date))?new Date(s):s}(t,e,n)||0;return Object.assign({},t,{_y0:t._y instanceof Date?i?new Date(i):t._y:i,_y1:null===t._y?null:t._y instanceof Date?new Date(Number(t._y)+Number(i)):t._y+i,_x1:null===t._x?null:t._x instanceof Date?new Date(Number(t._x)+Number(r)):t._x+r})}))}(t,r,e)))}function Tx(t,n){const e=n||E().Children.toArray(t.children),r="stack",i=ht(t,Ox,r),o=Im(i.theme,i.style,r),a=i.categories||Hm(i,e),s=i.datasets||Lx(i,e),l=e.map(((t,n)=>E().cloneElement(t,{data:s[n]}))),c={x:$m(Object.assign({},i,{categories:a}),"x",l),y:$m(Object.assign({},i,{categories:a}),"y",l)},u=i.range||{x:st(i,"x"),y:st(i,"y")},h={x:Zo(i,"x")||Nm(i,"x"),y:Zo(i,"y")||Nm(i,"y")},d={x:h.x.domain(c.x).range(i.horizontal?u.y:u.x),y:h.y.domain(c.y).range(i.horizontal?u.x:u.y)},{colorScale:f,horizontal:p}=i;return{datasets:s,categories:a,range:u,domain:c,horizontal:p,scale:d,style:o,colorScale:f,role:r}}function jx(t,n){const e=n.type&&n.type.role,r=n.props.colorScale||t.colorScale;if("group"===e||"stack"===e)return t.theme?r||t.theme.props.colorScale:r}function $x(t,n,e){const r=ht(t,Ox,"stack"),i=n||E().Children.toArray(r.children),o=e||Tx(r,i),{datasets:a}=o,s=function(t,n){const{categories:e,domain:r,range:i,scale:o,horizontal:a}=n;return{height:t.height,width:t.width,padding:Z(t),standalone:!1,theme:t.theme,categories:e,domain:r,range:i,scale:o,horizontal:a}}(r,o),l=r.name||"stack";return i.map(((t,n)=>{const e=t.type&&t.type.role,i=a[n],c=Wm(t,n,o),u=r.labels?function(t,n,e){if(t.labels)return n.length===e+1?t.labels:void 0}(r,a,n):t.props.labels,h=t.props.name||`${l}-${e}-${n}`;return E().cloneElement(t,Object.assign({key:`${h}-key-${n}`,labels:u,name:h,domainPadding:t.props.domainPadding||r.domainPadding,theme:r.theme,labelComponent:r.labelComponent||t.props.labelComponent,style:c,colorScale:jx(r,t),data:i,polar:r.polar},s))}))}const Nx={width:450,height:300,padding:50},zx={containerComponent:E().createElement(Cu,null),groupComponent:E().createElement("g",null),standalone:!0,theme:Eh.grayscale,fillInMissingData:!0},Rx=t=>{const{role:n}=Wx,e=E().useMemo((()=>({...zx,...t})),[t]),{setAnimationState:r,getAnimationProps:i,getProps:o}=Em(),a=o(e),s=ht(a,Nx,n),{eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:y,horizontal:g,name:x}=s,v=E().Children.toArray(s.children),b=function(t){const n=(t=>{const{children:n}=t,e=E().Children.toArray(n).map((t=>{const n=t;return{...n,props:K(n.props,["sharedEvents"])}}));return t.children=e,t})(t),[e,r]=E().useState(n);return E().useEffect((()=>{Oh()(n,e)||r(n)}),[e,r,n]),E().useMemo((()=>Tx(e,e.children)),[e])}(s),{domain:_,scale:M,style:C}=b,w=E().useMemo((()=>$x(a,v,b).map(((t,n)=>{const e=Object.assign({animate:i(a,t,n)},t.props);return E().cloneElement(t,e)})).reverse()),[a,v,b,i]),A=E().useMemo((()=>u?{domain:_,scale:M,width:f,height:p,standalone:u,theme:m,style:C.parent,horizontal:g,polar:y,name:x}:{}),[u,_,M,f,p,m,C,g,y,x]),k=E().useMemo((()=>Vc(e)),[e]),S=E().useMemo((()=>{if(u){const t=q()({},c.props,A,k);return E().cloneElement(c,t)}return E().cloneElement(h,k)}),[h,u,c,A,k]),P=E().useMemo((()=>zm(a)),[a]),D=qm(e);return E().useEffect((()=>()=>{e.animate&&r(D,e)}),[r,D,e]),j()(P)?E().cloneElement(S,S.props,w):E().createElement(Zm,{container:S,eventKey:l,events:P,externalEventMutations:d},w)},Ix={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:$x},Wx=Object.assign(E().memo(Rx,Oh()),Ix);Wx.displayName="VictoryStack";const Bx={pathComponent:E().createElement(Ic,null),circleComponent:E().createElement(Eu,null),clipPathComponent:E().createElement(wu,null),groupComponent:E().createElement("g",null),role:"presentation",shapeRendering:"auto"},Vx=t=>{const n=function(t){const n=nt(t.ariaLabel,t),e=nt(t.id,t),r=nt(t.size,t),i=et(t.style,t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,size:r,style:i,tabIndex:o})}({...Bx,...t}),{ariaLabel:e,role:r,shapeRendering:i,className:o,events:a,transform:s,style:l,size:c,tabIndex:u}=n,h=(t=>{const{polygon:n}=t;return Array.isArray(n)&&n.length?`M ${t.polygon?.join("L")} Z`:""})(n),d={"aria-label":e,className:o,role:r,shapeRendering:i,style:l,tabIndex:u,transform:s,...a},f=Vc(n);if(c){const t=E().cloneElement(n.circleComponent,{...d,key:`${n.id}-circle-clip`,clipPath:`url(#${n.clipId})`,cx:n.x,cy:n.y,r:c}),e=E().cloneElement(n.clipPathComponent,{key:`${n.id}-voronoi-clip`,clipId:n.clipId},E().cloneElement(n.pathComponent,{d:h,className:o}));return E().cloneElement(n.groupComponent,{},[e,t])}return E().cloneElement(n.pathComponent,{...d,...f,d:h})};function Fx(t){return function(){return t}}function Ux(t){return t[0]}function Hx(t){return t[1]}function qx(){this._=null}function Gx(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Kx(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Yx(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Xx(t){for(;t.L;)t=t.L;return t}qx.prototype={constructor:qx,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=Xx(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(Kx(this,e),e=(t=e).U),e.C=!1,r.C=!0,Yx(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Yx(this,e),e=(t=e).U),e.C=!1,r.C=!0,Kx(this,r)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,a=t.R;if(e=o?a?Xx(a):o:a,i?i.L===t?i.L=e:i.R=e:this._=e,o&&a?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==a?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=a,a.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,Kx(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Yx(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Kx(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,Yx(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,Kx(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Yx(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var Zx=qx;function Qx(t,n,e,r){var i=[null,null],o=Mv.push(i)-1;return i.left=t,i.right=n,e&&tv(i,t,n,e),r&&tv(i,n,t,r),bv[t.index].halfedges.push(o),bv[n.index].halfedges.push(o),i}function Jx(t,n,e){var r=[n,e];return r.left=t,r}function tv(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function nv(t,n,e,r,i){var o,a=t[0],s=t[1],l=a[0],c=a[1],u=0,h=1,d=s[0]-l,f=s[1]-c;if(o=n-l,d||!(o>0)){if(o/=d,d<0){if(o<u)return;o<h&&(h=o)}else if(d>0){if(o>h)return;o>u&&(u=o)}if(o=r-l,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>u&&(u=o)}else if(d>0){if(o<u)return;o<h&&(h=o)}if(o=e-c,f||!(o>0)){if(o/=f,f<0){if(o<u)return;o<h&&(h=o)}else if(f>0){if(o>h)return;o>u&&(u=o)}if(o=i-c,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>u&&(u=o)}else if(f>0){if(o<u)return;o<h&&(h=o)}return!(u>0||h<1)||(u>0&&(t[0]=[l+u*d,c+u*f]),h<1&&(t[1]=[l+h*d,c+h*f]),!0)}}}}}function ev(t,n,e,r,i){var o=t[1];if(o)return!0;var a,s,l=t[0],c=t.left,u=t.right,h=c[0],d=c[1],f=u[0],p=u[1],m=(h+f)/2,y=(d+p)/2;if(p===d){if(m<n||m>=r)return;if(h>f){if(l){if(l[1]>=i)return}else l=[m,e];o=[m,i]}else{if(l){if(l[1]<e)return}else l=[m,i];o=[m,e]}}else if(s=y-(a=(h-f)/(p-d))*m,a<-1||a>1)if(h>f){if(l){if(l[1]>=i)return}else l=[(e-s)/a,e];o=[(i-s)/a,i]}else{if(l){if(l[1]<e)return}else l=[(i-s)/a,i];o=[(e-s)/a,e]}else if(d<p){if(l){if(l[0]>=r)return}else l=[n,a*n+s];o=[r,a*r+s]}else{if(l){if(l[0]<n)return}else l=[r,a*r+s];o=[n,a*n+s]}return t[0]=l,t[1]=o,!0}function rv(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function iv(t,n){return n[+(n.left!==t.site)]}function ov(t,n){return n[+(n.left===t.site)]}var av,sv=[];function lv(){Gx(this),this.x=this.y=this.arc=this.site=this.cy=null}function cv(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var a=i[0],s=i[1],l=r[0]-a,c=r[1]-s,u=o[0]-a,h=o[1]-s,d=2*(l*h-c*u);if(!(d>=-wv)){var f=l*l+c*c,p=u*u+h*h,m=(h*f-c*p)/d,y=(l*p-u*f)/d,g=sv.pop()||new lv;g.arc=t,g.site=i,g.x=m+a,g.y=(g.cy=y+s)+Math.sqrt(m*m+y*y),t.circle=g;for(var x=null,v=_v._;v;)if(g.y<v.y||g.y===v.y&&g.x<=v.x){if(!v.L){x=v.P;break}v=v.L}else{if(!v.R){x=v;break}v=v.R}_v.insert(x,g),x||(av=g)}}}}function uv(t){var n=t.circle;n&&(n.P||(av=n.N),_v.remove(n),sv.push(n),Gx(n),t.circle=null)}var hv=[];function dv(){Gx(this),this.edge=this.site=this.circle=null}function fv(t){var n=hv.pop()||new dv;return n.site=t,n}function pv(t){uv(t),vv.remove(t),hv.push(t),Gx(t)}function mv(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,a=t.N,s=[t];pv(t);for(var l=o;l.circle&&Math.abs(e-l.circle.x)<Cv&&Math.abs(r-l.circle.cy)<Cv;)o=l.P,s.unshift(l),pv(l),l=o;s.unshift(l),uv(l);for(var c=a;c.circle&&Math.abs(e-c.circle.x)<Cv&&Math.abs(r-c.circle.cy)<Cv;)a=c.N,s.push(c),pv(c),c=a;s.push(c),uv(c);var u,h=s.length;for(u=1;u<h;++u)c=s[u],l=s[u-1],tv(c.edge,l.site,c.site,i);l=s[0],(c=s[h-1]).edge=Qx(l.site,c.site,null,i),cv(l),cv(c)}function yv(t){for(var n,e,r,i,o=t[0],a=t[1],s=vv._;s;)if((r=gv(s,a)-o)>Cv)s=s.L;else{if(!((i=o-xv(s,a))>Cv)){r>-Cv?(n=s.P,e=s):i>-Cv?(n=s,e=s.N):n=e=s;break}if(!s.R){n=s;break}s=s.R}!function(t){bv[t.index]={site:t,halfedges:[]}}(t);var l=fv(t);if(vv.insert(n,l),n||e){if(n===e)return uv(n),e=fv(n.site),vv.insert(l,e),l.edge=e.edge=Qx(n.site,l.site),cv(n),void cv(e);if(e){uv(n),uv(e);var c=n.site,u=c[0],h=c[1],d=t[0]-u,f=t[1]-h,p=e.site,m=p[0]-u,y=p[1]-h,g=2*(d*y-f*m),x=d*d+f*f,v=m*m+y*y,b=[(y*x-f*v)/g+u,(d*v-m*x)/g+h];tv(e.edge,c,p,b),l.edge=Qx(c,t,null,b),e.edge=Qx(t,p,null,b),cv(n),cv(e)}else l.edge=Qx(n.site,l.site)}}function gv(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(e=a.site)[0],l=e[1],c=l-n;if(!c)return s;var u=s-r,h=1/o-1/c,d=u/c;return h?(-d+Math.sqrt(d*d-2*h*(u*u/(-2*c)-l+c/2+i-o/2)))/h+r:(r+s)/2}function xv(t,n){var e=t.N;if(e)return gv(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var vv,bv,_v,Mv,Cv=1e-6,wv=1e-12;function Av(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function Ev(t,n){return n[1]-t[1]||n[0]-t[0]}function kv(t,n){var e,r,i,o=t.sort(Ev).pop();for(Mv=[],bv=new Array(t.length),vv=new Zx,_v=new Zx;;)if(i=av,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(yv(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;mv(i.arc)}if(function(){for(var t,n,e,r,i=0,o=bv.length;i<o;++i)if((t=bv[i])&&(r=(n=t.halfedges).length)){var a=new Array(r),s=new Array(r);for(e=0;e<r;++e)a[e]=e,s[e]=rv(t,Mv[n[e]]);for(a.sort((function(t,n){return s[n]-s[t]})),e=0;e<r;++e)s[e]=n[a[e]];for(e=0;e<r;++e)n[e]=s[e]}}(),n){var a=+n[0][0],s=+n[0][1],l=+n[1][0],c=+n[1][1];!function(t,n,e,r){for(var i,o=Mv.length;o--;)ev(i=Mv[o],t,n,e,r)&&nv(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>Cv||Math.abs(i[0][1]-i[1][1])>Cv)||delete Mv[o]}(a,s,l,c),function(t,n,e,r){var i,o,a,s,l,c,u,h,d,f,p,m,y=bv.length,g=!0;for(i=0;i<y;++i)if(o=bv[i]){for(a=o.site,s=(l=o.halfedges).length;s--;)Mv[l[s]]||l.splice(s,1);for(s=0,c=l.length;s<c;)p=(f=ov(o,Mv[l[s]]))[0],m=f[1],h=(u=iv(o,Mv[l[++s%c]]))[0],d=u[1],(Math.abs(p-h)>Cv||Math.abs(m-d)>Cv)&&(l.splice(s,0,Mv.push(Jx(a,f,Math.abs(p-t)<Cv&&r-m>Cv?[t,Math.abs(h-t)<Cv?d:r]:Math.abs(m-r)<Cv&&e-p>Cv?[Math.abs(d-r)<Cv?h:e,r]:Math.abs(p-e)<Cv&&m-n>Cv?[e,Math.abs(h-e)<Cv?d:n]:Math.abs(m-n)<Cv&&p-t>Cv?[Math.abs(d-n)<Cv?h:t,n]:null))-1),++c);c&&(g=!1)}if(g){var x,v,b,_=1/0;for(i=0,g=null;i<y;++i)(o=bv[i])&&(b=(x=(a=o.site)[0]-t)*x+(v=a[1]-n)*v)<_&&(_=b,g=o);if(g){var M=[t,n],C=[t,r],w=[e,r],A=[e,n];g.halfedges.push(Mv.push(Jx(a=g.site,M,C))-1,Mv.push(Jx(a,C,w))-1,Mv.push(Jx(a,w,A))-1,Mv.push(Jx(a,A,M))-1)}}for(i=0;i<y;++i)(o=bv[i])&&(o.halfedges.length||delete bv[i])}(a,s,l,c)}this.edges=Mv,this.cells=bv,vv=_v=Mv=bv=null}kv.prototype={constructor:kv,polygons:function(){var t=this.edges;return this.cells.map((function(n){var e=n.halfedges.map((function(e){return iv(n,t[e])}));return e.data=n.site.data,e}))},triangles:function(){var t=[],n=this.edges;return this.cells.forEach((function(e,r){if(o=(i=e.halfedges).length)for(var i,o,a,s=e.site,l=-1,c=n[i[o-1]],u=c.left===s?c.right:c.left;++l<o;)a=u,u=(c=n[i[l]]).left===s?c.right:c.left,a&&u&&r<a.index&&r<u.index&&Av(s,a,u)<0&&t.push([s.data,a.data,u.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,n,e){for(var r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var l=t-i.site[0],c=n-i.site[1],u=l*l+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(e){var r=o.edges[e],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=t-s[0],c=n-s[1],h=l*l+c*c;h<u&&(u=h,a=s.index)}}))}while(null!==a);return o._found=r,null==e||u<=e*e?i.site:null}};const Sv=(t,n,e)=>{const r=[Math.min(...n.x),Math.min(...n.y)],i=[Math.max(...n.x),Math.max(...n.y)];return function(){var t=Ux,n=Hx,e=null;function r(r){return new kv(r.map((function(e,i){var o=[Math.round(t(e,i,r)/Cv)*Cv,Math.round(n(e,i,r)/Cv)*Cv];return o.index=i,o.data=e,o})),e)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(n){return arguments.length?(t="function"==typeof n?n:Fx(+n),r):t},r.y=function(t){return arguments.length?(n="function"==typeof t?t:Fx(+t),r):n},r.extent=function(t){return arguments.length?(e=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},r.size=function(t){return arguments.length?(e=null==t?null:[[0,0],[+t[0],+t[1]]],r):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},r}().x((n=>t.polar?(t=>-1*e.x(void 0!==t._x1?t._x1:t._x)+Math.PI/2)(n):(n=>t.horizontal?e.y(void 0!==n._y1?n._y1:n._y):e.x(void 0!==n._x1?n._x1:n._x))(n))).y((n=>(n=>t.horizontal?e.x(void 0!==n._x1?n._x1:n._x):e.y(void 0!==n._y1?n._y1:n._y))(n))).extent([r,i])},Pv={width:450,height:300,padding:50};class Dv extends E().Component{static animationWhitelist=["data","domain","height","padding","samples","size","style","width"];static displayName="VictoryVoronoi";static role="voronoi";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(Cu,null),dataComponent:E().createElement(Vx,null),labelComponent:E().createElement(lh,null),groupComponent:E().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Eh.grayscale};static getDomain=Ta;static getData=_a;static getBaseProps=t=>((t,n)=>{const e=ht(t,n,"scatter"),r=Object.assign({},e,(t=>{const n=t.theme&&t.theme.voronoi&&t.theme.voronoi.style?t.theme.voronoi.style:{},e=tt(t.style,n),r={x:st(t,"x"),y:st(t,"y")},i={x:Ta(t,"x"),y:Ta(t,"y")},o={x:Yo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Yo(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)};let a=_a(t);return a=ma(a,i),a=a.filter((t=>null!==t._x&&null!==t._y)),{domain:i,data:a,scale:o,style:e,polygons:Sv(t,r,o).polygons(a),origin:t.polar?t.origin||at(t):void 0}})(e)),{data:i,domain:o,events:a,height:s,origin:l,padding:c,polar:u,polygons:h,scale:d,sharedEvents:f,standalone:p,style:m,theme:y,width:g,labels:x,name:v}=r,b={parent:{style:m.parent,scale:d,domain:o,data:i,standalone:p,height:s,width:g,theme:y,origin:l,polar:u,padding:c,name:v}};return i.reduce(((t,n,e)=>{const o=h[e]?.filter((t=>"data"!==t)),s=lt(n.eventKey)?e:n.eventKey,{x:c,y:u}=X(r,n),p={x:c,y:u,datum:n,data:i,index:e,scale:d,polygon:o,origin:l,size:r.size,style:m.data};return t[s]={data:p},(null!=Ua(r,n,e)||x&&(a||f))&&(t[s].labels=Ya(r,e)),t}),b)})(t,Pv);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Ov,e=ht(this.props,Pv,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Fc(i,e)}}const Ov=Hd(Dv)}(),i}()}));
2
2
  //# sourceMappingURL=victory.min.js.map