victory 36.9.1 → 36.9.2-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/dist/victory.js +13704 -17649
- package/dist/victory.min.js +1 -1
- package/es/index.d.ts +27 -27
- package/lib/index.d.ts +27 -27
- package/lib/index.js +0 -54
- package/package.json +57 -38
package/dist/victory.min.js
CHANGED
|
@@ -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,w=(p+d)/2,_=(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 q=x,H=k,G=D;x=O,k=I,D=N,O=q,I=H,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],w=i[2*d],_=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=_-M)*(L=(D=j-A)*D+(T=P-M)*T)-(R=(S=w-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)}},1377:(t,e,n)=>{var r=n(3273),o=n(5510),i=n(9955),a=n(8644),u=n(9110),c=n(9914);t.exports=function(t,e,n,l){var s=-1,f=o,p=!0,h=t.length,d=[],y=e.length;if(!h)return d;n&&(e=a(e,u(n))),l?(f=i,p=!1):e.length>=200&&(f=c,p=!1,e=new r(e));t:for(;++s<h;){var v=t[s],m=null==n?v:n(v);if(v=l||0!==v?v:0,p&&m==m){for(var g=y;g--;)if(e[g]===m)continue t;d.push(v)}else f(e,m,l)||d.push(v)}return d}},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}},4287:(t,e,n)=>{var r=n(2446);t.exports=function(t,e,n,o){return r(t,(function(t,r,i){e(o,n(t),r,i)})),o}},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),w=(x=x==f?h:x)==h,_=(O=O==f?h:O)==h,j=x==O;if(j&&l(t)){if(!l(e))return!1;g=!0,w=!1}if(j&&!w)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=w&&d.call(t,"__wrapped__"),A=_&&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}},991:t=>{t.exports=function(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},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}},5803:(t,e,n)=>{var r=n(8644);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},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}}))}},1093:(t,e,n)=>{var r=n(4287);t.exports=function(t,e){return function(n,o){return r(n,t,e(o),{})}}},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},1937:t=>{t.exports=function(t){return function(){return t}}},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 w(t);p=setTimeout(O,function(t){var n=e-(t-h);return v?u(n,s-(t-d)):n}(t))}function w(t){return p=void 0,m&&c?g(t):(c=l=void 0,f)}function _(){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),_.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=l=p=void 0},_.flush=function(){return void 0===p?f:w(o())},_}},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},6354:(t,e,n)=>{var r=n(1377),o=n(6457),i=n(6317),a=n(7605),u=i((function(t,e){return a(t)?r(t,o(e,1,a,!0)):[]}));t.exports=u},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}},6149:(t,e,n)=>{var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},471:(t,e,n)=>{var r=n(1937),o=n(1093),i=n(5346),a=Object.prototype.toString,u=o((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=a.call(e)),t[e]=n}),r(i));t.exports=u},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)}},7605:(t,e,n)=>{var r=n(981),o=n(3474);t.exports=function(t){return o(t)&&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}},5168:(t,e,n)=>{var r=n(2559);t.exports=function(t){return r(t)&&t!=+t}},9555:t=>{t.exports=function(t){return null==t}},2559:(t,e,n)=>{var r=n(563),o=n(3474);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},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},5953:(t,e,n)=>{var r=n(563),o=n(163),i=n(3474);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},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}},1950:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},4943:(t,e,n)=>{var r=n(8347),o=n(2446),i=n(3472);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},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},4397: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}},2829:(t,e,n)=>{var r=n(7556);t.exports=function(t){return t&&t.length?r(t):[]}},5367:(t,e,n)=>{var r=n(991),o=n(5346);t.exports=function(t){return t&&t.length?r(t,o):0}},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}},366:(t,e,n)=>{var r=n(5803),o=n(7747);t.exports=function(t){return null==t?[]:r(t,o(t))}},4882:(t,e,n)=>{var r=n(1377),o=n(6317),i=n(7605),a=o((function(t,e){return i(t)?r(t,e):[]}));t.exports=a},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:()=>Hb,Area:()=>gs,Axis:()=>x,Background:()=>Kg,Bar:()=>gv,Border:()=>kv,Box:()=>kv,BrushHelpers:()=>wm,Candle:()=>ag,CanvasBar:()=>Sg,CanvasCurve:()=>Dg,CanvasGroup:()=>kg,CanvasPoint:()=>Vg,Circle:()=>ff,ClipPath:()=>af,Collection:()=>e,CursorHelpers:()=>lw,Curve:()=>Sj,Data:()=>u,DefaultTransitions:()=>v,Domain:()=>c,ErrorBar:()=>qw,Events:()=>m,Flyout:()=>Yx,Helpers:()=>t,Hooks:()=>j,Immutable:()=>a,LabelHelpers:()=>l,Line:()=>yy,LineHelpers:()=>f,LineSegment:()=>xy,Log:()=>h,Path:()=>es,Point:()=>Nx,PointPathHelpers:()=>w,Portal:()=>Ms,PortalContext:()=>Es,RawZoomHelpers:()=>DO,Rect:()=>vf,Scale:()=>i,Selection:()=>O,SelectionHelpers:()=>YO,Slice:()=>$j,Style:()=>d,TSpan:()=>Uf,Text:()=>Nf,TextSize:()=>y,Timer:()=>Ks,TimerContext:()=>Ys,Transitions:()=>b,UserProps:()=>p,VictoryAccessibleGroup:()=>kx,VictoryAnimation:()=>ad,VictoryArea:()=>Vd,VictoryAxis:()=>Gy,VictoryBar:()=>Av,VictoryBoxPlot:()=>om,VictoryBrushContainer:()=>Rm,VictoryBrushLine:()=>eg,VictoryCandlestick:()=>Mg,VictoryChart:()=>Px,VictoryClipContainer:()=>Af,VictoryContainer:()=>of,VictoryCursorContainer:()=>Ow,VictoryErrorBar:()=>o_,VictoryGroup:()=>j_,VictoryHistogram:()=>X_,VictoryLabel:()=>Pp,VictoryLegend:()=>Pj,VictoryLine:()=>Nj,VictoryPie:()=>iP,VictoryPolarAxis:()=>hx,VictoryPortal:()=>Tf,VictoryScatter:()=>mP,VictorySelectionContainer:()=>aw,VictorySharedEvents:()=>Bb,VictoryStack:()=>LP,VictoryTheme:()=>Fp,VictoryTooltip:()=>iO,VictoryTransition:()=>xd,VictoryVoronoi:()=>IA,VictoryVoronoiContainer:()=>MO,VictoryZoomContainer:()=>HO,Voronoi:()=>WP,VoronoiHelpers:()=>yO,Whisker:()=>Iv,Wrapper:()=>_,ZoomHelpers:()=>TO,addEvents:()=>Rd,brushContainerMixin:()=>Tm,combineContainerMixins:()=>Rw,createContainer:()=>Nw,cursorContainerMixin:()=>xw,getBarPath:()=>pv,getBarPosition:()=>Ky,getBarWidth:()=>$y,getCornerRadius:()=>Yy,getCustomBarPath:()=>uv,getHorizontalBarPath:()=>sv,getPolarBarPath:()=>hv,getStyle:()=>Xy,getVerticalBarPath:()=>lv,getVerticalPolarBarPath:()=>fv,makeCreateContainerFunction:()=>Iw,selectionContainerMixin:()=>iw,useCanvasContext:()=>Cg,voronoiContainerMixin:()=>AO,zoomContainerMixin:()=>qO});var t={};r.r(t),r.d(t,{createAccessor:()=>mt,degreesToRadians:()=>pt,evaluateProp:()=>st,evaluateStyle:()=>ft,getCurrentAxis:()=>bt,getDefaultStyles:()=>ct,getPadding:()=>at,getPoint:()=>ot,getPolarOrigin:()=>yt,getRadius:()=>dt,getRange:()=>vt,getStyles:()=>lt,isHorizontal:()=>wt,isTooltip:()=>ut,modifyProps:()=>gt,omit:()=>rt,radiansToDegrees:()=>ht,range:()=>xt,reduceChildren:()=>Ot,scalePoint:()=>it});var e={};r.r(e),r.d(e,{containsDates:()=>Mt,containsNumbers:()=>Et,containsOnlyStrings:()=>Ct,containsStrings:()=>At,getMaxValue:()=>Dt,getMinValue:()=>Tt,isArrayOfArrays:()=>St,removeUndefined:()=>kt});var n={};r.r(n),r.d(n,{scaleBand:()=>Vt,scaleDiverging:()=>Gi,scaleDivergingLog:()=>Ki,scaleDivergingPow:()=>Yi,scaleDivergingSqrt:()=>Xi,scaleDivergingSymlog:()=>$i,scaleIdentity:()=>En,scaleImplicit:()=>Wt,scaleLinear:()=>Mn,scaleLog:()=>Nn,scaleOrdinal:()=>Ut,scalePoint:()=>qt,scalePow:()=>Gn,scaleQuantile:()=>or,scaleQuantize:()=>ir,scaleRadial:()=>Xn,scaleSequential:()=>zi,scaleSequentialLog:()=>Bi,scaleSequentialPow:()=>Ui,scaleSequentialQuantile:()=>Fi,scaleSequentialSqrt:()=>Vi,scaleSequentialSymlog:()=>Wi,scaleSqrt:()=>Kn,scaleSymlog:()=>Un,scaleThreshold:()=>ar,scaleTime:()=>Ri,scaleUtc:()=>Li,tickFormat:()=>Pn});var i={};r.r(i),r.d(i,{getBaseScale:()=>na,getDefaultScale:()=>ra,getScaleFromName:()=>ea,getScaleFromProps:()=>oa,getScaleType:()=>ia,getType:()=>ua,validScale:()=>Qi});var a={};r.r(a),r.d(a,{IMMUTABLE_ITERABLE:()=>ca,IMMUTABLE_LIST:()=>sa,IMMUTABLE_MAP:()=>fa,IMMUTABLE_RECORD:()=>la,isImmutable:()=>da,isIterable:()=>pa,isList:()=>ya,isMap:()=>va,isRecord:()=>ha,shallowToJS:()=>ma});var u={};r.r(u),r.d(u,{createStringMap:()=>Pa,downsample:()=>Aa,formatData:()=>Ma,formatDataFromDomain:()=>ja,generateData:()=>Ea,getCategories:()=>Ca,getData:()=>Sa,getStringsFromAxes:()=>ka,getStringsFromCategories:()=>Da,getStringsFromData:()=>Ta,isDataComponent:()=>Ra});var c={};r.r(c),r.d(c,{createDomainFunction:()=>qa,formatDomain:()=>Ha,getDomain:()=>Ga,getDomainFromCategories:()=>Ka,getDomainFromData:()=>$a,getDomainFromMinMax:()=>Ya,getDomainFromProps:()=>Xa,getDomainWithZero:()=>Za,getMaxFromProps:()=>Qa,getMinFromProps:()=>Ja,getSymmetricDomain:()=>tu,isDomainComponent:()=>eu});var l={};r.r(l),r.d(l,{getDegrees:()=>uu,getPolarAngle:()=>au,getPolarTextAnchor:()=>ou,getPolarVerticalAnchor:()=>iu,getProps:()=>cu,getText:()=>ru});var s={};r.r(s),r.d(s,{arc:()=>Zu,area:()=>ju,areaRadial:()=>Su,curveBasis:()=>qc,curveBasisClosed:()=>Gc,curveBasisOpen:()=>$c,curveBumpX:()=>oc,curveBumpY:()=>ic,curveBundle:()=>Xc,curveCardinal:()=>Jc,curveCardinalClosed:()=>el,curveCardinalOpen:()=>rl,curveCatmullRom:()=>al,curveCatmullRomClosed:()=>cl,curveCatmullRomOpen:()=>sl,curveLinear:()=>xu,curveLinearClosed:()=>pl,curveMonotoneX:()=>xl,curveMonotoneY:()=>Ol,curveNatural:()=>jl,curveStep:()=>Al,curveStepAfter:()=>El,curveStepBefore:()=>Ml,line:()=>_u,lineRadial:()=>Cu,link:()=>lc,linkHorizontal:()=>sc,linkRadial:()=>pc,linkVertical:()=>fc,pie:()=>tc,pointRadial:()=>ec,radialArea:()=>Su,radialLine:()=>Cu,stack:()=>Tl,stackOffsetDiverging:()=>Ll,stackOffsetExpand:()=>Rl,stackOffsetNone:()=>Cl,stackOffsetSilhouette:()=>Il,stackOffsetWiggle:()=>Nl,stackOrderAppearance:()=>zl,stackOrderAscending:()=>Wl,stackOrderDescending:()=>Vl,stackOrderInsideOut:()=>Fl,stackOrderNone:()=>Sl,stackOrderReverse:()=>ql,symbol:()=>Wc,symbolAsterisk:()=>dc,symbolCircle:()=>yc,symbolCross:()=>vc,symbolDiamond:()=>bc,symbolDiamond2:()=>xc,symbolPlus:()=>Oc,symbolSquare:()=>wc,symbolSquare2:()=>_c,symbolStar:()=>Mc,symbolTriangle:()=>Cc,symbolTriangle2:()=>kc,symbolWye:()=>Ic,symbolX:()=>Nc,symbols:()=>zc,symbolsFill:()=>zc,symbolsStroke:()=>Bc});var f={};r.r(f),r.d(f,{getInterpolationFunction:()=>Yl,getLineFunction:()=>Xl});var p={};r.r(p),r.d(p,{assert:()=>us,getSafeUserProps:()=>cs,withSafeUserProps:()=>ls});var h={};r.r(h),r.d(h,{warn:()=>Mf});var d={};r.r(d),r.d(d,{getColorScale:()=>Ff,toTransformString:()=>Vf});var y={};r.r(y),r.d(y,{_approximateTextSizeInternal:()=>cp,approximateTextSize:()=>lp,convertLengthToPixels:()=>ep});var v={};r.r(v),r.d(v,{continuousPolarTransitions:()=>Hp,continuousTransitions:()=>qp,discreteTransitions:()=>Gp});var m={};r.r(m),r.d(m,{emulateReactEvent:()=>dh,getComponentEvents:()=>sh,getEventState:()=>ah,getEvents:()=>rh,getExternalMutation:()=>lh,getExternalMutations:()=>ch,getExternalMutationsWithChildren:()=>uh,getGlobalEventNameFromKey:()=>fh,getGlobalEvents:()=>ph,getPartialEvents:()=>ih,getScopedEvents:()=>oh,omitGlobalEvents:()=>hh});var g={};r.r(g),r.d(g,{easeBack:()=>Gh,easeBackIn:()=>qh,easeBackInOut:()=>Gh,easeBackOut:()=>Hh,easeBounce:()=>Uh,easeBounceIn:()=>Wh,easeBounceInOut:()=>Vh,easeBounceOut:()=>Uh,easeCircle:()=>zh,easeCircleIn:()=>Ih,easeCircleInOut:()=>zh,easeCircleOut:()=>Nh,easeCubic:()=>_h,easeCubicIn:()=>Oh,easeCubicInOut:()=>_h,easeCubicOut:()=>wh,easeElastic:()=>Yh,easeElasticIn:()=>$h,easeElasticInOut:()=>Xh,easeElasticOut:()=>Yh,easeExp:()=>Lh,easeExpIn:()=>Th,easeExpInOut:()=>Lh,easeExpOut:()=>Rh,easeLinear:()=>mh,easePoly:()=>Ah,easePolyIn:()=>jh,easePolyInOut:()=>Ah,easePolyOut:()=>Ph,easeQuad:()=>xh,easeQuadIn:()=>gh,easeQuadInOut:()=>xh,easeQuadOut:()=>bh,easeSin:()=>kh,easeSinIn:()=>Ch,easeSinInOut:()=>kh,easeSinOut:()=>Sh});var b={};r.r(b),r.d(b,{getInitialTransitionState:()=>hd,getTransitionPropsFactory:()=>dd});var x={};r.r(x),r.d(x,{findAxisComponents:()=>Xd,getAxis:()=>Yd,getAxisComponent:()=>Zd,getAxisComponentsWithParent:()=>Qd,getAxisValue:()=>ly,getDomain:()=>cy,getOrigin:()=>Jd,getOriginSign:()=>ty,getTickFormat:()=>oy,getTicks:()=>ay,isVertical:()=>ey,modifyProps:()=>sy,stringTicks:()=>ny});var O={};r.r(O),r.d(O,{getBounds:()=>fm,getDataCoordinates:()=>sm,getDomainCoordinates:()=>lm,getParentSVG:()=>um,getSVGEventCoordinates:()=>cm});var w={};r.r(w),r.d(w,{circle:()=>Tg,cross:()=>Bg,diamond:()=>Lg,minus:()=>Wg,plus:()=>zg,square:()=>Rg,star:()=>Ug,triangleDown:()=>Ig,triangleUp:()=>Ng});var _={};r.r(_),r.d(_,{addBinsToParentPropsIfHistogram:()=>sb,getAllEvents:()=>gb,getCategories:()=>Ab,getCategoryAndAxisStringsFromChildren:()=>jb,getChildStyle:()=>Ob,getColor:()=>bb,getData:()=>pb,getDataFromChildren:()=>fb,getDefaultDomainPadding:()=>db,getDomain:()=>vb,getDomainFromChildren:()=>yb,getScale:()=>mb,getStringsFromCategories:()=>wb,getStringsFromChildren:()=>Pb,getStringsFromData:()=>_b,getStyle:()=>xb,getWidth:()=>hb});var j={};r.r(j),r.d(j,{useAnimationState:()=>nb,usePreviousProps:()=>Mb});var P=r(9787),A=r.n(P),M=r(9555),E=r.n(M),C=r(1616),S=r.n(C),k=r(8999),D=r.n(k),T=r(6149),R=r.n(T),L=r(8254),I=r.n(L),N=r(4155),z=r.n(N),B=r(4143),W=r.n(B),U=r(8532),V=r.n(U),F=r(3849),q=r.n(F),H=r(9642),G=r.n(H),K=r(1950),$=r.n(K),Y=r(9602),X=r.n(Y),Z=r(7747),Q=r.n(Z),J=r(9082),tt=r.n(J),et=r(1893),nt=r.n(et);function rt(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 ot(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 nt()({},p,t)}function it(t,e){var n=t.scale,r=t.polar,o=t.horizontal,i=ot(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 at(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 ut(t){return"tooltip"===(t&&t.type&&t.type.role)}function ct(t,e){var n=t.theme,r=void 0===n?{}:n,o=t.labelComponent,i=r[e]&&r[e].style||{};if(!ut(o))return i;var a=r.tooltip&&r.tooltip.style||{},u=nt()({},a,i.labels);return nt()({},{labels:u},i)}function lt(t,e){var n="100%",r="100%";if(!t)return nt()({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:nt()({},a,u,{width:n,height:r}),labels:nt()({},i,c),data:nt()({},o,l)}}function st(t,e){return G()(t)?t(e):t}function ft(t,e){return e.disableInlineStyles?{}:t&&Q()(t).some((function(e){return G()(t[e])}))?Q()(t).reduce((function(n,r){return n[r]=st(t[r],e),n}),{}):t}function pt(t){return"number"==typeof t?t*(Math.PI/180):t}function ht(t){return"number"==typeof t?t/(Math.PI/180):t}function dt(t){var e=at(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 yt(t){var e=t.width,n=t.height,r=at(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 vt(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?[pt(t.startAngle||0),pt(t.endAngle||360)]:[t.innerRadius||0,dt(t)]}(t,e):function(t,e){var n="x"!==e,r=at(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)}function mt(t){return G()(t)?t:null==t?function(t){return t}:V()(t)}function gt(t,e,n){var r=rt(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),o=wt(t),i=void 0===o?{}:{horizontal:o};return nt()(i,t,r,e)}function bt(t,e){return e?"x"===t?"y":"x":t}function xt(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 Ot(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,tt()(n,i)),d=r.type&&"stack"===r.type.role&&G()(r.type.getChildren)?r.type.getChildren(h):A().Children.toArray(r.props.children).map((function(t){var e=Object.assign({},t.props,tt()(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 wt(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 _t(t){return function(t){if(Array.isArray(t))return jt(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 jt(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)?jt(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 jt(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 Pt(t){return Array.isArray(t)&&t.length>0}function At(t){return Array.isArray(t)&&t.some((function(t){return"string"==typeof t}))}function Mt(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function Et(t){return Array.isArray(t)&&t.some((function(t){return"number"==typeof t}))}function Ct(t){return Pt(t)&&t.every((function(t){return"string"==typeof t}))}function St(t){return Pt(t)&&t.every(Array.isArray)}function kt(t){return t.filter((function(t){return void 0!==t}))}function Dt(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 Mt(o)?new Date(Math.max.apply(Math,_t(o))):Math.max.apply(Math,_t(o))}function Tt(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 Mt(o)?new Date(Math.min.apply(Math,_t(o))):Math.min.apply(Math,_t(o))}function Rt(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 Lt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function It(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 Nt extends Map{constructor(t,e=Bt){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(zt(this,t))}has(t){return super.has(zt(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 zt({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Bt(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Wt=Symbol("implicit");function Ut(){var t=new Nt,e=[],n=[],r=Wt;function o(o){let i=t.get(o);if(void 0===i){if(r!==Wt)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 Nt;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 Ut(e,n).unknown(r)},Lt.apply(o,arguments),o}function Vt(){var t,e,n=Ut().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=Rt(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 Vt(r(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},Lt.apply(f(),arguments)}function Ft(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ft(e())},t}function qt(){return Ft(Vt.apply(null,arguments).paddingInner(1))}var Ht=Math.sqrt(50),Gt=Math.sqrt(10),Kt=Math.sqrt(2);function $t(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=Yt(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 Yt(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>=Ht?10:i>=Gt?5:i>=Kt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Ht?10:i>=Gt?5:i>=Kt?2:1)}function Xt(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>=Ht?o*=10:i>=Gt?o*=5:i>=Kt&&(o*=2),e<t?-o:o}function Zt(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Qt(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Jt(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=Zt,n=(e,n)=>Zt(t(e),n),r=(e,n)=>t(e)-n):(e=t===Zt||t===Qt?t:te,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 te(){return 0}function ee(t){return null===t?NaN:+t}const ne=Jt(Zt),re=ne.right,oe=(ne.left,Jt(ee).center,re);function ie(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ae(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ue(){}var ce=.7,le=1/ce,se="\\s*([+-]?\\d+)\\s*",fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",he=/^#([0-9a-f]{3,8})$/,de=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),ye=new RegExp(`^rgb\\(${pe},${pe},${pe}\\)$`),ve=new RegExp(`^rgba\\(${se},${se},${se},${fe}\\)$`),me=new RegExp(`^rgba\\(${pe},${pe},${pe},${fe}\\)$`),ge=new RegExp(`^hsl\\(${fe},${pe},${pe}\\)$`),be=new RegExp(`^hsla\\(${fe},${pe},${pe},${fe}\\)$`),xe={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 Oe(){return this.rgb().formatHex()}function we(){return this.rgb().formatRgb()}function _e(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=he.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?je(e):3===n?new Ee(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Pe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Pe(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=de.exec(t))?new Ee(e[1],e[2],e[3],1):(e=ye.exec(t))?new Ee(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ve.exec(t))?Pe(e[1],e[2],e[3],e[4]):(e=me.exec(t))?Pe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ge.exec(t))?Re(e[1],e[2]/100,e[3]/100,1):(e=be.exec(t))?Re(e[1],e[2]/100,e[3]/100,e[4]):xe.hasOwnProperty(t)?je(xe[t]):"transparent"===t?new Ee(NaN,NaN,NaN,0):null}function je(t){return new Ee(t>>16&255,t>>8&255,255&t,1)}function Pe(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ee(t,e,n,r)}function Ae(t){return t instanceof ue||(t=_e(t)),t?new Ee((t=t.rgb()).r,t.g,t.b,t.opacity):new Ee}function Me(t,e,n,r){return 1===arguments.length?Ae(t):new Ee(t,e,n,null==r?1:r)}function Ee(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ce(){return`#${Te(this.r)}${Te(this.g)}${Te(this.b)}`}function Se(){const t=ke(this.opacity);return`${1===t?"rgb(":"rgba("}${De(this.r)}, ${De(this.g)}, ${De(this.b)}${1===t?")":`, ${t})`}`}function ke(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function De(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Te(t){return((t=De(t))<16?"0":"")+t.toString(16)}function Re(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ie(t,e,n,r)}function Le(t){if(t instanceof Ie)return new Ie(t.h,t.s,t.l,t.opacity);if(t instanceof ue||(t=_e(t)),!t)return new Ie;if(t instanceof Ie)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 Ie(a,u,c,t.opacity)}function Ie(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ne(t){return(t=(t||0)%360)<0?t+360:t}function ze(t){return Math.max(0,Math.min(1,t||0))}function Be(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 We(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}ie(ue,_e,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Oe,formatHex:Oe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Le(this).formatHsl()},formatRgb:we,toString:we}),ie(Ee,Me,ae(ue,{brighter(t){return t=null==t?le:Math.pow(le,t),new Ee(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?ce:Math.pow(ce,t),new Ee(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ee(De(this.r),De(this.g),De(this.b),ke(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ce,formatHex:Ce,formatHex8:function(){return`#${Te(this.r)}${Te(this.g)}${Te(this.b)}${Te(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Se,toString:Se})),ie(Ie,(function(t,e,n,r){return 1===arguments.length?Le(t):new Ie(t,e,n,null==r?1:r)}),ae(ue,{brighter(t){return t=null==t?le:Math.pow(le,t),new Ie(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?ce:Math.pow(ce,t),new Ie(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 Ee(Be(t>=240?t-240:t+120,o,r),Be(t,o,r),Be(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new Ie(Ne(this.h),ze(this.s),ze(this.l),ke(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=ke(this.opacity);return`${1===t?"hsl(":"hsla("}${Ne(this.h)}, ${100*ze(this.s)}%, ${100*ze(this.l)}%${1===t?")":`, ${t})`}`}}));const Ue=t=>()=>t;function Ve(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ue(isNaN(t)?e:t)}const Fe=function t(e){var n=function(t){return 1==(t=+t)?Ve: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):Ue(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Me(t)).r,(e=Me(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=Ve(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 qe(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=Me(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 He(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]=Je(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 Ge(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Ke(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function $e(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]=Je(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}qe((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 We((n-r/e)*e,a,o,i,u)}})),qe((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 We((n-r/e)*e,o,i,a,u)}}));var Ye=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xe=new RegExp(Ye.source,"g");function Ze(t,e){var n,r,o,i=Ye.lastIndex=Xe.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(n=Ye.exec(t))&&(r=Xe.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:Ke(n,r)})),i=Xe.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 Qe(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 Je(t,e){var n,r=typeof e;return null==e||"boolean"===r?Ue(e):("number"===r?Ke:"string"===r?(n=_e(e))?(e=n,Fe):Ze:e instanceof _e?Fe:e instanceof Date?Ge:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Qe:Array.isArray(e)?He:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?$e:Ke)(t,e)}function tn(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function en(t){return+t}var nn=[0,1];function rn(t){return t}function on(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function an(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=on(o,r),i=n(a,i)):(r=on(r,o),i=n(i,a)),function(t){return i(r(t))}}function un(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]=on(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(e){var n=oe(t,e,1,r)-1;return i[n](o[n](e))}}function cn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ln(){var t,e,n,r,o,i,a=nn,u=nn,c=Je,l=rn;function s(){var t=Math.min(a.length,u.length);return l!==rn&&(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?un:an,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),Ke)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,en),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=tn,s()},f.clamp=function(t){return arguments.length?(l=!!t||rn,s()):l!==rn},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 sn(){return ln()(rn,rn)}var fn,pn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hn(t){if(!(e=pn.exec(t)))throw new Error("invalid format: "+t);var e;return new dn({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 dn(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 yn(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 vn(t){return(t=yn(Math.abs(t)))?t[1]:NaN}function mn(t,e){var n=yn(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")}hn.prototype=dn.prototype,dn.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 gn={"%":(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)=>mn(100*t,e),r:mn,s:function(t,e){var n=yn(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(fn=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")+yn(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function bn(t){return t}var xn,On,wn,_n=Array.prototype.map,jn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Pn(t,e,n,r){var o,i=Xt(t,e,n);switch((r=hn(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(vn(e)/3)))-vn(Math.abs(t)))}(i,a))||(r.precision=o),wn(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,vn(e)-vn(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,-vn(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return On(r)}function An(t){var e=t.domain;return t.ticks=function(t){var n=e();return $t(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Pn(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=Yt(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 Mn(){var t=sn();return t.copy=function(){return cn(t,Mn())},Lt.apply(t,arguments),An(t)}function En(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,en),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return En(t).unknown(e)},t=arguments.length?Array.from(t,en):[0,1],An(n)}function Cn(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 Sn(t){return Math.log(t)}function kn(t){return Math.exp(t)}function Dn(t){return-Math.log(-t)}function Tn(t){return-Math.exp(-t)}function Rn(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ln(t){return(e,n)=>-t(-e,n)}function In(t){const e=t(Sn,kn),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?Rn:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),n()[0]<0?(r=Ln(r),o=Ln(o),t(Dn,Tn)):t(Sn,kn),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=$t(a,u,h))}else d=$t(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=hn(n)).precision||(n.trim=!0),n=On(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(Cn(n(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),e}function Nn(){const t=In(ln()).domain([1,10]);return t.copy=()=>cn(t,Nn()).base(t.base()),Lt.apply(t,arguments),t}function zn(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Bn(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Wn(t){var e=1,n=t(zn(e),Bn(e));return n.constant=function(n){return arguments.length?t(zn(e=+n),Bn(e)):e},An(n)}function Un(){var t=Wn(ln());return t.copy=function(){return cn(t,Un()).constant(t.constant())},Lt.apply(t,arguments)}function Vn(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Fn(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function qn(t){return t<0?-t*t:t*t}function Hn(t){var e=t(rn,rn),n=1;function r(){return 1===n?t(rn,rn):.5===n?t(Fn,qn):t(Vn(n),Vn(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},An(e)}function Gn(){var t=Hn(ln());return t.copy=function(){return cn(t,Gn()).exponent(t.exponent())},Lt.apply(t,arguments),t}function Kn(){return Gn.apply(null,arguments).exponent(.5)}function $n(t){return Math.sign(t)*t*t}function Yn(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Xn(){var t,e=sn(),n=[0,1],r=!1;function o(n){var o=Yn(e(n));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return e.invert($n(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,en)).map($n)),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 Xn(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},Lt.apply(o,arguments),An(o)}function Zn(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 Qn(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 Jn(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function tr(t,e,n=0,r=t.length-1,o){for(o=void 0===o?Jn:function(t=Zt){if(t===Zt)return Jn;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);tr(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(er(t,n,e),o(t[r],i)>0&&er(t,n,r);a<u;){for(er(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[n],i)?er(t,n,u):(++u,er(t,u,r)),u<=e&&(n=u+1),e<=u&&(r=u-1)}return t}function er(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function nr(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 Qn(t);if(e>=1)return Zn(t);var r,o=(r-1)*e,i=Math.floor(o),a=Zn(tr(t,i).subarray(0,i+1));return a+(Qn(t.subarray(i+1))-a)*(o-i)}}function rr(t,e,n=ee){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 or(){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]=rr(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:n[oe(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(Zt),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 or().domain(e).range(n).unknown(t)},Lt.apply(i,arguments)}function ir(){var t,e=0,n=1,r=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[oe(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 ir().domain([e,n]).range(i).unknown(t)},Lt.apply(An(a),arguments)}function ar(){var t,e=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[oe(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 ar().domain(e).range(n).unknown(t)},Lt.apply(o,arguments)}xn=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?bn:(e=_n.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?bn:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(_n.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=hn(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"):gn[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=gn[g],w=/[defgprs%]/.test(g);function _(t){var o,i,c,p=b,_=x;if("c"===g)_=O(t)+_,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,_=("s"===g?jn[8+fn/3]:"")+_+(j&&"("===f?")":""),w)for(o=-1,i=t.length;++o<i;)if(48>(c=t.charCodeAt(o))||c>57){_=(46===c?a+t.slice(o+1):t.slice(o))+_,t=t.slice(0,o);break}}y&&!h&&(t=r(t,1/0));var P=p.length+t.length+_.length,A=P<d?new Array(d-P+1).join(e):"";switch(y&&h&&(t=r(A+t,A.length?d-_.length:1/0),A=""),n){case"<":t=p+t+_+A;break;case"=":t=p+A+t+_;break;case"^":t=A.slice(0,P=A.length>>1)+p+t+_+A.slice(P);break;default:t=A+p+t+_}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)),_.toString=function(){return t+""},_}return{format:f,formatPrefix:function(t,e){var n=f(((t=hn(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(vn(e)/3))),o=Math.pow(10,-r),i=jn[8+r/3];return function(t){return n(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),On=xn.format,wn=xn.formatPrefix;const ur=1e3,cr=6e4,lr=36e5,sr=864e5,fr=6048e5,pr=31536e6;var hr=new Date,dr=new Date;function yr(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 yr((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 hr.setTime(+e),dr.setTime(+r),t(hr),t(dr),Math.floor(n(hr,dr))},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 vr=yr((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));vr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?yr((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):vr:null};const mr=vr;vr.range;var gr=yr((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*ur)}),(function(t,e){return(e-t)/ur}),(function(t){return t.getUTCSeconds()}));const br=gr;gr.range;var xr=yr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*ur)}),(function(t,e){t.setTime(+t+e*cr)}),(function(t,e){return(e-t)/cr}),(function(t){return t.getMinutes()}));const Or=xr;xr.range;var wr=yr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*ur-t.getMinutes()*cr)}),(function(t,e){t.setTime(+t+e*lr)}),(function(t,e){return(e-t)/lr}),(function(t){return t.getHours()}));const _r=wr;wr.range;var jr=yr((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*cr)/sr),(t=>t.getDate()-1));const Pr=jr;function Ar(t){return yr((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())*cr)/fr}))}jr.range;var Mr=Ar(0),Er=Ar(1),Cr=Ar(2),Sr=Ar(3),kr=Ar(4),Dr=Ar(5),Tr=Ar(6),Rr=(Mr.range,Er.range,Cr.range,Sr.range,kr.range,Dr.range,Tr.range,yr((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 Lr=Rr;Rr.range;var Ir=yr((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()}));Ir.every=function(t){return isFinite(t=Math.floor(t))&&t>0?yr((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 Nr=Ir;Ir.range;var zr=yr((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*cr)}),(function(t,e){return(e-t)/cr}),(function(t){return t.getUTCMinutes()}));const Br=zr;zr.range;var Wr=yr((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*lr)}),(function(t,e){return(e-t)/lr}),(function(t){return t.getUTCHours()}));const Ur=Wr;Wr.range;var Vr=yr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/sr}),(function(t){return t.getUTCDate()-1}));const Fr=Vr;function qr(t){return yr((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)/fr}))}Vr.range;var Hr=qr(0),Gr=qr(1),Kr=qr(2),$r=qr(3),Yr=qr(4),Xr=qr(5),Zr=qr(6),Qr=(Hr.range,Gr.range,Kr.range,$r.range,Yr.range,Xr.range,Zr.range,yr((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 Jr=Qr;Qr.range;var to=yr((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()}));to.every=function(t){return isFinite(t=Math.floor(t))&&t>0?yr((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 eo=to;function no(t,e,n,r,o,i){const a=[[br,1,ur],[br,5,5e3],[br,15,15e3],[br,30,3e4],[i,1,cr],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,lr],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,sr],[r,2,1728e5],[n,1,fr],[e,1,2592e6],[e,3,7776e6],[t,1,pr]];function u(e,n,r){const o=Math.abs(n-e)/r,i=Jt((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(Xt(e/pr,n/pr,r));if(0===i)return mr.every(Math.max(Xt(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]}to.range;const[ro,oo]=no(eo,Jr,Hr,Fr,Ur,Br),[io,ao]=no(Nr,Lr,Mr,Pr,_r,Or);function uo(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 co(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 lo(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var so,fo,po,ho={"-":"",_:" ",0:"0"},yo=/^\s*\d+/,vo=/^%/,mo=/[\\^$*+?|[\]().{}]/g;function go(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 bo(t){return t.replace(mo,"\\$&")}function xo(t){return new RegExp("^(?:"+t.map(bo).join("|")+")","i")}function Oo(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function wo(t,e,n){var r=yo.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function _o(t,e,n){var r=yo.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function jo(t,e,n){var r=yo.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Po(t,e,n){var r=yo.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ao(t,e,n){var r=yo.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Mo(t,e,n){var r=yo.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Eo(t,e,n){var r=yo.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Co(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 So(t,e,n){var r=yo.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ko(t,e,n){var r=yo.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Do(t,e,n){var r=yo.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function To(t,e,n){var r=yo.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ro(t,e,n){var r=yo.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Lo(t,e,n){var r=yo.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Io(t,e,n){var r=yo.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function No(t,e,n){var r=yo.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function zo(t,e,n){var r=yo.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Bo(t,e,n){var r=vo.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Wo(t,e,n){var r=yo.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Uo(t,e,n){var r=yo.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Vo(t,e){return go(t.getDate(),e,2)}function Fo(t,e){return go(t.getHours(),e,2)}function qo(t,e){return go(t.getHours()%12||12,e,2)}function Ho(t,e){return go(1+Pr.count(Nr(t),t),e,3)}function Go(t,e){return go(t.getMilliseconds(),e,3)}function Ko(t,e){return Go(t,e)+"000"}function $o(t,e){return go(t.getMonth()+1,e,2)}function Yo(t,e){return go(t.getMinutes(),e,2)}function Xo(t,e){return go(t.getSeconds(),e,2)}function Zo(t){var e=t.getDay();return 0===e?7:e}function Qo(t,e){return go(Mr.count(Nr(t)-1,t),e,2)}function Jo(t){var e=t.getDay();return e>=4||0===e?kr(t):kr.ceil(t)}function ti(t,e){return t=Jo(t),go(kr.count(Nr(t),t)+(4===Nr(t).getDay()),e,2)}function ei(t){return t.getDay()}function ni(t,e){return go(Er.count(Nr(t)-1,t),e,2)}function ri(t,e){return go(t.getFullYear()%100,e,2)}function oi(t,e){return go((t=Jo(t)).getFullYear()%100,e,2)}function ii(t,e){return go(t.getFullYear()%1e4,e,4)}function ai(t,e){var n=t.getDay();return go((t=n>=4||0===n?kr(t):kr.ceil(t)).getFullYear()%1e4,e,4)}function ui(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+go(e/60|0,"0",2)+go(e%60,"0",2)}function ci(t,e){return go(t.getUTCDate(),e,2)}function li(t,e){return go(t.getUTCHours(),e,2)}function si(t,e){return go(t.getUTCHours()%12||12,e,2)}function fi(t,e){return go(1+Fr.count(eo(t),t),e,3)}function pi(t,e){return go(t.getUTCMilliseconds(),e,3)}function hi(t,e){return pi(t,e)+"000"}function di(t,e){return go(t.getUTCMonth()+1,e,2)}function yi(t,e){return go(t.getUTCMinutes(),e,2)}function vi(t,e){return go(t.getUTCSeconds(),e,2)}function mi(t){var e=t.getUTCDay();return 0===e?7:e}function gi(t,e){return go(Hr.count(eo(t)-1,t),e,2)}function bi(t){var e=t.getUTCDay();return e>=4||0===e?Yr(t):Yr.ceil(t)}function xi(t,e){return t=bi(t),go(Yr.count(eo(t),t)+(4===eo(t).getUTCDay()),e,2)}function Oi(t){return t.getUTCDay()}function wi(t,e){return go(Gr.count(eo(t)-1,t),e,2)}function _i(t,e){return go(t.getUTCFullYear()%100,e,2)}function ji(t,e){return go((t=bi(t)).getUTCFullYear()%100,e,2)}function Pi(t,e){return go(t.getUTCFullYear()%1e4,e,4)}function Ai(t,e){var n=t.getUTCDay();return go((t=n>=4||0===n?Yr(t):Yr.ceil(t)).getUTCFullYear()%1e4,e,4)}function Mi(){return"+0000"}function Ei(){return"%"}function Ci(t){return+t}function Si(t){return Math.floor(+t/1e3)}function ki(t){return new Date(t)}function Di(t){return t instanceof Date?+t:+new Date(+t)}function Ti(t,e,n,r,o,i,a,u,c,l){var s=sn(),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,Di)):p().map(ki)},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(Cn(n,t)):s},s.copy=function(){return cn(s,Ti(t,e,n,r,o,i,a,u,c,l))},s}function Ri(){return Lt.apply(Ti(io,ao,Nr,Lr,Mr,Pr,_r,Or,br,fo).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Li(){return Lt.apply(Ti(ro,oo,eo,Jr,Hr,Fr,Ur,Br,br,po).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ii(){var t,e,n,r,o,i=0,a=1,u=rn,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(Je),l.rangeRound=s(tn),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 Ni(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function zi(){var t=An(Ii()(rn));return t.copy=function(){return Ni(t,zi())},It.apply(t,arguments)}function Bi(){var t=In(Ii()).domain([1,10]);return t.copy=function(){return Ni(t,Bi()).base(t.base())},It.apply(t,arguments)}function Wi(){var t=Wn(Ii());return t.copy=function(){return Ni(t,Wi()).constant(t.constant())},It.apply(t,arguments)}function Ui(){var t=Hn(Ii());return t.copy=function(){return Ni(t,Ui()).exponent(t.exponent())},It.apply(t,arguments)}function Vi(){return Ui.apply(null,arguments).exponent(.5)}function Fi(){var t=[],e=rn;function n(n){if(null!=n&&!isNaN(n=+n))return e((oe(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(Zt),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)=>nr(t,r/e)))},n.copy=function(){return Fi(e).domain(t)},It.apply(n,arguments)}function qi(t,e){void 0===e&&(e=t,t=Je);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 Hi(){var t,e,n,r,o,i,a,u=0,c=.5,l=1,s=1,f=rn,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=qi(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(Je),h.rangeRound=d(tn),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 Gi(){var t=An(Hi()(rn));return t.copy=function(){return Ni(t,Gi())},It.apply(t,arguments)}function Ki(){var t=In(Hi()).domain([.1,1,10]);return t.copy=function(){return Ni(t,Ki()).base(t.base())},It.apply(t,arguments)}function $i(){var t=Wn(Hi());return t.copy=function(){return Ni(t,$i()).constant(t.constant())},It.apply(t,arguments)}function Yi(){var t=Hn(Hi());return t.copy=function(){return Ni(t,Yi()).exponent(t.exponent())},It.apply(t,arguments)}function Xi(){return Yi.apply(null,arguments).exponent(.5)}so=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=xo(o),s=Oo(o),f=xo(i),p=Oo(i),h=xo(a),d=Oo(a),y=xo(u),v=Oo(u),m=xo(c),g=Oo(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:Vo,e:Vo,f:Ko,g:oi,G:ai,H:Fo,I:qo,j:Ho,L:Go,m:$o,M:Yo,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ci,s:Si,S:Xo,u:Zo,U:Qo,V:ti,w:ei,W:ni,x:null,X:null,y:ri,Y:ii,Z:ui,"%":Ei},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:ci,e:ci,f:hi,g:ji,G:Ai,H:li,I:si,j:fi,L:pi,m:di,M:yi,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ci,s:Si,S:vi,u:mi,U:gi,V:xi,w:Oi,W:wi,x:null,X:null,y:_i,Y:Pi,Z:Mi,"%":Ei},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:Do,e:Do,f:zo,g:Eo,G:Mo,H:Ro,I:Ro,j:To,L:No,m:ko,M:Lo,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:So,Q:Wo,s:Uo,S:Io,u:_o,U:jo,V:Po,w:wo,W:Ao,x:function(t,e,r){return j(t,n,e,r)},X:function(t,e,n){return j(t,r,e,n)},y:Eo,Y:Mo,Z:Co,"%":Bo};function w(t,e){return function(n){var r,o,i,a=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=ho[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 _(t,e){return function(n){var r,o,i=lo(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=co(lo(i.y,0,1))).getUTCDay(),r=o>4||0===o?Gr.ceil(r):Gr(r),r=Fr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=uo(lo(i.y,0,1))).getDay(),r=o>4||0===o?Er.ceil(r):Er(r),r=Pr.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?co(lo(i.y,0,1)).getUTCDay():uo(lo(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,co(i)):uo(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 ho?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=w(n,b),b.X=w(r,b),b.c=w(e,b),x.x=w(n,x),x.X=w(r,x),x.c=w(e,x),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=_(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=_(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"]}),fo=so.format,so.parse,po=so.utcFormat,so.utcParse;var Zi=["linear","time","log","sqrt"];function Qi(t){return"function"==typeof t?G()(t.copy)&&G()(t.domain)&&G()(t.range):"string"==typeof t&&R()(Zi,t)}function Ji(t,e){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[e])}function ta(t,e){if(!t.data)return"linear";var n=mt(t[e]);return Mt(t.data.map((function(t){var r=q()(n(t))?n(t)[e]:n(t);return void 0!==r?r:t[e]})))?"time":"linear"}function ea(t){if(Qi(t)){var e="scale".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t));return n[e]()}return Mn()}function na(t,e){var n=oa(t,e);return n?"string"==typeof n?ea(n):n:ea(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 Mt(n)?"time":"linear"}(t,e)||ta(t,e))}function ra(){return Mn()}function oa(t,e){if(Ji(t,e)){var n=t.scale[e]||t.scale;return Qi(n)?G()(n)?n:ea(n):void 0}}function ia(t,e){return function(t,e){if(Ji(t,e)){var n=t.scale[e]||t.scale;return"string"==typeof n?n:ua(n)}}(t,e)||ta(t,e)}var aa=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function ua(t){if("string"==typeof t)return t;var e=aa.filter((function(e){return void 0!==t[e.method]}))[0];return e?e.name:void 0}var ca="@@__IMMUTABLE_ITERABLE__@@",la="@@__IMMUTABLE_RECORD__@@",sa="@@__IMMUTABLE_LIST__@@",fa="@@__IMMUTABLE_MAP__@@";function pa(t){return!(!t||!t[ca])}function ha(t){return!(!t||!t[la])}function da(t){return pa(t)||ha(t)}function ya(t){return!(!t||!t[sa])}function va(t){return!(!t||!t[fa])}function ma(t,e){return pa(t)?t.reduce((function(t,n,r){var o=n;return e&&e[r]&&(o=ma(n)),t[r]=o,t}),ya(t)?[]:{}):t}function ga(t){return function(t){if(Array.isArray(t))return ba(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 ba(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)?ba(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 ba(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 xa(t){return da(t)?ma(t,{errorX:!0,errorY:!0}):t}function Oa(t){return pa(t)?t.size:t.length}function wa(t,e){var n=(q()(t.domain)?t.domain[e]:t.domain)||na(t,e).domain(),r=t.samples||1,o=Math.max.apply(Math,ga(n)),i=Math.min.apply(Math,ga(n)),a=xt(i,o,(o-i)/r);return $()(a)===o?a:a.concat(o)}function _a(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 W()(t,r,o)}function ja(t,e,n){var r=function(t){return void 0!==t},o=Tt(e.x),i=Dt(e.x),a=Tt(e.y),u=Dt(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,S()({_x:e,_y:o,_y0:i,_y1:c},D()))):t}))}function Pa(t,e){var n=ka(t,e),r=Da(t,e),o=Ta(t,e),i=X()([].concat(ga(n),ga(r),ga(o)));return 0===i.length?null:i.reduce((function(t,e,n){return t[e]=n+1,t}),{})}function Aa(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Oa(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 Ma(t,e,n){if(!Array.isArray(t)&&!pa(t)||Oa(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]=mt(void 0!==e[r=n]?e[r]:r),t}),{}),a=I()(n,o)&&"_x"===e.x&&"_y"===e.y&&"_y0"===e.y0;!1===a&&(r={x:-1!==n.indexOf("x")?Pa(e,"x"):void 0,y:-1!==n.indexOf("y")?Pa(e,"y"):void 0,y0:-1!==n.indexOf("y0")?Pa(e,"y"):void 0});var u=a?t:t.reduce((function(t,e,o){var a=xa(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 z()(l)||t.push(l),t}),[]),c=function(t,e){var n=1/Number.MAX_SAFE_INTEGER,r={x:ia(e,"x"),y:ia(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)}))}(_a(u,e.sortKey,e.sortOrder),e);return function(t,e){var n,r=!!t.eventKey,o=(n=t.eventKey,G()(n)?n:null==n?function(){}:V()(n));return e.map((function(t,e){if(void 0!==t.eventKey)return t;if(r){var n=o(t,e);return void 0!==n?Object.assign({eventKey:n},t):t}return t}))}(e,c)}function Ea(t){var e=wa(t,"x"),n=wa(t,"y"),r=e.map((function(t,e){return{x:t,y:n[e]}}));return r}function Ca(t,e){return t.categories&&!Array.isArray(t.categories)?t.categories[e]:t.categories}function Sa(t){return t.data?Ma(t.data,t):Ma(Ea(t),t)}function ka(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 Da(t,e){if(!t.categories)return[];var n=Ca(t,e),r=n&&n.filter((function(t){return"string"==typeof t}));return r?kt(r):[]}function Ta(t,e){if(!Array.isArray(t.data)&&!pa(t.data))return[];var n=mt(void 0===t[e]?e:t[e]);return _a(t.data.reduce((function(t,e){return t.push(xa(e)),t}),[]),t.sortKey,t.sortOrder).reduce((function(t,e){var r=xa(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 Ra(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 R()(["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"],n)}var La=r(4295),Ia=r.n(La),Na=r(2829),za=r.n(Na),Ba=r(2645),Wa=r.n(Ba);function Ua(t){return function(t){if(Array.isArray(t))return Va(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 Va(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)?Va(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 Va(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 Fa(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"min",r=function(t){return"max"===n?Math.max.apply(Math,Ua(t)):Math.min.apply(Math,Ua(t))},o="max"===n?-1/0:1/0,i=!1,a=Wa()(t).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 qa(t,e){var n=G()(t)?t:$a,r=G()(e)?e:Ha;return function(t,e){var o=Xa(t,e);if(o)return r(o,t,e);var i=Ca(t,e),a=i?Ka(t,e,i):n(t,e);return a?r(a,t,e):void 0}}function Ha(t,e,n){return function(t,e,n){return"log"!==ia(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=Ja(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 q()(t.domainPadding)?n(t.domainPadding[e]):n(t.domainPadding)}(e,n);if(!i.left&&!i.right)return t;var a=Tt(t),u=Dt(t),c=vt(e,bt(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=q()(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?Ya(new Date(x.min),new Date(x.max)):Ya(x.min,x.max)}(t,e,n),e,n)}function Ga(t,e){return qa()(t,e)}function Ka(t,e,n){var r=n||Ca(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=Ja(t,e),s=Qa(t,e),f=At(r)?Da(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=Ya(void 0!==l?l:Tt(h),void 0!==s?s:Dt(h));return o&&"x"===e&&360===Math.abs(a-c)?tu(d,h):d}}function $a(t,e,n){var r=n||Sa(t),o=t.polar,i=t.startAngle,a=void 0===i?0:i,u=t.endAngle,c=void 0===u?360:u,l=Ja(t,e),s=Qa(t,e);if(r.length<1)return void 0!==l&&void 0!==s?Ya(l,s):void 0;var f=Ya(void 0!==l?l:Fa(r,e,"min"),void 0!==s?s:Fa(r,e,"max"));return o&&"x"===e&&360===Math.abs(a-c)?tu(f,function(t,e){var n="_".concat(e);return Wa()(t).map((function(t){return t[n]&&void 0!==t[n][1]?t[n][1]:t[n]}))}(r,e)):f}function Ya(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 Xa(t,e){var n=Ja(t,e),r=Qa(t,e);return q()(t.domain)&&t.domain[e]?t.domain[e]:Array.isArray(t.domain)?t.domain:void 0!==n&&void 0!==r?Ya(n,r):void 0}function Za(t,e){var n=Xa(t,e);if(n)return n;var r=Sa(t),o=r.reduce((function(t,e){return e._y0<t?e._y0:t}),1/0);return qa((function(){return $a(t,e,r)}),(function(n){return Ha(function(n){if("x"===e)return n;var r=o!==1/0?o:0,i=Qa(t,e),a=Ja(t,e),u=void 0!==i?i:Dt(n,r);return Ya(void 0!==a?a:Tt(n,r),u)}(n),t,e)}))(t,e)}function Qa(t,e){return q()(t.maxDomain)&&void 0!==t.maxDomain[e]?t.maxDomain[e]:"number"==typeof t.maxDomain||Ia()(t.maxDomain)?t.maxDomain:void 0}function Ja(t,e){return q()(t.minDomain)&&void 0!==t.minDomain[e]?t.minDomain[e]:"number"==typeof t.minDomain||Ia()(t.minDomain)?t.minDomain:void 0}function tu(t,e){var n=za()(e.sort((function(t,e){return t-e}))),r=n[1]-n[0];return[t[0],t[1]+r]}function eu(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 R()(["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"],n)}function nu(t){var e=t.labelComponent,n=t.labelPlacement,r=t.polar?"perpendicular":"vertical";return n||e.props&&e.props.labelPlacement||r}function ru(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 ou(t,e){var n=nu(t);return"perpendicular"===n||"vertical"===n&&(90===e||270===e)?"middle":e<=90||e>270?"start":"end"}function iu(t,e){var n=nu(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 au(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var o=void 0!==e?e%360:uu(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 uu(t,e){var n=ot(e).x;return ht(t.scale.x(n))%360}function cu(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=uu(t,p),d=a?ou(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?iu(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=ru(t,p,e),g=nu(t),b=function(t,e){var n=t.polar,r=it(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=uu(t,e),o=st((n.labels||{}).padding,t)||0,i=pt(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,w=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=st((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),_={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:w.dx,dy:w.dy,width:u,height:c,style:o.labels};if(!ut(s))return _;var j=l&&l.tooltip||{};return nt()({},_,rt(j,["style"]))}const lu=Math.PI,su=2*lu,fu=1e-6,pu=su-fu;function hu(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function du(){return new hu}hu.prototype=du.prototype={constructor:hu,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>fu)if(Math.abs(s*u-c*l)>fu&&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((lu-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>fu&&(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)>fu||Math.abs(this._y1-l)>fu)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%su+su),f>pu?this._+="A"+n+","+n+",0,1,"+s+","+(t-a)+","+(e-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>fu&&(this._+="A"+n+","+n+",0,"+ +(f>=lu)+","+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 yu=du;var vu=Array.prototype.slice;function mu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function gu(t){return function(){return t}}function bu(t){this._context=t}function xu(t){return new bu(t)}function Ou(t){return t[0]}function wu(t){return t[1]}function _u(t,e){var n=gu(!0),r=null,o=xu,i=null;function a(a){var u,c,l,s=(a=mu(a)).length,f=!1;for(null==r&&(i=o(l=yu())),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?Ou:gu(t),e="function"==typeof e?e:void 0===e?wu:gu(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:gu(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:gu(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:gu(!!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 ju(t,e,n){var r=null,o=gu(!0),i=null,a=xu,u=null;function c(c){var l,s,f,p,h,d=(c=mu(c)).length,y=!1,v=new Array(d),m=new Array(d);for(null==i&&(u=a(h=yu())),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 _u().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Ou:gu(+t),e="function"==typeof e?e:gu(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?wu:gu(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:gu(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:gu(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:gu(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:gu(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:gu(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:gu(+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:gu(!!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}bu.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 Pu=Mu(xu);function Au(t){this._curve=t}function Mu(t){function e(e){return new Au(t(e))}return e._curve=t,e}function Eu(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(Mu(t)):e()._curve},t}function Cu(){return Eu(_u().curve(Pu))}function Su(){var t=ju().curve(Pu),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 Eu(n())},delete t.lineX0,t.lineEndAngle=function(){return Eu(r())},delete t.lineX1,t.lineInnerRadius=function(){return Eu(o())},delete t.lineY0,t.lineOuterRadius=function(){return Eu(i())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Mu(t)):e()._curve},t}Au.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 ku=Math.abs,Du=Math.atan2,Tu=Math.cos,Ru=Math.max,Lu=Math.min,Iu=Math.sin,Nu=Math.sqrt,zu=1e-12,Bu=Math.PI,Wu=Bu/2,Uu=2*Bu;function Vu(t){return t>1?0:t<-1?Bu:Math.acos(t)}function Fu(t){return t>=1?Wu:t<=-1?-Wu:Math.asin(t)}function qu(t){return t.innerRadius}function Hu(t){return t.outerRadius}function Gu(t){return t.startAngle}function Ku(t){return t.endAngle}function $u(t){return t&&t.padAngle}function Yu(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<zu))return[t+(p=(s*(e-i)-f*(t-o))/p)*c,e+p*l]}function Xu(t,e,n,r,o,i,a){var u=t-n,c=e-r,l=(a?i:-i)/Nu(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,w=p*y-d*h,_=(b<0?-1:1)*Nu(Ru(0,O*O*x-w*w)),j=(w*b-g*_)/x,P=(-w*g-b*_)/x,A=(w*b+g*_)/x,M=(-w*g+b*_)/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 Zu(){var t=qu,e=Hu,n=gu(0),r=null,o=Gu,i=Ku,a=$u,u=null;function c(){var c,l,s=+t.apply(this,arguments),f=+e.apply(this,arguments),p=o.apply(this,arguments)-Wu,h=i.apply(this,arguments)-Wu,d=ku(h-p),y=h>p;if(u||(u=c=yu()),f<s&&(l=f,f=s,s=l),f>zu)if(d>Uu-zu)u.moveTo(f*Tu(p),f*Iu(p)),u.arc(0,0,f,p,h,!y),s>zu&&(u.moveTo(s*Tu(h),s*Iu(h)),u.arc(0,0,s,h,p,y));else{var v,m,g=p,b=h,x=p,O=h,w=d,_=d,j=a.apply(this,arguments)/2,P=j>zu&&(r?+r.apply(this,arguments):Nu(s*s+f*f)),A=Lu(ku(f-s)/2,+n.apply(this,arguments)),M=A,E=A;if(P>zu){var C=Fu(P/s*Iu(j)),S=Fu(P/f*Iu(j));(w-=2*C)>zu?(x+=C*=y?1:-1,O-=C):(w=0,x=O=(p+h)/2),(_-=2*S)>zu?(g+=S*=y?1:-1,b-=S):(_=0,g=b=(p+h)/2)}var k=f*Tu(g),D=f*Iu(g),T=s*Tu(O),R=s*Iu(O);if(A>zu){var L,I=f*Tu(b),N=f*Iu(b),z=s*Tu(x),B=s*Iu(x);if(d<Bu&&(L=Yu(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],q=1/Iu(Vu((W*V+U*F)/(Nu(W*W+U*U)*Nu(V*V+F*F)))/2),H=Nu(L[0]*L[0]+L[1]*L[1]);M=Lu(A,(s-H)/(q-1)),E=Lu(A,(f-H)/(q+1))}}_>zu?E>zu?(v=Xu(z,B,k,D,f,E,y),m=Xu(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,Du(v.y01,v.x01),Du(m.y01,m.x01),!y):(u.arc(v.cx,v.cy,E,Du(v.y01,v.x01),Du(v.y11,v.x11),!y),u.arc(0,0,f,Du(v.cy+v.y11,v.cx+v.x11),Du(m.cy+m.y11,m.cx+m.x11),!y),u.arc(m.cx,m.cy,E,Du(m.y11,m.x11),Du(m.y01,m.x01),!y))):(u.moveTo(k,D),u.arc(0,0,f,g,b,!y)):u.moveTo(k,D),s>zu&&w>zu?M>zu?(v=Xu(T,R,I,N,s,-M,y),m=Xu(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,Du(v.y01,v.x01),Du(m.y01,m.x01),!y):(u.arc(v.cx,v.cy,M,Du(v.y01,v.x01),Du(v.y11,v.x11),!y),u.arc(0,0,s,Du(v.cy+v.y11,v.cx+v.x11),Du(m.cy+m.y11,m.cx+m.x11),y),u.arc(m.cx,m.cy,M,Du(m.y11,m.x11),Du(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-Bu/2;return[Tu(r)*n,Iu(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:gu(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:gu(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:gu(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:gu(+t),c):r},c.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:gu(+t),c):o},c.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:gu(+t),c):i},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:gu(+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 Ju(t){return t}function tc(){var t=Ju,e=Qu,n=null,r=gu(0),o=gu(Uu),i=gu(0);function a(a){var u,c,l,s,f,p=(a=mu(a)).length,h=0,d=new Array(p),y=new Array(p),v=+r.apply(this,arguments),m=Math.min(Uu,Math.max(-Uu,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:gu(+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:gu(+t),a):r},a.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:gu(+t),a):o},a.padAngle=function(t){return arguments.length?(i="function"==typeof t?t:gu(+t),a):i},a}function ec(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}class nc{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 rc{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=ec(this._x0,this._y0),r=ec(this._x0,this._y0=(this._y0+e)/2),o=ec(t,this._y0),i=ec(t,e);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...o,...i)}}}function oc(t){return new nc(t,!0)}function ic(t){return new nc(t,!1)}function ac(t){return new rc(t)}function uc(t){return t.source}function cc(t){return t.target}function lc(t){let e=uc,n=cc,r=Ou,o=wu,i=null,a=null;function u(){let u;const c=vu.call(arguments),l=e.apply(this,c),s=n.apply(this,c);if(null==i&&(a=t(u=yu())),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:gu(+t),u):r},u.y=function(t){return arguments.length?(o="function"==typeof t?t:gu(+t),u):o},u.context=function(e){return arguments.length?(null==e?i=a=null:a=t(i=e),u):i},u}function sc(){return lc(oc)}function fc(){return lc(ic)}function pc(){const t=lc(ac);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const hc=Nu(3),dc={draw(t,e){const n=.59436*Nu(e+Lu(e/28,.75)),r=n/2,o=r*hc;t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-o,-r),t.lineTo(o,r),t.moveTo(-o,r),t.lineTo(o,-r)}},yc={draw(t,e){const n=Nu(e/Bu);t.moveTo(n,0),t.arc(0,0,n,0,Uu)}},vc={draw(t,e){const n=Nu(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()}},mc=Nu(1/3),gc=2*mc,bc={draw(t,e){const n=Nu(e/gc),r=n*mc;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},xc={draw(t,e){const n=.62625*Nu(e);t.moveTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.lineTo(-n,0),t.closePath()}},Oc={draw(t,e){const n=.87559*Nu(e-Lu(e/7,2));t.moveTo(-n,0),t.lineTo(n,0),t.moveTo(0,n),t.lineTo(0,-n)}},wc={draw(t,e){const n=Nu(e),r=-n/2;t.rect(r,r,n,n)}},_c={draw(t,e){const n=.4431*Nu(e);t.moveTo(n,n),t.lineTo(n,-n),t.lineTo(-n,-n),t.lineTo(-n,n),t.closePath()}},jc=Iu(Bu/10)/Iu(7*Bu/10),Pc=Iu(Uu/10)*jc,Ac=-Tu(Uu/10)*jc,Mc={draw(t,e){const n=Nu(.8908130915292852*e),r=Pc*n,o=Ac*n;t.moveTo(0,-n),t.lineTo(r,o);for(let e=1;e<5;++e){const i=Uu*e/5,a=Tu(i),u=Iu(i);t.lineTo(u*n,-a*n),t.lineTo(a*r-u*o,u*r+a*o)}t.closePath()}},Ec=Nu(3),Cc={draw(t,e){const n=-Nu(e/(3*Ec));t.moveTo(0,2*n),t.lineTo(-Ec*n,-n),t.lineTo(Ec*n,-n),t.closePath()}},Sc=Nu(3),kc={draw(t,e){const n=.6824*Nu(e),r=n/2,o=n*Sc/2;t.moveTo(0,-n),t.lineTo(o,r),t.lineTo(-o,r),t.closePath()}},Dc=-.5,Tc=Nu(3)/2,Rc=1/Nu(12),Lc=3*(Rc/2+1),Ic={draw(t,e){const n=Nu(e/Lc),r=n/2,o=n*Rc,i=r,a=n*Rc+n,u=-i,c=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(u,c),t.lineTo(Dc*r-Tc*o,Tc*r+Dc*o),t.lineTo(Dc*i-Tc*a,Tc*i+Dc*a),t.lineTo(Dc*u-Tc*c,Tc*u+Dc*c),t.lineTo(Dc*r+Tc*o,Dc*o-Tc*r),t.lineTo(Dc*i+Tc*a,Dc*a-Tc*i),t.lineTo(Dc*u+Tc*c,Dc*c-Tc*u),t.closePath()}},Nc={draw(t,e){const n=.6189*Nu(e-Lu(e/6,1.7));t.moveTo(-n,-n),t.lineTo(n,n),t.moveTo(-n,n),t.lineTo(n,-n)}},zc=[yc,vc,bc,wc,Mc,Cc,Ic],Bc=[yc,Oc,Nc,kc,dc,_c,xc];function Wc(t,e){let n=null;function r(){let r;if(n||(n=r=yu()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return t="function"==typeof t?t:gu(t||yc),e="function"==typeof e?e:gu(void 0===e?64:+e),r.type=function(e){return arguments.length?(t="function"==typeof e?e:gu(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:gu(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function Uc(){}function Vc(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 Fc(t){this._context=t}function qc(t){return new Fc(t)}function Hc(t){this._context=t}function Gc(t){return new Hc(t)}function Kc(t){this._context=t}function $c(t){return new Kc(t)}function Yc(t,e){this._basis=new Fc(t),this._beta=e}Fc.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:Vc(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:Vc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Hc.prototype={areaStart:Uc,areaEnd:Uc,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:Vc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Kc.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:Vc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Yc.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 Xc=function t(e){function n(t){return 1===e?new Fc(t):new Yc(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Zc(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:Zc(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:Zc(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 Jc=function t(e){function n(t){return new Qc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function tl(t,e){this._context=t,this._k=(1-e)/6}tl.prototype={areaStart:Uc,areaEnd:Uc,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:Zc(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 el=function t(e){function n(t){return new tl(t,e)}return n.tension=function(e){return t(+e)},n}(0);function nl(t,e){this._context=t,this._k=(1-e)/6}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._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:Zc(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 rl=function t(e){function n(t){return new nl(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ol(t,e,n){var r=t._x1,o=t._y1,i=t._x2,a=t._y2;if(t._l01_a>zu){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>zu){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 il(t,e){this._context=t,this._alpha=e}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._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:ol(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 al=function t(e){function n(t){return e?new il(t,e):new Qc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ul(t,e){this._context=t,this._alpha=e}ul.prototype={areaStart:Uc,areaEnd:Uc,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:ol(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 cl=function t(e){function n(t){return e?new ul(t,e):new tl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ll(t,e){this._context=t,this._alpha=e}ll.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:ol(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 sl=function t(e){function n(t){return e?new ll(t,e):new nl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function fl(t){this._context=t}function pl(t){return new fl(t)}function hl(t){return t<0?-1:1}function dl(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(hl(i)+hl(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function yl(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function vl(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 ml(t){this._context=t}function gl(t){this._context=new bl(t)}function bl(t){this._context=t}function xl(t){return new ml(t)}function Ol(t){return new gl(t)}function wl(t){this._context=t}function _l(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 jl(t){return new wl(t)}function Pl(t,e){this._context=t,this._t=e}function Al(t){return new Pl(t,.5)}function Ml(t){return new Pl(t,0)}function El(t){return new Pl(t,1)}function Cl(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 Sl(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function kl(t,e){return t[e]}function Dl(t){const e=[];return e.key=t,e}function Tl(){var t=gu([]),e=Sl,n=Cl,r=kl;function o(o){var i,a,u=Array.from(t.apply(this,arguments),Dl),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=mu(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:gu(Array.from(e)),o):t},o.value=function(t){return arguments.length?(r="function"==typeof t?t:gu(+t),o):r},o.order=function(t){return arguments.length?(e=null==t?Sl:"function"==typeof t?t:gu(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?Cl:t,o):n},o}function Rl(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}Cl(t,e)}}function Ll(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 Il(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}Cl(t,e)}}function Nl(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,Cl(t,e)}}function zl(t){var e=t.map(Bl);return Sl(t).sort((function(t,n){return e[t]-e[n]}))}function Bl(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 Wl(t){var e=t.map(Ul);return Sl(t).sort((function(t,n){return e[t]-e[n]}))}function Ul(t){for(var e,n=0,r=-1,o=t.length;++r<o;)(e=+t[r][1])&&(n+=e);return n}function Vl(t){return Wl(t).reverse()}function Fl(t){var e,n,r=t.length,o=t.map(Ul),i=zl(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 ql(t){return Sl(t).reverse()}fl.prototype={areaStart:Uc,areaEnd:Uc,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))}},ml.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:vl(this,this._t0,yl(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,vl(this,yl(this,n=dl(this,t,e)),n);break;default:vl(this,this._t0,n=dl(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(gl.prototype=Object.create(ml.prototype)).point=function(t,e){ml.prototype.point.call(this,e,t)},bl.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)}},wl.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=_l(t),o=_l(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)}},Pl.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 Hl=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},Gl=function(t){return function(e){return t.x(void 0!==e._x1?e._x1:e._x)}},Kl=function(t){return function(e){return t.y(void 0!==e._y1?e._y1:e._y)}},$l=function(t){return"curve".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t))},Yl=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)?$l(e):function(t){return"".concat($l(t),"Closed")}(e);return s[o]}return xu},Xl=function(t){var e=t.polar,n=t.scale,r=t.horizontal;return e?Cu().defined(Hl).curve(Yl(t)).angle(function(t){return function(e){return-1*t.x(void 0!==e._x1?e._x1:e._x)+Math.PI/2}}(n)).radius(Kl(n)):_u().defined(Hl).curve(Yl(t)).x(r?Kl(n):Gl(n)).y(r?Gl(n):Kl(n))},Zl=["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 Jl(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 ts(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var es=(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,Zl)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jl(Object(n),!0).forEach((function(e){ts(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(n=st(o,t))||void 0===n?void 0:n.toString(),tabIndex:st(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 ns(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 rs(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)?rs(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 rs(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 os(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 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={startsWith:["data-","aria-"],exactMatch:[]};function us(t,e){if(null==t)throw new Error(e)}var cs=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?os(Object(n),!0).forEach((function(e){is(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):os(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 as.startsWith.forEach((function(n){new RegExp("\\b(".concat(n,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return as.exactMatch.includes(t)}(t))}(ns(t,1)[0])})).map((function(e){var n=ns(e,2);return[n[0],st(n[1],t)]})))},ls=function(t,e){return P.cloneElement(t,cs(e))};function ss(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ss(Object(n),!0).forEach((function(e){ps(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ps(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hs=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},ds=function(t){return function(e){return t.x(void 0!==e._x1?e._x1:e._x)}},ys=function(t){return function(e){return t.y(void 0!==e._y1?e._y1:e._y)}},vs=function(t){return function(e){return t.y(e._y0)}},ms={groupComponent:A().createElement("g",null),pathComponent:A().createElement(es,null),role:"presentation",shapeRendering:"auto"},gs=function(t){var e=function(t){var e=st(t.ariaLabel,t),n=st(t.desc,t),r=st(t.id,t),o=ft(Object.assign({fill:"black"},t.style),t),i=st(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(fs(fs({},ms),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=cs(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=Yl(t);return e?Su().defined(hs).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(ys(n)).innerRadius(vs(n)):function(t){var e=t.horizontal,n=t.scale,r=Yl(t);return e?ju().defined(hs).curve(r).x0(vs(n)).x1(ys(n)).y(ds(n)):ju().defined(hs).curve(r).x(ds(n)).y1(ys(n)).y0(vs(n))}(t)}(e),w=x&&Xl(e),_=d.stroke?"none":d.fill,j=fs(fs({"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:_}),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:w(c)},j)):null;return x?A().cloneElement(f,m,[P,M]):P},bs=r(7709),xs=r.n(bs),Os=r(660),ws=r.n(Os);function _s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function js(t,e){return js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},js(t,e)}function Ps(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 As(t){return As=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},As(t)}var Ms=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&&js(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=As(r);if(o){var n=As(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Ps(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 Q()(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())}}])&&_s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Ms.displayName="Portal";var Es=A().createContext({});Es.displayName="PortalContext";var Cs,Ss,ks=0,Ds=0,Ts=0,Rs=0,Ls=0,Is=0,Ns="object"==typeof performance&&performance.now?performance:Date,zs="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Bs(){return Ls||(zs(Ws),Ls=Ns.now()+Is)}function Ws(){Ls=0}function Us(){this._call=this._time=this._next=null}function Vs(t,e,n){var r=new Us;return r.restart(t,e,n),r}function Fs(){Ls=(Rs=Ns.now())+Is,ks=Ds=0;try{!function(){Bs(),++ks;for(var t,e=Cs;e;)(t=Ls-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ks}()}finally{ks=0,function(){for(var t,e,n=Cs,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:Cs=e);Ss=t,Hs(r)}(),Ls=0}}function qs(){var t=Ns.now(),e=t-Rs;e>1e3&&(Is-=e,Rs=t)}function Hs(t){ks||(Ds&&(Ds=clearTimeout(Ds)),t-Ls>24?(t<1/0&&(Ds=setTimeout(Fs,t-Ns.now()-Is)),Ts&&(Ts=clearInterval(Ts))):(Ts||(Rs=Ns.now(),Ts=setInterval(qs,1e3)),ks=1,zs(Fs)))}function Gs(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)}}Us.prototype=Vs.prototype={constructor:Us,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Bs():+n)+(null==e?0:+e),this._next||Ss===this||(Ss?Ss._next=this:Cs=this,Ss=this),this._call=t,this._time=n,Hs()},stop:function(){this._call&&(this._call=null,this._time=1/0,Hs())}};var Ks=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(Bs()-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=Vs(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:Bs(),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()}}])&&Gs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),$s=A().createContext({transitionTimer:new Ks,animationTimer:new Ks});$s.displayName="TimerContext";const Ys=$s;function Xs(){return Xs=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},Xs.apply(this,arguments)}function Zs(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?Zs(Object(n),!0).forEach((function(e){Js(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Js(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tf(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 ef(t,e){return ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ef(t,e)}function nf(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 rf(t){return rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rf(t)}var of=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&&ef(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=rf(r);if(o){var n=rf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return nf(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 G()(e.props.containerRef)&&e.props.containerRef(t),e.containerRef=t,t},e.handleWheel=function(t){return t.preventDefault()},e.containerId=xs()(t)&&void 0!==t.containerId?t.containerId:ws()("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(Es.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},A().createElement("div",Xs({style:nt()({},n,h),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),A().createElement("svg",Xs({},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:rt(this.props.style,["height","width"]),f=cs(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)}}])&&tf(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);of.displayName="VictoryContainer",of.role="container",of.defaultProps={className:"VictoryContainer",portalComponent:A().createElement(Ms,null),portalZIndex:99,responsive:!0,role:"img"},of.contextType=Ys;var af=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))},uf=["desc","id","tabIndex","origin"];function cf(){return cf=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},cf.apply(this,arguments)}function lf(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 sf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ff=(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,uf)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lf(Object(n),!0).forEach((function(e){sf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=st(o,t))||void 0===n?void 0:n.toString(),tabIndex:st(i,t)},a);return r?A().createElement("circle",cf({},u,{ref:e}),A().createElement("desc",null,r)):A().createElement("circle",cf({},u,{ref:e}))})),pf=["desc","id","tabIndex","origin"];function hf(){return hf=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},hf.apply(this,arguments)}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 yf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vf=(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,pf)),u=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){yf(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}({vectorEffect:"non-scaling-stroke",id:null===(n=st(o,t))||void 0===n?void 0:n.toString(),tabIndex:st(i,t)},a);return r?A().createElement("rect",hf({},u,{ref:e}),A().createElement("desc",null,r)):A().createElement("rect",hf({},u,{ref:e}))}));function mf(t){return function(t){if(Array.isArray(t))return gf(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 gf(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)?gf(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 gf(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 bf(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 xf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bf(Object(n),!0).forEach((function(e){Of(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Of(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wf(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 _f(t,e){return _f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_f(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)}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&&_f(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(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=xs()(t)&&void 0!==t.clipId?t.clipId:ws()("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=at({padding:t.clipPadding}),p=t.radius||dt(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=cs(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,xf(xf({},f),{},{tabIndex:l},n),[s].concat(mf(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=at({padding:t.clipPadding}),m=v.top,g=v.bottom,b=v.left,x=v.right;if(r){var O=t.radius||dt(t),w={r:Math.max(O+b+x,O+m+g,0),cx:o.x-b,cy:o.y-m};n=A().cloneElement(h,w)}else{var _={x:s-b,y:p-m,width:Math.max(a+b+x,0),height:Math.max(c+m+g,0)};n=A().cloneElement(d,_)}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=vt(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=vt(t,e);return r?Math.min.apply(Math,mf(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=nt()({},this.props,{clipHeight:t,clipWidth:e,translateX:n,translateY:r});return this.renderClippedGroup(o,this.clipId)}}],n&&wf(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);function Mf(t){}function Ef(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cf(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 Sf(t,e){return Sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Sf(t,e)}function kf(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 Df(t){return Df=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Df(t)}Af.displayName="VictoryClipContainer",Af.role="container",Af.defaultProps={circleComponent:A().createElement(ff,null),rectComponent:A().createElement(vf,null),clipPathComponent:A().createElement(af,null),groupComponent:A().createElement("g",null)};var Tf=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&&Sf(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=Df(r);if(o){var n=Df(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return kf(this,t)});function a(){var t;Ef(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=nt()(r,n,rt(this.props,["children","groupComponent"])),i=t&&A().cloneElement(t,o);return this.renderPortal(i)}}])&&Cf(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Tf.displayName="VictoryPortal",Tf.role="portal",Tf.defaultProps={groupComponent:A().createElement("g",null)},Tf.contextType=Es;var Rf=["children","desc","id","origin","tabIndex","title"];function Lf(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 If(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Nf=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,Rf),c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lf(Object(n),!0).forEach((function(e){If(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(e=st(o,t))||void 0===e?void 0:e.toString(),tabIndex:st(i,t)},u);return A().createElement("text",c,a&&A().createElement("title",null,a),r&&A().createElement("desc",null,r),n)},zf=["desc","id","tabIndex","origin"];function Bf(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 Wf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Uf=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,zf)),i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bf(Object(n),!0).forEach((function(e){Wf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(e=st(n,t))||void 0===e?void 0:e.toString(),tabIndex:st(r,t)},o);return A().createElement("tspan",i)},Vf=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,Vf(e)].join(" ")}),Vf(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 Ff(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 qf=r(1594),Hf=r.n(qf);function Gf(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)||Kf(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 Kf(t,e){if(t){if("string"==typeof t)return $f(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)?$f(t,e):void 0}}function $f(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 Yf={"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}},Xf={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Zf={em:1,ex:.5},Qf={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Jf=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},tp=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)},ep=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?Xf.hasOwnProperty(r)?o*Xf[r]:Zf.hasOwnProperty(r)?(e?o*e:o*Qf.fontSize)*Zf[r]:o:o||0},np=function(t,e){var n=Array.isArray(t)?t[e]:t,r=nt()({},n,Qf);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:ep(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:ep(String(r.fontSize))})},rp=function(t,e){if(void 0===t||""===t||null===t)return 0;var n,r=Jf(t).map((function(t,n){var r,o,i=t.toString().length,a=np(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 Yf[t]}))||"Helvetica",Yf[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 $f(t)}(n=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Kf(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.")}())},op=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:Jf(t).reduce((function(t,n,r){var o=np(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=rp(t,e);return{width:n?tp(o,r,n):o,height:1.05*(n?tp(r,o,n):r)}},ip=Hf()((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})),ap=function(t){return t?"".concat(t.angle,":").concat(t.fontFamily,":").concat(t.fontSize,":").concat(t.letterSpacing,":").concat(t.lineHeight):"null"},up=Hf()((function(t,e){var n,r,o=ip();o.isConnected||(null===(n=(r=ip.cache).clear)||void 0===n||n.call(r),o=ip());var i=Jf(t),a=0;for(var u of i.entries()){var c=Gf(u,2),l=c[0],s=c[1],f=document.createElementNS("http://www.w3.org/2000/svg","tspan"),p=np(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?tp(h,a,null==e?void 0:e.angle):h,height:null!=e&&e.angle?tp(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(ap).join():ap(e);return"".concat(n,"::").concat(r)})),cp={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?op(t,e):up(t,e)}},lp=function(t,e){return cp.impl(t,e)};function sp(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 fp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sp(Object(n),!0).forEach((function(e){pp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hp(t){return function(t){if(Array.isArray(t))return dp(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 dp(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)?dp(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 dp(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 yp={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},vp=function(t,e){return t.datum?it(t,t.datum)[e]:0},mp=function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return yp.fontSize;if("string"==typeof e){var n=Number(e.replace("px",""));return isNaN(n)?yp.fontSize:n}return yp.fontSize},gp=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(t)?t[e]||t[0]:t},bp=function(t){var e=t.backgroundStyle,n=t.backgroundPadding;return Array.isArray(e)&&!z()(e)||Array.isArray(n)&&!z()(n)},xp=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)}},Op=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)}},wp=function(t,e){return bp(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=gp(e,o-1),u=t.textSize,s=t.fontSize*t.lineHeight,f=Math.ceil(s),p=gp(a,o),h=gp(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=xp(t,e.labelSize.width),f=s.slice(0,n+1).reduce((function(t,e){return t+e.dy}),l),p=gp(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?Op(t,h)-p.top:f,v={key:"tspan-background-".concat(n),height:h,style:gp(i,n),width:e.widthWithPadding,transform:o,x:d-p.left,y};return A().cloneElement(u,nt()({},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,hp(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,hp(s.map((function(t){return t.width})))),h=xp(t,p),d=Op(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,nt()({},i.props,y))}(t,e)},_p=function(t,e,n){var r=e.inline,o=gp(t,n);return n&&!r?function(t,e,n){var r=gp(t,e),o=gp(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 bp(n)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l}(t,n,e):r?0===n?o.backgroundPadding.top:void 0:o.backgroundPadding.top},jp={backgroundComponent:A().createElement(vf,null),groupComponent:A().createElement("g",null),direction:"inherit",textComponent:A().createElement(Nf,null),tspanComponent:A().createElement(Uf,null),capHeight:.71,lineHeight:1},Pp=function(t){var e=function(t){var e=function(t,e){if(null!=t){if(Array.isArray(t))return t.map((function(t){return st(t,e)}));var n=st(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=ft(t,e);return{fontSize:mp(n)}}var r=function(t){var n=ft(t?nt()({},t,yp):yp,e);return Object.assign({},n,{fontSize:mp(n)})};return Array.isArray(t)&&!z()(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)&&!z()(t)?t.map((function(t){return ft(t,e)})):ft(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 at({padding:st(e,t)})})):at({padding:st(t.backgroundPadding,t)})}(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),i=st(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:o,style:n,text:e,id:i})}(fp(fp({},jp),t));if(null===e.text||void 0===e.text)return null;var n=function(t){var e=st(t.ariaLabel,t),n=gp(t.style),r=function(t){var e=st(t.lineHeight,t);return Array.isArray(e)&&z()(e)?[1]:e}(t),o=t.direction?st(t.direction,t):"inherit",i=t.textAnchor?st(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?st(t.verticalAnchor,t):n.verticalAnchor||"middle",u=t.dx?st(t.dx,t):0,c=function(t,e,n){var r=t.dy?st(t.dy,t):0,o=t.inline?1:t.text.length,i=st(t.capHeight,t),a=e?st(e,t):"middle",u=hp(Array(o).keys()).map((function(e){return gp(t.style,e).fontSize})),c=hp(Array(o).keys()).map((function(t){return gp(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=hp(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:vp(t,"x"),s=void 0!==t.y?t.y:vp(t,"y"),f=function(t,e,n){var r=t.polar,o=gp(t.style),i=r?au(t):0,a=void 0===o.angle?st(t.angle,t):o.angle,u=void 0===a?i:a,c=t.transform||o.transform,l=c&&st(c,t);return l||u?Vf(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:st(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=gp(o,e),r=ep("".concat(i,"em"),n.fontSize),c=gp(u,e);return{style:n,fontSize:n.fontSize||yp.fontSize,capHeight:r,text:t,textSize:lp(t,n),lineHeight:c,backgroundPadding:gp(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=cs(t),O=fp(fp({"aria-label":n,key:"text"},a),{},{direction:u,dx:s,x:h,y:d+f,transform:p,className:o,title:i,desc:st(y,t),tabIndex:st(m,t),id:v},x),w=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:_p(e,t,o),textAnchor:i.textAnchor||l,style:i,children:n};return A().cloneElement(g,a)}));return A().cloneElement(b,O,w)}(n,c);if(e.backgroundStyle){var s=[wp(n,c),l],f=A().cloneElement(e.groupComponent,{},s);return e.renderInPortal?A().createElement(Tf,null,f):f}return e.renderInPortal?A().createElement(Tf,null,l):l};Pp.displayName="VictoryLabel",Pp.role="label",Pp.defaultStyles=yp;var Ap=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Mp="#252525",Ep="#969696",Cp={width:450,height:300,padding:50,colorScale:Ap},Sp={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:Mp,stroke:"transparent"},kp=Object.assign({textAnchor:"middle"},Sp),Dp={area:Object.assign({style:{data:{fill:Mp},labels:Sp}},Cp),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Mp,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},kp,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Sp}},Cp),bar:Object.assign({style:{data:{fill:Mp,padding:8,strokeWidth:0},labels:Sp}},Cp),boxplot:Object.assign({style:{max:{padding:8,stroke:Mp,strokeWidth:1},maxLabels:Object.assign({},Sp,{padding:3}),median:{padding:8,stroke:Mp,strokeWidth:1},medianLabels:Object.assign({},Sp,{padding:3}),min:{padding:8,stroke:Mp,strokeWidth:1},minLabels:Object.assign({},Sp,{padding:3}),q1:{padding:8,fill:Ep},q1Labels:Object.assign({},Sp,{padding:3}),q3:{padding:8,fill:Ep},q3Labels:Object.assign({},Sp,{padding:3})},boxWidth:20},Cp),candlestick:Object.assign({style:{data:{stroke:Mp,strokeWidth:1},labels:Object.assign({},Sp,{padding:5})},candleColors:{positive:"#ffffff",negative:Mp}},Cp),chart:Cp,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:Mp,strokeWidth:2},labels:Sp}},Cp),group:Object.assign({colorScale:Ap},Cp),histogram:Object.assign({style:{data:{fill:Ep,stroke:Mp,strokeWidth:2},labels:Sp}},Cp),legend:{colorScale:Ap,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Sp,title:Object.assign({},Sp,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:Mp,strokeWidth:2},labels:Sp}},Cp),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},Sp,{padding:20})},colorScale:Ap,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:Mp,stroke:"transparent",strokeWidth:0},labels:Sp}},Cp),stack:Object.assign({colorScale:Ap},Cp),tooltip:{style:Object.assign({},Sp,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Mp,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({},Sp,{padding:5,pointerEvents:"none"}),flyout:{stroke:Mp,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Cp)},Tp=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],Rp="#ECEFF1",Lp="#90A4AE",Ip="#455A64",Np="#212121",zp={width:350,height:350,padding:50},Bp={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:Ip,stroke:"transparent",strokeWidth:0},Wp=Object.assign({textAnchor:"middle"},Bp),Up="round",Vp="round",Fp={grayscale:Dp,material:{area:Object.assign({style:{data:{fill:Np},labels:Bp}},zp),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Lp,strokeWidth:2,strokeLinecap:Up,strokeLinejoin:Vp},axisLabel:Object.assign({},Wp,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:Rp,strokeDasharray:"10, 5",strokeLinecap:Up,strokeLinejoin:Vp,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Lp,strokeWidth:1,strokeLinecap:Up,strokeLinejoin:Vp},tickLabels:Object.assign({},Bp,{fill:Ip})}},zp),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:Ip,padding:8,strokeWidth:0},labels:Bp}},zp),boxplot:Object.assign({style:{max:{padding:8,stroke:Ip,strokeWidth:1},maxLabels:Object.assign({},Bp,{padding:3}),median:{padding:8,stroke:Ip,strokeWidth:1},medianLabels:Object.assign({},Bp,{padding:3}),min:{padding:8,stroke:Ip,strokeWidth:1},minLabels:Object.assign({},Bp,{padding:3}),q1:{padding:8,fill:Ip},q1Labels:Object.assign({},Bp,{padding:3}),q3:{padding:8,fill:Ip},q3Labels:Object.assign({},Bp,{padding:3})},boxWidth:20},zp),candlestick:Object.assign({style:{data:{stroke:Ip},labels:Object.assign({},Bp,{padding:5})},candleColors:{positive:"#ffffff",negative:Ip}},zp),chart:zp,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Ip,strokeWidth:2},labels:Bp}},zp),group:Object.assign({colorScale:Tp},zp),histogram:Object.assign({style:{data:{fill:Ip,stroke:Np,strokeWidth:2},labels:Bp}},zp),legend:{colorScale:Tp,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Bp,title:Object.assign({},Bp,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Ip,strokeWidth:2},labels:Bp}},zp),pie:Object.assign({colorScale:Tp,style:{data:{padding:8,stroke:Rp,strokeWidth:1},labels:Object.assign({},Bp,{padding:20})}},zp),scatter:Object.assign({style:{data:{fill:Ip,opacity:1,stroke:"transparent",strokeWidth:0},labels:Bp}},zp),stack:Object.assign({colorScale:Tp},zp),tooltip:{style:Object.assign({},Bp,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Np,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({},Bp,{padding:5,pointerEvents:"none"}),flyout:{stroke:Np,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},zp)}};function qp(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function Hp(){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 Gp(){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 Kp=r(4882),$p=r.n(Kp),Yp=r(6354),Xp=r.n(Yp),Zp=r(4912),Qp=r.n(Zp);function Jp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function th(t){return function(t){if(Array.isArray(t))return eh(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 eh(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)?eh(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 eh(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 nh=/^onGlobal(.*)$/;function rh(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)?R()(n.target,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,th(t.events)):i.componentEvents:t.events,c=u&&G()(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 oh(t,e,n,r){var o=this;if(z()(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(!G()(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,Jp({},e,Object.assign(t[e]||{},s))):Object.assign(t,Jp({},e,Object.assign(t[e]||{},Jp({},c,s))))}(t):function(t){return t[e]&&t[e][c]&&delete t[e][c],t[e]&&!Q()(t[e]).length&&delete t[e],t}(t)};return null!=n?Object.assign(r,Jp({},n,p(f))):p(r)},s=function(e){var n=function(e){return"parent"===c?"parent":"all"===t.eventKey?i[e]?$p()(Q()(i[e]),"parent"):$p()(Q()(i),"parent"):void 0===t.eventKey&&"parent"===r?i[e]?Q()(i[e]):Q()(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?$p()(Q()(i),"parent"):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(!z()(a)){var c=function(t){var e=function(t){return G()(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 Q()(t).reduce((function(t,e){return t[e]=c,t}),{})}function ih(t,e,n){return t?Q()(t).reduce((function(r,o){return r[o]=function(r){return t[o](r,n,e,o)},r}),{}):{}}function ah(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 uh(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=ch(t,e[o],n[o],o);return r[o]=a||i,Qp()(r,(function(t){return!z()(t)}))}),{})}function ch(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=Q()(e);return o.reduce((function(o,i){var a=n[i]||{},u=e[i]||{};if("parent"===i){var c=lh(t,u,a,{eventKey:i,target:"parent"});o[i]=void 0!==c?Object.assign({},a,c):a}else{var l=X()(Q()(u).concat(Q()(a)));o[i]=l.reduce((function(e,n){var o={eventKey:i,target:n,childName:r},c=lh(t,u[n],a[n],o);return e[n]=void 0!==c?Object.assign({},a[n],c):a[n],Qp()(e,(function(t){return!z()(t)}))}),{})}return Qp()(o,(function(t){return!z()(t)}))}),{})}function lh(t,e,n,r){var o=function(t,e){if("string"==typeof t[e])return"all"===t[e]||t[e]===r[e];if(Array.isArray(t[e])){var n=t[e].map((function(t){return"".concat(t)}));return R()(n,r[e])}return!1},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(!z()(a)){var u=a.filter((function(t){return o(t,"eventKey")}));if(!z()(u))return u.reduce((function(t,r){var o=(r&&G()(r.mutation)?r.mutation:function(){})(Object.assign({},e,n));return Object.assign({},t,o)}),{})}}function sh(t,e){var n=Array.isArray(e)&&e.reduce((function(e,n){var r=t[n],o=r&&r.type&&r.type.defaultEvents,i=G()(o)?o(r.props):o;return Array.isArray(i)?e.concat.apply(e,th(i)):e}),[]);return n&&n.length?n:void 0}function fh(t){var e=t.match(nh);return e&&e[1]&&e[1].toLowerCase()}var ph=function(t){return Qp()(t,(function(t,e){return nh.test(e)}))},hh=function(t){return S()(t,(function(t,e){return nh.test(e)}))},dh=function(t){return Object.assign(t,{nativeEvent:t})},yh=r(7491),vh=r.n(yh);const mh=t=>+t;function gh(t){return t*t}function bh(t){return t*(2-t)}function xh(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Oh(t){return t*t*t}function wh(t){return--t*t*t+1}function _h(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var jh=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),Ph=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Ah=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),Mh=Math.PI,Eh=Mh/2;function Ch(t){return 1==+t?1:1-Math.cos(t*Eh)}function Sh(t){return Math.sin(t*Eh)}function kh(t){return(1-Math.cos(Mh*t))/2}function Dh(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Th(t){return Dh(1-+t)}function Rh(t){return 1-Dh(t)}function Lh(t){return((t*=2)<=1?Dh(1-t):2-Dh(t-1))/2}function Ih(t){return 1-Math.sqrt(1-t*t)}function Nh(t){return Math.sqrt(1- --t*t)}function zh(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Bh=7.5625;function Wh(t){return 1-Uh(1-t)}function Uh(t){return(t=+t)<.36363636363636365?Bh*t*t:t<.7272727272727273?Bh*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Bh*(t-=.8181818181818182)*t+.9375:Bh*(t-=.9545454545454546)*t+.984375}function Vh(t){return((t*=2)<=1?1-Uh(1-t):Uh(t-1)+1)/2}var Fh=1.70158,qh=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(Fh),Hh=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(Fh),Gh=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}(Fh),Kh=2*Math.PI,$h=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Kh);function o(t){return e*Dh(- --t)*Math.sin((r-t)/n)}return o.amplitude=function(e){return t(e,n*Kh)},o.period=function(n){return t(e,n)},o}(1,.3),Yh=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Kh);function o(t){return 1-e*Dh(t=+t)*Math.sin((t+r)/n)}return o.amplitude=function(e){return t(e,n*Kh)},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/=Kh);function o(t){return((t=2*t-1)<0?e*Dh(-t)*Math.sin((r-t)/n):2-e*Dh(t)*Math.sin((r+t)/n))/2}return o.amplitude=function(e){return t(e,n*Kh)},o.period=function(n){return t(e,n)},o}(1,.3),Zh=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)||q()(t)}return!1},Qh=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 Je(r,o)(n)}}},td=function(t,e){var n,r=function(t,e){return t!==e&&Zh(t)&&Zh(e)?"function"==typeof t||"function"==typeof e?Jh(t,e):"object"==typeof t&&q()(t)||"object"==typeof e&&q()(e)?td(t,e):Je(t,e):Qh(t,e)},o=function(t){return Array.isArray(t)?W()(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 ed(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 nd(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 rd(t,e){return rd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rd(t,e)}function od(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 id(t){return id=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},id(t)}var 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&&rd(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=id(r);if(o){var n=id(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return od(this,t)});function a(t,e){var n;return 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)).interpolator=void 0,n.queue=void 0,n.ease=void 0,n.timer=void 0,n.loopID=void 0,n.functionToBeRunEachFrame=function(t,e){var r=void 0!==e?e:n.props.duration,o=r?t/r:1;if(o>=1)return n.setState({data:n.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),n.loopID&&n.timer.unsubscribe(n.loopID),n.queue.shift(),void n.traverseQueue();n.setState({data:n.interpolator(n.ease(o)),animationInfo:{progress:o,animating:o<1}})},n.state={data:Array.isArray(n.props.data)?n.props.data[0]:n.props.data,animationInfo:{progress:0,animating:!1}},n.interpolator=null,n.queue=Array.isArray(n.props.data)?n.props.data.slice(1):[],n.ease=g[n.toNewName(n.props.easing)],n.timer=n.context.animationTimer,n}return e=a,n=[{key:"componentDidMount",value:function(){this.queue.length&&this.traverseQueue()}},{key:"componentDidUpdate",value:function(t){if(!vh()(this.props,t))if(this.interpolator&&this.state.animationInfo&&this.state.animationInfo.progress<1)this.setState({data:this.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}});else{var e;this.timer.unsubscribe(this.loopID),Array.isArray(this.props.data)?(e=this.queue).push.apply(e,function(t){if(Array.isArray(t))return ed(t)}(n=this.props.data)||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 ed(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)?ed(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.")}()):(this.queue.length=0,this.queue.push(this.props.data)),this.traverseQueue()}var n}},{key:"componentWillUnmount",value:function(){this.loopID?this.timer.unsubscribe(this.loopID):this.timer.stop()}},{key:"toNewName",value:function(t){return"ease".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t))}},{key:"traverseQueue",value:function(){var t=this;if(this.queue.length){var e=this.queue[0];this.interpolator=function(t,e){return t!==e&&Zh(t)&&Zh(e)?"function"==typeof t||"function"==typeof e?Jh(t,e):q()(t)||q()(e)?td(t,e):"string"==typeof t||"string"==typeof e?function(t,e){var n=function(t){return"string"==typeof t?t.replace(/,/g,""):t};return Je(n(t),n(e))}(t,e):Je(t,e):Qh(t,e)}(this.state.data,e),this.props.delay?setTimeout((function(){t.loopID=t.timer.subscribe(t.functionToBeRunEachFrame,t.props.duration)}),this.props.delay):this.loopID=this.timer.subscribe(this.functionToBeRunEachFrame,this.props.duration)}else this.props.onEnd&&this.props.onEnd()}},{key:"render",value:function(){return this.props.children(this.state.data,this.state.animationInfo)}}],n&&nd(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);ad.displayName="VictoryAnimation",ad.defaultProps={data:{},delay:0,duration:1e3,easing:"quadInOut"},ad.contextType=Ys;var ud=r(5346),cd=r.n(ud);function ld(t,e){return(t.key||e).toString()}function sd(t){return t.reduce((function(t,e,n){return t[ld(e,n)]=e,t}),{})}function fd(t,e){var n=!1,r=Q()(t).reduce((function(t,r){return r in e||(n=!0,t[r]=!0),t}),{});return n&&r}function pd(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function hd(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=pd(t),i=pd(e),a=o&&sd(o),u=i&&sd(i),{entering:a&&fd(u,a),exiting:u&&fd(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 dd(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:cd();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:cd();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:cd();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:cd();u=e.map((function(t,n){var o=ld(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:cd();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=pd(n)||[],y=nt()({},t.animate,n.props.animate),v=n.props.polar&&n.type.defaultPolarTransitions||n.type.defaultTransitions;y.onExit=nt()({},y.onExit,v&&v.onExit),y.onEnter=nt()({},y.onEnter,v&&v.onEnter),y.onLoad=nt()({},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 w=m&&m.entering,_=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(w,0,d,Object.assign({},y,P))}return!e&&y&&y.onExit?function(t,e){var n=t.onEnter&&t.onEnter.after?t.onEnter.after:cd();return{data:e.map((function(t,r){return Object.assign({},t,n(t,r,e))}))}}(y,d):{animate:y,data:d}}}function yd(){return yd=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},yd.apply(this,arguments)}function vd(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 md(t,e){return md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},md(t,e)}function gd(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 bd(t){return bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bd(t)}var xd=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&&md(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=bd(r);if(o){var n=bd(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return gd(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 vh()(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=hd(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&&G()(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]:[Tt(a),Dt(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=vt(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:dd(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=nt()({domain:a,clipWidth:u},i,o.props),l=(n.animationWhitelist||[]).concat(["clipWidth"]),s=l.length?tt()(c,l):c;return A().createElement(ad,yd({},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,nt()({animate:null,animating:!0,groupComponent:n},t,c))}return A().cloneElement(o,nt()({animate:null,animating:!0},t,c))}))}}],n&&vd(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);function Od(t){return function(t){if(Array.isArray(t))return wd(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 wd(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)?wd(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 wd(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){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jd(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 Pd(t,e,n){return e&&jd(t.prototype,e),n&&jd(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ad(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&&Md(t,e)}function Md(t,e){return Md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Md(t,e)}function Ed(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=kd(t);if(e){var o=kd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cd(this,n)}}function Cd(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 Sd(t)}function Sd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kd(t){return kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kd(t)}xd.displayName="VictoryTransition",xd.contextType=Ys;var Dd=function(t){return!E()(t._x)&&!E()(t._y)},Td=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function Rd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(n){Ad(o,n);var r=Ed(o);function o(t){var e;return _d(this,o),(e=r.call(this,t)).state={},e.getEventState=ah.bind(Sd(e)),e.getScopedEvents=oh.bind(Sd(e)),e.getEvents=function(t,n,r){return rh.call(Sd(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 Pd(o,[{key:"shouldComponentUpdate",value:function(t){var e=this.getExternalMutations(t),n=this.props.animating||this.props.animate,r=!vh()(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 vh()(this.calculatedState,o)?!vh()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}},{key:"componentDidMount",value:function(){var t=this,e=Q()(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=Q()(this.globalEvents);Xp()(this.prevGlobalEventKeys,r).forEach((function(t){return e.removeGlobalListener(t)})),Xp()(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(dh(n))};this.boundGlobalEvents[t]=n,window.addEventListener(fh(t),n)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(fh(t),this.boundGlobalEvents[t])}},{key:"getStateChanges",value:function(t){var n=this;if(!this.hasEvents)return{};var r=function(t,e){var r=nt()({},n.getEventState(t,e),n.getSharedEventState(t,e));return z()(r)?void 0:r};return(e.components||Td).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(!z()(e)){var n=t.externalEventMutations.reduce((function(t,e){return G()(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=sh(e,t.expectedComponents),o=n&&G()(n.getEventState)?n.getEventState:function(){},i=this.getBaseProps(e,o);return{componentEvents:r,getSharedEventState:o,baseProps:i,dataKeys:Q()(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 z()(n)||e?void 0:ch(n,this.baseProps,this.state)}},{key:"cacheValues",value:function(t){var e=this;Q()(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=nt()({},o,r),a=i.parentControlledProps,u=a?tt()(i,a):{},c=nt()({},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,Od(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=nt()({index:r,key:a},this.getEventState(i,n),this.getSharedEventState(i,n),c,u,{id:a}),f=nt()({},ih(l,i,s),s.events);return Object.assign({},s,{events:f})}return nt()({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=ph(n.events),n.events=hh(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(xd,{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=$p()(this.dataKeys,"all").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}),[]),a=this.getComponentProps(n,"data","all"),u=[A().cloneElement(n,a)].concat(Od(i));return this.renderContainer(o,u)}},{key:"renderData",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dd,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(Od(a),Od(u));return this.renderContainer(i,c)}}]),o}(t);return n}function Ld(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Id(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 Nd(t,e){return Nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nd(t,e)}function zd(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 Bd(t){return Bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bd(t)}var Wd={width:450,height:300,padding:50,interpolation:"linear"},Ud=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&&Nd(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=Bd(r);if(o){var n=Bd(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return zd(this,t)});function a(){return Ld(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=gt(this.props,Wd,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderContinuousData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ls(o,n)}}])&&Id(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Ud.animationWhitelist=["data","domain","height","padding","style","width"],Ud.defaultProps={containerComponent:A().createElement(of,null),dataComponent:A().createElement(gs,null),groupComponent:A().createElement(Af,null),labelComponent:A().createElement(Pp,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Fp.grayscale},Ud.displayName="VictoryArea",Ud.role="area",Ud.continuous=!0,Ud.defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}},Ud.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}}}},Ud.getDomain=Za,Ud.getData=Sa,Ud.getBaseProps=function(t){return function(t,e){var n=gt(t,e,"area"),r=Object.assign({},n,function(t){var e=t.polar,n=ct(t,"area"),r=lt(t.style,n),o={x:vt(t,"x"),y:vt(t,"y")},i={x:Za(t,"x"),y:Za(t,"y")},a={x:na(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:na(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},u=e?t.origin||yt(t):void 0,c=function(t,e){var n=Sa(t);n.length<2&&(n=[]);var r=function(t){var n="log"===ua(e[t])?1/Number.MAX_SAFE_INTEGER:0,r=e[t].domain(),o=Tt(r),i=Dt(r),a=n;return o<0&&i<=0?a=i:o>=0&&i>0&&(a=o),Mt(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,w=r.disableInlineStyles,_={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:w?{}:m.data,disableInlineStyles:w}}};return o.reduce((function(t,e,n){return(null!=ru(r,e,n)||x&&(a||y))&&(t[E()(e.eventKey)?n:e.eventKey]={labels:cu(r,n)}),t}),_)}(t,Wd)},Ud.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var Vd=Rd(Ud,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]}),Fd=r(366),qd=r.n(Fd),Hd=r(471),Gd=r.n(Hd);function Kd(t){return function(t){if(Array.isArray(t))return $d(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 $d(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)?$d(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 $d(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 Yd(t){return t.dependentAxis?"y":"x"}function Xd(t,e){var n=e||cd(),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 Zd(t,e){return Xd(t,(function(t){return t.type.getAxis(t.props)===e}))[0]}function Qd(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 Jd(t){var e=function(t){var e=Math.min.apply(Math,Kd(t)),n=Math.max.apply(Math,Kd(t));return n<0?n:Math.max(0,e)};return{x:Mt(t.x)?new Date(Math.min.apply(Math,Kd(t.x))):e(t.x),y:Mt(t.y)?new Date(Math.min.apply(Math,Kd(t.y))):e(t.y)}}function ty(t,e){return Mt(e)?"positive":t<=0&&Math.max.apply(Math,Kd(e))<=0?"negative":"positive"}function ey(t){return{top:!1,bottom:!1,left:!0,right:!0}[t.orientation||(t.dependentAxis?"left":"bottom")]}function ny(t){return void 0!==t.tickValues&&At(t.tickValues)}function ry(t){var e=t.tickValues,n=t.tickFormat;if(0===(null==e?void 0:e.length))return[];var r=Yd(t),o=t.stringMap&&t.stringMap[r],i=e;o&&(i=function(t){var e=Yd(t),n=t.stringMap&&t.stringMap[e],r=Array.isArray(t.categories)?t.categories:t.categories&&t.categories[e],o=r&&Ct(r)?r.map((function(t){return n[t]})):void 0,i=n&&qd()(n);return o&&0!==o.length?o:i}(t)),e&&At(e)&&(i=o?e.map((function(t){return o[t]})):xt(1,e.length+1));var a=i?X()(i):function(){if(n&&Array.isArray(n))return At(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>=Tt(o)&&t<=Dt(o)&&n.push({value:t,index:e}):n.push({value:t,index:e})})),n}(a):void 0}function oy(t,e){var n=t.tickFormat,r=Yd(t),o=t.stringMap&&t.stringMap[r];if(!n){var i=function(t){var e=t.tickValues,n=Yd(t),r=t.stringMap&&t.stringMap[n],o=e&&!Mt(e)?function(t){return t}:void 0;if(!r)return ny(t)?function(t,n){return e[n]}:o;var i=r&&Gd()(r),a=W()(qd()(r),(function(t){return t})).map((function(t){return i[t]})),u=[""].concat(Kd(a),[""]);return function(t){return u[t]}}(t),a=e.tickFormat&&G()(e.tickFormat)?e.tickFormat():function(t){return t};return i||a}if(n&&Array.isArray(n)){var u=ry(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&&G()(n)?o?function(e,n,r){var i=Gd()(o),a=r.map((function(t){return i[t]}));return t.tickFormat(i[e],n,a)}:n:function(t){return t}}function iy(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 ay(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.tickCount,o=ry(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 iy(i,r);if(e.ticks&&G()(e.ticks)){var a=r||5,u=e.ticks(a),c=Array.isArray(u)&&u.length?u:e.domain(),l=iy(c,r);if(n){var s=R()(l,0)?$p()(l,0):l;return s.length?s:l}return l}return e.domain()}function uy(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=ry(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=Ja(t,e),s=Qa(t,e),f=ny(t),p=c.map((function(t){return Number(t)})),h=f?1:Tt(p),d=f?c.length:Dt(p),y=Ya(void 0!==l?l:h,void 0!==s?s:d),v=n&&"x"===e&&360===Math.abs(o-a)?tu(y,p):y;return ey(t)&&!n&&v.reverse(),v}}function cy(t,e){var n=Yd(t);if(!e||e===n)return qa(uy)(t,n)}function ly(t,e){if(t.axisValue){var n="x"===e?"y":"x",r=xs()(t.scale)&&G()(t.scale[n])?t.scale[n]:void 0;if(r){var o="x"===e?"y":"x",i=xs()(t.stringMap)&&t.stringMap[o];return r(i&&"string"==typeof t.axisValue?i[t.axisValue]:t.axisValue)}}}function sy(t,e){if(!xs()(t.theme))return gt(t,e,"axis");var n="axis";if(t.dependentAxis&&t.theme.dependentAxis?n="dependentAxis":!t.dependentAxis&&t.theme.independentAxis&&(n="independentAxis"),"axis"===n)return gt(t,e,"axis");var r=nt()({},t.theme[n],t.theme.axis),o=Object.assign({},t.theme,{axis:r});return gt(Object.assign({},t,{theme:o}),e,"axis")}var fy=["desc","id","tabIndex","origin"];function py(){return py=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},py.apply(this,arguments)}function hy(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 dy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yy=(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,fy)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hy(Object(n),!0).forEach((function(e){dy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=st(o,t))||void 0===n?void 0:n.toString(),tabIndex:st(i,t)},a);return r?A().createElement("line",py({},u,{ref:e}),A().createElement("desc",null,r)):A().createElement("line",py({},u,{ref:e}))}));function vy(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 my(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vy(Object(n),!0).forEach((function(e){gy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var by={lineComponent:A().createElement(yy,null),role:"presentation",shapeRendering:"auto"},xy=function(t){var e=function(t){var e=st(t.ariaLabel,t),n=st(t.desc,t),r=st(t.id,t),o=ft(Object.assign({stroke:"black"},t.style),t),i=st(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(my(my({},by),t));return A().cloneElement(e.lineComponent,my(my({},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 Oy(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 wy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _y={top:-1,left:-1,right:1,bottom:1},jy=function(t){return null!=t},Py=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.style||{},r={height:"100%",width:"100%"};return{parent:nt()(n.parent,e.parent,r),axis:nt()({},n.axis,e.axis),axisLabel:nt()({},n.axisLabel,e.axisLabel),grid:nt()({},n.grid,e.grid),ticks:nt()({},n.ticks,e.ticks),tickLabels:nt()({},n.tickLabels,e.tickLabels)}},Ay=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}},My=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}},Ey=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}},Cy=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]},Sy=function(t,e){return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():t===e},ky=function(t,e,n){var r=e.orientation,o=ly(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=_y[e];return{x:n?u*a:0,x2:n?u*i:0,y:n?0:u*a,y2:n?0:u*i}},Ty=function(t,e,n){return{x:n?e.x:t+e.x,y:n?t+e.y:e.y}},Ry=function(t,e){var n=e.orientation,r=e.padding,o=e.isVertical,i=-_y[n];return{x:o?i*(t.width-(r.left+r.right)):0,y:o?0:i*(t.height-(r.top+r.bottom))}},Ly=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}},Iy=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=Sy(r.x,a.x[0])||Sy(r.x,a.x[1])?0:n.x(r.x),g=Sy(r.y,a.y[0])||Sy(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:jy(t.offsetX)?t.offsetX:x,y:jy(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=Sy(r.x,a.x[0])||Sy(r.x,a.x[1])?0:n.x(r.x),g=Sy(r.y,a.y[0])||Sy(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:jy(t.offsetX)?t.offsetX:b,y:jy(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:wy({},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 ft(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 Oy(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 Oy(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)?Oy(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,w=1.2*b;return{x:null!=m?m:s?O:w,y:null!=g?g:s?w:O}}(t,e),{globalTransform:ky(t,e,n),gridOffset:Ly(e,n),gridEdge:Ry(t,e)}},Ny=function(t,e){var n=sy(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]=nt()({},i[e],r[e]),t}),{}):i||r}(t),n=Py(t,e),r=at(t),o=function(t,e){var n=e.axisLabel||{};if(void 0!==n.padding&&null!==n.padding)return n.padding;var r=ey(t),o=n.fontSize||14;return t.label?o*(r?2.3:1.6):0}(t,n),i=ny(t)?t.tickValues:void 0,a=Yd(t),u=cy(t),c=function(t){var e=Yd(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=na(t,e),o=t.domain&&t.domain[e]||cy(t)||r.domain();return r.range(vt(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=ay(t,c,h),y=oy(t,c),v={x:vt(t,"x"),y:vt(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?na(t,"x").domain(t.domain.x).range(t.horizontal?v.y:v.x):f,y:t.domain&&t.domain.y?na(t,"y").domain(t.domain.y).range(t.horizontal?v.x:v.y):p},b=m.x&&m.y?Jd(m):void 0,x=b?{x:ty(b.x,m.x),y:ty(b.y,m.y)}:void 0,O=x?{x:Cy("x",x.y,t.horizontal),y:Cy("y",x.x,t.horizontal)}:void 0,w=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),_=ey(Object.assign({},t,{orientation:w})),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:_,labelPadding:o,orientation:w,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,w=Iy(n,r),_=w.globalTransform,j=w.gridOffset,P=w.gridEdge,A={scale:wy({},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,_),E=function(t,e,n){var r=e.style,o=e.orientation,i=e.padding,a=e.labelPadding,u=e.isVertical,c=_y[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,_),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:wy({},d,vt(n,d)),scale:n.scale&&n.scale[d]?wy({},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:ft(t.ticks,e),labelStyle:ft(t.tickLabels,e),gridStyle:ft(t.grid,e)}}(i,Object.assign({},A,{tick:y,tickValue:e,index:n,text:v})),g={position:Dy(m,a,u),transform:Ty(null===(r=c[o])||void 0===r?void 0:r.call(c,e),_,u)},b={edge:P,transform:{x:u?-j.x+_.x:(null===(p=c[o])||void 0===p?void 0:p.call(c,e))+_.x,y:u?(null===(d=c[o])||void 0===d?void 0:d.call(c,e))+_.y:j.y+_.y}};return t[n]={axis:Object.assign({dimension:o},A,M),axisLabel:Object.assign({},A,E),ticks:Object.assign({},A,Ay(g,m.tickStyle,e)),tickLabels:Object.assign({},A,My(g,m.labelStyle,f,e,v)),grid:Object.assign({},A,S,Ey(b,m.gridStyle,e))},t}),C)};function zy(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 By(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wy(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 Uy(t,e){return Uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Uy(t,e)}function Vy(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 Fy(t){return Fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fy(t)}var qy={width:450,height:300,padding:50},Hy=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&&Uy(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=Fy(r);if(o){var n=Fy(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Vy(this,t)});function a(){return By(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||!z()(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=ey(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=lp(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=Gy.animationWhitelist,e=sy(this.props,qy),n=cs(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 zy(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 zy(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)?zy(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&&Wy(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Hy.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"],Hy.displayName="VictoryAxis",Hy.role="axis",Hy.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},Hy.defaultProps={axisComponent:A().createElement(xy,null),axisLabelComponent:A().createElement(Pp,null),tickLabelComponent:A().createElement(Pp,null),tickComponent:A().createElement(xy,null),gridComponent:A().createElement(xy,null),standalone:!0,theme:Fp.grayscale,containerComponent:A().createElement(of,null),groupComponent:A().createElement("g",{role:"presentation"}),fixLabelOverlap:!1},Hy.getDomain=cy,Hy.getAxis=Yd,Hy.getStyles=function(t){return Py(t)},Hy.getBaseProps=function(t){return Ny(t,qy)},Hy.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var Gy=Rd(Hy,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),Ky=function(t,e){var n=function(n){var r="log"===ua(t.scale[n])?1/Number.MAX_SAFE_INTEGER:0,o=Tt(t.domain[n]),i=Dt(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 it(t,Object.assign({},e,{_y0:r,_x0:o}))},$y=function(t,e){var n=e.scale,r=e.data,o=e.style;if(t)return st(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)},Yy=function(t,e){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?function(t){return q()(t)}(t)?function(t,e){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(r,o){E()(t[r])?E()(t[o])||(n[r]=st(t[o],e)):n[r]=st(t[r],e)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),n}(t,e):(n.topLeft=st(t,e),n.topRight=st(t,e),n):n},Xy=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 ft(Object.assign(r,t),e)},Zy=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 Zy(this.x+t.x,this.y+t.y)},subtract:function(t){return Zy(this.x-t.x,this.y-t.y)},scalarMult:function(t){return Zy(this.x*t,this.y*t)},scalarDivide:function(t){if(0===t)throw new Error("Division by 0 error");return Zy(this.x/t,this.y/t)},equals:function(t){return this.x===t.x&&this.y===t.y}}},Qy=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=[Zy(h-u*(p-s)/i,d+u*(f-l)/i),Zy(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 Jy(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 tv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jy(Object(n),!0).forEach((function(e){ev(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ev(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nv(t){return function(t){if(Array.isArray(t))return rv(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 rv(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)?rv(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 rv(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 ov=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}},iv=function(t,e){var n=t.data,r=t.scale,o=void 0===n[e]._x1?"_x":"_x1";return r.x(n[e][o])},av=function(t){return-1*t+Math.PI/2},uv=function(t,e){var n=t.getPath;if("function"==typeof n)return n(tv(tv({},t),ov(t,e)))},cv=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")},lv=function(t,e,n){var r=ov(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=Zy(l+c*n["top".concat(t)],a+e*n["top".concat(t)]),y=Qy(d,n["top".concat(t)]),v=Zy(l+c*n["bottom".concat(t)],i-e*n["bottom".concat(t)]),m=Qy(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 w=[s,f,p,h];return u?w:w.reverse()};return u("Left").concat(u("Right"))}(r,o,n);return cv(a,n,i)},sv=function(t,e,n){var r=ov(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=Zy(i+n["".concat(t,"Left")],l-c*n["".concat(t,"Left")]),y=Qy(d,n["".concat(t,"Left")]),v=Zy(a-n["".concat(t,"Right")],l-c*n["".concat(t,"Right")]),m=Qy(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(nv(c),[l[3],l[2]])}(r,o,i);return cv(a,i,"0 0 1")},fv=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,nv(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=iv(t,e),a=Math.abs(r.x.range()[1]-r.x.range()[0]),u=0===e?iv(t,n.length-1)-2*Math.PI:iv(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=iv(t,e),a=Math.abs(r.x.range()[1]-r.x.range()[0]),u=r.x.range()[1]===2*Math.PI?iv(t,0)+2*Math.PI:r.x.range()[1],c=e===n.length-1?iv(t,0)+2*Math.PI:iv(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 Zu().innerRadius(l).outerRadius(s).startAngle(av(n)).endAngle(av(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(nv(l.slice(0,b)),nv(h.slice(m))),o=[].concat(nv(f.slice(0,b)),nv(d.slice(m)))}var w=t.indexOf("L"),_=t.slice(0,w),j=o.slice(0,w);return _.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(nv(h.slice(0,v+2)),nv(s.slice(g))),o=[].concat(nv(d.slice(0,v+2)),nv(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(nv(v),nv(m)).reduce((function(t,e){return"".concat(t).concat(e.command," ").concat(e.coords.join())}),"");return"".concat(g," z")},pv=function(t,e,n){return t.getPath?uv(t,e):t.horizontal?sv(t,e,n):lv(t,e,n)},hv=function(t,e){return fv(t,e)};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={pathComponent:A().createElement(es,null),role:"presentation",shapeRendering:"auto"},gv=(0,P.forwardRef)((function(t,e){var n=function(t){var e=Xy(t.style,t),n=$y(t.barWidth,Object.assign({},t,{style:e})),r=Yy(t.cornerRadius,Object.assign({},t,{style:e,barWidth:n})),o=st(t.ariaLabel,t),i=st(t.desc,t),a=st(t.id,t),u=st(t.tabIndex,t);return Object.assign({},t,{ariaLabel:o,style:e,barWidth:n,cornerRadius:r,desc:i,id:a,tabIndex:u})}(yv(yv({},mv),t)),r=n.polar,o=n.origin,i=n.style,a=n.barWidth,u=n.cornerRadius,c=r?hv(n,u):pv(n,a,u),l=r&&o?"translate(".concat(o.x,", ").concat(o.y,")"):void 0;return n.pathComponent?A().cloneElement(n.pathComponent,yv(yv({},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 bv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xv(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 Ov(t,e){return Ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ov(t,e)}function wv(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 _v(t){return _v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_v(t)}var jv={width:450,height:300,padding:50},Pv=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&&Ov(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=_v(r);if(o){var n=_v(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return wv(this,t)});function a(){return bv(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=Av.animationWhitelist,e=Av.role,n=gt(this.props,jv,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ls(o,n)}}])&&xv(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Pv.animationWhitelist=["data","domain","height","padding","style","width"],Pv.displayName="VictoryBar",Pv.role="bar",Pv.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}}}},Pv.defaultProps={containerComponent:A().createElement(of,null),data:[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}],dataComponent:A().createElement(gv,null),groupComponent:A().createElement("g",{role:"presentation"}),labelComponent:A().createElement(Pp,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Fp.grayscale},Pv.getDomain=Za,Pv.getData=Sa,Pv.getBaseProps=function(t){return function(t,e){var n=gt(t,e,"bar"),r=Object.assign({},n,function(t){var e=t.polar,n=ct(t,"bar"),r=t.disableInlineStyles?{}:lt(t.style,n),o=t.range||{x:vt(t,"x"),y:vt(t,"y")},i={x:Za(t,"x"),y:Za(t,"y")},a={x:na(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:na(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},u=e?t.origin||yt(t):void 0,c=Sa(t);return{style:r,data:c=ja(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,w=r.labels,_=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:_,theme:x,polar:y,origin:h,padding:d,style:b.parent}};return u.reduce((function(t,e,n){var l=E()(e.eventKey)?n:e.eventKey,d=Ky(r,e),g=d.x,x=d.y,_=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:_,x0:A};return t[l]={data:M},(null!=ru(r,e,n)||w&&(s||m))&&(t[l].labels=cu(r,n)),t}),A)}(t,jv)},Pv.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var Av=Rd(Pv);function Mv(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 Ev(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mv(Object(n),!0).forEach((function(e){Cv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Cv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sv={rectComponent:A().createElement(vf,null),role:"presentation",shapeRendering:"auto"},kv=function(t){var e=function(t){var e=st(t.ariaLabel,t),n=st(t.desc,t),r=st(t.id,t),o=ft(Object.assign({fill:"none"},t.style),t),i=st(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(Ev(Ev({},Sv),t));return A().cloneElement(e.rectComponent,Ev(Ev({},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 Tv(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){Rv(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 Rv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Lv={groupComponent:A().createElement("g",null),lineComponent:A().createElement(yy,null),role:"presentation",shapeRendering:"auto"},Iv=function(t){var e=function(t){var e=st(t.ariaLabel,t),n=st(t.desc,t),r=st(t.id,t),o=ft(t.style,t),i=st(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(Tv(Tv({},Lv),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=Tv(Tv({},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))])},Nv=r(5168),zv=r.n(Nv),Bv=r(9056),Wv=r.n(Bv),Uv=["max","min","median","q1","q3"],Vv=function(t){return zv()(t)?null:t},Fv=function(t){var e=t.map((function(t){return t._y})),n={_q1:Vv(nr(e,.25)),_q3:Vv(nr(e,.75)),_min:Vv(Qn(e)),_median:Vv(nr(e,.5)),_max:Vv(Zn(e))};return Object.assign({},t[0],n,{_y:t[0]._y})},qv=function(t){var e=Uv.concat("x","y"),n=Ma(t.data,t,e);return n.length?function(t){var e=function(t){if(t.every((function(t){return Uv.every((function(e){return void 0!==t["_".concat(e)]}))}))){var e=t.map((function(t){return t._x}));if(!X()(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=W()(e,o);return Fv(n)}));var i=Wv()(t,"_x");return Q()(i).map((function(t){var e=i[t],n=W()(e,o);return Fv(n)}))}(n):[]},Hv=function(t,e){var n=Ja(t,e),r=Qa(t,e),o=qv(t);return o.length<1?void 0!==n&&void 0!==r?Ya(n,r):void 0:"y"===e?function(t,e,n){var r=Ja(e,n),o=Qa(e,n);return Ya(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=Ja(e,n),o=Qa(e,n);return Ya(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)},Gv=function(t,e){return qa(Hv)(t,e)},Kv=function(t,e,n){var r=t["".concat(n,"LabelComponent")]||t.labelComponent,o=e["".concat(n,"Labels")]||e.labels;if(!ut(r))return o;var i=t.theme&&t.theme.tooltip||{};return nt()({},i.style,o)},$v=function(t,e){var n=gt(t,e,"boxplot"),r=Object.assign({},n,function(t){var e=t.theme,n=t.horizontal,r=qv(t),o={x:vt(t,"x"),y:vt(t,"y")},i={x:Gv(t,"x"),y:Gv(t,"y")},a={x:na(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:na(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=nt()({},n.labels,Kv(t,e)),i=nt()({},n.boxes,e.boxes),a=nt()({},n.whiskers,e.whiskers);return{boxes:i,labels:o,parent:nt()({},n.parent,e.parent,r),max:nt()({},n.max,e.max,a),maxLabels:nt()({},n.maxLabels,Kv(t,e,"max"),o),median:nt()({},n.median,e.median,a),medianLabels:nt()({},n.medianLabels,Kv(t,e,"median"),o),min:nt()({},n.min,e.min,a),minLabels:nt()({},n.minLabels,Kv(t,e,"min"),o),q1:nt()({},n.q1,e.q1,i),q1Labels:nt()({},n.q1Labels,Kv(t,e,"q1"),o),q3:nt()({},n.q3,e.q3,i),q3Labels:nt()({},n.q3Labels,Kv(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=E()(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=Tt(e.x),l=Dt(e.x),s=Tt(e.y),f=Dt(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=Uv.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,Uv.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(!ut(t["".concat(n,"LabelComponent")]))return m;var g=s&&s.tooltip||{};return nt()({},m,rt(g,["style"]))}(Object.assign({},r,a),n,e)}})),t}),g)};function Yv(t){return function(t){if(Array.isArray(t))return Xv(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 Xv(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)?Xv(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 Xv(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 Zv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qv(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 Jv(t,e){return Jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jv(t,e)}function tm(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 em(t){return em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},em(t)}var nm={width:450,height:300,padding:{top:20,right:20,bottom:20,left:20}},rm=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&&Jv(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=em(r);if(o){var n=em(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return tm(this,t)});function a(){return Zv(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=Wa()(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}),[])}))),o=Wa()(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)}))),i=[].concat(Yv(r),Yv(o));return this.renderContainer(t.groupComponent,i)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"shouldRenderDatum",value:function(t){var e=!E()(t._x),n=!E()(t._y);return!(E()(t._min)||E()(t._max)||E()(t._median)||E()(t._q1)||E()(t._q3))&&(this.props.horizontal?n:e)}},{key:"render",value:function(){var t=om.animationWhitelist,e=om.role,n=gt(this.props,nm,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderBoxPlot(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ls(o,n)}}])&&Qv(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);rm.animationWhitelist=["data","domain","height","padding","style","width"],rm.displayName="VictoryBoxPlot",rm.role="boxplot",rm.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}}},rm.defaultProps={containerComponent:A().createElement(of,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(kv,null),groupComponent:A().createElement("g",{role:"presentation"}),maxComponent:A().createElement(Iv,null),maxLabelComponent:A().createElement(Pp,null),medianComponent:A().createElement(xy,null),medianLabelComponent:A().createElement(Pp,null),minComponent:A().createElement(Iv,null),minLabelComponent:A().createElement(Pp,null),q1Component:A().createElement(kv,null),q1LabelComponent:A().createElement(Pp,null),q3Component:A().createElement(kv,null),q3LabelComponent:A().createElement(Pp,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Fp.grayscale},rm.getDomain=Gv,rm.getData=qv,rm.getBaseProps=function(t){return $v(t,nm)},rm.expectedComponents=["maxComponent","maxLabelComponent","medianComponent","medianLabelComponent","minComponent","minLabelComponent","q1Component","q1LabelComponent","q3Component","q3LabelComponent","groupComponent","containerComponent"];var om=Rd(rm,{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 im(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 am(t){return!(!t||void 0===t.identifier)}function um(t){if(!am(t.nativeEvent)){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function cm(t,e){if(am(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||um(n));return{x:im(n.clientX,r,"x"),y:im(n.clientY,r,"y")}}function lm(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 sm(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 fm(t){var e=t.x1,n=t.x2,r=t.y1,o=t.y2,i=t.scale,a=sm(t,i,e,r),u=sm(t,i,n,o),c=function(t,e){return[Tt([t,e]),Dt([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var pm=r(4943),hm=r.n(pm),dm=r(8163),ym=r.n(dm);function vm(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 mm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vm(Object(n),!0).forEach((function(e){gm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bm(t){return function(t){if(Array.isArray(t))return xm(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 xm(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)?xm(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 xm(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 Om={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=hm()(e,Number),o=r.x1,i=r.x2,a=r.y1,u=r.y2,c=hm()(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=nt()({},e,t.domain),i=nt()({},n,o),a=lm(t,o),u=lm(t,i);return{x1:"y"!==r?Math.min.apply(Math,bm(u.x)):Math.min.apply(Math,bm(a.x)),x2:"y"!==r?Math.max.apply(Math,bm(u.x)):Math.max.apply(Math,bm(a.x)),y1:"x"!==r?Math.min.apply(Math,bm(u.y)):Math.min.apply(Math,bm(a.y)),y2:"x"!==r?Math.max.apply(Math,bm(u.y)):Math.max.apply(Math,bm(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||um(n),s=this.panBox(mm(mm(mm({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),cm(n,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return fm(mm(mm({},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=nt()({},t.brushDomain,n),u=nt()({},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=hm()(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=hm()(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||um(t),h=cm(t,p),d=h.x,y=h.y;if(!this.withinBounds({x:d,y},f,r))return{};var v=nt()({},e.brushDomain,i),m=vh()(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 mm({isSelecting:!0,domainBox:g,fullDomainBox:f,cachedBrushDomain:v,currentDomain:m,parentSVG:p},n.getResizeMutation(g,b))}}]:this.withinBounds({x:d,y},g)&&!vh()(i,m)?[{target:"parent",mutation:function(){return mm({isPanning:u,startX:d,startY:y,domainBox:g,fullDomainBox:f,currentDomain:m,cachedBrushDomain:v,parentSVG:p},g)}}]:c?[{target:"parent",mutation:function(){return mm({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=cm(t,f),d=h.x,y=h.y;if(!u&&!c||s>0&&!this.hasMoved(mm(mm({},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=fm(mm(mm({},b),{},{scale:n,horizontal:l})),O=mm({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 G()(a)&&a(x,nt()({},O,e)),[{target:"parent",mutation:function(){return O}}]}if(u&&o){var w=this.constrainPoint({x:"y"!==p?d:e.x2,y:"x"!==p?y:e.y2},i),_=w.x,j=w.y,P=fm({x2:_,y2:j,x1:e.x1,y1:e.y1,scale:n,horizontal:l}),A={x2:_,y2:j,currentDomain:P,parentSVG:f};return G()(a)&&a(P,nt()({},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)&&G()(l)&&l(f,nt()({},y,e));else{var v=e.cachedCurrentDomain||f,m=this.getDefaultBrushArea(e,v,t);y.currentDomain=m,G()(c)&&c(m,nt()({},y,e)),G()(l)&&l(m,nt()({},y,e)),G()(s)&&s(m,nt()({},y,e))}return[{target:"parent",mutation:function(){return y}}]}},wm=mm(mm({},Om),{},{onMouseDown:Om.onMouseDown.bind(Om),onGlobalMouseUp:Om.onGlobalMouseUp.bind(Om),onGlobalMouseMove:ym()(Om.onGlobalMouseMove.bind(Om),16,{leading:!0,trailing:!1})});function _m(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 jm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_m(Object(n),!0).forEach((function(e){Pm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Am(t){return function(t){if(Array.isArray(t))return Mm(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 Mm(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)?Mm(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 Mm(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 Em(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cm(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 Sm(t,e){return Sm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Sm(t,e)}function km(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 Dm(t){return Dm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dm(t)}var Tm=function(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&&Sm(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=Dm(r);if(o){var n=Dm(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return km(this,t)});function a(){return Em(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:nt()({},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=wm.getDomainBox(t,e),u=a.x1,c=a.x2,l=a.y1,s=a.y2,f=wm.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=nt()({},g,r),x=this.getCursorPointers(t),O={style:b,width:v,height:n,cursor:x.yProps},w={style:b,width:n,height:m,cursor:x.xProps},_={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},w),right:y&&Object.assign({y:y.y1,x:y.x1},w)},j=["top","bottom","left","right"].reduce((function(t,e){return _[e]?t.concat(A().cloneElement(o,Object.assign({key:"".concat(i,"-handle-").concat(e)},_[e]))):t}),[]);return j.length?j:null}},{key:"getRect",value:function(t){var e=t.currentDomain,n=t.cachedBrushDomain,r=nt()({},t.brushDomain,t.domain),o=vh()(r,n)?nt()({},e,r):r,i=lm(t,o),a=this.getSelectBox(t,i);return a?[a,this.getHandles(t,o)]:[]}},{key:"getChildren",value:function(t){return[].concat(Am(A().Children.toArray(t.children)),Am(this.getRect(t)))}}],n&&Cm(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryBrushContainer",e.defaultProps=jm(jm({},of.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:A().createElement(vf,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:A().createElement(vf,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?{}:wm.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:wm.onMouseDown(e,n)},onGlobalMouseMove:function(e,n){return t.disable||!n.isPanning&&!n.isSelecting?{}:wm.onGlobalMouseMove(e,n)},onGlobalTouchMove:function(e,n){return t.disable||!n.isPanning&&!n.isSelecting?{}:wm.onGlobalMouseMove(e,n)},onGlobalMouseUp:function(e,n){return t.disable?{}:wm.onGlobalMouseUp(e,n)},onGlobalTouchEnd:function(e,n){return t.disable?{}:wm.onGlobalMouseUp(e,n)},onGlobalTouchCancel:function(e,n){return t.disable?{}:wm.onGlobalMouseUp(e,n)}}}]},e},Rm=Tm(of);function Lm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Im(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 Nm(t,e){return Nm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nm(t,e)}function zm(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 Bm(t){return Bm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bm(t)}function Wm(t){return function(t){if(Array.isArray(t))return Um(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 Um(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)?Um(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 Um(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 Vm=1/Number.MAX_SAFE_INTEGER,Fm=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=na(t,o),a=vt(t,o),u=Xa(t,o)||[0,1];return i.range(a).domain(u),i},qm=function(t){var e=t.horizontal,n=t.dimension,r=void 0===n?"x":n;return e?"x"===r?"y":"x":r},Hm=function(t,e){var n=Fm(t);return[n(Math.min.apply(Math,Wm(e))),n(Math.max.apply(Math,Wm(e)))]},Gm=function(t,e){var n=Fm(t);return[n.invert(Math.min.apply(Math,Wm(e))),n.invert(Math.max.apply(Math,Wm(e)))]},Km=function(t){return Fm(t).range()},$m=function(t){return Fm(t).domain()},Ym=function(t,e){return t>=Tt(e)&&t<=Dt(e)},Xm=function(t,e){if(t){var n=Tt(t),r=Dt(t),o=Tt(e),i=Dt(e),a=n<o?o:Number(i)-Vm,u=r>i?i:Number(o)+Vm;return[Ym(n,e)?n:a,Ym(r,e)?r:u]}return e},Zm=function(t,e,n){var r=t.handleWidth/2,o=qm(t),i=["min","max"].reduce((function(t,i){return t[i]=Ym(e,function(t){var e={min:"x"===o?Math.min.apply(Math,Wm(n)):Math.max.apply(Math,Wm(n)),max:"x"===o?Math.max.apply(Math,Wm(n)):Math.min.apply(Math,Wm(n))};return[e[t]-r,e[t]+r]}(i))?i:void 0,t}),{});return i.min&&i.max?"both":i.min||i.max},Qm={stroke:"none",fill:"black",opacity:function(t){return t.active?.2:.1}},Jm={pointerEvents:"none",stroke:"none",fill:"black",opacity:function(t){return t.active?.4:.3}},tg={pointerEvents:"none",stroke:"none",fill:"none"},eg=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&&Nm(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=Bm(r);if(o){var n=Bm(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return zm(this,t)});function a(){return Lm(this,a),i.apply(this,arguments)}return e=a,n=[{key:"getRectDimensions",value:function(t,e,n){var r=t.brushDomain,o=qm(t),i=Hm(t,n||Xm(r,$m(t))),a="x"===o?{y1:t.y1,y2:t.y2,x1:Math.min.apply(Math,Wm(i)),x2:Math.max.apply(Math,Wm(i))}:{x1:t.x1,x2:t.x2,y1:Math.min.apply(Math,Wm(i)),y2:Math.max.apply(Math,Wm(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=qm(t),c=t.brushWidth||t.width,l=Xm(a,$m(t)),s=Hm(t,l),f=Math.min(n,r)-c/2,p=Math.min(o,i)-c/2,h={min:"x"===u?Math.min.apply(Math,Wm(s))-e/2:f,max:"x"===u?Math.max.apply(Math,Wm(s))-e/2:f},d={min:"y"===u?Math.max.apply(Math,Wm(s))-e/2:p,max:"y"===u?Math.min.apply(Math,Wm(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=qm(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({},tg,n),f=Object.assign({handleValue:Tt(o)},a),p=Object.assign({handleValue:Dt(o)},a),h=Object.assign({key:"".concat(r,"-min"),style:ft(s,{datum:f,active:c.minHandle})},l.min),d=Object.assign({key:"".concat(r,"-max"),style:ft(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=ft(Object.assign({},Jm,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,$m(t)),s=ft(Object.assign({cursor:c},Qm,n),{datum:a,active:o.brushArea}),f=Object.assign({style:s},l);return A().cloneElement(e,f)}},{key:"renderLine",value:function(t){var e=tt()(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&&Im(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);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 rg(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){og(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 og(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}eg.defaultProps={allowDrag:!0,allowDraw:!0,allowResize:!0,brushAreaComponent:A().createElement(kv,null),brushComponent:A().createElement(kv,null),groupComponent:A().createElement("g",null),handleComponent:A().createElement(kv,null),handleWidth:10,lineComponent:A().createElement(xy,null),width:10},eg.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=qm(e),i=e.parentSVG||um(t),a=cm(t,i)[o],u=$m(e),c=Xm(r,u),l=Hm(e,c),s=n&&Zm(e,a,l),f={brushArea:!e.brushDomain,brush:Ym(a,l)&&!vh()(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=qm(e);if(!n&&!r)return[];var c=$m(e),l=Xm(a,c),s=e.parentSVG||um(t),f=cm(t,s)[u],p=Hm(e,l),h=n&&Zm(e,f,p);return h?[{mutation:function(){return{parentSVG:s,isSelecting:!0,activeHandle:h,brushDomain:l,startPosition:f,activeBrushes:i}}}]:Ym(f,p)&&!vh()(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=qm(e);(n||r)&&(t.preventDefault(),t.stopPropagation());var l=e.parentSVG||um(t),s=cm(t,l)[c],f=$m(e),p=Xm(u,f),h=Hm(e,p),d=Zm(e,s,h),y={brushArea:!e.brushDomain,brush:Ym(s,h)&&!vh()(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=Km(e),m=function(t,e){var n=t.brushDomain,r=t.startPosition,o=Hm(t,n),i=Km(t),a=Math.abs(o[1]-o[0]),u=Math.min.apply(Math,Wm(i)),c=Math.max.apply(Math,Wm(i)),l=r?r-e:0,s=Math.min.apply(Math,Wm(o))-l,f=Math.max.apply(Math,Wm(o))-l;return[s>c-a?c-a:Math.max(s,u),f<u+a?u+a:Math.min(f,c)]}(e,s),g=Gm(e,m),b={startPosition:Math.max.apply(Math,Wm(m))>=Math.max.apply(Math,Wm(v))||Math.min.apply(Math,Wm(m))<=Math.min.apply(Math,Wm(v))?e.startPosition:s,isPanning:!0,brushDomain:g,activeBrushes:{brush:!0},parentSVG:l};return G()(a)&&a(g,nt()({},b,e)),[{mutation:function(){return b}}]}if(o&&r){var x=u||[0,Vm],O=Hm(e,x),w="min"===e.activeHandle?"max":"min",_=e.activeHandle&&"both"===Zm(e,s,O)?w:e.activeHandle;if(_){var j="x"===c?Math.max.apply(Math,Wm(O)):Math.min.apply(Math,Wm(O)),P="x"===c?Math.min.apply(Math,Wm(O)):Math.max.apply(Math,Wm(O));x=Gm(e,["max"===_?P:s,"min"===_?j:s])}else x=Gm(e,[e.startPosition,s]);var A={brushDomain:x,startPosition:e.startPosition,isSelecting:r,activeHandle:_,parentSVG:l,activeBrushes:{brush:!0,minHandle:"min"===d,maxHandle:"max"===d}};return G()(a)&&a(x,nt()({},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&&G()(n)&&n(r,nt()({},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 ig={groupComponent:A().createElement("g",null),lineComponent:A().createElement(yy,null),rectComponent:A().createElement(vf,null),role:"presentation",shapeRendering:"auto"},ag=function(t){var e=function(t){var e=ft(Object.assign({stroke:"black"},t.style),t),n=function(t,e){var n=e.style;return t?G()(t)?st(t,e):t:n.width?n.width:t}(t.candleWidth,Object.assign({},t,{style:e})),r=st(t.ariaLabel,t),o=st(t.desc,t),i=st(t.id,t),a=st(t.tabIndex,t);return Object.assign({},t,{ariaLabel:r,style:e,candleWidth:n,desc:o,id:i,tabIndex:a})}(rg(rg({},ig),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=nt()({strokeWidth:f},h),m=rg(rg({},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:rt(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:rt(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:rt(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)])},ug=["close","open","high","low"],cg=function(t){return Ma(t.data,t,["x","high","low","close","open"])},lg=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)},sg=function(t,e){var n=Ja(t,e),r=Qa(t,e),o=cg(t);return o.length<1?void 0!==n&&void 0!==r?Ya(n,r):void 0:Ya(void 0!==n?n:lg(o,e,"min"),void 0!==r?r:lg(o,e,"max"))},fg=function(t,e){return qa(sg)(t,e)},pg=function(t,e,n){var r=t["".concat(n,"LabelComponent")],o=e["".concat(n,"Labels")]||e.labels;if(!ut(r))return o;var i=t.theme&&t.theme.tooltip||{};return nt()({},i.style,o)},hg=function(t){return"none"===t||"transparent"===t},dg=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 q()(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,w=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}),_={style:O,y:w.yValue,x:w.xValue,dx:w.dx,dy:w.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(!ut(m))return _;var j=v&&v.tooltip||{};return nt()({},_,rt(j,["style"]))},yg=function(t,e){var n=gt(t,e,"candlestick"),r=function(t){var e=t.polar,n=ct(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 nt()({parent:{height:o,width:r}},n);var i=n.parent||{},a=n.labels||{},u=n.data||{},c=nt()({},e.labels,a);return{parent:nt()({},e.parent,i,{width:r,height:o}),labels:c,data:nt()({},e.data,u),openLabels:nt()({},e.openLabels,pg(t,n,"open"),c),closeLabels:nt()({},e.closeLabels,pg(t,n,"close"),c),lowLabels:nt()({},e.lowLabels,pg(t,n,"low"),c),highLabels:nt()({},e.highLabels,pg(t,n,"high"),c)}}(t,t.style,n),o=cg(t),i={x:vt(t,"x"),y:vt(t,"y")},a={x:fg(t,"x"),y:fg(t,"y")},u={x:na(t,"x").domain(a.x).range(t.horizontal?i.y:i.x),y:na(t,"y").domain(a.y).range(t.horizontal?i.x:i.y)},c=e?t.origin||yt(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,w=n.events,_=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=E()(e.eventKey)?r:e.eventKey,h=a.x(void 0!==e._x1?e._x1:e._x),d=function(t,e){var n=Tt(e.x),r=Dt(e.x),o=Tt(e.y),i=Dt(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,C=a.y(M),S=a.y(A),k=a.y(g),D=a.y(y),T=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=hg(i)?o:i||"black";return Object.assign({},e,{stroke:a,fill:o})}(d,i.data,n),R={x:h,high:C,low:D,candleWidth:v,candleRatio:m,scale:a,data:o,datum:d,groupComponent:s,index:r,style:T,width:f,polar:b,origin:c,wickStrokeWidth:x,open:k,close:S,horizontal:j,labelOrientation:l,disableInlineStyles:P};R.candleWidth=function(t,e){var n=t.data,r=t.candleWidth,o=t.scale;if(r)return G()(r)?st(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)}(R);var L=nt()(Object.assign({},R),n);if(t[p]={data:R},O){var I=ru(n,d,r);(null!=I||O&&(w||_))&&(t[p].labels=dg(L,I,i))}return ug.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}(L,e),o=n.labels||n["".concat(e,"Labels")];if(null!=r||o&&(w||_)){var a="".concat(e,"Labels");t[p][a]=dg(L,r,i,e)}})),t}),A)};function vg(t){return function(t){if(Array.isArray(t))return mg(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 mg(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)?mg(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 mg(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 gg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bg(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 xg(t,e){return xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xg(t,e)}function Og(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 wg(t){return wg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wg(t)}var _g={width:450,height:300,padding:50,candleColors:{positive:"#ffffff",negative:"#252525"}},jg=[{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}],Pg=function(t){return!E()(t._x)&&!E()(t._y)},Ag=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&&xg(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=wg(r);if(o){var n=wg(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Og(this,t)});function a(){var t;gg(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!(E()(t._x)||E()(t._high)||E()(t._low)||E()(t._close)||E()(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]:Pg,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,vg(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,vg(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,vg(s))}return this.renderContainer(i,u)}},{key:"render",value:function(){var t=Mg.animationWhitelist,e=Mg.role,n=gt(this.props,_g,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 ls(o,n)}}],n&&bg(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Ag.animationWhitelist=["data","domain","height","padding","samples","size","style","width"],Ag.displayName="VictoryCandlestick",Ag.role="candlestick",Ag.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}}},Ag.defaultProps={containerComponent:A().createElement(of,null),data:jg,dataComponent:A().createElement(ag,null),groupComponent:A().createElement("g",{role:"presentation"}),labelComponent:A().createElement(Pp,null),highLabelComponent:A().createElement(Pp,null),lowLabelComponent:A().createElement(Pp,null),openLabelComponent:A().createElement(Pp,null),closeLabelComponent:A().createElement(Pp,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Fp.grayscale},Ag.getDomain=fg,Ag.getData=cg,Ag.getBaseProps=function(t){return yg(t,_g)},Ag.expectedComponents=["openLabelComponent","closeLabelComponent","highLabelComponent","lowLabelComponent","dataComponent","labelComponent","groupComponent","containerComponent"];var Mg=Rd(Ag,{components:[{name:"lowLabels"},{name:"highLabels"},{name:"openLabels"},{name:"closeLabels"},{name:"labels"},{name:"data"},{name:"parent",index:"parent"}]}),Eg=A().createContext(void 0),Cg=function(){var t=A().useContext(Eg);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},Sg=function(t){var e=Cg().canvasRef,n=function(t){var e=Xy(t.style,t),n=$y(t.barWidth,Object.assign({},t,{style:e})),r=Yy(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?hv(n,a):pv(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},kg=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(Eg.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)};kg.role="container";var Dg=function(t){var e=Cg(),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=Xl(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 Tg(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 Rg(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 Lg(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 Ig(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 Ng(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 zg(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 Bg(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 Wg(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 Ug(t,e,n){var r=1.35*n,o=Math.PI/5,i=xt(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 Vg=function(t){var e=Cg().canvasRef,n=function(t){var e=st(t.size,t),n=ft(t.style,t),r=st(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:Tg,square:Rg,diamond:Lg,triangleDown:Ig,triangleUp:Ng,plus:zg,minus:Wg,star:Ug,cross:Bg};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 Fg(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 qg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fg(Object(n),!0).forEach((function(e){Hg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Gg={circleComponent:A().createElement(ff,null),rectComponent:A().createElement(vf,null),role:"presentation",shapeRendering:"auto"},Kg=function(t){var e=function(t){var e=st(t.id,t);return Object.assign({},t,{id:e})}(qg(qg({},Gg),t));return e.polar?A().cloneElement(e.circleComponent,qg(qg({},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,qg(qg({},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}))},$g=r(4397),Yg=r.n($g);function Xg(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?Xg(Object(n),!0).forEach((function(e){Qg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jg(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 tb(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)?tb(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 tb(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 eb={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},nb=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eb,e=A().useState(t),n=Jg(e,2),r=n[0],o=n[1],i=A().useCallback((function(t){o((function(e){return Zg(Zg({},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=St(o=r&&r.childrenTransitions)?o[n]:o,nt()({childrenTransitions:o},r)),c=t.animate&&t.animate.parentState||u;if(!a){var l=dd(t,u,(function(t){return i(t)}));a=function(t){return l(t,n)}}return nt()({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=nt()({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)?Yg()(t,e):e(t)},c=!t.polar&&Yg()(o,(function(t){return u(t)||t.props.children&&u(t.props.children)})),l=hd(o,a),s=l.nodesWillExit,f=l.nodesWillEnter,p=l.childrenTransitions,h=l.nodesShouldEnter;i({nodesWillExit:s,nodesWillEnter:f,nodesShouldEnter:h,childrenTransitions:St(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}},rb=r(8961),ob=r.n(rb);function ib(t){return function(t){if(Array.isArray(t))return ab(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 ab(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)?ab(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 ab(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 ub(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 cb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ub(Object(n),!0).forEach((function(e){lb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ub(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sb(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=mt(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 cb(cb({},o),{},{bins:u})}function fb(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=sb({children:o,props:t,childComponents:e,parentProps:n});var i=o.filter((function(t){return t.type&&"stack"===t.type.role})).length,a=Ot(o,(function(t,e,o){var i,a=Object.assign({},t.props,n);return Ra(t)?(i=t.type&&G()(t.type.getData)?(o?A().cloneElement(t,o.props):t).type.getData(a):Sa(a),r+=1,i.map((function(t,e){return Object.assign({_stack:r,_group:e},t)}))):null}),t,[],(function(t,e){return t.concat(ob()(e,"_group"))})),u=i?"_group":"_stack";return qd()(Wv()(a,u))}function pb(t,e){return t.data?Sa(t):fb(t,e||A().Children.toArray(t.children))}function hb(t,e,n){var r=t.datasets,o=vt(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 db(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||hb(t,a.length,l);return{x:f*a.length/2+(i-f*((a.length-1)/2))}}}}}}function yb(t,e,n){var r=n?n.slice(0):A().Children.toArray(t.children),o=t.data?Sa(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=Ot(r,(function(t){var n=Object.assign({},t.props,p);return eu(t)?t.type&&G()(t.type.getDomain)?t.props&&t.type.getDomain(n,e):Ga(n,e):null}),t);return[0===h.length?0:Tt(h),0===h.length?1:Dt(h)]}function vb(t,e,n){var r,o=n||A().Children.toArray(t.children),i=Xa(t,e),a=db(t,e,o);if(i)r=i;else{var u=Ja(t,e),c=Qa(t,e),l=(t.data||t.y)&&Sa(t),s=l?$a(t,e,l):[],f=yb(t,e,o);r=Ya(u||Tt([].concat(ib(s),ib(f))),c||Dt([].concat(ib(s),ib(f))))}return Ha(r,Object.assign({domainPadding:a},t),e)}function mb(t,e,n){if(t.data)return na(t,e);var r=n?n.slice(0):A().Children.toArray(t.children),o=X()(Ot(r,(function(n){return ia(Object.assign({},n.props,{horizontal:t.horizontal}),e)}),t));return o.length>1?ea("linear"):ea(o[0])}function gb(t){var e=sh(t,["groupComponent","containerComponent","labelComponent"]),n=t.events;return Array.isArray(e)&&(n=Array.isArray(t.events)?e.concat.apply(e,ib(t.events)):e),n||[]}function bb(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:Ff(o);return i||a[n%a.length]}}function xb(t,e,n){return lt(e,t&&t[n]&&t[n].style?t[n].style:{})}function Ob(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:bb(n,t,e),c="line"===a?{fill:"none",stroke:u}:{fill:u},l="stack"===o?{}:{width:hb(n)},s=nt()({},i.data,Object.assign({},l,r.data,c)),f=nt()({},i.labels,r.labels);return{parent:r.parent,data:s,labels:f}}function wb(t,e){return Ot(t.slice(0),(function(t){var n=t.props||{};if(!eu(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?kt(o):[]}))}function _b(t){return Ot(t.slice(0),(function(t){var e=t.props||{};return Ra(t)?(t.type&&G()(t.type.getData)?t.type.getData(e):Sa(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 jb(t,e,n){var r=q()(t.categories)?t.categories[e]:t.categories,o=Zd(n,e),i=o?ka(o.props,e):[],a=r||wb(n,e);return X()(Wa()([].concat(ib(a),ib(i))))}function Pb(t,e){var n=e||A().Children.toArray(t.children),r=jb(t,"x",n),o=jb(t,"y",n),i=_b(n);return{x:X()(Wa()([].concat(ib(r),ib(i.x)))),y:X()(Wa()([].concat(ib(o),ib(i.y))))}}function Ab(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||Pb(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 Mb(t){var e=A().useRef();return A().useEffect((function(){e.current=t})),e.current}var Eb=r(7314),Cb=r.n(Eb),Sb=r(2516),kb=r.n(Sb);function Db(t,e){if(t){if("string"==typeof t)return Tb(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)?Tb(t,e):void 0}}function Tb(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 Rb(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 Lb(t,e){return Lb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lb(t,e)}function Ib(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 Nb(t)}function Nb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zb(t){return zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zb(t)}var Bb=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&&Lb(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=zb(r);if(o){var n=zb(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Ib(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=oh.bind(Nb(e)),e.getEventState=ah.bind(Nb(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(!vh()(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=Q()(this.globalEvents);e.forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentDidUpdate",value:function(){var t=this,e=Q()(this.globalEvents);Xp()(this.prevGlobalEventKeys,e).forEach((function(e){return t.removeGlobalListener(e)})),Xp()(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(dh(n))};this.boundGlobalEvents[t]=n,window.addEventListener(fh(t),n)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(fh(t),this.boundGlobalEvents[t])}},{key:"getAllEvents",value:function(t){var e,n=sh(t,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(t.events)?n.concat.apply(n,function(t){if(Array.isArray(t))return Tb(t)}(e=t.events)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||Db(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(!z()(e)){var n=t.externalEventMutations.reduce((function(t,e){return G()(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 z()(t.externalEventMutations)?void 0:uh(t.externalEventMutations,e,this.state,Q()(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)||Db(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&&vh()(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=Ot(t,(function(t,e){if(t.type&&G()(t.type.getBaseProps)){var n=t.props&&t.type.getBaseProps(t.props);return n?[[e,n]]:null}return null}));return Cb()(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&&G()(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,kb()(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=Q()(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=rh.bind(this),f=a&&s({sharedEvents:a},"parent"),p=nt()({},this.getEventState("parent","parent"),l,e.parent,{children:o}),h=nt()({},ih(f,"parent",p),l.events);this.globalEvents=ph(h);var d=hh(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&&Rb(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);function Wb(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 Ub(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wb(Object(n),!0).forEach((function(e){Vb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wb(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Bb.displayName="VictorySharedEvents",Bb.role="shared-event-wrapper",Bb.contextType=Ys,Bb.defaultProps={groupComponent:A().createElement("g",null)};var Fb=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(pt(o)),l=n-r*Math.sin(pt(o)),s=e+r*Math.cos(pt(u)),f=n-r*Math.sin(pt(u)),p=e+r*Math.cos(pt(i)),h=n-r*Math.sin(pt(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)},qb={pathComponent:A().createElement(es,null),role:"presentation",shapeRendering:"auto"},Hb=function(t){var e=function(t){var e=st(t.ariaLabel,t),n=st(t.desc,t),r=st(t.id,t),o=ft(Object.assign({stroke:"black",fill:"none"},t.style),t),i=st(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(Ub(Ub({},qb),t));return A().cloneElement(e.pathComponent,Ub(Ub({},e.events),{},{"aria-label":e.ariaLabel,d:Fb(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}))},Gb=function(t,e,n){return"x"===n?t*Math.cos(e):-t*Math.sin(e)},Kb=function(t){var e=t.dependentAxis?"radial":"angular",n="angular"===e?"radial":"angular";return t.horizontal?n:e},$b=function(t,e){return{tickStyle:ft(t.ticks,e),labelStyle:ft(t.tickLabels,e),gridStyle:ft(t.grid,e)}},Yb=function(t){var e=at(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},Xb=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"===Kb(t))return[pt(t.startAngle),pt(t.endAngle)];var n=Yb(t);return[t.innerRadius||0,n]},Zb=function(t){var e=Yd(t),n=na(t,e),r=cy(t,e)||n.domain(),o=Xb(t,e);return n.range(o),n.domain(r),n},Qb=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:nt()(r,n.parent,e.parent),axis:nt()({},n.axis,e.axis),axisLabel:nt()({},n.axisLabel,e.axisLabel),grid:nt()({},n.grid,e.grid),ticks:nt()({},n.ticks,e.ticks),tickLabels:nt()({},n.tickLabels,e.tickLabels)}},Jb=function(t){var e=t.axisAngle,n=t.startAngle,r=t.dependentAxis,o=ly(t,Yd(t));return void 0!==o&&r?ht(o):void 0===e?n:e},tx=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=$b(u,{tick:h,tickValue:n,index:r,ticks:l,stringTicks:c,radius:i,scale:a,axisType:o,text:p}).tickStyle,y="radial"===o?Jb(t):void 0,v=d.padding||d.size||0,m=pt(90-y),g="angular"===o?a(n):pt(-1*y),b="angular"===o?i:a(n);return"angular"===o?{index:r,datum:h,style:d,x1:Gb(b,g,"x")+f.x,y1:Gb(b,g,"y")+f.y,x2:Gb(b+v,g,"x")+f.x,y2:Gb(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}},ex=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=$b(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?Jb(t):void 0,b="angular"===o?ht(c(n)):g+0,x=void 0===d.angle?au(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||ou(Object.assign({},t,{labelPlacement:v}),b),text:p,x:O*Math.cos(pt(b))+f.x,y:-O*Math.sin(pt(b))+f.y}},nx=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=$b(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:Gb(i,b,"x")+f.x,y1:Gb(i,b,"y")+f.y,x2:Gb(v,b,"x")+f.x,y2:Gb(v,b,"y")+f.y}:{style:g,index:r,datum:m,cx:f.x,cy:f.y,r:u(n),startAngle:h,endAngle:d}},rx=function(t,e){var n=sy(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]=nt()({},null==c?void 0:c[e],null==a?void 0:a[e]),t}),{}):c||a}(e),r=Qb(e,n),o=at(e),i=Yd(e),a=Kb(e),u=ny(e)?e.tickValues:void 0,c=cy(e,i),l=Xb(e,i),s=Zb(e),f=ay(e,s),p="angular"===a?function(t,e){return ob()(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:oy(e,s),domain:c,range:l,radius:Yb(e),origin:yt(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?pt(Jb(t)):void 0;return"radial"===r?{style:n.axis,x1:Gb(l,s,"x")+i.x,x2:Gb(o,s,"x")+i.x,y1:Gb(l,s,"y")+i.y,y2:Gb(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?Jb(t):void 0,s=void 0===c.angle?au(Object.assign({},t,{labelPlacement:u}),l):c.angle,f=r+(c.padding||0);return{style:c,angle:s,textAnchor:c.textAnchor||ou(Object.assign({},t,{labelPlacement:u}),l),verticalAnchor:c.verticalAnchor||iu(Object.assign({},t,{labelPlacement:u}),l),text:t.label,x:Gb(f,pt(l),"x")+i.x,y:Gb(f,pt(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:tx(n,r,e,o),tickLabels:ex(n,r,e,o),grid:nx(n,r,e,o)},t}),y)};function ox(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 ax(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ux(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 cx(t,e){return cx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cx(t,e)}function lx(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 sx(t){return sx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sx(t)}var fx={width:450,height:300,padding:50},px=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&&cx(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=sx(r);if(o){var n=sx(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return lx(this,t)});function a(){return ax(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||!z()(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(ox(u),ox(c),ox(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=hx.animationWhitelist,e=sy(this.props,fx);if(this.shouldAnimate())return this.animateComponent(e,t);var n=this.renderAxis(e);return e.standalone?this.renderContainer(e.containerComponent,n):n}}])&&ux(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);px.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"],px.displayName="VictoryAxis",px.role="axis",px.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},px.defaultProps={axisComponent:A().createElement(xy,null),axisLabelComponent:A().createElement(Pp,null),circularAxisComponent:A().createElement(Hb,null),circularGridComponent:A().createElement(Hb,null),containerComponent:A().createElement(of,null),endAngle:360,gridComponent:A().createElement(xy,null),groupComponent:A().createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Fp.grayscale,tickComponent:A().createElement(xy,null),tickLabelComponent:A().createElement(Pp,null)},px.getDomain=cy,px.getAxis=Yd,px.getScale=Zb,px.getStyles=function(t){return Qb(t,fx.style)},px.getBaseProps=function(t){return rx(t,fx)},px.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];var hx=Rd(px,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),dx={width:450,height:300,padding:50};function yx(t,e){var n=function(t){var e=t.style&&t.style.parent;return{parent:nt()({},e,{height:"100%",width:"100%",userSelect:"none"})}}(t),r=gt(t,dx,"chart"),o=r.horizontal,i=r.polar,a=Pb(r,e),u=Ab(r,e,a),c=gx(r,e,a),l={x:mx(Object.assign({},r,{categories:u}),"x",e),y:mx(Object.assign({},r,{categories:u}),"y",e)},s={x:vt(r,"x"),y:vt(r,"y")},f={x:oa(r,"x")||mb(r,"x"),y:oa(r,"y")||mb(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?yt(r):Jd(l),padding:at(r)}}var vx=function(t,e){var n=A().Children.toArray(t.children);if(0===n.length)n.push(e.independent,e.dependent);else{var r={dependent:Qd(n,"dependent"),independent:Qd(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},mx=function(t,e,n){var r=n||A().Children.toArray(t.children),o=vb(t,e,r),i=Zd(r,e);return i&&i.props&&i.props.invertAxis?o.concat().reverse():o},gx=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 bx(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 xx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bx(Object(n),!0).forEach((function(e){Ox(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ox(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wx={width:450,height:300,padding:50},_x={backgroundComponent:A().createElement(Kg,null),containerComponent:A().createElement(of,null),defaultAxes:{independent:A().createElement(Gy,null),dependent:A().createElement(Gy,{dependentAxis:!0})},defaultPolarAxes:{independent:A().createElement(hx,null),dependent:A().createElement(hx,{dependentAxis:!0})},groupComponent:A().createElement("g",null),standalone:!0,theme:Fp.grayscale},jx=function(t){var e=A().useMemo((function(){return xx(xx({},_x),t)}),[t]),n=nb(),r=n.getAnimationProps,o=n.setAnimationState,i=(0,n.getProps)(e),a=gt(i,wx,"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 vx(a,b)}),[a,b]),O=A().useMemo((function(){return yx(a,x)}),[a,x]),w=O.domain,_=O.scale,j=O.style,P=O.origin,M=O.horizontal,E=A().useMemo((function(){var t=function(t,e,n){var r=e||vx(t),o=n||yx(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:nt()({},e.props.style,{parent:i}),d=function(t,e,n){var r=Xd([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=nt()({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,nt()({},n.props,s))}(i,O);t.unshift(e)}return t}),[r,x,i,O]),C=A().useMemo((function(){return s?{desc:u,domain:w,width:h,height:d,horizontal:M,name:m,origin:v?P:void 0,polar:v,theme:y,title:g,scale:_,standalone:s,style:j.parent}:{}}),[u,w,d,M,m,P,v,_,s,j,g,y,h]),S=A().useMemo((function(){if(s){var t=nt()({},l.props,C,cs(e));return A().cloneElement(l,t)}return f}),[f,s,l,C,e]),k=A().useMemo((function(){return gb(i)}),[i]),D=Mb(e);return A().useEffect((function(){return function(){e.animate&&o(D,e)}}),[o,D,e]),z()(k)?A().cloneElement(S,S.props,E):A().createElement(Bb,{container:S,eventKey:c,events:k,externalEventMutations:p},E)},Px=A().memo(jx,vh());function Ax(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mx(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 Ex(t,e){return Ex=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ex(t,e)}function Cx(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 Sx(t){return Sx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sx(t)}Px.displayName="VictoryChart",Px.expectedComponents=["groupComponent","containerComponent"];var 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&&Ex(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=Sx(r);if(o){var n=Sx(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Cx(this,t)});function a(){return Ax(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"render",value:function(){var t=this.props,e=t.desc,n=t.children,r=t.className,o=t.tabIndex,i=e&&(this.props["aria-describedby"]||e.split(" ").join("-"));return e?A().createElement("g",{"aria-label":this.props["aria-label"],"aria-describedby":i,className:r,tabIndex:o},A().createElement("desc",{id:i},e),n):A().createElement("g",{"aria-label":this.props["aria-label"],"aria-describedby":this.props["aria-describedby"],className:r,tabIndex:o},n)}}])&&Mx(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);function Dx(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 Tx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dx(Object(n),!0).forEach((function(e){Rx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Rx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}kx.displayName="VictoryAccessibleGroup",kx.defaultProps={className:"VictoryAccessibleGroup"};var Lx=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=w;return("function"==typeof i[o]?i[o]:i.circle)(e,n,r)},Ix={pathComponent:A().createElement(es,null),role:"presentation",shapeRendering:"auto"},Nx=function(t){var e=function(t){var e=st(t.ariaLabel,t),n=st(t.desc,t),r=st(t.id,t),o=st(t.size,t),i=ft(t.style,t),a=st(t.symbol,t),u=st(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,size:o,style:i,symbol:a,tabIndex:u})}(Tx(Tx({},Ix),t)),n=cs(e);return A().cloneElement(e.pathComponent,Tx(Tx({},e.events),{},{"aria-label":e.ariaLabel,d:Lx(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))},zx=r(9560),Bx=r.n(zx),Wx=r(3105),Ux=r.n(Wx),Vx=r(4542),Fx=r.n(Vx);function qx(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 Hx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qx(Object(n),!0).forEach((function(e){Gx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qx(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 Kx=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)},$x={pathComponent:A().createElement(es,null),role:"presentation",shapeRendering:"auto"},Yx=function(t){var e=function(t){var e=st(t.id,t),n=ft(t.style,t);return Hx(Hx({},t),{},{id:e,style:n})}(Hx(Hx({},$x),t)),n=cs(e);us(e.height,"Flyout props[height] is undefined"),us(e.width,"Flyout props[width] is undefined"),us(e.x,"Flyout props[x] is undefined"),us(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,Hx(Hx(Hx({},e.events),n),{},{style:e.style,d:Kx(r),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath}))};function Xx(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 Zx(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 Qx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zx(Object(n),!0).forEach((function(e){Jx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tO(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 eO(t,e){return eO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},eO(t,e)}function nO(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 rO(t){return rO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rO(t)}var oO={cornerRadius:5,pointerLength:10,pointerWidth:10},iO=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&&eO(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=rO(r);if(o){var n=rO(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return nO(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?ws()("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=uu(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||Fp.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((function(t){return nt()({},t,n)})):nt()({},t.style,n),o=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},i=t.flyoutStyle?nt()({},t.flyoutStyle,o):o,a=Array.isArray(r)?r.map((function(e){return ft(e,t)})):ft(r,t);return{style:a,flyoutStyle:ft(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=st(t.active,t),a=st(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=st(t.orientation,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l}))||this.getDefaultOrientation(t),f=at({padding:st(t.flyoutPadding,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s}))||this.getLabelPadding(c)}),p=st(t.pointerWidth,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s})),h=st(t.pointerLength,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s})),d=lp(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=q()(n)&&void 0!==(null==n?void 0:n.x)?st(n.x,g):0,x=q()(n)&&void 0!==(null==n?void 0:n.y)?st(n.y,g):0;return Qx(Qx({},g),{},{centerOffset:{x:b,y:x},dx:void 0!==r?st(r,g):0,dy:void 0!==o?st(o,g):0,cornerRadius:st(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:lp(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=uu(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=q()(t.center)&&void 0!==t.center.x?t.center.x:d.x,v=q()(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 Xx(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 Xx(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)?Xx(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=st(t.cornerRadius,t);return{flyoutHeight:l?st(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?st(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 nt()({},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 W()(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=st(t.pointerOrientation,t);return nt()({},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=st(t.active,t),n=t.renderInPortal;if(!e)return n?A().createElement(Tf,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(Tf,null,l):l}},{key:"render",value:function(){var t=gt(this.props,oO,"tooltip");return this.renderTooltip(t)}}],n&&tO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);iO.displayName="VictoryTooltip",iO.role="tooltip",iO.defaultProps={active:!1,renderInPortal:!0,labelComponent:A().createElement(Pp,null),flyoutComponent:A().createElement(Yx,null),groupComponent:A().createElement("g",null)},iO.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 aO=r(5395),uO=r.n(aO),cO=r(5953),lO=r.n(cO),sO=r(6898);function fO(t){return function(t){if(Array.isArray(t))return pO(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 pO(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)?pO(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 pO(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 hO(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.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,fO(i))},this.handleMouseMove=function(t,n){var r=n.activePoints||[],o=n.parentSVG||um(t),i=cm(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,fO(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&&vh()(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,fO(d).concat(fO(h)))},this.onMouseMove=ym()(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=at(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,fO(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:Tt(t.domain.x),y:Tt(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=ot(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=Sa(t);return Array.isArray(e)&&e.length>0?e:void 0};return Ot(n,(function(e,n){var i=(e.props||{}).name||n,a=t.voronoiBlacklist||[],u=a.filter(lO()),c=a.filter(uO()).some((function(t){return t.test(i)}));if(!Ra(e)||R()(u,i)||c)return null;var l=(e.type&&G()(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=it(t,e);return[n.x,n.y]})),o=sO.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 z()(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 z()(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){G()(t.onActivated)&&t.onActivated(e,t)}},{key:"onDeactivated",value:function(t,e){G()(t.onDeactivated)&&t.onDeactivated(e,t)}}],n&&hO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),yO=new dO,vO=["childName","eventKey","style","continuous"];function mO(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 gO(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 bO(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gO(Object(n),!0).forEach((function(e){xO(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gO(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xO(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function OO(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 _O(t,e){return _O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_O(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 PO(t){return PO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},PO(t)}function AO(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&&_O(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=PO(r);if(o){var n=PO(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return jO(this,t)});function a(){return OO(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 tt()(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=it(t,this.getPoint(n[0])),u=o?r:void 0;if(!i||n.length<2)return bO(bO({},a),{},{center:nt()({},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:nt()({},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=nt()({},a,{datum:e,active:!0}),l=G()(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=ft(nt()({},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=nt()({},c,{datum:e,active:!0}),o=G()(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,vO)),d=t.name===f?f:"".concat(t.name,"-").concat(f),y=nt()({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 nt()({},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 mO(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 mO(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)?mO(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&&wO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryVoronoiContainer",e.defaultProps=bO(bO({},of.defaultProps),{},{activateData:!0,activateLabels:!0,labelComponent:A().createElement(iO,null),voronoiPadding:5}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,n){return t.disable?{}:yO.onMouseLeave(e,n)},onTouchCancel:function(e,n){return t.disable?{}:yO.onMouseLeave(e,n)},onMouseMove:function(e,n){return t.disable?{}:yO.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:yO.onMouseMove(e,n)}}},{target:"data",eventHandlers:t.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]},e}var MO=AO(of),EO=r(9324),CO=r.n(EO);function SO(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 kO(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)?kO(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 kO(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 DO={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=SO(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=SO(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=SO(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 Mt([f,p])?[new Date(x[0]),new Date(x[1])]:x},getScaledDomain:function(t,e,n){var r=SO(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=SO(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=SO(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=cm(t),o=r.x,i=r.y,a={x:e.scale.x.domain(n.x),y:e.scale.y.domain(n.y)};return sm(e,a,o,i)},pan:function(t,e,n){var r,o=SO(t.map((function(t){return Number(t)})),2),i=o[0],a=o[1],u=SO(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,Mt(t)||Mt(e)?r.map((function(t){return new Date(t)})):r},getDomainScale:function(t,e,n){var r=SO(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(),CO()((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)?nt()({},n,i):nt()({},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,yb(t,o,i)):{x:yb(t,"x",i),y:yb(t,"y",i)}),nt()({},a,e,n)},onMouseDown:function(t,e){if(t.preventDefault(),e.allowPan){var n=e.parentSVG||um(t),r=cm(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||um(t),p=cm(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),w={parentControlledProps:["domain"],startX:h,startY:d,parentSVG:f,currentDomain:x,originalDomain:y,cachedZoomDomain:c,zoomActive:!this.checkDomainEquality(y,v)};return G()(u)&&u(x,nt()({},w,e)),[{target:"parent",callback:O,mutation:function(){return w}}]}},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 G()(o)&&o(f,nt()({},h,e)),[{target:"parent",callback:p,mutation:function(){return h}}]}}},TO={checkDomainEquality:DO.checkDomainEquality.bind(DO),onMouseDown:DO.onMouseDown.bind(DO),onMouseUp:DO.onMouseUp.bind(DO),onMouseLeave:DO.onMouseLeave.bind(DO),onMouseMove:ym()(DO.onMouseMove.bind(DO),16,{leading:!0,trailing:!1}),onWheel:ym()(DO.onWheel.bind(DO),16,{leading:!0,trailing:!1})};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){IO(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,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function NO(t){return function(t){if(Array.isArray(t))return zO(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 zO(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)?zO(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 zO(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 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 qO(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:"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,NO(c)),p=A().cloneElement(r,LO({clipWidth:l,clipHeight:s,translateX:Math.min.apply(Math,NO(u)),translateY:Math.min.apply(Math,NO(c)),polar:o,origin:o?i:void 0,radius:o?f:void 0},r.props));return A().Children.toArray(t).map((function(t){return Ra(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&&G()(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),Aa(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=Ra(n),a=t.currentDomain,u=t.zoomActive,c=t.allowZoom,l=nt()({},t.originalDomain,t.domain),s=nt()({},t.zoomDomain,t.domain),f=nt()({},t.cachedZoomDomain,t.domain);r=TO.checkDomainEquality(s,f)?c&&!u?n.props.domain:nt()({},a,l):s;var p=t.polar?e.modifyPolarDomain(r,l):r;p&&t.zoomDimension&&(p=LO(LO({},s),{},IO({},t.zoomDimension,p[t.zoomDimension])));var h=i&&"stack"!==o?{domain:p,data:e.downsampleZoomData(t,n,p)}:{domain:p};return A().cloneElement(n,nt()(h,n.props))}))}},{key:"getChildren",value:function(t){var e=this.modifyChildren(t);return this.clipDataComponents(e,t)}}],n&&WO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryZoomContainer",e.defaultProps=LO(LO({},of.defaultProps),{},{clipContainerComponent:A().createElement(Af,null),allowPan:!0,allowZoom:!0,zoomActive:!1}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:LO({onMouseDown:function(e,n){return t.disable?{}:TO.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:TO.onMouseDown(e,n)},onMouseUp:function(e,n){return t.disable?{}:TO.onMouseUp(e,n)},onTouchEnd:function(e,n){return t.disable?{}:TO.onMouseUp(e,n)},onMouseLeave:function(e,n){return t.disable?{}:TO.onMouseLeave(e,n)},onTouchCancel:function(e,n){return t.disable?{}:TO.onMouseLeave(e,n)},onMouseMove:function(e,n,r,o){return t.disable?{}:TO.onMouseMove(e,n,r,o)},onTouchMove:function(e,n,r,o){return t.disable?{}:(e.preventDefault(),TO.onMouseMove(e,n,r,o))}},t.disable||!t.allowZoom?{}:{onWheel:TO.onWheel})}]},e}var HO=qO(of);function GO(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 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 $O=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||um(t),l=cm(t,c),s=l.x,f=l.y,p={x1:i||"y"!==u?s:lm(n).x[0],y1:i||"x"!==u?f:lm(n).y[0],select:!0,x2:i||"y"!==u?s:lm(n).x[1],y2:i||"x"!==u?f:lm(n).y[1],parentSVG:c};a&&G()(n.onSelectionCleared)&&n.onSelectionCleared(nt()({},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 GO(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 GO(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)?GO(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||um(t),c=cm(t,u),l=c.x,s=c.y,f=i||"y"!==a?l:lm(n).x[1],p=i||"x"!==a?s:lm(n).y[1];return{target:"parent",mutation:function(){return{x2:f,y2:p,parentSVG:u}}}},this.onMouseMove=ym()(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=fm(n),l=e.filterDatasets(n,u),s={selectedData:l,datasets:u,select:!1,x1:null,x2:null,y1:null,y2:null},f=l&&G()(n.onSelection)?n.onSelection(l,c,nt()({},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}]:Ot(A().Children.toArray(t.children),(function(e,n,r){var o,i=t.selectionBlacklist||[];if(!Ra(e)||R()(i,n))return null;if(e.type&&G()(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=Sa(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=it(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}}])&&KO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),YO=new $O;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 ZO(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){QO(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 QO(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JO(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 tw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ew(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 nw(t,e){return nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nw(t,e)}function rw(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 ow(t){return ow=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ow(t)}function iw(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&&nw(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=ow(r);if(o){var n=ow(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return rw(this,t)});function a(){return tw(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 JO(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 JO(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)?JO(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&&ew(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictorySelectionContainer",e.defaultProps=ZO(ZO({},of.defaultProps),{},{activateSelectedData:!0,allowSelection:!0,selectionComponent:A().createElement(vf,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,n){return t.disable?{}:YO.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:YO.onMouseDown(e,n)},onMouseMove:function(e,n){return t.disable?{}:YO.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:YO.onMouseMove(e,n)},onMouseUp:function(e,n){return t.disable?{}:YO.onMouseUp(e,n)},onTouchEnd:function(e,n){return t.disable?{}:YO.onMouseUp(e,n)}}}]},e}var aw=iw(of);function uw(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 cw=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||um(t),u=cm(t,a),c=sm(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),G()(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=ym()(this.handleMouseMove,16,{leading:!0,trailing:!1}),this.onMouseLeave=this.handleMouseMove,this.onTouchEnd=function(t,e){var n=e.onCursorChange;return G()(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=hm()(e,Number),r=n.x1,o=n.x2,i=n.y1,a=n.y2,u=hm()(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&&uw(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),lw=new cw;function sw(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 fw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sw(Object(n),!0).forEach((function(e){dw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pw(t){return function(t){if(Array.isArray(t))return hw(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 hw(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)?hw(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 hw(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 dw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yw(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 mw(t,e){return mw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mw(t,e)}function gw(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 bw(t){return bw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bw(t)}function xw(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&&mw(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=bw(r);if(o){var n=bw(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return gw(this,t)});function a(){return yw(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?dw({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 xs()(t.props)&&void 0!==t.props.padding}));return at(e.props)}return at(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=lw.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=nt()({active:!0},n.props,{x:y.x+p.x,y:y.y+p.y,datum:f,active:!0,key:"".concat(u,"-cursor-label")});if(ut(n)){var m=l&&l.tooltip||{};v=nt()({},v,m)}h.push(A().cloneElement(n,nt()({},v,{text:st(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(pw(A().Children.toArray(t.children)),pw(this.getCursorElements(t)))}}],n&&vw(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryCursorContainer",e.defaultProps=fw(fw({},of.defaultProps),{},{cursorLabelComponent:A().createElement(Pp,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:A().createElement(xy,null)}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,n){return t.disable?{}:lw.onMouseLeave(e,n)},onTouchCancel:function(){return[]},onMouseMove:function(e,n){return t.disable?{}:lw.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:lw.onMouseMove(e,n)}}}]},e}var Ow=xw(of);function ww(t){return function(t){if(Array.isArray(t))return Dw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||kw(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 _w(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 jw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_w(Object(n),!0).forEach((function(e){Pw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Aw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mw(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 Ew(t,e){return Ew=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ew(t,e)}function Cw(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 Sw(t){return Sw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sw(t)}function kw(t,e){if(t){if("string"==typeof t)return Dw(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)?Dw(t,e):void 0}}function Dw(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 Tw(t){return t?Array.isArray(t)?t:[t]:[]}var Rw=function(t,e){var n,r=t.map((function(t){return t(e)})),o=r.map((function(t){return new t})),i=Bx()(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&&Ew(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=Sw(r);if(i){var n=Sw(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Cw(this,t)});function u(){return Aw(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"getChildren",value:function(t){return o.reduce((function(e,n){return n.getChildren(jw(jw({},t),{},{children:e}))}),t.children)}}])&&Mw(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 jw(jw({},t),e.propTypes)}),{}),n.defaultProps=r.reduce((function(t,e){return jw(jw({},t),e.defaultProps)}),{}),n.defaultEvents=function(t){return e=r.reduce((function(e,n){var r=G()(n.defaultEvents)?n.defaultEvents(t):n.defaultEvents;return[].concat(ww(e),ww(r))}),[]),n=Wv()(e,"target"),o=Fx()(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)||kw(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 z()(u)?null:{target:i,eventHandlers:(e=a.map((function(t){return t.eventHandlers})),e.reduce((function(t,e){return Ux()(t,(function(t,n){var r=e[n];e[n]=r?function(){var e=Tw(r.apply(void 0,arguments)),n=Tw(t.apply(void 0,arguments));return e.concat(n)}:t})),e})))}})),o.filter(Boolean);var e,n,o},n},Lw=function(t,e){t&&!R()(e,t)&&'"'.concat(t,'" is not a valid behavior. Choose from [').concat(e.join(", "),"].")},Iw=function(t,e){return function(n,r){var o=Object.keys(t);Lw(n,o),Lw(r,o);var i=t[n],a=t[r]||[];return i?Rw([].concat(ww(i),ww(a)),e):e}},Nw=Iw({zoom:[qO],voronoi:[AO],selection:[iw],cursor:[xw],brush:[Tm]},of);function zw(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 Bw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zw(Object(n),!0).forEach((function(e){Ww(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ww(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Uw=function(t,e,n){var r="right"===n||"left"===n;return A().cloneElement(t.lineComponent,Bw(Bw({},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)}))},Vw=function(t,e,n){var r="top"===n||"bottom"===n;return A().cloneElement(t.lineComponent,Bw(Bw({},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)}))},Fw={groupComponent:A().createElement("g",null),lineComponent:A().createElement(yy,null),role:"presentation",shapeRendering:"auto"},qw=function(t){var e=function(t){var e=st(t.ariaLabel,t),n=st(t.id,t),r=ft(Object.assign({stroke:"black"},t.style),t),o=st(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,id:n,style:r,tabIndex:o})}(Bw(Bw({},Fw),t)),n=e.groupComponent,r=cs(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?Uw(e,a,"right"):null,a.left?Uw(e,a,"left"):null,a.bottom?Uw(e,a,"bottom"):null,a.top?Uw(e,a,"top"):null,a.right?Vw(e,a,"right"):null,a.left?Vw(e,a,"left"):null,a.bottom?Vw(e,a,"bottom"):null,a.top?Vw(e,a,"top"):null].filter(Boolean);return A().cloneElement(n,Bw({tabIndex:o,"aria-label":i},r),u)},Hw=r(156),Gw=r.n(Hw),Kw=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)]},$w=function(t){var e=["x","y","errorX","errorY"];return t.data?Ma(t.data,t,e):Ma(t.errorX||t.errorY?Ea(t):[],t,e)},Yw=function(t,e){var n=Ja(t,e),r=Qa(t,e),o=$w(t);if(o.length<1)return void 0!==n&&void 0!==r?Ya(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 Ya(void 0!==n?n:a("min"),void 0!==r?r:a("max"))},Xw=function(t,e){return qa(Yw)(t,e)};function Zw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qw(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 Jw(t,e){return Jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jw(t,e)}function t_(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 e_(t){return e_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},e_(t)}var n_={width:450,height:300,padding:50},r_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jw(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=e_(r);if(o){var n=e_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return t_(this,t)});function a(){return Zw(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=o_.animationWhitelist,e=o_.role,n=gt(this.props,n_,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ls(o,n)}}])&&Qw(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);r_.animationWhitelist=["data","domain","height","padding","samples","style","width","errorX","errorY","borderWidth"],r_.displayName="VictoryErrorBar",r_.role="errorbar",r_.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}}},r_.defaultProps={containerComponent:A().createElement(of,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(qw,null),labelComponent:A().createElement(Pp,null),groupComponent:A().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Fp.grayscale},r_.getDomain=Xw,r_.getData=$w,r_.getBaseProps=function(t){return function(t,e){var n=gt(t,e,"errorbar"),r=Object.assign({},n,function(t){var e=ct(t,"errorbar"),n=lt(t.style,e)||{},r=$w(t),o={x:vt(t,"x"),y:vt(t,"y")},i={x:Xw(t,"x"),y:Xw(t,"y")};return{domain:i,data:r,scale:{x:na(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:na(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},style:n,origin:t.polar?t.origin||yt(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,w=r.disableInlineStyles,_={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=E()(e.eventKey)?n:e.eventKey,p=it(Gw()({},r,{scale:v}),e),h=p.x,d=p.y,y=function(t,e){var n=Tt(e.x),r=Dt(e.x),o=Tt(e.y),i=Dt(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=Kw(r,y,"x"),x=Kw(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:w?{}:b.data,x:h,y:d,disableInlineStyles:w};t[l]={data:O};var _=ru(r,e,n);return(null!=_||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(!ut(s))return g;var b=f&&f.tooltip||{};return nt()({},g,rt(b,["style"]))}(Object.assign({},r,O),_,b)),t}),_)}(t,n_)},r_.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var o_=Rd(r_);function i_(t){return function(t){if(Array.isArray(t))return u_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||a_(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 a_(t,e){if(t){if("string"==typeof t)return u_(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)?u_(t,e):void 0}}function u_(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 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_={width:450,height:300,padding:50,offset:0};function p_(t,e){var n="group",r=gt(t,f_,n),o=xb(r.theme,r.style,n),i=r.offset,a=r.colorScale,u=r.color,c=r.polar,l=r.horizontal,s=r.categories||Ab(r,e,null),f=r.datasets||fb(r,null),p={x:vb(Object.assign({},r,{categories:s}),"x",e),y:vb(Object.assign({},r,{categories:s}),"y",e)},h=r.range||{x:vt(r,"x"),y:vt(r,"y")},d={x:oa(r,"x")||mb(r,"x"),y:oa(r,"y")||mb(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:yt(r),padding:at(r)}}function h_(t){var e,n,r=function(t){var e=t.children,n=A().Children.toArray(e).map((function(t){return l_(l_({},t),{},{props:rt(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)||a_(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(){vh()(r,i)||a(r)}),[i,a,r]),A().useMemo((function(){return p_(i,i.children)}),[i])}function d_(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 y_(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?Sa(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 v_(t,e,n){var r=gt(t,f_,"stack"),o=e||A().Children.toArray(r.children),i=n||p_(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,i_(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=bt("x",t.horizontal),o=n.domain.x,i=n.range[r];return(Math.max.apply(Math,i_(o))-Math.min.apply(Math,i_(o)))/(Math.max.apply(Math,i_(i))-Math.min.apply(Math,i_(i)))*t.offset}(t,0,e);return(n-o)*i}(r,i,e,n),f="voronoi"===n||"tooltip"===n||"label"===n?t.props.style:Ob(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:y_(r,a[e],o),colorScale:d_(r,t),labelComponent:u||t.props.labelComponent,xOffset:o},l))}))}function m_(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?m_(Object(n),!0).forEach((function(e){b_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x_={width:450,height:300,padding:50,offset:0},O_={containerComponent:A().createElement(of,null),groupComponent:A().createElement("g",null),samples:50,standalone:!0,theme:Fp.grayscale},w_=function(t){var e=null==j_?void 0:j_.role,n=nb(),r=n.getAnimationProps,o=n.setAnimationState,i=n.getProps,a=A().useMemo((function(){return g_(g_({},O_),t)}),[t]),u=i(a),c=gt(u,x_,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=h_(c),w=O.domain,_=O.scale,j=O.style,P=O.origin,M=A().useMemo((function(){return v_(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:w,scale:_,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 cs(a)}),[a]),S=A().useMemo((function(){if(f){var t=nt()({},s.props,E,C);return A().cloneElement(s,t)}return A().cloneElement(p,C)}),[p,f,s,E,C]),k=A().useMemo((function(){return gb(u)}),[u]),D=Mb(a);return A().useEffect((function(){return function(){a.animate&&o(D,u)}}),[o,D,a,u]),z()(k)?A().cloneElement(S,S.props,M):A().createElement(Bb,{container:S,eventKey:l,events:k,externalEventMutations:h},M)},__={role:"group",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:v_},j_=Object.assign(A().memo(w_,vh()),__);j_.displayName="VictoryGroup";var P_=Array.prototype,A_=P_.slice;function M_(t){return()=>t}function E_(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 C_(t){return t}function S_(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 k_(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 D_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k_(Object(n),!0).forEach((function(e){T_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function T_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function R_(t){return function(t){if(Array.isArray(t))return L_(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 L_(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)?L_(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 L_(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_.map;var I_,N_,z_,B_,W_=(I_=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=mt(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=mt(t.x||"x"),i=function(){var t=C_,e=E_,n=S_;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===E_&&([s,f]=function(t,e,n){let r;for(;;){const o=Yt(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=$t(s,f,n))[0]<=s&&(a=Yt(s,f,n)),p[p.length-1]>=f)if(t>=f&&e===E_){const t=Yt(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[oe(p,i,0,h)].push(r[o]);return y}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:M_(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:M_([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?M_(A_.call(t)):M_(t),r):n},r}().value(o),a=(r?Ri():Mn()).domain(E_(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 R_(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:R_(t)}}))},B_=!1,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(B_&&vh()(N_,e))return z_;var r=I_.apply(void 0,e);return B_=!0,z_=r,N_=e,r}),U_=function(t){var e=t.bins,n=t.data,r=t.x,o=(null==n?void 0:n.some((function(t){var e=t._y;return!E()(e)})))?n:W_({data:n,x:r,bins:e});return Sa(D_(D_({},t),{},{data:o,x:"x"}))},V_=function(t,e){var n,r=U_(t);if(!r.length)return[0,1];if("x"===e){var o=r[0],i=r[r.length-1];return Za(D_(D_({},t),{},{data:[{x:o.x0},{x:i.x1}],x:"x"}),"x")}return null!==(n=t.data)&&void 0!==n&&n.length?Za(D_(D_({},t),{},{data:r}),"y"):[0,1]};function F_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q_(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 H_(t,e){return H_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},H_(t,e)}function G_(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 K_(t){return K_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},K_(t)}var $_={width:450,height:300,padding:50},Y_=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&&H_(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=K_(r);if(o){var n=K_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return G_(this,t)});function a(){return F_(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=gt(this.props,$_,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ls(o,n)}}])&&q_(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Y_.animationWhitelist=["data","domain","height","padding","style","width"],Y_.displayName="VictoryHistogram",Y_.role="histogram",Y_.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}}}},Y_.getFormattedData=W_,Y_.defaultProps={containerComponent:A().createElement(of,null),data:[],dataComponent:A().createElement(gv,null),groupComponent:A().createElement("g",{role:"presentation"}),labelComponent:A().createElement(Pp,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Fp.grayscale},Y_.getDomain=V_,Y_.getData=U_,Y_.getBaseProps=function(t){return function(t,e){var n=gt(t,e,"histogram"),r=Object.assign({},n,function(t){var e=ct(t,"histogram"),n=lt(t.style,e),r=t.range||{x:vt(t,"x"),y:vt(t,"y")},o={x:V_(t,"x"),y:V_(t,"y")},i=U_(t);return{style:n,data:i=ja(i,o,0),scale:{x:na(t,"x").domain(o.x).range(t.horizontal?r.y:r.x),y:na(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,w={parent:{horizontal:s,domain:u,scale:p,width:m,height:l,data:a,standalone:d,name:b,theme:v,padding:f,style:y.parent}},_=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=E()(e.eventKey)?n:e.eventKey,f=Ky(r,e),d=f.x,v=f.y,b=f.y0,w=f.x0,j=function(t){return o?_(t)-o:_(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:w,getPath:x,disableInlineStyles:O};return t[u]={data:P},(null!=ru(r,e,n)||g&&(c||h))&&(t[u].labels=cu(r,n)),t}),w)}(t,$_)},Y_.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var X_=Rd(Y_),Z_=r(8825),Q_=r.n(Z_),J_=r(5367),tj=r.n(J_);function ej(t){return function(t){if(Array.isArray(t))return nj(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 nj(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)?nj(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 nj(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 rj(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 oj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rj(Object(n),!0).forEach((function(e){ij(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ij(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var aj=function(t){var e=t.data,n=t.style;return e.map((function(t,r){return ft(nt()({},t.labels,n.labels),{datum:t,index:r,data:e})}))},uj=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:nt()(n.parent,e.parent,r),data:nt()({},n.data,e.data),labels:nt()({},n.labels,e.labels),border:nt()({},n.border,e.border),title:nt()({},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?Ff(e):e||[]}(t),i="horizontal"===e,a=at({padding:t.borderPadding});return Object.assign({},t,{style:r,isHorizontal:i,colorScale:o,borderPadding:a})},cj=function(t,e){var n=t.itemsPerRow,r=t.isHorizontal;return n?r?e%n:Math.floor(e/n):r?e:0},lj=function(t,e){var n=t.itemsPerRow,r=t.isHorizontal;return n?r?Math.floor(e/n):e%n:r?0:e},sj=function(t){var e=t.data,n=t.style&&t.style.data||{},r=aj(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 oj(oj({},e),{},{size:u,symbolSpacer:c,fontSize:a,textSize:lp(e.name,r[o]),column:cj(t,o),row:lj(t,o)})}))},fj=function(t,e){var n=t.gutter||{},r="object"==typeof n?(n.left||0)+(n.right||0):n||0,o=Wv()(e,"column");return Q()(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,ej(i)),t}),[])},pj=function(t,e){var n=t.rowGutter||{},r="object"==typeof n?(n.top||0)+(n.bottom||0):n||0,o=Wv()(e,"row");return Q()(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,ej(i)),t}),[])},hj=function(t){var e=t.style&&t.style.title||{},n=lp(t.title,e),r=e.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},dj=function(t,e){var n=gt(t,e,"legend"),r=Object.assign({},n,uj(n)),o=r.title,i=r.titleOrientation,a=sj(r),u=fj(r,a),c=pj(r,a),l=o?hj(r):{height:0,width:0};return{height:"left"===i||"right"===i?Math.max(tj()(c),l.height):tj()(c)+l.height,width:"left"===i||"right"===i?tj()(u)+l.width:Math.max(tj()(u),l.width)}},yj=function(t,e){var n=gt(t,e,"legend"),r=Object.assign({},n,uj(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=sj(r),O=fj(r,x),w=pj(r,x),_=aj(r),j=h?hj(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,C=f&&"object"==typeof f&&f.top||0,S=dj(r,e),k=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,S.height,S.width),D=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 nt()({},t,o,a)})):nt()({},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,k),T={parent:{data:o,standalone:i,theme:a,padding:u,name:y,height:r.height,width:r.width,style:c.parent},all:{border:k,title:D}};return x.reduce((function(t,e,n){var r=l[n%l.length],i=nt()({},e.symbol,c.data,{fill:r}),a=E()(e.eventKey)?n:e.eventKey,u=function(t,e,n){var r=t.column,o=t.row;return{x:Q_()(r).reduce((function(t,e){return t+n[e]}),0),y:Q_()(o).reduce((function(t,n){return t+e[n]}),0)}}(e,w,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+C,x:f+u.x+P+M},d={datum:e,data:o,text:e.name,style:_[n],y:h.y,x:h.x+e.symbolSpacer+e.size/2};return t[a]={data:h,labels:d},t}),T)};function vj(t){return function(t){if(Array.isArray(t))return mj(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 mj(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)?mj(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 mj(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 gj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bj(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 xj(t,e){return xj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xj(t,e)}function Oj(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 wj(t){return wj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wj(t)}var _j={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},jj=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&&xj(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=wj(r);if(o){var n=wj(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Oj(this,t)});function a(){return gj(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,vj(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,vj(f))}return i}},{key:"render",value:function(){var t=this.constructor.role,e=gt(this.props,_j,t),n=this.renderChildren(e);return e.standalone?this.renderContainer(e.containerComponent,n):A().cloneElement(e.groupComponent,{},n)}}])&&bj(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);jj.displayName="VictoryLegend",jj.role="legend",jj.defaultProps={borderComponent:A().createElement(kv,null),data:[{name:"Series 1"},{name:"Series 2"}],containerComponent:A().createElement(of,null),dataComponent:A().createElement(Nx,null),groupComponent:A().createElement("g",null),labelComponent:A().createElement(Pp,null),standalone:!0,theme:Fp.grayscale,titleComponent:A().createElement(Pp,null)},jj.getBaseProps=function(t){return yj(t,_j)},jj.getDimensions=function(t){return dj(t,_j)},jj.expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];var Pj=Rd(jj);function Aj(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 Mj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Aj(Object(n),!0).forEach((function(e){Ej(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Aj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ej(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cj={pathComponent:A().createElement(es,null),role:"presentation",shapeRendering:"auto"},Sj=function(t){var e=function(t){var e=st(t.ariaLabel,t),n=st(t.id,t),r=ft(Object.assign({fill:"none",stroke:"black",pointerEvents:"stroke"},t.style),t),o=st(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,id:n,style:r,tabIndex:o})}(Mj(Mj({},Cj),t)),n=cs(e),r=e.polar,o=e.origin,i=Xl(e),a=r&&o?"translate(".concat(o.x,", ").concat(o.y,")"):void 0,u=i(e.data);return A().cloneElement(e.pathComponent,Mj(Mj(Mj({},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 kj(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 Dj(t,e){return Dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dj(t,e)}function Tj(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 Lj={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&&Dj(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 Tj(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=gt(this.props,Lj,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderContinuousData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ls(o,n)}}])&&kj(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(of,null),dataComponent:A().createElement(Sj,null),labelComponent:A().createElement(Pp,{renderInPortal:!0}),groupComponent:A().createElement(Af,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Fp.grayscale},Ij.getDomain=Ga,Ij.getData=Sa,Ij.getBaseProps=function(t){return function(t,e){var n=gt(t,e,"line"),r=Object.assign({},n,function(t){var e=Sa(t);e.length<2&&(e=[]);var n={x:vt(t,"x"),y:vt(t,"y")},r={x:Ga(t,"x"),y:Ga(t,"y")},o={x:na(t,"x").domain(r.x).range(t.horizontal?n.y:n.x),y:na(t,"y").domain(r.y).range(t.horizontal?n.x:n.y)},i=t.polar?t.origin||yt(t):void 0,a=ct(t,"line");return{domain:r,data:e,scale:o,style:lt(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,w=r.disableInlineStyles,_={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:w?{}:m.data,theme:g,disableInlineStyles:w}}};return o.reduce((function(t,e,n){return(null!=ru(r,e,n)||x&&(a||y))&&(t[E()(e.eventKey)?n:e.eventKey]={labels:cu(r,n)}),t}),_)}(t,Lj)},Ij.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var Nj=Rd(Ij,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]}),zj=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)},Bj=function(t,e){return t*function(t){return Math.cos(t-pt(90))}(e)},Wj=function(t,e){return t*function(t){return Math.sin(t-pt(90))}(e)},Uj=function(t){return t.reduce((function(t,e){return t+e}),0)/t.length},Vj=function(t,e){var n=gt(t,e,"pie"),r=function(t){var e=t.colorScale,n=ct(t,"pie"),r=lt(t.style,n),o=Array.isArray(e)?e:Ff(e),i=at(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=q()(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=Sa(t),l=function(t,e){var n=G()(t.padAngle)?0:t.padAngle;return tc().sort(null).startAngle(pt(t.startAngle)).endAngle(pt(t.endAngle)).padAngle(pt(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,w={parent:{standalone:d,height:p,width:h,slices:o,name:y,style:i.parent}};return o.reduce((function(t,e,o){var i=nt()({},a[o],{startAngle:ht(e.startAngle),endAngle:ht(e.endAngle),padAngle:ht(e.padAngle)}),c=E()(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?{}:zj(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]:G()(t.labels)?t.labels:e.xName||e._x)||G()(r)?r:"".concat(r);var r}(n,i,o);if(null!=h||l&&(s||f)){var d=st(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=st(n.labelRadius,Object.assign({text:t},e)),y=st(n.labelPosition,Object.assign({text:t},e))||"centroid",v=st(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,ft(m,Object.assign({labelRadius:d,text:t},e))),b=function(t){return Zu().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:ht("centroid"===e?(t.startAngle+t.endAngle)/2:"startAngle"===e?t.startAngle:t.endAngle))<0?360-r:r)%360}(a,y,m),w=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),_=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"}(_),P=m.verticalAnchor||function(t){return"left"===t||"right"===t?"middle":"bottom"===t?"start":"end"}(_),A={width:p,height:h,index:r,datum:o,data:i,slice:a,orientation:_,text:t,style:m,x:Math.round(x[0])+f.x,y:Math.round(x[1])+f.y,textAnchor:j,verticalAnchor:P,angle:w,calculatedLabelRadius:g};if(!ut(u))return A;var M=c&&c.tooltip||{};return nt()({},A,rt(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=Uj([r,o]),y=Uj([u,a]),v=p/2,m=f/2,g=d+c,b=h-l,x={x1:v+Bj(g,y),y1:m+Wj(g,y),x2:v+Bj(b,y),y2:m+Wj(b,y),index:s};return nt()({},x)}(Object.assign({},n,p),r,y))}}return t}),w)};function Fj(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?Fj(Object(n),!0).forEach((function(e){Hj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fj(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 Gj=function(t){var e=t.slice,n=t.radius,r=t.innerRadius,o=t.cornerRadius;if(G()(t.pathFunction))return t.pathFunction(e);var i=pt(t.padAngle),a=pt(t.sliceStartAngle),u=pt(t.sliceEndAngle);return Zu().cornerRadius(o).outerRadius(n).innerRadius(r||0)(nt()({startAngle:a,endAngle:u,padAngle:i},e))},Kj={pathComponent:A().createElement(es,null),role:"presentation",shapeRendering:"auto"},$j=function(t){var e=function(t){var e=ft(t.style,t),n=st(t.radius,Object.assign({},t,{style:e})),r=st(t.innerRadius,Object.assign({},t,{style:e,radius:n})),o=st(t.ariaLabel,t),i=st(t.id,t),a=st(t.cornerRadius,t),u=st(t.padAngle,t),c=st(t.sliceStartAngle,t),l=st(t.sliceEndAngle,t),s=st(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})}(qj(qj({},Kj),t)),n=e.origin?"translate(".concat(e.origin.x,", ").concat(e.origin.y,")"):void 0;return A().cloneElement(e.pathComponent,qj(qj({},e.events),{},{"aria-label":e.ariaLabel,d:Gj(e),style:e.style,transform:e.transform||n,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};function Yj(t){return function(t){if(Array.isArray(t))return Xj(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 Xj(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)?Xj(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 Xj(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 Zj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qj(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 Jj(t,e){return Jj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jj(t,e)}function tP(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 eP(t){return eP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eP(t)}var nP={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},rP=function(t){return!E()(t._x)&&!E()(t._y)},oP=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&&Jj(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=eP(r);if(o){var n=eP(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return tP(this,t)});function a(){return Zj(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]:rP,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,Yj(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,Yj(f))}if(c&&a){var p=A().createElement(xy,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,Yj(h))}return this.renderContainer(i,l)}},{key:"render",value:function(){var t=iP.animationWhitelist,e=iP.role,n=gt(this.props,nP,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderComponents(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ls(o,n)}}],n&&Qj(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);oP.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],oP.displayName="VictoryPie",oP.role="pie",oP.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}}}},oP.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($j,null),labelComponent:A().createElement(Pp,null),containerComponent:A().createElement(of,null),groupComponent:A().createElement("g",null),sortOrder:"ascending",theme:Fp.grayscale},oP.getBaseProps=function(t){return Vj(t,nP)},oP.getData=Sa,oP.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];var iP=Rd(oP);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=function(t,e){return e.bubbleProperty?"circle":t.symbol||e.symbol},lP=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,aP(u)),l=Math.max.apply(Math,aP(u)),s=i||(n=Math.min.apply(Math,aP(qd()(at(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 sP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fP(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 pP(t,e){return pP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pP(t,e)}function hP(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 dP(t){return dP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dP(t)}var yP={width:450,height:300,padding:50,size:3,symbol:"circle"},vP=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&&pP(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=dP(r);if(o){var n=dP(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return hP(this,t)});function a(){return sP(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=mP.animationWhitelist,e=mP.role,n=gt(this.props,yP,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ls(o,n)}}])&&fP(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);vP.animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"],vP.displayName="VictoryScatter",vP.role="scatter",vP.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}}},vP.defaultProps={containerComponent:A().createElement(of,null),dataComponent:A().createElement(Nx,null),labelComponent:A().createElement(Pp,null),groupComponent:A().createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Fp.grayscale},vP.getDomain=Ga,vP.getData=Sa,vP.getBaseProps=function(t){return function(t,e){var n=gt(t,e,"scatter"),r=Object.assign({},n,function(t){var e=ct(t,"scatter"),n=lt(t.style,e),r={x:vt(t,"x"),y:vt(t,"y")},o={x:Ga(t,"x"),y:Ga(t,"y")},i={x:na(t,"x").domain(o.x).range(t.horizontal?r.y:r.x),y:na(t,"y").domain(o.y).range(t.horizontal?r.x:r.y)},a=t.polar?t.origin||yt(t):void 0,u=t.bubbleProperty||"z",c=Sa(t);return{domain:o,data:c=ja(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=E()(e.eventKey)?n:e.eventKey,u=it(r,e),l={x:u.x,y:u.y,datum:e,data:o,index:n,scale:f,polar:s,origin:c,horizontal:b,size:lP(e,r),symbol:cP(e,r),style:x?{}:y.data,disableInlineStyles:x};return t[i]={data:l},(null!=ru(r,e,n)||g&&(a||h))&&(t[i].labels=cu(r,n)),t}),O)}(t,yP)},vP.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var mP=Rd(vP);function gP(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 bP(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 xP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bP(Object(n),!0).forEach((function(e){OP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function OP(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wP={width:450,height:300,padding:50};function _P(t,e){var n=fb(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=Q()(r).map((function(t){return Number(t)})),i=W()(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 jP(t,e){var n=e||A().Children.toArray(t.children),r="stack",o=gt(t,wP,r),i=xb(o.theme,o.style,r),a=o.categories||Ab(o,n),u=o.datasets||_P(o,n),c=n.map((function(t,e){return A().cloneElement(t,{data:u[e]})})),l={x:vb(Object.assign({},o,{categories:a}),"x",c),y:vb(Object.assign({},o,{categories:a}),"y",c)},s=o.range||{x:vt(o,"x"),y:vt(o,"y")},f={x:oa(o,"x")||mb(o,"x"),y:oa(o,"y")||mb(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 PP(t){var e,n,r=function(t){var e=t.children,n=A().Children.toArray(e).map((function(t){var e=t;return xP(xP({},e),{},{props:rt(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 gP(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)?gP(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(){vh()(r,i)||a(r)}),[i,a,r]),A().useMemo((function(){return jP(i,i.children)}),[i])}function AP(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 MP(t,e,n){var r=gt(t,wP,"stack"),o=e||A().Children.toArray(r.children),i=n||jP(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:at(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=Ob(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:AP(r,t),data:o,polar:r.polar},u))}))}function EP(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 CP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?EP(Object(n),!0).forEach((function(e){SP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function SP(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kP={width:450,height:300,padding:50},DP={containerComponent:A().createElement(of,null),groupComponent:A().createElement("g",null),standalone:!0,theme:Fp.grayscale,fillInMissingData:!0},TP=function(t){var e=LP.role,n=A().useMemo((function(){return CP(CP({},DP),t)}),[t]),r=nb(),o=r.setAnimationState,i=r.getAnimationProps,a=(0,r.getProps)(n),u=gt(a,kP,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=PP(u),O=x.domain,w=x.scale,_=x.style,j=A().useMemo((function(){return MP(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:w,width:h,height:d,standalone:s,theme:y,style:_.parent,horizontal:m,polar:v,name:g}:{}}),[s,O,w,h,d,y,_,m,v,g]),M=A().useMemo((function(){return cs(n)}),[n]),E=A().useMemo((function(){if(s){var t=nt()({},l.props,P,M);return A().cloneElement(l,t)}return A().cloneElement(f,M)}),[f,s,l,P,M]),C=A().useMemo((function(){return gb(a)}),[a]),S=Mb(n);return A().useEffect((function(){return function(){n.animate&&o(S,n)}}),[o,S,n]),z()(C)?A().cloneElement(E,E.props,j):A().createElement(Bb,{container:E,eventKey:c,events:C,externalEventMutations:p},j)},RP={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:MP},LP=Object.assign(A().memo(TP,vh()),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 NP(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){zP(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 zP(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}LP.displayName="VictoryStack";var BP={pathComponent:A().createElement(es,null),circleComponent:A().createElement(ff,null),clipPathComponent:A().createElement(af,null),groupComponent:A().createElement("g",null),role:"presentation",shapeRendering:"auto"},WP=function(t){var e=function(t){var e=st(t.ariaLabel,t),n=st(t.id,t),r=st(t.size,t),o=ft(t.style,t),i=st(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,id:n,size:r,style:o,tabIndex:i})}(NP(NP({},BP),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=NP({"aria-label":n,className:i,role:r,shapeRendering:o,style:c,tabIndex:s,transform:u},a),h=cs(e);if(l){var d=A().cloneElement(e.circleComponent,NP(NP({},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,NP(NP(NP({},p),h),{},{d:f}))};function UP(t){return function(){return t}}function VP(t){return t[0]}function FP(t){return t[1]}function qP(){this._=null}function HP(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function GP(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 KP(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 $P(t){for(;t.L;)t=t.L;return t}qP.prototype={constructor:qP,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=$P(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&&(GP(this,n),n=(t=n).U),n.C=!1,r.C=!0,KP(this,r)):(o=r.L)&&o.C?(n.C=o.C=!1,r.C=!0,t=r):(t===n.L&&(KP(this,n),n=(t=n).U),n.C=!1,r.C=!0,GP(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?$P(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,GP(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,KP(this,e),e=o.R),e.C=o.C,o.C=e.R.C=!1,GP(this,o),t=this._;break}}else if((e=o.L).C&&(e.C=!1,o.C=!0,KP(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,GP(this,e),e=o.L),e.C=o.C,o.C=e.L.C=!1,KP(this,o),t=this._;break}e.C=!0,t=o,o=o.U}while(!t.C);t&&(t.C=!1)}}};const YP=qP;function XP(t,e,n,r){var o=[null,null],i=xA.push(o)-1;return o.left=t,o.right=e,n&&QP(o,t,e,n),r&&QP(o,e,t,r),gA[t.index].halfedges.push(i),gA[e.index].halfedges.push(i),o}function ZP(t,e,n){var r=[e,n];return r.left=t,r}function QP(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 JP(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 tA(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 eA(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 nA(t,e){return e[+(e.left!==t.site)]}function rA(t,e){return e[+(e.left===t.site)]}var oA,iA=[];function aA(){HP(this),this.x=this.y=this.arc=this.site=this.cy=null}function uA(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>=-wA)){var h=c*c+l*l,d=s*s+f*f,y=(f*h-l*d)/p,v=(c*d-s*h)/p,m=iA.pop()||new aA;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=bA._;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}bA.insert(g,m),g||(oA=m)}}}}function cA(t){var e=t.circle;e&&(e.P||(oA=e.N),bA.remove(e),iA.push(e),HP(e),t.circle=null)}var lA=[];function sA(){HP(this),this.edge=this.site=this.circle=null}function fA(t){var e=lA.pop()||new sA;return e.site=t,e}function pA(t){cA(t),mA.remove(t),lA.push(t),HP(t)}function hA(t){var e=t.circle,n=e.x,r=e.cy,o=[n,r],i=t.P,a=t.N,u=[t];pA(t);for(var c=i;c.circle&&Math.abs(n-c.circle.x)<OA&&Math.abs(r-c.circle.cy)<OA;)i=c.P,u.unshift(c),pA(c),c=i;u.unshift(c),cA(c);for(var l=a;l.circle&&Math.abs(n-l.circle.x)<OA&&Math.abs(r-l.circle.cy)<OA;)a=l.N,u.push(l),pA(l),l=a;u.push(l),cA(l);var s,f=u.length;for(s=1;s<f;++s)l=u[s],c=u[s-1],QP(l.edge,c.site,l.site,o);c=u[0],(l=u[f-1]).edge=XP(c.site,l.site,null,o),uA(c),uA(l)}function dA(t){for(var e,n,r,o,i=t[0],a=t[1],u=mA._;u;)if((r=yA(u,a)-i)>OA)u=u.L;else{if(!((o=i-vA(u,a))>OA)){r>-OA?(e=u.P,n=u):o>-OA?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){gA[t.index]={site:t,halfedges:[]}}(t);var c=fA(t);if(mA.insert(e,c),e||n){if(e===n)return cA(e),n=fA(e.site),mA.insert(c,n),c.edge=n.edge=XP(e.site,c.site),uA(e),void uA(n);if(n){cA(e),cA(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];QP(n.edge,l,d,x),c.edge=XP(l,t,null,x),n.edge=XP(t,d,null,x),uA(e),uA(n)}else c.edge=XP(e.site,c.site)}}function yA(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 vA(t,e){var n=t.N;if(n)return yA(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var mA,gA,bA,xA,OA=1e-6,wA=1e-12;function _A(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function jA(t,e){return e[1]-t[1]||e[0]-t[0]}function PA(t,e){var n,r,o,i=t.sort(jA).pop();for(xA=[],gA=new Array(t.length),mA=new YP,bA=new YP;;)if(o=oA,i&&(!o||i[1]<o.y||i[1]===o.y&&i[0]<o.x))i[0]===n&&i[1]===r||(dA(i),n=i[0],r=i[1]),i=t.pop();else{if(!o)break;hA(o.arc)}if(function(){for(var t,e,n,r,o=0,i=gA.length;o<i;++o)if((t=gA[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]=eA(t,xA[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=xA.length;i--;)tA(o=xA[i],t,e,n,r)&&JP(o,t,e,n,r)&&(Math.abs(o[0][0]-o[1][0])>OA||Math.abs(o[0][1]-o[1][1])>OA)||delete xA[i]}(a,u,c,l),function(t,e,n,r){var o,i,a,u,c,l,s,f,p,h,d,y,v=gA.length,m=!0;for(o=0;o<v;++o)if(i=gA[o]){for(a=i.site,u=(c=i.halfedges).length;u--;)xA[c[u]]||c.splice(u,1);for(u=0,l=c.length;u<l;)d=(h=rA(i,xA[c[u]]))[0],y=h[1],f=(s=nA(i,xA[c[++u%l]]))[0],p=s[1],(Math.abs(d-f)>OA||Math.abs(y-p)>OA)&&(c.splice(u,0,xA.push(ZP(a,h,Math.abs(d-t)<OA&&r-y>OA?[t,Math.abs(f-t)<OA?p:r]:Math.abs(y-r)<OA&&n-d>OA?[Math.abs(p-r)<OA?f:n,r]:Math.abs(d-n)<OA&&y-e>OA?[n,Math.abs(f-n)<OA?p:e]:Math.abs(y-e)<OA&&d-t>OA?[Math.abs(p-e)<OA?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=gA[o])&&(x=(g=(a=i.site)[0]-t)*g+(b=a[1]-e)*b)<O&&(O=x,m=i);if(m){var w=[t,e],_=[t,r],j=[n,r],P=[n,e];m.halfedges.push(xA.push(ZP(a=m.site,w,_))-1,xA.push(ZP(a,_,j))-1,xA.push(ZP(a,j,P))-1,xA.push(ZP(a,P,w))-1)}}for(o=0;o<v;++o)(i=gA[o])&&(i.halfedges.length||delete gA[o])}(a,u,c,l)}this.edges=xA,this.cells=gA,mA=bA=xA=gA=null}function AA(t){return function(t){if(Array.isArray(t))return MA(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 MA(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)?MA(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 MA(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}PA.prototype={constructor:PA,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return nA(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&&_A(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 EA=function(t,e,n){var r=[Math.min.apply(Math,AA(e.x)),Math.min.apply(Math,AA(e.y))],o=[Math.max.apply(Math,AA(e.x)),Math.max.apply(Math,AA(e.y))];return function(){var t=VP,e=FP,n=null;function r(r){return new PA(r.map((function(n,o){var i=[Math.round(t(n,o,r)/OA)*OA,Math.round(e(n,o,r)/OA)*OA];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:UP(+e),r):t},r.y=function(t){return arguments.length?(e="function"==typeof t?t:UP(+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 CA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function SA(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 kA(t,e){return kA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kA(t,e)}function DA(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 TA(t){return TA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},TA(t)}var RA={width:450,height:300,padding:50},LA=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&&kA(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=TA(r);if(o){var n=TA(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return DA(this,t)});function a(){return CA(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=gt(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 ls(o,n)}}])&&SA(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);LA.animationWhitelist=["data","domain","height","padding","samples","size","style","width"],LA.displayName="VictoryVoronoi",LA.role="voronoi",LA.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}}},LA.defaultProps={containerComponent:A().createElement(of,null),dataComponent:A().createElement(WP,null),labelComponent:A().createElement(Pp,null),groupComponent:A().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Fp.grayscale},LA.getDomain=Ga,LA.getData=Sa,LA.getBaseProps=function(t){return function(t,e){var n=gt(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=lt(t.style,e),r={x:vt(t,"x"),y:vt(t,"y")},o={x:Ga(t,"x"),y:Ga(t,"y")},i={x:na(t,"x").domain(o.x).range(t.horizontal?r.y:r.x),y:na(t,"y").domain(o.y).range(t.horizontal?r.x:r.y)},a=Sa(t);return{domain:o,data:a=(a=ja(a,o)).filter((function(t){return null!==t._x&&null!==t._y})),scale:i,style:n,polygons:EA(t,r,i).polygons(a),origin:t.polar?t.origin||yt(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=$p()(f[n],"data"),u=E()(e.eventKey)?n:e.eventKey,l=it(r,e),s={x:l.x,y:l.y,datum:e,data:o,index:n,scale:p,polygon:i,origin:c,size:r.size,style:y.data};return t[u]={data:s},(null!=ru(r,e,n)||g&&(a||h))&&(t[u].labels=cu(r,n)),t}),x)}(t,RA)},LA.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var IA=Rd(LA)})(),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,g=0;g<h;g++){var y=e[2*g],x=e[2*g+1];y<d&&(d=y),x<f&&(f=x),y>p&&(p=y),x>m&&(m=x),this._ids[g]=g}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,$=0;$<h;$++)if($!==v&&$!==b){var j=a(k,S,O,L,e[2*$],e[2*$+1]);j<T&&(_=$,T=j)}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],g=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*g],k=o[2*g+1],S=void 0,P=void 0,D=void 0,O=void 0,L=void 0,T=void 0,$=void 0,j=void 0,(S=b-E)*((O=C-k)*(j=(L=w-E)*L+(T=A-k)*T)-($=(D=M-E)*D+O*O)*T)-(P=_-k)*(D*j-$*L)+(S*S+P*P)*(D*T-O*L)<0){r[t]=g,r[l]=f;var y=i[d];if(-1===y){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,y),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),g=this._hullIndex.fill(-1),y=0,x=d.length;y<x;++y){var v=p[y%3==2?y-2:y+1];-1!==d[y]&&-1!==m[v]||(m[v]=y)}for(var b=0,_=f.length;b<_;++b)g[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)}},1377:function(t,n,e){var r=e(3273),i=e(5510),o=e(9955),a=e(8644),s=e(9110),l=e(9914);t.exports=function(t,n,e,c){var u=-1,h=i,d=!0,f=t.length,p=[],m=n.length;if(!f)return p;e&&(n=a(n,s(e))),c?(h=o,d=!1):n.length>=200&&(h=l,d=!1,n=new r(n));t:for(;++u<f;){var g=t[u],y=null==e?g:e(g);if(g=c||0!==g?g:0,d&&y==y){for(var x=m;x--;)if(n[x]===y)continue t;p.push(g)}else h(n,y,c)||p.push(g)}return p}},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}},4287:function(t,n,e){var r=e(2446);t.exports=function(t,n,e,i){return r(t,(function(t,r,o){n(i,e(t),r,o)})),i}},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,g,y){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 y||(y=new r),x||u(t)?i(t,n,e,m,g,y):o(t,n,b,e,m,g,y);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 y||(y=new r),g(k,S,e,m,y)}}return!!w&&(y||(y=new r),a(t,n,e,m,g,y))}},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}},991:function(t){t.exports=function(t,n){for(var e,r=-1,i=t.length;++r<i;){var o=n(t[r]);void 0!==o&&(e=void 0===e?o:e+o)}return e}},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 g=t[c],y=n?n(g):g;if(g=e||0!==g?g:0,d&&y==y){for(var x=p.length;x--;)if(p[x]===y)continue t;n&&p.push(y),f.push(g)}else u(p,y,e)||(p!==f&&p.push(y),f.push(g))}return f}},5803:function(t,n,e){var r=e(8644);t.exports=function(t,n){return r(n,(function(n){return t[n]}))}},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}}))}},1093:function(t,n,e){var r=e(4287);t.exports=function(t,n){return function(e,i){return r(e,t,n(i),{})}}},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,g=2&e?new r:void 0;for(l.set(t,n),l.set(n,t);++p<u;){var y=t[p],x=n[p];if(a)var v=c?a(x,y,p,n,t,l):a(y,x,p,t,n,l);if(void 0!==v){if(v)continue;m=!1;break}if(g){if(!i(n,(function(t,n){if(!o(g,n)&&(y===t||s(y,t,e,a,l)))return g.push(n)}))){m=!1;break}}else if(y!==x&&!s(y,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 g=l;++h<u;){var y=t[d=c[h]],x=n[d];if(o)var v=l?o(x,y,d,n,t,s):o(y,x,d,t,n,s);if(!(void 0===v?y===x||a(y,x,e,o,s):v)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){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},1937:function(t){t.exports=function(t){return function(){return t}}},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,g=!1,y=!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||g&&t-p>=u}function _(){var t=i();if(b(t))return M(t);d=setTimeout(_,function(t){var e=n-(t-f);return g?s(e,u-(t-p)):e}(t))}function M(t){return d=void 0,y&&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(g)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=(g="maxWait"in e)?a(o(e.maxWait)||0,n):u,y="trailing"in e?!!e.trailing:y),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},6354:function(t,n,e){var r=e(1377),i=e(6457),o=e(6317),a=e(7605),s=o((function(t,n){return a(t)?r(t,i(n,1,a,!0)):[]}));t.exports=s},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}},6149:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},471:function(t,n,e){var r=e(1937),i=e(1093),o=e(5346),a=Object.prototype.toString,s=i((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=a.call(n)),t[n]=e}),r(o));t.exports=s},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)}},7605:function(t,n,e){var r=e(981),i=e(3474);t.exports=function(t){return i(t)&&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},5953:function(t,n,e){var r=e(563),i=e(163),o=e(3474);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},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}},1950:function(t){t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},4943:function(t,n,e){var r=e(8347),i=e(2446),o=e(3472);t.exports=function(t,n){var e={};return n=o(n,3),i(t,(function(t,i,o){r(e,i,n(t,i,o))})),e}},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},4397: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}},2829:function(t,n,e){var r=e(7556);t.exports=function(t){return t&&t.length?r(t):[]}},5367:function(t,n,e){var r=e(991),i=e(5346);t.exports=function(t){return t&&t.length?r(t,i):0}},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}},366:function(t,n,e){var r=e(5803),i=e(7747);t.exports=function(t){return null==t?[]:r(t,i(t))}},4882:function(t,n,e){var r=e(1377),i=e(6317),o=e(7605),a=i((function(t,n){return o(t)?r(t,n):[]}));t.exports=a},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 gg},Area:function(){return tu},Axis:function(){return b},Background:function(){return Rm},Bar:function(){return cp},Border:function(){return mp},Box:function(){return mp},BrushHelpers:function(){return Up},Candle:function(){return lm},CanvasBar:function(){return wm},CanvasCurve:function(){return Em},CanvasGroup:function(){return Am},CanvasPoint:function(){return Nm},Circle:function(){return Ou},ClipPath:function(){return Pu},Collection:function(){return n},CursorHelpers:function(){return vy},Curve:function(){return Px},Data:function(){return s},DefaultTransitions:function(){return g},Domain:function(){return l},ErrorBar:function(){return Dy},Events:function(){return y},Flyout:function(){return Jg},Helpers:function(){return t},Hooks:function(){return w},Immutable:function(){return a},LabelHelpers:function(){return c},Line:function(){return af},LineHelpers:function(){return h},LineSegment:function(){return lf},Log:function(){return f},Path:function(){return Uc},Point:function(){return Ug},PointPathHelpers:function(){return M},Portal:function(){return ou},PortalContext:function(){return au},RawZoomHelpers:function(){return dy},Rect:function(){return Tu},Scale:function(){return o},Selection:function(){return _},SelectionHelpers:function(){return gy},Slice:function(){return Wx},Style:function(){return p},TSpan:function(){return Ru},Text:function(){return zu},TextSize:function(){return m},Timer:function(){return wu},TimerContext:function(){return Eu},Transitions:function(){return v},UserProps:function(){return d},VictoryAccessibleGroup:function(){return Bg},VictoryAnimation:function(){return Bd},VictoryArea:function(){return rf},VictoryAxis:function(){return Hf},VictoryBar:function(){return fp},VictoryBoxPlot:function(){return Op},VictoryBrushContainer:function(){return qp},VictoryBrushLine:function(){return am},VictoryCandlestick:function(){return _m},VictoryChart:function(){return Wg},VictoryClipContainer:function(){return $u},VictoryContainer:function(){return Su},VictoryCursorContainer:function(){return _y},VictoryErrorBar:function(){return Wy},VictoryGroup:function(){return Xy},VictoryHistogram:function(){return cx},VictoryLabel:function(){return fh},VictoryLegend:function(){return kx},VictoryLine:function(){return Lx},VictoryPie:function(){return Ux},VictoryPolarAxis:function(){return Og},VictoryPortal:function(){return Nu},VictoryScatter:function(){return Yx},VictorySelectionContainer:function(){return xy},VictorySharedEvents:function(){return fg},VictoryStack:function(){return ov},VictoryTheme:function(){return Oh},VictoryTooltip:function(){return ny},VictoryTransition:function(){return Zd},VictoryVoronoi:function(){return Xv},VictoryVoronoiContainer:function(){return cy},VictoryZoomContainer:function(){return my},Voronoi:function(){return sv},VoronoiHelpers:function(){return sy},Whisker:function(){return yp},Wrapper:function(){return C},ZoomHelpers:function(){return fy},addEvents:function(){return tf},brushContainerMixin:function(){return Hp},combineContainerMixins:function(){return Cy},createContainer:function(){return Ey},cursorContainerMixin:function(){return by},getBarPath:function(){return ap},getBarPosition:function(){return qf},getBarWidth:function(){return Gf},getCornerRadius:function(){return Kf},getCustomBarPath:function(){return np},getHorizontalBarPath:function(){return ip},getPolarBarPath:function(){return sp},getStyle:function(){return Yf},getVerticalBarPath:function(){return rp},getVerticalPolarBarPath:function(){return op},makeCreateContainerFunction:function(){return Ay},selectionContainerMixin:function(){return yy},useCanvasContext:function(){return Cm},voronoiContainerMixin:function(){return ly},zoomContainerMixin:function(){return py}});var t={};r.r(t),r.d(t,{createAccessor:function(){return mt},degreesToRadians:function(){return lt},evaluateProp:function(){return at},evaluateStyle:function(){return st},getCurrentAxis:function(){return yt},getDefaultStyles:function(){return it},getPadding:function(){return et},getPoint:function(){return tt},getPolarOrigin:function(){return ht},getRadius:function(){return ut},getRange:function(){return dt},getStyles:function(){return ot},isFunction:function(){return pt},isHorizontal:function(){return bt},isNil:function(){return ft},isTooltip:function(){return rt},modifyProps:function(){return gt},omit:function(){return J},radiansToDegrees:function(){return ct},range:function(){return xt},reduceChildren:function(){return vt},scalePoint:function(){return nt}});var n={};r.r(n),r.d(n,{containsDates:function(){return Ct},containsNumbers:function(){return wt},containsOnlyStrings:function(){return At},containsStrings:function(){return Mt},getMaxValue:function(){return St},getMinValue:function(){return Pt},isArrayOfArrays:function(){return Et},removeUndefined:function(){return kt}});var e={};r.r(e),r.d(e,{scaleBand:function(){return Rt},scaleDiverging:function(){return Vo},scaleDivergingLog:function(){return Fo},scaleDivergingPow:function(){return Ho},scaleDivergingSqrt:function(){return qo},scaleDivergingSymlog:function(){return Uo},scaleIdentity:function(){return we},scaleImplicit:function(){return Nt},scaleLinear:function(){return Ce},scaleLog:function(){return Te},scaleOrdinal:function(){return zt},scalePoint:function(){return Wt},scalePow:function(){return Ve},scaleQuantile:function(){return tr},scaleQuantize:function(){return nr},scaleRadial:function(){return qe},scaleSequential:function(){return $o},scaleSequentialLog:function(){return jo},scaleSequentialPow:function(){return zo},scaleSequentialQuantile:function(){return Io},scaleSequentialSqrt:function(){return Ro},scaleSequentialSymlog:function(){return No},scaleSqrt:function(){return Fe},scaleSymlog:function(){return ze},scaleThreshold:function(){return er},scaleTime:function(){return Do},scaleUtc:function(){return Oo},tickFormat:function(){return _e}});var o={};r.r(o),r.d(o,{getBaseScale:function(){return Qo},getDefaultScale:function(){return Jo},getScaleFromName:function(){return Zo},getScaleFromProps:function(){return ta},getScaleType:function(){return na},getType:function(){return ra},validScale:function(){return Ko}});var a={};r.r(a),r.d(a,{IMMUTABLE_ITERABLE:function(){return ia},IMMUTABLE_LIST:function(){return aa},IMMUTABLE_MAP:function(){return sa},IMMUTABLE_RECORD:function(){return oa},isImmutable:function(){return ua},isIterable:function(){return la},isList:function(){return ha},isMap:function(){return da},isRecord:function(){return ca},shallowToJS:function(){return fa}});var s={};r.r(s),r.d(s,{createStringMap:function(){return va},downsample:function(){return ba},formatData:function(){return _a},formatDataFromDomain:function(){return xa},generateData:function(){return Ma},getCategories:function(){return Ca},getData:function(){return wa},getStringsFromAxes:function(){return Aa},getStringsFromCategories:function(){return Ea},getStringsFromData:function(){return ka},isDataComponent:function(){return Sa}});var l={};r.r(l),r.d(l,{createDomainFunction:function(){return Na},formatDomain:function(){return za},getDomain:function(){return Ra},getDomainFromCategories:function(){return Ia},getDomainFromData:function(){return Wa},getDomainFromMinMax:function(){return Ba},getDomainFromProps:function(){return Va},getDomainWithZero:function(){return Fa},getMaxFromProps:function(){return Ua},getMinFromProps:function(){return Ha},getSymmetricDomain:function(){return qa},isDomainComponent:function(){return Ga}});var c={};r.r(c),r.d(c,{getDegrees:function(){return Ja},getPolarAngle:function(){return Qa},getPolarTextAnchor:function(){return Xa},getPolarVerticalAnchor:function(){return Za},getProps:function(){return ts},getText:function(){return Ya}});var u={};r.r(u),r.d(u,{arc:function(){return Fs},area:function(){return gs},areaRadial:function(){return Ms},curveBasis:function(){return Nl},curveBasisClosed:function(){return Rl},curveBasisOpen:function(){return Wl},curveBumpX:function(){return Xs},curveBumpY:function(){return Zs},curveBundle:function(){return Vl},curveCardinal:function(){return Hl},curveCardinalClosed:function(){return Gl},curveCardinalOpen:function(){return Yl},curveCatmullRom:function(){return Ql},curveCatmullRomClosed:function(){return tc},curveCatmullRomOpen:function(){return ec},curveLinear:function(){return ds},curveLinearClosed:function(){return ic},curveMonotoneX:function(){return dc},curveMonotoneY:function(){return fc},curveNatural:function(){return gc},curveStep:function(){return xc},curveStepAfter:function(){return bc},curveStepBefore:function(){return vc},line:function(){return ms},lineRadial:function(){return _s},link:function(){return nl},linkHorizontal:function(){return el},linkRadial:function(){return il},linkVertical:function(){return rl},pie:function(){return qs},pointRadial:function(){return Gs},radialArea:function(){return Ms},radialLine:function(){return _s},stack:function(){return Ac},stackOffsetDiverging:function(){return kc},stackOffsetExpand:function(){return Ec},stackOffsetNone:function(){return _c},stackOffsetSilhouette:function(){return Sc},stackOffsetWiggle:function(){return Pc},stackOrderAppearance:function(){return Dc},stackOrderAscending:function(){return Lc},stackOrderDescending:function(){return $c},stackOrderInsideOut:function(){return jc},stackOrderNone:function(){return Mc},stackOrderReverse:function(){return Nc},symbol:function(){return Ll},symbolAsterisk:function(){return al},symbolCircle:function(){return sl},symbolCross:function(){return ll},symbolDiamond:function(){return hl},symbolDiamond2:function(){return dl},symbolPlus:function(){return fl},symbolSquare:function(){return pl},symbolSquare2:function(){return ml},symbolStar:function(){return vl},symbolTriangle:function(){return _l},symbolTriangle2:function(){return Cl},symbolWye:function(){return Sl},symbolX:function(){return Pl},symbols:function(){return Dl},symbolsFill:function(){return Dl},symbolsStroke:function(){return Ol}});var h={};r.r(h),r.d(h,{getInterpolationFunction:function(){return Bc},getLineFunction:function(){return Vc}});var d={};r.r(d),r.d(d,{assert:function(){return qc},getSafeUserProps:function(){return Gc},withSafeUserProps:function(){return Kc}});var f={};r.r(f),r.d(f,{warn:function(){return ju}});var p={};r.r(p),r.d(p,{getColorScale:function(){return Wu},toTransformString:function(){return Iu}});var m={};r.r(m),r.d(m,{_approximateTextSizeInternal:function(){return nh},approximateTextSize:function(){return eh},convertLengthToPixels:function(){return Yu}});var g={};r.r(g),r.d(g,{continuousPolarTransitions:function(){return Th},continuousTransitions:function(){return Lh},discreteTransitions:function(){return $h}});var y={};r.r(y),r.d(y,{emulateReactEvent:function(){return Jh},getComponentEvents:function(){return Yh},getEventState:function(){return Hh},getEvents:function(){return Vh},getExternalMutation:function(){return Kh},getExternalMutations:function(){return Gh},getExternalMutationsWithChildren:function(){return qh},getGlobalEventNameFromKey:function(){return Xh},getGlobalEvents:function(){return Zh},getPartialEvents:function(){return Uh},getScopedEvents:function(){return Fh},omitGlobalEvents:function(){return Qh}});var x={};r.r(x),r.d(x,{easeBack:function(){return Od},easeBackIn:function(){return Pd},easeBackInOut:function(){return Od},easeBackOut:function(){return Dd},easeBounce:function(){return Ed},easeBounceIn:function(){return Ad},easeBounceInOut:function(){return kd},easeBounceOut:function(){return Ed},easeCircle:function(){return Cd},easeCircleIn:function(){return _d},easeCircleInOut:function(){return Cd},easeCircleOut:function(){return Md},easeCubic:function(){return ld},easeCubicIn:function(){return ad},easeCubicInOut:function(){return ld},easeCubicOut:function(){return sd},easeElastic:function(){return $d},easeElasticIn:function(){return Td},easeElasticInOut:function(){return jd},easeElasticOut:function(){return $d},easeExp:function(){return bd},easeExpIn:function(){return xd},easeExpInOut:function(){return bd},easeExpOut:function(){return vd},easeLinear:function(){return ed},easePoly:function(){return hd},easePolyIn:function(){return cd},easePolyInOut:function(){return hd},easePolyOut:function(){return ud},easeQuad:function(){return od},easeQuadIn:function(){return rd},easeQuadInOut:function(){return od},easeQuadOut:function(){return id},easeSin:function(){return gd},easeSinIn:function(){return pd},easeSinInOut:function(){return gd},easeSinOut:function(){return md}});var v={};r.r(v),r.d(v,{getInitialTransitionState:function(){return Kd},getTransitionPropsFactory:function(){return Yd}});var b={};r.r(b),r.d(b,{findAxisComponents:function(){return pf},getAxis:function(){return ff},getAxisComponent:function(){return mf},getAxisComponentsWithParent:function(){return gf},getAxisValue:function(){return kf},getDomain:function(){return Ef},getOrigin:function(){return yf},getOriginSign:function(){return xf},getTickFormat:function(){return Mf},getTicks:function(){return wf},isVertical:function(){return vf},modifyProps:function(){return Sf},stringTicks:function(){return bf}});var _={};r.r(_),r.d(_,{getBounds:function(){return Rp},getDataCoordinates:function(){return zp},getDomainCoordinates:function(){return Np},getParentSVG:function(){return $p},getSVGEventCoordinates:function(){return jp}});var M={};r.r(M),r.d(M,{circle:function(){return km},cross:function(){return Tm},diamond:function(){return Pm},minus:function(){return $m},plus:function(){return Lm},square:function(){return Sm},star:function(){return jm},triangleDown:function(){return Dm},triangleUp:function(){return Om}});var C={};r.r(C),r.d(C,{addBinsToParentPropsIfHistogram:function(){return Hm},getAllEvents:function(){return Jm},getCategories:function(){return sg},getCategoryAndAxisStringsFromChildren:function(){return og},getChildStyle:function(){return eg},getColor:function(){return tg},getData:function(){return Gm},getDataFromChildren:function(){return qm},getDefaultDomainPadding:function(){return Ym},getDomain:function(){return Zm},getDomainFromChildren:function(){return Xm},getScale:function(){return Qm},getStringsFromCategories:function(){return rg},getStringsFromChildren:function(){return ag},getStringsFromData:function(){return ig},getStyle:function(){return ng},getWidth:function(){return Km}});var w={};r.r(w),r.d(w,{useAnimationState:function(){return Vm},usePreviousProps:function(){return lg}});var A=r(9787),E=r.n(A),k=r(1616),S=r.n(k),P=r(8999),D=r.n(P),O=r(6149),L=r.n(O),T=r(8254),$=r.n(T),j=r(4155),N=r.n(j),z=r(4143),R=r.n(z),I=r(8532),W=r.n(I),B=r(3849),V=r.n(B),F=r(1950),U=r.n(F),H=r(9602),q=r.n(H),G=r(7747),K=r.n(G),Y=r(9082),X=r.n(Y),Z=r(1893),Q=r.n(Z);function J(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 tt(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 nt(t,n){const{scale:e,polar:r,horizontal:i}=t,o=tt(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 et(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 rt(t){return"tooltip"===(t&&t.type&&t.type.role)}function it(t,n){const{theme:e={},labelComponent:r}=t,i=e[n]&&e[n].style||{};if(!rt(r))return i;const o=e.tooltip&&e.tooltip.style||{},a=Q()({},o,i.labels);return Q()({},{labels:a},i)}function ot(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 at(t,n){return pt(t)?t(n):t}function st(t,n){return n.disableInlineStyles?{}:t&&K()(t).some((n=>pt(t[n])))?K()(t).reduce(((e,r)=>(e[r]=at(t[r],n),e)),{}):t}function lt(t){return"number"==typeof t?t*(Math.PI/180):t}function ct(t){return"number"==typeof t?t/(Math.PI/180):t}function ut(t){const{left:n,right:e,top:r,bottom:i}=et(t),{width:o,height:a}=t;return Math.min(o-n-e,a-r-i)/2}function ht(t){const{width:n,height:e}=t,{top:r,bottom:i,left:o,right:a}=et(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 dt(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?[lt(t.startAngle||0),lt(t.endAngle||360)]:[t.innerRadius||0,ut(t)]}(t,n):function(t,n){const e="x"!==n,r=et(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)}function ft(t){return null==t}function pt(t){return"function"==typeof t}function mt(t){return pt(t)?t:null==t?t=>t:W()(t)}function gt(t,n,e){const r=J(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),i=bt(t),o=void 0===i?{}:{horizontal:i};return Q()(o,t,r,n)}function yt(t,n){return n?"x"===t?"y":"x":t}function xt(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 vt(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,X()(e,o)),n=r.type&&"stack"===r.type.role&&pt(r.type.getChildren)?r.type.getChildren(t):E().Children.toArray(r.props.children).map((n=>{const e=Object.assign({},n.props,X()(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 bt(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 _t(t){return Array.isArray(t)&&t.length>0}function Mt(t){return Array.isArray(t)&&t.some((t=>"string"==typeof t))}function Ct(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function wt(t){return Array.isArray(t)&&t.some((t=>"number"==typeof t))}function At(t){return _t(t)&&t.every((t=>"string"==typeof t))}function Et(t){return _t(t)&&t.every(Array.isArray)}function kt(t){return t.filter((t=>void 0!==t))}function St(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 Ct(i)?new Date(Math.max(...i)):Math.max(...i)}function Pt(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 Ct(i)?new Date(Math.min(...i)):Math.min(...i)}function Dt(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 Ot(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function Lt(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 Tt extends Map{constructor(t,n=jt){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($t(this,t))}has(t){return super.has($t(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 $t({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function jt(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Nt=Symbol("implicit");function zt(){var t=new Tt,n=[],e=[],r=Nt;function i(i){let o=t.get(i);if(void 0===o){if(r!==Nt)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 Tt;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 zt(n,e).unknown(r)},Ot.apply(i,arguments),i}function Rt(){var t,n,e=zt().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=Dt(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 Rt(r(),[o,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},Ot.apply(h(),arguments)}function It(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return It(n())},t}function Wt(){return It(Rt.apply(null,arguments).paddingInner(1))}var Bt=Math.sqrt(50),Vt=Math.sqrt(10),Ft=Math.sqrt(2);function Ut(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=Ht(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 Ht(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>=Bt?10:o>=Vt?5:o>=Ft?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Bt?10:o>=Vt?5:o>=Ft?2:1)}function qt(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>=Bt?i*=10:o>=Vt?i*=5:o>=Ft&&(i*=2),n<t?-i:i}function Gt(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Kt(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Yt(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=Gt,e=(n,e)=>Gt(t(n),e),r=(n,e)=>t(n)-e):(n=t===Gt||t===Kt?t:Xt,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 Xt(){return 0}function Zt(t){return null===t?NaN:+t}const Qt=Yt(Gt),Jt=Qt.right;Qt.left,Yt(Zt).center;var tn=Jt;function nn(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function en(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function rn(){}var on=.7,an=1/on,sn="\\s*([+-]?\\d+)\\s*",ln="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",cn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",un=/^#([0-9a-f]{3,8})$/,hn=new RegExp(`^rgb\\(${sn},${sn},${sn}\\)$`),dn=new RegExp(`^rgb\\(${cn},${cn},${cn}\\)$`),fn=new RegExp(`^rgba\\(${sn},${sn},${sn},${ln}\\)$`),pn=new RegExp(`^rgba\\(${cn},${cn},${cn},${ln}\\)$`),mn=new RegExp(`^hsl\\(${ln},${cn},${cn}\\)$`),gn=new RegExp(`^hsla\\(${ln},${cn},${cn},${ln}\\)$`),yn={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 xn(){return this.rgb().formatHex()}function vn(){return this.rgb().formatRgb()}function bn(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=un.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?_n(n):3===e?new An(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Mn(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Mn(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=hn.exec(t))?new An(n[1],n[2],n[3],1):(n=dn.exec(t))?new An(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=fn.exec(t))?Mn(n[1],n[2],n[3],n[4]):(n=pn.exec(t))?Mn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=mn.exec(t))?On(n[1],n[2]/100,n[3]/100,1):(n=gn.exec(t))?On(n[1],n[2]/100,n[3]/100,n[4]):yn.hasOwnProperty(t)?_n(yn[t]):"transparent"===t?new An(NaN,NaN,NaN,0):null}function _n(t){return new An(t>>16&255,t>>8&255,255&t,1)}function Mn(t,n,e,r){return r<=0&&(t=n=e=NaN),new An(t,n,e,r)}function Cn(t){return t instanceof rn||(t=bn(t)),t?new An((t=t.rgb()).r,t.g,t.b,t.opacity):new An}function wn(t,n,e,r){return 1===arguments.length?Cn(t):new An(t,n,e,null==r?1:r)}function An(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function En(){return`#${Dn(this.r)}${Dn(this.g)}${Dn(this.b)}`}function kn(){const t=Sn(this.opacity);return`${1===t?"rgb(":"rgba("}${Pn(this.r)}, ${Pn(this.g)}, ${Pn(this.b)}${1===t?")":`, ${t})`}`}function Sn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Pn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Dn(t){return((t=Pn(t))<16?"0":"")+t.toString(16)}function On(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Tn(t,n,e,r)}function Ln(t){if(t instanceof Tn)return new Tn(t.h,t.s,t.l,t.opacity);if(t instanceof rn||(t=bn(t)),!t)return new Tn;if(t instanceof Tn)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 Tn(a,s,l,t.opacity)}function Tn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function $n(t){return(t=(t||0)%360)<0?t+360:t}function jn(t){return Math.max(0,Math.min(1,t||0))}function Nn(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 zn(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}nn(rn,bn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:xn,formatHex:xn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ln(this).formatHsl()},formatRgb:vn,toString:vn}),nn(An,wn,en(rn,{brighter(t){return t=null==t?an:Math.pow(an,t),new An(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?on:Math.pow(on,t),new An(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new An(Pn(this.r),Pn(this.g),Pn(this.b),Sn(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:En,formatHex:En,formatHex8:function(){return`#${Dn(this.r)}${Dn(this.g)}${Dn(this.b)}${Dn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:kn,toString:kn})),nn(Tn,(function(t,n,e,r){return 1===arguments.length?Ln(t):new Tn(t,n,e,null==r?1:r)}),en(rn,{brighter(t){return t=null==t?an:Math.pow(an,t),new Tn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?on:Math.pow(on,t),new Tn(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 An(Nn(t>=240?t-240:t+120,i,r),Nn(t,i,r),Nn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Tn($n(this.h),jn(this.s),jn(this.l),Sn(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=Sn(this.opacity);return`${1===t?"hsl(":"hsla("}${$n(this.h)}, ${100*jn(this.s)}%, ${100*jn(this.l)}%${1===t?")":`, ${t})`}`}}));var Rn=t=>()=>t;function In(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Rn(isNaN(t)?n:t)}var Wn=function t(n){var e=function(t){return 1==(t=+t)?In: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):Rn(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=wn(t)).r,(n=wn(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=In(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 Bn(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=wn(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 Vn(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]=Xn(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 Fn(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function Un(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Hn(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]=Xn(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}Bn((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 zn((e-r/n)*n,a,i,o,s)}})),Bn((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 zn((e-r/n)*n,i,o,a,s)}}));var qn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gn=new RegExp(qn.source,"g");function Kn(t,n){var e,r,i,o=qn.lastIndex=Gn.lastIndex=0,a=-1,s=[],l=[];for(t+="",n+="";(e=qn.exec(t))&&(r=Gn.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:Un(e,r)})),o=Gn.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 Yn(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 Xn(t,n){var e,r=typeof n;return null==n||"boolean"===r?Rn(n):("number"===r?Un:"string"===r?(e=bn(n))?(n=e,Wn):Kn:n instanceof bn?Wn:n instanceof Date?Fn:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(n)?Yn:Array.isArray(n)?Vn:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Hn:Un)(t,n)}function Zn(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Qn(t){return+t}var Jn=[0,1];function te(t){return t}function ne(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function(t){return function(){return t}}(isNaN(n)?NaN:.5)}function ee(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=ne(i,r),o=e(a,o)):(r=ne(r,i),o=e(o,a)),function(t){return o(r(t))}}function re(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]=ne(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=tn(t,n,1,r)-1;return o[e](i[e](n))}}function ie(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function oe(){var t,n,e,r,i,o,a=Jn,s=Jn,l=Xn,c=te;function u(){var t=Math.min(a.length,s.length);return c!==te&&(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?re:ee,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),Un)))(e)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Qn),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=Zn,u()},h.clamp=function(t){return arguments.length?(c=!!t||te,u()):c!==te},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 ae(){return oe()(te,te)}var se,le=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ce(t){if(!(n=le.exec(t)))throw new Error("invalid format: "+t);var n;return new ue({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 ue(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 he(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 de(t){return(t=he(Math.abs(t)))?t[1]:NaN}function fe(t,n){var e=he(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")}ce.prototype=ue.prototype,ue.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 pe={"%":(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)=>fe(100*t,n),r:fe,s:function(t,n){var e=he(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(se=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")+he(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function me(t){return t}var ge,ye,xe,ve=Array.prototype.map,be=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _e(t,n,e,r){var i,o=qt(t,n,e);switch((r=ce(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(de(n)/3)))-de(Math.abs(t)))}(o,a))||(r.precision=i),xe(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,de(n)-de(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,-de(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return ye(r)}function Me(t){var n=t.domain;return t.ticks=function(t){var e=n();return Ut(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return _e(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=Ht(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 Ce(){var t=ae();return t.copy=function(){return ie(t,Ce())},Ot.apply(t,arguments),Me(t)}function we(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,Qn),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return we(t).unknown(n)},t=arguments.length?Array.from(t,Qn):[0,1],Me(e)}function Ae(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 Ee(t){return Math.log(t)}function ke(t){return Math.exp(t)}function Se(t){return-Math.log(-t)}function Pe(t){return-Math.exp(-t)}function De(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Oe(t){return(n,e)=>-t(-n,e)}function Le(t){const n=t(Ee,ke),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?De:t===Math.E?Math.exp:n=>Math.pow(t,n)}(o),e()[0]<0?(r=Oe(r),i=Oe(i),t(Se,Pe)):t(Ee,ke),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=Ut(a,s,f))}else p=Ut(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=ce(e)).precision||(e.trim=!0),e=ye(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(Ae(e(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),n}function Te(){const t=Le(oe()).domain([1,10]);return t.copy=()=>ie(t,Te()).base(t.base()),Ot.apply(t,arguments),t}function $e(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function je(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function Ne(t){var n=1,e=t($e(n),je(n));return e.constant=function(e){return arguments.length?t($e(n=+e),je(n)):n},Me(e)}function ze(){var t=Ne(oe());return t.copy=function(){return ie(t,ze()).constant(t.constant())},Ot.apply(t,arguments)}function Re(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Ie(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function We(t){return t<0?-t*t:t*t}function Be(t){var n=t(te,te),e=1;function r(){return 1===e?t(te,te):.5===e?t(Ie,We):t(Re(e),Re(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},Me(n)}function Ve(){var t=Be(oe());return t.copy=function(){return ie(t,Ve()).exponent(t.exponent())},Ot.apply(t,arguments),t}function Fe(){return Ve.apply(null,arguments).exponent(.5)}function Ue(t){return Math.sign(t)*t*t}function He(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function qe(){var t,n=ae(),e=[0,1],r=!1;function i(e){var i=He(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(Ue(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,Qn)).map(Ue)),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 qe(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},Ot.apply(i,arguments),Me(i)}function Ge(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 Ke(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 Ye(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Xe(t,n,e=0,r=t.length-1,i){for(i=void 0===i?Ye:function(t=Gt){if(t===Gt)return Ye;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);Xe(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(Ze(t,e,n),i(t[r],o)>0&&Ze(t,e,r);a<s;){for(Ze(t,a,s),++a,--s;i(t[a],o)<0;)++a;for(;i(t[s],o)>0;)--s}0===i(t[e],o)?Ze(t,e,s):(++s,Ze(t,s,r)),s<=n&&(e=s+1),n<=s&&(r=s-1)}return t}function Ze(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function Qe(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 Ke(t);if(n>=1)return Ge(t);var r,i=(r-1)*n,o=Math.floor(i),a=Ge(Xe(t,o).subarray(0,o+1));return a+(Ke(t.subarray(o+1))-a)*(i-o)}}function Je(t,n,e=Zt){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 tr(){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]=Je(n,t/i);return o}function o(n){return null==n||isNaN(n=+n)?t:e[tn(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(Gt),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 tr().domain(n).range(e).unknown(t)},Ot.apply(o,arguments)}function nr(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[tn(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 nr().domain([n,e]).range(o).unknown(t)},Ot.apply(Me(a),arguments)}function er(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[tn(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 er().domain(n).range(e).unknown(t)},Ot.apply(i,arguments)}ge=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?me:(n=ve.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?me:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(ve.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=ce(t)).fill,e=t.align,h=t.sign,d=t.symbol,f=t.zero,p=t.width,m=t.comma,g=t.precision,y=t.trim,x=t.type;"n"===x?(m=!0,x="g"):pe[x]||(void 0===g&&(g=12),y=!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:"",_=pe[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),g),y&&(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?be[8+se/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 g=void 0===g?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return t+""},C}return{format:h,formatPrefix:function(t,n){var e=h(((t=ce(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(de(n)/3))),i=Math.pow(10,-r),o=be[8+r/3];return function(t){return e(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),ye=ge.format,xe=ge.formatPrefix;const rr=1e3,ir=6e4,or=36e5,ar=864e5,sr=6048e5,lr=31536e6;var cr=new Date,ur=new Date;function hr(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 hr((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 cr.setTime(+n),ur.setTime(+r),t(cr),t(ur),Math.floor(e(cr,ur))},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 dr=hr((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));dr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?hr((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):dr:null};var fr=dr,pr=(dr.range,hr((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*rr)}),(function(t,n){return(n-t)/rr}),(function(t){return t.getUTCSeconds()}))),mr=pr,gr=(pr.range,hr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*rr)}),(function(t,n){t.setTime(+t+n*ir)}),(function(t,n){return(n-t)/ir}),(function(t){return t.getMinutes()}))),yr=gr,xr=(gr.range,hr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*rr-t.getMinutes()*ir)}),(function(t,n){t.setTime(+t+n*or)}),(function(t,n){return(n-t)/or}),(function(t){return t.getHours()}))),vr=xr,br=(xr.range,hr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ir)/ar),(t=>t.getDate()-1))),_r=br;function Mr(t){return hr((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())*ir)/sr}))}br.range;var Cr=Mr(0),wr=Mr(1),Ar=Mr(2),Er=Mr(3),kr=Mr(4),Sr=Mr(5),Pr=Mr(6),Dr=(Cr.range,wr.range,Ar.range,Er.range,kr.range,Sr.range,Pr.range,hr((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()}))),Or=Dr,Lr=(Dr.range,hr((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()})));Lr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hr((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 Tr=Lr,$r=(Lr.range,hr((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*ir)}),(function(t,n){return(n-t)/ir}),(function(t){return t.getUTCMinutes()}))),jr=$r,Nr=($r.range,hr((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*or)}),(function(t,n){return(n-t)/or}),(function(t){return t.getUTCHours()}))),zr=Nr,Rr=(Nr.range,hr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/ar}),(function(t){return t.getUTCDate()-1}))),Ir=Rr;function Wr(t){return hr((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)/sr}))}Rr.range;var Br=Wr(0),Vr=Wr(1),Fr=Wr(2),Ur=Wr(3),Hr=Wr(4),qr=Wr(5),Gr=Wr(6),Kr=(Br.range,Vr.range,Fr.range,Ur.range,Hr.range,qr.range,Gr.range,hr((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()}))),Yr=Kr,Xr=(Kr.range,hr((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()})));Xr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hr((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 Zr=Xr;function Qr(t,n,e,r,i,o){const a=[[mr,1,rr],[mr,5,5e3],[mr,15,15e3],[mr,30,3e4],[o,1,ir],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,or],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,ar],[r,2,1728e5],[e,1,sr],[n,1,2592e6],[n,3,7776e6],[t,1,lr]];function s(n,e,r){const i=Math.abs(e-n)/r,o=Yt((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(qt(n/lr,e/lr,r));if(0===o)return fr.every(Math.max(qt(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]}Xr.range;const[Jr,ti]=Qr(Zr,Yr,Br,Ir,zr,jr),[ni,ei]=Qr(Tr,Or,Cr,_r,vr,yr);function ri(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 ii(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 oi(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var ai,si,li,ci={"-":"",_:" ",0:"0"},ui=/^\s*\d+/,hi=/^%/,di=/[\\^$*+?|[\]().{}]/g;function fi(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 pi(t){return t.replace(di,"\\$&")}function mi(t){return new RegExp("^(?:"+t.map(pi).join("|")+")","i")}function gi(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function yi(t,n,e){var r=ui.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function xi(t,n,e){var r=ui.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function vi(t,n,e){var r=ui.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function bi(t,n,e){var r=ui.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function _i(t,n,e){var r=ui.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Mi(t,n,e){var r=ui.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Ci(t,n,e){var r=ui.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function wi(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 Ai(t,n,e){var r=ui.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Ei(t,n,e){var r=ui.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function ki(t,n,e){var r=ui.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Si(t,n,e){var r=ui.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Pi(t,n,e){var r=ui.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Di(t,n,e){var r=ui.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Oi(t,n,e){var r=ui.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Li(t,n,e){var r=ui.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Ti(t,n,e){var r=ui.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function $i(t,n,e){var r=hi.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function ji(t,n,e){var r=ui.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Ni(t,n,e){var r=ui.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function zi(t,n){return fi(t.getDate(),n,2)}function Ri(t,n){return fi(t.getHours(),n,2)}function Ii(t,n){return fi(t.getHours()%12||12,n,2)}function Wi(t,n){return fi(1+_r.count(Tr(t),t),n,3)}function Bi(t,n){return fi(t.getMilliseconds(),n,3)}function Vi(t,n){return Bi(t,n)+"000"}function Fi(t,n){return fi(t.getMonth()+1,n,2)}function Ui(t,n){return fi(t.getMinutes(),n,2)}function Hi(t,n){return fi(t.getSeconds(),n,2)}function qi(t){var n=t.getDay();return 0===n?7:n}function Gi(t,n){return fi(Cr.count(Tr(t)-1,t),n,2)}function Ki(t){var n=t.getDay();return n>=4||0===n?kr(t):kr.ceil(t)}function Yi(t,n){return t=Ki(t),fi(kr.count(Tr(t),t)+(4===Tr(t).getDay()),n,2)}function Xi(t){return t.getDay()}function Zi(t,n){return fi(wr.count(Tr(t)-1,t),n,2)}function Qi(t,n){return fi(t.getFullYear()%100,n,2)}function Ji(t,n){return fi((t=Ki(t)).getFullYear()%100,n,2)}function to(t,n){return fi(t.getFullYear()%1e4,n,4)}function no(t,n){var e=t.getDay();return fi((t=e>=4||0===e?kr(t):kr.ceil(t)).getFullYear()%1e4,n,4)}function eo(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+fi(n/60|0,"0",2)+fi(n%60,"0",2)}function ro(t,n){return fi(t.getUTCDate(),n,2)}function io(t,n){return fi(t.getUTCHours(),n,2)}function oo(t,n){return fi(t.getUTCHours()%12||12,n,2)}function ao(t,n){return fi(1+Ir.count(Zr(t),t),n,3)}function so(t,n){return fi(t.getUTCMilliseconds(),n,3)}function lo(t,n){return so(t,n)+"000"}function co(t,n){return fi(t.getUTCMonth()+1,n,2)}function uo(t,n){return fi(t.getUTCMinutes(),n,2)}function ho(t,n){return fi(t.getUTCSeconds(),n,2)}function fo(t){var n=t.getUTCDay();return 0===n?7:n}function po(t,n){return fi(Br.count(Zr(t)-1,t),n,2)}function mo(t){var n=t.getUTCDay();return n>=4||0===n?Hr(t):Hr.ceil(t)}function go(t,n){return t=mo(t),fi(Hr.count(Zr(t),t)+(4===Zr(t).getUTCDay()),n,2)}function yo(t){return t.getUTCDay()}function xo(t,n){return fi(Vr.count(Zr(t)-1,t),n,2)}function vo(t,n){return fi(t.getUTCFullYear()%100,n,2)}function bo(t,n){return fi((t=mo(t)).getUTCFullYear()%100,n,2)}function _o(t,n){return fi(t.getUTCFullYear()%1e4,n,4)}function Mo(t,n){var e=t.getUTCDay();return fi((t=e>=4||0===e?Hr(t):Hr.ceil(t)).getUTCFullYear()%1e4,n,4)}function Co(){return"+0000"}function wo(){return"%"}function Ao(t){return+t}function Eo(t){return Math.floor(+t/1e3)}function ko(t){return new Date(t)}function So(t){return t instanceof Date?+t:+new Date(+t)}function Po(t,n,e,r,i,o,a,s,l,c){var u=ae(),h=u.invert,d=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),y=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?g:r(t)<t?i(t)<t?y: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,So)):d().map(ko)},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(Ae(e,t)):u},u.copy=function(){return ie(u,Po(t,n,e,r,i,o,a,s,l,c))},u}function Do(){return Ot.apply(Po(ni,ei,Tr,Or,Cr,_r,vr,yr,mr,si).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Oo(){return Ot.apply(Po(Jr,ti,Zr,Yr,Br,Ir,zr,jr,mr,li).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Lo(){var t,n,e,r,i,o=0,a=1,s=te,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(Xn),c.rangeRound=u(Zn),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 To(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function $o(){var t=Me(Lo()(te));return t.copy=function(){return To(t,$o())},Lt.apply(t,arguments)}function jo(){var t=Le(Lo()).domain([1,10]);return t.copy=function(){return To(t,jo()).base(t.base())},Lt.apply(t,arguments)}function No(){var t=Ne(Lo());return t.copy=function(){return To(t,No()).constant(t.constant())},Lt.apply(t,arguments)}function zo(){var t=Be(Lo());return t.copy=function(){return To(t,zo()).exponent(t.exponent())},Lt.apply(t,arguments)}function Ro(){return zo.apply(null,arguments).exponent(.5)}function Io(){var t=[],n=te;function e(e){if(null!=e&&!isNaN(e=+e))return n((tn(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(Gt),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)=>Qe(t,r/n)))},e.copy=function(){return Io(n).domain(t)},Lt.apply(e,arguments)}function Wo(t,n){void 0===n&&(n=t,t=Xn);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 Bo(){var t,n,e,r,i,o,a,s=0,l=.5,c=1,u=1,h=te,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=Wo(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(Xn),f.rangeRound=p(Zn),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 Vo(){var t=Me(Bo()(te));return t.copy=function(){return To(t,Vo())},Lt.apply(t,arguments)}function Fo(){var t=Le(Bo()).domain([.1,1,10]);return t.copy=function(){return To(t,Fo()).base(t.base())},Lt.apply(t,arguments)}function Uo(){var t=Ne(Bo());return t.copy=function(){return To(t,Uo()).constant(t.constant())},Lt.apply(t,arguments)}function Ho(){var t=Be(Bo());return t.copy=function(){return To(t,Ho()).exponent(t.exponent())},Lt.apply(t,arguments)}function qo(){return Ho.apply(null,arguments).exponent(.5)}ai=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=mi(i),u=gi(i),h=mi(o),d=gi(o),f=mi(a),p=gi(a),m=mi(s),g=gi(s),y=mi(l),x=gi(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:zi,e:zi,f:Vi,g:Ji,G:no,H:Ri,I:Ii,j:Wi,L:Bi,m:Fi,M:Ui,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ao,s:Eo,S:Hi,u:qi,U:Gi,V:Yi,w:Xi,W:Zi,x:null,X:null,y:Qi,Y:to,Z:eo,"%":wo},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:ro,e:ro,f:lo,g:bo,G:Mo,H:io,I:oo,j:ao,L:so,m:co,M:uo,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ao,s:Eo,S:ho,u:fo,U:po,V:go,w:yo,W:xo,x:null,X:null,y:vo,Y:_o,Z:Co,"%":wo},_={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=y.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=g.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return w(t,n,e,r)},d:ki,e:ki,f:Ti,g:Ci,G:Mi,H:Pi,I:Pi,j:Si,L:Li,m:Ei,M:Di,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:Ai,Q:ji,s:Ni,S:Oi,u:xi,U:vi,V:bi,w:yi,W:_i,x:function(t,n,r){return w(t,e,n,r)},X:function(t,n,e){return w(t,r,n,e)},y:Ci,Y:Mi,Z:wi,"%":$i};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=ci[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=oi(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=ii(oi(o.y,0,1))).getUTCDay(),r=i>4||0===i?Vr.ceil(r):Vr(r),r=Ir.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=ri(oi(o.y,0,1))).getDay(),r=i>4||0===i?wr.ceil(r):wr(r),r=_r.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?ii(oi(o.y,0,1)).getUTCDay():ri(oi(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,ii(o)):ri(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 ci?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"]}),si=ai.format,ai.parse,li=ai.utcFormat,ai.utcParse;const Go=["linear","time","log","sqrt"];function Ko(t){return"function"==typeof t?pt(t.copy)&&pt(t.domain)&&pt(t.range):"string"==typeof t&&L()(Go,t)}function Yo(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function Xo(t,n){if(!t.data)return"linear";const e=mt(t[n]);return Ct(t.data.map((t=>{const r=V()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function Zo(t){if(Ko(t)){const n=`scale${(t=>t&&t[0].toUpperCase()+t.slice(1))(t)}`;return e[n]()}return Ce()}function Qo(t,n){const e=ta(t,n);return e?"string"==typeof e?Zo(e):e:Zo(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 Ct(e)?"time":"linear"}(t,n)||Xo(t,n))}function Jo(){return Ce()}function ta(t,n){if(!Yo(t,n))return;const e=t.scale[n]||t.scale;return Ko(e)?pt(e)?e:Zo(e):void 0}function na(t,n){return function(t,n){if(!Yo(t,n))return;const e=t.scale[n]||t.scale;return"string"==typeof e?e:ra(e)}(t,n)||Xo(t,n)}const ea=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function ra(t){if("string"==typeof t)return t;const n=ea.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}const ia="@@__IMMUTABLE_ITERABLE__@@",oa="@@__IMMUTABLE_RECORD__@@",aa="@@__IMMUTABLE_LIST__@@",sa="@@__IMMUTABLE_MAP__@@";function la(t){return!(!t||!t[ia])}function ca(t){return!(!t||!t[oa])}function ua(t){return la(t)||ca(t)}function ha(t){return!(!t||!t[aa])}function da(t){return!(!t||!t[sa])}function fa(t,n){return la(t)?t.reduce(((t,e,r)=>{let i=e;return n&&n[r]&&(i=fa(e)),t[r]=i,t}),ha(t)?[]:{}):t}function pa(t){return ua(t)?fa(t,{errorX:!0,errorY:!0}):t}function ma(t){return la(t)?t.size:t.length}function ga(t,n){const e=(V()(t.domain)?t.domain[n]:t.domain)||Qo(t,n).domain(),r=t.samples||1,i=Math.max(...e),o=Math.min(...e),a=xt(o,i,(i-o)/r);return U()(a)===i?a:a.concat(i)}function ya(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 R()(t,r,i)}function xa(t,n,e){const r=t=>void 0!==t,i=Pt(n.x),o=St(n.x),a=Pt(n.y),s=St(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 va(t,n){const e=Aa(t,n),r=Ea(t,n),i=ka(t,n),o=q()([...e,...r,...i]);return 0===o.length?null:o.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function ba(t,n,e){void 0===e&&(e=0);const r=ma(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 _a(t,n,e){if(!Array.isArray(t)&&!la(t)||ma(t)<1)return[];const r=["x","y","y0"],i=(e=Array.isArray(e)?e:r).reduce(((t,e)=>{var r;return t[e]=mt(void 0!==n[r=e]?n[r]:r),t}),{}),o=$()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let a;!1===o&&(a={x:-1!==e.indexOf("x")?va(n,"x"):void 0,y:-1!==e.indexOf("y")?va(n,"y"):void 0,y0:-1!==e.indexOf("y0")?va(n,"y"):void 0});const s=o?t:t.reduce(((t,n,r)=>{const o=pa(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 N()(c)||t.push(c),t}),[]),l=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:na(n,"x"),y:na(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)))}(ya(s,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=pt(i=t.eventKey)?i:null==i?()=>{}:W()(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 Ma(t){const n=ga(t,"x"),e=ga(t,"y"),r=n.map(((t,n)=>({x:t,y:e[n]})));return r}function Ca(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function wa(t){return t.data?_a(t.data,t):_a(Ma(t),t)}function Aa(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 Ea(t,n){if(!t.categories)return[];const e=Ca(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?kt(r):[]}function ka(t,n){if(!Array.isArray(t.data)&&!la(t.data))return[];const e=mt(void 0===t[n]?n:t[n]);return ya(t.data.reduce(((t,n)=>(t.push(pa(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=pa(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 Sa(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 L()(["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"],e)}var Pa=r(4295),Da=r.n(Pa),Oa=r(2829),La=r.n(Oa),Ta=r(2645),$a=r.n(Ta);function ja(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=$a()(t).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 Na(t,n){const e=pt(t)?t:Wa,r=pt(n)?n:za;return(t,n)=>{const i=Va(t,n);if(i)return r(i,t,n);const o=Ca(t,n),a=o?Ia(t,n,o):e(t,n);return a?r(a,t,n):void 0}}function za(t,n,e){return function(t,n,e){return"log"!==na(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=Ha(n,e),i=Ua(n,e),o=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return V()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!o.left&&!o.right)return t;const a=Pt(t),s=St(t),l=dt(n,yt(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=V()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,g=(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:g(a.valueOf()-t.left,"min"),max:g(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:g(a.valueOf()-e.left,"min"),max:g(s.valueOf()+e.right,"max")}}const y={min:void 0!==r?r:p.min,max:void 0!==i?i:p.max};return a instanceof Date||s instanceof Date?Ba(new Date(y.min),new Date(y.max)):Ba(y.min,y.max)}(t,n,e),n,e)}function Ra(t,n){return Na()(t,n)}function Ia(t,n,e){const r=e||Ca(t,n),{polar:i,startAngle:o=0,endAngle:a=360}=t;if(!r)return;const s=Ha(t,n),l=Ua(t,n),c=Mt(r)?Ea(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=Ba(void 0!==s?s:Pt(h),void 0!==l?l:St(h));return i&&"x"===n&&360===Math.abs(o-a)?qa(d,h):d}function Wa(t,n,e){const r=e||wa(t),{polar:i,startAngle:o=0,endAngle:a=360}=t,s=Ha(t,n),l=Ua(t,n);if(r.length<1)return void 0!==s&&void 0!==l?Ba(s,l):void 0;const c=Ba(void 0!==s?s:ja(r,n,"min"),void 0!==l?l:ja(r,n,"max"));return i&&"x"===n&&360===Math.abs(o-a)?qa(c,function(t,n){const e=`_${n}`;return $a()(t).map((t=>t[e]&&void 0!==t[e][1]?t[e][1]:t[e]))}(r,n)):c}function Ba(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 Va(t,n){const e=Ha(t,n),r=Ua(t,n);return V()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?Ba(e,r):void 0}function Fa(t,n){const e=Va(t,n);if(e)return e;const r=wa(t),i=r.reduce(((t,n)=>n._y0<t?n._y0:t),1/0);return Na((()=>Wa(t,n,r)),(e=>za((e=>{if("x"===n)return e;const r=i!==1/0?i:0,o=Ua(t,n),a=Ha(t,n),s=void 0!==o?o:St(e,r);return Ba(void 0!==a?a:Pt(e,r),s)})(e),t,n)))(t,n)}function Ua(t,n){return V()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||Da()(t.maxDomain)?t.maxDomain:void 0}function Ha(t,n){return V()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||Da()(t.minDomain)?t.minDomain:void 0}function qa(t,n){const e=La()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}function Ga(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 L()(["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"],e)}function Ka(t){const{labelComponent:n,labelPlacement:e,polar:r}=t,i=r?"perpendicular":"vertical";return e||n.props&&n.props.labelPlacement||i}function Ya(t,n,e){return void 0===n&&(n={}),void 0!==n.label?n.label:Array.isArray(t.labels)?t.labels[e]:t.labels}function Xa(t,n){const e=Ka(t);return"perpendicular"===e||"vertical"===e&&(90===n||270===n)?"middle":n<=90||n>270?"start":"end"}function Za(t,n){const e=Ka(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 Qa(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const i=void 0!==n?n%360:Ja(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 Ja(t,n){const{x:e}=tt(n);return ct(t.scale.x(e))%360}function ts(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=Ja(t,d),p=a?Xa(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?Za(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),g=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),y=Ya(t,d,n),x=Ka(t),{x:v,y:b}=function(t,n){const{polar:e}=t,{x:r,y:i}=nt(t,n);if(!e)return{x:r,y:i};const o=function(t,n){const{style:e}=t,r=Ja(t,n),i=at((e.labels||{}).padding,t)||0,o=lt(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=at((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:g,data:r,datum:d,disableInlineStyles:h,horizontal:o,index:n,polar:a,scale:e,labelPlacement:x,text:y,textAnchor:p,verticalAnchor:m,x:v,y:b,dx:_,dy:M,width:s,height:l,style:i.labels};if(!rt(u))return C;const w=c&&c.tooltip||{};return Q()({},C,J(w,["style"]))}const ns=Math.PI,es=2*ns,rs=1e-6,is=es-rs;function os(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function as(){return new os}os.prototype=as.prototype={constructor:os,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>rs)if(Math.abs(u*s-l*c)>rs&&i){var d=e-o,f=r-a,p=s*s+l*l,m=d*d+f*f,g=Math.sqrt(p),y=Math.sqrt(h),x=i*Math.tan((ns-Math.acos((p+h-m)/(2*g*y)))/2),v=x/y,b=x/g;Math.abs(v-1)>rs&&(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)>rs||Math.abs(this._y1-c)>rs)&&(this._+="L"+l+","+c),e&&(h<0&&(h=h%es+es),h>is?this._+="A"+e+","+e+",0,1,"+u+","+(t-a)+","+(n-s)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>rs&&(this._+="A"+e+","+e+",0,"+ +(h>=ns)+","+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 ss=as,ls=Array.prototype.slice;function cs(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function us(t){return function(){return t}}function hs(t){this._context=t}function ds(t){return new hs(t)}function fs(t){return t[0]}function ps(t){return t[1]}function ms(t,n){var e=us(!0),r=null,i=ds,o=null;function a(a){var s,l,c,u=(a=cs(a)).length,h=!1;for(null==r&&(o=i(c=ss())),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?fs:us(t),n="function"==typeof n?n:void 0===n?ps:us(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:us(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:us(+t),a):n},a.defined=function(t){return arguments.length?(e="function"==typeof t?t:us(!!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 gs(t,n,e){var r=null,i=us(!0),o=null,a=ds,s=null;function l(l){var c,u,h,d,f,p=(l=cs(l)).length,m=!1,g=new Array(p),y=new Array(p);for(null==o&&(s=a(f=ss())),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(g[h],y[h]);s.lineEnd(),s.areaEnd()}m&&(g[c]=+t(d,c,l),y[c]=+n(d,c,l),s.point(r?+r(d,c,l):g[c],e?+e(d,c,l):y[c]))}if(f)return s=null,f+""||null}function c(){return ms().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?fs:us(+t),n="function"==typeof n?n:us(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?ps:us(+e),l.x=function(n){return arguments.length?(t="function"==typeof n?n:us(+n),r=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:us(+n),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:us(+t),l):r},l.y=function(t){return arguments.length?(n="function"==typeof t?t:us(+t),e=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:us(+t),l):n},l.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:us(+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:us(!!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}hs.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 ys=vs(ds);function xs(t){this._curve=t}function vs(t){function n(n){return new xs(t(n))}return n._curve=t,n}function bs(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(vs(t)):n()._curve},t}function _s(){return bs(ms().curve(ys))}function Ms(){var t=gs().curve(ys),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 bs(e())},delete t.lineX0,t.lineEndAngle=function(){return bs(r())},delete t.lineX1,t.lineInnerRadius=function(){return bs(i())},delete t.lineY0,t.lineOuterRadius=function(){return bs(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(vs(t)):n()._curve},t}xs.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 Cs=Math.abs,ws=Math.atan2,As=Math.cos,Es=Math.max,ks=Math.min,Ss=Math.sin,Ps=Math.sqrt,Ds=1e-12,Os=Math.PI,Ls=Os/2,Ts=2*Os;function $s(t){return t>1?0:t<-1?Os:Math.acos(t)}function js(t){return t>=1?Ls:t<=-1?-Ls:Math.asin(t)}function Ns(t){return t.innerRadius}function zs(t){return t.outerRadius}function Rs(t){return t.startAngle}function Is(t){return t.endAngle}function Ws(t){return t&&t.padAngle}function Bs(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<Ds))return[t+(d=(u*(n-o)-h*(t-i))/d)*l,n+d*c]}function Vs(t,n,e,r,i,o,a){var s=t-e,l=n-r,c=(a?o:-o)/Ps(s*s+l*l),u=c*l,h=-c*s,d=t+u,f=n+h,p=e+u,m=r+h,g=(d+p)/2,y=(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)*Ps(Es(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-g,P=A-y,D=E-g,O=k-y;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 Fs(){var t=Ns,n=zs,e=us(0),r=null,i=Rs,o=Is,a=Ws,s=null;function l(){var l,c,u=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-Ls,f=o.apply(this,arguments)-Ls,p=Cs(f-d),m=f>d;if(s||(s=l=ss()),h<u&&(c=h,h=u,u=c),h>Ds)if(p>Ts-Ds)s.moveTo(h*As(d),h*Ss(d)),s.arc(0,0,h,d,f,!m),u>Ds&&(s.moveTo(u*As(f),u*Ss(f)),s.arc(0,0,u,f,d,m));else{var g,y,x=d,v=f,b=d,_=f,M=p,C=p,w=a.apply(this,arguments)/2,A=w>Ds&&(r?+r.apply(this,arguments):Ps(u*u+h*h)),E=ks(Cs(h-u)/2,+e.apply(this,arguments)),k=E,S=E;if(A>Ds){var P=js(A/u*Ss(w)),D=js(A/h*Ss(w));(M-=2*P)>Ds?(b+=P*=m?1:-1,_-=P):(M=0,b=_=(d+f)/2),(C-=2*D)>Ds?(x+=D*=m?1:-1,v-=D):(C=0,x=v=(d+f)/2)}var O=h*As(x),L=h*Ss(x),T=u*As(_),$=u*Ss(_);if(E>Ds){var j,N=h*As(v),z=h*Ss(v),R=u*As(b),I=u*Ss(b);if(p<Os&&(j=Bs(O,L,R,I,N,z,T,$))){var W=O-j[0],B=L-j[1],V=N-j[0],F=z-j[1],U=1/Ss($s((W*V+B*F)/(Ps(W*W+B*B)*Ps(V*V+F*F)))/2),H=Ps(j[0]*j[0]+j[1]*j[1]);k=ks(E,(u-H)/(U-1)),S=ks(E,(h-H)/(U+1))}}C>Ds?S>Ds?(g=Vs(R,I,O,L,h,S,m),y=Vs(N,z,T,$,h,S,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),S<E?s.arc(g.cx,g.cy,S,ws(g.y01,g.x01),ws(y.y01,y.x01),!m):(s.arc(g.cx,g.cy,S,ws(g.y01,g.x01),ws(g.y11,g.x11),!m),s.arc(0,0,h,ws(g.cy+g.y11,g.cx+g.x11),ws(y.cy+y.y11,y.cx+y.x11),!m),s.arc(y.cx,y.cy,S,ws(y.y11,y.x11),ws(y.y01,y.x01),!m))):(s.moveTo(O,L),s.arc(0,0,h,x,v,!m)):s.moveTo(O,L),u>Ds&&M>Ds?k>Ds?(g=Vs(T,$,N,z,u,-k,m),y=Vs(O,L,R,I,u,-k,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),k<E?s.arc(g.cx,g.cy,k,ws(g.y01,g.x01),ws(y.y01,y.x01),!m):(s.arc(g.cx,g.cy,k,ws(g.y01,g.x01),ws(g.y11,g.x11),!m),s.arc(0,0,u,ws(g.cy+g.y11,g.cx+g.x11),ws(y.cy+y.y11,y.cx+y.x11),m),s.arc(y.cx,y.cy,k,ws(y.y11,y.x11),ws(y.y01,y.x01),!m))):s.arc(0,0,u,_,b,m):s.lineTo(T,$)}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-Os/2;return[As(r)*e,Ss(r)*e]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:us(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:us(+t),l):n},l.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:us(+t),l):e},l.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:us(+t),l):r},l.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:us(+t),l):i},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:us(+t),l):o},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:us(+t),l):a},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function Us(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Hs(t){return t}function qs(){var t=Hs,n=Us,e=null,r=us(0),i=us(Ts),o=us(0);function a(a){var s,l,c,u,h,d=(a=cs(a)).length,f=0,p=new Array(d),m=new Array(d),g=+r.apply(this,arguments),y=Math.min(Ts,Math.max(-Ts,i.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/d,o.apply(this,arguments)),v=x*(y<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?(y-d*v)/f:0;s<d;++s,g=u)l=p[s],u=g+((h=m[l])>0?h*c:0)+v,m[l]={data:a[l],index:s,value:h,startAngle:g,endAngle:u,padAngle:x};return m}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:us(+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:us(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:us(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:us(+t),a):o},a}function Gs(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}class Ks{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 Ys{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=Gs(this._x0,this._y0),r=Gs(this._x0,this._y0=(this._y0+n)/2),i=Gs(t,this._y0),o=Gs(t,n);this._context.moveTo(...e),this._context.bezierCurveTo(...r,...i,...o)}}}function Xs(t){return new Ks(t,!0)}function Zs(t){return new Ks(t,!1)}function Qs(t){return new Ys(t)}function Js(t){return t.source}function tl(t){return t.target}function nl(t){let n=Js,e=tl,r=fs,i=ps,o=null,a=null;function s(){let s;const l=ls.call(arguments),c=n.apply(this,l),u=e.apply(this,l);if(null==o&&(a=t(s=ss())),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:us(+t),s):r},s.y=function(t){return arguments.length?(i="function"==typeof t?t:us(+t),s):i},s.context=function(n){return arguments.length?(null==n?o=a=null:a=t(o=n),s):o},s}function el(){return nl(Xs)}function rl(){return nl(Zs)}function il(){const t=nl(Qs);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const ol=Ps(3);var al={draw(t,n){const e=.59436*Ps(n+ks(n/28,.75)),r=e/2,i=r*ol;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},sl={draw(t,n){const e=Ps(n/Os);t.moveTo(e,0),t.arc(0,0,e,0,Ts)}},ll={draw(t,n){const e=Ps(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 cl=Ps(1/3),ul=2*cl;var hl={draw(t,n){const e=Ps(n/ul),r=e*cl;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},dl={draw(t,n){const e=.62625*Ps(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},fl={draw(t,n){const e=.87559*Ps(n-ks(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},pl={draw(t,n){const e=Ps(n),r=-e/2;t.rect(r,r,e,e)}},ml={draw(t,n){const e=.4431*Ps(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}};const gl=Ss(Os/10)/Ss(7*Os/10),yl=Ss(Ts/10)*gl,xl=-As(Ts/10)*gl;var vl={draw(t,n){const e=Ps(.8908130915292852*n),r=yl*e,i=xl*e;t.moveTo(0,-e),t.lineTo(r,i);for(let n=1;n<5;++n){const o=Ts*n/5,a=As(o),s=Ss(o);t.lineTo(s*e,-a*e),t.lineTo(a*r-s*i,s*r+a*i)}t.closePath()}};const bl=Ps(3);var _l={draw(t,n){const e=-Ps(n/(3*bl));t.moveTo(0,2*e),t.lineTo(-bl*e,-e),t.lineTo(bl*e,-e),t.closePath()}};const Ml=Ps(3);var Cl={draw(t,n){const e=.6824*Ps(n),r=e/2,i=e*Ml/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}};const wl=-.5,Al=Ps(3)/2,El=1/Ps(12),kl=3*(El/2+1);var Sl={draw(t,n){const e=Ps(n/kl),r=e/2,i=e*El,o=r,a=e*El+e,s=-o,l=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,l),t.lineTo(wl*r-Al*i,Al*r+wl*i),t.lineTo(wl*o-Al*a,Al*o+wl*a),t.lineTo(wl*s-Al*l,Al*s+wl*l),t.lineTo(wl*r+Al*i,wl*i-Al*r),t.lineTo(wl*o+Al*a,wl*a-Al*o),t.lineTo(wl*s+Al*l,wl*l-Al*s),t.closePath()}},Pl={draw(t,n){const e=.6189*Ps(n-ks(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}};const Dl=[sl,ll,hl,pl,vl,_l,Sl],Ol=[sl,fl,Pl,Cl,al,ml,dl];function Ll(t,n){let e=null;function r(){let r;if(e||(e=r=ss()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:us(t||sl),n="function"==typeof n?n:us(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:us(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:us(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function Tl(){}function $l(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 jl(t){this._context=t}function Nl(t){return new jl(t)}function zl(t){this._context=t}function Rl(t){return new zl(t)}function Il(t){this._context=t}function Wl(t){return new Il(t)}function Bl(t,n){this._basis=new jl(t),this._beta=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(){switch(this._point){case 3:$l(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:$l(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},zl.prototype={areaStart:Tl,areaEnd:Tl,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:$l(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Il.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:$l(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Bl.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 Vl=function t(n){function e(t){return 1===n?new jl(t):new Bl(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Fl(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 Ul(t,n){this._context=t,this._k=(1-n)/6}Ul.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:Fl(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:Fl(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 Hl=function t(n){function e(t){return new Ul(t,n)}return e.tension=function(n){return t(+n)},e}(0);function ql(t,n){this._context=t,this._k=(1-n)/6}ql.prototype={areaStart:Tl,areaEnd:Tl,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:Fl(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 Gl=function t(n){function e(t){return new ql(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Kl(t,n){this._context=t,this._k=(1-n)/6}Kl.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:Fl(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 Yl=function t(n){function e(t){return new Kl(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Xl(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>Ds){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>Ds){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 Zl(t,n){this._context=t,this._alpha=n}Zl.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:Xl(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 Ql=function t(n){function e(t){return n?new Zl(t,n):new Ul(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Jl(t,n){this._context=t,this._alpha=n}Jl.prototype={areaStart:Tl,areaEnd:Tl,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:Xl(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 tc=function t(n){function e(t){return n?new Jl(t,n):new ql(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function nc(t,n){this._context=t,this._alpha=n}nc.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:Xl(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 ec=function t(n){function e(t){return n?new nc(t,n):new Kl(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function rc(t){this._context=t}function ic(t){return new rc(t)}function oc(t){return t<0?-1:1}function ac(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(oc(o)+oc(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function sc(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function lc(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 cc(t){this._context=t}function uc(t){this._context=new hc(t)}function hc(t){this._context=t}function dc(t){return new cc(t)}function fc(t){return new uc(t)}function pc(t){this._context=t}function mc(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 gc(t){return new pc(t)}function yc(t,n){this._context=t,this._t=n}function xc(t){return new yc(t,.5)}function vc(t){return new yc(t,0)}function bc(t){return new yc(t,1)}function _c(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 Mc(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function Cc(t,n){return t[n]}function wc(t){const n=[];return n.key=t,n}function Ac(){var t=us([]),n=Mc,e=_c,r=Cc;function i(i){var o,a,s=Array.from(t.apply(this,arguments),wc),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=cs(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:us(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:us(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?Mc:"function"==typeof t?t:us(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?_c:t,i):e},i}function Ec(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}_c(t,n)}}function kc(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 Sc(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}_c(t,n)}}function Pc(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,_c(t,n)}}function Dc(t){var n=t.map(Oc);return Mc(t).sort((function(t,e){return n[t]-n[e]}))}function Oc(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 Lc(t){var n=t.map(Tc);return Mc(t).sort((function(t,e){return n[t]-n[e]}))}function Tc(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function $c(t){return Lc(t).reverse()}function jc(t){var n,e,r=t.length,i=t.map(Tc),o=Dc(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 Nc(t){return Mc(t).reverse()}rc.prototype={areaStart:Tl,areaEnd:Tl,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))}},cc.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:lc(this,this._t0,sc(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,lc(this,sc(this,e=ac(this,t,n)),e);break;default:lc(this,this._t0,e=ac(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(uc.prototype=Object.create(cc.prototype)).point=function(t,n){cc.prototype.point.call(this,n,t)},hc.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)}},pc.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=mc(t),i=mc(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)}},yc.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 zc=t=>null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0,Rc=t=>n=>t.x(void 0!==n._x1?n._x1:n._x),Ic=t=>n=>t.y(void 0!==n._y1?n._y1:n._y),Wc=t=>`curve${(t=>t&&t[0].toUpperCase()+t.slice(1))(t)}`,Bc=t=>{const{interpolation:n}=t;if("function"==typeof n)return n;if("string"==typeof n){const{polar:e,openCurve:r=!e}=t,i=r?Wc(n):(t=>`${Wc(t)}Closed`)(n);return u[i]}return ds},Vc=t=>{const{polar:n,scale:e,horizontal:r}=t;return n?_s().defined(zc).curve(Bc(t)).angle((t=>n=>-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2)(e)).radius(Ic(e)):ms().defined(zc).curve(Bc(t)).x(r?Ic(e):Rc(e)).y(r?Rc(e):Ic(e))};function Fc(){return Fc=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},Fc.apply(this,arguments)}const Uc=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={id:at(r,t)?.toString(),tabIndex:at(i,t),...a};return e?E().createElement("path",Fc({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("path",Fc({},s,{ref:n}))})),Hc={startsWith:["data-","aria-"],exactMatch:[]};function qc(t,n){if(null==t)throw new Error(n)}const Gc=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return Hc.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>Hc.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,at(r,t)]})))},Kc=(t,n)=>A.cloneElement(t,Gc(n)),Yc=t=>null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0,Xc=t=>n=>t.x(void 0!==n._x1?n._x1:n._x),Zc=t=>n=>t.y(void 0!==n._y1?n._y1:n._y),Qc=t=>n=>t.y(n._y0),Jc={groupComponent:E().createElement("g",null),pathComponent:E().createElement(Uc,null),role:"presentation",shapeRendering:"auto"},tu=t=>{const n=(t=>{const n=at(t.ariaLabel,t),e=at(t.desc,t),r=at(t.id,t),i=st(Object.assign({fill:"black"},t.style),t),o=at(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...Jc,...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:g}=n,y=Gc(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=Bc(t);return n?Ms().defined(Yc).curve(r).angle((t=>n=>-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2)(e)).outerRadius(Zc(e)).innerRadius(Qc(e)):(t=>{const{horizontal:n,scale:e}=t,r=Bc(t);return n?gs().defined(Yc).curve(r).x0(Qc(e)).x1(Zc(e)).y(Xc(e)):gs().defined(Yc).curve(r).x(Xc(e)).y1(Zc(e)).y0(Qc(e))})(t)})(n),M=b&&Vc(n),C=p.stroke?"none":p.fill,w={"aria-label":e,className:o,role:r,shapeRendering:i,transform:v,...u,clipPath:d,tabIndex:g},A=E().cloneElement(c,Object.assign({key:`${f}-area`,style:Object.assign({},p,{stroke:C}),d:_(l),desc:m,tabIndex:g},w,y)),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,y,[A,k]):A};var nu=r(7709),eu=r.n(nu),ru=r(660),iu=r.n(ru);class ou 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 K()(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 au=E().createContext({});au.displayName="PortalContext";var su,lu,cu=0,uu=0,hu=0,du=0,fu=0,pu=0,mu="object"==typeof performance&&performance.now?performance:Date,gu="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function yu(){return fu||(gu(xu),fu=mu.now()+pu)}function xu(){fu=0}function vu(){this._call=this._time=this._next=null}function bu(t,n,e){var r=new vu;return r.restart(t,n,e),r}function _u(){fu=(du=mu.now())+pu,cu=uu=0;try{!function(){yu(),++cu;for(var t,n=su;n;)(t=fu-n._time)>=0&&n._call.call(void 0,t),n=n._next;--cu}()}finally{cu=0,function(){for(var t,n,e=su,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:su=n);lu=t,Cu(r)}(),fu=0}}function Mu(){var t=mu.now(),n=t-du;n>1e3&&(pu-=n,du=t)}function Cu(t){cu||(uu&&(uu=clearTimeout(uu)),t-fu>24?(t<1/0&&(uu=setTimeout(_u,t-mu.now()-pu)),hu&&(hu=clearInterval(hu))):(hu||(du=mu.now(),hu=setInterval(Mu,1e3)),cu=1,gu(_u)))}vu.prototype=bu.prototype={constructor:vu,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?yu():+e)+(null==n?0:+n),this._next||lu===this||(lu?lu._next=this:su=this,lu=this),this._call=t,this._time=e,Cu()},stop:function(){this._call&&(this._call=null,this._time=1/0,Cu())}};class wu{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(yu()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=bu(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:yu(),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 Au=E().createContext({transitionTimer:new wu,animationTimer:new wu});Au.displayName="TimerContext";var Eu=Au;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)}class Su extends E().Component{static displayName="VictoryContainer";static role="container";static defaultProps={className:"VictoryContainer",portalComponent:E().createElement(ou,null),portalZIndex:99,responsive:!0,role:"img"};static contextType=Eu;constructor(t){super(t),this.containerId=eu()(t)&&void 0!==t.containerId?t.containerId:iu()("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=>(pt(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),g=Object.assign({overflow:"visible"},d),y={width:s,height:l,viewBox:n.viewBox,preserveAspectRatio:n.preserveAspectRatio,style:g};return E().createElement(au.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},E().createElement("div",ku({style:Q()({},e,f),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),E().createElement("svg",ku({},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,{...y,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:J(this.props.style,["height","width"]),u=Gc(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 Pu=t=>E().createElement("defs",null,E().createElement("clipPath",{id:t.clipId?.toString()},t.children));function Du(){return Du=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},Du.apply(this,arguments)}const Ou=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:at(r,t)?.toString(),tabIndex:at(i,t),...a};return e?E().createElement("circle",Du({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("circle",Du({},s,{ref:n}))}));function Lu(){return Lu=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},Lu.apply(this,arguments)}const Tu=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:at(r,t)?.toString(),tabIndex:at(i,t),...a};return e?E().createElement("rect",Lu({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("rect",Lu({},s,{ref:n}))}));class $u extends E().Component{static displayName="VictoryClipContainer";static role="container";static defaultProps={circleComponent:E().createElement(Ou,null),rectComponent:E().createElement(Tu,null),clipPathComponent:E().createElement(Pu,null),groupComponent:E().createElement("g",null)};constructor(t){super(t),this.clipId=eu()(t)&&void 0!==t.clipId?t.clipId:iu()("victory-clip-")}calculateAttributes(t){const{polar:n,origin:e,clipWidth:r=0,clipHeight:i=0,translateX:o=0,translateY:a=0}=t,s=et({padding:t.clipPadding}),l=t.radius||ut(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=Gc(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}=et({padding:t.clipPadding});let m;if(e){const n=t.radius||ut(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=dt(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=dt(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 ju(t){}class Nu extends E().Component{static displayName="VictoryPortal";static role="portal";static defaultProps={groupComponent:E().createElement("g",null)};static contextType=au;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,J(this.props,["children","groupComponent"])),o=t&&E().cloneElement(t,i);return this.renderPortal(o)}}const zu=t=>{const{children:n,desc:e,id:r,origin:i,tabIndex:o,title:a,...s}=t,l={id:at(r,t)?.toString(),tabIndex:at(o,t),...s};return E().createElement("text",l,a&&E().createElement("title",null,a),e&&E().createElement("desc",null,e),n)},Ru=t=>{const{desc:n,id:e,tabIndex:r,origin:i,...o}=t,a={id:at(e,t)?.toString(),tabIndex:at(r,t),...o};return E().createElement("tspan",a)},Iu=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,Iu(n)].join(" ")),Iu(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 Wu(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 Bu=r(1594),Vu=r.n(Bu);const Fu={"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}},Uu={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Hu={em:1,ex:.5},qu={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Gu=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),Ku=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},Yu=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=e?Uu.hasOwnProperty(e)?r*Uu[e]:Hu.hasOwnProperty(e)?(n?r*n:r*qu.fontSize)*Hu[e]:r:r||0,i},Xu=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=Q()({},e,qu);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Yu(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Yu(String(r.fontSize))})},Zu=(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:Gu(t).reduce(((t,e,r)=>{const i=Xu(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=Gu(t).map(((t,e)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=Xu(n,e),s=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>Fu[t]))||"Helvetica";return Fu[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?Ku(i,r,e):i,height:1.05*(e?Ku(r,i,e):r)}},Qu=Vu()((()=>{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})),Ju=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",th=Vu()(((t,n)=>{let e=Qu();e.isConnected||(Qu.cache.clear?.(),e=Qu());const r=Gu(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=Xu(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?Ku(o,i,n?.angle):o,height:n?.angle?Ku(i,o,n?.angle):i}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(Ju).join():Ju(n)}`)),nh={impl:function(t,n,e){return void 0===e&&(e=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||e?Zu(t,n):th(t,n)}},eh=(t,n)=>nh.impl(t,n),rh={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},ih=(t,n)=>t.datum?nt(t,t.datum)[n]:0,oh=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return rh.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?rh.fontSize:t}return rh.fontSize},ah=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},sh=t=>{const{backgroundStyle:n,backgroundPadding:e}=t;return Array.isArray(n)&&!N()(n)||Array.isArray(e)&&!N()(e)},lh=(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)}},ch=(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)}},uh=(t,n)=>sh(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=ah(n,i-1),s=t.textSize,u=t.fontSize*t.lineHeight,h=Math.ceil(u),d=ah(a,i),f=ah(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=lh(t,n.labelSize.width),h=u.slice(0,e+1).reduce(((t,n)=>t+n.dy),c),d=ah(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?ch(t,f)-d.top:h,g={key:`tspan-background-${e}`,height:f,style:ah(o,e),width:n.widthWithPadding,transform:i,x:p-d.left,y:m};return E().cloneElement(s,Q()({},s.props,g))}))})(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=lh(t,h),f=ch(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),hh=(t,n,e)=>{const{inline:r}=n,i=ah(t,e);return e&&!r?((t,n,e)=>{const r=ah(t,n),i=ah(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 sh(e)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c})(t,e,n):r?0===e?i.backgroundPadding.top:void 0:i.backgroundPadding.top},dh={backgroundComponent:E().createElement(Tu,null),groupComponent:E().createElement("g",null),direction:"inherit",textComponent:E().createElement(zu,null),tspanComponent:E().createElement(Ru,null),capHeight:.71,lineHeight:1},fh=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>at(t,n)));const e=at(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=st(t,n);return{fontSize:oh(e)}}const e=t=>{const e=st(t?Q()({},t,rh):rh,n);return Object.assign({},e,{fontSize:oh(e)})};return Array.isArray(t)&&!N()(t)?t.map((t=>e(t))):e(t)})(t.style,Object.assign({},t,{text:n})),r=((t,n)=>{if(t)return Array.isArray(t)&&!N()(t)?t.map((t=>st(t,n))):st(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:e})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>et({padding:at(n,t)}))):et({padding:at(t.backgroundPadding,t)}))(Object.assign({},t,{text:n,style:e,backgroundStyle:r})),o=at(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:e,text:n,id:o})})({...dh,...t});if(null===n.text||void 0===n.text)return null;const e=(t=>{const n=at(t.ariaLabel,t),e=ah(t.style),r=(t=>{const n=at(t.lineHeight,t);return Array.isArray(n)&&N()(n)?[1]:n})(t),i=t.direction?at(t.direction,t):"inherit",o=t.textAnchor?at(t.textAnchor,t):e.textAnchor||"start",a=t.verticalAnchor?at(t.verticalAnchor,t):e.verticalAnchor||"middle",s=t.dx?at(t.dx,t):0,l=((t,n,e)=>{const r=t.dy?at(t.dy,t):0,i=t.inline?1:t.text.length,o=at(t.capHeight,t),a=n?at(n,t):"middle",s=[...Array(i).keys()].map((n=>ah(t.style,n).fontSize)),l=[...Array(i).keys()].map((t=>ah(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:ih(t,"x"),u=void 0!==t.y?t.y:ih(t,"y"),h=((t,n,e)=>{const{polar:r}=t,i=ah(t.style),o=r?Qa(t):0,a=void 0===i.angle?at(t.angle,t):i.angle,s=void 0===a?o:a,l=t.transform||i.transform,c=l&&at(l,t);return c||s?Iu(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:at(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=ah(i,n),r=Yu(`${o}em`,e.fontSize),l=ah(s,n);return{style:e,fontSize:e.fontSize||rh.fontSize,capHeight:r,text:t,textSize:eh(t,e),lineHeight:l,backgroundPadding:ah(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:g,tabIndex:y,tspanComponent:x,textComponent:v}=t,b=Gc(t),_={"aria-label":e,key:"text",...a,direction:s,dx:u,x:f,y:p+h,transform:d,className:i,title:o,desc:at(m,t),tabIndex:at(y,t),id:g,...b},M=l.map(((e,i)=>{const o=n[i].style,a={key:`${g}-key-${i}`,x:r?void 0:f,dx:r?u+n[i].backgroundPadding.left:u,dy:hh(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=[uh(e,l),c],r=E().cloneElement(n.groupComponent,{},t);return n.renderInPortal?E().createElement(Nu,null,r):r}return n.renderInPortal?E().createElement(Nu,null,c):c};fh.displayName="VictoryLabel",fh.role="label",fh.defaultStyles=rh;const ph=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],mh="#252525",gh="#969696",yh={width:450,height:300,padding:50,colorScale:ph},xh={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:mh,stroke:"transparent"},vh=Object.assign({textAnchor:"middle"},xh),bh={area:Object.assign({style:{data:{fill:mh},labels:xh}},yh),axis:Object.assign({style:{axis:{fill:"transparent",stroke:mh,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},vh,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:xh}},yh),bar:Object.assign({style:{data:{fill:mh,padding:8,strokeWidth:0},labels:xh}},yh),boxplot:Object.assign({style:{max:{padding:8,stroke:mh,strokeWidth:1},maxLabels:Object.assign({},xh,{padding:3}),median:{padding:8,stroke:mh,strokeWidth:1},medianLabels:Object.assign({},xh,{padding:3}),min:{padding:8,stroke:mh,strokeWidth:1},minLabels:Object.assign({},xh,{padding:3}),q1:{padding:8,fill:gh},q1Labels:Object.assign({},xh,{padding:3}),q3:{padding:8,fill:gh},q3Labels:Object.assign({},xh,{padding:3})},boxWidth:20},yh),candlestick:Object.assign({style:{data:{stroke:mh,strokeWidth:1},labels:Object.assign({},xh,{padding:5})},candleColors:{positive:"#ffffff",negative:mh}},yh),chart:yh,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:mh,strokeWidth:2},labels:xh}},yh),group:Object.assign({colorScale:ph},yh),histogram:Object.assign({style:{data:{fill:gh,stroke:mh,strokeWidth:2},labels:xh}},yh),legend:{colorScale:ph,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:xh,title:Object.assign({},xh,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:mh,strokeWidth:2},labels:xh}},yh),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},xh,{padding:20})},colorScale:ph,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:mh,stroke:"transparent",strokeWidth:0},labels:xh}},yh),stack:Object.assign({colorScale:ph},yh),tooltip:{style:Object.assign({},xh,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:mh,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({},xh,{padding:5,pointerEvents:"none"}),flyout:{stroke:mh,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},yh)},_h=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],Mh="#ECEFF1",Ch="#90A4AE",wh="#455A64",Ah="#212121",Eh={width:350,height:350,padding:50},kh={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:wh,stroke:"transparent",strokeWidth:0},Sh=Object.assign({textAnchor:"middle"},kh),Ph="round",Dh="round",Oh={grayscale:bh,material:{area:Object.assign({style:{data:{fill:Ah},labels:kh}},Eh),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Ch,strokeWidth:2,strokeLinecap:Ph,strokeLinejoin:Dh},axisLabel:Object.assign({},Sh,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:Mh,strokeDasharray:"10, 5",strokeLinecap:Ph,strokeLinejoin:Dh,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Ch,strokeWidth:1,strokeLinecap:Ph,strokeLinejoin:Dh},tickLabels:Object.assign({},kh,{fill:wh})}},Eh),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:wh,padding:8,strokeWidth:0},labels:kh}},Eh),boxplot:Object.assign({style:{max:{padding:8,stroke:wh,strokeWidth:1},maxLabels:Object.assign({},kh,{padding:3}),median:{padding:8,stroke:wh,strokeWidth:1},medianLabels:Object.assign({},kh,{padding:3}),min:{padding:8,stroke:wh,strokeWidth:1},minLabels:Object.assign({},kh,{padding:3}),q1:{padding:8,fill:wh},q1Labels:Object.assign({},kh,{padding:3}),q3:{padding:8,fill:wh},q3Labels:Object.assign({},kh,{padding:3})},boxWidth:20},Eh),candlestick:Object.assign({style:{data:{stroke:wh},labels:Object.assign({},kh,{padding:5})},candleColors:{positive:"#ffffff",negative:wh}},Eh),chart:Eh,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:wh,strokeWidth:2},labels:kh}},Eh),group:Object.assign({colorScale:_h},Eh),histogram:Object.assign({style:{data:{fill:wh,stroke:Ah,strokeWidth:2},labels:kh}},Eh),legend:{colorScale:_h,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:kh,title:Object.assign({},kh,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:wh,strokeWidth:2},labels:kh}},Eh),pie:Object.assign({colorScale:_h,style:{data:{padding:8,stroke:Mh,strokeWidth:1},labels:Object.assign({},kh,{padding:20})}},Eh),scatter:Object.assign({style:{data:{fill:wh,opacity:1,stroke:"transparent",strokeWidth:0},labels:kh}},Eh),stack:Object.assign({colorScale:_h},Eh),tooltip:{style:Object.assign({},kh,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Ah,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({},kh,{padding:5,pointerEvents:"none"}),flyout:{stroke:Ah,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Eh)}};function Lh(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function Th(){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 $h(){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 jh=r(4882),Nh=r.n(jh),zh=r(6354),Rh=r.n(zh),Ih=r(4912),Wh=r.n(Ih);const Bh=/^onGlobal(.*)$/;function Vh(t,n,e,r){const i=t=>{const r=(()=>{const r=t.reduce(((t,e)=>void 0!==e.target?(Array.isArray(e.target)?L()(e.target,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&&pt(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 Fh(t,n,e,r){if(N()(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(!pt(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]&&!K()(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]?Nh()(K()(i[n]),"parent"):Nh()(K()(i),"parent"):void 0===t.eventKey&&"parent"===r?i[n]?K()(i[n]):K()(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?Nh()(K()(i),"parent"):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(!N()(o)){const t=(t=>{const n=t=>pt(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 K()(t).reduce(((t,n)=>(t[n]=s,t)),{})}function Uh(t,n,e){return t?K()(t).reduce(((r,i)=>(r[i]=r=>t[i](r,e,n,i),r)),{}):{}}function Hh(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 qh(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),r.reduce(((r,i)=>{const o=e[i],a=Gh(t,n[i],e[i],i);return r[i]=a||o,Wh()(r,(t=>!N()(t)))}),{})}function Gh(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),K()(n).reduce(((i,o)=>{const a=e[o]||{},s=n[o]||{};if("parent"===o){const n=Kh(t,s,a,{eventKey:o,target:"parent"});i[o]=void 0!==n?Object.assign({},a,n):a}else{const n=q()(K()(s).concat(K()(a)));i[o]=n.reduce(((n,e)=>{const i={eventKey:o,target:e,childName:r},l=Kh(t,s[e],a[e],i);return n[e]=void 0!==l?Object.assign({},a[e],l):a[e],Wh()(n,(t=>!N()(t)))}),{})}return Wh()(i,(t=>!N()(t)))}),{})}function Kh(t,n,e,r){const i=(t,n)=>{if("string"==typeof t[n])return"all"===t[n]||t[n]===r[n];if(Array.isArray(t[n])){const e=t[n].map((t=>`${t}`));return L()(e,r[n])}return!1};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(N()(a))return;const s=a.filter((t=>i(t,"eventKey")));return N()(s)?void 0:s.reduce(((t,r)=>{const i=(r&&pt(r.mutation)?r.mutation:()=>{})(Object.assign({},n,e));return Object.assign({},t,i)}),{})}function Yh(t,n){const e=Array.isArray(n)&&n.reduce(((n,e)=>{const r=t[e],i=r&&r.type&&r.type.defaultEvents,o=pt(i)?i(r.props):i;return Array.isArray(o)?n.concat(...o):n}),[]);return e&&e.length?e:void 0}function Xh(t){const n=t.match(Bh);return n&&n[1]&&n[1].toLowerCase()}const Zh=t=>Wh()(t,((t,n)=>Bh.test(n))),Qh=t=>S()(t,((t,n)=>Bh.test(n))),Jh=t=>Object.assign(t,{nativeEvent:t});var td=r(7491),nd=r.n(td);const ed=t=>+t;function rd(t){return t*t}function id(t){return t*(2-t)}function od(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function ad(t){return t*t*t}function sd(t){return--t*t*t+1}function ld(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var cd=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),ud=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),hd=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),dd=Math.PI,fd=dd/2;function pd(t){return 1==+t?1:1-Math.cos(t*fd)}function md(t){return Math.sin(t*fd)}function gd(t){return(1-Math.cos(dd*t))/2}function yd(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function xd(t){return yd(1-+t)}function vd(t){return 1-yd(t)}function bd(t){return((t*=2)<=1?yd(1-t):2-yd(t-1))/2}function _d(t){return 1-Math.sqrt(1-t*t)}function Md(t){return Math.sqrt(1- --t*t)}function Cd(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var wd=7.5625;function Ad(t){return 1-Ed(1-t)}function Ed(t){return(t=+t)<.36363636363636365?wd*t*t:t<.7272727272727273?wd*(t-=.5454545454545454)*t+.75:t<.9090909090909091?wd*(t-=.8181818181818182)*t+.9375:wd*(t-=.9545454545454546)*t+.984375}function kd(t){return((t*=2)<=1?1-Ed(1-t):Ed(t-1)+1)/2}var Sd=1.70158,Pd=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(Sd),Dd=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(Sd),Od=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}(Sd),Ld=2*Math.PI,Td=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Ld);function i(t){return n*yd(- --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),$d=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Ld);function i(t){return 1-n*yd(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),jd=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*yd(-t)*Math.sin((r-t)/e):2-n*yd(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 Nd=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)||V()(t)}return!1},zd=function(t,n,e){return void 0===e&&(e=0),function(r){return r<e?t:n}},Rd=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 Xn(r,i)(e)}}},Id=function(t,n){const e=(t,n)=>t!==n&&Nd(t)&&Nd(n)?"function"==typeof t||"function"==typeof n?Rd(t,n):"object"==typeof t&&V()(t)||"object"==typeof n&&V()(n)?Id(t,n):Xn(t,n):zd(t,n),r=t=>Array.isArray(t)?R()(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}},Wd=1e3,Bd=t=>{let{duration:n=Wd,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(Eu).animationTimer,u=E().useRef(Array.isArray(i)?i.slice(1):[]),h=E().useRef(null),d=E().useRef(void 0),f=x[(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&&Nd(t)&&Nd(n)?"function"==typeof t||"function"==typeof n?Rd(t,n):V()(t)||V()(n)?Id(t,n):"string"==typeof t||"string"==typeof n?function(t,n){const e=t=>"string"==typeof t?t.replace(/,/g,""):t;return Xn(e(t),e(n))}(t,n):Xn(t,n):zd(t,n)}(s.data,t),r?setTimeout((()=>{d.current=c.subscribe(g,n)}),r):d.current=c.subscribe(g,n)}else a&&a()},g=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 Vd=r(5346),Fd=r.n(Vd);function Ud(t,n){return(t.key||n).toString()}function Hd(t){return t.reduce(((t,n,e)=>(t[Ud(n,e)]=n,t)),{})}function qd(t,n){let e=!1;const r=K()(t).reduce(((t,r)=>(r in n||(e=!0,t[r]=!0),t)),{});return e&&r}function Gd(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function Kd(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&&Hd(t),r=n&&Hd(n);return{entering:e&&qd(r,e),exiting:r&&qd(e,r)}}(Gd(t),Gd(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 Yd(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:Fd();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:Fd();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:Fd();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:Fd();s=n.map(((e,i)=>{const o=Ud(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:Fd();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=Gd(e)||[],m=Q()({},t.animate,e.props.animate),g=e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;m.onExit=Q()({},m.onExit,g&&g.onExit),m.onEnter=Q()({},m.onEnter,g&&g.onEnter),m.onLoad=Q()({},m.onLoad,g&&g.onLoad);const y=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=y&&y.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=y&&y.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:Fd();return{data:n.map(((t,r)=>Object.assign({},t,e(t,r,n))))}}(m,p):{animate:m,data:p}}}function Xd(){return Xd=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},Xd.apply(this,arguments)}class Zd extends E().Component{static displayName="VictoryTransition";static contextType=Eu;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 nd()(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}=Kd(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&&pt(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]:[Pt(a),St(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=dt(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:Yd(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?X()(a,s):a;return E().createElement(Bd,Xd({},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))}))}}const Qd=t=>!ft(t._x)&&!ft(t._y),Jd=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function tf(t,n){return void 0===n&&(n={}),class extends t{constructor(t){super(t),this.cacheValues(this.getCalculatedValues(t))}state={};getEventState=Hh.bind(this);getScopedEvents=Fh.bind(this);getEvents=(t,n,e)=>Vh.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=!nd()(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 nd()(this.calculatedState,i)?!nd()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}componentDidMount(){const t=K()(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(t){const n=this.getStateChanges(t);this.calculatedState=n;const e=K()(this.globalEvents);Rh()(this.prevGlobalEventKeys,e).forEach((t=>this.removeGlobalListener(t))),Rh()(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(Jh(n))};this.boundGlobalEvents[t]=n,window.addEventListener(Xh(t),n)}removeGlobalListener(t){window.removeEventListener(Xh(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 N()(e)?void 0:e};return(n.components||Jd).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(!N()(n)){const e=t.externalEventMutations.reduce(((t,n)=>pt(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=Yh(n,t.expectedComponents),i=e&&pt(e.getEventState)?e.getEventState:()=>{},o=this.getBaseProps(n,i);return{componentEvents:r,getSharedEventState:i,baseProps:o,dataKeys:K()(o).filter((t=>"parent"!==t)),hasEvents:n.events||n.sharedEvents||r,events:this.getAllEvents(n)}}getExternalMutations(t){const{sharedEvents:n,externalEventMutations:e}=t;return N()(e)||n?void 0:Gh(e,this.baseProps,this.state)}cacheValues(t){K()(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?X()(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()({},Uh(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=Zh(e.events),e.events=Qh(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(Zd,{animate:t.animate,animationWhitelist:e},E().createElement(r,t))}renderContinuousData(t){const{dataComponent:n,labelComponent:e,groupComponent:r}=t,i=Nh()(this.dataKeys,"all").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}),[]),o=this.getComponentProps(n,"data","all"),a=[E().cloneElement(n,o),...i];return this.renderContainer(r,a)}renderData(t,n){void 0===n&&(n=Qd);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 nf={width:450,height:300,padding:50,interpolation:"linear"};class ef extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static defaultProps={containerComponent:E().createElement(Su,null),dataComponent:E().createElement(tu,null),groupComponent:E().createElement($u,null),labelComponent:E().createElement(fh,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Oh.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=Fa;static getData=wa;static getBaseProps=t=>((t,n)=>{const e=gt(t,n,"area"),r=Object.assign({},e,(t=>{const{polar:n}=t,e=it(t,"area"),r=ot(t.style,e),i={x:dt(t,"x"),y:dt(t,"y")},o={x:Fa(t,"x"),y:Fa(t,"y")},a={x:Qo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Qo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},s=n?t.origin||ht(t):void 0,l=((t,n)=>{let e=wa(t);e.length<2&&(e=[]);const r=t=>{const e="log"===ra(n[t])?1/Number.MAX_SAFE_INTEGER:0,r=n[t].domain(),i=Pt(r),o=St(r);let a=e;return i<0&&o<=0?a=o:i>=0&&o>0&&(a=i),Ct(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:g,style:y,theme:x,width:v,labels:b,name:_,disableInlineStyles:M}=r,C={parent:{style:y.parent,width:v,height:l,scale:p,data:i,domain:o,standalone:g,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?{}:y.data,disableInlineStyles:M}}};return i.reduce(((t,n,e)=>((null!=Ya(r,n,e)||b&&(a||m))&&(t[ft(n.eventKey)?e:n.eventKey]={labels:ts(r,e)}),t)),C)})(t,nf);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=ef,e=gt(this.props,nf,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderContinuousData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Kc(i,e)}}const rf=tf(ef,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]});function of(){return of=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},of.apply(this,arguments)}const af=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:at(r,t)?.toString(),tabIndex:at(i,t),...a};return e?E().createElement("line",of({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("line",of({},s,{ref:n}))})),sf={lineComponent:E().createElement(af,null),role:"presentation",shapeRendering:"auto"},lf=t=>{const n=(t=>{const n=at(t.ariaLabel,t),e=at(t.desc,t),r=at(t.id,t),i=st(Object.assign({stroke:"black"},t.style),t),o=at(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...sf,...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})};var cf=r(366),uf=r.n(cf),hf=r(471),df=r.n(hf);function ff(t){const{dependentAxis:n}=t;return n?"y":"x"}function pf(t,n){const e=n||Fd(),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 mf(t,n){return pf(t,(t=>t.type.getAxis(t.props)===n))[0]}function gf(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 yf(t){const n=t=>{const n=Math.min(...t),e=Math.max(...t);return e<0?e:Math.max(0,n)};return{x:Ct(t.x)?new Date(Math.min(...t.x)):n(t.x),y:Ct(t.y)?new Date(Math.min(...t.y)):n(t.y)}}function xf(t,n){return Ct(n)?"positive":t<=0&&Math.max(...n)<=0?"negative":"positive"}function vf(t){return{top:!1,bottom:!1,left:!0,right:!0}[t.orientation||(t.dependentAxis?"left":"bottom")]}function bf(t){return void 0!==t.tickValues&&Mt(t.tickValues)}function _f(t){const{tickValues:n,tickFormat:e}=t;if(0===n?.length)return[];const r=ff(t),i=t.stringMap&&t.stringMap[r];let o=n;i&&(o=function(t){const n=ff(t),e=t.stringMap&&t.stringMap[n],r=Array.isArray(t.categories)?t.categories:t.categories&&t.categories[n],i=r&&At(r)?r.map((t=>e[t])):void 0,o=e&&uf()(e);return i&&0!==i.length?i:o}(t)),n&&Mt(n)&&(o=i?n.map((t=>i[t])):xt(1,n.length+1));const a=o?q()(o):(()=>{if(e&&Array.isArray(e))return Mt(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>=Pt(i)&&t<=St(i)&&e.push({value:t,index:n}):e.push({value:t,index:n})})),e})(a):void 0}function Mf(t,n){const{tickFormat:e}=t,r=ff(t),i=t.stringMap&&t.stringMap[r];if(!e){const e=function(t){const{tickValues:n}=t,e=ff(t),r=t.stringMap&&t.stringMap[e],i=n&&!Ct(n)?t=>t:void 0;if(!r)return bf(t)?(t,e)=>n[e]:i;const o=r&&df()(r),a=["",...R()(uf()(r),(t=>t)).map((t=>o[t])),""];return t=>a[t]}(t),r=n.tickFormat&&pt(n.tickFormat)?n.tickFormat():t=>t;return e||r}if(e&&Array.isArray(e)){const n=_f(t)?.map((t=>t.index)),r=e.filter(((t,e)=>n?.includes(e)));return(t,n)=>r[n]}if(e&&pt(e)){const n=(n,e,r)=>{const o=df()(i),a=r.map((t=>o[t]));return t.tickFormat(o[n],e,a)};return i?n:e}return t=>t}function Cf(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 wf(t,n,e){void 0===e&&(e=!1);const{tickCount:r}=t,i=_f(t);if(0===i?.length)return[""];const o=i?i.map((t=>t.value)):void 0;if(o)return Cf(o,r);if(n.ticks&&pt(n.ticks)){const t=r||5,i=n.ticks(t),o=Cf(Array.isArray(i)&&i.length?i:n.domain(),r);if(e){const t=L()(o,0)?Nh()(o,0):o;return t.length?t:o}return o}return n.domain()}function Af(t,n){const{polar:e,startAngle:r=0,endAngle:i=360}=t,o=_f(t),a=o&&0!==o?.length?o.map((t=>t.value)):void 0;if(!Array.isArray(a))return;const s=Ha(t,n),l=Ua(t,n),c=bf(t),u=a.map((t=>Number(t))),h=c?1:Pt(u),d=c?a.length:St(u),f=Ba(void 0!==s?s:h,void 0!==l?l:d),p=e&&"x"===n&&360===Math.abs(r-i)?qa(f,u):f;return vf(t)&&!e&&p.reverse(),p}function Ef(t,n){const e=ff(t);if(!n||n===e)return Na(Af)(t,e)}function kf(t,n){if(!t.axisValue)return;const e="x"===n?"y":"x",r=eu()(t.scale)&&pt(t.scale[e])?t.scale[e]:void 0;if(!r)return;const i="x"===n?"y":"x",o=eu()(t.stringMap)&&t.stringMap[i];return r(o&&"string"==typeof t.axisValue?o[t.axisValue]:t.axisValue)}function Sf(t,n){if(!eu()(t.theme))return gt(t,n,"axis");let e="axis";if(t.dependentAxis&&t.theme.dependentAxis?e="dependentAxis":!t.dependentAxis&&t.theme.independentAxis&&(e="independentAxis"),"axis"===e)return gt(t,n,"axis");const r=Q()({},t.theme[e],t.theme.axis),i=Object.assign({},t.theme,{axis:r});return gt(Object.assign({},t,{theme:i}),n,"axis")}const Pf={top:-1,left:-1,right:1,bottom:1},Df=t=>null!=t,Of=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)}},Lf=(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}},Tf=(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}},$f=(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}},jf=(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]},Nf=(t,n)=>t instanceof Date&&n instanceof Date?t.getTime()===n.getTime():t===n,zf=(t,n,e)=>{const{orientation:r,axis:i}=n,o=kf(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]},Rf=(t,n,e)=>{const{tickStyle:r,labelStyle:i}=t,o=r.size||0,a=o+(r.padding||0)+(i.padding||0),s=Pf[n];return{x:e?s*a:0,x2:e?s*o:0,y:e?0:s*a,y2:e?0:s*o}},If=(t,n,e)=>({x:e?n.x:t+n.x,y:e?t+n.y:n.y}),Wf=(t,n)=>{const{orientation:e,padding:r,isVertical:i}=n,o=-Pf[e];return{x:i?o*(t.width-(r.left+r.right)):0,y:i?0:o*(t.height-(r.top+r.bottom))}},Bf=(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}},Vf=(t,n)=>{const e=Sf(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=Of(t,n),r=et(t),i=((t,n)=>{const e=n.axisLabel||{};if(void 0!==e.padding&&null!==e.padding)return e.padding;const r=vf(t),i=e.fontSize||14;return t.label?i*(r?2.3:1.6):0})(t,e),o=bf(t)?t.tickValues:void 0,a=ff(t),s=Ef(t),l=(t=>{const n=ff(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=Qo(t,n),i=t.domain&&t.domain[n]||Ef(t)||r.domain();return r.range(dt(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=wf(t,l,f),m=Mf(t,l),g={x:dt(t,"x"),y:dt(t,"y")},y={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?Qo(t,"x").domain(t.domain.x).range(t.horizontal?g.y:g.x):h,y:t.domain&&t.domain.y?Qo(t,"y").domain(t.domain.y).range(t.horizontal?g.x:g.y):d},v=y.x&&y.y?yf(y):void 0,b=v?{x:xf(v.x,y.x),y:xf(v.y,y.y)}:void 0,_=b?{x:jf("x",b.y,t.horizontal),y:jf("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=vf(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:y,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:g,standalone:y,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,g="bottom"===d?t.height:0,y=Nf(r.x,a.x[0])||Nf(r.x,a.x[1])?0:e.x(r.x),x=Nf(r.y,a.y[0])||Nf(r.y,a.y[1])?0:e.y(r.y),v=y?Math.abs(g-y):p.x,b=x?Math.abs(m-x):p.y;return{x:Df(t.offsetX)?t.offsetX:b,y:Df(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,g="bottom"===d?t.height:0,y=Nf(r.x,a.x[0])||Nf(r.x,a.x[1])?0:e.x(r.x),x=Nf(r.y,a.y[0])||Nf(r.y,a.y[1])?0:e.y(r.y),v=y?Math.abs(m-y):p.x,b=x?Math.abs(g-x):p.y;return{x:Df(t.offsetX)?t.offsetX:v,y:Df(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,g=null!==t.offsetX&&void 0!==t.offsetX?t.offsetX:p,y=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 st(e.ticks,Object.assign({},f,{tick:i,index:r})).size||0})),b=x+2*Math.max(...v)+u,_=1.2*x;return{x:null!=g?g:c?b:_,y:null!=y?y:c?_:b}})(t,n),{globalTransform:zf(t,n,e),gridOffset:Bf(n,e),gridEdge:Wf(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=Pf[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:y,theme:x,width:m,height:g,padding:b,domain:d},A)},P={dimension:p,range:{[p]:dt(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:st(t.ticks,n),labelStyle:st(t.tickLabels,n),gridStyle:st(t.grid,n)}))(o,Object.assign({},A,{tick:r,tickValue:n,index:e,text:d})),m={position:Rf(p,a,s),transform:If(l[i]?.(n),M,s)},g={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,Lf(m,p.tickStyle,n)),tickLabels:Object.assign({},A,Tf(m,p.labelStyle,h,n,d)),grid:Object.assign({},A,P,$f(g,p.gridStyle,n))},t}),S)},Ff={width:450,height:300,padding:50};class Uf 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(lf,null),axisLabelComponent:E().createElement(fh,null),tickLabelComponent:E().createElement(fh,null),tickComponent:E().createElement(lf,null),gridComponent:E().createElement(lf,null),standalone:!0,theme:Oh.grayscale,containerComponent:E().createElement(Su,null),groupComponent:E().createElement("g",{role:"presentation"}),fixLabelOverlap:!1};static getDomain=Ef;static getAxis=ff;static getStyles=t=>Of(t);static getBaseProps=t=>Vf(t,Ff);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||!N()(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=vf(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=eh(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}=Hf,n=Sf(this.props,Ff),e=Gc(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 Hf=tf(Uf,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),qf=(t,n)=>{const e=e=>{let r="log"===ra(t.scale[e])?1/Number.MAX_SAFE_INTEGER:0;const i=Pt(t.domain[e]),o=St(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 nt(t,Object.assign({},n,{_y0:r,_x0:i}))},Gf=(t,n)=>{const{scale:e,data:r,style:i}=n;if(t)return at(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)},Kf=(t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?function(t){return V()(t)}(t)?((t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=(r,i)=>{ft(t[r])?ft(t[i])||(e[r]=at(t[i],n)):e[r]=at(t[r],n)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),e})(t,n):(e.topLeft=at(t,n),e.topRight=at(t,n),e):e},Yf=function(t,n){if(void 0===t&&(t={}),n.disableInlineStyles)return{};const e={fill:"black",stroke:t.fill||"black"};return st(Object.assign(e,t),n)},Xf=(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 Xf(this.x+t.x,this.y+t.y)},subtract(t){return Xf(this.x-t.x,this.y-t.y)},scalarMult(t){return Xf(this.x*t,this.y*t)},scalarDivide(t){if(0===t)throw new Error("Division by 0 error");return Xf(this.x/t,this.y/t)},equals(t){return this.x===t.x&&this.y===t.y}}),Zf=(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=[Xf(f-s*(d-u)/o,p+s*(h-c)/o),Xf(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]}}),Qf=(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}},Jf=(t,n)=>{const{data:e,scale:r}=t,i=void 0===e[n]._x1?"_x":"_x1";return r.x(e[n][i])},tp=t=>-1*t+Math.PI/2,np=(t,n)=>{const{getPath:e}=t;if("function"==typeof e)return e({...t,...Qf(t,n)})},ep=(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`},rp=(t,n,e)=>{const r=Qf(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=Xf(c+l*e[`top${t}`],a+n*e[`top${t}`]),i=Zf(r,e[`top${t}`]),p=Xf(c+l*e[`bottom${t}`],o-n*e[`bottom${t}`]),m=Zf(p,e[`bottom${t}`]),g=i.intersection(m);if(g.length>0){const t=g[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 ep(a,e,o)},ip=(t,n,e)=>{const r=Qf(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=Xf(o+e[`${t}Left`],c-l*e[`${t}Left`]),i=Zf(r,e[`${t}Left`]),p=Xf(a-e[`${t}Right`],c-l*e[`${t}Right`]),m=Zf(p,e[`${t}Right`]),g=i.intersection(m);if(g.length>0){const t=g[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 ep(a,o,"0 0 1")},op=(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=Jf(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=0===n?Jf(t,e.length-1)-2*Math.PI:Jf(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=Jf(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=r.x.range()[1]===2*Math.PI?Jf(t,0)+2*Math.PI:r.x.range()[1],l=n===e.length-1?Jf(t,0)+2*Math.PI:Jf(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=>Fs().innerRadius(s).outerRadius(l).startAngle(tp(u)).endAngle(tp(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 g=p.indexOf("L"),y=p.slice(0,g),x=m.slice(0,g);return y.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 g=p.indexOf("L"),y=p.slice(g,-1),x=m.slice(g,-1);return y.map(((t,n)=>({command:t,coords:x[n].split(",")})))})()].reduce(((t,n)=>`${t}${n.command} ${n.coords.join()}`),"")} z`},ap=(t,n,e)=>t.getPath?np(t,n):t.horizontal?ip(t,n,e):rp(t,n,e),sp=(t,n)=>op(t,n),lp={pathComponent:E().createElement(Uc,null),role:"presentation",shapeRendering:"auto"},cp=(0,A.forwardRef)((function(t,n){const e=(t=>{const n=Yf(t.style,t),e=Gf(t.barWidth,Object.assign({},t,{style:n})),r=Kf(t.cornerRadius,Object.assign({},t,{style:n,barWidth:e})),i=at(t.ariaLabel,t),o=at(t.desc,t),a=at(t.id,t),s=at(t.tabIndex,t);return Object.assign({},t,{ariaLabel:i,style:n,barWidth:e,cornerRadius:r,desc:o,id:a,tabIndex:s})})({...lp,...t}),{polar:r,origin:i,style:o,barWidth:a,cornerRadius:s}=e,l=r?sp(e,s):ap(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})),up={width:450,height:300,padding:50},hp=[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}];class dp 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(Su,null),data:hp,dataComponent:E().createElement(cp,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(fh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Oh.grayscale};static getDomain=Fa;static getData=wa;static getBaseProps=t=>((t,n)=>{const e=gt(t,n,"bar"),r=Object.assign({},e,(t=>{const{polar:n}=t,e=it(t,"bar"),r=t.disableInlineStyles?{}:ot(t.style,e),i=t.range||{x:dt(t,"x"),y:dt(t,"y")},o={x:Fa(t,"x"),y:Fa(t,"y")},a={x:Qo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Qo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},s=n?t.origin||ht(t):void 0;let l=wa(t);return l=xa(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:g,sharedEvents:y,standalone:x,style:v,theme:b,width:_,labels:M,name:C,barWidth:w,getPath:A}=r,E={parent:{horizontal:d,domain:c,scale:g,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=ft(n.eventKey)?e:n.eventKey,{x:p,y:x,y0:b,x0:C}=qf(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:g,style:v.data,width:_,height:h,x:p,y:x,y0:b,x0:C};return t[c]={data:E},(null!=Ya(r,n,e)||M&&(u||y))&&(t[c].labels=ts(r,e)),t}),E)})(t,up);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=fp,e=gt(this.props,up,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Kc(i,e)}}const fp=tf(dp),pp={rectComponent:E().createElement(Tu,null),role:"presentation",shapeRendering:"auto"},mp=t=>{const n=(t=>{const n=at(t.ariaLabel,t),e=at(t.desc,t),r=at(t.id,t),i=st(Object.assign({fill:"none"},t.style),t),o=at(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...pp,...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})},gp={groupComponent:E().createElement("g",null),lineComponent:E().createElement(af,null),role:"presentation",shapeRendering:"auto"},yp=t=>{const n=(t=>{const n=at(t.ariaLabel,t),e=at(t.desc,t),r=at(t.id,t),i=st(t.style,t),o=at(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...gp,...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,g={...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},g,s)),E().cloneElement(i,Object.assign({key:"minor-whisker","aria-label":e},g,l))])};var xp=r(9056),vp=r.n(xp);const bp=["max","min","median","q1","q3"],_p=t=>Number.isNaN(t)?null:t,Mp=t=>{const n=t.map((t=>t._y)),e={_q1:_p(Qe(n,.25)),_q3:_p(Qe(n,.75)),_min:_p(Ke(n)),_median:_p(Qe(n,.5)),_max:_p(Ge(n))};return Object.assign({},t[0],e,{_y:t[0]._y})},Cp=t=>{const n=bp.concat("x","y"),e=_a(t.data,t,n);return e.length?(t=>{const n=(t=>{if(t.every((t=>bp.every((n=>void 0!==t[`_${n}`]))))){const n=t.map((t=>t._x));if(!q()(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=R()(n,r);return Mp(e)}));{const n=vp()(t,i);return K()(n).map((t=>{const e=n[t],i=R()(e,r);return Mp(i)}))}}})(e):[]},wp=(t,n)=>{const e=Ha(t,n),r=Ua(t,n),i=Cp(t);return i.length<1?void 0!==e&&void 0!==r?Ba(e,r):void 0:"y"===n?((t,n,e)=>{const r=Ha(n,e),i=Ua(n,e);return Ba(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=Ha(n,e),i=Ua(n,e);return Ba(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)},Ap=(t,n)=>Na(wp)(t,n),Ep=(t,n,e)=>{const r=t[`${e}LabelComponent`]||t.labelComponent,i=n[`${e}Labels`]||n.labels;if(!rt(r))return i;const o=t.theme&&t.theme.tooltip||{};return Q()({},o.style,i)},kp=(t,n)=>{const e=gt(t,n,"boxplot"),r=Object.assign({},e,(t=>{const{theme:n,horizontal:e}=t,r=Cp(t),i={x:dt(t,"x"),y:dt(t,"y")},o={x:Ap(t,"x"),y:Ap(t,"y")},a={x:Qo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Qo(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,Ep(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,Ep(t,n,"max"),r),median:Q()({},e.median,n.median,o),medianLabels:Q()({},e.medianLabels,Ep(t,n,"median"),r),min:Q()({},e.min,n.min,o),minLabels:Q()({},e.minLabels,Ep(t,n,"min"),r),q1:Q()({},e.q1,n.q1,i),q1Labels:Q()({},e.q1Labels,Ep(t,n,"q1"),r),q3:Q()({},e.q3,n.q3,i),q3Labels:Q()({},e.q3Labels,Ep(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:g,name:y}=r,x={parent:{domain:g,scale:d,width:o,height:a,data:p,standalone:l,name:y,theme:c,style:m.parent||{},padding:s,groupComponent:i,horizontal:f}},v=d.y;return p.reduce(((t,n,e)=>{const i=ft(n.eventKey)?e:n.eventKey;if(((t,n)=>{const e=t=>void 0!==t,{_x:r,_min:i,_max:o}=t,a=Pt(n.x),s=St(n.x),l=Pt(n.y),c=St(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 g,y;return(d(r)||p(r))&&(y=!0),(f(i)&&f(o)||m(i)&&m(o))&&(g=!0),g||y})(n,g))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=bp.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,g="min"===n?d:f,y="min"===n?u:h,x="number"==typeof o?o:i;return{datum:a,index:l,scale:s,majorWhisker:{x1:e?g:p,y1:e?m:g,x2:e?y:p,y2:e?m:y},minorWhisker:{x1:e?y:p-x/2,y1:e?m-x/2:y,x2:e?y:p+x/2,y2:e?m+x/2:y},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,bp.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,g=t=>{const n={x:"left"===d?-1:1,y:"top"===d?-1:1};return n[t]*m/2+n[t]*(f.padding||0)},y={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?g("y"):0,dx:s?0:g("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(!rt(t[`${e}LabelComponent`]))return y;const x=u&&u.tooltip||{};return Q()({},y,J(x,["style"]))})(Object.assign({},r,a),e,n)}})),t}),x)},Sp={width:450,height:300,padding:{top:20,right:20,bottom:20,left:20}},Pp=[{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 Dp 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(Su,null),data:Pp,dataComponent:E().createElement(mp,null),groupComponent:E().createElement("g",{role:"presentation"}),maxComponent:E().createElement(yp,null),maxLabelComponent:E().createElement(fh,null),medianComponent:E().createElement(lf,null),medianLabelComponent:E().createElement(fh,null),minComponent:E().createElement(yp,null),minLabelComponent:E().createElement(fh,null),q1Component:E().createElement(mp,null),q1LabelComponent:E().createElement(fh,null),q3Component:E().createElement(mp,null),q3LabelComponent:E().createElement(fh,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Oh.grayscale};static getDomain=Ap;static getData=Cp;static getBaseProps=t=>kp(t,Sp);static expectedComponents=["maxComponent","maxLabelComponent","medianComponent","medianLabelComponent","minComponent","minLabelComponent","q1Component","q1LabelComponent","q3Component","q3LabelComponent","groupComponent","containerComponent"];renderBoxPlot(t){const n=["q1","q3","max","min","median"],e=[...$a()(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}),[])))),...$a()(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))))];return this.renderContainer(t.groupComponent,e)}shouldAnimate(){return!!this.props.animate}shouldRenderDatum(t){const n=!ft(t._x),e=!ft(t._y);return!(ft(t._min)||ft(t._max)||ft(t._median)||ft(t._q1)||ft(t._q3))&&(this.props.horizontal?e:n)}render(){const{animationWhitelist:t,role:n}=Op,e=gt(this.props,Sp,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderBoxPlot(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Kc(i,e)}}const Op=tf(Dp,{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 Lp(t,n,e){const{a:r,d:i,e:o,f:a}=n;return"y"===e?i*t+a:r*t+o}function Tp(t){return!(!t||void 0===t.identifier)}function $p(t){if(Tp(t.nativeEvent))return;const n=t=>"svg"===t.nodeName?t:t.parentNode?n(t.parentNode):t;return n(t.target)}function jp(t,n){if(Tp(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||$p(e));return{x:Lp(e.clientX,r,"x"),y:Lp(e.clientY,r,"y")}}function Np(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 zp(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 Rp(t){const{x1:n,x2:e,y1:r,y2:i,scale:o}=t,a=zp(t,o,n,r),s=zp(t,o,e,i),l=(t,n)=>[Pt([t,n]),St([t,n])];return{x:l(a.x,s.x),y:l(a.y,s.y)}}var Ip=r(4943),Wp=r.n(Ip),Bp=r(8163),Vp=r.n(Bp);const Fp={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}=Wp()(n,Number),{x:s,y:l}=Wp()(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=Np(t,i),s=Np(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||$p(e),l=this.panBox({...t,...r,brushDomain:n,startX:(r.x1+r.x2)/2,startY:(r.y1+r.y2)/2},jp(e,s)),c=t.fullDomainBox||this.getDomainBox(t,i);return Rp({...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}=Wp()(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}=Wp()(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||$p(t),{x:d,y:f}=jp(t,h);if(!this.withinBounds({x:d,y:f},u,e))return{};const p=Q()({},n.brushDomain,i),m=nd()(p,r)?n.currentDomain||p||i:p||i,g=this.getDomainBox(n,i,m),y=o&&this.getActiveHandles({x:d,y:f},n,g);return y?[{target:"parent",mutation:()=>({isSelecting:!0,domainBox:g,fullDomainBox:u,cachedBrushDomain:p,currentDomain:m,parentSVG:h,...this.getResizeMutation(g,y)})}]:this.withinBounds({x:d,y:f},g)&&!nd()(i,m)?[{target:"parent",mutation:()=>({isPanning:a,startX:d,startY:f,domainBox:g,fullDomainBox:u,currentDomain:m,cachedBrushDomain:p,parentSVG:h,...g})}]:s?[{target:"parent",mutation:()=>({isSelecting:o||"move"===c,domainBox:g,fullDomainBox:u,parentSVG:h,cachedBrushDomain:p,cachedCurrentDomain:m,currentDomain:this.getMinimumDomain(),...this.getSelectionMutation({x:d,y:f},g,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}=jp(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=Rp({...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 pt(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=Rp({x2:t,y2:r,x1:n.x1,y1:n.y1,scale:e,horizontal:c}),s={x2:t,y2:r,currentDomain:i,parentSVG:h};return pt(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)&&pt(c)&&c(h,Q()({},m,n));else{const e=n.cachedCurrentDomain||h,r=this.getDefaultBrushArea(n,e,t);m.currentDomain=r,pt(l)&&l(r,Q()({},m,n)),pt(c)&&c(r,Q()({},m,n)),pt(u)&&u(r,Q()({},m,n))}return[{target:"parent",mutation:()=>m}]}},Up={...Fp,onMouseDown:Fp.onMouseDown.bind(Fp),onGlobalMouseUp:Fp.onGlobalMouseUp.bind(Fp),onGlobalMouseMove:Vp()(Fp.onGlobalMouseMove.bind(Fp),16,{leading:!0,trailing:!1})};function Hp(t){return class extends t{static displayName="VictoryBrushContainer";static defaultProps={...Su.defaultProps,allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:E().createElement(Tu,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:E().createElement(Tu,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseDown:(n,e)=>t.disable?{}:Up.onMouseDown(n,e),onTouchStart:(n,e)=>t.disable?{}:Up.onMouseDown(n,e),onGlobalMouseMove:(n,e)=>t.disable||!e.isPanning&&!e.isSelecting?{}:Up.onGlobalMouseMove(n,e),onGlobalTouchMove:(n,e)=>t.disable||!e.isPanning&&!e.isSelecting?{}:Up.onGlobalMouseMove(n,e),onGlobalMouseUp:(n,e)=>t.disable?{}:Up.onGlobalMouseUp(n,e),onGlobalTouchEnd:(n,e)=>t.disable?{}:Up.onGlobalMouseUp(n,e),onGlobalTouchCancel:(n,e)=>t.disable?{}:Up.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=Up.getDomainBox(t,n),{x1:s,x2:l,y1:c,y2:u}=a,{top:h,bottom:d,left:f,right:p}=Up.getHandles(t,a),m=Math.abs(l-s)||1,g=Math.abs(u-c)||1,y=i.props&&i.props.style||{},x=Q()({},y,r),v=this.getCursorPointers(t),b={style:x,width:m,height:e,cursor:v.yProps},_={style:x,width:e,height:g,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=nd()(r,e)?Q()({},n,r):r,o=Np(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 qp=Hp(Su),Gp=1/Number.MAX_SAFE_INTEGER,Kp=t=>{const{scale:n={},dimension:e="x"}=t;if(n[e])return n[e];const r=Qo(t,e),i=dt(t,e),o=Va(t,e)||[0,1];return r.range(i).domain(o),r},Yp=t=>{const{horizontal:n,dimension:e="x"}=t;return n?"x"===e?"y":"x":e},Xp=(t,n)=>{const e=Kp(t);return[e(Math.min(...n)),e(Math.max(...n))]},Zp=(t,n)=>{const e=Kp(t);return[e.invert(Math.min(...n)),e.invert(Math.max(...n))]},Qp=t=>Kp(t).range(),Jp=t=>Kp(t).domain(),tm=(t,n)=>t>=Pt(n)&&t<=St(n),nm=(t,n)=>{if(t){const e=Pt(t),r=St(t),i=Pt(n),o=St(n),a=e<i?i:Number(o)-Gp,s=r>o?o:Number(i)+Gp;return[tm(e,n)?e:a,tm(r,n)?r:s]}return n},em=(t,n,e)=>{const r=t.handleWidth/2,i=Yp(t),o=["min","max"].reduce(((t,o)=>(t[o]=tm(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},rm={stroke:"none",fill:"black",opacity:t=>{let{active:n}=t;return n?.2:.1}},im={pointerEvents:"none",stroke:"none",fill:"black",opacity:t=>{let{active:n}=t;return n?.4:.3}},om={pointerEvents:"none",stroke:"none",fill:"none"};class am extends E().Component{static defaultProps={allowDrag:!0,allowDraw:!0,allowResize:!0,brushAreaComponent:E().createElement(mp,null),brushComponent:E().createElement(mp,null),groupComponent:E().createElement("g",null),handleComponent:E().createElement(mp,null),handleWidth:10,lineComponent:E().createElement(lf,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=Yp(n),o=n.parentSVG||$p(t),a=jp(t,o)[i],s=Jp(n),l=nm(r,s),c=Xp(n,l),u=e&&em(n,a,c),h={brushArea:!n.brushDomain,brush:tm(a,c)&&!nd()(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=Yp(n);if(!e&&!r)return[];const l=Jp(n),c=nm(a,l),u=n.parentSVG||$p(t),h=jp(t,u)[s],d=Xp(n,c),f=e&&em(n,h,d);return f?[{mutation:()=>({parentSVG:u,isSelecting:!0,activeHandle:f,brushDomain:c,startPosition:h,activeBrushes:o})}]:tm(h,d)&&!nd()(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=Yp(n);(e||r)&&(t.preventDefault(),t.stopPropagation());const c=n.parentSVG||$p(t),u=jp(t,c)[l],h=Jp(n),d=nm(s,h),f=Xp(n,d),p=em(n,u,f),m={brushArea:!n.brushDomain,brush:tm(u,f)&&!nd()(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=Qp(n),e=((t,n)=>{const{brushDomain:e,startPosition:r}=t,i=Xp(t,e),o=Qp(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 pt(a)&&a(r,Q()({},i,n)),[{mutation:()=>i}]}if(i&&r){let t=s||[0,Gp];const e=Xp(n,t),i="min"===n.activeHandle?"max":"min",o=n.activeHandle&&"both"===em(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 pt(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&&pt(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=Yp(t),o=Xp(t,e||nm(r,Jp(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=Yp(t),l=t.brushWidth||t.width,c=nm(a,Jp(t)),u=Xp(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,g="x"===s?l:n;return{min:{x:f.min,y:p.min,width:m,height:g},max:{x:f.max,y:p.max,width:m,height:g}}}getCursor(t){const{activeBrushes:n={}}=t,e=Yp(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({},om,e),c=Object.assign({handleValue:Pt(i)},o),u=Object.assign({handleValue:St(i)},o),h=Object.assign({key:`${r}-min`,style:st(l,{datum:c,active:a.minHandle})},s.min),d=Object.assign({key:`${r}-max`,style:st(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=st(Object.assign({},im,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,Jp(t)),l=st(Object.assign({cursor:a},rm,e),{datum:i,active:r.brushArea}),c=Object.assign({style:l},s);return E().cloneElement(n,c)}renderLine(t){const n=X()(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 sm={groupComponent:E().createElement("g",null),lineComponent:E().createElement(af,null),rectComponent:E().createElement(Tu,null),role:"presentation",shapeRendering:"auto"},lm=t=>{const n=(t=>{const n=st(Object.assign({stroke:"black"},t.style),t),e=((t,n)=>{const{style:e}=n;return t?pt(t)?at(t,n):t:e.width?e.width:t})(t.candleWidth,Object.assign({},t,{style:n})),r=at(t.ariaLabel,t),i=at(t.desc,t),o=at(t.id,t),a=at(t.tabIndex,t);return Object.assign({},t,{ariaLabel:r,style:n,candleWidth:e,desc:i,id:o,tabIndex:a})})({...sm,...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,g=Q()({strokeWidth:h},f),y={...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:J(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),y),v=Object.assign(((t,n)=>{const{horizontal:e,high:r,open:i,close:o,x:a,id:s}=t;return{key:`${s}-highWick`,style:J(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,g),y),b=Object.assign(((t,n)=>{const{horizontal:e,low:r,open:i,close:o,x:a,id:s}=t;return{key:`${s}-lowWick`,style:J(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,g),y);return E().cloneElement(i,{},[E().cloneElement(a,x),E().cloneElement(s,v),E().cloneElement(s,b)])},cm=["close","open","high","low"],um=t=>_a(t.data,t,["x","high","low","close","open"]),hm=(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)},dm=(t,n)=>{const e=Ha(t,n),r=Ua(t,n),i=um(t);return i.length<1?void 0!==e&&void 0!==r?Ba(e,r):void 0:Ba(void 0!==e?e:hm(i,n,"min"),void 0!==r?r:hm(i,n,"max"))},fm=(t,n)=>Na(dm)(t,n),pm=(t,n,e)=>{const r=t[`${e}LabelComponent`],i=n[`${e}Labels`]||n.labels;if(!rt(r))return i;const o=t.theme&&t.theme.tooltip||{};return Q()({},o.style,i)},mm=(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:g}=t,y=t[`${r}LabelComponent`]||t.labelComponent,x=f?"top":"right",v=y.props&&y.props.orientation||function(t,n){return void 0===n&&(n="labels"),V()(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(!rt(y))return k;const S=g&&g.tooltip||{};return Q()({},k,J(S,["style"]))},gm=(t,n)=>{const e=gt(t,n,"candlestick"),r=(t=>{const{polar:n}=t,e=it(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,pm(t,e,"open"),l),closeLabels:Q()({},n.closeLabels,pm(t,e,"close"),l),lowLabels:Q()({},n.lowLabels,pm(t,e,"low"),l),highLabels:Q()({},n.highLabels,pm(t,e,"high"),l)}}(t,t.style,e),i=um(t),o={x:dt(t,"x"),y:dt(t,"y")},a={x:fm(t,"x"),y:fm(t,"y")},s={x:Qo(t,"x").domain(a.x).range(t.horizontal?o.y:o.x),y:Qo(t,"y").domain(a.y).range(t.horizontal?o.x:o.y)},l=n?t.origin||ht(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:g,candleRatio:y,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=ft(n.eventKey)?r:n.eventKey,f=a.x(void 0!==n._x1?n._x1:n._x),p=((t,n)=>{const e=Pt(n.x),r=St(n.x),i=Pt(n.y),o=St(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:g,candleRatio:y,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 pt(r)?at(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 $=Q()(Object.assign({},T),e);if(t[d]={data:T},_){const n=Ya(e,p,r);(null!=n||_&&(M||C))&&(t[d].labels=mm($,n,o))}return cm.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})($,n),i=e.labels||e[`${n}Labels`];if(null!=r||i&&(M||C)){const e=`${n}Labels`;t[d][e]=mm($,r,o,n)}})),t}),E)},ym={width:450,height:300,padding:50,candleColors:{positive:"#ffffff",negative:"#252525"}},xm=[{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}],vm=t=>!ft(t._x)&&!ft(t._y);class bm 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(Su,null),data:xm,dataComponent:E().createElement(lm,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(fh,null),highLabelComponent:E().createElement(fh,null),lowLabelComponent:E().createElement(fh,null),openLabelComponent:E().createElement(fh,null),closeLabelComponent:E().createElement(fh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Oh.grayscale};static getDomain=fm;static getData=um;static getBaseProps=t=>gm(t,ym);static expectedComponents=["openLabelComponent","closeLabelComponent","highLabelComponent","lowLabelComponent","dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}shouldRenderDatum=t=>!(ft(t._x)||ft(t._high)||ft(t._low)||ft(t._close)||ft(t._open));renderCandleData(t,n){void 0===n&&(n=vm);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}=_m,e=gt(this.props,ym,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 Kc(i,e)}}const _m=tf(bm,{components:[{name:"lowLabels"},{name:"highLabels"},{name:"openLabels"},{name:"closeLabels"},{name:"labels"},{name:"data"},{name:"parent",index:"parent"}]}),Mm=E().createContext(void 0),Cm=()=>{const t=E().useContext(Mm);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},wm=t=>{const{canvasRef:n}=Cm(),e=(t=>{const n=Yf(t.style,t),e=Gf(t.barWidth,Object.assign({},t,{style:n})),r=Kf(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?sp(e,a):ap(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},Am=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(Mm.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)};Am.role="container";const Em=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=Vc(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 km(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 Sm(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 Pm(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 Dm(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 Om(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 Lm(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 Tm(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 $m(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 jm(t,n,e){const r=1.35*e,i=Math.PI/5;return`M ${xt(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 Nm=t=>{const{canvasRef:n}=Cm(),e=(t=>{const n=at(t.size,t),e=st(t.style,t),r=at(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:km,square:Sm,diamond:Pm,triangleDown:Dm,triangleUp:Om,plus:Lm,minus:$m,star:jm,cross:Tm};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},zm={circleComponent:E().createElement(Ou,null),rectComponent:E().createElement(Tu,null),role:"presentation",shapeRendering:"auto"},Rm=t=>{const n=(t=>{const n=at(t.id,t);return Object.assign({},t,{id:n})})({...zm,...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})};var Im=r(4397),Wm=r.n(Im);const Bm={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},Vm=function(t){void 0===t&&(t=Bm);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=Et(t)?t[i]:t,Q()({childrenTransitions:t},n)})(),s=t.animate&&t.animate.parentState||a;if(!o){const n=Yd(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)?Wm()(t,n):n(t)},a=!t.polar&&Wm()(e,(t=>o(t)||t.props.children&&o(t.props.children))),{nodesWillExit:s,nodesWillEnter:l,childrenTransitions:c,nodesShouldEnter:u}=Kd(e,i);r({nodesWillExit:s,nodesWillEnter:l,nodesShouldEnter:u,childrenTransitions:Et(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 Fm=r(8961),Um=r.n(Fm);function Hm(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=mt(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 qm(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=Hm({children:u,props:t,childComponents:n,parentProps:l});const h=u.filter((t=>t.type&&"stack"===t.type.role)).length,d=vt(u,((t,n,e)=>{const r=Object.assign({},t.props,l);let i,o=t;return Sa(t)?(t.type&&pt(t.type.getData)?(o=e?E().cloneElement(t,e.props):t,i=o.type.getData(r)):i=wa(r),c+=1,i.map(((t,n)=>Object.assign({_stack:c,_group:n},t)))):null}),t,[],((t,n)=>t.concat(Um()(n,"_group")))),f=h?"_group":"_stack";return uf()(vp()(d,f))}function Gm(t,n){return t.data?wa(t):qm(t,n||E().Children.toArray(t.children))}function Km(t,n,e){const{datasets:r,horizontal:i}=t,o=dt(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 Ym(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||Km(t,o.length,l);return{x:c*o.length/2+(i-c*((o.length-1)/2))}}function Xm(t,n,e){const r=e?e.slice(0):E().Children.toArray(t.children),i=t.data?wa(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=vt(r,(t=>{const e=Object.assign({},t.props,f);return Ga(t)?t.type&&pt(t.type.getDomain)?t.props&&t.type.getDomain(e,n):Ra(e,n):null}),t);return[0===p.length?0:Pt(p),0===p.length?1:St(p)]}function Zm(t,n,e){const r=e||E().Children.toArray(t.children),i=Va(t,n),o=Ym(t,n,r);let a;if(i)a=i;else{const e=Ha(t,n),i=Ua(t,n),o=(t.data||t.y)&&wa(t),s=o?Wa(t,n,o):[],l=Xm(t,n,r);a=Ba(e||Pt([...s,...l]),i||St([...s,...l]))}return za(a,Object.assign({domainPadding:o},t),n)}function Qm(t,n,e){if(t.data)return Qo(t,n);const r=e?e.slice(0):E().Children.toArray(t.children),i=q()(vt(r,(e=>na(Object.assign({},e.props,{horizontal:t.horizontal}),n)),t));return i.length>1?Zo("linear"):Zo(i[0])}function Jm(t){const n=Yh(t,["groupComponent","containerComponent","labelComponent"]);let e=t.events;return Array.isArray(n)&&(e=Array.isArray(t.events)?n.concat(...t.events):n),e||[]}function tg(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:Wu(i);return o||a[e%a.length]}function ng(t,n,e){return ot(n,t&&t[e]&&t[e].style?t[e].style:{})}function eg(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:tg(e,t,n),l="line"===a?{fill:"none",stroke:s}:{fill:s},c="stack"===i?{}:{width:Km(e)},u=Q()({},o.data,Object.assign({},c,r.data,l)),h=Q()({},o.labels,r.labels);return{parent:r.parent,data:u,labels:h}}function rg(t,n){return vt(t.slice(0),(t=>{const e=t.props||{};if(!Ga(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?kt(i):[]}))}function ig(t){return vt(t.slice(0),(t=>{const n=t.props||{};let e;return Sa(t)?(e=t.type&&pt(t.type.getData)?t.type.getData(n):wa(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 og(t,n,e){const r=V()(t.categories)?t.categories[n]:t.categories,i=mf(e,n),o=i?Aa(i.props,n):[],a=r||rg(e,n);return q()($a()([...a,...o]))}function ag(t,n){const e=n||E().Children.toArray(t.children),r=og(t,"x",e),i=og(t,"y",e),o=ig(e);return{x:q()($a()([...r,...o.x])),y:q()($a()([...i,...o.y]))}}function sg(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||ag(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 lg(t){const n=E().useRef();return E().useEffect((()=>{n.current=t})),n.current}var cg=r(7314),ug=r.n(cg),hg=r(2516),dg=r.n(hg);class fg extends E().Component{static displayName="VictorySharedEvents";static role="shared-event-wrapper";static contextType=Eu;static defaultProps={groupComponent:E().createElement("g",null)};constructor(t){super(t),this.getScopedEvents=Fh.bind(this),this.getEventState=Hh.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(t)}shouldComponentUpdate(t){if(!nd()(this.props,t)){this.baseProps=this.getBaseProps(t);const n=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,n)}return!0}componentDidMount(){const t=K()(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(){const t=K()(this.globalEvents);Rh()(this.prevGlobalEventKeys,t).forEach((t=>this.removeGlobalListener(t))),Rh()(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(Jh(n))};this.boundGlobalEvents[t]=n,window.addEventListener(Xh(t),n)}removeGlobalListener(t){window.removeEventListener(Xh(t),this.boundGlobalEvents[t])}getAllEvents(t){const n=Yh(t,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(t.events)?n.concat(...t.events):n:t.events}applyExternalMutations(t,n){if(!N()(n)){const e=t.externalEventMutations.reduce(((t,n)=>pt(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getExternalMutations(t,n){return N()(t.externalEventMutations)?void 0:qh(t.externalEventMutations,n,this.state,K()(n))}cacheSharedEvents(t,n,e){this.sharedEventsCache[t]=[n,e]}getCachedSharedEvents(t,n){const[e,r]=this.sharedEventsCache[t]||[];if(e&&nd()(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=vt(t,((t,n)=>{if(t.type&&pt(t.type.getBaseProps)){const e=t.props&&t.type.getBaseProps(t.props);return e?[[n,e]]:null}return null}));return ug()(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&&pt(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,dg()(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=K()(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=Vh.bind(this),u=o&&c({sharedEvents:o},"parent"),h=Q()({},this.getEventState("parent","parent"),l,n.parent,{children:r}),d=Q()({},Uh(u,"parent",h),l.events);this.globalEvents=Zh(d);const f=Qh(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 pg=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(lt(i)),c=e-r*Math.sin(lt(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(lt(s))}, ${e-r*Math.sin(lt(s))} A ${r}, ${r}, 0, ${o-s<=180?0:1}, 0, ${n+r*Math.cos(lt(o))}, ${e-r*Math.sin(lt(o))} ${a?"Z":""}`},mg={pathComponent:E().createElement(Uc,null),role:"presentation",shapeRendering:"auto"},gg=t=>{const n=(t=>{const n=at(t.ariaLabel,t),e=at(t.desc,t),r=at(t.id,t),i=st(Object.assign({stroke:"black",fill:"none"},t.style),t),o=at(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...mg,...t});return E().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:pg(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})},yg=(t,n,e)=>"x"===e?t*Math.cos(n):-t*Math.sin(n),xg=t=>{const n=t.dependentAxis?"radial":"angular",e="angular"===n?"radial":"angular";return t.horizontal?e:n},vg=(t,n)=>({tickStyle:st(t.ticks,n),labelStyle:st(t.tickLabels,n),gridStyle:st(t.grid,n)}),bg=t=>{const{left:n,right:e,top:r,bottom:i}=et(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},_g=(t,n)=>{if(t.range&&t.range[n])return t.range[n];if(t.range&&Array.isArray(t.range))return t.range;if("angular"===xg(t))return[lt(t.startAngle),lt(t.endAngle)];const e=bg(t);return[t.innerRadius||0,e]},Mg=t=>{const n=ff(t),e=Qo(t,n),r=Ef(t,n)||e.domain(),i=_g(t,n);return e.range(i),e.domain(r),e},Cg=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)}},wg=t=>{const{axisAngle:n,startAngle:e,dependentAxis:r}=t,i=kf(t,ff(t));return void 0!==i&&r?ct(i):void 0===n?e:n},Ag=(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}=vg(s,{tick:f,tickValue:e,index:r,ticks:c,stringTicks:l,radius:o,scale:a,axisType:i,text:d}),m="radial"===i?wg(t):void 0,g=p.padding||p.size||0,y=lt(90-m),x="angular"===i?a(e):lt(-1*m),v="angular"===i?o:a(e);return"angular"===i?{index:r,datum:f,style:p,x1:yg(v,x,"x")+h.x,y1:yg(v,x,"y")+h.y,x2:yg(v+g,x,"x")+h.x,y2:yg(v+g,x,"y")+h.y}:{index:r,datum:f,style:p,x1:v*Math.cos(x)+Math.cos(y)*g+h.x,x2:v*Math.cos(x)-Math.cos(y)*g+h.x,y1:v*Math.sin(x)+Math.sin(y)*g+h.y,y2:v*Math.sin(x)-Math.sin(y)*g+h.y}},Eg=(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}=vg(s,{text:d,tick:f,tickValue:e,index:r,ticks:c,stringTicks:u,radius:o,scale:l,axisType:i}),{tickLabelComponent:m}=t,g=m?.props.labelPlacement?m.props.labelPlacement:t.labelPlacement,y=p.padding||0,x="radial"===i?wg(t):void 0,v="angular"===i?ct(l(e)):x+0,b=void 0===p.angle?Qa(Object.assign({},t,{labelPlacement:g}),v):p.angle,_="angular"===i?o+y:l(e);return{index:r,datum:f,style:p,angle:b,textAnchor:p.textAnchor||Xa(Object.assign({},t,{labelPlacement:g}),v),text:d,x:_*Math.cos(lt(v))+h.x,y:-_*Math.sin(lt(v))+h.y}},kg=(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,g=l?l[r]:e,{gridStyle:y}=vg(a,{tick:g,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:g,style:y,x1:yg(o,x,"x")+h.x,y1:yg(o,x,"y")+h.y,x2:yg(m,x,"x")+h.x,y2:yg(m,x,"y")+h.y}:{style:y,index:r,datum:g,cx:h.x,cy:h.y,r:s(e),startAngle:f,endAngle:p}},Sg=(t,n)=>{const e=Sf(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=Cg(n,e),i=et(n),o=ff(n),a=xg(n),s=bf(n)?n.tickValues:void 0,l=Ef(n,o),c=_g(n,o),u=Mg(n),h=wf(n,u),d="angular"===a?((t,n)=>Um()(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:Mf(n,u),domain:l,range:c,radius:bg(n),origin:ht(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?lt(wg(t)):void 0;return"radial"===r?{style:e.axis,x1:yg(l,c,"x")+o.x,x2:yg(i,c,"x")+o.x,y1:yg(l,c,"y")+o.y,y2:yg(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?wg(t):void 0,u=void 0===l.angle?Qa(Object.assign({},t,{labelPlacement:s}),c):l.angle,h=r+(l.padding||0);return{style:l,angle:u,textAnchor:l.textAnchor||Xa(Object.assign({},t,{labelPlacement:s}),c),verticalAnchor:l.verticalAnchor||Za(Object.assign({},t,{labelPlacement:s}),c),text:t.label,x:yg(h,lt(c),"x")+o.x,y:yg(h,lt(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:Ag(e,r,n,i),tickLabels:Eg(e,r,n,i),grid:kg(e,r,n,i)},t)),m)},Pg={width:450,height:300,padding:50};class Dg 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(lf,null),axisLabelComponent:E().createElement(fh,null),circularAxisComponent:E().createElement(gg,null),circularGridComponent:E().createElement(gg,null),containerComponent:E().createElement(Su,null),endAngle:360,gridComponent:E().createElement(lf,null),groupComponent:E().createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Oh.grayscale,tickComponent:E().createElement(lf,null),tickLabelComponent:E().createElement(fh,null)};static getDomain=Ef;static getAxis=ff;static getScale=Mg;static getStyles=t=>Cg(t,Pg.style);static getBaseProps=t=>Sg(t,Pg);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||!N()(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}=Og,n=Sf(this.props,Pg);if(this.shouldAnimate())return this.animateComponent(n,t);const e=this.renderAxis(n);return n.standalone?this.renderContainer(n.containerComponent,e):e}}const Og=tf(Dg,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),Lg={width:450,height:300,padding:50};function Tg(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=gt(t,Lg,"chart"),{horizontal:i,polar:o}=r,a=ag(r,n),s=sg(r,n,a),l=Ng(r,n,a),c={x:jg(Object.assign({},r,{categories:s}),"x",n),y:jg(Object.assign({},r,{categories:s}),"y",n)},u={x:dt(r,"x"),y:dt(r,"y")},h={x:ta(r,"x")||Qm(r,"x"),y:ta(r,"y")||Qm(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?ht(r):yf(c),padding:et(r)}}const $g=(t,n)=>{let e=E().Children.toArray(t.children);if(0===e.length)e.push(n.independent,n.dependent);else{const r={dependent:gf(e,"dependent"),independent:gf(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},jg=(t,n,e)=>{const r=e||E().Children.toArray(t.children),i=Zm(t,n,r),o=mf(r,n);return o&&o.props&&o.props.invertAxis?i.concat().reverse():i},Ng=(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}},zg={width:450,height:300,padding:50},Rg={backgroundComponent:E().createElement(Rm,null),containerComponent:E().createElement(Su,null),defaultAxes:{independent:E().createElement(Hf,null),dependent:E().createElement(Hf,{dependentAxis:!0})},defaultPolarAxes:{independent:E().createElement(Og,null),dependent:E().createElement(Og,{dependentAxis:!0})},groupComponent:E().createElement("g",null),standalone:!0,theme:Oh.grayscale},Ig=t=>{const n=E().useMemo((()=>({...Rg,...t})),[t]),{getAnimationProps:e,setAnimationState:r,getProps:i}=Vm(),o=i(n),a=gt(o,zg,"chart"),{desc:s,eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:g,name:y,title:x}=a,v=o.polar?a.defaultPolarAxes:a.defaultAxes,b=E().useMemo((()=>$g(a,v)),[a,v]),_=E().useMemo((()=>Tg(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||$g(t),i=e||Tg(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=pf([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}`,g=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,g)}))}(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:y,origin:g?A:void 0,polar:g,theme:m,title:x,scale:C,standalone:u,style:w.parent}:{}),[s,M,p,k,y,A,g,C,u,w,x,m,f]),D=E().useMemo((()=>{if(u){const t=Q()({},c.props,P,Gc(n));return E().cloneElement(c,t)}return h}),[h,u,c,P,n]),O=E().useMemo((()=>Jm(o)),[o]),L=lg(n);return E().useEffect((()=>()=>{n.animate&&r(L,n)}),[r,L,n]),N()(O)?E().cloneElement(D,D.props,S):E().createElement(fg,{container:D,eventKey:l,events:O,externalEventMutations:d},S)},Wg=E().memo(Ig,nd());Wg.displayName="VictoryChart",Wg.expectedComponents=["groupComponent","containerComponent"];const Bg=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)},Vg=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)},Fg={pathComponent:E().createElement(Uc,null),role:"presentation",shapeRendering:"auto"},Ug=t=>{const n=(t=>{const n=at(t.ariaLabel,t),e=at(t.desc,t),r=at(t.id,t),i=at(t.size,t),o=st(t.style,t),a=at(t.symbol,t),s=at(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,size:i,style:o,symbol:a,tabIndex:s})})({...Fg,...t}),e=Gc(n);return E().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:Vg(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 Hg=r(9560),qg=r.n(Hg),Gg=r(3105),Kg=r.n(Gg),Yg=r(4542),Xg=r.n(Yg);const Zg=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,g=s*(l-d)>0?0:t.pointerLength,y=`${e} ${e} ${"left"===r?"0 0 0":"0 0 1"}`;return`M ${d}, ${h-n/2}\n L ${g?l:d}, ${g?c:h+n/2}\n L ${d}, ${h+n/2}\n L ${d}, ${p-e}\n A ${y} ${d+s*e}, ${p}\n L ${f-s*e}, ${p}\n A ${y} ${f}, ${p-e}\n L ${f}, ${m+e}\n A ${y} ${f-s*e}, ${m}\n L ${d+s*e}, ${m}\n A ${y} ${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,g=s*(c-d)<0?0:t.pointerLength,y=`${e} ${e} ${"bottom"===r?"0 0 0":"0 0 1"}`;return`M ${u-n/2}, ${d}\n L ${g?l:u+n/2}, ${g?c:d}\n L ${u+n/2}, ${d}\n L ${p-e}, ${d}\n A ${y} ${p}, ${d-s*e}\n L ${p}, ${f+s*e}\n A ${y} ${p-e}, ${f}\n L ${m+e}, ${f}\n A ${y} ${m}, ${f+s*e}\n L ${m}, ${d-s*e}\n A ${y} ${m+e}, ${d}\n z`})(t)},Qg={pathComponent:E().createElement(Uc,null),role:"presentation",shapeRendering:"auto"},Jg=t=>{const n=(t=>{const n=at(t.id,t),e=st(t.style,t);return{...t,id:n,style:e}})({...Qg,...t}),e=Gc(n);qc(n.height,"Flyout props[height] is undefined"),qc(n.width,"Flyout props[width] is undefined"),qc(n.x,"Flyout props[x] is undefined"),qc(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:Zg(r),className:n.className,shapeRendering:n.shapeRendering,role:n.role,transform:n.transform,clipPath:n.clipPath})},ty={cornerRadius:5,pointerLength:10,pointerWidth:10};class ny extends E().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:E().createElement(fh,null),flyoutComponent:E().createElement(Jg,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?iu()("tooltip-"):t.id}getDefaultOrientation(t){const{datum:n,horizontal:e,polar:r}=t;if(!r){const t=e?"right":"top",r=e?"left":"bottom";return n&&n.y<0?r:t}return this.getPolarOrientation(t)}getPolarOrientation(t){const n=Ja(t,t.datum),e=t.labelPlacement||"vertical";return"vertical"===e?this.getVerticalOrientations(n):"parallel"===e?n<90||n>270?"right":"left":n>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const n=t.theme||Oh.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=>st(n,t))):st(r,t);return{style:a,flyoutStyle:st(o,Object.assign({},t,{style:a}))}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:e,dx:r,dy:i}=t,o=at(t.active,t);let a=at(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=at(t.orientation,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l}))||this.getDefaultOrientation(t),u=et({padding:at(t.flyoutPadding,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c}))||this.getLabelPadding(s)}),h=at(t.pointerWidth,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c})),d=at(t.pointerLength,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c})),f=eh(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),g=Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c,flyoutHeight:p,flyoutWidth:m,flyoutPadding:u,pointerWidth:h,pointerLength:d}),y=V()(e)&&void 0!==e?.x?at(e.x,g):0,x=V()(e)&&void 0!==e?.y?at(e.y,g):0;return{...g,centerOffset:{x:y,y:x},dx:void 0!==r?at(r,g):0,dy:void 0!==i?at(i,g):0,cornerRadius:at(n,g)}}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:eh(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=Ja(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=V()(t.center)&&void 0!==t.center.x?t.center.x:p.x,g=V()(t.center)&&void 0!==t.center.y?t.center.y:p.y,y={x:m+c.x,y:g+c.y};return l?this.constrainTooltip(y,t,n):y}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=at(t.cornerRadius,t);return{flyoutHeight:o?at(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?at(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 R()(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:g}=t,y=at(t.pointerOrientation,t);return Q()({},g.props,{x:o,y:a,dx:s,dy:l,datum:c,activePoints:u,index:h,pointerLength:d,pointerWidth:f,cornerRadius:p,events:m,orientation:y||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=at(t.active,t),{renderInPortal:e}=t;if(!n)return e?E().createElement(Nu,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(Nu,null,c):c}render(){const t=gt(this.props,ty,"tooltip");return this.renderTooltip(t)}}var ey=r(5395),ry=r.n(ey),iy=r(5953),oy=r.n(iy),ay=r(6898);const sy=new class{withinBounds(t,n){const{width:e,height:r,polar:i,origin:o,scale:a}=t,s=et(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:Pt(t.domain.x),y:Pt(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}=tt(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=wa(t);return Array.isArray(n)&&n.length>0?n:void 0};return vt(e,((n,e)=>{const o=(n.props||{}).name||e,a=t.voronoiBlacklist||[],s=a.filter(oy()),l=a.filter(ry()).some((t=>t.test(o)));if(!Sa(n)||L()(s,o)||l)return null;const c=(n.type&&pt(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}=nt(t,n);return[e,r]})),i=ay.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 N()(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 N()(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){pt(t.onActivated)&&t.onActivated(n,t)}onDeactivated(t,n){pt(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||$p(t),i=jp(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&&nd()(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=Vp()(this.handleMouseMove,32,{leading:!0,trailing:!1})};function ly(t){return class extends t{static displayName="VictoryVoronoiContainer";static defaultProps={...Su.defaultProps,activateData:!0,activateLabels:!0,labelComponent:E().createElement(ny,null),voronoiPadding:5};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseLeave:(n,e)=>t.disable?{}:sy.onMouseLeave(n,e),onTouchCancel:(n,e)=>t.disable?{}:sy.onMouseLeave(n,e),onMouseMove:(n,e)=>t.disable?{}:sy.onMouseMove(n,e),onTouchMove:(n,e)=>t.disable?{}:sy.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 X()(t,["_x","_x1","_x0","_y","_y1","_y0"])}getLabelPosition(t,n,e){const{mousePosition:r,mouseFollowTooltips:i}=t,o=this.getDimension(t),a=nt(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=pt(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=st(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=pt(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}`,g=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)),y=this.getLabelPosition(t,g,n);return Q()({},y,g)}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 cy=ly(Su);var uy=r(9324),hy=r.n(uy);const dy={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),g=[p>c&&p<u?p:c,m<u&&m>c?m:u],y=Math.abs(f[1]-f[0])>Math.abs(g[1]-g[0])?f:g;return Ct([c,u])?[new Date(y[0]),new Date(y[1])]:y},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}=jp(t),o={x:n.scale.x.domain(e.x),y:n.scale.y.domain(e.y)};return zp(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,Ct(t)||Ct(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(),hy()((()=>{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]:Xm(t,i,o)}:{x:Xm(t,"x",o),y:Xm(t,"y",o)}),Q()({},a,n,e)},onMouseDown(t,n){if(t.preventDefault(),!n.allowPan)return;const e=n.parentSVG||$p(t),{x:r,y:i}=jp(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||$p(t),{x:h,y:d}=jp(t,u),f=this.getDomain(n),p=this.getLastDomain(n,f),m=c?i-h:d-o,g=(c?d-o:i-h)/this.getDomainScale(p,e,"x"),y=m/this.getDomainScale(p,e,"y"),x={x:"y"===l?f.x:this.pan(p.x,f.x,g),y:"x"===l?f.y:this.pan(p.y,f.y,y)},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 pt(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 pt(i)&&i(h,Q()({},f,n)),[{target:"parent",callback:d,mutation:()=>f}]}},fy={checkDomainEquality:dy.checkDomainEquality.bind(dy),onMouseDown:dy.onMouseDown.bind(dy),onMouseUp:dy.onMouseUp.bind(dy),onMouseLeave:dy.onMouseLeave.bind(dy),onMouseMove:Vp()(dy.onMouseMove.bind(dy),16,{leading:!0,trailing:!1}),onWheel:Vp()(dy.onWheel.bind(dy),16,{leading:!0,trailing:!1})};function py(t){return class extends t{static displayName="VictoryZoomContainer";static defaultProps={...Su.defaultProps,clipContainerComponent:E().createElement($u,null),allowPan:!0,allowZoom:!0,zoomActive:!1};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseDown:(n,e)=>t.disable?{}:fy.onMouseDown(n,e),onTouchStart:(n,e)=>t.disable?{}:fy.onMouseDown(n,e),onMouseUp:(n,e)=>t.disable?{}:fy.onMouseUp(n,e),onTouchEnd:(n,e)=>t.disable?{}:fy.onMouseUp(n,e),onMouseLeave:(n,e)=>t.disable?{}:fy.onMouseLeave(n,e),onTouchCancel:(n,e)=>t.disable?{}:fy.onMouseLeave(n,e),onMouseMove:(n,e,r,i)=>t.disable?{}:fy.onMouseMove(n,e,r,i),onTouchMove:(n,e,r,i)=>t.disable?{}:(n.preventDefault(),fy.onMouseMove(n,e,r,i)),...t.disable||!t.allowZoom?{}:{onWheel:fy.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=>Sa(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&&pt(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),ba(i.slice(s,l),o,s)}modifyChildren(t){return E().Children.toArray(t.children).map((n=>{const e=n.type&&n.type.role,r=Sa(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=fy.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 my=py(Su),gy=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}]:vt(E().Children.toArray(t.children),((n,e,r)=>{const i=t.selectionBlacklist||[];let o;if(!Sa(n)||L()(i,e))return null;if(n.type&&pt(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=wa(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=nt(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||$p(t),{x:l,y:c}=jp(t,s),u={x1:i||"y"!==a?l:Np(n).x[0],y1:i||"x"!==a?c:Np(n).y[0],select:!0,x2:i||"y"!==a?l:Np(n).x[1],y2:i||"x"!==a?c:Np(n).y[1],parentSVG:s};o&&pt(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||$p(t),{x:s,y:l}=jp(t,a),c=i||"y"!==o?s:Np(n).x[1],u=i||"x"!==o?l:Np(n).y[1];return{target:"parent",mutation:()=>({x2:c,y2:u,parentSVG:a})}};onMouseMove=Vp()(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=Rp(n),l=this.filterDatasets(n,a),c={selectedData:l,datasets:a,select:!1,x1:null,x2:null,y1:null,y2:null},u=l&&pt(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 yy(t){return class extends t{static displayName="VictorySelectionContainer";static defaultProps={...Su.defaultProps,activateSelectedData:!0,allowSelection:!0,selectionComponent:E().createElement(Tu,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseDown:(n,e)=>t.disable?{}:gy.onMouseDown(n,e),onTouchStart:(n,e)=>t.disable?{}:gy.onMouseDown(n,e),onMouseMove:(n,e)=>t.disable?{}:gy.onMouseMove(n,e),onTouchMove:(n,e)=>t.disable?{}:gy.onMouseMove(n,e),onMouseUp:(n,e)=>t.disable?{}:gy.onMouseUp(n,e),onTouchEnd:(n,e)=>t.disable?{}:gy.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 xy=yy(Su),vy=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}=Wp()(n,Number),{x:a,y:s}=Wp()(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||$p(t),a=jp(t,o);let s=zp(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),pt(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=Vp()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseLeave=this.handleMouseMove;onTouchEnd=(t,n)=>{const{onCursorChange:e}=n;return pt(n.onCursorChange)&&e(null,n),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]}};function by(t){return class extends t{static displayName="VictoryCursorContainer";static defaultProps={...Su.defaultProps,cursorLabelComponent:E().createElement(fh,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:E().createElement(lf,null)};static defaultEvents=t=>[{target:"parent",eventHandlers:{onMouseLeave:(n,e)=>t.disable?{}:vy.onMouseLeave(n,e),onTouchCancel:()=>[],onMouseMove:(n,e)=>t.disable?{}:vy.onMouseMove(n,e),onTouchMove:(n,e)=>t.disable?{}:vy.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=>eu()(t.props)&&void 0!==t.props.padding));return et(n.props)}return et(t)}getCursorElements(t){const{scale:n,cursorLabelComponent:e,cursorLabel:r,cursorComponent:i,width:o,height:a,name:s,horizontal:l,theme:c}=t,u=vy.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(rt(e)){const n=c&&c.tooltip||{};t=Q()({},t,n)}f.push(E().cloneElement(e,Q()({},t,{text:at(r,t)})))}const g=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:g})),"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:g})),f}getChildren(t){return[...E().Children.toArray(t.children),...this.getCursorElements(t)]}}}const _y=by(Su);function My(t){return t?Array.isArray(t)?t:[t]:[]}const Cy=(t,n)=>{const e=t.map((t=>t(n))),r=e.map((t=>new t)),i=qg()(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=vp()(t,"target"),e=Xg()(n).map((t=>{let[n,e]=t;const r=e.filter(Boolean);return N()(r)?null:{target:n,eventHandlers:(i=e.map((t=>t.eventHandlers)),i.reduce(((t,n)=>(Kg()(t,((t,e)=>{const r=n[e];n[e]=r?function(){const n=My(r(...arguments)),e=My(t(...arguments));return n.concat(e)}:t})),n))))};var i}));return e.filter(Boolean)})(e.reduce(((n,e)=>[...n,...pt(e.defaultEvents)?e.defaultEvents(t):e.defaultEvents]),[]));getChildren(t){return r.reduce(((n,e)=>e.getChildren({...t,children:n})),t.children)}}},wy=(t,n)=>{t&&!L()(n,t)&&n.join(", ")},Ay=(t,n)=>function(e,r){const i=Object.keys(t);wy(e,i),wy(r,i);const o=t[e],a=t[r]||[];return o?Cy([...o,...a],n):n},Ey=Ay({zoom:[py],voronoi:[ly],selection:[yy],cursor:[by],brush:[Hp]},Su),ky=(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}`})},Sy=(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}`})},Py={groupComponent:E().createElement("g",null),lineComponent:E().createElement(af,null),role:"presentation",shapeRendering:"auto"},Dy=t=>{const n=(t=>{const n=at(t.ariaLabel,t),e=at(t.id,t),r=st(Object.assign({stroke:"black"},t.style),t),i=at(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,style:r,tabIndex:i})})({...Py,...t}),{groupComponent:e}=n,r=Gc(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?ky(n,a,"right"):null,a.left?ky(n,a,"left"):null,a.bottom?ky(n,a,"bottom"):null,a.top?ky(n,a,"top"):null,a.right?Sy(n,a,"right"):null,a.left?Sy(n,a,"left"):null,a.bottom?Sy(n,a,"bottom"):null,a.top?Sy(n,a,"top"):null].filter(Boolean);return E().cloneElement(e,{tabIndex:i,"aria-label":o,...r},s)};var Oy=r(156),Ly=r.n(Oy);const Ty=(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)]},$y=t=>{const n=["x","y","errorX","errorY"];return t.data?_a(t.data,t,n):_a(t.errorX||t.errorY?Ma(t):[],t,n)},jy=(t,n)=>{const e=Ha(t,n),r=Ua(t,n),i=$y(t);if(i.length<1)return void 0!==e&&void 0!==r?Ba(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 Ba(void 0!==e?e:a("min"),void 0!==r?r:a("max"))},Ny=(t,n)=>Na(jy)(t,n),zy={width:450,height:300,padding:50},Ry=[{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 Iy 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(Su,null),data:Ry,dataComponent:E().createElement(Dy,null),labelComponent:E().createElement(fh,null),groupComponent:E().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Oh.grayscale};static getDomain=Ny;static getData=$y;static getBaseProps=t=>((t,n)=>{const e=gt(t,n,"errorbar"),r=Object.assign({},e,(t=>{const n=it(t,"errorbar"),e=ot(t.style,n)||{},r=$y(t),i={x:dt(t,"x"),y:dt(t,"y")},o={x:Ny(t,"x"),y:Ny(t,"y")};return{domain:o,data:r,scale:{x:Qo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Qo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},style:e,origin:t.polar?t.origin||ht(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:g,sharedEvents:y,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:g,standalone:x,style:v.parent,theme:b,width:_}};return o.reduce(((t,n,e)=>{const c=ft(n.eventKey)?e:n.eventKey,{x:d,y:f}=nt(Ly()({},r,{scale:g}),n),p=((t,n)=>{const e=Pt(n.x),r=St(n.x),i=Pt(n.y),o=St(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=Ty(r,p,"x"),x=Ty(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:g,style:M?{}:v.data,x:d,y:f,disableInlineStyles:M};t[c]={data:b};const _=Ya(r,n,e);return(null!=_||h&&(s||y))&&(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,g=c?"start":"middle",y=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||g,verticalAnchor:p.verticalAnchor||y,angle:p.angle,horizontal:c,disableInlineStyles:d};if(!rt(u))return x;const v=h&&h.tooltip||{};return Q()({},x,J(v,["style"]))})(Object.assign({},r,b),_,v)),t}),C)})(t,zy);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Wy,e=gt(this.props,zy,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Kc(i,e)}}const Wy=tf(Iy),By={width:450,height:300,padding:50,offset:0};function Vy(t,n){const e="group",r=gt(t,By,e),i=ng(r.theme,r.style,e),{offset:o,colorScale:a,color:s,polar:l,horizontal:c}=r,u=r.categories||sg(r,n,null),h=r.datasets||qm(r,null),d={x:Zm(Object.assign({},r,{categories:u}),"x",n),y:Zm(Object.assign({},r,{categories:u}),"y",n)},f=r.range||{x:dt(r,"x"),y:dt(r,"y")},p={x:ta(r,"x")||Qm(r,"x"),y:ta(r,"y")||Qm(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:ht(r),padding:et(r)}}function Fy(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 Uy(t,n,e){void 0===n&&(n=[]);const r=t.data||t.y?wa(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 Hy(t,n,e){const r=gt(t,By,"stack"),i=n||E().Children.toArray(r.children),o=e||Vy(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=yt("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:eg(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:Uy(r,a[n],i),colorScale:Fy(r,t),labelComponent:s||t.props.labelComponent,xOffset:i},c))}))}const qy={width:450,height:300,padding:50,offset:0},Gy={containerComponent:E().createElement(Su,null),groupComponent:E().createElement("g",null),samples:50,standalone:!0,theme:Oh.grayscale},Ky=t=>{const n=Xy?.role,{getAnimationProps:e,setAnimationState:r,getProps:i}=Vm(),o=E().useMemo((()=>({...Gy,...t})),[t]),a=i(o),s=gt(a,qy,n),{eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:g,horizontal:y,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:J(t.props,["sharedEvents"])})));return t.children=e,t})(t),[e,r]=E().useState(n);return E().useEffect((()=>{nd()(n,e)||r(n)}),[e,r,n]),E().useMemo((()=>Vy(e,e.children)),[e])}(s),{domain:_,scale:M,style:C,origin:w}=b,A=E().useMemo((()=>Hy(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:y,polar:g,origin:w,name:x}:{}),[u,_,M,f,p,m,C,y,g,w,x]),S=E().useMemo((()=>Gc(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((()=>Jm(a)),[a]),O=lg(o);return E().useEffect((()=>()=>{o.animate&&r(O,a)}),[r,O,o,a]),N()(D)?E().cloneElement(P,P.props,A):E().createElement(fg,{container:P,eventKey:l,events:D,externalEventMutations:d},A)},Yy={role:"group",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:Hy},Xy=Object.assign(E().memo(Ky,nd()),Yy);Xy.displayName="VictoryGroup";var Zy=Array.prototype,Qy=Zy.slice;function Jy(t){return()=>t}function tx(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 nx(t){return t}function ex(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}Zy.map;const rx=(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&&nd()(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=mt(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=mt(e||"x"),a=function(){var t=nx,n=tx,e=ex;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===tx&&([u,h]=function(t,n,e){let r;for(;;){const i=Ht(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=Ut(u,h,e))[0]<=u&&(a=Ht(u,h,e)),d[d.length-1]>=h)if(t>=h&&n===tx){const t=Ht(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[tn(d,o,0,f)].push(r[i]);return m}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:Jy(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:Jy([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Jy(Qy.call(t)):Jy(t),r):e},r}().value(o),s=(i?Do():Ce()).domain(tx(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]}}))})),ix=t=>{const{bins:n,data:e,x:r}=t,i=e?.some((t=>{let{_y:n}=t;return!ft(n)})),o=i?e:rx({data:e,x:r,bins:n});return wa({...t,data:o,x:"x"})},ox=(t,n)=>{const e=ix(t);if(!e.length)return[0,1];if("x"===n){const n=e[0],r=e[e.length-1];return Fa({...t,data:[{x:n.x0},{x:r.x1}],x:"x"},"x")}return t.data?.length?Fa({...t,data:e},"y"):[0,1]},ax={width:450,height:300,padding:50},sx=[];class lx 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=rx;static defaultProps={containerComponent:E().createElement(Su,null),data:sx,dataComponent:E().createElement(cp,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(fh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Oh.grayscale};static getDomain=ox;static getData=ix;static getBaseProps=t=>((t,n)=>{const e=gt(t,n,"histogram"),r=Object.assign({},e,(t=>{const n=it(t,"histogram"),e=ot(t.style,n),r=t.range||{x:dt(t,"x"),y:dt(t,"y")},i={x:ox(t,"x"),y:ox(t,"y")};let o=ix(t);return o=xa(o,i,0),{style:e,data:o,scale:{x:Qo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Qo(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:g,width:y,labels:x,name:v,getPath:b,disableInlineStyles:_}=r,M={parent:{horizontal:u,domain:s,scale:d,width:y,height:c,data:a,standalone:p,name:v,theme:g,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=ft(n.eventKey)?e:n.eventKey,{x:h,y:p,y0:g,x0:v}=qf(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:y,height:c,x:h,y:p,y0:g,x0:v,getPath:b,disableInlineStyles:_};return t[s]={data:w},(null!=Ya(r,n,e)||x&&(l||f))&&(t[s].labels=ts(r,e)),t}),M)})(t,ax);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=lx,e=gt(this.props,ax,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Kc(i,e)}}const cx=tf(lx);var ux=r(8825),hx=r.n(ux),dx=r(5367),fx=r.n(dx);const px=t=>{const{data:n,style:e}=t;return n.map(((t,r)=>st(Q()({},t.labels,e.labels),{datum:t,index:r,data:n})))},mx=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?Wu(n):n||[]})(t),o="horizontal"===n,a=et({padding:t.borderPadding});return Object.assign({},t,{style:r,isHorizontal:o,colorScale:i,borderPadding:a})},gx=(t,n)=>{const{itemsPerRow:e,isHorizontal:r}=t;return e?r?n%e:Math.floor(n/e):r?n:0},yx=(t,n)=>{const{itemsPerRow:e,isHorizontal:r}=t;return e?r?Math.floor(n/e):n%e:r?0:n},xx=t=>{const{data:n}=t,e=t.style&&t.style.data||{},r=px(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:eh(n.name,r[i]),column:gx(t,i),row:yx(t,i)}}))},vx=(t,n)=>{const e=t.gutter||{},r="object"==typeof e?(e.left||0)+(e.right||0):e||0,i=vp()(n,"column");return K()(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}),[])},bx=(t,n)=>{const e=t.rowGutter||{},r="object"==typeof e?(e.top||0)+(e.bottom||0):e||0,i=vp()(n,"row");return K()(i).reduce(((t,n,e)=>{const o=i[n].map((t=>t.textSize.height+t.symbolSpacer+r));return t[e]=Math.max(...o),t}),[])},_x=t=>{const n=t.style&&t.style.title||{},e=eh(t.title,n),r=n.padding||0;return{height:e.height+2*r||0,width:e.width+2*r||0}},Mx=(t,n)=>{const e=gt(t,n,"legend"),r=Object.assign({},e,mx(e)),{title:i,titleOrientation:o}=r,a=xx(r),s=vx(r,a),l=bx(r,a),c=i?_x(r):{height:0,width:0};return{height:"left"===o||"right"===o?Math.max(fx()(l),c.height):fx()(l)+c.height,width:"left"===o||"right"===o?fx()(s)+c.width:Math.max(fx()(s),c.width)}},Cx=(t,n)=>{const e=gt(t,n,"legend"),r=Object.assign({},e,mx(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:g=0,y:y=0}=r,x=xx(r),v=vx(r,x),b=bx(r,x),_=px(r),M=f?_x(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}=Mx(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=ft(n.eventKey)?e:n.eventKey,s=((t,n,e)=>{const{column:r,row:i}=t;return{x:hx()(r).reduce(((t,n)=>t+e[n]),0),y:hx()(i).reduce(((t,e)=>t+n[e]),0)}})(n,b,v),u=y+d.top+n.symbolSpacer,h=g+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)},wx={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},Ax=[{name:"Series 1"},{name:"Series 2"}];class Ex extends E().Component{static displayName="VictoryLegend";static role="legend";static defaultProps={borderComponent:E().createElement(mp,null),data:Ax,containerComponent:E().createElement(Su,null),dataComponent:E().createElement(Ug,null),groupComponent:E().createElement("g",null),labelComponent:E().createElement(fh,null),standalone:!0,theme:Oh.grayscale,titleComponent:E().createElement(fh,null)};static getBaseProps=t=>Cx(t,wx);static getDimensions=t=>Mx(t,wx);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=gt(this.props,wx,t),e=this.renderChildren(n);return n.standalone?this.renderContainer(n.containerComponent,e):E().cloneElement(n.groupComponent,{},e)}}const kx=tf(Ex),Sx={pathComponent:E().createElement(Uc,null),role:"presentation",shapeRendering:"auto"},Px=t=>{const n=(t=>{const n=at(t.ariaLabel,t),e=at(t.id,t),r=st(Object.assign({fill:"none",stroke:"black",pointerEvents:"stroke"},t.style),t),i=at(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,style:r,tabIndex:i})})({...Sx,...t}),e=Gc(n),{polar:r,origin:i}=n,o=Vc(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})},Dx={width:450,height:300,padding:50,interpolation:"linear"};class Ox 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(Su,null),dataComponent:E().createElement(Px,null),labelComponent:E().createElement(fh,{renderInPortal:!0}),groupComponent:E().createElement($u,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Oh.grayscale};static getDomain=Ra;static getData=wa;static getBaseProps=t=>((t,n)=>{const e=gt(t,n,"line"),r=Object.assign({},e,(t=>{let n=wa(t);n.length<2&&(n=[]);const e={x:dt(t,"x"),y:dt(t,"y")},r={x:Ra(t,"x"),y:Ra(t,"y")},i={x:Qo(t,"x").domain(r.x).range(t.horizontal?e.y:e.x),y:Qo(t,"y").domain(r.y).range(t.horizontal?e.x:e.y)},o=t.polar?t.origin||ht(t):void 0,a=it(t,"line");return{domain:r,data:n,scale:i,style:ot(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:g,style:y,theme:x,width:v,labels:b,name:_,disableInlineStyles:M}=r,C={parent:{style:y.parent,scale:p,data:i,height:l,width:v,name:_,domain:o,standalone:g,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?{}:y.data,theme:x,disableInlineStyles:M}}};return i.reduce(((t,n,e)=>((null!=Ya(r,n,e)||b&&(a||m))&&(t[ft(n.eventKey)?e:n.eventKey]={labels:ts(r,e)}),t)),C)})(t,Dx);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Ox,e=gt(this.props,Dx,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderContinuousData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Kc(i,e)}}const Lx=tf(Ox,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]}),Tx=(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)},$x=(t,n)=>t*(t=>Math.cos(t-lt(90)))(n),jx=(t,n)=>t*(t=>Math.sin(t-lt(90)))(n),Nx=t=>t.reduce(((t,n)=>t+n),0)/t.length,zx=(t,n)=>{const e=gt(t,n,"pie"),r=(t=>{const{colorScale:n}=t,e=it(t,"pie"),r=ot(t.style,e),i=Array.isArray(n)?n:Wu(n),o=et(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=V()(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=wa(t),c=((t,n)=>{const e=pt(t.padAngle)?0:t.padAngle;return qs().sort(null).startAngle(lt(t.startAngle)).endAngle(lt(t.endAngle)).padAngle(lt(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:g,cornerRadius:y,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:ct(n.startAngle),endAngle:ct(n.endAngle),padAngle:ct(n.padAngle)}),l=ft(o.eventKey)?i:o.eventKey,d={index:i,slice:n,datum:o,data:a,origin:s,innerRadius:g,radius:_,cornerRadius:y,padAngle:x,style:v?{}:Tx(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]:pt(t.labels)?t.labels:n.xName||n._x,(t=>null==t||pt(t)?t:`${t}`)(r)})(e,o,i);if(null!=f||c&&(u||h)){const n=at(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=at(e.labelRadius,Object.assign({text:t},n)),m=at(e.labelPosition,Object.assign({text:t},n))||"centroid",g=at(e.labelPlacement,Object.assign({text:t},n))||"vertical",y=Object.assign({padding:0},c.labels),x=((t,n,e)=>{const r=e&&e.padding||0;return n||t+r})(u,p,st(y,Object.assign({labelRadius:p,text:t},n))),v=(t=>Fs().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:ct("centroid"===n?(t.startAngle+t.endAngle)/2:"startAngle"===n?t.startAngle:t.endAngle),(r<0?360-r:r)%360})(a,m,y),M=((t,n)=>"vertical"===n?0:"parallel"===n?t>180&&t<360?t+90:t-90:t>90&&t<270?t-180:t)(_,g),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")(_,g),w=y.textAnchor||(t=>"top"===t||"bottom"===t?"middle":"right"===t?"start":"end")(C),A=y.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:y,x:Math.round(b[0])+h.x,y:Math.round(b[1])+h.y,textAnchor:w,verticalAnchor:A,angle:M,calculatedLabelRadius:x};if(!rt(s))return E;const k=l&&l.tooltip||{};return Q()({},E,J(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=Nx([r,i]),p=Nx([a,o]),m=h/2,g=u/2,y=f+s,x=d-l,v={x1:m+$x(y,p),y1:g+jx(y,p),x2:m+$x(x,p),y2:g+jx(x,p),index:c};return Q()({},v)})(Object.assign({},e,d),r,n))}}return t}),M)},Rx=t=>{const{slice:n,radius:e,innerRadius:r,cornerRadius:i}=t;if(pt(t.pathFunction))return t.pathFunction(n);const o=lt(t.padAngle),a=lt(t.sliceStartAngle),s=lt(t.sliceEndAngle);return Fs().cornerRadius(i).outerRadius(e).innerRadius(r||0)(Q()({startAngle:a,endAngle:s,padAngle:o},n))},Ix={pathComponent:E().createElement(Uc,null),role:"presentation",shapeRendering:"auto"},Wx=t=>{const n=(t=>{const n=st(t.style,t),e=at(t.radius,Object.assign({},t,{style:n})),r=at(t.innerRadius,Object.assign({},t,{style:n,radius:e})),i=at(t.ariaLabel,t),o=at(t.id,t),a=at(t.cornerRadius,t),s=at(t.padAngle,t),l=at(t.sliceStartAngle,t),c=at(t.sliceEndAngle,t),u=at(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})})({...Ix,...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:Rx(n),style:n.style,transform:n.transform||e,className:n.className,role:n.role,shapeRendering:n.shapeRendering,clipPath:n.clipPath,tabIndex:n.tabIndex})},Bx={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},Vx=t=>!ft(t._x)&&!ft(t._y);class Fx 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(Wx,null),labelComponent:E().createElement(fh,null),containerComponent:E().createElement(Su,null),groupComponent:E().createElement("g",null),sortOrder:"ascending",theme:Oh.grayscale};static getBaseProps=t=>zx(t,Bx);static getData=wa;static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];shouldAnimate(){return Boolean(this.props.animate)}renderComponents(t,n){void 0===n&&(n=Vx);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(lf,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}=Ux,e=gt(this.props,Bx,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderComponents(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Kc(i,e)}}const Ux=tf(Fx),Hx=(t,n)=>n.bubbleProperty?"circle":t.symbol||n.symbol,qx=(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(...uf()(et(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)},Gx={width:450,height:300,padding:50,size:3,symbol:"circle"};class Kx 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(Su,null),dataComponent:E().createElement(Ug,null),labelComponent:E().createElement(fh,null),groupComponent:E().createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Oh.grayscale};static getDomain=Ra;static getData=wa;static getBaseProps=t=>((t,n)=>{const e=gt(t,n,"scatter"),r=Object.assign({},e,(t=>{const n=it(t,"scatter"),e=ot(t.style,n),r={x:dt(t,"x"),y:dt(t,"y")},i={x:Ra(t,"x"),y:Ra(t,"y")},o={x:Qo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Qo(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)},a=t.polar?t.origin||ht(t):void 0,s=t.bubbleProperty||"z";let l=wa(t);return l=xa(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:g,width:y,labels:x,horizontal:v,disableInlineStyles:b}=r,_={parent:{style:m.parent,scale:h,domain:o,data:i,height:s,width:y,standalone:p,theme:g,origin:l,polar:u,padding:c,name:d,horizontal:v}};return i.reduce(((t,n,e)=>{const o=ft(n.eventKey)?e:n.eventKey,{x:s,y:c}=nt(r,n),d={x:s,y:c,datum:n,data:i,index:e,scale:h,polar:u,origin:l,horizontal:v,size:qx(n,r),symbol:Hx(n,r),style:b?{}:m.data,disableInlineStyles:b};return t[o]={data:d},(null!=Ya(r,n,e)||x&&(a||f))&&(t[o].labels=ts(r,e)),t}),_)})(t,Gx);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Yx,e=gt(this.props,Gx,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Kc(i,e)}}const Yx=tf(Kx),Xx={width:450,height:300,padding:50};function Zx(t,n){const e=qm(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=K()(r).map((t=>Number(t))),o=R()(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 Qx(t,n){const e=n||E().Children.toArray(t.children),r="stack",i=gt(t,Xx,r),o=ng(i.theme,i.style,r),a=i.categories||sg(i,e),s=i.datasets||Zx(i,e),l=e.map(((t,n)=>E().cloneElement(t,{data:s[n]}))),c={x:Zm(Object.assign({},i,{categories:a}),"x",l),y:Zm(Object.assign({},i,{categories:a}),"y",l)},u=i.range||{x:dt(i,"x"),y:dt(i,"y")},h={x:ta(i,"x")||Qm(i,"x"),y:ta(i,"y")||Qm(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 tv(t,n,e){const r=gt(t,Xx,"stack"),i=n||E().Children.toArray(r.children),o=e||Qx(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:et(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=eg(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 nv={width:450,height:300,padding:50},ev={containerComponent:E().createElement(Su,null),groupComponent:E().createElement("g",null),standalone:!0,theme:Oh.grayscale,fillInMissingData:!0},rv=t=>{const{role:n}=ov,e=E().useMemo((()=>({...ev,...t})),[t]),{setAnimationState:r,getAnimationProps:i,getProps:o}=Vm(),a=o(e),s=gt(a,nv,n),{eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:g,horizontal:y,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:J(n.props,["sharedEvents"])}}));return t.children=e,t})(t),[e,r]=E().useState(n);return E().useEffect((()=>{nd()(n,e)||r(n)}),[e,r,n]),E().useMemo((()=>Qx(e,e.children)),[e])}(s),{domain:_,scale:M,style:C}=b,w=E().useMemo((()=>tv(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:y,polar:g,name:x}:{}),[u,_,M,f,p,m,C,y,g,x]),k=E().useMemo((()=>Gc(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((()=>Jm(a)),[a]),D=lg(e);return E().useEffect((()=>()=>{e.animate&&r(D,e)}),[r,D,e]),N()(P)?E().cloneElement(S,S.props,w):E().createElement(fg,{container:S,eventKey:l,events:P,externalEventMutations:d},w)},iv={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:tv},ov=Object.assign(E().memo(rv,nd()),iv);ov.displayName="VictoryStack";const av={pathComponent:E().createElement(Uc,null),circleComponent:E().createElement(Ou,null),clipPathComponent:E().createElement(Pu,null),groupComponent:E().createElement("g",null),role:"presentation",shapeRendering:"auto"},sv=t=>{const n=function(t){const n=at(t.ariaLabel,t),e=at(t.id,t),r=at(t.size,t),i=st(t.style,t),o=at(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,size:r,style:i,tabIndex:o})}({...av,...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=Gc(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 lv(t){return function(){return t}}function cv(t){return t[0]}function uv(t){return t[1]}function hv(){this._=null}function dv(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function fv(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 pv(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 mv(t){for(;t.L;)t=t.L;return t}hv.prototype={constructor:hv,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=mv(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&&(fv(this,e),e=(t=e).U),e.C=!1,r.C=!0,pv(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(pv(this,e),e=(t=e).U),e.C=!1,r.C=!0,fv(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?mv(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,fv(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,pv(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,fv(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,pv(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,fv(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,pv(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var gv=hv;function yv(t,n,e,r){var i=[null,null],o=Bv.push(i)-1;return i.left=t,i.right=n,e&&vv(i,t,n,e),r&&vv(i,n,t,r),Iv[t.index].halfedges.push(o),Iv[n.index].halfedges.push(o),i}function xv(t,n,e){var r=[n,e];return r.left=t,r}function vv(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 bv(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 _v(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,g=(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=g-(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 Mv(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 Cv(t,n){return n[+(n.left!==t.site)]}function wv(t,n){return n[+(n.left===t.site)]}var Av,Ev=[];function kv(){dv(this),this.x=this.y=this.arc=this.site=this.cy=null}function Sv(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>=-Fv)){var f=l*l+c*c,p=u*u+h*h,m=(h*f-c*p)/d,g=(l*p-u*f)/d,y=Ev.pop()||new kv;y.arc=t,y.site=i,y.x=m+a,y.y=(y.cy=g+s)+Math.sqrt(m*m+g*g),t.circle=y;for(var x=null,v=Wv._;v;)if(y.y<v.y||y.y===v.y&&y.x<=v.x){if(!v.L){x=v.P;break}v=v.L}else{if(!v.R){x=v;break}v=v.R}Wv.insert(x,y),x||(Av=y)}}}}function Pv(t){var n=t.circle;n&&(n.P||(Av=n.N),Wv.remove(n),Ev.push(n),dv(n),t.circle=null)}var Dv=[];function Ov(){dv(this),this.edge=this.site=this.circle=null}function Lv(t){var n=Dv.pop()||new Ov;return n.site=t,n}function Tv(t){Pv(t),Rv.remove(t),Dv.push(t),dv(t)}function $v(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,a=t.N,s=[t];Tv(t);for(var l=o;l.circle&&Math.abs(e-l.circle.x)<Vv&&Math.abs(r-l.circle.cy)<Vv;)o=l.P,s.unshift(l),Tv(l),l=o;s.unshift(l),Pv(l);for(var c=a;c.circle&&Math.abs(e-c.circle.x)<Vv&&Math.abs(r-c.circle.cy)<Vv;)a=c.N,s.push(c),Tv(c),c=a;s.push(c),Pv(c);var u,h=s.length;for(u=1;u<h;++u)c=s[u],l=s[u-1],vv(c.edge,l.site,c.site,i);l=s[0],(c=s[h-1]).edge=yv(l.site,c.site,null,i),Sv(l),Sv(c)}function jv(t){for(var n,e,r,i,o=t[0],a=t[1],s=Rv._;s;)if((r=Nv(s,a)-o)>Vv)s=s.L;else{if(!((i=o-zv(s,a))>Vv)){r>-Vv?(n=s.P,e=s):i>-Vv?(n=s,e=s.N):n=e=s;break}if(!s.R){n=s;break}s=s.R}!function(t){Iv[t.index]={site:t,halfedges:[]}}(t);var l=Lv(t);if(Rv.insert(n,l),n||e){if(n===e)return Pv(n),e=Lv(n.site),Rv.insert(l,e),l.edge=e.edge=yv(n.site,l.site),Sv(n),void Sv(e);if(e){Pv(n),Pv(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,g=p[1]-h,y=2*(d*g-f*m),x=d*d+f*f,v=m*m+g*g,b=[(g*x-f*v)/y+u,(d*v-m*x)/y+h];vv(e.edge,c,p,b),l.edge=yv(c,t,null,b),e.edge=yv(t,p,null,b),Sv(n),Sv(e)}else l.edge=yv(n.site,l.site)}}function Nv(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 zv(t,n){var e=t.N;if(e)return Nv(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var Rv,Iv,Wv,Bv,Vv=1e-6,Fv=1e-12;function Uv(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function Hv(t,n){return n[1]-t[1]||n[0]-t[0]}function qv(t,n){var e,r,i,o=t.sort(Hv).pop();for(Bv=[],Iv=new Array(t.length),Rv=new gv,Wv=new gv;;)if(i=Av,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(jv(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;$v(i.arc)}if(function(){for(var t,n,e,r,i=0,o=Iv.length;i<o;++i)if((t=Iv[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]=Mv(t,Bv[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=Bv.length;o--;)_v(i=Bv[o],t,n,e,r)&&bv(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>Vv||Math.abs(i[0][1]-i[1][1])>Vv)||delete Bv[o]}(a,s,l,c),function(t,n,e,r){var i,o,a,s,l,c,u,h,d,f,p,m,g=Iv.length,y=!0;for(i=0;i<g;++i)if(o=Iv[i]){for(a=o.site,s=(l=o.halfedges).length;s--;)Bv[l[s]]||l.splice(s,1);for(s=0,c=l.length;s<c;)p=(f=wv(o,Bv[l[s]]))[0],m=f[1],h=(u=Cv(o,Bv[l[++s%c]]))[0],d=u[1],(Math.abs(p-h)>Vv||Math.abs(m-d)>Vv)&&(l.splice(s,0,Bv.push(xv(a,f,Math.abs(p-t)<Vv&&r-m>Vv?[t,Math.abs(h-t)<Vv?d:r]:Math.abs(m-r)<Vv&&e-p>Vv?[Math.abs(d-r)<Vv?h:e,r]:Math.abs(p-e)<Vv&&m-n>Vv?[e,Math.abs(h-e)<Vv?d:n]:Math.abs(m-n)<Vv&&p-t>Vv?[Math.abs(d-n)<Vv?h:t,n]:null))-1),++c);c&&(y=!1)}if(y){var x,v,b,_=1/0;for(i=0,y=null;i<g;++i)(o=Iv[i])&&(b=(x=(a=o.site)[0]-t)*x+(v=a[1]-n)*v)<_&&(_=b,y=o);if(y){var M=[t,n],C=[t,r],w=[e,r],A=[e,n];y.halfedges.push(Bv.push(xv(a=y.site,M,C))-1,Bv.push(xv(a,C,w))-1,Bv.push(xv(a,w,A))-1,Bv.push(xv(a,A,M))-1)}}for(i=0;i<g;++i)(o=Iv[i])&&(o.halfedges.length||delete Iv[i])}(a,s,l,c)}this.edges=Bv,this.cells=Iv,Rv=Wv=Bv=Iv=null}qv.prototype={constructor:qv,polygons:function(){var t=this.edges;return this.cells.map((function(n){var e=n.halfedges.map((function(e){return Cv(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&&Uv(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 Gv=(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=cv,n=uv,e=null;function r(r){return new qv(r.map((function(e,i){var o=[Math.round(t(e,i,r)/Vv)*Vv,Math.round(n(e,i,r)/Vv)*Vv];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:lv(+n),r):t},r.y=function(t){return arguments.length?(n="function"==typeof t?t:lv(+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])},Kv={width:450,height:300,padding:50};class Yv 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(Su,null),dataComponent:E().createElement(sv,null),labelComponent:E().createElement(fh,null),groupComponent:E().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Oh.grayscale};static getDomain=Ra;static getData=wa;static getBaseProps=t=>((t,n)=>{const e=gt(t,n,"scatter"),r=Object.assign({},e,(t=>{const n=t.theme&&t.theme.voronoi&&t.theme.voronoi.style?t.theme.voronoi.style:{},e=ot(t.style,n),r={x:dt(t,"x"),y:dt(t,"y")},i={x:Ra(t,"x"),y:Ra(t,"y")},o={x:Qo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Qo(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)};let a=wa(t);return a=xa(a,i),a=a.filter((t=>null!==t._x&&null!==t._y)),{domain:i,data:a,scale:o,style:e,polygons:Gv(t,r,o).polygons(a),origin:t.polar?t.origin||ht(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:g,width:y,labels:x,name:v}=r,b={parent:{style:m.parent,scale:d,domain:o,data:i,standalone:p,height:s,width:y,theme:g,origin:l,polar:u,padding:c,name:v}};return i.reduce(((t,n,e)=>{const o=Nh()(h[e],"data"),s=ft(n.eventKey)?e:n.eventKey,{x:c,y:u}=nt(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!=Ya(r,n,e)||x&&(a||f))&&(t[s].labels=ts(r,e)),t}),b)})(t,Kv);static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Xv,e=gt(this.props,Kv,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Kc(i,e)}}const Xv=tf(Yv)}(),i}()}));
|
|
2
2
|
//# sourceMappingURL=victory.min.js.map
|