recharts
Version:
React charts
2 lines • 593 kB
JavaScript
/*! For license information please see Recharts.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("react-is")):"function"==typeof define&&define.amd?define(["react","react-dom","react-is"],t):"object"==typeof exports?exports.Recharts=t(require("react"),require("react-dom"),require("react-is")):e.Recharts=t(e.React,e.ReactDOM,e.ReactIs)}(this,(e,t,r)=>(()=>{var n={351(e,t,r){var n;!function(){"use strict";var i,a=1e9,o={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,u="[DecimalError] ",c=u+"Invalid argument: ",s=u+"Exponent out of range: ",f=Math.floor,d=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=1e7,v=9007199254740991,y=f(1286742750677284.5),m={};function g(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),l?k(t,d):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),a>(u=(o=Math.ceil(d/7))>u?o+1:u+1)&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for((u=c.length)-(a=s.length)<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/h|0,c[a]%=h;for(r&&(c.unshift(r),++i),u=c.length;0==c[--u];)c.pop();return t.d=c,t.e=i,l?k(t,d):t}function b(e,t,r){if(e!==~~e||e<t||e>r)throw Error(c+e)}function x(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(a+=P(r)),a+=n;(r=7-(n=(o=e[t])+"").length)&&(a+=P(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}m.absoluteValue=m.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},m.comparedTo=m.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(t=0,r=(n=a.d.length)<(i=e.d.length)?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1},m.decimalPlaces=m.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},m.dividedBy=m.div=function(e){return w(this,new this.constructor(e))},m.dividedToIntegerBy=m.idiv=function(e){var t=this.constructor;return k(w(this,new t(e),0,1),t.precision)},m.equals=m.eq=function(e){return!this.cmp(e)},m.exponent=function(){return E(this)},m.greaterThan=m.gt=function(e){return this.cmp(e)>0},m.greaterThanOrEqualTo=m.gte=function(e){return this.cmp(e)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(e){return this.cmp(e)<0},m.lessThanOrEqualTo=m.lte=function(e){return this.cmp(e)<1},m.logarithm=m.log=function(e){var t,r=this,n=r.constructor,a=n.precision,o=a+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(i))throw Error(u+"NaN");if(r.s<1)throw Error(u+(r.s?"NaN":"-Infinity"));return r.eq(i)?new n(0):(l=!1,t=w(j(r,o),j(e,o),o),l=!0,k(t,a))},m.minus=m.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?I(t,e):g(t,(e.s=-e.s,e))},m.modulo=m.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(u+"NaN");return r.s?(l=!1,t=w(r,e,0,1).times(e),l=!0,r.minus(t)):k(new n(r),i)},m.naturalExponential=m.exp=function(){return O(this)},m.naturalLogarithm=m.ln=function(){return j(this)},m.negated=m.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},m.plus=m.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?g(t,e):I(t,(e.s=-e.s,e))},m.precision=m.sd=function(e){var t,r,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=E(i)+1,r=7*(n=i.d.length-1)+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},m.squareRoot=m.sqrt=function(){var e,t,r,n,i,a,o,c=this,s=c.constructor;if(c.s<1){if(!c.s)return new s(0);throw Error(u+"NaN")}for(e=E(c),l=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=x(c.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),n=new s(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new s(i.toString()),i=o=(r=s.precision)+3;;)if(n=(a=n).plus(w(c,a,o+2)).times(.5),x(a.d).slice(0,o)===(t=x(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&"4999"==t){if(k(a,r+1,0),a.times(a).eq(c)){n=a;break}}else if("9999"!=t)break;o+=4}return l=!0,k(n,r)},m.times=m.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,d=f.constructor,p=f.d,v=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,r=f.e+e.e,(c=p.length)<(s=v.length)&&(a=p,p=v,v=a,o=c,c=s,s=o),a=[],n=o=c+s;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+v[n]*p[i-n-1]+t,a[i--]=u%h|0,t=u/h|0;a[i]=(a[i]+t)%h|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,l?k(e,d.precision):e},m.toDecimalPlaces=m.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(b(e,0,a),void 0===t?t=n.rounding:b(t,0,8),k(r,e+E(r)+1,t))},m.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=M(n,!0):(b(e,0,a),void 0===t?t=i.rounding:b(t,0,8),r=M(n=k(new i(n),e+1,t),!0,e+1)),r},m.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?M(i):(b(e,0,a),void 0===t?t=o.rounding:b(t,0,8),r=M((n=k(new o(i),e+E(i)+1,t)).abs(),!1,e+E(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},m.toInteger=m.toint=function(){var e=this,t=e.constructor;return k(new t(e),E(e)+1,t.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(e){var t,r,n,a,o,c,s=this,d=s.constructor,p=+(e=new d(e));if(!e.s)return new d(i);if(!(s=new d(s)).s){if(e.s<1)throw Error(u+"Infinity");return s}if(s.eq(i))return s;if(n=d.precision,e.eq(i))return k(s,n);if(c=(t=e.e)>=(r=e.d.length-1),o=s.s,c){if((r=p<0?-p:p)<=v){for(a=new d(i),t=Math.ceil(n/7+4),l=!1;r%2&&D((a=a.times(s)).d,t),0!==(r=f(r/2));)D((s=s.times(s)).d,t);return l=!0,e.s<0?new d(i).div(a):k(a,n)}}else if(o<0)throw Error(u+"NaN");return o=o<0&&1&e.d[Math.max(t,r)]?-1:1,s.s=1,l=!1,a=e.times(j(s,n+12)),l=!0,(a=O(a)).s=o,a},m.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?n=M(i,(r=E(i))<=o.toExpNeg||r>=o.toExpPos):(b(e,1,a),void 0===t?t=o.rounding:b(t,0,8),n=M(i=k(new o(i),e,t),e<=(r=E(i))||r<=o.toExpNeg,e)),n},m.toSignificantDigits=m.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(b(e,1,a),void 0===t?t=r.rounding:b(t,0,8)),k(new r(this),e,t)},m.toString=m.valueOf=m.val=m.toJSON=function(){var e=this,t=E(e),r=e.constructor;return M(e,t<=r.toExpNeg||t>=r.toExpPos)};var w=function(){function e(e,t){var r,n=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+n,e[i]=r%h|0,n=r/h|0;return n&&e.unshift(n),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*h+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,a,o){var l,c,s,f,d,p,v,y,m,g,b,x,w,O,A,P,j,S,I=n.constructor,M=n.s==i.s?1:-1,D=n.d,T=i.d;if(!n.s)return new I(n);if(!i.s)throw Error(u+"Division by zero");for(c=n.e-i.e,j=T.length,A=D.length,y=(v=new I(M)).d=[],s=0;T[s]==(D[s]||0);)++s;if(T[s]>(D[s]||0)&&--c,(x=null==a?a=I.precision:o?a+(E(n)-E(i))+1:a)<0)return new I(0);if(x=x/7+2|0,s=0,1==j)for(f=0,T=T[0],x++;(s<A||f)&&x--;s++)w=f*h+(D[s]||0),y[s]=w/T|0,f=w%T|0;else{for((f=h/(T[0]+1)|0)>1&&(T=e(T,f),D=e(D,f),j=T.length,A=D.length),O=j,g=(m=D.slice(0,j)).length;g<j;)m[g++]=0;(S=T.slice()).unshift(0),P=T[0],T[1]>=h/2&&++P;do{f=0,(l=t(T,m,j,g))<0?(b=m[0],j!=g&&(b=b*h+(m[1]||0)),(f=b/P|0)>1?(f>=h&&(f=h-1),1==(l=t(d=e(T,f),m,p=d.length,g=m.length))&&(f--,r(d,j<p?S:T,p))):(0==f&&(l=f=1),d=T.slice()),(p=d.length)<g&&d.unshift(0),r(m,d,g),-1==l&&(l=t(T,m,j,g=m.length))<1&&(f++,r(m,j<g?S:T,g)),g=m.length):0===l&&(f++,m=[0]),y[s++]=f,l&&m[0]?m[g++]=D[O]||0:(m=[D[O]],g=1)}while((O++<A||void 0!==m[0])&&x--)}return y[0]||y.shift(),v.e=c,k(v,o?a+E(v)+1:a)}}();function O(e,t){var r,n,a,o,u,c=0,f=0,p=e.constructor,h=p.precision;if(E(e)>16)throw Error(s+E(e));if(!e.s)return new p(i);for(null==t?(l=!1,u=h):u=t,o=new p(.03125);e.abs().gte(.1);)e=e.times(o),f+=5;for(u+=Math.log(d(2,f))/Math.LN10*2+5|0,r=n=a=new p(i),p.precision=u;;){if(n=k(n.times(e),u),r=r.times(++c),x((o=a.plus(w(n,r,u))).d).slice(0,u)===x(a.d).slice(0,u)){for(;f--;)a=k(a.times(a),u);return p.precision=h,null==t?(l=!0,k(a,h)):a}a=o}}function E(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function A(e,t,r){if(t>e.LN10.sd())throw l=!0,r&&(e.precision=r),Error(u+"LN10 precision limit exceeded");return k(new e(e.LN10),t)}function P(e){for(var t="";e--;)t+="0";return t}function j(e,t){var r,n,a,o,c,s,f,d,p,h=1,v=e,y=v.d,m=v.constructor,g=m.precision;if(v.s<1)throw Error(u+(v.s?"NaN":"-Infinity"));if(v.eq(i))return new m(0);if(null==t?(l=!1,d=g):d=t,v.eq(10))return null==t&&(l=!0),A(m,d);if(d+=10,m.precision=d,n=(r=x(y)).charAt(0),o=E(v),!(Math.abs(o)<15e14))return f=A(m,d+2,g).times(o+""),v=j(new m(n+"."+r.slice(1)),d-10).plus(f),m.precision=g,null==t?(l=!0,k(v,g)):v;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=x((v=v.times(e)).d)).charAt(0),h++;for(o=E(v),n>1?(v=new m("0."+r),o++):v=new m(n+"."+r.slice(1)),s=c=v=w(v.minus(i),v.plus(i),d),p=k(v.times(v),d),a=3;;){if(c=k(c.times(p),d),x((f=s.plus(w(c,new m(a),d))).d).slice(0,d)===x(s.d).slice(0,d))return s=s.times(2),0!==o&&(s=s.plus(A(m,d+2,g).times(o+""))),s=w(s,new m(h),d),m.precision=g,null==t?(l=!0,k(s,g)):s;s=f,a+=2}}function S(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,r=r-n-1,e.e=f(r/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),l&&(e.e>y||e.e<-y))throw Error(s+r)}else e.s=0,e.e=0,e.d=[0];return e}function k(e,t,r){var n,i,a,o,u,c,p,v,m=e.d;for(o=1,a=m[0];a>=10;a/=10)o++;if((n=t-o)<0)n+=7,i=t,p=m[v=0];else{if((v=Math.ceil((n+1)/7))>=(a=m.length))return e;for(p=a=m[v],o=1;a>=10;a/=10)o++;i=(n%=7)-7+o}if(void 0!==r&&(u=p/(a=d(10,o-i-1))%10|0,c=t<0||void 0!==m[v+1]||p%a,c=r<4?(u||c)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||c||6==r&&(n>0?i>0?p/d(10,o-i):0:m[v-1])%10&1||r==(e.s<0?8:7))),t<1||!m[0])return c?(a=E(e),m.length=1,t=t-a-1,m[0]=d(10,(7-t%7)%7),e.e=f(-t/7)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(0==n?(m.length=v,a=1,v--):(m.length=v+1,a=d(10,7-n),m[v]=i>0?(p/d(10,o-i)%d(10,i)|0)*a:0),c)for(;;){if(0==v){(m[0]+=a)==h&&(m[0]=1,++e.e);break}if(m[v]+=a,m[v]!=h)break;m[v--]=0,a=1}for(n=m.length;0===m[--n];)m.pop();if(l&&(e.e>y||e.e<-y))throw Error(s+E(e));return e}function I(e,t){var r,n,i,a,o,u,c,s,f,d,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),l?k(t,v):t;if(c=e.d,d=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n){for((f=o<0)?(r=c,o=-o,u=d.length):(r=d,n=s,u=c.length),o>(i=Math.max(Math.ceil(v/7),u)+2)&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for((f=(i=c.length)<(u=d.length))&&(u=i),i=0;i<u;i++)if(c[i]!=d[i]){f=c[i]<d[i];break}o=0}for(f&&(r=c,c=d,d=r,t.s=-t.s),u=c.length,i=d.length-u;i>0;--i)c[u++]=0;for(i=d.length;i>o;){if(c[--i]<d[i]){for(a=i;a&&0===c[--a];)c[a]=h-1;--c[a],c[i]+=h}c[i]-=d[i]}for(;0===c[--u];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(t.d=c,t.e=n,l?k(t,v):t):new p(0)}function M(e,t,r){var n,i=E(e),a=x(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+P(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+P(-i-1)+a,r&&(n=r-o)>0&&(a+=P(n))):i>=o?(a+=P(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+P(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=P(n))),e.s<0?"-"+a:a}function D(e,t){if(e.length>t)return e.length=t,!0}function T(e){if(!e||"object"!=typeof e)throw Error(u+"Object expected");var t,r,n,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(n=e[r=i[t]])){if(!(f(n)===n&&n>=i[t+1]&&n<=i[t+2]))throw Error(c+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(c+r+": "+n);this[r]=new this(n)}return this}o=function e(t){var r,n,i;function a(e){var t=this;if(!(t instanceof a))return new a(e);if(t.constructor=a,e instanceof a)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):S(t,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(c+e);S(t,e)}if(a.prototype=m,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=T,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return a.config(t),a}(o),o.default=o.Decimal=o,i=new o(1),void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},228(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new i(n,a||e,o),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],l]:e._events[u].push(l):(e._events[u]=l,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=new Array(a);i<a;i++)o[i]=n[i].fn;return o},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,i,a,o){var l=r?r+e:e;if(!this._events[l])return!1;var u,c,s=this._events[l],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(e,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,n),!0;case 4:return s.fn.call(s.context,t,n,i),!0;case 5:return s.fn.call(s.context,t,n,i,a),!0;case 6:return s.fn.call(s.context,t,n,i,a,o),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];s.fn.apply(s.context,u)}else{var d,p=s.length;for(c=0;c<p;c++)switch(s[c].once&&this.removeListener(e,s[c].fn,void 0,!0),f){case 1:s[c].fn.call(s[c].context);break;case 2:s[c].fn.call(s[c].context,t);break;case 3:s[c].fn.call(s[c].context,t,n);break;case 4:s[c].fn.call(s[c].context,t,n,i);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];s[c].fn.apply(s[c].context,u)}}return!0},l.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||o(this,a);else{for(var u=0,c=[],s=l.length;u<s;u++)(l[u].fn!==t||i&&!l[u].once||n&&l[u].context!==n)&&c.push(l[u]);c.length?this._events[a]=1===c.length?c[0]:c:o(this,a)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l},146(e,t,r){"use strict";var n=r(751),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return n.isMemo(e)?o:l[e.$$typeof]||i}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=o;var c=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var o=s(r);f&&(o=o.concat(f(r)));for(var l=u(t),v=u(r),y=0;y<o.length;++y){var m=o[y];if(!(a[m]||n&&n[m]||v&&v[m]||l&&l[m])){var g=d(r,m);try{c(t,m,g)}catch(e){}}}}return t}},493(e,t,r){"use strict";var n=r(442);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,l=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return l(function(){i.value=r,i.getSnapshot=t,c(i)&&s({inst:i})},[e,r,t]),o(function(){return c(i)&&s({inst:i}),e(function(){c(i)&&s({inst:i})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:s},162(e,t,r){"use strict";var n=r(442),i=r(888);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,l=n.useRef,u=n.useEffect,c=n.useMemo,s=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=c(function(){function e(e){if(!u){if(u=!0,o=e,e=n(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return l=t}return l=e}if(t=l,a(o,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(o=e,t):(o=e,l=r)}var o,l,u=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]);var p=o(e,f[0],f[1]);return u(function(){d.hasValue=!0,d.value=p},[p]),s(p),p}},888(e,t,r){"use strict";e.exports=r(493)},242(e,t,r){"use strict";e.exports=r(162)},442(t){"use strict";t.exports=e},3(e){"use strict";e.exports=t},751(e){"use strict";e.exports=r}};const i={};function a(e){const t=i[e];if(void 0!==t)return t.exports;const r=i[e]={exports:{}};return n[e].call(r.exports,r,r.exports,a),r.exports}a.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var n=t[r++],i=t[r++];a.o(e,n)?0===i&&r++:0===i?Object.defineProperty(e,n,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,n,{enumerable:!0,get:i})}else for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};let o={};return(()=>{"use strict";a.r(o),a.d(o,{AnimationControllerProvider:()=>ds,Area:()=>SN,AreaChart:()=>cB,AreaRevealShape:()=>oN,Bar:()=>k_,BarChart:()=>PL,BarStack:()=>t_,Brush:()=>GM,CSSTransitionAnimation:()=>ws,CartesianAxis:()=>xT,CartesianGrid:()=>UT,Cell:()=>dE,ComposedChart:()=>mB,Cross:()=>ts,Curve:()=>Yc,Customized:()=>_A,DefaultLegendContent:()=>Je,DefaultTooltipContent:()=>Gu,DefaultZIndexes:()=>cd,Dot:()=>UA,ErrorBar:()=>GR,Funnel:()=>gF,FunnelChart:()=>xF,Global:()=>tc,JavascriptAnimation:()=>xs,Label:()=>bA,LabelList:()=>TA,Layer:()=>b,Legend:()=>Fu,Line:()=>KC,LineChart:()=>EL,LineDrawShape:()=>YT,Pie:()=>RS,PieChart:()=>LL,PolarAngleAxis:()=>lj,PolarGrid:()=>AP,PolarRadiusAxis:()=>XP,Polygon:()=>FA,Radar:()=>fI,RadarChart:()=>aB,RadialBar:()=>hM,RadialBarChart:()=>vB,RechartsThemeProvider:()=>ET,Rectangle:()=>Qs,ReferenceArea:()=>UD,ReferenceDot:()=>CD,ReferenceLine:()=>ED,ResponsiveContainer:()=>jo,Sankey:()=>QK,Scatter:()=>tR,ScatterChart:()=>lB,Sector:()=>Pf,SunburstChart:()=>_B,Surface:()=>y,Symbols:()=>Re,Text:()=>QE,Tooltip:()=>fE,Trapezoid:()=>$B,Treemap:()=>mK,XAxis:()=>bR,YAxis:()=>TR,ZAxis:()=>_R,ZIndexLayer:()=>SO,createCentricChart:()=>TF,createHorizontalChart:()=>jF,createRadialChart:()=>CF,createVerticalChart:()=>SF,darkTheme:()=>NF,getNiceTickValues:()=>Zf,getRelativeCoordinate:()=>JR,interpolate:()=>K,legacyTheme:()=>wT,lightTheme:()=>_F,matchAppend:()=>Kj,matchByDataKey:()=>Bj,matchByIndex:()=>Lj,useActiveTooltipCoordinate:()=>Mk,useActiveTooltipDataPoints:()=>jk,useActiveTooltipLabel:()=>Ek,useCartesianChartLayout:()=>_o,useCartesianScale:()=>Ok,useChartHeight:()=>Do,useChartLayout:()=>No,useChartWidth:()=>Mo,useIsTooltipActive:()=>Ik,useMargin:()=>To,useOffset:()=>Ak,usePlotArea:()=>Pk,usePolarChartLayout:()=>zo,useXAxisDomain:()=>Sk,useXAxisInverseDataSnapScale:()=>vk,useXAxisInverseScale:()=>hk,useXAxisInverseTickSnapScale:()=>yk,useXAxisScale:()=>dk,useXAxisTicks:()=>xk,useYAxisDomain:()=>kk,useYAxisInverseDataSnapScale:()=>gk,useYAxisInverseScale:()=>mk,useYAxisInverseTickSnapScale:()=>bk,useYAxisScale:()=>pk,useYAxisTicks:()=>wk});var e={};a.r(e),a.d(e,{scaleBand:()=>Gd,scaleDiverging:()=>Wm,scaleDivergingLog:()=>Um,scaleDivergingPow:()=>$m,scaleDivergingSqrt:()=>Xm,scaleDivergingSymlog:()=>Vm,scaleIdentity:()=>Lh,scaleImplicit:()=>qd,scaleLinear:()=>zh,scaleLog:()=>Hh,scaleOrdinal:()=>Yd,scalePoint:()=>Jd,scalePow:()=>rv,scaleQuantile:()=>hv,scaleQuantize:()=>vv,scaleRadial:()=>av,scaleSequential:()=>_m,scaleSequentialLog:()=>Rm,scaleSequentialPow:()=>Lm,scaleSequentialQuantile:()=>Bm,scaleSequentialSqrt:()=>Km,scaleSequentialSymlog:()=>zm,scaleSqrt:()=>nv,scaleSymlog:()=>Zh,scaleThreshold:()=>yv,scaleTime:()=>Dm,scaleUtc:()=>Tm,tickFormat:()=>_h});var t=a(442);function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function n(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}var i=["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"];function l(e){return"string"==typeof e&&i.includes(e)}var u=new Set(["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"]);function c(e){return"string"==typeof e&&u.has(e)}function s(e){return"string"==typeof e&&e.startsWith("data-")}function f(e){if("object"!=typeof e||null===e)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(c(r)||s(r))&&(t[r]=e[r]);return t}function d(e){return null==e?null:(0,t.isValidElement)(e)&&"object"==typeof e.props&&null!==e.props?f(e.props):"object"!=typeof e||Array.isArray(e)?null:f(e)}function p(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(c(r)||s(r)||l(r))&&(t[r]=e[r]);return t}var h=["children","width","height","viewBox","className","style","title","desc"];function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(null,arguments)}var y=(0,t.forwardRef)((e,r)=>{var i=e.children,a=e.width,o=e.height,l=e.viewBox,u=e.className,c=e.style,s=e.title,f=e.desc,d=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,h),y=l||{width:a,height:o,x:0,y:0},m=n("recharts-surface",u);return t.createElement("svg",v({},p(d),{className:m,width:a,height:o,style:c,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height),ref:r}),t.createElement("title",null,s),t.createElement("desc",null,f),i)}),m=["children","className"];function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(null,arguments)}var b=t.forwardRef((e,r)=>{var i=e.children,a=e.className,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,m),l=n("recharts-layer",a);return t.createElement("g",g({className:l},p(o),{ref:r}),i)}),x=a(3);function w(e){return"__proto__"===e}function O(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function E(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function A(e){if(null==e)return"";if("string"==typeof e)return e;if(Array.isArray(e))return e.map(A).join(",");const t=String(e);return"0"===t&&Object.is(Number(e),-0)?"-0":t}function P(e){if(Array.isArray(e))return e.map(E);if("symbol"==typeof e)return[e];const t=[],r=(e=A(e)).length;if(0===r)return t;let n=0,i="",a="",o=!1;for(46===e.charCodeAt(0)&&t.push("");n<r;){const l=e[n];if(a)"\\"===l&&n+1<r?(n++,i+=e[n]):l===a?a="":i+=l;else if(o)'"'===l||"'"===l?a=l:"]"===l?(o=!1,t.push(i),i=""):i+=l;else if("["===l)o=!0,i&&(t.push(i),i="");else if("."===l){i&&(t.push(i),i="");const r=e[n+1];void 0!==r&&"."!==r||t.push("")}else i+=l;n++}return i&&t.push(i),t}function j(e,t,r){if(null==e)return r;switch(typeof t){case"string":{if(w(t))return r;const n=e[t];return void 0===n?O(t)&&!Object.hasOwn(e,t)?j(e,P(t),r):r:n}case"number":case"symbol":{"number"==typeof t&&(t=E(t));const n=e[t];return void 0===n?r:n}default:{if(Array.isArray(t))return function(e,t,r){if(0===t.length)return r;let n=e;for(let e=0;e<t.length;e++){if(null==n)return r;if(w(t[e]))return r;n=n[t[e]]}return void 0===n?r:n}(e,t,r);if(w(t=Object.is(t?.valueOf(),-0)?"-0":String(t)))return r;const n=e[t];return void 0===n?r:n}}}var S=4;function k(e){var t=10**(arguments.length>1&&void 0!==arguments[1]?arguments[1]:S),r=Math.round(e*t)/t;return Object.is(r,-0)?0:r}function I(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((e,t,n)=>{var i=r[n-1];return"string"==typeof i?e+i+t:void 0!==i?e+k(i)+t:e+t},"")}var M=e=>0===e?0:e>0?1:-1,D=e=>"number"==typeof e&&e!=+e,T=e=>"string"==typeof e&&e.length>1&&e.indexOf("%")===e.length-1,C=e=>("number"==typeof e||e instanceof Number)&&!D(e),N=e=>C(e)||"string"==typeof e,_=0,R=e=>{var t=++_;return"".concat(e||"").concat(t)},z=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!C(e)&&"string"!=typeof e)return n;if(T(e)){if(null==t)return n;var a=e.indexOf("%");r=t*parseFloat(e.slice(0,a))/100}else r=+e;return D(r)&&(r=n),i&&null!=t&&r>t&&(r=t),r},L=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[String(e[n])])return!0;r[String(e[n])]=!0}return!1};function K(e,t,r){return C(e)&&C(t)?k(e+r*(t-e)):t}function B(e,t,r){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):j(e,t))===r)}var F=e=>null==e,W=e=>F(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function U(e){return null!=e}function V(){}function $(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach(function(t){q(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function q(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Y=e=>{var t=e.viewBox,r=e.position,n=e.offset,i=void 0===n?0:n,a=e.parentViewBox,o=e.clamp,l=$(t),u=l.x,c=l.y,s=l.height,f=l.upperWidth,d=l.lowerWidth,p=u,h=u+(f-d)/2,v=(p+h)/2,y=(f+d)/2,m=p+f/2,g=s>=0?1:-1,b=g*i,x=g>0?"end":"start",w=g>0?"start":"end",O=f>=0?1:-1,E=O*i,A=O>0?"end":"start",P=O>0?"start":"end",j=a;if("top"===r){var S={x:p+f/2,y:c-b,horizontalAnchor:"middle",verticalAnchor:x};return o&&j&&(S.height=Math.max(c-j.y,0),S.width=f),S}if("bottom"===r){var k={x:h+d/2,y:c+s+b,horizontalAnchor:"middle",verticalAnchor:w};return o&&j&&(k.height=Math.max(j.y+j.height-(c+s),0),k.width=d),k}if("left"===r){var I={x:v-E,y:c+s/2,horizontalAnchor:A,verticalAnchor:"middle"};return o&&j&&(I.width=Math.max(I.x-j.x,0),I.height=s),I}if("right"===r){var M={x:v+y+E,y:c+s/2,horizontalAnchor:P,verticalAnchor:"middle"};return o&&j&&(M.width=Math.max(j.x+j.width-M.x,0),M.height=s),M}var D=o&&j?{width:y,height:s}:{};return"insideLeft"===r?H({x:v+E,y:c+s/2,horizontalAnchor:P,verticalAnchor:"middle"},D):"insideRight"===r?H({x:v+y-E,y:c+s/2,horizontalAnchor:A,verticalAnchor:"middle"},D):"insideTop"===r?H({x:p+f/2,y:c+b,horizontalAnchor:"middle",verticalAnchor:w},D):"insideBottom"===r?H({x:h+d/2,y:c+s-b,horizontalAnchor:"middle",verticalAnchor:x},D):"insideTopLeft"===r?H({x:p+E,y:c+b,horizontalAnchor:P,verticalAnchor:w},D):"insideTopRight"===r?H({x:p+f-E,y:c+b,horizontalAnchor:A,verticalAnchor:w},D):"insideBottomLeft"===r?H({x:h+E,y:c+s-b,horizontalAnchor:P,verticalAnchor:x},D):"insideBottomRight"===r?H({x:h+d-E,y:c+s-b,horizontalAnchor:A,verticalAnchor:x},D):r&&"object"==typeof r&&(C(r.x)||T(r.x))&&(C(r.y)||T(r.y))?H({x:u+z(r.x,y),y:c+z(r.y,s),horizontalAnchor:"end",verticalAnchor:"end"},D):H({x:m,y:c+s/2,horizontalAnchor:"middle",verticalAnchor:"middle"},D)},G=["top","left","right","bottom"];function Z(e){return null!=e&&("object"==typeof e||G.includes(e))}var J=(0,t.createContext)(null);Math.abs,Math.atan2;const Q=Math.cos,ee=(Math.max,Math.min,Math.sin),te=Math.sqrt,re=Math.PI,ne=2*re;const ie={draw(e,t){const r=te(t/re);e.moveTo(r,0),e.arc(0,0,r,0,ne)}},ae={draw(e,t){const r=te(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},oe=te(1/3),le=2*oe,ue={draw(e,t){const r=te(t/le),n=r*oe;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},ce={draw(e,t){const r=te(t),n=-r/2;e.rect(n,n,r,r)}},se=ee(re/10)/ee(7*re/10),fe=ee(ne/10)*se,de=-Q(ne/10)*se,pe={draw(e,t){const r=te(.8908130915292852*t),n=fe*r,i=de*r;e.moveTo(0,-r),e.lineTo(n,i);for(let t=1;t<5;++t){const a=ne*t/5,o=Q(a),l=ee(a);e.lineTo(l*r,-o*r),e.lineTo(o*n-l*i,l*n+o*i)}e.closePath()}},he=te(3),ve={draw(e,t){const r=-te(t/(3*he));e.moveTo(0,2*r),e.lineTo(-he*r,-r),e.lineTo(he*r,-r),e.closePath()}},ye=-.5,me=te(3)/2,ge=1/te(12),be=3*(ge/2+1),xe={draw(e,t){const r=te(t/be),n=r/2,i=r*ge,a=n,o=r*ge+r,l=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(ye*n-me*i,me*n+ye*i),e.lineTo(ye*a-me*o,me*a+ye*o),e.lineTo(ye*l-me*u,me*l+ye*u),e.lineTo(ye*n+me*i,ye*i-me*n),e.lineTo(ye*a+me*o,ye*o-me*a),e.lineTo(ye*l+me*u,ye*u-me*l),e.closePath()}};function we(e){return function(){return e}}const Oe=Math.PI,Ee=2*Oe,Ae=1e-6,Pe=Ee-Ae;function je(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class Se{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?je:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return je;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,i,a){this._append`C${+e},${+t},${+r},${+n},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,r,n,i){if(e=+e,t=+t,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,l=r-e,u=n-t,c=a-e,s=o-t,f=c*c+s*s;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>Ae)if(Math.abs(s*l-u*c)>Ae&&i){let d=r-a,p=n-o,h=l*l+u*u,v=d*d+p*p,y=Math.sqrt(h),m=Math.sqrt(f),g=i*Math.tan((Oe-Math.acos((h+f-v)/(2*y*m)))/2),b=g/m,x=g/y;Math.abs(b-1)>Ae&&this._append`L${e+b*c},${t+b*s}`,this._append`A${i},${i},0,0,${+(s*d>c*p)},${this._x1=e+x*l},${this._y1=t+x*u}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,n,i,a){if(e=+e,t=+t,a=!!a,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(n),l=r*Math.sin(n),u=e+o,c=t+l,s=1^a,f=a?n-i:i-n;null===this._x1?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Ae||Math.abs(this._y1-c)>Ae)&&this._append`L${u},${c}`,r&&(f<0&&(f=f%Ee+Ee),f>Pe?this._append`A${r},${r},0,1,${s},${e-o},${t-l}A${r},${r},0,1,${s},${this._x1=u},${this._y1=c}`:f>Ae&&this._append`A${r},${r},0,${+(f>=Oe)},${s},${this._x1=e+r*Math.cos(i)},${this._y1=t+r*Math.sin(i)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function ke(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new Se(t)}var Ie=["type","size","sizeType"];function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Me.apply(null,arguments)}function De(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?De(Object(r),!0).forEach(function(t){Ce(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):De(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ce(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ne={symbolCircle:ie,symbolCross:ae,symbolDiamond:ue,symbolSquare:ce,symbolStar:pe,symbolTriangle:ve,symbolWye:xe},_e=Math.PI/180,Re=e=>{var r=e.type,i=void 0===r?"circle":r,a=e.size,o=void 0===a?64:a,l=e.sizeType,u=void 0===l?"area":l,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Ie),s=Te(Te({},c),{},{type:i,size:o,sizeType:u}),f="circle";"string"==typeof i&&(f=i);var d=s.className,h=s.cx,v=s.cy,y=p(s);return C(h)&&C(v)&&C(o)?t.createElement("path",Me({},y,{className:n("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(v,")"),d:(()=>{var e=(e=>{var t="symbol".concat(W(e));return Ne[t]||ie})(f),t=function(e,t){let r=null,n=ke(i);function i(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return e="function"==typeof e?e:we(e||ie),t="function"==typeof t?t:we(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:we(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:we(+e),i):t},i.context=function(e){return arguments.length?(r=e??null,i):r},i}().type(e).size(((e,t,r)=>{if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*_e;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.tan(n)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(o,u,f)),r=t();if(null!==r)return r})()})):null};Re.registerSymbol=(e,t)=>{Ne["symbol".concat(W(e))]=t};var ze=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Le=(e,r)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,t.isValidElement)(e)&&(n=e.props),"object"!=typeof n&&"function"!=typeof n)return null;var i={};return Object.keys(n).forEach(e=>{l(e)&&"function"==typeof n[e]&&(i[e]=r||(t=>n[e](n,t)))}),i},Ke=(e,t,r)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];l(i)&&"function"==typeof a&&(n||(n={}),n[i]=((e,t,r)=>n=>(e(t,r,n),null))(a,t,r))}),n};function Be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Fe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function We(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(r),!0).forEach(function(t){Fe(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e),n=t;return Object.keys(t).reduce((e,t)=>(void 0===e[t]&&void 0!==n[t]&&(e[t]=n[t]),e),r)}function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ue.apply(null,arguments)}function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(r),!0).forEach(function(t){Xe(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Xe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var He=32,qe={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function Ye(e){if("object"==typeof e&&null!==e&&"strokeDasharray"in e)return String(e.strokeDasharray)}function Ge(e){var r=e.data,n=e.iconType,i=e.inactiveColor,a=16,o=He/6,l=He/3,u=r.inactive?i:r.color,c=null!=n?n:r.type;if("none"===c)return null;if("plainline"===c)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:Ye(r.payload),x1:0,y1:a,x2:He,y2:a,className:"recharts-legend-icon"});if("line"===c)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(a,"h").concat(l,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,"\n H").concat(He,"M").concat(2*l,",").concat(a,"\n A").concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if("rect"===c)return t.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(4,"h").concat(He,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(r.legendIcon)){var s=$e({},r);return delete s.legendIcon,t.cloneElement(r.legendIcon,s)}return t.createElement(Re,{fill:u,cx:a,cy:a,size:He,sizeType:"diameter",type:c})}function Ze(e){var r=e.payload,i=e.iconSize,a=e.layout,o=e.formatter,l=e.inactiveColor,u=e.iconType,c=e.labelStyle,s={x:0,y:0,width:He,height:He},f={display:"horizontal"===a?"inline-block":"block",marginRight:10,whiteSpace:"nowrap"},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((r,a)=>{var p,h,v=r.formatter||o,m=n({"recharts-legend-item":!0,["legend-item-".concat(a)]:!0,inactive:r.inactive});if("none"===r.type)return null;var g="object"==typeof c?$e({},c):{};g.color=r.inactive?l:g.color||r.color,null!==(p=g.whiteSpace)&&void 0!==p||(g.whiteSpace="normal"),null!==(h=g.overflowWrap)&&void 0!==h||(g.overflowWrap="break-word");var b=v?v(r.value,r,a):r.value;return t.createElement("li",Ue({className:m,style:f,key:"legend-item-".concat(a)},Ke(e,r,a)),t.createElement(y,{width:i,height:i,viewBox:s,style:d,"aria-label":null==r.value?"legend icon":"".concat(r.value," legend icon")},t.createElement(Ge,{data:r,iconType:u,inactiveColor:l})),t.createElement("span",{className:"recharts-legend-item-text",style:g},b))})}var Je=e=>{var r=We(e,qe),n=r.payload,i=r.layout,a=r.align;if(!n||!n.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===i?a:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:o},t.createElement(Ze,Ue({},r,{payload:n})))};function Qe(e){return e}function et(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function tt(e){return ArrayBuf