import{g as t,r as e,c as r}from"./vendor-d03f97b3.js";import{_ as n,i as o,a as i,b as a,c as u,d as c,e as l,f as s,g as f}from"./isPlainObject-bf45ffc7.js";import{a6 as p}from"./ui-0c1fdf09.js";function h(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=h(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function d(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=h(t))&&(n&&(n+=" "),n+=e);return n}var y=n,v=o;var m=function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==y(t)},b=i,g=m,w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/;var O=function(t,e){if(b(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!g(t))||(x.test(t)||!w.test(t)||null!=e&&t in Object(e))};var j=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const S=t(j);var P=n,A=j;var E=function(t){if(!A(t))return!1;var e=P(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const k=t(E);var M,_=a["__core-js_shared__"],T=(M=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"";var C=function(t){return!!T&&T in t},D=Function.prototype.toString;var I=function(t){if(null!=t){try{return D.call(t)}catch(e){}try{return t+""}catch(e){}}return""},N=E,B=C,L=j,R=I,z=/^\[object .+?Constructor\]$/,U=Function.prototype,$=Object.prototype,F=U.toString,q=$.hasOwnProperty,W=RegExp("^"+F.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var X=function(t){return!(!L(t)||B(t))&&(N(t)?W:z).test(R(t))},H=function(t,e){return null==t?void 0:t[e]};var V=function(t,e){var r=H(t,e);return X(r)?r:void 0},G=V(Object,"create"),Y=G;var K=function(){this.__data__=Y?Y(null):{},this.size=0};var Z=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},J=G,Q=Object.prototype.hasOwnProperty;var tt=function(t){var e=this.__data__;if(J){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Q.call(e,t)?e[t]:void 0},et=G,rt=Object.prototype.hasOwnProperty;var nt=G;var ot=K,it=Z,at=tt,ut=function(t){var e=this.__data__;return et?void 0!==e[t]:rt.call(e,t)},ct=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=nt&&void 0===e?"__lodash_hash_undefined__":e,this};function lt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}lt.prototype.clear=ot,lt.prototype.delete=it,lt.prototype.get=at,lt.prototype.has=ut,lt.prototype.set=ct;var st=lt;var ft=function(){this.__data__=[],this.size=0};var pt=function(t,e){return t===e||t!=t&&e!=e},ht=pt;var dt=function(t,e){for(var r=t.length;r--;)if(ht(t[r][0],e))return r;return-1},yt=dt,vt=Array.prototype.splice;var mt=dt;var bt=dt;var gt=dt;var wt=ft,xt=function(t){var e=this.__data__,r=yt(e,t);return!(r<0)&&(r==e.length-1?e.pop():vt.call(e,r,1),--this.size,!0)},Ot=function(t){var e=this.__data__,r=mt(e,t);return r<0?void 0:e[r][1]},jt=function(t){return bt(this.__data__,t)>-1},St=function(t,e){var r=this.__data__,n=gt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Pt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Pt.prototype.clear=wt,Pt.prototype.delete=xt,Pt.prototype.get=Ot,Pt.prototype.has=jt,Pt.prototype.set=St;var At=Pt,Et=V(a,"Map"),kt=st,Mt=At,_t=Et;var Tt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Ct=function(t,e){var r=t.__data__;return Tt(e)?r["string"==typeof e?"string":"hash"]:r.map},Dt=Ct;var It=Ct;var Nt=Ct;var Bt=Ct;var Lt=function(){this.size=0,this.__data__={hash:new kt,map:new(_t||Mt),string:new kt}},Rt=function(t){var e=Dt(this,t).delete(t);return this.size-=e?1:0,e},zt=function(t){return It(this,t).get(t)},Ut=function(t){return Nt(this,t).has(t)},$t=function(t,e){var r=Bt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Ft(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ft.prototype.clear=Lt,Ft.prototype.delete=Rt,Ft.prototype.get=zt,Ft.prototype.has=Ut,Ft.prototype.set=$t;var qt=Ft,Wt=qt;function Xt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Xt.Cache||Wt),r}Xt.Cache=Wt;var Ht=Xt;const Vt=t(Ht);var Gt=Ht;var Yt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kt=/\\(\\)?/g,Zt=function(t){var e=Gt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Yt,(function(t,r,n,o){e.push(n?o.replace(Kt,"$1"):r||t)})),e}));var Jt=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},Qt=Jt,te=i,ee=m,re=u?u.prototype:void 0,ne=re?re.toString:void 0;var oe=function t(e){if("string"==typeof e)return e;if(te(e))return Qt(e,t)+"";if(ee(e))return ne?ne.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},ie=oe;var ae=function(t){return null==t?"":ie(t)},ue=i,ce=O,le=Zt,se=ae;var fe=function(t,e){return ue(t)?t:ce(t,e)?[t]:le(se(t))},pe=m;var he=function(t){if("string"==typeof t||pe(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},de=fe,ye=he;var ve=function(t,e){for(var r=0,n=(e=de(e,t)).length;null!=t&&r<n;)t=t[ye(e[r++])];return r&&r==n?t:void 0},me=ve;var be=function(t,e,r){var n=null==t?void 0:me(t,e);return void 0===n?r:n};const ge=t(be);const we=t((function(t){return null==t}));var xe,Oe={exports:{}},je={},Se=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Ae=Symbol.for("react.fragment"),Ee=Symbol.for("react.strict_mode"),ke=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),_e=Symbol.for("react.context"),Te=Symbol.for("react.server_context"),Ce=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Ie=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),Le=Symbol.for("react.offscreen");function Re(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case Se:switch(t=t.type){case Ae:case ke:case Ee:case De:case Ie:return t;default:switch(t=t&&t.$$typeof){case Te:case _e:case Ce:case Be:case Ne:case Me:return t;default:return e}}case Pe:return e}}}xe=Symbol.for("react.module.reference"),je.ContextConsumer=_e,je.ContextProvider=Me,je.Element=Se,je.ForwardRef=Ce,je.Fragment=Ae,je.Lazy=Be,je.Memo=Ne,je.Portal=Pe,je.Profiler=ke,je.StrictMode=Ee,je.Suspense=De,je.SuspenseList=Ie,je.isAsyncMode=function(){return!1},je.isConcurrentMode=function(){return!1},je.isContextConsumer=function(t){return Re(t)===_e},je.isContextProvider=function(t){return Re(t)===Me},je.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===Se},je.isForwardRef=function(t){return Re(t)===Ce},je.isFragment=function(t){return Re(t)===Ae},je.isLazy=function(t){return Re(t)===Be},je.isMemo=function(t){return Re(t)===Ne},je.isPortal=function(t){return Re(t)===Pe},je.isProfiler=function(t){return Re(t)===ke},je.isStrictMode=function(t){return Re(t)===Ee},je.isSuspense=function(t){return Re(t)===De},je.isSuspenseList=function(t){return Re(t)===Ie},je.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===Ae||t===ke||t===Ee||t===De||t===Ie||t===Le||"object"==typeof t&&null!==t&&(t.$$typeof===Be||t.$$typeof===Ne||t.$$typeof===Me||t.$$typeof===_e||t.$$typeof===Ce||t.$$typeof===xe||void 0!==t.getModuleId)},je.typeOf=Re,Oe.exports=je;var ze=Oe.exports,Ue=n,$e=o;var Fe=function(t){return"number"==typeof t||$e(t)&&"[object Number]"==Ue(t)};const qe=t(Fe);var We=Fe;const Xe=t((function(t){return We(t)&&t!=+t}));var He=function(t){return 0===t?0:t>0?1:-1},Ve=function(t){return c(t)&&t.indexOf("%")===t.length-1},Ge=function(t){return qe(t)&&!Xe(t)},Ye=function(t){return Ge(t)||c(t)},Ke=0,Ze=function(t){var e=++Ke;return"".concat(t||"").concat(e)},Je=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Ge(t)&&!c(t))return n;if(Ve(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return Xe(r)&&(r=n),o&&r>e&&(r=e),r},Qe=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},tr=function(t,e){return Ge(t)&&Ge(e)?function(r){return t+r*(e-t)}:function(){return e}};function er(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):ge(t,e))===r})):null}function rr(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function nr(t){return(nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var or=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],ir=["points","pathLength"],ar={svg:["viewBox","children"],polygon:ir,polyline:ir},ur=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],cr=function(t,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(e.isValidElement(t)&&(n=t.props),!S(n))return null;var o={};return Object.keys(n).forEach((function(t){ur.includes(t)&&(o[t]=r||function(e){return n[t](n,e)})})),o},lr=function(t,e,r){if(!S(t)||"object"!==nr(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];ur.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))})),n},sr=["children"],fr=["children"];function pr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function hr(t){return(hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var dr={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"},yr=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},vr=null,mr=null,br=function t(r){if(r===vr&&Array.isArray(mr))return mr;var n=[];return e.Children.forEach(r,(function(e){we(e)||(ze.isFragment(e)?n=n.concat(t(e.props.children)):n.push(e))})),mr=n,vr=r,n};function gr(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return yr(t)})):[yr(e)],br(t).forEach((function(t){var e=ge(t,"type.displayName")||ge(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function wr(t,e){var r=gr(t,e);return r&&r[0]}var xr=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!Ge(r)||r<=0||!Ge(n)||n<=0)},Or=["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"],jr=function(t,r,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var o=t;if(e.isValidElement(t)&&(o=t.props),!S(o))return null;var i={};return Object.keys(o).forEach((function(t){var e;(function(t,e,r,n){var o,i=null!==(o=null==ar?void 0:ar[n])&&void 0!==o?o:[];return e.startsWith("data-")||!k(t)&&(n&&i.includes(e)||or.includes(e))||r&&ur.includes(e)})(null===(e=o)||void 0===e?void 0:e[t],t,r,n)&&(i[t]=o[t])})),i},Sr=function t(r,n){if(r===n)return!0;var o=e.Children.count(r);if(o!==e.Children.count(n))return!1;if(0===o)return!0;if(1===o)return Pr(Array.isArray(r)?r[0]:r,Array.isArray(n)?n[0]:n);for(var i=0;i<o;i++){var a=r[i],u=n[i];if(Array.isArray(a)||Array.isArray(u)){if(!t(a,u))return!1}else if(!Pr(a,u))return!1}return!0},Pr=function(t,e){if(we(t)&&we(e))return!0;if(!we(t)&&!we(e)){var r=t.props||{},n=r.children,o=pr(r,sr),i=e.props||{},a=i.children,u=pr(i,fr);return n&&a?rr(o,u)&&Sr(n,a):!n&&!a&&rr(o,u)}return!1},Ar=function(t,e){var r=[],n={};return br(t).forEach((function(t,o){if(function(t){return t&&t.type&&c(t.type)&&Or.indexOf(t.type)>=0}(t))r.push(t);else if(t){var i=yr(t.type),a=e[i]||{},u=a.handler,l=a.once;if(u&&(!l||!n[i])){var s=u(t,i,o);r.push(s),n[i]=!0}}})),r},Er=["children","width","height","viewBox","className","style","title","desc"];function kr(){return kr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},kr.apply(this,arguments)}function Mr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function _r(t){var e=t.children,n=t.width,o=t.height,i=t.viewBox,a=t.className,u=t.style,c=t.title,l=t.desc,s=Mr(t,Er),f=i||{width:n,height:o,x:0,y:0},p=d("recharts-surface",a);return r.createElement("svg",kr({},jr(s,!0,"svg"),{className:p,width:n,height:o,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),r.createElement("title",null,c),r.createElement("desc",null,l),e)}var Tr=["children","className"];function Cr(){return Cr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cr.apply(this,arguments)}function Dr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Ir=r.forwardRef((function(t,e){var n=t.children,o=t.className,i=Dr(t,Tr),a=d("recharts-layer",o);return r.createElement("g",Cr({className:a},jr(i,!0),{ref:e}),n)})),Nr=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]};var Br=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i};var Lr=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Br(t,e,r)},Rr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var zr=function(t){return Rr.test(t)};var Ur=function(t){return t.split("")},$r="\\ud800-\\udfff",Fr="["+$r+"]",qr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Wr="\\ud83c[\\udffb-\\udfff]",Xr="[^"+$r+"]",Hr="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",Gr="(?:"+qr+"|"+Wr+")"+"?",Yr="[\\ufe0e\\ufe0f]?",Kr=Yr+Gr+("(?:\\u200d(?:"+[Xr,Hr,Vr].join("|")+")"+Yr+Gr+")*"),Zr="(?:"+[Xr+qr+"?",qr,Hr,Vr,Fr].join("|")+")",Jr=RegExp(Wr+"(?="+Wr+")|"+Zr+Kr,"g");var Qr=Ur,tn=zr,en=function(t){return t.match(Jr)||[]};var rn=Lr,nn=zr,on=function(t){return tn(t)?en(t):Qr(t)},an=ae;const un=t(function(t){return function(e){e=an(e);var r=nn(e)?on(e):void 0,n=r?r[0]:e.charAt(0),o=r?rn(r,1).join(""):e.slice(1);return n[t]()+o}}("toUpperCase"));function cn(t){return function(){return t}}const ln=Math.cos,sn=Math.sin,fn=Math.sqrt,pn=Math.PI,hn=2*pn,dn=Math.PI,yn=2*dn,vn=1e-6,mn=yn-vn;function bn(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class gn{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?bn:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return bn;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,u=r-t,c=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>vn)if(Math.abs(s*u-c*l)>vn&&o){let p=r-i,h=n-a,d=u*u+c*c,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),b=o*Math.tan((dn-Math.acos((d+f-y)/(2*v*m)))/2),g=b/m,w=b/v;Math.abs(g-1)>vn&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+w*u},${this._y1=e+w*c}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),u=r*Math.sin(n),c=t+a,l=e+u,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${c},${l}`:(Math.abs(this._x1-c)>vn||Math.abs(this._y1-l)>vn)&&this._append`L${c},${l}`,r&&(f<0&&(f=f%yn+yn),f>mn?this._append`A${r},${r},0,1,${s},${t-a},${e-u}A${r},${r},0,1,${s},${this._x1=c},${this._y1=l}`:f>vn&&this._append`A${r},${r},0,${+(f>=dn)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function wn(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new gn(e)}function xn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function On(t){this._context=t}function jn(t){return new On(t)}function Sn(t){return t[0]}function Pn(t){return t[1]}function An(t,e){var r=cn(!0),n=null,o=jn,i=null,a=wn(u);function u(u){var c,l,s,f=(u=xn(u)).length,p=!1;for(null==n&&(i=o(s=a())),c=0;c<=f;++c)!(c<f&&r(l=u[c],c,u))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,c,u),+e(l,c,u));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?Sn:cn(t),e="function"==typeof e?e:void 0===e?Pn:cn(e),u.x=function(e){return arguments.length?(t="function"==typeof e?e:cn(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:cn(+t),u):e},u.defined=function(t){return arguments.length?(r="function"==typeof t?t:cn(!!t),u):r},u.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),u):o},u.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),u):n},u}function En(t,e,r){var n=null,o=cn(!0),i=null,a=jn,u=null,c=wn(l);function l(l){var s,f,p,h,d,y=(l=xn(l)).length,v=!1,m=new Array(y),b=new Array(y);for(null==i&&(u=a(d=c())),s=0;s<=y;++s){if(!(s<y&&o(h=l[s],s,l))===v)if(v=!v)f=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=s-1;p>=f;--p)u.point(m[p],b[p]);u.lineEnd(),u.areaEnd()}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),u.point(n?+n(h,s,l):m[s],r?+r(h,s,l):b[s]))}if(d)return u=null,d+""||null}function s(){return An().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Sn:cn(+t),e="function"==typeof e?e:cn(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?Pn:cn(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:cn(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:cn(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:cn(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:cn(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:cn(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:cn(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:cn(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),l):i},l}On.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class kn{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}const Mn={draw(t,e){const r=fn(e/pn);t.moveTo(r,0),t.arc(0,0,r,0,hn)}},_n={draw(t,e){const r=fn(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Tn=fn(1/3),Cn=2*Tn,Dn={draw(t,e){const r=fn(e/Cn),n=r*Tn;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},In={draw(t,e){const r=fn(e),n=-r/2;t.rect(n,n,r,r)}},Nn=sn(pn/10)/sn(7*pn/10),Bn=sn(hn/10)*Nn,Ln=-ln(hn/10)*Nn,Rn={draw(t,e){const r=fn(.8908130915292852*e),n=Bn*r,o=Ln*r;t.moveTo(0,-r),t.lineTo(n,o);for(let i=1;i<5;++i){const e=hn*i/5,a=ln(e),u=sn(e);t.lineTo(u*r,-a*r),t.lineTo(a*n-u*o,u*n+a*o)}t.closePath()}},zn=fn(3),Un={draw(t,e){const r=-fn(e/(3*zn));t.moveTo(0,2*r),t.lineTo(-zn*r,-r),t.lineTo(zn*r,-r),t.closePath()}},$n=-.5,Fn=fn(3)/2,qn=1/fn(12),Wn=3*(qn/2+1),Xn={draw(t,e){const r=fn(e/Wn),n=r/2,o=r*qn,i=n,a=r*qn+r,u=-i,c=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(u,c),t.lineTo($n*n-Fn*o,Fn*n+$n*o),t.lineTo($n*i-Fn*a,Fn*i+$n*a),t.lineTo($n*u-Fn*c,Fn*u+$n*c),t.lineTo($n*n+Fn*o,$n*o-Fn*n),t.lineTo($n*i+Fn*a,$n*a-Fn*i),t.lineTo($n*u+Fn*c,$n*c-Fn*u),t.closePath()}};function Hn(){}function Vn(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Gn(t){this._context=t}function Yn(t){this._context=t}function Kn(t){this._context=t}function Zn(t){this._context=t}function Jn(t){return t<0?-1:1}function Qn(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),u=(i*o+a*n)/(n+o);return(Jn(i)+Jn(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function to(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function eo(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-n)/3;t._context.bezierCurveTo(n+u,o+u*e,i-u,a-u*r,i,a)}function ro(t){this._context=t}function no(t){this._context=new oo(t)}function oo(t){this._context=t}function io(t){this._context=t}function ao(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function uo(t,e){this._context=t,this._t=e}function co(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],u=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function lo(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function so(t,e){return t[e]}function fo(t){const e=[];return e.key=t,e}function po(t){return(po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Gn.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:Vn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Vn(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Yn.prototype={areaStart:Hn,areaEnd:Hn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Vn(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Vn(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Zn.prototype={areaStart:Hn,areaEnd:Hn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},ro.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:eo(this,this._t0,to(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,eo(this,to(this,r=Qn(this,t,e)),r);break;default:eo(this,this._t0,r=Qn(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(no.prototype=Object.create(ro.prototype)).point=function(t,e){ro.prototype.point.call(this,e,t)},oo.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},io.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=ao(t),o=ao(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},uo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var ho=["type","size","sizeType"];function yo(){return yo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yo.apply(this,arguments)}function vo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vo(Object(r),!0).forEach((function(e){bo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bo(t,e,r){var n;return n=function(t,e){if("object"!=po(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=po(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==po(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function go(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var wo={symbolCircle:Mn,symbolCross:_n,symbolDiamond:Dn,symbolSquare:In,symbolStar:Rn,symbolTriangle:Un,symbolWye:Xn},xo=Math.PI/180,Oo=function(t){var e,n,o=t.type,i=void 0===o?"circle":o,a=t.size,u=void 0===a?64:a,c=t.sizeType,l=void 0===c?"area":c,s=mo(mo({},go(t,ho)),{},{type:i,size:u,sizeType:l}),f=s.className,p=s.cx,h=s.cy,y=jr(s,!0);return p===+p&&h===+h&&u===+u?r.createElement("path",yo({},y,{className:d("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(h,")"),d:(e=function(t){var e="symbol".concat(un(t));return wo[e]||Mn}(i),n=function(t,e){let r=null,n=wn(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:cn(t||Mn),e="function"==typeof e?e:cn(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:cn(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:cn(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(e).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*xo;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(u,l,i)),n())})):null};function jo(t){return(jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function So(){return So=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},So.apply(this,arguments)}function Po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ao(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Co(n.key),n)}}function Eo(t,e,r){return e=Mo(e),function(t,e){if(e&&("object"===jo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ko()?Reflect.construct(e,r||[],Mo(t).constructor):e.apply(t,r))}function ko(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ko=function(){return!!t})()}function Mo(t){return(Mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _o(t,e){return(_o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function To(t,e,r){return(e=Co(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Co(t){var e=function(t,e){if("object"!=jo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==jo(e)?e:e+""}Oo.registerSymbol=function(t,e){wo["symbol".concat(un(t))]=e};var Do=32,Io=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Eo(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_o(t,e)}(t,e.PureComponent),n=t,o=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=16,o=Do/6,i=Do/3,a=t.inactive?e:t.color;if("plainline"===t.type)return r.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:Do,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return r.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(Do,"M").concat(2*i,",").concat(n,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===t.type)return r.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(Do,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(r.isValidElement(t.legendIcon)){var u=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Po(Object(r),!0).forEach((function(e){To(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete u.legendIcon,r.cloneElement(t.legendIcon,u)}return r.createElement(Oo,{fill:a,cx:n,cy:n,size:Do,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,o=e.iconSize,i=e.layout,a=e.formatter,u=e.inactiveColor,c={x:0,y:0,width:Do,height:Do},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(e,n){var i=e.formatter||a,f=d(To(To({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",e.inactive));if("none"===e.type)return null;var p=k(e.value)?null:e.value;Nr(!k(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var h=e.inactive?u:e.color;return r.createElement("li",So({className:f,style:l,key:"legend-item-".concat(n)},lr(t.props,e,n)),r.createElement(_r,{width:o,height:o,viewBox:c,style:s},t.renderIcon(e)),r.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},i?i(p,e,n):p))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,o=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?o:"left"};return r.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],o&&Ao(n.prototype,o),i&&Ao(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}();To(Io,"displayName","Legend"),To(Io,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var No=At;var Bo=At,Lo=Et,Ro=qt;var zo=At,Uo=function(){this.__data__=new No,this.size=0},$o=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Fo=function(t){return this.__data__.get(t)},qo=function(t){return this.__data__.has(t)},Wo=function(t,e){var r=this.__data__;if(r instanceof Bo){var n=r.__data__;if(!Lo||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Ro(n)}return r.set(t,e),this.size=r.size,this};function Xo(t){var e=this.__data__=new zo(t);this.size=e.size}Xo.prototype.clear=Uo,Xo.prototype.delete=$o,Xo.prototype.get=Fo,Xo.prototype.has=qo,Xo.prototype.set=Wo;var Ho=Xo;var Vo=qt,Go=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Yo=function(t){return this.__data__.has(t)};function Ko(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Vo;++e<r;)this.add(t[e])}Ko.prototype.add=Ko.prototype.push=Go,Ko.prototype.has=Yo;var Zo=Ko;var Jo=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var Qo=function(t,e){return t.has(e)},ti=Zo,ei=Jo,ri=Qo;var ni=function(t,e,r,n,o,i){var a=1&r,u=t.length,c=e.length;if(u!=c&&!(a&&c>u))return!1;var l=i.get(t),s=i.get(e);if(l&&s)return l==e&&s==t;var f=-1,p=!0,h=2&r?new ti:void 0;for(i.set(t,e),i.set(e,t);++f<u;){var d=t[f],y=e[f];if(n)var v=a?n(y,d,f,e,t,i):n(d,y,f,t,e,i);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!ei(e,(function(t,e){if(!ri(h,e)&&(d===t||o(d,t,r,n,i)))return h.push(e)}))){p=!1;break}}else if(d!==y&&!o(d,y,r,n,i)){p=!1;break}}return i.delete(t),i.delete(e),p};var oi=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},ii=a.Uint8Array,ai=pt,ui=ni,ci=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r},li=oi,si=u?u.prototype:void 0,fi=si?si.valueOf:void 0;var pi=function(t,e,r,n,o,i,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new ii(t),new ii(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ai(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=ci;case"[object Set]":var c=1&n;if(u||(u=li),t.size!=e.size&&!c)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=ui(u(t),u(e),n,o,i,a);return a.delete(t),s;case"[object Symbol]":if(fi)return fi.call(t)==fi.call(e)}return!1};var hi=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},di=hi,yi=i;var vi=function(t,e,r){var n=e(t);return yi(t)?n:di(n,r(t))};var mi=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i},bi=function(){return[]},gi=Object.prototype.propertyIsEnumerable,wi=Object.getOwnPropertySymbols,xi=wi?function(t){return null==t?[]:(t=Object(t),mi(wi(t),(function(e){return gi.call(t,e)})))}:bi;var Oi=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},ji=n,Si=o;var Pi,Ai,Ei,ki,Mi,_i,Ti,Ci,Di=function(t){return Si(t)&&"[object Arguments]"==ji(t)},Ii=o,Ni=Object.prototype,Bi=Ni.hasOwnProperty,Li=Ni.propertyIsEnumerable,Ri=Di(function(){return arguments}())?Di:function(t){return Ii(t)&&Bi.call(t,"callee")&&!Li.call(t,"callee")},zi={exports:{}};Pi=zi,Ei=a,ki=function(){return!1},Mi=(Ai=zi.exports)&&!Ai.nodeType&&Ai,_i=Mi&&Pi&&!Pi.nodeType&&Pi,Ti=_i&&_i.exports===Mi?Ei.Buffer:void 0,Ci=(Ti?Ti.isBuffer:void 0)||ki,Pi.exports=Ci;var Ui=zi.exports,$i=/^(?:0|[1-9]\d*)$/;var Fi=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&$i.test(t))&&t>-1&&t%1==0&&t<e};var qi=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Wi=n,Xi=qi,Hi=o,Vi={};Vi["[object Float32Array]"]=Vi["[object Float64Array]"]=Vi["[object Int8Array]"]=Vi["[object Int16Array]"]=Vi["[object Int32Array]"]=Vi["[object Uint8Array]"]=Vi["[object Uint8ClampedArray]"]=Vi["[object Uint16Array]"]=Vi["[object Uint32Array]"]=!0,Vi["[object Arguments]"]=Vi["[object Array]"]=Vi["[object ArrayBuffer]"]=Vi["[object Boolean]"]=Vi["[object DataView]"]=Vi["[object Date]"]=Vi["[object Error]"]=Vi["[object Function]"]=Vi["[object Map]"]=Vi["[object Number]"]=Vi["[object Object]"]=Vi["[object RegExp]"]=Vi["[object Set]"]=Vi["[object String]"]=Vi["[object WeakMap]"]=!1;var Gi=function(t){return Hi(t)&&Xi(t.length)&&!!Vi[Wi(t)]};var Yi=function(t){return function(e){return t(e)}},Ki={exports:{}};!function(t,e){var r=l,n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(e){}}();t.exports=a}(Ki,Ki.exports);var Zi=Ki.exports,Ji=Gi,Qi=Yi,ta=Zi&&Zi.isTypedArray,ea=ta?Qi(ta):Ji,ra=Oi,na=Ri,oa=i,ia=Ui,aa=Fi,ua=ea,ca=Object.prototype.hasOwnProperty;var la=function(t,e){var r=oa(t),n=!r&&na(t),o=!r&&!n&&ia(t),i=!r&&!n&&!o&&ua(t),a=r||n||o||i,u=a?ra(t.length,String):[],c=u.length;for(var l in t)!e&&!ca.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||aa(l,c))||u.push(l);return u},sa=Object.prototype;var fa=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||sa)},pa=s(Object.keys,Object),ha=fa,da=pa,ya=Object.prototype.hasOwnProperty;var va=E,ma=qi;var ba=function(t){return null!=t&&ma(t.length)&&!va(t)},ga=la,wa=function(t){if(!ha(t))return da(t);var e=[];for(var r in Object(t))ya.call(t,r)&&"constructor"!=r&&e.push(r);return e},xa=ba;var Oa=function(t){return xa(t)?ga(t):wa(t)},ja=vi,Sa=xi,Pa=Oa;var Aa=function(t){return ja(t,Pa,Sa)},Ea=Object.prototype.hasOwnProperty;var ka=function(t,e,r,n,o,i){var a=1&r,u=Aa(t),c=u.length;if(c!=Aa(e).length&&!a)return!1;for(var l=c;l--;){var s=u[l];if(!(a?s in e:Ea.call(e,s)))return!1}var f=i.get(t),p=i.get(e);if(f&&p)return f==e&&p==t;var h=!0;i.set(t,e),i.set(e,t);for(var d=a;++l<c;){var y=t[s=u[l]],v=e[s];if(n)var m=a?n(v,y,s,e,t,i):n(y,v,s,t,e,i);if(!(void 0===m?y===v||o(y,v,r,n,i):m)){h=!1;break}d||(d="constructor"==s)}if(h&&!d){var b=t.constructor,g=e.constructor;b==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(h=!1)}return i.delete(t),i.delete(e),h},Ma=V(a,"DataView"),_a=V(a,"Promise"),Ta=V(a,"Set"),Ca=Ma,Da=Et,Ia=_a,Na=Ta,Ba=V(a,"WeakMap"),La=n,Ra=I,za="[object Map]",Ua="[object Promise]",$a="[object Set]",Fa="[object WeakMap]",qa="[object DataView]",Wa=Ra(Ca),Xa=Ra(Da),Ha=Ra(Ia),Va=Ra(Na),Ga=Ra(Ba),Ya=La;(Ca&&Ya(new Ca(new ArrayBuffer(1)))!=qa||Da&&Ya(new Da)!=za||Ia&&Ya(Ia.resolve())!=Ua||Na&&Ya(new Na)!=$a||Ba&&Ya(new Ba)!=Fa)&&(Ya=function(t){var e=La(t),r="[object Object]"==e?t.constructor:void 0,n=r?Ra(r):"";if(n)switch(n){case Wa:return qa;case Xa:return za;case Ha:return Ua;case Va:return $a;case Ga:return Fa}return e});var Ka=Ho,Za=ni,Ja=pi,Qa=ka,tu=Ya,eu=i,ru=Ui,nu=ea,ou="[object Arguments]",iu="[object Array]",au="[object Object]",uu=Object.prototype.hasOwnProperty;var cu=function(t,e,r,n,o,i){var a=eu(t),u=eu(e),c=a?iu:tu(t),l=u?iu:tu(e),s=(c=c==ou?au:c)==au,f=(l=l==ou?au:l)==au,p=c==l;if(p&&ru(t)){if(!ru(e))return!1;a=!0,s=!1}if(p&&!s)return i||(i=new Ka),a||nu(t)?Za(t,e,r,n,o,i):Ja(t,e,c,r,n,o,i);if(!(1&r)){var h=s&&uu.call(t,"__wrapped__"),d=f&&uu.call(e,"__wrapped__");if(h||d){var y=h?t.value():t,v=d?e.value():e;return i||(i=new Ka),o(y,v,r,n,i)}}return!!p&&(i||(i=new Ka),Qa(t,e,r,n,o,i))},lu=o;var su=function t(e,r,n,o,i){return e===r||(null==e||null==r||!lu(e)&&!lu(r)?e!=e&&r!=r:cu(e,r,n,o,t,i))},fu=Ho,pu=su;var hu=j;var du=function(t){return t==t&&!hu(t)},yu=du,vu=Oa;var mu=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},bu=function(t,e,r,n){var o=r.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var u=r[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<i;){var c=(u=r[o])[0],l=t[c],s=u[1];if(a&&u[2]){if(void 0===l&&!(c in t))return!1}else{var f=new fu;if(n)var p=n(l,s,c,t,e,f);if(!(void 0===p?pu(s,l,3,n,f):p))return!1}}return!0},gu=function(t){for(var e=vu(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,yu(o)]}return e},wu=mu;var xu=fe,Ou=Ri,ju=i,Su=Fi,Pu=qi,Au=he;var Eu=function(t,e){return null!=t&&e in Object(t)},ku=function(t,e,r){for(var n=-1,o=(e=xu(e,t)).length,i=!1;++n<o;){var a=Au(e[n]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Pu(o)&&Su(a,o)&&(ju(t)||Ou(t))};var Mu=su,_u=be,Tu=function(t,e){return null!=t&&ku(t,e,Eu)},Cu=O,Du=du,Iu=mu,Nu=he;var Bu=function(t){return t};var Lu=ve;var Ru=function(t){return function(e){return null==e?void 0:e[t]}},zu=function(t){return function(e){return Lu(e,t)}},Uu=O,$u=he;var Fu=function(t){var e=gu(t);return 1==e.length&&e[0][2]?wu(e[0][0],e[0][1]):function(r){return r===t||bu(r,t,e)}},qu=function(t,e){return Cu(t)&&Du(e)?Iu(Nu(t),e):function(r){var n=_u(r,t);return void 0===n&&n===e?Tu(r,t):Mu(e,n,3)}},Wu=Bu,Xu=i,Hu=function(t){return Uu(t)?Ru($u(t)):zu(t)};var Vu=function(t){return"function"==typeof t?t:null==t?Wu:"object"==typeof t?Xu(t)?qu(t[0],t[1]):Fu(t):Hu(t)};var Gu=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1};var Yu=Gu,Ku=function(t){return t!=t},Zu=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1};var Ju=function(t,e,r){return e==e?Zu(t,e,r):Yu(t,Ku,r)};var Qu=function(t,e){return!!(null==t?0:t.length)&&Ju(t,e,0)>-1};var tc=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1};var ec=Ta,rc=function(){},nc=ec&&1/oi(new ec([,-0]))[1]==1/0?function(t){return new ec(t)}:rc,oc=Zo,ic=Qu,ac=tc,uc=Qo,cc=nc,lc=oi;var sc=Vu,fc=function(t,e,r){var n=-1,o=ic,i=t.length,a=!0,u=[],c=u;if(r)a=!1,o=ac;else if(i>=200){var l=e?null:cc(t);if(l)return lc(l);a=!1,o=uc,c=new oc}else c=e?[]:u;t:for(;++n<i;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=c.length;p--;)if(c[p]===f)continue t;e&&c.push(f),u.push(s)}else o(c,f,r)||(c!==u&&c.push(f),u.push(s))}return u};const pc=t((function(t,e){return t&&t.length?fc(t,sc(e)):[]}));function hc(t,e,r){return!0===e?pc(t,r):k(e)?pc(t,e):t}function dc(t){return(dc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var yc=["ref"];function vc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vc(Object(r),!0).forEach((function(e){jc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Sc(n.key),n)}}function gc(t,e,r){return e=xc(e),function(t,e){if(e&&("object"===dc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,wc()?Reflect.construct(e,r||[],xc(t).constructor):e.apply(t,r))}function wc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wc=function(){return!!t})()}function xc(t){return(xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Oc(t,e){return(Oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function jc(t,e,r){return(e=Sc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sc(t){var e=function(t,e){if("object"!=dc(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dc(e)?e:e+""}function Pc(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Ac(t){return t.value}var Ec=function(){function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return jc(e=gc(this,t,[].concat(n)),"lastBoundingBox",{width:-1,height:-1}),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oc(t,e)}(t,e.PureComponent),n=t,i=[{key:"getWithHeight",value:function(t,e){var r=mc(mc({},this.defaultProps),t.props).layout;return"vertical"===r&&Ge(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(o=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?mc({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,u=n.margin,c=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),mc(mc({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,o=e.width,i=e.height,a=e.wrapperStyle,u=e.payloadUniqBy,c=e.payload,l=mc(mc({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return r.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(r.isValidElement(t))return r.cloneElement(t,e);if("function"==typeof t)return r.createElement(t,e);e.ref;var n=Pc(e,yc);return r.createElement(Io,n)}(n,mc(mc({},this.props),{},{payload:hc(c,u,Ac)})))}}])&&bc(n.prototype,o),i&&bc(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}();jc(Ec,"displayName","Legend"),jc(Ec,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var kc=Ri,Mc=i,_c=u?u.isConcatSpreadable:void 0;var Tc=hi,Cc=function(t){return Mc(t)||kc(t)||!!(_c&&t&&t[_c])};var Dc=function t(e,r,n,o,i){var a=-1,u=e.length;for(n||(n=Cc),i||(i=[]);++a<u;){var c=e[a];r>0&&n(c)?r>1?t(c,r-1,n,o,i):Tc(i,c):o||(i[i.length]=c)}return i};var Ic=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}(),Nc=Oa;var Bc=function(t,e){return t&&Ic(t,e,Nc)},Lc=ba;var Rc=function(t,e){return function(r,n){if(null==r)return r;if(!Lc(r))return t(r,n);for(var o=r.length,i=e?o:-1,a=Object(r);(e?i--:++i<o)&&!1!==n(a[i],i,a););return r}}(Bc),zc=Rc,Uc=ba;var $c=function(t,e){var r=-1,n=Uc(t)?Array(t.length):[];return zc(t,(function(t,o,i){n[++r]=e(t,o,i)})),n};var Fc=m;var qc=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,o=t==t,i=Fc(t),a=void 0!==e,u=null===e,c=e==e,l=Fc(e);if(!u&&!l&&!i&&t>e||i&&a&&c&&!u&&!l||n&&a&&c||!r&&c||!o)return 1;if(!n&&!i&&!l&&t<e||l&&r&&o&&!n&&!i||u&&r&&o||!a&&o||!c)return-1}return 0};var Wc=Jt,Xc=ve,Hc=Vu,Vc=$c,Gc=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},Yc=Yi,Kc=function(t,e,r){for(var n=-1,o=t.criteria,i=e.criteria,a=o.length,u=r.length;++n<a;){var c=qc(o[n],i[n]);if(c)return n>=u?c:c*("desc"==r[n]?-1:1)}return t.index-e.index},Zc=Bu,Jc=i;var Qc=function(t,e,r){e=e.length?Wc(e,(function(t){return Jc(t)?function(e){return Xc(e,1===t.length?t[0]:t)}:t})):[Zc];var n=-1;e=Wc(e,Yc(Hc));var o=Vc(t,(function(t,r,o){return{criteria:Wc(e,(function(e){return e(t)})),index:++n,value:t}}));return Gc(o,(function(t,e){return Kc(t,e,r)}))};var tl=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},el=Math.max;var rl=function(t,e,r){return e=el(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=el(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=n[o];return u[e]=r(a),tl(t,this,u)}};var nl=function(t){return function(){return t}},ol=V,il=function(){try{var t=ol(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),al=nl,ul=il,cl=ul?function(t,e){return ul(t,"toString",{configurable:!0,enumerable:!1,value:al(e),writable:!0})}:Bu,ll=Date.now;var sl=function(t){var e=0,r=0;return function(){var n=ll(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(cl),fl=Bu,pl=rl,hl=sl;var dl=pt,yl=ba,vl=Fi,ml=j;var bl=function(t,e,r){if(!ml(r))return!1;var n=typeof e;return!!("number"==n?yl(r)&&vl(e,r.length):"string"==n&&e in r)&&dl(r[e],t)},gl=Dc,wl=Qc,xl=bl;const Ol=t(function(t,e){return hl(pl(t,e,fl),t+"")}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&xl(t,e[0],e[1])?e=[]:r>2&&xl(e[0],e[1],e[2])&&(e=[e[0]]),wl(t,gl(e,1),[])})));function jl(t){return(jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sl(){return Sl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Sl.apply(this,arguments)}function Pl(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Al(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Al(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Al(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function El(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?El(Object(r),!0).forEach((function(e){Ml(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):El(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ml(t,e,r){var n;return n=function(t,e){if("object"!=jl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==jl(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _l(t){return Array.isArray(t)&&Ye(t[0])&&Ye(t[1])?t.join(" ~ "):t}var Tl=function(t){var e=t.separator,n=void 0===e?" : ":e,o=t.contentStyle,i=void 0===o?{}:o,a=t.itemStyle,u=void 0===a?{}:a,c=t.labelStyle,l=void 0===c?{}:c,s=t.payload,f=t.formatter,p=t.itemSorter,h=t.wrapperClassName,y=t.labelClassName,v=t.label,m=t.labelFormatter,b=t.accessibilityLayer,g=void 0!==b&&b,w=kl({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),x=kl({margin:0},l),O=!we(v),j=O?v:"",S=d("recharts-default-tooltip",h),P=d("recharts-tooltip-label",y);O&&m&&null!=s&&(j=m(v,s));var A=g?{role:"status","aria-live":"assertive"}:{};return r.createElement("div",Sl({className:S,style:w},A),r.createElement("p",{className:P,style:x},r.isValidElement(j)?j:"".concat(j)),function(){if(s&&s.length){var t=(p?Ol(s,p):s).map((function(t,e){if("none"===t.type)return null;var o=kl({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},u),i=t.formatter||f||_l,a=t.value,c=t.name,l=a,p=c;if(i&&null!=l&&null!=p){var h=i(a,c,t,e,s);if(Array.isArray(h)){var d=Pl(h,2);l=d[0],p=d[1]}else l=h}return r.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:o},Ye(p)?r.createElement("span",{className:"recharts-tooltip-item-name"},p):null,Ye(p)?r.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,r.createElement("span",{className:"recharts-tooltip-item-value"},l),r.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return r.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function Cl(t){return(Cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dl(t,e,r){var n;return n=function(t,e){if("object"!=Cl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Cl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Cl(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Il="recharts-tooltip-wrapper",Nl={visibility:"hidden"};function Bl(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return d(Il,Dl(Dl(Dl(Dl({},"".concat(Il,"-right"),Ge(r)&&e&&Ge(e.x)&&r>=e.x),"".concat(Il,"-left"),Ge(r)&&e&&Ge(e.x)&&r<e.x),"".concat(Il,"-bottom"),Ge(n)&&e&&Ge(e.y)&&n>=e.y),"".concat(Il,"-top"),Ge(n)&&e&&Ge(e.y)&&n<e.y))}function Ll(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,u=t.tooltipDimension,c=t.viewBox,l=t.viewBoxDimension;if(i&&Ge(i[n]))return i[n];var s=r[n]-u-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<c[n]?Math.max(f,c[n]):Math.max(s,c[n]):f+u>c[n]+l?Math.max(s,c[n]):Math.max(f,c[n])}function Rl(t){return(Rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ul(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zl(Object(r),!0).forEach((function(e){Hl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Vl(n.key),n)}}function Fl(t,e,r){return e=Wl(e),function(t,e){if(e&&("object"===Rl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ql()?Reflect.construct(e,r||[],Wl(t).constructor):e.apply(t,r))}function ql(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ql=function(){return!!t})()}function Wl(t){return(Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xl(t,e){return(Xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Hl(t,e,r){return(e=Vl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vl(t){var e=function(t,e){if("object"!=Rl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Rl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Rl(e)?e:e+""}var Gl=function(){function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Hl(e=Fl(this,t,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Hl(e,"handleKeyDown",(function(t){var r,n,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=e.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xl(t,e)}(t,e.PureComponent),n=t,(o=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,n=e.active,o=e.allowEscapeViewBox,i=e.animationDuration,a=e.animationEasing,u=e.children,c=e.coordinate,l=e.hasPayload,s=e.isAnimationActive,f=e.offset,p=e.position,h=e.reverseDirection,d=e.useTranslate3d,y=e.viewBox,v=e.wrapperStyle,m=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,u=t.reverseDirection,c=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:c.height>0&&c.width>0&&o?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=Ll({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:u,tooltipDimension:c.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=Ll({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:u,tooltipDimension:c.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):Nl,cssClasses:Bl({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:y}),b=m.cssClasses,g=m.cssProperties,w=Ul(Ul({transition:s&&n?"transform ".concat(i,"ms ").concat(a):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return r.createElement("div",{tabIndex:-1,className:b,style:w,ref:function(e){t.wrapperNode=e}},u)}}])&&$l(n.prototype,o),i&&$l(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(),Yl={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return Yl[t]},set:function(t,e){if("string"==typeof t)Yl[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){Yl[e]=t[e]}))}}};function Kl(t){return(Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Jl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zl(Object(r),!0).forEach((function(e){os(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ql(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,is(n.key),n)}}function ts(t,e,r){return e=rs(e),function(t,e){if(e&&("object"===Kl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,es()?Reflect.construct(e,r||[],rs(t).constructor):e.apply(t,r))}function es(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(es=function(){return!!t})()}function rs(t){return(rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ns(t,e){return(ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function os(t,e,r){return(e=is(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function is(t){var e=function(t,e){if("object"!=Kl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Kl(e)?e:e+""}function as(t){return t.dataKey}var us=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ts(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ns(t,e)}(t,e.PureComponent),n=t,(o=[{key:"render",value:function(){var t=this,e=this.props,n=e.active,o=e.allowEscapeViewBox,i=e.animationDuration,a=e.animationEasing,u=e.content,c=e.coordinate,l=e.filterNull,s=e.isAnimationActive,f=e.offset,p=e.payload,h=e.payloadUniqBy,d=e.position,y=e.reverseDirection,v=e.useTranslate3d,m=e.viewBox,b=e.wrapperStyle,g=null!=p?p:[];l&&g.length&&(g=hc(p.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),h,as));var w=g.length>0;return r.createElement(Gl,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:s,active:n,coordinate:c,hasPayload:w,offset:f,position:d,reverseDirection:y,useTranslate3d:v,viewBox:m,wrapperStyle:b},function(t,e){return r.isValidElement(t)?r.cloneElement(t,e):"function"==typeof t?r.createElement(t,e):r.createElement(Tl,e)}(u,Jl(Jl({},this.props),{},{payload:g})))}}])&&Ql(n.prototype,o),i&&Ql(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}();os(us,"displayName","Tooltip"),os(us,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Yl.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 cs=a,ls=/\s/;var ss=function(t){for(var e=t.length;e--&&ls.test(t.charAt(e)););return e},fs=/^\s+/;var ps=function(t){return t?t.slice(0,ss(t)+1).replace(fs,""):t},hs=j,ds=m,ys=/^[-+]0x[0-9a-f]+$/i,vs=/^0b[01]+$/i,ms=/^0o[0-7]+$/i,bs=parseInt;var gs=function(t){if("number"==typeof t)return t;if(ds(t))return NaN;if(hs(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=hs(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ps(t);var r=vs.test(t);return r||ms.test(t)?bs(t.slice(2),r?2:8):ys.test(t)?NaN:+t},ws=j,xs=function(){return cs.Date.now()},Os=gs,js=Math.max,Ss=Math.min;var Ps=function(t,e,r){var n,o,i,a,u,c,l=0,s=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var r=n,i=o;return n=o=void 0,l=e,a=t.apply(i,r)}function d(t){var r=t-c;return void 0===c||r>=e||r<0||f&&t-l>=i}function y(){var t=xs();if(d(t))return v(t);u=setTimeout(y,function(t){var r=e-(t-c);return f?Ss(r,i-(t-l)):r}(t))}function v(t){return u=void 0,p&&n?h(t):(n=o=void 0,a)}function m(){var t=xs(),r=d(t);if(n=arguments,o=this,c=t,r){if(void 0===u)return function(t){return l=t,u=setTimeout(y,e),s?h(t):a}(c);if(f)return clearTimeout(u),u=setTimeout(y,e),h(c)}return void 0===u&&(u=setTimeout(y,e)),a}return e=Os(e)||0,ws(r)&&(s=!!r.leading,i=(f="maxWait"in r)?js(Os(r.maxWait)||0,e):i,p="trailing"in r?!!r.trailing:p),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,n=c=o=u=void 0},m.flush=function(){return void 0===u?a:v(xs())},m},As=j;const Es=t((function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return As(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Ps(t,e,{leading:n,maxWait:e,trailing:o})}));function ks(t){return(ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ms(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ms(Object(r),!0).forEach((function(e){Ts(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ms(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ts(t,e,r){var n;return n=function(t,e){if("object"!=ks(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ks(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ks(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cs(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ds(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ds(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ds(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Is=e.forwardRef((function(t,n){var o=t.aspect,i=t.initialDimension,a=void 0===i?{width:-1,height:-1}:i,u=t.width,c=void 0===u?"100%":u,l=t.height,s=void 0===l?"100%":l,f=t.minWidth,p=void 0===f?0:f,h=t.minHeight,y=t.maxHeight,v=t.children,m=t.debounce,b=void 0===m?0:m,g=t.id,w=t.className,x=t.onResize,O=t.style,j=void 0===O?{}:O,S=e.useRef(null),P=e.useRef();P.current=x,e.useImperativeHandle(n,(function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})}));var A=Cs(e.useState({containerWidth:a.width,containerHeight:a.height}),2),E=A[0],k=A[1],M=e.useCallback((function(t,e){k((function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);e.useEffect((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;M(n,o),null===(e=P.current)||void 0===e||e.call(P,n,o)};b>0&&(t=Es(t,b,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=S.current.getBoundingClientRect(),n=r.width,o=r.height;return M(n,o),e.observe(S.current),function(){e.disconnect()}}),[M,b]);var _=e.useMemo((function(){var t=E.containerWidth,n=E.containerHeight;if(t<0||n<0)return null;Nr(Ve(c)||Ve(s),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",c,s),Nr(!o||o>0,"The aspect(%s) must be greater than zero.",o);var i=Ve(c)?t:c,a=Ve(s)?n:s;o&&o>0&&(i?a=i/o:a&&(i=a*o),y&&a>y&&(a=y)),Nr(i>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",i,a,c,s,p,h,o);var u=!Array.isArray(v)&&yr(v.type).endsWith("Chart");return r.Children.map(v,(function(t){return r.isValidElement(t)?e.cloneElement(t,_s({width:i,height:a},u?{style:_s({height:"100%",width:"100%",maxHeight:a,maxWidth:i},t.props.style)}:{})):t}))}),[o,v,s,y,h,p,E,c]);return r.createElement("div",{id:g?"".concat(g):void 0,className:d("recharts-responsive-container",w),style:_s(_s({},j),{},{width:c,height:s,minWidth:p,minHeight:h,maxHeight:y}),ref:S},_)})),Ns=function(t){return null};function Bs(t){return(Bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ls(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ls(Object(r),!0).forEach((function(e){zs(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ls(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zs(t,e,r){var n;return n=function(t,e){if("object"!=Bs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Bs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Bs(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Ns.displayName="Cell";var Us={widthCache:{},cacheCount:0},$s={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Fs="recharts_measurement_span";var qs=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||Yl.isSsr)return{width:0,height:0};var r,n=(r=Rs({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),o=JSON.stringify({text:t,copyStyle:n});if(Us.widthCache[o])return Us.widthCache[o];try{var i=document.getElementById(Fs);i||((i=document.createElement("span")).setAttribute("id",Fs),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Rs(Rs({},$s),n);Object.assign(i.style,a),i.textContent="".concat(t);var u=i.getBoundingClientRect(),c={width:u.width,height:u.height};return Us.widthCache[o]=c,++Us.cacheCount>2e3&&(Us.cacheCount=0,Us.widthCache={}),c}catch(l){return{width:0,height:0}}};function Ws(t){return(Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xs(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Hs(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hs(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Vs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Gs(n.key),n)}}function Gs(t){var e=function(t,e){if("object"!=Ws(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ws(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ws(e)?e:e+""}var Ys=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ks=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Zs=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Js=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Qs={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},tf=Object.keys(Qs),ef="NaN";var rf=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||Zs.test(r)||(this.num=NaN,this.unit=""),tf.includes(r)&&(this.num=function(t,e){return t*Qs[e]}(e,r),this.unit="px")}return e=t,n=[{key:"parse",value:function(e){var r,n=Xs(null!==(r=Js.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&Vs(e.prototype,r),n&&Vs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();function nf(t){if(t.includes(ef))return ef;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Xs(null!==(r=Ys.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],u=rf.parse(null!=o?o:""),c=rf.parse(null!=a?a:""),l="*"===i?u.multiply(c):u.divide(c);if(l.isNaN())return ef;e=e.replace(Ys,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Xs(null!==(s=Ks.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],d=f[3],y=rf.parse(null!=p?p:""),v=rf.parse(null!=d?d:""),m="+"===h?y.add(v):y.subtract(v);if(m.isNaN())return ef;e=e.replace(Ks,m.toString())}return e}var of=/\(([^()]*)\)/;function af(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Xs(of.exec(e),2)[1];e=e.replace(of,nf(r))}return e}(e),e=nf(e)}function uf(t){var e=function(t){try{return af(t)}catch(e){return ef}}(t.slice(5,-1));return e===ef?"":e}var cf=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],lf=["dx","dy","angle","className","breakAll"];function sf(){return sf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sf.apply(this,arguments)}function ff(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function pf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return hf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hf(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var df=/[ \f\n\r\t\v\u2028\u2029]+/,yf=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return we(e)||(o=r?e.toString().split(""):e.toString().split(df)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:qs(t,n).width}})),spaceWidth:r?0:qs(" ",n).width}}catch(i){return null}},vf=function(t){return[{words:we(t)?[]:t.toString().split(df)}]},mf=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!Yl.isSsr){var u=yf({breakAll:i,children:n,style:o});return u?function(t,e,r,n,o){var i=t.maxLines,a=t.children,u=t.style,c=t.breakAll,l=Ge(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,u=t[t.length-1];if(u&&(null==n||o||u.width+a+r<Number(n)))u.words.push(i),u.width+=a+r;else{var c={words:[i],width:a};t.push(c)}return t}),[])},p=f(e);if(!l)return p;for(var h,d=function(t){var e=s.slice(0,t),r=yf({breakAll:c,style:u,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var b=Math.floor((y+v)/2),g=pf(d(b-1),2),w=g[0],x=g[1],O=pf(d(b),1)[0];if(w||O||(y=b+1),w&&O&&(v=b-1),!w&&O){h=x;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},u.wordsWithComputedWidth,u.spaceWidth,e,r):vf(n)}return vf(n)},bf="#808080",gf=function(t){var n=t.x,o=void 0===n?0:n,i=t.y,a=void 0===i?0:i,u=t.lineHeight,c=void 0===u?"1em":u,l=t.capHeight,s=void 0===l?"0.71em":l,f=t.scaleToFit,p=void 0!==f&&f,h=t.textAnchor,y=void 0===h?"start":h,v=t.verticalAnchor,m=void 0===v?"end":v,b=t.fill,g=void 0===b?bf:b,w=ff(t,cf),x=e.useMemo((function(){return mf({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:p,style:w.style,width:w.width})}),[w.breakAll,w.children,w.maxLines,p,w.style,w.width]),O=w.dx,j=w.dy,S=w.angle,P=w.className,A=w.breakAll,E=ff(w,lf);if(!Ye(o)||!Ye(a))return null;var k,M=o+(Ge(O)?O:0),_=a+(Ge(j)?j:0);switch(m){case"start":k=uf("calc(".concat(s,")"));break;case"middle":k=uf("calc(".concat((x.length-1)/2," * -").concat(c," + (").concat(s," / 2))"));break;default:k=uf("calc(".concat(x.length-1," * -").concat(c,")"))}var T=[];if(p){var C=x[0].width,D=w.width;T.push("scale(".concat((Ge(D)?D/C:1)/C,")"))}return S&&T.push("rotate(".concat(S,", ").concat(M,", ").concat(_,")")),T.length&&(E.transform=T.join(" ")),r.createElement("text",sf({},jr(E,!0),{x:M,y:_,className:d("recharts-text",P),textAnchor:y,fill:g.includes("url")?bf:g}),x.map((function(t,e){var n=t.words.join(A?"":" ");return r.createElement("tspan",{x:M,dy:0===e?k:c,key:"".concat(n,"-").concat(e)},n)})))};function wf(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xf(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Of(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=wf,r=(e,r)=>wf(t(e),r),n=(e,r)=>t(e)-r):(e=t===wf||t===xf?t:jf,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function jf(){return 0}function Sf(t){return null===t?NaN:+t}const Pf=Of(wf).right;Of(Sf).center;const Af=Pf;class Ef extends Map{constructor(t,e=Mf){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[r,n]of t)this.set(r,n)}get(t){return super.get(kf(this,t))}has(t){return super.has(kf(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function kf({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function Mf(t){return null!==t&&"object"==typeof t?t.valueOf():t}function _f(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const Tf=Math.sqrt(50),Cf=Math.sqrt(10),Df=Math.sqrt(2);function If(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=Tf?10:i>=Cf?5:i>=Df?2:1;let u,c,l;return o<0?(l=Math.pow(10,-o)/a,u=Math.round(t*l),c=Math.round(e*l),u/l<t&&++u,c/l>e&&--c,l=-l):(l=Math.pow(10,o)*a,u=Math.round(t/l),c=Math.round(e/l),u*l<t&&++u,c*l>e&&--c),c<u&&.5<=r&&r<2?If(t,e,2*r):[u,c,l]}function Nf(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?If(e,t,r):If(t,e,r);if(!(i>=o))return[];const u=i-o+1,c=new Array(u);if(n)if(a<0)for(let l=0;l<u;++l)c[l]=(i-l)/-a;else for(let l=0;l<u;++l)c[l]=(i-l)*a;else if(a<0)for(let l=0;l<u;++l)c[l]=(o+l)/-a;else for(let l=0;l<u;++l)c[l]=(o+l)*a;return c}function Bf(t,e,r){return If(t=+t,e=+e,r=+r)[2]}function Lf(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Bf(e,t,r):Bf(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function Rf(t,e){let r;if(void 0===e)for(const n of t)null!=n&&(r<n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function zf(t,e){let r;if(void 0===e)for(const n of t)null!=n&&(r>n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function Uf(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?_f:function(t=wf){if(t===wf)return _f;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,u=Math.log(i),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(i-c)/i)*(a-i/2<0?-1:1);Uf(t,e,Math.max(r,Math.floor(e-a*c/i+l)),Math.min(n,Math.floor(e+(i-a)*c/i+l)),o)}const i=t[e];let a=r,u=n;for($f(t,r,e),o(t[n],i)>0&&$f(t,r,n);a<u;){for($f(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[r],i)?$f(t,r,u):(++u,$f(t,u,n)),u<=e&&(r=u+1),e<=u&&(n=u-1)}return t}function $f(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function Ff(t,e,r=Sf){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function qf(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Wf(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const Xf=Symbol("implicit");function Hf(){var t=new Ef,e=[],r=[],n=Xf;function o(o){let i=t.get(o);if(void 0===i){if(n!==Xf)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new Ef;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return Hf(e,r).unknown(n)},qf.apply(o,arguments),o}function Vf(){var t,e,r=Hf().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,u=!1,c=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,r-c+2*l),u&&(t=Math.floor(t)),p+=(h-p-t*(r-c))*s,e=t*(1-c),u&&(p=Math.round(p),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map((function(e){return p+t*e}));return o(f?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,u=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(u=!!t,f()):u},r.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),f()):c},r.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return Vf(n(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},qf.apply(f(),arguments)}function Gf(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Gf(e())},t}function Yf(){return Gf(Vf.apply(null,arguments).paddingInner(1))}function Kf(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Zf(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Jf(){}var Qf=.7,tp=1/Qf,ep="\\s*([+-]?\\d+)\\s*",rp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",np="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",op=/^#([0-9a-f]{3,8})$/,ip=new RegExp(`^rgb\\(${ep},${ep},${ep}\\)$`),ap=new RegExp(`^rgb\\(${np},${np},${np}\\)$`),up=new RegExp(`^rgba\\(${ep},${ep},${ep},${rp}\\)$`),cp=new RegExp(`^rgba\\(${np},${np},${np},${rp}\\)$`),lp=new RegExp(`^hsl\\(${rp},${np},${np}\\)$`),sp=new RegExp(`^hsla\\(${rp},${np},${np},${rp}\\)$`),fp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pp(){return this.rgb().formatHex()}function hp(){return this.rgb().formatRgb()}function dp(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=op.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?yp(e):3===r?new bp(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?vp(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?vp(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ip.exec(t))?new bp(e[1],e[2],e[3],1):(e=ap.exec(t))?new bp(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=up.exec(t))?vp(e[1],e[2],e[3],e[4]):(e=cp.exec(t))?vp(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=lp.exec(t))?Sp(e[1],e[2]/100,e[3]/100,1):(e=sp.exec(t))?Sp(e[1],e[2]/100,e[3]/100,e[4]):fp.hasOwnProperty(t)?yp(fp[t]):"transparent"===t?new bp(NaN,NaN,NaN,0):null}function yp(t){return new bp(t>>16&255,t>>8&255,255&t,1)}function vp(t,e,r,n){return n<=0&&(t=e=r=NaN),new bp(t,e,r,n)}function mp(t,e,r,n){return 1===arguments.length?((o=t)instanceof Jf||(o=dp(o)),o?new bp((o=o.rgb()).r,o.g,o.b,o.opacity):new bp):new bp(t,e,r,null==n?1:n);var o}function bp(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function gp(){return`#${jp(this.r)}${jp(this.g)}${jp(this.b)}`}function wp(){const t=xp(this.opacity);return`${1===t?"rgb(":"rgba("}${Op(this.r)}, ${Op(this.g)}, ${Op(this.b)}${1===t?")":`, ${t})`}`}function xp(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Op(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function jp(t){return((t=Op(t))<16?"0":"")+t.toString(16)}function Sp(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ap(t,e,r,n)}function Pp(t){if(t instanceof Ap)return new Ap(t.h,t.s,t.l,t.opacity);if(t instanceof Jf||(t=dp(t)),!t)return new Ap;if(t instanceof Ap)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(r-n)/u+6*(r<n):r===i?(n-e)/u+2:(e-r)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new Ap(a,u,c,t.opacity)}function Ap(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function Ep(t){return(t=(t||0)%360)<0?t+360:t}function kp(t){return Math.max(0,Math.min(1,t||0))}function Mp(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Kf(Jf,dp,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:pp,formatHex:pp,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Pp(this).formatHsl()},formatRgb:hp,toString:hp}),Kf(bp,mp,Zf(Jf,{brighter(t){return t=null==t?tp:Math.pow(tp,t),new bp(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Qf:Math.pow(Qf,t),new bp(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new bp(Op(this.r),Op(this.g),Op(this.b),xp(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:gp,formatHex:gp,formatHex8:function(){return`#${jp(this.r)}${jp(this.g)}${jp(this.b)}${jp(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:wp,toString:wp})),Kf(Ap,(function(t,e,r,n){return 1===arguments.length?Pp(t):new Ap(t,e,r,null==n?1:n)}),Zf(Jf,{brighter(t){return t=null==t?tp:Math.pow(tp,t),new Ap(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Qf:Math.pow(Qf,t),new Ap(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new bp(Mp(t>=240?t-240:t+120,o,n),Mp(t,o,n),Mp(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new Ap(Ep(this.h),kp(this.s),kp(this.l),xp(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=xp(this.opacity);return`${1===t?"hsl(":"hsla("}${Ep(this.h)}, ${100*kp(this.s)}%, ${100*kp(this.l)}%${1===t?")":`, ${t})`}`}}));const _p=t=>()=>t;function Tp(t){return 1==(t=+t)?Cp:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):_p(isNaN(e)?r:e)}}function Cp(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):_p(isNaN(t)?e:t)}const Dp=function t(e){var r=Tp(e);function n(t,e){var n=r((t=mp(t)).r,(e=mp(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=Cp(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Ip(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function Np(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=Fp(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function Bp(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Lp(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Rp(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=Fp(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var zp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Up=new RegExp(zp.source,"g");function $p(t,e){var r,n,o,i=zp.lastIndex=Up.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(r=zp.exec(t))&&(n=Up.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(r=r[0])===(n=n[0])?u[a]?u[a]+=n:u[++a]=n:(u[++a]=null,c.push({i:a,x:Lp(r,n)})),i=Up.lastIndex;return i<e.length&&(o=e.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var r,n=0;n<e;++n)u[(r=c[n]).i]=r.x(t);return u.join("")})}function Fp(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?_p(e):("number"===o?Lp:"string"===o?(r=dp(e))?(e=r,Dp):$p:e instanceof dp?Dp:e instanceof Date?Bp:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?Np:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Rp:Lp:Ip))(t,e)}function qp(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Wp(t){return+t}var Xp=[0,1];function Hp(t){return t}function Vp(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function Gp(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=Vp(o,n),i=r(a,i)):(n=Vp(n,o),i=r(i,a)),function(t){return i(n(t))}}function Yp(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=Vp(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=Af(t,e,1,n)-1;return i[r](o[r](e))}}function Kp(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Zp(){var t,e,r,n,o,i,a=Xp,u=Xp,c=Fp,l=Hp;function s(){var t,e,r,c=Math.min(a.length,u.length);return l!==Hp&&(t=a[0],e=a[c-1],t>e&&(r=t,t=e,e=r),l=function(r){return Math.max(t,Math.min(e,r))}),n=c>2?Yp:Gp,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),u,c)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(u,a.map(t),Lp)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Wp),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=qp,s()},f.clamp=function(t){return arguments.length?(l=!!t||Hp,s()):l!==Hp},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function Jp(){return Zp()(Hp,Hp)}function Qp(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function th(t){return(t=Qp(Math.abs(t)))?t[1]:NaN}var eh,rh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nh(t){if(!(e=rh.exec(t)))throw new Error("invalid format: "+t);var e;return new oh({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function oh(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function ih(t,e){var r=Qp(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}nh.prototype=oh.prototype,oh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ah={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>ih(100*t,e),r:ih,s:function(t,e){var r=Qp(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(eh=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Qp(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function uh(t){return t}var ch,lh,sh,fh=Array.prototype.map,ph=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hh(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?uh:(e=fh.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>n));)u=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?uh:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(fh.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=nh(t)).fill,r=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,m=t.trim,b=t.type;"n"===b?(y=!0,b="g"):ah[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var g="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===p?i:/[%p]/.test(b)?c:"",x=ah[b],O=/[defgprs%]/.test(b);function j(t){var o,i,c,p=g,j=w;if("c"===b)j=x(t)+j,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==f&&(S=!1),p=(S?"("===f?f:l:"-"===f||"("===f?"":f)+p,j=("s"===b?ph[8+eh/3]:"")+j+(S&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(c=t.charCodeAt(o))||c>57){j=(46===c?a+t.slice(o+1):t.slice(o))+j,t=t.slice(0,o);break}}y&&!h&&(t=n(t,1/0));var P=p.length+t.length+j.length,A=P<d?new Array(d-P+1).join(e):"";switch(y&&h&&(t=n(A+t,A.length?d-j.length:1/0),A=""),r){case"<":t=p+t+j+A;break;case"=":t=p+A+t+j;break;case"^":t=A.slice(0,P=A.length>>1)+p+t+j+A.slice(P);break;default:t=A+p+t+j}return u(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return t+""},j}return{format:f,formatPrefix:function(t,e){var r=f(((t=nh(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(th(e)/3))),o=Math.pow(10,-n),i=ph[8+n/3];return function(t){return r(o*t)+i}}}}function dh(t,e,r,n){var o,i=Lf(t,e,r);switch((n=nh(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(th(e)/3)))-th(Math.abs(t)))}(i,a))||(n.precision=o),sh(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,th(e)-th(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-th(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return lh(n)}function yh(t){var e=t.domain;return t.ticks=function(t){var r=e();return Nf(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return dh(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,u=i.length-1,c=i[a],l=i[u],s=10;for(l<c&&(o=c,c=l,l=o,o=a,a=u,u=o);s-- >0;){if((o=Bf(c,l,r))===n)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function vh(){var t=Jp();return t.copy=function(){return Kp(t,vh())},qf.apply(t,arguments),yh(t)}function mh(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function bh(t){return Math.log(t)}function gh(t){return Math.exp(t)}function wh(t){return-Math.log(-t)}function xh(t){return-Math.exp(-t)}function Oh(t){return isFinite(t)?+("1e"+t):t<0?0:t}function jh(t){return(e,r)=>-t(-e,r)}function Sh(t){const e=t(bh,gh),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Oh:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=jh(n),o=jh(o),t(wh,xh)):t(bh,gh),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],u=e[e.length-1];const c=u<a;c&&([a,u]=[u,a]);let l,s,f=n(a),p=n(u);const h=null==t?10:+t;let d=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;d.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;d.push(s)}2*d.length<h&&(d=Nf(a,u,h))}else d=Nf(f,p,Math.min(p-f,h)).map(o);return c?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=nh(r)).precision||(r.trim=!0),r=lh(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(mh(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function Ph(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Ah(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Eh(t){var e=1,r=t(Ph(e),Ah(e));return r.constant=function(r){return arguments.length?t(Ph(e=+r),Ah(e)):e},yh(r)}function kh(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Mh(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function _h(t){return t<0?-t*t:t*t}function Th(t){var e=t(Hp,Hp),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Hp,Hp):.5===r?t(Mh,_h):t(kh(r),kh(1/r)):r},yh(e)}function Ch(){var t=Th(Zp());return t.copy=function(){return Kp(t,Ch()).exponent(t.exponent())},qf.apply(t,arguments),t}function Dh(t){return Math.sign(t)*t*t}ch=hh({thousands:",",grouping:[3],currency:["$",""]}),lh=ch.format,sh=ch.formatPrefix;const Ih=new Date,Nh=new Date;function Bh(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let u;do{a.push(u=new Date(+r)),e(r,i),t(r)}while(u<r&&r<n);return a},o.filter=r=>Bh((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(o.count=(e,n)=>(Ih.setTime(+e),Nh.setTime(+n),t(Ih),t(Nh),Math.floor(r(Ih,Nh))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const Lh=Bh((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Lh.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Bh((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):Lh:null),Lh.range;const Rh=1e3,zh=6e4,Uh=36e5,$h=864e5,Fh=6048e5,qh=2592e6,Wh=31536e6,Xh=Bh((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Rh)}),((t,e)=>(e-t)/Rh),(t=>t.getUTCSeconds()));Xh.range;const Hh=Bh((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Rh)}),((t,e)=>{t.setTime(+t+e*zh)}),((t,e)=>(e-t)/zh),(t=>t.getMinutes()));Hh.range;const Vh=Bh((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*zh)}),((t,e)=>(e-t)/zh),(t=>t.getUTCMinutes()));Vh.range;const Gh=Bh((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Rh-t.getMinutes()*zh)}),((t,e)=>{t.setTime(+t+e*Uh)}),((t,e)=>(e-t)/Uh),(t=>t.getHours()));Gh.range;const Yh=Bh((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Uh)}),((t,e)=>(e-t)/Uh),(t=>t.getUTCHours()));Yh.range;const Kh=Bh((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*zh)/$h),(t=>t.getDate()-1));Kh.range;const Zh=Bh((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/$h),(t=>t.getUTCDate()-1));Zh.range;const Jh=Bh((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/$h),(t=>Math.floor(t/$h)));function Qh(t){return Bh((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*zh)/Fh))}Jh.range;const td=Qh(0),ed=Qh(1),rd=Qh(2),nd=Qh(3),od=Qh(4),id=Qh(5),ad=Qh(6);function ud(t){return Bh((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Fh))}td.range,ed.range,rd.range,nd.range,od.range,id.range,ad.range;const cd=ud(0),ld=ud(1),sd=ud(2),fd=ud(3),pd=ud(4),hd=ud(5),dd=ud(6);cd.range,ld.range,sd.range,fd.range,pd.range,hd.range,dd.range;const yd=Bh((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()));yd.range;const vd=Bh((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()));vd.range;const md=Bh((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));md.every=t=>isFinite(t=Math.floor(t))&&t>0?Bh((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null,md.range;const bd=Bh((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function gd(t,e,r,n,o,i){const a=[[Xh,1,Rh],[Xh,5,5e3],[Xh,15,15e3],[Xh,30,3e4],[i,1,zh],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Uh],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,$h],[n,2,1728e5],[r,1,Fh],[e,1,qh],[e,3,7776e6],[t,1,Wh]];function u(e,r,n){const o=Math.abs(r-e)/n,i=Of((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(Lf(e/Wh,r/Wh,n));if(0===i)return Lh.every(Math.max(Lf(e,r,n),1));const[u,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(c)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:u(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},u]}bd.every=t=>isFinite(t=Math.floor(t))&&t>0?Bh((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null,bd.range;const[wd,xd]=gd(bd,vd,cd,Jh,Yh,Vh),[Od,jd]=gd(md,yd,td,Kh,Gh,Hh);function Sd(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Pd(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ad(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Ed,kd,Md,_d={"-":"",_:" ",0:"0"},Td=/^\s*\d+/,Cd=/^%/,Dd=/[\\^$*+?|[\]().{}]/g;function Id(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function Nd(t){return t.replace(Dd,"\\$&")}function Bd(t){return new RegExp("^(?:"+t.map(Nd).join("|")+")","i")}function Ld(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Rd(t,e,r){var n=Td.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function zd(t,e,r){var n=Td.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Ud(t,e,r){var n=Td.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function $d(t,e,r){var n=Td.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Fd(t,e,r){var n=Td.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function qd(t,e,r){var n=Td.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Wd(t,e,r){var n=Td.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Xd(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Hd(t,e,r){var n=Td.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Vd(t,e,r){var n=Td.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Gd(t,e,r){var n=Td.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Yd(t,e,r){var n=Td.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Kd(t,e,r){var n=Td.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Zd(t,e,r){var n=Td.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Jd(t,e,r){var n=Td.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Qd(t,e,r){var n=Td.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function ty(t,e,r){var n=Td.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ey(t,e,r){var n=Cd.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function ry(t,e,r){var n=Td.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function ny(t,e,r){var n=Td.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function oy(t,e){return Id(t.getDate(),e,2)}function iy(t,e){return Id(t.getHours(),e,2)}function ay(t,e){return Id(t.getHours()%12||12,e,2)}function uy(t,e){return Id(1+Kh.count(md(t),t),e,3)}function cy(t,e){return Id(t.getMilliseconds(),e,3)}function ly(t,e){return cy(t,e)+"000"}function sy(t,e){return Id(t.getMonth()+1,e,2)}function fy(t,e){return Id(t.getMinutes(),e,2)}function py(t,e){return Id(t.getSeconds(),e,2)}function hy(t){var e=t.getDay();return 0===e?7:e}function dy(t,e){return Id(td.count(md(t)-1,t),e,2)}function yy(t){var e=t.getDay();return e>=4||0===e?od(t):od.ceil(t)}function vy(t,e){return t=yy(t),Id(od.count(md(t),t)+(4===md(t).getDay()),e,2)}function my(t){return t.getDay()}function by(t,e){return Id(ed.count(md(t)-1,t),e,2)}function gy(t,e){return Id(t.getFullYear()%100,e,2)}function wy(t,e){return Id((t=yy(t)).getFullYear()%100,e,2)}function xy(t,e){return Id(t.getFullYear()%1e4,e,4)}function Oy(t,e){var r=t.getDay();return Id((t=r>=4||0===r?od(t):od.ceil(t)).getFullYear()%1e4,e,4)}function jy(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Id(e/60|0,"0",2)+Id(e%60,"0",2)}function Sy(t,e){return Id(t.getUTCDate(),e,2)}function Py(t,e){return Id(t.getUTCHours(),e,2)}function Ay(t,e){return Id(t.getUTCHours()%12||12,e,2)}function Ey(t,e){return Id(1+Zh.count(bd(t),t),e,3)}function ky(t,e){return Id(t.getUTCMilliseconds(),e,3)}function My(t,e){return ky(t,e)+"000"}function _y(t,e){return Id(t.getUTCMonth()+1,e,2)}function Ty(t,e){return Id(t.getUTCMinutes(),e,2)}function Cy(t,e){return Id(t.getUTCSeconds(),e,2)}function Dy(t){var e=t.getUTCDay();return 0===e?7:e}function Iy(t,e){return Id(cd.count(bd(t)-1,t),e,2)}function Ny(t){var e=t.getUTCDay();return e>=4||0===e?pd(t):pd.ceil(t)}function By(t,e){return t=Ny(t),Id(pd.count(bd(t),t)+(4===bd(t).getUTCDay()),e,2)}function Ly(t){return t.getUTCDay()}function Ry(t,e){return Id(ld.count(bd(t)-1,t),e,2)}function zy(t,e){return Id(t.getUTCFullYear()%100,e,2)}function Uy(t,e){return Id((t=Ny(t)).getUTCFullYear()%100,e,2)}function $y(t,e){return Id(t.getUTCFullYear()%1e4,e,4)}function Fy(t,e){var r=t.getUTCDay();return Id((t=r>=4||0===r?pd(t):pd.ceil(t)).getUTCFullYear()%1e4,e,4)}function qy(){return"+0000"}function Wy(){return"%"}function Xy(t){return+t}function Hy(t){return Math.floor(+t/1e3)}function Vy(t){return new Date(t)}function Gy(t){return t instanceof Date?+t:+new Date(+t)}function Yy(t,e,r,n,o,i,a,u,c,l){var s=Jp(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),w=l("%Y");function x(t){return(c(t)<t?h:u(t)<t?d:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?m:b:r(t)<t?g:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Gy)):p().map(Vy)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(mh(r,t)):s},s.copy=function(){return Kp(s,Yy(t,e,r,n,o,i,a,u,c,l))},s}function Ky(){var t,e,r,n,o,i=0,a=1,u=Hp,c=!1;function l(e){return null==e||isNaN(e=+e)?o:u(0===r?.5:(e=(n(e)-t)*r,c?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,u=t(r,n),l):[u(0),u(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(u=t,l):u},l.range=s(Fp),l.rangeRound=s(qp),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function Zy(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Jy(){var t=Th(Ky());return t.copy=function(){return Zy(t,Jy()).exponent(t.exponent())},Wf.apply(t,arguments)}function Qy(){var t,e,r,n,o,i,a,u=0,c=.5,l=1,s=1,f=Hp,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=function(t,e){void 0===e&&(e=t,t=Fp);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([u,c,l]=a,t=i(u=+u),e=i(c=+c),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[u,c,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=d(Fp),h.rangeRound=d(qp),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(u),e=a(c),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function tv(){var t=Th(Qy());return t.copy=function(){return Zy(t,tv()).exponent(t.exponent())},Wf.apply(t,arguments)}!function(t){Ed=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=Bd(o),s=Ld(o),f=Bd(i),p=Ld(i),h=Bd(a),d=Ld(a),y=Bd(u),v=Ld(u),m=Bd(c),b=Ld(c),g={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:oy,e:oy,f:ly,g:wy,G:Oy,H:iy,I:ay,j:uy,L:cy,m:sy,M:fy,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Xy,s:Hy,S:py,u:hy,U:dy,V:vy,w:my,W:by,x:null,X:null,y:gy,Y:xy,Z:jy,"%":Wy},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Sy,e:Sy,f:My,g:Uy,G:Fy,H:Py,I:Ay,j:Ey,L:ky,m:_y,M:Ty,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Xy,s:Hy,S:Cy,u:Dy,U:Iy,V:By,w:Ly,W:Ry,x:null,X:null,y:zy,Y:$y,Z:qy,"%":Wy},x={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return S(t,e,r,n)},d:Gd,e:Gd,f:ty,g:Wd,G:qd,H:Kd,I:Kd,j:Yd,L:Qd,m:Vd,M:Zd,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:Hd,Q:ry,s:ny,S:Jd,u:zd,U:Ud,V:$d,w:Rd,W:Fd,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:Wd,Y:qd,Z:Xd,"%":ey};function O(t,e){return function(r){var n,o,i,a=[],u=-1,c=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=_d[n=t.charAt(++u)])?n=t.charAt(++u):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function j(t,e){return function(r){var n,o,i=Ad(1900,void 0,1);if(S(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=Pd(Ad(i.y,0,1))).getUTCDay(),n=o>4||0===o?ld.ceil(n):ld(n),n=Zh.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=Sd(Ad(i.y,0,1))).getDay(),n=o>4||0===o?ed.ceil(n):ed(n),n=Kh.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Pd(Ad(i.y,0,1)).getUTCDay():Sd(Ad(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Pd(i)):Sd(i)}}function S(t,e,r,n){for(var o,i,a=0,u=e.length,c=r.length;a<u;){if(n>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=x[o in _d?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return g.x=O(r,g),g.X=O(n,g),g.c=O(e,g),w.x=O(r,w),w.X=O(n,w),w.c=O(e,w),{format:function(t){var e=O(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}(t),kd=Ed.format,Ed.parse,Md=Ed.utcFormat,Ed.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const ev=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Vf,scaleDiverging:function t(){var e=yh(Qy()(Hp));return e.copy=function(){return Zy(e,t())},Wf.apply(e,arguments)},scaleDivergingLog:function t(){var e=Sh(Qy()).domain([.1,1,10]);return e.copy=function(){return Zy(e,t()).base(e.base())},Wf.apply(e,arguments)},scaleDivergingPow:tv,scaleDivergingSqrt:function(){return tv.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=Eh(Qy());return e.copy=function(){return Zy(e,t()).constant(e.constant())},Wf.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Wp),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,Wp):[0,1],yh(n)},scaleImplicit:Xf,scaleLinear:vh,scaleLog:function t(){const e=Sh(Zp()).domain([1,10]);return e.copy=()=>Kp(e,t()).base(e.base()),qf.apply(e,arguments),e},scaleOrdinal:Hf,scalePoint:Yf,scalePow:Ch,scaleQuantile:function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=new Array(e-1);++t<e;)o[t-1]=Ff(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[Af(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],e<o.length?o[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(wf),i()},a.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return o.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},qf.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function u(t){return null!=t&&t<=t?a[Af(i,t,0,o)]:e}function c(){var t=-1;for(i=new Array(o);++t<o;)i[t]=((t+1)*n-(t-o)*r)/(o+1);return u}return u.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,c()):[r,n]},u.range=function(t){return arguments.length?(o=(a=Array.from(t)).length-1,c()):a.slice()},u.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,i[0]]:e>=o?[i[o-1],n]:[i[e-1],i[e]]},u.unknown=function(t){return arguments.length?(e=t,u):u},u.thresholds=function(){return i.slice()},u.copy=function(){return t().domain([r,n]).range(a).unknown(e)},qf.apply(yh(u),arguments)},scaleRadial:function t(){var e,r=Jp(),n=[0,1],o=!1;function i(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:o?Math.round(n):n}return i.invert=function(t){return r.invert(Dh(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,Wp)).map(Dh)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},qf.apply(i,arguments),yh(i)},scaleSequential:function t(){var e=yh(Ky()(Hp));return e.copy=function(){return Zy(e,t())},Wf.apply(e,arguments)},scaleSequentialLog:function t(){var e=Sh(Ky()).domain([1,10]);return e.copy=function(){return Zy(e,t()).base(e.base())},Wf.apply(e,arguments)},scaleSequentialPow:Jy,scaleSequentialQuantile:function t(){var e=[],r=Hp;function n(t){if(null!=t&&!isNaN(t=+t))return r((Af(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(wf),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map(((t,n)=>r(n/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((r,n)=>function(t,e,r){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let r of t)null!=r&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return zf(t);if(e>=1)return Rf(t);var n,o=(n-1)*e,i=Math.floor(o),a=Rf(Uf(t,i).subarray(0,i+1));return a+(zf(t.subarray(i+1))-a)*(o-i)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},Wf.apply(n,arguments)},scaleSequentialSqrt:function(){return Jy.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=Eh(Ky());return e.copy=function(){return Zy(e,t()).constant(e.constant())},Wf.apply(e,arguments)},scaleSqrt:function(){return Ch.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=Eh(Zp());return e.copy=function(){return Kp(e,t()).constant(e.constant())},qf.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[Af(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(r=Array.from(t),o=Math.min(r.length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},qf.apply(i,arguments)},scaleTime:function(){return qf.apply(Yy(Od,jd,md,yd,td,Kh,Gh,Hh,Xh,kd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return qf.apply(Yy(wd,xd,bd,vd,cd,Zh,Yh,Vh,Xh,Md).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:dh},Symbol.toStringTag,{value:"Module"}));var rv=m;var nv=function(t,e,r){for(var n=-1,o=t.length;++n<o;){var i=t[n],a=e(i);if(null!=a&&(void 0===u?a==a&&!rv(a):r(a,u)))var u=a,c=i}return c};var ov=nv,iv=function(t,e){return t>e},av=Bu;const uv=t((function(t){return t&&t.length?ov(t,av,iv):void 0}));var cv=nv,lv=function(t,e){return t<e},sv=Bu;const fv=t((function(t){return t&&t.length?cv(t,sv,lv):void 0}));var pv=Jt,hv=Vu,dv=$c,yv=i;var vv=Dc,mv=function(t,e){return(yv(t)?pv:dv)(t,hv(e))};const bv=t((function(t,e){return vv(mv(t,e),1)}));var gv=su;const wv=t((function(t,e){return gv(t,e)}));var xv,Ov=1e9,jv=!0,Sv="[DecimalError] ",Pv=Sv+"Invalid argument: ",Av=Sv+"Exponent out of range: ",Ev=Math.floor,kv=Math.pow,Mv=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,_v=1e7,Tv=9007199254740991,Cv=Ev(1286742750677284.5),Dv={};function Iv(t,e){var r,n,o,i,a,u,c,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),jv?Wv(e,f):e;if(c=t.d,l=e.d,a=t.e,o=e.e,c=c.slice(),i=a-o){for(i<0?(n=c,i=-i,u=l.length):(n=l,o=a,u=c.length),i>(u=(a=Math.ceil(f/7))>u?a+1:u+1)&&(i=u,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((u=c.length)-(i=l.length)<0&&(i=u,n=l,l=c,c=n),r=0;i;)r=(c[--i]=c[i]+l[i]+r)/_v|0,c[i]%=_v;for(r&&(c.unshift(r),++o),u=c.length;0==c[--u];)c.pop();return e.d=c,e.e=o,jv?Wv(e,f):e}function Nv(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Pv+t)}function Bv(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)(r=7-(n=t[e]+"").length)&&(i+=$v(r)),i+=n;(r=7-(n=(a=t[e])+"").length)&&(i+=$v(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Dv.absoluteValue=Dv.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},Dv.comparedTo=Dv.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},Dv.decimalPlaces=Dv.dp=function(){var t=this,e=t.d.length-1,r=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},Dv.dividedBy=Dv.div=function(t){return Lv(this,new this.constructor(t))},Dv.dividedToIntegerBy=Dv.idiv=function(t){var e=this.constructor;return Wv(Lv(this,new e(t),0,1),e.precision)},Dv.equals=Dv.eq=function(t){return!this.cmp(t)},Dv.exponent=function(){return zv(this)},Dv.greaterThan=Dv.gt=function(t){return this.cmp(t)>0},Dv.greaterThanOrEqualTo=Dv.gte=function(t){return this.cmp(t)>=0},Dv.isInteger=Dv.isint=function(){return this.e>this.d.length-2},Dv.isNegative=Dv.isneg=function(){return this.s<0},Dv.isPositive=Dv.ispos=function(){return this.s>0},Dv.isZero=function(){return 0===this.s},Dv.lessThan=Dv.lt=function(t){return this.cmp(t)<0},Dv.lessThanOrEqualTo=Dv.lte=function(t){return this.cmp(t)<1},Dv.logarithm=Dv.log=function(t){var e,r=this,n=r.constructor,o=n.precision,i=o+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(xv))throw Error(Sv+"NaN");if(r.s<1)throw Error(Sv+(r.s?"NaN":"-Infinity"));return r.eq(xv)?new n(0):(jv=!1,e=Lv(Fv(r,i),Fv(t,i),i),jv=!0,Wv(e,o))},Dv.minus=Dv.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Xv(e,t):Iv(e,(t.s=-t.s,t))},Dv.modulo=Dv.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(Sv+"NaN");return r.s?(jv=!1,e=Lv(r,t,0,1).times(t),jv=!0,r.minus(e)):Wv(new n(r),o)},Dv.naturalExponential=Dv.exp=function(){return Rv(this)},Dv.naturalLogarithm=Dv.ln=function(){return Fv(this)},Dv.negated=Dv.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},Dv.plus=Dv.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Iv(e,t):Xv(e,(t.s=-t.s,t))},Dv.precision=Dv.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Pv+t);if(e=zv(o)+1,r=7*(n=o.d.length-1)+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},Dv.squareRoot=Dv.sqrt=function(){var t,e,r,n,o,i,a,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(Sv+"NaN")}for(t=zv(u),jv=!1,0==(o=Math.sqrt(+u))||o==1/0?(((e=Bv(u.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=Ev((t+1)/2)-(t<0||t%2),n=new c(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new c(o.toString()),o=a=(r=c.precision)+3;;)if(n=(i=n).plus(Lv(u,i,a+2)).times(.5),Bv(i.d).slice(0,a)===(e=Bv(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(Wv(i,r+1,0),i.times(i).eq(u)){n=i;break}}else if("9999"!=e)break;a+=4}return jv=!0,Wv(n,r)},Dv.times=Dv.mul=function(t){var e,r,n,o,i,a,u,c,l,s=this,f=s.constructor,p=s.d,h=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,r=s.e+t.e,(c=p.length)<(l=h.length)&&(i=p,p=h,h=i,a=c,c=l,l=a),i=[],n=a=c+l;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,o=c+n;o>n;)u=i[o]+h[n]*p[o-n-1]+e,i[o--]=u%_v|0,e=u/_v|0;i[o]=(i[o]+e)%_v|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,jv?Wv(t,f.precision):t},Dv.toDecimalPlaces=Dv.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(Nv(t,0,Ov),void 0===e?e=n.rounding:Nv(e,0,8),Wv(r,t+zv(r)+1,e))},Dv.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=Hv(n,!0):(Nv(t,0,Ov),void 0===e?e=o.rounding:Nv(e,0,8),r=Hv(n=Wv(new o(n),t+1,e),!0,t+1)),r},Dv.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?Hv(o):(Nv(t,0,Ov),void 0===e?e=i.rounding:Nv(e,0,8),r=Hv((n=Wv(new i(o),t+zv(o)+1,e)).abs(),!1,t+zv(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},Dv.toInteger=Dv.toint=function(){var t=this,e=t.constructor;return Wv(new e(t),zv(t)+1,e.rounding)},Dv.toNumber=function(){return+this},Dv.toPower=Dv.pow=function(t){var e,r,n,o,i,a,u=this,c=u.constructor,l=+(t=new c(t));if(!t.s)return new c(xv);if(!(u=new c(u)).s){if(t.s<1)throw Error(Sv+"Infinity");return u}if(u.eq(xv))return u;if(n=c.precision,t.eq(xv))return Wv(u,n);if(a=(e=t.e)>=(r=t.d.length-1),i=u.s,a){if((r=l<0?-l:l)<=Tv){for(o=new c(xv),e=Math.ceil(n/7+4),jv=!1;r%2&&Vv((o=o.times(u)).d,e),0!==(r=Ev(r/2));)Vv((u=u.times(u)).d,e);return jv=!0,t.s<0?new c(xv).div(o):Wv(o,n)}}else if(i<0)throw Error(Sv+"NaN");return i=i<0&&1&t.d[Math.max(e,r)]?-1:1,u.s=1,jv=!1,o=t.times(Fv(u,n+12)),jv=!0,(o=Rv(o)).s=i,o},Dv.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=Hv(o,(r=zv(o))<=i.toExpNeg||r>=i.toExpPos):(Nv(t,1,Ov),void 0===e?e=i.rounding:Nv(e,0,8),n=Hv(o=Wv(new i(o),t,e),t<=(r=zv(o))||r<=i.toExpNeg,t)),n},Dv.toSignificantDigits=Dv.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(Nv(t,1,Ov),void 0===e?e=r.rounding:Nv(e,0,8)),Wv(new r(this),t,e)},Dv.toString=Dv.valueOf=Dv.val=Dv.toJSON=Dv[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=zv(t),r=t.constructor;return Hv(t,e<=r.toExpNeg||e>=r.toExpPos)};var Lv=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%_v|0,n=r/_v|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*_v+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var u,c,l,s,f,p,h,d,y,v,m,b,g,w,x,O,j,S,P=n.constructor,A=n.s==o.s?1:-1,E=n.d,k=o.d;if(!n.s)return new P(n);if(!o.s)throw Error(Sv+"Division by zero");for(c=n.e-o.e,j=k.length,x=E.length,d=(h=new P(A)).d=[],l=0;k[l]==(E[l]||0);)++l;if(k[l]>(E[l]||0)&&--c,(b=null==i?i=P.precision:a?i+(zv(n)-zv(o))+1:i)<0)return new P(0);if(b=b/7+2|0,l=0,1==j)for(s=0,k=k[0],b++;(l<x||s)&&b--;l++)g=s*_v+(E[l]||0),d[l]=g/k|0,s=g%k|0;else{for((s=_v/(k[0]+1)|0)>1&&(k=t(k,s),E=t(E,s),j=k.length,x=E.length),w=j,v=(y=E.slice(0,j)).length;v<j;)y[v++]=0;(S=k.slice()).unshift(0),O=k[0],k[1]>=_v/2&&++O;do{s=0,(u=e(k,y,j,v))<0?(m=y[0],j!=v&&(m=m*_v+(y[1]||0)),(s=m/O|0)>1?(s>=_v&&(s=_v-1),1==(u=e(f=t(k,s),y,p=f.length,v=y.length))&&(s--,r(f,j<p?S:k,p))):(0==s&&(u=s=1),f=k.slice()),(p=f.length)<v&&f.unshift(0),r(y,f,v),-1==u&&(u=e(k,y,j,v=y.length))<1&&(s++,r(y,j<v?S:k,v)),v=y.length):0===u&&(s++,y=[0]),d[l++]=s,u&&y[0]?y[v++]=E[w]||0:(y=[E[w]],v=1)}while((w++<x||void 0!==y[0])&&b--)}return d[0]||d.shift(),h.e=c,Wv(h,a?i+zv(h)+1:i)}}();function Rv(t,e){var r,n,o,i,a,u=0,c=0,l=t.constructor,s=l.precision;if(zv(t)>16)throw Error(Av+zv(t));if(!t.s)return new l(xv);for(null==e?(jv=!1,a=s):a=e,i=new l(.03125);t.abs().gte(.1);)t=t.times(i),c+=5;for(a+=Math.log(kv(2,c))/Math.LN10*2+5|0,r=n=o=new l(xv),l.precision=a;;){if(n=Wv(n.times(t),a),r=r.times(++u),Bv((i=o.plus(Lv(n,r,a))).d).slice(0,a)===Bv(o.d).slice(0,a)){for(;c--;)o=Wv(o.times(o),a);return l.precision=s,null==e?(jv=!0,Wv(o,s)):o}o=i}}function zv(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function Uv(t,e,r){if(e>t.LN10.sd())throw jv=!0,r&&(t.precision=r),Error(Sv+"LN10 precision limit exceeded");return Wv(new t(t.LN10),e)}function $v(t){for(var e="";t--;)e+="0";return e}function Fv(t,e){var r,n,o,i,a,u,c,l,s,f=1,p=t,h=p.d,d=p.constructor,y=d.precision;if(p.s<1)throw Error(Sv+(p.s?"NaN":"-Infinity"));if(p.eq(xv))return new d(0);if(null==e?(jv=!1,l=y):l=e,p.eq(10))return null==e&&(jv=!0),Uv(d,l);if(l+=10,d.precision=l,n=(r=Bv(h)).charAt(0),i=zv(p),!(Math.abs(i)<15e14))return c=Uv(d,l+2,y).times(i+""),p=Fv(new d(n+"."+r.slice(1)),l-10).plus(c),d.precision=y,null==e?(jv=!0,Wv(p,y)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Bv((p=p.times(t)).d)).charAt(0),f++;for(i=zv(p),n>1?(p=new d("0."+r),i++):p=new d(n+"."+r.slice(1)),u=a=p=Lv(p.minus(xv),p.plus(xv),l),s=Wv(p.times(p),l),o=3;;){if(a=Wv(a.times(s),l),Bv((c=u.plus(Lv(a,new d(o),l))).d).slice(0,l)===Bv(u.d).slice(0,l))return u=u.times(2),0!==i&&(u=u.plus(Uv(d,l+2,y).times(i+""))),u=Lv(u,new d(f),l),d.precision=y,null==e?(jv=!0,Wv(u,y)):u;u=c,o+=2}}function qv(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=Ev(r/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=7;n<o;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),jv&&(t.e>Cv||t.e<-Cv))throw Error(Av+r)}else t.s=0,t.e=0,t.d=[0];return t}function Wv(t,e,r){var n,o,i,a,u,c,l,s,f=t.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=7,o=e,l=f[s=0];else{if((s=Math.ceil((n+1)/7))>=(i=f.length))return t;for(l=i=f[s],a=1;i>=10;i/=10)a++;o=(n%=7)-7+a}if(void 0!==r&&(u=l/(i=kv(10,a-o-1))%10|0,c=e<0||void 0!==f[s+1]||l%i,c=r<4?(u||c)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||c||6==r&&(n>0?o>0?l/kv(10,a-o):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return c?(i=zv(t),f.length=1,e=e-i-1,f[0]=kv(10,(7-e%7)%7),t.e=Ev(-e/7)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,i=1,s--):(f.length=s+1,i=kv(10,7-n),f[s]=o>0?(l/kv(10,a-o)%kv(10,o)|0)*i:0),c)for(;;){if(0==s){(f[0]+=i)==_v&&(f[0]=1,++t.e);break}if(f[s]+=i,f[s]!=_v)break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(jv&&(t.e>Cv||t.e<-Cv))throw Error(Av+zv(t));return t}function Xv(t,e){var r,n,o,i,a,u,c,l,s,f,p=t.constructor,h=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),jv?Wv(e,h):e;if(c=t.d,f=e.d,n=e.e,l=t.e,c=c.slice(),a=l-n){for((s=a<0)?(r=c,a=-a,u=f.length):(r=f,n=l,u=c.length),a>(o=Math.max(Math.ceil(h/7),u)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((s=(o=c.length)<(u=f.length))&&(u=o),o=0;o<u;o++)if(c[o]!=f[o]){s=c[o]<f[o];break}a=0}for(s&&(r=c,c=f,f=r,e.s=-e.s),u=c.length,o=f.length-u;o>0;--o)c[u++]=0;for(o=f.length;o>a;){if(c[--o]<f[o]){for(i=o;i&&0===c[--i];)c[i]=_v-1;--c[i],c[o]+=_v}c[o]-=f[o]}for(;0===c[--u];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=n,jv?Wv(e,h):e):new p(0)}function Hv(t,e,r){var n,o=zv(t),i=Bv(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+$v(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+$v(-o-1)+i,r&&(n=r-a)>0&&(i+=$v(n))):o>=a?(i+=$v(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+$v(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=$v(n))),t.s<0?"-"+i:i}function Vv(t,e){if(t.length>e)return t.length=e,!0}function Gv(t){if(!t||"object"!=typeof t)throw Error(Sv+"Object expected");var e,r,n,o=["precision",1,Ov,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(Ev(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(Pv+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(Pv+r+": "+n);this[r]=new this(n)}return this}var Yv=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(Pv+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):qv(e,t.toString())}if("string"!=typeof t)throw Error(Pv+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!Mv.test(t))throw Error(Pv+t);qv(e,t)}if(i.prototype=Dv,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=Gv,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});xv=new Yv(1);const Kv=Yv;function Zv(t){return function(t){if(Array.isArray(t))return Jv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Jv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jv(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Qv=function(t){return t},tm={"@@functional/placeholder":!0},em=function(t){return t===tm},rm=function(t){return function e(){return 0===arguments.length||1===arguments.length&&em(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},nm=function t(e,r){return 1===e?r:rm((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==tm})).length;return a>=e?r.apply(void 0,o):t(e-a,rm((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map((function(t){return em(t)?e.shift():t}));return r.apply(void 0,Zv(i).concat(e))})))}))},om=function(t){return nm(t.length,t)},im=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},am=om((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),um=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},cm=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every((function(t,r){return t===e[r]}))?r:(e=o,r=t.apply(void 0,o))}};const lm={rangeStep:function(t,e,r){for(var n=new Kv(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new Kv(t).abs().log(10).toNumber())+1},interpolateNumber:om((function(t,e,r){var n=+t;return n+r*(+e-n)})),uninterpolateNumber:om((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),uninterpolateTruncation:om((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))}))};function sm(t){return function(t){if(Array.isArray(t))return hm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||pm(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(t,e)||pm(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pm(t,e){if(t){if("string"==typeof t)return hm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hm(t,e):void 0}}function hm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function dm(t){var e=fm(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function ym(t,e,r){if(t.lte(0))return new Kv(0);var n=lm.getDigitCount(t.toNumber()),o=new Kv(10).pow(n),i=t.div(o),a=1!==n?.05:.1,u=new Kv(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?u:new Kv(Math.ceil(u))}function vm(t,e,r){var n=1,o=new Kv(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new Kv(10).pow(lm.getDigitCount(t)-1),o=new Kv(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new Kv(Math.floor(t)))}else 0===t?o=new Kv(Math.floor((e-1)/2)):r||(o=new Kv(Math.floor(t)));var a=Math.floor((e-1)/2),u=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return Qv;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}}(am((function(t){return o.add(new Kv(t-a).mul(n)).toNumber()})),im);return u(0,e)}function mm(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new Kv(0),tickMin:new Kv(0),tickMax:new Kv(0)};var i,a=ym(new Kv(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new Kv(0):(i=new Kv(t).add(e).div(2)).sub(new Kv(i).mod(a));var u=Math.ceil(i.sub(t).div(a).toNumber()),c=Math.ceil(new Kv(e).sub(i).div(a).toNumber()),l=u+c+1;return l>r?mm(t,e,r,n,o+1):(l<r&&(c=e>0?c+(r-l):c,u=e>0?u:u+(r-l)),{step:a,tickMin:i.sub(new Kv(u).mul(a)),tickMax:i.add(new Kv(c).mul(a))})}var bm=cm((function(t){var e=fm(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),u=fm(dm([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var s=l===1/0?[c].concat(sm(im(0,o-1).map((function(){return 1/0})))):[].concat(sm(im(0,o-1).map((function(){return-1/0}))),[l]);return r>n?um(s):s}if(c===l)return vm(c,o,i);var f=mm(c,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=lm.rangeStep(h,d.add(new Kv(.1).mul(p)),p);return r>n?um(y):y})),gm=cm((function(t,e){var r=fm(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=fm(dm([n,o]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[n,o];if(u===c)return[u];var l=Math.max(e,2),s=ym(new Kv(c).sub(u).div(l-1),i,0),f=[].concat(sm(lm.rangeStep(new Kv(u),new Kv(c).sub(new Kv(.99).mul(s)),s)),[c]);return n>o?um(f):f})),wm="Invariant failed";function xm(t,e){if(!t)throw new Error(wm)}var Om=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function jm(t){return(jm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sm(){return Sm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Sm.apply(this,arguments)}function Pm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Am(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Am(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Am(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Em(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function km(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Im(n.key),n)}}function Mm(t,e,r){return e=Tm(e),function(t,e){if(e&&("object"===jm(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_m()?Reflect.construct(e,r||[],Tm(t).constructor):e.apply(t,r))}function _m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_m=function(){return!!t})()}function Tm(t){return(Tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Cm(t,e){return(Cm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Dm(t,e,r){return(e=Im(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Im(t){var e=function(t,e){if("object"!=jm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==jm(e)?e:e+""}var Nm=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Mm(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cm(t,e)}(t,r.Component),e=t,(n=[{key:"render",value:function(){var t=this.props,e=t.offset,n=t.layout,o=t.width,i=t.dataKey,a=t.data,u=t.dataPointFormatter,c=t.xAxis,l=t.yAxis,s=Em(t,Om),f=jr(s,!1);"x"===this.props.direction&&"number"!==c.type&&xm(!1);var p=a.map((function(t){var a=u(t,i),s=a.x,p=a.y,h=a.value,d=a.errorVal;if(!d)return null;var y,v,m=[];if(Array.isArray(d)){var b=Pm(d,2);y=b[0],v=b[1]}else y=v=d;if("vertical"===n){var g=c.scale,w=p+e,x=w+o,O=w-o,j=g(h-y),S=g(h+v);m.push({x1:S,y1:x,x2:S,y2:O}),m.push({x1:j,y1:w,x2:S,y2:w}),m.push({x1:j,y1:x,x2:j,y2:O})}else if("horizontal"===n){var P=l.scale,A=s+e,E=A-o,k=A+o,M=P(h-y),_=P(h+v);m.push({x1:E,y1:_,x2:k,y2:_}),m.push({x1:A,y1:M,x2:A,y2:_}),m.push({x1:E,y1:M,x2:k,y2:M})}return r.createElement(Ir,Sm({className:"recharts-errorBar",key:"bar-".concat(m.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},f),m.map((function(t){return r.createElement("line",Sm({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return r.createElement(Ir,{className:"recharts-errorBars"},p)}}])&&km(e.prototype,n),o&&km(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o}();function Bm(t){return(Bm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lm(Object(r),!0).forEach((function(e){zm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zm(t,e,r){var n;return n=function(t,e){if("object"!=Bm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Bm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Bm(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Dm(Nm,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),Dm(Nm,"displayName","ErrorBar");var Um=function(t){var e=t.children,r=t.formattedGraphicalItems,n=t.legendWidth,o=t.legendContent,i=wr(e,Ec);if(!i)return null;var a,u=Ec.defaultProps,c=void 0!==u?Rm(Rm({},u),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(r||[]).reduce((function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map((function(t){return{type:i.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?Rm(Rm({},r),e.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:c.iconType||a||"square",color:Ym(e),value:i||o,payload:n}})),Rm(Rm(Rm({},c),Ec.getWithHeight(i,n)),{},{payload:a,item:i})};function $m(t){return($m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fm(t){return function(t){if(Array.isArray(t))return qm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return qm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qm(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Wm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wm(Object(r),!0).forEach((function(e){Hm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Hm(t,e,r){var n;return n=function(t,e){if("object"!=$m(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==$m(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vm(t,e,r){return we(t)||we(e)?r:Ye(e)?ge(t,e,r):k(e)?e(t):r}function Gm(t,e,r,n){var o=bv(t,(function(t){return Vm(t,e)}));if("number"===r){var i=o.filter((function(t){return Ge(t)||parseFloat(t)}));return i.length?[fv(i),uv(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!we(t)})):o).map((function(t){return Ye(t)||t instanceof Date?t:""}))}var Ym=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?Xm(Xm({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},Km=function(t,e,r,n,o){var i=gr(e.props.children,Nm).filter((function(t){return function(t,e,r){return!!we(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=Vm(e,r);if(we(n))return t;var o=Array.isArray(n)?[fv(n),uv(n)]:[n,n],i=a.reduce((function(t,r){var n=Vm(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},Zm=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&Km(t,e,i,n)||Gm(t,i,r,o)}));if("number"===r)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},Jm=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Qm=function(t,e,r,n){if(n)return t.map((function(t){return t.coordinate}));var o,i,a=t.map((function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate}));return o||a.push(e),i||a.push(r),a},tb=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,u="scaleBand"===t.realScaleType?n.bandwidth()/2:2,c=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/u:0;return c="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*He(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+c,value:t,offset:c}})).filter((function(t){return!Xe(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+c,value:t,index:e,offset:c}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+c,value:t,offset:c}})):n.domain().map((function(t,e){return{coordinate:n(t)+c,value:o?o[t]:t,index:e,offset:c}}))},eb=new WeakMap,rb=function(t,e){if("function"!=typeof e)return t;eb.has(t)||eb.set(t,new WeakMap);var r=eb.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},nb=1e-4,ob={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var u=Xe(t[a][r][1])?t[a][r][0]:t[a][r][1];u>=0?(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+u,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}co(t,e)}},none:co,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,u=0;a<r;++a)u+=t[a][n][1]||0;o[n][1]+=o[n][0]=-u/2}co(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var u=0,c=0,l=0;u<o;++u){for(var s=t[e[u]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<u;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}c+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,c&&(i-=l/c)}r[a-1][1]+=r[a-1][0]=i,co(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=Xe(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},ib=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=ob[r],i=function(){var t=cn([]),e=lo,r=co,n=so;function o(o){var i,a,u=Array.from(t.apply(this,arguments),fo),c=u.length,l=-1;for(const t of o)for(i=0,++l;i<c;++i)(u[i][l]=[0,+n(t,u[i].key,l,o)]).data=t;for(i=0,a=xn(e(u));i<c;++i)u[a[i]].index=i;return r(u,a),u}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:cn(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:cn(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?lo:"function"==typeof t?t:cn(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?co:t,o):r},o}().keys(n).value((function(t,e){return+Vm(t,e,0)})).order(lo).offset(o);return i(t)};function ab(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!we(o[e.dataKey])){var u=er(r,"value",o[e.dataKey]);if(u)return u.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var c=Vm(o,we(a)?e.dataKey:a);return we(c)?null:e.scale(c)}var ub=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var u=Vm(i,e.dataKey,e.domain[a]);return we(u)?null:e.scale(u)-o/2+n},cb=function(t,e,r){return Object.keys(t).reduce((function(n,o){var i=t[o].stackedData.reduce((function(t,n){var o=n.slice(e,r+1).reduce((function(t,e){return[fv(e.concat([t[0]]).filter(Ge)),uv(e.concat([t[1]]).filter(Ge))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},lb=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sb=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fb=function(t,e,r){if(k(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(Ge(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(lb.test(t[0])){var o=+lb.exec(t[0])[1];n[0]=e[0]-o}else k(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(Ge(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(sb.test(t[1])){var i=+sb.exec(t[1])[1];n[1]=e[1]+i}else k(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},pb=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=Ol(e,(function(t){return t.coordinate})),i=1/0,a=1,u=o.length;a<u;a++){var c=o[a],l=o[a-1];i=Math.min((c.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},hb=function(t,e,r){return t&&t.length?wv(t,ge(r,"type.defaultProps.domain"))?e:t:e},db=function(t,e){var r=t.type.defaultProps?Xm(Xm({},t.type.defaultProps),t.props):t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,u=r.tooltipType,c=r.chartType,l=r.hide;return Xm(Xm({},jr(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:Ym(t),value:Vm(e,n),type:u,payload:e,chartType:c,hide:l})};function yb(t){return(yb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vb(Object(r),!0).forEach((function(e){bb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bb(t,e,r){var n;return n=function(t,e){if("object"!=yb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==yb(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var gb=Math.PI/180,wb=function(t){return 180*t/Math.PI},xb=function(t,e,r,n){return{x:t+Math.cos(-gb*n)*r,y:e+Math.sin(-gb*n)*r}},Ob=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var u=(r-o)/a,c=Math.acos(u);return n>i&&(c=2*Math.PI-c),{radius:a,angle:wb(c),angleInRadian:c}},jb=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},Sb=function(t,e){var r=t.x,n=t.y,o=Ob({x:r,y:n},e),i=o.radius,a=o.angle,u=e.innerRadius,c=e.outerRadius;if(i<u||i>c)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;l=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;l=h>=p&&h<=f}return l?mb(mb({},e),{},{radius:i,angle:jb(h,e)}):null};function Pb(t){return(Pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ab=["offset"];function Eb(t){return function(t){if(Array.isArray(t))return kb(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return kb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kb(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Mb(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function _b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_b(Object(r),!0).forEach((function(e){Cb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Cb(t,e,r){var n;return n=function(t,e){if("object"!=Pb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Pb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Pb(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Db(){return Db=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Db.apply(this,arguments)}var Ib=function(t,e,n){var o,i,a=t.position,u=t.viewBox,c=t.offset,l=t.className,s=u,f=s.cx,p=s.cy,h=s.innerRadius,y=s.outerRadius,v=s.startAngle,m=s.endAngle,b=s.clockWise,g=(h+y)/2,w=function(t,e){return He(e-t)*Math.min(Math.abs(e-t),360)}(v,m),x=w>=0?1:-1;"insideStart"===a?(o=v+x*c,i=b):"insideEnd"===a?(o=m-x*c,i=!b):"end"===a&&(o=m+x*c,i=b),i=w<=0?i:!i;var O=xb(f,p,g,o),j=xb(f,p,g,o+359*(i?1:-1)),S="M".concat(O.x,",").concat(O.y,"\n A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n ").concat(j.x,",").concat(j.y),P=we(t.id)?Ze("recharts-radial-line-"):t.id;return r.createElement("text",Db({},n,{dominantBaseline:"central",className:d("recharts-radial-bar-label",l)}),r.createElement("defs",null,r.createElement("path",{id:P,d:S})),r.createElement("textPath",{xlinkHref:"#".concat(P)},e))};function Nb(t){var n,o=t.offset,i=Tb({offset:void 0===o?5:o},Mb(t,Ab)),a=i.viewBox,u=i.position,c=i.value,l=i.children,s=i.content,f=i.className,p=void 0===f?"":f,h=i.textBreakAll;if(!a||we(c)&&we(l)&&!e.isValidElement(s)&&!k(s))return null;if(e.isValidElement(s))return e.cloneElement(s,i);if(k(s)){if(n=e.createElement(s,i),e.isValidElement(n))return n}else n=function(t){var e=t.value,r=t.formatter,n=we(t.children)?e:t.children;return k(r)?r(n):n}(i);var y=function(t){return"cx"in t&&Ge(t.cx)}(a),v=jr(i,!0);if(y&&("insideStart"===u||"insideEnd"===u||"end"===u))return Ib(i,n,v);var m=y?function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,u=o.innerRadius,c=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=xb(i,a,c+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=xb(i,a,(u+c)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(i):function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,u=i.y,c=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",d=c>=0?1:-1,y=d*n,v=d>0?"end":"start",m=d>0?"start":"end";if("top"===o)return Tb(Tb({},{x:a+c/2,y:u-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(u-r.y,0),width:c}:{});if("bottom"===o)return Tb(Tb({},{x:a+c/2,y:u+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(u+l),0),width:c}:{});if("left"===o){var b={x:a-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"};return Tb(Tb({},b),r?{width:Math.max(b.x-r.x,0),height:l}:{})}if("right"===o){var g={x:a+c+y,y:u+l/2,textAnchor:m,verticalAnchor:"middle"};return Tb(Tb({},g),r?{width:Math.max(r.x+r.width-g.x,0),height:l}:{})}var w=r?{width:c,height:l}:{};return"insideLeft"===o?Tb({x:a+y,y:u+l/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===o?Tb({x:a+c-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?Tb({x:a+c/2,y:u+f,textAnchor:"middle",verticalAnchor:h},w):"insideBottom"===o?Tb({x:a+c/2,y:u+l-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?Tb({x:a+y,y:u+f,textAnchor:m,verticalAnchor:h},w):"insideTopRight"===o?Tb({x:a+c-y,y:u+f,textAnchor:v,verticalAnchor:h},w):"insideBottomLeft"===o?Tb({x:a+y,y:u+l-f,textAnchor:m,verticalAnchor:p},w):"insideBottomRight"===o?Tb({x:a+c-y,y:u+l-f,textAnchor:v,verticalAnchor:p},w):S(o)&&(Ge(o.x)||Ve(o.x))&&(Ge(o.y)||Ve(o.y))?Tb({x:a+Je(o.x,c),y:u+Je(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):Tb({x:a+c/2,y:u+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(i);return r.createElement(gf,Db({className:d("recharts-label",p)},v,m,{breakAll:h}),n)}Nb.displayName="Label";var Bb=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,u=t.radius,c=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,d=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(Ge(d)&&Ge(y)){if(Ge(s)&&Ge(f))return{x:s,y:f,width:d,height:y};if(Ge(p)&&Ge(h))return{x:p,y:h,width:d,height:y}}return Ge(s)&&Ge(f)?{x:s,y:f,width:0,height:0}:Ge(e)&&Ge(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};Nb.parseViewBox=Bb,Nb.renderCallByParent=function(t,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=t.children,a=Bb(t),u=gr(i,Nb).map((function(t,r){return e.cloneElement(t,{viewBox:n||a,key:"label-".concat(r)})}));if(!o)return u;var c=function(t,n){return t?!0===t?r.createElement(Nb,{key:"label-implicit",viewBox:n}):Ye(t)?r.createElement(Nb,{key:"label-implicit",viewBox:n,value:t}):e.isValidElement(t)?t.type===Nb?e.cloneElement(t,{key:"label-implicit",viewBox:n}):r.createElement(Nb,{key:"label-implicit",content:t,viewBox:n}):k(t)?r.createElement(Nb,{key:"label-implicit",content:t,viewBox:n}):S(t)?r.createElement(Nb,Db({viewBox:n},t,{key:"label-implicit"})):null:null}(t.label,n||a);return[c].concat(Eb(u))};const Lb=t((function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}));function Rb(t){return(Rb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var zb=["valueAccessor"],Ub=["data","dataKey","clockWise","id","textBreakAll"];function $b(t){return function(t){if(Array.isArray(t))return Fb(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Fb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fb(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function qb(){return qb=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qb.apply(this,arguments)}function Wb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wb(Object(r),!0).forEach((function(e){Hb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Hb(t,e,r){var n;return n=function(t,e){if("object"!=Rb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Rb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Rb(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vb(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Gb=function(t){return Array.isArray(t.value)?Lb(t.value):t.value};function Yb(t){var e=t.valueAccessor,n=void 0===e?Gb:e,o=Vb(t,zb),i=o.data,a=o.dataKey,u=o.clockWise,c=o.id,l=o.textBreakAll,s=Vb(o,Ub);return i&&i.length?r.createElement(Ir,{className:"recharts-label-list"},i.map((function(t,e){var o=we(a)?n(t,e):Vm(t&&t.payload,a),i=we(c)?{}:{id:"".concat(c,"-").concat(e)};return r.createElement(Nb,qb({},jr(t,!0),s,i,{parentViewBox:t.parentViewBox,value:o,textBreakAll:l,viewBox:Nb.parseViewBox(we(u)?t:Xb(Xb({},t),{},{clockWise:u})),key:"label-".concat(e),index:e}))}))):null}function Kb(t){return(Kb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zb(){return Zb=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Zb.apply(this,arguments)}function Jb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jb(Object(r),!0).forEach((function(e){tg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tg(t,e,r){var n;return n=function(t,e){if("object"!=Kb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Kb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Kb(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Yb.displayName="LabelList",Yb.renderCallByParent=function(t,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=gr(t.children,Yb).map((function(t,r){return e.cloneElement(t,{data:n,key:"labelList-".concat(r)})}));return o?[function(t,e){return t?!0===t?r.createElement(Yb,{key:"labelList-implicit",data:e}):r.isValidElement(t)||k(t)?r.createElement(Yb,{key:"labelList-implicit",data:e,content:t}):S(t)?r.createElement(Yb,qb({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,n)].concat($b(i)):i};var eg=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,l=u*(a?1:-1)+n,s=Math.asin(u/l)/gb,f=c?o:o+i*s,p=c?o-i*s:o;return{center:xb(e,r,l,f),circleTangency:xb(e,r,n,f),lineTangency:xb(e,r,l*Math.cos(s*gb),p),theta:s}},rg=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return He(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),u=i+a,c=xb(e,r,o,i),l=xb(e,r,o,u),s="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>u),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=xb(e,r,n,i),p=xb(e,r,n,u);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=u),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},ng={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},og=function(t){var e=Qb(Qb({},ng),t),n=e.cx,o=e.cy,i=e.innerRadius,a=e.outerRadius,u=e.cornerRadius,c=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,f=e.endAngle,p=e.className;if(a<i||s===f)return null;var h,y=d("recharts-sector",p),v=a-i,m=Je(u,v,0,!0);return h=m>0&&Math.abs(s-f)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,l=t.endAngle,s=He(l-c),f=eg({cx:e,cy:r,radius:o,angle:c,sign:s,cornerRadius:i,cornerIsExternal:u}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=eg({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:u}),v=y.circleTangency,m=y.lineTangency,b=y.theta,g=u?Math.abs(c-l):Math.abs(c-l)-d-b;if(g<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):rg({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:c,endAngle:l});var w="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var x=eg({cx:e,cy:r,radius:n,angle:c,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),O=x.circleTangency,j=x.lineTangency,S=x.theta,P=eg({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),A=P.circleTangency,E=P.lineTangency,k=P.theta,M=u?Math.abs(c-l):Math.abs(c-l)-S-k;if(M<0&&0===i)return"".concat(w,"L").concat(e,",").concat(r,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(A.x,",").concat(A.y,"\n A").concat(n,",").concat(n,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(j.x,",").concat(j.y,"Z")}else w+="L".concat(e,",").concat(r,"Z");return w}({cx:n,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,v/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:s,endAngle:f}):rg({cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f}),r.createElement("path",Zb({},jr(e,!0),{className:y,d:h,role:"img"}))};function ig(t){return(ig="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ag(){return ag=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ag.apply(this,arguments)}function ug(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ug(Object(r),!0).forEach((function(e){lg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ug(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lg(t,e,r){var n;return n=function(t,e){if("object"!=ig(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ig(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ig(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var sg={curveBasisClosed:function(t){return new Yn(t)},curveBasisOpen:function(t){return new Kn(t)},curveBasis:function(t){return new Gn(t)},curveBumpX:function(t){return new kn(t,!0)},curveBumpY:function(t){return new kn(t,!1)},curveLinearClosed:function(t){return new Zn(t)},curveLinear:jn,curveMonotoneX:function(t){return new ro(t)},curveMonotoneY:function(t){return new no(t)},curveNatural:function(t){return new io(t)},curveStep:function(t){return new uo(t,.5)},curveStepAfter:function(t){return new uo(t,1)},curveStepBefore:function(t){return new uo(t,0)}},fg=function(t){return t.x===+t.x&&t.y===+t.y},pg=function(t){return t.x},hg=function(t){return t.y},dg=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,u=t.layout,c=t.connectNulls,l=void 0!==c&&c,s=function(t,e){if(k(t))return t;var r="curve".concat(un(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?sg[r]||jn:sg["".concat(r).concat("vertical"===e?"Y":"X")]}(n,u),f=l?i.filter((function(t){return fg(t)})):i;if(Array.isArray(a)){var p=l?a.filter((function(t){return fg(t)})):a,h=f.map((function(t,e){return cg(cg({},t),{},{base:p[e]})}));return(e="vertical"===u?En().y(hg).x1(pg).x0((function(t){return t.base.x})):En().x(pg).y1(hg).y0((function(t){return t.base.y}))).defined(fg).curve(s),e(h)}return(e="vertical"===u&&Ge(a)?En().y(hg).x1(pg).x0(a):Ge(a)?En().x(pg).y1(hg).y0(a):An().x(pg).y(hg)).defined(fg).curve(s),e(f)},yg=function(t){var e=t.className,n=t.points,o=t.path,i=t.pathRef;if(!(n&&n.length||o))return null;var a=n&&n.length?dg(t):o;return r.createElement("path",ag({},jr(t,!1),cr(t),{className:d("recharts-curve",e),d:a,ref:i}))},vg=Object.getOwnPropertyNames,mg=Object.getOwnPropertySymbols,bg=Object.prototype.hasOwnProperty;function gg(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function wg(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var u=t(e,r,n);return o.delete(e),o.delete(r),u}}function xg(t){return vg(t).concat(mg(t))}var Og=Object.hasOwn||function(t,e){return bg.call(t,e)};function jg(t,e){return t===e||!t&&!e&&t!=t&&e!=e}var Sg=Object.getOwnPropertyDescriptor,Pg=Object.keys;function Ag(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function Eg(t,e){return jg(t.getTime(),e.getTime())}function kg(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function Mg(t,e){return t===e}function _g(t,e,r){var n=t.size;if(n!==e.size)return!1;if(!n)return!0;for(var o,i,a=new Array(n),u=t.entries(),c=0;(o=u.next())&&!o.done;){for(var l=e.entries(),s=!1,f=0;(i=l.next())&&!i.done;)if(a[f])f++;else{var p=o.value,h=i.value;if(r.equals(p[0],h[0],c,f,t,e,r)&&r.equals(p[1],h[1],p[0],h[0],t,e,r)){s=a[f]=!0;break}f++}if(!s)return!1;c++}return!0}var Tg=jg;function Cg(t,e,r){var n=Pg(t),o=n.length;if(Pg(e).length!==o)return!1;for(;o-- >0;)if(!zg(t,e,r,n[o]))return!1;return!0}function Dg(t,e,r){var n,o,i,a=xg(t),u=a.length;if(xg(e).length!==u)return!1;for(;u-- >0;){if(!zg(t,e,r,n=a[u]))return!1;if(o=Sg(t,n),i=Sg(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function Ig(t,e){return jg(t.valueOf(),e.valueOf())}function Ng(t,e){return t.source===e.source&&t.flags===e.flags}function Bg(t,e,r){var n=t.size;if(n!==e.size)return!1;if(!n)return!0;for(var o,i,a=new Array(n),u=t.values();(o=u.next())&&!o.done;){for(var c=e.values(),l=!1,s=0;(i=c.next())&&!i.done;){if(!a[s]&&r.equals(o.value,i.value,o.value,i.value,t,e,r)){l=a[s]=!0;break}s++}if(!l)return!1}return!0}function Lg(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function Rg(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function zg(t,e,r,n){return!("_owner"!==n&&"__o"!==n&&"__v"!==n||!t.$$typeof&&!e.$$typeof)||Og(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}var Ug=Array.isArray,$g="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Fg=Object.assign,qg=Object.prototype.toString.call.bind(Object.prototype.toString);var Wg=Xg();function Xg(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,u=void 0!==a&&a,c=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?Dg:Ag,areDatesEqual:Eg,areErrorsEqual:kg,areFunctionsEqual:Mg,areMapsEqual:n?gg(_g,Dg):_g,areNumbersEqual:Tg,areObjectsEqual:n?Dg:Cg,arePrimitiveWrappersEqual:Ig,areRegExpsEqual:Ng,areSetsEqual:n?gg(Bg,Dg):Bg,areTypedArraysEqual:n?Dg:Lg,areUrlsEqual:Rg};if(r&&(o=Fg({},o,r(o))),e){var i=wg(o.areArraysEqual),a=wg(o.areMapsEqual),u=wg(o.areObjectsEqual),c=wg(o.areSetsEqual);o=Fg({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:c})}return o}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areErrorsEqual,o=t.areFunctionsEqual,i=t.areMapsEqual,a=t.areNumbersEqual,u=t.areObjectsEqual,c=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,s=t.areSetsEqual,f=t.areTypedArraysEqual,p=t.areUrlsEqual;return function(t,h,d){if(t===h)return!0;if(null==t||null==h)return!1;var y=typeof t;if(y!==typeof h)return!1;if("object"!==y)return"number"===y?a(t,h,d):"function"===y&&o(t,h,d);var v=t.constructor;if(v!==h.constructor)return!1;if(v===Object)return u(t,h,d);if(Ug(t))return e(t,h,d);if(null!=$g&&$g(t))return f(t,h,d);if(v===Date)return r(t,h,d);if(v===RegExp)return l(t,h,d);if(v===Map)return i(t,h,d);if(v===Set)return s(t,h,d);var m=qg(t);return"[object Date]"===m?r(t,h,d):"[object RegExp]"===m?l(t,h,d):"[object Map]"===m?i(t,h,d):"[object Set]"===m?s(t,h,d):"[object Object]"===m?"function"!=typeof t.then&&"function"!=typeof h.then&&u(t,h,d):"[object URL]"===m?p(t,h,d):"[object Error]"===m?n(t,h,d):"[object Arguments]"===m?u(t,h,d):("[object Boolean]"===m||"[object Number]"===m||"[object String]"===m)&&c(t,h,d)}}(c);return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var u=n(),c=u.cache,l=void 0===c?e?new WeakMap:void 0:c,s=u.meta;return r(t,a,{cache:l,equals:o,meta:s,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:i,equals:o?o(l):(e=l,function(t,r,n,o,i,a,u){return e(t,r,u)}),strict:u})}function Hg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function Vg(t){return(Vg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gg(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Yg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yg(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Kg(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=Gg(n),i=o[0],a=o.slice(1);return"number"==typeof i?void Hg(r.bind(null,a),i):(r(i),void Hg(r.bind(null,a)))}"object"===Vg(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Zg(t){return(Zg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jg(Object(r),!0).forEach((function(e){tw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Zg(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Zg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Zg(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Xg({strict:!0}),Xg({circular:!0}),Xg({circular:!0,strict:!0}),Xg({createInternalComparator:function(){return jg}}),Xg({strict:!0,createInternalComparator:function(){return jg}}),Xg({circular:!0,createInternalComparator:function(){return jg}}),Xg({circular:!0,createInternalComparator:function(){return jg},strict:!0});var ew=function(t){return t},rw=function(t,e){return Object.keys(e).reduce((function(r,n){return Qg(Qg({},r),{},tw({},n,t(n,e[n])))}),{})},nw=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")};function ow(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||aw(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iw(t){return function(t){if(Array.isArray(t))return uw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||aw(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aw(t,e){if(t){if("string"==typeof t)return uw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?uw(t,e):void 0}}function uw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var cw=1e-4,lw=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},sw=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},fw=function(t,e){return function(r){var n=lw(t,e);return sw(n,r)}},pw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var u=e[0].split("(");if("cubic-bezier"===u[0]&&4===u[1].split(")")[0].split(",").length){var c=ow(u[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),4);n=c[0],o=c[1],i=c[2],a=c[3]}}var l,s,f=fw(n,i),p=fw(o,a),h=(l=n,s=i,function(t){var e=lw(l,s),r=[].concat(iw(e.map((function(t,e){return t*e})).slice(1)),[0]);return sw(r,t)}),d=function(t){for(var e,r=t>1?1:t,n=r,o=0;o<8;++o){var i=f(n)-r,a=h(n);if(Math.abs(i-r)<cw||a<cw)return p(n);n=(e=n-i/a)>1?1:e<0?0:e}return p(n)};return d.isStepper=!1,d},hw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return pw(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,u=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,u=n*a/1e3+t;return Math.abs(u-e)<cw&&Math.abs(i)<cw?[e,0]:[u,i]};return u.isStepper=!0,u.dt=a,u}();default:if("cubic-bezier"===n.split("(")[0])return pw(n)}return"function"==typeof n?n:null};function dw(t){return(dw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yw(t){return function(t){if(Array.isArray(t))return xw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ww(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vw(Object(r),!0).forEach((function(e){bw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==dw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===dw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||ww(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ww(t,e){if(t){if("string"==typeof t)return xw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xw(t,e):void 0}}function xw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ow=function(t,e,r){return t+(e-t)*r},jw=function(t){return t.from!==t.to},Sw=function t(e,r,n){var o=rw((function(t,r){if(jw(r)){var n=gw(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return mw(mw({},r),{},{from:o,velocity:i})}return r}),r);return n<1?rw((function(t,e){return jw(e)?mw(mw({},e),{},{velocity:Ow(e.velocity,o[t].velocity,n),from:Ow(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)};const Pw=function(t,e,r,n,o){var i,a,u,c,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return mw(mw({},r),{},bw({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return mw(mw({},r),{},bw({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){u||(u=n);var i=(n-u)/r.dt;f=Sw(r,f,i),o(mw(mw(mw({},t),e),rw((function(t,e){return e.from}),f))),u=n,Object.values(f).filter(jw).length&&(p=requestAnimationFrame(h))}:function(i){c||(c=i);var a=(i-c)/n,u=rw((function(t,e){return Ow.apply(void 0,yw(e).concat([r(a)]))}),s);if(o(mw(mw(mw({},t),e),u)),a<1)p=requestAnimationFrame(h);else{var l=rw((function(t,e){return Ow.apply(void 0,yw(e).concat([r(1)]))}),s);o(mw(mw(mw({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function Aw(t){return(Aw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ew=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function kw(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Mw(t){return function(t){if(Array.isArray(t))return _w(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _w(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _w(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Tw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Cw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tw(Object(r),!0).forEach((function(e){Dw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Dw(t,e,r){return(e=Nw(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Iw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Nw(n.key),n)}}function Nw(t){var e=function(t,e){if("object"!==Aw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Aw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Aw(e)?e:String(e)}function Bw(t,e){return(Bw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Lw(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Uw(t);if(e){var o=Uw(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Rw(this,r)}}function Rw(t,e){if(e&&("object"===Aw(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return zw(t)}function zw(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uw(t){return(Uw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var $w=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bw(t,e)}(a,e.PureComponent);var t,n,o,i=Lw(a);function a(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);var n=(r=i.call(this,t,e)).props,o=n.isActive,u=n.attributeName,c=n.from,l=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(zw(r)),r.changeStyle=r.changeStyle.bind(zw(r)),!o||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),Rw(r);if(s&&s.length)r.state={style:s[0].style};else if(c){if("function"==typeof f)return r.state={style:c},Rw(r);r.state={style:u?Dw({},u,c):c}}else r.state={style:{}};return r}return t=a,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,u=e.from,c=this.state.style;if(n)if(r){if(!(Wg(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?u:t.to;if(this.state&&c){var f={style:o?Dw({},o,s):s};(o&&c[o]!==s||!o&&c!==s)&&this.setState(f)}this.runAnimation(Cw(Cw({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?Dw({},o,a):a};this.state&&c&&(o&&c[o]!==a||!o&&c!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,u=t.onAnimationEnd,c=t.onAnimationStart,l=Pw(r,n,hw(i),o,this.changeStyle);this.manager.start([c,a,function(){e.stopJSAnimation=l()},o,u])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,u=i.duration,c=void 0===u?0:u;return this.manager.start([o].concat(Mw(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,u=void 0===a?"ease":a,c=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(Mw(t),[e.runJSAnimation.bind(e,{from:f.style,to:c,duration:i,easing:u}),i]);var h=nw(p,i,u),d=Cw(Cw(Cw({},f.style),c),{},{transition:h});return[].concat(Mw(t),[d,i,s]).filter(ew)}),[a,Math.max(c,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Kg());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,u=t.onAnimationEnd,c=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(c.length>1)this.runStepAnimation(t);else{var f=n?Dw({},n,o):o,p=nw(Object.keys(f),r,i);s.start([a,e,Cw(Cw({},f),{},{transition:p}),r,u])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,n=t.children;t.begin;var o=t.duration;t.attributeName,t.easing;var i=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var a=kw(t,Ew),u=e.Children.count(n),c=this.state.style;if("function"==typeof n)return n(c);if(!i||0===u||o<=0)return n;var l=function(t){var r=t.props,n=r.style,o=void 0===n?{}:n,i=r.className;return e.cloneElement(t,Cw(Cw({},a),{},{style:Cw(Cw({},o),c),className:i}))};return 1===u?l(e.Children.only(n)):r.createElement("div",null,e.Children.map(n,(function(t){return l(t)})))}}])&&Iw(t.prototype,n),o&&Iw(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}();$w.displayName="Animate",$w.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},$w.propTypes={from:p.oneOfType([p.object,p.string]),to:p.oneOfType([p.object,p.string]),attributeName:p.string,duration:p.number,begin:p.number,easing:p.oneOfType([p.string,p.func]),steps:p.arrayOf(p.shape({duration:p.number.isRequired,style:p.object.isRequired,easing:p.oneOfType([p.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),p.func]),properties:p.arrayOf("string"),onAnimationEnd:p.func})),children:p.oneOfType([p.node,p.func]),isActive:p.bool,canBegin:p.bool,onAnimationEnd:p.func,shouldReAnimate:p.bool,onAnimationStart:p.func,onAnimationReStart:p.func};const Fw=$w;function qw(t){return(qw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ww(){return Ww=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ww.apply(this,arguments)}function Xw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Hw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hw(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Vw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Gw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vw(Object(r),!0).forEach((function(e){Yw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yw(t,e,r){var n;return n=function(t,e){if("object"!=qw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=qw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==qw(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Kw=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),u=n>=0?1:-1,c=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(e)),i+="L ".concat(t+r-c*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+u*s[1])),i+="L ".concat(t+r,",").concat(e+n-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-c*s[2],",").concat(e+n)),i+="L ".concat(t+c*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+c*p,",").concat(e,"\n L ").concat(t+r-c*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+u*p,"\n L ").concat(t+r,",").concat(e+n-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-c*p,",").concat(e+n,"\n L ").concat(t+c*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-u*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},Zw=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+u),f=Math.max(i,i+u);return r>=c&&r<=l&&n>=s&&n<=f}return!1},Jw={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Qw=function(t){var n=Gw(Gw({},Jw),t),o=e.useRef(),i=Xw(e.useState(-1),2),a=i[0],u=i[1];e.useEffect((function(){if(o.current&&o.current.getTotalLength)try{var t=o.current.getTotalLength();t&&u(t)}catch(e){}}),[]);var c=n.x,l=n.y,s=n.width,f=n.height,p=n.radius,h=n.className,y=n.animationEasing,v=n.animationDuration,m=n.animationBegin,b=n.isAnimationActive,g=n.isUpdateAnimationActive;if(c!==+c||l!==+l||s!==+s||f!==+f||0===s||0===f)return null;var w=d("recharts-rectangle",h);return g?r.createElement(Fw,{canBegin:a>0,from:{width:s,height:f,x:c,y:l},to:{width:s,height:f,x:c,y:l},duration:v,animationEasing:y,isActive:g},(function(t){var e=t.width,i=t.height,u=t.x,c=t.y;return r.createElement(Fw,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,isActive:b,easing:y},r.createElement("path",Ww({},jr(n,!0),{className:w,d:Kw(u,c,e,i,p),ref:o})))})):r.createElement("path",Ww({},jr(n,!0),{className:w,d:Kw(c,l,s,f,p)}))};function tx(){return tx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},tx.apply(this,arguments)}var ex=function(t){var e=t.cx,n=t.cy,o=t.r,i=d("recharts-dot",t.className);return e===+e&&n===+n&&o===+o?r.createElement("circle",tx({},jr(t,!1),cr(t),{className:i,cx:e,cy:n,r:o})):null};function rx(t){return(rx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var nx=["x","y","top","left","width","height","className"];function ox(){return ox=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ox.apply(this,arguments)}function ix(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ax(t,e,r){var n;return n=function(t,e){if("object"!=rx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==rx(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ux(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var cx=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},lx=function(t){var e=t.x,n=void 0===e?0:e,o=t.y,i=void 0===o?0:o,a=t.top,u=void 0===a?0:a,c=t.left,l=void 0===c?0:c,s=t.width,f=void 0===s?0:s,p=t.height,h=void 0===p?0:p,y=t.className,v=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ix(Object(r),!0).forEach((function(e){ax(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ix(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:n,y:i,top:u,left:l,width:f,height:h},ux(t,nx));return Ge(n)&&Ge(i)&&Ge(f)&&Ge(h)&&Ge(u)&&Ge(l)?r.createElement("path",ox({},jr(v,!0),{className:d("recharts-cross",y),d:cx(n,i,f,h,u,l)})):null},sx=n,fx=o;const px=t((function(t){return!0===t||!1===t||fx(t)&&"[object Boolean]"==sx(t)}));function hx(t){return(hx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dx(){return dx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},dx.apply(this,arguments)}function yx(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return vx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vx(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mx(Object(r),!0).forEach((function(e){gx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gx(t,e,r){var n;return n=function(t,e){if("object"!=hx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=hx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==hx(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var wx=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),i+="L ".concat(t+r-a/2-n,",").concat(e+o),i+="L ".concat(t,",").concat(e," Z")},xx={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ox=function(t){var n=bx(bx({},xx),t),o=e.useRef(),i=yx(e.useState(-1),2),a=i[0],u=i[1];e.useEffect((function(){if(o.current&&o.current.getTotalLength)try{var t=o.current.getTotalLength();t&&u(t)}catch(e){}}),[]);var c=n.x,l=n.y,s=n.upperWidth,f=n.lowerWidth,p=n.height,h=n.className,y=n.animationEasing,v=n.animationDuration,m=n.animationBegin,b=n.isUpdateAnimationActive;if(c!==+c||l!==+l||s!==+s||f!==+f||p!==+p||0===s&&0===f||0===p)return null;var g=d("recharts-trapezoid",h);return b?r.createElement(Fw,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:l},to:{upperWidth:s,lowerWidth:f,height:p,x:c,y:l},duration:v,animationEasing:y,isActive:b},(function(t){var e=t.upperWidth,i=t.lowerWidth,u=t.height,c=t.x,l=t.y;return r.createElement(Fw,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,easing:y},r.createElement("path",dx({},jr(n,!0),{className:g,d:wx(c,l,e,i,u),ref:o})))})):r.createElement("g",null,r.createElement("path",dx({},jr(n,!0),{className:g,d:wx(c,l,s,f,p)})))},jx=["option","shapeType","propTransformer","activeClassName","isActive"];function Sx(t){return(Sx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Px(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Ax(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ex(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ax(Object(r),!0).forEach((function(e){kx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ax(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kx(t,e,r){var n;return n=function(t,e){if("object"!=Sx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Sx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Sx(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mx(t,e){return Ex(Ex({},e),t)}function _x(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return r.createElement(Qw,n);case"trapezoid":return r.createElement(Ox,n);case"sector":return r.createElement(og,n);case"symbols":if(function(t){return"symbols"===t}(e))return r.createElement(Oo,n);break;default:return null}}function Tx(t){var n,o=t.option,i=t.shapeType,a=t.propTransformer,u=void 0===a?Mx:a,c=t.activeClassName,l=void 0===c?"recharts-active-shape":c,s=t.isActive,p=Px(t,jx);if(e.isValidElement(o))n=e.cloneElement(o,Ex(Ex({},p),function(t){return e.isValidElement(t)?t.props:t}(o)));else if(k(o))n=o(p);else if(f(o)&&!px(o)){var h=u(o,p);n=r.createElement(_x,{shapeType:i,elementProps:h})}else{var d=p;n=r.createElement(_x,{shapeType:i,elementProps:d})}return s?r.createElement(Ir,{className:l},n):n}function Cx(t,e){return null!=e&&"trapezoids"in t.props}function Dx(t,e){return null!=e&&"sectors"in t.props}function Ix(t,e){return null!=e&&"points"in t.props}function Nx(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function Bx(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function Lx(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function Rx(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return Cx(t,e)?r="trapezoids":Dx(t,e)?r="sectors":Ix(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return Cx(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:Dx(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:Ix(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=wv(i,t),u=r.props[o].filter((function(t){var n=function(t,e){var r;return Cx(t,e)?r=Nx:Dx(t,e)?r=Bx:Ix(t,e)&&(r=Lx),r}(r,e);return n(t,e)})),c=r.props[o].indexOf(u[u.length-1]);return a&&n===c}));return n.indexOf(a[a.length-1])}var zx=Math.ceil,Ux=Math.max;var $x=gs,Fx=1/0;var qx=function(t){return t?(t=$x(t))===Fx||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Wx=function(t,e,r,n){for(var o=-1,i=Ux(zx((e-t)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=t,t+=r;return a},Xx=bl,Hx=qx;const Vx=t(function(t){return function(e,r,n){return n&&"number"!=typeof n&&Xx(e,r,n)&&(r=n=void 0),e=Hx(e),void 0===r?(r=e,e=0):r=Hx(r),n=void 0===n?e<r?1:-1:Hx(n),Wx(e,r,n,t)}}());function Gx(t){return(Gx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yx(Object(r),!0).forEach((function(e){Zx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zx(t,e,r){var n;return n=function(t,e){if("object"!=Gx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Gx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Gx(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Jx=["Webkit","Moz","O","ms"];function Qx(t){return(Qx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tO(){return tO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},tO.apply(this,arguments)}function eO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?eO(Object(r),!0).forEach((function(e){cO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,lO(n.key),n)}}function oO(t,e,r){return e=aO(e),function(t,e){if(e&&("object"===Qx(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,iO()?Reflect.construct(e,r||[],aO(t).constructor):e.apply(t,r))}function iO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iO=function(){return!!t})()}function aO(t){return(aO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function uO(t,e){return(uO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function cO(t,e,r){return(e=lO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lO(t){var e=function(t,e){if("object"!=Qx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Qx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qx(e)?e:e+""}var sO=function(t){return t.changedTouches&&!!t.changedTouches.length},fO=function(){function t(e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),cO(r=oO(this,t,[e]),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),cO(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),cO(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:e,startIndex:o})})),r.detachDragEndListener()})),cO(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),cO(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),cO(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),cO(r,"handleSlideDragStart",(function(t){var e=sO(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uO(t,e)}(t,e.PureComponent),n=t,i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,o=t.width,i=t.height,a=t.stroke,u=Math.floor(n+i/2)-1;return r.createElement(r.Fragment,null,r.createElement("rect",{x:e,y:n,width:o,height:i,fill:a,stroke:"none"}),r.createElement("line",{x1:e+1,y1:u,x2:e+o-1,y2:u,fill:"none",stroke:"#fff"}),r.createElement("line",{x1:e+1,y1:u+2,x2:e+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return r.isValidElement(e)?r.cloneElement(e,n):k(e)?e(n):t.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,u=t.startIndex,c=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return rO({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var u=e.length,c=Yf().domain(Vx(0,u)).range([o,o+i-a]),l=c.domain().map((function(t){return c(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(n),scale:c,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],(o=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var r=e.startX,n=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,u=i.data.length-1,c=Math.min(r,n),l=Math.max(r,n),s=t.getIndexInRange(o,c),f=t.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===u?u:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=Vm(r[t],o,t);return k(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,u=i.width,c=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-c-o,a+u-c-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=sO(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],u=this.props,c=u.x,l=u.width,s=u.travellerWidth,f=u.onChange,p=u.gap,h=u.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,c+l-s-a):y<0&&(y=Math.max(y,c-a)),d[n]=a+y;var v=this.getIndex(d),m=v.startIndex,b=v.endIndex;this.setState(cO(cO({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=h.length-1,("startX"===n&&(o>i?m%p==0:b%p==0)||o<i&&b===t||"endX"===n&&(o>i?b%p==0:m%p==0)||o>i&&b===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,u=this.state[e],c=o.indexOf(u);if(-1!==c){var l=c+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(cO({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,o=t.width,i=t.height,a=t.fill,u=t.stroke;return r.createElement("rect",{stroke:u,fill:a,x:e,y:n,width:o,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,n=t.x,o=t.y,i=t.width,a=t.height,u=t.data,c=t.children,l=t.padding,s=e.Children.only(c);return s?r.cloneElement(s,{x:n,y:o,width:i,height:a,margin:l,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(e,n){var o,i,a=this,u=this.props,c=u.y,l=u.travellerWidth,s=u.height,f=u.traveller,p=u.ariaLabel,h=u.data,d=u.startIndex,y=u.endIndex,v=Math.max(e,this.props.x),m=rO(rO({},jr(this.props,!1)),{},{x:v,y:c,width:l,height:s}),b=p||"Min value: ".concat(null===(o=h[d])||void 0===o?void 0:o.name,", Max value: ").concat(null===(i=h[y])||void 0===i?void 0:i.name);return r.createElement(Ir,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,n))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var n=this.props,o=n.y,i=n.height,a=n.stroke,u=n.travellerWidth,c=Math.min(t,e)+u,l=Math.max(Math.abs(e-t)-u,0);return r.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,o=t.y,i=t.height,a=t.travellerWidth,u=t.stroke,c=this.state,l=c.startX,s=c.endX,f={pointerEvents:"none",fill:u};return r.createElement(Ir,{className:"recharts-brush-texts"},r.createElement(gf,tO({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:o+i/2},f),this.getTextOfTick(e)),r.createElement(gf,tO({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:o+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,o=t.children,i=t.x,a=t.y,u=t.width,c=t.height,l=t.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,y=s.isSlideMoving,v=s.isTravellerMoving,m=s.isTravellerFocused;if(!e||!e.length||!Ge(i)||!Ge(a)||!Ge(u)||!Ge(c)||u<=0||c<=0)return null;var b=d("recharts-brush",n),g=1===r.Children.count(o),w=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=Jx.reduce((function(t,n){return Kx(Kx({},t),{},Zx({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return r.createElement(Ir,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||y||v||m||l)&&this.renderText())}}])&&nO(n.prototype,o),i&&nO(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}();cO(fO,"displayName","Brush"),cO(fO,"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 pO=Rc;var hO=Jo,dO=Vu,yO=function(t,e){var r;return pO(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r},vO=i,mO=bl;const bO=t((function(t,e,r){var n=vO(t)?hO:yO;return r&&mO(t,e,r)&&(e=void 0),n(t,dO(e))}));var gO=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},wO=il;var xO=function(t,e,r){"__proto__"==e&&wO?wO(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},OO=Bc,jO=Vu;const SO=t((function(t,e){var r={};return e=jO(e),OO(t,(function(t,n,o){xO(r,n,e(t,n,o))})),r}));var PO=Rc;var AO=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0},EO=function(t,e){var r=!0;return PO(t,(function(t,n,o){return r=!!e(t,n,o)})),r},kO=Vu,MO=i,_O=bl;const TO=t((function(t,e,r){var n=MO(t)?AO:EO;return r&&_O(t,e,r)&&(e=void 0),n(t,kO(e))}));var CO=["x","y"];function DO(t){return(DO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function IO(){return IO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},IO.apply(this,arguments)}function NO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function BO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?NO(Object(r),!0).forEach((function(e){LO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function LO(t,e,r){var n;return n=function(t,e){if("object"!=DO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=DO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==DO(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function zO(t,e){var r=t.x,n=t.y,o=RO(t,CO),i="".concat(r),a=parseInt(i,10),u="".concat(n),c=parseInt(u,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return BO(BO(BO(BO(BO({},e),o),a?{x:a}:{}),c?{y:c}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function UO(t){return r.createElement(Tx,IO({shapeType:"rectangle",propTransformer:zO,activeClassName:"recharts-active-bar"},t))}var $O,FO=["value","background"];function qO(t){return(qO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function WO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function XO(){return XO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},XO.apply(this,arguments)}function HO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function VO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?HO(Object(r),!0).forEach((function(e){QO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function GO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tj(n.key),n)}}function YO(t,e,r){return e=ZO(e),function(t,e){if(e&&("object"===qO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,KO()?Reflect.construct(e,r||[],ZO(t).constructor):e.apply(t,r))}function KO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KO=function(){return!!t})()}function ZO(t){return(ZO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function JO(t,e){return(JO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function QO(t,e,r){return(e=tj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tj(t){var e=function(t,e){if("object"!=qO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=qO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==qO(e)?e:e+""}var ej=function(){function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return QO(e=YO(this,t,[].concat(n)),"state",{isAnimationFinished:!1}),QO(e,"id",Ze("recharts-bar-")),QO(e,"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),QO(e,"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&JO(t,e)}(t,e.PureComponent),n=t,i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],(o=[{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props,o=n.shape,i=n.dataKey,a=n.activeIndex,u=n.activeBar,c=jr(this.props,!1);return t&&t.map((function(t,n){var l=n===a,s=l?u:o,f=VO(VO(VO({},c),t),{},{isActive:l,option:s,index:n,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return r.createElement(Ir,XO({className:"recharts-bar-rectangle"},lr(e.props,t,n),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(n)}),r.createElement(UO,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,n=e.data,o=e.layout,i=e.isAnimationActive,a=e.animationBegin,u=e.animationDuration,c=e.animationEasing,l=e.animationId,s=this.state.prevData;return r.createElement(Fw,{begin:a,duration:u,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,a=n.map((function(t,e){var r=s&&s[e];if(r){var n=tr(r.x,t.x),a=tr(r.y,t.y),u=tr(r.width,t.width),c=tr(r.height,t.height);return VO(VO({},t),{},{x:n(i),y:a(i),width:u(i),height:c(i)})}if("horizontal"===o){var l=tr(0,t.height)(i);return VO(VO({},t),{},{y:t.y+t.height-l,height:l})}var f=tr(0,t.width)(i);return VO(VO({},t),{},{width:f})}));return r.createElement(Ir,null,t.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&wv(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,n=e.data,o=e.dataKey,i=e.activeIndex,a=jr(this.props.background,!1);return n.map((function(e,n){e.value;var u=e.background,c=WO(e,FO);if(!u)return null;var l=VO(VO(VO(VO(VO({},c),{},{fill:"#eee"},u),a),lr(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:o,index:n,className:"recharts-bar-background-rectangle"});return r.createElement(UO,XO({key:"background-bar-".concat(n),option:t.props.background,isActive:n===i},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,i=n.xAxis,a=n.yAxis,u=n.layout,c=gr(n.children,Nm);if(!c)return null;var l="vertical"===u?o[0].height/2:o[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:Vm(t,e)}},f={clipPath:t?"url(#clipPath-".concat(e,")"):null};return r.createElement(Ir,f,c.map((function(t){return r.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:u,offset:l,dataPointFormatter:s})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,o=t.className,i=t.xAxis,a=t.yAxis,u=t.left,c=t.top,l=t.width,s=t.height,f=t.isAnimationActive,p=t.background,h=t.id;if(e||!n||!n.length)return null;var y=this.state.isAnimationFinished,v=d("recharts-bar",o),m=i&&i.allowDataOverflow,b=a&&a.allowDataOverflow,g=m||b,w=we(h)?this.id:h;return r.createElement(Ir,{className:v},m||b?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(w)},r.createElement("rect",{x:m?u:u-l/2,y:b?c:c-s/2,width:m?l:2*l,height:b?s:2*s}))):null,r.createElement(Ir,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(w,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,w),(!f||y)&&Yb.renderCallByParent(this.props,n))}}])&&GO(n.prototype,o),i&&GO(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}();function rj(t){return(rj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nj(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,uj(n.key),n)}}function oj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ij(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oj(Object(r),!0).forEach((function(e){aj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function aj(t,e,r){return(e=uj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uj(t){var e=function(t,e){if("object"!=rj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rj(e)?e:e+""}$O=ej,QO(ej,"displayName","Bar"),QO(ej,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Yl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),QO(ej,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var d=e.layout,y=r.type.defaultProps,v=void 0!==y?VO(VO({},y),r.props):r.props,m=v.dataKey,b=v.children,g=v.minPointSize,w="horizontal"===d?a:i,x=l?w.scale.domain():null,O=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:w}),j=gr(b,Ns),S=f.map((function(t,e){var n,f,p,y,v,b;l?n=function(t,e){if(!e||2!==e.length||!Ge(e[0])||!Ge(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!Ge(t[0])||t[0]<r)&&(o[0]=r),(!Ge(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=Vm(t,m),Array.isArray(n)||(n=[O,n]));var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||xm(!1),e)}}(g,$O.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var S,P=[a.scale(n[0]),a.scale(n[1])],A=P[0],E=P[1];f=ub({axis:i,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(S=null!=E?E:A)&&void 0!==S?S:void 0,y=h.size;var k=A-E;if(v=Number.isNaN(k)?0:k,b={x:f,y:a.y,width:y,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var M=He(v||w)*(Math.abs(w)-Math.abs(v));p-=M,v+=M}}else{var _=[i.scale(n[0]),i.scale(n[1])],T=_[0],C=_[1];if(f=T,p=ub({axis:a,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),y=C-T,v=h.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(w)>0&&Math.abs(y)<Math.abs(w))y+=He(y||w)*(Math.abs(w)-Math.abs(y))}return VO(VO(VO({},t),{},{x:f,y:p,width:y,height:v,value:l?n:n[1],payload:t,background:b},j&&j[e]&&j[e].props),{},{tooltipPayload:[db(r,t)],tooltipPosition:{x:f+y/2,y:p+v/2}})}));return VO({data:S,layout:d},p)}));var cj=function(t,e,r,n,o){var i=t.width,a=t.height,u=t.layout,l=t.children,s=Object.keys(e),f={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},p=!!wr(l,ej);return s.reduce((function(i,a){var l,s,h,d,y,v=e[a],m=v.orientation,b=v.domain,g=v.padding,w=void 0===g?{}:g,x=v.mirror,O=v.reversed,j="".concat(m).concat(x?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var S=b[1]-b[0],P=1/0,A=v.categoricalDomain.sort();if(A.forEach((function(t,e){e>0&&(P=Math.min((t||0)-(A[e-1]||0),P))})),Number.isFinite(P)){var E=P/S,M="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(l=E*M/2),"no-gap"===v.padding){var _=Je(t.barCategoryGap,E*M),T=E*M/2;l=T-_-(T-_)/M*_}}}s="xAxis"===n?[r.left+(w.left||0)+(l||0),r.left+r.width-(w.right||0)-(l||0)]:"yAxis"===n?"horizontal"===u?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(l||0),r.top+r.height-(w.bottom||0)-(l||0)]:v.range,O&&(s=[s[1],s[0]]);var C=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:Vf(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:vh(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Yf(),realScaleType:"point"}:"category"===o?{scale:Vf(),realScaleType:"band"}:{scale:vh(),realScaleType:"linear"};if(c(n)){var u="scale".concat(un(n));return{scale:(ev[u]||Yf)(),realScaleType:ev[u]?u:"point"}}return k(n)?{scale:n}:{scale:Yf(),realScaleType:"point"}}(v,o,p),D=C.scale,I=C.realScaleType;D.domain(b).range(s),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-nb,i=Math.max(n[0],n[1])+nb,a=t(e[0]),u=t(e[r-1]);(a<o||a>i||u<o||u>i)&&t.domain([e[0],e[r-1]])}}(D);var N=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,u=r||e.scale;if("auto"!==u&&"linear"!==u)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var c=t.domain();if(!c.length)return null;var l=bm(c,o,a);return t.domain([fv(l),uv(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:gm(s,o,a)}}return null}(D,ij(ij({},v),{},{realScaleType:I}));"xAxis"===n?(y="top"===m&&!x||"bottom"===m&&x,h=r.left,d=f[j]-y*v.height):"yAxis"===n&&(y="left"===m&&!x||"right"===m&&x,h=f[j]-y*v.width,d=r.top);var B=ij(ij(ij({},v),N),{},{realScaleType:I,x:h,y:d,scale:D,width:"xAxis"===n?r.width:v.width,height:"yAxis"===n?r.height:v.height});return B.bandSize=pb(B,N),v.hide||"xAxis"!==n?v.hide||(f[j]+=(y?-1:1)*B.width):f[j]+=(y?-1:1)*B.height,ij(ij({},i),{},aj({},a,B))}),{})},lj=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},sj=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&nj(e.prototype,r),n&&nj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();aj(sj,"EPS",1e-4);var fj=function(t){var e=Object.keys(t).reduce((function(e,r){return ij(ij({},e),{},aj({},r,sj.create(t[r])))}),{});return ij(ij({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return SO(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return TO(t,(function(t,r){return e[r].isInRange(t)}))}})};var pj=Vu,hj=ba,dj=Oa;var yj=function(t){return function(e,r,n){var o=Object(e);if(!hj(e)){var i=pj(r);e=dj(e),r=function(t){return i(o[t],t,o)}}var a=t(e,r,n);return a>-1?o[i?e[a]:a]:void 0}},vj=qx;var mj=Gu,bj=Vu,gj=function(t){var e=vj(t),r=e%1;return e==e?r?e-r:e:0},wj=Math.max;const xj=t(yj((function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:gj(r);return o<0&&(o=wj(n+o,0)),mj(t,bj(e),o)})));var Oj=Vt((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")})),jj=e.createContext(void 0),Sj=e.createContext(void 0),Pj=e.createContext(void 0),Aj=e.createContext({}),Ej=e.createContext(void 0),kj=e.createContext(0),Mj=e.createContext(0),_j=function(t){var e=t.state,n=e.xAxisMap,o=e.yAxisMap,i=e.offset,a=t.clipPathId,u=t.children,c=t.width,l=t.height,s=Oj(i);return r.createElement(jj.Provider,{value:n},r.createElement(Sj.Provider,{value:o},r.createElement(Aj.Provider,{value:i},r.createElement(Pj.Provider,{value:s},r.createElement(Ej.Provider,{value:a},r.createElement(kj.Provider,{value:l},r.createElement(Mj.Provider,{value:c},u)))))))},Tj=function(t){var r=e.useContext(jj);null==r&&xm(!1);var n=r[t];return null==n&&xm(!1),n},Cj=function(t){var r=e.useContext(Sj);null==r&&xm(!1);var n=r[t];return null==n&&xm(!1),n},Dj=function(){return e.useContext(Mj)},Ij=function(){return e.useContext(kj)};function Nj(t){return(Nj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bj(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Wj(n.key),n)}}function Lj(t,e,r){return e=zj(e),function(t,e){if(e&&("object"===Nj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Rj()?Reflect.construct(e,r||[],zj(t).constructor):e.apply(t,r))}function Rj(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rj=function(){return!!t})()}function zj(t){return(zj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Uj(t,e){return(Uj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function $j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$j(Object(r),!0).forEach((function(e){qj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qj(t,e,r){return(e=Wj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wj(t){var e=function(t,e){if("object"!=Nj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Nj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Nj(e)?e:e+""}function Xj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Hj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hj(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Vj(){return Vj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vj.apply(this,arguments)}function Gj(t){var n=t.x,o=t.y,i=t.segment,a=t.xAxisId,u=t.yAxisId,c=t.shape,l=t.className,s=t.alwaysShow,f=e.useContext(Ej),p=Tj(a),h=Cj(u),y=e.useContext(Pj);if(!f||!y)return null;Nr(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=function(t,e,r,n,o,i,a,u,c){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var h=c.y,d=t.y.apply(h,{position:i});if(gO(c,"discard")&&!t.y.isInRange(d))return null;var y=[{x:l+f,y:d},{x:l,y:d}];return"left"===u?y.reverse():y}if(e){var v=c.x,m=t.x.apply(v,{position:i});if(gO(c,"discard")&&!t.x.isInRange(m))return null;var b=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?b.reverse():b}if(n){var g=c.segment.map((function(e){return t.apply(e,{position:i})}));return gO(c,"discard")&&bO(g,(function(e){return!t.isInRange(e)}))?null:g}return null}(fj({x:p.scale,y:h.scale}),Ye(n),Ye(o),i&&2===i.length,y,t.position,p.orientation,h.orientation,t);if(!v)return null;var m=Xj(v,2),b=m[0],g=b.x,w=b.y,x=m[1],O=x.x,j=x.y,S=Fj(Fj({clipPath:gO(t,"hidden")?"url(#".concat(f,")"):void 0},jr(t,!0)),{},{x1:g,y1:w,x2:O,y2:j});return r.createElement(Ir,{className:d("recharts-reference-line",l)},function(t,e){return r.isValidElement(t)?r.cloneElement(t,e):k(t)?t(e):r.createElement("line",Vj({},e,{className:"recharts-reference-line-line"}))}(c,S),Nb.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return lj({x:e,y:r},{x:n,y:o})}({x1:g,y1:w,x2:O,y2:j})))}var Yj=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Lj(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Uj(t,e)}(t,r.Component),e=t,(n=[{key:"render",value:function(){return r.createElement(Gj,this.props)}}])&&Bj(e.prototype,n),o&&Bj(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o}();function Kj(){return Kj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Kj.apply(this,arguments)}function Zj(t){return(Zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jj(Object(r),!0).forEach((function(e){iS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,aS(n.key),n)}}function eS(t,e,r){return e=nS(e),function(t,e){if(e&&("object"===Zj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,rS()?Reflect.construct(e,r||[],nS(t).constructor):e.apply(t,r))}function rS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rS=function(){return!!t})()}function nS(t){return(nS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function oS(t,e){return(oS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function iS(t,e,r){return(e=aS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aS(t){var e=function(t,e){if("object"!=Zj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Zj(e)?e:e+""}qj(Yj,"displayName","ReferenceLine"),qj(Yj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var uS=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),eS(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oS(t,e)}(t,r.Component),e=t,(n=[{key:"render",value:function(){var e=this.props,n=e.x,o=e.y,i=e.r,a=e.alwaysShow,u=e.clipPathId,c=Ye(n),l=Ye(o);if(Nr(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!l)return null;var s=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=fj({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return gO(t,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!s)return null;var f=s.x,p=s.y,h=this.props,y=h.shape,v=h.className,m=Qj(Qj({clipPath:gO(this.props,"hidden")?"url(#".concat(u,")"):void 0},jr(this.props,!0)),{},{cx:f,cy:p});return r.createElement(Ir,{className:d("recharts-reference-dot",v)},t.renderDot(y,m),Nb.renderCallByParent(this.props,{x:f-i,y:p-i,width:2*i,height:2*i}))}}])&&tS(e.prototype,n),o&&tS(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o}();function cS(){return cS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cS.apply(this,arguments)}function lS(t){return(lS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sS(Object(r),!0).forEach((function(e){mS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bS(n.key),n)}}function hS(t,e,r){return e=yS(e),function(t,e){if(e&&("object"===lS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,dS()?Reflect.construct(e,r||[],yS(t).constructor):e.apply(t,r))}function dS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dS=function(){return!!t})()}function yS(t){return(yS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vS(t,e){return(vS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function mS(t,e,r){return(e=bS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bS(t){var e=function(t,e){if("object"!=lS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lS(e)?e:e+""}iS(uS,"displayName","ReferenceDot"),iS(uS,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),iS(uS,"renderDot",(function(t,e){return r.isValidElement(t)?r.cloneElement(t,e):k(t)?t(e):r.createElement(ex,Kj({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var gS=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),hS(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vS(t,e)}(t,r.Component),e=t,(n=[{key:"render",value:function(){var e=this.props,n=e.x1,o=e.x2,i=e.y1,a=e.y2,u=e.className,c=e.alwaysShow,l=e.clipPathId;Nr(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var s=Ye(n),f=Ye(o),p=Ye(i),h=Ye(a),y=this.props.shape;if(!(s||f||p||h||y))return null;var v=function(t,e,r,n,o){var i=o.x1,a=o.x2,u=o.y1,c=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=fj({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(u,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!gO(o,"discard")||f.isInRange(p)&&f.isInRange(h)?lj(p,h):null}(s,f,p,h,this.props);if(!v&&!y)return null;var m=gO(this.props,"hidden")?"url(#".concat(l,")"):void 0;return r.createElement(Ir,{className:d("recharts-reference-area",u)},t.renderRect(y,fS(fS({clipPath:m},jr(this.props,!0)),v)),Nb.renderCallByParent(this.props,v))}}])&&pS(e.prototype,n),o&&pS(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o}();function wS(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e){if(void 0!==r&&!0!==r(t[o]))return;n.push(t[o])}return n}function xS(t,e,r){return function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)}({width:t.width+e.width,height:t.height+e.height},r)}function OS(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function jS(t){return(jS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function SS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function PS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?SS(Object(r),!0).forEach((function(e){AS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function AS(t,e,r){var n;return n=function(t,e){if("object"!=jS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==jS(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ES(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,u=t.orientation,c=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(Ge(c)||Yl.isSsr)return function(t,e){return wS(t,e+1)}(o,"number"==typeof c&&Ge(c)?c:0);var p=[],h="top"===u||"bottom"===u?"width":"height",d=s&&"width"===h?qs(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var o=k(l)?l(t.value,n):t.value;return"width"===h?xS(qs(o,{fontSize:e,letterSpacing:r}),d,f):qs(o,{fontSize:e,letterSpacing:r})[h]},v=o.length>=2?He(o[1].coordinate-o[0].coordinate):1,m=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,u=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+u}:{start:n?o+a:i+u,end:n?o:i}}(i,v,h);return"equidistantPreserveStart"===c?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),u=e.start,c=e.end,l=0,s=1,f=u,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:wS(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,d=0===l||OS(t,h,p,f,c);d||(l=0,f=u,s+=1),d&&(f=h+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,y,o,a):(p="preserveStart"===c||"preserveStartEnd"===c?function(t,e,r,n,o,i){var a=(n||[]).slice(),u=a.length,c=e.start,l=e.end;if(i){var s=n[u-1],f=r(s,u-1),p=t*(s.coordinate+t*f/2-l);a[u-1]=s=PS(PS({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),OS(t,s.tickCoord,(function(){return f}),c,l)&&(l=s.tickCoord-t*(f/2+o),a[u-1]=PS(PS({},s),{},{isShow:!0}))}for(var h=i?u-1:u,d=function(e){var n,i=a[e],u=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*u()/2-c);a[e]=i=PS(PS({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=PS(PS({},i),{},{tickCoord:i.coordinate});OS(t,i.tickCoord,u,c,l)&&(c=i.tickCoord+t*(u()/2+o),a[e]=PS(PS({},i),{},{isShow:!0}))},y=0;y<h;y++)d(y);return a}(v,m,y,o,a,"preserveStartEnd"===c):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,u=e.start,c=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-c);i[e]=l=PS(PS({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=PS(PS({},l),{},{tickCoord:l.coordinate});OS(t,l.tickCoord,s,u,c)&&(c=l.tickCoord-t*(s()/2+o),i[e]=PS(PS({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,m,y,o,a),p.filter((function(t){return t.isShow})))}mS(gS,"displayName","ReferenceArea"),mS(gS,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),mS(gS,"renderRect",(function(t,e){return r.isValidElement(t)?r.cloneElement(t,e):k(t)?t(e):r.createElement(Qw,cS({},e,{className:"recharts-reference-area-rect"}))}));var kS=["viewBox"],MS=["viewBox"],_S=["ticks"];function TS(t){return(TS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function CS(){return CS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},CS.apply(this,arguments)}function DS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function IS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DS(Object(r),!0).forEach((function(e){$S(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function NS(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function BS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,FS(n.key),n)}}function LS(t,e,r){return e=zS(e),function(t,e){if(e&&("object"===TS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,RS()?Reflect.construct(e,r||[],zS(t).constructor):e.apply(t,r))}function RS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(RS=function(){return!!t})()}function zS(t){return(zS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function US(t,e){return(US=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function $S(t,e,r){return(e=FS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FS(t){var e=function(t,e){if("object"!=TS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=TS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==TS(e)?e:e+""}var qS=function(){function t(e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(r=LS(this,t,[e])).state={fontSize:"",letterSpacing:""},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&US(t,e)}(t,e.Component),n=t,i=[{key:"renderTickItem",value:function(t,e,n){return r.isValidElement(t)?r.cloneElement(t,e):k(t)?t(e):r.createElement(gf,CS({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(o=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=NS(t,kS),o=this.props,i=o.viewBox,a=NS(o,MS);return!rr(r,i)||!rr(n,a)||!rr(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,u=this.props,c=u.x,l=u.y,s=u.width,f=u.height,p=u.orientation,h=u.tickSize,d=u.mirror,y=u.tickMargin,v=d?-1:1,m=t.tickSize||h,b=Ge(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!d*f)-v*m)-v*y,i=b;break;case"left":n=o=t.coordinate,i=(e=(r=c+ +!d*s)-v*m)-v*y,a=b;break;case"right":n=o=t.coordinate,i=(e=(r=c+ +d*s)+v*m)+v*y,a=b;break;default:e=r=t.coordinate,a=(n=(o=l+ +d*f)+v*m)+v*y,i=b}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,o=t.width,i=t.height,a=t.orientation,u=t.mirror,c=t.axisLine,l=IS(IS(IS({},jr(this.props,!1)),jr(c,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var s=+("top"===a&&!u||"bottom"===a&&u);l=IS(IS({},l),{},{x1:e,y1:n+s*i,x2:e+o,y2:n+s*i})}else{var f=+("left"===a&&!u||"right"===a&&u);l=IS(IS({},l),{},{x1:e+f*o,y1:n,x2:e+f*o,y2:n+i})}return r.createElement("line",CS({},l,{className:d("recharts-cartesian-axis-line",ge(c,"className"))}))}},{key:"renderTicks",value:function(e,n,o){var i=this,a=this.props,u=a.tickLine,c=a.stroke,l=a.tick,s=a.tickFormatter,f=a.unit,p=ES(IS(IS({},this.props),{},{ticks:e}),n,o),h=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=jr(this.props,!1),m=jr(l,!1),b=IS(IS({},v),{},{fill:"none"},jr(u,!1)),g=p.map((function(e,n){var o=i.getTickLineCoord(e),a=o.line,g=o.tick,w=IS(IS(IS(IS({textAnchor:h,verticalAnchor:y},v),{},{stroke:"none",fill:c},m),g),{},{index:n,payload:e,visibleTicksCount:p.length,tickFormatter:s});return r.createElement(Ir,CS({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},lr(i.props,e,n)),u&&r.createElement("line",CS({},b,a,{className:d("recharts-cartesian-axis-tick-line",ge(u,"className"))})),l&&t.renderTickItem(l,w,"".concat(k(s)?s(e.value,n):e.value).concat(f||"")))}));return r.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,n=e.axisLine,o=e.width,i=e.height,a=e.ticksGenerator,u=e.className;if(e.hide)return null;var c=this.props,l=c.ticks,s=NS(c,_S),f=l;return k(a)&&(f=l&&l.length>0?a(this.props):a(s)),o<=0||i<=0||!f||!f.length?null:r.createElement(Ir,{className:d("recharts-cartesian-axis",u),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),Nb.renderCallByParent(this.props))}}])&&BS(n.prototype,o),i&&BS(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}();$S(qS,"displayName","CartesianAxis"),$S(qS,"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 WS=["x1","y1","x2","y2","key"],XS=["offset"];function HS(t){return(HS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function VS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function GS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?VS(Object(r),!0).forEach((function(e){YS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function YS(t,e,r){var n;return n=function(t,e){if("object"!=HS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=HS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==HS(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function KS(){return KS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},KS.apply(this,arguments)}function ZS(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var JS=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,o=t.x,i=t.y,a=t.width,u=t.height,c=t.ry;return r.createElement("rect",{x:o,y:i,ry:c,width:a,height:u,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function QS(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(k(t))n=t(e);else{var o=e.x1,i=e.y1,a=e.x2,u=e.y2,c=e.key,l=ZS(e,WS),s=jr(l,!1);s.offset;var f=ZS(s,XS);n=r.createElement("line",KS({},f,{x1:o,y1:i,x2:a,y2:u,fill:"none",key:c}))}return n}function tP(t){var e=t.x,n=t.width,o=t.horizontal,i=void 0===o||o,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var u=a.map((function(r,o){var a=GS(GS({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(o),index:o});return QS(i,a)}));return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function eP(t){var e=t.y,n=t.height,o=t.vertical,i=void 0===o||o,a=t.verticalPoints;if(!i||!a||!a.length)return null;var u=a.map((function(r,o){var a=GS(GS({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(o),index:o});return QS(i,a)}));return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function rP(t){var e=t.horizontalFill,n=t.fillOpacity,o=t.x,i=t.y,a=t.width,u=t.height,c=t.horizontalPoints,l=t.horizontal;if(!(void 0===l||l)||!e||!e.length)return null;var s=c.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==s[0]&&s.unshift(0);var f=s.map((function(t,c){var l=!s[c+1]?i+u-t:s[c+1]-t;if(l<=0)return null;var f=c%e.length;return r.createElement("rect",{key:"react-".concat(c),y:t,x:o,height:l,width:a,stroke:"none",fill:e[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function nP(t){var e=t.vertical,n=void 0===e||e,o=t.verticalFill,i=t.fillOpacity,a=t.x,u=t.y,c=t.width,l=t.height,s=t.verticalPoints;if(!n||!o||!o.length)return null;var f=s.map((function(t){return Math.round(t+a-a)})).sort((function(t,e){return t-e}));a!==f[0]&&f.unshift(0);var p=f.map((function(t,e){var n=!f[e+1]?a+c-t:f[e+1]-t;if(n<=0)return null;var s=e%o.length;return r.createElement("rect",{key:"react-".concat(e),x:t,y:u,width:n,height:l,stroke:"none",fill:o[s],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var oP=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return Qm(ES(GS(GS(GS({},qS.defaultProps),r),{},{ticks:tb(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},iP=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return Qm(ES(GS(GS(GS({},qS.defaultProps),r),{},{ticks:tb(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},aP={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function uP(t){var n,o,i,a,u,c,l,s,f=Dj(),p=Ij(),h=e.useContext(Aj),d=GS(GS({},t),{},{stroke:null!==(n=t.stroke)&&void 0!==n?n:aP.stroke,fill:null!==(o=t.fill)&&void 0!==o?o:aP.fill,horizontal:null!==(i=t.horizontal)&&void 0!==i?i:aP.horizontal,horizontalFill:null!==(a=t.horizontalFill)&&void 0!==a?a:aP.horizontalFill,vertical:null!==(u=t.vertical)&&void 0!==u?u:aP.vertical,verticalFill:null!==(c=t.verticalFill)&&void 0!==c?c:aP.verticalFill,x:Ge(t.x)?t.x:h.left,y:Ge(t.y)?t.y:h.top,width:Ge(t.width)?t.width:h.width,height:Ge(t.height)?t.height:h.height}),y=d.x,v=d.y,m=d.width,b=d.height,g=d.syncWithTicks,w=d.horizontalValues,x=d.verticalValues,O=(l=e.useContext(jj),Qe(l)),j=(s=e.useContext(Sj),xj(s,(function(t){return TO(t.domain,Number.isFinite)}))||Qe(s));if(!Ge(m)||m<=0||!Ge(b)||b<=0||!Ge(y)||y!==+y||!Ge(v)||v!==+v)return null;var S=d.verticalCoordinatesGenerator||oP,P=d.horizontalCoordinatesGenerator||iP,A=d.horizontalPoints,E=d.verticalPoints;if((!A||!A.length)&&k(P)){var M=w&&w.length,_=P({yAxis:j?GS(GS({},j),{},{ticks:M?w:j.ticks}):void 0,width:f,height:p,offset:h},!!M||g);Nr(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(HS(_),"]")),Array.isArray(_)&&(A=_)}if((!E||!E.length)&&k(S)){var T=x&&x.length,C=S({xAxis:O?GS(GS({},O),{},{ticks:T?x:O.ticks}):void 0,width:f,height:p,offset:h},!!T||g);Nr(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(HS(C),"]")),Array.isArray(C)&&(E=C)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(JS,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),r.createElement(tP,KS({},d,{offset:h,horizontalPoints:A,xAxis:O,yAxis:j})),r.createElement(eP,KS({},d,{offset:h,verticalPoints:E,xAxis:O,yAxis:j})),r.createElement(rP,KS({},d,{horizontalPoints:A})),r.createElement(nP,KS({},d,{verticalPoints:E})))}uP.displayName="CartesianGrid";var cP=["type","layout","connectNulls","ref"],lP=["key"];function sP(t){return(sP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fP(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function pP(){return pP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pP.apply(this,arguments)}function hP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hP(Object(r),!0).forEach((function(e){OP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yP(t){return function(t){if(Array.isArray(t))return vP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return vP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vP(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jP(n.key),n)}}function bP(t,e,r){return e=wP(e),function(t,e){if(e&&("object"===sP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,gP()?Reflect.construct(e,r||[],wP(t).constructor):e.apply(t,r))}function gP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gP=function(){return!!t})()}function wP(t){return(wP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xP(t,e){return(xP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function OP(t,e,r){return(e=jP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jP(t){var e=function(t,e){if("object"!=sP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sP(e)?e:e+""}var SP=function(){function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return OP(e=bP(this,t,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),OP(e,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),OP(e,"getStrokeDasharray",(function(r,n,o){var i=o.reduce((function(t,e){return t+e}));if(!i)return e.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),u=r%i,c=n-r,l=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>u){l=[].concat(yP(o.slice(0,s)),[u-f]);break}var p=l.length%2==0?[0,c]:[c];return[].concat(yP(t.repeat(o,a)),yP(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),OP(e,"id",Ze("recharts-line-")),OP(e,"pathRef",(function(t){e.mainCurve=t})),OP(e,"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),OP(e,"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xP(t,e)}(t,e.PureComponent),n=t,i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(yP(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(yP(n),yP(r));return n}},{key:"renderDotItem",value:function(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(k(t))n=t(e);else{var o=e.key,i=fP(e,lP),a=d("recharts-line-dot","boolean"!=typeof t?t.className:"");n=r.createElement(ex,pP({key:o},i,{className:a}))}return n}}],(o=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.points,i=n.xAxis,a=n.yAxis,u=n.layout,c=gr(n.children,Nm);if(!c)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Vm(t.payload,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return r.createElement(Ir,s,c.map((function(t){return r.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:u,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,n,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,u=i.points,c=i.dataKey,l=jr(this.props,!1),s=jr(a,!0),f=u.map((function(e,r){var n=dP(dP(dP({key:"dot-".concat(r),r:3},l),s),{},{index:r,cx:e.x,cy:e.y,value:e.value,dataKey:c,payload:e.payload,points:u});return t.renderDotItem(a,n)})),p={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(o,")"):null};return r.createElement(Ir,pP({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,e,n,o){var i=this.props,a=i.type,u=i.layout,c=i.connectNulls;i.ref;var l=fP(i,cP),s=dP(dP(dP({},jr(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},o),{},{type:a,layout:u,connectNulls:c});return r.createElement(yg,pP({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,o=this.props,i=o.points,a=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,l=o.animationDuration,s=o.animationEasing,f=o.animationId,p=o.animateNewValues,h=o.width,d=o.height,y=this.state,v=y.prevPoints,m=y.totalLength;return r.createElement(Fw,{begin:c,duration:l,isActive:u,easing:s,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var o=r.t;if(v){var u=v.length/i.length,c=i.map((function(t,e){var r=Math.floor(e*u);if(v[r]){var n=v[r],i=tr(n.x,t.x),a=tr(n.y,t.y);return dP(dP({},t),{},{x:i(o),y:a(o)})}if(p){var c=tr(2*h,t.x),l=tr(d/2,t.y);return dP(dP({},t),{},{x:c(o),y:l(o)})}return dP(dP({},t),{},{x:t.x,y:t.y})}));return n.renderCurveStatically(c,t,e)}var l,s=tr(0,m)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=n.getStrokeDasharray(s,m,f)}else l=n.generateSimpleStrokeDasharray(m,s);return n.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,u=i.totalLength;return o&&n&&n.length&&(!a&&u>0||!wv(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,o=e.dot,i=e.points,a=e.className,u=e.xAxis,c=e.yAxis,l=e.top,s=e.left,f=e.width,p=e.height,h=e.isAnimationActive,y=e.id;if(n||!i||!i.length)return null;var v=this.state.isAnimationFinished,m=1===i.length,b=d("recharts-line",a),g=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,x=g||w,O=we(y)?this.id:y,j=null!==(t=jr(o,!1))&&void 0!==t?t:{r:3,strokeWidth:2},S=j.r,P=void 0===S?3:S,A=j.strokeWidth,E=void 0===A?2:A,k=(function(t){return t&&"object"===hr(t)&&"clipDot"in t}(o)?o:{}).clipDot,M=void 0===k||k,_=2*P+E;return r.createElement(Ir,{className:b},g||w?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(O)},r.createElement("rect",{x:g?s:s-f/2,y:w?l:l-p/2,width:g?f:2*f,height:w?p:2*p})),!M&&r.createElement("clipPath",{id:"clipPath-dots-".concat(O)},r.createElement("rect",{x:s-_/2,y:l-_/2,width:f+_,height:p+_}))):null,!m&&this.renderCurve(x,O),this.renderErrorBar(x,O),(m||o)&&this.renderDots(x,M,O),(!h||v)&&Yb.renderCallByParent(this.props,i))}}])&&mP(n.prototype,o),i&&mP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}();function PP(t){return(PP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function AP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,CP(n.key),n)}}function EP(t,e,r){return e=MP(e),function(t,e){if(e&&("object"===PP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,kP()?Reflect.construct(e,r||[],MP(t).constructor):e.apply(t,r))}function kP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kP=function(){return!!t})()}function MP(t){return(MP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _P(t,e){return(_P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function TP(t,e,r){return(e=CP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function CP(t){var e=function(t,e){if("object"!=PP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=PP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==PP(e)?e:e+""}function DP(){return DP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},DP.apply(this,arguments)}function IP(t){var e=t.xAxisId,n=Dj(),o=Ij(),i=Tj(e);return null==i?null:r.createElement(qS,DP({},i,{className:d("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:o},ticksGenerator:function(t){return tb(t,!0)}}))}OP(SP,"displayName","Line"),OP(SP,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Yl.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),OP(SP,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,u=t.bandSize,c=t.displayedData,l=t.offset,s=e.layout;return dP({points:c.map((function(t,e){var c=Vm(t,a);return"horizontal"===s?{x:ab({axis:r,ticks:o,bandSize:u,entry:t,index:e}),y:we(c)?null:n.scale(c),value:c,payload:t}:{x:we(c)?null:r.scale(c),y:ab({axis:n,ticks:i,bandSize:u,entry:t,index:e}),value:c,payload:t}})),layout:s},l)}));var NP=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),EP(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_P(t,e)}(t,r.Component),e=t,(n=[{key:"render",value:function(){return r.createElement(IP,this.props)}}])&&AP(e.prototype,n),o&&AP(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o}();function BP(t){return(BP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function LP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qP(n.key),n)}}function RP(t,e,r){return e=UP(e),function(t,e){if(e&&("object"===BP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,zP()?Reflect.construct(e,r||[],UP(t).constructor):e.apply(t,r))}function zP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zP=function(){return!!t})()}function UP(t){return(UP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $P(t,e){return($P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function FP(t,e,r){return(e=qP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qP(t){var e=function(t,e){if("object"!=BP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=BP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==BP(e)?e:e+""}function WP(){return WP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},WP.apply(this,arguments)}TP(NP,"displayName","XAxis"),TP(NP,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var XP=function(t){var e=t.yAxisId,n=Dj(),o=Ij(),i=Cj(e);return null==i?null:r.createElement(qS,WP({},i,{className:d("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:o},ticksGenerator:function(t){return tb(t,!0)}}))},HP=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),RP(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$P(t,e)}(t,r.Component),e=t,(n=[{key:"render",value:function(){return r.createElement(XP,this.props)}}])&&LP(e.prototype,n),o&&LP(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o}();function VP(t){return function(t){if(Array.isArray(t))return GP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return GP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GP(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}FP(HP,"displayName","YAxis"),FP(HP,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var YP=function(t,e,r,n,o){var i=gr(t,Yj),a=gr(t,uS),u=[].concat(VP(i),VP(a)),c=gr(t,gS),l="".concat(n,"Id"),s=n[0],f=e;if(u.length&&(f=u.reduce((function(t,e){if(e.props[l]===r&&gO(e.props,"extendDomain")&&Ge(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),c.length){var p="".concat(s,"1"),h="".concat(s,"2");f=c.reduce((function(t,e){if(e.props[l]===r&&gO(e.props,"extendDomain")&&Ge(e.props[p])&&Ge(e.props[h])){var n=e.props[p],o=e.props[h];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return Ge(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},KP={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new o(n,i||t,a),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],u]:t._events[c].push(u):(t._events[c]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),u.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},u.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},u.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},u.prototype.emit=function(t,e,n,o,i,a){var u=r?r+t:t;if(!this._events[u])return!1;var c,l,s=this._events[u],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];s.fn.apply(s.context,c)}else{var p,h=s.length;for(l=0;l<h;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];s[l].fn.apply(s[l].context,c)}}return!0},u.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},u.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var u=this._events[i];if(u.fn)u.fn!==e||o&&!u.once||n&&u.context!==n||a(this,i);else{for(var c=0,l=[],s=u.length;c<s;c++)(u[c].fn!==e||o&&!u[c].once||n&&u[c].context!==n)&&l.push(u[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u}(KP);var ZP=new(t(KP.exports)),JP="recharts.syncMouseEvents";function QP(t){return(QP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rA(n.key),n)}}function eA(t,e,r){return(e=rA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rA(t){var e=function(t,e){if("object"!=QP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=QP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==QP(e)?e:e+""}var nA=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),eA(this,"activeIndex",0),eA(this,"coordinateList",[]),eA(this,"layout","horizontal")},(e=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,u=void 0===a?null:a,c=t.offset,l=void 0===c?null:c,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=u?u:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,u=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,c=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+u,s=o+this.offset.top+i/2+c;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])&&tA(t.prototype,e),r&&tA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function oA(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[xb(e,r,n,o),xb(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function iA(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return oA(e);var u=e.cx,c=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=xb(u,c,l,f),h=xb(u,c,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function aA(t){return(aA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uA(Object(r),!0).forEach((function(e){lA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lA(t,e,r){var n;return n=function(t,e){if("object"!=aA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=aA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==aA(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sA(t){var r,n,o,i=t.element,a=t.tooltipEventType,u=t.isActive,c=t.activeCoordinate,l=t.activePayload,s=t.offset,f=t.activeTooltipIndex,p=t.tooltipAxisBandSize,h=t.layout,y=t.chartName,v=null!==(r=i.props.cursor)&&void 0!==r?r:null===(n=i.type.defaultProps)||void 0===n?void 0:n.cursor;if(!i||!v||!u||!c||"ScatterChart"!==y&&"axis"!==a)return null;var m=yg;if("ScatterChart"===y)o=c,m=lx;else if("BarChart"===y)o=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(h,c,s,p),m=Qw;else if("radial"===h){var b=oA(c),g=b.cx,w=b.cy,x=b.radius;o={cx:g,cy:w,startAngle:b.startAngle,endAngle:b.endAngle,innerRadius:x,outerRadius:x},m=og}else o={points:iA(h,c,s)},m=yg;var O=cA(cA(cA(cA({stroke:"#ccc",pointerEvents:"none"},s),o),jr(v,!1)),{},{payload:l,payloadIndex:f,className:d("recharts-tooltip-cursor",v.className)});return e.isValidElement(v)?e.cloneElement(v,O):e.createElement(m,O)}var fA=["item"],pA=["children","className","width","height","style","compact","title","desc"];function hA(t){return(hA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dA(){return dA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},dA.apply(this,arguments)}function yA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||jA(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function mA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kA(n.key),n)}}function bA(t,e,r){return e=wA(e),function(t,e){if(e&&("object"===hA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,gA()?Reflect.construct(e,r||[],wA(t).constructor):e.apply(t,r))}function gA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gA=function(){return!!t})()}function wA(t){return(wA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xA(t,e){return(xA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function OA(t){return function(t){if(Array.isArray(t))return SA(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||jA(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jA(t,e){if(t){if("string"==typeof t)return SA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?SA(t,e):void 0}}function SA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function PA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function AA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?PA(Object(r),!0).forEach((function(e){EA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):PA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function EA(t,e,r){return(e=kA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kA(t){var e=function(t,e){if("object"!=hA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=hA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hA(e)?e:e+""}var MA={xAxis:["bottom","top"],yAxis:["left","right"]},_A={width:"100%",height:"100%"},TA={x:0,y:0};function CA(t){return t}var DA=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(OA(t),OA(r)):t}),[]);return i.length>0?i:t&&t.length&&Ge(n)&&Ge(o)?t.slice(n,o+1):[]};function IA(t){return"number"===t?[0,"auto"]:void 0}var NA=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=DA(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,u){var c,l,s=null!==(c=u.props.data)&&void 0!==c?c:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=er(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(OA(o),[db(u,l)]):o}),[])},BA=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var u=o.range,c=0;c<a;c++){var l=c>0?n[c-1].coordinate:n[a-1].coordinate,s=n[c].coordinate,f=c>=a-1?n[0].coordinate:n[c+1].coordinate,p=void 0;if(He(s-l)!==He(f-s)){var h=[];if(He(f-s)===He(u[1]-u[0])){p=f;var d=s+u[1]-u[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+u[1]-u[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[c].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[c].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i}(i,a,c,u);if(l>=0&&c){var s=c[l]&&c[l].value,f=NA(t,e,l,s),p=function(t,e,r,n){var o=e.find((function(t){return t&&t.index===r}));if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return AA(AA(AA({},n),xb(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var u=o.coordinate,c=n.angle;return AA(AA(AA({},n),xb(n.cx,n.cy,u,c)),{},{angle:c,radius:u})}return TA}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},LA=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=Jm(l,o);return r.reduce((function(e,r){var h,d=void 0!==r.type.defaultProps?AA(AA({},r.type.defaultProps),r.props):r.props,y=d.type,v=d.dataKey,m=d.allowDataOverflow,b=d.allowDuplicatedCategory,g=d.scale,w=d.ticks,x=d.includeHidden,O=d[i];if(e[O])return e;var j,S,P,A=DA(t.data,{graphicalItems:n.filter((function(t){var e;return(i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i])===O})),dataStartIndex:u,dataEndIndex:c}),E=A.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&Ge(n)&&Ge(o))return!0}return!1})(d.domain,m,y)&&(j=fb(d.domain,null,m),!p||"number"!==y&&"auto"===g||(P=Gm(A,v,"category")));var k=IA(y);if(!j||0===j.length){var M,_=null!==(M=d.domain)&&void 0!==M?M:k;if(v){if(j=Gm(A,v,y),"category"===y&&p){var T=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(j);b&&T?(S=j,j=Vx(0,E)):b||(j=hb(_,j,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(OA(t),[e])}),[]))}else if("category"===y)j=b?j.filter((function(t){return""!==t&&!we(t)})):hb(_,j,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||we(e)?t:[].concat(OA(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,o){var i=e.map((function(e){return Km(t,e,r,o,n)})).filter((function(t){return!we(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(A,n.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!o)})),v,o,l);C&&(j=C)}!p||"number"!==y&&"auto"===g||(P=Gm(A,v,"category"))}else j=p?Vx(0,E):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:cb(a[O].stackGroups,u,c):Zm(A,n.filter((function(t){var e=i in t.props?t.props[i]:t.type.defaultProps[i],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),y,l,!0);if("number"===y)j=YP(s,j,O,o,w),_&&(j=fb(_,j,m));else if("category"===y&&_){var D=_;j.every((function(t){return D.indexOf(t)>=0}))&&(j=D)}}return AA(AA({},e),{},EA({},O,AA(AA({},d),{},{axisType:o,domain:j,categoricalDomain:P,duplicateDomain:S,originalDomain:null!==(h=d.domain)&&void 0!==h?h:k,isCategorical:p,layout:l})))}),{})},RA=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=gr(l,o),p={};return f&&f.length?p=LA(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.layout,s=t.children,f=DA(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:c}),p=f.length,h=Jm(l,o),d=-1;return r.reduce((function(t,e){var y,v=(void 0!==e.type.defaultProps?AA(AA({},e.type.defaultProps),e.props):e.props)[i],m=IA("number");return t[v]?t:(d++,h?y=Vx(0,p):a&&a[v]&&a[v].hasStack?(y=cb(a[v].stackGroups,u,c),y=YP(s,y,v,o)):(y=fb(m,Zm(f,r.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===v&&!o})),"number",l),n.defaultProps.allowDataOverflow),y=YP(s,y,v,o)),AA(AA({},t),{},EA({},v,AA(AA({axisType:o},n.defaultProps),{},{hide:!0,orientation:ge(MA,"".concat(o,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:h,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p},zA=function(t){var e=t.children,r=t.defaultShowTooltip,n=wr(e,fO),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},UA=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},$A=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,u=r.width,c=r.height,l=r.children,s=r.margin||{},f=wr(l,fO),p=wr(l,Ec),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:AA(AA({},t),{},EA({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:AA(AA({},t),{},EA({},n,ge(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=AA(AA({},d),h),v=y.bottom;f&&(y.bottom+=f.props.height||fO.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,u=i-(a.left||0)-(a.right||0),c=Um({children:o,legendWidth:u});if(c){var l=n||{},s=l.width,f=l.height,p=c.align,h=c.verticalAlign,d=c.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&Ge(t[p]))return Xm(Xm({},t),{},Hm({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&Ge(t[h]))return Xm(Xm({},t),{},Hm({},h,t[h]+(f||0)))}return t}(y,0,r,e));var m=u-y.left-y.right,b=c-y.top-y.bottom;return AA(AA({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(b,0)})},FA=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},qA=function(t){var n=t.chartName,o=t.GraphicalChild,i=t.defaultTooltipEventType,a=void 0===i?"axis":i,u=t.validateTooltipEventTypes,c=void 0===u?["axis"]:u,l=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,p=t.defaultProps,h=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,u=e.dataEndIndex,c=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=UA(s),y=d.numericAxisName,v=d.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=yr(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),b=[];return r.forEach((function(r,d){var g=DA(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:u}),w=void 0!==r.type.defaultProps?AA(AA({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,j=w["".concat(y,"Id")],S=w["".concat(v,"Id")],P=l.reduce((function(t,r){var n=e["".concat(r.axisType,"Map")],o=w["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||xm(!1);var i=n[o];return AA(AA({},t),{},EA(EA({},r.axisType,i),"".concat(r.axisType,"Ticks"),tb(i)))}),{}),A=P[v],E=P["".concat(v,"Ticks")],k=n&&n[j]&&n[j].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?Xm(Xm({},t.type.defaultProps),t.props):t.props).stackId;if(Ye(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null}(r,n[j].stackGroups),M=yr(r.type).indexOf("Bar")>=0,_=pb(A,E),T=[],C=m&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),u=0,c=a.length;u<c;u++)for(var l=o[a[u]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var h=l[s[f]],d=h.items,y=h.cateAxisId,v=d.filter((function(t){return yr(t.type).indexOf("Bar")>=0}));if(v&&v.length){var m=v[0].type.defaultProps,b=void 0!==m?Xm(Xm({},m),v[0].props):v[0].props,g=b.barSize,w=b[y];i[w]||(i[w]=[]);var x=we(g)?e:g;i[w].push({item:v[0],stackList:v.slice(1),barSize:we(x)?void 0:Je(x,r,0)})}}return i}({barSize:c,stackGroups:n,totalSize:FA(P,v)});if(M){var D,I,N=we(O)?h:O,B=null!==(D=null!==(I=pb(A,E,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;T=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,u=i.length;if(u<1)return null;var c,l=Je(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/u,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(u-1)*l)>=n&&(h-=(u-1)*l,l=0),h>=n&&p>0&&(f=!0,h=u*(p*=.9));var d={offset:((n-h)/2|0)-l,size:0};c=i.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(Fm(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var y=Je(r,n,0,!0);n-2*y-(u-1)*l<=0&&(l=0);var v=(n-2*y-(u-1)*l)/u;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;c=i.reduce((function(t,e,r){var n=[].concat(Fm(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return c}({barGap:f,barCategoryGap:p,bandSize:B!==_?B:_,sizeList:C[S],maxBarSize:N}),B!==_&&(T=T.map((function(t){return AA(AA({},t),{},{position:AA(AA({},t.position),{},{offset:t.position.offset-B/2})})})))}var L,R,z=r&&r.type&&r.type.getComposedData;z&&b.push({props:AA(AA({},z(AA(AA({},P),{},{displayedData:g,props:t,dataKey:x,item:r,bandSize:_,barPosition:T,offset:o,stackedData:k,layout:s,dataStartIndex:a,dataEndIndex:u}))),{},EA(EA(EA({key:r.key||"item-".concat(d)},y,P[y]),v,P[v]),"animationId",i)),childIndex:(L=r,R=t.children,br(R).indexOf(L)),item:r})})),b},y=function(t,e){var r=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!xr({props:r}))return null;var c=r.children,s=r.layout,p=r.stackOffset,d=r.data,y=r.reverseStackOrder,v=UA(s),m=v.numericAxisName,b=v.cateAxisName,g=gr(c,o),w=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o,i=null!==(o=e.type)&&void 0!==o&&o.defaultProps?Xm(Xm({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(i.hide)return t;var u=i[r],c=t[u]||{hasStack:!1,stackGroups:{}};if(Ye(a)){var l=c.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),c.hasStack=!0,c.stackGroups[a]=l}else c.stackGroups[Ze("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return Xm(Xm({},t),{},Hm({},u,c))}),{});return Object.keys(a).reduce((function(e,i){var u=a[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce((function(e,i){var a=u.stackGroups[i];return Xm(Xm({},e),{},Hm({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:ib(t,a.items,o)}))}),{})),Xm(Xm({},e),{},Hm({},i,u))}),{})}(d,g,"".concat(m,"Id"),"".concat(b,"Id"),p,y),x=l.reduce((function(t,e){var n="".concat(e.axisType,"Map");return AA(AA({},t),{},EA({},n,RA(r,AA(AA({},e),{},{graphicalItems:g,stackGroups:e.axisType===m&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),O=$A(AA(AA({},x),{},{props:r,graphicalItems:g}),null==e?void 0:e.legendBBox);Object.keys(x).forEach((function(t){x[t]=f(r,x[t],O,t.replace("Map",""),n)}));var j,S,P=x["".concat(b,"Map")],A=(j=Qe(P),{tooltipTicks:S=tb(j,!1,!0),orderedTooltipTicks:Ol(S,(function(t){return t.coordinate})),tooltipAxis:j,tooltipAxisBandSize:pb(j,S)}),E=h(r,AA(AA({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:g,stackGroups:w,offset:O}));return AA(AA({formattedGraphicalItems:E,graphicalItems:g,offset:O,stackGroups:w},A),x)},v=function(){function t(o){var i,a,u;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),EA(u=bA(this,t,[o]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),EA(u,"accessibilityManager",new nA),EA(u,"handleLegendBBoxUpdate",(function(t){if(t){var e=u.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;u.setState(AA({legendBBox:t},y({props:u.props,dataStartIndex:r,dataEndIndex:n,updateId:o},AA(AA({},u.state),{},{legendBBox:t}))))}})),EA(u,"handleReceiveSyncEvent",(function(t,e,r){if(u.props.syncId===t){if(r===u.eventEmitterSymbol&&"function"!=typeof u.props.syncMethod)return;u.applySyncEvent(e)}})),EA(u,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==u.state.dataStartIndex||r!==u.state.dataEndIndex){var n=u.state.updateId;u.setState((function(){return AA({dataStartIndex:e,dataEndIndex:r},y({props:u.props,dataStartIndex:e,dataEndIndex:r,updateId:n},u.state))})),u.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),EA(u,"handleMouseEnter",(function(t){var e=u.getMouseInfo(t);if(e){var r=AA(AA({},e),{},{isTooltipActive:!0});u.setState(r),u.triggerSyncEvent(r);var n=u.props.onMouseEnter;k(n)&&n(r,t)}})),EA(u,"triggeredAfterMouseMove",(function(t){var e=u.getMouseInfo(t),r=e?AA(AA({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};u.setState(r),u.triggerSyncEvent(r);var n=u.props.onMouseMove;k(n)&&n(r,t)})),EA(u,"handleItemMouseEnter",(function(t){u.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),EA(u,"handleItemMouseLeave",(function(){u.setState((function(){return{isTooltipActive:!1}}))})),EA(u,"handleMouseMove",(function(t){t.persist(),u.throttleTriggeredAfterMouseMove(t)})),EA(u,"handleMouseLeave",(function(t){u.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};u.setState(e),u.triggerSyncEvent(e);var r=u.props.onMouseLeave;k(r)&&r(e,t)})),EA(u,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&dr[e]?dr[e]:null}(t),n=ge(u.props,"".concat(r));r&&k(n)&&n(null!==(e=/.*touch.*/i.test(r)?u.getMouseInfo(t.changedTouches[0]):u.getMouseInfo(t))&&void 0!==e?e:{},t)})),EA(u,"handleClick",(function(t){var e=u.getMouseInfo(t);if(e){var r=AA(AA({},e),{},{isTooltipActive:!0});u.setState(r),u.triggerSyncEvent(r);var n=u.props.onClick;k(n)&&n(r,t)}})),EA(u,"handleMouseDown",(function(t){var e=u.props.onMouseDown;k(e)&&e(u.getMouseInfo(t),t)})),EA(u,"handleMouseUp",(function(t){var e=u.props.onMouseUp;k(e)&&e(u.getMouseInfo(t),t)})),EA(u,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&u.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),EA(u,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&u.handleMouseDown(t.changedTouches[0])})),EA(u,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&u.handleMouseUp(t.changedTouches[0])})),EA(u,"handleDoubleClick",(function(t){var e=u.props.onDoubleClick;k(e)&&e(u.getMouseInfo(t),t)})),EA(u,"handleContextMenu",(function(t){var e=u.props.onContextMenu;k(e)&&e(u.getMouseInfo(t),t)})),EA(u,"triggerSyncEvent",(function(t){void 0!==u.props.syncId&&ZP.emit(JP,u.props.syncId,t,u.eventEmitterSymbol)})),EA(u,"applySyncEvent",(function(t){var e=u.props,r=e.layout,n=e.syncMethod,o=u.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)u.setState(AA({dataStartIndex:i,dataEndIndex:a},y({props:u.props,dataStartIndex:i,dataEndIndex:a,updateId:o},u.state)));else if(void 0!==t.activeTooltipIndex){var c=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=u.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var d=0;d<h.length;d++)if(h[d].value===t.activeLabel){s=d;break}}var v=AA(AA({},p),{},{x:p.left,y:p.top}),m=Math.min(c,v.x+v.width),b=Math.min(l,v.y+v.height),g=h[s]&&h[s].value,w=NA(u.state,u.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:m,y:"horizontal"===r?b:h[s].coordinate}:TA;u.setState(AA(AA({},t),{},{activeLabel:g,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else u.setState(t)})),EA(u,"renderCursor",(function(t){var e,o=u.state,i=o.isTooltipActive,a=o.activeCoordinate,c=o.activePayload,l=o.offset,s=o.activeTooltipIndex,f=o.tooltipAxisBandSize,p=u.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:i,d=u.props.layout,y=t.key||"_recharts-cursor";return r.createElement(sA,{key:y,activeCoordinate:a,activePayload:c,activeTooltipIndex:s,chartName:n,element:t,isActive:h,layout:d,offset:l,tooltipAxisBandSize:f,tooltipEventType:p})})),EA(u,"renderPolarAxis",(function(t,r,n){var o=ge(t,"type.axisType"),i=ge(u.state,"".concat(o,"Map")),a=t.type.defaultProps,c=void 0!==a?AA(AA({},a),t.props):t.props,l=i&&i[c["".concat(o,"Id")]];return e.cloneElement(t,AA(AA({},l),{},{className:d(o,l.className),key:t.key||"".concat(r,"-").concat(n),ticks:tb(l,!0)}))})),EA(u,"renderPolarGrid",(function(t){var r=t.props,n=r.radialLines,o=r.polarAngles,i=r.polarRadius,a=u.state,c=a.radiusAxisMap,l=a.angleAxisMap,s=Qe(c),f=Qe(l),p=f.cx,h=f.cy,d=f.innerRadius,y=f.outerRadius;return e.cloneElement(t,{polarAngles:Array.isArray(o)?o:tb(f,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:tb(s,!0).map((function(t){return t.coordinate})),cx:p,cy:h,innerRadius:d,outerRadius:y,key:t.key||"polar-grid",radialLines:n})})),EA(u,"renderLegend",(function(){var t=u.state.formattedGraphicalItems,r=u.props,n=r.children,o=r.width,i=r.height,a=u.props.margin||{},c=o-(a.left||0)-(a.right||0),l=Um({children:n,formattedGraphicalItems:t,legendWidth:c,legendContent:s});if(!l)return null;var f=l.item,p=vA(l,fA);return e.cloneElement(f,AA(AA({},p),{},{chartWidth:o,chartHeight:i,margin:a,onBBoxUpdate:u.handleLegendBBoxUpdate}))})),EA(u,"renderTooltip",(function(){var t,r=u.props,n=r.children,o=r.accessibilityLayer,i=wr(n,us);if(!i)return null;var a=u.state,c=a.isTooltipActive,l=a.activeCoordinate,s=a.activePayload,f=a.activeLabel,p=a.offset,h=null!==(t=i.props.active)&&void 0!==t?t:c;return e.cloneElement(i,{viewBox:AA(AA({},p),{},{x:p.left,y:p.top}),active:h,label:f,payload:h?s:[],coordinate:l,accessibilityLayer:o})})),EA(u,"renderBrush",(function(t){var r=u.props,n=r.margin,o=r.data,i=u.state,a=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,s=i.updateId;return e.cloneElement(t,{key:t.key||"_recharts-brush",onChange:rb(u.handleBrushChange,t.props.onChange),data:o,x:Ge(t.props.x)?t.props.x:a.left,y:Ge(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:Ge(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:l,updateId:"brush-".concat(s)})})),EA(u,"renderReferenceElement",(function(t,r,n){if(!t)return null;var o=u.clipPathId,i=u.state,a=i.xAxisMap,c=i.yAxisMap,l=i.offset,s=t.type.defaultProps||{},f=t.props,p=f.xAxisId,h=void 0===p?s.xAxisId:p,d=f.yAxisId,y=void 0===d?s.yAxisId:d;return e.cloneElement(t,{key:t.key||"".concat(r,"-").concat(n),xAxis:a[h],yAxis:c[y],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:o})})),EA(u,"renderActivePoints",(function(e){var r=e.item,n=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,u=[],c=r.props.key,l=void 0!==r.item.type.defaultProps?AA(AA({},r.item.type.defaultProps),r.item.props):r.item.props,s=l.activeDot,f=AA(AA({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Ym(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},jr(s,!1)),cr(s));return u.push(t.renderActiveDot(s,f,"".concat(c,"-activePoint-").concat(i))),o?u.push(t.renderActiveDot(s,AA(AA({},f),{},{cx:o.x,cy:o.y}),"".concat(c,"-basePoint-").concat(i))):a&&u.push(null),u})),EA(u,"renderGraphicChild",(function(t,r,n){var o=u.filterFormatItem(t,r,n);if(!o)return null;var i=u.getTooltipEventType(),a=u.state,c=a.isTooltipActive,l=a.tooltipAxis,s=a.activeTooltipIndex,f=a.activeLabel,p=wr(u.props.children,us),h=o.props,d=h.points,y=h.isRange,v=h.baseLine,m=void 0!==o.item.type.defaultProps?AA(AA({},o.item.type.defaultProps),o.item.props):o.item.props,b=m.activeDot,g=m.hide,w=m.activeBar,x=m.activeShape,O=Boolean(!g&&c&&p&&(b||w||x)),j={};"axis"!==i&&p&&"click"===p.props.trigger?j={onClick:rb(u.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(j={onMouseLeave:rb(u.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:rb(u.handleItemMouseEnter,t.props.onMouseEnter)});var S=e.cloneElement(t,AA(AA({},o.props),j));if(O){if(!(s>=0)){var P,A=(null!==(P=u.getItemByXY(u.state.activeCoordinate))&&void 0!==P?P:{graphicalItem:S}).graphicalItem,E=A.item,k=void 0===E?t:E,M=A.childIndex,_=AA(AA(AA({},o.props),j),{},{activeIndex:M});return[e.cloneElement(k,_),null,null]}var T,C;if(l.dataKey&&!l.allowDuplicatedCategory){var D="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());T=er(d,D,f),C=y&&v&&er(v,D,f)}else T=null==d?void 0:d[s],C=y&&v&&v[s];if(x||w){var I=void 0!==t.props.activeIndex?t.props.activeIndex:s;return[e.cloneElement(t,AA(AA(AA({},o.props),j),{},{activeIndex:I})),null,null]}if(!we(T))return[S].concat(OA(u.renderActivePoints({item:o,activePoint:T,basePoint:C,childIndex:s,isRange:y})))}return y?[S,null,null]:[S,null]})),EA(u,"renderCustomized",(function(t,r,n){return e.cloneElement(t,AA(AA({key:"recharts-customized-".concat(n)},u.props),u.state))})),EA(u,"renderMap",{CartesianGrid:{handler:CA,once:!0},ReferenceArea:{handler:u.renderReferenceElement},ReferenceLine:{handler:CA},ReferenceDot:{handler:u.renderReferenceElement},XAxis:{handler:CA},YAxis:{handler:CA},Brush:{handler:u.renderBrush,once:!0},Bar:{handler:u.renderGraphicChild},Line:{handler:u.renderGraphicChild},Area:{handler:u.renderGraphicChild},Radar:{handler:u.renderGraphicChild},RadialBar:{handler:u.renderGraphicChild},Scatter:{handler:u.renderGraphicChild},Pie:{handler:u.renderGraphicChild},Funnel:{handler:u.renderGraphicChild},Tooltip:{handler:u.renderCursor,once:!0},PolarGrid:{handler:u.renderPolarGrid,once:!0},PolarAngleAxis:{handler:u.renderPolarAxis},PolarRadiusAxis:{handler:u.renderPolarAxis},Customized:{handler:u.renderCustomized}}),u.clipPathId="".concat(null!==(i=o.id)&&void 0!==i?i:Ze("recharts"),"-clip"),u.throttleTriggeredAfterMouseMove=Es(u.triggeredAfterMouseMove,null!==(a=o.throttleDelay)&&void 0!==a?a:1e3/60),u.state={},u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xA(t,e)}(t,e.Component),o=t,i=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=wr(e,us);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var u=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=NA(this.state,r,a,u),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=AA(AA({},f),p.props.points[a].tooltipPosition),c=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:u,activePayload:c,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){Sr([wr(t.children,us)],[wr(this.props.children,us)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=wr(this.props.children,us);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return c.indexOf(e)>=0?e:a}return a}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-o.left),chartY:Math.round(t.pageY-o.top)},a=n.width/r.offsetWidth||1,u=this.inRange(i.chartX,i.chartY,a);if(!u)return null;var c=this.state,l=c.xAxisMap,s=c.yAxisMap,f=this.getTooltipEventType(),p=BA(this.state,this.props.data,this.props.layout,u);if("axis"!==f&&l&&s){var h=Qe(l).scale,d=Qe(s).scale,y=h&&h.invert?h.invert(i.chartX):null,v=d&&d.invert?d.invert(i.chartY):null;return AA(AA({},i),{},{xValue:y,yValue:v},p)}return p?AA(AA({},i),p):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var u=this.state,c=u.angleAxisMap,l=u.radiusAxisMap;if(c&&l){var s=Qe(c);return Sb({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=wr(t,us),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),AA(AA({},cr(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){ZP.on(JP,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ZP.removeListener(JP,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===yr(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,o=e.top,i=e.height,a=e.width;return r.createElement("defs",null,r.createElement("clipPath",{id:t},r.createElement("rect",{x:n,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=yA(e,2),n=r[0],o=r[1];return AA(AA({},t),{},EA({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=yA(e,2),n=r[0],o=r[1];return AA(AA({},t),{},EA({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],u=a.props,c=a.item,l=void 0!==c.type.defaultProps?AA(AA({},c.type.defaultProps),c.props):c.props,s=yr(c.type);if("Bar"===s){var f=(u.data||[]).find((function(e){return Zw(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(u.data||[]).find((function(e){return Sb(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(Cx(a,n)||Dx(a,n)||Ix(a,n)){var h=Rx({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),d=void 0===l.activeIndex?h:l.activeIndex;return{graphicalItem:AA(AA({},a),{},{childIndex:d}),payload:Ix(a,n)?l.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t=this;if(!xr(this))return null;var e,n,o=this.props,i=o.children,a=o.className,u=o.width,c=o.height,l=o.style,s=o.compact,f=o.title,p=o.desc,h=vA(o,pA),y=jr(h,!1);if(s)return r.createElement(_j,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},r.createElement(_r,dA({},y,{width:u,height:c,title:f,desc:p}),this.renderClipPath(),Ar(i,this.renderMap)));this.props.accessibilityLayer&&(y.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,y.role=null!==(n=this.props.role)&&void 0!==n?n:"application",y.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},y.onFocus=function(){t.accessibilityManager.focus()});var v=this.parseEventsOfWrapper();return r.createElement(_j,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},r.createElement("div",dA({className:d("recharts-wrapper",a),style:AA({position:"relative",cursor:"default",width:u,height:c},l)},v,{ref:function(e){t.container=e}}),r.createElement(_r,dA({},y,{width:u,height:c,title:f,desc:p,style:_A}),this.renderClipPath(),Ar(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&mA(o.prototype,i),u&&mA(o,u),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,i,u}();EA(v,"displayName",n),EA(v,"defaultProps",AA({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),EA(v,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,u=t.layout,c=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var p=zA(t);return AA(AA(AA({},p),{},{updateId:0},y(AA(AA({props:t},p),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||u!==e.prevLayout||c!==e.prevStackOffset||!rr(l,e.prevMargin)){var h=zA(t),d={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=AA(AA({},BA(e,n,u)),{},{updateId:e.updateId+1}),m=AA(AA(AA({},h),d),v);return AA(AA(AA({},m),y(AA({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(!Sr(o,e.prevChildren)){var b,g,w,x,O=wr(o,fO),j=O&&null!==(b=null===(g=O.props)||void 0===g?void 0:g.startIndex)&&void 0!==b?b:s,S=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,P=j!==s||S!==f,A=!we(n)&&!P?e.updateId:e.updateId+1;return AA(AA({updateId:A},y(AA(AA({props:t},e),{},{updateId:A,dataStartIndex:j,dataEndIndex:S}),e)),{},{prevChildren:o,dataStartIndex:j,dataEndIndex:S})}return null})),EA(v,"renderActiveDot",(function(t,n,o){var i;return i=e.isValidElement(t)?e.cloneElement(t,n):k(t)?t(n):r.createElement(ex,n),r.createElement(Ir,{className:"recharts-active-dot",key:o},i)}));var m=e.forwardRef((function(t,e){return r.createElement(v,dA({},t,{ref:e}))}));return m.displayName=v.displayName,m},WA=qA({chartName:"LineChart",GraphicalChild:SP,axisComponents:[{axisType:"xAxis",AxisComp:NP},{axisType:"yAxis",AxisComp:HP}],formatAxisMap:cj});export{ej as B,uP as C,WA as L,Is as R,us as T,NP as X,HP as Y,SP as a,Yj as b,Ec as c,cj as f,qA as g}; //# sourceMappingURL=LineChart-15c3244c.js.map