nN||Math.abs(l.height-this.lastBoundingBox.height)>nN)&&(this.lastBoundingBox.width=l.width,this.lastBoundingBox.height=l.height,r&&r(l)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Kr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var l=this.props,o=l.layout,c=l.align,d=l.verticalAlign,h=l.margin,p=l.chartWidth,v=l.chartHeight,m,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(c==="center"&&o==="vertical"){var j=this.getBBoxSnapshot();m={left:((p||0)-j.width)/2}}else m=c==="right"?{right:h&&h.right||0}:{left:h&&h.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(d==="middle"){var S=this.getBBoxSnapshot();g={top:((v||0)-S.height)/2}}else g=d==="bottom"?{bottom:h&&h.bottom||0}:{top:h&&h.top||0};return Kr(Kr({},m),g)}},{key:"render",value:function(){var r=this,l=this.props,o=l.content,c=l.width,d=l.height,h=l.wrapperStyle,p=l.payloadUniqBy,v=l.payload,m=Kr(Kr({position:"absolute",width:c||"auto",height:d||"auto"},this.getDefaultPosition(h)),h);return Y.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(j){r.wrapperNode=j}},sB(o,Kr(Kr({},this.props),{},{payload:Q3(v,p,oB)})))}}],[{key:"getWithHeight",value:function(r,l){var o=Kr(Kr({},this.defaultProps),r.props),c=o.layout;return c==="vertical"&&ve(r.props.height)?{height:r.props.height}:c==="horizontal"?{width:r.props.width||l}:null}}])})(T.PureComponent);Id(Oi,"displayName","Legend");Id(Oi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var mg,rN;function uB(){if(rN)return mg;rN=1;var e=Nu(),t=W0(),n=wn(),r=e?e.isConcatSpreadable:void 0;function l(o){return n(o)||t(o)||!!(r&&o&&o[r])}return mg=l,mg}var vg,aN;function tk(){if(aN)return vg;aN=1;var e=H3(),t=uB();function n(r,l,o,c,d){var h=-1,p=r.length;for(o||(o=t),d||(d=[]);++h0&&o(v)?l>1?n(v,l-1,o,c,d):e(d,v):c||(d[d.length]=v)}return d}return vg=n,vg}var yg,iN;function cB(){if(iN)return yg;iN=1;function e(t){return function(n,r,l){for(var o=-1,c=Object(n),d=l(n),h=d.length;h--;){var p=d[t?h:++o];if(r(c[p],p,c)===!1)break}return n}}return yg=e,yg}var gg,lN;function fB(){if(lN)return gg;lN=1;var e=cB(),t=e();return gg=t,gg}var bg,oN;function nk(){if(oN)return bg;oN=1;var e=fB(),t=Ud();function n(r,l){return r&&e(r,l,t)}return bg=n,bg}var xg,sN;function dB(){if(sN)return xg;sN=1;var e=Cu();function t(n,r){return function(l,o){if(l==null)return l;if(!e(l))return n(l,o);for(var c=l.length,d=r?c:-1,h=Object(l);(r?d--:++dr||d&&h&&v&&!p&&!m||o&&h&&v||!l&&v||!c)return 1;if(!o&&!d&&!m&&n=p)return v;var m=l[o];return v*(m=="desc"?-1:1)}}return n.index-r.index}return Og=t,Og}var Ag,pN;function vB(){if(pN)return Ag;pN=1;var e=U0(),t=I0(),n=Er(),r=rk(),l=hB(),o=Y3(),c=mB(),d=yo(),h=wn();function p(v,m,g){m.length?m=e(m,function(_){return h(_)?function(x){return t(x,_.length===1?_[0]:_)}:_}):m=[d];var j=-1;m=e(m,o(n));var S=r(v,function(_,x,O){var w=e(m,function(E){return E(_)});return{criteria:w,index:++j,value:_}});return l(S,function(_,x){return c(_,x,g)})}return Ag=p,Ag}var Ng,mN;function yB(){if(mN)return Ng;mN=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Ng=e,Ng}var Eg,vN;function gB(){if(vN)return Eg;vN=1;var e=yB(),t=Math.max;function n(r,l,o){return l=t(l===void 0?r.length-1:l,0),function(){for(var c=arguments,d=-1,h=t(c.length-l,0),p=Array(h);++d0){if(++o>=e)return arguments[0]}else o=0;return l.apply(void 0,arguments)}}return kg=r,kg}var Rg,jN;function _B(){if(jN)return Rg;jN=1;var e=xB(),t=jB(),n=t(e);return Rg=n,Rg}var Pg,_N;function SB(){if(_N)return Pg;_N=1;var e=yo(),t=gB(),n=_B();function r(l,o){return n(t(l,o,e),l+"")}return Pg=r,Pg}var Dg,SN;function Hd(){if(SN)return Dg;SN=1;var e=L0(),t=Cu(),n=Q0(),r=Va();function l(o,c,d){if(!r(d))return!1;var h=typeof c;return(h=="number"?t(d)&&n(c,d.length):h=="string"&&c in d)?e(d[c],o):!1}return Dg=l,Dg}var $g,wN;function wB(){if(wN)return $g;wN=1;var e=tk(),t=vB(),n=SB(),r=Hd(),l=n(function(o,c){if(o==null)return[];var d=c.length;return d>1&&r(o,c[0],c[1])?c=[]:d>2&&r(c[0],c[1],c[2])&&(c=[c[0]]),t(o,e(c,1),[])});return $g=l,$g}var OB=wB();const n1=rt(OB);function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(bs,"-left"),ve(n)&&t&&ve(t.x)&&n=t.y),"".concat(bs,"-top"),ve(r)&&t&&ve(t.y)&&r_?Math.max(v,h[r]):Math.max(m,h[r])}function BB(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function UB(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,l=e.position,o=e.reverseDirection,c=e.tooltipBox,d=e.useTranslate3d,h=e.viewBox,p,v,m;return c.height>0&&c.width>0&&n?(v=NN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:l,reverseDirection:o,tooltipDimension:c.width,viewBox:h,viewBoxDimension:h.width}),m=NN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:l,reverseDirection:o,tooltipDimension:c.height,viewBox:h,viewBoxDimension:h.height}),p=BB({translateX:v,translateY:m,useTranslate3d:d})):p=LB,{cssProperties:p,cssClasses:zB({translateX:v,translateY:m,coordinate:n})}}function Il(e){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function EN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function TN(e){for(var t=1;tCN||Math.abs(r.height-this.state.lastBoundingBox.height)>CN)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&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 r,l;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((l=this.props.coordinate)===null||l===void 0?void 0:l.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,l=this.props,o=l.active,c=l.allowEscapeViewBox,d=l.animationDuration,h=l.animationEasing,p=l.children,v=l.coordinate,m=l.hasPayload,g=l.isAnimationActive,j=l.offset,S=l.position,_=l.reverseDirection,x=l.useTranslate3d,O=l.viewBox,w=l.wrapperStyle,E=UB({allowEscapeViewBox:c,coordinate:v,offsetTopLeft:j,position:S,reverseDirection:_,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:O}),M=E.cssClasses,A=E.cssProperties,C=TN(TN({transition:g&&o?"transform ".concat(d,"ms ").concat(h):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&m?"visible":"hidden",position:"absolute",top:0,left:0},w);return Y.createElement("div",{tabIndex:-1,className:M,style:C,ref:function(L){r.wrapperNode=L}},p)}}])})(T.PureComponent),WB=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},go={isSsr:WB()};function Hl(e){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hl(e)}function MN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function kN(e){for(var t=1;t0;return Y.createElement(ZB,{allowEscapeViewBox:c,animationDuration:d,animationEasing:h,isAnimationActive:g,active:o,coordinate:v,hasPayload:C,offset:j,position:x,reverseDirection:O,useTranslate3d:w,viewBox:E,wrapperStyle:M},o9(p,kN(kN({},this.props),{},{payload:A})))}}])})(T.PureComponent);r1(xn,"displayName","Tooltip");r1(xn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!go.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 Lg,RN;function s9(){if(RN)return Lg;RN=1;var e=Nr(),t=function(){return e.Date.now()};return Lg=t,Lg}var zg,PN;function u9(){if(PN)return zg;PN=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return zg=t,zg}var Bg,DN;function c9(){if(DN)return Bg;DN=1;var e=u9(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Bg=n,Bg}var Ug,$N;function uk(){if($N)return Ug;$N=1;var e=c9(),t=Va(),n=mo(),r=NaN,l=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;function h(p){if(typeof p=="number")return p;if(n(p))return r;if(t(p)){var v=typeof p.valueOf=="function"?p.valueOf():p;p=t(v)?v+"":v}if(typeof p!="string")return p===0?p:+p;p=e(p);var m=o.test(p);return m||c.test(p)?d(p.slice(2),m?2:8):l.test(p)?r:+p}return Ug=h,Ug}var Ig,qN;function f9(){if(qN)return Ig;qN=1;var e=Va(),t=s9(),n=uk(),r="Expected a function",l=Math.max,o=Math.min;function c(d,h,p){var v,m,g,j,S,_,x=0,O=!1,w=!1,E=!0;if(typeof d!="function")throw new TypeError(r);h=n(h)||0,e(p)&&(O=!!p.leading,w="maxWait"in p,g=w?l(n(p.maxWait)||0,h):g,E="trailing"in p?!!p.trailing:E);function M(W){var Q=v,D=m;return v=m=void 0,x=W,j=d.apply(D,Q),j}function A(W){return x=W,S=setTimeout(L,h),O?M(W):j}function C(W){var Q=W-_,D=W-x,P=h-Q;return w?o(P,g-D):P}function k(W){var Q=W-_,D=W-x;return _===void 0||Q>=h||Q<0||w&&D>=g}function L(){var W=t();if(k(W))return B(W);S=setTimeout(L,C(W))}function B(W){return S=void 0,E&&v?M(W):(v=m=void 0,j)}function Z(){S!==void 0&&clearTimeout(S),x=0,v=_=m=S=void 0}function G(){return S===void 0?j:B(t())}function H(){var W=t(),Q=k(W);if(v=arguments,m=this,_=W,Q){if(S===void 0)return A(_);if(w)return clearTimeout(S),S=setTimeout(L,h),M(_)}return S===void 0&&(S=setTimeout(L,h)),j}return H.cancel=Z,H.flush=G,H}return Ig=c,Ig}var Hg,LN;function d9(){if(LN)return Hg;LN=1;var e=f9(),t=Va(),n="Expected a function";function r(l,o,c){var d=!0,h=!0;if(typeof l!="function")throw new TypeError(n);return t(c)&&(d="leading"in c?!!c.leading:d,h="trailing"in c?!!c.trailing:h),e(l,o,{leading:d,maxWait:o,trailing:h})}return Hg=r,Hg}var h9=d9();const ck=rt(h9);function Ys(e){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(e)}function zN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function af(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(W=ck(W,_,{trailing:!0,leading:!1}));var Q=new ResizeObserver(W),D=A.current.getBoundingClientRect(),P=D.width,$=D.height;return G(P,$),Q.observe(A.current),function(){Q.disconnect()}},[G,_]);var H=T.useMemo(function(){var W=B.containerWidth,Q=B.containerHeight;if(W<0||Q<0)return null;hr(ji(c)||ji(h),`The width(%s) and height(%s) are both fixed numbers,
- maybe you don't need to use a ResponsiveContainer.`,c,h),hr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var D=ji(c)?W:c,P=ji(h)?Q:h;n&&n>0&&(D?P=D/n:P&&(D=P*n),g&&P>g&&(P=g)),hr(D>0||P>0,`The width(%s) and height(%s) of chart should be greater than 0,
+ A`).concat(c,",").concat(c,",0,1,1,").concat(d,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return Y.createElement("path",{stroke:"none",fill:h,d:"M0,".concat(Wn/8,"h").concat(Wn,"v").concat(Wn*3/4,"h").concat(-Wn,"z"),className:"recharts-legend-icon"});if(Y.isValidElement(r.legendIcon)){var p=VL({},r);return delete p.legendIcon,Y.cloneElement(r.legendIcon,p)}return Y.createElement(K0,{fill:h,cx:o,cy:o,size:Wn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,l=this.props,o=l.payload,c=l.iconSize,d=l.layout,h=l.formatter,p=l.inactiveColor,v={x:0,y:0,width:Wn,height:Wn},m={display:d==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(j,S){var _=j.formatter||h,x=qe(Is(Is({"recharts-legend-item":!0},"legend-item-".concat(S),!0),"inactive",j.inactive));if(j.type==="none")return null;var O=ke(j.value)?null:j.value;hr(!ke(j.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var w=j.inactive?p:j.color;return Y.createElement("li",ux({className:x,style:m,key:"legend-item-".concat(S)},Ei(r.props,j,S)),Y.createElement(nx,{width:c,height:c,viewBox:v,style:g},r.renderIcon(j)),Y.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},_?_(O,j,S):O))})}},{key:"render",value:function(){var r=this.props,l=r.payload,o=r.layout,c=r.align;if(!l||!l.length)return null;var d={padding:0,margin:0,textAlign:o==="horizontal"?c:"left"};return Y.createElement("ul",{className:"recharts-default-legend",style:d},this.renderItems())}}])})(T.PureComponent);Is(X0,"displayName","Legend");Is(X0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Jv,DO;function tz(){if(DO)return Jv;DO=1;var e=Pd();function t(){this.__data__=new e,this.size=0}return Jv=t,Jv}var ey,$O;function nz(){if($O)return ey;$O=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ey=e,ey}var ty,qO;function rz(){if(qO)return ty;qO=1;function e(t){return this.__data__.get(t)}return ty=e,ty}var ny,LO;function az(){if(LO)return ny;LO=1;function e(t){return this.__data__.has(t)}return ny=e,ny}var ry,zO;function iz(){if(zO)return ry;zO=1;var e=Pd(),t=z0(),n=B0(),r=200;function l(o,c){var d=this.__data__;if(d instanceof e){var h=d.__data__;if(!t||h.lengthj))return!1;var _=m.get(c),x=m.get(d);if(_&&x)return _==d&&x==c;var O=-1,w=!0,E=h&l?new e:void 0;for(m.set(c,d),m.set(d,c);++O-1&&r%1==0&&r-1&&n%1==0&&n<=e}return Oy=t,Oy}var Ay,uA;function gz(){if(uA)return Ay;uA=1;var e=la(),t=J0(),n=oa(),r="[object Arguments]",l="[object Array]",o="[object Boolean]",c="[object Date]",d="[object Error]",h="[object Function]",p="[object Map]",v="[object Number]",m="[object Object]",g="[object RegExp]",j="[object Set]",S="[object String]",_="[object WeakMap]",x="[object ArrayBuffer]",O="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",M="[object Int8Array]",A="[object Int16Array]",C="[object Int32Array]",k="[object Uint8Array]",L="[object Uint8ClampedArray]",B="[object Uint16Array]",Z="[object Uint32Array]",G={};G[w]=G[E]=G[M]=G[A]=G[C]=G[k]=G[L]=G[B]=G[Z]=!0,G[r]=G[l]=G[x]=G[o]=G[O]=G[c]=G[d]=G[h]=G[p]=G[v]=G[m]=G[g]=G[j]=G[S]=G[_]=!1;function H(W){return n(W)&&t(W.length)&&!!G[e(W)]}return Ay=H,Ay}var Ny,cA;function Y3(){if(cA)return Ny;cA=1;function e(t){return function(n){return t(n)}}return Ny=e,Ny}var Cs={exports:{}};Cs.exports;var fA;function bz(){return fA||(fA=1,(function(e,t){var n=f3(),r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,o=l&&l.exports===r,c=o&&n.process,d=(function(){try{var h=l&&l.require&&l.require("util").types;return h||c&&c.binding&&c.binding("util")}catch{}})();e.exports=d})(Cs,Cs.exports)),Cs.exports}var Ey,dA;function V3(){if(dA)return Ey;dA=1;var e=gz(),t=Y3(),n=bz(),r=n&&n.isTypedArray,l=r?t(r):e;return Ey=l,Ey}var Ty,hA;function xz(){if(hA)return Ty;hA=1;var e=mz(),t=W0(),n=wn(),r=G3(),l=Q0(),o=V3(),c=Object.prototype,d=c.hasOwnProperty;function h(p,v){var m=n(p),g=!m&&t(p),j=!m&&!g&&r(p),S=!m&&!g&&!j&&o(p),_=m||g||j||S,x=_?e(p.length,String):[],O=x.length;for(var w in p)(v||d.call(p,w))&&!(_&&(w=="length"||j&&(w=="offset"||w=="parent")||S&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||l(w,O)))&&x.push(w);return x}return Ty=h,Ty}var Cy,pA;function jz(){if(pA)return Cy;pA=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,l=typeof r=="function"&&r.prototype||e;return n===l}return Cy=t,Cy}var My,mA;function F3(){if(mA)return My;mA=1;function e(t,n){return function(r){return t(n(r))}}return My=e,My}var ky,vA;function _z(){if(vA)return ky;vA=1;var e=F3(),t=e(Object.keys,Object);return ky=t,ky}var Ry,yA;function Sz(){if(yA)return Ry;yA=1;var e=jz(),t=_z(),n=Object.prototype,r=n.hasOwnProperty;function l(o){if(!e(o))return t(o);var c=[];for(var d in Object(o))r.call(o,d)&&d!="constructor"&&c.push(d);return c}return Ry=l,Ry}var Py,gA;function Cu(){if(gA)return Py;gA=1;var e=q0(),t=J0();function n(r){return r!=null&&t(r.length)&&!e(r)}return Py=n,Py}var Dy,bA;function Ud(){if(bA)return Dy;bA=1;var e=xz(),t=Sz(),n=Cu();function r(l){return n(l)?e(l):t(l)}return Dy=r,Dy}var $y,xA;function wz(){if(xA)return $y;xA=1;var e=fz(),t=pz(),n=Ud();function r(l){return e(l,n,t)}return $y=r,$y}var qy,jA;function Oz(){if(jA)return qy;jA=1;var e=wz(),t=1,n=Object.prototype,r=n.hasOwnProperty;function l(o,c,d,h,p,v){var m=d&t,g=e(o),j=g.length,S=e(c),_=S.length;if(j!=_&&!m)return!1;for(var x=j;x--;){var O=g[x];if(!(m?O in c:r.call(c,O)))return!1}var w=v.get(o),E=v.get(c);if(w&&E)return w==c&&E==o;var M=!0;v.set(o,c),v.set(c,o);for(var A=m;++x-1}return ug=t,ug}var cg,KA;function Yz(){if(KA)return cg;KA=1;function e(t,n,r){for(var l=-1,o=t==null?0:t.length;++l=c){var O=p?null:l(h);if(O)return o(O);S=!1,g=r,x=new e}else x=p?[]:_;e:for(;++m=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lB(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function oB(e){return e.value}function sB(e,t){if(Y.isValidElement(e))return Y.cloneElement(e,t);if(typeof e=="function")return Y.createElement(e,t);t.ref;var n=iB(t,Wz);return Y.createElement(X0,n)}var nN=1,wi=(function(e){function t(){var n;Qz(this,t);for(var r=arguments.length,l=new Array(r),o=0;onN||Math.abs(l.height-this.lastBoundingBox.height)>nN)&&(this.lastBoundingBox.width=l.width,this.lastBoundingBox.height=l.height,r&&r(l)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Kr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var l=this.props,o=l.layout,c=l.align,d=l.verticalAlign,h=l.margin,p=l.chartWidth,v=l.chartHeight,m,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(c==="center"&&o==="vertical"){var j=this.getBBoxSnapshot();m={left:((p||0)-j.width)/2}}else m=c==="right"?{right:h&&h.right||0}:{left:h&&h.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(d==="middle"){var S=this.getBBoxSnapshot();g={top:((v||0)-S.height)/2}}else g=d==="bottom"?{bottom:h&&h.bottom||0}:{top:h&&h.top||0};return Kr(Kr({},m),g)}},{key:"render",value:function(){var r=this,l=this.props,o=l.content,c=l.width,d=l.height,h=l.wrapperStyle,p=l.payloadUniqBy,v=l.payload,m=Kr(Kr({position:"absolute",width:c||"auto",height:d||"auto"},this.getDefaultPosition(h)),h);return Y.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(j){r.wrapperNode=j}},sB(o,Kr(Kr({},this.props),{},{payload:Q3(v,p,oB)})))}}],[{key:"getWithHeight",value:function(r,l){var o=Kr(Kr({},this.defaultProps),r.props),c=o.layout;return c==="vertical"&&ve(r.props.height)?{height:r.props.height}:c==="horizontal"?{width:r.props.width||l}:null}}])})(T.PureComponent);Id(wi,"displayName","Legend");Id(wi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var mg,rN;function uB(){if(rN)return mg;rN=1;var e=Nu(),t=W0(),n=wn(),r=e?e.isConcatSpreadable:void 0;function l(o){return n(o)||t(o)||!!(r&&o&&o[r])}return mg=l,mg}var vg,aN;function tk(){if(aN)return vg;aN=1;var e=H3(),t=uB();function n(r,l,o,c,d){var h=-1,p=r.length;for(o||(o=t),d||(d=[]);++h0&&o(v)?l>1?n(v,l-1,o,c,d):e(d,v):c||(d[d.length]=v)}return d}return vg=n,vg}var yg,iN;function cB(){if(iN)return yg;iN=1;function e(t){return function(n,r,l){for(var o=-1,c=Object(n),d=l(n),h=d.length;h--;){var p=d[t?h:++o];if(r(c[p],p,c)===!1)break}return n}}return yg=e,yg}var gg,lN;function fB(){if(lN)return gg;lN=1;var e=cB(),t=e();return gg=t,gg}var bg,oN;function nk(){if(oN)return bg;oN=1;var e=fB(),t=Ud();function n(r,l){return r&&e(r,l,t)}return bg=n,bg}var xg,sN;function dB(){if(sN)return xg;sN=1;var e=Cu();function t(n,r){return function(l,o){if(l==null)return l;if(!e(l))return n(l,o);for(var c=l.length,d=r?c:-1,h=Object(l);(r?d--:++dr||d&&h&&v&&!p&&!m||o&&h&&v||!l&&v||!c)return 1;if(!o&&!d&&!m&&n=p)return v;var m=l[o];return v*(m=="desc"?-1:1)}}return n.index-r.index}return Og=t,Og}var Ag,pN;function vB(){if(pN)return Ag;pN=1;var e=U0(),t=I0(),n=Er(),r=rk(),l=hB(),o=Y3(),c=mB(),d=yo(),h=wn();function p(v,m,g){m.length?m=e(m,function(_){return h(_)?function(x){return t(x,_.length===1?_[0]:_)}:_}):m=[d];var j=-1;m=e(m,o(n));var S=r(v,function(_,x,O){var w=e(m,function(E){return E(_)});return{criteria:w,index:++j,value:_}});return l(S,function(_,x){return c(_,x,g)})}return Ag=p,Ag}var Ng,mN;function yB(){if(mN)return Ng;mN=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Ng=e,Ng}var Eg,vN;function gB(){if(vN)return Eg;vN=1;var e=yB(),t=Math.max;function n(r,l,o){return l=t(l===void 0?r.length-1:l,0),function(){for(var c=arguments,d=-1,h=t(c.length-l,0),p=Array(h);++d0){if(++o>=e)return arguments[0]}else o=0;return l.apply(void 0,arguments)}}return kg=r,kg}var Rg,jN;function _B(){if(jN)return Rg;jN=1;var e=xB(),t=jB(),n=t(e);return Rg=n,Rg}var Pg,_N;function SB(){if(_N)return Pg;_N=1;var e=yo(),t=gB(),n=_B();function r(l,o){return n(t(l,o,e),l+"")}return Pg=r,Pg}var Dg,SN;function Hd(){if(SN)return Dg;SN=1;var e=L0(),t=Cu(),n=Q0(),r=Ya();function l(o,c,d){if(!r(d))return!1;var h=typeof c;return(h=="number"?t(d)&&n(c,d.length):h=="string"&&c in d)?e(d[c],o):!1}return Dg=l,Dg}var $g,wN;function wB(){if(wN)return $g;wN=1;var e=tk(),t=vB(),n=SB(),r=Hd(),l=n(function(o,c){if(o==null)return[];var d=c.length;return d>1&&r(o,c[0],c[1])?c=[]:d>2&&r(c[0],c[1],c[2])&&(c=[c[0]]),t(o,e(c,1),[])});return $g=l,$g}var OB=wB();const n1=rt(OB);function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(bs,"-left"),ve(n)&&t&&ve(t.x)&&n=t.y),"".concat(bs,"-top"),ve(r)&&t&&ve(t.y)&&r_?Math.max(v,h[r]):Math.max(m,h[r])}function BB(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function UB(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,l=e.position,o=e.reverseDirection,c=e.tooltipBox,d=e.useTranslate3d,h=e.viewBox,p,v,m;return c.height>0&&c.width>0&&n?(v=NN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:l,reverseDirection:o,tooltipDimension:c.width,viewBox:h,viewBoxDimension:h.width}),m=NN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:l,reverseDirection:o,tooltipDimension:c.height,viewBox:h,viewBoxDimension:h.height}),p=BB({translateX:v,translateY:m,useTranslate3d:d})):p=LB,{cssProperties:p,cssClasses:zB({translateX:v,translateY:m,coordinate:n})}}function Il(e){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function EN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function TN(e){for(var t=1;tCN||Math.abs(r.height-this.state.lastBoundingBox.height)>CN)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&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 r,l;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((l=this.props.coordinate)===null||l===void 0?void 0:l.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,l=this.props,o=l.active,c=l.allowEscapeViewBox,d=l.animationDuration,h=l.animationEasing,p=l.children,v=l.coordinate,m=l.hasPayload,g=l.isAnimationActive,j=l.offset,S=l.position,_=l.reverseDirection,x=l.useTranslate3d,O=l.viewBox,w=l.wrapperStyle,E=UB({allowEscapeViewBox:c,coordinate:v,offsetTopLeft:j,position:S,reverseDirection:_,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:O}),M=E.cssClasses,A=E.cssProperties,C=TN(TN({transition:g&&o?"transform ".concat(d,"ms ").concat(h):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&m?"visible":"hidden",position:"absolute",top:0,left:0},w);return Y.createElement("div",{tabIndex:-1,className:M,style:C,ref:function(L){r.wrapperNode=L}},p)}}])})(T.PureComponent),WB=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},go={isSsr:WB()};function Hl(e){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hl(e)}function MN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function kN(e){for(var t=1;t0;return Y.createElement(ZB,{allowEscapeViewBox:c,animationDuration:d,animationEasing:h,isAnimationActive:g,active:o,coordinate:v,hasPayload:C,offset:j,position:x,reverseDirection:O,useTranslate3d:w,viewBox:E,wrapperStyle:M},o9(p,kN(kN({},this.props),{},{payload:A})))}}])})(T.PureComponent);r1(xn,"displayName","Tooltip");r1(xn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!go.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 Lg,RN;function s9(){if(RN)return Lg;RN=1;var e=Nr(),t=function(){return e.Date.now()};return Lg=t,Lg}var zg,PN;function u9(){if(PN)return zg;PN=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return zg=t,zg}var Bg,DN;function c9(){if(DN)return Bg;DN=1;var e=u9(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Bg=n,Bg}var Ug,$N;function uk(){if($N)return Ug;$N=1;var e=c9(),t=Ya(),n=mo(),r=NaN,l=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;function h(p){if(typeof p=="number")return p;if(n(p))return r;if(t(p)){var v=typeof p.valueOf=="function"?p.valueOf():p;p=t(v)?v+"":v}if(typeof p!="string")return p===0?p:+p;p=e(p);var m=o.test(p);return m||c.test(p)?d(p.slice(2),m?2:8):l.test(p)?r:+p}return Ug=h,Ug}var Ig,qN;function f9(){if(qN)return Ig;qN=1;var e=Ya(),t=s9(),n=uk(),r="Expected a function",l=Math.max,o=Math.min;function c(d,h,p){var v,m,g,j,S,_,x=0,O=!1,w=!1,E=!0;if(typeof d!="function")throw new TypeError(r);h=n(h)||0,e(p)&&(O=!!p.leading,w="maxWait"in p,g=w?l(n(p.maxWait)||0,h):g,E="trailing"in p?!!p.trailing:E);function M(W){var Q=v,D=m;return v=m=void 0,x=W,j=d.apply(D,Q),j}function A(W){return x=W,S=setTimeout(L,h),O?M(W):j}function C(W){var Q=W-_,D=W-x,P=h-Q;return w?o(P,g-D):P}function k(W){var Q=W-_,D=W-x;return _===void 0||Q>=h||Q<0||w&&D>=g}function L(){var W=t();if(k(W))return B(W);S=setTimeout(L,C(W))}function B(W){return S=void 0,E&&v?M(W):(v=m=void 0,j)}function Z(){S!==void 0&&clearTimeout(S),x=0,v=_=m=S=void 0}function G(){return S===void 0?j:B(t())}function H(){var W=t(),Q=k(W);if(v=arguments,m=this,_=W,Q){if(S===void 0)return A(_);if(w)return clearTimeout(S),S=setTimeout(L,h),M(_)}return S===void 0&&(S=setTimeout(L,h)),j}return H.cancel=Z,H.flush=G,H}return Ig=c,Ig}var Hg,LN;function d9(){if(LN)return Hg;LN=1;var e=f9(),t=Ya(),n="Expected a function";function r(l,o,c){var d=!0,h=!0;if(typeof l!="function")throw new TypeError(n);return t(c)&&(d="leading"in c?!!c.leading:d,h="trailing"in c?!!c.trailing:h),e(l,o,{leading:d,maxWait:o,trailing:h})}return Hg=r,Hg}var h9=d9();const ck=rt(h9);function Ys(e){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(e)}function zN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function af(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(W=ck(W,_,{trailing:!0,leading:!1}));var Q=new ResizeObserver(W),D=A.current.getBoundingClientRect(),P=D.width,$=D.height;return G(P,$),Q.observe(A.current),function(){Q.disconnect()}},[G,_]);var H=T.useMemo(function(){var W=B.containerWidth,Q=B.containerHeight;if(W<0||Q<0)return null;hr(xi(c)||xi(h),`The width(%s) and height(%s) are both fixed numbers,
+ maybe you don't need to use a ResponsiveContainer.`,c,h),hr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var D=xi(c)?W:c,P=xi(h)?Q:h;n&&n>0&&(D?P=D/n:P&&(D=P*n),g&&P>g&&(P=g)),hr(D>0||P>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
- height and width.`,D,P,c,h,v,m,n);var $=!Array.isArray(j)&&ea(j.type).endsWith("Chart");return Y.Children.map(j,function(U){return Y.isValidElement(U)?T.cloneElement(U,af({width:D,height:P},$?{style:af({height:"100%",width:"100%",maxHeight:P,maxWidth:D},U.props.style)}:{})):U})},[n,j,h,g,m,v,B,c]);return Y.createElement("div",{id:x?"".concat(x):void 0,className:qe("recharts-responsive-container",O),style:af(af({},M),{},{width:c,height:h,minWidth:v,minHeight:m,maxHeight:g}),ref:A},H)}),Gd=function(t){return null};Gd.displayName="Cell";function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function UN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function vx(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||go.isSsr)return{width:0,height:0};var r=N9(n),l=JSON.stringify({text:t,copyStyle:r});if(wl.widthCache[l])return wl.widthCache[l];try{var o=document.getElementById(IN);o||(o=document.createElement("span"),o.setAttribute("id",IN),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var c=vx(vx({},A9),r);Object.assign(o.style,c),o.textContent="".concat(t);var d=o.getBoundingClientRect(),h={width:d.width,height:d.height};return wl.widthCache[l]=h,++wl.cacheCount>O9&&(wl.cacheCount=0,wl.widthCache={}),h}catch{return{width:0,height:0}}},E9=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Fs(e){"@babel/helpers - typeof";return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fs(e)}function Df(e,t){return k9(e)||M9(e,t)||C9(e,t)||T9()}function T9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
+ height and width.`,D,P,c,h,v,m,n);var $=!Array.isArray(j)&&Jr(j.type).endsWith("Chart");return Y.Children.map(j,function(U){return Y.isValidElement(U)?T.cloneElement(U,af({width:D,height:P},$?{style:af({height:"100%",width:"100%",maxHeight:P,maxWidth:D},U.props.style)}:{})):U})},[n,j,h,g,m,v,B,c]);return Y.createElement("div",{id:x?"".concat(x):void 0,className:qe("recharts-responsive-container",O),style:af(af({},M),{},{width:c,height:h,minWidth:v,minHeight:m,maxHeight:g}),ref:A},H)}),Gd=function(t){return null};Gd.displayName="Cell";function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function UN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function vx(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||go.isSsr)return{width:0,height:0};var r=N9(n),l=JSON.stringify({text:t,copyStyle:r});if(wl.widthCache[l])return wl.widthCache[l];try{var o=document.getElementById(IN);o||(o=document.createElement("span"),o.setAttribute("id",IN),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var c=vx(vx({},A9),r);Object.assign(o.style,c),o.textContent="".concat(t);var d=o.getBoundingClientRect(),h={width:d.width,height:d.height};return wl.widthCache[l]=h,++wl.cacheCount>O9&&(wl.cacheCount=0,wl.widthCache={}),h}catch{return{width:0,height:0}}},E9=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Fs(e){"@babel/helpers - typeof";return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fs(e)}function Df(e,t){return k9(e)||M9(e,t)||C9(e,t)||T9()}function T9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C9(e,t){if(e){if(typeof e=="string")return HN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HN(e,t)}}function HN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function V9(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function XN(e,t){return Z9(e)||X9(e,t)||K9(e,t)||F9()}function F9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K9(e,t){if(e){if(typeof e=="string")return ZN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZN(e,t)}}function ZN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(P,$){var U=$.word,ie=$.width,fe=P[P.length-1];if(fe&&(l==null||o||fe.width+ie+r$.width?P:$})};if(!v)return j;for(var _="…",x=function(D){var P=m.slice(0,D),$=pk({breakAll:p,style:h,children:P+_}).wordsWithComputedWidth,U=g($),ie=U.length>c||S(U).width>Number(l);return[ie,U]},O=0,w=m.length-1,E=0,M;O<=w&&E<=m.length-1;){var A=Math.floor((O+w)/2),C=A-1,k=x(C),L=XN(k,2),B=L[0],Z=L[1],G=x(A),H=XN(G,1),W=H[0];if(!B&&!W&&(O=A+1),B&&W&&(w=A-1),!B&&W){M=Z;break}E++}return M||j},WN=function(t){var n=Le(t)?[]:t.toString().split(hk);return[{words:n}]},Q9=function(t){var n=t.width,r=t.scaleToFit,l=t.children,o=t.style,c=t.breakAll,d=t.maxLines;if((n||r)&&!go.isSsr){var h,p,v=pk({breakAll:c,children:l,style:o});if(v){var m=v.wordsWithComputedWidth,g=v.spaceWidth;h=m,p=g}else return WN(l);return W9({breakAll:c,children:l,maxLines:d,style:o},h,p,n,r)}return WN(l)},QN="#808080",Ci=function(t){var n=t.x,r=n===void 0?0:n,l=t.y,o=l===void 0?0:l,c=t.lineHeight,d=c===void 0?"1em":c,h=t.capHeight,p=h===void 0?"0.71em":h,v=t.scaleToFit,m=v===void 0?!1:v,g=t.textAnchor,j=g===void 0?"start":g,S=t.verticalAnchor,_=S===void 0?"end":S,x=t.fill,O=x===void 0?QN:x,w=KN(t,G9),E=T.useMemo(function(){return Q9({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:m,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,m,w.style,w.width]),M=w.dx,A=w.dy,C=w.angle,k=w.className,L=w.breakAll,B=KN(w,Y9);if(!It(r)||!It(o))return null;var Z=r+(ve(M)?M:0),G=o+(ve(A)?A:0),H;switch(_){case"start":H=Gg("calc(".concat(p,")"));break;case"middle":H=Gg("calc(".concat((E.length-1)/2," * -").concat(d," + (").concat(p," / 2))"));break;default:H=Gg("calc(".concat(E.length-1," * -").concat(d,")"));break}var W=[];if(m){var Q=E[0].width,D=w.width;W.push("scale(".concat((ve(D)?D/Q:1)/Q,")"))}return C&&W.push("rotate(".concat(C,", ").concat(Z,", ").concat(G,")")),W.length&&(B.transform=W.join(" ")),Y.createElement("text",yx({},Ce(B,!0),{x:Z,y:G,className:qe("recharts-text",k),textAnchor:j,fill:O.includes("url")?QN:O}),E.map(function(P,$){var U=P.words.join(L?"":" ");return Y.createElement("tspan",{x:Z,dy:$===0?H:d,key:"".concat(U,"-").concat($)},U)}))};function Ia(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function J9(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function a1(e){let t,n,r;e.length!==2?(t=Ia,n=(d,h)=>Ia(e(d),h),r=(d,h)=>e(d)-h):(t=e===Ia||e===J9?e:eU,n=e,r=e);function l(d,h,p=0,v=d.length){if(p>>1;n(d[m],h)<0?p=m+1:v=m}while(p>>1;n(d[m],h)<=0?p=m+1:v=m}while(pp&&r(d[m-1],h)>-r(d[m],h)?m-1:m}return{left:l,center:c,right:o}}function eU(){return 0}function mk(e){return e===null?NaN:+e}function*tU(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const nU=a1(Ia),Mu=nU.right;a1(mk).center;class JN extends Map{constructor(t,n=iU){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,l]of t)this.set(r,l)}get(t){return super.get(eE(this,t))}has(t){return super.has(eE(this,t))}set(t,n){return super.set(rU(this,t),n)}delete(t){return super.delete(aU(this,t))}}function eE({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function rU({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function aU({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function iU(e){return e!==null&&typeof e=="object"?e.valueOf():e}function lU(e=Ia){if(e===Ia)return vk;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function vk(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const oU=Math.sqrt(50),sU=Math.sqrt(10),uU=Math.sqrt(2);function $f(e,t,n){const r=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(r)),o=r/Math.pow(10,l),c=o>=oU?10:o>=sU?5:o>=uU?2:1;let d,h,p;return l<0?(p=Math.pow(10,-l)/c,d=Math.round(e*p),h=Math.round(t*p),d/pt&&--h,p=-p):(p=Math.pow(10,l)*c,d=Math.round(e/p),h=Math.round(t/p),d*pt&&--h),h0))return[];if(e===t)return[e];const r=t=l))return[];const d=o-l+1,h=new Array(d);if(r)if(c<0)for(let p=0;p=r)&&(n=r);return n}function nE(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function yk(e,t,n=0,r=1/0,l){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(l=l===void 0?vk:lU(l);r>n;){if(r-n>600){const h=r-n+1,p=t-n+1,v=Math.log(h),m=.5*Math.exp(2*v/3),g=.5*Math.sqrt(v*m*(h-m)/h)*(p-h/2<0?-1:1),j=Math.max(n,Math.floor(t-p*m/h+g)),S=Math.min(r,Math.floor(t+(h-p)*m/h+g));yk(e,t,j,S,l)}const o=e[t];let c=n,d=r;for(xs(e,n,t),l(e[r],o)>0&&xs(e,n,r);c0;)--d}l(e[n],o)===0?xs(e,n,d):(++d,xs(e,d,r)),d<=t&&(n=d+1),t<=d&&(r=d-1)}return e}function xs(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function cU(e,t,n){if(e=Float64Array.from(tU(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return nE(e);if(t>=1)return tE(e);var r,l=(r-1)*t,o=Math.floor(l),c=tE(yk(e,o).subarray(0,o+1)),d=nE(e.subarray(o+1));return c+(d-c)*(l-o)}}function fU(e,t,n=mk){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,l=(r-1)*t,o=Math.floor(l),c=+n(e[o],o,e),d=+n(e[o+1],o+1,e);return c+(d-c)*(l-o)}}function dU(e,t,n){e=+e,t=+t,n=(l=arguments.length)<2?(t=e,e=0,1):l<3?1:+n;for(var r=-1,l=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(l);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?of(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?of(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=pU.exec(e))?new jn(t[1],t[2],t[3],1):(t=mU.exec(e))?new jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=vU.exec(e))?of(t[1],t[2],t[3],t[4]):(t=yU.exec(e))?of(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=gU.exec(e))?uE(t[1],t[2]/100,t[3]/100,1):(t=bU.exec(e))?uE(t[1],t[2]/100,t[3]/100,t[4]):rE.hasOwnProperty(e)?lE(rE[e]):e==="transparent"?new jn(NaN,NaN,NaN,0):null}function lE(e){return new jn(e>>16&255,e>>8&255,e&255,1)}function of(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function _U(e){return e instanceof ku||(e=Ws(e)),e?(e=e.rgb(),new jn(e.r,e.g,e.b,e.opacity)):new jn}function _x(e,t,n,r){return arguments.length===1?_U(e):new jn(e,t,n,r??1)}function jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}l1(jn,_x,bk(ku,{brighter(e){return e=e==null?qf:Math.pow(qf,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Xs:Math.pow(Xs,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn(Ai(this.r),Ai(this.g),Ai(this.b),Lf(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:oE,formatHex:oE,formatHex8:SU,formatRgb:sE,toString:sE}));function oE(){return`#${_i(this.r)}${_i(this.g)}${_i(this.b)}`}function SU(){return`#${_i(this.r)}${_i(this.g)}${_i(this.b)}${_i((isNaN(this.opacity)?1:this.opacity)*255)}`}function sE(){const e=Lf(this.opacity);return`${e===1?"rgb(":"rgba("}${Ai(this.r)}, ${Ai(this.g)}, ${Ai(this.b)}${e===1?")":`, ${e})`}`}function Lf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ai(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _i(e){return e=Ai(e),(e<16?"0":"")+e.toString(16)}function uE(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fr(e,t,n,r)}function xk(e){if(e instanceof fr)return new fr(e.h,e.s,e.l,e.opacity);if(e instanceof ku||(e=Ws(e)),!e)return new fr;if(e instanceof fr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),o=Math.max(t,n,r),c=NaN,d=o-l,h=(o+l)/2;return d?(t===o?c=(n-r)/d+(n0&&h<1?0:c,new fr(c,d,h,e.opacity)}function wU(e,t,n,r){return arguments.length===1?xk(e):new fr(e,t,n,r??1)}function fr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}l1(fr,wU,bk(ku,{brighter(e){return e=e==null?qf:Math.pow(qf,e),new fr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Xs:Math.pow(Xs,e),new fr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,l=2*n-r;return new jn(Yg(e>=240?e-240:e+120,l,r),Yg(e,l,r),Yg(e<120?e+240:e-120,l,r),this.opacity)},clamp(){return new fr(cE(this.h),sf(this.s),sf(this.l),Lf(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 e=Lf(this.opacity);return`${e===1?"hsl(":"hsla("}${cE(this.h)}, ${sf(this.s)*100}%, ${sf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function cE(e){return e=(e||0)%360,e<0?e+360:e}function sf(e){return Math.max(0,Math.min(1,e||0))}function Yg(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const o1=e=>()=>e;function OU(e,t){return function(n){return e+n*t}}function AU(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function NU(e){return(e=+e)==1?jk:function(t,n){return n-t?AU(t,n,e):o1(isNaN(t)?n:t)}}function jk(e,t){var n=t-e;return n?OU(e,n):o1(isNaN(e)?t:e)}const fE=(function e(t){var n=NU(t);function r(l,o){var c=n((l=_x(l)).r,(o=_x(o)).r),d=n(l.g,o.g),h=n(l.b,o.b),p=jk(l.opacity,o.opacity);return function(v){return l.r=c(v),l.g=d(v),l.b=h(v),l.opacity=p(v),l+""}}return r.gamma=e,r})(1);function EU(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(o){for(l=0;ln&&(o=t.slice(n,o),d[c]?d[c]+=o:d[++c]=o),(r=r[0])===(l=l[0])?d[c]?d[c]+=l:d[++c]=l:(d[++c]=null,h.push({i:c,x:zf(r,l)})),n=Vg.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function zU(e,t,n){var r=e[0],l=e[1],o=t[0],c=t[1];return l2?BU:zU,h=p=null,m}function m(g){return g==null||isNaN(g=+g)?o:(h||(h=d(e.map(r),t,n)))(r(c(g)))}return m.invert=function(g){return c(l((p||(p=d(t,e.map(r),zf)))(g)))},m.domain=function(g){return arguments.length?(e=Array.from(g,Bf),v()):e.slice()},m.range=function(g){return arguments.length?(t=Array.from(g),v()):t.slice()},m.rangeRound=function(g){return t=Array.from(g),n=s1,v()},m.clamp=function(g){return arguments.length?(c=g?!0:dn,v()):c!==dn},m.interpolate=function(g){return arguments.length?(n=g,v()):n},m.unknown=function(g){return arguments.length?(o=g,m):o},function(g,j){return r=g,l=j,v()}}function u1(){return Yd()(dn,dn)}function UU(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Uf(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Gl(e){return e=Uf(Math.abs(e)),e?e[1]:NaN}function IU(e,t){return function(n,r){for(var l=n.length,o=[],c=0,d=e[0],h=0;l>0&&d>0&&(h+d+1>r&&(d=Math.max(1,r-h)),o.push(n.substring(l-=d,l+d)),!((h+=d+1)>r));)d=e[c=(c+1)%e.length];return o.reverse().join(t)}}function HU(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var GU=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qs(e){if(!(t=GU.exec(e)))throw new Error("invalid format: "+e);var t;return new c1({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Qs.prototype=c1.prototype;function c1(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}c1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function YU(e){e:for(var t=e.length,n=1,r=-1,l;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var If;function VU(e,t){var n=Uf(e,t);if(!n)return If=void 0,e.toPrecision(t);var r=n[0],l=n[1],o=l-(If=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,c=r.length;return o===c?r:o>c?r+new Array(o-c+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Uf(e,Math.max(0,t+o-1))[0]}function hE(e,t){var n=Uf(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const pE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:UU,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>hE(e*100,t),r:hE,s:VU,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function mE(e){return e}var vE=Array.prototype.map,yE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function FU(e){var t=e.grouping===void 0||e.thousands===void 0?mE:IU(vE.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?mE:HU(vE.call(e.numerals,String)),c=e.percent===void 0?"%":e.percent+"",d=e.minus===void 0?"−":e.minus+"",h=e.nan===void 0?"NaN":e.nan+"";function p(m,g){m=Qs(m);var j=m.fill,S=m.align,_=m.sign,x=m.symbol,O=m.zero,w=m.width,E=m.comma,M=m.precision,A=m.trim,C=m.type;C==="n"?(E=!0,C="g"):pE[C]||(M===void 0&&(M=12),A=!0,C="g"),(O||j==="0"&&S==="=")&&(O=!0,j="0",S="=");var k=(g&&g.prefix!==void 0?g.prefix:"")+(x==="$"?n:x==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),L=(x==="$"?r:/[%p]/.test(C)?c:"")+(g&&g.suffix!==void 0?g.suffix:""),B=pE[C],Z=/[defgprs%]/.test(C);M=M===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function G(H){var W=k,Q=L,D,P,$;if(C==="c")Q=B(H)+Q,H="";else{H=+H;var U=H<0||1/H<0;if(H=isNaN(H)?h:B(Math.abs(H),M),A&&(H=YU(H)),U&&+H==0&&_!=="+"&&(U=!1),W=(U?_==="("?_:d:_==="-"||_==="("?"":_)+W,Q=(C==="s"&&!isNaN(H)&&If!==void 0?yE[8+If/3]:"")+Q+(U&&_==="("?")":""),Z){for(D=-1,P=H.length;++D$||$>57){Q=($===46?l+H.slice(D+1):H.slice(D))+Q,H=H.slice(0,D);break}}}E&&!O&&(H=t(H,1/0));var ie=W.length+H.length+Q.length,fe=ie>1)+W+H+Q+fe.slice(ie);break;default:H=fe+W+H+Q;break}return o(H)}return G.toString=function(){return m+""},G}function v(m,g){var j=Math.max(-8,Math.min(8,Math.floor(Gl(g)/3)))*3,S=Math.pow(10,-j),_=p((m=Qs(m),m.type="f",m),{suffix:yE[8+j/3]});return function(x){return _(S*x)}}return{format:p,formatPrefix:v}}var uf,f1,_k;KU({thousands:",",grouping:[3],currency:["$",""]});function KU(e){return uf=FU(e),f1=uf.format,_k=uf.formatPrefix,uf}function XU(e){return Math.max(0,-Gl(Math.abs(e)))}function ZU(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Gl(t)/3)))*3-Gl(Math.abs(e)))}function WU(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Gl(t)-Gl(e))+1}function Sk(e,t,n,r){var l=xx(e,t,n),o;switch(r=Qs(r??",f"),r.type){case"s":{var c=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=ZU(l,c))&&(r.precision=o),_k(r,c)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=WU(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=XU(l))&&(r.precision=o-(r.type==="%")*2);break}}return f1(r)}function Fa(e){var t=e.domain;return e.ticks=function(n){var r=t();return gx(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return Sk(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,o=r.length-1,c=r[l],d=r[o],h,p,v=10;for(d0;){if(p=bx(c,d,n),p===h)return r[l]=c,r[o]=d,t(r);if(p>0)c=Math.floor(c/p)*p,d=Math.ceil(d/p)*p;else if(p<0)c=Math.ceil(c*p)/p,d=Math.floor(d*p)/p;else break;h=p}return e},e}function Hf(){var e=u1();return e.copy=function(){return Ru(e,Hf())},rr.apply(e,arguments),Fa(e)}function wk(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Bf),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return wk(e).unknown(t)},e=arguments.length?Array.from(e,Bf):[0,1],Fa(n)}function Ok(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],o=e[r],c;return oMath.pow(e,t)}function n7(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function xE(e){return(t,n)=>-e(-t,n)}function d1(e){const t=e(gE,bE),n=t.domain;let r=10,l,o;function c(){return l=n7(r),o=t7(r),n()[0]<0?(l=xE(l),o=xE(o),e(QU,JU)):e(gE,bE),t}return t.base=function(d){return arguments.length?(r=+d,c()):r},t.domain=function(d){return arguments.length?(n(d),c()):n()},t.ticks=d=>{const h=n();let p=h[0],v=h[h.length-1];const m=v0){for(;g<=j;++g)for(S=1;Sv)break;O.push(_)}}else for(;g<=j;++g)for(S=r-1;S>=1;--S)if(_=g>0?S/o(-g):S*o(g),!(_v)break;O.push(_)}O.length*2{if(d==null&&(d=10),h==null&&(h=r===10?"s":","),typeof h!="function"&&(!(r%1)&&(h=Qs(h)).precision==null&&(h.trim=!0),h=f1(h)),d===1/0)return h;const p=Math.max(1,r*d/t.ticks().length);return v=>{let m=v/o(Math.round(l(v)));return m*rn(Ok(n(),{floor:d=>o(Math.floor(l(d))),ceil:d=>o(Math.ceil(l(d)))})),t}function Ak(){const e=d1(Yd()).domain([1,10]);return e.copy=()=>Ru(e,Ak()).base(e.base()),rr.apply(e,arguments),e}function jE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _E(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function h1(e){var t=1,n=e(jE(t),_E(t));return n.constant=function(r){return arguments.length?e(jE(t=+r),_E(t)):t},Fa(n)}function Nk(){var e=h1(Yd());return e.copy=function(){return Ru(e,Nk()).constant(e.constant())},rr.apply(e,arguments)}function SE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function r7(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function a7(e){return e<0?-e*e:e*e}function p1(e){var t=e(dn,dn),n=1;function r(){return n===1?e(dn,dn):n===.5?e(r7,a7):e(SE(n),SE(1/n))}return t.exponent=function(l){return arguments.length?(n=+l,r()):n},Fa(t)}function m1(){var e=p1(Yd());return e.copy=function(){return Ru(e,m1()).exponent(e.exponent())},rr.apply(e,arguments),e}function i7(){return m1.apply(null,arguments).exponent(.5)}function wE(e){return Math.sign(e)*e*e}function l7(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Ek(){var e=u1(),t=[0,1],n=!1,r;function l(o){var c=l7(e(o));return isNaN(c)?r:n?Math.round(c):c}return l.invert=function(o){return e.invert(wE(o))},l.domain=function(o){return arguments.length?(e.domain(o),l):e.domain()},l.range=function(o){return arguments.length?(e.range((t=Array.from(o,Bf)).map(wE)),l):t.slice()},l.rangeRound=function(o){return l.range(o).round(!0)},l.round=function(o){return arguments.length?(n=!!o,l):n},l.clamp=function(o){return arguments.length?(e.clamp(o),l):e.clamp()},l.unknown=function(o){return arguments.length?(r=o,l):r},l.copy=function(){return Ek(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},rr.apply(l,arguments),Fa(l)}function Tk(){var e=[],t=[],n=[],r;function l(){var c=0,d=Math.max(1,t.length);for(n=new Array(d-1);++c0?n[d-1]:e[0],d=n?[r[n-1],t]:[r[p-1],r[p]]},c.unknown=function(h){return arguments.length&&(o=h),c},c.thresholds=function(){return r.slice()},c.copy=function(){return Ck().domain([e,t]).range(l).unknown(o)},rr.apply(Fa(c),arguments)}function Mk(){var e=[.5],t=[0,1],n,r=1;function l(o){return o!=null&&o<=o?t[Mu(e,o,0,r)]:n}return l.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),l):e.slice()},l.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),l):t.slice()},l.invertExtent=function(o){var c=t.indexOf(o);return[e[c-1],e[c]]},l.unknown=function(o){return arguments.length?(n=o,l):n},l.copy=function(){return Mk().domain(e).range(t).unknown(n)},rr.apply(l,arguments)}const Fg=new Date,Kg=new Date;function Ht(e,t,n,r){function l(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return l.floor=o=>(e(o=new Date(+o)),o),l.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),l.round=o=>{const c=l(o),d=l.ceil(o);return o-c(t(o=new Date(+o),c==null?1:Math.floor(c)),o),l.range=(o,c,d)=>{const h=[];if(o=l.ceil(o),d=d==null?1:Math.floor(d),!(o0))return h;let p;do h.push(p=new Date(+o)),t(o,d),e(o);while(pHt(c=>{if(c>=c)for(;e(c),!o(c);)c.setTime(c-1)},(c,d)=>{if(c>=c)if(d<0)for(;++d<=0;)for(;t(c,-1),!o(c););else for(;--d>=0;)for(;t(c,1),!o(c););}),n&&(l.count=(o,c)=>(Fg.setTime(+o),Kg.setTime(+c),e(Fg),e(Kg),Math.floor(n(Fg,Kg))),l.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?l.filter(r?c=>r(c)%o===0:c=>l.count(0,c)%o===0):l)),l}const Gf=Ht(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Gf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ht(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Gf);Gf.range;const Wr=1e3,Jn=Wr*60,Qr=Jn*60,ra=Qr*24,v1=ra*7,OE=ra*30,Xg=ra*365,Si=Ht(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Wr)},(e,t)=>(t-e)/Wr,e=>e.getUTCSeconds());Si.range;const y1=Ht(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wr)},(e,t)=>{e.setTime(+e+t*Jn)},(e,t)=>(t-e)/Jn,e=>e.getMinutes());y1.range;const g1=Ht(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Jn)},(e,t)=>(t-e)/Jn,e=>e.getUTCMinutes());g1.range;const b1=Ht(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wr-e.getMinutes()*Jn)},(e,t)=>{e.setTime(+e+t*Qr)},(e,t)=>(t-e)/Qr,e=>e.getHours());b1.range;const x1=Ht(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Qr)},(e,t)=>(t-e)/Qr,e=>e.getUTCHours());x1.range;const Pu=Ht(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jn)/ra,e=>e.getDate()-1);Pu.range;const Vd=Ht(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ra,e=>e.getUTCDate()-1);Vd.range;const kk=Ht(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ra,e=>Math.floor(e/ra));kk.range;function qi(e){return Ht(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Jn)/v1)}const Fd=qi(0),Yf=qi(1),o7=qi(2),s7=qi(3),Yl=qi(4),u7=qi(5),c7=qi(6);Fd.range;Yf.range;o7.range;s7.range;Yl.range;u7.range;c7.range;function Li(e){return Ht(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/v1)}const Kd=Li(0),Vf=Li(1),f7=Li(2),d7=Li(3),Vl=Li(4),h7=Li(5),p7=Li(6);Kd.range;Vf.range;f7.range;d7.range;Vl.range;h7.range;p7.range;const j1=Ht(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());j1.range;const _1=Ht(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());_1.range;const aa=Ht(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());aa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ht(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});aa.range;const ia=Ht(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ia.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ht(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ia.range;function Rk(e,t,n,r,l,o){const c=[[Si,1,Wr],[Si,5,5*Wr],[Si,15,15*Wr],[Si,30,30*Wr],[o,1,Jn],[o,5,5*Jn],[o,15,15*Jn],[o,30,30*Jn],[l,1,Qr],[l,3,3*Qr],[l,6,6*Qr],[l,12,12*Qr],[r,1,ra],[r,2,2*ra],[n,1,v1],[t,1,OE],[t,3,3*OE],[e,1,Xg]];function d(p,v,m){const g=vx).right(c,g);if(j===c.length)return e.every(xx(p/Xg,v/Xg,m));if(j===0)return Gf.every(Math.max(xx(p,v,m),1));const[S,_]=c[g/c[j-1][2]53)return null;"w"in he||(he.w=1),"Z"in he?(ae=Wg(js(he.y,0,1)),Ke=ae.getUTCDay(),ae=Ke>4||Ke===0?Vf.ceil(ae):Vf(ae),ae=Vd.offset(ae,(he.V-1)*7),he.y=ae.getUTCFullYear(),he.m=ae.getUTCMonth(),he.d=ae.getUTCDate()+(he.w+6)%7):(ae=Zg(js(he.y,0,1)),Ke=ae.getDay(),ae=Ke>4||Ke===0?Yf.ceil(ae):Yf(ae),ae=Pu.offset(ae,(he.V-1)*7),he.y=ae.getFullYear(),he.m=ae.getMonth(),he.d=ae.getDate()+(he.w+6)%7)}else("W"in he||"U"in he)&&("w"in he||(he.w="u"in he?he.u%7:"W"in he?1:0),Ke="Z"in he?Wg(js(he.y,0,1)).getUTCDay():Zg(js(he.y,0,1)).getDay(),he.m=0,he.d="W"in he?(he.w+6)%7+he.W*7-(Ke+5)%7:he.w+he.U*7-(Ke+6)%7);return"Z"in he?(he.H+=he.Z/100|0,he.M+=he.Z%100,Wg(he)):Zg(he)}}function L(me,Te,Me,he){for(var st=0,ae=Te.length,Ke=Me.length,St,nn;st=Ke)return-1;if(St=Te.charCodeAt(st++),St===37){if(St=Te.charAt(st++),nn=A[St in AE?Te.charAt(st++):St],!nn||(he=nn(me,Me,he))<0)return-1}else if(St!=Me.charCodeAt(he++))return-1}return he}function B(me,Te,Me){var he=p.exec(Te.slice(Me));return he?(me.p=v.get(he[0].toLowerCase()),Me+he[0].length):-1}function Z(me,Te,Me){var he=j.exec(Te.slice(Me));return he?(me.w=S.get(he[0].toLowerCase()),Me+he[0].length):-1}function G(me,Te,Me){var he=m.exec(Te.slice(Me));return he?(me.w=g.get(he[0].toLowerCase()),Me+he[0].length):-1}function H(me,Te,Me){var he=O.exec(Te.slice(Me));return he?(me.m=w.get(he[0].toLowerCase()),Me+he[0].length):-1}function W(me,Te,Me){var he=_.exec(Te.slice(Me));return he?(me.m=x.get(he[0].toLowerCase()),Me+he[0].length):-1}function Q(me,Te,Me){return L(me,t,Te,Me)}function D(me,Te,Me){return L(me,n,Te,Me)}function P(me,Te,Me){return L(me,r,Te,Me)}function $(me){return c[me.getDay()]}function U(me){return o[me.getDay()]}function ie(me){return h[me.getMonth()]}function fe(me){return d[me.getMonth()]}function z(me){return l[+(me.getHours()>=12)]}function F(me){return 1+~~(me.getMonth()/3)}function q(me){return c[me.getUTCDay()]}function de(me){return o[me.getUTCDay()]}function ge(me){return h[me.getUTCMonth()]}function we(me){return d[me.getUTCMonth()]}function $e(me){return l[+(me.getUTCHours()>=12)]}function Ge(me){return 1+~~(me.getUTCMonth()/3)}return{format:function(me){var Te=C(me+="",E);return Te.toString=function(){return me},Te},parse:function(me){var Te=k(me+="",!1);return Te.toString=function(){return me},Te},utcFormat:function(me){var Te=C(me+="",M);return Te.toString=function(){return me},Te},utcParse:function(me){var Te=k(me+="",!0);return Te.toString=function(){return me},Te}}}var AE={"-":"",_:" ",0:"0"},Kt=/^\s*\d+/,x7=/^%/,j7=/[\\^$*+?|[\]().{}]/g;function Fe(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",o=l.length;return r+(o[t.toLowerCase(),n]))}function S7(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function w7(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function O7(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function A7(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function N7(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function NE(e,t,n){var r=Kt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function EE(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function E7(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function T7(e,t,n){var r=Kt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function C7(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function TE(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function M7(e,t,n){var r=Kt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function CE(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function k7(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function R7(e,t,n){var r=Kt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function P7(e,t,n){var r=Kt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function D7(e,t,n){var r=Kt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function $7(e,t,n){var r=x7.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function q7(e,t,n){var r=Kt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function L7(e,t,n){var r=Kt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ME(e,t){return Fe(e.getDate(),t,2)}function z7(e,t){return Fe(e.getHours(),t,2)}function B7(e,t){return Fe(e.getHours()%12||12,t,2)}function U7(e,t){return Fe(1+Pu.count(aa(e),e),t,3)}function Pk(e,t){return Fe(e.getMilliseconds(),t,3)}function I7(e,t){return Pk(e,t)+"000"}function H7(e,t){return Fe(e.getMonth()+1,t,2)}function G7(e,t){return Fe(e.getMinutes(),t,2)}function Y7(e,t){return Fe(e.getSeconds(),t,2)}function V7(e){var t=e.getDay();return t===0?7:t}function F7(e,t){return Fe(Fd.count(aa(e)-1,e),t,2)}function Dk(e){var t=e.getDay();return t>=4||t===0?Yl(e):Yl.ceil(e)}function K7(e,t){return e=Dk(e),Fe(Yl.count(aa(e),e)+(aa(e).getDay()===4),t,2)}function X7(e){return e.getDay()}function Z7(e,t){return Fe(Yf.count(aa(e)-1,e),t,2)}function W7(e,t){return Fe(e.getFullYear()%100,t,2)}function Q7(e,t){return e=Dk(e),Fe(e.getFullYear()%100,t,2)}function J7(e,t){return Fe(e.getFullYear()%1e4,t,4)}function eI(e,t){var n=e.getDay();return e=n>=4||n===0?Yl(e):Yl.ceil(e),Fe(e.getFullYear()%1e4,t,4)}function tI(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Fe(t/60|0,"0",2)+Fe(t%60,"0",2)}function kE(e,t){return Fe(e.getUTCDate(),t,2)}function nI(e,t){return Fe(e.getUTCHours(),t,2)}function rI(e,t){return Fe(e.getUTCHours()%12||12,t,2)}function aI(e,t){return Fe(1+Vd.count(ia(e),e),t,3)}function $k(e,t){return Fe(e.getUTCMilliseconds(),t,3)}function iI(e,t){return $k(e,t)+"000"}function lI(e,t){return Fe(e.getUTCMonth()+1,t,2)}function oI(e,t){return Fe(e.getUTCMinutes(),t,2)}function sI(e,t){return Fe(e.getUTCSeconds(),t,2)}function uI(e){var t=e.getUTCDay();return t===0?7:t}function cI(e,t){return Fe(Kd.count(ia(e)-1,e),t,2)}function qk(e){var t=e.getUTCDay();return t>=4||t===0?Vl(e):Vl.ceil(e)}function fI(e,t){return e=qk(e),Fe(Vl.count(ia(e),e)+(ia(e).getUTCDay()===4),t,2)}function dI(e){return e.getUTCDay()}function hI(e,t){return Fe(Vf.count(ia(e)-1,e),t,2)}function pI(e,t){return Fe(e.getUTCFullYear()%100,t,2)}function mI(e,t){return e=qk(e),Fe(e.getUTCFullYear()%100,t,2)}function vI(e,t){return Fe(e.getUTCFullYear()%1e4,t,4)}function yI(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Vl(e):Vl.ceil(e),Fe(e.getUTCFullYear()%1e4,t,4)}function gI(){return"+0000"}function RE(){return"%"}function PE(e){return+e}function DE(e){return Math.floor(+e/1e3)}var Ol,Lk,zk;bI({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"]});function bI(e){return Ol=b7(e),Lk=Ol.format,Ol.parse,zk=Ol.utcFormat,Ol.utcParse,Ol}function xI(e){return new Date(e)}function jI(e){return e instanceof Date?+e:+new Date(+e)}function S1(e,t,n,r,l,o,c,d,h,p){var v=u1(),m=v.invert,g=v.domain,j=p(".%L"),S=p(":%S"),_=p("%I:%M"),x=p("%I %p"),O=p("%a %d"),w=p("%b %d"),E=p("%B"),M=p("%Y");function A(C){return(h(C)t(l/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(l,o)=>cU(e,o/r))},n.copy=function(){return Hk(t).domain(e)},ua.apply(n,arguments)}function Zd(){var e=0,t=.5,n=1,r=1,l,o,c,d,h,p=dn,v,m=!1,g;function j(_){return isNaN(_=+_)?g:(_=.5+((_=+v(_))-o)*(r*_n}return Jg=e,Jg}var eb,zE;function AI(){if(zE)return eb;zE=1;var e=Wd(),t=Fk(),n=yo();function r(l){return l&&l.length?e(l,n,t):void 0}return eb=r,eb}var NI=AI();const Qd=rt(NI);var tb,BE;function Kk(){if(BE)return tb;BE=1;function e(t,n){return te.e^o.s<0?1:-1;for(r=o.d.length,l=e.d.length,t=0,n=re.d[t]^o.s<0?1:-1;return r===l?0:r>l^o.s<0?1:-1};be.decimalPlaces=be.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*gt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};be.dividedBy=be.div=function(e){return ta(this,new this.constructor(e))};be.dividedToIntegerBy=be.idiv=function(e){var t=this,n=t.constructor;return dt(ta(t,new n(e),0,1),n.precision)};be.equals=be.eq=function(e){return!this.cmp(e)};be.exponent=function(){return $t(this)};be.greaterThan=be.gt=function(e){return this.cmp(e)>0};be.greaterThanOrEqualTo=be.gte=function(e){return this.cmp(e)>=0};be.isInteger=be.isint=function(){return this.e>this.d.length-2};be.isNegative=be.isneg=function(){return this.s<0};be.isPositive=be.ispos=function(){return this.s>0};be.isZero=function(){return this.s===0};be.lessThan=be.lt=function(e){return this.cmp(e)<0};be.lessThanOrEqualTo=be.lte=function(e){return this.cmp(e)<1};be.logarithm=be.log=function(e){var t,n=this,r=n.constructor,l=r.precision,o=l+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq($n))throw Error(nr+"NaN");if(n.s<1)throw Error(nr+(n.s?"NaN":"-Infinity"));return n.eq($n)?new r(0):(xt=!1,t=ta(Js(n,o),Js(e,o),o),xt=!0,dt(t,l))};be.minus=be.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qk(t,e):Zk(t,(e.s=-e.s,e))};be.modulo=be.mod=function(e){var t,n=this,r=n.constructor,l=r.precision;if(e=new r(e),!e.s)throw Error(nr+"NaN");return n.s?(xt=!1,t=ta(n,e,0,1).times(e),xt=!0,n.minus(t)):dt(new r(n),l)};be.naturalExponential=be.exp=function(){return Wk(this)};be.naturalLogarithm=be.ln=function(){return Js(this)};be.negated=be.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};be.plus=be.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Zk(t,e):Qk(t,(e.s=-e.s,e))};be.precision=be.sd=function(e){var t,n,r,l=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ni+e);if(t=$t(l)+1,r=l.d.length-1,n=r*gt+1,r=l.d[r],r){for(;r%10==0;r/=10)n--;for(r=l.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};be.squareRoot=be.sqrt=function(){var e,t,n,r,l,o,c,d=this,h=d.constructor;if(d.s<1){if(!d.s)return new h(0);throw Error(nr+"NaN")}for(e=$t(d),xt=!1,l=Math.sqrt(+d),l==0||l==1/0?(t=_r(d.d),(t.length+e)%2==0&&(t+="0"),l=Math.sqrt(t),e=jo((e+1)/2)-(e<0||e%2),l==1/0?t="5e"+e:(t=l.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new h(t)):r=new h(l.toString()),n=h.precision,l=c=n+3;;)if(o=r,r=o.plus(ta(d,o,c+2)).times(.5),_r(o.d).slice(0,c)===(t=_r(r.d)).slice(0,c)){if(t=t.slice(c-3,c+1),l==c&&t=="4999"){if(dt(o,n+1,0),o.times(o).eq(d)){r=o;break}}else if(t!="9999")break;c+=4}return xt=!0,dt(r,n)};be.times=be.mul=function(e){var t,n,r,l,o,c,d,h,p,v=this,m=v.constructor,g=v.d,j=(e=new m(e)).d;if(!v.s||!e.s)return new m(0);for(e.s*=v.s,n=v.e+e.e,h=g.length,p=j.length,h=0;){for(t=0,l=h+r;l>r;)d=o[l]+j[r]*g[l-r-1]+t,o[l--]=d%Vt|0,t=d/Vt|0;o[l]=(o[l]+t)%Vt|0}for(;!o[--c];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,xt?dt(e,m.precision):e};be.toDecimalPlaces=be.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Or(e,0,xo),t===void 0?t=r.rounding:Or(t,0,8),dt(n,e+$t(n)+1,t))};be.toExponential=function(e,t){var n,r=this,l=r.constructor;return e===void 0?n=Mi(r,!0):(Or(e,0,xo),t===void 0?t=l.rounding:Or(t,0,8),r=dt(new l(r),e+1,t),n=Mi(r,!0,e+1)),n};be.toFixed=function(e,t){var n,r,l=this,o=l.constructor;return e===void 0?Mi(l):(Or(e,0,xo),t===void 0?t=o.rounding:Or(t,0,8),r=dt(new o(l),e+$t(l)+1,t),n=Mi(r.abs(),!1,e+$t(r)+1),l.isneg()&&!l.isZero()?"-"+n:n)};be.toInteger=be.toint=function(){var e=this,t=e.constructor;return dt(new t(e),$t(e)+1,t.rounding)};be.toNumber=function(){return+this};be.toPower=be.pow=function(e){var t,n,r,l,o,c,d=this,h=d.constructor,p=12,v=+(e=new h(e));if(!e.s)return new h($n);if(d=new h(d),!d.s){if(e.s<1)throw Error(nr+"Infinity");return d}if(d.eq($n))return d;if(r=h.precision,e.eq($n))return dt(d,r);if(t=e.e,n=e.d.length-1,c=t>=n,o=d.s,c){if((n=v<0?-v:v)<=Xk){for(l=new h($n),t=Math.ceil(r/gt+4),xt=!1;n%2&&(l=l.times(d),VE(l.d,t)),n=jo(n/2),n!==0;)d=d.times(d),VE(d.d,t);return xt=!0,e.s<0?new h($n).div(l):dt(l,r)}}else if(o<0)throw Error(nr+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,d.s=1,xt=!1,l=e.times(Js(d,r+p)),xt=!0,l=Wk(l),l.s=o,l};be.toPrecision=function(e,t){var n,r,l=this,o=l.constructor;return e===void 0?(n=$t(l),r=Mi(l,n<=o.toExpNeg||n>=o.toExpPos)):(Or(e,1,xo),t===void 0?t=o.rounding:Or(t,0,8),l=dt(new o(l),e,t),n=$t(l),r=Mi(l,e<=n||n<=o.toExpNeg,e)),r};be.toSignificantDigits=be.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Or(e,1,xo),t===void 0?t=r.rounding:Or(t,0,8)),dt(new r(n),e,t)};be.toString=be.valueOf=be.val=be.toJSON=be[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$t(e),n=e.constructor;return Mi(e,t<=n.toExpNeg||t>=n.toExpPos)};function Zk(e,t){var n,r,l,o,c,d,h,p,v=e.constructor,m=v.precision;if(!e.s||!t.s)return t.s||(t=new v(e)),xt?dt(t,m):t;if(h=e.d,p=t.d,c=e.e,l=t.e,h=h.slice(),o=c-l,o){for(o<0?(r=h,o=-o,d=p.length):(r=p,l=c,d=h.length),c=Math.ceil(m/gt),d=c>d?c+1:d+1,o>d&&(o=d,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(d=h.length,o=p.length,d-o<0&&(o=d,r=p,p=h,h=r),n=0;o;)n=(h[--o]=h[o]+p[o]+n)/Vt|0,h[o]%=Vt;for(n&&(h.unshift(n),++l),d=h.length;h[--d]==0;)h.pop();return t.d=h,t.e=l,xt?dt(t,m):t}function Or(e,t,n){if(e!==~~e||en)throw Error(Ni+e)}function _r(e){var t,n,r,l=e.length-1,o="",c=e[0];if(l>0){for(o+=c,t=1;tc?1:-1;else for(d=h=0;dl[d]?1:-1;break}return h}function n(r,l,o){for(var c=0;o--;)r[o]-=c,c=r[o]1;)r.shift()}return function(r,l,o,c){var d,h,p,v,m,g,j,S,_,x,O,w,E,M,A,C,k,L,B=r.constructor,Z=r.s==l.s?1:-1,G=r.d,H=l.d;if(!r.s)return new B(r);if(!l.s)throw Error(nr+"Division by zero");for(h=r.e-l.e,k=H.length,A=G.length,j=new B(Z),S=j.d=[],p=0;H[p]==(G[p]||0);)++p;if(H[p]>(G[p]||0)&&--h,o==null?w=o=B.precision:c?w=o+($t(r)-$t(l))+1:w=o,w<0)return new B(0);if(w=w/gt+2|0,p=0,k==1)for(v=0,H=H[0],w++;(p1&&(H=e(H,v),G=e(G,v),k=H.length,A=G.length),M=k,_=G.slice(0,k),x=_.length;x=Vt/2&&++C;do v=0,d=t(H,_,k,x),d<0?(O=_[0],k!=x&&(O=O*Vt+(_[1]||0)),v=O/C|0,v>1?(v>=Vt&&(v=Vt-1),m=e(H,v),g=m.length,x=_.length,d=t(m,_,g,x),d==1&&(v--,n(m,k16)throw Error(A1+$t(e));if(!e.s)return new v($n);for(xt=!1,d=m,c=new v(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(bi(2,p))/Math.LN10*2+5|0,d+=r,n=l=o=new v($n),v.precision=d;;){if(l=dt(l.times(e),d),n=n.times(++h),c=o.plus(ta(l,n,d)),_r(c.d).slice(0,d)===_r(o.d).slice(0,d)){for(;p--;)o=dt(o.times(o),d);return v.precision=m,t==null?(xt=!0,dt(o,m)):o}o=c}}function $t(e){for(var t=e.e*gt,n=e.d[0];n>=10;n/=10)t++;return t}function lb(e,t,n){if(t>e.LN10.sd())throw xt=!0,n&&(e.precision=n),Error(nr+"LN10 precision limit exceeded");return dt(new e(e.LN10),t)}function La(e){for(var t="";e--;)t+="0";return t}function Js(e,t){var n,r,l,o,c,d,h,p,v,m=1,g=10,j=e,S=j.d,_=j.constructor,x=_.precision;if(j.s<1)throw Error(nr+(j.s?"NaN":"-Infinity"));if(j.eq($n))return new _(0);if(t==null?(xt=!1,p=x):p=t,j.eq(10))return t==null&&(xt=!0),lb(_,p);if(p+=g,_.precision=p,n=_r(S),r=n.charAt(0),o=$t(j),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)j=j.times(e),n=_r(j.d),r=n.charAt(0),m++;o=$t(j),r>1?(j=new _("0."+n),o++):j=new _(r+"."+n.slice(1))}else return h=lb(_,p+2,x).times(o+""),j=Js(new _(r+"."+n.slice(1)),p-g).plus(h),_.precision=x,t==null?(xt=!0,dt(j,x)):j;for(d=c=j=ta(j.minus($n),j.plus($n),p),v=dt(j.times(j),p),l=3;;){if(c=dt(c.times(v),p),h=d.plus(ta(c,new _(l),p)),_r(h.d).slice(0,p)===_r(d.d).slice(0,p))return d=d.times(2),o!==0&&(d=d.plus(lb(_,p+2,x).times(o+""))),d=ta(d,new _(m),p),_.precision=x,t==null?(xt=!0,dt(d,x)):d;d=h,l+=2}}function YE(e,t){var n,r,l;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(l=t.length;t.charCodeAt(l-1)===48;)--l;if(t=t.slice(r,l),t){if(l-=r,n=n-r-1,e.e=jo(n/gt),e.d=[],r=(n+1)%gt,n<0&&(r+=gt),rFf||e.e<-Ff))throw Error(A1+n)}else e.s=0,e.e=0,e.d=[0];return e}function dt(e,t,n){var r,l,o,c,d,h,p,v,m=e.d;for(c=1,o=m[0];o>=10;o/=10)c++;if(r=t-c,r<0)r+=gt,l=t,p=m[v=0];else{if(v=Math.ceil((r+1)/gt),o=m.length,v>=o)return e;for(p=o=m[v],c=1;o>=10;o/=10)c++;r%=gt,l=r-gt+c}if(n!==void 0&&(o=bi(10,c-l-1),d=p/o%10|0,h=t<0||m[v+1]!==void 0||p%o,h=n<4?(d||h)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||h||n==6&&(r>0?l>0?p/bi(10,c-l):0:m[v-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return h?(o=$t(e),m.length=1,t=t-o-1,m[0]=bi(10,(gt-t%gt)%gt),e.e=jo(-t/gt)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=v,o=1,v--):(m.length=v+1,o=bi(10,gt-r),m[v]=l>0?(p/bi(10,c-l)%bi(10,l)|0)*o:0),h)for(;;)if(v==0){(m[0]+=o)==Vt&&(m[0]=1,++e.e);break}else{if(m[v]+=o,m[v]!=Vt)break;m[v--]=0,o=1}for(r=m.length;m[--r]===0;)m.pop();if(xt&&(e.e>Ff||e.e<-Ff))throw Error(A1+$t(e));return e}function Qk(e,t){var n,r,l,o,c,d,h,p,v,m,g=e.constructor,j=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),xt?dt(t,j):t;if(h=e.d,m=t.d,r=t.e,p=e.e,h=h.slice(),c=p-r,c){for(v=c<0,v?(n=h,c=-c,d=m.length):(n=m,r=p,d=h.length),l=Math.max(Math.ceil(j/gt),d)+2,c>l&&(c=l,n.length=1),n.reverse(),l=c;l--;)n.push(0);n.reverse()}else{for(l=h.length,d=m.length,v=l0;--l)h[d++]=0;for(l=m.length;l>c;){if(h[--l]0?o=o.charAt(0)+"."+o.slice(1)+La(r):c>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(l<0?"e":"e+")+l):l<0?(o="0."+La(-l-1)+o,n&&(r=n-c)>0&&(o+=La(r))):l>=c?(o+=La(l+1-c),n&&(r=n-l-1)>0&&(o=o+"."+La(r))):((r=l+1)0&&(l+1===c&&(o+="."),o+=La(r))),e.s<0?"-"+o:o}function VE(e,t){if(e.length>t)return e.length=t,!0}function Jk(e){var t,n,r;function l(o){var c=this;if(!(c instanceof l))return new l(o);if(c.constructor=l,o instanceof l){c.s=o.s,c.e=o.e,c.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Ni+o);if(o>0)c.s=1;else if(o<0)o=-o,c.s=-1;else{c.s=0,c.e=0,c.d=[0];return}if(o===~~o&&o<1e7){c.e=0,c.d=[o];return}return YE(c,o.toString())}else if(typeof o!="string")throw Error(Ni+o);if(o.charCodeAt(0)===45?(o=o.slice(1),c.s=-1):c.s=1,qI.test(o))YE(c,o);else throw Error(Ni+o)}if(l.prototype=be,l.ROUND_UP=0,l.ROUND_DOWN=1,l.ROUND_CEIL=2,l.ROUND_FLOOR=3,l.ROUND_HALF_UP=4,l.ROUND_HALF_DOWN=5,l.ROUND_HALF_EVEN=6,l.ROUND_HALF_CEIL=7,l.ROUND_HALF_FLOOR=8,l.clone=Jk,l.config=l.set=LI,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=l[t+1]&&r<=l[t+2])this[n]=r;else throw Error(Ni+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ni+n+": "+r);return this}var N1=Jk($I);$n=new N1(1);const ot=N1;function zI(e){return HI(e)||II(e)||UI(e)||BI()}function BI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K9(e,t){if(e){if(typeof e=="string")return ZN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZN(e,t)}}function ZN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(P,$){var U=$.word,ie=$.width,fe=P[P.length-1];if(fe&&(l==null||o||fe.width+ie+r$.width?P:$})};if(!v)return j;for(var _="…",x=function(D){var P=m.slice(0,D),$=pk({breakAll:p,style:h,children:P+_}).wordsWithComputedWidth,U=g($),ie=U.length>c||S(U).width>Number(l);return[ie,U]},O=0,w=m.length-1,E=0,M;O<=w&&E<=m.length-1;){var A=Math.floor((O+w)/2),C=A-1,k=x(C),L=XN(k,2),B=L[0],Z=L[1],G=x(A),H=XN(G,1),W=H[0];if(!B&&!W&&(O=A+1),B&&W&&(w=A-1),!B&&W){M=Z;break}E++}return M||j},WN=function(t){var n=Le(t)?[]:t.toString().split(hk);return[{words:n}]},Q9=function(t){var n=t.width,r=t.scaleToFit,l=t.children,o=t.style,c=t.breakAll,d=t.maxLines;if((n||r)&&!go.isSsr){var h,p,v=pk({breakAll:c,children:l,style:o});if(v){var m=v.wordsWithComputedWidth,g=v.spaceWidth;h=m,p=g}else return WN(l);return W9({breakAll:c,children:l,maxLines:d,style:o},h,p,n,r)}return WN(l)},QN="#808080",Ti=function(t){var n=t.x,r=n===void 0?0:n,l=t.y,o=l===void 0?0:l,c=t.lineHeight,d=c===void 0?"1em":c,h=t.capHeight,p=h===void 0?"0.71em":h,v=t.scaleToFit,m=v===void 0?!1:v,g=t.textAnchor,j=g===void 0?"start":g,S=t.verticalAnchor,_=S===void 0?"end":S,x=t.fill,O=x===void 0?QN:x,w=KN(t,G9),E=T.useMemo(function(){return Q9({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:m,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,m,w.style,w.width]),M=w.dx,A=w.dy,C=w.angle,k=w.className,L=w.breakAll,B=KN(w,Y9);if(!It(r)||!It(o))return null;var Z=r+(ve(M)?M:0),G=o+(ve(A)?A:0),H;switch(_){case"start":H=Gg("calc(".concat(p,")"));break;case"middle":H=Gg("calc(".concat((E.length-1)/2," * -").concat(d," + (").concat(p," / 2))"));break;default:H=Gg("calc(".concat(E.length-1," * -").concat(d,")"));break}var W=[];if(m){var Q=E[0].width,D=w.width;W.push("scale(".concat((ve(D)?D/Q:1)/Q,")"))}return C&&W.push("rotate(".concat(C,", ").concat(Z,", ").concat(G,")")),W.length&&(B.transform=W.join(" ")),Y.createElement("text",yx({},Ce(B,!0),{x:Z,y:G,className:qe("recharts-text",k),textAnchor:j,fill:O.includes("url")?QN:O}),E.map(function(P,$){var U=P.words.join(L?"":" ");return Y.createElement("tspan",{x:Z,dy:$===0?H:d,key:"".concat(U,"-").concat($)},U)}))};function Ua(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function J9(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function a1(e){let t,n,r;e.length!==2?(t=Ua,n=(d,h)=>Ua(e(d),h),r=(d,h)=>e(d)-h):(t=e===Ua||e===J9?e:eU,n=e,r=e);function l(d,h,p=0,v=d.length){if(p>>1;n(d[m],h)<0?p=m+1:v=m}while(p