vendor: 2,059 bytes, lines 1-11
1import{i as hm,a9 as te,t as Ve,U as yx,D as gx,K as ki,c as mx,_ as bx,J as xx}from"./index-DgQF9_9e.js";import{k as Yn,l as ce,r as B,m as wx,d as j,A as pr,j as S}from"./vendor-react-WWe_5588.js";import{A as _x}from"./AdminLayout-tLyShkyC.js";import{C as Ox}from"./circle-x-BZr439Ch.js";import{U as Sx}from"./user-x-DqpL4KYR.js";import{C as Px}from"./chevron-down-Bxs8NxVX.js";import{T as Ax}from"./trending-down-BC_AkQdl.js";import"./vendor-radix-WTULBCDH.js";import"./vendor-tiptap-T0AR0VUJ.js";import"./calendar-days-Cb4h0H80.js";import"./log-out-DX4cBk2Y.js";import"./tag-C-1CmtAH.js";import"./newspaper-DVf2oWLo.js";import"./shield-check-BqKmdDg3.js";/** 2 * @license lucide-react v0.453.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Tx=hm("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 7 * @license lucide-react v0.453.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const jx=hm("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var Ri,Xf;function ke(){if(Xf)return Ri;Xf=1;var e=Array.isArray;return Ri=e,Ri}var Di,Vf;function pm(){if(Vf)return Di;Vf=1;var e=typeof Yn=="object"&&Yn&&Yn.Object===Object&&Yn;return Di=e,Di}var qi,Yf;function st(){if(Yf)return qi;Yf=1;var e=pm(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return qi=r,qi}var Li,Zf;function Fn(){if(Zf)return Li;Zf=1;var e=st(),t=e.Symbol;return Li=t,Li}var Bi,Qf;function Ix(){if(Qf)return Bi;Qf=1;var e=Fn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(o){var s=r.call(o,a),u=o[a];try{o[a]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(s?o[a]=u:delete o[a]),f}return Bi=i,Bi}var Ki,Jf;function Ex(){if(Jf)return Ki;Jf=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ki=r,Ki}
vendor: 5,451 bytes, line 11
11var Fi,ed;function mt(){if(ed)return Fi;ed=1;var e=Fn(),t=Ix(),r=Ex(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?a:n:i&&i in Object(s)?t(s):r(s)}return Fi=o,Fi}var zi,td;function bt(){if(td)return zi;td=1;function e(t){return t!=null&&typeof t=="object"}return zi=e,zi}var Wi,rd;function Rr(){if(rd)return Wi;rd=1;var e=mt(),t=bt(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return Wi=n,Wi}var Ui,nd;function Bl(){if(nd)return Ui;nd=1;var e=ke(),t=Rr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(e(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||o!=null&&i in Object(o)}return Ui=a,Ui}var Hi,ad;function Et(){if(ad)return Hi;ad=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Hi=e,Hi}var Gi,id;function Kl(){if(id)return Gi;id=1;var e=mt(),t=Et(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(s){if(!t(s))return!1;var u=e(s);return u==n||u==a||u==r||u==i}return Gi=o,Gi}var Xi,od;function Mx(){if(od)return Xi;od=1;var e=st(),t=e["__core-js_shared__"];return Xi=t,Xi}var Vi,sd;function Cx(){if(sd)return Vi;sd=1;var e=Mx(),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 Vi=r,Vi}var Yi,ud;function vm(){if(ud)return Yi;ud=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 Yi=r,Yi}var Zi,cd;function Nx(){if(cd)return Zi;cd=1;var e=Kl(),t=Cx(),r=Et(),n=vm(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,u=o.toString,c=s.hasOwnProperty,f=RegExp("^"+u.call(c).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var h=e(d)?f:i;return h.test(n(d))}return Zi=l,Zi}var Qi,ld;function $x(){if(ld)return Qi;ld=1;function e(t,r){return t?.[r]}return Qi=e,Qi}var Ji,fd;function er(){if(fd)return Ji;fd=1;var e=Nx(),t=$x();function r(n,a){var i=t(n,a);return e(i)?i:void 0}return Ji=r,Ji}var eo,dd;function ai(){if(dd)return eo;dd=1;var e=er(),t=e(Object,"create");return eo=t,eo}var to,hd;function kx(){if(hd)return to;hd=1;var e=ai();function t(){this.__data__=e?e(null):{},this.size=0}return to=t,to}var ro,pd;function Rx(){if(pd)return ro;pd=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return ro=e,ro}var no,vd;function Dx(){if(vd)return no;vd=1;var e=ai(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(i){var o=this.__data__;if(e){var s=o[i];return s===t?void 0:s}return n.call(o,i)?o[i]:void 0}return no=a,no}var ao,yd;function qx(){if(yd)return ao;yd=1;var e=ai(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:r.call(i,a)}return ao=n,ao}var io,gd;function Lx(){if(gd)return io;gd=1;var e=ai(),t="__lodash_hash_undefined__";function r(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?t:a,this}return io=r,io}var oo,md;function Bx(){if(md)return oo;md=1;var e=kx(),t=Rx(),r=Dx(),n=qx(),a=Lx();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,oo=i,oo}var so,bd;function Kx(){if(bd)return so;bd=1;function e(){this.__data__=[],this.size=0}return so=e,so}var uo,xd;function Fl(){if(xd)return uo;xd=1;function e(t,r){return t===r||t!==t&&r!==r}return uo=e,uo}var co,wd;function ii(){if(wd)return co;wd=1;var e=Fl();function t(r,n){for(var a=r.length;a--;)if(e(r[a][0],n))return a;return-1}return co=t,co}var lo,_d;function Fx(){if(_d)return lo;_d=1;var e=ii(),t=Array.prototype,r=t.splice;function n(a){var i=this.__data__,o=e(i,a);if(o<0)return!1;var s=i.length-1;return o==s?i.pop():r.call(i,o,1),--this.size,!0}return lo=n,lo}var fo,Od;function zx(){if(Od)return fo;Od=1;var e=ii();function t(r){var n=this.__data__,a=e(n,r);return a<0?void 0:n[a][1]}return fo=t,fo}var ho,Sd;function Wx(){if(Sd)return ho;Sd=1;var e=ii();function t(r){return e(this.__data__,r)>-1}return ho=t,ho}var po,Pd;function Ux(){if(Pd)return po;Pd=1;var e=ii();function t(r,n){var a=this.__data__,i=e(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return po=t,po}var vo,Ad;function oi(){if(Ad)return vo;Ad=1;var e=Kx(),t=Fx(),r=zx(),n=Wx(),a=Ux();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,vo=i,vo}var yo,Td;function zl(){if(Td)return yo;Td=1;var e=er(),t=st(),r=e(t,"Map");return yo=r,yo}var go,jd;function Hx(){if(jd)return go;jd=1;var e=Bx(),t=oi(),r=zl();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return go=n,go}var mo,Id;function Gx(){if(Id)return mo;Id=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return mo=e,mo}var bo,Ed;function si(){if(Ed)return bo;Ed=1;var e=Gx();function t(r,n){var a=r.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return bo=t,bo}var xo,Md;
vendor: 6,436 bytes, line 11
11function Xx(){if(Md)return xo;Md=1;var e=si();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return xo=t,xo}var wo,Cd;function Vx(){if(Cd)return wo;Cd=1;var e=si();function t(r){return e(this,r).get(r)}return wo=t,wo}var _o,Nd;function Yx(){if(Nd)return _o;Nd=1;var e=si();function t(r){return e(this,r).has(r)}return _o=t,_o}var Oo,$d;function Zx(){if($d)return Oo;$d=1;var e=si();function t(r,n){var a=e(this,r),i=a.size;return a.set(r,n),this.size+=a.size==i?0:1,this}return Oo=t,Oo}var So,kd;function Wl(){if(kd)return So;kd=1;var e=Hx(),t=Xx(),r=Vx(),n=Yx(),a=Zx();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,So=i,So}var Po,Rd;function ym(){if(Rd)return Po;Rd=1;var e=Wl(),t="Expected a function";function r(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var i=function(){var o=arguments,s=a?a.apply(this,o):o[0],u=i.cache;if(u.has(s))return u.get(s);var c=n.apply(this,o);return i.cache=u.set(s,c)||u,c};return i.cache=new(r.Cache||e),i}return r.Cache=e,Po=r,Po}var Ao,Dd;function Qx(){if(Dd)return Ao;Dd=1;var e=ym(),t=500;function r(n){var a=e(n,function(o){return i.size===t&&i.clear(),o}),i=a.cache;return a}return Ao=r,Ao}var To,qd;function Jx(){if(qd)return To;qd=1;var e=Qx(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(t,function(o,s,u,c){i.push(u?c.replace(r,"$1"):s||o)}),i});return To=n,To}var jo,Ld;function Ul(){if(Ld)return jo;Ld=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=Array(a);++n<a;)i[n]=r(t[n],n,t);return i}return jo=e,jo}var Io,Bd;function e1(){if(Bd)return Io;Bd=1;var e=Fn(),t=Ul(),r=ke(),n=Rr(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return i?i.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}return Io=o,Io}var Eo,Kd;function gm(){if(Kd)return Eo;Kd=1;var e=e1();function t(r){return r==null?"":e(r)}return Eo=t,Eo}var Mo,Fd;function mm(){if(Fd)return Mo;Fd=1;var e=ke(),t=Bl(),r=Jx(),n=gm();function a(i,o){return e(i)?i:t(i,o)?[i]:r(n(i))}return Mo=a,Mo}var Co,zd;function ui(){if(zd)return Co;zd=1;var e=Rr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Co=t,Co}var No,Wd;function Hl(){if(Wd)return No;Wd=1;var e=mm(),t=ui();function r(n,a){a=e(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[t(a[i++])];return i&&i==o?n:void 0}return No=r,No}var $o,Ud;function bm(){if(Ud)return $o;Ud=1;var e=Hl();function t(r,n,a){var i=r==null?void 0:e(r,n);return i===void 0?a:i}return $o=t,$o}var t1=bm();const He=ce(t1);var ko,Hd;function r1(){if(Hd)return ko;Hd=1;function e(t){return t==null}return ko=e,ko}var n1=r1();const J=ce(n1);var Ro,Gd;function a1(){if(Gd)return Ro;Gd=1;var e=mt(),t=ke(),r=bt(),n="[object String]";function a(i){return typeof i=="string"||!t(i)&&r(i)&&e(i)==n}return Ro=a,Ro}var i1=a1();const Vt=ce(i1);var o1=Kl();const Y=ce(o1);var s1=Et();const Dr=ce(s1);var Do,Xd;function xm(){if(Xd)return Do;Xd=1;var e=mt(),t=bt(),r="[object Number]";function n(a){return typeof a=="number"||t(a)&&e(a)==r}return Do=n,Do}var qo,Vd;function u1(){if(Vd)return qo;Vd=1;var e=xm();function t(r){return e(r)&&r!=+r}return qo=t,qo}var c1=u1();const qr=ce(c1);var l1=xm();const f1=ce(l1);var Je=function(t){return t===0?0:t>0?1:-1},Bt=function(t){return Vt(t)&&t.indexOf("%")===t.length-1},F=function(t){return f1(t)&&!qr(t)},d1=function(t){return J(t)},Oe=function(t){return F(t)||Vt(t)},h1=0,zn=function(t){var r=++h1;return"".concat(t||"").concat(r)},Yt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!F(t)&&!Vt(t))return n;var i;if(Bt(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return qr(i)&&(i=n),a&&i>r&&(i=r),i},St=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},p1=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a<r;a++)if(!n[t[a]])n[t[a]]=!0;else return!0;return!1},We=function(t,r){return F(t)&&F(r)?function(n){return t+n*(r-t)}:function(){return r}};function fa(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):He(n,t))===r})}var v1=function(t,r){return F(t)&&F(r)?t-r:Vt(t)&&Vt(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 Nc(e){"@babel/helpers - typeof";return Nc=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},Nc(e)}var y1=["viewBox","children"],g1=["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","colorRen
11dering","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"],Yd=["points","pathLength"],Lo={svg:y1,polygon:Yd,polyline:Yd},Gl=["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","onDrag
11Capture","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"],da=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(B.isValidElement(t)&&(n=t.props),!Dr(n))return null;var a={};return Object.keys(n).forEach(function(i){Gl.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},m1=function(t,r,n){return function(a){return t(r,n,a),null}},ha=function(t,r,n){if(!Dr(t)||Nc(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];Gl.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=m1(o,r,n))}),a},b1=["children"],x1=["children"];function Zd(e,t){if(e==null)return{};var r=w1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function w1(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 $c(e){"@babel/helpers - typeof";return $c=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},$c(e)}var Qd={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":""},Jd=null,Bo=null,Xl=function e(t){if(t===Jd&&Array.isArray(Bo))return Bo;var r=[];return B.Children.forEach(t,function(n){J(n)||(wx.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Bo=r,Jd=t,r};function et(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return dt(a)}):n=[dt(t)],Xl(e).forEach(function(a){var i=He(a,"type.displayName")||He(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function De(e,t){var r=et(e,t);return r&&r[0]}var eh=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!F(n)||n<=0||!F(a)||a<=0)},_1=["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"],O1=function(t){return t&&t.type&&Vt(t.type)&&_1.indexOf(t.type)>=0},S1=function(t){return t&&$c(t)==="object"&&"clipDot"in t},P1=function(t,r,n,a){var i,o=(i=Lo?.[a])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!Y(t)&&(a&&o.includes(r)||g1.includes(r))||n&&Gl.includes(r)},Q=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(B.isValidElement(t)&&(a=t.props),!Dr(a))return null;var i={};
vendor: 4,803 bytes, line 11
11return Object.keys(a).forEach(function(o){var s;P1((s=a)===null||s===void 0?void 0:s[o],o,r,n)&&(i[o]=a[o])}),i},kc=function e(t,r){if(t===r)return!0;var n=B.Children.count(t);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return th(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=t[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!th(i,o))return!1}return!0},th=function(t,r){if(J(t)&&J(r))return!0;if(!J(t)&&!J(r)){var n=t.props||{},a=n.children,i=Zd(n,b1),o=r.props||{},s=o.children,u=Zd(o,x1);return a&&s?lr(i,u)&&kc(a,s):!a&&!s?lr(i,u):!1}return!1},rh=function(t,r){var n=[],a={};return Xl(t).forEach(function(i,o){if(O1(i))n.push(i);else if(i){var s=dt(i.type),u=r[s]||{},c=u.handler,f=u.once;if(c&&(!f||!a[s])){var l=c(i,s,o);n.push(l),a[s]=!0}}}),n},A1=function(t){var r=t&&t.type;return r&&Qd[r]?Qd[r]:null},T1=function(t,r){return Xl(r).indexOf(t)},j1=["children","width","height","viewBox","className","style","title","desc"];function Rc(){return Rc=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},Rc.apply(this,arguments)}function I1(e,t){if(e==null)return{};var r=E1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E1(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 Dc(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,u=e.desc,c=I1(e,j1),f=a||{width:r,height:n,x:0,y:0},l=te("recharts-surface",i);return j.createElement("svg",Rc({},Q(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),j.createElement("title",null,s),j.createElement("desc",null,u),t)}var M1=["children","className"];function qc(){return qc=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},qc.apply(this,arguments)}function C1(e,t){if(e==null)return{};var r=N1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function N1(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 de=j.forwardRef(function(e,t){var r=e.children,n=e.className,a=C1(e,M1),i=te("recharts-layer",n);return j.createElement("g",qc({className:i},Q(a,!0),{ref:t}),r)}),ht=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]},Ko,nh;function $1(){if(nh)return Ko;nh=1;function e(t,r,n){var a=-1,i=t.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(i);++a<i;)o[a]=t[a+r];return o}return Ko=e,Ko}var Fo,ah;function k1(){if(ah)return Fo;ah=1;var e=$1();function t(r,n,a){var i=r.length;return a=a===void 0?i:a,!n&&a>=i?r:e(r,n,a)}return Fo=t,Fo}var zo,ih;function wm(){if(ih)return zo;ih=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+a+i+"]");function u(c){return s.test(c)}return zo=u,zo}var Wo,oh;function R1(){if(oh)return Wo;oh=1;function e(t){return t.split("")}return Wo=e,Wo}var Uo,sh;function D1(){if(sh)return Uo;sh=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="["+e+"]",s="["+a+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+u+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",y=c+"?",v="["+i+"]?",p="(?:"+h+"(?:"+[f,l,d].join("|")+")"+v+y+")*",w=v+y+p,b="(?:"+[f+s+"?",s,l,d,o].join("|")+")",x=RegExp(u+"(?="+u+")|"+b+w,"g");function _(g){return g.match(x)||[]}return Uo=_,Uo}var Ho,uh;function q1(){if(uh)return Ho;uh=1;var e=R1(),t=wm(),r=D1();function n(a){return t(a)?r(a):e(a)}return Ho=n,Ho}var Go,ch;function L1(){if(ch)return Go;ch=1;var e=k1(),t=wm(),r=q1(),n=gm();function a(i){return function(o){o=n(o);var s=t(o)?r(o):void 0,u=s?s[0]:o.charAt(0),c=s?e(s,1).join(""):o.slice(1);return u[i]()+c}}return Go=a,Go}var Xo,lh;function B1(){if(lh)return Xo;lh=1;var e=L1(),t=e("toUpperCase");return Xo=t,Xo}var K1=B1();const ci=ce(K1);function oe(e){return function(){return e}}const _m=Math.cos,pa=Math.sin,tt=Math.sqrt,va=Math.PI,li=2*va,Lc=Math.PI,Bc=2*Lc,qt=1e-6,F1=Bc-qt;
vendor: 13,796 bytes, line 11
11function Om(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function z1(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Om;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;a<i;++a)this._+=Math.round(arguments[a]*r)/r+n[a]}}class W1{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Om:z1(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,a){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(t,r,n,a,i,o){this._append`C${+t},${+r},${+n},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,r,n,a,i){if(t=+t,r=+r,n=+n,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,u=n-t,c=a-r,f=o-t,l=s-r,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>qt)if(!(Math.abs(l*u-c*f)>qt)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,y=a-s,v=u*u+c*c,p=h*h+y*y,w=Math.sqrt(v),b=Math.sqrt(d),x=i*Math.tan((Lc-Math.acos((v+d-p)/(2*w*b)))/2),_=x/b,g=x/w;Math.abs(_-1)>qt&&this._append`L${t+_*f},${r+_*l}`,this._append`A${i},${i},0,0,${+(l*h>f*y)},${this._x1=t+g*u},${this._y1=r+g*c}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),u=n*Math.sin(a),c=t+s,f=r+u,l=1^o,d=o?a-i:i-a;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>qt||Math.abs(this._y1-f)>qt)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%Bc+Bc),d>F1?this._append`A${n},${n},0,1,${l},${t-s},${r-u}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:d>qt&&this._append`A${n},${n},0,${+(d>=Lc)},${l},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function Vl(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 W1(t)}function Yl(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Sm(e){this._context=e}Sm.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 fi(e){return new Sm(e)}function Pm(e){return e[0]}function Am(e){return e[1]}function Tm(e,t){var r=oe(!0),n=null,a=fi,i=null,o=Vl(s);e=typeof e=="function"?e:e===void 0?Pm:oe(e),t=typeof t=="function"?t:t===void 0?Am:oe(t);function s(u){var c,f=(u=Yl(u)).length,l,d=!1,h;for(n==null&&(i=a(h=o())),c=0;c<=f;++c)!(c<f&&r(l=u[c],c,u))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(l,c,u),+t(l,c,u));if(h)return i=null,h+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:oe(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:oe(+u),s):t},s.defined=function(u){return arguments.length?(r=typeof u=="function"?u:oe(!!u),s):r},s.curve=function(u){return arguments.length?(a=u,n!=null&&(i=a(n)),s):a},s.context=function(u){return arguments.length?(u==null?n=i=null:i=a(n=u),s):n},s}function Zn(e,t,r){var n=null,a=oe(!0),i=null,o=fi,s=null,u=Vl(c);e=typeof e=="function"?e:e===void 0?Pm:oe(+e),t=typeof t=="function"?t:oe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Am:oe(+r);function c(l){var d,h,y,v=(l=Yl(l)).length,p,w=!1,b,x=new Array(v),_=new Array(v);for(i==null&&(s=o(b=u())),d=0;d<=v;++d){if(!(d<v&&a(p=l[d],d,l))===w)if(w=!w)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=d-1;y>=h;--y)s.point(x[y],_[y]);s.lineEnd(),s.areaEnd()}w&&(x[d]=+e(p,d,l),_[d]=+t(p,d,l),s.point(n?+n(p,d,l):x[d],r?+r(p,d,l):_[d]))}if(b)return s=null,b+""||null}function f(){return Tm().defined(a).curve(o).context(i)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:oe(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:oe(+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?(a=typeof l=="function"?l:oe(!!l),c):a},c.curve=function(l){return arguments.length?(o=l,i!=null&&(s=o(i)),c):o},c.context=function(l){return arguments.length?(l==null?i=s=null:s=o(i=l),c):i},c}class jm{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 U1(e){return new jm(e,!0)}function H1(e){return new jm(e,!1)}const Zl={draw(e,t){const r=tt(t/va);e.moveTo(r,0),e.arc(0,0,r,0,li)}},G1={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()}},Im=tt(1/3),X1=Im*2,V1={draw(e,t){const r=tt(t/X1),n=r*Im;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Y1={draw(e,t){const r=tt(t),n=-r/2;e.rect(n,n,r,r)}},Z1=.8908130915292852,Em=pa(va/10)/pa(7*va/10),Q1=pa(li/10)*Em,J1=-_m(li/10)*Em,ew={draw(e,t){const r=tt(t*Z1),n=Q1*r,a=J1*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=li*i/5,s=_m(o),u=pa(o);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*a,u*n+s*a)}e.closePath()}},Vo=tt(3),tw={draw(e,t){const r=-tt(t/(Vo*3));e.moveTo(0,r*2),e.lineTo(-Vo*r,-r),e.lineTo(Vo*r,-r),e.closePath()}},Be=-.5,Ke=tt(3)/2,Kc=1/tt(12),rw=(Kc/2+1)*3,nw={draw(e,t){const r=tt(t/rw),n=r/2,a=r*Kc,i=n,o=r*Kc+r,s=-i,u=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,u),e.lineTo(Be*n-Ke*a,Ke*n+Be*a),e.lineTo(Be*i-Ke*o,Ke*i+Be*o),e.lineTo(Be*s-Ke*u,Ke*s+Be*u),e.lineTo(Be*n+Ke*a,Be*a-Ke*n),e.lineTo(Be*i+Ke*o,Be*o-Ke*i),e.lineTo(Be*s+Ke*u,Be*u-Ke*s),e.closePath()}};function aw(e,t){let r=null,n=Vl(a);e=typeof e=="function"?e:oe(e||Zl),t=typeof t=="function"?t:oe(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:oe(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:oe(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function ya(){}function ga(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 Mm(e){this._context=e}Mm.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:ga(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:ga(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iw(e){return new Mm(e)}function Cm(e){this._context=e}Cm.prototype={areaStart:ya,areaEnd:ya,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:ga(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ow(e){return new Cm(e)}function Nm(e){this._context=e}Nm.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:ga(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function sw(e){return new Nm(e)}function $m(e){this._context=e}$m.prototype={areaStart:ya,areaEnd:ya,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 uw(e){return new $m(e)}function fh(e){return e<0?-1:1}function dh(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),s=(i*a+o*n)/(n+a);return(fh(i)+fh(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function hh(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Yo(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function ma(e){this._context=e}ma.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:Yo(this,this._t0,hh(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,Yo(this,hh(this,r=dh(this,e,t)),r);break;default:Yo(this,this._t0,r=dh(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function km(e){this._context=new Rm(e)}(km.prototype=Object.create(ma.prototype)).point=function(e,t){ma.prototype.point.call(this,t,e)};function Rm(e){this._context=e}Rm.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,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function cw(e){return new ma(e)}function lw(e){return new km(e)}function Dm(e){this._context=e}Dm.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=ph(e),a=ph(t),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(n[0][i],a[0][i],n[1][i],a[1][i],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 ph(e){var t,r=e.length-1,n,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function fw(e){return new Dm(e)}function di(e,t){this._context=e,this._t=t}di.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: 68,241 bytes, lines 11-22
11default:{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 dw(e){return new di(e,.5)}function hw(e){return new di(e,0)}function pw(e){return new di(e,1)}function vr(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function Fc(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function vw(e,t){return e[t]}function yw(e){const t=[];return t.key=e,t}function gw(){var e=oe([]),t=Fc,r=vr,n=vw;function a(i){var o=Array.from(e.apply(this,arguments),yw),s,u=o.length,c=-1,f;for(const l of i)for(s=0,++c;s<u;++s)(o[s][c]=[0,+n(l,o[s].key,c,i)]).data=l;for(s=0,f=Yl(t(o));s<u;++s)o[f[s]].index=s;return r(o,f),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:oe(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:oe(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?Fc:typeof i=="function"?i:oe(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??vr,a):r},a}function mw(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}vr(e,t)}}function bw(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,s=0;o<a;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}vr(e,t)}}function xw(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var s=0,u=0,c=0;s<o;++s){for(var f=e[t[s]],l=f[n][1]||0,d=f[n-1][1]||0,h=(l-d)/2,y=0;y<s;++y){var v=e[t[y]],p=v[n][1]||0,w=v[n-1][1]||0;h+=p-w}u+=l,c+=h*l}a[n-1][1]+=a[n-1][0]=r,u&&(r-=c/u)}a[n-1][1]+=a[n-1][0]=r,vr(e,t)}}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)}var ww=["type","size","sizeType"];function zc(){return zc=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},zc.apply(this,arguments)}function vh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(r),!0).forEach(function(n){_w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _w(e,t,r){return t=Ow(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ow(e){var t=Sw(e,"string");return un(t)=="symbol"?t:t+""}function Sw(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 Pw(e,t){if(e==null)return{};var r=Aw(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Aw(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 qm={symbolCircle:Zl,symbolCross:G1,symbolDiamond:V1,symbolSquare:Y1,symbolStar:ew,symbolTriangle:tw,symbolWye:nw},Tw=Math.PI/180,jw=function(t){var r="symbol".concat(ci(t));return qm[r]||Zl},Iw=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 a=18*Tw;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),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}},Ew=function(t,r){qm["symbol".concat(ci(t))]=r},Ql=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,u=Pw(t,ww),c=yh(yh({},u),{},{type:n,size:i,sizeType:s}),f=function(){var p=jw(n),w=aw().type(p).size(Iw(i,s,n));return w()},l=c.className,d=c.cx,h=c.cy,y=Q(c,!0);return d===+d&&h===+h&&i===+i?j.createElement("path",zc({},y,{className:te("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};Ql.registerSymbol=Ew;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)}function Wc(){return Wc=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},Wc.apply(this,arguments)}function gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(r),!0).forEach(function(n){cn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nw(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,Bm(n.key),n)}}function $w(e,t,r){return t&&Nw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kw(e,t,r){return t=ba(t),Rw(e,Lm()?Reflect.construct(t,r||[],ba(e).constructor):t.apply(e,r))}function Rw(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 Dw(e)}function Dw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lm=function(){return!!e})()}function ba(e){return ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ba(e)}function qw(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&&Uc(e,t)}function Uc(e,t){return Uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Uc(e,t)}function cn(e,t,r){return t=Bm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bm(e){var t=Lw(e,"string");return yr(t)=="symbol"?t:t+""}function Lw(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)}var Fe=32,Jl=(function(e){function t(){return Cw(this,t),kw(this,t,arguments)}return qw(t,e),$w(t,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=Fe/2,o=Fe/6,s=Fe/3,u=n.inactive?a:n.color;if(n.type==="plainline")return j.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:Fe,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return j.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(i,"h").concat(s,` 12 A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(i,` 13 H`).concat(Fe,"M").concat(2*s,",").concat(i,` 14 A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return j.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(Fe/8,"h").concat(Fe,"v").concat(Fe*3/4,"h").concat(-Fe,"z"),className:"recharts-legend-icon"});if(j.isValidElement(n.legendIcon)){var c=Mw({},n);return delete c.legendIcon,j.cloneElement(n.legendIcon,c)}return j.createElement(Ql,{fill:u,cx:i,cy:i,size:Fe,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,o=a.iconSize,s=a.layout,u=a.formatter,c=a.inactiveColor,f={x:0,y:0,width:Fe,height:Fe},l={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(h,y){var v=h.formatter||u,p=te(cn(cn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",h.inactive));if(h.type==="none")return null;var w=Y(h.value)?null:h.value;ht(!Y(h.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 b=h.inactive?c:h.color;return j.createElement("li",Wc({className:p,style:l,key:"legend-item-".concat(y)},ha(n.props,h,y)),j.createElement(Dc,{width:o,height:o,viewBox:f,style:d},n.renderIcon(h)),j.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},v?v(w,h,y):w))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,o=n.align;if(!a||!a.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return j.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(B.PureComponent);cn(Jl,"displayName","Legend");cn(Jl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Zo,mh;function Bw(){if(mh)return Zo;mh=1;var e=oi();function t(){this.__data__=new e,this.size=0}return Zo=t,Zo}var Qo,bh;function Kw(){if(bh)return Qo;bh=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Qo=e,Qo}var Jo,xh;function Fw(){if(xh)return Jo;xh=1;function e(t){return this.__data__.get(t)}return Jo=e,Jo}var es,wh;function zw(){if(wh)return es;wh=1;function e(t){return this.__data__.has(t)}return es=e,es}var ts,_h;function Ww(){if(_h)return ts;_h=1;var e=oi(),t=zl(),r=Wl(),n=200;function a(i,o){var s=this.__data__;if(s instanceof e){var u=s.__data__;if(!t||u.length<n-1)return u.push([i,o]),this.size=++s.size,this;s=this.__data__=new r(u)}return s.set(i,o),this.size=s.size,this}return ts=a,ts}var rs,Oh;function Km(){if(Oh)return rs;Oh=1;var e=oi(),t=Bw(),r=Kw(),n=Fw(),a=zw(),i=Ww();function o(s){var u=this.__data__=new e(s);this.size=u.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,rs=o,rs}var ns,Sh;function Uw(){if(Sh)return ns;Sh=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return ns=t,ns}var as,Ph;function Hw(){if(Ph)return as;Ph=1;function e(t){return this.__data__.has(t)}return as=e,as}var is,Ah;function Fm(){if(Ah)return is;Ah=1;var e=Wl(),t=Uw(),r=Hw();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new e;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,is=n,is}var os,Th;function zm(){if(Th)return os;Th=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(t[n],n,t))return!0;return!1}return os=e,os}var ss,jh;function Wm(){if(jh)return ss;jh=1;function e(t,r){return t.has(r)}return ss=e,ss}var us,Ih;function Um(){if(Ih)return us;Ih=1;var e=Fm(),t=zm(),r=Wm(),n=1,a=2;function i(o,s,u,c,f,l){var d=u&n,h=o.length,y=s.length;if(h!=y&&!(d&&y>h))return!1;var v=l.get(o),p=l.get(s);if(v&&p)return v==s&&p==o;var w=-1,b=!0,x=u&a?new e:void 0;for(l.set(o,s),l.set(s,o);++w<h;){var _=o[w],g=s[w];if(c)var m=d?c(g,_,w,s,o,l):c(_,g,w,o,s,l);if(m!==void 0){if(m)continue;b=!1;break}if(x){if(!t(s,function(O,P){if(!r(x,P)&&(_===O||f(_,O,u,c,l)))return x.push(P)})){b=!1;break}}else if(!(_===g||f(_,g,u,c,l))){b=!1;break}}return l.delete(o),l.delete(s),b}return us=i,us}var cs,Eh;function Gw(){if(Eh)return cs;Eh=1;var e=st(),t=e.Uint8Array;return cs=t,cs}var ls,Mh;function Xw(){if(Mh)return ls;Mh=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,i){n[++r]=[i,a]}),n}return ls=e,ls}var fs,Ch;function ef(){if(Ch)return fs;Ch=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return fs=e,fs}var ds,Nh;function Vw(){if(Nh)return ds;Nh=1;var e=Fn(),t=Gw(),r=Fl(),n=Um(),a=Xw(),i=ef(),o=1,s=2,u="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",d="[object Number]",h="[object RegExp]",y="[object Set]",v="[object String]",p="[object Symbol]",w="[object ArrayBuffer]",b="[object DataView]",x=e?e.prototype:void 0,_=x?x.valueOf:void 0;function g(m,O,P,T,C,A,E){switch(P){case b:if(m.byteLength!=O.byteLength||m.byteOffset!=O.byteOffset)return!1;m=m.buffer,O=O.buffer;case w:return!(m.byteLength!=O.byteLength||!A(new t(m),new t(O)));case u:case c:case d:return r(+m,+O);case f:return m.name==O.name&&m.message==O.message;case h:case v:return m==O+"";case l:var M=a;case y:var $=T&o;if(M||(M=i),m.size!=O.size&&!$)return!1;var N=E.get(m);if(N)return N==O;T|=s,E.set(m,O);var R=n(M(m),M(O),T,C,A,E);return E.delete(m),R;case p:if(_)return _.call(m)==_.call(O)}return!1}return ds=g,ds}var hs,$h;function Hm(){if($h)return hs;$h=1;function e(t,r){for(var n=-1,a=r.length,i=t.length;++n<a;)t[i+n]=r[n];return t}return hs=e,hs}var ps,kh;function Yw(){if(kh)return ps;kh=1;var e=Hm(),t=ke();function r(n,a,i){var o=a(n);return t(n)?o:e(o,i(n))}return ps=r,ps}var vs,Rh;function Zw(){if(Rh)return vs;Rh=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=0,o=[];++n<a;){var s=t[n];r(s,n,t)&&(o[i++]=s)}return o}return vs=e,vs}var ys,Dh;function Qw(){if(Dh)return ys;Dh=1;function e(){return[]}return ys=e,ys}var gs,qh;function Jw(){if(qh)return gs;qh=1;var e=Zw(),t=Qw(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),e(a(o),function(s){return n.call(o,s)}))}:t;return gs=i,gs}var ms,Lh;function e_(){if(Lh)return ms;Lh=1;function e(t,r){for(var n=-1,a=Array(t);++n<t;)a[n]=r(n);return a}return ms=e,ms}var bs,Bh;function t_(){if(Bh)return bs;Bh=1;var e=mt(),t=bt(),r="[object Arguments]";function n(a){return t(a)&&e(a)==r}return bs=n,bs}var xs,Kh;function tf(){if(Kh)return xs;Kh=1;var e=t_(),t=bt(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return xs=i,xs}var en={exports:{}},ws,Fh;function r_(){if(Fh)return ws;Fh=1;function e(){return!1}return ws=e,ws}en.exports;var zh;function Gm(){return zh||(zh=1,(function(e,t){var r=st(),n=r_(),a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||n;e.exports=c})(en,en.exports)),en.exports}var _s,Wh;function rf(){if(Wh)return _s;Wh=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<a}return _s=r,_s}var Os,Uh;function nf(){if(Uh)return Os;Uh=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Os=t,Os}var Ss,Hh;function n_(){if(Hh)return Ss;Hh=1;var e=mt(),t=nf(),r=bt(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",s="[object Error]",u="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",d="[object RegExp]",h="[object Set]",y="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",w="[object DataView]",b="[object Float32Array]",x="[object Float64Array]",_="[object Int8Array]",g="[object Int16Array]",m="[object Int32Array]",O="[object Uint8Array]",P="[object Uint8ClampedArray]",T="[object Uint16Array]",C="[object Uint32Array]",A={};A[b]=A[x]=A[_]=A[g]=A[m]=A[O]=A[P]=A[T]=A[C]=!0,A[n]=A[a]=A[p]=A[i]=A[w]=A[o]=A[s]=A[u]=A[c]=A[f]=A[l]=A[d]=A[h]=A[y]=A[v]=!1;function E(M){return r(M)&&t(M.length)&&!!A[e(M)]}return Ss=E,Ss}var Ps,Gh;function Xm(){if(Gh)return Ps;Gh=1;function e(t){return function(r){return t(r)}}return Ps=e,Ps}var tn={exports:{}};tn.exports;var Xh;function a_(){return Xh||(Xh=1,(function(e,t){var r=pm(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=(function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(tn,tn.exports)),tn.exports}var As,Vh;function Vm(){if(Vh)return As;Vh=1;var e=n_(),t=Xm(),r=a_(),n=r&&r.isTypedArray,a=n?t(n):e;return As=a,As}var Ts,Yh;function i_(){if(Yh)return Ts;Yh=1;var e=e_(),t=tf(),r=ke(),n=Gm(),a=rf(),i=Vm(),o=Object.prototype,s=o.hasOwnProperty;function u(c,f){var l=r(c),d=!l&&t(c),h=!l&&!d&&n(c),y=!l&&!d&&!h&&i(c),v=l||d||h||y,p=v?e(c.length,String):[],w=p.length;for(var b in c)(f||s.call(c,b))&&!(v&&(b=="length"||h&&(b=="offset"||b=="parent")||y&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||a(b,w)))&&p.push(b);return p}return Ts=u,Ts}var js,Zh;function o_(){if(Zh)return js;Zh=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return js=t,js}var Is,Qh;function Ym(){if(Qh)return Is;Qh=1;function e(t,r){return function(n){return t(r(n))}}return Is=e,Is}var Es,Jh;function s_(){if(Jh)return Es;Jh=1;var e=Ym(),t=e(Object.keys,Object);return Es=t,Es}var Ms,ep;function u_(){if(ep)return Ms;ep=1;var e=o_(),t=s_(),r=Object.prototype,n=r.hasOwnProperty;function a(i){if(!e(i))return t(i);var o=[];for(var s in Object(i))n.call(i,s)&&s!="constructor"&&o.push(s);return o}return Ms=a,Ms}var Cs,tp;function Wn(){if(tp)return Cs;tp=1;var e=Kl(),t=nf();function r(n){return n!=null&&t(n.length)&&!e(n)}return Cs=r,Cs}var Ns,rp;function hi(){if(rp)return Ns;rp=1;var e=i_(),t=u_(),r=Wn();function n(a){return r(a)?e(a):t(a)}return Ns=n,Ns}var $s,np;function c_(){if(np)return $s;np=1;var e=Yw(),t=Jw(),r=hi();function n(a){return e(a,r,t)}return $s=n,$s}var ks,ap;function l_(){if(ap)return ks;ap=1;var e=c_(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(i,o,s,u,c,f){var l=s&t,d=e(i),h=d.length,y=e(o),v=y.length;if(h!=v&&!l)return!1;for(var p=h;p--;){var w=d[p];if(!(l?w in o:n.call(o,w)))return!1}var b=f.get(i),x=f.get(o);if(b&&x)return b==o&&x==i;var _=!0;f.set(i,o),f.set(o,i);for(var g=l;++p<h;){w=d[p];var m=i[w],O=o[w];if(u)var P=l?u(O,m,w,o,i,f):u(m,O,w,i,o,f);if(!(P===void 0?m===O||c(m,O,s,u,f):P)){_=!1;break}g||(g=w=="constructor")}if(_&&!g){var T=i.constructor,C=o.constructor;T!=C&&"constructor"in i&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof C=="function"&&C instanceof C)&&(_=!1)}return f.delete(i),f.delete(o),_}return ks=a,ks}var Rs,ip;function f_(){if(ip)return Rs;ip=1;var e=er(),t=st(),r=e(t,"DataView");return Rs=r,Rs}var Ds,op;function d_(){if(op)return Ds;op=1;var e=er(),t=st(),r=e(t,"Promise");return Ds=r,Ds}var qs,sp;function Zm(){if(sp)return qs;sp=1;var e=er(),t=st(),r=e(t,"Set");return qs=r,qs}var Ls,up;function h_(){if(up)return Ls;up=1;var e=er(),t=st(),r=e(t,"WeakMap");return Ls=r,Ls}var Bs,cp;function p_(){if(cp)return Bs;cp=1;var e=f_(),t=zl(),r=d_(),n=Zm(),a=h_(),i=mt(),o=vm(),s="[object Map]",u="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",d="[object DataView]",h=o(e),y=o(t),v=o(r),p=o(n),w=o(a),b=i;return(e&&b(new e(new ArrayBuffer(1)))!=d||t&&b(new t)!=s||r&&b(r.resolve())!=c||n&&b(new n)!=f||a&&b(new a)!=l)&&(b=function(x){var _=i(x),g=_==u?x.constructor:void 0,m=g?o(g):"";if(m)switch(m){case h:return d;case y:return s;case v:return c;case p:return f;case w:return l}return _}),Bs=b,Bs}var Ks,lp;function v_(){if(lp)return Ks;lp=1;var e=Km(),t=Um(),r=Vw(),n=l_(),a=p_(),i=ke(),o=Gm(),s=Vm(),u=1,c="[object Arguments]",f="[object Array]",l="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function y(v,p,w,b,x,_){var g=i(v),m=i(p),O=g?f:a(v),P=m?f:a(p);O=O==c?l:O,P=P==c?l:P;var T=O==l,C=P==l,A=O==P;if(A&&o(v)){if(!o(p))return!1;g=!0,T=!1}if(A&&!T)return _||(_=new e),g||s(v)?t(v,p,w,b,x,_):r(v,p,O,w,b,x,_);if(!(w&u)){var E=T&&h.call(v,"__wrapped__"),M=C&&h.call(p,"__wrapped__");if(E||M){var $=E?v.value():v,N=M?p.value():p;return _||(_=new e),x($,N,w,b,_)}}return A?(_||(_=new e),n(v,p,w,b,x,_)):!1}return Ks=y,Ks}var Fs,fp;function af(){if(fp)return Fs;fp=1;var e=v_(),t=bt();function r(n,a,i,o,s){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,i,o,r,s)}return Fs=r,Fs}var zs,dp;function y_(){if(dp)return zs;dp=1;var e=Km(),t=af(),r=1,n=2;function a(i,o,s,u){var c=s.length,f=c,l=!u;if(i==null)return!f;for(i=Object(i);c--;){var d=s[c];if(l&&d[2]?d[1]!==i[d[0]]:!(d[0]in i))return!1}for(;++c<f;){d=s[c];var h=d[0],y=i[h],v=d[1];if(l&&d[2]){if(y===void 0&&!(h in i))return!1}else{var p=new e;if(u)var w=u(y,v,h,i,o,p);if(!(w===void 0?t(v,y,r|n,u,p):w))return!1}}return!0}return zs=a,zs}var Ws,hp;function Qm(){if(hp)return Ws;hp=1;var e=Et();function t(r){return r===r&&!e(r)}return Ws=t,Ws}var Us,pp;function g_(){if(pp)return Us;pp=1;var e=Qm(),t=hi();function r(n){for(var a=t(n),i=a.length;i--;){var o=a[i],s=n[o];a[i]=[o,s,e(s)]}return a}return Us=r,Us}var Hs,vp;function Jm(){if(vp)return Hs;vp=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Hs=e,Hs}var Gs,yp;function m_(){if(yp)return Gs;yp=1;var e=y_(),t=g_(),r=Jm();function n(a){var i=t(a);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(o){return o===a||e(o,a,i)}}return Gs=n,Gs}var Xs,gp;function b_(){if(gp)return Xs;gp=1;function e(t,r){return t!=null&&r in Object(t)}return Xs=e,Xs}var Vs,mp;function x_(){if(mp)return Vs;mp=1;var e=mm(),t=tf(),r=ke(),n=rf(),a=nf(),i=ui();function o(s,u,c){u=e(u,s);for(var f=-1,l=u.length,d=!1;++f<l;){var h=i(u[f]);if(!(d=s!=null&&c(s,h)))break;s=s[h]}return d||++f!=l?d:(l=s==null?0:s.length,!!l&&a(l)&&n(h,l)&&(r(s)||t(s)))}return Vs=o,Vs}var Ys,bp;function w_(){if(bp)return Ys;bp=1;var e=b_(),t=x_();function r(n,a){return n!=null&&t(n,a,e)}return Ys=r,Ys}var Zs,xp;function __(){if(xp)return Zs;xp=1;var e=af(),t=bm(),r=w_(),n=Bl(),a=Qm(),i=Jm(),o=ui(),s=1,u=2;function c(f,l){return n(f)&&a(l)?i(o(f),l):function(d){var h=t(d,f);return h===void 0&&h===l?r(d,f):e(l,h,s|u)}}return Zs=c,Zs}var Qs,wp;function Lr(){if(wp)return Qs;wp=1;function e(t){return t}return Qs=e,Qs}var Js,_p;function O_(){if(_p)return Js;_p=1;function e(t){return function(r){return r?.[t]}}return Js=e,Js}var eu,Op;function S_(){if(Op)return eu;Op=1;var e=Hl();function t(r){return function(n){return e(n,r)}}return eu=t,eu}var tu,Sp;function P_(){if(Sp)return tu;Sp=1;var e=O_(),t=S_(),r=Bl(),n=ui();function a(i){return r(i)?e(n(i)):t(i)}return tu=a,tu}var ru,Pp;function Mt(){if(Pp)return ru;Pp=1;var e=m_(),t=__(),r=Lr(),n=ke(),a=P_();function i(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):a(o)}return ru=i,ru}var nu,Ap;function eb(){if(Ap)return nu;Ap=1;function e(t,r,n,a){for(var i=t.length,o=n+(a?1:-1);a?o--:++o<i;)if(r(t[o],o,t))return o;return-1}return nu=e,nu}var au,Tp;function A_(){if(Tp)return au;Tp=1;function e(t){return t!==t}return au=e,au}var iu,jp;function T_(){if(jp)return iu;jp=1;function e(t,r,n){for(var a=n-1,i=t.length;++a<i;)if(t[a]===r)return a;return-1}return iu=e,iu}var ou,Ip;function j_(){if(Ip)return ou;Ip=1;var e=eb(),t=A_(),r=T_();function n(a,i,o){return i===i?r(a,i,o):e(a,t,o)}return ou=n,ou}var su,Ep;function I_(){if(Ep)return su;Ep=1;var e=j_();function t(r,n){var a=r==null?0:r.length;return!!a&&e(r,n,0)>-1}return su=t,su}var uu,Mp;function E_(){if(Mp)return uu;Mp=1;function e(t,r,n){for(var a=-1,i=t==null?0:t.length;++a<i;)if(n(r,t[a]))return!0;return!1}return uu=e,uu}var cu,Cp;function M_(){if(Cp)return cu;Cp=1;function e(){}return cu=e,cu}var lu,Np;function C_(){if(Np)return lu;Np=1;var e=Zm(),t=M_(),r=ef(),n=1/0,a=e&&1/r(new e([,-0]))[1]==n?function(i){return new e(i)}:t;return lu=a,lu}var fu,$p;function N_(){if($p)return fu;$p=1;var e=Fm(),t=I_(),r=E_(),n=Wm(),a=C_(),i=ef(),o=200;function s(u,c,f){var l=-1,d=t,h=u.length,y=!0,v=[],p=v;if(f)y=!1,d=r;else if(h>=o){var w=c?null:a(u);if(w)return i(w);y=!1,d=n,p=new e}else p=c?[]:v;e:for(;++l<h;){var b=u[l],x=c?c(b):b;if(b=f||b!==0?b:0,y&&x===x){for(var _=p.length;_--;)if(p[_]===x)continue e;c&&p.push(x),v.push(b)}else d(p,x,f)||(p!==v&&p.push(x),v.push(b))}return v}return fu=s,fu}var du,kp;function $_(){if(kp)return du;kp=1;var e=Mt(),t=N_();function r(n,a){return n&&n.length?t(n,e(a,2)):[]}return du=r,du}var k_=$_();const Rp=ce(k_);function tb(e,t,r){return t===!0?Rp(e,r):Y(t)?Rp(e,t):e}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)}var R_=["ref"];function Dp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dp(Object(r),!0).forEach(function(n){pi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qp(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,nb(n.key),n)}}function q_(e,t,r){return t&&qp(e.prototype,t),r&&qp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function L_(e,t,r){return t=xa(t),B_(e,rb()?Reflect.construct(t,r||[],xa(e).constructor):t.apply(e,r))}function B_(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 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 rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rb=function(){return!!e})()}function xa(e){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xa(e)}function F_(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&&Hc(e,t)}function Hc(e,t){return Hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Hc(e,t)}function pi(e,t,r){return t=nb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nb(e){var t=z_(e,"string");return gr(t)=="symbol"?t:t+""}function z_(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 W_(e,t){if(e==null)return{};var r=U_(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function U_(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 H_(e){return e.value}function G_(e,t){if(j.isValidElement(e))return j.cloneElement(e,t);if(typeof e=="function")return j.createElement(e,t);t.ref;var r=W_(t,R_);return j.createElement(Jl,r)}var Lp=1,fr=(function(e){function t(){var r;D_(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=L_(this,t,[].concat(a)),pi(r,"lastBoundingBox",{width:-1,height:-1}),r}return F_(t,e),q_(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,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>Lp||Math.abs(a.height-this.lastBoundingBox.height)>Lp)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(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?ut({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,s=a.verticalAlign,u=a.margin,c=a.chartWidth,f=a.chartHeight,l,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var h=this.getBBoxSnapshot();l={left:((c||0)-h.width)/2}}else l=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=s==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return ut(ut({},l),d)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,s=a.height,u=a.wrapperStyle,c=a.payloadUniqBy,f=a.payload,l=ut(ut({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(u)),u);return j.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(h){n.wrapperNode=h}},G_(i,ut(ut({},this.props),{},{payload:tb(f,c,H_)})))}}],[{key:"getWithHeight",value:function(n,a){var i=ut(ut({},this.defaultProps),n.props),o=i.layout;return o==="vertical"&&F(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||a}:null}}])})(B.PureComponent);pi(fr,"displayName","Legend");pi(fr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var hu,Bp;function X_(){if(Bp)return hu;Bp=1;var e=Fn(),t=tf(),r=ke(),n=e?e.isConcatSpreadable:void 0;function a(i){return r(i)||t(i)||!!(n&&i&&i[n])}return hu=a,hu}var pu,Kp;function ab(){if(Kp)return pu;Kp=1;var e=Hm(),t=X_();function r(n,a,i,o,s){var u=-1,c=n.length;for(i||(i=t),s||(s=[]);++u<c;){var f=n[u];a>0&&i(f)?a>1?r(f,a-1,i,o,s):e(s,f):o||(s[s.length]=f)}return s}return pu=r,pu}var vu,Fp;function V_(){if(Fp)return vu;Fp=1;function e(t){return function(r,n,a){for(var i=-1,o=Object(r),s=a(r),u=s.length;u--;){var c=s[t?u:++i];if(n(o[c],c,o)===!1)break}return r}}return vu=e,vu}var yu,zp;function Y_(){if(zp)return yu;zp=1;var e=V_(),t=e();return yu=t,yu}var gu,Wp;function ib(){if(Wp)return gu;Wp=1;var e=Y_(),t=hi();function r(n,a){return n&&e(n,a,t)}return gu=r,gu}var mu,Up;function Z_(){if(Up)return mu;Up=1;var e=Wn();function t(r,n){return function(a,i){if(a==null)return a;if(!e(a))return r(a,i);for(var o=a.length,s=n?o:-1,u=Object(a);(n?s--:++s<o)&&i(u[s],s,u)!==!1;);return a}}return mu=t,mu}var bu,Hp;function of(){if(Hp)return bu;Hp=1;var e=ib(),t=Z_(),r=t(e);return bu=r,bu}var xu,Gp;function ob(){if(Gp)return xu;Gp=1;var e=of(),t=Wn();function r(n,a){var i=-1,o=t(n)?Array(n.length):[];return e(n,function(s,u,c){o[++i]=a(s,u,c)}),o}return xu=r,xu}var wu,Xp;function Q_(){if(Xp)return wu;Xp=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return wu=e,wu}var _u,Vp;function J_(){if(Vp)return _u;Vp=1;var e=Rr();function t(r,n){if(r!==n){var a=r!==void 0,i=r===null,o=r===r,s=e(r),u=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!s&&r>n||s&&u&&f&&!c&&!l||i&&u&&f||!a&&f||!o)return 1;if(!i&&!s&&!l&&r<n||l&&a&&o&&!i&&!s||c&&a&&o||!u&&o||!f)return-1}return 0}return _u=t,_u}var Ou,Yp;function eO(){if(Yp)return Ou;Yp=1;var e=J_();function t(r,n,a){for(var i=-1,o=r.criteria,s=n.criteria,u=o.length,c=a.length;++i<u;){var f=e(o[i],s[i]);if(f){if(i>=c)return f;var l=a[i];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Ou=t,Ou}var Su,Zp;function tO(){if(Zp)return Su;Zp=1;var e=Ul(),t=Hl(),r=Mt(),n=ob(),a=Q_(),i=Xm(),o=eO(),s=Lr(),u=ke();function c(f,l,d){l.length?l=e(l,function(v){return u(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[s];var h=-1;l=e(l,i(r));var y=n(f,function(v,p,w){var b=e(l,function(x){return x(v)});return{criteria:b,index:++h,value:v}});return a(y,function(v,p){return o(v,p,d)})}return Su=c,Su}var Pu,Qp;function rO(){if(Qp)return Pu;Qp=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 Pu=e,Pu}var Au,Jp;function nO(){if(Jp)return Au;Jp=1;var e=rO(),t=Math.max;function r(n,a,i){return a=t(a===void 0?n.length-1:a,0),function(){for(var o=arguments,s=-1,u=t(o.length-a,0),c=Array(u);++s<u;)c[s]=o[a+s];s=-1;for(var f=Array(a+1);++s<a;)f[s]=o[s];return f[a]=i(c),e(n,this,f)}}return Au=r,Au}var Tu,ev;function aO(){if(ev)return Tu;ev=1;function e(t){return function(){return t}}return Tu=e,Tu}var ju,tv;function sb(){if(tv)return ju;tv=1;var e=er(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return ju=t,ju}var Iu,rv;function iO(){if(rv)return Iu;rv=1;var e=aO(),t=sb(),r=Lr(),n=t?function(a,i){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:r;return Iu=n,Iu}var Eu,nv;function oO(){if(nv)return Eu;nv=1;var e=800,t=16,r=Date.now;function n(a){var i=0,o=0;return function(){var s=r(),u=t-(s-o);if(o=s,u>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return Eu=n,Eu}var Mu,av;function sO(){if(av)return Mu;av=1;var e=iO(),t=oO(),r=t(e);return Mu=r,Mu}var Cu,iv;function uO(){if(iv)return Cu;iv=1;var e=Lr(),t=nO(),r=sO();function n(a,i){return r(t(a,i,e),a+"")}return Cu=n,Cu}var Nu,ov;function vi(){if(ov)return Nu;ov=1;var e=Fl(),t=Wn(),r=rf(),n=Et();function a(i,o,s){if(!n(s))return!1;var u=typeof o;return(u=="number"?t(s)&&r(o,s.length):u=="string"&&o in s)?e(s[o],i):!1}return Nu=a,Nu}var $u,sv;function cO(){if(sv)return $u;sv=1;var e=ab(),t=tO(),r=uO(),n=vi(),a=r(function(i,o){if(i==null)return[];var s=o.length;return s>1&&n(i,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return $u=a,$u}var lO=cO();const sf=ce(lO);function ln(e){"@babel/helpers - typeof";return ln=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},ln(e)}function Gc(){return Gc=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},Gc.apply(this,arguments)}function fO(e,t){return vO(e)||pO(e,t)||hO(e,t)||dO()}function dO(){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 hO(e,t){if(e){if(typeof e=="string")return uv(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 uv(e,t)}}function uv(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 pO(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,a=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function vO(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(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ku(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){yO(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 yO(e,t,r){return t=gO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gO(e){var t=mO(e,"string");return ln(t)=="symbol"?t:t+""}function mO(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bO(e){return Array.isArray(e)&&Oe(e[0])&&Oe(e[1])?e.join(" ~ "):e}var xO=function(t){var r=t.separator,n=r===void 0?" : ":r,a=t.contentStyle,i=a===void 0?{}:a,o=t.itemStyle,s=o===void 0?{}:o,u=t.labelStyle,c=u===void 0?{}:u,f=t.payload,l=t.formatter,d=t.itemSorter,h=t.wrapperClassName,y=t.labelClassName,v=t.label,p=t.labelFormatter,w=t.accessibilityLayer,b=w===void 0?!1:w,x=function(){if(f&&f.length){var E={padding:0,margin:0},M=(d?sf(f,d):f).map(function($,N){if($.type==="none")return null;var R=ku({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},s),D=$.formatter||l||bO,K=$.value,z=$.name,G=K,I=z;if(D&&G!=null&&I!=null){var q=D(K,z,$,N,f);if(Array.isArray(q)){var U=fO(q,2);G=U[0],I=U[1]}else G=q}return j.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(N),style:R},Oe(I)?j.createElement("span",{className:"recharts-tooltip-item-name"},I):null,Oe(I)?j.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,j.createElement("span",{className:"recharts-tooltip-item-value"},G),j.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return j.createElement("ul",{className:"recharts-tooltip-item-list",style:E},M)}return null},_=ku({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),g=ku({margin:0},c),m=!J(v),O=m?v:"",P=te("recharts-default-tooltip",h),T=te("recharts-tooltip-label",y);m&&p&&f!==void 0&&f!==null&&(O=p(v,f));var C=b?{role:"status","aria-live":"assertive"}:{};return j.createElement("div",Gc({className:P,style:_},C),j.createElement("p",{className:T,style:g},j.isValidElement(O)?O:"".concat(O)),x())};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 Qn(e,t,r){return t=wO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wO(e){var t=_O(e,"string");return fn(t)=="symbol"?t:t+""}function _O(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 Ur="recharts-tooltip-wrapper",OO={visibility:"hidden"};function SO(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return te(Ur,Qn(Qn(Qn(Qn({},"".concat(Ur,"-right"),F(r)&&t&&F(t.x)&&r>=t.x),"".concat(Ur,"-left"),F(r)&&t&&F(t.x)&&r<t.x),"".concat(Ur,"-bottom"),F(n)&&t&&F(t.y)&&n>=t.y),"".concat(Ur,"-top"),F(n)&&t&&F(t.y)&&n<t.y))}function lv(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,a=e.offsetTopLeft,i=e.position,o=e.reverseDirection,s=e.tooltipDimension,u=e.viewBox,c=e.viewBoxDimension;if(i&&F(i[n]))return i[n];var f=r[n]-s-a,l=r[n]+a;if(t[n])return o[n]?f:l;if(o[n]){var d=f,h=u[n];return d<h?Math.max(l,u[n]):Math.max(f,u[n])}var y=l+s,v=u[n]+c;return y>v?Math.max(f,u[n]):Math.max(l,u[n])}function PO(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 AO(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,u=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=lv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),l=lv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),c=PO({translateX:f,translateY:l,useTranslate3d:s})):c=OO,{cssProperties:c,cssClasses:SO({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 fv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function dv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fv(Object(r),!0).forEach(function(n){Vc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jO(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,cb(n.key),n)}}function IO(e,t,r){return t&&jO(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EO(e,t,r){return t=wa(t),MO(e,ub()?Reflect.construct(t,r||[],wa(e).constructor):t.apply(e,r))}function MO(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 CO(e)}function CO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ub(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ub=function(){return!!e})()}function wa(e){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wa(e)}function NO(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&&Xc(e,t)}function Xc(e,t){return Xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Xc(e,t)}function Vc(e,t,r){return t=cb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cb(e){var t=$O(e,"string");return mr(t)=="symbol"?t:t+""}function $O(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 hv=1,kO=(function(e){function t(){var r;TO(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=EO(this,t,[].concat(a)),Vc(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Vc(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,u,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(u=r.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&s!==void 0?s:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return NO(t,e),IO(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>hv||Math.abs(n.height-this.state.lastBoundingBox.height)>hv)&&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,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,u=a.animationEasing,c=a.children,f=a.coordinate,l=a.hasPayload,d=a.isAnimationActive,h=a.offset,y=a.position,v=a.reverseDirection,p=a.useTranslate3d,w=a.viewBox,b=a.wrapperStyle,x=AO({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:w}),_=x.cssClasses,g=x.cssProperties,m=dv(dv({transition:d&&i?"transform ".concat(s,"ms ").concat(u):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&l?"visible":"hidden",position:"absolute",top:0,left:0},b);return j.createElement("div",{tabIndex:-1,className:_,style:m,ref:function(P){n.wrapperNode=P}},c)}}])})(B.PureComponent),RO=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Br={isSsr:RO()};function br(e){"@babel/helpers - typeof";return br=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},br(e)}function pv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pv(Object(r),!0).forEach(function(n){uf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qO(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,fb(n.key),n)}}function LO(e,t,r){return t&&qO(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BO(e,t,r){return t=_a(t),KO(e,lb()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function KO(e,t){if(t&&(br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FO(e)}function FO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lb=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function zO(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&&Yc(e,t)}function Yc(e,t){return Yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Yc(e,t)}function uf(e,t,r){return t=fb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fb(e){var t=WO(e,"string");return br(t)=="symbol"?t:t+""}function WO(e,t){if(br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function UO(e){return e.dataKey}function HO(e,t){return j.isValidElement(e)?j.cloneElement(e,t):typeof e=="function"?j.createElement(e,t):j.createElement(xO,t)}var ze=(function(e){function t(){return DO(this,t),BO(this,t,arguments)}return zO(t,e),LO(t,[{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,u=a.animationEasing,c=a.content,f=a.coordinate,l=a.filterNull,d=a.isAnimationActive,h=a.offset,y=a.payload,v=a.payloadUniqBy,p=a.position,w=a.reverseDirection,b=a.useTranslate3d,x=a.viewBox,_=a.wrapperStyle,g=y??[];l&&g.length&&(g=tb(y.filter(function(O){return O.value!=null&&(O.hide!==!0||n.props.includeHidden)}),v,UO));var m=g.length>0;return j.createElement(kO,{allowEscapeViewBox:o,animationDuration:s,animationEasing:u,isAnimationActive:d,active:i,coordinate:f,hasPayload:m,offset:h,position:p,reverseDirection:w,useTranslate3d:b,viewBox:x,wrapperStyle:_},HO(c,vv(vv({},this.props),{},{payload:g})))}}])})(B.PureComponent);uf(ze,"displayName","Tooltip");uf(ze,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Br.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 Ru,yv;function GO(){if(yv)return Ru;yv=1;var e=st(),t=function(){return e.Date.now()};return Ru=t,Ru}var Du,gv;function XO(){if(gv)return Du;gv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Du=t,Du}var qu,mv;function VO(){if(mv)return qu;mv=1;var e=XO(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return qu=r,qu}var Lu,bv;function db(){if(bv)return Lu;bv=1;var e=VO(),t=Et(),r=Rr(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(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=i.test(c);return l||o.test(c)?s(c.slice(2),l?2:8):a.test(c)?n:+c}return Lu=u,Lu}var Bu,xv;function YO(){if(xv)return Bu;xv=1;var e=Et(),t=GO(),r=db(),n="Expected a function",a=Math.max,i=Math.min;function o(s,u,c){var f,l,d,h,y,v,p=0,w=!1,b=!1,x=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(c)&&(w=!!c.leading,b="maxWait"in c,d=b?a(r(c.maxWait)||0,u):d,x="trailing"in c?!!c.trailing:x);function _(M){var $=f,N=l;return f=l=void 0,p=M,h=s.apply(N,$),h}function g(M){return p=M,y=setTimeout(P,u),w?_(M):h}function m(M){var $=M-v,N=M-p,R=u-$;return b?i(R,d-N):R}function O(M){var $=M-v,N=M-p;return v===void 0||$>=u||$<0||b&&N>=d}function P(){var M=t();if(O(M))return T(M);y=setTimeout(P,m(M))}function T(M){return y=void 0,x&&f?_(M):(f=l=void 0,h)}function C(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function A(){return y===void 0?h:T(t())}function E(){var M=t(),$=O(M);if(f=arguments,l=this,v=M,$){if(y===void 0)return g(v);if(b)return clearTimeout(y),y=setTimeout(P,u),_(v)}return y===void 0&&(y=setTimeout(P,u)),h}return E.cancel=C,E.flush=A,E}return Bu=o,Bu}var Ku,wv;function ZO(){if(wv)return Ku;wv=1;var e=YO(),t=Et(),r="Expected a function";function n(a,i,o){var s=!0,u=!0;if(typeof a!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),e(a,i,{leading:s,maxWait:i,trailing:u})}return Ku=n,Ku}var QO=ZO();const hb=ce(QO);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)}function _v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_v(Object(r),!0).forEach(function(n){JO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JO(e,t,r){return t=eS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eS(e){var t=tS(e,"string");return dn(t)=="symbol"?t:t+""}function tS(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 rS(e,t){return oS(e)||iS(e,t)||aS(e,t)||nS()}function nS(){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 aS(e,t){if(e){if(typeof e=="string")return Ov(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 Ov(e,t)}}function Ov(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 iS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,a=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function oS(e){if(Array.isArray(e))return e}var Fu=B.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,a=n===void 0?{width:-1,height:-1}:n,i=e.width,o=i===void 0?"100%":i,s=e.height,u=s===void 0?"100%":s,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,d=e.maxHeight,h=e.children,y=e.debounce,v=y===void 0?0:y,p=e.id,w=e.className,b=e.onResize,x=e.style,_=x===void 0?{}:x,g=B.useRef(null),m=B.useRef();m.current=b,B.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 O=B.useState({containerWidth:a.width,containerHeight:a.height}),P=rS(O,2),T=P[0],C=P[1],A=B.useCallback(function(M,$){C(function(N){var R=Math.round(M),D=Math.round($);return N.containerWidth===R&&N.containerHeight===D?N:{containerWidth:R,containerHeight:D}})},[]);B.useEffect(function(){var M=function(z){var G,I=z[0].contentRect,q=I.width,U=I.height;A(q,U),(G=m.current)===null||G===void 0||G.call(m,q,U)};v>0&&(M=hb(M,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(M),N=g.current.getBoundingClientRect(),R=N.width,D=N.height;return A(R,D),$.observe(g.current),function(){$.disconnect()}},[A,v]);var E=B.useMemo(function(){var M=T.containerWidth,$=T.containerHeight;if(M<0||$<0)return null;ht(Bt(o)||Bt(u),`The width(%s) and height(%s) are both fixed numbers, 17 maybe you don't need to use a ResponsiveContainer.`,o,u),ht(!r||r>0,"The aspect(%s) must be greater than zero.",r);var N=Bt(o)?M:o,R=Bt(u)?$:u;r&&r>0&&(N?R=N/r:R&&(N=R*r),d&&R>d&&(R=d)),ht(N>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0, 18 please check the style of container, or the props width(%s) and height(%s), 19 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 20 height and width.`,N,R,o,u,f,l,r);var D=!Array.isArray(h)&&dt(h.type).endsWith("Chart");return j.Children.map(h,function(K){return j.isValidElement(K)?B.cloneElement(K,Jn({width:N,height:R},D?{style:Jn({height:"100%",width:"100%",maxHeight:R,maxWidth:N},K.props.style)}:{})):K})},[r,h,u,d,l,f,T,o]);return j.createElement("div",{id:p?"".concat(p):void 0,className:te("recharts-responsive-container",w),style:Jn(Jn({},_),{},{width:o,height:u,minWidth:f,minHeight:l,maxHeight:d}),ref:g},E)}),cf=function(t){return null};cf.displayName="Cell";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 Sv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sv(Object(r),!0).forEach(function(n){sS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sS(e,t,r){return t=uS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uS(e){var t=cS(e,"string");return hn(t)=="symbol"?t:t+""}function cS(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)}var ar={widthCache:{},cacheCount:0},lS=2e3,fS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Pv="recharts_measurement_span";function dS(e){var t=Zc({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var nn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Br.isSsr)return{width:0,height:0};var n=dS(r),a=JSON.stringify({text:t,copyStyle:n});if(ar.widthCache[a])return ar.widthCache[a];try{var i=document.getElementById(Pv);i||(i=document.createElement("span"),i.setAttribute("id",Pv),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Zc(Zc({},fS),n);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),u={width:s.width,height:s.height};return ar.widthCache[a]=u,++ar.cacheCount>lS&&(ar.cacheCount=0,ar.widthCache={}),u}catch{return{width:0,height:0}}},hS=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Oa(e,t){return gS(e)||yS(e,t)||vS(e,t)||pS()}function pS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vS(e,t){if(e){if(typeof e=="string")return Av(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 Av(e,t)}}function Av(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 yS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,a=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function gS(e){if(Array.isArray(e))return e}function mS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tv(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,xS(n.key),n)}}function bS(e,t,r){return t&&Tv(e.prototype,t),r&&Tv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xS(e){var t=wS(e,"string");return pn(t)=="symbol"?t:t+""}function wS(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 String(e)}var jv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Iv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_S=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,OS=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,pb={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},SS=Object.keys(pb),sr="NaN";function PS(e,t){return e*pb[t]}var ea=(function(){function e(t,r){mS(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!_S.test(r)&&(this.num=NaN,this.unit=""),SS.includes(r)&&(this.num=PS(t,r),this.unit="px")}return bS(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,a=(n=OS.exec(r))!==null&&n!==void 0?n:[],i=Oa(a,3),o=i[1],s=i[2];return new e(parseFloat(o),s??"")}}])})();function vb(e){if(e.includes(sr))return sr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=jv.exec(t))!==null&&r!==void 0?r:[],a=Oa(n,4),i=a[1],o=a[2],s=a[3],u=ea.parse(i??""),c=ea.parse(s??""),f=o==="*"?u.multiply(c):u.divide(c);if(f.isNaN())return sr;t=t.replace(jv,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=Iv.exec(t))!==null&&l!==void 0?l:[],h=Oa(d,4),y=h[1],v=h[2],p=h[3],w=ea.parse(y??""),b=ea.parse(p??""),x=v==="+"?w.add(b):w.subtract(b);if(x.isNaN())return sr;t=t.replace(Iv,x.toString())}return t}var Ev=/\(([^()]*)\)/;function AS(e){for(var t=e;t.includes("(");){var r=Ev.exec(t),n=Oa(r,2),a=n[1];t=t.replace(Ev,vb(a))}return t}function TS(e){var t=e.replace(/\s+/g,"");return t=AS(t),t=vb(t),t}function jS(e){try{return TS(e)}catch{return sr}}function zu(e){var t=jS(e.slice(5,-1));return t===sr?"":t}var IS=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],ES=["dx","dy","angle","className","breakAll"];function Qc(){return Qc=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},Qc.apply(this,arguments)}function Mv(e,t){if(e==null)return{};var r=MS(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MS(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 Cv(e,t){return kS(e)||$S(e,t)||NS(e,t)||CS()}function CS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NS(e,t){if(e){if(typeof e=="string")return Nv(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 Nv(e,t)}}function Nv(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 $S(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,a=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function kS(e){if(Array.isArray(e))return e}var yb=/[ \f\n\r\t\v\u2028\u2029]+/,gb=function(t){var r=t.children,n=t.breakAll,a=t.style;try{var i=[];J(r)||(n?i=r.toString().split(""):i=r.toString().split(yb));var o=i.map(function(u){return{word:u,width:nn(u,a).width}}),s=n?0:nn(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},RS=function(t,r,n,a,i){var o=t.maxLines,s=t.children,u=t.style,c=t.breakAll,f=F(o),l=s,d=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return N.reduce(function(R,D){var K=D.word,z=D.width,G=R[R.length-1];if(G&&(a==null||i||G.width+z+n<Number(a)))G.words.push(K),G.width+=z+n;else{var I={words:[K],width:z};R.push(I)}return R},[])},h=d(r),y=function(N){return N.reduce(function(R,D){return R.width>D.width?R:D})};if(!f)return h;for(var v="â¦",p=function(N){var R=l.slice(0,N),D=gb({breakAll:c,style:u,children:R+v}).wordsWithComputedWidth,K=d(D),z=K.length>o||y(K).width>Number(a);return[z,K]},w=0,b=l.length-1,x=0,_;w<=b&&x<=l.length-1;){var g=Math.floor((w+b)/2),m=g-1,O=p(m),P=Cv(O,2),T=P[0],C=P[1],A=p(g),E=Cv(A,1),M=E[0];if(!T&&!M&&(w=g+1),T&&M&&(b=g-1),!T&&M){_=C;break}x++}return _||h},$v=function(t){var r=J(t)?[]:t.toString().split(yb);return[{words:r}]},DS=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Br.isSsr){var u,c,f=gb({breakAll:o,children:a,style:i});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;u=l,c=d}else return $v(a);return RS({breakAll:o,children:a,maxLines:s,style:i},u,c,r,n)}return $v(a)},kv="#808080",Sa=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,u=t.capHeight,c=u===void 0?"0.71em":u,f=t.scaleToFit,l=f===void 0?!1:f,d=t.textAnchor,h=d===void 0?"start":d,y=t.verticalAnchor,v=y===void 0?"end":y,p=t.fill,w=p===void 0?kv:p,b=Mv(t,IS),x=B.useMemo(function(){return DS({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:l,style:b.style,width:b.
22width})},[b.breakAll,b.children,b.maxLines,l,b.style,b.width]),_=b.dx,g=b.dy,m=b.angle,O=b.className,P=b.breakAll,T=Mv(b,ES);if(!Oe(n)||!Oe(i))return null;var C=n+(F(_)?_:0),A=i+(F(g)?g:0),E;switch(v){case"start":E=zu("calc(".concat(c,")"));break;case"middle":E=zu("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:E=zu("calc(".concat(x.length-1," * -").concat(s,")"));break}var M=[];if(l){var $=x[0].width,N=b.width;M.push("scale(".concat((F(N)?N/$:1)/$,")"))}return m&&M.push("rotate(".concat(m,", ").concat(C,", ").concat(A,")")),M.length&&(T.transform=M.join(" ")),j.createElement("text",Qc({},Q(T,!0),{x:C,y:A,className:te("recharts-text",O),textAnchor:h,fill:w.includes("url")?kv:w}),x.map(function(R,D){var K=R.words.join(P?"":" ");return j.createElement("tspan",{x:C,dy:D===0?E:s,key:"".concat(K,"-").concat(D)},K)}))};function Tt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function qS(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lf(e){let t,r,n;e.length!==2?(t=Tt,r=(s,u)=>Tt(e(s),u),n=(s,u)=>e(s)-u):(t=e===Tt||e===qS?e:LS,r=e,n=e);function a(s,u,c=0,f=s.length){if(c<f){if(t(u,u)!==0)return f;do{const l=c+f>>>1;r(s[l],u)<0?c=l+1:f=l}while(c<f)}return c}function i(s,u,c=0,f=s.length){if(c<f){if(t(u,u)!==0)return f;do{const l=c+f>>>1;r(s[l],u)<=0?c=l+1:f=l}while(c<f)}return c}function o(s,u,c=0,f=s.length){const l=a(s,u,c,f-1);return l>c&&n(s[l-1],u)>-n(s[l],u)?l-1:l}return{left:a,center:o,right:i}}function LS(){return 0}function mb(e){return e===null?NaN:+e}function*BS(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const KS=lf(Tt),Un=KS.right;lf(mb).center;class Rv extends Map{constructor(t,r=WS){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(Dv(this,t))}has(t){return super.has(Dv(this,t))}set(t,r){return super.set(FS(this,t),r)}delete(t){return super.delete(zS(this,t))}}function Dv({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function FS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function zS({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function WS(e){return e!==null&&typeof e=="object"?e.valueOf():e}function US(e=Tt){if(e===Tt)return bb;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 bb(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const HS=Math.sqrt(50),GS=Math.sqrt(10),XS=Math.sqrt(2);function Pa(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=HS?10:i>=GS?5:i>=XS?2:1;let s,u,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=r&&r<2?Pa(e,t,r*2):[s,u,c]}function Jc(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[a,i,o]=n?Pa(t,e,r):Pa(e,t,r);if(!(i>=a))return[];const s=i-a+1,u=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)u[c]=(i-c)/-o;else for(let c=0;c<s;++c)u[c]=(i-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(a+c)/-o;else for(let c=0;c<s;++c)u[c]=(a+c)*o;return u}function el(e,t,r){return t=+t,e=+e,r=+r,Pa(e,t,r)[2]}function tl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?el(t,e,r):el(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function qv(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Lv(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function xb(e,t,r=0,n=1/0,a){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(a=a===void 0?bb:US(a);n>r;){if(n-r>600){const u=n-r+1,c=t-r+1,f=Math.log(u),l=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*l*(u-l)/u)*(c-u/2<0?-1:1),h=Math.max(r,Math.floor(t-c*l/u+d)),y=Math.min(n,Math.floor(t+(u-c)*l/u+d));xb(e,t,h,y,a)}const i=e[t];let o=r,s=n;for(Hr(e,r,t),a(e[n],i)>0&&Hr(e,r,n);o<s;){for(Hr(e,o,s),++o,--s;a(e[o],i)<0;)++o;for(;a(e[s],i)>0;)--s}a(e[r],i)===0?Hr(e,r,s):(++s,Hr(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Hr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function VS(e,t,r){if(e=Float64Array.from(BS(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Lv(e);if(t>=1)return qv(e);var n,a=(n-1)*t,i=Math.floor(a),o=qv(xb(e,i).subarray(0,i+1)),s=Lv(e.subarray(i+1));return o+(s-o)*(a-i)}}function YS(e,t,r=mb){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,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function ZS(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n<a;)i[n]=e+n*r;return i}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}
vendor: 6,553 bytes, line 22
22const rl=Symbol("implicit");function ff(){var e=new Rv,t=[],r=[],n=rl;function a(i){let o=e.get(i);if(o===void 0){if(n!==rl)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new Rv;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(r=Array.from(i),a):r.slice()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return ff(t,r).unknown(n)},Xe.apply(a,arguments),a}function vn(){var e=ff().unknown(void 0),t=e.domain,r=e.range,n=0,a=1,i,o,s=!1,u=0,c=0,f=.5;delete e.unknown;function l(){var d=t().length,h=a<n,y=h?a:n,v=h?n:a;i=(v-y)/Math.max(1,d-u+c*2),s&&(i=Math.floor(i)),y+=(v-y-i*(d-u))*f,o=i*(1-u),s&&(y=Math.round(y),o=Math.round(o));var p=ZS(d).map(function(w){return y+i*w});return r(h?p.reverse():p)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,a]=d,n=+n,a=+a,l()):[n,a]},e.rangeRound=function(d){return[n,a]=d,n=+n,a=+a,s=!0,l()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(d){return arguments.length?(s=!!d,l()):s},e.padding=function(d){return arguments.length?(u=Math.min(1,c=+d),l()):u},e.paddingInner=function(d){return arguments.length?(u=Math.min(1,d),l()):u},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 vn(t(),[n,a]).round(s).paddingInner(u).paddingOuter(c).align(f)},Xe.apply(l(),arguments)}function wb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return wb(t())},e}function an(){return wb(vn.apply(null,arguments).paddingInner(1))}function df(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function _b(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Hn(){}var yn=.7,Aa=1/yn,dr="\\s*([+-]?\\d+)\\s*",gn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",at="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",QS=/^#([0-9a-f]{3,8})$/,JS=new RegExp(`^rgb\\(${dr},${dr},${dr}\\)$`),eP=new RegExp(`^rgb\\(${at},${at},${at}\\)$`),tP=new RegExp(`^rgba\\(${dr},${dr},${dr},${gn}\\)$`),rP=new RegExp(`^rgba\\(${at},${at},${at},${gn}\\)$`),nP=new RegExp(`^hsl\\(${gn},${at},${at}\\)$`),aP=new RegExp(`^hsla\\(${gn},${at},${at},${gn}\\)$`),Bv={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};df(Hn,mn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Kv,formatHex:Kv,formatHex8:iP,formatHsl:oP,formatRgb:Fv,toString:Fv});function Kv(){return this.rgb().formatHex()}function iP(){return this.rgb().formatHex8()}function oP(){return Ob(this).formatHsl()}function Fv(){return this.rgb().formatRgb()}function mn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=QS.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?zv(t):r===3?new $e(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ta(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ta(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=JS.exec(e))?new $e(t[1],t[2],t[3],1):(t=eP.exec(e))?new $e(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tP.exec(e))?ta(t[1],t[2],t[3],t[4]):(t=rP.exec(e))?ta(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nP.exec(e))?Hv(t[1],t[2]/100,t[3]/100,1):(t=aP.exec(e))?Hv(t[1],t[2]/100,t[3]/100,t[4]):Bv.hasOwnProperty(e)?zv(Bv[e]):e==="transparent"?new $e(NaN,NaN,NaN,0):null}function zv(e){return new $e(e>>16&255,e>>8&255,e&255,1)}function ta(e,t,r,n){return n<=0&&(e=t=r=NaN),new $e(e,t,r,n)}function sP(e){return e instanceof Hn||(e=mn(e)),e?(e=e.rgb(),new $e(e.r,e.g,e.b,e.opacity)):new $e}function nl(e,t,r,n){return arguments.length===1?sP(e):new $e(e,t,r,n??1)}function $e(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}
vendor: 14,494 bytes, line 22
22df($e,nl,_b(Hn,{brighter(e){return e=e==null?Aa:Math.pow(Aa,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $e(Ut(this.r),Ut(this.g),Ut(this.b),Ta(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:Wv,formatHex:Wv,formatHex8:uP,formatRgb:Uv,toString:Uv}));function Wv(){return`#${Kt(this.r)}${Kt(this.g)}${Kt(this.b)}`}function uP(){return`#${Kt(this.r)}${Kt(this.g)}${Kt(this.b)}${Kt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Uv(){const e=Ta(this.opacity);return`${e===1?"rgb(":"rgba("}${Ut(this.r)}, ${Ut(this.g)}, ${Ut(this.b)}${e===1?")":`, ${e})`}`}function Ta(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ut(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Kt(e){return e=Ut(e),(e<16?"0":"")+e.toString(16)}function Hv(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Qe(e,t,r,n)}function Ob(e){if(e instanceof Qe)return new Qe(e.h,e.s,e.l,e.opacity);if(e instanceof Hn||(e=mn(e)),!e)return new Qe;if(e instanceof Qe)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,u=(i+a)/2;return s?(t===i?o=(r-n)/s+(r<n)*6:r===i?o=(n-t)/s+2:o=(t-r)/s+4,s/=u<.5?i+a:2-i-a,o*=60):s=u>0&&u<1?0:o,new Qe(o,s,u,e.opacity)}function cP(e,t,r,n){return arguments.length===1?Ob(e):new Qe(e,t,r,n??1)}function Qe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}df(Qe,cP,_b(Hn,{brighter(e){return e=e==null?Aa:Math.pow(Aa,e),new Qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new Qe(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,a=2*r-n;return new $e(Wu(e>=240?e-240:e+120,a,n),Wu(e,a,n),Wu(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Qe(Gv(this.h),ra(this.s),ra(this.l),Ta(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=Ta(this.opacity);return`${e===1?"hsl(":"hsla("}${Gv(this.h)}, ${ra(this.s)*100}%, ${ra(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Gv(e){return e=(e||0)%360,e<0?e+360:e}function ra(e){return Math.max(0,Math.min(1,e||0))}function Wu(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 hf=e=>()=>e;function lP(e,t){return function(r){return e+r*t}}function fP(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 dP(e){return(e=+e)==1?Sb:function(t,r){return r-t?fP(t,r,e):hf(isNaN(t)?r:t)}}function Sb(e,t){var r=t-e;return r?lP(e,r):hf(isNaN(e)?t:e)}const Xv=(function e(t){var r=dP(t);function n(a,i){var o=r((a=nl(a)).r,(i=nl(i)).r),s=r(a.g,i.g),u=r(a.b,i.b),c=Sb(a.opacity,i.opacity);return function(f){return a.r=o(f),a.g=s(f),a.b=u(f),a.opacity=c(f),a+""}}return n.gamma=e,n})(1);function hP(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;a<r;++a)n[a]=e[a]*(1-i)+t[a]*i;return n}}function pP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function vP(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,a=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)a[o]=Kr(e[o],t[o]);for(;o<r;++o)i[o]=t[o];return function(s){for(o=0;o<n;++o)i[o]=a[o](s);return i}}function yP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ja(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function gP(e,t){var r={},n={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?r[a]=Kr(e[a],t[a]):n[a]=t[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var al=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Uu=new RegExp(al.source,"g");function mP(e){return function(){return e}}function bP(e){return function(t){return e(t)+""}}function xP(e,t){var r=al.lastIndex=Uu.lastIndex=0,n,a,i,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=al.exec(e))&&(a=Uu.exec(t));)(i=a.index)>r&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,u.push({i:o,x:ja(n,a)})),r=Uu.lastIndex;return r<t.length&&(i=t.slice(r),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?bP(u[0].x):mP(t):(t=u.length,function(c){for(var f=0,l;f<t;++f)s[(l=u[f]).i]=l.x(c);return s.join("")})}function Kr(e,t){var r=typeof t,n;return t==null||r==="boolean"?hf(t):(r==="number"?ja:r==="string"?(n=mn(t))?(t=n,Xv):xP:t instanceof mn?Xv:t instanceof Date?yP:pP(t)?hP:Array.isArray(t)?vP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?gP:ja)(e,t)}function pf(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function wP(e,t){t===void 0&&(t=e,e=Kr);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[s](o-s)}}function _P(e){return function(){return e}}function Ia(e){return+e}var Vv=[0,1];function Ce(e){return e}function il(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:_P(isNaN(t)?NaN:.5)}function OP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function SP(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a<n?(n=il(a,n),i=r(o,i)):(n=il(n,a),i=r(i,o)),function(s){return i(n(s))}}function PP(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),i=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)a[o]=il(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(s){var u=Un(e,s,1,n)-1;return i[u](a[u](s))}}function Gn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yi(){var e=Vv,t=Vv,r=Kr,n,a,i,o=Ce,s,u,c;function f(){var d=Math.min(e.length,t.length);return o!==Ce&&(o=OP(e[0],e[d-1])),s=d>2?PP:SP,u=c=null,l}function l(d){return d==null||isNaN(d=+d)?i:(u||(u=s(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(a((c||(c=s(t,e.map(n),ja)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,Ia),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=pf,f()},l.clamp=function(d){return arguments.length?(o=d?!0:Ce,f()):o!==Ce},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(i=d,l):i},function(d,h){return n=d,a=h,f()}}function vf(){return yi()(Ce,Ce)}function AP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ea(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function xr(e){return e=Ea(Math.abs(e)),e?e[1]:NaN}function TP(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],u=0;a>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),i.push(r.substring(a-=s,a+s)),!((u+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function jP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var IP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bn(e){if(!(t=IP.exec(e)))throw new Error("invalid format: "+e);var t;return new yf({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]})}bn.prototype=yf.prototype;function yf(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+""}yf.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 EP(e){e:for(var t=e.length,r=1,n=-1,a;r<t;++r)switch(e[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Pb;function MP(e,t){var r=Ea(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(Pb=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Ea(e,Math.max(0,t+i-1))[0]}function Yv(e,t){var r=Ea(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const Zv={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:AP,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)=>Yv(e*100,t),r:Yv,s:MP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Qv(e){return e}var Jv=Array.prototype.map,ey=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function CP(e){var t=e.grouping===void 0||e.thousands===void 0?Qv:TP(Jv.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?Qv:jP(Jv.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"â":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(l){l=bn(l);var d=l.fill,h=l.align,y=l.sign,v=l.symbol,p=l.zero,w=l.width,b=l.comma,x=l.precision,_=l.trim,g=l.type;g==="n"?(b=!0,g="g"):Zv[g]||(x===void 0&&(x=12),_=!0,g="g"),(p||d==="0"&&h==="=")&&(p=!0,d="0",h="=");var m=v==="$"?r:v==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",O=v==="$"?n:/[%p]/.test(g)?o:"",P=Zv[g],T=/[defgprs%]/.test(g);x=x===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function C(A){var E=m,M=O,$,N,R;if(g==="c")M=P(A)+M,A="";else{A=+A;var D=A<0||1/A<0;if(A=isNaN(A)?u:P(Math.abs(A),x),_&&(A=EP(A)),D&&+A==0&&y!=="+"&&(D=!1),E=(D?y==="("?y:s:y==="-"||y==="("?"":y)+E,M=(g==="s"?ey[8+Pb/3]:"")+M+(D&&y==="("?")":""),T){for($=-1,N=A.length;++$<N;)if(R=A.charCodeAt($),48>R||R>57){M=(R===46?a+A.slice($+1):A.slice($))+M,A=A.slice(0,$);break}}}b&&!p&&(A=t(A,1/0));var K=E.length+A.length+M.length,z=K<w?new Array(w-K+1).join(d):"";switch(b&&p&&(A=t(z+A,z.length?w-M.length:1/0),z=""),h){case"<":A=E+A+M+z;break;case"=":A=E+z+A+M;break;case"^":A=z.slice(0,K=z.length>>1)+E+A+M+z.slice(K);break;default:A=z+E+A+M;break}return i(A)}return C.toString=function(){return l+""},C}function f(l,d){var h=c((l=bn(l),l.type="f",l)),y=Math.max(-8,Math.min(8,Math.floor(xr(d)/3)))*3,v=Math.pow(10,-y),p=ey[8+y/3];return function(w){return h(v*w)+p}}return{format:c,formatPrefix:f}}var na,gf,Ab;NP({thousands:",",grouping:[3],currency:["$",""]});function NP(e){return na=CP(e),gf=na.format,Ab=na.formatPrefix,na}function $P(e){return Math.max(0,-xr(Math.abs(e)))}function kP(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xr(t)/3)))*3-xr(Math.abs(e)))}function RP(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xr(t)-xr(e))+1}function Tb(e,t,r,n){var a=tl(e,t,r),i;switch(n=bn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=kP(a,o))&&(n.precision=i),Ab(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=RP(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=$P(a))&&(n.precision=i-(n.type==="%")*2);break}}return gf(n)}function Ct(e){var t=e.domain;return e.ticks=function(r){var n=t();return Jc(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return Tb(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],u,c,f=10;for(s<o&&(c=o,o=s,s=c,c=a,a=i,i=c);f-- >0;){if(c=el(o,s,r),c===u)return n[a]=o,n[i]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function Ma(){var e=vf();return e.copy=function(){return Gn(e,Ma())},Xe.apply(e,arguments),Ct(e)}function jb(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,Ia),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return jb(e).unknown(t)},e=arguments.length?Array.from(e,Ia):[0,1],Ct(r)}function Ib(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return i<a&&(o=r,r=n,n=o,o=a,a=i,i=o),e[r]=t.floor(a),e[n]=t.ceil(i),e}function ty(e){return Math.log(e)}function ry(e){return Math.exp(e)}function DP(e){return-Math.log(-e)}function qP(e){return-Math.exp(-e)}function LP(e){return isFinite(e)?+("1e"+e):e<0?0:e}function BP(e){return e===10?LP:e===Math.E?Math.exp:t=>Math.pow(e,t)}function KP(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 ny(e){return(t,r)=>-e(-t,r)}function mf(e){const t=e(ty,ry),r=t.domain;let n=10,a,i;function o(){return a=KP(n),i=BP(n),r()[0]<0?(a=ny(a),i=ny(i),e(DP,qP)):e(ty,ry),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const u=r();let c=u[0],f=u[u.length-1];const l=f<c;l&&([c,f]=[f,c]);let d=a(c),h=a(f),y,v;const p=s==null?10:+s;let w=[];if(!(n%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(y=1;y<n;++y)if(v=d<0?y/i(-d):y*i(d),!(v<c)){if(v>f)break;w.push(v)}}else for(;d<=h;++d)for(y=n-1;y>=1;--y)if(v=d>0?y/i(-d):y*i(d),!(v<c)){if(v>f)break;w.push(v)}w.length*2<p&&(w=Jc(c,f,p))}else w=Jc(d,h,Math.min(h-d,p)).map(i);return l?w.reverse():w},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=bn(u)).precision==null&&(u.trim=!0),u=gf(u)),s===1/0)return u;const c=Math.max(1,n*s/t.ticks().length);return f=>{let l=f/i(Math.round(a(f)));return l*n<n-.5&&(l*=n),l<=c?u(f):""}},t.nice=()=>r(Ib(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Eb(){const e=mf(yi()).domain([1,10]);return e.copy=()=>Gn(e,Eb()).base(e.base()),Xe.apply(e,arguments),e}
22function ay(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function iy(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function bf(e){var t=1,r=e(ay(t),iy(t));return r.constant=function(n){return arguments.length?e(ay(t=+n),iy(t)):t},Ct(r)}function Mb(){var e=bf(yi());return e.copy=function(){return Gn(e,Mb()).constant(e.constant())},Xe.apply(e,arguments)}function oy(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function FP(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function zP(e){return e<0?-e*e:e*e}function xf(e){var t=e(Ce,Ce),r=1;function n(){return r===1?e(Ce,Ce):r===.5?e(FP,zP):e(oy(r),oy(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},Ct(t)}function wf(){var e=xf(yi());return e.copy=function(){return Gn(e,wf()).exponent(e.exponent())},Xe.apply(e,arguments),e}function WP(){return wf.apply(null,arguments).exponent(.5)}function sy(e){return Math.sign(e)*e*e}function UP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Cb(){var e=vf(),t=[0,1],r=!1,n;function a(i){var o=UP(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(sy(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,Ia)).map(sy)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Cb(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Xe.apply(a,arguments),Ct(a)}function Nb(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=YS(e,o/s);return i}function i(o){return o==null||isNaN(o=+o)?n:t[Un(r,o)]}return i.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Tt),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return Nb().domain(e).range(t).unknown(n)},Xe.apply(i,arguments)}function $b(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(u){return u!=null&&u<=u?a[Un(n,u,0,r)]:i}function s(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},o.range=function(u){return arguments.length?(r=(a=Array.from(u)).length-1,s()):a.slice()},o.invertExtent=function(u){var c=a.indexOf(u);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(u){return arguments.length&&(i=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return $b().domain([e,t]).range(a).unknown(i)},Xe.apply(Ct(o),arguments)}function kb(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Un(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return kb().domain(e).range(t).unknown(r)},Xe.apply(a,arguments)}const Hu=new Date,Gu=new Date;function Se(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const u=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return u;let c;do u.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<o);return u},a.filter=i=>Se(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(Hu.setTime(+i),Gu.setTime(+o),e(Hu),e(Gu),Math.floor(r(Hu,Gu))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Ca=Se(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ca.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Se(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ca);Ca.range;const ct=1e3,Ue=ct*60,lt=Ue*60,vt=lt*24,_f=vt*7,uy=vt*30,Xu=vt*365,Ft=Se(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getUTCSeconds());Ft.range;const Of=Se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ct)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getMinutes());Of.range;const Sf=Se(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getUTCMinutes());Sf.range;const Pf=Se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ct-e.getMinutes()*Ue)},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getHours());Pf.range;const Af=Se(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getUTCHours());Af.range;const Xn=Se(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ue)/vt,e=>e.getDate()-1);Xn.range;const gi=Se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vt,e=>e.getUTCDate()-1);gi.range;const Rb=Se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vt,e=>Math.floor(e/vt));Rb.range;function tr(e){return Se(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())*Ue)/_f)}const mi=tr(0),Na=tr(1),HP=tr(2),GP=tr(3),wr=tr(4),XP=tr(5),VP=tr(6);mi.range;Na.range;HP.range;GP.range;wr.range;XP.range;VP.range;function rr(e){return Se(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)/_f)}const bi=rr(0),$a=rr(1),YP=rr(2),ZP=rr(3),_r=rr(4),QP=rr(5),JP=rr(6);bi.range;$a.range;YP.range;ZP.range;_r.range;QP.range;JP.range;const Tf=Se(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());Tf.range;const jf=Se(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 yt=Se(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());yt.every=e=>
vendor: 8,023 bytes, line 22
22!isFinite(e=Math.floor(e))||!(e>0)?null:Se(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)});yt.range;const gt=Se(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());gt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Se(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)});gt.range;function Db(e,t,r,n,a,i){const o=[[Ft,1,ct],[Ft,5,5*ct],[Ft,15,15*ct],[Ft,30,30*ct],[i,1,Ue],[i,5,5*Ue],[i,15,15*Ue],[i,30,30*Ue],[a,1,lt],[a,3,3*lt],[a,6,6*lt],[a,12,12*lt],[n,1,vt],[n,2,2*vt],[r,1,_f],[t,1,uy],[t,3,3*uy],[e,1,Xu]];function s(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const h=l&&typeof l.range=="function"?l:u(c,f,l),y=h?h.range(c,+f+1):[];return d?y.reverse():y}function u(c,f,l){const d=Math.abs(f-c)/l,h=lf(([,,p])=>p).right(o,d);if(h===o.length)return e.every(tl(c/Xu,f/Xu,l));if(h===0)return Ca.every(Math.max(tl(c,f,l),1));const[y,v]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return y.every(v)}return[s,u]}const[eA,tA]=Db(gt,jf,bi,Rb,Af,Sf),[rA,nA]=Db(yt,Tf,mi,Xn,Pf,Of);function Vu(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 Yu(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 Gr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function aA(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=Xr(a),f=Vr(a),l=Xr(i),d=Vr(i),h=Xr(o),y=Vr(o),v=Xr(s),p=Vr(s),w=Xr(u),b=Vr(u),x={a:D,A:K,b:z,B:G,c:null,d:py,e:py,f:TA,g:DA,G:LA,H:SA,I:PA,j:AA,L:qb,m:jA,M:IA,p:I,q,Q:gy,s:my,S:EA,u:MA,U:CA,V:NA,w:$A,W:kA,x:null,X:null,y:RA,Y:qA,Z:BA,"%":yy},_={a:U,A:ne,b:se,B:fe,c:null,d:vy,e:vy,f:WA,g:eT,G:rT,H:KA,I:FA,j:zA,L:Bb,m:UA,M:HA,p:Me,q:ye,Q:gy,s:my,S:GA,u:XA,U:VA,V:YA,w:ZA,W:QA,x:null,X:null,y:JA,Y:tT,Z:nT,"%":yy},g={a:C,A,b:E,B:M,c:$,d:dy,e:dy,f:xA,g:fy,G:ly,H:hy,I:hy,j:yA,L:bA,m:vA,M:gA,p:T,q:pA,Q:_A,s:OA,S:mA,u:cA,U:lA,V:fA,w:uA,W:dA,x:N,X:R,y:fy,Y:ly,Z:hA,"%":wA};x.x=m(r,x),x.X=m(n,x),x.c=m(t,x),_.x=m(r,_),_.X=m(n,_),_.c=m(t,_);function m(W,V){return function(Z){var L=[],he=-1,ee=0,be=W.length,xe,Ne,wt;for(Z instanceof Date||(Z=new Date(+Z));++he<be;)W.charCodeAt(he)===37&&(L.push(W.slice(ee,he)),(Ne=cy[xe=W.charAt(++he)])!=null?xe=W.charAt(++he):Ne=xe==="e"?" ":"0",(wt=V[xe])&&(xe=wt(Z,Ne)),L.push(xe),ee=he+1);return L.push(W.slice(ee,he)),L.join("")}}function O(W,V){return function(Z){var L=Gr(1900,void 0,1),he=P(L,W,Z+="",0),ee,be;if(he!=Z.length)return null;if("Q"in L)return new Date(L.Q);if("s"in L)return new Date(L.s*1e3+("L"in L?L.L:0));if(V&&!("Z"in L)&&(L.Z=0),"p"in L&&(L.H=L.H%12+L.p*12),L.m===void 0&&(L.m="q"in L?L.q:0),"V"in L){if(L.V<1||L.V>53)return null;"w"in L||(L.w=1),"Z"in L?(ee=Yu(Gr(L.y,0,1)),be=ee.getUTCDay(),ee=be>4||be===0?$a.ceil(ee):$a(ee),ee=gi.offset(ee,(L.V-1)*7),L.y=ee.getUTCFullYear(),L.m=ee.getUTCMonth(),L.d=ee.getUTCDate()+(L.w+6)%7):(ee=Vu(Gr(L.y,0,1)),be=ee.getDay(),ee=be>4||be===0?Na.ceil(ee):Na(ee),ee=Xn.offset(ee,(L.V-1)*7),L.y=ee.getFullYear(),L.m=ee.getMonth(),L.d=ee.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),be="Z"in L?Yu(Gr(L.y,0,1)).getUTCDay():Vu(Gr(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(be+5)%7:L.w+L.U*7-(be+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,Yu(L)):Vu(L)}}function P(W,V,Z,L){for(var he=0,ee=V.length,be=Z.length,xe,Ne;he<ee;){if(L>=be)return-1;if(xe=V.charCodeAt(he++),xe===37){if(xe=V.charAt(he++),Ne=g[xe in cy?V.charAt(he++):xe],!Ne||(L=Ne(W,Z,L))<0)return-1}else if(xe!=Z.charCodeAt(L++))return-1}return L}function T(W,V,Z){var L=c.exec(V.slice(Z));return L?(W.p=f.get(L[0].toLowerCase()),Z+L[0].length):-1}function C(W,V,Z){var L=h.exec(V.slice(Z));return L?(W.w=y.get(L[0].toLowerCase()),Z+L[0].length):-1}function A(W,V,Z){var L=l.exec(V.slice(Z));return L?(W.w=d.get(L[0].toLowerCase()),Z+L[0].length):-1}function E(W,V,Z){var L=w.exec(V.slice(Z));return L?(W.m=b.get(L[0].toLowerCase()),Z+L[0].length):-1}function M(W,V,Z){var L=v.exec(V.slice(Z));return L?(W.m=p.get(L[0].toLowerCase()),Z+L[0].length):-1}function $(W,V,Z){return P(W,t,V,Z)}function N(W,V,Z){return P(W,r,V,Z)}function R(W,V,Z){return P(W,n,V,Z)}function D(W){return o[W.getDay()]}function K(W){return i[W.getDay()]}function z(W){return u[W.getMonth()]}function G(W){return s[W.getMonth()]}function I(W){return a[+(W.getHours()>=12)]}function q(W){return 1+~~(W.getMonth()/3)}function U(W){return o[W.getUTCDay()]}function ne(W){return i[W.getUTCDay()]}function se(W){return u[W.getUTCMonth()]}function fe(W){return s[W.getUTCMonth()]}function Me(W){return a[+(W.getUTCHours()>=12)]}function ye(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var V=m(W+="",x);return V.toString=function(){return W},V},parse:function(W){var V=O(W+="",!1);return V.toString=function(){return W},V},utcFormat:function(W){var V=m(W+="",_);return V.toString=function(){return W},V},utcParse:function(W){var V=O(W+="",!0);return V.toString=function(){return W},V}}}var cy={"-":"",_:" ",0:"0"},Ae=/^\s*\d+/,iA=/^%/,oA=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function sA(e){return e.replace(oA,"\\$&")}function Xr(e){return new RegExp("^(?:"+e.map(sA).join("|")+")","i")}function Vr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function uA(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function cA(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function lA(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function fA(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function dA(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function ly(e,t,r){var n=Ae.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function fy(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function hA(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 pA(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function vA(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function dy(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function yA(e,t,r){var n=Ae.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function hy(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function gA(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function mA(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function bA(e,t,r){var n=Ae.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function xA(e,t,r){var n=Ae.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function wA(e,t,r){var n=iA.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function _A(e,t,r){var n=Ae.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function OA(e,t,r){var n=Ae.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function py(e,t){return re(e.getDate(),t,2)}function SA(e,t){return re(e.getHours(),t,2)}function PA(e,t){return re(e.getHours()%12||12,t,2)}function AA(e,t){return re(1+Xn.count(yt(e),e),t,3)}function qb(e,t){return re(e.getMilliseconds(),t,3)}function TA(e,t){return qb(e,t)+"000"}function jA(e,t){return re(e.getMonth()+1,t,2)}function IA(e,t){return re(e.getMinutes(),t,2)}function EA(e,t){return re(e.getSeconds(),t,2)}function MA(e){var t=e.getDay();return t===0?7:t}function CA(e,t){return re(mi.count(yt(e)-1,e),t,2)}
22function Lb(e){var t=e.getDay();return t>=4||t===0?wr(e):wr.ceil(e)}function NA(e,t){return e=Lb(e),re(wr.count(yt(e),e)+(yt(e).getDay()===4),t,2)}function $A(e){return e.getDay()}function kA(e,t){return re(Na.count(yt(e)-1,e),t,2)}function RA(e,t){return re(e.getFullYear()%100,t,2)}function DA(e,t){return e=Lb(e),re(e.getFullYear()%100,t,2)}function qA(e,t){return re(e.getFullYear()%1e4,t,4)}function LA(e,t){var r=e.getDay();return e=r>=4||r===0?wr(e):wr.ceil(e),re(e.getFullYear()%1e4,t,4)}function BA(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function vy(e,t){return re(e.getUTCDate(),t,2)}function KA(e,t){return re(e.getUTCHours(),t,2)}function FA(e,t){return re(e.getUTCHours()%12||12,t,2)}function zA(e,t){return re(1+gi.count(gt(e),e),t,3)}function Bb(e,t){return re(e.getUTCMilliseconds(),t,3)}function WA(e,t){return Bb(e,t)+"000"}function UA(e,t){return re(e.getUTCMonth()+1,t,2)}function HA(e,t){return re(e.getUTCMinutes(),t,2)}function GA(e,t){return re(e.getUTCSeconds(),t,2)}function XA(e){var t=e.getUTCDay();return t===0?7:t}function VA(e,t){return re(bi.count(gt(e)-1,e),t,2)}function Kb(e){var t=e.getUTCDay();return t>=4||t===0?_r(e):_r.ceil(e)}function YA(e,t){return e=Kb(e),re(_r.count(gt(e),e)+(gt(e).getUTCDay()===4),t,2)}function ZA(e){return e.getUTCDay()}function QA(e,t){return re($a.count(gt(e)-1,e),t,2)}function JA(e,t){return re(e.getUTCFullYear()%100,t,2)}function eT(e,t){return e=Kb(e),re(e.getUTCFullYear()%100,t,2)}function tT(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function rT(e,t){var r=e.getUTCDay();return e=r>=4||r===0?_r(e):_r.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function nT(){return"+0000"}function yy(){return"%"}function gy(e){return+e}function my(e){return Math.floor(+e/1e3)}var ir,Fb,zb;aT({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function aT(e){return ir=aA(e),Fb=ir.format,ir.parse,zb=ir.utcFormat,ir.utcParse,ir}function iT(e){return new Date(e)}function oT(e){return e instanceof Date?+e:+new Date(+e)}function If(e,t,r,n,a,i,o,s,u,c){var f=vf(),l=f.invert,d=f.domain,h=c(".%L"),y=c(":%S"),v=c("%I:%M"),p=c("%I %p"),w=c("%a %d"),b=c("%b %d"),x=c("%B"),_=c("%Y");function g(m){return(u(m)<m?h:s(m)<m?y:o(m)<m?v:i(m)<m?p:n(m)<m?a(m)<m?w:b:r(m)<m?x:_)(m)}return f.invert=function(m){return new Date(l(m))},f.domain=function(m){return arguments.length?d(Array.from(m,oT)):d().map(iT)},f.ticks=function(m){var O=d();return e(O[0],O[O.length-1],m??10)},f.tickFormat=function(m,O){return O==null?g:c(O)},f.nice=function(m){var O=d();return(!m||typeof m.range!="function")&&(m=t(O[0],O[O.length-1],m??10)),m?d(Ib(O,m)):f},f.copy=function(){return Gn(f,If(e,t,r,n,a,i,o,s,u,c))},f}function sT(){return Xe.apply(If(rA,nA,yt,Tf,mi,Xn,Pf,Of,Ft,Fb).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function uT(){return Xe.apply(If(eA,tA,gt,jf,bi,gi,Af,Sf,Ft,zb).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function xi(){var e=0,t=1,r,n,a,i,o=Ce,s=!1,u;function c(l){return l==null||isNaN(l=+l)?u:o(a===0?.5:(l=(i(l)-r)*a,s?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(s=!!l,c):s},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(d){var h,y;return arguments.length?([h,y]=d,o=l(h,y),c):[o(0),o(1)]}}return c.range=f(Kr),c.rangeRound=f(pf),c.unknown=function(l){return arguments.length?(u=l,c):u},function(l){return i=l,r=l(e),n=l(t),a=r===n?0:1/(n-r),c}}function Nt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Wb(){var e=Ct(xi()(Ce));return e.copy=function(){return Nt(e,Wb())},xt.apply(e,arguments)}function Ub(){var e=mf(xi()).domain([1,10]);return e.copy=function(){return Nt(e,Ub()).base(e.base())},xt.apply(e,arguments)}function Hb(){var e=bf(xi());return e.copy=function(){return Nt(e,Hb()).constant(e.constant())},xt.apply(e,arguments)}function Ef(){var e=xf(xi());return e.copy=function(){return Nt(e,Ef()).exponent(e.exponent())},xt.apply(e,arguments)}function cT(){return Ef.apply(null,arguments).exponent(.5)}function Gb(){var e=[],t=Ce;function r(n){if(n!=null&&!isNaN(n=+n))return t((Un(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];
vendor: 207,000 bytes, lines 22-64
22for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Tt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>VS(e,i/n))},r.copy=function(){return Gb(t).domain(e)},xt.apply(r,arguments)}function wi(){var e=0,t=.5,r=1,n=1,a,i,o,s,u,c=Ce,f,l=!1,d;function h(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-i)*(n*v<n*i?s:u),c(l?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,r]=v,a=f(e=+e),i=f(t=+t),o=f(r=+r),s=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,h):[e,t,r]},h.clamp=function(v){return arguments.length?(l=!!v,h):l},h.interpolator=function(v){return arguments.length?(c=v,h):c};function y(v){return function(p){var w,b,x;return arguments.length?([w,b,x]=p,c=wP(v,[w,b,x]),h):[c(0),c(.5),c(1)]}}return h.range=y(Kr),h.rangeRound=y(pf),h.unknown=function(v){return arguments.length?(d=v,h):d},function(v){return f=v,a=v(e),i=v(t),o=v(r),s=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,h}}function Xb(){var e=Ct(wi()(Ce));return e.copy=function(){return Nt(e,Xb())},xt.apply(e,arguments)}function Vb(){var e=mf(wi()).domain([.1,1,10]);return e.copy=function(){return Nt(e,Vb()).base(e.base())},xt.apply(e,arguments)}function Yb(){var e=bf(wi());return e.copy=function(){return Nt(e,Yb()).constant(e.constant())},xt.apply(e,arguments)}function Mf(){var e=xf(wi());return e.copy=function(){return Nt(e,Mf()).exponent(e.exponent())},xt.apply(e,arguments)}function lT(){return Mf.apply(null,arguments).exponent(.5)}const by=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:vn,scaleDiverging:Xb,scaleDivergingLog:Vb,scaleDivergingPow:Mf,scaleDivergingSqrt:lT,scaleDivergingSymlog:Yb,scaleIdentity:jb,scaleImplicit:rl,scaleLinear:Ma,scaleLog:Eb,scaleOrdinal:ff,scalePoint:an,scalePow:wf,scaleQuantile:Nb,scaleQuantize:$b,scaleRadial:Cb,scaleSequential:Wb,scaleSequentialLog:Ub,scaleSequentialPow:Ef,scaleSequentialQuantile:Gb,scaleSequentialSqrt:cT,scaleSequentialSymlog:Hb,scaleSqrt:WP,scaleSymlog:Mb,scaleThreshold:kb,scaleTime:sT,scaleUtc:uT,tickFormat:Tb},Symbol.toStringTag,{value:"Module"}));var Zu,xy;function Zb(){if(xy)return Zu;xy=1;var e=Rr();function t(r,n,a){for(var i=-1,o=r.length;++i<o;){var s=r[i],u=n(s);if(u!=null&&(c===void 0?u===u&&!e(u):a(u,c)))var c=u,f=s}return f}return Zu=t,Zu}var Qu,wy;function fT(){if(wy)return Qu;wy=1;function e(t,r){return t>r}return Qu=e,Qu}var Ju,_y;function dT(){if(_y)return Ju;_y=1;var e=Zb(),t=fT(),r=Lr();function n(a){return a&&a.length?e(a,r,t):void 0}return Ju=n,Ju}var hT=dT();const Pt=ce(hT);var ec,Oy;function pT(){if(Oy)return ec;Oy=1;function e(t,r){return t<r}return ec=e,ec}var tc,Sy;function vT(){if(Sy)return tc;Sy=1;var e=Zb(),t=pT(),r=Lr();function n(a){return a&&a.length?e(a,r,t):void 0}return tc=n,tc}var yT=vT();const _i=ce(yT);var rc,Py;function gT(){if(Py)return rc;Py=1;var e=Ul(),t=Mt(),r=ob(),n=ke();function a(i,o){var s=n(i)?e:r;return s(i,t(o,3))}return rc=a,rc}var nc,Ay;function mT(){if(Ay)return nc;Ay=1;var e=ab(),t=gT();function r(n,a){return e(t(n,a),1)}return nc=r,nc}var bT=mT();const xT=ce(bT);var ac,Ty;function wT(){if(Ty)return ac;Ty=1;var e=af();function t(r,n){return e(r,n)}return ac=t,ac}var _T=wT();const xn=ce(_T);var Fr=1e9,OT={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Nf,le=!0,Ge="[DecimalError] ",Ht=Ge+"Invalid argument: ",Cf=Ge+"Exponent out of range: ",zr=Math.floor,Lt=Math.pow,ST=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qe,Pe=1e7,ue=7,Qb=9007199254740991,ka=zr(Qb/ue),H={};H.absoluteValue=H.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};H.comparedTo=H.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=n<a?n:a;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};H.decimalPlaces=H.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ue;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};H.dividedBy=H.div=function(e){return pt(this,new this.constructor(e))};H.dividedToIntegerBy=H.idiv=function(e){var t=this,r=t.constructor;return ie(pt(t,new r(e),0,1),r.precision)};H.equals=H.eq=function(e){return!this.cmp(e)};H.exponent=function(){return me(this)};H.greaterThan=H.gt=function(e){return this.cmp(e)>0};H.greaterThanOrEqualTo=H.gte=function(e){return this.cmp(e)>=0};H.isInteger=H.isint=function(){return this.e>this.d.length-2};H.isNegative=H.isneg=function(){return this.s<0};H.isPositive=H.ispos=function(){return this.s>0};H.isZero=function(){return this.s===0};H.lessThan=H.lt=function(e){return this.cmp(e)<0};H.lessThanOrEqualTo=H.lte=function(e){return this.cmp(e)<1};H.logarithm=H.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(qe))throw Error(Ge+"NaN");if(r.s<1)throw Error(Ge+(r.s?"NaN":"-Infinity"));return r.eq(qe)?new n(0):(le=!1,t=pt(wn(r,i),wn(e,i),i),le=!0,ie(t,a))};H.minus=H.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?t0(t,e):Jb(t,(e.s=-e.s,e))};H.modulo=H.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(Ge+"NaN");return r.s?(le=!1,t=pt(r,e,0,1).times(e),le=!0,r.minus(t)):ie(new n(r),a)};H.naturalExponential=H.exp=function(){return e0(this)};H.naturalLogarithm=H.ln=function(){return wn(this)};H.negated=H.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};H.plus=H.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Jb(t,e):t0(t,(e.s=-e.s,e))};H.precision=H.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ht+e);if(t=me(a)+1,n=a.d.length-1,r=n*ue+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};H.squareRoot=H.sqrt=function(){var e,t,r,n,a,i,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(Ge+"NaN")}for(e=me(s),le=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=rt(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=zr((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(a.toString()),r=u.precision,a=o=r+3;;)if(i=n,n=i.plus(pt(s,i,o+2)).times(.5),rt(i.d).slice(0,o)===(t=rt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(ie(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return le=!0,ie(n,r)};H.times=H.mul=function(e){var t,r,n,a,i,o,s,u,c,f=this,l=f.constructor,d=f.d,h=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,u=d.length,c=h.length,u<c&&(i=d,d=h,h=i,o=u,u=c,c=o),i=[],o=u+c,n=o;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,a=u+n;a>n;)s=i[a]+h[n]*d[a-n-1]+t,i[a--]=s%Pe|0,t=s/Pe|0;i[a]=(i[a]+t)%Pe|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,le?ie(e,l.precision):e};H.toDecimalPlaces=H.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ot(e,0,Fr),t===void 0?t=n.rounding:ot(t,0,8),ie(r,e+me(r)+1,t))};H.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=Zt(n,!0):(ot(e,0,Fr),t===void 0?t=a.rounding:ot(t,0,8),n=ie(new a(n),e+1,t),r=Zt(n,!0,e+1)),r};H.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?Zt(a):(ot(e,0,Fr),t===void 0?t=i.rounding:ot(t,0,8),n=ie(new i(a),e+me(a)+1,t),r=Zt(n.abs(),!1,e+me(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};H.toInteger=H.toint=function(){var e=this,t=e.constructor;return ie(new t(e),me(e)+1,t.rounding)};H.toNumber=function(){return+this};H.toPower=H.pow=function(e){var t,r,n,a,i,o,s=this,u=s.constructor,c=12,f=+(e=new u(e));if(!e.s)return new u(qe);if(s=new u(s),!s.s){if(e.s<1)throw Error(Ge+"Infinity");return s}if(s.eq(qe))return s;if(n=u.precision,e.eq(qe))return ie(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=f<0?-f:f)<=Qb){for(a=new u(qe),t=Math.ceil(n/ue+4),le=!1;r%2&&(a=a.times(s),Iy(a.d,t)),r=zr(r/2),r!==0;)s=s.times(s),Iy(s.d,t);return le=!0,e.s<0?new u(qe).div(a):ie(a,n)}}else if(i<0)throw Error(Ge+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,le=!1,a=e.times(wn(s,n+c)),le=!0,a=e0(a),a.s=i,a};H.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=me(a),n=Zt(a,r<=i.toExpNeg||r>=i.toExpPos)):(ot(e,1,Fr),t===void 0?t=i.rounding:ot(t,0,8),a=ie(new i(a),e,t),r=me(a),n=Zt(a,e<=r||r<=i.toExpNeg,e)),n};H.toSignificantDigits=H.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ot(e,1,Fr),t===void 0?t=n.rounding:ot(t,0,8)),ie(new n(r),e,t)};H.toString=H.valueOf=H.val=H.toJSON=H[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=me(e),r=e.constructor;return Zt(e,t<=r.toExpNeg||t>=r.toExpPos)};function Jb(e,t){var r,n,a,i,o,s,u,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),le?ie(t,l):t;if(u=e.d,c=t.d,o=e.e,a=t.e,u=u.slice(),i=o-a,i){for(i<0?(n=u,i=-i,s=c.length):(n=c,a=o,s=u.length),o=Math.ceil(l/ue),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=u.length,i=c.length,s-i<0&&(i=s,n=c,c=u,u=n),r=0;i;)r=(u[--i]=u[i]+c[i]+r)/Pe|0,u[i]%=Pe;for(r&&(u.unshift(r),++a),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=a,le?ie(t,l):t}function ot(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ht+e)}function rt(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)n=e[t]+"",r=ue-n.length,r&&(i+=Ot(r)),i+=n;o=e[t],n=o+"",r=ue-n.length,r&&(i+=Ot(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var pt=(function(){function e(n,a){var i,o=0,s=n.length;for(n=n.slice();s--;)i=n[s]*a+o,n[s]=i%Pe|0,o=i/Pe|0;return o&&n.unshift(o),n}function t(n,a,i,o){var s,u;if(i!=o)u=i>o?1:-1;else for(s=u=0;s<i;s++)if(n[s]!=a[s]){u=n[s]>a[s]?1:-1;break}return u}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]<a[i]?1:0,n[i]=o*Pe+n[i]-a[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,i,o){var s,u,c,f,l,d,h,y,v,p,w,b,x,_,g,m,O,P,T=n.constructor,C=n.s==a.s?1:-1,A=n.d,E=a.d;if(!n.s)return new T(n);if(!a.s)throw Error(Ge+"Division by zero");for(u=n.e-a.e,O=E.length,g=A.length,h=new T(C),y=h.d=[],c=0;E[c]==(A[c]||0);)++c;if(E[c]>(A[c]||0)&&--u,i==null?b=i=T.precision:o?b=i+(me(n)-me(a))+1:b=i,b<0)return new T(0);if(b=b/ue+2|0,c=0,O==1)for(f=0,E=E[0],b++;(c<g||f)&&b--;c++)x=f*Pe+(A[c]||0),y[c]=x/E|0,f=x%E|0;else{for(f=Pe/(E[0]+1)|0,f>1&&(E=e(E,f),A=e(A,f),O=E.length,g=A.length),_=O,v=A.slice(0,O),p=v.length;p<O;)v[p++]=0;P=E.slice(),P.unshift(0),m=E[0],E[1]>=Pe/2&&++m;do f=0,s=t(E,v,O,p),s<0?(w=v[0],O!=p&&(w=w*Pe+(v[1]||0)),f=w/m|0,f>1?(f>=Pe&&(f=Pe-1),l=e(E,f),d=l.length,p=v.length,s=t(l,v,d,p),s==1&&(f--,r(l,O<d?P:E,d))):(f==0&&(s=f=1),l=E.slice()),d=l.length,d<p&&l.unshift(0),r(v,l,p),s==-1&&(p=v.length,s=t(E,v,O,p),s<1&&(f++,r(v,O<p?P:E,p))),p=v.length):s===0&&(f++,v=[0]),y[c++]=f,s&&v[0]?v[p++]=A[_]||0:(v=[A[_]],p=1);while((_++<g||v[0]!==void 0)&&b--)}return y[0]||y.shift(),h.e=u,ie(h,o?i+me(h)+1:i)}})();function e0(e,t){var r,n,a,i,o,s,u=0,c=0,f=e.constructor,l=f.precision;if(me(e)>16)throw Error(Cf+me(e));if(!e.s)return new f(qe);for(le=!1,s=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,s+=n,r=a=i=new f(qe),f.precision=s;;){if(a=ie(a.times(e),s),r=r.times(++u),o=i.plus(pt(a,r,s)),rt(o.d).slice(0,s)===rt(i.d).slice(0,s)){for(;c--;)i=ie(i.times(i),s);return f.precision=l,t==null?(le=!0,ie(i,l)):i}i=o}}function me(e){for(var t=e.e*ue,r=e.d[0];r>=10;r/=10)t++;return t}function ic(e,t,r){if(t>e.LN10.sd())throw le=!0,r&&(e.precision=r),Error(Ge+"LN10 precision limit exceeded");return ie(new e(e.LN10),t)}function Ot(e){for(var t="";e--;)t+="0";return t}function wn(e,t){var r,n,a,i,o,s,u,c,f,l=1,d=10,h=e,y=h.d,v=h.constructor,p=v.precision;if(h.s<1)throw Error(Ge+(h.s?"NaN":"-Infinity"));if(h.eq(qe))return new v(0);if(t==null?(le=!1,c=p):c=t,h.eq(10))return t==null&&(le=!0),ic(v,c);if(c+=d,v.precision=c,r=rt(y),n=r.charAt(0),i=me(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=rt(h.d),n=r.charAt(0),l++;i=me(h),n>1?(h=new v("0."+r),i++):h=new v(n+"."+r.slice(1))}else return u=ic(v,c+2,p).times(i+""),h=wn(new v(n+"."+r.slice(1)),c-d).plus(u),v.precision=p,t==null?(le=!0,ie(h,p)):h;for(s=o=h=pt(h.minus(qe),h.plus(qe),c),f=ie(h.times(h),c),a=3;;){if(o=ie(o.times(f),c),u=s.plus(pt(o,new v(a),c)),rt(u.d).slice(0,c)===rt(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(ic(v,c+2,p).times(i+""))),s=pt(s,new v(l),c),v.precision=p,t==null?(le=!0,ie(s,p)):s;s=u,a+=2}}function jy(e,t){var r,n,a;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(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=zr(r/ue),e.d=[],n=(r+1)%ue,r<0&&(n+=ue),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=ue;n<a;)e.d.push(+t.slice(n,n+=ue));t=t.slice(n),n=ue-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),le&&(e.e>ka||e.e<-ka))throw Error(Cf+r)}else e.s=0,e.e=0,e.d=[0];return e}function ie(e,t,r){var n,a,i,o,s,u,c,f,l=e.d;for(o=1,i=l[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=ue,a=t,c=l[f=0];else{if(f=Math.ceil((n+1)/ue),i=l.length,f>=i)return e;for(c=i=l[f],o=1;i>=10;i/=10)o++;n%=ue,a=n-ue+o}if(r!==void 0&&(i=Lt(10,o-a-1),s=c/i%10|0,u=t<0||l[f+1]!==void 0||c%i,u=r<4?(s||u)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||u||r==6&&(n>0?a>0?c/Lt(10,o-a):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return u?(i=me(e),l.length=1,t=t-i-1,l[0]=Lt(10,(ue-t%ue)%ue),e.e=zr(-t/ue)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,i=1,f--):(l.length=f+1,i=Lt(10,ue-n),l[f]=a>0?(c/Lt(10,o-a)%Lt(10,a)|0)*i:0),u)for(;;)if(f==0){(l[0]+=i)==Pe&&(l[0]=1,++e.e);break}else{if(l[f]+=i,l[f]!=Pe)break;l[f--]=0,i=1}for(n=l.length;l[--n]===0;)l.pop();if(le&&(e.e>ka||e.e<-ka))throw Error(Cf+me(e));return e}function t0(e,t){var r,n,a,i,o,s,u,c,f,l,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),le?ie(t,h):t;if(u=e.d,l=t.d,n=t.e,c=e.e,u=u.slice(),o=c-n,o){for(f=o<0,f?(r=u,o=-o,s=l.length):(r=l,n=c,s=u.length),a=Math.max(Math.ceil(h/ue),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=u.length,s=l.length,f=a<s,f&&(s=a),a=0;a<s;a++)if(u[a]!=l[a]){f=u[a]<l[a];break}o=0}for(f&&(r=u,u=l,l=r,t.s=-t.s),s=u.length,a=l.length-s;a>0;--a)u[s++]=0;for(a=l.length;a>o;){if(u[--a]<l[a]){for(i=a;i&&u[--i]===0;)u[i]=Pe-1;--u[i],u[a]+=Pe}u[a]-=l[a]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,le?ie(t,h):t):new d(0)}function Zt(e,t,r){var n,a=me(e),i=rt(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+Ot(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Ot(-a-1)+i,r&&(n=r-o)>0&&(i+=Ot(n))):a>=o?(i+=Ot(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+Ot(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=Ot(n))),e.s<0?"-"+i:i}function Iy(e,t){if(e.length>t)return e.length=t,!0}function r0(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Ht+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return jy(o,i.toString())}else if(typeof i!="string")throw Error(Ht+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,ST.test(i))jy(o,i);else throw Error(Ht+i)}if(a.prototype=H,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=r0,a.config=a.set=PT,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 a.config(e),a}function PT(e){if(!e||typeof e!="object")throw Error(Ge+"Object expected");var t,r,n,a=["precision",1,Fr,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((n=e[r=a[t]])!==void 0)if(zr(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(Ht+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ht+r+": "+n);return this}var Nf=r0(OT);qe=new Nf(1);const ae=Nf;function AT(e){return ET(e)||IT(e)||jT(e)||TT()}function TT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 23In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jT(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 IT(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ET(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},n0={},a0=function(t){return t===n0},Ey=function(t){return function r(){return arguments.length===0||arguments.length===1&&a0(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},CT=function e(t,r){return t===1?r:Ey(function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a.filter(function(s){return s!==n0}).length;return o>=t?r.apply(void 0,a):e(t-o,Ey(function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var f=a.map(function(l){return a0(l)?u.shift():l});return r.apply(void 0,AT(f).concat(u))}))})},Oi=function(t){return CT(t.length,t)},sl=function(t,r){for(var n=[],a=t;a<r;++a)n[a-t]=a;return n},NT=Oi(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),$T=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 a=r.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(s,u){return u(s)},i.apply(void 0,arguments))}},ul=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},i0=function(t){var r=null,n=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r&&i.every(function(s,u){return s===r[u]})||(r=i,n=t.apply(void 0,i)),n}};function kT(e){var t;return e===0?t=1:t=Math.floor(new ae(e).abs().log(10).toNumber())+1,t}function RT(e,t,r){for(var n=new ae(e),a=0,i=[];n.lt(t)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var DT=Oi(function(e,t,r){var n=+e,a=+t;return n+r*(a-n)}),qT=Oi(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),LT=Oi(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Si={rangeStep:RT,getDigitCount:kT,interpolateNumber:DT,uninterpolateNumber:qT,uninterpolateTruncation:LT};function cl(e){return FT(e)||KT(e)||o0(e)||BT()}function BT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KT(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function FT(e){if(Array.isArray(e))return ll(e)}function _n(e,t){return UT(e)||WT(e,t)||o0(e,t)||zT()}function zT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o0(e,t){if(e){if(typeof e=="string")return ll(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 ll(e,t)}}function ll(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 WT(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){a=!0,i=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function UT(e){if(Array.isArray(e))return e}function s0(e){var t=_n(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function u0(e,t,r){if(e.lte(0))return new ae(0);var n=Si.getDigitCount(e.toNumber()),a=new ae(10).pow(n),i=e.div(a),o=n!==1?.05:.1,s=new ae(Math.ceil(i.div(o).toNumber())).add(r).mul(o),u=s.mul(a);return t?u:new ae(Math.ceil(u))}function HT(e,t,r){var n=1,a=new ae(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new ae(10).pow(Si.getDigitCount(e)-1),a=new ae(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new ae(Math.floor(e)))}else e===0?a=new ae(Math.floor((t-1)/2)):r||(a=new ae(Math.floor(e)));var o=Math.floor((t-1)/2),s=$T(NT(function(u){return a.add(new ae(u-o).mul(n)).toNumber()}),sl);return s(0,t)}function c0(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ae(0),tickMin:new ae(0),tickMax:new ae(0)};var i=u0(new ae(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new ae(0):(o=new ae(e).add(t).div(2),o=o.sub(new ae(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),u=Math.ceil(new ae(t).sub(o).div(i).toNumber()),c=s+u+1;return c>r?c0(e,t,r,n,a+1):(c<r&&(u=t>0?u+(r-c):u,s=t>0?s:s+(r-c)),{step:i,tickMin:o.sub(new ae(s).mul(i)),tickMax:o.add(new ae(u).mul(i))})}function GT(e){var t=_n(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),s=s0([r,n]),u=_n(s,2),c=u[0],f=u[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(cl(sl(0,a-1).map(function(){return 1/0}))):[].concat(cl(sl(0,a-1).map(function(){return-1/0})),[f]);return r>n?ul(l):l}if(c===f)return HT(c,a,i);var d=c0(c,f,o,i),h=d.step,y=d.tickMin,v=d.tickMax,p=Si.rangeStep(y,v.add(new ae(.1).mul(h)),h);return r>n?ul(p):p}function XT(e,t){var r=_n(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=s0([n,a]),s=_n(o,2),u=s[0],c=s[1];if(u===-1/0||c===1/0)return[n,a];if(u===c)return[u];var f=Math.max(t,2),l=u0(new ae(c).sub(u).div(f-1),i,0),d=[].concat(cl(Si.rangeStep(new ae(u),new ae(c).sub(new ae(.99).mul(l)),l)),[c]);return n>a?ul(d):d}var VT=i0(GT),YT=i0(XT),ZT="Invariant failed";function Qt(e,t){throw new Error(ZT)}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 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 JT(e,t){return nj(e)||rj(e,t)||tj(e,t)||ej()}function ej(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 26In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tj(e,t){if(e){if(typeof e=="string")return My(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 My(e,t)}}function My(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 rj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,a=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function nj(e){if(Array.isArray(e))return e}function aj(e,t){if(e==null)return{};var r=ij(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ij(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 oj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sj(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,d0(n.key),n)}}function uj(e,t,r){return t&&sj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cj(e,t,r){return t=Da(t),lj(e,l0()?Reflect.construct(t,r||[],Da(e).constructor):t.apply(e,r))}function lj(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 fj(e)}function fj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l0=function(){return!!e})()}function Da(e){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Da(e)}function dj(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&&fl(e,t)}function fl(e,t){return fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},fl(e,t)}function f0(e,t,r){return t=d0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d0(e){var t=hj(e,"string");return Or(t)=="symbol"?t:t+""}function hj(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 Pi=(function(e){function t(){return oj(this,t),cj(this,t,arguments)}return dj(t,e),uj(t,[{key:"render",value:function(){var n=this.props,a=n.offset,i=n.layout,o=n.width,s=n.dataKey,u=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,d=aj(n,QT),h=Q(d,!1);this.props.direction==="x"&&f.type!=="number"&&Qt();var y=u.map(function(v){var p=c(v,s),w=p.x,b=p.y,x=p.value,_=p.errorVal;if(!_)return null;var g=[],m,O;if(Array.isArray(_)){var P=JT(_,2);m=P[0],O=P[1]}else m=O=_;if(i==="vertical"){var T=f.scale,C=b+a,A=C+o,E=C-o,M=T(x-m),$=T(x+O);g.push({x1:$,y1:A,x2:$,y2:E}),g.push({x1:M,y1:C,x2:$,y2:C}),g.push({x1:M,y1:A,x2:M,y2:E})}else if(i==="horizontal"){var N=l.scale,R=w+a,D=R-o,K=R+o,z=N(x-m),G=N(x+O);g.push({x1:D,y1:G,x2:K,y2:G}),g.push({x1:R,y1:z,x2:R,y2:G}),g.push({x1:D,y1:z,x2:K,y2:z})}return j.createElement(de,Ra({className:"recharts-errorBar",key:"bar-".concat(g.map(function(I){return"".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))},h),g.map(function(I){return j.createElement("line",Ra({},I,{key:"line-".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))}))});return j.createElement(de,{className:"recharts-errorBars"},y)}}])})(j.Component);f0(Pi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});f0(Pi,"displayName","ErrorBar");function On(e){"@babel/helpers - typeof";return On=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},On(e)}function Cy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cy(Object(r),!0).forEach(function(n){pj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pj(e,t,r){return t=vj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vj(e){var t=yj(e,"string");return On(t)=="symbol"?t:t+""}function yj(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var h0=function(t){var r=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=De(r,fr);if(!o)return null;var s=fr.defaultProps,u=s!==void 0?Dt(Dt({},s),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:i==="children"?c=(n||[]).reduce(function(f,l){var d=l.item,h=l.props,y=h.sectors||h.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,h=d!==void 0?Dt(Dt({},d),l.props):{},y=h.dataKey,v=h.name,p=h.legendType,w=h.hide;return{inactive:w,dataKey:y,type:u.iconType||p||"square",color:$f(l),value:v||y,payload:h}}),Dt(Dt(Dt({},u),fr.getWithHeight(o,a)),{},{payload:c,item:o})};function Sn(e){"@babel/helpers - typeof";return Sn=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},Sn(e)}function Ny(e){return xj(e)||bj(e)||mj(e)||gj()}function gj(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 27In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mj(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 bj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xj(e){if(Array.isArray(e))return dl(e)}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 $y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$y(Object(r),!0).forEach(function(n){hr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$y(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hr(e,t,r){return t=wj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wj(e){var t=_j(e,"string");return Sn(t)=="symbol"?t:t+""}function _j(e,t){if(Sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Le(e,t,r){return J(e)||J(t)?r:Oe(t)?He(e,t,r):Y(t)?t(e):r}function on(e,t,r,n){var a=xT(e,function(s){return Le(s,t)});if(r==="number"){var i=a.filter(function(s){return F(s)||parseFloat(s)});return i.length?[_i(i),Pt(i)]:[1/0,-1/0]}var o=n?a.filter(function(s){return!J(s)}):a;return o.map(function(s){return Oe(s)||s instanceof Date?s:""})}var Oj=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n?.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var u=i.range,c=0;c<s;c++){var f=c>0?a[c-1].coordinate:a[s-1].coordinate,l=a[c].coordinate,d=c>=s-1?a[0].coordinate:a[c+1].coordinate,h=void 0;if(Je(l-f)!==Je(d-l)){var y=[];if(Je(d-l)===Je(u[1]-u[0])){h=d;var v=l+u[1]-u[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{h=f;var p=d+u[1]-u[0];y[0]=Math.min(l,(p+l)/2),y[1]=Math.max(l,(p+l)/2)}var w=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(t>w[0]&&t<=w[1]||t>=y[0]&&t<=y[1]){o=a[c].index;break}}else{var b=Math.min(f,d),x=Math.max(f,d);if(t>(b+l)/2&&t<=(x+l)/2){o=a[c].index;break}}}else for(var _=0;_<s;_++)if(_===0&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_===s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2){o=n[_].index;break}return o},$f=function(t){var r,n=t,a=n.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,o=i.stroke,s=i.fill,u;switch(a){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:s;break;default:u=s;break}return u},Sj=function(t){var r=t.barSize,n=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},s=Object.keys(i),u=0,c=s.length;u<c;u++)for(var f=i[s[u]].stackGroups,l=Object.keys(f),d=0,h=l.length;d<h;d++){var y=f[l[d]],v=y.items,p=y.cateAxisId,w=v.filter(function(O){return dt(O.type).indexOf("Bar")>=0});if(w&&w.length){var b=w[0].type.defaultProps,x=b!==void 0?pe(pe({},b),w[0].props):w[0].props,_=x.barSize,g=x[p];o[g]||(o[g]=[]);var m=J(_)?r:_;o[g].push({item:w[0],stackList:w.slice(1),barSize:J(m)?void 0:Yt(m,n,0)})}}return o},Pj=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,s=t.maxBarSize,u=o.length;if(u<1)return null;var c=Yt(r,a,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=a/u,y=o.reduce(function(_,g){return _+g.barSize||0},0);y+=(u-1)*c,y>=a&&(y-=(u-1)*c,c=0),y>=a&&h>0&&(d=!0,h*=.9,y=u*h);var v=(a-y)/2>>0,p={offset:v-c,size:0};f=o.reduce(function(_,g){var m={item:g.item,position:{offset:p.offset+p.size+c,size:d?h:g.barSize}},O=[].concat(Ny(_),[m]);return p=O[O.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(P){O.push({item:P,position:p})}),O},l)}else{var w=Yt(n,a,0,!0);a-2*w-(u-1)*c<=0&&(c=0);var b=(a-2*w-(u-1)*c)/u;b>1&&(b>>=0);var x=s===+s?Math.min(b,s):b;f=o.reduce(function(_,g,m){var O=[].concat(Ny(_),[{item:g.item,position:{offset:w+(b+c)*m+(b-x)/2,size:x}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(P){O.push({item:P,position:O[O.length-1].position})}),O},l)}return f},Aj=function(t,r,n,a){var i=n.children,o=n.width,s=n.margin,u=o-(s.left||0)-(s.right||0),c=h0({children:i,legendWidth:u});if(c){var f=a||{},l=f.width,d=f.height,h=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&h!=="center"&&F(t[h]))return pe(pe({},t),{},hr({},h,t[h]+(l||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&y!=="middle"&&F(t[y]))return pe(pe({},t),{},hr({},y,t[y]+(d||0)))}return t},Tj=function(t,r,n){return J(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},p0=function(t,r,n,a,i){var o=r.props.children,s=et(o,Pi).filter(function(c){return Tj(a,i,c.props.direction)});if(s&&s.length){var u=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Le(f,n);if(J(l))return c;var d=Array.isArray(l)?[_i(l),Pt(l)]:[l,l],h=u.reduce(function(y,v){var p=Le(f,v,0),w=d[0]-Math.abs(Array.isArray(p)?p[0]:p),b=d[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(w,y[0]),Math.max(b,y[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},jj=function(t,r,n,a,i){var o=r.map(function(s){return p0(t,s,n,i,a)}).filter(function(s){return!J(s)});return o&&o.length?o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]):null},v0=function(t,r,n,a,i){var o=r.map(function(u){var c=u.props.dataKey;return n==="number"&&c&&p0(t,u,c,a)||on(t,c,n,i)});if(n==="number")return o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(u,c){for(var f=0,l=c.length;f<l;f++)s[c[f]]||(s[c[f]]=!0,u.push(c[f]));return u},[])},y0=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},g0=function(t,r,n,a){if(a)return t.map(function(u){return u.coordinate});var i,o,s=t.map(function(u){return u.coordinate===r&&(i=!0),u.coordinate===n&&(o=!0),u.coordinate});return i||s.push(r),o||s.push(n),s},ft=function(t,r,n){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,s=t.range,u=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,c=(r||n)&&o==="category"&&a.bandwidth?a.bandwidth()/u:0;if(c=t.axisType==="angleAxis"&&s?.length>=2?Je(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=i?i.indexOf(l):l;return{coordinate:a(d)+c,value:l,offset:c}});return f.filter(function(l){return!qr(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:a(l)+c,value:l,index:d,offset:c}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(l){return{coordinate:a(l)+c,value:l,offset:c}}):a.domain().map(function(l,d){return{coordinate:a(l)+c,value:i?i[l]:l,index:d,offset:c}})},oc=new WeakMap,aa=function(t,r){if(typeof r!="function")return t;oc.has(t)||oc.set(t,new WeakMap);var n=oc.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},Ij=function(t,r,n){var a=t.scale,i=t.type,o=t.layout,s=t.axisType;if(a==="auto")return o==="radial"&&s==="radiusAxis"?{scale:vn(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Ma(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:an(),realScaleType:"point"}:i==="category"?{scale:vn(),realScaleType:"band"}:{scale:Ma(),realScaleType:"linear"};if(Vt(a)){var u="scale".concat(ci(a));return{scale:(by[u]||an)(),realScaleType:by[u]?u:"point"}}return Y(a)?{scale:a}:{scale:an(),realScaleType:"point"}},ky=1e-4,Ej=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-ky,o=Math.max(a[0],a[1])+ky,s=t(r[0]),u=t(r[n-1]);(s<i||s>o||u<i||u>o)&&t.domain([r[0],r[n-1]])}},Mj=function(t,r){if(!t)return null;for(var n=0,a=t.length;n<a;n++)if(t[n].item===r)return t[n].position;return null},Cj=function(t,r){if(!r||r.length!==2||!F(r[0])||!F(r[1]))return t;var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),i=[t[0],t[1]];return(!F(t[0])||t[0]<n)&&(i[0]=n),(!F(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<n&&(i[1]=n),i},Nj=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0,s=0;s<r;++s){var u=qr(t[s][n][1])?t[s][n][0]:t[s][n][1];u>=0?(t[s][n][0]=i,t[s][n][1]=i+u,i=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+u,o=t[s][n][1])}},$j=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0;o<r;++o){var s=qr(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=i,t[o][n][1]=i+s,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},kj={sign:Nj,expand:mw,none:vr,silhouette:bw,wiggle:xw,positive:$j},Rj=function(t,r,n){var a=r.map(function(s){return s.props.dataKey}),i=kj[n],o=gw().keys(a).value(function(s,u){return+Le(s,u,0)}).order(Fc).offset(i);return o(t)},Dj=function(t,r,n,a,i,o){if(!t)return null;var s=o?r.reverse():r,u={},c=s.reduce(function(l,d){var h,y=(h=d.type)!==null&&h!==void 0&&h.defaultProps?pe(pe({},d.type.defaultProps),d.props):d.props,v=y.stackId,p=y.hide;if(p)return l;var w=y[n],b=l[w]||{hasStack:!1,stackGroups:{}};if(Oe(v)){var x=b.stackGroups[v]||{numericAxisId:n,cateAxisId:a,items:[]};x.items.push(d),b.hasStack=!0,b.stackGroups[v]=x}else b.stackGroups[zn("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[d]};return pe(pe({},l),{},hr({},w,b))},u),f={};return Object.keys(c).reduce(function(l,d){var h=c[d];if(h.hasStack){var y={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,p){var w=h.stackGroups[p];return pe(pe({},v),{},hr({},p,{numericAxisId:n,cateAxisId:a,items:w.items,stackedData:Rj(t,w.items,i)}))},y)}return pe(pe({},l),{},hr({},d,h))},f)},qj=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,s=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=VT(c,i,s);return t.domain([_i(f),Pt(f)]),{niceTicks:f}}if(i&&a==="number"){var l=t.domain(),d=YT(l,i,s);return{niceTicks:d}}return null};function Ry(e){var t=e.axis,r=e.ticks,n=e.bandSize,a=e.entry,i=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!J(a[t.dataKey])){var s=fa(r,"value",a[t.dataKey]);if(s)return s.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=Le(a,J(o)?t.dataKey:o);return J(u)?null:t.scale(u)}var Dy=function(t){var r=t.axis,n=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+a:null;var u=Le(o,r.dataKey,r.domain[s]);return J(u)?null:r.scale(u)-i/2+a},Lj=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},Bj=function(t,r){var n,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(Oe(i)){var o=r[i];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},Kj=function(t){return t.reduce(function(r,n){return[_i(n.concat([r[0]]).filter(F)),Pt(n.concat([r[1]]).filter(F))]},[1/0,-1/0])},m0=function(t,r,n){return Object.keys(t).reduce(function(a,i){var o=t[i],s=o.stackedData,u=s.reduce(function(c,f){var l=Kj(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(u[0],a[0]),Math.max(u[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},qy=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ly=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hl=function(t,r,n){if(Y(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(F(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(qy.test(t[0])){var i=+qy.exec(t[0])[1];a[0]=r[0]-i}else Y(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(F(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(Ly.test(t[1])){var o=+Ly.exec(t[1])[1];a[1]=r[1]+o}else Y(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},qa=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=sf(r,function(l){return l.coordinate}),o=1/0,s=1,u=i.length;s<u;s++){var c=i[s],f=i[s-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},By=function(t,r,n){return!t||!t.length||xn(t,He(n,"type.defaultProps.domain"))?r:t},b0=function(t,r){var n=t.type.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,a=n.dataKey,i=n.name,o=n.unit,s=n.formatter,u=n.tooltipType,c=n.chartType,f=n.hide;return pe(pe({},Q(t,!1)),{},{dataKey:a,unit:o,formatter:s,name:i||a,color:$f(t),value:Le(r,a),type:u,payload:r,chartType:c,hide:f})};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 Ky(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Fy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ky(Object(r),!0).forEach(function(n){Fj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ky(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fj(e,t,r){return t=zj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zj(e){var t=Wj(e,"string");return Pn(t)=="symbol"?t:t+""}function Wj(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 La=Math.PI/180,Uj=function(t){return t*180/Math.PI},Te=function(t,r,n,a){return{x:t+Math.cos(-La*a)*n,y:r+Math.sin(-La*a)*n}},Hj=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(a-o,2))},Gj=function(t,r){var n=t.x,a=t.y,i=r.cx,o=r.cy,s=Hj({x:n,y:a},{x:i,y:o});if(s<=0)return{radius:s};var u=(n-i)/s,c=Math.acos(u);return a>o&&(c=2*Math.PI-c),{radius:s,angle:Uj(c),angleInRadian:c}},Xj=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},Vj=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),s=Math.min(i,o);return t+s*360},zy=function(t,r){var n=t.x,a=t.y,i=Gj({x:n,y:a},r),o=i.radius,s=i.angle,u=r.innerRadius,c=r.outerRadius;if(o<u||o>c)return!1;if(o===0)return!0;var f=Xj(r),l=f.startAngle,d=f.endAngle,h=s,y;if(l<=d){for(;h>d;)h-=360;for(;h<l;)h+=360;y=h>=l&&h<=d}else{for(;h>l;)h-=360;for(;h<d;)h+=360;y=h>=d&&h<=l}return y?Fy(Fy({},r),{},{radius:o,angle:Vj(h,r)}):null};function An(e){"@babel/helpers - typeof";return An=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},An(e)}var Yj=["offset"];function Zj(e){return tI(e)||eI(e)||Jj(e)||Qj()}function Qj(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 28In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jj(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 eI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tI(e){if(Array.isArray(e))return pl(e)}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 rI(e,t){if(e==null)return{};var r=nI(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nI(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 Wy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?Wy(Object(r),!0).forEach(function(n){aI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aI(e,t,r){return t=iI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iI(e){var t=oI(e,"string");return An(t)=="symbol"?t:t+""}function oI(e,t){if(An(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tn(){return Tn=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},Tn.apply(this,arguments)}var sI=function(t){var r=t.value,n=t.formatter,a=J(t.children)?r:t.children;return Y(n)?n(a):a},uI=function(t,r){var n=Je(r-t),a=Math.min(Math.abs(r-t),360);return n*a},cI=function(t,r,n){var a=t.position,i=t.viewBox,o=t.offset,s=t.className,u=i,c=u.cx,f=u.cy,l=u.innerRadius,d=u.outerRadius,h=u.startAngle,y=u.endAngle,v=u.clockWise,p=(l+d)/2,w=uI(h,y),b=w>=0?1:-1,x,_;a==="insideStart"?(x=h+b*o,_=v):a==="insideEnd"?(x=y-b*o,_=!v):a==="end"&&(x=y+b*o,_=v),_=w<=0?_:!_;var g=Te(c,f,p,x),m=Te(c,f,p,x+(_?1:-1)*359),O="M".concat(g.x,",").concat(g.y,` 29 A`).concat(p,",").concat(p,",0,1,").concat(_?0:1,`, 30 `).concat(m.x,",").concat(m.y),P=J(t.id)?zn("recharts-radial-line-"):t.id;return j.createElement("text",Tn({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",s)}),j.createElement("defs",null,j.createElement("path",{id:P,d:O})),j.createElement("textPath",{xlinkHref:"#".concat(P)},r))},lI=function(t){var r=t.viewBox,n=t.offset,a=t.position,i=r,o=i.cx,s=i.cy,u=i.innerRadius,c=i.outerRadius,f=i.startAngle,l=i.endAngle,d=(f+l)/2;if(a==="outside"){var h=Te(o,s,c+n,d),y=h.x,v=h.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var p=(u+c)/2,w=Te(o,s,p,d),b=w.x,x=w.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},fI=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,o=r,s=o.x,u=o.y,c=o.width,f=o.height,l=f>=0?1:-1,d=l*a,h=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,p=v*a,w=v>0?"end":"start",b=v>0?"start":"end";if(i==="top"){var x={x:s+c/2,y:u-l*a,textAnchor:"middle",verticalAnchor:h};return _e(_e({},x),n?{height:Math.max(u-n.y,0),width:c}:{})}if(i==="bottom"){var _={x:s+c/2,y:u+f+d,textAnchor:"middle",verticalAnchor:y};return _e(_e({},_),n?{height:Math.max(n.y+n.height-(u+f),0),width:c}:{})}if(i==="left"){var g={x:s-p,y:u+f/2,textAnchor:w,verticalAnchor:"middle"};return _e(_e({},g),n?{width:Math.max(g.x-n.x,0),height:f}:{})}if(i==="right"){var m={x:s+c+p,y:u+f/2,textAnchor:b,verticalAnchor:"middle"};return _e(_e({},m),n?{width:Math.max(n.x+n.width-m.x,0),height:f}:{})}var O=n?{width:c,height:f}:{};return i==="insideLeft"?_e({x:s+p,y:u+f/2,textAnchor:b,verticalAnchor:"middle"},O):i==="insideRight"?_e({x:s+c-p,y:u+f/2,textAnchor:w,verticalAnchor:"middle"},O):i==="insideTop"?_e({x:s+c/2,y:u+d,textAnchor:"middle",verticalAnchor:y},O):i==="insideBottom"?_e({x:s+c/2,y:u+f-d,textAnchor:"middle",verticalAnchor:h},O):i==="insideTopLeft"?_e({x:s+p,y:u+d,textAnchor:b,verticalAnchor:y},O):i==="insideTopRight"?_e({x:s+c-p,y:u+d,textAnchor:w,verticalAnchor:y},O):i==="insideBottomLeft"?_e({x:s+p,y:u+f-d,textAnchor:b,verticalAnchor:h},O):i==="insideBottomRight"?_e({x:s+c-p,y:u+f-d,textAnchor:w,verticalAnchor:h},O):Dr(i)&&(F(i.x)||Bt(i.x))&&(F(i.y)||Bt(i.y))?_e({x:s+Yt(i.x,c),y:u+Yt(i.y,f),textAnchor:"end",verticalAnchor:"end"},O):_e({x:s+c/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},dI=function(t){return"cx"in t&&F(t.cx)};function Ie(e){var t=e.offset,r=t===void 0?5:t,n=rI(e,Yj),a=_e({offset:r},n),i=a.viewBox,o=a.position,s=a.value,u=a.children,c=a.content,f=a.className,l=f===void 0?"":f,d=a.textBreakAll;if(!i||J(s)&&J(u)&&!B.isValidElement(c)&&!Y(c))return null;if(B.isValidElement(c))return B.cloneElement(c,a);var h;if(Y(c)){if(h=B.createElement(c,a),B.isValidElement(h))return h}else h=sI(a);var y=dI(i),v=Q(a,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return cI(a,h,v);var p=y?lI(a):fI(a);return j.createElement(Sa,Tn({className:te("recharts-label",l)},v,p,{breakAll:d}),h)}Ie.displayName="Label";var x0=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,s=t.r,u=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,d=t.y,h=t.top,y=t.left,v=t.width,p=t.height,w=t.clockWise,b=t.labelViewBox;if(b)return b;if(F(v)&&F(p)){if(F(l)&&F(d))return{x:l,y:d,width:v,height:p};if(F(h)&&F(y))return{x:h,y,width:v,height:p}}return F(l)&&F(d)?{x:l,y:d,width:0,height:0}:F(r)&&F(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:c||0,outerRadius:f||u||s||0,clockWise:w}:t.viewBox?t.viewBox:{}},hI=function(t,r){return t?t===!0?j.createElement(Ie,{key:"label-implicit",viewBox:r}):Oe(t)?j.createElement(Ie,{key:"label-implicit",viewBox:r,value:t}):B.isValidElement(t)?t.type===Ie?B.cloneElement(t,{key:"label-implicit",viewBox:r}):j.createElement(Ie,{key:"label-implicit",content:t,viewBox:r}):Y(t)?j.createElement(Ie,{key:"label-implicit",content:t,viewBox:r}):Dr(t)?j.createElement(Ie,Tn({viewBox:r},t,{key:"label-implicit"})):null:null},pI=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 a=t.children,i=x0(t),o=et(a,Ie).map(function(u,c){return B.cloneElement(u,{viewBox:r||i,key:"label-".concat(c)})});if(!n)return o;var s=hI(t.label,r||i);return[s].concat(Zj(o))};Ie.parseViewBox=x0;Ie.renderCallByParent=pI;var sc,Uy;function vI(){if(Uy)return sc;Uy=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return sc=e,sc}var yI=vI();const gI=ce(yI);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)}var mI=["valueAccessor"],bI=["data","dataKey","clockWise","id","textBreakAll"];function xI(e){return SI(e)||OI(e)||_I(e)||wI()}function wI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 31In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _I(e,t){if(e){if(typeof e=="string")return vl(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 vl(e,t)}}function OI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SI(e){if(Array.isArray(e))return vl(e)}function vl(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 Ba(){return Ba=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},Ba.apply(this,arguments)}function Hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Gy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hy(Object(r),!0).forEach(function(n){PI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PI(e,t,r){return t=AI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AI(e){var t=TI(e,"string");return jn(t)=="symbol"?t:t+""}function TI(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 Xy(e,t){if(e==null)return{};var r=jI(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jI(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 II=function(t){return Array.isArray(t.value)?gI(t.value):t.value};function jt(e){var t=e.valueAccessor,r=t===void 0?II:t,n=Xy(e,mI),a=n.data,i=n.dataKey,o=n.clockWise,s=n.id,u=n.textBreakAll,c=Xy(n,bI);return!a||!a.length?null:j.createElement(de,{className:"recharts-label-list"},a.map(function(f,l){var d=J(i)?r(f,l):Le(f&&f.payload,i),h=J(s)?{}:{id:"".concat(s,"-").concat(l)};return j.createElement(Ie,Ba({},Q(f,!0),c,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:u,viewBox:Ie.parseViewBox(J(o)?f:Gy(Gy({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}jt.displayName="LabelList";function EI(e,t){return e?e===!0?j.createElement(jt,{key:"labelList-implicit",data:t}):j.isValidElement(e)||Y(e)?j.createElement(jt,{key:"labelList-implicit",data:t,content:e}):Dr(e)?j.createElement(jt,Ba({data:t},e,{key:"labelList-implicit"})):null:null}function MI(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,a=et(n,jt).map(function(o,s){return B.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return a;var i=EI(e.label,t);return[i].concat(xI(a))}jt.renderCallByParent=MI;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 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 Vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vy(Object(r),!0).forEach(function(n){CI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CI(e,t,r){return t=NI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NI(e){var t=$I(e,"string");return In(t)=="symbol"?t:t+""}function $I(e,t){if(In(e)!="object"||!e)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 kI=function(t,r){var n=Je(r-t),a=Math.min(Math.abs(r-t),359.999);return n*a},ia=function(t){var r=t.cx,n=t.cy,a=t.radius,i=t.angle,o=t.sign,s=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,f=u*(s?1:-1)+a,l=Math.asin(u/f)/La,d=c?i:i+o*l,h=Te(r,n,f,d),y=Te(r,n,a,d),v=c?i-o*l:i,p=Te(r,n,f*Math.cos(l*La),v);return{center:h,circleTangency:y,lineTangency:p,theta:l}},w0=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,s=t.endAngle,u=kI(o,s),c=o+u,f=Te(r,n,i,o),l=Te(r,n,i,c),d="M ".concat(f.x,",").concat(f.y,` 32 A `).concat(i,",").concat(i,`,0, 33 `).concat(+(Math.abs(u)>180),",").concat(+(o>c),`, 34 `).concat(l.x,",").concat(l.y,` 35 `);if(a>0){var h=Te(r,n,a,o),y=Te(r,n,a,c);d+="L ".concat(y.x,",").concat(y.y,` 36 A `).concat(a,",").concat(a,`,0, 37 `).concat(+(Math.abs(u)>180),",").concat(+(o<=c),`, 38 `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},RI=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=Je(f-c),d=ia({cx:r,cy:n,radius:i,angle:c,sign:l,cornerRadius:o,cornerIsExternal:u}),h=d.circleTangency,y=d.lineTangency,v=d.theta,p=ia({cx:r,cy:n,radius:i,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:u}),w=p.circleTangency,b=p.lineTangency,x=p.theta,_=u?Math.abs(c-f):Math.abs(c-f)-v-x;if(_<0)return s?"M ".concat(y.x,",").concat(y.y,` 39 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 40 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 41 `):w0({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:c,endAngle:f});var g="M ".concat(y.x,",").concat(y.y,` 42 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(h.x,",").concat(h.y,` 43 A`).concat(i,",").concat(i,",0,").concat(+(_>180),",").concat(+(l<0),",").concat(w.x,",").concat(w.y,` 44 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(b.x,",").concat(b.y,` 45 `);if(a>0){var m=ia({cx:r,cy:n,radius:a,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),O=m.circleTangency,P=m.lineTangency,T=m.theta,C=ia({cx:r,cy:n,radius:a,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),A=C.circleTangency,E=C.lineTangency,M=C.theta,$=u?Math.abs(c-f):Math.abs(c-f)-T-M;if($<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,` 46 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,` 47 A`).concat(a,",").concat(a,",0,").concat(+($>180),",").concat(+(l>0),",").concat(O.x,",").concat(O.y,` 48 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},DI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},_0=function(t){var r=Yy(Yy({},DI),t),n=r.cx,a=r.cy,i=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,u=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<i||f===l)return null;var h=te("recharts-sector",d),y=o-i,v=Yt(s,y,0,!0),p;return v>0&&Math.abs(f-l)<360?p=RI({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:f,endAngle:l}):p=w0({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:f,endAngle:l}),j.createElement("path",yl({},Q(r,!0),{className:h,d:p,role:"img"}))};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)}function gl(){return gl=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},gl.apply(this,arguments)}function Zy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zy(Object(r),!0).forEach(function(n){qI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qI(e,t,r){return t=LI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LI(e){var t=BI(e,"string");return En(t)=="symbol"?t:t+""}function BI(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)}var Jy={curveBasisClosed:ow,curveBasisOpen:sw,curveBasis:iw,curveBumpX:U1,curveBumpY:H1,curveLinearClosed:uw,curveLinear:fi,curveMonotoneX:cw,curveMonotoneY:lw,curveNatural:fw,curveStep:dw,curveStepAfter:pw,curveStepBefore:hw},oa=function(t){return t.x===+t.x&&t.y===+t.y},Yr=function(t){return t.x},Zr=function(t){return t.y},KI=function(t,r){if(Y(t))return t;var n="curve".concat(ci(t));return(n==="curveMonotone"||n==="curveBump")&&r?Jy["".concat(n).concat(r==="vertical"?"Y":"X")]:Jy[n]||fi},FI=function(t){var r=t.type,n=r===void 0?"linear":r,a=t.points,i=a===void 0?[]:a,o=t.baseLine,s=t.layout,u=t.connectNulls,c=u===void 0?!1:u,f=KI(n,s),l=c?i.filter(function(v){return oa(v)}):i,d;if(Array.isArray(o)){var h=c?o.filter(function(v){return oa(v)}):o,y=l.map(function(v,p){return Qy(Qy({},v),{},{base:h[p]})});return s==="vertical"?d=Zn().y(Zr).x1(Yr).x0(function(v){return v.base.x}):d=Zn().x(Yr).y1(Zr).y0(function(v){return v.base.y}),d.defined(oa).curve(f),d(y)}return s==="vertical"&&F(o)?d=Zn().y(Zr).x1(Yr).x0(o):F(o)?d=Zn().x(Yr).y1(Zr).y0(o):d=Tm().x(Yr).y(Zr),d.defined(oa).curve(f),d(l)},sn=function(t){var r=t.className,n=t.points,a=t.path,i=t.pathRef;if((!n||!n.length)&&!a)return null;var o=n&&n.length?FI(t):a;return B.createElement("path",gl({},Q(t,!1),da(t),{className:te("recharts-curve",r),d:o,ref:i}))};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 Ka(){return Ka=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},Ka.apply(this,arguments)}function zI(e,t){return GI(e)||HI(e,t)||UI(e,t)||WI()}function WI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 49In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UI(e,t){if(e){if(typeof e=="string")return eg(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 eg(e,t)}}function eg(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 HI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,a=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function GI(e){if(Array.isArray(e))return e}function tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function rg(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){XI(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 XI(e,t,r){return t=VI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VI(e){var t=YI(e,"string");return Mn(t)=="symbol"?t:t+""}function YI(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)}var ng=function(t,r,n,a,i){var o=Math.min(Math.abs(n)/2,Math.abs(a)/2),s=a>=0?1:-1,u=n>=0?1:-1,c=a>=0&&n>=0||a<0&&n<0?1:0,f;if(o>0&&i instanceof Array){for(var l=[0,0,0,0],d=0,h=4;d<h;d++)l[d]=i[d]>o?o:i[d];f="M".concat(t,",").concat(r+s*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+u*l[0],",").concat(r)),f+="L ".concat(t+n-u*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`, 50 `).concat(t+n,",").concat(r+s*l[1])),f+="L ".concat(t+n,",").concat(r+a-s*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`, 51 `).concat(t+n-u*l[2],",").concat(r+a)),f+="L ".concat(t+u*l[3],",").concat(r+a),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`, 52 `).concat(t,",").concat(r+a-s*l[3])),f+="Z"}else if(o>0&&i===+i&&i>0){var y=Math.min(o,i);f="M ".concat(t,",").concat(r+s*y,` 53 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+u*y,",").concat(r,` 54 L `).concat(t+n-u*y,",").concat(r,` 55 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+s*y,` 56 L `).concat(t+n,",").concat(r+a-s*y,` 57 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-u*y,",").concat(r+a,` 58 L `).concat(t+u*y,",").concat(r+a,` 59 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+a-s*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return f},ZI=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,i=r.x,o=r.y,s=r.width,u=r.height;if(Math.abs(s)>0&&Math.abs(u)>0){var c=Math.min(i,i+s),f=Math.max(i,i+s),l=Math.min(o,o+u),d=Math.max(o,o+u);return n>=c&&n<=f&&a>=l&&a<=d}return!1},QI={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},kf=function(t){var r=rg(rg({},QI),t),n=B.useRef(),a=B.useState(-1),i=zI(a,2),o=i[0],s=i[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var u=r.x,c=r.y,f=r.width,l=r.height,d=r.radius,h=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,w=r.isAnimationActive,b=r.isUpdateAnimationActive;if(u!==+u||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var x=te("recharts-rectangle",h);return b?j.createElement(pr,{canBegin:o>0,from:{width:f,height:l,x:u,y:c},to:{width:f,height:l,x:u,y:c},duration:v,animationEasing:y,isActive:b},function(_){var g=_.width,m=_.height,O=_.x,P=_.y;return j.createElement(pr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:w,easing:y},j.createElement("path",Ka({},Q(r,!0),{className:x,d:ng(O,P,g,m,d),ref:n})))}):j.createElement("path",Ka({},Q(r,!0),{className:x,d:ng(u,c,f,l,d)}))};function ml(){return ml=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},ml.apply(this,arguments)}var Rf=function(t){var r=t.cx,n=t.cy,a=t.r,i=t.className,o=te("recharts-dot",i);return r===+r&&n===+n&&a===+a?B.createElement("circle",ml({},Q(t,!1),da(t),{className:o,cx:r,cy:n,r:a})):null};function Cn(e){"@babel/helpers - typeof";return Cn=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},Cn(e)}var JI=["x","y","top","left","width","height","className"];function bl(){return bl=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},bl.apply(this,arguments)}function ag(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function eE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ag(Object(r),!0).forEach(function(n){tE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tE(e,t,r){return t=rE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rE(e){var t=nE(e,"string");return Cn(t)=="symbol"?t:t+""}function nE(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aE(e,t){if(e==null)return{};var r=iE(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iE(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 oE=function(t,r,n,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},sE=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.top,s=o===void 0?0:o,u=t.left,c=u===void 0?0:u,f=t.width,l=f===void 0?0:f,d=t.height,h=d===void 0?0:d,y=t.className,v=aE(t,JI),p=eE({x:n,y:i,top:s,left:c,width:l,height:h},v);return!F(n)||!F(i)||!F(l)||!F(h)||!F(s)||!F(c)?null:j.createElement("path",bl({},Q(p,!0),{className:te("recharts-cross",y),d:oE(n,i,l,h,s,c)}))},uc,ig;function uE(){if(ig)return uc;ig=1;var e=Ym(),t=e(Object.getPrototypeOf,Object);return uc=t,uc}var cc,og;function cE(){if(og)return cc;og=1;var e=mt(),t=uE(),r=bt(),n="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,s=i.hasOwnProperty,u=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=s.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==u}return cc=c,cc}var lE=cE();const fE=ce(lE);var lc,sg;function dE(){if(sg)return lc;sg=1;var e=mt(),t=bt(),r="[object Boolean]";function n(a){return a===!0||a===!1||t(a)&&e(a)==r}return lc=n,lc}var hE=dE();const pE=ce(hE);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 Fa(){return Fa=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},Fa.apply(this,arguments)}function vE(e,t){return bE(e)||mE(e,t)||gE(e,t)||yE()}function yE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 60In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gE(e,t){if(e){if(typeof e=="string")return ug(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 ug(e,t)}}function ug(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 mE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,a=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function bE(e){if(Array.isArray(e))return e}function cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function lg(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){xE(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 xE(e,t,r){return t=wE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wE(e){var t=_E(e,"string");return Nn(t)=="symbol"?t:t+""}function _E(e,t){if(Nn(e)!="object"||!e)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)}var fg=function(t,r,n,a,i){var o=n-a,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+i),s+="L ".concat(t+n-o/2-a,",").concat(r+i),s+="L ".concat(t,",").concat(r," Z"),s},OE={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},SE=function(t){var r=lg(lg({},OE),t),n=B.useRef(),a=B.useState(-1),i=vE(a,2),o=i[0],s=i[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var u=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,h=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,w=r.isUpdateAnimationActive;if(u!==+u||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var b=te("recharts-trapezoid",h);return w?j.createElement(pr,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:u,y:c},to:{upperWidth:f,lowerWidth:l,height:d,x:u,y:c},duration:v,animationEasing:y,isActive:w},function(x){var _=x.upperWidth,g=x.lowerWidth,m=x.height,O=x.x,P=x.y;return j.createElement(pr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},j.createElement("path",Fa({},Q(r,!0),{className:b,d:fg(O,P,_,g,m),ref:n})))}):j.createElement("g",null,j.createElement("path",Fa({},Q(r,!0),{className:b,d:fg(u,c,f,l,d)})))},PE=["option","shapeType","propTransformer","activeClassName","isActive"];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 AE(e,t){if(e==null)return{};var r=TE(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TE(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 dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function za(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){jE(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 jE(e,t,r){return t=IE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IE(e){var t=EE(e,"string");return $n(t)=="symbol"?t:t+""}function EE(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)}function ME(e,t){return za(za({},t),e)}function CE(e,t){return e==="symbols"}function hg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return j.createElement(kf,r);case"trapezoid":return j.createElement(SE,r);case"sector":return j.createElement(_0,r);case"symbols":if(CE(t))return j.createElement(Ql,r);break;default:return null}}function NE(e){return B.isValidElement(e)?e.props:e}function $E(e){var t=e.option,r=e.shapeType,n=e.propTransformer,a=n===void 0?ME:n,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,s=e.isActive,u=AE(e,PE),c;if(B.isValidElement(t))c=B.cloneElement(t,za(za({},u),NE(t)));else if(Y(t))c=t(u);else if(fE(t)&&!pE(t)){var f=a(t,u);c=j.createElement(hg,{shapeType:r,elementProps:f})}else{var l=u;c=j.createElement(hg,{shapeType:r,elementProps:l})}return s?j.createElement(de,{className:o},c):c}function Ai(e,t){return t!=null&&"trapezoids"in e.props}function Ti(e,t){return t!=null&&"sectors"in e.props}function kn(e,t){return t!=null&&"points"in e.props}function kE(e,t){var r,n,a=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,i=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return a&&i}function RE(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function DE(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function qE(e,t){var r;return Ai(e,t)?r=kE:Ti(e,t)?r=RE:kn(e,t)&&(r=DE),r}function LE(e,t){var r;return Ai(e,t)?r="trapezoids":Ti(e,t)?r="sectors":kn(e,t)&&(r="points"),r}function BE(e,t){if(Ai(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(Ti(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 kn(e,t)?t.payload:{}}function KE(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=LE(r,t),i=BE(r,t),o=n.filter(function(u,c){var f=xn(i,u),l=r.props[a].filter(function(y){var v=qE(r,t);return v(y,t)}),d=r.props[a].indexOf(l[l.length-1]),h=c===d;return f&&h}),s=n.indexOf(o[o.length-1]);return s}var fc,pg;function FE(){if(pg)return fc;pg=1;var e=Math.ceil,t=Math.max;function r(n,a,i,o){for(var s=-1,u=t(e((a-n)/(i||1)),0),c=Array(u);u--;)c[o?u:++s]=n,n+=i;return c}return fc=r,fc}var dc,vg;function O0(){if(vg)return dc;vg=1;var e=db(),t=1/0,r=17976931348623157e292;function n(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var i=a<0?-1:1;return i*r}return a===a?a:0}return dc=n,dc}var hc,yg;function zE(){if(yg)return hc;yg=1;var e=FE(),t=vi(),r=O0();function n(a){return function(i,o,s){return s&&typeof s!="number"&&t(i,o,s)&&(o=s=void 0),i=r(i),o===void 0?(o=i,i=0):o=r(o),s=s===void 0?i<o?1:-1:r(s),e(i,o,s,a)}}return hc=n,hc}var pc,gg;function WE(){if(gg)return pc;gg=1;var e=zE(),t=e();return pc=t,pc}var UE=WE();const Wa=ce(UE);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 mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function bg(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){S0(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 S0(e,t,r){return t=HE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HE(e){var t=GE(e,"string");return Rn(t)=="symbol"?t:t+""}function GE(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 XE=["Webkit","Moz","O","ms"],VE=function(t,r){var n=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=XE.reduce(function(i,o){return bg(bg({},i),{},S0({},o+n,r))},{});return a[t]=r,a};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 Ua(){return Ua=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},Ua.apply(this,arguments)}function xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xg(Object(r),!0).forEach(function(n){Re(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wg(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,A0(n.key),n)}}function ZE(e,t,r){return t&&wg(e.prototype,t),r&&wg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QE(e,t,r){return t=Ha(t),JE(e,P0()?Reflect.construct(t,r||[],Ha(e).constructor):t.apply(e,r))}function JE(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 eM(e)}function eM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P0=function(){return!!e})()}function Ha(e){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ha(e)}function tM(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&&xl(e,t)}function xl(e,t){return xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},xl(e,t)}function Re(e,t,r){return t=A0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A0(e){var t=rM(e,"string");return Sr(t)=="symbol"?t:t+""}function rM(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 nM=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var u=r.length,c=an().domain(Wa(0,u)).range([i,i+o-s]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(a),scale:c,scaleValues:f}},_g=function(t){return t.changedTouches&&!!t.changedTouches.length},Pr=(function(e){function t(r){var n;return YE(this,t),n=QE(this,t,[r]),Re(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),Re(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),Re(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,i=a.endIndex,o=a.onDragEnd,s=a.startIndex;o?.({endIndex:i,startIndex:s})}),n.detachDragEndListener()}),Re(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Re(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Re(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Re(n,"handleSlideDragStart",function(a){var i=_g(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return tM(t,e),ZE(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,i=n.endX,o=this.state.scaleValues,s=this.props,u=s.gap,c=s.data,f=c.length-1,l=Math.min(a,i),d=Math.max(a,i),h=t.getIndexInRange(o,l),y=t.getIndexInRange(o,d);return{startIndex:h-h%u,endIndex:y===f?f:y-y%u}}},{key:"getTextOfTick",value:function(n){var a=this.props,i=a.data,o=a.tickFormatter,s=a.dataKey,u=Le(i[n],s,n);return Y(o)?o(u,n):u}},{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 a=this.state,i=a.slideMoveStartX,o=a.startX,s=a.endX,u=this.props,c=u.x,f=u.width,l=u.travellerWidth,d=u.startIndex,h=u.endIndex,y=u.onChange,v=n.pageX-i;v>0?v=Math.min(v,c+f-l-s,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-s));var p=this.getIndex({startX:o+v,endX:s+v});(p.startIndex!==d||p.endIndex!==h)&&y&&y(p),this.setState({startX:o+v,endX:s+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var i=_g(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,s=a.endX,u=a.startX,c=this.state[o],f=this.props,l=f.x,d=f.width,h=f.travellerWidth,y=f.onChange,v=f.gap,p=f.data,w={startX:this.state.startX,endX:this.state.endX},b=n.pageX-i;b>0?b=Math.min(b,l+d-h-c):b<0&&(b=Math.max(b,l-c)),w[o]=c+b;var x=this.getIndex(w),_=x.startIndex,g=x.endIndex,m=function(){var P=p.length-1;return o==="startX"&&(s>u?_%v===0:g%v===0)||s<u&&g===P||o==="endX"&&(s>u?g%v===0:_%v===0)||s>u&&g===P};this.setState(Re(Re({},o,c+b),"brushMoveStartX",n.pageX),function(){y&&m()&&y(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var i=this,o=this.state,s=o.scaleValues,u=o.startX,c=o.endX,f=this.state[a],l=s.indexOf(f);if(l!==-1){var d=l+n;if(!(d===-1||d>=s.length)){var h=s[d];a==="startX"&&h>=c||a==="endX"&&h<=u||this.setState(Re({},a,h),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,s=n.height,u=n.fill,c=n.stroke;return j.createElement("rect",{stroke:c,fill:u,x:a,y:i,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,s=n.height,u=n.data,c=n.children,f=n.padding,l=B.Children.only(c);return l?j.cloneElement(l,{x:a,y:i,width:o,height:s,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,a){var i,o,s=this,u=this.props,c=u.y,f=u.travellerWidth,l=u.height,d=u.traveller,h=u.ariaLabel,y=u.data,v=u.startIndex,p=u.endIndex,w=Math.max(n,this.props.x),b=vc(vc({},Q(this.props,!1)),{},{x:w,y:c,width:f,height:l}),x=h||"Min value: ".concat((i=y[v])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return j.createElement(de,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),s.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,a))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,a){var i=this.props,o=i.y,s=i.height,u=i.stroke,c=i.travellerWidth,f=Math.min(n,a)+c,l=Math.max(Math.abs(a-n)-c,0);return j.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:o,width:l,height:s})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,i=n.endIndex,o=n.y,s=n.height,u=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,d=f.endX,h=5,y={pointerEvents:"none",fill:c};return j.createElement(de,{className:"recharts-brush-texts"},j.createElement(Sa,Ua({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-h,y:o+s/2},y),this.getTextOfTick(a)),j.createElement(Sa,Ua({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+u+h,y:o+s/2},y),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,a=n.data,i=n.className,o=n.children,s=n.x,u=n.y,c=n.width,f=n.height,l=n.alwaysShowText,d=this.state,h=d.startX,y=d.endX,v=d.isTextActive,p=d.isSlideMoving,w=d.isTravellerMoving,b=d.isTravellerFocused;if(!a||!a.length||!F(s)||!F(u)||!F(c)||!F(f)||c<=0||f<=0)return null;var x=te("recharts-brush",i),_=j.Children.count(o)===1,g=VE("userSelect","none");return j.createElement(de,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(h,y),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(y,"endX"),(v||p||w||b||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,i=n.y,o=n.width,s=n.height,u=n.stroke,c=Math.floor(i+s/2)-1;return j.createElement(j.Fragment,null,j.createElement("rect",{x:a,y:i,width:o,height:s,fill:u,stroke:"none"}),j.createElement("line",{x1:a+1,y1:c,x2:a+o-1,y2:c,fill:"none",stroke:"#fff"}),j.createElement("line",{x1:a+1,y1:c+2,x2:a+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var i;return j.isValidElement(n)?i=j.cloneElement(n,a):Y(n)?i=n(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(n,a){var i=n.data,o=n.width,s=n.x,u=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(i!==a.prevData||c!==a.prevUpdateId)return vc({prevData:i,prevTravellerWidth:u,prevUpdateId:c,prevX:s,prevWidth:o},i&&i.length?nM({data:i,width:o,x:s,travellerWidth:u,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||s!==a.prevX||u!==a.prevTravellerWidth)){a.scale.range([s,s+o-u]);var d=a.scale.domain().map(function(h){return a.scale(h)});return{prevData:i,prevTravellerWidth:u,prevUpdateId:c,prevX:s,prevWidth:o,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,a){for(var i=n.length,o=0,s=i-1;s-o>1;){var u=Math.floor((o+s)/2);n[u]>a?s=u:o=u}return a>=n[s]?s:o}}])})(B.PureComponent);Re(Pr,"displayName","Brush");Re(Pr,"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 yc,Og;function aM(){if(Og)return yc;Og=1;var e=of();function t(r,n){var a;return e(r,function(i,o,s){return a=n(i,o,s),!a}),!!a}return yc=t,yc}var gc,Sg;function iM(){if(Sg)return gc;Sg=1;var e=zm(),t=Mt(),r=aM(),n=ke(),a=vi();function i(o,s,u){var c=n(o)?e:r;return u&&a(o,s,u)&&(s=void 0),c(o,t(s,3))}return gc=i,gc}var oM=iM();const sM=ce(oM);var it=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},mc,Pg;function uM(){if(Pg)return mc;Pg=1;var e=sb();function t(r,n,a){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return mc=t,mc}var bc,Ag;function cM(){if(Ag)return bc;Ag=1;var e=uM(),t=ib(),r=Mt();function n(a,i){var o={};return i=r(i,3),t(a,function(s,u,c){e(o,u,i(s,u,c))}),o}return bc=n,bc}var lM=cM();const fM=ce(lM);var xc,Tg;function dM(){if(Tg)return xc;Tg=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(!r(t[n],n,t))return!1;return!0}return xc=e,xc}var wc,jg;function hM(){if(jg)return wc;jg=1;var e=of();function t(r,n){var a=!0;return e(r,function(i,o,s){return a=!!n(i,o,s),a}),a}return wc=t,wc}var _c,Ig;function pM(){if(Ig)return _c;Ig=1;var e=dM(),t=hM(),r=Mt(),n=ke(),a=vi();function i(o,s,u){var c=n(o)?e:t;return u&&a(o,s,u)&&(s=void 0),c(o,r(s,3))}return _c=i,_c}var vM=pM();const T0=ce(vM);var yM=["x","y"];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)}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)}function Eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qr(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){gM(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 gM(e,t,r){return t=mM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mM(e){var t=bM(e,"string");return Dn(t)=="symbol"?t:t+""}function bM(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 xM(e,t){if(e==null)return{};var r=wM(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wM(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,t){var r=e.x,n=e.y,a=xM(e,yM),i="".concat(r),o=parseInt(i,10),s="".concat(n),u=parseInt(s,10),c="".concat(t.height||a.height),f=parseInt(c,10),l="".concat(t.width||a.width),d=parseInt(l,10);return Qr(Qr(Qr(Qr(Qr({},t),a),o?{x:o}:{}),u?{y:u}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function Mg(e){return j.createElement($E,wl({shapeType:"rectangle",propTransformer:_M,activeClassName:"recharts-active-bar"},e))}var OM=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,a){if(typeof t=="number")return t;var i=F(n)||d1(n);return i?t(n,a):(i||Qt(),r)}},SM=["value","background"],j0;function Ar(e){"@babel/helpers - typeof";return Ar=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},Ar(e)}function PM(e,t){if(e==null)return{};var r=AM(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AM(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 Ga(){return Ga=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},Ga.apply(this,arguments)}function Cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?Cg(Object(r),!0).forEach(function(n){At(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 TM(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,E0(n.key),n)}}function jM(e,t,r){return t&&Ng(e.prototype,t),r&&Ng(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function IM(e,t,r){return t=Xa(t),EM(e,I0()?Reflect.construct(t,r||[],Xa(e).constructor):t.apply(e,r))}function EM(e,t){if(t&&(Ar(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MM(e)}function MM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I0=function(){return!!e})()}function Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xa(e)}function CM(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&&_l(e,t)}function _l(e,t){return _l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},_l(e,t)}function At(e,t,r){return t=E0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E0(e){var t=NM(e,"string");return Ar(t)=="symbol"?t:t+""}function NM(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var It=(function(e){function t(){var r;TM(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=IM(this,t,[].concat(a)),At(r,"state",{isAnimationFinished:!1}),At(r,"id",zn("recharts-bar-")),At(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),At(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return CM(t,e),jM(t,[{key:"renderRectanglesStatically",value:function(n){var a=this,i=this.props,o=i.shape,s=i.dataKey,u=i.activeIndex,c=i.activeBar,f=Q(this.props,!1);return n&&n.map(function(l,d){var h=d===u,y=h?c:o,v=ge(ge(ge({},f),l),{},{isActive:h,option:y,index:d,dataKey:s,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return j.createElement(de,Ga({className:"recharts-bar-rectangle"},ha(a.props,l,d),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(d)}),j.createElement(Mg,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,a=this.props,i=a.data,o=a.layout,s=a.isAnimationActive,u=a.animationBegin,c=a.animationDuration,f=a.animationEasing,l=a.animationId,d=this.state.prevData;return j.createElement(pr,{begin:u,duration:c,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var y=h.t,v=i.map(function(p,w){var b=d&&d[w];if(b){var x=We(b.x,p.x),_=We(b.y,p.y),g=We(b.width,p.width),m=We(b.height,p.height);return ge(ge({},p),{},{x:x(y),y:_(y),width:g(y),height:m(y)})}if(o==="horizontal"){var O=We(0,p.height),P=O(y);return ge(ge({},p),{},{y:p.y+p.height-P,height:P})}var T=We(0,p.width),C=T(y);return ge(ge({},p),{},{width:C})});return j.createElement(de,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,i=n.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!xn(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var n=this,a=this.props,i=a.data,o=a.dataKey,s=a.activeIndex,u=Q(this.props.background,!1);return i.map(function(c,f){c.value;var l=c.background,d=PM(c,SM);if(!l)return null;var h=ge(ge(ge(ge(ge({},d),{},{fill:"#eee"},l),u),ha(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return j.createElement(Mg,Ga({key:"background-bar-".concat(f),option:n.props.background,isActive:f===s},h))})}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,s=i.xAxis,u=i.yAxis,c=i.layout,f=i.children,l=et(f,Pi);if(!l)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,h=function(p,w){var b=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:b,errorVal:Le(p,w)}},y={clipPath:n?"url(#clipPath-".concat(a,")"):null};return j.createElement(de,y,l.map(function(v){return j.cloneElement(v,{key:"error-bar-".concat(a,"-").concat(v.props.dataKey),data:o,xAxis:s,yAxis:u,layout:c,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,a=n.hide,i=n.data,o=n.className,s=n.xAxis,u=n.yAxis,c=n.left,f=n.top,l=n.width,d=n.height,h=n.isAnimationActive,y=n.background,v=n.id;if(a||!i||!i.length)return null;var p=this.state.isAnimationFinished,w=te("recharts-bar",o),b=s&&s.allowDataOverflow,x=u&&u.allowDataOverflow,_=b||x,g=J(v)?this.id:v;return j.createElement(de,{className:w},b||x?j.createElement("defs",null,j.createElement("clipPath",{id:"clipPath-".concat(g)},j.createElement("rect",{x:b?c:c-l/2,y:x?f:f-d/2,width:b?l:l*2,height:x?d:d*2}))):null,j.createElement(de,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,g),(!h||p)&&jt.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:a.curData}:n.data!==a.curData?{curData:n.data}:null}}])})(B.PureComponent);j0=It;At(It,"displayName","Bar");At(It,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Br.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});At(It,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,s=e.xAxisTicks,u=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,h=Mj(n,r);if(!h)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?ge(ge({},v),r.props):r.props,w=p.dataKey,b=p.children,x=p.minPointSize,_=y==="horizontal"?o:i,g=c?_.scale.domain():null,m=Lj({numericAxis:_}),O=et(b,cf),P=l.map(function(T,C){var A,E,M,$,N,R;c?A=Cj(c[f+C],g):(A=Le(T,w),Array.isArray(A)||(A=[m,A]));var D=OM(x,j0.defaultProps.minPointSize)(A[1],C);if(y==="horizontal"){var K,z=[o.scale(A[0]),o.scale(A[1])],G=z[0],I=z[1];E=Dy({axis:i,ticks:s,bandSize:a,offset:h.offset,entry:T,index:C}),M=(K=I??G)!==null&&K!==void 0?K:void 0,$=h.size;var q=G-I;if(N=Number.isNaN(q)?0:q,R={x:E,y:o.y,width:$,height:o.height},Math.abs(D)>0&&Math.abs(N)<Math.abs(D)){var U=Je(N||D)*(Math.abs(D)-Math.abs(N));M-=U,N+=U}}else{var ne=[i.scale(A[0]),i.scale(A[1])],se=ne[0],fe=ne[1];if(E=se,M=Dy({axis:o,ticks:u,bandSize:a,offset:h.offset,entry:T,index:C}),$=fe-se,N=h.size,R={x:i.x,y:M,width:i.width,height:N},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var Me=Je($||D)*(Math.abs(D)-Math.abs($));$+=Me}}return ge(ge(ge({},T),{},{x:E,y:M,width:$,height:N,value:c?A:A[1],payload:T,background:R},O&&O[C]&&O[C].props),{},{tooltipPayload:[b0(r,T)],tooltipPosition:{x:E+$/2,y:M+N/2}})});return ge({data:P,layout:y},d)});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 $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,M0(n.key),n)}}function kM(e,t,r){return t&&$g(e.prototype,t),r&&$g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?kg(Object(r),!0).forEach(function(n){ji(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ji(e,t,r){return t=M0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M0(e){var t=RM(e,"string");return qn(t)=="symbol"?t:t+""}function RM(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 C0=function(t,r,n,a,i){var o=t.width,s=t.height,u=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:s-n.bottom,bottomMirror:s-n.bottom},d=!!De(c,It);return f.reduce(function(h,y){var v=r[y],p=v.orientation,w=v.domain,b=v.padding,x=b===void 0?{}:b,_=v.mirror,g=v.reversed,m="".concat(p).concat(_?"Mirror":""),O,P,T,C,A;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var E=w[1]-w[0],M=1/0,$=v.categoricalDomain.sort(v1);if($.forEach(function(ne,se){se>0&&(M=Math.min((ne||0)-($[se-1]||0),M))}),Number.isFinite(M)){var N=M/E,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(O=N*R/2),v.padding==="no-gap"){var D=Yt(t.barCategoryGap,N*R),K=N*R/2;O=K-D-(K-D)/R*D}}}a==="xAxis"?P=[n.left+(x.left||0)+(O||0),n.left+n.width-(x.right||0)-(O||0)]:a==="yAxis"?P=u==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(O||0),n.top+n.height-(x.bottom||0)-(O||0)]:P=v.range,g&&(P=[P[1],P[0]]);var z=Ij(v,i,d),G=z.scale,I=z.realScaleType;G.domain(w).range(P),Ej(G);var q=qj(G,Ze(Ze({},v),{},{realScaleType:I}));a==="xAxis"?(A=p==="top"&&!_||p==="bottom"&&_,T=n.left,C=l[m]-A*v.height):a==="yAxis"&&(A=p==="left"&&!_||p==="right"&&_,T=l[m]-A*v.width,C=n.top);var U=Ze(Ze(Ze({},v),q),{},{realScaleType:I,x:T,y:C,scale:G,width:a==="xAxis"?n.width:v.width,height:a==="yAxis"?n.height:v.height});return U.bandSize=qa(U,q),!v.hide&&a==="xAxis"?l[m]+=(A?-1:1)*U.height:v.hide||(l[m]+=(A?-1:1)*U.width),Ze(Ze({},h),{},ji({},y,U))},{})},N0=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},DM=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return N0({x:r,y:n},{x:a,y:i})},$0=(function(){function e(t){$M(this,e),this.scale=t}return kM(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]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(a){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}])})();ji($0,"EPS",1e-4);var Df=function(t){var r=Object.keys(t).reduce(function(n,a){return Ze(Ze({},n),{},ji({},a,$0.create(t[a])))},{});return Ze(Ze({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return fM(a,function(u,c){return r[c].apply(u,{bandAware:o,position:s})})},isInRange:function(a){return T0(a,function(i,o){return r[o].isInRange(i)})}})};function qM(e){return(e%180+180)%180}var LM=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=qM(a),o=i*Math.PI/180,s=Math.atan(n/r),u=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(u)},Oc,Rg;function BM(){if(Rg)return Oc;Rg=1;var e=Mt(),t=Wn(),r=hi();function n(a){return function(i,o,s){var u=Object(i);if(!t(i)){var c=e(o,3);i=r(i),o=function(l){return c(u[l],l,u)}}var f=a(i,o,s);return f>-1?u[c?i[f]:f]:void 0}}return Oc=n,Oc}var Sc,Dg;function KM(){if(Dg)return Sc;Dg=1;var e=O0();function t(r){var n=e(r),a=n%1;return n===n?a?n-a:n:0}return Sc=t,Sc}var Pc,qg;function FM(){if(qg)return Pc;qg=1;var e=eb(),t=Mt(),r=KM(),n=Math.max;function a(i,o,s){var u=i==null?0:i.length;if(!u)return-1;var c=s==null?0:r(s);return c<0&&(c=n(u+c,0)),e(i,t(o,3),c)}return Pc=a,Pc}var Ac,Lg;function zM(){if(Lg)return Ac;Lg=1;var e=BM(),t=FM(),r=e(t);return Ac=r,Ac}var WM=zM();const UM=ce(WM);var HM=ym();const GM=ce(HM);var XM=GM(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("")}),qf=B.createContext(void 0),Lf=B.createContext(void 0),k0=B.createContext(void 0),R0=B.createContext({}),D0=B.createContext(void 0),q0=B.createContext(0),L0=B.createContext(0),Bg=function(t){var r=t.state,n=r.xAxisMap,a=r.yAxisMap,i=r.offset,o=t.clipPathId,s=t.children,u=t.width,c=t.height,f=XM(i);return j.createElement(qf.Provider,{value:n},j.createElement(Lf.Provider,{value:a},j.createElement(R0.Provider,{value:i},j.createElement(k0.Provider,{value:f},j.createElement(D0.Provider,{value:o},j.createElement(q0.Provider,{value:c},j.createElement(L0.Provider,{value:u},s)))))))},VM=function(){return B.useContext(D0)},B0=function(t){var r=B.useContext(qf);r==null&&Qt();var n=r[t];return n==null&&Qt(),n},YM=function(){var t=B.useContext(qf);return St(t)},ZM=function(){var t=B.useContext(Lf),r=UM(t,function(n){return T0(n.domain,Number.isFinite)});return r||St(t)},K0=function(t){var r=B.useContext(Lf);r==null&&Qt();var n=r[t];return n==null&&Qt(),n},QM=function(){var t=B.useContext(k0);return t},JM=function(){return B.useContext(R0)},Bf=function(){return B.useContext(L0)},Kf=function(){return B.useContext(q0)};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 eC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tC(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,z0(n.key),n)}}function rC(e,t,r){return t&&tC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nC(e,t,r){return t=Va(t),aC(e,F0()?Reflect.construct(t,r||[],Va(e).constructor):t.apply(e,r))}function aC(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 iC(e)}function iC(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 Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}function oC(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&&Ol(e,t)}function Ol(e,t){return Ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ol(e,t)}function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){Ff(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ff(e,t,r){return t=z0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z0(e){var t=sC(e,"string");return Tr(t)=="symbol"?t:t+""}function sC(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)}function uC(e,t){return dC(e)||fC(e,t)||lC(e,t)||cC()}function cC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lC(e,t){if(e){if(typeof e=="string")return zg(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 zg(e,t)}}function zg(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 fC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,a=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function dC(e){if(Array.isArray(e))return e}function Sl(){return Sl=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},Sl.apply(this,arguments)}var hC=function(t,r){var n;return j.isValidElement(t)?n=j.cloneElement(t,r):Y(t)?n=t(r):n=j.createElement("line",Sl({},r,{className:"recharts-reference-line-line"})),n},pC=function(t,r,n,a,i,o,s,u,c){var f=i.x,l=i.y,d=i.width,h=i.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(it(c,"discard")&&!t.y.isInRange(v))return null;var p=[{x:f+d,y:v},{x:f,y:v}];return u==="left"?p.reverse():p}if(r){var w=c.x,b=t.x.apply(w,{position:o});if(it(c,"discard")&&!t.x.isInRange(b))return null;var x=[{x:b,y:l+h},{x:b,y:l}];return s==="top"?x.reverse():x}if(a){var _=c.segment,g=_.map(function(m){return t.apply(m,{position:o})});return it(c,"discard")&&sM(g,function(m){return!t.isInRange(m)})?null:g}return null};function vC(e){var t=e.x,r=e.y,n=e.segment,a=e.xAxisId,i=e.yAxisId,o=e.shape,s=e.className,u=e.alwaysShow,c=VM(),f=B0(a),l=K0(i),d=QM();if(!c||!d)return null;ht(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Df({x:f.scale,y:l.scale}),y=Oe(t),v=Oe(r),p=n&&n.length===2,w=pC(h,y,v,p,d,e.position,f.orientation,l.orientation,e);if(!w)return null;var b=uC(w,2),x=b[0],_=x.x,g=x.y,m=b[1],O=m.x,P=m.y,T=it(e,"hidden")?"url(#".concat(c,")"):void 0,C=Fg(Fg({clipPath:T},Q(e,!0)),{},{x1:_,y1:g,x2:O,y2:P});return j.createElement(de,{className:te("recharts-reference-line",s)},hC(o,C),Ie.renderCallByParent(e,DM({x1:_,y1:g,x2:O,y2:P})))}var zf=(function(e){function t(){return eC(this,t),nC(this,t,arguments)}return oC(t,e),rC(t,[{key:"render",value:function(){return j.createElement(vC,this.props)}}])})(j.Component);Ff(zf,"displayName","ReferenceLine");Ff(zf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Pl(){return Pl=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},Pl.apply(this,arguments)}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 Wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ug(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wg(Object(r),!0).forEach(function(n){Ii(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gC(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,U0(n.key),n)}}function mC(e,t,r){return t&&gC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bC(e,t,r){return t=Ya(t),xC(e,W0()?Reflect.construct(t,r||[],Ya(e).constructor):t.apply(e,r))}function xC(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 wC(e)}function wC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W0=function(){return!!e})()}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ya(e)}function _C(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&&Al(e,t)}function Al(e,t){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Al(e,t)}function Ii(e,t,r){return t=U0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U0(e){var t=OC(e,"string");return jr(t)=="symbol"?t:t+""}function OC(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)}var SC=function(t){var r=t.x,n=t.y,a=t.xAxis,i=t.yAxis,o=Df({x:a.scale,y:i.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return it(t,"discard")&&!o.isInRange(s)?null:s},Ei=(function(e){function t(){return yC(this,t),bC(this,t,arguments)}return _C(t,e),mC(t,[{key:"render",value:function(){var n=this.props,a=n.x,i=n.y,o=n.r,s=n.alwaysShow,u=n.clipPathId,c=Oe(a),f=Oe(i);if(ht(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=SC(this.props);if(!l)return null;var d=l.x,h=l.y,y=this.props,v=y.shape,p=y.className,w=it(this.props,"hidden")?"url(#".concat(u,")"):void 0,b=Ug(Ug({clipPath:w},Q(this.props,!0)),{},{cx:d,cy:h});return j.createElement(de,{className:te("recharts-reference-dot",p)},t.renderDot(v,b),Ie.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(j.Component);Ii(Ei,"displayName","ReferenceDot");Ii(Ei,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ii(Ei,"renderDot",function(e,t){var r;return j.isValidElement(e)?r=j.cloneElement(e,t):Y(e)?r=e(t):r=j.createElement(Rf,Pl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Tl(){return Tl=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},Tl.apply(this,arguments)}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 Hg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Gg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hg(Object(r),!0).forEach(function(n){Mi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AC(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,G0(n.key),n)}}function TC(e,t,r){return t&&AC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jC(e,t,r){return t=Za(t),IC(e,H0()?Reflect.construct(t,r||[],Za(e).constructor):t.apply(e,r))}function IC(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 EC(e)}function EC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H0=function(){return!!e})()}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Za(e)}function MC(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,a){return n.__proto__=a,n},jl(e,t)}function Mi(e,t,r){return t=G0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G0(e){var t=CC(e,"string");return Ir(t)=="symbol"?t:t+""}function CC(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 String(e)}var NC=function(t,r,n,a,i){var o=i.x1,s=i.x2,u=i.y1,c=i.y2,f=i.xAxis,l=i.yAxis;if(!f||!l)return null;var d=Df({x:f.scale,y:l.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(u,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:a?d.y.apply(c,{position:"end"}):d.y.rangeMax};return it(i,"discard")&&(!d.isInRange(h)||!d.isInRange(y))?null:N0(h,y)},Ci=(function(e){function t(){return PC(this,t),jC(this,t,arguments)}return MC(t,e),TC(t,[{key:"render",value:function(){var n=this.props,a=n.x1,i=n.x2,o=n.y1,s=n.y2,u=n.className,c=n.alwaysShow,f=n.clipPathId;ht(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Oe(a),d=Oe(i),h=Oe(o),y=Oe(s),v=this.props.shape;if(!l&&!d&&!h&&!y&&!v)return null;var p=NC(l,d,h,y,this.props);if(!p&&!v)return null;var w=it(this.props,"hidden")?"url(#".concat(f,")"):void 0;return j.createElement(de,{className:te("recharts-reference-area",u)},t.renderRect(v,Gg(Gg({clipPath:w},Q(this.props,!0)),p)),Ie.renderCallByParent(this.props,p))}}])})(j.Component);Mi(Ci,"displayName","ReferenceArea");Mi(Ci,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Mi(Ci,"renderRect",function(e,t){var r;return j.isValidElement(e)?r=j.cloneElement(e,t):Y(e)?r=e(t):r=j.createElement(kf,Tl({},t,{className:"recharts-reference-area-rect"})),r});function X0(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],a=0;a<e.length;a+=t)n.push(e[a]);return n}function $C(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return LM(n,r)}function kC(e,t,r){var n=r==="width",a=e.x,i=e.y,o=e.width,s=e.height;return t===1?{start:n?a:i,end:n?a+o:i+s}:{start:n?a+o:i+s,end:n?a:i}}function Qa(e,t,r,n,a){if(e*t<e*n||e*t>e*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function RC(e,t){return X0(e,t+1)}function DC(e,t,r,n,a){for(var i=(n||[]).slice(),o=t.start,s=t.end,u=0,c=1,f=o,l=function(){var y=n?.[u];if(y===void 0)return{v:X0(n,c)};var v=u,p,w=function(){return p===void 0&&(p=r(y,v)),p},b=y.coordinate,x=u===0||Qa(e,b,w,f,s);x||(u=0,f=o,c+=1),x&&(f=b+e*(w()/2+a),u+=c)},d;c<=i.length;)if(d=l(),d)return d.v;return[]}function Ln(e){"@babel/helpers - typeof";return Ln=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},Ln(e)}function Xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xg(Object(r),!0).forEach(function(n){qC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qC(e,t,r){return t=LC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LC(e){var t=BC(e,"string");return Ln(t)=="symbol"?t:t+""}function BC(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KC(e,t,r,n,a){for(var i=(n||[]).slice(),o=i.length,s=t.start,u=t.end,c=function(d){var h=i[d],y,v=function(){return y===void 0&&(y=r(h,d)),y};if(d===o-1){var p=e*(h.coordinate+e*v()/2-u);i[d]=h=je(je({},h),{},{tickCoord:p>0?h.coordinate-p*e:h.coordinate})}else i[d]=h=je(je({},h),{},{tickCoord:h.coordinate});var w=Qa(e,h.tickCoord,v,s,u);w&&(u=h.tickCoord-e*(v()/2+a),i[d]=je(je({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return i}function FC(e,t,r,n,a,i){var o=(n||[]).slice(),s=o.length,u=t.start,c=t.end;if(i){var f=n[s-1],l=r(f,s-1),d=e*(f.coordinate+e*l/2-c);o[s-1]=f=je(je({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var h=Qa(e,f.tickCoord,function(){return l},u,c);h&&(c=f.tickCoord-e*(l/2+a),o[s-1]=je(je({},f),{},{isShow:!0}))}for(var y=i?s-1:s,v=function(b){var x=o[b],_,g=function(){return _===void 0&&(_=r(x,b)),_};if(b===0){var m=e*(x.coordinate-e*g()/2-u);o[b]=x=je(je({},x),{},{tickCoord:m<0?x.coordinate-m*e:x.coordinate})}else o[b]=x=je(je({},x),{},{tickCoord:x.coordinate});var O=Qa(e,x.tickCoord,g,u,c);O&&(u=x.tickCoord+e*(g()/2+a),o[b]=je(je({},x),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function Wf(e,t,r){var n=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,s=e.orientation,u=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!a||!a.length||!n)return[];if(F(u)||Br.isSsr)return RC(a,typeof u=="number"&&F(u)?u:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",y=f&&h==="width"?nn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(x,_){var g=Y(c)?c(x.value,_):x.value;return h==="width"?$C(nn(g,{fontSize:t,letterSpacing:r}),y,l):nn(g,{fontSize:t,letterSpacing:r})[h]},p=a.length>=2?Je(a[1].coordinate-a[0].coordinate):1,w=kC(i,p,h);return u==="equidistantPreserveStart"?DC(p,w,v,a,o):(u==="preserveStart"||u==="preserveStartEnd"?d=FC(p,w,v,a,o,u==="preserveStartEnd"):d=KC(p,w,v,a,o),d.filter(function(b){return b.isShow}))}var zC=["viewBox"],WC=["viewBox"],UC=["ticks"];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 ur(){return ur=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},ur.apply(this,arguments)}function Vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vg(Object(r),!0).forEach(function(n){Uf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tc(e,t){if(e==null)return{};var r=HC(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HC(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 GC(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,Y0(n.key),n)}}function XC(e,t,r){return t&&Yg(e.prototype,t),r&&Yg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function VC(e,t,r){return t=Ja(t),YC(e,V0()?Reflect.construct(t,r||[],Ja(e).constructor):t.apply(e,r))}function YC(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 ZC(e)}function ZC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V0=function(){return!!e})()}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ja(e)}function QC(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&&Il(e,t)}function Il(e,t){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Il(e,t)}function Uf(e,t,r){return t=Y0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y0(e){var t=JC(e,"string");return Er(t)=="symbol"?t:t+""}function JC(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 Wr=(function(e){function t(r){var n;return GC(this,t),n=VC(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return QC(t,e),XC(t,[{key:"shouldComponentUpdate",value:function(n,a){var i=n.viewBox,o=Tc(n,zC),s=this.props,u=s.viewBox,c=Tc(s,WC);return!lr(i,u)||!lr(o,c)||!lr(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.x,o=a.y,s=a.width,u=a.height,c=a.orientation,f=a.tickSize,l=a.mirror,d=a.tickMargin,h,y,v,p,w,b,x=l?-1:1,_=n.tickSize||f,g=F(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=y=n.coordinate,p=o+ +!l*u,v=p-x*_,b=v-x*d,w=g;break;case"left":v=p=n.coordinate,y=i+ +!l*s,h=y-x*_,w=h-x*d,b=g;break;case"right":v=p=n.coordinate,y=i+ +l*s,h=y+x*_,w=h+x*d,b=g;break;default:h=y=n.coordinate,p=o+ +l*u,v=p+x*_,b=v+x*d,w=g;break}return{line:{x1:h,y1:v,x2:y,y2:p},tick:{x:w,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,s=n.height,u=n.orientation,c=n.mirror,f=n.axisLine,l=we(we(we({},Q(this.props,!1)),Q(f,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var d=+(u==="top"&&!c||u==="bottom"&&c);l=we(we({},l),{},{x1:a,y1:i+d*s,x2:a+o,y2:i+d*s})}else{var h=+(u==="left"&&!c||u==="right"&&c);l=we(we({},l),{},{x1:a+h*o,y1:i,x2:a+h*o,y2:i+s})}return j.createElement("line",ur({},l,{className:te("recharts-cartesian-axis-line",He(f,"className"))}))}},{key:"renderTicks",value:function(n,a,i){var o=this,s=this.props,u=s.tickLine,c=s.stroke,f=s.tick,l=s.tickFormatter,d=s.unit,h=Wf(we(we({},this.props),{},{ticks:n}),a,i),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=Q(this.props,!1),w=Q(f,!1),b=we(we({},p),{},{fill:"none"},Q(u,!1)),x=h.map(function(_,g){var m=o.getTickLineCoord(_),O=m.line,P=m.tick,T=we(we(we(we({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:c},w),P),{},{index:g,payload:_,visibleTicksCount:h.length,tickFormatter:l});return j.createElement(de,ur({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},ha(o.props,_,g)),u&&j.createElement("line",ur({},b,O,{className:te("recharts-cartesian-axis-tick-line",He(u,"className"))})),f&&t.renderTickItem(f,T,"".concat(Y(l)?l(_.value,g):_.value).concat(d||"")))});return j.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,a=this.props,i=a.axisLine,o=a.width,s=a.height,u=a.ticksGenerator,c=a.className,f=a.hide;if(f)return null;var l=this.props,d=l.ticks,h=Tc(l,UC),y=d;return Y(u)&&(y=d&&d.length>0?u(this.props):u(h)),o<=0||s<=0||!y||!y.length?null:j.createElement(de,{className:te("recharts-cartesian-axis",c),ref:function(p){n.layerReference=p}},i&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ie.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,i){var o,s=te(a.className,"recharts-cartesian-axis-tick-value");return j.isValidElement(n)?o=j.cloneElement(n,we(we({},a),{},{className:s})):Y(n)?o=n(we(we({},a),{},{className:s})):o=j.createElement(Sa,ur({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])})(B.Component);Uf(Wr,"displayName","CartesianAxis");Uf(Wr,"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 eN=["x1","y1","x2","y2","key"],tN=["offset"];function Jt(e){"@babel/helpers - typeof";return Jt=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},Jt(e)}function Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(r),!0).forEach(function(n){rN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rN(e,t,r){return t=nN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nN(e){var t=aN(e,"string");return Jt(t)=="symbol"?t:t+""}function aN(e,t){if(Jt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zt(){return zt=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},zt.apply(this,arguments)}function Qg(e,t){if(e==null)return{};var r=iN(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iN(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 oN=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,a=t.x,i=t.y,o=t.width,s=t.height,u=t.ry;return j.createElement("rect",{x:a,y:i,ry:u,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Z0(e,t){var r;if(j.isValidElement(e))r=j.cloneElement(e,t);else if(Y(e))r=e(t);else{var n=t.x1,a=t.y1,i=t.x2,o=t.y2,s=t.key,u=Qg(t,eN),c=Q(u,!1);c.offset;var f=Qg(c,tN);r=j.createElement("line",zt({},f,{x1:n,y1:a,x2:i,y2:o,fill:"none",key:s}))}return r}function sN(e){var t=e.x,r=e.width,n=e.horizontal,a=n===void 0?!0:n,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(s,u){var c=Ee(Ee({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(u),index:u});return Z0(a,c)});return j.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function uN(e){var t=e.y,r=e.height,n=e.vertical,a=n===void 0?!0:n,i=e.verticalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(s,u){var c=Ee(Ee({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(u),index:u});return Z0(a,c)});return j.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function cN(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,a=e.y,i=e.width,o=e.height,s=e.horizontalPoints,u=e.horizontal,c=u===void 0?!0:u;if(!c||!t||!t.length)return null;var f=s.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==f[0]&&f.unshift(0);var l=f.map(function(d,h){var y=!f[h+1],v=y?a+o-d:f[h+1]-d;if(v<=0)return null;var p=h%t.length;return j.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:v,width:i,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return j.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function lN(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,a=e.fillOpacity,i=e.x,o=e.y,s=e.width,u=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==f[0]&&f.unshift(0);var l=f.map(function(d,h){var y=!f[h+1],v=y?i+s-d:f[h+1]-d;if(v<=0)return null;var p=h%n.length;return j.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:v,height:u,stroke:"none",fill:n[p],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return j.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var fN=function(t,r){var n=t.xAxis,a=t.width,i=t.height,o=t.offset;return g0(Wf(Ee(Ee(Ee({},Wr.defaultProps),n),{},{ticks:ft(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.left,o.left+o.width,r)},dN=function(t,r){var n=t.yAxis,a=t.width,i=t.height,o=t.offset;return g0(Wf(Ee(Ee(Ee({},Wr.defaultProps),n),{},{ticks:ft(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.top,o.top+o.height,r)},or={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function la(e){var t,r,n,a,i,o,s=Bf(),u=Kf(),c=JM(),f=Ee(Ee({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:or.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:or.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:or.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:or.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:or.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:or.verticalFill,x:F(e.x)?e.x:c.left,y:F(e.y)?e.y:c.top,width:F(e.width)?e.width:c.width,height:F(e.height)?e.height:c.height}),l=f.x,d=f.y,h=f.width,y=f.height,v=f.syncWithTicks,p=f.horizontalValues,w=f.verticalValues,b=YM(),x=ZM();if(!F(h)||h<=0||!F(y)||y<=0||!F(l)||l!==+l||!F(d)||d!==+d)return null;var _=f.verticalCoordinatesGenerator||fN,g=f.horizontalCoordinatesGenerator||dN,m=f.horizontalPoints,O=f.verticalPoints;if((!m||!m.length)&&Y(g)){var P=p&&p.length,T=g({yAxis:x?Ee(Ee({},x),{},{ticks:P?p:x.ticks}):void 0,width:s,height:u,offset:c},P?!0:v);ht(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Jt(T),"]")),Array.isArray(T)&&(m=T)}if((!O||!O.length)&&Y(_)){var C=w&&w.length,A=_({xAxis:b?Ee(Ee({},b),{},{ticks:C?w:b.ticks}):void 0,width:s,height:u,offset:c},C?!0:v);ht(Array.isArray(A),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Jt(A),"]")),Array.isArray(A)&&(O=A)}return j.createElement("g",{className:"recharts-cartesian-grid"},j.createElement(oN,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),j.createElement(sN,zt({},f,{offset:c,horizontalPoints:m,xAxis:b,yAxis:x})),j.createElement(uN,zt({},f,{offset:c,verticalPoints:O,xAxis:b,yAxis:x})),j.createElement(cN,zt({},f,{horizontalPoints:m})),j.createElement(lN,zt({},f,{verticalPoints:O})))}la.displayName="CartesianGrid";var hN=["layout","type","stroke","connectNulls","isRange","ref"],pN=["key"],Q0;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 J0(e,t){if(e==null)return{};var r=vN(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vN(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 Wt(){return Wt=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},Wt.apply(this,arguments)}function Jg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jg(Object(r),!0).forEach(function(n){nt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function em(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,tx(n.key),n)}}function gN(e,t,r){return t&&em(e.prototype,t),r&&em(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mN(e,t,r){return t=ei(t),bN(e,ex()?Reflect.construct(t,r||[],ei(e).constructor):t.apply(e,r))}function bN(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 xN(e)}function xN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ex(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ex=function(){return!!e})()}function ei(e){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ei(e)}function wN(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&&El(e,t)}function El(e,t){return El=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},El(e,t)}function nt(e,t,r){return t=tx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tx(e){var t=_N(e,"string");return Mr(t)=="symbol"?t:t+""}function _N(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 $t=(function(e){function t(){var r;yN(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=mN(this,t,[].concat(a)),nt(r,"state",{isAnimationFinished:!0}),nt(r,"id",zn("recharts-area-")),nt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Y(o)&&o()}),nt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Y(o)&&o()}),r}return wN(t,e),gN(t,[{key:"renderDots",value:function(n,a,i){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var u=this.props,c=u.dot,f=u.points,l=u.dataKey,d=Q(this.props,!1),h=Q(c,!0),y=f.map(function(p,w){var b=_t(_t(_t({key:"dot-".concat(w),r:3},d),h),{},{index:w,cx:p.x,cy:p.y,dataKey:l,value:p.value,payload:p.payload,points:f});return t.renderDotItem(c,b)}),v={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return j.createElement(de,Wt({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var a=this.props,i=a.baseLine,o=a.points,s=a.strokeWidth,u=o[0].x,c=o[o.length-1].x,f=n*Math.abs(u-c),l=Pt(o.map(function(d){return d.y||0}));return F(i)&&typeof i=="number"?l=Math.max(i,l):i&&Array.isArray(i)&&i.length&&(l=Math.max(Pt(i.map(function(d){return d.y||0})),l)),F(l)?j.createElement("rect",{x:u<c?u:u-f,y:0,width:f,height:Math.floor(l+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var a=this.props,i=a.baseLine,o=a.points,s=a.strokeWidth,u=o[0].y,c=o[o.length-1].y,f=n*Math.abs(u-c),l=Pt(o.map(function(d){return d.x||0}));return F(i)&&typeof i=="number"?l=Math.max(i,l):i&&Array.isArray(i)&&i.length&&(l=Math.max(Pt(i.map(function(d){return d.x||0})),l)),F(l)?j.createElement("rect",{x:0,y:u<c?u:u-f,width:l+(s?parseInt("".concat(s),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,a,i,o){var s=this.props,u=s.layout,c=s.type,f=s.stroke,l=s.connectNulls,d=s.isRange;s.ref;var h=J0(s,hN);return j.createElement(de,{clipPath:i?"url(#clipPath-".concat(o,")"):null},j.createElement(sn,Wt({},Q(h,!0),{points:n,connectNulls:l,type:c,baseLine:a,layout:u,stroke:"none",className:"recharts-area-area"})),f!=="none"&&j.createElement(sn,Wt({},Q(this.props,!1),{className:"recharts-area-curve",layout:u,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&d&&j.createElement(sn,Wt({},Q(this.props,!1),{className:"recharts-area-curve",layout:u,type:c,connectNulls:l,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(n,a){var i=this,o=this.props,s=o.points,u=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,h=o.animationId,y=this.state,v=y.prevPoints,p=y.prevBaseLine;return j.createElement(pr,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var b=w.t;if(v){var x=v.length/s.length,_=s.map(function(P,T){var C=Math.floor(T*x);if(v[C]){var A=v[C],E=We(A.x,P.x),M=We(A.y,P.y);return _t(_t({},P),{},{x:E(b),y:M(b)})}return P}),g;if(F(u)&&typeof u=="number"){var m=We(p,u);g=m(b)}else if(J(u)||qr(u)){var O=We(p,0);g=O(b)}else g=u.map(function(P,T){var C=Math.floor(T*x);if(p[C]){var A=p[C],E=We(A.x,P.x),M=We(A.y,P.y);return _t(_t({},P),{},{x:E(b),y:M(b)})}return P});return i.renderAreaStatically(_,g,n,a)}return j.createElement(de,null,j.createElement("defs",null,j.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(b))),j.createElement(de,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(s,u,n,a)))})}},{key:"renderArea",value:function(n,a){var i=this.props,o=i.points,s=i.baseLine,u=i.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,d=c.totalLength;return u&&o&&o.length&&(!f&&d>0||!xn(f,o)||!xn(l,s))?this.renderAreaWithAnimation(n,a):this.renderAreaStatically(o,s,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,s=a.points,u=a.className,c=a.top,f=a.left,l=a.xAxis,d=a.yAxis,h=a.width,y=a.height,v=a.isAnimationActive,p=a.id;if(i||!s||!s.length)return null;var w=this.state.isAnimationFinished,b=s.length===1,x=te("recharts-area",u),_=l&&l.allowDataOverflow,g=d&&d.allowDataOverflow,m=_||g,O=J(p)?this.id:p,P=(n=Q(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=P.r,C=T===void 0?3:T,A=P.strokeWidth,E=A===void 0?2:A,M=S1(o)?o:{},$=M.clipDot,N=$===void 0?!0:$,R=C*2+E;return j.createElement(de,{className:x},_||g?j.createElement("defs",null,j.createElement("clipPath",{id:"clipPath-".concat(O)},j.createElement("rect",{x:_?f:f-h/2,y:g?c:c-y/2,width:_?h:h*2,height:g?y:y*2})),!N&&j.createElement("clipPath",{id:"clipPath-dots-".concat(O)},j.createElement("rect",{x:f-R/2,y:c-R/2,width:h+R,height:y+R}))):null,b?null:this.renderArea(m,O),(o||b)&&this.renderDots(m,N,O),(!v||w)&&jt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:n.points!==a.curPoints||n.baseLine!==a.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(B.PureComponent);Q0=$t;nt($t,"displayName","Area");nt($t,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Br.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});nt($t,"getBaseValue",function(e,t,r,n){var a=e.layout,i=e.baseValue,o=t.props.baseValue,s=o??i;if(F(s)&&typeof s=="number")return s;var u=a==="horizontal"?n:r,c=u.scale.domain();if(u.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return s==="dataMin"?l:s==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});nt($t,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,a=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,u=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,h=t.layout,y=c&&c.length,v=Q0.getBaseValue(t,r,n,a),p=h==="horizontal",w=!1,b=l.map(function(_,g){var m;y?m=c[f+g]:(m=Le(_,u),Array.isArray(m)?w=!0:m=[v,m]);var O=m[1]==null||y&&Le(_,u)==null;return p?{x:Ry({axis:n,ticks:i,bandSize:s,entry:_,index:g}),y:O?null:a.scale(m[1]),value:m,payload:_}:{x:O?null:n.scale(m[1]),y:Ry({axis:a,ticks:o,bandSize:s,entry:_,index:g}),value:m,payload:_}}),x;return y||w?x=b.map(function(_){var g=Array.isArray(_.value)?_.value[0]:null;return p?{x:_.x,y:g!=null&&_.y!=null?a.scale(g):null}:{x:g!=null?n.scale(g):null,y:_.y}}):x=p?a.scale(v):n.scale(v),_t({points:b,baseLine:x,layout:h,isRange:w},d)});nt($t,"renderDotItem",function(e,t){var r;if(j.isValidElement(e))r=j.cloneElement(e,t);else if(Y(e))r=e(t);else{var n=te("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=J0(t,pN);r=j.createElement(Rf,Wt({},i,{key:a,className:n}))}return r});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 ON(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SN(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 PN(e,t,r){return t&&SN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AN(e,t,r){return t=ti(t),TN(e,rx()?Reflect.construct(t,r||[],ti(e).constructor):t.apply(e,r))}function TN(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 jN(e)}function jN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rx=function(){return!!e})()}function ti(e){return ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ti(e)}function IN(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&&Ml(e,t)}function Ml(e,t){return Ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ml(e,t)}function nx(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 ax(e){var t=EN(e,"string");return Cr(t)=="symbol"?t:t+""}function EN(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)}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 MN(e){var t=e.xAxisId,r=Bf(),n=Kf(),a=B0(t);return a==null?null:B.createElement(Wr,Cl({},a,{className:te("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return ft(o,!0)}}))}var Gt=(function(e){function t(){return ON(this,t),AN(this,t,arguments)}return IN(t,e),PN(t,[{key:"render",value:function(){return B.createElement(MN,this.props)}}])})(B.Component);nx(Gt,"displayName","XAxis");nx(Gt,"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 Nr(e){"@babel/helpers - typeof";return Nr=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},Nr(e)}function CN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NN(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,sx(n.key),n)}}function $N(e,t,r){return t&&NN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kN(e,t,r){return t=ri(t),RN(e,ix()?Reflect.construct(t,r||[],ri(e).constructor):t.apply(e,r))}function RN(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DN(e)}function DN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ix(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ix=function(){return!!e})()}function ri(e){return ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ri(e)}function qN(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&&Nl(e,t)}function Nl(e,t){return Nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Nl(e,t)}function ox(e,t,r){return t=sx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sx(e){var t=LN(e,"string");return Nr(t)=="symbol"?t:t+""}function LN(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(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)}var BN=function(t){var r=t.yAxisId,n=Bf(),a=Kf(),i=K0(r);return i==null?null:B.createElement(Wr,$l({},i,{className:te("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(s){return ft(s,!0)}}))},Xt=(function(e){function t(){return CN(this,t),kN(this,t,arguments)}return qN(t,e),$N(t,[{key:"render",value:function(){return B.createElement(BN,this.props)}}])})(B.Component);ox(Xt,"displayName","YAxis");ox(Xt,"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 tm(e){return WN(e)||zN(e)||FN(e)||KN()}function KN(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 62In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FN(e,t){if(e){if(typeof e=="string")return kl(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 kl(e,t)}}function zN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WN(e){if(Array.isArray(e))return kl(e)}function kl(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 Rl=function(t,r,n,a,i){var o=et(t,zf),s=et(t,Ei),u=[].concat(tm(o),tm(s)),c=et(t,Ci),f="".concat(a,"Id"),l=a[0],d=r;if(u.length&&(d=u.reduce(function(v,p){if(p.props[f]===n&&it(p.props,"extendDomain")&&F(p.props[l])){var w=p.props[l];return[Math.min(v[0],w),Math.max(v[1],w)]}return v},d)),c.length){var h="".concat(l,"1"),y="".concat(l,"2");d=c.reduce(function(v,p){if(p.props[f]===n&&it(p.props,"extendDomain")&&F(p.props[h])&&F(p.props[y])){var w=p.props[h],b=p.props[y];return[Math.min(v[0],w,b),Math.max(v[1],w,b)]}return v},d)}return i&&i.length&&(d=i.reduce(function(v,p){return F(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},d)),d},jc={exports:{}},rm;function UN(){return rm||(rm=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(u,c,f){this.fn=u,this.context=c,this.once=f||!1}function i(u,c,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new a(f,l||u,d),y=r?r+c:c;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],h]:u._events[y].push(h):(u._events[y]=h,u._eventsCount++),u}function o(u,c){--u._eventsCount===0?u._events=new n:delete u._events[c]}function s(){this._events=new n,this._eventsCount=0}s.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},s.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,h=l.length,y=new Array(h);d<h;d++)y[d]=l[d].fn;return y},s.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},s.prototype.emit=function(c,f,l,d,h,y){var v=r?r+c:c;if(!this._events[v])return!1;var p=this._events[v],w=arguments.length,b,x;if(p.fn){switch(p.once&&this.removeListener(c,p.fn,void 0,!0),w){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,d),!0;case 5:return p.fn.call(p.context,f,l,d,h),!0;case 6:return p.fn.call(p.context,f,l,d,h,y),!0}for(x=1,b=new Array(w-1);x<w;x++)b[x-1]=arguments[x];p.fn.apply(p.context,b)}else{var _=p.length,g;for(x=0;x<_;x++)switch(p[x].once&&this.removeListener(c,p[x].fn,void 0,!0),w){case 1:p[x].fn.call(p[x].context);break;case 2:p[x].fn.call(p[x].context,f);break;case 3:p[x].fn.call(p[x].context,f,l);break;case 4:p[x].fn.call(p[x].context,f,l,d);break;default:if(!b)for(g=1,b=new Array(w-1);g<w;g++)b[g-1]=arguments[g];p[x].fn.apply(p[x].context,b)}}return!0},s.prototype.on=function(c,f,l){return i(this,c,f,l,!1)},s.prototype.once=function(c,f,l){return i(this,c,f,l,!0)},s.prototype.removeListener=function(c,f,l,d){var h=r?r+c:c;if(!this._events[h])return this;if(!f)return o(this,h),this;var y=this._events[h];if(y.fn)y.fn===f&&(!d||y.once)&&(!l||y.context===l)&&o(this,h);else{for(var v=0,p=[],w=y.length;v<w;v++)(y[v].fn!==f||d&&!y[v].once||l&&y[v].context!==l)&&p.push(y[v]);p.length?this._events[h]=p.length===1?p[0]:p:o(this,h)}return this},s.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},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(jc)),jc.exports}var HN=UN();const GN=ce(HN);var Ic=new GN,Ec="recharts.syncMouseEvents";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 XN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VN(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,ux(n.key),n)}}function YN(e,t,r){return t&&VN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mc(e,t,r){return t=ux(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ux(e){var t=ZN(e,"string");return Bn(t)=="symbol"?t:t+""}function ZN(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 String(e)}var QN=(function(){function e(){XN(this,e),Mc(this,"activeIndex",0),Mc(this,"coordinateList",[]),Mc(this,"layout","horizontal")}return YN(e,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,i=a===void 0?null:a,o=r.container,s=o===void 0?null:o,u=r.layout,c=u===void 0?null:u,f=r.offset,l=f===void 0?null:f,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=h??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 a=this.container.getBoundingClientRect(),i=a.x,o=a.y,s=a.height,u=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=i+u+c,d=o+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])})();function JN(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],a=e?.[1];if(n&&a&&F(n)&&F(a))return!0}return!1}function e$(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function cx(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=Te(t,r,n,a),s=Te(t,r,n,i);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function t$(e,t,r){var n,a,i,o;if(e==="horizontal")n=t.x,i=n,a=r.top,o=r.top+r.height;else if(e==="vertical")a=t.y,o=a,n=r.left,i=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,u=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,d=Te(s,u,c,l),h=Te(s,u,f,l);n=d.x,a=d.y,i=h.x,o=h.y}else return cx(t);return[{x:n,y:a},{x:i,y:o}]}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 nm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function sa(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){r$(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 r$(e,t,r){return t=n$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n$(e){var t=a$(e,"string");return Kn(t)=="symbol"?t:t+""}function a$(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)}function i$(e){var t,r,n=e.element,a=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,s=e.activePayload,u=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!i||!o||d!=="ScatterChart"&&a!=="axis")return null;var y,v=sn;if(d==="ScatterChart")y=o,v=sE;else if(d==="BarChart")y=e$(l,o,u,f),v=kf;else if(l==="radial"){var p=cx(o),w=p.cx,b=p.cy,x=p.radius,_=p.startAngle,g=p.endAngle;y={cx:w,cy:b,startAngle:_,endAngle:g,innerRadius:x,outerRadius:x},v=_0}else y={points:t$(l,o,u)},v=sn;var m=sa(sa(sa(sa({stroke:"#ccc",pointerEvents:"none"},u),y),Q(h,!1)),{},{payload:s,payloadIndex:c,className:te("recharts-tooltip-cursor",h.className)});return B.isValidElement(h)?B.cloneElement(h,m):B.createElement(v,m)}var o$=["item"],s$=["children","className","width","height","style","compact","title","desc"];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 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 am(e,t){return l$(e)||c$(e,t)||fx(e,t)||u$()}function u$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 63In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,a=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function l$(e){if(Array.isArray(e))return e}function im(e,t){if(e==null)return{};var r=f$(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f$(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 d$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h$(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 p$(e,t,r){return t&&h$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v$(e,t,r){return t=ni(t),y$(e,lx()?Reflect.construct(t,r||[],ni(e).constructor):t.apply(e,r))}function y$(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 g$(e)}function g$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lx=function(){return!!e})()}function ni(e){return ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ni(e)}function m$(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,a){return n.__proto__=a,n},Dl(e,t)}function kr(e){return w$(e)||x$(e)||fx(e)||b$()}function b$(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 64In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fx(e,t){if(e){if(typeof e=="string")return ql(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 ql(e,t)}}function x$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function w$(e){if(Array.isArray(e))return ql(e)}function ql(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 om(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?om(Object(r),!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):om(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X(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=_$(e,"string");return $r(t)=="symbol"?t:t+""}function _$(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(t==="string"?String:Number)(e)}var O$={xAxis:["bottom","top"],yAxis:["left","right"]},S$={width:"100%",height:"100%"},hx={x:0,y:0};function ua(e){return e}var P$=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},A$=function(t,r,n,a){var i=r.find(function(f){return f&&f.index===n});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,s=a.radius;return k(k(k({},a),Te(a.cx,a.cy,s,o)),{},{angle:o,radius:s})}var u=i.coordinate,c=a.angle;return k(k(k({},a),Te(a.cx,a.cy,u,c)),{},{angle:c,radius:u})}return hx},Ni=function(t,r){var n=r.graphicalItems,a=r.dataStartIndex,i=r.dataEndIndex,o=(n??[]).reduce(function(s,u){var c=u.props.data;return c&&c.length?[].concat(kr(s),kr(c)):s},[]);return o.length>0?o:t&&t.length&&F(a)&&F(i)?t.slice(a,i+1):[]};function px(e){return e==="number"?[0,"auto"]:void 0}var Ll=function(t,r,n,a){var i=t.graphicalItems,o=t.tooltipAxis,s=Ni(r,t);return n<0||!i||!i.length||n>=s.length?null:i.reduce(function(u,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 h=l===void 0?s:l;d=fa(h,o.dataKey,a)}else d=l&&l[n]||s[n];return d?[].concat(kr(u),[b0(c,d)]):u},[])},sm=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=P$(i,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,f=Oj(o,s,c,u);if(f>=0&&c){var l=c[f]&&c[f].value,d=Ll(t,r,f,l),h=A$(n,s,f,i);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:h}}return null},T$=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,h=y0(f,i);return n.reduce(function(y,v){var p,w=v.type.defaultProps!==void 0?k(k({},v.type.defaultProps),v.props):v.props,b=w.type,x=w.dataKey,_=w.allowDataOverflow,g=w.allowDuplicatedCategory,m=w.scale,O=w.ticks,P=w.includeHidden,T=w[o];if(y[T])return y;var C=Ni(t.data,{graphicalItems:a.filter(function(q){var U,ne=o in q.props?q.props[o]:(U=q.type.defaultProps)===null||U===void 0?void 0:U[o];return ne===T}),dataStartIndex:u,dataEndIndex:c}),A=C.length,E,M,$;JN(w.domain,_,b)&&(E=hl(w.domain,null,_),h&&(b==="number"||m!=="auto")&&($=on(C,x,"category")));var N=px(b);if(!E||E.length===0){var R,D=(R=w.domain)!==null&&R!==void 0?R:N;if(x){if(E=on(C,x,b),b==="category"&&h){var K=p1(E);g&&K?(M=E,E=Wa(0,A)):g||(E=By(D,E,v).reduce(function(q,U){return q.indexOf(U)>=0?q:[].concat(kr(q),[U])},[]))}else if(b==="category")g?E=E.filter(function(q){return q!==""&&!J(q)}):E=By(D,E,v).reduce(function(q,U){return q.indexOf(U)>=0||U===""||J(U)?q:[].concat(kr(q),[U])},[]);else if(b==="number"){var z=jj(C,a.filter(function(q){var U,ne,se=o in q.props?q.props[o]:(U=q.type.defaultProps)===null||U===void 0?void 0:U[o],fe="hide"in q.props?q.props.hide:(ne=q.type.defaultProps)===null||ne===void 0?void 0:ne.hide;return se===T&&(P||!fe)}),x,i,f);z&&(E=z)}h&&(b==="number"||m!=="auto")&&($=on(C,x,"category"))}else h?E=Wa(0,A):s&&s[T]&&s[T].hasStack&&b==="number"?E=d==="expand"?[0,1]:m0(s[T].stackGroups,u,c):E=v0(C,a.filter(function(q){var U=o in q.props?q.props[o]:q.type.defaultProps[o],ne="hide"in q.props?q.props.hide:q.type.defaultProps.hide;return U===T&&(P||!ne)}),b,f,!0);if(b==="number")E=Rl(l,E,T,i,O),D&&(E=hl(D,E,_));else if(b==="category"&&D){var G=D,I=E.every(function(q){return G.indexOf(q)>=0});I&&(E=G)}}return k(k({},y),{},X({},T,k(k({},w),{},{axisType:i,domain:E,categoricalDomain:$,duplicateDomain:M,originalDomain:(p=w.domain)!==null&&p!==void 0?p:N,isCategorical:h,layout:f})))},{})},j$=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=Ni(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:c}),h=d.length,y=y0(f,i),v=-1;return n.reduce(function(p,w){var b=w.type.defaultProps!==void 0?k(k({},w.type.defaultProps),w.props):w.props,x=b[o],_=px("number");if(!p[x]){v++;var g;return y?g=Wa(0,h):s&&s[x]&&s[x].hasStack?(g=m0(s[x].stackGroups,u,c),g=Rl(l,g,x,i)):(g=hl(_,v0(d,n.filter(function(m){var O,P,T=o in m.props?m.props[o]:(O=m.type.defaultProps)===null||O===void 0?void 0:O[o],C="hide"in m.props?m.props.hide:(P=m.type.defaultProps)===null||P===void 0?void 0:P.hide;return T===x&&!C}),"number",f),a.defaultProps.allowDataOverflow),g=Rl(l,g,x,i)),k(k({},p),{},X({},x,k(k({axisType:i},a.defaultProps),{},{hide:!0,orientation:He(O$,"".concat(i,".").concat(v%2),null),domain:g,originalDomain:_,isCategorical:y,layout:f})))}return p},{})},I$=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(a,"Id"),d=et(f,i),h={};return d&&d.length?h=T$(t,{axes:d,graphicalItems:o,axisType:a,axisIdKey:l,stackGroups:s,dataStartIndex:u,dataEndIndex:c}):o&&o.length&&(h=j$(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:l,stackGroups:s,dataStartIndex:u,dataEndIndex:c})),h},E$=function(t){var r=St(t),n=ft(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:sf(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:qa(r,n)}},um=function(t){var r=t.children,n=t.defaultShowTooltip,a=De(r,Pr),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},M$=function(t){return!t||!t.length?!1:t.some(function(r){var n=dt(r&&r.type);return n&&n.indexOf("Bar")>=0})},cm=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"}},C$=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,s=t.yAxisMap,u=s===void 0?{}:s,c=n.width,f=n.height,l=n.children,d=n.margin||{},h=De(l,Pr),y=De(l,fr),v=Object.keys(u).reduce(function(g,m){var O=u[m],P=O.orientation;return!O.mirror&&!O.hide?k(k({},g),{},X({},P,g[P]+O.width)):g},{left:d.left||0,right:d.right||0}),p=Object.keys(o).reduce(function(g,m){var O=o[m],P=O.orientation;return!O.mirror&&!O.hide?k(k({},g),{},X({},P,He(g,"".concat(P))+O.height)):g},{top:d.top||0,bottom:d.bottom||0}),w=k(k({},p),v),b=w.bottom;h&&(w.bottom+=h.props.height||Pr.defaultProps.height),y&&r&&(w=Aj(w,a,n,r));var x=c-w.left-w.right,_=f-w.top-w.bottom;return k(k({brushBottom:b},w),{},{width:Math.max(x,0),height:Math.max(_,0)})},N$=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},vx=function(t){var r=t.chartName,n=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,u=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(w,b){var x=b.graphicalItems,_=b.stackGroups,g=b.offset,m=b.updateId,O=b.dataStartIndex,P=b.dataEndIndex,T=w.barSize,C=w.layout,A=w.barGap,E=w.barCategoryGap,M=w.maxBarSize,$=cm(C),N=$.numericAxisName,R=$.cateAxisName,D=M$(x),K=[];return x.forEach(function(z,G){var I=Ni(w.data,{graphicalItems:[z],dataStartIndex:O,dataEndIndex:P}),q=z.type.defaultProps!==void 0?k(k({},z.type.defaultProps),z.props):z.props,U=q.dataKey,ne=q.maxBarSize,se=q["".concat(N,"Id")],fe=q["".concat(R,"Id")],Me={},ye=u.reduce(function(kt,Rt){var $i=b["".concat(Rt.axisType,"Map")],Hf=q["".concat(Rt.axisType,"Id")];$i&&$i[Hf]||Rt.axisType==="zAxis"||Qt();var Gf=$i[Hf];return k(k({},kt),{},X(X({},Rt.axisType,Gf),"".concat(Rt.axisType,"Ticks"),ft(Gf)))},Me),W=ye[R],V=ye["".concat(R,"Ticks")],Z=_&&_[se]&&_[se].hasStack&&Bj(z,_[se].stackGroups),L=dt(z.type).indexOf("Bar")>=0,he=qa(W,V),ee=[],be=D&&Sj({barSize:T,stackGroups:_,totalSize:N$(ye,R)});if(L){var xe,Ne,wt=J(ne)?M:ne,nr=(xe=(Ne=qa(W,V,!0))!==null&&Ne!==void 0?Ne:wt)!==null&&xe!==void 0?xe:0;ee=Pj({barGap:A,barCategoryGap:E,bandSize:nr!==he?nr:he,sizeList:be[fe],maxBarSize:wt}),nr!==he&&(ee=ee.map(function(kt){return k(k({},kt),{},{position:k(k({},kt.position),{},{offset:kt.position.offset-nr/2})})}))}var Vn=z&&z.type&&z.type.getComposedData;Vn&&K.push({props:k(k({},Vn(k(k({},ye),{},{displayedData:I,props:w,dataKey:U,item:z,bandSize:he,barPosition:ee,offset:g,stackedData:Z,layout:C,dataStartIndex:O,dataEndIndex:P}))),{},X(X(X({key:z.key||"item-".concat(G)},N,ye[N]),R,ye[R]),"animationId",m)),childIndex:T1(z,w.children),item:z})}),K},h=function(w,b){var x=w.props,_=w.dataStartIndex,g=w.dataEndIndex,m=w.updateId;if(!eh({props:x}))return null;var O=x.children,P=x.layout,T=x.stackOffset,C=x.data,A=x.reverseStackOrder,E=cm(P),M=E.numericAxisName,$=E.cateAxisName,N=et(O,n),R=Dj(C,N,"".concat(M,"Id"),"".concat($,"Id"),T,A),D=u.reduce(function(q,U){var ne="".concat(U.axisType,"Map");return k(k({},q),{},X({},ne,I$(x,k(k({},U),{},{graphicalItems:N,stackGroups:U.axisType===M&&R,dataStartIndex:_,dataEndIndex:g}))))},{}),K=C$(k(k({},D),{},{props:x,graphicalItems:N}),b?.legendBBox);Object.keys(D).forEach(function(q){D[q]=f(x,D[q],K,q.replace("Map",""),r)});var z=D["".concat($,"Map")],G=E$(z),I=d(x,k(k({},D),{},{dataStartIndex:_,dataEndIndex:g,updateId:m,graphicalItems:N,stackGroups:R,offset:K}));return k(k({formattedGraphicalItems:I,graphicalItems:N,offset:K,stackGroups:R},G),D)},y=(function(p){function w(b){var x,_,g;return d$(this,w),g=v$(this,w,[b]),X(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),X(g,"accessibilityManager",new QN),X(g,"handleLegendBBoxUpdate",function(m){if(m){var O=g.state,P=O.dataStartIndex,T=O.dataEndIndex,C=O.updateId;g.setState(k({legendBBox:m},h({props:g.props,dataStartIndex:P,dataEndIndex:T,updateId:C},k(k({},g.state),{},{legendBBox:m}))))}}),X(g,"handleReceiveSyncEvent",function(m,O,P){if(g.props.syncId===m){if(P===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(O)}}),X(g,"handleBrushChange",function(m){var O=m.startIndex,P=m.endIndex;if(O!==g.state.dataStartIndex||P!==g.state.dataEndIndex){var T=g.state.updateId;g.setState(function(){return k({dataStartIndex:O,dataEndIndex:P},h({props:g.props,dataStartIndex:O,dataEndIndex:P,updateId:T},g.state))}),g.triggerSyncEvent({dataStartIndex:O,dataEndIndex:P})}}),X(g,"handleMouseEnter",function(m){var O=g.getMouseInfo(m);if(O){var P=k(k({},O),{},{isTooltipActive:!0});g.setState(P),g.triggerSyncEvent(P);var T=g.props.onMouseEnter;Y(T)&&T(P,m)}}),X(g,"triggeredAfterMouseMove",function(m){var O=g.getMouseInfo(m),P=O?k(k({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(P),g.triggerSyncEvent(P);var T=g.props.onMouseMove;Y(T)&&T(P,m)}),X(g,"handleItemMouseEnter",function(m){g.setState(function(){return{isTooltipActive:!0,activeItem:m,activePayload:m.tooltipPayload,activeCoordinate:m.tooltipPosition||{x:m.cx,y:m.cy}}})}),X(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),X(g,"handleMouseMove",function(m){m.persist(),g.throttleTriggeredAfterMouseMove(m)}),X(g,"handleMouseLeave",function(m){g.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};g.setState(O),g.triggerSyncEvent(O);var P=g.props.onMouseLeave;Y(P)&&P(O,m)}),X(g,"handleOuterEvent",function(m){var O=A1(m),P=He(g.props,"".concat(O));if(O&&Y(P)){var T,C;/.*touch.*/i.test(O)?C=g.getMouseInfo(m.changedTouches[0]):C=g.getMouseInfo(m),P((T=C)!==null&&T!==void 0?T:{},m)}}),X(g,"handleClick",function(m){var O=g.getMouseInfo(m);if(O){var P=k(k({},O),{},{isTooltipActive:!0});g.setState(P),g.triggerSyncEvent(P);var T=g.props.onClick;Y(T)&&T(P,m)}}),X(g,"handleMouseDown",function(m){var O=g.props.onMouseDown;if(Y(O)){var P=g.getMouseInfo(m);O(P,m)}}),X(g,"handleMouseUp",function(m){var O=g.props.onMouseUp;if(Y(O)){var P=g.getMouseInfo(m);O(P,m)}}),X(g,"handleTouchMove",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(m.changedTouches[0])}),X(g,"handleTouchStart",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseDown(m.changedTouches[0])}),X(g,"handleTouchEnd",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseUp(m.changedTouches[0])}),X(g,"handleDoubleClick",function(m){var O=g.props.onDoubleClick;if(Y(O)){var P=g.getMouseInfo(m);O(P,m)}}),X(g,"handleContextMenu",function(m){var O=g.props.onContextMenu;if(Y(O)){var P=g.getMouseInfo(m);O(P,m)}}),X(g,"triggerSyncEvent",function(m){g.props.syncId!==void 0&&Ic.emit(Ec,g.props.syncId,m,g.eventEmitterSymbol)}),X(g,"applySyncEvent",function(m){var O=g.props,P=O.layout,T=O.syncMethod,C=g.state.updateId,A=m.dataStartIndex,E=m.dataEndIndex;if(m.dataStartIndex!==void 0||m.dataEndIndex!==void 0)g.setState(k({dataStartIndex:A,dataEndIndex:E},h({props:g.props,dataStartIndex:A,dataEndIndex:E,updateId:C},g.state)));else if(m.activeTooltipIndex!==void 0){var M=m.chartX,$=m.chartY,N=m.activeTooltipIndex,R=g.state,D=R.offset,K=R.tooltipTicks;if(!D)return;if(typeof T=="function")N=T(K,m);else if(T==="value"){N=-1;for(var z=0;z<K.length;z++)if(K[z].value===m.activeLabel){N=z;break}}var G=k(k({},D),{},{x:D.left,y:D.top}),I=Math.min(M,G.x+G.width),q=Math.min($,G.y+G.height),U=K[N]&&K[N].value,ne=Ll(g.state,g.props.data,N),se=K[N]?{x:P==="horizontal"?K[N].coordinate:I,y:P==="horizontal"?q:K[N].coordinate}:hx;g.setState(k(k({},m),{},{activeLabel:U,activeCoordinate:se,activePayload:ne,activeTooltipIndex:N}))}else g.setState(m)}),X(g,"renderCursor",function(m){var O,P=g.state,T=P.isTooltipActive,C=P.activeCoordinate,A=P.activePayload,E=P.offset,M=P.activeTooltipIndex,$=P.tooltipAxisBandSize,N=g.getTooltipEventType(),R=(O=m.props.active)!==null&&O!==void 0?O:T,D=g.props.layout,K=m.key||"_recharts-cursor";return j.createElement(i$,{key:K,activeCoordinate:C,activePayload:A,activeTooltipIndex:M,chartName:r,element:m,isActive:R,layout:D,offset:E,tooltipAxisBandSize:$,tooltipEventType:N})}),X(g,"renderPolarAxis",function(m,O,P){var T=He(m,"type.axisType"),C=He(g.state,"".concat(T,"Map")),A=m.type.defaultProps,E=A!==void 0?k(k({},A),m.props):m.props,M=C&&C[E["".concat(T,"Id")]];return B.cloneElement(m,k(k({},M),{},{className:te(T,M.className),key:m.key||"".concat(O,"-").concat(P),ticks:ft(M,!0)}))}),X(g,"renderPolarGrid",function(m){var O=m.props,P=O.radialLines,T=O.polarAngles,C=O.polarRadius,A=g.state,E=A.radiusAxisMap,M=A.angleAxisMap,$=St(E),N=St(M),R=N.cx,D=N.cy,K=N.innerRadius,z=N.outerRadius;return B.cloneElement(m,{polarAngles:Array.isArray(T)?T:ft(N,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(C)?C:ft($,!0).map(function(G){return G.coordinate}),cx:R,cy:D,innerRadius:K,outerRadius:z,key:m.key||"polar-grid",radialLines:P})}),X(g,"renderLegend",function(){var m=g.state.formattedGraphicalItems,O=g.props,P=O.children,T=O.width,C=O.height,A=g.props.margin||{},E=T-(A.left||0)-(A.right||0),M=h0({children:P,formattedGraphicalItems:m,legendWidth:E,legendContent:c});if(!M)return null;var $=M.item,N=im(M,o$);return B.cloneElement($,k(k({},N),{},{chartWidth:T,chartHeight:C,margin:A,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),X(g,"renderTooltip",function(){var m,O=g.props,P=O.children,T=O.accessibilityLayer,C=De(P,ze);if(!C)return null;var A=g.state,E=A.isTooltipActive,M=A.activeCoordinate,$=A.activePayload,N=A.activeLabel,R=A.offset,D=(m=C.props.active)!==null&&m!==void 0?m:E;return B.cloneElement(C,{viewBox:k(k({},R),{},{x:R.left,y:R.top}),active:D,label:N,payload:D?$:[],coordinate:M,accessibilityLayer:T})}),X(g,"renderBrush",function(m){var O=g.props,P=O.margin,T=O.data,C=g.state,A=C.offset,E=C.dataStartIndex,M=C.dataEndIndex,$=C.updateId;return B.cloneElement(m,{key:m.key||"_recharts-brush",onChange:aa(g.handleBrushChange,m.props.onChange),data:T,x:F(m.props.x)?m.props.x:A.left,y:F(m.props.y)?m.props.y:A.top+A.height+A.brushBottom-(P.bottom||0),width:F(m.props.width)?m.props.width:A.width,startIndex:E,endIndex:M,updateId:"brush-".concat($)})}),X(g,"renderReferenceElement",function(m,O,P){if(!m)return null;var T=g,C=T.clipPathId,A=g.state,E=A.xAxisMap,M=A.yAxisMap,$=A.offset,N=m.type.defaultProps||{},R=m.props,D=R.xAxisId,K=D===void 0?N.xAxisId:D,z=R.yAxisId,G=z===void 0?N.yAxisId:z;return B.cloneElement(m,{key:m.key||"".concat(O,"-").concat(P),xAxis:E[K],yAxis:M[G],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:C})}),X(g,"renderActivePoints",function(m){var O=m.item,P=m.activePoint,T=m.basePoint,C=m.childIndex,A=m.isRange,E=[],M=O.props.key,$=O.item.type.defaultProps!==void 0?k(k({},O.item.type.defaultProps),O.item.props):O.item.props,N=$.activeDot,R=$.dataKey,D=k(k({index:C,dataKey:R,cx:P.x,cy:P.y,r:4,fill:$f(O.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},Q(N,!1)),da(N));return E.push(w.renderActiveDot(N,D,"".concat(M,"-activePoint-").concat(C))),T?E.push(w.renderActiveDot(N,k(k({},D),{},{cx:T.x,cy:T.y}),"".concat(M,"-basePoint-").concat(C))):A&&E.push(null),E}),X(g,"renderGraphicChild",function(m,O,P){var T=g.filterFormatItem(m,O,P);if(!T)return null;var C=g.getTooltipEventType(),A=g.state,E=A.isTooltipActive,M=A.tooltipAxis,$=A.activeTooltipIndex,N=A.activeLabel,R=g.props.children,D=De(R,ze),K=T.props,z=K.points,G=K.isRange,I=K.baseLine,q=T.item.type.defaultProps!==void 0?k(k({},T.item.type.defaultProps),T.item.props):T.item.props,U=q.activeDot,ne=q.hide,se=q.activeBar,fe=q.activeShape,Me=!!(!ne&&E&&D&&(U||se||fe)),ye={};C!=="axis"&&D&&D.props.trigger==="click"?ye={onClick:aa(g.handleItemMouseEnter,m.props.onClick)}:C!=="axis"&&(ye={onMouseLeave:aa(g.handleItemMouseLeave,m.props.onMouseLeave),onMouseEnter:aa(g.handleItemMouseEnter,m.props.onMouseEnter)});var W=B.cloneElement(m,k(k({},T.props),ye));function V(Rt){return typeof M.dataKey=="function"?M.dataKey(Rt.payload):null}if(Me)if($>=0){var Z,L;if(M.dataKey&&!M.allowDuplicatedCategory){var he=typeof M.dataKey=="function"?V:"payload.".concat(M.dataKey.toString());Z=fa(z,he,N),L=G&&I&&fa(I,he,N)}else Z=z?.[$],L=G&&I&&I[$];if(fe||se){var ee=m.props.activeIndex!==void 0?m.props.activeIndex:$;return[B.cloneElement(m,k(k(k({},T.props),ye),{},{activeIndex:ee})),null,null]}if(!J(Z))return[W].concat(kr(g.renderActivePoints({item:T,activePoint:Z,basePoint:L,childIndex:$,isRange:G})))}else{var be,xe=(be=g.getItemByXY(g.state.activeCoordinate))!==null&&be!==void 0?be:{graphicalItem:W},Ne=xe.graphicalItem,wt=Ne.item,nr=wt===void 0?m:wt,Vn=Ne.childIndex,kt=k(k(k({},T.props),ye),{},{activeIndex:Vn});return[B.cloneElement(nr,kt),null,null]}return G?[W,null,null]:[W,null]}),X(g,"renderCustomized",function(m,O,P){return B.cloneElement(m,k(k({key:"recharts-customized-".concat(P)},g.props),g.state))}),X(g,"renderMap",{CartesianGrid:{handler:ua,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:ua},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:ua},YAxis:{handler:ua},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((x=b.id)!==null&&x!==void 0?x:zn("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=hb(g.triggeredAfterMouseMove,(_=b.throttleDelay)!==null&&_!==void 0?_:1e3/60),g.state={},g}return m$(w,p),p$(w,[{key:"componentDidMount",value:function(){var x,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,_=x.children,g=x.data,m=x.height,O=x.layout,P=De(_,ze);if(P){var T=P.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,A=Ll(this.state,g,T,C),E=this.state.tooltipTicks[T].coordinate,M=(this.state.offset.top+m)/2,$=O==="horizontal",N=$?{x:E,y:M}:{y:E,x:M},R=this.state.formattedGraphicalItems.find(function(K){var z=K.item;return z.type.name==="Scatter"});R&&(N=k(k({},N),R.props.points[T].tooltipPosition),A=R.props.points[T].tooltipPayload);var D={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:C,activePayload:A,activeCoordinate:N};this.setState(D),this.renderCursor(P),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.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(x){kc([De(x.children,ze)],[De(this.props.children,ze)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=De(this.props.children,ze);if(x&&typeof x.props.shared=="boolean"){var _=x.props.shared?"axis":"item";return s.indexOf(_)>=0?_:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var _=this.container,g=_.getBoundingClientRect(),m=hS(g),O={chartX:Math.round(x.pageX-m.left),chartY:Math.round(x.pageY-m.top)},P=g.width/_.offsetWidth||1,T=this.inRange(O.chartX,O.chartY,P);if(!T)return null;var C=this.state,A=C.xAxisMap,E=C.yAxisMap,M=this.getTooltipEventType(),$=sm(this.state,this.props.data,this.props.layout,T);if(M!=="axis"&&A&&E){var N=St(A).scale,R=St(E).scale,D=N&&N.invert?N.invert(O.chartX):null,K=R&&R.invert?R.invert(O.chartY):null;return k(k({},O),{},{xValue:D,yValue:K},$)}return $?k(k({},O),$):null}},{key:"inRange",value:function(x,_){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,m=this.props.layout,O=x/g,P=_/g;if(m==="horizontal"||m==="vertical"){var T=this.state.offset,C=O>=T.left&&O<=T.left+T.width&&P>=T.top&&P<=T.top+T.height;return C?{x:O,y:P}:null}var A=this.state,E=A.angleAxisMap,M=A.radiusAxisMap;if(E&&M){var $=St(E);return zy({x:O,y:P},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,_=this.getTooltipEventType(),g=De(x,ze),m={};g&&_==="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 O=da(this.props,this.handleOuterEvent);return k(k({},O),m)}},{key:"addListener",value:function(){Ic.on(Ec,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ic.removeListener(Ec,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,_,g){for(var m=this.state.formattedGraphicalItems,O=0,P=m.length;O<P;O++){var T=m[O];if(T.item===x||T.props.key===x.key||_===dt(T.item.type)&&g===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,_=this.state.offset,g=_.left,m=_.top,O=_.height,P=_.width;return j.createElement("defs",null,j.createElement("clipPath",{id:x},j.createElement("rect",{x:g,y:m,height:O,width:P})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(_,g){var m=am(g,2),O=m[0],P=m[1];return k(k({},_),{},X({},O,P.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(_,g){var m=am(g,2),O=m[0],P=m[1];return k(k({},_),{},X({},O,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[x])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(x){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[x])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(x){var _=this.state,g=_.formattedGraphicalItems,m=_.activeItem;if(g&&g.length)for(var O=0,P=g.length;O<P;O++){var T=g[O],C=T.props,A=T.item,E=A.type.defaultProps!==void 0?k(k({},A.type.defaultProps),A.props):A.props,M=dt(A.type);if(M==="Bar"){var $=(C.data||[]).find(function(K){return ZI(x,K)});if($)return{graphicalItem:T,payload:$}}else if(M==="RadialBar"){var N=(C.data||[]).find(function(K){return zy(x,K)});if(N)return{graphicalItem:T,payload:N}}else if(Ai(T,m)||Ti(T,m)||kn(T,m)){var R=KE({graphicalItem:T,activeTooltipItem:m,itemData:E.data}),D=E.activeIndex===void 0?R:E.activeIndex;return{graphicalItem:k(k({},T),{},{childIndex:D}),payload:kn(T,m)?E.data[R]:T.props.data[R]}}}return null}},{key:"render",value:function(){var x=this;if(!eh(this))return null;var _=this.props,g=_.children,m=_.className,O=_.width,P=_.height,T=_.style,C=_.compact,A=_.title,E=_.desc,M=im(_,s$),$=Q(M,!1);if(C)return j.createElement(Bg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement(Dc,cr({},$,{width:O,height:P,title:A,desc:E}),this.renderClipPath(),rh(g,this.renderMap)));if(this.props.accessibilityLayer){var N,R;$.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,$.role=(R=this.props.role)!==null&&R!==void 0?R:"application",$.onKeyDown=function(K){x.accessibilityManager.keyboardEvent(K)},$.onFocus=function(){x.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return j.createElement(Bg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement("div",cr({className:te("recharts-wrapper",m),style:k({position:"relative",curs
64or:"default",width:O,height:P},T)},D,{ref:function(z){x.container=z}}),j.createElement(Dc,cr({},$,{width:O,height:P,title:A,desc:E,style:S$}),this.renderClipPath(),rh(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(B.Component);X(y,"displayName",r),X(y,"defaultProps",k({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),X(y,"getDerivedStateFromProps",function(p,w){var b=p.dataKey,x=p.data,_=p.children,g=p.width,m=p.height,O=p.layout,P=p.stackOffset,T=p.margin,C=w.dataStartIndex,A=w.dataEndIndex;if(w.updateId===void 0){var E=um(p);return k(k(k({},E),{},{updateId:0},h(k(k({props:p},E),{},{updateId:0}),w)),{},{prevDataKey:b,prevData:x,prevWidth:g,prevHeight:m,prevLayout:O,prevStackOffset:P,prevMargin:T,prevChildren:_})}if(b!==w.prevDataKey||x!==w.prevData||g!==w.prevWidth||m!==w.prevHeight||O!==w.prevLayout||P!==w.prevStackOffset||!lr(T,w.prevMargin)){var M=um(p),$={chartX:w.chartX,chartY:w.chartY,isTooltipActive:w.isTooltipActive},N=k(k({},sm(w,x,O)),{},{updateId:w.updateId+1}),R=k(k(k({},M),$),N);return k(k(k({},R),h(k({props:p},R),w)),{},{prevDataKey:b,prevData:x,prevWidth:g,prevHeight:m,prevLayout:O,prevStackOffset:P,prevMargin:T,prevChildren:_})}if(!kc(_,w.prevChildren)){var D,K,z,G,I=De(_,Pr),q=I&&(D=(K=I.props)===null||K===void 0?void 0:K.startIndex)!==null&&D!==void 0?D:C,U=I&&(z=(G=I.props)===null||G===void 0?void 0:G.endIndex)!==null&&z!==void 0?z:A,ne=q!==C||U!==A,se=!J(x),fe=se&&!ne?w.updateId:w.updateId+1;return k(k({updateId:fe},h(k(k({props:p},w),{},{updateId:fe,dataStartIndex:q,dataEndIndex:U}),w)),{},{prevChildren:_,dataStartIndex:q,dataEndIndex:U})}return null}),X(y,"renderActiveDot",function(p,w,b){var x;return B.isValidElement(p)?x=B.cloneElement(p,w):Y(p)?x=p(w):x=j.createElement(Rf,w),j.createElement(de,{className:"recharts-active-dot",key:b},x)});var v=B.forwardRef(function(w,b){return j.createElement(y,cr({},w,{ref:b}))});return v.displayName=y.displayName,v},lm=vx({chartName:"BarChart",GraphicalChild:It,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Gt},{axisType:"yAxis",AxisComp:Xt}],formatAxisMap:C0}),$$=vx({chartName:"AreaChart",GraphicalChild:$t,axisComponents:[{axisType:"xAxis",AxisComp:Gt},{axisType:"yAxis",AxisComp:Xt}],formatAxisMap:C0});const ve={green:{bg:"bg-emerald-50",text:"text-emerald-700",border:"border-emerald-200",badge:"bg-emerald-100 text-emerald-700",bar:"#10b981"},amber:{bg:"bg-amber-50",text:"text-amber-700",border:"border-amber-200",badge:"bg-amber-100 text-amber-700",bar:"#f59e0b"},red:{bg:"bg-red-50",text:"text-red-700",border:"border-red-200",badge:"bg-red-100 text-red-700",bar:"#ef4444"}};function fm(e,t,r){return e<=t?ve.green:e<=r?ve.amber:ve.red}function Cc(e){return e>=4?ve.green:e>=3?ve.amber:ve.red}function k$(e,t){if(t===0)return ve.amber;const r=e/t;return r>=.3?ve.green:r>=.1?ve.amber:ve.red}function R$(e){return e==="growing"?"bg-emerald-100 text-emerald-700":e==="declining"?"bg-red-100 text-red-700":e==="new"?"bg-blue-100 text-blue-700":"bg-gray-100 text-gray-600"}function D$(e){return e==="growing"?S.jsx(xx,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:40",className:"w-3 h-3"}):e==="declining"?S.jsx(Ax,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:41",className:"w-3 h-3"}):S.jsx(jx,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:42",className:"w-3 h-3"})}const rn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],q$=[2026,2027,2028,2029,2030],L$=[{label:"14 Days",value:"D14"},{label:"30 Days",value:"D30"},{label:"90 Days",value:"D90"},{label:"Custom Range",value:"custom"}];function B$(){const e=new Date().getFullYear(),t=[];for(let r=e+1;r>=2024;r-=1)for(let n=12;n>=1;n-=1){const a=`${r}-${String(n).padStart(2,"0")}`;t.push({value:a,label:`${rn[n-1]} ${r}`})}return t}const dm=B$();function K$({period:e,setPeriod:t,customFrom:r,setCustomFrom:n,customTo:a,setCustomTo:i}){return S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:78",className:"flex flex-wrap items-center gap-2",children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:79",className:"flex rounded-lg border border-border overflow-hidden text-sm",children:[L$.filter(o=>o.value!=="custom").map(o=>S.jsx("button",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:81",onClick:()=>
64t(o.value),className:`px-3 py-1.5 transition-colors ${e===o.value?"bg-[oklch(0.37_0.30_264)] text-white font-medium":"bg-white text-foreground/70 hover:bg-muted"}`,children:o.label},o.value)),S.jsxs("button",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:89",onClick:()=>t("custom"),className:`px-3 py-1.5 flex items-center gap-1 transition-colors ${e==="custom"?"bg-[oklch(0.37_0.30_264)] text-white font-medium":"bg-white text-foreground/70 hover:bg-muted"}`,children:["Custom ",S.jsx(Px,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:93",className:"w-3 h-3"})]})]}),e==="custom"&&S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:97",className:"flex items-center gap-2 text-sm",children:[S.jsx("input",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:98",type:"date",value:r,onChange:o=>n(o.target.value),className:"border border-border rounded-md px-2 py-1.5 text-sm"}),S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:100",className:"text-muted-foreground",children:"to"}),S.jsx("input",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:101",type:"date",value:a,onChange:o=>i(o.target.value),className:"border border-border rounded-md px-2 py-1.5 text-sm"})]})]})}function ca({icon:e,label:t,value:r,sub:n,rag:a}){return S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:115",className:`rounded-xl border p-4 flex items-start gap-3 ${a.bg} ${a.border}`,children:[S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:116",className:`w-9 h-9 rounded-lg flex items-center justify-center flex-shrink-0 ${a.badge}`,children:S.jsx(e,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:117",className:"w-4 h-4"})}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:119",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:120",className:"text-xs text-muted-foreground mb-0.5",children:t}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:121",className:`text-xl font-bold ${a.text}`,children:r}),n&&S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:122",className:"text-xs text-muted-foreground mt-0.5",children:n})]})]})}function Jr({title:e,subtitle:t}){return S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:131",className:"mb-4",children:[S.jsx("h2",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:132",className:"text-base font-semibold text-foreground",children:e}),t&&S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:133",className:"text-xs text-muted-foreground mt-0.5",children:t})]})}function Ye({className:e=""}){return S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:140",className:`animate-pulse bg-muted rounded ${e}`})}
64function r2(){const[e,t]=B.useState("D30"),[r,n]=B.useState(""),[a,i]=B.useState(""),[o,s]=B.useState(2026),[u,c]=B.useState("secured"),[f,l]=B.useState("D30"),[d,h]=B.useState(""),[y,v]=B.useState(""),p=B.useMemo(()=>({period:e,...e==="custom"?{customFrom:r,customTo:a}:{}}),[e,r,a]),w=B.useMemo(()=>({period:f==="all"||f==="custom"?"D30":f,allTime:f==="all",...f==="custom"?{fromMonth:d,toMonth:y}:{}}),[f,d,y]),b=I=>{l(I),h(""),v("")},x=I=>{if(!I)return b("D30");l("custom"),h(I),v(q=>!q||q<I?I:q)},_=I=>{if(!I)return b("D30");l("custom"),v(I),h(q=>!q||q>I?I:q)},g=Ve.keyInsights.registrationKpis.useQuery(p,{staleTime:6e4}),m=Ve.keyInsights.registrationTrend.useQuery(p,{staleTime:6e4}),O=Ve.keyInsights.leadSourceBreakdown.useQuery(w,{staleTime:6e4}),P=Ve.keyInsights.courseVolumeRanking.useQuery({...p,limit:15},{staleTime:6e4}),T=Ve.keyInsights.courseRevenueRanking.useQuery({...p,limit:15},{staleTime:6e4}),C=Ve.keyInsights.courseEvaluationRanking.useQuery({limit:15},{staleTime:6e4}),A=Ve.keyInsights.repeatEnrolmentByCompany.useQuery({...p,limit:20},{staleTime:6e4}),E=Ve.keyInsights.courseLifecycle.useQuery(void 0,{staleTime:6e4}),M=Ve.keyInsights.trainerLeaderboard.useQuery({limit:10},{staleTime:6e4}),$=Ve.keyInsights.trainerCourseMatrix.useQuery(void 0,{staleTime:6e4}),N=Ve.keyInsights.courseManagerRevenue.useQuery({year:o,mode:u},{staleTime:6e4}),R=I=>new Intl.NumberFormat("en-SG",{style:"currency",currency:"SGD",maximumFractionDigits:0}).format(I),D=g.data,K=N.data,z=u==="secured"?"Secured Revenue":"Forecast Revenue",G=async()=>{if(!K)return;const I=await bx(()=>import("./xlsx-DGuHH-KN.js"),[]),q=u==="secured"?"securedRevenue":"forecastRevenue",U=K.managers.map(fe=>[fe.manager,...fe.months.map(Me=>Me[q]),u==="secured"?fe.securedTotal:fe.forecastTotal]),ne=I.utils.aoa_to_sheet([[`Course Manager Revenue Matrix â ${o}`],[`Mode: ${z}`],["Revenue is attributed to session completion month. JanâJul 2026 uses the approved historical baseline; Aug 2026 onward uses live TMS data."],[],["Course Manager",...rn,"Total"],...U,[],["Total",...rn.map((fe,Me)=>K.managers.reduce((ye,W)=>ye+W.months[Me][q],0)),u==="secured"?K.totals.securedRevenue:K.totals.forecastRevenue]]);ne["!cols"]=[{wch:20},...rn.map(()=>({wch:14})),{wch:16}];for(let fe=5;fe<=6+U.length;fe+=1)for(let Me=1;Me<=13;Me+=1){const ye=ne[I.utils.encode_cell({r:fe-1,c:Me})];ye&&typeof ye.v=="number"&&(ye.z='$#,##0;-$#,##0;"-"')}const se=I.utils.book_new();I.utils.book_append_sheet(se,ne,"Revenue Matrix"),I.writeFileXLSX(se,`Aventis_Course_Manager_Revenue_${o}_${u}.xlsx`)};return S.jsx(_x,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:240",title:"Key Insights",children:S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:241",className:"max-w-7xl mx-auto space-y-8",children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:244",className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:245",children:[S.jsx("h1",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:246",className:"text-xl font-bold text-foreground",children:"Key Insights"}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:247",className:"text-sm text-muted-foreground",children:"Analytics across registrations, courses, and trainers"})]}),S.jsx(K$,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:249",period:e,setPeriod:t,customFrom:r,setCustomFrom:n,customTo:a,setCustomTo:i})]}),S.jsxs("section",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:259",children:[S.jsx(Jr,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:260",title:"Registration & Revenue",subtitle:"Confirmed registrations and estimated gross revenue for the selected period"}),S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:266",className:"grid grid-cols-2 lg:grid-cols-4 gap-3 mb-6",children:g.isLoading?Array.from({length:4}).map((I,q)=>S.jsx(Ye,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:268",className:"h-24"},q)):D?S.jsxs(S.Fragment,{children:[S.jsx(ca,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:271",icon:yx,label:"Confirmed Registrations",value:D.confirmedRegistrations.toLocaleStr
64ing(),sub:"Confirmed status only",rag:D.confirmedRegistrations>=50?ve.green:D.confirmedRegistrations>=10?ve.amber:ve.red}),S.jsx(ca,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:278",icon:Tx,label:"Estimated Revenue",value:R(D.estimatedRevenue),sub:"Gross fee à confirmed regs",rag:D.estimatedRevenue>=5e4?ve.green:D.estimatedRevenue>=1e4?ve.amber:ve.red}),S.jsx(ca,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:285",icon:Ox,label:"Learner Cancellation Rate",value:`${D.cancellationRate}%`,sub:"Cancelled learner registrations ÷ (confirmed + cancelled)",rag:fm(D.cancellationRate,10,25)}),S.jsx(ca,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:292",icon:Sx,label:"No-Show Rate",value:`${D.noShowRate}%`,sub:"Absent ÷ total attendance records",rag:fm(D.noShowRate,10,20)})]}):S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:301",className:"col-span-4 text-sm text-muted-foreground",children:"No data available for this period."})}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:306",className:"bg-white rounded-xl border border-border p-4",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:307",className:"text-sm font-medium text-foreground mb-3",children:"Monthly Registration Trend"}),m.isLoading?S.jsx(Ye,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:309",className:"h-48"}):m.data&&m.data.length>0?S.jsx(Fu,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:311",width:"100%",height:220,children:S.jsxs($$,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:312",data:m.data,margin:{top:4,right:8,left:0,bottom:0},children:[S.jsx("defs",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:313",children:S.jsxs("linearGradient",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:314",id:"regGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[S.jsx("stop",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:315",offset:"5%",stopColor:"#0b00e4",stopOpacity:.15}),S.jsx("stop",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:316",offset:"95%",stopColor:"#0b00e4",stopOpacity:0})]})}),S.jsx(la,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:319",strokeDasharray:"3 3",stroke:"#f0f0f0"}),S.jsx(Gt,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:320",dataKey:"month",tick:{fontSize:11}}),S.jsx(Xt,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:321",tick:{fontSize:11}}),S.jsx(ze,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:322",formatter:(I,q)=>q==="revenue"?[R(I),"Est. Revenue"]:[I,"Registrations"]}),S.jsx($t,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:327",type:"monotone",dataKey:"registrations",stroke:"#0b00e4",strokeWidth:2,fill:"url(#regGrad)",name:"registrations"})]})}):S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:331",className:"text-sm text-muted-foreground py-8 text-center",children:"No registration data for this period."})]})]}),S.jsxs("section",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:337",children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:338",className:"flex flex-col gap-4 mb-4 xl:flex-row xl:items-end xl:justify-between",children:[S.jsx(Jr,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:339",title:"Course Manager Revenue",subtitle:"Annual estimated gross revenue attributed to the month each course session is completed."}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:343",className:"flex flex-wrap items-center gap-2",children:[S.jsx("label",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:344",className:"sr-only",htmlFor:"course-manager-revenue-year",children:"Revenue year"}),S.jsx("select",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:345",id:"course-manager-revenue-year",value:o,onChange:I=>s(Number(I.target.value)),className:"h-9 rounded-md border border-border bg-white px-3 text-sm font-medium text-foreground",children:q$.map(I=>S.jsx("option",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:351",value:I,children:I},I))}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:353",className:"flex overflow-hidden rounded-md border border-border bg-white",role:"group","aria-label":"Revenue view",children:[S.jsx("button",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:354",type:"button","aria-pressed":u==="secured",onClick:()=>c("secured"),className:`h-9 px-3 text-sm font-medium ${u==="secured"?"bg-[oklch(0.37_0.30_264)] text-white":"text-muted-foreground hover:bg-muted"}`,children:"Secured"}),S.jsx("button",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:362",type:"button","aria-pressed":u==="forecast",onClick:()=>c("forecast"),className:`h-9 border-l border-border px-3 text-sm font-medium ${u==="forecast"?"bg-[oklch(0.37_0.30_264)] text-white":"text-muted-foreground hover:bg-muted"}`,children:"Forecast"})]}),S.jsxs("button",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:371",type:"button",onClick:G,disabled:!K,className:"inline-flex h-9 items-center gap-1.5 rounded-md border border-[oklch(0.37_0.30_264)] bg-white px-3 text-sm font-medium text-[oklch(0.37_0.30_264)] hover:bg-blue-50 disabled:cursor-not-allowed disabled:opacity-50",children:[S.jsx(gx,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:377",className:"h-4 w-4"})," Export Excel"]})]})]}),N.isLoading?S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:383",className:"grid gap-3 md:grid-cols-2 xl:grid-cols-4",children:Array.from({length:4}).map((I,q)=>S.jsx(Ye,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:384",className:"h-[330px]"},q))}):K?S.jsxs(S.Fragment,{children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:388",className:"mb-4 grid grid-cols-1 gap-3 sm:grid-cols-3",children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:389",className:"rounded-xl border border-emerald-200 bg-emerald-50 p-4",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:390",className:"text-xs text-emerald-800",children:"Total Secured"}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:391",className:"mt-1 text-xl font-bold text-emerald-700",children:R(K.totals.securedRevenue)}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:392",className:"mt-1 text-[11px] text-emerald-800/75",children:"Confirmed + Full sessions"})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:394",className:"rounded-xl border border-blue-200 bg-blue-50 p-4",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:395",className:"text-xs text-blue-800",children:"Total Forecast"}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:396",className:"mt-1 text-xl font-bold text-blue-700",children:R(K.totals.forecastRevenue)}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:397",className:"mt-1 text-[11px] text-blue-800/75",children:"Secured plus pre-confirm enrolment"})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:399",className:"rounded-xl border border-amber-200 bg-amber-50 p-4",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:400",className:"text-xs text-amber-800",children:"Forecast Uplift"}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:401",className:"mt-1 text-xl font-bold text-amber-700",children:R(K.totals.forecastUplift)}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:402",className:"mt-1 text-[11px] text-amber-800/75",children:"Pre-confirm contribution only"})]})]}),S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:406",className:"grid gap-3 md:grid-cols-2 xl:grid-cols-4",children:K.managers.map(I=>{const q=u==="secured"?I.securedTotal:I.forecastTotal;return S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:410",className:"overflow-hidden rounded-xl border border-border bg-white",children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:411",className:"border-b border-border bg-slate-50 px-4 py-3",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:412",className:"text-sm font-semibold text-foreground",children:I.manager}),S.jsxs("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:413",className:"mt-0.5 text-[11px] text-muted-foreground",children:[z," · ",o]})]}),S.jsx("table",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:415",className:"w-full text-xs",children:S.jsxs("tbody",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:416",children:[I.months.map((U,ne)=>{const se=u==="secured"?U.securedRevenue:U.forecastRevenue;return S.jsxs("tr",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:420",className:"border-b border-border/50 last:border-b-0",children:[S.jsx("td",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:421",className:"px-4 py-1.5 text-muted-foreground",children:rn[ne]}),S.jsx("td",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:422",className:"px-4 py-1.5 text-right font-medium text-foreground",children:R(se)})]},U.month)}),S.jsxs("tr",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:426",className:"bg-slate-50",children:[S.jsx("td",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:427",className:"px-4 py-2 font-semibold text-foreground",children:"Total"}),S.jsx("td",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:428",className:"px-4 py-2 text-right font-bold text-[oklch(0.37_0.30_264)]",children:R(q)})]})]})})]},I.manager)})}),S.jsxs("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:436",className:"mt-3 text-xs text-muted-foreground",children:[o===2026?"JanâJul 2026 is the verified uploaded historical baseline. From Aug 2026 onward, amounts are calculated from live TMS registration and session data.":"Amounts are calculated from live TMS registration and session data."," ","Secured includes confirmed registrations in Confirmed or Full sessions; Forecast also includes active enrolment in Pre-confirm sessions."]})]}):S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:444",className:"rounded-xl border border-border bg-white py-10 text-center text-sm text-muted-foreground",children:"Course Manager revenue data is unavailable."})]}),S.jsxs("section",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:448",children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:449",className:"mb-4 flex flex-col gap-3 xl:flex-row xl:items-end xl:justify-between",children:[S.jsx(Jr,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:450",title:"Evaluation Lead Sources",subtitle:"Submitted course evaluations grouped by the learner-reported source; each evaluation response is counted once."}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:454",className:"flex flex-wrap items-center gap-2","aria-label":"Evaluation Lead Sources date filter",children:[S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:455",className:"flex overflow-hidden rounded-md border border-border bg-white",role:"group","aria-label":"Lead source date presets",children:[["D30","30 Days"],["MTD","This Month"],["YTD","Year to Date"],["all","All Time"]].map(([I,q])=>S.jsx("button",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:462",type:"button","aria-pressed":f===I,onClick:()=>b(I),className:`h-9 border-r border-border px-2.5 text-xs font-medium last:border-r-0 ${f===I?"bg-[oklch(0.37_0.30_264)] text-white":"text-muted-foreground hover:bg-muted"}`,children:q},I))}),S.jsx("label",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:473",className:"sr-only",htmlFor:"lead-source-from-month",children:"From Month"}),S.jsxs("select",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:474",id:"lead-source-from-month",value:d,onChange:I=>x(I.target.value),className:"h-9 rounded-md border border-border bg-white px-2 text-xs text-foreground",children:[S.jsx("option",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:480",value:"",children:"From month"}),dm.map(I=>S.jsx("option",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:481",value:I.value,children:I.label},I.value))]}),S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:483",className:"text-xs text-muted-foreground",children:"to"}),S.jsx("label",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:484",className:"sr-only",htmlFor:"lead-source-to-month",children:"To Month"}),S.jsxs("select",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:485",id:"lead-source-to-month",value:y,onChange:I=>_(I.target.value),className:"h-9 rounded-md border border-border bg-white px-2 text-xs text-foreground",children:[S.jsx("option",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:491",value:"",children:"To month"}),dm.map(I=>S.jsx("option",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:492",value:I.value,children:I.label},I.value))]})]})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:496",className:"bg-white rounded-xl border border-border p-4",children:[O.isLoading?S.jsx(Ye,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:498",className:"h-64"}):O.data&&O.data.length>0?S.jsx(Fu,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:500",width:"100%",height:Math.max(260,O.data.length*46
64),children:S.jsxs(lm,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:501",data:O.data,layout:"vertical",margin:{top:4,right:36,left:24,bottom:0},children:[S.jsx(la,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:502",strokeDasharray:"3 3",stroke:"#f0f0f0",horizontal:!1}),S.jsx(Gt,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:503",type:"number",allowDecimals:!1,tick:{fontSize:11}}),S.jsx(Xt,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:504",type:"category",dataKey:"source",width:190,tick:{fontSize:11}}),S.jsx(ze,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:505",formatter:(I,q,U)=>[`${I} evaluation response${I===1?"":"s"} (${U.payload.share}%)`,"Submitted evaluations"]}),S.jsx(It,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:506",dataKey:"responses",fill:"#0b00e4",radius:[0,4,4,0]})]})}):S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:510",className:"text-sm text-muted-foreground py-10 text-center",children:"No evaluation lead-source responses for this evaluation-submission date range yet."}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:512",className:"mt-3 text-xs text-muted-foreground",children:"This chart filters by course-evaluation submission date, which is when the lead source is captured."})]})]}),S.jsxs("section",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:519",children:[S.jsx(Jr,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:520",title:"Course Performance",subtitle:"Registration volume, revenue, evaluation scores, repeat enrolment, and course lifecycle"}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:526",className:"grid lg:grid-cols-2 gap-4 mb-4",children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:527",className:"bg-white rounded-xl border border-border p-4",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:528",className:"text-sm font-medium text-foreground mb-3",children:"Top Courses by Registration Volume"}),P.isLoading?S.jsx(Ye,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:530",className:"h-48"}):P.data&&P.data.length>0?S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:532",className:"space-y-2",children:P.data.slice(0,10).map((I,q)=>{const U=k$(I.last30Days,I.total);return S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:536",className:"flex items-center gap-2",children:[S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:537",className:"text-xs text-muted-foreground w-4 text-right",children:q+1}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:538",className:"flex-1 min-w-0",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:539",className:"text-xs font-medium truncate text-foreground",children:I.title}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:540",className:"text-[10px] text-muted-foreground",children:I.category})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:542",className:"text-right flex-shrink-0",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:543",className:"text-xs font-semibold text-foreground",children:I.total}),S.jsxs("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:544",className:`text-[10px] font-medium ${U.text}`,children:["+",I.last30Days," (30d)"]})]})]},I.courseId)})}):S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:551",className:"text-sm text-muted-foreground py-4 text-center",children:"No data for this period."})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:556",className:"bg-white rounded-xl border border-border p-4",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:557",className:"text-sm font-medium text-foreground mb-3",children:"Top Courses by Estimated Revenue"}),T.isLoading?S.jsx(Ye,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:559",className:"h-48"}):T.data&&T.data.length>0?S.jsx(Fu,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:561",width:"100%",height:260,children:S.jsxs(lm,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:562",data:T.data.slice(0,8),layout:"vertical",margin:{left:0,right:16,top:4,bottom:4},children:[S.jsx(la,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:563",strokeDasharray:"3 3",stroke:"#f0f0f0",horizontal:!1}),S.jsx(Gt,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:564",type:"number",tick:{fontSize:10}
64,tickFormatter:I=>`$${(I/1e3).toFixed(0)}k`}),S.jsx(Xt,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:565",type:"category",dataKey:"title",tick:{fontSize:10},width:120,tickFormatter:I=>I.length>20?I.slice(0,20)+"â¦":I}),S.jsx(ze,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:567",formatter:I=>[R(I),"Est. Revenue"]}),S.jsx(It,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:568",dataKey:"revenue",radius:[0,4,4,0],children:T.data.slice(0,8).map((I,q)=>S.jsx(cf,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:570",fill:q===0?ve.green.bar:q<=2?ve.amber.bar:"#94a3b8"},q))})]})}):S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:576",className:"text-sm text-muted-foreground py-4 text-center",children:"No data for this period."})]})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:582",className:"grid lg:grid-cols-2 gap-4 mb-4",children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:584",className:"bg-white rounded-xl border border-border p-4",children:[S.jsxs("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:585",className:"text-sm font-medium text-foreground mb-3",children:["Best Rated Courses ",S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:585",className:"text-[10px] text-muted-foreground font-normal",children:"(min 3 evaluations)"})]}),C.isLoading?S.jsx(Ye,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:587",className:"h-48"}):C.data&&C.data.length>0?S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:589",className:"space-y-2",children:C.data.slice(0,10).map((I,q)=>{const U=Cc(I.avgScore);return S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:593",className:"flex items-center gap-2",children:[S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:594",className:"text-xs text-muted-foreground w-4 text-right",children:q+1}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:595",className:"flex-1 min-w-0",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:596",className:"text-xs font-medium truncate text-foreground",children:I.title}),S.jsxs("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:597",className:"text-[10px] text-muted-foreground",children:[I.evalCount," evaluations"]})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:599",className:`flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-semibold ${U.badge}`,children:[S.jsx(ki,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:600",className:"w-3 h-3"}),I.avgScore.toFixed(1)]})]},I.courseId)})}):S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:608",className:"text-sm text-muted-foreground py-4 text-center",children:"No evaluation data yet."})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:613",className:"bg-white rounded-xl border border-border p-4",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:614",className:"text-sm font-medium text-foreground mb-1",children:"Course Lifecycle"}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:615",className:"text-[10px] text-muted-foreground mb-3",children:"Based on registration trend: last 3 months vs prior 3 months. â¥20% growth = Growing, â¤â20% = Declining."}),E.isLoading?S.jsx(Ye,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:617",className:"h-48"}):E.data&&E.data.length>0?S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:619",className:"space-y-1.5 max-h-64 overflow-y-auto pr-1",children:E.data.map(I=>S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:621",className:"flex items-center gap-2",children:[S.jsxs("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:622",className:`flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium flex-shrink-0 ${R$(I.lifecycle)}`,children:[D$(I.lifecycle),I.lifecycle.charAt(0).toUpperCase()+I.lifecycle.slice(1)]}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:626",className:"text-xs text-foreground truncate flex-1",children:I.title}),S.jsxs("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:627",className:"text-[10px] text-muted-foreground flex-shrink-0",children:[I.currPeriodRegs," regs"]})]},I.courseId))}):S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:632",className:"text-sm text-muted-foreground py-4 text-center",children:"No lifecycle data yet."})]})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:638",className:"bg-white rounded-xl border border-border p-4",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:639",className:"text-sm font-medium text-foreground mb-1",children:"Repeat Enrolment by Company"}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:640",className:"text-[10px] text-muted-foreground mb-3",children:"Companies with 2+ confirmed registrations in the selected period â a proxy for organisational account value."}),A.isLoading?S.jsx(Ye,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:642",className:"h-32"}):A.data&&A.data.length>0?S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:644",className:"overflow-x-auto",children:S.jsxs("table",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:645",className:"w-full text-xs",children:[S.jsx("thead",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:646",children:S.jsxs("tr",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:647",className:"border-b border-border text-muted-foreground",children:[S.jsx("th",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:648",className:"text-left py-2 pr-3 font-medium",children:"Company"}),S.jsx("th",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:649",className:"text-right py-2 px-3 font-medium",children:"Registrations"}),S.jsx("th",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:650",className:"text-right py-2 px-3 font-medium",children:"Distinct Courses"}),S.jsx("th",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:651",className:"text-right py-2 pl-3 font-medium",children:"Est. Revenue"})]})}),S.jsx("tbody",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:654",children:A.data.map((I,q)=>{const U=I.totalRegistrations>=10?ve.green:I.totalRegistrations>=5?ve.amber:ve.red;return S.jsxs("tr",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:658",className:"border-b border-border/50 hover:bg-muted/30 transition-colors",children:[S.jsx("td",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:659",className:"py-2 pr-3",children:S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:660",className:"flex items-center gap-1.5",children:[S.jsx(mx,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:661",className:"w-3 h-3 text-muted-foreground flex-shrink-0"}),S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:662",className:"font-medium text-foreground",children:I.company})]})}),S.jsx("td",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:665",className:"py-2 px-3 text-right",children:S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:666",className:`px-1.5 py-0.5 rounded text-[10px] font-semibold ${U.badge}`,children:I.totalRegistrations})}),S.jsx("td",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:668",className:"py-2 px-3 text-right text-muted-foreground",children:I.distinctCourses}),S.jsx("td",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:669",className:"py-2 pl-3 text-right font-medium text-foreground",children:R(I.estimatedRevenue)})]},q)})})]})}):S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:677",className:"text-sm text-muted-foreground py-4 text-center",children:"No repeat enrolment data for this period."})]})]}),S.jsxs("section",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:685",children:[S.jsx(Jr,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:686",title:"Trainer Insights",subtitle:"Trainer evaluation leaderboard and performance by course"}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:691",className:"grid lg:grid-cols-2 gap-4",children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:693",className:"bg-white rounded-xl border border-border p-4",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:694",className:"text-sm font-medium text-foreground mb-1",children:"Trainer Leaderboard"}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:695",className:"text-[10px] text-muted-foreground mb-3",children:"Ranked by average evaluation score (min 3 evaluations)"}),M.isLoading?S.jsx(Ye,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:697",className:"h-48"}):M.data&&M.data.length>0?S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:699",className:"space-y-2",children:M.data.map((I,q)=>{const U=Cc(I.avgRating);return S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:703",className:"flex items-center gap-2",children:[S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:704",className:`text-xs font-bold w-5 text-center flex-shrink-0 ${q===0?"text-amber-500":"text-muted-foreground"}`,children:q+1}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:707",className:"flex-1 min-w-0",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:708",className:"text-xs font-medium text-foreground truncate",children:I.name}),S.jsxs("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:709",className:"text-[10px] text-muted-foreground",children:[I.totalReviews," reviews"]})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:711",className:`flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-semibold ${U.badge}`,children:[S.jsx(ki,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:712",className:"w-3 h-3"}),I.avgRating.toFixed(2)]}),I.isFlagged&&S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:716",className:"text-[10px] bg-red-100 text-red-700 px-1.5 py-0.5 rounded font-medium",children:"Flagged"})]},I.trainerId)})}):S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:723",className:"text-sm text-muted-foreground py-4 text-center",children:"No trainer evaluation data yet."})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:728",className:"bg-white rounded-xl border border-border p-4",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:729",className:"text-sm font-medium text-foreground mb-1",children:"Trainer à Course Performance"}),S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:730",className:"text-[10px] text-muted-foreground mb-3",children:"Avg evaluation score per trainer per course (min 2 evaluations)"}),$.isLoading?S.jsx(Ye,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:732",className:"h-48"}):$.data&&$.data.matrix.length>0?S.jsx("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:734",className:"space-y-1.5 max-h-72 overflow-y-auto pr-1",children:$.data.matrix.slice(0,20).map((I,q)=>{const U=Cc(I.avgScore);return S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:738",className:"flex items-start gap-2",children:[S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:739",className:`flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-semibold flex-shrink-0 ${U.badge}`,children:[S.jsx(ki,{"data-loc":"client/src/pages/admin/KeyInsights.tsx:740",className:"w-2.5 h-2.5"}),I.avgScore.toFixed(1)]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:743",className:"min-w-0",children:[S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:744",className:"text-xs font-medium text-foreground truncate",children:I.trainerName}),S.jsxs("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:745",className:"text-[10px] text-muted-foreground truncate",children:[I.courseTitle," · ",I.evalCount," evals"]})]})]},q)})}):S.jsx("p",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:752",className:"text-sm text-muted-foreground py-4 text-center",children:"No trainer-course evaluation data yet."})]})]})]}),S.jsxs("div",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:759",className:"flex items-center gap-4 text-xs text-muted-foreground pb-4",children:[S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:760",className:"font-medium",children:"Colour guide:"}),S.jsxs("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:761",className:"flex items-center gap-1",children:[S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:761",className:"w-2.5 h-2.5 rounded-full bg-emerald-500 inline-block"})," Healthy"]}),S.jsxs("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:762",className:"flex items-center gap-1",children:[S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:762",className:"w-2.5 h-2.5 rounded-full bg-amber-400 inline-block"})," Normal / Watch"]}),S.jsxs("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:763",className:"flex items-center gap-1",children:[S.jsx("span",{"data-loc":"client/src/pages/admin/KeyInsights.tsx:763",className:"w-2.5 h-2.5 rounded-full bg-red-500
64inline-block"})," At Risk"]})]})]})})}export{r2 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.