vendor: 6,769 bytes, line 1
1import{r as R,R as E,d as e1,u as t1,b as Xa,j as S,L as ri}from"./vendor-query-BqeRHL1O.js";import{d as ne,u as r1,A as n1,e as i1,f as a1,g as o1,h as u1,i as s1,j as c1,k as l1}from"./index-Dzllbn4p.js";import{c as ni,g as he}from"./vendor-react-qkC6yhPU.js";import{P as ae}from"./vendor-stripe-DZa4OKmp.js";import"./vendor-radix-DqMENufp.js";var Ya,hd;function Re(){if(hd)return Ya;hd=1;var e=Array.isArray;return Ya=e,Ya}var Za,pd;function Gg(){if(pd)return Za;pd=1;var e=typeof ni=="object"&&ni&&ni.Object===Object&∋return Za=e,Za}var Ja,vd;function st(){if(vd)return Ja;vd=1;var e=Gg(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ja=r,Ja}var Qa,yd;function Kn(){if(yd)return Qa;yd=1;var e=st(),t=e.Symbol;return Qa=t,Qa}var eo,md;function f1(){if(md)return eo;md=1;var e=Kn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return eo=a,eo}var to,gd;function d1(){if(gd)return to;gd=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return to=r,to}var ro,bd;function gt(){if(bd)return ro;bd=1;var e=Kn(),t=f1(),r=d1(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return ro=o,ro}var no,xd;function bt(){if(xd)return no;xd=1;function e(t){return t!=null&&typeof t=="object"}return no=e,no}var io,wd;function Dr(){if(wd)return io;wd=1;var e=gt(),t=bt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return io=n,io}var ao,Od;function df(){if(Od)return ao;Od=1;var e=Re(),t=Dr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return ao=i,ao}var oo,_d;function Et(){if(_d)return oo;_d=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return oo=e,oo}var uo,Sd;function hf(){if(Sd)return uo;Sd=1;var e=gt(),t=Et(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return uo=o,uo}var so,Ad;function h1(){if(Ad)return so;Ad=1;var e=st(),t=e["__core-js_shared__"];return so=t,so}var co,Pd;function p1(){if(Pd)return co;Pd=1;var e=h1(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return co=r,co}var lo,jd;function Hg(){if(jd)return lo;jd=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return lo=r,lo}var fo,Td;function v1(){if(Td)return fo;Td=1;var e=hf(),t=p1(),r=Et(),n=Hg(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var p=e(d)?f:a;return p.test(n(d))}return fo=l,fo}var ho,Ed;function y1(){if(Ed)return ho;Ed=1;function e(t,r){return t?.[r]}return ho=e,ho}var po,Cd;function Qt(){if(Cd)return po;Cd=1;var e=v1(),t=y1();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return po=r,po}var vo,Md;function va(){if(Md)return vo;Md=1;var e=Qt(),t=e(Object,"create");return vo=t,vo}var yo,kd;function m1(){if(kd)return yo;kd=1;var e=va();function t(){this.__data__=e?e(null):{},this.size=0}return yo=t,yo}var mo,$d;function g1(){if($d)return mo;$d=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return mo=e,mo}var go,Id;function b1(){if(Id)return go;Id=1;var e=va(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return go=i,go}var bo,Nd;function x1(){if(Nd)return bo;Nd=1;var e=va(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return bo=n,bo}var xo,Rd;function w1(){if(Rd)return xo;Rd=1;var e=va(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return xo=r,xo}var wo,Dd;function O1(){if(Dd)return wo;Dd=1;var e=m1(),t=g1(),r=b1(),n=x1(),i=w1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,wo=a,wo}var Oo,qd;function _1(){if(qd)return Oo;qd=1;function e(){this.__data__=[],this.size=0}return Oo=e,Oo}var _o,Bd;function pf(){if(Bd)return _o;Bd=1;function e(t,r){return t===r||t!==t&&r!==r}return _o=e,_o}var So,Ld;function ya(){if(Ld)return So;Ld=1;var e=pf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return So=t,So}var Ao,Fd;function S1(){if(Fd)return Ao;Fd=1;var e=ya(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Ao=n,Ao}var Po,Ud;function A1(){if(Ud)return Po;Ud=1;var e=ya();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Po=t,Po}var jo,Wd;function P1(){if(Wd)return jo;Wd=1;var e=ya();function t(r){return e(this.__data__,r)>-1}return jo=t,jo}var To,zd;function j1(){if(zd)return To;zd=1;var e=ya();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return To=t,To}var Eo,Gd;function ma(){if(Gd)return Eo;Gd=1;var e=_1(),t=S1(),r=A1(),n=P1(),i=j1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Eo=a,Eo}var Co,Hd;function vf(){if(Hd)return Co;Hd=1;var e=Qt(),t=st(),r=e(t,"Map");return Co=r,Co}var Mo,Kd;function T1(){if(Kd)return Mo;Kd=1;var e=O1(),t=ma(),r=vf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Mo=n,Mo}var ko,Vd;function E1(){if(Vd)return ko;Vd=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return ko=e,ko}var $o,Xd;function ga(){if(Xd)return $o;Xd=1;var e=E1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return $o=t,$o}var Io,Yd;function C1(){if(Yd)return Io;Yd=1;var e=ga();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Io=t,Io}var No,Zd;
vendor: 17,282 bytes, line 1
1function M1(){if(Zd)return No;Zd=1;var e=ga();function t(r){return e(this,r).get(r)}return No=t,No}var Ro,Jd;function k1(){if(Jd)return Ro;Jd=1;var e=ga();function t(r){return e(this,r).has(r)}return Ro=t,Ro}var Do,Qd;function $1(){if(Qd)return Do;Qd=1;var e=ga();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Do=t,Do}var qo,eh;function yf(){if(eh)return qo;eh=1;var e=T1(),t=C1(),r=M1(),n=k1(),i=$1();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,qo=a,qo}var Bo,th;function Kg(){if(th)return Bo;th=1;var e=yf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Bo=r,Bo}var Lo,rh;function I1(){if(rh)return Lo;rh=1;var e=Kg(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Lo=r,Lo}var Fo,nh;function N1(){if(nh)return Fo;nh=1;var e=I1(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return Fo=n,Fo}var Uo,ih;function mf(){if(ih)return Uo;ih=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Uo=e,Uo}var Wo,ah;function R1(){if(ah)return Wo;ah=1;var e=Kn(),t=mf(),r=Re(),n=Dr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return Wo=o,Wo}var zo,oh;function Vg(){if(oh)return zo;oh=1;var e=R1();function t(r){return r==null?"":e(r)}return zo=t,zo}var Go,uh;function Xg(){if(uh)return Go;uh=1;var e=Re(),t=df(),r=N1(),n=Vg();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Go=i,Go}var Ho,sh;function ba(){if(sh)return Ho;sh=1;var e=Dr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Ho=t,Ho}var Ko,ch;function gf(){if(ch)return Ko;ch=1;var e=Xg(),t=ba();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Ko=r,Ko}var Vo,lh;function Yg(){if(lh)return Vo;lh=1;var e=gf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Vo=t,Vo}var D1=Yg();const Ke=he(D1);var Xo,fh;function q1(){if(fh)return Xo;fh=1;function e(t){return t==null}return Xo=e,Xo}var B1=q1();const te=he(B1);var Yo,dh;function L1(){if(dh)return Yo;dh=1;var e=gt(),t=Re(),r=bt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Yo=i,Yo}var F1=L1();const Xt=he(F1);var U1=hf();const Q=he(U1);var W1=Et();const qr=he(W1);var Zo={exports:{}},oe={};var hh;function z1(){if(hh)return oe;hh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(h){if(typeof h=="object"&&h!==null){var b=h.$$typeof;switch(b){case e:switch(h=h.type,h){case r:case i:case n:case c:case f:return h;default:switch(h=h&&h.$$typeof,h){case u:case o:case s:case d:case l:case a:return h;default:return b}}case t:return b}}}return oe.ContextConsumer=o,oe.ContextProvider=a,oe.Element=e,oe.ForwardRef=s,oe.Fragment=r,oe.Lazy=d,oe.Memo=l,oe.Portal=t,oe.Profiler=i,oe.StrictMode=n,oe.Suspense=c,oe.SuspenseList=f,oe.isAsyncMode=function(){return!1},oe.isConcurrentMode=function(){return!1},oe.isContextConsumer=function(h){return v(h)===o},oe.isContextProvider=function(h){return v(h)===a},oe.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},oe.isForwardRef=function(h){return v(h)===s},oe.isFragment=function(h){return v(h)===r},oe.isLazy=function(h){return v(h)===d},oe.isMemo=function(h){return v(h)===l},oe.isPortal=function(h){return v(h)===t},oe.isProfiler=function(h){return v(h)===i},oe.isStrictMode=function(h){return v(h)===n},oe.isSuspense=function(h){return v(h)===c},oe.isSuspenseList=function(h){return v(h)===f},oe.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===i||h===n||h===c||h===f||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===l||h.$$typeof===a||h.$$typeof===o||h.$$typeof===s||h.$$typeof===y||h.getModuleId!==void 0)},oe.typeOf=v,oe}var ph;function G1(){return ph||(ph=1,Zo.exports=z1()),Zo.exports}var H1=G1(),Jo,vh;function Zg(){if(vh)return Jo;vh=1;var e=gt(),t=bt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Jo=n,Jo}var Qo,yh;function K1(){if(yh)return Qo;yh=1;var e=Zg();function t(r){return e(r)&&r!=+r}return Qo=t,Qo}var V1=K1();const Br=he(V1);var X1=Zg();const Y1=he(X1);var Qe=function(t){return t===0?0:t>0?1:-1},Ft=function(t){return Xt(t)&&t.indexOf("%")===t.length-1},F=function(t){return Y1(t)&&!Br(t)},Z1=function(t){return te(t)},Se=function(t){return F(t)||Xt(t)},J1=0,Vn=function(t){var r=++J1;return"".concat(t||"").concat(r)},Yt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!F(t)&&!Xt(t))return n;var a;if(Ft(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Br(a)&&(a=n),i&&a>r&&(a=r),a},or=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Q1=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Ge=function(t,r){return F(t)&&F(r)?function(n){return t+n*(r-t)}:function(){return r}};function mi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ke(n,t))===r})}var ew=function(t,r){return F(t)&&F(r)?t-r:Xt(t)&&Xt(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function lr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Xc(e){"@babel/helpers - typeof";return Xc=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},Xc(e)}var tw=["viewBox","children"],rw=["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"],mh=["points","pathLength"],eu={svg:tw,polygon:mh,polyline:mh},bf=["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"],gi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(R.isValidElement(t)&&(n=t.props),!qr(n))return null;var i={};return Object.keys(n).forEach(function(a){bf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},nw=function(t,r,n){return function(i){return t(r,n,i),null}},bi=function(t,r,n){if(!qr(t)||Xc(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];bf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=nw(o,r,n))}),i},iw=["children"],aw=["children"];function gh(e,t){if(e==null)return{};var r=ow(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ow(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Yc(e){"@babel/helpers - typeof";return Yc=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},Yc(e)}var bh={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},dt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},xh=null,tu=null,xf=function e(t){if(t===xh&&Array.isArray(tu))return tu;var r=[];return R.Children.forEach(t,function(n){te(n)||(H1.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),tu=r,xh=t,r};function et(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return dt(i)}):n=[dt(t)],xf(e).forEach(function(i){var a=Ke(i,"type.displayName")||Ke(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Be(e,t){var r=et(e,t);return r&&r[0]}var wh=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!F(n)||n<=0||!F(i)||i<=0)},uw=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],sw=function(t){return t&&t.type&&Xt(t.type)&&uw.indexOf(t.type)>=0},cw=function(t){return t&&Yc(t)==="object"&&"clipDot"in t},lw=function(t,r,n,i){var a,o=(a=eu?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Q(t)&&(i&&o.includes(r)||rw.includes(r))||n&&bf.includes(r)},ee=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(R.isValidElement(t)&&(i=t.props),!qr(i))return null;var a={};
1return Object.keys(i).forEach(function(o){var u;lw((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Zc=function e(t,r){if(t===r)return!0;var n=R.Children.count(t);if(n!==R.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Oh(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Oh(a,o))return!1}return!0},Oh=function(t,r){if(te(t)&&te(r))return!0;if(!te(t)&&!te(r)){var n=t.props||{},i=n.children,a=gh(n,iw),o=r.props||{},u=o.children,s=gh(o,aw);return i&&u?lr(a,s)&&Zc(i,u):!i&&!u?lr(a,s):!1}return!1},_h=function(t,r){var n=[],i={};return xf(t).forEach(function(a,o){if(sw(a))n.push(a);else if(a){var u=dt(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},fw=function(t){var r=t&&t.type;return r&&bh[r]?bh[r]:null},dw=function(t,r){return xf(r).indexOf(t)},hw=["children","width","height","viewBox","className","style","title","desc"];function Jc(){return Jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jc.apply(this,arguments)}function pw(e,t){if(e==null)return{};var r=vw(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qc(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=pw(e,hw),f=i||{width:r,height:n,x:0,y:0},l=ne("recharts-surface",a);return E.createElement("svg",Jc({},ee(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),E.createElement("title",null,u),E.createElement("desc",null,s),t)}var yw=["children","className"];function el(){return el=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},el.apply(this,arguments)}function mw(e,t){if(e==null)return{};var r=gw(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var pe=E.forwardRef(function(e,t){var r=e.children,n=e.className,i=mw(e,yw),a=ne("recharts-layer",n);return E.createElement("g",el({className:a},ee(i,!0),{ref:t}),r)}),Ht=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},ru,Sh;function bw(){if(Sh)return ru;Sh=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return ru=e,ru}var nu,Ah;function xw(){if(Ah)return nu;Ah=1;var e=bw();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return nu=t,nu}var iu,Ph;function Jg(){if(Ph)return iu;Ph=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return iu=s,iu}var au,jh;function ww(){if(jh)return au;jh=1;function e(t){return t.split("")}return au=e,au}var ou,Th;function Ow(){if(Th)return ou;Th=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=c+"?",v="["+a+"]?",h="(?:"+p+"(?:"+[f,l,d].join("|")+")"+v+y+")*",b=v+y+h,x="(?:"+[f+u+"?",u,l,d,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+b,"g");function O(g){return g.match(w)||[]}return ou=O,ou}var uu,Eh;function _w(){if(Eh)return uu;Eh=1;var e=ww(),t=Jg(),r=Ow();function n(i){return t(i)?r(i):e(i)}return uu=n,uu}var su,Ch;function Sw(){if(Ch)return su;Ch=1;var e=xw(),t=Jg(),r=_w(),n=Vg();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return su=i,su}var cu,Mh;function Aw(){if(Mh)return cu;Mh=1;var e=Sw(),t=e("toUpperCase");return cu=t,cu}var Pw=Aw();const xa=he(Pw);function ce(e){return function(){return e}}const Qg=Math.cos,xi=Math.sin,tt=Math.sqrt,wi=Math.PI,wa=2*wi,tl=Math.PI,rl=2*tl,Bt=1e-6,jw=rl-Bt;function eb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Tw(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return eb;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Ew{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?eb:Tw(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n}
1,${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Bt)if(!(Math.abs(l*s-c*f)>Bt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=s*s+c*c,h=p*p+y*y,b=Math.sqrt(v),x=Math.sqrt(d),w=a*Math.tan((tl-Math.acos((v+d-h)/(2*b*x)))/2),O=w/x,g=w/b;Math.abs(O-1)>Bt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*p>f*y)},${this._x1=t+g*s},${this._y1=r+g*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Bt||Math.abs(this._y1-f)>Bt)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%rl+rl),d>jw?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:d>Bt&&this._append`A${n},${n},0,${+(d>=tl)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function wf(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Ew(t)}function Of(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function tb(e){this._context=e}tb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Oa(e){return new tb(e)}function rb(e){return e[0]}function nb(e){return e[1]}function ib(e,t){var r=ce(!0),n=null,i=Oa,a=null,o=wf(u);e=typeof e=="function"?e:e===void 0?rb:ce(e),t=typeof t=="function"?t:t===void 0?nb:ce(t);function u(s){var c,f=(s=Of(s)).length,l,d=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,c,s),+t(l,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:ce(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:ce(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:ce(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function ii(e,t,r){var n=null,i=ce(!0),a=null,o=Oa,u=null,s=wf(c);e=typeof e=="function"?e:e===void 0?rb:ce(+e),t=typeof t=="function"?t:ce(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?nb:ce(+r);function c(l){var d,p,y,v=(l=Of(l)).length,h,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),d=0;d<=v;++d){if(!(d<v&&i(h=l[d],d,l))===b)if(b=!b)p=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=d-1;y>=p;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[d]=+e(h,d,l),O[d]=+t(h,d,l),u.point(n?+n(h,d,l):w[d],r?+r(h,d,l):O[d]))}if(x)return u=null,x+""||null}function f(){return ib().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:ce(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:ce(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:ce(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:ce(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:ce(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ce(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:ce(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class ab{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Cw(e){return new ab(e,!0)}function Mw(e){return new ab(e,!1)}const _f={draw(e,t){const r=tt(t/wi);e.moveTo(r,0),e.arc(0,0,r,0,wa)}},kw={draw(e,t){const r=tt(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()}},ob=tt(1/3),$w=ob*2,Iw={draw(e,t){const r=tt(t/$w),n=r*ob;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Nw={draw(e,t){const r=tt(t),n=-r/2;e.rect(n,n,r,r)}},Rw=.8908130915292852,ub=xi(wi/10)/xi(7*wi/10),Dw=xi(wa/10)*ub,qw=-Qg(wa/10)*ub,Bw={draw(e,t){const r=tt(t*Rw),n=Dw*r,i=qw*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=wa*a/5,u=Qg(o),s=xi(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},lu=tt(3),Lw={draw(e,t){const r=-tt(t/(lu*3));e.moveTo(0,r*2),e.lineTo(-lu*r,-r),e.lineTo(lu*r,-r),e.closePath()}},Ue=-.5,We=tt(3)/2,nl=1/tt(12),Fw=(nl/2+1)*3,Uw={draw(e,t){const r=tt(t/Fw),n=r/2,i=r*nl,a=n,o=r*nl+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ue*n-We*i,We*n+Ue*i),e.lineTo(Ue*a-We*o,We*a+Ue*o),e.lineTo(Ue*u-We*s,We*u+Ue*s),e.lineTo(Ue*n+We*i,Ue*i-We*n),e.lineTo(Ue*a+We*o,Ue*o-We*a),e.lineTo(Ue*u+We*s,Ue*s-We*u),e.closePath()}};function Ww(e,t){let r=null,n=wf(i);e=typeof e=="function"?e:ce(e||_f),t=typeof t=="function"?t:ce(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ce(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ce(+a),i):t}
vendor: 6,361 bytes, line 1
1,i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Oi(){}function _i(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function sb(e){this._context=e}sb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:_i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:_i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zw(e){return new sb(e)}function cb(e){this._context=e}cb.prototype={areaStart:Oi,areaEnd:Oi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:_i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gw(e){return new cb(e)}function lb(e){this._context=e}lb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:_i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hw(e){return new lb(e)}function fb(e){this._context=e}fb.prototype={areaStart:Oi,areaEnd:Oi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Kw(e){return new fb(e)}function kh(e){return e<0?-1:1}function $h(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(kh(a)+kh(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Ih(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function fu(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Si(e){this._context=e}Si.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:fu(this,this._t0,Ih(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,fu(this,Ih(this,r=$h(this,e,t)),r);break;default:fu(this,this._t0,r=$h(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function db(e){this._context=new hb(e)}(db.prototype=Object.create(Si.prototype)).point=function(e,t){Si.prototype.point.call(this,t,e)};function hb(e){this._context=e}hb.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Vw(e){return new Si(e)}function Xw(e){return new db(e)}function pb(e){this._context=e}pb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Nh(e),i=Nh(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Nh(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Yw(e){return new pb(e)}function _a(e,t){this._context=e,this._t=t}_a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 17,059 bytes, lines 1-4
1default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Zw(e){return new _a(e,.5)}function Jw(e){return new _a(e,0)}function Qw(e){return new _a(e,1)}function pr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function il(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function eO(e,t){return e[t]}function tO(e){const t=[];return t.key=e,t}function rO(){var e=ce([]),t=il,r=pr,n=eO;function i(a){var o=Array.from(e.apply(this,arguments),tO),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=Of(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ce(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ce(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?il:typeof a=="function"?a:ce(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??pr,i):r},i}function nO(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}pr(e,t)}}function iO(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}pr(e,t)}}function aO(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,d=f[n-1][1]||0,p=(l-d)/2,y=0;y<u;++y){var v=e[t[y]],h=v[n][1]||0,b=v[n-1][1]||0;p+=h-b}s+=l,c+=p*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,pr(e,t)}}function fn(e){"@babel/helpers - typeof";return fn=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},fn(e)}var oO=["type","size","sizeType"];function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},al.apply(this,arguments)}function Rh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rh(Object(r),!0).forEach(function(n){uO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uO(e,t,r){return t=sO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sO(e){var t=cO(e,"string");return fn(t)=="symbol"?t:t+""}function cO(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lO(e,t){if(e==null)return{};var r=fO(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fO(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var vb={symbolCircle:_f,symbolCross:kw,symbolDiamond:Iw,symbolSquare:Nw,symbolStar:Bw,symbolTriangle:Lw,symbolWye:Uw},dO=Math.PI/180,hO=function(t){var r="symbol".concat(xa(t));return vb[r]||_f},pO=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*dO;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},vO=function(t,r){vb["symbol".concat(xa(t))]=r},Sf=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=lO(t,oO),c=Dh(Dh({},s),{},{type:n,size:a,sizeType:u}),f=function(){var h=hO(n),b=Ww().type(h).size(pO(a,u,n));return b()},l=c.className,d=c.cx,p=c.cy,y=ee(c,!0);return d===+d&&p===+p&&a===+a?E.createElement("path",al({},y,{className:ne("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};Sf.registerSymbol=vO;function vr(e){"@babel/helpers - typeof";return vr=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},vr(e)}function ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ol.apply(this,arguments)}function qh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qh(Object(r),!0).forEach(function(n){dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mb(n.key),n)}}function bO(e,t,r){return t&&gO(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xO(e,t,r){return t=Ai(t),wO(e,yb()?Reflect.construct(t,r||[],Ai(e).constructor):t.apply(e,r))}function wO(e,t){if(t&&(vr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OO(e)}function OO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yb=function(){return!!e})()}function Ai(e){return Ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ai(e)}function _O(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ul(e,t)}function ul(e,t){return ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ul(e,t)}function dn(e,t,r){return t=mb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mb(e){var t=SO(e,"string");return vr(t)=="symbol"?t:t+""}function SO(e,t){if(vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ze=32,Af=(function(e){function t(){return mO(this,t),xO(this,t,arguments)}return _O(t,e),bO(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=ze/2,o=ze/6,u=ze/3,s=n.inactive?i:n.color;if(n.type==="plainline")return E.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:ze,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return E.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,` 2 A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,` 3 H`).concat(ze,"M").concat(2*u,",").concat(a,` 4 A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return E.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(ze/8,"h").concat(ze,"v").concat(ze*3/4,"h").concat(-ze,"z"),className:"recharts-legend-icon"});if(E.isValidElement(n.legendIcon)){var c=yO({},n);return delete c.legendIcon,E.cloneElement(n.legendIcon,c)}return E.createElement(Sf,{fill:s,cx:a,cy:a,size:ze,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:ze,height:ze},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var v=p.formatter||s,h=ne(dn(dn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=Q(p.value)?null:p.value;Ht(!Q(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?c:p.color;return E.createElement("li",ol({className:h,style:l,key:"legend-item-".concat(y)},bi(n.props,p,y)),E.createElement(Qc,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,p,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return E.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(R.PureComponent);dn(Af,"displayName","Legend");dn(Af,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var du,Bh;function AO(){if(Bh)return du;Bh=1;var e=ma();function t(){this.__data__=new e,this.size=0}return du=t,du}var hu,Lh;function PO(){if(Lh)return hu;Lh=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return hu=e,hu}var pu,Fh;function jO(){if(Fh)return pu;Fh=1;function e(t){return this.__data__.get(t)}return pu=e,pu}var vu,Uh;function TO(){if(Uh)return vu;Uh=1;function e(t){return this.__data__.has(t)}return vu=e,vu}var yu,Wh;function EO(){if(Wh)return yu;Wh=1;var e=ma(),t=vf(),r=yf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return yu=i,yu}var mu,zh;function gb(){if(zh)return mu;zh=1;var e=ma(),t=AO(),r=PO(),n=jO(),i=TO(),a=EO();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,mu=o,mu}var gu,Gh;function CO(){if(Gh)return gu;Gh=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return gu=t,gu}var bu,Hh;function MO(){if(Hh)return bu;Hh=1;function e(t){return this.__data__.has(t)}return bu=e,bu}var xu,Kh;function bb(){if(Kh)return xu;Kh=1;var e=yf(),t=CO(),r=MO();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,xu=n,xu}var wu,Vh;function xb(){if(Vh)return wu;Vh=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return wu=e,wu}var Ou,Xh;function wb(){if(Xh)return Ou;Xh=1;function e(t,r){return t.has(r)}return Ou=e,Ou}var _u,Yh;function Ob(){if(Yh)return _u;Yh=1;var e=bb(),t=xb(),r=wb(),n=1,i=2;function a(o,u,s,c,f,l){var d=s&n,p=o.length,y=u.length;if(p!=y&&!(d&&y>p))return!1;var v=l.get(o),h=l.get(u);if(v&&h)return v==u&&h==o;var b=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++b<p;){var O=o[b],g=u[b];if(c)var m=d?c(g,O,b,u,o,l):c(O,g,b,o,u,l);if(m!==void 0){if(m)continue;x=!1;break}if(w){if(!t(u,function(_,P){if(!r(w,P)&&(O===_||f(O,_,s,c,l)))return w.push(P)})){x=!1;break}}else if(!(O===g||f(O,g,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return _u=a,_u}var Su,Zh;function kO(){if(Zh)return Su;Zh=1;var e=st(),t=e.Uint8Array;return Su=t,Su}var Au,Jh;function $O(){if(Jh)return Au;Jh=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Au=e,Au}var Pu,Qh;function Pf(){if(Qh)return Pu;Qh=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Pu=e,Pu}var ju,ep;function IO(){if(ep)return ju;ep=1;var e=Kn(),t=kO(),r=pf(),n=Ob(),i=$O(),a=Pf(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",d="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",h="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function g(m,_,P,A,M,T,j){switch(P){case x:if(m.byteLength!=_.byteLength||m.byteOffset!=_.byteOffset)return!1;m=m.buffer,_=_.buffer;case b:return!(m.byteLength!=_.byteLength||!T(new t(m),new t(_)));case s:case c:case d:return r(+m,+_);case f:return m.name==_.name&&m.message==_.message;case p:case v:return m==_+"";case l:var C=i;case y:var k=A&o;if(C||(C=a),m.size!=_.size&&!k)return!1;var $=j.get(m);if($)return $==_;A|=u,j.set(m,_);var N=n(C(m),C(_),A,M,T,j);return j.delete(m),N;case h:if(O)return O.call(m)==O.call(_)}return!1}return ju=g,ju}var Tu,tp;function _b(){if(tp)return Tu;tp=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Tu=e,Tu}var Eu,rp;function NO(){if(rp)return Eu;rp=1;var e=_b(),t=Re();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Eu=r,Eu}var Cu,np;function RO(){if(np)return Cu;np=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return Cu=e,Cu}var Mu,ip;function DO(){if(ip)return Mu;ip=1;function e(){return[]}return Mu=e,Mu}var ku,ap;function qO(){if(ap)return ku;ap=1;var e=RO(),t=DO(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return ku=a,ku}var $u,op;function BO(){if(op)return $u;op=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return $u=e,$u}var Iu,up;function LO(){if(up)return Iu;up=1;var e=gt(),t=bt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Iu=n,Iu}var Nu,sp;function jf(){if(sp)return Nu;sp=1;var e=LO(),t=bt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Nu=a,Nu}var rn={exports:{}},Ru,cp;function FO(){if(cp)return Ru;cp=1;function e(){return!1}return Ru=e,Ru}rn.exports;var lp;function Sb(){return lp||(lp=1,(function(e,t){var r=st(),n=FO(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(rn,rn.exports)),rn.exports}var Du,fp;function Tf(){if(fp)return Du;fp=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Du=r,Du}var qu,dp;function Ef(){if(dp)return qu;dp=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return qu=t,qu}var Bu,hp;function UO(){if(hp)return Bu;hp=1;var e=gt(),t=Ef(),r=bt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",d="[object RegExp]",p="[object Set]",y="[object String]",v="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",g="[object Int16Array]",m="[object Int32Array]",_="[object Uint8Array]",P="[object Uint8ClampedArray]",A="[object Uint16Array]",M="[object Uint32Array]",T={};T[x]=T[w]=T[O]=T[g]=T[m]=T[_]=T[P]=T[A]=T[M]=!0,T[n]=T[i]=T[h]=T[a]=T[b]=T[o]=T[u]=T[s]=T[c]=T[f]=T[l]=T[d]=T[p]=T[y]=T[v]=!1;function j(C){return r(C)&&t(C.length)&&!!T[e(C)]}return Bu=j,Bu}var Lu,pp;function Ab(){if(pp)return Lu;pp=1;function e(t){return function(r){return t(r)}}return Lu=e,Lu}var nn={exports:{}};nn.exports;var vp;function WO(){return vp||(vp=1,(function(e,t){var r=Gg(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u}
vendor: 3,701 bytes, line 4
4)(nn,nn.exports)),nn.exports}var Fu,yp;function Pb(){if(yp)return Fu;yp=1;var e=UO(),t=Ab(),r=WO(),n=r&&r.isTypedArray,i=n?t(n):e;return Fu=i,Fu}var Uu,mp;function zO(){if(mp)return Uu;mp=1;var e=BO(),t=jf(),r=Re(),n=Sb(),i=Tf(),a=Pb(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),d=!l&&t(c),p=!l&&!d&&n(c),y=!l&&!d&&!p&&a(c),v=l||d||p||y,h=v?e(c.length,String):[],b=h.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||p&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&h.push(x);return h}return Uu=s,Uu}var Wu,gp;function GO(){if(gp)return Wu;gp=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Wu=t,Wu}var zu,bp;function jb(){if(bp)return zu;bp=1;function e(t,r){return function(n){return t(r(n))}}return zu=e,zu}var Gu,xp;function HO(){if(xp)return Gu;xp=1;var e=jb(),t=e(Object.keys,Object);return Gu=t,Gu}var Hu,wp;function KO(){if(wp)return Hu;wp=1;var e=GO(),t=HO(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Hu=i,Hu}var Ku,Op;function Xn(){if(Op)return Ku;Op=1;var e=hf(),t=Ef();function r(n){return n!=null&&t(n.length)&&!e(n)}return Ku=r,Ku}var Vu,_p;function Sa(){if(_p)return Vu;_p=1;var e=zO(),t=KO(),r=Xn();function n(i){return r(i)?e(i):t(i)}return Vu=n,Vu}var Xu,Sp;function VO(){if(Sp)return Xu;Sp=1;var e=NO(),t=qO(),r=Sa();function n(i){return e(i,r,t)}return Xu=n,Xu}var Yu,Ap;function XO(){if(Ap)return Yu;Ap=1;var e=VO(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,d=e(a),p=d.length,y=e(o),v=y.length;if(p!=v&&!l)return!1;for(var h=p;h--;){var b=d[h];if(!(l?b in o:n.call(o,b)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var g=l;++h<p;){b=d[h];var m=a[b],_=o[b];if(s)var P=l?s(_,m,b,o,a,f):s(m,_,b,a,o,f);if(!(P===void 0?m===_||c(m,_,u,s,f):P)){O=!1;break}g||(g=b=="constructor")}if(O&&!g){var A=a.constructor,M=o.constructor;A!=M&&"constructor"in a&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof M=="function"&&M instanceof M)&&(O=!1)}return f.delete(a),f.delete(o),O}return Yu=i,Yu}var Zu,Pp;function YO(){if(Pp)return Zu;Pp=1;var e=Qt(),t=st(),r=e(t,"DataView");return Zu=r,Zu}var Ju,jp;function ZO(){if(jp)return Ju;jp=1;var e=Qt(),t=st(),r=e(t,"Promise");return Ju=r,Ju}var Qu,Tp;function Tb(){if(Tp)return Qu;Tp=1;var e=Qt(),t=st(),r=e(t,"Set");return Qu=r,Qu}var es,Ep;function JO(){if(Ep)return es;Ep=1;var e=Qt(),t=st(),r=e(t,"WeakMap");return es=r,es}var ts,Cp;function QO(){if(Cp)return ts;Cp=1;var e=YO(),t=vf(),r=ZO(),n=Tb(),i=JO(),a=gt(),o=Hg(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",d="[object DataView]",p=o(e),y=o(t),v=o(r),h=o(n),b=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=d||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),g=O==s?w.constructor:void 0,m=g?o(g):"";if(m)switch(m){case p:return d;case y:return u;case v:return c;case h:return f;case b:return l}return O}),ts=x,ts}var rs,Mp;function e_(){if(Mp)return rs;Mp=1;var e=gb(),t=Ob(),r=IO(),n=XO(),i=QO(),a=Re(),o=Sb(),u=Pb(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",d=Object.prototype,p=d.hasOwnProperty;function y(v,h,b,x,w,O){var g=a(v),m=a(h),_=g?f:i(v),P=m?f:i(h);_=_==c?l:_,P=P==c?l:P;var A=_==l,M=P==l,T=_==P;if(T&&o(v)){if(!o(h))return!1;g=!0,A=!1}if(T&&!A)return O||(O=new e),g||u(v)?t(v,h,b,x,w,O):r(v,h,_,b,x,w,O);if(!(b&s)){var j=A&&p.call(v,"__wrapped__"),C=M&&p.call(h,"__wrapped__");
vendor: 43,963 bytes, lines 4-11
4if(j||C){var k=j?v.value():v,$=C?h.value():h;return O||(O=new e),w(k,$,b,x,O)}}return T?(O||(O=new e),n(v,h,b,x,w,O)):!1}return rs=y,rs}var ns,kp;function Cf(){if(kp)return ns;kp=1;var e=e_(),t=bt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return ns=r,ns}var is,$p;function t_(){if($p)return is;$p=1;var e=gb(),t=Cf(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var d=u[c];if(l&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<f;){d=u[c];var p=d[0],y=a[p],v=d[1];if(l&&d[2]){if(y===void 0&&!(p in a))return!1}else{var h=new e;if(s)var b=s(y,v,p,a,o,h);if(!(b===void 0?t(v,y,r|n,s,h):b))return!1}}return!0}return is=i,is}var as,Ip;function Eb(){if(Ip)return as;Ip=1;var e=Et();function t(r){return r===r&&!e(r)}return as=t,as}var os,Np;function r_(){if(Np)return os;Np=1;var e=Eb(),t=Sa();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return os=r,os}var us,Rp;function Cb(){if(Rp)return us;Rp=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return us=e,us}var ss,Dp;function n_(){if(Dp)return ss;Dp=1;var e=t_(),t=r_(),r=Cb();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return ss=n,ss}var cs,qp;function i_(){if(qp)return cs;qp=1;function e(t,r){return t!=null&&r in Object(t)}return cs=e,cs}var ls,Bp;function a_(){if(Bp)return ls;Bp=1;var e=Xg(),t=jf(),r=Re(),n=Tf(),i=Ef(),a=ba();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,d=!1;++f<l;){var p=a(s[f]);if(!(d=u!=null&&c(u,p)))break;u=u[p]}return d||++f!=l?d:(l=u==null?0:u.length,!!l&&i(l)&&n(p,l)&&(r(u)||t(u)))}return ls=o,ls}var fs,Lp;function o_(){if(Lp)return fs;Lp=1;var e=i_(),t=a_();function r(n,i){return n!=null&&t(n,i,e)}return fs=r,fs}var ds,Fp;function u_(){if(Fp)return ds;Fp=1;var e=Cf(),t=Yg(),r=o_(),n=df(),i=Eb(),a=Cb(),o=ba(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(d){var p=t(d,f);return p===void 0&&p===l?r(d,f):e(l,p,u|s)}}return ds=c,ds}var hs,Up;function Lr(){if(Up)return hs;Up=1;function e(t){return t}return hs=e,hs}var ps,Wp;function s_(){if(Wp)return ps;Wp=1;function e(t){return function(r){return r?.[t]}}return ps=e,ps}var vs,zp;function c_(){if(zp)return vs;zp=1;var e=gf();function t(r){return function(n){return e(n,r)}}return vs=t,vs}var ys,Gp;function l_(){if(Gp)return ys;Gp=1;var e=s_(),t=c_(),r=df(),n=ba();function i(a){return r(a)?e(n(a)):t(a)}return ys=i,ys}var ms,Hp;function Ct(){if(Hp)return ms;Hp=1;var e=n_(),t=u_(),r=Lr(),n=Re(),i=l_();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return ms=a,ms}var gs,Kp;function Mb(){if(Kp)return gs;Kp=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return gs=e,gs}var bs,Vp;function f_(){if(Vp)return bs;Vp=1;function e(t){return t!==t}return bs=e,bs}var xs,Xp;function d_(){if(Xp)return xs;Xp=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return xs=e,xs}var ws,Yp;function h_(){if(Yp)return ws;Yp=1;var e=Mb(),t=f_(),r=d_();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return ws=n,ws}var Os,Zp;function p_(){if(Zp)return Os;Zp=1;var e=h_();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Os=t,Os}var _s,Jp;function v_(){if(Jp)return _s;Jp=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return _s=e,_s}var Ss,Qp;function y_(){if(Qp)return Ss;Qp=1;function e(){}return Ss=e,Ss}var As,ev;function m_(){if(ev)return As;ev=1;var e=Tb(),t=y_(),r=Pf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return As=i,As}var Ps,tv;function g_(){if(tv)return Ps;tv=1;var e=bb(),t=p_(),r=v_(),n=wb(),i=m_(),a=Pf(),o=200;function u(s,c,f){var l=-1,d=t,p=s.length,y=!0,v=[],h=v;if(f)y=!1,d=r;else if(p>=o){var b=c?null:i(s);if(b)return a(b);y=!1,d=n,h=new e}else h=c?[]:v;e:for(;++l<p;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=h.length;O--;)if(h[O]===w)continue e;c&&h.push(w),v.push(x)}else d(h,w,f)||(h!==v&&h.push(w),v.push(x))}return v}return Ps=u,Ps}var js,rv;function b_(){if(rv)return js;rv=1;var e=Ct(),t=g_();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return js=r,js}var x_=b_();const nv=he(x_);function kb(e,t,r){return t===!0?nv(e,r):Q(t)?nv(e,t):e}function yr(e){"@babel/helpers - typeof";return yr=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},yr(e)}var w_=["ref"];function iv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iv(Object(r),!0).forEach(function(n){Aa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function av(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ib(n.key),n)}}function __(e,t,r){return t&&av(e.prototype,t),r&&av(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function S_(e,t,r){return t=Pi(t),A_(e,$b()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}function A_(e,t){if(t&&(yr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P_(e)}function P_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($b=function(){return!!e})()}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pi(e)}function j_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sl(e,t)}function sl(e,t){return sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sl(e,t)}function Aa(e,t,r){return t=Ib(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ib(e){var t=T_(e,"string");return yr(t)=="symbol"?t:t+""}function T_(e,t){if(yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function E_(e,t){if(e==null)return{};var r=C_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function C_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function M_(e){return e.value}function k_(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var r=E_(t,w_);return E.createElement(Af,r)}var ov=1,fr=(function(e){function t(){var r;O_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=S_(this,t,[].concat(i)),Aa(r,"lastBoundingBox",{width:-1,height:-1}),r}return j_(t,e),__(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>ov||Math.abs(i.height-this.lastBoundingBox.height)>ov)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ct({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,f=i.chartHeight,l,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();l={left:((c||0)-p.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return ct(ct({},l),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=ct(ct({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return E.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},k_(a,ct(ct({},this.props),{},{payload:kb(f,c,M_)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ct(ct({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&F(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(R.PureComponent);Aa(fr,"displayName","Legend");Aa(fr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ts,uv;function $_(){if(uv)return Ts;uv=1;var e=Kn(),t=jf(),r=Re(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Ts=i,Ts}var Es,sv;function Nb(){if(sv)return Es;sv=1;var e=_b(),t=$_();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Es=r,Es}var Cs,cv;function I_(){if(cv)return Cs;cv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return Cs=e,Cs}var Ms,lv;function N_(){if(lv)return Ms;lv=1;var e=I_(),t=e();return Ms=t,Ms}var ks,fv;function Rb(){if(fv)return ks;fv=1;var e=N_(),t=Sa();function r(n,i){return n&&e(n,i,t)}return ks=r,ks}var $s,dv;function R_(){if(dv)return $s;dv=1;var e=Xn();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return $s=t,$s}var Is,hv;function Mf(){if(hv)return Is;hv=1;var e=Rb(),t=R_(),r=t(e);return Is=r,Is}var Ns,pv;function Db(){if(pv)return Ns;pv=1;var e=Mf(),t=Xn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return Ns=r,Ns}var Rs,vv;function D_(){if(vv)return Rs;vv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Rs=e,Rs}var Ds,yv;function q_(){if(yv)return Ds;yv=1;var e=Dr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return Ds=t,Ds}var qs,mv;function B_(){if(mv)return qs;mv=1;var e=q_();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return qs=t,qs}var Bs,gv;function L_(){if(gv)return Bs;gv=1;var e=mf(),t=gf(),r=Ct(),n=Db(),i=D_(),a=Ab(),o=B_(),u=Lr(),s=Re();function c(f,l,d){l.length?l=e(l,function(v){return s(v)?function(h){return t(h,v.length===1?v[0]:v)}:v}):l=[u];var p=-1;l=e(l,a(r));var y=n(f,function(v,h,b){var x=e(l,function(w){return w(v)});return{criteria:x,index:++p,value:v}});return i(y,function(v,h){return o(v,h,d)})}return Bs=c,Bs}var Ls,bv;function F_(){if(bv)return Ls;bv=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Ls=e,Ls}var Fs,xv;function U_(){if(xv)return Fs;xv=1;var e=F_(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return Fs=r,Fs}var Us,wv;function W_(){if(wv)return Us;wv=1;function e(t){return function(){return t}}return Us=e,Us}var Ws,Ov;function qb(){if(Ov)return Ws;Ov=1;var e=Qt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Ws=t,Ws}var zs,_v;function z_(){if(_v)return zs;_v=1;var e=W_(),t=qb(),r=Lr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return zs=n,zs}var Gs,Sv;function G_(){if(Sv)return Gs;Sv=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Gs=n,Gs}var Hs,Av;function H_(){if(Av)return Hs;Av=1;var e=z_(),t=G_(),r=t(e);return Hs=r,Hs}var Ks,Pv;function K_(){if(Pv)return Ks;Pv=1;var e=Lr(),t=U_(),r=H_();function n(i,a){return r(t(i,a,e),i+"")}return Ks=n,Ks}var Vs,jv;function Pa(){if(jv)return Vs;jv=1;var e=pf(),t=Xn(),r=Tf(),n=Et();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Vs=i,Vs}var Xs,Tv;function V_(){if(Tv)return Xs;Tv=1;var e=Nb(),t=L_(),r=K_(),n=Pa(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Xs=i,Xs}var X_=V_();const kf=he(X_);function hn(e){"@babel/helpers - typeof";return hn=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},hn(e)}function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cl.apply(this,arguments)}function Y_(e,t){return eS(e)||Q_(e,t)||J_(e,t)||Z_()}function Z_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J_(e,t){if(e){if(typeof e=="string")return Ev(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ev(e,t)}}function Ev(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Q_(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function eS(e){if(Array.isArray(e))return e}function Cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ys(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cv(Object(r),!0).forEach(function(n){tS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tS(e,t,r){return t=rS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rS(e){var t=nS(e,"string");return hn(t)=="symbol"?t:t+""}function nS(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iS(e){return Array.isArray(e)&&Se(e[0])&&Se(e[1])?e.join(" ~ "):e}var aS=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,d=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,h=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var j={padding:0,margin:0},C=(d?kf(f,d):f).map(function(k,$){if(k.type==="none")return null;var N=Ys({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},u),D=k.formatter||l||iS,L=k.value,W=k.name,B=L,H=W;if(D&&B!=null&&H!=null){var U=D(L,W,k,$,f);if(Array.isArray(U)){var X=Y_(U,2);B=X[0],H=X[1]}else B=U}return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:N},Se(H)?E.createElement("span",{className:"recharts-tooltip-item-name"},H):null,Se(H)?E.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,E.createElement("span",{className:"recharts-tooltip-item-value"},B),E.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:j},C)}return null},O=Ys({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=Ys({margin:0},c),m=!te(v),_=m?v:"",P=ne("recharts-default-tooltip",p),A=ne("recharts-tooltip-label",y);m&&h&&f!==void 0&&f!==null&&(_=h(v,f));var M=x?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",cl({className:P,style:O},M),E.createElement("p",{className:A,style:g},E.isValidElement(_)?_:"".concat(_)),w())};function pn(e){"@babel/helpers - typeof";return pn=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},pn(e)}function ai(e,t,r){return t=oS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oS(e){var t=uS(e,"string");return pn(t)=="symbol"?t:t+""}function uS(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hr="recharts-tooltip-wrapper",sS={visibility:"hidden"};function cS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ne(Hr,ai(ai(ai(ai({},"".concat(Hr,"-right"),F(r)&&t&&F(t.x)&&r>=t.x),"".concat(Hr,"-left"),F(r)&&t&&F(t.x)&&r<t.x),"".concat(Hr,"-bottom"),F(n)&&t&&F(t.y)&&n>=t.y),"".concat(Hr,"-top"),F(n)&&t&&F(t.y)&&n<t.y))}function Mv(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&F(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var d=f,p=s[n];return d<p?Math.max(l,s[n]):Math.max(f,s[n])}var y=l+u,v=s[n]+c;return y>v?Math.max(f,s[n]):Math.max(l,s[n])}function lS(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function fS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=Mv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=Mv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=lS({translateX:f,translateY:l,useTranslate3d:u})):c=sS,{cssProperties:c,cssClasses:cS({translateX:f,translateY:l,coordinate:r})}}function mr(e){"@babel/helpers - typeof";return mr=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},mr(e)}function kv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $v(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kv(Object(r),!0).forEach(function(n){fl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lb(n.key),n)}}function pS(e,t,r){return t&&hS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vS(e,t,r){return t=ji(t),yS(e,Bb()?Reflect.construct(t,r||[],ji(e).constructor):t.apply(e,r))}function yS(e,t){if(t&&(mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mS(e)}function mS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bb=function(){return!!e})()}function ji(e){return ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ji(e)}function gS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ll(e,t)}function ll(e,t){return ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ll(e,t)}function fl(e,t,r){return t=Lb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lb(e){var t=bS(e,"string");return mr(t)=="symbol"?t:t+""}function bS(e,t){if(mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Iv=1,xS=(function(e){function t(){var r;dS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=vS(this,t,[].concat(i)),fl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),fl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return gS(t,e),pS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Iv||Math.abs(n.height-this.state.lastBoundingBox.height)>Iv)&&this.setState({lastBoundingBox:{width:n.width,height:n.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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,d=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,h=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=fS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:b}),O=w.cssClasses,g=w.cssProperties,m=$v($v({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return E.createElement("div",{tabIndex:-1,className:O,style:m,ref:function(P){n.wrapperNode=P}},c)}}])})(R.PureComponent),wS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Fr={isSsr:wS()};function gr(e){"@babel/helpers - typeof";return gr=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},gr(e)}function Nv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nv(Object(r),!0).forEach(function(n){$f(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ub(n.key),n)}}function SS(e,t,r){return t&&_S(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AS(e,t,r){return t=Ti(t),PS(e,Fb()?Reflect.construct(t,r||[],Ti(e).constructor):t.apply(e,r))}function PS(e,t){if(t&&(gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jS(e)}function jS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fb=function(){return!!e})()}function Ti(e){return Ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ti(e)}function TS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dl(e,t)}function dl(e,t){return dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dl(e,t)}function $f(e,t,r){return t=Ub(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ub(e){var t=ES(e,"string");return gr(t)=="symbol"?t:t+""}function ES(e,t){if(gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function CS(e){return e.dataKey}function MS(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(aS,t)}var rt=(function(e){function t(){return OS(this,t),AS(this,t,arguments)}return TS(t,e),SS(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,d=i.isAnimationActive,p=i.offset,y=i.payload,v=i.payloadUniqBy,h=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,g=y??[];l&&g.length&&(g=kb(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,CS));var m=g.length>0;return E.createElement(xS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:m,offset:p,position:h,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:O},MS(c,Rv(Rv({},this.props),{},{payload:g})))}}])})(R.PureComponent);$f(rt,"displayName","Tooltip");$f(rt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Fr.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 Zs,Dv;function kS(){if(Dv)return Zs;Dv=1;var e=st(),t=function(){return e.Date.now()};return Zs=t,Zs}var Js,qv;function $S(){if(qv)return Js;qv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Js=t,Js}var Qs,Bv;function IS(){if(Bv)return Qs;Bv=1;var e=$S(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Qs=r,Qs}var ec,Lv;function Wb(){if(Lv)return ec;Lv=1;var e=IS(),t=Et(),r=Dr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return ec=s,ec}var tc,Fv;function NS(){if(Fv)return tc;Fv=1;var e=Et(),t=kS(),r=Wb(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,d,p,y,v,h=0,b=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(b=!!c.leading,x="maxWait"in c,d=x?i(r(c.maxWait)||0,s):d,w="trailing"in c?!!c.trailing:w);function O(C){var k=f,$=l;return f=l=void 0,h=C,p=u.apply($,k),p}function g(C){return h=C,y=setTimeout(P,s),b?O(C):p}function m(C){var k=C-v,$=C-h,N=s-k;return x?a(N,d-$):N}function _(C){var k=C-v,$=C-h;return v===void 0||k>=s||k<0||x&&$>=d}function P(){var C=t();if(_(C))return A(C);y=setTimeout(P,m(C))}function A(C){return y=void 0,w&&f?O(C):(f=l=void 0,p)}function M(){y!==void 0&&clearTimeout(y),h=0,f=v=l=y=void 0}function T(){return y===void 0?p:A(t())}function j(){var C=t(),k=_(C);if(f=arguments,l=this,v=C,k){if(y===void 0)return g(v);if(x)return clearTimeout(y),y=setTimeout(P,s),O(v)}return y===void 0&&(y=setTimeout(P,s)),p}return j.cancel=M,j.flush=T,j}return tc=o,tc}var rc,Uv;function RS(){if(Uv)return rc;Uv=1;var e=NS(),t=Et(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return rc=n,rc}var DS=RS();const zb=he(DS);function vn(e){"@babel/helpers - typeof";return vn=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},vn(e)}function Wv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wv(Object(r),!0).forEach(function(n){qS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qS(e,t,r){return t=BS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BS(e){var t=LS(e,"string");return vn(t)=="symbol"?t:t+""}function LS(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FS(e,t){return GS(e)||zS(e,t)||WS(e,t)||US()}function US(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WS(e,t){if(e){if(typeof e=="string")return zv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zv(e,t)}}function zv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function GS(e){if(Array.isArray(e))return e}var HS=R.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,d=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,h=e.id,b=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,g=R.useRef(null),m=R.useRef();m.current=x,R.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var _=R.useState({containerWidth:i.width,containerHeight:i.height}),P=FS(_,2),A=P[0],M=P[1],T=R.useCallback(function(C,k){M(function($){var N=Math.round(C),D=Math.round(k);return $.containerWidth===N&&$.containerHeight===D?$:{containerWidth:N,containerHeight:D}})},[]);R.useEffect(function(){var C=function(W){var B,H=W[0].contentRect,U=H.width,X=H.height;T(U,X),(B=m.current)===null||B===void 0||B.call(m,U,X)};v>0&&(C=zb(C,v,{trailing:!0,leading:!1}));var k=new ResizeObserver(C),$=g.current.getBoundingClientRect(),N=$.width,D=$.height;return T(N,D),k.observe(g.current),function(){k.disconnect()}},[T,v]);var j=R.useMemo(function(){var C=A.containerWidth,k=A.containerHeight;if(C<0||k<0)return null;Ht(Ft(o)||Ft(s),`The width(%s) and height(%s) are both fixed numbers, 7 maybe you don't need to use a ResponsiveContainer.`,o,s),Ht(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=Ft(o)?C:o,N=Ft(s)?k:s;r&&r>0&&($?N=$/r:N&&($=N*r),d&&N>d&&(N=d)),Ht($>0||N>0,`The width(%s) and height(%s) of chart should be greater than 0, 8 please check the style of container, or the props width(%s) and height(%s), 9 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 10 height and width.`,$,N,o,s,f,l,r);var D=!Array.isArray(p)&&dt(p.type).endsWith("Chart");return E.Children.map(p,function(L){return E.isValidElement(L)?R.cloneElement(L,oi({width:$,height:N},D?{style:oi({height:"100%",width:"100%",maxHeight:N,maxWidth:$},L.props.style)}:{})):L})},[r,p,s,d,l,f,A,o]);return E.createElement("div",{id:h?"".concat(h):void 0,className:ne("recharts-responsive-container",b),style:oi(oi({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:d}),ref:g},j)}),Gb=function(t){return null};Gb.displayName="Cell";function yn(e){"@babel/helpers - typeof";return yn=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},yn(e)}function Gv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gv(Object(r),!0).forEach(function(n){KS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KS(e,t,r){return t=VS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VS(e){var t=XS(e,"string");return yn(t)=="symbol"?t:t+""}function XS(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ir={widthCache:{},cacheCount:0},YS=2e3,ZS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Hv="recharts_measurement_span";function JS(e){var t=hl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var on=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Fr.isSsr)return{width:0,height:0};var n=JS(r),i=JSON.stringify({text:t,copyStyle:n});if(ir.widthCache[i])return ir.widthCache[i];try{var a=document.getElementById(Hv);a||(a=document.createElement("span"),a.setAttribute("id",Hv),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=hl(hl({},ZS),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return ir.widthCache[i]=s,++ir.cacheCount>YS&&(ir.cacheCount=0,ir.widthCache={}),s}catch{return{width:0,height:0}}},QS=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function mn(e){"@babel/helpers - typeof";return mn=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},mn(e)}function Ei(e,t){return nA(e)||rA(e,t)||tA(e,t)||eA()}function eA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tA(e,t){if(e){if(typeof e=="string")return Kv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kv(e,t)}}function Kv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function nA(e){if(Array.isArray(e))return e}function iA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oA(n.key),n)}}function aA(e,t,r){return t&&Vv(e.prototype,t),r&&Vv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function oA(e){var t=uA(e,"string");return mn(t)=="symbol"?t:t+""}function uA(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Yv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,sA=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,cA=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Hb={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},lA=Object.keys(Hb),ur="NaN";function fA(e,t){return e*Hb[t]}var ui=(function(){function e(t,r){iA(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!sA.test(r)&&(this.num=NaN,this.unit=""),lA.includes(r)&&(this.num=fA(t,r),this.unit="px")}return aA(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=cA.exec(r))!==null&&n!==void 0?n:[],a=Ei(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function Kb(e){if(e.includes(ur))return ur;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Xv.exec(t))!==null&&r!==void 0?r:[],i=Ei(n,4),a=i[1],o=i[2],u=i[3],s=ui.parse(a??""),c=ui.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return ur;t=t.replace(Xv,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=Yv.exec(t))!==null&&l!==void 0?l:[],p=Ei(d,4),y=p[1],v=p[2],h=p[3],b=ui.parse(y??""),x=ui.parse(h??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return ur;t=t.replace(Yv,w.toString())}return t}var Zv=/\(([^()]*)\)/;function dA(e){for(var t=e;t.includes("(");){var r=Zv.exec(t),n=Ei(r,2),i=n[1];t=t.replace(Zv,Kb(i))}return t}function hA(e){var t=e.replace(/\s+/g,"");return t=dA(t),t=Kb(t),t}function pA(e){try{return hA(e)}catch{return ur}}function nc(e){var t=pA(e.slice(5,-1));return t===ur?"":t}var vA=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],yA=["dx","dy","angle","className","breakAll"];function pl(){return pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
11for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pl.apply(this,arguments)}function Jv(e,t){if(e==null)return{};var r=mA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mA(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qv(e,t){return wA(e)||xA(e,t)||bA(e,t)||gA()}function gA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bA(e,t){if(e){if(typeof e=="string")return ey(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ey(e,t)}}function ey(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function wA(e){if(Array.isArray(e))return e}var Vb=/[ \f\n\r\t\v\u2028\u2029]+/,Xb=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];te(r)||(n?a=r.toString().split(""):a=r.toString().split(Vb));var o=a.map(function(s){return{word:s,width:on(s,i).width}}),u=n?0:on(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},OA=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=F(o),l=u,d=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(N,D){var L=D.word,W=D.width,B=N[N.length-1];if(B&&(i==null||a||B.width+W+n<Number(i)))B.words.push(L),B.width+=W+n;else{var H={words:[L],width:W};N.push(H)}return N},[])},p=d(r),y=function($){return $.reduce(function(N,D){return N.width>D.width?N:D})};if(!f)return p;for(var v="â¦",h=function($){var N=l.slice(0,$),D=Xb({breakAll:c,style:s,children:N+v}).wordsWithComputedWidth,L=d(D),W=L.length>o||y(L).width>Number(i);return[W,L]},b=0,x=l.length-1,w=0,O;b<=x&&w<=l.length-1;){var g=Math.floor((b+x)/2),m=g-1,_=h(m),P=Qv(_,2),A=P[0],M=P[1],T=h(g),j=Qv(T,1),C=j[0];if(!A&&!C&&(b=g+1),A&&C&&(x=g-1),!A&&C){O=M;break}w++}return O||p},ty=function(t){var r=te(t)?[]:t.toString().split(Vb);return[{words:r}]},_A=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Fr.isSsr){var s,c,f=Xb({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;s=l,c=d}else return ty(i);return OA({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return ty(i)},ry="#808080",Ci=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,y=t.verticalAnchor,v=y===void 0?"end":y,h=t.fill,b=h===void 0?ry:h,x=Jv(t,vA),w=R.useMemo(function(){return _A({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,g=x.dy,m=x.angle,_=x.className,P=x.breakAll,A=Jv(x,yA);if(!Se(n)||!Se(a))return null;var M=n+(F(O)?O:0),T=a+(F(g)?g:0),j;switch(v){case"start":j=nc("calc(".concat(c,")"));break;case"middle":j=nc("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:j=nc("calc(".concat(w.length-1," * -").concat(u,")"));break}var C=[];if(l){var k=w[0].width,$=x.width;C.push("scale(".concat((F($)?$/k:1)/k,")"))}return m&&C.push("rotate(".concat(m,", ").concat(M,", ").concat(T,")")),C.length&&(A.transform=C.join(" ")),E.createElement("text",pl({},ee(A,!0),{x:M,y:T,className:ne("recharts-text",_),textAnchor:p,fill:b.includes("url")?ry:b}),w.map(function(N,D){var L=N.words.join(P?"":" ");return E.createElement("tspan",{x:M,dy:D===0?j:u,key:"".concat(L,"-").concat(D)},L)}))};function jt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function SA(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function If(e){let t,r,n;e.length!==2?(t=jt,r=(u,s)=>jt(e(u),s),n=(u,s)=>e(u)-s):(t=e===jt||e===SA?e:AA,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function AA(){return 0}function Yb(e){return e===null?NaN:+e}function*PA(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const jA=If(jt),Yn=jA.right;If(Yb).center;class ny extends Map{constructor(t,r=CA){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(iy(this,t))}has(t){return super.has(iy(this,t))}set(t,r){return super.set(TA(this,t),r)}delete(t){return super.delete(EA(this,t))}}function iy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function TA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function EA({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function CA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function MA(e=jt){if(e===jt)return Zb;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Zb(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const kA=Math.sqrt(50),$A=Math.sqrt(10),IA=Math.sqrt(2);function Mi(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=kA?10:a>=$A?5:a>=IA?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?Mi(e,t,r*2):[u,s,c]}function vl(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Mi(t,e,r):Mi(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function yl(e,t,r){return t=+t,e=+e,r=+r,Mi(e,t,r)[2]}function ml(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?yl(t,e,r):yl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function ay(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function oy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}
12function Jb(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Zb:MA(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),p=Math.max(r,Math.floor(t-c*l/s+d)),y=Math.min(n,Math.floor(t+(s-c)*l/s+d));Jb(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(Kr(e,r,t),i(e[n],a)>0&&Kr(e,r,n);o<u;){for(Kr(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Kr(e,r,u):(++u,Kr(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Kr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function NA(e,t,r){if(e=Float64Array.from(PA(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return oy(e);if(t>=1)return ay(e);var n,i=(n-1)*t,a=Math.floor(i),o=ay(Jb(e,a).subarray(0,a+1)),u=oy(e.subarray(a+1));return o+(u-o)*(i-a)}}function RA(e,t,r=Yb){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function DA(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Xe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function xt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const gl=Symbol("implicit");function Nf(){var e=new ny,t=[],r=[],n=gl;function i(a){let o=e.get(a);if(o===void 0){if(n!==gl)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ny;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Nf(t,r).unknown(n)},Xe.apply(i,arguments),i}function gn(){var e=Nf().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var d=t().length,p=i<n,y=p?i:n,v=p?n:i;a=(v-y)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),y+=(v-y-a*(d-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var h=DA(d).map(function(b){return y+a*b});return r(p?h.reverse():h)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,l()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),l()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),l()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,l()):c},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),l()):f},e.copy=function(){return gn(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},Xe.apply(l(),arguments)}function Qb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Qb(t())},e}function un(){return Qb(gn.apply(null,arguments).paddingInner(1))}function Rf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function e0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Zn(){}var bn=.7,ki=1/bn,dr="\\s*([+-]?\\d+)\\s*",xn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",at="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qA=/^#([0-9a-f]{3,8})$/,BA=new RegExp(`^rgb\\(${dr},${dr},${dr}\\)$`),LA=new RegExp(`^rgb\\(${at},${at},${at}\\)$`),FA=new RegExp(`^rgba\\(${dr},${dr},${dr},${xn}\\)$`),UA=new RegExp(`^rgba\\(${at},${at},${at},${xn}\\)$`),WA=new RegExp(`^hsl\\(${xn},${at},${at}\\)$`),zA=new RegExp(`^hsla\\(${xn},${at},${at},${xn}\\)$`),uy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Rf(Zn,wn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sy,formatHex:sy,formatHex8:GA,formatHsl:HA,formatRgb:cy,toString:cy});function sy(){return this.rgb().formatHex()}function GA(){return this.rgb().formatHex8()}function HA(){return t0(this).formatHsl()}function cy(){return this.rgb().formatRgb()}function wn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=qA.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ly(t):r===3?new Ne(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?si(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?si(t>>
vendor: 7,427 bytes, line 12
1212&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=BA.exec(e))?new Ne(t[1],t[2],t[3],1):(t=LA.exec(e))?new Ne(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FA.exec(e))?si(t[1],t[2],t[3],t[4]):(t=UA.exec(e))?si(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=WA.exec(e))?hy(t[1],t[2]/100,t[3]/100,1):(t=zA.exec(e))?hy(t[1],t[2]/100,t[3]/100,t[4]):uy.hasOwnProperty(e)?ly(uy[e]):e==="transparent"?new Ne(NaN,NaN,NaN,0):null}function ly(e){return new Ne(e>>16&255,e>>8&255,e&255,1)}function si(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ne(e,t,r,n)}function KA(e){return e instanceof Zn||(e=wn(e)),e?(e=e.rgb(),new Ne(e.r,e.g,e.b,e.opacity)):new Ne}function bl(e,t,r,n){return arguments.length===1?KA(e):new Ne(e,t,r,n??1)}function Ne(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Rf(Ne,bl,e0(Zn,{brighter(e){return e=e==null?ki:Math.pow(ki,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?bn:Math.pow(bn,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ne(Kt(this.r),Kt(this.g),Kt(this.b),$i(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:fy,formatHex:fy,formatHex8:VA,formatRgb:dy,toString:dy}));function fy(){return`#${Ut(this.r)}${Ut(this.g)}${Ut(this.b)}`}function VA(){return`#${Ut(this.r)}${Ut(this.g)}${Ut(this.b)}${Ut((isNaN(this.opacity)?1:this.opacity)*255)}`}function dy(){const e=$i(this.opacity);return`${e===1?"rgb(":"rgba("}${Kt(this.r)}, ${Kt(this.g)}, ${Kt(this.b)}${e===1?")":`, ${e})`}`}function $i(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ut(e){return e=Kt(e),(e<16?"0":"")+e.toString(16)}function hy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Je(e,t,r,n)}function t0(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Zn||(e=wn(e)),!e)return new Je;if(e instanceof Je)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Je(o,u,s,e.opacity)}function XA(e,t,r,n){return arguments.length===1?t0(e):new Je(e,t,r,n??1)}function Je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Rf(Je,XA,e0(Zn,{brighter(e){return e=e==null?ki:Math.pow(ki,e),new Je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?bn:Math.pow(bn,e),new Je(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ne(ic(e>=240?e-240:e+120,i,n),ic(e,i,n),ic(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Je(py(this.h),ci(this.s),ci(this.l),$i(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=$i(this.opacity);return`${e===1?"hsl(":"hsla("}${py(this.h)}, ${ci(this.s)*100}%, ${ci(this.l)*100}%${e===1?")":`, ${e})`}`}}));function py(e){return e=(e||0)%360,e<0?e+360:e}function ci(e){return Math.max(0,Math.min(1,e||0))}function ic(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Df=e=>()=>e;function YA(e,t){return function(r){return e+r*t}}function ZA(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function JA(e){return(e=+e)==1?r0:function(t,r){return r-t?ZA(t,r,e):Df(isNaN(t)?r:t)}}function r0(e,t){var r=t-e;return r?YA(e,r):Df(isNaN(e)?t:e)}const vy=(function e(t){var r=JA(t);function n(i,a){var o=r((i=bl(i)).r,(a=bl(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=r0(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function QA(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function eP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function tP(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Ur(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function rP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ii(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function nP(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Ur(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var xl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ac=new RegExp(xl.source,"g");function iP(e){return function(){return e}}function aP(e){return function(t){return e(t)+""}}function oP(e,t){var r=xl.lastIndex=ac.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=xl.exec(e))&&(i=ac.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:Ii(n,i)})),r=ac.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?aP(s[0].x):iP(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function Ur(e,t){var r=typeof t,n;return t==null||r==="boolean"?Df(t):(r==="number"?Ii:r==="string"?(n=wn(t))?(t=n,vy):oP:t instanceof wn?vy:t instanceof Date?rP:eP(t)?QA:Array.isArray(t)?tP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?nP:Ii)(e,t)}function qf(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function uP(e,t){t===void 0&&(t=e,e=Ur);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function sP(e){return function(){return e}}function Ni(e){return+e}var yy=[0,1];function ke(e){return e}function wl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:sP(isNaN(t)?NaN:.5)}function cP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function lP(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=wl(i,n),a=r(o,a)):(n=wl(n,i),a=r(a,o)),function(u){return a(n(u))}}function fP(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=wl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Yn(e,u,1,n)-1;return a[s](i[s](u))}}function Jn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ja(){var e=yy,t=yy,r=Ur,n,i,a,o=ke,u,s,c;function f(){var d=Math.min(e.length,t.length);return o!==ke&&(o=cP(e[0],e[d-1])),u=d>2?fP:lP,s=c=null,l}function l(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(i((c||(c=u(t,e.map(n),Ii)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,Ni),f()):e.slice()},l.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},l.rangeRound=function(d){return t=Array.from(d),r=qf,f()},l.clamp=function(d){return arguments.length?(o=d?!0:ke,f()):o!==ke},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(a=d,l):a},function(d,p){return n=d,i=p,f()}}function Bf(){return ja()(ke,ke)}
vendor: 4,584 bytes, line 12
12function dP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ri(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function br(e){return e=Ri(Math.abs(e)),e?e[1]:NaN}function hP(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function pP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var vP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function On(e){if(!(t=vP.exec(e)))throw new Error("invalid format: "+e);var t;return new Lf({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]})}On.prototype=Lf.prototype;function Lf(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+""}Lf.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 yP(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Di;function mP(e,t){var r=Ri(e,t);if(!r)return Di=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Di=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ri(e,Math.max(0,t+a-1))[0]}function my(e,t){var r=Ri(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const gy={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:dP,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)=>my(e*100,t),r:my,s:mP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function by(e){return e}var xy=Array.prototype.map,wy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gP(e){var t=e.grouping===void 0||e.thousands===void 0?by:hP(xy.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?by:pP(xy.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"â":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l,d){l=On(l);var p=l.fill,y=l.align,v=l.sign,h=l.symbol,b=l.zero,x=l.width,w=l.comma,O=l.precision,g=l.trim,m=l.type;m==="n"?(w=!0,m="g"):gy[m]||(O===void 0&&(O=12),g=!0,m="g"),(b||p==="0"&&y==="=")&&(b=!0,p="0",y="=");var _=(d&&d.prefix!==void 0?d.prefix:"")+(h==="$"?r:h==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():""),P=(h==="$"?n:/[%p]/.test(m)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),A=gy[m],M=/[defgprs%]/.test(m);O=O===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function T(j){var C=_,k=P,$,N,D;if(m==="c")k=A(j)+k,j="";else{j=+j;var L=j<0||1/j<0;if(j=isNaN(j)?s:A(Math.abs(j),O),g&&(j=yP(j)),L&&+j==0&&v!=="+"&&(L=!1),C=(L?v==="("?v:u:v==="-"||v==="("?"":v)+C,k=(m==="s"&&!isNaN(j)&&Di!==void 0?wy[8+Di/3]:"")+k+(L&&v==="("?")":""),M){for($=-1,N=j.length;++$<N;)if(D=j.charCodeAt($),48>D||D>57){k=(D===46?i+j.slice($+1):j.slice($))+k,j=j.slice(0,$);break}}}w&&!b&&(j=t(j,1/0));var W=C.length+j.length+k.length,B=W<x?new Array(x-W+1).join(p):"";switch(w&&b&&(j=t(B+j,B.length?x-k.length:1/0),B=""),y){case"<":j=C+j+k+B;break;case"=":j=C+B+j+k;break;case"^":j=B.slice(0,W=B.length>>1)+C+j+k+B.slice(W);break;default:j=B+C+j+k;break}return a(j)}return T.toString=function(){return l+""},T}function f(l,d){var p=Math.max(-8,Math.min(8,Math.floor(br(d)/3)))*3,y=Math.pow(10,-p),v=c((l=On(l),l.type="f",l),{suffix:wy[8+p/3]});return function(h){return v(y*h)}}return{format:c,formatPrefix:f}}var li,Ff,n0;
12bP({thousands:",",grouping:[3],currency:["$",""]});function bP(e){return li=gP(e),Ff=li.format,n0=li.formatPrefix,li}function xP(e){return Math.max(0,-br(Math.abs(e)))}function wP(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(br(t)/3)))*3-br(Math.abs(e)))}function OP(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,br(t)-br(e))+1}function i0(e,t,r,n){var i=ml(e,t,r),a;switch(n=On(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=wP(i,o))&&(n.precision=a),n0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=OP(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=xP(i))&&(n.precision=a-(n.type==="%")*2);break}}return Ff(n)}function Mt(e){var t=e.domain;return e.ticks=function(r){var n=t();return vl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return i0(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=yl(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function qi(){var e=Bf();return e.copy=function(){return Jn(e,qi())},Xe.apply(e,arguments),Mt(e)}function a0(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Ni),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return a0(e).unknown(t)},e=arguments.length?Array.from(e,Ni):[0,1],Mt(r)}function o0(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Oy(e){return Math.log(e)}function _y(e){return Math.exp(e)}function _P(e){return-Math.log(-e)}function SP(e){return-Math.exp(-e)}function AP(e){return isFinite(e)?+("1e"+e):e<0?0:e}function PP(e){return e===10?AP:e===Math.E?Math.exp:t=>Math.pow(e,t)}function jP(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 Sy(e){return(t,r)=>-e(-t,r)}function Uf(e){const t=e(Oy,_y),r=t.domain;let n=10,i,a;function o(){return i=jP(n),a=PP(n),r()[0]<0?(i=Sy(i),a=Sy(a),e(_P,SP)):e(Oy,_y),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let d=i(c),p=i(f),y,v;const h=u==null?10:+u;let b=[];if(!(n%1)&&p-d<h){if(d=Math.floor(d),p=Math.ceil(p),c>0){for(;d<=p;++d)for(y=1;y<n;++y)if(v=d<0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;b.push(v)}}else for(;d<=p;++d)for(y=n-1;y>=1;--y)if(v=d>0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;b.push(v)}b.length*2<h&&(b=vl(c,f,h))}else b=vl(d,p,Math.min(p-d,h)).map(a);return l?b.reverse():b},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=On(s)).precision==null&&(s.trim=!0),s=Ff(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(o0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function u0(){const e=Uf(ja()).domain([1,10]);return e.copy=()=>Jn(e,u0()).base(e.base()),Xe.apply(e,arguments),e}function Ay(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Py(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Wf(e){var t=1,r=e(Ay(t),Py(t));return r.constant=function(n){return arguments.length?e(Ay(t=+n),Py(t)):t},Mt(r)}function s0(){var e=Wf(ja());return e.copy=function(){return Jn(e,s0()).constant(e.constant())},Xe.apply(e,arguments)}function jy(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function TP(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function EP(e){return e<0?-e*e:e*e}function zf(e){var t=e(ke,ke),r=1;function n(){return r===1?e(ke,ke):r===.5?e(TP,EP):e(jy(r),jy(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Mt(t)}function Gf(){var e=zf(ja());return e.copy=function(){return Jn(e,Gf()).exponent(e.exponent())},Xe.apply(e,arguments),e}function CP(){return Gf.apply(null,arguments).exponent(.5)}function Ty(e){return Math.sign(e)*e*e}function MP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function c0(){var e=Bf(),t=[0,1],r=!1,n;function i(a){var o=MP(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Ty(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Ni)).map(Ty)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return c0(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Xe.apply(i,arguments),Mt(i)}function l0(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=RA(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Yn(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]}
12,a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(jt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return l0().domain(e).range(t).unknown(n)},Xe.apply(a,arguments)}function f0(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Yn(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return f0().domain([e,t]).range(i).unknown(a)},Xe.apply(Mt(o),arguments)}function d0(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Yn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return d0().domain(e).range(t).unknown(r)},Xe.apply(i,arguments)}const oc=new Date,uc=new Date;function Ae(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Ae(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(oc.setTime(+a),uc.setTime(+o),e(oc),e(uc),Math.floor(r(oc,uc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Bi=Ae(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Bi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ae(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Bi);Bi.range;const lt=1e3,He=lt*60,ft=He*60,pt=ft*24,Hf=pt*7,Ey=pt*30,sc=pt*365,Wt=Ae(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getUTCSeconds());Wt.range;const Kf=Ae(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lt)},(e,t)=>{e.setTime(+e+t*He)},(e,t)=>(t-e)/He,e=>e.getMinutes());Kf.range;const Vf=Ae(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*He)},(e,t)=>(t-e)/He,e=>e.getUTCMinutes());Vf.range;const Xf=Ae(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lt-e.getMinutes()*He)},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getHours());Xf.range;const Yf=Ae(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getUTCHours());Yf.range;const Qn=Ae(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*He)/pt,e=>e.getDate()-1);Qn.range;const Ta=Ae(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/pt,e=>e.getUTCDate()-1);Ta.range;const h0=Ae(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/pt,e=>Math.floor(e/pt));h0.range;function er(e){return Ae(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*He)/Hf)}const Ea=er(0),Li=er(1),kP=er(2),$P=er(3),xr=er(4),IP=er(5),NP=er(6);Ea.range;Li.range;kP.range;$P.range;xr.range;IP.range;NP.range;function tr(e){return Ae(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Hf)}const Ca=tr(0),Fi=tr(1),RP=tr(2),DP=tr(3),wr=tr(4),qP=tr(5),BP=tr(6);Ca.range;Fi.range;RP.range;DP.range;wr.range;qP.range;BP.range;const Zf=Ae(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());Zf.range;const Jf=Ae(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());Jf.range;const vt=Ae(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());vt.every=e=>
vendor: 5,003 bytes, line 12
12!isFinite(e=Math.floor(e))||!(e>0)?null:Ae(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});vt.range;const yt=Ae(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());yt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ae(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});yt.range;function p0(e,t,r,n,i,a){const o=[[Wt,1,lt],[Wt,5,5*lt],[Wt,15,15*lt],[Wt,30,30*lt],[a,1,He],[a,5,5*He],[a,15,15*He],[a,30,30*He],[i,1,ft],[i,3,3*ft],[i,6,6*ft],[i,12,12*ft],[n,1,pt],[n,2,2*pt],[r,1,Hf],[t,1,Ey],[t,3,3*Ey],[e,1,sc]];function u(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const p=l&&typeof l.range=="function"?l:s(c,f,l),y=p?p.range(c,+f+1):[];return d?y.reverse():y}function s(c,f,l){const d=Math.abs(f-c)/l,p=If(([,,h])=>h).right(o,d);if(p===o.length)return e.every(ml(c/sc,f/sc,l));if(p===0)return Bi.every(Math.max(ml(c,f,l),1));const[y,v]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return y.every(v)}return[u,s]}const[LP,FP]=p0(yt,Jf,Ca,h0,Yf,Vf),[UP,WP]=p0(vt,Zf,Ea,Qn,Xf,Kf);function cc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function lc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Vr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function zP(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=Xr(i),f=Yr(i),l=Xr(a),d=Yr(a),p=Xr(o),y=Yr(o),v=Xr(u),h=Yr(u),b=Xr(s),x=Yr(s),w={a:D,A:L,b:W,B,c:null,d:Ny,e:Ny,f:hj,g:_j,G:Aj,H:lj,I:fj,j:dj,L:v0,m:pj,M:vj,p:H,q:U,Q:qy,s:By,S:yj,u:mj,U:gj,V:bj,w:xj,W:wj,x:null,X:null,y:Oj,Y:Sj,Z:Pj,"%":Dy},O={a:X,A:le,b:me,B:De,c:null,d:Ry,e:Ry,f:Cj,g:Lj,G:Uj,H:jj,I:Tj,j:Ej,L:m0,m:Mj,M:kj,p:Nt,q:$e,Q:qy,s:By,S:$j,u:Ij,U:Nj,V:Rj,w:Dj,W:qj,x:null,X:null,y:Bj,Y:Fj,Z:Wj,"%":Dy},g={a:M,A:T,b:j,B:C,c:k,d:$y,e:$y,f:oj,g:ky,G:My,H:Iy,I:Iy,j:rj,L:aj,m:tj,M:nj,p:A,q:ej,Q:sj,s:cj,S:ij,u:XP,U:YP,V:ZP,w:VP,W:JP,x:$,X:N,y:ky,Y:My,Z:QP,"%":uj};w.x=m(r,w),w.X=m(n,w),w.c=m(t,w),O.x=m(r,O),O.X=m(n,O),O.c=m(t,O);function m(z,Y){return function(Z){var q=[],ve=-1,re=0,xe=z.length,we,Ie,wt;for(Z instanceof Date||(Z=new Date(+Z));++ve<xe;)z.charCodeAt(ve)===37&&(q.push(z.slice(re,ve)),(Ie=Cy[we=z.charAt(++ve)])!=null?we=z.charAt(++ve):Ie=we==="e"?" ":"0",(wt=Y[we])&&(we=wt(Z,Ie)),q.push(we),re=ve+1);return q.push(z.slice(re,ve)),q.join("")}}function _(z,Y){return function(Z){var q=Vr(1900,void 0,1),ve=P(q,z,Z+="",0),re,xe;if(ve!=Z.length)return null;if("Q"in q)return new Date(q.Q);if("s"in q)return new Date(q.s*1e3+("L"in q?q.L:0));if(Y&&!("Z"in q)&&(q.Z=0),"p"in q&&(q.H=q.H%12+q.p*12),q.m===void 0&&(q.m="q"in q?q.q:0),"V"in q){if(q.V<1||q.V>53)return null;"w"in q||(q.w=1),"Z"in q?(re=lc(Vr(q.y,0,1)),xe=re.getUTCDay(),re=xe>4||xe===0?Fi.ceil(re):Fi(re),re=Ta.offset(re,(q.V-1)*7),q.y=re.getUTCFullYear(),q.m=re.getUTCMonth(),q.d=re.getUTCDate()+(q.w+6)%7):(re=cc(Vr(q.y,0,1)),xe=re.getDay(),re=xe>4||xe===0?Li.ceil(re):Li(re),re=Qn.offset(re,(q.V-1)*7),q.y=re.getFullYear(),q.m=re.getMonth(),q.d=re.getDate()+(q.w+6)%7)}else("W"in q||"U"in q)&&("w"in q||(q.w="u"in q?q.u%7:"W"in q?1:0),xe="Z"in q?lc(Vr(q.y,0,1)).getUTCDay():cc(Vr(q.y,0,1)).getDay(),q.m=0,q.d="W"in q?(q.w+6)%7+q.W*7-(xe+5)%7:q.w+q.U*7-(xe+6)%7);return"Z"in q?(q.H+=q.Z/100|0,q.M+=q.Z%100,lc(q)):cc(q)}}function P(z,Y,Z,q){for(var ve=0,re=Y.length,xe=Z.length,we,Ie;ve<re;){if(q>=xe)return-1;if(we=Y.charCodeAt(ve++),we===37){if(we=Y.charAt(ve++),Ie=g[we in Cy?Y.charAt(ve++):we],!Ie||(q=Ie(z,Z,q))<0)return-1}else if(we!=Z.charCodeAt(q++))return-1}return q}function A(z,Y,Z){var q=c.exec(Y.slice(Z));return q?(z.p=f.get(q[0].toLowerCase()),Z+q[0].length):-1}function M(z,Y,Z){var q=p.exec(Y.slice(Z));return q?(z.w=y.get(q[0].toLowerCase()),Z+q[0].length):-1}function T(z,Y,Z){var q=l.exec(Y.slice(Z));return q?(z.w=d.get(q[0].toLowerCase()),Z+q[0].length):-1}function j(z,Y,Z){var q=b.exec(Y.slice(Z));return q?(z.m=x.get(q[0].toLowerCase()),Z+q[0].length):-1}function C(z,Y,Z){var q=v.exec(Y.slice(Z));return q?(z.m=h.get(q[0].toLowerCase()),Z+q[0].length):-1}function k(z,Y,Z){return P(z,t,Y,Z)}function $(z,Y,Z){return P(z,r,Y,Z)}function N(z,Y,Z){return P(z,n,Y,Z)}function D(z){return o[z.getDay()]}function L(z){return a[z.getDay()]}function W(z){return s[z.getMonth()]}function B(z){return u[z.getMonth()]}function H(z){return i[+(z.getHours()>=12)]}function U(z){return 1+~~(z.getMonth()/3)}function X(z){return o[z.getUTCDay()]}function le(z){return a[z.getUTCDay()]}function me(z){return s[z.getUTCMonth()]}function De(z){return u[z.getUTCMonth()]}function Nt(z){return i[+(z.getUTCHours()>=12)]}function $e(z){return 1+~~(z.getUTCMonth()/3)}
vendor: 4,962 bytes, line 12
12return{format:function(z){var Y=m(z+="",w);return Y.toString=function(){return z},Y},parse:function(z){var Y=_(z+="",!1);return Y.toString=function(){return z},Y},utcFormat:function(z){var Y=m(z+="",O);return Y.toString=function(){return z},Y},utcParse:function(z){var Y=_(z+="",!0);return Y.toString=function(){return z},Y}}}var Cy={"-":"",_:" ",0:"0"},je=/^\s*\d+/,GP=/^%/,HP=/[\\^$*+?|[\]().{}]/g;function ie(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function KP(e){return e.replace(HP,"\\$&")}function Xr(e){return new RegExp("^(?:"+e.map(KP).join("|")+")","i")}function Yr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function VP(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function XP(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function YP(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function ZP(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function JP(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function My(e,t,r){var n=je.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ky(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function QP(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function ej(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function tj(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function $y(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function rj(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Iy(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function nj(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function ij(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function aj(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function oj(e,t,r){var n=je.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function uj(e,t,r){var n=GP.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function sj(e,t,r){var n=je.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function cj(e,t,r){var n=je.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Ny(e,t){return ie(e.getDate(),t,2)}function lj(e,t){return ie(e.getHours(),t,2)}function fj(e,t){return ie(e.getHours()%12||12,t,2)}function dj(e,t){return ie(1+Qn.count(vt(e),e),t,3)}function v0(e,t){return ie(e.getMilliseconds(),t,3)}function hj(e,t){return v0(e,t)+"000"}function pj(e,t){return ie(e.getMonth()+1,t,2)}function vj(e,t){return ie(e.getMinutes(),t,2)}function yj(e,t){return ie(e.getSeconds(),t,2)}function mj(e){var t=e.getDay();return t===0?7:t}function gj(e,t){return ie(Ea.count(vt(e)-1,e),t,2)}function y0(e){var t=e.getDay();return t>=4||t===0?xr(e):xr.ceil(e)}function bj(e,t){return e=y0(e),ie(xr.count(vt(e),e)+(vt(e).getDay()===4),t,2)}function xj(e){return e.getDay()}function wj(e,t){return ie(Li.count(vt(e)-1,e),t,2)}function Oj(e,t){return ie(e.getFullYear()%100,t,2)}function _j(e,t){return e=y0(e),ie(e.getFullYear()%100,t,2)}function Sj(e,t){return ie(e.getFullYear()%1e4,t,4)}function Aj(e,t){var r=e.getDay();return e=r>=4||r===0?xr(e):xr.ceil(e),ie(e.getFullYear()%1e4,t,4)}function Pj(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ie(t/60|0,"0",2)+ie(t%60,"0",2)}function Ry(e,t){return ie(e.getUTCDate(),t,2)}function jj(e,t){return ie(e.getUTCHours(),t,2)}function Tj(e,t){return ie(e.getUTCHours()%12||12,t,2)}function Ej(e,t){return ie(1+Ta.count(yt(e),e),t,3)}function m0(e,t){return ie(e.getUTCMilliseconds(),t,3)}function Cj(e,t){return m0(e,t)+"000"}function Mj(e,t){return ie(e.getUTCMonth()+1,t,2)}function kj(e,t){return ie(e.getUTCMinutes(),t,2)}function $j(e,t){return ie(e.getUTCSeconds(),t,2)}function Ij(e){var t=e.getUTCDay();return t===0?7:t}function Nj(e,t){return ie(Ca.count(yt(e)-1,e),t,2)}function g0(e){var t=e.getUTCDay();return t>=4||t===0?wr(e):wr.ceil(e)}function Rj(e,t){return e=g0(e),ie(wr.count(yt(e),e)+(yt(e).getUTCDay()===4),t,2)}function Dj(e){return e.getUTCDay()}function qj(e,t){return ie(Fi.count(yt(e)-1,e),t,2)}function Bj(e,t){return ie(e.getUTCFullYear()%100,t,2)}function Lj(e,t){return e=g0(e),ie(e.getUTCFullYear()%100,t,2)}function Fj(e,t){return ie(e.getUTCFullYear()%1e4,t,4)}function Uj(e,t){var r=e.getUTCDay();return e=r>=4||r===0?wr(e):wr.ceil(e),ie(e.getUTCFullYear()%1e4,t,4)}function Wj(){return"+0000"}function Dy(){return"%"}function qy(e){return+e}function By(e){return Math.floor(+e/1e3)}var ar,b0,x0;zj({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
12ay","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 zj(e){return ar=zP(e),b0=ar.format,ar.parse,x0=ar.utcFormat,ar.utcParse,ar}function Gj(e){return new Date(e)}function Hj(e){return e instanceof Date?+e:+new Date(+e)}function Qf(e,t,r,n,i,a,o,u,s,c){var f=Bf(),l=f.invert,d=f.domain,p=c(".%L"),y=c(":%S"),v=c("%I:%M"),h=c("%I %p"),b=c("%a %d"),x=c("%b %d"),w=c("%B"),O=c("%Y");function g(m){return(s(m)<m?p:u(m)<m?y:o(m)<m?v:a(m)<m?h:n(m)<m?i(m)<m?b:x:r(m)<m?w:O)(m)}return f.invert=function(m){return new Date(l(m))},f.domain=function(m){return arguments.length?d(Array.from(m,Hj)):d().map(Gj)},f.ticks=function(m){var _=d();return e(_[0],_[_.length-1],m??10)},f.tickFormat=function(m,_){return _==null?g:c(_)},f.nice=function(m){var _=d();return(!m||typeof m.range!="function")&&(m=t(_[0],_[_.length-1],m??10)),m?d(o0(_,m)):f},f.copy=function(){return Jn(f,Qf(e,t,r,n,i,a,o,u,s,c))},f}function Kj(){return Xe.apply(Qf(UP,WP,vt,Zf,Ea,Qn,Xf,Kf,Wt,b0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Vj(){return Xe.apply(Qf(LP,FP,yt,Jf,Ca,Ta,Yf,Vf,Wt,x0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ma(){var e=0,t=1,r,n,i,a,o=ke,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(d){var p,y;return arguments.length?([p,y]=d,o=l(p,y),c):[o(0),o(1)]}}return c.range=f(Ur),c.rangeRound=f(qf),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function kt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function w0(){var e=Mt(Ma()(ke));return e.copy=function(){return kt(e,w0())},xt.apply(e,arguments)}function O0(){var e=Uf(Ma()).domain([1,10]);return e.copy=function(){return kt(e,O0()).base(e.base())},xt.apply(e,arguments)}function _0(){var e=Wf(Ma());return e.copy=function(){return kt(e,_0()).constant(e.constant())},xt.apply(e,arguments)}function ed(){var e=zf(Ma());return e.copy=function(){return kt(e,ed()).exponent(e.exponent())},xt.apply(e,arguments)}function Xj(){return ed.apply(null,arguments).exponent(.5)}function S0(){var e=[],t=ke;function r(n){if(n!=null&&!isNaN(n=+n))return t((Yn(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(jt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>NA(e,a/n))},r.copy=function(){return S0(t).domain(e)},xt.apply(r,arguments)}function ka(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=ke,f,l=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(l?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(l=!!v,p):l},p.interpolator=function(v){return arguments.length?(c=v,p):c};function y(v){return function(h){var b,x,w;return arguments.length?([b,x,w]=h,c=uP(v,[b,x,w]),p):[c(0),c(.5),c(1)]}}return p.range=y(Ur),p.rangeRound=y(qf),p.unknown=function(v){return arguments.length?(d=v,p):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function A0(){var e=Mt(ka()(ke));return e.copy=function(){return kt(e,A0())},xt.apply(e,arguments)}function P0(){var e=Uf(ka()).domain([.1,1,10]);return e.copy=function(){return kt(e,P0()).base(e.base())},xt.apply(e,arguments)}function j0(){var e=Wf(ka());return e.copy=function(){return kt(e,j0()).constant(e.constant())},xt.apply(e,arguments)}function td(){var e=zf(ka());return e.copy=function(){return kt(e,td()).exponent(e.exponent())},xt.apply(e,arguments)}function Yj(){return td.apply(null,arguments).exponent(.5)}const Ly=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:gn,scaleDiverging:A0,scaleDivergingLog:P0,scaleDivergingPow:td,scaleDivergingSqrt:Yj,scaleDivergingSymlog:j0,scaleIdentity:a0,scaleImplicit:gl,scaleLinear:qi,scaleLog:u0,scaleOrdinal:Nf,scalePoint:un,scalePow:Gf,scaleQuantile:l0,scaleQuantize:f0,scaleRadial:c0,scaleSequential:w0,scaleSequentialLog:O0,scaleSequentialPow:ed,scaleSequentialQuantile:S0,scaleSequentialSqrt:Xj,scaleSequentialSymlog:_0,scaleSqrt:CP,
vendor: 66,734 bytes, lines 12-38
12scaleSymlog:s0,scaleThreshold:d0,scaleTime:Kj,scaleUtc:Vj,tickFormat:i0},Symbol.toStringTag,{value:"Module"}));var fc,Fy;function T0(){if(Fy)return fc;Fy=1;var e=Dr();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return fc=t,fc}var dc,Uy;function Zj(){if(Uy)return dc;Uy=1;function e(t,r){return t>r}return dc=e,dc}var hc,Wy;function Jj(){if(Wy)return hc;Wy=1;var e=T0(),t=Zj(),r=Lr();function n(i){return i&&i.length?e(i,r,t):void 0}return hc=n,hc}var Qj=Jj();const At=he(Qj);var pc,zy;function eT(){if(zy)return pc;zy=1;function e(t,r){return t<r}return pc=e,pc}var vc,Gy;function tT(){if(Gy)return vc;Gy=1;var e=T0(),t=eT(),r=Lr();function n(i){return i&&i.length?e(i,r,t):void 0}return vc=n,vc}var rT=tT();const $a=he(rT);var yc,Hy;function nT(){if(Hy)return yc;Hy=1;var e=mf(),t=Ct(),r=Db(),n=Re();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return yc=i,yc}var mc,Ky;function iT(){if(Ky)return mc;Ky=1;var e=Nb(),t=nT();function r(n,i){return e(t(n,i),1)}return mc=r,mc}var aT=iT();const oT=he(aT);var gc,Vy;function uT(){if(Vy)return gc;Vy=1;var e=Cf();function t(r,n){return e(r,n)}return gc=t,gc}var sT=uT();const _n=he(sT);var Wr=1e9,cT={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},nd,de=!0,Ve="[DecimalError] ",Vt=Ve+"Invalid argument: ",rd=Ve+"Exponent out of range: ",zr=Math.floor,Lt=Math.pow,lT=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Le,Pe=1e7,fe=7,E0=9007199254740991,Ui=zr(E0/fe),G={};G.absoluteValue=G.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};G.comparedTo=G.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(n=a.d.length,i=e.d.length,t=0,r=n<i?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};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*fe;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};G.dividedBy=G.div=function(e){return ht(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,r=t.constructor;return se(ht(t,new r(e),0,1),r.precision)};G.equals=G.eq=function(e){return!this.cmp(e)};G.exponent=function(){return be(this)};G.greaterThan=G.gt=function(e){return this.cmp(e)>0};G.greaterThanOrEqualTo=G.gte=function(e){return this.cmp(e)>=0};G.isInteger=G.isint=function(){return this.e>this.d.length-2};G.isNegative=G.isneg=function(){return this.s<0};G.isPositive=G.ispos=function(){return this.s>0};G.isZero=function(){return this.s===0};G.lessThan=G.lt=function(e){return this.cmp(e)<0};G.lessThanOrEqualTo=G.lte=function(e){return this.cmp(e)<1};G.logarithm=G.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Le))throw Error(Ve+"NaN");if(r.s<1)throw Error(Ve+(r.s?"NaN":"-Infinity"));return r.eq(Le)?new n(0):(de=!1,t=ht(Sn(r,a),Sn(e,a),a),de=!0,se(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k0(t,e):C0(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ve+"NaN");return r.s?(de=!1,t=ht(r,e,0,1).times(e),de=!0,r.minus(t)):se(new n(r),i)};G.naturalExponential=G.exp=function(){return M0(this)};G.naturalLogarithm=G.ln=function(){return Sn(this)};G.negated=G.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};G.plus=G.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?C0(t,e):k0(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Vt+e);if(t=be(i)+1,n=i.d.length-1,r=n*fe+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};G.squareRoot=G.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(Ve+"NaN")}for(e=be(u),de=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=nt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=zr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(ht(u,a,o+2)).times(.5),nt(a.d).slice(0,o)===(t=nt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(se(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return de=!0,se(n,r)};G.times=G.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,d=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=d.length,c=p.length,s<c&&(a=d,d=p,p=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*d[i-n-1]+t,a[i--]=u%Pe|0,t=u/Pe|0;a[i]=(a[i]+t)%Pe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,de?se(e,l.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ut(e,0,Wr),t===void 0?t=n.rounding:ut(t,0,8),se(r,e+be(r)+1,t))};G.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Zt(n,!0):(ut(e,0,Wr),t===void 0?t=i.rounding:ut(t,0,8),n=se(new i(n),e+1,t),r=Zt(n,!0,e+1)),r};G.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Zt(i):(ut(e,0,Wr),t===void 0?t=a.rounding:ut(t,0,8),n=se(new a(i),e+be(i)+1,t),r=Zt(n.abs(),!1,e+be(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return se(new t(e),be(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(Le);if(u=new s(u),!u.s){if(e.s<1)throw Error(Ve+"Infinity");return u}if(u.eq(Le))return u;if(n=s.precision,e.eq(Le))return se(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=E0){for(i=new s(Le),t=Math.ceil(n/fe+4),de=!1;r%2&&(i=i.times(u),Yy(i.d,t)),r=zr(r/2),r!==0;)u=u.times(u),Yy(u.d,t);return de=!0,e.s<0?new s(Le).div(i):se(i,n)}}else if(a<0)throw Error(Ve+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,de=!1,i=e.times(Sn(u,n+c)),de=!0,i=M0(i),i.s=a,i};G.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=be(i),n=Zt(i,r<=a.toExpNeg||r>=a.toExpPos)):(ut(e,1,Wr),t===void 0?t=a.rounding:ut(t,0,8),i=se(new a(i),e,t),r=be(i),n=Zt(i,e<=r||r<=a.toExpNeg,e)),n};G.toSignificantDigits=G.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ut(e,1,Wr),t===void 0?t=n.rounding:ut(t,0,8)),se(new n(r),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=be(e),r=e.constructor;return Zt(e,t<=r.toExpNeg||t>=r.toExpPos)};function C0(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),de?se(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/fe),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/Pe|0,s[a]%=Pe;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,de?se(t,l):t}function ut(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Vt+e)}function nt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=fe-n.length,r&&(a+=St(r)),a+=n;o=e[t],n=o+"",r=fe-n.length,r&&(a+=St(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ht=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Pe|0,o=a/Pe|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Pe+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,d,p,y,v,h,b,x,w,O,g,m,_,P,A=n.constructor,M=n.s==i.s?1:-1,T=n.d,j=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Ve+"Division by zero");for(s=n.e-i.e,_=j.length,g=T.length,p=new A(M),y=p.d=[],c=0;j[c]==(T[c]||0);)++c;if(j[c]>(T[c]||0)&&--s,a==null?x=a=A.precision:o?x=a+(be(n)-be(i))+1:x=a,x<0)return new A(0);if(x=x/fe+2|0,c=0,_==1)for(f=0,j=j[0],x++;(c<g||f)&&x--;c++)w=f*Pe+(T[c]||0),y[c]=w/j|0,f=w%j|0;else{for(f=Pe/(j[0]+1)|0,f>1&&(j=e(j,f),T=e(T,f),_=j.length,g=T.length),O=_,v=T.slice(0,_),h=v.length;h<_;)v[h++]=0;P=j.slice(),P.unshift(0),m=j[0],j[1]>=Pe/2&&++m;do f=0,u=t(j,v,_,h),u<0?(b=v[0],_!=h&&(b=b*Pe+(v[1]||0)),f=b/m|0,f>1?(f>=Pe&&(f=Pe-1),l=e(j,f),d=l.length,h=v.length,u=t(l,v,d,h),u==1&&(f--,r(l,_<d?P:j,d))):(f==0&&(u=f=1),l=j.slice()),d=l.length,d<h&&l.unshift(0),r(v,l,h),u==-1&&(h=v.length,u=t(j,v,_,h),u<1&&(f++,r(v,_<h?P:j,h))),h=v.length):u===0&&(f++,v=[0]),y[c++]=f,u&&v[0]?v[h++]=T[O]||0:(v=[T[O]],h=1);while((O++<g||v[0]!==void 0)&&x--)}return y[0]||y.shift(),p.e=s,se(p,o?a+be(p)+1:a)}})();function M0(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(be(e)>16)throw Error(rd+be(e));if(!e.s)return new f(Le);for(de=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Lt(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Le),f.precision=u;;){if(i=se(i.times(e),u),r=r.times(++s),o=a.plus(ht(i,r,u)),nt(o.d).slice(0,u)===nt(a.d).slice(0,u)){for(;c--;)a=se(a.times(a),u);return f.precision=l,t==null?(de=!0,se(a,l)):a}a=o}}function be(e){for(var t=e.e*fe,r=e.d[0];r>=10;r/=10)t++;return t}function bc(e,t,r){if(t>e.LN10.sd())throw de=!0,r&&(e.precision=r),Error(Ve+"LN10 precision limit exceeded");return se(new e(e.LN10),t)}function St(e){for(var t="";e--;)t+="0";return t}function Sn(e,t){var r,n,i,a,o,u,s,c,f,l=1,d=10,p=e,y=p.d,v=p.constructor,h=v.precision;if(p.s<1)throw Error(Ve+(p.s?"NaN":"-Infinity"));if(p.eq(Le))return new v(0);if(t==null?(de=!1,c=h):c=t,p.eq(10))return t==null&&(de=!0),bc(v,c);if(c+=d,v.precision=c,r=nt(y),n=r.charAt(0),a=be(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=nt(p.d),n=r.charAt(0),l++;a=be(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return s=bc(v,c+2,h).times(a+""),p=Sn(new v(n+"."+r.slice(1)),c-d).plus(s),v.precision=h,t==null?(de=!0,se(p,h)):p;for(u=o=p=ht(p.minus(Le),p.plus(Le),c),f=se(p.times(p),c),i=3;;){if(o=se(o.times(f),c),s=u.plus(ht(o,new v(i),c)),nt(s.d).slice(0,c)===nt(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(bc(v,c+2,h).times(a+""))),u=ht(u,new v(l),c),v.precision=h,t==null?(de=!0,se(u,h)):u;u=s,i+=2}}function Xy(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;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=zr(r/fe),e.d=[],n=(r+1)%fe,r<0&&(n+=fe),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=fe;n<i;)e.d.push(+t.slice(n,n+=fe));t=t.slice(n),n=fe-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),de&&(e.e>Ui||e.e<-Ui))throw Error(rd+r)}else e.s=0,e.e=0,e.d=[0];return e}function se(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=fe,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/fe),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=fe,i=n-fe+o}if(r!==void 0&&(a=Lt(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/Lt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=be(e),l.length=1,t=t-a-1,l[0]=Lt(10,(fe-t%fe)%fe),e.e=zr(-t/fe)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Lt(10,fe-n),l[f]=i>0?(c/Lt(10,o-i)%Lt(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Pe&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Pe)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(de&&(e.e>Ui||e.e<-Ui))throw Error(rd+be(e));return e}function k0(e,t){var r,n,i,a,o,u,s,c,f,l,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),de?se(t,p):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(p/fe),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=Pe-1;--s[a],s[i]+=Pe}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,de?se(t,p):t):new d(0)}function Zt(e,t,r){var n,i=be(e),a=nt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+St(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+St(-i-1)+a,r&&(n=r-o)>0&&(a+=St(n))):i>=o?(a+=St(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+St(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=St(n))),e.s<0?"-"+a:a}function Yy(e,t){if(e.length>t)return e.length=t,!0}function $0(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Vt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Xy(o,a.toString())}else if(typeof a!="string")throw Error(Vt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,lT.test(a))Xy(o,a);else throw Error(Vt+a)}if(i.prototype=G,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=$0,i.config=i.set=fT,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function fT(e){if(!e||typeof e!="object")throw Error(Ve+"Object expected");var t,r,n,i=["precision",1,Wr,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(zr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Vt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Vt+r+": "+n);return this}var nd=$0(cT);Le=new nd(1);const ue=nd;function dT(e){return yT(e)||vT(e)||pT(e)||hT()}function hT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pT(e,t){if(e){if(typeof e=="string")return Ol(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ol(e,t)}}function vT(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function yT(e){if(Array.isArray(e))return Ol(e)}function Ol(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var mT=function(t){return t},I0={},N0=function(t){return t===I0},Zy=function(t){return function r(){return arguments.length===0||arguments.length===1&&N0(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},gT=function e(t,r){return t===1?r:Zy(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==I0}).length;return o>=t?r.apply(void 0,i):e(t-o,Zy(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return N0(l)?s.shift():l});return r.apply(void 0,dT(f).concat(s))}))})},Ia=function(t){return gT(t.length,t)},_l=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},bT=Ia(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),xT=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return mT;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},Sl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},R0=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function wT(e){var t;return e===0?t=1:t=Math.floor(new ue(e).abs().log(10).toNumber())+1,t}function OT(e,t,r){for(var n=new ue(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var _T=Ia(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),ST=Ia(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),AT=Ia(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Na={rangeStep:OT,getDigitCount:wT,interpolateNumber:_T,uninterpolateNumber:ST,uninterpolateTruncation:AT};function Al(e){return TT(e)||jT(e)||D0(e)||PT()}function PT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jT(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function TT(e){if(Array.isArray(e))return Pl(e)}function An(e,t){return MT(e)||CT(e,t)||D0(e,t)||ET()}function ET(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 15In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D0(e,t){if(e){if(typeof e=="string")return Pl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pl(e,t)}}function Pl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function CT(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function MT(e){if(Array.isArray(e))return e}function q0(e){var t=An(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function B0(e,t,r){if(e.lte(0))return new ue(0);var n=Na.getDigitCount(e.toNumber()),i=new ue(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ue(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new ue(Math.ceil(s))}function kT(e,t,r){var n=1,i=new ue(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ue(10).pow(Na.getDigitCount(e)-1),i=new ue(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ue(Math.floor(e)))}else e===0?i=new ue(Math.floor((t-1)/2)):r||(i=new ue(Math.floor(e)));var o=Math.floor((t-1)/2),u=xT(bT(function(s){return i.add(new ue(s-o).mul(n)).toNumber()}),_l);return u(0,t)}function L0(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ue(0),tickMin:new ue(0),tickMax:new ue(0)};var a=B0(new ue(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ue(0):(o=new ue(e).add(t).div(2),o=o.sub(new ue(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new ue(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?L0(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new ue(u).mul(a)),tickMax:o.add(new ue(s).mul(a))})}function $T(e){var t=An(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=q0([r,n]),s=An(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(Al(_l(0,i-1).map(function(){return 1/0}))):[].concat(Al(_l(0,i-1).map(function(){return-1/0})),[f]);return r>n?Sl(l):l}if(c===f)return kT(c,i,a);var d=L0(c,f,o,a),p=d.step,y=d.tickMin,v=d.tickMax,h=Na.rangeStep(y,v.add(new ue(.1).mul(p)),p);return r>n?Sl(h):h}function IT(e,t){var r=An(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=q0([n,i]),u=An(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=B0(new ue(c).sub(s).div(f-1),a,0),d=[].concat(Al(Na.rangeStep(new ue(s),new ue(c).sub(new ue(.99).mul(l)),l)),[c]);return n>i?Sl(d):d}var NT=R0($T),RT=R0(IT),DT="Invariant failed";function Jt(e,t){throw new Error(DT)}var qT=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Or(e){"@babel/helpers - typeof";return Or=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},Or(e)}function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wi.apply(this,arguments)}function BT(e,t){return WT(e)||UT(e,t)||FT(e,t)||LT()}function LT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 16In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FT(e,t){if(e){if(typeof e=="string")return Jy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jy(e,t)}}function Jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function UT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function WT(e){if(Array.isArray(e))return e}function zT(e,t){if(e==null)return{};var r=GT(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function HT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,W0(n.key),n)}}function VT(e,t,r){return t&&KT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XT(e,t,r){return t=zi(t),YT(e,F0()?Reflect.construct(t,r||[],zi(e).constructor):t.apply(e,r))}function YT(e,t){if(t&&(Or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZT(e)}function ZT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F0=function(){return!!e})()}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zi(e)}function JT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jl(e,t)}function jl(e,t){return jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jl(e,t)}function U0(e,t,r){return t=W0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W0(e){var t=QT(e,"string");return Or(t)=="symbol"?t:t+""}function QT(e,t){if(Or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ra=(function(e){function t(){return HT(this,t),XT(this,t,arguments)}return JT(t,e),VT(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,d=zT(n,qT),p=ee(d,!1);this.props.direction==="x"&&f.type!=="number"&&Jt();var y=s.map(function(v){var h=c(v,u),b=h.x,x=h.y,w=h.value,O=h.errorVal;if(!O)return null;var g=[],m,_;if(Array.isArray(O)){var P=BT(O,2);m=P[0],_=P[1]}else m=_=O;if(a==="vertical"){var A=f.scale,M=x+i,T=M+o,j=M-o,C=A(w-m),k=A(w+_);g.push({x1:k,y1:T,x2:k,y2:j}),g.push({x1:C,y1:M,x2:k,y2:M}),g.push({x1:C,y1:T,x2:C,y2:j})}else if(a==="horizontal"){var $=l.scale,N=b+i,D=N-o,L=N+o,W=$(w-m),B=$(w+_);g.push({x1:D,y1:B,x2:L,y2:B}),g.push({x1:N,y1:W,x2:N,y2:B}),g.push({x1:D,y1:W,x2:L,y2:W})}return E.createElement(pe,Wi({className:"recharts-errorBar",key:"bar-".concat(g.map(function(H){return"".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))},p),g.map(function(H){return E.createElement("line",Wi({},H,{key:"line-".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))}))});return E.createElement(pe,{className:"recharts-errorBars"},y)}}])})(E.Component);U0(Ra,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});U0(Ra,"displayName","ErrorBar");function Pn(e){"@babel/helpers - typeof";return Pn=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},Pn(e)}function Qy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qy(Object(r),!0).forEach(function(n){eE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eE(e,t,r){return t=tE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tE(e){var t=rE(e,"string");return Pn(t)=="symbol"?t:t+""}function rE(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z0=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Be(r,fr);if(!o)return null;var u=fr.defaultProps,s=u!==void 0?qt(qt({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var d=l.item,p=l.props,y=p.sectors||p.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,d=l.type.defaultProps,p=d!==void 0?qt(qt({},d),l.props):{},y=p.dataKey,v=p.name,h=p.legendType,b=p.hide;return{inactive:b,dataKey:y,type:s.iconType||h||"square",color:id(l),value:v||y,payload:p}}),qt(qt(qt({},s),fr.getWithHeight(o,i)),{},{payload:c,item:o})};function jn(e){"@babel/helpers - typeof";return jn=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},jn(e)}function em(e){return oE(e)||aE(e)||iE(e)||nE()}function nE(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iE(e,t){if(e){if(typeof e=="string")return Tl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tl(e,t)}}function aE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oE(e){if(Array.isArray(e))return Tl(e)}function Tl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tm(Object(r),!0).forEach(function(n){hr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hr(e,t,r){return t=uE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uE(e){var t=sE(e,"string");return jn(t)=="symbol"?t:t+""}function sE(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fe(e,t,r){return te(e)||te(t)?r:Se(t)?Ke(e,t,r):Q(t)?t(e):r}function sn(e,t,r,n){var i=oT(e,function(u){return Fe(u,t)});if(r==="number"){var a=i.filter(function(u){return F(u)||parseFloat(u)});return a.length?[$a(a),At(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!te(u)}):i;return o.map(function(u){return Se(u)||u instanceof Date?u:""})}var cE=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,d=c>=u-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(Qe(l-f)!==Qe(d-l)){var y=[];if(Qe(d-l)===Qe(s[1]-s[0])){p=d;var v=l+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var h=d+s[1]-s[0];y[0]=Math.min(l,(h+l)/2),y[1]=Math.max(l,(h+l)/2)}var b=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var x=Math.min(f,d),w=Math.max(f,d);if(t>(x+l)/2&&t<=(w+l)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},id=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},lE=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),d=0,p=l.length;d<p;d++){var y=f[l[d]],v=y.items,h=y.cateAxisId,b=v.filter(function(_){return dt(_.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?ye(ye({},x),b[0].props):b[0].props,O=w.barSize,g=w[h];o[g]||(o[g]=[]);var m=te(O)?r:O;o[g].push({item:b[0],stackList:b.slice(1),barSize:te(m)?void 0:Yt(m,n,0)})}}return o},fE=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=Yt(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/s,y=o.reduce(function(O,g){return O+g.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&p>0&&(d=!0,p*=.9,y=s*p);var v=(i-y)/2>>0,h={offset:v-c,size:0};f=o.reduce(function(O,g){var m={item:g.item,position:{offset:h.offset+h.size+c,size:d?p:g.barSize}},_=[].concat(em(O),[m]);return h=_[_.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(P){_.push({item:P,position:h})}),_},l)}else{var b=Yt(n,i,0,!0);i-2*b-(s-1)*c<=0&&(c=0);var x=(i-2*b-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,g,m){var _=[].concat(em(O),[{item:g.item,position:{offset:b+(x+c)*m+(x-w)/2,size:w}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(P){_.push({item:P,position:_[_.length-1].position})}),_},l)}return f},dE=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=z0({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,d=f.height,p=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&F(t[p]))return ye(ye({},t),{},hr({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&F(t[y]))return ye(ye({},t),{},hr({},y,t[y]+(d||0)))}return t},hE=function(t,r,n){return te(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},G0=function(t,r,n,i,a){var o=r.props.children,u=et(o,Ra).filter(function(c){return hE(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Fe(f,n);if(te(l))return c;var d=Array.isArray(l)?[$a(l),At(l)]:[l,l],p=s.reduce(function(y,v){var h=Fe(f,v,0),b=d[0]-Math.abs(Array.isArray(h)?h[0]:h),x=d[1]+Math.abs(Array.isArray(h)?h[1]:h);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},pE=function(t,r,n,i,a){var o=r.map(function(u){return G0(t,u,n,a,i)}).filter(function(u){return!te(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},H0=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&G0(t,s,c,i)||sn(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},K0=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},zt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&u?.length>=2?Qe(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=a?a.indexOf(l):l;return{coordinate:i(d)+c,value:l,offset:c}});return f.filter(function(l){return!Br(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:i(l)+c,value:l,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,d){return{coordinate:i(l)+c,value:a?a[l]:l,index:d,offset:c}})},xc=new WeakMap,fi=function(t,r){if(typeof r!="function")return t;xc.has(t)||xc.set(t,new WeakMap);var n=xc.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},vE=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:gn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:qi(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:un(),realScaleType:"point"}:a==="category"?{scale:gn(),realScaleType:"band"}:{scale:qi(),realScaleType:"linear"};if(Xt(i)){var s="scale".concat(xa(i));return{scale:(Ly[s]||un)(),realScaleType:Ly[s]?s:"point"}}return Q(i)?{scale:i}:{scale:un(),realScaleType:"point"}},rm=1e-4,yE=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-rm,o=Math.max(i[0],i[1])+rm,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},mE=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},gE=function(t,r){if(!r||r.length!==2||!F(r[0])||!F(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!F(t[0])||t[0]<n)&&(a[0]=n),(!F(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},bE=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=Br(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},xE=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=Br(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},wE={sign:bE,expand:nO,none:pr,silhouette:iO,wiggle:aO,positive:xE},OE=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=wE[n],o=rO().keys(i).value(function(u,s){return+Fe(u,s,0)}).order(il).offset(a);return o(t)},_E=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,d){var p,y=(p=d.type)!==null&&p!==void 0&&p.defaultProps?ye(ye({},d.type.defaultProps),d.props):d.props,v=y.stackId,h=y.hide;if(h)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(Se(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[Vn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return ye(ye({},l),{},hr({},b,x))},s),f={};return Object.keys(c).reduce(function(l,d){var p=c[d];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,h){var b=p.stackGroups[h];return ye(ye({},v),{},hr({},h,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:OE(t,b.items,a)}))},y)}return ye(ye({},l),{},hr({},d,p))},f)},SE=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=NT(c,a,u);return t.domain([$a(f),At(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),d=RT(l,a,u);return{niceTicks:d}}return null};function nm(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!te(i[t.dataKey])){var u=mi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=Fe(i,te(o)?t.dataKey:o);return te(s)?null:t.scale(s)}var im=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=Fe(o,r.dataKey,r.domain[u]);return te(s)?null:r.scale(s)-a/2+i},AE=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},PE=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Se(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},jE=function(t){return t.reduce(function(r,n){return[$a(n.concat([r[0]]).filter(F)),At(n.concat([r[1]]).filter(F))]},[1/0,-1/0])},V0=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=jE(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},am=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,om=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,El=function(t,r,n){if(Q(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(F(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(am.test(t[0])){var a=+am.exec(t[0])[1];i[0]=r[0]-a}else Q(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(F(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(om.test(t[1])){var o=+om.exec(t[1])[1];i[1]=r[1]+o}else Q(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Gi=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=kf(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},um=function(t,r,n){return!t||!t.length||_n(t,Ke(n,"type.defaultProps.domain"))?r:t},X0=function(t,r){var n=t.type.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return ye(ye({},ee(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:id(t),value:Fe(r,i),type:s,payload:r,chartType:c,hide:f})};function Tn(e){"@babel/helpers - typeof";return Tn=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},Tn(e)}function sm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sm(Object(r),!0).forEach(function(n){TE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TE(e,t,r){return t=EE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EE(e){var t=CE(e,"string");return Tn(t)=="symbol"?t:t+""}function CE(e,t){if(Tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hi=Math.PI/180,ME=function(t){return t*180/Math.PI},Ee=function(t,r,n,i){return{x:t+Math.cos(-Hi*i)*n,y:r+Math.sin(-Hi*i)*n}},kE=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},$E=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=kE({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:ME(c),angleInRadian:c}},IE=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},NE=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},lm=function(t,r){var n=t.x,i=t.y,a=$E({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=IE(r),l=f.startAngle,d=f.endAngle,p=u,y;if(l<=d){for(;p>d;)p-=360;for(;p<l;)p+=360;y=p>=l&&p<=d}else{for(;p>l;)p-=360;for(;p<d;)p+=360;y=p>=d&&p<=l}return y?cm(cm({},r),{},{radius:o,angle:NE(p,r)}):null};function En(e){"@babel/helpers - typeof";return En=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},En(e)}var RE=["offset"];function DE(e){return FE(e)||LE(e)||BE(e)||qE()}function qE(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BE(e,t){if(e){if(typeof e=="string")return Cl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cl(e,t)}}function LE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FE(e){if(Array.isArray(e))return Cl(e)}function Cl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function UE(e,t){if(e==null)return{};var r=WE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fm(Object(r),!0).forEach(function(n){zE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zE(e,t,r){return t=GE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GE(e){var t=HE(e,"string");return En(t)=="symbol"?t:t+""}function HE(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cn.apply(this,arguments)}var KE=function(t){var r=t.value,n=t.formatter,i=te(t.children)?r:t.children;return Q(n)?n(i):i},VE=function(t,r){var n=Qe(r-t),i=Math.min(Math.abs(r-t),360);return n*i},XE=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,d=s.outerRadius,p=s.startAngle,y=s.endAngle,v=s.clockWise,h=(l+d)/2,b=VE(p,y),x=b>=0?1:-1,w,O;i==="insideStart"?(w=p+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=b<=0?O:!O;var g=Ee(c,f,h,w),m=Ee(c,f,h,w+(O?1:-1)*359),_="M".concat(g.x,",").concat(g.y,` 19 A`).concat(h,",").concat(h,",0,1,").concat(O?0:1,`, 20 `).concat(m.x,",").concat(m.y),P=te(t.id)?Vn("recharts-radial-line-"):t.id;return E.createElement("text",Cn({},n,{dominantBaseline:"central",className:ne("recharts-radial-bar-label",u)}),E.createElement("defs",null,E.createElement("path",{id:P,d:_})),E.createElement("textPath",{xlinkHref:"#".concat(P)},r))},YE=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,d=(f+l)/2;if(i==="outside"){var p=Ee(o,u,c+n,d),y=p.x,v=p.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var h=(s+c)/2,b=Ee(o,u,h,d),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},ZE=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,d=l*i,p=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,h=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:p};return _e(_e({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+d,textAnchor:"middle",verticalAnchor:y};return _e(_e({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var g={x:u-h,y:s+f/2,textAnchor:b,verticalAnchor:"middle"};return _e(_e({},g),n?{width:Math.max(g.x-n.x,0),height:f}:{})}if(a==="right"){var m={x:u+c+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return _e(_e({},m),n?{width:Math.max(n.x+n.width-m.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?_e({x:u+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?_e({x:u+c-h,y:s+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?_e({x:u+c/2,y:s+d,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?_e({x:u+c/2,y:s+f-d,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?_e({x:u+h,y:s+d,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?_e({x:u+c-h,y:s+d,textAnchor:b,verticalAnchor:y},_):a==="insideBottomLeft"?_e({x:u+h,y:s+f-d,textAnchor:x,verticalAnchor:p},_):a==="insideBottomRight"?_e({x:u+c-h,y:s+f-d,textAnchor:b,verticalAnchor:p},_):qr(a)&&(F(a.x)||Ft(a.x))&&(F(a.y)||Ft(a.y))?_e({x:u+Yt(a.x,c),y:s+Yt(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):_e({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},JE=function(t){return"cx"in t&&F(t.cx)};function Me(e){var t=e.offset,r=t===void 0?5:t,n=UE(e,RE),i=_e({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,d=i.textBreakAll;if(!a||te(u)&&te(s)&&!R.isValidElement(c)&&!Q(c))return null;if(R.isValidElement(c))return R.cloneElement(c,i);var p;if(Q(c)){if(p=R.createElement(c,i),R.isValidElement(p))return p}else p=KE(i);var y=JE(a),v=ee(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return XE(i,p,v);var h=y?YE(i):ZE(i);return E.createElement(Ci,Cn({className:ne("recharts-label",l)},v,h,{breakAll:d}),p)}Me.displayName="Label";var Y0=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,d=t.y,p=t.top,y=t.left,v=t.width,h=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(F(v)&&F(h)){if(F(l)&&F(d))return{x:l,y:d,width:v,height:h};if(F(p)&&F(y))return{x:p,y,width:v,height:h}}return F(l)&&F(d)?{x:l,y:d,width:0,height:0}:F(r)&&F(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},QE=function(t,r){return t?t===!0?E.createElement(Me,{key:"label-implicit",viewBox:r}):Se(t)?E.createElement(Me,{key:"label-implicit",viewBox:r,value:t}):R.isValidElement(t)?t.type===Me?R.cloneElement(t,{key:"label-implicit",viewBox:r}):E.createElement(Me,{key:"label-implicit",content:t,viewBox:r}):Q(t)?E.createElement(Me,{key:"label-implicit",content:t,viewBox:r}):qr(t)?E.createElement(Me,Cn({viewBox:r},t,{key:"label-implicit"})):null:null},eC=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=Y0(t),o=et(i,Me).map(function(s,c){return R.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=QE(t.label,r||a);return[u].concat(DE(o))};Me.parseViewBox=Y0;Me.renderCallByParent=eC;var wc,dm;function tC(){if(dm)return wc;dm=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return wc=e,wc}var rC=tC();const nC=he(rC);function Mn(e){"@babel/helpers - typeof";return Mn=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},Mn(e)}var iC=["valueAccessor"],aC=["data","dataKey","clockWise","id","textBreakAll"];function oC(e){return lC(e)||cC(e)||sC(e)||uC()}function uC(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sC(e,t){if(e){if(typeof e=="string")return Ml(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ml(e,t)}}function cC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lC(e){if(Array.isArray(e))return Ml(e)}function Ml(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ki.apply(this,arguments)}function hm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(n){fC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fC(e,t,r){return t=dC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e){var t=hC(e,"string");return Mn(t)=="symbol"?t:t+""}function hC(e,t){if(Mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vm(e,t){if(e==null)return{};var r=pC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var vC=function(t){return Array.isArray(t.value)?nC(t.value):t.value};function Tt(e){var t=e.valueAccessor,r=t===void 0?vC:t,n=vm(e,iC),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=vm(n,aC);return!i||!i.length?null:E.createElement(pe,{className:"recharts-label-list"},i.map(function(f,l){var d=te(a)?r(f,l):Fe(f&&f.payload,a),p=te(u)?{}:{id:"".concat(u,"-").concat(l)};return E.createElement(Me,Ki({},ee(f,!0),c,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:Me.parseViewBox(te(o)?f:pm(pm({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Tt.displayName="LabelList";function yC(e,t){return e?e===!0?E.createElement(Tt,{key:"labelList-implicit",data:t}):E.isValidElement(e)||Q(e)?E.createElement(Tt,{key:"labelList-implicit",data:t,content:e}):qr(e)?E.createElement(Tt,Ki({data:t},e,{key:"labelList-implicit"})):null:null}function mC(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=et(n,Tt).map(function(o,u){return R.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=yC(e.label,t);return[a].concat(oC(i))}Tt.renderCallByParent=mC;function kn(e){"@babel/helpers - typeof";return kn=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},kn(e)}function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kl.apply(this,arguments)}function ym(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ym(Object(r),!0).forEach(function(n){gC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ym(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gC(e,t,r){return t=bC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bC(e){var t=xC(e,"string");return kn(t)=="symbol"?t:t+""}function xC(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wC=function(t,r){var n=Qe(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},di=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/Hi,d=c?a:a+o*l,p=Ee(r,n,f,d),y=Ee(r,n,i,d),v=c?a-o*l:a,h=Ee(r,n,f*Math.cos(l*Hi),v);return{center:p,circleTangency:y,lineTangency:h,theta:l}},Z0=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=wC(o,u),c=o+s,f=Ee(r,n,a,o),l=Ee(r,n,a,c),d="M ".concat(f.x,",").concat(f.y,` 22 A `).concat(a,",").concat(a,`,0, 23 `).concat(+(Math.abs(s)>180),",").concat(+(o>c),`, 24 `).concat(l.x,",").concat(l.y,` 25 `);if(i>0){var p=Ee(r,n,i,o),y=Ee(r,n,i,c);d+="L ".concat(y.x,",").concat(y.y,` 26 A `).concat(i,",").concat(i,`,0, 27 `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`, 28 `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},OC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=Qe(f-c),d=di({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,y=d.lineTangency,v=d.theta,h=di({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),b=h.circleTangency,x=h.lineTangency,w=h.theta,O=s?Math.abs(c-f):Math.abs(c-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,` 29 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 30 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 31 `):Z0({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var g="M ".concat(y.x,",").concat(y.y,` 32 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,` 33 A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,` 34 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,` 35 `);if(i>0){var m=di({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=m.circleTangency,P=m.lineTangency,A=m.theta,M=di({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),T=M.circleTangency,j=M.lineTangency,C=M.theta,k=s?Math.abs(c-f):Math.abs(c-f)-A-C;if(k<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(j.x,",").concat(j.y,` 36 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(T.x,",").concat(T.y,` 37 A`).concat(i,",").concat(i,",0,").concat(+(k>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,` 38 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(P.x,",").concat(P.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},_C={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},J0=function(t){var r=mm(mm({},_C),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<a||f===l)return null;var p=ne("recharts-sector",d),y=o-a,v=Yt(u,y,0,!0),h;return v>0&&Math.abs(f-l)<360?h=OC({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):h=Z0({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),E.createElement("path",kl({},ee(r,!0),{className:p,d:h,role:"img"}))};function $n(e){"@babel/helpers - typeof";return $n=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},$n(e)}function $l(){return $l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$l.apply(this,arguments)}function gm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gm(Object(r),!0).forEach(function(n){SC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SC(e,t,r){return t=AC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AC(e){var t=PC(e,"string");return $n(t)=="symbol"?t:t+""}function PC(e,t){if($n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xm={curveBasisClosed:Gw,curveBasisOpen:Hw,curveBasis:zw,curveBumpX:Cw,curveBumpY:Mw,curveLinearClosed:Kw,curveLinear:Oa,curveMonotoneX:Vw,curveMonotoneY:Xw,curveNatural:Yw,curveStep:Zw,curveStepAfter:Qw,curveStepBefore:Jw},hi=function(t){return t.x===+t.x&&t.y===+t.y},Zr=function(t){return t.x},Jr=function(t){return t.y},jC=function(t,r){if(Q(t))return t;var n="curve".concat(xa(t));return(n==="curveMonotone"||n==="curveBump")&&r?xm["".concat(n).concat(r==="vertical"?"Y":"X")]:xm[n]||Oa},TC=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,f=jC(n,u),l=c?a.filter(function(v){return hi(v)}):a,d;if(Array.isArray(o)){var p=c?o.filter(function(v){return hi(v)}):o,y=l.map(function(v,h){return bm(bm({},v),{},{base:p[h]})});return u==="vertical"?d=ii().y(Jr).x1(Zr).x0(function(v){return v.base.x}):d=ii().x(Zr).y1(Jr).y0(function(v){return v.base.y}),d.defined(hi).curve(f),d(y)}return u==="vertical"&&F(o)?d=ii().y(Jr).x1(Zr).x0(o):F(o)?d=ii().x(Zr).y1(Jr).y0(o):d=ib().x(Zr).y(Jr),d.defined(hi).curve(f),d(l)},cn=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?TC(t):i;return R.createElement("path",$l({},ee(t,!1),gi(t),{className:ne("recharts-curve",r),d:o,ref:a}))};const{getOwnPropertyNames:EC,getOwnPropertySymbols:CC}=Object,{hasOwnProperty:MC}=Object.prototype;function Oc(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function pi(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const s=e(r,n,i);return a.delete(r),a.delete(n),s}}function kC(e){return e?.[Symbol.toStringTag]}function wm(e){return EC(e).concat(CC(e))}const $C=Object.hasOwn||((e,t)=>MC.call(e,t));function rr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const IC="__v",NC="__o",RC="_owner",{getOwnPropertyDescriptor:Om,keys:_m}=Object;function DC(e,t){return e.byteLength===t.byteLength&&Vi(new Uint8Array(e),new Uint8Array(t))}function qC(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function BC(e,t){return e.byteLength===t.byteLength&&Vi(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function LC(e,t){return rr(e.getTime(),t.getTime())}function FC(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function UC(e,t){return e===t}function Sm(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,s=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let f=!1,l=0;for(;(u=c.next())&&!u.done;){if(i[l]){l++;continue}const d=o.value,p=u.value;if(r.equals(d[0],p[0],s,l,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}const WC=rr;function zC(e,t,r){const n=_m(e);let i=n.length;if(_m(t).length!==i)return!1;for(;i-- >0;)if(!Q0(e,t,r,n[i]))return!1;return!0}function Qr(e,t,r){const n=wm(e);let i=n.length;if(wm(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Q0(e,t,r,a)||(o=Om(e,a),u=Om(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function GC(e,t){return rr(e.valueOf(),t.valueOf())}function HC(e,t){return e.source===t.source&&e.flags===t.flags}function Am(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const s=t.values();let c=!1,f=0;for(;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function Vi(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function KC(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Q0(e,t,r,n){return(n===RC||n===NC||n===IC)&&(e.$$typeof||t.$$typeof)?!0:$C(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const VC="[object ArrayBuffer]",XC="[object Arguments]",YC="[object Boolean]",ZC="[object DataView]",JC="[object Date]",QC="[object Error]",eM="[object Map]",tM="[object Number]",rM="[object Object]",nM="[object RegExp]",iM="[object Set]",aM="[object String]",oM={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
38]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},uM="[object URL]",sM=Object.prototype.toString;function cM({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:s,arePrimitiveWrappersEqual:c,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:d,areUrlsEqual:p,unknownTagComparators:y}){return function(h,b,x){if(h===b)return!0;if(h==null||b==null)return!1;const w=typeof h;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?u(h,b,x):w==="function"?a(h,b,x):!1;const O=h.constructor;if(O!==b.constructor)return!1;if(O===Object)return s(h,b,x);if(Array.isArray(h))return t(h,b,x);if(O===Date)return n(h,b,x);if(O===RegExp)return f(h,b,x);if(O===Map)return o(h,b,x);if(O===Set)return l(h,b,x);const g=sM.call(h);if(g===JC)return n(h,b,x);if(g===nM)return f(h,b,x);if(g===eM)return o(h,b,x);if(g===iM)return l(h,b,x);if(g===rM)return typeof h.then!="function"&&typeof b.then!="function"&&s(h,b,x);if(g===uM)return p(h,b,x);if(g===QC)return i(h,b,x);if(g===XC)return s(h,b,x);if(oM[g])return d(h,b,x);if(g===VC)return e(h,b,x);if(g===ZC)return r(h,b,x);if(g===YC||g===tM||g===aM)return c(h,b,x);if(y){let m=y[g];if(!m){const _=kC(h);_&&(m=y[_])}if(m)return m(h,b,x)}return!1}}function lM({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:DC,areArraysEqual:r?Qr:qC,areDataViewsEqual:BC,areDatesEqual:LC,areErrorsEqual:FC,areFunctionsEqual:UC,areMapsEqual:r?Oc(Sm,Qr):Sm,areNumbersEqual:WC,areObjectsEqual:r?Qr:zC,arePrimitiveWrappersEqual:GC,areRegExpsEqual:HC,areSetsEqual:r?Oc(Am,Qr):Am,areTypedArraysEqual:r?Oc(Vi,Qr):Vi,areUrlsEqual:KC,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=pi(n.areArraysEqual),a=pi(n.areMapsEqual),o=pi(n.areObjectsEqual),u=pi(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function fM(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function dM({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,s){const{cache:c=e?new WeakMap:void 0,meta:f}=r();return t(u,s,{cache:c,equals:n,meta:f,strict:i})};if(e)return function(u,s){return t(u,s,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,s){return t(u,s,a)}}const hM=$t();$t({strict:!0});$t({circular:!0});$t({circular:!0,strict:!0});$t({createInternalComparator:()=>rr});$t({strict:!0,createInternalComparator:()=>rr});$t({circular:!0,createInternalComparator:()=>rr});$t({circular:!0,createInternalComparator:()=>rr,strict:!0});function $t(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=lM(e),o=cM(a),u=r?r(o):fM(o);return dM({circular:t,comparator:o,createState:n,equals:u,strict:i})}function pM(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Pm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):pM(i)};requestAnimationFrame(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 vM(e){return bM(e)||gM(e)||mM(e)||yM()}function yM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 39In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mM(e,t){if(e){if(typeof e=="string")return jm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jm(e,t)}}function jm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bM(e){if(Array.isArray(e))return e}function xM(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=vM(o),s=u[0],c=u.slice(1);if(typeof s=="number"){Pm(i.bind(null,c),s);return}i(s),Pm(i.bind(null,c));return}Il(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function In(e){"@babel/helpers - typeof";return In=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},In(e)}function Tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Em(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 150,507 bytes, lines 39-60
39t%2?Tm(Object(r),!0).forEach(function(n){ex(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ex(e,t,r){return t=wM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wM(e){var t=OM(e,"string");return In(t)==="symbol"?t:String(t)}function OM(e,t){if(In(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _M=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},SM=function(t){return t},AM=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},ln=function(t,r){return Object.keys(r).reduce(function(n,i){return Em(Em({},n),{},ex({},i,t(i,r[i])))},{})},Cm=function(t,r,n){return t.map(function(i){return"".concat(AM(i)," ").concat(r,"ms ").concat(n)}).join(",")};function PM(e,t){return EM(e)||TM(e,t)||tx(e,t)||jM()}function jM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 40In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function EM(e){if(Array.isArray(e))return e}function CM(e){return $M(e)||kM(e)||tx(e)||MM()}function MM(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tx(e,t){if(e){if(typeof e=="string")return Nl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nl(e,t)}}function kM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $M(e){if(Array.isArray(e))return Nl(e)}function Nl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Xi=1e-4,rx=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},nx=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Mm=function(t,r){return function(n){var i=rx(t,r);return nx(i,n)}},IM=function(t,r){return function(n){var i=rx(t,r),a=[].concat(CM(i.map(function(o,u){return o*u}).slice(1)),[0]);return nx(a,n)}},km=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(h){return parseFloat(h)}),f=PM(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Mm(i,o),d=Mm(a,u),p=IM(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,w=x,O=0;O<8;++O){var g=l(w)-x,m=p(w);if(Math.abs(g-x)<Xi||m<Xi)return d(w);w=y(w-g/m)}return d(w)};return v.isStepper=!1,v},NM=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(f,l,d){var p=-(f-l)*n,y=d*a,v=d+(p-y)*u/1e3,h=d*u/1e3+f;return Math.abs(h-l)<Xi&&Math.abs(v)<Xi?[l,0]:[h,v]};return s.isStepper=!0,s.dt=u,s},RM=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return km(i);case"spring":return NM();default:if(i.split("(")[0]==="cubic-bezier")return km(i)}return typeof i=="function"?i:null};function Nn(e){"@babel/helpers - typeof";return Nn=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},Nn(e)}function $m(e){return BM(e)||qM(e)||ix(e)||DM()}function DM(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 42In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BM(e){if(Array.isArray(e))return Dl(e)}function Im(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Im(Object(r),!0).forEach(function(n){Rl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Im(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rl(e,t,r){return t=LM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LM(e){var t=FM(e,"string");return Nn(t)==="symbol"?t:String(t)}function FM(e,t){if(Nn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UM(e,t){return GM(e)||zM(e,t)||ix(e,t)||WM()}function WM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ix(e,t){if(e){if(typeof e=="string")return Dl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dl(e,t)}}function Dl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function GM(e){if(Array.isArray(e))return e}var Yi=function(t,r,n){return t+(r-t)*n},ql=function(t){var r=t.from,n=t.to;return r!==n},HM=function e(t,r,n){var i=ln(function(a,o){if(ql(o)){var u=t(o.from,o.to,o.velocity),s=UM(u,2),c=s[0],f=s[1];return Te(Te({},o),{},{from:c,velocity:f})}return o},r);return n<1?ln(function(a,o){return ql(o)?Te(Te({},o),{},{velocity:Yi(o.velocity,i[a].velocity,n),from:Yi(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const KM=(function(e,t,r,n,i){var a=_M(e,t),o=a.reduce(function(h,b){return Te(Te({},h),{},Rl({},b,[e[b],t[b]]))},{}),u=a.reduce(function(h,b){return Te(Te({},h),{},Rl({},b,{from:e[b],velocity:0,to:t[b]}))},{}),s=-1,c,f,l=function(){return null},d=function(){return ln(function(b,x){return x.from},u)},p=function(){return!Object.values(u).filter(ql).length},y=function(b){c||(c=b);var x=b-c,w=x/r.dt;u=HM(r,u,w),i(Te(Te(Te({},e),t),d())),c=b,p()||(s=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=ln(function(g,m){return Yi.apply(void 0,$m(m).concat([r(x)]))},o);if(i(Te(Te(Te({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var O=ln(function(g,m){return Yi.apply(void 0,$m(m).concat([r(1)]))},o);i(Te(Te(Te({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});function _r(e){"@babel/helpers - typeof";return _r=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},_r(e)}var VM=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function XM(e,t){if(e==null)return{};var r=YM(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function _c(e){return e2(e)||QM(e)||JM(e)||ZM()}function ZM(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JM(e,t){if(e){if(typeof e=="string")return Bl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bl(e,t)}}function QM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function e2(e){if(Array.isArray(e))return Bl(e)}function Bl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Nm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nm(Object(r),!0).forEach(function(n){an(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function an(e,t,r){return t=ax(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ax(n.key),n)}}function n2(e,t,r){return t&&r2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ax(e){var t=i2(e,"string");return _r(t)==="symbol"?t:String(t)}function i2(e,t){if(_r(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_r(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ll(e,t)}function Ll(e,t){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ll(e,t)}function o2(e){var t=u2();return function(){var n=Zi(e),i;if(t){var a=Zi(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Fl(this,i)}}function Fl(e,t){if(t&&(_r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ul(e)}function Ul(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zi(e)}var mt=(function(e){a2(r,e);var t=o2(r);function r(n,i){var a;t2(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ul(a)),a.changeStyle=a.changeStyle.bind(Ul(a)),!u||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Fl(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof d=="function")return a.state={style:c},Fl(a);a.state={style:s?an({},s,c):c}}else a.state={style:{}};return a}return n2(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,d=this.state.style;if(u){if(!o){var p={style:s?an({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(p);return}if(!(hM(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||c?l:i.to;if(this.state&&d){var h={style:s?an({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(h)}this.runAnimation(Ye(Ye({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,d=i.onAnimationStart,p=KM(o,u,RM(c),s,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([d,f,y,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,d=l===void 0?0:l,p=function(v,h,b){if(b===0)return v;var x=h.duration,w=h.easing,O=w===void 0?"ease":w,g=h.style,m=h.properties,_=h.onAnimationEnd,P=b>0?o[b-1]:h,A=m||Object.keys(g);if(typeof O=="function"||O==="spring")return[].concat(_c(v),[a.runJSAnimation.bind(a,{from:P.style,to:g,duration:x,easing:O}),x]);var M=Cm(A,x,O),T=Ye(Ye(Ye({},P.style),g),{},{transition:M});return[].concat(_c(v),[T,x,_]).filter(SM)};return this.manager.start([s].concat(_c(o.reduce(p,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=xM());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,d=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?an({},u,s):s,h=Cm(Object.keys(v),o,c);y.start([f,a,Ye(Ye({},v),{},{transition:h}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=XM(i,VM),c=R.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(p){var y=p.props,v=y.style,h=v===void 0?{}:v,b=y.className,x=R.cloneElement(p,Ye(Ye({},s),{},{style:Ye(Ye({},h),f),className:b}));return x};return c===1?l(R.Children.only(a)):E.createElement("div",null,R.Children.map(a,function(d){return l(d)}))}}]),r})(R.PureComponent);mt.displayName="Animate";mt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};mt.propTypes={from:ae.oneOfType([ae.object,ae.string]),to:ae.oneOfType([ae.object,ae.string]),attributeName:ae.string,duration:ae.number,begin:ae.number,easing:ae.oneOfType([ae.string,ae.func]),steps:ae.arrayOf(ae.shape({duration:ae.number.isRequired,style:ae.object.isRequired,easing:ae.oneOfType([ae.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ae.func]),properties:ae.arrayOf("string"),onAnimationEnd:ae.func})),children:ae.oneOfType([ae.node,ae.func]),isActive:ae.bool,canBegin:ae.bool,onAnimationEnd:ae.func,shouldReAnimate:ae.bool,onAnimationStart:ae.func,onAnimationReStart:ae.func};function Rn(e){"@babel/helpers - typeof";return Rn=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},Rn(e)}function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ji.apply(this,arguments)}function s2(e,t){return d2(e)||f2(e,t)||l2(e,t)||c2()}function c2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l2(e,t){if(e){if(typeof e=="string")return Rm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rm(e,t)}}function Rm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function d2(e){if(Array.isArray(e))return e}function Dm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dm(Object(r),!0).forEach(function(n){h2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h2(e,t,r){return t=p2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p2(e){var t=v2(e,"string");return Rn(t)=="symbol"?t:t+""}function v2(e,t){if(Rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bm=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],d=0,p=4;d<p;d++)l[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`, 46 `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`, 47 `).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`, 48 `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,` 49 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+s*y,",").concat(r,` 50 L `).concat(t+n-s*y,",").concat(r,` 51 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*y,` 52 L `).concat(t+n,",").concat(r+i-u*y,` 53 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-s*y,",").concat(r+i,` 54 L `).concat(t+s*y,",").concat(r+i,` 55 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},y2=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),d=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=d}return!1},m2={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ad=function(t){var r=qm(qm({},m2),t),n=R.useRef(),i=R.useState(-1),a=s2(i,2),o=a[0],u=a[1];R.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,d=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=ne("recharts-rectangle",p);return x?E.createElement(mt,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:v,animationEasing:y,isActive:x},function(O){var g=O.width,m=O.height,_=O.x,P=O.y;return E.createElement(mt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,isActive:b,easing:y},E.createElement("path",Ji({},ee(r,!0),{className:w,d:Bm(_,P,g,m,d),ref:n})))}):E.createElement("path",Ji({},ee(r,!0),{className:w,d:Bm(s,c,f,l,d)}))};function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wl.apply(this,arguments)}var od=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ne("recharts-dot",a);return r===+r&&n===+n&&i===+i?R.createElement("circle",Wl({},ee(t,!1),gi(t),{className:o,cx:r,cy:n,r:i})):null};function Dn(e){"@babel/helpers - typeof";return Dn=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},Dn(e)}var g2=["x","y","top","left","width","height","className"];function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zl.apply(this,arguments)}function Lm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function b2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lm(Object(r),!0).forEach(function(n){x2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x2(e,t,r){return t=w2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w2(e){var t=O2(e,"string");return Dn(t)=="symbol"?t:t+""}function O2(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _2(e,t){if(e==null)return{};var r=S2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function S2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var A2=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},P2=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,d=t.height,p=d===void 0?0:d,y=t.className,v=_2(t,g2),h=b2({x:n,y:a,top:u,left:c,width:l,height:p},v);return!F(n)||!F(a)||!F(l)||!F(p)||!F(u)||!F(c)?null:E.createElement("path",zl({},ee(h,!0),{className:ne("recharts-cross",y),d:A2(n,a,l,p,u,c)}))},Sc,Fm;function j2(){if(Fm)return Sc;Fm=1;var e=jb(),t=e(Object.getPrototypeOf,Object);return Sc=t,Sc}var Ac,Um;function T2(){if(Um)return Ac;Um=1;var e=gt(),t=j2(),r=bt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var d=u.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==s}return Ac=c,Ac}var E2=T2();const C2=he(E2);var Pc,Wm;function M2(){if(Wm)return Pc;Wm=1;var e=gt(),t=bt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Pc=n,Pc}var k2=M2();const $2=he(k2);function qn(e){"@babel/helpers - typeof";return qn=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},qn(e)}function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qi.apply(this,arguments)}function I2(e,t){return q2(e)||D2(e,t)||R2(e,t)||N2()}function N2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 56In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R2(e,t){if(e){if(typeof e=="string")return zm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zm(e,t)}}function zm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function q2(e){if(Array.isArray(e))return e}function Gm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gm(Object(r),!0).forEach(function(n){B2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B2(e,t,r){return t=L2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L2(e){var t=F2(e,"string");return qn(t)=="symbol"?t:t+""}function F2(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Km=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},U2={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},W2=function(t){var r=Hm(Hm({},U2),t),n=R.useRef(),i=R.useState(-1),a=I2(i,2),o=a[0],u=a[1];R.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,b=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var x=ne("recharts-trapezoid",p);return b?E.createElement(mt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:d,x:s,y:c},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,g=w.lowerWidth,m=w.height,_=w.x,P=w.y;return E.createElement(mt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,easing:y},E.createElement("path",Qi({},ee(r,!0),{className:x,d:Km(_,P,O,g,m),ref:n})))}):E.createElement("g",null,E.createElement("path",Qi({},ee(r,!0),{className:x,d:Km(s,c,f,l,d)})))},z2=["option","shapeType","propTransformer","activeClassName","isActive"];function Bn(e){"@babel/helpers - typeof";return Bn=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},Bn(e)}function G2(e,t){if(e==null)return{};var r=H2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ea(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(r),!0).forEach(function(n){K2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K2(e,t,r){return t=V2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V2(e){var t=X2(e,"string");return Bn(t)=="symbol"?t:t+""}function X2(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y2(e,t){return ea(ea({},t),e)}function Z2(e,t){return e==="symbols"}function Xm(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return E.createElement(ad,r);case"trapezoid":return E.createElement(W2,r);case"sector":return E.createElement(J0,r);case"symbols":if(Z2(t))return E.createElement(Sf,r);break;default:return null}}function J2(e){return R.isValidElement(e)?e.props:e}function Q2(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?Y2:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=G2(e,z2),c;if(R.isValidElement(t))c=R.cloneElement(t,ea(ea({},s),J2(t)));else if(Q(t))c=t(s);else if(C2(t)&&!$2(t)){var f=i(t,s);c=E.createElement(Xm,{shapeType:r,elementProps:f})}else{var l=s;c=E.createElement(Xm,{shapeType:r,elementProps:l})}return u?E.createElement(pe,{className:o},c):c}function Da(e,t){return t!=null&&"trapezoids"in e.props}function qa(e,t){return t!=null&&"sectors"in e.props}function Ln(e,t){return t!=null&&"points"in e.props}function ek(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function tk(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function rk(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function nk(e,t){var r;return Da(e,t)?r=ek:qa(e,t)?r=tk:Ln(e,t)&&(r=rk),r}function ik(e,t){var r;return Da(e,t)?r="trapezoids":qa(e,t)?r="sectors":Ln(e,t)&&(r="points"),r}function ak(e,t){if(Da(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(qa(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Ln(e,t)?t.payload:{}}function ok(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=ik(r,t),a=ak(r,t),o=n.filter(function(s,c){var f=_n(a,s),l=r.props[i].filter(function(y){var v=nk(r,t);return v(y,t)}),d=r.props[i].indexOf(l[l.length-1]),p=c===d;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var jc,Ym;function uk(){if(Ym)return jc;Ym=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return jc=r,jc}var Tc,Zm;function ox(){if(Zm)return Tc;Zm=1;var e=Wb(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Tc=n,Tc}var Ec,Jm;function sk(){if(Jm)return Ec;Jm=1;var e=uk(),t=Pa(),r=ox();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return Ec=n,Ec}var Cc,Qm;function ck(){if(Qm)return Cc;Qm=1;var e=sk(),t=e();return Cc=t,Cc}var lk=ck();const ta=he(lk);function Fn(e){"@babel/helpers - typeof";return Fn=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},Fn(e)}function eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(r),!0).forEach(function(n){ux(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ux(e,t,r){return t=fk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fk(e){var t=dk(e,"string");return Fn(t)=="symbol"?t:t+""}function dk(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hk=["Webkit","Moz","O","ms"],pk=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=hk.reduce(function(a,o){return tg(tg({},a),{},ux({},o+n,r))},{});return i[t]=r,i};function Sr(e){"@babel/helpers - typeof";return Sr=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},Sr(e)}function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ra.apply(this,arguments)}function rg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rg(Object(r),!0).forEach(function(n){qe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ng(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cx(n.key),n)}}function yk(e,t,r){return t&&ng(e.prototype,t),r&&ng(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mk(e,t,r){return t=na(t),gk(e,sx()?Reflect.construct(t,r||[],na(e).constructor):t.apply(e,r))}function gk(e,t){if(t&&(Sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bk(e)}function bk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sx=function(){return!!e})()}function na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},na(e)}function xk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gl(e,t)}function Gl(e,t){return Gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gl(e,t)}function qe(e,t,r){return t=cx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cx(e){var t=wk(e,"string");return Sr(t)=="symbol"?t:t+""}function wk(e,t){if(Sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ok=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=un().domain(ta(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},ig=function(t){return t.changedTouches&&!!t.changedTouches.length},Ar=(function(e){function t(r){var n;return vk(this,t),n=mk(this,t,[r]),qe(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),qe(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),qe(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),qe(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),qe(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),qe(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),qe(n,"handleSlideDragStart",function(i){var a=ig(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return xk(t,e),yk(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,l),y=t.getIndexInRange(o,d);return{startIndex:p-p%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=Fe(a[n],u,n);return Q(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,d=s.startIndex,p=s.endIndex,y=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-u,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-u));var h=this.getIndex({startX:o+v,endX:u+v});(h.startIndex!==d||h.endIndex!==p)&&y&&y(h),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=ig(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,d=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,h=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+d-p-c):x<0&&(x=Math.max(x,l-c)),b[o]=c+x;var w=this.getIndex(b),O=w.startIndex,g=w.endIndex,m=function(){var P=h.length-1;return o==="startX"&&(u>s?O%v===0:g%v===0)||u<s&&g===P||o==="endX"&&(u>s?g%v===0:O%v===0)||u>s&&g===P};this.setState(qe(qe({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&m()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var d=l+n;if(!(d===-1||d>=u.length)){var p=u[d];i==="startX"&&p>=c||i==="endX"&&p<=s||this.setState(qe({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return E.createElement("rect",{stroke:c,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,c=n.children,f=n.padding,l=R.Children.only(c);return l?E.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,d=s.traveller,p=s.ariaLabel,y=s.data,v=s.startIndex,h=s.endIndex,b=Math.max(n,this.props.x),x=Mc(Mc({},ee(this.props,!1)),{},{x:b,y:c,width:f,height:l}),w=p||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[h])===null||o===void 0?void 0:o.name);return E.createElement(pe,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),u.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return E.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,d=f.endX,p=5,y={pointerEvents:"none",fill:c};return E.createElement(pe,{className:"recharts-brush-texts"},E.createElement(Ci,ra({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-p,y:o+u/2},y),this.getTextOfTick(i)),E.createElement(Ci,ra({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+s+p,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,d=this.state,p=d.startX,y=d.endX,v=d.isTextActive,h=d.isSlideMoving,b=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!F(u)||!F(s)||!F(c)||!F(f)||c<=0||f<=0)return null;var w=ne("recharts-brush",a),O=E.Children.count(o)===1,g=pk("userSelect","none");return E.createElement(pe,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||h||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return E.createElement(E.Fragment,null,E.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),E.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),E.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return E.isValidElement(n)?a=E.cloneElement(n,i):Q(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Mc({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?Ok({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(R.PureComponent);qe(Ar,"displayName","Brush");qe(Ar,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var kc,ag;function _k(){if(ag)return kc;ag=1;var e=Mf();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return kc=t,kc}var $c,og;function Sk(){if(og)return $c;og=1;var e=xb(),t=Ct(),r=_k(),n=Re(),i=Pa();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return $c=a,$c}var Ak=Sk();const Pk=he(Ak);var ot=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Ic,ug;function jk(){if(ug)return Ic;ug=1;var e=qb();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Ic=t,Ic}var Nc,sg;function Tk(){if(sg)return Nc;sg=1;var e=jk(),t=Rb(),r=Ct();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return Nc=n,Nc}var Ek=Tk();const Ck=he(Ek);var Rc,cg;function Mk(){if(cg)return Rc;cg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Rc=e,Rc}var Dc,lg;function kk(){if(lg)return Dc;lg=1;var e=Mf();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Dc=t,Dc}var qc,fg;function $k(){if(fg)return qc;fg=1;var e=Mk(),t=kk(),r=Ct(),n=Re(),i=Pa();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return qc=a,qc}var Ik=$k();const Nk=he(Ik);var Rk=["x","y"];function Un(e){"@babel/helpers - typeof";return Un=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},Un(e)}function Hl(){return Hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hl.apply(this,arguments)}function dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function en(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dg(Object(r),!0).forEach(function(n){Dk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dk(e,t,r){return t=qk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qk(e){var t=Bk(e,"string");return Un(t)=="symbol"?t:t+""}function Bk(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lk(e,t){if(e==null)return{};var r=Fk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Uk(e,t){var r=e.x,n=e.y,i=Lk(e,Rk),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),d=parseInt(l,10);return en(en(en(en(en({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function hg(e){return E.createElement(Q2,Hl({shapeType:"rectangle",propTransformer:Uk,activeClassName:"recharts-active-bar"},e))}var Wk=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=F(n)||Z1(n);return a?t(n,i):(a||Jt(),r)}},zk=["value","background"],lx;function Pr(e){"@babel/helpers - typeof";return Pr=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},Pr(e)}function Gk(e,t){if(e==null)return{};var r=Hk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Hk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ia.apply(this,arguments)}function pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(r),!0).forEach(function(n){Pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dx(n.key),n)}}function Vk(e,t,r){return t&&vg(e.prototype,t),r&&vg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xk(e,t,r){return t=aa(t),Yk(e,fx()?Reflect.construct(t,r||[],aa(e).constructor):t.apply(e,r))}function Yk(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zk(e)}function Zk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fx=function(){return!!e})()}function aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aa(e)}function Jk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kl(e,t)}function Kl(e,t){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kl(e,t)}function Pt(e,t,r){return t=dx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dx(e){var t=Qk(e,"string");return Pr(t)=="symbol"?t:t+""}function Qk(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ei=(function(e){function t(){var r;Kk(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Xk(this,t,[].concat(i)),Pt(r,"state",{isAnimationFinished:!1}),Pt(r,"id",Vn("recharts-bar-")),Pt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Pt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return Jk(t,e),Vk(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=ee(this.props,!1);return n&&n.map(function(l,d){var p=d===s,y=p?c:o,v=ge(ge(ge({},f),l),{},{isActive:p,option:y,index:d,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return E.createElement(pe,ia({className:"recharts-bar-rectangle"},bi(i.props,l,d),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(d)}),E.createElement(hg,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,d=this.state.prevData;return E.createElement(mt,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,v=a.map(function(h,b){var x=d&&d[b];if(x){var w=Ge(x.x,h.x),O=Ge(x.y,h.y),g=Ge(x.width,h.width),m=Ge(x.height,h.height);return ge(ge({},h),{},{x:w(y),y:O(y),width:g(y),height:m(y)})}if(o==="horizontal"){var _=Ge(0,h.height),P=_(y);return ge(ge({},h),{},{y:h.y+h.height-P,height:P})}var A=Ge(0,h.width),M=A(y);return ge(ge({},h),{},{width:M})});return E.createElement(pe,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!_n(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=ee(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,d=Gk(c,zk);if(!l)return null;var p=ge(ge(ge(ge(ge({},d),{},{fill:"#eee"},l),s),bi(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return E.createElement(hg,ia({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=et(f,Ra);if(!l)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,p=function(h,b){var x=Array.isArray(h.value)?h.value[1]:h.value;return{x:h.x,y:h.y,value:x,errorVal:Fe(h,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return E.createElement(pe,y,l.map(function(v){return E.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,d=n.height,p=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,b=ne("recharts-bar",o),x=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=x||w,g=te(v)?this.id:v;return E.createElement(pe,{className:b},x||w?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(g)},E.createElement("rect",{x:x?c:c-l/2,y:w?f:f-d/2,width:x?l:l*2,height:w?d:d*2}))):null,E.createElement(pe,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,g),(!p||h)&&Tt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(R.PureComponent);lx=ei;Pt(ei,"displayName","Bar");Pt(ei,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Fr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Pt(ei,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,p=mE(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,h=v!==void 0?ge(ge({},v),r.props):r.props,b=h.dataKey,x=h.children,w=h.minPointSize,O=y==="horizontal"?o:a,g=c?O.scale.domain():null,m=AE({numericAxis:O}),_=et(x,Gb),P=l.map(function(A,M){var T,j,C,k,$,N;c?T=gE(c[f+M],g):(T=Fe(A,b),Array.isArray(T)||(T=[m,T]));var D=Wk(w,lx.defaultProps.minPointSize)(T[1],M);if(y==="horizontal"){var L,W=[o.scale(T[0]),o.scale(T[1])],B=W[0],H=W[1];j=im({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:A,index:M}),C=(L=H??B)!==null&&L!==void 0?L:void 0,k=p.size;var U=B-H;if($=Number.isNaN(U)?0:U,N={x:j,y:o.y,width:k,height:o.height},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var X=Qe($||D)*(Math.abs(D)-Math.abs($));C-=X,$+=X}}else{var le=[a.scale(T[0]),a.scale(T[1])],me=le[0],De=le[1];if(j=me,C=im({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:A,index:M}),k=De-me,$=p.size,N={x:a.x,y:C,width:a.width,height:$},Math.abs(D)>0&&Math.abs(k)<Math.abs(D)){var Nt=Qe(k||D)*(Math.abs(D)-Math.abs(k));k+=Nt}}return ge(ge(ge({},A),{},{x:j,y:C,width:k,height:$,value:c?T:T[1],payload:A,background:N},_&&_[M]&&_[M].props),{},{tooltipPayload:[X0(r,A)],tooltipPosition:{x:j+k/2,y:C+$/2}})});return ge({data:P,layout:y},d)});function Wn(e){"@babel/helpers - typeof";return Wn=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},Wn(e)}function e$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hx(n.key),n)}}function t$(e,t,r){return t&&yg(e.prototype,t),r&&yg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mg(Object(r),!0).forEach(function(n){Ba(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ba(e,t,r){return t=hx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hx(e){var t=r$(e,"string");return Wn(t)=="symbol"?t:t+""}function r$(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n$=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},d=!!Be(c,ei);return f.reduce(function(p,y){var v=r[y],h=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,g=v.reversed,m="".concat(h).concat(O?"Mirror":""),_,P,A,M,T;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var j=b[1]-b[0],C=1/0,k=v.categoricalDomain.sort(ew);if(k.forEach(function(le,me){me>0&&(C=Math.min((le||0)-(k[me-1]||0),C))}),Number.isFinite(C)){var $=C/j,N=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=$*N/2),v.padding==="no-gap"){var D=Yt(t.barCategoryGap,$*N),L=$*N/2;_=L-D-(L-D)/N*D}}}i==="xAxis"?P=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?P=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:P=v.range,g&&(P=[P[1],P[0]]);var W=vE(v,a,d),B=W.scale,H=W.realScaleType;B.domain(b).range(P),yE(B);var U=SE(B,Ze(Ze({},v),{},{realScaleType:H}));i==="xAxis"?(T=h==="top"&&!O||h==="bottom"&&O,A=n.left,M=l[m]-T*v.height):i==="yAxis"&&(T=h==="left"&&!O||h==="right"&&O,A=l[m]-T*v.width,M=n.top);var X=Ze(Ze(Ze({},v),U),{},{realScaleType:H,x:A,y:M,scale:B,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=Gi(X,U),!v.hide&&i==="xAxis"?l[m]+=(T?-1:1)*X.height:v.hide||(l[m]+=(T?-1:1)*X.width),Ze(Ze({},p),{},Ba({},y,X))},{})},px=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},i$=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return px({x:r,y:n},{x:i,y:a})},vx=(function(){function e(t){e$(this,e),this.scale=t}return t$(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Ba(vx,"EPS",1e-4);var ud=function(t){var r=Object.keys(t).reduce(function(n,i){return Ze(Ze({},n),{},Ba({},i,vx.create(t[i])))},{});return Ze(Ze({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return Ck(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return Nk(i,function(a,o){return r[o].isInRange(a)})}})};function a$(e){return(e%180+180)%180}var o$=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=a$(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},Bc,gg;function u$(){if(gg)return Bc;gg=1;var e=Ct(),t=Xn(),r=Sa();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return Bc=n,Bc}var Lc,bg;function s$(){if(bg)return Lc;bg=1;var e=ox();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Lc=t,Lc}var Fc,xg;function c$(){if(xg)return Fc;xg=1;var e=Mb(),t=Ct(),r=s$(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return Fc=i,Fc}var Uc,wg;function l$(){if(wg)return Uc;wg=1;var e=u$(),t=c$(),r=e(t);return Uc=r,Uc}l$();var f$=Kg();const d$=he(f$);var h$=d$(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),yx=R.createContext(void 0),mx=R.createContext(void 0),gx=R.createContext(void 0),p$=R.createContext({}),bx=R.createContext(void 0),xx=R.createContext(0),wx=R.createContext(0),Og=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=h$(a);return E.createElement(yx.Provider,{value:n},E.createElement(mx.Provider,{value:i},E.createElement(p$.Provider,{value:a},E.createElement(gx.Provider,{value:f},E.createElement(bx.Provider,{value:o},E.createElement(xx.Provider,{value:c},E.createElement(wx.Provider,{value:s},u)))))))},v$=function(){return R.useContext(bx)},Ox=function(t){var r=R.useContext(yx);r==null&&Jt();var n=r[t];return n==null&&Jt(),n},_x=function(t){var r=R.useContext(mx);r==null&&Jt();var n=r[t];return n==null&&Jt(),n},y$=function(){var t=R.useContext(gx);return t},Sx=function(){return R.useContext(wx)},Ax=function(){return R.useContext(xx)};function jr(e){"@babel/helpers - typeof";return jr=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},jr(e)}function m$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jx(n.key),n)}}function b$(e,t,r){return t&&g$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x$(e,t,r){return t=oa(t),w$(e,Px()?Reflect.construct(t,r||[],oa(e).constructor):t.apply(e,r))}function w$(e,t){if(t&&(jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O$(e)}function O$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Px=function(){return!!e})()}function oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oa(e)}function _$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(e,t)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vl(e,t)}function _g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_g(Object(r),!0).forEach(function(n){sd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sd(e,t,r){return t=jx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jx(e){var t=S$(e,"string");return jr(t)=="symbol"?t:t+""}function S$(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function A$(e,t){return E$(e)||T$(e,t)||j$(e,t)||P$()}function P$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 57In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j$(e,t){if(e){if(typeof e=="string")return Ag(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ag(e,t)}}function Ag(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function T$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function E$(e){if(Array.isArray(e))return e}function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xl.apply(this,arguments)}var C$=function(t,r){var n;return E.isValidElement(t)?n=E.cloneElement(t,r):Q(t)?n=t(r):n=E.createElement("line",Xl({},r,{className:"recharts-reference-line-line"})),n},M$=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,d=a.width,p=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(ot(c,"discard")&&!t.y.isInRange(v))return null;var h=[{x:f+d,y:v},{x:f,y:v}];return s==="left"?h.reverse():h}if(r){var b=c.x,x=t.x.apply(b,{position:o});if(ot(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+p},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=c.segment,g=O.map(function(m){return t.apply(m,{position:o})});return ot(c,"discard")&&Pk(g,function(m){return!t.isInRange(m)})?null:g}return null};function k$(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=v$(),f=Ox(i),l=_x(a),d=y$();if(!c||!d)return null;Ht(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=ud({x:f.scale,y:l.scale}),y=Se(t),v=Se(r),h=n&&n.length===2,b=M$(p,y,v,h,d,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=A$(b,2),w=x[0],O=w.x,g=w.y,m=x[1],_=m.x,P=m.y,A=ot(e,"hidden")?"url(#".concat(c,")"):void 0,M=Sg(Sg({clipPath:A},ee(e,!0)),{},{x1:O,y1:g,x2:_,y2:P});return E.createElement(pe,{className:ne("recharts-reference-line",u)},C$(o,M),Me.renderCallByParent(e,i$({x1:O,y1:g,x2:_,y2:P})))}var cd=(function(e){function t(){return m$(this,t),x$(this,t,arguments)}return _$(t,e),b$(t,[{key:"render",value:function(){return E.createElement(k$,this.props)}}])})(E.Component);sd(cd,"displayName","ReferenceLine");sd(cd,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yl.apply(this,arguments)}function Tr(e){"@babel/helpers - typeof";return Tr=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},Tr(e)}function Pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pg(Object(r),!0).forEach(function(n){La(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ex(n.key),n)}}function N$(e,t,r){return t&&I$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function R$(e,t,r){return t=ua(t),D$(e,Tx()?Reflect.construct(t,r||[],ua(e).constructor):t.apply(e,r))}function D$(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q$(e)}function q$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tx=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ua(e)}function B$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zl(e,t)}function La(e,t,r){return t=Ex(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ex(e){var t=L$(e,"string");return Tr(t)=="symbol"?t:t+""}function L$(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var F$=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=ud({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return ot(t,"discard")&&!o.isInRange(u)?null:u},Fa=(function(e){function t(){return $$(this,t),R$(this,t,arguments)}return B$(t,e),N$(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=Se(i),f=Se(a);if(Ht(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=F$(this.props);if(!l)return null;var d=l.x,p=l.y,y=this.props,v=y.shape,h=y.className,b=ot(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=jg(jg({clipPath:b},ee(this.props,!0)),{},{cx:d,cy:p});return E.createElement(pe,{className:ne("recharts-reference-dot",h)},t.renderDot(v,x),Me.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])})(E.Component);La(Fa,"displayName","ReferenceDot");La(Fa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});La(Fa,"renderDot",function(e,t){var r;return E.isValidElement(e)?r=E.cloneElement(e,t):Q(e)?r=e(t):r=E.createElement(od,Yl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jl.apply(this,arguments)}function Er(e){"@babel/helpers - typeof";return Er=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},Er(e)}function Tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Eg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tg(Object(r),!0).forEach(function(n){Ua(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mx(n.key),n)}}function z$(e,t,r){return t&&W$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G$(e,t,r){return t=sa(t),H$(e,Cx()?Reflect.construct(t,r||[],sa(e).constructor):t.apply(e,r))}function H$(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K$(e)}function K$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cx=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(e)}function V$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ql(e,t)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ql(e,t)}function Ua(e,t,r){return t=Mx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mx(e){var t=X$(e,"string");return Er(t)=="symbol"?t:t+""}function X$(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Y$=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var d=ud({x:f.scale,y:l.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return ot(a,"discard")&&(!d.isInRange(p)||!d.isInRange(y))?null:px(p,y)},Wa=(function(e){function t(){return U$(this,t),G$(this,t,arguments)}return V$(t,e),z$(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;Ht(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Se(i),d=Se(a),p=Se(o),y=Se(u),v=this.props.shape;if(!l&&!d&&!p&&!y&&!v)return null;var h=Y$(l,d,p,y,this.props);if(!h&&!v)return null;var b=ot(this.props,"hidden")?"url(#".concat(f,")"):void 0;return E.createElement(pe,{className:ne("recharts-reference-area",s)},t.renderRect(v,Eg(Eg({clipPath:b},ee(this.props,!0)),h)),Me.renderCallByParent(this.props,h))}}])})(E.Component);Ua(Wa,"displayName","ReferenceArea");Ua(Wa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ua(Wa,"renderRect",function(e,t){var r;return E.isValidElement(e)?r=E.cloneElement(e,t):Q(e)?r=e(t):r=E.createElement(ad,Jl({},t,{className:"recharts-reference-area-rect"})),r});function kx(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function Z$(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return o$(n,r)}function J$(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function ca(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Q$(e,t){return kx(e,t+1)}function eI(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var y=n?.[s];if(y===void 0)return{v:kx(n,c)};var v=s,h,b=function(){return h===void 0&&(h=r(y,v)),h},x=y.coordinate,w=s===0||ca(e,x,b,f,u);w||(s=0,f=o,c+=1),w&&(f=x+e*(b()/2+i),s+=c)},d;c<=a.length;)if(d=l(),d)return d.v;return[]}function zn(e){"@babel/helpers - typeof";return zn=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},zn(e)}function Cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cg(Object(r),!0).forEach(function(n){tI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tI(e,t,r){return t=rI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rI(e){var t=nI(e,"string");return zn(t)=="symbol"?t:t+""}function nI(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iI(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(d){var p=a[d],y,v=function(){return y===void 0&&(y=r(p,d)),y};if(d===o-1){var h=e*(p.coordinate+e*v()/2-s);a[d]=p=Ce(Ce({},p),{},{tickCoord:h>0?p.coordinate-h*e:p.coordinate})}else a[d]=p=Ce(Ce({},p),{},{tickCoord:p.coordinate});var b=ca(e,p.tickCoord,v,u,s);b&&(s=p.tickCoord-e*(v()/2+i),a[d]=Ce(Ce({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function aI(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),d=e*(f.coordinate+e*l/2-c);o[u-1]=f=Ce(Ce({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=ca(e,f.tickCoord,function(){return l},s,c);p&&(c=f.tickCoord-e*(l/2+i),o[u-1]=Ce(Ce({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,g=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var m=e*(w.coordinate-e*g()/2-s);o[x]=w=Ce(Ce({},w),{},{tickCoord:m<0?w.coordinate-m*e:w.coordinate})}else o[x]=w=Ce(Ce({},w),{},{tickCoord:w.coordinate});var _=ca(e,w.tickCoord,g,s,c);_&&(s=w.tickCoord+e*(g()/2+i),o[x]=Ce(Ce({},w),{},{isShow:!0}))},h=0;h<y;h++)v(h);return o}function oI(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(F(s)||Fr.isSsr)return Q$(i,typeof s=="number"&&F(s)?s:0);var d=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?on(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var g=Q(c)?c(w.value,O):w.value;return p==="width"?Z$(on(g,{fontSize:t,letterSpacing:r}),y,l):on(g,{fontSize:t,letterSpacing:r})[p]},h=i.length>=2?Qe(i[1].coordinate-i[0].coordinate):1,b=J$(a,h,p);return s==="equidistantPreserveStart"?eI(h,b,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=aI(h,b,v,i,o,s==="preserveStartEnd"):d=iI(h,b,v,i,o),d.filter(function(x){return x.isShow}))}var uI=["viewBox"],sI=["viewBox"],cI=["ticks"];function Cr(e){"@babel/helpers - typeof";return Cr=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},Cr(e)}function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sr.apply(this,arguments)}function Mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mg(Object(r),!0).forEach(function(n){ld(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wc(e,t){if(e==null)return{};var r=lI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ix(n.key),n)}}function dI(e,t,r){return t&&kg(e.prototype,t),r&&kg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hI(e,t,r){return t=la(t),pI(e,$x()?Reflect.construct(t,r||[],la(e).constructor):t.apply(e,r))}function pI(e,t){if(t&&(Cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vI(e)}function vI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($x=function(){return!!e})()}function la(e){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},la(e)}function yI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ef(e,t)}function ef(e,t){return ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ef(e,t)}function ld(e,t,r){return t=Ix(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ix(e){var t=mI(e,"string");return Cr(t)=="symbol"?t:t+""}function mI(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var za=(function(e){function t(r){var n;return fI(this,t),n=hI(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return yI(t,e),dI(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Wc(n,uI),u=this.props,s=u.viewBox,c=Wc(u,sI);return!lr(a,s)||!lr(o,c)||!lr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,d=i.tickMargin,p,y,v,h,b,x,w=l?-1:1,O=n.tickSize||f,g=F(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=y=n.coordinate,h=o+ +!l*s,v=h-w*O,x=v-w*d,b=g;break;case"left":v=h=n.coordinate,y=a+ +!l*u,p=y-w*O,b=p-w*d,x=g;break;case"right":v=h=n.coordinate,y=a+ +l*u,p=y+w*O,b=p+w*d,x=g;break;default:p=y=n.coordinate,h=o+ +l*s,v=h+w*O,x=v+w*d,b=g;break}return{line:{x1:p,y1:v,x2:y,y2:h},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=Oe(Oe(Oe({},ee(this.props,!1)),ee(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!c||s==="bottom"&&c);l=Oe(Oe({},l),{},{x1:i,y1:a+d*u,x2:i+o,y2:a+d*u})}else{var p=+(s==="left"&&!c||s==="right"&&c);l=Oe(Oe({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return E.createElement("line",sr({},l,{className:ne("recharts-cartesian-axis-line",Ke(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,d=u.unit,p=oI(Oe(Oe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),h=ee(this.props,!1),b=ee(f,!1),x=Oe(Oe({},h),{},{fill:"none"},ee(s,!1)),w=p.map(function(O,g){var m=o.getTickLineCoord(O),_=m.line,P=m.tick,A=Oe(Oe(Oe(Oe({textAnchor:y,verticalAnchor:v},h),{},{stroke:"none",fill:c},b),P),{},{index:g,payload:O,visibleTicksCount:p.length,tickFormatter:l});return E.createElement(pe,sr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},bi(o.props,O,g)),s&&E.createElement("line",sr({},x,_,{className:ne("recharts-cartesian-axis-tick-line",Ke(s,"className"))})),f&&t.renderTickItem(f,A,"".concat(Q(l)?l(O.value,g):O.value).concat(d||"")))});return E.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,d=l.ticks,p=Wc(l,cI),y=d;return Q(s)&&(y=d&&d.length>0?s(this.props):s(p)),o<=0||u<=0||!y||!y.length?null:E.createElement(pe,{className:ne("recharts-cartesian-axis",c),ref:function(h){n.layerReference=h}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Me.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=ne(i.className,"recharts-cartesian-axis-tick-value");return E.isValidElement(n)?o=E.cloneElement(n,Oe(Oe({},i),{},{className:u})):Q(n)?o=n(Oe(Oe({},i),{},{className:u})):o=E.createElement(Ci,sr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(R.Component);ld(za,"displayName","CartesianAxis");ld(za,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var gI=["layout","type","stroke","connectNulls","isRange","ref"],bI=["key"],Nx;function Mr(e){"@babel/helpers - typeof";return Mr=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},Mr(e)}function Rx(e,t){if(e==null)return{};var r=xI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gt.apply(this,arguments)}function $g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$g(Object(r),!0).forEach(function(n){it(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ig(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qx(n.key),n)}}function OI(e,t,r){return t&&Ig(e.prototype,t),r&&Ig(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _I(e,t,r){return t=fa(t),SI(e,Dx()?Reflect.construct(t,r||[],fa(e).constructor):t.apply(e,r))}function SI(e,t){if(t&&(Mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AI(e)}function AI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dx=function(){return!!e})()}function fa(e){return fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fa(e)}function PI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tf(e,t)}function tf(e,t){return tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tf(e,t)}function it(e,t,r){return t=qx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qx(e){var t=jI(e,"string");return Mr(t)=="symbol"?t:t+""}function jI(e,t){if(Mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var It=(function(e){function t(){var r;wI(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=_I(this,t,[].concat(i)),it(r,"state",{isAnimationFinished:!0}),it(r,"id",Vn("recharts-area-")),it(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Q(o)&&o()}),it(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Q(o)&&o()}),r}return PI(t,e),OI(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,f=s.points,l=s.dataKey,d=ee(this.props,!1),p=ee(c,!0),y=f.map(function(h,b){var x=Ot(Ot(Ot({key:"dot-".concat(b),r:3},d),p),{},{index:b,cx:h.x,cy:h.y,dataKey:l,value:h.value,payload:h.payload,points:f});return t.renderDotItem(c,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return E.createElement(pe,Gt({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,f=n*Math.abs(s-c),l=At(o.map(function(d){return d.y||0}));return F(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(At(a.map(function(d){return d.y||0})),l)),F(l)?E.createElement("rect",{x:s<c?s:s-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,c=o[o.length-1].y,f=n*Math.abs(s-c),l=At(o.map(function(d){return d.x||0}));return F(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(At(a.map(function(d){return d.x||0})),l)),F(l)?E.createElement("rect",{x:0,y:s<c?s:s-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,c=u.type,f=u.stroke,l=u.connectNulls,d=u.isRange;u.ref;var p=Rx(u,gI);return E.createElement(pe,{clipPath:a?"url(#clipPath-".concat(o,")"):null},E.createElement(cn,Gt({},ee(p,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&E.createElement(cn,Gt({},ee(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&d&&E.createElement(cn,Gt({},ee(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,p=o.animationId,y=this.state,v=y.prevPoints,h=y.prevBaseLine;return E.createElement(mt,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var x=b.t;if(v){var w=v.length/u.length,O=u.map(function(P,A){var M=Math.floor(A*w);if(v[M]){var T=v[M],j=Ge(T.x,P.x),C=Ge(T.y,P.y);return Ot(Ot({},P),{},{x:j(x),y:C(x)})}return P}),g;if(F(s)&&typeof s=="number"){var m=Ge(h,s);g=m(x)}else if(te(s)||Br(s)){var _=Ge(h,0);g=_(x)}else g=s.map(function(P,A){var M=Math.floor(A*w);if(h[M]){var T=h[M],j=Ge(T.x,P.x),C=Ge(T.y,P.y);return Ot(Ot({},P),{},{x:j(x),y:C(x)})}return P});return a.renderAreaStatically(O,g,n,i)}return E.createElement(pe,null,E.createElement("defs",null,E.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),E.createElement(pe,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,d=c.totalLength;return s&&o&&o.length&&(!f&&d>0||!_n(f,o)||!_n(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.top,f=i.left,l=i.xAxis,d=i.yAxis,p=i.width,y=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,w=ne("recharts-area",s),O=l&&l.allowDataOverflow,g=d&&d.allowDataOverflow,m=O||g,_=te(h)?this.id:h,P=(n=ee(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=P.r,M=A===void 0?3:A,T=P.strokeWidth,j=T===void 0?2:T,C=cw(o)?o:{},k=C.clipDot,$=k===void 0?!0:k,N=M*2+j;return E.createElement(pe,{className:w},O||g?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(_)},E.createElement("rect",{x:O?f:f-p/2,y:g?c:c-y/2,width:O?p:p*2,height:g?y:y*2})),!$&&E.createElement("clipPath",{id:"clipPath-dots-".concat(_)},E.createElement("rect",{x:f-N/2,y:c-N/2,width:p+N,height:y+N}))):null,x?null:this.renderArea(m,_),(o||x)&&this.renderDots(m,$,_),(!v||b)&&Tt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(R.PureComponent);Nx=It;it(It,"displayName","Area");it(It,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Fr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});it(It,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(F(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});it(It,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,p=t.layout,y=c&&c.length,v=Nx.getBaseValue(t,r,n,i),h=p==="horizontal",b=!1,x=l.map(function(O,g){var m;y?m=c[f+g]:(m=Fe(O,s),Array.isArray(m)?b=!0:m=[v,m]);var _=m[1]==null||y&&Fe(O,s)==null;return h?{x:nm({axis:n,ticks:a,bandSize:u,entry:O,index:g}),y:_?null:i.scale(m[1]),value:m,payload:O}:{x:_?null:n.scale(m[1]),y:nm({axis:i,ticks:o,bandSize:u,entry:O,index:g}),value:m,payload:O}}),w;return y||b?w=x.map(function(O){var g=Array.isArray(O.value)?O.value[0]:null;return h?{x:O.x,y:g!=null&&O.y!=null?i.scale(g):null}:{x:g!=null?n.scale(g):null,y:O.y}}):w=h?i.scale(v):n.scale(v),Ot({points:x,baseLine:w,layout:p,isRange:b},d)});it(It,"renderDotItem",function(e,t){var r;if(E.isValidElement(e))r=E.cloneElement(e,t);else if(Q(e))r=e(t);else{var n=ne("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=Rx(t,bI);r=E.createElement(od,Gt({},a,{key:i,className:n}))}return r});function kr(e){"@babel/helpers - typeof";return kr=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},kr(e)}function TI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fx(n.key),n)}}function CI(e,t,r){return t&&EI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MI(e,t,r){return t=da(t),kI(e,Bx()?Reflect.construct(t,r||[],da(e).constructor):t.apply(e,r))}function kI(e,t){if(t&&(kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $I(e)}function $I(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bx=function(){return!!e})()}function da(e){return da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},da(e)}function II(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rf(e,t)}function rf(e,t){return rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rf(e,t)}function Lx(e,t,r){return t=Fx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fx(e){var t=NI(e,"string");return kr(t)=="symbol"?t:t+""}function NI(e,t){if(kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nf.apply(this,arguments)}function RI(e){var t=e.xAxisId,r=Sx(),n=Ax(),i=Ox(t);return i==null?null:R.createElement(za,nf({},i,{className:ne("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return zt(o,!0)}}))}var Ga=(function(e){function t(){return TI(this,t),MI(this,t,arguments)}return II(t,e),CI(t,[{key:"render",value:function(){return R.createElement(RI,this.props)}}])})(R.Component);Lx(Ga,"displayName","XAxis");Lx(Ga,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function $r(e){"@babel/helpers - typeof";return $r=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},$r(e)}function DI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zx(n.key),n)}}function BI(e,t,r){return t&&qI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LI(e,t,r){return t=ha(t),FI(e,Ux()?Reflect.construct(t,r||[],ha(e).constructor):t.apply(e,r))}function FI(e,t){if(t&&($r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UI(e)}function UI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ux(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ux=function(){return!!e})()}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ha(e)}function WI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&af(e,t)}function af(e,t){return af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},af(e,t)}function Wx(e,t,r){return t=zx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zx(e){var t=zI(e,"string");return $r(t)=="symbol"?t:t+""}function zI(e,t){if($r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},of.apply(this,arguments)}var GI=function(t){var r=t.yAxisId,n=Sx(),i=Ax(),a=_x(r);return a==null?null:R.createElement(za,of({},a,{className:ne("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return zt(u,!0)}}))},Ha=(function(e){function t(){return DI(this,t),LI(this,t,arguments)}return WI(t,e),BI(t,[{key:"render",value:function(){return R.createElement(GI,this.props)}}])})(R.Component);Wx(Ha,"displayName","YAxis");Wx(Ha,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function Ng(e){return XI(e)||VI(e)||KI(e)||HI()}function HI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 58In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KI(e,t){if(e){if(typeof e=="string")return uf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uf(e,t)}}function VI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XI(e){if(Array.isArray(e))return uf(e)}function uf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var sf=function(t,r,n,i,a){var o=et(t,cd),u=et(t,Fa),s=[].concat(Ng(o),Ng(u)),c=et(t,Wa),f="".concat(i,"Id"),l=i[0],d=r;if(s.length&&(d=s.reduce(function(v,h){if(h.props[f]===n&&ot(h.props,"extendDomain")&&F(h.props[l])){var b=h.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},d)),c.length){var p="".concat(l,"1"),y="".concat(l,"2");d=c.reduce(function(v,h){if(h.props[f]===n&&ot(h.props,"extendDomain")&&F(h.props[p])&&F(h.props[y])){var b=h.props[p],x=h.props[y];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,h){return F(h)?[Math.min(v[0],h),Math.max(v[1],h)]:v},d)),d},zc={exports:{}},Rg;function YI(){return Rg||(Rg=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||s,d),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],p]:s._events[y].push(p):(s._events[y]=p,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var d=0,p=l.length,y=new Array(p);d<p;d++)y[d]=l[d].fn;return y},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,d,p,y){var v=r?r+c:c;if(!this._events[v])return!1;var h=this._events[v],b=arguments.length,x,w;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,f),!0;case 3:return h.fn.call(h.context,f,l),!0;case 4:return h.fn.call(h.context,f,l,d),!0;case 5:return h.fn.call(h.context,f,l,d,p),!0;case 6:return h.fn.call(h.context,f,l,d,p,y),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];h.fn.apply(h.context,x)}else{var O=h.length,g;for(w=0;w<O;w++)switch(h[w].once&&this.removeListener(c,h[w].fn,void 0,!0),b){case 1:h[w].fn.call(h[w].context);break;case 2:h[w].fn.call(h[w].context,f);break;case 3:h[w].fn.call(h[w].context,f,l);break;case 4:h[w].fn.call(h[w].context,f,l,d);break;default:if(!x)for(g=1,x=new Array(b-1);g<b;g++)x[g-1]=arguments[g];h[w].fn.apply(h[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,d){var p=r?r+c:c;if(!this._events[p])return this;if(!f)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!d||y.once)&&(!l||y.context===l)&&o(this,p);else{for(var v=0,h=[],b=y.length;v<b;v++)(y[v].fn!==f||d&&!y[v].once||l&&y[v].context!==l)&&h.push(y[v]);h.length?this._events[p]=h.length===1?h[0]:h:o(this,p)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(zc)),zc.exports}var ZI=YI();const JI=he(ZI);var Gc=new JI,Hc="recharts.syncMouseEvents";function Gn(e){"@babel/helpers - typeof";return Gn=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},Gn(e)}function QI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gx(n.key),n)}}function tN(e,t,r){return t&&eN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kc(e,t,r){return t=Gx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gx(e){var t=rN(e,"string");return Gn(t)=="symbol"?t:t+""}function rN(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nN=(function(){function e(){QI(this,e),Kc(this,"activeIndex",0),Kc(this,"coordinateList",[]),Kc(this,"layout","horizontal")}return tN(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,d=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])})();function iN(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&F(n)&&F(i))return!0}return!1}function aN(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Hx(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Ee(t,r,n,i),u=Ee(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function oN(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,d=Ee(u,s,c,l),p=Ee(u,s,f,l);n=d.x,i=d.y,a=p.x,o=p.y}else return Hx(t);return[{x:n,y:i},{x:a,y:o}]}function Hn(e){"@babel/helpers - typeof";return Hn=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},Hn(e)}function Dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dg(Object(r),!0).forEach(function(n){uN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uN(e,t,r){return t=sN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sN(e){var t=cN(e,"string");return Hn(t)=="symbol"?t:t+""}function cN(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lN(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var y,v=cn;if(d==="ScatterChart")y=o,v=P2;else if(d==="BarChart")y=aN(l,o,s,f),v=ad;else if(l==="radial"){var h=Hx(o),b=h.cx,x=h.cy,w=h.radius,O=h.startAngle,g=h.endAngle;y={cx:b,cy:x,startAngle:O,endAngle:g,innerRadius:w,outerRadius:w},v=J0}else y={points:oN(l,o,s)},v=cn;var m=vi(vi(vi(vi({stroke:"#ccc",pointerEvents:"none"},s),y),ee(p,!1)),{},{payload:u,payloadIndex:c,className:ne("recharts-tooltip-cursor",p.className)});return R.isValidElement(p)?R.cloneElement(p,m):R.createElement(v,m)}var fN=["item"],dN=["children","className","width","height","style","compact","title","desc"];function Ir(e){"@babel/helpers - typeof";return Ir=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},Ir(e)}function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cr.apply(this,arguments)}function qg(e,t){return vN(e)||pN(e,t)||Vx(e,t)||hN()}function hN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 59In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function vN(e){if(Array.isArray(e))return e}function Bg(e,t){if(e==null)return{};var r=yN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xx(n.key),n)}}function bN(e,t,r){return t&&gN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xN(e,t,r){return t=pa(t),wN(e,Kx()?Reflect.construct(t,r||[],pa(e).constructor):t.apply(e,r))}function wN(e,t){if(t&&(Ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ON(e)}function ON(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kx=function(){return!!e})()}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pa(e)}function _N(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cf(e,t)}function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cf(e,t)}function Nr(e){return PN(e)||AN(e)||Vx(e)||SN()}function SN(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 60In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vx(e,t){if(e){if(typeof e=="string")return lf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lf(e,t)}}function AN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PN(e){if(Array.isArray(e))return lf(e)}function lf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){V(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V(e,t,r){return t=Xx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xx(e){var t=jN(e,"string");return Ir(t)=="symbol"?t:t+""}function jN(e,t){if(Ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TN={xAxis:["bottom","top"],yAxis:["left","right"]},EN={width:"100%",height:"100%"},Yx={x:0,y:0};function yi(e){return e}var CN=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},MN=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return I(I(I({},i),Ee(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return I(I(I({},i),Ee(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return Yx},Ka=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(Nr(u),Nr(c)):u},[]);return o.length>0?o:t&&t.length&&F(i)&&F(a)?t.slice(i,a+1):[]};function Zx(e){return e==="number"?[0,"auto"]:void 0}var ff=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Ka(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;d=mi(p,o.dataKey,i)}else d=l&&l[n]||u[n];return d?[].concat(Nr(s),[X0(c,d)]):s},[])},Fg=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=CN(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=cE(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,d=ff(t,r,f,l),p=MN(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:p}}return null},kN=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,p=K0(f,a);return n.reduce(function(y,v){var h,b=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,g=b.allowDuplicatedCategory,m=b.scale,_=b.ticks,P=b.includeHidden,A=b[o];if(y[A])return y;var M=Ka(t.data,{graphicalItems:i.filter(function(U){var X,le=o in U.props?U.props[o]:(X=U.type.defaultProps)===null||X===void 0?void 0:X[o];return le===A}),dataStartIndex:s,dataEndIndex:c}),T=M.length,j,C,k;iN(b.domain,O,x)&&(j=El(b.domain,null,O),p&&(x==="number"||m!=="auto")&&(k=sn(M,w,"category")));var $=Zx(x);if(!j||j.length===0){var N,D=(N=b.domain)!==null&&N!==void 0?N:$;if(w){if(j=sn(M,w,x),x==="category"&&p){var L=Q1(j);g&&L?(C=j,j=ta(0,T)):g||(j=um(D,j,v).reduce(function(U,X){return U.indexOf(X)>=0?U:[].concat(Nr(U),[X])},[]))}else if(x==="category")g?j=j.filter(function(U){return U!==""&&!te(U)}):j=um(D,j,v).reduce(function(U,X){return U.indexOf(X)>=0||X===""||te(X)?U:[].concat(Nr(U),[X])},[]);else if(x==="number"){var W=pE(M,i.filter(function(U){var X,le,me=o in U.props?U.props[o]:(X=U.type.defaultProps)===null||X===void 0?void 0:X[o],De="hide"in U.props?U.props.hide:(le=U.type.defaultProps)===null||le===void 0?void 0:le.hide;return me===A&&(P||!De)}),w,a,f);W&&(j=W)}p&&(x==="number"||m!=="auto")&&(k=sn(M,w,"category"))}else p?j=ta(0,T):u&&u[A]&&u[A].hasStack&&x==="number"?j=d==="expand"?[0,1]:V0(u[A].stackGroups,s,c):j=H0(M,i.filter(function(U){var X=o in U.props?U.props[o]:U.type.defaultProps[o],le="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return X===A&&(P||!le)}),x,f,!0);if(x==="number")j=sf(l,j,A,a,_),D&&(j=El(D,j,O));else if(x==="category"&&D){var B=D,H=j.every(function(U){return B.indexOf(U)>=0});H&&(j=B)}}return I(I({},y),{},V({},A,I(I({},b),{},{axisType:a,domain:j,categoricalDomain:k,duplicateDomain:C,originalDomain:(h=b.domain)!==null&&h!==void 0?h:$,isCategorical:p,layout:f})))},{})},$N=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=Ka(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=d.length,y=K0(f,a),v=-1;return n.reduce(function(h,b){var x=b.type.defaultProps!==void 0?I(I({},b.type.defaultProps),b.props):b.props,w=x[o],O=Zx("number");if(!h[w]){v++;var g;return y?g=ta(0,p):u&&u[w]&&u[w].hasStack?(g=V0(u[w].stackGroups,s,c),g=sf(l,g,w,a)):(g=El(O,H0(d,n.filter(function(m){var _,P,A=o in m.props?m.props[o]:(_=m.type.defaultProps)===null||_===void 0?void 0:_[o],M="hide"in m.props?m.props.hide:(P=m.type.defaultProps)===null||P===void 0?void 0:P.hide;return A===w&&!M}),"number",f),i.defaultProps.allowDataOverflow),g=sf(l,g,w,a)),I(I({},h),{},V({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ke(TN,"".concat(a,".").concat(v%2),null),domain:g,originalDomain:O,isCategorical:y,layout:f})))}return h},{})},IN=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),d=et(f,a),p={};return d&&d.length?p=kN(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=$N(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},NN=function(t){var r=or(t),n=zt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:kf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Gi(r,n)}},Ug=function(t){var r=t.children,n=t.defaultShowTooltip,i=Be(r,Ar),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},RN=function(t){return!t||!t.length?!1:t.some(function(r){var n=dt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Wg=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},DN=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,d=n.margin||{},p=Be(l,Ar),y=Be(l,fr),v=Object.keys(s).reduce(function(g,m){var _=s[m],P=_.orientation;return!_.mirror&&!_.hide?I(I({},g),{},V({},P,g[P]+_.width)):g},{left:d.left||0,right:d.right||0}),h=Object.keys(o).reduce(function(g,m){var _=o[m],P=_.orientation;return!_.mirror&&!_.hide?I(I({},g),{},V({},P,Ke(g,"".concat(P))+_.height)):g},{top:d.top||0,bottom:d.bottom||0}),b=I(I({},h),v),x=b.bottom;p&&(b.bottom+=p.props.height||Ar.defaultProps.height),y&&r&&(b=dE(b,i,n,r));var w=c-b.left-b.right,O=f-b.top-b.bottom;return I(I({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},qN=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},BN=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(b,x){var w=x.graphicalItems,O=x.stackGroups,g=x.offset,m=x.updateId,_=x.dataStartIndex,P=x.dataEndIndex,A=b.barSize,M=b.layout,T=b.barGap,j=b.barCategoryGap,C=b.maxBarSize,k=Wg(M),$=k.numericAxisName,N=k.cateAxisName,D=RN(w),L=[];return w.forEach(function(W,B){var H=Ka(b.data,{graphicalItems:[W],dataStartIndex:_,dataEndIndex:P}),U=W.type.defaultProps!==void 0?I(I({},W.type.defaultProps),W.props):W.props,X=U.dataKey,le=U.maxBarSize,me=U["".concat($,"Id")],De=U["".concat(N,"Id")],Nt={},$e=s.reduce(function(Rt,Dt){var Va=x["".concat(Dt.axisType,"Map")],fd=U["".concat(Dt.axisType,"Id")];Va&&Va[fd]||Dt.axisType==="zAxis"||Jt();var dd=Va[fd];return I(I({},Rt),{},V(V({},Dt.axisType,dd),"".concat(Dt.axisType,"Ticks"),zt(dd)))},Nt),z=$e[N],Y=$e["".concat(N,"Ticks")],Z=O&&O[me]&&O[me].hasStack&&PE(W,O[me].stackGroups),q=dt(W.type).indexOf("Bar")>=0,ve=Gi(z,Y),re=[],xe=D&&lE({barSize:A,stackGroups:O,totalSize:qN($e,N)});if(q){var we,Ie,wt=te(le)?C:le,nr=(we=(Ie=Gi(z,Y,!0))!==null&&Ie!==void 0?Ie:wt)!==null&&we!==void 0?we:0;re=fE({barGap:T,barCategoryGap:j,bandSize:nr!==ve?nr:ve,sizeList:xe[De],maxBarSize:wt}),nr!==ve&&(re=re.map(function(Rt){return I(I({},Rt),{},{position:I(I({},Rt.position),{},{offset:Rt.position.offset-nr/2})})}))}var ti=W&&W.type&&W.type.getComposedData;ti&&L.push({props:I(I({},ti(I(I({},$e),{},{displayedData:H,props:b,dataKey:X,item:W,bandSize:ve,barPosition:re,offset:g,stackedData:Z,layout:M,dataStartIndex:_,dataEndIndex:P}))),{},V(V(V({key:W.key||"item-".concat(B)},$,$e[$]),N,$e[N]),"animationId",m)),childIndex:dw(W,b.children),item:W})}),L},p=function(b,x){var w=b.props,O=b.dataStartIndex,g=b.dataEndIndex,m=b.updateId;if(!wh({props:w}))return null;var _=w.children,P=w.layout,A=w.stackOffset,M=w.data,T=w.reverseStackOrder,j=Wg(P),C=j.numericAxisName,k=j.cateAxisName,$=et(_,n),N=_E(M,$,"".concat(C,"Id"),"".concat(k,"Id"),A,T),D=s.reduce(function(U,X){var le="".concat(X.axisType,"Map");return I(I({},U),{},V({},le,IN(w,I(I({},X),{},{graphicalItems:$,stackGroups:X.axisType===C&&N,dataStartIndex:O,dataEndIndex:g}))))},{}),L=DN(I(I({},D),{},{props:w,graphicalItems:$}),x?.legendBBox);Object.keys(D).forEach(function(U){D[U]=f(w,D[U],L,U.replace("Map",""),r)});var W=D["".concat(k,"Map")],B=NN(W),H=d(w,I(I({},D),{},{dataStartIndex:O,dataEndIndex:g,updateId:m,graphicalItems:$,stackGroups:N,offset:L}));return I(I({formattedGraphicalItems:H,graphicalItems:$,offset:L,stackGroups:N},B),D)},y=(function(h){function b(x){var w,O,g;return mN(this,b),g=xN(this,b,[x]),V(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),V(g,"accessibilityManager",new nN),V(g,"handleLegendBBoxUpdate",function(m){if(m){var _=g.state,P=_.dataStartIndex,A=_.dataEndIndex,M=_.updateId;g.setState(I({legendBBox:m},p({props:g.props,dataStartIndex:P,dataEndIndex:A,updateId:M},I(I({},g.state),{},{legendBBox:m}))))}}),V(g,"handleReceiveSyncEvent",function(m,_,P){if(g.props.syncId===m){if(P===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(_)}}),V(g,"handleBrushChange",function(m){var _=m.startIndex,P=m.endIndex;if(_!==g.state.dataStartIndex||P!==g.state.dataEndIndex){var A=g.state.updateId;g.setState(function(){return I({dataStartIndex:_,dataEndIndex:P},p({props:g.props,dataStartIndex:_,dataEndIndex:P,updateId:A},g.state))}),g.triggerSyncEvent({dataStartIndex:_,dataEndIndex:P})}}),V(g,"handleMouseEnter",function(m){var _=g.getMouseInfo(m);if(_){var P=I(I({},_),{},{isTooltipActive:!0});g.setState(P),g.triggerSyncEvent(P);var A=g.props.onMouseEnter;Q(A)&&A(P,m)}}),V(g,"triggeredAfterMouseMove",function(m){var _=g.getMouseInfo(m),P=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(P),g.triggerSyncEvent(P);var A=g.props.onMouseMove;Q(A)&&A(P,m)}),V(g,"handleItemMouseEnter",function(m){g.setState(function(){return{isTooltipActive:!0,activeItem:m,activePayload:m.tooltipPayload,activeCoordinate:m.tooltipPosition||{x:m.cx,y:m.cy}}})}),V(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),V(g,"handleMouseMove",function(m){m.persist(),g.throttleTriggeredAfterMouseMove(m)}),V(g,"handleMouseLeave",function(m){g.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};g.setState(_),g.triggerSyncEvent(_);var P=g.props.onMouseLeave;Q(P)&&P(_,m)}),V(g,"handleOuterEvent",function(m){var _=fw(m),P=Ke(g.props,"".concat(_));if(_&&Q(P)){var A,M;/.*touch.*/i.test(_)?M=g.getMouseInfo(m.changedTouches[0]):M=g.getMouseInfo(m),P((A=M)!==null&&A!==void 0?A:{},m)}}),V(g,"handleClick",function(m){var _=g.getMouseInfo(m);if(_){var P=I(I({},_),{},{isTooltipActive:!0});g.setState(P),g.triggerSyncEvent(P);var A=g.props.onClick;Q(A)&&A(P,m)}}),V(g,"handleMouseDown",function(m){var _=g.props.onMouseDown;if(Q(_)){var P=g.getMouseInfo(m);_(P,m)}}),V(g,"handleMouseUp",function(m){var _=g.props.onMouseUp;if(Q(_)){var P=g.getMouseInfo(m);_(P,m)}}),V(g,"handleTouchMove",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(m.changedTouches[0])}),V(g,"handleTouchStart",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseDown(m.changedTouches[0])}),V(g,"handleTouchEnd",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseUp(m.changedTouches[0])}),V(g,"handleDoubleClick",function(m){var _=g.props.onDoubleClick;if(Q(_)){var P=g.getMouseInfo(m);_(P,m)}}),V(g,"handleContextMenu",function(m){var _=g.props.onContextMenu;if(Q(_)){var P=g.getMouseInfo(m);_(P,m)}}),V(g,"triggerSyncEvent",function(m){g.props.syncId!==void 0&&Gc.emit(Hc,g.props.syncId,m,g.eventEmitterSymbol)}),V(g,"applySyncEvent",function(m){var _=g.props,P=_.layout,A=_.syncMethod,M=g.state.updateId,T=m.dataStartIndex,j=m.dataEndIndex;if(m.dataStartIndex!==void 0||m.dataEndIndex!==void 0)g.setState(I({dataStartIndex:T,dataEndIndex:j},p({props:g.props,dataStartIndex:T,dataEndIndex:j,updateId:M},g.state)));else if(m.activeTooltipIndex!==void 0){var C=m.chartX,k=m.chartY,$=m.activeTooltipIndex,N=g.state,D=N.offset,L=N.tooltipTicks;if(!D)return;if(typeof A=="function")$=A(L,m);else if(A==="value"){$=-1;for(var W=0;W<L.length;W++)if(L[W].value===m.activeLabel){$=W;break}}var B=I(I({},D),{},{x:D.left,y:D.top}),H=Math.min(C,B.x+B.width),U=Math.min(k,B.y+B.height),X=L[$]&&L[$].value,le=ff(g.state,g.props.data,$),me=L[$]?{x:P==="horizontal"?L[$].coordinate:H,y:P==="horizontal"?U:L[$].coordinate}:Yx;g.setState(I(I({},m),{},{activeLabel:X,activeCoordinate:me,activePayload:le,activeTooltipIndex:$}))}else g.setState(m)}),V(g,"renderCursor",function(m){var _,P=g.state,A=P.isTooltipActive,M=P.activeCoordinate,T=P.activePayload,j=P.offset,C=P.activeTooltipIndex,k=P.tooltipAxisBandSize,$=g.getTooltipEventType(),N=(_=m.props.active)!==null&&_!==void 0?_:A,D=g.props.layout,L=m.key||"_recharts-cursor";return E.createElement(lN,{key:L,activeCoordinate:M,activePayload:T,activeTooltipIndex:C,chartName:r,element:m,isActive:N,layout:D,offset:j,tooltipAxisBandSize:k,tooltipEventType:$})}),V(g,"renderPolarAxis",function(m,_,P){var A=Ke(m,"type.axisType"),M=Ke(g.state,"".concat(A,"Map")),T=m.type.defaultProps,j=T!==void 0?I(I({},T),m.props):m.props,C=M&&M[j["".concat(A,"Id")]];return R.cloneElement(m,I(I({},C),{},{className:ne(A,C.className),key:m.key||"".concat(_,"-").concat(P),ticks:zt(C,!0)}))}),V(g,"renderPolarGrid",function(m){var _=m.props,P=_.radialLines,A=_.polarAngles,M=_.polarRadius,T=g.state,j=T.radiusAxisMap,C=T.angleAxisMap,k=or(j),$=or(C),N=$.cx,D=$.cy,L=$.innerRadius,W=$.outerRadius;return R.cloneElement(m,{polarAngles:Array.isArray(A)?A:zt($,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(M)?M:zt(k,!0).map(function(B){return B.coordinate}),cx:N,cy:D,innerRadius:L,outerRadius:W,key:m.key||"polar-grid",radialLines:P})}),V(g,"renderLegend",function(){var m=g.state.formattedGraphicalItems,_=g.props,P=_.children,A=_.width,M=_.height,T=g.props.margin||{},j=A-(T.left||0)-(T.right||0),C=z0({children:P,formattedGraphicalItems:m,legendWidth:j,legendContent:c});if(!C)return null;var k=C.item,$=Bg(C,fN);return R.cloneElement(k,I(I({},$),{},{chartWidth:A,chartHeight:M,margin:T,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),V(g,"renderTooltip",function(){var m,_=g.props,P=_.children,A=_.accessibilityLayer,M=Be(P,rt);if(!M)return null;var T=g.state,j=T.isTooltipActive,C=T.activeCoordinate,k=T.activePayload,$=T.activeLabel,N=T.offset,D=(m=M.props.active)!==null&&m!==void 0?m:j;return R.cloneElement(M,{viewBox:I(I({},N),{},{x:N.left,y:N.top}),active:D,label:$,payload:D?k:[],coordinate:C,accessibilityLayer:A})}),V(g,"renderBrush",function(m){var _=g.props,P=_.margin,A=_.data,M=g.state,T=M.offset,j=M.dataStartIndex,C=M.dataEndIndex,k=M.updateId;return R.cloneElement(m,{key:m.key||"_recharts-brush",onChange:fi(g.handleBrushChange,m.props.onChange),data:A,x:F(m.props.x)?m.props.x:T.left,y:F(m.props.y)?m.props.y:T.top+T.height+T.brushBottom-(P.bottom||0),width:F(m.props.width)?m.props.width:T.width,startIndex:j,endIndex:C,updateId:"brush-".concat(k)})}),V(g,"renderReferenceElement",function(m,_,P){if(!m)return null;var A=g,M=A.clipPathId,T=g.state,j=T.xAxisMap,C=T.yAxisMap,k=T.offset,$=m.type.defaultProps||{},N=m.props,D=N.xAxisId,L=D===void 0?$.xAxisId:D,W=N.yAxisId,B=W===void 0?$.yAxisId:W;return R.cloneElement(m,{key:m.key||"".concat(_,"-").concat(P),xAxis:j[L],yAxis:C[B],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:M})}),V(g,"renderActivePoints",function(m){var _=m.item,P=m.activePoint,A=m.basePoint,M=m.childIndex,T=m.isRange,j=[],C=_.props.key,k=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,$=k.activeDot,N=k.dataKey,D=I(I({index:M,dataKey:N,cx:P.x,cy:P.y,r:4,fill:id(_.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},ee($,!1)),gi($));return j.push(b.renderActiveDot($,D,"".concat(C,"-activePoint-").concat(M))),A?j.push(b.renderActiveDot($,I(I({},D),{},{cx:A.x,cy:A.y}),"".concat(C,"-basePoint-").concat(M))):T&&j.push(null),j}),V(g,"renderGraphicChild",function(m,_,P){var A=g.filterFormatItem(m,_,P);if(!A)return null;var M=g.getTooltipEventType(),T=g.state,j=T.isTooltipActive,C=T.tooltipAxis,k=T.activeTooltipIndex,$=T.activeLabel,N=g.props.children,D=Be(N,rt),L=A.props,W=L.points,B=L.isRange,H=L.baseLine,U=A.item.type.defaultProps!==void 0?I(I({},A.item.type.defaultProps),A.item.props):A.item.props,X=U.activeDot,le=U.hide,me=U.activeBar,De=U.activeShape,Nt=!!(!le&&j&&D&&(X||me||De)),$e={};M!=="axis"&&D&&D.props.trigger==="click"?$e={onClick:fi(g.handleItemMouseEnter,m.props.onClick)}:M!=="axis"&&($e={onMouseLeave:fi(g.handleItemMouseLeave,m.props.onMouseLeave),onMouseEnter:fi(g.handleItemMouseEnter,m.props.onMouseEnter)});var z=R.cloneElement(m,I(I({},A.props),$e));function Y(Dt){return typeof C.dataKey=="function"?C.dataKey(Dt.payload):null}if(Nt)if(k>=0){var Z,q;if(C.dataKey&&!C.allowDuplicatedCategory){var ve=typeof C.dataKey=="function"?Y:"payload.".concat(C.dataKey.toString());Z=mi(W,ve,$),q=B&&H&&mi(H,ve,$)}else Z=W?.[k],q=B&&H&&H[k];if(De||me){var re=m.props.activeIndex!==void 0?m.props.activeIndex:k;return[R.cloneElement(m,I(I(I({},A.props),$e),{},{activeIndex:re})),null,null]}if(!te(Z))return[z].concat(Nr(g.renderActivePoints({item:A,activePoint:Z,basePoint:q,childIndex:k,isRange:B})))}else{var xe,we=(xe=g.getItemByXY(g.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:z},Ie=we.graphicalItem,wt=Ie.item,nr=wt===void 0?m:wt,ti=Ie.childIndex,Rt=I(I(I({},A.props),$e),{},{activeIndex:ti});return[R.cloneElement(nr,Rt),null,null]}return B?[z,null,null]:[z,null]}),V(g,"renderCustomized",function(m,_,P){return R.cloneElement(m,I(I({key:"recharts-customized-".concat(P)},g.props),g.state))}),V(g,"renderMap",{CartesianGrid:{handler:yi,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:yi},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:yi},YAxis:{handler:yi},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:Vn("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=zb(g.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),g.state={},g}return _N(b,h),bN(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,g=w.data,m=w.height,_=w.layout,P=Be(O,rt);if(P){var A=P.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,T=ff(this.state,g,A,M),j=this.state.tooltipTicks[A].coordinate,C=(this.state.offset.top+m)/2,k=_==="horizontal",$=k?{x:j,y:C}:{y:j,x:C},N=this.state.formattedGraphicalItems.find(function(L){var W=L.item;return W.type.name==="Scatter"});N&&($=I(I({},$),N.props.points[A].tooltipPosition),T=N.props.points[A].tooltipPayload);var D={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:M,activePayload:T,activeCoordinate:$};this.setState(D),this.renderCursor(P),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var g,m;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(m=this.props.margin.top)!==null&&m!==void 0?m:0}})}return null}},{key:"componentDidUpdate",value:function(w){Zc([Be(w.children,rt)],[Be(this.props.children,rt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Be(this.props.children,rt);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,g=O.getBoundingClientRect(),m=QS(g),_={chartX:Math.round(w.pageX-m.left),chartY:Math.round(w.pageY-m.top)},P=g.width/O.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,P);if(!A)return null;var M=this.state,T=M.xAxisMap,j=M.yAxisMap,C=this.getTooltipEventType(),k=Fg(this.state,this.props.data,this.props.layout,A);if(C!=="axis"&&T&&j){var $=or(T).scale,N=or(j).scale,D=$&&$.invert?$.invert(_.chartX):null,L=N&&N.invert?N.invert(_.chartY):null;return I(I({},_),{},{xValue:D,yValue:L},k)}return k?I(I({},_),k):null}},{key:"inRange",value:function(w,O){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,m=this.props.layout,_=w/g,P=O/g;if(m==="horizontal"||m==="vertical"){var A=this.state.offset,M=_>=A.left&&_<=A.left+A.width&&P>=A.top&&P<=A.top+A.height;return M?{x:_,y:P}:null}var T=this.state,j=T.angleAxisMap,C=T.radiusAxisMap;if(j&&C){var k=or(j);return lm({x:_,y:P},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),g=Be(w,rt),m={};g&&O==="axis"&&(g.props.trigger==="click"?m={onClick:this.handleClick}:m={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=gi(this.props,this.handleOuterEvent);return I(I({},_),m)}},{key:"addListener",value:function(){Gc.on(Hc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Gc.removeListener(Hc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,g){for(var m=this.state.formattedGraphicalItems,_=0,P=m.length;_<P;_++){var A=m[_];if(A.item===w||A.props.key===w.key||O===dt(A.item.type)&&g===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,g=O.left,m=O.top,_=O.height,P=O.width;return E.createElement("defs",null,E.createElement("clipPath",{id:w},E.createElement("rect",{x:g,y:m,height:_,width:P})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,g){var m=qg(g,2),_=m[0],P=m[1];return I(I({},O),{},V({},_,P.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,g){var m=qg(g,2),_=m[0],P=m[1];return I(I({},O),{},V({},_,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,g=O.formattedGraphicalItems,m=O.activeItem;if(g&&g.length)for(var _=0,P=g.length;_<P;_++){var A=g[_],M=A.props,T=A.item,j=T.type.defaultProps!==void 0?I(I({},T.type.defaultProps),T.props):T.props,C=dt(T.type);if(C==="Bar"){var k=(M.data||[]).find(function(L){return y2(w,L)});if(k)return{graphicalItem:A,payload:k}}else if(C==="RadialBar"){var $=(M.data||[]).find(function(L){return lm(w,L)});if($)return{graphicalItem:A,payload:$}}else if(Da(A,m)||qa(A,m)||Ln(A,m)){var N=ok({graphicalItem:A,activeTooltipItem:m,itemData:j.data}),D=j.activeIndex===void 0?N:j.activeIndex;
60return{graphicalItem:I(I({},A),{},{childIndex:D}),payload:Ln(A,m)?j.data[N]:A.props.data[N]}}}return null}},{key:"render",value:function(){var w=this;if(!wh(this))return null;var O=this.props,g=O.children,m=O.className,_=O.width,P=O.height,A=O.style,M=O.compact,T=O.title,j=O.desc,C=Bg(O,dN),k=ee(C,!1);if(M)return E.createElement(Og,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},E.createElement(Qc,cr({},k,{width:_,height:P,title:T,desc:j}),this.renderClipPath(),_h(g,this.renderMap)));if(this.props.accessibilityLayer){var $,N;k.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,k.role=(N=this.props.role)!==null&&N!==void 0?N:"application",k.onKeyDown=function(L){w.accessibilityManager.keyboardEvent(L)},k.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return E.createElement(Og,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},E.createElement("div",cr({className:ne("recharts-wrapper",m),style:I({position:"relative",cursor:"default",width:_,height:P},A)},D,{ref:function(W){w.container=W}}),E.createElement(Qc,cr({},k,{width:_,height:P,title:T,desc:j,style:EN}),this.renderClipPath(),_h(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(R.Component);V(y,"displayName",r),V(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),V(y,"getDerivedStateFromProps",function(h,b){var x=h.dataKey,w=h.data,O=h.children,g=h.width,m=h.height,_=h.layout,P=h.stackOffset,A=h.margin,M=b.dataStartIndex,T=b.dataEndIndex;if(b.updateId===void 0){var j=Ug(h);return I(I(I({},j),{},{updateId:0},p(I(I({props:h},j),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:g,prevHeight:m,prevLayout:_,prevStackOffset:P,prevMargin:A,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||g!==b.prevWidth||m!==b.prevHeight||_!==b.prevLayout||P!==b.prevStackOffset||!lr(A,b.prevMargin)){var C=Ug(h),k={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},$=I(I({},Fg(b,w,_)),{},{updateId:b.updateId+1}),N=I(I(I({},C),k),$);return I(I(I({},N),p(I({props:h},N),b)),{},{prevDataKey:x,prevData:w,prevWidth:g,prevHeight:m,prevLayout:_,prevStackOffset:P,prevMargin:A,prevChildren:O})}if(!Zc(O,b.prevChildren)){var D,L,W,B,H=Be(O,Ar),U=H&&(D=(L=H.props)===null||L===void 0?void 0:L.startIndex)!==null&&D!==void 0?D:M,X=H&&(W=(B=H.props)===null||B===void 0?void 0:B.endIndex)!==null&&W!==void 0?W:T,le=U!==M||X!==T,me=!te(w),De=me&&!le?b.updateId:b.updateId+1;return I(I({updateId:De},p(I(I({props:h},b),{},{updateId:De,dataStartIndex:U,dataEndIndex:X}),b)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:X})}return null}),V(y,"renderActiveDot",function(h,b,x){var w;return R.isValidElement(h)?w=R.cloneElement(h,b):Q(h)?w=h(b):w=E.createElement(od,b),E.createElement(pe,{className:"recharts-active-dot",key:x},w)});var v=R.forwardRef(function(b,x){return E.createElement(y,cr({},b,{ref:x}))});return v.displayName=y.displayName,v},LN=BN({chartName:"AreaChart",GraphicalChild:It,axisComponents:[{axisType:"xAxis",AxisComp:Ga},{axisType:"yAxis",AxisComp:Ha}],formatAxisMap:n$});const K="#31363F",J="#EEEEEE",Jx={1:"MEETING 1 - BUSINESS IDEAS",2:"GOALS & PLEDGE",3:"RESEARCH & DEVELOPMENT",4:"MEETING 2 - PLANNING & STRATEGY",5:"BUILD",6:"TEST & REFINE",7:"MEETING 3 - SALES & MARKETING",8:"GROW",9:"REACH INCOME GOAL"},FN="https://calendly.com/noncoops/bizmaster-podcast";function Rr(e){return`£${(e/100).toLocaleString("en-GB",{minimumFractionDigits:0})}`}function Qx(e,t){return e[String(t)]?.completed===!0}function _t(e,t,r){return e[String(t)]?.subtasks?.[r]===!0}function Vc({label:e,value:t,sub:r}){return S.jsxs("div",{className:"p-4 border",style:{borderColor:"#31363F22",backgroundColor:J},children:[S.jsx("p",{className:"text-xs uppercase tracking-widest mb-1",style:{color:"#31363F77"},children:e}),S.jsx("p",{className:"text-2xl md:text-3xl font-black truncate",style:{color:K},children:t}),r&&S.jsx("p",{className:"text-xs mt-1 leading-snug",style:{color:"#31363FAA"},children:r})]})}function Gr({levelNum:e,completed:t,onDone:r,label:n="Mark as complete",disabled:i=!1}
60){const[a,o]=R.useState(!1),[u,s]=R.useState(null);if(t)return null;const c=async()=>{if(a||i)return;o(!0),s(null);const f=await fetch(`/api/dashboard/level/${e}/complete`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"}});if(o(!1),f.ok)r();else{const l=await f.json();s(l.error??"Failed")}};return S.jsxs("div",{className:"mt-4",children:[u&&S.jsx("p",{className:"text-xs mb-2",style:{color:"#cc3333"},children:u}),S.jsxs("button",{"data-testid":`button-complete-level-${e}`,onClick:c,disabled:a||i,className:"flex items-center gap-3 group disabled:opacity-40 cursor-pointer disabled:cursor-default",children:[S.jsx("span",{className:"w-5 h-5 border-2 flex items-center justify-center flex-shrink-0 transition-colors group-hover:border-opacity-70",style:{borderColor:K,backgroundColor:"transparent"},children:a&&S.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:S.jsx("circle",{cx:"5",cy:"5",r:"4",stroke:K,strokeWidth:"1.5",strokeDasharray:"6 6",className:"animate-spin",style:{transformOrigin:"50% 50%"}})})}),S.jsx("span",{className:"text-sm font-bold uppercase tracking-widest",style:{color:K},children:n})]})]})}function UN({levelNum:e,subtaskKey:t,label:r,done:n,onDone:i,completedLevel:a}){const[o,u]=R.useState(!1),s=async()=>{if(n||o)return;u(!0);const d=await fetch(`/api/dashboard/level/${e}/subtask/${t}/complete`,{method:"POST",credentials:"include"});u(!1),d.ok&&i()},c=a?"rgba(238,238,238,0.85)":K,f=a?J:K,l=n?f:a?"rgba(238,238,238,0.4)":"#31363F55";return S.jsxs("button",{"data-testid":`subtask-${e}-${t}`,onClick:s,disabled:n||o,className:"flex items-center gap-3 w-full text-left py-2.5 transition-opacity hover:opacity-75 disabled:cursor-default",children:[S.jsx("span",{className:"w-5 h-5 flex-shrink-0 border-2 flex items-center justify-center transition-all",style:{borderColor:l,backgroundColor:n?f:"transparent"},children:n&&S.jsx("svg",{width:"10",height:"10",viewBox:"0 0 12 12",fill:"none",children:S.jsx("path",{d:"M2 6l3 3 5-5",stroke:a?K:J,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),S.jsx("span",{className:"text-sm font-medium",style:{color:c,textDecoration:n?"line-through":"none",opacity:n?.6:1},children:r})]})}const WN="https://api.leadconnectorhq.com/widget/bookings/business-master-meeting-1";function zN({hasPaid:e,completed:t,onDone:r}){const n=t?"rgba(238,238,238,0.8)":"#31363FAA";return e?S.jsxs("div",{className:"space-y-4",children:[S.jsx("p",{className:"text-sm",style:{color:n},children:"Book your first business meeting by using the calendar link below."}),S.jsx("p",{className:"text-sm",style:{color:n},children:"There is no need to prepare anything for this meeting. We will cover the following in this meeting:"}),S.jsxs("ul",{className:"text-sm space-y-0.5",style:{color:n},children:[S.jsx("li",{children:"â Personalised business ideas"}),S.jsx("li",{children:"â Income goal"}),S.jsx("li",{children:"â Circumstances"}),S.jsx("li",{children:"â Aspirations"}),S.jsx("li",{children:"â Values"})]}),S.jsx("a",{href:WN,target:"_blank",rel:"noopener noreferrer","data-testid":"link-book-meeting-1",className:"block sm:inline-block w-full sm:w-auto text-center sm:text-left px-4 py-2 text-sm font-bold uppercase tracking-widest hover:opacity-80 transition-opacity",style:{backgroundColor:t?"rgba(238,238,238,0.15)":K,color:J},children:"Book Business Meeting 1 â"}),S.jsx(Gr,{levelNum:1,completed:t,onDone:r,label:"Mark as meeting attended"})]}):S.jsx("p",{className:"text-sm",style:{color:n},children:"Complete payment to unlock your first business meeting."})}function tn({label:e,done:t,completedLevel:r,onTick:n,isOpen:i,onToggle:a,children:o}){const u=r?J:K,s=t?u:r?"rgba(238,238,238,0.4)":"#31363F55",c=r?"rgba(238,238,238,0.12)":"#31363F10";return S.jsxs("div",{className:"border-b",style:{borderColor:c},children:[S.jsxs("div",{className:"flex items-center gap-3 py-2.5",children:[S.jsx("button",{onClick:n,disabled:t,className:"flex-shrink-0 w-5 h-5 border-2 flex items-center justify-center hover:opacity-70 disabled:cursor-default transition-all",style:{borderColor:s,backgroundColor:t?u:"transparent"},children:t&&S.jsx("svg",{width:"10",height:"10",viewBox:"0 0 12 12",fill:"none",children:S.jsx("path",{d:"M2 6l3 3 5-5",stroke:r?K:J,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),S.jsxs("button",{onClick:a,className:"flex-1 flex items-center justify-between text-left hover:opacity-75 transition-opacity",children:[S.jsx("span",{className:"text-sm font-medium",style:{color:r?"rgba(238,238,238,0.85)":K,textDecoration:t?"line-through":"none",opacity:t?.6:1},children:e}),S.jsx("span",{className:"text-xs ml-2 flex-shrink-0",style:{color:r?"rgba(238,238,238,0.35)":"#31363F44"},children:i?"â²":"â¼"})]})]}),i&&S.jsx("div",{className:"pb-4 pl-4 sm:pl-8 pr-1",children:o})]})}function GN({progress:e,circleUrl:t,mviPence:r,username:n,displayName:i,completed:a,onDone:o}
60){const[u,s]=R.useState(null),[c,f]=R.useState(()=>{try{return localStorage.getItem("bm_pledge")??""}catch{return""}}),[l,d]=R.useState(i??""),[p,y]=R.useState(!1),[v,h]=R.useState(null),[b,x]=R.useState(!1),[w,O]=R.useState({}),[g,m]=R.useState(r>0?String(Math.round(r/100)):""),[_,P]=R.useState(!1),[A,M]=R.useState(null),T=a?"rgba(238,238,238,0.75)":"#31363F99",j=a?"rgba(255,255,255,0.1)":"white",C=a?J:K,k=a?"rgba(238,238,238,0.3)":"#31363F33",$=Object.values(w).reduce((B,H)=>B+(parseInt(H,10)||0),0),N=B=>s(H=>H===B?null:B),D=async B=>{_t(e,2,B)||(await fetch(`/api/dashboard/level/2/subtask/${B}/complete`,{method:"POST",credentials:"include"}),o())},L=async()=>{const B=parseInt(g,10);if(!B||B<=0){M("Enter a valid monthly amount");return}P(!0),M(null);const H=await fetch("/api/auth/me",{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({mviAmount:B*100})});if(H.ok)_t(e,2,"incomeGoal")||await fetch("/api/dashboard/level/2/subtask/incomeGoal/complete",{method:"POST",credentials:"include"}),o();else{const U=await H.json();M(U.error??"Failed to save")}P(!1)},W=async()=>{const B=l.trim();if(!B){h("Enter a display name");return}y(!0),h(null);const H=await fetch("/api/auth/me",{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({displayName:B})});if(H.ok)x(!0),o(),setTimeout(()=>x(!1),2e3);else{const U=await H.json();h(U.error??"Failed to save")}y(!1)};return S.jsxs("div",{children:[S.jsxs(tn,{label:"Set your income goal",done:_t(e,2,"incomeGoal"),completedLevel:a,onTick:()=>D("incomeGoal"),isOpen:u==="incomeGoal",onToggle:()=>N("incomeGoal"),children:[S.jsx("p",{className:"text-xs mb-3",style:{color:T},children:"Your income goal is the monthly revenue you need to quit your job. Use the calculator or enter it directly."}),S.jsx("p",{className:"text-[11px] font-black uppercase tracking-widest mb-2",style:{color:T},children:"Monthly Expense Calculator"}),S.jsx("div",{className:"space-y-1.5 mb-3",children:HN.map(B=>S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs w-28 flex-shrink-0 leading-tight",style:{color:T},children:B.label}),S.jsx("div",{className:"flex items-center border px-2 flex-shrink-0",style:{borderColor:k,backgroundColor:j},children:S.jsx("span",{className:"text-xs font-bold",style:{color:C},children:"£"})}),S.jsx("input",{"data-testid":`input-expense-${B.key}`,type:"number",min:"0",placeholder:"0",value:w[B.key]??"",onChange:H=>O(U=>({...U,[B.key]:H.target.value})),className:"flex-1 min-w-0 px-2 py-1.5 text-sm border outline-none",style:{borderColor:k,backgroundColor:j,color:C}})]},B.key))}),$>0&&S.jsxs("div",{className:"mb-3 border",style:{borderColor:k},children:[S.jsxs("div",{className:"flex items-center justify-between px-3 py-2",style:{backgroundColor:a?"rgba(255,255,255,0.05)":"#f5f5f5",borderBottom:`1px solid ${k}`},children:[S.jsx("span",{className:"text-xs uppercase tracking-widest",style:{color:T},children:"Total expenses"}),S.jsxs("span",{className:"text-sm font-bold",style:{color:C},children:["£",$.toLocaleString("en-GB"),"/mo"]})]}),S.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 px-3 py-2",style:{backgroundColor:a?"rgba(255,255,255,0.07)":"#efefef"},children:[S.jsxs("span",{className:"text-sm font-black uppercase tracking-widest",style:{color:C},children:["Income goal ",S.jsx("span",{className:"font-normal text-xs normal-case tracking-normal",style:{color:T},children:"(Ã1.5)"})]}),S.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[S.jsxs("span",{className:"text-sm font-black",style:{color:C},children:["£",Math.round($*1.5).toLocaleString("en-GB"),"/mo"]}),S.jsx("button",{"data-testid":"button-use-calculator-total",onClick:()=>m(String(Math.round($*1.5))),className:"text-xs font-bold uppercase tracking-widest px-2.5 py-1 hover:opacity-70",style:{backgroundColor:a?J:K,color:a?K:J},children:"Use this"})]})]})]}),S.jsxs("div",{className:"flex gap-2 items-stretch mb-2",children:[S.jsx("div",{className:"flex items-center border px-3",style:{borderColor:k,backgroundColor:j},children:S.jsx("span",{className:"text-sm font-bold",style:{color:C},children:"£"})}),S.jsx("input",{"data-testid":"input-mvi",type:"number",min:"1",placeholder:"e.g. 4000",value:g,onChange:B=>m(B.target.value),className:"flex-1 px-3 py-2.5 text-sm border outline-none",style:{borderColor:k,backgroundColor:j,color:C}}),S.jsx("button",{"data-testid":"button-save-mvi",onClick:L,disabled:_,className:"px-4 py-2.5 text-sm font-bold uppercase tracking-widest hover:opacity-80 disabled:opacity-40",style:{backgroundColor:a?J:K,color:a?K:J},children:_?"â¦":r>0?"Update":"Save"})]}),A&&S.jsx("p",{className:"text-xs mb-1",style:{color:"#cc3333"},children:A}),r>0&&S.jsxs("p",{className:"text-xs",style:{color:T},children:["Current goal: ",Rr(r),"/month"]})]}),S.jsxs(tn,{label:"Write your personal pledge",done:_t(e,2,"pledge"),completedLevel:a,onTick:()=>D("pledge"),isOpen:u==="pledge",onToggle:()=>N("pledge"),children:[S.jsx("p",{className:"text-xs mb-2",style:{color:T},children:"Write a personal pledge committing to your goal â your statement of intent. Then share it in the community."}),S.jsx("textarea",{rows:4,placeholder:"Notesâ¦",value:c,onChange:B=>{f(B.target.value);try{localStorage.setItem("bm_pledge",B.target.value)}catch{}},className:"w-full px-3 py-2 text-sm border outline-none resize-none",style:{borderColor:k,backgroundColor:j,color:C}})]}),S.jsxs(tn,{label:"Join the community",done:_t(e,2,"joinCommunity"),completedLevel:a,onTick:()=>D("joinCommunity"),isOpen:u==="joinCommunity",onToggle:()=>N("joinCommunity"),children:[S.jsx("p",{className:"text-xs mb-3",style:{color:T},children:"Join the Business Master community to connect with other members and get support."}),S.jsx("a",{href:"https://community.businessmaster.biz/communities/groups/business-master/home?invite=6a69dcee1
60dd024386a1b6916",target:"_blank",rel:"noopener noreferrer","data-testid":"link-community-access",className:"block sm:inline-block w-full sm:w-auto text-center sm:text-left px-3 py-2 text-xs font-bold uppercase tracking-widest hover:opacity-80 transition-opacity",style:{backgroundColor:a?J:K,color:a?K:J},children:"Access Community â"})]}),S.jsxs(tn,{label:"Dashboard and account",done:_t(e,2,"dashboardAccount"),completedLevel:a,onTick:()=>D("dashboardAccount"),isOpen:u==="dashboardAccount",onToggle:()=>N("dashboardAccount"),children:[S.jsxs("div",{className:"flex flex-col sm:flex-row flex-wrap gap-2 mb-4",children:[S.jsx(ri,{href:"/dashboard",children:S.jsx("span",{className:"block text-center sm:text-left sm:inline-block px-3 py-2 sm:py-1.5 text-xs font-bold uppercase tracking-widest hover:opacity-80 transition-opacity cursor-pointer",style:{backgroundColor:a?J:K,color:a?K:J},children:"Dashboard â"})}),S.jsx(ri,{href:"/profile",children:S.jsx("span",{className:"block text-center sm:text-left sm:inline-block px-3 py-2 sm:py-1.5 text-xs font-bold uppercase tracking-widest hover:opacity-80 transition-opacity cursor-pointer border",style:{borderColor:a?"rgba(238,238,238,0.3)":"#31363F33",color:a?"rgba(238,238,238,0.8)":K},children:"Account & Profile â"})})]}),S.jsx("p",{className:"text-[11px] font-black uppercase tracking-widest mb-1.5",style:{color:T},children:"Edit nickname"}),S.jsx("p",{className:"text-xs mb-2",style:{color:T},children:"This is the name that appears on your dashboard and leaderboard."}),S.jsxs("div",{className:"flex gap-2 items-stretch mb-1",children:[S.jsx("input",{type:"text",placeholder:"Your nickname",value:l,onChange:B=>d(B.target.value),className:"flex-1 px-3 py-2 text-sm border outline-none",style:{borderColor:k,backgroundColor:j,color:C}}),S.jsx("button",{onClick:W,disabled:p,className:"px-4 py-2 text-xs font-bold uppercase tracking-widest hover:opacity-80 disabled:opacity-40",style:{backgroundColor:a?J:K,color:a?K:J},children:p?"â¦":b?"Saved â":"Save"})]}),v&&S.jsx("p",{className:"text-xs mb-1",style:{color:"#cc3333"},children:v})]}),S.jsxs(tn,{label:"Business Page & Leaderboard",done:_t(e,2,"businessPageLeaderboard"),completedLevel:a,onTick:()=>D("businessPageLeaderboard"),isOpen:u==="businessPageLeaderboard",onToggle:()=>N("businessPageLeaderboard"),children:[S.jsx("p",{className:"text-xs mb-3",style:{color:T},children:"Edit and add businesses on your business page. As soon as your income goal is set you will appear on the leaderboard."}),S.jsxs("div",{className:"flex flex-col sm:flex-row flex-wrap gap-2",children:[S.jsx(ri,{href:"/my-page",children:S.jsx("span",{className:"block text-center sm:text-left sm:inline-block px-3 py-2 sm:py-1.5 text-xs font-bold uppercase tracking-widest hover:opacity-80 transition-opacity cursor-pointer",style:{backgroundColor:a?J:K,color:a?K:J},children:"Edit Business Page â"})}),n&&S.jsx("a",{href:`/u/${n}`,target:"_blank",rel:"noopener noreferrer",children:S.jsx("span",{className:"block text-center sm:text-left sm:inline-block px-3 py-2 sm:py-1.5 text-xs font-bold uppercase tracking-widest hover:opacity-80 transition-opacity cursor-pointer border",style:{borderColor:a?"rgba(238,238,238,0.3)":"#31363F33",color:a?"rgba(238,238,238,0.8)":K},children:"View Business Page â"})}),S.jsx(ri,{href:"/leaderboard",children:S.jsx("span",{className:"block text-center sm:text-left sm:inline-block px-3 py-2 sm:py-1.5 text-xs font-bold uppercase tracking-widest hover:opacity-80 transition-opacity cursor-pointer border",style:{borderColor:a?"rgba(238,238,238,0.3)":"#31363F33",color:a?"rgba(238,238,238,0.8)":K},children:"Leaderboard â"})})]})]})]})}const HN=[{key:"rent",label:"Rent / Mortgage"},{key:"food",label:"Food & Groceries"},{key:"transport",label:"Transport"},{key:"bills",label:"Bills & Utilities"},{key:"subscriptions",label:"Phone & Subscriptions"},{key:"other",label:"Other"}];function KN({completed:e,onDone:t}){const r=e?"rgba(238,238,238,0.75)":"#31363F99",n=["Research your market and competitors","Choose your business model","Plan your brand and website","Create a vision and mood board"];return S.jsxs("div",{children:[S.jsx("p",{className:"text-sm mb-4",style:{color:r},children:"Research and develop your business idea â explore the market, select a business model and plan your brand."}),S.jsx("div",{className:"space-y-2 mb-4",children:n.map(i=>S.jsxs("div",{className:"flex items-start gap-2",children:[S.jsx("span",{className:"text-xs font-black mt-0.5 flex-shrink-0",style:{color:e?"rgba(238,238,238,0.35)":"#31363F40"},children:"â"}),S.jsx("span",{className:"text-sm",style:{color:r},children:i})]},i))}),S.jsx(Gr,{levelNum:3,completed:e,onDone:t,label:"Mark as complete"})]})}function VN({completed:e,onDone:t}){const r=e?"rgba(238,238,238,0.8)":"#31363FAA";return S.jsxs("div",{className:"space-y-4",children:[S.jsx("p",{className:"text-sm",style:{color:r},children:"Book your second business meeting by using the calendar link below."}),S.jsx("p",{className:"text-sm",style:{color:r},children:"There is no need to prepare anything for this meeting. We will cover the following in this meeting:"}),S.jsxs("ul",{className:"text-sm space-y-0.5",style:{color:r},children:[S.jsx("li",{children:"â One-page business plan"}),S.jsx("li",{children:"â Business roadmap"}),S.jsx("li",{children:"â Software and tools"}),S.jsx("li",{children:"â AI & automation"}),S.jsx("li",{children:"â Action plan"})]}),S.jsx("a",{href:XN,target:"_blank",rel:"noopener noreferrer","data-testid":"link-book-meeting-2",className:"block sm:inline-block w-full sm:w-auto text-center sm:text-left px-4 py-2 text-sm font-bold uppercase tracking-widest hover:opacity-80 transition-opacity",style:{backgroundColor:e?"rgba(238,238,238,0.15)":K,color:J},children:"Book Business Meeting 2 â"}),S.jsx(Gr,{levelNum:4,completed:e,onDone:t,label:"Mark as meeting attended"})]})}const XN="https://api.leadconnectorhq.com/widget/bookings/business-master-meeting-2",YN={"01":"Jan","02":"Feb","03":"Mar","04":"Apr","05":"May","06":"Jun","07":"Jul","08":"Aug","09":"Sep",10:"Oct",11:"Nov",12:"Dec"};function zg(e){if(e===0)return"£0";const t=e/100;return t>=1e3?`£${(t/1e3).toFixed(1)}
60k`:`£${t.toLocaleString("en-GB",{minimumFractionDigits:0})}`}function ZN({id:e,data:t,total:r,completed:n}){const i=t.map(u=>({month:YN[u.month.slice(5)]??u.month.slice(5),amount:u.amount})),a=`rev-grad-${e}`,o=n?"rgba(238,238,238,0.5)":"#6B7280";return S.jsxs("div",{className:"mt-3 px-1 pt-1 pb-2",children:[S.jsxs("div",{className:"flex items-center justify-between mb-1 px-1",children:[S.jsx("span",{className:"text-xs font-bold uppercase tracking-widest",style:{color:o},children:"Last 12 months"}),S.jsx("span",{className:"text-sm font-black",style:{color:n?J:K},children:zg(r)})]}),S.jsx(HS,{width:"100%",height:72,children:S.jsxs(LN,{data:i,margin:{top:4,right:4,left:4,bottom:0},children:[S.jsx("defs",{children:S.jsxs("linearGradient",{id:a,x1:"0",y1:"0",x2:"0",y2:"1",children:[S.jsx("stop",{offset:"5%",stopColor:"#F97316",stopOpacity:.65}),S.jsx("stop",{offset:"95%",stopColor:"#F97316",stopOpacity:0})]})}),S.jsx(Ga,{dataKey:"month",tick:{fontSize:9,fill:o},axisLine:!1,tickLine:!1,interval:1}),S.jsx(Ha,{hide:!0}),S.jsx(rt,{formatter:u=>[zg(u),"Revenue"],contentStyle:{backgroundColor:K,border:"none",fontSize:11,color:J,borderRadius:4},itemStyle:{color:J},cursor:{stroke:"#F97316",strokeWidth:1,strokeDasharray:"3 3"}}),S.jsx(It,{type:"monotone",dataKey:"amount",stroke:"#F97316",strokeWidth:2,fill:`url(#${a})`,dot:!1,activeDot:{r:3,fill:"#F97316"}})]})})]})}function JN({startups:e,completed:t,onDone:r}){const[n,i]=R.useState(!1),[a,o]=R.useState(""),[u,s]=R.useState(""),[c,f]=R.useState(""),[l,d]=R.useState(null),[p,y]=R.useState(null),[v,h]=R.useState(null),b=t?"rgba(238,238,238,0.75)":"#31363F99",x=t?"rgba(238,238,238,0.3)":"#31363F33",w=t?"rgba(255,255,255,0.08)":"white",O=t?J:K,g=async()=>{if(!a.trim()){d("Name is required");return}d(null);const A=await fetch("/api/startups",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a.trim(),website:u.trim()||null,stripeApiKey:c.trim()||null})});if(A.ok)o(""),s(""),f(""),i(!1),r(!0);else{const M=await A.json();d(M.error??"Failed to add startup")}},m=async A=>{y(A),await fetch(`/api/startups/${A}/sync`,{method:"POST",credentials:"include"}),y(null),r(!0)},_=async A=>{h(A),await fetch(`/api/startups/${A}`,{method:"DELETE",credentials:"include"}),h(null),r(!0)},P={backgroundColor:t?J:K,color:t?K:J};return S.jsxs("div",{children:[S.jsx("p",{className:"text-sm mb-3",style:{color:b},children:"Now is the time to build your business. Register your startup below to track revenue automatically."}),S.jsx("p",{className:"text-xs font-black uppercase tracking-widest mb-3 mt-2",style:{color:t?"rgba(238,238,238,0.4)":"#31363F44"},children:"Your Startups"}),e.length>0&&S.jsx("div",{className:"space-y-3 mb-4",children:e.map(A=>S.jsxs("div",{className:"p-3 border",style:{borderColor:t?"rgba(238,238,238,0.2)":"#31363F22",backgroundColor:t?"rgba(255,255,255,0.07)":"#f9f9f9"},children:[S.jsxs("div",{className:"flex items-start justify-between gap-2",children:[S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("p",{className:"font-bold text-sm",style:{color:t?J:K},children:A.name}),A.website&&S.jsx("p",{className:"text-xs truncate",style:{color:b},children:A.website}),S.jsxs("p",{className:"text-xs mt-1 font-bold",style:{color:t?J:K},children:[Rr(A.monthlyRevenue),"/mo",A.lastSyncedAt&&S.jsxs("span",{style:{color:b,fontWeight:400},children:[" · synced ",new Date(A.lastSyncedAt).toLocaleDateString("en-GB",{day:"numeric",month:"short"})]})]})]}),S.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[A.hasStripeKey&&S.jsx("button",{"data-testid":`button-sync-startup-${A.id}`,onClick:()=>m(A.id),disabled:p===A.id,className:"text-xs font-bold uppercase tracking-widest px-2.5 py-1.5 hover:opacity-70 disabled:opacity-40",style:P,children:p===A.id?"â¦":"Sync"}),S.jsx("button",{"data-testid":`button-delete-startup-${A.id}`,onClick:()=>_(A.id),disabled:v===A.id,className:"text-xs font-bold uppercase tracking-widest px-2.5 py-1.5 hover:opacity-70 disabled:opacity-40",style:{backgroundColor:t?"rgba(238,238,238,0.15)":"#31363F15",color:t?"rgba(238,238,238,0.7)":"#31363F77"},children:v===A.id?"â¦":"Remove"})]})]}),A.revenueByMonth&&A.revenueByMonth.length>0&&S.jsx(ZN,{id:A.id,data:A.revenueByMonth,total:A.revenueByMonth.reduce((M,T)=>
60M+T.amount,0),completed:t})]},A.id))}),n?S.jsxs("div",{className:"space-y-2 p-3 border",style:{borderColor:t?"rgba(238,238,238,0.2)":"#31363F22"},children:[S.jsx("input",{"data-testid":"input-startup-name",placeholder:"Startup name *",value:a,onChange:A=>o(A.target.value),className:"w-full px-3 py-2 text-sm border outline-none",style:{borderColor:x,backgroundColor:w,color:O}}),S.jsx("input",{"data-testid":"input-startup-website",placeholder:"Website (optional)",value:u,onChange:A=>s(A.target.value),className:"w-full px-3 py-2 text-sm border outline-none",style:{borderColor:x,backgroundColor:w,color:O}}),S.jsx("input",{"data-testid":"input-startup-stripe",placeholder:"Stripe restricted key (optional)",value:c,onChange:A=>f(A.target.value),className:"w-full px-3 py-2 text-sm border outline-none font-mono",style:{borderColor:x,backgroundColor:w,color:O}}),l&&S.jsx("p",{className:"text-xs",style:{color:"#cc3333"},children:l}),S.jsxs("div",{className:"flex gap-2",children:[S.jsx("button",{onClick:g,className:"px-4 py-2 text-sm font-bold uppercase tracking-widest hover:opacity-80",style:P,"data-testid":"button-save-startup",children:"Save"}),S.jsx("button",{onClick:()=>{i(!1),d(null)},className:"px-4 py-2 text-sm font-bold uppercase tracking-widest hover:opacity-70",style:{backgroundColor:"transparent",color:t?"rgba(238,238,238,0.6)":"#31363F77",border:`1px solid ${t?"rgba(238,238,238,0.3)":"#31363F33"}`},children:"Cancel"})]})]}):S.jsx("button",{"data-testid":"button-add-startup",onClick:()=>i(!0),className:"px-4 py-2 text-sm font-bold uppercase tracking-widest hover:opacity-80",style:P,children:"+ Add startup"}),S.jsx("div",{className:"mt-4",children:S.jsx(Gr,{levelNum:5,completed:t,onDone:()=>r(!1),label:"Mark as complete"})})]})}function QN({progress:e,completed:t,onDone:r}
60){const n=[{key:"testStartup",label:"Test your startup end-to-end"},{key:"showFriends",label:"Show it to friends and family"},{key:"postCommunity",label:"Post in the Business Master community"},{key:"testRefine",label:"Test, collect feedback, and refine"}];return S.jsxs("div",{children:[S.jsx("p",{className:"text-sm mb-3",style:{color:t?"rgba(238,238,238,0.75)":"#31363F99"},children:"Launch your startup publicly. Complete all four steps to finish this level."}),S.jsx("div",{className:"space-y-1 mb-3",children:n.map(i=>S.jsx(UN,{levelNum:6,subtaskKey:i.key,label:i.label,done:_t(e,6,i.key),completedLevel:t,onDone:r},i.key))}),S.jsx(Gr,{levelNum:6,completed:t,onDone:r,label:"Mark as complete"})]})}function eR({completed:e,onDone:t}){const r=e?"rgba(238,238,238,0.8)":"#31363FAA";return S.jsxs("div",{className:"space-y-4",children:[S.jsx("p",{className:"text-sm",style:{color:r},children:"Book your third business meeting by using the calendar link below."}),S.jsx("p",{className:"text-sm",style:{color:r},children:"There is no need to prepare anything for this meeting. We will cover the following in this meeting:"}),S.jsxs("ul",{className:"text-sm space-y-0.5",style:{color:r},children:[S.jsx("li",{children:"â Marketing strategy"}),S.jsx("li",{children:"â Sales process"}),S.jsx("li",{children:"â Marketing channels"}),S.jsx("li",{children:"â Systems & automations"}),S.jsx("li",{children:"â Content & campaigns"})]}),S.jsx("a",{href:tR,target:"_blank",rel:"noopener noreferrer","data-testid":"link-book-meeting-3",className:"block sm:inline-block w-full sm:w-auto text-center sm:text-left px-4 py-2 text-sm font-bold uppercase tracking-widest hover:opacity-80 transition-opacity",style:{backgroundColor:e?"rgba(238,238,238,0.15)":K,color:J},children:"Book Business Meeting 3 â"}),S.jsx(Gr,{levelNum:7,completed:e,onDone:t,label:"Mark as meeting attended"})]})}const tR="https://api.leadconnectorhq.com/widget/bookings/business-master-meeting-3";function rR({resources:e,totalRevenue:t,mviPence:r,completed:n}){const[i,a]=R.useState(null),o=r>0?Math.round(t/r*100):0,u=n?"rgba(238,238,238,0.75)":"#31363F99",s=n?"rgba(238,238,238,0.15)":"#31363F15";return S.jsxs("div",{children:[S.jsx("p",{className:"text-sm mb-4",style:{color:u},children:"Grow your business. Explore the resources below to learn each marketing channel and keep building momentum. This step completes automatically once your combined monthly revenue reaches your income goal."}),e.length>0&&S.jsx("div",{className:"space-y-1 mb-4",children:e.map(c=>{const f=i===c.key;return S.jsxs("div",{className:"border overflow-hidden",style:{borderColor:s},children:[S.jsxs("button",{"data-testid":`accordion-marketing-${c.key}`,onClick:()=>a(f?null:c.key),className:"w-full flex items-center justify-between px-3 py-2.5 text-left hover:opacity-80 transition-opacity",children:[S.jsx("span",{className:"text-sm font-bold",style:{color:n?J:K},children:c.title}),S.jsx("span",{className:"text-xs",style:{color:u},children:f?"â²":"â¼"})]}),f&&S.jsxs("div",{className:"px-3 pb-3 pt-1",style:{borderTop:`1px solid ${s}`},children:[S.jsx("p",{className:"text-sm mb-3",style:{color:u},children:c.summary}),c.links.length>0&&S.jsx("div",{className:"space-y-1",children:c.links.map(l=>S.jsxs("a",{href:l.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs hover:opacity-70 transition-opacity",style:{color:n?J:K},children:[l.recommended&&S.jsx("span",{className:"text-xs font-bold",style:{color:"#f59e0b"},children:"â
"}),S.jsx("span",{className:"underline",children:l.label})]},l.url))})]})]},c.key)})}),r>0?S.jsxs("div",{className:"mb-2",children:[S.jsx("p",{className:"text-xs font-black uppercase tracking-widest mb-2",style:{color:n?"rgba(238,238,238,0.4)":"#31363F44"},children:"Income Goal Progress"}),S.jsxs("div",{className:"flex justify-between items-end mb-1.5",children:[S.jsxs("span",{className:"text-sm font-bold",style:{color:n?J:K},children:[Rr(t),"/mo"]}),S.jsxs("span",{className:"text-sm",style:{color:u},children:["Goal: ",Rr(r),"/mo"]})]}),S.jsx("div",{className:"h-3 w-full",style:{backgroundColor:n?"rgba(238,238,238,0.2)":"#31363F15"},children:S.jsx("div",{className:"h-full transition-all duration-700",style:{width:`${Math.min(o,100)}%`,backgroundColor:n?J:K}})}),S.jsx("p",{className:"text-xs mt-1.5",style:{color:u},children:n?"Income goal reached â congratulations!":`${o}% of your monthly income goal`})]}):S.jsx("p",{className:"text-sm",style:{color:u},children:"Set your income goal in Step 2 to enable progress tracking here."}),S.jsx("p",{className:"text-sm mt-4 font-medium",style:{color:n?"rgba(238,238,238,0.6)":"#31363F88"},children:"This stage will complete when you reach your monthly income goal."})]})}function nR({completed:e,l8Done:t}){const r=e?"rgba(238,238,238,0.75)":"#31363F99";return t?S.jsxs("div",{children:[S.jsx("p",{className:"text-sm mb-4",style:{color:r},children:"Congratulations on reaching your income goal! Book your Business Master podcast appearance to share your story as a guest founder."}),S.jsx("a",{href:FN,target:"_blank",rel:"noopener noreferrer","data-testid":"link-po
60dcast-calendly",className:"block sm:inline-block w-full sm:w-auto text-center sm:text-left px-5 py-2.5 text-sm font-bold uppercase tracking-widest hover:opacity-80 transition-opacity",style:{backgroundColor:e?J:K,color:e?K:J},children:"Book podcast slot â"})]}):S.jsx("p",{className:"text-sm",style:{color:r},children:"This step unlocks automatically once your combined monthly revenue from all businesses reaches your income goal."})}function iR({num:e,progress:t,startups:r,mviPence:n,totalRevenue:i,booking:a,hasPaid:o,circleUrl:u,marketingResources:s,username:c,displayName:f,completed:l,isActive:d,isLocked:p,isOpen:y,onToggle:v,onRefresh:h}){const b=y&&!p,x=l?K:J,w=l||d?K:"#31363F18",O=d&&!l?2:1,g=l?"rgba(238,238,238,0.5)":d?K:"#31363F40",m=l?J:d?K:"#31363F60";function _(){switch(e){case 1:return S.jsx(zN,{booking:a,hasPaid:o,mviPence:n,completed:l,onDone:h});case 2:return S.jsx(GN,{progress:t,circleUrl:u,mviPence:n,username:c,displayName:f,completed:l,onDone:h});case 3:return S.jsx(KN,{completed:l,onDone:h});case 4:return S.jsx(VN,{completed:l,onDone:h});case 5:return S.jsx(JN,{startups:r,completed:l,onDone:P=>{h()}});case 6:return S.jsx(QN,{progress:t,completed:l,onDone:h});case 7:return S.jsx(eR,{completed:l,onDone:h});case 8:return S.jsx(rR,{resources:s,totalRevenue:i,mviPence:n,completed:l});case 9:return S.jsx(nR,{completed:l,l8Done:Qx(t,8)});default:return null}}return S.jsxs("div",{"data-testid":`card-level-${e}`,className:"transition-all duration-500 overflow-hidden",style:{backgroundColor:x,border:`${O}px solid ${w}`,opacity:p?.45:1},children:[S.jsxs("div",{className:`flex items-center gap-3 px-4 py-4 ${p?"":"cursor-pointer hover:opacity-90"}`,onClick:()=>!p&&v(),children:[S.jsx("div",{className:"w-8 h-8 flex-shrink-0 flex items-center justify-center border-2 rounded-full text-xs font-black",style:{borderColor:g,color:g},children:l?"â":e}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsxs("p",{className:"text-[10px] font-black uppercase tracking-[0.15em] mb-0.5",style:{color:l?"rgba(238,238,238,0.4)":d?"#31363F55":"#31363F30"},children:["Step ",e]}),S.jsx("p",{className:"font-black uppercase tracking-tight text-sm md:text-[0.95rem] leading-tight",style:{color:m},children:Jx[e]??`Step ${e}`})]}),!p&&S.jsx("span",{className:"text-xs font-bold uppercase tracking-widest flex-shrink-0",style:{color:l?"rgba(238,238,238,0.5)":"#31363F40"},children:y?"â²":"â¼"}),p&&S.jsx("span",{className:"text-xs font-bold uppercase tracking-widest flex-shrink-0",style:{color:"#31363F35"},children:"Locked"})]}),b&&S.jsx("div",{className:"px-4 pb-5 pt-1 border-t",style:{borderColor:l?"rgba(238,238,238,0.12)":"#31363F10"},children:_()})]})}function lR(){const[,e]=e1(),{user:t,isLoading:r,isAuthenticated:n,logout:i}=r1(),a=t1(),[o,u]=R.useState(!1),[s,c]=R.useState(1),{data:f}=Xa({queryKey:["/api/dashboard/me"],enabled:n,queryFn:async()=>{const m=await fetch("/api/dashboard/me",{credentials:"include"});return m.ok?m.json():{circleEnabled:!1,circleUrl:null,hasPaid:!1,mviAmount:null,booking:null,levelProgress:{},totalRevenuePence:0}}}),{data:l=[]}=Xa({queryKey:["/api/startups"],enabled:n,queryFn:async()=>{const m=await fetch("/api/startups",{credentials:"include"});return m.ok?m.json():[]}}),{data:d=[]}=Xa({queryKey:["/api/resources/marketing"],queryFn:async()=>{const m=await fetch("/api/resources");return m.ok?(await m.json()).filter(P=>P.category==="marketing").sort((P,A)=>P.sortOrder-A.sortOrder):[]},staleTime:0});function p(){a.invalidateQueries({queryKey:["/api/dashboard/me"]}),a.invalidateQueries({queryKey:["/api/startups"]}),a.invalidateQueries({queryKey:["/api/auth/me"]})}R.useEffect(()=>{!r&&!n&&window.location.replace("/login")},[r,n]);const y=f?.levelProgress??{},v=f?.booking??null;function h(m){return Qx(y,m)}function b(){for(let m=1;m<=9;m++)if(!h(m))return m;return 10}const x=b();if(R.useEffect(()=>{c(x<=9?x:9)},[x]),r||!n||!t)return S.jsx("div",{className:"min-h-screen flex items-center justify-center",style:{backgroundColor:"white"},children:S.jsx("p",{className:"text-sm uppercase tracking-widest",style:{color:"#31363F77"},children:"Loadingâ¦"})});const w=f?.mviAmount??t.mviAmount??0,O=f?.totalRevenuePence??l.reduce((m,_)=>m+_.monthlyRevenue,0),g=w>0?Math.round(O/w*100):0;return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"min-h-screen",style:{backgroundColor:"white"},children:S.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-6 sm:py-10",children:[S.jsxs("div",{className:"flex items-start justify-between mb-8",children:[S.jsx("h1",{className:"text-2xl font-black uppercase tracking-tight",style:{color:K,letterSpacing:"-0.04em"},"data-testid":"text-displayname",children:t.displayName||t.email.split("@")[0]}),S.jsxs("div",{className:"flex flex-col items-end gap-2",children:[t.isAdmin&&S.jsx("a",{href:"/admin/resources","data-testid":"link-admin-resources",className:"text-xs font-bold uppercase tracking-widest hover:opacity-70 transition-opacity",style:{color:K},children:"Admin: Resources"}),S.jsx("button",{"data-testid":"button-logout",onClick:()=>u(!0),className:"text-sm font-bold uppercase tracking-widest hover:opacity-70 transition-opacity",style:{color:K},children:"Sign out"})]})]}),S.jsx("div",{className:"grid grid-cols-3 gap-2 mb-8",children:[{href:"/my-page",label:"Edit Page",testId:"link-edit-page",newTab:!1,icon:S.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[S.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),S.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})},{href:t.username?`/u/${t.username}`:`/u/${t.id}`,label:"View Page",testId:"link-view-page",newTab:!0,icon:S.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[S.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),S.jsx("circle",{cx:"12",cy:"12",r:"3"})]})},{href:"/profile",label:"Settings",testId:"link-settings",newTab:!1,icon:S.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[S.jsx("circle",{cx:"12",cy:"12",r:"3"}),S.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]})},{href:"https://community.businessmaster.biz/communities/groups/business-master/home?invite=6a69dcee1
60dd024386a1b6916",label:"Community",testId:"link-community",newTab:!0,icon:S.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[S.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),S.jsx("circle",{cx:"9",cy:"7",r:"4"}),S.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),S.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})},{href:"/leaderboard",label:"Leaderboard",testId:"link-leaderboard-btn",newTab:!1,icon:S.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[S.jsx("line",{x1:"18",y1:"20",x2:"18",y2:"10"}),S.jsx("line",{x1:"12",y1:"20",x2:"12",y2:"4"}),S.jsx("line",{x1:"6",y1:"20",x2:"6",y2:"14"})]})},{href:"https://npmw9milrnt.typeform.com/to/MHe0ipRn",label:"Contact",testId:"link-feedback",newTab:!0,icon:S.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:S.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}].map(m=>S.jsxs("button",{"data-testid":m.testId,onClick:()=>{m.newTab?window.open(m.href,"_blank","noopener,noreferrer"):e(m.href)},className:"flex flex-col items-center justify-center gap-1.5 px-1 py-3 text-[10px] sm:text-xs font-bold uppercase tracking-normal sm:tracking-wider hover:opacity-75 transition-opacity text-center leading-tight",style:{backgroundColor:K,color:J},children:[m.icon,S.jsx("span",{className:"leading-none",children:m.label})]},m.testId))}),S.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-10",children:[S.jsx(Vc,{label:"Current Step",value:x<=9?String(x):"â",sub:x<=9?Jx[x]:"Programme Complete"}),S.jsx(Vc,{label:"Monthly Revenue",value:Rr(O),sub:`Across ${l.length} startup${l.length!==1?"s":""}`}),S.jsx(Vc,{label:"Income Goal Progress",value:w>0?`${g}%`:"â",sub:w>0?`Goal: ${Rr(w)}/mo`:"Set in Step 2"})]}),S.jsx("div",{className:"space-y-4",children:[1,2,3,4,5,6,7,8,9].map(m=>S.jsx(iR,{num:m,progress:y,startups:l,mviPence:w,totalRevenue:O,booking:v,hasPaid:f?.hasPaid??t.hasPaid,circleUrl:f?.circleUrl??null,marketingResources:d,username:t.username??null,displayName:t.displayName??null,completed:h(m),isActive:x===m,isLocked:x<m,isOpen:s===m,onToggle:()=>c(s===m?0:m),onRefresh:p},m))}),S.jsxs("div",{className:"mt-10 p-6",style:{backgroundColor:J},children:[S.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[S.jsx("p",{className:"text-xs uppercase tracking-widest",style:{color:"#31363F99"},children:"Refer friends"}),S.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest px-2 py-0.5",style:{backgroundColor:"#31363F22",color:"#31363F77"},children:"Coming Soon"})]}),S.jsx("p",{className:"text-sm font-bold mb-4",style:{color:K},children:"Make 20% affiliate commission"}),S.jsx("span",{"data-testid":"link-affiliate-dashboard",className:"inline-block px-5 py-2.5 text-sm font-bold uppercase tracking-widest cursor-not-allowed",style:{backgroundColor:"#31363F33",color:"#31363F55"},children:"Affiliate Dashboard â"})]})]})}),S.jsx(n1,{open:o,onOpenChange:u,children:S.jsxs(i1,{children:[S.jsxs(a1,{children:[S.jsx(o1,{"data-testid":"text-logout-dialog-title",children:"Sign out?"}),S.jsx(u1,{"data-testid":"text-logout-dialog-description",children:"Are you sure you want to sign out?"})]}),S.jsxs(s1,{children:[S.jsx(c1,{"data-testid":"button-logout-cancel",children:"Cancel"}),S.jsx(l1,{"data-testid":"button-logout-confirm",onClick:()=>i({onSuccess:()=>e("/")}),children:"Sign out"})]})]})})]})}export{lR as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.