This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
2025-01-11 09:54:09 +03:00

3 lines
503 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see Recharts.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("prop-types"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","react-dom"],e):"object"==typeof exports?exports.Recharts=e(require("react"),require("prop-types"),require("react-dom")):t.Recharts=e(t.React,t.PropTypes,t.ReactDOM)}(this,((t,e,r)=>(()=>{var n={7996:function(t,e,r){var n;!function(o){"use strict";var i,a=1e9,c={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,l="[DecimalError] ",s=l+"Invalid argument: ",f=l+"Exponent out of range: ",p=Math.floor,h=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,y=1e7,v=7,m=9007199254740991,b=p(m/v),g={};function x(t,e){var r,n,o,i,a,c,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),u?M(e,p):e;if(l=t.d,s=e.d,a=t.e,o=e.e,l=l.slice(),i=a-o){for(i<0?(n=l,i=-i,c=s.length):(n=s,o=a,c=l.length),i>(c=(a=Math.ceil(p/v))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=l.length)-(i=s.length)<0&&(i=c,n=s,s=l,l=n),r=0;i;)r=(l[--i]=l[i]+s[i]+r)/y|0,l[i]%=y;for(r&&(l.unshift(r),++o),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=o,u?M(e,p):e}function O(t,e,r){if(t!==~~t||t<e||t>r)throw Error(s+t)}function w(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)n=t[e]+"",(r=v-n.length)&&(i+=E(r)),i+=n;a=t[e],(r=v-(n=a+"").length)&&(i+=E(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}g.absoluteValue=g.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},g.comparedTo=g.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},g.decimalPlaces=g.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*v;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},g.dividedBy=g.div=function(t){return j(this,new this.constructor(t))},g.dividedToIntegerBy=g.idiv=function(t){var e=this.constructor;return M(j(this,new e(t),0,1),e.precision)},g.equals=g.eq=function(t){return!this.cmp(t)},g.exponent=function(){return A(this)},g.greaterThan=g.gt=function(t){return this.cmp(t)>0},g.greaterThanOrEqualTo=g.gte=function(t){return this.cmp(t)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(t){return this.cmp(t)<0},g.lessThanOrEqualTo=g.lte=function(t){return this.cmp(t)<1},g.logarithm=g.log=function(t){var e,r=this,n=r.constructor,o=n.precision,a=o+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(i))throw Error(l+"NaN");if(r.s<1)throw Error(l+(r.s?"NaN":"-Infinity"));return r.eq(i)?new n(0):(u=!1,e=j(k(r,a),k(t,a),a),u=!0,M(e,o))},g.minus=g.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?_(e,t):x(e,(t.s=-t.s,t))},g.modulo=g.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(l+"NaN");return r.s?(u=!1,e=j(r,t,0,1).times(t),u=!0,r.minus(e)):M(new n(r),o)},g.naturalExponential=g.exp=function(){return S(this)},g.naturalLogarithm=g.ln=function(){return k(this)},g.negated=g.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},g.plus=g.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?x(e,t):_(e,(t.s=-t.s,t))},g.precision=g.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(s+t);if(e=A(o)+1,r=(n=o.d.length-1)*v+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},g.squareRoot=g.sqrt=function(){var t,e,r,n,o,i,a,c=this,s=c.constructor;if(c.s<1){if(!c.s)return new s(0);throw Error(l+"NaN")}for(t=A(c),u=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=w(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=p((t+1)/2)-(t<0||t%2),n=new s(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new s(o.toString()),o=a=(r=s.precision)+3;;)if(n=(i=n).plus(j(c,i,a+2)).times(.5),w(i.d).slice(0,a)===(e=w(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(M(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=e)break;a+=4}return u=!0,M(n,r)},g.times=g.mul=function(t){var e,r,n,o,i,a,c,l,s,f=this,p=f.constructor,h=f.d,d=(t=new p(t)).d;if(!f.s||!t.s)return new p(0);for(t.s*=f.s,r=f.e+t.e,(l=h.length)<(s=d.length)&&(i=h,h=d,d=i,a=l,l=s,s=a),i=[],n=a=l+s;n--;)i.push(0);for(n=s;--n>=0;){for(e=0,o=l+n;o>n;)c=i[o]+d[n]*h[o-n-1]+e,i[o--]=c%y|0,e=c/y|0;i[o]=(i[o]+e)%y|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,u?M(t,p.precision):t},g.toDecimalPlaces=g.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(O(t,0,a),void 0===e?e=n.rounding:O(e,0,8),M(r,t+A(r)+1,e))},g.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=C(n,!0):(O(t,0,a),void 0===e?e=o.rounding:O(e,0,8),r=C(n=M(new o(n),t+1,e),!0,t+1)),r},g.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?C(o):(O(t,0,a),void 0===e?e=i.rounding:O(e,0,8),r=C((n=M(new i(o),t+A(o)+1,e)).abs(),!1,t+A(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},g.toInteger=g.toint=function(){var t=this,e=t.constructor;return M(new e(t),A(t)+1,e.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(t){var e,r,n,o,a,c,s=this,f=s.constructor,h=+(t=new f(t));if(!t.s)return new f(i);if(!(s=new f(s)).s){if(t.s<1)throw Error(l+"Infinity");return s}if(s.eq(i))return s;if(n=f.precision,t.eq(i))return M(s,n);if(c=(e=t.e)>=(r=t.d.length-1),a=s.s,c){if((r=h<0?-h:h)<=m){for(o=new f(i),e=Math.ceil(n/v+4),u=!1;r%2&&D((o=o.times(s)).d,e),0!==(r=p(r/2));)D((s=s.times(s)).d,e);return u=!0,t.s<0?new f(i).div(o):M(o,n)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,s.s=1,u=!1,o=t.times(k(s,n+12)),u=!0,(o=S(o)).s=a,o},g.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=C(o,(r=A(o))<=i.toExpNeg||r>=i.toExpPos):(O(t,1,a),void 0===e?e=i.rounding:O(e,0,8),n=C(o=M(new i(o),t,e),t<=(r=A(o))||r<=i.toExpNeg,t)),n},g.toSignificantDigits=g.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(O(t,1,a),void 0===e?e=r.rounding:O(e,0,8)),M(new r(this),t,e)},g.toString=g.valueOf=g.val=g.toJSON=function(){var t=this,e=A(t),r=t.constructor;return C(t,e<=r.toExpNeg||e>=r.toExpPos)};var j=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%y|0,n=r/y|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*y+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var c,u,s,f,p,h,d,m,b,g,x,O,w,j,S,P,E,k,T=n.constructor,_=n.s==o.s?1:-1,C=n.d,D=o.d;if(!n.s)return new T(n);if(!o.s)throw Error(l+"Division by zero");for(u=n.e-o.e,E=D.length,S=C.length,m=(d=new T(_)).d=[],s=0;D[s]==(C[s]||0);)++s;if(D[s]>(C[s]||0)&&--u,(O=null==i?i=T.precision:a?i+(A(n)-A(o))+1:i)<0)return new T(0);if(O=O/v+2|0,s=0,1==E)for(f=0,D=D[0],O++;(s<S||f)&&O--;s++)w=f*y+(C[s]||0),m[s]=w/D|0,f=w%D|0;else{for((f=y/(D[0]+1)|0)>1&&(D=t(D,f),C=t(C,f),E=D.length,S=C.length),j=E,g=(b=C.slice(0,E)).length;g<E;)b[g++]=0;(k=D.slice()).unshift(0),P=D[0],D[1]>=y/2&&++P;do{f=0,(c=e(D,b,E,g))<0?(x=b[0],E!=g&&(x=x*y+(b[1]||0)),(f=x/P|0)>1?(f>=y&&(f=y-1),1==(c=e(p=t(D,f),b,h=p.length,g=b.length))&&(f--,r(p,E<h?k:D,h))):(0==f&&(c=f=1),p=D.slice()),(h=p.length)<g&&p.unshift(0),r(b,p,g),-1==c&&(c=e(D,b,E,g=b.length))<1&&(f++,r(b,E<g?k:D,g)),g=b.length):0===c&&(f++,b=[0]),m[s++]=f,c&&b[0]?b[g++]=C[j]||0:(b=[C[j]],g=1)}while((j++<S||void 0!==b[0])&&O--)}return m[0]||m.shift(),d.e=u,M(d,a?i+A(d)+1:i)}}();function S(t,e){var r,n,o,a,c,l=0,s=0,p=t.constructor,d=p.precision;if(A(t)>16)throw Error(f+A(t));if(!t.s)return new p(i);for(null==e?(u=!1,c=d):c=e,a=new p(.03125);t.abs().gte(.1);)t=t.times(a),s+=5;for(c+=Math.log(h(2,s))/Math.LN10*2+5|0,r=n=o=new p(i),p.precision=c;;){if(n=M(n.times(t),c),r=r.times(++l),w((a=o.plus(j(n,r,c))).d).slice(0,c)===w(o.d).slice(0,c)){for(;s--;)o=M(o.times(o),c);return p.precision=d,null==e?(u=!0,M(o,d)):o}o=a}}function A(t){for(var e=t.e*v,r=t.d[0];r>=10;r/=10)e++;return e}function P(t,e,r){if(e>t.LN10.sd())throw u=!0,r&&(t.precision=r),Error(l+"LN10 precision limit exceeded");return M(new t(t.LN10),e)}function E(t){for(var e="";t--;)e+="0";return e}function k(t,e){var r,n,o,a,c,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,b=m.precision;if(y.s<1)throw Error(l+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new m(0);if(null==e?(u=!1,p=b):p=e,y.eq(10))return null==e&&(u=!0),P(m,p);if(p+=10,m.precision=p,n=(r=w(v)).charAt(0),a=A(y),!(Math.abs(a)<15e14))return f=P(m,p+2,b).times(a+""),y=k(new m(n+"."+r.slice(1)),p-10).plus(f),m.precision=b,null==e?(u=!0,M(y,b)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=w((y=y.times(t)).d)).charAt(0),d++;for(a=A(y),n>1?(y=new m("0."+r),a++):y=new m(n+"."+r.slice(1)),s=c=y=j(y.minus(i),y.plus(i),p),h=M(y.times(y),p),o=3;;){if(c=M(c.times(h),p),w((f=s.plus(j(c,new m(o),p))).d).slice(0,p)===w(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(P(m,p+2,b).times(a+""))),s=j(s,new m(d),p),m.precision=b,null==e?(u=!0,M(s,b)):s;s=f,o+=2}}function T(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=p(r/v),t.d=[],n=(r+1)%v,r<0&&(n+=v),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=v;n<o;)t.d.push(+e.slice(n,n+=v));e=e.slice(n),n=v-e.length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),u&&(t.e>b||t.e<-b))throw Error(f+r)}else t.s=0,t.e=0,t.d=[0];return t}function M(t,e,r){var n,o,i,a,c,l,s,d,m=t.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=v,o=e,s=m[d=0];else{if((d=Math.ceil((n+1)/v))>=(i=m.length))return t;for(s=i=m[d],a=1;i>=10;i/=10)a++;o=(n%=v)-v+a}if(void 0!==r&&(c=s/(i=h(10,a-o-1))%10|0,l=e<0||void 0!==m[d+1]||s%i,l=r<4?(c||l)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?o>0?s/h(10,a-o):0:m[d-1])%10&1||r==(t.s<0?8:7))),e<1||!m[0])return l?(i=A(t),m.length=1,e=e-i-1,m[0]=h(10,(v-e%v)%v),t.e=p(-e/v)||0):(m.length=1,m[0]=t.e=t.s=0),t;if(0==n?(m.length=d,i=1,d--):(m.length=d+1,i=h(10,v-n),m[d]=o>0?(s/h(10,a-o)%h(10,o)|0)*i:0),l)for(;;){if(0==d){(m[0]+=i)==y&&(m[0]=1,++t.e);break}if(m[d]+=i,m[d]!=y)break;m[d--]=0,i=1}for(n=m.length;0===m[--n];)m.pop();if(u&&(t.e>b||t.e<-b))throw Error(f+A(t));return t}function _(t,e){var r,n,o,i,a,c,l,s,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?M(e,d):e;if(l=t.d,p=e.d,n=e.e,s=t.e,l=l.slice(),a=s-n){for((f=a<0)?(r=l,a=-a,c=p.length):(r=p,n=s,c=l.length),a>(o=Math.max(Math.ceil(d/v),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=l.length)<(c=p.length))&&(c=o),o=0;o<c;o++)if(l[o]!=p[o]){f=l[o]<p[o];break}a=0}for(f&&(r=l,l=p,p=r,e.s=-e.s),c=l.length,o=p.length-c;o>0;--o)l[c++]=0;for(o=p.length;o>a;){if(l[--o]<p[o]){for(i=o;i&&0===l[--i];)l[i]=y-1;--l[i],l[o]+=y}l[o]-=p[o]}for(;0===l[--c];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(e.d=l,e.e=n,u?M(e,d):e):new h(0)}function C(t,e,r){var n,o=A(t),i=w(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+E(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+E(-o-1)+i,r&&(n=r-a)>0&&(i+=E(n))):o>=a?(i+=E(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+E(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=E(n))),t.s<0?"-"+i:i}function D(t,e){if(t.length>e)return t.length=e,!0}function I(t){if(!t||"object"!=typeof t)throw Error(l+"Object expected");var e,r,n,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(p(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(s+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(s+r+": "+n);this[r]=new this(n)}return this}c=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(s+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):T(e,t.toString())}if("string"!=typeof t)throw Error(s+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!d.test(t))throw Error(s+t);T(e,t)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=I,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}(c),c.default=c.Decimal=c,i=new c(1),void 0===(n=function(){return c}.call(e,r,e,t))||(t.exports=n)}()},9328:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,h=s.length;for(l=0;l<h;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c},6032:(t,e,r)=>{var n=r(7892)(r(7188),"DataView");t.exports=n},1276:(t,e,r)=>{var n=r(4212),o=r(2688),i=r(3916),a=r(6952),c=r(1016);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},3040:(t,e,r)=>{var n=r(5968),o=r(3740),i=r(4996),a=r(2600),c=r(7336);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},420:(t,e,r)=>{var n=r(7892)(r(7188),"Map");t.exports=n},1476:(t,e,r)=>{var n=r(8720),o=r(4760),i=r(88),a=r(9776),c=r(8619);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},404:(t,e,r)=>{var n=r(7892)(r(7188),"Promise");t.exports=n},6920:(t,e,r)=>{var n=r(7892)(r(7188),"Set");t.exports=n},6152:(t,e,r)=>{var n=r(1476),o=r(9516),i=r(3504);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},520:(t,e,r)=>{var n=r(3040),o=r(5643),i=r(3368),a=r(636),c=r(3012),u=r(3388);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=c,l.prototype.set=u,t.exports=l},7128:(t,e,r)=>{var n=r(7188).Symbol;t.exports=n},9704:(t,e,r)=>{var n=r(7188).Uint8Array;t.exports=n},5200:(t,e,r)=>{var n=r(7892)(r(7188),"WeakMap");t.exports=n},2253:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},6064:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},3908:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},8640:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},8688:(t,e,r)=>{var n=r(3992);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},5336:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},7640:(t,e,r)=>{var n=r(736),o=r(348),i=r(2488),a=r(7684),c=r(1188),u=r(6700),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),s=!r&&o(t),f=!r&&!s&&a(t),p=!r&&!s&&!f&&u(t),h=r||s||f||p,d=h?n(t.length,String):[],y=d.length;for(var v in t)!e&&!l.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,y))||d.push(v);return d}},2040:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},1168:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},5600:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},1120:t=>{t.exports=function(t){return t.split("")}},8288:(t,e,r)=>{var n=r(6139),o=r(864),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},6600:(t,e,r)=>{var n=r(864);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},8040:(t,e,r)=>{var n=r(7612),o=r(5160);t.exports=function(t,e){return t&&n(e,o(e),t)}},4244:(t,e,r)=>{var n=r(7612),o=r(2756);t.exports=function(t,e){return t&&n(e,o(e),t)}},6139:(t,e,r)=>{var n=r(7792);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},5620:(t,e,r)=>{var n=r(520),o=r(6064),i=r(8288),a=r(8040),c=r(4244),u=r(1328),l=r(8416),s=r(8219),f=r(792),p=r(1096),h=r(8856),d=r(3871),y=r(4636),v=r(7576),m=r(6224),b=r(2488),g=r(7684),x=r(8544),O=r(8940),w=r(9504),j=r(5160),S=r(2756),A="[object Arguments]",P="[object Function]",E="[object Object]",k={};k[A]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[E]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[P]=k["[object WeakMap]"]=!1,t.exports=function t(e,r,T,M,_,C){var D,I=1&r,N=2&r,R=4&r;if(T&&(D=_?T(e,M,_,C):T(e)),void 0!==D)return D;if(!O(e))return e;var B=b(e);if(B){if(D=y(e),!I)return l(e,D)}else{var L=d(e),z=L==P||"[object GeneratorFunction]"==L;if(g(e))return u(e,I);if(L==E||L==A||z&&!_){if(D=N||z?{}:m(e),!I)return N?f(e,c(D,e)):s(e,a(D,e))}else{if(!k[L])return _?e:{};D=v(e,L,I)}}C||(C=new n);var F=C.get(e);if(F)return F;C.set(e,D),w(e)?e.forEach((function(n){D.add(t(n,r,T,n,e,C))})):x(e)&&e.forEach((function(n,o){D.set(o,t(n,r,T,o,e,C))}));var U=B?void 0:(R?N?h:p:N?S:j)(e);return o(U||e,(function(n,o){U&&(n=e[o=n]),i(D,o,t(n,r,T,o,e,C))})),D}},2471:(t,e,r)=>{var n=r(8940),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},3651:(t,e,r)=>{var n=r(316),o=r(9236)(n);t.exports=o},6608:(t,e,r)=>{var n=r(3651);t.exports=function(t,e){var r=!0;return n(t,(function(t,n,o){return r=!!e(t,n,o)})),r}},9208:(t,e,r)=>{var n=r(7712);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],c=e(a);if(null!=c&&(void 0===u?c==c&&!n(c):r(c,u)))var u=c,l=a}return l}},4832:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},8108:(t,e,r)=>{var n=r(1168),o=r(6552);t.exports=function t(e,r,i,a,c){var u=-1,l=e.length;for(i||(i=o),c||(c=[]);++u<l;){var s=e[u];r>0&&i(s)?r>1?t(s,r-1,i,a,c):n(c,s):a||(c[c.length]=s)}return c}},4596:(t,e,r)=>{var n=r(8168)();t.exports=n},316:(t,e,r)=>{var n=r(4596),o=r(5160);t.exports=function(t,e){return t&&n(t,e,o)}},4240:(t,e,r)=>{var n=r(7736),o=r(7668);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4668:(t,e,r)=>{var n=r(1168),o=r(2488);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},6944:(t,e,r)=>{var n=r(7128),o=r(5664),i=r(3168),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},1412:t=>{t.exports=function(t,e){return t>e}},7732:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},3992:(t,e,r)=>{var n=r(4832),o=r(1624),i=r(4568);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},3432:(t,e,r)=>{var n=r(6944),o=r(2892);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},9184:(t,e,r)=>{var n=r(4840),o=r(2892);t.exports=function t(e,r,i,a,c){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,c))}},4840:(t,e,r)=>{var n=r(520),o=r(9124),i=r(2352),a=r(8608),c=r(3871),u=r(2488),l=r(7684),s=r(6700),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,m){var b=u(t),g=u(e),x=b?p:c(t),O=g?p:c(e),w=(x=x==f?h:x)==h,j=(O=O==f?h:O)==h,S=x==O;if(S&&l(t)){if(!l(e))return!1;b=!0,w=!1}if(S&&!w)return m||(m=new n),b||s(t)?o(t,e,r,y,v,m):i(t,e,x,r,y,v,m);if(!(1&r)){var A=w&&d.call(t,"__wrapped__"),P=j&&d.call(e,"__wrapped__");if(A||P){var E=A?t.value():t,k=P?e.value():e;return m||(m=new n),v(E,k,r,y,m)}}return!!S&&(m||(m=new n),a(t,e,r,y,v,m))}},1360:(t,e,r)=>{var n=r(3871),o=r(2892);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},4939:(t,e,r)=>{var n=r(520),o=r(9184);t.exports=function(t,e,r,i){var a=r.length,c=a,u=!i;if(null==t)return!c;for(t=Object(t);a--;){var l=r[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<c;){var s=(l=r[a])[0],f=t[s],p=l[1];if(u&&l[2]){if(void 0===f&&!(s in t))return!1}else{var h=new n;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}},1624:t=>{t.exports=function(t){return t!=t}},7200:(t,e,r)=>{var n=r(7920),o=r(6084),i=r(8940),a=r(7456),c=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,s=u.toString,f=l.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:c).test(a(t))}},156:(t,e,r)=>{var n=r(3871),o=r(2892);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},7160:(t,e,r)=>{var n=r(6944),o=r(9024),i=r(2892),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},3968:(t,e,r)=>{var n=r(4493),o=r(8056),i=r(552),a=r(2488),c=r(4860);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):c(t)}},5552:(t,e,r)=>{var n=r(1004),o=r(3320),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},3632:(t,e,r)=>{var n=r(8940),o=r(1004),i=r(8512),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var c in t)("constructor"!=c||!e&&a.call(t,c))&&r.push(c);return r}},4432:t=>{t.exports=function(t,e){return t<e}},4320:(t,e,r)=>{var n=r(3651),o=r(4900);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},4493:(t,e,r)=>{var n=r(4939),o=r(3640),i=r(2584);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},8056:(t,e,r)=>{var n=r(9184),o=r(9448),i=r(1256),a=r(9640),c=r(3960),u=r(2584),l=r(7668);t.exports=function(t,e){return a(t)&&c(e)?u(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},6223:(t,e,r)=>{var n=r(2040),o=r(4240),i=r(3968),a=r(4320),c=r(3416),u=r(9165),l=r(2044),s=r(552),f=r(2488);t.exports=function(t,e,r){e=e.length?n(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[s];var p=-1;e=n(e,u(i));var h=a(t,(function(t,r,o){return{criteria:n(e,(function(e){return e(t)})),index:++p,value:t}}));return c(h,(function(t,e){return l(t,e,r)}))}},7112:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},4184:(t,e,r)=>{var n=r(4240);t.exports=function(t){return function(e){return n(e,t)}}},848:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,c=r(e((n-t)/(o||1)),0),u=Array(c);c--;)u[i?c:++a]=t,t+=o;return u}},8292:(t,e,r)=>{var n=r(552),o=r(8840),i=r(7360);t.exports=function(t,e){return i(o(t,e,n),t+"")}},3120:(t,e,r)=>{var n=r(6347),o=r(7792),i=r(552),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},4732:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},3748:(t,e,r)=>{var n=r(3651);t.exports=function(t,e){var r;return n(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}},3416:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},1448:t=>{t.exports=function(t,e){for(var r,n=-1,o=t.length;++n<o;){var i=e(t[n]);void 0!==i&&(r=void 0===r?i:r+i)}return r}},736:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},6524:(t,e,r)=>{var n=r(7128),o=r(2040),i=r(2488),a=r(7712),c=n?n.prototype:void 0,u=c?c.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 u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r}},4428:(t,e,r)=>{var n=r(5608),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},9165:t=>{t.exports=function(t){return function(e){return t(e)}}},3756:(t,e,r)=>{var n=r(6152),o=r(8688),i=r(5336),a=r(968),c=r(6840),u=r(2060);t.exports=function(t,e,r){var l=-1,s=o,f=t.length,p=!0,h=[],d=h;if(r)p=!1,s=i;else if(f>=200){var y=e?null:c(t);if(y)return u(y);p=!1,s=a,d=new n}else d=e?[]:h;t:for(;++l<f;){var v=t[l],m=e?e(v):v;if(v=r||0!==v?v:0,p&&m==m){for(var b=d.length;b--;)if(d[b]===m)continue t;e&&d.push(m),h.push(v)}else s(d,m,r)||(d!==h&&d.push(m),h.push(v))}return h}},5840:(t,e,r)=>{var n=r(7736),o=r(2008),i=r(5088),a=r(7668);t.exports=function(t,e){return e=n(e,t),null==(t=i(t,e))||delete t[a(o(e))]}},968:t=>{t.exports=function(t,e){return t.has(e)}},7736:(t,e,r)=>{var n=r(2488),o=r(9640),i=r(976),a=r(1972);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},7320:(t,e,r)=>{var n=r(4732);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},5987:(t,e,r)=>{var n=r(9704);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},1328:(t,e,r)=>{t=r.nmd(t);var n=r(7188),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=c?c(r):new t.constructor(r);return t.copy(n),n}},9488:(t,e,r)=>{var n=r(5987);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},2640:t=>{var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},2656:(t,e,r)=>{var n=r(7128),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},2100:(t,e,r)=>{var n=r(5987);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},3228:(t,e,r)=>{var n=r(7712);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),c=void 0!==e,u=null===e,l=e==e,s=n(e);if(!u&&!s&&!a&&t>e||a&&c&&l&&!u&&!s||o&&c&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&r&&i&&!o&&!a||u&&r&&i||!c&&i||!l)return-1}return 0}},2044:(t,e,r)=>{var n=r(3228);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,c=i.length,u=r.length;++o<c;){var l=n(i[o],a[o]);if(l)return o>=u?l:l*("desc"==r[o]?-1:1)}return t.index-e.index}},8416:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},7612:(t,e,r)=>{var n=r(8288),o=r(6139);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var c=-1,u=e.length;++c<u;){var l=e[c],s=i?i(r[l],t[l],l,r,t):void 0;void 0===s&&(s=t[l]),a?o(r,l,s):n(r,l,s)}return r}},8219:(t,e,r)=>{var n=r(7612),o=r(3520);t.exports=function(t,e){return n(t,o(t),e)}},792:(t,e,r)=>{var n=r(7612),o=r(1216);t.exports=function(t,e){return n(t,o(t),e)}},5280:(t,e,r)=>{var n=r(7188)["__core-js_shared__"];t.exports=n},9236:(t,e,r)=>{var n=r(4900);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,c=Object(r);(e?a--:++a<i)&&!1!==o(c[a],a,c););return r}}},8168:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}},7288:(t,e,r)=>{var n=r(7320),o=r(9240),i=r(8595),a=r(1972);t.exports=function(t){return function(e){e=a(e);var r=o(e)?i(e):void 0,c=r?r[0]:e.charAt(0),u=r?n(r,1).join(""):e.slice(1);return c[t]()+u}}},100:(t,e,r)=>{var n=r(3968),o=r(4900),i=r(5160);t.exports=function(t){return function(e,r,a){var c=Object(e);if(!o(e)){var u=n(r,3);e=i(e),r=function(t){return u(c[t],t,c)}}var l=t(e,r,a);return l>-1?c[u?e[l]:l]:void 0}}},7836:(t,e,r)=>{var n=r(848),o=r(4221),i=r(7556);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e<r?1:-1:i(a),n(e,r,a,t)}}},6840:(t,e,r)=>{var n=r(6920),o=r(2648),i=r(2060),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},3104:(t,e,r)=>{var n=r(308);t.exports=function(t){return n(t)?void 0:t}},7792:(t,e,r)=>{var n=r(7892),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},9124:(t,e,r)=>{var n=r(6152),o=r(5600),i=r(968);t.exports=function(t,e,r,a,c,u){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=u.get(t),h=u.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++d<s;){var m=t[d],b=e[d];if(a)var g=l?a(b,m,d,e,t,u):a(m,b,d,t,e,u);if(void 0!==g){if(g)continue;y=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(m===t||c(m,t,r,a,u)))return v.push(e)}))){y=!1;break}}else if(m!==b&&!c(m,b,r,a,u)){y=!1;break}}return u.delete(t),u.delete(e),y}},2352:(t,e,r)=>{var n=r(7128),o=r(9704),i=r(864),a=r(9124),c=r(3152),u=r(2060),l=n?n.prototype:void 0,s=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=c;case"[object Set]":var d=1&n;if(h||(h=u),t.size!=e.size&&!d)return!1;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=a(h(t),h(e),n,l,f,p);return p.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},8608:(t,e,r)=>{var n=r(1096),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,c){var u=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!u)return!1;for(var f=s;f--;){var p=l[f];if(!(u?p in e:o.call(e,p)))return!1}var h=c.get(t),d=c.get(e);if(h&&d)return h==e&&d==t;var y=!0;c.set(t,e),c.set(e,t);for(var v=u;++f<s;){var m=t[p=l[f]],b=e[p];if(i)var g=u?i(b,m,p,e,t,c):i(m,b,p,t,e,c);if(!(void 0===g?m===b||a(m,b,r,i,c):g)){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 c.delete(t),c.delete(e),y}},7452:(t,e,r)=>{var n=r(4576),o=r(8840),i=r(7360);t.exports=function(t){return i(o(t,void 0,n),t+"")}},4848:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},1096:(t,e,r)=>{var n=r(4668),o=r(3520),i=r(5160);t.exports=function(t){return n(t,i,o)}},8856:(t,e,r)=>{var n=r(4668),o=r(1216),i=r(2756);t.exports=function(t){return n(t,i,o)}},6068:(t,e,r)=>{var n=r(6096);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},3640:(t,e,r)=>{var n=r(3960),o=r(5160);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},7892:(t,e,r)=>{var n=r(7200),o=r(5692);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},476:(t,e,r)=>{var n=r(1304)(Object.getPrototypeOf,Object);t.exports=n},5664:(t,e,r)=>{var n=r(7128),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},3520:(t,e,r)=>{var n=r(8640),o=r(872),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},1216:(t,e,r)=>{var n=r(1168),o=r(476),i=r(3520),a=r(872),c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=c},3871:(t,e,r)=>{var n=r(6032),o=r(420),i=r(404),a=r(6920),c=r(5200),u=r(6944),l=r(7456),s="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),m=l(i),b=l(a),g=l(c),x=u;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=s||i&&x(i.resolve())!=f||a&&x(new a)!=p||c&&x(new c)!=h)&&(x=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return s;case m:return f;case b:return p;case g:return h}return e}),t.exports=x},5692:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},2828:(t,e,r)=>{var n=r(7736),o=r(348),i=r(2488),a=r(1188),c=r(9024),u=r(7668);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=u(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&c(s)&&a(p,s)&&(i(t)||o(t))}},9240:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},4212:(t,e,r)=>{var n=r(5604);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},2688:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},3916:(t,e,r)=>{var n=r(5604),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},6952:(t,e,r)=>{var n=r(5604),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1016:(t,e,r)=>{var n=r(5604);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},4636:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},7576:(t,e,r)=>{var n=r(5987),o=r(9488),i=r(2640),a=r(2656),c=r(2100);t.exports=function(t,e,r){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(t,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Symbol]":return a(t)}}},6224:(t,e,r)=>{var n=r(2471),o=r(476),i=r(1004);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},6552:(t,e,r)=>{var n=r(7128),o=r(348),i=r(2488),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},1188:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},4221:(t,e,r)=>{var n=r(864),o=r(4900),i=r(1188),a=r(8940);t.exports=function(t,e,r){if(!a(r))return!1;var c=typeof e;return!!("number"==c?o(r)&&i(e,r.length):"string"==c&&e in r)&&n(r[e],t)}},9640:(t,e,r)=>{var n=r(2488),o=r(7712),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},6096:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},6084:(t,e,r)=>{var n,o=r(5280),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},1004:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3960:(t,e,r)=>{var n=r(8940);t.exports=function(t){return t==t&&!n(t)}},5968:t=>{t.exports=function(){this.__data__=[],this.size=0}},3740:(t,e,r)=>{var n=r(6600),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},4996:(t,e,r)=>{var n=r(6600);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},2600:(t,e,r)=>{var n=r(6600);t.exports=function(t){return n(this.__data__,t)>-1}},7336:(t,e,r)=>{var n=r(6600);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},8720:(t,e,r)=>{var n=r(1276),o=r(3040),i=r(420);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},4760:(t,e,r)=>{var n=r(6068);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},88:(t,e,r)=>{var n=r(6068);t.exports=function(t){return n(this,t).get(t)}},9776:(t,e,r)=>{var n=r(6068);t.exports=function(t){return n(this,t).has(t)}},8619:(t,e,r)=>{var n=r(6068);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},3152:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},2584:t=>{t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},9032:(t,e,r)=>{var n=r(1576);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},5604:(t,e,r)=>{var n=r(7892)(Object,"create");t.exports=n},3320:(t,e,r)=>{var n=r(1304)(Object.keys,Object);t.exports=n},8512:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},9180:(t,e,r)=>{t=r.nmd(t);var n=r(4848),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},3168:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},1304:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},8840:(t,e,r)=>{var n=r(2253),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(u),n(t,this,l)}}},5088:(t,e,r)=>{var n=r(4240),o=r(4732);t.exports=function(t,e){return e.length<2?t:n(t,o(e,0,-1))}},7188:(t,e,r)=>{var n=r(4848),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},9516:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},3504:t=>{t.exports=function(t){return this.__data__.has(t)}},2060:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},7360:(t,e,r)=>{var n=r(3120),o=r(4208)(n);t.exports=o},4208:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},5643:(t,e,r)=>{var n=r(3040);t.exports=function(){this.__data__=new n,this.size=0}},3368:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},636:t=>{t.exports=function(t){return this.__data__.get(t)}},3012:t=>{t.exports=function(t){return this.__data__.has(t)}},3388:(t,e,r)=>{var n=r(3040),o=r(420),i=r(1476);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},4568:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},8595:(t,e,r)=>{var n=r(1120),o=r(9240),i=r(6448);t.exports=function(t){return o(t)?i(t):n(t)}},976:(t,e,r)=>{var n=r(9032),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},7668:(t,e,r)=>{var n=r(7712);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},7456:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},5608:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},6448:t=>{var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+n+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?",s=l+u+("(?:\\u200d(?:"+[i,a,c].join("|")+")"+l+u+")*"),f="(?:"+[i+n+"?",n,a,c,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+s,"g");t.exports=function(t){return t.match(p)||[]}},6347:t=>{t.exports=function(t){return function(){return t}}},3336:(t,e,r)=>{var n=r(8940),o=r(9868),i=r(8472),a=Math.max,c=Math.min;t.exports=function(t,e,r){var u,l,s,f,p,h,d=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var r=u,n=l;return u=l=void 0,d=e,f=t.apply(n,r)}function g(t){var r=t-h;return void 0===h||r>=e||r<0||v&&t-d>=s}function x(){var t=o();if(g(t))return O(t);p=setTimeout(x,function(t){var r=e-(t-h);return v?c(r,s-(t-d)):r}(t))}function O(t){return p=void 0,m&&u?b(t):(u=l=void 0,f)}function w(){var t=o(),r=g(t);if(u=arguments,l=this,h=t,r){if(void 0===p)return function(t){return d=t,p=setTimeout(x,e),y?b(t):f}(h);if(v)return clearTimeout(p),p=setTimeout(x,e),b(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=i(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(i(r.maxWait)||0,e):s,m="trailing"in r?!!r.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,u=h=l=p=void 0},w.flush=function(){return void 0===p?f:O(o())},w}},864:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},164:(t,e,r)=>{var n=r(3908),o=r(6608),i=r(3968),a=r(2488),c=r(4221);t.exports=function(t,e,r){var u=a(t)?n:o;return r&&c(t,e,r)&&(e=void 0),u(t,i(e,3))}},7120:(t,e,r)=>{var n=r(100)(r(2988));t.exports=n},2988:(t,e,r)=>{var n=r(4832),o=r(3968),i=r(4400),a=Math.max;t.exports=function(t,e,r){var c=null==t?0:t.length;if(!c)return-1;var u=null==r?0:i(r);return u<0&&(u=a(c+u,0)),n(t,o(e,3),u)}},9540:(t,e,r)=>{t.exports=r(7580)},7440:(t,e,r)=>{var n=r(8108),o=r(7096);t.exports=function(t,e){return n(o(t,e),1)}},4576:(t,e,r)=>{var n=r(8108);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},9448:(t,e,r)=>{var n=r(4240);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},1256:(t,e,r)=>{var n=r(7732),o=r(2828);t.exports=function(t,e){return null!=t&&o(t,e,n)}},7580:t=>{t.exports=function(t){return t&&t.length?t[0]:void 0}},552:t=>{t.exports=function(t){return t}},348:(t,e,r)=>{var n=r(3432),o=r(2892),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},2488:t=>{var e=Array.isArray;t.exports=e},4900:(t,e,r)=>{var n=r(7920),o=r(9024);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},7e3:(t,e,r)=>{var n=r(6944),o=r(2892);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},7684:(t,e,r)=>{t=r.nmd(t);var n=r(7188),o=r(4068),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},948:(t,e,r)=>{var n=r(9184);t.exports=function(t,e){return n(t,e)}},7920:(t,e,r)=>{var n=r(6944),o=r(8940);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9024:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},8544:(t,e,r)=>{var n=r(1360),o=r(9165),i=r(9180),a=i&&i.isMap,c=a?o(a):n;t.exports=c},8880:(t,e,r)=>{var n=r(568);t.exports=function(t){return n(t)&&t!=+t}},4764:t=>{t.exports=function(t){return null==t}},568:(t,e,r)=>{var n=r(6944),o=r(2892);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},8940:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},2892:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},308:(t,e,r)=>{var n=r(6944),o=r(476),i=r(2892),a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,s=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==s}},9504:(t,e,r)=>{var n=r(156),o=r(9165),i=r(9180),a=i&&i.isSet,c=a?o(a):n;t.exports=c},6384:(t,e,r)=>{var n=r(6944),o=r(2488),i=r(2892);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},7712:(t,e,r)=>{var n=r(6944),o=r(2892);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},6700:(t,e,r)=>{var n=r(7160),o=r(9165),i=r(9180),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},5160:(t,e,r)=>{var n=r(7640),o=r(5552),i=r(4900);t.exports=function(t){return i(t)?n(t):o(t)}},2756:(t,e,r)=>{var n=r(7640),o=r(3632),i=r(4900);t.exports=function(t){return i(t)?n(t,!0):o(t)}},2008:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},7096:(t,e,r)=>{var n=r(2040),o=r(3968),i=r(4320),a=r(2488);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},6452:(t,e,r)=>{var n=r(6139),o=r(316),i=r(3968);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},4464:(t,e,r)=>{var n=r(9208),o=r(1412),i=r(552);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},6564:(t,e,r)=>{var n=r(9208),o=r(1412),i=r(3968);t.exports=function(t,e){return t&&t.length?n(t,i(e,2),o):void 0}},1576:(t,e,r)=>{var n=r(1476);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},4044:(t,e,r)=>{var n=r(9208),o=r(4432),i=r(552);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},908:(t,e,r)=>{var n=r(9208),o=r(3968),i=r(4432);t.exports=function(t,e){return t&&t.length?n(t,o(e,2),i):void 0}},2648:t=>{t.exports=function(){}},9868:(t,e,r)=>{var n=r(7188);t.exports=function(){return n.Date.now()}},1860:(t,e,r)=>{var n=r(2040),o=r(5620),i=r(5840),a=r(7736),c=r(7612),u=r(3104),l=r(7452),s=r(8856),f=l((function(t,e){var r={};if(null==t)return r;var l=!1;e=n(e,(function(e){return e=a(e,t),l||(l=e.length>1),e})),c(t,s(t),r),l&&(r=o(r,7,u));for(var f=e.length;f--;)i(r,e[f]);return r}));t.exports=f},4860:(t,e,r)=>{var n=r(7112),o=r(4184),i=r(9640),a=r(7668);t.exports=function(t){return i(t)?n(a(t)):o(t)}},9136:(t,e,r)=>{var n=r(7836)();t.exports=n},9500:(t,e,r)=>{var n=r(5600),o=r(3968),i=r(3748),a=r(2488),c=r(4221);t.exports=function(t,e,r){var u=a(t)?n:i;return r&&c(t,e,r)&&(e=void 0),u(t,o(e,3))}},1232:(t,e,r)=>{var n=r(8108),o=r(6223),i=r(8292),a=r(4221),c=i((function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])}));t.exports=c},872:t=>{t.exports=function(){return[]}},4068:t=>{t.exports=function(){return!1}},6356:(t,e,r)=>{var n=r(3968),o=r(1448);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):0}},9212:(t,e,r)=>{var n=r(3336),o=r(8940);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},7556:(t,e,r)=>{var n=r(8472),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},4400:(t,e,r)=>{var n=r(7556);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},8472:(t,e,r)=>{var n=r(4428),o=r(8940),i=r(7712),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^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=n(t);var r=c.test(t);return r||u.test(t)?l(t.slice(2),r?2:8):a.test(t)?NaN:+t}},1972:(t,e,r)=>{var n=r(6524);t.exports=function(t){return null==t?"":n(t)}},6424:(t,e,r)=>{var n=r(3968),o=r(3756);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},4704:(t,e,r)=>{var n=r(7288)("toUpperCase");t.exports=n},9764:(t,e)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function m(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case i:case c:case a:case p:case h:return t;default:switch(t=t&&t.$$typeof){case s:case l:case f:case y:case d:case u:return t;default:return e}}case o:return e}}}r=Symbol.for("react.module.reference"),e.isFragment=function(t){return m(t)===i}},2168:(t,e,r)=>{"use strict";t.exports=r(9764)},9660:t=>{"use strict";t.exports=e},741:e=>{"use strict";e.exports=t},4020:t=>{"use strict";t.exports=r}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var a={};return(()=>{"use strict";i.r(a),i.d(a,{Area:()=>$x,AreaChart:()=>Bj,Bar:()=>ub,BarChart:()=>Nw,Brush:()=>_m,CartesianAxis:()=>Vg,CartesianGrid:()=>sx,Cell:()=>kr,ComposedChart:()=>zj,Cross:()=>Kd,Curve:()=>Gf,Customized:()=>af,DefaultLegendContent:()=>de,DefaultTooltipContent:()=>We,Dot:()=>Rd,ErrorBar:()=>Al,Funnel:()=>yS,FunnelChart:()=>vS,Global:()=>ar,Label:()=>Fs,LabelList:()=>ef,Layer:()=>ht,Legend:()=>_e,Line:()=>Ex,LineChart:()=>Iw,Pie:()=>Pv,PieChart:()=>Rw,PolarAngleAxis:()=>Ry,PolarGrid:()=>ny,PolarRadiusAxis:()=>wy,Polygon:()=>Id,Radar:()=>Wv,RadarChart:()=>Nj,RadialBar:()=>fm,RadialBarChart:()=>Lj,Rectangle:()=>Pd,ReferenceArea:()=>jg,ReferenceDot:()=>fg,ReferenceLine:()=>Qb,ResponsiveContainer:()=>Er,Sankey:()=>Ij,Scatter:()=>dO,ScatterChart:()=>Rj,Sector:()=>yf,SunburstChart:()=>Hj,Surface:()=>lt,Symbols:()=>re,Text:()=>pn,Tooltip:()=>br,Trapezoid:()=>Zy,Treemap:()=>ij,XAxis:()=>AO,YAxis:()=>RO,ZAxis:()=>Jx});var t={};i.r(t),i.d(t,{scaleBand:()=>wn,scaleDiverging:()=>mu,scaleDivergingLog:()=>bu,scaleDivergingPow:()=>xu,scaleDivergingSqrt:()=>Ou,scaleDivergingSymlog:()=>gu,scaleIdentity:()=>fi,scaleImplicit:()=>xn,scaleLinear:()=>si,scaleLog:()=>xi,scaleOrdinal:()=>On,scalePoint:()=>Sn,scalePow:()=>Ti,scaleQuantile:()=>Ui,scaleQuantize:()=>Wi,scaleRadial:()=>Ci,scaleSequential:()=>su,scaleSequentialLog:()=>fu,scaleSequentialPow:()=>hu,scaleSequentialQuantile:()=>yu,scaleSequentialSqrt:()=>du,scaleSequentialSymlog:()=>pu,scaleSqrt:()=>Mi,scaleSymlog:()=>Si,scaleThreshold:()=>$i,scaleTime:()=>au,scaleUtc:()=>cu,tickFormat:()=>ui});var e=i(741),r=i.n(e);function n(t){var e,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=n(t[e]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}const o=function(){for(var t,e,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=n(t))&&(o&&(o+=" "),o+=e);return o};var c=i(9448),u=i.n(c),l=i(4764),s=i.n(l),f=i(6384),p=i.n(f),h=i(7920),d=i.n(h),y=i(8940),v=i.n(y),m=i(2168),b=i(8880),g=i.n(b),x=i(568),O=i.n(x),w=function(t){return 0===t?0:t>0?1:-1},j=function(t){return p()(t)&&t.indexOf("%")===t.length-1},S=function(t){return O()(t)&&!g()(t)},A=function(t){return S(t)||p()(t)},P=0,E=function(t){var e=++P;return"".concat(t||"").concat(e)},k=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!S(t)&&!p()(t))return n;if(j(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return g()(r)&&(r=n),o&&r>e&&(r=e),r},T=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},M=function(t,e){return S(t)&&S(e)?function(r){return t+r*(e-t)}:function(){return e}};function _(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):u()(t,e))===r})):null}function C(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}var I=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],N=["points","pathLength"],R={svg:["viewBox","children"],polygon:N,polyline:N},B=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],L=function(t,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,e.isValidElement)(t)&&(n=t.props),!v()(n))return null;var o={};return Object.keys(n).forEach((function(t){B.includes(t)&&(o[t]=r||function(e){return n[t](n,e)})})),o},z=function(t,e,r){if(!v()(t)||"object"!==D(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];B.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))})),n},F=["children"],U=["children"];function W(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}var K={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},q=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},V=null,X=null,H=function t(r){if(r===V&&Array.isArray(X))return X;var n=[];return e.Children.forEach(r,(function(e){s()(e)||((0,m.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))})),X=n,V=r,n};function G(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return q(t)})):[q(e)],H(t).forEach((function(t){var e=u()(t,"type.displayName")||u()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function Y(t,e){var r=G(t,e);return r&&r[0]}var Z=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!S(r)||r<=0||!S(n)||n<=0)},J=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Q=function(t){return t&&t.type&&p()(t.type)&&J.indexOf(t.type)>=0},tt=function(t){return t&&"object"===$(t)&&"clipDot"in t},et=function(t){var e=[];return H(t).forEach((function(t){Q(t)&&e.push(t)})),e},rt=function(t,r,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var o=t;if((0,e.isValidElement)(t)&&(o=t.props),!v()(o))return null;var i={};return Object.keys(o).forEach((function(t){var e;(function(t,e,r,n){var o,i=null!==(o=null==R?void 0:R[n])&&void 0!==o?o:[];return!d()(t)&&(n&&i.includes(e)||I.includes(e))||r&&B.includes(e)})(null===(e=o)||void 0===e?void 0:e[t],t,r,n)&&(i[t]=o[t])})),i},nt=function t(r,n){if(r===n)return!0;var o=e.Children.count(r);if(o!==e.Children.count(n))return!1;if(0===o)return!0;if(1===o)return ot(Array.isArray(r)?r[0]:r,Array.isArray(n)?n[0]:n);for(var i=0;i<o;i++){var a=r[i],c=n[i];if(Array.isArray(a)||Array.isArray(c)){if(!t(a,c))return!1}else if(!ot(a,c))return!1}return!0},ot=function(t,e){if(s()(t)&&s()(e))return!0;if(!s()(t)&&!s()(e)){var r=t.props||{},n=r.children,o=W(r,F),i=e.props||{},a=i.children,c=W(i,U);return n&&a?C(o,c)&&nt(n,a):!n&&!a&&C(o,c)}return!1},it=function(t,e){var r=[],n={};return H(t).forEach((function(t,o){if(Q(t))r.push(t);else if(t){var i=q(t.type),a=e[i]||{},c=a.handler,u=a.once;if(c&&(!u||!n[i])){var l=c(t,i,o);r.push(l),n[i]=!0}}})),r},at=["children","width","height","viewBox","className","style","title","desc"];function ct(){return ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ct.apply(this,arguments)}function ut(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function lt(t){var e=t.children,n=t.width,i=t.height,a=t.viewBox,c=t.className,u=t.style,l=t.title,s=t.desc,f=ut(t,at),p=a||{width:n,height:i,x:0,y:0},h=o("recharts-surface",c);return r().createElement("svg",ct({},rt(f,!0,"svg"),{className:h,width:n,height:i,style:u,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),r().createElement("title",null,l),r().createElement("desc",null,s),e)}var st=["children","className"];function ft(){return ft=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ft.apply(this,arguments)}function pt(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var ht=r().forwardRef((function(t,e){var n=t.children,i=t.className,a=pt(t,st),c=o("recharts-layer",i);return r().createElement("g",ft({className:c},rt(a,!0),{ref:e}),n)})),dt=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]},yt=i(4704),vt=i.n(yt);Math.abs,Math.atan2;const mt=Math.cos,bt=(Math.max,Math.min,Math.sin),gt=Math.sqrt,xt=Math.PI,Ot=2*xt;const wt={draw(t,e){const r=gt(e/xt);t.moveTo(r,0),t.arc(0,0,r,0,Ot)}},jt={draw(t,e){const r=gt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},St=gt(1/3),At=2*St,Pt={draw(t,e){const r=gt(e/At),n=r*St;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Et={draw(t,e){const r=gt(e),n=-r/2;t.rect(n,n,r,r)}},kt=bt(xt/10)/bt(7*xt/10),Tt=bt(Ot/10)*kt,Mt=-mt(Ot/10)*kt,_t={draw(t,e){const r=gt(.8908130915292852*e),n=Tt*r,o=Mt*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=Ot*e/5,a=mt(i),c=bt(i);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}},Ct=gt(3),Dt={draw(t,e){const r=-gt(e/(3*Ct));t.moveTo(0,2*r),t.lineTo(-Ct*r,-r),t.lineTo(Ct*r,-r),t.closePath()}},It=-.5,Nt=gt(3)/2,Rt=1/gt(12),Bt=3*(Rt/2+1),Lt={draw(t,e){const r=gt(e/Bt),n=r/2,o=r*Rt,i=n,a=r*Rt+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(It*n-Nt*o,Nt*n+It*o),t.lineTo(It*i-Nt*a,Nt*i+It*a),t.lineTo(It*c-Nt*u,Nt*c+It*u),t.lineTo(It*n+Nt*o,It*o-Nt*n),t.lineTo(It*i+Nt*a,It*a-Nt*i),t.lineTo(It*c+Nt*u,It*u-Nt*c),t.closePath()}};function zt(t){return function(){return t}}const Ft=Math.PI,Ut=2*Ft,Wt=1e-6,$t=Ut-Wt;function Kt(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class qt{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Kt:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Kt;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-t,u=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Wt)if(Math.abs(s*c-u*l)>Wt&&o){let p=r-i,h=n-a,d=c*c+u*u,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),b=o*Math.tan((Ft-Math.acos((d+f-y)/(2*v*m)))/2),g=b/m,x=b/v;Math.abs(g-1)>Wt&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+x*c},${this._y1=e+x*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Wt||Math.abs(this._y1-l)>Wt)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Ut+Ut),f>$t?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>Wt&&this._append`A${r},${r},0,${+(f>=Ft)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Vt(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new qt(e)}qt.prototype;gt(3),gt(3);function Xt(t){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(t)}var Ht=["type","size","sizeType"];function Gt(){return Gt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gt.apply(this,arguments)}function Yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){Jt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jt(t,e,r){var n;return n=function(t,e){if("object"!=Xt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Xt(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qt(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var te={symbolCircle:wt,symbolCross:jt,symbolDiamond:Pt,symbolSquare:Et,symbolStar:_t,symbolTriangle:Dt,symbolWye:Lt},ee=Math.PI/180,re=function(t){var e,n,i=t.type,a=void 0===i?"circle":i,c=t.size,u=void 0===c?64:c,l=t.sizeType,s=void 0===l?"area":l,f=Zt(Zt({},Qt(t,Ht)),{},{type:a,size:u,sizeType:s}),p=f.className,h=f.cx,d=f.cy,y=rt(f,!0);return h===+h&&d===+d&&u===+u?r().createElement("path",Gt({},y,{className:o("recharts-symbols",p),transform:"translate(".concat(h,", ").concat(d,")"),d:(e=function(t){var e="symbol".concat(vt()(t));return te[e]||wt}(a),n=function(t,e){let r=null,n=Vt(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:zt(t||wt),e="function"==typeof e?e:zt(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:zt(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:zt(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(e).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*ee;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(u,s,a)),n())})):null};function ne(t){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(t)}function oe(){return oe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oe.apply(this,arguments)}function ie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ae(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pe(n.key),n)}}function ce(t,e,r){return e=le(e),function(t,e){if(e&&("object"===ne(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)}(t,ue()?Reflect.construct(e,r||[],le(t).constructor):e.apply(t,r))}function ue(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ue=function(){return!!t})()}function le(t){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},le(t)}function se(t,e){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},se(t,e)}function fe(t,e,r){return(e=pe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pe(t){var e=function(t,e){if("object"!=ne(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ne(e)?e:e+""}re.registerSymbol=function(t,e){te["symbol".concat(vt()(t))]=e};var he=32,de=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ce(this,e,arguments)}return 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&&se(t,e)}(e,t),n=e,i=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=16,o=he/6,i=he/3,a=t.inactive?e:t.color;if("plainline"===t.type)return r().createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:he,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return r().createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(he,"M").concat(2*i,",").concat(n,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===t.type)return r().createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(he,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(r().isValidElement(t.legendIcon)){var c=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(r),!0).forEach((function(e){fe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete c.legendIcon,r().cloneElement(t.legendIcon,c)}return r().createElement(re,{fill:a,cx:n,cy:n,size:he,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,i=e.iconSize,a=e.layout,c=e.formatter,u=e.inactiveColor,l={x:0,y:0,width:he,height:he},s={display:"horizontal"===a?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(e,n){var a=e.formatter||c,p=o(fe(fe({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",e.inactive));if("none"===e.type)return null;var h=d()(e.value)?null:e.value;dt(!d()(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var y=e.inactive?u:e.color;return r().createElement("li",oe({className:p,style:s,key:"legend-item-".concat(n)},z(t.props,e,n)),r().createElement(lt,{width:i,height:i,viewBox:l,style:f},t.renderIcon(e)),r().createElement("span",{className:"recharts-legend-item-text",style:{color:y}},a?a(h,e,n):h))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,o=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?o:"left"};return r().createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],i&&ae(n.prototype,i),a&&ae(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);fe(de,"displayName","Legend"),fe(de,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ye=i(6424),ve=i.n(ye);function me(t,e,r){return!0===e?ve()(t,r):d()(e)?ve()(t,e):t}function be(t){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},be(t)}var ge=["ref"];function xe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Oe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xe(Object(r),!0).forEach((function(e){Ee(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function we(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ke(n.key),n)}}function je(t,e,r){return e=Ae(e),function(t,e){if(e&&("object"===be(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)}(t,Se()?Reflect.construct(e,r||[],Ae(t).constructor):e.apply(t,r))}function Se(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Se=function(){return!!t})()}function Ae(t){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ae(t)}function Pe(t,e){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pe(t,e)}function Ee(t,e,r){return(e=ke(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ke(t){var e=function(t,e){if("object"!=be(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==be(e)?e:e+""}function Te(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Me(t){return t.value}var _e=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Ee(t=je(this,e,[].concat(n)),"lastBoundingBox",{width:-1,height:-1}),t}return 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&&Pe(t,e)}(e,t),n=e,i=[{key:"getWithHeight",value:function(t,e){var r=Oe(Oe({},this.defaultProps),t.props).layout;return"vertical"===r&&S(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(o=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Oe({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Oe(Oe({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,o=e.width,i=e.height,a=e.wrapperStyle,c=e.payloadUniqBy,u=e.payload,l=Oe(Oe({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return r().createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(r().isValidElement(t))return r().cloneElement(t,e);if("function"==typeof t)return r().createElement(t,e);e.ref;var n=Te(e,ge);return r().createElement(de,n)}(n,Oe(Oe({},this.props),{},{payload:me(u,c,Me)})))}}])&&we(n.prototype,o),i&&we(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(e.PureComponent);Ee(_e,"displayName","Legend"),Ee(_e,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ce=i(1232),De=i.n(Ce);function Ie(t){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(t)}function Ne(){return Ne=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ne.apply(this,arguments)}function Re(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Be(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Be(t,e)}(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 Be(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Le(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ze(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Le(Object(r),!0).forEach((function(e){Fe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fe(t,e,r){var n;return n=function(t,e){if("object"!=Ie(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ie(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ue(t){return Array.isArray(t)&&A(t[0])&&A(t[1])?t.join(" ~ "):t}var We=function(t){var e=t.separator,n=void 0===e?" : ":e,i=t.contentStyle,a=void 0===i?{}:i,c=t.itemStyle,u=void 0===c?{}:c,l=t.labelStyle,f=void 0===l?{}:l,p=t.payload,h=t.formatter,d=t.itemSorter,y=t.wrapperClassName,v=t.labelClassName,m=t.label,b=t.labelFormatter,g=t.accessibilityLayer,x=void 0!==g&&g,O=ze({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),w=ze({margin:0},f),j=!s()(m),S=j?m:"",P=o("recharts-default-tooltip",y),E=o("recharts-tooltip-label",v);j&&b&&null!=p&&(S=b(m,p));var k=x?{role:"status","aria-live":"assertive"}:{};return r().createElement("div",Ne({className:P,style:O},k),r().createElement("p",{className:E,style:w},r().isValidElement(S)?S:"".concat(S)),function(){if(p&&p.length){var t=(d?De()(p,d):p).map((function(t,e){if("none"===t.type)return null;var o=ze({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},u),i=t.formatter||h||Ue,a=t.value,c=t.name,l=a,s=c;if(i&&null!=l&&null!=s){var f=i(a,c,t,e,p);if(Array.isArray(f)){var d=Re(f,2);l=d[0],s=d[1]}else l=f}return r().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:o},A(s)?r().createElement("span",{className:"recharts-tooltip-item-name"},s):null,A(s)?r().createElement("span",{className:"recharts-tooltip-item-separator"},n):null,r().createElement("span",{className:"recharts-tooltip-item-value"},l),r().createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return r().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function $e(t){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(t)}function Ke(t,e,r){var n;return n=function(t,e){if("object"!=$e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==$e(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qe="recharts-tooltip-wrapper",Ve={visibility:"hidden"};function Xe(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return o(qe,Ke(Ke(Ke(Ke({},"".concat(qe,"-right"),S(r)&&e&&S(e.x)&&r>=e.x),"".concat(qe,"-left"),S(r)&&e&&S(e.x)&&r<e.x),"".concat(qe,"-bottom"),S(n)&&e&&S(e.y)&&n>=e.y),"".concat(qe,"-top"),S(n)&&e&&S(e.y)&&n<e.y))}function He(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(i&&S(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function Ge(t){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(t)}function Ye(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ze(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ye(Object(r),!0).forEach((function(e){nr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Je(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,or(n.key),n)}}function Qe(t,e,r){return e=er(e),function(t,e){if(e&&("object"===Ge(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)}(t,tr()?Reflect.construct(e,r||[],er(t).constructor):e.apply(t,r))}function tr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tr=function(){return!!t})()}function er(t){return er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},er(t)}function rr(t,e){return rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rr(t,e)}function nr(t,e,r){return(e=or(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function or(t){var e=function(t,e){if("object"!=Ge(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ge(e)?e:e+""}var ir=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return nr(t=Qe(this,e,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),nr(t,"handleKeyDown",(function(e){var r,n,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}return 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&&rr(t,e)}(e,t),n=e,o=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,n=e.active,o=e.allowEscapeViewBox,i=e.animationDuration,a=e.animationEasing,c=e.children,u=e.coordinate,l=e.hasPayload,s=e.isAnimationActive,f=e.offset,p=e.position,h=e.reverseDirection,d=e.useTranslate3d,y=e.viewBox,v=e.wrapperStyle,m=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&o?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=He({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=He({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):Ve,cssClasses:Xe({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:y}),b=m.cssClasses,g=m.cssProperties,x=Ze(Ze({transition:s&&n?"transform ".concat(i,"ms ").concat(a):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return r().createElement("div",{tabIndex:-1,className:b,style:x,ref:function(e){t.wrapperNode=e}},c)}}],o&&Je(n.prototype,o),i&&Je(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(e.PureComponent),ar={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return ar[t]},set:function(t,e){if("string"==typeof t)ar[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){ar[e]=t[e]}))}}};function cr(t){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(t)}function ur(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ur(Object(r),!0).forEach((function(e){yr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ur(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vr(n.key),n)}}function fr(t,e,r){return e=hr(e),function(t,e){if(e&&("object"===cr(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)}(t,pr()?Reflect.construct(e,r||[],hr(t).constructor):e.apply(t,r))}function pr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pr=function(){return!!t})()}function hr(t){return hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hr(t)}function dr(t,e){return dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dr(t,e)}function yr(t,e,r){return(e=vr(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vr(t){var e=function(t,e){if("object"!=cr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cr(e)?e:e+""}function mr(t){return t.dataKey}var br=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),fr(this,e,arguments)}return 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&&dr(t,e)}(e,t),n=e,o=[{key:"render",value:function(){var t=this,e=this.props,n=e.active,o=e.allowEscapeViewBox,i=e.animationDuration,a=e.animationEasing,c=e.content,u=e.coordinate,l=e.filterNull,s=e.isAnimationActive,f=e.offset,p=e.payload,h=e.payloadUniqBy,d=e.position,y=e.reverseDirection,v=e.useTranslate3d,m=e.viewBox,b=e.wrapperStyle,g=null!=p?p:[];l&&g.length&&(g=me(p.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),h,mr));var x=g.length>0;return r().createElement(ir,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:s,active:n,coordinate:u,hasPayload:x,offset:f,position:d,reverseDirection:y,useTranslate3d:v,viewBox:m,wrapperStyle:b},function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):"function"==typeof t?r().createElement(t,e):r().createElement(We,e)}(c,lr(lr({},this.props),{},{payload:g})))}}],o&&sr(n.prototype,o),i&&sr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(e.PureComponent);yr(br,"displayName","Tooltip"),yr(br,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ar.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var gr=i(9212),xr=i.n(gr);function Or(t){return Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Or(t)}function wr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wr(Object(r),!0).forEach((function(e){Sr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Sr(t,e,r){var n;return n=function(t,e){if("object"!=Or(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Or(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Or(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ar(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Pr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pr(t,e)}(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 Pr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Er=(0,e.forwardRef)((function(t,n){var i=t.aspect,a=t.initialDimension,c=void 0===a?{width:-1,height:-1}:a,u=t.width,l=void 0===u?"100%":u,s=t.height,f=void 0===s?"100%":s,p=t.minWidth,h=void 0===p?0:p,d=t.minHeight,y=t.maxHeight,v=t.children,m=t.debounce,b=void 0===m?0:m,g=t.id,x=t.className,O=t.onResize,w=t.style,S=void 0===w?{}:w,A=(0,e.useRef)(null),P=(0,e.useRef)();P.current=O,(0,e.useImperativeHandle)(n,(function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})}));var E=Ar((0,e.useState)({containerWidth:c.width,containerHeight:c.height}),2),k=E[0],T=E[1],M=(0,e.useCallback)((function(t,e){T((function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);(0,e.useEffect)((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;M(n,o),null===(e=P.current)||void 0===e||e.call(P,n,o)};b>0&&(t=xr()(t,b,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=A.current.getBoundingClientRect(),n=r.width,o=r.height;return M(n,o),e.observe(A.current),function(){e.disconnect()}}),[M,b]);var _=(0,e.useMemo)((function(){var t=k.containerWidth,n=k.containerHeight;if(t<0||n<0)return null;dt(j(l)||j(f),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",l,f),dt(!i||i>0,"The aspect(%s) must be greater than zero.",i);var o=j(l)?t:l,a=j(f)?n:f;i&&i>0&&(o?a=o/i:a&&(o=a*i),y&&a>y&&(a=y)),dt(o>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",o,a,l,f,h,d,i);var c=!Array.isArray(v)&&q(v.type).endsWith("Chart");return r().Children.map(v,(function(t){return r().isValidElement(t)?(0,e.cloneElement)(t,jr({width:o,height:a},c?{style:jr({height:"100%",width:"100%",maxHeight:a,maxWidth:o},t.props.style)}:{})):t}))}),[i,v,f,y,d,h,k,l]);return r().createElement("div",{id:g?"".concat(g):void 0,className:o("recharts-responsive-container",x),style:jr(jr({},S),{},{width:l,height:f,minWidth:h,minHeight:d,maxHeight:y}),ref:A},_)})),kr=function(t){return null};function Tr(t){return Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(t)}function Mr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mr(Object(r),!0).forEach((function(e){Cr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Cr(t,e,r){var n;return n=function(t,e){if("object"!=Tr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Tr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Tr(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}kr.displayName="Cell";var Dr={widthCache:{},cacheCount:0},Ir={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Nr="recharts_measurement_span";var Rr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||ar.isSsr)return{width:0,height:0};var r,n=(r=_r({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),o=JSON.stringify({text:t,copyStyle:n});if(Dr.widthCache[o])return Dr.widthCache[o];try{var i=document.getElementById(Nr);i||((i=document.createElement("span")).setAttribute("id",Nr),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=_r(_r({},Ir),n);Object.assign(i.style,a),i.textContent="".concat(t);var c=i.getBoundingClientRect(),u={width:c.width,height:c.height};return Dr.widthCache[o]=u,++Dr.cacheCount>2e3&&(Dr.cacheCount=0,Dr.widthCache={}),u}catch(t){return{width:0,height:0}}};function Br(t){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(t)}function Lr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return zr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zr(t,e)}(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 zr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Fr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ur(n.key),n)}}function Ur(t){var e=function(t,e){if("object"!=Br(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Br(e)?e:e+""}var Wr=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,$r=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Kr=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,qr=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Vr={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Xr=Object.keys(Vr),Hr="NaN";var Gr=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||Kr.test(r)||(this.num=NaN,this.unit=""),Xr.includes(r)&&(this.num=function(t,e){return t*Vr[e]}(e,r),this.unit="px")}return e=t,n=[{key:"parse",value:function(e){var r,n=Lr(null!==(r=qr.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&Fr(e.prototype,r),n&&Fr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();function Yr(t){if(t.includes(Hr))return Hr;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Lr(null!==(r=Wr.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=Gr.parse(null!=o?o:""),u=Gr.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return Hr;e=e.replace(Wr,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Lr(null!==(s=$r.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],d=f[3],y=Gr.parse(null!=p?p:""),v=Gr.parse(null!=d?d:""),m="+"===h?y.add(v):y.subtract(v);if(m.isNaN())return Hr;e=e.replace($r,m.toString())}return e}var Zr=/\(([^()]*)\)/;function Jr(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Lr(Zr.exec(e),2)[1];e=e.replace(Zr,Yr(r))}return e}(e),e=Yr(e)}function Qr(t){var e=function(t){try{return Jr(t)}catch(t){return Hr}}(t.slice(5,-1));return e===Hr?"":e}var tn=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],en=["dx","dy","angle","className","breakAll"];function rn(){return rn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rn.apply(this,arguments)}function nn(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function on(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return an(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return an(t,e)}(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 an(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var cn=/[ \f\n\r\t\v\u2028\u2029]+/,un=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return s()(e)||(o=r?e.toString().split(""):e.toString().split(cn)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:Rr(t,n).width}})),spaceWidth:r?0:Rr(" ",n).width}}catch(t){return null}},ln=function(t){return[{words:s()(t)?[]:t.toString().split(cn)}]},sn=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!ar.isSsr){var c=un({breakAll:i,children:n,style:o});return c?function(t,e,r,n,o){var i=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=S(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};t.push(u)}return t}),[])},p=f(e);if(!l)return p;for(var h,d=function(t){var e=s.slice(0,t),r=un({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var b=Math.floor((y+v)/2),g=on(d(b-1),2),x=g[0],O=g[1],w=on(d(b),1)[0];if(x||w||(y=b+1),x&&w&&(v=b-1),!x&&w){h=O;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):ln(n)}return ln(n)},fn="#808080",pn=function(t){var n=t.x,i=void 0===n?0:n,a=t.y,c=void 0===a?0:a,u=t.lineHeight,l=void 0===u?"1em":u,s=t.capHeight,f=void 0===s?"0.71em":s,p=t.scaleToFit,h=void 0!==p&&p,d=t.textAnchor,y=void 0===d?"start":d,v=t.verticalAnchor,m=void 0===v?"end":v,b=t.fill,g=void 0===b?fn:b,x=nn(t,tn),O=(0,e.useMemo)((function(){return sn({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:h,style:x.style,width:x.width})}),[x.breakAll,x.children,x.maxLines,h,x.style,x.width]),w=x.dx,j=x.dy,P=x.angle,E=x.className,k=x.breakAll,T=nn(x,en);if(!A(i)||!A(c))return null;var M,_=i+(S(w)?w:0),C=c+(S(j)?j:0);switch(m){case"start":M=Qr("calc(".concat(f,")"));break;case"middle":M=Qr("calc(".concat((O.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:M=Qr("calc(".concat(O.length-1," * -").concat(l,")"))}var D=[];if(h){var I=O[0].width,N=x.width;D.push("scale(".concat((S(N)?N/I:1)/I,")"))}return P&&D.push("rotate(".concat(P,", ").concat(_,", ").concat(C,")")),D.length&&(T.transform=D.join(" ")),r().createElement("text",rn({},rt(T,!0),{x:_,y:C,className:o("recharts-text",E),textAnchor:y,fill:g.includes("url")?fn:g}),O.map((function(t,e){var n=t.words.join(k?"":" ");return r().createElement("tspan",{x:_,dy:0===e?M:l,key:"".concat(n,"-").concat(e)},n)})))};function hn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function dn(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 yn extends Map{constructor(t,e=gn){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(vn(this,t))}has(t){return super.has(vn(this,t))}set(t,e){return super.set(mn(this,t),e)}delete(t){return super.delete(bn(this,t))}}Set;function vn({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function mn({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function bn({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function gn(t){return null!==t&&"object"==typeof t?t.valueOf():t}const xn=Symbol("implicit");function On(){var t=new yn,e=[],r=[],n=xn;function o(o){let i=t.get(o);if(void 0===i){if(n!==xn)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new yn;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return On(e,r).unknown(n)},hn.apply(o,arguments),o}function wn(){var t,e,r=On().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(h-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map((function(e){return p+t*e}));return o(f?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return wn(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},hn.apply(f(),arguments)}function jn(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return jn(e())},t}function Sn(){return jn(wn.apply(null,arguments).paddingInner(1))}const An=Math.sqrt(50),Pn=Math.sqrt(10),En=Math.sqrt(2);function kn(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=An?10:i>=Pn?5:i>=En?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?kn(t,e,2*r):[c,u,l]}function Tn(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?kn(e,t,r):kn(t,e,r);if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(i-t)/-a;else for(let t=0;t<c;++t)u[t]=(i-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(o+t)/-a;else for(let t=0;t<c;++t)u[t]=(o+t)*a;return u}function Mn(t,e,r){return kn(t=+t,e=+e,r=+r)[2]}function _n(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Mn(e,t,r):Mn(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function Cn(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Dn(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function In(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=Cn,r=(e,r)=>Cn(t(e),r),n=(e,r)=>t(e)-r):(e=t===Cn||t===Dn?t:Nn,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function Nn(){return 0}function Rn(t){return null===t?NaN:+t}const Bn=In(Cn),Ln=Bn.right,zn=(Bn.left,In(Rn).center,Ln);function Fn(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Un(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Wn(){}var $n=.7,Kn=1/$n,qn="\\s*([+-]?\\d+)\\s*",Vn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hn=/^#([0-9a-f]{3,8})$/,Gn=new RegExp(`^rgb\\(${qn},${qn},${qn}\\)$`),Yn=new RegExp(`^rgb\\(${Xn},${Xn},${Xn}\\)$`),Zn=new RegExp(`^rgba\\(${qn},${qn},${qn},${Vn}\\)$`),Jn=new RegExp(`^rgba\\(${Xn},${Xn},${Xn},${Vn}\\)$`),Qn=new RegExp(`^hsl\\(${Vn},${Xn},${Xn}\\)$`),to=new RegExp(`^hsla\\(${Vn},${Xn},${Xn},${Vn}\\)$`),eo={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 ro(){return this.rgb().formatHex()}function no(){return this.rgb().formatRgb()}function oo(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Hn.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?io(e):3===r?new uo(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?ao(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?ao(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=Gn.exec(t))?new uo(e[1],e[2],e[3],1):(e=Yn.exec(t))?new uo(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Zn.exec(t))?ao(e[1],e[2],e[3],e[4]):(e=Jn.exec(t))?ao(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Qn.exec(t))?yo(e[1],e[2]/100,e[3]/100,1):(e=to.exec(t))?yo(e[1],e[2]/100,e[3]/100,e[4]):eo.hasOwnProperty(t)?io(eo[t]):"transparent"===t?new uo(NaN,NaN,NaN,0):null}function io(t){return new uo(t>>16&255,t>>8&255,255&t,1)}function ao(t,e,r,n){return n<=0&&(t=e=r=NaN),new uo(t,e,r,n)}function co(t,e,r,n){return 1===arguments.length?((o=t)instanceof Wn||(o=oo(o)),o?new uo((o=o.rgb()).r,o.g,o.b,o.opacity):new uo):new uo(t,e,r,null==n?1:n);var o}function uo(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function lo(){return`#${ho(this.r)}${ho(this.g)}${ho(this.b)}`}function so(){const t=fo(this.opacity);return`${1===t?"rgb(":"rgba("}${po(this.r)}, ${po(this.g)}, ${po(this.b)}${1===t?")":`, ${t})`}`}function fo(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function po(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ho(t){return((t=po(t))<16?"0":"")+t.toString(16)}function yo(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new mo(t,e,r,n)}function vo(t){if(t instanceof mo)return new mo(t.h,t.s,t.l,t.opacity);if(t instanceof Wn||(t=oo(t)),!t)return new mo;if(t instanceof mo)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(r-n)/c+6*(r<n):r===i?(n-e)/c+2:(e-r)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new mo(a,c,u,t.opacity)}function mo(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function bo(t){return(t=(t||0)%360)<0?t+360:t}function go(t){return Math.max(0,Math.min(1,t||0))}function xo(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function Oo(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}Fn(Wn,oo,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ro,formatHex:ro,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vo(this).formatHsl()},formatRgb:no,toString:no}),Fn(uo,co,Un(Wn,{brighter(t){return t=null==t?Kn:Math.pow(Kn,t),new uo(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?$n:Math.pow($n,t),new uo(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new uo(po(this.r),po(this.g),po(this.b),fo(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:lo,formatHex:lo,formatHex8:function(){return`#${ho(this.r)}${ho(this.g)}${ho(this.b)}${ho(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:so,toString:so})),Fn(mo,(function(t,e,r,n){return 1===arguments.length?vo(t):new mo(t,e,r,null==n?1:n)}),Un(Wn,{brighter(t){return t=null==t?Kn:Math.pow(Kn,t),new mo(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?$n:Math.pow($n,t),new mo(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,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new uo(xo(t>=240?t-240:t+120,o,n),xo(t,o,n),xo(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new mo(bo(this.h),go(this.s),go(this.l),fo(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=fo(this.opacity);return`${1===t?"hsl(":"hsla("}${bo(this.h)}, ${100*go(this.s)}%, ${100*go(this.l)}%${1===t?")":`, ${t})`}`}}));const wo=t=>()=>t;function jo(t,e){return function(r){return t+r*e}}function So(t){return 1==(t=+t)?Ao:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):wo(isNaN(e)?r:e)}}function Ao(t,e){var r=e-t;return r?jo(t,r):wo(isNaN(t)?e:t)}const Po=function t(e){var r=So(e);function n(t,e){var n=r((t=co(t)).r,(e=co(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=Ao(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Eo(t){return function(e){var r,n,o=e.length,i=new Array(o),a=new Array(o),c=new Array(o);for(r=0;r<o;++r)n=co(e[r]),i[r]=n.r||0,a[r]=n.g||0,c[r]=n.b||0;return i=t(i),a=t(a),c=t(c),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=c(t),n+""}}}Eo((function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,c=n<e-1?t[n+2]:2*i-o;return Oo((r-n/e)*e,a,o,i,c)}})),Eo((function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),o=t[(n+e-1)%e],i=t[n%e],a=t[(n+1)%e],c=t[(n+2)%e];return Oo((r-n/e)*e,o,i,a,c)}}));function ko(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=Ro(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function To(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Mo(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function _o(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=Ro(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var Co=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Do=new RegExp(Co.source,"g");function Io(t,e){var r,n,o,i=Co.lastIndex=Do.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=Co.exec(t))&&(n=Do.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:Mo(r,n)})),i=Do.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function No(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function Ro(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?wo(e):("number"===o?Mo:"string"===o?(r=oo(e))?(e=r,Po):Io:e instanceof oo?Po:e instanceof Date?To:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?ko:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?_o:Mo:No))(t,e)}function Bo(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Lo(t){return+t}var zo=[0,1];function Fo(t){return t}function Uo(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function Wo(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=Uo(o,n),i=r(a,i)):(n=Uo(n,o),i=r(i,a)),function(t){return i(n(t))}}function $o(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=Uo(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=zn(t,e,1,n)-1;return i[r](o[r](e))}}function Ko(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function qo(){var t,e,r,n,o,i,a=zo,c=zo,u=Ro,l=Fo;function s(){var t=Math.min(a.length,c.length);return l!==Fo&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?$o:Wo,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(c,a.map(t),Mo)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Lo),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=Bo,s()},f.clamp=function(t){return arguments.length?(l=!!t||Fo,s()):l!==Fo},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function Vo(){return qo()(Fo,Fo)}var Xo,Ho=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Go(t){if(!(e=Ho.exec(t)))throw new Error("invalid format: "+t);var e;return new Yo({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 Yo(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 Zo(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Jo(t){return(t=Zo(Math.abs(t)))?t[1]:NaN}function Qo(t,e){var r=Zo(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}Go.prototype=Yo.prototype,Yo.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 ti={"%":(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)=>Qo(100*t,e),r:Qo,s:function(t,e){var r=Zo(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Xo=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Zo(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ei(t){return t}var ri,ni,oi,ii=Array.prototype.map,ai=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ci(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?ei:(e=ii.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?ei:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ii.call(t.numerals,String)),u=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=Go(t)).fill,r=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,m=t.trim,b=t.type;"n"===b?(y=!0,b="g"):ti[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var g="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===p?i:/[%p]/.test(b)?u:"",O=ti[b],w=/[defgprs%]/.test(b);function j(t){var o,i,u,p=g,j=x;if("c"===b)j=O(t)+j,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:O(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==f&&(S=!1),p=(S?"("===f?f:l:"-"===f||"("===f?"":f)+p,j=("s"===b?ai[8+Xo/3]:"")+j+(S&&"("===f?")":""),w)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){j=(46===u?a+t.slice(o+1):t.slice(o))+j,t=t.slice(0,o);break}}y&&!h&&(t=n(t,1/0));var A=p.length+t.length+j.length,P=A<d?new Array(d-A+1).join(e):"";switch(y&&h&&(t=n(P+t,P.length?d-j.length:1/0),P=""),r){case"<":t=p+t+j+P;break;case"=":t=p+P+t+j;break;case"^":t=P.slice(0,A=P.length>>1)+p+t+j+P.slice(A);break;default:t=P+p+t+j}return c(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return t+""},j}return{format:f,formatPrefix:function(t,e){var r=f(((t=Go(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Jo(e)/3))),o=Math.pow(10,-n),i=ai[8+n/3];return function(t){return r(o*t)+i}}}}function ui(t,e,r,n){var o,i=_n(t,e,r);switch((n=Go(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Jo(e)/3)))-Jo(Math.abs(t)))}(i,a))||(n.precision=o),oi(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Jo(e)-Jo(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-Jo(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return ni(n)}function li(t){var e=t.domain;return t.ticks=function(t){var r=e();return Tn(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return ui(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,c=i.length-1,u=i[a],l=i[c],s=10;for(l<u&&(o=u,u=l,l=o,o=a,a=c,c=o);s-- >0;){if((o=Mn(u,l,r))===n)return i[a]=u,i[c]=l,e(i);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function si(){var t=Vo();return t.copy=function(){return Ko(t,si())},hn.apply(t,arguments),li(t)}function fi(t){var e;function r(t){return null==t||isNaN(t=+t)?e:t}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,Lo),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return fi(t).unknown(e)},t=arguments.length?Array.from(t,Lo):[0,1],li(r)}function pi(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function hi(t){return Math.log(t)}function di(t){return Math.exp(t)}function yi(t){return-Math.log(-t)}function vi(t){return-Math.exp(-t)}function mi(t){return isFinite(t)?+("1e"+t):t<0?0:t}function bi(t){return(e,r)=>-t(-e,r)}function gi(t){const e=t(hi,di),r=e.domain;let n,o,i=10;function a(){return n=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?mi:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=bi(n),o=bi(o),t(yi,vi)):t(hi,di),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),p=n(c);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>c)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>c)break;d.push(s)}2*d.length<h&&(d=Tn(a,c,h))}else d=Tn(f,p,Math.min(p-f,h)).map(o);return u?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=Go(r)).precision||(r.trim=!0),r=ni(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(pi(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function xi(){const t=gi(qo()).domain([1,10]);return t.copy=()=>Ko(t,xi()).base(t.base()),hn.apply(t,arguments),t}function Oi(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function wi(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ji(t){var e=1,r=t(Oi(e),wi(e));return r.constant=function(r){return arguments.length?t(Oi(e=+r),wi(e)):e},li(r)}function Si(){var t=ji(qo());return t.copy=function(){return Ko(t,Si()).constant(t.constant())},hn.apply(t,arguments)}function Ai(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Pi(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Ei(t){return t<0?-t*t:t*t}function ki(t){var e=t(Fo,Fo),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Fo,Fo):.5===r?t(Pi,Ei):t(Ai(r),Ai(1/r)):r},li(e)}function Ti(){var t=ki(qo());return t.copy=function(){return Ko(t,Ti()).exponent(t.exponent())},hn.apply(t,arguments),t}function Mi(){return Ti.apply(null,arguments).exponent(.5)}function _i(t){return Math.sign(t)*t*t}function Ci(){var t,e=Vo(),r=[0,1],n=!1;function o(r){var o=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(r));return isNaN(o)?t:n?Math.round(o):o}return o.invert=function(t){return e.invert(_i(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((r=Array.from(t,Lo)).map(_i)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(n=!!t,o):n},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 Ci(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},hn.apply(o,arguments),li(o)}function Di(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function Ii(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function Ni(t=Cn){if(t===Cn)return Ri;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}function Ri(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function Bi(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?Ri:Ni(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);Bi(t,e,Math.max(r,Math.floor(e-a*u/i+l)),Math.min(n,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=r,c=n;for(Li(t,r,e),o(t[n],i)>0&&Li(t,r,n);a<c;){for(Li(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?Li(t,r,c):(++c,Li(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function Li(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function zi(t,e,r){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 r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return Ii(t);if(e>=1)return Di(t);var n,o=(n-1)*e,i=Math.floor(o),a=Di(Bi(t,i).subarray(0,i+1));return a+(Ii(t.subarray(i+1))-a)*(o-i)}}function Fi(t,e,r=Rn){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function Ui(){var t,e=[],r=[],n=[];function o(){var t=0,o=Math.max(1,r.length);for(n=new Array(o-1);++t<o;)n[t-1]=Fi(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:r[zn(n,e)]}return i.invertExtent=function(t){var o=r.indexOf(t);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Cn),o()},i.range=function(t){return arguments.length?(r=Array.from(t),o()):r.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return n.slice()},i.copy=function(){return Ui().domain(e).range(r).unknown(t)},hn.apply(i,arguments)}function Wi(){var t,e=0,r=1,n=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[zn(o,e,0,n)]:t}function c(){var t=-1;for(o=new Array(n);++t<n;)o[t]=((t+1)*r-(t-n)*e)/(n+1);return a}return a.domain=function(t){return arguments.length?([e,r]=t,e=+e,r=+r,c()):[e,r]},a.range=function(t){return arguments.length?(n=(i=Array.from(t)).length-1,c()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=n?[o[n-1],r]:[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 Wi().domain([e,r]).range(i).unknown(t)},hn.apply(li(a),arguments)}function $i(){var t,e=[.5],r=[0,1],n=1;function o(o){return null!=o&&o<=o?r[zn(e,o,0,n)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),n=Math.min(e.length,r.length-1),o):e.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),n=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return $i().domain(e).range(r).unknown(t)},hn.apply(o,arguments)}ri=ci({thousands:",",grouping:[3],currency:["$",""]}),ni=ri.format,oi=ri.formatPrefix;const Ki=1e3,qi=6e4,Vi=36e5,Xi=864e5,Hi=6048e5,Gi=2592e6,Yi=31536e6,Zi=new Date,Ji=new Date;function Qi(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),e(r,i),t(r)}while(c<r&&r<n);return a},o.filter=r=>Qi((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(o.count=(e,n)=>(Zi.setTime(+e),Ji.setTime(+n),t(Zi),t(Ji),Math.floor(r(Zi,Ji))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const ta=Qi((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));ta.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Qi((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):ta:null);ta.range;const ea=Qi((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Ki)}),((t,e)=>(e-t)/Ki),(t=>t.getUTCSeconds())),ra=(ea.range,Qi((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ki)}),((t,e)=>{t.setTime(+t+e*qi)}),((t,e)=>(e-t)/qi),(t=>t.getMinutes()))),na=(ra.range,Qi((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*qi)}),((t,e)=>(e-t)/qi),(t=>t.getUTCMinutes()))),oa=(na.range,Qi((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ki-t.getMinutes()*qi)}),((t,e)=>{t.setTime(+t+e*Vi)}),((t,e)=>(e-t)/Vi),(t=>t.getHours()))),ia=(oa.range,Qi((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Vi)}),((t,e)=>(e-t)/Vi),(t=>t.getUTCHours()))),aa=(ia.range,Qi((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*qi)/Xi),(t=>t.getDate()-1))),ca=(aa.range,Qi((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Xi),(t=>t.getUTCDate()-1))),ua=(ca.range,Qi((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Xi),(t=>Math.floor(t/Xi))));ua.range;function la(t){return Qi((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*qi)/Hi))}const sa=la(0),fa=la(1),pa=la(2),ha=la(3),da=la(4),ya=la(5),va=la(6);sa.range,fa.range,pa.range,ha.range,da.range,ya.range,va.range;function ma(t){return Qi((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Hi))}const ba=ma(0),ga=ma(1),xa=ma(2),Oa=ma(3),wa=ma(4),ja=ma(5),Sa=ma(6),Aa=(ba.range,ga.range,xa.range,Oa.range,wa.range,ja.range,Sa.range,Qi((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Pa=(Aa.range,Qi((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),Ea=(Pa.range,Qi((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));Ea.every=t=>isFinite(t=Math.floor(t))&&t>0?Qi((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null;Ea.range;const ka=Qi((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));ka.every=t=>isFinite(t=Math.floor(t))&&t>0?Qi((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null;ka.range;function Ta(t,e,r,n,o,i){const a=[[ea,1,Ki],[ea,5,5e3],[ea,15,15e3],[ea,30,3e4],[i,1,qi],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Vi],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,Xi],[n,2,1728e5],[r,1,Hi],[e,1,Gi],[e,3,7776e6],[t,1,Yi]];function c(e,r,n){const o=Math.abs(r-e)/n,i=In((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(_n(e/Yi,r/Yi,n));if(0===i)return ta.every(Math.max(_n(e,r,n),1));const[c,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:c(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},c]}const[Ma,_a]=Ta(ka,Pa,ba,ua,ia,na),[Ca,Da]=Ta(Ea,Aa,sa,aa,oa,ra);function Ia(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 Na(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 Ra(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Ba,La,za,Fa={"-":"",_:" ",0:"0"},Ua=/^\s*\d+/,Wa=/^%/,$a=/[\\^$*+?|[\]().{}]/g;function Ka(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function qa(t){return t.replace($a,"\\$&")}function Va(t){return new RegExp("^(?:"+t.map(qa).join("|")+")","i")}function Xa(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Ha(t,e,r){var n=Ua.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Ga(t,e,r){var n=Ua.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Ya(t,e,r){var n=Ua.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Za(t,e,r){var n=Ua.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Ja(t,e,r){var n=Ua.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Qa(t,e,r){var n=Ua.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function tc(t,e,r){var n=Ua.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function ec(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function rc(t,e,r){var n=Ua.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function nc(t,e,r){var n=Ua.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function oc(t,e,r){var n=Ua.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ic(t,e,r){var n=Ua.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function ac(t,e,r){var n=Ua.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function cc(t,e,r){var n=Ua.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function uc(t,e,r){var n=Ua.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function lc(t,e,r){var n=Ua.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function sc(t,e,r){var n=Ua.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fc(t,e,r){var n=Wa.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function pc(t,e,r){var n=Ua.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function hc(t,e,r){var n=Ua.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function dc(t,e){return Ka(t.getDate(),e,2)}function yc(t,e){return Ka(t.getHours(),e,2)}function vc(t,e){return Ka(t.getHours()%12||12,e,2)}function mc(t,e){return Ka(1+aa.count(Ea(t),t),e,3)}function bc(t,e){return Ka(t.getMilliseconds(),e,3)}function gc(t,e){return bc(t,e)+"000"}function xc(t,e){return Ka(t.getMonth()+1,e,2)}function Oc(t,e){return Ka(t.getMinutes(),e,2)}function wc(t,e){return Ka(t.getSeconds(),e,2)}function jc(t){var e=t.getDay();return 0===e?7:e}function Sc(t,e){return Ka(sa.count(Ea(t)-1,t),e,2)}function Ac(t){var e=t.getDay();return e>=4||0===e?da(t):da.ceil(t)}function Pc(t,e){return t=Ac(t),Ka(da.count(Ea(t),t)+(4===Ea(t).getDay()),e,2)}function Ec(t){return t.getDay()}function kc(t,e){return Ka(fa.count(Ea(t)-1,t),e,2)}function Tc(t,e){return Ka(t.getFullYear()%100,e,2)}function Mc(t,e){return Ka((t=Ac(t)).getFullYear()%100,e,2)}function _c(t,e){return Ka(t.getFullYear()%1e4,e,4)}function Cc(t,e){var r=t.getDay();return Ka((t=r>=4||0===r?da(t):da.ceil(t)).getFullYear()%1e4,e,4)}function Dc(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ka(e/60|0,"0",2)+Ka(e%60,"0",2)}function Ic(t,e){return Ka(t.getUTCDate(),e,2)}function Nc(t,e){return Ka(t.getUTCHours(),e,2)}function Rc(t,e){return Ka(t.getUTCHours()%12||12,e,2)}function Bc(t,e){return Ka(1+ca.count(ka(t),t),e,3)}function Lc(t,e){return Ka(t.getUTCMilliseconds(),e,3)}function zc(t,e){return Lc(t,e)+"000"}function Fc(t,e){return Ka(t.getUTCMonth()+1,e,2)}function Uc(t,e){return Ka(t.getUTCMinutes(),e,2)}function Wc(t,e){return Ka(t.getUTCSeconds(),e,2)}function $c(t){var e=t.getUTCDay();return 0===e?7:e}function Kc(t,e){return Ka(ba.count(ka(t)-1,t),e,2)}function qc(t){var e=t.getUTCDay();return e>=4||0===e?wa(t):wa.ceil(t)}function Vc(t,e){return t=qc(t),Ka(wa.count(ka(t),t)+(4===ka(t).getUTCDay()),e,2)}function Xc(t){return t.getUTCDay()}function Hc(t,e){return Ka(ga.count(ka(t)-1,t),e,2)}function Gc(t,e){return Ka(t.getUTCFullYear()%100,e,2)}function Yc(t,e){return Ka((t=qc(t)).getUTCFullYear()%100,e,2)}function Zc(t,e){return Ka(t.getUTCFullYear()%1e4,e,4)}function Jc(t,e){var r=t.getUTCDay();return Ka((t=r>=4||0===r?wa(t):wa.ceil(t)).getUTCFullYear()%1e4,e,4)}function Qc(){return"+0000"}function tu(){return"%"}function eu(t){return+t}function ru(t){return Math.floor(+t/1e3)}function nu(t){return new Date(t)}function ou(t){return t instanceof Date?+t:+new Date(+t)}function iu(t,e,r,n,o,i,a,c,u,l){var s=Vo(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),x=l("%Y");function O(t){return(u(t)<t?h:c(t)<t?d:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?m:b:r(t)<t?g:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,ou)):p().map(nu)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?O:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(pi(r,t)):s},s.copy=function(){return Ko(s,iu(t,e,r,n,o,i,a,c,u,l))},s}function au(){return hn.apply(iu(Ca,Da,Ea,Aa,sa,aa,oa,ra,ea,La).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function cu(){return hn.apply(iu(Ma,_a,ka,Pa,ba,ca,ia,na,ea,za).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function uu(){var t,e,r,n,o,i=0,a=1,c=Fo,u=!1;function l(e){return null==e||isNaN(e=+e)?o:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(Ro),l.rangeRound=s(Bo),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function lu(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function su(){var t=li(uu()(Fo));return t.copy=function(){return lu(t,su())},dn.apply(t,arguments)}function fu(){var t=gi(uu()).domain([1,10]);return t.copy=function(){return lu(t,fu()).base(t.base())},dn.apply(t,arguments)}function pu(){var t=ji(uu());return t.copy=function(){return lu(t,pu()).constant(t.constant())},dn.apply(t,arguments)}function hu(){var t=ki(uu());return t.copy=function(){return lu(t,hu()).exponent(t.exponent())},dn.apply(t,arguments)}function du(){return hu.apply(null,arguments).exponent(.5)}function yu(){var t=[],e=Fo;function r(r){if(null!=r&&!isNaN(r=+r))return e((zn(t,r,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(Cn),r},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.range=function(){return t.map(((r,n)=>e(n/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((r,n)=>zi(t,n/e)))},r.copy=function(){return yu(e).domain(t)},dn.apply(r,arguments)}function vu(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=Fo,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=function(t,e){void 0===e&&(e=t,t=Ro);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([c,u,l]=a,t=i(c=+c),e=i(u=+u),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[c,u,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(Ro),h.rangeRound=d(Bo),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function mu(){var t=li(vu()(Fo));return t.copy=function(){return lu(t,mu())},dn.apply(t,arguments)}function bu(){var t=gi(vu()).domain([.1,1,10]);return t.copy=function(){return lu(t,bu()).base(t.base())},dn.apply(t,arguments)}function gu(){var t=ji(vu());return t.copy=function(){return lu(t,gu()).constant(t.constant())},dn.apply(t,arguments)}function xu(){var t=ki(vu());return t.copy=function(){return lu(t,xu()).exponent(t.exponent())},dn.apply(t,arguments)}function Ou(){return xu.apply(null,arguments).exponent(.5)}function wu(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}!function(t){Ba=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=Va(o),s=Xa(o),f=Va(i),p=Xa(i),h=Va(a),d=Xa(a),y=Va(c),v=Xa(c),m=Va(u),b=Xa(u),g={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:dc,e:dc,f:gc,g:Mc,G:Cc,H:yc,I:vc,j:mc,L:bc,m:xc,M:Oc,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:eu,s:ru,S:wc,u:jc,U:Sc,V:Pc,w:Ec,W:kc,x:null,X:null,y:Tc,Y:_c,Z:Dc,"%":tu},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:Ic,e:Ic,f:zc,g:Yc,G:Jc,H:Nc,I:Rc,j:Bc,L:Lc,m:Fc,M:Uc,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:eu,s:ru,S:Wc,u:$c,U:Kc,V:Vc,w:Xc,W:Hc,x:null,X:null,y:Gc,Y:Zc,Z:Qc,"%":tu},O={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return S(t,e,r,n)},d:oc,e:oc,f:sc,g:tc,G:Qa,H:ac,I:ac,j:ic,L:lc,m:nc,M:cc,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:rc,Q:pc,s:hc,S:uc,u:Ga,U:Ya,V:Za,w:Ha,W:Ja,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:tc,Y:Qa,Z:ec,"%":fc};function w(t,e){return function(r){var n,o,i,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=Fa[n=t.charAt(++c)])?n=t.charAt(++c):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function j(t,e){return function(r){var n,o,i=Ra(1900,void 0,1);if(S(i,t,r+="",0)!=r.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=(n=Na(Ra(i.y,0,1))).getUTCDay(),n=o>4||0===o?ga.ceil(n):ga(n),n=ca.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=Ia(Ra(i.y,0,1))).getDay(),n=o>4||0===o?fa.ceil(n):fa(n),n=aa.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.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?Na(Ra(i.y,0,1)).getUTCDay():Ia(Ra(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,Na(i)):Ia(i)}}function S(t,e,r,n){for(var o,i,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=O[o in Fa?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return g.x=w(r,g),g.X=w(n,g),g.c=w(e,g),x.x=w(r,x),x.X=w(n,x),x.c=w(e,x),{format:function(t){var e=w(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}(t),La=Ba.format,Ba.parse,za=Ba.utcFormat,Ba.utcParse}({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"]});Array.prototype.slice;function ju(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Su(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Au(t,e){return t[e]}function Pu(t){const e=[];return e.key=t,e}var Eu=i(4464),ku=i.n(Eu),Tu=i(4044),Mu=i.n(Tu),_u=i(7440),Cu=i.n(_u),Du=i(948),Iu=i.n(Du),Nu=i(7996),Ru=i.n(Nu);function Bu(t){return function(t){if(Array.isArray(t))return Lu(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Lu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lu(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var zu=function(t){return t},Fu={"@@functional/placeholder":!0},Uu=function(t){return t===Fu},Wu=function(t){return function e(){return 0===arguments.length||1===arguments.length&&Uu(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},$u=function t(e,r){return 1===e?r:Wu((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==Fu})).length;return a>=e?r.apply(void 0,o):t(e-a,Wu((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map((function(t){return Uu(t)?e.shift():t}));return r.apply(void 0,Bu(i).concat(e))})))}))},Ku=function(t){return $u(t.length,t)},qu=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},Vu=Ku((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),Xu=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return zu;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},Hu=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Gu=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every((function(t,r){return t===e[r]}))?r:(e=o,r=t.apply(void 0,o))}};var Yu=Ku((function(t,e,r){var n=+t;return n+r*(+e-n)})),Zu=Ku((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),Ju=Ku((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))}));const Qu={rangeStep:function(t,e,r){for(var n=new(Ru())(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new(Ru())(t).abs().log(10).toNumber())+1},interpolateNumber:Yu,uninterpolateNumber:Zu,uninterpolateTruncation:Ju};function tl(t){return function(t){if(Array.isArray(t))return nl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||rl(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 el(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(t,e)||rl(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 rl(t,e){if(t){if("string"==typeof t)return nl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nl(t,e):void 0}}function nl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ol(t){var e=el(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function il(t,e,r){if(t.lte(0))return new(Ru())(0);var n=Qu.getDigitCount(t.toNumber()),o=new(Ru())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new(Ru())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new(Ru())(Math.ceil(c))}function al(t,e,r){var n=1,o=new(Ru())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(Ru())(10).pow(Qu.getDigitCount(t)-1),o=new(Ru())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(Ru())(Math.floor(t)))}else 0===t?o=new(Ru())(Math.floor((e-1)/2)):r||(o=new(Ru())(Math.floor(t)));var a=Math.floor((e-1)/2);return Xu(Vu((function(t){return o.add(new(Ru())(t-a).mul(n)).toNumber()})),qu)(0,e)}function cl(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new(Ru())(0),tickMin:new(Ru())(0),tickMax:new(Ru())(0)};var i,a=il(new(Ru())(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new(Ru())(0):(i=new(Ru())(t).add(e).div(2)).sub(new(Ru())(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new(Ru())(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?cl(t,e,r,n,o+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:i.sub(new(Ru())(c).mul(a)),tickMax:i.add(new(Ru())(u).mul(a))})}var ul=Gu((function(t){var e=el(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=el(ol([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(tl(qu(0,o-1).map((function(){return 1/0})))):[].concat(tl(qu(0,o-1).map((function(){return-1/0}))),[l]);return r>n?Hu(s):s}if(u===l)return al(u,o,i);var f=cl(u,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=Qu.rangeStep(h,d.add(new(Ru())(.1).mul(p)),p);return r>n?Hu(y):y})),ll=(Gu((function(t){var e=el(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=el(ol([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0)return[r,n];if(u===l)return al(u,o,i);var s=il(new(Ru())(l).sub(u).div(a-1),i,0),f=Xu(Vu((function(t){return new(Ru())(u).add(new(Ru())(t).mul(s)).toNumber()})),qu)(0,a).filter((function(t){return t>=u&&t<=l}));return r>n?Hu(f):f})),Gu((function(t,e){var r=el(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=el(ol([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=Math.max(e,2),s=il(new(Ru())(u).sub(c).div(l-1),i,0),f=[].concat(tl(Qu.rangeStep(new(Ru())(c),new(Ru())(u).sub(new(Ru())(.99).mul(s)),s)),[u]);return n>o?Hu(f):f}))),sl="Invariant failed";function fl(t,e){if(!t)throw new Error(sl)}var pl=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function hl(t){return hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(t)}function dl(){return dl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},dl.apply(this,arguments)}function yl(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return vl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vl(t,e)}(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 vl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ml(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function bl(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Sl(n.key),n)}}function gl(t,e,r){return e=Ol(e),function(t,e){if(e&&("object"===hl(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)}(t,xl()?Reflect.construct(e,r||[],Ol(t).constructor):e.apply(t,r))}function xl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xl=function(){return!!t})()}function Ol(t){return Ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ol(t)}function wl(t,e){return wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wl(t,e)}function jl(t,e,r){return(e=Sl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sl(t){var e=function(t,e){if("object"!=hl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=hl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hl(e)?e:e+""}var Al=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),gl(this,e,arguments)}return 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&&wl(t,e)}(e,t),n=e,o=[{key:"render",value:function(){var t=this.props,e=t.offset,n=t.layout,o=t.width,i=t.dataKey,a=t.data,c=t.dataPointFormatter,u=t.xAxis,l=t.yAxis,s=ml(t,pl),f=rt(s,!1);"x"===this.props.direction&&"number"!==u.type&&fl(!1);var p=a.map((function(t){var a=c(t,i),s=a.x,p=a.y,h=a.value,d=a.errorVal;if(!d)return null;var y,v,m=[];if(Array.isArray(d)){var b=yl(d,2);y=b[0],v=b[1]}else y=v=d;if("vertical"===n){var g=u.scale,x=p+e,O=x+o,w=x-o,j=g(h-y),S=g(h+v);m.push({x1:S,y1:O,x2:S,y2:w}),m.push({x1:j,y1:x,x2:S,y2:x}),m.push({x1:j,y1:O,x2:j,y2:w})}else if("horizontal"===n){var A=l.scale,P=s+e,E=P-o,k=P+o,T=A(h-y),M=A(h+v);m.push({x1:E,y1:M,x2:k,y2:M}),m.push({x1:P,y1:T,x2:P,y2:M}),m.push({x1:E,y1:T,x2:k,y2:T})}return r().createElement(ht,dl({className:"recharts-errorBar",key:"bar-".concat(m.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},f),m.map((function(t){return r().createElement("line",dl({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return r().createElement(ht,{className:"recharts-errorBars"},p)}}],o&&bl(n.prototype,o),i&&bl(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r().Component);function Pl(t){return Pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pl(t)}function El(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?El(Object(r),!0).forEach((function(e){Tl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):El(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tl(t,e,r){var n;return n=function(t,e){if("object"!=Pl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Pl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Pl(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}jl(Al,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),jl(Al,"displayName","ErrorBar");var Ml=function(t){var e=t.children,r=t.formattedGraphicalItems,n=t.legendWidth,o=t.legendContent,i=Y(e,_e);if(!i)return null;var a,c=_e.defaultProps,u=void 0!==c?kl(kl({},c),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(r||[]).reduce((function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map((function(t){return{type:i.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?kl(kl({},r),e.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:u.iconType||a||"square",color:zl(e),value:i||o,payload:n}})),kl(kl(kl({},u),_e.getWithHeight(i,n)),{},{payload:a,item:i})};function _l(t){return _l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(t)}function Cl(t){return function(t){if(Array.isArray(t))return Dl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Dl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dl(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Il(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Nl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Il(Object(r),!0).forEach((function(e){Rl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Il(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Rl(t,e,r){var n;return n=function(t,e){if("object"!=_l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==_l(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bl(t,e,r){return s()(t)||s()(e)?r:A(e)?u()(t,e,r):d()(e)?e(t):r}function Ll(t,e,r,n){var o=Cu()(t,(function(t){return Bl(t,e)}));if("number"===r){var i=o.filter((function(t){return S(t)||parseFloat(t)}));return i.length?[Mu()(i),ku()(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!s()(t)})):o).map((function(t){return A(t)||t instanceof Date?t:""}))}var zl=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?Nl(Nl({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},Fl=function(t,e,r,n,o){var i=G(e.props.children,Al).filter((function(t){return function(t,e,r){return!!s()(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=Bl(e,r);if(s()(n))return t;var o=Array.isArray(n)?[Mu()(n),ku()(n)]:[n,n],i=a.reduce((function(t,r){var n=Bl(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},Ul=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&Fl(t,e,i,n)||Ll(t,i,r,o)}));if("number"===r)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},Wl=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},$l=function(t,e,r,n){if(n)return t.map((function(t){return t.coordinate}));var o,i,a=t.map((function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate}));return o||a.push(e),i||a.push(r),a},Kl=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*w(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}})).filter((function(t){return!g()(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:o?o[t]:t,index:e,offset:u}}))},ql=new WeakMap,Vl=function(t,e){if("function"!=typeof e)return t;ql.has(t)||ql.set(t,new WeakMap);var r=ql.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},Xl=function(e,r,n){var o=e.scale,i=e.type,a=e.layout,c=e.axisType;if("auto"===o)return"radial"===a&&"radiusAxis"===c?{scale:wn(),realScaleType:"band"}:"radial"===a&&"angleAxis"===c?{scale:si(),realScaleType:"linear"}:"category"===i&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Sn(),realScaleType:"point"}:"category"===i?{scale:wn(),realScaleType:"band"}:{scale:si(),realScaleType:"linear"};if(p()(o)){var u="scale".concat(vt()(o));return{scale:(t[u]||Sn)(),realScaleType:t[u]?u:"point"}}return d()(o)?{scale:o}:{scale:Sn(),realScaleType:"point"}},Hl=1e-4,Gl=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-Hl,i=Math.max(n[0],n[1])+Hl,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}},Yl=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null},Zl=function(t,e){if(!e||2!==e.length||!S(e[0])||!S(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!S(t[0])||t[0]<r)&&(o[0]=r),(!S(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o},Jl={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var c=g()(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}wu(t,e)}},none:wu,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}wu(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<o;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<c;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=l/u)}r[a-1][1]+=r[a-1][0]=i,wu(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=g()(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},Ql=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=Jl[r],i=function(){var t=zt([]),e=Su,r=wu,n=Au;function o(o){var i,a,c=Array.from(t.apply(this,arguments),Pu),u=c.length,l=-1;for(const t of o)for(i=0,++l;i<u;++i)(c[i][l]=[0,+n(t,c[i].key,l,o)]).data=t;for(i=0,a=ju(e(c));i<u;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:zt(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:zt(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?Su:"function"==typeof t?t:zt(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?wu:t,o):r},o}().keys(n).value((function(t,e){return+Bl(t,e,0)})).order(Su).offset(o);return i(t)},ts=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var l=ul(u,o,a);return t.domain([Mu()(l),ku()(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:ll(s,o,a)}}return null};function es(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!s()(o[e.dataKey])){var c=_(r,"value",o[e.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=Bl(o,s()(a)?e.dataKey:a);return s()(u)?null:e.scale(u)}var rs=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=Bl(i,e.dataKey,e.domain[a]);return s()(c)?null:e.scale(c)-o/2+n},ns=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]},os=function(t,e,r){return Object.keys(t).reduce((function(n,o){var i=t[o].stackedData.reduce((function(t,n){var o=n.slice(e,r+1).reduce((function(t,e){return[Mu()(e.concat([t[0]]).filter(S)),ku()(e.concat([t[1]]).filter(S))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},is=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,as=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cs=function(t,e,r){if(d()(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(S(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(is.test(t[0])){var o=+is.exec(t[0])[1];n[0]=e[0]-o}else d()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(S(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(as.test(t[1])){var i=+as.exec(t[1])[1];n[1]=e[1]+i}else d()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},us=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=De()(e,(function(t){return t.coordinate})),i=1/0,a=1,c=o.length;a<c;a++){var u=o[a],l=o[a-1];i=Math.min((u.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},ls=function(t,e,r){return t&&t.length?Iu()(t,u()(r,"type.defaultProps.domain"))?e:t:e},ss=function(t,e){var r=t.type.defaultProps?Nl(Nl({},t.type.defaultProps),t.props):t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return Nl(Nl({},rt(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:zl(t),value:Bl(e,n),type:c,payload:e,chartType:u,hide:l})};function fs(t){return fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fs(t)}function ps(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ps(Object(r),!0).forEach((function(e){ds(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ps(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ds(t,e,r){var n;return n=function(t,e){if("object"!=fs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==fs(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ys(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return vs(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vs(t,e)}(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 vs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ms=Math.PI/180,bs=function(t){return 180*t/Math.PI},gs=function(t,e,r,n){return{x:t+Math.cos(-ms*n)*r,y:e+Math.sin(-ms*n)*r}},xs=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(e-(r.top||0)-(r.bottom||0)))/2},Os=function(t,e,r,n,o){var i=t.width,a=t.height,c=t.startAngle,u=t.endAngle,l=k(t.cx,i,i/2),f=k(t.cy,a,a/2),p=xs(i,a,r),h=k(t.innerRadius,p,0),d=k(t.outerRadius,p,.8*p);return Object.keys(e).reduce((function(t,r){var i,a=e[r],p=a.domain,y=a.reversed;if(s()(a.range))"angleAxis"===n?i=[c,u]:"radiusAxis"===n&&(i=[h,d]),y&&(i=[i[1],i[0]]);else{var v=ys(i=a.range,2);c=v[0],u=v[1]}var m=Xl(a,o),b=m.realScaleType,g=m.scale;g.domain(p).range(i),Gl(g);var x=ts(g,hs(hs({},a),{},{realScaleType:b})),O=hs(hs(hs({},a),x),{},{range:i,radius:d,realScaleType:b,scale:g,cx:l,cy:f,innerRadius:h,outerRadius:d,startAngle:c,endAngle:u});return hs(hs({},t),{},ds({},r,O))}),{})},ws=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,u=Math.acos(c);return n>i&&(u=2*Math.PI-u),{radius:a,angle:bs(u),angleInRadian:u}},js=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},Ss=function(t,e){var r=t.x,n=t.y,o=ws({x:r,y:n},e),i=o.radius,a=o.angle,c=e.innerRadius,u=e.outerRadius;if(i<c||i>u)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;l=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;l=h>=p&&h<=f}return l?hs(hs({},e),{},{radius:i,angle:js(h,e)}):null},As=function(t){return(0,e.isValidElement)(t)||d()(t)||"boolean"==typeof t?"":t.className};function Ps(t){return Ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ps(t)}var Es=["offset"];function ks(t){return function(t){if(Array.isArray(t))return Ts(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)return;if("string"==typeof t)return Ts(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ts(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ts(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ms(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function _s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Cs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_s(Object(r),!0).forEach((function(e){Ds(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ds(t,e,r){var n;return n=function(t,e){if("object"!=Ps(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ps(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ps(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Is(){return Is=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Is.apply(this,arguments)}var Ns=function(t){var e=t.value,r=t.formatter,n=s()(t.children)?e:t.children;return d()(r)?r(n):n},Rs=function(t,e,n){var i,a,c=t.position,u=t.viewBox,l=t.offset,f=t.className,p=u,h=p.cx,d=p.cy,y=p.innerRadius,v=p.outerRadius,m=p.startAngle,b=p.endAngle,g=p.clockWise,x=(y+v)/2,O=function(t,e){return w(e-t)*Math.min(Math.abs(e-t),360)}(m,b),j=O>=0?1:-1;"insideStart"===c?(i=m+j*l,a=g):"insideEnd"===c?(i=b-j*l,a=!g):"end"===c&&(i=b+j*l,a=g),a=O<=0?a:!a;var S=gs(h,d,x,i),A=gs(h,d,x,i+359*(a?1:-1)),P="M".concat(S.x,",").concat(S.y,"\n A").concat(x,",").concat(x,",0,1,").concat(a?0:1,",\n ").concat(A.x,",").concat(A.y),k=s()(t.id)?E("recharts-radial-line-"):t.id;return r().createElement("text",Is({},n,{dominantBaseline:"central",className:o("recharts-radial-bar-label",f)}),r().createElement("defs",null,r().createElement("path",{id:k,d:P})),r().createElement("textPath",{xlinkHref:"#".concat(k)},e))},Bs=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=gs(i,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=gs(i,a,(c+u)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},Ls=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,c=i.y,u=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",d=u>=0?1:-1,y=d*n,m=d>0?"end":"start",b=d>0?"start":"end";if("top"===o)return Cs(Cs({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===o)return Cs(Cs({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var g={x:a-y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"};return Cs(Cs({},g),r?{width:Math.max(g.x-r.x,0),height:l}:{})}if("right"===o){var x={x:a+u+y,y:c+l/2,textAnchor:b,verticalAnchor:"middle"};return Cs(Cs({},x),r?{width:Math.max(r.x+r.width-x.x,0),height:l}:{})}var O=r?{width:u,height:l}:{};return"insideLeft"===o?Cs({x:a+y,y:c+l/2,textAnchor:b,verticalAnchor:"middle"},O):"insideRight"===o?Cs({x:a+u-y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"},O):"insideTop"===o?Cs({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:h},O):"insideBottom"===o?Cs({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},O):"insideTopLeft"===o?Cs({x:a+y,y:c+f,textAnchor:b,verticalAnchor:h},O):"insideTopRight"===o?Cs({x:a+u-y,y:c+f,textAnchor:m,verticalAnchor:h},O):"insideBottomLeft"===o?Cs({x:a+y,y:c+l-f,textAnchor:b,verticalAnchor:p},O):"insideBottomRight"===o?Cs({x:a+u-y,y:c+l-f,textAnchor:m,verticalAnchor:p},O):v()(o)&&(S(o.x)||j(o.x))&&(S(o.y)||j(o.y))?Cs({x:a+k(o.x,u),y:c+k(o.y,l),textAnchor:"end",verticalAnchor:"end"},O):Cs({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},O)},zs=function(t){return"cx"in t&&S(t.cx)};function Fs(t){var n,i=t.offset,a=Cs({offset:void 0===i?5:i},Ms(t,Es)),c=a.viewBox,u=a.position,l=a.value,f=a.children,p=a.content,h=a.className,y=void 0===h?"":h,v=a.textBreakAll;if(!c||s()(l)&&s()(f)&&!(0,e.isValidElement)(p)&&!d()(p))return null;if((0,e.isValidElement)(p))return(0,e.cloneElement)(p,a);if(d()(p)){if(n=(0,e.createElement)(p,a),(0,e.isValidElement)(n))return n}else n=Ns(a);var m=zs(c),b=rt(a,!0);if(m&&("insideStart"===u||"insideEnd"===u||"end"===u))return Rs(a,n,b);var g=m?Bs(a):Ls(a);return r().createElement(pn,Is({className:o("recharts-label",y)},b,g,{breakAll:v}),n)}Fs.displayName="Label";var Us=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,d=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(S(d)&&S(y)){if(S(s)&&S(f))return{x:s,y:f,width:d,height:y};if(S(p)&&S(h))return{x:p,y:h,width:d,height:y}}return S(s)&&S(f)?{x:s,y:f,width:0,height:0}:S(e)&&S(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};Fs.parseViewBox=Us,Fs.renderCallByParent=function(t,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=t.children,a=Us(t),c=G(i,Fs).map((function(t,r){return(0,e.cloneElement)(t,{viewBox:n||a,key:"label-".concat(r)})}));if(!o)return c;var u=function(t,n){return t?!0===t?r().createElement(Fs,{key:"label-implicit",viewBox:n}):A(t)?r().createElement(Fs,{key:"label-implicit",viewBox:n,value:t}):(0,e.isValidElement)(t)?t.type===Fs?(0,e.cloneElement)(t,{key:"label-implicit",viewBox:n}):r().createElement(Fs,{key:"label-implicit",content:t,viewBox:n}):d()(t)?r().createElement(Fs,{key:"label-implicit",content:t,viewBox:n}):v()(t)?r().createElement(Fs,Is({viewBox:n},t,{key:"label-implicit"})):null:null}(t.label,n||a);return[u].concat(ks(c))};var Ws=i(2008),$s=i.n(Ws);function Ks(t){return Ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(t)}var qs=["valueAccessor"],Vs=["data","dataKey","clockWise","id","textBreakAll"];function Xs(t){return function(t){if(Array.isArray(t))return Hs(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)return;if("string"==typeof t)return Hs(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hs(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Gs(){return Gs=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gs.apply(this,arguments)}function Ys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ys(Object(r),!0).forEach((function(e){Js(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Js(t,e,r){var n;return n=function(t,e){if("object"!=Ks(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ks(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ks(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qs(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var tf=function(t){return Array.isArray(t.value)?$s()(t.value):t.value};function ef(t){var e=t.valueAccessor,n=void 0===e?tf:e,o=Qs(t,qs),i=o.data,a=o.dataKey,c=o.clockWise,u=o.id,l=o.textBreakAll,f=Qs(o,Vs);return i&&i.length?r().createElement(ht,{className:"recharts-label-list"},i.map((function(t,e){var o=s()(a)?n(t,e):Bl(t&&t.payload,a),i=s()(u)?{}:{id:"".concat(u,"-").concat(e)};return r().createElement(Fs,Gs({},rt(t,!0),f,i,{parentViewBox:t.parentViewBox,value:o,textBreakAll:l,viewBox:Fs.parseViewBox(s()(c)?t:Zs(Zs({},t),{},{clockWise:c})),key:"label-".concat(e),index:e}))}))):null}ef.displayName="LabelList",ef.renderCallByParent=function(t,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=G(t.children,ef).map((function(t,r){return(0,e.cloneElement)(t,{data:n,key:"labelList-".concat(r)})}));return o?[function(t,e){return t?!0===t?r().createElement(ef,{key:"labelList-implicit",data:e}):r().isValidElement(t)||d()(t)?r().createElement(ef,{key:"labelList-implicit",data:e,content:t}):v()(t)?r().createElement(ef,Gs({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,n)].concat(Xs(i)):i};var rf=["component"];function nf(t){return nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nf(t)}function of(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function af(t){var n,o=t.component,i=of(t,rf);return(0,e.isValidElement)(o)?n=(0,e.cloneElement)(o,i):d()(o)?n=(0,e.createElement)(o,i):dt(!1,"Customized's props `component` must be React.element or Function, but got %s.",nf(o)),r().createElement(ht,{className:"recharts-customized-wrapper"},n)}function cf(t){return cf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cf(t)}function uf(){return uf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uf.apply(this,arguments)}function lf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lf(Object(r),!0).forEach((function(e){ff(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ff(t,e,r){var n;return n=function(t,e){if("object"!=cf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==cf(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}af.displayName="Customized";var pf=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/ms,f=u?o:o+i*s,p=u?o-i*s:o;return{center:gs(e,r,l,f),circleTangency:gs(e,r,n,f),lineTangency:gs(e,r,l*Math.cos(s*ms),p),theta:s}},hf=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return w(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=gs(e,r,o,i),l=gs(e,r,o,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=gs(e,r,n,i),p=gs(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},df={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},yf=function(t){var e=sf(sf({},df),t),n=e.cx,i=e.cy,a=e.innerRadius,c=e.outerRadius,u=e.cornerRadius,l=e.forceCornerRadius,s=e.cornerIsExternal,f=e.startAngle,p=e.endAngle,h=e.className;if(c<a||f===p)return null;var d,y=o("recharts-sector",h),v=c-a,m=k(u,v,0,!0);return d=m>0&&Math.abs(f-p)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=w(l-u),f=pf({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=pf({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,b=y.theta,g=c?Math.abs(u-l):Math.abs(u-l)-d-b;if(g<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):hf({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var O=pf({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),j=O.circleTangency,S=O.lineTangency,A=O.theta,P=pf({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),E=P.circleTangency,k=P.lineTangency,T=P.theta,M=c?Math.abs(u-l):Math.abs(u-l)-A-T;if(M<0&&0===i)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(k.x,",").concat(k.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(E.x,",").concat(E.y,"\n A").concat(n,",").concat(n,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(j.x,",").concat(j.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x}({cx:n,cy:i,innerRadius:a,outerRadius:c,cornerRadius:Math.min(m,v/2),forceCornerRadius:l,cornerIsExternal:s,startAngle:f,endAngle:p}):hf({cx:n,cy:i,innerRadius:a,outerRadius:c,startAngle:f,endAngle:p}),r().createElement("path",uf({},rt(e,!0),{className:y,d,role:"img"}))};function vf(){}function mf(t,e,r){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+r)/6)}function bf(t){this._context=t}function gf(t){this._context=t}function xf(t){this._context=t}bf.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:mf(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:mf(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},gf.prototype={areaStart:vf,areaEnd:vf,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:mf(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},xf.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 r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:mf(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class Of{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}}function wf(t){this._context=t}function jf(t){this._context=t}function Sf(t){return new jf(t)}function Af(t){return t<0?-1:1}function Pf(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(Af(i)+Af(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function Ef(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function kf(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-n)/3;t._context.bezierCurveTo(n+c,o+c*e,i-c,a-c*r,i,a)}function Tf(t){this._context=t}function Mf(t){this._context=new _f(t)}function _f(t){this._context=t}function Cf(t){this._context=t}function Df(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function If(t,e){this._context=t,this._t=e}function Nf(t){return t[0]}function Rf(t){return t[1]}function Bf(t,e){var r=zt(!0),n=null,o=Sf,i=null,a=Vt(c);function c(c){var u,l,s,f=(c=ju(c)).length,p=!1;for(null==n&&(i=o(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,u,c),+e(l,u,c));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?Nf:zt(t),e="function"==typeof e?e:void 0===e?Rf:zt(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:zt(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:zt(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:zt(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),c):o},c.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),c):n},c}function Lf(t,e,r){var n=null,o=zt(!0),i=null,a=Sf,c=null,u=Vt(l);function l(l){var s,f,p,h,d,y=(l=ju(l)).length,v=!1,m=new Array(y),b=new Array(y);for(null==i&&(c=a(d=u())),s=0;s<=y;++s){if(!(s<y&&o(h=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],b[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),c.point(n?+n(h,s,l):m[s],r?+r(h,s,l):b[s]))}if(d)return c=null,d+""||null}function s(){return Bf().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Nf:zt(+t),e="function"==typeof e?e:zt(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?Rf:zt(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:zt(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:zt(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:zt(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:zt(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:zt(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:zt(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:zt(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),l):i},l}function zf(t){return zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(t)}function Ff(){return Ff=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ff.apply(this,arguments)}function Uf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uf(Object(r),!0).forEach((function(e){$f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $f(t,e,r){var n;return n=function(t,e){if("object"!=zf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==zf(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}wf.prototype={areaStart:vf,areaEnd:vf,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))}},jf.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)}}},Tf.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:kf(this,this._t0,Ef(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=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,kf(this,Ef(this,r=Pf(this,t,e)),r);break;default:kf(this,this._t0,r=Pf(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Mf.prototype=Object.create(Tf.prototype)).point=function(t,e){Tf.prototype.point.call(this,e,t)},_f.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,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},Cf.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,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Df(t),o=Df(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&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)}},If.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 r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var Kf={curveBasisClosed:function(t){return new gf(t)},curveBasisOpen:function(t){return new xf(t)},curveBasis:function(t){return new bf(t)},curveBumpX:function(t){return new Of(t,!0)},curveBumpY:function(t){return new Of(t,!1)},curveLinearClosed:function(t){return new wf(t)},curveLinear:Sf,curveMonotoneX:function(t){return new Tf(t)},curveMonotoneY:function(t){return new Mf(t)},curveNatural:function(t){return new Cf(t)},curveStep:function(t){return new If(t,.5)},curveStepAfter:function(t){return new If(t,1)},curveStepBefore:function(t){return new If(t,0)}},qf=function(t){return t.x===+t.x&&t.y===+t.y},Vf=function(t){return t.x},Xf=function(t){return t.y},Hf=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(d()(t))return t;var r="curve".concat(vt()(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?Kf[r]||Sf:Kf["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter((function(t){return qf(t)})):i;if(Array.isArray(a)){var p=l?a.filter((function(t){return qf(t)})):a,h=f.map((function(t,e){return Wf(Wf({},t),{},{base:p[e]})}));return(e="vertical"===c?Lf().y(Xf).x1(Vf).x0((function(t){return t.base.x})):Lf().x(Vf).y1(Xf).y0((function(t){return t.base.y}))).defined(qf).curve(s),e(h)}return(e="vertical"===c&&S(a)?Lf().y(Xf).x1(Vf).x0(a):S(a)?Lf().x(Vf).y1(Xf).y0(a):Bf().x(Vf).y(Xf)).defined(qf).curve(s),e(f)},Gf=function(t){var e=t.className,n=t.points,i=t.path,a=t.pathRef;if(!(n&&n.length||i))return null;var c=n&&n.length?Hf(t):i;return r().createElement("path",Ff({},rt(t,!1),L(t),{className:o("recharts-curve",e),d:c,ref:a}))},Yf=i(9660),Zf=i.n(Yf),Jf=Object.getOwnPropertyNames,Qf=Object.getOwnPropertySymbols,tp=Object.prototype.hasOwnProperty;function ep(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function rp(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var c=t(e,r,n);return o.delete(e),o.delete(r),c}}function np(t){return Jf(t).concat(Qf(t))}var op=Object.hasOwn||function(t,e){return tp.call(t,e)};function ip(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var ap="_owner",cp=Object.getOwnPropertyDescriptor,up=Object.keys;function lp(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function sp(t,e){return ip(t.getTime(),e.getTime())}function fp(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(o=u.next())&&!o.done;){var f=n.value,p=f[0],h=f[1],d=o.value,y=d[0],v=d[1];l||i[s]||!(l=r.equals(p,y,c,s,t,e,r)&&r.equals(h,v,p,y,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function pp(t,e,r){var n,o=up(t),i=o.length;if(up(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===ap&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!op(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function hp(t,e,r){var n,o,i,a=np(t),c=a.length;if(np(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===ap&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!op(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=cp(t,n),i=cp(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function dp(t,e){return ip(t.valueOf(),e.valueOf())}function yp(t,e){return t.source===e.source&&t.flags===e.flags}function vp(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(o=c.next())&&!o.done;)u||i[l]||!(u=r.equals(n.value,o.value,n.value,o.value,t,e,r))||(i[l]=!0),l++;if(!u)return!1}return!0}function mp(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var bp="[object Arguments]",gp="[object Boolean]",xp="[object Date]",Op="[object Map]",wp="[object Number]",jp="[object Object]",Sp="[object RegExp]",Ap="[object Set]",Pp="[object String]",Ep=Array.isArray,kp="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Tp=Object.assign,Mp=Object.prototype.toString.call.bind(Object.prototype.toString);var _p=Cp();Cp({strict:!0}),Cp({circular:!0}),Cp({circular:!0,strict:!0}),Cp({createInternalComparator:function(){return ip}}),Cp({strict:!0,createInternalComparator:function(){return ip}}),Cp({circular:!0,createInternalComparator:function(){return ip}}),Cp({circular:!0,createInternalComparator:function(){return ip},strict:!0});function Cp(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?hp:lp,areDatesEqual:sp,areMapsEqual:n?ep(fp,hp):fp,areObjectsEqual:n?hp:pp,arePrimitiveWrappersEqual:dp,areRegExpsEqual:yp,areSetsEqual:n?ep(vp,hp):vp,areTypedArraysEqual:n?hp:mp};if(r&&(o=Tp({},o,r(o))),e){var i=rp(o.areArraysEqual),a=rp(o.areMapsEqual),c=rp(o.areObjectsEqual),u=rp(o.areSetsEqual);o=Tp({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return o}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(t,l,s);if(Ep(t))return e(t,l,s);if(null!=kp&&kp(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=Mp(t);return p===xp?r(t,l,s):p===Sp?a(t,l,s):p===Op?n(t,l,s):p===Ap?c(t,l,s):p===jp?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):p===bp?o(t,l,s):(p===gp||p===wp||p===Pp)&&i(t,l,s)}}(u),s=o?o(l):(e=l,function(t,r,n,o,i,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:o,meta:s,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:i,equals:s,strict:c})}function Dp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function Ip(t){return Ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ip(t)}function Np(t){return function(t){if(Array.isArray(t))return 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)return;if("string"==typeof t)return Rp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rp(t,e)}(t)||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 Rp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Bp(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=Np(n),i=o[0],a=o.slice(1);return"number"==typeof i?void Dp(r.bind(null,a),i):(r(i),void Dp(r.bind(null,a)))}"object"===Ip(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Lp(t){return Lp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lp(t)}function zp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zp(Object(r),!0).forEach((function(e){Up(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Up(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Lp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Lp(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Wp=function(t){return t},$p=function(t,e){return Object.keys(e).reduce((function(r,n){return Fp(Fp({},r),{},Up({},n,t(n,e[n])))}),{})},Kp=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")};function qp(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Xp(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 Vp(t){return function(t){if(Array.isArray(t))return Hp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Xp(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xp(t,e){if(t){if("string"==typeof t)return Hp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hp(t,e):void 0}}function Hp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Gp=1e-4,Yp=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Zp=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Jp=function(t,e){return function(r){var n=Yp(t,e);return Zp(n,r)}},Qp=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=qp(c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),4);n=u[0],o=u[1],i=u[2],a=u[3]}}[n,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var l,s,f=Jp(n,i),p=Jp(o,a),h=(l=n,s=i,function(t){var e=Yp(l,s),r=[].concat(Vp(e.map((function(t,e){return t*e})).slice(1)),[0]);return Zp(r,t)}),d=function(t){return t>1?1:t<0?0:t},y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o=f(r)-e,i=h(r);if(Math.abs(o-e)<Gp||i<Gp)return p(r);r=d(r-o/i)}return p(r)};return y.isStepper=!1,y},th=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Qp(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,c=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Gp&&Math.abs(i)<Gp?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Qp(n)}return"function"==typeof n?n:null};function eh(t){return eh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eh(t)}function rh(t){return function(t){if(Array.isArray(t))return uh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ch(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 nh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function oh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nh(Object(r),!0).forEach((function(e){ih(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ih(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==eh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==eh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===eh(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ah(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||ch(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 ch(t,e){if(t){if("string"==typeof t)return uh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?uh(t,e):void 0}}function uh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var lh=function(t,e,r){return t+(e-t)*r},sh=function(t){return t.from!==t.to},fh=function t(e,r,n){var o=$p((function(t,r){if(sh(r)){var n=ah(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return oh(oh({},r),{},{from:o,velocity:i})}return r}),r);return n<1?$p((function(t,e){return sh(e)?oh(oh({},e),{},{velocity:lh(e.velocity,o[t].velocity,n),from:lh(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)};const ph=function(t,e,r,n,o){var i,a,c,u,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return oh(oh({},r),{},ih({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return oh(oh({},r),{},ih({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=fh(r,f,i),o(oh(oh(oh({},t),e),$p((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(sh).length&&(p=requestAnimationFrame(h))}:function(i){u||(u=i);var a=(i-u)/n,c=$p((function(t,e){return lh.apply(void 0,rh(e).concat([r(a)]))}),s);if(o(oh(oh(oh({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var l=$p((function(t,e){return lh.apply(void 0,rh(e).concat([r(1)]))}),s);o(oh(oh(oh({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function hh(t){return hh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hh(t)}var dh=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function yh(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function vh(t){return function(t){if(Array.isArray(t))return mh(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)return;if("string"==typeof t)return mh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mh(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function bh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bh(Object(r),!0).forEach((function(e){xh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xh(t,e,r){return(e=wh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Oh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wh(n.key),n)}}function wh(t){var e=function(t,e){if("object"!==hh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==hh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hh(e)?e:String(e)}function jh(t,e){return jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jh(t,e)}function Sh(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 r,n=Eh(t);if(e){var o=Eh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ah(this,r)}}function Ah(t,e){if(e&&("object"===hh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ph(t)}function Ph(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Eh(t){return Eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Eh(t)}var kh=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&&jh(t,e)}(c,t);var n,o,i,a=Sh(c);function c(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=(r=a.call(this,t,e)).props,o=n.isActive,i=n.attributeName,u=n.from,l=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(Ph(r)),r.changeStyle=r.changeStyle.bind(Ph(r)),!o||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),Ah(r);if(s&&s.length)r.state={style:s[0].style};else if(u){if("function"==typeof f)return r.state={style:u},Ah(r);r.state={style:i?xh({},i,u):u}}else r.state={style:{}};return r}return n=c,(o=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(_p(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?c:t.to;if(this.state&&u){var f={style:o?xh({},o,s):s};(o&&[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(gh(gh({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?xh({},o,a):a};this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=ph(r,n,th(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},o,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(vh(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(vh(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var h=Kp(p,i,c),d=gh(gh(gh({},f.style),u),{},{transition:h});return[].concat(vh(t),[d,i,s]).filter(Wp)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Bp());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=n?xh({},n,o):o,p=Kp(Object.keys(f),r,i);s.start([a,e,gh(gh({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,n=t.children,o=(t.begin,t.duration),i=(t.attributeName,t.easing,t.isActive),a=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,yh(t,dh)),c=e.Children.count(n),u=this.state.style;if("function"==typeof n)return n(u);if(!i||0===c||o<=0)return n;var l=function(t){var r=t.props,n=r.style,o=void 0===n?{}:n,i=r.className;return(0,e.cloneElement)(t,gh(gh({},a),{},{style:gh(gh({},o),u),className:i}))};return 1===c?l(e.Children.only(n)):r().createElement("div",null,e.Children.map(n,(function(t){return l(t)})))}}])&&Oh(n.prototype,o),i&&Oh(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);kh.displayName="Animate",kh.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},kh.propTypes={from:Zf().oneOfType([Zf().object,Zf().string]),to:Zf().oneOfType([Zf().object,Zf().string]),attributeName:Zf().string,duration:Zf().number,begin:Zf().number,easing:Zf().oneOfType([Zf().string,Zf().func]),steps:Zf().arrayOf(Zf().shape({duration:Zf().number.isRequired,style:Zf().object.isRequired,easing:Zf().oneOfType([Zf().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Zf().func]),properties:Zf().arrayOf("string"),onAnimationEnd:Zf().func})),children:Zf().oneOfType([Zf().node,Zf().func]),isActive:Zf().bool,canBegin:Zf().bool,onAnimationEnd:Zf().func,shouldReAnimate:Zf().bool,onAnimationStart:Zf().func,onAnimationReStart:Zf().func};const Th=kh;function Mh(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}function _h(){return _h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},_h.apply(this,arguments)}function Ch(t,e){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ch(t,e)}function Dh(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ch(t,e)}const Ih=r().createContext(null);function Nh(t,r){var n=Object.create(null);return t&&e.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return r&&(0,e.isValidElement)(t)?r(t):t}(t)})),n}function Rh(t,e,r){return null!=r[e]?r[e]:t.props[e]}function Bh(t,r,n){var o=Nh(t.children),i=function(t,e){function r(r){return r in e?e[r]:t[r]}t=t||{},e=e||{};var n,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in e){if(o[u])for(n=0;n<o[u].length;n++){var l=o[u][n];c[o[u][n]]=r(l)}c[u]=r(u)}for(n=0;n<i.length;n++)c[i[n]]=r(i[n]);return c}(r,o);return Object.keys(i).forEach((function(a){var c=i[a];if((0,e.isValidElement)(c)){var u=a in r,l=a in o,s=r[a],f=(0,e.isValidElement)(s)&&!s.props.in;!l||u&&!f?l||!u||f?l&&u&&(0,e.isValidElement)(s)&&(i[a]=(0,e.cloneElement)(c,{onExited:n.bind(null,c),in:s.props.in,exit:Rh(c,"exit",t),enter:Rh(c,"enter",t)})):i[a]=(0,e.cloneElement)(c,{in:!1}):i[a]=(0,e.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:Rh(c,"exit",t),enter:Rh(c,"enter",t)})}})),i}var Lh=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},zh=function(t){function n(e,r){var n,o=(n=t.call(this,e,r)||this).handleExited.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Dh(n,t);var o=n.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,r){var n,o,i=r.children,a=r.handleExited;return{children:r.firstRender?(n=t,o=a,Nh(n.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:Rh(t,"appear",n),enter:Rh(t,"enter",n),exit:Rh(t,"exit",n)})}))):Bh(t,i,a),firstRender:!1}},o.handleExited=function(t,e){var r=Nh(this.props.children);t.key in r||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var r=_h({},e.children);return delete r[t.key],{children:r}})))},o.render=function(){var t=this.props,e=t.component,n=t.childFactory,o=Mh(t,["component","childFactory"]),i=this.state.contextValue,a=Lh(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===e?r().createElement(Ih.Provider,{value:i},a):r().createElement(Ih.Provider,{value:i},r().createElement(e,o,a))},n}(r().Component);zh.propTypes={},zh.defaultProps={component:"div",childFactory:function(t){return t}};const Fh=zh;var Uh=i(4020),Wh=i.n(Uh);const $h=!1;var Kh="unmounted",qh="exited",Vh="entering",Xh="entered",Hh="exiting",Gh=function(t){function e(e,r){var n;n=t.call(this,e,r)||this;var o,i=r&&!r.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?i?(o=qh,n.appearStatus=Vh):o=Xh:o=e.unmountOnExit||e.mountOnEnter?Kh:qh,n.state={status:o},n.nextCallback=null,n}Dh(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===Kh?{status:qh}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==Vh&&r!==Xh&&(e=Vh):r!==Vh&&r!==Xh||(e=Hh)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,r,n=this.props.timeout;return t=e=r=n,null!=n&&"number"!=typeof n&&(t=n.exit,e=n.enter,r=void 0!==n.appear?n.appear:e),{exit:t,enter:e,appear:r}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===Vh){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Wh().findDOMNode(this);r&&function(t){t.scrollTop}(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qh&&this.setState({status:Kh})},n.performEnter=function(t){var e=this,r=this.props.enter,n=this.context?this.context.isMounting:t,o=this.props.nodeRef?[n]:[Wh().findDOMNode(this),n],i=o[0],a=o[1],c=this.getTimeouts(),u=n?c.appear:c.enter;!t&&!r||$h?this.safeSetState({status:Xh},(function(){e.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Vh},(function(){e.props.onEntering(i,a),e.onTransitionEnd(u,(function(){e.safeSetState({status:Xh},(function(){e.props.onEntered(i,a)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Wh().findDOMNode(this);e&&!$h?(this.props.onExit(n),this.safeSetState({status:Hh},(function(){t.props.onExiting(n),t.onTransitionEnd(r.exit,(function(){t.safeSetState({status:qh},(function(){t.props.onExited(n)}))}))}))):this.safeSetState({status:qh},(function(){t.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,e.nextCallback=null,t(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:Wh().findDOMNode(this),n=null==t&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===Kh)return null;var e=this.props,n=e.children,o=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Mh(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r().createElement(Ih.Provider,{value:null},"function"==typeof n?n(t,o):r().cloneElement(r().Children.only(n),o))},e}(r().Component);function Yh(){}Gh.contextType=Ih,Gh.propTypes={},Gh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yh,onEntering:Yh,onEntered:Yh,onExit:Yh,onExiting:Yh,onExited:Yh},Gh.UNMOUNTED=Kh,Gh.EXITED=qh,Gh.ENTERING=Vh,Gh.ENTERED=Xh,Gh.EXITING=Hh;const Zh=Gh;var Jh=["children","appearOptions","enterOptions","leaveOptions"];function Qh(t){return Qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qh(t)}function td(){return td=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},td.apply(this,arguments)}function ed(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function rd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function nd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rd(Object(r),!0).forEach((function(e){ld(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function od(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sd(n.key),n)}}function id(t,e){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},id(t,e)}function ad(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 r,n=ud(t);if(e){var o=ud(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Qh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return cd(t)}(this,r)}}function cd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ud(t){return ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ud(t)}function ld(t,e,r){return(e=sd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sd(t){var e=function(t,e){if("object"!==Qh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Qh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qh(e)?e:String(e)}var fd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,r=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)}),0):Number.isFinite(r)?r:0},pd=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&&id(t,e)}(c,t);var n,o,i,a=ad(c);function c(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),ld(cd(t=a.call(this)),"handleEnter",(function(e,r){var n=t.props,o=n.appearOptions,i=n.enterOptions;t.handleStyleActive(r?o:i)})),ld(cd(t),"handleExit",(function(){var e=t.props.leaveOptions;t.handleStyleActive(e)})),t.state={isActive:!1},t}return n=c,(o=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(nd(nd({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,r=t.enterOptions,n=t.leaveOptions;return fd(e)+fd(r)+fd(n)}},{key:"render",value:function(){var t=this,n=this.props,o=n.children,i=(n.appearOptions,n.enterOptions,n.leaveOptions,ed(n,Jh));return r().createElement(Zh,td({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return r().createElement(Th,t.state,e.Children.only(o))}))}}])&&od(n.prototype,o),i&&od(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.Component);pd.propTypes={appearOptions:Zf().object,enterOptions:Zf().object,leaveOptions:Zf().object,children:Zf().element};const hd=pd;function dd(t){var n=t.component,o=t.children,i=t.appear,a=t.enter,c=t.leave;return r().createElement(Fh,{component:n},e.Children.map(o,(function(t,e){return r().createElement(hd,{appearOptions:i,enterOptions:a,leaveOptions:c,key:"child-".concat(e)},t)})))}dd.propTypes={appear:Zf().object,enter:Zf().object,leave:Zf().object,children:Zf().oneOfType([Zf().array,Zf().element]),component:Zf().any},dd.defaultProps={component:"span"};const yd=Th;function vd(t){return vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(t)}function md(){return md=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},md.apply(this,arguments)}function bd(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return gd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gd(t,e)}(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 gd(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Od(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xd(Object(r),!0).forEach((function(e){wd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wd(t,e,r){var n;return n=function(t,e){if("object"!=vd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==vd(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var jd=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),i+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),i+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),i+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},Sd=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},Ad={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Pd=function(t){var n=Od(Od({},Ad),t),i=(0,e.useRef)(),a=bd((0,e.useState)(-1),2),c=a[0],u=a[1];(0,e.useEffect)((function(){if(i.current&&i.current.getTotalLength)try{var t=i.current.getTotalLength();t&&u(t)}catch(t){}}),[]);var l=n.x,s=n.y,f=n.width,p=n.height,h=n.radius,d=n.className,y=n.animationEasing,v=n.animationDuration,m=n.animationBegin,b=n.isAnimationActive,g=n.isUpdateAnimationActive;if(l!==+l||s!==+s||f!==+f||p!==+p||0===f||0===p)return null;var x=o("recharts-rectangle",d);return g?r().createElement(yd,{canBegin:c>0,from:{width:f,height:p,x:l,y:s},to:{width:f,height:p,x:l,y:s},duration:v,animationEasing:y,isActive:g},(function(t){var e=t.width,o=t.height,a=t.x,u=t.y;return r().createElement(yd,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,isActive:b,easing:y},r().createElement("path",md({},rt(n,!0),{className:x,d:jd(a,u,e,o,h),ref:i})))})):r().createElement("path",md({},rt(n,!0),{className:x,d:jd(l,s,f,p,h)}))},Ed=["points","className","baseLinePoints","connectNulls"];function kd(){return kd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},kd.apply(this,arguments)}function Td(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Md(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)return;if("string"==typeof t)return _d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _d(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Cd=function(t){return t&&t.x===+t.x&&t.y===+t.y},Dd=function(t,e){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[[]];return t.forEach((function(t){Cd(t)?e[e.length-1].push(t):e[e.length-1].length>0&&e.push([])})),Cd(t[0])&&e[e.length-1].push(t[0]),e[e.length-1].length<=0&&(e=e.slice(0,-1)),e}(t);e&&(r=[r.reduce((function(t,e){return[].concat(Md(t),Md(e))}),[])]);var n=r.map((function(t){return t.reduce((function(t,e,r){return"".concat(t).concat(0===r?"M":"L").concat(e.x,",").concat(e.y)}),"")})).join("");return 1===r.length?"".concat(n,"Z"):n},Id=function(t){var e=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,c=Td(t,Ed);if(!e||!e.length)return null;var u=o("recharts-polygon",n);if(i&&i.length){var l=c.stroke&&"none"!==c.stroke,s=function(t,e,r){var n=Dd(t,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(Dd(e.reverse(),r).slice(1))}(e,i,a);return r().createElement("g",{className:u},r().createElement("path",kd({},rt(c,!0),{fill:"Z"===s.slice(-1)?c.fill:"none",stroke:"none",d:s})),l?r().createElement("path",kd({},rt(c,!0),{fill:"none",d:Dd(e,a)})):null,l?r().createElement("path",kd({},rt(c,!0),{fill:"none",d:Dd(i,a)})):null)}var f=Dd(e,a);return r().createElement("path",kd({},rt(c,!0),{fill:"Z"===f.slice(-1)?c.fill:"none",className:u,d:f}))};function Nd(){return Nd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nd.apply(this,arguments)}var Rd=function(t){var e=t.cx,n=t.cy,i=t.r,a=t.className,c=o("recharts-dot",a);return e===+e&&n===+n&&i===+i?r().createElement("circle",Nd({},rt(t,!1),L(t),{className:c,cx:e,cy:n,r:i})):null};function Bd(t){return Bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bd(t)}var Ld=["x","y","top","left","width","height","className"];function zd(){return zd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zd.apply(this,arguments)}function Fd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ud(t,e,r){var n;return n=function(t,e){if("object"!=Bd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Bd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Bd(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wd(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var $d=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},Kd=function(t){var e=t.x,n=void 0===e?0:e,i=t.y,a=void 0===i?0:i,c=t.top,u=void 0===c?0:c,l=t.left,s=void 0===l?0:l,f=t.width,p=void 0===f?0:f,h=t.height,d=void 0===h?0:h,y=t.className,v=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fd(Object(r),!0).forEach((function(e){Ud(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:n,y:a,top:u,left:s,width:p,height:d},Wd(t,Ld));return S(n)&&S(a)&&S(p)&&S(d)&&S(u)&&S(s)?r().createElement("path",zd({},rt(v,!0),{className:o("recharts-cross",y),d:$d(n,a,p,d,u,s)})):null},qd=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Vd(t){return Vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vd(t)}function Xd(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Hd(){return Hd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hd.apply(this,arguments)}function Gd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Yd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gd(Object(r),!0).forEach((function(e){Zd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zd(t,e,r){var n;return n=function(t,e){if("object"!=Vd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Vd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Vd(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Jd=function(t,e,r,n){var o="";return n.forEach((function(n,i){var a=gs(e,r,t,n);o+=i?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),o+="Z"},Qd=function(t){var e=t.cx,n=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.polarAngles,c=t.radialLines;if(!a||!a.length||!c)return null;var u=Yd({stroke:"#ccc"},rt(t,!1));return r().createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(t){var a=gs(e,n,o,t),c=gs(e,n,i,t);return r().createElement("line",Hd({},u,{key:"line-".concat(t),x1:a.x,y1:a.y,x2:c.x,y2:c.y}))})))},ty=function(t){var e=t.cx,n=t.cy,i=t.radius,a=t.index,c=Yd(Yd({stroke:"#ccc"},rt(t,!1)),{},{fill:"none"});return r().createElement("circle",Hd({},c,{className:o("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:e,cy:n,r:i}))},ey=function(t){var e=t.radius,n=t.index,i=Yd(Yd({stroke:"#ccc"},rt(t,!1)),{},{fill:"none"});return r().createElement("path",Hd({},i,{className:o("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:Jd(e,t.cx,t.cy,t.polarAngles)}))},ry=function(t){var e=t.polarRadius,n=t.gridType;return e&&e.length?r().createElement("g",{className:"recharts-polar-grid-concentric"},e.map((function(e,o){var i=o;return"circle"===n?r().createElement(ty,Hd({key:i},t,{radius:e,index:o})):r().createElement(ey,Hd({key:i},t,{radius:e,index:o}))}))):null},ny=function(t){var e=t.cx,n=void 0===e?0:e,o=t.cy,i=void 0===o?0:o,a=t.innerRadius,c=void 0===a?0:a,u=t.outerRadius,l=void 0===u?0:u,s=t.gridType,f=void 0===s?"polygon":s,p=t.radialLines,h=void 0===p||p,d=Xd(t,qd);return l<=0?null:r().createElement("g",{className:"recharts-polar-grid"},r().createElement(Qd,Hd({cx:n,cy:i,innerRadius:c,outerRadius:l,gridType:f,radialLines:h},d)),r().createElement(ry,Hd({cx:n,cy:i,innerRadius:c,outerRadius:l,gridType:f,radialLines:h},d)))};ny.displayName="PolarGrid";var oy=i(6564),iy=i.n(oy),ay=i(908),cy=i.n(ay),uy=["cx","cy","angle","ticks","axisLine"],ly=["ticks","tick","angle","tickFormatter","stroke"];function sy(t){return sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sy(t)}function fy(){return fy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fy.apply(this,arguments)}function py(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?py(Object(r),!0).forEach((function(e){xy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):py(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dy(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function yy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Oy(n.key),n)}}function vy(t,e,r){return e=by(e),function(t,e){if(e&&("object"===sy(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)}(t,my()?Reflect.construct(e,r||[],by(t).constructor):e.apply(t,r))}function my(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(my=function(){return!!t})()}function by(t){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},by(t)}function gy(t,e){return gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gy(t,e)}function xy(t,e,r){return(e=Oy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Oy(t){var e=function(t,e){if("object"!=sy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sy(e)?e:e+""}var wy=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),vy(this,e,arguments)}return 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&&gy(t,e)}(e,t),n=e,i=[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,r=this.props,n=r.angle,o=r.cx,i=r.cy;return gs(o,i,e,n)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,o=t.ticks,i=iy()(o,(function(t){return t.coordinate||0}));return{cx:e,cy:r,startAngle:n,endAngle:n,innerRadius:cy()(o,(function(t){return t.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,n=t.cy,o=t.angle,i=t.ticks,a=t.axisLine,c=dy(t,uy),u=i.reduce((function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]}),[1/0,-1/0]),l=gs(e,n,u[0],o),s=gs(e,n,u[1],o),f=hy(hy(hy({},rt(c,!1)),{},{fill:"none"},rt(a,!1)),{},{x1:l.x,y1:l.y,x2:s.x,y2:s.y});return r().createElement("line",fy({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var t=this,n=this.props,i=n.ticks,a=n.tick,c=n.angle,u=n.tickFormatter,l=n.stroke,s=dy(n,ly),f=this.getTickTextAnchor(),p=rt(s,!1),h=rt(a,!1),d=i.map((function(n,i){var s=t.getTickValueCoord(n),d=hy(hy(hy(hy({textAnchor:f,transform:"rotate(".concat(90-c,", ").concat(s.x,", ").concat(s.y,")")},p),{},{stroke:"none",fill:l},h),{},{index:i},s),{},{payload:n});return r().createElement(ht,fy({className:o("recharts-polar-radius-axis-tick",As(a)),key:"tick-".concat(n.coordinate)},z(t.props,n,i)),e.renderTickItem(a,d,u?u(n.value,i):n.value))}));return r().createElement(ht,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.axisLine,i=t.tick;return e&&e.length?r().createElement(ht,{className:o("recharts-polar-radius-axis",this.props.className)},n&&this.renderAxisLine(),i&&this.renderTicks(),Fs.renderCallByParent(this.props,this.getViewBox())):null}}],a=[{key:"renderTickItem",value:function(t,e,n){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(pn,fy({},e,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],i&&yy(n.prototype,i),a&&yy(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);function jy(t){return jy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jy(t)}function Sy(){return Sy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Sy.apply(this,arguments)}function Ay(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Py(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ay(Object(r),!0).forEach((function(e){Cy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ay(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ey(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Dy(n.key),n)}}function ky(t,e,r){return e=My(e),function(t,e){if(e&&("object"===jy(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)}(t,Ty()?Reflect.construct(e,r||[],My(t).constructor):e.apply(t,r))}function Ty(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ty=function(){return!!t})()}function My(t){return My=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},My(t)}function _y(t,e){return _y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_y(t,e)}function Cy(t,e,r){return(e=Dy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dy(t){var e=function(t,e){if("object"!=jy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==jy(e)?e:e+""}xy(wy,"displayName","PolarRadiusAxis"),xy(wy,"axisType","radiusAxis"),xy(wy,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var Iy=Math.PI/180,Ny=1e-5,Ry=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ky(this,e,arguments)}return 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&&_y(t,e)}(e,t),n=e,i=[{key:"getTickLineCoord",value:function(t){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.orientation,a=e.tickSize||8,c=gs(r,n,o,t.coordinate),u=gs(r,n,o+("inner"===i?-1:1)*a,t.coordinate);return{x1:c.x,y1:c.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,r=Math.cos(-t.coordinate*Iy);return r>Ny?"outer"===e?"start":"end":r<-Ny?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,n=t.cy,o=t.radius,i=t.axisLine,a=t.axisLineType,c=Py(Py({},rt(this.props,!1)),{},{fill:"none"},rt(i,!1));if("circle"===a)return r().createElement(Rd,Sy({className:"recharts-polar-angle-axis-line"},c,{cx:e,cy:n,r:o}));var u=this.props.ticks.map((function(t){return gs(e,n,o,t.coordinate)}));return r().createElement(Id,Sy({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var t=this,n=this.props,i=n.ticks,a=n.tick,c=n.tickLine,u=n.tickFormatter,l=n.stroke,s=rt(this.props,!1),f=rt(a,!1),p=Py(Py({},s),{},{fill:"none"},rt(c,!1)),h=i.map((function(n,i){var h=t.getTickLineCoord(n),d=Py(Py(Py({textAnchor:t.getTickTextAnchor(n)},s),{},{stroke:"none",fill:l},f),{},{index:i,payload:n,x:h.x2,y:h.y2});return r().createElement(ht,Sy({className:o("recharts-polar-angle-axis-tick",As(a)),key:"tick-".concat(n.coordinate)},z(t.props,n,i)),c&&r().createElement("line",Sy({className:"recharts-polar-angle-axis-tick-line"},p,h)),a&&e.renderTickItem(a,d,u?u(n.value,i):n.value))}));return r().createElement(ht,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.radius,i=t.axisLine;return n<=0||!e||!e.length?null:r().createElement(ht,{className:o("recharts-polar-angle-axis",this.props.className)},i&&this.renderAxisLine(),this.renderTicks())}}],a=[{key:"renderTickItem",value:function(t,e,n){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(pn,Sy({},e,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],i&&Ey(n.prototype,i),a&&Ey(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);Cy(Ry,"displayName","PolarAngleAxis"),Cy(Ry,"axisType","angleAxis"),Cy(Ry,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var By=i(308),Ly=i.n(By),zy=i(7e3),Fy=i.n(zy);function Uy(t){return Uy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uy(t)}function Wy(){return Wy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wy.apply(this,arguments)}function $y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ky(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ky(t,e)}(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 Ky(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function qy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qy(Object(r),!0).forEach((function(e){Xy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xy(t,e,r){var n;return n=function(t,e){if("object"!=Uy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Uy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Uy(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Hy,Gy=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),i+="L ".concat(t+r-a/2-n,",").concat(e+o),i+="L ".concat(t,",").concat(e," Z")},Yy={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Zy=function(t){var n=Vy(Vy({},Yy),t),i=(0,e.useRef)(),a=$y((0,e.useState)(-1),2),c=a[0],u=a[1];(0,e.useEffect)((function(){if(i.current&&i.current.getTotalLength)try{var t=i.current.getTotalLength();t&&u(t)}catch(t){}}),[]);var l=n.x,s=n.y,f=n.upperWidth,p=n.lowerWidth,h=n.height,d=n.className,y=n.animationEasing,v=n.animationDuration,m=n.animationBegin,b=n.isUpdateAnimationActive;if(l!==+l||s!==+s||f!==+f||p!==+p||h!==+h||0===f&&0===p||0===h)return null;var g=o("recharts-trapezoid",d);return b?r().createElement(yd,{canBegin:c>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:s},to:{upperWidth:f,lowerWidth:p,height:h,x:l,y:s},duration:v,animationEasing:y,isActive:b},(function(t){var e=t.upperWidth,o=t.lowerWidth,a=t.height,u=t.x,l=t.y;return r().createElement(yd,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,easing:y},r().createElement("path",Wy({},rt(n,!0),{className:g,d:Gy(u,l,e,o,a),ref:i})))})):r().createElement("g",null,r().createElement("path",Wy({},rt(n,!0),{className:g,d:Gy(l,s,f,p,h)})))},Jy=["option","shapeType","propTransformer","activeClassName","isActive"];function Qy(t){return Qy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qy(t)}function tv(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ev(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ev(Object(r),!0).forEach((function(e){nv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ev(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nv(t,e,r){var n;return n=function(t,e){if("object"!=Qy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Qy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Qy(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ov(t,e){return rv(rv({},e),t)}function iv(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return r().createElement(Pd,n);case"trapezoid":return r().createElement(Zy,n);case"sector":return r().createElement(yf,n);case"symbols":if(function(t,e){return"symbols"===t}(e))return r().createElement(re,n);break;default:return null}}function av(t){return(0,e.isValidElement)(t)?t.props:t}function cv(t){var n,o=t.option,i=t.shapeType,a=t.propTransformer,c=void 0===a?ov:a,u=t.activeClassName,l=void 0===u?"recharts-active-shape":u,s=t.isActive,f=tv(t,Jy);if((0,e.isValidElement)(o))n=(0,e.cloneElement)(o,rv(rv({},f),av(o)));else if(d()(o))n=o(f);else if(Ly()(o)&&!Fy()(o)){var p=c(o,f);n=r().createElement(iv,{shapeType:i,elementProps:p})}else{var h=f;n=r().createElement(iv,{shapeType:i,elementProps:h})}return s?r().createElement(ht,{className:l},n):n}function uv(t,e){return null!=e&&"trapezoids"in t.props}function lv(t,e){return null!=e&&"sectors"in t.props}function sv(t,e){return null!=e&&"points"in t.props}function fv(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function pv(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function hv(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function dv(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return uv(t,e)?r="trapezoids":lv(t,e)?r="sectors":sv(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return uv(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:lv(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:sv(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=Iu()(i,t),c=r.props[o].filter((function(t){var n=function(t,e){var r;return uv(t,e)?r=fv:lv(t,e)?r=pv:sv(t,e)&&(r=hv),r}(r,e);return n(t,e)})),u=r.props[o].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}function yv(t){return yv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yv(t)}function vv(){return vv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vv.apply(this,arguments)}function mv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mv(Object(r),!0).forEach((function(e){Sv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Av(n.key),n)}}function xv(t,e,r){return e=wv(e),function(t,e){if(e&&("object"===yv(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)}(t,Ov()?Reflect.construct(e,r||[],wv(t).constructor):e.apply(t,r))}function Ov(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ov=function(){return!!t})()}function wv(t){return wv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wv(t)}function jv(t,e){return jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jv(t,e)}function Sv(t,e,r){return(e=Av(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Av(t){var e=function(t,e){if("object"!=yv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yv(e)?e:e+""}var Pv=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Sv(r=xv(this,e,[t]),"pieRef",null),Sv(r,"sectorRefs",[]),Sv(r,"id",E("recharts-pie-")),Sv(r,"handleAnimationEnd",(function(){var t=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),d()(t)&&t()})),Sv(r,"handleAnimationStart",(function(){var t=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),d()(t)&&t()})),r.state={isAnimationFinished:!t.isAnimationActive,prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,sectorToFocus:0},r}return 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)}(e,t),n=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){return e.prevIsAnimationActive!==t.isAnimationActive?{prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:[],isAnimationFinished:!0}:t.isAnimationActive&&t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:e.curSectors,isAnimationFinished:!0}:t.sectors!==e.curSectors?{curSectors:t.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,e,n){if(r().isValidElement(t))return r().cloneElement(t,e);if(d()(t))return t(e);var i=o("recharts-pie-label-line","boolean"!=typeof t?t.className:"");return r().createElement(Gf,vv({},e,{key:n,type:"linear",className:i}))}},{key:"renderLabelItem",value:function(t,e,n){if(r().isValidElement(t))return r().cloneElement(t,e);var i=n;if(d()(t)&&(i=t(e),r().isValidElement(i)))return i;var a=o("recharts-pie-label-text","boolean"==typeof t||d()(t)?"":t.className);return r().createElement(pn,vv({},e,{alignmentBaseline:"middle",className:a}),i)}}],(i=[{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"hasActiveIndex",value:function(){var t=this.props.activeIndex;return Array.isArray(t)?0!==t.length:t||0===t}},{key:"renderLabels",value:function(t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.label,i=n.labelLine,a=n.dataKey,c=n.valueKey,u=rt(this.props,!1),l=rt(o,!1),f=rt(i,!1),p=o&&o.offsetRadius||20,h=t.map((function(t,n){var h=(t.startAngle+t.endAngle)/2,d=gs(t.cx,t.cy,t.outerRadius+p,h),y=bv(bv(bv(bv({},u),t),{},{stroke:"none"},l),{},{index:n,textAnchor:e.getTextAnchor(d.x,t.cx)},d),v=bv(bv(bv(bv({},u),t),{},{fill:"none",stroke:t.fill},f),{},{index:n,points:[gs(t.cx,t.cy,t.outerRadius,h),d]}),m=a;return s()(a)&&s()(c)?m="value":s()(a)&&(m=c),r().createElement(ht,{key:"label-".concat(t.startAngle,"-").concat(t.endAngle,"-").concat(t.midAngle,"-").concat(n)},i&&e.renderLabelLineItem(i,v,"line"),e.renderLabelItem(o,y,Bl(t,m)))}));return r().createElement(ht,{className:"recharts-pie-labels"},h)}},{key:"renderSectorsStatically",value:function(t){var e=this,n=this.props,o=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return t.map((function(n,c){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==t.length)return null;var u=e.isActiveIndex(c),l=a&&e.hasActiveIndex()?a:null,s=u?o:l,f=bv(bv({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return r().createElement(ht,vv({ref:function(t){t&&!e.sectorRefs.includes(t)&&e.sectorRefs.push(t)},tabIndex:-1,className:"recharts-pie-sector"},z(e.props,n,c),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle,"-").concat(c)}),r().createElement(cv,vv({option:s,isActive:u,shapeType:"sector"},f)))}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,n=e.sectors,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,l=e.animationId,s=this.state,f=s.prevSectors,p=s.prevIsAnimationActive;return r().createElement(yd,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(e){var o=e.t,i=[],a=(n&&n[0]).startAngle;return n.forEach((function(t,e){var r=f&&f[e],n=e>0?u()(t,"paddingAngle",0):0;if(r){var c=M(r.endAngle-r.startAngle,t.endAngle-t.startAngle),l=bv(bv({},t),{},{startAngle:a+n,endAngle:a+c(o)+n});i.push(l),a=l.endAngle}else{var s=t.endAngle,p=t.startAngle,h=M(0,s-p)(o),d=bv(bv({},t),{},{startAngle:a+n,endAngle:a+h+n});i.push(d),a=d.endAngle}})),r().createElement(ht,null,t.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(t){var e=this;t.onkeydown=function(t){if(!t.altKey)switch(t.key){case"ArrowLeft":var r=++e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[r].focus(),e.setState({sectorToFocus:r});break;case"ArrowRight":var n=--e.state.sectorToFocus<0?e.sectorRefs.length-1:e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[n].focus(),e.setState({sectorToFocus:n});break;case"Escape":e.sectorRefs[e.state.sectorToFocus].blur(),e.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var t=this.props,e=t.sectors,r=t.isAnimationActive,n=this.state.prevSectors;return!(r&&e&&e.length)||n&&Iu()(n,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var t=this,e=this.props,n=e.hide,i=e.sectors,a=e.className,c=e.label,u=e.cx,l=e.cy,s=e.innerRadius,f=e.outerRadius,p=e.isAnimationActive,h=this.state.isAnimationFinished;if(n||!i||!i.length||!S(u)||!S(l)||!S(s)||!S(f))return null;var d=o("recharts-pie",a);return r().createElement(ht,{tabIndex:this.props.rootTabIndex,className:d,ref:function(e){t.pieRef=e}},this.renderSectors(),c&&this.renderLabels(i),Fs.renderCallByParent(this.props,null,!1),(!p||h)&&ef.renderCallByParent(this.props,i,!1))}}])&&gv(n.prototype,i),a&&gv(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);Hy=Pv,Sv(Pv,"displayName","Pie"),Sv(Pv,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ar.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),Sv(Pv,"parseDeltaAngle",(function(t,e){return w(e-t)*Math.min(Math.abs(e-t),360)})),Sv(Pv,"getRealPieData",(function(t){var e=t.data,r=t.children,n=rt(t,!1),o=G(r,kr);return e&&e.length?e.map((function(t,e){return bv(bv(bv({payload:t},n),t),o&&o[e]&&o[e].props)})):o&&o.length?o.map((function(t){return bv(bv({},n),t.props)})):[]})),Sv(Pv,"parseCoordinateOfPie",(function(t,e){var r=e.top,n=e.left,o=e.width,i=e.height,a=xs(o,i);return{cx:n+k(t.cx,o,o/2),cy:r+k(t.cy,i,i/2),innerRadius:k(t.innerRadius,a,0),outerRadius:k(t.outerRadius,a,.8*a),maxRadius:t.maxRadius||Math.sqrt(o*o+i*i)/2}})),Sv(Pv,"getComposedData",(function(t){var e=t.item,r=t.offset,n=void 0!==e.type.defaultProps?bv(bv({},e.type.defaultProps),e.props):e.props,o=Hy.getRealPieData(n);if(!o||!o.length)return null;var i=n.cornerRadius,a=n.startAngle,c=n.endAngle,u=n.paddingAngle,l=n.dataKey,f=n.nameKey,p=n.valueKey,h=n.tooltipType,d=Math.abs(n.minAngle),y=Hy.parseCoordinateOfPie(n,r),v=Hy.parseDeltaAngle(a,c),m=Math.abs(v),b=l;s()(l)&&s()(p)?(dt(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b="value"):s()(l)&&(dt(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b=p);var g,x,O=o.filter((function(t){return 0!==Bl(t,b,0)})).length,j=m-O*d-(m>=360?O:O-1)*u,A=o.reduce((function(t,e){var r=Bl(e,b,0);return t+(S(r)?r:0)}),0);A>0&&(g=o.map((function(t,e){var r,n=Bl(t,b,0),o=Bl(t,f,e),c=(S(n)?n:0)/A,l=(r=e?x.endAngle+w(v)*u*(0!==n?1:0):a)+w(v)*((0!==n?d:0)+c*j),s=(r+l)/2,p=(y.innerRadius+y.outerRadius)/2,m=[{name:o,value:n,payload:t,dataKey:b,type:h}],g=gs(y.cx,y.cy,p,s);return x=bv(bv(bv({percent:c,cornerRadius:i,name:o,tooltipPayload:m,midAngle:s,middleRadius:p,tooltipPosition:g},t),y),{},{value:Bl(t,b),startAngle:r,endAngle:l,payload:t,paddingAngle:w(v)*u})})));return bv(bv({},y),{},{sectors:g,data:o})}));var Ev=i(9540),kv=i.n(Ev),Tv=["key"];function Mv(t){return Mv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mv(t)}function _v(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Cv(){return Cv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cv.apply(this,arguments)}function Dv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Iv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Dv(Object(r),!0).forEach((function(e){Fv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Uv(n.key),n)}}function Rv(t,e,r){return e=Lv(e),function(t,e){if(e&&("object"===Mv(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)}(t,Bv()?Reflect.construct(e,r||[],Lv(t).constructor):e.apply(t,r))}function Bv(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bv=function(){return!!t})()}function Lv(t){return Lv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lv(t)}function zv(t,e){return zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zv(t,e)}function Fv(t,e,r){return(e=Uv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uv(t){var e=function(t,e){if("object"!=Mv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Mv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Mv(e)?e:e+""}var Wv=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Fv(t=Rv(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),Fv(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),d()(e)&&e()})),Fv(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),d()(e)&&e()})),Fv(t,"handleMouseEnter",(function(e){var r=t.props.onMouseEnter;r&&r(t.props,e)})),Fv(t,"handleMouseLeave",(function(e){var r=t.props.onMouseLeave;r&&r(t.props,e)})),t}return 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&&zv(t,e)}(e,t),n=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"renderDotItem",value:function(t,e){var n;if(r().isValidElement(t))n=r().cloneElement(t,e);else if(d()(t))n=t(e);else{var i=e.key,a=_v(e,Tv);n=r().createElement(Rd,Cv({},a,{key:i,className:o("recharts-radar-dot","boolean"!=typeof t?t.className:"")}))}return n}}],(i=[{key:"renderDots",value:function(t){var n=this.props,o=n.dot,i=n.dataKey,a=rt(this.props,!1),c=rt(o,!0),u=t.map((function(t,r){var n=Iv(Iv(Iv({key:"dot-".concat(r),r:3},a),c),{},{dataKey:i,cx:t.x,cy:t.y,index:r,payload:t});return e.renderDotItem(o,n)}));return r().createElement(ht,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(t){var e,n=this.props,o=n.shape,i=n.dot,a=n.isRange,c=n.baseLinePoints,u=n.connectNulls;return e=r().isValidElement(o)?r().cloneElement(o,Iv(Iv({},this.props),{},{points:t})):d()(o)?o(Iv(Iv({},this.props),{},{points:t})):r().createElement(Id,Cv({},rt(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:t,baseLinePoints:a?c:null,connectNulls:u})),r().createElement(ht,{className:"recharts-radar-polygon"},e,i?this.renderDots(t):null)}},{key:"renderPolygonWithAnimation",value:function(){var t=this,e=this.props,n=e.points,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevPoints;return r().createElement(yd,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var r=e.t,o=l&&l.length/n.length,i=n.map((function(t,e){var n=l&&l[Math.floor(e*o)];if(n){var i=M(n.x,t.x),a=M(n.y,t.y);return Iv(Iv({},t),{},{x:i(r),y:a(r)})}var c=M(t.cx,t.x),u=M(t.cy,t.y);return Iv(Iv({},t),{},{x:c(r),y:u(r)})}));return t.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var t=this.props,e=t.points,r=t.isAnimationActive,n=t.isRange,o=this.state.prevPoints;return!(r&&e&&e.length)||n||o&&Iu()(o,e)?this.renderPolygonStatically(e):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.className,i=t.points,a=t.isAnimationActive;if(e||!i||!i.length)return null;var c=this.state.isAnimationFinished,u=o("recharts-radar",n);return r().createElement(ht,{className:u},this.renderPolygon(),(!a||c)&&ef.renderCallByParent(this.props,i))}}])&&Nv(n.prototype,i),a&&Nv(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);function $v(t){return $v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$v(t)}function Kv(){return Kv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Kv.apply(this,arguments)}function qv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qv(Object(r),!0).forEach((function(e){Xv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xv(t,e,r){var n;return n=function(t,e){if("object"!=$v(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==$v(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hv(t){return"string"==typeof t?parseInt(t,10):t}function Gv(t,e){var r="".concat(e.cx||t.cx),n=Number(r),o="".concat(e.cy||t.cy),i=Number(o);return Vv(Vv(Vv({},e),t),{},{cx:n,cy:i})}function Yv(t){return r().createElement(cv,Kv({shapeType:"sector",propTransformer:Gv},t))}Fv(Wv,"displayName","Radar"),Fv(Wv,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Fv(Wv,"getComposedData",(function(t){var e=t.radiusAxis,r=t.angleAxis,n=t.displayedData,o=t.dataKey,i=t.bandSize,a=r.cx,c=r.cy,u=!1,l=[],f="number"!==r.type&&null!=i?i:0;n.forEach((function(t,n){var i=Bl(t,r.dataKey,n),p=Bl(t,o),h=r.scale(i)+f,d=Array.isArray(p)?$s()(p):p,y=s()(d)?void 0:e.scale(d);Array.isArray(p)&&p.length>=2&&(u=!0),l.push(Iv(Iv({},gs(a,c,y,h)),{},{name:i,value:p,cx:a,cy:c,radius:y,angle:h,payload:t}))}));var p=[];return u&&l.forEach((function(t){if(Array.isArray(t.value)){var r=kv()(t.value),n=s()(r)?void 0:e.scale(r);p.push(Iv(Iv({},t),{},{radius:n},gs(a,c,n,t.angle)))}else p.push(t)})),{points:l,isRange:u,baseLinePoints:p}}));var Zv=["shape","activeShape","activeIndex","cornerRadius"],Jv=["value","background"];function Qv(t){return Qv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qv(t)}function tm(){return tm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},tm.apply(this,arguments)}function em(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?em(Object(r),!0).forEach((function(e){lm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nm(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function om(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sm(n.key),n)}}function im(t,e,r){return e=cm(e),function(t,e){if(e&&("object"===Qv(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)}(t,am()?Reflect.construct(e,r||[],cm(t).constructor):e.apply(t,r))}function am(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(am=function(){return!!t})()}function cm(t){return cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cm(t)}function um(t,e){return um=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},um(t,e)}function lm(t,e,r){return(e=sm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sm(t){var e=function(t,e){if("object"!=Qv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Qv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qv(e)?e:e+""}var fm=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return lm(t=im(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),lm(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),d()(e)&&e()})),lm(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),d()(e)&&e()})),t}return 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&&um(t,e)}(e,t),n=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],(i=[{key:"getDeltaAngle",value:function(){var t=this.props,e=t.startAngle,r=t.endAngle;return w(r-e)*Math.min(Math.abs(r-e),360)}},{key:"renderSectorsStatically",value:function(t){var e=this,n=this.props,o=n.shape,i=n.activeShape,a=n.activeIndex,c=n.cornerRadius,u=nm(n,Zv),l=rt(u,!1);return t.map((function(t,n){var s=n===a,f=rm(rm(rm(rm({},l),{},{cornerRadius:Hv(c)},t),z(e.props,t,n)),{},{className:"recharts-radial-bar-sector ".concat(t.className),forceCornerRadius:u.forceCornerRadius,cornerIsExternal:u.cornerIsExternal,isActive:s,option:s?i:o});return r().createElement(Yv,tm({},f,{key:"sector-".concat(n)}))}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,n=e.data,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return r().createElement(yd,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"radialBar-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(e){var o=e.t,i=n.map((function(t,e){var r=l&&l[e];if(r){var n=M(r.startAngle,t.startAngle),i=M(r.endAngle,t.endAngle);return rm(rm({},t),{},{startAngle:n(o),endAngle:i(o)})}var a=t.endAngle,c=t.startAngle,u=M(c,a);return rm(rm({},t),{},{endAngle:u(o)})}));return r().createElement(ht,null,t.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&Iu()(n,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(t){var e=this,n=this.props.cornerRadius,i=rt(this.props.background,!1);return t.map((function(t,a){t.value;var c=t.background,u=nm(t,Jv);if(!c)return null;var l=rm(rm(rm(rm(rm({cornerRadius:Hv(n)},u),{},{fill:"#eee"},c),i),z(e.props,t,a)),{},{index:a,className:o("recharts-radial-bar-background-sector",null==i?void 0:i.className),option:c,isActive:!1});return r().createElement(Yv,tm({},l,{key:"sector-".concat(a)}))}))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,i=t.className,a=t.background,c=t.isAnimationActive;if(e||!n||!n.length)return null;var u=this.state.isAnimationFinished,l=o("recharts-area",i);return r().createElement(ht,{className:l},a&&r().createElement(ht,{className:"recharts-radial-bar-background"},this.renderBackground(n)),r().createElement(ht,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!c||u)&&ef.renderCallByParent(rm({},this.props),n))}}])&&om(n.prototype,i),a&&om(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);lm(fm,"displayName","RadialBar"),lm(fm,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),lm(fm,"getComposedData",(function(t){var e=t.item,r=t.props,n=t.radiusAxis,o=t.radiusAxisTicks,i=t.angleAxis,a=t.angleAxisTicks,c=t.displayedData,u=t.dataKey,l=t.stackedData,s=t.barPosition,f=t.bandSize,p=t.dataStartIndex,h=Yl(s,e);if(!h)return null;var d=i.cx,y=i.cy,v=r.layout,m=e.props,b=m.children,g=m.minPointSize,x="radial"===v?i:n,O=l?x.scale.domain():null,j=ns({numericAxis:x}),S=G(b,kr),A=c.map((function(t,c){var s,m,b,x,A,P;if(l?s=Zl(l[p+c],O):(s=Bl(t,u),Array.isArray(s)||(s=[j,s])),"radial"===v){m=rs({axis:n,ticks:o,bandSize:f,offset:h.offset,entry:t,index:c}),A=i.scale(s[1]),x=i.scale(s[0]),b=m+h.size;var E=A-x;if(Math.abs(g)>0&&Math.abs(E)<Math.abs(g))A+=w(E||g)*(Math.abs(g)-Math.abs(E));P={background:{cx:d,cy:y,innerRadius:m,outerRadius:b,startAngle:r.startAngle,endAngle:r.endAngle}}}else{m=n.scale(s[0]),b=n.scale(s[1]),A=(x=rs({axis:i,ticks:a,bandSize:f,offset:h.offset,entry:t,index:c}))+h.size;var k=b-m;if(Math.abs(g)>0&&Math.abs(k)<Math.abs(g))b+=w(k||g)*(Math.abs(g)-Math.abs(k))}return rm(rm(rm(rm({},t),P),{},{payload:t,value:l?s:s[1],cx:d,cy:y,innerRadius:m,outerRadius:b,startAngle:x,endAngle:A},S&&S[c]&&S[c].props),{},{tooltipPayload:[ss(e,t)],tooltipPosition:gs(d,y,(m+b)/2,(x+A)/2)})}));return{data:A,layout:v}}));var pm=i(9136),hm=i.n(pm);function dm(t){return dm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dm(t)}function ym(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ym(Object(r),!0).forEach((function(e){mm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ym(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mm(t,e,r){var n;return n=function(t,e){if("object"!=dm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==dm(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bm=["Webkit","Moz","O","ms"];function gm(t){return gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gm(t)}function xm(){return xm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xm.apply(this,arguments)}function Om(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Om(Object(r),!0).forEach((function(e){km(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Tm(n.key),n)}}function Sm(t,e,r){return e=Pm(e),function(t,e){if(e&&("object"===gm(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)}(t,Am()?Reflect.construct(e,r||[],Pm(t).constructor):e.apply(t,r))}function Am(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Am=function(){return!!t})()}function Pm(t){return Pm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pm(t)}function Em(t,e){return Em=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Em(t,e)}function km(t,e,r){return(e=Tm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tm(t){var e=function(t,e){if("object"!=gm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gm(e)?e:e+""}var Mm=function(t){return t.changedTouches&&!!t.changedTouches.length},_m=function(t){function n(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),km(e=Sm(this,n,[t]),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),km(e,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),km(e,"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:r,startIndex:o})})),e.detachDragEndListener()})),km(e,"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),km(e,"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),km(e,"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),km(e,"handleSlideDragStart",(function(t){var r=Mm(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(e,"startX"),endX:e.handleTravellerDragStart.bind(e,"endX")},e.state={},e}return 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&&Em(t,e)}(n,t),i=n,a=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(e,r),l=Math.max(e,r),s=n.getIndexInRange(o,u),f=n.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=Bl(r[t],o,t);return d()(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-o,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=Mm(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,h=c.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),d[n]=a+y;var v=this.getIndex(d),m=v.startIndex,b=v.endIndex;this.setState(km(km({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=h.length-1,("startX"===n&&(o>i?m%p==0:b%p==0)||o<i&&b===t||"endX"===n&&(o>i?b%p==0:m%p==0)||o>i&&b===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[e],u=o.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(km({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,o=t.width,i=t.height,a=t.fill,c=t.stroke;return r().createElement("rect",{stroke:c,fill:a,x:e,y:n,width:o,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,n=t.x,o=t.y,i=t.width,a=t.height,c=t.data,u=t.children,l=t.padding,s=e.Children.only(u);return s?r().cloneElement(s,{x:n,y:o,width:i,height:a,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(t,e){var o,i,a=this,c=this.props,u=c.y,l=c.travellerWidth,s=c.height,f=c.traveller,p=c.ariaLabel,h=c.data,d=c.startIndex,y=c.endIndex,v=Math.max(t,this.props.x),m=wm(wm({},rt(this.props,!1)),{},{x:v,y:u,width:l,height:s}),b=p||"Min value: ".concat(null===(o=h[d])||void 0===o?void 0:o.name,", Max value: ").concat(null===(i=h[y])||void 0===i?void 0:i.name);return r().createElement(ht,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var n=this.props,o=n.y,i=n.height,a=n.stroke,c=n.travellerWidth,u=Math.min(t,e)+c,l=Math.max(Math.abs(e-t)-c,0);return r().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:o,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,o=t.y,i=t.height,a=t.travellerWidth,c=t.stroke,u=this.state,l=u.startX,s=u.endX,f={pointerEvents:"none",fill:c};return r().createElement(ht,{className:"recharts-brush-texts"},r().createElement(pn,xm({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:o+i/2},f),this.getTextOfTick(e)),r().createElement(pn,xm({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:o+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,i=t.children,a=t.x,c=t.y,u=t.width,l=t.height,s=t.alwaysShowText,f=this.state,p=f.startX,h=f.endX,d=f.isTextActive,y=f.isSlideMoving,v=f.isTravellerMoving,m=f.isTravellerFocused;if(!e||!e.length||!S(a)||!S(c)||!S(u)||!S(l)||u<=0||l<=0)return null;var b=o("recharts-brush",n),g=1===r().Children.count(i),x=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=bm.reduce((function(t,n){return vm(vm({},t),{},mm({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return r().createElement(ht,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(p,h),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(h,"endX"),(d||y||v||m||s)&&this.renderText())}}],c=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,o=t.width,i=t.height,a=t.stroke,c=Math.floor(n+i/2)-1;return r().createElement(r().Fragment,null,r().createElement("rect",{x:e,y:n,width:o,height:i,fill:a,stroke:"none"}),r().createElement("line",{x1:e+1,y1:c,x2:e+o-1,y2:c,fill:"none",stroke:"#fff"}),r().createElement("line",{x1:e+1,y1:c+2,x2:e+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):n.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return wm({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=Sn().domain(hm()(0,c)).range([o,o+i-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],a&&jm(i.prototype,a),c&&jm(i,c),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,a,c}(e.PureComponent);km(_m,"displayName","Brush"),km(_m,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Cm=i(9500),Dm=i.n(Cm),Im=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},Nm=i(6452),Rm=i.n(Nm),Bm=i(164),Lm=i.n(Bm),zm=["x","y"];function Fm(t){return Fm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fm(t)}function Um(){return Um=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Um.apply(this,arguments)}function Wm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wm(Object(r),!0).forEach((function(e){Km(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Km(t,e,r){var n;return n=function(t,e){if("object"!=Fm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Fm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Fm(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qm(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Vm(t,e){var r=t.x,n=t.y,o=qm(t,zm),i="".concat(r),a=parseInt(i,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return $m($m($m($m($m({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function Xm(t){return r().createElement(cv,Um({shapeType:"rectangle",propTransformer:Vm,activeClassName:"recharts-active-bar"},t))}var Hm,Gm=["value","background"];function Ym(t){return Ym="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ym(t)}function Zm(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Jm(){return Jm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Jm.apply(this,arguments)}function Qm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qm(Object(r),!0).forEach((function(e){ab(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function eb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cb(n.key),n)}}function rb(t,e,r){return e=ob(e),function(t,e){if(e&&("object"===Ym(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)}(t,nb()?Reflect.construct(e,r||[],ob(t).constructor):e.apply(t,r))}function nb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(nb=function(){return!!t})()}function ob(t){return ob=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ob(t)}function ib(t,e){return ib=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ib(t,e)}function ab(t,e,r){return(e=cb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cb(t){var e=function(t,e){if("object"!=Ym(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ym(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ym(e)?e:e+""}var ub=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return ab(t=rb(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),ab(t,"id",E("recharts-bar-")),ab(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),ab(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return 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&&ib(t,e)}(e,t),n=e,i=[{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props,o=n.shape,i=n.dataKey,a=n.activeIndex,c=n.activeBar,u=rt(this.props,!1);return t&&t.map((function(t,n){var l=n===a,s=l?c:o,f=tb(tb(tb({},u),t),{},{isActive:l,option:s,index:n,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return r().createElement(ht,Jm({className:"recharts-bar-rectangle"},z(e.props,t,n),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),r().createElement(Xm,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,n=e.data,o=e.layout,i=e.isAnimationActive,a=e.animationBegin,c=e.animationDuration,u=e.animationEasing,l=e.animationId,s=this.state.prevData;return r().createElement(yd,{begin:a,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,a=n.map((function(t,e){var r=s&&s[e];if(r){var n=M(r.x,t.x),a=M(r.y,t.y),c=M(r.width,t.width),u=M(r.height,t.height);return tb(tb({},t),{},{x:n(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===o){var l=M(0,t.height)(i);return tb(tb({},t),{},{y:t.y+t.height-l,height:l})}var f=M(0,t.width)(i);return tb(tb({},t),{},{width:f})}));return r().createElement(ht,null,t.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&Iu()(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,n=e.data,o=e.dataKey,i=e.activeIndex,a=rt(this.props.background,!1);return n.map((function(e,n){e.value;var c=e.background,u=Zm(e,Gm);if(!c)return null;var l=tb(tb(tb(tb(tb({},u),{},{fill:"#eee"},c),a),z(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:o,index:n,className:"recharts-bar-background-rectangle"});return r().createElement(Xm,Jm({key:"background-bar-".concat(n),option:t.props.background,isActive:n===i},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,i=n.xAxis,a=n.yAxis,c=n.layout,u=G(n.children,Al);if(!u)return null;var l="vertical"===c?o[0].height/2:o[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:Bl(t,e)}},f={clipPath:t?"url(#clipPath-".concat(e,")"):null};return r().createElement(ht,f,u.map((function(t){return r().cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,offset:l,dataPointFormatter:s})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,i=t.className,a=t.xAxis,c=t.yAxis,u=t.left,l=t.top,f=t.width,p=t.height,h=t.isAnimationActive,d=t.background,y=t.id;if(e||!n||!n.length)return null;var v=this.state.isAnimationFinished,m=o("recharts-bar",i),b=a&&a.allowDataOverflow,g=c&&c.allowDataOverflow,x=b||g,O=s()(y)?this.id:y;return r().createElement(ht,{className:m},b||g?r().createElement("defs",null,r().createElement("clipPath",{id:"clipPath-".concat(O)},r().createElement("rect",{x:b?u:u-f/2,y:g?l:l-p/2,width:b?f:2*f,height:g?p:2*p}))):null,r().createElement(ht,{className:"recharts-bar-rectangles",clipPath:x?"url(#clipPath-".concat(O,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(x,O),(!h||v)&&ef.renderCallByParent(this.props,n))}}],a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],i&&eb(n.prototype,i),a&&eb(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);function lb(t){return lb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lb(t)}function sb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,db(n.key),n)}}function fb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fb(Object(r),!0).forEach((function(e){hb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hb(t,e,r){return(e=db(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function db(t){var e=function(t,e){if("object"!=lb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lb(e)?e:e+""}Hm=ub,ab(ub,"displayName","Bar"),ab(ub,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),ab(ub,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=Yl(n,r);if(!h)return null;var d=e.layout,y=r.type.defaultProps,v=void 0!==y?tb(tb({},y),r.props):r.props,m=v.dataKey,b=v.children,g=v.minPointSize,x="horizontal"===d?a:i,O=l?x.scale.domain():null,j=ns({numericAxis:x}),S=G(b,kr),A=f.map((function(t,e){var n,f,p,y,v,b;l?n=Zl(l[s+e],O):(n=Bl(t,m),Array.isArray(n)||(n=[j,n]));var x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||fl(!1),e)}}(g,Hm.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var A,P=[a.scale(n[0]),a.scale(n[1])],E=P[0],k=P[1];f=rs({axis:i,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(A=null!=k?k:E)&&void 0!==A?A:void 0,y=h.size;var T=E-k;if(v=Number.isNaN(T)?0:T,b={x:f,y:a.y,width:y,height:a.height},Math.abs(x)>0&&Math.abs(v)<Math.abs(x)){var M=w(v||x)*(Math.abs(x)-Math.abs(v));p-=M,v+=M}}else{var _=[i.scale(n[0]),i.scale(n[1])],C=_[0],D=_[1];if(f=C,p=rs({axis:a,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),y=D-C,v=h.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(x)>0&&Math.abs(y)<Math.abs(x))y+=w(y||x)*(Math.abs(x)-Math.abs(y))}return tb(tb(tb({},t),{},{x:f,y:p,width:y,height:v,value:l?n:n[1],payload:t,background:b},S&&S[e]&&S[e].props),{},{tooltipPayload:[ss(r,t)],tooltipPosition:{x:f+y/2,y:p+v/2}})}));return tb({data:A,layout:d},p)}));var yb=function(t,e,r,n,o){var i=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!Y(u,ub);return l.reduce((function(i,a){var u,l,p,h,d,y=e[a],v=y.orientation,m=y.domain,b=y.padding,g=void 0===b?{}:b,x=y.mirror,O=y.reversed,w="".concat(v).concat(x?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var j=m[1]-m[0],S=1/0,A=y.categoricalDomain.sort();if(A.forEach((function(t,e){e>0&&(S=Math.min((t||0)-(A[e-1]||0),S))})),Number.isFinite(S)){var P=S/j,E="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=P*E/2),"no-gap"===y.padding){var T=k(t.barCategoryGap,P*E),M=P*E/2;u=M-T-(M-T)/E*T}}}l="xAxis"===n?[r.left+(g.left||0)+(u||0),r.left+r.width-(g.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0)+(u||0),r.top+r.height-(g.bottom||0)-(u||0)]:y.range,O&&(l=[l[1],l[0]]);var _=Xl(y,o,f),C=_.scale,D=_.realScaleType;C.domain(m).range(l),Gl(C);var I=ts(C,pb(pb({},y),{},{realScaleType:D}));"xAxis"===n?(d="top"===v&&!x||"bottom"===v&&x,p=r.left,h=s[w]-d*y.height):"yAxis"===n&&(d="left"===v&&!x||"right"===v&&x,p=s[w]-d*y.width,h=r.top);var N=pb(pb(pb({},y),I),{},{realScaleType:D,x:p,y:h,scale:C,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return N.bandSize=us(N,I),y.hide||"xAxis"!==n?y.hide||(s[w]+=(d?-1:1)*N.width):s[w]+=(d?-1:1)*N.height,pb(pb({},i),{},hb({},a,N))}),{})},vb=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},mb=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&sb(e.prototype,r),n&&sb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();hb(mb,"EPS",1e-4);var bb=function(t){var e=Object.keys(t).reduce((function(e,r){return pb(pb({},e),{},hb({},r,mb.create(t[r])))}),{});return pb(pb({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return Rm()(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return Lm()(t,(function(t,r){return e[r].isInRange(t)}))}})};var gb=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)},xb=i(7120),Ob=i.n(xb),wb=i(1576),jb=i.n(wb)()((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));var Sb=(0,e.createContext)(void 0),Ab=(0,e.createContext)(void 0),Pb=(0,e.createContext)(void 0),Eb=(0,e.createContext)({}),kb=(0,e.createContext)(void 0),Tb=(0,e.createContext)(0),Mb=(0,e.createContext)(0),_b=function(t){var e=t.state,n=e.xAxisMap,o=e.yAxisMap,i=e.offset,a=t.clipPathId,c=t.children,u=t.width,l=t.height,s=jb(i);return r().createElement(Sb.Provider,{value:n},r().createElement(Ab.Provider,{value:o},r().createElement(Eb.Provider,{value:i},r().createElement(Pb.Provider,{value:s},r().createElement(kb.Provider,{value:a},r().createElement(Tb.Provider,{value:l},r().createElement(Mb.Provider,{value:u},c)))))))};var Cb=function(t){var r=(0,e.useContext)(Sb);null==r&&fl(!1);var n=r[t];return null==n&&fl(!1),n},Db=function(){var t=(0,e.useContext)(Sb);return T(t)},Ib=function(){var t=(0,e.useContext)(Ab);return Ob()(t,(function(t){return Lm()(t.domain,Number.isFinite)}))||T(t)},Nb=function(t){var r=(0,e.useContext)(Ab);null==r&&fl(!1);var n=r[t];return null==n&&fl(!1),n},Rb=function(){return(0,e.useContext)(Eb)},Bb=function(){return(0,e.useContext)(Mb)},Lb=function(){return(0,e.useContext)(Tb)};function zb(t){return zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zb(t)}function Fb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Hb(n.key),n)}}function Ub(t,e,r){return e=$b(e),function(t,e){if(e&&("object"===zb(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)}(t,Wb()?Reflect.construct(e,r||[],$b(t).constructor):e.apply(t,r))}function Wb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Wb=function(){return!!t})()}function $b(t){return $b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$b(t)}function Kb(t,e){return Kb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Kb(t,e)}function qb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qb(Object(r),!0).forEach((function(e){Xb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xb(t,e,r){return(e=Hb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hb(t){var e=function(t,e){if("object"!=zb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zb(e)?e:e+""}function Gb(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Yb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yb(t,e)}(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 Yb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zb(){return Zb=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Zb.apply(this,arguments)}function Jb(t){var n=t.x,i=t.y,a=t.segment,c=t.xAxisId,u=t.yAxisId,l=t.shape,s=t.className,f=t.alwaysShow,p=(0,e.useContext)(kb),h=Cb(c),y=Nb(u),v=(0,e.useContext)(Pb);if(!p||!v)return null;dt(void 0===f,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=function(t,e,r,n,o,i,a,c,u){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var h=u.y,d=t.y.apply(h,{position:i});if(Im(u,"discard")&&!t.y.isInRange(d))return null;var y=[{x:l+f,y:d},{x:l,y:d}];return"left"===c?y.reverse():y}if(e){var v=u.x,m=t.x.apply(v,{position:i});if(Im(u,"discard")&&!t.x.isInRange(m))return null;var b=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?b.reverse():b}if(n){var g=u.segment.map((function(e){return t.apply(e,{position:i})}));return Im(u,"discard")&&Dm()(g,(function(e){return!t.isInRange(e)}))?null:g}return null}(bb({x:h.scale,y:y.scale}),A(n),A(i),a&&2===a.length,v,t.position,h.orientation,y.orientation,t);if(!m)return null;var b=Gb(m,2),g=b[0],x=g.x,O=g.y,w=b[1],j=w.x,S=w.y,P=Vb(Vb({clipPath:Im(t,"hidden")?"url(#".concat(p,")"):void 0},rt(t,!0)),{},{x1:x,y1:O,x2:j,y2:S});return r().createElement(ht,{className:o("recharts-reference-line",s)},function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement("line",Zb({},e,{className:"recharts-reference-line-line"}))}(l,P),Fs.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return vb({x:e,y:r},{x:n,y:o})}({x1:x,y1:O,x2:j,y2:S})))}var Qb=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ub(this,e,arguments)}return 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&&Kb(t,e)}(e,t),n=e,(o=[{key:"render",value:function(){return r().createElement(Jb,this.props)}}])&&Fb(n.prototype,o),i&&Fb(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r().Component);function tg(){return tg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},tg.apply(this,arguments)}function eg(t){return eg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eg(t)}function rg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ng(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rg(Object(r),!0).forEach((function(e){lg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function og(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sg(n.key),n)}}function ig(t,e,r){return e=cg(e),function(t,e){if(e&&("object"===eg(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)}(t,ag()?Reflect.construct(e,r||[],cg(t).constructor):e.apply(t,r))}function ag(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ag=function(){return!!t})()}function cg(t){return cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cg(t)}function ug(t,e){return ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ug(t,e)}function lg(t,e,r){return(e=sg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sg(t){var e=function(t,e){if("object"!=eg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=eg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==eg(e)?e:e+""}Xb(Qb,"displayName","ReferenceLine"),Xb(Qb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var fg=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ig(this,e,arguments)}return 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&&ug(t,e)}(e,t),n=e,i=[{key:"render",value:function(){var t=this.props,n=t.x,i=t.y,a=t.r,c=t.alwaysShow,u=t.clipPathId,l=A(n),s=A(i);if(dt(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!s)return null;var f=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=bb({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return Im(t,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!f)return null;var p=f.x,h=f.y,d=this.props,y=d.shape,v=d.className,m=ng(ng({clipPath:Im(this.props,"hidden")?"url(#".concat(u,")"):void 0},rt(this.props,!0)),{},{cx:p,cy:h});return r().createElement(ht,{className:o("recharts-reference-dot",v)},e.renderDot(y,m),Fs.renderCallByParent(this.props,{x:p-a,y:h-a,width:2*a,height:2*a}))}}],i&&og(n.prototype,i),a&&og(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(r().Component);function pg(){return pg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pg.apply(this,arguments)}function hg(t){return hg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hg(t)}function dg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dg(Object(r),!0).forEach((function(e){Og(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wg(n.key),n)}}function mg(t,e,r){return e=gg(e),function(t,e){if(e&&("object"===hg(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)}(t,bg()?Reflect.construct(e,r||[],gg(t).constructor):e.apply(t,r))}function bg(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(bg=function(){return!!t})()}function gg(t){return gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gg(t)}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,r){return(e=wg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wg(t){var e=function(t,e){if("object"!=hg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=hg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hg(e)?e:e+""}lg(fg,"displayName","ReferenceDot"),lg(fg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),lg(fg,"renderDot",(function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(Rd,tg({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var jg=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),mg(this,e,arguments)}return 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)}(e,t),n=e,(i=[{key:"render",value:function(){var t=this.props,n=t.x1,i=t.x2,a=t.y1,c=t.y2,u=t.className,l=t.alwaysShow,s=t.clipPathId;dt(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=A(n),p=A(i),h=A(a),d=A(c),y=this.props.shape;if(!(f||p||h||d||y))return null;var v=function(t,e,r,n,o){var i=o.x1,a=o.x2,c=o.y1,u=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=bb({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!Im(o,"discard")||f.isInRange(p)&&f.isInRange(h)?vb(p,h):null}(f,p,h,d,this.props);if(!v&&!y)return null;var m=Im(this.props,"hidden")?"url(#".concat(s,")"):void 0;return r().createElement(ht,{className:o("recharts-reference-area",u)},e.renderRect(y,yg(yg({clipPath:m},rt(this.props,!0)),v)),Fs.renderCallByParent(this.props,v))}}])&&vg(n.prototype,i),a&&vg(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(r().Component);function Sg(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e){if(void 0!==r&&!0!==r(t[o]))return;n.push(t[o])}return n}function Ag(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function Pg(t){return Pg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pg(t)}function Eg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Eg(Object(r),!0).forEach((function(e){Tg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Eg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tg(t,e,r){var n;return n=function(t,e){if("object"!=Pg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Pg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Pg(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mg(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(S(u)||ar.isSsr)return function(t,e){return Sg(t,e+1)}(o,"number"==typeof u&&S(u)?u:0);var p=[],h="top"===c||"bottom"===c?"width":"height",y=s&&"width"===h?Rr(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},v=function(t,n){var o=d()(l)?l(t.value,n):t.value;return"width"===h?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return gb(n,r)}(Rr(o,{fontSize:e,letterSpacing:r}),y,f):Rr(o,{fontSize:e,letterSpacing:r})[h]},m=o.length>=2?w(o[1].coordinate-o[0].coordinate):1,b=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,c=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,m,h);return"equidistantPreserveStart"===u?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:Sg(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,d=0===l||Ag(t,h,p,f,u);d||(l=0,f=c,s+=1),d&&(f=h+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(m,b,v,o,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,o,i){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(i){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=kg(kg({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),Ag(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=kg(kg({},s),{},{isShow:!0}))}for(var h=i?c-1:c,d=function(e){var n,i=a[e],c=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*c()/2-u);a[e]=i=kg(kg({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=kg(kg({},i),{},{tickCoord:i.coordinate});Ag(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=kg(kg({},i),{},{isShow:!0}))},y=0;y<h;y++)d(y);return a}(m,b,v,o,a,"preserveStartEnd"===u):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=e.start,u=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);i[e]=l=kg(kg({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=kg(kg({},l),{},{tickCoord:l.coordinate});Ag(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=kg(kg({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(m,b,v,o,a),p.filter((function(t){return t.isShow})))}Og(jg,"displayName","ReferenceArea"),Og(jg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),Og(jg,"renderRect",(function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(Pd,pg({},e,{className:"recharts-reference-area-rect"}))}));var _g=["viewBox"],Cg=["viewBox"],Dg=["ticks"];function Ig(t){return Ig="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ig(t)}function Ng(){return Ng=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ng.apply(this,arguments)}function Rg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rg(Object(r),!0).forEach((function(e){Kg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lg(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function zg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qg(n.key),n)}}function Fg(t,e,r){return e=Wg(e),function(t,e){if(e&&("object"===Ig(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)}(t,Ug()?Reflect.construct(e,r||[],Wg(t).constructor):e.apply(t,r))}function Ug(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ug=function(){return!!t})()}function Wg(t){return Wg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wg(t)}function $g(t,e){return $g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$g(t,e)}function Kg(t,e,r){return(e=qg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qg(t){var e=function(t,e){if("object"!=Ig(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ig(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ig(e)?e:e+""}var Vg=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=Fg(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return 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&&$g(t,e)}(e,t),n=e,i=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=Lg(t,_g),o=this.props,i=o.viewBox,a=Lg(o,Cg);return!C(r,i)||!C(n,a)||!C(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,d=c.mirror,y=c.tickMargin,v=d?-1:1,m=t.tickSize||h,b=S(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!d*f)-v*m)-v*y,i=b;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!d*s)-v*m)-v*y,a=b;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +d*s)+v*m)+v*y,a=b;break;default:e=r=t.coordinate,a=(n=(o=l+ +d*f)+v*m)+v*y,i=b}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,i=t.width,a=t.height,c=t.orientation,l=t.mirror,s=t.axisLine,f=Bg(Bg(Bg({},rt(this.props,!1)),rt(s,!1)),{},{fill:"none"});if("top"===c||"bottom"===c){var p=+("top"===c&&!l||"bottom"===c&&l);f=Bg(Bg({},f),{},{x1:e,y1:n+p*a,x2:e+i,y2:n+p*a})}else{var h=+("left"===c&&!l||"right"===c&&l);f=Bg(Bg({},f),{},{x1:e+h*i,y1:n,x2:e+h*i,y2:n+a})}return r().createElement("line",Ng({},f,{className:o("recharts-cartesian-axis-line",u()(s,"className"))}))}},{key:"renderTicks",value:function(t,n,i){var a=this,c=this.props,l=c.tickLine,s=c.stroke,f=c.tick,p=c.tickFormatter,h=c.unit,y=Mg(Bg(Bg({},this.props),{},{ticks:t}),n,i),v=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),b=rt(this.props,!1),g=rt(f,!1),x=Bg(Bg({},b),{},{fill:"none"},rt(l,!1)),O=y.map((function(t,n){var i=a.getTickLineCoord(t),c=i.line,O=i.tick,w=Bg(Bg(Bg(Bg({textAnchor:v,verticalAnchor:m},b),{},{stroke:"none",fill:s},g),O),{},{index:n,payload:t,visibleTicksCount:y.length,tickFormatter:p});return r().createElement(ht,Ng({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},z(a.props,t,n)),l&&r().createElement("line",Ng({},x,c,{className:o("recharts-cartesian-axis-tick-line",u()(l,"className"))})),f&&e.renderTickItem(f,w,"".concat(d()(p)?p(t.value,n):t.value).concat(h||"")))}));return r().createElement("g",{className:"recharts-cartesian-axis-ticks"},O)}},{key:"render",value:function(){var t=this,e=this.props,n=e.axisLine,i=e.width,a=e.height,c=e.ticksGenerator,u=e.className;if(e.hide)return null;var l=this.props,s=l.ticks,f=Lg(l,Dg),p=s;return d()(c)&&(p=s&&s.length>0?c(this.props):c(f)),i<=0||a<=0||!p||!p.length?null:r().createElement(ht,{className:o("recharts-cartesian-axis",u),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),Fs.renderCallByParent(this.props))}}],a=[{key:"renderTickItem",value:function(t,e,n){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(pn,Ng({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],i&&zg(n.prototype,i),a&&zg(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.Component);Kg(Vg,"displayName","CartesianAxis"),Kg(Vg,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Xg=["x1","y1","x2","y2","key"],Hg=["offset"];function Gg(t){return Gg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gg(t)}function Yg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yg(Object(r),!0).forEach((function(e){Jg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jg(t,e,r){var n;return n=function(t,e){if("object"!=Gg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Gg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Gg(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qg(){return Qg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Qg.apply(this,arguments)}function tx(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var ex=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,o=t.x,i=t.y,a=t.width,c=t.height,u=t.ry;return r().createElement("rect",{x:o,y:i,ry:u,width:a,height:c,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function rx(t,e){var n;if(r().isValidElement(t))n=r().cloneElement(t,e);else if(d()(t))n=t(e);else{var o=e.x1,i=e.y1,a=e.x2,c=e.y2,u=e.key,l=tx(e,Xg),s=rt(l,!1),f=(s.offset,tx(s,Hg));n=r().createElement("line",Qg({},f,{x1:o,y1:i,x2:a,y2:c,fill:"none",key:u}))}return n}function nx(t){var e=t.x,n=t.width,o=t.horizontal,i=void 0===o||o,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var c=a.map((function(r,o){var a=Zg(Zg({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(o),index:o});return rx(i,a)}));return r().createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function ox(t){var e=t.y,n=t.height,o=t.vertical,i=void 0===o||o,a=t.verticalPoints;if(!i||!a||!a.length)return null;var c=a.map((function(r,o){var a=Zg(Zg({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(o),index:o});return rx(i,a)}));return r().createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function ix(t){var e=t.horizontalFill,n=t.fillOpacity,o=t.x,i=t.y,a=t.width,c=t.height,u=t.horizontalPoints,l=t.horizontal;if(!(void 0===l||l)||!e||!e.length)return null;var s=u.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==s[0]&&s.unshift(0);var f=s.map((function(t,u){var l=!s[u+1]?i+c-t:s[u+1]-t;if(l<=0)return null;var f=u%e.length;return r().createElement("rect",{key:"react-".concat(u),y:t,x:o,height:l,width:a,stroke:"none",fill:e[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return r().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function ax(t){var e=t.vertical,n=void 0===e||e,o=t.verticalFill,i=t.fillOpacity,a=t.x,c=t.y,u=t.width,l=t.height,s=t.verticalPoints;if(!n||!o||!o.length)return null;var f=s.map((function(t){return Math.round(t+a-a)})).sort((function(t,e){return t-e}));a!==f[0]&&f.unshift(0);var p=f.map((function(t,e){var n=!f[e+1]?a+u-t:f[e+1]-t;if(n<=0)return null;var s=e%o.length;return r().createElement("rect",{key:"react-".concat(e),x:t,y:c,width:n,height:l,stroke:"none",fill:o[s],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return r().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var cx=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return $l(Mg(Zg(Zg(Zg({},Vg.defaultProps),r),{},{ticks:Kl(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},ux=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return $l(Mg(Zg(Zg(Zg({},Vg.defaultProps),r),{},{ticks:Kl(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},lx={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function sx(t){var e,n,o,i,a,c,u=Bb(),l=Lb(),s=Rb(),f=Zg(Zg({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:lx.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:lx.fill,horizontal:null!==(o=t.horizontal)&&void 0!==o?o:lx.horizontal,horizontalFill:null!==(i=t.horizontalFill)&&void 0!==i?i:lx.horizontalFill,vertical:null!==(a=t.vertical)&&void 0!==a?a:lx.vertical,verticalFill:null!==(c=t.verticalFill)&&void 0!==c?c:lx.verticalFill,x:S(t.x)?t.x:s.left,y:S(t.y)?t.y:s.top,width:S(t.width)?t.width:s.width,height:S(t.height)?t.height:s.height}),p=f.x,h=f.y,y=f.width,v=f.height,m=f.syncWithTicks,b=f.horizontalValues,g=f.verticalValues,x=Db(),O=Ib();if(!S(y)||y<=0||!S(v)||v<=0||!S(p)||p!==+p||!S(h)||h!==+h)return null;var w=f.verticalCoordinatesGenerator||cx,j=f.horizontalCoordinatesGenerator||ux,A=f.horizontalPoints,P=f.verticalPoints;if((!A||!A.length)&&d()(j)){var E=b&&b.length,k=j({yAxis:O?Zg(Zg({},O),{},{ticks:E?b:O.ticks}):void 0,width:u,height:l,offset:s},!!E||m);dt(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Gg(k),"]")),Array.isArray(k)&&(A=k)}if((!P||!P.length)&&d()(w)){var T=g&&g.length,M=w({xAxis:x?Zg(Zg({},x),{},{ticks:T?g:x.ticks}):void 0,width:u,height:l,offset:s},!!T||m);dt(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Gg(M),"]")),Array.isArray(M)&&(P=M)}return r().createElement("g",{className:"recharts-cartesian-grid"},r().createElement(ex,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),r().createElement(nx,Qg({},f,{offset:s,horizontalPoints:A,xAxis:x,yAxis:O})),r().createElement(ox,Qg({},f,{offset:s,verticalPoints:P,xAxis:x,yAxis:O})),r().createElement(ix,Qg({},f,{horizontalPoints:A})),r().createElement(ax,Qg({},f,{verticalPoints:P})))}sx.displayName="CartesianGrid";var fx=["type","layout","connectNulls","ref"],px=["key"];function hx(t){return hx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hx(t)}function dx(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function yx(){return yx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yx.apply(this,arguments)}function vx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vx(Object(r),!0).forEach((function(e){Ax(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bx(t){return function(t){if(Array.isArray(t))return gx(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)return;if("string"==typeof t)return gx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gx(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Px(n.key),n)}}function Ox(t,e,r){return e=jx(e),function(t,e){if(e&&("object"===hx(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)}(t,wx()?Reflect.construct(e,r||[],jx(t).constructor):e.apply(t,r))}function wx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wx=function(){return!!t})()}function jx(t){return jx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jx(t)}function Sx(t,e){return Sx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Sx(t,e)}function Ax(t,e,r){return(e=Px(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Px(t){var e=function(t,e){if("object"!=hx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=hx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hx(e)?e:e+""}var Ex=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Ax(t=Ox(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),Ax(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),Ax(t,"getStrokeDasharray",(function(r,n,o){var i=o.reduce((function(t,e){return t+e}));if(!i)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,u=n-r,l=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){l=[].concat(bx(o.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(bx(e.repeat(o,a)),bx(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),Ax(t,"id",E("recharts-line-")),Ax(t,"pathRef",(function(e){t.mainCurve=e})),Ax(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),Ax(t,"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return 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&&Sx(t,e)}(e,t),n=e,i=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.points,i=n.xAxis,a=n.yAxis,c=n.layout,u=G(n.children,Al);if(!u)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Bl(t.payload,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return r().createElement(ht,s,u.map((function(t){return r().cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,n,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,c=i.points,u=i.dataKey,l=rt(this.props,!1),s=rt(a,!0),f=c.map((function(t,r){var n=mx(mx(mx({key:"dot-".concat(r),r:3},l),s),{},{value:t.value,dataKey:u,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(a,n)})),p={clipPath:t?"url(#clipPath-".concat(n?"":"dots-").concat(o,")"):null};return r().createElement(ht,yx({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,e,n,o){var i=this.props,a=i.type,c=i.layout,u=i.connectNulls,l=(i.ref,dx(i,fx)),s=mx(mx(mx({},rt(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},o),{},{type:a,layout:c,connectNulls:u});return r().createElement(Gf,yx({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,o=this.props,i=o.points,a=o.strokeDasharray,c=o.isAnimationActive,u=o.animationBegin,l=o.animationDuration,s=o.animationEasing,f=o.animationId,p=o.animateNewValues,h=o.width,d=o.height,y=this.state,v=y.prevPoints,m=y.totalLength;return r().createElement(yd,{begin:u,duration:l,isActive:c,easing:s,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var o=r.t;if(v){var c=v.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=M(n.x,t.x),a=M(n.y,t.y);return mx(mx({},t),{},{x:i(o),y:a(o)})}if(p){var u=M(2*h,t.x),l=M(d/2,t.y);return mx(mx({},t),{},{x:u(o),y:l(o)})}return mx(mx({},t),{},{x:t.x,y:t.y})}));return n.renderCurveStatically(u,t,e)}var l,s=M(0,m)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=n.getStrokeDasharray(s,m,f)}else l=n.generateSimpleStrokeDasharray(m,s);return n.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!Iu()(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,i=e.dot,a=e.points,c=e.className,u=e.xAxis,l=e.yAxis,f=e.top,p=e.left,h=e.width,d=e.height,y=e.isAnimationActive,v=e.id;if(n||!a||!a.length)return null;var m=this.state.isAnimationFinished,b=1===a.length,g=o("recharts-line",c),x=u&&u.allowDataOverflow,O=l&&l.allowDataOverflow,w=x||O,j=s()(v)?this.id:v,S=null!==(t=rt(i,!1))&&void 0!==t?t:{r:3,strokeWidth:2},A=S.r,P=void 0===A?3:A,E=S.strokeWidth,k=void 0===E?2:E,T=(tt(i)?i:{}).clipDot,M=void 0===T||T,_=2*P+k;return r().createElement(ht,{className:g},x||O?r().createElement("defs",null,r().createElement("clipPath",{id:"clipPath-".concat(j)},r().createElement("rect",{x:x?p:p-h/2,y:O?f:f-d/2,width:x?h:2*h,height:O?d:2*d})),!M&&r().createElement("clipPath",{id:"clipPath-dots-".concat(j)},r().createElement("rect",{x:p-_/2,y:f-_/2,width:h+_,height:d+_}))):null,!b&&this.renderCurve(w,j),this.renderErrorBar(w,j),(b||i)&&this.renderDots(w,M,j),(!y||m)&&ef.renderCallByParent(this.props,a))}}],a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(bx(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(bx(n),bx(r));return n}},{key:"renderDotItem",value:function(t,e){var n;if(r().isValidElement(t))n=r().cloneElement(t,e);else if(d()(t))n=t(e);else{var i=e.key,a=dx(e,px),c=o("recharts-line-dot","boolean"!=typeof t?t.className:"");n=r().createElement(Rd,yx({key:i},a,{className:c}))}return n}}],i&&xx(n.prototype,i),a&&xx(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);Ax(Ex,"displayName","Line"),Ax(Ex,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ar.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),Ax(Ex,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,f=e.layout,p=u.map((function(t,e){var u=Bl(t,a);return"horizontal"===f?{x:es({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:s()(u)?null:n.scale(u),value:u,payload:t}:{x:s()(u)?null:r.scale(u),y:es({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}}));return mx({points:p,layout:f},l)}));var kx,Tx=["layout","type","stroke","connectNulls","isRange","ref"],Mx=["key"];function _x(t){return _x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_x(t)}function Cx(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Dx(){return Dx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dx.apply(this,arguments)}function Ix(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Nx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ix(Object(r),!0).forEach((function(e){Ux(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ix(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Rx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Wx(n.key),n)}}function Bx(t,e,r){return e=zx(e),function(t,e){if(e&&("object"===_x(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)}(t,Lx()?Reflect.construct(e,r||[],zx(t).constructor):e.apply(t,r))}function Lx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Lx=function(){return!!t})()}function zx(t){return zx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zx(t)}function Fx(t,e){return Fx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fx(t,e)}function Ux(t,e,r){return(e=Wx(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wx(t){var e=function(t,e){if("object"!=_x(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_x(e)?e:e+""}var $x=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Ux(t=Bx(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),Ux(t,"id",E("recharts-area-")),Ux(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),d()(e)&&e()})),Ux(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),d()(e)&&e()})),t}return 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&&Fx(t,e)}(e,t),n=e,i=[{key:"renderDots",value:function(t,n,o){var i=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(i&&!a)return null;var c=this.props,u=c.dot,l=c.points,s=c.dataKey,f=rt(this.props,!1),p=rt(u,!0),h=l.map((function(t,r){var n=Nx(Nx(Nx({key:"dot-".concat(r),r:3},f),p),{},{index:r,cx:t.x,cy:t.y,dataKey:s,value:t.value,payload:t.payload,points:l});return e.renderDotItem(u,n)})),d={clipPath:t?"url(#clipPath-".concat(n?"":"dots-").concat(o,")"):null};return r().createElement(ht,Dx({className:"recharts-area-dots"},d),h)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,n=e.baseLine,o=e.points,i=e.strokeWidth,a=o[0].x,c=o[o.length-1].x,u=t*Math.abs(a-c),l=ku()(o.map((function(t){return t.y||0})));return S(n)&&"number"==typeof n?l=Math.max(n,l):n&&Array.isArray(n)&&n.length&&(l=Math.max(ku()(n.map((function(t){return t.y||0}))),l)),S(l)?r().createElement("rect",{x:a<c?a:a-u,y:0,width:u,height:Math.floor(l+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,n=e.baseLine,o=e.points,i=e.strokeWidth,a=o[0].y,c=o[o.length-1].y,u=t*Math.abs(a-c),l=ku()(o.map((function(t){return t.x||0})));return S(n)&&"number"==typeof n?l=Math.max(n,l):n&&Array.isArray(n)&&n.length&&(l=Math.max(ku()(n.map((function(t){return t.x||0}))),l)),S(l)?r().createElement("rect",{x:0,y:a<c?a:a-u,width:l+(i?parseInt("".concat(i),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,n,o){var i=this.props,a=i.layout,c=i.type,u=i.stroke,l=i.connectNulls,s=i.isRange,f=(i.ref,Cx(i,Tx));return r().createElement(ht,{clipPath:n?"url(#clipPath-".concat(o,")"):null},r().createElement(Gf,Dx({},rt(f,!0),{points:t,connectNulls:l,type:c,baseLine:e,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==u&&r().createElement(Gf,Dx({},rt(this.props,!1),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:t})),"none"!==u&&s&&r().createElement(Gf,Dx({},rt(this.props,!1),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var n=this,o=this.props,i=o.points,a=o.baseLine,c=o.isAnimationActive,u=o.animationBegin,l=o.animationDuration,f=o.animationEasing,p=o.animationId,h=this.state,d=h.prevPoints,y=h.prevBaseLine;return r().createElement(yd,{begin:u,duration:l,isActive:c,easing:f,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(o){var c=o.t;if(d){var u,l=d.length/i.length,f=i.map((function(t,e){var r=Math.floor(e*l);if(d[r]){var n=d[r],o=M(n.x,t.x),i=M(n.y,t.y);return Nx(Nx({},t),{},{x:o(c),y:i(c)})}return t}));return u=S(a)&&"number"==typeof a?M(y,a)(c):s()(a)||g()(a)?M(y,0)(c):a.map((function(t,e){var r=Math.floor(e*l);if(y[r]){var n=y[r],o=M(n.x,t.x),i=M(n.y,t.y);return Nx(Nx({},t),{},{x:o(c),y:i(c)})}return t})),n.renderAreaStatically(f,u,t,e)}return r().createElement(ht,null,r().createElement("defs",null,r().createElement("clipPath",{id:"animationClipPath-".concat(e)},n.renderClipRect(c))),r().createElement(ht,{clipPath:"url(#animationClipPath-".concat(e,")")},n.renderAreaStatically(i,a,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return i&&n&&n.length&&(!c&&l>0||!Iu()(c,n)||!Iu()(u,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,o,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,i=e.dot,a=e.points,c=e.className,u=e.top,l=e.left,f=e.xAxis,p=e.yAxis,h=e.width,d=e.height,y=e.isAnimationActive,v=e.id;if(n||!a||!a.length)return null;var m=this.state.isAnimationFinished,b=1===a.length,g=o("recharts-area",c),x=f&&f.allowDataOverflow,O=p&&p.allowDataOverflow,w=x||O,j=s()(v)?this.id:v,S=null!==(t=rt(i,!1))&&void 0!==t?t:{r:3,strokeWidth:2},A=S.r,P=void 0===A?3:A,E=S.strokeWidth,k=void 0===E?2:E,T=(tt(i)?i:{}).clipDot,M=void 0===T||T,_=2*P+k;return r().createElement(ht,{className:g},x||O?r().createElement("defs",null,r().createElement("clipPath",{id:"clipPath-".concat(j)},r().createElement("rect",{x:x?l:l-h/2,y:O?u:u-d/2,width:x?h:2*h,height:O?d:2*d})),!M&&r().createElement("clipPath",{id:"clipPath-dots-".concat(j)},r().createElement("rect",{x:l-_/2,y:u-_/2,width:h+_,height:d+_}))):null,b?null:this.renderArea(w,j),(i||b)&&this.renderDots(w,M,j),(!y||m)&&ef.renderCallByParent(this.props,a))}}],a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],i&&Rx(n.prototype,i),a&&Rx(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);function Kx(t){return Kx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kx(t)}function qx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Zx(n.key),n)}}function Vx(t,e,r){return e=Hx(e),function(t,e){if(e&&("object"===Kx(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)}(t,Xx()?Reflect.construct(e,r||[],Hx(t).constructor):e.apply(t,r))}function Xx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xx=function(){return!!t})()}function Hx(t){return Hx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hx(t)}function Gx(t,e){return Gx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Gx(t,e)}function Yx(t,e,r){return(e=Zx(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zx(t){var e=function(t,e){if("object"!=Kx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Kx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Kx(e)?e:e+""}kx=$x,Ux($x,"displayName","Area"),Ux($x,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Ux($x,"getBaseValue",(function(t,e,r,n){var o=t.layout,i=t.baseValue,a=e.props.baseValue,c=null!=a?a:i;if(S(c)&&"number"==typeof c)return c;var u="horizontal"===o?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),Ux($x,"getComposedData",(function(t){var e,r=t.props,n=t.item,o=t.xAxis,i=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,h=t.offset,d=r.layout,y=s&&s.length,v=kx.getBaseValue(r,n,o,i),m="horizontal"===d,b=!1,g=p.map((function(t,e){var r;y?r=s[f+e]:(r=Bl(t,l),Array.isArray(r)?b=!0:r=[v,r]);var n=null==r[1]||y&&null==Bl(t,l);return m?{x:es({axis:o,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:i.scale(r[1]),value:r,payload:t}:{x:n?null:o.scale(r[1]),y:es({axis:i,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=y||b?g.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return m?{x:t.x,y:null!=e&&null!=t.y?i.scale(e):null}:{x:null!=e?o.scale(e):null,y:t.y}})):m?i.scale(v):o.scale(v),Nx({points:g,baseLine:e,layout:d,isRange:b},h)})),Ux($x,"renderDotItem",(function(t,e){var n;if(r().isValidElement(t))n=r().cloneElement(t,e);else if(d()(t))n=t(e);else{var i=o("recharts-area-dot","boolean"!=typeof t?t.className:""),a=e.key,c=Cx(e,Mx);n=r().createElement(Rd,Dx({},c,{key:a,className:i}))}return n}));var Jx=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Vx(this,e,arguments)}return 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&&Gx(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){return null}}])&&qx(r.prototype,n),o&&qx(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(r().Component);Yx(Jx,"displayName","ZAxis"),Yx(Jx,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var Qx=["option","isActive"];function tO(){return tO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},tO.apply(this,arguments)}function eO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function rO(t){var e=t.option,n=t.isActive,o=eO(t,Qx);return"string"==typeof e?r().createElement(cv,tO({option:r().createElement(re,tO({type:e},o)),isActive:n,shapeType:"symbols"},o)):r().createElement(cv,tO({option:e,isActive:n,shapeType:"symbols"},o))}function nO(t){return nO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nO(t)}function oO(){return oO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oO.apply(this,arguments)}function iO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function aO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iO(Object(r),!0).forEach((function(e){pO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,hO(n.key),n)}}function uO(t,e,r){return e=sO(e),function(t,e){if(e&&("object"===nO(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)}(t,lO()?Reflect.construct(e,r||[],sO(t).constructor):e.apply(t,r))}function lO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lO=function(){return!!t})()}function sO(t){return sO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sO(t)}function fO(t,e){return fO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fO(t,e)}function pO(t,e,r){return(e=hO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hO(t){var e=function(t,e){if("object"!=nO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nO(e)?e:e+""}var dO=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return pO(t=uO(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),pO(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0})})),pO(t,"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1})})),pO(t,"id",E("recharts-scatter-")),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fO(t,e)}(e,t),n=e,i=[{key:"renderSymbolsStatically",value:function(t){var e=this,n=this.props,o=n.shape,i=n.activeShape,a=n.activeIndex,c=rt(this.props,!1);return t.map((function(t,n){var u=a===n,l=u?i:o,s=aO(aO({},c),t);return r().createElement(ht,oO({className:"recharts-scatter-symbol",key:"symbol-".concat(null==t?void 0:t.cx,"-").concat(null==t?void 0:t.cy,"-").concat(null==t?void 0:t.size,"-").concat(n)},z(e.props,t,n),{role:"img"}),r().createElement(rO,oO({option:l,isActive:u,key:"symbol-".concat(n)},s)))}))}},{key:"renderSymbolsWithAnimation",value:function(){var t=this,e=this.props,n=e.points,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevPoints;return r().createElement(yd,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var o=e.t,i=n.map((function(t,e){var r=l&&l[e];if(r){var n=M(r.cx,t.cx),i=M(r.cy,t.cy),a=M(r.size,t.size);return aO(aO({},t),{},{cx:n(o),cy:i(o),size:a(o)})}var c=M(0,t.size);return aO(aO({},t),{},{size:c(o)})}));return r().createElement(ht,null,t.renderSymbolsStatically(i))}))}},{key:"renderSymbols",value:function(){var t=this.props,e=t.points,r=t.isAnimationActive,n=this.state.prevPoints;return!(r&&e&&e.length)||n&&Iu()(n,e)?this.renderSymbolsStatically(e):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,e=t.points,n=t.xAxis,o=t.yAxis,i=G(t.children,Al);return i?i.map((function(t,i){var a=t.props,c=a.direction,u=a.dataKey;return r().cloneElement(t,{key:"".concat(c,"-").concat(u,"-").concat(e[i]),data:e,xAxis:n,yAxis:o,layout:"x"===c?"vertical":"horizontal",dataPointFormatter:function(t,e){return{x:t.cx,y:t.cy,value:"x"===c?+t.node.x:+t.node.y,errorVal:Bl(t,e)}}})})):null}},{key:"renderLine",value:function(){var t,e,n=this.props,o=n.points,i=n.line,a=n.lineType,c=n.lineJointType,u=rt(this.props,!1),l=rt(i,!1);if("joint"===a)t=o.map((function(t){return{x:t.cx,y:t.cy}}));else if("fitting"===a){var s=function(t){if(!t||!t.length)return null;for(var e=t.length,r=0,n=0,o=0,i=0,a=1/0,c=-1/0,u=0,l=0,s=0;s<e;s++)r+=u=t[s].cx||0,n+=l=t[s].cy||0,o+=u*l,i+=u*u,a=Math.min(a,u),c=Math.max(c,u);var f=e*i!=r*r?(e*o-r*n)/(e*i-r*r):0;return{xmin:a,xmax:c,a:f,b:(n-f*r)/e}}(o),f=s.xmin,p=s.xmax,h=s.a,y=s.b,v=function(t){return h*t+y};t=[{x:f,y:v(f)},{x:p,y:v(p)}]}var m=aO(aO(aO({},u),{},{fill:"none",stroke:u&&u.fill},l),{},{points:t});return e=r().isValidElement(i)?r().cloneElement(i,m):d()(i)?i(m):r().createElement(Gf,oO({},m,{type:c})),r().createElement(ht,{className:"recharts-scatter-line",key:"recharts-scatter-line"},e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.points,i=t.line,a=t.className,c=t.xAxis,u=t.yAxis,l=t.left,f=t.top,p=t.width,h=t.height,d=t.id,y=t.isAnimationActive;if(e||!n||!n.length)return null;var v=this.state.isAnimationFinished,m=o("recharts-scatter",a),b=c&&c.allowDataOverflow,g=u&&u.allowDataOverflow,x=b||g,O=s()(d)?this.id:d;return r().createElement(ht,{className:m,clipPath:x?"url(#clipPath-".concat(O,")"):null},b||g?r().createElement("defs",null,r().createElement("clipPath",{id:"clipPath-".concat(O)},r().createElement("rect",{x:b?l:l-p/2,y:g?f:f-h/2,width:b?p:2*p,height:g?h:2*h}))):null,i&&this.renderLine(),this.renderErrorBar(),r().createElement(ht,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!y||v)&&ef.renderCallByParent(this.props,n))}}],a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}}],i&&cO(n.prototype,i),a&&cO(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);function yO(t){return yO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yO(t)}function vO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wO(n.key),n)}}function mO(t,e,r){return e=gO(e),function(t,e){if(e&&("object"===yO(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)}(t,bO()?Reflect.construct(e,r||[],gO(t).constructor):e.apply(t,r))}function bO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(bO=function(){return!!t})()}function gO(t){return gO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gO(t)}function xO(t,e){return xO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xO(t,e)}function OO(t,e,r){return(e=wO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wO(t){var e=function(t,e){if("object"!=yO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yO(e)?e:e+""}function jO(){return jO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jO.apply(this,arguments)}function SO(t){var e=t.xAxisId,n=Bb(),i=Lb(),a=Cb(e);return null==a?null:r().createElement(Vg,jO({},a,{className:o("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(t){return Kl(t,!0)}}))}pO(dO,"displayName","Scatter"),pO(dO,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),pO(dO,"getComposedData",(function(t){var e=t.xAxis,r=t.yAxis,n=t.zAxis,o=t.item,i=t.displayedData,a=t.xAxisTicks,c=t.yAxisTicks,u=t.offset,l=o.props.tooltipType,f=G(o.props.children,kr),p=s()(e.dataKey)?o.props.dataKey:e.dataKey,h=s()(r.dataKey)?o.props.dataKey:r.dataKey,d=n&&n.dataKey,y=n?n.range:Jx.defaultProps.range,v=y&&y[0],m=e.scale.bandwidth?e.scale.bandwidth():0,b=r.scale.bandwidth?r.scale.bandwidth():0,g=i.map((function(t,i){var u=Bl(t,p),y=Bl(t,h),g=!s()(d)&&Bl(t,d)||"-",x=[{name:s()(e.dataKey)?o.props.name:e.name||e.dataKey,unit:e.unit||"",value:u,payload:t,dataKey:p,type:l},{name:s()(r.dataKey)?o.props.name:r.name||r.dataKey,unit:r.unit||"",value:y,payload:t,dataKey:h,type:l}];"-"!==g&&x.push({name:n.name||n.dataKey,unit:n.unit||"",value:g,payload:t,dataKey:d,type:l});var O=es({axis:e,ticks:a,bandSize:m,entry:t,index:i,dataKey:p}),w=es({axis:r,ticks:c,bandSize:b,entry:t,index:i,dataKey:h}),j="-"!==g?n.scale(g):v,S=Math.sqrt(Math.max(j,0)/Math.PI);return aO(aO({},t),{},{cx:O,cy:w,x:O-S,y:w-S,xAxis:e,yAxis:r,zAxis:n,width:2*S,height:2*S,size:j,node:{x:u,y,z:g},tooltipPayload:x,tooltipPosition:{x:O,y:w},payload:t},f&&f[i]&&f[i].props)}));return aO({points:g},u)}));var AO=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),mO(this,e,arguments)}return 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&&xO(t,e)}(e,t),n=e,(o=[{key:"render",value:function(){return r().createElement(SO,this.props)}}])&&vO(n.prototype,o),i&&vO(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r().Component);function PO(t){return PO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},PO(t)}function EO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,DO(n.key),n)}}function kO(t,e,r){return e=MO(e),function(t,e){if(e&&("object"===PO(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)}(t,TO()?Reflect.construct(e,r||[],MO(t).constructor):e.apply(t,r))}function TO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(TO=function(){return!!t})()}function MO(t){return MO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},MO(t)}function _O(t,e){return _O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_O(t,e)}function CO(t,e,r){return(e=DO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DO(t){var e=function(t,e){if("object"!=PO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=PO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==PO(e)?e:e+""}function IO(){return IO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},IO.apply(this,arguments)}OO(AO,"displayName","XAxis"),OO(AO,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var NO=function(t){var e=t.yAxisId,n=Bb(),i=Lb(),a=Nb(e);return null==a?null:r().createElement(Vg,IO({},a,{className:o("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(t){return Kl(t,!0)}}))},RO=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),kO(this,e,arguments)}return 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)}(e,t),n=e,(o=[{key:"render",value:function(){return r().createElement(NO,this.props)}}])&&EO(n.prototype,o),i&&EO(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r().Component);function BO(t){return function(t){if(Array.isArray(t))return LO(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)return;if("string"==typeof t)return LO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LO(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}CO(RO,"displayName","YAxis"),CO(RO,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var zO=function(t,e,r,n,o){var i=G(t,Qb),a=G(t,fg),c=[].concat(BO(i),BO(a)),u=G(t,jg),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&Im(e.props,"extendDomain")&&S(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),h="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&Im(e.props,"extendDomain")&&S(e.props[p])&&S(e.props[h])){var n=e.props[p],o=e.props[h];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return S(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},FO=i(9328),UO=new(i.n(FO)()),WO="recharts.syncMouseEvents";function $O(t){return $O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$O(t)}function KO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,VO(n.key),n)}}function qO(t,e,r){return(e=VO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VO(t){var e=function(t,e){if("object"!=$O(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$O(e)?e:e+""}var XO=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qO(this,"activeIndex",0),qO(this,"coordinateList",[]),qO(this,"layout","horizontal")},(e=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])&&KO(t.prototype,e),r&&KO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function HO(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[gs(e,r,n,o),gs(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function GO(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return HO(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=gs(c,u,l,f),h=gs(c,u,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function YO(t){return YO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YO(t)}function ZO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function JO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ZO(Object(r),!0).forEach((function(e){QO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ZO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function QO(t,e,r){var n;return n=function(t,e){if("object"!=YO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=YO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==YO(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tw(t){var r,n,i,a=t.element,c=t.tooltipEventType,u=t.isActive,l=t.activeCoordinate,s=t.activePayload,f=t.offset,p=t.activeTooltipIndex,h=t.tooltipAxisBandSize,d=t.layout,y=t.chartName,v=null!==(r=a.props.cursor)&&void 0!==r?r:null===(n=a.type.defaultProps)||void 0===n?void 0:n.cursor;if(!a||!v||!u||!l||"ScatterChart"!==y&&"axis"!==c)return null;var m=Gf;if("ScatterChart"===y)i=l,m=Kd;else if("BarChart"===y)i=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(d,l,f,h),m=Pd;else if("radial"===d){var b=HO(l),g=b.cx,x=b.cy,O=b.radius;i={cx:g,cy:x,startAngle:b.startAngle,endAngle:b.endAngle,innerRadius:O,outerRadius:O},m=yf}else i={points:GO(d,l,f)},m=Gf;var w=JO(JO(JO(JO({stroke:"#ccc",pointerEvents:"none"},f),i),rt(v,!1)),{},{payload:s,payloadIndex:p,className:o("recharts-tooltip-cursor",v.className)});return(0,e.isValidElement)(v)?(0,e.cloneElement)(v,w):(0,e.createElement)(m,w)}var ew=["item"],rw=["children","className","width","height","style","compact","title","desc"];function nw(t){return nw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nw(t)}function ow(){return ow=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ow.apply(this,arguments)}function iw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||hw(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 aw(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function cw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bw(n.key),n)}}function uw(t,e,r){return e=sw(e),function(t,e){if(e&&("object"===nw(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)}(t,lw()?Reflect.construct(e,r||[],sw(t).constructor):e.apply(t,r))}function lw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lw=function(){return!!t})()}function sw(t){return sw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sw(t)}function fw(t,e){return fw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fw(t,e)}function pw(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)||hw(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){if(t){if("string"==typeof t)return dw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dw(t,e):void 0}}function dw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yw(Object(r),!0).forEach((function(e){mw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mw(t,e,r){return(e=bw(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bw(t){var e=function(t,e){if("object"!=nw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nw(e)?e:e+""}var gw={xAxis:["bottom","top"],yAxis:["left","right"]},xw={width:"100%",height:"100%"},Ow={x:0,y:0};function ww(t){return t}var jw=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(pw(t),pw(r)):t}),[]);return i.length>0?i:t&&t.length&&S(n)&&S(o)?t.slice(n,o+1):[]};function Sw(t){return"number"===t?[0,"auto"]:void 0}var Aw=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=jw(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=_(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(pw(o),[ss(c,l)]):o}),[])},Pw=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(w(s-l)!==w(f-s)){var h=[];if(w(f-s)===w(c[1]-c[0])){p=f;var d=s+c[1]-c[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+c[1]-c[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[u].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[u].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=Aw(t,e,l,s),p=function(t,e,r,n){var o=e.find((function(t){return t&&t.index===r}));if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return vw(vw(vw({},n),gs(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return vw(vw(vw({},n),gs(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return Ow}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},Ew=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,f=t.children,p=t.stackOffset,h=Wl(l,o);return r.reduce((function(e,r){var d,y=void 0!==r.type.defaultProps?vw(vw({},r.type.defaultProps),r.props):r.props,v=y.type,m=y.dataKey,b=y.allowDataOverflow,g=y.allowDuplicatedCategory,x=y.scale,O=y.ticks,w=y.includeHidden,j=y[i];if(e[j])return e;var A,P,E,k=jw(t.data,{graphicalItems:n.filter((function(t){var e;return(i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i])===j})),dataStartIndex:c,dataEndIndex:u}),T=k.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&S(n)&&S(o))return!0}return!1})(y.domain,b,v)&&(A=cs(y.domain,null,b),!h||"number"!==v&&"auto"===x||(E=Ll(k,m,"category")));var M=Sw(v);if(!A||0===A.length){var _,C=null!==(_=y.domain)&&void 0!==_?_:M;if(m){if(A=Ll(k,m,v),"category"===v&&h){var D=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(A);g&&D?(P=A,A=hm()(0,T)):g||(A=ls(C,A,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(pw(t),[e])}),[]))}else if("category"===v)A=g?A.filter((function(t){return""!==t&&!s()(t)})):ls(C,A,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||s()(e)?t:[].concat(pw(t),[e])}),[]);else if("number"===v){var I=function(t,e,r,n,o){var i=e.map((function(e){return Fl(t,e,r,o,n)})).filter((function(t){return!s()(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(k,n.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===j&&(w||!o)})),m,o,l);I&&(A=I)}!h||"number"!==v&&"auto"===x||(E=Ll(k,m,"category"))}else A=h?hm()(0,T):a&&a[j]&&a[j].hasStack&&"number"===v?"expand"===p?[0,1]:os(a[j].stackGroups,c,u):Ul(k,n.filter((function(t){var e=i in t.props?t.props[i]:t.type.defaultProps[i],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===j&&(w||!r)})),v,l,!0);if("number"===v)A=zO(f,A,j,o,O),C&&(A=cs(C,A,b));else if("category"===v&&C){var N=C;A.every((function(t){return N.indexOf(t)>=0}))&&(A=N)}}return vw(vw({},e),{},mw({},j,vw(vw({},y),{},{axisType:o,domain:A,categoricalDomain:E,duplicateDomain:P,originalDomain:null!==(d=y.domain)&&void 0!==d?d:M,isCategorical:h,layout:l})))}),{})},kw=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,s=t.children,f="".concat(n,"Id"),p=G(s,o),h={};return p&&p.length?h=Ew(t,{axes:p,graphicalItems:i,axisType:n,axisIdKey:f,stackGroups:a,dataStartIndex:c,dataEndIndex:l}):i&&i.length&&(h=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,s=t.layout,f=t.children,p=jw(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),h=p.length,d=Wl(s,o),y=-1;return r.reduce((function(t,e){var v,m=(void 0!==e.type.defaultProps?vw(vw({},e.type.defaultProps),e.props):e.props)[i],b=Sw("number");return t[m]?t:(y++,d?v=hm()(0,h):a&&a[m]&&a[m].hasStack?(v=os(a[m].stackGroups,c,l),v=zO(f,v,m,o)):(v=cs(b,Ul(p,r.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===m&&!o})),"number",s),n.defaultProps.allowDataOverflow),v=zO(f,v,m,o)),vw(vw({},t),{},mw({},m,vw(vw({axisType:o},n.defaultProps),{},{hide:!0,orientation:u()(gw,"".concat(o,".").concat(y%2),null),domain:v,originalDomain:b,isCategorical:d,layout:s}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:f,stackGroups:a,dataStartIndex:c,dataEndIndex:l})),h},Tw=function(t){var e=t.children,r=t.defaultShowTooltip,n=Y(e,_m),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},Mw=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},_w=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,c=r.width,l=r.height,s=r.children,f=r.margin||{},p=Y(s,_m),h=Y(s,_e),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:vw(vw({},t),{},mw({},n,t[n]+r.width))}),{left:f.left||0,right:f.right||0}),y=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:vw(vw({},t),{},mw({},n,u()(t,"".concat(n))+r.height))}),{top:f.top||0,bottom:f.bottom||0}),v=vw(vw({},y),d),m=v.bottom;p&&(v.bottom+=p.props.height||_m.defaultProps.height),h&&e&&(v=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=Ml({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,h=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&S(t[p]))return Nl(Nl({},t),{},Rl({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&S(t[h]))return Nl(Nl({},t),{},Rl({},h,t[h]+(f||0)))}return t}(v,0,r,e));var b=c-v.left-v.right,g=l-v.top-v.bottom;return vw(vw({brushBottom:m},v),{},{width:Math.max(b,0),height:Math.max(g,0)})},Cw=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},Dw=function(t){var n=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,c=void 0===a?"axis":a,l=t.validateTooltipEventTypes,f=void 0===l?["axis"]:l,p=t.axisComponents,h=t.legendContent,y=t.formatAxisMap,v=t.defaultProps,m=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,l=t.layout,f=t.barGap,h=t.barCategoryGap,d=t.maxBarSize,y=Mw(l),v=y.numericAxisName,m=y.cateAxisName,b=function(t){return!(!t||!t.length)&&t.some((function(t){var e=q(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),g=[];return r.forEach((function(r,y){var x=jw(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),O=void 0!==r.type.defaultProps?vw(vw({},r.type.defaultProps),r.props):r.props,w=O.dataKey,j=O.maxBarSize,S=O["".concat(v,"Id")],P=O["".concat(m,"Id")],E=p.reduce((function(t,r){var n=e["".concat(r.axisType,"Map")],o=O["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||fl(!1);var i=n[o];return vw(vw({},t),{},mw(mw({},r.axisType,i),"".concat(r.axisType,"Ticks"),Kl(i)))}),{}),T=E[m],M=E["".concat(m,"Ticks")],_=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?Nl(Nl({},t.type.defaultProps),t.props):t.props).stackId;if(A(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null}(r,n[S].stackGroups),C=q(r.type).indexOf("Bar")>=0,D=us(T,M),I=[],N=b&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,u=a.length;c<u;c++)for(var l=o[a[c]].stackGroups,f=Object.keys(l),p=0,h=f.length;p<h;p++){var d=l[f[p]],y=d.items,v=d.cateAxisId,m=y.filter((function(t){return q(t.type).indexOf("Bar")>=0}));if(m&&m.length){var b=m[0].type.defaultProps,g=void 0!==b?Nl(Nl({},b),m[0].props):m[0].props,x=g.barSize,O=g[v];i[O]||(i[O]=[]);var w=s()(x)?e:x;i[O].push({item:m[0],stackList:m.slice(1),barSize:s()(w)?void 0:k(w,r,0)})}}return i}({barSize:u,stackGroups:n,totalSize:Cw(E,m)});if(C){var R,B,L=s()(j)?d:j,z=null!==(R=null!==(B=us(T,M,!0))&&void 0!==B?B:L)&&void 0!==R?R:0;I=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,l=k(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(c-1)*l)>=n&&(h-=(c-1)*l,l=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var d={offset:((n-h)/2>>0)-l,size:0};u=i.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(Cl(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var y=k(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(c-1)*l)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;u=i.reduce((function(t,e,r){var n=[].concat(Cl(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:h,bandSize:z!==D?z:D,sizeList:N[P],maxBarSize:L}),z!==D&&(I=I.map((function(t){return vw(vw({},t),{},{position:vw(vw({},t.position),{},{offset:t.position.offset-z/2})})})))}var F,U,W=r&&r.type&&r.type.getComposedData;W&&g.push({props:vw(vw({},W(vw(vw({},E),{},{displayedData:x,props:t,dataKey:w,item:r,bandSize:D,barPosition:I,offset:o,stackedData:_,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},mw(mw(mw({key:r.key||"item-".concat(y)},v,E[v]),m,E[m]),"animationId",i)),childIndex:(F=r,U=t.children,H(U).indexOf(F)),item:r})})),g},b=function(t,e){var r=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Z({props:r}))return null;var u=r.children,l=r.layout,s=r.stackOffset,f=r.data,h=r.reverseStackOrder,d=Mw(l),v=d.numericAxisName,b=d.cateAxisName,g=G(u,i),x=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o,i=null!==(o=e.type)&&void 0!==o&&o.defaultProps?Nl(Nl({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(i.hide)return t;var c=i[r],u=t[c]||{hasStack:!1,stackGroups:{}};if(A(a)){var l=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),u.hasStack=!0,u.stackGroups[a]=l}else u.stackGroups[E("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return Nl(Nl({},t),{},Rl({},c,u))}),{});return Object.keys(a).reduce((function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,i){var a=c.stackGroups[i];return Nl(Nl({},e),{},Rl({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:Ql(t,a.items,o)}))}),{})),Nl(Nl({},e),{},Rl({},i,c))}),{})}(f,g,"".concat(v,"Id"),"".concat(b,"Id"),s,h),O=p.reduce((function(t,e){var n="".concat(e.axisType,"Map");return vw(vw({},t),{},mw({},n,kw(r,vw(vw({},e),{},{graphicalItems:g,stackGroups:e.axisType===v&&x,dataStartIndex:o,dataEndIndex:a}))))}),{}),w=_w(vw(vw({},O),{},{props:r,graphicalItems:g}),null==e?void 0:e.legendBBox);Object.keys(O).forEach((function(t){O[t]=y(r,O[t],w,t.replace("Map",""),n)}));var j,S,P=O["".concat(b,"Map")],k=(j=T(P),{tooltipTicks:S=Kl(j,!1,!0),orderedTooltipTicks:De()(S,(function(t){return t.coordinate})),tooltipAxis:j,tooltipAxisBandSize:us(j,S)}),M=m(r,vw(vw({},O),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:g,stackGroups:x,offset:w}));return vw(vw({formattedGraphicalItems:M,graphicalItems:g,offset:w,stackGroups:x},k),O)},g=function(t){function i(t){var a,c,l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),mw(l=uw(this,i,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),mw(l,"accessibilityManager",new XO),mw(l,"handleLegendBBoxUpdate",(function(t){if(t){var e=l.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;l.setState(vw({legendBBox:t},b({props:l.props,dataStartIndex:r,dataEndIndex:n,updateId:o},vw(vw({},l.state),{},{legendBBox:t}))))}})),mw(l,"handleReceiveSyncEvent",(function(t,e,r){if(l.props.syncId===t){if(r===l.eventEmitterSymbol&&"function"!=typeof l.props.syncMethod)return;l.applySyncEvent(e)}})),mw(l,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==l.state.dataStartIndex||r!==l.state.dataEndIndex){var n=l.state.updateId;l.setState((function(){return vw({dataStartIndex:e,dataEndIndex:r},b({props:l.props,dataStartIndex:e,dataEndIndex:r,updateId:n},l.state))})),l.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),mw(l,"handleMouseEnter",(function(t){var e=l.getMouseInfo(t);if(e){var r=vw(vw({},e),{},{isTooltipActive:!0});l.setState(r),l.triggerSyncEvent(r);var n=l.props.onMouseEnter;d()(n)&&n(r,t)}})),mw(l,"triggeredAfterMouseMove",(function(t){var e=l.getMouseInfo(t),r=e?vw(vw({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};l.setState(r),l.triggerSyncEvent(r);var n=l.props.onMouseMove;d()(n)&&n(r,t)})),mw(l,"handleItemMouseEnter",(function(t){l.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),mw(l,"handleItemMouseLeave",(function(){l.setState((function(){return{isTooltipActive:!1}}))})),mw(l,"handleMouseMove",(function(t){t.persist(),l.throttleTriggeredAfterMouseMove(t)})),mw(l,"handleMouseLeave",(function(t){l.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};l.setState(e),l.triggerSyncEvent(e);var r=l.props.onMouseLeave;d()(r)&&r(e,t)})),mw(l,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&K[e]?K[e]:null}(t),n=u()(l.props,"".concat(r));r&&d()(n)&&n(null!==(e=/.*touch.*/i.test(r)?l.getMouseInfo(t.changedTouches[0]):l.getMouseInfo(t))&&void 0!==e?e:{},t)})),mw(l,"handleClick",(function(t){var e=l.getMouseInfo(t);if(e){var r=vw(vw({},e),{},{isTooltipActive:!0});l.setState(r),l.triggerSyncEvent(r);var n=l.props.onClick;d()(n)&&n(r,t)}})),mw(l,"handleMouseDown",(function(t){var e=l.props.onMouseDown;d()(e)&&e(l.getMouseInfo(t),t)})),mw(l,"handleMouseUp",(function(t){var e=l.props.onMouseUp;d()(e)&&e(l.getMouseInfo(t),t)})),mw(l,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&l.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),mw(l,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&l.handleMouseDown(t.changedTouches[0])})),mw(l,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&l.handleMouseUp(t.changedTouches[0])})),mw(l,"handleDoubleClick",(function(t){var e=l.props.onDoubleClick;d()(e)&&e(l.getMouseInfo(t),t)})),mw(l,"handleContextMenu",(function(t){var e=l.props.onContextMenu;d()(e)&&e(l.getMouseInfo(t),t)})),mw(l,"triggerSyncEvent",(function(t){void 0!==l.props.syncId&&UO.emit(WO,l.props.syncId,t,l.eventEmitterSymbol)})),mw(l,"applySyncEvent",(function(t){var e=l.props,r=e.layout,n=e.syncMethod,o=l.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)l.setState(vw({dataStartIndex:i,dataEndIndex:a},b({props:l.props,dataStartIndex:i,dataEndIndex:a,updateId:o},l.state)));else if(void 0!==t.activeTooltipIndex){var c=t.chartX,u=t.chartY,s=t.activeTooltipIndex,f=l.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var d=0;d<h.length;d++)if(h[d].value===t.activeLabel){s=d;break}}var y=vw(vw({},p),{},{x:p.left,y:p.top}),v=Math.min(c,y.x+y.width),m=Math.min(u,y.y+y.height),g=h[s]&&h[s].value,x=Aw(l.state,l.props.data,s),O=h[s]?{x:"horizontal"===r?h[s].coordinate:v,y:"horizontal"===r?m:h[s].coordinate}:Ow;l.setState(vw(vw({},t),{},{activeLabel:g,activeCoordinate:O,activePayload:x,activeTooltipIndex:s}))}else l.setState(t)})),mw(l,"renderCursor",(function(t){var e,o=l.state,i=o.isTooltipActive,a=o.activeCoordinate,c=o.activePayload,u=o.offset,s=o.activeTooltipIndex,f=o.tooltipAxisBandSize,p=l.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:i,d=l.props.layout,y=t.key||"_recharts-cursor";return r().createElement(tw,{key:y,activeCoordinate:a,activePayload:c,activeTooltipIndex:s,chartName:n,element:t,isActive:h,layout:d,offset:u,tooltipAxisBandSize:f,tooltipEventType:p})})),mw(l,"renderPolarAxis",(function(t,r,n){var i=u()(t,"type.axisType"),a=u()(l.state,"".concat(i,"Map")),c=t.type.defaultProps,s=void 0!==c?vw(vw({},c),t.props):t.props,f=a&&a[s["".concat(i,"Id")]];return(0,e.cloneElement)(t,vw(vw({},f),{},{className:o(i,f.className),key:t.key||"".concat(r,"-").concat(n),ticks:Kl(f,!0)}))})),mw(l,"renderPolarGrid",(function(t){var r=t.props,n=r.radialLines,o=r.polarAngles,i=r.polarRadius,a=l.state,c=a.radiusAxisMap,u=a.angleAxisMap,s=T(c),f=T(u),p=f.cx,h=f.cy,d=f.innerRadius,y=f.outerRadius;return(0,e.cloneElement)(t,{polarAngles:Array.isArray(o)?o:Kl(f,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:Kl(s,!0).map((function(t){return t.coordinate})),cx:p,cy:h,innerRadius:d,outerRadius:y,key:t.key||"polar-grid",radialLines:n})})),mw(l,"renderLegend",(function(){var t=l.state.formattedGraphicalItems,r=l.props,n=r.children,o=r.width,i=r.height,a=l.props.margin||{},c=o-(a.left||0)-(a.right||0),u=Ml({children:n,formattedGraphicalItems:t,legendWidth:c,legendContent:h});if(!u)return null;var s=u.item,f=aw(u,ew);return(0,e.cloneElement)(s,vw(vw({},f),{},{chartWidth:o,chartHeight:i,margin:a,onBBoxUpdate:l.handleLegendBBoxUpdate}))})),mw(l,"renderTooltip",(function(){var t,r=l.props,n=r.children,o=r.accessibilityLayer,i=Y(n,br);if(!i)return null;var a=l.state,c=a.isTooltipActive,u=a.activeCoordinate,s=a.activePayload,f=a.activeLabel,p=a.offset,h=null!==(t=i.props.active)&&void 0!==t?t:c;return(0,e.cloneElement)(i,{viewBox:vw(vw({},p),{},{x:p.left,y:p.top}),active:h,label:f,payload:h?s:[],coordinate:u,accessibilityLayer:o})})),mw(l,"renderBrush",(function(t){var r=l.props,n=r.margin,o=r.data,i=l.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,s=i.updateId;return(0,e.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:Vl(l.handleBrushChange,t.props.onChange),data:o,x:S(t.props.x)?t.props.x:a.left,y:S(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:S(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(s)})})),mw(l,"renderReferenceElement",(function(t,r,n){if(!t)return null;var o=l.clipPathId,i=l.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,s=t.type.defaultProps||{},f=t.props,p=f.xAxisId,h=void 0===p?s.xAxisId:p,d=f.yAxisId,y=void 0===d?s.yAxisId:d;return(0,e.cloneElement)(t,{key:t.key||"".concat(r,"-").concat(n),xAxis:a[h],yAxis:c[y],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:o})})),mw(l,"renderActivePoints",(function(t){var e=t.item,r=t.activePoint,n=t.basePoint,o=t.childIndex,a=t.isRange,c=[],u=e.props.key,l=void 0!==e.item.type.defaultProps?vw(vw({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=vw(vw({index:o,dataKey:l.dataKey,cx:r.x,cy:r.y,r:4,fill:zl(e.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},rt(s,!1)),L(s));return c.push(i.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(o))),n?c.push(i.renderActiveDot(s,vw(vw({},f),{},{cx:n.x,cy:n.y}),"".concat(u,"-basePoint-").concat(o))):a&&c.push(null),c})),mw(l,"renderGraphicChild",(function(t,r,n){var o=l.filterFormatItem(t,r,n);if(!o)return null;var i=l.getTooltipEventType(),a=l.state,c=a.isTooltipActive,u=a.tooltipAxis,f=a.activeTooltipIndex,p=a.activeLabel,h=Y(l.props.children,br),d=o.props,y=d.points,v=d.isRange,m=d.baseLine,b=void 0!==o.item.type.defaultProps?vw(vw({},o.item.type.defaultProps),o.item.props):o.item.props,g=b.activeDot,x=b.hide,O=b.activeBar,w=b.activeShape,j=Boolean(!x&&c&&h&&(g||O||w)),S={};"axis"!==i&&h&&"click"===h.props.trigger?S={onClick:Vl(l.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(S={onMouseLeave:Vl(l.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:Vl(l.handleItemMouseEnter,t.props.onMouseEnter)});var A=(0,e.cloneElement)(t,vw(vw({},o.props),S));if(j){if(!(f>=0)){var P,E=(null!==(P=l.getItemByXY(l.state.activeCoordinate))&&void 0!==P?P:{graphicalItem:A}).graphicalItem,k=E.item,T=void 0===k?t:k,M=E.childIndex,C=vw(vw(vw({},o.props),S),{},{activeIndex:M});return[(0,e.cloneElement)(T,C),null,null]}var D,I;if(u.dataKey&&!u.allowDuplicatedCategory){var N="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());D=_(y,N,p),I=v&&m&&_(m,N,p)}else D=null==y?void 0:y[f],I=v&&m&&m[f];if(w||O){var R=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,e.cloneElement)(t,vw(vw(vw({},o.props),S),{},{activeIndex:R})),null,null]}if(!s()(D))return[A].concat(pw(l.renderActivePoints({item:o,activePoint:D,basePoint:I,childIndex:f,isRange:v})))}return v?[A,null,null]:[A,null]})),mw(l,"renderCustomized",(function(t,r,n){return(0,e.cloneElement)(t,vw(vw({key:"recharts-customized-".concat(n)},l.props),l.state))})),mw(l,"renderMap",{CartesianGrid:{handler:ww,once:!0},ReferenceArea:{handler:l.renderReferenceElement},ReferenceLine:{handler:ww},ReferenceDot:{handler:l.renderReferenceElement},XAxis:{handler:ww},YAxis:{handler:ww},Brush:{handler:l.renderBrush,once:!0},Bar:{handler:l.renderGraphicChild},Line:{handler:l.renderGraphicChild},Area:{handler:l.renderGraphicChild},Radar:{handler:l.renderGraphicChild},RadialBar:{handler:l.renderGraphicChild},Scatter:{handler:l.renderGraphicChild},Pie:{handler:l.renderGraphicChild},Funnel:{handler:l.renderGraphicChild},Tooltip:{handler:l.renderCursor,once:!0},PolarGrid:{handler:l.renderPolarGrid,once:!0},PolarAngleAxis:{handler:l.renderPolarAxis},PolarRadiusAxis:{handler:l.renderPolarAxis},Customized:{handler:l.renderCustomized}}),l.clipPathId="".concat(null!==(a=t.id)&&void 0!==a?a:E("recharts"),"-clip"),l.throttleTriggeredAfterMouseMove=xr()(l.triggeredAfterMouseMove,null!==(c=t.throttleDelay)&&void 0!==c?c:1e3/60),l.state={},l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fw(t,e)}(i,t),a=i,l=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=Y(e,br);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=Aw(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=vw(vw({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){nt([Y(t.children,br)],[Y(this.props.children,br)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Y(this.props.children,br);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return f.indexOf(e)>=0?e:c}return c}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-o.left),chartY:Math.round(t.pageY-o.top)},a=n.width/r.offsetWidth||1,c=this.inRange(i.chartX,i.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=T(l).scale,p=T(s).scale,h=f&&f.invert?f.invert(i.chartX):null,d=p&&p.invert?p.invert(i.chartY):null;return vw(vw({},i),{},{xValue:h,yValue:d})}var y=Pw(this.state,this.props.data,this.props.layout,c);return y?vw(vw({},i),y):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=T(u);return Ss({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Y(t,br),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),vw(vw({},L(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){UO.on(WO,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){UO.removeListener(WO,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===q(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,o=e.top,i=e.height,a=e.width;return r().createElement("defs",null,r().createElement("clipPath",{id:t},r().createElement("rect",{x:n,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=iw(e,2),n=r[0],o=r[1];return vw(vw({},t),{},mw({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=iw(e,2),n=r[0],o=r[1];return vw(vw({},t),{},mw({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,u=a.item,l=void 0!==u.type.defaultProps?vw(vw({},u.type.defaultProps),u.props):u.props,s=q(u.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return Sd(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return Ss(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(uv(a,n)||lv(a,n)||sv(a,n)){var h=dv({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),d=void 0===l.activeIndex?h:l.activeIndex;return{graphicalItem:vw(vw({},a),{},{childIndex:d}),payload:sv(a,n)?l.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t=this;if(!Z(this))return null;var e,n,i=this.props,a=i.children,c=i.className,u=i.width,l=i.height,s=i.style,f=i.compact,p=i.title,h=i.desc,d=aw(i,rw),y=rt(d,!1);if(f)return r().createElement(_b,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},r().createElement(lt,ow({},y,{width:u,height:l,title:p,desc:h}),this.renderClipPath(),it(a,this.renderMap)));this.props.accessibilityLayer&&(y.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,y.role=null!==(n=this.props.role)&&void 0!==n?n:"application",y.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},y.onFocus=function(){t.accessibilityManager.focus()});var v=this.parseEventsOfWrapper();return r().createElement(_b,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},r().createElement("div",ow({className:o("recharts-wrapper",c),style:vw({position:"relative",cursor:"default",width:u,height:l},s)},v,{ref:function(e){t.container=e}}),r().createElement(lt,ow({},y,{width:u,height:l,title:p,desc:h,style:xw}),this.renderClipPath(),it(a,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],l&&cw(a.prototype,l),p&&cw(a,p),Object.defineProperty(a,"prototype",{writable:!1}),a;var a,l,p}(e.Component);mw(g,"displayName",n),mw(g,"defaultProps",vw({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},v)),mw(g,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,f=e.dataStartIndex,p=e.dataEndIndex;if(void 0===e.updateId){var h=Tw(t);return vw(vw(vw({},h),{},{updateId:0},b(vw(vw({props:t},h),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!C(l,e.prevMargin)){var d=Tw(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=vw(vw({},Pw(e,n,c)),{},{updateId:e.updateId+1}),m=vw(vw(vw({},d),y),v);return vw(vw(vw({},m),b(vw({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!nt(o,e.prevChildren)){var g,x,O,w,j=Y(o,_m),S=j&&null!==(g=null===(x=j.props)||void 0===x?void 0:x.startIndex)&&void 0!==g?g:f,A=j&&null!==(O=null===(w=j.props)||void 0===w?void 0:w.endIndex)&&void 0!==O?O:p,P=S!==f||A!==p,E=!s()(n)&&!P?e.updateId:e.updateId+1;return vw(vw({updateId:E},b(vw(vw({props:t},e),{},{updateId:E,dataStartIndex:S,dataEndIndex:A}),e)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:A})}return null})),mw(g,"renderActiveDot",(function(t,n,o){var i;return i=(0,e.isValidElement)(t)?(0,e.cloneElement)(t,n):d()(t)?t(n):r().createElement(Rd,n),r().createElement(ht,{className:"recharts-active-dot",key:o},i)}));var x=(0,e.forwardRef)((function(t,e){return r().createElement(g,ow({},t,{ref:e}))}));return x.displayName=g.displayName,x},Iw=Dw({chartName:"LineChart",GraphicalChild:Ex,axisComponents:[{axisType:"xAxis",AxisComp:AO},{axisType:"yAxis",AxisComp:RO}],formatAxisMap:yb}),Nw=Dw({chartName:"BarChart",GraphicalChild:ub,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:AO},{axisType:"yAxis",AxisComp:RO}],formatAxisMap:yb}),Rw=Dw({chartName:"PieChart",GraphicalChild:Pv,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Ry},{axisType:"radiusAxis",AxisComp:wy}],formatAxisMap:Os,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Bw=i(1860),Lw=i.n(Bw),zw=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],Fw=["width","height","className","style","children","type"];function Uw(t){return Uw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uw(t)}function Ww(){return Ww=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ww.apply(this,arguments)}function $w(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Kw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Jw(n.key),n)}}function qw(t,e,r){return e=Xw(e),function(t,e){if(e&&("object"===Uw(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)}(t,Vw()?Reflect.construct(e,r||[],Xw(t).constructor):e.apply(t,r))}function Vw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vw=function(){return!!t})()}function Xw(t){return Xw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xw(t)}function Hw(t,e){return Hw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hw(t,e)}function Gw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Yw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gw(Object(r),!0).forEach((function(e){Zw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zw(t,e,r){return(e=Jw(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jw(t){var e=function(t,e){if("object"!=Uw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Uw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Uw(e)?e:e+""}var Qw="value",tj=function t(e){var r,n=e.depth,o=e.node,i=e.index,a=e.valueKey,c=o.children,u=n+1,l=c&&c.length?c.map((function(e,r){return t({depth:u,node:e,index:r,valueKey:a})})):null;return r=c&&c.length?l.reduce((function(t,e){return t+e[Qw]}),0):g()(o[a])||o[a]<=0?0:o[a],Yw(Yw({},o),{},Zw(Zw(Zw({children:l},Qw,r),"depth",n),"index",i))},ej=function(t,e,r){var n=e*e,o=t.area*t.area,i=t.reduce((function(t,e){return{min:Math.min(t.min,e.area),max:Math.max(t.max,e.area)}}),{min:1/0,max:0}),a=i.min,c=i.max;return o?Math.max(n*c*r/o,o/(n*a*r)):1/0},rj=function(t,e,r,n){return e===r.width?function(t,e,r,n){var o=e?Math.round(t.area/e):0;(n||o>r.height)&&(o=r.height);for(var i,a=r.x,c=0,u=t.length;c<u;c++)(i=t[c]).x=a,i.y=r.y,i.height=o,i.width=Math.min(o?Math.round(i.area/o):0,r.x+r.width-a),a+=i.width;return i.width+=r.x+r.width-a,Yw(Yw({},r),{},{y:r.y+o,height:r.height-o})}(t,e,r,n):function(t,e,r,n){var o=e?Math.round(t.area/e):0;(n||o>r.width)&&(o=r.width);for(var i,a=r.y,c=0,u=t.length;c<u;c++)(i=t[c]).x=r.x,i.y=a,i.width=o,i.height=Math.min(o?Math.round(i.area/o):0,r.y+r.height-a),a+=i.height;return i&&(i.height+=r.y+r.height-a),Yw(Yw({},r),{},{x:r.x+o,width:r.width-o})}(t,e,r,n)},nj=function t(e,r){var n=e.children;if(n&&n.length){var o,i,a=function(t){return{x:t.x,y:t.y,width:t.width,height:t.height}}(e),c=[],u=1/0,l=Math.min(a.width,a.height),s=function(t,e){var r=e<0?0:e;return t.map((function(t){var e=t[Qw]*r;return Yw(Yw({},t),{},{area:g()(e)||e<=0?0:e})}))}(n,a.width*a.height/e[Qw]),f=s.slice();for(c.area=0;f.length>0;)c.push(o=f[0]),c.area+=o.area,(i=ej(c,l,r))<=u?(f.shift(),u=i):(c.area-=c.pop().area,a=rj(c,l,a,!1),l=Math.min(a.width,a.height),c.length=c.area=0,u=1/0);return c.length&&(a=rj(c,l,a,!0),c.length=c.area=0),Yw(Yw({},e),{},{children:s.map((function(e){return t(e,r)}))})}return e},oj={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},ij=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Zw(t=qw(this,e,[].concat(n)),"state",Yw({},oj)),Zw(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),d()(e)&&e()})),Zw(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),d()(e)&&e()})),t}return 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&&Hw(t,e)}(e,t),n=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){if(t.data!==e.prevData||t.type!==e.prevType||t.width!==e.prevWidth||t.height!==e.prevHeight||t.dataKey!==e.prevDataKey||t.aspectRatio!==e.prevAspectRatio){var r=tj({depth:0,node:{children:t.data,x:0,y:0,width:t.width,height:t.height},index:0,valueKey:t.dataKey}),n=nj(r,t.aspectRatio);return Yw(Yw({},e),{},{formatRoot:n,currentRoot:r,nestIndex:[r],prevAspectRatio:t.aspectRatio,prevData:t.data,prevWidth:t.width,prevHeight:t.height,prevDataKey:t.dataKey,prevType:t.type})}return null}},{key:"renderContentItem",value:function(t,e,n,o){if(r().isValidElement(t))return r().cloneElement(t,e);if(d()(t))return t(e);var i=e.x,a=e.y,c=e.width,u=e.height,l=e.index,s=null;c>10&&u>10&&e.children&&"nest"===n&&(s=r().createElement(Id,{points:[{x:i+2,y:a+u/2},{x:i+6,y:a+u/2+3},{x:i+2,y:a+u/2+6}]}));var f=null,p=Rr(e.name);c>20&&u>20&&p.width<c&&p.height<u&&(f=r().createElement("text",{x:i+8,y:a+u/2+7,fontSize:14},e.name));var h=o||zw;return r().createElement("g",null,r().createElement(Pd,Ww({fill:e.depth<2?h[l%h.length]:"rgba(255,255,255,0)",stroke:"#fff"},Lw()(e,"children"),{role:"img"})),s,f)}}],(i=[{key:"handleMouseEnter",value:function(t,e){e.persist();var r=this.props,n=r.onMouseEnter;Y(r.children,br)?this.setState({isTooltipActive:!0,activeNode:t},(function(){n&&n(t,e)})):n&&n(t,e)}},{key:"handleMouseLeave",value:function(t,e){e.persist();var r=this.props,n=r.onMouseLeave;Y(r.children,br)?this.setState({isTooltipActive:!1,activeNode:null},(function(){n&&n(t,e)})):n&&n(t,e)}},{key:"handleClick",value:function(t){var e=this.props,r=e.onClick;if("nest"===e.type&&t.children){var n=this.props,o=n.width,i=n.height,a=n.dataKey,c=n.aspectRatio,u=tj({depth:0,node:Yw(Yw({},t),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),l=nj(u,c),s=this.state.nestIndex;s.push(t),this.setState({formatRoot:l,currentRoot:u,nestIndex:s})}r&&r(t)}},{key:"handleNestIndex",value:function(t,e){var r=this.state.nestIndex,n=this.props,o=n.width,i=n.height,a=n.dataKey,c=n.aspectRatio,u=tj({depth:0,node:Yw(Yw({},t),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),l=nj(u,c);r=r.slice(0,e+1),this.setState({formatRoot:l,currentRoot:t,nestIndex:r})}},{key:"renderItem",value:function(t,e,n){var o=this,i=this.props,a=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,l=i.animationEasing,s=i.isUpdateAnimationActive,f=i.type,p=i.animationId,h=i.colorPanel,d=this.state.isAnimationFinished,y=e.width,v=e.height,m=e.x,b=e.y,g=e.depth,x=parseInt("".concat((2*Math.random()-1)*y),10),O={};return(n||"nest"===f)&&(O={onMouseEnter:this.handleMouseEnter.bind(this,e),onMouseLeave:this.handleMouseLeave.bind(this,e),onClick:this.handleClick.bind(this,e)}),a?r().createElement(yd,{begin:c,duration:u,isActive:a,easing:l,key:"treemap-".concat(p),from:{x:m,y:b,width:y,height:v},to:{x:m,y:b,width:y,height:v},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.x,p=n.y,y=n.width,v=n.height;return r().createElement(yd,{from:"translate(".concat(x,"px, ").concat(x,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:c,easing:l,isActive:a,duration:u},r().createElement(ht,O,g>2&&!d?null:o.constructor.renderContentItem(t,Yw(Yw({},e),{},{isAnimationActive:a,isUpdateAnimationActive:!s,width:y,height:v,x:i,y:p}),f,h)))})):r().createElement(ht,O,this.constructor.renderContentItem(t,Yw(Yw({},e),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:y,height:v,x:m,y:b}),f,h))}},{key:"renderNode",value:function(t,e){var n=this,o=this.props,i=o.content,a=o.type,c=Yw(Yw(Yw({},rt(this.props,!1)),e),{},{root:t}),u=!e.children||!e.children.length;return!(this.state.currentRoot.children||[]).filter((function(t){return t.depth===e.depth&&t.name===e.name})).length&&t.depth&&"nest"===a?null:r().createElement(ht,{key:"recharts-treemap-node-".concat(c.x,"-").concat(c.y,"-").concat(c.name),className:"recharts-treemap-depth-".concat(e.depth)},this.renderItem(i,c,u),e.children&&e.children.length?e.children.map((function(t){return n.renderNode(e,t)})):null)}},{key:"renderAllNodes",value:function(){var t=this.state.formatRoot;return t?this.renderNode(t,t):null}},{key:"renderTooltip",value:function(){var t=this.props,e=t.children,n=t.nameKey,o=Y(e,br);if(!o)return null;var i=this.props,a=i.width,c=i.height,u=this.state,l=u.isTooltipActive,s=u.activeNode,f={x:0,y:0,width:a,height:c},p=s?{x:s.x+s.width/2,y:s.y+s.height/2}:null,h=l&&s?[{payload:s,name:Bl(s,n,""),value:Bl(s,Qw)}]:[];return r().cloneElement(o,{viewBox:f,active:l,coordinate:p,label:"",payload:h})}},{key:"renderNestIndex",value:function(){var t=this,e=this.props,n=e.nameKey,o=e.nestIndexContent,i=this.state.nestIndex;return r().createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},i.map((function(e,i){var a=u()(e,n,"root"),c=null;return r().isValidElement(o)&&(c=r().cloneElement(o,e,i)),c=d()(o)?o(e,i):a,r().createElement("div",{onClick:t.handleNestIndex.bind(t,e,i),key:"nest-index-".concat(E()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},c)})))}},{key:"render",value:function(){if(!Z(this))return null;var t=this.props,e=t.width,n=t.height,i=t.className,a=t.style,c=t.children,u=t.type,l=$w(t,Fw),s=rt(l,!1);return r().createElement("div",{className:o("recharts-wrapper",i),style:Yw(Yw({},a),{},{position:"relative",cursor:"default",width:e,height:n}),role:"region"},r().createElement(lt,Ww({},s,{width:e,height:"nest"===u?n-30:n}),this.renderAllNodes(),et(c)),this.renderTooltip(),"nest"===u&&this.renderNestIndex())}}])&&Kw(n.prototype,i),a&&Kw(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);Zw(ij,"displayName","Treemap"),Zw(ij,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!ar.isSsr,isUpdateAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var aj=i(6356),cj=i.n(aj),uj=["width","height","className","style","children"],lj=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function sj(t){return sj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sj(t)}function fj(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function pj(){return pj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pj.apply(this,arguments)}function hj(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Oj(n.key),n)}}function dj(t,e,r){return e=vj(e),function(t,e){if(e&&("object"===sj(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)}(t,yj()?Reflect.construct(e,r||[],vj(t).constructor):e.apply(t,r))}function yj(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yj=function(){return!!t})()}function vj(t){return vj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vj(t)}function mj(t,e){return mj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mj(t,e)}function bj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bj(Object(r),!0).forEach((function(e){xj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xj(t,e,r){return(e=Oj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Oj(t){var e=function(t,e){if("object"!=sj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sj(e)?e:e+""}var wj={x:0,y:0},jj=function(t){return t.y+t.dy/2},Sj=function(t){return t&&t.value||0},Aj=function(t,e){return e.reduce((function(e,r){return e+Sj(t[r])}),0)},Pj=function(t,e,r){return r.reduce((function(r,n){var o=e[n],i=t[o.source];return r+jj(i)*Sj(e[n])}),0)},Ej=function(t,e,r){return r.reduce((function(r,n){var o=e[n],i=t[o.target];return r+jj(i)*Sj(e[n])}),0)},kj=function(t,e){return t.y-e.y},Tj=function t(e,r){for(var n=r.targetNodes,o=0,i=n.length;o<i;o++){var a=e[n[o]];a&&(a.depth=Math.max(r.depth+1,a.depth),t(e,a))}},Mj=function(t,e,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=0,i=t.length;o<i;o++){var a=t[o],c=a.length;n&&a.sort(kj);for(var u=0,l=0;l<c;l++){var s=a[l],f=u-s.y;f>0&&(s.y+=f),u=s.y+s.dy+r}u=e+r;for(var p=c-1;p>=0;p--){var h=a[p],d=h.y+h.dy+r-u;if(!(d>0))break;h.y-=d,u=h.y}}},_j=function(t,e,r,n){for(var o=0,i=e.length;o<i;o++)for(var a=e[o],c=0,u=a.length;c<u;c++){var l=a[c];if(l.sourceLinks.length){var s=Aj(r,l.sourceLinks),f=Pj(t,r,l.sourceLinks)/s;l.y+=(f-jj(l))*n}}},Cj=function(t,e,r,n){for(var o=e.length-1;o>=0;o--)for(var i=e[o],a=0,c=i.length;a<c;a++){var u=i[a];if(u.targetLinks.length){var l=Aj(r,u.targetLinks),s=Ej(t,r,u.targetLinks)/l;u.y+=(s-jj(u))*n}}},Dj=function(t){var e=t.data,r=t.width,n=t.height,o=t.iterations,i=t.nodeWidth,a=t.nodePadding,c=t.sort,u=e.links,l=function(t,e,r){for(var n=t.nodes,o=t.links,i=n.map((function(t,e){var r=function(t,e){for(var r=[],n=[],o=[],i=[],a=0,c=t.length;a<c;a++){var u=t[a];u.source===e&&(o.push(u.target),i.push(a)),u.target===e&&(r.push(u.source),n.push(a))}return{sourceNodes:r,sourceLinks:n,targetLinks:i,targetNodes:o}}(o,e);return gj(gj(gj({},t),r),{},{value:Math.max(Aj(o,r.sourceLinks),Aj(o,r.targetLinks)),depth:0})})),a=0,c=i.length;a<c;a++){var u=i[a];u.sourceNodes.length||Tj(i,u)}var l=iy()(i,(function(t){return t.depth})).depth;if(l>=1)for(var s=(e-r)/l,f=0,p=i.length;f<p;f++){var h=i[f];h.targetNodes.length||(h.depth=l),h.x=h.depth*s,h.dx=r}return{tree:i,maxDepth:l}}(e,r,i),s=l.tree,f=function(t){for(var e=[],r=0,n=t.length;r<n;r++){var o=t[r];e[o.depth]||(e[o.depth]=[]),e[o.depth].push(o)}return e}(s),p=function(t,e,r,n){for(var o=Mu()(t.map((function(t){return(e-(t.length-1)*r)/cj()(t,Sj)}))),i=0,a=t.length;i<a;i++)for(var c=0,u=t[i].length;c<u;c++){var l=t[i][c];l.y=c,l.dy=l.value*o}return n.map((function(t){return gj(gj({},t),{},{dy:Sj(t)*o})}))}(f,n,a,u);Mj(f,n,a,c);for(var h=1,d=1;d<=o;d++)Cj(s,f,p,h*=.99),Mj(f,n,a,c),_j(s,f,p,h),Mj(f,n,a,c);return function(t,e){for(var r=0,n=t.length;r<n;r++){var o=t[r],i=0,a=0;o.targetLinks.sort((function(r,n){return t[e[r].target].y-t[e[n].target].y})),o.sourceLinks.sort((function(r,n){return t[e[r].source].y-t[e[n].source].y}));for(var c=0,u=o.targetLinks.length;c<u;c++){var l=e[o.targetLinks[c]];l&&(l.sy=i,i+=l.dy)}for(var s=0,f=o.sourceLinks.length;s<f;s++){var p=e[o.sourceLinks[s]];p&&(p.ty=a,a+=p.dy)}}}(s,p),{nodes:s,links:p}},Ij=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return xj(t=dj(this,e,[].concat(n)),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),t}return 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&&mj(t,e)}(e,t),n=e,i=[{key:"handleMouseEnter",value:function(t,e,r){var n=this.props,o=n.onMouseEnter,i=Y(n.children,br);i?this.setState((function(r){return"hover"===i.props.trigger?gj(gj({},r),{},{activeElement:t,activeElementType:e,isTooltipActive:!0}):r}),(function(){o&&o(t,e,r)})):o&&o(t,e,r)}},{key:"handleMouseLeave",value:function(t,e,r){var n=this.props,o=n.onMouseLeave,i=Y(n.children,br);i?this.setState((function(t){return"hover"===i.props.trigger?gj(gj({},t),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):t}),(function(){o&&o(t,e,r)})):o&&o(t,e,r)}},{key:"handleClick",value:function(t,e,r){var n=this.props,o=n.onClick,i=Y(n.children,br);i&&"click"===i.props.trigger&&(this.state.isTooltipActive?this.setState((function(t){return gj(gj({},t),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(r){return gj(gj({},r),{},{activeElement:t,activeElementType:e,isTooltipActive:!0})}))),o&&o(t,e,r)}},{key:"renderLinks",value:function(t,e){var n=this,o=this.props,i=o.linkCurvature,a=o.link,c=o.margin,l=u()(c,"top")||0,s=u()(c,"left")||0;return r().createElement(ht,{className:"recharts-sankey-links",key:"recharts-sankey-links"},t.map((function(t,o){var c=t.sy,u=t.ty,f=t.dy,p=e[t.source],h=e[t.target],d=p.x+p.dx+s,y=h.x+s,v=function(t,e){var r=+t,n=e-r;return function(t){return r+n*t}}(d,y),m=v(i),b=v(1-i),g=gj({sourceX:d,targetX:y,sourceY:p.y+c+f/2+l,targetY:h.y+u+f/2+l,sourceControlX:m,targetControlX:b,sourceRelativeY:c,targetRelativeY:u,linkWidth:f,index:o,payload:gj(gj({},t),{},{source:p,target:h})},rt(a,!1)),x={onMouseEnter:n.handleMouseEnter.bind(n,g,"link"),onMouseLeave:n.handleMouseLeave.bind(n,g,"link"),onClick:n.handleClick.bind(n,g,"link")};return r().createElement(ht,pj({key:"link-".concat(t.source,"-").concat(t.target,"-").concat(t.value)},x),n.constructor.renderLinkItem(a,g))})))}},{key:"renderNodes",value:function(t){var e=this,n=this.props,o=n.node,i=n.margin,a=u()(i,"top")||0,c=u()(i,"left")||0;return r().createElement(ht,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},t.map((function(t,n){var i=t.x,u=t.y,l=t.dx,s=t.dy,f=gj(gj({},rt(o,!1)),{},{x:i+c,y:u+a,width:l,height:s,index:n,payload:t}),p={onMouseEnter:e.handleMouseEnter.bind(e,f,"node"),onMouseLeave:e.handleMouseLeave.bind(e,f,"node"),onClick:e.handleClick.bind(e,f,"node")};return r().createElement(ht,pj({key:"node-".concat(t.x,"-").concat(t.y,"-").concat(t.value)},p),e.constructor.renderNodeItem(o,f))})))}},{key:"renderTooltip",value:function(){var t=this.props,e=t.children,n=t.width,o=t.height,i=t.nameKey,a=Y(e,br);if(!a)return null;var c,u=this.state,l=u.isTooltipActive,s=u.activeElement,f=u.activeElementType,p={x:0,y:0,width:n,height:o},h=s?(c=s,"node"===f?{x:c.x+c.width/2,y:c.y+c.height/2}:{x:(c.sourceX+c.targetX)/2,y:(c.sourceY+c.targetY)/2}):wj,d=s?function(t,e,r){var n=t.payload;if("node"===e)return[{payload:t,name:Bl(n,r,""),value:Bl(n,"value")}];if(n.source&&n.target){var o=Bl(n.source,r,""),i=Bl(n.target,r,"");return[{payload:t,name:"".concat(o," - ").concat(i),value:Bl(n,"value")}]}return[]}(s,f,i):[];return r().cloneElement(a,{viewBox:p,active:l,coordinate:h,label:"",payload:d})}},{key:"render",value:function(){if(!Z(this))return null;var t=this.props,e=t.width,n=t.height,i=t.className,a=t.style,c=t.children,u=fj(t,uj),l=this.state,s=l.links,f=l.nodes,p=rt(u,!1);return r().createElement("div",{className:o("recharts-wrapper",i),style:gj(gj({},a),{},{position:"relative",cursor:"default",width:e,height:n}),role:"region"},r().createElement(lt,pj({},p,{width:e,height:n}),et(c),this.renderLinks(s,f),this.renderNodes(f)),this.renderTooltip())}}],a=[{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.height,i=t.margin,a=t.iterations,c=t.nodeWidth,u=t.nodePadding,l=t.sort;if(r!==e.prevData||n!==e.prevWidth||o!==e.prevHeight||!C(i,e.prevMargin)||a!==e.prevIterations||c!==e.prevNodeWidth||u!==e.prevNodePadding||l!==e.sort){var s=n-(i&&i.left||0)-(i&&i.right||0),f=o-(i&&i.top||0)-(i&&i.bottom||0),p=Dj({data:r,width:s,height:f,iterations:a,nodeWidth:c,nodePadding:u,sort:l}),h=p.links,d=p.nodes;return gj(gj({},e),{},{nodes:d,links:h,prevData:r,prevWidth:a,prevHeight:o,prevMargin:i,prevNodePadding:u,prevNodeWidth:c,prevIterations:a,prevSort:l})}return null}},{key:"renderLinkItem",value:function(t,e){if(r().isValidElement(t))return r().cloneElement(t,e);if(d()(t))return t(e);var n=e.sourceX,o=e.sourceY,i=e.sourceControlX,a=e.targetX,c=e.targetY,u=e.targetControlX,l=e.linkWidth,s=fj(e,lj);return r().createElement("path",pj({className:"recharts-sankey-link",d:"\n M".concat(n,",").concat(o,"\n C").concat(i,",").concat(o," ").concat(u,",").concat(c," ").concat(a,",").concat(c,"\n "),fill:"none",stroke:"#333",strokeWidth:l,strokeOpacity:"0.2"},rt(s,!1)))}},{key:"renderNodeItem",value:function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(Pd,pj({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},rt(e,!1),{role:"img"}))}}],i&&hj(n.prototype,i),a&&hj(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);xj(Ij,"displayName","Sankey"),xj(Ij,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5},sort:!0});var Nj=Dw({chartName:"RadarChart",GraphicalChild:Wv,axisComponents:[{axisType:"angleAxis",AxisComp:Ry},{axisType:"radiusAxis",AxisComp:wy}],formatAxisMap:Os,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Rj=Dw({chartName:"ScatterChart",GraphicalChild:dO,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:AO},{axisType:"yAxis",AxisComp:RO},{axisType:"zAxis",AxisComp:Jx}],formatAxisMap:yb}),Bj=Dw({chartName:"AreaChart",GraphicalChild:$x,axisComponents:[{axisType:"xAxis",AxisComp:AO},{axisType:"yAxis",AxisComp:RO}],formatAxisMap:yb}),Lj=Dw({chartName:"RadialBarChart",GraphicalChild:fm,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:Ry},{axisType:"radiusAxis",AxisComp:wy}],formatAxisMap:Os,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),zj=Dw({chartName:"ComposedChart",GraphicalChild:[Ex,$x,ub,dO],axisComponents:[{axisType:"xAxis",AxisComp:AO},{axisType:"yAxis",AxisComp:RO},{axisType:"zAxis",AxisComp:Jx}],formatAxisMap:yb});function Fj(){return Fj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fj.apply(this,arguments)}function Uj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||$j(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 Wj(t){return function(t){if(Array.isArray(t))return Kj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||$j(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 $j(t,e){if(t){if("string"==typeof t)return Kj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kj(t,e):void 0}}function Kj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var qj={fontWeight:"bold",paintOrder:"stroke fill",fontSize:".75rem",stroke:"#FFF",fill:"black",pointerEvents:"none"};function Vj(t){if(!t.children||0===t.children.length)return 1;var e=t.children.map((function(t){return Vj(t)}));return 1+Math.max.apply(Math,Wj(e))}var Xj,Hj=function(t){var n=t.className,i=t.data,a=t.children,c=t.width,u=t.height,l=t.padding,s=void 0===l?2:l,f=t.dataKey,p=void 0===f?"value":f,h=t.ringPadding,d=void 0===h?2:h,y=t.innerRadius,v=void 0===y?50:y,m=t.fill,b=void 0===m?"#333":m,g=t.stroke,x=void 0===g?"#FFF":g,O=t.textOptions,w=void 0===O?qj:O,j=t.outerRadius,S=void 0===j?Math.min(c,u)/2:j,A=t.cx,P=void 0===A?c/2:A,E=t.cy,k=void 0===E?u/2:E,T=t.startAngle,M=void 0===T?0:T,_=t.endAngle,C=void 0===_?360:_,D=t.onClick,I=t.onMouseEnter,N=t.onMouseLeave,R=Uj((0,e.useState)(!1),2),B=R[0],L=R[1],z=Uj((0,e.useState)(null),2),F=z[0],U=z[1],W=si([0,i[p]],[0,C]),$=(S-v)/Vj(i),K=[],q=new Map([]);function V(t,e){I&&I(t,e),U(t),L(!0)}function X(t,e){N&&N(t,e),U(null),L(!1)}function H(t){D&&D(t)}!function t(e,n){var o=n.radius,i=n.innerR,a=n.initialAngle,c=n.childColor,u=a;e&&e.forEach((function(e){var n,a,l=W(e[p]),f=u,h=null!==(n=null!==(a=null==e?void 0:e.fill)&&void 0!==a?a:c)&&void 0!==n?n:b,y=gs(0,0,i+o/2,-(f+l-l/2)),v=y.x,m=y.y;u+=l,K.push(r().createElement("g",{"aria-label":e.name,tabIndex:0},r().createElement(yf,{onClick:function(){return H(e)},onMouseEnter:function(t){return V(e,t)},onMouseLeave:function(t){return X(e,t)},fill:h,stroke:x,strokeWidth:s,startAngle:f,endAngle:f+l,innerRadius:i,outerRadius:i+o,cx:P,cy:k}),r().createElement(pn,Fj({},w,{alignmentBaseline:"middle",textAnchor:"middle",x:v+P,y:k-m}),e[p])));var g=gs(P,k,i+o/2,f),O=g.x,j=g.y;return q.set(e.name,{x:O,y:j}),t(e.children,{radius:o,innerR:i+o+d,initialAngle:f,childColor:h})}))}(i.children,{radius:$,innerR:v,initialAngle:M});var G=o("recharts-sunburst",n);return r().createElement("div",{className:o("recharts-wrapper",n),style:{position:"relative",width:c,height:u},role:"region"},r().createElement(lt,{width:c,height:u},a,r().createElement(ht,{className:G},K)),function(){var t=Y([a],br);if(!t||!F)return null;var e={x:0,y:0,width:c,height:u};return r().cloneElement(t,{viewBox:e,coordinate:q.get(F.name),payload:[F],active:B})}())};function Gj(t){return Gj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gj(t)}function Yj(){return Yj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Yj.apply(this,arguments)}function Zj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Jj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zj(Object(r),!0).forEach((function(e){Qj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qj(t,e,r){var n;return n=function(t,e){if("object"!=Gj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Gj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Gj(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tS(t,e){var r="".concat(e.x||t.x),n=parseInt(r,10),o="".concat(e.y||t.y),i=parseInt(o,10),a="".concat((null==e?void 0:e.height)||(null==t?void 0:t.height)),c=parseInt(a,10);return Jj(Jj(Jj({},e),av(t)),{},{height:c,x:n,y:i})}function eS(t){return r().createElement(cv,Yj({shapeType:"trapezoid",propTransformer:tS},t))}function rS(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return nS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nS(t,e)}(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 nS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function oS(t){return oS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oS(t)}function iS(){return iS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},iS.apply(this,arguments)}function aS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aS(Object(r),!0).forEach((function(e){hS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,dS(n.key),n)}}function lS(t,e,r){return e=fS(e),function(t,e){if(e&&("object"===oS(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)}(t,sS()?Reflect.construct(e,r||[],fS(t).constructor):e.apply(t,r))}function sS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(sS=function(){return!!t})()}function fS(t){return fS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fS(t)}function pS(t,e){return pS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pS(t,e)}function hS(t,e,r){return(e=dS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dS(t){var e=function(t,e){if("object"!=oS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=oS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==oS(e)?e:e+""}var yS=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return hS(t=lS(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),hS(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),d()(e)&&e()})),hS(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),d()(e)&&e()})),t}return 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&&pS(t,e)}(e,t),n=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curTrapezoids:t.trapezoids,prevTrapezoids:e.curTrapezoids}:t.trapezoids!==e.curTrapezoids?{curTrapezoids:t.trapezoids}:null}}],(i=[{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"renderTrapezoidsStatically",value:function(t){var e=this,n=this.props,o=n.shape,i=n.activeShape;return t.map((function(t,n){var a=e.isActiveIndex(n)?i:o,c=cS(cS({},t),{},{isActive:e.isActiveIndex(n),stroke:t.stroke});return r().createElement(ht,iS({className:"recharts-funnel-trapezoid"},z(e.props,t,n),{key:"trapezoid-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.name,"-").concat(null==t?void 0:t.value),role:"img"}),r().createElement(eS,iS({option:a},c)))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var t=this,e=this.props,n=e.trapezoids,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevTrapezoids;return r().createElement(yd,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"funnel-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(e){var o=e.t,i=n.map((function(t,e){var r=l&&l[e];if(r){var n=M(r.x,t.x),i=M(r.y,t.y),a=M(r.upperWidth,t.upperWidth),c=M(r.lowerWidth,t.lowerWidth),u=M(r.height,t.height);return cS(cS({},t),{},{x:n(o),y:i(o),upperWidth:a(o),lowerWidth:c(o),height:u(o)})}var s=M(t.x+t.upperWidth/2,t.x),f=M(t.y+t.height/2,t.y),p=M(0,t.upperWidth),h=M(0,t.lowerWidth),d=M(0,t.height);return cS(cS({},t),{},{x:s(o),y:f(o),upperWidth:p(o),lowerWidth:h(o),height:d(o)})}));return r().createElement(ht,null,t.renderTrapezoidsStatically(i))}))}},{key:"renderTrapezoids",value:function(){var t=this.props,e=t.trapezoids,r=t.isAnimationActive,n=this.state.prevTrapezoids;return!(r&&e&&e.length)||n&&Iu()(n,e)?this.renderTrapezoidsStatically(e):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.trapezoids,i=t.className,a=t.isAnimationActive,c=this.state.isAnimationFinished;if(e||!n||!n.length)return null;var u=o("recharts-trapezoids",i);return r().createElement(ht,{className:u},this.renderTrapezoids(),(!a||c)&&ef.renderCallByParent(this.props,n))}}])&&uS(n.prototype,i),a&&uS(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(e.PureComponent);Xj=yS,hS(yS,"displayName","Funnel"),hS(yS,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!ar.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),hS(yS,"getRealFunnelData",(function(t){var e=t.props,r=e.data,n=e.children,o=rt(t.props,!1),i=G(n,kr);return r&&r.length?r.map((function(t,e){return cS(cS(cS({payload:t},o),t),i&&i[e]&&i[e].props)})):i&&i.length?i.map((function(t){return cS(cS({},o),t.props)})):[]})),hS(yS,"getRealWidthHeight",(function(t,e){var r=t.props.width,n=e.width,o=e.height,i=e.left,a=e.right,c=e.top,u=e.bottom,l=o,s=n;return O()(r)?s=r:p()(r)&&(s=s*parseFloat(r)/100),{realWidth:s-i-a-50,realHeight:l-u-c,offsetX:(n-s)/2,offsetY:(o-l)/2}})),hS(yS,"getComposedData",(function(t){var e=t.item,r=t.offset,n=Xj.getRealFunnelData(e),o=e.props,i=o.dataKey,a=o.nameKey,c=o.tooltipType,u=o.lastShapeType,l=o.reversed,s=r.left,f=r.top,p=Xj.getRealWidthHeight(e,r),h=p.realHeight,d=p.realWidth,y=p.offsetX,v=p.offsetY,m=Math.max.apply(null,n.map((function(t){return Bl(t,i,0)}))),b=n.length,g=h/b,x={x:r.left,y:r.top,width:r.width,height:r.height},O=n.map((function(t,e){var r,o=Bl(t,i,0),l=Bl(t,a,e),p=o;if(e!==b-1)(r=Bl(n[e+1],i,0))instanceof Array&&(r=rS(r,1)[0]);else if(o instanceof Array&&2===o.length){var h=rS(o,2);p=h[0],r=h[1]}else r="rectangle"===u?p:0;var O=(m-p)*d/(2*m)+f+25+y,w=g*e+s+v,j=p/m*d,S=r/m*d,A=[{name:l,value:p,payload:t,dataKey:i,type:c}],P={x:O+j/2,y:w+g/2};return cS(cS({x:O,y:w,width:Math.max(j,S),upperWidth:j,lowerWidth:S,height:g,name:l,val:p,tooltipPayload:A,tooltipPosition:P},Lw()(t,"width")),{},{payload:t,parentViewBox:x,labelViewBox:{x:O+(j-S)/4,y:w,width:Math.abs(j-S)/2+Math.min(j,S),height:g}})}));return l&&(O=O.map((function(t,e){var r=t.y-e*g+(b-1-e)*g;return cS(cS({},t),{},{upperWidth:t.lowerWidth,lowerWidth:t.upperWidth,x:t.x-(t.lowerWidth-t.upperWidth)/2,y:t.y-e*g+(b-1-e)*g,tooltipPosition:cS(cS({},t.tooltipPosition),{},{y:r+g/2}),labelViewBox:cS(cS({},t.labelViewBox),{},{y:r})})}))),{trapezoids:O,data:n}}));var vS=Dw({chartName:"FunnelChart",GraphicalChild:yS,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}})})(),a})()));
//# sourceMappingURL=Recharts.js.map